@etrepum/lexical-builder 0.0.36-nightly.20250711.0 → 0.0.36

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.
Files changed (38) hide show
  1. package/dist/{AutoFocusPlan.d.ts → AutoFocusExtension.d.ts} +3 -3
  2. package/dist/AutoFocusExtension.d.ts.map +1 -0
  3. package/dist/{DragonPlan.d.ts → DragonExtension.d.ts} +2 -2
  4. package/dist/DragonExtension.d.ts.map +1 -0
  5. package/dist/ExtensionRep.d.ts +76 -0
  6. package/dist/ExtensionRep.d.ts.map +1 -0
  7. package/dist/{HistoryPlan.d.ts → HistoryExtension.d.ts} +3 -3
  8. package/dist/HistoryExtension.d.ts.map +1 -0
  9. package/dist/InitialStateExtension.d.ts +7 -0
  10. package/dist/InitialStateExtension.d.ts.map +1 -0
  11. package/dist/LexicalBuilder.d.ts +23 -23
  12. package/dist/LexicalBuilder.d.ts.map +1 -1
  13. package/dist/PlainTextExtension.d.ts +5 -0
  14. package/dist/PlainTextExtension.d.ts.map +1 -0
  15. package/dist/RichTextExtension.d.ts +13 -0
  16. package/dist/RichTextExtension.d.ts.map +1 -0
  17. package/dist/getExtensionDependencyFromEditor.d.ts +17 -0
  18. package/dist/getExtensionDependencyFromEditor.d.ts.map +1 -0
  19. package/dist/getPeerDependencyFromEditor.d.ts +20 -20
  20. package/dist/getPeerDependencyFromEditor.d.ts.map +1 -1
  21. package/dist/index.d.ts +9 -9
  22. package/dist/index.d.ts.map +1 -1
  23. package/dist/index.js +231 -231
  24. package/dist/index.js.map +1 -1
  25. package/package.json +8 -8
  26. package/dist/AutoFocusPlan.d.ts.map +0 -1
  27. package/dist/DragonPlan.d.ts.map +0 -1
  28. package/dist/HistoryPlan.d.ts.map +0 -1
  29. package/dist/InitialStatePlan.d.ts +0 -7
  30. package/dist/InitialStatePlan.d.ts.map +0 -1
  31. package/dist/PlainTextPlan.d.ts +0 -5
  32. package/dist/PlainTextPlan.d.ts.map +0 -1
  33. package/dist/PlanRep.d.ts +0 -76
  34. package/dist/PlanRep.d.ts.map +0 -1
  35. package/dist/RichTextPlan.d.ts +0 -13
  36. package/dist/RichTextPlan.d.ts.map +0 -1
  37. package/dist/getPlanDependencyFromEditor.d.ts +0 -17
  38. package/dist/getPlanDependencyFromEditor.d.ts.map +0 -1
@@ -13,8 +13,8 @@ export interface AutoFocusConfig {
13
13
  defaultSelection?: "rootStart" | "rootEnd";
14
14
  }
15
15
  /**
16
- * A Plan to focus the LexicalEditor when the root element is set
16
+ * An Extension to focus the LexicalEditor when the root element is set
17
17
  * (typically only when the editor is first created).
18
18
  */
19
- export declare const AutoFocusPlan: import('@etrepum/lexical-builder-core').LexicalPlan<AutoFocusConfig, "@etrepum/lexical-builder/AutoFocus", unknown, unknown>;
20
- //# sourceMappingURL=AutoFocusPlan.d.ts.map
19
+ export declare const AutoFocusExtension: import('@etrepum/lexical-builder-core').LexicalExtension<AutoFocusConfig, "@etrepum/lexical-builder/AutoFocus", unknown, unknown>;
20
+ //# sourceMappingURL=AutoFocusExtension.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AutoFocusExtension.d.ts","sourceRoot":"","sources":["../src/AutoFocusExtension.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,MAAM,WAAW,eAAe;IAC9B;;;OAGG;IACH,gBAAgB,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC;CAC5C;AAED;;;GAGG;AACH,eAAO,MAAM,kBAAkB,mIAwB7B,CAAC"}
@@ -7,5 +7,5 @@ export type DragonOutput = DisabledToggleOutput;
7
7
  * Add Dragon speech to text input support to the editor, via the
8
8
  * \@lexical/dragon module.
9
9
  */
