@lofcz/platejs-core 52.3.4 → 53.0.0

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,11 +1,11 @@
1
- import { $i as ResetOptions, Ct as NodeComponents, Di as SlatePlugin, Et as PluginConfig, F as RenderLeafProps, I as RenderElementFn, J as BaseEditor, Ji as Descendant$1, L as RenderElementProps, M as RenderTextFn, Mr as ScrollMode, N as RenderTextProps, Nr as WithAutoScrollOptions, Oi as SlatePluginConfig, Ot as WithAnyKey, P as RenderLeafFn, Q as SlateEditor, Qi as Path$1, R as RenderChunkFn, St as NodeComponent, Tt as ParserOptions, U as BaseWithSlateOptions, Va as HandlerReturnType, Vr as InitOptions, Xi as NodeOperation$1, Y as InferPlugins, Yi as NodeEntry$1, Zi as Operation$1, _t as InferOptions, aa as TextOperation$1, at as BasePluginContext, bt as MatchRules, ct as BaseTransformOptions, ea as ScrollIntoViewOptions$1, et as AnyPluginConfig, gt as InferKey, ht as InferApi, ia as TText$1, it as BasePlugin, j as EditableProps, ja as PlateStaticProps, jr as DomConfig, ki as SlatePluginContext, kr as AutoScrollOperationsMap, kt as WithRequiredKey, mt as GetInjectNodePropsReturnType, na as TRange$1, nr as CorePluginApi, nt as BaseHtmlDeserializer, oa as Value$1, pt as GetInjectNodePropsOptions, ra as TSelection$1, ri as AnySlatePlugin, rr as CorePluginTransforms, rt as BaseInjectProps, sa as createStaticEditor, si as ExtendEditor$1, st as BaseSerializer, ta as TElement$1, tr as CorePlugin, tt as BaseDeserializer, vt as InferSelectors, yt as InferTransforms, z as RenderChunkProps, zr as InsertExitBreakOptions } from "../index-NTp--CEF";
2
- import * as _platejs_slate0 from "@platejs/slate";
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, ai as InsertExitBreakOptions, at as BasePluginContext, bt as MatchRules, ct as BaseTransformOptions, ea as SlatePlugin, et as AnyPluginConfig, fi as DomConfig, gt as InferKey, hr as CorePluginTransforms, ht as InferApi, it as BasePlugin, j as EditableProps, ja as ResolvedInputRulesMeta, ko as HandlerReturnType, kt as WithRequiredKey, mi as WithAutoScrollOptions, mr as CorePluginApi, mt as GetInjectNodePropsReturnType, na as SlatePluginContext, nt as BaseHtmlDeserializer, pi as ScrollMode, pr as CorePlugin, pt as GetInjectNodePropsOptions, qr as NavigationFeedbackConfig, ri as LiftBlockOptions, rt as BaseInjectProps, si as InitOptions, st as BaseSerializer, ta as SlatePluginConfig, tt as BaseDeserializer, ui as AutoScrollOperationsMap, va as InputRulesDefinition, vt as InferSelectors, yo as PlateStaticProps, yt as InferTransforms, z as RenderChunkProps } from "../index-C-LKDYK-";
2
+ import * as _platejs_slate5 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, { HTMLAttributes } from "react";
7
7
  import { HotkeysEvent, HotkeysOptions, Keys } from "@udecode/react-hotkeys";
8
- import * as jotai_x98 from "jotai-x";
8
+ import * as jotai_x2 from "jotai-x";
9
9
  import { JotaiStore, createAtomStore, useStoreAtomState, useStoreAtomValue, useStoreSetAtom } from "jotai-x";
10
10
  import * as jotai10 from "jotai";
11
11
  import { Atom, atom } from "jotai";
