@lofcz/platejs-core 53.1.8 → 53.2.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.
- package/dist/{index-BDSzA1zP.d.ts → index-ClAE30YQ.d.ts} +92 -78
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/react/index.d.ts +220 -218
- package/dist/react/index.js +6 -8
- package/dist/static/index.d.ts +1 -1
- package/dist/static/index.js +2 -2
- package/dist/{static-KMalmfNw.js → static-C-jR24Fx.js} +1 -1
- package/dist/{withSlate-NVP0S9vL.js → withSlate-pfxNb3FA.js} +20 -3
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _platejs_slate30 from "@platejs/slate";
|
|
2
2
|
import { Ancestor, DOMRange, DecoratedRange, Descendant, Editor, EditorAboveOptions, EditorApi, EditorBase, EditorTransforms, InsertTextOptions, LeafPosition, NodeEntry, NodeOf, NodeOperation, Operation, Path, PathRef, Point, QueryNodeOptions, ScrollIntoViewOptions, TElement, TNode, TRange, TSelection, TText, TextOperation, Value } from "@platejs/slate";
|
|
3
3
|
import { nanoid as nanoid$1 } from "nanoid";
|
|
4
4
|
import { AnyObject, Deep2Partial, Modify, Nullable, OmitFirst, UnionToIntersection, UnknownObject } from "@udecode/utils";
|
|
@@ -200,9 +200,9 @@ declare const createStaticEditor: <V extends Value = Value, P extends AnyPluginC
|
|
|
200
200
|
declare const ViewPlugin: SlatePlugin<PluginConfig<"dom", {
|
|
201
201
|
scrollMode?: ScrollMode;
|
|
202
202
|
scrollOperations?: AutoScrollOperationsMap;
|
|
203
|
-
scrollOptions?:
|
|
203
|
+
scrollOptions?: _platejs_slate30.ScrollIntoViewOptions;
|
|
204
204
|
}, {
|
|
205
|
-
getFragment: () =>
|
|
205
|
+
getFragment: () => _platejs_slate30.Descendant[];
|
|
206
206
|
isScrolling: () => boolean;
|
|
207
207
|
}, {
|
|
208
208
|
withScrolling: (fn: () => void, options?: WithAutoScrollOptions | undefined) => void;
|
|
@@ -212,9 +212,9 @@ declare const ViewPlugin: SlatePlugin<PluginConfig<"dom", {
|
|
|
212
212
|
declare const getStaticPlugins: () => SlatePlugin<PluginConfig<"dom", {
|
|
213
213
|
scrollMode?: ScrollMode;
|
|
214
214
|
scrollOperations?: AutoScrollOperationsMap;
|
|
215
|
-
scrollOptions?:
|
|
215
|
+
scrollOptions?: _platejs_slate30.ScrollIntoViewOptions;
|
|
216
216
|
}, {
|
|
217
|
-
getFragment: () =>
|
|
217
|
+
getFragment: () => _platejs_slate30.Descendant[];
|
|
218
218
|
isScrolling: () => boolean;
|
|
219
219
|
}, {
|
|
220
220
|
withScrolling: (fn: () => void, options?: WithAutoScrollOptions | undefined) => void;
|
|
@@ -883,50 +883,6 @@ declare const HistoryPlugin: SlatePlugin<PluginConfig<"history", {}, {}, {}, {}>
|
|
|
883
883
|
//#region src/lib/plugins/ParserPlugin.d.ts
|
|
884
884
|
declare const ParserPlugin: SlatePlugin<PluginConfig<"parser", {}, {}, {}, {}>>;
|
|
885
885
|
//#endregion
|
|
886
|
-
//#region src/lib/plugins/dom/withScrolling.d.ts
|
|
887
|
-
type WithAutoScrollOptions = {
|
|
888
|
-
mode?: ScrollMode;
|
|
889
|
-
operations?: AutoScrollOperationsMap;
|
|
890
|
-
scrollOptions?: ScrollIntoViewOptions;
|
|
891
|
-
};
|
|
892
|
-
declare const withScrolling: (editor: SlateEditor, fn: () => void, options?: WithAutoScrollOptions) => void;
|
|
893
|
-
//#endregion
|
|
894
|
-
//#region src/lib/plugins/dom/DOMPlugin.d.ts
|
|
895
|
-
declare const AUTO_SCROLL: WeakMap<SlateEditor, boolean>;
|
|
896
|
-
type AutoScrollOperationsMap = Partial<Record<Operation['type'], boolean>>;
|
|
897
|
-
type DomConfig = PluginConfig<'dom', {
|
|
898
|
-
/** Choose the first or last matching operation as the scroll target */
|
|
899
|
-
scrollMode?: ScrollMode;
|
|
900
|
-
/**
|
|
901
|
-
* Operations map; false to disable an operation, true or undefined to
|
|
902
|
-
* enable
|
|
903
|
-
*/
|
|
904
|
-
scrollOperations?: AutoScrollOperationsMap;
|
|
905
|
-
/** Options passed to scrollIntoView */
|
|
906
|
-
scrollOptions?: ScrollIntoViewOptions;
|
|
907
|
-
}>;
|
|
908
|
-
/** Mode for picking target op when multiple enabled */
|
|
909
|
-
type ScrollMode = 'first' | 'last';
|
|
910
|
-
/**
|
|
911
|
-
* Placeholder plugin for DOM interaction, that could be replaced with
|
|
912
|
-
* ReactPlugin.
|
|
913
|
-
*/
|
|
914
|
-
declare const DOMPlugin: SlatePlugin<PluginConfig<"dom", {
|
|
915
|
-
/** Choose the first or last matching operation as the scroll target */
|
|
916
|
-
scrollMode?: ScrollMode;
|
|
917
|
-
/**
|
|
918
|
-
* Operations map; false to disable an operation, true or undefined to
|
|
919
|
-
* enable
|
|
920
|
-
*/
|
|
921
|
-
scrollOperations?: AutoScrollOperationsMap;
|
|
922
|
-
/** Options passed to scrollIntoView */
|
|
923
|
-
scrollOptions?: ScrollIntoViewOptions;
|
|
924
|
-
}, {
|
|
925
|
-
isScrolling: () => boolean;
|
|
926
|
-
}, {
|
|
927
|
-
withScrolling: (fn: () => void, options?: WithAutoScrollOptions | undefined) => void;
|
|
928
|
-
}, {}>>;
|
|
929
|
-
//#endregion
|
|
930
886
|
//#region src/lib/plugins/slate-extension/transforms/init.d.ts
|
|
931
887
|
type InitOptions = {
|
|
932
888
|
autoSelect?: boolean | 'end' | 'start';
|
|
@@ -1003,6 +959,7 @@ declare const resetBlock: (editor: SlateEditor, {
|
|
|
1003
959
|
declare const setValue: <V extends Value>(editor: SlateEditor, value?: V | string) => void;
|
|
1004
960
|
//#endregion
|
|
1005
961
|
//#region src/lib/plugins/slate-extension/SlateExtensionPlugin.d.ts
|
|
962
|
+
declare const isElementStateEmpty: (editor: SlateEditor, element: TElement) => boolean;
|
|
1006
963
|
type SlateExtensionConfig = PluginConfig<'slateExtension', {
|
|
1007
964
|
onNodeChange: (options: {
|
|
1008
965
|
editor: SlateEditor;
|
|
@@ -1042,18 +999,63 @@ declare const SlateExtensionPlugin: SlatePlugin<PluginConfig<"slateExtension", {
|
|
|
1042
999
|
text: string;
|
|
1043
1000
|
}) => void;
|
|
1044
1001
|
}, {
|
|
1002
|
+
isElementStateEmpty: (element: TElement) => boolean;
|
|
1045
1003
|
redecorate: () => void;
|
|
1046
1004
|
}, {
|
|
1047
1005
|
init: ((args_0: InitOptions) => void) & ((args_0: InitOptions) => void);
|
|
1048
1006
|
insertExitBreak: ((args_0?: InsertExitBreakOptions | undefined) => true | undefined) & ((args_0?: InsertExitBreakOptions | undefined) => true | undefined);
|
|
1049
1007
|
liftBlock: ((args_0?: LiftBlockOptions | undefined) => true | undefined) & ((args_0?: LiftBlockOptions | undefined) => true | undefined);
|
|
1050
1008
|
resetBlock: ((args_0?: {
|
|
1051
|
-
at?:
|
|
1009
|
+
at?: _platejs_slate30.Path;
|
|
1052
1010
|
} | undefined) => true | undefined) & ((args_0?: {
|
|
1053
|
-
at?:
|
|
1011
|
+
at?: _platejs_slate30.Path;
|
|
1054
1012
|
} | undefined) => true | undefined);
|
|
1055
|
-
setValue: ((value?: string |
|
|
1056
|
-
apply: <N$1 extends
|
|
1013
|
+
setValue: ((value?: string | _platejs_slate30.Value | undefined) => void) & ((value?: string | _platejs_slate30.Value | undefined) => void);
|
|
1014
|
+
apply: <N$1 extends TElement | TText>(operation: _platejs_slate30.Operation<N$1>) => void;
|
|
1015
|
+
}, {}>>;
|
|
1016
|
+
//#endregion
|
|
1017
|
+
//#region src/lib/plugins/dom/withScrolling.d.ts
|
|
1018
|
+
type WithAutoScrollOptions = {
|
|
1019
|
+
mode?: ScrollMode;
|
|
1020
|
+
operations?: AutoScrollOperationsMap;
|
|
1021
|
+
scrollOptions?: ScrollIntoViewOptions;
|
|
1022
|
+
};
|
|
1023
|
+
declare const withScrolling: (editor: SlateEditor, fn: () => void, options?: WithAutoScrollOptions) => void;
|
|
1024
|
+
//#endregion
|
|
1025
|
+
//#region src/lib/plugins/dom/DOMPlugin.d.ts
|
|
1026
|
+
declare const AUTO_SCROLL: WeakMap<SlateEditor, boolean>;
|
|
1027
|
+
type AutoScrollOperationsMap = Partial<Record<Operation['type'], boolean>>;
|
|
1028
|
+
type DomConfig = PluginConfig<'dom', {
|
|
1029
|
+
/** Choose the first or last matching operation as the scroll target */
|
|
1030
|
+
scrollMode?: ScrollMode;
|
|
1031
|
+
/**
|
|
1032
|
+
* Operations map; false to disable an operation, true or undefined to
|
|
1033
|
+
* enable
|
|
1034
|
+
*/
|
|
1035
|
+
scrollOperations?: AutoScrollOperationsMap;
|
|
1036
|
+
/** Options passed to scrollIntoView */
|
|
1037
|
+
scrollOptions?: ScrollIntoViewOptions;
|
|
1038
|
+
}>;
|
|
1039
|
+
/** Mode for picking target op when multiple enabled */
|
|
1040
|
+
type ScrollMode = 'first' | 'last';
|
|
1041
|
+
/**
|
|
1042
|
+
* Placeholder plugin for DOM interaction, that could be replaced with
|
|
1043
|
+
* ReactPlugin.
|
|
1044
|
+
*/
|
|
1045
|
+
declare const DOMPlugin: SlatePlugin<PluginConfig<"dom", {
|
|
1046
|
+
/** Choose the first or last matching operation as the scroll target */
|
|
1047
|
+
scrollMode?: ScrollMode;
|
|
1048
|
+
/**
|
|
1049
|
+
* Operations map; false to disable an operation, true or undefined to
|
|
1050
|
+
* enable
|
|
1051
|
+
*/
|
|
1052
|
+
scrollOperations?: AutoScrollOperationsMap;
|
|
1053
|
+
/** Options passed to scrollIntoView */
|
|
1054
|
+
scrollOptions?: ScrollIntoViewOptions;
|
|
1055
|
+
}, {
|
|
1056
|
+
isScrolling: () => boolean;
|
|
1057
|
+
}, {
|
|
1058
|
+
withScrolling: (fn: () => void, options?: WithAutoScrollOptions | undefined) => void;
|
|
1057
1059
|
}, {}>>;
|
|
1058
1060
|
//#endregion
|
|
1059
1061
|
//#region src/lib/plugins/navigation-feedback/types.d.ts
|
|
@@ -1115,7 +1117,7 @@ declare const NavigationFeedbackPlugin: SlatePlugin<PluginConfig<"navigationFeed
|
|
|
1115
1117
|
navigation: {
|
|
1116
1118
|
activeTarget: () => NavigationFeedbackActiveTarget | null;
|
|
1117
1119
|
clear: () => void;
|
|
1118
|
-
isTarget: (path:
|
|
1120
|
+
isTarget: (path: _platejs_slate30.Path) => boolean;
|
|
1119
1121
|
};
|
|
1120
1122
|
}, {
|
|
1121
1123
|
navigation: {
|
|
@@ -1404,41 +1406,42 @@ declare const getCorePlugins: ({
|
|
|
1404
1406
|
navigationFeedback,
|
|
1405
1407
|
nodeId,
|
|
1406
1408
|
plugins
|
|
1407
|
-
}: GetCorePluginsOptions) => (SlatePlugin<PluginConfig<"
|
|
1408
|
-
scrollMode?: ScrollMode;
|
|
1409
|
-
scrollOperations?: AutoScrollOperationsMap;
|
|
1410
|
-
scrollOptions?: _platejs_slate1.ScrollIntoViewOptions;
|
|
1411
|
-
}, {
|
|
1412
|
-
isScrolling: () => boolean;
|
|
1413
|
-
}, {
|
|
1414
|
-
withScrolling: (fn: () => void, options?: WithAutoScrollOptions | undefined) => void;
|
|
1415
|
-
}, {}>> | SlatePlugin<DebugConfig> | SlatePlugin<PluginConfig<"slateExtension", {
|
|
1409
|
+
}: GetCorePluginsOptions) => (SlatePlugin<DebugConfig> | SlatePlugin<PluginConfig<"slateExtension", {
|
|
1416
1410
|
onNodeChange: (options: {
|
|
1417
1411
|
editor: SlateEditor;
|
|
1418
|
-
node:
|
|
1419
|
-
operation:
|
|
1420
|
-
prevNode:
|
|
1412
|
+
node: _platejs_slate30.Descendant;
|
|
1413
|
+
operation: _platejs_slate30.NodeOperation;
|
|
1414
|
+
prevNode: _platejs_slate30.Descendant;
|
|
1421
1415
|
}) => void;
|
|
1422
1416
|
onTextChange: (options: {
|
|
1423
1417
|
editor: SlateEditor;
|
|
1424
|
-
node:
|
|
1425
|
-
operation:
|
|
1418
|
+
node: _platejs_slate30.Descendant;
|
|
1419
|
+
operation: _platejs_slate30.TextOperation;
|
|
1426
1420
|
prevText: string;
|
|
1427
1421
|
text: string;
|
|
1428
1422
|
}) => void;
|
|
1429
1423
|
}, {
|
|
1424
|
+
isElementStateEmpty: (element: _platejs_slate30.TElement) => boolean;
|
|
1430
1425
|
redecorate: () => void;
|
|
1431
1426
|
}, {
|
|
1432
1427
|
init: ((args_0: InitOptions) => void) & ((args_0: InitOptions) => void);
|
|
1433
1428
|
insertExitBreak: ((args_0?: InsertExitBreakOptions | undefined) => true | undefined) & ((args_0?: InsertExitBreakOptions | undefined) => true | undefined);
|
|
1434
1429
|
liftBlock: ((args_0?: LiftBlockOptions | undefined) => true | undefined) & ((args_0?: LiftBlockOptions | undefined) => true | undefined);
|
|
1435
1430
|
resetBlock: ((args_0?: {
|
|
1436
|
-
at?:
|
|
1431
|
+
at?: _platejs_slate30.Path;
|
|
1437
1432
|
} | undefined) => true | undefined) & ((args_0?: {
|
|
1438
|
-
at?:
|
|
1433
|
+
at?: _platejs_slate30.Path;
|
|
1439
1434
|
} | undefined) => true | undefined);
|
|
1440
|
-
setValue: ((value?: string |
|
|
1441
|
-
apply: <N$1 extends
|
|
1435
|
+
setValue: ((value?: string | _platejs_slate30.Value | undefined) => void) & ((value?: string | _platejs_slate30.Value | undefined) => void);
|
|
1436
|
+
apply: <N$1 extends _platejs_slate30.TElement | _platejs_slate30.TText>(operation: _platejs_slate30.Operation<N$1>) => void;
|
|
1437
|
+
}, {}>> | SlatePlugin<PluginConfig<"dom", {
|
|
1438
|
+
scrollMode?: ScrollMode;
|
|
1439
|
+
scrollOperations?: AutoScrollOperationsMap;
|
|
1440
|
+
scrollOptions?: _platejs_slate30.ScrollIntoViewOptions;
|
|
1441
|
+
}, {
|
|
1442
|
+
isScrolling: () => boolean;
|
|
1443
|
+
}, {
|
|
1444
|
+
withScrolling: (fn: () => void, options?: WithAutoScrollOptions | undefined) => void;
|
|
1442
1445
|
}, {}>> | SlatePlugin<PluginConfig<"navigationFeedback", {
|
|
1443
1446
|
activeTarget: NavigationFeedbackStoredTarget | null;
|
|
1444
1447
|
duration: number;
|
|
@@ -1446,7 +1449,7 @@ declare const getCorePlugins: ({
|
|
|
1446
1449
|
navigation: {
|
|
1447
1450
|
activeTarget: () => NavigationFeedbackActiveTarget | null;
|
|
1448
1451
|
clear: () => void;
|
|
1449
|
-
isTarget: (path:
|
|
1452
|
+
isTarget: (path: _platejs_slate30.Path) => boolean;
|
|
1450
1453
|
};
|
|
1451
1454
|
}, {
|
|
1452
1455
|
navigation: {
|
|
@@ -1459,7 +1462,7 @@ declare const getCorePlugins: ({
|
|
|
1459
1462
|
element: HTMLElement | string;
|
|
1460
1463
|
collapseWhiteSpace?: boolean;
|
|
1461
1464
|
defaultElementPlugin?: WithRequiredKey;
|
|
1462
|
-
}) =>
|
|
1465
|
+
}) => _platejs_slate30.Descendant[];
|
|
1463
1466
|
}>, {}, {}>> | SlatePlugin<PluginConfig<"ast", {}, {}, {}, {}>> | SlatePlugin<PluginConfig<"nodeId", {
|
|
1464
1467
|
disableInsertOverrides?: boolean;
|
|
1465
1468
|
filterInline?: boolean;
|
|
@@ -1475,7 +1478,7 @@ declare const getCorePlugins: ({
|
|
|
1475
1478
|
}) => void;
|
|
1476
1479
|
reuseId?: boolean;
|
|
1477
1480
|
idCreator?: () => any;
|
|
1478
|
-
} &
|
|
1481
|
+
} & _platejs_slate30.QueryNodeOptions, {}, {
|
|
1479
1482
|
nodeId: {
|
|
1480
1483
|
normalize: () => void;
|
|
1481
1484
|
};
|
|
@@ -1515,7 +1518,7 @@ declare const HtmlPlugin: SlatePlugin<PluginConfig<"html", {}, Record<"html", {
|
|
|
1515
1518
|
element: HTMLElement | string;
|
|
1516
1519
|
collapseWhiteSpace?: boolean;
|
|
1517
1520
|
defaultElementPlugin?: WithRequiredKey;
|
|
1518
|
-
}) =>
|
|
1521
|
+
}) => _platejs_slate30.Descendant[];
|
|
1519
1522
|
}>, {}, {}>>;
|
|
1520
1523
|
//#endregion
|
|
1521
1524
|
//#region src/lib/plugins/html/constants.d.ts
|
|
@@ -2321,6 +2324,16 @@ type BasePluginNode<C extends AnyPluginConfig = PluginConfig> = {
|
|
|
2321
2324
|
* inlineVoid core plugin.
|
|
2322
2325
|
*/
|
|
2323
2326
|
isMarkableVoid?: boolean;
|
|
2327
|
+
/**
|
|
2328
|
+
* Returns whether an element prop is inert metadata for empty-state checks.
|
|
2329
|
+
*
|
|
2330
|
+
* Props not claimed by a plugin are treated as meaningful state.
|
|
2331
|
+
*/
|
|
2332
|
+
isMetadataProp?: (options: BasePluginContext<C> & {
|
|
2333
|
+
key: string;
|
|
2334
|
+
node: TElement;
|
|
2335
|
+
value: unknown;
|
|
2336
|
+
}) => boolean;
|
|
2324
2337
|
/**
|
|
2325
2338
|
* Whether the node is selectable.
|
|
2326
2339
|
*
|
|
@@ -2546,6 +2559,7 @@ type BaseEditor = EditorBase & {
|
|
|
2546
2559
|
node: {
|
|
2547
2560
|
isContainer: string[];
|
|
2548
2561
|
isLeaf: string[];
|
|
2562
|
+
isMetadataProp: string[];
|
|
2549
2563
|
isText: string[];
|
|
2550
2564
|
leafProps: string[];
|
|
2551
2565
|
textProps: string[];
|
|
@@ -3091,7 +3105,7 @@ declare const normalizeDescendantsToDocumentFragment: (editor: SlateEditor, {
|
|
|
3091
3105
|
}) => Descendant[];
|
|
3092
3106
|
//#endregion
|
|
3093
3107
|
//#region src/lib/utils/omitPluginContext.d.ts
|
|
3094
|
-
declare const omitPluginContext: <T extends SlatePluginContext<AnySlatePlugin>>(ctx: T) => Omit<T, "api" | "editor" | "
|
|
3108
|
+
declare const omitPluginContext: <T extends SlatePluginContext<AnySlatePlugin>>(ctx: T) => Omit<T, "api" | "editor" | "getOptions" | "type" | "getOption" | "tf" | "setOptions" | "setOption" | "plugin">;
|
|
3095
3109
|
//#endregion
|
|
3096
3110
|
//#region src/lib/utils/overridePluginsByKey.d.ts
|
|
3097
3111
|
/**
|
|
@@ -3110,4 +3124,4 @@ declare const pipeOnNodeChange: (editor: SlateEditor, node: Descendant, prevNode
|
|
|
3110
3124
|
//#region src/lib/utils/pipeOnTextChange.d.ts
|
|
3111
3125
|
declare const pipeOnTextChange: (editor: SlateEditor, node: Descendant, text: string, prevText: string, operation: TextOperation) => boolean;
|
|
3112
3126
|
//#endregion
|
|
3113
|
-
export { TSlateEditor as $,
|
|
3127
|
+
export { TSlateEditor as $, getEditorDOMFromHtmlString as $a, RenderStaticNodeWrapperFunction as $i, cleanHtmlFontElements as $n, NavigationNavigateOptions as $r, upsertInlineFormattingContext as $t, applyDeepToNodes as A, MatchBlockFenceOptions as Aa, createTSlatePlugin as Ai, isHtmlInlineElement as An, SlateRenderElement as Ao, LogLevel as Ar, BaseParagraphPlugin as At, ZustandStoreApi as B, stripHtmlClassNames as Ba, HtmlSerializer as Bi, htmlBrToNewLine as Bn, ElementAffinity as Br, STATIC_VALUE_CREATED_AT as Bt, isSlateNode as C, InsertBreakInputRule as Ca, getPluginKey as Ci, pipeDeserializeHtmlLeaf as Cn, SlateRenderText as Co, NodeIdOptions as Cr, NodeComponents as Ct, isSlateText as D, InsertTextInputRule as Da, getSlatePlugin as Di, isOlSymbol as Dn, pipeRenderLeafStatic as Do, normalizeNodeIdWithEditor as Dr, SelectionRules as Dt, isSlateString as E, InsertDataInputRuleContext as Ea, getPluginTypes as Ei, parseHtmlDocument as En, SlateRenderLeaf as Eo, normalizeNodeId as Er, PluginConfig as Et, RenderLeafProps as F, SelectionInputRuleContext as Fa, EditorPlugin as Fi, inlineTagNames as Fn, getMarkBoundaryAffinity as Fr, withBreakRules as Ft, WithSlateOptions as G, getSelectedDomBlocks as Ga, NodeStaticWrapperComponent as Gi, someHtmlElement as Gn, NavigationFeedbackPlugin as Gr, createBlockFenceInputRule as Gt, nanoid$1 as H, isSelectOutside as Ha, InjectNodeProps as Hi, getHtmlComments as Hn, clearNavigationFeedbackTarget as Hr, LengthPlugin as Ht, RenderElementFn as I, TextSubstitutionInputRuleConfig as Ia, ExtendEditor as Ii, htmlTextNodeToString as In, getEdgeNodes as Ir, OverridePlugin as It, BaseEditor as J, getPluginDataAttributes as Ja, NormalizeInitialValue as Ji, deserializeHtmlElement as Jn, NavigationFeedbackConfig as Jr, createTextSubstitutionInputRule as Jt, createSlateEditor as K, getRenderNodeStaticProps as Ka, NodeStaticWrapperComponentProps as Ki, deserializeHtmlNodeChildren as Kn, NAVIGATION_FEEDBACK_KEY as Kr, createBlockStartInputRule as Kt, RenderElementProps as L, TextSubstitutionMatch as La, ExtendEditorApi as Li, htmlStringToDOMNode as Ln, EdgeNodes as Lr, withOverrides as Lt, RenderTextFn as M, MatchDelimitedInlineOptions as Ma, AnySlatePlugin as Mi, isHtmlElement as Mn, HandlerReturnType as Mo, setAffinitySelection as Mr, withNormalizeRules as Mt, RenderTextProps as N, ResolvedInputRule as Na, Decorate as Ni, isHtmlComment as Nn, AstPlugin as No, isNodeAffinity as Nr, withMergeRules as Nt, isSlateVoid as O, InsertTextInputRuleContext as Oa, getEditorPlugin as Oi, isHtmlText as On, pluginRenderLeafStatic as Oo, DebugErrorType as Or, WithAnyKey as Ot, RenderLeafFn as P, ResolvedInputRulesMeta as Pa, Deserializer as Pi, isHtmlBlockElement as Pn, isNodesAffinity as Pr, withDeleteRules as Pt, SlateEditor as Q, createStaticEditor as Qa, RenderStaticNodeWrapper as Qi, cleanHtmlLinkElements as Qn, NavigationFlashTargetOptions as Qr, endInlineFormattingContext as Qt, RenderChunkFn as R, TextSubstitutionPattern as Ra, ExtendEditorTransforms as Ri, htmlElementToLeaf as Rn, AffinityConfig as Rr, withNodeId as Rt, isSlateLeaf as S, InputRulesFactoryContext as Sa, getPluginByType as Si, pluginDeserializeHtml as Sn, PlateStaticProps as So, NodeIdConfig as Sr, NodeComponent as St, isSlatePluginNode as T, InsertDataInputRule as Ta, getPluginType as Ti, parseHtmlElement as Tn, pluginRenderTextStatic as To, NormalizeNodeIdOptions as Tr, ParserOptions as Tt, BaseWithSlateOptions as U, getSelectedDomNode as Ua, LeafStaticProps as Ui, getDataNodeProps as Un, flashTarget as Ur, defineInputRule as Ut, createZustandStore$1 as V, pipeDecorate as Va, InferConfig as Vi, htmlBodyToFragment as Vn, navigate as Vr, normalizeStaticValue as Vt, CreateSlateEditorOptions as W, getSelectedDomFragment as Wa, NodeStaticProps as Wi, findHtmlElement as Wn, resolveNavigationFeedbackTarget as Wr, createRuleFactory as Wt, KeyofNodePlugins as X, getStaticPlugins as Xa, Parser as Xi, copyBlockMarksToSpanChild as Xn, NavigationFeedbackStoredTarget as Xr, matchBlockStart as Xt, InferPlugins as Y, createStaticString as Ya, OverrideEditor as Yi, deserializeHtml as Yn, NavigationFeedbackPluginKey as Yr, matchBlockFence as Yt, KeyofPlugins as Z, ViewPlugin as Za, PartialEditorPlugin as Zi, cleanHtmlTextNodes as Zn, NavigationFeedbackTarget as Zr, matchDelimitedInline as Zt, getInjectMatch as _, DelimitedInlineInputRuleMatch as _a, init as _i, replaceTagName as _n, SerializeHtmlOptions as _o, GetCorePluginsOptions as _r, InferOptions as _t, omitPluginContext as a, SlatePluginMethods as aa, WithAutoScrollOptions as ai, collapseWhiteSpaceChildren as an, SlateNodeProps as ao, CARRIAGE_RETURN as ar, BasePluginContext as at, isSlateEditor as b, InputRulesConfig as ba, withPlateHistory as bi, preCleanHtml as bn, LeafStatic as bo, ChunkingConfig as br, MatchRules as bt, isType as c, TextStaticProps as ca, SlateExtensionPlugin as ci, CollapseWhiteSpaceState as cn, StyledSlateElementProps as co, SPACE as cr, BaseTransformOptions as ct, isHotkey as d, AnyInputRule as da, resetBlock as di, WhiteSpaceRule as dn, useNodeAttributes as do, HtmlPlugin as dr, EditOnlyConfig as dt, RenderStaticNodeWrapperProps as ea, AUTO_SCROLL as ei, isLastNonEmptyTextOfInlineFormattingContext as en, SlateElement as eo, cleanHtmlEmptyElements as er, AnyPluginConfig as et, getSlateClass as f, BaseInputRule as fa, LiftBlockOptions as fi, unwrapHtmlElement as fn, BoxStaticProps as fo, withChunking as fr, ExtendConfig as ft, getInjectedPlugins as g, BlockStartInputRuleMatch as ga, InitOptions as gi, traverseHtmlComments as gn, SlateRenderTextProps as go, DebugConfig as gr, InferKey as gt, keyToDataAttribute as h, BlockStartInputRuleConfig as ha, insertExitBreak as hi, traverseHtmlElements as hn, SlateRenderNodeProps as ho, CorePluginTransforms as hr, InferApi as ht, overridePluginsByKey as i, SlatePluginContext as ia, ScrollMode as ii, collapseWhiteSpaceElement as in, SlateLeafProps as io, DeserializeHtmlNodeReturnType as ir, BasePlugin as it, EditableProps as j, MatchBlockStartOptions as ja, AnyEditorPlugin as ji, isHtmlFragmentHref as jn, pluginRenderElementStatic as jo, PlateError as jr, ParagraphConfig as jt, ApplyDeepToNodesOptions as k, MarkInputRuleConfig as ka, createSlatePlugin as ki, isHtmlTable as kn, pipeRenderElementStatic as ko, DebugPlugin as kr, WithRequiredKey as kt, Hotkeys as l, TransformInitialValue as la, isElementStateEmpty as li, TrimEndRule as ln, StyledSlateLeafProps as lo, TAB as lr, BreakRules as lt, getNodeDataAttributeKeys as m, BlockFenceInputRuleMatch as ma, InsertExitBreakOptions as mi, traverseHtmlNode as mn, SlateRenderLeafProps as mo, CorePluginApi as mr, GetInjectNodePropsReturnType as mt, pipeOnNodeChange as n, SlatePlugin as na, DOMPlugin as ni, collapseWhiteSpaceText as nn, SlateHTMLProps as no, cleanHtmlBrElements as nr, BaseHtmlDeserializer as nt, normalizeDescendantsToDocumentFragment as o, SlatePlugins as oa, withScrolling as oi, collapseWhiteSpace as on, SlateText as oo, LINE_FEED as or, BasePluginNode as ot, getPluginNodeProps as p, BlockFenceInputRuleConfig as pa, liftBlock as pi, traverseHtmlTexts as pn, SlateRenderElementProps as po, CorePlugin as pr, GetInjectNodePropsOptions as pt, withSlate as q, getNodeDataAttributes as qa, NodeStaticWrapperComponentReturnType as qi, deserializeHtmlNode as qn, NavigationFeedbackActiveTarget as qr, createMarkInputRule as qt, pipeInsertDataQuery as r, SlatePluginConfig$1 as ra, DomConfig as ri, collapseWhiteSpaceNode as rn, SlateLeaf as ro, DeserializeHtmlChildren as rr, BaseInjectProps as rt, mergeDeepToNodes as s, SlateShortcut as sa, SlateExtensionConfig as si, collapseString as sn, SlateTextProps as so, NO_BREAK_SPACE as sr, BaseSerializer as st, pipeOnTextChange as t, Serializer as ta, AutoScrollOperationsMap as ti, inferWhiteSpaceRule as tn, SlateElementProps as to, cleanHtmlCrLf as tr, BaseDeserializer as tt, createHotkey as u, TransformOptions as ua, setValue as ui, TrimStartRule as un, StyledSlateTextProps as uo, ZERO_WIDTH_SPACE as ur, DeleteRules as ut, defaultsDeepToNodes as v, InputRuleBuilder as va, ParserPlugin as vi, removeHtmlSurroundings as vn, serializeHtml as vo, LengthConfig as vr, InferSelectors as vt, isSlatePluginElement as w, InsertBreakInputRuleContext as wa, getPluginKeys as wi, pipeDeserializeHtmlElement as wn, pipeRenderTextStatic as wo, NodeIdPlugin as wr, NormalizeRules as wt, isSlateElement as x, InputRulesDefinition as xa, getContainerTypes as xi, postCleanHtml as xn, PlateStatic as xo, ChunkingPlugin as xr, MergeRules as xt, getSlateElements as y, InputRuleTarget as ya, HistoryPlugin as yi, removeHtmlNodesBetweenComments as yn, ElementStatic as yo, getCorePlugins as yr, InferTransforms as yt, RenderChunkProps as z, stripSlateDataAttributes as za, HtmlDeserializer as zi, htmlElementToElement as zn, AffinityPlugin as zr, NormalizeStaticValueOptions as zt };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as TSlateEditor, $i as
|
|
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, isHotkey, isHtmlBlockElement, isHtmlComment, isHtmlElement, isHtmlFragmentHref, isHtmlInlineElement, isHtmlTable, isHtmlText, isLastNonEmptyTextOfInlineFormattingContext, isNodeAffinity, isNodesAffinity, isOlSymbol, isSlateEditor, isSlateElement, isSlateLeaf, isSlateNode, isSlatePluginElement, isSlatePluginNode, isSlateString, isSlateText, isSlateVoid, isType, keyToDataAttribute, liftBlock, matchBlockFence, matchBlockStart, matchDelimitedInline, mergeDeepToNodes, nanoid, navigate, normalizeDescendantsToDocumentFragment, normalizeNodeId, normalizeNodeIdWithEditor, normalizeStaticValue, omitPluginContext, overridePluginsByKey, parseHtmlDocument, parseHtmlElement, pipeDeserializeHtmlElement, pipeDeserializeHtmlLeaf, pipeInsertDataQuery, pipeOnNodeChange, pipeOnTextChange, pluginDeserializeHtml, postCleanHtml, preCleanHtml, removeHtmlNodesBetweenComments, removeHtmlSurroundings, replaceTagName, resetBlock, resolveNavigationFeedbackTarget, setAffinitySelection, setValue, someHtmlElement, traverseHtmlComments, traverseHtmlElements, traverseHtmlNode, traverseHtmlTexts, unwrapHtmlElement, upsertInlineFormattingContext, withBreakRules, withChunking, withDeleteRules, withMergeRules, withNodeId, withNormalizeRules, withOverrides, withPlateHistory, withScrolling, withSlate };
|
|
1
|
+
import { $ as TSlateEditor, $i as RenderStaticNodeWrapperFunction, $n as cleanHtmlFontElements, $r as NavigationNavigateOptions, $t as upsertInlineFormattingContext, A as applyDeepToNodes, Aa as MatchBlockFenceOptions, Ai as createTSlatePlugin, An as isHtmlInlineElement, Ar as LogLevel, At as BaseParagraphPlugin, B as ZustandStoreApi, Bi as HtmlSerializer, Bn as htmlBrToNewLine, Br as ElementAffinity, Bt as STATIC_VALUE_CREATED_AT, C as isSlateNode, Ca as InsertBreakInputRule, Ci as getPluginKey, Cn as pipeDeserializeHtmlLeaf, Cr as NodeIdOptions, Ct as NodeComponents, D as isSlateText, Da as InsertTextInputRule, Di as getSlatePlugin, Dn as isOlSymbol, Dr as normalizeNodeIdWithEditor, Dt as SelectionRules, E as isSlateString, Ea as InsertDataInputRuleContext, Ei as getPluginTypes, En as parseHtmlDocument, Er as normalizeNodeId, Et as PluginConfig, F as RenderLeafProps, Fa as SelectionInputRuleContext, Fi as EditorPlugin, Fn as inlineTagNames, Fr as getMarkBoundaryAffinity, Ft as withBreakRules, G as WithSlateOptions, Gi as NodeStaticWrapperComponent, Gn as someHtmlElement, Gr as NavigationFeedbackPlugin, Gt as createBlockFenceInputRule, H as nanoid, Hi as InjectNodeProps, Hn as getHtmlComments, Hr as clearNavigationFeedbackTarget, Ht as LengthPlugin, I as RenderElementFn, Ia as TextSubstitutionInputRuleConfig, Ii as ExtendEditor, In as htmlTextNodeToString, Ir as getEdgeNodes, It as OverridePlugin, J as BaseEditor, Ji as NormalizeInitialValue, Jn as deserializeHtmlElement, Jr as NavigationFeedbackConfig, Jt as createTextSubstitutionInputRule, K as createSlateEditor, Ki as NodeStaticWrapperComponentProps, Kn as deserializeHtmlNodeChildren, Kr as NAVIGATION_FEEDBACK_KEY, Kt as createBlockStartInputRule, L as RenderElementProps, La as TextSubstitutionMatch, Li as ExtendEditorApi, Ln as htmlStringToDOMNode, Lr as EdgeNodes, Lt as withOverrides, M as RenderTextFn, Ma as MatchDelimitedInlineOptions, Mi as AnySlatePlugin, Mn as isHtmlElement, Mo as HandlerReturnType, Mr as setAffinitySelection, Mt as withNormalizeRules, N as RenderTextProps, Na as ResolvedInputRule, Ni as Decorate, Nn as isHtmlComment, No as AstPlugin, Nr as isNodeAffinity, Nt as withMergeRules, O as isSlateVoid, Oa as InsertTextInputRuleContext, Oi as getEditorPlugin, On as isHtmlText, Or as DebugErrorType, Ot as WithAnyKey, P as RenderLeafFn, Pa as ResolvedInputRulesMeta, Pi as Deserializer, Pn as isHtmlBlockElement, Pr as isNodesAffinity, Pt as withDeleteRules, Q as SlateEditor, Qi as RenderStaticNodeWrapper, Qn as cleanHtmlLinkElements, Qr as NavigationFlashTargetOptions, Qt as endInlineFormattingContext, R as RenderChunkFn, Ra as TextSubstitutionPattern, Ri as ExtendEditorTransforms, Rn as htmlElementToLeaf, Rr as AffinityConfig, Rt as withNodeId, S as isSlateLeaf, Sa as InputRulesFactoryContext, Si as getPluginByType, Sn as pluginDeserializeHtml, Sr as NodeIdConfig, St as NodeComponent, T as isSlatePluginNode, Ta as InsertDataInputRule, Ti as getPluginType, Tn as parseHtmlElement, Tr as NormalizeNodeIdOptions, Tt as ParserOptions, U as BaseWithSlateOptions, Ui as LeafStaticProps, Un as getDataNodeProps, Ur as flashTarget, Ut as defineInputRule, V as createZustandStore, Vi as InferConfig, Vn as htmlBodyToFragment, Vr as navigate, Vt as normalizeStaticValue, W as CreateSlateEditorOptions, Wi as NodeStaticProps, Wn as findHtmlElement, Wr as resolveNavigationFeedbackTarget, Wt as createRuleFactory, X as KeyofNodePlugins, Xi as Parser, Xn as copyBlockMarksToSpanChild, Xr as NavigationFeedbackStoredTarget, Xt as matchBlockStart, Y as InferPlugins, Yi as OverrideEditor, Yn as deserializeHtml, Yr as NavigationFeedbackPluginKey, Yt as matchBlockFence, Z as KeyofPlugins, Zi as PartialEditorPlugin, Zn as cleanHtmlTextNodes, Zr as NavigationFeedbackTarget, Zt as matchDelimitedInline, _ as getInjectMatch, _a as DelimitedInlineInputRuleMatch, _i as init, _n as replaceTagName, _r as GetCorePluginsOptions, _t as InferOptions, a as omitPluginContext, aa as SlatePluginMethods, ai as WithAutoScrollOptions, an as collapseWhiteSpaceChildren, ar as CARRIAGE_RETURN, at as BasePluginContext, b as isSlateEditor, ba as InputRulesConfig, bi as withPlateHistory, bn as preCleanHtml, br as ChunkingConfig, bt as MatchRules, c as isType, ca as TextStaticProps, ci as SlateExtensionPlugin, cn as CollapseWhiteSpaceState, cr as SPACE, ct as BaseTransformOptions, d as isHotkey, da as AnyInputRule, di as resetBlock, dn as WhiteSpaceRule, dr as HtmlPlugin, dt as EditOnlyConfig, ea as RenderStaticNodeWrapperProps, ei as AUTO_SCROLL, en as isLastNonEmptyTextOfInlineFormattingContext, er as cleanHtmlEmptyElements, et as AnyPluginConfig, f as getSlateClass, fa as BaseInputRule, fi as LiftBlockOptions, fn as unwrapHtmlElement, fr as withChunking, ft as ExtendConfig, g as getInjectedPlugins, ga as BlockStartInputRuleMatch, gi as InitOptions, gn as traverseHtmlComments, gr as DebugConfig, gt as InferKey, h as keyToDataAttribute, ha as BlockStartInputRuleConfig, hi as insertExitBreak, hn as traverseHtmlElements, hr as CorePluginTransforms, ht as InferApi, i as overridePluginsByKey, ia as SlatePluginContext, ii as ScrollMode, in as collapseWhiteSpaceElement, ir as DeserializeHtmlNodeReturnType, it as BasePlugin, j as EditableProps, ja as MatchBlockStartOptions, ji as AnyEditorPlugin, jn as isHtmlFragmentHref, jr as PlateError, jt as ParagraphConfig, k as ApplyDeepToNodesOptions, ka as MarkInputRuleConfig, ki as createSlatePlugin, kn as isHtmlTable, kr as DebugPlugin, kt as WithRequiredKey, l as Hotkeys, la as TransformInitialValue, li as isElementStateEmpty, ln as TrimEndRule, lr as TAB, lt as BreakRules, m as getNodeDataAttributeKeys, ma as BlockFenceInputRuleMatch, mi as InsertExitBreakOptions, mn as traverseHtmlNode, mr as CorePluginApi, mt as GetInjectNodePropsReturnType, n as pipeOnNodeChange, na as SlatePlugin, ni as DOMPlugin, nn as collapseWhiteSpaceText, nr as cleanHtmlBrElements, nt as BaseHtmlDeserializer, o as normalizeDescendantsToDocumentFragment, oa as SlatePlugins, oi as withScrolling, on as collapseWhiteSpace, or as LINE_FEED, ot as BasePluginNode, p as getPluginNodeProps, pa as BlockFenceInputRuleConfig, pi as liftBlock, pn as traverseHtmlTexts, pr as CorePlugin, pt as GetInjectNodePropsOptions, q as withSlate, qi as NodeStaticWrapperComponentReturnType, qn as deserializeHtmlNode, qr as NavigationFeedbackActiveTarget, qt as createMarkInputRule, r as pipeInsertDataQuery, ra as SlatePluginConfig, ri as DomConfig, rn as collapseWhiteSpaceNode, rr as DeserializeHtmlChildren, rt as BaseInjectProps, s as mergeDeepToNodes, sa as SlateShortcut, si as SlateExtensionConfig, sn as collapseString, sr as NO_BREAK_SPACE, st as BaseSerializer, t as pipeOnTextChange, ta as Serializer, ti as AutoScrollOperationsMap, tn as inferWhiteSpaceRule, tr as cleanHtmlCrLf, tt as BaseDeserializer, u as createHotkey, ua as TransformOptions, ui as setValue, un as TrimStartRule, ur as ZERO_WIDTH_SPACE, ut as DeleteRules, v as defaultsDeepToNodes, va as InputRuleBuilder, vi as ParserPlugin, vn as removeHtmlSurroundings, vr as LengthConfig, vt as InferSelectors, w as isSlatePluginElement, wa as InsertBreakInputRuleContext, wi as getPluginKeys, wn as pipeDeserializeHtmlElement, wr as NodeIdPlugin, wt as NormalizeRules, x as isSlateElement, xa as InputRulesDefinition, xi as getContainerTypes, xn as postCleanHtml, xr as ChunkingPlugin, xt as MergeRules, y as getSlateElements, ya as InputRuleTarget, yi as HistoryPlugin, yn as removeHtmlNodesBetweenComments, yr as getCorePlugins, yt as InferTransforms, z as RenderChunkProps, zi as HtmlDeserializer, zn as htmlElementToElement, zr as AffinityPlugin, zt as NormalizeStaticValueOptions } from "./index-ClAE30YQ";
|
|
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
|
|
1
|
+
import { $ as isLastNonEmptyTextOfInlineFormattingContext, $t as matchDelimitedInline, A as parseHtmlDocument, At as isSlateNode, B as pluginDeserializeHtml, Bt as withMergeRules, C as clearNavigationFeedbackTarget, Ct as keyToDataAttribute, D as NavigationFeedbackPluginKey, Dt as isSlateEditor, E as NAVIGATION_FEEDBACK_KEY, Et as getSlateElements, F as htmlTextNodeToString, Ft as isSlateVoid, G as collapseWhiteSpace, Gt as withPlateHistory, H as htmlBrToNewLine, Ht as withBreakRules, I as htmlElementToLeaf, It as applyDeepToNodes, J as collapseWhiteSpaceChildren, Jt as createBlockStartInputRule, K as collapseWhiteSpaceElement, Kt as AstPlugin, L as pipeDeserializeHtmlLeaf, Lt as OverridePlugin, M as htmlStringToDOMNode, Mt as isSlatePluginNode, N as deserializeHtmlElement, Nt as isSlateString, O as LengthPlugin, Ot as isSlateElement, P as deserializeHtmlNode, Pt as isSlateText, Q as upsertInlineFormattingContext, Qt as matchBlockStart, R as htmlElementToElement, Rt as withOverrides, S as navigate, St as getNodeDataAttributeKeys, T as resolveNavigationFeedbackTarget, Tt as getInjectMatch, U as htmlBodyToFragment, Ut as BaseParagraphPlugin, V as getDataNodeProps, Vt as withDeleteRules, W as deserializeHtmlNodeChildren, Wt as HistoryPlugin, X as collapseWhiteSpaceText, Xt as createTextSubstitutionInputRule, Y as collapseWhiteSpaceNode, Yt as createMarkInputRule, Z as endInlineFormattingContext, Zt as matchBlockFence, _ as NodeIdPlugin, _t as getMarkBoundaryAffinity, a as pipeInsertDataQuery, an as getPluginType, at as isHtmlElement, b as withNodeId, bt as getSlateClass, c as isElementStateEmpty, cn as getEditorPlugin, ct as withScrolling, d as liftBlock, dt as ChunkingPlugin, en as defineInputRule, et as collapseString, f as insertExitBreak, ft as withChunking, g as pipeOnNodeChange, gt as isNodesAffinity, h as pipeOnTextChange, ht as isNodeAffinity, i as ParserPlugin, in as getPluginKeys, it as isHtmlText, j as deserializeHtml, jt as isSlatePluginElement, k as HtmlPlugin, kt as isSlateLeaf, l as setValue, ln as createSlatePlugin, lt as DebugPlugin, mt as setAffinitySelection, n as withSlate, nn as getPluginByType, nt as isHtmlInlineElement, o as normalizeDescendantsToDocumentFragment, on as getPluginTypes, ot as AUTO_SCROLL, p as init, pt as AffinityPlugin, q as inferWhiteSpaceRule, qt as createBlockFenceInputRule, r as getCorePlugins, rn as getPluginKey, rt as inlineTagNames, s as SlateExtensionPlugin, sn as getSlatePlugin, st as DOMPlugin, t as createSlateEditor, tn as getContainerTypes, tt as isHtmlBlockElement, u as resetBlock, un as createTSlatePlugin, ut as PlateError, v as normalizeNodeId, vt as getEdgeNodes, w as flashTarget, wt as getInjectedPlugins, x as NavigationFeedbackPlugin, xt as getPluginNodeProps, y as normalizeNodeIdWithEditor, yt as mergeDeepToNodes, z as pipeDeserializeHtmlElement, zt as withNormalizeRules } from "./withSlate-pfxNb3FA.js";
|
|
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";
|
|
@@ -525,4 +525,4 @@ const overridePluginsByKey = (plugin, overrideByKey = {}, nested = false) => {
|
|
|
525
525
|
};
|
|
526
526
|
|
|
527
527
|
//#endregion
|
|
528
|
-
export { AUTO_SCROLL, AffinityPlugin, AstPlugin, BaseParagraphPlugin, CARRIAGE_RETURN, ChunkingPlugin, DOMPlugin, DebugPlugin, HistoryPlugin, Hotkeys, HtmlPlugin, LINE_FEED, LengthPlugin, NAVIGATION_FEEDBACK_KEY, NO_BREAK_SPACE, NavigationFeedbackPlugin, NavigationFeedbackPluginKey, NodeIdPlugin, OverridePlugin, ParserPlugin, PlateError, SPACE, STATIC_VALUE_CREATED_AT, SlateExtensionPlugin, TAB, ZERO_WIDTH_SPACE, 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, 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 };
|
|
528
|
+
export { AUTO_SCROLL, AffinityPlugin, AstPlugin, BaseParagraphPlugin, CARRIAGE_RETURN, ChunkingPlugin, DOMPlugin, DebugPlugin, HistoryPlugin, Hotkeys, HtmlPlugin, LINE_FEED, LengthPlugin, NAVIGATION_FEEDBACK_KEY, NO_BREAK_SPACE, NavigationFeedbackPlugin, NavigationFeedbackPluginKey, NodeIdPlugin, OverridePlugin, ParserPlugin, PlateError, SPACE, STATIC_VALUE_CREATED_AT, SlateExtensionPlugin, TAB, ZERO_WIDTH_SPACE, 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 };
|