@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.
@@ -1,13 +1,13 @@
1
- import { Ct as NodeComponents, Et as PluginConfig, F as RenderLeafProps, Fi as ExtendEditor$1, I as RenderElementFn, J as BaseEditor, Jr as NavigationFeedbackConfig, L as RenderElementProps, M as RenderTextFn, N as RenderTextProps, Na as ResolvedInputRulesMeta, Ot as WithAnyKey, P as RenderLeafFn, Q as SlateEditor, R as RenderChunkFn, St as NodeComponent, Tt as ParserOptions, U as BaseWithSlateOptions, Y as InferPlugins, Za as createStaticEditor, _t as InferOptions, at as BasePluginContext, ba as InputRulesDefinition, bt as MatchRules, ci as InitOptions, ct as BaseTransformOptions, di as AutoScrollOperationsMap, et as AnyPluginConfig, gt as InferKey, hi as WithAutoScrollOptions, hr as CorePluginTransforms, ht as InferApi, ii as LiftBlockOptions, it as BasePlugin, j as EditableProps, ji as AnySlatePlugin, jo as HandlerReturnType, kt as WithRequiredKey, mi as ScrollMode, mr as CorePluginApi, mt as GetInjectNodePropsReturnType, na as SlatePluginConfig, nt as BaseHtmlDeserializer, oi as InsertExitBreakOptions, pi as DomConfig, pr as CorePlugin, pt as GetInjectNodePropsOptions, qr as NavigationFeedbackActiveTarget, ra as SlatePluginContext, rt as BaseInjectProps, st as BaseSerializer, ta as SlatePlugin, tt as BaseDeserializer, vt as InferSelectors, xo as PlateStaticProps, ya as InputRulesConfig, yt as InferTransforms, z as RenderChunkProps } from "../index-BDSzA1zP";
2
- import * as _platejs_slate4 from "@platejs/slate";
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 jotai10 from "jotai";
8
+ import * as jotai0 from "jotai";
9
9
  import { Atom, atom } from "jotai";
10
- import * as jotai_x2 from "jotai-x";
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: _platejs_slate4.Descendant;
21
- operation: _platejs_slate4.NodeOperation;
22
- prevNode: _platejs_slate4.Descendant;
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: _platejs_slate4.Descendant;
27
- operation: _platejs_slate4.TextOperation;
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: _platejs_slate4.ResetOptions | undefined) => void;
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?: _platejs_slate4.Path;
40
+ at?: _platejs_slate0.Path;
40
41
  } | undefined) => true | undefined) & ((args_0?: {
41
- at?: _platejs_slate4.Path;
42
+ at?: _platejs_slate0.Path;
42
43
  } | undefined) => true | undefined);
43
- setValue: ((value?: string | _platejs_slate4.Value | undefined) => void) & ((value?: string | _platejs_slate4.Value | undefined) => void);
44
- apply: <N$1 extends _platejs_slate4.TElement | _platejs_slate4.TText>(operation: _platejs_slate4.Operation<N$1>) => void;
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?: _platejs_slate4.ScrollIntoViewOptions;
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: _platejs_slate4.Descendant;
822
- operation: _platejs_slate4.NodeOperation;
823
- prevNode: _platejs_slate4.Descendant;
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: _platejs_slate4.Descendant;
828
- operation: _platejs_slate4.TextOperation;
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: _platejs_slate4.ResetOptions | undefined) => void;
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?: _platejs_slate4.Path;
842
+ at?: _platejs_slate0.Path;
841
843
  } | undefined) => true | undefined) & ((args_0?: {
842
- at?: _platejs_slate4.Path;
844
+ at?: _platejs_slate0.Path;
843
845
  } | undefined) => true | undefined);
