@progress/kendo-react-editor 5.4.0-dev.202205250548 → 5.4.0-dev.202205271059

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 (109) hide show
  1. package/dist/cdn/js/kendo-react-editor.js +1 -1
  2. package/dist/es/Editor.d.ts +5 -5
  3. package/dist/es/Editor.js +16 -9
  4. package/dist/es/EditorProps.d.ts +1 -1
  5. package/dist/es/EditorProps.js +1 -0
  6. package/dist/es/config/pasteSettings.js +1 -0
  7. package/dist/es/config/shortcuts.js +1 -1
  8. package/dist/es/config/toolsSettings.js +19 -14
  9. package/dist/es/dialogs/EditorDialogProps.js +1 -0
  10. package/dist/es/dialogs/FindReplace.d.ts +1 -1
  11. package/dist/es/dialogs/FindReplace.js +6 -5
  12. package/dist/es/dialogs/insertImage.d.ts +1 -1
  13. package/dist/es/dialogs/insertImage.js +3 -1
  14. package/dist/es/dialogs/insertLink.d.ts +1 -1
  15. package/dist/es/dialogs/insertLink.js +3 -1
  16. package/dist/es/dialogs/main.js +3 -1
  17. package/dist/es/dialogs/viewHtml.d.ts +1 -1
  18. package/dist/es/dialogs/viewHtml.js +3 -1
  19. package/dist/es/main.d.ts +1 -1
  20. package/dist/es/main.js +116 -29
  21. package/dist/es/messages/index.d.ts +78 -391
  22. package/dist/es/package-metadata.js +1 -1
  23. package/dist/es/tools/ToolProps.d.ts +4 -1
  24. package/dist/es/tools/ToolProps.js +1 -0
  25. package/dist/es/tools/align.js +7 -3
  26. package/dist/es/tools/cleanFormatting.js +4 -2
  27. package/dist/es/tools/findReplace.js +7 -3
  28. package/dist/es/tools/fontStyle.js +7 -3
  29. package/dist/es/tools/formatBlock.js +7 -3
  30. package/dist/es/tools/indent.js +7 -3
  31. package/dist/es/tools/inlineFormat.js +7 -3
  32. package/dist/es/tools/insertImage.js +7 -3
  33. package/dist/es/tools/insertLink.js +7 -3
  34. package/dist/es/tools/insertTable/popup.js +3 -1
  35. package/dist/es/tools/insertTable/popupGrid.js +3 -1
  36. package/dist/es/tools/insertTable/tool.js +7 -3
  37. package/dist/es/tools/lists-styled.js +9 -4
  38. package/dist/es/tools/lists.js +7 -3
  39. package/dist/es/tools/main.d.ts +113 -112
  40. package/dist/es/tools/main.js +3 -1
  41. package/dist/es/tools/outdent.js +7 -3
  42. package/dist/es/tools/pdf.js +5 -3
  43. package/dist/es/tools/print.js +4 -2
  44. package/dist/es/tools/proseMirrorTool.js +7 -3
  45. package/dist/es/tools/selectAll.js +4 -2
  46. package/dist/es/tools/tableEdit.d.ts +8 -8
  47. package/dist/es/tools/unlink.js +7 -3
  48. package/dist/es/tools/utils.d.ts +1 -1
  49. package/dist/es/tools/viewHtml.js +7 -3
  50. package/dist/es/utils/controlled-value.d.ts +1 -2
  51. package/dist/npm/Editor.d.ts +5 -5
  52. package/dist/npm/Editor.js +17 -9
  53. package/dist/npm/EditorProps.d.ts +1 -1
  54. package/dist/npm/config/defaultStyles.js +1 -0
  55. package/dist/npm/config/schema.js +3 -2
  56. package/dist/npm/config/shortcuts.js +4 -2
  57. package/dist/npm/config/toolsSettings.js +20 -14
  58. package/dist/npm/dialogs/FindReplace.d.ts +1 -1
  59. package/dist/npm/dialogs/FindReplace.js +7 -5
  60. package/dist/npm/dialogs/insertImage.d.ts +1 -1
  61. package/dist/npm/dialogs/insertImage.js +4 -1
  62. package/dist/npm/dialogs/insertLink.d.ts +1 -1
  63. package/dist/npm/dialogs/insertLink.js +4 -1
  64. package/dist/npm/dialogs/main.js +4 -1
  65. package/dist/npm/dialogs/viewHtml.d.ts +1 -1
  66. package/dist/npm/dialogs/viewHtml.js +4 -1
  67. package/dist/npm/main.d.ts +1 -1
  68. package/dist/npm/main.js +121 -33
  69. package/dist/npm/messages/index.d.ts +78 -391
  70. package/dist/npm/messages/index.js +2 -1
  71. package/dist/npm/package-metadata.js +2 -1
  72. package/dist/npm/tools/ToolProps.d.ts +4 -1
  73. package/dist/npm/tools/align.js +10 -4
  74. package/dist/npm/tools/applyColor.js +3 -1
  75. package/dist/npm/tools/cleanFormatting.js +7 -3
  76. package/dist/npm/tools/findReplace.js +8 -3
  77. package/dist/npm/tools/fontStyle.js +8 -3
  78. package/dist/npm/tools/formatBlock.js +8 -3
  79. package/dist/npm/tools/history.js +1 -0
  80. package/dist/npm/tools/indent.js +8 -3
  81. package/dist/npm/tools/inlineFormat.js +8 -3
  82. package/dist/npm/tools/insertImage.js +10 -4
  83. package/dist/npm/tools/insertLink.js +8 -3
  84. package/dist/npm/tools/insertTable/index.js +3 -2
  85. package/dist/npm/tools/insertTable/popup.js +4 -1
  86. package/dist/npm/tools/insertTable/popupGrid.js +3 -1
  87. package/dist/npm/tools/insertTable/tool.js +8 -3
  88. package/dist/npm/tools/lists-styled.js +12 -5
  89. package/dist/npm/tools/lists.js +8 -3
  90. package/dist/npm/tools/main.d.ts +113 -112
  91. package/dist/npm/tools/main.js +4 -1
  92. package/dist/npm/tools/outdent.js +8 -3
  93. package/dist/npm/tools/pdf.js +8 -4
  94. package/dist/npm/tools/print.js +7 -3
  95. package/dist/npm/tools/proseMirrorTool.js +10 -4
  96. package/dist/npm/tools/selectAll.js +7 -3
  97. package/dist/npm/tools/tableEdit.d.ts +8 -8
  98. package/dist/npm/tools/tableEdit.js +1 -0
  99. package/dist/npm/tools/unlink.js +8 -3
  100. package/dist/npm/tools/utils.d.ts +1 -1
  101. package/dist/npm/tools/utils.js +1 -0
  102. package/dist/npm/tools/viewHtml.js +8 -3
  103. package/dist/npm/utils/browser-detection.js +1 -0
  104. package/dist/npm/utils/controlled-value.d.ts +1 -2
  105. package/dist/npm/utils/controlled-value.js +3 -1
  106. package/dist/npm/utils/index.js +1 -0
  107. package/dist/npm/utils/props-key.js +1 -0
  108. package/dist/systemjs/kendo-react-editor.js +1 -1
  109. package/package.json +12 -12
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
2
2
  var extendStatics = function (d, b) {
3
3
  extendStatics = Object.setPrototypeOf ||
4
4
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
6
  return extendStatics(d, b);
7
7
  };
