@lofcz/platejs-core 53.1.6 → 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,46 +1,48 @@
1
- import { Ai as AnySlatePlugin, Ct as NodeComponents, Et as PluginConfig, F as RenderLeafProps, I as RenderElementFn, J as BaseEditor, Kr as NavigationFeedbackActiveTarget, L as RenderElementProps, M as RenderTextFn, N as RenderTextProps, Ot as WithAnyKey, P as RenderLeafFn, Pi as ExtendEditor$1, Q as SlateEditor, R as RenderChunkFn, St as NodeComponent, Tt as ParserOptions, U as BaseWithSlateOptions, Y as InferPlugins, Ya as createStaticEditor, _a as InputRulesConfig, _t as InferOptions, at as BasePluginContext, bt as MatchRules, ct as BaseTransformOptions, ea as SlatePlugin, ei as AutoScrollOperationsMap, et as AnyPluginConfig, fi as InsertExitBreakOptions, gt as InferKey, hr as CorePluginTransforms, ht as InferApi, ii as WithAutoScrollOptions, it as BasePlugin, j as EditableProps, ja as ResolvedInputRulesMeta, ko as HandlerReturnType, kt as WithRequiredKey, mi as InitOptions, mr as CorePluginApi, mt as GetInjectNodePropsReturnType, na as SlatePluginContext, ni as DomConfig, nt as BaseHtmlDeserializer, pr as CorePlugin, pt as GetInjectNodePropsOptions, qr as NavigationFeedbackConfig, ri as ScrollMode, rt as BaseInjectProps, st as BaseSerializer, ta as SlatePluginConfig, tt as BaseDeserializer, ui as LiftBlockOptions, va as InputRulesDefinition, vt as InferSelectors, yo as PlateStaticProps, yt as InferTransforms, z as RenderChunkProps } from "../index-BooMghRU";
2
- import * as _platejs_slate15 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
- import React$1, { HTMLAttributes } from "react";
6
+ import React$1, { DependencyList, HTMLAttributes } from "react";
7
7
  import { HotkeysEvent, HotkeysOptions, Keys } from "@udecode/react-hotkeys";
8
+ import * as jotai0 from "jotai";
9
+ import { Atom, atom } from "jotai";
8
10
  import * as jotai_x0 from "jotai-x";
9
11
  import { JotaiStore, createAtomStore, useStoreAtomState, useStoreAtomValue, useStoreSetAtom } from "jotai-x";
10
- import * as jotai10 from "jotai";
11
- import { Atom, atom } from "jotai";
12
12
  import * as zustand_x0 from "zustand-x";
13
13
  import { TCreatedStoreType, TEqualityChecker, createZustandStore, useStoreSelect, useStoreState, useStoreValue, useTracked, useTrackedStore } from "zustand-x";
14
+ import { createStore } from "jotai/vanilla";
14
15
 
15
16
  //#region src/react/plugins/SlateReactExtensionPlugin.d.ts
