@uploadcare/file-uploader 1.24.2 → 1.24.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.
package/dist/env.js CHANGED
@@ -25,7 +25,7 @@
25
25
  */
26
26
 
27
27
  // package.json
28
- var version = "1.24.2";
28
+ var version = "1.24.3";
29
29
 
30
30
  // src/env.ts
31
31
  var PACKAGE_NAME = "blocks";
package/dist/index.d.ts CHANGED
@@ -1371,6 +1371,7 @@ declare class CropFrame extends Block {
1371
1371
  private readonly _handlePointerUp;
1372
1372
  private readonly _handlePointerMove;
1373
1373
  private readonly _handleSvgPointerMove;
1374
+ private readonly _backdropMaskId;
1374
1375
  private _backdropMask?;
1375
1376
  private _backdropMaskInner?;
1376
1377
  private _frameThumbs?;
package/dist/index.js CHANGED
@@ -25,7 +25,7 @@
25
25
  */
26
26
 
27
27
  // src/index.ts
28
- import { BaseComponent as BaseComponent4, Data as Data8, UID as UID4 } from "@symbiotejs/symbiote";
28
+ import { BaseComponent as BaseComponent4, Data as Data8, UID as UID5 } from "@symbiotejs/symbiote";
29
29
 
30
30
  // src/blocks/UploadCtxProvider/EventEmitter.ts
31
31
  var DEFAULT_DEBOUNCE_TIMEOUT = 20;
@@ -1217,7 +1217,7 @@ import { TelemetryAPIService } from "@uploadcare/quality-insights";
1217
1217
  import { Queue as Queue2 } from "@uploadcare/upload-client";
1218
1218
 
1219
1219
  // package.json
1220
- var version = "1.24.2";
1220
+ var version = "1.24.3";
1221
1221
 
1222
1222
  // src/env.ts
1223
1223
  var PACKAGE_NAME = "blocks";
@@ -5476,10 +5476,12 @@ CloudImageEditorBlock.bindAttributes({
5476
5476
  });
5477
5477
 
5478
5478
  // src/blocks/CloudImageEditor/src/CropFrame.ts
5479
+ import { UID as UID4 } from "@symbiotejs/symbiote";
5479
5480
  var CropFrame = class extends Block {
5480
5481
  _handlePointerUp;
5481
5482
  _handlePointerMove;
5482
5483
  _handleSvgPointerMove;
5484
+ _backdropMaskId = `backdrop-mask-${UID4.generate()}`;
5483
5485
  _backdropMask;
5484
5486
  _backdropMaskInner;
5485
5487
  _frameThumbs;
@@ -5519,7 +5521,7 @@ var CropFrame = class extends Block {
5519
5521
  }
5520
5522
  const { x, y, width, height } = cropBox;
5521
5523
  const svg = this.ref["svg-el"];
5522
- const mask = createSvgNode("mask", { id: "backdrop-mask" });
5524
+ const mask = createSvgNode("mask", { id: this._backdropMaskId });
5523
5525
  const maskRectOuter = createSvgNode("rect", {
5524
5526
  x: 0,
5525
5527
  y: 0,
@@ -5543,7 +5545,7 @@ var CropFrame = class extends Block {
5543
5545
  height: "100%",
5544
5546
  fill: "var(--color-image-background)",
5545
5547
  "fill-opacity": 0.85,
5546
- mask: "url(#backdrop-mask)"
5548
+ mask: `url(#${this._backdropMaskId})`
5547
5549
  });
5548
5550
  svg.appendChild(backdropRect);
5549
5551
  svg.appendChild(mask);
@@ -11982,7 +11984,7 @@ export {
11982
11984
  Spinner,
11983
11985
  StartFrom,
11984
11986
  Thumb,
11985
- UID4 as UID,
11987
+ UID5 as UID,
11986
11988
  UploadCtxProvider,
11987
11989
  UploadList,
11988
11990
  UploadSource,
package/dist/index.ssr.js CHANGED
@@ -1132,7 +1132,7 @@ export const ModalEvents = {
1132
1132
  DESTROY: "modal:destroy",
1133
1133
  };
1134
1134
  export const PACKAGE_NAME = `blocks`;
1135
- export const PACKAGE_VERSION = `1.24.2`;
1135
+ export const PACKAGE_VERSION = `1.24.3`;
1136
1136
  export const PresenceToggle = class {
1137
1137
  static template = `<slot></slot> `;
1138
1138
  static reg = () => {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uploadcare/file-uploader",
3
- "version": "1.24.2",
3
+ "version": "1.24.3",
4
4
  "description": "Building blocks for Uploadcare products integration",
5
5
  "keywords": [
6
6
  "web components",
@@ -1382,6 +1382,7 @@ declare class CropFrame extends Block {
1382
1382
  private readonly _handlePointerUp;
1383
1383
  private readonly _handlePointerMove;
1384
1384
  private readonly _handleSvgPointerMove;
1385
+ private readonly _backdropMaskId;
1385
1386
  private _backdropMask?;
1386
1387
  private _backdropMaskInner?;
1387
1388
  private _frameThumbs?;