@lofcz/platejs-core 53.4.6 → 53.4.7

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.
@@ -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" | "plugin" | "setOptions" | "tf" | "type" | "getOption" | "getOptions" | "setOption">;
3108
+ declare const omitPluginContext: <T extends SlatePluginContext<AnySlatePlugin>>(ctx: T) => Omit<T, "api" | "editor" | "plugin" | "getOptions" | "type" | "getOption" | "tf" | "setOptions" | "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-B7ej2XCF";
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-fLEDAjcC";
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,48 +1,49 @@
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-B7ej2XCF";
2
- import * as _platejs_slate20 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-fLEDAjcC";
2
+ import * as _platejs_slate19 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 jotai10 from "jotai";
9
- import { Atom, atom } from "jotai";
8
+ import * as jotai5 from "jotai";
9
+ import { atom } from "jotai";
10
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";
14
14
  import { createStore } from "jotai/vanilla";
15
+ import * as jotai_vanilla_internals0 from "jotai/vanilla/internals";
15
16
 
16
17
  //#region src/react/plugins/SlateReactExtensionPlugin.d.ts
17
18
  declare const SlateReactExtensionPlugin: PlatePlugin<PluginConfig<"slateExtension", {
18
19
  onNodeChange: (options: {
19
20
  editor: SlateEditor;
20
- node: _platejs_slate20.Descendant;
21
- operation: _platejs_slate20.NodeOperation;
22
- prevNode: _platejs_slate20.Descendant;
21
+ node: _platejs_slate19.Descendant;
22
+ operation: _platejs_slate19.NodeOperation;
23
+ prevNode: _platejs_slate19.Descendant;
23
24
  }) => void;
24
25
  onTextChange: (options: {
25
26
  editor: SlateEditor;
26
- node: _platejs_slate20.Descendant;
27
- operation: _platejs_slate20.TextOperation;
27
+ node: _platejs_slate19.Descendant;
28
+ operation: _platejs_slate19.TextOperation;
28
29
  prevText: string;
29
30
  text: string;
30
31
  }) => void;
31
32
  }, {
32
33
  redecorate: (() => void) & (() => void);
33
- isElementStateEmpty: (element: _platejs_slate20.TElement) => boolean;
34
+ isElementStateEmpty: (element: _platejs_slate19.TElement) => boolean;
34
35
  }, {
35
- reset: (options: _platejs_slate20.ResetOptions | undefined) => void;
36
+ reset: (options: _platejs_slate19.ResetOptions | undefined) => void;
36
37
  init: ((args_0: InitOptions) => void) & ((args_0: InitOptions) => void);
37
38
  insertExitBreak: ((args_0?: InsertExitBreakOptions | undefined) => true | undefined) & ((args_0?: InsertExitBreakOptions | undefined) => true | undefined);
38
39
  liftBlock: ((args_0?: LiftBlockOptions | undefined) => true | undefined) & ((args_0?: LiftBlockOptions | undefined) => true | undefined);
39
40
  resetBlock: ((args_0?: {
40
- at?: _platejs_slate20.Path;
41
+ at?: _platejs_slate19.Path;
41
42
  } | undefined) => true | undefined) & ((args_0?: {
42
- at?: _platejs_slate20.Path;
43
+ at?: _platejs_slate19.Path;
43
44
  } | undefined) => true | undefined);
44
- setValue: ((value?: string | _platejs_slate20.Value | undefined) => void) & ((value?: string | _platejs_slate20.Value | undefined) => void);
45
- apply: <N$1 extends _platejs_slate20.TElement | _platejs_slate20.TText>(operation: _platejs_slate20.Operation<N$1>) => void;
45
+ setValue: ((value?: string | _platejs_slate19.Value | undefined) => void) & ((value?: string | _platejs_slate19.Value | undefined) => void);
46
+ apply: <N$1 extends _platejs_slate19.TElement | _platejs_slate19.TText>(operation: _platejs_slate19.Operation<N$1>) => void;
46
47
  }, {}>>;
47
48
  //#endregion
48
49
  //#region src/react/plugins/event-editor/EventEditorPlugin.d.ts
