github-actions[bot]
49da0dfc53
Version Packages ( #5796 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
slate-react@0.112.1
2025-01-20 10:34:09 -07:00
Joe Anderson
f456dfbf13
Ignore selectionchange
events originating from <input>
and <textarea>
elements ( #5795 )
...
* Ignore `selectionchange` events originating from `<input>` and `<textarea>` elements
* Linter fixes
2025-01-20 08:08:46 -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
宋万盛
5c349ad91b
Update package.json: add "slate-dom": "workspace:*", to help IDE identify import xx from "slate-dom" ( #5784 )
2024-12-25 07:16:53 -07:00
github-actions[bot]
dbd0a3efec
Version Packages ( #5767 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
slate-react@0.112.0
slate@0.112.0
2024-12-07 13:24:38 -07:00
yf-yang
5a1c728c62
feat: add optional method to decoration object ( #5776 )
2024-12-07 00:19:30 -07:00
Pengfei Han
6bc5758358
docs: specify default value of edge
in Editor.point
as start
( #5765 )
...
Clarify in the documentation that the default value for `edge` in `Editor.point` is `start`.
This is helpful for developers who are not deeply familiar with the framework but need to quickly use it for development.
They no longer need to inspect the source code or experiment with sample code to understand the default behavior.
2024-11-26 11:49:43 -07:00
Ty Mick
40686c2ebb
Add HistoryEditor.withNewBatch
to docs ( #5769 )
2024-11-22 17:01:22 -07:00
Alex
4bc552f71f
Fix normalizeNode
to keep text/inline nodes when removing blocks ( #5768 )
...
* fix: fix data loss in base `normalizeData` if no blocks allowed
Use `unwrapNodes` instead of `removeNodes` to
convert block to inline/text nodes.
* changeset
2024-11-22 17:01:11 -07:00
Adrien Poupa
90fbcdeff5
fix: Prevent ReactEditor.toDOMRange crash in setDomSelection ( #5741 )
2024-11-19 11:19:24 -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
github-actions[bot]
49ba21a7ba
Version Packages ( #5758 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
slate-dom@0.111.0
slate-react@0.111.0
2024-11-01 10:44: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
Brian Ingles
9a21251270
refactor: Split out slate dom package ( #5734 )
...
* Copied some things from slate-react into new react-dom package
* Refactor slate-react to use slate-dom
* Fixed failing tests
* Created changeset
* Ran fix:prettier
* Fixed name
* Removed duplicate code
* Fixed import
* Restored linting rule
* Bumped slate-dom version
* Bumped slate dependency version
* Added export of IS_NODE_MAP_DIRTY after rebase
2024-10-31 07:20:34 -07:00
Dylan Schiemann
7e1608018b
Add forthcoming slate-dom package to changeset config ( #5753 )
...
* Add forthcoming slate-dom package to changeset config
* Update .changeset/config.json
2024-10-31 07:18:34 -07:00
github-actions[bot]
f9ebbb8808
Version Packages ( #5744 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
slate-history@0.110.3
slate-react@0.110.3
2024-10-24 06:21:28 -07:00
DustinMackintosh
e97a9f8857
fix: invalidate node maps when nodes change in-between paints #5694 . ( #5746 )
...
* fix: invalidate node maps when nodes change in-between paints #5694 .
* Add patch changeset
* Catch additional invalide reference on Android
2024-10-23 23:12:03 -07:00
Ziad Beyens
0e1e4b4dbf
History: withNewBatch ( #5747 )
...
* feat
* Create gold-cheetahs-rest.md
* refactor
* fix
2024-10-21 04:55:54 -07:00
github-actions[bot]
f2e2117bdb
Version Packages ( #5719 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
slate-react@0.110.2
slate@0.110.2
2024-10-16 22:10:39 -07:00
Czy
8dee391dfd
chore: upgrade ci node20 ( #5743 )
2024-10-16 22:10:04 -07:00
Czy
cd21bb1f80
fix: sync state on undo when editor is unfocused ( #5737 )
...
* fix: undo event when not focused
* chore: add changeset
* Add `HistoryEditor.withMerging` to docs (#5738 )
* chore: just trigger test:integration
* chore: trigger test:integration
* fix: firefox test integration environment (#5742 )
* fix: fix firefox test integration env
* chore: test ubuntu apt source
* chore: IMMUTABLE_INSTALLS ?
* fix: ubuntu version
* fix: undo event when not focused
* chore: add changeset
* chore: just trigger test:integration
* chore: trigger test:integration
---------
Co-authored-by: Ty Mick <5317080+TyMick@users.noreply.github.com >
2024-10-16 10:15:21 -07:00
Czy
97ffee4749
fix: firefox test integration environment ( #5742 )
...
* fix: fix firefox test integration env
* chore: test ubuntu apt source
* chore: IMMUTABLE_INSTALLS ?
* fix: ubuntu version
2024-10-16 07:54:14 -07:00
Ty Mick
c9d94711cc
Add HistoryEditor.withMerging
to docs ( #5738 )
2024-10-15 12:29:29 -07:00
Czy
8c7f7ea6ac
fix: chromium interrupt ime ( #5736 )
2024-10-08 06:55:45 -07:00
Electrolux
b1a1021612
feat: add prop surrounds with range ( #5729 )
...
* feat: add prop surrounds with range
* Create small-carrots-jam.md
* fix: docx about range.included
---------
Co-authored-by: Dylan Schiemann <dylan@dojotoolkit.org >
2024-09-26 06:18:05 -07:00
Hernán Sartorio
335c54188f
Call unref on pathRefs created for move_node ( #5727 )
...
* Call unref on pathRefs created for move_node
* Create old-frogs-run.md
---------
Co-authored-by: Dylan Schiemann <dylan@dojotoolkit.org >
2024-09-26 00:24:33 -07:00
Ravi Lamkoti
01dc30b81d
Add Javascript Examples Support ( #5722 )
...
* chore: moved all ts files for examples to examples/ts
* add: tsc to eject js and jsx output
* example: add js transpiled examples
* example: update example site to show both js and ts code
* chore: fix yarn lint
* fix(example): getAllExamplesPath
2024-09-26 00:24:11 -07:00
Ravi Lamkoti
ee2c45408c
feat: add Node.getIf method ( #5723 )
...
* feat: add Node.getIf support
* chore: restructure get to use getIf
2024-09-26 00:23:48 -07:00
Czy
f31167cf5f
fix: marks at the start of the selection ( #5725 )
...
* fix: marks at the start of the selection
* chore: modify unit test description
2024-09-26 00:21:49 -07:00
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