@arkitektbedriftene/fe-lib 0.2.24 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,5 @@
1
+ import { LinkNode } from "@lexical/link";
2
+ import { ListItemNode, ListNode } from "@lexical/list";
3
+ import { HeadingNode, QuoteNode } from "@lexical/rich-text";
4
+ import { TableCellNode, TableNode, TableRowNode } from "@lexical/table";
5
+ export declare const defaultNodes: (typeof HeadingNode | typeof QuoteNode | typeof ListNode | typeof ListItemNode | typeof LinkNode | typeof TableNode | typeof TableRowNode | typeof TableCellNode)[];
@@ -0,0 +1,2 @@
1
+ export * from './state';
2
+ export * from './config';
@@ -0,0 +1,9 @@
1
+ import { type CreateEditorArgs, type SerializedEditorState } from "lexical";
2
+ export declare const isJSON: (str: string) => boolean;
3
+ export declare const stateToHTML: (state: SerializedEditorState | string | null | undefined, nodes: CreateEditorArgs["nodes"], options?: {
4
+ maxLines?: number | null;
5
+ onlyMainContent?: boolean;
6
+ }) => {
7
+ html: string;
8
+ trimCount: number;
9
+ };
@@ -0,0 +1,6 @@
1
+ import { type LexicalEditor } from "lexical";
2
+ export declare const trimState: ({ editor, maxChars, maxLines, }: {
3
+ editor: LexicalEditor;
4
+ maxChars?: number | null | undefined;
5
+ maxLines?: number | null | undefined;
6
+ }) => number;
@@ -0,0 +1 @@
1
+ export * from './lib/rich-text/rich-text'