Abdullah Ammar
863357f994
docs: fix links example not working ( #4986 )
2022-05-17 16:23:32 -07:00
V_Lute
d2fc25c3c3
update insertText logic when selection is not collapsed ( #4892 )
...
Co-authored-by: zhangpengcheng15 <zhangpengcheng15@jd.com>
2022-05-07 06:14:01 -07:00
github-actions[bot]
1555ac8402
Version Packages ( #4982 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
slate-react@0.79.0
2022-05-04 16:27:40 -07:00
Eric Meier
cb8a551508
Add ReactEditor.isComposing(editor) ( #4981 )
...
* Add ReactEditor.isComposing(editor)
* Upate changeset from patch to minor
2022-05-02 12:09:42 -07:00
github-actions[bot]
de325801cf
Version Packages ( #4980 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
slate-react@0.78.1
2022-04-29 19:40:45 -07:00
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>
slate@0.78.0
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 b940640fc8f96abdd8725de1f0af0c6ba56156b9.
* Add changeset
2022-04-26 10:28:58 -07:00
Dylan Schiemann
acdc5c3417
fix linting issue ( #4976 )
2022-04-26 10:10:55 -07:00
Luigi Di Muzio
dcd36be973
Add CodeQL Workflow ( #4972 )
...
Add CodeQL configuration .yml to start running security code scans on this project
2022-04-26 09:22:33 -07:00
wojtek-kowalczyk
731fdf3457
Fixed a bug in the example code in docs ( #4973 )
2022-04-26 09:10:00 -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>
slate-react@0.77.4
2022-04-25 22:28:45 -07:00
Dylan Schiemann
b940640fc8
Revert "Added types for options and common string literals ( #4968 )" ( #4969 )
...
This reverts commit ef09c8cf6e5bd54428216a79bb0b4a568544c4e7.
2022-04-25 22:26:45 -07:00
Josh Goldberg
ef09c8cf6e
Added types for options and common string literals ( #4968 )
2022-04-25 22:26:15 -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>
slate-react@0.77.3
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>
slate@0.77.2
slate-react@0.77.2
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
James
34cfc1c704
closed bracket on complete code example ( #4950 )
2022-04-19 08:48:22 -07:00
github-actions[bot]
0e606f03c1
Version Packages ( #4949 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
slate-react@0.77.1
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>
slate@0.77.0
slate-react@0.77.0
slate-hyperscript@0.77.0
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
Horacio Herrera
0e598ab229
feat(docs): add missing Element methods ( #4943 )
2022-04-13 10:56:59 -07:00
vagusX
99d24a63af
docs: remove yuque in Products ( #4940 )
2022-04-13 10:56:14 -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
Johan Davidsson
d460bb42f0
Doc serializing fix ( #4937 )
...
Fixing a never ending recursive function in the serializing documentation.
2022-04-12 08:55:26 -07:00
Shira Smith
076ab9a67a
Fixed legacy check for Firefox v100+ ( #4926 )
2022-04-11 06:11:16 -07:00
cptKNJO
ce02acd2fd
Docs remove unused selection ( #4927 )
2022-04-11 06:10:41 -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
Sunny Hirai
bb4f1934c9
Moved documentation for refs in the Editor into its own section
2022-04-10 15:35:48 -07:00
Sunny Hirai
daa68dab89
Add descriptions of affinity to PathRef, PointRef and RangeRef documentation
2022-04-10 15:31:43 -07:00
Sunny Hirai
e7aa292323
Fixed several broken and missing links in the Location Types API Reference
2022-04-10 15:09:43 -07:00
Sunny Hirai
5400296e45
Add PathRef to Table of Contents of Documentation
2022-04-10 15:06:26 -07:00
Doug Reeder
2b94e17874
Documents how to implement a Void Element. ( #4924 )
...
* Documents how to implement a Void Element.
* Tightens up phrasing
2022-04-03 16:34:33 -07:00
github-actions[bot]
4df23c6e41
Version Packages ( #4921 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
slate@0.76.1
slate-react@0.76.1
2022-04-03 10:02:04 -07:00
Eric Meier
f17413086e
Update examples in docs, editable voids example ( #4925 )
...
* Update examples in docs, editable voids example
* Update typescript docs
2022-04-03 09:57:38 -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>
slate@0.76.0
slate-react@0.76.0
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
Dylan Schiemann
3453432f7a
Revert "Add merge to set node ( #4905 )" ( #4913 )
...
This reverts commit 9c758bb4cb9a5866beeda46f997fdac200aecfea.
2022-03-24 00:24:48 -07:00
zhugexinxin
9c758bb4cb
Add merge to set node ( #4905 )
...
* feat: add merge to setNodes
* chore: add merge to setNodes test
* chore: prettier
* chore: change to PropsMerge
* chore: restore the changes for addMark
2022-03-23 22:56:17 -07:00