@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.
Files changed (76) hide show
  1. package/Editor.d.ts +125 -0
  2. package/Editor.js +1 -1
  3. package/Editor.mjs +77 -77
  4. package/EditorProps.d.ts +406 -0
  5. package/config/defaultStyles.d.ts +19 -0
  6. package/config/pasteSettings.d.ts +13 -0
  7. package/config/schema.d.ts +8 -0
  8. package/config/shortcuts.d.ts +31 -0
  9. package/config/shortcuts.mjs +7 -7
  10. package/config/toolsSettings.d.ts +496 -0
  11. package/dialogs/EditorDialogProps.d.ts +33 -0
  12. package/dialogs/FindReplace.d.ts +79 -0
  13. package/dialogs/FindReplace.mjs +3 -3
  14. package/dialogs/index.d.ts +56 -0
  15. package/dialogs/insertImage.d.ts +35 -0
  16. package/dialogs/insertImage.mjs +3 -3
  17. package/dialogs/insertLink.d.ts +33 -0
  18. package/dialogs/insertLink.mjs +3 -3
  19. package/dialogs/viewHtml.d.ts +32 -0
  20. package/dialogs/viewHtml.mjs +3 -3
  21. package/dist/cdn/js/kendo-react-editor.js +1 -1
  22. package/index.d.mts +176 -3134
  23. package/index.d.ts +176 -3134
  24. package/index.mjs +139 -139
  25. package/messages/index.d.ts +359 -0
  26. package/package-metadata.d.ts +12 -0
  27. package/package-metadata.js +1 -1
  28. package/package-metadata.mjs +10 -16
  29. package/package.json +12 -12
  30. package/tools/ToolProps.d.ts +41 -0
  31. package/tools/align.d.ts +14 -0
  32. package/tools/applyColor.d.ts +19 -0
  33. package/tools/cleanFormatting.d.ts +23 -0
  34. package/tools/findReplace.d.ts +36 -0
  35. package/tools/findReplace.mjs +3 -3
  36. package/tools/fontStyle.d.ts +35 -0
  37. package/tools/fontStyle.mjs +3 -3
  38. package/tools/formatBlock.d.ts +25 -0
  39. package/tools/formatBlock.mjs +3 -3
  40. package/tools/history.d.ts +33 -0
  41. package/tools/indent.d.ts +24 -0
  42. package/tools/index.d.ts +717 -0
  43. package/tools/index.mjs +1 -1
  44. package/tools/inlineFormat.d.ts +54 -0
  45. package/tools/inlineFormat.mjs +3 -3
  46. package/tools/insertImage.d.ts +20 -0
  47. package/tools/insertLink.d.ts +31 -0
  48. package/tools/insertTable/index.d.ts +10 -0
  49. package/tools/insertTable/popup.d.ts +100 -0
  50. package/tools/insertTable/popupGrid.d.ts +38 -0
  51. package/tools/insertTable/tool.d.ts +31 -0
  52. package/tools/lists-styled.d.ts +12 -0
  53. package/tools/lists.d.ts +34 -0
  54. package/tools/outdent.d.ts +24 -0
  55. package/tools/pdf.d.ts +32 -0
  56. package/tools/print.d.ts +23 -0
  57. package/tools/proseMirrorTool.d.ts +19 -0
  58. package/tools/selectAll.d.ts +23 -0
  59. package/tools/table-wizard/cellPropsUtils.d.ts +43 -0
  60. package/tools/table-wizard/cellPropsUtils.mjs +5 -5
  61. package/tools/table-wizard/tableCellProperties.d.ts +27 -0
  62. package/tools/table-wizard/tableProperties.d.ts +18 -0
  63. package/tools/table-wizard/tableProperties.mjs +13 -13
  64. package/tools/table-wizard/tablePropsUtils.d.ts +59 -0
  65. package/tools/table-wizard/tablePropsUtils.mjs +9 -9
  66. package/tools/table-wizard/utils.d.ts +46 -0
  67. package/tools/tableEdit.d.ts +105 -0
  68. package/tools/tableEdit.mjs +3 -3
  69. package/tools/unlink.d.ts +24 -0
  70. package/tools/utils.d.ts +57 -0
  71. package/tools/utils.mjs +1 -1
  72. package/tools/viewHtml.d.ts +31 -0
  73. package/utils/browser-detection.d.ts +11 -0
  74. package/utils/controlled-value.d.ts +12 -0
  75. package/utils/index.d.ts +370 -0
  76. 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
+ }
@@ -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 { registerForLocalization as L, provideLocalizationService as S } from "@progress/kendo-react-intl";
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 = S(this), g = s && s.state;
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
- L(A);
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
+ }
@@ -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 { registerForLocalization as z, provideLocalizationService as H } from "@progress/kendo-react-intl";
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 = H(this), {
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
- z(I);
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
+ }
@@ -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 { registerForLocalization as A, provideLocalizationService as H } from "@progress/kendo-react-intl";
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 = H(this), { viewHtmlDialogTitle: a, viewHtmlCancel: l, viewHtmlUpdate: m } = e.messages, c = /* @__PURE__ */ i.createElement(
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
- A(k);
66
+ H(k);
67
67
  export {
68
68
  k as ViewHtmlDialog
69
69
  };