@progress/kendo-react-editor 5.4.0-dev.202205200719 → 5.4.0-dev.202206061009

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 (113) 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 +25 -11
  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.d.ts +6 -6
  8. package/dist/es/config/shortcuts.js +1 -1
  9. package/dist/es/config/toolsSettings.js +23 -14
  10. package/dist/es/dialogs/EditorDialogProps.js +1 -0
  11. package/dist/es/dialogs/FindReplace.d.ts +1 -1
  12. package/dist/es/dialogs/FindReplace.js +6 -5
  13. package/dist/es/dialogs/insertImage.d.ts +1 -1
  14. package/dist/es/dialogs/insertImage.js +13 -2
  15. package/dist/es/dialogs/insertLink.d.ts +1 -1
  16. package/dist/es/dialogs/insertLink.js +13 -2
  17. package/dist/es/dialogs/main.js +3 -1
  18. package/dist/es/dialogs/viewHtml.d.ts +1 -1
  19. package/dist/es/dialogs/viewHtml.js +13 -2
  20. package/dist/es/main.d.ts +3 -3
  21. package/dist/es/main.js +116 -29
  22. package/dist/es/messages/index.d.ts +78 -391
  23. package/dist/es/package-metadata.js +1 -1
  24. package/dist/es/tools/ToolProps.d.ts +4 -1
  25. package/dist/es/tools/ToolProps.js +1 -0
  26. package/dist/es/tools/align.js +7 -3
  27. package/dist/es/tools/cleanFormatting.js +5 -3
  28. package/dist/es/tools/findReplace.d.ts +1 -1
  29. package/dist/es/tools/findReplace.js +7 -3
  30. package/dist/es/tools/fontStyle.js +7 -3
  31. package/dist/es/tools/formatBlock.js +7 -3
  32. package/dist/es/tools/indent.js +7 -3
  33. package/dist/es/tools/inlineFormat.js +7 -3
  34. package/dist/es/tools/insertImage.js +7 -3
  35. package/dist/es/tools/insertLink.js +7 -3
  36. package/dist/es/tools/insertTable/popup.js +3 -1
  37. package/dist/es/tools/insertTable/popupGrid.js +4 -2
  38. package/dist/es/tools/insertTable/tool.js +7 -3
  39. package/dist/es/tools/lists-styled.js +13 -4
  40. package/dist/es/tools/lists.js +7 -3
  41. package/dist/es/tools/main.d.ts +113 -112
  42. package/dist/es/tools/main.js +3 -1
  43. package/dist/es/tools/outdent.js +7 -3
  44. package/dist/es/tools/pdf.js +6 -4
  45. package/dist/es/tools/print.js +5 -3
  46. package/dist/es/tools/proseMirrorTool.js +7 -3
  47. package/dist/es/tools/selectAll.js +5 -3
  48. package/dist/es/tools/tableEdit.d.ts +8 -8
  49. package/dist/es/tools/unlink.js +7 -3
  50. package/dist/es/tools/utils.d.ts +1 -1
  51. package/dist/es/tools/viewHtml.js +7 -3
  52. package/dist/es/utils/controlled-value.d.ts +1 -2
  53. package/dist/npm/Editor.d.ts +5 -5
  54. package/dist/npm/Editor.js +35 -20
  55. package/dist/npm/EditorProps.d.ts +1 -1
  56. package/dist/npm/config/defaultStyles.js +1 -0
  57. package/dist/npm/config/schema.js +3 -2
  58. package/dist/npm/config/shortcuts.d.ts +6 -6
  59. package/dist/npm/config/shortcuts.js +7 -5
  60. package/dist/npm/config/toolsSettings.js +24 -14
  61. package/dist/npm/dialogs/FindReplace.d.ts +1 -1
  62. package/dist/npm/dialogs/FindReplace.js +15 -13
  63. package/dist/npm/dialogs/insertImage.d.ts +1 -1
  64. package/dist/npm/dialogs/insertImage.js +17 -5
  65. package/dist/npm/dialogs/insertLink.d.ts +1 -1
  66. package/dist/npm/dialogs/insertLink.js +18 -6
  67. package/dist/npm/dialogs/main.js +4 -1
  68. package/dist/npm/dialogs/viewHtml.d.ts +1 -1
  69. package/dist/npm/dialogs/viewHtml.js +19 -7
  70. package/dist/npm/main.d.ts +3 -3
  71. package/dist/npm/main.js +121 -33
  72. package/dist/npm/messages/index.d.ts +78 -391
  73. package/dist/npm/messages/index.js +2 -1
  74. package/dist/npm/package-metadata.js +2 -1
  75. package/dist/npm/tools/ToolProps.d.ts +4 -1
  76. package/dist/npm/tools/align.js +14 -8
  77. package/dist/npm/tools/applyColor.js +5 -3
  78. package/dist/npm/tools/cleanFormatting.js +10 -6
  79. package/dist/npm/tools/findReplace.d.ts +1 -1
  80. package/dist/npm/tools/findReplace.js +10 -5
  81. package/dist/npm/tools/fontStyle.js +12 -7
  82. package/dist/npm/tools/formatBlock.js +12 -7
  83. package/dist/npm/tools/history.js +3 -2
  84. package/dist/npm/tools/indent.js +16 -11
  85. package/dist/npm/tools/inlineFormat.js +12 -7
  86. package/dist/npm/tools/insertImage.js +13 -7
  87. package/dist/npm/tools/insertLink.js +11 -6
  88. package/dist/npm/tools/insertTable/index.js +3 -2
  89. package/dist/npm/tools/insertTable/popup.js +4 -1
  90. package/dist/npm/tools/insertTable/popupGrid.js +5 -3
  91. package/dist/npm/tools/insertTable/tool.js +13 -8
  92. package/dist/npm/tools/lists-styled.js +18 -7
  93. package/dist/npm/tools/lists.js +12 -7
  94. package/dist/npm/tools/main.d.ts +113 -112
  95. package/dist/npm/tools/main.js +4 -1
  96. package/dist/npm/tools/outdent.js +14 -9
  97. package/dist/npm/tools/pdf.js +10 -6
  98. package/dist/npm/tools/print.js +9 -5
  99. package/dist/npm/tools/proseMirrorTool.js +12 -6
  100. package/dist/npm/tools/selectAll.js +10 -6
  101. package/dist/npm/tools/tableEdit.d.ts +8 -8
  102. package/dist/npm/tools/tableEdit.js +14 -13
  103. package/dist/npm/tools/unlink.js +12 -7
  104. package/dist/npm/tools/utils.d.ts +1 -1
  105. package/dist/npm/tools/utils.js +1 -0
  106. package/dist/npm/tools/viewHtml.js +10 -5
  107. package/dist/npm/utils/browser-detection.js +1 -0
  108. package/dist/npm/utils/controlled-value.d.ts +1 -2
  109. package/dist/npm/utils/controlled-value.js +3 -1
  110. package/dist/npm/utils/index.js +37 -36
  111. package/dist/npm/utils/props-key.js +1 -0
  112. package/dist/systemjs/kendo-react-editor.js +1 -1
  113. package/package.json +13 -13
