@salina-app/media-editor 0.2.15 → 0.2.16

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.
Files changed (2) hide show
  1. package/dist/index.js +6 -5
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -76470,12 +76470,13 @@ const y0e = ({ className: t }) => /* @__PURE__ */ ut(
76470
76470
  }
76471
76471
  }, ie = async (Q) => {
76472
76472
  if (ne)
76473
- ce(!1);
76473
+ ce(!1), X === Q && j("");
76474
76474
  else {
76475
76475
  re(!0);
76476
76476
  try {
76477
+ X && X !== Q && j("");
76477
76478
  const ue = await b(i + Q);
76478
- ve(U8(ue.data.files)), ce(!0);
76479
+ ve(U8(ue.data.files)), ce(!0), j(Q);
76479
76480
  } catch (ue) {
76480
76481
  console.log(ue);
76481
76482
  } finally {
@@ -76555,14 +76556,14 @@ const y0e = ({ className: t }) => /* @__PURE__ */ ut(
76555
76556
  t ? "flex" : "hidden"
76556
76557
  ),
76557
76558
  children: [
76558
- /* @__PURE__ */ z("div", { className: "flex flex-row items-center", children: /* @__PURE__ */ z(p0e, { color: ne ? "#E05044" : "" }) }),
76559
+ /* @__PURE__ */ z("div", { className: "flex flex-row items-center", children: /* @__PURE__ */ z(p0e, { color: X === r ? "#E05044" : "" }) }),
76559
76560
  /* @__PURE__ */ ut(
76560
76561
  "button",
76561
76562
  {
76562
76563
  type: "button",
76563
76564
  className: "flex h-auto min-h-[32px] w-full cursor-pointer flex-row flex-wrap items-center text-left text-sm",
76564
76565
  onClick: () => {
76565
- ie(r), l && r.split("/").length === 6 && j(r);
76566
+ ie(r);
76566
76567
  },
76567
76568
  children: [
76568
76569
  /* @__PURE__ */ z(
@@ -76570,7 +76571,7 @@ const y0e = ({ className: t }) => /* @__PURE__ */ ut(
76570
76571
  {
76571
76572
  className: ct(
76572
76573
  "max-w-[170px]",
76573
- ne && "text-primary-500"
76574
+ X === r && "text-primary-500"
76574
76575
  ),
76575
76576
  children: e
76576
76577
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salina-app/media-editor",
3
- "version": "0.2.15",
3
+ "version": "0.2.16",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/main.d.ts",