@voltro/devtools 0.90.0 → 0.91.1

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,12 +1,12 @@
1
- import { Monitor as e } from "../components/icons.js";
2
- import { useDevtoolsStrings as t } from "../strings.js";
3
- import { Badge as n, Button as r, Card as i, Empty as a, KeyValue as o, SectionTitle as s } from "../components/primitives.js";
1
+ import { Badge as e, Button as t, Card as n, Empty as r, KeyValue as i, SectionTitle as a } from "../components/primitives.js";
2
+ import { Monitor as o } from "../components/icons.js";
3
+ import { useDevtoolsStrings as s } from "../strings.js";
4
4
  import { useCallback as c, useEffect as l, useState as u } from "react";
5
5
  import { readPairing as d, usePlatform as f, useShellExtension as p } from "@voltro/client";
6
6
  import { jsx as m, jsxs as h } from "react/jsx-runtime";
7
7
  // src/panels/desktop.tsx
8
8
  var g = (e) => Object.entries(e ?? {}).filter(([, e]) => e === !0).map(([e]) => e).sort(), _ = (e) => [e.fullscreen ? "fullscreen" : e.maximized ? "maximized" : "windowed", e.focused ? "focused" : "unfocused"].join(", "), v = () => {
9
- let v = t().desktop, y = f(), b = p("desktop"), [x, S] = u(0), [C, w] = u(null), [T, E] = u(null), D = c(() => S((e) => e + 1), []);
9
+ let v = s().desktop, y = f(), b = p("desktop"), [x, S] = u(0), [C, w] = u(null), [T, E] = u(null), D = c(() => S((e) => e + 1), []);
10
10
  if (l(() => {
11
11
  if (!b) return;
12
12
  let e = b.window.subscribe(D), t = b.os.onThemeChange(D);
@@ -16,23 +16,23 @@ var g = (e) => Object.entries(e ?? {}).filter(([, e]) => e === !0).map(([e]) =>
16
16
  }, [b, D]), l(() => {
17
17
  let e = y.storage("local");
18
18
  e === null ? E(null) : d(e).then(E);
19
- }, [y, x]), !b) return /* @__PURE__ */ m(a, { children: v.notDesktop });
19
+ }, [y, x]), !b) return /* @__PURE__ */ m(r, { children: v.notDesktop });
20
20
  let O = g(y.capabilities);
