@floegence/floe-webapp-core 0.86.52 → 0.86.53

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,8 +1,8 @@
1
- import { createSignal as l, onCleanup as z, batch as d } from "solid-js";
2
- const J = {
1
+ import { createSignal as l, onCleanup as U, batch as d } from "solid-js";
2
+ const z = {
3
3
  favorites: "Favorites",
4
- favoriteDirectory: "Add directory to favorites",
5
- unfavoriteDirectory: "Remove directory from favorites",
4
+ favoriteDirectory: "Favorite",
5
+ unfavoriteDirectory: "Unfavorite",
6
6
  favoritesEmpty: "Star a directory to keep it here.",
7
7
  favoritesFilter: "Filter favorites by name or path",
8
8
  favoritesNoMatches: "No matching favorites",
@@ -45,11 +45,11 @@ function P(t, r = "") {
45
45
  !i || i === "." || (i === ".." ? f.pop() : f.push(i));
46
46
  return `/${f.join("/")}`;
47
47
  }
48
- function Q(t) {
48
+ function K(t) {
49
49
  const r = P(t);
50
50
  return r.slice(0, r.lastIndexOf("/")) || "/";
51
51
  }
52
- function U(t, r = "") {
52
+ function Q(t, r = "") {
53
53
  const e = P(r);
54
54
  return e && t === e ? "~" : e && e !== "/" && t.startsWith(`${e}/`) ? `~${t.slice(e.length)}` : t;
55
55
  }
@@ -67,16 +67,16 @@ function j(t, r) {
67
67
  throw new N("missingPath");
68
68
  }
69
69
  function V(t, r) {
70
- const [e, f] = l(null), [i, k] = l(""), [B, E] = l([]), [g, C] = l(""), [H, c] = l(!1), [$, u] = l(null), [I, q] = l(!1), [h, R] = l(!1);
71
- let y = 0, b = 0, A, m = /* @__PURE__ */ new Map();
72
- const G = () => h() && !H() && !$() && !!i() && P(g(), e()?.homePathAbs) === i(), L = () => {
70
+ const [e, f] = l(null), [i, k] = l(""), [B, E] = l([]), [g, C] = l(""), [H, c] = l(!1), [$, u] = l(null), [I, q] = l(!1), [h, L] = l(!1);
71
+ let y = 0, b = 0, R, m = /* @__PURE__ */ new Map();
72
+ const G = () => h() && !H() && !$() && !!i() && P(g(), e()?.homePathAbs) === i(), A = () => {
73
73
  y += 1, b += 1, m = /* @__PURE__ */ new Map();
74
74
  }, W = () => {
75
- L(), d(() => {
76
- R(!1), c(!1);
75
+ A(), d(() => {
76
+ L(!1), c(!1);
77
77
  });
78
78
  };
79
- z(W);
79
+ U(W);
80
80
  const F = async (n) => {
81
81
  if (!h() || !e()) return !1;
82
82
  const x = y, a = ++b, o = P(n, e()?.homePathAbs);
@@ -106,12 +106,12 @@ function V(t, r) {
106
106
  }), !1;
107
107
  }
108
108
  }, M = async (n) => {
109
- L();
109
+ A();
110
110
  const x = y;
111
- A = n;
111
+ R = n;
112
112
  const a = t();
113
113
  d(() => {
114
- R(!0), f(null), k(""), E([]), C(n ?? ""), c(!0), u(null), q(a.initialShowHidden ?? !a.loadDirectory);
114
+ L(!0), f(null), k(""), E([]), C(n ?? ""), c(!0), u(null), q(a.initialShowHidden ?? !a.loadDirectory);
115
115
  });
116
116
  try {
117
117
  const o = a.loadPathContext ? await a.loadPathContext() : a.pathContext;
@@ -120,7 +120,7 @@ function V(t, r) {
120
120
  const p = o ?? {
121
121
  homePathAbs: a.homePath ?? "",
122
122
  defaultRootId: "root",
123
- roots: [{ id: "root", label: a.homeLabel ?? J.root, pathAbs: "/" }]
123
+ roots: [{ id: "root", label: a.homeLabel ?? z.root, pathAbs: "/" }]
124
124
  };
125
125
  f(p);
126
126
  const s = n || p.roots.find((v) => v.id === p.defaultRootId)?.pathAbs;
@@ -154,15 +154,15 @@ function V(t, r) {
154
154
  q(n), await F(g() || i());
155
155
  },
156
156
  async retry() {
157
- e() ? await F(g() || i()) : await M(A);
157
+ e() ? await F(g() || i()) : await M(R);
158
158
  }
159
159
  };
160
160
  }
161
161
  export {
162
162
  N as PickerNavigationError,
163
163
  V as createFilesystemPickerDataSource,
164
- J as defaultPickerCopy,
165
- U as formatPickerPath,
164
+ z as defaultPickerCopy,
165
+ Q as formatPickerPath,
166
166
  P as parsePickerPath,
167
- Q as pickerParentPath
167
+ K as pickerParentPath
168
168
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@floegence/floe-webapp-core",
3
- "version": "0.86.52",
3
+ "version": "0.86.53",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",