@lofcz/platejs-core 53.1.8 → 53.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -883,50 +883,6 @@ declare const HistoryPlugin: SlatePlugin<PluginConfig<"history", {}, {}, {}, {}>
883
883
  //#region src/lib/plugins/ParserPlugin.d.ts
884
884
  declare const ParserPlugin: SlatePlugin<PluginConfig<"parser", {}, {}, {}, {}>>;
885
885
  //#endregion
886
- //#region src/lib/plugins/dom/withScrolling.d.ts
887
- type WithAutoScrollOptions = {
888
- mode?: ScrollMode;
889
- operations?: AutoScrollOperationsMap;
890
- scrollOptions?: ScrollIntoViewOptions;
891
- };
892
- declare const withScrolling: (editor: SlateEditor, fn: () => void, options?: WithAutoScrollOptions) => void;
893
- //#endregion
894
- //#region src/lib/plugins/dom/DOMPlugin.d.ts
895
- declare const AUTO_SCROLL: WeakMap<SlateEditor, boolean>;
896
- type AutoScrollOperationsMap = Partial<Record<Operation['type'], boolean>>;
897
- type DomConfig = PluginConfig<'dom', {
898
- /** Choose the first or last matching operation as the scroll target */
899
- scrollMode?: ScrollMode;
900
- /**
901
- * Operations map; false to disable an operation, true or undefined to
902
- * enable
903
- */
904
- scrollOperations?: AutoScrollOperationsMap;
905
- /** Options passed to scrollIntoView */
906
- scrollOptions?: ScrollIntoViewOptions;
907
- }>;
908
- /** Mode for picking target op when multiple enabled */
909
- type ScrollMode = 'first' | 'last';
910
- /**
911
- * Placeholder plugin for DOM interaction, that could be replaced with
912
- * ReactPlugin.
913
- */
914
- declare const DOMPlugin: SlatePlugin<PluginConfig<"dom", {
915
- /** Choose the first or last matching operation as the scroll target */
916
- scrollMode?: ScrollMode;
917
- /**
918
- * Operations map; false to disable an operation, true or undefined to
919
- * enable
920
- */
921
- scrollOperations?: AutoScrollOperationsMap;
922
- /** Options passed to scrollIntoView */
923
- scrollOptions?: ScrollIntoViewOptions;
924
- }, {
925
- isScrolling: () => boolean;
926
- }, {
927
- withScrolling: (fn: () => void, options?: WithAutoScrollOptions | undefined) => void;
928
- }, {}>>;
929
- //#endregion
930
886
  //#region src/lib/plugins/slate-extension/transforms/init.d.ts