@@ -16,30 +16,31 @@ import { TCreatedStoreType, TEqualityChecker, createZustandStore, useStoreSelect
16
16
  declare const SlateReactExtensionPlugin: PlatePlugin<PluginConfig<"slateExtension", {
17
17
  onNodeChange: (options: {
18
18
  editor: SlateEditor;
19
- node: Descendant$1;
20
- operation: NodeOperation$1;
21
- prevNode: Descendant$1;
19
+ node: _platejs_slate5.Descendant;
20
+ operation: _platejs_slate5.NodeOperation;
21
+ prevNode: _platejs_slate5.Descendant;
22
22
  }) => void;
23
23
  onTextChange: (options: {
24
24
  editor: SlateEditor;
25
- node: Descendant$1;
26
- operation: TextOperation$1;
25
+ node: _platejs_slate5.Descendant;
26
+ operation: _platejs_slate5.TextOperation;
27
27
  prevText: string;
28
28
  text: string;
29
29
  }) => void;
30
30
  }, {
31
- redecorate: () => void;
31
+ redecorate: (() => void) & (() => void);
32
32
  }, {
33
- reset: (options: ResetOptions | undefined) => void;
33
+ reset: (options: _platejs_slate5.ResetOptions | undefined) => void;
34
34
  init: ((args_0: InitOptions) => void) & ((args_0: InitOptions) => void);
35
35
  insertExitBreak: ((args_0?: InsertExitBreakOptions | undefined) => true | undefined) & ((args_0?: InsertExitBreakOptions | undefined) => true | undefined);
36
+ liftBlock: ((args_0?: LiftBlockOptions | undefined) => true | undefined) & ((args_0?: LiftBlockOptions | undefined) => true | undefined);
36
37
  resetBlock: ((args_0?: {
37
- at?: Path$1;
38
+ at?: _platejs_slate5.Path;
38
39
  } | undefined) => true | undefined) & ((args_0?: {
39
- at?: Path$1;
40
+ at?: _platejs_slate5.Path;
40
41
  } | undefined) => true | undefined);
41
- setValue: ((value?: string | Value$1 | undefined) => void) & ((value?: string | Value$1 | undefined) => void);
42
- apply: <N$1 extends TElement$1 | TText$1>(operation: Operation$1<N$1>) => void;
42
+ setValue: ((value?: string | _platejs_slate5.Value | undefined) => void) & ((value?: string | _platejs_slate5.Value | undefined) => void);
43
+ apply: <N$1 extends _platejs_slate5.TElement | _platejs_slate5.TText>(operation: _platejs_slate5.Operation<N$1>) => void;
43
44
  }, {}>>;
44
45
  //#endregion
45
46
  //#region src/react/plugins/event-editor/EventEditorPlugin.d.ts
@@ -84,6 +85,13 @@ declare const useFocusEditorEvents: ({
84
85
  /** Whether the current editor is the last focused editor. */
85
86
  declare const useFocusedLast: (id?: string) => boolean;
86
87
  //#endregion
88
+ //#region src/react/plugins/navigation-feedback/NavigationFeedbackPlugin.d.ts
89
+ declare const NavigationFeedbackPlugin: PlatePlugin<PluginConfig<any, {}, {}, {}, {}>>;
90
+ //#endregion
91
+ //#region src/react/plugins/navigation-feedback/useNavigationHighlight.d.ts
92
+ type NavigationHighlightTarget = Path | TElement | TText | null | undefined;
93
+ declare const useNavigationHighlight: (target?: NavigationHighlightTarget) => NavigationFeedbackActiveTarget | null;
94
+ //#endregion
87
95
  //#region src/react/plugins/paragraph/ParagraphPlugin.d.ts
88
96
  declare const ParagraphPlugin: PlatePlugin<PluginConfig<"p", {}, {}, {}, {}>>;
89
97
  //#endregion
@@ -92,7 +100,7 @@ declare const ParagraphPlugin: PlatePlugin<PluginConfig<"p", {}, {}, {}, {}>>;
92
100
  declare const ReactPlugin: PlatePlugin<PluginConfig<"dom", {
93
101
  scrollMode?: ScrollMode;
94
102
  scrollOperations?: AutoScrollOperationsMap;
95
- scrollOptions?: ScrollIntoViewOptions$1;
103
+ scrollOptions?: _platejs_slate5.ScrollIntoViewOptions;
96
104
  }, {
97
105
  isScrolling: () => boolean;
98
106
  }, {
@@ -174,6 +182,7 @@ declare const createPlateEditor: <V$1 extends Value = Value, P$1 extends AnyPlug
174
182
  type PlateEditor = BaseEditor & {
175
183
  api: EditorApi & UnionToIntersection<InferApi<PlateCorePlugin>>;
176
184
  meta: BaseEditor['meta'] & {
185
+ inputRules: ResolvedInputRulesMeta;
177
186
  pluginList: AnyEditorPlatePlugin[];
178
187
  shortcuts: Shortcuts;
179
188
  };
@@ -192,6 +201,7 @@ type TPlateEditor<V$1 extends Value = Value, P$1 extends AnyPluginConfig = Plate
192
201
  api: EditorApi<V$1> & UnionToIntersection<InferApi<P$1 | PlateCorePlugin>>;
193
202
  children: V$1;
194
203
  meta: BaseEditor['meta'] & {
204
+ inputRules: ResolvedInputRulesMeta;
195
205
  pluginList: P$1[];
196
206
  shortcuts: Shortcuts;
197
207
  };
@@ -512,6 +522,7 @@ type PlatePlugin<C extends AnyPluginConfig = PluginConfig> = BasePlugin<C> & Nul
512
522
  * method, an API method, or use a custom handler function.
513
523
  */
514
524
  shortcuts: Partial<Record<(string & {}) | Exclude<keyof InferApi<C>[C['key']], keyof InferTransforms<C>[C['key']]> | keyof InferTransforms<C>[C['key']], Shortcut | null>>;
525
+ inputRules: InputRulesDefinition | InputRulesConfig;
515
526
  useOptionsStore: TCreatedStoreType<C['options'], [['zustand/mutative-x', never]]>;
516
527
  };
517
528
  type PlatePluginConfig<K$1 extends string = any, O = {}, A$1 = {}, T = {}, S = {}, EO = {}, EA = {}, ET = {}, ES = {}> = Partial<Omit<PlatePlugin<PluginConfig<K$1, Partial<O>, A$1, T, S>>, keyof PlatePluginMethods | 'api' | 'node' | 'optionsStore' | 'transforms' | 'useOptionsStore'> & {
@@ -792,42 +803,47 @@ declare const createPlatePlugin: <K$1 extends string = any, O = {}, A$1 = {}, T
792
803
  declare function createTPlatePlugin<C extends AnyPluginConfig = PluginConfig>(config?: ((editor: PlateEditor) => TPlatePluginConfig<C>) | TPlatePluginConfig<C>): PlatePlugin<C>;
793
804
  //#endregion
794
805
  //#region src/react/editor/getPlateCorePlugins.d.ts
795
- declare const getPlateCorePlugins: () => (PlatePlugin<PluginConfig<"eventEditor", {}, {}, {}, {}>> | PlatePlugin<PluginConfig<"slateExtension", {
806
+ declare const getPlateCorePlugins: ({
807
+ navigationFeedback
808
+ }?: {
809
+ navigationFeedback?: NavigationFeedbackConfig["options"] | boolean;
810
+ }) => (PlatePlugin<PluginConfig<"eventEditor", {}, {}, {}, {}>> | PlatePlugin<PluginConfig<"slateExtension", {
796
811
  onNodeChange: (options: {
797
812
  editor: SlateEditor;
798
- node: Descendant$1;
799
- operation: NodeOperation$1;
800
- prevNode: Descendant$1;
813
+ node: _platejs_slate5.Descendant;
814
+ operation: _platejs_slate5.NodeOperation;
815
+ prevNode: _platejs_slate5.Descendant;
801
816
  }) => void;
802
817
  onTextChange: (options: {
803
818
  editor: SlateEditor;
804
- node: Descendant$1;
805
- operation: TextOperation$1;
819
+ node: _platejs_slate5.Descendant;
820
+ operation: _platejs_slate5.TextOperation;
806
821
  prevText: string;
807
822
  text: string;
808
823
  }) => void;
809
824
  }, {
810
- redecorate: () => void;
825
+ redecorate: (() => void) & (() => void);
811
826
  }, {
812
- reset: (options: ResetOptions | undefined) => void;
827
+ reset: (options: _platejs_slate5.ResetOptions | undefined) => void;
813
828
  init: ((args_0: InitOptions) => void) & ((args_0: InitOptions) => void);
814
829
  insertExitBreak: ((args_0?: InsertExitBreakOptions | undefined) => true | undefined) & ((args_0?: InsertExitBreakOptions | undefined) => true | undefined);
830
+ liftBlock: ((args_0?: LiftBlockOptions | undefined) => true | undefined) & ((args_0?: LiftBlockOptions | undefined) => true | undefined);
815
831
  resetBlock: ((args_0?: {
816
- at?: Path$1;
832
+ at?: _platejs_slate5.Path;
817
833
  } | undefined) => true | undefined) & ((args_0?: {
818
- at?: Path$1;
834
+ at?: _platejs_slate5.Path;
819
835
  } | undefined) => true | undefined);
820
- setValue: ((value?: string | Value$1 | undefined) => void) & ((value?: string | Value$1 | undefined) => void);
821
- apply: <N$1 extends TElement$1 | TText$1>(operation: Operation$1<N$1>) => void;
836
+ setValue: ((value?: string | _platejs_slate5.Value | undefined) => void) & ((value?: string | _platejs_slate5.Value | undefined) => void);
837
+ apply: <N$1 extends _platejs_slate5.TElement | _platejs_slate5.TText>(operation: _platejs_slate5.Operation<N$1>) => void;
822
838
  }, {}>> | PlatePlugin<PluginConfig<"dom", {
823
839
  scrollMode?: ScrollMode;
824
840
  scrollOperations?: AutoScrollOperationsMap;
825
- scrollOptions?: ScrollIntoViewOptions$1;
841
+ scrollOptions?: _platejs_slate5.ScrollIntoViewOptions;
826
842
  }, {
827
843
  isScrolling: () => boolean;
828
844
  }, {
829
845
  withScrolling: (fn: () => void, options?: WithAutoScrollOptions | undefined) => void;
830
- }, {}>> | PlatePlugin<PluginConfig<"p", {}, {}, {}, {}>>)[];
846
+ }, {}>> | PlatePlugin<PluginConfig<any, {}, {}, {}, {}>> | PlatePlugin<PluginConfig<"p", {}, {}, {}, {}>>)[];
831
847
  //#endregion
832
848
  //#region src/react/editor/usePlateEditor.d.ts
833
849
  /**
@@ -892,7 +908,7 @@ declare function getPlugin<C extends AnyPluginConfig = PluginConfig>(editor: Pla
892
908
  } ? C : PlatePlugin<C>;
893
909
  //#endregion
894
910
  //#region src/react/plugin/omitPluginContext.d.ts
895
- declare const omitPluginContext: <T extends PlatePluginContext<AnyPlatePlugin>>(ctx: T) => Omit<T, "api" | "editor" | "getOptions" | "getOption" | "tf" | "type" | "setOptions" | "setOption" | "plugin">;
911
+ declare const omitPluginContext: <T extends PlatePluginContext<AnyPlatePlugin>>(ctx: T) => Omit<T, "api" | "editor" | "plugin" | "type" | "getOption" | "tf" | "getOptions" | "setOptions" | "setOption">;
896
912
  //#endregion
897
913
  //#region src/react/plugin/toPlatePlugin.d.ts
898
914
  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'> & {
@@ -1049,11 +1065,11 @@ type ElementStoreState = {
1049
1065
  entry: ElementEntry;
1050
1066
  path: Path;
1051
1067
  };
1052
- declare const ElementProvider: React$1.FC<jotai_x98.ProviderProps<{
1068
+ declare const ElementProvider: React$1.FC<jotai_x2.ProviderProps<{
1053
1069
  element: TElement;
1054
1070
  entry: ElementEntry;
1055
1071
  path: Path;
1056
- }>>, elementStore: jotai_x98.StoreApi<ElementStoreState, object, "element">, useElementStore: jotai_x98.UseStoreApi<ElementStoreState, object>;
1072
+ }>>, elementStore: jotai_x2.StoreApi<ElementStoreState, object, "element">, useElementStore: jotai_x2.UseStoreApi<ElementStoreState, object>;
1057
1073
  //#endregion
1058
1074
  //#region src/react/stores/element/usePath.d.ts
1059
1075
  /** Get the memoized path of the closest element. */
@@ -1178,7 +1194,7 @@ declare const createPlateStore: <E extends PlateEditor = PlateEditor>({
1178
1194
  onTextChange,
1179
1195
  onValueChange,
1180
1196
  ...state
1181
- }?: Partial<PlateStoreState<E>>) => jotai_x98.AtomStoreApi<PlateStoreState<E>, {
1197
+ }?: Partial<PlateStoreState<E>>) => jotai_x2.AtomStoreApi<PlateStoreState<E>, {
1182
1198
  trackedEditor: jotai10.Atom<{
1183
1199
  editor: any;
1184
1200
  version: number | null;
@@ -1192,12 +1208,12 @@ declare const createPlateStore: <E extends PlateEditor = PlateEditor>({
1192
1208
  version: number | null;
1193
1209
  }>;
1194
1210
  }, "plate">;
1195
- declare const PlateStoreProvider: React$1.FC<jotai_x98.ProviderProps<{
1211
+ declare const PlateStoreProvider: React$1.FC<jotai_x2.ProviderProps<{
1196
1212
  composing: boolean | null;
1197
1213
  decorate: ((options: {
1198
1214
  editor: PlateEditor;
1199
- entry: NodeEntry$1;
1200
- }) => TRange$1[]) | null;
1215
+ entry: _platejs_slate5.NodeEntry;
1216
+ }) => _platejs_slate5.TRange[]) | null;
1201
1217
  isMounted: boolean | null;
1202
1218
  primary: boolean | null;
1203
1219
  readOnly: boolean | null;
@@ -1211,34 +1227,34 @@ declare const PlateStoreProvider: React$1.FC<jotai_x98.ProviderProps<{
1211
1227
  versionValue: number | null;
1212
1228
  onChange: ((options: {
1213
1229
  editor: PlateEditor;
1214
- value: Value$1;
1230
+ value: _platejs_slate5.Value;
1215
1231
  }) => void) | null;
1216
1232
  onNodeChange: ((options: {
1217
1233
  editor: PlateEditor;
1218
- node: Descendant$1;
1219
- operation: NodeOperation$1;
1220
- prevNode: Descendant$1;
1234
+ node: _platejs_slate5.Descendant;
1235
+ operation: _platejs_slate5.NodeOperation;
1236
+ prevNode: _platejs_slate5.Descendant;
1221
1237
  }) => void) | null;
1222
1238
  onSelectionChange: ((options: {
1223
1239
  editor: PlateEditor;
1224
- selection: TSelection$1;
1240
+ selection: _platejs_slate5.TSelection;
1225
1241
  }) => void) | null;
1226
1242
  onTextChange: ((options: {
1227
1243
  editor: PlateEditor;
1228
- node: Descendant$1;
1229
- operation: TextOperation$1;
1244
+ node: _platejs_slate5.Descendant;
1245
+ operation: _platejs_slate5.TextOperation;
1230
1246
  prevText: string;
1231
1247
  text: string;
1232
1248
  }) => void) | null;
1233
1249
  onValueChange: ((options: {
1234
1250
  editor: PlateEditor;
1235
- value: Value$1;
1251
+ value: _platejs_slate5.Value;
1236
1252
  }) => void) | null;
1237
1253
  id: string;
1238
1254
  containerRef: React$1.RefObject<HTMLDivElement | null>;
1239
1255
  editor: PlateEditor;
1240
1256
  scrollRef: React$1.RefObject<HTMLDivElement | null>;
1241
- }>>, plateStore: jotai_x98.StoreApi<PlateStoreState<PlateEditor>, {
1257
+ }>>, plateStore: jotai_x2.StoreApi<PlateStoreState<PlateEditor>, {
1242
1258
  trackedEditor: jotai10.Atom<{
1243
1259
  editor: any;
1244
1260
  version: number | null;
@@ -1251,52 +1267,52 @@ declare const PlateStoreProvider: React$1.FC<jotai_x98.ProviderProps<{
1251
1267
  value: any;
1252
1268
  version: number | null;
1253
1269
  }>;
1254
- }, "plate">, usePlateLocalSet: <K$1 extends "decorate" | "renderElement" | "renderLeaf" | "editor" | "id" | "onChange" | "renderText" | "readOnly" | "composing" | "isMounted" | "primary" | "renderChunk" | "versionDecorate" | "versionEditor" | "versionSelection" | "versionValue" | "onNodeChange" | "onSelectionChange" | "onTextChange" | "onValueChange" | "containerRef" | "scrollRef" | "trackedEditor" | "trackedSelection" | "trackedValue">(key: K$1, options?: string | jotai_x98.UseAtomOptions) => ({
1255
- composing: jotai_x98.SimpleWritableAtom<boolean | null>;
1256
- decorate: jotai_x98.SimpleWritableAtom<((options: {
1270
+ }, "plate">, usePlateLocalSet: <K$1 extends "decorate" | "renderElement" | "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_x2.UseAtomOptions) => ({
1271
+ composing: jotai_x2.SimpleWritableAtom<boolean | null>;
1272
+ decorate: jotai_x2.SimpleWritableAtom<((options: {
1257
1273
  editor: PlateEditor;
1258
- entry: NodeEntry$1;
1259
- }) => TRange$1[]) | null>;
1260
- isMounted: jotai_x98.SimpleWritableAtom<boolean | null>;
1261
- primary: jotai_x98.SimpleWritableAtom<boolean | null>;
1262
- readOnly: jotai_x98.SimpleWritableAtom<boolean | null>;
1263
- renderChunk: jotai_x98.SimpleWritableAtom<RenderChunkFn | null>;
1264
- renderElement: jotai_x98.SimpleWritableAtom<RenderElementFn | null>;
1265
- renderLeaf: jotai_x98.SimpleWritableAtom<RenderLeafFn | null>;
1266
- renderText: jotai_x98.SimpleWritableAtom<RenderTextFn | null>;
1267
- versionDecorate: jotai_x98.SimpleWritableAtom<number | null>;
1268
- versionEditor: jotai_x98.SimpleWritableAtom<number | null>;
1269
- versionSelection: jotai_x98.SimpleWritableAtom<number | null>;
1270
- versionValue: jotai_x98.SimpleWritableAtom<number | null>;
1271
- onChange: jotai_x98.SimpleWritableAtom<((options: {
1274
+ entry: _platejs_slate5.NodeEntry;
1275
+ }) => _platejs_slate5.TRange[]) | null>;
1276
+ isMounted: jotai_x2.SimpleWritableAtom<boolean | null>;
1277
+ primary: jotai_x2.SimpleWritableAtom<boolean | null>;
1278
+ readOnly: jotai_x2.SimpleWritableAtom<boolean | null>;
1279
+ renderChunk: jotai_x2.SimpleWritableAtom<RenderChunkFn | null>;
1280
+ renderElement: jotai_x2.SimpleWritableAtom<RenderElementFn | null>;
1281
+ renderLeaf: jotai_x2.SimpleWritableAtom<RenderLeafFn | null>;
1282
+ renderText: jotai_x2.SimpleWritableAtom<RenderTextFn | null>;
1283
+ versionDecorate: jotai_x2.SimpleWritableAtom<number | null>;
1284
+ versionEditor: jotai_x2.SimpleWritableAtom<number | null>;
1285
+ versionSelection: jotai_x2.SimpleWritableAtom<number | null>;
1286
+ versionValue: jotai_x2.SimpleWritableAtom<number | null>;
1287
+ onChange: jotai_x2.SimpleWritableAtom<((options: {
1272
1288
  editor: PlateEditor;
1273
- value: Value$1;
1289
+ value: _platejs_slate5.Value;
1274
1290
  }) => void) | null>;
1275
- onNodeChange: jotai_x98.SimpleWritableAtom<((options: {
1291
+ onNodeChange: jotai_x2.SimpleWritableAtom<((options: {
1276
1292
  editor: PlateEditor;
1277
- node: Descendant$1;
1278
- operation: NodeOperation$1;
1279
- prevNode: Descendant$1;
1293
+ node: _platejs_slate5.Descendant;
1294
+ operation: _platejs_slate5.NodeOperation;
1295
+ prevNode: _platejs_slate5.Descendant;
1280
1296
  }) => void) | null>;
1281
- onSelectionChange: jotai_x98.SimpleWritableAtom<((options: {
1297
+ onSelectionChange: jotai_x2.SimpleWritableAtom<((options: {
1282
1298
  editor: PlateEditor;
1283
- selection: TSelection$1;
1299
+ selection: _platejs_slate5.TSelection;
1284
1300
  }) => void) | null>;
1285
- onTextChange: jotai_x98.SimpleWritableAtom<((options: {
1301
+ onTextChange: jotai_x2.SimpleWritableAtom<((options: {
1286
1302
  editor: PlateEditor;
1287
- node: Descendant$1;
1288
- operation: TextOperation$1;
1303
+ node: _platejs_slate5.Descendant;
1304
+ operation: _platejs_slate5.TextOperation;
1289
1305
  prevText: string;
1290
1306
  text: string;
1291
1307
  }) => void) | null>;
1292
- onValueChange: jotai_x98.SimpleWritableAtom<((options: {
1308
+ onValueChange: jotai_x2.SimpleWritableAtom<((options: {
1293
1309
  editor: PlateEditor;
1294
- value: Value$1;
1310
+ value: _platejs_slate5.Value;
1295
1311
  }) => void) | null>;
1296
- id: jotai_x98.SimpleWritableAtom<string>;
1297
- containerRef: jotai_x98.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
1298
- editor: jotai_x98.SimpleWritableAtom<PlateEditor>;
1299
- scrollRef: jotai_x98.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
1312
+ id: jotai_x2.SimpleWritableAtom<string>;
1313
+ containerRef: jotai_x2.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
1314
+ editor: jotai_x2.SimpleWritableAtom<PlateEditor>;
1315
+ scrollRef: jotai_x2.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
1300
1316
  } & {
1301
1317
  trackedEditor: jotai10.Atom<{
1302
1318
  editor: any;
@@ -1310,52 +1326,52 @@ declare const PlateStoreProvider: React$1.FC<jotai_x98.ProviderProps<{
1310
1326
  value: any;
1311
1327
  version: number | null;
1312
1328
  }>;
1313
- })[K$1] extends jotai10.WritableAtom<infer _V, infer A extends unknown[], infer R> ? (...args: A) => R : never, usePlateLocalState: <K$1 extends "decorate" | "renderElement" | "renderLeaf" | "editor" | "id" | "onChange" | "renderText" | "readOnly" | "composing" | "isMounted" | "primary" | "renderChunk" | "versionDecorate" | "versionEditor" | "versionSelection" | "versionValue" | "onNodeChange" | "onSelectionChange" | "onTextChange" | "onValueChange" | "containerRef" | "scrollRef" | "trackedEditor" | "trackedSelection" | "trackedValue">(key: K$1, options?: string | jotai_x98.UseAtomOptions) => ({
1314
- composing: jotai_x98.SimpleWritableAtom<boolean | null>;
1315
- decorate: jotai_x98.SimpleWritableAtom<((options: {
1329
+ })[K$1] extends jotai10.WritableAtom<infer _V, infer A extends unknown[], infer R> ? (...args: A) => R : never, usePlateLocalState: <K$1 extends "decorate" | "renderElement" | "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_x2.UseAtomOptions) => ({
1330
+ composing: jotai_x2.SimpleWritableAtom<boolean | null>;
1331
+ decorate: jotai_x2.SimpleWritableAtom<((options: {
1316
1332
  editor: PlateEditor;
1317
- entry: NodeEntry$1;
1318
- }) => TRange$1[]) | null>;
1319
- isMounted: jotai_x98.SimpleWritableAtom<boolean | null>;
1320
- primary: jotai_x98.SimpleWritableAtom<boolean | null>;
1321
- readOnly: jotai_x98.SimpleWritableAtom<boolean | null>;
1322
- renderChunk: jotai_x98.SimpleWritableAtom<RenderChunkFn | null>;
1323
- renderElement: jotai_x98.SimpleWritableAtom<RenderElementFn | null>;
1324
- renderLeaf: jotai_x98.SimpleWritableAtom<RenderLeafFn | null>;
1325
- renderText: jotai_x98.SimpleWritableAtom<RenderTextFn | null>;
1326
- versionDecorate: jotai_x98.SimpleWritableAtom<number | null>;
1327
- versionEditor: jotai_x98.SimpleWritableAtom<number | null>;
1328
- versionSelection: jotai_x98.SimpleWritableAtom<number | null>;
1329
- versionValue: jotai_x98.SimpleWritableAtom<number | null>;
1330
- onChange: jotai_x98.SimpleWritableAtom<((options: {
1333
+ entry: _platejs_slate5.NodeEntry;
1334
+ }) => _platejs_slate5.TRange[]) | null>;
1335
+ isMounted: jotai_x2.SimpleWritableAtom<boolean | null>;
1336
+ primary: jotai_x2.SimpleWritableAtom<boolean | null>;
1337
+ readOnly: jotai_x2.SimpleWritableAtom<boolean | null>;
1338
+ renderChunk: jotai_x2.SimpleWritableAtom<RenderChunkFn | null>;
1339
+ renderElement: jotai_x2.SimpleWritableAtom<RenderElementFn | null>;
1340
+ renderLeaf: jotai_x2.SimpleWritableAtom<RenderLeafFn | null>;
1341
+ renderText: jotai_x2.SimpleWritableAtom<RenderTextFn | null>;
1342
+ versionDecorate: jotai_x2.SimpleWritableAtom<number | null>;
1343
+ versionEditor: jotai_x2.SimpleWritableAtom<number | null>;
1344
+ versionSelection: jotai_x2.SimpleWritableAtom<number | null>;
1345
+ versionValue: jotai_x2.SimpleWritableAtom<number | null>;
1346
+ onChange: jotai_x2.SimpleWritableAtom<((options: {
1331
1347
  editor: PlateEditor;
1332
- value: Value$1;
1348
+ value: _platejs_slate5.Value;
1333
1349
  }) => void) | null>;
1334
- onNodeChange: jotai_x98.SimpleWritableAtom<((options: {
1350
+ onNodeChange: jotai_x2.SimpleWritableAtom<((options: {
1335
1351
  editor: PlateEditor;
1336
- node: Descendant$1;
1337
- operation: NodeOperation$1;
1338
- prevNode: Descendant$1;
1352
+ node: _platejs_slate5.Descendant;
1353
+ operation: _platejs_slate5.NodeOperation;
1354
+ prevNode: _platejs_slate5.Descendant;
1339
1355
  }) => void) | null>;
1340
- onSelectionChange: jotai_x98.SimpleWritableAtom<((options: {
1356
+ onSelectionChange: jotai_x2.SimpleWritableAtom<((options: {
1341
1357
  editor: PlateEditor;
1342
- selection: TSelection$1;
1358
+ selection: _platejs_slate5.TSelection;
1343
1359
  }) => void) | null>;
1344
- onTextChange: jotai_x98.SimpleWritableAtom<((options: {
1360
+ onTextChange: jotai_x2.SimpleWritableAtom<((options: {
1345
1361
  editor: PlateEditor;
1346
- node: Descendant$1;
1347
- operation: TextOperation$1;
1362
+ node: _platejs_slate5.Descendant;
1363
+ operation: _platejs_slate5.TextOperation;
1348
1364
  prevText: string;
1349
1365
  text: string;
1350
1366
  }) => void) | null>;
1351
- onValueChange: jotai_x98.SimpleWritableAtom<((options: {
1367
+ onValueChange: jotai_x2.SimpleWritableAtom<((options: {
1352
1368
  editor: PlateEditor;
1353
- value: Value$1;
1369
+ value: _platejs_slate5.Value;
1354
1370
  }) => void) | null>;
1355
- id: jotai_x98.SimpleWritableAtom<string>;
1356
- containerRef: jotai_x98.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
1357
- editor: jotai_x98.SimpleWritableAtom<PlateEditor>;
1358
- scrollRef: jotai_x98.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
1371
+ id: jotai_x2.SimpleWritableAtom<string>;
1372
+ containerRef: jotai_x2.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
1373
+ editor: jotai_x2.SimpleWritableAtom<PlateEditor>;
1374
+ scrollRef: jotai_x2.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
1359
1375
  } & {
1360
1376
  trackedEditor: jotai10.Atom<{
1361
1377
  editor: any;
@@ -1369,7 +1385,7 @@ declare const PlateStoreProvider: React$1.FC<jotai_x98.ProviderProps<{
1369
1385
  value: any;
1370
1386
  version: number | null;
1371
1387
  }>;
1372
- })[K$1] extends jotai10.WritableAtom<infer V, infer A extends unknown[], infer R> ? [V, (...args: A) => R] : never, usePlateLocalStore: jotai_x98.UseStoreApi<PlateStoreState<PlateEditor>, {
1388
+ })[K$1] extends jotai10.WritableAtom<infer V, infer A extends unknown[], infer R> ? [V, (...args: A) => R] : never, usePlateLocalStore: jotai_x2.UseStoreApi<PlateStoreState<PlateEditor>, {
1373
1389
  trackedEditor: jotai10.Atom<{
1374
1390
  editor: any;
1375
1391
  version: number | null;
@@ -1382,52 +1398,52 @@ declare const PlateStoreProvider: React$1.FC<jotai_x98.ProviderProps<{
1382
1398
  value: any;
1383
1399
  version: number | null;
1384
1400
  }>;
1385
- }>, usePlateLocalValue: <K$1 extends "decorate" | "renderElement" | "renderLeaf" | "editor" | "id" | "onChange" | "renderText" | "readOnly" | "composing" | "isMounted" | "primary" | "renderChunk" | "versionDecorate" | "versionEditor" | "versionSelection" | "versionValue" | "onNodeChange" | "onSelectionChange" | "onTextChange" | "onValueChange" | "containerRef" | "scrollRef" | "trackedEditor" | "trackedSelection" | "trackedValue", S = (({
1386
- composing: jotai_x98.SimpleWritableAtom<boolean | null>;
1387
- decorate: jotai_x98.SimpleWritableAtom<((options: {
1401
+ }>, usePlateLocalValue: <K$1 extends "decorate" | "renderElement" | "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
+ composing: jotai_x2.SimpleWritableAtom<boolean | null>;
1403
+ decorate: jotai_x2.SimpleWritableAtom<((options: {
1388
1404
  editor: PlateEditor;
1389
- entry: NodeEntry$1;
1390
- }) => TRange$1[]) | null>;
1391
- isMounted: jotai_x98.SimpleWritableAtom<boolean | null>;
1392
- primary: jotai_x98.SimpleWritableAtom<boolean | null>;
1393
- readOnly: jotai_x98.SimpleWritableAtom<boolean | null>;
1394
- renderChunk: jotai_x98.SimpleWritableAtom<RenderChunkFn | null>;
1395
- renderElement: jotai_x98.SimpleWritableAtom<RenderElementFn | null>;
1396
- renderLeaf: jotai_x98.SimpleWritableAtom<RenderLeafFn | null>;
1397
- renderText: jotai_x98.SimpleWritableAtom<RenderTextFn | null>;
1398
- versionDecorate: jotai_x98.SimpleWritableAtom<number | null>;
1399
- versionEditor: jotai_x98.SimpleWritableAtom<number | null>;
1400
- versionSelection: jotai_x98.SimpleWritableAtom<number | null>;
1401
- versionValue: jotai_x98.SimpleWritableAtom<number | null>;
1402
- onChange: jotai_x98.SimpleWritableAtom<((options: {
1405
+ entry: _platejs_slate5.NodeEntry;
1406
+ }) => _platejs_slate5.TRange[]) | null>;
1407
+ isMounted: jotai_x2.SimpleWritableAtom<boolean | null>;
1408
+ primary: jotai_x2.SimpleWritableAtom<boolean | null>;
1409
+ readOnly: jotai_x2.SimpleWritableAtom<boolean | null>;
1410
+ renderChunk: jotai_x2.SimpleWritableAtom<RenderChunkFn | null>;
1411
+ renderElement: jotai_x2.SimpleWritableAtom<RenderElementFn | null>;
1412
+ renderLeaf: jotai_x2.SimpleWritableAtom<RenderLeafFn | null>;
1413
+ renderText: jotai_x2.SimpleWritableAtom<RenderTextFn | null>;
1414
+ versionDecorate: jotai_x2.SimpleWritableAtom<number | null>;
1415
+ versionEditor: jotai_x2.SimpleWritableAtom<number | null>;
1416
+ versionSelection: jotai_x2.SimpleWritableAtom<number | null>;
1417
+ versionValue: jotai_x2.SimpleWritableAtom<number | null>;
1418
+ onChange: jotai_x2.SimpleWritableAtom<((options: {
1403
1419
  editor: PlateEditor;
1404
- value: Value$1;
1420
+ value: _platejs_slate5.Value;
1405
1421
  }) => void) | null>;
1406
- onNodeChange: jotai_x98.SimpleWritableAtom<((options: {
1422
+ onNodeChange: jotai_x2.SimpleWritableAtom<((options: {
1407
1423
  editor: PlateEditor;
1408
- node: Descendant$1;
1409
- operation: NodeOperation$1;
1410
- prevNode: Descendant$1;
1424
+ node: _platejs_slate5.Descendant;
1425
+ operation: _platejs_slate5.NodeOperation;
1426
+ prevNode: _platejs_slate5.Descendant;
1411
1427
  }) => void) | null>;
1412
- onSelectionChange: jotai_x98.SimpleWritableAtom<((options: {
1428
+ onSelectionChange: jotai_x2.SimpleWritableAtom<((options: {
1413
1429
  editor: PlateEditor;
1414
- selection: TSelection$1;
1430
+ selection: _platejs_slate5.TSelection;
1415
1431
  }) => void) | null>;
1416
- onTextChange: jotai_x98.SimpleWritableAtom<((options: {
1432
+ onTextChange: jotai_x2.SimpleWritableAtom<((options: {
1417
1433
  editor: PlateEditor;
1418
- node: Descendant$1;
1419
- operation: TextOperation$1;
1434
+ node: _platejs_slate5.Descendant;
1435
+ operation: _platejs_slate5.TextOperation;
1420
1436
  prevText: string;
1421
1437
  text: string;
1422
1438
  }) => void) | null>;
1423
- onValueChange: jotai_x98.SimpleWritableAtom<((options: {
1439
+ onValueChange: jotai_x2.SimpleWritableAtom<((options: {
1424
1440
  editor: PlateEditor;
1425
- value: Value$1;
1441
+ value: _platejs_slate5.Value;
1426
1442
  }) => void) | null>;
1427
- id: jotai_x98.SimpleWritableAtom<string>;
1428
- containerRef: jotai_x98.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
1429
- editor: jotai_x98.SimpleWritableAtom<PlateEditor>;
1430
- scrollRef: jotai_x98.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
1443
+ id: jotai_x2.SimpleWritableAtom<string>;
1444
+ containerRef: jotai_x2.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
1445
+ editor: jotai_x2.SimpleWritableAtom<PlateEditor>;
1446
+ scrollRef: jotai_x2.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
1431
1447
  } & {
1432
1448
  trackedEditor: jotai10.Atom<{
1433
1449
  editor: any;
@@ -1443,51 +1459,51 @@ declare const PlateStoreProvider: React$1.FC<jotai_x98.ProviderProps<{
1443
1459
  }>;
1444
1460
  })[K$1] extends jotai10.Atom<infer V> ? V : never)>(key: K$1, options?: ({
1445
1461
  selector?: ((v: ({
1446
- composing: jotai_x98.SimpleWritableAtom<boolean | null>;
1447
- decorate: jotai_x98.SimpleWritableAtom<((options: {
1462
+ composing: jotai_x2.SimpleWritableAtom<boolean | null>;
1463
+ decorate: jotai_x2.SimpleWritableAtom<((options: {
1448
1464
  editor: PlateEditor;
1449
- entry: NodeEntry$1;
1450
- }) => TRange$1[]) | null>;
1451
- isMounted: jotai_x98.SimpleWritableAtom<boolean | null>;
1452
- primary: jotai_x98.SimpleWritableAtom<boolean | null>;
1453
- readOnly: jotai_x98.SimpleWritableAtom<boolean | null>;
1454
- renderChunk: jotai_x98.SimpleWritableAtom<RenderChunkFn | null>;
1455
- renderElement: jotai_x98.SimpleWritableAtom<RenderElementFn | null>;
1456
- renderLeaf: jotai_x98.SimpleWritableAtom<RenderLeafFn | null>;
1457
- renderText: jotai_x98.SimpleWritableAtom<RenderTextFn | null>;
1458
- versionDecorate: jotai_x98.SimpleWritableAtom<number | null>;
1459
- versionEditor: jotai_x98.SimpleWritableAtom<number | null>;
1460
- versionSelection: jotai_x98.SimpleWritableAtom<number | null>;
1461
- versionValue: jotai_x98.SimpleWritableAtom<number | null>;
1462
- onChange: jotai_x98.SimpleWritableAtom<((options: {
1465
+ entry: _platejs_slate5.NodeEntry;
1466
+ }) => _platejs_slate5.TRange[]) | null>;
1467
+ isMounted: jotai_x2.SimpleWritableAtom<boolean | null>;
1468
+ primary: jotai_x2.SimpleWritableAtom<boolean | null>;
1469
+ readOnly: jotai_x2.SimpleWritableAtom<boolean | null>;
1470
+ renderChunk: jotai_x2.SimpleWritableAtom<RenderChunkFn | null>;
1471
+ renderElement: jotai_x2.SimpleWritableAtom<RenderElementFn | null>;
1472
+ renderLeaf: jotai_x2.SimpleWritableAtom<RenderLeafFn | null>;
1473
+ renderText: jotai_x2.SimpleWritableAtom<RenderTextFn | null>;
1474
+ versionDecorate: jotai_x2.SimpleWritableAtom<number | null>;
1475
+ versionEditor: jotai_x2.SimpleWritableAtom<number | null>;
1476
+ versionSelection: jotai_x2.SimpleWritableAtom<number | null>;
1477
+ versionValue: jotai_x2.SimpleWritableAtom<number | null>;
1478
+ onChange: jotai_x2.SimpleWritableAtom<((options: {
1463
1479
  editor: PlateEditor;
1464
- value: Value$1;
1480
+ value: _platejs_slate5.Value;
1465
1481
  }) => void) | null>;
1466
- onNodeChange: jotai_x98.SimpleWritableAtom<((options: {
1482
+ onNodeChange: jotai_x2.SimpleWritableAtom<((options: {
1467
1483
  editor: PlateEditor;
1468
- node: Descendant$1;
1469
- operation: NodeOperation$1;
1470
- prevNode: Descendant$1;
1484
+ node: _platejs_slate5.Descendant;
1485
+ operation: _platejs_slate5.NodeOperation;
1486
+ prevNode: _platejs_slate5.Descendant;
1471
1487
  }) => void) | null>;
1472
- onSelectionChange: jotai_x98.SimpleWritableAtom<((options: {
1488
+ onSelectionChange: jotai_x2.SimpleWritableAtom<((options: {
1473
1489
  editor: PlateEditor;
1474
- selection: TSelection$1;
1490
+ selection: _platejs_slate5.TSelection;
1475
1491
  }) => void) | null>;
1476
- onTextChange: jotai_x98.SimpleWritableAtom<((options: {
1492
+ onTextChange: jotai_x2.SimpleWritableAtom<((options: {
1477
1493
  editor: PlateEditor;
1478
- node: Descendant$1;
1479
- operation: TextOperation$1;
1494
+ node: _platejs_slate5.Descendant;
1495
+ operation: _platejs_slate5.TextOperation;
1480
1496
  prevText: string;
1481
1497
  text: string;
1482
1498
  }) => void) | null>;
1483
- onValueChange: jotai_x98.SimpleWritableAtom<((options: {
1499
+ onValueChange: jotai_x2.SimpleWritableAtom<((options: {
1484
1500
  editor: PlateEditor;
1485
- value: Value$1;
1501
+ value: _platejs_slate5.Value;
1486
1502
  }) => void) | null>;
1487
- id: jotai_x98.SimpleWritableAtom<string>;
1488
- containerRef: jotai_x98.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
1489
- editor: jotai_x98.SimpleWritableAtom<PlateEditor>;
1490
- scrollRef: jotai_x98.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
1503
+ id: jotai_x2.SimpleWritableAtom<string>;
1504
+ containerRef: jotai_x2.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
1505
+ editor: jotai_x2.SimpleWritableAtom<PlateEditor>;
1506
+ scrollRef: jotai_x2.SimpleWritableAtom<React$1.RefObject<HTMLDivElement | null>>;
1491
1507
  } & {
1492
1508
  trackedEditor: jotai10.Atom<{
1493
1509
  editor: any;
@@ -1503,8 +1519,8 @@ declare const PlateStoreProvider: React$1.FC<jotai_x98.ProviderProps<{
1503
1519
  }>;
1504
1520
  })[K$1] extends jotai10.Atom<infer V_1> ? V_1 : never, prevSelectorOutput?: S | undefined) => S) | undefined;
1505
1521
  equalityFn?: ((prev: S, next: S) => boolean) | undefined;
1506
- } & jotai_x98.UseAtomOptions) | undefined, deps?: unknown[]) => S;
1507
- declare const usePlateStore: (id?: string) => jotai_x98.ReturnOfUseStoreApi<PlateStoreState<PlateEditor>, {
1522
+ } & jotai_x2.UseAtomOptions) | undefined, deps?: unknown[]) => S;
1523
+ declare const usePlateStore: (id?: string) => jotai_x2.ReturnOfUseStoreApi<PlateStoreState<PlateEditor>, {
1508
1524
  trackedEditor: jotai10.Atom<{
1509
1525
  editor: any;
1510
1526
  version: number | null;
@@ -1610,11 +1626,11 @@ declare function useEditorPluginOptions<C extends AnyPluginConfig, U>(editor: Pl
1610
1626
  }): U;
1611
1627
  //#endregion
1612
1628
  //#region src/react/stores/plate-controller/plateControllerStore.d.ts
1613
- declare const PlateController: React$1.FC<jotai_x98.ProviderProps<{
1629
+ declare const PlateController: React$1.FC<jotai_x2.ProviderProps<{
1614
1630
  activeId: string | null;
1615
1631
  editorStores: Record<string, ({
1616
- get: <Value$2>(atom: Atom<Value$2>) => Value$2;
1617
- set: <Value$2, Args extends unknown[], Result>(atom: jotai10.WritableAtom<Value$2, Args, Result>, ...args: Args) => Result;
1632
+ 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;
1618
1634
  sub: (atom: Atom<unknown>, listener: () => void) => () => void;
1619
1635
  } & Partial<{
1620
1636
  dev_subscribe_store: (l: (action: {
@@ -1652,13 +1668,13 @@ declare const PlateController: React$1.FC<jotai_x98.ProviderProps<{
1652
1668
  dev_restore_atoms: (values: Iterable<readonly [Atom<unknown>, unknown]>) => void;
1653
1669
  }>) | null>;
1654
1670
  primaryEditorIds: string[];
1655
- }>>, plateControllerStore: jotai_x98.StoreApi<{
1671
+ }>>, plateControllerStore: jotai_x2.StoreApi<{
1656
1672
  activeId: jotai10.PrimitiveAtom<string | null> & {
1657
1673
  init: string | null;
1658
1674
  };
1659
1675
  editorStores: jotai10.PrimitiveAtom<Record<string, ({
1660
- get: <Value$2>(atom: Atom<Value$2>) => Value$2;
1661
- set: <Value$2, Args extends unknown[], Result>(atom: jotai10.WritableAtom<Value$2, Args, Result>, ...args: Args) => Result;
1676
+ 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;
1662
1678
  sub: (atom: Atom<unknown>, listener: () => void) => () => void;
1663
1679
  } & Partial<{
1664
1680
  dev_subscribe_store: (l: (action: {
@@ -1696,8 +1712,8 @@ declare const PlateController: React$1.FC<jotai_x98.ProviderProps<{
1696
1712
  dev_restore_atoms: (values: Iterable<readonly [Atom<unknown>, unknown]>) => void;
1697
1713
  }>) | null>> & {
1698
1714
  init: Record<string, ({
1699
- get: <Value$2>(atom: Atom<Value$2>) => Value$2;
1700
- set: <Value$2, Args extends unknown[], Result>(atom: jotai10.WritableAtom<Value$2, Args, Result>, ...args: Args) => Result;
1715
+ 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;
1701
1717
  sub: (atom: Atom<unknown>, listener: () => void) => () => void;
1702
1718
  } & Partial<{
1703
1719
  dev_subscribe_store: (l: (action: {
@@ -1738,13 +1754,13 @@ declare const PlateController: React$1.FC<jotai_x98.ProviderProps<{
1738
1754
  primaryEditorIds: jotai10.PrimitiveAtom<string[]> & {
1739
1755
  init: string[];
1740
1756
  };
1741
- }, object, "plateController">, _usePlateControllerStore: jotai_x98.UseStoreApi<{
1757
+ }, object, "plateController">, _usePlateControllerStore: jotai_x2.UseStoreApi<{
1742
1758
  activeId: jotai10.PrimitiveAtom<string | null> & {
1743
1759
  init: string | null;
1744
1760
  };
1745
1761
  editorStores: jotai10.PrimitiveAtom<Record<string, ({
1746
- get: <Value$2>(atom: Atom<Value$2>) => Value$2;
1747
- set: <Value$2, Args extends unknown[], Result>(atom: jotai10.WritableAtom<Value$2, Args, Result>, ...args: Args) => Result;
1762
+ 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;
1748
1764
  sub: (atom: Atom<unknown>, listener: () => void) => () => void;
1749
1765
  } & Partial<{
1750
1766
  dev_subscribe_store: (l: (action: {
@@ -1782,8 +1798,8 @@ declare const PlateController: React$1.FC<jotai_x98.ProviderProps<{
1782
1798
  dev_restore_atoms: (values: Iterable<readonly [Atom<unknown>, unknown]>) => void;
1783
1799
  }>) | null>> & {
1784
1800
  init: Record<string, ({
1785
- get: <Value$2>(atom: Atom<Value$2>) => Value$2;
1786
- set: <Value$2, Args extends unknown[], Result>(atom: jotai10.WritableAtom<Value$2, Args, Result>, ...args: Args) => Result;
1801
+ 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;
1787
1803
  sub: (atom: Atom<unknown>, listener: () => void) => () => void;
1788
1804
  } & Partial<{
1789
1805
  dev_subscribe_store: (l: (action: {
@@ -1940,7 +1956,7 @@ declare const useEditableProps: ({
1940
1956
  * if another node is updated in a way that affects this node's path, this hook
1941
1957
  * will not return the new path.
1942
1958
  */
1943
- declare const useNodePath: (node: TNode) => _platejs_slate0.Path | undefined;
1959
+ declare const useNodePath: (node: TNode) => _platejs_slate5.Path | undefined;
1944
1960
  //#endregion
1945
1961
  //#region src/react/hooks/useSlateProps.d.ts
1946
1962
  type SlateComponentProps = Omit<React$1.ComponentProps<typeof Slate>, 'children'>;
@@ -1955,7 +1971,7 @@ declare const useSlateProps: ({
1955
1971
  }) => PlateSlateProps;
1956
1972
  //#endregion
1957
1973
  //#region src/react/utils/createPlateFallbackEditor.d.ts
1958
- declare const createPlateFallbackEditor: (options?: CreatePlateEditorOptions) => TPlateEditor<_platejs_slate0.Value, PlateCorePlugin>;
1974
+ declare const createPlateFallbackEditor: (options?: CreatePlateEditorOptions) => TPlateEditor<_platejs_slate5.Value, PlateCorePlugin>;
1959
1975
  //#endregion
1960
1976
  //#region src/react/utils/dom-attributes.d.ts
1961
1977
  declare const DOM_HANDLERS: (keyof DOMHandlers)[];
@@ -2052,5 +2068,4 @@ type RenderText = (props: PlateTextProps) => React$1.ReactElement<any>;
2052
2068
  */
2053
2069
  declare const pluginRenderText: (editor: PlateEditor, plugin: AnyEditorPlatePlugin) => RenderText;
2054
2070
  //#endregion
2055
- 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, 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, 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 };
2056
- //# sourceMappingURL=index.d.ts.map
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 };