1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-28 17:39:57 +02:00
Commit Graph

4116 Commits

Author SHA1 Message Date
Sunny Hirai
feab2c4f46 Add docs for HistoryEditor 2023-04-11 23:07:32 -07:00
Sunny Hirai
5f56c2bc26 Flesh out docs for Slate History with methods 2023-04-11 18:35:58 -07:00
Sunny Hirai
7b5949ccc9 Add beginning of History docs to Slate docs 2023-04-11 18:23:16 -07:00
github-actions[bot]
07b049f59b Version Packages (#5373)
* 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>
slate@0.93.0 slate-react@0.93.0 slate-history@0.93.0
2023-04-03 16:51:02 -07:00
Dylan Schiemann
bab6943be9 Add missing changeset 2023-04-03 16:15:52 -07:00
Rein Van Imschoot
42b60fb0eb Extracts history push to own function (#5382) 2023-04-03 11:18:17 -07:00
Joe Anderson
b52e08b0ea Add support for read-only and non-selectable elements (#5374)
* Add `isElementReadOnly`

fix delete while selected

fix type while selected

fix failing test

add tests

add e2e test

linter fixes

add changeset

* fix yarn build:next

* Add `isSelectable`
2023-04-03 11:02:26 -07:00
Alexey Volkov
26ace0db28 docs(concepts): fix code example on the Editor page (#5377) 2023-04-03 11:01:50 -07:00
Joe Anderson
3c3ea29a2d Fix issue when tabbing into editor in Safari (#5383)
https://github.com/udecode/plate/issues/2315
2023-04-03 11:00:59 -07:00
Ed Hager
5a0d3974d6 Fix/delete all closes keyboard (#5368)
* fix: clean up ref handling in leaf

* fix: delay rendering of placeholder to allow selections to settle

* fix: move placeholder height calculation into layout effect

* fix: add change set

* fix: handle placeholder resizing in a better way

* fix: fix placeholder integration test
2023-03-20 09:23:54 -07:00
github-actions[bot]
3c0abeb785 Version Packages (#5370)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
slate-react@0.92.0
2023-03-17 13:06:36 -07:00
Anthony Ciccarello
d42cd005db enable eslint hooks rules (#5363) 2023-03-17 10:45:54 -07:00
alex-vladut
556a4565d2 fix: allow copying from editable void input (#5369) 2023-03-17 08:30:13 -07:00
Joe Anderson
a9c0e37472 Fix markdown-shortcuts.test.ts for webkit (#5367)
* Fix test failure on webkit

* Increase Playwright timeout
2023-03-16 16:20:41 -07:00
github-actions[bot]
4244a8d67c Version Packages (#5365)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
slate-react@0.91.11
2023-03-16 06:25:13 -07:00
Jason Cheatham
9825d29b87 Fix pasting content with newlines on Android (#5359)
* Improve InputEvent data type

* Fix insertion of content with newlines on Android

* Slice the trailing newline off of pasted text

* Add changeset
2023-03-16 06:02:15 -07:00
Jason Cheatham
4399935690 Directly paste ClipboardEvents in Safari (#5362)
* Directly paste ClipboardEvents in Safari

* Add changeset
2023-03-16 06:00:41 -07:00
Anthony Ciccarello
e587880964 Android mentions fixes (#5360)
* fixes android input events in mention example

Android keyboards use a composition text approach for autocomplete purposes.
Chrome sees the mention text and thinks it is part of the word to complete.
The simplest solution is to add zero width whitespace.

This also adds a click handler on the mention example to help
with the mobile (and desktop) testing experience.

* move mention spacer
2023-03-15 21:02:40 -07:00
Amandeep Singh
1d8010be85 Fix the nodeName from lower to upper case (#5348)
The node name should be `STRONG` instead of `strong` in the example deserialize function.
2023-03-08 06:51:37 -07:00
qirong77
ee7eac4331 fix the bug of user can't use 'mod + a' to select or delete all nodes when use image(void) element (#5344)
Co-authored-by: linqirong <609413692@qq.com>
2023-03-08 06:51:12 -07:00
github-actions[bot]
2a0a530931 Version Packages (#5345)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
slate-react@0.91.10
2023-03-07 22:28:44 -07:00
Ed Hager
a5e833f655 fix: Editable not calling decorate as it should (#5346) 2023-03-07 19:34:39 -07:00
Joe Anderson
f7f02a8b23 Fix triple-click contenteditable="false" error (#5343) 2023-03-07 10:15:59 -07:00
github-actions[bot]
bc07cf8c86 Version Packages (#5340)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
slate-react@0.91.9
2023-03-06 08:44:43 -08:00
Joe Anderson
62f8ddd971 Fix performance issue with renderPlaceholder (#5339) 2023-03-06 08:38:07 -08:00
delijah
4ab18e8998 Implement type predicate for operationCanTransformPath (#5318) 2023-03-02 23:02:35 -07:00
github-actions[bot]
429f5fe417 Version Packages (#5329)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
slate-react@0.91.8
2023-03-02 14:06:14 -05:00
Claudéric Demers
af3f828b12 Fix edge-cases when text leaf nodes are deleted (#5325) 2023-03-02 10:13:36 -07:00
陈耀耀
4205e0f002 Fix the issue of composition API and beforeinput event triggering between Chrome versions 60-75 on the Android platform. (#5327)
* fix: The issue of composition API and beforeinput event triggering between Chrome versions 60-75 on the Android platform.

* feat: add changeset

* fix: update the logic of HAS_BEFORE_INPUT_SUPPORT
2023-03-02 10:11:19 -07:00
dependabot[bot]
96ad964bee Bump minimist from 1.2.5 to 1.2.8 (#5324)
Bumps [minimist](https://github.com/minimistjs/minimist) from 1.2.5 to 1.2.8.
- [Release notes](https://github.com/minimistjs/minimist/releases)
- [Changelog](https://github.com/minimistjs/minimist/blob/main/CHANGELOG.md)
- [Commits](https://github.com/minimistjs/minimist/compare/v1.2.5...v1.2.8)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-27 20:51:46 -07:00
github-actions[bot]
3c4ca6b073 Version Packages (#5323)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
slate-react@0.91.7
2023-02-27 17:36:15 -07:00
Ed Hager
836f660054 fix: cancel debounced listeners in Editable (#5322)
* fix: cancel debounced listeners in Editable

* fix: add change set
2023-02-27 17:28:13 -07:00
github-actions[bot]
680fa9cd34 Version Packages (#5317)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
slate-react@0.91.6
2023-02-26 23:14:15 -07:00
Claudéric Demers
5784a38b6b Android related improvements (#5315)
* Allow consumer handling of `onInput` event

* Avoid restoring the DOM for characterData mutations
2023-02-26 17:27:26 -07:00
github-actions[bot]
c753e68c69 Version Packages (#5314)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
slate-react@0.91.5
2023-02-24 16:12:52 -07:00
Claudéric Demers
213edbbf3a Version Packages (#5290) (#5306)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-02-24 14:40:28 -07:00
Ed Hager
3bf568ede2 refactor: editable - combine ref callback and event handler in useIsomorphicLayoutEffect (#5313) 2023-02-24 14:40:05 -07:00
github-actions[bot]
b32428e882 Version Packages (#5312)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
slate@0.91.4 slate-react@0.91.4
2023-02-23 16:19:13 -07:00
Ziad Beyens
0ac72a626c fix: normalizeNode (#5311)
* fix

* Create large-worms-jog.md

* Update large-worms-jog.md

* Update large-worms-jog.md

* Update large-worms-jog.md

* fix
2023-02-23 16:10:08 -07:00
Bob Ippolito
b94254d694 fix: Add missing dependencies to useEffect and React.memo calls (#5289) (#5310)
* fix: Add missing dependencies to useEffect and React.memo calls (#5289)

* Add changeset
2023-02-23 13:22:52 -07:00
github-actions[bot]
942fbd7ceb Version Packages (#5304)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
slate@0.91.3 slate-react@0.91.3
2023-02-22 13:53:03 -07:00
alex-vladut
11adbf966c fix: add support for pasting plain text into editable void (#5305) 2023-02-22 13:47:38 -07:00
Ziad Beyens
84f811a79c More control on editor.normalizeNode (#5295)
* feat

* fix

* Create two-books-bow.md

* docs

* feat

* fix
2023-02-22 04:54:35 -07:00
github-actions[bot]
d0d1cb981b Version Packages (#5302)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
slate-react@0.91.2
2023-02-20 08:53:48 -07:00
宋万盛
54e4ee204c Fix sourcemap warnings in Windows (#5301)
https://github.com/ianstormtaylor/slate/issues/5300
2023-02-20 08:46:57 -07:00
Ed Hager
967d99eb36 fix: remove memory leaks in Text and Editable (#5297)
* fix: remove memory leaks in Text and Editable

* Add change set
2023-02-20 08:46:38 -07:00
github-actions[bot]
be564cef2b Version Packages (#5299)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
slate@0.91.1 slate-react@0.91.1
2023-02-18 18:47:29 -07:00
kailunyao
6fa4b954a5 Fix the cursor jump to an unexpected position after deleting in android (#5251)
* Fix the cursor jump to an unexpected position after deleting in android

* Create unlucky-chairs-promise.md

* Update unlucky-chairs-promise.md
2023-02-18 18:41:03 -07:00
hujiulong
f2607c2a52 Remove unused weak maps (#5296) 2023-02-17 11:47:28 -07:00
github-actions[bot]
8bbda102d6 Version Packages (#5290)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
slate-react@0.91.0
2023-02-13 23:44:30 -07:00