@progress/kendo-react-editor 9.4.0-develop.23 → 9.4.0-develop.3

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 (97) hide show
  1. package/Editor.js +1 -1
  2. package/Editor.mjs +1 -0
  3. package/NOTICE.txt +51 -40
  4. package/config/defaultStyles.js +1 -1
  5. package/config/defaultStyles.mjs +1 -0
  6. package/config/shortcuts.js +1 -1
  7. package/config/shortcuts.mjs +9 -8
  8. package/config/toolsSettings.js +1 -1
  9. package/config/toolsSettings.mjs +1 -0
  10. package/dialogs/FindReplace.js +1 -1
  11. package/dialogs/FindReplace.mjs +1 -0
  12. package/dialogs/index.js +1 -1
  13. package/dialogs/index.mjs +1 -0
  14. package/dialogs/insertImage.js +1 -1
  15. package/dialogs/insertImage.mjs +1 -0
  16. package/dialogs/insertLink.js +1 -1
  17. package/dialogs/insertLink.mjs +11 -10
  18. package/dialogs/viewHtml.js +1 -1
  19. package/dialogs/viewHtml.mjs +6 -5
  20. package/dist/cdn/js/kendo-react-editor.js +1 -8
  21. package/index.js +1 -2
  22. package/index.mjs +7 -7
  23. package/messages/index.js +1 -1
  24. package/messages/index.mjs +1 -0
  25. package/package-metadata.js +1 -1
  26. package/package-metadata.mjs +3 -2
  27. package/package.json +14 -14
  28. package/tools/align.js +1 -1
  29. package/tools/align.mjs +5 -4
  30. package/tools/applyColor.js +1 -1
  31. package/tools/applyColor.mjs +6 -5
  32. package/tools/cleanFormatting.js +1 -1
  33. package/tools/cleanFormatting.mjs +9 -8
  34. package/tools/findReplace.js +1 -1
  35. package/tools/findReplace.mjs +10 -9
  36. package/tools/fontStyle.js +1 -1
  37. package/tools/fontStyle.mjs +7 -6
  38. package/tools/formatBlock.js +1 -1
  39. package/tools/formatBlock.mjs +11 -10
  40. package/tools/history.js +1 -1
  41. package/tools/history.mjs +3 -2
  42. package/tools/indent.js +1 -1
  43. package/tools/indent.mjs +1 -0
  44. package/tools/index.js +1 -1
  45. package/tools/index.mjs +1 -0
  46. package/tools/inlineFormat.js +1 -1
  47. package/tools/inlineFormat.mjs +5 -4
  48. package/tools/insertImage.js +1 -1
  49. package/tools/insertImage.mjs +5 -4
  50. package/tools/insertLink.js +1 -1
  51. package/tools/insertLink.mjs +14 -13
  52. package/tools/insertTable/popup.js +1 -1
  53. package/tools/insertTable/popup.mjs +5 -4
  54. package/tools/insertTable/popupGrid.js +1 -1
  55. package/tools/insertTable/popupGrid.mjs +1 -0
  56. package/tools/insertTable/tool.js +1 -1
  57. package/tools/insertTable/tool.mjs +1 -0
  58. package/tools/lists-styled.js +1 -1
  59. package/tools/lists-styled.mjs +1 -0
  60. package/tools/lists.js +1 -1
  61. package/tools/lists.mjs +14 -13
  62. package/tools/outdent.js +1 -1
  63. package/tools/outdent.mjs +1 -0
  64. package/tools/pdf.js +1 -1
  65. package/tools/pdf.mjs +5 -4
  66. package/tools/print.js +1 -1
  67. package/tools/print.mjs +5 -4
  68. package/tools/proseMirrorTool.js +1 -1
  69. package/tools/proseMirrorTool.mjs +9 -8
  70. package/tools/selectAll.js +1 -1
  71. package/tools/selectAll.mjs +6 -5
  72. package/tools/table-wizard/cellPropsUtils.js +1 -1
  73. package/tools/table-wizard/cellPropsUtils.mjs +35 -34
  74. package/tools/table-wizard/tableCellProperties.js +1 -1
  75. package/tools/table-wizard/tableCellProperties.mjs +1 -0
  76. package/tools/table-wizard/tableProperties.js +1 -1
  77. package/tools/table-wizard/tableProperties.mjs +45 -44
  78. package/tools/table-wizard/tablePropsUtils.js +1 -1
  79. package/tools/table-wizard/tablePropsUtils.mjs +100 -99
  80. package/tools/table-wizard/utils.js +1 -1
  81. package/tools/table-wizard/utils.mjs +18 -17
  82. package/tools/tableEdit.js +1 -1
  83. package/tools/tableEdit.mjs +3 -2
  84. package/tools/unlink.js +1 -1
  85. package/tools/unlink.mjs +9 -8
  86. package/tools/utils.js +1 -1
  87. package/tools/utils.mjs +1 -0
  88. package/tools/viewHtml.js +1 -1
  89. package/tools/viewHtml.mjs +12 -11
  90. package/utils/browser-detection.js +1 -1
  91. package/utils/browser-detection.mjs +1 -0
  92. package/utils/controlled-value.js +1 -1
  93. package/utils/controlled-value.mjs +3 -2
  94. package/utils/index.js +1 -1
  95. package/utils/index.mjs +1 -0
  96. package/utils/props-key.js +1 -1
  97. package/utils/props-key.mjs +4 -3