21
21
  return /* @__PURE__ */ h("div", {
22
22
  className: "vdt:flex vdt:flex-col vdt:gap-3 vdt:p-3",
23
23
  children: [
24
- /* @__PURE__ */ h(i, { children: [/* @__PURE__ */ m(s, {
25
- Icon: e,
26
- right: /* @__PURE__ */ m(r, {
24
+ /* @__PURE__ */ h(n, { children: [/* @__PURE__ */ m(a, {
25
+ Icon: o,
26
+ right: /* @__PURE__ */ m(t, {
27
27
  size: "sm",
28
28
  onClick: D,
29
29
  children: v.refresh
30
30
  }),
31
31
  children: v.shell
32
- }), /* @__PURE__ */ m(o, { entries: [
32
+ }), /* @__PURE__ */ m(i, { entries: [
33
33
  {
34
34
  key: v.kind,
35
- value: /* @__PURE__ */ m(n, {
35
+ value: /* @__PURE__ */ m(e, {
36
36
  tone: "info",
37
37
  children: b.kind
38
38
  })
@@ -54,8 +54,8 @@ var g = (e) => Object.entries(e ?? {}).filter(([, e]) => e === !0).map(([e]) =>
54
54
  value: y.platform.appVersion ?? v.unknown
55
55
  }
56
56
  ] })] }),
57
- /* @__PURE__ */ h(i, { children: [/* @__PURE__ */ m(s, {
58
- right: y.updates ? /* @__PURE__ */ m(r, {
57
+ /* @__PURE__ */ h(n, { children: [/* @__PURE__ */ m(a, {
58
+ right: y.updates ? /* @__PURE__ */ m(t, {
59
59
  size: "sm",
60
60
  onClick: () => {
61
61
  y.updates.check().then(w);
@@ -63,14 +63,14 @@ var g = (e) => Object.entries(e ?? {}).filter(([, e]) => e === !0).map(([e]) =>
63
63
  children: v.checkNow
64
64
  }) : void 0,
65
65
  children: v.updater
66
- }), /* @__PURE__ */ m(o, { entries: [{
66
+ }), /* @__PURE__ */ m(i, { entries: [{
67
67
  key: v.updaterPort,
68
68
  value: y.updates ? v.yes : v.no
69
69
  }, {
70
70
  key: v.waitingVersion,
71
71
  value: C?.version ?? v.none
72
72
  }] })] }),
73
- /* @__PURE__ */ h(i, { children: [/* @__PURE__ */ m(s, { children: v.localStack }), /* @__PURE__ */ m(o, { entries: [
73
+ /* @__PURE__ */ h(n, { children: [/* @__PURE__ */ m(a, { children: v.localStack }), /* @__PURE__ */ m(i, { entries: [
74
74
  {
75
75
  key: v.sidecarPort,
76
76
  value: b.sidecar === void 0 ? v.no : v.yes
@@ -84,15 +84,15 @@ var g = (e) => Object.entries(e ?? {}).filter(([, e]) => e === !0).map(([e]) =>
84
84
  value: T?.name ?? v.none
85
85
  }
86
86
  ] })] }),
87
- /* @__PURE__ */ h(i, { children: [/* @__PURE__ */ m(s, { children: v.capabilities }), O.length === 0 ? /* @__PURE__ */ m("div", {
87
+ /* @__PURE__ */ h(n, { children: [/* @__PURE__ */ m(a, { children: v.capabilities }), O.length === 0 ? /* @__PURE__ */ m("div", {
88
88
  className: "vdt:px-3 vdt:py-2 vdt:text-xs vdt:text-foreground-subtle",
89
89
  children: v.noCapabilities
90
90
  }) : /* @__PURE__ */ m("div", {
91
91
  className: "vdt:flex vdt:flex-wrap vdt:gap-1 vdt:px-3 vdt:py-2",
92
- children: O.map((e) => /* @__PURE__ */ m(n, {
92
+ children: O.map((t) => /* @__PURE__ */ m(e, {
93
93
  tone: "neutral",
94
- children: e
95
- }, e))
94
+ children: t
95
+ }, t))
96
96
  })] })
97
97
  ]
98
98
  });
@@ -1,20 +1,20 @@
1
- import { Activity as e } from "../components/icons.js";
2
- import { useDevtoolsStrings as t } from "../strings.js";
3
- import { Badge as n, Card as r, CardBody as i, Empty as a, SectionTitle as o } from "../components/primitives.js";
4
- import { inspectRefusalFor as s } from "../inspectRefusal.js";
5
- import { useInspectToken as c } from "../inspectAuth.js";
6
- import { fetchInspect as l } from "../inspectFetch.js";
7
- import { useDocumentVisible as u } from "../useDocumentVisible.js";
1
+ import { Badge as e, Card as t, CardBody as n, Empty as r, SectionTitle as i } from "../components/primitives.js";
2
+ import { Activity as a } from "../components/icons.js";
3
+ import { useInspectToken as o } from "../inspectAuth.js";
4
+ import { fetchInspect as s } from "../inspectFetch.js";
5
+ import { inspectRefusalFor as c } from "../inspectRefusal.js";
6
+ import { useDocumentVisible as l } from "../useDocumentVisible.js";
7
+ import { useDevtoolsStrings as u } from "../strings.js";
8
8
  import { useEffect as d, useState as f } from "react";
9
9
  import { useFrameworkRuntimes as p } from "@voltro/client";
10
10
  import { Fragment as m, jsx as h, jsxs as g } from "react/jsx-runtime";
11
11
  // src/panels/indexes.tsx
12
12
  var _ = 5e3, v = async (e, t) => {
13
13
  if (e === "") return null;
14
- let n = await l(`${e}/_voltro/inspect/subscriptions`, t);
14
+ let n = await s(`${e}/_voltro/inspect/subscriptions`, t);
15
15
  return n !== null && Array.isArray(n.subscriptions) ? n : null;
16
16
  }, y = (e) => {
17
- let t = p(), n = u(), r = c(), i = t.names, a = e && n, [o, l] = f(() => i.map((e) => ({
17
+ let t = p(), n = l(), r = o(), i = t.names, a = e && n, [s, u] = f(() => i.map((e) => ({
18
18
  name: e,
19
19
  response: null,
20
20
  live: !1
@@ -22,17 +22,17 @@ var _ = 5e3, v = async (e, t) => {
22
22
  return d(() => {
23
23
  if (!a) return;
24
24
  let e = !1, n = (t, n) => {
25
- e || l((e) => e.map((e) => e.name === t ? {
25
+ e || u((e) => e.map((e) => e.name === t ? {
26
26
  ...e,
27
27
  ...n
28
28
  } : e));
29
29
  }, o = i.map((i) => {
30
30
  let a = t.get(i).inspectBaseUrl;
31
31
  if (a === "") return { teardown: () => {} };
32
- let o = null, c = null, l, u = () => {
33
- c !== null && clearInterval(c), c = null;
34
- }, d = () => s(a) !== void 0, f = () => {
35
- if (c !== null || d()) return;
32
+ let o = null, s = null, l, u = () => {
33
+ s !== null && clearInterval(s), s = null;
34
+ }, d = () => c(a) !== void 0, f = () => {
35
+ if (s !== null || d()) return;
36
36
  let e = async () => {
37
37
  let e = await v(a, r);
38
38
  e !== null && n(i, {
@@ -40,7 +40,7 @@ var _ = 5e3, v = async (e, t) => {
40
40
  live: !1
41
41
  }), d() && (u(), o?.close());
42
42
  };
43
- e(), c = setInterval(() => {
43
+ e(), s = setInterval(() => {
44
44
  e();
45
45
  }, _);
46
46
  };
@@ -77,7 +77,7 @@ var _ = 5e3, v = async (e, t) => {
77
77
  t,
78
78
  i,
79
79
  r
80
- ]), o;
80
+ ]), s;
81
81
  }, b = (e) => {
82
82
  if (typeof e != "object" || !e) return !1;
83
83
  let t = e;
@@ -102,90 +102,90 @@ var _ = 5e3, v = async (e, t) => {
102
102
  }
103
103
  return typeof n.column == "string" && typeof n.op == "string" ? E(n) : JSON.stringify(e);
104
104
  }, O = () => {
105
- let n = y(!0), s = t().indexes, c = n.filter((e) => e.response !== null).length;
106
- return n.length === 0 ? /* @__PURE__ */ h(a, { children: s.noApis }) : c === 0 ? /* @__PURE__ */ g(a, { children: [s.unreachableTitle, /* @__PURE__ */ h("div", {
105
+ let e = y(!0), o = u().indexes, s = e.filter((e) => e.response !== null).length;
106
+ return e.length === 0 ? /* @__PURE__ */ h(r, { children: o.noApis }) : s === 0 ? /* @__PURE__ */ g(r, { children: [o.unreachableTitle, /* @__PURE__ */ h("div", {
107
107
  className: "vdt:mt-1 vdt:text-foreground-subtle",
108
- children: s.unreachableHint
108
+ children: o.unreachableHint
109
109
  })] }) : /* @__PURE__ */ h("div", {
110
110
  className: "vdt:flex vdt:flex-col vdt:gap-3 vdt:p-3",
111
- children: n.map(({ name: t, response: n, live: a }) => n === null ? /* @__PURE__ */ g(r, { children: [/* @__PURE__ */ h(o, {
112
- Icon: e,
113
- children: t
114
- }), /* @__PURE__ */ h(i, {
111
+ children: e.map(({ name: e, response: r, live: s }) => r === null ? /* @__PURE__ */ g(t, { children: [/* @__PURE__ */ h(i, {
112
+ Icon: a,
113
+ children: e
114
+ }), /* @__PURE__ */ h(n, {
115
115
  className: "vdt:text-xs vdt:text-foreground-subtle",
116
- children: s.offline
117
- })] }, t) : /* @__PURE__ */ h(k, {
118
- apiName: t,
119
- response: n,
120
- live: a
121
- }, t))
116
+ children: o.offline
117
+ })] }, e) : /* @__PURE__ */ h(k, {
118
+ apiName: e,
119
+ response: r,
120
+ live: s
121
+ }, e))
122
122
  });
123
- }, k = ({ apiName: i, response: a, live: s }) => {
124
- let c = t().indexes, l = [...a.subscriptions].sort((e, t) => t.subscriberCount - e.subscriberCount);
125
- return /* @__PURE__ */ g(r, { children: [
126
- /* @__PURE__ */ h(o, {
127
- Icon: e,
123
+ }, k = ({ apiName: n, response: r, live: o }) => {
124
+ let s = u().indexes, c = [...r.subscriptions].sort((e, t) => t.subscriberCount - e.subscriberCount);
125
+ return /* @__PURE__ */ g(t, { children: [
126
+ /* @__PURE__ */ h(i, {
127
+ Icon: a,
128
128
  right: /* @__PURE__ */ g("div", {
129
129
  className: "vdt:flex vdt:items-center vdt:gap-1",
130
- children: [/* @__PURE__ */ h(n, {
130
+ children: [/* @__PURE__ */ h(e, {
131
131
  tone: "info",
132
- children: c.subsBadge(a.subscriptions.length)
133
- }), /* @__PURE__ */ h(n, {
134
- tone: s ? "success" : "neutral",
135
- children: s ? c.live : c.poll
132
+ children: s.subsBadge(r.subscriptions.length)
133
+ }), /* @__PURE__ */ h(e, {
134
+ tone: o ? "success" : "neutral",
135
+ children: o ? s.live : s.poll
136
136
  })]
137
137
  }),
138
- children: i
138
+ children: n
139
139
  }),
140
- a.matcherStats.length > 0 && /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h("div", {
140
+ r.matcherStats.length > 0 && /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h("div", {
141
141
  className: "vdt:text-[11px] vdt:uppercase vdt:tracking-wide vdt:text-foreground-subtle vdt:mt-3 vdt:mb-1",
142
- children: c.tables
142
+ children: s.tables
143
143
  }), /* @__PURE__ */ h("div", {
144
144
  className: "vdt:flex vdt:flex-col vdt:gap-1",
145
- children: a.matcherStats.map((e) => /* @__PURE__ */ g("div", {
145
+ children: r.matcherStats.map((t) => /* @__PURE__ */ g("div", {
146
146
  className: "vdt:flex vdt:items-baseline vdt:gap-3 vdt:text-xs",
147
147
  children: [
148
148
  /* @__PURE__ */ h("span", {
149
149
  className: "vdt:font-mono vdt:text-foreground",
150
- children: e.tableName
150
+ children: t.tableName
151
151
  }),
152
152
  /* @__PURE__ */ g("span", {
153
153
  className: "vdt:text-foreground-subtle",
154
- children: [e.tupleRouted + e.columnBucketed + e.rangeBucketed + e.unindexedFallback, " subs"]
154
+ children: [t.tupleRouted + t.columnBucketed + t.rangeBucketed + t.unindexedFallback, " subs"]
155
155
  }),
156
- e.tupleRouted > 0 && /* @__PURE__ */ h(n, {
156
+ t.tupleRouted > 0 && /* @__PURE__ */ h(e, {
157
157
  tone: "success",
158
- children: `${e.tupleRouted} tuple`
158
+ children: `${t.tupleRouted} tuple`
159
159
  }),
160
- e.columnBucketed > 0 && /* @__PURE__ */ h(n, {
160
+ t.columnBucketed > 0 && /* @__PURE__ */ h(e, {
161
161
  tone: "info",
162
- children: `${e.columnBucketed} column`
162
+ children: `${t.columnBucketed} column`
163
163
  }),
164
- e.rangeBucketed > 0 && /* @__PURE__ */ h(n, {
164
+ t.rangeBucketed > 0 && /* @__PURE__ */ h(e, {
165
165
  tone: "neutral",
166
- children: `${e.rangeBucketed} range`
166
+ children: `${t.rangeBucketed} range`
167
167
  }),
168
- e.unindexedFallback > 0 && /* @__PURE__ */ h(n, {
168
+ t.unindexedFallback > 0 && /* @__PURE__ */ h(e, {
169
169
  tone: "warning",
170
- children: `${e.unindexedFallback} unindexed`
170
+ children: `${t.unindexedFallback} unindexed`
171
171
  }),
172
- e.distinctTupleKeys > 0 && /* @__PURE__ */ g("span", {
172
+ t.distinctTupleKeys > 0 && /* @__PURE__ */ g("span", {
173
173
  className: "vdt:text-foreground-subtle",
174
- children: [e.distinctTupleKeys, " tuple keys"]
174
+ children: [t.distinctTupleKeys, " tuple keys"]
175
175
  })
176
176
  ]
177
- }, e.tableName))
177
+ }, t.tableName))
178
178
  })] }),
179
- l.length > 0 && /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h("div", {
179
+ c.length > 0 && /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h("div", {
180
180
  className: "vdt:text-[11px] vdt:uppercase vdt:tracking-wide vdt:text-foreground-subtle vdt:mt-3 vdt:mb-1",
181
- children: c.subscriptionsSection
181
+ children: s.subscriptionsSection
182
182
  }), /* @__PURE__ */ h("div", {
183
183
  className: "vdt:flex vdt:flex-col vdt:gap-2",
184
- children: l.map((e) => /* @__PURE__ */ h(A, { sub: e }, e.fingerprint))
184
+ children: c.map((e) => /* @__PURE__ */ h(A, { sub: e }, e.fingerprint))
185
185
  })] })
186
186
  ] });
187
- }, A = ({ sub: e }) => {
188
- let r = t().indexes, i = S(e);
187
+ }, A = ({ sub: t }) => {
188
+ let n = u().indexes, r = S(t);
189
189
  return /* @__PURE__ */ g("div", {
190
190
  className: "vdt:flex vdt:flex-col vdt:gap-0.5 vdt:px-2 vdt:py-1 vdt:rounded-sm vdt:bg-muted/40",
191
191
  children: [/* @__PURE__ */ g("div", {
@@ -193,35 +193,35 @@ var _ = 5e3, v = async (e, t) => {
193
193
  children: [
194
194
  /* @__PURE__ */ h("span", {
195
195
  className: "vdt:font-mono vdt:text-foreground",
196
- children: e.table
196
+ children: t.table
197
197
  }),
198
- /* @__PURE__ */ h(n, {
199
- tone: C(i),
200
- children: w(i)
198
+ /* @__PURE__ */ h(e, {
199
+ tone: C(r),
200
+ children: w(r)
201
201
  }),
202
- e.usingIndex && /* @__PURE__ */ g("span", {
202
+ t.usingIndex && /* @__PURE__ */ g("span", {
203
203
  className: "vdt:text-foreground-subtle",
204
204
  children: [
205
- r.via,
205
+ n.via,
206
206
  " ",
207
207
  /* @__PURE__ */ h("span", {
208
208
  className: "vdt:font-mono",
209
- children: e.usingIndex.name
209
+ children: t.usingIndex.name
210
210
  })
211
211
  ]
212
212
  }),
213
213
  /* @__PURE__ */ g("span", {
214
214
  className: "vdt:text-foreground-subtle vdt:ml-auto",
215
215
  children: [
216
- e.subscriberCount,
216
+ t.subscriberCount,
217
217
  " ",
218
- r.clients(e.subscriberCount)
218
+ n.clients(t.subscriberCount)
219
219
  ]
220
220
  })
221
221
  ]
222
222
  }), /* @__PURE__ */ h("div", {
223
223
  className: "vdt:text-[11px] vdt:font-mono vdt:text-foreground-subtle vdt:break-all",
224
- children: D(e.predicate)
224
+ children: D(t.predicate)
225
225
  })]
226
226
  });
227
227
  }, j = (e) => {
@@ -1,6 +1,6 @@
1
- import { Plug as e } from "../components/icons.js";
2
- import { useDevtoolsStrings as t } from "../strings.js";
3
- import { Badge as n, Button as r, Card as i, Empty as a, KeyValue as o, SectionTitle as s } from "../components/primitives.js";
1
+ import { Badge as e, Button as t, Card as n, Empty as r, KeyValue as i, SectionTitle as a } from "../components/primitives.js";
2
+ import { Plug as o } from "../components/icons.js";
3
+ import { useDevtoolsStrings as s } from "../strings.js";
4
4
  import { useCallback as c, useEffect as l, useState as u } from "react";
5
5
  import { useAppUpdate as d, useInstallPrompt as f, useOfflineStatus as p } from "@voltro/web";
6
6
  import { usePlatform as m } from "@voltro/client";
@@ -41,7 +41,7 @@ var v = (e, t) => ({
41
41
  pushEndpointHost: c
42
42
  };
43
43
  }, S = (e) => e === "activated" ? "success" : e === null ? "neutral" : "warning", C = () => {
44
- let v = t().pwa, y = d(), b = f(), C = p(), w = m(), [T, E] = u(null), D = c(() => {
44
+ let v = s().pwa, y = d(), b = f(), C = p(), w = m(), [T, E] = u(null), D = c(() => {
45
45
  x().then(E);
46
46
  }, []);
47
47
  if (l(() => {
@@ -50,21 +50,21 @@ var v = (e, t) => ({
50
50
  return e?.serviceWorker?.addEventListener?.("controllerchange", D), () => {
51
51
  e?.serviceWorker?.removeEventListener?.("controllerchange", D);
52
52
  };
53
- }, [D]), T === null) return /* @__PURE__ */ g(a, { children: v.loading });
54
- if (!T.worker.supported) return /* @__PURE__ */ g(a, { children: v.unsupported });
53
+ }, [D]), T === null) return /* @__PURE__ */ g(r, { children: v.loading });
54
+ if (!T.worker.supported) return /* @__PURE__ */ g(r, { children: v.unsupported });
55
55
  let O = T.worker;
56
56
  return /* @__PURE__ */ _("div", {
57
57
  className: "vdt:flex vdt:flex-col vdt:gap-3 vdt:p-3",
58
58
  children: [
59
- /* @__PURE__ */ _(i, { children: [/* @__PURE__ */ g(s, {
60
- Icon: e,
61
- right: /* @__PURE__ */ g(r, {
59
+ /* @__PURE__ */ _(n, { children: [/* @__PURE__ */ g(a, {
60
+ Icon: o,
61
+ right: /* @__PURE__ */ g(t, {
62
62
  size: "sm",
63
63
  onClick: D,
64
64
  children: v.refresh
65
65
  }),
66
66
  children: v.worker
67
- }), /* @__PURE__ */ g(o, { entries: [
67
+ }), /* @__PURE__ */ g(i, { entries: [
68
68
  {
69
69
  key: v.scope,
70
70
  value: O.scope ?? v.none
@@ -75,21 +75,21 @@ var v = (e, t) => ({
75
75
  },
76
76
  {
77
77
  key: "installing",
78
- value: /* @__PURE__ */ g(n, {
78
+ value: /* @__PURE__ */ g(e, {
79
79
  tone: S(O.installing),
80
80
  children: O.installing ?? v.none
81
81
  })
82
82
  },
83
83
  {
84
84
  key: "waiting",
85
- value: /* @__PURE__ */ g(n, {
85
+ value: /* @__PURE__ */ g(e, {
86
86
  tone: S(O.waiting),
87
87
  children: O.waiting ?? v.none
88
88
  })
89
89
  },
90
90
  {
91
91
  key: "active",
92
- value: /* @__PURE__ */ g(n, {
92
+ value: /* @__PURE__ */ g(e, {
93
93
  tone: S(O.active),
94
94
  children: O.active ?? v.none
95
95
  })
@@ -99,14 +99,14 @@ var v = (e, t) => ({
99
99
  value: O.backgroundSync ? v.yes : v.no
100
100
  }
101
101
  ] })] }),
102
- /* @__PURE__ */ _(i, { children: [/* @__PURE__ */ g(s, {
103
- right: /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g(r, {
102
+ /* @__PURE__ */ _(n, { children: [/* @__PURE__ */ g(a, {
103
+ right: /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g(t, {
104
104
  size: "sm",
105
105
  onClick: () => {
106
106
  y.check();
107
107
  },
108
108
  children: v.checkNow
109
- }), /* @__PURE__ */ g(r, {
109
+ }), /* @__PURE__ */ g(t, {
110
110
  size: "sm",
111
111
  variant: "accent",
112
112
  disabled: !y.updateAvailable,
@@ -116,7 +116,7 @@ var v = (e, t) => ({
116
116
  children: v.forceUpdate
117
117
  })] }),
118
118
  children: v.update
119
- }), /* @__PURE__ */ g(o, { entries: [
119
+ }), /* @__PURE__ */ g(i, { entries: [
120
120
  {
121
121
  key: v.currentBuild,
122
122
  value: w.platform.appVersion ?? v.unknown
@@ -130,15 +130,15 @@ var v = (e, t) => ({
130
130
  value: C.online ? v.yes : v.no
131
131
  }
132
132
  ] })] }),
133
- /* @__PURE__ */ _(i, { children: [/* @__PURE__ */ g(s, { children: v.precache }), T.caches.length === 0 ? /* @__PURE__ */ g("div", {
133
+ /* @__PURE__ */ _(n, { children: [/* @__PURE__ */ g(a, { children: v.precache }), T.caches.length === 0 ? /* @__PURE__ */ g("div", {
134
134
  className: "vdt:px-3 vdt:py-2 vdt:text-xs vdt:text-foreground-subtle",
135
135
  children: v.noCaches
136
- }) : /* @__PURE__ */ g(o, { entries: T.caches.map((e) => ({
136
+ }) : /* @__PURE__ */ g(i, { entries: T.caches.map((e) => ({
137
137
  key: e.name,
138
138
  value: v.entries(e.entries)
139
139
  })) })] }),
140
- /* @__PURE__ */ _(i, { children: [/* @__PURE__ */ g(s, {
141
- right: b.canInstall ? /* @__PURE__ */ g(r, {
140
+ /* @__PURE__ */ _(n, { children: [/* @__PURE__ */ g(a, {
141
+ right: b.canInstall ? /* @__PURE__ */ g(t, {
142
142
  size: "sm",
143
143
  onClick: () => {
144
144
  b.install();
@@ -146,7 +146,7 @@ var v = (e, t) => ({
146
146
  children: v.install
147
147
  }) : void 0,
148
148
  children: v.installAndPush
149
- }), /* @__PURE__ */ g(o, { entries: [
149
+ }), /* @__PURE__ */ g(i, { entries: [
150
150
  {
151
151
  key: v.installed,
152
152
  value: b.installed ? v.yes : v.no
@@ -1,6 +1,6 @@
1
- import { Compass as e } from "../components/icons.js";
2
- import { useDevtoolsStrings as t } from "../strings.js";
3
- import { Card as n, Empty as r, KeyValue as i, SectionTitle as a } from "../components/primitives.js";
1
+ import { Card as e, Empty as t, KeyValue as n, SectionTitle as r } from "../components/primitives.js";
2
+ import { Compass as i } from "../components/icons.js";
3
+ import { useDevtoolsStrings as a } from "../strings.js";
4
4
  import { useEffect as o, useState as s, useSyncExternalStore as c } from "react";
5
5
  import { getRouteSnapshot as l, subscribeRouteSnapshot as u } from "@voltro/web";
6
6
  import { jsx as d, jsxs as f } from "react/jsx-runtime";
@@ -23,18 +23,18 @@ var p = (e) => {
23
23
  };
24
24
  }, []), e;
25
25
  }, g = () => {
26
- let o = m(), c = h(), l = t().routes, [u, g] = s(!0), _ = o.pathname === "/" && Object.keys(o.params).length === 0 && o.loaderData === void 0 && c !== "/" ? c : o.pathname, v = Object.entries(o.params).map(([e, t]) => ({
26
+ let o = m(), c = h(), l = a().routes, [u, g] = s(!0), _ = o.pathname === "/" && Object.keys(o.params).length === 0 && o.loaderData === void 0 && c !== "/" ? c : o.pathname, v = Object.entries(o.params).map(([e, t]) => ({
27
27
  key: e,
28
28
  value: String(t)
29
29
  }));
30
30
  return /* @__PURE__ */ f("div", {
31
31
  className: "vdt:flex vdt:flex-col vdt:gap-3 vdt:p-3",
32
- children: [/* @__PURE__ */ f(n, { children: [
33
- /* @__PURE__ */ d(a, {
34
- Icon: e,
32
+ children: [/* @__PURE__ */ f(e, { children: [
33
+ /* @__PURE__ */ d(r, {
34
+ Icon: i,
35
35
  children: l.currentRoute
36
36
  }),
37
- /* @__PURE__ */ d(i, { entries: [{
37
+ /* @__PURE__ */ d(n, { entries: [{
38
38
  key: "pathname",
39
39
  value: _
40
40
  }, {
@@ -43,11 +43,11 @@ var p = (e) => {
43
43
  }] }),
44
44
  v.length > 0 ? /* @__PURE__ */ d("div", {
45
45
  className: "vdt:px-3 vdt:pb-3",
46
- children: /* @__PURE__ */ d(i, { entries: v })
46
+ children: /* @__PURE__ */ d(n, { entries: v })
47
47
  }) : null
48
- ] }), /* @__PURE__ */ f(n, { children: [
49
- /* @__PURE__ */ d(a, {
50
- Icon: e,
48
+ ] }), /* @__PURE__ */ f(e, { children: [
49
+ /* @__PURE__ */ d(r, {
50
+ Icon: i,
51
51
  children: l.loaderData
52
52
  }),
53
53
  /* @__PURE__ */ d("button", {
@@ -55,7 +55,7 @@ var p = (e) => {
55
55
  className: "vdt:px-3 vdt:py-1.5 vdt:text-[10px] vdt:uppercase vdt:tracking-wider vdt:text-foreground-muted vdt:hover:text-foreground",
56
56
  children: u ? l.collapse : l.expand
57
57
  }),
58
- u ? o.loaderData === void 0 ? /* @__PURE__ */ f(r, { children: [l.noLoaderTitle, /* @__PURE__ */ d("div", {
58
+ u ? o.loaderData === void 0 ? /* @__PURE__ */ f(t, { children: [l.noLoaderTitle, /* @__PURE__ */ d("div", {
59
59
  className: "vdt:mt-1 vdt:text-foreground-subtle",
60
60
  children: l.noLoaderHint(/* @__PURE__ */ d("code", { children: "<Router>" }))
61
61
  })] }) : /* @__PURE__ */ d("pre", {
@@ -1,6 +1,6 @@
1
- import { Plug as e } from "../components/icons.js";
2
- import { useDevtoolsStrings as t } from "../strings.js";
3
- import { Badge as n, Card as r, Empty as i, KeyValue as a, SectionTitle as o } from "../components/primitives.js";
1
+ import { Badge as e, Card as t, Empty as n, KeyValue as r, SectionTitle as i } from "../components/primitives.js";
2
+ import { Plug as a } from "../components/icons.js";
3
+ import { useDevtoolsStrings as o } from "../strings.js";
4
4
  import { useFrameworkRuntimes as s } from "@voltro/client";
5
5
  import { jsx as c, jsxs as l } from "react/jsx-runtime";
6
6
  // src/panels/runtimes.tsx
@@ -15,22 +15,22 @@ var u = (e) => {
15
15
  workflows: a
16
16
  };
17
17
  }, d = () => {
18
- let d = s(), f = t().runtimes, p = d.names;
19
- return p.length === 0 ? /* @__PURE__ */ l(i, { children: [f.emptyTitle, /* @__PURE__ */ c("div", {
18
+ let d = s(), f = o().runtimes, p = d.names;
19
+ return p.length === 0 ? /* @__PURE__ */ l(n, { children: [f.emptyTitle, /* @__PURE__ */ c("div", {
20
20
  className: "vdt:mt-1 vdt:text-foreground-subtle",
21
21
  children: f.emptyHint
22
22
  })] }) : /* @__PURE__ */ c("div", {
23
23
  className: "vdt:flex vdt:flex-col vdt:gap-3 vdt:p-3",
24
- children: p.map((t) => {
25
- let i = d.get(t), s = u(i.descriptors);
26
- return /* @__PURE__ */ l(r, { children: [/* @__PURE__ */ c(o, {
27
- Icon: e,
28
- right: /* @__PURE__ */ c(n, {
24
+ children: p.map((n) => {
25
+ let o = d.get(n), s = u(o.descriptors);
26
+ return /* @__PURE__ */ l(t, { children: [/* @__PURE__ */ c(i, {
27
+ Icon: a,
28
+ right: /* @__PURE__ */ c(e, {
29
29
  tone: "success",
30
30
  children: f.live
31
31
  }),
32
- children: t
33
- }), /* @__PURE__ */ c(a, { entries: [
32
+ children: n
33
+ }), /* @__PURE__ */ c(r, { entries: [
34
34
  {
35
35
  key: "queries",
36
36
  value: String(s.queries)
@@ -53,13 +53,13 @@ var u = (e) => {
53
53
  },
54
54
  {
55
55
  key: "cacheSize",
56
- value: String(i.cache.size())
56
+ value: String(o.cache.size())
57
57
  },
58
58
  {
59
59
  key: "descriptors",
60
- value: String(Object.keys(i.descriptors).length)
60
+ value: String(Object.keys(o.descriptors).length)
61
61
  }
62
- ] })] }, t);
62
+ ] })] }, n);
63
63
  })
64
64
  });
65
65
  };