Commit graph appflowy-editor/test/service
Author SHA1 Message Date
Mathias Mogensen
7336274ff9
fix: on ui event reset selection type (#555)
* fix: on ui event reset selection type

* test: add test
2023-10-30 11:20:42 +08:00
Lucas.Xu
c9adbb1714 fix: command shortcuts on the web platform should also respect the operating system 2023-09-24 11:15:07 +08:00
Lucas.Xu
78dd254d1e
feat: add more showcases on desktop/mobile platform (#481) 2023-09-20 11:17:39 +08:00
Lucas.Xu
19f999f422
feat: optimize the performance (#442) 2023-09-11 15:03:14 +08:00
Mayur Mahajan
ad55171c5b
refactor: migrate tests (#438)
* refactor: separate remove line command

* test: delete sentence

* chore: export delete left line command

* refactor: move from internal_key_handler to new

* refactor: move from command to new
2023-09-11 14:24:50 +08:00
Mohammad Zolfaghari
dd52ce6718
feat: table plugin (#62)
* feat: table plugin requisites

* feat: moved table plugin to appflowy-editor

* fix: flutter analyze

* fix: dont use nested maps in node attributes

rust backend (flowy-document) doesn't support it.

* feat: add table to appflowy editor default selection menu

* feat table markdown encoder

* refactor: apply @Xazin review suggestions

* refactor: merge main and fix color picker conflicts

* feat: table markdown decoder

* fix: use specific backgroun generator for table

* feat: table plugin

* style: adapt new structure

* fix: table columns border height

* fix: adapt new style key commands

* fix: remove table context menu

* test: adapt to main branch changes

* fix: backspace handling regarding table

* fix: flutter analyze

* fix: enter when table cell is bullet list

* fix: selection bug on large table

* feat: row/col action menu

* fix: row action handler positioning

* refactor: merge row and col handler widget

* refactor: add size and color to handler icon

* style(merge): merge main

* feat: added padding and action wrapper

* feat: enable customizing icons and etc

* feat: table menu builder

* fix: table getBlockRect

* refactor: table action button design

---------

Co-authored-by: Lucas.Xu <lucas.xu@appflowy.io>
2023-08-29 15:24:25 +08:00
Lucas.Xu
a9af2bbd37
fix: rect of the divider block is incorrect (#415)
* fix: rect of the divider block is incorrect

* fix: only show the context menu when the gesture hit the selection area

* chore: change image upload widget UI

* fix: context menu test
2023-08-25 18:02:24 +08:00
Lucas.Xu
28c5adf0f9 feat: add support for context menu items to the editor 2023-08-24 19:17:13 +08:00
Johan Sutrisno
5e78abc36f
feat: skip whitespace between words while navigating with CTRL+ARROW keys (#363)
* feat: skip whitespace between words while navigating with CTRL+ARROW keys

* refactor: testing for arrow keys handler

* refactor: testing for arrow keys handler

* refactor: refactor var to final

* test: Presses arrow left/right/up/down + meta in not collapsed and forward selection except macos

* refactor: refactor test alt+arrow up

* refactor: refactor test alt+arrow down

* refactor: resolve suggestion of code

* refactor: resolve suggestion of code

* refactor: resolve suggestion of code

---------

Co-authored-by: Johan Sutrisno <johan@zero-one-group.com>
2023-08-21 11:47:07 +08:00
Mathias Mogensen
52486cc6a3 test: improve coverage 2023-08-17 13:13:45 +08:00
Mathias Mogensen
c38fe1625d test: mobile selection gesture 2023-08-17 13:13:45 +08:00
Mathias Mogensen
999ec073cd chore: fix deprecation warnings 2023-08-17 13:13:45 +08:00
Mathias Mogensen
b79aded8bb test: improve coverage for delta input 2023-08-17 13:13:45 +08:00
Mathias Mogensen
a564c10e87 chore: deprecate Selection.collapse + coverage for selection.dart 2023-08-17 13:13:45 +08:00
Lucas.Xu
953249fefd
fix: lose selection after pasting (#365)
* fix: the selection area delay to update after typing enter

* fix: selection will lose after pasting
2023-08-10 15:22:43 +08:00
Mohammad Zolfaghari
2ab007415b
fix: selection menu respects current node direction (#360)
modified insertNodeAfterSelection to copy current node text direction
to the node which is going to get inserteded.

resolves #331
2023-08-08 14:56:27 +08:00
Mukund Tandon
c3f62b3086
fix: fixed unresponsive behaviour of context menu items (#349)
* fix: fixed unresponsive behaviour of context menu items

* test: added test for context menu
2023-08-02 10:00:02 +08:00
Ali Hassan
73d56b44e2
fix: copy handler migrated to latest api (#240) 2023-07-25 10:08:18 +08:00
Mayur Mahajan
68300149bf
feat: support for shift+home/end keys (#306) 2023-07-13 19:25:14 +08:00
Lucas.Xu
5f136df356
feat: remove the reference of the deprecated values (#304)
* feat: remove the reference of the deprecated values

* chore: add migration guide
2023-07-12 13:21:54 +08:00
Mohammad Zolfaghari
f8da435ad5
feat: support RTL and auto direction (#191) 2023-07-12 10:51:38 +08:00
Mayur Mahajan
fc7b4e5c81
chore: change windows and linux command for redo (#294) 2023-07-11 22:34:05 +08:00
Bram Tertoolen
4c05667cf2
feat: handle nested italics in bold text (issue 2324) (#105) 2023-07-10 21:32:42 +08:00
Chandan C V
7cb4bc6fb2
fix: should not open link menu when selection is collapsed (#117) 2023-07-10 11:15:48 +08:00
Lucas.Xu
2b2bce4f3c
fix: analysis issues (#283) 2023-07-04 11:22:35 +08:00
Lucas.Xu
3614cc5bf1
Revert "fix: copy handler migrated to latest api (#192)" (#236)
This reverts commit ad838cfa86.
2023-06-22 10:04:42 +08:00
Ali Hassan
ad838cfa86
fix: copy handler migrated to latest api (#192)
* fix: copy handler migrated to latest api

* flutter analyze

* code formatted

* fix: test added for copy handler

* more test added for copy handler

* fix:write test for copy handler

* text added for html to nodes

* fix: added more test for html encoder

* fix:removed unused imports

* fix: copyhandler collapse state test added

* added direct event handler in test

* flutter analyze

* revert changes in example.json
2023-06-20 17:12:14 +08:00
Lucas.Xu
6e79060260
feat: support mobile drag selection (#209)
* feat: add handler for mobile selection widget

* feat: support dragging handler to update selection

* chore: format code

* feat: support dragging the cursor on mobile platform

* feat: optimize the scroll service
2023-06-20 10:26:22 +08:00
Lucas.Xu
c0dbd025e0
feat: support shrinkwrap inside editor (#186)
* feat: support shrinkwrap inside editor

* test: add unit test for shrinkwrap
2023-06-12 20:41:15 +08:00
Lucas.Xu
2bc87a99bd fix: migrate html to node converter to latest changes 2023-05-31 13:00:59 +08:00
Lucas.Xu
b29d053924 fix: flutter analyze and dart lint 2023-05-22 14:51:57 +08:00
Yijing Huang
5c43d1daad
feat: migrate link menu and color picker (#4)
* chore: move selectionRects to editorState

* chore: delete unused attributeKey font

* feat: refactor showLinkMenu and LinkMenu

* feat: replace old linkMenu

* feat: add text color toolbar item
- separate text color and highlight color item in toolbar
- renaming in BuiltInAttributeKey(color -> textColor, backgroundColor -> highlightColor)
- add text color and highlight color attribute in example.json
- add icons for text color and highlight color in the toolbar

* feat: add highlight color item in toolbar
- add clear highlight color button
- add onDismiss in ColorPicker to remove the overlay after remove highlight color

* chore: delete old ColorPicker

* test: migrate link menu test

* chore: remove editorStyle from color menu and color picker

* test: add color picker test

* feat: remove editor style from link menu
- add utils function and widgets for overlay
- organize utils folder
- add constant text into AppFlowyEditorLocalizations
- improve pop up menu style

* feat: add show link menu command shortcut
- refactor CommandShortcutEventHandler
- update related callback

* feat: add showTextColorMenuCommand and showHighlightColorMenuCommand

* fix: fix merge error in example.json

* refactor: reorganize the file hierarchy

* refactor: migrate format_style_handler_test.dart
- delete format_style_handler_test.dart
- migrate to markdown_commands_test.dart
- move highlight test outside of markdown_commands_test

* feat: delete show menu type command shortcut and their tooltip

* fix: fix tooltip text

* chore: delete context from CommandShortcutEventHandler

* feat: add command shortcut for link menu

* test: add show link menu command test
2023-05-11 11:26:52 +08:00
Lucas.Xu
561884dc37 feat: support customize the slash menu item 2023-05-08 20:44:20 +08:00
Lucas.Xu
8e878012a7 chore: refactor the node.dart 2023-05-04 10:35:54 +08:00
Lucas.Xu
40832bb7ca test: migrate test test/service 2023-05-03 13:54:12 +08:00
Lucas.Xu
b4e0a90cc6 test: migrate internal_key_event_handlers 2023-05-03 13:44:54 +08:00
Lucas.Xu
4883a38126 test: migrate redo and undo command 2023-05-03 12:01:34 +08:00
Lucas.Xu
f40306ddbc test: migrate the white_space_handler 2023-05-03 11:40:05 +08:00
Lucas.Xu
e3ec7412b6 test: migrate the tab_handler 2023-05-03 11:20:22 +08:00
Lucas.Xu
89e22f0d89 test: migrate the slash_handler 2023-05-03 11:10:17 +08:00
Lucas.Xu
fd1a1b1551 test: migrate page up and down 2023-05-02 23:08:38 +08:00
Lucas.Xu
0f4c5241b7 test: migrate scroll_service_test 2023-05-02 23:03:55 +08:00
Lucas.Xu
22eafb7b66 test: migrate editor_service_test 2023-05-02 23:01:48 +08:00
Lucas.Xu
67de67ec73 test: migrate the page up and page down 2023-05-02 20:20:32 +08:00
Lucas.Xu
4a32d0a460 test: migrate the markdown_syntax_to_styled_text 2023-05-02 19:59:22 +08:00
Lucas.Xu
3020ce0c4c test: migrate the markdown_comamnds_test 2023-05-02 19:05:46 +08:00
Lucas.Xu
4db30d8d09 test: migrate the escape key 2023-05-02 17:19:38 +08:00
Lucas.Xu
9be02bd3e9 test: migrate the enter key test 2023-05-02 17:14:26 +08:00
Lucas.Xu
0342668721 test: migrate the cursor_left_delete_handler.dart 2023-05-02 15:42:30 +08:00
Lucas.Xu
7bd8cba1fc test: migrate the checkbox_event_handler 2023-05-02 15:19:07 +08:00