@salina-app/media-editor 0.1.74 → 0.1.75

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 +10 -11
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -76032,15 +76032,7 @@ const s0e = ({ className: t }) => /* @__PURE__ */ ut(
76032
76032
  (J) => J.setTrimmedFilePath
76033
76033
  ), [ne, se] = xn(!1), [ce, he] = xn(!1), [xe, ve] = xn([]), ge = async (J, le) => {
76034
76034
  try {
76035
- if (j(""), !J.includes("merged")) {
76036
- E([]), P([]), M("");
76037
- const we = await x({
76038
- path_directory: J,
76039
- access_token: c
76040
- });
76041
- we.status || we.success ? N(we.data.files) : N([]), p({ source: n, access_token: c }), B(null);
76042
- }
76043
- if (e.includes("Merge") || J.includes("merged")) {
76035
+ if (j(""), J.includes("merged") || (E([]), P([]), M(""), p({ source: n, access_token: c }), B(null)), e.includes("Merge") || J.includes("merged")) {
76044
76036
  const Pe = n.split("/")[2], qe = e.replace(new RegExp(Pe.replace(/\s+/g, "_"), "g"), "").split(".")[0], Xe = await S({
76045
76037
  title: `${Pe}${qe}`,
76046
76038
  access_token: c
@@ -76153,8 +76145,15 @@ const s0e = ({ className: t }) => /* @__PURE__ */ ut(
76153
76145
  {
76154
76146
  type: "button",
76155
76147
  className: "flex h-auto min-h-[32px] w-full cursor-pointer flex-row flex-wrap items-center text-left text-sm",
76156
- onClick: () => {
76157
- ae(n), a && n.split("/").length === 6 && q(n);
76148
+ onClick: async () => {
76149
+ if (ae(n), n.split("/").filter(Boolean).length === 5) {
76150
+ const le = await x({
76151
+ path_directory: n,
76152
+ access_token: c
76153
+ });
76154
+ le.status || le.success ? N(le.data.files) : N([]);
76155
+ }
76156
+ a && n.split("/").length === 6 && q(n);
76158
76157
  },
76159
76158
  children: [
76160
76159
  /* @__PURE__ */ H(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salina-app/media-editor",
3
- "version": "0.1.74",
3
+ "version": "0.1.75",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/main.d.ts",