@lofcz/platejs-core 53.2.4 → 53.3.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_slate1 from "@platejs/slate";
1
+ import * as _platejs_slate18 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_slate1.ScrollIntoViewOptions;
203
+ scrollOptions?: _platejs_slate18.ScrollIntoViewOptions;
204
204
  }, {
205
- getFragment: () => _platejs_slate1.Descendant[];
205
+ getFragment: () => _platejs_slate18.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_slate1.ScrollIntoViewOptions;
215
+ scrollOptions?: _platejs_slate18.ScrollIntoViewOptions;
216
216
  }, {
217
- getFragment: () => _platejs_slate1.Descendant[];
217
+ getFragment: () => _platejs_slate18.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_slate1.Path;
1009
+ at?: _platejs_slate18.Path;
1010
1010
  } | undefined) => true | undefined) & ((args_0?: {
1011
- at?: _platejs_slate1.Path;
1011
+ at?: _platejs_slate18.Path;
1012
1012
  } | undefined) => true | undefined);
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;
1013
+ setValue: ((value?: string | _platejs_slate18.Value | undefined) => void) & ((value?: string | _platejs_slate18.Value | undefined) => void);
1014
+ apply: <N$1 extends TElement | TText>(operation: _platejs_slate18.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_slate1.Path) => boolean;
1120
+ isTarget: (path: _platejs_slate18.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_slate1.Descendant;
1413
- operation: _platejs_slate1.NodeOperation;
1414
- prevNode: _platejs_slate1.Descendant;
1412
+ node: _platejs_slate18.Descendant;
1413
+ operation: _platejs_slate18.NodeOperation;
1414
+ prevNode: _platejs_slate18.Descendant;
1415
1415
  }) => void;
1416
1416
  onTextChange: (options: {
1417
1417
  editor: SlateEditor;
1418
- node: _platejs_slate1.Descendant;
1419
- operation: _platejs_slate1.TextOperation;
1418
+ node: _platejs_slate18.Descendant;
1419
+ operation: _platejs_slate18.TextOperation;
1420
1420
  prevText: string;
1421
1421
  text: string;
1422
1422
  }) => void;
