github-actions[bot]
bcbc64d944
Version Packages ( #5896 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-06-10 15:27:44 -07:00
Joe Anderson
fb87646e86
Experimental chunking optimisation and other performance improvements ( #5871 )
...
* Chunking optimization
* Fix comments
* Remove redundant `insertionsMinusRemovals` variable
* Fix typo
* Unblock Netlify builds
* Add placeholder
* Upgrade Playwright (fixes crash when debugging)
* Fix `autoFocus` not working
* Fix huge document test
* Fix the previous issue without changing `useSlateSelector`
* Retry `test:integration`
* Re-implement `useSlateWithV`
* Retry `test:integration`
* Update docs
* Update JS examples to match TS examples
* Upload Playwright's `test-results` directory in CI to access traces
* Change trace mode to `retain-on-first-failure`
* Fix: `Locator.fill(text)` is flaky on Editable
* Add changesets
* Increase minimum `slate-dom` version
* Update changeset
* Update 09-performance.md
* Deprecate the `useSlateWithV` hook
* Fix errors and improve clarity in 09-performance.md
* Minimum `slate-dom` version is now 0.116
* Update `yarn.lock`
2025-06-06 16:42:11 -07:00
github-actions[bot]
9cce07b23f
Version Packages ( #5860 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-06-02 07:44:35 -07:00
Joe Anderson
05263b544c
Fix Firefox IME bug caused by placeholder ( #5881 )
2025-05-24 13:56:18 -07:00
Joe Anderson
747ebfda0a
Fix IME crash on iOS, but break capitalisation on iOS ( #5877 )
...
* Revert "Make capitalizing work for iOS (#5654 )"
This reverts commit 2a8b4e958b
.
* Add changeset
* Reference the older issue in comment
2025-05-24 13:53:27 -07:00
Joe Anderson
72532fd2d7
Optimize isText
, isElement
, isNodeList
and isEditor
( #5859 )
...
* Remove the `isPlainObject` check from `isText` and `isElement` for performance
* Optimise `isElement`, `isNodeList` and `isText` further
* Update changeset
* Fix changeset
* Refactor object check into `isObject`
2025-05-05 08:31:56 -07:00
github-actions[bot]
d39bead80a
Version Packages ( #5857 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-04-30 18:24:36 -07:00
github-actions[bot]
b001c68b10
Version Packages ( #5856 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-04-30 12:41:43 -07:00
Ziad Beyens
ec367fb04f
Missing renderText
( #5855 )
...
* fix
* fix
2025-04-30 08:41:04 -07:00
Joe Anderson
9fe6184ca2
Increase slate-react
's minimum slate
version to 0.114.0 ( #5853 )
2025-04-30 08:40:53 -07:00
github-actions[bot]
ee2cea9ea1
Version Packages ( #5851 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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
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
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
github-actions[bot]
ccb9cc20b2
Version Packages ( #5799 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-01-30 16:06:15 -07:00
github-actions[bot]
49da0dfc53
Version Packages ( #5796 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
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
github-actions[bot]
dbd0a3efec
Version Packages ( #5767 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
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
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>
2024-11-01 10:44:47 -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
github-actions[bot]
f9ebbb8808
Version Packages ( #5744 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
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
github-actions[bot]
f2e2117bdb
Version Packages ( #5719 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-10-16 22:10:39 -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
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
github-actions[bot]
85a1e1d3f3
Version Packages ( #5717 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-09-12 14:37:18 -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]
7e77a932f0
Version Packages ( #5705 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-09-02 19:52:33 -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>
2024-08-22 22:43:00 -07:00
yf-yang
6cb38e37a4
feat: add useComposing hook ( #5695 )
2024-08-20 16:03:03 -07:00
github-actions[bot]
c3a4e1e3f9
Version Packages ( #5693 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-08-12 04:52:27 -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
github-actions[bot]
6548197540
Version Packages ( #5682 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-07-16 02:26:21 -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>
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
github-actions[bot]
97c88dbc25
Version Packages ( #5662 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-06-25 04:09:04 -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>
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>
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