@uploadcare/file-uploader 1.15.0 → 1.16.0

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.
@@ -138,6 +138,13 @@ export class CropFrame extends Block {
138
138
  } | undefined;
139
139
  /** @private */
140
140
  private _updateCursor;
141
+ /**
142
+ * @private
143
+ * @param {String} href
144
+ */
145
+ private _createMask;
146
+ _frameImage: SVGElement | undefined;
147
+ _updateMask(): void;
141
148
  /** @private */
142
149
  private _render;
143
150
  /** @param {boolean} visible */
@@ -1 +1 @@
1
- {"version":3,"file":"CropFrame.d.ts","sourceRoot":"","sources":["CropFrame.js"],"names":[],"mappings":"AA2BA;IAII;;MAGC;IAED,eAAe;IACf,yBAAyD;IAEzD,eAAe;IACf,2BAA6D;IAE7D,eAAe;IACf,8BAAmE;IAGrE;;;OAGG;IACH,+BAaC;IAED,eAAe;IACf,wBAyCC;IAFC,sCAAyB;IACzB,2CAAuC;IAGzC;;;OAGG;IACH,wBAUC;IAED,eAAe;IACf,wBASC;IAED,eAAe;IACf,qBAgEC;IAED;;;OAGG;IACH,0BAHW,OAAO,YAAY,EAAE,WAAW,aAChC,OAAO,YAAY,EAAE,SAAS,QA4BxC;IAED,eAAe;IACf,sBAiBC;IAED,eAAe;IACf,sBA4CC;IAED,eAAe;IACf,qBAeC;IAFC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAA+B;IAC/B,qCAA+B;IAGjC;;;;OAIG;IACH,2BAiBC;IAJC;;;;;kBAA2B;IAC3B,sCAA6B;IAC7B,6CAA6C;IAC7C,2DAAoC;IAGtC;;;OAGG;IACH,0BAUC;IAED;;;OAGG;IACH,4BAmBC;IAED;;;;OAIG;IACH,qBAsBC;IAED;;;OAGG;IACH,+BAqBC;IAFC;;;;;kBAA6B;IAI/B,eAAe;IACf,sBAGC;IAED,eAAe;IACf,gBAGC;IAED,+BAA+B;IAC/B,sBADY,OAAO,QAclB;IAmBG,mCAAsF;CA6B3F;;;;sBAngBqB,4BAA4B"}
1
+ {"version":3,"file":"CropFrame.d.ts","sourceRoot":"","sources":["CropFrame.js"],"names":[],"mappings":"AA2BA;IAII;;MAGC;IAED,eAAe;IACf,yBAAyD;IAEzD,eAAe;IACf,2BAA6D;IAE7D,eAAe;IACf,8BAAmE;IAGrE;;;OAGG;IACH,+BAaC;IAED,eAAe;IACf,wBAyCC;IAFC,sCAAyB;IACzB,2CAAuC;IAGzC;;;OAGG;IACH,wBAUC;IAED,eAAe;IACf,wBASC;IAED,eAAe;IACf,qBAgEC;IAED;;;OAGG;IACH,0BAHW,OAAO,YAAY,EAAE,WAAW,aAChC,OAAO,YAAY,EAAE,SAAS,QA4BxC;IAED,eAAe;IACf,sBAiBC;IAED,eAAe;IACf,sBA4CC;IAED,eAAe;IACf,qBAeC;IAFC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAA+B;IAC/B,qCAA+B;IAGjC;;;;OAIG;IACH,2BAiBC;IAJC;;;;;kBAA2B;IAC3B,sCAA6B;IAC7B,6CAA6C;IAC7C,2DAAoC;IAGtC;;;OAGG;IACH,0BAUC;IAED;;;OAGG;IACH,4BAmBC;IAED;;;;OAIG;IACH,qBAsBC;IAED;;;OAGG;IACH,+BAqBC;IAFC;;;;;kBAA6B;IAI/B,eAAe;IACf,sBAGC;IAED;;;OAGG;IACH,oBAoBC;IADC,oCAA4B;IAG9B,oBAeC;IAED,eAAe;IACf,gBAIC;IAED,+BAA+B;IAC/B,sBADY,OAAO,QAclB;IAmBG,mCAAsF;CAmC3F;;;;sBArjBqB,4BAA4B"}
@@ -446,10 +446,54 @@ export class CropFrame extends Block {
446
446
  this.ref['svg-el'].style.cursor = hoverThumb ? thumbCursor(hoverThumb.direction) : 'initial';
447
447
  }