844
- setValue: ((value?: string | _platejs_slate4.Value | undefined) => void) & ((value?: string | _platejs_slate4.Value | undefined) => void);
845
- apply: <N$1 extends _platejs_slate4.TElement | _platejs_slate4.TText>(operation: _platejs_slate4.Operation<N$1>) => void;
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?: _platejs_slate4.ScrollIntoViewOptions;
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" | "type" | "getOption" | "tf" | "setOptions" | "getOptions" | "setOption" | "plugin">;
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: jotai_x2.StoreApi<ElementStoreState, object, "element">;
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) => jotai_x2.ReturnOfUseStoreApi<ElementStoreState, object>;
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>>) => jotai_x2.AtomStoreApi<PlateStoreState<E>, {
1234
- trackedEditor: jotai10.Atom<{
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: jotai10.Atom<{
1240
+ trackedSelection: jotai0.Atom<{
1239
1241
  selection: any;
1240
1242
  version: number | null;
1241
1243
  }>;
1242
- trackedValue: jotai10.Atom<{
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<jotai_x2.ProviderProps<{
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: _platejs_slate4.NodeEntry;
1252
- }) => _platejs_slate4.TRange[]) | null;
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: _platejs_slate4.Value;
1268
+ value: _platejs_slate0.Value;
1267
1269
  }) => void) | null;
1268
1270
  onNodeChange: ((options: {
1269
1271
  editor: PlateEditor;
1270
- node: _platejs_slate4.Descendant;
1271
- operation: _platejs_slate4.NodeOperation;
1272
- prevNode: _platejs_slate4.Descendant;
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: _platejs_slate4.TSelection;
1278
+ selection: _platejs_slate0.TSelection;
1277
1279
  }) => void) | null;
