@progress/kendo-react-editor 13.3.0 → 13.4.0-develop.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/Editor.d.ts +125 -0
- package/Editor.js +1 -1
- package/Editor.mjs +77 -77
- package/EditorProps.d.ts +406 -0
- package/config/defaultStyles.d.ts +19 -0
- package/config/pasteSettings.d.ts +13 -0
- package/config/schema.d.ts +8 -0
- package/config/shortcuts.d.ts +31 -0
- package/config/shortcuts.mjs +7 -7
- package/config/toolsSettings.d.ts +496 -0
- package/dialogs/EditorDialogProps.d.ts +33 -0
- package/dialogs/FindReplace.d.ts +79 -0
- package/dialogs/FindReplace.mjs +3 -3
- package/dialogs/index.d.ts +56 -0
- package/dialogs/insertImage.d.ts +35 -0
- package/dialogs/insertImage.mjs +3 -3
- package/dialogs/insertLink.d.ts +33 -0
- package/dialogs/insertLink.mjs +3 -3
- package/dialogs/viewHtml.d.ts +32 -0
- package/dialogs/viewHtml.mjs +3 -3
- package/dist/cdn/js/kendo-react-editor.js +1 -1
- package/index.d.mts +176 -3134
- package/index.d.ts +176 -3134
- package/index.mjs +139 -139
- package/messages/index.d.ts +359 -0
- package/package-metadata.d.ts +12 -0
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +10 -16
- package/package.json +12 -12
- package/tools/ToolProps.d.ts +41 -0
- package/tools/align.d.ts +14 -0
- package/tools/applyColor.d.ts +19 -0
- package/tools/cleanFormatting.d.ts +23 -0
- package/tools/findReplace.d.ts +36 -0
- package/tools/findReplace.mjs +3 -3
- package/tools/fontStyle.d.ts +35 -0
- package/tools/fontStyle.mjs +3 -3
- package/tools/formatBlock.d.ts +25 -0
- package/tools/formatBlock.mjs +3 -3
- package/tools/history.d.ts +33 -0
- package/tools/indent.d.ts +24 -0
- package/tools/index.d.ts +717 -0
- package/tools/index.mjs +1 -1
- package/tools/inlineFormat.d.ts +54 -0
- package/tools/inlineFormat.mjs +3 -3
- package/tools/insertImage.d.ts +20 -0
- package/tools/insertLink.d.ts +31 -0
- package/tools/insertTable/index.d.ts +10 -0
- package/tools/insertTable/popup.d.ts +100 -0
- package/tools/insertTable/popupGrid.d.ts +38 -0
- package/tools/insertTable/tool.d.ts +31 -0
- package/tools/lists-styled.d.ts +12 -0
- package/tools/lists.d.ts +34 -0
- package/tools/outdent.d.ts +24 -0
- package/tools/pdf.d.ts +32 -0
- package/tools/print.d.ts +23 -0
- package/tools/proseMirrorTool.d.ts +19 -0
- package/tools/selectAll.d.ts +23 -0
- package/tools/table-wizard/cellPropsUtils.d.ts +43 -0
- package/tools/table-wizard/cellPropsUtils.mjs +5 -5
- package/tools/table-wizard/tableCellProperties.d.ts +27 -0
- package/tools/table-wizard/tableProperties.d.ts +18 -0
- package/tools/table-wizard/tableProperties.mjs +13 -13
- package/tools/table-wizard/tablePropsUtils.d.ts +59 -0
- package/tools/table-wizard/tablePropsUtils.mjs +9 -9
- package/tools/table-wizard/utils.d.ts +46 -0
- package/tools/tableEdit.d.ts +105 -0
- package/tools/tableEdit.mjs +3 -3
- package/tools/unlink.d.ts +24 -0
- package/tools/utils.d.ts +57 -0
- package/tools/utils.mjs +1 -1
- package/tools/viewHtml.d.ts +31 -0
- package/utils/browser-detection.d.ts +11 -0
- package/utils/controlled-value.d.ts +12 -0
- package/utils/index.d.ts +370 -0
- package/utils/props-key.d.ts +12 -0
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { EditorToolsSettings } from '../config/toolsSettings.js';
|
|
9
|
+
import { EditorDialogProps } from './EditorDialogProps.js';
|
|
10
|
+
import * as React from 'react';
|
|
11
|
+
/**
|
|
12
|
+
* @hidden
|
|
13
|
+
*/
|
|
14
|
+
export interface InsertImageDialogProps extends EditorDialogProps {
|
|
15
|
+
/**
|
|
16
|
+
* The `ImageSettings` object.
|
|
17
|
+
*/
|
|
18
|
+
settings: EditorToolsSettings.ImageSettings;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* @hidden
|
|
22
|
+
*/
|
|
23
|
+
export declare class InsertImageDialog extends React.Component<InsertImageDialogProps> {
|
|
24
|
+
private src;
|
|
25
|
+
private altText;
|
|
26
|
+
private title;
|
|
27
|
+
private width;
|
|
28
|
+
private height;
|
|
29
|
+
/**
|
|
30
|
+
* @hidden
|
|
31
|
+
*/
|
|
32
|
+
render(): string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | React.JSX.Element | null | undefined;
|
|
33
|
+
private onClose;
|
|
34
|
+
private onInsert;
|
|
35
|
+
}
|
package/dialogs/insertImage.mjs
CHANGED
|
@@ -9,7 +9,7 @@ import * as e from "react";
|
|
|
9
9
|
import { Window as x, WindowActionsBar as C } from "@progress/kendo-react-dialogs";
|
|
10
10
|
import { Button as b } from "@progress/kendo-react-buttons";
|
|
11
11
|
import { insertNode as y, NodeSelection as F } from "@progress/kendo-editor-common";
|
|
12
|
-
import {
|
|
12
|
+
import { provideLocalizationService as L, registerForLocalization as S } from "@progress/kendo-react-intl";
|
|
13
13
|
import { messages as a } from "../messages/index.mjs";
|
|
14
14
|
import { Input as h } from "@progress/kendo-react-inputs";
|
|
15
15
|
import { Form as T, FormElement as z, FieldWrapper as u } from "@progress/kendo-react-form";
|
|
@@ -44,7 +44,7 @@ let A = class extends e.Component {
|
|
|
44
44
|
insertImageHeight: E,
|
|
45
45
|
insertImageCancel: k,
|
|
46
46
|
insertImageInsert: w
|
|
47
|
-
} = m.messages, i =
|
|
47
|
+
} = m.messages, i = L(this), g = s && s.state;
|
|
48
48
|
let o = {};
|
|
49
49
|
g && g.selection instanceof F && g.selection.node.type === g.schema.nodes[m.node] && (o = g.selection.node.attrs);
|
|
50
50
|
const I = /* @__PURE__ */ e.createElement(
|
|
@@ -132,7 +132,7 @@ let A = class extends e.Component {
|
|
|
132
132
|
return p ? p(N, { content: I, actionButtons: v }) : N;
|
|
133
133
|
}
|
|
134
134
|
};
|
|
135
|
-
|
|
135
|
+
S(A);
|
|
136
136
|
export {
|
|
137
137
|
A as InsertImageDialog
|
|
138
138
|
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { EditorToolsSettings } from '../config/toolsSettings.js';
|
|
9
|
+
import { EditorDialogProps } from './EditorDialogProps.js';
|
|
10
|
+
import * as React from 'react';
|
|
11
|
+
/**
|
|
12
|
+
* @hidden
|
|
13
|
+
*/
|
|
14
|
+
export interface InsertLinkDialogProps extends EditorDialogProps {
|
|
15
|
+
/**
|
|
16
|
+
* The `LinkSettings` object.
|
|
17
|
+
*/
|
|
18
|
+
settings: EditorToolsSettings.LinkSettings;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* @hidden
|
|
22
|
+
*/
|
|
23
|
+
export declare class InsertLinkDialog extends React.Component<InsertLinkDialogProps> {
|
|
24
|
+
private href;
|
|
25
|
+
private title;
|
|
26
|
+
private target;
|
|
27
|
+
/**
|
|
28
|
+
* @hidden
|
|
29
|
+
*/
|
|
30
|
+
render(): string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | React.JSX.Element | null | undefined;
|
|
31
|
+
private onClose;
|
|
32
|
+
private onInsert;
|
|
33
|
+
}
|
package/dialogs/insertLink.mjs
CHANGED
|
@@ -11,7 +11,7 @@ import { Button as v } from "@progress/kendo-react-buttons";
|
|
|
11
11
|
import { Input as y, Checkbox as L } from "@progress/kendo-react-inputs";
|
|
12
12
|
import { Form as b, FormElement as x, FieldWrapper as s } from "@progress/kendo-react-form";
|
|
13
13
|
import { applyLink as F, getMark as N } from "@progress/kendo-editor-common";
|
|
14
|
-
import {
|
|
14
|
+
import { provideLocalizationService as z, registerForLocalization as H } from "@progress/kendo-react-intl";
|
|
15
15
|
import { messages as n } from "../messages/index.mjs";
|
|
16
16
|
let I = class extends e.Component {
|
|
17
17
|
constructor() {
|
|
@@ -30,7 +30,7 @@ let I = class extends e.Component {
|
|
|
30
30
|
* @hidden
|
|
31
31
|
*/
|
|
32
32
|
render() {
|
|
33
|
-
const { view: r, settings: a, dir: o, render: m } = this.props, i =
|
|
33
|
+
const { view: r, settings: a, dir: o, render: m } = this.props, i = z(this), {
|
|
34
34
|
insertHyperlinkDialogTitle: c,
|
|
35
35
|
insertHyperlinkAddress: h,
|
|
36
36
|
insertHyperlinkTitle: k,
|
|
@@ -107,7 +107,7 @@ let I = class extends e.Component {
|
|
|
107
107
|
return m ? m(E, { content: u, actionButtons: f }) : E;
|
|
108
108
|
}
|
|
109
109
|
};
|
|
110
|
-
|
|
110
|
+
H(I);
|
|
111
111
|
export {
|
|
112
112
|
I as InsertLinkDialog
|
|
113
113
|
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { EditorToolsSettings } from '../config/toolsSettings.js';
|
|
9
|
+
import { EditorDialogProps } from './EditorDialogProps.js';
|
|
10
|
+
import * as React from 'react';
|
|
11
|
+
/**
|
|
12
|
+
* @hidden
|
|
13
|
+
*/
|
|
14
|
+
export interface ViewHtmlDialogProps extends EditorDialogProps {
|
|
15
|
+
/**
|
|
16
|
+
* The `ViewHtmlSettings` object.
|
|
17
|
+
*/
|
|
18
|
+
settings: EditorToolsSettings.ViewHtmlSettings;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* @hidden
|
|
22
|
+
*/
|
|
23
|
+
export declare class ViewHtmlDialog extends React.Component<ViewHtmlDialogProps> {
|
|
24
|
+
private htmlArea;
|
|
25
|
+
/**
|
|
26
|
+
* @hidden
|
|
27
|
+
*/
|
|
28
|
+
render(): string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | React.JSX.Element | null | undefined;
|
|
29
|
+
private textAreaRef;
|
|
30
|
+
private onUpdate;
|
|
31
|
+
private onClose;
|
|
32
|
+
}
|
package/dialogs/viewHtml.mjs
CHANGED
|
@@ -9,7 +9,7 @@ import * as i from "react";
|
|
|
9
9
|
import { Window as g, WindowActionsBar as d } from "@progress/kendo-react-dialogs";
|
|
10
10
|
import { Button as u } from "@progress/kendo-react-buttons";
|
|
11
11
|
import { trimWhitespace as f, setHtml as w, indentHtml as v, getHtml as C } from "@progress/kendo-editor-common";
|
|
12
|
-
import {
|
|
12
|
+
import { provideLocalizationService as A, registerForLocalization as H } from "@progress/kendo-react-intl";
|
|
13
13
|
import { messages as n } from "../messages/index.mjs";
|
|
14
14
|
import { editorPropsKey as x } from "../utils/props-key.mjs";
|
|
15
15
|
import { TextArea as z } from "@progress/kendo-react-inputs";
|
|
@@ -30,7 +30,7 @@ let k = class extends i.Component {
|
|
|
30
30
|
* @hidden
|
|
31
31
|
*/
|
|
32
32
|
render() {
|
|
33
|
-
const { view: t, settings: e, dir: o, render: s } = this.props, r =
|
|
33
|
+
const { view: t, settings: e, dir: o, render: s } = this.props, r = A(this), { viewHtmlDialogTitle: a, viewHtmlCancel: l, viewHtmlUpdate: m } = e.messages, c = /* @__PURE__ */ i.createElement(
|
|
34
34
|
z,
|
|
35
35
|
{
|
|
36
36
|
className: "k-editor-textarea",
|
|
@@ -63,7 +63,7 @@ let k = class extends i.Component {
|
|
|
63
63
|
return s ? s(p, { content: c, actionButtons: h }) : p;
|
|
64
64
|
}
|
|
65
65
|
};
|
|
66
|
-
|
|
66
|
+
H(k);
|
|
67
67
|
export {
|
|
68
68
|
k as ViewHtmlDialog
|
|
69
69
|
};
|