448
448
 
449
+ /**
450
+ * @private
451
+ * @param {String} href
452
+ */
453
+ _createMask(href) {
454
+ if (this._frameImage) {
455
+ this._frameImage.setAttribute('href', href);
456
+ return;
457
+ }
458
+
459
+ let svg = this.ref['svg-el'];
460
+ let fr = document.createDocumentFragment();
461
+
462
+ let imageNode = createSvgNode('image', {
463
+ href,
464
+ });
465
+
466
+ imageNode.setAttribute('class', 'uc-cloud-mask');
467
+
468
+ fr.appendChild(imageNode);
469
+
470
+ svg.appendChild(fr);
471
+
472
+ this._frameImage = imageNode;
473
+ }
474
+
475
+ _updateMask() {
476
+ let cropBox = this.$['*cropBox'];
477
+
478
+ if (!cropBox || !this._frameImage) {
479
+ return;
480
+ }
481
+
482
+ let { x, y, width, height } = cropBox;
483
+
484
+ setSvgNodeAttrs(this._frameImage, {
485
+ x,
486
+ y,
487
+ height,
488
+ width,
489
+ });
490
+ }
491
+
449
492
  /** @private */
450
493
  _render() {
451
494
  this._updateBackdrop();
452
495
  this._updateFrame();
496
+ this._updateMask();
453
497
  }
454
498
 
455
499
  /** @param {boolean} visible */
@@ -491,6 +535,12 @@ export class CropFrame extends Block {
491
535
  });
492
536
  });
493
537
 
