@udecode/plate-core
Advanced tools
Comparing version 39.2.21 to 40.0.0
@@ -1,3 +0,3 @@ | ||
import { S as SlateEditor, A as AnyEditorPlugin, a as AnySlatePlugin, P as ParserOptions, b as SlatePlugin, c as PluginConfig, d as AnyPluginConfig, e as SlatePluginMethods, W as WithRequiredKey, f as SlatePluginContext, I as InferConfig, g as SlatePlugins, E as ExtendEditor, T as ToggleBlockOptions, N as Nullable, H as HtmlDeserializer, L as LengthConfig } from './withSlate-BhSA5OEZ.js'; | ||
export { p as BaseDeserializer, B as BaseEditor, q as BaseHtmlDeserializer, r as BaseInjectProps, m as BasePlugin, z as BasePluginContext, n as BasePluginNode, o as BaseSerializer, s as BaseTransformOptions, j as BaseWithSlateOptions, V as CorePlugin, C as CreateSlateEditorOptions, Z as DebugConfig, _ as DebugErrorType, a1 as DebugPlugin, R as Decorate, M as Deserializer, G as EditorPlugin, t as ExtendConfig, X as GetCorePluginsOptions, a2 as GetInjectNodePropsOptions, a3 as GetInjectNodePropsReturnType, D as HandlerReturnType, Q as HtmlSerializer, x as InferApi, v as InferOptions, i as InferPlugins, y as InferTransforms, U as InjectNodeProps, a0 as LogLevel, J as Parser, $ as PlateError, O as Serializer, F as SlatePluginConfig, h as TSlateEditor, K as TransformOptions, u as WithAnyKey, k as WithSlateOptions, l as createSlateEditor, Y as getCorePlugins, a4 as pluginInjectNodeProps, w as withSlate } from './withSlate-BhSA5OEZ.js'; | ||
import { S as SlatePlugin, P as PluginConfig, a as SlateEditor, A as AnyPluginConfig, b as SlatePluginMethods, W as WithRequiredKey, c as SlatePluginContext, I as InferConfig, E as ExtendEditor, T as ToggleBlockOptions, N as Nullable, H as HtmlDeserializer, d as AnyEditorPlugin, L as LengthConfig, e as EditorPlugin, f as AnySlatePlugin, g as ParserOptions, h as SlatePlugins } from './withSlate-aEk2svuh.js'; | ||
export { q as BaseDeserializer, B as BaseEditor, r as BaseHtmlDeserializer, s as BaseInjectProps, n as BasePlugin, F as BasePluginContext, o as BasePluginNode, p as BaseSerializer, u as BaseTransformOptions, k as BaseWithSlateOptions, Y as CorePlugin, C as CreateSlateEditorOptions, $ as DebugConfig, a0 as DebugErrorType, a3 as DebugPlugin, V as Decorate, Q as Deserializer, v as ExtendConfig, Z as GetCorePluginsOptions, G as GetInjectNodePropsOptions, t as GetInjectNodePropsReturnType, J as HandlerReturnType, U as HtmlSerializer, z as InferApi, y as InferOptions, j as InferPlugins, D as InferTransforms, X as InjectNodeProps, a2 as LogLevel, M as Parser, a1 as PlateError, R as Serializer, K as SlatePluginConfig, i as TSlateEditor, O as TransformOptions, x as WithAnyKey, l as WithSlateOptions, m as createSlateEditor, _ as getCorePlugins, w as withSlate } from './withSlate-aEk2svuh.js'; | ||
export { nanoid } from 'nanoid'; | ||
@@ -9,3 +9,3 @@ export { StateActions as ZustandStateActions, StoreApi as ZustandStoreApi, createZustandStore } from 'zustand-x'; | ||
import * as _udecode_slate from '@udecode/slate'; | ||
import { TNode, NodeOf, QueryNodeOptions, TDescendant, ElementOf, GetNodeEntriesOptions, TElement, Value } from '@udecode/slate'; | ||
import { ElementOf, GetNodeEntriesOptions, TElement, Value, TDescendant, TNode, NodeOf, QueryNodeOptions } from '@udecode/slate'; | ||
import { Path } from 'slate'; | ||
@@ -19,88 +19,14 @@ import { KeyboardEventLike } from 'is-hotkey'; | ||
interface ApplyDeepToNodesOptions<N extends TNode> { | ||
apply: (node: NodeOf<N>, source: (() => Record<string, any>) | Record<string, any>) => void; | ||
node: N; | ||
source: (() => Record<string, any>) | Record<string, any>; | ||
path?: Path; | ||
query?: QueryNodeOptions; | ||
} | ||
/** Recursively apply an operation to children nodes with a query. */ | ||
declare const applyDeepToNodes: <N extends TNode>({ apply, node, path, query, source, }: ApplyDeepToNodesOptions<N>) => void; | ||
/** | ||
* Get all plugins having a defined `inject.plugins[plugin.key]`. It includes | ||
* `plugin` itself. | ||
* Enables support for deserializing inserted content from Slate Ast format to | ||
* Slate format while apply a small bug fix. | ||
*/ | ||
declare const getInjectedPlugins: (editor: SlateEditor, plugin: AnyEditorPlugin) => Partial<AnyEditorPlugin>[]; | ||
declare const AstPlugin: SlatePlugin<PluginConfig<"ast", {}, {}, {}>>; | ||
/** Get plugin keys by types */ | ||
declare const getKeysByTypes: (editor: SlateEditor, types: string[]) => string[]; | ||
/** Get plugin key by type */ | ||
declare const getKeyByType: (editor: SlateEditor, type: string) => string; | ||
/** Create a platform-aware hotkey checker. */ | ||
declare const createHotkey: (key: string) => (event: KeyboardEventLike) => boolean; | ||
declare const Hotkeys: { | ||
isBold: (event: KeyboardEventLike) => boolean; | ||
isCompose: (event: KeyboardEventLike) => boolean; | ||
isDeleteBackward: (event: KeyboardEventLike) => boolean; | ||
isDeleteForward: (event: KeyboardEventLike) => boolean; | ||
isDeleteLineBackward: (event: KeyboardEventLike) => boolean; | ||
isDeleteLineForward: (event: KeyboardEventLike) => boolean; | ||
isDeleteWordBackward: (event: KeyboardEventLike) => boolean; | ||
isDeleteWordForward: (event: KeyboardEventLike) => boolean; | ||
isExtendBackward: (event: KeyboardEventLike) => boolean; | ||
isExtendForward: (event: KeyboardEventLike) => boolean; | ||
isExtendLineBackward: (event: KeyboardEventLike) => boolean; | ||
isExtendLineForward: (event: KeyboardEventLike) => boolean; | ||
isItalic: (event: KeyboardEventLike) => boolean; | ||
isMoveBackward: (event: KeyboardEventLike) => boolean; | ||
isMoveForward: (event: KeyboardEventLike) => boolean; | ||
isMoveLineBackward: (event: KeyboardEventLike) => boolean; | ||
isMoveLineForward: (event: KeyboardEventLike) => boolean; | ||
isMoveWordBackward: (event: KeyboardEventLike) => boolean; | ||
isMoveWordForward: (event: KeyboardEventLike) => boolean; | ||
isRedo: (event: KeyboardEventLike) => boolean; | ||
isSoftBreak: (event: KeyboardEventLike) => boolean; | ||
isSplitBlock: (event: KeyboardEventLike) => boolean; | ||
isTransposeCharacter: (event: KeyboardEventLike) => boolean; | ||
isUndo: (event: KeyboardEventLike) => boolean; | ||
}; | ||
/** Recursively merge a source object to children nodes with a query. */ | ||
declare const mergeDeepToNodes: <N extends TNode>(options: Omit<ApplyDeepToNodesOptions<N>, "apply">) => void; | ||
/** Normalize the descendants to a valid document fragment. */ | ||
declare const normalizeDescendantsToDocumentFragment: (editor: SlateEditor, { descendants }: { | ||
descendants: TDescendant[]; | ||
}) => TDescendant[]; | ||
/** | ||
* Recursive deep merge of each plugin from `override.plugins` into plugin with | ||
* same key (plugin > plugin.plugins). | ||
* Placeholder plugin for DOM interaction, that could be replaced with | ||
* ReactPlugin. | ||
*/ | ||
declare const overridePluginsByKey: (plugin: AnySlatePlugin, overrideByKey?: Record<string, Partial<AnySlatePlugin>>, nested?: boolean) => AnySlatePlugin; | ||
declare const DOMPlugin: SlatePlugin<PluginConfig<"dom", {}, {}, {}>>; | ||
/** Inject plugin props, editor. */ | ||
declare const pipeInjectNodeProps: (editor: SlateEditor, nodeProps: any) => any; | ||
/** Is the plugin disabled by another plugin. */ | ||
declare const pipeInsertDataQuery: (editor: SlateEditor, plugins: Partial<AnyEditorPlugin>[], { data, dataTransfer }: ParserOptions) => boolean; | ||
/** Pipe preInsert then insertFragment. */ | ||
declare const pipeInsertFragment: (editor: SlateEditor, injectedPlugins: Partial<AnyEditorPlugin>[], { fragment, ...options }: ParserOptions & { | ||
fragment: TDescendant[]; | ||
}) => void; | ||
/** Normalize initial value from editor plugins. Set into plate store if diff. */ | ||
declare const pipeNormalizeInitialValue: (editor: SlateEditor) => void; | ||
/** Pipe editor.insertData.transformData */ | ||
declare const pipeTransformData: (editor: SlateEditor, plugins: Partial<AnyEditorPlugin>[], { data, dataTransfer }: ParserOptions) => string; | ||
/** Pipe editor.insertData.transformFragment */ | ||
declare const pipeTransformFragment: (editor: SlateEditor, plugins: Partial<AnyEditorPlugin>[], { fragment, ...options }: ParserOptions & { | ||
fragment: TDescendant[]; | ||
}) => TDescendant[]; | ||
type SlatePluginConfig<K extends string = any, O = {}, A = {}, T = {}> = Omit<Partial<Modify<SlatePlugin<PluginConfig<K, O, A, T>>, { | ||
@@ -175,23 +101,2 @@ node?: Partial<SlatePlugin<PluginConfig<K, O, A, T>>['node']>; | ||
declare const resolvePluginTest: <P extends AnyPluginConfig>(p: P) => any; | ||
declare const resolveCreatePluginTest: typeof createSlatePlugin; | ||
/** | ||
* Resolves and finalizes a plugin configuration for use in a Plate editor. | ||
* | ||
* This function processes a given plugin configuration, applying any extensions | ||
* and resolving nested plugins. It prepares the plugin for integration into the | ||
* Plate editor system by: | ||
* | ||
* 1. Cloning the plugin to avoid mutating the original | ||
* 2. Applying all stored extensions to the plugin | ||
* 3. Clearing the extensions array after application | ||
* | ||
* @example | ||
* const plugin = createSlatePlugin({ key: 'myPlugin', ...otherOptions }).extend(...); | ||
* const resolvedPlugin = resolvePlugin(editor, plugin); | ||
*/ | ||
declare const resolvePlugin: <P extends AnySlatePlugin>(editor: SlateEditor, _plugin: P) => P; | ||
declare const validatePlugin: <K extends string = any, O = {}, A = {}, T = {}>(editor: SlateEditor, plugin: SlatePlugin<PluginConfig<K, O, A, T>>) => void; | ||
declare function getEditorPlugin<P extends AnyPluginConfig | SlatePlugin<AnyPluginConfig>>(editor: SlateEditor, p: WithRequiredKey<P>): SlatePluginContext<InferConfig<P> extends never ? P : InferConfig<P>>; | ||
@@ -208,40 +113,2 @@ | ||
/** | ||
* Initialize and configure the editor's plugin system. This function sets up | ||
* the editor's plugins, resolving core and custom plugins, and applying any | ||
* overrides specified in the plugins. | ||
*/ | ||
declare const resolvePlugins: (editor: SlateEditor, plugins?: SlatePlugins) => SlateEditor; | ||
declare const resolveAndSortPlugins: (editor: SlateEditor, plugins: SlatePlugins) => SlatePlugins; | ||
declare const applyPluginsToEditor: (editor: SlateEditor, plugins: SlatePlugins) => void; | ||
declare const resolvePluginOverrides: (editor: SlateEditor) => void; | ||
/** | ||
* Optionally calls `value` as a function. Otherwise it is returned directly. | ||
* | ||
* @param value Function or any value. | ||
* @param context Optional context to bind to function. | ||
* @param props Optional props to pass to function. | ||
*/ | ||
declare function callOrReturn<T>(value: T, ...props: any[]): MaybeReturnType<T>; | ||
/** Get slate class name: slate-<type> */ | ||
declare const getSlateClass: (type: string) => string; | ||
declare function isFunction(value: any): value is Function; | ||
declare function mergeDeep(target: Record<string, any>, source: Record<string, any>): Record<string, any>; | ||
/** | ||
* Enables support for deserializing inserted content from Slate Ast format to | ||
* Slate format while apply a small bug fix. | ||
*/ | ||
declare const AstPlugin: SlatePlugin<PluginConfig<"ast", {}, {}, {}>>; | ||
/** | ||
* Placeholder plugin for DOM interaction, that could be replaced with | ||
* ReactPlugin. | ||
*/ | ||
declare const DOMPlugin: SlatePlugin<PluginConfig<"dom", {}, {}, {}>>; | ||
declare const withPlateHistory: ExtendEditor; | ||
@@ -572,2 +439,134 @@ /** @see {@link withHistory} */ | ||
export { AnyEditorPlugin, AnyPluginConfig, AnySlatePlugin, type ApplyDeepToNodesOptions, AstPlugin, BaseParagraphPlugin, CARRIAGE_RETURN, type CollapseWhiteSpaceState, DOMPlugin, type DeserializeHtmlChildren, type DeserializeHtmlNodeReturnType, ExtendEditor, HistoryPlugin, Hotkeys, HtmlDeserializer, HtmlPlugin, InferConfig, InlineVoidPlugin, LINE_FEED, LengthConfig, LengthPlugin, type MaybeReturnType, NO_BREAK_SPACE, type NoInfer, Nullable, type ParagraphConfig, ParserOptions, ParserPlugin, PluginConfig, SPACE, SlateEditor, type SlateNextConfig, SlateNextPlugin, SlatePlugin, SlatePluginContext, SlatePluginMethods, SlatePlugins, TAB, ToggleBlockOptions, type TrimEndRule, type TrimStartRule, type WhiteSpaceRule, WithRequiredKey, ZERO_WIDTH_SPACE, applyDeepToNodes, applyPluginsToEditor, callOrReturn, cleanHtmlBrElements, cleanHtmlCrLf, cleanHtmlEmptyElements, cleanHtmlFontElements, cleanHtmlLinkElements, cleanHtmlTextNodes, collapseString, collapseWhiteSpace, collapseWhiteSpaceChildren, collapseWhiteSpaceElement, collapseWhiteSpaceNode, collapseWhiteSpaceText, copyBlockMarksToSpanChild, createHotkey, createSlatePlugin, createTSlatePlugin, deserializeHtml, deserializeHtmlElement, deserializeHtmlNode, deserializeHtmlNodeChildren, endInlineFormattingContext, findHtmlElement, getEditorPlugin, getHtmlComments, getInjectedPlugins, getKeyByType, getKeysByTypes, getPluginType, getPluginTypes, getSlateClass, getSlatePlugin, htmlBodyToFragment, htmlBrToNewLine, htmlElementToElement, htmlElementToLeaf, htmlStringToDOMNode, htmlTextNodeToString, inferWhiteSpaceRule, inlineTagNames, isFunction, isHtmlBlockElement, isHtmlComment, isHtmlElement, isHtmlFragmentHref, isHtmlInlineElement, isHtmlTable, isHtmlText, isLastNonEmptyTextOfInlineFormattingContext, isOlSymbol, mergeDeep, mergeDeepToNodes, normalizeDescendantsToDocumentFragment, overridePluginsByKey, parseHtmlDocument, parseHtmlElement, pipeDeserializeHtmlElement, pipeDeserializeHtmlLeaf, pipeInjectNodeProps, pipeInsertDataQuery, pipeInsertFragment, pipeNormalizeInitialValue, pipeTransformData, pipeTransformFragment, pluginDeserializeHtml, postCleanHtml, preCleanHtml, removeHtmlNodesBetweenComments, removeHtmlSurroundings, replaceTagName, resetEditor, resetEditorChildren, resolveAndSortPlugins, resolveCreatePluginTest, resolvePlugin, resolvePluginOverrides, resolvePluginTest, resolvePlugins, someHtmlElement, toggleBlock, traverseHtmlComments, traverseHtmlElements, traverseHtmlNode, traverseHtmlTexts, unwrapHtmlElement, upsertInlineFormattingContext, validatePlugin, withInlineVoid, withLength, withParser, withPlateHistory, withSlateNext }; | ||
interface ApplyDeepToNodesOptions<N extends TNode> { | ||
apply: (node: NodeOf<N>, source: (() => Record<string, any>) | Record<string, any>) => void; | ||
node: N; | ||
source: (() => Record<string, any>) | Record<string, any>; | ||
path?: Path; | ||
query?: QueryNodeOptions; | ||
} | ||
/** Recursively apply an operation to children nodes with a query. */ | ||
declare const applyDeepToNodes: <N extends TNode>({ apply, node, path, query, source, }: ApplyDeepToNodesOptions<N>) => void; | ||
declare const getInjectMatch: <E extends SlateEditor>(editor: E, plugin: EditorPlugin) => (node: TNode, path: Path) => boolean; | ||
/** | ||
* Get all plugins having a defined `inject.plugins[plugin.key]`. It includes | ||
* `plugin` itself. | ||
*/ | ||
declare const getInjectedPlugins: (editor: SlateEditor, plugin: AnyEditorPlugin) => Partial<AnyEditorPlugin>[]; | ||
/** Get plugin keys by types */ | ||
declare const getKeysByTypes: (editor: SlateEditor, types: string[]) => string[]; | ||
/** Get plugin key by type */ | ||
declare const getKeyByType: (editor: SlateEditor, type: string) => string; | ||
/** Create a platform-aware hotkey checker. */ | ||
declare const createHotkey: (key: string) => (event: KeyboardEventLike) => boolean; | ||
declare const Hotkeys: { | ||
isBold: (event: KeyboardEventLike) => boolean; | ||
isCompose: (event: KeyboardEventLike) => boolean; | ||
isDeleteBackward: (event: KeyboardEventLike) => boolean; | ||
isDeleteForward: (event: KeyboardEventLike) => boolean; | ||
isDeleteLineBackward: (event: KeyboardEventLike) => boolean; | ||
isDeleteLineForward: (event: KeyboardEventLike) => boolean; | ||
isDeleteWordBackward: (event: KeyboardEventLike) => boolean; | ||
isDeleteWordForward: (event: KeyboardEventLike) => boolean; | ||
isExtendBackward: (event: KeyboardEventLike) => boolean; | ||
isExtendForward: (event: KeyboardEventLike) => boolean; | ||
isExtendLineBackward: (event: KeyboardEventLike) => boolean; | ||
isExtendLineForward: (event: KeyboardEventLike) => boolean; | ||
isItalic: (event: KeyboardEventLike) => boolean; | ||
isMoveBackward: (event: KeyboardEventLike) => boolean; | ||
isMoveForward: (event: KeyboardEventLike) => boolean; | ||
isMoveLineBackward: (event: KeyboardEventLike) => boolean; | ||
isMoveLineForward: (event: KeyboardEventLike) => boolean; | ||
isMoveWordBackward: (event: KeyboardEventLike) => boolean; | ||
isMoveWordForward: (event: KeyboardEventLike) => boolean; | ||
isRedo: (event: KeyboardEventLike) => boolean; | ||
isSoftBreak: (event: KeyboardEventLike) => boolean; | ||
isSplitBlock: (event: KeyboardEventLike) => boolean; | ||
isTransposeCharacter: (event: KeyboardEventLike) => boolean; | ||
isUndo: (event: KeyboardEventLike) => boolean; | ||
}; | ||
/** Recursively merge a source object to children nodes with a query. */ | ||
declare const mergeDeepToNodes: <N extends TNode>(options: Omit<ApplyDeepToNodesOptions<N>, "apply">) => void; | ||
/** Normalize the descendants to a valid document fragment. */ | ||
declare const normalizeDescendantsToDocumentFragment: (editor: SlateEditor, { descendants }: { | ||
descendants: TDescendant[]; | ||
}) => TDescendant[]; | ||
/** | ||
* Recursive deep merge of each plugin from `override.plugins` into plugin with | ||
* same key (plugin > plugin.plugins). | ||
*/ | ||
declare const overridePluginsByKey: (plugin: AnySlatePlugin, overrideByKey?: Record<string, Partial<AnySlatePlugin>>, nested?: boolean) => AnySlatePlugin; | ||
/** Is the plugin disabled by another plugin. */ | ||
declare const pipeInsertDataQuery: (editor: SlateEditor, plugins: Partial<AnyEditorPlugin>[], { data, dataTransfer }: ParserOptions) => boolean; | ||
/** Pipe preInsert then insertFragment. */ | ||
declare const pipeInsertFragment: (editor: SlateEditor, injectedPlugins: Partial<AnyEditorPlugin>[], { fragment, ...options }: ParserOptions & { | ||
fragment: TDescendant[]; | ||
}) => void; | ||
/** Normalize initial value from editor plugins. Set into plate store if diff. */ | ||
declare const pipeNormalizeInitialValue: (editor: SlateEditor) => void; | ||
/** Pipe editor.insertData.transformData */ | ||
declare const pipeTransformData: (editor: SlateEditor, plugins: Partial<AnyEditorPlugin>[], { data, dataTransfer }: ParserOptions) => string; | ||
/** Pipe editor.insertData.transformFragment */ | ||
declare const pipeTransformFragment: (editor: SlateEditor, plugins: Partial<AnyEditorPlugin>[], { fragment, ...options }: ParserOptions & { | ||
fragment: TDescendant[]; | ||
}) => TDescendant[]; | ||
declare const resolvePluginTest: <P extends AnyPluginConfig>(p: P) => any; | ||
declare const resolveCreatePluginTest: typeof createSlatePlugin; | ||
/** | ||
* Resolves and finalizes a plugin configuration for use in a Plate editor. | ||
* | ||
* This function processes a given plugin configuration, applying any extensions | ||
* and resolving nested plugins. It prepares the plugin for integration into the | ||
* Plate editor system by: | ||
* | ||
* 1. Cloning the plugin to avoid mutating the original | ||
* 2. Applying all stored extensions to the plugin | ||
* 3. Clearing the extensions array after application | ||
* | ||
* @example | ||
* const plugin = createSlatePlugin({ key: 'myPlugin', ...otherOptions }).extend(...); | ||
* const resolvedPlugin = resolvePlugin(editor, plugin); | ||
*/ | ||
declare const resolvePlugin: <P extends AnySlatePlugin>(editor: SlateEditor, _plugin: P) => P; | ||
declare const validatePlugin: <K extends string = any, O = {}, A = {}, T = {}>(editor: SlateEditor, plugin: SlatePlugin<PluginConfig<K, O, A, T>>) => void; | ||
/** | ||
* Initialize and configure the editor's plugin system. This function sets up | ||
* the editor's plugins, resolving core and custom plugins, and applying any | ||
* overrides specified in the plugins. | ||
*/ | ||
declare const resolvePlugins: (editor: SlateEditor, plugins?: SlatePlugins) => SlateEditor; | ||
declare const resolveAndSortPlugins: (editor: SlateEditor, plugins: SlatePlugins) => SlatePlugins; | ||
declare const applyPluginsToEditor: (editor: SlateEditor, plugins: SlatePlugins) => void; | ||
declare const resolvePluginOverrides: (editor: SlateEditor) => void; | ||
/** | ||
* Optionally calls `value` as a function. Otherwise it is returned directly. | ||
* | ||
* @param value Function or any value. | ||
* @param context Optional context to bind to function. | ||
* @param props Optional props to pass to function. | ||
*/ | ||
declare function callOrReturn<T>(value: T, ...props: any[]): MaybeReturnType<T>; | ||
/** Get slate class name: slate-<type> */ | ||
declare const getSlateClass: (type?: string) => string; | ||
declare function isFunction(value: any): value is Function; | ||
declare function mergeDeep(target: Record<string, any>, source: Record<string, any>): Record<string, any>; | ||
export { AnyEditorPlugin, AnyPluginConfig, AnySlatePlugin, type ApplyDeepToNodesOptions, AstPlugin, BaseParagraphPlugin, CARRIAGE_RETURN, type CollapseWhiteSpaceState, DOMPlugin, type DeserializeHtmlChildren, type DeserializeHtmlNodeReturnType, EditorPlugin, ExtendEditor, HistoryPlugin, Hotkeys, HtmlDeserializer, HtmlPlugin, InferConfig, InlineVoidPlugin, LINE_FEED, LengthConfig, LengthPlugin, type MaybeReturnType, NO_BREAK_SPACE, type NoInfer, Nullable, type ParagraphConfig, ParserOptions, ParserPlugin, PluginConfig, SPACE, SlateEditor, type SlateNextConfig, SlateNextPlugin, SlatePlugin, SlatePluginContext, SlatePluginMethods, SlatePlugins, TAB, ToggleBlockOptions, type TrimEndRule, type TrimStartRule, type WhiteSpaceRule, WithRequiredKey, ZERO_WIDTH_SPACE, applyDeepToNodes, applyPluginsToEditor, callOrReturn, cleanHtmlBrElements, cleanHtmlCrLf, cleanHtmlEmptyElements, cleanHtmlFontElements, cleanHtmlLinkElements, cleanHtmlTextNodes, collapseString, collapseWhiteSpace, collapseWhiteSpaceChildren, collapseWhiteSpaceElement, collapseWhiteSpaceNode, collapseWhiteSpaceText, copyBlockMarksToSpanChild, createHotkey, createSlatePlugin, createTSlatePlugin, deserializeHtml, deserializeHtmlElement, deserializeHtmlNode, deserializeHtmlNodeChildren, endInlineFormattingContext, findHtmlElement, getEditorPlugin, getHtmlComments, getInjectMatch, getInjectedPlugins, getKeyByType, getKeysByTypes, getPluginType, getPluginTypes, getSlateClass, getSlatePlugin, htmlBodyToFragment, htmlBrToNewLine, htmlElementToElement, htmlElementToLeaf, htmlStringToDOMNode, htmlTextNodeToString, inferWhiteSpaceRule, inlineTagNames, isFunction, isHtmlBlockElement, isHtmlComment, isHtmlElement, isHtmlFragmentHref, isHtmlInlineElement, isHtmlTable, isHtmlText, isLastNonEmptyTextOfInlineFormattingContext, isOlSymbol, mergeDeep, mergeDeepToNodes, normalizeDescendantsToDocumentFragment, overridePluginsByKey, parseHtmlDocument, parseHtmlElement, pipeDeserializeHtmlElement, pipeDeserializeHtmlLeaf, pipeInsertDataQuery, pipeInsertFragment, pipeNormalizeInitialValue, pipeTransformData, pipeTransformFragment, pluginDeserializeHtml, postCleanHtml, preCleanHtml, removeHtmlNodesBetweenComments, removeHtmlSurroundings, replaceTagName, resetEditor, resetEditorChildren, resolveAndSortPlugins, resolveCreatePluginTest, resolvePlugin, resolvePluginOverrides, resolvePluginTest, resolvePlugins, someHtmlElement, toggleBlock, traverseHtmlComments, traverseHtmlElements, traverseHtmlNode, traverseHtmlTexts, unwrapHtmlElement, upsertInlineFormattingContext, validatePlugin, withInlineVoid, withLength, withParser, withPlateHistory, withSlateNext }; |
{ | ||
"name": "@udecode/plate-core", | ||
"version": "39.2.21", | ||
"version": "40.0.0", | ||
"description": "The core of Plate – a plugin system for slate", | ||
@@ -62,3 +62,3 @@ "keywords": [ | ||
"@udecode/slate": "39.2.1", | ||
"@udecode/slate-react": "39.2.1", | ||
"@udecode/slate-react": "40.0.0", | ||
"@udecode/slate-utils": "39.2.20", | ||
@@ -82,5 +82,6 @@ "@udecode/utils": "37.0.0", | ||
"slate": ">=0.103.0", | ||
"slate-dom": ">=0.111.0", | ||
"slate-history": ">=0.93.0", | ||
"slate-hyperscript": ">=0.66.0", | ||
"slate-react": ">=0.108.0" | ||
"slate-react": ">=0.111.0" | ||
}, | ||
@@ -87,0 +88,0 @@ "publishConfig": { |
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 too big to display
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
1539769
15331
24
+ Added@udecode/slate-react@40.0.0(transitive)
Updated@udecode/slate-react@40.0.0