@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.
- package/blocks/CloudImageEditor/src/CropFrame.d.ts +7 -0
- package/blocks/CloudImageEditor/src/CropFrame.d.ts.map +1 -1
- package/blocks/CloudImageEditor/src/CropFrame.js +50 -0
- package/blocks/CloudImageEditor/src/css/common.css +4 -0
- package/blocks/Config/initialConfig.d.ts.map +1 -1
- package/blocks/Config/initialConfig.js +2 -0
- package/blocks/Config/normalizeConfigValue.d.ts.map +1 -1
- package/blocks/Config/normalizeConfigValue.js +1 -0
- package/env.d.ts +1 -1
- package/env.js +1 -1
- package/index.ssr.d.ts +1 -1
- package/index.ssr.d.ts.map +1 -1
- package/index.ssr.js +3 -1
- package/package.json +1 -1
- package/types/exported.d.ts +51 -49
- package/web/file-uploader.iife.min.js +4 -4
- package/web/file-uploader.min.js +2 -2
- package/web/uc-basic.min.css +1 -1
- package/web/uc-cloud-image-editor.min.css +1 -1
- package/web/uc-cloud-image-editor.min.js +1 -1
- package/web/uc-file-uploader-inline.min.css +1 -1
- package/web/uc-file-uploader-inline.min.js +2 -2
- package/web/uc-file-uploader-minimal.min.css +1 -1
- package/web/uc-file-uploader-minimal.min.js +2 -2
- package/web/uc-file-uploader-regular.min.css +1 -1
- package/web/uc-file-uploader-regular.min.js +2 -2
- package/web/uc-img.min.js +1 -1
|
@@ -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,
|
|
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(
|
|
@@ -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,
|
|
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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"normalizeConfigValue.d.ts","sourceRoot":"","sources":["normalizeConfigValue.js"],"names":[],"mappings":"
|
|
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"}
|
package/env.d.ts
CHANGED
package/env.js
CHANGED
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.
|
|
553
|
+
export const PACKAGE_VERSION: "1.16.0";
|
|
554
554
|
export const PresenceToggle: {
|
|
555
555
|
new (): {};
|
|
556
556
|
template: string;
|
package/index.ssr.d.ts.map
CHANGED
|
@@ -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;;;;;;;
|
|
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;;;;;;;EA8GE;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;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+CE;AACF;;;;;;;;EAWE;AACF;;;;;;EAwBE;AACF;;;;;;;EAUE;AACF;;;;;;;;EAWE;;;;;;;;;AASF,oCAAqC;AACrC,uCAAwC;AACxC;;;;;;;EAME;AACF;;;;;;;EASE;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgDE;AACF;;;;;;;EAME;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0DE;AACF;;;;;;;EAeE;AACF;;;;;;EAKE;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsDE;AACF;;;;;;EAKE;AACF;;;;;;EAKE;AACF;;;;;;;;;;;;;;;;EAeE;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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.
|
|
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
package/types/exported.d.ts
CHANGED
|
@@ -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
|
-
|
|
296
|
-
|
|
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
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
357
|
+
type?: T;
|
|
358
|
+
message: string;
|
|
359
|
+
payload?: OutputErrorTypePayload[T];
|
|
360
|
+
}
|
|
359
361
|
: T extends keyof OutputErrorTypePayload
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
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
|
-
|
|
472
|
-
|
|
473
|
+
? { group: UploadcareGroup | null }
|
|
474
|
+
: never) &
|
|
473
475
|
(
|
|
474
476
|
| {
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
477
|
+
status: 'idle';
|
|
478
|
+
isFailed: false;
|
|
479
|
+
isUploading: false;
|
|
480
|
+
isSuccess: false;
|
|
481
|
+
errors: [];
|
|
482
|
+
allEntries: OutputFileEntry<'idle' | 'success'>[];
|
|
483
|
+
}
|
|
482
484
|
| {
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
485
|
+
status: 'uploading';
|
|
486
|
+
isFailed: false;
|
|
487
|
+
isUploading: true;
|
|
488
|
+
isSuccess: false;
|
|
489
|
+
errors: [];
|
|
490
|
+
allEntries: OutputFileEntry[];
|
|
491
|
+
}
|
|
490
492
|
| {
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
493
|
+
status: 'success';
|
|
494
|
+
isFailed: false;
|
|
495
|
+
isUploading: false;
|
|
496
|
+
isSuccess: true;
|
|
497
|
+
errors: [];
|
|
498
|
+
allEntries: OutputFileEntry<'success'>[];
|
|
499
|
+
}
|
|
498
500
|
| {
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
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 { };
|