github-actions[bot]
ee2cea9ea1
Version Packages ( #5851 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
slate-dom@0.114.0
slate-react@0.114.0
slate@0.114.0
2025-04-29 08:37:35 -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
Damjan Polugic
2c62e01797
Use equalityFn in useSlateSelector during render ( #5848 )
2025-04-29 07:30:41 -07:00
Joe Anderson
0fde537b52
Add changeset for https://github.com/ianstormtaylor/slate/pull/5827 ( #5849 )
2025-04-29 07:23:57 -07:00
github-actions[bot]
1e9785a173
Version Packages ( #5845 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
slate-history@0.113.1
2025-04-15 12:54:24 -07:00
Dylan Schiemann
97e895b552
Update release.yml
2025-04-15 12:40:11 -07:00
Dylan Schiemann
8aaca4fe04
Update comment.yml
2025-04-15 12:39:41 -07:00
Dylan Schiemann
b4363424fc
Update ci.yml
2025-04-15 12:39:03 -07:00
github-actions[bot]
a25fbc3503
Version Packages ( #5832 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-04-15 11:38:51 -07:00
Eder is a nobody
701d5f320f
fix: add try/finally block in withoutSaving method to ensure state restoration ( #5837 )
...
Co-authored-by: ederjiang <eder@57blocks.com >
2025-04-15 11:28:03 -07:00
Guan-Erjia
4aa16bb8b7
fix/unit-test in slate-history( https://github.com/ianstormtaylor/slate/issues/5825 ) ( #5841 )
2025-04-15 11:27:49 -07:00
wkq
463ef3a650
fix: correct dirty path update for Text nodes ( #5842 )
...
* fix: correct dirty path update for Text nodes
Previously, the condition used was "if (!Text.isText)" without passing the node, which always evaluated to false. This caused the code to always take the branch intended for non-Text nodes, even for Text nodes. The fix now correctly checks "if (Text.isText(node))" to determine if the node is a Text node. Text nodes, which have no children, will now correctly add only their own path, while non-Text nodes continue to have all their descendant paths added. This change ensures that the dirty path update logic behaves as intended.
* Add changeset
---------
Co-authored-by: Dylan Schiemann <dylan@dojotoolkit.org >
2025-04-15 08:42:42 -07:00
Joe Anderson
63c0db5b86
Add pass
option to Editor.nodes
( #5843 )
2025-04-15 08:41:31 -07:00
Deepak Kharah
5adb8ededf
doc: add missing APIs in the doc ( #5835 )
...
* doc: add missing APIs in the doc
* refactor: apply lint
2025-04-03 22:10:34 -07:00
Louis
8b2414ab16
Fix delete line being out by 1 char ( #5827 )
2025-03-22 06:21:32 -07:00
Dylan Schiemann
6eb4bdff06
fix prettier formatting ( #5831 )
2025-03-21 14:14:24 -07:00
Ravi Lamkoti
68915e8cfa
fix: context menu undo support ( #5822 )
...
* fix: context menu undo support
* chore: add change set for context menu undo fix
* chore: fix lint
2025-03-21 14:08:03 -07:00
Mohataseem Khan
8b8fc58efc
Update scrubber.md ( #5818 )
...
improve readability
2025-03-16 19:28:09 -07:00
Mohataseem Khan
c183827ca8
Update transforms.md ( #5819 )
...
1.improved grammar
2.improved puntuations
3.improved the readability
2025-03-16 19:27:15 -07:00
Czy
a94fe72bd1
fix: unexpected table selection behavior ( #5821 )
2025-03-16 19:26:29 -07:00
jerry-lllman
1022682d82
fix(docs): correct block matching condition in Executing Commands
example ( #5808 )
2025-03-10 09:21:29 -07:00
Ravi Lamkoti
4f992cff5c
Fix example types ( #5812 )
...
* fix: types for richtext.tsx
* fix: types for check-lists, code-highlighting and custom placeholder
* fix: types for editable-voids, embeds, forced-layout, hovering-toolbar
* fix: types for remaining examples
* fix: typescript error for files in image element
* fix: types for examples and some minor fixes
* fix: normalize-tokens.ts type
* fix: types for [example].tsx
2025-03-10 09:20:10 -07:00
aberllin
7a8ab18c52
Fix: Ensure block transformation works in the example ( #5803 )
...
I noticed that the current example for toggling a code block using the backtick (`) key doesn't work as expected. The issue occurs because `Editor.nodes()` can return text nodes instead of block elements, causing`Transforms.setNodes()` to fail.
To fix this, I added an extra check using `Element.isElement(n)`, ensuring that only block elements are transformed.
2025-02-09 18:51:48 -07:00
Cauê Melo
a61baa99bd
update example links to TypeScript versions in README ( #5802 )
2025-02-02 19:54:42 -07:00
github-actions[bot]
ccb9cc20b2
Version Packages ( #5799 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
slate-dom@0.112.2
2025-01-30 16:06:15 -07:00
zhi-zhi-zhi
8216512595
fix: supplement of (fix: Prevent ReactEditor.toDOMRange crash in setDomSelection #5741 ) ( #5792 )
...
* fix: supplement of (fix: Prevent ReactEditor.toDOMRange crash in setDomSelection #5741 )
* Update packages/slate-dom/src/plugin/with-dom.ts
* Update packages/slate-dom/src/plugin/with-dom.ts
* Create gold-tomatoes-grab.md
* Update packages/slate-dom/src/plugin/with-dom.ts
* Update packages/slate-dom/src/plugin/with-dom.ts
---------
Co-authored-by: Dylan Schiemann <dylan@dojotoolkit.org >
2025-01-27 07:05:42 -07:00
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