devexpress-richedit 25.2.5 → 25.2.6

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 (39) hide show
  1. package/bin/gulpfile.js +1 -1
  2. package/bin/index-custom.js +1 -1
  3. package/bin/localization-builder.js +1 -1
  4. package/bin/nspell-index.js +1 -1
  5. package/bin/nspell.webpack.config.js +1 -1
  6. package/bin/webpack-externals.js +1 -1
  7. package/bin/webpack.config.js +1 -1
  8. package/dist/dx.richedit.css +1 -1
  9. package/dist/dx.richedit.d.ts +1 -1
  10. package/dist/dx.richedit.js +4348 -4235
  11. package/dist/dx.richedit.min.js +3 -3
  12. package/dist/pdfkit.js +3185 -3147
  13. package/dist/pdfkit.min.js +1 -1
  14. package/index.d.ts +1 -1
  15. package/index.js +1 -1
  16. package/lib/client/client-rich-edit.d.ts +2 -1
  17. package/lib/client/client-rich-edit.js +9 -3
  18. package/lib/client/public/client-events.d.ts +2 -1
  19. package/lib/client/public/client-events.js +3 -1
  20. package/lib/client/public/events.d.ts +7 -1
  21. package/lib/client/public/events.js +8 -0
  22. package/lib/client/public/options.d.ts +2 -1
  23. package/lib/client/settings.d.ts +1 -0
  24. package/lib/client/settings.js +2 -0
  25. package/lib/common/auto-correct/auto-correct-providers.js +2 -2
  26. package/lib/common/client-side-events.d.ts +2 -0
  27. package/lib/common/client-side-events.js +3 -0
  28. package/lib/common/commands/dialogs/dialog-custom-numbering-list-command.js +3 -1
  29. package/lib/common/commands/document/print-document-on-client-command.js +3 -0
  30. package/lib/common/commands/ruler/toggle-show-horizontal-ruler-command.js +1 -2
  31. package/lib/common/formats/html/export/html-export.d.ts +4 -7
  32. package/lib/common/formats/html/export/html-export.js +102 -44
  33. package/lib/common/interfaces/i-control-owner.d.ts +2 -0
  34. package/lib/common/interfaces/i-rich-edit-core.d.ts +1 -0
  35. package/lib/common/mouse-handler/drag-floating-objects-helper.js +13 -4
  36. package/lib/common/rich-edit-core.d.ts +1 -0
  37. package/lib/common/rich-edit-core.js +6 -2
  38. package/lib/common/utils/utils.js +2 -2
  39. package/package.json +5 -5
@@ -346,6 +346,11 @@ export class RichEditCore {
346
346
  this.viewManager.renderer.onViewTypeChanged();
347
347
  this.horizontalRulerControl.onViewTypeChanged();
348
348
  this.viewManager.canvasManager.simpleViewCanvasSizeManager.setViewMode(this.innerClientProperties.viewsSettings.isSimpleView);
349
+ this.clientSideEvents.raiseViewTypeChanged(this.innerClientProperties.viewsSettings.viewType);
350
+ }
351
+ onHorizontalRulerVisibleChanged(horizontalRulerVisible) {
352
+ this.owner.adjustControl();
353
+ this.clientSideEvents.raiseHorizontalRulerVisibleChanged(horizontalRulerVisible);
349
354
  }
350
355
  getModifiedState() {
351
356
  if (this.lastSavedHistoryItemId != this.modelManager.history.getCurrentItemId())
@@ -406,8 +411,7 @@ export class RichEditCore {
406
411
  return viewElement;
407
412
  }
408
413
  isUsedInnerClipboard(elements) {
409
- const elem = elements[0];
410
- return elem && DomUtils.isHTMLElementNode(elem) && elem.id == RichUtils.getCopyPasteGuid(this.getGuidParams());
414
+ return elements.some(elem => DomUtils.isHTMLElementNode(elem) && elem.id == RichUtils.getCopyPasteGuid(this.getGuidParams()));
411
415
  }
412
416
  getExportDocumentFormat() {
413
417
  const format = this.documentInfo.documentFormat;
@@ -32,7 +32,7 @@ export function convertToFunction(func) {
32
32
  let funcName = func.trim();
33
33
  if (/^\b\w+?\b$/.test(funcName) && /^[^0-9]/.test(funcName)) {
34
34
  try {
35
- const handler = eval(funcName);
35
+ const handler = globalThis[funcName];
36
36
  if (typeof (handler) == "function")
37
37
  return handler;
38
38
  }
@@ -43,7 +43,7 @@ export function convertToFunction(func) {
43
43
  text = `function(s, e){${text}}`;
44
44
  let result = null;
45
45
  try {
46
- result = eval(`(${text})`);
46
+ result = new Function(`return (${text})`)();
47
47
  }
48
48
  catch (_e) {
49
49
  console.error(`Parse error: ${func}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devexpress-richedit",
3
- "version": "25.2.5",
3
+ "version": "25.2.6",
4
4
  "homepage": "https://www.devexpress.com/",
5
5
  "bugs": "https://www.devexpress.com/support/",
6
6
  "author": "Developer Express Inc.",
@@ -11,12 +11,12 @@
11
11
  "build-nspell": "webpack --mode production --config=bin/nspell.webpack.config.js"
12
12
  },
13
13
  "peerDependencies": {
14
- "devextreme": "25.2.5",
15
- "devextreme-dist": "25.2.5"
14
+ "devextreme": "25.2.6",
15
+ "devextreme-dist": "25.2.6"
16
16
  },
17
17
  "devDependencies": {
18
- "webpack": "5.89.0",
19
- "terser-webpack-plugin": "5.3.10",
18
+ "webpack": "^5.105.3",
19
+ "terser-webpack-plugin": "^5.3.17",
20
20
  "webpack-cli": "5.1.4",
21
21
  "gulp": "^5.0.1",
22
22
  "nspell": "2.1.5",