@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.
@@ -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
+ };
@@ -0,0 +1,3 @@
1
+ import { Descendant } from 'slate';
2
+ declare const doSerialize: (value: Descendant[]) => string;
3
+ export default doSerialize;
@@ -1 +1,2 @@
1
1
  export { default as serialize } from './serialize';
2
+ export { default as doSerialize } from './do-serialize';
@@ -2,6 +2,7 @@ export * from './buttons';
2
2
  export * from './divider';
3
3
  export * from './image-container';
4
4
  export * from './link';
5
+ export * from './portal';
5
6
  export * from './progress-tracker';
6
7
  export * from './responsive-image';
7
8
  export * from './return-to-nav-button';
@@ -0,0 +1 @@
1
+ export { default as Portal } from './portal';
@@ -0,0 +1,5 @@
1
+ import { ReactNode } from 'react';
2
+ declare const Portal: ({ children }: {
3
+ children?: ReactNode;
4
+ }) => import("react").ReactPortal | null;
5
+ export default Portal;