@progress/kendo-react-editor 5.4.0-dev.202205180853 → 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 __());
@@ -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';
@@ -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';
@@ -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';
@@ -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 __());
@@ -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';
@@ -9,6 +9,11 @@ var __assign = (this && this.__assign) || function () {
9
9
  };
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
+ var __spreadArray = (this && this.__spreadArray) || function (to, from) {
13
+ for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
14
+ to[j] = from[i];
15
+ return to;
16
+ };
12
17
  import * as React from 'react';
13
18
  import { toggleList, listStyle } from '@progress/kendo-editor-common';
14
19
  import { SplitButton } from '@progress/kendo-react-buttons';
@@ -30,7 +35,7 @@ export var ListTool = function (props) {
30
35
  var view = props.view;
31
36
  var types = listsTypes;
32
37
  var listType = props.listType;
33
- var items = (props.items || []).slice();
38
+ var items = __spreadArray([], (props.items || []));
34
39
  var ol, ul;
35
40
  if (view) {
36
41
  var state = view.state;
@@ -41,7 +46,7 @@ export var ListTool = function (props) {
41
46
  }
42
47
  var onButtonClick = function (_event) {
43
48
  if (view) {
44
- toggleList(view.state, view.dispatch, view, __assign({ listType: listType }, types, { listAttrs: {} }), 'InsertList');
49
+ toggleList(view.state, view.dispatch, view, __assign(__assign({ listType: listType }, types), { listAttrs: {} }), 'InsertList');
45
50
  view.focus();
46
51
  }
47
52
  };
@@ -54,14 +59,14 @@ export var ListTool = function (props) {
54
59
  view.dispatch(view.state.tr.setNodeMarkup(pos, view.state.schema.nodes[listType], listAttrs));
55
60
  }
56
61
  else {
57
- toggleList(view.state, view.dispatch, view, __assign({ listType: listType }, types, { listAttrs: listAttrs }), 'InsertList');
62
+ toggleList(view.state, view.dispatch, view, __assign(__assign({ listType: listType }, types), { listAttrs: listAttrs }), 'InsertList');
58
63
  }
59
64
  view.focus();
60
65
  }
61
66
  };
62
67
  if (isActive && (ol || ul)) {
63
68
  var listStyleType_1 = listStyle((ol || ul).attrs);
64
- items = items.map(function (item, index) { return (__assign({}, item, { selected: listStyleType_1 ? item.style === listStyleType_1 : index === 0 })); });
69
+ items = items.map(function (item, index) { return (__assign(__assign({}, item), { selected: listStyleType_1 ? item.style === listStyleType_1 : index === 0 })); });
65
70
  }
66
71
  return (React.createElement("span", { onMouseDown: function (e) { e.preventDefault(); } },
67
72
  React.createElement(SplitButton, { textField: "text", items: items, icon: props.icon, onButtonClick: onButtonClick, onItemClick: onItemClick, buttonClass: isActive ? 'k-selected' : undefined })));
@@ -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';