10
- export declare const DragonPlan: import('@etrepum/lexical-builder-core').LexicalPlan<DragonConfig, "@lexical/dragon", DisabledToggleOutput, unknown>;
11
- //# sourceMappingURL=DragonPlan.d.ts.map
10
+ export declare const DragonExtension: import('@etrepum/lexical-builder-core').LexicalExtension<DragonConfig, "@lexical/dragon", DisabledToggleOutput, unknown>;
11
+ //# sourceMappingURL=DragonExtension.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DragonExtension.d.ts","sourceRoot":"","sources":["../src/DragonExtension.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAQH,OAAO,EAAkB,KAAK,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAE7E,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,OAAO,CAAC;CACnB;AACD,MAAM,MAAM,YAAY,GAAG,oBAAoB,CAAC;AAEhD;;;GAGG;AACH,eAAO,MAAM,eAAe,0HAU1B,CAAC"}
@@ -0,0 +1,76 @@
1
+ import { AnyLexicalExtension, InitialEditorConfig, LexicalExtensionConfig, LexicalExtensionDependency, LexicalExtensionInit, LexicalExtensionOutput, RegisterCleanup, ExtensionInitState, ExtensionRegisterState } from '@etrepum/lexical-builder-core';
2
+ import { LexicalEditor } from 'lexical';
3
+ import { LexicalBuilder } from './LexicalBuilder';
4
+ export declare const ExtensionRepStateIds: {
5
+ readonly unmarked: 0;
6
+ readonly temporary: 1;
7
+ readonly permanent: 2;
8
+ readonly configured: 3;
9
+ readonly initialized: 4;
10
+ readonly registered: 5;
11
+ readonly afterInitialization: 6;
12
+ };
13
+ interface UnmarkedState {
14
+ id: (typeof ExtensionRepStateIds)["unmarked"];
15
+ }
16
+ interface TemporaryState extends Omit<UnmarkedState, "id"> {
17
+ id: (typeof ExtensionRepStateIds)["temporary"];
18
+ }
19
+ interface PermanentState extends Omit<TemporaryState, "id"> {
20
+ id: (typeof ExtensionRepStateIds)["permanent"];
21
+ }
22
+ interface ConfiguredState<Extension extends AnyLexicalExtension> extends Omit<PermanentState, "id"> {
23
+ id: (typeof ExtensionRepStateIds)["configured"];
24
+ config: LexicalExtensionConfig<Extension>;
25
+ registerState: ExtensionInitState;
26
+ }
27
+ interface InitializedState<Extension extends AnyLexicalExtension> extends Omit<ConfiguredState<Extension>, "id" | "registerState"> {
28
+ id: (typeof ExtensionRepStateIds)["initialized"];
29
+ initResult: LexicalExtensionInit<Extension>;
30
+ registerState: ExtensionRegisterState<LexicalExtensionInit<Extension>>;
31
+ }
32
+ interface RegisteredState<Extension extends AnyLexicalExtension> extends Omit<InitializedState<Extension>, "id"> {
33
+ id: (typeof ExtensionRepStateIds)["registered"];
34
+ output: LexicalExtensionOutput<Extension>;
35
+ }
36
+ interface AfterInitializationState<Extension extends AnyLexicalExtension> extends Omit<RegisteredState<Extension>, "id"> {
37
+ id: (typeof ExtensionRepStateIds)["afterInitialization"];
38
+ }
39
+ export type ExtensionRepState<Extension extends AnyLexicalExtension> = UnmarkedState | TemporaryState | PermanentState | ConfiguredState<Extension> | InitializedState<Extension> | RegisteredState<Extension> | AfterInitializationState<Extension>;
40
+ export declare function isExactlyUnmarkedExtensionRepState<Extension extends AnyLexicalExtension>(state: ExtensionRepState<Extension>): state is UnmarkedState;
41
+ export declare function isExactlyPermanentExtensionRepState<Extension extends AnyLexicalExtension>(state: ExtensionRepState<Extension>): state is PermanentState;
42
+ export declare function applyTemporaryMark<Extension extends AnyLexicalExtension>(state: ExtensionRepState<Extension>): TemporaryState;
43
+ export declare function applyPermanentMark<Extension extends AnyLexicalExtension>(state: ExtensionRepState<Extension>): PermanentState;
44
+ export declare function applyConfiguredState<Extension extends AnyLexicalExtension>(state: PermanentState, config: LexicalExtensionConfig<Extension>, registerState: ExtensionInitState): ConfiguredState<Extension>;
45
+ export declare function applyInitializedState<Extension extends AnyLexicalExtension>(state: ConfiguredState<Extension>, initResult: LexicalExtensionInit<Extension>, registerState: ExtensionRegisterState<Extension>): InitializedState<Extension>;
46
+ export declare function applyRegisteredState<Extension extends AnyLexicalExtension>(state: InitializedState<Extension>, cleanup?: RegisterCleanup<LexicalExtensionOutput<Extension>> | undefined): never;
47
+ export declare function applyAfterInitializationState<Extension extends AnyLexicalExtension>(state: RegisteredState<Extension>): AfterInitializationState<Extension>;
48
+ /**
49
+ * @internal
50
+ */
51
+ export declare class ExtensionRep<Extension extends AnyLexicalExtension> {
52
+ builder: LexicalBuilder;
53
+ configs: Set<Partial<LexicalExtensionConfig<Extension>>>;
54
+ _dependency?: LexicalExtensionDependency<Extension>;
55
+ _output?: LexicalExtensionOutput<Extension>;
56
+ _peerNameSet?: Set<string>;
57
+ extension: Extension;
58
+ state: ExtensionRepState<Extension>;
59
+ constructor(builder: LexicalBuilder, extension: Extension);
60
+ afterInitialization(editor: LexicalEditor): undefined | (() => void);
61
+ register(editor: LexicalEditor): undefined | (() => void);
62
+ init(editorConfig: InitialEditorConfig, signal: AbortSignal): void;
63
+ getInitResult(): LexicalExtensionInit<Extension>;
64
+ getInitPeer<PeerExtension extends AnyLexicalExtension = never>(name: PeerExtension["name"]): undefined | Omit<LexicalExtensionDependency<PeerExtension>, "output">;
65
+ getExtensionInitDependency(): Omit<LexicalExtensionDependency<Extension>, "output">;
66
+ getPeer<PeerExtension extends AnyLexicalExtension = never>(name: PeerExtension["name"]): undefined | LexicalExtensionDependency<PeerExtension>;
67
+ getInitDependency<Dependency extends AnyLexicalExtension>(dep: Dependency): Omit<LexicalExtensionDependency<Dependency>, "output">;
68
+ getDependency<Dependency extends AnyLexicalExtension>(dep: Dependency): LexicalExtensionDependency<Dependency>;
69
+ getState(): AfterInitializationState<Extension>;
70
+ getDirectDependentNames(): ReadonlySet<string>;
71
+ getPeerNameSet(): ReadonlySet<string>;
72
+ getExtensionDependency(): LexicalExtensionDependency<Extension>;
73
+ mergeConfigs(): LexicalExtensionConfig<Extension>;
74
+ }
75
+ export {};
76
+ //# sourceMappingURL=ExtensionRep.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExtensionRep.d.ts","sourceRoot":"","sources":["../src/ExtensionRep.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EACV,mBAAmB,EACnB,mBAAmB,EACnB,sBAAsB,EACtB,0BAA0B,EAC1B,oBAAoB,EACpB,sBAAsB,EACtB,eAAe,EACf,kBAAkB,EACl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IAAI,oBAAoB,CAAC,SAAS,CAAC;IAiBhD,WAAW,CAAC,aAAa,SAAS,mBAAmB,GAAG,KAAK,EAC3D,IAAI,EAAE,aAAa,CAAC,MAAM,CAAC,GAC1B,SAAS,GAAG,IAAI,CAAC,0BAA0B,CAAC,aAAa,CAAC,EAAE,QAAQ,CAAC;IAKxE,0BAA0B,IAAI,IAAI,CAAC,0BAA0B,CAAC,SAAS,CAAC,EAAE,QAAQ,CAAC;IAWnF,OAAO,CAAC,aAAa,SAAS,mBAAmB,GAAG,KAAK,EACvD,IAAI,EAAE,aAAa,CAAC,MAAM,CAAC,GAC1B,SAAS,GAAG,0BAA0B,CAAC,aAAa,CAAC;IAOxD,iBAAiB,CAAC,UAAU,SAAS,mBAAmB,EACtD,GAAG,EAAE,UAAU,GACd,IAAI,CAAC,0BAA0B,CAAC,UAAU,CAAC,EAAE,QAAQ,CAAC;IAWzD,aAAa,CAAC,UAAU,SAAS,mBAAmB,EAClD,GAAG,EAAE,UAAU,GACd,0BAA0B,CAAC,UAAU,CAAC;IAWzC,QAAQ,IAAI,wBAAwB,CAAC,SAAS,CAAC;IAW/C,uBAAuB,IAAI,WAAW,CAAC,MAAM,CAAC;IAI9C,cAAc,IAAI,WAAW,CAAC,MAAM,CAAC;IASrC,sBAAsB,IAAI,0BAA0B,CAAC,SAAS,CAAC;IAe/D,YAAY,IAAI,sBAAsB,CAAC,SAAS,CAAC;CAalD"}
@@ -23,11 +23,11 @@ export interface HistoryOutput extends DisabledToggleOutput {
23
23
  * Registers necessary listeners to manage undo/redo history stack and related
24
24
  * editor commands, via the \@lexical/history module.
25
25
  */
26
- export declare const HistoryPlan: import('@etrepum/lexical-builder-core').LexicalPlan<HistoryConfig, "@etrepum/lexical-builder/History", HistoryOutput, unknown>;
26
+ export declare const HistoryExtension: import('@etrepum/lexical-builder-core').LexicalExtension<HistoryConfig, "@etrepum/lexical-builder/History", HistoryOutput, unknown>;
27
27
  /**
28
28
  * Registers necessary listeners to manage undo/redo history stack and related
29
29
  * editor commands, via the \@lexical/history module, only if the parent editor
30
30
  * has a history plugin implementation.
31
31
  */
32
- export declare const SharedHistoryPlan: import('@etrepum/lexical-builder-core').LexicalPlan<import('@etrepum/lexical-builder-core').PlanConfigBase, "@etrepum/lexical-builder/SharedHistory", unknown, import('@etrepum/lexical-builder-core').LexicalPlanDependency<import('@etrepum/lexical-builder-core').LexicalPlan<HistoryConfig, "@etrepum/lexical-builder/History", HistoryOutput, unknown>> | null | undefined>;
33
- //# sourceMappingURL=HistoryPlan.d.ts.map
32
+ export declare const SharedHistoryExtension: import('@etrepum/lexical-builder-core').LexicalExtension<import('@etrepum/lexical-builder-core').ExtensionConfigBase, "@etrepum/lexical-builder/SharedHistory", unknown, import('@etrepum/lexical-builder-core').LexicalExtensionDependency<import('@etrepum/lexical-builder-core').LexicalExtension<HistoryConfig, "@etrepum/lexical-builder/History", HistoryOutput, unknown>> | null | undefined>;
33
+ //# sourceMappingURL=HistoryExtension.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HistoryExtension.d.ts","sourceRoot":"","sources":["../src/HistoryExtension.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,EAEL,KAAK,YAAY,EAElB,MAAM,kBAAkB,CAAC;AAO1B,OAAO,EAAkB,KAAK,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAG7E,MAAM,WAAW,aAAa;IAC5B;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,yBAAyB,EAAE,CAAC,MAAM,EAAE,aAAa,KAAK,YAAY,CAAC;IACnE;;OAEG;IACH,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,aAAc,SAAQ,oBAAoB;IACzD,eAAe,EAAE,MAAM,YAAY,CAAC;CACrC;AAED;;;GAGG;AACH,eAAO,MAAM,gBAAgB,qIAkB3B,CAAC;AAQH;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,sYA0BjC,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { EditorSetOptions, EditorUpdateOptions } from 'lexical';
2
+ export interface InitialStateConfig {
3
+ updateOptions: EditorUpdateOptions;
4
+ setOptions: EditorSetOptions;
5
+ }
6
+ export declare const InitialStateExtension: import('@etrepum/lexical-builder-core').LexicalExtension<InitialStateConfig, "@etrepum/lexical-builder/InitialState", unknown, import('@etrepum/lexical-builder-core').InitialEditorStateType>;
7
+ //# sourceMappingURL=InitialStateExtension.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InitialStateExtension.d.ts","sourceRoot":"","sources":["../src/InitialStateExtension.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAQL,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACzB,MAAM,SAAS,CAAC;AAWjB,MAAM,WAAW,kBAAkB;IACjC,aAAa,EAAE,mBAAmB,CAAC;IACnC,UAAU,EAAE,gBAAgB,CAAC;CAC9B;AAED,eAAO,MAAM,qBAAqB,gMA2ChC,CAAC"}
@@ -1,23 +1,23 @@
1
- import { AnyLexicalPlan, AnyLexicalPlanArgument, LexicalEditorWithDispose, InitialEditorConfig, LexicalPlanConfig, AnyNormalizedLexicalPlanArgument } from '@etrepum/lexical-builder-core';
1
+ import { AnyLexicalExtension, AnyLexicalExtensionArgument, LexicalEditorWithDispose, InitialEditorConfig, LexicalExtensionConfig, AnyNormalizedLexicalExtensionArgument } from '@etrepum/lexical-builder-core';
2
2
  import { LexicalEditor } from 'lexical';
3
- import { PlanRep } from './PlanRep';
3
+ import { ExtensionRep } from './ExtensionRep';
4
4
  /** @internal Use a well-known symbol for dev tools purposes */
5
5
  export declare const builderSymbol: unique symbol;
6
6
  /**
7
- * Build a LexicalEditor by combining together one or more plans, optionally
7
+ * Build a LexicalEditor by combining together one or more extensions, optionally
8
8
  * overriding some of their configuration.
9
9
  *
10
- * @param plans - Plan arguments (plans or plans with config overrides)
10
+ * @param extensions - Extension arguments (extensions or extensions with config overrides)
11
11
  * @returns An editor handle
12
12
  *
13
- * @example A single root plan with multiple dependencies
13
+ * @example A single root extension with multiple dependencies
14
14
  * ```ts
15
- * const editor = buildEditorFromPlans(
16
- * definePlan({
15
+ * const editor = buildEditorFromExtensions(
16
+ * defineExtension({
17
17
  * name: "[root]",
18
18
  * dependencies: [
19
- * RichTextPlan,
20
- * configPlan(EmojiPlan, { emojiBaseUrl: "/assets/emoji" }),
19
+ * RichTextExtension,
20
+ * configExtension(EmojiExtension, { emojiBaseUrl: "/assets/emoji" }),
21
21
  * ],
22
22
  * register: (editor: LexicalEditor) => {
23
23
  * console.log("Editor Created");
@@ -28,31 +28,31 @@ export declare const builderSymbol: unique symbol;
28
28
  * ```
29
29
  * @example A very similar minimal configuration without the register hook
30
30
  * ```ts
31
- * const editor = buildEditorFromPlans(
32
- * RichTextPlan,
33
- * configPlan(EmojiPlan, { emojiBaseUrl: "/assets/emoji" }),
31
+ * const editor = buildEditorFromExtensions(
32
+ * RichTextExtension,
33
+ * configExtension(EmojiExtension, { emojiBaseUrl: "/assets/emoji" }),
34
34
  * );
35
35
  * ```
36
36
  */
37
- export declare function buildEditorFromPlans(...plans: AnyLexicalPlanArgument[]): LexicalEditorWithDispose;
37
+ export declare function buildEditorFromExtensions(...extensions: AnyLexicalExtensionArgument[]): LexicalEditorWithDispose;
38
38
  /** @internal */
39
39
  export declare class LexicalBuilder {
40
- roots: readonly AnyNormalizedLexicalPlanArgument[];
41
- planNameMap: Map<string, PlanRep<AnyLexicalPlan>>;
42
- outgoingConfigEdges: Map<string, Map<string, LexicalPlanConfig<AnyLexicalPlan>[]>>;
40
+ roots: readonly AnyNormalizedLexicalExtensionArgument[];
41
+ extensionNameMap: Map<string, ExtensionRep<AnyLexicalExtension>>;
42
+ outgoingConfigEdges: Map<string, Map<string, LexicalExtensionConfig<AnyLexicalExtension>[]>>;
43
43
  incomingEdges: Map<string, Set<string>>;
44
44
  conflicts: Map<string, string>;
45
- _sortedPlanReps?: readonly PlanRep<AnyLexicalPlan>[];
45
+ _sortedExtensionReps?: readonly ExtensionRep<AnyLexicalExtension>[];
46
46
  PACKAGE_VERSION: string;
47
- constructor(roots: AnyNormalizedLexicalPlanArgument[]);
48
- static fromPlans(plans: AnyLexicalPlanArgument[]): LexicalBuilder;
47
+ constructor(roots: AnyNormalizedLexicalExtensionArgument[]);
48
+ static fromExtensions(extensions: AnyLexicalExtensionArgument[]): LexicalBuilder;
49
49
  /** Look up the editor that was created by this LexicalBuilder or throw */
50
50
  static fromEditor(editor: LexicalEditor): LexicalBuilder;
51
51
  buildEditor(): LexicalEditorWithDispose;
52
- getPlanRep<Plan extends AnyLexicalPlan>(plan: Plan): PlanRep<Plan> | undefined;
53
- addEdge(fromPlanName: string, toPlanName: string, configs: LexicalPlanConfig<AnyLexicalPlan>[]): void;
54
- addPlan(arg: AnyLexicalPlanArgument): void;
55
- sortedPlanReps(): readonly PlanRep<AnyLexicalPlan>[];
52
+ getExtensionRep<Extension extends AnyLexicalExtension>(extension: Extension): ExtensionRep<Extension> | undefined;
53
+ addEdge(fromExtensionName: string, toExtensionName: string, configs: LexicalExtensionConfig<AnyLexicalExtension>[]): void;
54
+ addExtension(arg: AnyLexicalExtensionArgument): void;
55
+ sortedExtensionReps(): readonly ExtensionRep<AnyLexicalExtension>[];
56
56
  registerEditor(editor: LexicalEditor, controller: AbortController): () => void;
57
57
  buildCreateEditorArgs(signal: AbortSignal): InitialEditorConfig;
58
58
  }
@@ -1 +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,wBAAwB,EACxB,mBAAmB,EACnB,iBAAiB,EACjB,gCAAgC,EACjC,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,KAAK,aAAa,EAOnB,MAAM,SAAS,CAA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,qCAAqC,EAAE;IAY1D,MAAM,CAAC,cAAc,CAAC,UAAU,EAAE,2BAA2B,EAAE,GAAG,cAAc;IAQhF,0EAA0E;IAC1E,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,aAAa,GAAG,cAAc;IAoBxD,WAAW,IAAI,wBAAwB;IAwCvC,eAAe,CAAC,SAAS,SAAS,mBAAmB,EACnD,SAAS,EAAE,SAAS,GACnB,YAAY,CAAC,SAAS,CAAC,GAAG,SAAS;IAYtC,OAAO,CACL,iBAAiB,EAAE,MAAM,EACzB,eAAe,EAAE,MAAM,EACvB,OAAO,EAAE,sBAAsB,CAAC,mBAAmB,CAAC,EAAE;IAmBxD,YAAY,CAAC,GAAG,EAAE,2BAA2B;IAkD7C,mBAAmB,IAAI,SAAS,YAAY,CAAC,mBAAmB,CAAC,EAAE;IAwEnE,cAAc,CACZ,MAAM,EAAE,aAAa,EACrB,UAAU,EAAE,eAAe,GAC1B,MAAM,IAAI;IA8Bb,qBAAqB,CAAC,MAAM,EAAE,WAAW;CAwF1C"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * An extension to register \@lexical/plain-text behavior
3
+ */
4
+ export declare const PlainTextExtension: import('@etrepum/lexical-builder-core').LexicalExtension<import('@etrepum/lexical-builder-core').ExtensionConfigBase, "@lexical/plain-text", unknown, unknown>;
5
+ //# sourceMappingURL=PlainTextExtension.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PlainTextExtension.d.ts","sourceRoot":"","sources":["../src/PlainTextExtension.ts"],"names":[],"mappings":"AAWA;;GAEG;AACH,eAAO,MAAM,kBAAkB,gKAK7B,CAAC"}
@@ -0,0 +1,13 @@
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
+ /**
9
+ * An extension to register \@lexical/rich-text behavior and nodes
10
+ * ({@link HeadingNode}, {@link QuoteNode})
11
+ */
12
+ export declare const RichTextExtension: import('@etrepum/lexical-builder-core').LexicalExtension<import('@etrepum/lexical-builder-core').ExtensionConfigBase, "@lexical/rich-text", unknown, unknown>;
13
+ //# sourceMappingURL=RichTextExtension.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RichTextExtension.d.ts","sourceRoot":"","sources":["../src/RichTextExtension.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH;;;GAGG;AACH,eAAO,MAAM,iBAAiB,+JAM5B,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { LexicalEditor } from 'lexical';
2
+ import { AnyLexicalExtension, LexicalExtensionDependency } from '@etrepum/lexical-builder-core';
3
+ /**
4
+ * Get the finalized config and output of an Extension that was used to build the editor.
5
+ *
6
+ * This is useful in the implementation of a LexicalNode or in other
7
+ * situations where you have an editor reference but it's not easy to
8
+ * pass the config or {@link ExtensionRegisterState} around.
9
+ *
10
+ * It will throw if the Editor was not built using this Extension.
11
+ *
12
+ * @param editor - The editor that was built using extension
13
+ * @param extension - The concrete reference to an Extension used to build this editor
14
+ * @returns The config and output for that Extension
15
+ */
16
+ export declare function getExtensionDependencyFromEditor<Extension extends AnyLexicalExtension>(editor: LexicalEditor, extension: Extension): LexicalExtensionDependency<Extension>;
17
+ //# sourceMappingURL=getExtensionDependencyFromEditor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getExtensionDependencyFromEditor.d.ts","sourceRoot":"","sources":["../src/getExtensionDependencyFromEditor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,KAAK,EACV,mBAAmB,EACnB,0BAA0B,EAC3B,MAAM,+BAA+B,CAAC;AAIvC;;;;;;;;;;;;GAYG;AACH,wBAAgB,gCAAgC,CAAC,SAAS,SAAS,mBAAmB,EACpF,MAAM,EAAE,aAAa,EACrB,SAAS,EAAE,SAAS,GACnB,0BAA0B,CAAC,SAAS,CAAC,CASvC"}
@@ -1,43 +1,43 @@
1
1
  import { LexicalEditor } from 'lexical';
2
- import { AnyLexicalPlan, LexicalPlanDependency } from '@etrepum/lexical-builder-core';
2
+ import { AnyLexicalExtension, LexicalExtensionDependency } from '@etrepum/lexical-builder-core';
3
3
  /**
4
- * Get the finalized config and output of a Plan that was used to build the
4
+ * Get the finalized config and output of an Extension that was used to build the
5
5
  * editor by name.
6
6
  *
7
7
  * This can be used from the implementation of a LexicalNode or in other
8
8
  * situation where you have an editor reference but it's not easy to pass the
9
9
  * config around. Use this version if you do not have a concrete reference to
10
- * the Plan for some reason (e.g. it is an optional peer dependency, or you
10
+ * the Extension for some reason (e.g. it is an optional peer dependency, or you
11
11
  * are avoiding a circular import).
12
12
  *
13
- * Both the explicit Plan type and the name are required.
13
+ * Both the explicit Extension type and the name are required.
14
14
  *
15
15
  * @example
16
16
  * ```tsx
17
- * import type { EmojiPlan } from "@etrepum/lexical-emoji-plan";
18
- * getPeerDependencyFromEditor<typeof EmojiPlan>(editor, "@etrepum/lexical-emoji-plan/Emoji");
17
+ * import type { EmojiExtension } from "@etrepum/lexical-emoji-extension";
18
+ * getPeerDependencyFromEditor<typeof EmojiExtension>(editor, "@etrepum/lexical-emoji-extension/Emoji");
19
19
  * ```
20
20
 
21
- * @param editor - The editor that may have been built using plan
22
- * @param planName - The name of the Plan
23
- * @returns The config and output of the Plan or undefined
21
+ * @param editor - The editor that may have been built using extension
22
+ * @param extensionName - The name of the Extension
23
+ * @returns The config and output of the Extension or undefined
24
24
  */
25
- export declare function getPeerDependencyFromEditor<Plan extends AnyLexicalPlan = never>(editor: LexicalEditor, planName: Plan["name"]): LexicalPlanDependency<Plan> | undefined;
25
+ export declare function getPeerDependencyFromEditor<Extension extends AnyLexicalExtension = never>(editor: LexicalEditor, extensionName: Extension["name"]): LexicalExtensionDependency<Extension> | undefined;
26
26
  /**
27
- * Get the finalized config and output of a Plan that was used to build the
27
+ * Get the finalized config and output of an Extension that was used to build the
28
28
  * editor by name.
29
29
  *
30
30
  * This can be used from the implementation of a LexicalNode or in other
31
31
  * situation where you have an editor reference but it's not easy to pass the
32
32
  * config around. Use this version if you do not have a concrete reference to
33
- * the Plan for some reason (e.g. it is an optional peer dependency, or you
33
+ * the Extension for some reason (e.g. it is an optional peer dependency, or you
34
34
  * are avoiding a circular import).
35
35
  *
36
- * Both the explicit Plan type and the name are required.
36
+ * Both the explicit Extension type and the name are required.
37
37
  *
38
38
  * @example
39
39
  * ```tsx
40
- * import type { EmojiPlan } from "./EmojiPlan";
40
+ * import type { EmojiExtension } from "./EmojiExtension";
41
41
  * export class EmojiNode extends TextNode {
42
42
  * // other implementation details not included
43
43
  * createDOM(
@@ -47,9 +47,9 @@ export declare function getPeerDependencyFromEditor<Plan extends AnyLexicalPlan
47
47
  * const dom = super.createDOM(config, editor);
48
48
  * addClassNamesToElement(
49
49
  * dom,
50
- * getPeerDependencyFromEditorOrThrow<typeof EmojiPlan>(
50
+ * getPeerDependencyFromEditorOrThrow<typeof EmojiExtension>(
51
51
  * editor || $getEditor(),
52
- * "@etrepum/lexical-emoji-plan/Emoji",
52
+ * "@etrepum/lexical-emoji-extension/Emoji",
53
53
  * ).config.emojiClass,
54
54
  * );
55
55
  * return dom;
@@ -57,9 +57,9 @@ export declare function getPeerDependencyFromEditor<Plan extends AnyLexicalPlan
57
57
  * }
58
58
  * ```
59
59
 
60
- * @param editor - The editor that may have been built using plan
61
- * @param planName - The name of the Plan
62
- * @returns The config and output of the Plan
60
+ * @param editor - The editor that may have been built using extension
61
+ * @param extensionName - The name of the Extension
62
+ * @returns The config and output of the Extension
63
63
  */
64
- export declare function getPeerDependencyFromEditorOrThrow<Plan extends AnyLexicalPlan = never>(editor: LexicalEditor, planName: Plan["name"]): LexicalPlanDependency<Plan>;
64
+ export declare function getPeerDependencyFromEditorOrThrow<Extension extends AnyLexicalExtension = never>(editor: LexicalEditor, extensionName: Extension["name"]): LexicalExtensionDependency<Extension>;
65
65
  //# sourceMappingURL=getPeerDependencyFromEditor.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getPeerDependencyFromEditor.d.ts","sourceRoot":"","sources":["../src/getPeerDependencyFromEditor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,KAAK,EACV,cAAc,EACd,qBAAqB,EACtB,MAAM,+BAA+B,CAAC;AAIvC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,2BAA2B,CACzC,IAAI,SAAS,cAAc,GAAG,KAAK,EAEnC,MAAM,EAAE,aAAa,EACrB,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC,GACrB,qBAAqB,CAAC,IAAI,CAAC,GAAG,SAAS,CAMzC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,wBAAgB,kCAAkC,CAChD,IAAI,SAAS,cAAc,GAAG,KAAK,EACnC,MAAM,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC,GAAG,qBAAqB,CAAC,IAAI,CAAC,CAQ5E"}
1
+ {"version":3,"file":"getPeerDependencyFromEditor.d.ts","sourceRoot":"","sources":["../src/getPeerDependencyFromEditor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,KAAK,EACV,mBAAmB,EACnB,0BAA0B,EAC3B,MAAM,+BAA+B,CAAC;AAIvC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,2BAA2B,CACzC,SAAS,SAAS,mBAAmB,GAAG,KAAK,EAE7C,MAAM,EAAE,aAAa,EACrB,aAAa,EAAE,SAAS,CAAC,MAAM,CAAC,GAC/B,0BAA0B,CAAC,SAAS,CAAC,GAAG,SAAS,CAMnD;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,wBAAgB,kCAAkC,CAChD,SAAS,SAAS,mBAAmB,GAAG,KAAK,EAC7C,MAAM,EAAE,aAAa,EAAE,aAAa,EAAE,SAAS,CAAC,MAAM,CAAC,GAAG,0BAA0B,CAAC,SAAS,CAAC,CAQhG"}
package/dist/index.d.ts CHANGED
@@ -6,17 +6,17 @@
6
6
  *
7
7
  */
8
8
  export { PACKAGE_VERSION } from './PACKAGE_VERSION';
9
- export { configPlan, definePlan, provideOutput, declarePeerDependency, safeCast, shallowMergeConfig, type AnyLexicalPlan, type AnyLexicalPlanArgument, type LexicalEditorWithDispose, type InitialEditorStateType, type LexicalPlan, type LexicalPlanArgument, type LexicalPlanConfig, type LexicalPlanName, type LexicalPlanOutput, type LexicalPlanInit, type OutputComponentPlan, type LexicalPlanDependency, type NormalizedLexicalPlanArgument, type PlanConfigBase, type PlanRegisterState, type NormalizedPeerDependency, } from '@etrepum/lexical-builder-core';
10
- export { LexicalBuilder, buildEditorFromPlans } from './LexicalBuilder';
11
- export { getPlanDependencyFromEditor } from './getPlanDependencyFromEditor';
9
+ export { configExtension, defineExtension, provideOutput, declarePeerDependency, safeCast, shallowMergeConfig, type AnyLexicalExtension, type AnyLexicalExtensionArgument, type LexicalEditorWithDispose, type InitialEditorStateType, type LexicalExtension, type LexicalExtensionArgument, type LexicalExtensionConfig, type LexicalExtensionName, type LexicalExtensionOutput, type LexicalExtensionInit, type OutputComponentExtension, type LexicalExtensionDependency, type NormalizedLexicalExtensionArgument, type ExtensionConfigBase, type ExtensionRegisterState, type NormalizedPeerDependency, } from '@etrepum/lexical-builder-core';
10
+ export { LexicalBuilder, buildEditorFromExtensions } from './LexicalBuilder';
11
+ export { getExtensionDependencyFromEditor } from './getExtensionDependencyFromEditor';
12
12
  export { getPeerDependencyFromEditor, getPeerDependencyFromEditorOrThrow, } from './getPeerDependencyFromEditor';
13
13
  export { getKnownTypesAndNodes, type KnownTypesAndNodes } from './config';
14
- export { InitialStatePlan, type InitialStateConfig } from './InitialStatePlan';
15
- export { type AutoFocusConfig, AutoFocusPlan } from './AutoFocusPlan';
16
- export { type DragonConfig, type DragonOutput, DragonPlan } from './DragonPlan';
17
- export { type HistoryConfig, type HistoryOutput, HistoryPlan, SharedHistoryPlan, } from './HistoryPlan';
18
- export { PlainTextPlan } from './PlainTextPlan';
19
- export { RichTextPlan } from './RichTextPlan';
14
+ export { InitialStateExtension, type InitialStateConfig } from './InitialStateExtension';
15
+ export { type AutoFocusConfig, AutoFocusExtension } from './AutoFocusExtension';
16
+ export { type DragonConfig, type DragonOutput, DragonExtension } from './DragonExtension';
17
+ export { type HistoryConfig, type HistoryOutput, HistoryExtension, SharedHistoryExtension, } from './HistoryExtension';
18
+ export { PlainTextExtension } from './PlainTextExtension';
19
+ export { RichTextExtension } from './RichTextExtension';
20
20
  export { disabledToggle, type DisabledToggleOutput, type DisabledToggleOptions, } from './disabledToggle';
21
21
  export { registerStoreToggle } from './registerStoreToggle';
22
22
  export { type WritableStore, type ReadableStore, type StoreSubscriber, Store, } from './Store';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EACL,UAAU,EACV,UAAU,EACV,aAAa,EACb,qBAAqB,EACrB,QAAQ,EACR,kBAAkB,EAClB,KAAK,cAAc,EACnB,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,WAAW,EAChB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,6BAA6B,EAClC,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,GAC9B,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AACx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