@surrealdb/ui 1.0.61 → 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/fonts.d.ts +7 -7
- package/dist/ui.d.ts +30 -8
- package/dist/ui.js +4053 -3785
- package/dist/ui.js.map +1 -1
- package/package.json +1 -1
package/dist/fonts.d.ts
CHANGED
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
export { }
|
|
2
2
|
|
|
3
|
-
declare module "@mantine/core" {
|
|
4
|
-
type ExtendedCustomColors = "obsidian" | "slate" | import("@mantine/core").DefaultMantineColor;
|
|
5
|
-
interface MantineThemeColorsOverride {
|
|
6
|
-
colors: Record<ExtendedCustomColors, import("@mantine/core").MantineColorsTuple>;
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
|
|
10
3
|
declare module "@mantine/core" {
|
|
11
4
|
type SurrealVariant = "surreal";
|
|
12
5
|
type SurrealInputVariant = SurrealVariant | "filled";
|
|
@@ -108,6 +101,13 @@ declare module "@mantine/core" {
|
|
|
108
101
|
}
|
|
109
102
|
}
|
|
110
103
|
|
|
104
|
+
declare module "@mantine/core" {
|
|
105
|
+
type ExtendedCustomColors = "obsidian" | "slate" | import("@mantine/core").DefaultMantineColor;
|
|
106
|
+
interface MantineThemeColorsOverride {
|
|
107
|
+
colors: Record<ExtendedCustomColors, import("@mantine/core").MantineColorsTuple>;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
111
|
declare module "@mantine/core" {
|
|
112
112
|
type ExtendedCustomSizes = import("@mantine/core").DefaultMantineSize | "2xl" | "3xl";
|
|
113
113
|
interface MantineThemeSizesOverride {
|
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;
|
|
@@ -899,6 +909,16 @@ export declare function parseEmphasis(text: string, startIndex: number): {
|
|
|
899
909
|
|
|
900
910
|
export declare function parseHeading(state: ParserState): void;
|
|
901
911
|
|
|
912
|
+
/**
|
|
913
|
+
* Parse an HTML `<table>` element into the same TableNode AST
|
|
914
|
+
* that the markdown `| ... |` table parser produces.
|
|
915
|
+
*
|
|
916
|
+
* Handles `<thead>`, `<tbody>`, `<tr>`, `<th>`, `<td>`, and common
|
|
917
|
+
* inline HTML elements inside cells (`<strong>`, `<em>`, `<mark>`,
|
|
918
|
+
* `<code>`, `<a>`).
|
|
919
|
+
*/
|
|
920
|
+
export declare function parseHtmlTable(state: ParserState, attrs: Record<string, string>): void;
|
|
921
|
+
|
|
902
922
|
export declare function parseHtmlTag(state: ParserState): void;
|
|
903
923
|
|
|
904
924
|
export declare function parseHtmlTagInline(text: string, startIndex: number): {
|
|
@@ -1436,6 +1456,8 @@ export declare function pushCode(attrs: Record<string, string>, value: string, l
|
|
|
1436
1456
|
*/
|
|
1437
1457
|
export declare function pushDetails(attrs: Record<string, string>): DetailsNode;
|
|
1438
1458
|
|
|
1459
|
+
export declare function pushDiv(attrs: Record<string, string>): DivNode;
|
|
1460
|
+
|
|
1439
1461
|
/**
|
|
1440
1462
|
* Validate and process image attributes
|
|
1441
1463
|
*/
|
|
@@ -1656,13 +1678,6 @@ export declare const VIVID_THEME: ThemeConfig_2;
|
|
|
1656
1678
|
|
|
1657
1679
|
export { }
|
|
1658
1680
|
|
|
1659
|
-
declare module "@mantine/core" {
|
|
1660
|
-
type ExtendedCustomColors = "obsidian" | "slate" | import("@mantine/core").DefaultMantineColor;
|
|
1661
|
-
interface MantineThemeColorsOverride {
|
|
1662
|
-
colors: Record<ExtendedCustomColors, import("@mantine/core").MantineColorsTuple>;
|
|
1663
|
-
}
|
|
1664
|
-
}
|
|
1665
|
-
|
|
1666
1681
|
declare module "@mantine/core" {
|
|
1667
1682
|
type SurrealVariant = "surreal";
|
|
1668
1683
|
type SurrealInputVariant = SurrealVariant | "filled";
|
|
@@ -1764,6 +1779,13 @@ declare module "@mantine/core" {
|
|
|
1764
1779
|
}
|
|
1765
1780
|
}
|
|
1766
1781
|
|
|
1782
|
+
declare module "@mantine/core" {
|
|
1783
|
+
type ExtendedCustomColors = "obsidian" | "slate" | import("@mantine/core").DefaultMantineColor;
|
|
1784
|
+
interface MantineThemeColorsOverride {
|
|
1785
|
+
colors: Record<ExtendedCustomColors, import("@mantine/core").MantineColorsTuple>;
|
|
1786
|
+
}
|
|
1787
|
+
}
|
|
1788
|
+
|
|
1767
1789
|
declare module "@mantine/core" {
|
|
1768
1790
|
type ExtendedCustomSizes = import("@mantine/core").DefaultMantineSize | "2xl" | "3xl";
|
|
1769
1791
|
interface MantineThemeSizesOverride {
|