8
8
  return function (d, b) {
9
+ if (typeof b !== "function" && b !== null)
10
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
9
11
  extendStatics(d, b);
10
12
  function __() { this.constructor = d; }
11
13
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
2
2
  var extendStatics = function (d, b) {
3
3
  extendStatics = Object.setPrototypeOf ||
4
4
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
6
  return extendStatics(d, b);
7
7
  };
8
8
  return function (d, b) {
9
+ if (typeof b !== "function" && b !== null)
10
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
9
11
  extendStatics(d, b);
10
12
  function __() { this.constructor = d; }
11
13
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -27,8 +29,10 @@ var __rest = (this && this.__rest) || function (s, e) {
27
29
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
28
30
  t[p] = s[p];
29
31
  if (s != null && typeof Object.getOwnPropertySymbols === "function")
30
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
31
- t[p[i]] = s[p[i]];
32
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
33
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
34
+ t[p[i]] = s[p[i]];
35
+ }
32
36
  return t;
33
37
  };
34
38
  import * as React from 'react';
@@ -14,8 +14,10 @@ var __rest = (this && this.__rest) || function (s, e) {
14
14
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
15
  t[p] = s[p];
16
16
  if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
18
- t[p[i]] = s[p[i]];
17
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
+ t[p[i]] = s[p[i]];
20
+ }
19
21
  return t;
20
22
  };
21
23
  import * as React from 'react';
@@ -34,7 +36,7 @@ export var Pdf = function (props) {
34
36
  var titleKey = settings.messages.title;
35
37
  var onClick = React.useCallback(function () {
36
38
  if (view) {
37
- savePDF(view.dom, __assign({}, defaultSavePdfOptions, (savePdfOptions || {})), savePdfCallback);
39
+ savePDF(view.dom, __assign(__assign({}, defaultSavePdfOptions), (savePdfOptions || {})), savePdfCallback);
38
40
  }
39
41
  }, [view, savePdfOptions, savePdfCallback]);
40
42
  var button = (React.createElement(Button, __assign({ onClick: onClick, title: useLocalization().toLanguageString(titleKey, messages[titleKey]) }, onDownPreventDefault, settings.props, buttonProps)));
@@ -14,8 +14,10 @@ var __rest = (this && this.__rest) || function (s, e) {
14
14
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
15
  t[p] = s[p];
16
16
  if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
18
- t[p[i]] = s[p[i]];
17
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
+ t[p[i]] = s[p[i]];
20
+ }
19
21
  return t;
20
22
  };
