Eric Meier
6afa9f6a71
Unset isComposing on keydown with isCompsing false ( #4979 )
2022-04-29 19:15:49 -07:00
github-actions[bot]
d8da50f761
Version Packages ( #4977 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-26 12:26:14 -07:00
Dylan Schiemann
3b7a1bf72d
Revert "Revert "Added types for options and common string literals"" ( #4974 )
...
* Revert "Revert "Added types for options and common string literals (#4968 )" (#4969 )"
This reverts commit b940640fc8
.
* Add changeset
2022-04-26 10:28:58 -07:00
github-actions[bot]
d40507d77e
Version Packages ( #4967 )
...
* Version Packages
* Update packages/slate-react/CHANGELOG.md
typo
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Dylan Schiemann <dylan@dojotoolkit.org >
2022-04-25 22:28:45 -07:00
Eric Meier
a4536e2aa2
Fix triple click handling in nested blocks ( #4965 )
2022-04-25 18:33:59 -07:00
github-actions[bot]
15e11f87e9
Version Packages ( #4958 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-21 08:25:46 -07:00
Eric Meier
c1e3fbaab9
Don't treat events with non-selection target range as native ( #4957 )
2022-04-20 14:47:38 -07:00
github-actions[bot]
f362cd7a19
Version Packages ( #4953 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-19 13:10:05 -07:00
Eric Meier
5b51e87d51
fix double insert in anchor element decorations ( #4951 )
2022-04-19 13:02:23 -07:00
Steve Marquis
9ce0a08c2a
Fix positions iteration when starting in an inline void node ( #4952 )
2022-04-19 13:02:01 -07:00
github-actions[bot]
0e606f03c1
Version Packages ( #4949 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-18 20:45:50 -07:00
Eric Meier
9957c21435
Prevent native insert at the end of anchors ( #4948 )
...
* Prevent native insert at the end of anchors
* add changeset
2022-04-18 09:39:45 -07:00
github-actions[bot]
5160efeea4
Version Packages ( #4935 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-13 11:14:29 -07:00
Eric Meier
486c385bc5
Fix editor root tripple click crash ( #4944 )
2022-04-13 10:58:12 -07:00
Alex
c39c8082a9
Fix pointRef leaks caused by not unref'ing ( #4939 )
...
* Fix pointRef leaks caused by not unref'ing
May cause severe performance degradation if more and more point refs
need to be updated.
* changeset
2022-04-12 09:56:51 -07:00
Shira Smith
076ab9a67a
Fixed legacy check for Firefox v100+ ( #4926 )
2022-04-11 06:11:16 -07:00
Ivan Voskoboinyk
1ff6e69093
Export createText
from slate-hyperscript
( #4932 )
...
* Update index.ts
* Fix code style
* Add changeset
2022-04-11 06:10:12 -07:00
github-actions[bot]
4df23c6e41
Version Packages ( #4921 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-03 10:02:04 -07:00
yongzs
aff67312cb
Fixed Triple click selection and copy&paste in read-only mode ( #4914 )
...
* Fixed Triple click selection and copy&paste in read-only mode
* Create khaki-candles-serve.md
* Update editable.tsx
make sense
* fixed 3871
* Update .changeset/khaki-candles-serve.md
* Update .changeset/khaki-candles-serve.md
Co-authored-by: Dylan Schiemann <dylan@dojotoolkit.org >
2022-04-03 09:09:03 -07:00
Adrien Wald
f6b7ca1f97
Run <Slate />'s focus event listeners after <Editable />'s focus handlers in React >= 17 ( #4920 )
...
* use focusin and focusout without capture if react >= 17
See https://github.com/facebook/react/pull/19186 for details on changes to `onFocus` and `onBlur`
* more accurate name for react version check const
* add changeset
* add comment about react >= 17 focus event listeners
2022-04-03 09:08:25 -07:00
Eric Meier
9892cf0ffb
Make onChange prop optional, update examples and docs to treat slate as uncontrolled ( #4922 )
...
* Make onChange prop optional, update examples and docs to treat slate as uncontrolled
* Add changeset
2022-04-03 08:52:32 -07:00
Eric Meier
08d5a12c91
Call keyDown handler while composing ( #4923 )
2022-04-03 08:44:46 -07:00
Eric Meier
7de7cdcf56
Restore user selection after beforeinput with target range ( #4919 )
...
* Restore user selection after beforeinput with target range
* Add changeset
2022-03-31 04:18:23 -07:00
github-actions[bot]
ce63a08c8e
Version Packages ( #4898 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-03-25 01:03:44 +00:00
Bryan Haakman
5ef346feb9
Fix NODE_TO_KEY correction for split_node and merge_node ( #4901 )
...
* Fix NODE_TO_KEY correction for split_node and merge_node
* fix lint
* add changeset
* Add NODE_TO_KEY tests for number of mounts for split_node and merge_node
2022-03-25 00:57:17 +00:00
jasonphillips
2a8d86f1a4
Fix child element decorations ( #4910 )
...
* fix slate-react handling of nested element decorations
* chore: add changeset
* changes from review
2022-03-25 00:31:35 +00:00
zhugexinxin
43ca2b56c8
feat: add merge to setNodes and test ( #4912 )
...
* feat: add merge to setNodes and test
* Add changset
Co-authored-by: Dylan Schiemann <dylan@dojotoolkit.org >
2022-03-24 00:25:36 -07:00
Bryan Haakman
20acca4bc8
Add soft break as a separate overridable editor method ( #4873 )
...
add changeset
2022-03-20 04:30:08 -07:00
Ryan Mitts
07669dca4b
When resolving a slate Point from a DOM selection (toSlatePoint), consider that a node is only void if it's within the same editor that is resolving the Point. ( #4885 )
...
If you have a nested editor setup. For example, one editor has a void node that contains another editor. In this case, a resolution of a selection by the nested editor previously would consider that the selection is for a void node since an ancestor void node does exist. However, this selection is only a void node in the context of this editor if the ancestor void node is contained in the editor.
2022-03-20 04:04:33 -07:00
github-actions[bot]
1433499e98
Version Packages ( #4890 )
...
* Version Packages
* Update packages/slate/CHANGELOG.md
* Update packages/slate/CHANGELOG.md
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Dylan Schiemann <dylan@dojotoolkit.org >
2022-03-14 22:36:10 -07:00
Dylan Schiemann
b5714a1d68
add missing changeset from #4889 ( #4891 )
2022-03-14 22:28:04 -07:00
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
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
Dylan Schiemann
ff2ca84772
Fix slate-react relase ( #4870 )
2022-03-07 16:20:55 -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]
f0530d2097
Version Packages ( #4859 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-03-01 22:50:27 -07:00
Andrew Herron
33be22f3e3
Reverted 03861af
( #4804 ) and added a test for the exception it caused ( #4858 )
2022-03-01 22:47:00 -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
Samu
482b090e6f
fix point transform for insert_text to account for affinity ( #4848 )
...
* fix point transform for insert_text
* add changeset
2022-02-23 13:08:00 -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
d54bc12f33
Update olive-bags-talk.md
2022-01-31 12:22:39 -07:00
Dylan Schiemann
27deaf3175
fix build (prettier) ( #4817 )
...
* fix build (prettier)
* fix build (prettier)
2022-01-31 11:50:34 -07:00