-
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.
Merge pull request #3125 from udecode/fix/client-only
Server bundle
- Loading branch information
Showing
2,142 changed files
with
23,373 additions
and
21,266 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,6 @@ | ||
--- | ||
'@udecode/plate-core': minor | ||
--- | ||
|
||
- Use `editor.reset` instead of `resetEditor` to focus the editor after reset so it's decoupled from `slate-react`. | ||
- Add a server bundle including `createPlateEditor`. It can be imported using `import { createPlateEditor } from '@udecode/plate-core/server'`. |
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-serializer-csv': patch | ||
--- | ||
|
||
- Remove `@udecode/plate-table` dependency. |
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-serializer-docx': patch | ||
--- | ||
|
||
- Remove plugin dependencies. |
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-serializer-md': major | ||
--- | ||
|
||
- `serializeMd`: remove `nodes` option. `editor.children` is now serialized. |
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,83 @@ | ||
--- | ||
'@udecode/plate-serializer-md': minor | ||
--- | ||
|
||
- Fixes #2716 | ||
- Fixes #2858 | ||
- Add default support for indent lists. | ||
- Improved new lines around heading. | ||
- Trim new lines. | ||
- Add `serializeMdNodes`: serialize nodes to markdown without editor. | ||
- Add options enabling much more control over the serialization: | ||
|
||
```ts | ||
type SerializeMdNodeOptions = { | ||
/** | ||
* Whether the node is enabled. If false, the node will be considered as | ||
* paragraph. | ||
*/ | ||
enabled?: boolean; | ||
|
||
isLeaf?: boolean; | ||
|
||
/** | ||
* Whether the node is void. Required for empty void nodes to not be skipped. | ||
* Default is true for `hr` and `img` nodes | ||
*/ | ||
isVoid?: boolean; | ||
|
||
/** Serialize node to markdown. */ | ||
serialize?: ( | ||
children: string, | ||
node: MdNodeType, | ||
opts: SerializeMdOptions | ||
) => string; | ||
|
||
/** Whether the node should be skipped (serialized to empty string). */ | ||
skip?: boolean; | ||
|
||
/** The type of the node. */ | ||
type: string; | ||
}; | ||
|
||
|
||
/** @default Options for each node type. */ | ||
{ | ||
/** @default Options for each node type. */ | ||
nodes: Record<keyof MdNodeTypes, SerializeMdNodeOptions>; | ||
|
||
/** | ||
* Tag to use for line breaks. | ||
* | ||
* @default '<br>' | ||
*/ | ||
breakTag?: string; | ||
|
||
/** Custom nodes to serialize. */ | ||
customNodes?: Record<string, SerializeMdNodeOptions>; | ||
|
||
ignoreParagraphNewline?: boolean; | ||
|
||
listDepth?: number; | ||
|
||
/** | ||
* Format for underline. | ||
* | ||
* @example | ||
* { | ||
* "underline": ["<u>", "</u>"] | ||
* } | ||
*/ | ||
markFormats?: Partial<MarkFormats>; | ||
|
||
/** | ||
* List of unordered list style types (when using indent list). | ||
* | ||
* @default ['disc', 'circle', 'square'] | ||
*/ | ||
ulListStyleTypes?: string[]; | ||
} | ||
``` | ||
|
||
- Remove plugin dependencies. | ||
- Remove `nodeTypes` option in favor of `nodes`. |
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/react-utils': patch | ||
--- | ||
|
||
- Fix `withRef`: Component props should be excluded from extended props. |
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.