@@ -102,7 +103,7 @@ declare const ParagraphPlugin: PlatePlugin<PluginConfig<"p", {}, {}, {}, {}>>;
102
103
  declare const ReactPlugin: PlatePlugin<PluginConfig<"dom", {
103
104
  scrollMode?: ScrollMode;
104
105
  scrollOperations?: AutoScrollOperationsMap;
105
- scrollOptions?: _platejs_slate20.ScrollIntoViewOptions;
106
+ scrollOptions?: _platejs_slate19.ScrollIntoViewOptions;
106
107
  }, {
107
108
  isScrolling: () => boolean;
108
109
  }, {
@@ -819,36 +820,36 @@ declare const getPlateCorePlugins: ({
819
820
  }) => (PlatePlugin<PluginConfig<"eventEditor", {}, {}, {}, {}>> | PlatePlugin<PluginConfig<"slateExtension", {
820
821
  onNodeChange: (options: {
821
822
  editor: SlateEditor;
822
- node: _platejs_slate20.Descendant;
823
- operation: _platejs_slate20.NodeOperation;
824
- prevNode: _platejs_slate20.Descendant;
823
+ node: _platejs_slate19.Descendant;
824
+ operation: _platejs_slate19.NodeOperation;
825
+ prevNode: _platejs_slate19.Descendant;
825
826
  }) => void;
826
827
  onTextChange: (options: {
827
828
  editor: SlateEditor;
828
- node: _platejs_slate20.Descendant;
829
- operation: _platejs_slate20.TextOperation;
829
+ node: _platejs_slate19.Descendant;
830
+ operation: _platejs_slate19.TextOperation;
830
831
  prevText: string;
831
832
  text: string;
832
833
  }) => void;
833
834
  }, {
834
835
  redecorate: (() => void) & (() => void);
835
- isElementStateEmpty: (element: _platejs_slate20.TElement) => boolean;
836
+ isElementStateEmpty: (element: _platejs_slate19.TElement) => boolean;
836
837
  }, {
837
- reset: (options: _platejs_slate20.ResetOptions | undefined) => void;
838
+ reset: (options: _platejs_slate19.ResetOptions | undefined) => void;
838
839
  init: ((args_0: InitOptions) => void) & ((args_0: InitOptions) => void);
839
840
  insertExitBreak: ((args_0?: InsertExitBreakOptions | undefined) => true | undefined) & ((args_0?: InsertExitBreakOptions | undefined) => true | undefined);
840
841
  liftBlock: ((args_0?: LiftBlockOptions | undefined) => true | undefined) & ((args_0?: LiftBlockOptions | undefined) => true | undefined);
841
842
  resetBlock: ((args_0?: {
842
- at?: _platejs_slate20.Path;
843
+ at?: _platejs_slate19.Path;
843
844
  } | undefined) => true | undefined) & ((args_0?: {
844
- at?: _platejs_slate20.Path;
845
+ at?: _platejs_slate19.Path;
845
846
  } | undefined) => true | undefined);
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;
847
+ setValue: ((value?: string | _platejs_slate19.Value | undefined) => void) & ((value?: string | _platejs_slate19.Value | undefined) => void);
848
+ apply: <N$1 extends _platejs_slate19.TElement | _platejs_slate19.TText>(operation: _platejs_slate19.Operation<N$1>) => void;
848
849
  }, {}>> | PlatePlugin<PluginConfig<"dom", {
849
850
  scrollMode?: ScrollMode;
850
851
  scrollOperations?: AutoScrollOperationsMap;
851
- scrollOptions?: _platejs_slate20.ScrollIntoViewOptions;
852
+ scrollOptions?: _platejs_slate19.ScrollIntoViewOptions;
852
853
  }, {
853
854
  isScrolling: () => boolean;
854
855
  }, {
@@ -918,7 +919,7 @@ declare function getPlugin<C extends AnyPluginConfig = PluginConfig>(editor: Pla
918
919
  } ? C : PlatePlugin<C>;
919
920
  //#endregion
920
921
  //#region src/react/plugin/omitPluginContext.d.ts
921
- declare const omitPluginContext: <T extends PlatePluginContext<AnyPlatePlugin>>(ctx: T) => Omit<T, "api" | "editor" | "plugin" | "setOptions" | "tf" | "type" | "getOption" | "getOptions" | "setOption">;
922
+ declare const omitPluginContext: <T extends PlatePluginContext<AnyPlatePlugin>>(ctx: T) => Omit<T, "api" | "editor" | "plugin" | "getOptions" | "type" | "getOption" | "tf" | "setOptions" | "setOption">;
922
923
  //#endregion
923
924
  //#region src/react/plugin/toPlatePlugin.d.ts
924
925
  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'> & {
@@ -1233,15 +1234,15 @@ declare const createPlateStore: <E extends PlateEditor = PlateEditor>({
1233
1234
  onValueChange,
1234
1235
  ...state
1235
1236
  }?: Partial<PlateStoreState<E>>) => jotai_x2.AtomStoreApi<PlateStoreState<E>, {
1236
- trackedEditor: jotai10.Atom<{
1237
+ trackedEditor: jotai5.Atom<{
1237
1238
  editor: any;
1238
1239
  version: number | null;
1239
1240
  }>;
1240
- trackedSelection: jotai10.Atom<{
1241
+ trackedSelection: jotai5.Atom<{
1241
1242
  selection: any;
1242
1243
  version: number | null;
1243
1244
  }>;
1244
- trackedValue: jotai10.Atom<{
1245
+ trackedValue: jotai5.Atom<{
1245
1246
  value: any;
1246
1247
  version: number | null;
1247
1248
  }>;
@@ -1250,8 +1251,8 @@ declare const PlateStoreProvider: React$1.FC<jotai_x2.ProviderProps<{
1250
1251
  composing: boolean | null;
1251
1252
  decorate: ((options: {
1252
1253
  editor: PlateEditor;
1253
- entry: _platejs_slate20.NodeEntry;
1254
- }) => _platejs_slate20.TRange[]) | null;
1254
+ entry: _platejs_slate19.NodeEntry;
1255
+ }) => _platejs_slate19.TRange[]) | null;
1255
1256
  isMounted: boolean | null;
1256
1257
  primary: boolean | null;
1257
1258
  readOnly: boolean | null;
@@ -1265,52 +1266,52 @@ declare const PlateStoreProvider: React$1.FC<jotai_x2.ProviderProps<{
1265
1266
  versionValue: number | null;
1266
1267
  onChange: ((options: {
1267
1268
  editor: PlateEditor;
1268
- value: _platejs_slate20.Value;
1269
+ value: _platejs_slate19.Value;
1269
1270
  }) => void) | null;
1270
1271
  onNodeChange: ((options: {
1271
1272
  editor: PlateEditor;
1272
- node: _platejs_slate20.Descendant;
1273
- operation: _platejs_slate20.NodeOperation;
1274
- prevNode: _platejs_slate20.Descendant;
1273
+ node: _platejs_slate19.Descendant;
1274
+ operation: _platejs_slate19.NodeOperation;
1275
+ prevNode: _platejs_slate19.Descendant;
1275
1276
  }) => void) | null;
1276
1277
  onSelectionChange: ((options: {
1277
1278
  editor: PlateEditor;
1278
- selection: _platejs_slate20.TSelection;
1279
+ selection: _platejs_slate19.TSelection;
1279
1280
  }) => void) | null;
1280
1281
  onTextChange: ((options: {
1281
1282
  editor: PlateEditor;
1282
- node: _platejs_slate20.Descendant;
1283
- operation: _platejs_slate20.TextOperation;
1283
+ node: _platejs_slate19.Descendant;
1284
+ operation: _platejs_slate19.TextOperation;
1284
1285
  prevText: string;
1285
1286
  text: string;
1286
1287
  }) => void) | null;
1287
1288
  onValueChange: ((options: {
1288
1289
  editor: PlateEditor;
1289
- value: _platejs_slate20.Value;
1290
+ value: _platejs_slate19.Value;
1290
1291
  }) => void) | null;
1291
1292
  id: string;
1292
1293
  containerRef: React$1.RefObject<HTMLDivElement | null>;
1293
1294
  editor: PlateEditor;
1294
1295
  scrollRef: React$1.RefObject<HTMLDivElement | null>;
1295
1296
  }>>, plateStore: jotai_x2.StoreApi<PlateStoreState<PlateEditor>, {
1296
- trackedEditor: jotai10.Atom<{
1297
+ trackedEditor: jotai5.Atom<{
1297
1298
  editor: any;
1298
1299
  version: number | null;
1299
1300
  }>;
1300
- trackedSelection: jotai10.Atom<{
1301
+ trackedSelection: jotai5.Atom<{
1301
1302
  selection: any;
1302
1303
  version: number | null;
1303
1304
  }>;
1304
- trackedValue: jotai10.Atom<{
1305
+ trackedValue: jotai5.Atom<{
1305
1306
  value: any;
1306
1307
  version: number | null;
1307
1308
  }>;
1308
- }, "plate">, usePlateLocalSet: <K$1 extends "decorate" | "renderElement" | "editor" | "id" | "onChange" | "renderLeaf" | "renderText" | "onNodeChange" | "onTextChange" | "readOnly" | "composing" | "isMounted" | "primary" | "renderChunk" | "versionDecorate" | "versionEditor" | "versionSelection" | "versionValue" | "onSelectionChange" | "onValueChange" | "containerRef" | "scrollRef" | "trackedEditor" | "trackedSelection" | "trackedValue">(key: K$1, options?: string | jotai_x2.UseAtomOptions) => ({
1309
+ }, "plate">, usePlateLocalSet: <K$1 extends "renderLeaf" | "renderElement" | "renderText" | "decorate" | "editor" | "id" | "onChange" | "onNodeChange" | "onTextChange" | "readOnly" | "composing" | "isMounted" | "primary" | "renderChunk" | "versionDecorate" | "versionEditor" | "versionSelection" | "versionValue" | "onSelectionChange" | "onValueChange" | "containerRef" | "scrollRef" | "trackedEditor" | "trackedSelection" | "trackedValue">(key: K$1, options?: string | jotai_x2.UseAtomOptions) => ({
1309
1310
  composing: jotai_x2.SimpleWritableAtom<boolean | null>;
1310
1311
  decorate: jotai_x2.SimpleWritableAtom<((options: {
1311
1312
  editor: PlateEditor;
1312
- entry: _platejs_slate20.NodeEntry;
1313
- }) => _platejs_slate20.TRange[]) | null>;
1313
+ entry: _platejs_slate19.NodeEntry;
1314
+ }) => _platejs_slate19.TRange[]) | null>;
1314
1315
  isMounted: jotai_x2.SimpleWritableAtom<boolean | null>;
1315
1316
  primary: jotai_x2.SimpleWritableAtom<boolean | null>;
1316
1317
  readOnly: jotai_x2.SimpleWritableAtom<boolean | null>;
@@ -1324,52 +1325,52 @@ declare const PlateStoreProvider: React$1.FC<jotai_x2.ProviderProps<{
1324
1325
  versionValue: jotai_x2.SimpleWritableAtom<number | null>;
1325
1326
  onChange: jotai_x2.SimpleWritableAtom<((options: {
1326
1327
  editor: PlateEditor;
1327
- value: _platejs_slate20.Value;
1328
+ value: _platejs_slate19.Value;
1328
1329
  }) => void) | null>;
1329
1330
  onNodeChange: jotai_x2.SimpleWritableAtom<((options: {
1330
1331
  editor: PlateEditor;
1331
- node: _platejs_slate20.Descendant;
1332
- operation: _platejs_slate20.NodeOperation;
1333
- prevNode: _platejs_slate20.Descendant;
1332
+ node: _platejs_slate19.Descendant;
1333
+ operation: _platejs_slate19.NodeOperation;
1334
+ prevNode: _platejs_slate19.Descendant;
1334
1335
  }) => void) | null>;
1335
1336
  onSelectionChange: jotai_x2.SimpleWritableAtom<((options: {
1336
1337
  editor: PlateEditor;
1337
- selection: _platejs_slate20.TSelection;
1338
+ selection: _platejs_slate19.TSelection;
1338
1339
  }) => void) | null>;
1339
1340
  onTextChange: jotai_x2.SimpleWritableAtom<((options: {
1340
1341
  editor: PlateEditor;
1341
- node: _platejs_slate20.Descendant;
1342
- operation: _platejs_slate20.TextOperation;
1342
+ node: _platejs_slate19.Descendant;
1343
+ operation: _platejs_slate19.TextOperation;
1343
1344
  prevText: string;
1344
1345
  text: string;
1345
1346
  }) => void) | null>;
1346
1347
  onValueChange: jotai_x2.SimpleWritableAtom<((options: {
1347
1348
  editor: PlateEditor;
1348
- value: _platejs_slate20.Value;
1349
+ value: _platejs_slate19.Value;
1349
1350
  }) => void) | null>;
1350
1351
  id: jotai_x2.SimpleWritableAtom<string>;
1351
1352
  containerRef: jotai_x2.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
1352
1353
  editor: jotai_x2.SimpleWritableAtom<PlateEditor>;
1353
1354
  scrollRef: jotai_x2.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
1354
1355
  } & {
1355
- trackedEditor: jotai10.Atom<{
1356
+ trackedEditor: jotai5.Atom<{
1356
1357
  editor: any;
1357
1358
  version: number | null;
1358
1359
  }>;
1359
- trackedSelection: jotai10.Atom<{
1360
+ trackedSelection: jotai5.Atom<{
1360
1361
  selection: any;
1361
1362
  version: number | null;
1362
1363
  }>;
1363
- trackedValue: jotai10.Atom<{
1364
+ trackedValue: jotai5.Atom<{
1364
1365
  value: any;
1365
1366
  version: number | null;
1366
1367
  }>;
1367
- })[K$1] extends jotai10.WritableAtom<infer _V, infer A extends unknown[], infer R> ? (...args: A) => R : never, usePlateLocalState: <K$1 extends "decorate" | "renderElement" | "editor" | "id" | "onChange" | "renderLeaf" | "renderText" | "onNodeChange" | "onTextChange" | "readOnly" | "composing" | "isMounted" | "primary" | "renderChunk" | "versionDecorate" | "versionEditor" | "versionSelection" | "versionValue" | "onSelectionChange" | "onValueChange" | "containerRef" | "scrollRef" | "trackedEditor" | "trackedSelection" | "trackedValue">(key: K$1, options?: string | jotai_x2.UseAtomOptions) => ({
1368
+ })[K$1] extends jotai5.WritableAtom<infer _V, infer A extends unknown[], infer R> ? (...args: A) => R : never, usePlateLocalState: <K$1 extends "renderLeaf" | "renderElement" | "renderText" | "decorate" | "editor" | "id" | "onChange" | "onNodeChange" | "onTextChange" | "readOnly" | "composing" | "isMounted" | "primary" | "renderChunk" | "versionDecorate" | "versionEditor" | "versionSelection" | "versionValue" | "onSelectionChange" | "onValueChange" | "containerRef" | "scrollRef" | "trackedEditor" | "trackedSelection" | "trackedValue">(key: K$1, options?: string | jotai_x2.UseAtomOptions) => ({
1368
1369
  composing: jotai_x2.SimpleWritableAtom<boolean | null>;
1369
1370
  decorate: jotai_x2.SimpleWritableAtom<((options: {
1370
1371
  editor: PlateEditor;
1371
- entry: _platejs_slate20.NodeEntry;
1372
- }) => _platejs_slate20.TRange[]) | null>;
1372
+ entry: _platejs_slate19.NodeEntry;
1373
+ }) => _platejs_slate19.TRange[]) | null>;
1373
1374
  isMounted: jotai_x2.SimpleWritableAtom<boolean | null>;
1374
1375
  primary: jotai_x2.SimpleWritableAtom<boolean | null>;
1375
1376
  readOnly: jotai_x2.SimpleWritableAtom<boolean | null>;
@@ -1383,65 +1384,65 @@ declare const PlateStoreProvider: React$1.FC<jotai_x2.ProviderProps<{
1383
1384
  versionValue: jotai_x2.SimpleWritableAtom<number | null>;
1384
1385
  onChange: jotai_x2.SimpleWritableAtom<((options: {
1385
1386
  editor: PlateEditor;
1386
- value: _platejs_slate20.Value;
1387
+ value: _platejs_slate19.Value;
1387
1388
  }) => void) | null>;
1388
1389
  onNodeChange: jotai_x2.SimpleWritableAtom<((options: {
1389
1390
  editor: PlateEditor;
1390
- node: _platejs_slate20.Descendant;
1391
- operation: _platejs_slate20.NodeOperation;
1392
- prevNode: _platejs_slate20.Descendant;
1391
+ node: _platejs_slate19.Descendant;
1392
+ operation: _platejs_slate19.NodeOperation;
1393
+ prevNode: _platejs_slate19.Descendant;
1393
1394
  }) => void) | null>;
1394
1395
  onSelectionChange: jotai_x2.SimpleWritableAtom<((options: {
1395
1396
  editor: PlateEditor;
1396
- selection: _platejs_slate20.TSelection;
1397
+ selection: _platejs_slate19.TSelection;
1397
1398
  }) => void) | null>;
1398
1399
  onTextChange: jotai_x2.SimpleWritableAtom<((options: {
1399
1400
  editor: PlateEditor;
1400
- node: _platejs_slate20.Descendant;
1401
- operation: _platejs_slate20.TextOperation;
1401
+ node: _platejs_slate19.Descendant;
1402
+ operation: _platejs_slate19.TextOperation;
1402
1403
  prevText: string;
1403
1404
  text: string;
1404
1405
  }) => void) | null>;
1405
1406
  onValueChange: jotai_x2.SimpleWritableAtom<((options: {
1406
1407
  editor: PlateEditor;
1407
- value: _platejs_slate20.Value;
1408
+ value: _platejs_slate19.Value;
1408
1409
  }) => void) | null>;
1409
1410
  id: jotai_x2.SimpleWritableAtom<string>;
1410
1411
  containerRef: jotai_x2.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
1411
1412
  editor: jotai_x2.SimpleWritableAtom<PlateEditor>;
1412
1413
  scrollRef: jotai_x2.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
1413
1414
  } & {
1414
- trackedEditor: jotai10.Atom<{
1415
+ trackedEditor: jotai5.Atom<{
1415
1416
  editor: any;
1416
1417
  version: number | null;
1417
1418
  }>;
1418
- trackedSelection: jotai10.Atom<{
1419
+ trackedSelection: jotai5.Atom<{
1419
1420
  selection: any;
1420
1421
  version: number | null;
1421
1422
  }>;
1422
- trackedValue: jotai10.Atom<{
1423
+ trackedValue: jotai5.Atom<{
1423
1424
  value: any;
1424
1425
  version: number | null;
1425
1426
  }>;
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
- trackedEditor: jotai10.Atom<{
1427
+ })[K$1] extends jotai5.WritableAtom<infer V, infer A extends unknown[], infer R> ? [V, (...args: A) => R] : never, usePlateLocalStore: jotai_x2.UseStoreApi<PlateStoreState<PlateEditor>, {
1428
+ trackedEditor: jotai5.Atom<{
1428
1429
  editor: any;
1429
1430
  version: number | null;
1430
1431
  }>;
1431
- trackedSelection: jotai10.Atom<{
1432
+ trackedSelection: jotai5.Atom<{
1432
1433
  selection: any;
1433
1434
  version: number | null;
1434
1435
  }>;
1435
- trackedValue: jotai10.Atom<{
1436
+ trackedValue: jotai5.Atom<{
1436
1437
  value: any;
1437
1438
  version: number | null;
1438
1439
  }>;
1439
- }>, usePlateLocalValue: <K$1 extends "decorate" | "renderElement" | "editor" | "id" | "onChange" | "renderLeaf" | "renderText" | "onNodeChange" | "onTextChange" | "readOnly" | "composing" | "isMounted" | "primary" | "renderChunk" | "versionDecorate" | "versionEditor" | "versionSelection" | "versionValue" | "onSelectionChange" | "onValueChange" | "containerRef" | "scrollRef" | "trackedEditor" | "trackedSelection" | "trackedValue", S = (({
1440
+ }>, usePlateLocalValue: <K$1 extends "renderLeaf" | "renderElement" | "renderText" | "decorate" | "editor" | "id" | "onChange" | "onNodeChange" | "onTextChange" | "readOnly" | "composing" | "isMounted" | "primary" | "renderChunk" | "versionDecorate" | "versionEditor" | "versionSelection" | "versionValue" | "onSelectionChange" | "onValueChange" | "containerRef" | "scrollRef" | "trackedEditor" | "trackedSelection" | "trackedValue", S = (({
1440
1441
  composing: jotai_x2.SimpleWritableAtom<boolean | null>;
1441
1442
  decorate: jotai_x2.SimpleWritableAtom<((options: {
1442
1443
  editor: PlateEditor;
1443
- entry: _platejs_slate20.NodeEntry;
1444
- }) => _platejs_slate20.TRange[]) | null>;
1444
+ entry: _platejs_slate19.NodeEntry;
1445
+ }) => _platejs_slate19.TRange[]) | null>;
1445
1446
  isMounted: jotai_x2.SimpleWritableAtom<boolean | null>;
1446
1447
  primary: jotai_x2.SimpleWritableAtom<boolean | null>;
1447
1448
  readOnly: jotai_x2.SimpleWritableAtom<boolean | null>;
@@ -1455,53 +1456,53 @@ declare const PlateStoreProvider: React$1.FC<jotai_x2.ProviderProps<{
1455
1456
  versionValue: jotai_x2.SimpleWritableAtom<number | null>;
1456
1457
  onChange: jotai_x2.SimpleWritableAtom<((options: {
1457
1458
  editor: PlateEditor;
1458
- value: _platejs_slate20.Value;
1459
+ value: _platejs_slate19.Value;
1459
1460
  }) => void) | null>;
1460
1461
  onNodeChange: jotai_x2.SimpleWritableAtom<((options: {
1461
1462
  editor: PlateEditor;
1462
- node: _platejs_slate20.Descendant;
1463
- operation: _platejs_slate20.NodeOperation;
1464
- prevNode: _platejs_slate20.Descendant;
1463
+ node: _platejs_slate19.Descendant;
1464
+ operation: _platejs_slate19.NodeOperation;
1465
+ prevNode: _platejs_slate19.Descendant;
1465
1466
  }) => void) | null>;
1466
1467
  onSelectionChange: jotai_x2.SimpleWritableAtom<((options: {
1467
1468
  editor: PlateEditor;
1468
- selection: _platejs_slate20.TSelection;
1469
+ selection: _platejs_slate19.TSelection;
1469
1470
  }) => void) | null>;
1470
1471
  onTextChange: jotai_x2.SimpleWritableAtom<((options: {
1471
1472
  editor: PlateEditor;
1472
- node: _platejs_slate20.Descendant;
1473
- operation: _platejs_slate20.TextOperation;
1473
+ node: _platejs_slate19.Descendant;
1474
+ operation: _platejs_slate19.TextOperation;
1474
1475
  prevText: string;
1475
1476
  text: string;
1476
1477
  }) => void) | null>;
1477
1478
  onValueChange: jotai_x2.SimpleWritableAtom<((options: {
1478
1479
  editor: PlateEditor;
1479
- value: _platejs_slate20.Value;
1480
+ value: _platejs_slate19.Value;
1480
1481
  }) => void) | null>;
1481
1482
  id: jotai_x2.SimpleWritableAtom<string>;
1482
1483
  containerRef: jotai_x2.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
1483
1484
  editor: jotai_x2.SimpleWritableAtom<PlateEditor>;
1484
1485
  scrollRef: jotai_x2.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
1485
1486
  } & {
1486
- trackedEditor: jotai10.Atom<{
1487
+ trackedEditor: jotai5.Atom<{
1487
1488
  editor: any;
1488
1489
  version: number | null;
1489
1490
  }>;
1490
- trackedSelection: jotai10.Atom<{
1491
+ trackedSelection: jotai5.Atom<{
1491
1492
  selection: any;
1492
1493
  version: number | null;
1493
1494
  }>;
1494
- trackedValue: jotai10.Atom<{
1495
+ trackedValue: jotai5.Atom<{
1495
1496
  value: any;
1496
1497
  version: number | null;
1497
1498
  }>;
1498
- })[K$1] extends jotai10.Atom<infer V> ? V : never)>(key: K$1, options?: ({
1499
+ })[K$1] extends jotai5.Atom<infer V> ? V : never)>(key: K$1, options?: ({
1499
1500
  selector?: ((v: ({
1500
1501
  composing: jotai_x2.SimpleWritableAtom<boolean | null>;
1501
1502
  decorate: jotai_x2.SimpleWritableAtom<((options: {
1502
1503
  editor: PlateEditor;
1503
- entry: _platejs_slate20.NodeEntry;
1504
- }) => _platejs_slate20.TRange[]) | null>;
1504
+ entry: _platejs_slate19.NodeEntry;
1505
+ }) => _platejs_slate19.TRange[]) | null>;
1505
1506
  isMounted: jotai_x2.SimpleWritableAtom<boolean | null>;
1506
1507
  primary: jotai_x2.SimpleWritableAtom<boolean | null>;
1507
1508
  readOnly: jotai_x2.SimpleWritableAtom<boolean | null>;
@@ -1515,59 +1516,59 @@ declare const PlateStoreProvider: React$1.FC<jotai_x2.ProviderProps<{
1515
1516
  versionValue: jotai_x2.SimpleWritableAtom<number | null>;
1516
1517
  onChange: jotai_x2.SimpleWritableAtom<((options: {
1517
1518
  editor: PlateEditor;
1518
- value: _platejs_slate20.Value;
1519
+ value: _platejs_slate19.Value;
1519
1520
  }) => void) | null>;
1520
1521
  onNodeChange: jotai_x2.SimpleWritableAtom<((options: {
1521
1522
  editor: PlateEditor;
1522
- node: _platejs_slate20.Descendant;
1523
- operation: _platejs_slate20.NodeOperation;
1524
- prevNode: _platejs_slate20.Descendant;
1523
+ node: _platejs_slate19.Descendant;
1524
+ operation: _platejs_slate19.NodeOperation;
1525
+ prevNode: _platejs_slate19.Descendant;
1525
1526
  }) => void) | null>;
1526
1527
  onSelectionChange: jotai_x2.SimpleWritableAtom<((options: {
1527
1528
  editor: PlateEditor;
1528
- selection: _platejs_slate20.TSelection;
1529
+ selection: _platejs_slate19.TSelection;
1529
1530
  }) => void) | null>;
1530
1531
  onTextChange: jotai_x2.SimpleWritableAtom<((options: {
1531
1532
  editor: PlateEditor;
1532
- node: _platejs_slate20.Descendant;
1533
- operation: _platejs_slate20.TextOperation;
1533
+ node: _platejs_slate19.Descendant;
1534
+ operation: _platejs_slate19.TextOperation;
1534
1535
  prevText: string;
1535
1536
  text: string;
1536
1537
  }) => void) | null>;
1537
1538
  onValueChange: jotai_x2.SimpleWritableAtom<((options: {
1538
1539
  editor: PlateEditor;
1539
- value: _platejs_slate20.Value;
1540
+ value: _platejs_slate19.Value;
1540
1541
  }) => void) | null>;
1541
1542
  id: jotai_x2.SimpleWritableAtom<string>;
1542
1543
  containerRef: jotai_x2.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
1543
1544
  editor: jotai_x2.SimpleWritableAtom<PlateEditor>;
1544
1545
  scrollRef: jotai_x2.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
1545
1546
  } & {
1546
- trackedEditor: jotai10.Atom<{
1547
+ trackedEditor: jotai5.Atom<{
1547
1548
  editor: any;
1548
1549
  version: number | null;
1549
1550
  }>;
1550
- trackedSelection: jotai10.Atom<{
1551
+ trackedSelection: jotai5.Atom<{
1551
1552
  selection: any;
1552
1553
  version: number | null;
1553
1554
  }>;
1554
- trackedValue: jotai10.Atom<{
1555
+ trackedValue: jotai5.Atom<{
1555
1556
  value: any;
1556
1557
  version: number | null;
1557
1558
  }>;
1558
- })[K$1] extends jotai10.Atom<infer V_1> ? V_1 : never, prevSelectorOutput?: S | undefined) => S) | undefined;
1559
+ })[K$1] extends jotai5.Atom<infer V_1> ? V_1 : never, prevSelectorOutput?: S | undefined) => S) | undefined;
1559
1560
  equalityFn?: ((prev: S, next: S) => boolean) | undefined;
1560
1561
  } & jotai_x2.UseAtomOptions) | undefined, deps?: unknown[]) => S;
1561
1562
  declare const usePlateStore: (id?: string) => jotai_x2.ReturnOfUseStoreApi<PlateStoreState<PlateEditor>, {
1562
- trackedEditor: jotai10.Atom<{
1563
+ trackedEditor: jotai5.Atom<{
1563
1564
  editor: any;
1564
1565
  version: number | null;
1565
1566
  }>;
1566
- trackedSelection: jotai10.Atom<{
1567
+ trackedSelection: jotai5.Atom<{
1567
1568
  selection: any;
1568
1569
  version: number | null;
1569
1570
  }>;
1570
- trackedValue: jotai10.Atom<{
1571
+ trackedValue: jotai5.Atom<{
1571
1572
  value: any;
1572
1573
  version: number | null;
1573
1574
  }>;
@@ -1666,216 +1667,26 @@ declare function useEditorPluginOptions<C extends AnyPluginConfig, U>(editor: Pl
1666
1667
  //#region src/react/stores/plate-controller/plateControllerStore.d.ts
1667
1668
  declare const PlateController: React$1.FC<jotai_x2.ProviderProps<{
1668
1669
  activeId: string | null;
1669
- editorStores: Record<string, ({
1670
- get: <Value$1>(atom: Atom<Value$1>) => Value$1;
1671
- set: <Value$1, Args extends unknown[], Result>(atom: jotai10.WritableAtom<Value$1, Args, Result>, ...args: Args) => Result;
1672
- sub: (atom: Atom<unknown>, listener: () => void) => () => void;
1673
- } & Partial<{
1674
- dev_subscribe_store: (l: (action: {
1675
- type: "write";
1676
- flushed: Set<Atom<unknown>>;
1677
- } | {
1678
- type: "async-write";
1679
- flushed: Set<Atom<unknown>>;
1680
- } | {
1681
- type: "sub";
1682
- flushed: Set<Atom<unknown>>;
1683
- } | {
1684
- type: "unsub";
1685
- } | {
1686
- type: "restore";
1687
- flushed: Set<Atom<unknown>>;
1688
- }) => void, rev: 2) => () => void;
1689
- dev_get_mounted_atoms: () => IterableIterator<Atom<unknown>>;
1690
- dev_get_atom_state: (a: Atom<unknown>) => ({
1691
- d: Map<Atom<unknown>, /*elided*/any & ({
1692
- e: unknown;
1693
- } | {
1694
- v: unknown;
1695
- })>;
1696
- } & ({
1697
- e: unknown;
1698
- } | {
1699
- v: unknown;
1700
- })) | undefined;
1701
- dev_get_mounted: (a: Atom<unknown>) => {
1702
- l: Set<() => void>;
1703
- t: Set<Atom<unknown>>;
1704
- u?: () => void;
1705
- } | undefined;
1706
- dev_restore_atoms: (values: Iterable<readonly [Atom<unknown>, unknown]>) => void;
1707
- }>) | null>;
1670
+ editorStores: Record<string, jotai_vanilla_internals0.INTERNAL_Store | null>;
1708
1671
  primaryEditorIds: string[];
1709
1672
  }>>, plateControllerStore: jotai_x2.StoreApi<{
1710
- activeId: jotai10.PrimitiveAtom<string | null> & {
1673
+ activeId: jotai5.PrimitiveAtom<string | null> & {
1711
1674
  init: string | null;
1712
1675
  };
1713
- editorStores: jotai10.PrimitiveAtom<Record<string, ({
1714
- get: <Value$1>(atom: Atom<Value$1>) => Value$1;
1715
- set: <Value$1, Args extends unknown[], Result>(atom: jotai10.WritableAtom<Value$1, Args, Result>, ...args: Args) => Result;
1716
- sub: (atom: Atom<unknown>, listener: () => void) => () => void;
1717
- } & Partial<{
1718
- dev_subscribe_store: (l: (action: {
1719
- type: "write";
1720
- flushed: Set<Atom<unknown>>;
1721
- } | {
1722
- type: "async-write";
1723
- flushed: Set<Atom<unknown>>;
1724
- } | {
1725
- type: "sub";
1726
- flushed: Set<Atom<unknown>>;
1727
- } | {
1728
- type: "unsub";
1729
- } | {
1730
- type: "restore";
1731
- flushed: Set<Atom<unknown>>;
1732
- }) => void, rev: 2) => () => void;
1733
- dev_get_mounted_atoms: () => IterableIterator<Atom<unknown>>;
1734
- dev_get_atom_state: (a: Atom<unknown>) => ({
1735
- d: Map<Atom<unknown>, /*elided*/any & ({
1736
- e: unknown;
1737
- } | {
1738
- v: unknown;
1739
- })>;
1740
- } & ({
1741
- e: unknown;
1742
- } | {
1743
- v: unknown;
1744
- })) | undefined;
1745
- dev_get_mounted: (a: Atom<unknown>) => {
1746
- l: Set<() => void>;
1747
- t: Set<Atom<unknown>>;
1748
- u?: () => void;
1749
- } | undefined;
1750
- dev_restore_atoms: (values: Iterable<readonly [Atom<unknown>, unknown]>) => void;
1751
- }>) | null>> & {
1752
- init: Record<string, ({
1753
- get: <Value$1>(atom: Atom<Value$1>) => Value$1;
1754
- set: <Value$1, Args extends unknown[], Result>(atom: jotai10.WritableAtom<Value$1, Args, Result>, ...args: Args) => Result;
1755
- sub: (atom: Atom<unknown>, listener: () => void) => () => void;
1756
- } & Partial<{
1757
- dev_subscribe_store: (l: (action: {
1758
- type: "write";
1759
- flushed: Set<Atom<unknown>>;
1760
- } | {
1761
- type: "async-write";
1762
- flushed: Set<Atom<unknown>>;
1763
- } | {
1764
- type: "sub";
1765
- flushed: Set<Atom<unknown>>;
1766
- } | {
1767
- type: "unsub";
1768
- } | {
1769
- type: "restore";
1770
- flushed: Set<Atom<unknown>>;
1771
- }) => void, rev: 2) => () => void;
1772
- dev_get_mounted_atoms: () => IterableIterator<Atom<unknown>>;
1773
- dev_get_atom_state: (a: Atom<unknown>) => ({
1774
- d: Map<Atom<unknown>, /*elided*/any & ({
1775
- e: unknown;
1776
- } | {
1777
- v: unknown;
1778
- })>;
1779
- } & ({
1780
- e: unknown;
1781
- } | {
1782
- v: unknown;
1783
- })) | undefined;
1784
- dev_get_mounted: (a: Atom<unknown>) => {
1785
- l: Set<() => void>;
1786
- t: Set<Atom<unknown>>;
1787
- u?: () => void;
1788
- } | undefined;
1789
- dev_restore_atoms: (values: Iterable<readonly [Atom<unknown>, unknown]>) => void;
1790
- }>) | null>;
1676
+ editorStores: jotai5.PrimitiveAtom<Record<string, jotai_vanilla_internals0.INTERNAL_Store | null>> & {
1677
+ init: Record<string, jotai_vanilla_internals0.INTERNAL_Store | null>;
1791
1678
  };
1792
- primaryEditorIds: jotai10.PrimitiveAtom<string[]> & {
1679
+ primaryEditorIds: jotai5.PrimitiveAtom<string[]> & {
1793
1680
  init: string[];
1794
1681
  };
1795
1682
  }, object, "plateController">, _usePlateControllerStore: jotai_x2.UseStoreApi<{
1796
- activeId: jotai10.PrimitiveAtom<string | null> & {
1683
+ activeId: jotai5.PrimitiveAtom<string | null> & {
1797
1684
  init: string | null;
1798
1685
  };
1799
- editorStores: jotai10.PrimitiveAtom<Record<string, ({
1800
- get: <Value$1>(atom: Atom<Value$1>) => Value$1;
1801
- set: <Value$1, Args extends unknown[], Result>(atom: jotai10.WritableAtom<Value$1, Args, Result>, ...args: Args) => Result;
1802
- sub: (atom: Atom<unknown>, listener: () => void) => () => void;
1803
- } & Partial<{
1804
- dev_subscribe_store: (l: (action: {
1805
- type: "write";
1806
- flushed: Set<Atom<unknown>>;
1807
- } | {
1808
- type: "async-write";
1809
- flushed: Set<Atom<unknown>>;
1810
- } | {
1811
- type: "sub";
1812
- flushed: Set<Atom<unknown>>;
1813
- } | {
1814
- type: "unsub";
1815
- } | {
1816
- type: "restore";
1817
- flushed: Set<Atom<unknown>>;
1818
- }) => void, rev: 2) => () => void;
1819
- dev_get_mounted_atoms: () => IterableIterator<Atom<unknown>>;
1820
- dev_get_atom_state: (a: Atom<unknown>) => ({
1821
- d: Map<Atom<unknown>, /*elided*/any & ({
1822
- e: unknown;
1823
- } | {
1824
- v: unknown;
1825
- })>;
1826
- } & ({
1827
- e: unknown;
1828
- } | {
1829
- v: unknown;
1830
- })) | undefined;
1831
- dev_get_mounted: (a: Atom<unknown>) => {
1832
- l: Set<() => void>;
1833
- t: Set<Atom<unknown>>;
1834
- u?: () => void;
1835
- } | undefined;
1836
- dev_restore_atoms: (values: Iterable<readonly [Atom<unknown>, unknown]>) => void;
1837
- }>) | null>> & {
1838
- init: Record<string, ({
1839
- get: <Value$1>(atom: Atom<Value$1>) => Value$1;
1840
- set: <Value$1, Args extends unknown[], Result>(atom: jotai10.WritableAtom<Value$1, Args, Result>, ...args: Args) => Result;
1841
- sub: (atom: Atom<unknown>, listener: () => void) => () => void;
1842
- } & Partial<{
1843
- dev_subscribe_store: (l: (action: {
1844
- type: "write";
1845
- flushed: Set<Atom<unknown>>;
1846
- } | {
1847
- type: "async-write";
1848
- flushed: Set<Atom<unknown>>;
1849
- } | {
1850
- type: "sub";
1851
- flushed: Set<Atom<unknown>>;
1852
- } | {
1853
- type: "unsub";
1854
- } | {
1855
- type: "restore";
1856
- flushed: Set<Atom<unknown>>;
1857
- }) => void, rev: 2) => () => void;
1858
- dev_get_mounted_atoms: () => IterableIterator<Atom<unknown>>;
1859
- dev_get_atom_state: (a: Atom<unknown>) => ({
1860
- d: Map<Atom<unknown>, /*elided*/any & ({
1861
- e: unknown;
1862
- } | {
1863
- v: unknown;
1864
- })>;
1865
- } & ({
1866
- e: unknown;
1867
- } | {
1868
- v: unknown;
1869
- })) | undefined;
1870
- dev_get_mounted: (a: Atom<unknown>) => {
1871
- l: Set<() => void>;
1872
- t: Set<Atom<unknown>>;
1873
- u?: () => void;
1874
- } | undefined;
1875
- dev_restore_atoms: (values: Iterable<readonly [Atom<unknown>, unknown]>) => void;
1876
- }>) | null>;
1686
+ editorStores: jotai5.PrimitiveAtom<Record<string, jotai_vanilla_internals0.INTERNAL_Store | null>> & {
1687
+ init: Record<string, jotai_vanilla_internals0.INTERNAL_Store | null>;
1877
1688
  };
1878
- primaryEditorIds: jotai10.PrimitiveAtom<string[]> & {
1689
+ primaryEditorIds: jotai5.PrimitiveAtom<string[]> & {
1879
1690
  init: string[];
1880
1691
  };
1881
1692
  }, object>;
@@ -1994,7 +1805,7 @@ declare const useEditableProps: ({
1994
1805
  * if another node is updated in a way that affects this node's path, this hook
1995
1806
  * will not return the new path.
1996
1807
  */
1997
- declare const useNodePath: (node: TNode) => _platejs_slate20.Path | undefined;
1808
+ declare const useNodePath: (node: TNode) => _platejs_slate19.Path | undefined;
1998
1809
  //#endregion
1999
1810
  //#region src/react/hooks/useSlateProps.d.ts
2000
1811
  type SlateComponentProps = Omit<React$1.ComponentProps<typeof Slate>, 'children'>;
@@ -2009,7 +1820,7 @@ declare const useSlateProps: ({
2009
1820
  }) => PlateSlateProps;
2010
1821
  //#endregion
2011
1822
  //#region src/react/utils/createPlateFallbackEditor.d.ts
2012
- declare const createPlateFallbackEditor: (options?: CreatePlateEditorOptions) => TPlateEditor<_platejs_slate20.Value, PlateCorePlugin>;
1823
+ declare const createPlateFallbackEditor: (options?: CreatePlateEditorOptions) => TPlateEditor<_platejs_slate19.Value, PlateCorePlugin>;
2013
1824
  //#endregion
2014
1825
  //#region src/react/utils/dom-attributes.d.ts
2015
1826
  declare const DOM_HANDLERS: (keyof DOMHandlers)[];
@@ -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-B7ej2XCF";
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-fLEDAjcC";
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.4.6",
3
+ "version": "53.4.7",
4
4
  "description": "The core of Plate – a plugin system for slate",
5
5
  "keywords": [
6
6
  "contentEditable",
@@ -38,9 +38,8 @@
38
38
  "dependencies": {
39
39
  "clsx": "^2.1.1",
40
40
  "is-hotkey": "^0.2.0",
41
- "jotai": "~2.8.4",
41
+ "jotai": "^3.0.0",
42
42
  "jotai-optics": "0.4.0",
43
- "jotai-x": "2.3.4",
44
43
  "lodash": "^4.17.21",
45
44
  "nanoid": "^5.1.5",
46
45
  "optics-ts": "2.4.1",
@@ -55,7 +54,8 @@
55
54
  "@platejs/slate": "npm:@lofcz/platejs-slate@53.4.6",
56
55
  "@udecode/react-hotkeys": "npm:@lofcz/udecode-react-hotkeys@52.3.6",
57
56
  "@udecode/react-utils": "npm:@lofcz/udecode-react-utils@52.3.4",
58
- "@udecode/utils": "npm:@lofcz/udecode-utils@52.3.4"
57
+ "@udecode/utils": "npm:@lofcz/udecode-utils@52.3.4",
58
+ "jotai-x": "npm:@lofcz/jotai-x@2.4.0"
59
59
  },
60
60
  "peerDependencies": {
61
61
  "react": ">=18.0.0",