@udecode/plate-core
Advanced tools
Comparing version 3.4.0 to 4.3.0
# @udecode/plate-core | ||
## 4.3.0 | ||
### Minor Changes | ||
- [#1063](https://github.com/udecode/plate/pull/1063) [`6af469cd`](https://github.com/udecode/plate/commit/6af469cd5ac310e831eb8a99a71eba73bde62fc6) Thanks [@ghingis](https://github.com/ghingis)! - add `normalizeInitialValue` prop to `Plate`. When `true`, it will normalize the initial value passed to the `editor` once it's created. This is useful when adding normalization rules on already existing content. Default is `false`. | ||
## 3.4.0 | ||
@@ -4,0 +10,0 @@ |
@@ -7,3 +7,3 @@ import { SPEditor } from '../../types/SPEditor'; | ||
*/ | ||
export declare const usePlate: <T extends SPEditor = SPEditor>({ id, components, editor, initialValue, value, options, plugins, onChange, editableProps, }: UsePlateOptions<T>) => { | ||
export declare const usePlate: <T extends SPEditor = SPEditor>({ id, components, editor, initialValue, value, options, plugins, onChange, editableProps, normalizeInitialValue, }: UsePlateOptions<T>) => { | ||
slateProps: Omit<import("../..").SlateProps, "children">; | ||
@@ -10,0 +10,0 @@ editableProps: import("slate-react/dist/components/editable").EditableProps; |
@@ -7,3 +7,3 @@ import { SPEditor } from '../../types/SPEditor'; | ||
*/ | ||
export declare const usePlateEffects: <T extends SPEditor = SPEditor>({ id, value, editor, enabled, components, options, initialValue, plugins, }: UsePlateEffectsOptions<T>) => void; | ||
export declare const usePlateEffects: <T extends SPEditor = SPEditor>({ id, value, editor, enabled, components, options, initialValue, normalizeInitialValue, plugins, }: UsePlateEffectsOptions<T>) => void; | ||
//# sourceMappingURL=usePlateEffects.d.ts.map |
@@ -11,5 +11,5 @@ /** | ||
export * from './useStoreEditorValue'; | ||
export * from './useStorePlate'; | ||
export * from './useStorePlatePluginKeys'; | ||
export * from './useStorePlate'; | ||
export * from './useStoreState'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -5,2 +5,3 @@ /** | ||
export * from './EventEditorStore'; | ||
export * from './PlateStore'; | ||
export * from './SPEditor'; | ||
@@ -10,3 +11,2 @@ export * from './SPRenderElementProps'; | ||
export * from './SPRenderNodeProps'; | ||
export * from './PlateStore'; | ||
export * from './SlateProps'; | ||
@@ -13,0 +13,0 @@ export * from './TAncestor'; |
@@ -8,7 +8,7 @@ /** | ||
export * from './OnChange'; | ||
export * from './PlatePlugin'; | ||
export * from './RenderElement'; | ||
export * from './RenderLeaf'; | ||
export * from './Serialize'; | ||
export * from './PlatePlugin'; | ||
export * from './WithOverride'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -8,4 +8,4 @@ /** | ||
export * from './OnKeyDownMarkOptions'; | ||
export * from './PlateOptions'; | ||
export * from './RenderNodeOptions'; | ||
export * from './PlateOptions'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -21,3 +21,9 @@ import { PlateOptions, PlatePluginComponent } from './PlatePluginOptions/PlateOptions'; | ||
components?: Record<string, PlatePluginComponent>; | ||
/** | ||
* When `true`, it will normalize the initial value passed to the `editor` once it gets created. | ||
* This is useful when adding normalization rules on already existing content. | ||
* @default false | ||
*/ | ||
normalizeInitialValue?: boolean; | ||
} | ||
//# sourceMappingURL=UsePlateEffectsOptions.d.ts.map |
@@ -10,5 +10,2 @@ /** | ||
export * from './getInlineTypes'; | ||
export * from './getRenderElement'; | ||
export * from './getRenderLeaf'; | ||
export * from './getSlateClass'; | ||
export * from './getPlatePluginOptions'; | ||
@@ -18,2 +15,5 @@ export * from './getPlatePluginType'; | ||
export * from './getPlatePluginWithOverrides'; | ||
export * from './getRenderElement'; | ||
export * from './getRenderLeaf'; | ||
export * from './getSlateClass'; | ||
export * from './getVoidTypes'; | ||
@@ -20,0 +20,0 @@ export * from './mapPlatePluginKeysToOptions'; |
{ | ||
"name": "@udecode/plate-core", | ||
"version": "3.4.0", | ||
"version": "4.3.0", | ||
"description": "The core architecture of Plate – a plugin system for slate", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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 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
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
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
1166398
8948