@udecode/plate-core
Advanced tools
Comparing version 8.0.0 to 8.1.0
# @udecode/plate-core | ||
## 8.1.0 | ||
### Minor Changes | ||
- [#1249](https://github.com/udecode/plate/pull/1249) by [@zbeyens](https://github.com/zbeyens) – new utils: | ||
- `parseHtmlDocument` | ||
- `parseHtmlElement` | ||
## 8.0.0 | ||
@@ -160,3 +168,3 @@ | ||
- handlers starting by `on...` are moved to `handlers` property. | ||
- handlers starting by `on...` are moved to `handlers` field. | ||
@@ -187,18 +195,4 @@ ```ts | ||
- the following plugins are now part of the core plugins, so you need to remove these from your `plugins` prop: | ||
```ts | ||
const corePlugins = [ | ||
createReactPlugin(), | ||
createHistoryPlugin(), | ||
createEventEditorPlugin(), | ||
createInlineVoidPlugin(), | ||
createInsertDataPlugin(), | ||
createDeserializeAstPlugin(), | ||
createDeserializeHtmlPlugin(), | ||
]; | ||
``` | ||
- `plugins` is not a parameter anymore as it can be retrieved in `editor.plugins` | ||
- `withInlineVoid` is now using plugins `isInline` and `isVoid` plugin properties. | ||
- `withInlineVoid` is now using plugins `isInline` and `isVoid` plugin fields. | ||
@@ -285,3 +279,3 @@ Renamed: | ||
- These properties are used by `withInsertData` plugin. | ||
- These fields are used by `withInsertData` plugin. | ||
@@ -348,3 +342,3 @@ ```tsx | ||
/** | ||
* Any plugin can use this property to inject code into a stack. | ||
* Any plugin can use this field to inject code into a stack. | ||
* For example, if multiple plugins have defined | ||
@@ -360,3 +354,3 @@ * `inject.editor.insertData.transformData` for `key=KEY_DESERIALIZE_HTML`, | ||
- `options`: any plugin can use the second generic type to type this property. It means that each plugin can be extended using this property. | ||
- `options`: any plugin can use the second generic type to type this field. It means that each plugin can be extended using this field. | ||
- `type` is now optional | ||
@@ -371,3 +365,3 @@ - `component`: no longer need of `options` to customize the component. | ||
- `then`: a function that is called after the plugin is loaded. | ||
- this is very powerful as it allows you to have plugin properties derived from the editor and/or the loaded plugin. | ||
- this is very powerful as it allows you to have plugin fields derived from the editor and/or the loaded plugin. | ||
- nesting support (recursive) | ||
@@ -379,3 +373,3 @@ | ||
* Recursive plugin merging. | ||
* Can be used to derive plugin properties from `editor`, `plugin`. | ||
* Can be used to derive plugin fields from `editor`, `plugin`. | ||
* The returned value will be deeply merged to the plugin. | ||
@@ -395,3 +389,3 @@ */ | ||
- `withInsertData` | ||
- all plugins using `editor.insertData` property will be used here | ||
- all plugins using `editor.insertData` field will be used here | ||
- it first gets the data with `format` | ||
@@ -526,7 +520,7 @@ - then it pipes `query` | ||
- `PlatePlugin`, `PlatePluginEditor` new properties: | ||
- `PlatePlugin`, `PlatePluginEditor` new fields: | ||
- `injectChildComponent`: Inject child component around any node children. | ||
- `injectParentComponent`: Inject parent component around any node `component`. | ||
- `overrideProps` supports arrays. | ||
- `SPRenderNodeProps` new properties: | ||
- `SPRenderNodeProps` new fields: | ||
- `editor: PlateEditor` | ||
@@ -586,3 +580,3 @@ - `plugins: PlatePlugin` | ||
- `PlatePlugin` | ||
- new property: `overrideProps` | ||
- new field: `overrideProps` | ||
- Overrides rendered node props (shallow merge). | ||
@@ -730,4 +724,4 @@ - This enables controlling the props of any node component (use cases: indent, align,...). | ||
- `useEditableProps` (used by `SlatePlugins`): | ||
- new properties returned: all handler props from the plugins (if defined) | ||
- new core plugins with the following properties: | ||
- new fields returned: all handler props from the plugins (if defined) | ||
- new core plugins with the following fields: | ||
- `onFocus: setEventEditorId('focus', id)` | ||
@@ -744,4 +738,4 @@ - `onBlur: setEventEditorId('blur', id)` | ||
- `SlatePluginsState` (store interface): | ||
- a new property `keyChange` incremented by `SlatePlugins` on `useSlate` update. | ||
- a new property `selection = editor.selection` updated on `useSlate` update. | ||
- a new field `keyChange` incremented by `SlatePlugins` on `useSlate` update. | ||
- a new field `selection = editor.selection` updated on `useSlate` update. | ||
- `pipeHandler`: a new function. Generic pipe for handlers. | ||
@@ -748,0 +742,0 @@ |
@@ -16,2 +16,4 @@ /** | ||
export * from './isHtmlText'; | ||
export * from './parseHtmlDocument'; | ||
export * from './parseHtmlElement'; | ||
export * from './pipeDeserializeHtmlElement'; | ||
@@ -18,0 +20,0 @@ export * from './pipeDeserializeHtmlLeaf'; |
{ | ||
"name": "@udecode/plate-core", | ||
"version": "8.0.0", | ||
"version": "8.1.0", | ||
"description": "The core architecture of Plate – a plugin system for slate", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2202600
517
19415