@scayle/storefront-devtools 0.2.0-alpha.4 → 0.2.0-alpha.5

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 (48) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/README.md +152 -110
  3. package/dist/_chunks/{coalesce-D-Q8NzYg.mjs → coalesce-MEMOF7Fy.mjs} +37 -54
  4. package/dist/index.mjs +7 -14
  5. package/dist/inertia/client/index.mjs +139 -165
  6. package/dist/inertia/core/capture.d.ts.map +1 -1
  7. package/dist/inertia/core/correlator.d.ts +9 -0
  8. package/dist/inertia/core/correlator.d.ts.map +1 -1
  9. package/dist/inertia/core/diff.d.ts.map +1 -1
  10. package/dist/inertia/core/feature-info.d.ts +9 -5
  11. package/dist/inertia/core/feature-info.d.ts.map +1 -1
  12. package/dist/inertia/core/features.d.ts.map +1 -1
  13. package/dist/inertia/core/history-capture.d.ts.map +1 -1
  14. package/dist/inertia/core/interceptors.d.ts.map +1 -1
  15. package/dist/inertia/core/markdown.d.ts.map +1 -1
  16. package/dist/inertia/core/store.d.ts.map +1 -1
  17. package/dist/inertia/core/types.d.ts +0 -1
  18. package/dist/inertia/core/types.d.ts.map +1 -1
  19. package/dist/orpc/client/index.mjs +98 -99
  20. package/dist/shared/redact.d.ts +4 -2
  21. package/dist/shared/redact.d.ts.map +1 -1
  22. package/dist/shared/safe-clone.d.ts +2 -1
  23. package/dist/shared/safe-clone.d.ts.map +1 -1
  24. package/dist/ui/assets/App-25PW_NzC.css +1 -0
  25. package/dist/ui/assets/App-BHsYAu8T.js +4 -0
  26. package/dist/ui/assets/{App-jiQKInbo.css → App-BqkxhJv0.css} +1 -1
  27. package/dist/ui/assets/App-CQ-b0jtB.js +5 -0
  28. package/dist/ui/assets/{App-Ctfis9Sq.js → App-DAtQapox.js} +1 -1
  29. package/dist/ui/assets/clipboard-Df0gl3GP.js +1 -0
  30. package/dist/ui/assets/{clipboard-BnEeWyfh.css → clipboard-sKCUppVL.css} +1 -1
  31. package/dist/ui/assets/panel-channel-BUrhmfqu.js +2 -0
  32. package/dist/ui/assets/panels-8x4hQPoN.css +1 -0
  33. package/dist/ui/assets/panels-C4yKz6cQ.js +2 -0
  34. package/dist/ui/assets/preload-helper-DLPYjEaE.js +2 -0
  35. package/dist/ui/assets/vue-CEnfmNPK.js +155 -0
  36. package/dist/ui/panels/index.html +3 -3
  37. package/dist/ui/vue/index.html +2 -2
  38. package/dist/vue-devtools/client/index.mjs +7 -42
  39. package/package.json +15 -14
  40. package/dist/ui/assets/App-BMyWBnLQ.js +0 -4
  41. package/dist/ui/assets/App-C5-JscO0.css +0 -1
  42. package/dist/ui/assets/App-CCUPtzNx.js +0 -5
  43. package/dist/ui/assets/clipboard-BY7CN-yK.js +0 -1
  44. package/dist/ui/assets/panel-channel-qxy-vGGq.js +0 -2
  45. package/dist/ui/assets/panels-B4LTsmli.css +0 -1
  46. package/dist/ui/assets/panels-BcOW2Xog.js +0 -2
  47. package/dist/ui/assets/preload-helper-CSlQMSTd.js +0 -2
  48. package/dist/ui/assets/vue-C0gCEhF7.js +0 -155
@@ -21,8 +21,8 @@ function e(e) {
21
21
  }
22
22
  };
