@fluid-app/fluid-cli-theme-dev 0.1.628 → 0.1.630

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 (52) hide show
  1. package/dist/dist-cli-preview/.vite/manifest.json +254 -254
  2. package/dist/dist-cli-preview/account-screens.js +1 -1
  3. package/dist/dist-cli-preview/chunks/{Combobox-CbhFa2RI.js → Combobox-DGJF6eef.js} +5 -5
  4. package/dist/dist-cli-preview/chunks/{ContactsScreen-7yJ_Zduy.js → ContactsScreen-kXio3iGD.js} +20 -20
  5. package/dist/dist-cli-preview/chunks/MediaScreen-B71eJI6b.js +8 -0
  6. package/dist/dist-cli-preview/chunks/{MemberManagementProviders-D5Fu3TpD.js → MemberManagementProviders-Dv3CgPld.js} +6 -6
  7. package/dist/dist-cli-preview/chunks/{MemberShareablesScreen-BCsvCoG2.js → MemberShareablesScreen-CrUjMzzR.js} +21 -21
  8. package/dist/dist-cli-preview/chunks/{MessagingScreen-bItKo4fj.js → MessagingScreen-By7LjLVI.js} +10 -10
  9. package/dist/dist-cli-preview/chunks/{MobileActionSheet-DrHJOYX-.js → MobileActionSheet-qMZ3m1BF.js} +4 -4
  10. package/dist/dist-cli-preview/chunks/{MySiteScreen-eF9YmBP6.js → MySiteScreen-Px837-KC.js} +11 -11
  11. package/dist/dist-cli-preview/chunks/OrdersScreen-DeBpOwrt.js +9 -0
  12. package/dist/dist-cli-preview/chunks/{OrdersScreen-C1EGtqg8.js → OrdersScreen-DjwRZIxy.js} +8 -8
  13. package/dist/dist-cli-preview/chunks/PlaylistsScreen-quraA2TT.js +8 -0
  14. package/dist/dist-cli-preview/chunks/{PortalTenantClientProvider-Bvq8mmKg.js → PortalTenantClientProvider-CLmrO2fg.js} +1 -1
  15. package/dist/dist-cli-preview/chunks/{ProfileScreen-SxL37TXP.js → ProfileScreen-qTROVAha.js} +14 -14
  16. package/dist/dist-cli-preview/chunks/{ResponsiveDialog-CPerRvEe.js → ResponsiveDialog-DR-fHMJK.js} +2 -2
  17. package/dist/dist-cli-preview/chunks/{Select-1bTW9FVo.js → Select-DrTLVALd.js} +2 -2
  18. package/dist/dist-cli-preview/chunks/{SubscriptionsScreen-DwtOjrej.js → SubscriptionsScreen-DVVlSWnO.js} +3 -3
  19. package/dist/dist-cli-preview/chunks/{Textarea-CTzY34cJ.js → Textarea-IzZh0Pfp.js} +2 -2
  20. package/dist/dist-cli-preview/chunks/{account-screen-runtime-G5BF6PEE.js → account-screen-runtime-C8lMDfDL.js} +2095 -2067
  21. package/dist/dist-cli-preview/chunks/{arrow-left-DAYx572e.js → arrow-left-CJkHH4Jg.js} +1 -1
  22. package/dist/dist-cli-preview/chunks/{cli-preview-BGY80_hS.js → cli-preview-BolPpArY.js} +9 -9
  23. package/dist/dist-cli-preview/chunks/{client.gen-BWktYMYs.js → client.gen-pJAqgWpY.js} +1 -1
  24. package/dist/dist-cli-preview/chunks/{copy-CKAvntDc.js → copy-DW9LzXk7.js} +1 -1
  25. package/dist/dist-cli-preview/chunks/{countries-api-adapter-CTKL86Gs.js → countries-api-adapter-B8yZ_82o.js} +2 -2
  26. package/dist/dist-cli-preview/chunks/{create-card-entry-container-UpubIqWq.js → create-card-entry-container-BkN0Dhqk.js} +17 -17
  27. package/dist/dist-cli-preview/chunks/{hey-api-client-BX6gR7MZ.js → hey-api-client-BumHMBjP.js} +1 -1
  28. package/dist/dist-cli-preview/chunks/{index-glYnR-Hh.js → index-CYU-MZrg.js} +3 -3
  29. package/dist/dist-cli-preview/chunks/{index-DR6lUE-Z.js → index-DFrHmTxC.js} +1 -1
  30. package/dist/dist-cli-preview/chunks/{index-Dt97BE7Q.js → index-ijwz1qG_.js} +2 -2
  31. package/dist/dist-cli-preview/chunks/{map-pin-BJSimwS4.js → map-pin-D3wDCjbL.js} +1 -1
  32. package/dist/dist-cli-preview/chunks/{mount-account-screen-DsZslcTN.js → mount-account-screen-OWeUq2wH.js} +8 -8
  33. package/dist/dist-cli-preview/chunks/{navigate-account-screen-9NlvlPDl.js → navigate-account-screen-O4VF-TN1.js} +1 -1
  34. package/dist/dist-cli-preview/chunks/{schemas-BUAOetGH.js → schemas-CVvtmAr9.js} +2 -2
  35. package/dist/dist-cli-preview/chunks/{screen-route-slug-utils-DBp6KyZy.js → screen-route-slug-utils-ox5lRB88.js} +1 -1
  36. package/dist/dist-cli-preview/chunks/{search-CZx7btHq.js → search-Bloto9t9.js} +1 -1
  37. package/dist/dist-cli-preview/chunks/{sheet-haptics-context-CBHlvKbS.js → sheet-haptics-context-CD7T6hN_.js} +1 -1
  38. package/dist/dist-cli-preview/chunks/{sidebar-F9HCEgGk.js → sidebar-CN1PfrpQ.js} +2 -2
  39. package/dist/dist-cli-preview/chunks/{sortable.esm-CB79OmoN.js → sortable.esm-B4sp_xaL.js} +2 -2
  40. package/dist/dist-cli-preview/chunks/{store-api-context-DvEoj9rL.js → store-api-context-Bf5GjbFO.js} +1 -1
  41. package/dist/dist-cli-preview/chunks/{translation-api-context-factory-DMqWGbp5.js → translation-api-context-factory-BpilYMox.js} +1 -1
  42. package/dist/dist-cli-preview/chunks/{use-mobile-BMB157P-.js → use-mobile-D1-qhgeU.js} +1 -1
  43. package/dist/dist-cli-preview/chunks/{use-optional-store-BRwToSKT.js → use-optional-store-Dw_b7sBO.js} +2 -2
  44. package/dist/dist-cli-preview/chunks/{use-store-Bzxd8Ld_.js → use-store-CbbJzg7Q.js} +3 -3
  45. package/dist/dist-cli-preview/chunks/{useInfiniteQuery-BCRMd-Bm.js → useInfiniteQuery-B2bH0BDw.js} +1 -1
  46. package/dist/dist-cli-preview/chunks/{users-ByKgAYre.js → users-iw23utkG.js} +1 -1
  47. package/dist/index.mjs +57 -3
  48. package/dist/index.mjs.map +1 -1
  49. package/package.json +2 -2
  50. package/dist/dist-cli-preview/chunks/MediaScreen-CHAy_s7_.js +0 -8
  51. package/dist/dist-cli-preview/chunks/OrdersScreen-Ci4Pqgwc.js +0 -9
  52. package/dist/dist-cli-preview/chunks/PlaylistsScreen-BqrI_CbF.js +0 -8
