@lofcz/platejs-core 53.2.1 → 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.
@@ -1,4 +1,4 @@
1
- import * as _platejs_slate30 from "@platejs/slate";
1
+ import * as _platejs_slate1 from "@platejs/slate";
2
2
  import { Ancestor, DOMRange, DecoratedRange, Descendant, Editor, EditorAboveOptions, EditorApi, EditorBase, EditorTransforms, InsertTextOptions, LeafPosition, NodeEntry, NodeOf, NodeOperation, Operation, Path, PathRef, Point, QueryNodeOptions, ScrollIntoViewOptions, TElement, TNode, TRange, TSelection, TText, TextOperation, Value } from "@platejs/slate";
3
3
  import { nanoid as nanoid$1 } from "nanoid";
4
4
  import { AnyObject, Deep2Partial, Modify, Nullable, OmitFirst, UnionToIntersection, UnknownObject } from "@udecode/utils";
@@ -200,9 +200,9 @@ declare const createStaticEditor: <V extends Value = Value, P extends AnyPluginC
200
200
  declare const ViewPlugin: SlatePlugin<PluginConfig<"dom", {
201
201
  scrollMode?: ScrollMode;
202
202
  scrollOperations?: AutoScrollOperationsMap;
203
- scrollOptions?: _platejs_slate30.ScrollIntoViewOptions;
203
+ scrollOptions?: _platejs_slate1.ScrollIntoViewOptions;
204
204
  }, {
205
- getFragment: () => _platejs_slate30.Descendant[];
205
+ getFragment: () => _platejs_slate1.Descendant[];
206
206
  isScrolling: () => boolean;
207
207
  }, {
208
208
  withScrolling: (fn: () => void, options?: WithAutoScrollOptions | undefined) => void;
@@ -212,9 +212,9 @@ declare const ViewPlugin: SlatePlugin<PluginConfig<"dom", {
212
212
  declare const getStaticPlugins: () => SlatePlugin<PluginConfig<"dom", {
213
213
  scrollMode?: ScrollMode;
214
214
  scrollOperations?: AutoScrollOperationsMap;
215
- scrollOptions?: _platejs_slate30.ScrollIntoViewOptions;
215
+ scrollOptions?: _platejs_slate1.ScrollIntoViewOptions;
216
216
  }, {
217
- getFragment: () => _platejs_slate30.Descendant[];
217
+ getFragment: () => _platejs_slate1.Descendant[];
218
218
  isScrolling: () => boolean;
219
219
  }, {
220
220
  withScrolling: (fn: () => void, options?: WithAutoScrollOptions | undefined) => void;
@@ -1006,12 +1006,12 @@ declare const SlateExtensionPlugin: SlatePlugin<PluginConfig<"slateExtension", {
1006
1006
  insertExitBreak: ((args_0?: InsertExitBreakOptions | undefined) => true | undefined) & ((args_0?: InsertExitBreakOptions | undefined) => true | undefined);
1007
1007
  liftBlock: ((args_0?: LiftBlockOptions | undefined) => true | undefined) & ((args_0?: LiftBlockOptions | undefined) => true | undefined);
1008
1008
  resetBlock: ((args_0?: {
1009
- at?: _platejs_slate30.Path;
1009
+ at?: _platejs_slate1.Path;
1010
1010
  } | undefined) => true | undefined) & ((args_0?: {
1011
- at?: _platejs_slate30.Path;
1011
+ at?: _platejs_slate1.Path;
1012
1012
  } | undefined) => true | undefined);
1013
- setValue: ((value?: string | _platejs_slate30.Value | undefined) => void) & ((value?: string | _platejs_slate30.Value | undefined) => void);
1014
- apply: <N$1 extends TElement | TText>(operation: _platejs_slate30.Operation<N$1>) => void;
1013
+ setValue: ((value?: string | _platejs_slate1.Value | undefined) => void) & ((value?: string | _platejs_slate1.Value | undefined) => void);
1014
+ apply: <N$1 extends TElement | TText>(operation: _platejs_slate1.Operation<N$1>) => void;
1015
1015
  }, {}>>;
1016
1016
  //#endregion
1017
1017
  //#region src/lib/plugins/dom/withScrolling.d.ts
@@ -1117,7 +1117,7 @@ declare const NavigationFeedbackPlugin: SlatePlugin<PluginConfig<"navigationFeed
1117
1117
  navigation: {
1118
1118
  activeTarget: () => NavigationFeedbackActiveTarget | null;
1119
1119
  clear: () => void;
1120
- isTarget: (path: _platejs_slate30.Path) => boolean;
1120
+ isTarget: (path: _platejs_slate1.Path) => boolean;
1121
1121
  };
1122
1122
  }, {
1123
1123
  navigation: {
@@ -1409,35 +1409,35 @@ declare const getCorePlugins: ({
1409
1409
  }: GetCorePluginsOptions) => (SlatePlugin<DebugConfig> | SlatePlugin<PluginConfig<"slateExtension", {
1410
1410
  onNodeChange: (options: {
1411
1411
  editor: SlateEditor;
1412
- node: _platejs_slate30.Descendant;
1413
- operation: _platejs_slate30.NodeOperation;
1414
- prevNode: _platejs_slate30.Descendant;
1412
+ node: _platejs_slate1.Descendant;
1413
+ operation: _platejs_slate1.NodeOperation;
1414
+ prevNode: _platejs_slate1.Descendant;
1415
1415
  }) => void;
1416
1416
  onTextChange: (options: {
1417
1417
  editor: SlateEditor;
1418
- node: _platejs_slate30.Descendant;
1419
- operation: _platejs_slate30.TextOperation;
1418
+ node: _platejs_slate1.Descendant;
1419
+ operation: _platejs_slate1.TextOperation;
1420
1420
  prevText: string;
1421
1421
  text: string;
1422
1422
  }) => void;
1423
1423
  }, {
1424
- isElementStateEmpty: (element: _platejs_slate30.TElement) => boolean;
1424
+ isElementStateEmpty: (element: _platejs_slate1.TElement) => boolean;
1425
1425
  redecorate: () => void;
1426
1426
  }, {
1427
1427
  init: ((args_0: InitOptions) => void) & ((args_0: InitOptions) => void);
1428
1428
  insertExitBreak: ((args_0?: InsertExitBreakOptions | undefined) => true | undefined) & ((args_0?: InsertExitBreakOptions | undefined) => true | undefined);
1429
1429
  liftBlock: ((args_0?: LiftBlockOptions | undefined) => true | undefined) & ((args_0?: LiftBlockOptions | undefined) => true | undefined);
1430
1430
  resetBlock: ((args_0?: {
1431
- at?: _platejs_slate30.Path;
1431
+ at?: _platejs_slate1.Path;
1432
1432
  } | undefined) => true | undefined) & ((args_0?: {
1433
- at?: _platejs_slate30.Path;
1433
+ at?: _platejs_slate1.Path;
1434
1434
  } | undefined) => true | undefined);
1435
- setValue: ((value?: string | _platejs_slate30.Value | undefined) => void) & ((value?: string | _platejs_slate30.Value | undefined) => void);
1436
- apply: <N$1 extends _platejs_slate30.TElement | _platejs_slate30.TText>(operation: _platejs_slate30.Operation<N$1>) => void;
1435
+ setValue: ((value?: string | _platejs_slate1.Value | undefined) => void) & ((value?: string | _platejs_slate1.Value | undefined) => void);
1436
+ apply: <N$1 extends _platejs_slate1.TElement | _platejs_slate1.TText>(operation: _platejs_slate1.Operation<N$1>) => void;
1437
1437
  }, {}>> | SlatePlugin<PluginConfig<"dom", {
1438
1438
  scrollMode?: ScrollMode;
1439
1439
  scrollOperations?: AutoScrollOperationsMap;
1440
- scrollOptions?: _platejs_slate30.ScrollIntoViewOptions;
1440
+ scrollOptions?: _platejs_slate1.ScrollIntoViewOptions;
1441
1441
  }, {
1442
1442
  isScrolling: () => boolean;
1443
1443
  }, {
@@ -1449,7 +1449,7 @@ declare const getCorePlugins: ({
1449
1449
  navigation: {
1450
1450
  activeTarget: () => NavigationFeedbackActiveTarget | null;
1451
1451
  clear: () => void;
1452
- isTarget: (path: _platejs_slate30.Path) => boolean;
1452
+ isTarget: (path: _platejs_slate1.Path) => boolean;
1453
1453
  };
1454
1454
  }, {
1455
1455
  navigation: {
@@ -1462,7 +1462,7 @@ declare const getCorePlugins: ({
1462
1462
  element: HTMLElement | string;
1463
1463
  collapseWhiteSpace?: boolean;
1464
1464
  defaultElementPlugin?: WithRequiredKey;
1465
- }) => _platejs_slate30.Descendant[];
1465
+ }) => _platejs_slate1.Descendant[];
1466
1466
  }>, {}, {}>> | SlatePlugin<PluginConfig<"ast", {}, {}, {}, {}>> | SlatePlugin<PluginConfig<"nodeId", {
1467
1467
  disableInsertOverrides?: boolean;
1468
1468
  filterInline?: boolean;
@@ -1478,7 +1478,7 @@ declare const getCorePlugins: ({
1478
1478
  }) => void;
1479
1479
  reuseId?: boolean;
1480
1480
  idCreator?: () => any;
1481
- } & _platejs_slate30.QueryNodeOptions, {}, {
1481
+ } & _platejs_slate1.QueryNodeOptions, {}, {
1482
1482
  nodeId: {
1483
1483
  normalize: () => void;
1484
1484
  };
@@ -1518,7 +1518,7 @@ declare const HtmlPlugin: SlatePlugin<PluginConfig<"html", {}, Record<"html", {
1518
1518
  element: HTMLElement | string;
1519
1519
  collapseWhiteSpace?: boolean;
1520
1520
  defaultElementPlugin?: WithRequiredKey;
1521
- }) => _platejs_slate30.Descendant[];
1521
+ }) => _platejs_slate1.Descendant[];
1522
1522
  }>, {}, {}>>;
1523
1523
  //#endregion
1524
1524
  //#region src/lib/plugins/html/constants.d.ts
@@ -3105,7 +3105,7 @@ declare const normalizeDescendantsToDocumentFragment: (editor: SlateEditor, {
3105
3105
  }) => Descendant[];
3106
3106
  //#endregion
3107
3107
  //#region src/lib/utils/omitPluginContext.d.ts
3108
- declare const omitPluginContext: <T extends SlatePluginContext<AnySlatePlugin>>(ctx: T) => Omit<T, "api" | "editor" | "getOptions" | "type" | "getOption" | "tf" | "setOptions" | "setOption" | "plugin">;
3108
+ declare const omitPluginContext: <T extends SlatePluginContext<AnySlatePlugin>>(ctx: T) => Omit<T, "editor" | "api" | "plugin" | "setOptions" | "tf" | "type" | "getOption" | "getOptions" | "setOption">;
3109
3109
  //#endregion
3110
3110
  //#region src/lib/utils/overridePluginsByKey.d.ts
3111
3111
  /**
package/dist/index.d.ts CHANGED
@@ -1,2 +1,2 @@
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-ClAE30YQ";
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
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 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-pfxNb3FA.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";
@@ -1,13 +1,13 @@
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-ClAE30YQ";
2
- import * as _platejs_slate0 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";
6
6
  import React$1, { DependencyList, HTMLAttributes } from "react";
7
7
  import { HotkeysEvent, HotkeysOptions, Keys } from "@udecode/react-hotkeys";
8
- import * as jotai0 from "jotai";
8
+ import * as jotai10 from "jotai";
9
9
  import { Atom, atom } from "jotai";
10
- import * as jotai_x0 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,32 +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_slate0.Descendant;
21
- operation: _platejs_slate0.NodeOperation;
22
- prevNode: _platejs_slate0.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_slate0.Descendant;
27
- operation: _platejs_slate0.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_slate0.TElement) => boolean;
33
+ isElementStateEmpty: (element: _platejs_slate20.TElement) => boolean;
34
34
  }, {
35
- reset: (options: _platejs_slate0.ResetOptions | undefined) => void;
35
+ reset: (options: _platejs_slate20.ResetOptions | undefined) => void;
36
36
  init: ((args_0: InitOptions) => void) & ((args_0: InitOptions) => void);
37
37
  insertExitBreak: ((args_0?: InsertExitBreakOptions | undefined) => true | undefined) & ((args_0?: InsertExitBreakOptions | undefined) => true | undefined);
38
38
  liftBlock: ((args_0?: LiftBlockOptions | undefined) => true | undefined) & ((args_0?: LiftBlockOptions | undefined) => true | undefined);
39
39
  resetBlock: ((args_0?: {
40
- at?: _platejs_slate0.Path;
40
+ at?: _platejs_slate20.Path;
41
41
  } | undefined) => true | undefined) & ((args_0?: {
42
- at?: _platejs_slate0.Path;
42
+ at?: _platejs_slate20.Path;
43
43
  } | undefined) => true | undefined);
44
- setValue: ((value?: string | _platejs_slate0.Value | undefined) => void) & ((value?: string | _platejs_slate0.Value | undefined) => void);
45
- apply: <N$1 extends _platejs_slate0.TElement | _platejs_slate0.TText>(operation: _platejs_slate0.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;
46
46
  }, {}>>;
47
47
  //#endregion
48
48
  //#region src/react/plugins/event-editor/EventEditorPlugin.d.ts
@@ -102,7 +102,7 @@ declare const ParagraphPlugin: PlatePlugin<PluginConfig<"p", {}, {}, {}, {}>>;
102
102
  declare const ReactPlugin: PlatePlugin<PluginConfig<"dom", {
103
103
  scrollMode?: ScrollMode;
104
104
  scrollOperations?: AutoScrollOperationsMap;
105
- scrollOptions?: _platejs_slate0.ScrollIntoViewOptions;
105
+ scrollOptions?: _platejs_slate20.ScrollIntoViewOptions;
106
106
  }, {
107
107
  isScrolling: () => boolean;
108
108
  }, {
@@ -819,36 +819,36 @@ declare const getPlateCorePlugins: ({
819
819
  }) => (PlatePlugin<PluginConfig<"eventEditor", {}, {}, {}, {}>> | PlatePlugin<PluginConfig<"slateExtension", {
820
820
  onNodeChange: (options: {
821
821
  editor: SlateEditor;
822
- node: _platejs_slate0.Descendant;
823
- operation: _platejs_slate0.NodeOperation;
824
- prevNode: _platejs_slate0.Descendant;
822
+ node: _platejs_slate20.Descendant;
823
+ operation: _platejs_slate20.NodeOperation;
824
+ prevNode: _platejs_slate20.Descendant;
825
825
  }) => void;
826
826
  onTextChange: (options: {
827
827
  editor: SlateEditor;
828
- node: _platejs_slate0.Descendant;
829
- operation: _platejs_slate0.TextOperation;
828
+ node: _platejs_slate20.Descendant;
829
+ operation: _platejs_slate20.TextOperation;
830
830
  prevText: string;
831
831
  text: string;
832
832
  }) => void;
833
833
  }, {
834
834
  redecorate: (() => void) & (() => void);
835
- isElementStateEmpty: (element: _platejs_slate0.TElement) => boolean;
835
+ isElementStateEmpty: (element: _platejs_slate20.TElement) => boolean;
836
836
  }, {
837
- reset: (options: _platejs_slate0.ResetOptions | undefined) => void;
837
+ reset: (options: _platejs_slate20.ResetOptions | undefined) => void;
838
838
  init: ((args_0: InitOptions) => void) & ((args_0: InitOptions) => void);
839
839
  insertExitBreak: ((args_0?: InsertExitBreakOptions | undefined) => true | undefined) & ((args_0?: InsertExitBreakOptions | undefined) => true | undefined);
840
840
  liftBlock: ((args_0?: LiftBlockOptions | undefined) => true | undefined) & ((args_0?: LiftBlockOptions | undefined) => true | undefined);
841
841
  resetBlock: ((args_0?: {
842
- at?: _platejs_slate0.Path;
842
+ at?: _platejs_slate20.Path;
843
843
  } | undefined) => true | undefined) & ((args_0?: {
844
- at?: _platejs_slate0.Path;
844
+ at?: _platejs_slate20.Path;
845
845
  } | undefined) => true | undefined);
846
- setValue: ((value?: string | _platejs_slate0.Value | undefined) => void) & ((value?: string | _platejs_slate0.Value | undefined) => void);
847
- apply: <N$1 extends _platejs_slate0.TElement | _platejs_slate0.TText>(operation: _platejs_slate0.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;
848
848
  }, {}>> | PlatePlugin<PluginConfig<"dom", {
849
849
  scrollMode?: ScrollMode;
850
850
  scrollOperations?: AutoScrollOperationsMap;
851
- scrollOptions?: _platejs_slate0.ScrollIntoViewOptions;
851
+ scrollOptions?: _platejs_slate20.ScrollIntoViewOptions;
852
852
  }, {
853
853
  isScrolling: () => boolean;
854
854
  }, {
@@ -918,7 +918,7 @@ declare function getPlugin<C extends AnyPluginConfig = PluginConfig>(editor: Pla
918
918
  } ? C : PlatePlugin<C>;
919
919
  //#endregion
920
920
  //#region src/react/plugin/omitPluginContext.d.ts
921
- declare const omitPluginContext: <T extends PlatePluginContext<AnyPlatePlugin>>(ctx: T) => Omit<T, "api" | "editor" | "getOptions" | "type" | "getOption" | "tf" | "setOptions" | "setOption" | "plugin">;
921
+ declare const omitPluginContext: <T extends PlatePluginContext<AnyPlatePlugin>>(ctx: T) => Omit<T, "editor" | "api" | "plugin" | "setOptions" | "tf" | "type" | "getOption" | "getOptions" | "setOption">;
922
922
  //#endregion
923
923
  //#region src/react/plugin/toPlatePlugin.d.ts
924
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'> & {
@@ -1094,11 +1094,11 @@ type ElementRuntimeStore = {
1094
1094
  setState: (nextState: ElementRuntimeState) => void;
1095
1095
  subscribe: (listener: () => void) => () => void;
1096
1096
  };
1097
- declare const elementStore: jotai_x0.StoreApi<ElementStoreState, object, "element">;
1097
+ declare const elementStore: jotai_x98.StoreApi<ElementStoreState, object, "element">;
1098
1098
  declare const withElementContext: <T>(context: Omit<ElementContextValue, "parent">, callback: () => T) => T;
1099
1099
  declare const useElementContext: (scope?: string) => ElementContextValue | null;
1100
1100
  declare const useElementStoreContext: (scope?: string) => ElementStoreContextValue | null;
1101
- declare const useElementStore: (scope?: string) => jotai_x0.ReturnOfUseStoreApi<ElementStoreState, object>;
1101
+ declare const useElementStore: (scope?: string) => jotai_x98.ReturnOfUseStoreApi<ElementStoreState, object>;
1102
1102
  declare function ElementProvider({
1103
1103
  children,
1104
1104
  path,
@@ -1232,26 +1232,26 @@ declare const createPlateStore: <E extends PlateEditor = PlateEditor>({
1232
1232
  onTextChange,
1233
1233
  onValueChange,
1234
1234
  ...state
1235
- }?: Partial<PlateStoreState<E>>) => jotai_x0.AtomStoreApi<PlateStoreState<E>, {
1236
- trackedEditor: jotai0.Atom<{
1235
+ }?: Partial<PlateStoreState<E>>) => jotai_x98.AtomStoreApi<PlateStoreState<E>, {
1236
+ trackedEditor: jotai10.Atom<{
1237
1237
  editor: any;
1238
1238
  version: number | null;
1239
1239
  }>;
1240
- trackedSelection: jotai0.Atom<{
1240
+ trackedSelection: jotai10.Atom<{
1241
1241
  selection: any;
1242
1242
  version: number | null;
1243
1243
  }>;
1244
- trackedValue: jotai0.Atom<{
1244
+ trackedValue: jotai10.Atom<{
1245
1245
  value: any;
1246
1246
  version: number | null;
1247
1247
  }>;
1248
1248
  }, "plate">;
1249
- declare const PlateStoreProvider: React$1.FC<jotai_x0.ProviderProps<{
1249
+ declare const PlateStoreProvider: React$1.FC<jotai_x98.ProviderProps<{
1250
1250
  composing: boolean | null;
1251
1251
  decorate: ((options: {
1252
1252
  editor: PlateEditor;
1253
- entry: _platejs_slate0.NodeEntry;
1254
- }) => _platejs_slate0.TRange[]) | null;
1253
+ entry: _platejs_slate20.NodeEntry;
1254
+ }) => _platejs_slate20.TRange[]) | null;
1255
1255
  isMounted: boolean | null;
1256
1256
  primary: boolean | null;
1257
1257
  readOnly: boolean | null;
@@ -1265,309 +1265,309 @@ declare const PlateStoreProvider: React$1.FC<jotai_x0.ProviderProps<{
1265
1265
  versionValue: number | null;
1266
1266
  onChange: ((options: {
1267
1267
  editor: PlateEditor;
1268
- value: _platejs_slate0.Value;
1268
+ value: _platejs_slate20.Value;
1269
1269
  }) => void) | null;
1270
1270
  onNodeChange: ((options: {
1271
1271
  editor: PlateEditor;
1272
- node: _platejs_slate0.Descendant;
1273
- operation: _platejs_slate0.NodeOperation;
1274
- prevNode: _platejs_slate0.Descendant;
1272
+ node: _platejs_slate20.Descendant;
1273
+ operation: _platejs_slate20.NodeOperation;
1274
+ prevNode: _platejs_slate20.Descendant;
1275
1275
  }) => void) | null;
1276
1276
  onSelectionChange: ((options: {
1277
1277
  editor: PlateEditor;
1278
- selection: _platejs_slate0.TSelection;
1278
+ selection: _platejs_slate20.TSelection;
1279
1279
  }) => void) | null;
1280
1280
  onTextChange: ((options: {
1281
1281
  editor: PlateEditor;
1282
- node: _platejs_slate0.Descendant;
1283
- operation: _platejs_slate0.TextOperation;
1282
+ node: _platejs_slate20.Descendant;
1283
+ operation: _platejs_slate20.TextOperation;
1284
1284
  prevText: string;
1285
1285
  text: string;
1286
1286
  }) => void) | null;
1287
1287
  onValueChange: ((options: {
1288
1288
  editor: PlateEditor;
1289
- value: _platejs_slate0.Value;
1289
+ value: _platejs_slate20.Value;
1290
1290
  }) => void) | null;
1291
1291
  id: string;
1292
1292
  containerRef: React$1.RefObject<HTMLDivElement | null>;
1293
1293
  editor: PlateEditor;
1294
1294
  scrollRef: React$1.RefObject<HTMLDivElement | null>;
1295
- }>>, plateStore: jotai_x0.StoreApi<PlateStoreState<PlateEditor>, {
1296
- trackedEditor: jotai0.Atom<{
1295
+ }>>, plateStore: jotai_x98.StoreApi<PlateStoreState<PlateEditor>, {
1296
+ trackedEditor: jotai10.Atom<{
1297
1297
  editor: any;
1298
1298
  version: number | null;
1299
1299
  }>;
1300
- trackedSelection: jotai0.Atom<{
1300
+ trackedSelection: jotai10.Atom<{
1301
1301
  selection: any;
1302
1302
  version: number | null;
1303
1303
  }>;
1304
- trackedValue: jotai0.Atom<{
1304
+ trackedValue: jotai10.Atom<{
1305
1305
  value: any;
1306
1306
  version: number | null;
1307
1307
  }>;
1308
- }, "plate">, usePlateLocalSet: <K$1 extends "renderElement" | "decorate" | "renderLeaf" | "renderText" | "editor" | "id" | "onChange" | "onNodeChange" | "onTextChange" | "readOnly" | "renderChunk" | "composing" | "isMounted" | "primary" | "versionDecorate" | "versionEditor" | "versionSelection" | "versionValue" | "onSelectionChange" | "onValueChange" | "containerRef" | "scrollRef" | "trackedEditor" | "trackedSelection" | "trackedValue">(key: K$1, options?: string | jotai_x0.UseAtomOptions) => ({
1309
- composing: jotai_x0.SimpleWritableAtom<boolean | null>;
1310
- decorate: jotai_x0.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: {
1311
1311
  editor: PlateEditor;
1312
- entry: _platejs_slate0.NodeEntry;
1313
- }) => _platejs_slate0.TRange[]) | null>;
1314
- isMounted: jotai_x0.SimpleWritableAtom<boolean | null>;
1315
- primary: jotai_x0.SimpleWritableAtom<boolean | null>;
1316
- readOnly: jotai_x0.SimpleWritableAtom<boolean | null>;
1317
- renderChunk: jotai_x0.SimpleWritableAtom<RenderChunkFn | null>;
1318
- renderElement: jotai_x0.SimpleWritableAtom<RenderElementFn | null>;
1319
- renderLeaf: jotai_x0.SimpleWritableAtom<RenderLeafFn | null>;
1320
- renderText: jotai_x0.SimpleWritableAtom<RenderTextFn | null>;
1321
- versionDecorate: jotai_x0.SimpleWritableAtom<number | null>;
1322
- versionEditor: jotai_x0.SimpleWritableAtom<number | null>;
1323
- versionSelection: jotai_x0.SimpleWritableAtom<number | null>;
1324
- versionValue: jotai_x0.SimpleWritableAtom<number | null>;
1325
- onChange: jotai_x0.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: {
1326
1326
  editor: PlateEditor;
1327
- value: _platejs_slate0.Value;
1327
+ value: _platejs_slate20.Value;
1328
1328
  }) => void) | null>;
1329
- onNodeChange: jotai_x0.SimpleWritableAtom<((options: {
1329
+ onNodeChange: jotai_x98.SimpleWritableAtom<((options: {
1330
1330
  editor: PlateEditor;
1331
- node: _platejs_slate0.Descendant;
1332
- operation: _platejs_slate0.NodeOperation;
1333
- prevNode: _platejs_slate0.Descendant;
1331
+ node: _platejs_slate20.Descendant;
1332
+ operation: _platejs_slate20.NodeOperation;
1333
+ prevNode: _platejs_slate20.Descendant;
1334
1334
  }) => void) | null>;
1335
- onSelectionChange: jotai_x0.SimpleWritableAtom<((options: {
1335
+ onSelectionChange: jotai_x98.SimpleWritableAtom<((options: {
1336
1336
  editor: PlateEditor;
1337
- selection: _platejs_slate0.TSelection;
1337
+ selection: _platejs_slate20.TSelection;
1338
1338
  }) => void) | null>;
1339
- onTextChange: jotai_x0.SimpleWritableAtom<((options: {
1339
+ onTextChange: jotai_x98.SimpleWritableAtom<((options: {
1340
1340
  editor: PlateEditor;
1341
- node: _platejs_slate0.Descendant;
1342
- operation: _platejs_slate0.TextOperation;
1341
+ node: _platejs_slate20.Descendant;
1342
+ operation: _platejs_slate20.TextOperation;
1343
1343
  prevText: string;
1344
1344
  text: string;
1345
1345
  }) => void) | null>;
1346
- onValueChange: jotai_x0.SimpleWritableAtom<((options: {
1346
+ onValueChange: jotai_x98.SimpleWritableAtom<((options: {
1347
1347
  editor: PlateEditor;
1348
- value: _platejs_slate0.Value;
1348
+ value: _platejs_slate20.Value;
1349
1349
  }) => void) | null>;
1350
- id: jotai_x0.SimpleWritableAtom<string>;
1351
- containerRef: jotai_x0.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
1352
- editor: jotai_x0.SimpleWritableAtom<PlateEditor>;
1353
- scrollRef: jotai_x0.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>>;
1354
1354
  } & {
1355
- trackedEditor: jotai0.Atom<{
1355
+ trackedEditor: jotai10.Atom<{
1356
1356
  editor: any;
1357
1357
  version: number | null;
1358
1358
  }>;
1359
- trackedSelection: jotai0.Atom<{
1359
+ trackedSelection: jotai10.Atom<{
1360
1360
  selection: any;
1361
1361
  version: number | null;
1362
1362
  }>;
1363
- trackedValue: jotai0.Atom<{
1363
+ trackedValue: jotai10.Atom<{
1364
1364
  value: any;
1365
1365
  version: number | null;
1366
1366
  }>;
1367
- })[K$1] extends jotai0.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" | "renderChunk" | "composing" | "isMounted" | "primary" | "versionDecorate" | "versionEditor" | "versionSelection" | "versionValue" | "onSelectionChange" | "onValueChange" | "containerRef" | "scrollRef" | "trackedEditor" | "trackedSelection" | "trackedValue">(key: K$1, options?: string | jotai_x0.UseAtomOptions) => ({
1368
- composing: jotai_x0.SimpleWritableAtom<boolean | null>;
1369
- decorate: jotai_x0.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: {
1370
1370
  editor: PlateEditor;
1371
- entry: _platejs_slate0.NodeEntry;
1372
- }) => _platejs_slate0.TRange[]) | null>;
1373
- isMounted: jotai_x0.SimpleWritableAtom<boolean | null>;
1374
- primary: jotai_x0.SimpleWritableAtom<boolean | null>;
1375
- readOnly: jotai_x0.SimpleWritableAtom<boolean | null>;
1376
- renderChunk: jotai_x0.SimpleWritableAtom<RenderChunkFn | null>;
1377
- renderElement: jotai_x0.SimpleWritableAtom<RenderElementFn | null>;
1378
- renderLeaf: jotai_x0.SimpleWritableAtom<RenderLeafFn | null>;
1379
- renderText: jotai_x0.SimpleWritableAtom<RenderTextFn | null>;
1380
- versionDecorate: jotai_x0.SimpleWritableAtom<number | null>;
1381
- versionEditor: jotai_x0.SimpleWritableAtom<number | null>;
1382
- versionSelection: jotai_x0.SimpleWritableAtom<number | null>;
1383
- versionValue: jotai_x0.SimpleWritableAtom<number | null>;
1384
- onChange: jotai_x0.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: {
1385
1385
  editor: PlateEditor;
1386
- value: _platejs_slate0.Value;
1386
+ value: _platejs_slate20.Value;
1387
1387
  }) => void) | null>;
1388
- onNodeChange: jotai_x0.SimpleWritableAtom<((options: {
1388
+ onNodeChange: jotai_x98.SimpleWritableAtom<((options: {
1389
1389
  editor: PlateEditor;
1390
- node: _platejs_slate0.Descendant;
1391
- operation: _platejs_slate0.NodeOperation;
1392
- prevNode: _platejs_slate0.Descendant;
1390
+ node: _platejs_slate20.Descendant;
1391
+ operation: _platejs_slate20.NodeOperation;
1392
+ prevNode: _platejs_slate20.Descendant;
1393
1393
  }) => void) | null>;
1394
- onSelectionChange: jotai_x0.SimpleWritableAtom<((options: {
1394
+ onSelectionChange: jotai_x98.SimpleWritableAtom<((options: {
1395
1395
  editor: PlateEditor;
1396
- selection: _platejs_slate0.TSelection;
1396
+ selection: _platejs_slate20.TSelection;
1397
1397
  }) => void) | null>;
1398
- onTextChange: jotai_x0.SimpleWritableAtom<((options: {
1398
+ onTextChange: jotai_x98.SimpleWritableAtom<((options: {
1399
1399
  editor: PlateEditor;
1400
- node: _platejs_slate0.Descendant;
1401
- operation: _platejs_slate0.TextOperation;
1400
+ node: _platejs_slate20.Descendant;
1401
+ operation: _platejs_slate20.TextOperation;
1402
1402
  prevText: string;
1403
1403
  text: string;
1404
1404
  }) => void) | null>;
1405
- onValueChange: jotai_x0.SimpleWritableAtom<((options: {
1405
+ onValueChange: jotai_x98.SimpleWritableAtom<((options: {
1406
1406
  editor: PlateEditor;
1407
- value: _platejs_slate0.Value;
1407
+ value: _platejs_slate20.Value;
1408
1408
  }) => void) | null>;
1409
- id: jotai_x0.SimpleWritableAtom<string>;
1410
- containerRef: jotai_x0.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
1411
- editor: jotai_x0.SimpleWritableAtom<PlateEditor>;
1412
- scrollRef: jotai_x0.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>>;
1413
1413
  } & {
1414
- trackedEditor: jotai0.Atom<{
1414
+ trackedEditor: jotai10.Atom<{
1415
1415
  editor: any;
1416
1416
  version: number | null;
1417
1417
  }>;
1418
- trackedSelection: jotai0.Atom<{
1418
+ trackedSelection: jotai10.Atom<{
1419
1419
  selection: any;
1420
1420
  version: number | null;
1421
1421
  }>;
1422
- trackedValue: jotai0.Atom<{
1422
+ trackedValue: jotai10.Atom<{
1423
1423
  value: any;
1424
1424
  version: number | null;
1425
1425
  }>;
1426
- })[K$1] extends jotai0.WritableAtom<infer V, infer A extends unknown[], infer R> ? [V, (...args: A) => R] : never, usePlateLocalStore: jotai_x0.UseStoreApi<PlateStoreState<PlateEditor>, {
1427
- trackedEditor: jotai0.Atom<{
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>, {
1427
+ trackedEditor: jotai10.Atom<{
1428
1428
  editor: any;
1429
1429
  version: number | null;
1430
1430
  }>;
1431
- trackedSelection: jotai0.Atom<{
1431
+ trackedSelection: jotai10.Atom<{
1432
1432
  selection: any;
1433
1433
  version: number | null;
1434
1434
  }>;
1435
- trackedValue: jotai0.Atom<{
1435
+ trackedValue: jotai10.Atom<{
1436
1436
  value: any;
1437
1437
  version: number | null;
1438
1438
  }>;
1439
- }>, usePlateLocalValue: <K$1 extends "renderElement" | "decorate" | "renderLeaf" | "renderText" | "editor" | "id" | "onChange" | "onNodeChange" | "onTextChange" | "readOnly" | "renderChunk" | "composing" | "isMounted" | "primary" | "versionDecorate" | "versionEditor" | "versionSelection" | "versionValue" | "onSelectionChange" | "onValueChange" | "containerRef" | "scrollRef" | "trackedEditor" | "trackedSelection" | "trackedValue", S = (({
1440
- composing: jotai_x0.SimpleWritableAtom<boolean | null>;
1441
- decorate: jotai_x0.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: {
1442
1442
  editor: PlateEditor;
1443
- entry: _platejs_slate0.NodeEntry;
1444
- }) => _platejs_slate0.TRange[]) | null>;
1445
- isMounted: jotai_x0.SimpleWritableAtom<boolean | null>;
1446
- primary: jotai_x0.SimpleWritableAtom<boolean | null>;
1447
- readOnly: jotai_x0.SimpleWritableAtom<boolean | null>;
1448
- renderChunk: jotai_x0.SimpleWritableAtom<RenderChunkFn | null>;
1449
- renderElement: jotai_x0.SimpleWritableAtom<RenderElementFn | null>;
1450
- renderLeaf: jotai_x0.SimpleWritableAtom<RenderLeafFn | null>;
1451
- renderText: jotai_x0.SimpleWritableAtom<RenderTextFn | null>;
1452
- versionDecorate: jotai_x0.SimpleWritableAtom<number | null>;
1453
- versionEditor: jotai_x0.SimpleWritableAtom<number | null>;
1454
- versionSelection: jotai_x0.SimpleWritableAtom<number | null>;
1455
- versionValue: jotai_x0.SimpleWritableAtom<number | null>;
1456
- onChange: jotai_x0.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: {
1457
1457
  editor: PlateEditor;
1458
- value: _platejs_slate0.Value;
1458
+ value: _platejs_slate20.Value;
1459
1459
  }) => void) | null>;
1460
- onNodeChange: jotai_x0.SimpleWritableAtom<((options: {
1460
+ onNodeChange: jotai_x98.SimpleWritableAtom<((options: {
1461
1461
  editor: PlateEditor;
1462
- node: _platejs_slate0.Descendant;
1463
- operation: _platejs_slate0.NodeOperation;
1464
- prevNode: _platejs_slate0.Descendant;
1462
+ node: _platejs_slate20.Descendant;
1463
+ operation: _platejs_slate20.NodeOperation;
1464
+ prevNode: _platejs_slate20.Descendant;
1465
1465
  }) => void) | null>;
1466
- onSelectionChange: jotai_x0.SimpleWritableAtom<((options: {
1466
+ onSelectionChange: jotai_x98.SimpleWritableAtom<((options: {
1467
1467
  editor: PlateEditor;
1468
- selection: _platejs_slate0.TSelection;
1468
+ selection: _platejs_slate20.TSelection;
1469
1469
  }) => void) | null>;
1470
- onTextChange: jotai_x0.SimpleWritableAtom<((options: {
1470
+ onTextChange: jotai_x98.SimpleWritableAtom<((options: {
1471
1471
  editor: PlateEditor;
1472
- node: _platejs_slate0.Descendant;
1473
- operation: _platejs_slate0.TextOperation;
1472
+ node: _platejs_slate20.Descendant;
1473
+ operation: _platejs_slate20.TextOperation;
1474
1474
  prevText: string;
1475
1475
  text: string;
1476
1476
  }) => void) | null>;
1477
- onValueChange: jotai_x0.SimpleWritableAtom<((options: {
1477
+ onValueChange: jotai_x98.SimpleWritableAtom<((options: {
1478
1478
  editor: PlateEditor;
1479
- value: _platejs_slate0.Value;
1479
+ value: _platejs_slate20.Value;
1480
1480
  }) => void) | null>;
1481
- id: jotai_x0.SimpleWritableAtom<string>;
1482
- containerRef: jotai_x0.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
1483
- editor: jotai_x0.SimpleWritableAtom<PlateEditor>;
1484
- scrollRef: jotai_x0.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>>;
1485
1485
  } & {
1486
- trackedEditor: jotai0.Atom<{
1486
+ trackedEditor: jotai10.Atom<{
1487
1487
  editor: any;
1488
1488
  version: number | null;
1489
1489
  }>;
1490
- trackedSelection: jotai0.Atom<{
1490
+ trackedSelection: jotai10.Atom<{
1491
1491
  selection: any;
1492
1492
  version: number | null;
1493
1493
  }>;
1494
- trackedValue: jotai0.Atom<{
1494
+ trackedValue: jotai10.Atom<{
1495
1495
  value: any;
1496
1496
  version: number | null;
1497
1497
  }>;
1498
- })[K$1] extends jotai0.Atom<infer V> ? V : never)>(key: K$1, options?: ({
1498
+ })[K$1] extends jotai10.Atom<infer V> ? V : never)>(key: K$1, options?: ({
1499
1499
  selector?: ((v: ({
1500
- composing: jotai_x0.SimpleWritableAtom<boolean | null>;
1501
- decorate: jotai_x0.SimpleWritableAtom<((options: {
1500
+ composing: jotai_x98.SimpleWritableAtom<boolean | null>;
1501
+ decorate: jotai_x98.SimpleWritableAtom<((options: {
1502
1502
  editor: PlateEditor;
1503
- entry: _platejs_slate0.NodeEntry;
1504
- }) => _platejs_slate0.TRange[]) | null>;
1505
- isMounted: jotai_x0.SimpleWritableAtom<boolean | null>;
1506
- primary: jotai_x0.SimpleWritableAtom<boolean | null>;
1507
- readOnly: jotai_x0.SimpleWritableAtom<boolean | null>;
1508
- renderChunk: jotai_x0.SimpleWritableAtom<RenderChunkFn | null>;
1509
- renderElement: jotai_x0.SimpleWritableAtom<RenderElementFn | null>;
1510
- renderLeaf: jotai_x0.SimpleWritableAtom<RenderLeafFn | null>;
1511
- renderText: jotai_x0.SimpleWritableAtom<RenderTextFn | null>;
1512
- versionDecorate: jotai_x0.SimpleWritableAtom<number | null>;
1513
- versionEditor: jotai_x0.SimpleWritableAtom<number | null>;
1514
- versionSelection: jotai_x0.SimpleWritableAtom<number | null>;
1515
- versionValue: jotai_x0.SimpleWritableAtom<number | null>;
1516
- onChange: jotai_x0.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: {
1517
1517
  editor: PlateEditor;
1518
- value: _platejs_slate0.Value;
1518
+ value: _platejs_slate20.Value;
1519
1519
  }) => void) | null>;
1520
- onNodeChange: jotai_x0.SimpleWritableAtom<((options: {
1520
+ onNodeChange: jotai_x98.SimpleWritableAtom<((options: {
1521
1521
  editor: PlateEditor;
1522
- node: _platejs_slate0.Descendant;
1523
- operation: _platejs_slate0.NodeOperation;
1524
- prevNode: _platejs_slate0.Descendant;
1522
+ node: _platejs_slate20.Descendant;
1523
+ operation: _platejs_slate20.NodeOperation;
1524
+ prevNode: _platejs_slate20.Descendant;
1525
1525
  }) => void) | null>;
1526
- onSelectionChange: jotai_x0.SimpleWritableAtom<((options: {
1526
+ onSelectionChange: jotai_x98.SimpleWritableAtom<((options: {
1527
1527
  editor: PlateEditor;
1528
- selection: _platejs_slate0.TSelection;
1528
+ selection: _platejs_slate20.TSelection;
1529
1529
  }) => void) | null>;
1530
- onTextChange: jotai_x0.SimpleWritableAtom<((options: {
1530
+ onTextChange: jotai_x98.SimpleWritableAtom<((options: {
1531
1531
  editor: PlateEditor;
1532
- node: _platejs_slate0.Descendant;
1533
- operation: _platejs_slate0.TextOperation;
1532
+ node: _platejs_slate20.Descendant;
1533
+ operation: _platejs_slate20.TextOperation;
1534
1534
  prevText: string;
1535
1535
  text: string;
1536
1536
  }) => void) | null>;
1537
- onValueChange: jotai_x0.SimpleWritableAtom<((options: {
1537
+ onValueChange: jotai_x98.SimpleWritableAtom<((options: {
1538
1538
  editor: PlateEditor;
1539
- value: _platejs_slate0.Value;
1539
+ value: _platejs_slate20.Value;
1540
1540
  }) => void) | null>;
1541
- id: jotai_x0.SimpleWritableAtom<string>;
1542
- containerRef: jotai_x0.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
1543
- editor: jotai_x0.SimpleWritableAtom<PlateEditor>;
1544
- scrollRef: jotai_x0.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>>;
1545
1545
  } & {
1546
- trackedEditor: jotai0.Atom<{
1546
+ trackedEditor: jotai10.Atom<{
1547
1547
  editor: any;
1548
1548
  version: number | null;
1549
1549
  }>;
1550
- trackedSelection: jotai0.Atom<{
1550
+ trackedSelection: jotai10.Atom<{
1551
1551
  selection: any;
1552
1552
  version: number | null;
1553
1553
  }>;
1554
- trackedValue: jotai0.Atom<{
1554
+ trackedValue: jotai10.Atom<{
1555
1555
  value: any;
1556
1556
  version: number | null;
1557
1557
  }>;
1558
- })[K$1] extends jotai0.Atom<infer V_1> ? V_1 : never, prevSelectorOutput?: S | undefined) => S) | undefined;
1558
+ })[K$1] extends jotai10.Atom<infer V_1> ? V_1 : never, prevSelectorOutput?: S | undefined) => S) | undefined;
1559
1559
  equalityFn?: ((prev: S, next: S) => boolean) | undefined;
1560
- } & jotai_x0.UseAtomOptions) | undefined, deps?: unknown[]) => S;
1561
- declare const usePlateStore: (id?: string) => jotai_x0.ReturnOfUseStoreApi<PlateStoreState<PlateEditor>, {
1562
- trackedEditor: jotai0.Atom<{
1560
+ } & jotai_x98.UseAtomOptions) | undefined, deps?: unknown[]) => S;
1561
+ declare const usePlateStore: (id?: string) => jotai_x98.ReturnOfUseStoreApi<PlateStoreState<PlateEditor>, {
1562
+ trackedEditor: jotai10.Atom<{
1563
1563
  editor: any;
1564
1564
  version: number | null;
1565
1565
  }>;
1566
- trackedSelection: jotai0.Atom<{
1566
+ trackedSelection: jotai10.Atom<{
1567
1567
  selection: any;
1568
1568
  version: number | null;
1569
1569
  }>;
1570
- trackedValue: jotai0.Atom<{
1570
+ trackedValue: jotai10.Atom<{
1571
1571
  value: any;
1572
1572
  version: number | null;
1573
1573
  }>;
@@ -1664,11 +1664,11 @@ declare function useEditorPluginOptions<C extends AnyPluginConfig, U>(editor: Pl
1664
1664
  }): U;
1665
1665
  //#endregion
1666
1666
  //#region src/react/stores/plate-controller/plateControllerStore.d.ts
1667
- declare const PlateController: React$1.FC<jotai_x0.ProviderProps<{
1667
+ declare const PlateController: React$1.FC<jotai_x98.ProviderProps<{
1668
1668
  activeId: string | null;
1669
1669
  editorStores: Record<string, ({
1670
1670
  get: <Value$1>(atom: Atom<Value$1>) => Value$1;
1671
- set: <Value$1, Args extends unknown[], Result>(atom: jotai0.WritableAtom<Value$1, Args, Result>, ...args: Args) => Result;
1671
+ set: <Value$1, Args extends unknown[], Result>(atom: jotai10.WritableAtom<Value$1, Args, Result>, ...args: Args) => Result;
1672
1672
  sub: (atom: Atom<unknown>, listener: () => void) => () => void;
1673
1673
  } & Partial<{
1674
1674
  dev_subscribe_store: (l: (action: {
@@ -1706,13 +1706,13 @@ declare const PlateController: React$1.FC<jotai_x0.ProviderProps<{
1706
1706
  dev_restore_atoms: (values: Iterable<readonly [Atom<unknown>, unknown]>) => void;
1707
1707
  }>) | null>;
1708
1708
  primaryEditorIds: string[];
1709
- }>>, plateControllerStore: jotai_x0.StoreApi<{
1710
- activeId: jotai0.PrimitiveAtom<string | null> & {
1709
+ }>>, plateControllerStore: jotai_x98.StoreApi<{
1710
+ activeId: jotai10.PrimitiveAtom<string | null> & {
1711
1711
  init: string | null;
1712
1712
  };
1713
- editorStores: jotai0.PrimitiveAtom<Record<string, ({
1713
+ editorStores: jotai10.PrimitiveAtom<Record<string, ({
1714
1714
  get: <Value$1>(atom: Atom<Value$1>) => Value$1;
1715
- set: <Value$1, Args extends unknown[], Result>(atom: jotai0.WritableAtom<Value$1, Args, Result>, ...args: Args) => Result;
1715
+ set: <Value$1, Args extends unknown[], Result>(atom: jotai10.WritableAtom<Value$1, Args, Result>, ...args: Args) => Result;
1716
1716
  sub: (atom: Atom<unknown>, listener: () => void) => () => void;
1717
1717
  } & Partial<{
1718
1718
  dev_subscribe_store: (l: (action: {
@@ -1751,7 +1751,7 @@ declare const PlateController: React$1.FC<jotai_x0.ProviderProps<{
1751
1751
  }>) | null>> & {
1752
1752
  init: Record<string, ({
1753
1753
  get: <Value$1>(atom: Atom<Value$1>) => Value$1;
1754
- set: <Value$1, Args extends unknown[], Result>(atom: jotai0.WritableAtom<Value$1, Args, Result>, ...args: Args) => Result;
1754
+ set: <Value$1, Args extends unknown[], Result>(atom: jotai10.WritableAtom<Value$1, Args, Result>, ...args: Args) => Result;
1755
1755
  sub: (atom: Atom<unknown>, listener: () => void) => () => void;
1756
1756
  } & Partial<{
1757
1757
  dev_subscribe_store: (l: (action: {
@@ -1789,16 +1789,16 @@ declare const PlateController: React$1.FC<jotai_x0.ProviderProps<{
1789
1789
  dev_restore_atoms: (values: Iterable<readonly [Atom<unknown>, unknown]>) => void;
1790
1790
  }>) | null>;
1791
1791
  };
1792
- primaryEditorIds: jotai0.PrimitiveAtom<string[]> & {
1792
+ primaryEditorIds: jotai10.PrimitiveAtom<string[]> & {
1793
1793
  init: string[];
1794
1794
  };
1795
- }, object, "plateController">, _usePlateControllerStore: jotai_x0.UseStoreApi<{
1796
- activeId: jotai0.PrimitiveAtom<string | null> & {
1795
+ }, object, "plateController">, _usePlateControllerStore: jotai_x98.UseStoreApi<{
1796
+ activeId: jotai10.PrimitiveAtom<string | null> & {
1797
1797
  init: string | null;
1798
1798
  };
1799
- editorStores: jotai0.PrimitiveAtom<Record<string, ({
1799
+ editorStores: jotai10.PrimitiveAtom<Record<string, ({
1800
1800
  get: <Value$1>(atom: Atom<Value$1>) => Value$1;
1801
- set: <Value$1, Args extends unknown[], Result>(atom: jotai0.WritableAtom<Value$1, Args, Result>, ...args: Args) => Result;
1801
+ set: <Value$1, Args extends unknown[], Result>(atom: jotai10.WritableAtom<Value$1, Args, Result>, ...args: Args) => Result;
1802
1802
  sub: (atom: Atom<unknown>, listener: () => void) => () => void;
1803
1803
  } & Partial<{
1804
1804
  dev_subscribe_store: (l: (action: {
@@ -1837,7 +1837,7 @@ declare const PlateController: React$1.FC<jotai_x0.ProviderProps<{
1837
1837
  }>) | null>> & {
1838
1838
  init: Record<string, ({
1839
1839
  get: <Value$1>(atom: Atom<Value$1>) => Value$1;
1840
- set: <Value$1, Args extends unknown[], Result>(atom: jotai0.WritableAtom<Value$1, Args, Result>, ...args: Args) => Result;
1840
+ set: <Value$1, Args extends unknown[], Result>(atom: jotai10.WritableAtom<Value$1, Args, Result>, ...args: Args) => Result;
1841
1841
  sub: (atom: Atom<unknown>, listener: () => void) => () => void;
1842
1842
  } & Partial<{
1843
1843
  dev_subscribe_store: (l: (action: {
@@ -1875,7 +1875,7 @@ declare const PlateController: React$1.FC<jotai_x0.ProviderProps<{
1875
1875
  dev_restore_atoms: (values: Iterable<readonly [Atom<unknown>, unknown]>) => void;
1876
1876
  }>) | null>;
1877
1877
  };
1878
- primaryEditorIds: jotai0.PrimitiveAtom<string[]> & {
1878
+ primaryEditorIds: jotai10.PrimitiveAtom<string[]> & {
1879
1879
  init: string[];
1880
1880
  };
1881
1881
  }, object>;
@@ -1994,7 +1994,7 @@ declare const useEditableProps: ({
1994
1994
  * if another node is updated in a way that affects this node's path, this hook
1995
1995
  * will not return the new path.
1996
1996
  */
1997
- declare const useNodePath: (node: TNode) => _platejs_slate0.Path | undefined;
1997
+ declare const useNodePath: (node: TNode) => _platejs_slate20.Path | undefined;
1998
1998
  //#endregion
1999
1999
  //#region src/react/hooks/useSlateProps.d.ts
2000
2000
  type SlateComponentProps = Omit<React$1.ComponentProps<typeof Slate>, 'children'>;
@@ -2009,7 +2009,7 @@ declare const useSlateProps: ({
2009
2009
  }) => PlateSlateProps;
2010
2010
  //#endregion
2011
2011
  //#region src/react/utils/createPlateFallbackEditor.d.ts
2012
- declare const createPlateFallbackEditor: (options?: CreatePlateEditorOptions) => TPlateEditor<_platejs_slate0.Value, PlateCorePlugin>;
2012
+ declare const createPlateFallbackEditor: (options?: CreatePlateEditorOptions) => TPlateEditor<_platejs_slate20.Value, PlateCorePlugin>;
2013
2013
  //#endregion
2014
2014
  //#region src/react/utils/dom-attributes.d.ts
2015
2015
  declare const DOM_HANDLERS: (keyof DOMHandlers)[];
@@ -1,6 +1,6 @@
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-pfxNb3FA.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-C-jR24Fx.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";
@@ -1,2 +1,2 @@
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-ClAE30YQ";
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-pfxNb3FA.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-C-jR24Fx.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 { 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-pfxNb3FA.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";
@@ -2795,7 +2795,7 @@ const withNodeId = ({ editor, getOptions, tf: { apply, insertNode, insertNodes }
2795
2795
  if (entryNode[idKey] === void 0) Object.assign(entryNode, idPropsCreator());
2796
2796
  if (!disableInsertOverrides && isDefined(entryNode._id)) {
2797
2797
  const id = entryNode._id;
2798
- entryNode._id = void 0;
2798
+ delete entryNode._id;
2799
2799
  if (!hasIdInEditor(id)) entryNode[idKey] = id;
2800
2800
  }
2801
2801
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lofcz/platejs-core",
3
- "version": "53.2.1",
3
+ "version": "53.2.4",
4
4
  "description": "The core of Plate – a plugin system for slate",
5
5
  "keywords": [
6
6
  "contentEditable",