21
23
  import * as React from 'react';
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
2
2
  var extendStatics = function (d, b) {
3
3
  extendStatics = Object.setPrototypeOf ||
4
4
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
6
  return extendStatics(d, b);
7
7
  };
8
8
  return function (d, b) {
9
+ if (typeof b !== "function" && b !== null)
10
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
9
11
  extendStatics(d, b);
10
12
  function __() { this.constructor = d; }
11
13
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -27,8 +29,10 @@ var __rest = (this && this.__rest) || function (s, e) {
27
29
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
28
30
  t[p] = s[p];
29
31
  if (s != null && typeof Object.getOwnPropertySymbols === "function")
30
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
31
- t[p[i]] = s[p[i]];
32
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
33
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
34
+ t[p[i]] = s[p[i]];
35
+ }
32
36
  return t;
33
37
  };
34
38
  import * as React from 'react';
@@ -14,8 +14,10 @@ var __rest = (this && this.__rest) || function (s, e) {
14
14
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
15
  t[p] = s[p];
16
16
  if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
18
- t[p[i]] = s[p[i]];
17
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
+ t[p[i]] = s[p[i]];
20
+ }
19
21
  return t;
20
22
  };
21
23
  import * as React from 'react';
@@ -57,33 +57,33 @@ export declare namespace TableEditNS {
57
57
  /**
58
58
  * @hidden
59
59
  */
60
- const createAddRowAfterTool: (settings: EditorToolsSettings.ToolSettings) => ComponentClass<ToolProps, any>;
60
+ const createAddRowAfterTool: (settings: EditorToolsSettings.ToolSettings) => ComponentClass<ToolProps>;
61
61
  /**
62
62
  * @hidden
63
63
  */
64
- const createAddColumnBeforeTool: (settings: EditorToolsSettings.ToolSettings) => ComponentClass<ToolProps, any>;
64
+ const createAddColumnBeforeTool: (settings: EditorToolsSettings.ToolSettings) => ComponentClass<ToolProps>;
65
65
  /**
66
66
  * @hidden
67
67
  */
68
- const createAddColumnAfterTool: (settings: EditorToolsSettings.ToolSettings) => ComponentClass<ToolProps, any>;
68
+ const createAddColumnAfterTool: (settings: EditorToolsSettings.ToolSettings) => ComponentClass<ToolProps>;
69
69
  /**
70
70
  * @hidden
71
71
  */
72
- const createDeleteRowTool: (settings: EditorToolsSettings.ToolSettings) => ComponentClass<ToolProps, any>;
72
+ const createDeleteRowTool: (settings: EditorToolsSettings.ToolSettings) => ComponentClass<ToolProps>;
73
73
  /**
74
74
  * @hidden
75
75
  */
76
- const createDeleteColumnTool: (settings: EditorToolsSettings.ToolSettings) => ComponentClass<ToolProps, any>;
76
+ const createDeleteColumnTool: (settings: EditorToolsSettings.ToolSettings) => ComponentClass<ToolProps>;
77
77
  /**
78
78
  * @hidden
79
79
  */
80
- const createDeleteTableTool: (settings: EditorToolsSettings.ToolSettings) => ComponentClass<ToolProps, any>;
80
+ const createDeleteTableTool: (settings: EditorToolsSettings.ToolSettings) => ComponentClass<ToolProps>;
81
81
  /**
82
82
  * @hidden
83
83
  */
84
- const createMergeCellsTool: (settings: EditorToolsSettings.ToolSettings) => ComponentClass<ToolProps, any>;
84
+ const createMergeCellsTool: (settings: EditorToolsSettings.ToolSettings) => ComponentClass<ToolProps>;
85
85
  /**
86
86
  * @hidden
87
87
  */
88
- const createSplitCellTool: (settings: EditorToolsSettings.ToolSettings) => ComponentClass<ToolProps, any>;
88
+ const createSplitCellTool: (settings: EditorToolsSettings.ToolSettings) => ComponentClass<ToolProps>;
89
89
  }
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
2
2
  var extendStatics = function (d, b) {
3
3
  extendStatics = Object.setPrototypeOf ||
4
4
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
6
  return extendStatics(d, b);
7
7
  };
8
8
  return function (d, b) {
9
+ if (typeof b !== "function" && b !== null)
10
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
9
11
  extendStatics(d, b);
10
12
  function __() { this.constructor = d; }
11
13
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -27,8 +29,10 @@ var __rest = (this && this.__rest) || function (s, e) {
27
29
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
28
30
  t[p] = s[p];
29
31
  if (s != null && typeof Object.getOwnPropertySymbols === "function")
30
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
31
- t[p[i]] = s[p[i]];
32
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
33
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
34
+ t[p[i]] = s[p[i]];
35
+ }
32
36
  return t;
33
37
  };
34
38
  import * as React from 'react';
@@ -13,7 +13,7 @@ declare const userSelectNone: React.CSSProperties;
13
13
  /**
14
14
  * @hidden
15
15
  */
