@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.
- package/dist/cdn/js/kendo-react-editor.js +1 -1
- package/dist/es/Editor.d.ts +5 -5
- package/dist/es/Editor.js +16 -9
- package/dist/es/EditorProps.d.ts +1 -1
- package/dist/es/EditorProps.js +1 -0
- package/dist/es/config/pasteSettings.js +1 -0
- package/dist/es/config/shortcuts.js +1 -1
- package/dist/es/config/toolsSettings.js +19 -14
- package/dist/es/dialogs/EditorDialogProps.js +1 -0
- package/dist/es/dialogs/FindReplace.d.ts +1 -1
- package/dist/es/dialogs/FindReplace.js +6 -5
- package/dist/es/dialogs/insertImage.d.ts +1 -1
- package/dist/es/dialogs/insertImage.js +3 -1
- package/dist/es/dialogs/insertLink.d.ts +1 -1
- package/dist/es/dialogs/insertLink.js +3 -1
- package/dist/es/dialogs/main.js +3 -1
- package/dist/es/dialogs/viewHtml.d.ts +1 -1
- package/dist/es/dialogs/viewHtml.js +3 -1
- package/dist/es/main.d.ts +1 -1
- package/dist/es/main.js +116 -29
- package/dist/es/messages/index.d.ts +78 -391
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/tools/ToolProps.d.ts +4 -1
- package/dist/es/tools/ToolProps.js +1 -0
- package/dist/es/tools/align.js +7 -3
- package/dist/es/tools/cleanFormatting.js +4 -2
- package/dist/es/tools/findReplace.js +7 -3
- package/dist/es/tools/fontStyle.js +7 -3
- package/dist/es/tools/formatBlock.js +7 -3
- package/dist/es/tools/indent.js +7 -3
- package/dist/es/tools/inlineFormat.js +7 -3
- package/dist/es/tools/insertImage.js +7 -3
- package/dist/es/tools/insertLink.js +7 -3
- package/dist/es/tools/insertTable/popup.js +3 -1
- package/dist/es/tools/insertTable/popupGrid.js +3 -1
- package/dist/es/tools/insertTable/tool.js +7 -3
- package/dist/es/tools/lists-styled.js +9 -4
- package/dist/es/tools/lists.js +7 -3
- package/dist/es/tools/main.d.ts +113 -112
- package/dist/es/tools/main.js +3 -1
- package/dist/es/tools/outdent.js +7 -3
- package/dist/es/tools/pdf.js +5 -3
- package/dist/es/tools/print.js +4 -2
- package/dist/es/tools/proseMirrorTool.js +7 -3
- package/dist/es/tools/selectAll.js +4 -2
- package/dist/es/tools/tableEdit.d.ts +8 -8
- package/dist/es/tools/unlink.js +7 -3
- package/dist/es/tools/utils.d.ts +1 -1
- package/dist/es/tools/viewHtml.js +7 -3
- package/dist/es/utils/controlled-value.d.ts +1 -2
- package/dist/npm/Editor.d.ts +5 -5
- package/dist/npm/Editor.js +17 -9
- package/dist/npm/EditorProps.d.ts +1 -1
- package/dist/npm/config/defaultStyles.js +1 -0
- package/dist/npm/config/schema.js +3 -2
- package/dist/npm/config/shortcuts.js +4 -2
- package/dist/npm/config/toolsSettings.js +20 -14
- package/dist/npm/dialogs/FindReplace.d.ts +1 -1
- package/dist/npm/dialogs/FindReplace.js +7 -5
- package/dist/npm/dialogs/insertImage.d.ts +1 -1
- package/dist/npm/dialogs/insertImage.js +4 -1
- package/dist/npm/dialogs/insertLink.d.ts +1 -1
- package/dist/npm/dialogs/insertLink.js +4 -1
- package/dist/npm/dialogs/main.js +4 -1
- package/dist/npm/dialogs/viewHtml.d.ts +1 -1
- package/dist/npm/dialogs/viewHtml.js +4 -1
- package/dist/npm/main.d.ts +1 -1
- package/dist/npm/main.js +121 -33
- package/dist/npm/messages/index.d.ts +78 -391
- package/dist/npm/messages/index.js +2 -1
- package/dist/npm/package-metadata.js +2 -1
- package/dist/npm/tools/ToolProps.d.ts +4 -1
- package/dist/npm/tools/align.js +10 -4
- package/dist/npm/tools/applyColor.js +3 -1
- package/dist/npm/tools/cleanFormatting.js +7 -3
- package/dist/npm/tools/findReplace.js +8 -3
- package/dist/npm/tools/fontStyle.js +8 -3
- package/dist/npm/tools/formatBlock.js +8 -3
- package/dist/npm/tools/history.js +1 -0
- package/dist/npm/tools/indent.js +8 -3
- package/dist/npm/tools/inlineFormat.js +8 -3
- package/dist/npm/tools/insertImage.js +10 -4
- package/dist/npm/tools/insertLink.js +8 -3
- package/dist/npm/tools/insertTable/index.js +3 -2
- package/dist/npm/tools/insertTable/popup.js +4 -1
- package/dist/npm/tools/insertTable/popupGrid.js +3 -1
- package/dist/npm/tools/insertTable/tool.js +8 -3
- package/dist/npm/tools/lists-styled.js +12 -5
- package/dist/npm/tools/lists.js +8 -3
- package/dist/npm/tools/main.d.ts +113 -112
- package/dist/npm/tools/main.js +4 -1
- package/dist/npm/tools/outdent.js +8 -3
- package/dist/npm/tools/pdf.js +8 -4
- package/dist/npm/tools/print.js +7 -3
- package/dist/npm/tools/proseMirrorTool.js +10 -4
- package/dist/npm/tools/selectAll.js +7 -3
- package/dist/npm/tools/tableEdit.d.ts +8 -8
- package/dist/npm/tools/tableEdit.js +1 -0
- package/dist/npm/tools/unlink.js +8 -3
- package/dist/npm/tools/utils.d.ts +1 -1
- package/dist/npm/tools/utils.js +1 -0
- package/dist/npm/tools/viewHtml.js +8 -3
- package/dist/npm/utils/browser-detection.js +1 -0
- package/dist/npm/utils/controlled-value.d.ts +1 -2
- package/dist/npm/utils/controlled-value.js +3 -1
- package/dist/npm/utils/index.js +1 -0
- package/dist/npm/utils/props-key.js +1 -0
- package/dist/systemjs/kendo-react-editor.js +1 -1
- 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 (
|
|
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++)
|
|
31
|
-
|
|
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 (
|
|
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++)
|
|
31
|
-
|
|
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 (
|
|
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++)
|
|
31
|
-
|
|
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 (
|
|
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 (
|
|
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 (
|
|
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++)
|
|
31
|
-
|
|
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 || [])
|
|
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 })));
|
package/dist/es/tools/lists.js
CHANGED
|
@@ -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 (
|
|
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++)
|
|
31
|
-
|
|
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';
|