@surrealdb/ui 1.0.62 → 1.0.63
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.
- package/dist/ui.d.ts +13 -1
- package/dist/ui.js +1683 -1622
- package/dist/ui.js.map +1 -1
- package/package.json +1 -1
package/dist/ui.d.ts
CHANGED
|
@@ -55,7 +55,7 @@ export declare type AnyNode = BlockNode | InlineNode | SummaryNode | ListItemNod
|
|
|
55
55
|
*/
|
|
56
56
|
export declare function applyAutoFolding(view: EditorView, autoCollapseDepth: number): void;
|
|
57
57
|
|
|
58
|
-
export declare type BlockNode = HeadingNode | ParagraphNode | CodeNode | BlockquoteNode | ListNode | TableNode | ThematicBreakNode | DetailsNode | ImageNode;
|
|
58
|
+
export declare type BlockNode = HeadingNode | ParagraphNode | CodeNode | BlockquoteNode | ListNode | TableNode | ThematicBreakNode | DivNode | DetailsNode | ImageNode;
|
|
59
59
|
|
|
60
60
|
export declare interface BlockquoteNode {
|
|
61
61
|
type: "blockquote";
|
|
@@ -342,6 +342,14 @@ export declare interface DetailsProps extends Omit<BoxProps, "component" | "chil
|
|
|
342
342
|
children: ReactNode;
|
|
343
343
|
}
|
|
344
344
|
|
|
345
|
+
export declare interface DivNode {
|
|
346
|
+
type: "div";
|
|
347
|
+
children: BlockNode[];
|
|
348
|
+
className?: string;
|
|
349
|
+
id?: string;
|
|
350
|
+
style?: string;
|
|
351
|
+
}
|
|
352
|
+
|
|
345
353
|
export declare interface EditorController {
|
|
346
354
|
ref: RefObject<HTMLDivElement | null>;
|
|
347
355
|
mounted: boolean;
|
|
@@ -892,6 +900,8 @@ export declare function parseCodeBlock(state: ParserState): void;
|
|
|
892
900
|
|
|
893
901
|
export declare function parseDetailsTag(state: ParserState, attrs: Record<string, string>): void;
|
|
894
902
|
|
|
903
|
+
export declare function parseDivTag(state: ParserState, attrs: Record<string, string>): void;
|
|
904
|
+
|
|
895
905
|
export declare function parseEmphasis(text: string, startIndex: number): {
|
|
896
906
|
node: EmphasisNode;
|
|
897
907
|
endIndex: number;
|
|
@@ -1446,6 +1456,8 @@ export declare function pushCode(attrs: Record<string, string>, value: string, l
|
|
|
1446
1456
|
*/
|
|
1447
1457
|
export declare function pushDetails(attrs: Record<string, string>): DetailsNode;
|
|
1448
1458
|
|
|
1459
|
+
export declare function pushDiv(attrs: Record<string, string>): DivNode;
|
|
1460
|
+
|
|
1449
1461
|
/**
|
|
1450
1462
|
* Validate and process image attributes
|
|
1451
1463
|
*/
|