1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-03-21 13:49:44 +01:00

3856 Commits

Author SHA1 Message Date
jasonphillips
92c5730a96
Fix: revert to prior decorations behavior ()
* Revert "Fix child element decorations ()"

This reverts commit 2a8d86f1a40bcc806422e6fe3658ddd810ce73a5.

* Revert "Fix stale decorations ()"

This reverts commit 1b205c087bef2f2360679c46801804d6d30a8139.

* chore: add changeset
2022-05-25 14:01:14 -07:00
Haakon Borch
f5ccab241c
update docs on Node.ancestors/levels and Path.ancestors () 2022-05-17 16:23:47 -07:00
Abdullah Ammar
863357f994
docs: fix links example not working () 2022-05-17 16:23:32 -07:00
V_Lute
d2fc25c3c3
update insertText logic when selection is not collapsed ()
Co-authored-by: zhangpengcheng15 <zhangpengcheng15@jd.com>
2022-05-07 06:14:01 -07:00
github-actions[bot]
1555ac8402
Version Packages ()
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) ()
* Add ReactEditor.isComposing(editor)

* Upate changeset from patch to minor
2022-05-02 12:09:42 -07:00
github-actions[bot]
de325801cf
Version Packages ()
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 () 2022-04-29 19:15:49 -07:00
github-actions[bot]
d8da50f761
Version Packages ()
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"" ()
* Revert "Revert "Added types for options and common string literals ()" ()"

This reverts commit b940640fc8f96abdd8725de1f0af0c6ba56156b9.

* Add changeset
2022-04-26 10:28:58 -07:00
Dylan Schiemann
acdc5c3417
fix linting issue () 2022-04-26 10:10:55 -07:00
Luigi Di Muzio
dcd36be973
Add CodeQL Workflow ()
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 () 2022-04-26 09:10:00 -07:00
github-actions[bot]
d40507d77e
Version Packages ()
* 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 ()" ()
This reverts commit ef09c8cf6e5bd54428216a79bb0b4a568544c4e7.
2022-04-25 22:26:45 -07:00
Josh Goldberg
ef09c8cf6e
Added types for options and common string literals () 2022-04-25 22:26:15 -07:00
Eric Meier
a4536e2aa2
Fix triple click handling in nested blocks () 2022-04-25 18:33:59 -07:00
github-actions[bot]
15e11f87e9
Version Packages ()
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 () 2022-04-20 14:47:38 -07:00
github-actions[bot]
f362cd7a19
Version Packages ()
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 () 2022-04-19 13:02:23 -07:00
Steve Marquis
9ce0a08c2a
Fix positions iteration when starting in an inline void node () 2022-04-19 13:02:01 -07:00
James
34cfc1c704
closed bracket on complete code example () 2022-04-19 08:48:22 -07:00
github-actions[bot]
0e606f03c1
Version Packages ()
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 ()
* Prevent native insert at the end of anchors

* add changeset
2022-04-18 09:39:45 -07:00
github-actions[bot]
5160efeea4
Version Packages ()
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 () 2022-04-13 10:58:12 -07:00
Horacio Herrera
0e598ab229
feat(docs): add missing Element methods () 2022-04-13 10:56:59 -07:00
vagusX
99d24a63af
docs: remove yuque in Products () 2022-04-13 10:56:14 -07:00
Alex
c39c8082a9
Fix pointRef leaks caused by not unref'ing ()
* 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 ()
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+ () 2022-04-11 06:11:16 -07:00
cptKNJO
ce02acd2fd
Docs remove unused selection () 2022-04-11 06:10:41 -07:00
Ivan Voskoboinyk
1ff6e69093
Export createText from slate-hyperscript ()
* 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. ()
* Documents how to implement a Void Element.

* Tightens up phrasing
2022-04-03 16:34:33 -07:00
github-actions[bot]
4df23c6e41
Version Packages ()
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 ()
* 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 ()
* 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 ()
* 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 ()
* 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 () 2022-04-03 08:44:46 -07:00
Eric Meier
7de7cdcf56
Restore user selection after beforeinput with target range ()
* Restore user selection after beforeinput with target range

* Add changeset
2022-03-31 04:18:23 -07:00
github-actions[bot]
ce63a08c8e
Version Packages ()
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 ()
* 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 ()
* 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 ()
* 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