devexpress-richedit 24.2.3 → 24.2.4-build-24355-1908

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/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * DevExpress WebRichEdit (index.d.ts)
3
- * Version: 24.2.3
3
+ * Version: 24.2.4
4
4
  * Copyright (c) 2012 - 2024 Developer Express Inc. ALL RIGHTS RESERVED
5
5
  * License: https://www.devexpress.com/Support/EULAs
6
6
  */
package/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * DevExpress WebRichEdit (index.js)
3
- * Version: 24.2.3
3
+ * Version: 24.2.4
4
4
  * Copyright (c) 2012 - 2024 Developer Express Inc. ALL RIGHTS RESERVED
5
5
  * License: https://www.devexpress.com/Support/EULAs
6
6
  */
@@ -127,8 +127,8 @@ export class RestartPreparer {
127
127
  const ancPosInfo = this.manager.layout.anchorObjectsPositionInfo;
128
128
  const rowPos = this.manager.invalidator.getStartModelPositionOfRow(lp);
129
129
  lp.page.anchoredObjectHolder.objects = NumberMapUtils.reducedMap(lp.page.anchoredObjectHolder.objects, (obj) => {
130
- if (ancPosInfo.getPosition(obj.objectId) >= rowPos) {
131
- if (obj.getType() == LayoutBoxType.AnchorTextBox) {
130
+ if (ancPosInfo.getPosition(obj.objectId) >= rowPos && lp.pageArea.subDocument.id === obj.belongsToSubDocId) {
131
+ if (obj.getType() === LayoutBoxType.AnchorTextBox) {
132
132
  const id = obj.internalSubDocId;
133
133
  delete lp.page.otherPageAreas[id];
134
134
  pageChange.otherPageAreaChanges.push(new PageAreaChange(id, LayoutChangeType.Deleted));
@@ -27,6 +27,7 @@ export declare class CacheImageInfo {
27
27
  clone(): CacheImageInfo;
28
28
  shouldMakeImagePdfCompatible(): boolean;
29
29
  isPdfCompatible(): boolean;
30
+ private toString;
30
31
  setPdfCompatibleBase64(val: string): void;
31
32
  private getImageHeader;
32
33
  }
@@ -55,18 +55,21 @@ export class CacheImageInfo {
55
55
  const data = this.getImageHeader();
56
56
  if (data[0] === 0xff && data[1] === 0xd8)
57
57
  return true;
58
- else if (data[0] === 0x89 && data.toString('ascii', 1, 4) === 'PNG')
58
+ else if (data[0] === 0x89 && this.toString(data, 1, 4) === 'PNG')
59
59
  return true;
60
60
  }
61
61
  return false;
62
62
  }
63
+ toString(data, start, end) {
64
+ return Array.from(data.slice(start, end)).map(b => String.fromCharCode(b)).join("");
65
+ }
63
66
  setPdfCompatibleBase64(val) {
64
67
  this._convertedBase64 = Base64Utils.normalizeToDataUrl(val, "image/png");
65
68
  }
66
69
  getImageHeader() {
67
70
  const match = /^data:.+;base64,(.*)$/.exec(this.base64);
68
71
  const header = match[1].substring(0, 8);
69
- return Buffer.from(header, 'base64');
72
+ return Uint8Array.from(atob(header), c => c.charCodeAt(0));
70
73
  }
71
74
  }
72
75
  CacheImageInfo.emptyPicDimension = UnitConverter.pixelsToTwips(32);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devexpress-richedit",
3
- "version": "24.2.3",
3
+ "version": "24.2.4-build-24355-1908",
4
4
  "homepage": "https://www.devexpress.com/",
5
5
  "bugs": "https://www.devexpress.com/support/",
6
6
  "author": "Developer Express Inc.",
@@ -14,8 +14,8 @@
14
14
  "build-nspell": "webpack --mode production --config=bin/nspell.webpack.config.js"
15
15
  },
16
16
  "peerDependencies": {
17
- "devextreme": "24.2.3",
18
- "devextreme-dist": "24.2.3"
17
+ "devextreme": "24.2.4-build-24354-1936",
18
+ "devextreme-dist": "24.2.4-build-24354-1936"
19
19
  },
20
20
  "dependencies": {
21
21
  "jszip": "~3.10.1",