@@ -5,6 +5,7 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
+ "use client";
8
9
  const e = typeof window != "undefined" && /Firefox/.test(window.navigator.userAgent);
9
10
  export {
10
11
  e as firefox
@@ -5,4 +5,4 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("@progress/kendo-editor-common"),i=require("./index.js"),s=(t,e)=>{const c=e.tr||t.state.tr.setSelection(new r.AllSelection(t.state.doc)).replaceSelectionWith(e.doc||i.EditorUtils.createDocument(t.state.schema,e.html||"")).setMeta("commandName","setHTML");t.updateState(t.state.apply(c))},a=(t,e,c,o,d)=>{typeof e=="string"?o&&e===d?s(t,{tr:o}):e!==c&&s(t,{html:e}):o&&e.eq(o.doc)?s(t,{tr:o}):t.state.doc.eq(e)||s(t,{doc:e})};exports.updateEditorValue=a;
8
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("@progress/kendo-editor-common"),i=require("./index.js"),s=(t,e)=>{const c=e.tr||t.state.tr.setSelection(new r.AllSelection(t.state.doc)).replaceSelectionWith(e.doc||i.EditorUtils.createDocument(t.state.schema,e.html||"")).setMeta("commandName","setHTML");t.updateState(t.state.apply(c))},l=(t,e,c,o,d)=>{typeof e=="string"?o&&e===d?s(t,{tr:o}):e!==c&&s(t,{html:e}):o&&e.eq(o.doc)?s(t,{tr:o}):t.state.doc.eq(e)||s(t,{doc:e})};exports.updateEditorValue=l;
@@ -5,14 +5,15 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
+ "use client";
8
9
  import { AllSelection as r } from "@progress/kendo-editor-common";
9
10
  import { EditorUtils as d } from "./index.mjs";
10
11
  const s = (t, o) => {
11
12
  const c = o.tr || t.state.tr.setSelection(new r(t.state.doc)).replaceSelectionWith(o.doc || d.createDocument(t.state.schema, o.html || "")).setMeta("commandName", "setHTML");
12
13
  t.updateState(t.state.apply(c));
13
- }, i = (t, o, c, e, m) => {
14
+ }, f = (t, o, c, e, m) => {
14
15
  typeof o == "string" ? e && o === m ? s(t, { tr: e }) : o !== c && s(t, { html: o }) : e && o.eq(e.doc) ? s(t, { tr: e }) : t.state.doc.eq(o) || s(t, { doc: o });
15
16
  };
16
17
  export {
17
- i as updateEditorValue
18
+ f as updateEditorValue
18
19
  };
package/utils/index.js CHANGED
@@ -5,4 +5,4 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const J=require("../config/shortcuts.js"),a=require("@progress/kendo-editor-common"),Q=require("./props-key.js");exports.EditorUtils=void 0;(t=>{function s(e,n,r){return!!a.alignBlocks(n,r)(e.state,e.dispatch)}t.alignBlocks=s;function u(e,n,r){return a.applyInlineStyle(n,r)(e.state,e.dispatch)}t.applyInlineStyle=u;function o(e,n,r){return a.applyLink(n,r)(e.state,e.dispatch)}t.applyLink=o;function i(e,n){return a.canIndentAsListItem(e,n)}t.canIndentList=i;function m(e,n){return a.canInsert(e,n)}t.canInsert=m;function g(e,n){return a.canOutdentAsListItem(e,{listsTypes:n,nodes:[]})}t.canOutdentList=g;function l(e){return a.convertMsLists(e)}t.convertMsLists=l;function f(e,n,r){return a.parseContent(a.trimWhitespace(n),e,r!==void 0?r:{preserveWhitespace:"full"})}t.createDocument=f;function p(e,n,r){return a.createTable(e,n,r)}t.createTable=p;function h(e,n,r){return a.formatBlockElements(n,r)(e.state,e.dispatch)}t.formatBlockElements=h;function k(e){return a.getBlockFormats(e)}t.getBlockFormats=k;function I(e){return a.getHtml(e)}t.getHtml=I;function y(e,n){return a.getInlineStyles(e,n)}t.getInlineStyles=y;function z(e,n){return a.getMark(e,n)}t.getMark=z;function S(e,n){return a.hasMark(e,n)}t.hasMark=S;function L(e,n){return a.hasNode(e,n)}t.hasNode=L;function A(e,n,r,c){return!!a.indentBlocks(n,r,c)(e.state,e.dispatch)}t.indentBlocks=A;function B(e){return a.indentHtml(e)}t.indentHtml=B;function H(e,n,r){a.insertNode(n,r)(e.state,e.dispatch)}t.insertNode=H;function b(e,n){return a.isAligned(e,n)}t.isAligned=b;function d(e,n,r){return a.isIndented(e,n,r)}t.isIndented=d;function C(e){return a.removeComments(e)}t.removeComments=C;function R(e,n){return a.removeTag(e,n)}t.removeTag=R;function M(e,n){return a.pasteCleanup(e,n)}t.pasteCleanup=M;function F(e){a.sanitizeClassAttr(e)}t.sanitizeClassAttr=F;function T(e){a.sanitizeStyleAttr(e)}t.sanitizeStyleAttr=T;function v(e){a.removeAttribute(e)}t.removeAttribute=v;function N(e){return a.sanitize(e)}t.sanitize=N;function K(e,n){return a.replaceImageSourcesFromRtf(e,n)}t.replaceImageSourcesFromRtf=K;function q(e){return a.textHighlight(e)}t.textHighlight=q;function x(e){return a.imageResizing(e)}t.imageResizing=x;function O(){return a.tableResizing()}t.tableResizing=O;function W(e,n,r,c){const G=a.trimWhitespace(n);a.setHtml(G,r,c)(e.state,e.dispatch)}t.setHtml=W;function D(e,n,r,c){return a.toggleInlineFormat(n,r,c)(e.state,e.dispatch)}t.toggleInlineFormat=D;function P(e,n,r){return a.toggleList(e.state,e.dispatch,e,n,r)}t.toggleList=P;function j(e){return J.getShortcuts(e)}t.getShortcuts=j,t.propsKey=Q.editorPropsKey,t.imageResizeKey=a.imageResizeKey,t.marks={...a.marks},t.nodes={...a.nodes}})(exports.EditorUtils||(exports.EditorUtils={}));
8
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const J=require("../config/shortcuts.js"),a=require("@progress/kendo-editor-common"),Q=require("./props-key.js");exports.EditorUtils=void 0;(t=>{function s(e,n,r){return!!a.alignBlocks(n,r)(e.state,e.dispatch)}t.alignBlocks=s;function u(e,n,r){return a.applyInlineStyle(n,r)(e.state,e.dispatch)}t.applyInlineStyle=u;function o(e,n,r){return a.applyLink(n,r)(e.state,e.dispatch)}t.applyLink=o;function i(e,n){return a.canIndentAsListItem(e,n)}t.canIndentList=i;function m(e,n){return a.canInsert(e,n)}t.canInsert=m;function g(e,n){return a.canOutdentAsListItem(e,{listsTypes:n,nodes:[]})}t.canOutdentList=g;function l(e){return a.convertMsLists(e)}t.convertMsLists=l;function f(e,n,r){return a.parseContent(a.trimWhitespace(n),e,r!==void 0?r:{preserveWhitespace:"full"})}t.createDocument=f;function p(e,n,r){return a.createTable(e,n,r)}t.createTable=p;function h(e,n,r){return a.formatBlockElements(n,r)(e.state,e.dispatch)}t.formatBlockElements=h;function k(e){return a.getBlockFormats(e)}t.getBlockFormats=k;function I(e){return a.getHtml(e)}t.getHtml=I;function y(e,n){return a.getInlineStyles(e,n)}t.getInlineStyles=y;function z(e,n){return a.getMark(e,n)}t.getMark=z;function S(e,n){return a.hasMark(e,n)}t.hasMark=S;function L(e,n){return a.hasNode(e,n)}t.hasNode=L;function A(e,n,r,c){return!!a.indentBlocks(n,r,c)(e.state,e.dispatch)}t.indentBlocks=A;function B(e){return a.indentHtml(e)}t.indentHtml=B;function H(e,n,r){a.insertNode(n,r)(e.state,e.dispatch)}t.insertNode=H;function b(e,n){return a.isAligned(e,n)}t.isAligned=b;function d(e,n,r){return a.isIndented(e,n,r)}t.isIndented=d;function C(e){return a.removeComments(e)}t.removeComments=C;function R(e,n){return a.removeTag(e,n)}t.removeTag=R;function M(e,n){return a.pasteCleanup(e,n)}t.pasteCleanup=M;function F(e){a.sanitizeClassAttr(e)}t.sanitizeClassAttr=F;function T(e){a.sanitizeStyleAttr(e)}t.sanitizeStyleAttr=T;function v(e){a.removeAttribute(e)}t.removeAttribute=v;function N(e){return a.sanitize(e)}t.sanitize=N;function K(e,n){return a.replaceImageSourcesFromRtf(e,n)}t.replaceImageSourcesFromRtf=K;function q(e){return a.textHighlight(e)}t.textHighlight=q;function x(e){return a.imageResizing(e)}t.imageResizing=x;function O(){return a.tableResizing()}t.tableResizing=O;function W(e,n,r,c){const G=a.trimWhitespace(n);a.setHtml(G,r,c)(e.state,e.dispatch)}t.setHtml=W;function D(e,n,r,c){return a.toggleInlineFormat(n,r,c)(e.state,e.dispatch)}t.toggleInlineFormat=D;function P(e,n,r){return a.toggleList(e.state,e.dispatch,e,n,r)}t.toggleList=P;function j(e){return J.getShortcuts(e)}t.getShortcuts=j,t.propsKey=Q.editorPropsKey,t.imageResizeKey=a.imageResizeKey,t.marks={...a.marks},t.nodes={...a.nodes}})(exports.EditorUtils||(exports.EditorUtils={}));
package/utils/index.mjs CHANGED
@@ -5,6 +5,7 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
+ "use client";
8
9
  import { getShortcuts as J } from "../config/shortcuts.mjs";
9
10
  import { imageResizeKey as Q, marks as V, nodes as X, alignBlocks as Y, applyInlineStyle as Z, applyLink as _, canIndentAsListItem as w, canInsert as E, canOutdentAsListItem as U, convertMsLists as ee, parseContent as ne, trimWhitespace as c, createTable as te, formatBlockElements as ae, getBlockFormats as re, getHtml as ce, getInlineStyles as ue, getMark as se, hasMark as oe, hasNode as me, indentBlocks as ie, indentHtml as ge, insertNode as fe, isAligned as le, isIndented as pe, removeComments as $e, removeTag as he, pasteCleanup as ke, sanitizeClassAttr as Ie, sanitizeStyleAttr as ye, removeAttribute as ze, sanitize as Le, replaceImageSourcesFromRtf as Se, textHighlight as Ae, imageResizing as Be, tableResizing as He, setHtml as Re, toggleInlineFormat as Ce, toggleList as be } from "@progress/kendo-editor-common";
10
11
  import { editorPropsKey as Fe } from "./props-key.mjs";
@@ -5,4 +5,4 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@progress/kendo-editor-common"),o=new e.PluginKey("editor-props");exports.editorPropsKey=o;
8
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@progress/kendo-editor-common"),o=new e.PluginKey("editor-props");exports.editorPropsKey=o;
@@ -5,8 +5,9 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- import { PluginKey as o } from "@progress/kendo-editor-common";
9
- const e = new o("editor-props");
8
+ "use client";
9
+ import { PluginKey as e } from "@progress/kendo-editor-common";
10
+ const r = new e("editor-props");
10
11
  export {
11
- e as editorPropsKey
12
+ r as editorPropsKey
12
13
  };