@uploadcare/file-uploader 1.13.1-alpha.0 → 1.13.1

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":"ProgressBar.d.ts","sourceRoot":"","sources":["ProgressBar.js"],"names":[],"mappings":"AAEA;IACE,qBAAqB;IACrB,eAAW;IAEX,sBAAsB;IACtB,kBAAgB;IAEhB,WAIE;CA+CH;;;;sBA5DqB,yBAAyB"}
1
+ {"version":3,"file":"ProgressBar.d.ts","sourceRoot":"","sources":["ProgressBar.js"],"names":[],"mappings":"AAEA;IACE,qBAAqB;IACrB,eAAW;IAEX,sBAAsB;IACtB,kBAAgB;IAEhB,WAIE;CA8CH;;;;sBA3DqB,yBAAyB"}
@@ -16,11 +16,10 @@ export class ProgressBar extends Block {
16
16
  initCallback() {
17
17
  super.initCallback();
18
18
  this.defineAccessor('value', (value) => {
19
- if (!value) return;
19
+ if (value === undefined || value === null) return;
20
20
  const prevValue = this._value;
21
21
  this._value = value;
22
22
  if (!this._visible) return;
23
-
24
23
  if (value === 100) {
25
24
  this.ref.realProgressLine.addEventListener(
26
25
  'transitionend',
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.13.0";
3
+ export const PACKAGE_VERSION: "1.13.1";
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.13.0';
3
+ export const PACKAGE_VERSION = '1.13.1';
package/index.ssr.d.ts CHANGED
@@ -530,7 +530,7 @@ export const Modal: {
530
530
  bindAttributes: () => void;
531
531
  };
532
532
  export const PACKAGE_NAME: "blocks";
533
- export const PACKAGE_VERSION: "1.13.0";
533
+ export const PACKAGE_VERSION: "1.13.1";
534
534
  export const PresenceToggle: {
535
535
  new (): {};
536
536
  template: string;
package/index.ssr.js CHANGED
@@ -1027,7 +1027,7 @@ export const Modal = class {
1027
1027
  static bindAttributes = () => {};
1028
1028
  };
1029
1029
  export const PACKAGE_NAME = `blocks`;
1030
- export const PACKAGE_VERSION = `1.13.0`;
1030
+ export const PACKAGE_VERSION = `1.13.1`;
1031
1031
  export const PresenceToggle = class {
1032
1032
  static template = `<slot></slot> `;
1033
1033
  static reg = () => {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uploadcare/file-uploader",
3
- "version": "1.13.1-alpha.0",
3
+ "version": "1.13.1",
4
4
  "description": "Building blocks for Uploadcare products integration",
5
5
  "keywords": [
6
6
  "web components",