@progress/kendo-editor-common 1.11.9-dev.202412020819 → 1.11.9-develop.1

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 (185) hide show
  1. package/dist/cdn/main.js +1 -1
  2. package/dist/es/DOMSerializer.js +71 -75
  3. package/dist/es/align.js +19 -16
  4. package/dist/es/blockNode.js +76 -78
  5. package/dist/es/blockquote.js +12 -9
  6. package/dist/es/cleanFormatting.js +16 -16
  7. package/dist/es/config/align-rules.js +8 -6
  8. package/dist/es/config/commands.js +9 -13
  9. package/dist/es/config/constants.js +9 -7
  10. package/dist/es/config/indent-rules.js +8 -6
  11. package/dist/es/config/keymap.js +20 -18
  12. package/dist/es/config/list-settings.js +7 -6
  13. package/dist/es/config/schema.js +184 -126
  14. package/dist/es/find-replace.js +34 -32
  15. package/dist/es/image.js +10 -7
  16. package/dist/es/indent.js +47 -44
  17. package/dist/es/inline-style.js +72 -70
  18. package/dist/es/link.js +51 -52
  19. package/dist/es/listConvert.js +37 -34
  20. package/dist/es/lists.js +83 -82
  21. package/dist/es/main.js +32 -33
  22. package/dist/es/mark.js +87 -92
  23. package/dist/es/paste.js +48 -46
  24. package/dist/es/plugins/caret-color.js +14 -11
  25. package/dist/es/plugins/csp-fix.js +23 -23
  26. package/dist/es/plugins/highlight.js +12 -10
  27. package/dist/es/plugins/image-resize.js +81 -81
  28. package/dist/es/plugins/list-markers-styles.js +43 -39
  29. package/dist/es/plugins/placeholder.js +12 -9
  30. package/dist/es/plugins/resize-utils.js +11 -9
  31. package/dist/es/plugins/spaces-fix.js +13 -10
  32. package/dist/es/plugins/table-resize/column-resize.js +104 -102
  33. package/dist/es/plugins/table-resize/index.js +10 -7
  34. package/dist/es/plugins/table-resize/row-resize.js +88 -89
  35. package/dist/es/plugins/table-resize/table-resize.js +129 -122
  36. package/dist/es/plugins/table-resize/table-view.js +46 -48
  37. package/dist/es/plugins/table-resize/utils.js +39 -41
  38. package/dist/es/source.js +78 -74
  39. package/dist/es/table.js +64 -66
  40. package/dist/es/text.js +4 -2
  41. package/dist/es/utils.js +107 -116
  42. package/dist/es2015/DOMSerializer.js +20 -17
  43. package/dist/es2015/align.js +6 -3
  44. package/dist/es2015/blockNode.js +15 -12
  45. package/dist/es2015/blockquote.js +5 -2
  46. package/dist/es2015/cleanFormatting.js +6 -3
  47. package/dist/es2015/config/align-rules.js +7 -5
  48. package/dist/es2015/config/commands.js +9 -13
  49. package/dist/es2015/config/constants.js +9 -7
  50. package/dist/es2015/config/indent-rules.js +6 -3
  51. package/dist/es2015/config/keymap.js +10 -7
  52. package/dist/es2015/config/list-settings.js +5 -3
  53. package/dist/es2015/config/schema.js +8 -6
  54. package/dist/es2015/find-replace.js +9 -6
  55. package/dist/es2015/image.js +5 -2
  56. package/dist/es2015/indent.js +14 -11
  57. package/dist/es2015/inline-style.js +9 -6
  58. package/dist/es2015/link.js +7 -4
  59. package/dist/es2015/listConvert.js +5 -2
  60. package/dist/es2015/lists.js +14 -11
  61. package/dist/es2015/main.js +32 -33
  62. package/dist/es2015/mark.js +15 -12
  63. package/dist/es2015/node_modules/tslib/tslib.es6.js +35 -0
  64. package/dist/es2015/paste.js +14 -11
  65. package/dist/es2015/plugins/caret-color.js +8 -5
  66. package/dist/es2015/plugins/csp-fix.js +5 -2
  67. package/dist/es2015/plugins/highlight.js +6 -3
  68. package/dist/es2015/plugins/image-resize.js +10 -7
  69. package/dist/es2015/plugins/list-markers-styles.js +6 -3
  70. package/dist/es2015/plugins/placeholder.js +5 -2
  71. package/dist/es2015/plugins/resize-utils.js +11 -9
  72. package/dist/es2015/plugins/spaces-fix.js +4 -1
  73. package/dist/es2015/plugins/table-resize/column-resize.js +24 -21
  74. package/dist/es2015/plugins/table-resize/index.js +9 -6
  75. package/dist/es2015/plugins/table-resize/row-resize.js +23 -20
  76. package/dist/es2015/plugins/table-resize/table-resize.js +20 -17
  77. package/dist/es2015/plugins/table-resize/table-view.js +9 -6
  78. package/dist/es2015/plugins/table-resize/utils.js +13 -10
  79. package/dist/es2015/source.js +24 -13
  80. package/dist/es2015/table.js +18 -15
  81. package/dist/es2015/text.js +3 -1
  82. package/dist/es2015/utils.js +22 -25
  83. package/dist/npm/DOMSerializer.js +73 -78
  84. package/dist/npm/align.d.ts +7 -4
  85. package/dist/npm/align.js +22 -21
  86. package/dist/npm/blockNode.d.ts +14 -15
  87. package/dist/npm/blockNode.js +91 -95
  88. package/dist/npm/blockquote.d.ts +5 -2
  89. package/dist/npm/blockquote.js +16 -15
  90. package/dist/npm/cleanFormatting.d.ts +6 -3
  91. package/dist/npm/cleanFormatting.js +17 -19
  92. package/dist/npm/config/align-rules.d.ts +8 -6
  93. package/dist/npm/config/align-rules.js +14 -9
  94. package/dist/npm/config/commands.d.ts +11 -19
  95. package/dist/npm/config/commands.js +17 -16
  96. package/dist/npm/config/constants.js +17 -10
  97. package/dist/npm/config/indent-rules.d.ts +6 -4
  98. package/dist/npm/config/indent-rules.js +11 -9
  99. package/dist/npm/config/keymap.d.ts +5 -2
  100. package/dist/npm/config/keymap.js +30 -30
  101. package/dist/npm/config/list-settings.js +13 -11
  102. package/dist/npm/config/schema.d.ts +4 -3
  103. package/dist/npm/config/schema.js +191 -134
  104. package/dist/npm/find-replace.d.ts +10 -7
  105. package/dist/npm/find-replace.js +47 -47
  106. package/dist/npm/image.d.ts +6 -3
  107. package/dist/npm/image.js +11 -10
  108. package/dist/npm/indent.d.ts +12 -9
  109. package/dist/npm/indent.js +68 -67
  110. package/dist/npm/inline-style.d.ts +7 -4
  111. package/dist/npm/inline-style.js +83 -83
  112. package/dist/npm/link.d.ts +4 -2
  113. package/dist/npm/link.js +58 -61
  114. package/dist/npm/listConvert.d.ts +3 -1
  115. package/dist/npm/listConvert.js +40 -39
  116. package/dist/npm/lists.d.ts +9 -9
  117. package/dist/npm/lists.js +94 -95
  118. package/dist/npm/main.d.ts +34 -33
  119. package/dist/npm/main.js +388 -198
  120. package/dist/npm/mark.d.ts +13 -18
  121. package/dist/npm/mark.js +104 -111
  122. package/dist/npm/paste.d.ts +12 -9
  123. package/dist/npm/paste.js +61 -61
  124. package/dist/npm/plugins/caret-color.d.ts +6 -3
  125. package/dist/npm/plugins/caret-color.js +21 -19
  126. package/dist/npm/plugins/csp-fix.d.ts +4 -1
  127. package/dist/npm/plugins/csp-fix.js +28 -30
  128. package/dist/npm/plugins/highlight.d.ts +7 -4
  129. package/dist/npm/plugins/highlight.js +17 -16
  130. package/dist/npm/plugins/image-resize.d.ts +7 -5
  131. package/dist/npm/plugins/image-resize.js +96 -97
  132. package/dist/npm/plugins/list-markers-styles.d.ts +5 -2
  133. package/dist/npm/plugins/list-markers-styles.js +49 -47
  134. package/dist/npm/plugins/placeholder.d.ts +4 -1
  135. package/dist/npm/plugins/placeholder.js +18 -17
  136. package/dist/npm/plugins/resize-utils.js +14 -12
  137. package/dist/npm/plugins/spaces-fix.d.ts +4 -1
  138. package/dist/npm/plugins/spaces-fix.js +19 -18
  139. package/dist/npm/plugins/table-resize/column-resize.js +117 -117
  140. package/dist/npm/plugins/table-resize/index.d.ts +5 -2
  141. package/dist/npm/plugins/table-resize/index.js +16 -15
  142. package/dist/npm/plugins/table-resize/row-resize.js +98 -101
  143. package/dist/npm/plugins/table-resize/table-resize.js +144 -139
  144. package/dist/npm/plugins/table-resize/table-view.js +59 -61
  145. package/dist/npm/plugins/table-resize/utils.d.ts +7 -17
  146. package/dist/npm/plugins/table-resize/utils.js +51 -52
  147. package/dist/npm/source.d.ts +18 -11
  148. package/dist/npm/source.js +94 -91
  149. package/dist/npm/table.d.ts +10 -9
  150. package/dist/npm/table.js +93 -82
  151. package/dist/npm/text.d.ts +6 -3
  152. package/dist/npm/text.js +5 -5
  153. package/dist/npm/types/active-marks.d.ts +4 -1
  154. package/dist/npm/types/command.d.ts +5 -2
  155. package/dist/npm/types/dispatchFn.d.ts +4 -1
  156. package/dist/npm/types/paste-cleanup-settings.d.ts +3 -1
  157. package/dist/npm/utils.d.ts +13 -32
  158. package/dist/npm/utils.js +133 -145
  159. package/package.json +34 -52
  160. package/dist/cdn/js/kendo-editor-common.js +0 -1
  161. package/dist/es/types/active-marks.js +0 -1
  162. package/dist/es/types/command.js +0 -1
  163. package/dist/es/types/dispatchFn.js +0 -1
  164. package/dist/es/types/paste-cleanup-settings.js +0 -1
  165. package/dist/es/types/predicate.js +0 -1
  166. package/dist/es2015/types/active-marks.js +0 -1
  167. package/dist/es2015/types/command.js +0 -1
  168. package/dist/es2015/types/dispatchFn.js +0 -1
  169. package/dist/es2015/types/paste-cleanup-settings.js +0 -1
  170. package/dist/es2015/types/predicate.js +0 -1
  171. package/dist/npm/DOMSerializer.d.ts +0 -35
  172. package/dist/npm/config/constants.d.ts +0 -7
  173. package/dist/npm/config/list-settings.d.ts +0 -30
  174. package/dist/npm/plugins/resize-utils.d.ts +0 -35
  175. package/dist/npm/plugins/table-resize/column-resize.d.ts +0 -2
  176. package/dist/npm/plugins/table-resize/row-resize.d.ts +0 -2
  177. package/dist/npm/plugins/table-resize/table-resize.d.ts +0 -18
  178. package/dist/npm/plugins/table-resize/table-view.d.ts +0 -28
  179. package/dist/npm/types/active-marks.js +0 -2
  180. package/dist/npm/types/command.js +0 -2
  181. package/dist/npm/types/dispatchFn.js +0 -2
  182. package/dist/npm/types/paste-cleanup-settings.js +0 -2
  183. package/dist/npm/types/predicate.d.ts +0 -1
  184. package/dist/npm/types/predicate.js +0 -2
  185. package/dist/systemjs/kendo-editor-common.js +0 -1
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * The setting of the IndentAction tool.
3
3
  */
