* fix: added the ability to upload images on web
* chore: formatting
* chore: formatting
* feat: refactor image upload logic for web and non-web platforms
---------
Co-authored-by: Lucas.Xu <lucas.xu@appflowy.io>
* 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
* feat: creating open links shortcut command
* test: open links command
* refactor: applying suggestion
* refactor: fetching all unique links by a chain function
* fix: table padding when it gets scrolled
The handler was getting out of region when table width was wider
than editor size.
* fix: modify scroll view padding
* fix: better column resize performance
* fix: table padding when it gets scrolled
The handler was getting out of region when table width was wider
than editor size.
* fix: modify scroll view padding
* fix: resizing the table won't send transaction
* fix: lost selection after inserting table block
* fix: test
* refactor: don't pass editorState to TableNode
pass only transaction to methods directly.
* refactor: reduce extra transactions
* fix: mitigate Appflowy transaction adapter problem
With current transaction adapter in Appflowy which creates `BlockActionPB`
for `documentService` (backend). Its not possible to have multiple
`InsertOperation`s separately as a single transaction (multiple
`transaction.insertNode()`). The `BlockActionPB` creator (`toBlockAction`)
can't figure out the `prevId` (previous node of inserting node id), The
first insert operations shifts all next nodes path.
Because of this situation we decided to apply the insert operations one by
one.
* fix: table actions keep selection
* fix: on add col|row respect row|col bg color
* refactor: moving cell related keys to TableCellBlockKeys
* style: dart format
---------
Co-authored-by: Mohammad Zolfaghari <zidom72@gmail.com>
* feat: default text direction property
Introduced default text direction property on editor style. which
accepts rtl|ltr|auto for controlling default fallback direction.
Before this we had something controlled by Directionality but it
had two problems:
1. It didn't accept auto text direction. We had to introduce our
own Directionality component.
2. Directionality also affects layout direction, for example
setting Directionality to RTL will cause the handlers and other
things move to right side of the screen. While this is good but
there are cases which we don't want to change whole layout direction
but only the text default direction to for example auto.
* fix: flutter analyze
* fix: exception on prev node text direction null
The code was throwing excenption on changing current node text
direction to auto when the previous node had text direction attribute
with null value.
Also changed to only use direct previous node text direction and
direct parent for inheriting text direction when the current node
text direction is auto and undeterminable (e.g. empty text).
* feat: editor state update node
Use update node when the purpose is only adding new attribute to
node. format node causes extra unnessesary delete operation.
* feat: default text direction property
Introduced default text direction property on editor style. which
accepts rtl|ltr|auto for controlling default fallback direction.
Before this we had something controlled by Directionality but it
had two problems:
1. It didn't accept auto text direction. We had to introduce our
own Directionality component.
2. Directionality also affects layout direction, for example
setting Directionality to RTL will cause the handlers and other
things move to right side of the screen. While this is good but
there are cases which we don't want to change whole layout direction
but only the text default direction to for example auto.
* fix: flutter analyze
* fix: exception on prev node text direction null
The code was throwing excenption on changing current node text
direction to auto when the previous node had text direction attribute
with null value.
Also changed to only use direct previous node text direction and
direct parent for inheriting text direction when the current node
text direction is auto and undeterminable (e.g. empty text).
* feat: default text direction property
Introduced default text direction property on editor style. which
accepts rtl|ltr|auto for controlling default fallback direction.
Before this we had something controlled by Directionality but it
had two problems:
1. It didn't accept auto text direction. We had to introduce our
own Directionality component.
2. Directionality also affects layout direction, for example
setting Directionality to RTL will cause the handlers and other
things move to right side of the screen. While this is good but
there are cases which we don't want to change whole layout direction
but only the text default direction to for example auto.
* fix: flutter analyze
* fix: bugfix on auto as default text direction
* docs: make documentation clear
* fix: fixed the cursor not moving to next line after inserting divider
* test: added test
* fix: fixed failing checks
* fix: fixed issues from code review
* refactor: removed the use of depriciated function
* test: failing test for expected behavior
* test: fix test by removing enter
* fix: replace all fixed
* chore: remove unused code
* test: replace selected called multiple times
* chore: remove unused variable
* 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