1278
1280
  onTextChange: ((options: {
1279
1281
  editor: PlateEditor;
1280
- node: _platejs_slate4.Descendant;
1281
- operation: _platejs_slate4.TextOperation;
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: _platejs_slate4.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: jotai_x2.StoreApi<PlateStoreState<PlateEditor>, {
1294
- trackedEditor: jotai10.Atom<{
1295
+ }>>, plateStore: jotai_x0.StoreApi<PlateStoreState<PlateEditor>, {
1296
+ trackedEditor: jotai0.Atom<{
1295
1297
  editor: any;
1296
1298
  version: number | null;
1297
1299
  }>;
1298
- trackedSelection: jotai10.Atom<{
1300
+ trackedSelection: jotai0.Atom<{
1299
1301
  selection: any;
1300
1302
  version: number | null;
1301
1303
  }>;
1302
- trackedValue: jotai10.Atom<{
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" | "composing" | "isMounted" | "primary" | "renderChunk" | "versionDecorate" | "versionEditor" | "versionSelection" | "versionValue" | "onSelectionChange" | "onValueChange" | "containerRef" | "scrollRef" | "trackedEditor" | "trackedSelection" | "trackedValue">(key: K$1, options?: string | jotai_x2.UseAtomOptions) => ({
1307
- composing: jotai_x2.SimpleWritableAtom<boolean | null>;
1308
- decorate: jotai_x2.SimpleWritableAtom<((options: {
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: _platejs_slate4.NodeEntry;
1311
- }) => _platejs_slate4.TRange[]) | null>;
1312
- isMounted: jotai_x2.SimpleWritableAtom<boolean | null>;
1313
- primary: jotai_x2.SimpleWritableAtom<boolean | null>;
1314
- readOnly: jotai_x2.SimpleWritableAtom<boolean | null>;
1315
- renderChunk: jotai_x2.SimpleWritableAtom<RenderChunkFn | null>;
1316
- renderElement: jotai_x2.SimpleWritableAtom<RenderElementFn | null>;
1317
- renderLeaf: jotai_x2.SimpleWritableAtom<RenderLeafFn | null>;
1318
- renderText: jotai_x2.SimpleWritableAtom<RenderTextFn | null>;
1319
- versionDecorate: jotai_x2.SimpleWritableAtom<number | null>;
1320
- versionEditor: jotai_x2.SimpleWritableAtom<number | null>;
1321
- versionSelection: jotai_x2.SimpleWritableAtom<number | null>;
1322
- versionValue: jotai_x2.SimpleWritableAtom<number | null>;
1323
- onChange: jotai_x2.SimpleWritableAtom<((options: {
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: _platejs_slate4.Value;
1327
+ value: _platejs_slate0.Value;
1326
1328
  }) => void) | null>;
1327
- onNodeChange: jotai_x2.SimpleWritableAtom<((options: {
1329
+ onNodeChange: jotai_x0.SimpleWritableAtom<((options: {
1328
1330
  editor: PlateEditor;
1329
- node: _platejs_slate4.Descendant;
1330
- operation: _platejs_slate4.NodeOperation;
1331
- prevNode: _platejs_slate4.Descendant;
1331
+ node: _platejs_slate0.Descendant;
1332
+ operation: _platejs_slate0.NodeOperation;
1333
+ prevNode: _platejs_slate0.Descendant;
1332
1334
  }) => void) | null>;
1333
- onSelectionChange: jotai_x2.SimpleWritableAtom<((options: {
1335
+ onSelectionChange: jotai_x0.SimpleWritableAtom<((options: {
1334
1336
  editor: PlateEditor;
1335
- selection: _platejs_slate4.TSelection;
1337
+ selection: _platejs_slate0.TSelection;
1336
1338
  }) => void) | null>;
1337
- onTextChange: jotai_x2.SimpleWritableAtom<((options: {
1339
+ onTextChange: jotai_x0.SimpleWritableAtom<((options: {
1338
1340
  editor: PlateEditor;
1339
- node: _platejs_slate4.Descendant;
1340
- operation: _platejs_slate4.TextOperation;
1341
+ node: _platejs_slate0.Descendant;
1342
+ operation: _platejs_slate0.TextOperation;
1341
1343
  prevText: string;
1342
1344
  text: string;
1343
1345
  }) => void) | null>;
1344
- onValueChange: jotai_x2.SimpleWritableAtom<((options: {
1346
+ onValueChange: jotai_x0.SimpleWritableAtom<((options: {
1345
1347
  editor: PlateEditor;
1346
- value: _platejs_slate4.Value;
1348
+ value: _platejs_slate0.Value;
1347
1349
  }) => void) | null>;
1348
- id: jotai_x2.SimpleWritableAtom<string>;
1349
- containerRef: jotai_x2.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
1350
- editor: jotai_x2.SimpleWritableAtom<PlateEditor>;
1351
- scrollRef: jotai_x2.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
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: jotai10.Atom<{
1355
+ trackedEditor: jotai0.Atom<{
1354
1356
  editor: any;
1355
1357
  version: number | null;
1356
1358
  }>;
1357
- trackedSelection: jotai10.Atom<{
1359
+ trackedSelection: jotai0.Atom<{
1358
1360
  selection: any;
1359
1361
  version: number | null;
1360
1362
  }>;
1361
- trackedValue: jotai10.Atom<{
1363
+ trackedValue: jotai0.Atom<{
1362
1364
  value: any;
1363
1365
  version: number | null;
1364
1366
  }>;
1365
- })[K$1] extends jotai10.WritableAtom<infer _V, infer A extends unknown[], infer R> ? (...args: A) => R : never, usePlateLocalState: <K$1 extends "renderElement" | "decorate" | "renderLeaf" | "renderText" | "editor" | "id" | "onChange" | "onNodeChange" | "onTextChange" | "readOnly" | "composing" | "isMounted" | "primary" | "renderChunk" | "versionDecorate" | "versionEditor" | "versionSelection" | "versionValue" | "onSelectionChange" | "onValueChange" | "containerRef" | "scrollRef" | "trackedEditor" | "trackedSelection" | "trackedValue">(key: K$1, options?: string | jotai_x2.UseAtomOptions) => ({
1366
- composing: jotai_x2.SimpleWritableAtom<boolean | null>;
1367
- decorate: jotai_x2.SimpleWritableAtom<((options: {
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: _platejs_slate4.NodeEntry;
1370
- }) => _platejs_slate4.TRange[]) | null>;
1371
- isMounted: jotai_x2.SimpleWritableAtom<boolean | null>;
1372
- primary: jotai_x2.SimpleWritableAtom<boolean | null>;
1373
- readOnly: jotai_x2.SimpleWritableAtom<boolean | null>;
1374
- renderChunk: jotai_x2.SimpleWritableAtom<RenderChunkFn | null>;
1375
- renderElement: jotai_x2.SimpleWritableAtom<RenderElementFn | null>;
1376
- renderLeaf: jotai_x2.SimpleWritableAtom<RenderLeafFn | null>;
1377
- renderText: jotai_x2.SimpleWritableAtom<RenderTextFn | null>;
1378
- versionDecorate: jotai_x2.SimpleWritableAtom<number | null>;
1379
- versionEditor: jotai_x2.SimpleWritableAtom<number | null>;
1380
- versionSelection: jotai_x2.SimpleWritableAtom<number | null>;
1381
- versionValue: jotai_x2.SimpleWritableAtom<number | null>;
1382
- onChange: jotai_x2.SimpleWritableAtom<((options: {
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: _platejs_slate4.Value;
1386
+ value: _platejs_slate0.Value;
1385
1387
  }) => void) | null>;
1386
- onNodeChange: jotai_x2.SimpleWritableAtom<((options: {
1388
+ onNodeChange: jotai_x0.SimpleWritableAtom<((options: {
1387
1389
  editor: PlateEditor;
1388
- node: _platejs_slate4.Descendant;
1389
- operation: _platejs_slate4.NodeOperation;
1390
- prevNode: _platejs_slate4.Descendant;
1390
+ node: _platejs_slate0.Descendant;
1391
+ operation: _platejs_slate0.NodeOperation;
1392
+ prevNode: _platejs_slate0.Descendant;
1391
1393
  }) => void) | null>;
1392
- onSelectionChange: jotai_x2.SimpleWritableAtom<((options: {
1394
+ onSelectionChange: jotai_x0.SimpleWritableAtom<((options: {
1393
1395
  editor: PlateEditor;
1394
- selection: _platejs_slate4.TSelection;
1396
+ selection: _platejs_slate0.TSelection;
1395
1397
  }) => void) | null>;
1396
- onTextChange: jotai_x2.SimpleWritableAtom<((options: {
1398
+ onTextChange: jotai_x0.SimpleWritableAtom<((options: {
1397
1399
  editor: PlateEditor;
1398
- node: _platejs_slate4.Descendant;
1399
- operation: _platejs_slate4.TextOperation;
1400
+ node: _platejs_slate0.Descendant;
1401
+ operation: _platejs_slate0.TextOperation;
1400
1402
  prevText: string;
1401
1403
  text: string;
1402
1404
  }) => void) | null>;
1403
- onValueChange: jotai_x2.SimpleWritableAtom<((options: {
1405
+ onValueChange: jotai_x0.SimpleWritableAtom<((options: {
1404
1406
  editor: PlateEditor;
1405
- value: _platejs_slate4.Value;
1407
+ value: _platejs_slate0.Value;
1406
1408
  }) => void) | null>;
1407
- id: jotai_x2.SimpleWritableAtom<string>;
1408
- containerRef: jotai_x2.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
1409
- editor: jotai_x2.SimpleWritableAtom<PlateEditor>;
1410
- scrollRef: jotai_x2.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
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: jotai10.Atom<{
1414
+ trackedEditor: jotai0.Atom<{
1413
1415
  editor: any;
1414
1416
  version: number | null;
1415
1417
  }>;
1416
- trackedSelection: jotai10.Atom<{
1418
+ trackedSelection: jotai0.Atom<{
1417
1419
  selection: any;
1418
1420
  version: number | null;
1419
1421
  }>;
1420
- trackedValue: jotai10.Atom<{
1422
+ trackedValue: jotai0.Atom<{
1421
1423
  value: any;
1422
1424
  version: number | null;
1423
1425
  }>;
1424
- })[K$1] extends jotai10.WritableAtom<infer V, infer A extends unknown[], infer R> ? [V, (...args: A) => R] : never, usePlateLocalStore: jotai_x2.UseStoreApi<PlateStoreState<PlateEditor>, {
1425
- trackedEditor: jotai10.Atom<{
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: jotai10.Atom<{
1431
+ trackedSelection: jotai0.Atom<{
1430
1432
  selection: any;
1431
1433
  version: number | null;
1432
1434
  }>;
1433
- trackedValue: jotai10.Atom<{
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" | "composing" | "isMounted" | "primary" | "renderChunk" | "versionDecorate" | "versionEditor" | "versionSelection" | "versionValue" | "onSelectionChange" | "onValueChange" | "containerRef" | "scrollRef" | "trackedEditor" | "trackedSelection" | "trackedValue", S = (({
1438
- composing: jotai_x2.SimpleWritableAtom<boolean | null>;
1439
- decorate: jotai_x2.SimpleWritableAtom<((options: {
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: _platejs_slate4.NodeEntry;
1442
- }) => _platejs_slate4.TRange[]) | null>;
1443
- isMounted: jotai_x2.SimpleWritableAtom<boolean | null>;
1444
- primary: jotai_x2.SimpleWritableAtom<boolean | null>;
1445
- readOnly: jotai_x2.SimpleWritableAtom<boolean | null>;
1446
- renderChunk: jotai_x2.SimpleWritableAtom<RenderChunkFn | null>;
1447
- renderElement: jotai_x2.SimpleWritableAtom<RenderElementFn | null>;
1448
- renderLeaf: jotai_x2.SimpleWritableAtom<RenderLeafFn | null>;
1449
- renderText: jotai_x2.SimpleWritableAtom<RenderTextFn | null>;
1450
- versionDecorate: jotai_x2.SimpleWritableAtom<number | null>;
1451
- versionEditor: jotai_x2.SimpleWritableAtom<number | null>;
1452
- versionSelection: jotai_x2.SimpleWritableAtom<number | null>;
1453
- versionValue: jotai_x2.SimpleWritableAtom<number | null>;
1454
- onChange: jotai_x2.SimpleWritableAtom<((options: {
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: _platejs_slate4.Value;
1458
+ value: _platejs_slate0.Value;
1457
1459
  }) => void) | null>;
1458
- onNodeChange: jotai_x2.SimpleWritableAtom<((options: {
1460
+ onNodeChange: jotai_x0.SimpleWritableAtom<((options: {
1459
1461
  editor: PlateEditor;
1460
- node: _platejs_slate4.Descendant;
1461
- operation: _platejs_slate4.NodeOperation;
1462
- prevNode: _platejs_slate4.Descendant;
1462
+ node: _platejs_slate0.Descendant;
1463
+ operation: _platejs_slate0.NodeOperation;
1464
+ prevNode: _platejs_slate0.Descendant;
1463
1465
  }) => void) | null>;
1464
- onSelectionChange: jotai_x2.SimpleWritableAtom<((options: {
1466
+ onSelectionChange: jotai_x0.SimpleWritableAtom<((options: {
1465
1467
  editor: PlateEditor;
1466
- selection: _platejs_slate4.TSelection;
1468
+ selection: _platejs_slate0.TSelection;
1467
1469
  }) => void) | null>;
1468
- onTextChange: jotai_x2.SimpleWritableAtom<((options: {
1470
+ onTextChange: jotai_x0.SimpleWritableAtom<((options: {
1469
1471
  editor: PlateEditor;
1470
- node: _platejs_slate4.Descendant;
1471
- operation: _platejs_slate4.TextOperation;
1472
+ node: _platejs_slate0.Descendant;
1473
+ operation: _platejs_slate0.TextOperation;
1472
1474
  prevText: string;
1473
1475
  text: string;
1474
1476
  }) => void) | null>;
1475
- onValueChange: jotai_x2.SimpleWritableAtom<((options: {
1477
+ onValueChange: jotai_x0.SimpleWritableAtom<((options: {
1476
1478
  editor: PlateEditor;
1477
- value: _platejs_slate4.Value;
1479
+ value: _platejs_slate0.Value;
1478
1480
  }) => void) | null>;
1479
- id: jotai_x2.SimpleWritableAtom<string>;
1480
- containerRef: jotai_x2.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
1481
- editor: jotai_x2.SimpleWritableAtom<PlateEditor>;
1482
- scrollRef: jotai_x2.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
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: jotai10.Atom<{
1486
+ trackedEditor: jotai0.Atom<{
1485
1487
  editor: any;
1486
1488
  version: number | null;
1487
1489
  }>;
1488
- trackedSelection: jotai10.Atom<{
1490
+ trackedSelection: jotai0.Atom<{
1489
1491
  selection: any;
1490
1492
  version: number | null;
1491
1493
  }>;
1492
- trackedValue: jotai10.Atom<{
1494
+ trackedValue: jotai0.Atom<{
1493
1495
  value: any;
1494
1496
  version: number | null;
1495
1497
  }>;
1496
- })[K$1] extends jotai10.Atom<infer V> ? V : never)>(key: K$1, options?: ({
1498
+ })[K$1] extends jotai0.Atom<infer V> ? V : never)>(key: K$1, options?: ({
1497
1499
  selector?: ((v: ({
1498
- composing: jotai_x2.SimpleWritableAtom<boolean | null>;
1499
- decorate: jotai_x2.SimpleWritableAtom<((options: {
1500
+ composing: jotai_x0.SimpleWritableAtom<boolean | null>;
1501
+ decorate: jotai_x0.SimpleWritableAtom<((options: {
1500
1502
  editor: PlateEditor;
1501
- entry: _platejs_slate4.NodeEntry;
1502
- }) => _platejs_slate4.TRange[]) | null>;
1503
- isMounted: jotai_x2.SimpleWritableAtom<boolean | null>;
1504
- primary: jotai_x2.SimpleWritableAtom<boolean | null>;
1505
- readOnly: jotai_x2.SimpleWritableAtom<boolean | null>;
1506
- renderChunk: jotai_x2.SimpleWritableAtom<RenderChunkFn | null>;
1507
- renderElement: jotai_x2.SimpleWritableAtom<RenderElementFn | null>;
1508
- renderLeaf: jotai_x2.SimpleWritableAtom<RenderLeafFn | null>;
1509
- renderText: jotai_x2.SimpleWritableAtom<RenderTextFn | null>;
1510
- versionDecorate: jotai_x2.SimpleWritableAtom<number | null>;
1511
- versionEditor: jotai_x2.SimpleWritableAtom<number | null>;
1512
- versionSelection: jotai_x2.SimpleWritableAtom<number | null>;
1513
- versionValue: jotai_x2.SimpleWritableAtom<number | null>;
1514
- onChange: jotai_x2.SimpleWritableAtom<((options: {
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: _platejs_slate4.Value;
1518
+ value: _platejs_slate0.Value;
1517
1519
  }) => void) | null>;
1518
- onNodeChange: jotai_x2.SimpleWritableAtom<((options: {
1520
+ onNodeChange: jotai_x0.SimpleWritableAtom<((options: {
1519
1521
  editor: PlateEditor;
1520
- node: _platejs_slate4.Descendant;
1521
- operation: _platejs_slate4.NodeOperation;
1522
- prevNode: _platejs_slate4.Descendant;
1522
+ node: _platejs_slate0.Descendant;
1523
+ operation: _platejs_slate0.NodeOperation;
1524
+ prevNode: _platejs_slate0.Descendant;
1523
1525
  }) => void) | null>;
1524
- onSelectionChange: jotai_x2.SimpleWritableAtom<((options: {
1526
+ onSelectionChange: jotai_x0.SimpleWritableAtom<((options: {
1525
1527
  editor: PlateEditor;
1526
- selection: _platejs_slate4.TSelection;
1528
+ selection: _platejs_slate0.TSelection;
1527
1529
  }) => void) | null>;
1528
- onTextChange: jotai_x2.SimpleWritableAtom<((options: {
1530
+ onTextChange: jotai_x0.SimpleWritableAtom<((options: {
1529
1531
  editor: PlateEditor;
1530
- node: _platejs_slate4.Descendant;
1531
- operation: _platejs_slate4.TextOperation;
1532
+ node: _platejs_slate0.Descendant;
1533
+ operation: _platejs_slate0.TextOperation;
1532
1534
  prevText: string;
1533
1535
  text: string;
1534
1536
  }) => void) | null>;
1535
- onValueChange: jotai_x2.SimpleWritableAtom<((options: {
1537
+ onValueChange: jotai_x0.SimpleWritableAtom<((options: {
1536
1538
  editor: PlateEditor;
1537
- value: _platejs_slate4.Value;
1539
+ value: _platejs_slate0.Value;
1538
1540
  }) => void) | null>;
1539
- id: jotai_x2.SimpleWritableAtom<string>;
1540
- containerRef: jotai_x2.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
1541
- editor: jotai_x2.SimpleWritableAtom<PlateEditor>;
1542
- scrollRef: jotai_x2.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
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: jotai10.Atom<{
1546
+ trackedEditor: jotai0.Atom<{
1545
1547
  editor: any;
1546
1548
  version: number | null;
1547
1549
  }>;
1548
- trackedSelection: jotai10.Atom<{
1550
+ trackedSelection: jotai0.Atom<{
1549
1551
  selection: any;
1550
1552
  version: number | null;
1551
1553
  }>;
1552
- trackedValue: jotai10.Atom<{
1554
+ trackedValue: jotai0.Atom<{
1553
1555
  value: any;
1554
1556
  version: number | null;
1555
1557
  }>;
1556
- })[K$1] extends jotai10.Atom<infer V_1> ? V_1 : never, prevSelectorOutput?: S | undefined) => S) | undefined;
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
- } & jotai_x2.UseAtomOptions) | undefined, deps?: unknown[]) => S;
1559
- declare const usePlateStore: (id?: string) => jotai_x2.ReturnOfUseStoreApi<PlateStoreState<PlateEditor>, {
1560
- trackedEditor: jotai10.Atom<{
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: jotai10.Atom<{
1566
+ trackedSelection: jotai0.Atom<{
1565
1567
  selection: any;
1566
1568
  version: number | null;
1567
1569
  }>;
1568
- trackedValue: jotai10.Atom<{
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<jotai_x2.ProviderProps<{
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: jotai10.WritableAtom<Value$1, Args, Result>, ...args: Args) => Result;
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: jotai_x2.StoreApi<{
1708
- activeId: jotai10.PrimitiveAtom<string | null> & {
1709
+ }>>, plateControllerStore: jotai_x0.StoreApi<{
1710
+ activeId: jotai0.PrimitiveAtom<string | null> & {
1709
1711
  init: string | null;
1710
1712
  };
1711
- editorStores: jotai10.PrimitiveAtom<Record<string, ({
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: jotai10.WritableAtom<Value$1, Args, Result>, ...args: Args) => Result;
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: jotai10.WritableAtom<Value$1, Args, Result>, ...args: Args) => Result;
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: jotai10.PrimitiveAtom<string[]> & {
1792
+ primaryEditorIds: jotai0.PrimitiveAtom<string[]> & {
1791
1793
  init: string[];
1792
1794
  };
1793
- }, object, "plateController">, _usePlateControllerStore: jotai_x2.UseStoreApi<{
1794
- activeId: jotai10.PrimitiveAtom<string | null> & {
1795
+ }, object, "plateController">, _usePlateControllerStore: jotai_x0.UseStoreApi<{
1796
+ activeId: jotai0.PrimitiveAtom<string | null> & {
1795
1797
  init: string | null;
1796
1798
  };
1797
- editorStores: jotai10.PrimitiveAtom<Record<string, ({
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: jotai10.WritableAtom<Value$1, Args, Result>, ...args: Args) => Result;
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: jotai10.WritableAtom<Value$1, Args, Result>, ...args: Args) => Result;
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: jotai10.PrimitiveAtom<string[]> & {
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) => _platejs_slate4.Path | undefined;
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<_platejs_slate4.Value, PlateCorePlugin>;
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)[];