@entur-partner/rich-text-editor 6.2.3 → 6.2.4-alpha.1
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/dist/ExpandableMultiLanguageRichTextEditor.d.ts +21 -21
- package/dist/index.d.ts +5 -5
- package/dist/rich-text-editor.cjs.development.js +313 -330
- package/dist/rich-text-editor.cjs.development.js.map +1 -1
- package/dist/rich-text-editor.cjs.production.min.js +1 -1
- package/dist/rich-text-editor.cjs.production.min.js.map +1 -1
- package/dist/rich-text-editor.esm.js +247 -257
- package/dist/rich-text-editor.esm.js.map +1 -1
- package/dist/styles.css +14 -14
- package/package.json +60 -60
- package/dist/RichTextEditor/BlockTypeDropdown/index.d.ts +0 -3
- package/dist/RichTextEditor/Controls/BlockTypeButtonControls.d.ts +0 -3
- package/dist/RichTextEditor/Controls/BlockTypeLinkControls.d.ts +0 -3
- package/dist/RichTextEditor/Controls/BlockTypeSelectControls.d.ts +0 -7
- package/dist/RichTextEditor/Controls/InlineStyleControls.d.ts +0 -3
- package/dist/RichTextEditor/Controls/TagControls.d.ts +0 -3
- package/dist/RichTextEditor/Link/index.d.ts +0 -8
- package/dist/RichTextEditor/StyleButton/index.d.ts +0 -3
- package/dist/RichTextEditor/constants.d.ts +0 -94
- package/dist/RichTextEditor/htmlConvertion.d.ts +0 -9
- package/dist/RichTextEditor/index.d.ts +0 -58
- package/dist/RichTextEditor/markdownConvertion.d.ts +0 -4
- package/dist/events.d.ts +0 -4
- package/dist/withI18n.d.ts +0 -2
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
export const EditorConfigTypes: Readonly<{
|
|
2
|
-
FONT_LIST: {
|
|
3
|
-
UNSTYLED: string;
|
|
4
|
-
HEADER_ONE: string;
|
|
5
|
-
HEADER_TWO: string;
|
|
6
|
-
HEADER_THREE: string;
|
|
7
|
-
HEADER_FOUR: string;
|
|
8
|
-
HEADER_FIVE: string;
|
|
9
|
-
HEADER_SIX: string;
|
|
10
|
-
};
|
|
11
|
-
BLOCK_TYPES: {
|
|
12
|
-
UNORDERED_LIST: string;
|
|
13
|
-
ORDERED_LIST: string;
|
|
14
|
-
};
|
|
15
|
-
INLINE_STYLES: {
|
|
16
|
-
BOLD: string;
|
|
17
|
-
ITALIC: string;
|
|
18
|
-
UNDERLINE: string;
|
|
19
|
-
};
|
|
20
|
-
}>;
|
|
21
|
-
export const FontList: Readonly<{
|
|
22
|
-
unstyled: {
|
|
23
|
-
label: string;
|
|
24
|
-
style: string;
|
|
25
|
-
};
|
|
26
|
-
'header-one': {
|
|
27
|
-
label: string;
|
|
28
|
-
style: string;
|
|
29
|
-
};
|
|
30
|
-
'header-two': {
|
|
31
|
-
label: string;
|
|
32
|
-
style: string;
|
|
33
|
-
};
|
|
34
|
-
'header-three': {
|
|
35
|
-
label: string;
|
|
36
|
-
style: string;
|
|
37
|
-
};
|
|
38
|
-
'header-four': {
|
|
39
|
-
label: string;
|
|
40
|
-
style: string;
|
|
41
|
-
};
|
|
42
|
-
'header-five': {
|
|
43
|
-
label: string;
|
|
44
|
-
style: string;
|
|
45
|
-
};
|
|
46
|
-
'header-six': {
|
|
47
|
-
label: string;
|
|
48
|
-
style: string;
|
|
49
|
-
};
|
|
50
|
-
}>;
|
|
51
|
-
export const BlockTypeList: Readonly<{
|
|
52
|
-
'unordered-list': {
|
|
53
|
-
label: React.JSX.Element;
|
|
54
|
-
style: string;
|
|
55
|
-
tooltip: string;
|
|
56
|
-
};
|
|
57
|
-
'ordered-list': {
|
|
58
|
-
label: React.JSX.Element;
|
|
59
|
-
style: string;
|
|
60
|
-
tooltip: string;
|
|
61
|
-
};
|
|
62
|
-
}>;
|
|
63
|
-
export const InlineStylesList: Readonly<{
|
|
64
|
-
bold: {
|
|
65
|
-
label: React.JSX.Element;
|
|
66
|
-
style: string;
|
|
67
|
-
tooltip: string;
|
|
68
|
-
hotKey: string;
|
|
69
|
-
};
|
|
70
|
-
italic: {
|
|
71
|
-
label: React.JSX.Element;
|
|
72
|
-
style: string;
|
|
73
|
-
tooltip: string;
|
|
74
|
-
hotKey: string;
|
|
75
|
-
};
|
|
76
|
-
underline: {
|
|
77
|
-
label: React.JSX.Element;
|
|
78
|
-
style: string;
|
|
79
|
-
tooltip: string;
|
|
80
|
-
hotKey: string;
|
|
81
|
-
};
|
|
82
|
-
}>;
|
|
83
|
-
export const MinifiedConfigTypes: Readonly<{
|
|
84
|
-
fontList: {
|
|
85
|
-
type: string;
|
|
86
|
-
label: string;
|
|
87
|
-
style: string;
|
|
88
|
-
}[];
|
|
89
|
-
blockTypes: string[];
|
|
90
|
-
inlineStyles: string[];
|
|
91
|
-
}>;
|
|
92
|
-
export const decorator: CompositeDecorator;
|
|
93
|
-
import React from "react";
|
|
94
|
-
import { CompositeDecorator } from "draft-js";
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export namespace entityToHtml {
|
|
2
|
-
function entityToHTML(entity: any, originalText: any): any;
|
|
3
|
-
}
|
|
4
|
-
export namespace htmlToEntity {
|
|
5
|
-
function htmlToEntity(nodeName: any, node: any, createEntity: any): any;
|
|
6
|
-
}
|
|
7
|
-
export function htmlToEditorState(html: any): EditorState;
|
|
8
|
-
export function editorStateToHtml(editorState: any): any;
|
|
9
|
-
import { EditorState } from "draft-js";
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
export default RichTextEditor;
|
|
2
|
-
declare class RichTextEditor extends React.Component<any, any, any> {
|
|
3
|
-
static decorator: Draft.Model.Decorators.CompositeDraftDecorator;
|
|
4
|
-
constructor(props: any);
|
|
5
|
-
constructor(props: any, context: any);
|
|
6
|
-
wrapperRef: React.RefObject<any>;
|
|
7
|
-
editor: React.RefObject<any>;
|
|
8
|
-
focusEditor(): void;
|
|
9
|
-
handleKeyCommand: (command: any, editorState: any) => boolean;
|
|
10
|
-
keyBindingFn: (evt: any) => void | Draft.Model.Constants.DraftEditorCommand | null;
|
|
11
|
-
onTab: (evt: any) => void;
|
|
12
|
-
toggleButtonBlockType: (blockType: any) => void;
|
|
13
|
-
toggleSelectBlockType: (blockType: any) => void;
|
|
14
|
-
toggleInlineStyle: (inlineStyle: any) => void;
|
|
15
|
-
toggleLink: (newEditorState: any, entityKey: any) => void;
|
|
16
|
-
insertText: (editorState: any, text: any) => void;
|
|
17
|
-
getFontListConfigForPanelType: (panelType: any) => any;
|
|
18
|
-
getControlConfigBySet: (config: any) => {
|
|
19
|
-
fontList: any;
|
|
20
|
-
blockTypes: any;
|
|
21
|
-
inlineStyles: any;
|
|
22
|
-
};
|
|
23
|
-
render(): React.JSX.Element;
|
|
24
|
-
}
|
|
25
|
-
declare namespace RichTextEditor {
|
|
26
|
-
namespace propTypes {
|
|
27
|
-
const editorState: PropTypes.Validator<object>;
|
|
28
|
-
const onChange: PropTypes.Validator<(...args: any[]) => any>;
|
|
29
|
-
const maxTabDepth: PropTypes.Requireable<number>;
|
|
30
|
-
const showFontMenu: PropTypes.Requireable<boolean>;
|
|
31
|
-
const showInlineStyleMenu: PropTypes.Requireable<boolean>;
|
|
32
|
-
const showTextFormatMenu: PropTypes.Requireable<boolean>;
|
|
33
|
-
const showLinkMenu: PropTypes.Requireable<boolean>;
|
|
34
|
-
const label: PropTypes.Requireable<string>;
|
|
35
|
-
const tags: PropTypes.Requireable<(object | null | undefined)[]>;
|
|
36
|
-
const controlConfigSet: PropTypes.Requireable<PropTypes.InferProps<{
|
|
37
|
-
fontList: PropTypes.Requireable<any[]>;
|
|
38
|
-
blockTypes: PropTypes.Requireable<any[]>;
|
|
39
|
-
inlineStyles: PropTypes.Requireable<any[]>;
|
|
40
|
-
}>>;
|
|
41
|
-
}
|
|
42
|
-
namespace defaultProps {
|
|
43
|
-
const maxTabDepth_1: number;
|
|
44
|
-
export { maxTabDepth_1 as maxTabDepth };
|
|
45
|
-
const showFontMenu_1: boolean;
|
|
46
|
-
export { showFontMenu_1 as showFontMenu };
|
|
47
|
-
const showInlineStyleMenu_1: boolean;
|
|
48
|
-
export { showInlineStyleMenu_1 as showInlineStyleMenu };
|
|
49
|
-
const showTextFormatMenu_1: boolean;
|
|
50
|
-
export { showTextFormatMenu_1 as showTextFormatMenu };
|
|
51
|
-
const showLinkMenu_1: boolean;
|
|
52
|
-
export { showLinkMenu_1 as showLinkMenu };
|
|
53
|
-
const label_1: string;
|
|
54
|
-
export { label_1 as label };
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
import React from "react";
|
|
58
|
-
import PropTypes from "prop-types";
|
package/dist/events.d.ts
DELETED
package/dist/withI18n.d.ts
DELETED