@apolitical/component-library 4.1.0-beta.6 → 4.1.0-beta.9
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/form/components/rich-text-editor/components/context/context.d.ts +0 -2
- package/form/components/rich-text-editor/helpers/helpers.data.d.ts +97 -0
- package/form/components/rich-text-editor/helpers/serialize/do-serialize.d.ts +3 -0
- package/form/components/rich-text-editor/helpers/serialize/index.d.ts +1 -0
- package/general/index.d.ts +1 -0
- package/general/portal/index.d.ts +1 -0
- package/general/portal/portal.d.ts +5 -0
- package/index.js +38 -38
- package/index.mjs +3145 -3160
- package/package.json +1 -1
- package/style.css +1 -1
|
@@ -13,8 +13,6 @@ declare const RichTextEditorContext: import("react").Context<{
|
|
|
13
13
|
showLinkEditor: boolean;
|
|
14
14
|
/** The last anchor point (used for Slate to know where the cursor is) */
|
|
15
15
|
lastAnchor: Point | null;
|
|
16
|
-
/** The current selection */
|
|
17
|
-
domSelection: Selection | null;
|
|
18
16
|
/** The function to update the state */
|
|
19
17
|
dispatch: Dispatch<any>;
|
|
20
18
|
}>;
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
export declare const html: {
|
|
2
|
+
paragraph: {
|
|
3
|
+
type: string;
|
|
4
|
+
children: {
|
|
5
|
+
text: string;
|
|
6
|
+
}[];
|
|
7
|
+
}[];
|
|
8
|
+
link: {
|
|
9
|
+
type: string;
|
|
10
|
+
children: ({
|
|
11
|
+
text: string;
|
|
12
|
+
type?: undefined;
|
|
13
|
+
link?: undefined;
|
|
14
|
+
children?: undefined;
|
|
15
|
+
} | {
|
|
16
|
+
type: string;
|
|
17
|
+
link: string;
|
|
18
|
+
children: {
|
|
19
|
+
text: string;
|
|
20
|
+
}[];
|
|
21
|
+
text?: undefined;
|
|
22
|
+
})[];
|
|
23
|
+
}[];
|
|
24
|
+
bold: {
|
|
25
|
+
type: string;
|
|
26
|
+
children: ({
|
|
27
|
+
text: string;
|
|
28
|
+
bold?: undefined;
|
|
29
|
+
} | {
|
|
30
|
+
bold: boolean;
|
|
31
|
+
text: string;
|
|
32
|
+
})[];
|
|
33
|
+
}[];
|
|
34
|
+
italic: {
|
|
35
|
+
type: string;
|
|
36
|
+
children: ({
|
|
37
|
+
text: string;
|
|
38
|
+
italic?: undefined;
|
|
39
|
+
} | {
|
|
40
|
+
italic: boolean;
|
|
41
|
+
text: string;
|
|
42
|
+
})[];
|
|
43
|
+
}[];
|
|
44
|
+
strikethrough: {
|
|
45
|
+
type: string;
|
|
46
|
+
children: ({
|
|
47
|
+
text: string;
|
|
48
|
+
strikeThrough?: undefined;
|
|
49
|
+
} | {
|
|
50
|
+
strikeThrough: boolean;
|
|
51
|
+
text: string;
|
|
52
|
+
})[];
|
|
53
|
+
}[];
|
|
54
|
+
blockquote: {
|
|
55
|
+
type: string;
|
|
56
|
+
children: {
|
|
57
|
+
type: string;
|
|
58
|
+
children: {
|
|
59
|
+
text: string;
|
|
60
|
+
}[];
|
|
61
|
+
}[];
|
|
62
|
+
}[];
|
|
63
|
+
ulList: {
|
|
64
|
+
type: string;
|
|
65
|
+
children: {
|
|
66
|
+
type: string;
|
|
67
|
+
children: {
|
|
68
|
+
type: string;
|
|
69
|
+
children: {
|
|
70
|
+
text: string;
|
|
71
|
+
}[];
|
|
72
|
+
}[];
|
|
73
|
+
}[];
|
|
74
|
+
}[];
|
|
75
|
+
olList: {
|
|
76
|
+
type: string;
|
|
77
|
+
children: {
|
|
78
|
+
type: string;
|
|
79
|
+
children: {
|
|
80
|
+
type: string;
|
|
81
|
+
children: {
|
|
82
|
+
text: string;
|
|
83
|
+
}[];
|
|
84
|
+
}[];
|
|
85
|
+
}[];
|
|
86
|
+
}[];
|
|
87
|
+
};
|
|
88
|
+
export declare const text: {
|
|
89
|
+
paragraph: string;
|
|
90
|
+
link: string;
|
|
91
|
+
bold: string;
|
|
92
|
+
italic: string;
|
|
93
|
+
strikethrough: string;
|
|
94
|
+
blockquote: string;
|
|
95
|
+
ulList: string;
|
|
96
|
+
olList: string;
|
|
97
|
+
};
|
package/general/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Portal } from './portal';
|