Mohammad ali Ali panah
3b3b0e32df
Fix chrome and edge three digit version check ( #4883 )
...
* fix chrome and edge three digit version check #4869
* add changelist
2022-03-14 16:19:36 -07:00
github-actions[bot]
2a620dc20d
Version Packages ( #4880 )
...
* Version Packages
* Update changelog
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Dylan Schiemann <dylan@dojotoolkit.org >
2022-03-09 04:23:12 -07:00
Nemanja Tosic
1b205c087b
Fix stale decorations ( #4876 )
...
* test changes
* fix decoration not updating
* Add changeset
* Fix lint issues
* Tests with earlier version of Node.js
* Bump node version on CI
The base typescript config uses ESNext as target, so presumably the
latest node should be used.
Co-authored-by: Dylan Schiemann <dylan@dojotoolkit.org >
2022-03-09 04:06:18 -07:00
Bryan Haakman
4d28948b90
Invert https://github.com/ianstormtaylor/slate/pull/4755 ( #4874 )
2022-03-08 19:40:50 -07:00
github-actions[bot]
7122454583
Version Packages ( #4872 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-03-07 16:26:25 -07:00
yongzs
7499d4b4c0
fixed cursor when we triple click on text and type over it #4862 ( #4868 )
...
* fixed cursor when we triple click on text and type over it
* fixed
* fixed
* Add changeset
Co-authored-by: Dylan Schiemann <dylan@dojotoolkit.org >
2022-03-07 03:58:34 -07:00
github-actions[bot]
68aff89e89
Version Packages ( #4863 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-03-03 18:47:48 -07:00
Fabio Moretti
47f2403e3a
Feature/slate selectors ( #4841 )
...
* Added a redux inspired slate selector
* added changeset
2022-03-03 18:25:56 -07:00
github-actions[bot]
442d263672
Version Packages ( #4843 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-02-23 13:16:57 -07:00
Eric Meier
100448d55c
render void spacer in readonly mode ( #4840 )
2022-02-17 04:57:30 -07:00
github-actions[bot]
9267355d22
Version Packages ( #4820 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-02-11 04:18:07 -07:00
Eric Meier
d5ac82373b
fix isDraggingInternally reset logic ( #4828 )
2022-02-10 21:00:17 -07:00
Masanori Onoue
80661509ec
fix not update state when unmounted ( #4819 )
...
* fix not update state when unmounted
* add changeset
2022-02-05 04:36:25 -07:00
github-actions[bot]
4b97197f9a
Version Packages ( #4815 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-01-31 12:43:10 -07:00
Dylan Schiemann
27deaf3175
fix build (prettier) ( #4817 )
...
* fix build (prettier)
* fix build (prettier)
2022-01-31 11:50:34 -07:00
Dylan Schiemann
6d62abc103
Revert #4749 ( #4816 )
...
* Revert #4749
See note at https://github.com/ianstormtaylor/slate/pull/4749#issuecomment-1025742142
* Create olive-bags-talk.md
Add changeset
2022-01-31 07:57:41 -07:00
github-actions[bot]
6ef6454e44
Version Packages ( #4799 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-01-27 21:55:12 -07:00
Eric Meier
a5fd62ddd6
fix: toSlatePoint suppressThrow leaf without text node ( #4813 )
2022-01-27 18:09:05 -07:00
Eric Meier
e998752989
fix: flush onDOMSelectionChange on onDOMBeforeInput ( #4809 )
2022-01-27 07:20:08 -07:00
Sihong
3796c514d6
fix: text content not rendered on ssr ( #4798 )
2022-01-22 03:53:56 -07:00
github-actions[bot]
33c93a90c5
Version Packages ( #4797 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-01-20 04:50:46 -07:00
Sihong
5d8a160669
fix: text not rendered on server-side rendering ( #4796 )
2022-01-20 03:32:15 -07:00
github-actions[bot]
a65aec1c27
Version Packages ( #4794 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-01-19 09:23:34 -07:00
Vsevolod Rodionov
a3dfb151d4
Fix: when switching between editors, Slate selection and DOM Selection can mismatch which causes React to break ( #4749 )
2022-01-19 07:53:26 -07:00
David Brito
9f3aee5536
Merge layout effects for adding focus and blur event listeners ( #4790 )
...
* Merge layout effects for adding focus and blur event listeners
* run yarn fix
2022-01-19 07:51:42 -07:00
github-actions[bot]
11253c5c3b
Version Packages ( #4761 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-01-13 10:14:25 -07:00
陈耀耀
a8c08a4e01
Android merge Editor.insertText
logic. ( #4788 )
...
* fix: Android merge Editor.insertText logic
* feat: add changeset
2022-01-13 06:24:36 -07:00
Alessio Galdy
67aa1f1010
Rollback 4779 and always call Transforms.setSelection ( #4786 )
...
* Revert "Fix Android editor.insertText regression (#4779 )"
This reverts commit 345b8fc9e8
.
* * Restore logic to delay text insertion on android
* Always call Trasform.setSelection before calling Editor.insertText
* change set
* yarn fix
* Fix changeset
* Restore old changeset file
2022-01-12 10:53:14 -07:00
Alessio Galdy
345b8fc9e8
Fix Android editor.insertText regression ( #4779 )
...
* * remove scheduling of text updates using setTimeout
* call Transforms.setSelection before Editor.insertText
* changeset
* Restore logic to set isComposing to false
2022-01-11 04:37:05 -07:00
Jacob Hurwitz
8daa77e9fa
run focus event listener after existing onFocus handlers ( #4755 )
...
* run focus event listener after existing onFocus handlers
* change window.setTimeout to setTimeout
2022-01-10 16:20:47 -07:00
Alessio Galdy
e9a46ad29e
Fix editor.insertText never gets called inside plugins on Android ( #4753 )
...
* Call Editor.insertText instead of Transforms.insertText to allow overriding by plugins
* Use Editor.insertText in android-input-manager
* changeset
2022-01-04 06:10:35 -07:00
github-actions[bot]
a54a8e317f
Version Packages ( #4736 )
...
* Version Packages
* Update CHANGELOG.md
Add a missing changeset from one of the PRs.
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Dylan Schiemann <dylan@dojotoolkit.org >
2021-12-22 05:05:07 -07:00
Peter Sipos
ccafb6982f
Optimize TextString rendering to support browser/OS text features, eg fix native spellcheck ( #4733 )
...
* slate-react: use a layout effect to render leaf text nodes instead of via virtual DOM, which implements diffing with real DOM avoiding interference with native TextNode behaviors for example spellcheck
* lint
* clarify and simplify extreme case of null text in TextString rendering
* code style: use string interpolation in TextString
Co-authored-by: Nemanja Tosic <netosic90@gmail.com >
Co-authored-by: Peter Sipos <schipy@craft.do >
Co-authored-by: Nemanja Tosic <netosic90@gmail.com >
2021-12-18 08:38:51 -07:00
陈耀耀
3c07a8706e
fix: [AndroidEditor] Solve input association problems and add click events. ( #4734 )
...
Co-authored-by: 陈耀耀 <chenyaoyao@taptap.com >
2021-12-16 14:33:50 -07:00
github-actions[bot]
7bfb61c769
Version Packages ( #4723 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-12-10 08:58:00 -07:00
Alex
0334851cb1
Fix "Cannot resolve from DOM point" error on onDomSelectionChange for readonly void elements ( #4727 )
...
* fix error caused by selecting void nodes in readonly editor
* add changeset
2021-12-10 05:52:03 -07:00
Bryan Haakman
1217021a9a
Add origin event type to setFragmentData to be able to distinguish copy, cut and drag ( #4720 )
...
* Add origin event to setFragmentData to be able to distinguish copy, cut, drag
* fix lint
* add changeset
* Make originEvent optional
2021-12-08 10:56:11 -07:00
github-actions[bot]
dc2999a1aa
Version Packages ( #4713 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-12-07 06:57:26 -07:00
ttitoo
8bc6a46460
Fix CJK IME(like Chinese, Japanese) double input ( #4702 )
...
* fix: resolve CJK IME double input
* fix: resolve UC mobile no input issue
* feat: add changeset
* Update .changeset/large-melons-warn.md
Co-authored-by: Dylan Schiemann <dylan@dojotoolkit.org >
* fix: more specific way to deal with browsers
Co-authored-by: Dylan Schiemann <dylan@dojotoolkit.org >
2021-12-05 11:35:24 +00:00
Alex
c020ca23b6
Fix onDragStart callback dependency on 'readonly' ( #4707 )
...
* fix: add 'readonly' dependency for onDragStart callback
* add changeset
2021-12-04 09:08:48 -07:00
Eric Meier
6d19407776
Update android restoreDOM to allow partial dom restoring ( #4706 )
...
* Update android restoreDOM to allow partial dom restoring
* Fix useContentKey re-render timing
2021-12-04 08:57:30 -07:00
github-actions[bot]
fece5c1570
Version Packages ( #4683 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-11-23 03:17:06 -07:00
Matthew Keil
e538065572
fix ssr prop mismatch ( #4682 )
...
* fix ssr prop mismatch
* added changeset
2021-11-22 09:29:14 -07:00
github-actions[bot]
0540fea6a8
Version Packages ( #4675 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-11-20 15:09:22 -07:00
Eric Meier
807716d7df
fix: flush selection change on before input ( #4669 )
...
* fix: flush selection change on before input
* chore: remove redundant option from debounce
2021-11-20 11:26:13 -07:00
Leo
0f194a86a0
fix: use ownerDocument to create element ( #4661 )
...
* fix: use ownerDocument to create element
* chore: add changeset
2021-11-20 11:24:53 -07:00
github-actions[bot]
3ad3aaccad
Version Packages ( #4651 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-11-16 04:31:36 -07:00
Karthikeyan
95389ed7b0
fix: default scroll selection ( #4652 )
...
* fix: default scroll selection
* feat: use Range.isCollapsed to check the selection
* chore: add changeset
* fix: grammer correction
* fix: grammer correction
2021-11-16 02:21:14 -07:00
Andreas Hörnicke
2c7750cac5
fix: weak guard on DataTransfer to not rely on current window ( #4654 )
2021-11-15 01:59:02 -07:00
Ivan Voskoboinyk
b6643132f1
Do not try to disable Grammarly in Slate ( #4650 )
...
* Do not try to disable Grammarly in Slate
As the `data-gramm` attribute is no longer working actually. See #4124
The Grammarly extension is not causing the DOM issues anymore, as they have reworked their highlighting logic:
https://www.grammarly.com/blog/engineering/making-grammarly-feel-native-on-every-website/
* Add changeset
2021-11-09 16:52:31 -07:00