16
- declare const formatString: (input: string, ...args: any[]) => string;
16
+ declare const formatString: (input: string, ...args: Array<any>) => string;
17
17
  /**
18
18
  * @hidden
19
19
  */
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
2
2
  var extendStatics = function (d, b) {
3
3
  extendStatics = Object.setPrototypeOf ||
4
4
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
6
  return extendStatics(d, b);
7
7
  };
8
8
  return function (d, b) {
9
+ if (typeof b !== "function" && b !== null)
10
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
9
11
  extendStatics(d, b);
10
12
  function __() { this.constructor = d; }
11
13
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -27,8 +29,10 @@ var __rest = (this && this.__rest) || function (s, e) {
27
29
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
28
30
  t[p] = s[p];
29
31
  if (s != null && typeof Object.getOwnPropertySymbols === "function")
30
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
31
- t[p[i]] = s[p[i]];
32
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
33
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
34
+ t[p[i]] = s[p[i]];
35
+ }
32
36
  return t;
33
37
  };
34
38
  import * as React from 'react';
@@ -1,6 +1,5 @@
1
- /// <reference types="prosemirror-model" />
2
1
  import { Transaction, EditorView, Node } from '@progress/kendo-editor-common';
3
2
  /**
4
3
  * @hidden
5
4
  */
