-
Notifications
You must be signed in to change notification settings - Fork 766
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat * feat * feat * feat * feat * feat * feat * feat * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix * fix
- Loading branch information
Showing
202 changed files
with
3,797 additions
and
3,883 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@udecode/plate-ui-button': minor | ||
--- | ||
|
||
- `PlateButton` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
'@udecode/plate-ui-button': major | ||
--- | ||
|
||
- moved `Button` to `@udecode/plate-button` | ||
- `Button` is now unstyled |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
'@udecode/plate-combobox': major | ||
--- | ||
|
||
- deps: | ||
- replaced `@udecode/plate-ui-popper` by `@udecode/plate-floating` | ||
- `comboboxStore`: | ||
- removed `popperContainer`, use `floatingOptions` instead | ||
- removed `popperOptions`, use `floatingOptions` instead |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
'@udecode/plate-core': minor | ||
--- | ||
|
||
- new dep + re-exports `"react-hotkeys-hook": "^3.4.6"` | ||
- new core plugin `createSelectionPlugin` | ||
- stores the previous selection in `editor.prevSelection` (default is `null`) | ||
- enabled by default, can be disabled using `selection` key | ||
- new `PlatePlugin` props: | ||
- `renderAboveEditable`: Render a component above `Editable`. | ||
- `renderAfterEditable`: Render a component after `Editable`. | ||
- `renderBeforeEditable`: Render a component before `Editable`. | ||
- `Plate`: | ||
- pipes plugins `renderAboveEditable` and render the result above `Editable` | ||
- pipes plugins `renderAfterEditable` and render the result after `Editable`, before `children` | ||
- pipes plugins `renderBeforeEditable` and render the result before `Editable`, after `firstChildren` | ||
- new queries | ||
- `getNextNodeStartPoint` | ||
- `getPreviousNodeEndPoint` | ||
- new hooks | ||
- `useOnClickOutside` | ||
- `PlateEditor` new prop: | ||
- `prevSelection: TRange | null;` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
'@udecode/plate-floating': minor | ||
--- | ||
|
||
- new package replacing `plate-popper` | ||
- dep: | ||
- `"@floating-ui/react-dom-interactions": "^0.6.6"` | ||
- re-exports `@floating-ui/react-dom-interactions` | ||
- utils: | ||
- `createVirtualElement` | ||
- `useVirtualFloating` | ||
- `getSelectionBoundingClientRect` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
'@udecode/plate-headless': minor | ||
--- | ||
|
||
- new deps + re-exports: | ||
- `@udecode/plate-button` | ||
- `@udecode/plate-floating` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
'@udecode/plate-link': major | ||
--- | ||
|
||
- `createLinkPlugin` | ||
- removed `onKeyDownLink` for floating link | ||
- removed `hotkey` for `triggerFloatingLinkHotkeys` | ||
- removed: | ||
- `getAndUpsertLink` for `upsertLink` | ||
- `upsertLinkAtSelection` for `upsertLink` | ||
- `LinkToolbarButton`: | ||
- `onClick` now calls `triggerFloatingLink` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
--- | ||
'@udecode/plate-link': minor | ||
--- | ||
|
||
- new dep: | ||
- `@udecode/plate-button` | ||
- new unstyled components + props hooks: | ||
- `PlateFloatingLink` | ||
- `LinkRoot` | ||
- `FloatingLink` | ||
- `FloatingLinkEditRoot` | ||
- `FloatingLinkInsertRoot` | ||
- `FloatingLinkUrlInput` | ||
- `FloatingLinkTextInput` | ||
- `FloatingLinkEditButton` | ||
- `UnlinkButton` | ||
- `OpenLinkButton` | ||
- new store: `floatingLinkStore` | ||
- `LinkPlugin` new props: | ||
- `triggerFloatingLinkHotkeys`: Hotkeys to trigger floating link. Default is 'command+k, ctrl+k' | ||
- new utils: | ||
- `insertLink` | ||
- `submitFloatingLink` | ||
- `unwrapLink` | ||
- `upsertLink` | ||
- `createLinkNode` | ||
- `triggerFloatingLink` | ||
- `triggerFloatingLinkEdit` | ||
- `triggerFloatingLinkInsert` | ||
|
||
Specs: | ||
- Insert data: | ||
- https://github.com/udecode/editor-protocol/issues/34 | ||
- https://github.com/udecode/editor-protocol/issues/35 | ||
- https://github.com/udecode/editor-protocol/issues/36 | ||
- https://github.com/udecode/editor-protocol/issues/37 | ||
- https://github.com/udecode/editor-protocol/issues/38 | ||
- https://github.com/udecode/editor-protocol/issues/43 | ||
- Insert space: | ||
- https://github.com/udecode/editor-protocol/issues/39 | ||
- https://github.com/udecode/editor-protocol/issues/40 | ||
- https://github.com/udecode/editor-protocol/issues/41 | ||
- https://github.com/udecode/editor-protocol/issues/42 | ||
- Floating link: | ||
- https://github.com/udecode/editor-protocol/issues/45 | ||
- https://github.com/udecode/editor-protocol/issues/48 | ||
- https://github.com/udecode/editor-protocol/issues/51 | ||
- https://github.com/udecode/editor-protocol/issues/60 | ||
- Floating link insert: | ||
- https://github.com/udecode/editor-protocol/issues/44 | ||
- https://github.com/udecode/editor-protocol/issues/46 | ||
- https://github.com/udecode/editor-protocol/issues/47 | ||
- https://github.com/udecode/editor-protocol/issues/49 | ||
- https://github.com/udecode/editor-protocol/issues/50 | ||
- Floating link edit: | ||
- https://github.com/udecode/editor-protocol/issues/54 | ||
- https://github.com/udecode/editor-protocol/issues/55 | ||
- https://github.com/udecode/editor-protocol/issues/56 | ||
- https://github.com/udecode/editor-protocol/issues/57 | ||
- https://github.com/udecode/editor-protocol/issues/58 | ||
- https://github.com/udecode/editor-protocol/issues/59 | ||
- https://github.com/udecode/editor-protocol/issues/61 | ||
- Selection: | ||
- https://github.com/udecode/editor-protocol/issues/52 | ||
- https://github.com/udecode/editor-protocol/issues/53 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
'@udecode/plate-link': patch | ||
--- | ||
|
||
- Fixes #1580 | ||
- Fixes #1542 | ||
- Fixes #1194 | ||
- Fixes #712 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@udecode/plate': major | ||
--- | ||
|
||
- remove `@udecode/plate-ui-popper` dep for `@udecode/plate-floating` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@udecode/plate-ui-popper': major | ||
--- | ||
|
||
- deprecated, use instead `@udecode/plate-floating` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
'@udecode/plate-table': major | ||
--- | ||
|
||
- remove `addRow` for `insertTableRow` | ||
- remove `addColumn` for `insertTableColumn` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@udecode/plate-ui-toolbar': patch | ||
--- | ||
|
||
- Fixes #1434 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
'@udecode/plate-ui-toolbar': major | ||
--- | ||
|
||
- remove `@udecode/plate-ui-popper` and `react-popper` deps for `@udecode/plate-floating` | ||
- `BalloonToolbarProps`: | ||
- removed `popperOptions` for `floatingOptions` | ||
- remove `useBalloonToolbarPopper` for `useFloatingToolbar` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
module.exports = { | ||
'@udecode/plate-alignment': 'nodes/alignment', | ||
'@udecode/plate-autoformat': 'editor/autoformat', | ||
'@udecode/plate-basic-elements': 'nodes/basic-elements', | ||
'@udecode/plate-basic-marks': 'nodes/basic-marks', | ||
'@udecode/plate-block-quote': 'nodes/block-quote', | ||
'@udecode/plate-break': 'editor/break', | ||
'@udecode/plate-button': 'button', | ||
'@udecode/plate-code-block': 'nodes/code-block', | ||
'@udecode/plate-combobox': 'editor/combobox', | ||
'@udecode/plate-core': 'core', | ||
'@udecode/plate-serializer-csv': 'serializers/csv', | ||
'@udecode/plate-serializer-docx': 'serializers/docx', | ||
'@udecode/plate-find-replace': 'decorators/find-replace', | ||
'@udecode/plate-floating': 'floating', | ||
'@udecode/plate-font': 'nodes/font', | ||
'@udecode/plate-headless': 'headless', | ||
'@udecode/plate-heading': 'nodes/heading', | ||
'@udecode/plate-highlight': 'nodes/highlight', | ||
'@udecode/plate-horizontal-rule': 'nodes/horizontal-rule', | ||
'@udecode/plate-image': 'nodes/image', | ||
'@udecode/plate-indent': 'nodes/indent', | ||
'@udecode/plate-indent-list': 'nodes/indent-list', | ||
'@udecode/plate-juice': 'serializers/juice', | ||
'@udecode/plate-kbd': 'nodes/kbd', | ||
'@udecode/plate-line-height': 'nodes/line-height', | ||
'@udecode/plate-link': 'nodes/link', | ||
'@udecode/plate-list': 'nodes/list', | ||
'@udecode/plate-serializer-md': 'serializers/md', | ||
'@udecode/plate-media-embed': 'nodes/media-embed', | ||
'@udecode/plate-mention': 'nodes/mention', | ||
'@udecode/plate-node-id': 'editor/node-id', | ||
'@udecode/plate-normalizers': 'editor/normalizers', | ||
'@udecode/plate-paragraph': 'nodes/paragraph', | ||
'@udecode/plate-reset-node': 'editor/reset-node', | ||
'@udecode/plate-select': 'editor/select', | ||
'@udecode/plate-table': 'nodes/table', | ||
'@udecode/plate-test-utils': 'test-utils', | ||
'@udecode/plate-trailing-block': 'editor/trailing-block', | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
module.exports = { | ||
...require('./aliases-plate'), | ||
'@udecode/plate': 'plate', | ||
'@udecode/plate-excalidraw': 'ui/nodes/excalidraw', | ||
'@udecode/plate-styled-components': 'ui/styled-components', | ||
'@udecode/plate-ui': 'ui/plate', | ||
'@udecode/plate-ui-alignment': 'ui/nodes/alignment', | ||
'@udecode/plate-ui-block-quote': 'ui/nodes/block-quote', | ||
'@udecode/plate-ui-button': 'ui/button', | ||
'@udecode/plate-ui-code-block': 'ui/nodes/code-block', | ||
'@udecode/plate-ui-combobox': 'ui/combobox', | ||
'@udecode/plate-ui-cursor': 'ui/cursor', | ||
'@udecode/plate-ui-dnd': 'ui/dnd', | ||
'@udecode/plate-ui-find-replace': 'ui/find-replace', | ||
'@udecode/plate-ui-font': 'ui/nodes/font', | ||
'@udecode/plate-ui-horizontal-rule': 'ui/nodes/horizontal-rule', | ||
'@udecode/plate-ui-image': 'ui/nodes/image', | ||
'@udecode/plate-ui-line-height': 'ui/nodes/line-height', | ||
'@udecode/plate-ui-link': 'ui/nodes/link', | ||
'@udecode/plate-ui-list': 'ui/nodes/list', | ||
'@udecode/plate-ui-media-embed': 'ui/nodes/media-embed', | ||
'@udecode/plate-ui-mention': 'ui/nodes/mention', | ||
'@udecode/plate-ui-placeholder': 'ui/placeholder', | ||
'@udecode/plate-ui-popover': 'ui/popover', | ||
'@udecode/plate-ui-table': 'ui/nodes/table', | ||
'@udecode/plate-ui-toolbar': 'ui/toolbar', | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
d968086
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
plate – ./
plate-git-main-udecode.vercel.app
www.plate.udecode.io
plate.udecode.io
plate-udecode.vercel.app