1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-18 13:11:17 +02:00
Commit Graph

4279 Commits

Author SHA1 Message Date
github-actions[bot]
85a1e1d3f3 Version Packages (#5717)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
slate-react@0.110.1
2024-09-12 14:37:18 -07:00
Ty Mick
3861cc1a97 Update VS Code SDKs (#5718)
All changes were generated by the following command:

```
$ yarn dlx @yarnpkg/sdks vscode
➤ YN0000: · Yarn 4.0.2
➤ YN0000: ┌ Resolution step
➤ YN0085: │ + @yarnpkg/sdks@npm:3.2.0, @arcanis/slice-ansi@npm:1.1.1, and 102 more.
➤ YN0000: └ Completed in 0s 540ms
➤ YN0000: ┌ Fetch step
➤ YN0013: │ 104 packages were added to the project (+ 2.89 MiB).
➤ YN0000: └ Completed in 0s 293ms
➤ YN0000: ┌ Link step
➤ YN0000: └ Completed in 1s 72ms
➤ YN0000: · Done in 1s 942ms

➤ YN0000: Cleaning up the existing SDK files...
➤ YN0000: ┌ Generating SDKs inside .yarn/sdks
➤ YN0000: │ ✓ Eslint
➤ YN0000: │ ✓ Prettier
➤ YN0000: │ ✓ Typescript
➤ YN0000: │ • 5 SDKs were skipped based on your root dependencies
➤ YN0000: └ Completed
➤ YN0000: ┌ Generating settings
➤ YN0000: │ ✓ Vscode (updated 🔼)
➤ YN0000: └ Completed
```
2024-09-12 14:36:02 -07:00
Ty Mick
10abeff84f Fix selections with non-void non-editable focus (#5716)
* Fix selections with non-void non-editable focus

"Non-void non-editable" refers to `contentEditable={false}` DOM nodes
that are rendered by a Slate element render but which are not void
elements. For instance, [the checkboxes in the checklists example][1].

[1]: 7e77a932f0/site/examples/check-lists.tsx (L153-L170)

* fixup! Fix selections with non-void non-editable focus

Optimize leaf node search

* fixup! Fix selections with non-void non-editable focus

Rename `focusNodeSelectable` to `focusNodeIsSelectable`

A more accurate name given this PR's changes.

* fixup! Fix selections with non-void non-editable focus

Remove inapplicable `if` branch

* fixup! Fix selections with non-void non-editable focus

Improve comment
2024-09-12 10:53:44 -07:00
github-actions[bot]
34c17af979 Version Packages (#5712)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-09-10 04:00:10 -07:00
github-actions[bot]
7e77a932f0 Version Packages (#5705)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
slate-react@0.110.0
2024-09-02 19:52:33 -07:00
dependabot[bot]
903b459184 chore(deps): bump axios from 1.6.1 to 1.7.4 (#5700)
Bumps [axios](https://github.com/axios/axios) from 1.6.1 to 1.7.4.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v1.6.1...v1.7.4)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-02 19:51:59 -07:00
yf-yang
f9e83b807f fix: expose use-composing (#5706)
* fix: expose use-composing

* chore: add changeset
2024-08-28 12:18:38 -07:00
github-actions[bot]
e09ed7bf3e Version Packages (#5699)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
slate-history@0.109.0 slate-react@0.109.0
2024-08-22 22:43:00 -07:00
dependabot[bot]
34e54f37b7 chore(deps): bump ws from 8.14.2 to 8.18.0 (#5702)
Bumps [ws](https://github.com/websockets/ws) from 8.14.2 to 8.18.0.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/8.14.2...8.18.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-22 22:42:06 -07:00
dependabot[bot]
8d4ce202e7 chore(deps): bump braces from 3.0.2 to 3.0.3 (#5658)
Bumps [braces](https://github.com/micromatch/braces) from 3.0.2 to 3.0.3.
- [Changelog](https://github.com/micromatch/braces/blob/master/CHANGELOG.md)
- [Commits](https://github.com/micromatch/braces/compare/3.0.2...3.0.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-20 16:19:02 -07:00
yf-yang
6cb38e37a4 feat: add useComposing hook (#5695) 2024-08-20 16:03:03 -07:00
Felix Feng
e5fed793e7 Add withMerging (#5696) 2024-08-20 16:01:23 -07:00
github-actions[bot]
c3a4e1e3f9 Version Packages (#5693)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
slate-react@0.108.0
2024-08-12 04:52:27 -07:00
Sunny Hirai
2c9d5ec87f Update Transforms.setNodes documentation 2024-08-08 08:21:29 -07:00
yf-yang
b8bf92dc7e feat: Forward ref from <Editable /> (#5681)
* feat: Forward ref from <Editable />

* docs: add changeset

* Update packages/slate-react/src/components/editable.tsx

* Update packages/slate-react/src/components/editable.tsx

---------

Co-authored-by: Dylan Schiemann <dylan@dojotoolkit.org>
2024-08-07 12:29:40 -07:00
Todor Andonov
af21468a23 move types to dev dependencies (#5683) 2024-08-07 08:00:17 -07:00
Czy
4381003a25 fix: avoid IME input being interrupted in MacOS (#5685)
Co-authored-by: HUYIFU <1138444283@qq.com>
2024-08-01 10:46:06 -07:00
Joe Anderson
a6910b70a0 Fix XSS in examples (#5688) 2024-08-01 07:41:44 -07:00
github-actions[bot]
6548197540 Version Packages (#5682)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
slate-react@0.107.1
2024-07-16 02:26:21 -07:00
Tim Farnam
754ad5596d Update Products listing to include Hot Page, rename Netlify CMS to Decap (#5675) 2024-07-15 12:25:23 -07:00
Czy
a9a7040583 fix: unexpected event triggered when using ReactEditor.focus (#5677)
* chore: reproduce the problem env

* fix: unexpected event triggered

* feat: onValueChange unit test
2024-07-15 12:25:06 -07:00
github-actions[bot]
5838e36229 Version Packages (#5678)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
slate-react@0.107.0
2024-07-08 10:49:56 -07:00
Ivan Sysoi
ec9e5f0a36 fix: focus loss inside Shadow DOM in Firefox. (#5676) 2024-07-08 07:13:29 -07:00
Dalibor Tošić
0dc5852da0 fix shadow-dom test (#5674) 2024-07-05 07:14:36 -07:00
Dalibor Tošić
1056934eaf fix integration tests (#5673) 2024-07-04 08:01:38 -07:00
Czy
c46c421530 fix: site example(Search Highlighting) range (#5670)
* fix: search-highlighting decorate index

* feat: streamlined algorithm
2024-06-28 07:20:31 -07:00
github-actions[bot]
97c88dbc25 Version Packages (#5662)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
slate-react@0.106.0
2024-06-25 04:09:04 -07:00
fortyoneplustwo
ca8110605c Add Notestamp to resources.md (#5660)
* List Notestamp (both app and text-editor) under Products and Editors

* List Notestamp in alphabetical order in resources.md
2024-06-24 14:52:03 -07:00
Joe Anderson
0016f9843f Make drop and dragend event handlers global (#5664) 2024-06-23 14:13:40 -07:00
Czy
ab3570d166 chore: export WeakMap for on-demand retrieval of Path (#5657)
* chore: export node path utils

* chore: code style empty line
2024-06-20 16:24:10 -07:00
Mahmoud Elsayad
e6254f706a Enable Shadow DOM fix for Safari 17. (#5659)
* Enable Safari Shadow DOM fix for Safari 17.

* Create weak-files-jam.md

* Update changeset.
2024-06-20 16:20:53 -07:00
github-actions[bot]
f3be9f1292 Version Packages (#5656)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
slate-react@0.105.0
2024-06-04 08:47:44 -07:00
Alexey Starostin
2a8b4e958b Make capitalizing work for iOS (#5654)
* Make capitalizing work for iOS

* Add changeset

---------

Co-authored-by: Alexey Starostin <astarostin@astarostin-pc.local>
2024-06-03 20:22:33 -07:00
github-actions[bot]
9ee604e17a Version Packages (#5651)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
slate-react@0.104.0
2024-05-15 15:47:43 -07:00
Mahmoud Elsayad
0bb7be5496 Add Safari workaround inside shadow DOM. (#5648)
* Add Safari workaround inside shadow DOM.

* Add E2E test.

* Move browser checks to environment.ts

* Remove leftover @ts-ignore.
Fix linting change.

* Update `getActiveElement`

* Create red-poems-wave.md

* Fix prettier.

* Update E2E test.
2024-05-15 08:17:18 -07:00
dependabot[bot]
d0d4c63649 chore(deps): bump ejs from 3.1.9 to 3.1.10 (#5646)
Bumps [ejs](https://github.com/mde/ejs) from 3.1.9 to 3.1.10.
- [Release notes](https://github.com/mde/ejs/releases)
- [Commits](https://github.com/mde/ejs/compare/v3.1.9...v3.1.10)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-09 09:14:47 -07:00
Ryan
c6b4669d15 Add EasyEmailPro to resources.md (#5641) 2024-04-29 20:35:35 -07:00
github-actions[bot]
b48f1d64d6 Version Packages (#5626)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
slate@0.103.0
2024-04-21 13:19:27 -07:00
Joe Anderson
eb76a3d463 Fix linting error in changeset (#5637) 2024-04-21 13:04:52 -07:00
felixfeng
d271c4be54 chore: add shouldMergeNodesRemovePrevNode (#5621)
* chore: add shouldMergeNodesRemovePrevNode

* fix: typo
2024-04-01 16:22:12 -07:00
John Costa
4470f37057 feat(normalize-node): Adding children field to prevent erronous nodes from breaking notebooks. (#5620)
* FEAT: Adding children array to erronous node to prevent various `children undefined` errors

* CHORE: Adding changeset
2024-04-01 16:19:54 -07:00
Ravi Lamkoti
e71e6ce247 Update 07-enabling-collaborative-editing.md (#5618)
Fix color code for user. It doesn't work with today's color code
2024-03-16 16:57:03 -07:00
dependabot[bot]
a22a395663 chore(deps): bump follow-redirects from 1.15.4 to 1.15.6 (#5619)
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.4 to 1.15.6.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.15.4...v1.15.6)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-16 16:56:34 -07:00
Julian Lu
2fba2d93a1 chore: add mocha tests launch configuration (#5609)
* chore: add mocha tests launch configuration

* fix: Use Prettier code style
2024-02-26 09:40:07 -07:00
dependabot[bot]
528e164b55 Bump ip from 1.1.5 to 1.1.9 (#5607)
Bumps [ip](https://github.com/indutny/node-ip) from 1.1.5 to 1.1.9.
- [Commits](https://github.com/indutny/node-ip/compare/v1.1.5...v1.1.9)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-24 23:47:44 -07:00
Silas Rhyneer
f0f4772264 fix: automatically inserts an empty text node after inserting an image (#5598)
* fix: automatically inserts an empty text node after inserting an image

Fixes #5597

* Update site/examples/images.tsx

* Update site/examples/images.tsx

* Update site/examples/images.tsx

---------

Co-authored-by: Dylan Schiemann <dylan@dojotoolkit.org>
2024-02-09 05:54:51 -07:00
github-actions[bot]
b04b7e0e98 Version Packages (#5602)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
slate@0.102.0 slate-react@0.102.0
2024-02-07 05:06:40 -07:00
mainhanu
3aaf3b517c Transform.insertNodes & Transform.insertFragment performance optimize (#5543)
* feat: insertNodes & insertFragment performance optimize

* chore: change set

* feat: add unit test

---------

Co-authored-by: mainhanu@outlook.com <xingchi.mxc@alibaba-inc.com>
2024-02-07 05:01:16 -07:00
Joe Anderson
c2ae1eda91 Do not move selection outside inline node when composition starts (#5541) 2024-02-07 04:50:25 -07:00
Abner Yang
cd93871ae6 Fix relative url to normalizing-11.md (#5596) 2024-01-27 23:05:04 -07:00