6
- export declare const updateEditorValue: (view: EditorView<any>, value: string | Node<any>, prevValue: string | Node<any>, trOnChange: Transaction<any>, htmlOnChange: string) => void;
5
+ export declare const updateEditorValue: (view: EditorView, value: Node | string, prevValue: Node | string | undefined, trOnChange: Transaction | null, htmlOnChange: string | null) => void;
@@ -30,7 +30,7 @@ interface EditorStateInterface {
30
30
  * ReactDOM.render(<App />, document.querySelector('my-app'));
31
31
  * ```
32
32
  */
33
- export default class Editor extends React.Component<EditorProps, EditorStateInterface> {
33
+ export declare class Editor extends React.Component<EditorProps, EditorStateInterface> {
34
34
  /**
35
35
  * @hidden
36
36
  */
@@ -60,19 +60,19 @@ export default class Editor extends React.Component<EditorProps, EditorStateInte
60
60
  /**
61
61
  * The value of the Editor.
62
62
  */
63
- readonly value: Node | string;
63
+ get value(): Node | string;
64
64
  /**
65
65
  * Returns the DOM element of the Editor.
66
66
  */
67
- readonly element: HTMLElement;
67
+ get element(): HTMLElement;
68
68
  /**
69
69
  * Returns the content-editable DOM element of the Editor.
70
70
  */
71
- readonly contentElement: HTMLDivElement;
71
+ get contentElement(): HTMLDivElement;
72
72
  /**
73
73
  * Returns the `view` object of the Editor.
74
74
  */
75
- readonly view: EditorView<any>;
75
+ get view(): EditorView<any>;
76
76
  private _element;
77
77
  private _view?;
78
78
  private _contentElement;
@@ -3,10 +3,12 @@ var __extends = (this && this.__extends) || (function () {
3
3
  var extendStatics = function (d, b) {
4
4
  extendStatics = Object.setPrototypeOf ||
5
5
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
7
  return extendStatics(d, b);
8
8
  };
9
9
  return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
10
12
  extendStatics(d, b);
11
13
  function __() { this.constructor = d; }
12
14
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -23,7 +25,13 @@ var __assign = (this && this.__assign) || function () {
23
25
  };
24
26
  return __assign.apply(this, arguments);
25
27
  };
28
+ var __spreadArray = (this && this.__spreadArray) || function (to, from) {
29
+ for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
30
+ to[j] = from[i];
31
+ return to;
32
+ };
26
33
  Object.defineProperty(exports, "__esModule", { value: true });
34
+ exports.Editor = void 0;
27
35
  var React = require("react");
28
36
  var PropTypes = require("prop-types");
29
37
  var kendo_react_buttons_1 = require("@progress/kendo-react-buttons");
@@ -189,7 +197,7 @@ var Editor = /** @class */ (function (_super) {
189
197
  }
190
198
  return this.props.defaultContent || '';
191
199
  },
192
- enumerable: true,
200
+ enumerable: false,
193
201
  configurable: true
194
202
  });
195
203
  Object.defineProperty(Editor.prototype, "element", {
@@ -199,7 +207,7 @@ var Editor = /** @class */ (function (_super) {
199
207
  get: function () {
200
208
  return this._element;
201
209
  },
202
- enumerable: true,
210
+ enumerable: false,
203
211
  configurable: true
204
212
  });
205
213
  Object.defineProperty(Editor.prototype, "contentElement", {
@@ -209,7 +217,7 @@ var Editor = /** @class */ (function (_super) {
209
217
  get: function () {
210
218
  return this._contentElement;
211
219
  },
212
- enumerable: true,
220
+ enumerable: false,
213
221
  configurable: true
214
222
  });
215
223
  Object.defineProperty(Editor.prototype, "view", {
@@ -219,7 +227,7 @@ var Editor = /** @class */ (function (_super) {
219
227
  get: function () {
220
228
  return this._view;
221
229
  },
222
- enumerable: true,
230
+ enumerable: false,
223
231
  configurable: true
224
232
  });
225
233
  /**
@@ -332,10 +340,10 @@ var Editor = /** @class */ (function (_super) {
332
340
  kendo_editor_common_1.gapCursor(),
333
341
  kendo_editor_common_1.tableEditing()
334
342
  ];
335
- var shortcuts = __assign({}, utils_1.EditorUtils.getShortcuts({
343
+ var shortcuts = __assign(__assign({}, utils_1.EditorUtils.getShortcuts({
336
344
  types: { listItem: 'list_item', hardBreak: 'hard_break' },
337
345
  toolsSettings: { bold: bold, italic: italic, underline: underline }
338
- }), { 'Mod-k': function () {
346
+ })), { 'Mod-k': function () {
339
347
  var linkDialog = _this.state.linkDialog;
340
348
  var editorView = _this.view;
341
349
  if (editorView) {
@@ -354,7 +362,7 @@ var Editor = /** @class */ (function (_super) {
354
362
  utils_1.EditorUtils.createDocument(new kendo_editor_common_1.Schema({ nodes: schema_1.nodes, marks: schema_1.marks }), value || defaultContent, { preserveWhitespace: preserveWhitespace });
355
363
  var viewProps = {
356
364
  state: kendo_editor_common_1.EditorState.create({
357
- plugins: plugins.concat([kendo_editor_common_1.keymap(shortcuts), kendo_editor_common_1.keymap(kendo_editor_common_1.baseKeymap)]),
365
+ plugins: __spreadArray(__spreadArray([], plugins), [kendo_editor_common_1.keymap(shortcuts), kendo_editor_common_1.keymap(kendo_editor_common_1.baseKeymap)]),
358
366
  doc: doc
359
367
  }),
360
368
  transformPastedHTML: this.onPasteHtml,
@@ -395,4 +403,4 @@ var Editor = /** @class */ (function (_super) {
395
403
  };
396
404
  return Editor;
397
405
  }(React.Component));
398
- exports.default = Editor;
406
+ exports.Editor = Editor;
@@ -2,7 +2,7 @@
2
2
  /// <reference types="react" />
3
3
  import { EditorState, Plugin, Transaction, EditorView, Schema, Node } from '@progress/kendo-editor-common';
4
4
  import { EditorUtils } from './utils';
5
- import Editor from './Editor';
5
+ import { Editor } from './Editor';
6
6
  interface EditorEvent {
7
7
  /**
8
8
  * An event target.
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.rtlStyles = exports.tablesStyles = exports.defaultStyle = void 0;
3
4
  /**
4
5
  * @hidden
5
6
  */
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.nodes = exports.marks = void 0;
3
4
  var kendo_editor_common_1 = require("@progress/kendo-editor-common");
4
- exports.marks = kendo_editor_common_1.marks;
5
- exports.nodes = kendo_editor_common_1.nodes;
5
+ Object.defineProperty(exports, "marks", { enumerable: true, get: function () { return kendo_editor_common_1.marks; } });
6
+ Object.defineProperty(exports, "nodes", { enumerable: true, get: function () { return kendo_editor_common_1.nodes; } });
@@ -11,6 +11,7 @@ var __assign = (this && this.__assign) || function () {
11
11
  return __assign.apply(this, arguments);
12
12
  };
13
13
  Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.getShortcuts = void 0;
14
15
  var kendo_editor_common_1 = require("@progress/kendo-editor-common");
15
16
  var toolsSettings_1 = require("./toolsSettings");
16
17
  var bold = toolsSettings_1.EditorToolsSettings.bold, underline = toolsSettings_1.EditorToolsSettings.underline, italic = toolsSettings_1.EditorToolsSettings.italic;
@@ -18,7 +19,7 @@ var mac = typeof navigator !== 'undefined' ? /Mac/.test(navigator.platform) : fa
18
19
  /**
19
20
  * @hidden
20
21
  */
21
- exports.getShortcuts = function (settings) {
22
+ var getShortcuts = function (settings) {
22
23
  var insertBr = kendo_editor_common_1.chainCommands(kendo_editor_common_1.exitCode, function (state, dispatch) {
23
24
  var hardBreak = settings && settings.types && settings.types.hardBreak || 'hard_break';
24
25
  var br = state.schema.nodes[hardBreak];
@@ -29,8 +30,9 @@ exports.getShortcuts = function (settings) {
29
30
  });
30
31
  var listItem = settings && settings.types && settings.types.listItem || 'list_item';
31
32
  var toolsSettings = settings && settings.toolsSettings || {};
32
- var shortcutsSettings = __assign({ 'Mod-b': function (state, dispatch) { return kendo_editor_common_1.toggleInlineFormat(toolsSettings.bold || bold)(state, dispatch); }, 'Mod-i': function (state, dispatch) { return kendo_editor_common_1.toggleInlineFormat(toolsSettings.italic || italic)(state, dispatch); }, 'Mod-u': function (state, dispatch) { return kendo_editor_common_1.toggleInlineFormat(toolsSettings.underline || underline)(state, dispatch); }, 'Mod-z': kendo_editor_common_1.undo, 'Shift-Mod-z': kendo_editor_common_1.redo }, __assign({}, !mac ? { 'Mod-y': kendo_editor_common_1.redo } : {}), { 'Backspace': kendo_editor_common_1.undoInputRule, 'Mod-Enter': insertBr, 'Shift-Enter': insertBr }, __assign({}, mac ? { 'Ctrl-Enter': insertBr } : {}), { 'Enter': function (state, dispatch) {
33
+ var shortcutsSettings = __assign(__assign(__assign(__assign({ 'Mod-b': function (state, dispatch) { return kendo_editor_common_1.toggleInlineFormat(toolsSettings.bold || bold)(state, dispatch); }, 'Mod-i': function (state, dispatch) { return kendo_editor_common_1.toggleInlineFormat(toolsSettings.italic || italic)(state, dispatch); }, 'Mod-u': function (state, dispatch) { return kendo_editor_common_1.toggleInlineFormat(toolsSettings.underline || underline)(state, dispatch); }, 'Mod-z': kendo_editor_common_1.undo, 'Shift-Mod-z': kendo_editor_common_1.redo }, __assign({}, !mac ? { 'Mod-y': kendo_editor_common_1.redo } : {})), { 'Backspace': kendo_editor_common_1.undoInputRule, 'Mod-Enter': insertBr, 'Shift-Enter': insertBr }), __assign({}, mac ? { 'Ctrl-Enter': insertBr } : {})), { 'Enter': function (state, dispatch) {
33
34
  return kendo_editor_common_1.splitListItem(state.schema.nodes[listItem])(state, dispatch);
34
35
  }, 'Tab': kendo_editor_common_1.goToNextCell(1), 'Shift-Tab': kendo_editor_common_1.goToNextCell(-1) });
35
36
  return shortcutsSettings;
36
37
  };
38
+ exports.getShortcuts = getShortcuts;
@@ -10,7 +10,13 @@ var __assign = (this && this.__assign) || function () {
10
10
  };
11
11
  return __assign.apply(this, arguments);
12
12
  };
13
+ var __spreadArray = (this && this.__spreadArray) || function (to, from) {
14
+ for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
15
+ to[j] = from[i];
16
+ return to;
17
+ };
13
18
  Object.defineProperty(exports, "__esModule", { value: true });
19
+ exports.EditorToolsSettings = exports.listsTypes = void 0;
14
20
  var messages_1 = require("./../messages");
15
21
  var kendo_editor_common_1 = require("@progress/kendo-editor-common");
16
22
  /**
@@ -31,43 +37,43 @@ var EditorToolsSettings;
31
37
  /**
32
38
  * The object of the Bold tool settings.
33
39
  */
34
- EditorToolsSettings.bold = __assign({}, kendo_editor_common_1.bold, { props: __assign({ icon: 'bold' }, buttonCommonProps), messages: {
40
+ EditorToolsSettings.bold = __assign(__assign({}, kendo_editor_common_1.bold), { props: __assign({ icon: 'bold' }, buttonCommonProps), messages: {
35
41
  title: messages_1.keys.bold
36
42
  }, commandName: 'Bold' });
37
43
  /**
38
44
  * The object of the Italic tool settings.
39
45
  */
40
- EditorToolsSettings.italic = __assign({}, kendo_editor_common_1.italic, { props: __assign({ icon: 'italic' }, buttonCommonProps), messages: {
46
+ EditorToolsSettings.italic = __assign(__assign({}, kendo_editor_common_1.italic), { props: __assign({ icon: 'italic' }, buttonCommonProps), messages: {
41
47
  title: messages_1.keys.italic
42
48
  }, commandName: 'Italic' });
43
49
  /**
44
50
  * The object of the Underline tool settings.
45
51
  */
46
- EditorToolsSettings.underline = __assign({}, kendo_editor_common_1.underline, { props: __assign({ icon: 'underline' }, buttonCommonProps), messages: {
52
+ EditorToolsSettings.underline = __assign(__assign({}, kendo_editor_common_1.underline), { props: __assign({ icon: 'underline' }, buttonCommonProps), messages: {
47
53
  title: messages_1.keys.underline
48
54
  }, commandName: 'Underline' });
49
55
  /**
50
56
  * The object of the Strikethrough tool settings.
51
57
  */
52
- EditorToolsSettings.strikethrough = __assign({}, kendo_editor_common_1.strikethrough, { props: __assign({ icon: 'strikethrough' }, buttonCommonProps), messages: {
58
+ EditorToolsSettings.strikethrough = __assign(__assign({}, kendo_editor_common_1.strikethrough), { props: __assign({ icon: 'strikethrough' }, buttonCommonProps), messages: {
53
59
  title: messages_1.keys.strikethrough
54
60
  }, commandName: 'Strikethrough' });
55
61
  /**
56
62
  * The object of the Subscript tool settings.
57
63
  */
58
- EditorToolsSettings.subscript = __assign({}, kendo_editor_common_1.subscript, { props: __assign({ icon: 'subscript' }, buttonCommonProps), messages: {
64
+ EditorToolsSettings.subscript = __assign(__assign({}, kendo_editor_common_1.subscript), { props: __assign({ icon: 'subscript' }, buttonCommonProps), messages: {
59
65
  title: messages_1.keys.subscript
60
66
  }, commandName: 'Subscript' });
61
67
  /**
62
68
  * The object of the Superscript tool settings.
63
69
  */
64
- EditorToolsSettings.superscript = __assign({}, kendo_editor_common_1.superscript, { props: __assign({ icon: 'superscript' }, buttonCommonProps), messages: {
70
+ EditorToolsSettings.superscript = __assign(__assign({}, kendo_editor_common_1.superscript), { props: __assign({ icon: 'superscript' }, buttonCommonProps), messages: {
65
71
  title: messages_1.keys.superscript
66
72
  }, commandName: 'Superscript' });
67
73
  /**
68
74
  * The object of the Link tool settings.
69
75
  */
70
- EditorToolsSettings.link = __assign({}, kendo_editor_common_1.link, { props: __assign({ icon: 'link-horizontal' }, buttonCommonProps), messages: {
76
+ EditorToolsSettings.link = __assign(__assign({}, kendo_editor_common_1.link), { props: __assign({ icon: 'link-horizontal' }, buttonCommonProps), messages: {
71
77
  insertHyperlink: messages_1.keys.insertHyperlink,
72
78
  insertHyperlinkDialogTitle: messages_1.keys.insertHyperlinkDialogTitle,
73
79
  insertHyperlinkAddress: messages_1.keys.insertHyperlinkAddress,
@@ -79,7 +85,7 @@ var EditorToolsSettings;
79
85
  /**
80
86
  * The object of the Link tool settings.
81
87
  */
82
- EditorToolsSettings.insertFile = __assign({}, kendo_editor_common_1.link, { props: __assign({ icon: 'file-add' }, buttonCommonProps), messages: {
88
+ EditorToolsSettings.insertFile = __assign(__assign({}, kendo_editor_common_1.link), { props: __assign({ icon: 'file-add' }, buttonCommonProps), messages: {
83
89
  insertHyperlink: messages_1.keys.insertFile,
84
90
  insertHyperlinkDialogTitle: messages_1.keys.insertFileDialogTitle,
85
91
  insertHyperlinkAddress: messages_1.keys.insertFileAddress,
@@ -298,7 +304,7 @@ var EditorToolsSettings;
298
304
  /**
299
305
  * The object of the Unlink tool settings.
300
306
  */
301
- EditorToolsSettings.unlink = __assign({}, kendo_editor_common_1.link, { props: __assign({ icon: 'unlink-horizontal' }, buttonCommonProps), messages: {
307
+ EditorToolsSettings.unlink = __assign(__assign({}, kendo_editor_common_1.link), { props: __assign({ icon: 'unlink-horizontal' }, buttonCommonProps), messages: {
302
308
  title: messages_1.keys.unlink
303
309
  }, commandName: 'Unlink' });
304
310
  /**
@@ -410,7 +416,7 @@ var EditorToolsSettings;
410
416
  * The object of the AlignLeft tool settings.
411
417
  */
412
418
  EditorToolsSettings.alignLeft = {
413
- actions: kendo_editor_common_1.alignLeftRules.slice(),
419
+ actions: __spreadArray([], kendo_editor_common_1.alignLeftRules),
414
420
  props: __assign({ icon: 'align-left' }, buttonCommonProps),
415
421
  messages: {
416
422
  title: messages_1.keys.alignLeft
@@ -421,7 +427,7 @@ var EditorToolsSettings;
421
427
  * The object of the AlignRight tool settings.
422
428
  */
423
429
  EditorToolsSettings.alignRight = {
424
- actions: kendo_editor_common_1.alignRightRules.slice(),
430
+ actions: __spreadArray([], kendo_editor_common_1.alignRightRules),
425
431
  props: __assign({ icon: 'align-right' }, buttonCommonProps),
426
432
  messages: {
427
433
  title: messages_1.keys.alignRight
@@ -432,7 +438,7 @@ var EditorToolsSettings;
432
438
  * The object of the AlignCenter tool settings.
433
439
  */
434
440
  EditorToolsSettings.alignCenter = {
435
- actions: kendo_editor_common_1.alignCenterRules.slice(),
441
+ actions: __spreadArray([], kendo_editor_common_1.alignCenterRules),
436
442
  props: __assign({ icon: 'align-center' }, buttonCommonProps),
437
443
  messages: {
438
444
  title: messages_1.keys.alignCenter
@@ -443,7 +449,7 @@ var EditorToolsSettings;
443
449
  * The object of the AlignJustify tool settings.
444
450
  */
445
451
  EditorToolsSettings.alignJustify = {
446
- actions: kendo_editor_common_1.alignJustifyRules.slice(),
452
+ actions: __spreadArray([], kendo_editor_common_1.alignJustifyRules),
447
453
  props: __assign({ icon: 'align-justify' }, buttonCommonProps),
448
454
  messages: {
449
455
  title: messages_1.keys.alignJustify
@@ -454,7 +460,7 @@ var EditorToolsSettings;
454
460
  * The object of the AlignRemove tool settings.
455
461
  */
456
462
  EditorToolsSettings.alignRemove = {
457
- actions: kendo_editor_common_1.alignRemoveRules.slice(),
463
+ actions: __spreadArray([], kendo_editor_common_1.alignRemoveRules),
458
464
  props: __assign({ icon: 'align-remove' }, buttonCommonProps),
459
465
  messages: {},
460
466
  commandName: 'AlignRemove'
@@ -41,7 +41,7 @@ export declare class FindAndReplaceDialog extends React.Component<FindAndReplace
41
41
  * @hidden
42
42
  */
43
43
  state: FindAndReplaceDialogState;
44
- private readonly settings;
44
+ private get settings();
45
45
  constructor(props: FindAndReplaceDialogProps);
46
46
  /**
47
47
  * @hidden
@@ -3,10 +3,12 @@ var __extends = (this && this.__extends) || (function () {
3
3
  var extendStatics = function (d, b) {
4
4
  extendStatics = Object.setPrototypeOf ||
5
5
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
7
  return extendStatics(d, b);
8
8
  };
9
9
  return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
10
12
  extendStatics(d, b);
11
13
  function __() { this.constructor = d; }
12
14
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -24,6 +26,7 @@ var __assign = (this && this.__assign) || function () {
24
26
  return __assign.apply(this, arguments);
25
27
  };
26
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.FindAndReplaceDialog = void 0;
27
30
  var React = require("react");
28
31
  var kendo_react_buttons_1 = require("@progress/kendo-react-buttons");
29
32
  var kendo_react_dialogs_1 = require("@progress/kendo-react-dialogs");
@@ -120,7 +123,7 @@ var FindAndReplaceDialog = /** @class */ (function (_super) {
120
123
  _this.onSearchChange = function (e) { return _this.setNextState({ searchText: e.target.value }); };
121
124
  _this.onReplaceChange = function (e) { return _this.setNextState({ replaceText: e.target.value }); };
122
125
  _this.setNextState = function (next) {
123
- var nextState = __assign({}, _this.state, next, { matches: undefined, nextMatch: undefined });
126
+ var nextState = __assign(__assign(__assign({}, _this.state), next), { matches: undefined, nextMatch: undefined });
124
127
  var view = _this.props.view;
125
128
  if (nextState.searchText) {
126
129
  var text = nextState.searchText, matchWord = nextState.matchWord, matchCase = nextState.matchCase, useRegExp = nextState.useRegExp, matchCyclic = nextState.matchCyclic;
@@ -131,8 +134,7 @@ var FindAndReplaceDialog = /** @class */ (function (_super) {
131
134
  matches.find(function (match) { return match.from >= selection_1.from; }) ||
132
135
  (matchCyclic && matches[0]) ||
133
136
  undefined;
134
- _this.setState(__assign({}, nextState, { matches: matches,
135
- nextMatch: nextMatch }));
137
+ _this.setState(__assign(__assign({}, nextState), { matches: matches, nextMatch: nextMatch }));
136
138
  }
137
139
  else {
138
140
  _this.setState(nextState);
@@ -153,7 +155,7 @@ var FindAndReplaceDialog = /** @class */ (function (_super) {
153
155
  get: function () {
154
156
  return this.props.settings || settings;
155
157
  },
156
- enumerable: true,
158
+ enumerable: false,
157
159
  configurable: true
158
160
  });
159
161
  /**
@@ -22,7 +22,7 @@ export declare class InsertImageDialog extends React.Component<InsertImageDialog
22
22
  /**
23
23
  * @hidden
24
24
  */
25
- render(): {};
25
+ render(): React.ReactNode;
26
26
  private onClose;
27
27
  private onInsert;
28
28
  }
@@ -3,16 +3,19 @@ var __extends = (this && this.__extends) || (function () {
3
3
  var extendStatics = function (d, b) {
4
4
  extendStatics = Object.setPrototypeOf ||
5
5
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
7
  return extendStatics(d, b);
8
8
  };
9
9
  return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
10
12
  extendStatics(d, b);
11
13
  function __() { this.constructor = d; }
12
14
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
13
15
  };
14
16
  })();
15
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.InsertImageDialog = void 0;
16
19
  var React = require("react");
17
20
  var kendo_react_dialogs_1 = require("@progress/kendo-react-dialogs");
18
21
  var kendo_react_buttons_1 = require("@progress/kendo-react-buttons");