@nexo-labs/payload-lexical-blocks-builder 1.6.9 → 1.6.10

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.
@@ -0,0 +1,10 @@
1
+ import { FeatureProviderServer } from "@payloadcms/richtext-lexical";
2
+ import { Block, Config } from "payload";
3
+
4
+ //#region src/builder.d.ts
5
+ type LexicalBuilder = (blocks: () => Block[]) => Config["editor"];
6
+ declare function buildLexicalByFeatures(features: () => FeatureProviderServer<any, any, any>[]): LexicalBuilder;
7
+ declare function filterBlocksAtLexicalBuilder<T extends string>(builder: LexicalBuilder, blocks: () => Block[], slugs: T[]): Config["editor"];
8
+ //#endregion
9
+ export { buildLexicalByFeatures as n, filterBlocksAtLexicalBuilder as r, LexicalBuilder as t };
10
+ //# sourceMappingURL=builder-BtCeZMP4.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"builder-BtCeZMP4.d.mts","names":[],"sources":["../src/builder.ts"],"sourcesContent":[],"mappings":";;;;KAOY,cAAA,kBAAgC,YAAY;iBAExC,sBAAA,iBACE,yCACf;AAJS,iBAaI,4BAb8C,CAAA,UAAA,MAAA,CAAA,CAAA,OAAA,EAaW,cAbX,EAAA,MAAA,EAAA,GAAA,GAayC,KAbzC,EAAA,EAAA,KAAA,EAayD,CAbzD,EAAA,CAAA,EAa+D,MAb/D,CAAA,QAAA,CAAA"}
@@ -1,3 +1,2 @@
1
- import { n as buildLexicalByFeatures, r as filterBlocksAtLexicalBuilder, t as LexicalBuilder } from "./builder-BpAN1mp1.mjs";
2
- import "./LexicalDecoratorNode-X-qbNNgJ.mjs";
1
+ import { n as buildLexicalByFeatures, r as filterBlocksAtLexicalBuilder, t as LexicalBuilder } from "./builder-BtCeZMP4.mjs";
3
2
  export { LexicalBuilder, buildLexicalByFeatures, filterBlocksAtLexicalBuilder };
package/dist/index.d.mts CHANGED
@@ -1,4 +1,3 @@
1
- import { n as buildLexicalByFeatures, r as filterBlocksAtLexicalBuilder, t as LexicalBuilder } from "./builder-BpAN1mp1.mjs";
2
- import "./LexicalDecoratorNode-X-qbNNgJ.mjs";
3
- import { a as LexicalBlockProps, i as GenericStory, n as BlocksRendererFunctions, o as StoryArgs, r as ExtendedSerializedEditorState, s as generateStoryForLexicalBlock, t as BlockRendererFunction } from "./renderer-C_hHBJZ5.mjs";
1
+ import { n as buildLexicalByFeatures, r as filterBlocksAtLexicalBuilder, t as LexicalBuilder } from "./builder-BtCeZMP4.mjs";
2
+ import { a as LexicalBlockProps, i as GenericStory, n as BlocksRendererFunctions, o as StoryArgs, r as ExtendedSerializedEditorState, s as generateStoryForLexicalBlock, t as BlockRendererFunction } from "./renderer-DXFuGXD5.mjs";
4
3
  export { BlockRendererFunction, BlocksRendererFunctions, ExtendedSerializedEditorState, GenericStory, LexicalBlockProps, LexicalBuilder, StoryArgs, buildLexicalByFeatures, filterBlocksAtLexicalBuilder, generateStoryForLexicalBlock };
@@ -1,6 +1,48 @@
1
- import { o as SerializedEditorState } from "./LexicalDecoratorNode-X-qbNNgJ.mjs";
2
- import { ReactNode } from "react";
1
+ import "react";
2
+
3
+ //#region ../../node_modules/.pnpm/lexical@0.35.0/node_modules/lexical/nodes/LexicalElementNode.d.ts
4
+
5
+ type SerializedElementNode<T$1 extends SerializedLexicalNode = SerializedLexicalNode> = Spread<{
6
+ children: Array<T$1>;
7
+ direction: 'ltr' | 'rtl' | null;
8
+ format: ElementFormatType;
9
+ indent: number;
10
+ textFormat?: number;
11
+ textStyle?: string;
12
+ }, SerializedLexicalNode>;
13
+ type ElementFormatType = 'left' | 'start' | 'center' | 'right' | 'end' | 'justify' | '';
14
+ //#endregion
15
+ //#region ../../node_modules/.pnpm/lexical@0.35.0/node_modules/lexical/nodes/LexicalRootNode.d.ts
16
+ type SerializedRootNode<T$1 extends SerializedLexicalNode = SerializedLexicalNode> = SerializedElementNode<T$1>;
17
+ //#endregion
18
+ //#region ../../node_modules/.pnpm/lexical@0.35.0/node_modules/lexical/LexicalEditorState.d.ts
19
+ interface SerializedEditorState<T$1 extends SerializedLexicalNode = SerializedLexicalNode> {
20
+ root: SerializedRootNode<T$1>;
21
+ }
22
+ //#endregion
23
+ //#region ../../node_modules/.pnpm/lexical@0.35.0/node_modules/lexical/LexicalConstants.d.ts
3
24
 
25
+ declare const NODE_STATE_KEY = "$";
26
+ //#endregion
27
+ //#region ../../node_modules/.pnpm/lexical@0.35.0/node_modules/lexical/LexicalEditor.d.ts
28
+ type Spread<T1, T2> = Omit<T2, keyof T1> & T1;
29
+ //#endregion
30
+ //#region ../../node_modules/.pnpm/lexical@0.35.0/node_modules/lexical/LexicalNode.d.ts
31
+ /**
32
+ * The base type for all serialized nodes
33
+ */
34
+ type SerializedLexicalNode = {
35
+ /** The type string used by the Node class */
36
+ type: string;
37
+ /** A numeric version for this schema, defaulting to 1, but not generally recommended for use */
38
+ version: number;
39
+ /**
40
+ * Any state persisted with the NodeState API that is not
41
+ * configured for flat storage
42
+ */
43
+ [NODE_STATE_KEY]?: Record<string, unknown>;
44
+ };
45
+ //#endregion
4
46
  //#region ../../node_modules/.pnpm/@storybook+core@8.6.15_prettier@3.7.4_storybook@8.6.15_prettier@3.7.4_/node_modules/@storybook/core/dist/csf/index.d.ts
5
47
  declare global {
6
48
  interface SymbolConstructor {
@@ -675,4 +717,4 @@ type ExtendedSerializedEditorState = SerializedEditorState & {
675
717
  };
676
718
  //#endregion
677
719
  export { LexicalBlockProps as a, GenericStory as i, BlocksRendererFunctions as n, StoryArgs as o, ExtendedSerializedEditorState as r, generateStoryForLexicalBlock as s, BlockRendererFunction as t };
678
- //# sourceMappingURL=renderer-C_hHBJZ5.d.mts.map
720
+ //# sourceMappingURL=renderer-DXFuGXD5.d.mts.map