23
23
  }
24
- var t = /* @__PURE__ */ new Set(["cancelToken", "signal"]);
25
- function n(e) {
24
+ var t = "[redacted]", n = /* @__PURE__ */ new Set(["cancelToken", "signal"]);
25
+ function r(e) {
26
26
  if (e instanceof Date) return e.toISOString();
27
27
  if (e instanceof URL || e instanceof RegExp) return e.toString();
28
28
  if (e instanceof Error) return {
@@ -31,71 +31,63 @@ function n(e) {
31
31
  stack: e.stack
32
32
  };
33
33
  }
34
- function r(e, n, r, a) {
35
- if (Array.isArray(e)) return e.map((e) => i(e, a, n - 1, r));
36
- if (e instanceof Set) return Array.from(e, (e) => i(e, a, n - 1, r));
34
+ function i(e, r, i, o) {
35
+ if (Array.isArray(e)) return e.map((e) => a(e, o, r - 1, i));
36
+ if (e instanceof Set) return Array.from(e, (e) => a(e, o, r - 1, i));
37
37
  if (e instanceof Map) {
38
38
  let t = {};
39
- for (let [o, s] of e) t[String(o)] = i(s, a, n - 1, r);
39
+ for (let [n, s] of e) t[String(n)] = a(s, o, r - 1, i);
40
40
  return t;
41
41
  }
42
42
  try {
43
- let o = {};
44
- for (let [s, c] of Object.entries(e)) typeof c == "function" || t.has(s) || (o[s] = a.redactKey?.(s) ? "[redacted]" : i(c, a, n - 1, r));
45
- return o;
43
+ let s = {};
44
+ for (let [c, l] of Object.entries(e)) typeof l == "function" || n.has(c) || (s[c] = o.redactKey?.(c) ? t : a(l, o, r - 1, i));
45
+ return s;
46
46
  } catch {
47
47
  return String(e);
48
48
  }
49
49
  }
50
- function i(e, t = {}, i = 10, a = /* @__PURE__ */ new Set()) {
50
+ function a(e, t = {}, n = 10, a = /* @__PURE__ */ new Set()) {
51
51
  if (typeof e == "function") return;
52
52
  if (typeof e == "symbol") return e.toString();
53
53
  if (typeof e != "object" || !e) return e;
54
- if (i <= 0) return "[too deep]";
54
+ if (n <= 0) return "[too deep]";
55
55
  if (a.has(e)) return "[circular]";
56
- let o = n(e);
56
+ let o = r(e);
57
57
  if (o !== void 0) return o;
58
58
  a.add(e);
59
59
  try {
60
- return r(e, i, a, t);
60
+ return i(e, n, a, t);
61
61
  } finally {
62
62
  a.delete(e);
63
63
  }
64
64
  }
65
- function a(e) {
65
+ function o(e, n = {}) {
66
66
  if (e == null) return {};
67
67
  if (typeof e != "object") return { value: e };
68
68
  try {
69
- let t = {};
70
- for (let [n, r] of Object.entries(e)) t[n] = i(r);
71
- return t;
69
+ let r = {};
70
+ for (let [i, o] of Object.entries(e)) r[i] = n.redactKey?.(i) ? t : a(o, n);
71
+ return r;
72
72
  } catch {
73
73
  return {};
74
74
  }
75
75
  }
76
- //#endregion
77
- //#region src/shared/redact.ts
78
- var o = /password|passphrase|secret|token|credential|authorization|apikey|api_key/i, s = { "auth.exchangeAuthCode": /* @__PURE__ */ new Set(["code"]) }, c = /* @__PURE__ */ new Set([
79
- "authorization",
80
- "cookie",
81
- "proxy-authorization",
82
- "x-api-key",
83
- "x-auth-token"
84
- ]);
76
+ // src/shared/redact.ts
77
+ var s = /password|passphrase|secret|token|credential|authorization|cookie|api[-_]?key/i, c = { "auth.exchangeAuthCode": /* @__PURE__ */ new Set(["code"]) };
85
78
  function l(e) {
86
- return o.test(e);
79
+ return s.test(e);
87
80
  }
88
81
  function u(e) {
89
- let t = s[e];
82
+ let t = c[e];
90
83
  return (e) => l(e) || (t?.has(e) ?? !1);
91
84
  }
92
85
  function d(e) {
93
86
  let t = {};
94
- for (let [n, r] of Object.entries(e)) c.has(n) || l(n) || (t[n] = r);
87
+ for (let [n, r] of Object.entries(e)) l(n) || (t[n] = r);
95
88
  return t;
96
89
  }
97
- //#endregion
98
- //#region ../../../node_modules/.pnpm/devframe@1.1.0_@devframes+agentic@1.0.0_cac@7.0.0_srvx@1.0.5/node_modules/devframe/dist/utils/colors.mjs
90
+ // ../../../node_modules/.pnpm/devframe@1.2.6_@devframes+agentic@1.2.6_cac@7.1.0_srvx@1.0.6/node_modules/devframe/dist/utils/colors.mjs
99
91
  function f(e, t) {
100
92
  let n = `\x1B[${e}m`, r = `\x1B[${t}m`;
101
93
  return ((e, ...t) => {
@@ -119,8 +111,7 @@ var p = {
119
111
  reset: f(0, 0),
120
112
  underline: f(4, 24)
121
113
  };
122
- //#endregion
123
- //#region ../../../node_modules/.pnpm/nostics@1.3.0/node_modules/nostics/dist/index.mjs
114
+ // ../../../node_modules/.pnpm/nostics@1.3.0/node_modules/nostics/dist/index.mjs
124
115
  function m(e, ...t) {
125
116
  return typeof e == "function" ? e(...t) : e;
126
117
  }
@@ -174,8 +165,7 @@ function v(e) {
174
165
  }
175
166
  return n;
176
167
  }
177
- //#endregion
178
- //#region ../../../node_modules/.pnpm/nostics@1.3.0/node_modules/nostics/dist/formatters/ansi.mjs
168
+ // ../../../node_modules/.pnpm/nostics@1.3.0/node_modules/nostics/dist/formatters/ansi.mjs
179
169
  /* @__NO_SIDE_EFFECTS__ */
180
170
  function y(e) {
181
171
  return (t) => {
@@ -183,8 +173,7 @@ function y(e) {
183
173
  return t.fix && r.push(`${e.dim("fix:")} ${t.fix}`), t.sources?.length && r.push(`${e.dim("sources:")} ${t.sources.join(", ")}`), t.docs && r.push(`${e.dim("see:")} ${e.cyan(t.docs)}`), r.length === 0 ? n : [n, ...r.map((t, n) => `${e.dim(n < r.length - 1 ? "├▶" : "╰▶")} ${t}`)].join("\n");
184
174
  };
185
175
  }
186
- //#endregion
187
- //#region ../../../node_modules/.pnpm/devframe@1.1.0_@devframes+agentic@1.0.0_cac@7.0.0_srvx@1.0.5/node_modules/devframe/dist/tool-input-BAQXvvqL.mjs
176
+ // ../../../node_modules/.pnpm/devframe@1.2.6_@devframes+agentic@1.2.6_cac@7.1.0_srvx@1.0.6/node_modules/devframe/dist/tool-input-CES3Pc4y.mjs
188
177
  var b = {
189
178
  bus: {
190
179
  agentManifestChanged: "agent:manifest:changed",
@@ -201,6 +190,7 @@ var b = {
201
190
  },
202
191
  broadcast: {
203
192
  authRevoked: "devframe:auth:revoked",
193
+ cacheInvalidate: "devframe:rpc:cache:invalidate",
204
194
  clientStateUpdated: "devframe:rpc:client-state:updated",
205
195
  clientStatePatch: "devframe:rpc:client-state:patch",
206
196
  streamingChunk: "devframe:streaming:chunk",
@@ -421,8 +411,7 @@ function _e(e, t) {
421
411
  function ve(e, t) {
422
412
  return _e(e, t) ?? [e];
423
413
  }
424
- //#endregion
425
- //#region ../../../node_modules/.pnpm/devframe@1.1.0_@devframes+agentic@1.0.0_cac@7.0.0_srvx@1.0.5/node_modules/devframe/dist/utils/events.mjs
414
+ // ../../../node_modules/.pnpm/devframe@1.2.6_@devframes+agentic@1.2.6_cac@7.1.0_srvx@1.0.6/node_modules/devframe/dist/utils/events.mjs
426
415
  function ye() {
427
416
  let e = {};
428
417
  function t(t, ...n) {
@@ -452,16 +441,14 @@ function ye() {
452
441
  once: i
453
442
  };
454
443
  }
455
- //#endregion
456
- //#region ../../../node_modules/.pnpm/devframe@1.1.0_@devframes+agentic@1.0.0_cac@7.0.0_srvx@1.0.5/node_modules/devframe/dist/utils/nanoid.mjs
444
+ // ../../../node_modules/.pnpm/devframe@1.2.6_@devframes+agentic@1.2.6_cac@7.1.0_srvx@1.0.6/node_modules/devframe/dist/utils/nanoid.mjs
457
445
  var be = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
458
446
  function x(e = 21) {
459
447
  let t = "", n = e;
460
448
  for (; n--;) t += be[Math.random() * 64 | 0];
461
449
  return t;
462
450
  }
463
- //#endregion
464
- //#region ../../../node_modules/.pnpm/devframe@1.1.0_@devframes+agentic@1.0.0_cac@7.0.0_srvx@1.0.5/node_modules/devframe/dist/shared-state-eQVYHNqA.mjs
451
+ // ../../../node_modules/.pnpm/devframe@1.2.6_@devframes+agentic@1.2.6_cac@7.1.0_srvx@1.0.6/node_modules/devframe/dist/shared-state-Cow3u-_m.mjs
465
452
  var xe = Symbol.for("immer-nothing"), S = Symbol.for("immer-draftable"), C = Symbol.for("immer-state"), Se = [
466
453
  function(e) {
467
454
  return `The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`;
@@ -743,7 +730,7 @@ var at = {
743
730
  if (r?.set) return r.set.call(e.draft_, n), !0;
744
731
  if (!e.modified_) {
745
732
  let r = ot(W(e), t), i = r?.[C];
746
- if (i && i.base_ === n) return e.copy_[t] = n, e.assigned_.set(t, !1), !0;
733
+ if (i && i.base_ === n) return e.copy_[t] = n, e.assigned_.delete(t), !0;
747
734
  if (De(n, r) && (n !== void 0 || I(e.base_, t, e.type_))) return !0;
748
735
  dt(e), ut(e);
749
736
  }
@@ -861,7 +848,7 @@ var ft = class {
861
848
  }
862
849
  finishDraft(e, t) {
863
850
  let n = e && e[C];
864
- (!n || !n.isManual_) && w(9);
851
+ n && n.isManual_ || w(9);
865
852
  let { scope_: r } = n;
866
853
  return We(r, t), Ye(void 0, r);
867
854
  }
@@ -1073,7 +1060,7 @@ function gt() {
1073
1060
  let { path: i, op: a } = t, o = e;
1074
1061
  for (let e = 0; e < i.length - 1; e++) {
1075
1062
  let t = F(o), n = i[e];
1076
- typeof n != "string" && typeof n != "number" && (n = "" + n), (t === 0 || t === 1) && (n === "__proto__" || n === D) && w(19), U(o) && n === O && w(19), o = L(o, n), (o === null || !H(o)) && w(18, i.join("/"));
1063
+ typeof n != "string" && typeof n != "number" && (n = "" + n), t !== 0 && t !== 1 || n !== "__proto__" && n !== D || w(19), U(o) && n === O && w(19), o = L(o, n), o !== null && H(o) || w(18, i.join("/"));
1077
1064
  }
1078
1065
  let s = F(o), c = u(t.value), l = i[i.length - 1];
1079
1066
  switch (a) {
@@ -1151,8 +1138,7 @@ function St(e) {
1151
1138
  syncIds: i
1152
1139
  };
1153
1140
  }
1154
- //#endregion
1155
- //#region ../../../node_modules/.pnpm/devframe@1.1.0_@devframes+agentic@1.0.0_cac@7.0.0_srvx@1.0.5/node_modules/devframe/dist/browser-agent-Pu-FLk6I.mjs
1141
+ // ../../../node_modules/.pnpm/devframe@1.2.6_@devframes+agentic@1.2.6_cac@7.1.0_srvx@1.0.6/node_modules/devframe/dist/browser-agent-Pu-FLk6I.mjs
1156
1142
  var Ct = Symbol.for("devframe:browser-agent-registry"), { tools: wt, listeners: Tt } = globalThis[Ct] ??= {
1157
1143
  tools: /* @__PURE__ */ new Map(),
1158
1144
  listeners: /* @__PURE__ */ new Set()
@@ -1166,8 +1152,7 @@ function Dt(e) {
1166
1152
  wt.delete(t) && Et();
1167
1153
  };
1168
1154
  }
1169
- //#endregion
1170
- //#region ../../../node_modules/.pnpm/devframe@1.1.0_@devframes+agentic@1.0.0_cac@7.0.0_srvx@1.0.5/node_modules/devframe/dist/in-page-channel/index.mjs
1155
+ // ../../../node_modules/.pnpm/devframe@1.2.6_@devframes+agentic@1.2.6_cac@7.1.0_srvx@1.0.6/node_modules/devframe/dist/in-page-channel/index.mjs
1171
1156
  var Ot = /* #__PURE__ */ ne({
1172
1157
  docsBase: "https://devfra.me/errors",
1173
1158
  codes: {
@@ -1567,8 +1552,7 @@ function rn(e) {
1567
1552
  }
1568
1553
  };
1569
1554
  }
1570
- //#endregion
1571
- //#region src/shared/coalesce.ts
1555
+ // src/shared/coalesce.ts
1572
1556
  function an(e, t) {
1573
1557
  let n;
1574
1558
  return () => {
@@ -1577,5 +1561,4 @@ function an(e, t) {
1577
1561
  }, t));
1578
1562
  };
1579
1563
  }
1580
- //#endregion
1581
- export { d as a, e as c, l as i, rn as n, i as o, u as r, a as s, an as t };
1564
+ export { d as a, e as c, l as i, rn as n, a as o, u as r, o as s, an as t };
package/dist/index.mjs CHANGED
@@ -2,7 +2,7 @@ import { DevTools as e } from "@vitejs/devtools";
2
2
  import { DEVTOOLS_MOUNT_PATH as t } from "@vitejs/devtools-kit/constants";
3
3
  import { existsSync as n } from "node:fs";
4
4
  import { fileURLToPath as r } from "node:url";
5
- //#region src/inject.ts
5
+ // src/inject.ts
6
6
  var i = `${t}embedded.js`, a = /src\/client\/main\.ts$/;
7
7
  function o(e) {
8
8
  return {
@@ -22,8 +22,7 @@ if (typeof document !== 'undefined') {
22
22
  }
23
23
  };
24
24
  }
25
- //#endregion
26
- //#region src/group.ts
25
+ // src/group.ts
27
26
  var s = "scayle-storefront", c = "#5328e1", l = "data:image/svg+xml,%3Csvg%20width%3D%2228%22%20height%3D%2228%22%20viewBox%3D%220%200%2028%2028%22%20fill%3D%22%235328E1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Crect%20width%3D%2228%22%20height%3D%2228%22%20rx%3D%227%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M14%207a7%207%200%201%201%200%2014%207%207%200%200%201%200-14Zm0%202.051c-2.625%200-4.755%202.216-4.755%204.948s2.13%204.948%204.755%204.948c2.628%200%204.755-2.215%204.755-4.948%200-.948-.255-1.834-.7-2.587l-2.106%202.15-1.518-1.55%202.137-2.178A4.6%204.6%200%200%200%2014%209.05Z%22%20fill%3D%22%23fff%22%20stroke%3D%22%23fff%22%20stroke-width%3D%22.2%22%2F%3E%3C%2Fsvg%3E", u = "/__storefront-devtools/", d = r(new URL(
28
27
  /* @vite-ignore */
29
28
  "./ui",
@@ -58,8 +57,7 @@ function p(e) {
58
57
  } }
59
58
  };
60
59
  }
61
- //#endregion
62
- //#region src/inertia/plugin.ts
60
+ // src/inertia/plugin.ts
63
61
  var m = "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22128%22%20height%3D%22128%22%20viewBox%3D%220%200%20128%20128%22%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22M92.433%2028.433H55.625L91.192%2064L55.625%2099.567h36.808L128%2064zm-55.625%200H0L35.567%2064L0%2099.567h36.808L72.375%2064z%22%2F%3E%3C%2Fsvg%3E";
64
62
  function h() {
65
63
  return p({
@@ -69,8 +67,7 @@ function h() {
69
67
  view: "inertia"
70
68
  });
71
69
  }
72
- //#endregion
73
- //#region src/orpc/plugin.ts
70
+ // src/orpc/plugin.ts
74
71
  var g = "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%207h16M4%2012h16M4%2017h10%22%2F%3E%3C%2Fsvg%3E";
75
72
  function _() {
76
73
  return p({
@@ -80,8 +77,7 @@ function _() {
80
77
  view: "orpc"
81
78
  });
82
79
  }
83
- //#endregion
84
- //#region src/storefront/plugin.ts
80
+ // src/storefront/plugin.ts
85
81
  var v = "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%209l1.5-5h15L21%209M4%209h16v10a1%201%200%200%201-1%201H5a1%201%200%200%201-1-1V9zM9%2020v-6h6v6%22%2F%3E%3C%2Fsvg%3E";
86
82
  function y() {
87
83
  return p({
@@ -91,8 +87,7 @@ function y() {
91
87
  view: "storefront"
92
88
  });
93
89
  }
94
- //#endregion
95
- //#region src/vue-devtools/plugin.ts
90
+ // src/vue-devtools/plugin.ts
96
91
  var b = "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20width%3D%2224%22%20height%3D%2224%22%3E%3Cpath%20fill%3D%22%2341b883%22%20d%3D%22M12%202%201%2021h22z%22%20opacity%3D%22.4%22%2F%3E%3Cpath%20fill%3D%22%2341b883%22%20d%3D%22M2%203h4l6%2010.5L18%203h4L12%2021z%22%2F%3E%3Cpath%20fill%3D%22%2335495e%22%20d%3D%22M6%203h3l3%205%203-5h3l-6%2010z%22%2F%3E%3C%2Fsvg%3E", x = `${u}vue/`;
97
92
  function S() {
98
93
  return {
@@ -125,8 +120,7 @@ function S() {
125
120
  } }
126
121
  };
127
122
  }
128
- //#endregion
129
- //#region src/index.ts
123
+ // src/index.ts
130
124
  function C() {
131
125
  return [
132
126
  e({
@@ -149,5 +143,4 @@ function C() {
149
143
  S()
150
144
  ];
151
145
  }
152
- //#endregion
153
146
  export { C as default };