16
17
  declare const SlateReactExtensionPlugin: PlatePlugin<PluginConfig<"slateExtension", {
17
18
  onNodeChange: (options: {
18
19
  editor: SlateEditor;
19
- node: _platejs_slate15.Descendant;
20
- operation: _platejs_slate15.NodeOperation;
21
- prevNode: _platejs_slate15.Descendant;
20
+ node: _platejs_slate0.Descendant;
21
+ operation: _platejs_slate0.NodeOperation;
22
+ prevNode: _platejs_slate0.Descendant;
22
23
  }) => void;
23
24
  onTextChange: (options: {
24
25
  editor: SlateEditor;
25
- node: _platejs_slate15.Descendant;
26
- operation: _platejs_slate15.TextOperation;
26
+ node: _platejs_slate0.Descendant;
27
+ operation: _platejs_slate0.TextOperation;
27
28
  prevText: string;
28
29
  text: string;
29
30
  }) => void;
30
31
  }, {
31
32
  redecorate: (() => void) & (() => void);
33
+ isElementStateEmpty: (element: _platejs_slate0.TElement) => boolean;
32
34
  }, {
33
- reset: (options: _platejs_slate15.ResetOptions | undefined) => void;
35
+ reset: (options: _platejs_slate0.ResetOptions | undefined) => void;
34
36
  init: ((args_0: InitOptions) => void) & ((args_0: InitOptions) => void);
35
37
  insertExitBreak: ((args_0?: InsertExitBreakOptions | undefined) => true | undefined) & ((args_0?: InsertExitBreakOptions | undefined) => true | undefined);
36
38
  liftBlock: ((args_0?: LiftBlockOptions | undefined) => true | undefined) & ((args_0?: LiftBlockOptions | undefined) => true | undefined);
37
39
  resetBlock: ((args_0?: {
38
- at?: _platejs_slate15.Path;
40
+ at?: _platejs_slate0.Path;
39
41
  } | undefined) => true | undefined) & ((args_0?: {
40
- at?: _platejs_slate15.Path;
42
+ at?: _platejs_slate0.Path;
41
43
  } | undefined) => true | undefined);
42
- setValue: ((value?: string | _platejs_slate15.Value | undefined) => void) & ((value?: string | _platejs_slate15.Value | undefined) => void);
43
- apply: <N$1 extends _platejs_slate15.TElement | _platejs_slate15.TText>(operation: _platejs_slate15.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;
44
46
  }, {}>>;
45
47
  //#endregion
46
48
  //#region src/react/plugins/event-editor/EventEditorPlugin.d.ts
@@ -100,7 +102,7 @@ declare const ParagraphPlugin: PlatePlugin<PluginConfig<"p", {}, {}, {}, {}>>;
100
102
  declare const ReactPlugin: PlatePlugin<PluginConfig<"dom", {
101
103
  scrollMode?: ScrollMode;
102
104
  scrollOperations?: AutoScrollOperationsMap;
103
- scrollOptions?: _platejs_slate15.ScrollIntoViewOptions;
105
+ scrollOptions?: _platejs_slate0.ScrollIntoViewOptions;
104
106
  }, {
105
107
  isScrolling: () => boolean;
106
108
  }, {
@@ -112,7 +114,7 @@ declare const withPlateReact: ExtendEditor$1<DomConfig>;
112
114
  //#endregion
113
115
  //#region src/react/editor/withPlate.d.ts
114
116
  type PlateCorePlugin = CorePlugin | typeof EventEditorPlugin | typeof SlateReactExtensionPlugin;
115
- type WithPlateOptions<V$1 extends Value = Value, P$1 extends AnyPluginConfig = PlateCorePlugin> = BaseWithSlateOptions<P$1> & Pick<Partial<AnyPlatePlugin>, 'api' | 'decorate' | 'extendEditor' | 'handlers' | 'inject' | 'normalizeInitialValue' | 'options' | 'override' | 'priority' | 'render' | 'shortcuts' | 'transforms' | 'useHooks'> & {
117
+ type WithPlateOptions<V$1 extends Value = Value, P$1 extends AnyPluginConfig = PlateCorePlugin> = BaseWithSlateOptions<P$1> & Pick<Partial<AnyPlatePlugin>, 'api' | 'decorate' | 'extendEditor' | 'handlers' | 'inject' | 'transformInitialValue' | 'normalizeInitialValue' | 'options' | 'override' | 'priority' | 'render' | 'shortcuts' | 'transforms' | 'useHooks'> & {
116
118
  value?: ((editor: PlateEditor) => Promise<V$1> | V$1) | V$1 | string;
117
119
  rootPlugin?: (plugin: AnyPlatePlugin) => AnyPlatePlugin;
118
120
  onReady?: (ctx: {
@@ -307,9 +309,13 @@ interface NodeWrapperComponentProps<C extends AnyPluginConfig = PluginConfig> ex
307
309
  }
308
310
  /** @deprecated Use {@link RenderNodeWrapperFunction} instead. */
309
311
  type NodeWrapperComponentReturnType<C extends AnyPluginConfig = PluginConfig> = React$1.FC<PlateElementProps<TElement, C>> | undefined;
312
+ type TransformInitialValue<C extends AnyPluginConfig = PluginConfig> = (ctx: PlatePluginContext<C> & {
313
+ value: Value;
314
+ }) => Value;
315
+ /** @deprecated Use {@link TransformInitialValue} instead. */
310
316
  type NormalizeInitialValue<C extends AnyPluginConfig = PluginConfig> = (ctx: PlatePluginContext<C> & {
311
317
  value: Value;
312
- }) => void;
318
+ }) => Value | void;
313
319
  /**
314
320
  * Function called whenever a change occurs in the editor. Return `false` to
315
321
  * prevent calling the next plugin handler.
@@ -378,7 +384,10 @@ type PlatePlugin<C extends AnyPluginConfig = PluginConfig> = BasePlugin<C> & Nul
378
384
  decorate?: Decorate<WithAnyKey<C>>;
379
385
  /** @see {@link ExtendEditor} */
380
386
  extendEditor?: ExtendEditor<WithAnyKey<C>>;
387
+ /** Transform the initial value before the editor is ready. */
388
+ transformInitialValue?: TransformInitialValue<WithAnyKey<C>>;
381
389
  /** Normalize initial value before passing it into the editor. */
390
+ /** @deprecated Use `transformInitialValue` instead. */
382
391
  normalizeInitialValue?: NormalizeInitialValue<WithAnyKey<C>>;
383
392
  /** @see {@link UseHooks} */
384
393
  useHooks?: UseHooks<WithAnyKey<C>>;
@@ -810,35 +819,36 @@ declare const getPlateCorePlugins: ({
810
819
  }) => (PlatePlugin<PluginConfig<"eventEditor", {}, {}, {}, {}>> | PlatePlugin<PluginConfig<"slateExtension", {
811
820
  onNodeChange: (options: {
812
821
  editor: SlateEditor;
813
- node: _platejs_slate15.Descendant;
814
- operation: _platejs_slate15.NodeOperation;
815
- prevNode: _platejs_slate15.Descendant;
822
+ node: _platejs_slate0.Descendant;
823
+ operation: _platejs_slate0.NodeOperation;
824
+ prevNode: _platejs_slate0.Descendant;
816
825
  }) => void;
817
826
  onTextChange: (options: {
818
827
  editor: SlateEditor;
819
- node: _platejs_slate15.Descendant;
820
- operation: _platejs_slate15.TextOperation;
828
+ node: _platejs_slate0.Descendant;
829
+ operation: _platejs_slate0.TextOperation;
821
830
  prevText: string;
822
831
  text: string;
823
832
  }) => void;
824
833
  }, {
825
834
  redecorate: (() => void) & (() => void);
835
+ isElementStateEmpty: (element: _platejs_slate0.TElement) => boolean;
826
836
  }, {
827
- reset: (options: _platejs_slate15.ResetOptions | undefined) => void;
837
+ reset: (options: _platejs_slate0.ResetOptions | undefined) => void;
828
838
  init: ((args_0: InitOptions) => void) & ((args_0: InitOptions) => void);
829
839
  insertExitBreak: ((args_0?: InsertExitBreakOptions | undefined) => true | undefined) & ((args_0?: InsertExitBreakOptions | undefined) => true | undefined);
830
840
  liftBlock: ((args_0?: LiftBlockOptions | undefined) => true | undefined) & ((args_0?: LiftBlockOptions | undefined) => true | undefined);
831
841
  resetBlock: ((args_0?: {
832
- at?: _platejs_slate15.Path;
842
+ at?: _platejs_slate0.Path;
833
843
  } | undefined) => true | undefined) & ((args_0?: {
834
- at?: _platejs_slate15.Path;
844
+ at?: _platejs_slate0.Path;
835
845
  } | undefined) => true | undefined);
836
- setValue: ((value?: string | _platejs_slate15.Value | undefined) => void) & ((value?: string | _platejs_slate15.Value | undefined) => void);
837
- apply: <N$1 extends _platejs_slate15.TElement | _platejs_slate15.TText>(operation: _platejs_slate15.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;
838
848
  }, {}>> | PlatePlugin<PluginConfig<"dom", {
839
849
  scrollMode?: ScrollMode;
840
850
  scrollOperations?: AutoScrollOperationsMap;
841
- scrollOptions?: _platejs_slate15.ScrollIntoViewOptions;
851
+ scrollOptions?: _platejs_slate0.ScrollIntoViewOptions;
842
852
  }, {
843
853
  isScrolling: () => boolean;
844
854
  }, {
@@ -908,7 +918,7 @@ declare function getPlugin<C extends AnyPluginConfig = PluginConfig>(editor: Pla
908
918
  } ? C : PlatePlugin<C>;
909
919
  //#endregion
910
920
  //#region src/react/plugin/omitPluginContext.d.ts
911
- declare const omitPluginContext: <T extends PlatePluginContext<AnyPlatePlugin>>(ctx: T) => Omit<T, "api" | "editor" | "getOptions" | "getOption" | "tf" | "type" | "setOptions" | "setOption" | "plugin">;
921
+ declare const omitPluginContext: <T extends PlatePluginContext<AnyPlatePlugin>>(ctx: T) => Omit<T, "api" | "editor" | "getOptions" | "type" | "getOption" | "tf" | "setOptions" | "setOption" | "plugin">;
912
922
  //#endregion
913
923
  //#region src/react/plugin/toPlatePlugin.d.ts
914
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'> & {
@@ -951,6 +961,8 @@ declare function toTPlatePlugin<C extends AnyPluginConfig = PluginConfig, TConte
951
961
  //#endregion
952
962
  //#region src/react/components/plate-nodes.d.ts
953
963
  declare const useNodeAttributes: (props: any, ref?: any) => any;
964
+ declare const isHtmlVoidElementTag: (tag: keyof HTMLElementTagNameMap) => boolean;
965
+ declare const useBlockIdAttributeRef: <T extends HTMLElement>(blockId: unknown, ref?: React$1.Ref<T>) => (node: T) => (() => void) | undefined;
954
966
  type PlateChunkProps = RenderChunkProps;
955
967
  type PlateElementProps<N$1 extends TElement = TElement, C extends AnyPluginConfig = PluginConfig> = PlateNodeProps<C> & RenderElementProps<N$1> & {
956
968
  attributes: UnknownObject;
@@ -1053,7 +1065,7 @@ type UseElementSelectorOptions<T> = {
1053
1065
  key?: string;
1054
1066
  equalityFn?: (a: T, b: T) => boolean;
1055
1067
  };
1056
- declare const useElementSelector: <T>(selector: <N$1 extends TElement>(state: NodeEntry<N$1>, prev?: T) => T, deps: React$1.DependencyList, {
1068
+ declare const useElementSelector: <T>(selector: <N$1 extends TElement>(state: NodeEntry<N$1>, prev?: T) => T, deps: DependencyList, {
1057
1069
  key,
1058
1070
  equalityFn
1059
1071
  }?: UseElementSelectorOptions<T>) => T;
@@ -1065,11 +1077,37 @@ type ElementStoreState = {
1065
1077
  entry: ElementEntry;
1066
1078
  path: Path;
1067
1079
  };
1068
- declare const ElementProvider: React$1.FC<jotai_x0.ProviderProps<{
1069
- element: TElement;
1070
- entry: ElementEntry;
1071
- path: Path;
1072
- }>>, elementStore: jotai_x0.StoreApi<ElementStoreState, object, "element">, useElementStore: jotai_x0.UseStoreApi<ElementStoreState, object>;
1080
+ type ElementContextValue = Nullable<ElementStoreState> & {
1081
+ parent: ElementContextValue | null;
1082
+ scope?: string;
1083
+ };
1084
+ type ElementStoreContextValue = {
1085
+ parent: ElementStoreContextValue | null;
1086
+ runtime: ElementRuntimeStore;
1087
+ scope?: string;
1088
+ store: ReturnType<typeof createStore>;
1089
+ };
1090
+ type ElementRuntimeState = Nullable<ElementStoreState>;
1091
+ type ElementRuntimeStore = {
1092
+ getJotaiStore: () => ReturnType<typeof createStore>;
1093
+ getState: () => ElementRuntimeState;
1094
+ setState: (nextState: ElementRuntimeState) => void;
1095
+ subscribe: (listener: () => void) => () => void;
1096
+ };
1097
+ declare const elementStore: jotai_x0.StoreApi<ElementStoreState, object, "element">;
1098
+ declare const withElementContext: <T>(context: Omit<ElementContextValue, "parent">, callback: () => T) => T;
1099
+ declare const useElementContext: (scope?: string) => ElementContextValue | null;
1100
+ declare const useElementStoreContext: (scope?: string) => ElementStoreContextValue | null;
1101
+ declare const useElementStore: (scope?: string) => jotai_x0.ReturnOfUseStoreApi<ElementStoreState, object>;
1102
+ declare function ElementProvider({
1103
+ children,
1104
+ path,
1105
+ scope,
1106
+ ...props
1107
+ }: React$1.PropsWithChildren<Partial<ElementStoreState> & {
1108
+ scope?: string;
1109
+ }>): React$1.JSX.Element;
1110
+ declare function FirstBlockEffect(): null;
1073
1111
  //#endregion
1074
1112
  //#region src/react/stores/element/usePath.d.ts
1075
1113
  /** Get the memoized path of the closest element. */
@@ -1195,15 +1233,15 @@ declare const createPlateStore: <E extends PlateEditor = PlateEditor>({
1195
1233
  onValueChange,
1196
1234
  ...state
1197
1235
  }?: Partial<PlateStoreState<E>>) => jotai_x0.AtomStoreApi<PlateStoreState<E>, {
1198
- trackedEditor: jotai10.Atom<{
1236
+ trackedEditor: jotai0.Atom<{
1199
1237
  editor: any;
1200
1238
  version: number | null;
1201
1239
  }>;
1202
- trackedSelection: jotai10.Atom<{
1240
+ trackedSelection: jotai0.Atom<{
1203
1241
  selection: any;
1204
1242
  version: number | null;
1205
1243
  }>;
1206
- trackedValue: jotai10.Atom<{
1244
+ trackedValue: jotai0.Atom<{
1207
1245
  value: any;
1208
1246
  version: number | null;
1209
1247
  }>;
@@ -1212,8 +1250,8 @@ declare const PlateStoreProvider: React$1.FC<jotai_x0.ProviderProps<{
1212
1250
  composing: boolean | null;
1213
1251
  decorate: ((options: {
1214
1252
  editor: PlateEditor;
1215
- entry: _platejs_slate15.NodeEntry;
1216
- }) => _platejs_slate15.TRange[]) | null;
1253
+ entry: _platejs_slate0.NodeEntry;
1254
+ }) => _platejs_slate0.TRange[]) | null;
1217
1255
  isMounted: boolean | null;
1218
1256
  primary: boolean | null;
1219
1257
  readOnly: boolean | null;
@@ -1227,52 +1265,52 @@ declare const PlateStoreProvider: React$1.FC<jotai_x0.ProviderProps<{
1227
1265
  versionValue: number | null;
1228
1266
  onChange: ((options: {
1229
1267
  editor: PlateEditor;
1230
- value: _platejs_slate15.Value;
1268
+ value: _platejs_slate0.Value;
1231
1269
  }) => void) | null;
1232
1270
  onNodeChange: ((options: {
1233
1271
  editor: PlateEditor;
1234
- node: _platejs_slate15.Descendant;
1235
- operation: _platejs_slate15.NodeOperation;
1236
- prevNode: _platejs_slate15.Descendant;
1272
+ node: _platejs_slate0.Descendant;
1273
+ operation: _platejs_slate0.NodeOperation;
1274
+ prevNode: _platejs_slate0.Descendant;
1237
1275
  }) => void) | null;
1238
1276
  onSelectionChange: ((options: {
1239
1277
  editor: PlateEditor;
1240
- selection: _platejs_slate15.TSelection;
1278
+ selection: _platejs_slate0.TSelection;
1241
1279
  }) => void) | null;
1242
1280
  onTextChange: ((options: {
1243
1281
  editor: PlateEditor;
1244
- node: _platejs_slate15.Descendant;
1245
- operation: _platejs_slate15.TextOperation;
1282
+ node: _platejs_slate0.Descendant;
1283
+ operation: _platejs_slate0.TextOperation;
1246
1284
  prevText: string;
1247
1285
  text: string;
1248
1286
  }) => void) | null;
1249
1287
  onValueChange: ((options: {
1250
1288
  editor: PlateEditor;
1251
- value: _platejs_slate15.Value;
1289
+ value: _platejs_slate0.Value;
1252
1290
  }) => void) | null;
1253
1291
  id: string;
1254
1292
  containerRef: React$1.RefObject<HTMLDivElement | null>;
1255
1293
  editor: PlateEditor;
1256
1294
  scrollRef: React$1.RefObject<HTMLDivElement | null>;
1257
1295
  }>>, plateStore: jotai_x0.StoreApi<PlateStoreState<PlateEditor>, {
1258
- trackedEditor: jotai10.Atom<{
1296
+ trackedEditor: jotai0.Atom<{
1259
1297
  editor: any;
1260
1298
  version: number | null;
1261
1299
  }>;
1262
- trackedSelection: jotai10.Atom<{
1300
+ trackedSelection: jotai0.Atom<{
1263
1301
  selection: any;
1264
1302
  version: number | null;
1265
1303
  }>;
1266
- trackedValue: jotai10.Atom<{
1304
+ trackedValue: jotai0.Atom<{
1267
1305
  value: any;
1268
1306
  version: number | null;
1269
1307
  }>;
1270
- }, "plate">, usePlateLocalSet: <K$1 extends "decorate" | "renderLeaf" | "renderText" | "editor" | "id" | "onChange" | "renderElement" | "onNodeChange" | "onTextChange" | "readOnly" | "composing" | "isMounted" | "primary" | "renderChunk" | "versionDecorate" | "versionEditor" | "versionSelection" | "versionValue" | "onSelectionChange" | "onValueChange" | "containerRef" | "scrollRef" | "trackedEditor" | "trackedSelection" | "trackedValue">(key: K$1, options?: string | jotai_x0.UseAtomOptions) => ({
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) => ({
1271
1309
  composing: jotai_x0.SimpleWritableAtom<boolean | null>;
1272
1310
  decorate: jotai_x0.SimpleWritableAtom<((options: {
1273
1311
  editor: PlateEditor;
1274
- entry: _platejs_slate15.NodeEntry;
1275
- }) => _platejs_slate15.TRange[]) | null>;
1312
+ entry: _platejs_slate0.NodeEntry;
1313
+ }) => _platejs_slate0.TRange[]) | null>;
1276
1314
  isMounted: jotai_x0.SimpleWritableAtom<boolean | null>;
1277
1315
  primary: jotai_x0.SimpleWritableAtom<boolean | null>;
1278
1316
  readOnly: jotai_x0.SimpleWritableAtom<boolean | null>;
@@ -1286,52 +1324,52 @@ declare const PlateStoreProvider: React$1.FC<jotai_x0.ProviderProps<{
1286
1324
  versionValue: jotai_x0.SimpleWritableAtom<number | null>;
1287
1325
  onChange: jotai_x0.SimpleWritableAtom<((options: {
1288
1326
  editor: PlateEditor;
1289
- value: _platejs_slate15.Value;
1327
+ value: _platejs_slate0.Value;
1290
1328
  }) => void) | null>;
1291
1329
  onNodeChange: jotai_x0.SimpleWritableAtom<((options: {
1292
1330
  editor: PlateEditor;
1293
- node: _platejs_slate15.Descendant;
1294
- operation: _platejs_slate15.NodeOperation;
1295
- prevNode: _platejs_slate15.Descendant;
1331
+ node: _platejs_slate0.Descendant;
1332
+ operation: _platejs_slate0.NodeOperation;
1333
+ prevNode: _platejs_slate0.Descendant;
1296
1334
  }) => void) | null>;
1297
1335
  onSelectionChange: jotai_x0.SimpleWritableAtom<((options: {
1298
1336
  editor: PlateEditor;
1299
- selection: _platejs_slate15.TSelection;
1337
+ selection: _platejs_slate0.TSelection;
1300
1338
  }) => void) | null>;
1301
1339
  onTextChange: jotai_x0.SimpleWritableAtom<((options: {
1302
1340
  editor: PlateEditor;
1303
- node: _platejs_slate15.Descendant;
1304
- operation: _platejs_slate15.TextOperation;
1341
+ node: _platejs_slate0.Descendant;
1342
+ operation: _platejs_slate0.TextOperation;
1305
1343
  prevText: string;
1306
1344
  text: string;
1307
1345
  }) => void) | null>;
1308
1346
  onValueChange: jotai_x0.SimpleWritableAtom<((options: {
1309
1347
  editor: PlateEditor;
1310
- value: _platejs_slate15.Value;
1348
+ value: _platejs_slate0.Value;
1311
1349
  }) => void) | null>;
1312
1350
  id: jotai_x0.SimpleWritableAtom<string>;
1313
1351
  containerRef: jotai_x0.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
1314
1352
  editor: jotai_x0.SimpleWritableAtom<PlateEditor>;
1315
1353
  scrollRef: jotai_x0.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
1316
1354
  } & {
1317
- trackedEditor: jotai10.Atom<{
1355
+ trackedEditor: jotai0.Atom<{
1318
1356
  editor: any;
1319
1357
  version: number | null;
1320
1358
  }>;
1321
- trackedSelection: jotai10.Atom<{
1359
+ trackedSelection: jotai0.Atom<{
1322
1360
  selection: any;
1323
1361
  version: number | null;
1324
1362
  }>;
1325
- trackedValue: jotai10.Atom<{
1363
+ trackedValue: jotai0.Atom<{
1326
1364
  value: any;
1327
1365
  version: number | null;
1328
1366
  }>;
1329
- })[K$1] extends jotai10.WritableAtom<infer _V, infer A extends unknown[], infer R> ? (...args: A) => R : never, usePlateLocalState: <K$1 extends "decorate" | "renderLeaf" | "renderText" | "editor" | "id" | "onChange" | "renderElement" | "onNodeChange" | "onTextChange" | "readOnly" | "composing" | "isMounted" | "primary" | "renderChunk" | "versionDecorate" | "versionEditor" | "versionSelection" | "versionValue" | "onSelectionChange" | "onValueChange" | "containerRef" | "scrollRef" | "trackedEditor" | "trackedSelection" | "trackedValue">(key: K$1, options?: string | jotai_x0.UseAtomOptions) => ({
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) => ({
1330
1368
  composing: jotai_x0.SimpleWritableAtom<boolean | null>;
1331
1369
  decorate: jotai_x0.SimpleWritableAtom<((options: {
1332
1370
  editor: PlateEditor;
1333
- entry: _platejs_slate15.NodeEntry;
1334
- }) => _platejs_slate15.TRange[]) | null>;
1371
+ entry: _platejs_slate0.NodeEntry;
1372
+ }) => _platejs_slate0.TRange[]) | null>;
1335
1373
  isMounted: jotai_x0.SimpleWritableAtom<boolean | null>;
1336
1374
  primary: jotai_x0.SimpleWritableAtom<boolean | null>;
1337
1375
  readOnly: jotai_x0.SimpleWritableAtom<boolean | null>;
@@ -1345,65 +1383,65 @@ declare const PlateStoreProvider: React$1.FC<jotai_x0.ProviderProps<{
1345
1383
  versionValue: jotai_x0.SimpleWritableAtom<number | null>;
1346
1384
  onChange: jotai_x0.SimpleWritableAtom<((options: {
1347
1385
  editor: PlateEditor;
1348
- value: _platejs_slate15.Value;
1386
+ value: _platejs_slate0.Value;
1349
1387
  }) => void) | null>;
1350
1388
  onNodeChange: jotai_x0.SimpleWritableAtom<((options: {
1351
1389
  editor: PlateEditor;
1352
- node: _platejs_slate15.Descendant;
1353
- operation: _platejs_slate15.NodeOperation;
1354
- prevNode: _platejs_slate15.Descendant;
1390
+ node: _platejs_slate0.Descendant;
1391
+ operation: _platejs_slate0.NodeOperation;
1392
+ prevNode: _platejs_slate0.Descendant;
1355
1393
  }) => void) | null>;
1356
1394
  onSelectionChange: jotai_x0.SimpleWritableAtom<((options: {
1357
1395
  editor: PlateEditor;
1358
- selection: _platejs_slate15.TSelection;
1396
+ selection: _platejs_slate0.TSelection;
1359
1397
  }) => void) | null>;
1360
1398
  onTextChange: jotai_x0.SimpleWritableAtom<((options: {
1361
1399
  editor: PlateEditor;
1362
- node: _platejs_slate15.Descendant;
1363
- operation: _platejs_slate15.TextOperation;
1400
+ node: _platejs_slate0.Descendant;
1401
+ operation: _platejs_slate0.TextOperation;
1364
1402
  prevText: string;
1365
1403
  text: string;
1366
1404
  }) => void) | null>;
1367
1405
  onValueChange: jotai_x0.SimpleWritableAtom<((options: {
1368
1406
  editor: PlateEditor;
1369
- value: _platejs_slate15.Value;
1407
+ value: _platejs_slate0.Value;
1370
1408
  }) => void) | null>;
1371
1409
  id: jotai_x0.SimpleWritableAtom<string>;
1372
1410
  containerRef: jotai_x0.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
1373
1411
  editor: jotai_x0.SimpleWritableAtom<PlateEditor>;
1374
1412
  scrollRef: jotai_x0.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
1375
1413
  } & {
1376
- trackedEditor: jotai10.Atom<{
1414
+ trackedEditor: jotai0.Atom<{
1377
1415
  editor: any;
1378
1416
  version: number | null;
1379
1417
  }>;
1380
- trackedSelection: jotai10.Atom<{
1418
+ trackedSelection: jotai0.Atom<{
1381
1419
  selection: any;
1382
1420
  version: number | null;
1383
1421
  }>;
1384
- trackedValue: jotai10.Atom<{
1422
+ trackedValue: jotai0.Atom<{
1385
1423
  value: any;
1386
1424
  version: number | null;
1387
1425
  }>;
1388
- })[K$1] extends jotai10.WritableAtom<infer V, infer A extends unknown[], infer R> ? [V, (...args: A) => R] : never, usePlateLocalStore: jotai_x0.UseStoreApi<PlateStoreState<PlateEditor>, {
1389
- 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<{
1390
1428
  editor: any;
1391
1429
  version: number | null;
1392
1430
  }>;
1393
- trackedSelection: jotai10.Atom<{
1431
+ trackedSelection: jotai0.Atom<{
1394
1432
  selection: any;
1395
1433
  version: number | null;
1396
1434
  }>;
1397
- trackedValue: jotai10.Atom<{
1435
+ trackedValue: jotai0.Atom<{
1398
1436
  value: any;
1399
1437
  version: number | null;
1400
1438
  }>;
1401
- }>, usePlateLocalValue: <K$1 extends "decorate" | "renderLeaf" | "renderText" | "editor" | "id" | "onChange" | "renderElement" | "onNodeChange" | "onTextChange" | "readOnly" | "composing" | "isMounted" | "primary" | "renderChunk" | "versionDecorate" | "versionEditor" | "versionSelection" | "versionValue" | "onSelectionChange" | "onValueChange" | "containerRef" | "scrollRef" | "trackedEditor" | "trackedSelection" | "trackedValue", S = (({
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 = (({
1402
1440
  composing: jotai_x0.SimpleWritableAtom<boolean | null>;
1403
1441
  decorate: jotai_x0.SimpleWritableAtom<((options: {
1404
1442
  editor: PlateEditor;
1405
- entry: _platejs_slate15.NodeEntry;
1406
- }) => _platejs_slate15.TRange[]) | null>;
1443
+ entry: _platejs_slate0.NodeEntry;
1444
+ }) => _platejs_slate0.TRange[]) | null>;
1407
1445
  isMounted: jotai_x0.SimpleWritableAtom<boolean | null>;
1408
1446
  primary: jotai_x0.SimpleWritableAtom<boolean | null>;
1409
1447
  readOnly: jotai_x0.SimpleWritableAtom<boolean | null>;
@@ -1417,53 +1455,53 @@ declare const PlateStoreProvider: React$1.FC<jotai_x0.ProviderProps<{
1417
1455
  versionValue: jotai_x0.SimpleWritableAtom<number | null>;
1418
1456
  onChange: jotai_x0.SimpleWritableAtom<((options: {
1419
1457
  editor: PlateEditor;
1420
- value: _platejs_slate15.Value;
1458
+ value: _platejs_slate0.Value;
1421
1459
  }) => void) | null>;
1422
1460
  onNodeChange: jotai_x0.SimpleWritableAtom<((options: {
1423
1461
  editor: PlateEditor;
1424
- node: _platejs_slate15.Descendant;
1425
- operation: _platejs_slate15.NodeOperation;
1426
- prevNode: _platejs_slate15.Descendant;
1462
+ node: _platejs_slate0.Descendant;
1463
+ operation: _platejs_slate0.NodeOperation;
1464
+ prevNode: _platejs_slate0.Descendant;
1427
1465
  }) => void) | null>;
1428
1466
  onSelectionChange: jotai_x0.SimpleWritableAtom<((options: {
1429
1467
  editor: PlateEditor;
1430
- selection: _platejs_slate15.TSelection;
1468
+ selection: _platejs_slate0.TSelection;
1431
1469
  }) => void) | null>;
1432
1470
  onTextChange: jotai_x0.SimpleWritableAtom<((options: {
1433
1471
  editor: PlateEditor;
1434
- node: _platejs_slate15.Descendant;
1435
- operation: _platejs_slate15.TextOperation;
1472
+ node: _platejs_slate0.Descendant;
1473
+ operation: _platejs_slate0.TextOperation;
1436
1474
  prevText: string;
1437
1475
  text: string;
1438
1476
  }) => void) | null>;
1439
1477
  onValueChange: jotai_x0.SimpleWritableAtom<((options: {
1440
1478
  editor: PlateEditor;
1441
- value: _platejs_slate15.Value;
1479
+ value: _platejs_slate0.Value;
1442
1480
  }) => void) | null>;
1443
1481
  id: jotai_x0.SimpleWritableAtom<string>;
1444
1482
  containerRef: jotai_x0.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
1445
1483
  editor: jotai_x0.SimpleWritableAtom<PlateEditor>;
1446
1484
  scrollRef: jotai_x0.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
1447
1485
  } & {
1448
- trackedEditor: jotai10.Atom<{
1486
+ trackedEditor: jotai0.Atom<{
1449
1487
  editor: any;
1450
1488
  version: number | null;
1451
1489
  }>;
1452
- trackedSelection: jotai10.Atom<{
1490
+ trackedSelection: jotai0.Atom<{
1453
1491
  selection: any;
1454
1492
  version: number | null;
1455
1493
  }>;
1456
- trackedValue: jotai10.Atom<{
1494
+ trackedValue: jotai0.Atom<{
1457
1495
  value: any;
1458
1496
  version: number | null;
1459
1497
  }>;
1460
- })[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?: ({
1461
1499
  selector?: ((v: ({
1462
1500
  composing: jotai_x0.SimpleWritableAtom<boolean | null>;
1463
1501
  decorate: jotai_x0.SimpleWritableAtom<((options: {
1464
1502
  editor: PlateEditor;
1465
- entry: _platejs_slate15.NodeEntry;
1466
- }) => _platejs_slate15.TRange[]) | null>;
1503
+ entry: _platejs_slate0.NodeEntry;
1504
+ }) => _platejs_slate0.TRange[]) | null>;
1467
1505
  isMounted: jotai_x0.SimpleWritableAtom<boolean | null>;
1468
1506
  primary: jotai_x0.SimpleWritableAtom<boolean | null>;
1469
1507
  readOnly: jotai_x0.SimpleWritableAtom<boolean | null>;
@@ -1477,59 +1515,59 @@ declare const PlateStoreProvider: React$1.FC<jotai_x0.ProviderProps<{
1477
1515
  versionValue: jotai_x0.SimpleWritableAtom<number | null>;
1478
1516
  onChange: jotai_x0.SimpleWritableAtom<((options: {
1479
1517
  editor: PlateEditor;
1480
- value: _platejs_slate15.Value;
1518
+ value: _platejs_slate0.Value;
1481
1519
  }) => void) | null>;
1482
1520
  onNodeChange: jotai_x0.SimpleWritableAtom<((options: {
1483
1521
  editor: PlateEditor;
1484
- node: _platejs_slate15.Descendant;
1485
- operation: _platejs_slate15.NodeOperation;
1486
- prevNode: _platejs_slate15.Descendant;
1522
+ node: _platejs_slate0.Descendant;
1523
+ operation: _platejs_slate0.NodeOperation;
1524
+ prevNode: _platejs_slate0.Descendant;
1487
1525
  }) => void) | null>;
1488
1526
  onSelectionChange: jotai_x0.SimpleWritableAtom<((options: {
1489
1527
  editor: PlateEditor;
1490
- selection: _platejs_slate15.TSelection;
1528
+ selection: _platejs_slate0.TSelection;
1491
1529
  }) => void) | null>;
1492
1530
  onTextChange: jotai_x0.SimpleWritableAtom<((options: {
1493
1531
  editor: PlateEditor;
1494
- node: _platejs_slate15.Descendant;
1495
- operation: _platejs_slate15.TextOperation;
1532
+ node: _platejs_slate0.Descendant;
1533
+ operation: _platejs_slate0.TextOperation;
1496
1534
  prevText: string;
1497
1535
  text: string;
1498
1536
  }) => void) | null>;
1499
1537
  onValueChange: jotai_x0.SimpleWritableAtom<((options: {
1500
1538
  editor: PlateEditor;
1501
- value: _platejs_slate15.Value;
1539
+ value: _platejs_slate0.Value;
1502
1540
  }) => void) | null>;
1503
1541
  id: jotai_x0.SimpleWritableAtom<string>;
1504
1542
  containerRef: jotai_x0.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
1505
1543
  editor: jotai_x0.SimpleWritableAtom<PlateEditor>;
1506
1544
  scrollRef: jotai_x0.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
1507
1545
  } & {
1508
- trackedEditor: jotai10.Atom<{
1546
+ trackedEditor: jotai0.Atom<{
1509
1547
  editor: any;
1510
1548
  version: number | null;
1511
1549
  }>;
1512
- trackedSelection: jotai10.Atom<{
1550
+ trackedSelection: jotai0.Atom<{
1513
1551
  selection: any;
1514
1552
  version: number | null;
1515
1553
  }>;
1516
- trackedValue: jotai10.Atom<{
1554
+ trackedValue: jotai0.Atom<{
1517
1555
  value: any;
1518
1556
  version: number | null;
1519
1557
  }>;
1520
- })[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;
1521
1559
  equalityFn?: ((prev: S, next: S) => boolean) | undefined;
1522
1560
  } & jotai_x0.UseAtomOptions) | undefined, deps?: unknown[]) => S;
1523
1561
  declare const usePlateStore: (id?: string) => jotai_x0.ReturnOfUseStoreApi<PlateStoreState<PlateEditor>, {
1524
- trackedEditor: jotai10.Atom<{
1562
+ trackedEditor: jotai0.Atom<{
1525
1563
  editor: any;
1526
1564
  version: number | null;
1527
1565
  }>;
1528
- trackedSelection: jotai10.Atom<{
1566
+ trackedSelection: jotai0.Atom<{
1529
1567
  selection: any;
1530
1568
  version: number | null;
1531
1569
  }>;
1532
- trackedValue: jotai10.Atom<{
1570
+ trackedValue: jotai0.Atom<{
1533
1571
  value: any;
1534
1572
  version: number | null;
1535
1573
  }>;
@@ -1630,7 +1668,7 @@ declare const PlateController: React$1.FC<jotai_x0.ProviderProps<{
1630
1668
  activeId: string | null;
1631
1669
  editorStores: Record<string, ({
1632
1670
  get: <Value$1>(atom: Atom<Value$1>) => Value$1;
1633
- 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;
1634
1672
  sub: (atom: Atom<unknown>, listener: () => void) => () => void;
1635
1673
  } & Partial<{
1636
1674
  dev_subscribe_store: (l: (action: {
@@ -1669,12 +1707,12 @@ declare const PlateController: React$1.FC<jotai_x0.ProviderProps<{
1669
1707
  }>) | null>;
1670
1708
  primaryEditorIds: string[];
1671
1709
  }>>, plateControllerStore: jotai_x0.StoreApi<{
1672
- activeId: jotai10.PrimitiveAtom<string | null> & {
1710
+ activeId: jotai0.PrimitiveAtom<string | null> & {
1673
1711
  init: string | null;
1674
1712
  };
1675
- editorStores: jotai10.PrimitiveAtom<Record<string, ({
1713
+ editorStores: jotai0.PrimitiveAtom<Record<string, ({
1676
1714
  get: <Value$1>(atom: Atom<Value$1>) => Value$1;
1677
- 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;
1678
1716
  sub: (atom: Atom<unknown>, listener: () => void) => () => void;
1679
1717
  } & Partial<{
1680
1718
  dev_subscribe_store: (l: (action: {
@@ -1713,7 +1751,7 @@ declare const PlateController: React$1.FC<jotai_x0.ProviderProps<{
1713
1751
  }>) | null>> & {
1714
1752
  init: Record<string, ({
1715
1753
  get: <Value$1>(atom: Atom<Value$1>) => Value$1;
1716
- 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;
1717
1755
  sub: (atom: Atom<unknown>, listener: () => void) => () => void;
1718
1756
  } & Partial<{
1719
1757
  dev_subscribe_store: (l: (action: {
@@ -1751,16 +1789,16 @@ declare const PlateController: React$1.FC<jotai_x0.ProviderProps<{
1751
1789
  dev_restore_atoms: (values: Iterable<readonly [Atom<unknown>, unknown]>) => void;
1752
1790
  }>) | null>;
1753
1791
  };
1754
- primaryEditorIds: jotai10.PrimitiveAtom<string[]> & {
1792
+ primaryEditorIds: jotai0.PrimitiveAtom<string[]> & {
1755
1793
  init: string[];
1756
1794
  };
1757
1795
  }, object, "plateController">, _usePlateControllerStore: jotai_x0.UseStoreApi<{
1758
- activeId: jotai10.PrimitiveAtom<string | null> & {
1796
+ activeId: jotai0.PrimitiveAtom<string | null> & {
1759
1797
  init: string | null;
1760
1798
  };
1761
- editorStores: jotai10.PrimitiveAtom<Record<string, ({
1799
+ editorStores: jotai0.PrimitiveAtom<Record<string, ({
1762
1800
  get: <Value$1>(atom: Atom<Value$1>) => Value$1;
1763
- 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;
1764
1802
  sub: (atom: Atom<unknown>, listener: () => void) => () => void;
1765
1803
  } & Partial<{
1766
1804
  dev_subscribe_store: (l: (action: {
@@ -1799,7 +1837,7 @@ declare const PlateController: React$1.FC<jotai_x0.ProviderProps<{
1799
1837
  }>) | null>> & {
1800
1838
  init: Record<string, ({
1801
1839
  get: <Value$1>(atom: Atom<Value$1>) => Value$1;
1802
- 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;
1803
1841
  sub: (atom: Atom<unknown>, listener: () => void) => () => void;
1804
1842
  } & Partial<{
1805
1843
  dev_subscribe_store: (l: (action: {
@@ -1837,7 +1875,7 @@ declare const PlateController: React$1.FC<jotai_x0.ProviderProps<{
1837
1875
  dev_restore_atoms: (values: Iterable<readonly [Atom<unknown>, unknown]>) => void;
1838
1876
  }>) | null>;
1839
1877
  };
1840
- primaryEditorIds: jotai10.PrimitiveAtom<string[]> & {
1878
+ primaryEditorIds: jotai0.PrimitiveAtom<string[]> & {
1841
1879
  init: string[];
1842
1880
  };
1843
1881
  }, object>;
@@ -1956,7 +1994,7 @@ declare const useEditableProps: ({
1956
1994
  * if another node is updated in a way that affects this node's path, this hook
1957
1995
  * will not return the new path.
1958
1996
  */
1959
- declare const useNodePath: (node: TNode) => _platejs_slate15.Path | undefined;
1997
+ declare const useNodePath: (node: TNode) => _platejs_slate0.Path | undefined;
1960
1998
  //#endregion
1961
1999
  //#region src/react/hooks/useSlateProps.d.ts
1962
2000
  type SlateComponentProps = Omit<React$1.ComponentProps<typeof Slate>, 'children'>;
@@ -1971,7 +2009,7 @@ declare const useSlateProps: ({
1971
2009
  }) => PlateSlateProps;
1972
2010
  //#endregion
1973
2011
  //#region src/react/utils/createPlateFallbackEditor.d.ts
1974
- declare const createPlateFallbackEditor: (options?: CreatePlateEditorOptions) => TPlateEditor<_platejs_slate15.Value, PlateCorePlugin>;
2012
+ declare const createPlateFallbackEditor: (options?: CreatePlateEditorOptions) => TPlateEditor<_platejs_slate0.Value, PlateCorePlugin>;
1975
2013
  //#endregion
1976
2014
  //#region src/react/utils/dom-attributes.d.ts
1977
2015
  declare const DOM_HANDLERS: (keyof DOMHandlers)[];
@@ -1987,6 +2025,7 @@ declare const getRenderNodeProps: ({
1987
2025
  disableInjectNodeProps,
1988
2026
  editor,
1989
2027
  plugin,
2028
+ pluginContext,
1990
2029
  props,
1991
2030
  readOnly
1992
2031
  }: {
@@ -1995,6 +2034,7 @@ declare const getRenderNodeProps: ({
1995
2034
  attributes?: AnyObject;
1996
2035
  disableInjectNodeProps?: boolean;
1997
2036
  plugin?: AnyEditorPlatePlugin;
2037
+ pluginContext?: AnyObject;
1998
2038
  readOnly?: boolean;
1999
2039
  }) => PlateHTMLProps;
2000
2040
  //#endregion
@@ -2042,7 +2082,9 @@ declare const pipeRenderText: (editor: PlateEditor, renderTextProp?: EditablePro
2042
2082
  * element then that JSX element is rendered.
2043
2083
  */
2044
2084
  type RenderElement = (props: PlateElementProps) => React$1.ReactElement<any> | undefined;
2045
- declare function BelowRootNodes(props: any): React$1.JSX.Element;
2085
+ declare function BelowRootNodes({
2086
+ ...props
2087
+ }: any): React$1.JSX.Element;
2046
2088
  /**
2047
2089
  * Get a `Editable.renderElement` handler for `plugin.node.type`. If the type is
2048
2090
  * equals to the slate element type, render `plugin.render.node`. Else, return
@@ -2068,4 +2110,4 @@ type RenderText = (props: PlateTextProps) => React$1.ReactElement<any>;
2068
2110
  */
2069
2111
  declare const pluginRenderText: (editor: PlateEditor, plugin: AnyEditorPlatePlugin) => RenderText;
2070
2112
  //#endregion
2071
- export { AnyEditorPlatePlugin, AnyPlatePlugin, BLUR_EDITOR_EVENT, BelowRootNodes, ContentVisibilityChunk, CreatePlateEditorOptions, DOMHandler, DOMHandlers, DOM_HANDLERS, Decorate, DefaultPlaceholder, Deserializer, Editable, EditableSiblingComponent, EditorHotkeysEffect, EditorMethodsEffect, EditorPlatePlugin, EditorRefEffect, EditorRefPluginEffect, ElementProvider, ElementStoreState, EventEditorPlugin, EventEditorState, EventEditorStore, ExtendEditor, ExtendEditorApi, ExtendEditorTransforms, FOCUS_EDITOR_EVENT, GLOBAL_PLATE_SCOPE, HtmlDeserializer, HtmlReactSerializer, HtmlSerializer, InferConfig, InjectNodeProps, KeyboardHandler, KeyofPlugins, LeafNodeProps, NavigationFeedbackPlugin, NodeProps, NodeWrapperComponent, NodeWrapperComponentProps, NodeWrapperComponentReturnType, NormalizeInitialValue, OnChange, OnNodeChange, OnTextChange, OverrideEditor, PLATE_SCOPE, ParagraphPlugin, Parser, Plate, PlateChangeKey, PlateChunkProps, PlateContainer, PlateContent, PlateContentProps, PlateController, PlateControllerEffect, PlateControllerEffectProps, PlateCorePlugin, PlateEditor, PlateElement, PlateElementProps, PlateHTMLProps, PlateLeaf, PlateLeafProps, PlateNodeProps, PlatePlugin, PlatePluginConfig, PlatePluginContext, PlatePluginMethods, PlatePlugins, PlateProps, PlateSlate, PlateStore, PlateStoreProvider, PlateStoreState, PlateTest, PlateText, PlateTextProps, PlateView, PlateViewProps, ReactPlugin, RenderElement, RenderLeaf, RenderNodeWrapper, RenderNodeWrapperFunction, RenderNodeWrapperProps, type RenderPlaceholderProps, RenderText, SCOPE_ELEMENT, Serializer, Shortcut, Shortcuts, Slate, SlateReactExtensionPlugin, StyledPlateElementProps, StyledPlateLeafProps, StyledPlateTextProps, TPlateEditor, TextNodeProps, TransformOptions, UseEditorSelectorOptions, UseHooks, WithPlateOptions, atom, convertDomEventToSyntheticEvent, createAtomStore, createPlateEditor, createPlateFallbackEditor, createPlatePlugin, createPlateStore, createTPlatePlugin, createZustandStore, elementStore, getEditorPlugin, getEventPlateId, getPlateCorePlugins, getPlugin, getRenderNodeProps, isEventHandled, omitPluginContext, pipeHandler, pipeOnChange, pipeRenderElement, pipeRenderLeaf, pipeRenderText, plateControllerStore, plateStore, pluginRenderElement, pluginRenderLeaf, pluginRenderText, toPlatePlugin, toTPlatePlugin, useComposing, useEditableProps, useEditorComposing, useEditorContainerRef, useEditorId, useEditorMounted, useEditorPlugin, useEditorPluginOption, useEditorPluginOptions, useEditorReadOnly, useEditorRef, useEditorScrollRef, useEditorSelection, useEditorSelector, useEditorState, useEditorValue, useEditorVersion, useElement, useElementSelector, useElementStore, useEventEditorValue, useEventPlateId, useFocusEditorEvents, useFocused, useFocusedLast, useIncrementVersion, useNavigationHighlight, useNodeAttributes, useNodePath, usePath, usePlateControllerExists, usePlateControllerLocalStore, usePlateControllerStore, usePlateEditor, usePlateLocalStore, usePlateSet, usePlateState, usePlateStore, usePlateValue, usePlateViewEditor, usePluginOption, usePluginOptions, useReadOnly, useRedecorate, useScrollRef, useSelected, useSelectionVersion, useSlateProps, useSlateStatic, useStoreAtomState, useStoreAtomValue, useStoreSelect, useStoreSetAtom, useStoreState, useStoreValue, useTracked, useTrackedStore, useValueVersion, withHOC, withPlate, withPlateReact, withReact };
2113
+ export { AnyEditorPlatePlugin, AnyPlatePlugin, BLUR_EDITOR_EVENT, BelowRootNodes, ContentVisibilityChunk, CreatePlateEditorOptions, DOMHandler, DOMHandlers, DOM_HANDLERS, Decorate, DefaultPlaceholder, Deserializer, Editable, EditableSiblingComponent, EditorHotkeysEffect, EditorMethodsEffect, EditorPlatePlugin, EditorRefEffect, EditorRefPluginEffect, ElementProvider, ElementStoreState, EventEditorPlugin, EventEditorState, EventEditorStore, ExtendEditor, ExtendEditorApi, ExtendEditorTransforms, FOCUS_EDITOR_EVENT, FirstBlockEffect, GLOBAL_PLATE_SCOPE, HtmlDeserializer, HtmlReactSerializer, HtmlSerializer, InferConfig, InjectNodeProps, KeyboardHandler, KeyofPlugins, LeafNodeProps, NavigationFeedbackPlugin, NodeProps, NodeWrapperComponent, NodeWrapperComponentProps, NodeWrapperComponentReturnType, NormalizeInitialValue, OnChange, OnNodeChange, OnTextChange, OverrideEditor, PLATE_SCOPE, ParagraphPlugin, Parser, Plate, PlateChangeKey, PlateChunkProps, PlateContainer, PlateContent, PlateContentProps, PlateController, PlateControllerEffect, PlateControllerEffectProps, PlateCorePlugin, PlateEditor, PlateElement, PlateElementProps, PlateHTMLProps, PlateLeaf, PlateLeafProps, PlateNodeProps, PlatePlugin, PlatePluginConfig, PlatePluginContext, PlatePluginMethods, PlatePlugins, PlateProps, PlateSlate, PlateStore, PlateStoreProvider, PlateStoreState, PlateTest, PlateText, PlateTextProps, PlateView, PlateViewProps, ReactPlugin, RenderElement, RenderLeaf, RenderNodeWrapper, RenderNodeWrapperFunction, RenderNodeWrapperProps, type RenderPlaceholderProps, RenderText, SCOPE_ELEMENT, Serializer, Shortcut, Shortcuts, Slate, SlateReactExtensionPlugin, StyledPlateElementProps, StyledPlateLeafProps, StyledPlateTextProps, TPlateEditor, TextNodeProps, TransformInitialValue, TransformOptions, UseEditorSelectorOptions, UseHooks, WithPlateOptions, atom, convertDomEventToSyntheticEvent, createAtomStore, createPlateEditor, createPlateFallbackEditor, createPlatePlugin, createPlateStore, createTPlatePlugin, createZustandStore, elementStore, getEditorPlugin, getEventPlateId, getPlateCorePlugins, getPlugin, getRenderNodeProps, isEventHandled, isHtmlVoidElementTag, omitPluginContext, pipeHandler, pipeOnChange, pipeRenderElement, pipeRenderLeaf, pipeRenderText, plateControllerStore, plateStore, pluginRenderElement, pluginRenderLeaf, pluginRenderText, toPlatePlugin, toTPlatePlugin, useBlockIdAttributeRef, useComposing, useEditableProps, useEditorComposing, useEditorContainerRef, useEditorId, useEditorMounted, useEditorPlugin, useEditorPluginOption, useEditorPluginOptions, useEditorReadOnly, useEditorRef, useEditorScrollRef, useEditorSelection, useEditorSelector, useEditorState, useEditorValue, useEditorVersion, useElement, useElementContext, useElementSelector, useElementStore, useElementStoreContext, useEventEditorValue, useEventPlateId, useFocusEditorEvents, useFocused, useFocusedLast, useIncrementVersion, useNavigationHighlight, useNodeAttributes, useNodePath, usePath, usePlateControllerExists, usePlateControllerLocalStore, usePlateControllerStore, usePlateEditor, usePlateLocalStore, usePlateSet, usePlateState, usePlateStore, usePlateValue, usePlateViewEditor, usePluginOption, usePluginOptions, useReadOnly, useRedecorate, useScrollRef, useSelected, useSelectionVersion, useSlateProps, useSlateStatic, useStoreAtomState, useStoreAtomValue, useStoreSelect, useStoreSetAtom, useStoreState, useStoreValue, useTracked, useTrackedStore, useValueVersion, withElementContext, withHOC, withPlate, withPlateReact, withReact };