931
887
  type InitOptions = {
932
888
  autoSelect?: boolean | 'end' | 'start';
@@ -1003,6 +959,7 @@ declare const resetBlock: (editor: SlateEditor, {
1003
959
  declare const setValue: <V extends Value>(editor: SlateEditor, value?: V | string) => void;
1004
960
  //#endregion
1005
961
  //#region src/lib/plugins/slate-extension/SlateExtensionPlugin.d.ts
962
+ declare const isElementStateEmpty: (editor: SlateEditor, element: TElement) => boolean;
1006
963
  type SlateExtensionConfig = PluginConfig<'slateExtension', {
1007
964
  onNodeChange: (options: {
1008
965
  editor: SlateEditor;
@@ -1042,6 +999,7 @@ declare const SlateExtensionPlugin: SlatePlugin<PluginConfig<"slateExtension", {
1042
999
  text: string;
1043
1000
  }) => void;
1044
1001
  }, {
1002
+ isElementStateEmpty: (element: TElement) => boolean;
1045
1003
  redecorate: () => void;
1046
1004
  }, {
1047
1005
  init: ((args_0: InitOptions) => void) & ((args_0: InitOptions) => void);
@@ -1053,7 +1011,51 @@ declare const SlateExtensionPlugin: SlatePlugin<PluginConfig<"slateExtension", {
1053
1011
  at?: _platejs_slate1.Path;
1054
1012
  } | undefined) => true | undefined);
1055
1013
  setValue: ((value?: string | _platejs_slate1.Value | undefined) => void) & ((value?: string | _platejs_slate1.Value | undefined) => void);
1056
- apply: <N$1 extends _platejs_slate1.TElement | TText>(operation: _platejs_slate1.Operation<N$1>) => void;
1014
+ apply: <N$1 extends TElement | TText>(operation: _platejs_slate1.Operation<N$1>) => void;
1015
+ }, {}>>;
1016
+ //#endregion
1017
+ //#region src/lib/plugins/dom/withScrolling.d.ts
1018
+ type WithAutoScrollOptions = {
1019
+ mode?: ScrollMode;
1020
+ operations?: AutoScrollOperationsMap;
1021
+ scrollOptions?: ScrollIntoViewOptions;
1022
+ };
1023
+ declare const withScrolling: (editor: SlateEditor, fn: () => void, options?: WithAutoScrollOptions) => void;
1024
+ //#endregion
1025
+ //#region src/lib/plugins/dom/DOMPlugin.d.ts
1026
+ declare const AUTO_SCROLL: WeakMap<SlateEditor, boolean>;
1027
+ type AutoScrollOperationsMap = Partial<Record<Operation['type'], boolean>>;
1028
+ type DomConfig = PluginConfig<'dom', {
1029
+ /** Choose the first or last matching operation as the scroll target */
1030
+ scrollMode?: ScrollMode;
1031
+ /**
1032
+ * Operations map; false to disable an operation, true or undefined to
1033
+ * enable
1034
+ */
1035
+ scrollOperations?: AutoScrollOperationsMap;
1036
+ /** Options passed to scrollIntoView */
1037
+ scrollOptions?: ScrollIntoViewOptions;
1038
+ }>;
1039
+ /** Mode for picking target op when multiple enabled */
1040
+ type ScrollMode = 'first' | 'last';
1041
+ /**
1042
+ * Placeholder plugin for DOM interaction, that could be replaced with
1043
+ * ReactPlugin.
1044
+ */
1045
+ declare const DOMPlugin: SlatePlugin<PluginConfig<"dom", {
1046
+ /** Choose the first or last matching operation as the scroll target */
1047
+ scrollMode?: ScrollMode;
1048
+ /**
1049
+ * Operations map; false to disable an operation, true or undefined to
1050
+ * enable
1051
+ */
1052
+ scrollOperations?: AutoScrollOperationsMap;
1053
+ /** Options passed to scrollIntoView */
1054
+ scrollOptions?: ScrollIntoViewOptions;
1055
+ }, {
1056
+ isScrolling: () => boolean;
1057
+ }, {
1058
+ withScrolling: (fn: () => void, options?: WithAutoScrollOptions | undefined) => void;
1057
1059
  }, {}>>;
1058
1060
  //#endregion
1059
1061
  //#region src/lib/plugins/navigation-feedback/types.d.ts
@@ -1404,15 +1406,7 @@ declare const getCorePlugins: ({
1404
1406
  navigationFeedback,
1405
1407
  nodeId,
1406
1408
  plugins
1407
- }: GetCorePluginsOptions) => (SlatePlugin<PluginConfig<"dom", {
1408
- scrollMode?: ScrollMode;
1409
- scrollOperations?: AutoScrollOperationsMap;
1410
- scrollOptions?: _platejs_slate1.ScrollIntoViewOptions;
1411
- }, {
1412
- isScrolling: () => boolean;
1413
- }, {
1414
- withScrolling: (fn: () => void, options?: WithAutoScrollOptions | undefined) => void;
1415
- }, {}>> | SlatePlugin<DebugConfig> | SlatePlugin<PluginConfig<"slateExtension", {
1409
+ }: GetCorePluginsOptions) => (SlatePlugin<DebugConfig> | SlatePlugin<PluginConfig<"slateExtension", {
1416
1410
  onNodeChange: (options: {
1417
1411
  editor: SlateEditor;
1418
1412
  node: _platejs_slate1.Descendant;
@@ -1427,6 +1421,7 @@ declare const getCorePlugins: ({
1427
1421
  text: string;
1428
1422
  }) => void;
1429
1423
  }, {
1424
+ isElementStateEmpty: (element: _platejs_slate1.TElement) => boolean;
1430
1425
  redecorate: () => void;
1431
1426
  }, {
1432
1427
  init: ((args_0: InitOptions) => void) & ((args_0: InitOptions) => void);
@@ -1439,6 +1434,14 @@ declare const getCorePlugins: ({
1439
1434
  } | undefined) => true | undefined);
1440
1435
  setValue: ((value?: string | _platejs_slate1.Value | undefined) => void) & ((value?: string | _platejs_slate1.Value | undefined) => void);
1441
1436
  apply: <N$1 extends _platejs_slate1.TElement | _platejs_slate1.TText>(operation: _platejs_slate1.Operation<N$1>) => void;
1437
+ }, {}>> | SlatePlugin<PluginConfig<"dom", {
1438
+ scrollMode?: ScrollMode;
1439
+ scrollOperations?: AutoScrollOperationsMap;
1440
+ scrollOptions?: _platejs_slate1.ScrollIntoViewOptions;
1441
+ }, {
1442
+ isScrolling: () => boolean;
1443
+ }, {
1444
+ withScrolling: (fn: () => void, options?: WithAutoScrollOptions | undefined) => void;
1442
1445
  }, {}>> | SlatePlugin<PluginConfig<"navigationFeedback", {
1443
1446
  activeTarget: NavigationFeedbackStoredTarget | null;
1444
1447
  duration: number;
@@ -2321,6 +2324,16 @@ type BasePluginNode<C extends AnyPluginConfig = PluginConfig> = {
2321
2324
  * inlineVoid core plugin.
2322
2325
  */
2323
2326
  isMarkableVoid?: boolean;
2327
+ /**
2328
+ * Returns whether an element prop is inert metadata for empty-state checks.
2329
+ *
2330
+ * Props not claimed by a plugin are treated as meaningful state.
2331
+ */
2332
+ isMetadataProp?: (options: BasePluginContext<C> & {
2333
+ key: string;
2334
+ node: TElement;
2335
+ value: unknown;
2336
+ }) => boolean;
2324
2337
  /**
2325
2338
  * Whether the node is selectable.
2326
2339
  *
@@ -2546,6 +2559,7 @@ type BaseEditor = EditorBase & {
2546
2559
  node: {
2547
2560
  isContainer: string[];
2548
2561
  isLeaf: string[];
2562
+ isMetadataProp: string[];
2549
2563
  isText: string[];
2550
2564
  leafProps: string[];
2551
2565
  textProps: string[];
@@ -3091,7 +3105,7 @@ declare const normalizeDescendantsToDocumentFragment: (editor: SlateEditor, {
3091
3105
  }) => Descendant[];
3092
3106
  //#endregion
3093
3107
  //#region src/lib/utils/omitPluginContext.d.ts
3094
- declare const omitPluginContext: <T extends SlatePluginContext<AnySlatePlugin>>(ctx: T) => Omit<T, "api" | "editor" | "type" | "getOption" | "tf" | "setOptions" | "getOptions" | "setOption" | "plugin">;
3108
+ declare const omitPluginContext: <T extends SlatePluginContext<AnySlatePlugin>>(ctx: T) => Omit<T, "editor" | "api" | "plugin" | "setOptions" | "tf" | "type" | "getOption" | "getOptions" | "setOption">;
3095
3109
  //#endregion
3096
3110
  //#region src/lib/utils/overridePluginsByKey.d.ts
3097
3111
  /**
@@ -3110,4 +3124,4 @@ declare const pipeOnNodeChange: (editor: SlateEditor, node: Descendant, prevNode
3110
3124
  //#region src/lib/utils/pipeOnTextChange.d.ts
3111
3125
  declare const pipeOnTextChange: (editor: SlateEditor, node: Descendant, text: string, prevText: string, operation: TextOperation) => boolean;
3112
3126
  //#endregion
3113
- export { TSlateEditor as $, SlateElement as $a, RenderStaticNodeWrapperProps as $i, cleanHtmlFontElements as $n, NavigationNavigateOptions as $r, upsertInlineFormattingContext as $t, applyDeepToNodes as A, MatchBlockStartOptions as Aa, AnyEditorPlugin as Ai, isHtmlInlineElement as An, pluginRenderElementStatic as Ao, LogLevel as Ar, BaseParagraphPlugin as At, ZustandStoreApi as B, pipeDecorate as Ba, InferConfig as Bi, htmlBrToNewLine as Bn, ElementAffinity as Br, STATIC_VALUE_CREATED_AT as Bt, isSlateNode as C, InsertBreakInputRuleContext as Ca, getPluginKeys as Ci, pipeDeserializeHtmlLeaf as Cn, pipeRenderTextStatic as Co, NodeIdOptions as Cr, NodeComponents as Ct, isSlateText as D, InsertTextInputRuleContext as Da, getEditorPlugin as Di, isOlSymbol as Dn, pluginRenderLeafStatic as Do, normalizeNodeIdWithEditor as Dr, SelectionRules as Dt, isSlateString as E, InsertTextInputRule as Ea, getSlatePlugin as Ei, parseHtmlDocument as En, pipeRenderLeafStatic as Eo, normalizeNodeId as Er, PluginConfig as Et, RenderLeafProps as F, TextSubstitutionInputRuleConfig as Fa, ExtendEditor as Fi, inlineTagNames as Fn, getMarkBoundaryAffinity as Fr, withBreakRules as Ft, WithSlateOptions as G, getRenderNodeStaticProps as Ga, NodeStaticWrapperComponentProps as Gi, someHtmlElement as Gn, NavigationFeedbackPlugin as Gr, createBlockFenceInputRule as Gt, nanoid$1 as H, getSelectedDomNode as Ha, LeafStaticProps as Hi, getHtmlComments as Hn, clearNavigationFeedbackTarget as Hr, LengthPlugin as Ht, RenderElementFn as I, TextSubstitutionMatch as Ia, ExtendEditorApi as Ii, htmlTextNodeToString as In, getEdgeNodes as Ir, OverridePlugin as It, BaseEditor as J, createStaticString as Ja, OverrideEditor as Ji, deserializeHtmlElement as Jn, NavigationFeedbackConfig as Jr, createTextSubstitutionInputRule as Jt, createSlateEditor as K, getNodeDataAttributes as Ka, NodeStaticWrapperComponentReturnType as Ki, deserializeHtmlNodeChildren as Kn, NAVIGATION_FEEDBACK_KEY as Kr, createBlockStartInputRule as Kt, RenderElementProps as L, TextSubstitutionPattern as La, ExtendEditorTransforms as Li, htmlStringToDOMNode as Ln, EdgeNodes as Lr, withOverrides as Lt, RenderTextFn as M, ResolvedInputRule as Ma, Decorate as Mi, isHtmlElement as Mn, AstPlugin as Mo, setAffinitySelection as Mr, withNormalizeRules as Mt, RenderTextProps as N, ResolvedInputRulesMeta as Na, Deserializer as Ni, isHtmlComment as Nn, isNodeAffinity as Nr, withMergeRules as Nt, isSlateVoid as O, MarkInputRuleConfig as Oa, createSlatePlugin as Oi, isHtmlText as On, pipeRenderElementStatic as Oo, DebugErrorType as Or, WithAnyKey as Ot, RenderLeafFn as P, SelectionInputRuleContext as Pa, EditorPlugin as Pi, isHtmlBlockElement as Pn, isNodesAffinity as Pr, withDeleteRules as Pt, SlateEditor as Q, getEditorDOMFromHtmlString as Qa, RenderStaticNodeWrapperFunction as Qi, cleanHtmlLinkElements as Qn, NavigationFlashTargetOptions as Qr, endInlineFormattingContext as Qt, RenderChunkFn as R, stripSlateDataAttributes as Ra, HtmlDeserializer as Ri, htmlElementToLeaf as Rn, AffinityConfig as Rr, withNodeId as Rt, isSlateLeaf as S, InsertBreakInputRule as Sa, getPluginKey as Si, pluginDeserializeHtml as Sn, SlateRenderText as So, NodeIdConfig as Sr, NodeComponent as St, isSlatePluginNode as T, InsertDataInputRuleContext as Ta, getPluginTypes as Ti, parseHtmlElement as Tn, SlateRenderLeaf as To, NormalizeNodeIdOptions as Tr, ParserOptions as Tt, BaseWithSlateOptions as U, getSelectedDomFragment as Ua, NodeStaticProps as Ui, getDataNodeProps as Un, flashTarget as Ur, defineInputRule as Ut, createZustandStore$1 as V, isSelectOutside as Va, InjectNodeProps as Vi, htmlBodyToFragment as Vn, navigate as Vr, normalizeStaticValue as Vt, CreateSlateEditorOptions as W, getSelectedDomBlocks as Wa, NodeStaticWrapperComponent as Wi, findHtmlElement as Wn, resolveNavigationFeedbackTarget as Wr, createRuleFactory as Wt, KeyofNodePlugins as X, ViewPlugin as Xa, PartialEditorPlugin as Xi, copyBlockMarksToSpanChild as Xn, NavigationFeedbackStoredTarget as Xr, matchBlockStart as Xt, InferPlugins as Y, getStaticPlugins as Ya, Parser as Yi, deserializeHtml as Yn, NavigationFeedbackPluginKey as Yr, matchBlockFence as Yt, KeyofPlugins as Z, createStaticEditor as Za, RenderStaticNodeWrapper as Zi, cleanHtmlTextNodes as Zn, NavigationFeedbackTarget as Zr, matchDelimitedInline as Zt, getInjectMatch as _, InputRuleBuilder as _a, ParserPlugin as _i, replaceTagName as _n, serializeHtml as _o, GetCorePluginsOptions as _r, InferOptions as _t, omitPluginContext as a, SlatePlugins as aa, liftBlock as ai, collapseWhiteSpaceChildren as an, SlateText as ao, CARRIAGE_RETURN as ar, BasePluginContext as at, isSlateEditor as b, InputRulesDefinition as ba, getContainerTypes as bi, preCleanHtml as bn, PlateStatic as bo, ChunkingConfig as br, MatchRules as bt, isType as c, TransformInitialValue as ca, InitOptions as ci, CollapseWhiteSpaceState as cn, StyledSlateLeafProps as co, SPACE as cr, BaseTransformOptions as ct, isHotkey as d, BaseInputRule as da, AutoScrollOperationsMap as di, WhiteSpaceRule as dn, BoxStaticProps as do, HtmlPlugin as dr, EditOnlyConfig as dt, Serializer as ea, SlateExtensionConfig as ei, isLastNonEmptyTextOfInlineFormattingContext as en, SlateElementProps as eo, cleanHtmlEmptyElements as er, AnyPluginConfig as et, getSlateClass as f, BlockFenceInputRuleConfig as fa, DOMPlugin as fi, unwrapHtmlElement as fn, SlateRenderElementProps as fo, withChunking as fr, ExtendConfig as ft, getInjectedPlugins as g, DelimitedInlineInputRuleMatch as ga, withScrolling as gi, traverseHtmlComments as gn, SerializeHtmlOptions as go, DebugConfig as gr, InferKey as gt, keyToDataAttribute as h, BlockStartInputRuleMatch as ha, WithAutoScrollOptions as hi, traverseHtmlElements as hn, SlateRenderTextProps as ho, CorePluginTransforms as hr, InferApi as ht, overridePluginsByKey as i, SlatePluginMethods as ia, LiftBlockOptions as ii, collapseWhiteSpaceElement as in, SlateNodeProps as io, DeserializeHtmlNodeReturnType as ir, BasePlugin as it, EditableProps as j, MatchDelimitedInlineOptions as ja, AnySlatePlugin as ji, isHtmlFragmentHref as jn, HandlerReturnType as jo, PlateError as jr, ParagraphConfig as jt, ApplyDeepToNodesOptions as k, MatchBlockFenceOptions as ka, createTSlatePlugin as ki, isHtmlTable as kn, SlateRenderElement as ko, DebugPlugin as kr, WithRequiredKey as kt, Hotkeys as l, TransformOptions as la, init as li, TrimEndRule as ln, StyledSlateTextProps as lo, TAB as lr, BreakRules as lt, getNodeDataAttributeKeys as m, BlockStartInputRuleConfig as ma, ScrollMode as mi, traverseHtmlNode as mn, SlateRenderNodeProps as mo, CorePluginApi as mr, GetInjectNodePropsReturnType as mt, pipeOnNodeChange as n, SlatePluginConfig$1 as na, setValue as ni, collapseWhiteSpaceText as nn, SlateLeaf as no, cleanHtmlBrElements as nr, BaseHtmlDeserializer as nt, normalizeDescendantsToDocumentFragment as o, SlateShortcut as oa, InsertExitBreakOptions as oi, collapseWhiteSpace as on, SlateTextProps as oo, LINE_FEED as or, BasePluginNode as ot, getPluginNodeProps as p, BlockFenceInputRuleMatch as pa, DomConfig as pi, traverseHtmlTexts as pn, SlateRenderLeafProps as po, CorePlugin as pr, GetInjectNodePropsOptions as pt, withSlate as q, getPluginDataAttributes as qa, NormalizeInitialValue as qi, deserializeHtmlNode as qn, NavigationFeedbackActiveTarget as qr, createMarkInputRule as qt, pipeInsertDataQuery as r, SlatePluginContext as ra, resetBlock as ri, collapseWhiteSpaceNode as rn, SlateLeafProps as ro, DeserializeHtmlChildren as rr, BaseInjectProps as rt, mergeDeepToNodes as s, TextStaticProps as sa, insertExitBreak as si, collapseString as sn, StyledSlateElementProps as so, NO_BREAK_SPACE as sr, BaseSerializer as st, pipeOnTextChange as t, SlatePlugin as ta, SlateExtensionPlugin as ti, inferWhiteSpaceRule as tn, SlateHTMLProps as to, cleanHtmlCrLf as tr, BaseDeserializer as tt, createHotkey as u, AnyInputRule as ua, AUTO_SCROLL as ui, TrimStartRule as un, useNodeAttributes as uo, ZERO_WIDTH_SPACE as ur, DeleteRules as ut, defaultsDeepToNodes as v, InputRuleTarget as va, HistoryPlugin as vi, removeHtmlSurroundings as vn, ElementStatic as vo, LengthConfig as vr, InferSelectors as vt, isSlatePluginElement as w, InsertDataInputRule as wa, getPluginType as wi, pipeDeserializeHtmlElement as wn, pluginRenderTextStatic as wo, NodeIdPlugin as wr, NormalizeRules as wt, isSlateElement as x, InputRulesFactoryContext as xa, getPluginByType as xi, postCleanHtml as xn, PlateStaticProps as xo, ChunkingPlugin as xr, MergeRules as xt, getSlateElements as y, InputRulesConfig as ya, withPlateHistory as yi, removeHtmlNodesBetweenComments as yn, LeafStatic as yo, getCorePlugins as yr, InferTransforms as yt, RenderChunkProps as z, stripHtmlClassNames as za, HtmlSerializer as zi, htmlElementToElement as zn, AffinityPlugin as zr, NormalizeStaticValueOptions as zt };
3127
+ export { TSlateEditor as $, getEditorDOMFromHtmlString as $a, RenderStaticNodeWrapperFunction as $i, cleanHtmlFontElements as $n, NavigationNavigateOptions as $r, upsertInlineFormattingContext as $t, applyDeepToNodes as A, MatchBlockFenceOptions as Aa, createTSlatePlugin as Ai, isHtmlInlineElement as An, SlateRenderElement as Ao, LogLevel as Ar, BaseParagraphPlugin as At, ZustandStoreApi as B, stripHtmlClassNames as Ba, HtmlSerializer as Bi, htmlBrToNewLine as Bn, ElementAffinity as Br, STATIC_VALUE_CREATED_AT as Bt, isSlateNode as C, InsertBreakInputRule as Ca, getPluginKey as Ci, pipeDeserializeHtmlLeaf as Cn, SlateRenderText as Co, NodeIdOptions as Cr, NodeComponents as Ct, isSlateText as D, InsertTextInputRule as Da, getSlatePlugin as Di, isOlSymbol as Dn, pipeRenderLeafStatic as Do, normalizeNodeIdWithEditor as Dr, SelectionRules as Dt, isSlateString as E, InsertDataInputRuleContext as Ea, getPluginTypes as Ei, parseHtmlDocument as En, SlateRenderLeaf as Eo, normalizeNodeId as Er, PluginConfig as Et, RenderLeafProps as F, SelectionInputRuleContext as Fa, EditorPlugin as Fi, inlineTagNames as Fn, getMarkBoundaryAffinity as Fr, withBreakRules as Ft, WithSlateOptions as G, getSelectedDomBlocks as Ga, NodeStaticWrapperComponent as Gi, someHtmlElement as Gn, NavigationFeedbackPlugin as Gr, createBlockFenceInputRule as Gt, nanoid$1 as H, isSelectOutside as Ha, InjectNodeProps as Hi, getHtmlComments as Hn, clearNavigationFeedbackTarget as Hr, LengthPlugin as Ht, RenderElementFn as I, TextSubstitutionInputRuleConfig as Ia, ExtendEditor as Ii, htmlTextNodeToString as In, getEdgeNodes as Ir, OverridePlugin as It, BaseEditor as J, getPluginDataAttributes as Ja, NormalizeInitialValue as Ji, deserializeHtmlElement as Jn, NavigationFeedbackConfig as Jr, createTextSubstitutionInputRule as Jt, createSlateEditor as K, getRenderNodeStaticProps as Ka, NodeStaticWrapperComponentProps as Ki, deserializeHtmlNodeChildren as Kn, NAVIGATION_FEEDBACK_KEY as Kr, createBlockStartInputRule as Kt, RenderElementProps as L, TextSubstitutionMatch as La, ExtendEditorApi as Li, htmlStringToDOMNode as Ln, EdgeNodes as Lr, withOverrides as Lt, RenderTextFn as M, MatchDelimitedInlineOptions as Ma, AnySlatePlugin as Mi, isHtmlElement as Mn, HandlerReturnType as Mo, setAffinitySelection as Mr, withNormalizeRules as Mt, RenderTextProps as N, ResolvedInputRule as Na, Decorate as Ni, isHtmlComment as Nn, AstPlugin as No, isNodeAffinity as Nr, withMergeRules as Nt, isSlateVoid as O, InsertTextInputRuleContext as Oa, getEditorPlugin as Oi, isHtmlText as On, pluginRenderLeafStatic as Oo, DebugErrorType as Or, WithAnyKey as Ot, RenderLeafFn as P, ResolvedInputRulesMeta as Pa, Deserializer as Pi, isHtmlBlockElement as Pn, isNodesAffinity as Pr, withDeleteRules as Pt, SlateEditor as Q, createStaticEditor as Qa, RenderStaticNodeWrapper as Qi, cleanHtmlLinkElements as Qn, NavigationFlashTargetOptions as Qr, endInlineFormattingContext as Qt, RenderChunkFn as R, TextSubstitutionPattern as Ra, ExtendEditorTransforms as Ri, htmlElementToLeaf as Rn, AffinityConfig as Rr, withNodeId as Rt, isSlateLeaf as S, InputRulesFactoryContext as Sa, getPluginByType as Si, pluginDeserializeHtml as Sn, PlateStaticProps as So, NodeIdConfig as Sr, NodeComponent as St, isSlatePluginNode as T, InsertDataInputRule as Ta, getPluginType as Ti, parseHtmlElement as Tn, pluginRenderTextStatic as To, NormalizeNodeIdOptions as Tr, ParserOptions as Tt, BaseWithSlateOptions as U, getSelectedDomNode as Ua, LeafStaticProps as Ui, getDataNodeProps as Un, flashTarget as Ur, defineInputRule as Ut, createZustandStore$1 as V, pipeDecorate as Va, InferConfig as Vi, htmlBodyToFragment as Vn, navigate as Vr, normalizeStaticValue as Vt, CreateSlateEditorOptions as W, getSelectedDomFragment as Wa, NodeStaticProps as Wi, findHtmlElement as Wn, resolveNavigationFeedbackTarget as Wr, createRuleFactory as Wt, KeyofNodePlugins as X, getStaticPlugins as Xa, Parser as Xi, copyBlockMarksToSpanChild as Xn, NavigationFeedbackStoredTarget as Xr, matchBlockStart as Xt, InferPlugins as Y, createStaticString as Ya, OverrideEditor as Yi, deserializeHtml as Yn, NavigationFeedbackPluginKey as Yr, matchBlockFence as Yt, KeyofPlugins as Z, ViewPlugin as Za, PartialEditorPlugin as Zi, cleanHtmlTextNodes as Zn, NavigationFeedbackTarget as Zr, matchDelimitedInline as Zt, getInjectMatch as _, DelimitedInlineInputRuleMatch as _a, init as _i, replaceTagName as _n, SerializeHtmlOptions as _o, GetCorePluginsOptions as _r, InferOptions as _t, omitPluginContext as a, SlatePluginMethods as aa, WithAutoScrollOptions as ai, collapseWhiteSpaceChildren as an, SlateNodeProps as ao, CARRIAGE_RETURN as ar, BasePluginContext as at, isSlateEditor as b, InputRulesConfig as ba, withPlateHistory as bi, preCleanHtml as bn, LeafStatic as bo, ChunkingConfig as br, MatchRules as bt, isType as c, TextStaticProps as ca, SlateExtensionPlugin as ci, CollapseWhiteSpaceState as cn, StyledSlateElementProps as co, SPACE as cr, BaseTransformOptions as ct, isHotkey as d, AnyInputRule as da, resetBlock as di, WhiteSpaceRule as dn, useNodeAttributes as do, HtmlPlugin as dr, EditOnlyConfig as dt, RenderStaticNodeWrapperProps as ea, AUTO_SCROLL as ei, isLastNonEmptyTextOfInlineFormattingContext as en, SlateElement as eo, cleanHtmlEmptyElements as er, AnyPluginConfig as et, getSlateClass as f, BaseInputRule as fa, LiftBlockOptions as fi, unwrapHtmlElement as fn, BoxStaticProps as fo, withChunking as fr, ExtendConfig as ft, getInjectedPlugins as g, BlockStartInputRuleMatch as ga, InitOptions as gi, traverseHtmlComments as gn, SlateRenderTextProps as go, DebugConfig as gr, InferKey as gt, keyToDataAttribute as h, BlockStartInputRuleConfig as ha, insertExitBreak as hi, traverseHtmlElements as hn, SlateRenderNodeProps as ho, CorePluginTransforms as hr, InferApi as ht, overridePluginsByKey as i, SlatePluginContext as ia, ScrollMode as ii, collapseWhiteSpaceElement as in, SlateLeafProps as io, DeserializeHtmlNodeReturnType as ir, BasePlugin as it, EditableProps as j, MatchBlockStartOptions as ja, AnyEditorPlugin as ji, isHtmlFragmentHref as jn, pluginRenderElementStatic as jo, PlateError as jr, ParagraphConfig as jt, ApplyDeepToNodesOptions as k, MarkInputRuleConfig as ka, createSlatePlugin as ki, isHtmlTable as kn, pipeRenderElementStatic as ko, DebugPlugin as kr, WithRequiredKey as kt, Hotkeys as l, TransformInitialValue as la, isElementStateEmpty as li, TrimEndRule as ln, StyledSlateLeafProps as lo, TAB as lr, BreakRules as lt, getNodeDataAttributeKeys as m, BlockFenceInputRuleMatch as ma, InsertExitBreakOptions as mi, traverseHtmlNode as mn, SlateRenderLeafProps as mo, CorePluginApi as mr, GetInjectNodePropsReturnType as mt, pipeOnNodeChange as n, SlatePlugin as na, DOMPlugin as ni, collapseWhiteSpaceText as nn, SlateHTMLProps as no, cleanHtmlBrElements as nr, BaseHtmlDeserializer as nt, normalizeDescendantsToDocumentFragment as o, SlatePlugins as oa, withScrolling as oi, collapseWhiteSpace as on, SlateText as oo, LINE_FEED as or, BasePluginNode as ot, getPluginNodeProps as p, BlockFenceInputRuleConfig as pa, liftBlock as pi, traverseHtmlTexts as pn, SlateRenderElementProps as po, CorePlugin as pr, GetInjectNodePropsOptions as pt, withSlate as q, getNodeDataAttributes as qa, NodeStaticWrapperComponentReturnType as qi, deserializeHtmlNode as qn, NavigationFeedbackActiveTarget as qr, createMarkInputRule as qt, pipeInsertDataQuery as r, SlatePluginConfig$1 as ra, DomConfig as ri, collapseWhiteSpaceNode as rn, SlateLeaf as ro, DeserializeHtmlChildren as rr, BaseInjectProps as rt, mergeDeepToNodes as s, SlateShortcut as sa, SlateExtensionConfig as si, collapseString as sn, SlateTextProps as so, NO_BREAK_SPACE as sr, BaseSerializer as st, pipeOnTextChange as t, Serializer as ta, AutoScrollOperationsMap as ti, inferWhiteSpaceRule as tn, SlateElementProps as to, cleanHtmlCrLf as tr, BaseDeserializer as tt, createHotkey as u, TransformOptions as ua, setValue as ui, TrimStartRule as un, StyledSlateTextProps as uo, ZERO_WIDTH_SPACE as ur, DeleteRules as ut, defaultsDeepToNodes as v, InputRuleBuilder as va, ParserPlugin as vi, removeHtmlSurroundings as vn, serializeHtml as vo, LengthConfig as vr, InferSelectors as vt, isSlatePluginElement as w, InsertBreakInputRuleContext as wa, getPluginKeys as wi, pipeDeserializeHtmlElement as wn, pipeRenderTextStatic as wo, NodeIdPlugin as wr, NormalizeRules as wt, isSlateElement as x, InputRulesDefinition as xa, getContainerTypes as xi, postCleanHtml as xn, PlateStatic as xo, ChunkingPlugin as xr, MergeRules as xt, getSlateElements as y, InputRuleTarget as ya, HistoryPlugin as yi, removeHtmlNodesBetweenComments as yn, ElementStatic as yo, getCorePlugins as yr, InferTransforms as yt, RenderChunkProps as z, stripSlateDataAttributes as za, HtmlDeserializer as zi, htmlElementToElement as zn, AffinityPlugin as zr, NormalizeStaticValueOptions as zt };
package/dist/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { $ as TSlateEditor, $i as RenderStaticNodeWrapperProps, $n as cleanHtmlFontElements, $r as NavigationNavigateOptions, $t as upsertInlineFormattingContext, A as applyDeepToNodes, Aa as MatchBlockStartOptions, Ai as AnyEditorPlugin, An as isHtmlInlineElement, Ar as LogLevel, At as BaseParagraphPlugin, B as ZustandStoreApi, Bi as InferConfig, Bn as htmlBrToNewLine, Br as ElementAffinity, Bt as STATIC_VALUE_CREATED_AT, C as isSlateNode, Ca as InsertBreakInputRuleContext, Ci as getPluginKeys, Cn as pipeDeserializeHtmlLeaf, Cr as NodeIdOptions, Ct as NodeComponents, D as isSlateText, Da as InsertTextInputRuleContext, Di as getEditorPlugin, Dn as isOlSymbol, Dr as normalizeNodeIdWithEditor, Dt as SelectionRules, E as isSlateString, Ea as InsertTextInputRule, Ei as getSlatePlugin, En as parseHtmlDocument, Er as normalizeNodeId, Et as PluginConfig, F as RenderLeafProps, Fa as TextSubstitutionInputRuleConfig, Fi as ExtendEditor, Fn as inlineTagNames, Fr as getMarkBoundaryAffinity, Ft as withBreakRules, G as WithSlateOptions, Gi as NodeStaticWrapperComponentProps, Gn as someHtmlElement, Gr as NavigationFeedbackPlugin, Gt as createBlockFenceInputRule, H as nanoid, Hi as LeafStaticProps, Hn as getHtmlComments, Hr as clearNavigationFeedbackTarget, Ht as LengthPlugin, I as RenderElementFn, Ia as TextSubstitutionMatch, Ii as ExtendEditorApi, In as htmlTextNodeToString, Ir as getEdgeNodes, It as OverridePlugin, J as BaseEditor, Ji as OverrideEditor, Jn as deserializeHtmlElement, Jr as NavigationFeedbackConfig, Jt as createTextSubstitutionInputRule, K as createSlateEditor, Ki as NodeStaticWrapperComponentReturnType, Kn as deserializeHtmlNodeChildren, Kr as NAVIGATION_FEEDBACK_KEY, Kt as createBlockStartInputRule, L as RenderElementProps, La as TextSubstitutionPattern, Li as ExtendEditorTransforms, Ln as htmlStringToDOMNode, Lr as EdgeNodes, Lt as withOverrides, M as RenderTextFn, Ma as ResolvedInputRule, Mi as Decorate, Mn as isHtmlElement, Mo as AstPlugin, Mr as setAffinitySelection, Mt as withNormalizeRules, N as RenderTextProps, Na as ResolvedInputRulesMeta, Ni as Deserializer, Nn as isHtmlComment, Nr as isNodeAffinity, Nt as withMergeRules, O as isSlateVoid, Oa as MarkInputRuleConfig, Oi as createSlatePlugin, On as isHtmlText, Or as DebugErrorType, Ot as WithAnyKey, P as RenderLeafFn, Pa as SelectionInputRuleContext, Pi as EditorPlugin, Pn as isHtmlBlockElement, Pr as isNodesAffinity, Pt as withDeleteRules, Q as SlateEditor, Qi as RenderStaticNodeWrapperFunction, Qn as cleanHtmlLinkElements, Qr as NavigationFlashTargetOptions, Qt as endInlineFormattingContext, R as RenderChunkFn, Ri as HtmlDeserializer, Rn as htmlElementToLeaf, Rr as AffinityConfig, Rt as withNodeId, S as isSlateLeaf, Sa as InsertBreakInputRule, Si as getPluginKey, Sn as pluginDeserializeHtml, Sr as NodeIdConfig, St as NodeComponent, T as isSlatePluginNode, Ta as InsertDataInputRuleContext, Ti as getPluginTypes, Tn as parseHtmlElement, Tr as NormalizeNodeIdOptions, Tt as ParserOptions, U as BaseWithSlateOptions, Ui as NodeStaticProps, Un as getDataNodeProps, Ur as flashTarget, Ut as defineInputRule, V as createZustandStore, Vi as InjectNodeProps, Vn as htmlBodyToFragment, Vr as navigate, Vt as normalizeStaticValue, W as CreateSlateEditorOptions, Wi as NodeStaticWrapperComponent, Wn as findHtmlElement, Wr as resolveNavigationFeedbackTarget, Wt as createRuleFactory, X as KeyofNodePlugins, Xi as PartialEditorPlugin, Xn as copyBlockMarksToSpanChild, Xr as NavigationFeedbackStoredTarget, Xt as matchBlockStart, Y as InferPlugins, Yi as Parser, Yn as deserializeHtml, Yr as NavigationFeedbackPluginKey, Yt as matchBlockFence, Z as KeyofPlugins, Zi as RenderStaticNodeWrapper, Zn as cleanHtmlTextNodes, Zr as NavigationFeedbackTarget, Zt as matchDelimitedInline, _ as getInjectMatch, _a as InputRuleBuilder, _i as ParserPlugin, _n as replaceTagName, _r as GetCorePluginsOptions, _t as InferOptions, a as omitPluginContext, aa as SlatePlugins, ai as liftBlock, an as collapseWhiteSpaceChildren, ar as CARRIAGE_RETURN, at as BasePluginContext, b as isSlateEditor, ba as InputRulesDefinition, bi as getContainerTypes, bn as preCleanHtml, br as ChunkingConfig, bt as MatchRules, c as isType, ca as TransformInitialValue, ci as InitOptions, cn as CollapseWhiteSpaceState, cr as SPACE, ct as BaseTransformOptions, d as isHotkey, da as BaseInputRule, di as AutoScrollOperationsMap, dn as WhiteSpaceRule, dr as HtmlPlugin, dt as EditOnlyConfig, ea as Serializer, ei as SlateExtensionConfig, en as isLastNonEmptyTextOfInlineFormattingContext, er as cleanHtmlEmptyElements, et as AnyPluginConfig, f as getSlateClass, fa as BlockFenceInputRuleConfig, fi as DOMPlugin, fn as unwrapHtmlElement, fr as withChunking, ft as ExtendConfig, g as getInjectedPlugins, ga as DelimitedInlineInputRuleMatch, gi as withScrolling, gn as traverseHtmlComments, gr as DebugConfig, gt as InferKey, h as keyToDataAttribute, ha as BlockStartInputRuleMatch, hi as WithAutoScrollOptions, hn as traverseHtmlElements, hr as CorePluginTransforms, ht as InferApi, i as overridePluginsByKey, ia as SlatePluginMethods, ii as LiftBlockOptions, in as collapseWhiteSpaceElement, ir as DeserializeHtmlNodeReturnType, it as BasePlugin, j as EditableProps, ja as MatchDelimitedInlineOptions, ji as AnySlatePlugin, jn as isHtmlFragmentHref, jo as HandlerReturnType, jr as PlateError, jt as ParagraphConfig, k as ApplyDeepToNodesOptions, ka as MatchBlockFenceOptions, ki as createTSlatePlugin, kn as isHtmlTable, kr as DebugPlugin, kt as WithRequiredKey, l as Hotkeys, la as TransformOptions, li as init, ln as TrimEndRule, lr as TAB, lt as BreakRules, m as getNodeDataAttributeKeys, ma as BlockStartInputRuleConfig, mi as ScrollMode, mn as traverseHtmlNode, mr as CorePluginApi, mt as GetInjectNodePropsReturnType, n as pipeOnNodeChange, na as SlatePluginConfig, ni as setValue, nn as collapseWhiteSpaceText, nr as cleanHtmlBrElements, nt as BaseHtmlDeserializer, o as normalizeDescendantsToDocumentFragment, oa as SlateShortcut, oi as InsertExitBreakOptions, on as collapseWhiteSpace, or as LINE_FEED, ot as BasePluginNode, p as getPluginNodeProps, pa as BlockFenceInputRuleMatch, pi as DomConfig, pn as traverseHtmlTexts, pr as CorePlugin, pt as GetInjectNodePropsOptions, q as withSlate, qi as NormalizeInitialValue, qn as deserializeHtmlNode, qr as NavigationFeedbackActiveTarget, qt as createMarkInputRule, r as pipeInsertDataQuery, ra as SlatePluginContext, ri as resetBlock, rn as collapseWhiteSpaceNode, rr as DeserializeHtmlChildren, rt as BaseInjectProps, s as mergeDeepToNodes, sa as TextStaticProps, si as insertExitBreak, sn as collapseString, sr as NO_BREAK_SPACE, st as BaseSerializer, t as pipeOnTextChange, ta as SlatePlugin, ti as SlateExtensionPlugin, tn as inferWhiteSpaceRule, tr as cleanHtmlCrLf, tt as BaseDeserializer, u as createHotkey, ua as AnyInputRule, ui as AUTO_SCROLL, un as TrimStartRule, ur as ZERO_WIDTH_SPACE, ut as DeleteRules, v as defaultsDeepToNodes, va as InputRuleTarget, vi as HistoryPlugin, vn as removeHtmlSurroundings, vr as LengthConfig, vt as InferSelectors, w as isSlatePluginElement, wa as InsertDataInputRule, wi as getPluginType, wn as pipeDeserializeHtmlElement, wr as NodeIdPlugin, wt as NormalizeRules, x as isSlateElement, xa as InputRulesFactoryContext, xi as getPluginByType, xn as postCleanHtml, xr as ChunkingPlugin, xt as MergeRules, y as getSlateElements, ya as InputRulesConfig, yi as withPlateHistory, yn as removeHtmlNodesBetweenComments, yr as getCorePlugins, yt as InferTransforms, z as RenderChunkProps, zi as HtmlSerializer, zn as htmlElementToElement, zr as AffinityPlugin, zt as NormalizeStaticValueOptions } from "./index-BDSzA1zP";
2
- export { AUTO_SCROLL, AffinityConfig, AffinityPlugin, AnyEditorPlugin, AnyInputRule, AnyPluginConfig, AnySlatePlugin, ApplyDeepToNodesOptions, AstPlugin, AutoScrollOperationsMap, BaseDeserializer, BaseEditor, BaseHtmlDeserializer, BaseInjectProps, BaseInputRule, BaseParagraphPlugin, BasePlugin, BasePluginContext, BasePluginNode, BaseSerializer, BaseTransformOptions, BaseWithSlateOptions, BlockFenceInputRuleConfig, BlockFenceInputRuleMatch, BlockStartInputRuleConfig, BlockStartInputRuleMatch, BreakRules, CARRIAGE_RETURN, ChunkingConfig, ChunkingPlugin, CollapseWhiteSpaceState, CorePlugin, CorePluginApi, CorePluginTransforms, CreateSlateEditorOptions, DOMPlugin, DebugConfig, DebugErrorType, DebugPlugin, Decorate, DeleteRules, DelimitedInlineInputRuleMatch, DeserializeHtmlChildren, DeserializeHtmlNodeReturnType, Deserializer, DomConfig, EdgeNodes, EditOnlyConfig, EditableProps, EditorPlugin, ElementAffinity, ExtendConfig, ExtendEditor, ExtendEditorApi, ExtendEditorTransforms, GetCorePluginsOptions, GetInjectNodePropsOptions, GetInjectNodePropsReturnType, HandlerReturnType, HistoryPlugin, Hotkeys, HtmlDeserializer, HtmlPlugin, HtmlSerializer, InferApi, InferConfig, InferKey, InferOptions, InferPlugins, InferSelectors, InferTransforms, InitOptions, InjectNodeProps, InputRuleBuilder, InputRuleTarget, InputRulesConfig, InputRulesDefinition, InputRulesFactoryContext, InsertBreakInputRule, InsertBreakInputRuleContext, InsertDataInputRule, InsertDataInputRuleContext, InsertExitBreakOptions, InsertTextInputRule, InsertTextInputRuleContext, KeyofNodePlugins, KeyofPlugins, LINE_FEED, LeafStaticProps, LengthConfig, LengthPlugin, LiftBlockOptions, LogLevel, MarkInputRuleConfig, MatchBlockFenceOptions, MatchBlockStartOptions, MatchDelimitedInlineOptions, MatchRules, MergeRules, NAVIGATION_FEEDBACK_KEY, NO_BREAK_SPACE, NavigationFeedbackActiveTarget, NavigationFeedbackConfig, NavigationFeedbackPlugin, NavigationFeedbackPluginKey, NavigationFeedbackStoredTarget, NavigationFeedbackTarget, NavigationFlashTargetOptions, NavigationNavigateOptions, NodeComponent, NodeComponents, NodeIdConfig, NodeIdOptions, NodeIdPlugin, NodeStaticProps, NodeStaticWrapperComponent, NodeStaticWrapperComponentProps, NodeStaticWrapperComponentReturnType, NormalizeInitialValue, NormalizeNodeIdOptions, NormalizeRules, NormalizeStaticValueOptions, OverrideEditor, OverridePlugin, ParagraphConfig, Parser, ParserOptions, ParserPlugin, PartialEditorPlugin, PlateError, PluginConfig, RenderChunkFn, RenderChunkProps, RenderElementFn, RenderElementProps, RenderLeafFn, RenderLeafProps, RenderStaticNodeWrapper, RenderStaticNodeWrapperFunction, RenderStaticNodeWrapperProps, RenderTextFn, RenderTextProps, ResolvedInputRule, ResolvedInputRulesMeta, SPACE, STATIC_VALUE_CREATED_AT, ScrollMode, SelectionInputRuleContext, SelectionRules, Serializer, SlateEditor, SlateExtensionConfig, SlateExtensionPlugin, SlatePlugin, SlatePluginConfig, SlatePluginContext, SlatePluginMethods, SlatePlugins, SlateShortcut, TAB, TSlateEditor, TextStaticProps, TextSubstitutionInputRuleConfig, TextSubstitutionMatch, TextSubstitutionPattern, TransformInitialValue, TransformOptions, TrimEndRule, TrimStartRule, WhiteSpaceRule, WithAnyKey, WithAutoScrollOptions, WithRequiredKey, WithSlateOptions, ZERO_WIDTH_SPACE, ZustandStoreApi, applyDeepToNodes, cleanHtmlBrElements, cleanHtmlCrLf, cleanHtmlEmptyElements, cleanHtmlFontElements, cleanHtmlLinkElements, cleanHtmlTextNodes, clearNavigationFeedbackTarget, collapseString, collapseWhiteSpace, collapseWhiteSpaceChildren, collapseWhiteSpaceElement, collapseWhiteSpaceNode, collapseWhiteSpaceText, copyBlockMarksToSpanChild, createBlockFenceInputRule, createBlockStartInputRule, createHotkey, createMarkInputRule, createRuleFactory, createSlateEditor, createSlatePlugin, createTSlatePlugin, createTextSubstitutionInputRule, createZustandStore, defaultsDeepToNodes, defineInputRule, deserializeHtml, deserializeHtmlElement, deserializeHtmlNode, deserializeHtmlNodeChildren, endInlineFormattingContext, findHtmlElement, flashTarget, getContainerTypes, getCorePlugins, getDataNodeProps, getEdgeNodes, getEditorPlugin, getHtmlComments, getInjectMatch, getInjectedPlugins, getMarkBoundaryAffinity, getNodeDataAttributeKeys, getPluginByType, getPluginKey, getPluginKeys, getPluginNodeProps, getPluginType, getPluginTypes, getSlateClass, getSlateElements, getSlatePlugin, htmlBodyToFragment, htmlBrToNewLine, htmlElementToElement, htmlElementToLeaf, htmlStringToDOMNode, htmlTextNodeToString, inferWhiteSpaceRule, init, inlineTagNames, insertExitBreak, isHotkey, isHtmlBlockElement, isHtmlComment, isHtmlElement, isHtmlFragmentHref, isHtmlInlineElement, isHtmlTable, isHtmlText, isLastNonEmptyTextOfInlineFormattingContext, isNodeAffinity, isNodesAffinity, isOlSymbol, isSlateEditor, isSlateElement, isSlateLeaf, isSlateNode, isSlatePluginElement, isSlatePluginNode, isSlateString, isSlateText, isSlateVoid, isType, keyToDataAttribute, liftBlock, matchBlockFence, matchBlockStart, matchDelimitedInline, mergeDeepToNodes, nanoid, navigate, normalizeDescendantsToDocumentFragment, normalizeNodeId, normalizeNodeIdWithEditor, normalizeStaticValue, omitPluginContext, overridePluginsByKey, parseHtmlDocument, parseHtmlElement, pipeDeserializeHtmlElement, pipeDeserializeHtmlLeaf, pipeInsertDataQuery, pipeOnNodeChange, pipeOnTextChange, pluginDeserializeHtml, postCleanHtml, preCleanHtml, removeHtmlNodesBetweenComments, removeHtmlSurroundings, replaceTagName, resetBlock, resolveNavigationFeedbackTarget, setAffinitySelection, setValue, someHtmlElement, traverseHtmlComments, traverseHtmlElements, traverseHtmlNode, traverseHtmlTexts, unwrapHtmlElement, upsertInlineFormattingContext, withBreakRules, withChunking, withDeleteRules, withMergeRules, withNodeId, withNormalizeRules, withOverrides, withPlateHistory, withScrolling, withSlate };
1
+ import { $ as TSlateEditor, $i as RenderStaticNodeWrapperFunction, $n as cleanHtmlFontElements, $r as NavigationNavigateOptions, $t as upsertInlineFormattingContext, A as applyDeepToNodes, Aa as MatchBlockFenceOptions, Ai as createTSlatePlugin, An as isHtmlInlineElement, Ar as LogLevel, At as BaseParagraphPlugin, B as ZustandStoreApi, Bi as HtmlSerializer, Bn as htmlBrToNewLine, Br as ElementAffinity, Bt as STATIC_VALUE_CREATED_AT, C as isSlateNode, Ca as InsertBreakInputRule, Ci as getPluginKey, Cn as pipeDeserializeHtmlLeaf, Cr as NodeIdOptions, Ct as NodeComponents, D as isSlateText, Da as InsertTextInputRule, Di as getSlatePlugin, Dn as isOlSymbol, Dr as normalizeNodeIdWithEditor, Dt as SelectionRules, E as isSlateString, Ea as InsertDataInputRuleContext, Ei as getPluginTypes, En as parseHtmlDocument, Er as normalizeNodeId, Et as PluginConfig, F as RenderLeafProps, Fa as SelectionInputRuleContext, Fi as EditorPlugin, Fn as inlineTagNames, Fr as getMarkBoundaryAffinity, Ft as withBreakRules, G as WithSlateOptions, Gi as NodeStaticWrapperComponent, Gn as someHtmlElement, Gr as NavigationFeedbackPlugin, Gt as createBlockFenceInputRule, H as nanoid, Hi as InjectNodeProps, Hn as getHtmlComments, Hr as clearNavigationFeedbackTarget, Ht as LengthPlugin, I as RenderElementFn, Ia as TextSubstitutionInputRuleConfig, Ii as ExtendEditor, In as htmlTextNodeToString, Ir as getEdgeNodes, It as OverridePlugin, J as BaseEditor, Ji as NormalizeInitialValue, Jn as deserializeHtmlElement, Jr as NavigationFeedbackConfig, Jt as createTextSubstitutionInputRule, K as createSlateEditor, Ki as NodeStaticWrapperComponentProps, Kn as deserializeHtmlNodeChildren, Kr as NAVIGATION_FEEDBACK_KEY, Kt as createBlockStartInputRule, L as RenderElementProps, La as TextSubstitutionMatch, Li as ExtendEditorApi, Ln as htmlStringToDOMNode, Lr as EdgeNodes, Lt as withOverrides, M as RenderTextFn, Ma as MatchDelimitedInlineOptions, Mi as AnySlatePlugin, Mn as isHtmlElement, Mo as HandlerReturnType, Mr as setAffinitySelection, Mt as withNormalizeRules, N as RenderTextProps, Na as ResolvedInputRule, Ni as Decorate, Nn as isHtmlComment, No as AstPlugin, Nr as isNodeAffinity, Nt as withMergeRules, O as isSlateVoid, Oa as InsertTextInputRuleContext, Oi as getEditorPlugin, On as isHtmlText, Or as DebugErrorType, Ot as WithAnyKey, P as RenderLeafFn, Pa as ResolvedInputRulesMeta, Pi as Deserializer, Pn as isHtmlBlockElement, Pr as isNodesAffinity, Pt as withDeleteRules, Q as SlateEditor, Qi as RenderStaticNodeWrapper, Qn as cleanHtmlLinkElements, Qr as NavigationFlashTargetOptions, Qt as endInlineFormattingContext, R as RenderChunkFn, Ra as TextSubstitutionPattern, Ri as ExtendEditorTransforms, Rn as htmlElementToLeaf, Rr as AffinityConfig, Rt as withNodeId, S as isSlateLeaf, Sa as InputRulesFactoryContext, Si as getPluginByType, Sn as pluginDeserializeHtml, Sr as NodeIdConfig, St as NodeComponent, T as isSlatePluginNode, Ta as InsertDataInputRule, Ti as getPluginType, Tn as parseHtmlElement, Tr as NormalizeNodeIdOptions, Tt as ParserOptions, U as BaseWithSlateOptions, Ui as LeafStaticProps, Un as getDataNodeProps, Ur as flashTarget, Ut as defineInputRule, V as createZustandStore, Vi as InferConfig, Vn as htmlBodyToFragment, Vr as navigate, Vt as normalizeStaticValue, W as CreateSlateEditorOptions, Wi as NodeStaticProps, Wn as findHtmlElement, Wr as resolveNavigationFeedbackTarget, Wt as createRuleFactory, X as KeyofNodePlugins, Xi as Parser, Xn as copyBlockMarksToSpanChild, Xr as NavigationFeedbackStoredTarget, Xt as matchBlockStart, Y as InferPlugins, Yi as OverrideEditor, Yn as deserializeHtml, Yr as NavigationFeedbackPluginKey, Yt as matchBlockFence, Z as KeyofPlugins, Zi as PartialEditorPlugin, Zn as cleanHtmlTextNodes, Zr as NavigationFeedbackTarget, Zt as matchDelimitedInline, _ as getInjectMatch, _a as DelimitedInlineInputRuleMatch, _i as init, _n as replaceTagName, _r as GetCorePluginsOptions, _t as InferOptions, a as omitPluginContext, aa as SlatePluginMethods, ai as WithAutoScrollOptions, an as collapseWhiteSpaceChildren, ar as CARRIAGE_RETURN, at as BasePluginContext, b as isSlateEditor, ba as InputRulesConfig, bi as withPlateHistory, bn as preCleanHtml, br as ChunkingConfig, bt as MatchRules, c as isType, ca as TextStaticProps, ci as SlateExtensionPlugin, cn as CollapseWhiteSpaceState, cr as SPACE, ct as BaseTransformOptions, d as isHotkey, da as AnyInputRule, di as resetBlock, dn as WhiteSpaceRule, dr as HtmlPlugin, dt as EditOnlyConfig, ea as RenderStaticNodeWrapperProps, ei as AUTO_SCROLL, en as isLastNonEmptyTextOfInlineFormattingContext, er as cleanHtmlEmptyElements, et as AnyPluginConfig, f as getSlateClass, fa as BaseInputRule, fi as LiftBlockOptions, fn as unwrapHtmlElement, fr as withChunking, ft as ExtendConfig, g as getInjectedPlugins, ga as BlockStartInputRuleMatch, gi as InitOptions, gn as traverseHtmlComments, gr as DebugConfig, gt as InferKey, h as keyToDataAttribute, ha as BlockStartInputRuleConfig, hi as insertExitBreak, hn as traverseHtmlElements, hr as CorePluginTransforms, ht as InferApi, i as overridePluginsByKey, ia as SlatePluginContext, ii as ScrollMode, in as collapseWhiteSpaceElement, ir as DeserializeHtmlNodeReturnType, it as BasePlugin, j as EditableProps, ja as MatchBlockStartOptions, ji as AnyEditorPlugin, jn as isHtmlFragmentHref, jr as PlateError, jt as ParagraphConfig, k as ApplyDeepToNodesOptions, ka as MarkInputRuleConfig, ki as createSlatePlugin, kn as isHtmlTable, kr as DebugPlugin, kt as WithRequiredKey, l as Hotkeys, la as TransformInitialValue, li as isElementStateEmpty, ln as TrimEndRule, lr as TAB, lt as BreakRules, m as getNodeDataAttributeKeys, ma as BlockFenceInputRuleMatch, mi as InsertExitBreakOptions, mn as traverseHtmlNode, mr as CorePluginApi, mt as GetInjectNodePropsReturnType, n as pipeOnNodeChange, na as SlatePlugin, ni as DOMPlugin, nn as collapseWhiteSpaceText, nr as cleanHtmlBrElements, nt as BaseHtmlDeserializer, o as normalizeDescendantsToDocumentFragment, oa as SlatePlugins, oi as withScrolling, on as collapseWhiteSpace, or as LINE_FEED, ot as BasePluginNode, p as getPluginNodeProps, pa as BlockFenceInputRuleConfig, pi as liftBlock, pn as traverseHtmlTexts, pr as CorePlugin, pt as GetInjectNodePropsOptions, q as withSlate, qi as NodeStaticWrapperComponentReturnType, qn as deserializeHtmlNode, qr as NavigationFeedbackActiveTarget, qt as createMarkInputRule, r as pipeInsertDataQuery, ra as SlatePluginConfig, ri as DomConfig, rn as collapseWhiteSpaceNode, rr as DeserializeHtmlChildren, rt as BaseInjectProps, s as mergeDeepToNodes, sa as SlateShortcut, si as SlateExtensionConfig, sn as collapseString, sr as NO_BREAK_SPACE, st as BaseSerializer, t as pipeOnTextChange, ta as Serializer, ti as AutoScrollOperationsMap, tn as inferWhiteSpaceRule, tr as cleanHtmlCrLf, tt as BaseDeserializer, u as createHotkey, ua as TransformOptions, ui as setValue, un as TrimStartRule, ur as ZERO_WIDTH_SPACE, ut as DeleteRules, v as defaultsDeepToNodes, va as InputRuleBuilder, vi as ParserPlugin, vn as removeHtmlSurroundings, vr as LengthConfig, vt as InferSelectors, w as isSlatePluginElement, wa as InsertBreakInputRuleContext, wi as getPluginKeys, wn as pipeDeserializeHtmlElement, wr as NodeIdPlugin, wt as NormalizeRules, x as isSlateElement, xa as InputRulesDefinition, xi as getContainerTypes, xn as postCleanHtml, xr as ChunkingPlugin, xt as MergeRules, y as getSlateElements, ya as InputRuleTarget, yi as HistoryPlugin, yn as removeHtmlNodesBetweenComments, yr as getCorePlugins, yt as InferTransforms, z as RenderChunkProps, zi as HtmlDeserializer, zn as htmlElementToElement, zr as AffinityPlugin, zt as NormalizeStaticValueOptions } from "./index-fS5ruWhD";
2
+ export { AUTO_SCROLL, AffinityConfig, AffinityPlugin, AnyEditorPlugin, AnyInputRule, AnyPluginConfig, AnySlatePlugin, ApplyDeepToNodesOptions, AstPlugin, AutoScrollOperationsMap, BaseDeserializer, BaseEditor, BaseHtmlDeserializer, BaseInjectProps, BaseInputRule, BaseParagraphPlugin, BasePlugin, BasePluginContext, BasePluginNode, BaseSerializer, BaseTransformOptions, BaseWithSlateOptions, BlockFenceInputRuleConfig, BlockFenceInputRuleMatch, BlockStartInputRuleConfig, BlockStartInputRuleMatch, BreakRules, CARRIAGE_RETURN, ChunkingConfig, ChunkingPlugin, CollapseWhiteSpaceState, CorePlugin, CorePluginApi, CorePluginTransforms, CreateSlateEditorOptions, DOMPlugin, DebugConfig, DebugErrorType, DebugPlugin, Decorate, DeleteRules, DelimitedInlineInputRuleMatch, DeserializeHtmlChildren, DeserializeHtmlNodeReturnType, Deserializer, DomConfig, EdgeNodes, EditOnlyConfig, EditableProps, EditorPlugin, ElementAffinity, ExtendConfig, ExtendEditor, ExtendEditorApi, ExtendEditorTransforms, GetCorePluginsOptions, GetInjectNodePropsOptions, GetInjectNodePropsReturnType, HandlerReturnType, HistoryPlugin, Hotkeys, HtmlDeserializer, HtmlPlugin, HtmlSerializer, InferApi, InferConfig, InferKey, InferOptions, InferPlugins, InferSelectors, InferTransforms, InitOptions, InjectNodeProps, InputRuleBuilder, InputRuleTarget, InputRulesConfig, InputRulesDefinition, InputRulesFactoryContext, InsertBreakInputRule, InsertBreakInputRuleContext, InsertDataInputRule, InsertDataInputRuleContext, InsertExitBreakOptions, InsertTextInputRule, InsertTextInputRuleContext, KeyofNodePlugins, KeyofPlugins, LINE_FEED, LeafStaticProps, LengthConfig, LengthPlugin, LiftBlockOptions, LogLevel, MarkInputRuleConfig, MatchBlockFenceOptions, MatchBlockStartOptions, MatchDelimitedInlineOptions, MatchRules, MergeRules, NAVIGATION_FEEDBACK_KEY, NO_BREAK_SPACE, NavigationFeedbackActiveTarget, NavigationFeedbackConfig, NavigationFeedbackPlugin, NavigationFeedbackPluginKey, NavigationFeedbackStoredTarget, NavigationFeedbackTarget, NavigationFlashTargetOptions, NavigationNavigateOptions, NodeComponent, NodeComponents, NodeIdConfig, NodeIdOptions, NodeIdPlugin, NodeStaticProps, NodeStaticWrapperComponent, NodeStaticWrapperComponentProps, NodeStaticWrapperComponentReturnType, NormalizeInitialValue, NormalizeNodeIdOptions, NormalizeRules, NormalizeStaticValueOptions, OverrideEditor, OverridePlugin, ParagraphConfig, Parser, ParserOptions, ParserPlugin, PartialEditorPlugin, PlateError, PluginConfig, RenderChunkFn, RenderChunkProps, RenderElementFn, RenderElementProps, RenderLeafFn, RenderLeafProps, RenderStaticNodeWrapper, RenderStaticNodeWrapperFunction, RenderStaticNodeWrapperProps, RenderTextFn, RenderTextProps, ResolvedInputRule, ResolvedInputRulesMeta, SPACE, STATIC_VALUE_CREATED_AT, ScrollMode, SelectionInputRuleContext, SelectionRules, Serializer, SlateEditor, SlateExtensionConfig, SlateExtensionPlugin, SlatePlugin, SlatePluginConfig, SlatePluginContext, SlatePluginMethods, SlatePlugins, SlateShortcut, TAB, TSlateEditor, TextStaticProps, TextSubstitutionInputRuleConfig, TextSubstitutionMatch, TextSubstitutionPattern, TransformInitialValue, TransformOptions, TrimEndRule, TrimStartRule, WhiteSpaceRule, WithAnyKey, WithAutoScrollOptions, WithRequiredKey, WithSlateOptions, ZERO_WIDTH_SPACE, ZustandStoreApi, applyDeepToNodes, cleanHtmlBrElements, cleanHtmlCrLf, cleanHtmlEmptyElements, cleanHtmlFontElements, cleanHtmlLinkElements, cleanHtmlTextNodes, clearNavigationFeedbackTarget, collapseString, collapseWhiteSpace, collapseWhiteSpaceChildren, collapseWhiteSpaceElement, collapseWhiteSpaceNode, collapseWhiteSpaceText, copyBlockMarksToSpanChild, createBlockFenceInputRule, createBlockStartInputRule, createHotkey, createMarkInputRule, createRuleFactory, createSlateEditor, createSlatePlugin, createTSlatePlugin, createTextSubstitutionInputRule, createZustandStore, defaultsDeepToNodes, defineInputRule, deserializeHtml, deserializeHtmlElement, deserializeHtmlNode, deserializeHtmlNodeChildren, endInlineFormattingContext, findHtmlElement, flashTarget, getContainerTypes, getCorePlugins, getDataNodeProps, getEdgeNodes, getEditorPlugin, getHtmlComments, getInjectMatch, getInjectedPlugins, getMarkBoundaryAffinity, getNodeDataAttributeKeys, getPluginByType, getPluginKey, getPluginKeys, getPluginNodeProps, getPluginType, getPluginTypes, getSlateClass, getSlateElements, getSlatePlugin, htmlBodyToFragment, htmlBrToNewLine, htmlElementToElement, htmlElementToLeaf, htmlStringToDOMNode, htmlTextNodeToString, inferWhiteSpaceRule, init, inlineTagNames, insertExitBreak, isElementStateEmpty, isHotkey, isHtmlBlockElement, isHtmlComment, isHtmlElement, isHtmlFragmentHref, isHtmlInlineElement, isHtmlTable, isHtmlText, isLastNonEmptyTextOfInlineFormattingContext, isNodeAffinity, isNodesAffinity, isOlSymbol, isSlateEditor, isSlateElement, isSlateLeaf, isSlateNode, isSlatePluginElement, isSlatePluginNode, isSlateString, isSlateText, isSlateVoid, isType, keyToDataAttribute, liftBlock, matchBlockFence, matchBlockStart, matchDelimitedInline, mergeDeepToNodes, nanoid, navigate, normalizeDescendantsToDocumentFragment, normalizeNodeId, normalizeNodeIdWithEditor, normalizeStaticValue, omitPluginContext, overridePluginsByKey, parseHtmlDocument, parseHtmlElement, pipeDeserializeHtmlElement, pipeDeserializeHtmlLeaf, pipeInsertDataQuery, pipeOnNodeChange, pipeOnTextChange, pluginDeserializeHtml, postCleanHtml, preCleanHtml, removeHtmlNodesBetweenComments, removeHtmlSurroundings, replaceTagName, resetBlock, resolveNavigationFeedbackTarget, setAffinitySelection, setValue, someHtmlElement, traverseHtmlComments, traverseHtmlElements, traverseHtmlNode, traverseHtmlTexts, unwrapHtmlElement, upsertInlineFormattingContext, withBreakRules, withChunking, withDeleteRules, withMergeRules, withNodeId, withNormalizeRules, withOverrides, withPlateHistory, withScrolling, withSlate };
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as collapseString, $t as defineInputRule, A as deserializeHtml, At as isSlatePluginElement, B as getDataNodeProps, Bt as withDeleteRules, C as flashTarget, Ct as getInjectedPlugins, D as LengthPlugin, Dt as isSlateElement, E as NavigationFeedbackPluginKey, Et as isSlateEditor, F as htmlElementToLeaf, Ft as applyDeepToNodes, G as collapseWhiteSpaceElement, Gt as AstPlugin, H as htmlBodyToFragment, Ht as BaseParagraphPlugin, I as pipeDeserializeHtmlLeaf, It as OverridePlugin, J as collapseWhiteSpaceNode, Jt as createMarkInputRule, K as inferWhiteSpaceRule, Kt as createBlockFenceInputRule, L as htmlElementToElement, Lt as withOverrides, M as deserializeHtmlElement, Mt as isSlateString, N as deserializeHtmlNode, Nt as isSlateText, O as HtmlPlugin, Ot as isSlateLeaf, P as htmlTextNodeToString, Pt as isSlateVoid, Q as isLastNonEmptyTextOfInlineFormattingContext, Qt as matchDelimitedInline, R as pipeDeserializeHtmlElement, Rt as withNormalizeRules, S as clearNavigationFeedbackTarget, St as keyToDataAttribute, T as NAVIGATION_FEEDBACK_KEY, Tt as getSlateElements, U as deserializeHtmlNodeChildren, Ut as HistoryPlugin, V as htmlBrToNewLine, Vt as withBreakRules, W as collapseWhiteSpace, Wt as withPlateHistory, X as endInlineFormattingContext, Xt as matchBlockFence, Y as collapseWhiteSpaceText, Yt as createTextSubstitutionInputRule, Z as upsertInlineFormattingContext, Zt as matchBlockStart, _ as normalizeNodeId, _t as getEdgeNodes, a as pipeInsertDataQuery, an as getPluginTypes, at as AUTO_SCROLL, b as NavigationFeedbackPlugin, bt as getPluginNodeProps, c as setValue, cn as createSlatePlugin, ct as DebugPlugin, d as insertExitBreak, dt as withChunking, en as getContainerTypes, et as isHtmlBlockElement, f as init, ft as AffinityPlugin, g as NodeIdPlugin, gt as getMarkBoundaryAffinity, h as pipeOnNodeChange, ht as isNodesAffinity, i as ParserPlugin, in as getPluginType, it as isHtmlElement, j as htmlStringToDOMNode, jt as isSlatePluginNode, k as parseHtmlDocument, kt as isSlateNode, l as resetBlock, ln as createTSlatePlugin, lt as PlateError, m as pipeOnTextChange, mt as isNodeAffinity, n as withSlate, nn as getPluginKey, nt as inlineTagNames, o as normalizeDescendantsToDocumentFragment, on as getSlatePlugin, ot as DOMPlugin, pt as setAffinitySelection, q as collapseWhiteSpaceChildren, qt as createBlockStartInputRule, r as getCorePlugins, rn as getPluginKeys, rt as isHtmlText, s as SlateExtensionPlugin, sn as getEditorPlugin, st as withScrolling, t as createSlateEditor, tn as getPluginByType, tt as isHtmlInlineElement, u as liftBlock, ut as ChunkingPlugin, v as normalizeNodeIdWithEditor, vt as mergeDeepToNodes, w as resolveNavigationFeedbackTarget, wt as getInjectMatch, x as navigate, xt as getNodeDataAttributeKeys, y as withNodeId, yt as getSlateClass, z as pluginDeserializeHtml, zt as withMergeRules } from "./withSlate-NVP0S9vL.js";
1
+ import { $ as isLastNonEmptyTextOfInlineFormattingContext, $t as matchDelimitedInline, A as parseHtmlDocument, At as isSlateNode, B as pluginDeserializeHtml, Bt as withMergeRules, C as clearNavigationFeedbackTarget, Ct as keyToDataAttribute, D as NavigationFeedbackPluginKey, Dt as isSlateEditor, E as NAVIGATION_FEEDBACK_KEY, Et as getSlateElements, F as htmlTextNodeToString, Ft as isSlateVoid, G as collapseWhiteSpace, Gt as withPlateHistory, H as htmlBrToNewLine, Ht as withBreakRules, I as htmlElementToLeaf, It as applyDeepToNodes, J as collapseWhiteSpaceChildren, Jt as createBlockStartInputRule, K as collapseWhiteSpaceElement, Kt as AstPlugin, L as pipeDeserializeHtmlLeaf, Lt as OverridePlugin, M as htmlStringToDOMNode, Mt as isSlatePluginNode, N as deserializeHtmlElement, Nt as isSlateString, O as LengthPlugin, Ot as isSlateElement, P as deserializeHtmlNode, Pt as isSlateText, Q as upsertInlineFormattingContext, Qt as matchBlockStart, R as htmlElementToElement, Rt as withOverrides, S as navigate, St as getNodeDataAttributeKeys, T as resolveNavigationFeedbackTarget, Tt as getInjectMatch, U as htmlBodyToFragment, Ut as BaseParagraphPlugin, V as getDataNodeProps, Vt as withDeleteRules, W as deserializeHtmlNodeChildren, Wt as HistoryPlugin, X as collapseWhiteSpaceText, Xt as createTextSubstitutionInputRule, Y as collapseWhiteSpaceNode, Yt as createMarkInputRule, Z as endInlineFormattingContext, Zt as matchBlockFence, _ as NodeIdPlugin, _t as getMarkBoundaryAffinity, a as pipeInsertDataQuery, an as getPluginType, at as isHtmlElement, b as withNodeId, bt as getSlateClass, c as isElementStateEmpty, cn as getEditorPlugin, ct as withScrolling, d as liftBlock, dt as ChunkingPlugin, en as defineInputRule, et as collapseString, f as insertExitBreak, ft as withChunking, g as pipeOnNodeChange, gt as isNodesAffinity, h as pipeOnTextChange, ht as isNodeAffinity, i as ParserPlugin, in as getPluginKeys, it as isHtmlText, j as deserializeHtml, jt as isSlatePluginElement, k as HtmlPlugin, kt as isSlateLeaf, l as setValue, ln as createSlatePlugin, lt as DebugPlugin, mt as setAffinitySelection, n as withSlate, nn as getPluginByType, nt as isHtmlInlineElement, o as normalizeDescendantsToDocumentFragment, on as getPluginTypes, ot as AUTO_SCROLL, p as init, pt as AffinityPlugin, q as inferWhiteSpaceRule, qt as createBlockFenceInputRule, r as getCorePlugins, rn as getPluginKey, rt as inlineTagNames, s as SlateExtensionPlugin, sn as getSlatePlugin, st as DOMPlugin, t as createSlateEditor, tn as getContainerTypes, tt as isHtmlBlockElement, u as resetBlock, un as createTSlatePlugin, ut as PlateError, v as normalizeNodeId, vt as getEdgeNodes, w as flashTarget, wt as getInjectedPlugins, x as NavigationFeedbackPlugin, xt as getPluginNodeProps, y as normalizeNodeIdWithEditor, yt as mergeDeepToNodes, z as pipeDeserializeHtmlElement, zt as withNormalizeRules } from "./withSlate-DNmYXPLn.js";
2
2
  import { n as createHotkey, r as isHotkey, t as Hotkeys } from "./hotkeys-DI1HPO2Q.js";
3
3
  import { nanoid } from "nanoid";
4
4
  import { createVanillaStore as createZustandStore } from "zustand-x/vanilla";
@@ -525,4 +525,4 @@ const overridePluginsByKey = (plugin, overrideByKey = {}, nested = false) => {
525
525
  };
526
526
 
527
527
  //#endregion
528
- export { AUTO_SCROLL, AffinityPlugin, AstPlugin, BaseParagraphPlugin, CARRIAGE_RETURN, ChunkingPlugin, DOMPlugin, DebugPlugin, HistoryPlugin, Hotkeys, HtmlPlugin, LINE_FEED, LengthPlugin, NAVIGATION_FEEDBACK_KEY, NO_BREAK_SPACE, NavigationFeedbackPlugin, NavigationFeedbackPluginKey, NodeIdPlugin, OverridePlugin, ParserPlugin, PlateError, SPACE, STATIC_VALUE_CREATED_AT, SlateExtensionPlugin, TAB, ZERO_WIDTH_SPACE, applyDeepToNodes, cleanHtmlBrElements, cleanHtmlCrLf, cleanHtmlEmptyElements, cleanHtmlFontElements, cleanHtmlLinkElements, cleanHtmlTextNodes, clearNavigationFeedbackTarget, collapseString, collapseWhiteSpace, collapseWhiteSpaceChildren, collapseWhiteSpaceElement, collapseWhiteSpaceNode, collapseWhiteSpaceText, copyBlockMarksToSpanChild, createBlockFenceInputRule, createBlockStartInputRule, createHotkey, createMarkInputRule, createRuleFactory, createSlateEditor, createSlatePlugin, createTSlatePlugin, createTextSubstitutionInputRule, createZustandStore, defaultsDeepToNodes, defineInputRule, deserializeHtml, deserializeHtmlElement, deserializeHtmlNode, deserializeHtmlNodeChildren, endInlineFormattingContext, findHtmlElement, flashTarget, getContainerTypes, getCorePlugins, getDataNodeProps, getEdgeNodes, getEditorPlugin, getHtmlComments, getInjectMatch, getInjectedPlugins, getMarkBoundaryAffinity, getNodeDataAttributeKeys, getPluginByType, getPluginKey, getPluginKeys, getPluginNodeProps, getPluginType, getPluginTypes, getSlateClass, getSlateElements, getSlatePlugin, htmlBodyToFragment, htmlBrToNewLine, htmlElementToElement, htmlElementToLeaf, htmlStringToDOMNode, htmlTextNodeToString, inferWhiteSpaceRule, init, inlineTagNames, insertExitBreak, isHotkey, isHtmlBlockElement, isHtmlComment, isHtmlElement, isHtmlFragmentHref, isHtmlInlineElement, isHtmlTable, isHtmlText, isLastNonEmptyTextOfInlineFormattingContext, isNodeAffinity, isNodesAffinity, isOlSymbol, isSlateEditor, isSlateElement, isSlateLeaf, isSlateNode, isSlatePluginElement, isSlatePluginNode, isSlateString, isSlateText, isSlateVoid, isType, keyToDataAttribute, liftBlock, matchBlockFence, matchBlockStart, matchDelimitedInline, mergeDeepToNodes, nanoid, navigate, normalizeDescendantsToDocumentFragment, normalizeNodeId, normalizeNodeIdWithEditor, normalizeStaticValue, omitPluginContext, overridePluginsByKey, parseHtmlDocument, parseHtmlElement, pipeDeserializeHtmlElement, pipeDeserializeHtmlLeaf, pipeInsertDataQuery, pipeOnNodeChange, pipeOnTextChange, pluginDeserializeHtml, postCleanHtml, preCleanHtml, removeHtmlNodesBetweenComments, removeHtmlSurroundings, replaceTagName, resetBlock, resolveNavigationFeedbackTarget, setAffinitySelection, setValue, someHtmlElement, traverseHtmlComments, traverseHtmlElements, traverseHtmlNode, traverseHtmlTexts, unwrapHtmlElement, upsertInlineFormattingContext, withBreakRules, withChunking, withDeleteRules, withMergeRules, withNodeId, withNormalizeRules, withOverrides, withPlateHistory, withScrolling, withSlate };
528
+ export { AUTO_SCROLL, AffinityPlugin, AstPlugin, BaseParagraphPlugin, CARRIAGE_RETURN, ChunkingPlugin, DOMPlugin, DebugPlugin, HistoryPlugin, Hotkeys, HtmlPlugin, LINE_FEED, LengthPlugin, NAVIGATION_FEEDBACK_KEY, NO_BREAK_SPACE, NavigationFeedbackPlugin, NavigationFeedbackPluginKey, NodeIdPlugin, OverridePlugin, ParserPlugin, PlateError, SPACE, STATIC_VALUE_CREATED_AT, SlateExtensionPlugin, TAB, ZERO_WIDTH_SPACE, applyDeepToNodes, cleanHtmlBrElements, cleanHtmlCrLf, cleanHtmlEmptyElements, cleanHtmlFontElements, cleanHtmlLinkElements, cleanHtmlTextNodes, clearNavigationFeedbackTarget, collapseString, collapseWhiteSpace, collapseWhiteSpaceChildren, collapseWhiteSpaceElement, collapseWhiteSpaceNode, collapseWhiteSpaceText, copyBlockMarksToSpanChild, createBlockFenceInputRule, createBlockStartInputRule, createHotkey, createMarkInputRule, createRuleFactory, createSlateEditor, createSlatePlugin, createTSlatePlugin, createTextSubstitutionInputRule, createZustandStore, defaultsDeepToNodes, defineInputRule, deserializeHtml, deserializeHtmlElement, deserializeHtmlNode, deserializeHtmlNodeChildren, endInlineFormattingContext, findHtmlElement, flashTarget, getContainerTypes, getCorePlugins, getDataNodeProps, getEdgeNodes, getEditorPlugin, getHtmlComments, getInjectMatch, getInjectedPlugins, getMarkBoundaryAffinity, getNodeDataAttributeKeys, getPluginByType, getPluginKey, getPluginKeys, getPluginNodeProps, getPluginType, getPluginTypes, getSlateClass, getSlateElements, getSlatePlugin, htmlBodyToFragment, htmlBrToNewLine, htmlElementToElement, htmlElementToLeaf, htmlStringToDOMNode, htmlTextNodeToString, inferWhiteSpaceRule, init, inlineTagNames, insertExitBreak, isElementStateEmpty, isHotkey, isHtmlBlockElement, isHtmlComment, isHtmlElement, isHtmlFragmentHref, isHtmlInlineElement, isHtmlTable, isHtmlText, isLastNonEmptyTextOfInlineFormattingContext, isNodeAffinity, isNodesAffinity, isOlSymbol, isSlateEditor, isSlateElement, isSlateLeaf, isSlateNode, isSlatePluginElement, isSlatePluginNode, isSlateString, isSlateText, isSlateVoid, isType, keyToDataAttribute, liftBlock, matchBlockFence, matchBlockStart, matchDelimitedInline, mergeDeepToNodes, nanoid, navigate, normalizeDescendantsToDocumentFragment, normalizeNodeId, normalizeNodeIdWithEditor, normalizeStaticValue, omitPluginContext, overridePluginsByKey, parseHtmlDocument, parseHtmlElement, pipeDeserializeHtmlElement, pipeDeserializeHtmlLeaf, pipeInsertDataQuery, pipeOnNodeChange, pipeOnTextChange, pluginDeserializeHtml, postCleanHtml, preCleanHtml, removeHtmlNodesBetweenComments, removeHtmlSurroundings, replaceTagName, resetBlock, resolveNavigationFeedbackTarget, setAffinitySelection, setValue, someHtmlElement, traverseHtmlComments, traverseHtmlElements, traverseHtmlNode, traverseHtmlTexts, unwrapHtmlElement, upsertInlineFormattingContext, withBreakRules, withChunking, withDeleteRules, withMergeRules, withNodeId, withNormalizeRules, withOverrides, withPlateHistory, withScrolling, withSlate };
@@ -1,5 +1,5 @@
1
- import { Ct as NodeComponents, Et as PluginConfig, F as RenderLeafProps, Fi as ExtendEditor$1, I as RenderElementFn, J as BaseEditor, Jr as NavigationFeedbackConfig, L as RenderElementProps, M as RenderTextFn, N as RenderTextProps, Na as ResolvedInputRulesMeta, Ot as WithAnyKey, P as RenderLeafFn, Q as SlateEditor, R as RenderChunkFn, St as NodeComponent, Tt as ParserOptions, U as BaseWithSlateOptions, Y as InferPlugins, Za as createStaticEditor, _t as InferOptions, at as BasePluginContext, ba as InputRulesDefinition, bt as MatchRules, ci as InitOptions, ct as BaseTransformOptions, di as AutoScrollOperationsMap, et as AnyPluginConfig, gt as InferKey, hi as WithAutoScrollOptions, hr as CorePluginTransforms, ht as InferApi, ii as LiftBlockOptions, it as BasePlugin, j as EditableProps, ji as AnySlatePlugin, jo as HandlerReturnType, kt as WithRequiredKey, mi as ScrollMode, mr as CorePluginApi, mt as GetInjectNodePropsReturnType, na as SlatePluginConfig, nt as BaseHtmlDeserializer, oi as InsertExitBreakOptions, pi as DomConfig, pr as CorePlugin, pt as GetInjectNodePropsOptions, qr as NavigationFeedbackActiveTarget, ra as SlatePluginContext, rt as BaseInjectProps, st as BaseSerializer, ta as SlatePlugin, tt as BaseDeserializer, vt as InferSelectors, xo as PlateStaticProps, ya as InputRulesConfig, yt as InferTransforms, z as RenderChunkProps } from "../index-BDSzA1zP";
2
- import * as _platejs_slate4 from "@platejs/slate";
1
+ import { Ct as NodeComponents, Et as PluginConfig, F as RenderLeafProps, I as RenderElementFn, Ii as ExtendEditor$1, J as BaseEditor, Jr as NavigationFeedbackConfig, L as RenderElementProps, M as RenderTextFn, Mi as AnySlatePlugin, Mo as HandlerReturnType, N as RenderTextProps, Ot as WithAnyKey, P as RenderLeafFn, Pa as ResolvedInputRulesMeta, Q as SlateEditor, Qa as createStaticEditor, R as RenderChunkFn, So as PlateStaticProps, St as NodeComponent, Tt as ParserOptions, U as BaseWithSlateOptions, Y as InferPlugins, _t as InferOptions, ai as WithAutoScrollOptions, at as BasePluginContext, ba as InputRulesConfig, bt as MatchRules, ct as BaseTransformOptions, et as AnyPluginConfig, fi as LiftBlockOptions, gi as InitOptions, gt as InferKey, hr as CorePluginTransforms, ht as InferApi, ia as SlatePluginContext, ii as ScrollMode, it as BasePlugin, j as EditableProps, kt as WithRequiredKey, mi as InsertExitBreakOptions, mr as CorePluginApi, mt as GetInjectNodePropsReturnType, na as SlatePlugin, nt as BaseHtmlDeserializer, pr as CorePlugin, pt as GetInjectNodePropsOptions, qr as NavigationFeedbackActiveTarget, ra as SlatePluginConfig, ri as DomConfig, rt as BaseInjectProps, st as BaseSerializer, ti as AutoScrollOperationsMap, tt as BaseDeserializer, vt as InferSelectors, xa as InputRulesDefinition, yt as InferTransforms, z as RenderChunkProps } from "../index-fS5ruWhD";
2
+ import * as _platejs_slate20 from "@platejs/slate";
3
3
  import { DecoratedRange, Descendant, DescendantIn, Editor, EditorApi, EditorTransforms, ElementEntry, NodeEntry, NodeOperation, Operation, Path, TElement, TNode, TRange, TSelection, TText, TextOperation, Value, ValueOf } from "@platejs/slate";
4
4
  import { AnyObject, Deep2Partial, Modify, Nullable, UnionToIntersection, UnknownObject } from "@udecode/utils";
5
5
  import { DefaultPlaceholder, Editable, RenderPlaceholderProps, Slate, useComposing, useFocused, useReadOnly, useSelected, useSlateStatic, withReact } from "slate-react";
@@ -7,7 +7,7 @@ import React$1, { DependencyList, HTMLAttributes } from "react";
7
7
  import { HotkeysEvent, HotkeysOptions, Keys } from "@udecode/react-hotkeys";
8
8
  import * as jotai10 from "jotai";
9
9
  import { Atom, atom } from "jotai";
10
- import * as jotai_x2 from "jotai-x";
10
+ import * as jotai_x98 from "jotai-x";
11
11
  import { JotaiStore, createAtomStore, useStoreAtomState, useStoreAtomValue, useStoreSetAtom } from "jotai-x";
12
12
  import * as zustand_x0 from "zustand-x";
13
13
  import { TCreatedStoreType, TEqualityChecker, createZustandStore, useStoreSelect, useStoreState, useStoreValue, useTracked, useTrackedStore } from "zustand-x";
@@ -17,31 +17,32 @@ import { createStore } from "jotai/vanilla";
17
17
  declare const SlateReactExtensionPlugin: PlatePlugin<PluginConfig<"slateExtension", {
18
18
  onNodeChange: (options: {
19
19
  editor: SlateEditor;
20
- node: _platejs_slate4.Descendant;
21
- operation: _platejs_slate4.NodeOperation;
22
- prevNode: _platejs_slate4.Descendant;
20
+ node: _platejs_slate20.Descendant;
21
+ operation: _platejs_slate20.NodeOperation;
22
+ prevNode: _platejs_slate20.Descendant;
23
23
  }) => void;
24
24
  onTextChange: (options: {
25
25
  editor: SlateEditor;
26
- node: _platejs_slate4.Descendant;
27
- operation: _platejs_slate4.TextOperation;
26
+ node: _platejs_slate20.Descendant;
27
+ operation: _platejs_slate20.TextOperation;
28
28
  prevText: string;
29
29
  text: string;
30
30
  }) => void;
31
31
  }, {
32
32
  redecorate: (() => void) & (() => void);
33
+ isElementStateEmpty: (element: _platejs_slate20.TElement) => boolean;
33
34
  }, {
34
- reset: (options: _platejs_slate4.ResetOptions | undefined) => void;
35
+ reset: (options: _platejs_slate20.ResetOptions | undefined) => void;
35
36
  init: ((args_0: InitOptions) => void) & ((args_0: InitOptions) => void);
36
37
  insertExitBreak: ((args_0?: InsertExitBreakOptions | undefined) => true | undefined) & ((args_0?: InsertExitBreakOptions | undefined) => true | undefined);
37
38
  liftBlock: ((args_0?: LiftBlockOptions | undefined) => true | undefined) & ((args_0?: LiftBlockOptions | undefined) => true | undefined);
38
39
  resetBlock: ((args_0?: {
39
- at?: _platejs_slate4.Path;
40
+ at?: _platejs_slate20.Path;
40
41
  } | undefined) => true | undefined) & ((args_0?: {
41
- at?: _platejs_slate4.Path;
42
+ at?: _platejs_slate20.Path;
42
43
  } | undefined) => true | undefined);
43
- setValue: ((value?: string | _platejs_slate4.Value | undefined) => void) & ((value?: string | _platejs_slate4.Value | undefined) => void);
44
- apply: <N$1 extends _platejs_slate4.TElement | _platejs_slate4.TText>(operation: _platejs_slate4.Operation<N$1>) => void;
44
+ setValue: ((value?: string | _platejs_slate20.Value | undefined) => void) & ((value?: string | _platejs_slate20.Value | undefined) => void);
45
+ apply: <N$1 extends _platejs_slate20.TElement | _platejs_slate20.TText>(operation: _platejs_slate20.Operation<N$1>) => void;
45
46
  }, {}>>;
46
47
  //#endregion
47
48
  //#region src/react/plugins/event-editor/EventEditorPlugin.d.ts
@@ -101,7 +102,7 @@ declare const ParagraphPlugin: PlatePlugin<PluginConfig<"p", {}, {}, {}, {}>>;
101
102
  declare const ReactPlugin: PlatePlugin<PluginConfig<"dom", {
102
103
  scrollMode?: ScrollMode;
103
104
  scrollOperations?: AutoScrollOperationsMap;
104
- scrollOptions?: _platejs_slate4.ScrollIntoViewOptions;
105
+ scrollOptions?: _platejs_slate20.ScrollIntoViewOptions;
105
106
  }, {
106
107
  isScrolling: () => boolean;
107
108
  }, {
@@ -818,35 +819,36 @@ declare const getPlateCorePlugins: ({
818
819
  }) => (PlatePlugin<PluginConfig<"eventEditor", {}, {}, {}, {}>> | PlatePlugin<PluginConfig<"slateExtension", {
819
820
  onNodeChange: (options: {
820
821
  editor: SlateEditor;
821
- node: _platejs_slate4.Descendant;
822
- operation: _platejs_slate4.NodeOperation;
823
- prevNode: _platejs_slate4.Descendant;
822
+ node: _platejs_slate20.Descendant;
823
+ operation: _platejs_slate20.NodeOperation;
824
+ prevNode: _platejs_slate20.Descendant;
824
825
  }) => void;
825
826
  onTextChange: (options: {
826
827
  editor: SlateEditor;
827
- node: _platejs_slate4.Descendant;
828
- operation: _platejs_slate4.TextOperation;
828
+ node: _platejs_slate20.Descendant;
829
+ operation: _platejs_slate20.TextOperation;
829
830
  prevText: string;
830
831
  text: string;
831
832
  }) => void;
832
833
  }, {
833
834
  redecorate: (() => void) & (() => void);
835
+ isElementStateEmpty: (element: _platejs_slate20.TElement) => boolean;
834
836
  }, {
835
- reset: (options: _platejs_slate4.ResetOptions | undefined) => void;
837
+ reset: (options: _platejs_slate20.ResetOptions | undefined) => void;
836
838
  init: ((args_0: InitOptions) => void) & ((args_0: InitOptions) => void);
837
839
  insertExitBreak: ((args_0?: InsertExitBreakOptions | undefined) => true | undefined) & ((args_0?: InsertExitBreakOptions | undefined) => true | undefined);
838
840
  liftBlock: ((args_0?: LiftBlockOptions | undefined) => true | undefined) & ((args_0?: LiftBlockOptions | undefined) => true | undefined);
839
841
  resetBlock: ((args_0?: {
840
- at?: _platejs_slate4.Path;
842
+ at?: _platejs_slate20.Path;
841
843
  } | undefined) => true | undefined) & ((args_0?: {
842
- at?: _platejs_slate4.Path;
844
+ at?: _platejs_slate20.Path;
843
845
  } | undefined) => true | undefined);
844
- setValue: ((value?: string | _platejs_slate4.Value | undefined) => void) & ((value?: string | _platejs_slate4.Value | undefined) => void);
845
- apply: <N$1 extends _platejs_slate4.TElement | _platejs_slate4.TText>(operation: _platejs_slate4.Operation<N$1>) => void;
846
+ setValue: ((value?: string | _platejs_slate20.Value | undefined) => void) & ((value?: string | _platejs_slate20.Value | undefined) => void);
847
+ apply: <N$1 extends _platejs_slate20.TElement | _platejs_slate20.TText>(operation: _platejs_slate20.Operation<N$1>) => void;
846
848
  }, {}>> | PlatePlugin<PluginConfig<"dom", {
847
849
  scrollMode?: ScrollMode;
848
850
  scrollOperations?: AutoScrollOperationsMap;
849
- scrollOptions?: _platejs_slate4.ScrollIntoViewOptions;
851
+ scrollOptions?: _platejs_slate20.ScrollIntoViewOptions;
850
852
  }, {
851
853
  isScrolling: () => boolean;
852
854
  }, {
@@ -916,7 +918,7 @@ declare function getPlugin<C extends AnyPluginConfig = PluginConfig>(editor: Pla
916
918
  } ? C : PlatePlugin<C>;
917
919
  //#endregion
918
920
  //#region src/react/plugin/omitPluginContext.d.ts
919
- declare const omitPluginContext: <T extends PlatePluginContext<AnyPlatePlugin>>(ctx: T) => Omit<T, "api" | "editor" | "type" | "getOption" | "tf" | "setOptions" | "getOptions" | "setOption" | "plugin">;
921
+ declare const omitPluginContext: <T extends PlatePluginContext<AnyPlatePlugin>>(ctx: T) => Omit<T, "editor" | "api" | "plugin" | "setOptions" | "tf" | "type" | "getOption" | "getOptions" | "setOption">;
920
922
  //#endregion
921
923
  //#region src/react/plugin/toPlatePlugin.d.ts
922
924
  type PlatePluginConfig$1<C extends AnyPluginConfig, EO = {}, EA = {}, ET = {}, ES = {}> = Omit<Partial<PlatePlugin<PluginConfig<C['key'], EO & InferOptions<C>, EA & InferApi<C>, ET & InferTransforms<C>, ES & InferSelectors<C>>>>, keyof PlatePluginMethods | 'api' | 'node' | 'options' | 'transforms'> & {
@@ -1092,11 +1094,11 @@ type ElementRuntimeStore = {
1092
1094
  setState: (nextState: ElementRuntimeState) => void;
1093
1095
  subscribe: (listener: () => void) => () => void;
1094
1096
  };
1095
- declare const elementStore: jotai_x2.StoreApi<ElementStoreState, object, "element">;
1097
+ declare const elementStore: jotai_x98.StoreApi<ElementStoreState, object, "element">;
1096
1098
  declare const withElementContext: <T>(context: Omit<ElementContextValue, "parent">, callback: () => T) => T;
1097
1099
  declare const useElementContext: (scope?: string) => ElementContextValue | null;
1098
1100
  declare const useElementStoreContext: (scope?: string) => ElementStoreContextValue | null;
1099
- declare const useElementStore: (scope?: string) => jotai_x2.ReturnOfUseStoreApi<ElementStoreState, object>;
1101
+ declare const useElementStore: (scope?: string) => jotai_x98.ReturnOfUseStoreApi<ElementStoreState, object>;
1100
1102
  declare function ElementProvider({
1101
1103
  children,
1102
1104
  path,
@@ -1230,7 +1232,7 @@ declare const createPlateStore: <E extends PlateEditor = PlateEditor>({
1230
1232
  onTextChange,
1231
1233
  onValueChange,
1232
1234
  ...state
1233
- }?: Partial<PlateStoreState<E>>) => jotai_x2.AtomStoreApi<PlateStoreState<E>, {
1235
+ }?: Partial<PlateStoreState<E>>) => jotai_x98.AtomStoreApi<PlateStoreState<E>, {
1234
1236
  trackedEditor: jotai10.Atom<{
1235
1237
  editor: any;
1236
1238
  version: number | null;
@@ -1244,12 +1246,12 @@ declare const createPlateStore: <E extends PlateEditor = PlateEditor>({
1244
1246
  version: number | null;
1245
1247
  }>;
1246
1248
  }, "plate">;
1247
- declare const PlateStoreProvider: React$1.FC<jotai_x2.ProviderProps<{
1249
+ declare const PlateStoreProvider: React$1.FC<jotai_x98.ProviderProps<{
1248
1250
  composing: boolean | null;
1249
1251
  decorate: ((options: {
1250
1252
  editor: PlateEditor;
1251
- entry: _platejs_slate4.NodeEntry;
1252
- }) => _platejs_slate4.TRange[]) | null;
1253
+ entry: _platejs_slate20.NodeEntry;
1254
+ }) => _platejs_slate20.TRange[]) | null;
1253
1255
  isMounted: boolean | null;
1254
1256
  primary: boolean | null;
1255
1257
  readOnly: boolean | null;
@@ -1263,34 +1265,34 @@ declare const PlateStoreProvider: React$1.FC<jotai_x2.ProviderProps<{
1263
1265
  versionValue: number | null;
1264
1266
  onChange: ((options: {
1265
1267
  editor: PlateEditor;
1266
- value: _platejs_slate4.Value;
1268
+ value: _platejs_slate20.Value;
1267
1269
  }) => void) | null;
1268
1270
  onNodeChange: ((options: {
1269
1271
  editor: PlateEditor;
1270
- node: _platejs_slate4.Descendant;
1271
- operation: _platejs_slate4.NodeOperation;
1272
- prevNode: _platejs_slate4.Descendant;
1272
+ node: _platejs_slate20.Descendant;
1273
+ operation: _platejs_slate20.NodeOperation;
1274
+ prevNode: _platejs_slate20.Descendant;
1273
1275
  }) => void) | null;
1274
1276
  onSelectionChange: ((options: {
1275
1277
  editor: PlateEditor;
1276
- selection: _platejs_slate4.TSelection;
1278
+ selection: _platejs_slate20.TSelection;
1277
1279
  }) => void) | null;
1278
1280
  onTextChange: ((options: {
1279
1281
  editor: PlateEditor;
1280
- node: _platejs_slate4.Descendant;
1281
- operation: _platejs_slate4.TextOperation;
1282
+ node: _platejs_slate20.Descendant;
1283
+ operation: _platejs_slate20.TextOperation;
1282
1284
  prevText: string;
1283
1285
  text: string;
1284
1286
  }) => void) | null;
1285
1287
  onValueChange: ((options: {
1286
1288
  editor: PlateEditor;
1287
- value: _platejs_slate4.Value;
1289
+ value: _platejs_slate20.Value;
1288
1290
  }) => void) | null;
1289
1291
  id: string;
1290
1292
  containerRef: React$1.RefObject<HTMLDivElement | null>;
1291
1293
  editor: PlateEditor;
1292
1294
  scrollRef: React$1.RefObject<HTMLDivElement | null>;
1293
- }>>, plateStore: jotai_x2.StoreApi<PlateStoreState<PlateEditor>, {
1295
+ }>>, plateStore: jotai_x98.StoreApi<PlateStoreState<PlateEditor>, {
1294
1296
  trackedEditor: jotai10.Atom<{
1295
1297
  editor: any;
1296
1298
  version: number | null;
@@ -1303,52 +1305,52 @@ declare const PlateStoreProvider: React$1.FC<jotai_x2.ProviderProps<{
1303
1305
  value: any;
1304
1306
  version: number | null;
1305
1307
  }>;
1306
- }, "plate">, usePlateLocalSet: <K$1 extends "renderElement" | "decorate" | "renderLeaf" | "renderText" | "editor" | "id" | "onChange" | "onNodeChange" | "onTextChange" | "readOnly" | "composing" | "isMounted" | "primary" | "renderChunk" | "versionDecorate" | "versionEditor" | "versionSelection" | "versionValue" | "onSelectionChange" | "onValueChange" | "containerRef" | "scrollRef" | "trackedEditor" | "trackedSelection" | "trackedValue">(key: K$1, options?: string | jotai_x2.UseAtomOptions) => ({
1307
- composing: jotai_x2.SimpleWritableAtom<boolean | null>;
1308
- decorate: jotai_x2.SimpleWritableAtom<((options: {
1308
+ }, "plate">, usePlateLocalSet: <K$1 extends "editor" | "id" | "onChange" | "decorate" | "renderElement" | "renderText" | "renderLeaf" | "onNodeChange" | "onTextChange" | "readOnly" | "composing" | "isMounted" | "primary" | "renderChunk" | "versionDecorate" | "versionEditor" | "versionSelection" | "versionValue" | "onSelectionChange" | "onValueChange" | "containerRef" | "scrollRef" | "trackedEditor" | "trackedSelection" | "trackedValue">(key: K$1, options?: string | jotai_x98.UseAtomOptions) => ({
1309
+ composing: jotai_x98.SimpleWritableAtom<boolean | null>;
1310
+ decorate: jotai_x98.SimpleWritableAtom<((options: {
1309
1311
  editor: PlateEditor;
1310
- entry: _platejs_slate4.NodeEntry;
1311
- }) => _platejs_slate4.TRange[]) | null>;
1312
- isMounted: jotai_x2.SimpleWritableAtom<boolean | null>;
1313
- primary: jotai_x2.SimpleWritableAtom<boolean | null>;
1314
- readOnly: jotai_x2.SimpleWritableAtom<boolean | null>;
1315
- renderChunk: jotai_x2.SimpleWritableAtom<RenderChunkFn | null>;
1316
- renderElement: jotai_x2.SimpleWritableAtom<RenderElementFn | null>;
1317
- renderLeaf: jotai_x2.SimpleWritableAtom<RenderLeafFn | null>;
1318
- renderText: jotai_x2.SimpleWritableAtom<RenderTextFn | null>;
1319
- versionDecorate: jotai_x2.SimpleWritableAtom<number | null>;
1320
- versionEditor: jotai_x2.SimpleWritableAtom<number | null>;
1321
- versionSelection: jotai_x2.SimpleWritableAtom<number | null>;
1322
- versionValue: jotai_x2.SimpleWritableAtom<number | null>;
1323
- onChange: jotai_x2.SimpleWritableAtom<((options: {
1312
+ entry: _platejs_slate20.NodeEntry;
1313
+ }) => _platejs_slate20.TRange[]) | null>;
1314
+ isMounted: jotai_x98.SimpleWritableAtom<boolean | null>;
1315
+ primary: jotai_x98.SimpleWritableAtom<boolean | null>;
1316
+ readOnly: jotai_x98.SimpleWritableAtom<boolean | null>;
1317
+ renderChunk: jotai_x98.SimpleWritableAtom<RenderChunkFn | null>;
1318
+ renderElement: jotai_x98.SimpleWritableAtom<RenderElementFn | null>;
1319
+ renderLeaf: jotai_x98.SimpleWritableAtom<RenderLeafFn | null>;
1320
+ renderText: jotai_x98.SimpleWritableAtom<RenderTextFn | null>;
1321
+ versionDecorate: jotai_x98.SimpleWritableAtom<number | null>;
1322
+ versionEditor: jotai_x98.SimpleWritableAtom<number | null>;
1323
+ versionSelection: jotai_x98.SimpleWritableAtom<number | null>;
1324
+ versionValue: jotai_x98.SimpleWritableAtom<number | null>;
1325
+ onChange: jotai_x98.SimpleWritableAtom<((options: {
1324
1326
  editor: PlateEditor;
1325
- value: _platejs_slate4.Value;
1327
+ value: _platejs_slate20.Value;
1326
1328
  }) => void) | null>;
1327
- onNodeChange: jotai_x2.SimpleWritableAtom<((options: {
1329
+ onNodeChange: jotai_x98.SimpleWritableAtom<((options: {
1328
1330
  editor: PlateEditor;
1329
- node: _platejs_slate4.Descendant;
1330
- operation: _platejs_slate4.NodeOperation;
1331
- prevNode: _platejs_slate4.Descendant;
1331
+ node: _platejs_slate20.Descendant;
1332
+ operation: _platejs_slate20.NodeOperation;
1333
+ prevNode: _platejs_slate20.Descendant;
1332
1334
  }) => void) | null>;
1333
- onSelectionChange: jotai_x2.SimpleWritableAtom<((options: {
1335
+ onSelectionChange: jotai_x98.SimpleWritableAtom<((options: {
1334
1336
  editor: PlateEditor;
1335
- selection: _platejs_slate4.TSelection;
1337
+ selection: _platejs_slate20.TSelection;
1336
1338
  }) => void) | null>;
1337
- onTextChange: jotai_x2.SimpleWritableAtom<((options: {
1339
+ onTextChange: jotai_x98.SimpleWritableAtom<((options: {
1338
1340
  editor: PlateEditor;
1339
- node: _platejs_slate4.Descendant;
1340
- operation: _platejs_slate4.TextOperation;
1341
+ node: _platejs_slate20.Descendant;
1342
+ operation: _platejs_slate20.TextOperation;
1341
1343
  prevText: string;
1342
1344
  text: string;
1343
1345
  }) => void) | null>;
1344
- onValueChange: jotai_x2.SimpleWritableAtom<((options: {
1346
+ onValueChange: jotai_x98.SimpleWritableAtom<((options: {
1345
1347
  editor: PlateEditor;
1346
- value: _platejs_slate4.Value;
1348
+ value: _platejs_slate20.Value;
1347
1349
  }) => void) | null>;
1348
- id: jotai_x2.SimpleWritableAtom<string>;
1349
- containerRef: jotai_x2.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
1350
- editor: jotai_x2.SimpleWritableAtom<PlateEditor>;
1351
- scrollRef: jotai_x2.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
1350
+ id: jotai_x98.SimpleWritableAtom<string>;
1351
+ containerRef: jotai_x98.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
1352
+ editor: jotai_x98.SimpleWritableAtom<PlateEditor>;
1353
+ scrollRef: jotai_x98.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
1352
1354
  } & {
1353
1355
  trackedEditor: jotai10.Atom<{
1354
1356
  editor: any;
@@ -1362,52 +1364,52 @@ declare const PlateStoreProvider: React$1.FC<jotai_x2.ProviderProps<{
1362
1364
  value: any;
1363
1365
  version: number | null;
1364
1366
  }>;
1365
- })[K$1] extends jotai10.WritableAtom<infer _V, infer A extends unknown[], infer R> ? (...args: A) => R : never, usePlateLocalState: <K$1 extends "renderElement" | "decorate" | "renderLeaf" | "renderText" | "editor" | "id" | "onChange" | "onNodeChange" | "onTextChange" | "readOnly" | "composing" | "isMounted" | "primary" | "renderChunk" | "versionDecorate" | "versionEditor" | "versionSelection" | "versionValue" | "onSelectionChange" | "onValueChange" | "containerRef" | "scrollRef" | "trackedEditor" | "trackedSelection" | "trackedValue">(key: K$1, options?: string | jotai_x2.UseAtomOptions) => ({
1366
- composing: jotai_x2.SimpleWritableAtom<boolean | null>;
1367
- decorate: jotai_x2.SimpleWritableAtom<((options: {
1367
+ })[K$1] extends jotai10.WritableAtom<infer _V, infer A extends unknown[], infer R> ? (...args: A) => R : never, usePlateLocalState: <K$1 extends "editor" | "id" | "onChange" | "decorate" | "renderElement" | "renderText" | "renderLeaf" | "onNodeChange" | "onTextChange" | "readOnly" | "composing" | "isMounted" | "primary" | "renderChunk" | "versionDecorate" | "versionEditor" | "versionSelection" | "versionValue" | "onSelectionChange" | "onValueChange" | "containerRef" | "scrollRef" | "trackedEditor" | "trackedSelection" | "trackedValue">(key: K$1, options?: string | jotai_x98.UseAtomOptions) => ({
1368
+ composing: jotai_x98.SimpleWritableAtom<boolean | null>;
1369
+ decorate: jotai_x98.SimpleWritableAtom<((options: {
1368
1370
  editor: PlateEditor;
1369
- entry: _platejs_slate4.NodeEntry;
1370
- }) => _platejs_slate4.TRange[]) | null>;
1371
- isMounted: jotai_x2.SimpleWritableAtom<boolean | null>;
1372
- primary: jotai_x2.SimpleWritableAtom<boolean | null>;
1373
- readOnly: jotai_x2.SimpleWritableAtom<boolean | null>;
1374
- renderChunk: jotai_x2.SimpleWritableAtom<RenderChunkFn | null>;
1375
- renderElement: jotai_x2.SimpleWritableAtom<RenderElementFn | null>;
1376
- renderLeaf: jotai_x2.SimpleWritableAtom<RenderLeafFn | null>;
1377
- renderText: jotai_x2.SimpleWritableAtom<RenderTextFn | null>;
1378
- versionDecorate: jotai_x2.SimpleWritableAtom<number | null>;
1379
- versionEditor: jotai_x2.SimpleWritableAtom<number | null>;
1380
- versionSelection: jotai_x2.SimpleWritableAtom<number | null>;
1381
- versionValue: jotai_x2.SimpleWritableAtom<number | null>;
1382
- onChange: jotai_x2.SimpleWritableAtom<((options: {
1371
+ entry: _platejs_slate20.NodeEntry;
1372
+ }) => _platejs_slate20.TRange[]) | null>;
1373
+ isMounted: jotai_x98.SimpleWritableAtom<boolean | null>;
1374
+ primary: jotai_x98.SimpleWritableAtom<boolean | null>;
1375
+ readOnly: jotai_x98.SimpleWritableAtom<boolean | null>;
1376
+ renderChunk: jotai_x98.SimpleWritableAtom<RenderChunkFn | null>;
1377
+ renderElement: jotai_x98.SimpleWritableAtom<RenderElementFn | null>;
1378
+ renderLeaf: jotai_x98.SimpleWritableAtom<RenderLeafFn | null>;
1379
+ renderText: jotai_x98.SimpleWritableAtom<RenderTextFn | null>;
1380
+ versionDecorate: jotai_x98.SimpleWritableAtom<number | null>;
1381
+ versionEditor: jotai_x98.SimpleWritableAtom<number | null>;
1382
+ versionSelection: jotai_x98.SimpleWritableAtom<number | null>;
1383
+ versionValue: jotai_x98.SimpleWritableAtom<number | null>;
1384
+ onChange: jotai_x98.SimpleWritableAtom<((options: {
1383
1385
  editor: PlateEditor;
1384
- value: _platejs_slate4.Value;
1386
+ value: _platejs_slate20.Value;
1385
1387
  }) => void) | null>;
1386
- onNodeChange: jotai_x2.SimpleWritableAtom<((options: {
1388
+ onNodeChange: jotai_x98.SimpleWritableAtom<((options: {
1387
1389
  editor: PlateEditor;
1388
- node: _platejs_slate4.Descendant;
1389
- operation: _platejs_slate4.NodeOperation;
1390
- prevNode: _platejs_slate4.Descendant;
1390
+ node: _platejs_slate20.Descendant;
1391
+ operation: _platejs_slate20.NodeOperation;
1392
+ prevNode: _platejs_slate20.Descendant;
1391
1393
  }) => void) | null>;
1392
- onSelectionChange: jotai_x2.SimpleWritableAtom<((options: {
1394
+ onSelectionChange: jotai_x98.SimpleWritableAtom<((options: {
1393
1395
  editor: PlateEditor;
1394
- selection: _platejs_slate4.TSelection;
1396
+ selection: _platejs_slate20.TSelection;
1395
1397
  }) => void) | null>;
1396
- onTextChange: jotai_x2.SimpleWritableAtom<((options: {
1398
+ onTextChange: jotai_x98.SimpleWritableAtom<((options: {
1397
1399
  editor: PlateEditor;
1398
- node: _platejs_slate4.Descendant;
1399
- operation: _platejs_slate4.TextOperation;
1400
+ node: _platejs_slate20.Descendant;
1401
+ operation: _platejs_slate20.TextOperation;
1400
1402
  prevText: string;
1401
1403
  text: string;
1402
1404
  }) => void) | null>;
1403
- onValueChange: jotai_x2.SimpleWritableAtom<((options: {
1405
+ onValueChange: jotai_x98.SimpleWritableAtom<((options: {
1404
1406
  editor: PlateEditor;
1405
- value: _platejs_slate4.Value;
1407
+ value: _platejs_slate20.Value;
1406
1408
  }) => void) | null>;
1407
- id: jotai_x2.SimpleWritableAtom<string>;
1408
- containerRef: jotai_x2.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
1409
- editor: jotai_x2.SimpleWritableAtom<PlateEditor>;
1410
- scrollRef: jotai_x2.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
1409
+ id: jotai_x98.SimpleWritableAtom<string>;
1410
+ containerRef: jotai_x98.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
1411
+ editor: jotai_x98.SimpleWritableAtom<PlateEditor>;
1412
+ scrollRef: jotai_x98.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
1411
1413
  } & {
1412
1414
  trackedEditor: jotai10.Atom<{
1413
1415
  editor: any;
@@ -1421,7 +1423,7 @@ declare const PlateStoreProvider: React$1.FC<jotai_x2.ProviderProps<{
1421
1423
  value: any;
1422
1424
  version: number | null;
1423
1425
  }>;
1424
- })[K$1] extends jotai10.WritableAtom<infer V, infer A extends unknown[], infer R> ? [V, (...args: A) => R] : never, usePlateLocalStore: jotai_x2.UseStoreApi<PlateStoreState<PlateEditor>, {
1426
+ })[K$1] extends jotai10.WritableAtom<infer V, infer A extends unknown[], infer R> ? [V, (...args: A) => R] : never, usePlateLocalStore: jotai_x98.UseStoreApi<PlateStoreState<PlateEditor>, {
1425
1427
  trackedEditor: jotai10.Atom<{
1426
1428
  editor: any;
1427
1429
  version: number | null;
@@ -1434,52 +1436,52 @@ declare const PlateStoreProvider: React$1.FC<jotai_x2.ProviderProps<{
1434
1436
  value: any;
1435
1437
  version: number | null;
1436
1438
  }>;
1437
- }>, usePlateLocalValue: <K$1 extends "renderElement" | "decorate" | "renderLeaf" | "renderText" | "editor" | "id" | "onChange" | "onNodeChange" | "onTextChange" | "readOnly" | "composing" | "isMounted" | "primary" | "renderChunk" | "versionDecorate" | "versionEditor" | "versionSelection" | "versionValue" | "onSelectionChange" | "onValueChange" | "containerRef" | "scrollRef" | "trackedEditor" | "trackedSelection" | "trackedValue", S = (({
1438
- composing: jotai_x2.SimpleWritableAtom<boolean | null>;
1439
- decorate: jotai_x2.SimpleWritableAtom<((options: {
1439
+ }>, usePlateLocalValue: <K$1 extends "editor" | "id" | "onChange" | "decorate" | "renderElement" | "renderText" | "renderLeaf" | "onNodeChange" | "onTextChange" | "readOnly" | "composing" | "isMounted" | "primary" | "renderChunk" | "versionDecorate" | "versionEditor" | "versionSelection" | "versionValue" | "onSelectionChange" | "onValueChange" | "containerRef" | "scrollRef" | "trackedEditor" | "trackedSelection" | "trackedValue", S = (({
1440
+ composing: jotai_x98.SimpleWritableAtom<boolean | null>;
1441
+ decorate: jotai_x98.SimpleWritableAtom<((options: {
1440
1442
  editor: PlateEditor;
1441
- entry: _platejs_slate4.NodeEntry;
1442
- }) => _platejs_slate4.TRange[]) | null>;
1443
- isMounted: jotai_x2.SimpleWritableAtom<boolean | null>;
1444
- primary: jotai_x2.SimpleWritableAtom<boolean | null>;
1445
- readOnly: jotai_x2.SimpleWritableAtom<boolean | null>;
1446
- renderChunk: jotai_x2.SimpleWritableAtom<RenderChunkFn | null>;
1447
- renderElement: jotai_x2.SimpleWritableAtom<RenderElementFn | null>;
1448
- renderLeaf: jotai_x2.SimpleWritableAtom<RenderLeafFn | null>;
1449
- renderText: jotai_x2.SimpleWritableAtom<RenderTextFn | null>;
1450
- versionDecorate: jotai_x2.SimpleWritableAtom<number | null>;
1451
- versionEditor: jotai_x2.SimpleWritableAtom<number | null>;
1452
- versionSelection: jotai_x2.SimpleWritableAtom<number | null>;
1453
- versionValue: jotai_x2.SimpleWritableAtom<number | null>;
1454
- onChange: jotai_x2.SimpleWritableAtom<((options: {
1443
+ entry: _platejs_slate20.NodeEntry;
1444
+ }) => _platejs_slate20.TRange[]) | null>;
1445
+ isMounted: jotai_x98.SimpleWritableAtom<boolean | null>;
1446
+ primary: jotai_x98.SimpleWritableAtom<boolean | null>;
1447
+ readOnly: jotai_x98.SimpleWritableAtom<boolean | null>;
1448
+ renderChunk: jotai_x98.SimpleWritableAtom<RenderChunkFn | null>;
1449
+ renderElement: jotai_x98.SimpleWritableAtom<RenderElementFn | null>;
1450
+ renderLeaf: jotai_x98.SimpleWritableAtom<RenderLeafFn | null>;
1451
+ renderText: jotai_x98.SimpleWritableAtom<RenderTextFn | null>;
1452
+ versionDecorate: jotai_x98.SimpleWritableAtom<number | null>;
1453
+ versionEditor: jotai_x98.SimpleWritableAtom<number | null>;
1454
+ versionSelection: jotai_x98.SimpleWritableAtom<number | null>;
1455
+ versionValue: jotai_x98.SimpleWritableAtom<number | null>;
1456
+ onChange: jotai_x98.SimpleWritableAtom<((options: {
1455
1457
  editor: PlateEditor;
1456
- value: _platejs_slate4.Value;
1458
+ value: _platejs_slate20.Value;
1457
1459
  }) => void) | null>;
1458
- onNodeChange: jotai_x2.SimpleWritableAtom<((options: {
1460
+ onNodeChange: jotai_x98.SimpleWritableAtom<((options: {
1459
1461
  editor: PlateEditor;
1460
- node: _platejs_slate4.Descendant;
1461
- operation: _platejs_slate4.NodeOperation;
1462
- prevNode: _platejs_slate4.Descendant;
1462
+ node: _platejs_slate20.Descendant;
1463
+ operation: _platejs_slate20.NodeOperation;
1464
+ prevNode: _platejs_slate20.Descendant;
1463
1465
  }) => void) | null>;
1464
- onSelectionChange: jotai_x2.SimpleWritableAtom<((options: {
1466
+ onSelectionChange: jotai_x98.SimpleWritableAtom<((options: {
1465
1467
  editor: PlateEditor;
1466
- selection: _platejs_slate4.TSelection;
1468
+ selection: _platejs_slate20.TSelection;
1467
1469
  }) => void) | null>;
1468
- onTextChange: jotai_x2.SimpleWritableAtom<((options: {
1470
+ onTextChange: jotai_x98.SimpleWritableAtom<((options: {
1469
1471
  editor: PlateEditor;
1470
- node: _platejs_slate4.Descendant;
1471
- operation: _platejs_slate4.TextOperation;
1472
+ node: _platejs_slate20.Descendant;
1473
+ operation: _platejs_slate20.TextOperation;
1472
1474
  prevText: string;
1473
1475
  text: string;
1474
1476
  }) => void) | null>;
1475
- onValueChange: jotai_x2.SimpleWritableAtom<((options: {
1477
+ onValueChange: jotai_x98.SimpleWritableAtom<((options: {
1476
1478
  editor: PlateEditor;
1477
- value: _platejs_slate4.Value;
1479
+ value: _platejs_slate20.Value;
1478
1480
  }) => void) | null>;
1479
- id: jotai_x2.SimpleWritableAtom<string>;
1480
- containerRef: jotai_x2.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
1481
- editor: jotai_x2.SimpleWritableAtom<PlateEditor>;
1482
- scrollRef: jotai_x2.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
1481
+ id: jotai_x98.SimpleWritableAtom<string>;
1482
+ containerRef: jotai_x98.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
1483
+ editor: jotai_x98.SimpleWritableAtom<PlateEditor>;
1484
+ scrollRef: jotai_x98.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
1483
1485
  } & {
1484
1486
  trackedEditor: jotai10.Atom<{
1485
1487
  editor: any;
@@ -1495,51 +1497,51 @@ declare const PlateStoreProvider: React$1.FC<jotai_x2.ProviderProps<{
1495
1497
  }>;
1496
1498
  })[K$1] extends jotai10.Atom<infer V> ? V : never)>(key: K$1, options?: ({
1497
1499
  selector?: ((v: ({
1498
- composing: jotai_x2.SimpleWritableAtom<boolean | null>;
1499
- decorate: jotai_x2.SimpleWritableAtom<((options: {
1500
+ composing: jotai_x98.SimpleWritableAtom<boolean | null>;
1501
+ decorate: jotai_x98.SimpleWritableAtom<((options: {
1500
1502
  editor: PlateEditor;
1501
- entry: _platejs_slate4.NodeEntry;
1502
- }) => _platejs_slate4.TRange[]) | null>;
1503
- isMounted: jotai_x2.SimpleWritableAtom<boolean | null>;
1504
- primary: jotai_x2.SimpleWritableAtom<boolean | null>;
1505
- readOnly: jotai_x2.SimpleWritableAtom<boolean | null>;
1506
- renderChunk: jotai_x2.SimpleWritableAtom<RenderChunkFn | null>;
1507
- renderElement: jotai_x2.SimpleWritableAtom<RenderElementFn | null>;
1508
- renderLeaf: jotai_x2.SimpleWritableAtom<RenderLeafFn | null>;
1509
- renderText: jotai_x2.SimpleWritableAtom<RenderTextFn | null>;
1510
- versionDecorate: jotai_x2.SimpleWritableAtom<number | null>;
1511
- versionEditor: jotai_x2.SimpleWritableAtom<number | null>;
1512
- versionSelection: jotai_x2.SimpleWritableAtom<number | null>;
1513
- versionValue: jotai_x2.SimpleWritableAtom<number | null>;
1514
- onChange: jotai_x2.SimpleWritableAtom<((options: {
1503
+ entry: _platejs_slate20.NodeEntry;
1504
+ }) => _platejs_slate20.TRange[]) | null>;
1505
+ isMounted: jotai_x98.SimpleWritableAtom<boolean | null>;
1506
+ primary: jotai_x98.SimpleWritableAtom<boolean | null>;
1507
+ readOnly: jotai_x98.SimpleWritableAtom<boolean | null>;
1508
+ renderChunk: jotai_x98.SimpleWritableAtom<RenderChunkFn | null>;
1509
+ renderElement: jotai_x98.SimpleWritableAtom<RenderElementFn | null>;
1510
+ renderLeaf: jotai_x98.SimpleWritableAtom<RenderLeafFn | null>;
1511
+ renderText: jotai_x98.SimpleWritableAtom<RenderTextFn | null>;
1512
+ versionDecorate: jotai_x98.SimpleWritableAtom<number | null>;
1513
+ versionEditor: jotai_x98.SimpleWritableAtom<number | null>;
1514
+ versionSelection: jotai_x98.SimpleWritableAtom<number | null>;
1515
+ versionValue: jotai_x98.SimpleWritableAtom<number | null>;
1516
+ onChange: jotai_x98.SimpleWritableAtom<((options: {
1515
1517
  editor: PlateEditor;
1516
- value: _platejs_slate4.Value;
1518
+ value: _platejs_slate20.Value;
1517
1519
  }) => void) | null>;
1518
- onNodeChange: jotai_x2.SimpleWritableAtom<((options: {
1520
+ onNodeChange: jotai_x98.SimpleWritableAtom<((options: {
1519
1521
  editor: PlateEditor;
1520
- node: _platejs_slate4.Descendant;
1521
- operation: _platejs_slate4.NodeOperation;
1522
- prevNode: _platejs_slate4.Descendant;
1522
+ node: _platejs_slate20.Descendant;
1523
+ operation: _platejs_slate20.NodeOperation;
1524
+ prevNode: _platejs_slate20.Descendant;
1523
1525
  }) => void) | null>;
1524
- onSelectionChange: jotai_x2.SimpleWritableAtom<((options: {
1526
+ onSelectionChange: jotai_x98.SimpleWritableAtom<((options: {
1525
1527
  editor: PlateEditor;
1526
- selection: _platejs_slate4.TSelection;
1528
+ selection: _platejs_slate20.TSelection;
1527
1529
  }) => void) | null>;
1528
- onTextChange: jotai_x2.SimpleWritableAtom<((options: {
1530
+ onTextChange: jotai_x98.SimpleWritableAtom<((options: {
1529
1531
  editor: PlateEditor;
1530
- node: _platejs_slate4.Descendant;
1531
- operation: _platejs_slate4.TextOperation;
1532
+ node: _platejs_slate20.Descendant;
1533
+ operation: _platejs_slate20.TextOperation;
1532
1534
  prevText: string;
1533
1535
  text: string;
1534
1536
  }) => void) | null>;
1535
- onValueChange: jotai_x2.SimpleWritableAtom<((options: {
1537
+ onValueChange: jotai_x98.SimpleWritableAtom<((options: {
1536
1538
  editor: PlateEditor;
1537
- value: _platejs_slate4.Value;
1539
+ value: _platejs_slate20.Value;
1538
1540
  }) => void) | null>;
1539
- id: jotai_x2.SimpleWritableAtom<string>;
1540
- containerRef: jotai_x2.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
1541
- editor: jotai_x2.SimpleWritableAtom<PlateEditor>;
1542
- scrollRef: jotai_x2.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
1541
+ id: jotai_x98.SimpleWritableAtom<string>;
1542
+ containerRef: jotai_x98.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
1543
+ editor: jotai_x98.SimpleWritableAtom<PlateEditor>;
1544
+ scrollRef: jotai_x98.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
1543
1545
  } & {
1544
1546
  trackedEditor: jotai10.Atom<{
1545
1547
  editor: any;
@@ -1555,8 +1557,8 @@ declare const PlateStoreProvider: React$1.FC<jotai_x2.ProviderProps<{
1555
1557
  }>;
1556
1558
  })[K$1] extends jotai10.Atom<infer V_1> ? V_1 : never, prevSelectorOutput?: S | undefined) => S) | undefined;
1557
1559
  equalityFn?: ((prev: S, next: S) => boolean) | undefined;
1558
- } & jotai_x2.UseAtomOptions) | undefined, deps?: unknown[]) => S;
1559
- declare const usePlateStore: (id?: string) => jotai_x2.ReturnOfUseStoreApi<PlateStoreState<PlateEditor>, {
1560
+ } & jotai_x98.UseAtomOptions) | undefined, deps?: unknown[]) => S;
1561
+ declare const usePlateStore: (id?: string) => jotai_x98.ReturnOfUseStoreApi<PlateStoreState<PlateEditor>, {
1560
1562
  trackedEditor: jotai10.Atom<{
1561
1563
  editor: any;
1562
1564
  version: number | null;
@@ -1662,7 +1664,7 @@ declare function useEditorPluginOptions<C extends AnyPluginConfig, U>(editor: Pl
1662
1664
  }): U;
1663
1665
  //#endregion
1664
1666
  //#region src/react/stores/plate-controller/plateControllerStore.d.ts
1665
- declare const PlateController: React$1.FC<jotai_x2.ProviderProps<{
1667
+ declare const PlateController: React$1.FC<jotai_x98.ProviderProps<{
1666
1668
  activeId: string | null;
1667
1669
  editorStores: Record<string, ({
1668
1670
  get: <Value$1>(atom: Atom<Value$1>) => Value$1;
@@ -1704,7 +1706,7 @@ declare const PlateController: React$1.FC<jotai_x2.ProviderProps<{
1704
1706
  dev_restore_atoms: (values: Iterable<readonly [Atom<unknown>, unknown]>) => void;
1705
1707
  }>) | null>;
1706
1708
  primaryEditorIds: string[];
1707
- }>>, plateControllerStore: jotai_x2.StoreApi<{
1709
+ }>>, plateControllerStore: jotai_x98.StoreApi<{
1708
1710
  activeId: jotai10.PrimitiveAtom<string | null> & {
1709
1711
  init: string | null;
1710
1712
  };
@@ -1790,7 +1792,7 @@ declare const PlateController: React$1.FC<jotai_x2.ProviderProps<{
1790
1792
  primaryEditorIds: jotai10.PrimitiveAtom<string[]> & {
1791
1793
  init: string[];
1792
1794
  };
1793
- }, object, "plateController">, _usePlateControllerStore: jotai_x2.UseStoreApi<{
1795
+ }, object, "plateController">, _usePlateControllerStore: jotai_x98.UseStoreApi<{
1794
1796
  activeId: jotai10.PrimitiveAtom<string | null> & {
1795
1797
  init: string | null;
1796
1798
  };
@@ -1992,7 +1994,7 @@ declare const useEditableProps: ({
1992
1994
  * if another node is updated in a way that affects this node's path, this hook
1993
1995
  * will not return the new path.
1994
1996
  */
1995
- declare const useNodePath: (node: TNode) => _platejs_slate4.Path | undefined;
1997
+ declare const useNodePath: (node: TNode) => _platejs_slate20.Path | undefined;
1996
1998
  //#endregion
1997
1999
  //#region src/react/hooks/useSlateProps.d.ts
1998
2000
  type SlateComponentProps = Omit<React$1.ComponentProps<typeof Slate>, 'children'>;
@@ -2007,7 +2009,7 @@ declare const useSlateProps: ({
2007
2009
  }) => PlateSlateProps;
2008
2010
  //#endregion
2009
2011
  //#region src/react/utils/createPlateFallbackEditor.d.ts
2010
- declare const createPlateFallbackEditor: (options?: CreatePlateEditorOptions) => TPlateEditor<_platejs_slate4.Value, PlateCorePlugin>;
2012
+ declare const createPlateFallbackEditor: (options?: CreatePlateEditorOptions) => TPlateEditor<_platejs_slate20.Value, PlateCorePlugin>;
2011
2013
  //#endregion
2012
2014
  //#region src/react/utils/dom-attributes.d.ts
2013
2015
  declare const DOM_HANDLERS: (keyof DOMHandlers)[];
@@ -1,6 +1,6 @@
1
- import { Ht as BaseParagraphPlugin, b as NavigationFeedbackPlugin$1, bt as getPluginNodeProps, cn as createSlatePlugin, n as withSlate, ot as DOMPlugin, p as isEditOnly, s as SlateExtensionPlugin, sn as getEditorPlugin$1, tn as getPluginByType, ut as ChunkingPlugin, yt as getSlateClass } from "../withSlate-NVP0S9vL.js";
1
+ import { Ut as BaseParagraphPlugin, bt as getSlateClass, cn as getEditorPlugin$1, dt as ChunkingPlugin, ln as createSlatePlugin, m as isEditOnly, n as withSlate, nn as getPluginByType, s as SlateExtensionPlugin, st as DOMPlugin, x as NavigationFeedbackPlugin$1, xt as getPluginNodeProps } from "../withSlate-DNmYXPLn.js";
2
2
  import { t as Hotkeys } from "../hotkeys-DI1HPO2Q.js";
3
- import { A as pipeInjectNodeProps, C as createStaticEditor, k as pipeDecorate, s as PlateStatic } from "../static-KMalmfNw.js";
3
+ import { A as pipeInjectNodeProps, C as createStaticEditor, k as pipeDecorate, s as PlateStatic } from "../static-CdjTnIdb.js";
4
4
  import { NodeApi, PathApi, createEditor } from "@platejs/slate";
5
5
  import { isDefined } from "@udecode/utils";
6
6
  import { DefaultPlaceholder, Editable, Slate, useComposing, useFocused, useReadOnly, useSelected, useSlateStatic, withReact } from "slate-react";
@@ -1148,10 +1148,9 @@ const pipeRenderLeaf = (editor, renderLeafProp) => {
1148
1148
  }
1149
1149
  props.children = /* @__PURE__ */ React.createElement(Tag, { className }, props.children);
1150
1150
  }
1151
- if (hasActiveComplexRenderLeaf) for (const { key, renderLeaf } of complexRenderLeafEntries) {
1151
+ if (hasActiveComplexRenderLeaf) for (const { key, renderLeaf: RenderLeaf } of complexRenderLeafEntries) {
1152
1152
  if (!leaf[key]) continue;
1153
- const newChildren = renderLeaf(props);
1154
- if (newChildren !== void 0) props.children = newChildren;
1153
+ props.children = /* @__PURE__ */ React.createElement(RenderLeaf, props, props.children);
1155
1154
  }
1156
1155
  leafPropsPlugins.forEach((plugin) => {
1157
1156
  if (props.leaf[plugin.node.type]) {
@@ -1276,10 +1275,9 @@ const pipeRenderText = (editor, renderTextProp) => {
1276
1275
  if (isEditOnly(readOnly, plugin, "render")) continue;
1277
1276
  props.children = /* @__PURE__ */ React.createElement(Tag, { className }, props.children);
1278
1277
  }
1279
- if (hasActiveRenderText) for (const { renderText, textKey } of renderTexts) {
1278
+ if (hasActiveRenderText) for (const { renderText: RenderText, textKey } of renderTexts) {
1280
1279
  if (!text[textKey]) continue;
1281
- const newChildren = renderText(props);
1282
- if (newChildren !== void 0) props.children = newChildren;
1280
+ props.children = /* @__PURE__ */ React.createElement(RenderText, props, props.children);
1283
1281
  }
1284
1282
  textPropsPlugins.forEach((plugin) => {
1285
1283
  if (props.text[plugin.node.type ?? plugin.key]) {
@@ -1,2 +1,2 @@
1
- import { $a as SlateElement, Ao as pluginRenderElementStatic, Ba as pipeDecorate, Co as pipeRenderTextStatic, Do as pluginRenderLeafStatic, Eo as pipeRenderLeafStatic, Ga as getRenderNodeStaticProps, Ha as getSelectedDomNode, Ja as createStaticString, Ka as getNodeDataAttributes, Oo as pipeRenderElementStatic, Qa as getEditorDOMFromHtmlString, Ra as stripSlateDataAttributes, So as SlateRenderText, To as SlateRenderLeaf, Ua as getSelectedDomFragment, Va as isSelectOutside, Wa as getSelectedDomBlocks, Xa as ViewPlugin, Ya as getStaticPlugins, Za as createStaticEditor, _o as serializeHtml, ao as SlateText, bo as PlateStatic, co as StyledSlateLeafProps, do as BoxStaticProps, eo as SlateElementProps, fo as SlateRenderElementProps, go as SerializeHtmlOptions, ho as SlateRenderTextProps, io as SlateNodeProps, ko as SlateRenderElement, lo as StyledSlateTextProps, mo as SlateRenderNodeProps, no as SlateLeaf, oo as SlateTextProps, po as SlateRenderLeafProps, qa as getPluginDataAttributes, ro as SlateLeafProps, so as StyledSlateElementProps, to as SlateHTMLProps, uo as useNodeAttributes, vo as ElementStatic, wo as pluginRenderTextStatic, xo as PlateStaticProps, yo as LeafStatic, za as stripHtmlClassNames } from "../index-BDSzA1zP";
1
+ import { $a as getEditorDOMFromHtmlString, Ao as SlateRenderElement, Ba as stripHtmlClassNames, Co as SlateRenderText, Do as pipeRenderLeafStatic, Eo as SlateRenderLeaf, Ga as getSelectedDomBlocks, Ha as isSelectOutside, Ja as getPluginDataAttributes, Ka as getRenderNodeStaticProps, Oo as pluginRenderLeafStatic, Qa as createStaticEditor, So as PlateStaticProps, To as pluginRenderTextStatic, Ua as getSelectedDomNode, Va as pipeDecorate, Wa as getSelectedDomFragment, Xa as getStaticPlugins, Ya as createStaticString, Za as ViewPlugin, _o as SerializeHtmlOptions, ao as SlateNodeProps, bo as LeafStatic, co as StyledSlateElementProps, do as useNodeAttributes, eo as SlateElement, fo as BoxStaticProps, go as SlateRenderTextProps, ho as SlateRenderNodeProps, io as SlateLeafProps, jo as pluginRenderElementStatic, ko as pipeRenderElementStatic, lo as StyledSlateLeafProps, mo as SlateRenderLeafProps, no as SlateHTMLProps, oo as SlateText, po as SlateRenderElementProps, qa as getNodeDataAttributes, ro as SlateLeaf, so as SlateTextProps, to as SlateElementProps, uo as StyledSlateTextProps, vo as serializeHtml, wo as pipeRenderTextStatic, xo as PlateStatic, yo as ElementStatic, za as stripSlateDataAttributes } from "../index-fS5ruWhD";
2
2
  export { BoxStaticProps, ElementStatic, LeafStatic, PlateStatic, PlateStaticProps, SerializeHtmlOptions, SlateElement, SlateElementProps, SlateHTMLProps, SlateLeaf, SlateLeafProps, SlateNodeProps, SlateRenderElement, SlateRenderElementProps, SlateRenderLeaf, SlateRenderLeafProps, SlateRenderNodeProps, SlateRenderText, SlateRenderTextProps, SlateText, SlateTextProps, StyledSlateElementProps, StyledSlateLeafProps, StyledSlateTextProps, ViewPlugin, createStaticEditor, createStaticString, getEditorDOMFromHtmlString, getNodeDataAttributes, getPluginDataAttributes, getRenderNodeStaticProps, getSelectedDomBlocks, getSelectedDomFragment, getSelectedDomNode, getStaticPlugins, isSelectOutside, pipeDecorate, pipeRenderElementStatic, pipeRenderLeafStatic, pipeRenderTextStatic, pluginRenderElementStatic, pluginRenderLeafStatic, pluginRenderTextStatic, serializeHtml, stripHtmlClassNames, stripSlateDataAttributes, useNodeAttributes };
@@ -1,4 +1,4 @@
1
- import "../withSlate-NVP0S9vL.js";
2
- import { C as createStaticEditor, D as getSelectedDomNode, E as isSelectOutside, O as getSelectedDomFragment, S as useNodeAttributes, T as ViewPlugin, _ as getPluginDataAttributes, a as ElementStatic, b as SlateLeaf, c as pipeRenderTextStatic, d as pluginRenderElementStatic, f as stripSlateDataAttributes, g as getNodeDataAttributes, h as getRenderNodeStaticProps, i as pluginRenderLeafStatic, k as pipeDecorate, l as pluginRenderTextStatic, m as getSelectedDomBlocks, n as serializeHtml, o as LeafStatic, p as stripHtmlClassNames, r as pipeRenderLeafStatic, s as PlateStatic, t as getEditorDOMFromHtmlString, u as pipeRenderElementStatic, v as createStaticString, w as getStaticPlugins, x as SlateText, y as SlateElement } from "../static-KMalmfNw.js";
1
+ import "../withSlate-DNmYXPLn.js";
2
+ import { C as createStaticEditor, D as getSelectedDomNode, E as isSelectOutside, O as getSelectedDomFragment, S as useNodeAttributes, T as ViewPlugin, _ as getPluginDataAttributes, a as ElementStatic, b as SlateLeaf, c as pipeRenderTextStatic, d as pluginRenderElementStatic, f as stripSlateDataAttributes, g as getNodeDataAttributes, h as getRenderNodeStaticProps, i as pluginRenderLeafStatic, k as pipeDecorate, l as pluginRenderTextStatic, m as getSelectedDomBlocks, n as serializeHtml, o as LeafStatic, p as stripHtmlClassNames, r as pipeRenderLeafStatic, s as PlateStatic, t as getEditorDOMFromHtmlString, u as pipeRenderElementStatic, v as createStaticString, w as getStaticPlugins, x as SlateText, y as SlateElement } from "../static-CdjTnIdb.js";
3
3
 
4
4
  export { ElementStatic, LeafStatic, PlateStatic, SlateElement, SlateLeaf, SlateText, ViewPlugin, createStaticEditor, createStaticString, getEditorDOMFromHtmlString, getNodeDataAttributes, getPluginDataAttributes, getRenderNodeStaticProps, getSelectedDomBlocks, getSelectedDomFragment, getSelectedDomNode, getStaticPlugins, isSelectOutside, pipeDecorate, pipeRenderElementStatic, pipeRenderLeafStatic, pipeRenderTextStatic, pluginRenderElementStatic, pluginRenderLeafStatic, pluginRenderTextStatic, serializeHtml, stripHtmlClassNames, stripSlateDataAttributes, useNodeAttributes };
@@ -1,4 +1,4 @@
1
- import { St as keyToDataAttribute, bt as getPluginNodeProps, n as withSlate, ot as DOMPlugin, p as isEditOnly, sn as getEditorPlugin, tn as getPluginByType, wt as getInjectMatch, yt as getSlateClass } from "./withSlate-NVP0S9vL.js";
1
+ import { Ct as keyToDataAttribute, Tt as getInjectMatch, bt as getSlateClass, cn as getEditorPlugin, m as isEditOnly, n as withSlate, nn as getPluginByType, st as DOMPlugin, xt as getPluginNodeProps } from "./withSlate-DNmYXPLn.js";
2
2
  import { ElementApi, NodeApi, RangeApi, TextApi, createEditor, isElementDecorationsEqual, isTextDecorationsEqual } from "@platejs/slate";
3
3
  import { isDefined } from "@udecode/utils";
4
4
  import React from "react";
@@ -782,6 +782,7 @@ const resolvePlugins = (editor, plugins = [], createStore = createVanillaStore)
782
782
  node: {
783
783
  isContainer: [],
784
784
  isLeaf: [],
785
+ isMetadataProp: [],
785
786
  isText: [],
786
787
  leafProps: [],
787
788
  textProps: [],
@@ -813,6 +814,7 @@ const resolvePlugins = (editor, plugins = [], createStore = createVanillaStore)
813
814
  }
814
815
  resolvePluginMethods(editor, plugin);
815
816
  if (plugin.node?.isContainer) editor.meta.pluginCache.node.isContainer.push(plugin.key);
817
+ if (plugin.node?.isMetadataProp) editor.meta.pluginCache.node.isMetadataProp.push(plugin.key);
816
818
  editor.meta.pluginCache.node.types[plugin.node.type] = plugin.key;
817
819
  if (plugin.inject?.nodeProps) editor.meta.pluginCache.inject.nodeProps.push(plugin.key);
818
820
  if (plugin.render?.node) editor.meta.components[plugin.key] = plugin.render.node;
@@ -2793,7 +2795,7 @@ const withNodeId = ({ editor, getOptions, tf: { apply, insertNode, insertNodes }
2793
2795
  if (entryNode[idKey] === void 0) Object.assign(entryNode, idPropsCreator());
2794
2796
  if (!disableInsertOverrides && isDefined(entryNode._id)) {
2795
2797
  const id = entryNode._id;
2796
- entryNode._id = void 0;
2798
+ delete entryNode._id;
2797
2799
  if (!hasIdInEditor(id)) entryNode[idKey] = id;
2798
2800
  }
2799
2801
  }
@@ -2967,7 +2969,7 @@ const NodeIdPlugin = createTSlatePlugin({
2967
2969
  filter: defaultNodeIdFilter,
2968
2970
  idCreator: () => nanoid(10)
2969
2971
  }
2970
- }).extendTransforms(({ editor, getOptions }) => ({ normalize() {
2972
+ }).extend(({ getOptions }) => ({ node: { isMetadataProp: ({ key }) => key === (getOptions().idKey ?? "id") } })).extendTransforms(({ editor, getOptions }) => ({ normalize() {
2971
2973
  const options = getOptions();
2972
2974
  const { idCreator, idKey } = options;
2973
2975
  const updates = [];
@@ -3265,6 +3267,21 @@ const setValue = (editor, value) => {
3265
3267
  //#region src/lib/plugins/slate-extension/SlateExtensionPlugin.ts
3266
3268
  const NOOP_ON_NODE_CHANGE = () => {};
3267
3269
  const NOOP_ON_TEXT_CHANGE = () => {};
3270
+ const isElementStateEmpty = (editor, element) => {
3271
+ const props = NodeApi.extractProps(element);
3272
+ return Object.entries(props).every(([key, value]) => {
3273
+ if (key === "type") return true;
3274
+ return editor.meta.pluginCache.node.isMetadataProp.some((pluginKey) => {
3275
+ const plugin = editor.plugins[pluginKey];
3276
+ return plugin.node.isMetadataProp?.({
3277
+ ...getEditorPlugin(editor, plugin),
3278
+ key,
3279
+ node: element,
3280
+ value
3281
+ });
3282
+ });
3283
+ });
3284
+ };
3268
3285
  /** Opinionated extension of slate default behavior. */
3269
3286
  const SlateExtensionPlugin = createTSlatePlugin({
3270
3287
  api: { redecorate: () => {} },
@@ -3273,7 +3290,7 @@ const SlateExtensionPlugin = createTSlatePlugin({
3273
3290
  onNodeChange: NOOP_ON_NODE_CHANGE,
3274
3291
  onTextChange: NOOP_ON_TEXT_CHANGE
3275
3292
  }
3276
- }).extendEditorTransforms(({ editor, getOption, tf }) => {
3293
+ }).extendEditorApi(({ editor }) => ({ isElementStateEmpty: bindFirst(isElementStateEmpty, editor) })).extendEditorTransforms(({ editor, getOption, tf }) => {
3277
3294
  const apply = tf?.apply ?? editor.tf.apply;
3278
3295
  return {
3279
3296
  init: bindFirst(init, editor),
@@ -3807,4 +3824,4 @@ const withSlate = (e, { id, affinity = true, autoSelect, chunking = true, maxLen
3807
3824
  const createSlateEditor = ({ editor = createEditor(), ...options } = {}) => withSlate(editor, options);
3808
3825
 
3809
3826
  //#endregion
3810
- export { collapseString as $, defineInputRule as $t, deserializeHtml as A, isSlatePluginElement as At, getDataNodeProps as B, withDeleteRules as Bt, flashTarget as C, getInjectedPlugins as Ct, LengthPlugin as D, isSlateElement as Dt, NavigationFeedbackPluginKey as E, isSlateEditor as Et, htmlElementToLeaf as F, applyDeepToNodes as Ft, collapseWhiteSpaceElement as G, AstPlugin as Gt, htmlBodyToFragment as H, BaseParagraphPlugin as Ht, pipeDeserializeHtmlLeaf as I, OverridePlugin as It, collapseWhiteSpaceNode as J, createMarkInputRule as Jt, inferWhiteSpaceRule as K, createBlockFenceInputRule as Kt, htmlElementToElement as L, withOverrides as Lt, deserializeHtmlElement as M, isSlateString as Mt, deserializeHtmlNode as N, isSlateText as Nt, HtmlPlugin as O, isSlateLeaf as Ot, htmlTextNodeToString as P, isSlateVoid as Pt, isLastNonEmptyTextOfInlineFormattingContext as Q, matchDelimitedInline as Qt, pipeDeserializeHtmlElement as R, withNormalizeRules as Rt, clearNavigationFeedbackTarget as S, keyToDataAttribute as St, NAVIGATION_FEEDBACK_KEY as T, getSlateElements as Tt, deserializeHtmlNodeChildren as U, HistoryPlugin as Ut, htmlBrToNewLine as V, withBreakRules as Vt, collapseWhiteSpace as W, withPlateHistory as Wt, endInlineFormattingContext as X, matchBlockFence as Xt, collapseWhiteSpaceText as Y, createTextSubstitutionInputRule as Yt, upsertInlineFormattingContext as Z, matchBlockStart as Zt, normalizeNodeId as _, getEdgeNodes as _t, pipeInsertDataQuery as a, getPluginTypes as an, AUTO_SCROLL as at, NavigationFeedbackPlugin as b, getPluginNodeProps as bt, setValue as c, createSlatePlugin as cn, DebugPlugin as ct, insertExitBreak as d, withChunking as dt, getContainerTypes as en, isHtmlBlockElement as et, init as f, AffinityPlugin as ft, NodeIdPlugin as g, getMarkBoundaryAffinity as gt, pipeOnNodeChange as h, isNodesAffinity as ht, ParserPlugin as i, getPluginType as in, isHtmlElement as it, htmlStringToDOMNode as j, isSlatePluginNode as jt, parseHtmlDocument as k, isSlateNode as kt, resetBlock as l, createTSlatePlugin as ln, PlateError as lt, pipeOnTextChange as m, isNodeAffinity as mt, withSlate as n, getPluginKey as nn, inlineTagNames as nt, normalizeDescendantsToDocumentFragment as o, getSlatePlugin as on, DOMPlugin as ot, isEditOnly as p, setAffinitySelection as pt, collapseWhiteSpaceChildren as q, createBlockStartInputRule as qt, getCorePlugins as r, getPluginKeys as rn, isHtmlText as rt, SlateExtensionPlugin as s, getEditorPlugin as sn, withScrolling as st, createSlateEditor as t, getPluginByType as tn, isHtmlInlineElement as tt, liftBlock as u, ChunkingPlugin as ut, normalizeNodeIdWithEditor as v, mergeDeepToNodes as vt, resolveNavigationFeedbackTarget as w, getInjectMatch as wt, navigate as x, getNodeDataAttributeKeys as xt, withNodeId as y, getSlateClass as yt, pluginDeserializeHtml as z, withMergeRules as zt };
3827
+ export { isLastNonEmptyTextOfInlineFormattingContext as $, matchDelimitedInline as $t, parseHtmlDocument as A, isSlateNode as At, pluginDeserializeHtml as B, withMergeRules as Bt, clearNavigationFeedbackTarget as C, keyToDataAttribute as Ct, NavigationFeedbackPluginKey as D, isSlateEditor as Dt, NAVIGATION_FEEDBACK_KEY as E, getSlateElements as Et, htmlTextNodeToString as F, isSlateVoid as Ft, collapseWhiteSpace as G, withPlateHistory as Gt, htmlBrToNewLine as H, withBreakRules as Ht, htmlElementToLeaf as I, applyDeepToNodes as It, collapseWhiteSpaceChildren as J, createBlockStartInputRule as Jt, collapseWhiteSpaceElement as K, AstPlugin as Kt, pipeDeserializeHtmlLeaf as L, OverridePlugin as Lt, htmlStringToDOMNode as M, isSlatePluginNode as Mt, deserializeHtmlElement as N, isSlateString as Nt, LengthPlugin as O, isSlateElement as Ot, deserializeHtmlNode as P, isSlateText as Pt, upsertInlineFormattingContext as Q, matchBlockStart as Qt, htmlElementToElement as R, withOverrides as Rt, navigate as S, getNodeDataAttributeKeys as St, resolveNavigationFeedbackTarget as T, getInjectMatch as Tt, htmlBodyToFragment as U, BaseParagraphPlugin as Ut, getDataNodeProps as V, withDeleteRules as Vt, deserializeHtmlNodeChildren as W, HistoryPlugin as Wt, collapseWhiteSpaceText as X, createTextSubstitutionInputRule as Xt, collapseWhiteSpaceNode as Y, createMarkInputRule as Yt, endInlineFormattingContext as Z, matchBlockFence as Zt, NodeIdPlugin as _, getMarkBoundaryAffinity as _t, pipeInsertDataQuery as a, getPluginType as an, isHtmlElement as at, withNodeId as b, getSlateClass as bt, isElementStateEmpty as c, getEditorPlugin as cn, withScrolling as ct, liftBlock as d, ChunkingPlugin as dt, defineInputRule as en, collapseString as et, insertExitBreak as f, withChunking as ft, pipeOnNodeChange as g, isNodesAffinity as gt, pipeOnTextChange as h, isNodeAffinity as ht, ParserPlugin as i, getPluginKeys as in, isHtmlText as it, deserializeHtml as j, isSlatePluginElement as jt, HtmlPlugin as k, isSlateLeaf as kt, setValue as l, createSlatePlugin as ln, DebugPlugin as lt, isEditOnly as m, setAffinitySelection as mt, withSlate as n, getPluginByType as nn, isHtmlInlineElement as nt, normalizeDescendantsToDocumentFragment as o, getPluginTypes as on, AUTO_SCROLL as ot, init as p, AffinityPlugin as pt, inferWhiteSpaceRule as q, createBlockFenceInputRule as qt, getCorePlugins as r, getPluginKey as rn, inlineTagNames as rt, SlateExtensionPlugin as s, getSlatePlugin as sn, DOMPlugin as st, createSlateEditor as t, getContainerTypes as tn, isHtmlBlockElement as tt, resetBlock as u, createTSlatePlugin as un, PlateError as ut, normalizeNodeId as v, getEdgeNodes as vt, flashTarget as w, getInjectedPlugins as wt, NavigationFeedbackPlugin as x, getPluginNodeProps as xt, normalizeNodeIdWithEditor as y, mergeDeepToNodes as yt, pipeDeserializeHtmlElement as z, withNormalizeRules as zt };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lofcz/platejs-core",
3
- "version": "53.1.8",
3
+ "version": "53.2.4",
4
4
  "description": "The core of Plate – a plugin system for slate",
5
5
  "keywords": [
6
6
  "contentEditable",