@contentful/field-editor-rich-text 1.0.0-alpha.3 → 1.0.0
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/CHANGELOG.md +410 -0
- package/LICENSE +1 -1
- package/README.md +9 -20
- package/dist/RichTextEditor.d.ts +14 -24
- package/dist/Toolbar/index.d.ts +6 -14
- package/dist/dialogs/HypelinkDialog/HyperlinkDialog.d.ts +54 -0
- package/dist/dialogs/openRichTextDialog.d.ts +1 -0
- package/dist/dialogs/renderRichTextDialog.d.ts +1 -0
- package/dist/field-editor-rich-text.cjs.development.js +3513 -1840
- package/dist/field-editor-rich-text.cjs.development.js.map +1 -1
- package/dist/field-editor-rich-text.cjs.production.min.js +1 -1
- package/dist/field-editor-rich-text.cjs.production.min.js.map +1 -1
- package/dist/field-editor-rich-text.esm.js +3515 -1842
- package/dist/field-editor-rich-text.esm.js.map +1 -1
- package/dist/helpers/getLinkedContentTypeIdsForNodeType.d.ts +1 -1
- package/dist/helpers/newEntitySelectorConfigFromRichTextField.d.ts +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/plugins/Bold/index.d.ts +4 -4
- package/dist/plugins/Code/index.d.ts +4 -4
- package/dist/plugins/CommandPalette/CommandMark.d.ts +2 -3
- package/dist/plugins/CommandPalette/CommandPalette.d.ts +0 -4
- package/dist/plugins/CommandPalette/CommandPaletteService.d.ts +16 -8
- package/dist/plugins/CommandPalette/CommandPanel/CommandPanelMenu.d.ts +4 -9
- package/dist/plugins/CommandPalette/CommandPanel/InViewport/InViewport.d.ts +37 -0
- package/dist/plugins/CommandPalette/CommandPanel/index.d.ts +5 -19
- package/dist/plugins/CommandPalette/Util.d.ts +1 -1
- package/dist/plugins/EmbeddedEntityBlock/EmbeddedEntityBlock.d.ts +4 -13
- package/dist/plugins/EmbeddedEntityBlock/EmbeddedEntityBlock.styles.d.ts +3 -0
- package/dist/plugins/EmbeddedEntityBlock/FetchingWrappedAssetCard.d.ts +15 -0
- package/dist/plugins/EmbeddedEntityBlock/FetchingWrappedEntryCard.d.ts +15 -0
- package/dist/plugins/EmbeddedEntityBlock/ToolbarIcon.d.ts +4 -4
- package/dist/plugins/EmbeddedEntityBlock/Util.d.ts +2 -2
- package/dist/plugins/EmbeddedEntityBlock/index.d.ts +2 -3
- package/dist/plugins/EmbeddedEntryInline/EmbeddedEntryInline.d.ts +5 -13
- package/dist/plugins/EmbeddedEntryInline/EmbeddedEntryInline.styles.d.ts +4 -0
- package/dist/plugins/EmbeddedEntryInline/FetchingWrappedInlineEntryCard.d.ts +14 -0
- package/dist/plugins/EmbeddedEntryInline/ToolbarIcon.d.ts +4 -4
- package/dist/plugins/EmbeddedEntryInline/Utils.d.ts +1 -1
- package/dist/plugins/EmbeddedEntryInline/index.d.ts +2 -3
- package/dist/plugins/EntryEmbedDropdown/index.d.ts +3 -4
- package/dist/plugins/Heading/HeadingDropdown.d.ts +12 -13
- package/dist/plugins/Heading/HeadingDropdownItem.d.ts +57 -0
- package/dist/plugins/Heading/Paragraph.d.ts +57 -1
- package/dist/plugins/Heading/index.d.ts +336 -6
- package/dist/plugins/Hr/index.d.ts +4 -4
- package/dist/plugins/Hyperlink/Hyperlink.d.ts +11 -23
- package/dist/plugins/Hyperlink/ToolbarIcon.d.ts +3 -4
- package/dist/plugins/Hyperlink/Util.d.ts +4 -4
- package/dist/plugins/Hyperlink/styles.d.ts +5 -0
- package/dist/plugins/Hyperlink/truncate.d.ts +1 -0
- package/dist/plugins/Hyperlink/useRequestStatus.d.ts +6 -0
- package/dist/plugins/Italic/index.d.ts +4 -4
- package/dist/plugins/List/ToolbarDecorator.d.ts +6 -6
- package/dist/plugins/List/index.d.ts +8 -8
- package/dist/plugins/Quote/index.d.ts +4 -4
- package/dist/plugins/Underlined/index.d.ts +4 -4
- package/dist/plugins/shared/BlockSelectDecorator.d.ts +6 -6
- package/dist/plugins/shared/BlockToggleDecorator.d.ts +6 -6
- package/dist/plugins/shared/MarkToggleDecorator.d.ts +6 -6
- package/dist/plugins/shared/PluginApi.d.ts +10 -5
- package/dist/plugins/shared/ToolbarDropdownListItem.d.ts +3 -4
- package/dist/plugins/shared/ToolbarIcon.d.ts +5 -5
- package/dist/plugins/shared/Util.d.ts +1 -0
- package/package.json +22 -11
- package/dist/plugins/Heading/Heading1.d.ts +0 -2
- package/dist/plugins/Heading/Heading2.d.ts +0 -2
- package/dist/plugins/Heading/Heading3.d.ts +0 -2
- package/dist/plugins/Heading/Heading4.d.ts +0 -2
- package/dist/plugins/Heading/Heading5.d.ts +0 -2
- package/dist/plugins/Heading/Heading6.d.ts +0 -2
|
@@ -40,11 +40,341 @@ export function Heading6Plugin({ type, richTextAPI }: {
|
|
|
40
40
|
renderNode: (props: any, _editor: any, next: any) => any;
|
|
41
41
|
onKeyDown: (e: any, editor: any, next: any) => any;
|
|
42
42
|
};
|
|
43
|
-
export
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
43
|
+
export const Heading1: {
|
|
44
|
+
new (props: any): {
|
|
45
|
+
handleSelect: (event: any) => any;
|
|
46
|
+
render(): JSX.Element;
|
|
47
|
+
context: any;
|
|
48
|
+
setState<K extends string | number | symbol>(state: any, callback?: (() => void) | undefined): void;
|
|
49
|
+
forceUpdate(callback?: (() => void) | undefined): void;
|
|
50
|
+
readonly props: Readonly<any> & Readonly<{
|
|
51
|
+
children?: import("react").ReactNode;
|
|
52
|
+
}>;
|
|
53
|
+
state: Readonly<any>;
|
|
54
|
+
refs: {
|
|
55
|
+
[key: string]: import("react").ReactInstance;
|
|
56
|
+
};
|
|
57
|
+
componentDidMount?(): void;
|
|
58
|
+
shouldComponentUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): boolean;
|
|
59
|
+
componentWillUnmount?(): void;
|
|
60
|
+
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
|
61
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>): any;
|
|
62
|
+
componentDidUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>, snapshot?: any): void;
|
|
63
|
+
componentWillMount?(): void;
|
|
64
|
+
UNSAFE_componentWillMount?(): void;
|
|
65
|
+
componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
|
|
66
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
|
|
67
|
+
componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
|
|
68
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
|
|
69
|
+
};
|
|
70
|
+
new (props: any, context: any): {
|
|
71
|
+
handleSelect: (event: any) => any;
|
|
72
|
+
render(): JSX.Element;
|
|
73
|
+
context: any;
|
|
74
|
+
setState<K extends string | number | symbol>(state: any, callback?: (() => void) | undefined): void;
|
|
75
|
+
forceUpdate(callback?: (() => void) | undefined): void;
|
|
76
|
+
readonly props: Readonly<any> & Readonly<{
|
|
77
|
+
children?: import("react").ReactNode;
|
|
78
|
+
}>;
|
|
79
|
+
state: Readonly<any>;
|
|
80
|
+
refs: {
|
|
81
|
+
[key: string]: import("react").ReactInstance;
|
|
82
|
+
};
|
|
83
|
+
componentDidMount?(): void;
|
|
84
|
+
shouldComponentUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): boolean;
|
|
85
|
+
componentWillUnmount?(): void;
|
|
86
|
+
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
|
87
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>): any;
|
|
88
|
+
componentDidUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>, snapshot?: any): void;
|
|
89
|
+
componentWillMount?(): void;
|
|
90
|
+
UNSAFE_componentWillMount?(): void;
|
|
91
|
+
componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
|
|
92
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
|
|
93
|
+
componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
|
|
94
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
|
|
95
|
+
};
|
|
96
|
+
propTypes: any;
|
|
97
|
+
contextType?: import("react").Context<any> | undefined;
|
|
98
|
+
};
|
|
99
|
+
export const Heading2: {
|
|
100
|
+
new (props: any): {
|
|
101
|
+
handleSelect: (event: any) => any;
|
|
102
|
+
render(): JSX.Element;
|
|
103
|
+
context: any;
|
|
104
|
+
setState<K extends string | number | symbol>(state: any, callback?: (() => void) | undefined): void;
|
|
105
|
+
forceUpdate(callback?: (() => void) | undefined): void;
|
|
106
|
+
readonly props: Readonly<any> & Readonly<{
|
|
107
|
+
children?: import("react").ReactNode;
|
|
108
|
+
}>;
|
|
109
|
+
state: Readonly<any>;
|
|
110
|
+
refs: {
|
|
111
|
+
[key: string]: import("react").ReactInstance;
|
|
112
|
+
};
|
|
113
|
+
componentDidMount?(): void;
|
|
114
|
+
shouldComponentUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): boolean;
|
|
115
|
+
componentWillUnmount?(): void;
|
|
116
|
+
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
|
117
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>): any;
|
|
118
|
+
componentDidUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>, snapshot?: any): void;
|
|
119
|
+
componentWillMount?(): void;
|
|
120
|
+
UNSAFE_componentWillMount?(): void;
|
|
121
|
+
componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
|
|
122
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
|
|
123
|
+
componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
|
|
124
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
|
|
125
|
+
};
|
|
126
|
+
new (props: any, context: any): {
|
|
127
|
+
handleSelect: (event: any) => any;
|
|
128
|
+
render(): JSX.Element;
|
|
129
|
+
context: any;
|
|
130
|
+
setState<K extends string | number | symbol>(state: any, callback?: (() => void) | undefined): void;
|
|
131
|
+
forceUpdate(callback?: (() => void) | undefined): void;
|
|
132
|
+
readonly props: Readonly<any> & Readonly<{
|
|
133
|
+
children?: import("react").ReactNode;
|
|
134
|
+
}>;
|
|
135
|
+
state: Readonly<any>;
|
|
136
|
+
refs: {
|
|
137
|
+
[key: string]: import("react").ReactInstance;
|
|
138
|
+
};
|
|
139
|
+
componentDidMount?(): void;
|
|
140
|
+
shouldComponentUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): boolean;
|
|
141
|
+
componentWillUnmount?(): void;
|
|
142
|
+
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
|
143
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>): any;
|
|
144
|
+
componentDidUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>, snapshot?: any): void;
|
|
145
|
+
componentWillMount?(): void;
|
|
146
|
+
UNSAFE_componentWillMount?(): void;
|
|
147
|
+
componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
|
|
148
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
|
|
149
|
+
componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
|
|
150
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
|
|
151
|
+
};
|
|
152
|
+
propTypes: any;
|
|
153
|
+
contextType?: import("react").Context<any> | undefined;
|
|
154
|
+
};
|
|
155
|
+
export const Heading3: {
|
|
156
|
+
new (props: any): {
|
|
157
|
+
handleSelect: (event: any) => any;
|
|
158
|
+
render(): JSX.Element;
|
|
159
|
+
context: any;
|
|
160
|
+
setState<K extends string | number | symbol>(state: any, callback?: (() => void) | undefined): void;
|
|
161
|
+
forceUpdate(callback?: (() => void) | undefined): void;
|
|
162
|
+
readonly props: Readonly<any> & Readonly<{
|
|
163
|
+
children?: import("react").ReactNode;
|
|
164
|
+
}>;
|
|
165
|
+
state: Readonly<any>;
|
|
166
|
+
refs: {
|
|
167
|
+
[key: string]: import("react").ReactInstance;
|
|
168
|
+
};
|
|
169
|
+
componentDidMount?(): void;
|
|
170
|
+
shouldComponentUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): boolean;
|
|
171
|
+
componentWillUnmount?(): void;
|
|
172
|
+
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
|
173
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>): any;
|
|
174
|
+
componentDidUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>, snapshot?: any): void;
|
|
175
|
+
componentWillMount?(): void;
|
|
176
|
+
UNSAFE_componentWillMount?(): void;
|
|
177
|
+
componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
|
|
178
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
|
|
179
|
+
componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
|
|
180
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
|
|
181
|
+
};
|
|
182
|
+
new (props: any, context: any): {
|
|
183
|
+
handleSelect: (event: any) => any;
|
|
184
|
+
render(): JSX.Element;
|
|
185
|
+
context: any;
|
|
186
|
+
setState<K extends string | number | symbol>(state: any, callback?: (() => void) | undefined): void;
|
|
187
|
+
forceUpdate(callback?: (() => void) | undefined): void;
|
|
188
|
+
readonly props: Readonly<any> & Readonly<{
|
|
189
|
+
children?: import("react").ReactNode;
|
|
190
|
+
}>;
|
|
191
|
+
state: Readonly<any>;
|
|
192
|
+
refs: {
|
|
193
|
+
[key: string]: import("react").ReactInstance;
|
|
194
|
+
};
|
|
195
|
+
componentDidMount?(): void;
|
|
196
|
+
shouldComponentUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): boolean;
|
|
197
|
+
componentWillUnmount?(): void;
|
|
198
|
+
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
|
199
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>): any;
|
|
200
|
+
componentDidUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>, snapshot?: any): void;
|
|
201
|
+
componentWillMount?(): void;
|
|
202
|
+
UNSAFE_componentWillMount?(): void;
|
|
203
|
+
componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
|
|
204
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
|
|
205
|
+
componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
|
|
206
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
|
|
207
|
+
};
|
|
208
|
+
propTypes: any;
|
|
209
|
+
contextType?: import("react").Context<any> | undefined;
|
|
210
|
+
};
|
|
211
|
+
export const Heading4: {
|
|
212
|
+
new (props: any): {
|
|
213
|
+
handleSelect: (event: any) => any;
|
|
214
|
+
render(): JSX.Element;
|
|
215
|
+
context: any;
|
|
216
|
+
setState<K extends string | number | symbol>(state: any, callback?: (() => void) | undefined): void;
|
|
217
|
+
forceUpdate(callback?: (() => void) | undefined): void;
|
|
218
|
+
readonly props: Readonly<any> & Readonly<{
|
|
219
|
+
children?: import("react").ReactNode;
|
|
220
|
+
}>;
|
|
221
|
+
state: Readonly<any>;
|
|
222
|
+
refs: {
|
|
223
|
+
[key: string]: import("react").ReactInstance;
|
|
224
|
+
};
|
|
225
|
+
componentDidMount?(): void;
|
|
226
|
+
shouldComponentUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): boolean;
|
|
227
|
+
componentWillUnmount?(): void;
|
|
228
|
+
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
|
229
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>): any;
|
|
230
|
+
componentDidUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>, snapshot?: any): void;
|
|
231
|
+
componentWillMount?(): void;
|
|
232
|
+
UNSAFE_componentWillMount?(): void;
|
|
233
|
+
componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
|
|
234
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
|
|
235
|
+
componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
|
|
236
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
|
|
237
|
+
};
|
|
238
|
+
new (props: any, context: any): {
|
|
239
|
+
handleSelect: (event: any) => any;
|
|
240
|
+
render(): JSX.Element;
|
|
241
|
+
context: any;
|
|
242
|
+
setState<K extends string | number | symbol>(state: any, callback?: (() => void) | undefined): void;
|
|
243
|
+
forceUpdate(callback?: (() => void) | undefined): void;
|
|
244
|
+
readonly props: Readonly<any> & Readonly<{
|
|
245
|
+
children?: import("react").ReactNode;
|
|
246
|
+
}>;
|
|
247
|
+
state: Readonly<any>;
|
|
248
|
+
refs: {
|
|
249
|
+
[key: string]: import("react").ReactInstance;
|
|
250
|
+
};
|
|
251
|
+
componentDidMount?(): void;
|
|
252
|
+
shouldComponentUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): boolean;
|
|
253
|
+
componentWillUnmount?(): void;
|
|
254
|
+
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
|
255
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>): any;
|
|
256
|
+
componentDidUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>, snapshot?: any): void;
|
|
257
|
+
componentWillMount?(): void;
|
|
258
|
+
UNSAFE_componentWillMount?(): void;
|
|
259
|
+
componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
|
|
260
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
|
|
261
|
+
componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
|
|
262
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
|
|
263
|
+
};
|
|
264
|
+
propTypes: any;
|
|
265
|
+
contextType?: import("react").Context<any> | undefined;
|
|
266
|
+
};
|
|
267
|
+
export const Heading5: {
|
|
268
|
+
new (props: any): {
|
|
269
|
+
handleSelect: (event: any) => any;
|
|
270
|
+
render(): JSX.Element;
|
|
271
|
+
context: any;
|
|
272
|
+
setState<K extends string | number | symbol>(state: any, callback?: (() => void) | undefined): void;
|
|
273
|
+
forceUpdate(callback?: (() => void) | undefined): void;
|
|
274
|
+
readonly props: Readonly<any> & Readonly<{
|
|
275
|
+
children?: import("react").ReactNode;
|
|
276
|
+
}>;
|
|
277
|
+
state: Readonly<any>;
|
|
278
|
+
refs: {
|
|
279
|
+
[key: string]: import("react").ReactInstance;
|
|
280
|
+
};
|
|
281
|
+
componentDidMount?(): void;
|
|
282
|
+
shouldComponentUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): boolean;
|
|
283
|
+
componentWillUnmount?(): void;
|
|
284
|
+
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
|
285
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>): any;
|
|
286
|
+
componentDidUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>, snapshot?: any): void;
|
|
287
|
+
componentWillMount?(): void;
|
|
288
|
+
UNSAFE_componentWillMount?(): void;
|
|
289
|
+
componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
|
|
290
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
|
|
291
|
+
componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
|
|
292
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
|
|
293
|
+
};
|
|
294
|
+
new (props: any, context: any): {
|
|
295
|
+
handleSelect: (event: any) => any;
|
|
296
|
+
render(): JSX.Element;
|
|
297
|
+
context: any;
|
|
298
|
+
setState<K extends string | number | symbol>(state: any, callback?: (() => void) | undefined): void;
|
|
299
|
+
forceUpdate(callback?: (() => void) | undefined): void;
|
|
300
|
+
readonly props: Readonly<any> & Readonly<{
|
|
301
|
+
children?: import("react").ReactNode;
|
|
302
|
+
}>;
|
|
303
|
+
state: Readonly<any>;
|
|
304
|
+
refs: {
|
|
305
|
+
[key: string]: import("react").ReactInstance;
|
|
306
|
+
};
|
|
307
|
+
componentDidMount?(): void;
|
|
308
|
+
shouldComponentUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): boolean;
|
|
309
|
+
componentWillUnmount?(): void;
|
|
310
|
+
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
|
311
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>): any;
|
|
312
|
+
componentDidUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>, snapshot?: any): void;
|
|
313
|
+
componentWillMount?(): void;
|
|
314
|
+
UNSAFE_componentWillMount?(): void;
|
|
315
|
+
componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
|
|
316
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
|
|
317
|
+
componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
|
|
318
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
|
|
319
|
+
};
|
|
320
|
+
propTypes: any;
|
|
321
|
+
contextType?: import("react").Context<any> | undefined;
|
|
322
|
+
};
|
|
323
|
+
export const Heading6: {
|
|
324
|
+
new (props: any): {
|
|
325
|
+
handleSelect: (event: any) => any;
|
|
326
|
+
render(): JSX.Element;
|
|
327
|
+
context: any;
|
|
328
|
+
setState<K extends string | number | symbol>(state: any, callback?: (() => void) | undefined): void;
|
|
329
|
+
forceUpdate(callback?: (() => void) | undefined): void;
|
|
330
|
+
readonly props: Readonly<any> & Readonly<{
|
|
331
|
+
children?: import("react").ReactNode;
|
|
332
|
+
}>;
|
|
333
|
+
state: Readonly<any>;
|
|
334
|
+
refs: {
|
|
335
|
+
[key: string]: import("react").ReactInstance;
|
|
336
|
+
};
|
|
337
|
+
componentDidMount?(): void;
|
|
338
|
+
shouldComponentUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): boolean;
|
|
339
|
+
componentWillUnmount?(): void;
|
|
340
|
+
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
|
341
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>): any;
|
|
342
|
+
componentDidUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>, snapshot?: any): void;
|
|
343
|
+
componentWillMount?(): void;
|
|
344
|
+
UNSAFE_componentWillMount?(): void;
|
|
345
|
+
componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
|
|
346
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
|
|
347
|
+
componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
|
|
348
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
|
|
349
|
+
};
|
|
350
|
+
new (props: any, context: any): {
|
|
351
|
+
handleSelect: (event: any) => any;
|
|
352
|
+
render(): JSX.Element;
|
|
353
|
+
context: any;
|
|
354
|
+
setState<K extends string | number | symbol>(state: any, callback?: (() => void) | undefined): void;
|
|
355
|
+
forceUpdate(callback?: (() => void) | undefined): void;
|
|
356
|
+
readonly props: Readonly<any> & Readonly<{
|
|
357
|
+
children?: import("react").ReactNode;
|
|
358
|
+
}>;
|
|
359
|
+
state: Readonly<any>;
|
|
360
|
+
refs: {
|
|
361
|
+
[key: string]: import("react").ReactInstance;
|
|
362
|
+
};
|
|
363
|
+
componentDidMount?(): void;
|
|
364
|
+
shouldComponentUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): boolean;
|
|
365
|
+
componentWillUnmount?(): void;
|
|
366
|
+
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
|
367
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>): any;
|
|
368
|
+
componentDidUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>, snapshot?: any): void;
|
|
369
|
+
componentWillMount?(): void;
|
|
370
|
+
UNSAFE_componentWillMount?(): void;
|
|
371
|
+
componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
|
|
372
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
|
|
373
|
+
componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
|
|
374
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
|
|
375
|
+
};
|
|
376
|
+
propTypes: any;
|
|
377
|
+
contextType?: import("react").Context<any> | undefined;
|
|
378
|
+
};
|
|
49
379
|
export { default as Paragraph } from "./Paragraph";
|
|
50
380
|
export { default as HeadingDropdown } from "./HeadingDropdown";
|
|
@@ -2,8 +2,8 @@ export function HrPlugin(): {
|
|
|
2
2
|
renderNode: (props: any, _editor: any, next: any) => any;
|
|
3
3
|
};
|
|
4
4
|
declare var _default: {
|
|
5
|
-
new (props:
|
|
6
|
-
handleSelect: (
|
|
5
|
+
new (props: any): {
|
|
6
|
+
handleSelect: (event: any) => any;
|
|
7
7
|
render(): JSX.Element;
|
|
8
8
|
context: any;
|
|
9
9
|
setState<K extends string | number | symbol>(state: any, callback?: (() => void) | undefined): void;
|
|
@@ -28,8 +28,8 @@ declare var _default: {
|
|
|
28
28
|
componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
|
|
29
29
|
UNSAFE_componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
|
|
30
30
|
};
|
|
31
|
-
new (props: any, context
|
|
32
|
-
handleSelect: (
|
|
31
|
+
new (props: any, context: any): {
|
|
32
|
+
handleSelect: (event: any) => any;
|
|
33
33
|
render(): JSX.Element;
|
|
34
34
|
context: any;
|
|
35
35
|
setState<K extends string | number | symbol>(state: any, callback?: (() => void) | undefined): void;
|
|
@@ -1,25 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
static defaultProps: {
|
|
12
|
-
onEdit: (...args: any[]) => void;
|
|
13
|
-
renderEntityHyperlinkTooltip: (target: any) => JSX.Element;
|
|
14
|
-
};
|
|
15
|
-
constructor(props: Readonly<any>);
|
|
16
|
-
constructor(props: any, context?: any);
|
|
17
|
-
onKeyDown(e: any): void;
|
|
18
|
-
render(): JSX.Element;
|
|
19
|
-
renderLink({ tooltip }: {
|
|
20
|
-
tooltip: any;
|
|
21
|
-
}): JSX.Element;
|
|
22
|
-
renderEntityLink(target: any): JSX.Element;
|
|
1
|
+
declare function Hyperlink(props: any): JSX.Element;
|
|
2
|
+
declare namespace Hyperlink {
|
|
3
|
+
export namespace propTypes {
|
|
4
|
+
export const attributes: PropTypes.Validator<object>;
|
|
5
|
+
export const node: PropTypes.Validator<object>;
|
|
6
|
+
export const children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
7
|
+
export const editor: PropTypes.Requireable<object>;
|
|
8
|
+
export const richTextAPI: PropTypes.Validator<object>;
|
|
9
|
+
export const onEdit: PropTypes.Requireable<(...args: any[]) => any>;
|
|
10
|
+
}
|
|
23
11
|
}
|
|
24
|
-
|
|
12
|
+
export default Hyperlink;
|
|
25
13
|
import PropTypes from "prop-types";
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
export default class HyperlinkToolbarIcon extends React.Component<any, any, any> {
|
|
2
2
|
static propTypes: any;
|
|
3
|
-
constructor(props:
|
|
4
|
-
constructor(props: any, context
|
|
5
|
-
handleClick: (event: any) =>
|
|
6
|
-
render(): JSX.Element;
|
|
3
|
+
constructor(props: any);
|
|
4
|
+
constructor(props: any, context: any);
|
|
5
|
+
handleClick: (event: any) => any;
|
|
7
6
|
}
|
|
8
7
|
import React from "react";
|
|
@@ -26,18 +26,18 @@ export function hasOnlyHyperlinkInlines(value: any): boolean;
|
|
|
26
26
|
* the user.
|
|
27
27
|
*
|
|
28
28
|
* @param {slate.Editor} editor Will be mutated with the required operations.
|
|
29
|
-
* @param {
|
|
29
|
+
* @param {Object} sdk
|
|
30
30
|
* @param {function} logAction
|
|
31
31
|
* @returns {Promise<void>}
|
|
32
32
|
*/
|
|
33
|
-
export function toggleLink(editor: any,
|
|
33
|
+
export function toggleLink(editor: any, sdk: any, logAction: Function): Promise<void>;
|
|
34
34
|
/**
|
|
35
35
|
* Allows the user to edit the first selected link of a given Change by showing
|
|
36
36
|
* a dialog and applying the change.
|
|
37
37
|
*
|
|
38
38
|
* @param {slate.Editor} change Will be mutated with the required operations.
|
|
39
|
-
* @param {
|
|
39
|
+
* @param {Object} sdk
|
|
40
40
|
* @param {function} logAction
|
|
41
41
|
* @returns {Promise<void>}
|
|
42
42
|
*/
|
|
43
|
-
export function editLink(change: any,
|
|
43
|
+
export function editLink(change: any, sdk: any, logAction: Function): Promise<void>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function truncate(str: any, length: any): any;
|
|
@@ -5,8 +5,8 @@ export function ItalicPlugin({ richTextAPI }: {
|
|
|
5
5
|
onKeyDown(event: any, editor: any, next: any): any;
|
|
6
6
|
};
|
|
7
7
|
declare var _default: {
|
|
8
|
-
new (props:
|
|
9
|
-
handleToggle: (
|
|
8
|
+
new (props: any): {
|
|
9
|
+
handleToggle: (event: any) => any;
|
|
10
10
|
render(): JSX.Element;
|
|
11
11
|
context: any;
|
|
12
12
|
setState<K extends string | number | symbol>(state: any, callback?: (() => void) | undefined): void;
|
|
@@ -31,8 +31,8 @@ declare var _default: {
|
|
|
31
31
|
componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
|
|
32
32
|
UNSAFE_componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
|
|
33
33
|
};
|
|
34
|
-
new (props: any, context
|
|
35
|
-
handleToggle: (
|
|
34
|
+
new (props: any, context: any): {
|
|
35
|
+
handleToggle: (event: any) => any;
|
|
36
36
|
render(): JSX.Element;
|
|
37
37
|
context: any;
|
|
38
38
|
setState<K extends string | number | symbol>(state: any, callback?: (() => void) | undefined): void;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
declare function _default({ type, title,
|
|
1
|
+
declare function _default({ type, title, children }: {
|
|
2
2
|
type: any;
|
|
3
3
|
title: any;
|
|
4
|
-
|
|
4
|
+
children: any;
|
|
5
5
|
}): (Block: any) => {
|
|
6
|
-
new (props:
|
|
7
|
-
handleToggle: (
|
|
6
|
+
new (props: any): {
|
|
7
|
+
handleToggle: (event: any) => any;
|
|
8
8
|
render(): JSX.Element;
|
|
9
9
|
context: any;
|
|
10
10
|
setState<K extends string | number | symbol>(state: any, callback?: (() => void) | undefined): void;
|
|
@@ -29,8 +29,8 @@ declare function _default({ type, title, icon }: {
|
|
|
29
29
|
componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
|
|
30
30
|
UNSAFE_componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
|
|
31
31
|
};
|
|
32
|
-
new (props: any, context
|
|
33
|
-
handleToggle: (
|
|
32
|
+
new (props: any, context: any): {
|
|
33
|
+
handleToggle: (event: any) => any;
|
|
34
34
|
render(): JSX.Element;
|
|
35
35
|
context: any;
|
|
36
36
|
setState<K extends string | number | symbol>(state: any, callback?: (() => void) | undefined): void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export function ListPlugin(): any;
|
|
2
2
|
export const UnorderedList: {
|
|
3
|
-
new (props:
|
|
4
|
-
handleToggle: (
|
|
3
|
+
new (props: any): {
|
|
4
|
+
handleToggle: (event: any) => any;
|
|
5
5
|
render(): JSX.Element;
|
|
6
6
|
context: any;
|
|
7
7
|
setState<K extends string | number | symbol>(state: any, callback?: (() => void) | undefined): void;
|
|
@@ -26,8 +26,8 @@ export const UnorderedList: {
|
|
|
26
26
|
componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
|
|
27
27
|
UNSAFE_componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
|
|
28
28
|
};
|
|
29
|
-
new (props: any, context
|
|
30
|
-
handleToggle: (
|
|
29
|
+
new (props: any, context: any): {
|
|
30
|
+
handleToggle: (event: any) => any;
|
|
31
31
|
render(): JSX.Element;
|
|
32
32
|
context: any;
|
|
33
33
|
setState<K extends string | number | symbol>(state: any, callback?: (() => void) | undefined): void;
|
|
@@ -56,8 +56,8 @@ export const UnorderedList: {
|
|
|
56
56
|
contextType?: React.Context<any> | undefined;
|
|
57
57
|
};
|
|
58
58
|
export const OrderedList: {
|
|
59
|
-
new (props:
|
|
60
|
-
handleToggle: (
|
|
59
|
+
new (props: any): {
|
|
60
|
+
handleToggle: (event: any) => any;
|
|
61
61
|
render(): JSX.Element;
|
|
62
62
|
context: any;
|
|
63
63
|
setState<K extends string | number | symbol>(state: any, callback?: (() => void) | undefined): void;
|
|
@@ -82,8 +82,8 @@ export const OrderedList: {
|
|
|
82
82
|
componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
|
|
83
83
|
UNSAFE_componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
|
|
84
84
|
};
|
|
85
|
-
new (props: any, context
|
|
86
|
-
handleToggle: (
|
|
85
|
+
new (props: any, context: any): {
|
|
86
|
+
handleToggle: (event: any) => any;
|
|
87
87
|
render(): JSX.Element;
|
|
88
88
|
context: any;
|
|
89
89
|
setState<K extends string | number | symbol>(state: any, callback?: (() => void) | undefined): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare var _default: {
|
|
2
|
-
new (props:
|
|
3
|
-
handleToggle: (
|
|
2
|
+
new (props: any): {
|
|
3
|
+
handleToggle: (event: any) => any;
|
|
4
4
|
render(): JSX.Element;
|
|
5
5
|
context: any;
|
|
6
6
|
setState<K extends string | number | symbol>(state: any, callback?: (() => void) | undefined): void;
|
|
@@ -25,8 +25,8 @@ declare var _default: {
|
|
|
25
25
|
componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
|
|
26
26
|
UNSAFE_componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
|
|
27
27
|
};
|
|
28
|
-
new (props: any, context
|
|
29
|
-
handleToggle: (
|
|
28
|
+
new (props: any, context: any): {
|
|
29
|
+
handleToggle: (event: any) => any;
|
|
30
30
|
render(): JSX.Element;
|
|
31
31
|
context: any;
|
|
32
32
|
setState<K extends string | number | symbol>(state: any, callback?: (() => void) | undefined): void;
|
|
@@ -5,8 +5,8 @@ export function UnderlinedPlugin({ richTextAPI }: {
|
|
|
5
5
|
onKeyDown(event: any, editor: any, next: any): any;
|
|
6
6
|
};
|
|
7
7
|
declare var _default: {
|
|
8
|
-
new (props:
|
|
9
|
-
handleToggle: (
|
|
8
|
+
new (props: any): {
|
|
9
|
+
handleToggle: (event: any) => any;
|
|
10
10
|
render(): JSX.Element;
|
|
11
11
|
context: any;
|
|
12
12
|
setState<K extends string | number | symbol>(state: any, callback?: (() => void) | undefined): void;
|
|
@@ -31,8 +31,8 @@ declare var _default: {
|
|
|
31
31
|
componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
|
|
32
32
|
UNSAFE_componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
|
|
33
33
|
};
|
|
34
|
-
new (props: any, context
|
|
35
|
-
handleToggle: (
|
|
34
|
+
new (props: any, context: any): {
|
|
35
|
+
handleToggle: (event: any) => any;
|
|
36
36
|
render(): JSX.Element;
|
|
37
37
|
context: any;
|
|
38
38
|
setState<K extends string | number | symbol>(state: any, callback?: (() => void) | undefined): void;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
declare function _default({ type, title,
|
|
1
|
+
declare function _default({ type, title, children, applyChange, }: {
|
|
2
2
|
type: any;
|
|
3
3
|
title: any;
|
|
4
|
-
|
|
4
|
+
children: any;
|
|
5
5
|
applyChange?: ((editor: any, type: any) => any) | undefined;
|
|
6
6
|
}): (Block: any) => {
|
|
7
|
-
new (props:
|
|
8
|
-
handleSelect: (
|
|
7
|
+
new (props: any): {
|
|
8
|
+
handleSelect: (event: any) => any;
|
|
9
9
|
render(): JSX.Element;
|
|
10
10
|
context: any;
|
|
11
11
|
setState<K extends string | number | symbol>(state: any, callback?: (() => void) | undefined): void;
|
|
@@ -30,8 +30,8 @@ declare function _default({ type, title, icon, applyChange }: {
|
|
|
30
30
|
componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
|
|
31
31
|
UNSAFE_componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
|
|
32
32
|
};
|
|
33
|
-
new (props: any, context
|
|
34
|
-
handleSelect: (
|
|
33
|
+
new (props: any, context: any): {
|
|
34
|
+
handleSelect: (event: any) => any;
|
|
35
35
|
render(): JSX.Element;
|
|
36
36
|
context: any;
|
|
37
37
|
setState<K extends string | number | symbol>(state: any, callback?: (() => void) | undefined): void;
|