1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-16 20:24:01 +02:00
Commit Graph

4279 Commits

Author SHA1 Message Date
Sunny Hirai
61ecfea24e Improve the Editable docs 2023-07-24 02:16:30 -07:00
github-actions[bot]
dd6dbf1b99 Version Packages (#5474)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
slate-react@0.97.2
2023-07-12 05:04:35 -07:00
Ben Wormald
a6b606d804 update hotkeys util to use isHotkey (#5462) 2023-06-30 00:04:48 -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
Joseph Rollins
4bd15ed395 Revert to prev behavior on Android to fix caret (#5470)
* Revert to prev behavior on Android to fix caret

* add changeset
2023-06-28 08:29:43 -07:00
github-actions[bot]
511014afa0 Version Packages (#5461)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
slate-react@0.97.1
2023-06-21 11:31:52 -07:00
Joe Anderson
53395449e5 Do not try to batch updates in React >= 18 (#5460)
* Do not try to batch updates in React >= 18

* Linter fixes

* Add changeset
2023-06-21 11:09:32 -07:00
github-actions[bot]
4b8ba512e7 Version Packages (#5454)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
slate-react@0.97.0
2023-06-16 20:47:48 -07:00
Shiba-ligo
cde0a155e2 fix: regular expression for testing Webkit based browser (#5453)
* fix: IS_WEBKIT environment symbol excluding blink based browser

* chore: add changeset

* fix: prettier

---------

Co-authored-by: zhanglixin08 <zhanglixin08@meituan.com>
2023-06-16 09:35:32 -07:00
Ikko Eltociear Ashimine
b01f931942 Fix typo in dom.ts (#5452)
wether -> whether
2023-06-16 05:01:24 -07:00
Grzegorz Tłuszcz
12ff246e10 Fixed triple click workaround breaking void elements selection (#5451)
* Fixed tripple click workaround breaking void selection

* Add changesets

* Fix ts error

* Make code style more consistent
2023-06-16 05:01:12 -07:00
github-actions[bot]
bac37cae81 Version Packages (#5438)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
slate-react@0.96.0
2023-06-12 18:58:48 -07:00
Dylan Schiemann
25e5eee4af Fix docs typo for unref (#5448) 2023-06-12 18:58:28 -07:00
Old_dream
eb7f598707 fix: caret jump to the start of composition string (#5443)
* fix:  caret jump to the start of composition str

* chore: add changeset

* chore: edit changeset

---------

Co-authored-by: huangyuning <huangyuning@vv.cn>
2023-06-12 15:20:22 -07:00
Brian Bucknam
5eb589dbbb Use mark functions for docs and examples (#5441)
When documenting how to apply character-level styling, use `addMark` and `removeMark` instead of `setNodes`. This avoids new users creating code that only works in the simplest cases.

Similarly, update the Hovering Toolbar example to apply marks instead of setting nodes.

This change was prompted by a discussion on Slack where the developer was disappointed that `markableVoid` did not appear to be working. The problem was they were using `setNodes` to apply Marks, and did not use the same `match` function that `addMark` uses.
2023-06-12 15:08:10 -07:00
Davi Alexandre
a94d64ec09 missed import Element from slate (#5446)
Not importing it results in:

Property 'isElement' does not exist on type '{ new (): Element; prototype: Element; }'.ts(2339)
2023-06-12 15:06:24 -07:00
Joseph Rollins
3ad13d6015 Test for WebKit based browsers instead of Safari (#5437)
* Test for WebKit based browsers instead of Safari

* Add changeset
2023-05-31 05:13:03 -07:00
github-actions[bot]
ad126705ba Version Packages (#5434)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
slate-react@0.95.0
2023-05-29 22:27:40 -07:00
Ivan Voskoboinyk
91e388ecd9 Rename <Slate> component value prop to initialValue (#5421)
* Rename `slate-react` Slate component `value` prop to `initialValue`

Fixes #4992

* Update documentation: `value` -> `initialValue`

* Add a changeset record

* Make props order consistent
2023-05-26 07:53:39 -07:00
Alexander Chudesnov
0b1799091a Fix default focus styles (#5422)
* Fix default outline styles

Resolves #5146

* Add changeset

---------

Co-authored-by: Alexander Chudesnov <achudesnov@medallia.com>
2023-05-26 07:52:41 -07:00
Ravi Lamkoti
869d1240d3 chore: rename imageElmnts to imageElements in 04-transforms.md (#5431)
It will make code more readable and character difference is very less so it's worth changing.
2023-05-25 10:55:24 -07:00
github-actions[bot]
b7fd322f01 Version Packages (#5424)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
slate-react@0.94.2
2023-05-13 23:34:44 -07:00
Horacio Herrera
042bca167a fix(slate-react): add top css to placeholder (#5423)
solves  #5386
2023-05-13 23:28:00 -07:00
github-actions[bot]
9a5119849b Version Packages (#5416)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
slate@0.94.1
2023-05-09 10:25:04 -07:00
Ziad Beyens
01f0210bcc Consistent insert* methods (#5415)
* feat: add reviewpad.yml file

* Update reviewpad.yml

*  options to `Editor.insert*`

* 📝 options to `Editor.insert*`

*  getDefaultInsertLocation

*  getDefaultInsertLocation

*  getDefaultInsertLocation

* 📝 consistent selection

* Create tasty-lizards-remain.md

* Update tasty-lizards-remain.md

---------

Co-authored-by: reviewpad[bot] <104832597+reviewpad[bot]@users.noreply.github.com>
Co-authored-by: Dylan Schiemann <dylan@dojotoolkit.org>
2023-05-06 15:41:42 -07:00
Cyrille Perois
48c18b5368 docs(walkthroughs): fix broken code example (#5409)
The `match` condition was updated between two examples. The later didn't work because it was missing a part of the condition.
2023-05-05 04:04:05 -07:00
github-actions[bot]
33a1e9b923 Version Packages (#5397)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
slate@0.94.0 slate-react@0.94.0
2023-04-20 05:30:24 -07:00
Ziad Beyens
3243c7e34a Refactor editor methods and fix JSDoc (#5307)
* feat

* fix

* docs

* feat

* Create two-books-bow.md

* fix

* feat

* feat

* fix

* refactor

* refactor

* refactor

* refactor

* refactor

* refactor

* refactor

* refactor

* refactor

* refactor

* docs

* docs

* 🔀

* 🔀
2023-04-20 04:55:43 -07:00
trevorbye
161af4c70d Update 01-installing-slate.md (#5388)
add initial value with children so other examples don't break
2023-04-18 05:01:19 -07:00
Vitomir Budimir
00bce4c880 docs(walkthroughs): fix incomplete code block keyboard shortcut example (#5392) 2023-04-18 05:01:02 -07:00
void
bc945eb12c Take previously added/removed nodes into account when fetching child node in core normalization (#5396) 2023-04-18 05:00:33 -07:00
Sunny Hirai
832e75f47a docs: Add details about the scrollSelectionIntoView prop for the Editable component 2023-04-17 14:46:17 -07:00
Nami
ce5428b143 Remove unnecessary dollar sign from Chromium bug fix (#5394) 2023-04-14 11:33:01 -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