Skip to content

Commit

Permalink
Merge pull request udecode#3420 from udecode/plate-35
Browse files Browse the repository at this point in the history
🚨 Plate 37
  • Loading branch information
zbeyens authored Aug 29, 2024
2 parents 7ba3e84 + a726554 commit f3e7102
Show file tree
Hide file tree
Showing 2,981 changed files with 62,207 additions and 47,990 deletions.
6 changes: 6 additions & 0 deletions .changeset/alignment.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@udecode/plate-alignment': major
---

- `createAlignPlugin` -> `AlignPlugin`
- `setAlign`: remove `key` option
5 changes: 5 additions & 0 deletions .changeset/autoformat-a.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@udecode/plate-autoformat': major
---

- `createAutoformatPlugin` -> `AutoformatPlugin`
9 changes: 9 additions & 0 deletions .changeset/basic-elements-a.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
'@udecode/plate-basic-elements': major
---

- `createBasicElementPlugins` -> `BasicElementsPlugin`
- `createBlockquotePlugin` -> `BlockquotePlugin`
- `createCodeBlockPlugin` -> `CodeBlockPlugin`
- `createHeadingPlugin` -> `HeadingPlugin`
- Move paragraph plugin to `@udecode/plate-core`
13 changes: 13 additions & 0 deletions .changeset/basic-marks-a.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
'@udecode/plate-basic-marks': major
---

- `createBasicMarksPlugins` -> `BasicMarksPlugin`
- `createBoldPlugin` -> `BoldPlugin`
- `createCodePlugin` -> `CodePlugin`
- `createItalicPlugin` -> `ItalicPlugin`
- `createStrikethroughPlugin` -> `StrikethroughPlugin`
- `createSubscriptPlugin` -> `SubscriptPlugin`
- `createSuperscriptPlugin` -> `SuperscriptPlugin`
- `createUnderlinePlugin` -> `UnderlinePlugin`
- All mark plugins removed `hotkey` option. Use `plugin.shortcuts` instead (see plate-core)
5 changes: 5 additions & 0 deletions .changeset/block-quote-a.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@udecode/plate-block-quote': major
---

- `createBlockquotePlugin` -> `BlockquotePlugin`
7 changes: 7 additions & 0 deletions .changeset/break-a.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@udecode/plate-break': major
---

- `createSoftBreakPlugin` -> `SoftBreakPlugin`
- `createExitBreakPlugin` -> `ExitBreakPlugin`
- `createSingleLinePlugin` -> `SingleLinePlugin`
12 changes: 12 additions & 0 deletions .changeset/caption-a.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
'@udecode/plate-caption': major
---

- `createCaptionPlugin` -> `CaptionPlugin`
- `CaptionPlugin` options:
- Rename `pluginKeys` to `plugins`
- Rename `focusEndCaptionPath` to `focusEndPath`
- Rename `focusStartCaptionPath` to `focusStartPath`
- Rename `showCaptionId` to `visibleId`
- Rename `isShow` to `isVisible`
- Move `captionGlobalStore` to `CaptionPlugin`
5 changes: 5 additions & 0 deletions .changeset/cloud.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@udecode/plate-cloud': major
---

- `createCloudPlugin` -> `CloudPlugin`
8 changes: 8 additions & 0 deletions .changeset/code-block-a.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
'@udecode/plate-code-block': major
---

- `createCodeBlockPlugin` -> `CodeBlockPlugin`
- NEW `CodeLinePlugin`
- NEW `CodeSyntaxPlugin`
- Remove `getCodeLineType`, use `editor.getType(CodeLinePlugin)` instead
5 changes: 5 additions & 0 deletions .changeset/combobox-a.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@udecode/plate-combobox': major
---

- Split build into `@udecode/plate-combobox` and `@udecode/plate-combobox/react`.
21 changes: 21 additions & 0 deletions .changeset/comments-a.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
'@udecode/plate-comments': major
---

- `createCommentsPlugin` -> `CommentsPlugin`
- Move `commentsStore` to `CommentsPlugin`
- Remove `CommentsProvider` and its hooks
- Remove `useCommentsStates` (replaced by direct option access)
- Remove `useCommentsSelectors` (replaced by option selectors)
- Remove `useCommentsActions` (replaced by api methods)
- Replace `useUpdateComment` with `api.comment.updateComment`
- Replace `useAddRawComment` with `api.comment.addRawComment`
- Replace `useAddComment` with `api.comment.addComment`
- Replace `useRemoveComment` with `api.comment.removeComment`
- Replace `useResetNewCommentValue` with `api.comment.resetNewCommentValue`
- Replace `useNewCommentText` with `options.newText`
- Replace `useMyUser` with `options.myUser`
- Replace `useUserById` with `options.userById`
- Replace `useCommentById` with `options.commentById`
- Replace `useActiveComment` with `options.activeComment`
- Replace `useAddCommentMark` with `insert.comment`
6 changes: 6 additions & 0 deletions .changeset/common.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@udecode/plate-common': major
---

- Split build into `@udecode/plate-common` and `@udecode/plate-common/react`.
- NEW `/react` exports `@udecode/react-hotkeys`
2 changes: 1 addition & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": ["www", "e2e-examples"]
"ignore": ["www"]
}
Loading

0 comments on commit f3e7102

Please sign in to comment.