4
- export interface IndentRule {
4
+ interface IndentRule {
5
5
  node: string;
6
6
  style: string;
7
7
  rtlStyle: string;
@@ -11,7 +11,7 @@ export interface IndentRule {
11
11
  /**
12
12
  * The settings of the tool which applies indentation.
13
13
  */
14
- export interface IndentationRules {
14
+ interface IndentationRules {
15
15
  nodes: Array<IndentRule>;
16
16
  /**
17
17
  * The list node types of the Indent and Outdent tools.
@@ -25,8 +25,10 @@ export interface IndentationRules {
25
25
  /**
26
26
  * The object of the Indent tool settings.
27
27
  */
28
- export declare const indentRules: IndentationRules;
28
+ declare const indentRules: IndentationRules;
29
29
  /**
30
30
  * The object of the Outdent tool settings.
31
31
  */
32
- export declare const outdentRules: IndentationRules;
32
+ declare const outdentRules: IndentationRules;
33
+
34
+ export { type IndentRule, type IndentationRules, indentRules, outdentRules };
@@ -1,12 +1,11 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.outdentRules = exports.indentRules = void 0;
4
- var tslib_1 = require("tslib");
5
- var list_settings_1 = require("./list-settings");
1
+ 'use strict';
2
+
3
+ var listSettings = require('./list-settings.js');
4
+
6
5
  /**
7
6
  * The object of the Indent tool settings.
8
7
  */
9
- exports.indentRules = {
8
+ const indentRules = {
10
9
  nodes: [{
11
10
  node: 'paragraph',
12
11
  style: 'margin-left',
@@ -20,12 +19,12 @@ exports.indentRules = {
20
19
  step: 30,
21
20
  unit: 'px'
22
21
  }],
23
- listsTypes: tslib_1.__assign({}, list_settings_1.listsTypes)
22
+ listsTypes: { ...listSettings.listsTypes }
24
23
  };
25
24
  /**
26
25
  * The object of the Outdent tool settings.
27
26
  */
28
- exports.outdentRules = {
27
+ const outdentRules = {
29
28
  nodes: [{
30
29
  node: 'paragraph',
31
30
  style: 'margin-left',
@@ -39,5 +38,8 @@ exports.outdentRules = {
39
38
  step: -30,
40
39
  unit: 'px'
41
40
  }],
42
- listsTypes: tslib_1.__assign({}, list_settings_1.listsTypes)
41
+ listsTypes: { ...listSettings.listsTypes }
43
42
  };
43
+
44
+ exports.indentRules = indentRules;
45
+ exports.outdentRules = outdentRules;
@@ -1,3 +1,6 @@
1
1
  import { Schema } from 'prosemirror-model';
2
- export declare const buildKeymap: (schema: Schema, options?: any) => any;
3
- export declare const buildListKeymap: (schema: Schema) => any;
2
+
3
+ declare const buildKeymap: (schema: Schema, options?: any) => any;
4
+ declare const buildListKeymap: (schema: Schema) => any;
5
+
6
+ export { buildKeymap, buildListKeymap };
@@ -1,54 +1,54 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.buildListKeymap = exports.buildKeymap = void 0;
4
- var tslib_1 = require("tslib");
5
- var prosemirror_commands_1 = require("prosemirror-commands");
6
- var prosemirror_history_1 = require("prosemirror-history");
7
- var prosemirror_inputrules_1 = require("prosemirror-inputrules");
8
- var lists_1 = require("../lists");
9
- var commands_1 = require("./commands");
10
- var inline_style_1 = require("./../inline-style");
11
- var utils_1 = require("../utils");
12
- var mac = typeof navigator !== 'undefined' ? /Mac/.test(navigator.platform) : false;
1
+ 'use strict';
2
+
3
+ var prosemirrorCommands = require('prosemirror-commands');
4
+ var prosemirrorHistory = require('prosemirror-history');
5
+ var prosemirrorInputrules = require('prosemirror-inputrules');
6
+ var lists = require('../lists.js');
7
+ var commands = require('./commands.js');
8
+ var inlineStyle = require('../inline-style.js');
9
+ var utils = require('../utils.js');
10
+
11
+ const mac = typeof navigator !== 'undefined' ? /Mac/.test(navigator.platform) : false;
13
12
  // https://github.com/ProseMirror/prosemirror-example-setup/blob/master/src/keymap.js
14
- var buildKeymap = function (schema, options) {
15
- var keys = {};
16
- var applyToWord = (options && options.applyToWord) || false;
17
- keys['Mod-z'] = prosemirror_history_1.undo;
18
- keys['Shift-Mod-z'] = prosemirror_history_1.redo;
13
+ const buildKeymap = (schema, options) => {
14
+ const keys = {};
15
+ const applyToWord = (options && options.applyToWord) || false;
16
+ keys['Mod-z'] = prosemirrorHistory.undo;
17
+ keys['Shift-Mod-z'] = prosemirrorHistory.redo;
19
18
  // tslint:disable-next-line:no-string-literal
20
- keys.Backspace = (0, prosemirror_commands_1.chainCommands)(prosemirror_inputrules_1.undoInputRule, prosemirror_commands_1.deleteSelection, prosemirror_commands_1.joinBackward, prosemirror_commands_1.selectNodeBackward);
19
+ keys.Backspace = prosemirrorCommands.chainCommands(prosemirrorInputrules.undoInputRule, prosemirrorCommands.deleteSelection, prosemirrorCommands.joinBackward, prosemirrorCommands.selectNodeBackward);
21
20
  // tslint:disable-next-line:no-string-literal
22
- keys.Enter = (0, prosemirror_commands_1.chainCommands)(prosemirror_commands_1.newlineInCode, prosemirror_commands_1.createParagraphNear, prosemirror_commands_1.liftEmptyBlock, prosemirror_commands_1.splitBlockKeepMarks);
21
+ keys.Enter = prosemirrorCommands.chainCommands(prosemirrorCommands.newlineInCode, prosemirrorCommands.createParagraphNear, prosemirrorCommands.liftEmptyBlock, prosemirrorCommands.splitBlockKeepMarks);
23
22
  if (!mac) {
24
- keys['Mod-y'] = prosemirror_history_1.redo;
23
+ keys['Mod-y'] = prosemirrorHistory.redo;
25
24
  }
26
25
  if (schema.marks.strong) {
27
- keys['Mod-b'] = (0, utils_1.expandToWordWrap)(inline_style_1.toggleInlineFormat, tslib_1.__assign(tslib_1.__assign({}, commands_1.bold), { applyToWord: applyToWord }));
26
+ keys['Mod-b'] = utils.expandToWordWrap(inlineStyle.toggleInlineFormat, { ...commands.bold, applyToWord });
28
27
  }
29
28
  if (schema.marks.em) {
30
- keys['Mod-i'] = (0, utils_1.expandToWordWrap)(inline_style_1.toggleInlineFormat, tslib_1.__assign(tslib_1.__assign({}, commands_1.italic), { applyToWord: applyToWord }));
29
+ keys['Mod-i'] = utils.expandToWordWrap(inlineStyle.toggleInlineFormat, { ...commands.italic, applyToWord });
31
30
  }
32
31
  if (schema.marks.u) {
33
- keys['Mod-u'] = (0, utils_1.expandToWordWrap)(inline_style_1.toggleInlineFormat, tslib_1.__assign(tslib_1.__assign({}, commands_1.underline), { applyToWord: applyToWord }));
32
+ keys['Mod-u'] = utils.expandToWordWrap(inlineStyle.toggleInlineFormat, { ...commands.underline, applyToWord });
34
33
  }
35
34
  if (schema.nodes.hard_break) {
36
- var br_1 = schema.nodes.hard_break;
37
- var cmd = (0, prosemirror_commands_1.chainCommands)(prosemirror_commands_1.exitCode, function (state, dispatch) {
38
- dispatch(state.tr.replaceSelectionWith(br_1.create()).scrollIntoView());
35
+ const br = schema.nodes.hard_break;
36
+ const cmd = prosemirrorCommands.chainCommands(prosemirrorCommands.exitCode, (state, dispatch) => {
37
+ dispatch(state.tr.replaceSelectionWith(br.create()).scrollIntoView());
39
38
  return true;
40
39
  });
41
40
  keys['Shift-Enter'] = cmd;
42
41
  }
43
42
  return keys;
44
43
  };
45
- exports.buildKeymap = buildKeymap;
46
- var buildListKeymap = function (schema) {
47
- var keys = {};
44
+ const buildListKeymap = (schema) => {
45
+ const keys = {};
48
46
  if (schema.nodes.list_item) {
49
47
  // tslint:disable-next-line:no-string-literal
50
- keys.Enter = (0, lists_1.splitListItemKeepMarks)(schema.nodes.list_item);
48
+ keys.Enter = lists.splitListItemKeepMarks(schema.nodes.list_item);
51
49
  }
52
50
  return keys;
53
51
  };
52
+
53
+ exports.buildKeymap = buildKeymap;
54
54
  exports.buildListKeymap = buildListKeymap;
@@ -1,8 +1,6 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.bulletList = exports.orderedList = exports.listsTypes = void 0;
4
- var tslib_1 = require("tslib");
5
- exports.listsTypes = {
1
+ 'use strict';
2
+
3
+ const listsTypes = {
6
4
  orderedList: 'ordered_list',
7
5
  bulletList: 'bullet_list',
8
6
  listItem: 'list_item'
@@ -10,14 +8,18 @@ exports.listsTypes = {
10
8
  /**
11
9
  * The object of the OrderedList tool settings.
12
10
  */
13
- exports.orderedList = {
14
- listType: exports.listsTypes.orderedList,
15
- types: tslib_1.__assign({}, exports.listsTypes)
11
+ const orderedList = {
12
+ listType: listsTypes.orderedList,
13
+ types: { ...listsTypes }
16
14
  };
17
15
  /**
18
16
  * The object of the UnorderedList tool settings.
19
17
  */
20
- exports.bulletList = {
21
- listType: exports.listsTypes.bulletList,
22
- types: tslib_1.__assign({}, exports.listsTypes)
18
+ const bulletList = {
19
+ listType: listsTypes.bulletList,
20
+ types: { ...listsTypes }
23
21
  };
22
+
23
+ exports.bulletList = bulletList;
24
+ exports.listsTypes = listsTypes;
25
+ exports.orderedList = orderedList;
@@ -1,9 +1,10 @@
1
- import { NodeSpec, MarkSpec } from 'prosemirror-model';
1
+ import { MarkSpec, NodeSpec } from 'prosemirror-model';
2
+
2
3
  declare const marks: {
3
4
  [mark: string]: MarkSpec;
4
5
  };
5
- export declare const parseStrColgroup: (colgroup: string) => HTMLTableColElement;
6
6
  declare const nodes: {
7
7
  [node: string]: NodeSpec;
8
8
  };
9
- export { nodes, marks };
9
+
10
+ export { marks, nodes };