Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
zbeyens committed May 10, 2021
1 parent bb1a111 commit 28f30c8
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 8 deletions.
8 changes: 8 additions & 0 deletions .changeset/ten-houses-work.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
"@udecode/slate-plugins-break": patch
"@udecode/slate-plugins-common": patch
"@udecode/slate-plugins-code-block": patch
"@udecode/slate-plugins-trailing-block": patch
---

fix: support paragraph custom type
5 changes: 4 additions & 1 deletion .changeset/twenty-crabs-beg.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@
"@udecode/slate-plugins-node-id": patch
---

fix(nodeId): check if operation is in history
fix:
- checks if there is a node with the same id in the editor to avoid
duplicate ids
- `query` now works when splitting nodes
3 changes: 1 addition & 2 deletions .changeset/wet-dolphins-decide.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
"@udecode/slate-plugins-autoformat": patch
"@udecode/slate-plugins-core": patch
---

fix(autoformat-plugin): improve typings on createAutoformatPlugin
fix: `getSlatePluginWithOverrides` options types
8 changes: 3 additions & 5 deletions packages/autoformat/src/createAutoformatPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import {
} from '@udecode/slate-plugins-common';
import {
getSlatePluginWithOverrides,
SPEditor,
WithOverride,
} from '@udecode/slate-plugins-core';
import castArray from 'lodash/castArray';
Expand Down Expand Up @@ -113,7 +112,6 @@ export const withAutoformat = ({
/**
* @see {@link withAutoformat}
*/
export const createAutoformatPlugin = getSlatePluginWithOverrides<
SPEditor,
(opts: WithAutoformatOptions) => WithOverride<SPEditor>
>(withAutoformat);
export const createAutoformatPlugin = getSlatePluginWithOverrides(
withAutoformat
);

0 comments on commit 28f30c8

Please sign in to comment.