1423
1423
  }, {
1424
- isElementStateEmpty: (element: _platejs_slate1.TElement) => boolean;
1424
+ isElementStateEmpty: (element: _platejs_slate18.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_slate1.Path;
1431
+ at?: _platejs_slate18.Path;
1432
1432
  } | undefined) => true | undefined) & ((args_0?: {
1433
- at?: _platejs_slate1.Path;
1433
+ at?: _platejs_slate18.Path;
1434
1434
  } | undefined) => true | undefined);
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;
1435
+ setValue: ((value?: string | _platejs_slate18.Value | undefined) => void) & ((value?: string | _platejs_slate18.Value | undefined) => void);
1436
+ apply: <N$1 extends _platejs_slate18.TElement | _platejs_slate18.TText>(operation: _platejs_slate18.Operation<N$1>) => void;
1437
1437
  }, {}>> | SlatePlugin<PluginConfig<"dom", {
1438
1438
  scrollMode?: ScrollMode;
1439
1439
  scrollOperations?: AutoScrollOperationsMap;
1440
- scrollOptions?: _platejs_slate1.ScrollIntoViewOptions;
1440
+ scrollOptions?: _platejs_slate18.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_slate1.Path) => boolean;
1452
+ isTarget: (path: _platejs_slate18.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_slate1.Descendant[];
1465
+ }) => _platejs_slate18.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_slate1.QueryNodeOptions, {}, {
1481
+ } & _platejs_slate18.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_slate1.Descendant[];
1521
+ }) => _platejs_slate18.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, "editor" | "api" | "plugin" | "setOptions" | "tf" | "type" | "getOption" | "getOptions" | "setOption">;
3108
+ declare const omitPluginContext: <T extends SlatePluginContext<AnySlatePlugin>>(ctx: T) => Omit<T, "api" | "editor" | "getOptions" | "type" | "getOption" | "tf" | "setOptions" | "setOption" | "plugin">;
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-fS5ruWhD";
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-C493x5bm";
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 };
@@ -1,4 +1,4 @@
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";
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-C493x5bm";
2
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";
@@ -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_x98 from "jotai-x";
10
+ import * as jotai_x2 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";
@@ -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, "editor" | "api" | "plugin" | "setOptions" | "tf" | "type" | "getOption" | "getOptions" | "setOption">;
921
+ declare const omitPluginContext: <T extends PlatePluginContext<AnyPlatePlugin>>(ctx: T) => Omit<T, "api" | "editor" | "getOptions" | "type" | "getOption" | "tf" | "setOptions" | "setOption" | "plugin">;
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_x98.StoreApi<ElementStoreState, object, "element">;
1097
+ declare const elementStore: jotai_x2.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_x98.ReturnOfUseStoreApi<ElementStoreState, object>;
1101
+ declare const useElementStore: (scope?: string) => jotai_x2.ReturnOfUseStoreApi<ElementStoreState, object>;
1102
1102
  declare function ElementProvider({
1103
1103
  children,
1104
1104
  path,
@@ -1232,7 +1232,7 @@ declare const createPlateStore: <E extends PlateEditor = PlateEditor>({
1232
1232
  onTextChange,
1233
1233
  onValueChange,
1234
1234
  ...state
1235
- }?: Partial<PlateStoreState<E>>) => jotai_x98.AtomStoreApi<PlateStoreState<E>, {
1235
+ }?: Partial<PlateStoreState<E>>) => jotai_x2.AtomStoreApi<PlateStoreState<E>, {
1236
1236
  trackedEditor: jotai10.Atom<{
1237
1237
  editor: any;
1238
1238
  version: number | null;
@@ -1246,7 +1246,7 @@ declare const createPlateStore: <E extends PlateEditor = PlateEditor>({
1246
1246
  version: number | null;
1247
1247
  }>;
1248
1248
  }, "plate">;
1249
- declare const PlateStoreProvider: React$1.FC<jotai_x98.ProviderProps<{
1249
+ declare const PlateStoreProvider: React$1.FC<jotai_x2.ProviderProps<{
1250
1250
  composing: boolean | null;
1251
1251
  decorate: ((options: {
1252
1252
  editor: PlateEditor;
@@ -1292,7 +1292,7 @@ declare const PlateStoreProvider: React$1.FC<jotai_x98.ProviderProps<{
1292
1292
  containerRef: React$1.RefObject<HTMLDivElement | null>;
1293
1293
  editor: PlateEditor;
1294
1294
  scrollRef: React$1.RefObject<HTMLDivElement | null>;
1295
- }>>, plateStore: jotai_x98.StoreApi<PlateStoreState<PlateEditor>, {
1295
+ }>>, plateStore: jotai_x2.StoreApi<PlateStoreState<PlateEditor>, {
1296
1296
  trackedEditor: jotai10.Atom<{
1297
1297
  editor: any;
1298
1298
  version: number | null;
@@ -1305,52 +1305,52 @@ declare const PlateStoreProvider: React$1.FC<jotai_x98.ProviderProps<{
1305
1305
  value: any;
1306
1306
  version: number | null;
1307
1307
  }>;
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: {
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_x2.UseAtomOptions) => ({
1309
+ composing: jotai_x2.SimpleWritableAtom<boolean | null>;
1310
+ decorate: jotai_x2.SimpleWritableAtom<((options: {
1311
1311
  editor: PlateEditor;
1312
1312
  entry: _platejs_slate20.NodeEntry;
1313
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: {
1314
+ isMounted: jotai_x2.SimpleWritableAtom<boolean | null>;
1315
+ primary: jotai_x2.SimpleWritableAtom<boolean | null>;
1316
+ readOnly: jotai_x2.SimpleWritableAtom<boolean | null>;
1317
+ renderChunk: jotai_x2.SimpleWritableAtom<RenderChunkFn | null>;
1318
+ renderElement: jotai_x2.SimpleWritableAtom<RenderElementFn | null>;
1319
+ renderLeaf: jotai_x2.SimpleWritableAtom<RenderLeafFn | null>;
1320
+ renderText: jotai_x2.SimpleWritableAtom<RenderTextFn | null>;
1321
+ versionDecorate: jotai_x2.SimpleWritableAtom<number | null>;
1322
+ versionEditor: jotai_x2.SimpleWritableAtom<number | null>;
1323
+ versionSelection: jotai_x2.SimpleWritableAtom<number | null>;
1324
+ versionValue: jotai_x2.SimpleWritableAtom<number | null>;
1325
+ onChange: jotai_x2.SimpleWritableAtom<((options: {
1326
1326
  editor: PlateEditor;
1327
1327
  value: _platejs_slate20.Value;
1328
1328
  }) => void) | null>;
1329
- onNodeChange: jotai_x98.SimpleWritableAtom<((options: {
1329
+ onNodeChange: jotai_x2.SimpleWritableAtom<((options: {
1330
1330
  editor: PlateEditor;
1331
1331
  node: _platejs_slate20.Descendant;
1332
1332
  operation: _platejs_slate20.NodeOperation;
1333
1333
  prevNode: _platejs_slate20.Descendant;
1334
1334
  }) => void) | null>;
1335
- onSelectionChange: jotai_x98.SimpleWritableAtom<((options: {
1335
+ onSelectionChange: jotai_x2.SimpleWritableAtom<((options: {
1336
1336
  editor: PlateEditor;
1337
1337
  selection: _platejs_slate20.TSelection;
1338
1338
  }) => void) | null>;
1339
- onTextChange: jotai_x98.SimpleWritableAtom<((options: {
1339
+ onTextChange: jotai_x2.SimpleWritableAtom<((options: {
1340
1340
  editor: PlateEditor;
1341
1341
  node: _platejs_slate20.Descendant;
1342
1342
  operation: _platejs_slate20.TextOperation;
1343
1343
  prevText: string;
1344
1344
  text: string;
1345
1345
  }) => void) | null>;
1346
- onValueChange: jotai_x98.SimpleWritableAtom<((options: {
1346
+ onValueChange: jotai_x2.SimpleWritableAtom<((options: {
1347
1347
  editor: PlateEditor;
1348
1348
  value: _platejs_slate20.Value;
1349
1349
  }) => void) | 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>>;
1350
+ id: jotai_x2.SimpleWritableAtom<string>;
1351
+ containerRef: jotai_x2.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
1352
+ editor: jotai_x2.SimpleWritableAtom<PlateEditor>;
1353
+ scrollRef: jotai_x2.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
1354
1354
  } & {
1355
1355
  trackedEditor: jotai10.Atom<{
1356
1356
  editor: any;
@@ -1364,52 +1364,52 @@ declare const PlateStoreProvider: React$1.FC<jotai_x98.ProviderProps<{
1364
1364
  value: any;
1365
1365
  version: number | null;
1366
1366
  }>;
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: {
1367
+ })[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" | "renderChunk" | "composing" | "isMounted" | "primary" | "versionDecorate" | "versionEditor" | "versionSelection" | "versionValue" | "onSelectionChange" | "onValueChange" | "containerRef" | "scrollRef" | "trackedEditor" | "trackedSelection" | "trackedValue">(key: K$1, options?: string | jotai_x2.UseAtomOptions) => ({
1368
+ composing: jotai_x2.SimpleWritableAtom<boolean | null>;
1369
+ decorate: jotai_x2.SimpleWritableAtom<((options: {
1370
1370
  editor: PlateEditor;
1371
1371
  entry: _platejs_slate20.NodeEntry;
1372
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: {
1373
+ isMounted: jotai_x2.SimpleWritableAtom<boolean | null>;
1374
+ primary: jotai_x2.SimpleWritableAtom<boolean | null>;
1375
+ readOnly: jotai_x2.SimpleWritableAtom<boolean | null>;
1376
+ renderChunk: jotai_x2.SimpleWritableAtom<RenderChunkFn | null>;
1377
+ renderElement: jotai_x2.SimpleWritableAtom<RenderElementFn | null>;
1378
+ renderLeaf: jotai_x2.SimpleWritableAtom<RenderLeafFn | null>;
1379
+ renderText: jotai_x2.SimpleWritableAtom<RenderTextFn | null>;
1380
+ versionDecorate: jotai_x2.SimpleWritableAtom<number | null>;
1381
+ versionEditor: jotai_x2.SimpleWritableAtom<number | null>;
1382
+ versionSelection: jotai_x2.SimpleWritableAtom<number | null>;
1383
+ versionValue: jotai_x2.SimpleWritableAtom<number | null>;
1384
+ onChange: jotai_x2.SimpleWritableAtom<((options: {
1385
1385
  editor: PlateEditor;
1386
1386
  value: _platejs_slate20.Value;
1387
1387
  }) => void) | null>;
1388
- onNodeChange: jotai_x98.SimpleWritableAtom<((options: {
1388
+ onNodeChange: jotai_x2.SimpleWritableAtom<((options: {
1389
1389
  editor: PlateEditor;
1390
1390
  node: _platejs_slate20.Descendant;
1391
1391
  operation: _platejs_slate20.NodeOperation;
1392
1392
  prevNode: _platejs_slate20.Descendant;
1393
1393
  }) => void) | null>;
1394
- onSelectionChange: jotai_x98.SimpleWritableAtom<((options: {
1394
+ onSelectionChange: jotai_x2.SimpleWritableAtom<((options: {
1395
1395
  editor: PlateEditor;
1396
1396
  selection: _platejs_slate20.TSelection;
1397
1397
  }) => void) | null>;
1398
- onTextChange: jotai_x98.SimpleWritableAtom<((options: {
1398
+ onTextChange: jotai_x2.SimpleWritableAtom<((options: {
1399
1399
  editor: PlateEditor;
1400
1400
  node: _platejs_slate20.Descendant;
1401
1401
  operation: _platejs_slate20.TextOperation;
1402
1402
  prevText: string;
1403
1403
  text: string;
1404
1404
  }) => void) | null>;
1405
- onValueChange: jotai_x98.SimpleWritableAtom<((options: {
1405
+ onValueChange: jotai_x2.SimpleWritableAtom<((options: {
1406
1406
  editor: PlateEditor;
1407
1407
  value: _platejs_slate20.Value;
1408
1408
  }) => void) | 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>>;
1409
+ id: jotai_x2.SimpleWritableAtom<string>;
1410
+ containerRef: jotai_x2.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
1411
+ editor: jotai_x2.SimpleWritableAtom<PlateEditor>;
1412
+ scrollRef: jotai_x2.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
1413
1413
  } & {
1414
1414
  trackedEditor: jotai10.Atom<{
1415
1415
  editor: any;
@@ -1423,7 +1423,7 @@ declare const PlateStoreProvider: React$1.FC<jotai_x98.ProviderProps<{
1423
1423
  value: any;
1424
1424
  version: number | null;
1425
1425
  }>;
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>, {
1426
+ })[K$1] extends jotai10.WritableAtom<infer V, infer A extends unknown[], infer R> ? [V, (...args: A) => R] : never, usePlateLocalStore: jotai_x2.UseStoreApi<PlateStoreState<PlateEditor>, {
1427
1427
  trackedEditor: jotai10.Atom<{
1428
1428
  editor: any;
1429
1429
  version: number | null;
@@ -1436,52 +1436,52 @@ declare const PlateStoreProvider: React$1.FC<jotai_x98.ProviderProps<{
1436
1436
  value: any;
1437
1437
  version: number | null;
1438
1438
  }>;
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: {
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_x2.SimpleWritableAtom<boolean | null>;
1441
+ decorate: jotai_x2.SimpleWritableAtom<((options: {
1442
1442
  editor: PlateEditor;
1443
1443
  entry: _platejs_slate20.NodeEntry;
1444
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: {
1445
+ isMounted: jotai_x2.SimpleWritableAtom<boolean | null>;
1446
+ primary: jotai_x2.SimpleWritableAtom<boolean | null>;
1447
+ readOnly: jotai_x2.SimpleWritableAtom<boolean | null>;
1448
+ renderChunk: jotai_x2.SimpleWritableAtom<RenderChunkFn | null>;
1449
+ renderElement: jotai_x2.SimpleWritableAtom<RenderElementFn | null>;
1450
+ renderLeaf: jotai_x2.SimpleWritableAtom<RenderLeafFn | null>;
1451
+ renderText: jotai_x2.SimpleWritableAtom<RenderTextFn | null>;
1452
+ versionDecorate: jotai_x2.SimpleWritableAtom<number | null>;
1453
+ versionEditor: jotai_x2.SimpleWritableAtom<number | null>;
1454
+ versionSelection: jotai_x2.SimpleWritableAtom<number | null>;
1455
+ versionValue: jotai_x2.SimpleWritableAtom<number | null>;
1456
+ onChange: jotai_x2.SimpleWritableAtom<((options: {
1457
1457
  editor: PlateEditor;
1458
1458
  value: _platejs_slate20.Value;
1459
1459
  }) => void) | null>;
1460
- onNodeChange: jotai_x98.SimpleWritableAtom<((options: {
1460
+ onNodeChange: jotai_x2.SimpleWritableAtom<((options: {
1461
1461
  editor: PlateEditor;
1462
1462
  node: _platejs_slate20.Descendant;
1463
1463
  operation: _platejs_slate20.NodeOperation;
1464
1464
  prevNode: _platejs_slate20.Descendant;
1465
1465
  }) => void) | null>;
1466
- onSelectionChange: jotai_x98.SimpleWritableAtom<((options: {
1466
+ onSelectionChange: jotai_x2.SimpleWritableAtom<((options: {
1467
1467
  editor: PlateEditor;
1468
1468
  selection: _platejs_slate20.TSelection;
1469
1469
  }) => void) | null>;
1470
- onTextChange: jotai_x98.SimpleWritableAtom<((options: {
1470
+ onTextChange: jotai_x2.SimpleWritableAtom<((options: {
1471
1471
  editor: PlateEditor;
1472
1472
  node: _platejs_slate20.Descendant;
1473
1473
  operation: _platejs_slate20.TextOperation;
1474
1474
  prevText: string;
1475
1475
  text: string;
1476
1476
  }) => void) | null>;
1477
- onValueChange: jotai_x98.SimpleWritableAtom<((options: {
1477
+ onValueChange: jotai_x2.SimpleWritableAtom<((options: {
1478
1478
  editor: PlateEditor;
1479
1479
  value: _platejs_slate20.Value;
1480
1480
  }) => void) | 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>>;
1481
+ id: jotai_x2.SimpleWritableAtom<string>;
1482
+ containerRef: jotai_x2.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
1483
+ editor: jotai_x2.SimpleWritableAtom<PlateEditor>;
1484
+ scrollRef: jotai_x2.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
1485
1485
  } & {
1486
1486
  trackedEditor: jotai10.Atom<{
1487
1487
  editor: any;
@@ -1497,51 +1497,51 @@ declare const PlateStoreProvider: React$1.FC<jotai_x98.ProviderProps<{
1497
1497
  }>;
1498
1498
  })[K$1] extends jotai10.Atom<infer V> ? V : never)>(key: K$1, options?: ({
1499
1499
  selector?: ((v: ({
1500
- composing: jotai_x98.SimpleWritableAtom<boolean | null>;
1501
- decorate: jotai_x98.SimpleWritableAtom<((options: {
1500
+ composing: jotai_x2.SimpleWritableAtom<boolean | null>;
1501
+ decorate: jotai_x2.SimpleWritableAtom<((options: {
1502
1502
  editor: PlateEditor;
1503
1503
  entry: _platejs_slate20.NodeEntry;
1504
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: {
1505
+ isMounted: jotai_x2.SimpleWritableAtom<boolean | null>;
1506
+ primary: jotai_x2.SimpleWritableAtom<boolean | null>;
1507
+ readOnly: jotai_x2.SimpleWritableAtom<boolean | null>;
1508
+ renderChunk: jotai_x2.SimpleWritableAtom<RenderChunkFn | null>;
1509
+ renderElement: jotai_x2.SimpleWritableAtom<RenderElementFn | null>;
1510
+ renderLeaf: jotai_x2.SimpleWritableAtom<RenderLeafFn | null>;
1511
+ renderText: jotai_x2.SimpleWritableAtom<RenderTextFn | null>;
1512
+ versionDecorate: jotai_x2.SimpleWritableAtom<number | null>;
1513
+ versionEditor: jotai_x2.SimpleWritableAtom<number | null>;
1514
+ versionSelection: jotai_x2.SimpleWritableAtom<number | null>;
1515
+ versionValue: jotai_x2.SimpleWritableAtom<number | null>;
1516
+ onChange: jotai_x2.SimpleWritableAtom<((options: {
1517
1517
  editor: PlateEditor;
1518
1518
  value: _platejs_slate20.Value;
1519
1519
  }) => void) | null>;
1520
- onNodeChange: jotai_x98.SimpleWritableAtom<((options: {
1520
+ onNodeChange: jotai_x2.SimpleWritableAtom<((options: {
1521
1521
  editor: PlateEditor;
1522
1522
  node: _platejs_slate20.Descendant;
1523
1523
  operation: _platejs_slate20.NodeOperation;
1524
1524
  prevNode: _platejs_slate20.Descendant;
1525
1525
  }) => void) | null>;
1526
- onSelectionChange: jotai_x98.SimpleWritableAtom<((options: {
1526
+ onSelectionChange: jotai_x2.SimpleWritableAtom<((options: {
1527
1527
  editor: PlateEditor;
1528
1528
  selection: _platejs_slate20.TSelection;
1529
1529
  }) => void) | null>;
1530
- onTextChange: jotai_x98.SimpleWritableAtom<((options: {
1530
+ onTextChange: jotai_x2.SimpleWritableAtom<((options: {
1531
1531
  editor: PlateEditor;
1532
1532
  node: _platejs_slate20.Descendant;
1533
1533
  operation: _platejs_slate20.TextOperation;
1534
1534
  prevText: string;
1535
1535
  text: string;
1536
1536
  }) => void) | null>;
1537
- onValueChange: jotai_x98.SimpleWritableAtom<((options: {
1537
+ onValueChange: jotai_x2.SimpleWritableAtom<((options: {
1538
1538
  editor: PlateEditor;
1539
1539
  value: _platejs_slate20.Value;
1540
1540
  }) => void) | 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>>;
1541
+ id: jotai_x2.SimpleWritableAtom<string>;
1542
+ containerRef: jotai_x2.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
1543
+ editor: jotai_x2.SimpleWritableAtom<PlateEditor>;
1544
+ scrollRef: jotai_x2.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
1545
1545
  } & {
1546
1546
  trackedEditor: jotai10.Atom<{
1547
1547
  editor: any;
@@ -1557,8 +1557,8 @@ declare const PlateStoreProvider: React$1.FC<jotai_x98.ProviderProps<{
1557
1557
  }>;
1558
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_x98.UseAtomOptions) | undefined, deps?: unknown[]) => S;
1561
- declare const usePlateStore: (id?: string) => jotai_x98.ReturnOfUseStoreApi<PlateStoreState<PlateEditor>, {
1560
+ } & jotai_x2.UseAtomOptions) | undefined, deps?: unknown[]) => S;
1561
+ declare const usePlateStore: (id?: string) => jotai_x2.ReturnOfUseStoreApi<PlateStoreState<PlateEditor>, {
1562
1562
  trackedEditor: jotai10.Atom<{
1563
1563
  editor: any;
1564
1564
  version: number | null;
@@ -1664,7 +1664,7 @@ 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_x98.ProviderProps<{
1667
+ declare const PlateController: React$1.FC<jotai_x2.ProviderProps<{
1668
1668
  activeId: string | null;
1669
1669
  editorStores: Record<string, ({
1670
1670
  get: <Value$1>(atom: Atom<Value$1>) => Value$1;
@@ -1706,7 +1706,7 @@ declare const PlateController: React$1.FC<jotai_x98.ProviderProps<{
1706
1706
  dev_restore_atoms: (values: Iterable<readonly [Atom<unknown>, unknown]>) => void;
1707
1707
  }>) | null>;
1708
1708
  primaryEditorIds: string[];
1709
- }>>, plateControllerStore: jotai_x98.StoreApi<{
1709
+ }>>, plateControllerStore: jotai_x2.StoreApi<{
1710
1710
  activeId: jotai10.PrimitiveAtom<string | null> & {
1711
1711
  init: string | null;
1712
1712
  };
@@ -1792,7 +1792,7 @@ declare const PlateController: React$1.FC<jotai_x98.ProviderProps<{
1792
1792
  primaryEditorIds: jotai10.PrimitiveAtom<string[]> & {
1793
1793
  init: string[];
1794
1794
  };
1795
- }, object, "plateController">, _usePlateControllerStore: jotai_x98.UseStoreApi<{
1795
+ }, object, "plateController">, _usePlateControllerStore: jotai_x2.UseStoreApi<{
1796
1796
  activeId: jotai10.PrimitiveAtom<string | null> & {
1797
1797
  init: string | null;
1798
1798
  };
@@ -1413,7 +1413,7 @@ const useNodePath = (node) => {
1413
1413
  //#region src/react/hooks/useSlateProps.ts
1414
1414
  /** Get Slate props stored in a global store. */
1415
1415
  const useSlateProps = (t0) => {
1416
- const $ = c(19);
1416
+ const $ = c(23);
1417
1417
  const { id } = t0;
1418
1418
  const editor = useEditorRef(id);
1419
1419
  const store = usePlateStore(id);
@@ -1423,55 +1423,83 @@ const useSlateProps = (t0) => {
1423
1423
  const updateVersionEditor = useIncrementVersion("versionEditor", id);
1424
1424
  const updateVersionSelection = useIncrementVersion("versionSelection", id);
1425
1425
  const updateVersionValue = useIncrementVersion("versionValue", id);
1426
+ const prevSelectionRef = React.useRef(editor.selection);
1427
+ const prevValueRef = React.useRef(editor.children);
1426
1428
  let t1;
1427
- if ($[0] !== editor || $[1] !== onChangeProp || $[2] !== updateVersionEditor) {
1429
+ if ($[0] !== editor || $[1] !== onChangeProp || $[2] !== onSelectionChangeProp || $[3] !== onValueChangeProp || $[4] !== updateVersionEditor || $[5] !== updateVersionSelection || $[6] !== updateVersionValue) {
1428
1430
  t1 = (newValue) => {
1429
1431
  updateVersionEditor();
1430
1432
  if (!pipeOnChange(editor, newValue)) onChangeProp?.({
1431
1433
  editor,
1432
1434
  value: newValue
1433
1435
  });
1436
+ if (editor.children !== prevValueRef.current) {
1437
+ prevValueRef.current = editor.children;
1438
+ updateVersionValue();
1439
+ onValueChangeProp?.({
1440
+ editor,
1441
+ value: newValue
1442
+ });
1443
+ }
1444
+ if (editor.selection !== prevSelectionRef.current) {
1445
+ prevSelectionRef.current = editor.selection;
1446
+ updateVersionSelection();
1447
+ onSelectionChangeProp?.({
1448
+ editor,
1449
+ selection: editor.selection
1450
+ });
1451
+ }
1434
1452
  };
1435
1453
  $[0] = editor;
1436
1454
  $[1] = onChangeProp;
1437
- $[2] = updateVersionEditor;
1438
- $[3] = t1;
1439
- } else t1 = $[3];
1455
+ $[2] = onSelectionChangeProp;
1456
+ $[3] = onValueChangeProp;
1457
+ $[4] = updateVersionEditor;
1458
+ $[5] = updateVersionSelection;
1459
+ $[6] = updateVersionValue;
1460
+ $[7] = t1;
1461
+ } else t1 = $[7];
1440
1462
  const onChange = t1;
1441
1463
  let t2;
1442
- if ($[4] !== editor || $[5] !== onValueChangeProp || $[6] !== updateVersionValue) {
1464
+ if ($[8] !== editor || $[9] !== onValueChangeProp || $[10] !== updateVersionValue) {
1443
1465
  t2 = (value) => {
1444
- updateVersionValue();
1445
- onValueChangeProp?.({
1446
- editor,
1447
- value
1448
- });
1466
+ if (editor.children !== prevValueRef.current) {
1467
+ prevValueRef.current = editor.children;
1468
+ updateVersionValue();
1469
+ onValueChangeProp?.({
1470
+ editor,
1471
+ value
1472
+ });
1473
+ }
1449
1474
  };
1450
- $[4] = editor;
1451
- $[5] = onValueChangeProp;
1452
- $[6] = updateVersionValue;
1453
- $[7] = t2;
1454
- } else t2 = $[7];
1475
+ $[8] = editor;
1476
+ $[9] = onValueChangeProp;
1477
+ $[10] = updateVersionValue;
1478
+ $[11] = t2;
1479
+ } else t2 = $[11];
1455
1480
  const onValueChange = t2;
1456
1481
  let t3;
1457
- if ($[8] !== editor || $[9] !== onSelectionChangeProp || $[10] !== updateVersionSelection) {
1482
+ if ($[12] !== editor || $[13] !== onSelectionChangeProp || $[14] !== updateVersionSelection) {
1458
1483
  t3 = (selection) => {
1459
- updateVersionSelection();
1460
- onSelectionChangeProp?.({
1461
- editor,
1462
- selection
1463
- });
1484
+ if (editor.selection !== prevSelectionRef.current) {
1485
+ prevSelectionRef.current = editor.selection;
1486
+ updateVersionSelection();
1487
+ onSelectionChangeProp?.({
1488
+ editor,
1489
+ selection
1490
+ });
1491
+ }
1464
1492
  };
1465
- $[8] = editor;
1466
- $[9] = onSelectionChangeProp;
1467
- $[10] = updateVersionSelection;
1468
- $[11] = t3;
1469
- } else t3 = $[11];
1493
+ $[12] = editor;
1494
+ $[13] = onSelectionChangeProp;
1495
+ $[14] = updateVersionSelection;
1496
+ $[15] = t3;
1497
+ } else t3 = $[15];
1470
1498
  const onSelectionChange = t3;
1471
1499
  const t4 = editor;
1472
1500
  const t5 = editor.children;
1473
1501
  let t6;
1474
- if ($[12] !== editor.meta.key || $[13] !== onChange || $[14] !== onSelectionChange || $[15] !== onValueChange || $[16] !== t4 || $[17] !== t5) {
1502
+ if ($[16] !== editor.meta.key || $[17] !== onChange || $[18] !== onSelectionChange || $[19] !== onValueChange || $[20] !== t4 || $[21] !== t5) {
1475
1503
  t6 = {
1476
1504
  key: editor.meta.key,
1477
1505
  editor: t4,
@@ -1480,14 +1508,14 @@ const useSlateProps = (t0) => {
1480
1508
  onSelectionChange,
1481
1509
  onValueChange
1482
1510
  };
1483
- $[12] = editor.meta.key;
1484
- $[13] = onChange;
1485
- $[14] = onSelectionChange;
1486
- $[15] = onValueChange;
1487
- $[16] = t4;
1488
- $[17] = t5;
1489
- $[18] = t6;
1490
- } else t6 = $[18];
1511
+ $[16] = editor.meta.key;
1512
+ $[17] = onChange;
1513
+ $[18] = onSelectionChange;
1514
+ $[19] = onValueChange;
1515
+ $[20] = t4;
1516
+ $[21] = t5;
1517
+ $[22] = t6;
1518
+ } else t6 = $[22];
1491
1519
  return t6;
1492
1520
  };
1493
1521
 
@@ -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-fS5ruWhD";
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-C493x5bm";
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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lofcz/platejs-core",
3
- "version": "53.2.4",
3
+ "version": "53.3.4",
4
4
  "description": "The core of Plate – a plugin system for slate",
5
5
  "keywords": [
6
6
  "contentEditable",
@@ -46,14 +46,14 @@
46
46
  "nanoid": "^5.1.5",
47
47
  "optics-ts": "2.4.1",
48
48
  "react-compiler-runtime": "^1.0.0",
49
- "slate": "0.124.1",
50
- "slate-dom": "0.124.1",
49
+ "slate": "0.126.0",
50
+ "slate-dom": "0.126.0",
51
51
  "slate-hyperscript": "0.125.0",
52
- "slate-react": "0.124.2",
52
+ "slate-react": "0.126.0",
53
53
  "use-deep-compare": "^1.3.0",
54
54
  "zustand": "^5.0.5",
55
55
  "zustand-x": "6.2.1",
56
- "@platejs/slate": "npm:@lofcz/platejs-slate@53.1.7",
56
+ "@platejs/slate": "npm:@lofcz/platejs-slate@53.3.4",
57
57
  "@udecode/react-hotkeys": "npm:@lofcz/udecode-react-hotkeys@52.3.6",
58
58
  "@udecode/react-utils": "npm:@lofcz/udecode-react-utils@52.3.4",
59
59
  "@udecode/utils": "npm:@lofcz/udecode-utils@52.3.4"