@bluepic/embed 0.6.17 → 0.6.19

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/main.mjs CHANGED
@@ -61095,8 +61095,8 @@ function ER(e) {
61095
61095
  };
61096
61096
  }
61097
61097
  function DR(e, t) {
61098
- let { hours: n, minutes: r, seconds: i, milliseconds: a } = ER(e);
61099
- return `${n.toString().padStart(2, "0")}:${r.toString().padStart(2, "0")}:${i.toString().padStart(2, "0")}${t}${a.toString().padEnd(3, "0")}`;
61098
+ let { hours: n, minutes: r, seconds: i, milliseconds: a } = ER(Math.round(e));
61099
+ return `${n.toString().padStart(2, "0")}:${r.toString().padStart(2, "0")}:${i.toString().padStart(2, "0")}${t}${a.toString().padStart(3, "0")}`;
61100
61100
  }
61101
61101
  //#endregion
61102
61102
  //#region src/components/BxTable.vue?vue&type=script&setup=true&lang.ts
@@ -64454,8 +64454,8 @@ function uB(e, t, n, r, i, a, o, s, c, u, d, f, p, m, h, g, _, v = R(void 0), y
64454
64454
  campaignId: o.value ?? -1,
64455
64455
  data: t.value,
64456
64456
  caption: v.value ?? e.value?.caption
64457
- });
64458
- if (g.length === 0) {
64457
+ }), O = E.value && l === "image" && !!x.value;
64458
+ if (g.length === 0 && !O) {
64459
64459
  if (f.download && !f.webhook && !f.redirect) {
64460
64460
  await hB(a, _), await d(), u.download({
64461
64461
  trigger: "auto",
@@ -64481,10 +64481,10 @@ function uB(e, t, n, r, i, a, o, s, c, u, d, f, p, m, h, g, _, v = R(void 0), y
64481
64481
  assets: await Promise.all(N.value)
64482
64482
  });
64483
64483
  }
64484
- let O;
64485
- if (E.value && l === "image" && x.value) {
64484
+ let A;
64485
+ if (O && x.value) {
64486
64486
  let n = nD(t.value), i = k.value, l = e.value?.format ?? "png", f = D.value, p = /* @__PURE__ */ new Map();
64487
- S.value?.activate(), O = nB({
64487
+ S.value?.activate(), A = nB({
64488
64488
  canvases: x.value,
64489
64489
  primaryCanvasId: y.id,
64490
64490
  primaryFiles: a,
@@ -64535,7 +64535,7 @@ function uB(e, t, n, r, i, a, o, s, c, u, d, f, p, m, h, g, _, v = R(void 0), y
64535
64535
  y: 1
64536
64536
  }
64537
64537
  },
64538
- multiCanvas: O,
64538
+ multiCanvas: A,
64539
64539
  snapshots: S.value?.snapshots,
64540
64540
  snapshotFailed: S.value?.snapshotFailed,
64541
64541
  demandSnapshots: S.value?.demand
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bluepic/embed",
3
- "version": "0.6.17",
3
+ "version": "0.6.19",
4
4
  "description": "Bluepic embed sdk",
5
5
  "type": "module",
6
6
  "sideEffects": false,