@@ -1,4 +1,4 @@
1
- import { c as o } from "./account-screen-runtime-G5BF6PEE.js";
1
+ import { c as o } from "./account-screen-runtime-C8lMDfDL.js";
2
2
  /**
3
3
  * @license lucide-react v0.575.0 - ISC
4
4
  *
@@ -4,56 +4,56 @@ var l = (t, e, s) => b(t, typeof e != "symbol" ? e + "" : e, s);
4
4
  const p = {
5
5
  subscriptions: async () => {
6
6
  const [t, e] = await Promise.all([
7
- import("./SubscriptionsScreen-DwtOjrej.js"),
7
+ import("./SubscriptionsScreen-DVVlSWnO.js"),
8
8
  import("./subscriptions-CApMYo4X.js")
9
9
  ]);
10
10
  return { Component: t.SubscriptionsScreen, styles: e.default };
11
11
  },
12
12
  orders: async () => {
13
13
  const [t, e] = await Promise.all([
14
- import("./OrdersScreen-Ci4Pqgwc.js"),
14
+ import("./OrdersScreen-DeBpOwrt.js"),
15
15
  import("./orders-BHDWH1fk.js")
16
16
  ]);
17
17
  return { Component: t.OrdersScreen, styles: e.default };
18
18
  },
19
19
  media: async () => {
20
20
  const [t, e] = await Promise.all([
21
- import("./MediaScreen-CHAy_s7_.js"),
21
+ import("./MediaScreen-B71eJI6b.js"),
22
22
  import("./media-7vUjJ3C6.js")
23
23
  ]);
24
24
  return { Component: t.MediaScreen, styles: e.default };
25
25
  },
26
26
  playlists: async () => {
27
27
  const [t, e] = await Promise.all([
28
- import("./PlaylistsScreen-BqrI_CbF.js"),
28
+ import("./PlaylistsScreen-quraA2TT.js"),
29
29
  import("./playlists-7vUjJ3C6.js")
30
30
  ]);
31
31
  return { Component: t.PlaylistsScreen, styles: e.default };
32
32
  },
33
33
  profile: async () => {
34
34
  const [t, e] = await Promise.all([
35
- import("./ProfileScreen-SxL37TXP.js"),
35
+ import("./ProfileScreen-qTROVAha.js"),
36
36
  import("./profile-DWuGW-yL.js")
37
37
  ]);
38
38
  return { Component: t.default, styles: e.default };
39
39
  },
40
40
  messaging: async () => {
41
41
  const [t, e] = await Promise.all([
42
- import("./MessagingScreen-bItKo4fj.js"),
42
+ import("./MessagingScreen-By7LjLVI.js"),
43
43
  import("./messaging-CkGDp6PW.js")
44
44
  ]);
45
45
  return { Component: t.default, styles: e.default };
46
46
  },
47
47
  contacts: async () => {
48
48
  const [t, e] = await Promise.all([
49
- import("./ContactsScreen-7yJ_Zduy.js"),
49
+ import("./ContactsScreen-kXio3iGD.js"),
50
50
  import("./contacts-BVcLgWkz.js")
51
51
  ]);
52
52
  return { Component: t.default, styles: e.default };
53
53
  },
54
54
  "my-site": async () => {
55
55
  const [t, e] = await Promise.all([
56
- import("./MySiteScreen-eF9YmBP6.js"),
56
+ import("./MySiteScreen-Px837-KC.js"),
57
57
  import("./mysite-f4Rrey_c.js")
58
58
  ]);
59
59
  return { Component: t.default, styles: e.default };
@@ -132,7 +132,7 @@ function h(t = "fluid-account-screen", e, s = !1) {
132
132
  this.status(!1);
133
133
  try {
134
134
  const [a, i] = await Promise.all([
135
- import("./mount-account-screen-DsZslcTN.js"),
135
+ import("./mount-account-screen-OWeUq2wH.js"),
136
136
  w(r)
137
137
  ]);
138
138
  if (!this.isConnected || this.generation !== n) return;
@@ -1,7 +1,7 @@
1
1
  var Y = Object.defineProperty;
2
2
  var Z = (t, e, r) => e in t ? Y(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
3
  var v = (t, e, r) => Z(t, typeof e != "symbol" ? e + "" : e, r);
4
- import { aP as O, aO as ee, au as C } from "./account-screen-runtime-G5BF6PEE.js";
4
+ import { aP as O, aO as ee, au as C } from "./account-screen-runtime-C8lMDfDL.js";
5
5
  function j(t) {
6
6
  if (typeof t != "string")
7
7
  return;
@@ -1,4 +1,4 @@
1
- import { c } from "./account-screen-runtime-G5BF6PEE.js";
1
+ import { c } from "./account-screen-runtime-C8lMDfDL.js";
2
2
  /**
3
3
  * @license lucide-react v0.575.0 - ISC
4
4
  *
@@ -1,5 +1,5 @@
1
- import { l as i } from "./account-screen-runtime-G5BF6PEE.js";
2
- import { c as p, a as l } from "./client.gen-BWktYMYs.js";
1
+ import { l as i } from "./account-screen-runtime-C8lMDfDL.js";
2
+ import { c as p, a as l } from "./client.gen-pJAqgWpY.js";
3
3
  const c = i.createContext(null), A = c.Provider;
4
4
  function E() {
5
5
  const e = i.use(c);
@@ -1,24 +1,24 @@
1
1
  var qs = Object.defineProperty;
2
2
  var Us = (e, n, t) => n in e ? qs(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
3
3
  var q = (e, n, t) => Us(e, typeof n != "symbol" ? n + "" : n, t);
4
- import { c as at, l as m, H as Pt, as as Gs, j as i, G as Ws, J as en, O as Gn, K as dt, al as ot, am as Ks, at as Ys, X as le, _ as Ne, n as Qs, Y as Ae, a6 as ai, au as Xs, aj as Wn, $ as Z, an as tn, a7 as ve, av as ii, aw as Et, ax as Zs, Z as l, a1 as si, ay as Js, az as eo, aA as to, aB as no, B as oi, ak as ci, ar as Fe, ap as Qr, P as di, aC as ui, a3 as ro, a2 as lo, aD as ao, aE as io, ah as so } from "./account-screen-runtime-G5BF6PEE.js";
5
- import { u as mi } from "./PortalTenantClientProvider-Bvq8mmKg.js";
6
- import { k as hi, l as oo, m as co, n as uo, o as mo, q as ho, r as fo, t as po, u as vo, v as go, w as yo, x as xo, y as _o } from "./hey-api-client-BX6gR7MZ.js";
7
- import { a as bo, c as wo, b as Eo, u as $o } from "./translation-api-context-factory-DMqWGbp5.js";
8
- import { u as pe, C as $t, f as Xr, o as Ft, d as Tt, s as de, g as Fo, n as fn } from "./schemas-BUAOetGH.js";
9
- import { I as nn, B as fi, a as pi, b as Er, c as vi, S as oe, d as Co, e as zo } from "./sheet-haptics-context-CBHlvKbS.js";
10
- import { u as it, r as En, p as Kn, d as Mo, n as $n, i as Fn, e as Cn, I as Yn, R as gi, b as rn, P as Qn, g as No } from "./MemberManagementProviders-D5Fu3TpD.js";
11
- import { u as So } from "./useInfiniteQuery-BCRMd-Bm.js";
12
- import { u as Zr } from "./countries-api-adapter-CTKL86Gs.js";
13
- import { E as Fl, D as yi, a as xi, b as _i, c as kt, i as Cl, P as Xn, g as Zn, h as Jn, j as zl, M as Po } from "./MobileActionSheet-DrHJOYX-.js";
14
- import { u as ht, a as jo } from "./sidebar-F9HCEgGk.js";
15
- import { M as Jr, f as Ml, T as zn, R as Ue, e as nt, D as bi, a as wi, b as Ei, i as Ao, c as Do, P as Ho } from "./ResponsiveDialog-CPerRvEe.js";
16
- import { T as $i, C as el, a as Fi, P as Ci, b as ko, M as To, B as Io } from "./Textarea-CTzY34cJ.js";
17
- import { P as H, u as Lo } from "./use-store-Bzxd8Ld_.js";
18
- import { S as ln, e as an, f as sn, g as on, h as cn, d as zi } from "./Select-1bTW9FVo.js";
4
+ import { c as at, l as m, H as Pt, as as Gs, j as i, G as Ws, J as en, O as Gn, K as dt, al as ot, am as Ks, at as Ys, X as le, _ as Ne, n as Qs, Y as Ae, a6 as ai, au as Xs, aj as Wn, $ as Z, an as tn, a7 as ve, av as ii, aw as Et, ax as Zs, Z as l, a1 as si, ay as Js, az as eo, aA as to, aB as no, B as oi, ak as ci, ar as Fe, ap as Qr, P as di, aC as ui, a3 as ro, a2 as lo, aD as ao, aE as io, ah as so } from "./account-screen-runtime-C8lMDfDL.js";
5
+ import { u as mi } from "./PortalTenantClientProvider-CLmrO2fg.js";
6
+ import { k as hi, l as oo, m as co, n as uo, o as mo, q as ho, r as fo, t as po, u as vo, v as go, w as yo, x as xo, y as _o } from "./hey-api-client-BumHMBjP.js";
7
+ import { a as bo, c as wo, b as Eo, u as $o } from "./translation-api-context-factory-BpilYMox.js";
8
+ import { u as pe, C as $t, f as Xr, o as Ft, d as Tt, s as de, g as Fo, n as fn } from "./schemas-CVvtmAr9.js";
9
+ import { I as nn, B as fi, a as pi, b as Er, c as vi, S as oe, d as Co, e as zo } from "./sheet-haptics-context-CD7T6hN_.js";
10
+ import { u as it, r as En, p as Kn, d as Mo, n as $n, i as Fn, e as Cn, I as Yn, R as gi, b as rn, P as Qn, g as No } from "./MemberManagementProviders-Dv3CgPld.js";
11
+ import { u as So } from "./useInfiniteQuery-B2bH0BDw.js";
12
+ import { u as Zr } from "./countries-api-adapter-B8yZ_82o.js";
13
+ import { E as Fl, D as yi, a as xi, b as _i, c as kt, i as Cl, P as Xn, g as Zn, h as Jn, j as zl, M as Po } from "./MobileActionSheet-qMZ3m1BF.js";
14
+ import { u as ht, a as jo } from "./sidebar-CN1PfrpQ.js";
15
+ import { M as Jr, f as Ml, T as zn, R as Ue, e as nt, D as bi, a as wi, b as Ei, i as Ao, c as Do, P as Ho } from "./ResponsiveDialog-DR-fHMJK.js";
16
+ import { T as $i, C as el, a as Fi, P as Ci, b as ko, M as To, B as Io } from "./Textarea-IzZh0Pfp.js";
17
+ import { P as H, u as Lo } from "./use-store-CbbJzg7Q.js";
18
+ import { S as ln, e as an, f as sn, g as on, h as cn, d as zi } from "./Select-DrTLVALd.js";
19
19
  import { a as jt, b as tl, g as Mi, t as mt, c as et, m as Oo, d as Bo, e as Ro, f as Vo, s as $r, h as Ni, i as qo, j as Uo, k as Si, l as Go, n as Nl, o as Wo, w as Sl, p as Ko, q as lt, r as Yo } from "./isAfter-BR4uNpua.js";
20
- import { C as Qo, a as Xo, b as Zo, c as Jo, d as e2, e as t2, f as n2, g as Pi, h as r2 } from "./Combobox-CbhFa2RI.js";
21
- import { u as l2 } from "./use-optional-store-BRwToSKT.js";
20
+ import { C as Qo, a as Xo, b as Zo, c as Jo, d as e2, e as t2, f as n2, g as Pi, h as r2 } from "./Combobox-DGJF6eef.js";
21
+ import { u as l2 } from "./use-optional-store-Dw_b7sBO.js";
22
22
  /**
23
23
  * @license lucide-react v0.575.0 - ISC
24
24
  *
@@ -1,4 +1,4 @@
1
- import { c as d, a as h } from "./client.gen-BWktYMYs.js";
1
+ import { c as d, a as h } from "./client.gen-pJAqgWpY.js";
2
2
  const m = (e) => e.client.get({
3
3
  responseStyle: "data",
4
4
  url: "/api/account",
@@ -1,6 +1,6 @@
1
- import { c, l as p, as as $, N as H, j as i, G as I, M as E, J as y, K as b, O as R, X as m } from "./account-screen-runtime-G5BF6PEE.js";
2
- import { u as M, v as z, w as P } from "./MobileActionSheet-DrHJOYX-.js";
3
- import { k as F, M as G, a as U } from "./index-DR6lUE-Z.js";
1
+ import { c, l as p, as as $, N as H, j as i, G as I, M as E, J as y, K as b, O as R, X as m } from "./account-screen-runtime-C8lMDfDL.js";
2
+ import { u as M, v as z, w as P } from "./MobileActionSheet-qMZ3m1BF.js";
3
+ import { k as F, M as G, a as U } from "./index-DFrHmTxC.js";
4
4
  /**
5
5
  * @license lucide-react v0.575.0 - ISC
6
6
  *
@@ -1,4 +1,4 @@
1
- import { Z as K, l as ee, ai as nl, b4 as rl } from "./account-screen-runtime-G5BF6PEE.js";
1
+ import { Z as K, l as ee, ai as nl, b4 as rl } from "./account-screen-runtime-C8lMDfDL.js";
2
2
  function H(n) {
3
3
  this.content = n;
4
4
  }
@@ -1,5 +1,5 @@
1
- import { aQ as D, ax as di, l as s, Z as mi } from "./account-screen-runtime-G5BF6PEE.js";
2
- import { P as d } from "./use-store-Bzxd8Ld_.js";
1
+ import { aQ as D, ax as di, l as s, Z as mi } from "./account-screen-runtime-C8lMDfDL.js";
2
+ import { P as d } from "./use-store-CbbJzg7Q.js";
3
3
  const ui = /* @__PURE__ */ new Map([
4
4
  // https://github.com/guzzle/psr7/blob/2d9260799e713f1c475d3c5fdc3d6561ff7441b2/src/MimeType.php
5
5
  ["1km", "application/vnd.1000minds.decision-model+xml"],
@@ -1,4 +1,4 @@
1
- import { c } from "./account-screen-runtime-G5BF6PEE.js";
1
+ import { c } from "./account-screen-runtime-C8lMDfDL.js";
2
2
  /**
3
3
  * @license lucide-react v0.575.0 - ISC
4
4
  *
@@ -13,14 +13,14 @@ var Fi = (c, d, b, m) => ({
13
13
  return D(c, d, m);
14
14
  }
15
15
  });
16
- import { c as Qv, j as B, T as X1, L as Z1, a as V1, I as L1, C as K1, S as Yv, n as et, m as yv, b as ua, h as jv, Q as J1, d as rv, f as w1, o as gv, r as Sv, e as F1, g as bv, p as Tv, s as W1, i as $1, k as k1, u as I1, l as ea, q as P1, A as lr, t as tr, v as ar, w as ur, F as er, P as nr, x as ir, y as fr } from "./account-screen-runtime-G5BF6PEE.js";
17
- import { u as cr, S as sr } from "./sidebar-F9HCEgGk.js";
18
- import { S as or } from "./store-api-context-DvEoj9rL.js";
19
- import { s as dr, a as mr, b as vr, c as hr } from "./hey-api-client-BX6gR7MZ.js";
20
- import { M as yr } from "./use-mobile-BMB157P-.js";
21
- import { i as zv, n as rr } from "./navigate-account-screen-9NlvlPDl.js";
22
- import { a as gr } from "./cli-preview-BGY80_hS.js";
23
- import { A as Sr } from "./arrow-left-DAYx572e.js";
16
+ import { c as Qv, j as B, T as X1, L as Z1, a as V1, I as L1, C as K1, S as Yv, n as et, m as yv, b as ua, h as jv, Q as J1, d as rv, f as w1, o as gv, r as Sv, e as F1, g as bv, p as Tv, s as W1, i as $1, k as k1, u as I1, l as ea, q as P1, A as lr, t as tr, v as ar, w as ur, F as er, P as nr, x as ir, y as fr } from "./account-screen-runtime-C8lMDfDL.js";
17
+ import { u as cr, S as sr } from "./sidebar-CN1PfrpQ.js";
18
+ import { S as or } from "./store-api-context-Bf5GjbFO.js";
19
+ import { s as dr, a as mr, b as vr, c as hr } from "./hey-api-client-BumHMBjP.js";
20
+ import { M as yr } from "./use-mobile-D1-qhgeU.js";
21
+ import { i as zv, n as rr } from "./navigate-account-screen-O4VF-TN1.js";
22
+ import { a as gr } from "./cli-preview-BolPpArY.js";
23
+ import { A as Sr } from "./arrow-left-CJkHH4Jg.js";
24
24
  /**
25
25
  * @license lucide-react v0.575.0 - ISC
26
26
  *
@@ -1,4 +1,4 @@
1
- import { i as o } from "./cli-preview-BGY80_hS.js";
1
+ import { i as o } from "./cli-preview-BolPpArY.js";
2
2
  function i(n) {
3
3
  if (!s(n)) return;
4
4
  const e = new URL(`/${n}`, window.location.origin), r = new URL(window.location.href);
@@ -3,8 +3,8 @@ var $t = (e) => {
3
3
  };
4
4
  var xe = (e, t, n) => t.has(e) || $t("Cannot " + n);
5
5
  var $ = (e, t, n) => (xe(e, t, "read from private field"), n ? n.call(e) : t.get(e)), ee = (e, t, n) => t.has(e) ? $t("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), te = (e, t, n, r) => (xe(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n), ne = (e, t, n) => (xe(e, t, "access private method"), n);
6
- import { be as qe, bf as Le, bg as _n, bh as zr, c as kr, S as $r, bi as Or, g as Ot, n as vn, _ as Sr, l as fe, b as Zr, bj as Pr } from "./account-screen-runtime-G5BF6PEE.js";
7
- import { g as Er } from "./use-mobile-BMB157P-.js";
6
+ import { be as qe, bf as Le, bg as _n, bh as zr, c as kr, S as $r, bi as Or, g as Ot, n as vn, _ as Sr, l as fe, b as Zr, bj as Pr } from "./account-screen-runtime-C8lMDfDL.js";
7
+ import { g as Er } from "./use-mobile-D1-qhgeU.js";
8
8
  const St = (e, t, n) => {
9
9
  if (e && "reportValidity" in e) {
10
10
  const r = qe(n, t);
@@ -1,4 +1,4 @@
1
- import { l, j as h } from "./account-screen-runtime-G5BF6PEE.js";
1
+ import { l, j as h } from "./account-screen-runtime-C8lMDfDL.js";
2
2
  var $e = Object.defineProperty, Fe = (e, t) => {
3
3
  for (var r in t) $e(e, r, { get: t[r], enumerable: !0 });
4
4
  }, Ve = {};
@@ -1,4 +1,4 @@
1
- import { c } from "./account-screen-runtime-G5BF6PEE.js";
1
+ import { c } from "./account-screen-runtime-C8lMDfDL.js";
2
2
  /**
3
3
  * @license lucide-react v0.575.0 - ISC
4
4
  *
@@ -1,4 +1,4 @@
1
- import { j as a, X as t, aH as d, a3 as l, l as s } from "./account-screen-runtime-G5BF6PEE.js";
1
+ import { j as a, X as t, aH as d, a3 as l, l as s } from "./account-screen-runtime-C8lMDfDL.js";
2
2
  function c({
3
3
  ...e
4
4
  }) {
@@ -1,5 +1,5 @@
1
- import { l as i, j as r, aD as A, aE as G, bd as h, aI as O } from "./account-screen-runtime-G5BF6PEE.js";
2
- import { u as T } from "./use-mobile-BMB157P-.js";
1
+ import { l as i, j as r, aD as A, aE as G, bd as h, aI as O } from "./account-screen-runtime-C8lMDfDL.js";
2
+ import { u as T } from "./use-mobile-D1-qhgeU.js";
3
3
  function s(...a) {
4
4
  return A(G(a));
5
5
  }
@@ -1,5 +1,5 @@
1
- import { c as Ct, j as $e, X as Ke, l as a, Y as st, _ as ge, Z as z, ai as Le } from "./account-screen-runtime-G5BF6PEE.js";
2
- import { u as ve } from "./schemas-BUAOetGH.js";
1
+ import { c as Ct, j as $e, X as Ke, l as a, Y as st, _ as ge, Z as z, ai as Le } from "./account-screen-runtime-C8lMDfDL.js";
2
+ import { u as ve } from "./schemas-CVvtmAr9.js";
3
3
  /**
4
4
  * @license lucide-react v0.575.0 - ISC
5
5
  *
@@ -1,4 +1,4 @@
1
- import { l as r } from "./account-screen-runtime-G5BF6PEE.js";
1
+ import { l as r } from "./account-screen-runtime-C8lMDfDL.js";
2
2
  const t = r.createContext(null), i = t.Provider;
3
3
  function n() {
4
4
  const e = r.use(t);
@@ -1,4 +1,4 @@
1
- import { l } from "./account-screen-runtime-G5BF6PEE.js";
1
+ import { l } from "./account-screen-runtime-C8lMDfDL.js";
2
2
  function i(t, r) {
3
3
  const [a, e] = l.useState(
4
4
  () => t.getCached(r) ?? t.fallback
@@ -3,7 +3,7 @@ var v = (n) => {
3
3
  };
4
4
  var y = (n, t, s) => t.has(n) || v("Cannot " + s);
5
5
  var i = (n, t, s) => (y(n, t, "read from private field"), s ? s.call(n) : t.get(n)), p = (n, t, s) => t.has(n) ? v("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(n) : t.set(n, s), f = (n, t, s, e) => (y(n, t, "write to private field"), e ? e.call(n, s) : t.set(n, s), s), c = (n, t, s) => (y(n, t, "access private method"), s);
6
- import { bk as C, bl as R, n as E, l as g } from "./account-screen-runtime-G5BF6PEE.js";
6
+ import { bk as C, bl as R, n as E, l as g } from "./account-screen-runtime-C8lMDfDL.js";
7
7
  var m, u, o, l, h, d, P, O = (P = class extends C {
8
8
  constructor(t) {
9
9
  super();
@@ -1,5 +1,5 @@
1
- import { Y as t } from "./account-screen-runtime-G5BF6PEE.js";
2
- import { a as r } from "./store-api-context-DvEoj9rL.js";
1
+ import { Y as t } from "./account-screen-runtime-C8lMDfDL.js";
2
+ import { a as r } from "./store-api-context-Bf5GjbFO.js";
3
3
  const o = ["portalTenant", "store"], n = 300 * 1e3;
4
4
  function s(e) {
5
5
  return async () => (await e.fetchStore()).store;
@@ -1,6 +1,6 @@
1
- import { ax as m, Y as h } from "./account-screen-runtime-G5BF6PEE.js";
2
- import { u as S } from "./store-api-context-DvEoj9rL.js";
3
- import { S as R, f as l, a as P } from "./use-optional-store-BRwToSKT.js";
1
+ import { ax as m, Y as h } from "./account-screen-runtime-C8lMDfDL.js";
2
+ import { u as S } from "./store-api-context-Bf5GjbFO.js";
3
+ import { S as R, f as l, a as P } from "./use-optional-store-Dw_b7sBO.js";
4
4
  var p = { exports: {} }, a, u;
5
5
  function _() {
6
6
  if (u) return a;
@@ -1,4 +1,4 @@
1
- import { b5 as g, b6 as d, b7 as b, b8 as v } from "./account-screen-runtime-G5BF6PEE.js";
1
+ import { b5 as g, b6 as d, b7 as b, b8 as v } from "./account-screen-runtime-C8lMDfDL.js";
2
2
  var x = class extends g {
3
3
  constructor(e, t) {
4
4
  super(e, t);
@@ -1,4 +1,4 @@
1
- import { c as e } from "./account-screen-runtime-G5BF6PEE.js";
1
+ import { c as e } from "./account-screen-runtime-C8lMDfDL.js";
2
2
  /**
3
3
  * @license lucide-react v0.575.0 - ISC
4
4
  *
package/dist/index.mjs CHANGED
@@ -35,12 +35,66 @@ function toApiErrorBody(value) {
35
35
  /**
36
36
  * The single unwrap rule, shared by every producer of `ApiError`.
37
37
  *
38
- * `??` rather than `||` so an explicitly empty `errors` (`""`, `0`, `false`)
39
- * is preserved instead of silently falling back to the whole envelope.
38
+ * Rails sends two error envelopes. `ControllerAction#error_response` puts the
39
+ * bag under `errors`; `Api::Response.error` puts it under `error.details`,
40
+ * beside `error.message`. Both unwrap to the bag, `errors` first.
41
+ *
42
+ * `!= null` rather than a truthiness check so an explicitly empty `errors`
43
+ * (`""`, `0`, `false`) is preserved instead of silently falling back to the
44
+ * whole envelope.
45
+ * `details` is taken whatever its value, `null` included, so data from an
46
+ * `Api::Response` error is never the envelope.
40
47
  */
41
48
  function toApiErrorData(body) {
42
49
  if (!body) return null;
43
- return body.errors ?? body;
50
+ if (body.errors != null) return body.errors;
51
+ const error = toApiErrorBody(body.error);
52
+ if (error && error.details !== void 0) return withErrorMessage(toFieldErrorDetails(error.details), error.message);
53
+ return body;
54
+ }
55
+ /**
56
+ * `Api::Response` errors carry diagnostics such as `{ type: "not_provisioned" }`
57
+ * or `{ violations: [{ type, description }] }` in `details` as readily as
58
+ * field errors, and sometimes both. A field error is a list of message
59
+ * strings, at any depth, so only those entries make up the bag; an `errors`
60
+ * wrapper inside `details` is unwrapped as the envelope's own is. Details with
61
+ * no field error unwrap to an empty bag. The diagnostics stay on
62
+ * `ApiError.body`.
63
+ */
64
+ function toFieldErrorDetails(details) {
65
+ if (details === null) return null;
66
+ const record = toApiErrorBody(details);
67
+ const bag = record && record.errors != null ? toApiErrorBody(record.errors) : record;
68
+ return (bag && pickFieldErrors(bag)) ?? {};
69
+ }
70
+ /**
71
+ * Telling a field error from a diagnostic list such as
72
+ * `{ missing_keys: ["coupons.create"] }` by its content cannot be exact, so
73
+ * the bag also carries `error.message` as `{ error: { message } }`, after the
74
+ * field errors. `parseApiErrors` and the inlined `fluidToast` copies render
75
+ * that nested form first and without a field prefix, so the server's message
76
+ * is never hidden by whatever reaches the bag.
77
+ */
78
+ function withErrorMessage(fieldErrors, message) {
79
+ if (typeof message !== "string" || message.trim().length === 0) return fieldErrors;
80
+ const bag = toApiErrorBody(fieldErrors) ?? {};
81
+ if ("error" in bag) return fieldErrors;
82
+ return {
83
+ ...bag,
84
+ error: { message }
85
+ };
86
+ }
87
+ function pickFieldErrors(record) {
88
+ const picked = {};
89
+ for (const [key, value] of Object.entries(record)) {
90
+ const nested = toApiErrorBody(value);
91
+ const fieldErrors = isMessageList(value) ? value : nested && pickFieldErrors(nested);
92
+ if (fieldErrors) picked[key] = fieldErrors;
93
+ }
94
+ return Object.keys(picked).length > 0 ? picked : void 0;
95
+ }
96
+ function isMessageList(value) {
97
+ return Array.isArray(value) && value.length > 0 && value.every((message) => typeof message === "string");
44
98
  }
45
99
  //#endregion
46
100
  //#region ../../platform/api-client-core/src/fetch-client.ts