Skip to content
Open

v2 #4

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
b480247
Merge remote-tracking branch 'origin/main' into v2
zbeyens Apr 18, 2026
af67904
v2
zbeyens Apr 22, 2026
46e3c6a
v2
zbeyens Apr 27, 2026
be28f88
v2
zbeyens Apr 27, 2026
b9c7737
v2
zbeyens Apr 27, 2026
2de4ca7
v2
zbeyens Apr 28, 2026
4772ff1
v2
zbeyens May 3, 2026
1b9432d
v2
zbeyens May 4, 2026
ce2bd6c
v2
zbeyens May 4, 2026
8a19fee
v2
zbeyens May 7, 2026
2338be3
fix
zbeyens May 7, 2026
4764d33
fix
zbeyens May 8, 2026
07d7963
v2
zbeyens May 10, 2026
763e647
v2
zbeyens May 10, 2026
677d33f
v2
zbeyens May 10, 2026
e039d80
v2
zbeyens May 11, 2026
0484cc9
v2
zbeyens May 12, 2026
3f78c24
v2
zbeyens May 12, 2026
264e319
v2
zbeyens May 13, 2026
d4e4f33
v2
zbeyens May 13, 2026
c0ea74a
v2
zbeyens May 13, 2026
b787550
v2
zbeyens May 14, 2026
0d9c794
v2
zbeyens May 14, 2026
c09fffd
v2
zbeyens May 14, 2026
cf36185
v2
zbeyens May 14, 2026
1c90c93
v2
zbeyens May 14, 2026
65ac605
v2
zbeyens May 14, 2026
2c8c24c
v2
zbeyens May 15, 2026
5f8be0b
v2
zbeyens May 16, 2026
b232149
v2
zbeyens May 16, 2026
c993e07
v2
zbeyens May 16, 2026
27bab9e
v2
zbeyens May 17, 2026
76af53b
v2
zbeyens May 17, 2026
64f4d83
v2
zbeyens May 17, 2026
39af046
v2
zbeyens May 17, 2026
f6dfd99
v2
zbeyens May 17, 2026
f6c7635
v2
zbeyens May 17, 2026
6eff1f0
v2
zbeyens May 18, 2026
1e903ba
v2
zbeyens May 18, 2026
43cf151
v2
zbeyens May 18, 2026
4060e83
v2
zbeyens May 18, 2026
622745c
v2
zbeyens May 18, 2026
430ad8b
v2
zbeyens May 18, 2026
9fe4706
v2
zbeyens May 18, 2026
d5e3807
v2
zbeyens May 19, 2026
9916d19
v2
zbeyens May 19, 2026
a7710dd
v2
zbeyens May 20, 2026
6a8b18a
v2
zbeyens May 20, 2026
e62c204
v2
zbeyens May 20, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 5 additions & 0 deletions .changeset/clean-hotkeys-dance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'slate-dom': minor
---

Expose `isHotkey` for custom keyboard shortcut checks.
5 changes: 5 additions & 0 deletions .changeset/decorate-compat-source-name.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"slate-react": minor
---

Rename the legacy decoration projection adapter to `createSlateDecorateCompatSource`.
5 changes: 5 additions & 0 deletions .changeset/editor-method-target-fresh-marks.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"slate": minor
---

Expose `editor.toggleMark`, `editor.setBlock`, and `editor.toggleBlock`, and resolve implicit mark/block targets through the transaction target runtime.
7 changes: 7 additions & 0 deletions .changeset/editor-node-normalizers.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"slate": major
---

Split extension normalizers into `normalizers.editor` for editor-root normalization and `normalizers.node` for non-root node normalization.

**Migration:** Move root/value-level normalizers from `normalizers.node` to `normalizers.editor`.
5 changes: 5 additions & 0 deletions .changeset/full-transform-middleware.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"slate": patch
---

Add extension transform middleware for all public mutating editor transforms.
5 changes: 5 additions & 0 deletions .changeset/operation-validation-guards.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"slate": minor
---

