@progress/kendo-react-editor 13.3.0 → 13.4.0-develop.2

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
@@ -5,4 +5,4 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=Object.freeze({name:"@progress/kendo-react-editor",productName:"KendoReact",productCode:"KENDOUIREACT",productCodes:["KENDOUIREACT"],publishDate: 1768550532,version:"13.3.0",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/components/my-license/"});exports.packageMetadata=e;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=Object.freeze({name:"@progress/kendo-react-editor",productName:"KendoReact",productCode:"KENDOUIREACT",productCodes:["KENDOUIREACT"],publishDate: 1770288258,version:"13.4.0-develop.2",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/components/my-license/"});exports.packageMetadata=e;
@@ -1,19 +1,13 @@
1
+ // Generated file. DO NOT EDIT.
1
2
  /**
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
- *-------------------------------------------------------------------------------------------
3
+ * @hidden
7
4
  */
8
- const e = Object.freeze({
9
- name: "@progress/kendo-react-editor",
10
- productName: "KendoReact",
11
- productCode: "KENDOUIREACT",
12
- productCodes: ["KENDOUIREACT"],
13
- publishDate: 1768550532,
14
- version: "13.3.0",
15
- licensingDocsUrl: "https://www.telerik.com/kendo-react-ui/components/my-license/"
5
+ export const packageMetadata = Object.freeze({
6
+ name: '@progress/kendo-react-editor',
7
+ productName: 'KendoReact',
8
+ productCode: 'KENDOUIREACT',
9
+ productCodes: ['KENDOUIREACT'],
10
+ publishDate: 0,
11
+ version: '13.4.0-develop.2',
12
+ licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/components/my-license/'
16
13
  });
17
- export {
18
- e as packageMetadata
19
- };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-react-editor",
3
- "version": "13.3.0",
3
+ "version": "13.4.0-develop.2",
4
4
  "description": "React Editor enables users to create rich text content through a WYSIWYG interface. KendoReact Editor package",
5
5
  "author": "Progress",
6
6
  "license": "SEE LICENSE IN LICENSE.md",
@@ -27,16 +27,16 @@
27
27
  "peerDependencies": {
28
28
  "@progress/kendo-drawing": "^1.21.2",
29
29
  "@progress/kendo-licensing": "^1.7.2",
30
- "@progress/kendo-react-buttons": "13.3.0",
31
- "@progress/kendo-react-common": "13.3.0",
32
- "@progress/kendo-react-dialogs": "13.3.0",
33
- "@progress/kendo-react-dropdowns": "13.3.0",
34
- "@progress/kendo-react-form": "13.3.0",
35
- "@progress/kendo-react-inputs": "13.3.0",
36
- "@progress/kendo-react-intl": "13.3.0",
37
- "@progress/kendo-react-layout": "13.3.0",
38
- "@progress/kendo-react-pdf": "13.3.0",
39
- "@progress/kendo-react-popup": "13.3.0",
30
+ "@progress/kendo-react-buttons": "13.4.0-develop.2",
31
+ "@progress/kendo-react-common": "13.4.0-develop.2",
32
+ "@progress/kendo-react-dialogs": "13.4.0-develop.2",
33
+ "@progress/kendo-react-dropdowns": "13.4.0-develop.2",
34
+ "@progress/kendo-react-form": "13.4.0-develop.2",
35
+ "@progress/kendo-react-inputs": "13.4.0-develop.2",
36
+ "@progress/kendo-react-intl": "13.4.0-develop.2",
37
+ "@progress/kendo-react-layout": "13.4.0-develop.2",
38
+ "@progress/kendo-react-pdf": "13.4.0-develop.2",
39
+ "@progress/kendo-react-popup": "13.4.0-develop.2",
40
40
  "@progress/kendo-svg-icons": "^4.0.0",
41
41
  "react": "^16.8.2 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc",
42
42
  "react-dom": "^16.8.2 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc"
@@ -63,7 +63,7 @@
63
63
  "package": {
64
64
  "productName": "KendoReact",
65
65
  "productCode": "KENDOUIREACT",
66
- "publishDate": 1768550532,
66
+ "publishDate": 1770288258,
67
67
  "licensingDocsUrl": "https://www.telerik.com/kendo-react-ui/components/my-license/"
68
68
  }
69
69
  },
@@ -0,0 +1,41 @@
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 { EditorView } from '@progress/kendo-editor-common';
9
+ import { ButtonProps } from '@progress/kendo-react-buttons';
10
+ /**
11
+ * @hidden
12
+ */
13
+ export interface BasicToolProps {
14
+ /**
15
+ * The `EditorView` object of the Editor component.
16
+ */
17
+ view?: EditorView;
18
+ }
19
+ /**
20
+ * @hidden
21
+ */
22
+ export interface ToolProps extends BasicToolProps, ToolRenderProp, ButtonProps {
23
+ }
24
+ /**
25
+ * @hidden
26
+ */
27
+ export interface ToolRenderProp {
28
+ /**
29
+ * Fires when a tool is about to be rendered. Used to override the default appearance of the tool.
30
+ */
31
+ render?: (tool: React.ReactElement<any>, args?: any) => React.ReactNode;
32
+ }
33
+ /**
34
+ * @hidden
35
+ */
36
+ export interface ToolWithDialogRenderProp {
37
+ /**
38
+ * Fires when a tool is about to be rendered. Used to override the default appearance of the tool.
39
+ */
40
+ render?: (tool: [React.ReactElement<any>, React.ReactElement<any> | null], args?: any) => React.ReactNode;
41
+ }
@@ -0,0 +1,14 @@
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 { EditorTools } from '../index.js';
10
+ import * as React from 'react';
11
+ /**
12
+ * @hidden
13
+ */
14
+ export declare const createAlignTool: (settings: EditorToolsSettings.AlignSettings) => React.ComponentClass<EditorTools.AlignToolProps, any>;
@@ -0,0 +1,19 @@
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 { BasicToolProps } from './ToolProps.js';
10
+ import * as React from 'react';
11
+ /**
12
+ * @hidden
13
+ */
14
+ export interface ApplyColorToolProps extends BasicToolProps, EditorToolsSettings.ApplyColorSettings {
15
+ }
16
+ /**
17
+ * @hidden
18
+ */
19
+ export declare const ApplyColorTool: React.FunctionComponent<ApplyColorToolProps>;
@@ -0,0 +1,23 @@
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 { ToolProps } from './ToolProps.js';
9
+ import { EditorToolsSettings } from './../config/toolsSettings.js';
10
+ import * as React from 'react';
11
+ /**
12
+ * @hidden
13
+ */
14
+ export interface CleanFormattingToolProps extends ToolProps {
15
+ /**
16
+ * The settings of the tool. Use it to modify the tool appearance.
17
+ */
18
+ settings?: EditorToolsSettings.CleanFormattingSettings;
19
+ }
20
+ /**
21
+ * @hidden
22
+ */
23
+ export declare const CleanFormatting: React.FunctionComponent<CleanFormattingToolProps>;
@@ -0,0 +1,36 @@
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 { ButtonProps } from '@progress/kendo-react-buttons';
9
+ import { BasicToolProps } from './ToolProps.js';
10
+ import * as React from 'react';
11
+ /**
12
+ * @hidden
13
+ */
14
+ export interface FindAndReplaceProps extends BasicToolProps, ButtonProps {
15
+ }
16
+ interface FindAndReplaceState {
17
+ showDialog: boolean;
18
+ }
19
+ /**
20
+ * @hidden
21
+ */
22
+ export declare class FindAndReplace extends React.Component<FindAndReplaceProps, FindAndReplaceState> {
23
+ /**
24
+ * @hidden
25
+ */
26
+ state: {
27
+ showDialog: boolean;
28
+ };
29
+ /**
30
+ * @hidden
31
+ */
32
+ render(): (false | React.JSX.Element | undefined)[];
33
+ private onClose;
34
+ private onOpen;
35
+ }
36
+ export {};
@@ -11,7 +11,7 @@ import { FindAndReplaceDialog as c } from "../dialogs/FindReplace.mjs";
11
11
  import { onDownPreventDefault as d } from "./utils.mjs";
12
12
  import { messages as m } from "../messages/index.mjs";
13
13
  import { EditorToolsSettings as p } from "../config/toolsSettings.mjs";
14
- import { registerForLocalization as g, provideLocalizationService as h } from "@progress/kendo-react-intl";
14
+ import { provideLocalizationService as g, registerForLocalization as h } from "@progress/kendo-react-intl";
15
15
  import { classNames as f } from "@progress/kendo-react-common";
16
16
  const n = p.findAndReplace;
17
17
  let u = class extends s.Component {
@@ -22,7 +22,7 @@ let u = class extends s.Component {
22
22
  * @hidden
23
23
  */
24
24
  render() {
25
- const { view: e, ...o } = this.props, { props: i } = n, r = h(this), a = n.messages.findReplaceToolTitle, t = !e;
25
+ const { view: e, ...o } = this.props, { props: i } = n, r = g(this), a = n.messages.findReplaceToolTitle, t = !e;
26
26
  return [
27
27
  /* @__PURE__ */ s.createElement(
28
28
  l,
@@ -41,7 +41,7 @@ let u = class extends s.Component {
41
41
  ];
42
42
  }
43
43
  };
44
- g(u);
44
+ h(u);
45
45
  export {
46
46
  u as FindAndReplace
47
47
  };
@@ -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 { DropDownListProps } from '@progress/kendo-react-dropdowns';
9
+ import { EditorToolsSettings } from '../config/toolsSettings.js';
10
+ import { BasicToolProps, ToolRenderProp } from './ToolProps.js';
11
+ import * as React from 'react';
12
+ /**
13
+ * @hidden
14
+ */
15
+ export declare namespace FontStyleToolNS {
16
+ /**
17
+ * @hidden
18
+ */
19
+ interface DropDownListToolProps extends BasicToolProps, ToolRenderProp, DropDownListProps {
20
+ }
21
+ /**
22
+ * @hidden
23
+ */
24
+ interface FontSizeProps extends DropDownListToolProps {
25
+ }
26
+ /**
27
+ * @hidden
28
+ */
29
+ interface FontNameProps extends DropDownListToolProps {
30
+ }
31
+ /**
32
+ * @hidden
33
+ */
34
+ const createStyleDropDownList: (settings: EditorToolsSettings.StyleDropDownListSettings) => React.ComponentClass<DropDownListToolProps, any>;
35
+ }
@@ -8,7 +8,7 @@
8
8
  import * as d from "react";
9
9
  import { DropDownList as g } from "@progress/kendo-react-dropdowns";
10
10
  import { applyInlineStyle as S, getInlineStyles as z } from "@progress/kendo-editor-common";
11
- import { itemRender as w, userSelectNone as x } from "./utils.mjs";
11
+ import { userSelectNone as w, itemRender as x } from "./utils.mjs";
12
12
  import { registerForLocalization as I, provideLocalizationService as D } from "@progress/kendo-react-intl";
13
13
  import { messages as K } from "../messages/index.mjs";
14
14
  var f;
@@ -41,11 +41,11 @@ var f;
41
41
  value: l && m.find((h) => h.value === l),
42
42
  data: m,
43
43
  defaultItem: e,
44
- itemRender: w,
44
+ itemRender: x,
45
45
  textField: "text",
46
46
  dataItemKey: "value",
47
47
  onChange: this.onChange,
48
- style: x,
48
+ style: w,
49
49
  leftRightKeysNavigation: !1,
50
50
  title: e && e.text,
51
51
  ...s
@@ -0,0 +1,25 @@
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 { DropDownListProps } from '@progress/kendo-react-dropdowns';
9
+ import { EditorToolsSettings } from '../config/toolsSettings.js';
10
+ import { BasicToolProps, ToolRenderProp } from './ToolProps.js';
11
+ import * as React from 'react';
12
+ /**
13
+ * @hidden
14
+ */
15
+ export declare namespace FormatBlockToolNS {
16
+ /**
17
+ * @hidden
18
+ */
19
+ interface FormatBlockProps extends BasicToolProps, ToolRenderProp, DropDownListProps {
20
+ }
21
+ /**
22
+ * @hidden
23
+ */
24
+ const createFormatBlockDropDownList: (settings: EditorToolsSettings.FormatBlockDropDownListSettings) => React.ComponentClass<FormatBlockProps, any>;
25
+ }
@@ -8,7 +8,7 @@
8
8
  import * as d from "react";
9
9
  import { DropDownList as y } from "@progress/kendo-react-dropdowns";
10
10
  import { formatBlockElements as z, getBlockFormats as w } from "@progress/kendo-editor-common";
11
- import { itemRender as x, userSelectNone as k } from "./utils.mjs";
11
+ import { userSelectNone as x, itemRender as k } from "./utils.mjs";
12
12
  import { registerForLocalization as D, provideLocalizationService as F } from "@progress/kendo-react-intl";
13
13
  import { messages as K } from "../messages/index.mjs";
14
14
  var f;
@@ -37,12 +37,12 @@ var f;
37
37
  {
38
38
  value: n && l.find((h) => h.value === n),
39
39
  onChange: this.onChange,
40
- itemRender: x,
40
+ itemRender: k,
41
41
  data: l,
42
42
  defaultItem: t,
43
43
  textField: "text",
44
44
  dataItemKey: "value",
45
- style: k,
45
+ style: x,
46
46
  leftRightKeysNavigation: !1,
47
47
  title: t.text,
48
48
  ...v
@@ -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 { ToolProps } from './ToolProps.js';
10
+ import * as React from 'react';
11
+ /**
12
+ * @hidden
13
+ */
14
+ export declare namespace HistoryToolNS {
15
+ /**
16
+ * @hidden
17
+ */
18
+ interface UndoProps extends ToolProps {
19
+ }
20
+ /**
21
+ * @hidden
22
+ */
23
+ interface RedoProps extends ToolProps {
24
+ }
25
+ /**
26
+ * @hidden
27
+ */
28
+ const createUndoTool: (settings: EditorToolsSettings.ToolSettings) => React.ComponentClass<ToolProps, React.ComponentState>;
29
+ /**
30
+ * @hidden
31
+ */
32
+ const createRedoTool: (settings: EditorToolsSettings.ToolSettings) => React.ComponentClass<ToolProps, any>;
33
+ }
@@ -0,0 +1,24 @@
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 { ToolProps } from './ToolProps.js';
10
+ import * as React from 'react';
11
+ /**
12
+ * @hidden
13
+ */
14
+ export declare namespace IndentToolNS {
15
+ /**
16
+ * @hidden
17
+ */
18
+ interface IndentProps extends ToolProps {
19
+ }
20
+ /**
21
+ * @hidden
22
+ */
23
+ const createIndentTool: (settings: EditorToolsSettings.IndentationSettings) => React.ComponentClass<IndentProps, any>;
24
+ }