@contentful/field-editor-rich-text 1.1.0 → 2.0.0-next.10
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/README.md +1 -1
- package/dist/ContentfulEditorProvider.d.ts +8 -0
- package/dist/RichTextEditor.d.ts +18 -60
- package/dist/RichTextEditor.styles.d.ts +7 -0
- package/dist/SdkProvider.d.ts +7 -0
- package/dist/Toolbar/components/EmbedEntityWidget.d.ts +5 -0
- package/dist/Toolbar/components/EmbeddedEntityDropdownButton.d.ts +9 -0
- package/dist/Toolbar/components/StickyToolbarWrapper.d.ts +7 -0
- package/dist/Toolbar/index.d.ts +5 -20
- package/dist/TrackingProvider.d.ts +11 -0
- package/dist/constants/Schema.d.ts +93 -11
- package/dist/dialogs/openRichTextDialog.d.ts +2 -1
- package/dist/dialogs/renderRichTextDialog.d.ts +2 -1
- package/dist/field-editor-rich-text.cjs.development.js +4738 -5118
- 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 +4715 -5095
- package/dist/field-editor-rich-text.esm.js.map +1 -1
- package/dist/helpers/editor.d.ts +43 -0
- package/dist/helpers/environment.d.ts +2 -0
- package/dist/helpers/extractNodes.d.ts +7 -0
- package/dist/helpers/formatDateAndTime.d.ts +15 -0
- package/dist/helpers/getLinkedContentTypeIdsForNodeType.d.ts +26 -2
- package/dist/helpers/newEntitySelectorConfigFromRichTextField.d.ts +5 -1
- package/dist/helpers/sanitizeSlateDoc.d.ts +5 -0
- package/dist/helpers/transformers.d.ts +8 -0
- package/dist/helpers/validations.d.ts +10 -0
- package/dist/plugins/Break/createExitBreakPlugin.d.ts +2 -0
- package/dist/plugins/Break/createSoftBreakPlugin.d.ts +2 -0
- package/dist/plugins/Break/index.d.ts +3 -0
- package/dist/plugins/DragAndDrop/index.d.ts +2 -0
- package/dist/plugins/EmbeddedEntityBlock/LinkedEntityBlock.d.ts +14 -0
- package/dist/plugins/EmbeddedEntityBlock/ToolbarIcon.d.ts +11 -10
- package/dist/plugins/EmbeddedEntityBlock/Util.d.ts +2 -23
- package/dist/plugins/EmbeddedEntityBlock/index.d.ts +6 -26
- package/dist/plugins/EmbeddedEntityInline/FetchingWrappedInlineEntryCard.d.ts +13 -0
- package/dist/plugins/EmbeddedEntityInline/Util.d.ts +16 -0
- package/dist/plugins/EmbeddedEntityInline/index.d.ts +11 -0
- package/dist/plugins/Heading/components/Heading.d.ts +11 -0
- package/dist/plugins/Heading/components/ToolbarHeadingButton.d.ts +4 -0
- package/dist/plugins/Heading/createHeadingPlugin.d.ts +2 -0
- package/dist/plugins/Heading/index.d.ts +2 -380
- package/dist/plugins/Hr/index.d.ts +12 -61
- package/dist/plugins/Hyperlink/EntryAssetTooltip.d.ts +9 -0
- package/dist/plugins/Hyperlink/HyperlinkModal.d.ts +16 -0
- package/dist/plugins/Hyperlink/index.d.ts +9 -9
- package/dist/plugins/Hyperlink/truncate.d.ts +1 -1
- package/dist/plugins/Hyperlink/utils.d.ts +3 -0
- package/dist/plugins/List/components/List.d.ts +3 -0
- package/dist/plugins/List/components/ListItem.d.ts +2 -0
- package/dist/plugins/List/components/ToolbarListButton.d.ts +4 -0
- package/dist/plugins/List/createListPlugin.d.ts +2 -0
- package/dist/plugins/List/index.d.ts +2 -114
- package/dist/plugins/List/insertListBreak.d.ts +2 -0
- package/dist/plugins/List/insertListFragment.d.ts +2 -0
- package/dist/plugins/List/transforms/insertListItem.d.ts +5 -0
- package/dist/plugins/List/utils.d.ts +14 -0
- package/dist/plugins/List/withList.d.ts +3 -0
- package/dist/plugins/Marks/Bold.d.ts +9 -0
- package/dist/plugins/Marks/Code.d.ts +9 -0
- package/dist/plugins/Marks/Italic.d.ts +9 -0
- package/dist/plugins/Marks/Underline.d.ts +9 -0
- package/dist/plugins/Marks/index.d.ts +2 -0
- package/dist/plugins/Normalizer/baseRules.d.ts +2 -0
- package/dist/plugins/Normalizer/createNormalizerPlugin.d.ts +2 -0
- package/dist/plugins/Normalizer/index.d.ts +2 -0
- package/dist/plugins/Normalizer/types.d.ts +39 -0
- package/dist/plugins/Normalizer/utils.d.ts +8 -0
- package/dist/plugins/Normalizer/withNormalizer.d.ts +2 -0
- package/dist/plugins/Paragraph/Paragraph.d.ts +2 -0
- package/dist/plugins/Paragraph/createParagraphPlugin.d.ts +2 -0
- package/dist/plugins/Paragraph/index.d.ts +1 -5
- package/dist/plugins/Paragraph/utils.d.ts +2 -0
- package/dist/plugins/PasteHTML/createPasteHTMLPlugin.d.ts +2 -0
- package/dist/plugins/PasteHTML/index.d.ts +1 -0
- package/dist/plugins/PasteHTML/utils/sanitizeHTML.d.ts +1 -0
- package/dist/plugins/PasteHTML/utils/sanitizeSheets.d.ts +4 -0
- package/dist/plugins/Quote/components/Quote.d.ts +2 -0
- package/dist/plugins/Quote/components/ToolbarQuoteButton.d.ts +4 -0
- package/dist/plugins/Quote/createQuotePlugin.d.ts +2 -0
- package/dist/plugins/Quote/index.d.ts +2 -59
- package/dist/plugins/Quote/toggleQuote.d.ts +3 -0
- package/dist/plugins/SelectOnBackspace/createSelectOnBackspacePlugin.d.ts +2 -0
- package/dist/plugins/SelectOnBackspace/index.d.ts +1 -0
- package/dist/plugins/Table/actions/addColumn.d.ts +4 -0
- package/dist/plugins/Table/actions/addRow.d.ts +3 -0
- package/dist/plugins/Table/actions/index.d.ts +3 -0
- package/dist/plugins/Table/actions/setHeader.d.ts +2 -0
- package/dist/plugins/Table/addTableTrackingEvents.d.ts +3 -0
- package/dist/plugins/Table/components/Cell.d.ts +2 -0
- package/dist/plugins/Table/components/HeaderCell.d.ts +2 -0
- package/dist/plugins/Table/components/Row.d.ts +2 -0
- package/dist/plugins/Table/components/Table.d.ts +2 -0
- package/dist/plugins/Table/components/TableActions.d.ts +4 -0
- package/dist/plugins/Table/components/ToolbarButton.d.ts +4 -0
- package/dist/plugins/Table/createTablePlugin.d.ts +3 -0
- package/dist/plugins/Table/helpers.d.ts +15 -0
- package/dist/plugins/Table/index.d.ts +2 -0
- package/dist/plugins/Text/createTextPlugin.d.ts +2 -0
- package/dist/plugins/Text/index.d.ts +1 -0
- package/dist/plugins/TrailingParagraph/index.d.ts +1 -0
- package/dist/plugins/Voids/createVoidsPlugin.d.ts +2 -0
- package/dist/plugins/Voids/index.d.ts +1 -0
- package/dist/plugins/Voids/transformVoid.d.ts +6 -0
- package/dist/plugins/index.d.ts +6 -1
- package/dist/plugins/links-tracking.d.ts +7 -0
- package/dist/plugins/shared/EntityStatusIcon.d.ts +7 -0
- package/dist/plugins/shared/FetchingWrappedAssetCard.d.ts +23 -0
- package/dist/plugins/shared/FetchingWrappedEntryCard.d.ts +13 -0
- package/dist/plugins/shared/ToolbarButton.d.ts +11 -0
- package/dist/test-utils/assertOutput.d.ts +8 -0
- package/dist/test-utils/createEditor.d.ts +14 -0
- package/dist/test-utils/index.d.ts +4 -0
- package/dist/test-utils/jsx.d.ts +28 -0
- package/dist/test-utils/mockPlugin.d.ts +2 -0
- package/dist/test-utils/randomId.d.ts +4 -0
- package/dist/test-utils/setEmptyDataAttribute.d.ts +6 -0
- package/dist/test-utils/validation.d.ts +1 -0
- package/dist/types.d.ts +42 -0
- package/package.json +40 -34
- package/CHANGELOG.md +0 -454
- package/LICENSE +0 -21
- package/dist/RichTextEditor.spec.d.ts +0 -1
- package/dist/Toolbar/StickyToolbarWrapper.d.ts +0 -12
- package/dist/Toolbar/Toolbar.spec.d.ts +0 -1
- package/dist/helpers/browserSupport.d.ts +0 -1
- package/dist/plugins/Bold/index.d.ts +0 -64
- package/dist/plugins/Code/index.d.ts +0 -64
- package/dist/plugins/CommandPalette/CommandMark.d.ts +0 -12
- package/dist/plugins/CommandPalette/CommandPalette.d.ts +0 -10
- package/dist/plugins/CommandPalette/CommandPaletteService.d.ts +0 -20
- package/dist/plugins/CommandPalette/CommandPanel/CommandPanelMenu.d.ts +0 -43
- package/dist/plugins/CommandPalette/CommandPanel/InViewport/InViewport.d.ts +0 -37
- package/dist/plugins/CommandPalette/CommandPanel/index.d.ts +0 -37
- package/dist/plugins/CommandPalette/Util.d.ts +0 -5
- package/dist/plugins/CommandPalette/index.d.ts +0 -7
- package/dist/plugins/EmbeddedEntityBlock/EmbeddedEntityBlock.d.ts +0 -20
- package/dist/plugins/EmbeddedEntityBlock/EmbeddedEntityBlock.styles.d.ts +0 -3
- package/dist/plugins/EmbeddedEntityBlock/FetchingWrappedAssetCard.d.ts +0 -15
- package/dist/plugins/EmbeddedEntityBlock/FetchingWrappedEntryCard.d.ts +0 -15
- package/dist/plugins/EmbeddedEntryInline/EmbeddedEntryInline.d.ts +0 -21
- package/dist/plugins/EmbeddedEntryInline/EmbeddedEntryInline.styles.d.ts +0 -4
- package/dist/plugins/EmbeddedEntryInline/FetchingWrappedInlineEntryCard.d.ts +0 -14
- package/dist/plugins/EmbeddedEntryInline/ToolbarIcon.d.ts +0 -11
- package/dist/plugins/EmbeddedEntryInline/Utils.d.ts +0 -4
- package/dist/plugins/EmbeddedEntryInline/index.d.ts +0 -12
- package/dist/plugins/EntryEmbedDropdown/index.d.ts +0 -14
- package/dist/plugins/Heading/HeadingDropdown.d.ts +0 -28
- package/dist/plugins/Heading/HeadingDropdownItem.d.ts +0 -57
- package/dist/plugins/Heading/Paragraph.d.ts +0 -58
- package/dist/plugins/Hyperlink/Hyperlink.d.ts +0 -13
- package/dist/plugins/Hyperlink/ToolbarIcon.d.ts +0 -7
- package/dist/plugins/Hyperlink/Util.d.ts +0 -43
- package/dist/plugins/Hyperlink/styles.d.ts +0 -12
- package/dist/plugins/Hyperlink/useRequestStatus.d.ts +0 -6
- package/dist/plugins/InsertBeforeFirstVoidBlock/Util.d.ts +0 -14
- package/dist/plugins/InsertBeforeFirstVoidBlock/index.d.ts +0 -3
- package/dist/plugins/Italic/index.d.ts +0 -64
- package/dist/plugins/List/EditListWrapper.d.ts +0 -2
- package/dist/plugins/List/ToolbarDecorator.d.ts +0 -62
- package/dist/plugins/NewLinePlugin/index.d.ts +0 -3
- package/dist/plugins/Paste/Paste.d.ts +0 -1
- package/dist/plugins/Paste/Paste.spec.d.ts +0 -1
- package/dist/plugins/Paste/index.d.ts +0 -7
- package/dist/plugins/Paste/index.spec.d.ts +0 -1
- package/dist/plugins/PasteHtml/PasteHtml.spec.d.ts +0 -1
- package/dist/plugins/PasteHtml/Serializer.d.ts +0 -1
- package/dist/plugins/PasteHtml/index.d.ts +0 -3
- package/dist/plugins/PasteText/PasteText.spec.d.ts +0 -1
- package/dist/plugins/PasteText/index.d.ts +0 -3
- package/dist/plugins/Quote/QuotePlugin.d.ts +0 -10
- package/dist/plugins/Quote/Util.d.ts +0 -2
- package/dist/plugins/Underlined/index.d.ts +0 -64
- package/dist/plugins/shared/BlockSelectDecorator.d.ts +0 -63
- package/dist/plugins/shared/BlockToggleDecorator.d.ts +0 -65
- package/dist/plugins/shared/MarkDecorator.d.ts +0 -12
- package/dist/plugins/shared/MarkPlugin.d.ts +0 -9
- package/dist/plugins/shared/MarkToggleDecorator.d.ts +0 -62
- package/dist/plugins/shared/NodeDecorator.d.ts +0 -15
- package/dist/plugins/shared/PasteTestHelpers.d.ts +0 -35
- package/dist/plugins/shared/PluginApi.d.ts +0 -31
- package/dist/plugins/shared/PropTypes.d.ts +0 -15
- package/dist/plugins/shared/ToolbarDropdownListItem.d.ts +0 -14
- package/dist/plugins/shared/ToolbarIcon.d.ts +0 -16
- package/dist/plugins/shared/Util.d.ts +0 -1
- package/dist/plugins/shared/UtilHave.d.ts +0 -24
- package/dist/setupTests.d.ts +0 -1
- package/dist/validations/index.d.ts +0 -9
- package/dist/validations/validations.spec.d.ts +0 -1
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
export function BoldPlugin({ richTextAPI }: {
|
|
2
|
-
richTextAPI: any;
|
|
3
|
-
}): {
|
|
4
|
-
renderMark: (props: any, _editor: any, next: any) => any;
|
|
5
|
-
onKeyDown(event: any, editor: any, next: any): any;
|
|
6
|
-
};
|
|
7
|
-
declare var _default: {
|
|
8
|
-
new (props: any): {
|
|
9
|
-
handleToggle: (event: any) => any;
|
|
10
|
-
render(): JSX.Element;
|
|
11
|
-
context: any;
|
|
12
|
-
setState<K extends string | number | symbol>(state: any, callback?: (() => void) | undefined): void;
|
|
13
|
-
forceUpdate(callback?: (() => void) | undefined): void;
|
|
14
|
-
readonly props: Readonly<any> & Readonly<{
|
|
15
|
-
children?: React.ReactNode;
|
|
16
|
-
}>;
|
|
17
|
-
state: Readonly<any>;
|
|
18
|
-
refs: {
|
|
19
|
-
[key: string]: React.ReactInstance;
|
|
20
|
-
};
|
|
21
|
-
componentDidMount?(): void;
|
|
22
|
-
shouldComponentUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): boolean;
|
|
23
|
-
componentWillUnmount?(): void;
|
|
24
|
-
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
25
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>): any;
|
|
26
|
-
componentDidUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>, snapshot?: any): void;
|
|
27
|
-
componentWillMount?(): void;
|
|
28
|
-
UNSAFE_componentWillMount?(): void;
|
|
29
|
-
componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
|
|
30
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
|
|
31
|
-
componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
|
|
32
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
|
|
33
|
-
};
|
|
34
|
-
new (props: any, context: any): {
|
|
35
|
-
handleToggle: (event: any) => any;
|
|
36
|
-
render(): JSX.Element;
|
|
37
|
-
context: any;
|
|
38
|
-
setState<K extends string | number | symbol>(state: any, callback?: (() => void) | undefined): void;
|
|
39
|
-
forceUpdate(callback?: (() => void) | undefined): void;
|
|
40
|
-
readonly props: Readonly<any> & Readonly<{
|
|
41
|
-
children?: React.ReactNode;
|
|
42
|
-
}>;
|
|
43
|
-
state: Readonly<any>;
|
|
44
|
-
refs: {
|
|
45
|
-
[key: string]: React.ReactInstance;
|
|
46
|
-
};
|
|
47
|
-
componentDidMount?(): void;
|
|
48
|
-
shouldComponentUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): boolean;
|
|
49
|
-
componentWillUnmount?(): void;
|
|
50
|
-
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
51
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>): any;
|
|
52
|
-
componentDidUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>, snapshot?: any): void;
|
|
53
|
-
componentWillMount?(): void;
|
|
54
|
-
UNSAFE_componentWillMount?(): void;
|
|
55
|
-
componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
|
|
56
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
|
|
57
|
-
componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
|
|
58
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
|
|
59
|
-
};
|
|
60
|
-
propTypes: any;
|
|
61
|
-
contextType?: React.Context<any> | undefined;
|
|
62
|
-
};
|
|
63
|
-
export default _default;
|
|
64
|
-
import React from "react";
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
export function CodePlugin({ richTextAPI }: {
|
|
2
|
-
richTextAPI: any;
|
|
3
|
-
}): {
|
|
4
|
-
renderMark: (props: any, _editor: any, next: any) => any;
|
|
5
|
-
onKeyDown(event: any, editor: any, next: any): any;
|
|
6
|
-
};
|
|
7
|
-
declare var _default: {
|
|
8
|
-
new (props: any): {
|
|
9
|
-
handleToggle: (event: any) => any;
|
|
10
|
-
render(): JSX.Element;
|
|
11
|
-
context: any;
|
|
12
|
-
setState<K extends string | number | symbol>(state: any, callback?: (() => void) | undefined): void;
|
|
13
|
-
forceUpdate(callback?: (() => void) | undefined): void;
|
|
14
|
-
readonly props: Readonly<any> & Readonly<{
|
|
15
|
-
children?: React.ReactNode;
|
|
16
|
-
}>;
|
|
17
|
-
state: Readonly<any>;
|
|
18
|
-
refs: {
|
|
19
|
-
[key: string]: React.ReactInstance;
|
|
20
|
-
};
|
|
21
|
-
componentDidMount?(): void;
|
|
22
|
-
shouldComponentUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): boolean;
|
|
23
|
-
componentWillUnmount?(): void;
|
|
24
|
-
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
25
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>): any;
|
|
26
|
-
componentDidUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>, snapshot?: any): void;
|
|
27
|
-
componentWillMount?(): void;
|
|
28
|
-
UNSAFE_componentWillMount?(): void;
|
|
29
|
-
componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
|
|
30
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
|
|
31
|
-
componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
|
|
32
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
|
|
33
|
-
};
|
|
34
|
-
new (props: any, context: any): {
|
|
35
|
-
handleToggle: (event: any) => any;
|
|
36
|
-
render(): JSX.Element;
|
|
37
|
-
context: any;
|
|
38
|
-
setState<K extends string | number | symbol>(state: any, callback?: (() => void) | undefined): void;
|
|
39
|
-
forceUpdate(callback?: (() => void) | undefined): void;
|
|
40
|
-
readonly props: Readonly<any> & Readonly<{
|
|
41
|
-
children?: React.ReactNode;
|
|
42
|
-
}>;
|
|
43
|
-
state: Readonly<any>;
|
|
44
|
-
refs: {
|
|
45
|
-
[key: string]: React.ReactInstance;
|
|
46
|
-
};
|
|
47
|
-
componentDidMount?(): void;
|
|
48
|
-
shouldComponentUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): boolean;
|
|
49
|
-
componentWillUnmount?(): void;
|
|
50
|
-
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
51
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>): any;
|
|
52
|
-
componentDidUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>, snapshot?: any): void;
|
|
53
|
-
componentWillMount?(): void;
|
|
54
|
-
UNSAFE_componentWillMount?(): void;
|
|
55
|
-
componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
|
|
56
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
|
|
57
|
-
componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
|
|
58
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
|
|
59
|
-
};
|
|
60
|
-
propTypes: any;
|
|
61
|
-
contextType?: React.Context<any> | undefined;
|
|
62
|
-
};
|
|
63
|
-
export default _default;
|
|
64
|
-
import React from "react";
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export default CommandMark;
|
|
2
|
-
declare class CommandMark extends React.PureComponent<any, any, any> {
|
|
3
|
-
static propTypes: {
|
|
4
|
-
children: PropTypes.Validator<string | number | boolean | {} | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
|
|
5
|
-
editor: PropTypes.Requireable<object>;
|
|
6
|
-
attributes: PropTypes.Requireable<object>;
|
|
7
|
-
};
|
|
8
|
-
constructor(props: any);
|
|
9
|
-
constructor(props: any, context: any);
|
|
10
|
-
}
|
|
11
|
-
import React from "react";
|
|
12
|
-
import PropTypes from "prop-types";
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export default CommandPalette;
|
|
2
|
-
declare class CommandPalette extends React.PureComponent<any, any, any> {
|
|
3
|
-
static propTypes: {
|
|
4
|
-
editor: PropTypes.Requireable<object>;
|
|
5
|
-
richTextAPI: PropTypes.Requireable<object>;
|
|
6
|
-
};
|
|
7
|
-
constructor(props: any);
|
|
8
|
-
}
|
|
9
|
-
import React from "react";
|
|
10
|
-
import PropTypes from "prop-types";
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export function fetchAssets(sdk: any, query?: string): Promise<any>;
|
|
2
|
-
export function fetchEntries(sdk: any, contentType: any, query?: string): Promise<[any, any, any, any, any, any, any, any, any, any]>;
|
|
3
|
-
export function isValidLinkedContentType(field: any, contentType: any, embedType: string): boolean;
|
|
4
|
-
export function isEmbeddingEnabled(field: any): boolean;
|
|
5
|
-
export class CommandPaletteActionBuilder {
|
|
6
|
-
constructor(sdk: any);
|
|
7
|
-
sdk: any;
|
|
8
|
-
maybeBuildEmbedAction(embedType: any, contentType: any, callback: any): false | {
|
|
9
|
-
label: string;
|
|
10
|
-
group: any;
|
|
11
|
-
callback: any;
|
|
12
|
-
icon: string;
|
|
13
|
-
};
|
|
14
|
-
maybeBuildCreateAndEmbedAction(embedType: any, contentType: any, callback: any): Promise<false | {
|
|
15
|
-
label: string;
|
|
16
|
-
group: any;
|
|
17
|
-
callback: any;
|
|
18
|
-
icon: string;
|
|
19
|
-
}>;
|
|
20
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
export class CommandPanel extends React.Component<any, any, any> {
|
|
2
|
-
static propTypes: {
|
|
3
|
-
items: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
4
|
-
label: PropTypes.Requireable<string>;
|
|
5
|
-
icon: PropTypes.Requireable<string>;
|
|
6
|
-
thumbnail: PropTypes.Requireable<string>;
|
|
7
|
-
callback: PropTypes.Requireable<(...args: any[]) => any>;
|
|
8
|
-
}> | null | undefined)[]>;
|
|
9
|
-
searchString: PropTypes.Requireable<string>;
|
|
10
|
-
className: PropTypes.Requireable<string>;
|
|
11
|
-
testId: PropTypes.Requireable<string>;
|
|
12
|
-
isLoading: PropTypes.Requireable<boolean>;
|
|
13
|
-
isUpdating: PropTypes.Requireable<boolean>;
|
|
14
|
-
breadcrumb: PropTypes.Requireable<string>;
|
|
15
|
-
richTextAPI: PropTypes.Requireable<object>;
|
|
16
|
-
onClose: PropTypes.Requireable<(...args: any[]) => any>;
|
|
17
|
-
};
|
|
18
|
-
static defaultProps: {
|
|
19
|
-
className: undefined;
|
|
20
|
-
searchString: string;
|
|
21
|
-
items: never[];
|
|
22
|
-
testId: string;
|
|
23
|
-
isLoading: boolean;
|
|
24
|
-
isUpdating: boolean;
|
|
25
|
-
};
|
|
26
|
-
static getDerivedStateFromProps(props: any, state: any): {
|
|
27
|
-
originalItems: any;
|
|
28
|
-
originalSearchString: any;
|
|
29
|
-
items: any;
|
|
30
|
-
selectedKey: any;
|
|
31
|
-
};
|
|
32
|
-
constructor(props: any);
|
|
33
|
-
constructor(props: any, context: any);
|
|
34
|
-
handleKeyboard: (e: any) => void;
|
|
35
|
-
renderGroups(): JSX.Element | JSX.Element[];
|
|
36
|
-
renderItems(groupName: any): JSX.Element[];
|
|
37
|
-
renderNavigationBar: () => JSX.Element;
|
|
38
|
-
renderStatusBar: () => JSX.Element;
|
|
39
|
-
renderSkeleton: () => JSX.Element;
|
|
40
|
-
}
|
|
41
|
-
export default CommandPanel;
|
|
42
|
-
import React from "react";
|
|
43
|
-
import PropTypes from "prop-types";
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
export class InViewport extends React.Component<any, any, any> {
|
|
2
|
-
static defaultProps: {
|
|
3
|
-
testId: string;
|
|
4
|
-
offset: number;
|
|
5
|
-
};
|
|
6
|
-
constructor(props: any);
|
|
7
|
-
constructor(props: any, context: any);
|
|
8
|
-
tGetDomPosition: any;
|
|
9
|
-
nodeRef: any;
|
|
10
|
-
lastOverflowAt: any;
|
|
11
|
-
tOnOverflowTop: (...args: any[]) => any;
|
|
12
|
-
tOnOverflowBottom: (...args: any[]) => any;
|
|
13
|
-
tOnOverflowRight: (...args: any[]) => any;
|
|
14
|
-
tOnOverflowLeft: (...args: any[]) => any;
|
|
15
|
-
getDomPosition: () => void;
|
|
16
|
-
bindEventListeners: () => void;
|
|
17
|
-
handleOverflow: ({ top, left, bottom, right }: {
|
|
18
|
-
top: any;
|
|
19
|
-
left: any;
|
|
20
|
-
bottom: any;
|
|
21
|
-
right: any;
|
|
22
|
-
}, windowWidth: any, windowHeight: any) => void;
|
|
23
|
-
}
|
|
24
|
-
export namespace InViewport {
|
|
25
|
-
export namespace propTypes {
|
|
26
|
-
export const offset: PropTypes.Requireable<number>;
|
|
27
|
-
export const onOverflowTop: PropTypes.Requireable<(...args: any[]) => any>;
|
|
28
|
-
export const onOverflowRight: PropTypes.Requireable<(...args: any[]) => any>;
|
|
29
|
-
export const onOverflowBottom: PropTypes.Requireable<(...args: any[]) => any>;
|
|
30
|
-
export const onOverflowLeft: PropTypes.Requireable<(...args: any[]) => any>;
|
|
31
|
-
export const className: PropTypes.Requireable<string>;
|
|
32
|
-
export const children: PropTypes.Requireable<any>;
|
|
33
|
-
export const testId: PropTypes.Requireable<string>;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
import React from "react";
|
|
37
|
-
import PropTypes from "prop-types";
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
export default CommandPalette;
|
|
2
|
-
declare class CommandPalette extends React.PureComponent<any, any, any> {
|
|
3
|
-
static propTypes: {
|
|
4
|
-
editor: PropTypes.Requireable<object>;
|
|
5
|
-
command: PropTypes.Requireable<string>;
|
|
6
|
-
richTextAPI: PropTypes.Requireable<object>;
|
|
7
|
-
};
|
|
8
|
-
constructor(props: any);
|
|
9
|
-
constructor(props: any, context: any);
|
|
10
|
-
paletteDimensions: {
|
|
11
|
-
height: number;
|
|
12
|
-
width: number;
|
|
13
|
-
};
|
|
14
|
-
isComponentMounted: boolean | undefined;
|
|
15
|
-
bindEventListeners: () => void;
|
|
16
|
-
removeEventListeners: () => void;
|
|
17
|
-
handleOutsideClick: (event: any) => void;
|
|
18
|
-
requestUpdate: import("lodash").DebouncedFunc<() => void>;
|
|
19
|
-
createCommand: (label: any, contentType: any, entry: any, type: any, description: any, thumbnail: any) => {
|
|
20
|
-
label: string;
|
|
21
|
-
thumbnail: any;
|
|
22
|
-
contentType: any;
|
|
23
|
-
callback: () => void;
|
|
24
|
-
};
|
|
25
|
-
onCreateAndEmbedEntity: (contentTypeId: any, nodeType: any) => Promise<any>;
|
|
26
|
-
createContentTypeActions: (actionBuilder: any, contentType: any) => Promise<any[]>;
|
|
27
|
-
createAssetActions: (actionBuilder: any) => Promise<any[]>;
|
|
28
|
-
handleScroll: (e: any) => void;
|
|
29
|
-
clearCommand: () => void;
|
|
30
|
-
createCommands: (contentType: any, type: any, command: any) => Promise<void>;
|
|
31
|
-
createInitialCommands: () => Promise<void>;
|
|
32
|
-
handleKeyboard: (e: any) => void;
|
|
33
|
-
palette: HTMLDivElement | null | undefined;
|
|
34
|
-
updatePanelPosition(): void;
|
|
35
|
-
}
|
|
36
|
-
import React from "react";
|
|
37
|
-
import PropTypes from "prop-types";
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export function getCommandText(editor: any): string;
|
|
2
|
-
export function getDecorationOrDefault(editor: any): any | null;
|
|
3
|
-
export function hasCommandPaletteMarkType(markType: any): boolean;
|
|
4
|
-
export function hasCommandPaletteDecoration(editor: any): boolean;
|
|
5
|
-
export function removeCommand(editor: any, command: any, anchorOffset?: number): void;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export function CommandPalettePlugin({ richTextAPI }: {
|
|
2
|
-
richTextAPI: any;
|
|
3
|
-
}): {
|
|
4
|
-
decorateNode: (_node: any, editor: any, next: any) => any[];
|
|
5
|
-
renderMark: (props: any, editor: any, next: any) => any;
|
|
6
|
-
renderEditor: (_props: any, editor: any, next: any) => JSX.Element;
|
|
7
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export default class LinkedEntityBlock extends React.Component<any, any, any> {
|
|
2
|
-
static propTypes: {
|
|
3
|
-
sdk: PropTypes.Validator<object>;
|
|
4
|
-
isSelected: PropTypes.Validator<boolean>;
|
|
5
|
-
attributes: PropTypes.Validator<object>;
|
|
6
|
-
editor: PropTypes.Validator<object>;
|
|
7
|
-
node: PropTypes.Validator<object>;
|
|
8
|
-
onEntityFetchComplete: PropTypes.Validator<(...args: any[]) => any>;
|
|
9
|
-
};
|
|
10
|
-
constructor(props: any);
|
|
11
|
-
constructor(props: any, context: any);
|
|
12
|
-
getEntitySys(): {
|
|
13
|
-
id: any;
|
|
14
|
-
type: any;
|
|
15
|
-
};
|
|
16
|
-
handleEditClick: () => any;
|
|
17
|
-
handleRemoveClick: () => void;
|
|
18
|
-
}
|
|
19
|
-
import React from "react";
|
|
20
|
-
import PropTypes from "prop-types";
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export function FetchingWrappedAssetCard(props: any): JSX.Element;
|
|
2
|
-
export namespace FetchingWrappedAssetCard {
|
|
3
|
-
export namespace propTypes {
|
|
4
|
-
export const sdk: PropTypes.Validator<object>;
|
|
5
|
-
export const locale: PropTypes.Validator<string>;
|
|
6
|
-
export const assetId: PropTypes.Validator<string>;
|
|
7
|
-
export const isDisabled: PropTypes.Validator<boolean>;
|
|
8
|
-
export const isSelected: PropTypes.Validator<boolean>;
|
|
9
|
-
export const onRemove: PropTypes.Requireable<(...args: any[]) => any>;
|
|
10
|
-
export const onEdit: PropTypes.Requireable<(...args: any[]) => any>;
|
|
11
|
-
export const getAssetUrl: PropTypes.Requireable<(...args: any[]) => any>;
|
|
12
|
-
export const onEntityFetchComplete: PropTypes.Requireable<(...args: any[]) => any>;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
import PropTypes from "prop-types";
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export function FetchingWrappedEntryCard(props: any): JSX.Element;
|
|
2
|
-
export namespace FetchingWrappedEntryCard {
|
|
3
|
-
export namespace propTypes {
|
|
4
|
-
export const sdk: PropTypes.Validator<object>;
|
|
5
|
-
export const entryId: PropTypes.Validator<string>;
|
|
6
|
-
export const locale: PropTypes.Validator<string>;
|
|
7
|
-
export const isDisabled: PropTypes.Validator<boolean>;
|
|
8
|
-
export const isSelected: PropTypes.Validator<boolean>;
|
|
9
|
-
export const onRemove: PropTypes.Requireable<(...args: any[]) => any>;
|
|
10
|
-
export const onEdit: PropTypes.Requireable<(...args: any[]) => any>;
|
|
11
|
-
export const getEntryUrl: PropTypes.Requireable<(...args: any[]) => any>;
|
|
12
|
-
export const onEntityFetchComplete: PropTypes.Requireable<(...args: any[]) => any>;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
import PropTypes from "prop-types";
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export default EmbeddedEntryInline;
|
|
2
|
-
declare class EmbeddedEntryInline extends React.Component<any, any, any> {
|
|
3
|
-
static propTypes: {
|
|
4
|
-
sdk: PropTypes.Validator<object>;
|
|
5
|
-
isSelected: PropTypes.Validator<boolean>;
|
|
6
|
-
attributes: PropTypes.Validator<object>;
|
|
7
|
-
editor: PropTypes.Validator<object>;
|
|
8
|
-
node: PropTypes.Validator<object>;
|
|
9
|
-
onEntityFetchComplete: PropTypes.Validator<(...args: any[]) => any>;
|
|
10
|
-
};
|
|
11
|
-
constructor(props: any);
|
|
12
|
-
constructor(props: any, context: any);
|
|
13
|
-
getEntitySys(): {
|
|
14
|
-
id: any;
|
|
15
|
-
type: any;
|
|
16
|
-
};
|
|
17
|
-
handleEditClick: () => any;
|
|
18
|
-
handleRemoveClick: () => void;
|
|
19
|
-
}
|
|
20
|
-
import React from "react";
|
|
21
|
-
import PropTypes from "prop-types";
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export function FetchingWrappedInlineEntryCard(props: any): JSX.Element;
|
|
2
|
-
export namespace FetchingWrappedInlineEntryCard {
|
|
3
|
-
export namespace propTypes {
|
|
4
|
-
export const sdk: PropTypes.Validator<object>;
|
|
5
|
-
export const entryId: PropTypes.Validator<string>;
|
|
6
|
-
export const isDisabled: PropTypes.Validator<boolean>;
|
|
7
|
-
export const isSelected: PropTypes.Validator<boolean>;
|
|
8
|
-
export const isReadOnly: PropTypes.Validator<boolean>;
|
|
9
|
-
export const onRemove: PropTypes.Validator<(...args: any[]) => any>;
|
|
10
|
-
export const onEdit: PropTypes.Validator<(...args: any[]) => any>;
|
|
11
|
-
export const onEntityFetchComplete: PropTypes.Requireable<(...args: any[]) => any>;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
import PropTypes from "prop-types";
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export default class EntryLinkToolbarIcon extends React.Component<any, any, any> {
|
|
2
|
-
static propTypes: any;
|
|
3
|
-
static defaultProps: {
|
|
4
|
-
isButton: boolean;
|
|
5
|
-
};
|
|
6
|
-
constructor(props: any);
|
|
7
|
-
constructor(props: any, context: any);
|
|
8
|
-
handleClick: (e: any) => void;
|
|
9
|
-
handleAction: (event: any) => any;
|
|
10
|
-
}
|
|
11
|
-
import React from "react";
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export function insertInline(editor: any, entryId: any, focusNextLine?: boolean): void;
|
|
2
|
-
export function hasOnlyInlineEntryInSelection(editor: any): boolean | undefined;
|
|
3
|
-
export function selectEntryAndInsert(sdk: import('@contentful/field-editor-reference/dist/types').FieldExtensionSDK, editor: any, logAction: Function): Promise<void>;
|
|
4
|
-
export function canInsertInline(editor: any): boolean;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export default ToolbarIcon;
|
|
2
|
-
export function EmbeddedEntryInlinePlugin({ richTextAPI: { sdk, logShortcutAction, logViewportAction }, }: {
|
|
3
|
-
richTextAPI: {
|
|
4
|
-
sdk: any;
|
|
5
|
-
logShortcutAction: any;
|
|
6
|
-
logViewportAction: any;
|
|
7
|
-
};
|
|
8
|
-
}): {
|
|
9
|
-
renderNode: (props: any, _editor: any, next: any) => any;
|
|
10
|
-
onKeyDown: (event: any, editor: any, next: any) => any;
|
|
11
|
-
};
|
|
12
|
-
import ToolbarIcon from "./ToolbarIcon";
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export default EntryEmbedDropdown;
|
|
2
|
-
declare class EntryEmbedDropdown extends React.Component<any, any, any> {
|
|
3
|
-
static propTypes: {
|
|
4
|
-
children: PropTypes.Validator<string | number | boolean | {} | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
|
|
5
|
-
isOpen: PropTypes.Requireable<boolean>;
|
|
6
|
-
disabled: PropTypes.Requireable<boolean>;
|
|
7
|
-
onClose: PropTypes.Requireable<(...args: any[]) => any>;
|
|
8
|
-
onOpen: PropTypes.Requireable<(...args: any[]) => any>;
|
|
9
|
-
};
|
|
10
|
-
constructor(props: any);
|
|
11
|
-
constructor(props: any, context: any);
|
|
12
|
-
}
|
|
13
|
-
import React from "react";
|
|
14
|
-
import PropTypes from "prop-types";
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
export const blockTitles: {
|
|
2
|
-
"heading-1": string;
|
|
3
|
-
"heading-2": string;
|
|
4
|
-
"heading-3": string;
|
|
5
|
-
"heading-4": string;
|
|
6
|
-
"heading-5": string;
|
|
7
|
-
"heading-6": string;
|
|
8
|
-
paragraph: string;
|
|
9
|
-
"embedded-entry-block": string;
|
|
10
|
-
"embedded-asset-block": string;
|
|
11
|
-
};
|
|
12
|
-
export default HeadingDropdown;
|
|
13
|
-
import { BLOCKS } from "@contentful/rich-text-types";
|
|
14
|
-
declare class HeadingDropdown extends React.Component<any, any, any> {
|
|
15
|
-
static propTypes: {
|
|
16
|
-
children: PropTypes.Validator<string | number | boolean | {} | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
|
|
17
|
-
isOpen: PropTypes.Requireable<boolean>;
|
|
18
|
-
disabled: PropTypes.Requireable<boolean>;
|
|
19
|
-
onClose: PropTypes.Requireable<(...args: any[]) => any>;
|
|
20
|
-
onOpen: PropTypes.Requireable<(...args: any[]) => any>;
|
|
21
|
-
currentBlockType: PropTypes.Requireable<string>;
|
|
22
|
-
};
|
|
23
|
-
constructor(props: any);
|
|
24
|
-
constructor(props: any, context: any);
|
|
25
|
-
getStyleNameForChange: () => any;
|
|
26
|
-
}
|
|
27
|
-
import React from "react";
|
|
28
|
-
import PropTypes from "prop-types";
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
export default function newHeadingDropdownItem(nodeType: any): {
|
|
2
|
-
new (props: any): {
|
|
3
|
-
handleSelect: (event: any) => any;
|
|
4
|
-
render(): JSX.Element;
|
|
5
|
-
context: any;
|
|
6
|
-
setState<K extends string | number | symbol>(state: any, callback?: (() => void) | undefined): void;
|
|
7
|
-
forceUpdate(callback?: (() => void) | undefined): void;
|
|
8
|
-
readonly props: Readonly<any> & Readonly<{
|
|
9
|
-
children?: React.ReactNode;
|
|
10
|
-
}>;
|
|
11
|
-
state: Readonly<any>;
|
|
12
|
-
refs: {
|
|
13
|
-
[key: string]: React.ReactInstance;
|
|
14
|
-
};
|
|
15
|
-
componentDidMount?(): void;
|
|
16
|
-
shouldComponentUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): boolean;
|
|
17
|
-
componentWillUnmount?(): void;
|
|
18
|
-
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
19
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>): any;
|
|
20
|
-
componentDidUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>, snapshot?: any): void;
|
|
21
|
-
componentWillMount?(): void;
|
|
22
|
-
UNSAFE_componentWillMount?(): void;
|
|
23
|
-
componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
|
|
24
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
|
|
25
|
-
componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
|
|
26
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
|
|
27
|
-
};
|
|
28
|
-
new (props: any, context: any): {
|
|
29
|
-
handleSelect: (event: any) => any;
|
|
30
|
-
render(): JSX.Element;
|
|
31
|
-
context: any;
|
|
32
|
-
setState<K extends string | number | symbol>(state: any, callback?: (() => void) | undefined): void;
|
|
33
|
-
forceUpdate(callback?: (() => void) | undefined): void;
|
|
34
|
-
readonly props: Readonly<any> & Readonly<{
|
|
35
|
-
children?: React.ReactNode;
|
|
36
|
-
}>;
|
|
37
|
-
state: Readonly<any>;
|
|
38
|
-
refs: {
|
|
39
|
-
[key: string]: React.ReactInstance;
|
|
40
|
-
};
|
|
41
|
-
componentDidMount?(): void;
|
|
42
|
-
shouldComponentUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): boolean;
|
|
43
|
-
componentWillUnmount?(): void;
|
|
44
|
-
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
45
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>): any;
|
|
46
|
-
componentDidUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>, snapshot?: any): void;
|
|
47
|
-
componentWillMount?(): void;
|
|
48
|
-
UNSAFE_componentWillMount?(): void;
|
|
49
|
-
componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
|
|
50
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
|
|
51
|
-
componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
|
|
52
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
|
|
53
|
-
};
|
|
54
|
-
propTypes: any;
|
|
55
|
-
contextType?: React.Context<any> | undefined;
|
|
56
|
-
};
|
|
57
|
-
import React from "react";
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
declare var _default: {
|
|
2
|
-
new (props: any): {
|
|
3
|
-
handleSelect: (event: any) => any;
|
|
4
|
-
render(): JSX.Element;
|
|
5
|
-
context: any;
|
|
6
|
-
setState<K extends string | number | symbol>(state: any, callback?: (() => void) | undefined): void;
|
|
7
|
-
forceUpdate(callback?: (() => void) | undefined): void;
|
|
8
|
-
readonly props: Readonly<any> & Readonly<{
|
|
9
|
-
children?: React.ReactNode;
|
|
10
|
-
}>;
|
|
11
|
-
state: Readonly<any>;
|
|
12
|
-
refs: {
|
|
13
|
-
[key: string]: React.ReactInstance;
|
|
14
|
-
};
|
|
15
|
-
componentDidMount?(): void;
|
|
16
|
-
shouldComponentUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): boolean;
|
|
17
|
-
componentWillUnmount?(): void;
|
|
18
|
-
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
19
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>): any;
|
|
20
|
-
componentDidUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>, snapshot?: any): void;
|
|
21
|
-
componentWillMount?(): void;
|
|
22
|
-
UNSAFE_componentWillMount?(): void;
|
|
23
|
-
componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
|
|
24
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
|
|
25
|
-
componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
|
|
26
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
|
|
27
|
-
};
|
|
28
|
-
new (props: any, context: any): {
|
|
29
|
-
handleSelect: (event: any) => any;
|
|
30
|
-
render(): JSX.Element;
|
|
31
|
-
context: any;
|
|
32
|
-
setState<K extends string | number | symbol>(state: any, callback?: (() => void) | undefined): void;
|
|
33
|
-
forceUpdate(callback?: (() => void) | undefined): void;
|
|
34
|
-
readonly props: Readonly<any> & Readonly<{
|
|
35
|
-
children?: React.ReactNode;
|
|
36
|
-
}>;
|
|
37
|
-
state: Readonly<any>;
|
|
38
|
-
refs: {
|
|
39
|
-
[key: string]: React.ReactInstance;
|
|
40
|
-
};
|
|
41
|
-
componentDidMount?(): void;
|
|
42
|
-
shouldComponentUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): boolean;
|
|
43
|
-
componentWillUnmount?(): void;
|
|
44
|
-
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
45
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>): any;
|
|
46
|
-
componentDidUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>, snapshot?: any): void;
|
|
47
|
-
componentWillMount?(): void;
|
|
48
|
-
UNSAFE_componentWillMount?(): void;
|
|
49
|
-
componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
|
|
50
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
|
|
51
|
-
componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
|
|
52
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
|
|
53
|
-
};
|
|
54
|
-
propTypes: any;
|
|
55
|
-
contextType?: React.Context<any> | undefined;
|
|
56
|
-
};
|
|
57
|
-
export default _default;
|
|
58
|
-
import React from "react";
|
|
@@ -1,13 +0,0 @@
|
|
|
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
|
-
}
|
|
11
|
-
}
|
|
12
|
-
export default Hyperlink;
|
|
13
|
-
import PropTypes from "prop-types";
|