@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
package/dist/react/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Ct as NodeComponents, Et as PluginConfig, F as RenderLeafProps,
|
|
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-ClAE30YQ";
|
|
2
|
+
import * as _platejs_slate0 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
|
|
8
|
+
import * as jotai0 from "jotai";
|
|
9
9
|
import { Atom, atom } from "jotai";
|
|
10
|
-
import * as
|
|
10
|
+
import * as jotai_x0 from "jotai-x";
|
|
11
11
|
import { JotaiStore, createAtomStore, useStoreAtomState, useStoreAtomValue, useStoreSetAtom } from "jotai-x";
|
|
12
12
|
import * as zustand_x0 from "zustand-x";
|
|
13
13
|
import { TCreatedStoreType, TEqualityChecker, createZustandStore, useStoreSelect, useStoreState, useStoreValue, useTracked, useTrackedStore } from "zustand-x";
|
|
@@ -17,31 +17,32 @@ import { createStore } from "jotai/vanilla";
|
|
|
17
17
|
declare const SlateReactExtensionPlugin: PlatePlugin<PluginConfig<"slateExtension", {
|
|
18
18
|
onNodeChange: (options: {
|
|
19
19
|
editor: SlateEditor;
|
|
20
|
-
node:
|
|
21
|
-
operation:
|
|
22
|
-
prevNode:
|
|
20
|
+
node: _platejs_slate0.Descendant;
|
|
21
|
+
operation: _platejs_slate0.NodeOperation;
|
|
22
|
+
prevNode: _platejs_slate0.Descendant;
|
|
23
23
|
}) => void;
|
|
24
24
|
onTextChange: (options: {
|
|
25
25
|
editor: SlateEditor;
|
|
26
|
-
node:
|
|
27
|
-
operation:
|
|
26
|
+
node: _platejs_slate0.Descendant;
|
|
27
|
+
operation: _platejs_slate0.TextOperation;
|
|
28
28
|
prevText: string;
|
|
29
29
|
text: string;
|
|
30
30
|
}) => void;
|
|
31
31
|
}, {
|
|
32
32
|
redecorate: (() => void) & (() => void);
|
|
33
|
+
isElementStateEmpty: (element: _platejs_slate0.TElement) => boolean;
|
|
33
34
|
}, {
|
|
34
|
-
reset: (options:
|
|
35
|
+
reset: (options: _platejs_slate0.ResetOptions | undefined) => void;
|
|
35
36
|
init: ((args_0: InitOptions) => void) & ((args_0: InitOptions) => void);
|
|
36
37
|
insertExitBreak: ((args_0?: InsertExitBreakOptions | undefined) => true | undefined) & ((args_0?: InsertExitBreakOptions | undefined) => true | undefined);
|
|
37
38
|
liftBlock: ((args_0?: LiftBlockOptions | undefined) => true | undefined) & ((args_0?: LiftBlockOptions | undefined) => true | undefined);
|
|
38
39
|
resetBlock: ((args_0?: {
|
|
39
|
-
at?:
|
|
40
|
+
at?: _platejs_slate0.Path;
|
|
40
41
|
} | undefined) => true | undefined) & ((args_0?: {
|
|
41
|
-
at?:
|
|
42
|
+
at?: _platejs_slate0.Path;
|
|
42
43
|
} | undefined) => true | undefined);
|
|
43
|
-
setValue: ((value?: string |
|
|
44
|
-
apply: <N$1 extends
|
|
44
|
+
setValue: ((value?: string | _platejs_slate0.Value | undefined) => void) & ((value?: string | _platejs_slate0.Value | undefined) => void);
|
|
45
|
+
apply: <N$1 extends _platejs_slate0.TElement | _platejs_slate0.TText>(operation: _platejs_slate0.Operation<N$1>) => void;
|
|
45
46
|
}, {}>>;
|
|
46
47
|
//#endregion
|
|
47
48
|
//#region src/react/plugins/event-editor/EventEditorPlugin.d.ts
|
|
@@ -101,7 +102,7 @@ declare const ParagraphPlugin: PlatePlugin<PluginConfig<"p", {}, {}, {}, {}>>;
|
|
|
101
102
|
declare const ReactPlugin: PlatePlugin<PluginConfig<"dom", {
|
|
102
103
|
scrollMode?: ScrollMode;
|
|
103
104
|
scrollOperations?: AutoScrollOperationsMap;
|
|
104
|
-
scrollOptions?:
|
|
105
|
+
scrollOptions?: _platejs_slate0.ScrollIntoViewOptions;
|
|
105
106
|
}, {
|
|
106
107
|
isScrolling: () => boolean;
|
|
107
108
|
}, {
|
|
@@ -818,35 +819,36 @@ declare const getPlateCorePlugins: ({
|
|
|
818
819
|
}) => (PlatePlugin<PluginConfig<"eventEditor", {}, {}, {}, {}>> | PlatePlugin<PluginConfig<"slateExtension", {
|
|
819
820
|
onNodeChange: (options: {
|
|
820
821
|
editor: SlateEditor;
|
|
821
|
-
node:
|
|
822
|
-
operation:
|
|
823
|
-
prevNode:
|
|
822
|
+
node: _platejs_slate0.Descendant;
|
|
823
|
+
operation: _platejs_slate0.NodeOperation;
|
|
824
|
+
prevNode: _platejs_slate0.Descendant;
|
|
824
825
|
}) => void;
|
|
825
826
|
onTextChange: (options: {
|
|
826
827
|
editor: SlateEditor;
|
|
827
|
-
node:
|
|
828
|
-
operation:
|
|
828
|
+
node: _platejs_slate0.Descendant;
|
|
829
|
+
operation: _platejs_slate0.TextOperation;
|
|
829
830
|
prevText: string;
|
|
830
831
|
text: string;
|
|
831
832
|
}) => void;
|
|
832
833
|
}, {
|
|
833
834
|
redecorate: (() => void) & (() => void);
|
|
835
|
+
isElementStateEmpty: (element: _platejs_slate0.TElement) => boolean;
|
|
834
836
|
}, {
|
|
835
|
-
reset: (options:
|
|
837
|
+
reset: (options: _platejs_slate0.ResetOptions | undefined) => void;
|
|
836
838
|
init: ((args_0: InitOptions) => void) & ((args_0: InitOptions) => void);
|
|
837
839
|
insertExitBreak: ((args_0?: InsertExitBreakOptions | undefined) => true | undefined) & ((args_0?: InsertExitBreakOptions | undefined) => true | undefined);
|
|
838
840
|
liftBlock: ((args_0?: LiftBlockOptions | undefined) => true | undefined) & ((args_0?: LiftBlockOptions | undefined) => true | undefined);
|
|
839
841
|
resetBlock: ((args_0?: {
|
|
840
|
-
at?:
|
|
842
|
+
at?: _platejs_slate0.Path;
|
|
841
843
|
} | undefined) => true | undefined) & ((args_0?: {
|
|
842
|
-
at?:
|
|
844
|
+
at?: _platejs_slate0.Path;
|
|
843
845
|
} | undefined) => true | undefined);
|
|
844
|
-
setValue: ((value?: string |
|
|
845
|
-
apply: <N$1 extends
|
|
846
|
+
setValue: ((value?: string | _platejs_slate0.Value | undefined) => void) & ((value?: string | _platejs_slate0.Value | undefined) => void);
|
|
847
|
+
apply: <N$1 extends _platejs_slate0.TElement | _platejs_slate0.TText>(operation: _platejs_slate0.Operation<N$1>) => void;
|
|
846
848
|
}, {}>> | PlatePlugin<PluginConfig<"dom", {
|
|
847
849
|
scrollMode?: ScrollMode;
|
|
848
850
|
scrollOperations?: AutoScrollOperationsMap;
|
|
849
|
-
scrollOptions?:
|
|
851
|
+
scrollOptions?: _platejs_slate0.ScrollIntoViewOptions;
|
|
850
852
|
}, {
|
|
851
853
|
isScrolling: () => boolean;
|
|
852
854
|
}, {
|
|
@@ -916,7 +918,7 @@ declare function getPlugin<C extends AnyPluginConfig = PluginConfig>(editor: Pla
|
|
|
916
918
|
} ? C : PlatePlugin<C>;
|
|
917
919
|
//#endregion
|
|
918
920
|
//#region src/react/plugin/omitPluginContext.d.ts
|
|
919
|
-
declare const omitPluginContext: <T extends PlatePluginContext<AnyPlatePlugin>>(ctx: T) => Omit<T, "api" | "editor" | "
|
|
921
|
+
declare const omitPluginContext: <T extends PlatePluginContext<AnyPlatePlugin>>(ctx: T) => Omit<T, "api" | "editor" | "getOptions" | "type" | "getOption" | "tf" | "setOptions" | "setOption" | "plugin">;
|
|
920
922
|
//#endregion
|
|
921
923
|
//#region src/react/plugin/toPlatePlugin.d.ts
|
|
922
924
|
type PlatePluginConfig$1<C extends AnyPluginConfig, EO = {}, EA = {}, ET = {}, ES = {}> = Omit<Partial<PlatePlugin<PluginConfig<C['key'], EO & InferOptions<C>, EA & InferApi<C>, ET & InferTransforms<C>, ES & InferSelectors<C>>>>, keyof PlatePluginMethods | 'api' | 'node' | 'options' | 'transforms'> & {
|
|
@@ -1092,11 +1094,11 @@ type ElementRuntimeStore = {
|
|
|
1092
1094
|
setState: (nextState: ElementRuntimeState) => void;
|
|
1093
1095
|
subscribe: (listener: () => void) => () => void;
|
|
1094
1096
|
};
|
|
1095
|
-
declare const elementStore:
|
|
1097
|
+
declare const elementStore: jotai_x0.StoreApi<ElementStoreState, object, "element">;
|
|
1096
1098
|
declare const withElementContext: <T>(context: Omit<ElementContextValue, "parent">, callback: () => T) => T;
|
|
1097
1099
|
declare const useElementContext: (scope?: string) => ElementContextValue | null;
|
|
1098
1100
|
declare const useElementStoreContext: (scope?: string) => ElementStoreContextValue | null;
|
|
1099
|
-
declare const useElementStore: (scope?: string) =>
|
|
1101
|
+
declare const useElementStore: (scope?: string) => jotai_x0.ReturnOfUseStoreApi<ElementStoreState, object>;
|
|
1100
1102
|
declare function ElementProvider({
|
|
1101
1103
|
children,
|
|
1102
1104
|
path,
|
|
@@ -1230,26 +1232,26 @@ declare const createPlateStore: <E extends PlateEditor = PlateEditor>({
|
|
|
1230
1232
|
onTextChange,
|
|
1231
1233
|
onValueChange,
|
|
1232
1234
|
...state
|
|
1233
|
-
}?: Partial<PlateStoreState<E>>) =>
|
|
1234
|
-
trackedEditor:
|
|
1235
|
+
}?: Partial<PlateStoreState<E>>) => jotai_x0.AtomStoreApi<PlateStoreState<E>, {
|
|
1236
|
+
trackedEditor: jotai0.Atom<{
|
|
1235
1237
|
editor: any;
|
|
1236
1238
|
version: number | null;
|
|
1237
1239
|
}>;
|
|
1238
|
-
trackedSelection:
|
|
1240
|
+
trackedSelection: jotai0.Atom<{
|
|
1239
1241
|
selection: any;
|
|
1240
1242
|
version: number | null;
|
|
1241
1243
|
}>;
|
|
1242
|
-
trackedValue:
|
|
1244
|
+
trackedValue: jotai0.Atom<{
|
|
1243
1245
|
value: any;
|
|
1244
1246
|
version: number | null;
|
|
1245
1247
|
}>;
|
|
1246
1248
|
}, "plate">;
|
|
1247
|
-
declare const PlateStoreProvider: React$1.FC<
|
|
1249
|
+
declare const PlateStoreProvider: React$1.FC<jotai_x0.ProviderProps<{
|
|
1248
1250
|
composing: boolean | null;
|
|
1249
1251
|
decorate: ((options: {
|
|
1250
1252
|
editor: PlateEditor;
|
|
1251
|
-
entry:
|
|
1252
|
-
}) =>
|
|
1253
|
+
entry: _platejs_slate0.NodeEntry;
|
|
1254
|
+
}) => _platejs_slate0.TRange[]) | null;
|
|
1253
1255
|
isMounted: boolean | null;
|
|
1254
1256
|
primary: boolean | null;
|
|
1255
1257
|
readOnly: boolean | null;
|
|
@@ -1263,309 +1265,309 @@ declare const PlateStoreProvider: React$1.FC<jotai_x2.ProviderProps<{
|
|
|
1263
1265
|
versionValue: number | null;
|
|
1264
1266
|
onChange: ((options: {
|
|
1265
1267
|
editor: PlateEditor;
|
|
1266
|
-
value:
|
|
1268
|
+
value: _platejs_slate0.Value;
|
|
1267
1269
|
}) => void) | null;
|
|
1268
1270
|
onNodeChange: ((options: {
|
|
1269
1271
|
editor: PlateEditor;
|
|
1270
|
-
node:
|
|
1271
|
-
operation:
|
|
1272
|
-
prevNode:
|
|
1272
|
+
node: _platejs_slate0.Descendant;
|
|
1273
|
+
operation: _platejs_slate0.NodeOperation;
|
|
1274
|
+
prevNode: _platejs_slate0.Descendant;
|
|
1273
1275
|
}) => void) | null;
|
|
1274
1276
|
onSelectionChange: ((options: {
|
|
1275
1277
|
editor: PlateEditor;
|
|
1276
|
-
selection:
|
|
1278
|
+
selection: _platejs_slate0.TSelection;
|
|
1277
1279
|
}) => void) | null;
|
|
1278
1280
|
onTextChange: ((options: {
|
|
1279
1281
|
editor: PlateEditor;
|
|
1280
|
-
node:
|
|
1281
|
-
operation:
|
|
1282
|
+
node: _platejs_slate0.Descendant;
|
|
1283
|
+
operation: _platejs_slate0.TextOperation;
|
|
1282
1284
|
prevText: string;
|
|
1283
1285
|
text: string;
|
|
1284
1286
|
}) => void) | null;
|
|
1285
1287
|
onValueChange: ((options: {
|
|
1286
1288
|
editor: PlateEditor;
|
|
1287
|
-
value:
|
|
1289
|
+
value: _platejs_slate0.Value;
|
|
1288
1290
|
}) => void) | null;
|
|
1289
1291
|
id: string;
|
|
1290
1292
|
containerRef: React$1.RefObject<HTMLDivElement | null>;
|
|
1291
1293
|
editor: PlateEditor;
|
|
1292
1294
|
scrollRef: React$1.RefObject<HTMLDivElement | null>;
|
|
1293
|
-
}>>, plateStore:
|
|
1294
|
-
trackedEditor:
|
|
1295
|
+
}>>, plateStore: jotai_x0.StoreApi<PlateStoreState<PlateEditor>, {
|
|
1296
|
+
trackedEditor: jotai0.Atom<{
|
|
1295
1297
|
editor: any;
|
|
1296
1298
|
version: number | null;
|
|
1297
1299
|
}>;
|
|
1298
|
-
trackedSelection:
|
|
1300
|
+
trackedSelection: jotai0.Atom<{
|
|
1299
1301
|
selection: any;
|
|
1300
1302
|
version: number | null;
|
|
1301
1303
|
}>;
|
|
1302
|
-
trackedValue:
|
|
1304
|
+
trackedValue: jotai0.Atom<{
|
|
1303
1305
|
value: any;
|
|
1304
1306
|
version: number | null;
|
|
1305
1307
|
}>;
|
|
1306
|
-
}, "plate">, usePlateLocalSet: <K$1 extends "renderElement" | "decorate" | "renderLeaf" | "renderText" | "editor" | "id" | "onChange" | "onNodeChange" | "onTextChange" | "readOnly" | "
|
|
1307
|
-
composing:
|
|
1308
|
-
decorate:
|
|
1308
|
+
}, "plate">, usePlateLocalSet: <K$1 extends "renderElement" | "decorate" | "renderLeaf" | "renderText" | "editor" | "id" | "onChange" | "onNodeChange" | "onTextChange" | "readOnly" | "renderChunk" | "composing" | "isMounted" | "primary" | "versionDecorate" | "versionEditor" | "versionSelection" | "versionValue" | "onSelectionChange" | "onValueChange" | "containerRef" | "scrollRef" | "trackedEditor" | "trackedSelection" | "trackedValue">(key: K$1, options?: string | jotai_x0.UseAtomOptions) => ({
|
|
1309
|
+
composing: jotai_x0.SimpleWritableAtom<boolean | null>;
|
|
1310
|
+
decorate: jotai_x0.SimpleWritableAtom<((options: {
|
|
1309
1311
|
editor: PlateEditor;
|
|
1310
|
-
entry:
|
|
1311
|
-
}) =>
|
|
1312
|
-
isMounted:
|
|
1313
|
-
primary:
|
|
1314
|
-
readOnly:
|
|
1315
|
-
renderChunk:
|
|
1316
|
-
renderElement:
|
|
1317
|
-
renderLeaf:
|
|
1318
|
-
renderText:
|
|
1319
|
-
versionDecorate:
|
|
1320
|
-
versionEditor:
|
|
1321
|
-
versionSelection:
|
|
1322
|
-
versionValue:
|
|
1323
|
-
onChange:
|
|
1312
|
+
entry: _platejs_slate0.NodeEntry;
|
|
1313
|
+
}) => _platejs_slate0.TRange[]) | null>;
|
|
1314
|
+
isMounted: jotai_x0.SimpleWritableAtom<boolean | null>;
|
|
1315
|
+
primary: jotai_x0.SimpleWritableAtom<boolean | null>;
|
|
1316
|
+
readOnly: jotai_x0.SimpleWritableAtom<boolean | null>;
|
|
1317
|
+
renderChunk: jotai_x0.SimpleWritableAtom<RenderChunkFn | null>;
|
|
1318
|
+
renderElement: jotai_x0.SimpleWritableAtom<RenderElementFn | null>;
|
|
1319
|
+
renderLeaf: jotai_x0.SimpleWritableAtom<RenderLeafFn | null>;
|
|
1320
|
+
renderText: jotai_x0.SimpleWritableAtom<RenderTextFn | null>;
|
|
1321
|
+
versionDecorate: jotai_x0.SimpleWritableAtom<number | null>;
|
|
1322
|
+
versionEditor: jotai_x0.SimpleWritableAtom<number | null>;
|
|
1323
|
+
versionSelection: jotai_x0.SimpleWritableAtom<number | null>;
|
|
1324
|
+
versionValue: jotai_x0.SimpleWritableAtom<number | null>;
|
|
1325
|
+
onChange: jotai_x0.SimpleWritableAtom<((options: {
|
|
1324
1326
|
editor: PlateEditor;
|
|
1325
|
-
value:
|
|
1327
|
+
value: _platejs_slate0.Value;
|
|
1326
1328
|
}) => void) | null>;
|
|
1327
|
-
onNodeChange:
|
|
1329
|
+
onNodeChange: jotai_x0.SimpleWritableAtom<((options: {
|
|
1328
1330
|
editor: PlateEditor;
|
|
1329
|
-
node:
|
|
1330
|
-
operation:
|
|
1331
|
-
prevNode:
|
|
1331
|
+
node: _platejs_slate0.Descendant;
|
|
1332
|
+
operation: _platejs_slate0.NodeOperation;
|
|
1333
|
+
prevNode: _platejs_slate0.Descendant;
|
|
1332
1334
|
}) => void) | null>;
|
|
1333
|
-
onSelectionChange:
|
|
1335
|
+
onSelectionChange: jotai_x0.SimpleWritableAtom<((options: {
|
|
1334
1336
|
editor: PlateEditor;
|
|
1335
|
-
selection:
|
|
1337
|
+
selection: _platejs_slate0.TSelection;
|
|
1336
1338
|
}) => void) | null>;
|
|
1337
|
-
onTextChange:
|
|
1339
|
+
onTextChange: jotai_x0.SimpleWritableAtom<((options: {
|
|
1338
1340
|
editor: PlateEditor;
|
|
1339
|
-
node:
|
|
1340
|
-
operation:
|
|
1341
|
+
node: _platejs_slate0.Descendant;
|
|
1342
|
+
operation: _platejs_slate0.TextOperation;
|
|
1341
1343
|
prevText: string;
|
|
1342
1344
|
text: string;
|
|
1343
1345
|
}) => void) | null>;
|
|
1344
|
-
onValueChange:
|
|
1346
|
+
onValueChange: jotai_x0.SimpleWritableAtom<((options: {
|
|
1345
1347
|
editor: PlateEditor;
|
|
1346
|
-
value:
|
|
1348
|
+
value: _platejs_slate0.Value;
|
|
1347
1349
|
}) => void) | null>;
|
|
1348
|
-
id:
|
|
1349
|
-
containerRef:
|
|
1350
|
-
editor:
|
|
1351
|
-
scrollRef:
|
|
1350
|
+
id: jotai_x0.SimpleWritableAtom<string>;
|
|
1351
|
+
containerRef: jotai_x0.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
|
|
1352
|
+
editor: jotai_x0.SimpleWritableAtom<PlateEditor>;
|
|
1353
|
+
scrollRef: jotai_x0.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
|
|
1352
1354
|
} & {
|
|
1353
|
-
trackedEditor:
|
|
1355
|
+
trackedEditor: jotai0.Atom<{
|
|
1354
1356
|
editor: any;
|
|
1355
1357
|
version: number | null;
|
|
1356
1358
|
}>;
|
|
1357
|
-
trackedSelection:
|
|
1359
|
+
trackedSelection: jotai0.Atom<{
|
|
1358
1360
|
selection: any;
|
|
1359
1361
|
version: number | null;
|
|
1360
1362
|
}>;
|
|
1361
|
-
trackedValue:
|
|
1363
|
+
trackedValue: jotai0.Atom<{
|
|
1362
1364
|
value: any;
|
|
1363
1365
|
version: number | null;
|
|
1364
1366
|
}>;
|
|
1365
|
-
})[K$1] extends
|
|
1366
|
-
composing:
|
|
1367
|
-
decorate:
|
|
1367
|
+
})[K$1] extends jotai0.WritableAtom<infer _V, infer A extends unknown[], infer R> ? (...args: A) => R : never, usePlateLocalState: <K$1 extends "renderElement" | "decorate" | "renderLeaf" | "renderText" | "editor" | "id" | "onChange" | "onNodeChange" | "onTextChange" | "readOnly" | "renderChunk" | "composing" | "isMounted" | "primary" | "versionDecorate" | "versionEditor" | "versionSelection" | "versionValue" | "onSelectionChange" | "onValueChange" | "containerRef" | "scrollRef" | "trackedEditor" | "trackedSelection" | "trackedValue">(key: K$1, options?: string | jotai_x0.UseAtomOptions) => ({
|
|
1368
|
+
composing: jotai_x0.SimpleWritableAtom<boolean | null>;
|
|
1369
|
+
decorate: jotai_x0.SimpleWritableAtom<((options: {
|
|
1368
1370
|
editor: PlateEditor;
|
|
1369
|
-
entry:
|
|
1370
|
-
}) =>
|
|
1371
|
-
isMounted:
|
|
1372
|
-
primary:
|
|
1373
|
-
readOnly:
|
|
1374
|
-
renderChunk:
|
|
1375
|
-
renderElement:
|
|
1376
|
-
renderLeaf:
|
|
1377
|
-
renderText:
|
|
1378
|
-
versionDecorate:
|
|
1379
|
-
versionEditor:
|
|
1380
|
-
versionSelection:
|
|
1381
|
-
versionValue:
|
|
1382
|
-
onChange:
|
|
1371
|
+
entry: _platejs_slate0.NodeEntry;
|
|
1372
|
+
}) => _platejs_slate0.TRange[]) | null>;
|
|
1373
|
+
isMounted: jotai_x0.SimpleWritableAtom<boolean | null>;
|
|
1374
|
+
primary: jotai_x0.SimpleWritableAtom<boolean | null>;
|
|
1375
|
+
readOnly: jotai_x0.SimpleWritableAtom<boolean | null>;
|
|
1376
|
+
renderChunk: jotai_x0.SimpleWritableAtom<RenderChunkFn | null>;
|
|
1377
|
+
renderElement: jotai_x0.SimpleWritableAtom<RenderElementFn | null>;
|
|
1378
|
+
renderLeaf: jotai_x0.SimpleWritableAtom<RenderLeafFn | null>;
|
|
1379
|
+
renderText: jotai_x0.SimpleWritableAtom<RenderTextFn | null>;
|
|
1380
|
+
versionDecorate: jotai_x0.SimpleWritableAtom<number | null>;
|
|
1381
|
+
versionEditor: jotai_x0.SimpleWritableAtom<number | null>;
|
|
1382
|
+
versionSelection: jotai_x0.SimpleWritableAtom<number | null>;
|
|
1383
|
+
versionValue: jotai_x0.SimpleWritableAtom<number | null>;
|
|
1384
|
+
onChange: jotai_x0.SimpleWritableAtom<((options: {
|
|
1383
1385
|
editor: PlateEditor;
|
|
1384
|
-
value:
|
|
1386
|
+
value: _platejs_slate0.Value;
|
|
1385
1387
|
}) => void) | null>;
|
|
1386
|
-
onNodeChange:
|
|
1388
|
+
onNodeChange: jotai_x0.SimpleWritableAtom<((options: {
|
|
1387
1389
|
editor: PlateEditor;
|
|
1388
|
-
node:
|
|
1389
|
-
operation:
|
|
1390
|
-
prevNode:
|
|
1390
|
+
node: _platejs_slate0.Descendant;
|
|
1391
|
+
operation: _platejs_slate0.NodeOperation;
|
|
1392
|
+
prevNode: _platejs_slate0.Descendant;
|
|
1391
1393
|
}) => void) | null>;
|
|
1392
|
-
onSelectionChange:
|
|
1394
|
+
onSelectionChange: jotai_x0.SimpleWritableAtom<((options: {
|
|
1393
1395
|
editor: PlateEditor;
|
|
1394
|
-
selection:
|
|
1396
|
+
selection: _platejs_slate0.TSelection;
|
|
1395
1397
|
}) => void) | null>;
|
|
1396
|
-
onTextChange:
|
|
1398
|
+
onTextChange: jotai_x0.SimpleWritableAtom<((options: {
|
|
1397
1399
|
editor: PlateEditor;
|
|
1398
|
-
node:
|
|
1399
|
-
operation:
|
|
1400
|
+
node: _platejs_slate0.Descendant;
|
|
1401
|
+
operation: _platejs_slate0.TextOperation;
|
|
1400
1402
|
prevText: string;
|
|
1401
1403
|
text: string;
|
|
1402
1404
|
}) => void) | null>;
|
|
1403
|
-
onValueChange:
|
|
1405
|
+
onValueChange: jotai_x0.SimpleWritableAtom<((options: {
|
|
1404
1406
|
editor: PlateEditor;
|
|
1405
|
-
value:
|
|
1407
|
+
value: _platejs_slate0.Value;
|
|
1406
1408
|
}) => void) | null>;
|
|
1407
|
-
id:
|
|
1408
|
-
containerRef:
|
|
1409
|
-
editor:
|
|
1410
|
-
scrollRef:
|
|
1409
|
+
id: jotai_x0.SimpleWritableAtom<string>;
|
|
1410
|
+
containerRef: jotai_x0.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
|
|
1411
|
+
editor: jotai_x0.SimpleWritableAtom<PlateEditor>;
|
|
1412
|
+
scrollRef: jotai_x0.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
|
|
1411
1413
|
} & {
|
|
1412
|
-
trackedEditor:
|
|
1414
|
+
trackedEditor: jotai0.Atom<{
|
|
1413
1415
|
editor: any;
|
|
1414
1416
|
version: number | null;
|
|
1415
1417
|
}>;
|
|
1416
|
-
trackedSelection:
|
|
1418
|
+
trackedSelection: jotai0.Atom<{
|
|
1417
1419
|
selection: any;
|
|
1418
1420
|
version: number | null;
|
|
1419
1421
|
}>;
|
|
1420
|
-
trackedValue:
|
|
1422
|
+
trackedValue: jotai0.Atom<{
|
|
1421
1423
|
value: any;
|
|
1422
1424
|
version: number | null;
|
|
1423
1425
|
}>;
|
|
1424
|
-
})[K$1] extends
|
|
1425
|
-
trackedEditor:
|
|
1426
|
+
})[K$1] extends jotai0.WritableAtom<infer V, infer A extends unknown[], infer R> ? [V, (...args: A) => R] : never, usePlateLocalStore: jotai_x0.UseStoreApi<PlateStoreState<PlateEditor>, {
|
|
1427
|
+
trackedEditor: jotai0.Atom<{
|
|
1426
1428
|
editor: any;
|
|
1427
1429
|
version: number | null;
|
|
1428
1430
|
}>;
|
|
1429
|
-
trackedSelection:
|
|
1431
|
+
trackedSelection: jotai0.Atom<{
|
|
1430
1432
|
selection: any;
|
|
1431
1433
|
version: number | null;
|
|
1432
1434
|
}>;
|
|
1433
|
-
trackedValue:
|
|
1435
|
+
trackedValue: jotai0.Atom<{
|
|
1434
1436
|
value: any;
|
|
1435
1437
|
version: number | null;
|
|
1436
1438
|
}>;
|
|
1437
|
-
}>, usePlateLocalValue: <K$1 extends "renderElement" | "decorate" | "renderLeaf" | "renderText" | "editor" | "id" | "onChange" | "onNodeChange" | "onTextChange" | "readOnly" | "
|
|
1438
|
-
composing:
|
|
1439
|
-
decorate:
|
|
1439
|
+
}>, usePlateLocalValue: <K$1 extends "renderElement" | "decorate" | "renderLeaf" | "renderText" | "editor" | "id" | "onChange" | "onNodeChange" | "onTextChange" | "readOnly" | "renderChunk" | "composing" | "isMounted" | "primary" | "versionDecorate" | "versionEditor" | "versionSelection" | "versionValue" | "onSelectionChange" | "onValueChange" | "containerRef" | "scrollRef" | "trackedEditor" | "trackedSelection" | "trackedValue", S = (({
|
|
1440
|
+
composing: jotai_x0.SimpleWritableAtom<boolean | null>;
|
|
1441
|
+
decorate: jotai_x0.SimpleWritableAtom<((options: {
|
|
1440
1442
|
editor: PlateEditor;
|
|
1441
|
-
entry:
|
|
1442
|
-
}) =>
|
|
1443
|
-
isMounted:
|
|
1444
|
-
primary:
|
|
1445
|
-
readOnly:
|
|
1446
|
-
renderChunk:
|
|
1447
|
-
renderElement:
|
|
1448
|
-
renderLeaf:
|
|
1449
|
-
renderText:
|
|
1450
|
-
versionDecorate:
|
|
1451
|
-
versionEditor:
|
|
1452
|
-
versionSelection:
|
|
1453
|
-
versionValue:
|
|
1454
|
-
onChange:
|
|
1443
|
+
entry: _platejs_slate0.NodeEntry;
|
|
1444
|
+
}) => _platejs_slate0.TRange[]) | null>;
|
|
1445
|
+
isMounted: jotai_x0.SimpleWritableAtom<boolean | null>;
|
|
1446
|
+
primary: jotai_x0.SimpleWritableAtom<boolean | null>;
|
|
1447
|
+
readOnly: jotai_x0.SimpleWritableAtom<boolean | null>;
|
|
1448
|
+
renderChunk: jotai_x0.SimpleWritableAtom<RenderChunkFn | null>;
|
|
1449
|
+
renderElement: jotai_x0.SimpleWritableAtom<RenderElementFn | null>;
|
|
1450
|
+
renderLeaf: jotai_x0.SimpleWritableAtom<RenderLeafFn | null>;
|
|
1451
|
+
renderText: jotai_x0.SimpleWritableAtom<RenderTextFn | null>;
|
|
1452
|
+
versionDecorate: jotai_x0.SimpleWritableAtom<number | null>;
|
|
1453
|
+
versionEditor: jotai_x0.SimpleWritableAtom<number | null>;
|
|
1454
|
+
versionSelection: jotai_x0.SimpleWritableAtom<number | null>;
|
|
1455
|
+
versionValue: jotai_x0.SimpleWritableAtom<number | null>;
|
|
1456
|
+
onChange: jotai_x0.SimpleWritableAtom<((options: {
|
|
1455
1457
|
editor: PlateEditor;
|
|
1456
|
-
value:
|
|
1458
|
+
value: _platejs_slate0.Value;
|
|
1457
1459
|
}) => void) | null>;
|
|
1458
|
-
onNodeChange:
|
|
1460
|
+
onNodeChange: jotai_x0.SimpleWritableAtom<((options: {
|
|
1459
1461
|
editor: PlateEditor;
|
|
1460
|
-
node:
|
|
1461
|
-
operation:
|
|
1462
|
-
prevNode:
|
|
1462
|
+
node: _platejs_slate0.Descendant;
|
|
1463
|
+
operation: _platejs_slate0.NodeOperation;
|
|
1464
|
+
prevNode: _platejs_slate0.Descendant;
|
|
1463
1465
|
}) => void) | null>;
|
|
1464
|
-
onSelectionChange:
|
|
1466
|
+
onSelectionChange: jotai_x0.SimpleWritableAtom<((options: {
|
|
1465
1467
|
editor: PlateEditor;
|
|
1466
|
-
selection:
|
|
1468
|
+
selection: _platejs_slate0.TSelection;
|
|
1467
1469
|
}) => void) | null>;
|
|
1468
|
-
onTextChange:
|
|
1470
|
+
onTextChange: jotai_x0.SimpleWritableAtom<((options: {
|
|
1469
1471
|
editor: PlateEditor;
|
|
1470
|
-
node:
|
|
1471
|
-
operation:
|
|
1472
|
+
node: _platejs_slate0.Descendant;
|
|
1473
|
+
operation: _platejs_slate0.TextOperation;
|
|
1472
1474
|
prevText: string;
|
|
1473
1475
|
text: string;
|
|
1474
1476
|
}) => void) | null>;
|
|
1475
|
-
onValueChange:
|
|
1477
|
+
onValueChange: jotai_x0.SimpleWritableAtom<((options: {
|
|
1476
1478
|
editor: PlateEditor;
|
|
1477
|
-
value:
|
|
1479
|
+
value: _platejs_slate0.Value;
|
|
1478
1480
|
}) => void) | null>;
|
|
1479
|
-
id:
|
|
1480
|
-
containerRef:
|
|
1481
|
-
editor:
|
|
1482
|
-
scrollRef:
|
|
1481
|
+
id: jotai_x0.SimpleWritableAtom<string>;
|
|
1482
|
+
containerRef: jotai_x0.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
|
|
1483
|
+
editor: jotai_x0.SimpleWritableAtom<PlateEditor>;
|
|
1484
|
+
scrollRef: jotai_x0.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
|
|
1483
1485
|
} & {
|
|
1484
|
-
trackedEditor:
|
|
1486
|
+
trackedEditor: jotai0.Atom<{
|
|
1485
1487
|
editor: any;
|
|
1486
1488
|
version: number | null;
|
|
1487
1489
|
}>;
|
|
1488
|
-
trackedSelection:
|
|
1490
|
+
trackedSelection: jotai0.Atom<{
|
|
1489
1491
|
selection: any;
|
|
1490
1492
|
version: number | null;
|
|
1491
1493
|
}>;
|
|
1492
|
-
trackedValue:
|
|
1494
|
+
trackedValue: jotai0.Atom<{
|
|
1493
1495
|
value: any;
|
|
1494
1496
|
version: number | null;
|
|
1495
1497
|
}>;
|
|
1496
|
-
})[K$1] extends
|
|
1498
|
+
})[K$1] extends jotai0.Atom<infer V> ? V : never)>(key: K$1, options?: ({
|
|
1497
1499
|
selector?: ((v: ({
|
|
1498
|
-
composing:
|
|
1499
|
-
decorate:
|
|
1500
|
+
composing: jotai_x0.SimpleWritableAtom<boolean | null>;
|
|
1501
|
+
decorate: jotai_x0.SimpleWritableAtom<((options: {
|
|
1500
1502
|
editor: PlateEditor;
|
|
1501
|
-
entry:
|
|
1502
|
-
}) =>
|
|
1503
|
-
isMounted:
|
|
1504
|
-
primary:
|
|
1505
|
-
readOnly:
|
|
1506
|
-
renderChunk:
|
|
1507
|
-
renderElement:
|
|
1508
|
-
renderLeaf:
|
|
1509
|
-
renderText:
|
|
1510
|
-
versionDecorate:
|
|
1511
|
-
versionEditor:
|
|
1512
|
-
versionSelection:
|
|
1513
|
-
versionValue:
|
|
1514
|
-
onChange:
|
|
1503
|
+
entry: _platejs_slate0.NodeEntry;
|
|
1504
|
+
}) => _platejs_slate0.TRange[]) | null>;
|
|
1505
|
+
isMounted: jotai_x0.SimpleWritableAtom<boolean | null>;
|
|
1506
|
+
primary: jotai_x0.SimpleWritableAtom<boolean | null>;
|
|
1507
|
+
readOnly: jotai_x0.SimpleWritableAtom<boolean | null>;
|
|
1508
|
+
renderChunk: jotai_x0.SimpleWritableAtom<RenderChunkFn | null>;
|
|
1509
|
+
renderElement: jotai_x0.SimpleWritableAtom<RenderElementFn | null>;
|
|
1510
|
+
renderLeaf: jotai_x0.SimpleWritableAtom<RenderLeafFn | null>;
|
|
1511
|
+
renderText: jotai_x0.SimpleWritableAtom<RenderTextFn | null>;
|
|
1512
|
+
versionDecorate: jotai_x0.SimpleWritableAtom<number | null>;
|
|
1513
|
+
versionEditor: jotai_x0.SimpleWritableAtom<number | null>;
|
|
1514
|
+
versionSelection: jotai_x0.SimpleWritableAtom<number | null>;
|
|
1515
|
+
versionValue: jotai_x0.SimpleWritableAtom<number | null>;
|
|
1516
|
+
onChange: jotai_x0.SimpleWritableAtom<((options: {
|
|
1515
1517
|
editor: PlateEditor;
|
|
1516
|
-
value:
|
|
1518
|
+
value: _platejs_slate0.Value;
|
|
1517
1519
|
}) => void) | null>;
|
|
1518
|
-
onNodeChange:
|
|
1520
|
+
onNodeChange: jotai_x0.SimpleWritableAtom<((options: {
|
|
1519
1521
|
editor: PlateEditor;
|
|
1520
|
-
node:
|
|
1521
|
-
operation:
|
|
1522
|
-
prevNode:
|
|
1522
|
+
node: _platejs_slate0.Descendant;
|
|
1523
|
+
operation: _platejs_slate0.NodeOperation;
|
|
1524
|
+
prevNode: _platejs_slate0.Descendant;
|
|
1523
1525
|
}) => void) | null>;
|
|
1524
|
-
onSelectionChange:
|
|
1526
|
+
onSelectionChange: jotai_x0.SimpleWritableAtom<((options: {
|
|
1525
1527
|
editor: PlateEditor;
|
|
1526
|
-
selection:
|
|
1528
|
+
selection: _platejs_slate0.TSelection;
|
|
1527
1529
|
}) => void) | null>;
|
|
1528
|
-
onTextChange:
|
|
1530
|
+
onTextChange: jotai_x0.SimpleWritableAtom<((options: {
|
|
1529
1531
|
editor: PlateEditor;
|
|
1530
|
-
node:
|
|
1531
|
-
operation:
|
|
1532
|
+
node: _platejs_slate0.Descendant;
|
|
1533
|
+
operation: _platejs_slate0.TextOperation;
|
|
1532
1534
|
prevText: string;
|
|
1533
1535
|
text: string;
|
|
1534
1536
|
}) => void) | null>;
|
|
1535
|
-
onValueChange:
|
|
1537
|
+
onValueChange: jotai_x0.SimpleWritableAtom<((options: {
|
|
1536
1538
|
editor: PlateEditor;
|
|
1537
|
-
value:
|
|
1539
|
+
value: _platejs_slate0.Value;
|
|
1538
1540
|
}) => void) | null>;
|
|
1539
|
-
id:
|
|
1540
|
-
containerRef:
|
|
1541
|
-
editor:
|
|
1542
|
-
scrollRef:
|
|
1541
|
+
id: jotai_x0.SimpleWritableAtom<string>;
|
|
1542
|
+
containerRef: jotai_x0.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
|
|
1543
|
+
editor: jotai_x0.SimpleWritableAtom<PlateEditor>;
|
|
1544
|
+
scrollRef: jotai_x0.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
|
|
1543
1545
|
} & {
|
|
1544
|
-
trackedEditor:
|
|
1546
|
+
trackedEditor: jotai0.Atom<{
|
|
1545
1547
|
editor: any;
|
|
1546
1548
|
version: number | null;
|
|
1547
1549
|
}>;
|
|
1548
|
-
trackedSelection:
|
|
1550
|
+
trackedSelection: jotai0.Atom<{
|
|
1549
1551
|
selection: any;
|
|
1550
1552
|
version: number | null;
|
|
1551
1553
|
}>;
|
|
1552
|
-
trackedValue:
|
|
1554
|
+
trackedValue: jotai0.Atom<{
|
|
1553
1555
|
value: any;
|
|
1554
1556
|
version: number | null;
|
|
1555
1557
|
}>;
|
|
1556
|
-
})[K$1] extends
|
|
1558
|
+
})[K$1] extends jotai0.Atom<infer V_1> ? V_1 : never, prevSelectorOutput?: S | undefined) => S) | undefined;
|
|
1557
1559
|
equalityFn?: ((prev: S, next: S) => boolean) | undefined;
|
|
1558
|
-
} &
|
|
1559
|
-
declare const usePlateStore: (id?: string) =>
|
|
1560
|
-
trackedEditor:
|
|
1560
|
+
} & jotai_x0.UseAtomOptions) | undefined, deps?: unknown[]) => S;
|
|
1561
|
+
declare const usePlateStore: (id?: string) => jotai_x0.ReturnOfUseStoreApi<PlateStoreState<PlateEditor>, {
|
|
1562
|
+
trackedEditor: jotai0.Atom<{
|
|
1561
1563
|
editor: any;
|
|
1562
1564
|
version: number | null;
|
|
1563
1565
|
}>;
|
|
1564
|
-
trackedSelection:
|
|
1566
|
+
trackedSelection: jotai0.Atom<{
|
|
1565
1567
|
selection: any;
|
|
1566
1568
|
version: number | null;
|
|
1567
1569
|
}>;
|
|
1568
|
-
trackedValue:
|
|
1570
|
+
trackedValue: jotai0.Atom<{
|
|
1569
1571
|
value: any;
|
|
1570
1572
|
version: number | null;
|
|
1571
1573
|
}>;
|
|
@@ -1662,11 +1664,11 @@ declare function useEditorPluginOptions<C extends AnyPluginConfig, U>(editor: Pl
|
|
|
1662
1664
|
}): U;
|
|
1663
1665
|
//#endregion
|
|
1664
1666
|
//#region src/react/stores/plate-controller/plateControllerStore.d.ts
|
|
1665
|
-
declare const PlateController: React$1.FC<
|
|
1667
|
+
declare const PlateController: React$1.FC<jotai_x0.ProviderProps<{
|
|
1666
1668
|
activeId: string | null;
|
|
1667
1669
|
editorStores: Record<string, ({
|
|
1668
1670
|
get: <Value$1>(atom: Atom<Value$1>) => Value$1;
|
|
1669
|
-
set: <Value$1, Args extends unknown[], Result>(atom:
|
|
1671
|
+
set: <Value$1, Args extends unknown[], Result>(atom: jotai0.WritableAtom<Value$1, Args, Result>, ...args: Args) => Result;
|
|
1670
1672
|
sub: (atom: Atom<unknown>, listener: () => void) => () => void;
|
|
1671
1673
|
} & Partial<{
|
|
1672
1674
|
dev_subscribe_store: (l: (action: {
|
|
@@ -1704,13 +1706,13 @@ declare const PlateController: React$1.FC<jotai_x2.ProviderProps<{
|
|
|
1704
1706
|
dev_restore_atoms: (values: Iterable<readonly [Atom<unknown>, unknown]>) => void;
|
|
1705
1707
|
}>) | null>;
|
|
1706
1708
|
primaryEditorIds: string[];
|
|
1707
|
-
}>>, plateControllerStore:
|
|
1708
|
-
activeId:
|
|
1709
|
+
}>>, plateControllerStore: jotai_x0.StoreApi<{
|
|
1710
|
+
activeId: jotai0.PrimitiveAtom<string | null> & {
|
|
1709
1711
|
init: string | null;
|
|
1710
1712
|
};
|
|
1711
|
-
editorStores:
|
|
1713
|
+
editorStores: jotai0.PrimitiveAtom<Record<string, ({
|
|
1712
1714
|
get: <Value$1>(atom: Atom<Value$1>) => Value$1;
|
|
1713
|
-
set: <Value$1, Args extends unknown[], Result>(atom:
|
|
1715
|
+
set: <Value$1, Args extends unknown[], Result>(atom: jotai0.WritableAtom<Value$1, Args, Result>, ...args: Args) => Result;
|
|
1714
1716
|
sub: (atom: Atom<unknown>, listener: () => void) => () => void;
|
|
1715
1717
|
} & Partial<{
|
|
1716
1718
|
dev_subscribe_store: (l: (action: {
|
|
@@ -1749,7 +1751,7 @@ declare const PlateController: React$1.FC<jotai_x2.ProviderProps<{
|
|
|
1749
1751
|
}>) | null>> & {
|
|
1750
1752
|
init: Record<string, ({
|
|
1751
1753
|
get: <Value$1>(atom: Atom<Value$1>) => Value$1;
|
|
1752
|
-
set: <Value$1, Args extends unknown[], Result>(atom:
|
|
1754
|
+
set: <Value$1, Args extends unknown[], Result>(atom: jotai0.WritableAtom<Value$1, Args, Result>, ...args: Args) => Result;
|
|
1753
1755
|
sub: (atom: Atom<unknown>, listener: () => void) => () => void;
|
|
1754
1756
|
} & Partial<{
|
|
1755
1757
|
dev_subscribe_store: (l: (action: {
|
|
@@ -1787,16 +1789,16 @@ declare const PlateController: React$1.FC<jotai_x2.ProviderProps<{
|
|
|
1787
1789
|
dev_restore_atoms: (values: Iterable<readonly [Atom<unknown>, unknown]>) => void;
|
|
1788
1790
|
}>) | null>;
|
|
1789
1791
|
};
|
|
1790
|
-
primaryEditorIds:
|
|
1792
|
+
primaryEditorIds: jotai0.PrimitiveAtom<string[]> & {
|
|
1791
1793
|
init: string[];
|
|
1792
1794
|
};
|
|
1793
|
-
}, object, "plateController">, _usePlateControllerStore:
|
|
1794
|
-
activeId:
|
|
1795
|
+
}, object, "plateController">, _usePlateControllerStore: jotai_x0.UseStoreApi<{
|
|
1796
|
+
activeId: jotai0.PrimitiveAtom<string | null> & {
|
|
1795
1797
|
init: string | null;
|
|
1796
1798
|
};
|
|
1797
|
-
editorStores:
|
|
1799
|
+
editorStores: jotai0.PrimitiveAtom<Record<string, ({
|
|
1798
1800
|
get: <Value$1>(atom: Atom<Value$1>) => Value$1;
|
|
1799
|
-
set: <Value$1, Args extends unknown[], Result>(atom:
|
|
1801
|
+
set: <Value$1, Args extends unknown[], Result>(atom: jotai0.WritableAtom<Value$1, Args, Result>, ...args: Args) => Result;
|
|
1800
1802
|
sub: (atom: Atom<unknown>, listener: () => void) => () => void;
|
|
1801
1803
|
} & Partial<{
|
|
1802
1804
|
dev_subscribe_store: (l: (action: {
|
|
@@ -1835,7 +1837,7 @@ declare const PlateController: React$1.FC<jotai_x2.ProviderProps<{
|
|
|
1835
1837
|
}>) | null>> & {
|
|
1836
1838
|
init: Record<string, ({
|
|
1837
1839
|
get: <Value$1>(atom: Atom<Value$1>) => Value$1;
|
|
1838
|
-
set: <Value$1, Args extends unknown[], Result>(atom:
|
|
1840
|
+
set: <Value$1, Args extends unknown[], Result>(atom: jotai0.WritableAtom<Value$1, Args, Result>, ...args: Args) => Result;
|
|
1839
1841
|
sub: (atom: Atom<unknown>, listener: () => void) => () => void;
|
|
1840
1842
|
} & Partial<{
|
|
1841
1843
|
dev_subscribe_store: (l: (action: {
|
|
@@ -1873,7 +1875,7 @@ declare const PlateController: React$1.FC<jotai_x2.ProviderProps<{
|
|
|
1873
1875
|
dev_restore_atoms: (values: Iterable<readonly [Atom<unknown>, unknown]>) => void;
|
|
1874
1876
|
}>) | null>;
|
|
1875
1877
|
};
|
|
1876
|
-
primaryEditorIds:
|
|
1878
|
+
primaryEditorIds: jotai0.PrimitiveAtom<string[]> & {
|
|
1877
1879
|
init: string[];
|
|
1878
1880
|
};
|
|
1879
1881
|
}, object>;
|
|
@@ -1992,7 +1994,7 @@ declare const useEditableProps: ({
|
|
|
1992
1994
|
* if another node is updated in a way that affects this node's path, this hook
|
|
1993
1995
|
* will not return the new path.
|
|
1994
1996
|
*/
|
|
1995
|
-
declare const useNodePath: (node: TNode) =>
|
|
1997
|
+
declare const useNodePath: (node: TNode) => _platejs_slate0.Path | undefined;
|
|
1996
1998
|
//#endregion
|
|
1997
1999
|
//#region src/react/hooks/useSlateProps.d.ts
|
|
1998
2000
|
type SlateComponentProps = Omit<React$1.ComponentProps<typeof Slate>, 'children'>;
|
|
@@ -2007,7 +2009,7 @@ declare const useSlateProps: ({
|
|
|
2007
2009
|
}) => PlateSlateProps;
|
|
2008
2010
|
//#endregion
|
|
2009
2011
|
//#region src/react/utils/createPlateFallbackEditor.d.ts
|
|
2010
|
-
declare const createPlateFallbackEditor: (options?: CreatePlateEditorOptions) => TPlateEditor<
|
|
2012
|
+
declare const createPlateFallbackEditor: (options?: CreatePlateEditorOptions) => TPlateEditor<_platejs_slate0.Value, PlateCorePlugin>;
|
|
2011
2013
|
//#endregion
|
|
2012
2014
|
//#region src/react/utils/dom-attributes.d.ts
|
|
2013
2015
|
declare const DOM_HANDLERS: (keyof DOMHandlers)[];
|