@plitzi/sdk-dev-tools 0.39.4 → 0.39.6
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.
- package/CHANGELOG.md +17 -0
- package/dist/components/DevToolsIndicator/DevToolsIndicator.mjs +2 -2
- package/dist/components/DevToolsPanel/DevToolsBody.mjs +1 -1
- package/dist/components/DevToolsPanel/DevToolsButton.mjs +1 -1
- package/dist/components/DevToolsPanel/DevToolsHeader.mjs +4 -4
- package/dist/components/DevToolsPanel/DevToolsPanel.mjs +1 -1
- package/dist/components/DevToolsPanel/DevToolsSubHeader.mjs +1 -1
- package/dist/components/DevToolsPanel/tabs/ActionsViewer/components/ActionsToolbar/ActionsToolbar.mjs +5 -5
- package/dist/components/DevToolsPanel/tabs/ActionsViewer/components/RunDetail/RunDetail.mjs +23 -23
- package/dist/components/DevToolsPanel/tabs/ActionsViewer/components/RunList/RunList.mjs +2 -2
- package/dist/components/DevToolsPanel/tabs/ActionsViewer/components/RunRow/RunRow.mjs +7 -7
- package/dist/components/DevToolsPanel/tabs/ActionsViewer/components/StepRow/StepRow.mjs +5 -5
- package/dist/components/DevToolsPanel/tabs/ActionsViewer/helpers.mjs +2 -2
- package/dist/components/DevToolsPanel/tabs/CacheViewer/CacheViewer.mjs +6 -6
- package/dist/components/DevToolsPanel/tabs/CacheViewer/components/CacheRow/CacheRow.mjs +8 -8
- package/dist/components/DevToolsPanel/tabs/ElementsViewer/components/DetailsRow/DetailsRow.mjs +3 -3
- package/dist/components/DevToolsPanel/tabs/ElementsViewer/components/DetailsRuntime/DetailsRuntime.mjs +1 -1
- package/dist/components/DevToolsPanel/tabs/ElementsViewer/components/ElementsTree/ElementsTree.mjs +2 -2
- package/dist/components/DevToolsPanel/tabs/ElementsViewer/components/TreeRow/TreeRow.mjs +3 -3
- package/dist/components/DevToolsPanel/tabs/ElementsViewer/components/TreeSection/TreeSection.mjs +2 -2
- package/dist/components/DevToolsPanel/tabs/FlagsViewer/FlagSource.mjs +1 -1
- package/dist/components/DevToolsPanel/tabs/FlagsViewer/FlagsListItem.mjs +8 -8
- package/dist/components/DevToolsPanel/tabs/FlagsViewer/FlagsViewer.mjs +4 -4
- package/dist/components/DevToolsPanel/tabs/HistoryViewer/HistoryViewer.mjs +1 -1
- package/dist/components/DevToolsPanel/tabs/HistoryViewer/components/HistoryEntryItem/HistoryEntryItem.mjs +2 -2
- package/dist/components/DevToolsPanel/tabs/HistoryViewer/components/HistoryToolbar/HistoryToolbar.mjs +5 -5
- package/dist/components/DevToolsPanel/tabs/Logs/LogStatus.mjs +1 -1
- package/dist/components/DevToolsPanel/tabs/Logs/LogStatusIcon.mjs +1 -1
- package/dist/components/DevToolsPanel/tabs/Logs/Logs.mjs +4 -4
- package/dist/components/DevToolsPanel/tabs/Logs/LogsSummary/LogsSummary.mjs +1 -1
- package/dist/components/DevToolsPanel/tabs/Logs/LogsSummary/LogsSummaryItem.mjs +4 -4
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogAction/LogAction.mjs +5 -5
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/BodyContent.mjs +1 -1
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/BodyHeader.mjs +13 -13
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/ExecutionTree/ExecutionTree.mjs +1 -1
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/ExecutionTree/ExecutionTreeNode.mjs +5 -5
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/InteractionNode/InteractionNode.mjs +2 -2
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/InteractionNode/NodeHeader.mjs +9 -9
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/InteractionNode/NodeMetadata.mjs +2 -2
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/InteractionNode/NodeWhen.mjs +2 -2
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/LogInteraction.mjs +3 -3
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/LogInteractionBody.mjs +3 -3
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/LogInteractionHeader.mjs +2 -2
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/LogInteractionNote.mjs +6 -6
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogNavigation/LogNavigation.mjs +2 -2
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogNavigation/LogNavigationBody.mjs +1 -1
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogNavigation/LogNavigationHeader.mjs +2 -2
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogNetwork/LogNetwork.mjs +6 -6
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogRealtime/LogRealtime.mjs +5 -5
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogStore/LogStore.mjs +1 -1
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogStore/LogStoreBody.mjs +11 -11
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogStore/LogStoreHeader.mjs +3 -3
- package/dist/components/DevToolsPanel/tabs/PluginsViewer/PluginDetails.mjs +12 -12
- package/dist/components/DevToolsPanel/tabs/PluginsViewer/PluginsViewer.mjs +2 -2
- package/dist/components/DevToolsPanel/tabs/QaViewer/QaAllChecksButton.mjs +1 -1
- package/dist/components/DevToolsPanel/tabs/QaViewer/QaCheckRow.mjs +3 -3
- package/dist/components/DevToolsPanel/tabs/QaViewer/QaChecks.mjs +2 -2
- package/dist/components/DevToolsPanel/tabs/QaViewer/QaDivider.mjs +1 -1
- package/dist/components/DevToolsPanel/tabs/QaViewer/QaFindingItem.mjs +3 -3
- package/dist/components/DevToolsPanel/tabs/QaViewer/QaInspectorDetails.mjs +7 -7
- package/dist/components/DevToolsPanel/tabs/QaViewer/QaInspectorEmpty.mjs +2 -2
- package/dist/components/DevToolsPanel/tabs/QaViewer/QaInspectorPanel.mjs +1 -1
- package/dist/components/DevToolsPanel/tabs/QaViewer/QaProperty.mjs +2 -2
- package/dist/components/DevToolsPanel/tabs/QaViewer/QaReplayButton.mjs +1 -1
- package/dist/components/DevToolsPanel/tabs/QaViewer/QaRescanButton.mjs +1 -1
- package/dist/components/DevToolsPanel/tabs/QaViewer/QaRuleItem.mjs +3 -3
- package/dist/components/DevToolsPanel/tabs/QaViewer/QaToolChip.mjs +1 -1
- package/dist/components/DevToolsPanel/tabs/QaViewer/QaToolbar.mjs +1 -1
- package/dist/components/DevToolsPanel/tabs/QaViewer/QaVisionSelect.mjs +2 -2
- package/dist/components/DevToolsPanel/tabs/QaViewer/QaXray.mjs +2 -2
- package/dist/components/DevToolsPanel/tabs/QaViewer/QaXrayBoxesRow.mjs +3 -3
- package/dist/components/DevToolsPanel/tabs/QaViewer/QaXrayRow.mjs +4 -4
- package/dist/components/DevToolsPanel/tabs/RunViewer/RunReport.mjs +5 -5
- package/dist/components/DevToolsPanel/tabs/RunViewer/RunTaskRow.mjs +7 -7
- package/dist/components/DevToolsPanel/tabs/RunViewer/RunViewer.mjs +17 -17
- package/dist/components/DevToolsPanel/tabs/StoreViewer/StoreViewer.mjs +3 -3
- package/dist/components/DevToolsPanel/tabs/TracingViewer/TracingViewer.mjs +4 -4
- package/dist/components/DevToolsPanel/tabs/TracingViewer/components/CommitCause/CommitCause.mjs +6 -6
- package/dist/components/DevToolsPanel/tabs/TracingViewer/components/CommitStrip/CommitStrip.mjs +4 -4
- package/dist/components/DevToolsPanel/tabs/TracingViewer/components/DetailSidebar/DetailSidebar.mjs +29 -29
- package/dist/components/DevToolsPanel/tabs/TracingViewer/components/DurationLegend/DurationLegend.mjs +2 -2
- package/dist/components/DevToolsPanel/tabs/TracingViewer/components/Flamegraph/FlameFrame.mjs +2 -2
- package/dist/components/DevToolsPanel/tabs/TracingViewer/components/Flamegraph/Flamegraph.mjs +2 -2
- package/dist/components/DevToolsPanel/tabs/TracingViewer/components/HotspotSidebar/HotspotSidebar.mjs +21 -21
- package/dist/components/DevToolsPanel/tabs/TracingViewer/components/HotspotsList/HotspotsList.mjs +10 -10
- package/dist/components/DevToolsPanel/tabs/TracingViewer/components/MetricToggle/MetricToggle.mjs +2 -2
- package/dist/components/DevToolsPanel/tabs/TracingViewer/components/RankedList/RankedList.mjs +9 -9
- package/dist/components/DevToolsPanel/tabs/TracingViewer/components/SidebarShell/SidebarEmpty.mjs +1 -1
- package/dist/components/DevToolsPanel/tabs/TracingViewer/components/SidebarToggle/SidebarToggle.mjs +1 -1
- package/dist/components/DevToolsPanel/tabs/TracingViewer/components/TracingToolbar/TracingToolbar.mjs +5 -5
- package/dist/components/DevToolsPanel/tabs/TracingViewer/helpers.d.ts +1 -1
- package/dist/components/DevToolsPanel/tabs/TracingViewer/helpers.mjs +1 -1
- package/dist/components/DevToolsPanel/tabs/VariablesViewer/VariableValue.mjs +3 -3
- package/dist/components/DevToolsPanel/tabs/VariablesViewer/VariablesList.mjs +3 -3
- package/dist/components/DevToolsPanel/tabs/VariablesViewer/VariablesListItem.mjs +3 -3
- package/dist/components/DevToolsPanel/tabs/VariablesViewer/VariablesStyleList.mjs +3 -3
- package/dist/components/DevToolsPanel/tabs/VariablesViewer/VariablesViewer.mjs +2 -2
- package/dist/components/List/List.mjs +3 -3
- package/dist/components/List/ListItem.mjs +1 -1
- package/dist/components/PayloadView/PayloadView.mjs +1 -1
- package/dist/components/ResizableSidebar/ResizableSidebar.mjs +2 -2
- package/dist/qa/overlays/QaTooltip.mjs +3 -3
- package/dist/qa/overlays/QaViewport.mjs +1 -1
- package/dist/qa/qaCss.mjs +1 -20
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @plitzi/sdk-dev-tools
|
|
2
2
|
|
|
3
|
+
## 0.39.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- @plitzi/sdk-schema@0.39.6
|
|
8
|
+
- @plitzi/sdk-shared@0.39.6
|
|
9
|
+
|
|
10
|
+
## 0.39.5
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- 4427674: Released with every `@plitzi` package at this version. What changed in each, and what to do when you upgrade, is in
|
|
15
|
+
`@plitzi/cli`'s `CHANGELOG.md`: one copy of the notes, not one per package.
|
|
16
|
+
- Updated dependencies [4427674]
|
|
17
|
+
- @plitzi/sdk-schema@0.39.5
|
|
18
|
+
- @plitzi/sdk-shared@0.39.5
|
|
19
|
+
|
|
3
20
|
## 0.39.4
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -41,7 +41,7 @@ var f = 5, p = ({ className: p, onOpen: m }) => {
|
|
|
41
41
|
style: v ? { translate: `${String(v.x - v.from)}px 0` } : void 0,
|
|
42
42
|
[c]: "",
|
|
43
43
|
children: /* @__PURE__ */ d("button", {
|
|
44
|
-
className: n("flex cursor-pointer touch-none items-center gap-2 rounded border
|
|
44
|
+
className: n("border-ui-line bg-ui-panel flex cursor-pointer touch-none items-center gap-2 rounded border px-2 py-1.5 text-[12px]/[16px]", "text-ui-fg-muted hover:bg-ui-hover font-bold shadow-md transition-colors select-none", "dark:border-ui-line-strong dark:bg-ui-panel dark:text-ui-fg-muted dark:hover:bg-ui-hover"),
|
|
45
45
|
title: "Plitzi dev tools — drag to the other corner",
|
|
46
46
|
onPointerDown: w,
|
|
47
47
|
onPointerMove: T,
|
|
@@ -57,7 +57,7 @@ var f = 5, p = ({ className: p, onOpen: m }) => {
|
|
|
57
57
|
className: "flex items-center gap-1 text-amber-600 dark:text-amber-400",
|
|
58
58
|
children: [/* @__PURE__ */ u("i", { className: "fa-solid fa-triangle-exclamation text-[11px]" }), C]
|
|
59
59
|
}),
|
|
60
|
-
S === 0 && C === 0 && /* @__PURE__ */ u("i", { className: "fa-solid fa-terminal text-[11px]
|
|
60
|
+
S === 0 && C === 0 && /* @__PURE__ */ u("i", { className: "fa-solid fa-terminal text-ui-fg-subtle text-[11px]" })
|
|
61
61
|
]
|
|
62
62
|
})
|
|
63
63
|
});
|
|
@@ -18,7 +18,7 @@ import { jsx as h, jsxs as g } from "react/jsx-runtime";
|
|
|
18
18
|
var _ = ({ className: _, tabSelected: v, orientation: y, logTypeFilter: b, elementSelected: x, onSelectElement: S, qa: C = !1, run: w }) => {
|
|
19
19
|
let { logs: T, clearLogs: E } = p(m);
|
|
20
20
|
return /* @__PURE__ */ h("div", {
|
|
21
|
-
className: f("flex min-h-0 w-full flex-1 overflow-auto
|
|
21
|
+
className: f("bg-ui-panel flex min-h-0 w-full flex-1 overflow-auto", _),
|
|
22
22
|
children: /* @__PURE__ */ g("div", {
|
|
23
23
|
className: "flex min-h-0 w-full flex-col",
|
|
24
24
|
children: [
|
|
@@ -4,7 +4,7 @@ import { jsx as t } from "react/jsx-runtime";
|
|
|
4
4
|
var n = ({ className: n, iconClassName: r, title: i, isSelected: a = !1, disabled: o = !1, onClick: s }) => /* @__PURE__ */ t("button", {
|
|
5
5
|
className: e("flex h-6 w-6 cursor-pointer items-center justify-center rounded transition-colors disabled:cursor-not-allowed disabled:opacity-40", {
|
|
6
6
|
"bg-violet-500/10 text-violet-600 dark:bg-violet-500/20 dark:text-violet-400": a,
|
|
7
|
-
"text-
|
|
7
|
+
"text-ui-fg-subtle hover:bg-ui-hover hover:text-ui-fg": !a
|
|
8
8
|
}, n),
|
|
9
9
|
title: i,
|
|
10
10
|
disabled: o,
|
|
@@ -79,7 +79,7 @@ var u = [
|
|
|
79
79
|
p?.(f === "horizontal" ? "vertical" : "horizontal");
|
|
80
80
|
}, [f, p]), T = a((e) => () => h?.(e), [h]), E = a((e) => C(e.target.value), [C]);
|
|
81
81
|
return /* @__PURE__ */ l("div", {
|
|
82
|
-
className: "flex shrink-0 items-stretch justify-between border-b
|
|
82
|
+
className: "border-ui-line bg-ui-raised flex shrink-0 items-stretch justify-between border-b select-none",
|
|
83
83
|
children: [/* @__PURE__ */ c("div", {
|
|
84
84
|
ref: b,
|
|
85
85
|
role: "tablist",
|
|
@@ -92,19 +92,19 @@ var u = [
|
|
|
92
92
|
onClick: T(e.id),
|
|
93
93
|
className: i("flex cursor-pointer items-center gap-1.5 border-b-2 px-3 py-2 font-medium transition-colors", {
|
|
94
94
|
"border-violet-500 text-violet-600 dark:text-violet-400": t,
|
|
95
|
-
"
|
|
95
|
+
"text-ui-fg-subtle hover:bg-ui-hover/70 hover:text-ui-fg border-transparent": !t
|
|
96
96
|
}),
|
|
97
97
|
children: [/* @__PURE__ */ c("i", { className: i(e.icon, "text-[10px]") }), e.label]
|
|
98
98
|
}, e.id);
|
|
99
99
|
})
|
|
100
100
|
}), /* @__PURE__ */ l("div", {
|
|
101
|
-
className: "flex shrink-0 items-center gap-1 border-l
|
|
101
|
+
className: "border-ui-line flex shrink-0 items-center gap-1 border-l px-2",
|
|
102
102
|
children: [
|
|
103
103
|
x.length > 0 && /* @__PURE__ */ c("select", {
|
|
104
104
|
value: S ?? "",
|
|
105
105
|
onChange: E,
|
|
106
106
|
title: "Instance / StoreProvider driving the panel",
|
|
107
|
-
className: "max-w-52 rounded border
|
|
107
|
+
className: "border-ui-line-strong bg-ui-panel text-ui-fg max-w-52 rounded border px-1 py-0.5 text-[11px]",
|
|
108
108
|
children: x.map((e) => /* @__PURE__ */ c("optgroup", {
|
|
109
109
|
label: e.label,
|
|
110
110
|
children: e.options.map((e) => /* @__PURE__ */ c("option", {
|
|
@@ -31,7 +31,7 @@ var h = "vertical", g = "horizontal", _ = ({ className: h, orientation: g = "ver
|
|
|
31
31
|
autoGrow: !1,
|
|
32
32
|
onChange: P,
|
|
33
33
|
children: /* @__PURE__ */ p("div", {
|
|
34
|
-
className: "flex h-full min-h-0 w-full flex-col overflow-hidden
|
|
34
|
+
className: "bg-ui-panel text-ui-fg flex h-full min-h-0 w-full flex-col overflow-hidden",
|
|
35
35
|
[u]: "",
|
|
36
36
|
children: [
|
|
37
37
|
/* @__PURE__ */ f(n, {
|
|
@@ -32,7 +32,7 @@ var d = ({ className: d, elementSelected: f, currentPageId: p, onSelectElement:
|
|
|
32
32
|
y,
|
|
33
33
|
h
|
|
34
34
|
]), /* @__PURE__ */ u("div", {
|
|
35
|
-
className: n("flex shrink-0 items-center justify-between gap-2 border-b
|
|
35
|
+
className: n("border-ui-line bg-ui-raised flex shrink-0 items-center justify-between gap-2 border-b px-2 py-1", d),
|
|
36
36
|
children: [/* @__PURE__ */ u("div", {
|
|
37
37
|
className: "flex gap-1",
|
|
38
38
|
children: [/* @__PURE__ */ l(e, {
|
|
@@ -21,7 +21,7 @@ var i = [
|
|
|
21
21
|
], a = ({ filter: a, query: o, liveCount: s, runCount: c, onFilterChange: l, onQueryChange: u, onClear: d }) => {
|
|
22
22
|
let f = t((e) => () => l(e), [l]), p = t((e) => u(e.target.value), [u]);
|
|
23
23
|
return /* @__PURE__ */ r("div", {
|
|
24
|
-
className: "flex shrink-0 items-center gap-2 border-b
|
|
24
|
+
className: "border-ui-line bg-ui-panel flex shrink-0 items-center gap-2 border-b px-2 py-1.5",
|
|
25
25
|
children: [
|
|
26
26
|
/* @__PURE__ */ n("div", {
|
|
27
27
|
className: "flex items-stretch gap-1",
|
|
@@ -32,7 +32,7 @@ var i = [
|
|
|
32
32
|
"aria-pressed": i,
|
|
33
33
|
className: e("flex h-6 items-center gap-1 rounded px-2 text-xs font-medium transition-colors", {
|
|
34
34
|
"bg-violet-500 text-white": i,
|
|
35
|
-
"text-
|
|
35
|
+
"text-ui-fg-muted hover:bg-ui-hover": !i
|
|
36
36
|
}),
|
|
37
37
|
children: [
|
|
38
38
|
/* @__PURE__ */ n("i", { className: e(t.icon, t.id === "live" && s > 0 && "fa-spin") }),
|
|
@@ -50,15 +50,15 @@ var i = [
|
|
|
50
50
|
value: o,
|
|
51
51
|
onChange: p,
|
|
52
52
|
placeholder: "Filter by action, step or run id",
|
|
53
|
-
className: "
|
|
53
|
+
className: "border-ui-line bg-ui-raised text-ui-fg placeholder:text-ui-fg-subtle h-6 min-w-0 grow rounded border px-2 text-xs"
|
|
54
54
|
}),
|
|
55
55
|
/* @__PURE__ */ r("span", {
|
|
56
|
-
className: "shrink-0 text-[10px]
|
|
56
|
+
className: "text-ui-fg-subtle shrink-0 text-[10px] tabular-nums",
|
|
57
57
|
children: [c, " runs"]
|
|
58
58
|
}),
|
|
59
59
|
/* @__PURE__ */ r("button", {
|
|
60
60
|
onClick: d,
|
|
61
|
-
className: "flex h-6 shrink-0 items-center gap-1 rounded px-2 text-xs font-medium
|
|
61
|
+
className: "text-ui-fg-muted hover:bg-ui-hover flex h-6 shrink-0 items-center gap-1 rounded px-2 text-xs font-medium",
|
|
62
62
|
children: [/* @__PURE__ */ n("i", { className: "fa-solid fa-trash" }), "Clear"]
|
|
63
63
|
})
|
|
64
64
|
]
|
|
@@ -10,14 +10,14 @@ var h = {
|
|
|
10
10
|
success: "bg-emerald-500/15 text-emerald-600 dark:text-emerald-400",
|
|
11
11
|
danger: "bg-red-500/15 text-red-600 dark:text-red-400",
|
|
12
12
|
warning: "bg-amber-500/15 text-amber-600 dark:text-amber-400",
|
|
13
|
-
custom: "bg-zinc-500/15 text-
|
|
13
|
+
custom: "bg-zinc-500/15 text-ui-fg-subtle"
|
|
14
14
|
}, g = "This page was sent what the flow DID, not what each step read or answered. Open the action in the builder, or run the deployment in dev mode, to inspect a step.", _ = "The server did not send the steps for this run: the action is behind a session, or this page is not authorized to debug it.", v = "The flow is still running. Its steps arrive with the answer.", y = ({ run: y, selectedStepId: b, onSelectStep: x }) => {
|
|
15
15
|
let S = n(y.steps), C = o(y), w = d(() => b === void 0 ? void 0 : c(y.trace, b), [y.trace, b]);
|
|
16
16
|
return /* @__PURE__ */ m(f, { children: [
|
|
17
17
|
/* @__PURE__ */ m("div", {
|
|
18
18
|
className: "flex items-center gap-1.5",
|
|
19
19
|
children: [/* @__PURE__ */ p("span", {
|
|
20
|
-
className: "truncate text-xs font-medium
|
|
20
|
+
className: "text-ui-fg truncate text-xs font-medium",
|
|
21
21
|
children: y.actionId || "(no action named)"
|
|
22
22
|
}), /* @__PURE__ */ p("span", {
|
|
23
23
|
className: u("shrink-0 rounded px-1 py-0.5 text-[9px]", h[s(y.status)]),
|
|
@@ -35,11 +35,11 @@ var h = {
|
|
|
35
35
|
})]
|
|
36
36
|
}),
|
|
37
37
|
/* @__PURE__ */ p("div", {
|
|
38
|
-
className: "mt-1 font-medium tracking-wide
|
|
38
|
+
className: "text-ui-fg-subtle mt-1 font-medium tracking-wide uppercase",
|
|
39
39
|
children: "Flow"
|
|
40
40
|
}),
|
|
41
41
|
y.steps === void 0 && /* @__PURE__ */ p("span", {
|
|
42
|
-
className: "text-
|
|
42
|
+
className: "text-ui-fg-subtle italic",
|
|
43
43
|
children: a(y) ? v : _
|
|
44
44
|
}),
|
|
45
45
|
y.steps !== void 0 && /* @__PURE__ */ p(l, {
|
|
@@ -48,90 +48,90 @@ var h = {
|
|
|
48
48
|
onSelectStep: x
|
|
49
49
|
}),
|
|
50
50
|
b !== void 0 && w === void 0 && /* @__PURE__ */ p("span", {
|
|
51
|
-
className: "text-
|
|
51
|
+
className: "text-ui-fg-subtle italic",
|
|
52
52
|
children: g
|
|
53
53
|
}),
|
|
54
54
|
w !== void 0 && /* @__PURE__ */ p("div", {
|
|
55
|
-
className: "overflow-auto rounded border
|
|
55
|
+
className: "border-ui-line overflow-auto rounded border",
|
|
56
56
|
children: /* @__PURE__ */ p(e, { value: w })
|
|
57
57
|
}),
|
|
58
58
|
/* @__PURE__ */ p("div", {
|
|
59
|
-
className: "mt-1 font-medium tracking-wide
|
|
59
|
+
className: "text-ui-fg-subtle mt-1 font-medium tracking-wide uppercase",
|
|
60
60
|
children: "Run"
|
|
61
61
|
}),
|
|
62
62
|
/* @__PURE__ */ m("div", {
|
|
63
63
|
className: "flex justify-between gap-2",
|
|
64
64
|
children: [/* @__PURE__ */ p("span", {
|
|
65
|
-
className: "text-
|
|
65
|
+
className: "text-ui-fg-subtle",
|
|
66
66
|
children: "Mode"
|
|
67
67
|
}), /* @__PURE__ */ p("span", {
|
|
68
|
-
className: "text-
|
|
68
|
+
className: "text-ui-fg",
|
|
69
69
|
children: t[y.mode]
|
|
70
70
|
})]
|
|
71
71
|
}),
|
|
72
72
|
/* @__PURE__ */ m("div", {
|
|
73
73
|
className: "flex justify-between gap-2",
|
|
74
74
|
children: [/* @__PURE__ */ p("span", {
|
|
75
|
-
className: "text-
|
|
75
|
+
className: "text-ui-fg-subtle",
|
|
76
76
|
children: "Started"
|
|
77
77
|
}), /* @__PURE__ */ p("span", {
|
|
78
|
-
className: "text-
|
|
78
|
+
className: "text-ui-fg tabular-nums",
|
|
79
79
|
children: i(y.startedAt)
|
|
80
80
|
})]
|
|
81
81
|
}),
|
|
82
82
|
/* @__PURE__ */ m("div", {
|
|
83
83
|
className: "flex justify-between gap-2",
|
|
84
84
|
children: [/* @__PURE__ */ p("span", {
|
|
85
|
-
className: "text-
|
|
85
|
+
className: "text-ui-fg-subtle",
|
|
86
86
|
children: "Took"
|
|
87
87
|
}), /* @__PURE__ */ p("span", {
|
|
88
|
-
className: "text-
|
|
88
|
+
className: "text-ui-fg tabular-nums",
|
|
89
89
|
children: C === void 0 ? "still running" : r(C)
|
|
90
90
|
})]
|
|
91
91
|
}),
|
|
92
92
|
y.elementId !== void 0 && /* @__PURE__ */ m("div", {
|
|
93
93
|
className: "flex justify-between gap-2",
|
|
94
94
|
children: [/* @__PURE__ */ p("span", {
|
|
95
|
-
className: "text-
|
|
95
|
+
className: "text-ui-fg-subtle",
|
|
96
96
|
children: "Element"
|
|
97
97
|
}), /* @__PURE__ */ p("span", {
|
|
98
|
-
className: "truncate font-mono
|
|
98
|
+
className: "text-ui-fg-muted truncate font-mono",
|
|
99
99
|
children: y.elementId
|
|
100
100
|
})]
|
|
101
101
|
}),
|
|
102
102
|
y.runId !== void 0 && /* @__PURE__ */ m("div", {
|
|
103
103
|
className: "flex flex-col gap-0.5",
|
|
104
104
|
children: [/* @__PURE__ */ p("span", {
|
|
105
|
-
className: "text-
|
|
105
|
+
className: "text-ui-fg-subtle",
|
|
106
106
|
children: "Run id"
|
|
107
107
|
}), /* @__PURE__ */ p("span", {
|
|
108
|
-
className: "font-mono break-all
|
|
108
|
+
className: "text-ui-fg-muted font-mono break-all",
|
|
109
109
|
children: y.runId
|
|
110
110
|
})]
|
|
111
111
|
}),
|
|
112
112
|
y.input !== void 0 && /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("div", {
|
|
113
|
-
className: "mt-1 font-medium tracking-wide
|
|
113
|
+
className: "text-ui-fg-subtle mt-1 font-medium tracking-wide uppercase",
|
|
114
114
|
children: "Input"
|
|
115
115
|
}), /* @__PURE__ */ p("div", {
|
|
116
|
-
className: "overflow-auto rounded border
|
|
116
|
+
className: "border-ui-line overflow-auto rounded border",
|
|
117
117
|
children: /* @__PURE__ */ p(e, { value: y.input })
|
|
118
118
|
})] }),
|
|
119
119
|
y.output !== void 0 && /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("div", {
|
|
120
|
-
className: "mt-1 font-medium tracking-wide
|
|
120
|
+
className: "text-ui-fg-subtle mt-1 font-medium tracking-wide uppercase",
|
|
121
121
|
children: "Output"
|
|
122
122
|
}), /* @__PURE__ */ p("div", {
|
|
123
|
-
className: "overflow-auto rounded border
|
|
123
|
+
className: "border-ui-line overflow-auto rounded border",
|
|
124
124
|
children: /* @__PURE__ */ p(e, { value: y.output })
|
|
125
125
|
})] }),
|
|
126
126
|
y.progress.length > 0 && /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ m("div", {
|
|
127
|
-
className: "mt-1 font-medium tracking-wide
|
|
127
|
+
className: "text-ui-fg-subtle mt-1 font-medium tracking-wide uppercase",
|
|
128
128
|
children: [
|
|
129
129
|
"Progress (",
|
|
130
130
|
y.progress.length,
|
|
131
131
|
")"
|
|
132
132
|
]
|
|
133
133
|
}), /* @__PURE__ */ p("div", {
|
|
134
|
-
className: "overflow-auto rounded border
|
|
134
|
+
className: "border-ui-line overflow-auto rounded border",
|
|
135
135
|
children: /* @__PURE__ */ p(e, { value: y.progress })
|
|
136
136
|
})] })
|
|
137
137
|
] });
|
|
@@ -5,11 +5,11 @@ var r = "No server action has run on this page yet. A run appears the moment one
|
|
|
5
5
|
className: "flex min-w-0 grow flex-col overflow-auto",
|
|
6
6
|
children: [
|
|
7
7
|
a === 0 && /* @__PURE__ */ t("div", {
|
|
8
|
-
className: "p-3 text-[11px]
|
|
8
|
+
className: "text-ui-fg-subtle p-3 text-[11px]",
|
|
9
9
|
children: r
|
|
10
10
|
}),
|
|
11
11
|
a > 0 && i.length === 0 && /* @__PURE__ */ t("div", {
|
|
12
|
-
className: "p-3 text-[11px]
|
|
12
|
+
className: "text-ui-fg-subtle p-3 text-[11px]",
|
|
13
13
|
children: "No run matches this filter."
|
|
14
14
|
}),
|
|
15
15
|
i.map((n) => /* @__PURE__ */ t(e, {
|
|
@@ -18,13 +18,13 @@ var h = {
|
|
|
18
18
|
success: "border-l-emerald-400",
|
|
19
19
|
danger: "border-l-red-400",
|
|
20
20
|
warning: "border-l-amber-400",
|
|
21
|
-
custom: "border-l-
|
|
21
|
+
custom: "border-l-ui-line-strong"
|
|
22
22
|
}, _ = ({ run: _, selected: v, onSelect: y, onCancel: b }) => {
|
|
23
23
|
let x = d(() => y(_.id), [y, _.id]), S = d(() => b(_.id), [b, _.id]), C = r(_.steps), w = s(_);
|
|
24
24
|
return /* @__PURE__ */ p("div", {
|
|
25
25
|
className: u("flex items-center gap-2 border-b border-l-2 px-2", g[c(_.status)], {
|
|
26
|
-
"border-b-
|
|
27
|
-
"border-b-
|
|
26
|
+
"border-b-ui-line bg-violet-500/5": v,
|
|
27
|
+
"border-b-ui-line hover:bg-ui-hover": !v
|
|
28
28
|
}),
|
|
29
29
|
children: [/* @__PURE__ */ p("button", {
|
|
30
30
|
type: "button",
|
|
@@ -38,21 +38,21 @@ var h = {
|
|
|
38
38
|
iconClassName: h[_.status]
|
|
39
39
|
}),
|
|
40
40
|
/* @__PURE__ */ f("span", {
|
|
41
|
-
className: "truncate font-medium
|
|
41
|
+
className: "text-ui-fg truncate font-medium",
|
|
42
42
|
children: _.actionId || "(no action named)"
|
|
43
43
|
}),
|
|
44
44
|
/* @__PURE__ */ p("span", {
|
|
45
|
-
className: "flex shrink-0 items-center gap-1 rounded-sm
|
|
45
|
+
className: "bg-ui-raised text-ui-fg-subtle flex shrink-0 items-center gap-1 rounded-sm px-1 text-[9px] uppercase",
|
|
46
46
|
title: _.mode === "render" ? "Run by the server while it built this page" : void 0,
|
|
47
47
|
children: [/* @__PURE__ */ f("i", { className: t[_.mode] }), n[_.mode]]
|
|
48
48
|
}),
|
|
49
49
|
/* @__PURE__ */ f("span", {
|
|
50
|
-
className: "ml-auto shrink-0
|
|
50
|
+
className: "text-ui-fg-subtle ml-auto shrink-0 tabular-nums",
|
|
51
51
|
children: w === void 0 ? "…" : i(w)
|
|
52
52
|
})
|
|
53
53
|
]
|
|
54
54
|
}), /* @__PURE__ */ p("div", {
|
|
55
|
-
className: "flex items-center gap-1.5 text-[10px]
|
|
55
|
+
className: "text-ui-fg-subtle flex items-center gap-1.5 text-[10px]",
|
|
56
56
|
children: [
|
|
57
57
|
/* @__PURE__ */ f("span", {
|
|
58
58
|
className: "shrink-0 tabular-nums",
|
|
@@ -12,7 +12,7 @@ var l = ({ bar: l, selected: u, onSelect: d }) => {
|
|
|
12
12
|
"aria-pressed": u,
|
|
13
13
|
className: a("flex w-full flex-col gap-1 rounded px-1.5 py-1 text-left transition-colors", {
|
|
14
14
|
"bg-violet-500/10": u,
|
|
15
|
-
"hover:bg-
|
|
15
|
+
"hover:bg-ui-hover": !u
|
|
16
16
|
}),
|
|
17
17
|
children: [
|
|
18
18
|
/* @__PURE__ */ c("div", {
|
|
@@ -23,21 +23,21 @@ var l = ({ bar: l, selected: u, onSelect: d }) => {
|
|
|
23
23
|
iconClassName: n[f.status]
|
|
24
24
|
}),
|
|
25
25
|
/* @__PURE__ */ s("span", {
|
|
26
|
-
className: "truncate font-medium
|
|
26
|
+
className: "text-ui-fg truncate font-medium",
|
|
27
27
|
children: f.title
|
|
28
28
|
}),
|
|
29
29
|
/* @__PURE__ */ s("span", {
|
|
30
|
-
className: "truncate font-mono text-[10px]
|
|
30
|
+
className: "text-ui-fg-subtle truncate font-mono text-[10px]",
|
|
31
31
|
children: f.action
|
|
32
32
|
}),
|
|
33
33
|
/* @__PURE__ */ s("span", {
|
|
34
|
-
className: "ml-auto shrink-0
|
|
34
|
+
className: "text-ui-fg-subtle ml-auto shrink-0 tabular-nums",
|
|
35
35
|
children: r(f.endTime - f.startTime)
|
|
36
36
|
})
|
|
37
37
|
]
|
|
38
38
|
}),
|
|
39
39
|
/* @__PURE__ */ s("div", {
|
|
40
|
-
className: "h-1 w-full rounded-full
|
|
40
|
+
className: "bg-ui-raised h-1 w-full rounded-full",
|
|
41
41
|
children: /* @__PURE__ */ s("div", {
|
|
42
42
|
className: a("h-1 rounded-full", t[f.status]),
|
|
43
43
|
style: {
|
|
@@ -20,8 +20,8 @@ var e = (e) => e.endedAt === void 0, t = (e) => e.status === "failed" || e.statu
|
|
|
20
20
|
}, u = {
|
|
21
21
|
success: "bg-emerald-500/70",
|
|
22
22
|
failed: "bg-red-500/80",
|
|
23
|
-
skipped: "bg-
|
|
24
|
-
disabled: "bg-
|
|
23
|
+
skipped: "bg-ui-line-strong/40",
|
|
24
|
+
disabled: "bg-ui-line-strong/30"
|
|
25
25
|
}, d = {
|
|
26
26
|
await: "await",
|
|
27
27
|
detached: "detached",
|
|
@@ -37,24 +37,24 @@ var h = () => {
|
|
|
37
37
|
return /* @__PURE__ */ m("div", {
|
|
38
38
|
className: "flex h-full w-full flex-col text-[11px]",
|
|
39
39
|
children: [/* @__PURE__ */ m("div", {
|
|
40
|
-
className: "flex shrink-0 items-center gap-2 border-b
|
|
40
|
+
className: "border-ui-line flex shrink-0 items-center gap-2 border-b px-2 py-1",
|
|
41
41
|
children: [
|
|
42
42
|
/* @__PURE__ */ p("span", {
|
|
43
|
-
className: "
|
|
43
|
+
className: "text-ui-fg-muted font-medium",
|
|
44
44
|
children: "Cached"
|
|
45
45
|
}),
|
|
46
46
|
/* @__PURE__ */ p("span", {
|
|
47
|
-
className: "text-
|
|
47
|
+
className: "text-ui-fg-subtle tabular-nums",
|
|
48
48
|
children: _
|
|
49
49
|
}),
|
|
50
50
|
/* @__PURE__ */ p("input", {
|
|
51
|
-
className: "min-w-0 grow rounded border
|
|
51
|
+
className: "border-ui-line bg-ui-raised text-ui-fg placeholder:text-ui-fg-subtle min-w-0 grow rounded border px-1.5 py-0.5 outline-none focus:border-violet-400",
|
|
52
52
|
value: S,
|
|
53
53
|
placeholder: "Filter by URL, store or tag",
|
|
54
54
|
onChange: (e) => C(e.target.value)
|
|
55
55
|
}),
|
|
56
56
|
/* @__PURE__ */ p("button", {
|
|
57
|
-
className: l("shrink-0 cursor-pointer rounded px-1.5 py-0.5 font-medium transition-colors", w ? "bg-amber-500/15 text-amber-600 dark:text-amber-400" : "text-
|
|
57
|
+
className: l("shrink-0 cursor-pointer rounded px-1.5 py-0.5 font-medium transition-colors", w ? "bg-amber-500/15 text-amber-600 dark:text-amber-400" : "text-ui-fg-subtle hover:bg-ui-hover"),
|
|
58
58
|
onClick: j,
|
|
59
59
|
children: "Stale only"
|
|
60
60
|
}),
|
|
@@ -65,7 +65,7 @@ var h = () => {
|
|
|
65
65
|
})
|
|
66
66
|
]
|
|
67
67
|
}), O.length === 0 ? /* @__PURE__ */ m("div", {
|
|
68
|
-
className: "flex grow flex-col items-center justify-center gap-2 px-6 text-center
|
|
68
|
+
className: "text-ui-fg-subtle flex grow flex-col items-center justify-center gap-2 px-6 text-center",
|
|
69
69
|
children: [
|
|
70
70
|
/* @__PURE__ */ p("i", { className: "fa-solid fa-database text-3xl opacity-20" }),
|
|
71
71
|
/* @__PURE__ */ p("span", { children: _ === 0 ? "Nothing on this page is cached" : "Nothing matches the filter" }),
|
|
@@ -14,7 +14,7 @@ var a = ({ row: a, isOpen: o, value: s, onToggle: c, onExpire: l, onForget: u })
|
|
|
14
14
|
a.path
|
|
15
15
|
]);
|
|
16
16
|
return /* @__PURE__ */ i("li", {
|
|
17
|
-
className: "border-
|
|
17
|
+
className: "border-ui-line border-b last:border-0",
|
|
18
18
|
children: [
|
|
19
19
|
/* @__PURE__ */ i("div", {
|
|
20
20
|
className: "flex items-center gap-2 px-2 py-1.5",
|
|
@@ -24,13 +24,13 @@ var a = ({ row: a, isOpen: o, value: s, onToggle: c, onExpire: l, onForget: u })
|
|
|
24
24
|
onClick: d,
|
|
25
25
|
"aria-expanded": o,
|
|
26
26
|
children: [
|
|
27
|
-
/* @__PURE__ */ r("i", { className: t("fa-solid w-2 shrink-0 text-[9px]
|
|
27
|
+
/* @__PURE__ */ r("i", { className: t("fa-solid text-ui-fg-subtle w-2 shrink-0 text-[9px]", o ? "fa-chevron-down" : "fa-chevron-right") }),
|
|
28
28
|
/* @__PURE__ */ r("span", {
|
|
29
|
-
className: "shrink-0 rounded-sm
|
|
29
|
+
className: "bg-ui-raised text-ui-fg-subtle shrink-0 rounded-sm px-1 text-[9px] uppercase",
|
|
30
30
|
children: a.storeLabel
|
|
31
31
|
}),
|
|
32
32
|
/* @__PURE__ */ r("span", {
|
|
33
|
-
className: "min-w-0 grow truncate font-mono text-[11px]
|
|
33
|
+
className: "text-ui-fg min-w-0 grow truncate font-mono text-[11px]",
|
|
34
34
|
children: a.label
|
|
35
35
|
}),
|
|
36
36
|
a.tags.map((e) => /* @__PURE__ */ r("span", {
|
|
@@ -57,13 +57,13 @@ var a = ({ row: a, isOpen: o, value: s, onToggle: c, onExpire: l, onForget: u })
|
|
|
57
57
|
/* @__PURE__ */ i("div", {
|
|
58
58
|
className: "flex items-center gap-2 px-2 pb-1.5 pl-6",
|
|
59
59
|
children: [/* @__PURE__ */ r("span", {
|
|
60
|
-
className: "h-1 min-w-0 grow overflow-hidden rounded-full
|
|
60
|
+
className: "bg-ui-raised h-1 min-w-0 grow overflow-hidden rounded-full",
|
|
61
61
|
children: /* @__PURE__ */ r("span", {
|
|
62
62
|
className: t("block h-full rounded-full", a.isStale ? "bg-amber-500/60" : "bg-emerald-500/80"),
|
|
63
63
|
style: { width: `${Math.round(a.progress * 100)}%` }
|
|
64
64
|
})
|
|
65
65
|
}), /* @__PURE__ */ i("span", {
|
|
66
|
-
className: "shrink-0 text-[10px]
|
|
66
|
+
className: "text-ui-fg-subtle shrink-0 text-[10px] tabular-nums",
|
|
67
67
|
children: [
|
|
68
68
|
"written ",
|
|
69
69
|
a.age,
|
|
@@ -74,9 +74,9 @@ var a = ({ row: a, isOpen: o, value: s, onToggle: c, onExpire: l, onForget: u })
|
|
|
74
74
|
})]
|
|
75
75
|
}),
|
|
76
76
|
o && /* @__PURE__ */ i("div", {
|
|
77
|
-
className: "max-h-56 overflow-auto border-t
|
|
77
|
+
className: "border-ui-line bg-ui-raised max-h-56 overflow-auto border-t px-2 py-1",
|
|
78
78
|
children: [/* @__PURE__ */ r("div", {
|
|
79
|
-
className: "pb-1 font-mono text-[10px]
|
|
79
|
+
className: "text-ui-fg-subtle pb-1 font-mono text-[10px]",
|
|
80
80
|
children: a.path
|
|
81
81
|
}), /* @__PURE__ */ r(e, { value: s })]
|
|
82
82
|
})
|
package/dist/components/DevToolsPanel/tabs/ElementsViewer/components/DetailsRow/DetailsRow.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
2
2
|
// src/components/DevToolsPanel/tabs/ElementsViewer/components/DetailsRow/DetailsRow.tsx
|
|
3
3
|
var n = ({ name: n, children: r }) => /* @__PURE__ */ t("div", {
|
|
4
|
-
className: "flex gap-4
|
|
4
|
+
className: "border-ui-line flex gap-4 py-1 [&:not(:first-child)]:border-t",
|
|
5
5
|
children: [/* @__PURE__ */ e("div", {
|
|
6
|
-
className: "grow basis-0
|
|
6
|
+
className: "text-ui-fg-subtle grow basis-0",
|
|
7
7
|
children: n
|
|
8
8
|
}), /* @__PURE__ */ e("div", {
|
|
9
|
-
className: "grow basis-0 truncate
|
|
9
|
+
className: "text-ui-fg grow basis-0 truncate",
|
|
10
10
|
children: r
|
|
11
11
|
})]
|
|
12
12
|
});
|
|
@@ -42,7 +42,7 @@ var s = ({ visible: e, box: t }) => `${e ? "Yes" : "No"}${t ? ` · ${String(t.wi
|
|
|
42
42
|
}, `${e.category}-${e.to}`))
|
|
43
43
|
]
|
|
44
44
|
}) : /* @__PURE__ */ o("div", {
|
|
45
|
-
className: "text-
|
|
45
|
+
className: "text-ui-fg-subtle text-sm",
|
|
46
46
|
children: [
|
|
47
47
|
"Neither the document nor the page has “",
|
|
48
48
|
l,
|
package/dist/components/DevToolsPanel/tabs/ElementsViewer/components/ElementsTree/ElementsTree.mjs
CHANGED
|
@@ -10,7 +10,7 @@ var o = 200, s = ({ sections: s, filter: c, selected: l, onFilter: u, onSelect:
|
|
|
10
10
|
rows: e(t.rows, c)
|
|
11
11
|
})).filter(({ rows: e }) => e.length > 0), [s, c]);
|
|
12
12
|
return /* @__PURE__ */ i("div", {
|
|
13
|
-
className: "flex h-full w-[320px] shrink-0 flex-col gap-2 border-r
|
|
13
|
+
className: "border-ui-line flex h-full w-[320px] shrink-0 flex-col gap-2 border-r",
|
|
14
14
|
children: [/* @__PURE__ */ r("div", {
|
|
15
15
|
className: "px-2 pt-2",
|
|
16
16
|
children: /* @__PURE__ */ r(a, {
|
|
@@ -22,7 +22,7 @@ var o = 200, s = ({ sections: s, filter: c, selected: l, onFilter: u, onSelect:
|
|
|
22
22
|
}), /* @__PURE__ */ i("div", {
|
|
23
23
|
className: "flex flex-col overflow-y-auto text-xs",
|
|
24
24
|
children: [p.length === 0 && /* @__PURE__ */ r("div", {
|
|
25
|
-
className: "p-4 text-center
|
|
25
|
+
className: "text-ui-fg-subtle p-4 text-center",
|
|
26
26
|
children: "No elements"
|
|
27
27
|
}), p.map(({ section: e, rows: n }) => /* @__PURE__ */ r(t, {
|
|
28
28
|
section: e,
|
|
@@ -5,7 +5,7 @@ import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
|
5
5
|
var i = ({ row: i, isSelected: a, onSelect: o, onHover: s }) => {
|
|
6
6
|
let c = t(() => o(i.id), [o, i.id]), l = t(() => s(i.id), [s, i.id]), u = t(() => s(void 0), [s]);
|
|
7
7
|
return /* @__PURE__ */ r("div", {
|
|
8
|
-
className: e("flex w-full cursor-pointer items-center gap-2 border-l-2 py-1 pr-2 transition-colors", a ? "border-l-violet-500 bg-violet-50 text-violet-700 dark:bg-violet-500/15 dark:text-violet-300" : "
|
|
8
|
+
className: e("flex w-full cursor-pointer items-center gap-2 border-l-2 py-1 pr-2 transition-colors", a ? "border-l-violet-500 bg-violet-50 text-violet-700 dark:bg-violet-500/15 dark:text-violet-300" : "text-ui-fg-muted hover:bg-ui-hover hover:text-ui-fg border-l-transparent"),
|
|
9
9
|
style: { paddingLeft: 8 + i.depth * 12 },
|
|
10
10
|
onClick: c,
|
|
11
11
|
onMouseEnter: l,
|
|
@@ -17,7 +17,7 @@ var i = ({ row: i, isSelected: a, onSelect: o, onHover: s }) => {
|
|
|
17
17
|
children: i.label
|
|
18
18
|
}),
|
|
19
19
|
/* @__PURE__ */ n("span", {
|
|
20
|
-
className: "shrink-0 font-mono text-[10px]
|
|
20
|
+
className: "text-ui-fg-subtle shrink-0 font-mono text-[10px]",
|
|
21
21
|
children: i.type
|
|
22
22
|
}),
|
|
23
23
|
i.instanceOf && /* @__PURE__ */ r("span", {
|
|
@@ -26,7 +26,7 @@ var i = ({ row: i, isSelected: a, onSelect: o, onHover: s }) => {
|
|
|
26
26
|
}),
|
|
27
27
|
/* @__PURE__ */ n("span", { className: "grow" }),
|
|
28
28
|
i.hidden && /* @__PURE__ */ n("i", {
|
|
29
|
-
className: "fa-solid fa-eye-slash shrink-0 text-[10px]
|
|
29
|
+
className: "fa-solid fa-eye-slash text-ui-fg-subtle shrink-0 text-[10px]",
|
|
30
30
|
title: "Starts hidden"
|
|
31
31
|
})
|
|
32
32
|
]
|
package/dist/components/DevToolsPanel/tabs/ElementsViewer/components/TreeSection/TreeSection.mjs
CHANGED
|
@@ -13,7 +13,7 @@ var r = {
|
|
|
13
13
|
className: "flex flex-col",
|
|
14
14
|
children: [
|
|
15
15
|
/* @__PURE__ */ n("div", {
|
|
16
|
-
className: "sticky top-0 flex items-center gap-2 border-b
|
|
16
|
+
className: "border-ui-line bg-ui-raised text-ui-fg-subtle sticky top-0 flex items-center gap-2 border-b px-2 py-1 text-[10px] font-semibold tracking-wider uppercase",
|
|
17
17
|
children: [
|
|
18
18
|
/* @__PURE__ */ t("i", { className: r[a.kind] }),
|
|
19
19
|
/* @__PURE__ */ t("span", { children: i[a.kind] }),
|
|
@@ -30,7 +30,7 @@ var r = {
|
|
|
30
30
|
onHover: u
|
|
31
31
|
}, n.id)),
|
|
32
32
|
s > 0 && /* @__PURE__ */ n("div", {
|
|
33
|
-
className: "p-2 text-center text-[11px]
|
|
33
|
+
className: "text-ui-fg-subtle p-2 text-center text-[11px]",
|
|
34
34
|
children: [s, " more — narrow the search to reach them"]
|
|
35
35
|
})
|
|
36
36
|
]
|
|
@@ -11,7 +11,7 @@ var n = {
|
|
|
11
11
|
let { layer: i, rule: a } = r, o = i === "space" && a !== void 0 ? `rule ${a + 1}` : n[i];
|
|
12
12
|
return /* @__PURE__ */ t("span", {
|
|
13
13
|
className: e("rounded px-1.5 py-0.5 text-[10px] font-medium tracking-wider uppercase", {
|
|
14
|
-
"bg-
|
|
14
|
+
"bg-ui-raised text-ui-fg-subtle": i === "space",
|
|
15
15
|
"bg-sky-100 text-sky-700 dark:bg-sky-950 dark:text-sky-300": i === "server" || i === "sdk",
|
|
16
16
|
"bg-amber-100 text-amber-700 dark:bg-amber-950 dark:text-amber-300": i === "qa"
|
|
17
17
|
}),
|