Procházet zdrojové kódy

feat: upgrade editor version to latest 0.1.4

Lucas.Xu před 1 rokem
rodič
revize
197e5b3a79

+ 1 - 1
frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/toggle/toggle_block_shortcut_event.dart

@@ -16,7 +16,7 @@ CharacterShortcutEvent formatGreaterToToggleList = CharacterShortcutEvent(
   handler: (editorState) async => await formatMarkdownSymbol(
     editorState,
     (node) => node.type != ToggleListBlockKeys.type,
-    (text, _) => text == _greater,
+    (_, text, __) => text == _greater,
     (_, node, delta) => toggleListBlockNode(
       delta: delta.compose(Delta()..delete(_greater.length)),
     ),

+ 2 - 2
frontend/appflowy_flutter/pubspec.lock

@@ -53,10 +53,10 @@ packages:
     dependency: "direct main"
     description:
       name: appflowy_editor
-      sha256: "19c2567e23bbd8894243b2e57fa8436e3192c8dcb50c23499b6aea90a674a045"
+      sha256: "3ab567d8993ca06ea114c35bc38c07d2f0d7a5b00857f52d71fbe6a7f9d2ba7b"
       url: "https://pub.dev"
     source: hosted
-    version: "1.0.3"
+    version: "1.0.4"
   appflowy_popover:
     dependency: "direct main"
     description:

+ 1 - 1
frontend/appflowy_flutter/pubspec.yaml

@@ -42,7 +42,7 @@ dependencies:
     git:
       url: https://github.com/AppFlowy-IO/appflowy-board.git
       ref: a183c57
-  appflowy_editor: ^1.0.3
+  appflowy_editor: ^1.0.4
   # appflowy_editor:
   #   git:
   #     url: https://github.com/AppFlowy-IO/appflowy-editor.git