@@ -10,7 +10,17 @@ 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, pack) {
14
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
15
+ if (ar || !(i in from)) {
16
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
17
+ ar[i] = from[i];
18
+ }
19
+ }
20
+ return to.concat(ar || Array.prototype.slice.call(from));
21
+ };
13
22
  Object.defineProperty(exports, "__esModule", { value: true });
23
+ exports.EditorToolsSettings = exports.listsTypes = void 0;
14
24
  var messages_1 = require("./../messages");
15
25
  var kendo_editor_common_1 = require("@progress/kendo-editor-common");
16
26
  /**
@@ -31,43 +41,43 @@ var EditorToolsSettings;
31
41
  /**
32
42
  * The object of the Bold tool settings.
33
43
  */
34
- EditorToolsSettings.bold = __assign({}, kendo_editor_common_1.bold, { props: __assign({ icon: 'bold' }, buttonCommonProps), messages: {
44
+ EditorToolsSettings.bold = __assign(__assign({}, kendo_editor_common_1.bold), { props: __assign({ icon: 'bold' }, buttonCommonProps), messages: {
35
45
  title: messages_1.keys.bold
36
46
  }, commandName: 'Bold' });
37
47
  /**
38
48
  * The object of the Italic tool settings.
39
49
  */
40
- EditorToolsSettings.italic = __assign({}, kendo_editor_common_1.italic, { props: __assign({ icon: 'italic' }, buttonCommonProps), messages: {
50
+ EditorToolsSettings.italic = __assign(__assign({}, kendo_editor_common_1.italic), { props: __assign({ icon: 'italic' }, buttonCommonProps), messages: {
41
51
  title: messages_1.keys.italic
42
52
  }, commandName: 'Italic' });
43
53
  /**
44
54
  * The object of the Underline tool settings.
45
55
  */
46
- EditorToolsSettings.underline = __assign({}, kendo_editor_common_1.underline, { props: __assign({ icon: 'underline' }, buttonCommonProps), messages: {
56
+ EditorToolsSettings.underline = __assign(__assign({}, kendo_editor_common_1.underline), { props: __assign({ icon: 'underline' }, buttonCommonProps), messages: {
47
57
  title: messages_1.keys.underline
48
58
  }, commandName: 'Underline' });
49
59
  /**
50
60
  * The object of the Strikethrough tool settings.
51
61
  */
52
- EditorToolsSettings.strikethrough = __assign({}, kendo_editor_common_1.strikethrough, { props: __assign({ icon: 'strikethrough' }, buttonCommonProps), messages: {
62
+ EditorToolsSettings.strikethrough = __assign(__assign({}, kendo_editor_common_1.strikethrough), { props: __assign({ icon: 'strikethrough' }, buttonCommonProps), messages: {
53
63
  title: messages_1.keys.strikethrough
54
64
  }, commandName: 'Strikethrough' });
55
65
  /**
56
66
  * The object of the Subscript tool settings.
57
67
  */
58
- EditorToolsSettings.subscript = __assign({}, kendo_editor_common_1.subscript, { props: __assign({ icon: 'subscript' }, buttonCommonProps), messages: {
68
+ EditorToolsSettings.subscript = __assign(__assign({}, kendo_editor_common_1.subscript), { props: __assign({ icon: 'subscript' }, buttonCommonProps), messages: {
59
69
  title: messages_1.keys.subscript
60
70
  }, commandName: 'Subscript' });
61
71
  /**
62
72
  * The object of the Superscript tool settings.
63
73
  */
64
- EditorToolsSettings.superscript = __assign({}, kendo_editor_common_1.superscript, { props: __assign({ icon: 'superscript' }, buttonCommonProps), messages: {
74
+ EditorToolsSettings.superscript = __assign(__assign({}, kendo_editor_common_1.superscript), { props: __assign({ icon: 'superscript' }, buttonCommonProps), messages: {
65
75
  title: messages_1.keys.superscript
66
76
  }, commandName: 'Superscript' });
67
77
  /**
68
78
  * The object of the Link tool settings.
69
79
  */
70
- EditorToolsSettings.link = __assign({}, kendo_editor_common_1.link, { props: __assign({ icon: 'link-horizontal' }, buttonCommonProps), messages: {
80
+ EditorToolsSettings.link = __assign(__assign({}, kendo_editor_common_1.link), { props: __assign({ icon: 'link-horizontal' }, buttonCommonProps), messages: {
71
81
  insertHyperlink: messages_1.keys.insertHyperlink,
72
82
  insertHyperlinkDialogTitle: messages_1.keys.insertHyperlinkDialogTitle,
73
83
  insertHyperlinkAddress: messages_1.keys.insertHyperlinkAddress,
@@ -79,7 +89,7 @@ var EditorToolsSettings;
79
89
  /**
80
90
  * The object of the Link tool settings.
81
91
  */
82
- EditorToolsSettings.insertFile = __assign({}, kendo_editor_common_1.link, { props: __assign({ icon: 'file-add' }, buttonCommonProps), messages: {
92
+ EditorToolsSettings.insertFile = __assign(__assign({}, kendo_editor_common_1.link), { props: __assign({ icon: 'file-add' }, buttonCommonProps), messages: {
83
93
  insertHyperlink: messages_1.keys.insertFile,
84
94
  insertHyperlinkDialogTitle: messages_1.keys.insertFileDialogTitle,
85
95
  insertHyperlinkAddress: messages_1.keys.insertFileAddress,
@@ -298,7 +308,7 @@ var EditorToolsSettings;
298
308
  /**
299
309
  * The object of the Unlink tool settings.
300
310
  */
301
- EditorToolsSettings.unlink = __assign({}, kendo_editor_common_1.link, { props: __assign({ icon: 'unlink-horizontal' }, buttonCommonProps), messages: {
311
+ EditorToolsSettings.unlink = __assign(__assign({}, kendo_editor_common_1.link), { props: __assign({ icon: 'unlink-horizontal' }, buttonCommonProps), messages: {
302
312
  title: messages_1.keys.unlink
303
313
  }, commandName: 'Unlink' });
304
314
  /**
@@ -410,7 +420,7 @@ var EditorToolsSettings;
410
420
  * The object of the AlignLeft tool settings.
411
421
  */
412
422
  EditorToolsSettings.alignLeft = {
413
- actions: kendo_editor_common_1.alignLeftRules.slice(),
423
+ actions: __spreadArray([], kendo_editor_common_1.alignLeftRules, true),
414
424
  props: __assign({ icon: 'align-left' }, buttonCommonProps),
415
425
  messages: {
416
426
  title: messages_1.keys.alignLeft
@@ -421,7 +431,7 @@ var EditorToolsSettings;
421
431
  * The object of the AlignRight tool settings.
422
432
  */
423
433
  EditorToolsSettings.alignRight = {
424
- actions: kendo_editor_common_1.alignRightRules.slice(),
434
+ actions: __spreadArray([], kendo_editor_common_1.alignRightRules, true),
425
435
  props: __assign({ icon: 'align-right' }, buttonCommonProps),
426
436
  messages: {
427
437
  title: messages_1.keys.alignRight
@@ -432,7 +442,7 @@ var EditorToolsSettings;
432
442
  * The object of the AlignCenter tool settings.
433
443
  */
434
444
  EditorToolsSettings.alignCenter = {
435
- actions: kendo_editor_common_1.alignCenterRules.slice(),
445
+ actions: __spreadArray([], kendo_editor_common_1.alignCenterRules, true),
436
446
  props: __assign({ icon: 'align-center' }, buttonCommonProps),
437
447
  messages: {
438
448
  title: messages_1.keys.alignCenter
@@ -443,7 +453,7 @@ var EditorToolsSettings;
443
453
  * The object of the AlignJustify tool settings.
444
454
  */
445
455
  EditorToolsSettings.alignJustify = {
446
- actions: kendo_editor_common_1.alignJustifyRules.slice(),
456
+ actions: __spreadArray([], kendo_editor_common_1.alignJustifyRules, true),
447
457
  props: __assign({ icon: 'align-justify' }, buttonCommonProps),
448
458
  messages: {
449
459
  title: messages_1.keys.alignJustify
@@ -454,7 +464,7 @@ var EditorToolsSettings;
454
464
  * The object of the AlignRemove tool settings.
455
465
  */
456
466
  EditorToolsSettings.alignRemove = {
457
- actions: kendo_editor_common_1.alignRemoveRules.slice(),
467
+ actions: __spreadArray([], kendo_editor_common_1.alignRemoveRules, true),
458
468
  props: __assign({ icon: 'align-remove' }, buttonCommonProps),
459
469
  messages: {},
460
470
  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");
@@ -63,7 +66,7 @@ var FindAndReplaceDialog = /** @class */ (function (_super) {
63
66
  cur = current === -1 ? matches.length : current + 1;
64
67
  all = matches.length;
65
68
  }
66
- return utils_1.formatString(locMessage, cur, all);
69
+ return (0, utils_1.formatString)(locMessage, cur, all);
67
70
  };
68
71
  _this.onFindNext = function () {
69
72
  _this.onFind();
@@ -76,7 +79,7 @@ var FindAndReplaceDialog = /** @class */ (function (_super) {
76
79
  var view = _this.props.view;
77
80
  var _a = _this.state, text = _a.searchText, matchCase = _a.matchCase, matchCyclic = _a.matchCyclic, matchWord = _a.matchWord, useRegExp = _a.useRegExp;
78
81
  var searchOptions = { text: text, matchWord: matchWord, matchCase: matchCase, useRegExp: useRegExp, backward: backward, matchCyclic: matchCyclic };
79
- var selectionResult = kendo_editor_common_1.find(view.state, searchOptions);
82
+ var selectionResult = (0, kendo_editor_common_1.find)(view.state, searchOptions);
80
83
  if (selectionResult) {
81
84
  var transaction = view.state.tr.setSelection(selectionResult);
82
85
  transaction.scrollIntoView();
@@ -91,7 +94,7 @@ var FindAndReplaceDialog = /** @class */ (function (_super) {
91
94
  if (!selection.empty) {
92
95
  var start = selection.from;
93
96
  var end = start + replaceText.length;
94
- var transaction = kendo_editor_common_1.replace(selection, replaceText, view.state.tr);
97
+ var transaction = (0, kendo_editor_common_1.replace)(selection, replaceText, view.state.tr);
95
98
  transaction.setSelection(kendo_editor_common_1.TextSelection.create(transaction.doc, start, end));
96
99
  transaction.scrollIntoView();
97
100
  view.dispatch(transaction);
@@ -102,7 +105,7 @@ var FindAndReplaceDialog = /** @class */ (function (_super) {
102
105
  var view = _this.props.view;
103
106
  var _a = _this.state, searchText = _a.searchText, replaceText = _a.replaceText, matchCase = _a.matchCase, matchWord = _a.matchWord, useRegExp = _a.useRegExp;
104
107
  var searchOptions = { text: searchText, matchWord: matchWord, matchCase: matchCase, useRegExp: useRegExp };
105
- view.dispatch(kendo_editor_common_1.replaceAll(view.state, replaceText, searchOptions));
108
+ view.dispatch((0, kendo_editor_common_1.replaceAll)(view.state, replaceText, searchOptions));
106
109
  _this.setNextState({});
107
110
  };
108
111
  _this.onKeyDown = function (event) {
@@ -120,19 +123,18 @@ 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;
127
130
  var searchOptions = { text: text, matchWord: matchWord, matchCase: matchCase, useRegExp: useRegExp };
128
131
  var selection_1 = view.state.selection;
129
- var matches = kendo_editor_common_1.findAll(view.state.doc, searchOptions);
132
+ var matches = (0, kendo_editor_common_1.findAll)(view.state.doc, searchOptions);
130
133
  var nextMatch = (!_this.state.searchText && matches[0]) ||
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);
@@ -140,7 +142,7 @@ var FindAndReplaceDialog = /** @class */ (function (_super) {
140
142
  };
141
143
  _this.state = {
142
144
  selectedTab: 0,
143
- searchText: kendo_editor_common_1.selectedLineTextOnly(props.view.state),
145
+ searchText: (0, kendo_editor_common_1.selectedLineTextOnly)(props.view.state),
144
146
  replaceText: '',
145
147
  matchCase: false,
146
148
  matchWord: false,
@@ -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
  /**
@@ -187,7 +189,7 @@ var FindAndReplaceDialog = /** @class */ (function (_super) {
187
189
  * @hidden
188
190
  */
189
191
  FindAndReplaceDialog.prototype.render = function () {
190
- var localization = kendo_react_intl_1.provideLocalizationService(this);
192
+ var localization = (0, kendo_react_intl_1.provideLocalizationService)(this);
191
193
  var _a = this.settings.messages, findReplaceDialogTitle = _a.findReplaceDialogTitle, findReplaceTabFind = _a.findReplaceTabFind, findReplaceTabReplace = _a.findReplaceTabReplace, findReplaceFindWhat = _a.findReplaceFindWhat, findReplaceReplaceWith = _a.findReplaceReplaceWith, findReplaceReplace = _a.findReplaceReplace, findReplaceReplaceAll = _a.findReplaceReplaceAll, findReplaceMatchCase = _a.findReplaceMatchCase, findReplaceMatchWord = _a.findReplaceMatchWord, findReplaceMatchCyclic = _a.findReplaceMatchCyclic, findReplaceUseRegExp = _a.findReplaceUseRegExp, findReplacePrevMatch = _a.findReplacePrevMatch, findReplaceNextMatch = _a.findReplaceNextMatch, findReplaceMatches = _a.findReplaceMatches;
192
194
  var _b = this.state, matchCase = _b.matchCase, matchWord = _b.matchWord, matchCyclic = _b.matchCyclic, useRegExp = _b.useRegExp, searchText = _b.searchText, replaceText = _b.replaceText, nextMatch = _b.nextMatch;
193
195
  var checkboxes = (React.createElement("div", { className: "k-search-options" },
@@ -240,4 +242,4 @@ var FindAndReplaceDialog = /** @class */ (function (_super) {
240
242
  return FindAndReplaceDialog;
241
243
  }(React.Component));
242
244
  exports.FindAndReplaceDialog = FindAndReplaceDialog;
243
- kendo_react_intl_1.registerForLocalization(FindAndReplaceDialog);
245
+ (0, kendo_react_intl_1.registerForLocalization)(FindAndReplaceDialog);
@@ -22,7 +22,7 @@ export declare class InsertImageDialog extends React.Component<InsertImageDialog
22
22
  /**
23
23
  * @hidden
24
24
  */
25
- render(): {};
25
+ render(): string | number | boolean | React.ReactFragment | JSX.Element | null | undefined;
26
26
  private onClose;
27
27
  private onInsert;
28
28
  }
@@ -3,16 +3,28 @@ 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
  })();
17
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
18
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
19
+ if (ar || !(i in from)) {
20
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
21
+ ar[i] = from[i];
22
+ }
23
+ }
24
+ return to.concat(ar || Array.prototype.slice.call(from));
25
+ };
15
26
  Object.defineProperty(exports, "__esModule", { value: true });
27
+ exports.InsertImageDialog = void 0;
16
28
  var React = require("react");
17
29
  var kendo_react_dialogs_1 = require("@progress/kendo-react-dialogs");
18
30
  var kendo_react_buttons_1 = require("@progress/kendo-react-buttons");
@@ -53,7 +65,7 @@ var InsertImageDialog = /** @class */ (function (_super) {
53
65
  return Object.assign(acc, (_a = {}, _a[curr] = data[curr], _a));
54
66
  }, {});
55
67
  var newImage = nodeType.createAndFill(attrs);
56
- var insertImageCmd = kendo_editor_common_1.insertNode(newImage, true);
68
+ var insertImageCmd = (0, kendo_editor_common_1.insertNode)(newImage, true);
57
69
  insertImageCmd(view.state, function (tr) { return view.dispatch(tr.setMeta('commandName', settings.commandName).setMeta('args', attrs)); });
58
70
  _this.onClose();
59
71
  };
@@ -66,7 +78,7 @@ var InsertImageDialog = /** @class */ (function (_super) {
66
78
  var _this = this;
67
79
  var _a = this.props, view = _a.view, settings = _a.settings, dir = _a.dir, render = _a.render;
68
80
  var _b = settings.messages, insertImageDialogTitle = _b.insertImageDialogTitle, insertImageAddress = _b.insertImageAddress, insertImageTitle = _b.insertImageTitle, insertImageAltText = _b.insertImageAltText, insertImageWidth = _b.insertImageWidth, insertImageHeight = _b.insertImageHeight, insertImageCancel = _b.insertImageCancel, insertImageInsert = _b.insertImageInsert;
69
- var localization = kendo_react_intl_1.provideLocalizationService(this);
81
+ var localization = (0, kendo_react_intl_1.provideLocalizationService)(this);
70
82
  var state = view && view.state;
71
83
  var attrs = {};
72
84
  if (state && state.selection instanceof kendo_editor_common_1.NodeSelection &&
@@ -97,10 +109,10 @@ var InsertImageDialog = /** @class */ (function (_super) {
97
109
  var actionButtons = [(React.createElement(kendo_react_buttons_1.Button, { onClick: this.onClose, dir: dir, key: "cancel" }, localization.toLanguageString(insertImageCancel, messages_1.messages[insertImageCancel]))), (React.createElement(kendo_react_buttons_1.Button, { onClick: this.onInsert, themeColor: 'primary', dir: dir, key: "insert" }, localization.toLanguageString(insertImageInsert, messages_1.messages[insertImageInsert])))];
98
110
  var dialog = (React.createElement(kendo_react_dialogs_1.Dialog, { title: localization.toLanguageString(insertImageDialogTitle, messages_1.messages[insertImageDialogTitle]), onClose: this.onClose, key: "dialog", closeIcon: true, dir: dir, style: dir === 'rtl' ? { textAlign: 'right' } : undefined, appendTo: document.body },
99
111
  content,
100
- React.createElement(kendo_react_dialogs_1.DialogActionsBar, null, actionButtons)));
112
+ React.createElement.apply(React, __spreadArray([kendo_react_dialogs_1.DialogActionsBar, null], actionButtons, false))));
101
113
  return render ? render(dialog, { content: content, actionButtons: actionButtons }) : dialog;
102
114
  };
103
115
  return InsertImageDialog;
104
116
  }(React.Component));
105
117
  exports.InsertImageDialog = InsertImageDialog;
106
- kendo_react_intl_1.registerForLocalization(InsertImageDialog);
118
+ (0, kendo_react_intl_1.registerForLocalization)(InsertImageDialog);
@@ -20,7 +20,7 @@ export declare class InsertLinkDialog extends React.Component<InsertLinkDialogPr
20
20
  /**
21
21
  * @hidden
22
22
  */
23
- render(): {};
23
+ render(): string | number | boolean | React.ReactFragment | JSX.Element | null | undefined;
24
24
  private onClose;
25
25
  private onInsert;
26
26
  }
@@ -3,16 +3,28 @@ 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
  })();
17
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
18
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
19
+ if (ar || !(i in from)) {
20
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
21
+ ar[i] = from[i];
22
+ }
23
+ }
24
+ return to.concat(ar || Array.prototype.slice.call(from));
25
+ };
15
26
  Object.defineProperty(exports, "__esModule", { value: true });
27
+ exports.InsertLinkDialog = void 0;
16
28
  var React = require("react");
17
29
  var kendo_react_dialogs_1 = require("@progress/kendo-react-dialogs");
18
30
  var kendo_react_buttons_1 = require("@progress/kendo-react-buttons");
@@ -41,7 +53,7 @@ var InsertLinkDialog = /** @class */ (function (_super) {
41
53
  title: _this.title ? _this.title.value : undefined,
42
54
  target: _this.target && _this.target.checked ? '_blank' : undefined
43
55
  };
44
- kendo_editor_common_1.applyLink({ mark: mark, attrs: attrs }, _this.props.settings.commandName)(view.state, view.dispatch);
56
+ (0, kendo_editor_common_1.applyLink)({ mark: mark, attrs: attrs }, _this.props.settings.commandName)(view.state, view.dispatch);
45
57
  _this.onClose();
46
58
  };
47
59
  return _this;
@@ -52,10 +64,10 @@ var InsertLinkDialog = /** @class */ (function (_super) {
52
64
  InsertLinkDialog.prototype.render = function () {
53
65
  var _this = this;
54
66
  var _a = this.props, view = _a.view, settings = _a.settings, dir = _a.dir, render = _a.render;
55
- var localization = kendo_react_intl_1.provideLocalizationService(this);
67
+ var localization = (0, kendo_react_intl_1.provideLocalizationService)(this);
56
68
  var _b = settings.messages, insertHyperlinkDialogTitle = _b.insertHyperlinkDialogTitle, insertHyperlinkAddress = _b.insertHyperlinkAddress, insertHyperlinkTitle = _b.insertHyperlinkTitle, insertHyperlinkNewWindow = _b.insertHyperlinkNewWindow, insertHyperlinkCancel = _b.insertHyperlinkCancel, insertHyperlinkInsert = _b.insertHyperlinkInsert;
57
69
  var linkMark = view ?
58
- kendo_editor_common_1.getMark(view.state, view.state.schema.marks[settings.mark])
70
+ (0, kendo_editor_common_1.getMark)(view.state, view.state.schema.marks[settings.mark])
59
71
  : false;
60
72
  var content = (React.createElement("div", { className: "k-edit-form-container" },
61
73
  React.createElement("div", { className: "k-edit-label" },
@@ -73,10 +85,10 @@ var InsertLinkDialog = /** @class */ (function (_super) {
73
85
  ];
74
86
  var dialog = (React.createElement(kendo_react_dialogs_1.Dialog, { title: localization.toLanguageString(insertHyperlinkDialogTitle, messages_1.messages[insertHyperlinkDialogTitle]), onClose: this.onClose, closeIcon: true, dir: dir, style: dir === 'rtl' ? { textAlign: 'right' } : undefined, appendTo: document.body },
75
87
  content,
76
- React.createElement(kendo_react_dialogs_1.DialogActionsBar, null, actionButtons)));
88
+ React.createElement.apply(React, __spreadArray([kendo_react_dialogs_1.DialogActionsBar, null], actionButtons, false))));
77
89
  return render ? render(dialog, { content: content, actionButtons: actionButtons }) : dialog;
78
90
  };
79
91
  return InsertLinkDialog;
80
92
  }(React.Component));
81
93
  exports.InsertLinkDialog = InsertLinkDialog;
82
- kendo_react_intl_1.registerForLocalization(InsertLinkDialog);
94
+ (0, kendo_react_intl_1.registerForLocalization)(InsertLinkDialog);
@@ -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.EditorDialogs = void 0;
16
19
  var insertLink_1 = require("./insertLink");
17
20
  var insertImage_1 = require("./insertImage");
18
21
  var viewHtml_1 = require("./viewHtml");
@@ -18,7 +18,7 @@ export declare class ViewHtmlDialog extends React.Component<ViewHtmlDialogProps>
18
18
  /**
19
19
  * @hidden
20
20
  */
21
- render(): {};
21
+ render(): string | number | boolean | React.ReactFragment | JSX.Element | null | undefined;
22
22
  private onUpdate;
23
23
  private onClose;
24
24
  }
@@ -3,16 +3,28 @@ 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
  })();
17
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
18
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
19
+ if (ar || !(i in from)) {
20
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
21
+ ar[i] = from[i];
22
+ }
23
+ }
24
+ return to.concat(ar || Array.prototype.slice.call(from));
25
+ };
15
26
  Object.defineProperty(exports, "__esModule", { value: true });
27
+ exports.ViewHtmlDialog = void 0;
16
28
  var React = require("react");
17
29
  var kendo_react_dialogs_1 = require("@progress/kendo-react-dialogs");
18
30
  var kendo_react_buttons_1 = require("@progress/kendo-react-buttons");
@@ -30,9 +42,9 @@ var ViewHtmlDialog = /** @class */ (function (_super) {
30
42
  _this.htmlArea = null;
31
43
  _this.onUpdate = function () {
32
44
  var _a = _this.props, view = _a.view, settings = _a.settings;
33
- var html = kendo_editor_common_1.trimWhitespace(_this.htmlArea ? _this.htmlArea.value : '');
45
+ var html = (0, kendo_editor_common_1.trimWhitespace)(_this.htmlArea ? _this.htmlArea.value : '');
34
46
  var preserveWhitespace = props_key_1.editorPropsKey.getState(view.state).preserveWhitespace;
35
- kendo_editor_common_1.setHtml(html, settings.commandName, { preserveWhitespace: preserveWhitespace })(view.state, view.dispatch);
47
+ (0, kendo_editor_common_1.setHtml)(html, settings.commandName, { preserveWhitespace: preserveWhitespace })(view.state, view.dispatch);
36
48
  _this.onClose();
37
49
  };
38
50
  _this.onClose = function () {
@@ -47,20 +59,20 @@ var ViewHtmlDialog = /** @class */ (function (_super) {
47
59
  ViewHtmlDialog.prototype.render = function () {
48
60
  var _this = this;
49
61
  var _a = this.props, view = _a.view, settings = _a.settings, dir = _a.dir, render = _a.render;
50
- var localization = kendo_react_intl_1.provideLocalizationService(this);
62
+ var localization = (0, kendo_react_intl_1.provideLocalizationService)(this);
51
63
  var _b = settings.messages, viewHtmlDialogTitle = _b.viewHtmlDialogTitle, viewHtmlCancel = _b.viewHtmlCancel, viewHtmlUpdate = _b.viewHtmlUpdate;
52
64
  var content = (React.createElement("textarea", { className: "k-textarea k-editor-textarea", style: {
53
65
  height: '280px',
54
66
  width: '490px'
55
- }, ref: function (e) { return _this.htmlArea = e; }, defaultValue: kendo_editor_common_1.indentHtml(kendo_editor_common_1.getHtml(view.state)), autoFocus: true }));
67
+ }, ref: function (e) { return _this.htmlArea = e; }, defaultValue: (0, kendo_editor_common_1.indentHtml)((0, kendo_editor_common_1.getHtml)(view.state)), autoFocus: true }));
56
68
  var actionButtons = [(React.createElement(kendo_react_buttons_1.Button, { onClick: this.onClose, dir: dir, key: "cancel" }, localization.toLanguageString(viewHtmlCancel, messages_1.messages[viewHtmlCancel]))), (React.createElement(kendo_react_buttons_1.Button, { onClick: this.onUpdate, themeColor: 'primary', dir: dir, key: "update" }, localization.toLanguageString(viewHtmlUpdate, messages_1.messages[viewHtmlUpdate])))
57
69
  ];
58
70
  var dialog = (React.createElement(kendo_react_dialogs_1.Dialog, { title: localization.toLanguageString(viewHtmlDialogTitle, messages_1.messages[viewHtmlDialogTitle]), onClose: this.onClose, key: "dialog", closeIcon: true, dir: dir, style: dir === 'rtl' ? { textAlign: 'right' } : undefined, appendTo: document.body },
59
71
  content,
60
- React.createElement(kendo_react_dialogs_1.DialogActionsBar, null, actionButtons)));
72
+ React.createElement.apply(React, __spreadArray([kendo_react_dialogs_1.DialogActionsBar, null], actionButtons, false))));
61
73
  return render ? render(dialog, { content: content, actionButtons: actionButtons }) : dialog;
62
74
  };
63
75
  return ViewHtmlDialog;
64
76
  }(React.Component));
65
77
  exports.ViewHtmlDialog = ViewHtmlDialog;
66
- kendo_react_intl_1.registerForLocalization(ViewHtmlDialog);
78
+ (0, kendo_react_intl_1.registerForLocalization)(ViewHtmlDialog);
@@ -1,5 +1,5 @@
1
1
  /// <reference types="prosemirror-model" />
2
- import Editor from './Editor';
2
+ import { Editor } from './Editor';
3
3
  import { EditorProps, EditorMountEvent, EditorPasteEvent, EditorChangeEvent, EditorExecuteEvent, EditorFocusEvent, EditorBlurEvent } from './EditorProps';
4
4
  import { EditorTools } from './tools/main';
5
5
  import { EditorToolsSettings } from './config/toolsSettings';
@@ -150,8 +150,8 @@ export declare const ProseMirror: {
150
150
  deleteColumn: typeof deleteColumn;
151
151
  rowIsHeader: typeof rowIsHeader;
152
152
  addRow: typeof addRow;
153
- addRowBefore: (state: EditorState<any>, dispatch?: (tr: Transaction<any>) => void) => boolean;
154
- addRowAfter: (state: EditorState<any>, dispatch?: (tr: Transaction<any>) => void) => boolean;
153
+ addRowBefore: (state: EditorState<any>, dispatch?: ((tr: Transaction<any>) => void) | undefined) => boolean;
154
+ addRowAfter: (state: EditorState<any>, dispatch?: ((tr: Transaction<any>) => void) | undefined) => boolean;
155
155
  deleteRow: typeof deleteRow;
156
156
  mergeCells: typeof mergeCells;
157
157
  splitCell: typeof splitCell;