Add concrete operation type guards and reject unknown operation replay records.
5 changes: 5 additions & 0 deletions .changeset/quiet-transform-middleware.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"slate": patch
---

Add extension transform middleware for `deleteBackward` and `insertText`.
5 changes: 5 additions & 0 deletions .changeset/remove-legacy-react-renderer-exports.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"slate-react": minor
---

Remove legacy renderer component exports that are not used by the semantic `Editable` runtime.
6 changes: 6 additions & 0 deletions .changeset/remove-suppress-throw-dom-projection.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"slate-dom": major
"slate-react": major
---

Remove `suppressThrow` from DOM-to-Slate projection options. Use `resolveSlatePoint` and `resolveSlateRange` for nullable projection; `toSlatePoint` and `toSlateRange` stay strict.
6 changes: 6 additions & 0 deletions .changeset/remove-transforms-namespace.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"slate": major
---

Remove the public `Transforms` namespace and require primitive document and
selection writes to run inside `editor.update(...)`.
5 changes: 5 additions & 0 deletions .changeset/richtext-history-dom-repair.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"slate-react": patch
---

Repair editor DOM after keyboard undo and redo history operations
5 changes: 5 additions & 0 deletions .changeset/runtime-id-live-path.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"slate": patch
---

Add live runtime-id path lookup for renderer-owned subscriptions.
5 changes: 5 additions & 0 deletions .changeset/selectable-void-navigation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"slate": patch
---

Fix arrow-key navigation to select selectable block and inline voids.
7 changes: 7 additions & 0 deletions .changeset/sharp-input-rules.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"slate-react": major
---

Remove `Editable` input rules and `editableInputRules`.

**Migration:** Use `editor.extend({ transforms: ... })` for model-owned input behavior, or `onDOMBeforeInput` for browser-specific input handling.
5 changes: 5 additions & 0 deletions .changeset/shell-backed-partial-paste.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"slate-react": patch
---

Preserve fragment and rich paste for shell-backed large-document selections.
5 changes: 5 additions & 0 deletions .changeset/slate-clawpatch-runtime-fixes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'slate': patch
---

Fix text insertion, fragment insertion, query cleanup, and transaction rollback runtime consistency.
5 changes: 5 additions & 0 deletions .changeset/slate-commit-metadata.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"slate": patch
---

Expose last commit metadata for transaction-aware runtime consumers
5 changes: 5 additions & 0 deletions .changeset/slate-dom-coverage-policy-fixes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'slate-dom': patch
---

Fix DOM coverage clipboard policies, broad range lookup, ShadowRoot focus sync, and void-ended copy metadata.
5 changes: 5 additions & 0 deletions .changeset/slate-dom-runtime-id-find-path.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"slate-dom": patch
---

Resolve DOM element paths through live runtime ids before falling back to weak-map indexes.
5 changes: 5 additions & 0 deletions .changeset/slate-helper-api-names.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"slate": major
---

Rename public helper value namespaces to `*Api` while keeping model type names unchanged.
5 changes: 5 additions & 0 deletions .changeset/slate-multiline-paste-expanded-selection.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"slate": patch
---

Fix multiline plain-text paste after replacing the whole editor selection
5 changes: 5 additions & 0 deletions .changeset/slate-react-browser-dev-guard.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"slate-react": patch
---

Treat missing `process.env.NODE_ENV` as production-safe for renderElement DOM coverage checks.
5 changes: 5 additions & 0 deletions .changeset/slate-react-clawpatch-ui-flow-fixes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"slate-react": patch
---

Fix React hydration, placeholder typing, virtualized previews, selector cleanup, scrolling, and DOM mapping edge cases.
5 changes: 5 additions & 0 deletions .changeset/slate-react-custom-placeholder-delete.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"slate-react": patch
---

Fix custom placeholders restoring after all editor text is deleted
5 changes: 5 additions & 0 deletions .changeset/slate-react-decorate-adapter-internal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"slate-react": patch
---

