@lofcz/platejs-core 53.0.0 → 53.1.1

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.
@@ -877,50 +877,6 @@ declare const HistoryPlugin: SlatePlugin<PluginConfig<"history", {}, {}, {}, {}>
877
877
  //#region src/lib/plugins/ParserPlugin.d.ts
878
878
  declare const ParserPlugin: SlatePlugin<PluginConfig<"parser", {}, {}, {}, {}>>;
879
879
  //#endregion
880
- //#region src/lib/plugins/dom/withScrolling.d.ts
881
- type WithAutoScrollOptions = {
882
- mode?: ScrollMode;
883
- operations?: AutoScrollOperationsMap;
884
- scrollOptions?: ScrollIntoViewOptions;
885
- };
886
- declare const withScrolling: (editor: SlateEditor, fn: () => void, options?: WithAutoScrollOptions) => void;
887
- //#endregion
888
- //#region src/lib/plugins/dom/DOMPlugin.d.ts
889
- declare const AUTO_SCROLL: WeakMap<SlateEditor, boolean>;
890
- type AutoScrollOperationsMap = Partial<Record<Operation['type'], boolean>>;
891
- type DomConfig = PluginConfig<'dom', {
892
- /** Choose the first or last matching operation as the scroll target */
893
- scrollMode?: ScrollMode;
894
- /**
895
- * Operations map; false to disable an operation, true or undefined to
896
- * enable
897
- */
898
- scrollOperations?: AutoScrollOperationsMap;
899
- /** Options passed to scrollIntoView */
900
- scrollOptions?: ScrollIntoViewOptions;
901
- }>;
902
- /** Mode for picking target op when multiple enabled */
903
- type ScrollMode = 'first' | 'last';
904
- /**
905
- * Placeholder plugin for DOM interaction, that could be replaced with
906
- * ReactPlugin.
907
- */
908
- declare const DOMPlugin: SlatePlugin<PluginConfig<"dom", {
909
- /** Choose the first or last matching operation as the scroll target */
910
- scrollMode?: ScrollMode;
911
- /**
912
- * Operations map; false to disable an operation, true or undefined to
913
- * enable
914
- */
915
- scrollOperations?: AutoScrollOperationsMap;
916
- /** Options passed to scrollIntoView */
917
- scrollOptions?: ScrollIntoViewOptions;
918
- }, {
919
- isScrolling: () => boolean;
920
- }, {
921
- withScrolling: (fn: () => void, options?: WithAutoScrollOptions | undefined) => void;
922
- }, {}>>;
923
- //#endregion
924
880
  //#region src/lib/plugins/slate-extension/transforms/init.d.ts
925
881
  type InitOptions = {
926
882
  autoSelect?: boolean | 'end' | 'start';
@@ -1050,6 +1006,50 @@ declare const SlateExtensionPlugin: SlatePlugin<PluginConfig<"slateExtension", {
1050
1006
  apply: <N$1 extends _platejs_slate1.TElement | TText>(operation: _platejs_slate1.Operation<N$1>) => void;
1051
1007
  }, {}>>;
1052
1008
  //#endregion
1009
+ //#region src/lib/plugins/dom/withScrolling.d.ts
1010
+ type WithAutoScrollOptions = {
1011
+ mode?: ScrollMode;
1012
+ operations?: AutoScrollOperationsMap;
1013
+ scrollOptions?: ScrollIntoViewOptions;
1014
+ };
1015
+ declare const withScrolling: (editor: SlateEditor, fn: () => void, options?: WithAutoScrollOptions) => void;
1016
+ //#endregion
1017
+ //#region src/lib/plugins/dom/DOMPlugin.d.ts
1018
+ declare const AUTO_SCROLL: WeakMap<SlateEditor, boolean>;
1019
+ type AutoScrollOperationsMap = Partial<Record<Operation['type'], boolean>>;
1020
+ type DomConfig = PluginConfig<'dom', {
1021
+ /** Choose the first or last matching operation as the scroll target */
1022
+ scrollMode?: ScrollMode;
1023
+ /**
1024
+ * Operations map; false to disable an operation, true or undefined to
1025
+ * enable
1026
+ */
1027
+ scrollOperations?: AutoScrollOperationsMap;
1028
+ /** Options passed to scrollIntoView */
1029
+ scrollOptions?: ScrollIntoViewOptions;
1030
+ }>;
1031
+ /** Mode for picking target op when multiple enabled */
1032
+ type ScrollMode = 'first' | 'last';
1033
+ /**
1034
+ * Placeholder plugin for DOM interaction, that could be replaced with
1035
+ * ReactPlugin.
1036
+ */
1037
+ declare const DOMPlugin: SlatePlugin<PluginConfig<"dom", {
1038
+ /** Choose the first or last matching operation as the scroll target */
1039
+ scrollMode?: ScrollMode;
1040
+ /**
1041
+ * Operations map; false to disable an operation, true or undefined to
1042
+ * enable
1043
+ */
1044
+ scrollOperations?: AutoScrollOperationsMap;
1045
+ /** Options passed to scrollIntoView */
1046
+ scrollOptions?: ScrollIntoViewOptions;
1047
+ }, {
1048
+ isScrolling: () => boolean;
1049
+ }, {
1050
+ withScrolling: (fn: () => void, options?: WithAutoScrollOptions | undefined) => void;
1051
+ }, {}>>;
1052
+ //#endregion
1053
1053
  //#region src/lib/plugins/navigation-feedback/types.d.ts
1054
1054
  declare const NAVIGATION_FEEDBACK_KEY = "navigationFeedback";
1055
1055
  declare const NavigationFeedbackPluginKey: {
@@ -1353,15 +1353,7 @@ declare const getCorePlugins: ({
1353
1353
  navigationFeedback,
1354
1354
  nodeId,
1355
1355
  plugins
1356
- }: GetCorePluginsOptions) => (SlatePlugin<PluginConfig<"dom", {
1357
- scrollMode?: ScrollMode;
1358
- scrollOperations?: AutoScrollOperationsMap;
1359
- scrollOptions?: _platejs_slate1.ScrollIntoViewOptions;
1360
- }, {
1361
- isScrolling: () => boolean;
1362
- }, {
1363
- withScrolling: (fn: () => void, options?: WithAutoScrollOptions | undefined) => void;
1364
- }, {}>> | SlatePlugin<DebugConfig> | SlatePlugin<PluginConfig<"slateExtension", {
1356
+ }: GetCorePluginsOptions) => (SlatePlugin<DebugConfig> | SlatePlugin<PluginConfig<"slateExtension", {
1365
1357
  onNodeChange: (options: {
1366
1358
  editor: SlateEditor;
1367
1359
  node: _platejs_slate1.Descendant;
@@ -1388,6 +1380,14 @@ declare const getCorePlugins: ({
1388
1380
  } | undefined) => true | undefined);
1389
1381
  setValue: ((value?: string | _platejs_slate1.Value | undefined) => void) & ((value?: string | _platejs_slate1.Value | undefined) => void);
1390
1382
  apply: <N$1 extends _platejs_slate1.TElement | _platejs_slate1.TText>(operation: _platejs_slate1.Operation<N$1>) => void;
1383
+ }, {}>> | SlatePlugin<PluginConfig<"dom", {
1384
+ scrollMode?: ScrollMode;
1385
+ scrollOperations?: AutoScrollOperationsMap;
1386
+ scrollOptions?: _platejs_slate1.ScrollIntoViewOptions;
1387
+ }, {
1388
+ isScrolling: () => boolean;
1389
+ }, {
1390
+ withScrolling: (fn: () => void, options?: WithAutoScrollOptions | undefined) => void;
1391
1391
  }, {}>> | SlatePlugin<PluginConfig<"navigationFeedback", {
1392
1392
  activeTarget: NavigationFeedbackStoredTarget | null;
1393
1393
  duration: number;
@@ -3029,7 +3029,7 @@ declare const normalizeDescendantsToDocumentFragment: (editor: SlateEditor, {
3029
3029
  }) => Descendant[];
3030
3030
  //#endregion
3031
3031
  //#region src/lib/utils/omitPluginContext.d.ts
3032
- declare const omitPluginContext: <T extends SlatePluginContext<AnySlatePlugin>>(ctx: T) => Omit<T, "api" | "editor" | "plugin" | "type" | "getOption" | "tf" | "getOptions" | "setOptions" | "setOption">;
3032
+ declare const omitPluginContext: <T extends SlatePluginContext<AnySlatePlugin>>(ctx: T) => Omit<T, "api" | "editor" | "plugin" | "getOptions" | "getOption" | "tf" | "type" | "setOptions" | "setOption">;
3033
3033
  //#endregion
3034
3034
  //#region src/lib/utils/overridePluginsByKey.d.ts
3035
3035
  /**
@@ -3048,4 +3048,4 @@ declare const pipeOnNodeChange: (editor: SlateEditor, node: Descendant, prevNode
3048
3048
  //#region src/lib/utils/pipeOnTextChange.d.ts
3049
3049
  declare const pipeOnTextChange: (editor: SlateEditor, node: Descendant, text: string, prevText: string, operation: TextOperation) => boolean;
3050
3050
  //#endregion
3051
- export { TSlateEditor as $, SlateHTMLProps as $a, Serializer as $i, cleanHtmlFontElements as $n, SlateExtensionConfig as $r, upsertInlineFormattingContext as $t, applyDeepToNodes as A, ResolvedInputRule as Aa, AnySlatePlugin as Ai, isHtmlInlineElement as An, AstPlugin as Ao, PlateError as Ar, BaseParagraphPlugin as At, ZustandStoreApi as B, getSelectedDomNode as Ba, InjectNodeProps as Bi, htmlBrToNewLine as Bn, navigate as Br, STATIC_VALUE_CREATED_AT as Bt, isSlateNode as C, InsertDataInputRuleContext as Ca, getPluginType as Ci, pipeDeserializeHtmlLeaf as Cn, SlateRenderLeaf as Co, NodeIdOptions as Cr, NodeComponents as Ct, isSlateText as D, MatchBlockFenceOptions as Da, createSlatePlugin as Di, isOlSymbol as Dn, SlateRenderElement as Do, DebugErrorType as Dr, SelectionRules as Dt, isSlateString as E, MarkInputRuleConfig as Ea, getEditorPlugin as Ei, parseHtmlDocument as En, pipeRenderElementStatic as Eo, normalizeNodeId as Er, PluginConfig as Et, RenderLeafProps as F, TextSubstitutionPattern as Fa, ExtendEditorApi as Fi, inlineTagNames as Fn, getEdgeNodes as Fr, withBreakRules as Ft, WithSlateOptions as G, getPluginDataAttributes as Ga, NodeStaticWrapperComponentReturnType as Gi, someHtmlElement as Gn, NAVIGATION_FEEDBACK_KEY as Gr, createBlockFenceInputRule as Gt, nanoid$1 as H, getSelectedDomBlocks as Ha, NodeStaticProps as Hi, getHtmlComments as Hn, flashTarget as Hr, LengthPlugin as Ht, RenderElementFn as I, stripSlateDataAttributes as Ia, ExtendEditorTransforms as Ii, htmlTextNodeToString as In, EdgeNodes as Ir, OverridePlugin as It, BaseEditor as J, ViewPlugin as Ja, Parser as Ji, deserializeHtmlElement as Jn, NavigationFeedbackPluginKey as Jr, createTextSubstitutionInputRule as Jt, createSlateEditor as K, createStaticString as Ka, NormalizeInitialValue as Ki, deserializeHtmlNodeChildren as Kn, NavigationFeedbackActiveTarget as Kr, createBlockStartInputRule as Kt, RenderElementProps as L, stripHtmlClassNames as La, HtmlDeserializer as Li, htmlStringToDOMNode as Ln, AffinityConfig as Lr, withOverrides as Lt, RenderTextFn as M, SelectionInputRuleContext as Ma, Deserializer as Mi, isHtmlElement as Mn, isNodeAffinity as Mr, withNormalizeRules as Mt, RenderTextProps as N, TextSubstitutionInputRuleConfig as Na, EditorPlugin as Ni, isHtmlComment as Nn, isNodesAffinity as Nr, withMergeRules as Nt, isSlateVoid as O, MatchBlockStartOptions as Oa, createTSlatePlugin as Oi, isHtmlText as On, pluginRenderElementStatic as Oo, DebugPlugin as Or, WithAnyKey as Ot, RenderLeafFn as P, TextSubstitutionMatch as Pa, ExtendEditor as Pi, isHtmlBlockElement as Pn, getMarkBoundaryAffinity as Pr, withDeleteRules as Pt, SlateEditor as Q, SlateElementProps as Qa, RenderStaticNodeWrapperProps as Qi, cleanHtmlLinkElements as Qn, NavigationNavigateOptions as Qr, endInlineFormattingContext as Qt, RenderChunkFn as R, pipeDecorate as Ra, HtmlSerializer as Ri, htmlElementToLeaf as Rn, AffinityPlugin as Rr, withNodeId as Rt, isSlateLeaf as S, InsertDataInputRule as Sa, getPluginKeys as Si, pluginDeserializeHtml as Sn, pluginRenderTextStatic as So, NodeIdConfig as Sr, NodeComponent as St, isSlatePluginNode as T, InsertTextInputRuleContext as Ta, getSlatePlugin as Ti, parseHtmlElement as Tn, pluginRenderLeafStatic as To, NormalizeNodeIdOptions as Tr, ParserOptions as Tt, BaseWithSlateOptions as U, getRenderNodeStaticProps as Ua, NodeStaticWrapperComponent as Ui, getDataNodeProps as Un, resolveNavigationFeedbackTarget as Ur, defineInputRule as Ut, createZustandStore$1 as V, getSelectedDomFragment as Va, LeafStaticProps as Vi, htmlBodyToFragment as Vn, clearNavigationFeedbackTarget as Vr, normalizeStaticValue as Vt, CreateSlateEditorOptions as W, getNodeDataAttributes as Wa, NodeStaticWrapperComponentProps as Wi, findHtmlElement as Wn, NavigationFeedbackPlugin as Wr, createRuleFactory as Wt, KeyofNodePlugins as X, getEditorDOMFromHtmlString as Xa, RenderStaticNodeWrapper as Xi, copyBlockMarksToSpanChild as Xn, NavigationFeedbackTarget as Xr, matchBlockStart as Xt, InferPlugins as Y, createStaticEditor as Ya, PartialEditorPlugin as Yi, deserializeHtml as Yn, NavigationFeedbackStoredTarget as Yr, matchBlockFence as Yt, KeyofPlugins as Z, SlateElement as Za, RenderStaticNodeWrapperFunction as Zi, cleanHtmlTextNodes as Zn, NavigationFlashTargetOptions as Zr, matchDelimitedInline as Zt, getInjectMatch as _, InputRulesConfig as _a, HistoryPlugin as _i, replaceTagName as _n, LeafStatic as _o, GetCorePluginsOptions as _r, InferOptions as _t, omitPluginContext as a, SlateShortcut as aa, InsertExitBreakOptions as ai, collapseWhiteSpaceChildren as an, StyledSlateElementProps as ao, CARRIAGE_RETURN as ar, BasePluginContext as at, isSlateEditor as b, InsertBreakInputRule as ba, getPluginByType as bi, preCleanHtml as bn, SlateRenderText as bo, ChunkingConfig as br, MatchRules as bt, isType as c, AnyInputRule as ca, init as ci, CollapseWhiteSpaceState as cn, useNodeAttributes as co, SPACE as cr, BaseTransformOptions as ct, isHotkey as d, BlockFenceInputRuleMatch as da, DOMPlugin as di, WhiteSpaceRule as dn, SlateRenderLeafProps as do, HtmlPlugin as dr, EditOnlyConfig as dt, SlatePlugin as ea, SlateExtensionPlugin as ei, isLastNonEmptyTextOfInlineFormattingContext as en, SlateLeaf as eo, cleanHtmlEmptyElements as er, AnyPluginConfig as et, getSlateClass as f, BlockStartInputRuleConfig as fa, DomConfig as fi, unwrapHtmlElement as fn, SlateRenderNodeProps as fo, withChunking as fr, ExtendConfig as ft, getInjectedPlugins as g, InputRuleTarget as ga, ParserPlugin as gi, traverseHtmlComments as gn, ElementStatic as go, DebugConfig as gr, InferKey as gt, keyToDataAttribute as h, InputRuleBuilder as ha, withScrolling as hi, traverseHtmlElements as hn, serializeHtml as ho, CorePluginTransforms as hr, InferApi as ht, overridePluginsByKey as i, SlatePlugins as ia, liftBlock as ii, collapseWhiteSpaceElement as in, SlateTextProps as io, DeserializeHtmlNodeReturnType as ir, BasePlugin as it, EditableProps as j, ResolvedInputRulesMeta as ja, Decorate as ji, isHtmlFragmentHref as jn, setAffinitySelection as jr, ParagraphConfig as jt, ApplyDeepToNodesOptions as k, MatchDelimitedInlineOptions as ka, AnyEditorPlugin as ki, isHtmlTable as kn, HandlerReturnType as ko, LogLevel as kr, WithRequiredKey as kt, Hotkeys as l, BaseInputRule as la, AUTO_SCROLL as li, TrimEndRule as ln, BoxStaticProps as lo, TAB as lr, BreakRules as lt, getNodeDataAttributeKeys as m, DelimitedInlineInputRuleMatch as ma, WithAutoScrollOptions as mi, traverseHtmlNode as mn, SerializeHtmlOptions as mo, CorePluginApi as mr, GetInjectNodePropsReturnType as mt, pipeOnNodeChange as n, SlatePluginContext as na, resetBlock as ni, collapseWhiteSpaceText as nn, SlateNodeProps as no, cleanHtmlBrElements as nr, BaseHtmlDeserializer as nt, normalizeDescendantsToDocumentFragment as o, TextStaticProps as oa, insertExitBreak as oi, collapseWhiteSpace as on, StyledSlateLeafProps as oo, LINE_FEED as or, BasePluginNode as ot, getPluginNodeProps as p, BlockStartInputRuleMatch as pa, ScrollMode as pi, traverseHtmlTexts as pn, SlateRenderTextProps as po, CorePlugin as pr, GetInjectNodePropsOptions as pt, withSlate as q, getStaticPlugins as qa, OverrideEditor as qi, deserializeHtmlNode as qn, NavigationFeedbackConfig as qr, createMarkInputRule as qt, pipeInsertDataQuery as r, SlatePluginMethods as ra, LiftBlockOptions as ri, collapseWhiteSpaceNode as rn, SlateText as ro, DeserializeHtmlChildren as rr, BaseInjectProps as rt, mergeDeepToNodes as s, TransformOptions as sa, InitOptions as si, collapseString as sn, StyledSlateTextProps as so, NO_BREAK_SPACE as sr, BaseSerializer as st, pipeOnTextChange as t, SlatePluginConfig$1 as ta, setValue as ti, inferWhiteSpaceRule as tn, SlateLeafProps as to, cleanHtmlCrLf as tr, BaseDeserializer as tt, createHotkey as u, BlockFenceInputRuleConfig as ua, AutoScrollOperationsMap as ui, TrimStartRule as un, SlateRenderElementProps as uo, ZERO_WIDTH_SPACE as ur, DeleteRules as ut, defaultsDeepToNodes as v, InputRulesDefinition as va, withPlateHistory as vi, removeHtmlSurroundings as vn, PlateStatic as vo, LengthConfig as vr, InferSelectors as vt, isSlatePluginElement as w, InsertTextInputRule as wa, getPluginTypes as wi, pipeDeserializeHtmlElement as wn, pipeRenderLeafStatic as wo, NodeIdPlugin as wr, NormalizeRules as wt, isSlateElement as x, InsertBreakInputRuleContext as xa, getPluginKey as xi, postCleanHtml as xn, pipeRenderTextStatic as xo, ChunkingPlugin as xr, MergeRules as xt, getSlateElements as y, InputRulesFactoryContext as ya, getContainerTypes as yi, removeHtmlNodesBetweenComments as yn, PlateStaticProps as yo, getCorePlugins as yr, InferTransforms as yt, RenderChunkProps as z, isSelectOutside as za, InferConfig as zi, htmlElementToElement as zn, ElementAffinity as zr, NormalizeStaticValueOptions as zt };
3051
+ export { TSlateEditor as $, SlateHTMLProps as $a, Serializer as $i, cleanHtmlFontElements as $n, AUTO_SCROLL as $r, upsertInlineFormattingContext as $t, applyDeepToNodes as A, ResolvedInputRule as Aa, AnySlatePlugin as Ai, isHtmlInlineElement as An, AstPlugin as Ao, PlateError as Ar, BaseParagraphPlugin as At, ZustandStoreApi as B, getSelectedDomNode as Ba, InjectNodeProps as Bi, htmlBrToNewLine as Bn, navigate as Br, STATIC_VALUE_CREATED_AT as Bt, isSlateNode as C, InsertDataInputRuleContext as Ca, getPluginType as Ci, pipeDeserializeHtmlLeaf as Cn, SlateRenderLeaf as Co, NodeIdOptions as Cr, NodeComponents as Ct, isSlateText as D, MatchBlockFenceOptions as Da, createSlatePlugin as Di, isOlSymbol as Dn, SlateRenderElement as Do, DebugErrorType as Dr, SelectionRules as Dt, isSlateString as E, MarkInputRuleConfig as Ea, getEditorPlugin as Ei, parseHtmlDocument as En, pipeRenderElementStatic as Eo, normalizeNodeId as Er, PluginConfig as Et, RenderLeafProps as F, TextSubstitutionPattern as Fa, ExtendEditorApi as Fi, inlineTagNames as Fn, getEdgeNodes as Fr, withBreakRules as Ft, WithSlateOptions as G, getPluginDataAttributes as Ga, NodeStaticWrapperComponentReturnType as Gi, someHtmlElement as Gn, NAVIGATION_FEEDBACK_KEY as Gr, createBlockFenceInputRule as Gt, nanoid$1 as H, getSelectedDomBlocks as Ha, NodeStaticProps as Hi, getHtmlComments as Hn, flashTarget as Hr, LengthPlugin as Ht, RenderElementFn as I, stripSlateDataAttributes as Ia, ExtendEditorTransforms as Ii, htmlTextNodeToString as In, EdgeNodes as Ir, OverridePlugin as It, BaseEditor as J, ViewPlugin as Ja, Parser as Ji, deserializeHtmlElement as Jn, NavigationFeedbackPluginKey as Jr, createTextSubstitutionInputRule as Jt, createSlateEditor as K, createStaticString as Ka, NormalizeInitialValue as Ki, deserializeHtmlNodeChildren as Kn, NavigationFeedbackActiveTarget as Kr, createBlockStartInputRule as Kt, RenderElementProps as L, stripHtmlClassNames as La, HtmlDeserializer as Li, htmlStringToDOMNode as Ln, AffinityConfig as Lr, withOverrides as Lt, RenderTextFn as M, SelectionInputRuleContext as Ma, Deserializer as Mi, isHtmlElement as Mn, isNodeAffinity as Mr, withNormalizeRules as Mt, RenderTextProps as N, TextSubstitutionInputRuleConfig as Na, EditorPlugin as Ni, isHtmlComment as Nn, isNodesAffinity as Nr, withMergeRules as Nt, isSlateVoid as O, MatchBlockStartOptions as Oa, createTSlatePlugin as Oi, isHtmlText as On, pluginRenderElementStatic as Oo, DebugPlugin as Or, WithAnyKey as Ot, RenderLeafFn as P, TextSubstitutionMatch as Pa, ExtendEditor as Pi, isHtmlBlockElement as Pn, getMarkBoundaryAffinity as Pr, withDeleteRules as Pt, SlateEditor as Q, SlateElementProps as Qa, RenderStaticNodeWrapperProps as Qi, cleanHtmlLinkElements as Qn, NavigationNavigateOptions as Qr, endInlineFormattingContext as Qt, RenderChunkFn as R, pipeDecorate as Ra, HtmlSerializer as Ri, htmlElementToLeaf as Rn, AffinityPlugin as Rr, withNodeId as Rt, isSlateLeaf as S, InsertDataInputRule as Sa, getPluginKeys as Si, pluginDeserializeHtml as Sn, pluginRenderTextStatic as So, NodeIdConfig as Sr, NodeComponent as St, isSlatePluginNode as T, InsertTextInputRuleContext as Ta, getSlatePlugin as Ti, parseHtmlElement as Tn, pluginRenderLeafStatic as To, NormalizeNodeIdOptions as Tr, ParserOptions as Tt, BaseWithSlateOptions as U, getRenderNodeStaticProps as Ua, NodeStaticWrapperComponent as Ui, getDataNodeProps as Un, resolveNavigationFeedbackTarget as Ur, defineInputRule as Ut, createZustandStore$1 as V, getSelectedDomFragment as Va, LeafStaticProps as Vi, htmlBodyToFragment as Vn, clearNavigationFeedbackTarget as Vr, normalizeStaticValue as Vt, CreateSlateEditorOptions as W, getNodeDataAttributes as Wa, NodeStaticWrapperComponentProps as Wi, findHtmlElement as Wn, NavigationFeedbackPlugin as Wr, createRuleFactory as Wt, KeyofNodePlugins as X, getEditorDOMFromHtmlString as Xa, RenderStaticNodeWrapper as Xi, copyBlockMarksToSpanChild as Xn, NavigationFeedbackTarget as Xr, matchBlockStart as Xt, InferPlugins as Y, createStaticEditor as Ya, PartialEditorPlugin as Yi, deserializeHtml as Yn, NavigationFeedbackStoredTarget as Yr, matchBlockFence as Yt, KeyofPlugins as Z, SlateElement as Za, RenderStaticNodeWrapperFunction as Zi, cleanHtmlTextNodes as Zn, NavigationFlashTargetOptions as Zr, matchDelimitedInline as Zt, getInjectMatch as _, InputRulesConfig as _a, HistoryPlugin as _i, replaceTagName as _n, LeafStatic as _o, GetCorePluginsOptions as _r, InferOptions as _t, omitPluginContext as a, SlateShortcut as aa, withScrolling as ai, collapseWhiteSpaceChildren as an, StyledSlateElementProps as ao, CARRIAGE_RETURN as ar, BasePluginContext as at, isSlateEditor as b, InsertBreakInputRule as ba, getPluginByType as bi, preCleanHtml as bn, SlateRenderText as bo, ChunkingConfig as br, MatchRules as bt, isType as c, AnyInputRule as ca, setValue as ci, CollapseWhiteSpaceState as cn, useNodeAttributes as co, SPACE as cr, BaseTransformOptions as ct, isHotkey as d, BlockFenceInputRuleMatch as da, liftBlock as di, WhiteSpaceRule as dn, SlateRenderLeafProps as do, HtmlPlugin as dr, EditOnlyConfig as dt, SlatePlugin as ea, AutoScrollOperationsMap as ei, isLastNonEmptyTextOfInlineFormattingContext as en, SlateLeaf as eo, cleanHtmlEmptyElements as er, AnyPluginConfig as et, getSlateClass as f, BlockStartInputRuleConfig as fa, InsertExitBreakOptions as fi, unwrapHtmlElement as fn, SlateRenderNodeProps as fo, withChunking as fr, ExtendConfig as ft, getInjectedPlugins as g, InputRuleTarget as ga, ParserPlugin as gi, traverseHtmlComments as gn, ElementStatic as go, DebugConfig as gr, InferKey as gt, keyToDataAttribute as h, InputRuleBuilder as ha, init as hi, traverseHtmlElements as hn, serializeHtml as ho, CorePluginTransforms as hr, InferApi as ht, overridePluginsByKey as i, SlatePlugins as ia, WithAutoScrollOptions as ii, collapseWhiteSpaceElement as in, SlateTextProps as io, DeserializeHtmlNodeReturnType as ir, BasePlugin as it, EditableProps as j, ResolvedInputRulesMeta as ja, Decorate as ji, isHtmlFragmentHref as jn, setAffinitySelection as jr, ParagraphConfig as jt, ApplyDeepToNodesOptions as k, MatchDelimitedInlineOptions as ka, AnyEditorPlugin as ki, isHtmlTable as kn, HandlerReturnType as ko, LogLevel as kr, WithRequiredKey as kt, Hotkeys as l, BaseInputRule as la, resetBlock as li, TrimEndRule as ln, BoxStaticProps as lo, TAB as lr, BreakRules as lt, getNodeDataAttributeKeys as m, DelimitedInlineInputRuleMatch as ma, InitOptions as mi, traverseHtmlNode as mn, SerializeHtmlOptions as mo, CorePluginApi as mr, GetInjectNodePropsReturnType as mt, pipeOnNodeChange as n, SlatePluginContext as na, DomConfig as ni, collapseWhiteSpaceText as nn, SlateNodeProps as no, cleanHtmlBrElements as nr, BaseHtmlDeserializer as nt, normalizeDescendantsToDocumentFragment as o, TextStaticProps as oa, SlateExtensionConfig as oi, collapseWhiteSpace as on, StyledSlateLeafProps as oo, LINE_FEED as or, BasePluginNode as ot, getPluginNodeProps as p, BlockStartInputRuleMatch as pa, insertExitBreak as pi, traverseHtmlTexts as pn, SlateRenderTextProps as po, CorePlugin as pr, GetInjectNodePropsOptions as pt, withSlate as q, getStaticPlugins as qa, OverrideEditor as qi, deserializeHtmlNode as qn, NavigationFeedbackConfig as qr, createMarkInputRule as qt, pipeInsertDataQuery as r, SlatePluginMethods as ra, ScrollMode as ri, collapseWhiteSpaceNode as rn, SlateText as ro, DeserializeHtmlChildren as rr, BaseInjectProps as rt, mergeDeepToNodes as s, TransformOptions as sa, SlateExtensionPlugin as si, collapseString as sn, StyledSlateTextProps as so, NO_BREAK_SPACE as sr, BaseSerializer as st, pipeOnTextChange as t, SlatePluginConfig$1 as ta, DOMPlugin as ti, inferWhiteSpaceRule as tn, SlateLeafProps as to, cleanHtmlCrLf as tr, BaseDeserializer as tt, createHotkey as u, BlockFenceInputRuleConfig as ua, LiftBlockOptions as ui, TrimStartRule as un, SlateRenderElementProps as uo, ZERO_WIDTH_SPACE as ur, DeleteRules as ut, defaultsDeepToNodes as v, InputRulesDefinition as va, withPlateHistory as vi, removeHtmlSurroundings as vn, PlateStatic as vo, LengthConfig as vr, InferSelectors as vt, isSlatePluginElement as w, InsertTextInputRule as wa, getPluginTypes as wi, pipeDeserializeHtmlElement as wn, pipeRenderLeafStatic as wo, NodeIdPlugin as wr, NormalizeRules as wt, isSlateElement as x, InsertBreakInputRuleContext as xa, getPluginKey as xi, postCleanHtml as xn, pipeRenderTextStatic as xo, ChunkingPlugin as xr, MergeRules as xt, getSlateElements as y, InputRulesFactoryContext as ya, getContainerTypes as yi, removeHtmlNodesBetweenComments as yn, PlateStaticProps as yo, getCorePlugins as yr, InferTransforms as yt, RenderChunkProps as z, isSelectOutside as za, InferConfig as zi, htmlElementToElement as zn, ElementAffinity as zr, NormalizeStaticValueOptions as zt };
package/dist/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { $ as TSlateEditor, $i as Serializer, $n as cleanHtmlFontElements, $r as SlateExtensionConfig, $t as upsertInlineFormattingContext, A as applyDeepToNodes, Aa as ResolvedInputRule, Ai as AnySlatePlugin, An as isHtmlInlineElement, Ao as AstPlugin, Ar as PlateError, At as BaseParagraphPlugin, B as ZustandStoreApi, Bi as InjectNodeProps, Bn as htmlBrToNewLine, Br as navigate, Bt as STATIC_VALUE_CREATED_AT, C as isSlateNode, Ca as InsertDataInputRuleContext, Ci as getPluginType, Cn as pipeDeserializeHtmlLeaf, Cr as NodeIdOptions, Ct as NodeComponents, D as isSlateText, Da as MatchBlockFenceOptions, Di as createSlatePlugin, Dn as isOlSymbol, Dr as DebugErrorType, Dt as SelectionRules, E as isSlateString, Ea as MarkInputRuleConfig, Ei as getEditorPlugin, En as parseHtmlDocument, Er as normalizeNodeId, Et as PluginConfig, F as RenderLeafProps, Fa as TextSubstitutionPattern, Fi as ExtendEditorApi, Fn as inlineTagNames, Fr as getEdgeNodes, Ft as withBreakRules, G as WithSlateOptions, Gi as NodeStaticWrapperComponentReturnType, Gn as someHtmlElement, Gr as NAVIGATION_FEEDBACK_KEY, Gt as createBlockFenceInputRule, H as nanoid, Hi as NodeStaticProps, Hn as getHtmlComments, Hr as flashTarget, Ht as LengthPlugin, I as RenderElementFn, Ii as ExtendEditorTransforms, In as htmlTextNodeToString, Ir as EdgeNodes, It as OverridePlugin, J as BaseEditor, Ji as Parser, Jn as deserializeHtmlElement, Jr as NavigationFeedbackPluginKey, Jt as createTextSubstitutionInputRule, K as createSlateEditor, Ki as NormalizeInitialValue, Kn as deserializeHtmlNodeChildren, Kr as NavigationFeedbackActiveTarget, Kt as createBlockStartInputRule, L as RenderElementProps, Li as HtmlDeserializer, Ln as htmlStringToDOMNode, Lr as AffinityConfig, Lt as withOverrides, M as RenderTextFn, Ma as SelectionInputRuleContext, Mi as Deserializer, Mn as isHtmlElement, Mr as isNodeAffinity, Mt as withNormalizeRules, N as RenderTextProps, Na as TextSubstitutionInputRuleConfig, Ni as EditorPlugin, Nn as isHtmlComment, Nr as isNodesAffinity, Nt as withMergeRules, O as isSlateVoid, Oa as MatchBlockStartOptions, Oi as createTSlatePlugin, On as isHtmlText, Or as DebugPlugin, Ot as WithAnyKey, P as RenderLeafFn, Pa as TextSubstitutionMatch, Pi as ExtendEditor, Pn as isHtmlBlockElement, Pr as getMarkBoundaryAffinity, Pt as withDeleteRules, Q as SlateEditor, Qi as RenderStaticNodeWrapperProps, Qn as cleanHtmlLinkElements, Qr as NavigationNavigateOptions, Qt as endInlineFormattingContext, R as RenderChunkFn, Ri as HtmlSerializer, Rn as htmlElementToLeaf, Rr as AffinityPlugin, Rt as withNodeId, S as isSlateLeaf, Sa as InsertDataInputRule, Si as getPluginKeys, Sn as pluginDeserializeHtml, Sr as NodeIdConfig, St as NodeComponent, T as isSlatePluginNode, Ta as InsertTextInputRuleContext, Ti as getSlatePlugin, Tn as parseHtmlElement, Tr as NormalizeNodeIdOptions, Tt as ParserOptions, U as BaseWithSlateOptions, Ui as NodeStaticWrapperComponent, Un as getDataNodeProps, Ur as resolveNavigationFeedbackTarget, Ut as defineInputRule, V as createZustandStore, Vi as LeafStaticProps, Vn as htmlBodyToFragment, Vr as clearNavigationFeedbackTarget, Vt as normalizeStaticValue, W as CreateSlateEditorOptions, Wi as NodeStaticWrapperComponentProps, Wn as findHtmlElement, Wr as NavigationFeedbackPlugin, Wt as createRuleFactory, X as KeyofNodePlugins, Xi as RenderStaticNodeWrapper, Xn as copyBlockMarksToSpanChild, Xr as NavigationFeedbackTarget, Xt as matchBlockStart, Y as InferPlugins, Yi as PartialEditorPlugin, Yn as deserializeHtml, Yr as NavigationFeedbackStoredTarget, Yt as matchBlockFence, Z as KeyofPlugins, Zi as RenderStaticNodeWrapperFunction, Zn as cleanHtmlTextNodes, Zr as NavigationFlashTargetOptions, Zt as matchDelimitedInline, _ as getInjectMatch, _a as InputRulesConfig, _i as HistoryPlugin, _n as replaceTagName, _r as GetCorePluginsOptions, _t as InferOptions, a as omitPluginContext, aa as SlateShortcut, ai as InsertExitBreakOptions, an as collapseWhiteSpaceChildren, ar as CARRIAGE_RETURN, at as BasePluginContext, b as isSlateEditor, ba as InsertBreakInputRule, bi as getPluginByType, bn as preCleanHtml, br as ChunkingConfig, bt as MatchRules, c as isType, ca as AnyInputRule, ci as init, cn as CollapseWhiteSpaceState, cr as SPACE, ct as BaseTransformOptions, d as isHotkey, da as BlockFenceInputRuleMatch, di as DOMPlugin, dn as WhiteSpaceRule, dr as HtmlPlugin, dt as EditOnlyConfig, ea as SlatePlugin, ei as SlateExtensionPlugin, en as isLastNonEmptyTextOfInlineFormattingContext, er as cleanHtmlEmptyElements, et as AnyPluginConfig, f as getSlateClass, fa as BlockStartInputRuleConfig, fi as DomConfig, fn as unwrapHtmlElement, fr as withChunking, ft as ExtendConfig, g as getInjectedPlugins, ga as InputRuleTarget, gi as ParserPlugin, gn as traverseHtmlComments, gr as DebugConfig, gt as InferKey, h as keyToDataAttribute, ha as InputRuleBuilder, hi as withScrolling, hn as traverseHtmlElements, hr as CorePluginTransforms, ht as InferApi, i as overridePluginsByKey, ia as SlatePlugins, ii as liftBlock, in as collapseWhiteSpaceElement, ir as DeserializeHtmlNodeReturnType, it as BasePlugin, j as EditableProps, ja as ResolvedInputRulesMeta, ji as Decorate, jn as isHtmlFragmentHref, jr as setAffinitySelection, jt as ParagraphConfig, k as ApplyDeepToNodesOptions, ka as MatchDelimitedInlineOptions, ki as AnyEditorPlugin, kn as isHtmlTable, ko as HandlerReturnType, kr as LogLevel, kt as WithRequiredKey, l as Hotkeys, la as BaseInputRule, li as AUTO_SCROLL, ln as TrimEndRule, lr as TAB, lt as BreakRules, m as getNodeDataAttributeKeys, ma as DelimitedInlineInputRuleMatch, mi as WithAutoScrollOptions, mn as traverseHtmlNode, mr as CorePluginApi, mt as GetInjectNodePropsReturnType, n as pipeOnNodeChange, na as SlatePluginContext, ni as resetBlock, nn as collapseWhiteSpaceText, nr as cleanHtmlBrElements, nt as BaseHtmlDeserializer, o as normalizeDescendantsToDocumentFragment, oa as TextStaticProps, oi as insertExitBreak, on as collapseWhiteSpace, or as LINE_FEED, ot as BasePluginNode, p as getPluginNodeProps, pa as BlockStartInputRuleMatch, pi as ScrollMode, pn as traverseHtmlTexts, pr as CorePlugin, pt as GetInjectNodePropsOptions, q as withSlate, qi as OverrideEditor, qn as deserializeHtmlNode, qr as NavigationFeedbackConfig, qt as createMarkInputRule, r as pipeInsertDataQuery, ra as SlatePluginMethods, ri as LiftBlockOptions, rn as collapseWhiteSpaceNode, rr as DeserializeHtmlChildren, rt as BaseInjectProps, s as mergeDeepToNodes, sa as TransformOptions, si as InitOptions, sn as collapseString, sr as NO_BREAK_SPACE, st as BaseSerializer, t as pipeOnTextChange, ta as SlatePluginConfig, ti as setValue, tn as inferWhiteSpaceRule, tr as cleanHtmlCrLf, tt as BaseDeserializer, u as createHotkey, ua as BlockFenceInputRuleConfig, ui as AutoScrollOperationsMap, un as TrimStartRule, ur as ZERO_WIDTH_SPACE, ut as DeleteRules, v as defaultsDeepToNodes, va as InputRulesDefinition, vi as withPlateHistory, vn as removeHtmlSurroundings, vr as LengthConfig, vt as InferSelectors, w as isSlatePluginElement, wa as InsertTextInputRule, wi as getPluginTypes, wn as pipeDeserializeHtmlElement, wr as NodeIdPlugin, wt as NormalizeRules, x as isSlateElement, xa as InsertBreakInputRuleContext, xi as getPluginKey, xn as postCleanHtml, xr as ChunkingPlugin, xt as MergeRules, y as getSlateElements, ya as InputRulesFactoryContext, yi as getContainerTypes, yn as removeHtmlNodesBetweenComments, yr as getCorePlugins, yt as InferTransforms, z as RenderChunkProps, zi as InferConfig, zn as htmlElementToElement, zr as ElementAffinity, zt as NormalizeStaticValueOptions } from "./index-C-LKDYK-";
1
+ import { $ as TSlateEditor, $i as Serializer, $n as cleanHtmlFontElements, $r as AUTO_SCROLL, $t as upsertInlineFormattingContext, A as applyDeepToNodes, Aa as ResolvedInputRule, Ai as AnySlatePlugin, An as isHtmlInlineElement, Ao as AstPlugin, Ar as PlateError, At as BaseParagraphPlugin, B as ZustandStoreApi, Bi as InjectNodeProps, Bn as htmlBrToNewLine, Br as navigate, Bt as STATIC_VALUE_CREATED_AT, C as isSlateNode, Ca as InsertDataInputRuleContext, Ci as getPluginType, Cn as pipeDeserializeHtmlLeaf, Cr as NodeIdOptions, Ct as NodeComponents, D as isSlateText, Da as MatchBlockFenceOptions, Di as createSlatePlugin, Dn as isOlSymbol, Dr as DebugErrorType, Dt as SelectionRules, E as isSlateString, Ea as MarkInputRuleConfig, Ei as getEditorPlugin, En as parseHtmlDocument, Er as normalizeNodeId, Et as PluginConfig, F as RenderLeafProps, Fa as TextSubstitutionPattern, Fi as ExtendEditorApi, Fn as inlineTagNames, Fr as getEdgeNodes, Ft as withBreakRules, G as WithSlateOptions, Gi as NodeStaticWrapperComponentReturnType, Gn as someHtmlElement, Gr as NAVIGATION_FEEDBACK_KEY, Gt as createBlockFenceInputRule, H as nanoid, Hi as NodeStaticProps, Hn as getHtmlComments, Hr as flashTarget, Ht as LengthPlugin, I as RenderElementFn, Ii as ExtendEditorTransforms, In as htmlTextNodeToString, Ir as EdgeNodes, It as OverridePlugin, J as BaseEditor, Ji as Parser, Jn as deserializeHtmlElement, Jr as NavigationFeedbackPluginKey, Jt as createTextSubstitutionInputRule, K as createSlateEditor, Ki as NormalizeInitialValue, Kn as deserializeHtmlNodeChildren, Kr as NavigationFeedbackActiveTarget, Kt as createBlockStartInputRule, L as RenderElementProps, Li as HtmlDeserializer, Ln as htmlStringToDOMNode, Lr as AffinityConfig, Lt as withOverrides, M as RenderTextFn, Ma as SelectionInputRuleContext, Mi as Deserializer, Mn as isHtmlElement, Mr as isNodeAffinity, Mt as withNormalizeRules, N as RenderTextProps, Na as TextSubstitutionInputRuleConfig, Ni as EditorPlugin, Nn as isHtmlComment, Nr as isNodesAffinity, Nt as withMergeRules, O as isSlateVoid, Oa as MatchBlockStartOptions, Oi as createTSlatePlugin, On as isHtmlText, Or as DebugPlugin, Ot as WithAnyKey, P as RenderLeafFn, Pa as TextSubstitutionMatch, Pi as ExtendEditor, Pn as isHtmlBlockElement, Pr as getMarkBoundaryAffinity, Pt as withDeleteRules, Q as SlateEditor, Qi as RenderStaticNodeWrapperProps, Qn as cleanHtmlLinkElements, Qr as NavigationNavigateOptions, Qt as endInlineFormattingContext, R as RenderChunkFn, Ri as HtmlSerializer, Rn as htmlElementToLeaf, Rr as AffinityPlugin, Rt as withNodeId, S as isSlateLeaf, Sa as InsertDataInputRule, Si as getPluginKeys, Sn as pluginDeserializeHtml, Sr as NodeIdConfig, St as NodeComponent, T as isSlatePluginNode, Ta as InsertTextInputRuleContext, Ti as getSlatePlugin, Tn as parseHtmlElement, Tr as NormalizeNodeIdOptions, Tt as ParserOptions, U as BaseWithSlateOptions, Ui as NodeStaticWrapperComponent, Un as getDataNodeProps, Ur as resolveNavigationFeedbackTarget, Ut as defineInputRule, V as createZustandStore, Vi as LeafStaticProps, Vn as htmlBodyToFragment, Vr as clearNavigationFeedbackTarget, Vt as normalizeStaticValue, W as CreateSlateEditorOptions, Wi as NodeStaticWrapperComponentProps, Wn as findHtmlElement, Wr as NavigationFeedbackPlugin, Wt as createRuleFactory, X as KeyofNodePlugins, Xi as RenderStaticNodeWrapper, Xn as copyBlockMarksToSpanChild, Xr as NavigationFeedbackTarget, Xt as matchBlockStart, Y as InferPlugins, Yi as PartialEditorPlugin, Yn as deserializeHtml, Yr as NavigationFeedbackStoredTarget, Yt as matchBlockFence, Z as KeyofPlugins, Zi as RenderStaticNodeWrapperFunction, Zn as cleanHtmlTextNodes, Zr as NavigationFlashTargetOptions, Zt as matchDelimitedInline, _ as getInjectMatch, _a as InputRulesConfig, _i as HistoryPlugin, _n as replaceTagName, _r as GetCorePluginsOptions, _t as InferOptions, a as omitPluginContext, aa as SlateShortcut, ai as withScrolling, an as collapseWhiteSpaceChildren, ar as CARRIAGE_RETURN, at as BasePluginContext, b as isSlateEditor, ba as InsertBreakInputRule, bi as getPluginByType, bn as preCleanHtml, br as ChunkingConfig, bt as MatchRules, c as isType, ca as AnyInputRule, ci as setValue, cn as CollapseWhiteSpaceState, cr as SPACE, ct as BaseTransformOptions, d as isHotkey, da as BlockFenceInputRuleMatch, di as liftBlock, dn as WhiteSpaceRule, dr as HtmlPlugin, dt as EditOnlyConfig, ea as SlatePlugin, ei as AutoScrollOperationsMap, en as isLastNonEmptyTextOfInlineFormattingContext, er as cleanHtmlEmptyElements, et as AnyPluginConfig, f as getSlateClass, fa as BlockStartInputRuleConfig, fi as InsertExitBreakOptions, fn as unwrapHtmlElement, fr as withChunking, ft as ExtendConfig, g as getInjectedPlugins, ga as InputRuleTarget, gi as ParserPlugin, gn as traverseHtmlComments, gr as DebugConfig, gt as InferKey, h as keyToDataAttribute, ha as InputRuleBuilder, hi as init, hn as traverseHtmlElements, hr as CorePluginTransforms, ht as InferApi, i as overridePluginsByKey, ia as SlatePlugins, ii as WithAutoScrollOptions, in as collapseWhiteSpaceElement, ir as DeserializeHtmlNodeReturnType, it as BasePlugin, j as EditableProps, ja as ResolvedInputRulesMeta, ji as Decorate, jn as isHtmlFragmentHref, jr as setAffinitySelection, jt as ParagraphConfig, k as ApplyDeepToNodesOptions, ka as MatchDelimitedInlineOptions, ki as AnyEditorPlugin, kn as isHtmlTable, ko as HandlerReturnType, kr as LogLevel, kt as WithRequiredKey, l as Hotkeys, la as BaseInputRule, li as resetBlock, ln as TrimEndRule, lr as TAB, lt as BreakRules, m as getNodeDataAttributeKeys, ma as DelimitedInlineInputRuleMatch, mi as InitOptions, mn as traverseHtmlNode, mr as CorePluginApi, mt as GetInjectNodePropsReturnType, n as pipeOnNodeChange, na as SlatePluginContext, ni as DomConfig, nn as collapseWhiteSpaceText, nr as cleanHtmlBrElements, nt as BaseHtmlDeserializer, o as normalizeDescendantsToDocumentFragment, oa as TextStaticProps, oi as SlateExtensionConfig, on as collapseWhiteSpace, or as LINE_FEED, ot as BasePluginNode, p as getPluginNodeProps, pa as BlockStartInputRuleMatch, pi as insertExitBreak, pn as traverseHtmlTexts, pr as CorePlugin, pt as GetInjectNodePropsOptions, q as withSlate, qi as OverrideEditor, qn as deserializeHtmlNode, qr as NavigationFeedbackConfig, qt as createMarkInputRule, r as pipeInsertDataQuery, ra as SlatePluginMethods, ri as ScrollMode, rn as collapseWhiteSpaceNode, rr as DeserializeHtmlChildren, rt as BaseInjectProps, s as mergeDeepToNodes, sa as TransformOptions, si as SlateExtensionPlugin, sn as collapseString, sr as NO_BREAK_SPACE, st as BaseSerializer, t as pipeOnTextChange, ta as SlatePluginConfig, ti as DOMPlugin, tn as inferWhiteSpaceRule, tr as cleanHtmlCrLf, tt as BaseDeserializer, u as createHotkey, ua as BlockFenceInputRuleConfig, ui as LiftBlockOptions, un as TrimStartRule, ur as ZERO_WIDTH_SPACE, ut as DeleteRules, v as defaultsDeepToNodes, va as InputRulesDefinition, vi as withPlateHistory, vn as removeHtmlSurroundings, vr as LengthConfig, vt as InferSelectors, w as isSlatePluginElement, wa as InsertTextInputRule, wi as getPluginTypes, wn as pipeDeserializeHtmlElement, wr as NodeIdPlugin, wt as NormalizeRules, x as isSlateElement, xa as InsertBreakInputRuleContext, xi as getPluginKey, xn as postCleanHtml, xr as ChunkingPlugin, xt as MergeRules, y as getSlateElements, ya as InputRulesFactoryContext, yi as getContainerTypes, yn as removeHtmlNodesBetweenComments, yr as getCorePlugins, yt as InferTransforms, z as RenderChunkProps, zi as InferConfig, zn as htmlElementToElement, zr as ElementAffinity, zt as NormalizeStaticValueOptions } from "./index-DRweaH9Q";
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, TransformOptions, TrimEndRule, TrimStartRule, WhiteSpaceRule, WithAnyKey, WithAutoScrollOptions, WithRequiredKey, WithSlateOptions, ZERO_WIDTH_SPACE, ZustandStoreApi, applyDeepToNodes, cleanHtmlBrElements, cleanHtmlCrLf, cleanHtmlEmptyElements, cleanHtmlFontElements, cleanHtmlLinkElements, cleanHtmlTextNodes, clearNavigationFeedbackTarget, collapseString, collapseWhiteSpace, collapseWhiteSpaceChildren, collapseWhiteSpaceElement, collapseWhiteSpaceNode, collapseWhiteSpaceText, copyBlockMarksToSpanChild, createBlockFenceInputRule, createBlockStartInputRule, createHotkey, createMarkInputRule, createRuleFactory, createSlateEditor, createSlatePlugin, createTSlatePlugin, createTextSubstitutionInputRule, createZustandStore, defaultsDeepToNodes, defineInputRule, deserializeHtml, deserializeHtmlElement, deserializeHtmlNode, deserializeHtmlNodeChildren, endInlineFormattingContext, findHtmlElement, flashTarget, getContainerTypes, getCorePlugins, getDataNodeProps, getEdgeNodes, getEditorPlugin, getHtmlComments, getInjectMatch, getInjectedPlugins, getMarkBoundaryAffinity, getNodeDataAttributeKeys, getPluginByType, getPluginKey, getPluginKeys, getPluginNodeProps, getPluginType, getPluginTypes, getSlateClass, getSlateElements, getSlatePlugin, htmlBodyToFragment, htmlBrToNewLine, htmlElementToElement, htmlElementToLeaf, htmlStringToDOMNode, htmlTextNodeToString, inferWhiteSpaceRule, init, inlineTagNames, insertExitBreak, isHotkey, isHtmlBlockElement, isHtmlComment, isHtmlElement, isHtmlFragmentHref, isHtmlInlineElement, isHtmlTable, isHtmlText, isLastNonEmptyTextOfInlineFormattingContext, isNodeAffinity, isNodesAffinity, isOlSymbol, isSlateEditor, isSlateElement, isSlateLeaf, isSlateNode, isSlatePluginElement, isSlatePluginNode, isSlateString, isSlateText, isSlateVoid, isType, keyToDataAttribute, liftBlock, matchBlockFence, matchBlockStart, matchDelimitedInline, mergeDeepToNodes, nanoid, navigate, normalizeDescendantsToDocumentFragment, normalizeNodeId, normalizeStaticValue, omitPluginContext, overridePluginsByKey, parseHtmlDocument, parseHtmlElement, pipeDeserializeHtmlElement, pipeDeserializeHtmlLeaf, pipeInsertDataQuery, pipeOnNodeChange, pipeOnTextChange, pluginDeserializeHtml, postCleanHtml, preCleanHtml, removeHtmlNodesBetweenComments, removeHtmlSurroundings, replaceTagName, resetBlock, resolveNavigationFeedbackTarget, setAffinitySelection, setValue, someHtmlElement, traverseHtmlComments, traverseHtmlElements, traverseHtmlNode, traverseHtmlTexts, unwrapHtmlElement, upsertInlineFormattingContext, withBreakRules, withChunking, withDeleteRules, withMergeRules, withNodeId, withNormalizeRules, withOverrides, withPlateHistory, withScrolling, withSlate };
@@ -1,5 +1,5 @@
1
- import { Ai as AnySlatePlugin, Ct as NodeComponents, Et as PluginConfig, F as RenderLeafProps, I as RenderElementFn, J as BaseEditor, Kr as NavigationFeedbackActiveTarget, L as RenderElementProps, M as RenderTextFn, N as RenderTextProps, Ot as WithAnyKey, P as RenderLeafFn, Pi as ExtendEditor$1, Q as SlateEditor, R as RenderChunkFn, St as NodeComponent, Tt as ParserOptions, U as BaseWithSlateOptions, Y as InferPlugins, Ya as createStaticEditor, _a as InputRulesConfig, _t as InferOptions, ai as InsertExitBreakOptions, at as BasePluginContext, bt as MatchRules, ct as BaseTransformOptions, ea as SlatePlugin, et as AnyPluginConfig, fi as DomConfig, gt as InferKey, hr as CorePluginTransforms, ht as InferApi, it as BasePlugin, j as EditableProps, ja as ResolvedInputRulesMeta, ko as HandlerReturnType, kt as WithRequiredKey, mi as WithAutoScrollOptions, mr as CorePluginApi, mt as GetInjectNodePropsReturnType, na as SlatePluginContext, nt as BaseHtmlDeserializer, pi as ScrollMode, pr as CorePlugin, pt as GetInjectNodePropsOptions, qr as NavigationFeedbackConfig, ri as LiftBlockOptions, rt as BaseInjectProps, si as InitOptions, st as BaseSerializer, ta as SlatePluginConfig, tt as BaseDeserializer, ui as AutoScrollOperationsMap, va as InputRulesDefinition, vt as InferSelectors, yo as PlateStaticProps, yt as InferTransforms, z as RenderChunkProps } from "../index-C-LKDYK-";
2
- import * as _platejs_slate5 from "@platejs/slate";
1
+ import { Ai as AnySlatePlugin, Ct as NodeComponents, Et as PluginConfig, F as RenderLeafProps, I as RenderElementFn, J as BaseEditor, Kr as NavigationFeedbackActiveTarget, L as RenderElementProps, M as RenderTextFn, N as RenderTextProps, Ot as WithAnyKey, P as RenderLeafFn, Pi as ExtendEditor$1, Q as SlateEditor, R as RenderChunkFn, St as NodeComponent, Tt as ParserOptions, U as BaseWithSlateOptions, Y as InferPlugins, Ya as createStaticEditor, _a as InputRulesConfig, _t as InferOptions, at as BasePluginContext, bt as MatchRules, ct as BaseTransformOptions, ea as SlatePlugin, ei as AutoScrollOperationsMap, et as AnyPluginConfig, fi as InsertExitBreakOptions, gt as InferKey, hr as CorePluginTransforms, ht as InferApi, ii as WithAutoScrollOptions, it as BasePlugin, j as EditableProps, ja as ResolvedInputRulesMeta, ko as HandlerReturnType, kt as WithRequiredKey, mi as InitOptions, mr as CorePluginApi, mt as GetInjectNodePropsReturnType, na as SlatePluginContext, ni as DomConfig, nt as BaseHtmlDeserializer, pr as CorePlugin, pt as GetInjectNodePropsOptions, qr as NavigationFeedbackConfig, ri as ScrollMode, rt as BaseInjectProps, st as BaseSerializer, ta as SlatePluginConfig, tt as BaseDeserializer, ui as LiftBlockOptions, va as InputRulesDefinition, vt as InferSelectors, yo as PlateStaticProps, yt as InferTransforms, z as RenderChunkProps } from "../index-DRweaH9Q";
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";
@@ -16,31 +16,31 @@ import { TCreatedStoreType, TEqualityChecker, createZustandStore, useStoreSelect
16
16
  declare const SlateReactExtensionPlugin: PlatePlugin<PluginConfig<"slateExtension", {
17
17
  onNodeChange: (options: {
18
18
  editor: SlateEditor;
19
- node: _platejs_slate5.Descendant;
20
- operation: _platejs_slate5.NodeOperation;
21
- prevNode: _platejs_slate5.Descendant;
19
+ node: _platejs_slate19.Descendant;
20
+ operation: _platejs_slate19.NodeOperation;
21
+ prevNode: _platejs_slate19.Descendant;
22
22
  }) => void;
23
23
  onTextChange: (options: {
24
24
  editor: SlateEditor;
25
- node: _platejs_slate5.Descendant;
26
- operation: _platejs_slate5.TextOperation;
25
+ node: _platejs_slate19.Descendant;
26
+ operation: _platejs_slate19.TextOperation;
27
27
  prevText: string;
28
28
  text: string;
29
29
  }) => void;
30
30
  }, {
31
31
  redecorate: (() => void) & (() => void);
32
32
  }, {
33
- reset: (options: _platejs_slate5.ResetOptions | undefined) => void;
33
+ reset: (options: _platejs_slate19.ResetOptions | undefined) => void;
34
34
  init: ((args_0: InitOptions) => void) & ((args_0: InitOptions) => void);
35
35
  insertExitBreak: ((args_0?: InsertExitBreakOptions | undefined) => true | undefined) & ((args_0?: InsertExitBreakOptions | undefined) => true | undefined);
36
36
  liftBlock: ((args_0?: LiftBlockOptions | undefined) => true | undefined) & ((args_0?: LiftBlockOptions | undefined) => true | undefined);
37
37
  resetBlock: ((args_0?: {
38
- at?: _platejs_slate5.Path;
38
+ at?: _platejs_slate19.Path;
39
39
  } | undefined) => true | undefined) & ((args_0?: {
40
- at?: _platejs_slate5.Path;
40
+ at?: _platejs_slate19.Path;
41
41
  } | undefined) => true | undefined);
42
- setValue: ((value?: string | _platejs_slate5.Value | undefined) => void) & ((value?: string | _platejs_slate5.Value | undefined) => void);
43
- apply: <N$1 extends _platejs_slate5.TElement | _platejs_slate5.TText>(operation: _platejs_slate5.Operation<N$1>) => void;
42
+ setValue: ((value?: string | _platejs_slate19.Value | undefined) => void) & ((value?: string | _platejs_slate19.Value | undefined) => void);
43
+ apply: <N$1 extends _platejs_slate19.TElement | _platejs_slate19.TText>(operation: _platejs_slate19.Operation<N$1>) => void;
44
44
  }, {}>>;
45
45
  //#endregion
46
46
  //#region src/react/plugins/event-editor/EventEditorPlugin.d.ts
@@ -100,7 +100,7 @@ declare const ParagraphPlugin: PlatePlugin<PluginConfig<"p", {}, {}, {}, {}>>;
100
100
  declare const ReactPlugin: PlatePlugin<PluginConfig<"dom", {
101
101
  scrollMode?: ScrollMode;
102
102
  scrollOperations?: AutoScrollOperationsMap;
103
- scrollOptions?: _platejs_slate5.ScrollIntoViewOptions;
103
+ scrollOptions?: _platejs_slate19.ScrollIntoViewOptions;
104
104
  }, {
105
105
  isScrolling: () => boolean;
106
106
  }, {
@@ -810,35 +810,35 @@ declare const getPlateCorePlugins: ({
810
810
  }) => (PlatePlugin<PluginConfig<"eventEditor", {}, {}, {}, {}>> | PlatePlugin<PluginConfig<"slateExtension", {
811
811
  onNodeChange: (options: {
812
812
  editor: SlateEditor;
813
- node: _platejs_slate5.Descendant;
814
- operation: _platejs_slate5.NodeOperation;
815
- prevNode: _platejs_slate5.Descendant;
813
+ node: _platejs_slate19.Descendant;
814
+ operation: _platejs_slate19.NodeOperation;
815
+ prevNode: _platejs_slate19.Descendant;
816
816
  }) => void;
817
817
  onTextChange: (options: {
818
818
  editor: SlateEditor;
819
- node: _platejs_slate5.Descendant;
820
- operation: _platejs_slate5.TextOperation;
819
+ node: _platejs_slate19.Descendant;
820
+ operation: _platejs_slate19.TextOperation;
821
821
  prevText: string;
822
822
  text: string;
823
823
  }) => void;
824
824
  }, {
825
825
  redecorate: (() => void) & (() => void);
826
826
  }, {
827
- reset: (options: _platejs_slate5.ResetOptions | undefined) => void;
827
+ reset: (options: _platejs_slate19.ResetOptions | undefined) => void;
828
828
  init: ((args_0: InitOptions) => void) & ((args_0: InitOptions) => void);
829
829
  insertExitBreak: ((args_0?: InsertExitBreakOptions | undefined) => true | undefined) & ((args_0?: InsertExitBreakOptions | undefined) => true | undefined);
830
830
  liftBlock: ((args_0?: LiftBlockOptions | undefined) => true | undefined) & ((args_0?: LiftBlockOptions | undefined) => true | undefined);
831
831
  resetBlock: ((args_0?: {
832
- at?: _platejs_slate5.Path;
832
+ at?: _platejs_slate19.Path;
833
833
  } | undefined) => true | undefined) & ((args_0?: {
834
- at?: _platejs_slate5.Path;
834
+ at?: _platejs_slate19.Path;
835
835
  } | undefined) => true | undefined);
836
- setValue: ((value?: string | _platejs_slate5.Value | undefined) => void) & ((value?: string | _platejs_slate5.Value | undefined) => void);
837
- apply: <N$1 extends _platejs_slate5.TElement | _platejs_slate5.TText>(operation: _platejs_slate5.Operation<N$1>) => void;
836
+ setValue: ((value?: string | _platejs_slate19.Value | undefined) => void) & ((value?: string | _platejs_slate19.Value | undefined) => void);
837
+ apply: <N$1 extends _platejs_slate19.TElement | _platejs_slate19.TText>(operation: _platejs_slate19.Operation<N$1>) => void;
838
838
  }, {}>> | PlatePlugin<PluginConfig<"dom", {
839
839
  scrollMode?: ScrollMode;
840
840
  scrollOperations?: AutoScrollOperationsMap;
841
- scrollOptions?: _platejs_slate5.ScrollIntoViewOptions;
841
+ scrollOptions?: _platejs_slate19.ScrollIntoViewOptions;
842
842
  }, {
843
843
  isScrolling: () => boolean;
844
844
  }, {
@@ -908,7 +908,7 @@ declare function getPlugin<C extends AnyPluginConfig = PluginConfig>(editor: Pla
908
908
  } ? C : PlatePlugin<C>;
909
909
  //#endregion
910
910
  //#region src/react/plugin/omitPluginContext.d.ts
911
- declare const omitPluginContext: <T extends PlatePluginContext<AnyPlatePlugin>>(ctx: T) => Omit<T, "api" | "editor" | "plugin" | "type" | "getOption" | "tf" | "getOptions" | "setOptions" | "setOption">;
911
+ declare const omitPluginContext: <T extends PlatePluginContext<AnyPlatePlugin>>(ctx: T) => Omit<T, "api" | "editor" | "plugin" | "getOptions" | "getOption" | "tf" | "type" | "setOptions" | "setOption">;
912
912
  //#endregion
913
913
  //#region src/react/plugin/toPlatePlugin.d.ts
914
914
  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'> & {
@@ -1212,8 +1212,8 @@ declare const PlateStoreProvider: React$1.FC<jotai_x2.ProviderProps<{
1212
1212
  composing: boolean | null;
1213
1213
  decorate: ((options: {
1214
1214
  editor: PlateEditor;
1215
- entry: _platejs_slate5.NodeEntry;
1216
- }) => _platejs_slate5.TRange[]) | null;
1215
+ entry: _platejs_slate19.NodeEntry;
1216
+ }) => _platejs_slate19.TRange[]) | null;
1217
1217
  isMounted: boolean | null;
1218
1218
  primary: boolean | null;
1219
1219
  readOnly: boolean | null;
@@ -1227,28 +1227,28 @@ declare const PlateStoreProvider: React$1.FC<jotai_x2.ProviderProps<{
1227
1227
  versionValue: number | null;
1228
1228
  onChange: ((options: {
1229
1229
  editor: PlateEditor;
1230
- value: _platejs_slate5.Value;
1230
+ value: _platejs_slate19.Value;
1231
1231
  }) => void) | null;
1232
1232
  onNodeChange: ((options: {
1233
1233
  editor: PlateEditor;
1234
- node: _platejs_slate5.Descendant;
1235
- operation: _platejs_slate5.NodeOperation;
1236
- prevNode: _platejs_slate5.Descendant;
1234
+ node: _platejs_slate19.Descendant;
1235
+ operation: _platejs_slate19.NodeOperation;
1236
+ prevNode: _platejs_slate19.Descendant;
1237
1237
  }) => void) | null;
1238
1238
  onSelectionChange: ((options: {
1239
1239
  editor: PlateEditor;
1240
- selection: _platejs_slate5.TSelection;
1240
+ selection: _platejs_slate19.TSelection;
1241
1241
  }) => void) | null;
1242
1242
  onTextChange: ((options: {
1243
1243
  editor: PlateEditor;
1244
- node: _platejs_slate5.Descendant;
1245
- operation: _platejs_slate5.TextOperation;
1244
+ node: _platejs_slate19.Descendant;
1245
+ operation: _platejs_slate19.TextOperation;
1246
1246
  prevText: string;
1247
1247
  text: string;
1248
1248
  }) => void) | null;
1249
1249
  onValueChange: ((options: {
1250
1250
  editor: PlateEditor;
1251
- value: _platejs_slate5.Value;
1251
+ value: _platejs_slate19.Value;
1252
1252
  }) => void) | null;
1253
1253
  id: string;
1254
1254
  containerRef: React$1.RefObject<HTMLDivElement | null>;
@@ -1267,12 +1267,12 @@ declare const PlateStoreProvider: React$1.FC<jotai_x2.ProviderProps<{
1267
1267
  value: any;
1268
1268
  version: number | null;
1269
1269
  }>;
1270
- }, "plate">, usePlateLocalSet: <K$1 extends "decorate" | "renderElement" | "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) => ({
1270
+ }, "plate">, usePlateLocalSet: <K$1 extends "renderElement" | "decorate" | "renderLeaf" | "renderText" | "editor" | "id" | "onChange" | "onNodeChange" | "onTextChange" | "readOnly" | "composing" | "isMounted" | "primary" | "renderChunk" | "versionDecorate" | "versionEditor" | "versionSelection" | "versionValue" | "onSelectionChange" | "onValueChange" | "containerRef" | "scrollRef" | "trackedEditor" | "trackedSelection" | "trackedValue">(key: K$1, options?: string | jotai_x2.UseAtomOptions) => ({
1271
1271
  composing: jotai_x2.SimpleWritableAtom<boolean | null>;
1272
1272
  decorate: jotai_x2.SimpleWritableAtom<((options: {
1273
1273
  editor: PlateEditor;
1274
- entry: _platejs_slate5.NodeEntry;
1275
- }) => _platejs_slate5.TRange[]) | null>;
1274
+ entry: _platejs_slate19.NodeEntry;
1275
+ }) => _platejs_slate19.TRange[]) | null>;
1276
1276
  isMounted: jotai_x2.SimpleWritableAtom<boolean | null>;
1277
1277
  primary: jotai_x2.SimpleWritableAtom<boolean | null>;
1278
1278
  readOnly: jotai_x2.SimpleWritableAtom<boolean | null>;
@@ -1286,28 +1286,28 @@ declare const PlateStoreProvider: React$1.FC<jotai_x2.ProviderProps<{
1286
1286
  versionValue: jotai_x2.SimpleWritableAtom<number | null>;
1287
1287
  onChange: jotai_x2.SimpleWritableAtom<((options: {
1288
1288
  editor: PlateEditor;
1289
- value: _platejs_slate5.Value;
1289
+ value: _platejs_slate19.Value;
1290
1290
  }) => void) | null>;
1291
1291
  onNodeChange: jotai_x2.SimpleWritableAtom<((options: {
1292
1292
  editor: PlateEditor;
1293
- node: _platejs_slate5.Descendant;
1294
- operation: _platejs_slate5.NodeOperation;
1295
- prevNode: _platejs_slate5.Descendant;
1293
+ node: _platejs_slate19.Descendant;
1294
+ operation: _platejs_slate19.NodeOperation;
1295
+ prevNode: _platejs_slate19.Descendant;
1296
1296
  }) => void) | null>;
1297
1297
  onSelectionChange: jotai_x2.SimpleWritableAtom<((options: {
1298
1298
  editor: PlateEditor;
1299
- selection: _platejs_slate5.TSelection;
1299
+ selection: _platejs_slate19.TSelection;
1300
1300
  }) => void) | null>;
1301
1301
  onTextChange: jotai_x2.SimpleWritableAtom<((options: {
1302
1302
  editor: PlateEditor;
1303
- node: _platejs_slate5.Descendant;
1304
- operation: _platejs_slate5.TextOperation;
1303
+ node: _platejs_slate19.Descendant;
1304
+ operation: _platejs_slate19.TextOperation;
1305
1305
  prevText: string;
1306
1306
  text: string;
1307
1307
  }) => void) | null>;
1308
1308
  onValueChange: jotai_x2.SimpleWritableAtom<((options: {
1309
1309
  editor: PlateEditor;
1310
- value: _platejs_slate5.Value;
1310
+ value: _platejs_slate19.Value;
1311
1311
  }) => void) | null>;
1312
1312
  id: jotai_x2.SimpleWritableAtom<string>;
1313
1313
  containerRef: jotai_x2.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
@@ -1326,12 +1326,12 @@ declare const PlateStoreProvider: React$1.FC<jotai_x2.ProviderProps<{
1326
1326
  value: any;
1327
1327
  version: number | null;
1328
1328
  }>;
1329
- })[K$1] extends jotai10.WritableAtom<infer _V, infer A extends unknown[], infer R> ? (...args: A) => R : never, usePlateLocalState: <K$1 extends "decorate" | "renderElement" | "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) => ({
1329
+ })[K$1] extends jotai10.WritableAtom<infer _V, infer A extends unknown[], infer R> ? (...args: A) => R : never, usePlateLocalState: <K$1 extends "renderElement" | "decorate" | "renderLeaf" | "renderText" | "editor" | "id" | "onChange" | "onNodeChange" | "onTextChange" | "readOnly" | "composing" | "isMounted" | "primary" | "renderChunk" | "versionDecorate" | "versionEditor" | "versionSelection" | "versionValue" | "onSelectionChange" | "onValueChange" | "containerRef" | "scrollRef" | "trackedEditor" | "trackedSelection" | "trackedValue">(key: K$1, options?: string | jotai_x2.UseAtomOptions) => ({
1330
1330
  composing: jotai_x2.SimpleWritableAtom<boolean | null>;
1331
1331
  decorate: jotai_x2.SimpleWritableAtom<((options: {
1332
1332
  editor: PlateEditor;
1333
- entry: _platejs_slate5.NodeEntry;
1334
- }) => _platejs_slate5.TRange[]) | null>;
1333
+ entry: _platejs_slate19.NodeEntry;
1334
+ }) => _platejs_slate19.TRange[]) | null>;
1335
1335
  isMounted: jotai_x2.SimpleWritableAtom<boolean | null>;
1336
1336
  primary: jotai_x2.SimpleWritableAtom<boolean | null>;
1337
1337
  readOnly: jotai_x2.SimpleWritableAtom<boolean | null>;
@@ -1345,28 +1345,28 @@ declare const PlateStoreProvider: React$1.FC<jotai_x2.ProviderProps<{
1345
1345
  versionValue: jotai_x2.SimpleWritableAtom<number | null>;
1346
1346
  onChange: jotai_x2.SimpleWritableAtom<((options: {
1347
1347
  editor: PlateEditor;
1348
- value: _platejs_slate5.Value;
1348
+ value: _platejs_slate19.Value;
1349
1349
  }) => void) | null>;
1350
1350
  onNodeChange: jotai_x2.SimpleWritableAtom<((options: {
1351
1351
  editor: PlateEditor;
1352
- node: _platejs_slate5.Descendant;
1353
- operation: _platejs_slate5.NodeOperation;
1354
- prevNode: _platejs_slate5.Descendant;
1352
+ node: _platejs_slate19.Descendant;
1353
+ operation: _platejs_slate19.NodeOperation;
1354
+ prevNode: _platejs_slate19.Descendant;
1355
1355
  }) => void) | null>;
1356
1356
  onSelectionChange: jotai_x2.SimpleWritableAtom<((options: {
1357
1357
  editor: PlateEditor;
1358
- selection: _platejs_slate5.TSelection;
1358
+ selection: _platejs_slate19.TSelection;
1359
1359
  }) => void) | null>;
1360
1360
  onTextChange: jotai_x2.SimpleWritableAtom<((options: {
1361
1361
  editor: PlateEditor;
1362
- node: _platejs_slate5.Descendant;
1363
- operation: _platejs_slate5.TextOperation;
1362
+ node: _platejs_slate19.Descendant;
1363
+ operation: _platejs_slate19.TextOperation;
1364
1364
  prevText: string;
1365
1365
  text: string;
1366
1366
  }) => void) | null>;
1367
1367
  onValueChange: jotai_x2.SimpleWritableAtom<((options: {
1368
1368
  editor: PlateEditor;
1369
- value: _platejs_slate5.Value;
1369
+ value: _platejs_slate19.Value;
1370
1370
  }) => void) | null>;
1371
1371
  id: jotai_x2.SimpleWritableAtom<string>;
1372
1372
  containerRef: jotai_x2.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
@@ -1398,12 +1398,12 @@ declare const PlateStoreProvider: React$1.FC<jotai_x2.ProviderProps<{
1398
1398
  value: any;
1399
1399
  version: number | null;
1400
1400
  }>;
1401
- }>, usePlateLocalValue: <K$1 extends "decorate" | "renderElement" | "renderLeaf" | "renderText" | "editor" | "id" | "onChange" | "onNodeChange" | "onTextChange" | "readOnly" | "renderChunk" | "composing" | "isMounted" | "primary" | "versionDecorate" | "versionEditor" | "versionSelection" | "versionValue" | "onSelectionChange" | "onValueChange" | "containerRef" | "scrollRef" | "trackedEditor" | "trackedSelection" | "trackedValue", S = (({
1401
+ }>, usePlateLocalValue: <K$1 extends "renderElement" | "decorate" | "renderLeaf" | "renderText" | "editor" | "id" | "onChange" | "onNodeChange" | "onTextChange" | "readOnly" | "composing" | "isMounted" | "primary" | "renderChunk" | "versionDecorate" | "versionEditor" | "versionSelection" | "versionValue" | "onSelectionChange" | "onValueChange" | "containerRef" | "scrollRef" | "trackedEditor" | "trackedSelection" | "trackedValue", S = (({
1402
1402
  composing: jotai_x2.SimpleWritableAtom<boolean | null>;
1403
1403
  decorate: jotai_x2.SimpleWritableAtom<((options: {
1404
1404
  editor: PlateEditor;
1405
- entry: _platejs_slate5.NodeEntry;
1406
- }) => _platejs_slate5.TRange[]) | null>;
1405
+ entry: _platejs_slate19.NodeEntry;
1406
+ }) => _platejs_slate19.TRange[]) | null>;
1407
1407
  isMounted: jotai_x2.SimpleWritableAtom<boolean | null>;
1408
1408
  primary: jotai_x2.SimpleWritableAtom<boolean | null>;
1409
1409
  readOnly: jotai_x2.SimpleWritableAtom<boolean | null>;
@@ -1417,28 +1417,28 @@ declare const PlateStoreProvider: React$1.FC<jotai_x2.ProviderProps<{
1417
1417
  versionValue: jotai_x2.SimpleWritableAtom<number | null>;
1418
1418
  onChange: jotai_x2.SimpleWritableAtom<((options: {
1419
1419
  editor: PlateEditor;
1420
- value: _platejs_slate5.Value;
1420
+ value: _platejs_slate19.Value;
1421
1421
  }) => void) | null>;
1422
1422
  onNodeChange: jotai_x2.SimpleWritableAtom<((options: {
1423
1423
  editor: PlateEditor;
1424
- node: _platejs_slate5.Descendant;
1425
- operation: _platejs_slate5.NodeOperation;
1426
- prevNode: _platejs_slate5.Descendant;
1424
+ node: _platejs_slate19.Descendant;
1425
+ operation: _platejs_slate19.NodeOperation;
1426
+ prevNode: _platejs_slate19.Descendant;
1427
1427
  }) => void) | null>;
1428
1428
  onSelectionChange: jotai_x2.SimpleWritableAtom<((options: {
1429
1429
  editor: PlateEditor;
1430
- selection: _platejs_slate5.TSelection;
1430
+ selection: _platejs_slate19.TSelection;
1431
1431
  }) => void) | null>;
1432
1432
  onTextChange: jotai_x2.SimpleWritableAtom<((options: {
1433
1433
  editor: PlateEditor;
1434
- node: _platejs_slate5.Descendant;
1435
- operation: _platejs_slate5.TextOperation;
1434
+ node: _platejs_slate19.Descendant;
1435
+ operation: _platejs_slate19.TextOperation;
1436
1436
  prevText: string;
1437
1437
  text: string;
1438
1438
  }) => void) | null>;
1439
1439
  onValueChange: jotai_x2.SimpleWritableAtom<((options: {
1440
1440
  editor: PlateEditor;
1441
- value: _platejs_slate5.Value;
1441
+ value: _platejs_slate19.Value;
1442
1442
  }) => void) | null>;
1443
1443
  id: jotai_x2.SimpleWritableAtom<string>;
1444
1444
  containerRef: jotai_x2.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
@@ -1462,8 +1462,8 @@ declare const PlateStoreProvider: React$1.FC<jotai_x2.ProviderProps<{
1462
1462
  composing: jotai_x2.SimpleWritableAtom<boolean | null>;
1463
1463
  decorate: jotai_x2.SimpleWritableAtom<((options: {
1464
1464
  editor: PlateEditor;
1465
- entry: _platejs_slate5.NodeEntry;
1466
- }) => _platejs_slate5.TRange[]) | null>;
1465
+ entry: _platejs_slate19.NodeEntry;
1466
+ }) => _platejs_slate19.TRange[]) | null>;
1467
1467
  isMounted: jotai_x2.SimpleWritableAtom<boolean | null>;
1468
1468
  primary: jotai_x2.SimpleWritableAtom<boolean | null>;
1469
1469
  readOnly: jotai_x2.SimpleWritableAtom<boolean | null>;
@@ -1477,28 +1477,28 @@ declare const PlateStoreProvider: React$1.FC<jotai_x2.ProviderProps<{
1477
1477
  versionValue: jotai_x2.SimpleWritableAtom<number | null>;
1478
1478
  onChange: jotai_x2.SimpleWritableAtom<((options: {
1479
1479
  editor: PlateEditor;
1480
- value: _platejs_slate5.Value;
1480
+ value: _platejs_slate19.Value;
1481
1481
  }) => void) | null>;
1482
1482
  onNodeChange: jotai_x2.SimpleWritableAtom<((options: {
1483
1483
  editor: PlateEditor;
1484
- node: _platejs_slate5.Descendant;
1485
- operation: _platejs_slate5.NodeOperation;
1486
- prevNode: _platejs_slate5.Descendant;
1484
+ node: _platejs_slate19.Descendant;
1485
+ operation: _platejs_slate19.NodeOperation;
1486
+ prevNode: _platejs_slate19.Descendant;
1487
1487
  }) => void) | null>;
1488
1488
  onSelectionChange: jotai_x2.SimpleWritableAtom<((options: {
1489
1489
  editor: PlateEditor;
1490
- selection: _platejs_slate5.TSelection;
1490
+ selection: _platejs_slate19.TSelection;
1491
1491
  }) => void) | null>;
1492
1492
  onTextChange: jotai_x2.SimpleWritableAtom<((options: {
1493
1493
  editor: PlateEditor;
1494
- node: _platejs_slate5.Descendant;
1495
- operation: _platejs_slate5.TextOperation;
1494
+ node: _platejs_slate19.Descendant;
1495
+ operation: _platejs_slate19.TextOperation;
1496
1496
  prevText: string;
1497
1497
  text: string;
1498
1498
  }) => void) | null>;
1499
1499
  onValueChange: jotai_x2.SimpleWritableAtom<((options: {
1500
1500
  editor: PlateEditor;
1501
- value: _platejs_slate5.Value;
1501
+ value: _platejs_slate19.Value;
1502
1502
  }) => void) | null>;
1503
1503
  id: jotai_x2.SimpleWritableAtom<string>;
1504
1504
  containerRef: jotai_x2.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
@@ -1956,7 +1956,7 @@ declare const useEditableProps: ({
1956
1956
  * if another node is updated in a way that affects this node's path, this hook
1957
1957
  * will not return the new path.
1958
1958
  */
1959
- declare const useNodePath: (node: TNode) => _platejs_slate5.Path | undefined;
1959
+ declare const useNodePath: (node: TNode) => _platejs_slate19.Path | undefined;
1960
1960
  //#endregion
1961
1961
  //#region src/react/hooks/useSlateProps.d.ts
1962
1962
  type SlateComponentProps = Omit<React$1.ComponentProps<typeof Slate>, 'children'>;
@@ -1971,7 +1971,7 @@ declare const useSlateProps: ({
1971
1971
  }) => PlateSlateProps;
1972
1972
  //#endregion
1973
1973
  //#region src/react/utils/createPlateFallbackEditor.d.ts
1974
- declare const createPlateFallbackEditor: (options?: CreatePlateEditorOptions) => TPlateEditor<_platejs_slate5.Value, PlateCorePlugin>;
1974
+ declare const createPlateFallbackEditor: (options?: CreatePlateEditorOptions) => TPlateEditor<_platejs_slate19.Value, PlateCorePlugin>;
1975
1975
  //#endregion
1976
1976
  //#region src/react/utils/dom-attributes.d.ts
1977
1977
  declare const DOM_HANDLERS: (keyof DOMHandlers)[];
@@ -1,2 +1,2 @@
1
- import { $a as SlateHTMLProps, Ba as getSelectedDomNode, Co as SlateRenderLeaf, Do as SlateRenderElement, Eo as pipeRenderElementStatic, Ga as getPluginDataAttributes, Ha as getSelectedDomBlocks, Ia as stripSlateDataAttributes, Ja as ViewPlugin, Ka as createStaticString, La as stripHtmlClassNames, Oo as pluginRenderElementStatic, Qa as SlateElementProps, Ra as pipeDecorate, So as pluginRenderTextStatic, To as pluginRenderLeafStatic, Ua as getRenderNodeStaticProps, Va as getSelectedDomFragment, Wa as getNodeDataAttributes, Xa as getEditorDOMFromHtmlString, Ya as createStaticEditor, Za as SlateElement, _o as LeafStatic, ao as StyledSlateElementProps, bo as SlateRenderText, co as useNodeAttributes, do as SlateRenderLeafProps, eo as SlateLeaf, fo as SlateRenderNodeProps, go as ElementStatic, ho as serializeHtml, io as SlateTextProps, lo as BoxStaticProps, mo as SerializeHtmlOptions, no as SlateNodeProps, oo as StyledSlateLeafProps, po as SlateRenderTextProps, qa as getStaticPlugins, ro as SlateText, so as StyledSlateTextProps, to as SlateLeafProps, uo as SlateRenderElementProps, vo as PlateStatic, wo as pipeRenderLeafStatic, xo as pipeRenderTextStatic, yo as PlateStaticProps, za as isSelectOutside } from "../index-C-LKDYK-";
1
+ import { $a as SlateHTMLProps, Ba as getSelectedDomNode, Co as SlateRenderLeaf, Do as SlateRenderElement, Eo as pipeRenderElementStatic, Ga as getPluginDataAttributes, Ha as getSelectedDomBlocks, Ia as stripSlateDataAttributes, Ja as ViewPlugin, Ka as createStaticString, La as stripHtmlClassNames, Oo as pluginRenderElementStatic, Qa as SlateElementProps, Ra as pipeDecorate, So as pluginRenderTextStatic, To as pluginRenderLeafStatic, Ua as getRenderNodeStaticProps, Va as getSelectedDomFragment, Wa as getNodeDataAttributes, Xa as getEditorDOMFromHtmlString, Ya as createStaticEditor, Za as SlateElement, _o as LeafStatic, ao as StyledSlateElementProps, bo as SlateRenderText, co as useNodeAttributes, do as SlateRenderLeafProps, eo as SlateLeaf, fo as SlateRenderNodeProps, go as ElementStatic, ho as serializeHtml, io as SlateTextProps, lo as BoxStaticProps, mo as SerializeHtmlOptions, no as SlateNodeProps, oo as StyledSlateLeafProps, po as SlateRenderTextProps, qa as getStaticPlugins, ro as SlateText, so as StyledSlateTextProps, to as SlateLeafProps, uo as SlateRenderElementProps, vo as PlateStatic, wo as pipeRenderLeafStatic, xo as pipeRenderTextStatic, yo as PlateStaticProps, za as isSelectOutside } from "../index-DRweaH9Q";
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.0.0",
3
+ "version": "53.1.1",
4
4
  "description": "The core of Plate – a plugin system for slate",
5
5
  "keywords": [
6
6
  "contentEditable",
@@ -49,11 +49,11 @@
49
49
  "slate": "0.124.1",
50
50
  "slate-dom": "0.124.1",
51
51
  "slate-hyperscript": "0.100.0",
52
- "slate-react": "0.123.0",
52
+ "slate-react": "0.124.2",
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.0.0",
56
+ "@platejs/slate": "npm:@lofcz/platejs-slate@53.1.1",
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"