@contentful/field-editor-rich-text 1.0.0-alpha.3 → 2.0.0-next.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/README.md +9 -20
- package/dist/ContentfulEditorProvider.d.ts +8 -0
- package/dist/RichTextEditor.d.ts +19 -70
- package/dist/RichTextEditor.styles.d.ts +7 -0
- package/dist/SdkProvider.d.ts +7 -0
- package/dist/Toolbar/EmbedEntityWidget.d.ts +6 -0
- package/dist/Toolbar/StickyToolbarWrapper.d.ts +6 -11
- package/dist/Toolbar/index.d.ts +6 -28
- package/dist/TrackingProvider.d.ts +11 -0
- package/dist/constants/Schema.d.ts +93 -11
- package/dist/dialogs/HypelinkDialog/HyperlinkDialog.d.ts +54 -0
- package/dist/dialogs/openRichTextDialog.d.ts +2 -0
- package/dist/dialogs/renderRichTextDialog.d.ts +3 -0
- package/dist/field-editor-rich-text.cjs.development.js +4690 -4354
- 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 +4674 -4338
- package/dist/field-editor-rich-text.esm.js.map +1 -1
- package/dist/helpers/deserializer.d.ts +3 -0
- package/dist/helpers/editor.d.ts +35 -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 +18 -0
- package/dist/helpers/truncate.d.ts +1 -0
- package/dist/helpers/validations.d.ts +10 -0
- package/dist/index.d.ts +2 -2
- package/dist/plugins/Bold/index.d.ts +12 -64
- package/dist/plugins/Code/index.d.ts +12 -64
- package/dist/plugins/CommandPalette/CommandPanel/InViewport/InViewport.d.ts +37 -0
- package/dist/plugins/EmbeddedEntity/index.d.ts +10 -0
- package/dist/plugins/EmbeddedEntityBlock/LinkedEntityBlock.d.ts +13 -0
- package/dist/plugins/EmbeddedEntityBlock/ToolbarIcon.d.ts +12 -10
- package/dist/plugins/EmbeddedEntityBlock/Util.d.ts +2 -23
- package/dist/plugins/EmbeddedEntityBlock/index.d.ts +11 -27
- package/dist/plugins/EmbeddedEntityInline/FetchingWrappedInlineEntryCard.d.ts +12 -0
- package/dist/plugins/EmbeddedEntityInline/Util.d.ts +16 -0
- package/dist/plugins/EmbeddedEntityInline/index.d.ts +12 -0
- package/dist/plugins/Heading/index.d.ts +20 -50
- package/dist/plugins/Hr/index.d.ts +13 -61
- package/dist/plugins/Hyperlink/EntryAssetTooltip.d.ts +10 -0
- package/dist/plugins/Hyperlink/HyperlinkModal.d.ts +17 -0
- package/dist/plugins/Hyperlink/index.d.ts +12 -9
- package/dist/plugins/InsertBeforeFirstVoidBlock/index.d.ts +2 -3
- package/dist/plugins/Italic/index.d.ts +12 -64
- package/dist/plugins/List/index.d.ts +15 -114
- package/dist/plugins/NewLine/index.d.ts +2 -0
- package/dist/plugins/Paragraph/index.d.ts +7 -5
- package/dist/plugins/Paste/index.d.ts +2 -7
- package/dist/plugins/Paste/sanitizers/helpers.d.ts +7 -0
- package/dist/plugins/Paste/sanitizers/index.d.ts +3 -0
- package/dist/plugins/Paste/sanitizers/removeComments.d.ts +2 -0
- package/dist/plugins/Paste/sanitizers/sanitizeEntityBlocks.d.ts +6 -0
- package/dist/plugins/Paste/sanitizers/sanitizeTables.d.ts +2 -0
- package/dist/plugins/Quote/index.d.ts +13 -59
- package/dist/plugins/Table/TableActions.d.ts +5 -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/helpers.d.ts +4 -0
- package/dist/plugins/Table/index.d.ts +186 -0
- package/dist/plugins/TrailingParagraph/index.d.ts +1 -0
- package/dist/plugins/Underline/index.d.ts +12 -0
- package/dist/plugins/shared/EntityStatusIcon.d.ts +8 -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 +15 -0
- package/dist/types.d.ts +25 -0
- package/package.json +44 -31
- package/LICENSE +0 -21
- package/dist/RichTextEditor.spec.d.ts +0 -1
- package/dist/Toolbar/Toolbar.spec.d.ts +0 -1
- package/dist/helpers/browserSupport.d.ts +0 -1
- package/dist/plugins/CommandPalette/CommandMark.d.ts +0 -13
- package/dist/plugins/CommandPalette/CommandPalette.d.ts +0 -14
- package/dist/plugins/CommandPalette/CommandPaletteService.d.ts +0 -12
- package/dist/plugins/CommandPalette/CommandPanel/CommandPanelMenu.d.ts +0 -48
- package/dist/plugins/CommandPalette/CommandPanel/index.d.ts +0 -51
- 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 -29
- package/dist/plugins/EmbeddedEntryInline/EmbeddedEntryInline.d.ts +0 -29
- 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 -13
- package/dist/plugins/EntryEmbedDropdown/index.d.ts +0 -15
- 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
- package/dist/plugins/Heading/HeadingDropdown.d.ts +0 -29
- package/dist/plugins/Heading/Paragraph.d.ts +0 -2
- package/dist/plugins/Hyperlink/Hyperlink.d.ts +0 -25
- package/dist/plugins/Hyperlink/ToolbarIcon.d.ts +0 -8
- package/dist/plugins/Hyperlink/Util.d.ts +0 -43
- package/dist/plugins/Hyperlink/styles.d.ts +0 -7
- package/dist/plugins/InsertBeforeFirstVoidBlock/Util.d.ts +0 -14
- 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.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/index.d.ts +0 -1
- 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 -26
- package/dist/plugins/shared/PropTypes.d.ts +0 -15
- package/dist/plugins/shared/ToolbarDropdownListItem.d.ts +0 -15
- package/dist/plugins/shared/ToolbarIcon.d.ts +0 -16
- 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,29 +0,0 @@
|
|
|
1
|
-
export default class LinkedEntityBlock extends React.Component<any, any, any> {
|
|
2
|
-
static propTypes: {
|
|
3
|
-
widgetAPI: 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.Requireable<(...args: any[]) => any>;
|
|
9
|
-
renderEntity: PropTypes.Requireable<(...args: any[]) => any>;
|
|
10
|
-
};
|
|
11
|
-
static defaultProps: {
|
|
12
|
-
renderEntity: ({ entityId, entityType, isSelected }: {
|
|
13
|
-
entityId: any;
|
|
14
|
-
entityType: any;
|
|
15
|
-
isSelected: any;
|
|
16
|
-
}) => JSX.Element;
|
|
17
|
-
};
|
|
18
|
-
constructor(props: Readonly<any>);
|
|
19
|
-
constructor(props: any, context?: any);
|
|
20
|
-
getEntitySys(): {
|
|
21
|
-
id: any;
|
|
22
|
-
type: any;
|
|
23
|
-
};
|
|
24
|
-
handleEditClick: () => any;
|
|
25
|
-
handleRemoveClick: () => void;
|
|
26
|
-
render(): JSX.Element;
|
|
27
|
-
}
|
|
28
|
-
import React from "react";
|
|
29
|
-
import PropTypes from "prop-types";
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export default EmbeddedEntryInline;
|
|
2
|
-
declare class EmbeddedEntryInline extends React.Component<any, any, any> {
|
|
3
|
-
static propTypes: {
|
|
4
|
-
widgetAPI: 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.Requireable<(...args: any[]) => any>;
|
|
10
|
-
renderEntity: PropTypes.Requireable<(...args: any[]) => any>;
|
|
11
|
-
};
|
|
12
|
-
static defaultProps: {
|
|
13
|
-
renderEntity: ({ entryId, isSelected }: {
|
|
14
|
-
entryId: any;
|
|
15
|
-
isSelected: any;
|
|
16
|
-
}) => JSX.Element;
|
|
17
|
-
};
|
|
18
|
-
constructor(props: Readonly<any>);
|
|
19
|
-
constructor(props: any, context?: any);
|
|
20
|
-
getEntitySys(): {
|
|
21
|
-
id: any;
|
|
22
|
-
type: any;
|
|
23
|
-
};
|
|
24
|
-
handleEditClick: (entry: any) => void;
|
|
25
|
-
handleRemoveClick: () => void;
|
|
26
|
-
render(): JSX.Element;
|
|
27
|
-
}
|
|
28
|
-
import React from "react";
|
|
29
|
-
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: Readonly<any>);
|
|
7
|
-
constructor(props: any, context?: any);
|
|
8
|
-
handleClick: (event: any) => Promise<void>;
|
|
9
|
-
render(): JSX.Element;
|
|
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(widgetAPI: any, editor: any, logAction: Function): Promise<void>;
|
|
4
|
-
export function canInsertInline(editor: any): boolean;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export default ToolbarIcon;
|
|
2
|
-
export function EmbeddedEntryInlinePlugin({ richTextAPI: { widgetAPI, customRenderers, logShortcutAction, logViewportAction } }: {
|
|
3
|
-
richTextAPI: {
|
|
4
|
-
widgetAPI: any;
|
|
5
|
-
customRenderers: any;
|
|
6
|
-
logShortcutAction: any;
|
|
7
|
-
logViewportAction: any;
|
|
8
|
-
};
|
|
9
|
-
}): {
|
|
10
|
-
renderNode: (props: any, _editor: any, next: any) => any;
|
|
11
|
-
onKeyDown: (event: any, editor: any, next: any) => any;
|
|
12
|
-
};
|
|
13
|
-
import ToolbarIcon from "./ToolbarIcon";
|
|
@@ -1,15 +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
|
-
onToggle: PropTypes.Requireable<(...args: any[]) => any>;
|
|
9
|
-
};
|
|
10
|
-
constructor(props: Readonly<any>);
|
|
11
|
-
constructor(props: any, context?: any);
|
|
12
|
-
render(): JSX.Element;
|
|
13
|
-
}
|
|
14
|
-
import React from "react";
|
|
15
|
-
import PropTypes from "prop-types";
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export const blockTitles: {
|
|
2
|
-
[BLOCKS.HEADING_1]: string;
|
|
3
|
-
[BLOCKS.HEADING_2]: string;
|
|
4
|
-
[BLOCKS.HEADING_3]: string;
|
|
5
|
-
[BLOCKS.HEADING_4]: string;
|
|
6
|
-
[BLOCKS.HEADING_5]: string;
|
|
7
|
-
[BLOCKS.HEADING_6]: string;
|
|
8
|
-
[BLOCKS.PARAGRAPH]: string;
|
|
9
|
-
[BLOCKS.EMBEDDED_ENTRY]: string;
|
|
10
|
-
[BLOCKS.EMBEDDED_ASSET]: 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
|
-
onToggle: PropTypes.Requireable<(...args: any[]) => any>;
|
|
21
|
-
currentBlockType: PropTypes.Requireable<string>;
|
|
22
|
-
};
|
|
23
|
-
constructor(props: Readonly<any>);
|
|
24
|
-
constructor(props: any, context?: any);
|
|
25
|
-
getStyleNameForChange: () => any;
|
|
26
|
-
render(): JSX.Element;
|
|
27
|
-
}
|
|
28
|
-
import React from "react";
|
|
29
|
-
import PropTypes from "prop-types";
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export default class Hyperlink extends React.Component<any, any, any> {
|
|
2
|
-
static propTypes: {
|
|
3
|
-
attributes: PropTypes.Validator<object>;
|
|
4
|
-
node: PropTypes.Validator<object>;
|
|
5
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
6
|
-
editor: PropTypes.Requireable<object>;
|
|
7
|
-
createHyperlinkDialog: PropTypes.Requireable<(...args: any[]) => any>;
|
|
8
|
-
onEdit: PropTypes.Requireable<(...args: any[]) => any>;
|
|
9
|
-
renderEntityHyperlinkTooltip: PropTypes.Requireable<(...args: any[]) => any>;
|
|
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;
|
|
23
|
-
}
|
|
24
|
-
import React from "react";
|
|
25
|
-
import PropTypes from "prop-types";
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export default class HyperlinkToolbarIcon extends React.Component<any, any, any> {
|
|
2
|
-
static propTypes: any;
|
|
3
|
-
constructor(props: Readonly<any>);
|
|
4
|
-
constructor(props: any, context?: any);
|
|
5
|
-
handleClick: (event: any) => Promise<void>;
|
|
6
|
-
render(): JSX.Element;
|
|
7
|
-
}
|
|
8
|
-
import React from "react";
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Returns whether or not the current value selection would allow for a user
|
|
3
|
-
* edit on a hyperlink.
|
|
4
|
-
*
|
|
5
|
-
* @param {slate.Value} value
|
|
6
|
-
* @returns {boolean}
|
|
7
|
-
*/
|
|
8
|
-
export function mayEditLink(value: any): boolean;
|
|
9
|
-
/**
|
|
10
|
-
* Returns whether the given value has any hyperlink node.
|
|
11
|
-
*
|
|
12
|
-
* @param {slate.Value} value
|
|
13
|
-
* @returns {boolean}
|
|
14
|
-
*/
|
|
15
|
-
export function hasHyperlink(value: any): boolean;
|
|
16
|
-
/**
|
|
17
|
-
* Returns whether the given value has any inline node other than hyperlinks.
|
|
18
|
-
*
|
|
19
|
-
* @param {slate.Value} value
|
|
20
|
-
* @returns {boolean}
|
|
21
|
-
*/
|
|
22
|
-
export function hasOnlyHyperlinkInlines(value: any): boolean;
|
|
23
|
-
/**
|
|
24
|
-
* Allows the user to insert/remove a link depending on whether the current
|
|
25
|
-
* selection has a link or not. If there is no link, a dialog is shown for
|
|
26
|
-
* the user.
|
|
27
|
-
*
|
|
28
|
-
* @param {slate.Editor} editor Will be mutated with the required operations.
|
|
29
|
-
* @param {function} createHyperlinkDialog
|
|
30
|
-
* @param {function} logAction
|
|
31
|
-
* @returns {Promise<void>}
|
|
32
|
-
*/
|
|
33
|
-
export function toggleLink(editor: any, createHyperlinkDialog: Function, logAction: Function): Promise<void>;
|
|
34
|
-
/**
|
|
35
|
-
* Allows the user to edit the first selected link of a given Change by showing
|
|
36
|
-
* a dialog and applying the change.
|
|
37
|
-
*
|
|
38
|
-
* @param {slate.Editor} change Will be mutated with the required operations.
|
|
39
|
-
* @param {function} createHyperlinkDialog
|
|
40
|
-
* @param {function} logAction
|
|
41
|
-
* @returns {Promise<void>}
|
|
42
|
-
*/
|
|
43
|
-
export function editLink(change: any, createHyperlinkDialog: Function, logAction: Function): Promise<void>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Checks if the first block in the document is void and is focused.
|
|
3
|
-
*
|
|
4
|
-
* @param {Slate.Editor} editor
|
|
5
|
-
* @returns {Boolean}
|
|
6
|
-
*/
|
|
7
|
-
export function isVoidBlockFirstAndFocused(editor: any): boolean;
|
|
8
|
-
/**
|
|
9
|
-
* Inserts and focuses an empty paragraph as a first child to the document.
|
|
10
|
-
*
|
|
11
|
-
* @param {Slate.Editor} editor
|
|
12
|
-
* @returns {void}
|
|
13
|
-
*/
|
|
14
|
-
export function insertParagraphAndFocusToStartOfDocument(editor: any): void;
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
declare function _default({ type, title, icon }: {
|
|
2
|
-
type: any;
|
|
3
|
-
title: any;
|
|
4
|
-
icon: any;
|
|
5
|
-
}): (Block: any) => {
|
|
6
|
-
new (props: Readonly<any>): {
|
|
7
|
-
handleToggle: (e: any) => void;
|
|
8
|
-
render(): JSX.Element;
|
|
9
|
-
context: any;
|
|
10
|
-
setState<K extends string | number | symbol>(state: any, callback?: (() => void) | undefined): void;
|
|
11
|
-
forceUpdate(callback?: (() => void) | undefined): void;
|
|
12
|
-
readonly props: Readonly<any> & Readonly<{
|
|
13
|
-
children?: React.ReactNode;
|
|
14
|
-
}>;
|
|
15
|
-
state: Readonly<any>;
|
|
16
|
-
refs: {
|
|
17
|
-
[key: string]: React.ReactInstance;
|
|
18
|
-
};
|
|
19
|
-
componentDidMount?(): void;
|
|
20
|
-
shouldComponentUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): boolean;
|
|
21
|
-
componentWillUnmount?(): void;
|
|
22
|
-
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
23
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>): any;
|
|
24
|
-
componentDidUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>, snapshot?: any): void;
|
|
25
|
-
componentWillMount?(): void;
|
|
26
|
-
UNSAFE_componentWillMount?(): void;
|
|
27
|
-
componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
|
|
28
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
|
|
29
|
-
componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
|
|
30
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
|
|
31
|
-
};
|
|
32
|
-
new (props: any, context?: any): {
|
|
33
|
-
handleToggle: (e: any) => void;
|
|
34
|
-
render(): JSX.Element;
|
|
35
|
-
context: any;
|
|
36
|
-
setState<K extends string | number | symbol>(state: any, callback?: (() => void) | undefined): void;
|
|
37
|
-
forceUpdate(callback?: (() => void) | undefined): void;
|
|
38
|
-
readonly props: Readonly<any> & Readonly<{
|
|
39
|
-
children?: React.ReactNode;
|
|
40
|
-
}>;
|
|
41
|
-
state: Readonly<any>;
|
|
42
|
-
refs: {
|
|
43
|
-
[key: string]: React.ReactInstance;
|
|
44
|
-
};
|
|
45
|
-
componentDidMount?(): void;
|
|
46
|
-
shouldComponentUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): boolean;
|
|
47
|
-
componentWillUnmount?(): void;
|
|
48
|
-
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
49
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>): any;
|
|
50
|
-
componentDidUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>, snapshot?: any): void;
|
|
51
|
-
componentWillMount?(): void;
|
|
52
|
-
UNSAFE_componentWillMount?(): void;
|
|
53
|
-
componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
|
|
54
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
|
|
55
|
-
componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
|
|
56
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
|
|
57
|
-
};
|
|
58
|
-
propTypes: any;
|
|
59
|
-
contextType?: React.Context<any> | undefined;
|
|
60
|
-
};
|
|
61
|
-
export default _default;
|
|
62
|
-
import * as React from "react";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export function getCharacterCount(editor: any): number;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export function create(): any;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export default QuotePlugin;
|
|
2
|
-
declare function QuotePlugin({ type, richTextAPI: { logShortcutAction } }: {
|
|
3
|
-
type?: any;
|
|
4
|
-
richTextAPI: {
|
|
5
|
-
logShortcutAction: any;
|
|
6
|
-
};
|
|
7
|
-
}): {
|
|
8
|
-
renderNode: (props: any, _editor: any, next: any) => any;
|
|
9
|
-
onKeyDown: (e: any, editor: any, next: any) => any;
|
|
10
|
-
};
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
export function UnderlinedPlugin({ 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: Readonly<any>): {
|
|
9
|
-
handleToggle: (e: any) => void;
|
|
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: (e: any) => void;
|
|
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";
|
package/dist/plugins/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export function buildPlugins(richTextAPI: any): any[];
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
declare function _default({ type, title, icon, applyChange }: {
|
|
2
|
-
type: any;
|
|
3
|
-
title: any;
|
|
4
|
-
icon: any;
|
|
5
|
-
applyChange?: ((editor: any, type: any) => any) | undefined;
|
|
6
|
-
}): (Block: any) => {
|
|
7
|
-
new (props: Readonly<any>): {
|
|
8
|
-
handleSelect: (e: any) => void;
|
|
9
|
-
render(): JSX.Element;
|
|
10
|
-
context: any;
|
|
11
|
-
setState<K extends string | number | symbol>(state: any, callback?: (() => void) | undefined): void;
|
|
12
|
-
forceUpdate(callback?: (() => void) | undefined): void;
|
|
13
|
-
readonly props: Readonly<any> & Readonly<{
|
|
14
|
-
children?: React.ReactNode;
|
|
15
|
-
}>;
|
|
16
|
-
state: Readonly<any>;
|
|
17
|
-
refs: {
|
|
18
|
-
[key: string]: React.ReactInstance;
|
|
19
|
-
};
|
|
20
|
-
componentDidMount?(): void;
|
|
21
|
-
shouldComponentUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): boolean;
|
|
22
|
-
componentWillUnmount?(): void;
|
|
23
|
-
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
24
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>): any;
|
|
25
|
-
componentDidUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>, snapshot?: any): void;
|
|
26
|
-
componentWillMount?(): void;
|
|
27
|
-
UNSAFE_componentWillMount?(): void;
|
|
28
|
-
componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
|
|
29
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
|
|
30
|
-
componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
|
|
31
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
|
|
32
|
-
};
|
|
33
|
-
new (props: any, context?: any): {
|
|
34
|
-
handleSelect: (e: any) => void;
|
|
35
|
-
render(): JSX.Element;
|
|
36
|
-
context: any;
|
|
37
|
-
setState<K extends string | number | symbol>(state: any, callback?: (() => void) | undefined): void;
|
|
38
|
-
forceUpdate(callback?: (() => void) | undefined): void;
|
|
39
|
-
readonly props: Readonly<any> & Readonly<{
|
|
40
|
-
children?: React.ReactNode;
|
|
41
|
-
}>;
|
|
42
|
-
state: Readonly<any>;
|
|
43
|
-
refs: {
|
|
44
|
-
[key: string]: React.ReactInstance;
|
|
45
|
-
};
|
|
46
|
-
componentDidMount?(): void;
|
|
47
|
-
shouldComponentUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): boolean;
|
|
48
|
-
componentWillUnmount?(): void;
|
|
49
|
-
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
50
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>): any;
|
|
51
|
-
componentDidUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>, snapshot?: any): void;
|
|
52
|
-
componentWillMount?(): void;
|
|
53
|
-
UNSAFE_componentWillMount?(): void;
|
|
54
|
-
componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
|
|
55
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
|
|
56
|
-
componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
|
|
57
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
|
|
58
|
-
};
|
|
59
|
-
propTypes: any;
|
|
60
|
-
contextType?: React.Context<any> | undefined;
|
|
61
|
-
};
|
|
62
|
-
export default _default;
|
|
63
|
-
import * as React from "react";
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
export function toggleChange(editor: any, type: any): boolean;
|
|
2
|
-
declare function _default({ type, title, icon, applyChange, isActive }: {
|
|
3
|
-
type: any;
|
|
4
|
-
title: any;
|
|
5
|
-
icon: any;
|
|
6
|
-
applyChange?: ((editor: any, type: any) => boolean) | undefined;
|
|
7
|
-
isActive?: ((editor: any, type: any) => any) | undefined;
|
|
8
|
-
}): (Block: any) => {
|
|
9
|
-
new (props: Readonly<any>): {
|
|
10
|
-
handleToggle: (e: any) => void;
|
|
11
|
-
render(): JSX.Element;
|
|
12
|
-
context: any;
|
|
13
|
-
setState<K extends string | number | symbol>(state: any, callback?: (() => void) | undefined): void;
|
|
14
|
-
forceUpdate(callback?: (() => void) | undefined): void;
|
|
15
|
-
readonly props: Readonly<any> & Readonly<{
|
|
16
|
-
children?: React.ReactNode;
|
|
17
|
-
}>;
|
|
18
|
-
state: Readonly<any>;
|
|
19
|
-
refs: {
|
|
20
|
-
[key: string]: React.ReactInstance;
|
|
21
|
-
};
|
|
22
|
-
componentDidMount?(): void;
|
|
23
|
-
shouldComponentUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): boolean;
|
|
24
|
-
componentWillUnmount?(): void;
|
|
25
|
-
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
26
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>): any;
|
|
27
|
-
componentDidUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>, snapshot?: any): void;
|
|
28
|
-
componentWillMount?(): void;
|
|
29
|
-
UNSAFE_componentWillMount?(): void;
|
|
30
|
-
componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
|
|
31
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
|
|
32
|
-
componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
|
|
33
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
|
|
34
|
-
};
|
|
35
|
-
new (props: any, context?: any): {
|
|
36
|
-
handleToggle: (e: any) => void;
|
|
37
|
-
render(): JSX.Element;
|
|
38
|
-
context: any;
|
|
39
|
-
setState<K extends string | number | symbol>(state: any, callback?: (() => void) | undefined): void;
|
|
40
|
-
forceUpdate(callback?: (() => void) | undefined): void;
|
|
41
|
-
readonly props: Readonly<any> & Readonly<{
|
|
42
|
-
children?: React.ReactNode;
|
|
43
|
-
}>;
|
|
44
|
-
state: Readonly<any>;
|
|
45
|
-
refs: {
|
|
46
|
-
[key: string]: React.ReactInstance;
|
|
47
|
-
};
|
|
48
|
-
componentDidMount?(): void;
|
|
49
|
-
shouldComponentUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): boolean;
|
|
50
|
-
componentWillUnmount?(): void;
|
|
51
|
-
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
52
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>): any;
|
|
53
|
-
componentDidUpdate?(prevProps: Readonly<any>, prevState: Readonly<any>, snapshot?: any): void;
|
|
54
|
-
componentWillMount?(): void;
|
|
55
|
-
UNSAFE_componentWillMount?(): void;
|
|
56
|
-
componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
|
|
57
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<any>, nextContext: any): void;
|
|
58
|
-
componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
|
|
59
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<any>, nextState: Readonly<any>, nextContext: any): void;
|
|
60
|
-
};
|
|
61
|
-
propTypes: any;
|
|
62
|
-
contextType?: React.Context<any> | undefined;
|
|
63
|
-
};
|
|
64
|
-
export default _default;
|
|
65
|
-
import * as React from "react";
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export default function _default(Tag: any, tagProps?: {}): {
|
|
2
|
-
({ attributes, children }: {
|
|
3
|
-
attributes: any;
|
|
4
|
-
children: any;
|
|
5
|
-
}): JSX.Element;
|
|
6
|
-
displayName: string;
|
|
7
|
-
propTypes: {
|
|
8
|
-
attributes: import("prop-types").Validator<object>;
|
|
9
|
-
children: import("prop-types").Validator<string | number | boolean | {} | import("prop-types").ReactElementLike | import("prop-types").ReactNodeArray>;
|
|
10
|
-
mark: import("prop-types").Validator<string>;
|
|
11
|
-
};
|
|
12
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export default function _default({ type, tagName, hotkey, richTextAPI }: {
|
|
2
|
-
type: any;
|
|
3
|
-
tagName: any;
|
|
4
|
-
hotkey: any;
|
|
5
|
-
richTextAPI: any;
|
|
6
|
-
}): {
|
|
7
|
-
renderMark: (props: any, _editor: any, next: any) => any;
|
|
8
|
-
onKeyDown(event: any, editor: any, next: any): any;
|
|
9
|
-
};
|