Joe Anderson
fb87646e86
Experimental chunking optimisation and other performance improvements ( #5871 )
...
* Chunking optimization
* Fix comments
* Remove redundant `insertionsMinusRemovals` variable
* Fix typo
* Unblock Netlify builds
* Add placeholder
* Upgrade Playwright (fixes crash when debugging)
* Fix `autoFocus` not working
* Fix huge document test
* Fix the previous issue without changing `useSlateSelector`
* Retry `test:integration`
* Re-implement `useSlateWithV`
* Retry `test:integration`
* Update docs
* Update JS examples to match TS examples
* Upload Playwright's `test-results` directory in CI to access traces
* Change trace mode to `retain-on-first-failure`
* Fix: `Locator.fill(text)` is flaky on Editable
* Add changesets
* Increase minimum `slate-dom` version
* Update changeset
* Update 09-performance.md
* Deprecate the `useSlateWithV` hook
* Fix errors and improve clarity in 09-performance.md
* Minimum `slate-dom` version is now 0.116
* Update `yarn.lock`
2025-06-06 16:42:11 -07:00
Ziad Beyens
22a3dda36d
Add renderText
and leafPosition
( #5850 )
...
* feat
* revert
* revert
* docs
* test
* refactor
* test
* revert
* refactor
* doc
* docs
* refactor
* docs
* test
* docs
* docs
* docs
* refactor
2025-04-29 07:30:57 -07:00
Sunny Hirai
6aace0d017
Fix docs on useSlateSelector
2024-12-30 21:35:10 -08:00
Sunny Hirai
aecc957a9e
Improve docs for Slate Component
2024-12-30 20:09:52 -08:00
Christian Grøngaard
2c9cc3cd81
docs: document props.onValueChange
and props.onSelectionChange
( #5788 )
2024-12-30 13:21:28 -07:00
Ty Mick
40686c2ebb
Add HistoryEditor.withNewBatch
to docs ( #5769 )
2024-11-22 17:01:22 -07:00
Ty Mick
644ebdc8f5
Use extended Editor
type in useSlateWithV
return type ( #5763 )
...
* Use extended `Editor` type in `useSlateWithV` return type
So it matches the return types of `useSlate` and `useSlateStatic`. The
`useSlateWithV` return object's `editor` property is currently typed as
just a `ReactEditor`, which causes type errors in our app when we try to
use it as the extended `Editor` type.
* Fix return types in "Editor hooks" docs
2024-11-19 11:14:47 -07:00
Danny
f18383ba72
docs: add context to useComposing hook ( #5715 )
...
* docs: add context to useComposing hook
* fix: run prettier
2024-11-01 10:44:18 -07:00
Ty Mick
c9d94711cc
Add HistoryEditor.withMerging
to docs ( #5738 )
2024-10-15 12:29:29 -07:00
yf-yang
6cb38e37a4
feat: add useComposing hook ( #5695 )
2024-08-20 16:03:03 -07:00
Sunny Hirai
ca77e934bc
Add docs for as in Editable
2023-07-24 02:27:57 -07:00
Sunny Hirai
8effdf92cd
Update Editable docs but with more concise documentation
2023-07-24 02:23:11 -07:00
Sunny Hirai
61ecfea24e
Improve the Editable docs
2023-07-24 02:16:30 -07:00
Ben Dahl
711c2298dd
Fix a few typos in the docs ( #5463 )
...
* fix: typo in with-react docs
* fix: typo in range docs
* fix: typo in faq docs
* fix: typo in react-editor docs
2023-06-30 00:03:00 -07:00
Sunny Hirai
832e75f47a
docs: Add details about the scrollSelectionIntoView prop for the Editable component
2023-04-17 14:46:17 -07:00
Sunny Hirai
3c4e4b6ab3
Remove export from EditableProps in docs
2023-04-13 09:42:39 -07:00
Sunny Hirai
20cff0e35d
Add props. prefix to Slate component docs where it was missing
2023-04-13 09:38:46 -07:00
Sunny Hirai
34776c6e01
Normalize Slat and Editable component documentation. Add under construction message to Editable component.
2023-04-13 09:23:20 -07:00
Sunny Hirai
36ea10b88d
Add return types to Slate React components
2023-04-13 09:18:48 -07:00
Sunny Hirai
0faa1476c1
Fix typo in Slate Component docs
2023-04-13 09:16:02 -07:00
Sunny Hirai
db3e0f8a81
Rename Slate and Editable to Slate Component and Editable Component in table of contents to improve discoverability
2023-04-13 09:14:48 -07:00
Sunny Hirai
cc2000b583
Provide a more detailed description of useSlateSelector in docs
2023-04-13 09:13:19 -07:00
Sunny Hirai
c6b7db2e13
Organize hooks documentation and add subheadings
2023-04-13 09:10:12 -07:00
Sunny Hirai
d193160fbd
Add return values to SlateReact hooks documentation
2023-04-13 09:07:35 -07:00
Sunny Hirai
5f1baec200
Add return types to documentation of ReactEditor
2023-04-13 08:47:53 -07:00
Sunny Hirai
3d1c6936dc
Remove redundant material from the main Slate React docs
2023-04-12 23:05:41 -07:00
Sunny Hirai
67e8709f45
Add separate page for Slate component in docs
2023-04-12 23:03:19 -07:00
Sunny Hirai
161c9d8f45
Fix table of contents for doc related to Slate React
2023-04-12 22:47:16 -07:00
Sunny Hirai
0e34b35aed
Fix typo in ReactEditor docs
2023-04-12 22:45:50 -07:00
Sunny Hirai
036d58fa98
Add Editable and event handling docs for Slate React
2023-04-12 22:44:50 -07:00
Sunny Hirai
76544747e8
Remove plugins section from main SlateReact docs because it is redundant
2023-04-12 22:26:46 -07:00
Sunny Hirai
36abe94ded
Improve the documentation for withReact plugin
2023-04-12 22:26:11 -07:00
Sunny Hirai
f80ecaf165
Extract SlateReact hooks documentation onto its own page
2023-04-12 22:20:54 -07:00
Sunny Hirai
083424eeb0
Extract ReactEditor docs into its own page and organize the methods with subheadings
2023-04-12 22:14:00 -07:00
Sunny Hirai
92b03170f7
Add docs for with-react
2023-04-12 22:01:59 -07:00
Sunny Hirai
cf5563a74d
Move SlateReact docs into a separate folder slate-react
2023-04-12 21:47:10 -07:00
Sunny Hirai
2f3fb37ffc
Add withHistory page to docs, reorganize the History docs in general and update Summary.md
2023-04-12 21:44:53 -07:00
Sunny Hirai
0861663a5c
Add links in SlateHistory main docs
2023-04-11 23:16:56 -07:00
Sunny Hirai
72d2d84b85
Improve docs for the main page for SlateHistory with more descriptions
2023-04-11 23:14:49 -07:00
Bryan Haakman
9bc0b6132a
Change how Slate context updates and introduce useSlateSelection
hook ( #5041 )
...
* Fix DOM selection sync when there are unexpected rerenders
* Create a useSlateSelection hook and expose it
* update docs
* add changeset
* Undo the useEffect change and add a useSlateValue method
* Use a version counter instead for SlateContext
* comment out layout effect prevention for now
* Undo useV comparison for now
* Change the changeset
* Fix lint
* Remove the useSlateValue hook
* remove some unused imports
* Add useSlateWithV to the docs
* fix changeset lint
* Change changeset to minor instead
2022-07-22 16:27:26 -07:00
Gabin Aureche
22308b3417
Replace useMemo with useState in the docs ( #5022 )
...
* Replace useMemo with useState
* Fix formatting
2022-06-11 07:58:19 -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
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
Eric Charles
e54f2a0ea0
Fix double insertion due to insertTextData being called when it should not ( #4625 )
...
* fix double paste due to insertTextData being called when it should not
* Document return type of insertTextData and insert FragmentData
* Add changeset
2021-10-26 21:09:36 -07:00
Eric Charles
72160fac08
Add insertFragmentData and insertTextData to the ReactEditor API ( #4614 )
...
* Add insertFragmentData and insertTextData to the ReactEditor API
* Add patch changeset
* Docs for insertFragment and insertTextData
2021-10-22 06:44:56 -07:00
Doug Reeder
43e740c88d
docs: clarifies not setting editor values directly & plugin order ( #4571 )
...
* Updates "Saving to a Database" example to distinguish actual content changes.
* Update docs/walkthroughs/06-saving-to-a-database.md
* Update docs/walkthroughs/06-saving-to-a-database.md
* Update docs/walkthroughs/06-saving-to-a-database.md
* Runs prettier
* docs: clarifies not setting editor values directly & plugin order
* Changes reccommended order of withReact & withHistory, to match current knowleged
Co-authored-by: Dylan Schiemann <dylan@dojotoolkit.org >
2021-10-11 17:40:38 -07:00
Guilherme Samuel
15f8f866dd
docs: fix typo ( #4538 )
2021-09-19 13:44:28 -07:00
Trang Le
ba8e5d8bc2
feat(docs): mention third parameter to toSlateRange
method in the docs ( #4416 )
...
* Add third parameter to `toSlateRange` method
The `toSlateRange` method accepts an optional third parameter that is an object with property `exactMatch` and value is a boolean.
Example of this implementation can be found at the `Editable` component of `slate-react`, inside the custom `onDOMSelectionChange`.
* toSlateRange third param is optional
Co-authored-by: Dylan Schiemann <dylan@dojotoolkit.org >
No changeset as it's a doc update.
2021-08-08 10:12:02 -07:00
georgberecz
2c17e2b7f9
Allow control of Slate's event handler execution in custom event handler API ( #4299 )
...
Co-authored-by: Georg Berecz <gberecz@palantir.com >
Co-authored-by: Claudéric Demers <clauderic.d@gmail.com >
2021-06-01 10:26:08 -04:00
Sunny Hirai
a47c35cd95
merge
2021-04-01 18:13:48 -07:00