@etrepum/lexical-builder 0.0.4 → 0.0.6-nightly.20240603.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. package/dist/AutoFocusPlan.d.ts +12 -0
  2. package/dist/AutoFocusPlan.d.ts.map +1 -0
  3. package/dist/DragonPlan.d.ts +9 -0
  4. package/dist/DragonPlan.d.ts.map +1 -0
  5. package/dist/HistoryPlan.d.ts +8 -0
  6. package/dist/HistoryPlan.d.ts.map +1 -0
  7. package/dist/LexicalBuilder.d.ts +20 -0
  8. package/dist/LexicalBuilder.d.ts.map +1 -0
  9. package/dist/PlainTextPlan.d.ts +2 -0
  10. package/dist/PlainTextPlan.d.ts.map +1 -0
  11. package/dist/PlanRep.d.ts +15 -0
  12. package/dist/PlanRep.d.ts.map +1 -0
  13. package/dist/ReactPlan.d.ts +40 -0
  14. package/dist/ReactPlan.d.ts.map +1 -0
  15. package/dist/ReactPluginHostPlan.d.ts +23 -0
  16. package/dist/ReactPluginHostPlan.d.ts.map +1 -0
  17. package/dist/RichTextPlan.d.ts +9 -0
  18. package/dist/RichTextPlan.d.ts.map +1 -0
  19. package/dist/__tests__/unit/LexicalBuilder.test.d.ts +9 -0
  20. package/dist/__tests__/unit/LexicalBuilder.test.d.ts.map +1 -0
  21. package/dist/deepThemeMergeInPlace.d.ts +9 -0
  22. package/dist/deepThemeMergeInPlace.d.ts.map +1 -0
  23. package/dist/definePlan.d.ts +6 -0
  24. package/dist/definePlan.d.ts.map +1 -0
  25. package/dist/index.d.ts +24 -0
  26. package/dist/index.d.ts.map +1 -0
  27. package/dist/index.js +696 -0
  28. package/dist/index.js.map +1 -0
  29. package/dist/initializeEditor.d.ts +5 -0
  30. package/dist/initializeEditor.d.ts.map +1 -0
  31. package/dist/registerShowPlaceholder.d.ts +6 -0
  32. package/dist/registerShowPlaceholder.d.ts.map +1 -0
  33. package/dist/registerSubscription.d.ts +11 -0
  34. package/dist/registerSubscription.d.ts.map +1 -0
  35. package/dist/safeCast.d.ts +9 -0
  36. package/dist/safeCast.d.ts.map +1 -0
  37. package/dist/shallowMergeConfig.d.ts +4 -0
  38. package/dist/shallowMergeConfig.d.ts.map +1 -0
  39. package/dist/shared/invariant.d.ts +9 -0
  40. package/dist/shared/invariant.d.ts.map +1 -0
  41. package/dist/shared/useLayoutEffect.d.ts +5 -0
  42. package/dist/shared/useLayoutEffect.d.ts.map +1 -0
  43. package/dist/types.d.ts +111 -0
  44. package/dist/types.d.ts.map +1 -0
  45. package/dist/useReactDecorators.d.ts +10 -0
  46. package/dist/useReactDecorators.d.ts.map +1 -0
  47. package/dist/useRegisterSubscription.d.ts +4 -0
  48. package/dist/useRegisterSubscription.d.ts.map +1 -0
  49. package/package.json +7 -10
  50. package/dist/index.d.mts +0 -248
  51. package/dist/index.d.mts.map +0 -1
  52. package/dist/index.mjs +0 -31656
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+ export interface AutoFocusConfig {
9
+ defaultSelection?: "rootStart" | "rootEnd";
10
+ }
11
+ export declare const AutoFocusPlan: import('./types').LexicalPlan<AutoFocusConfig, "@etrepum/lexical-builder/AutoFocusPlan">;
12
+ //# sourceMappingURL=AutoFocusPlan.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AutoFocusPlan.d.ts","sourceRoot":"","sources":["../src/AutoFocusPlan.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAKH,MAAM,WAAW,eAAe;IAC9B,gBAAgB,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC;CAC5C;AAED,eAAO,MAAM,aAAa,0FAwBxB,CAAC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+ export declare const DragonPlan: import('./types').LexicalPlan<{}, "@lexical/dragon">;
9
+ //# sourceMappingURL=DragonPlan.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DragonPlan.d.ts","sourceRoot":"","sources":["../src/DragonPlan.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,eAAO,MAAM,UAAU,sDAIrB,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { HistoryState } from '@lexical/history';
2
+
3
+ export interface HistoryConfig {
4
+ delay: number;
5
+ createInitialHistoryState: () => HistoryState;
6
+ }
7
+ export declare const HistoryPlan: import('./types').LexicalPlan<HistoryConfig, "@etrepum/lexical-builder/HistoryPlan">;
8
+ //# sourceMappingURL=HistoryPlan.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HistoryPlan.d.ts","sourceRoot":"","sources":["../src/HistoryPlan.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAEL,KAAK,YAAY,EAElB,MAAM,kBAAkB,CAAC;AAK1B,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,yBAAyB,EAAE,MAAM,YAAY,CAAC;CAC/C;AAED,eAAO,MAAM,WAAW,sFAStB,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { AnyLexicalPlan, AnyLexicalPlanArgument, EditorHandle } from './types';
2
+ import { LexicalEditor, CreateEditorArgs } from 'lexical';
3
+ import { PlanRep } from './PlanRep';
4
+
5
+ export declare function buildEditorFromPlans(plan: AnyLexicalPlanArgument, ...plans: AnyLexicalPlanArgument[]): EditorHandle;
6
+ /** @internal */
7
+ export declare class LexicalBuilder {
8
+ phases: Map<AnyLexicalPlan, PlanRep<AnyLexicalPlan>>[];
9
+ planMap: Map<AnyLexicalPlan, [number, PlanRep<AnyLexicalPlan>]>;
10
+ planNameMap: Map<string, PlanRep<AnyLexicalPlan>>;
11
+ conflicts: Map<string, string>;
12
+ constructor();
13
+ static fromEditor(editor: LexicalEditor): LexicalBuilder;
14
+ buildEditor(): EditorHandle;
15
+ addPlan(arg: AnyLexicalPlanArgument): number;
16
+ sortedPlanReps(): Generator<PlanRep<AnyLexicalPlan>, void, undefined>;
17
+ registerEditor(editor: LexicalEditor): () => void;
18
+ buildCreateEditorArgs(): Pick<CreateEditorArgs, "disableEvents" | "namespace" | "nodes" | "theme" | "html" | "editable"> & Pick<AnyLexicalPlan, "onError" | "$initialEditorState">;
19
+ }
20
+ //# sourceMappingURL=LexicalBuilder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LexicalBuilder.d.ts","sourceRoot":"","sources":["../src/LexicalBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EACV,cAAc,EACd,sBAAsB,EACtB,YAAY,EACb,MAAM,SAAS,CAAC;AAEjB,OAAO,EACL,aAAa,EAEb,KAAK,gBAAgB,EAKtB,MAAM,SAAS,CAAC;AAKjB,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAKpC,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,sBAAsB,EAC5B,GAAG,KAAK,EAAE,sBAAsB,EAAE,GACjC,YAAY,CAOd;AAED,gBAAgB;AAChB,qBAAa,cAAc;IACzB,MAAM,EAAE,GAAG,CAAC,cAAc,EAAE,OAAO,CAAC,cAAc,CAAC,CAAC,EAAE,CAAC;IACvD,OAAO,EAAE,GAAG,CAAC,cAAc,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC;IAChE,WAAW,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC;IAClD,SAAS,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;;IAU/B,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,aAAa,GAAG,cAAc;IASxD,WAAW,IAAI,YAAY;IAgB3B,OAAO,CAAC,GAAG,EAAE,sBAAsB,GAAG,MAAM;IAsE3C,cAAc;IAMf,cAAc,CAAC,MAAM,EAAE,aAAa,GAAG,MAAM,IAAI;IA6BjD,qBAAqB;CAmFtB"}
@@ -0,0 +1,2 @@
1
+ export declare const PlainTextPlan: import('./types').LexicalPlan<{}, "@lexical/plain-text">;
2
+ //# sourceMappingURL=PlainTextPlan.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PlainTextPlan.d.ts","sourceRoot":"","sources":["../src/PlainTextPlan.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,aAAa,0DAKxB,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { LexicalBuilder } from './LexicalBuilder';
2
+ import { AnyLexicalPlan, LexicalPlanConfig } from './types';
3
+ import { LexicalPlanRegistry } from '@etrepum/lexical-builder';
4
+
5
+ export declare class PlanRep<Plan extends AnyLexicalPlan> {
6
+ builder: LexicalBuilder;
7
+ configs: Set<LexicalPlanConfig<Plan>>;
8
+ _config?: LexicalPlanConfig<Plan>;
9
+ plan: Plan;
10
+ constructor(builder: LexicalBuilder, plan: Plan);
11
+ getPeerConfig<Name extends keyof LexicalPlanRegistry>(name: string): undefined | LexicalPlanConfig<LexicalPlanRegistry[Name]>;
12
+ getDependencyConfig<Dependency extends AnyLexicalPlan>(dep: Dependency): LexicalPlanConfig<Dependency>;
13
+ getConfig(): LexicalPlanConfig<Plan>;
14
+ }
15
+ //# sourceMappingURL=PlanRep.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PlanRep.d.ts","sourceRoot":"","sources":["../src/PlanRep.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EACV,cAAc,EACd,iBAAiB,EAClB,MAAM,SAAS,CAAC;AACjB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAMpE,qBAAa,OAAO,CAAC,IAAI,SAAS,cAAc;IAC9C,OAAO,EAAE,cAAc,CAAC;IACxB,OAAO,EAAE,GAAG,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,CAAC;IACtC,OAAO,CAAC,EAAE,iBAAiB,CAAC,IAAI,CAAC,CAAC;IAClC,IAAI,EAAE,IAAI,CAAC;gBACC,OAAO,EAAE,cAAc,EAAE,IAAI,EAAE,IAAI;IAK/C,aAAa,CAAC,IAAI,SAAS,MAAM,mBAAmB,EAClD,IAAI,EAAE,MAAM,GACX,SAAS,GAAG,iBAAiB,CAAC,mBAAmB,CAAC,IAAI,CAAC,CAAC;IAI3D,mBAAmB,CAAC,UAAU,SAAS,cAAc,EACnD,GAAG,EAAE,UAAU,GACd,iBAAiB,CAAC,UAAU,CAAC;IAUhC,SAAS,IAAI,iBAAiB,CAAC,IAAI,CAAC;CAcrC"}
@@ -0,0 +1,40 @@
1
+ import { AnyLexicalPlanArgument } from './types';
2
+ import { LexicalComposerContextWithEditor } from '@lexical/react/LexicalComposerContext';
3
+ import { ErrorBoundaryType } from './useReactDecorators';
4
+
5
+ import * as React from "react";
6
+ export interface EditorChildrenComponentProps {
7
+ context: LexicalComposerContextWithEditor;
8
+ placeholder: null | JSX.Element;
9
+ contentEditable: null | JSX.Element;
10
+ children?: React.ReactNode;
11
+ }
12
+ export type EditorChildrenComponentType = (props: EditorChildrenComponentProps) => JSX.Element | null;
13
+ export interface DecoratorComponentProps {
14
+ context: LexicalComposerContextWithEditor;
15
+ }
16
+ export type DecoratorComponentType = JSX.Element | ((props: DecoratorComponentProps) => JSX.Element | null);
17
+ export interface EditorComponentProps {
18
+ EditorChildrenComponent: EditorChildrenComponentType;
19
+ children?: React.ReactNode;
20
+ placeholder: ((isEditable: boolean) => null | JSX.Element) | null | JSX.Element;
21
+ contentEditable: JSX.Element | null;
22
+ ErrorBoundary: ErrorBoundaryType;
23
+ }
24
+ export type EditorComponentType = (props: Partial<EditorComponentProps>) => JSX.Element;
25
+ export interface ReactConfig {
26
+ contentEditable: JSX.Element | null;
27
+ placeholder: ((isEditable: boolean) => null | JSX.Element) | null | JSX.Element;
28
+ ErrorBoundary: ErrorBoundaryType;
29
+ EditorChildrenComponent: EditorChildrenComponentType;
30
+ Component: EditorComponentType;
31
+ getContext: () => LexicalComposerContextWithEditor;
32
+ decorators: readonly DecoratorComponentType[];
33
+ }
34
+ export interface LexicalPlanComposerProps {
35
+ plan: AnyLexicalPlanArgument;
36
+ children: React.ReactNode;
37
+ }
38
+ export declare function LexicalPlanComposer({ plan, children, }: LexicalPlanComposerProps): import("react/jsx-runtime").JSX.Element | null;
39
+ export declare const ReactPlan: import('./types').LexicalPlan<ReactConfig, "@etrepum/lexical-builder/ReactPlan">;
40
+ //# sourceMappingURL=ReactPlan.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReactPlan.d.ts","sourceRoot":"","sources":["../src/ReactPlan.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAEtD,OAAO,EAEL,KAAK,gCAAgC,EACtC,MAAM,uCAAuC,CAAC;AAI/C,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,OAAO,EACL,KAAK,iBAAiB,EAEvB,MAAM,sBAAsB,CAAC;AAI9B,MAAM,WAAW,4BAA4B;IAC3C,OAAO,EAAE,gCAAgC,CAAC;IAC1C,WAAW,EAAE,IAAI,GAAG,GAAG,CAAC,OAAO,CAAC;IAChC,eAAe,EAAE,IAAI,GAAG,GAAG,CAAC,OAAO,CAAC;IACpC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,MAAM,MAAM,2BAA2B,GAAG,CACxC,KAAK,EAAE,4BAA4B,KAChC,GAAG,CAAC,OAAO,GAAG,IAAI,CAAC;AAExB,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,gCAAgC,CAAC;CAC3C;AACD,MAAM,MAAM,sBAAsB,GAC9B,GAAG,CAAC,OAAO,GACX,CAAC,CAAC,KAAK,EA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";
5
+ export interface HostMountCommandArg {
6
+ root: Root;
7
+ }
8
+ export type Container = Element | DocumentFragment;
9
+ export interface MountPluginCommandArg {
10
+ key: string;
11
+ element: JSX.Element | null;
12
+ domNode?: Container | null;
13
+ }
14
+ export declare function mountReactPluginComponent<P extends Record<never, never> = Record<never, never>>(editor: LexicalEditor, opts: {
15
+ Component: null | React.ComponentType<P>;
16
+ props: (P & React.Attributes) | null;
17
+ } & Omit<MountPluginCommandArg, "element">): void;
18
+ export declare function mountReactPluginElement(editor: LexicalEditor, opts: MountPluginCommandArg): void;
19
+ export declare function mountReactPluginHost(editor: LexicalEditor, container: Container): void;
20
+ export declare const REACT_PLUGIN_HOST_MOUNT_COMMAND: import('lexical').LexicalCommand<HostMountCommandArg>;
21
+ export declare const REACT_MOUNT_PLUGIN_COMMAND: import('lexical').LexicalCommand<MountPluginCommandArg>;
22
+ export declare const ReactPluginHostPlan: import('./types').LexicalPlan<{}, "@etrepum/lexical-builder/ReactPluginHostPlan">;
23
+ //# sourceMappingURL=ReactPluginHostPlan.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReactPluginHostPlan.d.ts","sourceRoot":"","sources":["../src/ReactPluginHostPlan.tsx"],"names":[],"mappings":"AAQA,OAAO,EAIL,aAAa,EACd,MAAM,SAAS,CAAC;AAEjB,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAc,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAKpD,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,IAAI,CAAC;CACZ;AAED,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,gBAAgB,CAAC;AAEnD,MAAM,WAAW,qBAAqB;IACpC,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,GAAG,CAAC,OAAO,GAAG,IAAI,CAAC;IAC5B,OAAO,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;CAC5B;AAED,wBAAgB,yBAAyB,CACvC,CAAC,SAAS,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,EAErD,MAAM,EAAE,aAAa,EACrB,IAAI,EAAE;IACJ,SAAS,EAAE,IAAI,GAAG,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;IACzC,KAAK,EAAE,CAAC,CAAC,GAAG,KAAK,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC;CACtC,GAAG,IAAI,CAAC,qBAAqB,EAAE,SAAS,CAAC,QAO3C;AAED,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,aAAa,EACrB,IAAI,EAAE,qBAAqB,QAG5B;AAED,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,aAAa,EACrB,SAAS,EAAE,SAAS,QAKrB;AAED,eAAO,MAAM,+BAA+B,uDAC2B,CAAC;AACxE,eAAO,MAAM,0BAA0B,yDAEtC,CAAC;AAEF,eAAO,MAAM,mBAAmB,mFAyE9B,CAAC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+ export declare const RichTextPlan: import('./types').LexicalPlan<{}, "@lexical/rich-text">;
9
+ //# sourceMappingURL=RichTextPlan.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RichTextPlan.d.ts","sourceRoot":"","sources":["../src/RichTextPlan.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,eAAO,MAAM,YAAY,yDAMvB,CAAC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+ export {};
9
+ //# sourceMappingURL=LexicalBuilder.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LexicalBuilder.test.d.ts","sourceRoot":"","sources":["../../../src/__tests__/unit/LexicalBuilder.test.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+ export declare function deepThemeMergeInPlace(a: unknown, b: unknown): unknown;
9
+ //# sourceMappingURL=deepThemeMergeInPlace.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deepThemeMergeInPlace.d.ts","sourceRoot":"","sources":["../src/deepThemeMergeInPlace.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,wBAAgB,qBAAqB,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,WAgB3D"}
@@ -0,0 +1,6 @@
1
+ import { AnyLexicalPlan, LexicalPlan, LexicalPlanConfig, PlanConfigBase } from './types';
2
+
3
+ export declare function definePlan<Config extends PlanConfigBase, Name extends string>(plan: LexicalPlan<Config, Name>): LexicalPlan<Config, Name>;
4
+ export declare function defineRootPlan(plan: Omit<LexicalPlan<PlanConfigBase, string>, "config" | "name">): LexicalPlan<PlanConfigBase, "[root]">;
5
+ export declare function configPlan<Plan extends AnyLexicalPlan>(plan: Plan, config: Partial<LexicalPlanConfig<Plan>>): [Plan, Partial<LexicalPlanConfig<Plan>>];
6
+ //# sourceMappingURL=definePlan.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"definePlan.d.ts","sourceRoot":"","sources":["../src/definePlan.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EACV,cAAc,EACd,WAAW,EACX,iBAAiB,EACjB,cAAc,EACf,MAAM,SAAS,CAAC;AAEjB,wBAAgB,UAAU,CAAC,MAAM,SAAS,cAAc,EAAE,IAAI,SAAS,MAAM,EAC3E,IAAI,EAAE,WAAW,CAAC,MAAM,EAAE,IAAI,CAAC,GAC9B,WAAW,CAAC,MAAM,EAAE,IAAI,CAAC,CAE3B;AAED,wBAAgB,cAAc,CAC5B,IAAI,EAAE,IAAI,CAAC,WAAW,CAAC,cAAc,EAAE,MAAM,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAC,GACjE,WAAW,CAAC,cAAc,EAAE,QAAQ,CAAC,CAEvC;AAED,wBAAgB,UAAU,CAAC,IAAI,SAAS,cAAc,EACpD,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,OAAO,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,GACvC,CAAC,IAAI,EAAE,OAAO,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,CAAC,CAE1C"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+ /** An open interface for Name -> Config mappings */
9
+ export interface LexicalPlanRegistry {
10
+ }
11
+ export declare const PACKAGE_VERSION: any;
12
+ export { type AutoFocusConfig, AutoFocusPlan } from './AutoFocusPlan';
13
+ export { configPlan, definePlan, defineRootPlan } from './definePlan';
14
+ export { DragonPlan } from './DragonPlan';
15
+ export { type HistoryConfig, HistoryPlan } from './HistoryPlan';
16
+ export { LexicalBuilder, buildEditorFromPlans } from './LexicalBuilder';
17
+ export { PlainTextPlan } from './PlainTextPlan';
18
+ export { type DecoratorComponentProps, type DecoratorComponentType, type EditorChildrenComponentProps, type EditorChildrenComponentType, type EditorComponentProps, type EditorComponentType, LexicalPlanComposer, type LexicalPlanComposerProps, type ReactConfig, ReactPlan, } from './ReactPlan';
19
+ export { type HostMountCommandArg, type MountPluginCommandArg, type Container, mountReactPluginComponent, mountReactPluginElement, mountReactPluginHost, REACT_MOUNT_PLUGIN_COMMAND, REACT_PLUGIN_HOST_MOUNT_COMMAND, ReactPluginHostPlan, } from './ReactPluginHostPlan';
20
+ export { RichTextPlan } from './RichTextPlan';
21
+ export { type AnyLexicalPlan, type AnyLexicalPlanArgument, type EditorHandle, type InitialEditorStateType, type LexicalPeerConfig, type LexicalPlan, type LexicalPlanArgument, type LexicalPlanConfig, type LexicalPlanName, type NormalizedLexicalPlanArgument, type PlanConfigBase, type RegisterState, } from './types';
22
+ export { type ErrorBoundaryType, type ErrorBoundaryProps, } from './useReactDecorators';
23
+ export { safeCast } from './safeCast';
24
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,oDAAoD;AACpD,MAAM,WAAW,mBAAmB;CAAG;AACvC,eAAO,MAAM,eAAe,KAAkC,CAAC;AAE/D,OAAO,EAAE,KAAK,eAAe,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACtE,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACtE,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,KAAK,aAAa,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AACxE,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EACL,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,KAAK,4BAA4B,EACjC,KAAK,2BAA2B,EAChC,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,mBAAmB,EACnB,KAAK,wBAAwB,EAC7B,KAAK,WAAW,EAChB,SAAS,GACV,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,SAAS,EACd,yBAAyB,EACzB,uBAAuB,EACvB,oBAAoB,EACpB,0BAA0B,EAC1B,+BAA+B,EAC/B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