Route `decorate` through the projection-source compatibility adapter
5 changes: 5 additions & 0 deletions .changeset/slate-react-decoration-source-adapter.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"slate-react": patch
---

Add a projection-source adapter for legacy decoration callbacks
5 changes: 5 additions & 0 deletions .changeset/slate-react-dom-text-sync-capability.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"slate-react": patch
---

Expose explicit DOM text sync opt-out reasons
5 changes: 5 additions & 0 deletions .changeset/slate-react-editable-command-handler.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"slate-react": minor
---

Expose `Editable.onCommand` for native formatting input and keep native input listeners stable across handler prop changes.
5 changes: 5 additions & 0 deletions .changeset/slate-react-editable-semantic-runtime.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"slate-react": major
---

Make `Editable` use the semantic-blocks runtime with projection sources, large-document islands, and browser-safe model-owned text input.
5 changes: 5 additions & 0 deletions .changeset/slate-react-element-selected-collapsed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"slate-react": patch
---

Add options-based `useElementSelected` modes for explicit paths and block void selected UI.
11 changes: 11 additions & 0 deletions .changeset/slate-react-example-dx-cleanup.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
"slate-react": patch
---

Rename React annotation and void helper props for clearer v2 authoring.

**Migration:**

- Use `<Slate annotationStore={store}>` instead of `annotationStores={[store]}`.
- Use `useSlateAnnotations()` and `useSlateAnnotation(id)` inside `Slate` when reading the provider store.
- Use `renderVoid={({ element, path }) => ...}` instead of `target` for void paths.
5 changes: 5 additions & 0 deletions .changeset/slate-react-live-runtime-reads.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"slate-react": patch
---

Use live runtime reads for mounted text and large-document island lookup
5 changes: 5 additions & 0 deletions .changeset/slate-react-remove-child-count-chunking.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"slate-react": patch
---

Remove child-count chunking from the current React runtime
7 changes: 7 additions & 0 deletions .changeset/slate-react-render-path-props.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"slate-react": minor
---

Remove eager `path` and `index` from element render props.

Resolve the current element path inside handlers with `ReactEditor.findPath(editor, element)`, or use `useElementPath()` for path-dependent render UI.
5 changes: 5 additions & 0 deletions .changeset/slate-react-repeat-scroll-into-view.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"slate-react": patch
---

Fix repeated caret autoscroll after typing in a scrolled editor.
5 changes: 5 additions & 0 deletions .changeset/slate-react-runtime-hooks-fixes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'slate-react': patch
---

Fix decoration source option changes, SSR hook snapshots, and DOM text-sync operation counts.
5 changes: 5 additions & 0 deletions .changeset/slate-react-typed-editable-renderers.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"slate-react": patch
---

Infer element and void renderer props from keyed `editableRenderers` maps.
5 changes: 5 additions & 0 deletions .changeset/slate-react-virtualized-rendering.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"slate-react": patch
---

Add experimental TanStack-backed `renderingStrategy.type: 'virtualized'` for bounded large-document editor surfaces.
5 changes: 5 additions & 0 deletions .changeset/slate-state-nodes-to-array.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"slate": patch
---

Add `state.nodes.toArray(options, map?)` for explicit node query materialization inside read and update callbacks.
5 changes: 5 additions & 0 deletions .changeset/tame-dom-coverage-boundaries.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"slate-react": patch
---

Add unstable DOM coverage boundary slots for hidden editable regions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ dist/
lib/
node_modules/
site/out/
tmp/
*tmp/
test-results/
coverage
.DS_Store
.clawpatch/
**/next-env.d.ts
12 changes: 9 additions & 3 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,15 @@ Before opening a pull request, run the repository gate:
bun check
```

This is the canonical local and CI gate. It runs lint, typecheck, tests, and
integration. For formatting
fixes, run:
This is the fast local gate. It runs lint, typecheck, and tests.
Playwright integration coverage lives in the fuller gates:

```text
bun check:ci
bun check:full
```

For formatting fixes, run:

```text
bun lint:fix
Expand Down
29 changes: 10 additions & 19 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading