@lofcz/platejs-core 53.4.3 → 53.4.6
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.
- package/dist/{index-BhmRdj7M.d.ts → index-B7ej2XCF.d.ts} +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/react/index.d.ts +182 -182
- package/dist/react/index.js +11 -2
- package/dist/static/index.d.ts +1 -1
- package/dist/static/index.js +2 -2
- package/dist/{static-BoOSg4dr.js → static-CTmHK15f.js} +3 -6
- package/dist/{withSlate-B-XNrpsk.js → withSlate-CGuPv-qn.js} +8 -12
- package/package.json +5 -6
|
@@ -1635,7 +1635,7 @@ declare const htmlElementToLeaf: (editor: SlateEditor, element: HTMLElement) =>
|
|
|
1635
1635
|
//#endregion
|
|
1636
1636
|
//#region src/lib/plugins/html/utils/htmlStringToDOMNode.d.ts
|
|
1637
1637
|
/** Convert HTML string into HTML element. */
|
|
1638
|
-
declare const htmlStringToDOMNode: (rawHtml: string) =>
|
|
1638
|
+
declare const htmlStringToDOMNode: (rawHtml: string) => HTMLElement;
|
|
1639
1639
|
//#endregion
|
|
1640
1640
|
//#region src/lib/plugins/html/utils/htmlTextNodeToString.d.ts
|
|
1641
1641
|
declare const htmlTextNodeToString: (node: ChildNode | HTMLElement) => string | undefined;
|
|
@@ -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" | "
|
|
3108
|
+
declare const omitPluginContext: <T extends SlatePluginContext<AnySlatePlugin>>(ctx: T) => Omit<T, "api" | "editor" | "plugin" | "setOptions" | "tf" | "type" | "getOption" | "getOptions" | "setOption">;
|
|
3109
3109
|
//#endregion
|
|
3110
3110
|
//#region src/lib/utils/overridePluginsByKey.d.ts
|
|
3111
3111
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as TSlateEditor, $i as RenderStaticNodeWrapperFunction, $n as cleanHtmlFontElements, $r as NavigationNavigateOptions, $t as upsertInlineFormattingContext, A as applyDeepToNodes, Aa as MatchBlockFenceOptions, Ai as createTSlatePlugin, An as isHtmlInlineElement, Ar as LogLevel, At as BaseParagraphPlugin, B as ZustandStoreApi, Bi as HtmlSerializer, Bn as htmlBrToNewLine, Br as ElementAffinity, Bt as STATIC_VALUE_CREATED_AT, C as isSlateNode, Ca as InsertBreakInputRule, Ci as getPluginKey, Cn as pipeDeserializeHtmlLeaf, Cr as NodeIdOptions, Ct as NodeComponents, D as isSlateText, Da as InsertTextInputRule, Di as getSlatePlugin, Dn as isOlSymbol, Dr as normalizeNodeIdWithEditor, Dt as SelectionRules, E as isSlateString, Ea as InsertDataInputRuleContext, Ei as getPluginTypes, En as parseHtmlDocument, Er as normalizeNodeId, Et as PluginConfig, F as RenderLeafProps, Fa as SelectionInputRuleContext, Fi as EditorPlugin, Fn as inlineTagNames, Fr as getMarkBoundaryAffinity, Ft as withBreakRules, G as WithSlateOptions, Gi as NodeStaticWrapperComponent, Gn as someHtmlElement, Gr as NavigationFeedbackPlugin, Gt as createBlockFenceInputRule, H as nanoid, Hi as InjectNodeProps, Hn as getHtmlComments, Hr as clearNavigationFeedbackTarget, Ht as LengthPlugin, I as RenderElementFn, Ia as TextSubstitutionInputRuleConfig, Ii as ExtendEditor, In as htmlTextNodeToString, Ir as getEdgeNodes, It as OverridePlugin, J as BaseEditor, Ji as NormalizeInitialValue, Jn as deserializeHtmlElement, Jr as NavigationFeedbackConfig, Jt as createTextSubstitutionInputRule, K as createSlateEditor, Ki as NodeStaticWrapperComponentProps, Kn as deserializeHtmlNodeChildren, Kr as NAVIGATION_FEEDBACK_KEY, Kt as createBlockStartInputRule, L as RenderElementProps, La as TextSubstitutionMatch, Li as ExtendEditorApi, Ln as htmlStringToDOMNode, Lr as EdgeNodes, Lt as withOverrides, M as RenderTextFn, Ma as MatchDelimitedInlineOptions, Mi as AnySlatePlugin, Mn as isHtmlElement, Mo as HandlerReturnType, Mr as setAffinitySelection, Mt as withNormalizeRules, N as RenderTextProps, Na as ResolvedInputRule, Ni as Decorate, Nn as isHtmlComment, No as AstPlugin, Nr as isNodeAffinity, Nt as withMergeRules, O as isSlateVoid, Oa as InsertTextInputRuleContext, Oi as getEditorPlugin, On as isHtmlText, Or as DebugErrorType, Ot as WithAnyKey, P as RenderLeafFn, Pa as ResolvedInputRulesMeta, Pi as Deserializer, Pn as isHtmlBlockElement, Pr as isNodesAffinity, Pt as withDeleteRules, Q as SlateEditor, Qi as RenderStaticNodeWrapper, Qn as cleanHtmlLinkElements, Qr as NavigationFlashTargetOptions, Qt as endInlineFormattingContext, R as RenderChunkFn, Ra as TextSubstitutionPattern, Ri as ExtendEditorTransforms, Rn as htmlElementToLeaf, Rr as AffinityConfig, Rt as withNodeId, S as isSlateLeaf, Sa as InputRulesFactoryContext, Si as getPluginByType, Sn as pluginDeserializeHtml, Sr as NodeIdConfig, St as NodeComponent, T as isSlatePluginNode, Ta as InsertDataInputRule, Ti as getPluginType, Tn as parseHtmlElement, Tr as NormalizeNodeIdOptions, Tt as ParserOptions, U as BaseWithSlateOptions, Ui as LeafStaticProps, Un as getDataNodeProps, Ur as flashTarget, Ut as defineInputRule, V as createZustandStore, Vi as InferConfig, Vn as htmlBodyToFragment, Vr as navigate, Vt as normalizeStaticValue, W as CreateSlateEditorOptions, Wi as NodeStaticProps, Wn as findHtmlElement, Wr as resolveNavigationFeedbackTarget, Wt as createRuleFactory, X as KeyofNodePlugins, Xi as Parser, Xn as copyBlockMarksToSpanChild, Xr as NavigationFeedbackStoredTarget, Xt as matchBlockStart, Y as InferPlugins, Yi as OverrideEditor, Yn as deserializeHtml, Yr as NavigationFeedbackPluginKey, Yt as matchBlockFence, Z as KeyofPlugins, Zi as PartialEditorPlugin, Zn as cleanHtmlTextNodes, Zr as NavigationFeedbackTarget, Zt as matchDelimitedInline, _ as getInjectMatch, _a as DelimitedInlineInputRuleMatch, _i as init, _n as replaceTagName, _r as GetCorePluginsOptions, _t as InferOptions, a as omitPluginContext, aa as SlatePluginMethods, ai as WithAutoScrollOptions, an as collapseWhiteSpaceChildren, ar as CARRIAGE_RETURN, at as BasePluginContext, b as isSlateEditor, ba as InputRulesConfig, bi as withPlateHistory, bn as preCleanHtml, br as ChunkingConfig, bt as MatchRules, c as isType, ca as TextStaticProps, ci as SlateExtensionPlugin, cn as CollapseWhiteSpaceState, cr as SPACE, ct as BaseTransformOptions, d as isHotkey, da as AnyInputRule, di as resetBlock, dn as WhiteSpaceRule, dr as HtmlPlugin, dt as EditOnlyConfig, ea as RenderStaticNodeWrapperProps, ei as AUTO_SCROLL, en as isLastNonEmptyTextOfInlineFormattingContext, er as cleanHtmlEmptyElements, et as AnyPluginConfig, f as getSlateClass, fa as BaseInputRule, fi as LiftBlockOptions, fn as unwrapHtmlElement, fr as withChunking, ft as ExtendConfig, g as getInjectedPlugins, ga as BlockStartInputRuleMatch, gi as InitOptions, gn as traverseHtmlComments, gr as DebugConfig, gt as InferKey, h as keyToDataAttribute, ha as BlockStartInputRuleConfig, hi as insertExitBreak, hn as traverseHtmlElements, hr as CorePluginTransforms, ht as InferApi, i as overridePluginsByKey, ia as SlatePluginContext, ii as ScrollMode, in as collapseWhiteSpaceElement, ir as DeserializeHtmlNodeReturnType, it as BasePlugin, j as EditableProps, ja as MatchBlockStartOptions, ji as AnyEditorPlugin, jn as isHtmlFragmentHref, jr as PlateError, jt as ParagraphConfig, k as ApplyDeepToNodesOptions, ka as MarkInputRuleConfig, ki as createSlatePlugin, kn as isHtmlTable, kr as DebugPlugin, kt as WithRequiredKey, l as Hotkeys, la as TransformInitialValue, li as isElementStateEmpty, ln as TrimEndRule, lr as TAB, lt as BreakRules, m as getNodeDataAttributeKeys, ma as BlockFenceInputRuleMatch, mi as InsertExitBreakOptions, mn as traverseHtmlNode, mr as CorePluginApi, mt as GetInjectNodePropsReturnType, n as pipeOnNodeChange, na as SlatePlugin, ni as DOMPlugin, nn as collapseWhiteSpaceText, nr as cleanHtmlBrElements, nt as BaseHtmlDeserializer, o as normalizeDescendantsToDocumentFragment, oa as SlatePlugins, oi as withScrolling, on as collapseWhiteSpace, or as LINE_FEED, ot as BasePluginNode, p as getPluginNodeProps, pa as BlockFenceInputRuleConfig, pi as liftBlock, pn as traverseHtmlTexts, pr as CorePlugin, pt as GetInjectNodePropsOptions, q as withSlate, qi as NodeStaticWrapperComponentReturnType, qn as deserializeHtmlNode, qr as NavigationFeedbackActiveTarget, qt as createMarkInputRule, r as pipeInsertDataQuery, ra as SlatePluginConfig, ri as DomConfig, rn as collapseWhiteSpaceNode, rr as DeserializeHtmlChildren, rt as BaseInjectProps, s as mergeDeepToNodes, sa as SlateShortcut, si as SlateExtensionConfig, sn as collapseString, sr as NO_BREAK_SPACE, st as BaseSerializer, t as pipeOnTextChange, ta as Serializer, ti as AutoScrollOperationsMap, tn as inferWhiteSpaceRule, tr as cleanHtmlCrLf, tt as BaseDeserializer, u as createHotkey, ua as TransformOptions, ui as setValue, un as TrimStartRule, ur as ZERO_WIDTH_SPACE, ut as DeleteRules, v as defaultsDeepToNodes, va as InputRuleBuilder, vi as ParserPlugin, vn as removeHtmlSurroundings, vr as LengthConfig, vt as InferSelectors, w as isSlatePluginElement, wa as InsertBreakInputRuleContext, wi as getPluginKeys, wn as pipeDeserializeHtmlElement, wr as NodeIdPlugin, wt as NormalizeRules, x as isSlateElement, xa as InputRulesDefinition, xi as getContainerTypes, xn as postCleanHtml, xr as ChunkingPlugin, xt as MergeRules, y as getSlateElements, ya as InputRuleTarget, yi as HistoryPlugin, yn as removeHtmlNodesBetweenComments, yr as getCorePlugins, yt as InferTransforms, z as RenderChunkProps, zi as HtmlDeserializer, zn as htmlElementToElement, zr as AffinityPlugin, zt as NormalizeStaticValueOptions } from "./index-
|
|
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";
|
|
2
2
|
export { AUTO_SCROLL, AffinityConfig, AffinityPlugin, AnyEditorPlugin, AnyInputRule, AnyPluginConfig, AnySlatePlugin, ApplyDeepToNodesOptions, AstPlugin, AutoScrollOperationsMap, BaseDeserializer, BaseEditor, BaseHtmlDeserializer, BaseInjectProps, BaseInputRule, BaseParagraphPlugin, BasePlugin, BasePluginContext, BasePluginNode, BaseSerializer, BaseTransformOptions, BaseWithSlateOptions, BlockFenceInputRuleConfig, BlockFenceInputRuleMatch, BlockStartInputRuleConfig, BlockStartInputRuleMatch, BreakRules, CARRIAGE_RETURN, ChunkingConfig, ChunkingPlugin, CollapseWhiteSpaceState, CorePlugin, CorePluginApi, CorePluginTransforms, CreateSlateEditorOptions, DOMPlugin, DebugConfig, DebugErrorType, DebugPlugin, Decorate, DeleteRules, DelimitedInlineInputRuleMatch, DeserializeHtmlChildren, DeserializeHtmlNodeReturnType, Deserializer, DomConfig, EdgeNodes, EditOnlyConfig, EditableProps, EditorPlugin, ElementAffinity, ExtendConfig, ExtendEditor, ExtendEditorApi, ExtendEditorTransforms, GetCorePluginsOptions, GetInjectNodePropsOptions, GetInjectNodePropsReturnType, HandlerReturnType, HistoryPlugin, Hotkeys, HtmlDeserializer, HtmlPlugin, HtmlSerializer, InferApi, InferConfig, InferKey, InferOptions, InferPlugins, InferSelectors, InferTransforms, InitOptions, InjectNodeProps, InputRuleBuilder, InputRuleTarget, InputRulesConfig, InputRulesDefinition, InputRulesFactoryContext, InsertBreakInputRule, InsertBreakInputRuleContext, InsertDataInputRule, InsertDataInputRuleContext, InsertExitBreakOptions, InsertTextInputRule, InsertTextInputRuleContext, KeyofNodePlugins, KeyofPlugins, LINE_FEED, LeafStaticProps, LengthConfig, LengthPlugin, LiftBlockOptions, LogLevel, MarkInputRuleConfig, MatchBlockFenceOptions, MatchBlockStartOptions, MatchDelimitedInlineOptions, MatchRules, MergeRules, NAVIGATION_FEEDBACK_KEY, NO_BREAK_SPACE, NavigationFeedbackActiveTarget, NavigationFeedbackConfig, NavigationFeedbackPlugin, NavigationFeedbackPluginKey, NavigationFeedbackStoredTarget, NavigationFeedbackTarget, NavigationFlashTargetOptions, NavigationNavigateOptions, NodeComponent, NodeComponents, NodeIdConfig, NodeIdOptions, NodeIdPlugin, NodeStaticProps, NodeStaticWrapperComponent, NodeStaticWrapperComponentProps, NodeStaticWrapperComponentReturnType, NormalizeInitialValue, NormalizeNodeIdOptions, NormalizeRules, NormalizeStaticValueOptions, OverrideEditor, OverridePlugin, ParagraphConfig, Parser, ParserOptions, ParserPlugin, PartialEditorPlugin, PlateError, PluginConfig, RenderChunkFn, RenderChunkProps, RenderElementFn, RenderElementProps, RenderLeafFn, RenderLeafProps, RenderStaticNodeWrapper, RenderStaticNodeWrapperFunction, RenderStaticNodeWrapperProps, RenderTextFn, RenderTextProps, ResolvedInputRule, ResolvedInputRulesMeta, SPACE, STATIC_VALUE_CREATED_AT, ScrollMode, SelectionInputRuleContext, SelectionRules, Serializer, SlateEditor, SlateExtensionConfig, SlateExtensionPlugin, SlatePlugin, SlatePluginConfig, SlatePluginContext, SlatePluginMethods, SlatePlugins, SlateShortcut, TAB, TSlateEditor, TextStaticProps, TextSubstitutionInputRuleConfig, TextSubstitutionMatch, TextSubstitutionPattern, TransformInitialValue, TransformOptions, TrimEndRule, TrimStartRule, WhiteSpaceRule, WithAnyKey, WithAutoScrollOptions, WithRequiredKey, WithSlateOptions, ZERO_WIDTH_SPACE, ZustandStoreApi, applyDeepToNodes, cleanHtmlBrElements, cleanHtmlCrLf, cleanHtmlEmptyElements, cleanHtmlFontElements, cleanHtmlLinkElements, cleanHtmlTextNodes, clearNavigationFeedbackTarget, collapseString, collapseWhiteSpace, collapseWhiteSpaceChildren, collapseWhiteSpaceElement, collapseWhiteSpaceNode, collapseWhiteSpaceText, copyBlockMarksToSpanChild, createBlockFenceInputRule, createBlockStartInputRule, createHotkey, createMarkInputRule, createRuleFactory, createSlateEditor, createSlatePlugin, createTSlatePlugin, createTextSubstitutionInputRule, createZustandStore, defaultsDeepToNodes, defineInputRule, deserializeHtml, deserializeHtmlElement, deserializeHtmlNode, deserializeHtmlNodeChildren, endInlineFormattingContext, findHtmlElement, flashTarget, getContainerTypes, getCorePlugins, getDataNodeProps, getEdgeNodes, getEditorPlugin, getHtmlComments, getInjectMatch, getInjectedPlugins, getMarkBoundaryAffinity, getNodeDataAttributeKeys, getPluginByType, getPluginKey, getPluginKeys, getPluginNodeProps, getPluginType, getPluginTypes, getSlateClass, getSlateElements, getSlatePlugin, htmlBodyToFragment, htmlBrToNewLine, htmlElementToElement, htmlElementToLeaf, htmlStringToDOMNode, htmlTextNodeToString, inferWhiteSpaceRule, init, inlineTagNames, insertExitBreak, isElementStateEmpty, isHotkey, isHtmlBlockElement, isHtmlComment, isHtmlElement, isHtmlFragmentHref, isHtmlInlineElement, isHtmlTable, isHtmlText, isLastNonEmptyTextOfInlineFormattingContext, isNodeAffinity, isNodesAffinity, isOlSymbol, isSlateEditor, isSlateElement, isSlateLeaf, isSlateNode, isSlatePluginElement, isSlatePluginNode, isSlateString, isSlateText, isSlateVoid, isType, keyToDataAttribute, liftBlock, matchBlockFence, matchBlockStart, matchDelimitedInline, mergeDeepToNodes, nanoid, navigate, normalizeDescendantsToDocumentFragment, normalizeNodeId, normalizeNodeIdWithEditor, normalizeStaticValue, omitPluginContext, overridePluginsByKey, parseHtmlDocument, parseHtmlElement, pipeDeserializeHtmlElement, pipeDeserializeHtmlLeaf, pipeInsertDataQuery, pipeOnNodeChange, pipeOnTextChange, pluginDeserializeHtml, postCleanHtml, preCleanHtml, removeHtmlNodesBetweenComments, removeHtmlSurroundings, replaceTagName, resetBlock, resolveNavigationFeedbackTarget, setAffinitySelection, setValue, someHtmlElement, traverseHtmlComments, traverseHtmlElements, traverseHtmlNode, traverseHtmlTexts, unwrapHtmlElement, upsertInlineFormattingContext, withBreakRules, withChunking, withDeleteRules, withMergeRules, withNodeId, withNormalizeRules, withOverrides, withPlateHistory, withScrolling, withSlate };
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as isLastNonEmptyTextOfInlineFormattingContext, $t as matchDelimitedInline, A as
|
|
1
|
+
import { $ as isLastNonEmptyTextOfInlineFormattingContext, $t as matchDelimitedInline, A as deserializeHtml, At as isSlateNode, B as pluginDeserializeHtml, Bt as withMergeRules, C as clearNavigationFeedbackTarget, Ct as keyToDataAttribute, D as NavigationFeedbackPluginKey, Dt as isSlateEditor, E as NAVIGATION_FEEDBACK_KEY, Et as getSlateElements, F as htmlTextNodeToString, Ft as isSlateVoid, G as collapseWhiteSpace, Gt as withPlateHistory, H as htmlBrToNewLine, Ht as withBreakRules, I as htmlElementToLeaf, It as applyDeepToNodes, J as collapseWhiteSpaceChildren, Jt as createBlockStartInputRule, K as collapseWhiteSpaceElement, Kt as AstPlugin, L as pipeDeserializeHtmlLeaf, Lt as OverridePlugin, M as parseHtmlDocument, Mt as isSlatePluginNode, N as deserializeHtmlElement, Nt as isSlateString, O as LengthPlugin, Ot as isSlateElement, P as deserializeHtmlNode, Pt as isSlateText, Q as upsertInlineFormattingContext, Qt as matchBlockStart, R as htmlElementToElement, Rt as withOverrides, S as navigate, St as getNodeDataAttributeKeys, T as resolveNavigationFeedbackTarget, Tt as getInjectMatch, U as htmlBodyToFragment, Ut as BaseParagraphPlugin, V as getDataNodeProps, Vt as withDeleteRules, W as deserializeHtmlNodeChildren, Wt as HistoryPlugin, X as collapseWhiteSpaceText, Xt as createTextSubstitutionInputRule, Y as collapseWhiteSpaceNode, Yt as createMarkInputRule, Z as endInlineFormattingContext, Zt as matchBlockFence, _ as NodeIdPlugin, _t as getMarkBoundaryAffinity, a as pipeInsertDataQuery, an as getPluginType, at as isHtmlElement, b as withNodeId, bt as getSlateClass, c as isElementStateEmpty, cn as getEditorPlugin, ct as withScrolling, d as liftBlock, dt as ChunkingPlugin, en as defineInputRule, et as collapseString, f as insertExitBreak, ft as withChunking, g as pipeOnNodeChange, gt as isNodesAffinity, h as pipeOnTextChange, ht as isNodeAffinity, i as ParserPlugin, in as getPluginKeys, it as isHtmlText, j as htmlStringToDOMNode, jt as isSlatePluginElement, k as HtmlPlugin, kt as isSlateLeaf, l as setValue, ln as createSlatePlugin, lt as DebugPlugin, mt as setAffinitySelection, n as withSlate, nn as getPluginByType, nt as isHtmlInlineElement, o as normalizeDescendantsToDocumentFragment, on as getPluginTypes, ot as AUTO_SCROLL, p as init, pt as AffinityPlugin, q as inferWhiteSpaceRule, qt as createBlockFenceInputRule, r as getCorePlugins, rn as getPluginKey, rt as inlineTagNames, s as SlateExtensionPlugin, sn as getSlatePlugin, st as DOMPlugin, t as createSlateEditor, tn as getContainerTypes, tt as isHtmlBlockElement, u as resetBlock, un as createTSlatePlugin, ut as PlateError, v as normalizeNodeId, vt as getEdgeNodes, w as flashTarget, wt as getInjectedPlugins, x as NavigationFeedbackPlugin, xt as getPluginNodeProps, y as normalizeNodeIdWithEditor, yt as mergeDeepToNodes, z as pipeDeserializeHtmlElement, zt as withNormalizeRules } from "./withSlate-CGuPv-qn.js";
|
|
2
2
|
import { n as createHotkey, r as isHotkey, t as Hotkeys } from "./hotkeys-DI1HPO2Q.js";
|
|
3
3
|
import { nanoid } from "nanoid";
|
|
4
4
|
import { createVanillaStore as createZustandStore } from "zustand-x/vanilla";
|
package/dist/react/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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-
|
|
2
|
-
import * as
|
|
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";
|
|
3
3
|
import { DecoratedRange, Descendant, DescendantIn, Editor, EditorApi, EditorTransforms, ElementEntry, NodeEntry, NodeOperation, Operation, Path, TElement, TNode, TRange, TSelection, TText, TextOperation, Value, ValueOf } from "@platejs/slate";
|
|
4
4
|
import { AnyObject, Deep2Partial, Modify, Nullable, UnionToIntersection, UnknownObject } from "@udecode/utils";
|
|
5
5
|
import { DefaultPlaceholder, Editable, RenderPlaceholderProps, Slate, useComposing, useFocused, useReadOnly, useSelected, useSlateStatic, withReact } from "slate-react";
|
|
@@ -7,7 +7,7 @@ import React$1, { DependencyList, HTMLAttributes } from "react";
|
|
|
7
7
|
import { HotkeysEvent, HotkeysOptions, Keys } from "@udecode/react-hotkeys";
|
|
8
8
|
import * as jotai10 from "jotai";
|
|
9
9
|
import { Atom, atom } from "jotai";
|
|
10
|
-
import * as
|
|
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";
|
|
@@ -17,32 +17,32 @@ import { createStore } from "jotai/vanilla";
|
|
|
17
17
|
declare const SlateReactExtensionPlugin: PlatePlugin<PluginConfig<"slateExtension", {
|
|
18
18
|
onNodeChange: (options: {
|
|
19
19
|
editor: SlateEditor;
|
|
20
|
-
node:
|
|
21
|
-
operation:
|
|
22
|
-
prevNode:
|
|
20
|
+
node: _platejs_slate20.Descendant;
|
|
21
|
+
operation: _platejs_slate20.NodeOperation;
|
|
22
|
+
prevNode: _platejs_slate20.Descendant;
|
|
23
23
|
}) => void;
|
|
24
24
|
onTextChange: (options: {
|
|
25
25
|
editor: SlateEditor;
|
|
26
|
-
node:
|
|
27
|
-
operation:
|
|
26
|
+
node: _platejs_slate20.Descendant;
|
|
27
|
+
operation: _platejs_slate20.TextOperation;
|
|
28
28
|
prevText: string;
|
|
29
29
|
text: string;
|
|
30
30
|
}) => void;
|
|
31
31
|
}, {
|
|
32
32
|
redecorate: (() => void) & (() => void);
|
|
33
|
-
isElementStateEmpty: (element:
|
|
33
|
+
isElementStateEmpty: (element: _platejs_slate20.TElement) => boolean;
|
|
34
34
|
}, {
|
|
35
|
-
reset: (options:
|
|
35
|
+
reset: (options: _platejs_slate20.ResetOptions | undefined) => void;
|
|
36
36
|
init: ((args_0: InitOptions) => void) & ((args_0: InitOptions) => void);
|
|
37
37
|
insertExitBreak: ((args_0?: InsertExitBreakOptions | undefined) => true | undefined) & ((args_0?: InsertExitBreakOptions | undefined) => true | undefined);
|
|
38
38
|
liftBlock: ((args_0?: LiftBlockOptions | undefined) => true | undefined) & ((args_0?: LiftBlockOptions | undefined) => true | undefined);
|
|
39
39
|
resetBlock: ((args_0?: {
|
|
40
|
-
at?:
|
|
40
|
+
at?: _platejs_slate20.Path;
|
|
41
41
|
} | undefined) => true | undefined) & ((args_0?: {
|
|
42
|
-
at?:
|
|
42
|
+
at?: _platejs_slate20.Path;
|
|
43
43
|
} | undefined) => true | undefined);
|
|
44
|
-
setValue: ((value?: string |
|
|
45
|
-
apply: <N$1 extends
|
|
44
|
+
setValue: ((value?: string | _platejs_slate20.Value | undefined) => void) & ((value?: string | _platejs_slate20.Value | undefined) => void);
|
|
45
|
+
apply: <N$1 extends _platejs_slate20.TElement | _platejs_slate20.TText>(operation: _platejs_slate20.Operation<N$1>) => void;
|
|
46
46
|
}, {}>>;
|
|
47
47
|
//#endregion
|
|
48
48
|
//#region src/react/plugins/event-editor/EventEditorPlugin.d.ts
|
|
@@ -102,7 +102,7 @@ declare const ParagraphPlugin: PlatePlugin<PluginConfig<"p", {}, {}, {}, {}>>;
|
|
|
102
102
|
declare const ReactPlugin: PlatePlugin<PluginConfig<"dom", {
|
|
103
103
|
scrollMode?: ScrollMode;
|
|
104
104
|
scrollOperations?: AutoScrollOperationsMap;
|
|
105
|
-
scrollOptions?:
|
|
105
|
+
scrollOptions?: _platejs_slate20.ScrollIntoViewOptions;
|
|
106
106
|
}, {
|
|
107
107
|
isScrolling: () => boolean;
|
|
108
108
|
}, {
|
|
@@ -819,36 +819,36 @@ declare const getPlateCorePlugins: ({
|
|
|
819
819
|
}) => (PlatePlugin<PluginConfig<"eventEditor", {}, {}, {}, {}>> | PlatePlugin<PluginConfig<"slateExtension", {
|
|
820
820
|
onNodeChange: (options: {
|
|
821
821
|
editor: SlateEditor;
|
|
822
|
-
node:
|
|
823
|
-
operation:
|
|
824
|
-
prevNode:
|
|
822
|
+
node: _platejs_slate20.Descendant;
|
|
823
|
+
operation: _platejs_slate20.NodeOperation;
|
|
824
|
+
prevNode: _platejs_slate20.Descendant;
|
|
825
825
|
}) => void;
|
|
826
826
|
onTextChange: (options: {
|
|
827
827
|
editor: SlateEditor;
|
|
828
|
-
node:
|
|
829
|
-
operation:
|
|
828
|
+
node: _platejs_slate20.Descendant;
|
|
829
|
+
operation: _platejs_slate20.TextOperation;
|
|
830
830
|
prevText: string;
|
|
831
831
|
text: string;
|
|
832
832
|
}) => void;
|
|
833
833
|
}, {
|
|
834
834
|
redecorate: (() => void) & (() => void);
|
|
835
|
-
isElementStateEmpty: (element:
|
|
835
|
+
isElementStateEmpty: (element: _platejs_slate20.TElement) => boolean;
|
|
836
836
|
}, {
|
|
837
|
-
reset: (options:
|
|
837
|
+
reset: (options: _platejs_slate20.ResetOptions | undefined) => void;
|
|
838
838
|
init: ((args_0: InitOptions) => void) & ((args_0: InitOptions) => void);
|
|
839
839
|
insertExitBreak: ((args_0?: InsertExitBreakOptions | undefined) => true | undefined) & ((args_0?: InsertExitBreakOptions | undefined) => true | undefined);
|
|
840
840
|
liftBlock: ((args_0?: LiftBlockOptions | undefined) => true | undefined) & ((args_0?: LiftBlockOptions | undefined) => true | undefined);
|
|
841
841
|
resetBlock: ((args_0?: {
|
|
842
|
-
at?:
|
|
842
|
+
at?: _platejs_slate20.Path;
|
|
843
843
|
} | undefined) => true | undefined) & ((args_0?: {
|
|
844
|
-
at?:
|
|
844
|
+
at?: _platejs_slate20.Path;
|
|
845
845
|
} | undefined) => true | undefined);
|
|
846
|
-
setValue: ((value?: string |
|
|
847
|
-
apply: <N$1 extends
|
|
846
|
+
setValue: ((value?: string | _platejs_slate20.Value | undefined) => void) & ((value?: string | _platejs_slate20.Value | undefined) => void);
|
|
847
|
+
apply: <N$1 extends _platejs_slate20.TElement | _platejs_slate20.TText>(operation: _platejs_slate20.Operation<N$1>) => void;
|
|
848
848
|
}, {}>> | PlatePlugin<PluginConfig<"dom", {
|
|
849
849
|
scrollMode?: ScrollMode;
|
|
850
850
|
scrollOperations?: AutoScrollOperationsMap;
|
|
851
|
-
scrollOptions?:
|
|
851
|
+
scrollOptions?: _platejs_slate20.ScrollIntoViewOptions;
|
|
852
852
|
}, {
|
|
853
853
|
isScrolling: () => boolean;
|
|
854
854
|
}, {
|
|
@@ -918,7 +918,7 @@ declare function getPlugin<C extends AnyPluginConfig = PluginConfig>(editor: Pla
|
|
|
918
918
|
} ? C : PlatePlugin<C>;
|
|
919
919
|
//#endregion
|
|
920
920
|
//#region src/react/plugin/omitPluginContext.d.ts
|
|
921
|
-
declare const omitPluginContext: <T extends PlatePluginContext<AnyPlatePlugin>>(ctx: T) => Omit<T, "api" | "editor" | "plugin" | "
|
|
921
|
+
declare const omitPluginContext: <T extends PlatePluginContext<AnyPlatePlugin>>(ctx: T) => Omit<T, "api" | "editor" | "plugin" | "setOptions" | "tf" | "type" | "getOption" | "getOptions" | "setOption">;
|
|
922
922
|
//#endregion
|
|
923
923
|
//#region src/react/plugin/toPlatePlugin.d.ts
|
|
924
924
|
type PlatePluginConfig$1<C extends AnyPluginConfig, EO = {}, EA = {}, ET = {}, ES = {}> = Omit<Partial<PlatePlugin<PluginConfig<C['key'], EO & InferOptions<C>, EA & InferApi<C>, ET & InferTransforms<C>, ES & InferSelectors<C>>>>, keyof PlatePluginMethods | 'api' | 'node' | 'options' | 'transforms'> & {
|
|
@@ -1094,11 +1094,11 @@ type ElementRuntimeStore = {
|
|
|
1094
1094
|
setState: (nextState: ElementRuntimeState) => void;
|
|
1095
1095
|
subscribe: (listener: () => void) => () => void;
|
|
1096
1096
|
};
|
|
1097
|
-
declare const elementStore:
|
|
1097
|
+
declare const elementStore: jotai_x2.StoreApi<ElementStoreState, object, "element">;
|
|
1098
1098
|
declare const withElementContext: <T>(context: Omit<ElementContextValue, "parent">, callback: () => T) => T;
|
|
1099
1099
|
declare const useElementContext: (scope?: string) => ElementContextValue | null;
|
|
1100
1100
|
declare const useElementStoreContext: (scope?: string) => ElementStoreContextValue | null;
|
|
1101
|
-
declare const useElementStore: (scope?: string) =>
|
|
1101
|
+
declare const useElementStore: (scope?: string) => jotai_x2.ReturnOfUseStoreApi<ElementStoreState, object>;
|
|
1102
1102
|
declare function ElementProvider({
|
|
1103
1103
|
children,
|
|
1104
1104
|
path,
|
|
@@ -1232,7 +1232,7 @@ declare const createPlateStore: <E extends PlateEditor = PlateEditor>({
|
|
|
1232
1232
|
onTextChange,
|
|
1233
1233
|
onValueChange,
|
|
1234
1234
|
...state
|
|
1235
|
-
}?: Partial<PlateStoreState<E>>) =>
|
|
1235
|
+
}?: Partial<PlateStoreState<E>>) => jotai_x2.AtomStoreApi<PlateStoreState<E>, {
|
|
1236
1236
|
trackedEditor: jotai10.Atom<{
|
|
1237
1237
|
editor: any;
|
|
1238
1238
|
version: number | null;
|
|
@@ -1246,12 +1246,12 @@ declare const createPlateStore: <E extends PlateEditor = PlateEditor>({
|
|
|
1246
1246
|
version: number | null;
|
|
1247
1247
|
}>;
|
|
1248
1248
|
}, "plate">;
|
|
1249
|
-
declare const PlateStoreProvider: React$1.FC<
|
|
1249
|
+
declare const PlateStoreProvider: React$1.FC<jotai_x2.ProviderProps<{
|
|
1250
1250
|
composing: boolean | null;
|
|
1251
1251
|
decorate: ((options: {
|
|
1252
1252
|
editor: PlateEditor;
|
|
1253
|
-
entry:
|
|
1254
|
-
}) =>
|
|
1253
|
+
entry: _platejs_slate20.NodeEntry;
|
|
1254
|
+
}) => _platejs_slate20.TRange[]) | null;
|
|
1255
1255
|
isMounted: boolean | null;
|
|
1256
1256
|
primary: boolean | null;
|
|
1257
1257
|
readOnly: boolean | null;
|
|
@@ -1265,34 +1265,34 @@ declare const PlateStoreProvider: React$1.FC<jotai_x0.ProviderProps<{
|
|
|
1265
1265
|
versionValue: number | null;
|
|
1266
1266
|
onChange: ((options: {
|
|
1267
1267
|
editor: PlateEditor;
|
|
1268
|
-
value:
|
|
1268
|
+
value: _platejs_slate20.Value;
|
|
1269
1269
|
}) => void) | null;
|
|
1270
1270
|
onNodeChange: ((options: {
|
|
1271
1271
|
editor: PlateEditor;
|
|
1272
|
-
node:
|
|
1273
|
-
operation:
|
|
1274
|
-
prevNode:
|
|
1272
|
+
node: _platejs_slate20.Descendant;
|
|
1273
|
+
operation: _platejs_slate20.NodeOperation;
|
|
1274
|
+
prevNode: _platejs_slate20.Descendant;
|
|
1275
1275
|
}) => void) | null;
|
|
1276
1276
|
onSelectionChange: ((options: {
|
|
1277
1277
|
editor: PlateEditor;
|
|
1278
|
-
selection:
|
|
1278
|
+
selection: _platejs_slate20.TSelection;
|
|
1279
1279
|
}) => void) | null;
|
|
1280
1280
|
onTextChange: ((options: {
|
|
1281
1281
|
editor: PlateEditor;
|
|
1282
|
-
node:
|
|
1283
|
-
operation:
|
|
1282
|
+
node: _platejs_slate20.Descendant;
|
|
1283
|
+
operation: _platejs_slate20.TextOperation;
|
|
1284
1284
|
prevText: string;
|
|
1285
1285
|
text: string;
|
|
1286
1286
|
}) => void) | null;
|
|
1287
1287
|
onValueChange: ((options: {
|
|
1288
1288
|
editor: PlateEditor;
|
|
1289
|
-
value:
|
|
1289
|
+
value: _platejs_slate20.Value;
|
|
1290
1290
|
}) => void) | null;
|
|
1291
1291
|
id: string;
|
|
1292
1292
|
containerRef: React$1.RefObject<HTMLDivElement | null>;
|
|
1293
1293
|
editor: PlateEditor;
|
|
1294
1294
|
scrollRef: React$1.RefObject<HTMLDivElement | null>;
|
|
1295
|
-
}>>, plateStore:
|
|
1295
|
+
}>>, plateStore: jotai_x2.StoreApi<PlateStoreState<PlateEditor>, {
|
|
1296
1296
|
trackedEditor: jotai10.Atom<{
|
|
1297
1297
|
editor: any;
|
|
1298
1298
|
version: number | null;
|
|
@@ -1305,52 +1305,52 @@ declare const PlateStoreProvider: React$1.FC<jotai_x0.ProviderProps<{
|
|
|
1305
1305
|
value: any;
|
|
1306
1306
|
version: number | null;
|
|
1307
1307
|
}>;
|
|
1308
|
-
}, "plate">, usePlateLocalSet: <K$1 extends "
|
|
1309
|
-
composing:
|
|
1310
|
-
decorate:
|
|
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
|
+
composing: jotai_x2.SimpleWritableAtom<boolean | null>;
|
|
1310
|
+
decorate: jotai_x2.SimpleWritableAtom<((options: {
|
|
1311
1311
|
editor: PlateEditor;
|
|
1312
|
-
entry:
|
|
1313
|
-
}) =>
|
|
1314
|
-
isMounted:
|
|
1315
|
-
primary:
|
|
1316
|
-
readOnly:
|
|
1317
|
-
renderChunk:
|
|
1318
|
-
renderElement:
|
|
1319
|
-
renderLeaf:
|
|
1320
|
-
renderText:
|
|
1321
|
-
versionDecorate:
|
|
1322
|
-
versionEditor:
|
|
1323
|
-
versionSelection:
|
|
1324
|
-
versionValue:
|
|
1325
|
-
onChange:
|
|
1312
|
+
entry: _platejs_slate20.NodeEntry;
|
|
1313
|
+
}) => _platejs_slate20.TRange[]) | null>;
|
|
1314
|
+
isMounted: jotai_x2.SimpleWritableAtom<boolean | null>;
|
|
1315
|
+
primary: jotai_x2.SimpleWritableAtom<boolean | null>;
|
|
1316
|
+
readOnly: jotai_x2.SimpleWritableAtom<boolean | null>;
|
|
1317
|
+
renderChunk: jotai_x2.SimpleWritableAtom<RenderChunkFn | null>;
|
|
1318
|
+
renderElement: jotai_x2.SimpleWritableAtom<RenderElementFn | null>;
|
|
1319
|
+
renderLeaf: jotai_x2.SimpleWritableAtom<RenderLeafFn | null>;
|
|
1320
|
+
renderText: jotai_x2.SimpleWritableAtom<RenderTextFn | null>;
|
|
1321
|
+
versionDecorate: jotai_x2.SimpleWritableAtom<number | null>;
|
|
1322
|
+
versionEditor: jotai_x2.SimpleWritableAtom<number | null>;
|
|
1323
|
+
versionSelection: jotai_x2.SimpleWritableAtom<number | null>;
|
|
1324
|
+
versionValue: jotai_x2.SimpleWritableAtom<number | null>;
|
|
1325
|
+
onChange: jotai_x2.SimpleWritableAtom<((options: {
|
|
1326
1326
|
editor: PlateEditor;
|
|
1327
|
-
value:
|
|
1327
|
+
value: _platejs_slate20.Value;
|
|
1328
1328
|
}) => void) | null>;
|
|
1329
|
-
onNodeChange:
|
|
1329
|
+
onNodeChange: jotai_x2.SimpleWritableAtom<((options: {
|
|
1330
1330
|
editor: PlateEditor;
|
|
1331
|
-
node:
|
|
1332
|
-
operation:
|
|
1333
|
-
prevNode:
|
|
1331
|
+
node: _platejs_slate20.Descendant;
|
|
1332
|
+
operation: _platejs_slate20.NodeOperation;
|
|
1333
|
+
prevNode: _platejs_slate20.Descendant;
|
|
1334
1334
|
}) => void) | null>;
|
|
1335
|
-
onSelectionChange:
|
|
1335
|
+
onSelectionChange: jotai_x2.SimpleWritableAtom<((options: {
|
|
1336
1336
|
editor: PlateEditor;
|
|
1337
|
-
selection:
|
|
1337
|
+
selection: _platejs_slate20.TSelection;
|
|
1338
1338
|
}) => void) | null>;
|
|
1339
|
-
onTextChange:
|
|
1339
|
+
onTextChange: jotai_x2.SimpleWritableAtom<((options: {
|
|
1340
1340
|
editor: PlateEditor;
|
|
1341
|
-
node:
|
|
1342
|
-
operation:
|
|
1341
|
+
node: _platejs_slate20.Descendant;
|
|
1342
|
+
operation: _platejs_slate20.TextOperation;
|
|
1343
1343
|
prevText: string;
|
|
1344
1344
|
text: string;
|
|
1345
1345
|
}) => void) | null>;
|
|
1346
|
-
onValueChange:
|
|
1346
|
+
onValueChange: jotai_x2.SimpleWritableAtom<((options: {
|
|
1347
1347
|
editor: PlateEditor;
|
|
1348
|
-
value:
|
|
1348
|
+
value: _platejs_slate20.Value;
|
|
1349
1349
|
}) => void) | null>;
|
|
1350
|
-
id:
|
|
1351
|
-
containerRef:
|
|
1352
|
-
editor:
|
|
1353
|
-
scrollRef:
|
|
1350
|
+
id: jotai_x2.SimpleWritableAtom<string>;
|
|
1351
|
+
containerRef: jotai_x2.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
|
|
1352
|
+
editor: jotai_x2.SimpleWritableAtom<PlateEditor>;
|
|
1353
|
+
scrollRef: jotai_x2.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
|
|
1354
1354
|
} & {
|
|
1355
1355
|
trackedEditor: jotai10.Atom<{
|
|
1356
1356
|
editor: any;
|
|
@@ -1364,52 +1364,52 @@ declare const PlateStoreProvider: React$1.FC<jotai_x0.ProviderProps<{
|
|
|
1364
1364
|
value: any;
|
|
1365
1365
|
version: number | null;
|
|
1366
1366
|
}>;
|
|
1367
|
-
})[K$1] extends jotai10.WritableAtom<infer _V, infer A extends unknown[], infer R> ? (...args: A) => R : never, usePlateLocalState: <K$1 extends "
|
|
1368
|
-
composing:
|
|
1369
|
-
decorate:
|
|
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
|
+
composing: jotai_x2.SimpleWritableAtom<boolean | null>;
|
|
1369
|
+
decorate: jotai_x2.SimpleWritableAtom<((options: {
|
|
1370
1370
|
editor: PlateEditor;
|
|
1371
|
-
entry:
|
|
1372
|
-
}) =>
|
|
1373
|
-
isMounted:
|
|
1374
|
-
primary:
|
|
1375
|
-
readOnly:
|
|
1376
|
-
renderChunk:
|
|
1377
|
-
renderElement:
|
|
1378
|
-
renderLeaf:
|
|
1379
|
-
renderText:
|
|
1380
|
-
versionDecorate:
|
|
1381
|
-
versionEditor:
|
|
1382
|
-
versionSelection:
|
|
1383
|
-
versionValue:
|
|
1384
|
-
onChange:
|
|
1371
|
+
entry: _platejs_slate20.NodeEntry;
|
|
1372
|
+
}) => _platejs_slate20.TRange[]) | null>;
|
|
1373
|
+
isMounted: jotai_x2.SimpleWritableAtom<boolean | null>;
|
|
1374
|
+
primary: jotai_x2.SimpleWritableAtom<boolean | null>;
|
|
1375
|
+
readOnly: jotai_x2.SimpleWritableAtom<boolean | null>;
|
|
1376
|
+
renderChunk: jotai_x2.SimpleWritableAtom<RenderChunkFn | null>;
|
|
1377
|
+
renderElement: jotai_x2.SimpleWritableAtom<RenderElementFn | null>;
|
|
1378
|
+
renderLeaf: jotai_x2.SimpleWritableAtom<RenderLeafFn | null>;
|
|
1379
|
+
renderText: jotai_x2.SimpleWritableAtom<RenderTextFn | null>;
|
|
1380
|
+
versionDecorate: jotai_x2.SimpleWritableAtom<number | null>;
|
|
1381
|
+
versionEditor: jotai_x2.SimpleWritableAtom<number | null>;
|
|
1382
|
+
versionSelection: jotai_x2.SimpleWritableAtom<number | null>;
|
|
1383
|
+
versionValue: jotai_x2.SimpleWritableAtom<number | null>;
|
|
1384
|
+
onChange: jotai_x2.SimpleWritableAtom<((options: {
|
|
1385
1385
|
editor: PlateEditor;
|
|
1386
|
-
value:
|
|
1386
|
+
value: _platejs_slate20.Value;
|
|
1387
1387
|
}) => void) | null>;
|
|
1388
|
-
onNodeChange:
|
|
1388
|
+
onNodeChange: jotai_x2.SimpleWritableAtom<((options: {
|
|
1389
1389
|
editor: PlateEditor;
|
|
1390
|
-
node:
|
|
1391
|
-
operation:
|
|
1392
|
-
prevNode:
|
|
1390
|
+
node: _platejs_slate20.Descendant;
|
|
1391
|
+
operation: _platejs_slate20.NodeOperation;
|
|
1392
|
+
prevNode: _platejs_slate20.Descendant;
|
|
1393
1393
|
}) => void) | null>;
|
|
1394
|
-
onSelectionChange:
|
|
1394
|
+
onSelectionChange: jotai_x2.SimpleWritableAtom<((options: {
|
|
1395
1395
|
editor: PlateEditor;
|
|
1396
|
-
selection:
|
|
1396
|
+
selection: _platejs_slate20.TSelection;
|
|
1397
1397
|
}) => void) | null>;
|
|
1398
|
-
onTextChange:
|
|
1398
|
+
onTextChange: jotai_x2.SimpleWritableAtom<((options: {
|
|
1399
1399
|
editor: PlateEditor;
|
|
1400
|
-
node:
|
|
1401
|
-
operation:
|
|
1400
|
+
node: _platejs_slate20.Descendant;
|
|
1401
|
+
operation: _platejs_slate20.TextOperation;
|
|
1402
1402
|
prevText: string;
|
|
1403
1403
|
text: string;
|
|
1404
1404
|
}) => void) | null>;
|
|
1405
|
-
onValueChange:
|
|
1405
|
+
onValueChange: jotai_x2.SimpleWritableAtom<((options: {
|
|
1406
1406
|
editor: PlateEditor;
|
|
1407
|
-
value:
|
|
1407
|
+
value: _platejs_slate20.Value;
|
|
1408
1408
|
}) => void) | null>;
|
|
1409
|
-
id:
|
|
1410
|
-
containerRef:
|
|
1411
|
-
editor:
|
|
1412
|
-
scrollRef:
|
|
1409
|
+
id: jotai_x2.SimpleWritableAtom<string>;
|
|
1410
|
+
containerRef: jotai_x2.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
|
|
1411
|
+
editor: jotai_x2.SimpleWritableAtom<PlateEditor>;
|
|
1412
|
+
scrollRef: jotai_x2.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
|
|
1413
1413
|
} & {
|
|
1414
1414
|
trackedEditor: jotai10.Atom<{
|
|
1415
1415
|
editor: any;
|
|
@@ -1423,7 +1423,7 @@ declare const PlateStoreProvider: React$1.FC<jotai_x0.ProviderProps<{
|
|
|
1423
1423
|
value: any;
|
|
1424
1424
|
version: number | null;
|
|
1425
1425
|
}>;
|
|
1426
|
-
})[K$1] extends jotai10.WritableAtom<infer V, infer A extends unknown[], infer R> ? [V, (...args: A) => R] : never, usePlateLocalStore:
|
|
1426
|
+
})[K$1] extends jotai10.WritableAtom<infer V, infer A extends unknown[], infer R> ? [V, (...args: A) => R] : never, usePlateLocalStore: jotai_x2.UseStoreApi<PlateStoreState<PlateEditor>, {
|
|
1427
1427
|
trackedEditor: jotai10.Atom<{
|
|
1428
1428
|
editor: any;
|
|
1429
1429
|
version: number | null;
|
|
@@ -1436,52 +1436,52 @@ declare const PlateStoreProvider: React$1.FC<jotai_x0.ProviderProps<{
|
|
|
1436
1436
|
value: any;
|
|
1437
1437
|
version: number | null;
|
|
1438
1438
|
}>;
|
|
1439
|
-
}>, usePlateLocalValue: <K$1 extends "
|
|
1440
|
-
composing:
|
|
1441
|
-
decorate:
|
|
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
|
+
composing: jotai_x2.SimpleWritableAtom<boolean | null>;
|
|
1441
|
+
decorate: jotai_x2.SimpleWritableAtom<((options: {
|
|
1442
1442
|
editor: PlateEditor;
|
|
1443
|
-
entry:
|
|
1444
|
-
}) =>
|
|
1445
|
-
isMounted:
|
|
1446
|
-
primary:
|
|
1447
|
-
readOnly:
|
|
1448
|
-
renderChunk:
|
|
1449
|
-
renderElement:
|
|
1450
|
-
renderLeaf:
|
|
1451
|
-
renderText:
|
|
1452
|
-
versionDecorate:
|
|
1453
|
-
versionEditor:
|
|
1454
|
-
versionSelection:
|
|
1455
|
-
versionValue:
|
|
1456
|
-
onChange:
|
|
1443
|
+
entry: _platejs_slate20.NodeEntry;
|
|
1444
|
+
}) => _platejs_slate20.TRange[]) | null>;
|
|
1445
|
+
isMounted: jotai_x2.SimpleWritableAtom<boolean | null>;
|
|
1446
|
+
primary: jotai_x2.SimpleWritableAtom<boolean | null>;
|
|
1447
|
+
readOnly: jotai_x2.SimpleWritableAtom<boolean | null>;
|
|
1448
|
+
renderChunk: jotai_x2.SimpleWritableAtom<RenderChunkFn | null>;
|
|
1449
|
+
renderElement: jotai_x2.SimpleWritableAtom<RenderElementFn | null>;
|
|
1450
|
+
renderLeaf: jotai_x2.SimpleWritableAtom<RenderLeafFn | null>;
|
|
1451
|
+
renderText: jotai_x2.SimpleWritableAtom<RenderTextFn | null>;
|
|
1452
|
+
versionDecorate: jotai_x2.SimpleWritableAtom<number | null>;
|
|
1453
|
+
versionEditor: jotai_x2.SimpleWritableAtom<number | null>;
|
|
1454
|
+
versionSelection: jotai_x2.SimpleWritableAtom<number | null>;
|
|
1455
|
+
versionValue: jotai_x2.SimpleWritableAtom<number | null>;
|
|
1456
|
+
onChange: jotai_x2.SimpleWritableAtom<((options: {
|
|
1457
1457
|
editor: PlateEditor;
|
|
1458
|
-
value:
|
|
1458
|
+
value: _platejs_slate20.Value;
|
|
1459
1459
|
}) => void) | null>;
|
|
1460
|
-
onNodeChange:
|
|
1460
|
+
onNodeChange: jotai_x2.SimpleWritableAtom<((options: {
|
|
1461
1461
|
editor: PlateEditor;
|
|
1462
|
-
node:
|
|
1463
|
-
operation:
|
|
1464
|
-
prevNode:
|
|
1462
|
+
node: _platejs_slate20.Descendant;
|
|
1463
|
+
operation: _platejs_slate20.NodeOperation;
|
|
1464
|
+
prevNode: _platejs_slate20.Descendant;
|
|
1465
1465
|
}) => void) | null>;
|
|
1466
|
-
onSelectionChange:
|
|
1466
|
+
onSelectionChange: jotai_x2.SimpleWritableAtom<((options: {
|
|
1467
1467
|
editor: PlateEditor;
|
|
1468
|
-
selection:
|
|
1468
|
+
selection: _platejs_slate20.TSelection;
|
|
1469
1469
|
}) => void) | null>;
|
|
1470
|
-
onTextChange:
|
|
1470
|
+
onTextChange: jotai_x2.SimpleWritableAtom<((options: {
|
|
1471
1471
|
editor: PlateEditor;
|
|
1472
|
-
node:
|
|
1473
|
-
operation:
|
|
1472
|
+
node: _platejs_slate20.Descendant;
|
|
1473
|
+
operation: _platejs_slate20.TextOperation;
|
|
1474
1474
|
prevText: string;
|
|
1475
1475
|
text: string;
|
|
1476
1476
|
}) => void) | null>;
|
|
1477
|
-
onValueChange:
|
|
1477
|
+
onValueChange: jotai_x2.SimpleWritableAtom<((options: {
|
|
1478
1478
|
editor: PlateEditor;
|
|
1479
|
-
value:
|
|
1479
|
+
value: _platejs_slate20.Value;
|
|
1480
1480
|
}) => void) | null>;
|
|
1481
|
-
id:
|
|
1482
|
-
containerRef:
|
|
1483
|
-
editor:
|
|
1484
|
-
scrollRef:
|
|
1481
|
+
id: jotai_x2.SimpleWritableAtom<string>;
|
|
1482
|
+
containerRef: jotai_x2.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
|
|
1483
|
+
editor: jotai_x2.SimpleWritableAtom<PlateEditor>;
|
|
1484
|
+
scrollRef: jotai_x2.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
|
|
1485
1485
|
} & {
|
|
1486
1486
|
trackedEditor: jotai10.Atom<{
|
|
1487
1487
|
editor: any;
|
|
@@ -1497,51 +1497,51 @@ declare const PlateStoreProvider: React$1.FC<jotai_x0.ProviderProps<{
|
|
|
1497
1497
|
}>;
|
|
1498
1498
|
})[K$1] extends jotai10.Atom<infer V> ? V : never)>(key: K$1, options?: ({
|
|
1499
1499
|
selector?: ((v: ({
|
|
1500
|
-
composing:
|
|
1501
|
-
decorate:
|
|
1500
|
+
composing: jotai_x2.SimpleWritableAtom<boolean | null>;
|
|
1501
|
+
decorate: jotai_x2.SimpleWritableAtom<((options: {
|
|
1502
1502
|
editor: PlateEditor;
|
|
1503
|
-
entry:
|
|
1504
|
-
}) =>
|
|
1505
|
-
isMounted:
|
|
1506
|
-
primary:
|
|
1507
|
-
readOnly:
|
|
1508
|
-
renderChunk:
|
|
1509
|
-
renderElement:
|
|
1510
|
-
renderLeaf:
|
|
1511
|
-
renderText:
|
|
1512
|
-
versionDecorate:
|
|
1513
|
-
versionEditor:
|
|
1514
|
-
versionSelection:
|
|
1515
|
-
versionValue:
|
|
1516
|
-
onChange:
|
|
1503
|
+
entry: _platejs_slate20.NodeEntry;
|
|
1504
|
+
}) => _platejs_slate20.TRange[]) | null>;
|
|
1505
|
+
isMounted: jotai_x2.SimpleWritableAtom<boolean | null>;
|
|
1506
|
+
primary: jotai_x2.SimpleWritableAtom<boolean | null>;
|
|
1507
|
+
readOnly: jotai_x2.SimpleWritableAtom<boolean | null>;
|
|
1508
|
+
renderChunk: jotai_x2.SimpleWritableAtom<RenderChunkFn | null>;
|
|
1509
|
+
renderElement: jotai_x2.SimpleWritableAtom<RenderElementFn | null>;
|
|
1510
|
+
renderLeaf: jotai_x2.SimpleWritableAtom<RenderLeafFn | null>;
|
|
1511
|
+
renderText: jotai_x2.SimpleWritableAtom<RenderTextFn | null>;
|
|
1512
|
+
versionDecorate: jotai_x2.SimpleWritableAtom<number | null>;
|
|
1513
|
+
versionEditor: jotai_x2.SimpleWritableAtom<number | null>;
|
|
1514
|
+
versionSelection: jotai_x2.SimpleWritableAtom<number | null>;
|
|
1515
|
+
versionValue: jotai_x2.SimpleWritableAtom<number | null>;
|
|
1516
|
+
onChange: jotai_x2.SimpleWritableAtom<((options: {
|
|
1517
1517
|
editor: PlateEditor;
|
|
1518
|
-
value:
|
|
1518
|
+
value: _platejs_slate20.Value;
|
|
1519
1519
|
}) => void) | null>;
|
|
1520
|
-
onNodeChange:
|
|
1520
|
+
onNodeChange: jotai_x2.SimpleWritableAtom<((options: {
|
|
1521
1521
|
editor: PlateEditor;
|
|
1522
|
-
node:
|
|
1523
|
-
operation:
|
|
1524
|
-
prevNode:
|
|
1522
|
+
node: _platejs_slate20.Descendant;
|
|
1523
|
+
operation: _platejs_slate20.NodeOperation;
|
|
1524
|
+
prevNode: _platejs_slate20.Descendant;
|
|
1525
1525
|
}) => void) | null>;
|
|
1526
|
-
onSelectionChange:
|
|
1526
|
+
onSelectionChange: jotai_x2.SimpleWritableAtom<((options: {
|
|
1527
1527
|
editor: PlateEditor;
|
|
1528
|
-
selection:
|
|
1528
|
+
selection: _platejs_slate20.TSelection;
|
|
1529
1529
|
}) => void) | null>;
|
|
1530
|
-
onTextChange:
|
|
1530
|
+
onTextChange: jotai_x2.SimpleWritableAtom<((options: {
|
|
1531
1531
|
editor: PlateEditor;
|
|
1532
|
-
node:
|
|
1533
|
-
operation:
|
|
1532
|
+
node: _platejs_slate20.Descendant;
|
|
1533
|
+
operation: _platejs_slate20.TextOperation;
|
|
1534
1534
|
prevText: string;
|
|
1535
1535
|
text: string;
|
|
1536
1536
|
}) => void) | null>;
|
|
1537
|
-
onValueChange:
|
|
1537
|
+
onValueChange: jotai_x2.SimpleWritableAtom<((options: {
|
|
1538
1538
|
editor: PlateEditor;
|
|
1539
|
-
value:
|
|
1539
|
+
value: _platejs_slate20.Value;
|
|
1540
1540
|
}) => void) | null>;
|
|
1541
|
-
id:
|
|
1542
|
-
containerRef:
|
|
1543
|
-
editor:
|
|
1544
|
-
scrollRef:
|
|
1541
|
+
id: jotai_x2.SimpleWritableAtom<string>;
|
|
1542
|
+
containerRef: jotai_x2.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
|
|
1543
|
+
editor: jotai_x2.SimpleWritableAtom<PlateEditor>;
|
|
1544
|
+
scrollRef: jotai_x2.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
|
|
1545
1545
|
} & {
|
|
1546
1546
|
trackedEditor: jotai10.Atom<{
|
|
1547
1547
|
editor: any;
|
|
@@ -1557,8 +1557,8 @@ declare const PlateStoreProvider: React$1.FC<jotai_x0.ProviderProps<{
|
|
|
1557
1557
|
}>;
|
|
1558
1558
|
})[K$1] extends jotai10.Atom<infer V_1> ? V_1 : never, prevSelectorOutput?: S | undefined) => S) | undefined;
|
|
1559
1559
|
equalityFn?: ((prev: S, next: S) => boolean) | undefined;
|
|
1560
|
-
} &
|
|
1561
|
-
declare const usePlateStore: (id?: string) =>
|
|
1560
|
+
} & jotai_x2.UseAtomOptions) | undefined, deps?: unknown[]) => S;
|
|
1561
|
+
declare const usePlateStore: (id?: string) => jotai_x2.ReturnOfUseStoreApi<PlateStoreState<PlateEditor>, {
|
|
1562
1562
|
trackedEditor: jotai10.Atom<{
|
|
1563
1563
|
editor: any;
|
|
1564
1564
|
version: number | null;
|
|
@@ -1664,7 +1664,7 @@ declare function useEditorPluginOptions<C extends AnyPluginConfig, U>(editor: Pl
|
|
|
1664
1664
|
}): U;
|
|
1665
1665
|
//#endregion
|
|
1666
1666
|
//#region src/react/stores/plate-controller/plateControllerStore.d.ts
|
|
1667
|
-
declare const PlateController: React$1.FC<
|
|
1667
|
+
declare const PlateController: React$1.FC<jotai_x2.ProviderProps<{
|
|
1668
1668
|
activeId: string | null;
|
|
1669
1669
|
editorStores: Record<string, ({
|
|
1670
1670
|
get: <Value$1>(atom: Atom<Value$1>) => Value$1;
|
|
@@ -1706,7 +1706,7 @@ declare const PlateController: React$1.FC<jotai_x0.ProviderProps<{
|
|
|
1706
1706
|
dev_restore_atoms: (values: Iterable<readonly [Atom<unknown>, unknown]>) => void;
|
|
1707
1707
|
}>) | null>;
|
|
1708
1708
|
primaryEditorIds: string[];
|
|
1709
|
-
}>>, plateControllerStore:
|
|
1709
|
+
}>>, plateControllerStore: jotai_x2.StoreApi<{
|
|
1710
1710
|
activeId: jotai10.PrimitiveAtom<string | null> & {
|
|
1711
1711
|
init: string | null;
|
|
1712
1712
|
};
|
|
@@ -1792,7 +1792,7 @@ declare const PlateController: React$1.FC<jotai_x0.ProviderProps<{
|
|
|
1792
1792
|
primaryEditorIds: jotai10.PrimitiveAtom<string[]> & {
|
|
1793
1793
|
init: string[];
|
|
1794
1794
|
};
|
|
1795
|
-
}, object, "plateController">, _usePlateControllerStore:
|
|
1795
|
+
}, object, "plateController">, _usePlateControllerStore: jotai_x2.UseStoreApi<{
|
|
1796
1796
|
activeId: jotai10.PrimitiveAtom<string | null> & {
|
|
1797
1797
|
init: string | null;
|
|
1798
1798
|
};
|
|
@@ -1994,7 +1994,7 @@ declare const useEditableProps: ({
|
|
|
1994
1994
|
* if another node is updated in a way that affects this node's path, this hook
|
|
1995
1995
|
* will not return the new path.
|
|
1996
1996
|
*/
|
|
1997
|
-
declare const useNodePath: (node: TNode) =>
|
|
1997
|
+
declare const useNodePath: (node: TNode) => _platejs_slate20.Path | undefined;
|
|
1998
1998
|
//#endregion
|
|
1999
1999
|
//#region src/react/hooks/useSlateProps.d.ts
|
|
2000
2000
|
type SlateComponentProps = Omit<React$1.ComponentProps<typeof Slate>, 'children'>;
|
|
@@ -2009,7 +2009,7 @@ declare const useSlateProps: ({
|
|
|
2009
2009
|
}) => PlateSlateProps;
|
|
2010
2010
|
//#endregion
|
|
2011
2011
|
//#region src/react/utils/createPlateFallbackEditor.d.ts
|
|
2012
|
-
declare const createPlateFallbackEditor: (options?: CreatePlateEditorOptions) => TPlateEditor<
|
|
2012
|
+
declare const createPlateFallbackEditor: (options?: CreatePlateEditorOptions) => TPlateEditor<_platejs_slate20.Value, PlateCorePlugin>;
|
|
2013
2013
|
//#endregion
|
|
2014
2014
|
//#region src/react/utils/dom-attributes.d.ts
|
|
2015
2015
|
declare const DOM_HANDLERS: (keyof DOMHandlers)[];
|
package/dist/react/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Ut as BaseParagraphPlugin, bt as getSlateClass, cn as getEditorPlugin$1, dt as ChunkingPlugin, ln as createSlatePlugin, m as isEditOnly, n as withSlate, nn as getPluginByType, s as SlateExtensionPlugin, st as DOMPlugin, x as NavigationFeedbackPlugin$1, xt as getPluginNodeProps } from "../withSlate-
|
|
1
|
+
import { Ut as BaseParagraphPlugin, bt as getSlateClass, cn as getEditorPlugin$1, dt as ChunkingPlugin, ln as createSlatePlugin, m as isEditOnly, n as withSlate, nn as getPluginByType, s as SlateExtensionPlugin, st as DOMPlugin, x as NavigationFeedbackPlugin$1, xt as getPluginNodeProps } from "../withSlate-CGuPv-qn.js";
|
|
2
2
|
import { t as Hotkeys } from "../hotkeys-DI1HPO2Q.js";
|
|
3
|
-
import { A as pipeInjectNodeProps, C as createStaticEditor, k as pipeDecorate, s as PlateStatic } from "../static-
|
|
3
|
+
import { A as pipeInjectNodeProps, C as createStaticEditor, k as pipeDecorate, s as PlateStatic } from "../static-CTmHK15f.js";
|
|
4
4
|
import { NodeApi, PathApi, createEditor } from "@platejs/slate";
|
|
5
5
|
import { isDefined } from "@udecode/utils";
|
|
6
6
|
import { DefaultPlaceholder, Editable, Slate, useComposing, useFocused, useReadOnly, useSelected, useSlateStatic, withReact } from "slate-react";
|
|
@@ -3288,6 +3288,14 @@ function EditorStateEffect(t0) {
|
|
|
3288
3288
|
|
|
3289
3289
|
//#endregion
|
|
3290
3290
|
//#region src/react/editor/usePlateEditor.ts
|
|
3291
|
+
const cloneNode = (node) => {
|
|
3292
|
+
if (!Array.isArray(node.children)) return { ...node };
|
|
3293
|
+
return {
|
|
3294
|
+
...node,
|
|
3295
|
+
children: node.children.map(cloneNode)
|
|
3296
|
+
};
|
|
3297
|
+
};
|
|
3298
|
+
const cloneValue = (value) => value.map(cloneNode);
|
|
3291
3299
|
/**
|
|
3292
3300
|
* Creates a memoized Plate editor for React components.
|
|
3293
3301
|
*
|
|
@@ -3332,6 +3340,7 @@ function usePlateEditor(options = {}, deps = []) {
|
|
|
3332
3340
|
if (options.enabled === false) return null;
|
|
3333
3341
|
return createPlateEditor({
|
|
3334
3342
|
...options,
|
|
3343
|
+
value: Array.isArray(options.value) ? cloneValue(options.value) : options.value,
|
|
3335
3344
|
onReady: (ctx) => {
|
|
3336
3345
|
if (ctx.isAsync && isMountedRef.current) forceRender({});
|
|
3337
3346
|
options.onReady?.(ctx);
|
package/dist/static/index.d.ts
CHANGED
|
@@ -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-
|
|
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";
|
|
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/dist/static/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../withSlate-
|
|
2
|
-
import { C as createStaticEditor, D as getSelectedDomNode, E as isSelectOutside, O as getSelectedDomFragment, S as useNodeAttributes, T as ViewPlugin, _ as getPluginDataAttributes, a as ElementStatic, b as SlateLeaf, c as pipeRenderTextStatic, d as pluginRenderElementStatic, f as stripSlateDataAttributes, g as getNodeDataAttributes, h as getRenderNodeStaticProps, i as pluginRenderLeafStatic, k as pipeDecorate, l as pluginRenderTextStatic, m as getSelectedDomBlocks, n as serializeHtml, o as LeafStatic, p as stripHtmlClassNames, r as pipeRenderLeafStatic, s as PlateStatic, t as getEditorDOMFromHtmlString, u as pipeRenderElementStatic, v as createStaticString, w as getStaticPlugins, x as SlateText, y as SlateElement } from "../static-
|
|
1
|
+
import "../withSlate-CGuPv-qn.js";
|
|
2
|
+
import { C as createStaticEditor, D as getSelectedDomNode, E as isSelectOutside, O as getSelectedDomFragment, S as useNodeAttributes, T as ViewPlugin, _ as getPluginDataAttributes, a as ElementStatic, b as SlateLeaf, c as pipeRenderTextStatic, d as pluginRenderElementStatic, f as stripSlateDataAttributes, g as getNodeDataAttributes, h as getRenderNodeStaticProps, i as pluginRenderLeafStatic, k as pipeDecorate, l as pluginRenderTextStatic, m as getSelectedDomBlocks, n as serializeHtml, o as LeafStatic, p as stripHtmlClassNames, r as pipeRenderLeafStatic, s as PlateStatic, t as getEditorDOMFromHtmlString, u as pipeRenderElementStatic, v as createStaticString, w as getStaticPlugins, x as SlateText, y as SlateElement } from "../static-CTmHK15f.js";
|
|
3
3
|
|
|
4
4
|
export { ElementStatic, LeafStatic, PlateStatic, SlateElement, SlateLeaf, SlateText, ViewPlugin, createStaticEditor, createStaticString, getEditorDOMFromHtmlString, getNodeDataAttributes, getPluginDataAttributes, getRenderNodeStaticProps, getSelectedDomBlocks, getSelectedDomFragment, getSelectedDomNode, getStaticPlugins, isSelectOutside, pipeDecorate, pipeRenderElementStatic, pipeRenderLeafStatic, pipeRenderTextStatic, pluginRenderElementStatic, pluginRenderLeafStatic, pluginRenderTextStatic, serializeHtml, stripHtmlClassNames, stripSlateDataAttributes, useNodeAttributes };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { Ct as keyToDataAttribute, Tt as getInjectMatch, bt as getSlateClass, cn as getEditorPlugin, m as isEditOnly, n as withSlate, nn as getPluginByType, st as DOMPlugin, xt as getPluginNodeProps } from "./withSlate-
|
|
1
|
+
import { Ct as keyToDataAttribute, Tt as getInjectMatch, bt as getSlateClass, cn as getEditorPlugin, m as isEditOnly, n as withSlate, nn as getPluginByType, st as DOMPlugin, xt as getPluginNodeProps } from "./withSlate-CGuPv-qn.js";
|
|
2
2
|
import { ElementApi, NodeApi, RangeApi, TextApi, createEditor, isElementDecorationsEqual, isTextDecorationsEqual } from "@platejs/slate";
|
|
3
3
|
import { isDefined } from "@udecode/utils";
|
|
4
4
|
import React from "react";
|
|
5
5
|
import clsx$1, { clsx } from "clsx";
|
|
6
|
-
import { decode } from "html-entities";
|
|
7
6
|
|
|
8
7
|
//#region src/internal/plugin/pluginInjectNodeProps.ts
|
|
9
8
|
/**
|
|
@@ -706,7 +705,7 @@ const pipeRenderLeafStatic = (editor, { renderLeaf: renderLeafProp } = {}) => {
|
|
|
706
705
|
const getReactDOMServer = async () => {
|
|
707
706
|
return (await import("react-dom/server")).default;
|
|
708
707
|
};
|
|
709
|
-
const renderComponentToHtml = (ReactDOMServer, Component, props) =>
|
|
708
|
+
const renderComponentToHtml = (ReactDOMServer, Component, props) => ReactDOMServer.renderToStaticMarkup(React.createElement(Component, props));
|
|
710
709
|
/**
|
|
711
710
|
* Serialize the editor content to HTML. By default, uses `PlateStatic` as the
|
|
712
711
|
* editor component, but you can provide a custom component (e.g.
|
|
@@ -731,9 +730,7 @@ const serializeHtml = async (editor, { editorComponent: EditorComponent = PlateS
|
|
|
731
730
|
* @returns The Editor element without head and body.
|
|
732
731
|
*/
|
|
733
732
|
const getEditorDOMFromHtmlString = (html) => {
|
|
734
|
-
|
|
735
|
-
node.innerHTML = html;
|
|
736
|
-
return node.querySelector("[data-slate-editor=\"true\"]");
|
|
733
|
+
return new DOMParser().parseFromString(html, "text/html").querySelector("[data-slate-editor=\"true\"]");
|
|
737
734
|
};
|
|
738
735
|
|
|
739
736
|
//#endregion
|
|
@@ -2486,14 +2486,14 @@ const deserializeHtmlNode = (editor) => (node) => {
|
|
|
2486
2486
|
/** Deserialize HTML element to fragment. */
|
|
2487
2487
|
const deserializeHtmlElement = (editor, element) => deserializeHtmlNode(editor)(element);
|
|
2488
2488
|
|
|
2489
|
+
//#endregion
|
|
2490
|
+
//#region src/lib/plugins/html/utils/parseHtmlDocument.ts
|
|
2491
|
+
const parseHtmlDocument = (html) => new DOMParser().parseFromString(html, "text/html");
|
|
2492
|
+
|
|
2489
2493
|
//#endregion
|
|
2490
2494
|
//#region src/lib/plugins/html/utils/htmlStringToDOMNode.ts
|
|
2491
2495
|
/** Convert HTML string into HTML element. */
|
|
2492
|
-
const htmlStringToDOMNode = (rawHtml) =>
|
|
2493
|
-
const node = document.createElement("body");
|
|
2494
|
-
node.innerHTML = rawHtml;
|
|
2495
|
-
return node;
|
|
2496
|
-
};
|
|
2496
|
+
const htmlStringToDOMNode = (rawHtml) => parseHtmlDocument(rawHtml).body;
|
|
2497
2497
|
|
|
2498
2498
|
//#endregion
|
|
2499
2499
|
//#region src/lib/plugins/html/utils/deserializeHtml.ts
|
|
@@ -2507,10 +2507,6 @@ const deserializeHtml = (editor, { collapseWhiteSpace: shouldCollapseWhiteSpace
|
|
|
2507
2507
|
});
|
|
2508
2508
|
};
|
|
2509
2509
|
|
|
2510
|
-
//#endregion
|
|
2511
|
-
//#region src/lib/plugins/html/utils/parseHtmlDocument.ts
|
|
2512
|
-
const parseHtmlDocument = (html) => new DOMParser().parseFromString(html, "text/html");
|
|
2513
|
-
|
|
2514
2510
|
//#endregion
|
|
2515
2511
|
//#region src/lib/plugins/html/HtmlPlugin.ts
|
|
2516
2512
|
/**
|
|
@@ -2520,8 +2516,8 @@ const parseHtmlDocument = (html) => new DOMParser().parseFromString(html, "text/
|
|
|
2520
2516
|
const HtmlPlugin = createSlatePlugin({ key: "html" }).extendApi(({ editor }) => ({ deserialize: bindFirst(deserializeHtml, editor) })).extend({ parser: {
|
|
2521
2517
|
format: "text/html",
|
|
2522
2518
|
deserialize: ({ api, data }) => {
|
|
2523
|
-
const document
|
|
2524
|
-
return api.html.deserialize({ element: document
|
|
2519
|
+
const document = parseHtmlDocument(data);
|
|
2520
|
+
return api.html.deserialize({ element: document.body });
|
|
2525
2521
|
}
|
|
2526
2522
|
} });
|
|
2527
2523
|
|
|
@@ -3873,4 +3869,4 @@ const withSlate = (e, { id, affinity = true, autoSelect, chunking = true, maxLen
|
|
|
3873
3869
|
const createSlateEditor = ({ editor = createEditor(), ...options } = {}) => withSlate(editor, options);
|
|
3874
3870
|
|
|
3875
3871
|
//#endregion
|
|
3876
|
-
export { isLastNonEmptyTextOfInlineFormattingContext as $, matchDelimitedInline as $t,
|
|
3872
|
+
export { isLastNonEmptyTextOfInlineFormattingContext as $, matchDelimitedInline as $t, deserializeHtml as A, isSlateNode as At, pluginDeserializeHtml as B, withMergeRules as Bt, clearNavigationFeedbackTarget as C, keyToDataAttribute as Ct, NavigationFeedbackPluginKey as D, isSlateEditor as Dt, NAVIGATION_FEEDBACK_KEY as E, getSlateElements as Et, htmlTextNodeToString as F, isSlateVoid as Ft, collapseWhiteSpace as G, withPlateHistory as Gt, htmlBrToNewLine as H, withBreakRules as Ht, htmlElementToLeaf as I, applyDeepToNodes as It, collapseWhiteSpaceChildren as J, createBlockStartInputRule as Jt, collapseWhiteSpaceElement as K, AstPlugin as Kt, pipeDeserializeHtmlLeaf as L, OverridePlugin as Lt, parseHtmlDocument as M, isSlatePluginNode as Mt, deserializeHtmlElement as N, isSlateString as Nt, LengthPlugin as O, isSlateElement as Ot, deserializeHtmlNode as P, isSlateText as Pt, upsertInlineFormattingContext as Q, matchBlockStart as Qt, htmlElementToElement as R, withOverrides as Rt, navigate as S, getNodeDataAttributeKeys as St, resolveNavigationFeedbackTarget as T, getInjectMatch as Tt, htmlBodyToFragment as U, BaseParagraphPlugin as Ut, getDataNodeProps as V, withDeleteRules as Vt, deserializeHtmlNodeChildren as W, HistoryPlugin as Wt, collapseWhiteSpaceText as X, createTextSubstitutionInputRule as Xt, collapseWhiteSpaceNode as Y, createMarkInputRule as Yt, endInlineFormattingContext as Z, matchBlockFence as Zt, NodeIdPlugin as _, getMarkBoundaryAffinity as _t, pipeInsertDataQuery as a, getPluginType as an, isHtmlElement as at, withNodeId as b, getSlateClass as bt, isElementStateEmpty as c, getEditorPlugin as cn, withScrolling as ct, liftBlock as d, ChunkingPlugin as dt, defineInputRule as en, collapseString as et, insertExitBreak as f, withChunking as ft, pipeOnNodeChange as g, isNodesAffinity as gt, pipeOnTextChange as h, isNodeAffinity as ht, ParserPlugin as i, getPluginKeys as in, isHtmlText as it, htmlStringToDOMNode as j, isSlatePluginElement as jt, HtmlPlugin as k, isSlateLeaf as kt, setValue as l, createSlatePlugin as ln, DebugPlugin as lt, isEditOnly as m, setAffinitySelection as mt, withSlate as n, getPluginByType as nn, isHtmlInlineElement as nt, normalizeDescendantsToDocumentFragment as o, getPluginTypes as on, AUTO_SCROLL as ot, init as p, AffinityPlugin as pt, inferWhiteSpaceRule as q, createBlockFenceInputRule as qt, getCorePlugins as r, getPluginKey as rn, inlineTagNames as rt, SlateExtensionPlugin as s, getSlatePlugin as sn, DOMPlugin as st, createSlateEditor as t, getContainerTypes as tn, isHtmlBlockElement as tt, resetBlock as u, createTSlatePlugin as un, PlateError as ut, normalizeNodeId as v, getEdgeNodes as vt, flashTarget as w, getInjectedPlugins as wt, NavigationFeedbackPlugin as x, getPluginNodeProps as xt, normalizeNodeIdWithEditor as y, mergeDeepToNodes as yt, pipeDeserializeHtmlElement as z, withNormalizeRules as zt };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lofcz/platejs-core",
|
|
3
|
-
"version": "53.4.
|
|
3
|
+
"version": "53.4.6",
|
|
4
4
|
"description": "The core of Plate – a plugin system for slate",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"contentEditable",
|
|
@@ -37,7 +37,6 @@
|
|
|
37
37
|
],
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"clsx": "^2.1.1",
|
|
40
|
-
"html-entities": "^2.6.0",
|
|
41
40
|
"is-hotkey": "^0.2.0",
|
|
42
41
|
"jotai": "~2.8.4",
|
|
43
42
|
"jotai-optics": "0.4.0",
|
|
@@ -49,14 +48,14 @@
|
|
|
49
48
|
"slate": "0.126.2",
|
|
50
49
|
"slate-dom": "0.126.0",
|
|
51
50
|
"slate-hyperscript": "0.125.0",
|
|
52
|
-
"slate-react": "0.126.
|
|
51
|
+
"slate-react": "0.126.4",
|
|
53
52
|
"use-deep-compare": "^1.3.0",
|
|
54
53
|
"zustand": "^5.0.5",
|
|
55
54
|
"zustand-x": "6.2.1",
|
|
56
|
-
"@platejs/slate": "npm:@lofcz/platejs-slate@53.
|
|
55
|
+
"@platejs/slate": "npm:@lofcz/platejs-slate@53.4.6",
|
|
56
|
+
"@udecode/react-hotkeys": "npm:@lofcz/udecode-react-hotkeys@52.3.6",
|
|
57
57
|
"@udecode/react-utils": "npm:@lofcz/udecode-react-utils@52.3.4",
|
|
58
|
-
"@udecode/utils": "npm:@lofcz/udecode-utils@52.3.4"
|
|
59
|
-
"@udecode/react-hotkeys": "npm:@lofcz/udecode-react-hotkeys@52.3.6"
|
|
58
|
+
"@udecode/utils": "npm:@lofcz/udecode-utils@52.3.4"
|
|
60
59
|
},
|
|
61
60
|
"peerDependencies": {
|
|
62
61
|
"react": ">=18.0.0",
|