@uploadcare/file-uploader 1.16.1 → 1.16.2

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.
@@ -1 +1 @@
1
- {"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["Modal.js"],"names":[],"mappings":"AAQA;IAEE,kCAAoC;IAIlC;;MAGC;IAGH,iCAEE;IAEF,yBAME;IAEF,+BAEE;IAEF,uBAAuB;IACvB,yBAA0B,GADd,KACe,UAGzB;IAFA,eAAe;IACf,yBAAgC;IAGlC,uBAAuB;IACvB,uBAAwB,GADZ,KACa,UAIvB;IAEF,aAWC;IAED,aAOC;IAED;;;OAGG;IACH,yBASC;IAED;;;OAGG;IACH,0BAMC;IAED,eAAe;IACf,6BAMC;IAmBC;;;4BAAuD;IACvD;;;4BAAyD;IACzD,8CAA+D;CAmBlE;;;;sBAhJqB,yBAAyB"}
1
+ {"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["Modal.js"],"names":[],"mappings":"AAQA;IAEE,kCAAoC;IAIlC;;MAGC;IAGH,iCAEE;IAEF,yBAME;IAEF,+BAEE;IAEF,uBAAuB;IACvB,yBAA0B,GADd,KACe,UAGzB;IAFA,eAAe;IACf,yBAAgC;IAGlC,uBAAuB;IACvB,uBAAwB,GADZ,KACa,UAIvB;IAEF,aAWC;IAED,aAOC;IAED;;;OAGG;IACH,yBASC;IAED;;;OAGG;IACH,0BAUC;IAED,eAAe;IACf,6BAUC;IAmBC;;;4BAAuD;IACvD;;;4BAAyD;IACzD,8CAA+D;CAmBlE;;;;sBAxJqB,yBAAyB"}
@@ -93,7 +93,11 @@ export class Modal extends Block {
93
93
  this.hide();
94
94
  }
95
95
 
96
- this.emit(EventType.MODAL_CLOSE, { modalId: id }, { debounce: true });
96
+ this.emit(
97
+ EventType.MODAL_CLOSE,
98
+ { modalId: id, hasActiveModals: this.modalManager.hasActiveModals },
99
+ { debounce: true },
100
+ );
97
101
  }
98
102
 
99
103
  /** @private */
@@ -101,7 +105,11 @@ export class Modal extends Block {
101
105
  this.hide();
102
106
 
103
107
  if (LAST_ACTIVE_MODAL_ID === this.id) {
104
- this.emit(EventType.MODAL_CLOSE, { modalId: LAST_ACTIVE_MODAL_ID }, { debounce: true });
108
+ this.emit(
109
+ EventType.MODAL_CLOSE,
110
+ { modalId: LAST_ACTIVE_MODAL_ID, hasActiveModals: this.modalManager.hasActiveModals },
111
+ { debounce: true },
112
+ );
105
113
  }
106
114
  }
107
115
 
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.16.1";
3
+ export const PACKAGE_VERSION: "1.16.2";
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.16.1';
3
+ export const PACKAGE_VERSION = '1.16.2';
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.16.1";
553
+ export const PACKAGE_VERSION: "1.16.2";
554
554
  export const PresenceToggle: {
555
555
  new (): {};
556
556
  template: string;
package/index.ssr.js CHANGED
@@ -1061,7 +1061,7 @@ export const ModalEvents = {
1061
1061
  DESTROY: "modal:destroy",
1062
1062
  };
1063
1063
  export const PACKAGE_NAME = `blocks`;
1064
- export const PACKAGE_VERSION = `1.16.1`;
1064
+ export const PACKAGE_VERSION = `1.16.2`;
1065
1065
  export const PresenceToggle = class {
1066
1066
  static template = `<slot></slot> `;
1067
1067
  static reg = () => {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uploadcare/file-uploader",
3
- "version": "1.16.1",
3
+ "version": "1.16.2",
4
4
  "description": "Building blocks for Uploadcare products integration",
5
5
  "keywords": [
6
6
  "web components",