Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zbeyens committed Jan 9, 2025
1 parent 9f378d0 commit 8ce560d
Show file tree
Hide file tree
Showing 121 changed files with 1,114 additions and 1,554 deletions.
5 changes: 5 additions & 0 deletions .changeset/lazy-cats-pull.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@udecode/plate-core': patch
---

Fix: deserialization should work with custom node types
5 changes: 5 additions & 0 deletions .changeset/sharp-bats-dance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@udecode/plate-indent-list': patch
---

Fix merging and renumbering of lists when deleting empty paragraphs between them (both backward and forward deletion)
6 changes: 6 additions & 0 deletions .changeset/slate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@udecode/slate': patch
---

- Fix `deselect`, `deselectDOM` methods
- Remove all `LegacyEditorMethods` from `Editor`
625 changes: 625 additions & 0 deletions BREAKING_CHANGES.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ const DiffPlugin = toPlatePlugin(
} as any
)[diffOperation.type];

const Component = editor.isInline(element) ? 'span' : 'div';
const Component = editor.api.isInline(element) ? 'span' : 'div';

return (
<Component
Expand Down Expand Up @@ -252,7 +252,7 @@ function Diff({ current, previous }: DiffProps) {
});

return computeDiff(previous, cloneDeep(current), {
isInline: editor.isInline,
isInline: editor.api.isInline,
lineBreakChar: '¶',
}) as Value;
}, [previous, current]);
Expand Down
1 change: 1 addition & 0 deletions jest.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ module.exports = {
...getTsConfigBasePaths(),
...modules,
},
modulePathIgnorePatterns: ['<rootDir>/packages/common/dist/'],
preset: 'ts-jest',
setupFilesAfterEnv: ['<rootDir>/scripts/setupTests.ts'],
testEnvironment: 'jsdom',
Expand Down
2 changes: 1 addition & 1 deletion packages/autoformat/src/lib/transforms/autoformatBlock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const autoformatBlock = (
// Don't autoformat if there is void nodes.
const hasVoidNode = editor.api.some({
at: matchRange,
match: (n) => ElementApi.isElement(n) && editor.isVoid(n),
match: (n) => ElementApi.isElement(n) && editor.api.isVoid(n),
});

if (hasVoidNode) continue;
Expand Down
3 changes: 0 additions & 3 deletions packages/common/.npmignore

This file was deleted.

238 changes: 0 additions & 238 deletions packages/common/CHANGELOG.md

This file was deleted.

5 changes: 0 additions & 5 deletions packages/common/README.md

This file was deleted.

49 changes: 0 additions & 49 deletions packages/common/package.json

This file was deleted.

1 change: 0 additions & 1 deletion packages/common/src/index.ts

This file was deleted.

1 change: 0 additions & 1 deletion packages/common/src/keep.ts

This file was deleted.

7 changes: 0 additions & 7 deletions packages/common/tsconfig.build.json

This file was deleted.

5 changes: 0 additions & 5 deletions packages/common/tsconfig.json

This file was deleted.

Loading

0 comments on commit 8ce560d

Please sign in to comment.