538
+ this.subConfigValue('cloudImageEditorMaskHref', (maskHref) => {
539
+ if (maskHref) {
540
+ this._createMask(maskHref);
541
+ }
542
+ });
543
+
494
544
  this.sub('dragging', (dragging) => {
495
545
  if (!this._frameGuides) return;
496
546
  this._frameGuides.setAttribute(
@@ -1191,3 +1191,7 @@ uc-presence-toggle.uc-initial {
1191
1191
  outline: 1px auto Highlight;
1192
1192
  outline: 1px auto -webkit-focus-ring-color;
1193
1193
  }
1194
+
1195
+ [uc-cloud-image-editor] .uc-cloud-mask {
1196
+ pointer-events: none;
1197
+ }
@@ -1 +1 @@
1
- {"version":3,"file":"initialConfig.d.ts","sourceRoot":"","sources":["initialConfig.js"],"names":[],"mappings":"AAKA,gCAAiC,sBAAsB,CAAC;AACxD,+BAAgC,+BAA+B,CAAC;AAChE,sCAAuC,+BAA+B,CAAC;AAEvE,wDAAwD;AACxD,4BADW,OAAO,sBAAsB,EAAE,UAAU,CAuElD"}
1
+ {"version":3,"file":"initialConfig.d.ts","sourceRoot":"","sources":["initialConfig.js"],"names":[],"mappings":"AAKA,gCAAiC,sBAAsB,CAAC;AACxD,+BAAgC,+BAA+B,CAAC;AAChE,sCAAuC,+BAA+B,CAAC;AAEvE,wDAAwD;AACxD,4BADW,OAAO,sBAAsB,EAAE,UAAU,CAyElD"}
@@ -78,4 +78,6 @@ export const initialConfig = {
78
78
  filesViewMode: 'list',
79
79
  gridShowFileNames: false,
80
80
  cloudImageEditorAutoOpen: false,
81
+
82
+ cloudImageEditorMaskHref: null,
81
83
  };
@@ -1 +1 @@
1
- {"version":3,"file":"normalizeConfigValue.d.ts","sourceRoot":"","sources":["normalizeConfigValue.js"],"names":[],"mappings":"AA2GO,qCAL+C,CAAC,SAA1C,MAAO,OAAO,aAAa,EAAE,UAAW,OAC1C,CAAC,SACD,OAAO,GACL,OAAO,aAAa,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,SAAS,CAa3D;;0BAtGM,qBAAqB"}
1
+ {"version":3,"file":"normalizeConfigValue.d.ts","sourceRoot":"","sources":["normalizeConfigValue.js"],"names":[],"mappings":"AA4GO,qCAL+C,CAAC,SAA1C,MAAO,OAAO,aAAa,EAAE,UAAW,OAC1C,CAAC,SACD,OAAO,GACL,OAAO,aAAa,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,SAAS,CAa3D;;0BAvGM,qBAAqB"}
@@ -97,6 +97,7 @@ const mapping = {
97
97
  filesViewMode: asFilesViewMode,
98
98
  gridShowFileNames: asBoolean,
99
99
  cloudImageEditorAutoOpen: asBoolean,
100
+ cloudImageEditorMaskHref: asString,
100
101
  };
101
102
 
102
103
  /**
package/env.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  /** Do not edit this file manually. It's generated during build process. */
2
2
  export const PACKAGE_NAME: "blocks";
3
- export const PACKAGE_VERSION: "1.15.0";
3
+ export const PACKAGE_VERSION: "1.16.0";
4
4
  //# sourceMappingURL=env.d.ts.map
package/env.js CHANGED
@@ -1,3 +1,3 @@
1
1
  /** Do not edit this file manually. It's generated during build process. */
2
2
  export const PACKAGE_NAME = 'blocks';
3
- export const PACKAGE_VERSION = '1.15.0';
3
+ export const PACKAGE_VERSION = '1.16.0';
package/index.ssr.d.ts CHANGED
@@ -550,7 +550,7 @@ export namespace ModalEvents {
550
550
  let DESTROY: string;
551
551
  }
552
552
  export const PACKAGE_NAME: "blocks";
553
- export const PACKAGE_VERSION: "1.15.0";
553
+ export const PACKAGE_VERSION: "1.16.0";
554
554
  export const PresenceToggle: {
555
555
  new (): {};
556
556
  template: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.ssr.d.ts","sourceRoot":"","sources":["index.ssr.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;EAcE;AACF;;;;;;;;;;;;;;;EAcE;AACF;;;;;EAIE;AACF;;;;;;EAKE;AACF;;;;;;;;EAgBE;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4IE;AACF;;;;;;;;EAuCE;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+CE;AACF;;;;;;;;EAuCE;AACF;;;;;;;EA4GE;AACF;;;;;;;EAaE;AACF;;;;;;;EAME;AACF;;;;;;;;;;;;;;;;EAeE;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmEE;AACF;;;;;;;EAWE;AACF;;;;;;;EAWE;AACF;;;;;;;EASE;AACF;;;;;;EAKE;AACF;;;;;;;EAWE;AACF;;;;;;;EAME;AACF;;;;;;;EAWE;AACF;;;;;;;EA2IE;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0EE;;;;;;;;;;;;;AAaF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqFE;AACF;;;;;;EAKE;AACF;;;;;;EAKE;AACF;;;;;;;EAME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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuDE;AACF;;;;;;;;;;;;EAWE;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmEE;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuGE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsBF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+CE;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2EE;AACK,yCAAiC;AACjC,qCAA6B;AAC7B,6CAAqC;AACrC,oCAA4B"}
package/index.ssr.js CHANGED
@@ -380,6 +380,7 @@ export const Config = class {
380
380
  "files-view-mode",
381
381
  "grid-show-file-names",
382
382
  "cloud-image-editor-auto-open",
383
+ "cloud-image-editor-mask-href",
383
384
  "multiplemin",
384
385
  "multiplemax",
385
386
  "confirmupload",
@@ -428,6 +429,7 @@ export const Config = class {
428
429
  "filesviewmode",
429
430
  "gridshowfilenames",
430
431
  "cloudimageeditorautoopen",
432
+ "cloudimageeditormaskhref",
431
433
  ];
432
434
  static reg = () => {};
433
435
  static styleAttrs = [];
@@ -1059,7 +1061,7 @@ export const ModalEvents = {
1059
1061
  DESTROY: "modal:destroy",
1060
1062
  };
1061
1063
  export const PACKAGE_NAME = `blocks`;
1062
- export const PACKAGE_VERSION = `1.15.0`;
1064
+ export const PACKAGE_VERSION = `1.16.0`;
1063
1065
  export const PresenceToggle = class {
1064
1066
  static template = `<slot></slot> `;
1065
1067
  static reg = () => {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uploadcare/file-uploader",
3
- "version": "1.15.0",
3
+ "version": "1.16.0",
4
4
  "description": "Building blocks for Uploadcare products integration",
5
5
  "keywords": [
6
6
  "web components",
@@ -285,6 +285,8 @@ export type ConfigType = {
285
285
  gridShowFileNames: boolean;
286
286
 
287
287
  cloudImageEditorAutoOpen: boolean;
288
+
289
+ cloudImageEditorMaskHref: string | null;
288
290
  };
289
291
  export type ConfigComplexType = Pick<ConfigType, (typeof complexConfigKeys)[number]>;
290
292
  export type ConfigPlainType = Omit<ConfigType, keyof ConfigComplexType>;
@@ -292,8 +294,8 @@ export type ConfigAttributesType = KebabCaseKeys<ConfigPlainType> & LowerCaseKey
292
294
 
293
295
  export type KebabCase<S extends string> = S extends `${infer C}${infer T}`
294
296
  ? T extends Uncapitalize<T>
295
- ? `${Uncapitalize<C>}${KebabCase<T>}`
296
- : `${Uncapitalize<C>}-${KebabCase<T>}`
297
+ ? `${Uncapitalize<C>}${KebabCase<T>}`
298
+ : `${Uncapitalize<C>}-${KebabCase<T>}`
297
299
  : S;
298
300
  export type KebabCaseKeys<T extends Record<string, unknown>> = { [Key in keyof T as KebabCase<Key & string>]: T[Key] };
299
301
  export type LowerCase<S extends string> = Lowercase<S>;
@@ -352,17 +354,17 @@ export type OutputErrorTypePayload = {
352
354
 
353
355
  export type OutputError<T extends OutputFileErrorType | OutputCollectionErrorType> = T extends OutputCustomErrorType
354
356
  ? {
355
- type?: T;
356
- message: string;
357
- payload?: OutputErrorTypePayload[T];
358
- }
357
+ type?: T;
358
+ message: string;
359
+ payload?: OutputErrorTypePayload[T];
360
+ }
359
361
  : T extends keyof OutputErrorTypePayload
360
- ? {
361
- type: T;
362
- message: string;
363
- payload?: OutputErrorTypePayload[T];
364
- }
365
- : never;
362
+ ? {
363
+ type: T;
364
+ message: string;
365
+ payload?: OutputErrorTypePayload[T];
366
+ }
367
+ : never;
366
368
 
367
369
  export type OutputErrorFile = OutputError<OutputFileErrorType>;
368
370
 
@@ -384,7 +386,7 @@ export type OutputFileEntry<TStatus extends OutputFileStatus = OutputFileStatus>
384
386
  fullPath: string | null;
385
387
  source: SourceTypes | null;
386
388
  } & (
387
- | {
389
+ | {
388
390
  status: 'success';
389
391
  fileInfo: UploadcareFile;
390
392
  uuid: string;
@@ -396,7 +398,7 @@ export type OutputFileEntry<TStatus extends OutputFileStatus = OutputFileStatus>
396
398
  isRemoved: false;
397
399
  errors: [];
398
400
  }
399
- | {
401
+ | {
400
402
  status: 'failed';
401
403
  fileInfo: UploadcareFile | null;
402
404
  uuid: string | null;
@@ -408,7 +410,7 @@ export type OutputFileEntry<TStatus extends OutputFileStatus = OutputFileStatus>
408
410
  isRemoved: false;
409
411
  errors: OutputError<OutputFileErrorType>[];
410
412
  }
411
- | {
413
+ | {
412
414
  status: 'uploading';
413
415
  fileInfo: null;
414
416
  uuid: null;
@@ -420,7 +422,7 @@ export type OutputFileEntry<TStatus extends OutputFileStatus = OutputFileStatus>
420
422
  isRemoved: false;
421
423
  errors: [];
422
424
  }
423
- | {
425
+ | {
424
426
  status: 'removed';
425
427
  fileInfo: UploadcareFile | null;
426
428
  uuid: string | null;
@@ -432,7 +434,7 @@ export type OutputFileEntry<TStatus extends OutputFileStatus = OutputFileStatus>
432
434
  isRemoved: true;
433
435
  errors: OutputError<OutputFileErrorType>[];
434
436
  }
435
- | {
437
+ | {
436
438
  status: 'idle';
437
439
  fileInfo: null;
438
440
  uuid: null;
@@ -444,7 +446,7 @@ export type OutputFileEntry<TStatus extends OutputFileStatus = OutputFileStatus>
444
446
  isRemoved: false;
445
447
  errors: [];
446
448
  }
447
- );
449
+ );
448
450
 
449
451
  export type OutputCollectionStatus = 'idle' | 'uploading' | 'success' | 'failed';
450
452
 
@@ -468,43 +470,43 @@ export type OutputCollectionState<
468
470
  } & (TGroupFlag extends 'has-group'
469
471
  ? { group: UploadcareGroup }
470
472
  : TGroupFlag extends 'maybe-has-group'
471
- ? { group: UploadcareGroup | null }
472
- : never) &
473
+ ? { group: UploadcareGroup | null }
474
+ : never) &
473
475
  (
474
476
  | {
475
- status: 'idle';
476
- isFailed: false;
477
- isUploading: false;
478
- isSuccess: false;
479
- errors: [];
480
- allEntries: OutputFileEntry<'idle' | 'success'>[];
481
- }
477
+ status: 'idle';
478
+ isFailed: false;
479
+ isUploading: false;
480
+ isSuccess: false;
481
+ errors: [];
482
+ allEntries: OutputFileEntry<'idle' | 'success'>[];
483
+ }
482
484
  | {
483
- status: 'uploading';
484
- isFailed: false;
485
- isUploading: true;
486
- isSuccess: false;
487
- errors: [];
488
- allEntries: OutputFileEntry[];
489
- }
485
+ status: 'uploading';
486
+ isFailed: false;
487
+ isUploading: true;
488
+ isSuccess: false;
489
+ errors: [];
490
+ allEntries: OutputFileEntry[];
491
+ }
490
492
  | {
491
- status: 'success';
492
- isFailed: false;
493
- isUploading: false;
494
- isSuccess: true;
495
- errors: [];
496
- allEntries: OutputFileEntry<'success'>[];
497
- }
493
+ status: 'success';
494
+ isFailed: false;
495
+ isUploading: false;
496
+ isSuccess: true;
497
+ errors: [];
498
+ allEntries: OutputFileEntry<'success'>[];
499
+ }
498
500
  | {
499
- status: 'failed';
500
- isFailed: true;
501
- isUploading: false;
502
- isSuccess: false;
503
- errors: OutputError<OutputCollectionErrorType>[];
504
- allEntries: OutputFileEntry[];
505
- }
501
+ status: 'failed';
502
+ isFailed: true;
503
+ isUploading: false;
504
+ isSuccess: false;
505
+ errors: OutputError<OutputCollectionErrorType>[];
506
+ allEntries: OutputFileEntry[];
507
+ }
506
508
  );
507
509
 
508
510
  export { EventType, EventPayload } from '../blocks/UploadCtxProvider/EventEmitter';
509
511
 
510
- export {};
512
+ export { };