@lofcz/platejs-core 53.4.5 → 53.4.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{index-lBpQT8qX.d.ts → index-fLEDAjcC.d.ts} +27 -27
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/react/index.d.ts +220 -409
- package/dist/react/index.js +2 -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 +6 -7
package/dist/react/index.d.ts
CHANGED
|
@@ -1,48 +1,49 @@
|
|
|
1
|
-
import { Ct as NodeComponents, Et as PluginConfig, F as RenderLeafProps, I as RenderElementFn, Ii as ExtendEditor$1, J as BaseEditor, Jr as NavigationFeedbackConfig, L as RenderElementProps, M as RenderTextFn, Mi as AnySlatePlugin, Mo as HandlerReturnType, N as RenderTextProps, Ot as WithAnyKey, P as RenderLeafFn, Pa as ResolvedInputRulesMeta, Q as SlateEditor, Qa as createStaticEditor, R as RenderChunkFn, So as PlateStaticProps, St as NodeComponent, Tt as ParserOptions, U as BaseWithSlateOptions, Y as InferPlugins, _t as InferOptions, ai as WithAutoScrollOptions, at as BasePluginContext, ba as InputRulesConfig, bt as MatchRules, ct as BaseTransformOptions, et as AnyPluginConfig, fi as LiftBlockOptions, gi as InitOptions, gt as InferKey, hr as CorePluginTransforms, ht as InferApi, ia as SlatePluginContext, ii as ScrollMode, it as BasePlugin, j as EditableProps, kt as WithRequiredKey, mi as InsertExitBreakOptions, mr as CorePluginApi, mt as GetInjectNodePropsReturnType, na as SlatePlugin, nt as BaseHtmlDeserializer, pr as CorePlugin, pt as GetInjectNodePropsOptions, qr as NavigationFeedbackActiveTarget, ra as SlatePluginConfig, ri as DomConfig, rt as BaseInjectProps, st as BaseSerializer, ti as AutoScrollOperationsMap, tt as BaseDeserializer, vt as InferSelectors, xa as InputRulesDefinition, yt as InferTransforms, z as RenderChunkProps } from "../index-
|
|
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-fLEDAjcC";
|
|
2
|
+
import * as _platejs_slate19 from "@platejs/slate";
|
|
3
3
|
import { DecoratedRange, Descendant, DescendantIn, Editor, EditorApi, EditorTransforms, ElementEntry, NodeEntry, NodeOperation, Operation, Path, TElement, TNode, TRange, TSelection, TText, TextOperation, Value, ValueOf } from "@platejs/slate";
|
|
4
4
|
import { AnyObject, Deep2Partial, Modify, Nullable, UnionToIntersection, UnknownObject } from "@udecode/utils";
|
|
5
5
|
import { DefaultPlaceholder, Editable, RenderPlaceholderProps, Slate, useComposing, useFocused, useReadOnly, useSelected, useSlateStatic, withReact } from "slate-react";
|
|
6
6
|
import React$1, { DependencyList, HTMLAttributes } from "react";
|
|
7
7
|
import { HotkeysEvent, HotkeysOptions, Keys } from "@udecode/react-hotkeys";
|
|
8
|
-
import * as
|
|
9
|
-
import {
|
|
10
|
-
import * as
|
|
8
|
+
import * as jotai5 from "jotai";
|
|
9
|
+
import { atom } from "jotai";
|
|
10
|
+
import * as jotai_x2 from "jotai-x";
|
|
11
11
|
import { JotaiStore, createAtomStore, useStoreAtomState, useStoreAtomValue, useStoreSetAtom } from "jotai-x";
|
|
12
12
|
import * as zustand_x0 from "zustand-x";
|
|
13
13
|
import { TCreatedStoreType, TEqualityChecker, createZustandStore, useStoreSelect, useStoreState, useStoreValue, useTracked, useTrackedStore } from "zustand-x";
|
|
14
14
|
import { createStore } from "jotai/vanilla";
|
|
15
|
+
import * as jotai_vanilla_internals0 from "jotai/vanilla/internals";
|
|
15
16
|
|
|
16
17
|
//#region src/react/plugins/SlateReactExtensionPlugin.d.ts
|
|
17
18
|
declare const SlateReactExtensionPlugin: PlatePlugin<PluginConfig<"slateExtension", {
|
|
18
19
|
onNodeChange: (options: {
|
|
19
20
|
editor: SlateEditor;
|
|
20
|
-
node:
|
|
21
|
-
operation:
|
|
22
|
-
prevNode:
|
|
21
|
+
node: _platejs_slate19.Descendant;
|
|
22
|
+
operation: _platejs_slate19.NodeOperation;
|
|
23
|
+
prevNode: _platejs_slate19.Descendant;
|
|
23
24
|
}) => void;
|
|
24
25
|
onTextChange: (options: {
|
|
25
26
|
editor: SlateEditor;
|
|
26
|
-
node:
|
|
27
|
-
operation:
|
|
27
|
+
node: _platejs_slate19.Descendant;
|
|
28
|
+
operation: _platejs_slate19.TextOperation;
|
|
28
29
|
prevText: string;
|
|
29
30
|
text: string;
|
|
30
31
|
}) => void;
|
|
31
32
|
}, {
|
|
32
33
|
redecorate: (() => void) & (() => void);
|
|
33
|
-
isElementStateEmpty: (element:
|
|
34
|
+
isElementStateEmpty: (element: _platejs_slate19.TElement) => boolean;
|
|
34
35
|
}, {
|
|
35
|
-
reset: (options:
|
|
36
|
+
reset: (options: _platejs_slate19.ResetOptions | undefined) => void;
|
|
36
37
|
init: ((args_0: InitOptions) => void) & ((args_0: InitOptions) => void);
|
|
37
38
|
insertExitBreak: ((args_0?: InsertExitBreakOptions | undefined) => true | undefined) & ((args_0?: InsertExitBreakOptions | undefined) => true | undefined);
|
|
38
39
|
liftBlock: ((args_0?: LiftBlockOptions | undefined) => true | undefined) & ((args_0?: LiftBlockOptions | undefined) => true | undefined);
|
|
39
40
|
resetBlock: ((args_0?: {
|
|
40
|
-
at?:
|
|
41
|
+
at?: _platejs_slate19.Path;
|
|
41
42
|
} | undefined) => true | undefined) & ((args_0?: {
|
|
42
|
-
at?:
|
|
43
|
+
at?: _platejs_slate19.Path;
|
|
43
44
|
} | undefined) => true | undefined);
|
|
44
|
-
setValue: ((value?: string |
|
|
45
|
-
apply: <N$1 extends
|
|
45
|
+
setValue: ((value?: string | _platejs_slate19.Value | undefined) => void) & ((value?: string | _platejs_slate19.Value | undefined) => void);
|
|
46
|
+
apply: <N$1 extends _platejs_slate19.TElement | _platejs_slate19.TText>(operation: _platejs_slate19.Operation<N$1>) => void;
|
|
46
47
|
}, {}>>;
|
|
47
48
|
//#endregion
|
|
48
49
|
//#region src/react/plugins/event-editor/EventEditorPlugin.d.ts
|
|
@@ -102,7 +103,7 @@ declare const ParagraphPlugin: PlatePlugin<PluginConfig<"p", {}, {}, {}, {}>>;
|
|
|
102
103
|
declare const ReactPlugin: PlatePlugin<PluginConfig<"dom", {
|
|
103
104
|
scrollMode?: ScrollMode;
|
|
104
105
|
scrollOperations?: AutoScrollOperationsMap;
|
|
105
|
-
scrollOptions?:
|
|
106
|
+
scrollOptions?: _platejs_slate19.ScrollIntoViewOptions;
|
|
106
107
|
}, {
|
|
107
108
|
isScrolling: () => boolean;
|
|
108
109
|
}, {
|
|
@@ -819,36 +820,36 @@ declare const getPlateCorePlugins: ({
|
|
|
819
820
|
}) => (PlatePlugin<PluginConfig<"eventEditor", {}, {}, {}, {}>> | PlatePlugin<PluginConfig<"slateExtension", {
|
|
820
821
|
onNodeChange: (options: {
|
|
821
822
|
editor: SlateEditor;
|
|
822
|
-
node:
|
|
823
|
-
operation:
|
|
824
|
-
prevNode:
|
|
823
|
+
node: _platejs_slate19.Descendant;
|
|
824
|
+
operation: _platejs_slate19.NodeOperation;
|
|
825
|
+
prevNode: _platejs_slate19.Descendant;
|
|
825
826
|
}) => void;
|
|
826
827
|
onTextChange: (options: {
|
|
827
828
|
editor: SlateEditor;
|
|
828
|
-
node:
|
|
829
|
-
operation:
|
|
829
|
+
node: _platejs_slate19.Descendant;
|
|
830
|
+
operation: _platejs_slate19.TextOperation;
|
|
830
831
|
prevText: string;
|
|
831
832
|
text: string;
|
|
832
833
|
}) => void;
|
|
833
834
|
}, {
|
|
834
835
|
redecorate: (() => void) & (() => void);
|
|
835
|
-
isElementStateEmpty: (element:
|
|
836
|
+
isElementStateEmpty: (element: _platejs_slate19.TElement) => boolean;
|
|
836
837
|
}, {
|
|
837
|
-
reset: (options:
|
|
838
|
+
reset: (options: _platejs_slate19.ResetOptions | undefined) => void;
|
|
838
839
|
init: ((args_0: InitOptions) => void) & ((args_0: InitOptions) => void);
|
|
839
840
|
insertExitBreak: ((args_0?: InsertExitBreakOptions | undefined) => true | undefined) & ((args_0?: InsertExitBreakOptions | undefined) => true | undefined);
|
|
840
841
|
liftBlock: ((args_0?: LiftBlockOptions | undefined) => true | undefined) & ((args_0?: LiftBlockOptions | undefined) => true | undefined);
|
|
841
842
|
resetBlock: ((args_0?: {
|
|
842
|
-
at?:
|
|
843
|
+
at?: _platejs_slate19.Path;
|
|
843
844
|
} | undefined) => true | undefined) & ((args_0?: {
|
|
844
|
-
at?:
|
|
845
|
+
at?: _platejs_slate19.Path;
|
|
845
846
|
} | undefined) => true | undefined);
|
|
846
|
-
setValue: ((value?: string |
|
|
847
|
-
apply: <N$1 extends
|
|
847
|
+
setValue: ((value?: string | _platejs_slate19.Value | undefined) => void) & ((value?: string | _platejs_slate19.Value | undefined) => void);
|
|
848
|
+
apply: <N$1 extends _platejs_slate19.TElement | _platejs_slate19.TText>(operation: _platejs_slate19.Operation<N$1>) => void;
|
|
848
849
|
}, {}>> | PlatePlugin<PluginConfig<"dom", {
|
|
849
850
|
scrollMode?: ScrollMode;
|
|
850
851
|
scrollOperations?: AutoScrollOperationsMap;
|
|
851
|
-
scrollOptions?:
|
|
852
|
+
scrollOptions?: _platejs_slate19.ScrollIntoViewOptions;
|
|
852
853
|
}, {
|
|
853
854
|
isScrolling: () => boolean;
|
|
854
855
|
}, {
|
|
@@ -918,7 +919,7 @@ declare function getPlugin<C extends AnyPluginConfig = PluginConfig>(editor: Pla
|
|
|
918
919
|
} ? C : PlatePlugin<C>;
|
|
919
920
|
//#endregion
|
|
920
921
|
//#region src/react/plugin/omitPluginContext.d.ts
|
|
921
|
-
declare const omitPluginContext: <T extends PlatePluginContext<AnyPlatePlugin>>(ctx: T) => Omit<T, "api" | "editor" | "getOptions" | "type" | "getOption" | "tf" | "setOptions" | "setOption"
|
|
922
|
+
declare const omitPluginContext: <T extends PlatePluginContext<AnyPlatePlugin>>(ctx: T) => Omit<T, "api" | "editor" | "plugin" | "getOptions" | "type" | "getOption" | "tf" | "setOptions" | "setOption">;
|
|
922
923
|
//#endregion
|
|
923
924
|
//#region src/react/plugin/toPlatePlugin.d.ts
|
|
924
925
|
type PlatePluginConfig$1<C extends AnyPluginConfig, EO = {}, EA = {}, ET = {}, ES = {}> = Omit<Partial<PlatePlugin<PluginConfig<C['key'], EO & InferOptions<C>, EA & InferApi<C>, ET & InferTransforms<C>, ES & InferSelectors<C>>>>, keyof PlatePluginMethods | 'api' | 'node' | 'options' | 'transforms'> & {
|
|
@@ -1094,11 +1095,11 @@ type ElementRuntimeStore = {
|
|
|
1094
1095
|
setState: (nextState: ElementRuntimeState) => void;
|
|
1095
1096
|
subscribe: (listener: () => void) => () => void;
|
|
1096
1097
|
};
|
|
1097
|
-
declare const elementStore:
|
|
1098
|
+
declare const elementStore: jotai_x2.StoreApi<ElementStoreState, object, "element">;
|
|
1098
1099
|
declare const withElementContext: <T>(context: Omit<ElementContextValue, "parent">, callback: () => T) => T;
|
|
1099
1100
|
declare const useElementContext: (scope?: string) => ElementContextValue | null;
|
|
1100
1101
|
declare const useElementStoreContext: (scope?: string) => ElementStoreContextValue | null;
|
|
1101
|
-
declare const useElementStore: (scope?: string) =>
|
|
1102
|
+
declare const useElementStore: (scope?: string) => jotai_x2.ReturnOfUseStoreApi<ElementStoreState, object>;
|
|
1102
1103
|
declare function ElementProvider({
|
|
1103
1104
|
children,
|
|
1104
1105
|
path,
|
|
@@ -1232,26 +1233,26 @@ declare const createPlateStore: <E extends PlateEditor = PlateEditor>({
|
|
|
1232
1233
|
onTextChange,
|
|
1233
1234
|
onValueChange,
|
|
1234
1235
|
...state
|
|
1235
|
-
}?: Partial<PlateStoreState<E>>) =>
|
|
1236
|
-
trackedEditor:
|
|
1236
|
+
}?: Partial<PlateStoreState<E>>) => jotai_x2.AtomStoreApi<PlateStoreState<E>, {
|
|
1237
|
+
trackedEditor: jotai5.Atom<{
|
|
1237
1238
|
editor: any;
|
|
1238
1239
|
version: number | null;
|
|
1239
1240
|
}>;
|
|
1240
|
-
trackedSelection:
|
|
1241
|
+
trackedSelection: jotai5.Atom<{
|
|
1241
1242
|
selection: any;
|
|
1242
1243
|
version: number | null;
|
|
1243
1244
|
}>;
|
|
1244
|
-
trackedValue:
|
|
1245
|
+
trackedValue: jotai5.Atom<{
|
|
1245
1246
|
value: any;
|
|
1246
1247
|
version: number | null;
|
|
1247
1248
|
}>;
|
|
1248
1249
|
}, "plate">;
|
|
1249
|
-
declare const PlateStoreProvider: React$1.FC<
|
|
1250
|
+
declare const PlateStoreProvider: React$1.FC<jotai_x2.ProviderProps<{
|
|
1250
1251
|
composing: boolean | null;
|
|
1251
1252
|
decorate: ((options: {
|
|
1252
1253
|
editor: PlateEditor;
|
|
1253
|
-
entry:
|
|
1254
|
-
}) =>
|
|
1254
|
+
entry: _platejs_slate19.NodeEntry;
|
|
1255
|
+
}) => _platejs_slate19.TRange[]) | null;
|
|
1255
1256
|
isMounted: boolean | null;
|
|
1256
1257
|
primary: boolean | null;
|
|
1257
1258
|
readOnly: boolean | null;
|
|
@@ -1265,309 +1266,309 @@ declare const PlateStoreProvider: React$1.FC<jotai_x98.ProviderProps<{
|
|
|
1265
1266
|
versionValue: number | null;
|
|
1266
1267
|
onChange: ((options: {
|
|
1267
1268
|
editor: PlateEditor;
|
|
1268
|
-
value:
|
|
1269
|
+
value: _platejs_slate19.Value;
|
|
1269
1270
|
}) => void) | null;
|
|
1270
1271
|
onNodeChange: ((options: {
|
|
1271
1272
|
editor: PlateEditor;
|
|
1272
|
-
node:
|
|
1273
|
-
operation:
|
|
1274
|
-
prevNode:
|
|
1273
|
+
node: _platejs_slate19.Descendant;
|
|
1274
|
+
operation: _platejs_slate19.NodeOperation;
|
|
1275
|
+
prevNode: _platejs_slate19.Descendant;
|
|
1275
1276
|
}) => void) | null;
|
|
1276
1277
|
onSelectionChange: ((options: {
|
|
1277
1278
|
editor: PlateEditor;
|
|
1278
|
-
selection:
|
|
1279
|
+
selection: _platejs_slate19.TSelection;
|
|
1279
1280
|
}) => void) | null;
|
|
1280
1281
|
onTextChange: ((options: {
|
|
1281
1282
|
editor: PlateEditor;
|
|
1282
|
-
node:
|
|
1283
|
-
operation:
|
|
1283
|
+
node: _platejs_slate19.Descendant;
|
|
1284
|
+
operation: _platejs_slate19.TextOperation;
|
|
1284
1285
|
prevText: string;
|
|
1285
1286
|
text: string;
|
|
1286
1287
|
}) => void) | null;
|
|
1287
1288
|
onValueChange: ((options: {
|
|
1288
1289
|
editor: PlateEditor;
|
|
1289
|
-
value:
|
|
1290
|
+
value: _platejs_slate19.Value;
|
|
1290
1291
|
}) => void) | null;
|
|
1291
1292
|
id: string;
|
|
1292
1293
|
containerRef: React$1.RefObject<HTMLDivElement | null>;
|
|
1293
1294
|
editor: PlateEditor;
|
|
1294
1295
|
scrollRef: React$1.RefObject<HTMLDivElement | null>;
|
|
1295
|
-
}>>, plateStore:
|
|
1296
|
-
trackedEditor:
|
|
1296
|
+
}>>, plateStore: jotai_x2.StoreApi<PlateStoreState<PlateEditor>, {
|
|
1297
|
+
trackedEditor: jotai5.Atom<{
|
|
1297
1298
|
editor: any;
|
|
1298
1299
|
version: number | null;
|
|
1299
1300
|
}>;
|
|
1300
|
-
trackedSelection:
|
|
1301
|
+
trackedSelection: jotai5.Atom<{
|
|
1301
1302
|
selection: any;
|
|
1302
1303
|
version: number | null;
|
|
1303
1304
|
}>;
|
|
1304
|
-
trackedValue:
|
|
1305
|
+
trackedValue: jotai5.Atom<{
|
|
1305
1306
|
value: any;
|
|
1306
1307
|
version: number | null;
|
|
1307
1308
|
}>;
|
|
1308
|
-
}, "plate">, usePlateLocalSet: <K$1 extends "
|
|
1309
|
-
composing:
|
|
1310
|
-
decorate:
|
|
1309
|
+
}, "plate">, usePlateLocalSet: <K$1 extends "renderLeaf" | "renderElement" | "renderText" | "decorate" | "editor" | "id" | "onChange" | "onNodeChange" | "onTextChange" | "readOnly" | "composing" | "isMounted" | "primary" | "renderChunk" | "versionDecorate" | "versionEditor" | "versionSelection" | "versionValue" | "onSelectionChange" | "onValueChange" | "containerRef" | "scrollRef" | "trackedEditor" | "trackedSelection" | "trackedValue">(key: K$1, options?: string | jotai_x2.UseAtomOptions) => ({
|
|
1310
|
+
composing: jotai_x2.SimpleWritableAtom<boolean | null>;
|
|
1311
|
+
decorate: jotai_x2.SimpleWritableAtom<((options: {
|
|
1311
1312
|
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:
|
|
1313
|
+
entry: _platejs_slate19.NodeEntry;
|
|
1314
|
+
}) => _platejs_slate19.TRange[]) | null>;
|
|
1315
|
+
isMounted: jotai_x2.SimpleWritableAtom<boolean | null>;
|
|
1316
|
+
primary: jotai_x2.SimpleWritableAtom<boolean | null>;
|
|
1317
|
+
readOnly: jotai_x2.SimpleWritableAtom<boolean | null>;
|
|
1318
|
+
renderChunk: jotai_x2.SimpleWritableAtom<RenderChunkFn | null>;
|
|
1319
|
+
renderElement: jotai_x2.SimpleWritableAtom<RenderElementFn | null>;
|
|
1320
|
+
renderLeaf: jotai_x2.SimpleWritableAtom<RenderLeafFn | null>;
|
|
1321
|
+
renderText: jotai_x2.SimpleWritableAtom<RenderTextFn | null>;
|
|
1322
|
+
versionDecorate: jotai_x2.SimpleWritableAtom<number | null>;
|
|
1323
|
+
versionEditor: jotai_x2.SimpleWritableAtom<number | null>;
|
|
1324
|
+
versionSelection: jotai_x2.SimpleWritableAtom<number | null>;
|
|
1325
|
+
versionValue: jotai_x2.SimpleWritableAtom<number | null>;
|
|
1326
|
+
onChange: jotai_x2.SimpleWritableAtom<((options: {
|
|
1326
1327
|
editor: PlateEditor;
|
|
1327
|
-
value:
|
|
1328
|
+
value: _platejs_slate19.Value;
|
|
1328
1329
|
}) => void) | null>;
|
|
1329
|
-
onNodeChange:
|
|
1330
|
+
onNodeChange: jotai_x2.SimpleWritableAtom<((options: {
|
|
1330
1331
|
editor: PlateEditor;
|
|
1331
|
-
node:
|
|
1332
|
-
operation:
|
|
1333
|
-
prevNode:
|
|
1332
|
+
node: _platejs_slate19.Descendant;
|
|
1333
|
+
operation: _platejs_slate19.NodeOperation;
|
|
1334
|
+
prevNode: _platejs_slate19.Descendant;
|
|
1334
1335
|
}) => void) | null>;
|
|
1335
|
-
onSelectionChange:
|
|
1336
|
+
onSelectionChange: jotai_x2.SimpleWritableAtom<((options: {
|
|
1336
1337
|
editor: PlateEditor;
|
|
1337
|
-
selection:
|
|
1338
|
+
selection: _platejs_slate19.TSelection;
|
|
1338
1339
|
}) => void) | null>;
|
|
1339
|
-
onTextChange:
|
|
1340
|
+
onTextChange: jotai_x2.SimpleWritableAtom<((options: {
|
|
1340
1341
|
editor: PlateEditor;
|
|
1341
|
-
node:
|
|
1342
|
-
operation:
|
|
1342
|
+
node: _platejs_slate19.Descendant;
|
|
1343
|
+
operation: _platejs_slate19.TextOperation;
|
|
1343
1344
|
prevText: string;
|
|
1344
1345
|
text: string;
|
|
1345
1346
|
}) => void) | null>;
|
|
1346
|
-
onValueChange:
|
|
1347
|
+
onValueChange: jotai_x2.SimpleWritableAtom<((options: {
|
|
1347
1348
|
editor: PlateEditor;
|
|
1348
|
-
value:
|
|
1349
|
+
value: _platejs_slate19.Value;
|
|
1349
1350
|
}) => void) | null>;
|
|
1350
|
-
id:
|
|
1351
|
-
containerRef:
|
|
1352
|
-
editor:
|
|
1353
|
-
scrollRef:
|
|
1351
|
+
id: jotai_x2.SimpleWritableAtom<string>;
|
|
1352
|
+
containerRef: jotai_x2.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
|
|
1353
|
+
editor: jotai_x2.SimpleWritableAtom<PlateEditor>;
|
|
1354
|
+
scrollRef: jotai_x2.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
|
|
1354
1355
|
} & {
|
|
1355
|
-
trackedEditor:
|
|
1356
|
+
trackedEditor: jotai5.Atom<{
|
|
1356
1357
|
editor: any;
|
|
1357
1358
|
version: number | null;
|
|
1358
1359
|
}>;
|
|
1359
|
-
trackedSelection:
|
|
1360
|
+
trackedSelection: jotai5.Atom<{
|
|
1360
1361
|
selection: any;
|
|
1361
1362
|
version: number | null;
|
|
1362
1363
|
}>;
|
|
1363
|
-
trackedValue:
|
|
1364
|
+
trackedValue: jotai5.Atom<{
|
|
1364
1365
|
value: any;
|
|
1365
1366
|
version: number | null;
|
|
1366
1367
|
}>;
|
|
1367
|
-
})[K$1] extends
|
|
1368
|
-
composing:
|
|
1369
|
-
decorate:
|
|
1368
|
+
})[K$1] extends jotai5.WritableAtom<infer _V, infer A extends unknown[], infer R> ? (...args: A) => R : never, usePlateLocalState: <K$1 extends "renderLeaf" | "renderElement" | "renderText" | "decorate" | "editor" | "id" | "onChange" | "onNodeChange" | "onTextChange" | "readOnly" | "composing" | "isMounted" | "primary" | "renderChunk" | "versionDecorate" | "versionEditor" | "versionSelection" | "versionValue" | "onSelectionChange" | "onValueChange" | "containerRef" | "scrollRef" | "trackedEditor" | "trackedSelection" | "trackedValue">(key: K$1, options?: string | jotai_x2.UseAtomOptions) => ({
|
|
1369
|
+
composing: jotai_x2.SimpleWritableAtom<boolean | null>;
|
|
1370
|
+
decorate: jotai_x2.SimpleWritableAtom<((options: {
|
|
1370
1371
|
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:
|
|
1372
|
+
entry: _platejs_slate19.NodeEntry;
|
|
1373
|
+
}) => _platejs_slate19.TRange[]) | null>;
|
|
1374
|
+
isMounted: jotai_x2.SimpleWritableAtom<boolean | null>;
|
|
1375
|
+
primary: jotai_x2.SimpleWritableAtom<boolean | null>;
|
|
1376
|
+
readOnly: jotai_x2.SimpleWritableAtom<boolean | null>;
|
|
1377
|
+
renderChunk: jotai_x2.SimpleWritableAtom<RenderChunkFn | null>;
|
|
1378
|
+
renderElement: jotai_x2.SimpleWritableAtom<RenderElementFn | null>;
|
|
1379
|
+
renderLeaf: jotai_x2.SimpleWritableAtom<RenderLeafFn | null>;
|
|
1380
|
+
renderText: jotai_x2.SimpleWritableAtom<RenderTextFn | null>;
|
|
1381
|
+
versionDecorate: jotai_x2.SimpleWritableAtom<number | null>;
|
|
1382
|
+
versionEditor: jotai_x2.SimpleWritableAtom<number | null>;
|
|
1383
|
+
versionSelection: jotai_x2.SimpleWritableAtom<number | null>;
|
|
1384
|
+
versionValue: jotai_x2.SimpleWritableAtom<number | null>;
|
|
1385
|
+
onChange: jotai_x2.SimpleWritableAtom<((options: {
|
|
1385
1386
|
editor: PlateEditor;
|
|
1386
|
-
value:
|
|
1387
|
+
value: _platejs_slate19.Value;
|
|
1387
1388
|
}) => void) | null>;
|
|
1388
|
-
onNodeChange:
|
|
1389
|
+
onNodeChange: jotai_x2.SimpleWritableAtom<((options: {
|
|
1389
1390
|
editor: PlateEditor;
|
|
1390
|
-
node:
|
|
1391
|
-
operation:
|
|
1392
|
-
prevNode:
|
|
1391
|
+
node: _platejs_slate19.Descendant;
|
|
1392
|
+
operation: _platejs_slate19.NodeOperation;
|
|
1393
|
+
prevNode: _platejs_slate19.Descendant;
|
|
1393
1394
|
}) => void) | null>;
|
|
1394
|
-
onSelectionChange:
|
|
1395
|
+
onSelectionChange: jotai_x2.SimpleWritableAtom<((options: {
|
|
1395
1396
|
editor: PlateEditor;
|
|
1396
|
-
selection:
|
|
1397
|
+
selection: _platejs_slate19.TSelection;
|
|
1397
1398
|
}) => void) | null>;
|
|
1398
|
-
onTextChange:
|
|
1399
|
+
onTextChange: jotai_x2.SimpleWritableAtom<((options: {
|
|
1399
1400
|
editor: PlateEditor;
|
|
1400
|
-
node:
|
|
1401
|
-
operation:
|
|
1401
|
+
node: _platejs_slate19.Descendant;
|
|
1402
|
+
operation: _platejs_slate19.TextOperation;
|
|
1402
1403
|
prevText: string;
|
|
1403
1404
|
text: string;
|
|
1404
1405
|
}) => void) | null>;
|
|
1405
|
-
onValueChange:
|
|
1406
|
+
onValueChange: jotai_x2.SimpleWritableAtom<((options: {
|
|
1406
1407
|
editor: PlateEditor;
|
|
1407
|
-
value:
|
|
1408
|
+
value: _platejs_slate19.Value;
|
|
1408
1409
|
}) => void) | null>;
|
|
1409
|
-
id:
|
|
1410
|
-
containerRef:
|
|
1411
|
-
editor:
|
|
1412
|
-
scrollRef:
|
|
1410
|
+
id: jotai_x2.SimpleWritableAtom<string>;
|
|
1411
|
+
containerRef: jotai_x2.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
|
|
1412
|
+
editor: jotai_x2.SimpleWritableAtom<PlateEditor>;
|
|
1413
|
+
scrollRef: jotai_x2.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
|
|
1413
1414
|
} & {
|
|
1414
|
-
trackedEditor:
|
|
1415
|
+
trackedEditor: jotai5.Atom<{
|
|
1415
1416
|
editor: any;
|
|
1416
1417
|
version: number | null;
|
|
1417
1418
|
}>;
|
|
1418
|
-
trackedSelection:
|
|
1419
|
+
trackedSelection: jotai5.Atom<{
|
|
1419
1420
|
selection: any;
|
|
1420
1421
|
version: number | null;
|
|
1421
1422
|
}>;
|
|
1422
|
-
trackedValue:
|
|
1423
|
+
trackedValue: jotai5.Atom<{
|
|
1423
1424
|
value: any;
|
|
1424
1425
|
version: number | null;
|
|
1425
1426
|
}>;
|
|
1426
|
-
})[K$1] extends
|
|
1427
|
-
trackedEditor:
|
|
1427
|
+
})[K$1] extends jotai5.WritableAtom<infer V, infer A extends unknown[], infer R> ? [V, (...args: A) => R] : never, usePlateLocalStore: jotai_x2.UseStoreApi<PlateStoreState<PlateEditor>, {
|
|
1428
|
+
trackedEditor: jotai5.Atom<{
|
|
1428
1429
|
editor: any;
|
|
1429
1430
|
version: number | null;
|
|
1430
1431
|
}>;
|
|
1431
|
-
trackedSelection:
|
|
1432
|
+
trackedSelection: jotai5.Atom<{
|
|
1432
1433
|
selection: any;
|
|
1433
1434
|
version: number | null;
|
|
1434
1435
|
}>;
|
|
1435
|
-
trackedValue:
|
|
1436
|
+
trackedValue: jotai5.Atom<{
|
|
1436
1437
|
value: any;
|
|
1437
1438
|
version: number | null;
|
|
1438
1439
|
}>;
|
|
1439
|
-
}>, usePlateLocalValue: <K$1 extends "
|
|
1440
|
-
composing:
|
|
1441
|
-
decorate:
|
|
1440
|
+
}>, usePlateLocalValue: <K$1 extends "renderLeaf" | "renderElement" | "renderText" | "decorate" | "editor" | "id" | "onChange" | "onNodeChange" | "onTextChange" | "readOnly" | "composing" | "isMounted" | "primary" | "renderChunk" | "versionDecorate" | "versionEditor" | "versionSelection" | "versionValue" | "onSelectionChange" | "onValueChange" | "containerRef" | "scrollRef" | "trackedEditor" | "trackedSelection" | "trackedValue", S = (({
|
|
1441
|
+
composing: jotai_x2.SimpleWritableAtom<boolean | null>;
|
|
1442
|
+
decorate: jotai_x2.SimpleWritableAtom<((options: {
|
|
1442
1443
|
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:
|
|
1444
|
+
entry: _platejs_slate19.NodeEntry;
|
|
1445
|
+
}) => _platejs_slate19.TRange[]) | null>;
|
|
1446
|
+
isMounted: jotai_x2.SimpleWritableAtom<boolean | null>;
|
|
1447
|
+
primary: jotai_x2.SimpleWritableAtom<boolean | null>;
|
|
1448
|
+
readOnly: jotai_x2.SimpleWritableAtom<boolean | null>;
|
|
1449
|
+
renderChunk: jotai_x2.SimpleWritableAtom<RenderChunkFn | null>;
|
|
1450
|
+
renderElement: jotai_x2.SimpleWritableAtom<RenderElementFn | null>;
|
|
1451
|
+
renderLeaf: jotai_x2.SimpleWritableAtom<RenderLeafFn | null>;
|
|
1452
|
+
renderText: jotai_x2.SimpleWritableAtom<RenderTextFn | null>;
|
|
1453
|
+
versionDecorate: jotai_x2.SimpleWritableAtom<number | null>;
|
|
1454
|
+
versionEditor: jotai_x2.SimpleWritableAtom<number | null>;
|
|
1455
|
+
versionSelection: jotai_x2.SimpleWritableAtom<number | null>;
|
|
1456
|
+
versionValue: jotai_x2.SimpleWritableAtom<number | null>;
|
|
1457
|
+
onChange: jotai_x2.SimpleWritableAtom<((options: {
|
|
1457
1458
|
editor: PlateEditor;
|
|
1458
|
-
value:
|
|
1459
|
+
value: _platejs_slate19.Value;
|
|
1459
1460
|
}) => void) | null>;
|
|
1460
|
-
onNodeChange:
|
|
1461
|
+
onNodeChange: jotai_x2.SimpleWritableAtom<((options: {
|
|
1461
1462
|
editor: PlateEditor;
|
|
1462
|
-
node:
|
|
1463
|
-
operation:
|
|
1464
|
-
prevNode:
|
|
1463
|
+
node: _platejs_slate19.Descendant;
|
|
1464
|
+
operation: _platejs_slate19.NodeOperation;
|
|
1465
|
+
prevNode: _platejs_slate19.Descendant;
|
|
1465
1466
|
}) => void) | null>;
|
|
1466
|
-
onSelectionChange:
|
|
1467
|
+
onSelectionChange: jotai_x2.SimpleWritableAtom<((options: {
|
|
1467
1468
|
editor: PlateEditor;
|
|
1468
|
-
selection:
|
|
1469
|
+
selection: _platejs_slate19.TSelection;
|
|
1469
1470
|
}) => void) | null>;
|
|
1470
|
-
onTextChange:
|
|
1471
|
+
onTextChange: jotai_x2.SimpleWritableAtom<((options: {
|
|
1471
1472
|
editor: PlateEditor;
|
|
1472
|
-
node:
|
|
1473
|
-
operation:
|
|
1473
|
+
node: _platejs_slate19.Descendant;
|
|
1474
|
+
operation: _platejs_slate19.TextOperation;
|
|
1474
1475
|
prevText: string;
|
|
1475
1476
|
text: string;
|
|
1476
1477
|
}) => void) | null>;
|
|
1477
|
-
onValueChange:
|
|
1478
|
+
onValueChange: jotai_x2.SimpleWritableAtom<((options: {
|
|
1478
1479
|
editor: PlateEditor;
|
|
1479
|
-
value:
|
|
1480
|
+
value: _platejs_slate19.Value;
|
|
1480
1481
|
}) => void) | null>;
|
|
1481
|
-
id:
|
|
1482
|
-
containerRef:
|
|
1483
|
-
editor:
|
|
1484
|
-
scrollRef:
|
|
1482
|
+
id: jotai_x2.SimpleWritableAtom<string>;
|
|
1483
|
+
containerRef: jotai_x2.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
|
|
1484
|
+
editor: jotai_x2.SimpleWritableAtom<PlateEditor>;
|
|
1485
|
+
scrollRef: jotai_x2.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
|
|
1485
1486
|
} & {
|
|
1486
|
-
trackedEditor:
|
|
1487
|
+
trackedEditor: jotai5.Atom<{
|
|
1487
1488
|
editor: any;
|
|
1488
1489
|
version: number | null;
|
|
1489
1490
|
}>;
|
|
1490
|
-
trackedSelection:
|
|
1491
|
+
trackedSelection: jotai5.Atom<{
|
|
1491
1492
|
selection: any;
|
|
1492
1493
|
version: number | null;
|
|
1493
1494
|
}>;
|
|
1494
|
-
trackedValue:
|
|
1495
|
+
trackedValue: jotai5.Atom<{
|
|
1495
1496
|
value: any;
|
|
1496
1497
|
version: number | null;
|
|
1497
1498
|
}>;
|
|
1498
|
-
})[K$1] extends
|
|
1499
|
+
})[K$1] extends jotai5.Atom<infer V> ? V : never)>(key: K$1, options?: ({
|
|
1499
1500
|
selector?: ((v: ({
|
|
1500
|
-
composing:
|
|
1501
|
-
decorate:
|
|
1501
|
+
composing: jotai_x2.SimpleWritableAtom<boolean | null>;
|
|
1502
|
+
decorate: jotai_x2.SimpleWritableAtom<((options: {
|
|
1502
1503
|
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:
|
|
1504
|
+
entry: _platejs_slate19.NodeEntry;
|
|
1505
|
+
}) => _platejs_slate19.TRange[]) | null>;
|
|
1506
|
+
isMounted: jotai_x2.SimpleWritableAtom<boolean | null>;
|
|
1507
|
+
primary: jotai_x2.SimpleWritableAtom<boolean | null>;
|
|
1508
|
+
readOnly: jotai_x2.SimpleWritableAtom<boolean | null>;
|
|
1509
|
+
renderChunk: jotai_x2.SimpleWritableAtom<RenderChunkFn | null>;
|
|
1510
|
+
renderElement: jotai_x2.SimpleWritableAtom<RenderElementFn | null>;
|
|
1511
|
+
renderLeaf: jotai_x2.SimpleWritableAtom<RenderLeafFn | null>;
|
|
1512
|
+
renderText: jotai_x2.SimpleWritableAtom<RenderTextFn | null>;
|
|
1513
|
+
versionDecorate: jotai_x2.SimpleWritableAtom<number | null>;
|
|
1514
|
+
versionEditor: jotai_x2.SimpleWritableAtom<number | null>;
|
|
1515
|
+
versionSelection: jotai_x2.SimpleWritableAtom<number | null>;
|
|
1516
|
+
versionValue: jotai_x2.SimpleWritableAtom<number | null>;
|
|
1517
|
+
onChange: jotai_x2.SimpleWritableAtom<((options: {
|
|
1517
1518
|
editor: PlateEditor;
|
|
1518
|
-
value:
|
|
1519
|
+
value: _platejs_slate19.Value;
|
|
1519
1520
|
}) => void) | null>;
|
|
1520
|
-
onNodeChange:
|
|
1521
|
+
onNodeChange: jotai_x2.SimpleWritableAtom<((options: {
|
|
1521
1522
|
editor: PlateEditor;
|
|
1522
|
-
node:
|
|
1523
|
-
operation:
|
|
1524
|
-
prevNode:
|
|
1523
|
+
node: _platejs_slate19.Descendant;
|
|
1524
|
+
operation: _platejs_slate19.NodeOperation;
|
|
1525
|
+
prevNode: _platejs_slate19.Descendant;
|
|
1525
1526
|
}) => void) | null>;
|
|
1526
|
-
onSelectionChange:
|
|
1527
|
+
onSelectionChange: jotai_x2.SimpleWritableAtom<((options: {
|
|
1527
1528
|
editor: PlateEditor;
|
|
1528
|
-
selection:
|
|
1529
|
+
selection: _platejs_slate19.TSelection;
|
|
1529
1530
|
}) => void) | null>;
|
|
1530
|
-
onTextChange:
|
|
1531
|
+
onTextChange: jotai_x2.SimpleWritableAtom<((options: {
|
|
1531
1532
|
editor: PlateEditor;
|
|
1532
|
-
node:
|
|
1533
|
-
operation:
|
|
1533
|
+
node: _platejs_slate19.Descendant;
|
|
1534
|
+
operation: _platejs_slate19.TextOperation;
|
|
1534
1535
|
prevText: string;
|
|
1535
1536
|
text: string;
|
|
1536
1537
|
}) => void) | null>;
|
|
1537
|
-
onValueChange:
|
|
1538
|
+
onValueChange: jotai_x2.SimpleWritableAtom<((options: {
|
|
1538
1539
|
editor: PlateEditor;
|
|
1539
|
-
value:
|
|
1540
|
+
value: _platejs_slate19.Value;
|
|
1540
1541
|
}) => void) | null>;
|
|
1541
|
-
id:
|
|
1542
|
-
containerRef:
|
|
1543
|
-
editor:
|
|
1544
|
-
scrollRef:
|
|
1542
|
+
id: jotai_x2.SimpleWritableAtom<string>;
|
|
1543
|
+
containerRef: jotai_x2.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
|
|
1544
|
+
editor: jotai_x2.SimpleWritableAtom<PlateEditor>;
|
|
1545
|
+
scrollRef: jotai_x2.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
|
|
1545
1546
|
} & {
|
|
1546
|
-
trackedEditor:
|
|
1547
|
+
trackedEditor: jotai5.Atom<{
|
|
1547
1548
|
editor: any;
|
|
1548
1549
|
version: number | null;
|
|
1549
1550
|
}>;
|
|
1550
|
-
trackedSelection:
|
|
1551
|
+
trackedSelection: jotai5.Atom<{
|
|
1551
1552
|
selection: any;
|
|
1552
1553
|
version: number | null;
|
|
1553
1554
|
}>;
|
|
1554
|
-
trackedValue:
|
|
1555
|
+
trackedValue: jotai5.Atom<{
|
|
1555
1556
|
value: any;
|
|
1556
1557
|
version: number | null;
|
|
1557
1558
|
}>;
|
|
1558
|
-
})[K$1] extends
|
|
1559
|
+
})[K$1] extends jotai5.Atom<infer V_1> ? V_1 : never, prevSelectorOutput?: S | undefined) => S) | undefined;
|
|
1559
1560
|
equalityFn?: ((prev: S, next: S) => boolean) | undefined;
|
|
1560
|
-
} &
|
|
1561
|
-
declare const usePlateStore: (id?: string) =>
|
|
1562
|
-
trackedEditor:
|
|
1561
|
+
} & jotai_x2.UseAtomOptions) | undefined, deps?: unknown[]) => S;
|
|
1562
|
+
declare const usePlateStore: (id?: string) => jotai_x2.ReturnOfUseStoreApi<PlateStoreState<PlateEditor>, {
|
|
1563
|
+
trackedEditor: jotai5.Atom<{
|
|
1563
1564
|
editor: any;
|
|
1564
1565
|
version: number | null;
|
|
1565
1566
|
}>;
|
|
1566
|
-
trackedSelection:
|
|
1567
|
+
trackedSelection: jotai5.Atom<{
|
|
1567
1568
|
selection: any;
|
|
1568
1569
|
version: number | null;
|
|
1569
1570
|
}>;
|
|
1570
|
-
trackedValue:
|
|
1571
|
+
trackedValue: jotai5.Atom<{
|
|
1571
1572
|
value: any;
|
|
1572
1573
|
version: number | null;
|
|
1573
1574
|
}>;
|
|
@@ -1664,218 +1665,28 @@ declare function useEditorPluginOptions<C extends AnyPluginConfig, U>(editor: Pl
|
|
|
1664
1665
|
}): U;
|
|
1665
1666
|
//#endregion
|
|
1666
1667
|
//#region src/react/stores/plate-controller/plateControllerStore.d.ts
|
|
1667
|
-
declare const PlateController: React$1.FC<
|
|
1668
|
+
declare const PlateController: React$1.FC<jotai_x2.ProviderProps<{
|
|
1668
1669
|
activeId: string | null;
|
|
1669
|
-
editorStores: Record<string,
|
|
1670
|
-
get: <Value$1>(atom: Atom<Value$1>) => Value$1;
|
|
1671
|
-
set: <Value$1, Args extends unknown[], Result>(atom: jotai10.WritableAtom<Value$1, Args, Result>, ...args: Args) => Result;
|
|
1672
|
-
sub: (atom: Atom<unknown>, listener: () => void) => () => void;
|
|
1673
|
-
} & Partial<{
|
|
1674
|
-
dev_subscribe_store: (l: (action: {
|
|
1675
|
-
type: "write";
|
|
1676
|
-
flushed: Set<Atom<unknown>>;
|
|
1677
|
-
} | {
|
|
1678
|
-
type: "async-write";
|
|
1679
|
-
flushed: Set<Atom<unknown>>;
|
|
1680
|
-
} | {
|
|
1681
|
-
type: "sub";
|
|
1682
|
-
flushed: Set<Atom<unknown>>;
|
|
1683
|
-
} | {
|
|
1684
|
-
type: "unsub";
|
|
1685
|
-
} | {
|
|
1686
|
-
type: "restore";
|
|
1687
|
-
flushed: Set<Atom<unknown>>;
|
|
1688
|
-
}) => void, rev: 2) => () => void;
|
|
1689
|
-
dev_get_mounted_atoms: () => IterableIterator<Atom<unknown>>;
|
|
1690
|
-
dev_get_atom_state: (a: Atom<unknown>) => ({
|
|
1691
|
-
d: Map<Atom<unknown>, /*elided*/any & ({
|
|
1692
|
-
e: unknown;
|
|
1693
|
-
} | {
|
|
1694
|
-
v: unknown;
|
|
1695
|
-
})>;
|
|
1696
|
-
} & ({
|
|
1697
|
-
e: unknown;
|
|
1698
|
-
} | {
|
|
1699
|
-
v: unknown;
|
|
1700
|
-
})) | undefined;
|
|
1701
|
-
dev_get_mounted: (a: Atom<unknown>) => {
|
|
1702
|
-
l: Set<() => void>;
|
|
1703
|
-
t: Set<Atom<unknown>>;
|
|
1704
|
-
u?: () => void;
|
|
1705
|
-
} | undefined;
|
|
1706
|
-
dev_restore_atoms: (values: Iterable<readonly [Atom<unknown>, unknown]>) => void;
|
|
1707
|
-
}>) | null>;
|
|
1670
|
+
editorStores: Record<string, jotai_vanilla_internals0.INTERNAL_Store | null>;
|
|
1708
1671
|
primaryEditorIds: string[];
|
|
1709
|
-
}>>, plateControllerStore:
|
|
1710
|
-
activeId:
|
|
1672
|
+
}>>, plateControllerStore: jotai_x2.StoreApi<{
|
|
1673
|
+
activeId: jotai5.PrimitiveAtom<string | null> & {
|
|
1711
1674
|
init: string | null;
|
|
1712
1675
|
};
|
|
1713
|
-
editorStores:
|
|
1714
|
-
|
|
1715
|
-
set: <Value$1, Args extends unknown[], Result>(atom: jotai10.WritableAtom<Value$1, Args, Result>, ...args: Args) => Result;
|
|
1716
|
-
sub: (atom: Atom<unknown>, listener: () => void) => () => void;
|
|
1717
|
-
} & Partial<{
|
|
1718
|
-
dev_subscribe_store: (l: (action: {
|
|
1719
|
-
type: "write";
|
|
1720
|
-
flushed: Set<Atom<unknown>>;
|
|
1721
|
-
} | {
|
|
1722
|
-
type: "async-write";
|
|
1723
|
-
flushed: Set<Atom<unknown>>;
|
|
1724
|
-
} | {
|
|
1725
|
-
type: "sub";
|
|
1726
|
-
flushed: Set<Atom<unknown>>;
|
|
1727
|
-
} | {
|
|
1728
|
-
type: "unsub";
|
|
1729
|
-
} | {
|
|
1730
|
-
type: "restore";
|
|
1731
|
-
flushed: Set<Atom<unknown>>;
|
|
1732
|
-
}) => void, rev: 2) => () => void;
|
|
1733
|
-
dev_get_mounted_atoms: () => IterableIterator<Atom<unknown>>;
|
|
1734
|
-
dev_get_atom_state: (a: Atom<unknown>) => ({
|
|
1735
|
-
d: Map<Atom<unknown>, /*elided*/any & ({
|
|
1736
|
-
e: unknown;
|
|
1737
|
-
} | {
|
|
1738
|
-
v: unknown;
|
|
1739
|
-
})>;
|
|
1740
|
-
} & ({
|
|
1741
|
-
e: unknown;
|
|
1742
|
-
} | {
|
|
1743
|
-
v: unknown;
|
|
1744
|
-
})) | undefined;
|
|
1745
|
-
dev_get_mounted: (a: Atom<unknown>) => {
|
|
1746
|
-
l: Set<() => void>;
|
|
1747
|
-
t: Set<Atom<unknown>>;
|
|
1748
|
-
u?: () => void;
|
|
1749
|
-
} | undefined;
|
|
1750
|
-
dev_restore_atoms: (values: Iterable<readonly [Atom<unknown>, unknown]>) => void;
|
|
1751
|
-
}>) | null>> & {
|
|
1752
|
-
init: Record<string, ({
|
|
1753
|
-
get: <Value$1>(atom: Atom<Value$1>) => Value$1;
|
|
1754
|
-
set: <Value$1, Args extends unknown[], Result>(atom: jotai10.WritableAtom<Value$1, Args, Result>, ...args: Args) => Result;
|
|
1755
|
-
sub: (atom: Atom<unknown>, listener: () => void) => () => void;
|
|
1756
|
-
} & Partial<{
|
|
1757
|
-
dev_subscribe_store: (l: (action: {
|
|
1758
|
-
type: "write";
|
|
1759
|
-
flushed: Set<Atom<unknown>>;
|
|
1760
|
-
} | {
|
|
1761
|
-
type: "async-write";
|
|
1762
|
-
flushed: Set<Atom<unknown>>;
|
|
1763
|
-
} | {
|
|
1764
|
-
type: "sub";
|
|
1765
|
-
flushed: Set<Atom<unknown>>;
|
|
1766
|
-
} | {
|
|
1767
|
-
type: "unsub";
|
|
1768
|
-
} | {
|
|
1769
|
-
type: "restore";
|
|
1770
|
-
flushed: Set<Atom<unknown>>;
|
|
1771
|
-
}) => void, rev: 2) => () => void;
|
|
1772
|
-
dev_get_mounted_atoms: () => IterableIterator<Atom<unknown>>;
|
|
1773
|
-
dev_get_atom_state: (a: Atom<unknown>) => ({
|
|
1774
|
-
d: Map<Atom<unknown>, /*elided*/any & ({
|
|
1775
|
-
e: unknown;
|
|
1776
|
-
} | {
|
|
1777
|
-
v: unknown;
|
|
1778
|
-
})>;
|
|
1779
|
-
} & ({
|
|
1780
|
-
e: unknown;
|
|
1781
|
-
} | {
|
|
1782
|
-
v: unknown;
|
|
1783
|
-
})) | undefined;
|
|
1784
|
-
dev_get_mounted: (a: Atom<unknown>) => {
|
|
1785
|
-
l: Set<() => void>;
|
|
1786
|
-
t: Set<Atom<unknown>>;
|
|
1787
|
-
u?: () => void;
|
|
1788
|
-
} | undefined;
|
|
1789
|
-
dev_restore_atoms: (values: Iterable<readonly [Atom<unknown>, unknown]>) => void;
|
|
1790
|
-
}>) | null>;
|
|
1676
|
+
editorStores: jotai5.PrimitiveAtom<Record<string, jotai_vanilla_internals0.INTERNAL_Store | null>> & {
|
|
1677
|
+
init: Record<string, jotai_vanilla_internals0.INTERNAL_Store | null>;
|
|
1791
1678
|
};
|
|
1792
|
-
primaryEditorIds:
|
|
1679
|
+
primaryEditorIds: jotai5.PrimitiveAtom<string[]> & {
|
|
1793
1680
|
init: string[];
|
|
1794
1681
|
};
|
|
1795
|
-
}, object, "plateController">, _usePlateControllerStore:
|
|
1796
|
-
activeId:
|
|
1682
|
+
}, object, "plateController">, _usePlateControllerStore: jotai_x2.UseStoreApi<{
|
|
1683
|
+
activeId: jotai5.PrimitiveAtom<string | null> & {
|
|
1797
1684
|
init: string | null;
|
|
1798
1685
|
};
|
|
1799
|
-
editorStores:
|
|
1800
|
-
|
|
1801
|
-
set: <Value$1, Args extends unknown[], Result>(atom: jotai10.WritableAtom<Value$1, Args, Result>, ...args: Args) => Result;
|
|
1802
|
-
sub: (atom: Atom<unknown>, listener: () => void) => () => void;
|
|
1803
|
-
} & Partial<{
|
|
1804
|
-
dev_subscribe_store: (l: (action: {
|
|
1805
|
-
type: "write";
|
|
1806
|
-
flushed: Set<Atom<unknown>>;
|
|
1807
|
-
} | {
|
|
1808
|
-
type: "async-write";
|
|
1809
|
-
flushed: Set<Atom<unknown>>;
|
|
1810
|
-
} | {
|
|
1811
|
-
type: "sub";
|
|
1812
|
-
flushed: Set<Atom<unknown>>;
|
|
1813
|
-
} | {
|
|
1814
|
-
type: "unsub";
|
|
1815
|
-
} | {
|
|
1816
|
-
type: "restore";
|
|
1817
|
-
flushed: Set<Atom<unknown>>;
|
|
1818
|
-
}) => void, rev: 2) => () => void;
|
|
1819
|
-
dev_get_mounted_atoms: () => IterableIterator<Atom<unknown>>;
|
|
1820
|
-
dev_get_atom_state: (a: Atom<unknown>) => ({
|
|
1821
|
-
d: Map<Atom<unknown>, /*elided*/any & ({
|
|
1822
|
-
e: unknown;
|
|
1823
|
-
} | {
|
|
1824
|
-
v: unknown;
|
|
1825
|
-
})>;
|
|
1826
|
-
} & ({
|
|
1827
|
-
e: unknown;
|
|
1828
|
-
} | {
|
|
1829
|
-
v: unknown;
|
|
1830
|
-
})) | undefined;
|
|
1831
|
-
dev_get_mounted: (a: Atom<unknown>) => {
|
|
1832
|
-
l: Set<() => void>;
|
|
1833
|
-
t: Set<Atom<unknown>>;
|
|
1834
|
-
u?: () => void;
|
|
1835
|
-
} | undefined;
|
|
1836
|
-
dev_restore_atoms: (values: Iterable<readonly [Atom<unknown>, unknown]>) => void;
|
|
1837
|
-
}>) | null>> & {
|
|
1838
|
-
init: Record<string, ({
|
|
1839
|
-
get: <Value$1>(atom: Atom<Value$1>) => Value$1;
|
|
1840
|
-
set: <Value$1, Args extends unknown[], Result>(atom: jotai10.WritableAtom<Value$1, Args, Result>, ...args: Args) => Result;
|
|
1841
|
-
sub: (atom: Atom<unknown>, listener: () => void) => () => void;
|
|
1842
|
-
} & Partial<{
|
|
1843
|
-
dev_subscribe_store: (l: (action: {
|
|
1844
|
-
type: "write";
|
|
1845
|
-
flushed: Set<Atom<unknown>>;
|
|
1846
|
-
} | {
|
|
1847
|
-
type: "async-write";
|
|
1848
|
-
flushed: Set<Atom<unknown>>;
|
|
1849
|
-
} | {
|
|
1850
|
-
type: "sub";
|
|
1851
|
-
flushed: Set<Atom<unknown>>;
|
|
1852
|
-
} | {
|
|
1853
|
-
type: "unsub";
|
|
1854
|
-
} | {
|
|
1855
|
-
type: "restore";
|
|
1856
|
-
flushed: Set<Atom<unknown>>;
|
|
1857
|
-
}) => void, rev: 2) => () => void;
|
|
1858
|
-
dev_get_mounted_atoms: () => IterableIterator<Atom<unknown>>;
|
|
1859
|
-
dev_get_atom_state: (a: Atom<unknown>) => ({
|
|
1860
|
-
d: Map<Atom<unknown>, /*elided*/any & ({
|
|
1861
|
-
e: unknown;
|
|
1862
|
-
} | {
|
|
1863
|
-
v: unknown;
|
|
1864
|
-
})>;
|
|
1865
|
-
} & ({
|
|
1866
|
-
e: unknown;
|
|
1867
|
-
} | {
|
|
1868
|
-
v: unknown;
|
|
1869
|
-
})) | undefined;
|
|
1870
|
-
dev_get_mounted: (a: Atom<unknown>) => {
|
|
1871
|
-
l: Set<() => void>;
|
|
1872
|
-
t: Set<Atom<unknown>>;
|
|
1873
|
-
u?: () => void;
|
|
1874
|
-
} | undefined;
|
|
1875
|
-
dev_restore_atoms: (values: Iterable<readonly [Atom<unknown>, unknown]>) => void;
|
|
1876
|
-
}>) | null>;
|
|
1686
|
+
editorStores: jotai5.PrimitiveAtom<Record<string, jotai_vanilla_internals0.INTERNAL_Store | null>> & {
|
|
1687
|
+
init: Record<string, jotai_vanilla_internals0.INTERNAL_Store | null>;
|
|
1877
1688
|
};
|
|
1878
|
-
primaryEditorIds:
|
|
1689
|
+
primaryEditorIds: jotai5.PrimitiveAtom<string[]> & {
|
|
1879
1690
|
init: string[];
|
|
1880
1691
|
};
|
|
1881
1692
|
}, object>;
|
|
@@ -1994,7 +1805,7 @@ declare const useEditableProps: ({
|
|
|
1994
1805
|
* if another node is updated in a way that affects this node's path, this hook
|
|
1995
1806
|
* will not return the new path.
|
|
1996
1807
|
*/
|
|
1997
|
-
declare const useNodePath: (node: TNode) =>
|
|
1808
|
+
declare const useNodePath: (node: TNode) => _platejs_slate19.Path | undefined;
|
|
1998
1809
|
//#endregion
|
|
1999
1810
|
//#region src/react/hooks/useSlateProps.d.ts
|
|
2000
1811
|
type SlateComponentProps = Omit<React$1.ComponentProps<typeof Slate>, 'children'>;
|
|
@@ -2009,7 +1820,7 @@ declare const useSlateProps: ({
|
|
|
2009
1820
|
}) => PlateSlateProps;
|
|
2010
1821
|
//#endregion
|
|
2011
1822
|
//#region src/react/utils/createPlateFallbackEditor.d.ts
|
|
2012
|
-
declare const createPlateFallbackEditor: (options?: CreatePlateEditorOptions) => TPlateEditor<
|
|
1823
|
+
declare const createPlateFallbackEditor: (options?: CreatePlateEditorOptions) => TPlateEditor<_platejs_slate19.Value, PlateCorePlugin>;
|
|
2013
1824
|
//#endregion
|
|
2014
1825
|
//#region src/react/utils/dom-attributes.d.ts
|
|
2015
1826
|
declare const DOM_HANDLERS: (keyof DOMHandlers)[];
|