@qwik.dev/devtools 2.0.0-beta.43 → 2.0.0-beta.47
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/dist/kit/index.d.mts +6 -0
- package/dist/kit/index.mjs +4 -6
- package/dist/plugin/codegen.mjs +1 -1
- package/dist/plugin/{create-hook-runtime-ChnIePeB.mjs → create-hook-runtime-CAtQC5B3.mjs} +42 -22
- package/dist/plugin/index.mjs +15 -7
- package/dist/ui/{bundle-graph-CoI___e1.json → bundle-graph-DNRrO_5W.json} +1 -1
- package/dist/ui/entry.extension.qwik.mjs +3 -2
- package/dist/ui/lib-types/ui/src/features/HookTree/hookTreeHelpers.d.ts +1 -1
- package/dist/ui/node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/element.qwik.mjs +2 -2
- package/dist/ui/node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/index.qwik.mjs +1 -1
- package/dist/ui/node_modules/.pnpm/{property-information@7.1.0 → property-information@7.2.0}/node_modules/property-information/lib/html.qwik.mjs +11 -1
- package/dist/ui/node_modules/.pnpm/{property-information@7.1.0 → property-information@7.2.0}/node_modules/property-information/lib/svg.qwik.mjs +2 -0
- package/dist/ui/packages/devtools/kit/src/overlay-paths.qwik.mjs +4 -4
- package/dist/ui/packages/devtools/ui/src/components/DevtoolsButton/DevtoolsButton.qwik.mjs +21 -19
- package/dist/ui/packages/devtools/ui/src/components/DevtoolsContainer/DevtoolsContainer.qwik.mjs +4 -1
- package/dist/ui/packages/devtools/ui/src/components/DevtoolsPanel/DevtoolsPanel.qwik.mjs +91 -78
- package/dist/ui/packages/devtools/ui/src/components/IconButton/IconButton.qwik.mjs +3 -2
- package/dist/ui/packages/devtools/ui/src/components/Icons/Icons.qwik.mjs +178 -96
- package/dist/ui/packages/devtools/ui/src/components/InfoBanner/InfoBanner.qwik.mjs +4 -2
- package/dist/ui/packages/devtools/ui/src/components/Tab/Tab.qwik.mjs +5 -6
- package/dist/ui/packages/devtools/ui/src/components/TabContent/TabContent.qwik.mjs +1 -1
- package/dist/ui/packages/devtools/ui/src/components/TabTitle/TabTitle.qwik.mjs +1 -1
- package/dist/ui/packages/devtools/ui/src/components/ThemeToggle/QwikThemeToggle.qwik.mjs +4 -4
- package/dist/ui/packages/devtools/ui/src/components/ThemeToggle/theme-script.qwik.mjs +1 -1
- package/dist/ui/packages/devtools/ui/src/components/Tree/Tree.qwik.mjs +41 -24
- package/dist/ui/packages/devtools/ui/src/devtools/CommandPalette.qwik.mjs +49 -35
- package/dist/ui/packages/devtools/ui/src/devtools/CustomizeTabsPanel.qwik.mjs +46 -35
- package/dist/ui/packages/devtools/ui/src/devtools/DevtoolsContent.qwik.mjs +30 -45
- package/dist/ui/packages/devtools/ui/src/devtools/DevtoolsSidebar.qwik.mjs +28 -22
- package/dist/ui/packages/devtools/ui/src/devtools/QwikDevtools.qwik.mjs +10 -10
- package/dist/ui/packages/devtools/ui/src/devtools/QwikDevtoolsExtension.qwik.mjs +5 -4
- package/dist/ui/packages/devtools/ui/src/devtools/command-palette.qwik.mjs +24 -12
- package/dist/ui/packages/devtools/ui/src/devtools/page-data-source.qwik.mjs +4 -2
- package/dist/ui/packages/devtools/ui/src/devtools/rpc.qwik.mjs +6 -4
- package/dist/ui/packages/devtools/ui/src/devtools/sidebar-tabs.qwik.mjs +24 -13
- package/dist/ui/packages/devtools/ui/src/devtools/tabs.qwik.mjs +10 -10
- package/dist/ui/packages/devtools/ui/src/features/Assets/Assets.qwik.mjs +2 -2
- package/dist/ui/packages/devtools/ui/src/features/BuildAnalysis/BuildAnalysis.qwik.mjs +15 -13
- package/dist/ui/packages/devtools/ui/src/features/CodeBreak/CodeBreak.qwik.mjs +19 -21
- package/dist/ui/packages/devtools/ui/src/features/CodeBreak/HtmlParser.qwik.mjs +13 -11
- package/dist/ui/packages/devtools/ui/src/features/CodeBreak/StateParser.qwik.mjs +13 -11
- package/dist/ui/packages/devtools/ui/src/features/HookTree/HookTree.qwik.mjs +82 -71
- package/dist/ui/packages/devtools/ui/src/features/HookTree/hookTreeHelpers.qwik.mjs +7 -4
- package/dist/ui/packages/devtools/ui/src/features/Inspect/Inspect.qwik.mjs +12 -11
- package/dist/ui/packages/devtools/ui/src/features/Inspect/iframe-theme.qwik.mjs +2 -1
- package/dist/ui/packages/devtools/ui/src/features/Overview/Overview.qwik.mjs +20 -16
- package/dist/ui/packages/devtools/ui/src/features/Packages/Packages.qwik.mjs +37 -36
- package/dist/ui/packages/devtools/ui/src/features/Packages/components/DependencyCard/DependencyCard.qwik.mjs +38 -28
- package/dist/ui/packages/devtools/ui/src/features/Packages/components/DependencyOperationFeedback/DependencyOperationFeedback.qwik.mjs +4 -3
- package/dist/ui/packages/devtools/ui/src/features/Packages/components/DependencyToolbar/DependencyToolbar.qwik.mjs +19 -18
- package/dist/ui/packages/devtools/ui/src/features/Packages/components/InstalledDependencyList/InstalledDependencyList.qwik.mjs +4 -4
- package/dist/ui/packages/devtools/ui/src/features/Packages/components/PackageIcon/PackageIcon.qwik.mjs +4 -4
- package/dist/ui/packages/devtools/ui/src/features/Packages/components/PackageSearchResults/PackageSearchResults.qwik.mjs +6 -5
- package/dist/ui/packages/devtools/ui/src/features/Packages/components/SearchResultCard/SearchResultCard.qwik.mjs +25 -14
- package/dist/ui/packages/devtools/ui/src/features/Performance/Performance.qwik.mjs +24 -20
- package/dist/ui/packages/devtools/ui/src/features/Performance/components/ComponentCard.qwik.mjs +3 -1
- package/dist/ui/packages/devtools/ui/src/features/Performance/components/HookDetailsPanel.qwik.mjs +10 -6
- package/dist/ui/packages/devtools/ui/src/features/Performance/components/PerformanceOverview.qwik.mjs +11 -9
- package/dist/ui/packages/devtools/ui/src/features/Performance/components/StatCard.qwik.mjs +2 -2
- package/dist/ui/packages/devtools/ui/src/features/Performance/computePerfViewModel.qwik.mjs +4 -2
- package/dist/ui/packages/devtools/ui/src/features/Preloads/Preloads.qwik.mjs +94 -82
- package/dist/ui/packages/devtools/ui/src/features/RenderTree/RenderTree.qwik.mjs +36 -32
- package/dist/ui/packages/devtools/ui/src/features/RenderTree/components/HighlightedCodeList.qwik.mjs +2 -1
- package/dist/ui/packages/devtools/ui/src/features/RenderTree/components/HookFiltersCard.qwik.mjs +17 -18
- package/dist/ui/packages/devtools/ui/src/features/RenderTree/components/RenderTreeTabs.qwik.mjs +4 -2
- package/dist/ui/packages/devtools/ui/src/features/RenderTree/components/StateTreeNodeLabel.qwik.mjs +8 -7
- package/dist/ui/packages/devtools/ui/src/features/Routes/Routes.qwik.mjs +10 -6
- package/dist/ui/q-manifest.json +187 -187
- package/package.json +8 -8
- /package/dist/ui/node_modules/.pnpm/{debug@4.4.3_supports-color@10.2.2 → debug@4.4.3_supports-color@11.0.0}/node_modules/debug/src/browser.qwik.mjs +0 -0
- /package/dist/ui/node_modules/.pnpm/{debug@4.4.3_supports-color@10.2.2 → debug@4.4.3_supports-color@11.0.0}/node_modules/debug/src/common.qwik.mjs +0 -0
- /package/dist/ui/node_modules/.pnpm/{property-information@7.1.0 → property-information@7.2.0}/node_modules/property-information/index.qwik.mjs +0 -0
- /package/dist/ui/node_modules/.pnpm/{property-information@7.1.0 → property-information@7.2.0}/node_modules/property-information/lib/aria.qwik.mjs +0 -0
- /package/dist/ui/node_modules/.pnpm/{property-information@7.1.0 → property-information@7.2.0}/node_modules/property-information/lib/find.qwik.mjs +0 -0
- /package/dist/ui/node_modules/.pnpm/{property-information@7.1.0 → property-information@7.2.0}/node_modules/property-information/lib/normalize.qwik.mjs +0 -0
- /package/dist/ui/node_modules/.pnpm/{property-information@7.1.0 → property-information@7.2.0}/node_modules/property-information/lib/util/case-insensitive-transform.qwik.mjs +0 -0
- /package/dist/ui/node_modules/.pnpm/{property-information@7.1.0 → property-information@7.2.0}/node_modules/property-information/lib/util/case-sensitive-transform.qwik.mjs +0 -0
- /package/dist/ui/node_modules/.pnpm/{property-information@7.1.0 → property-information@7.2.0}/node_modules/property-information/lib/util/create.qwik.mjs +0 -0
- /package/dist/ui/node_modules/.pnpm/{property-information@7.1.0 → property-information@7.2.0}/node_modules/property-information/lib/util/defined-info.qwik.mjs +0 -0
- /package/dist/ui/node_modules/.pnpm/{property-information@7.1.0 → property-information@7.2.0}/node_modules/property-information/lib/util/info.qwik.mjs +0 -0
- /package/dist/ui/node_modules/.pnpm/{property-information@7.1.0 → property-information@7.2.0}/node_modules/property-information/lib/util/merge.qwik.mjs +0 -0
- /package/dist/ui/node_modules/.pnpm/{property-information@7.1.0 → property-information@7.2.0}/node_modules/property-information/lib/util/schema.qwik.mjs +0 -0
- /package/dist/ui/node_modules/.pnpm/{property-information@7.1.0 → property-information@7.2.0}/node_modules/property-information/lib/util/types.qwik.mjs +0 -0
- /package/dist/ui/node_modules/.pnpm/{property-information@7.1.0 → property-information@7.2.0}/node_modules/property-information/lib/xlink.qwik.mjs +0 -0
- /package/dist/ui/node_modules/.pnpm/{property-information@7.1.0 → property-information@7.2.0}/node_modules/property-information/lib/xml.qwik.mjs +0 -0
- /package/dist/ui/node_modules/.pnpm/{property-information@7.1.0 → property-information@7.2.0}/node_modules/property-information/lib/xmlns.qwik.mjs +0 -0
- /package/dist/ui/node_modules/.pnpm/{vite-hot-client@2.1.0_vite@8.2.1_@types_node@24.10.0_esbuild@0.28.2_jiti@2.6.1_terser@5.46.0_tsx@4.21.0_yaml@2.8.3_ → vite-hot-client@2.2.0_vite@8.2.1_@types_node@25.6.0_esbuild@0.28.2_jiti@2.7.0_terser@5.46.0_tsx@4.21.0_yaml@2.9.0_}/node_modules/vite-hot-client/dist/index.qwik.mjs +0 -0
|
@@ -2,13 +2,19 @@ import { getPageDataSource } from "../../devtools/page-data-source.qwik.mjs";
|
|
|
2
2
|
import { formatMs } from "../Performance/utils/formatMs.qwik.mjs";
|
|
3
3
|
import { StatCard } from "../Performance/components/StatCard.qwik.mjs";
|
|
4
4
|
import { computePreloadViewModel, createDefaultPreloadFilters, filterPreloadRows } from "./computePreloadViewModel.qwik.mjs";
|
|
5
|
-
import {
|
|
5
|
+
import { _capturesObj, _fnSignal, _jsxSorted, _wrapProp, componentQrl, inlinedQrl, useComputedQrl, useSignal, useStore, useVisibleTaskQrl } from "@qwik.dev/core";
|
|
6
6
|
var _hf0 = (p0) => `${p0.value.overview.csr} CSR • ${p0.value.overview.ssr} SSR`;
|
|
7
|
+
var _hf0_str = "`${p0.value.overview.csr} CSR • ${p0.value.overview.ssr} SSR`";
|
|
7
8
|
var _hf1 = (p0) => p0.value.initialized ? "active" : "inactive";
|
|
9
|
+
var _hf1_str = "p0.value.initialized?\"active\":\"inactive\"";
|
|
8
10
|
var _hf2 = (p0) => p0.value.qrlRequests;
|
|
11
|
+
var _hf2_str = "p0.value.qrlRequests";
|
|
9
12
|
var _hf3 = (p0) => p0.value.sourceCounts["current-project"];
|
|
13
|
+
var _hf3_str = "p0.value.sourceCounts[\"current-project\"]";
|
|
10
14
|
var _hf4 = (p0) => p0.rel || "-";
|
|
15
|
+
var _hf4_str = "p0.rel||\"-\"";
|
|
11
16
|
var _hf5 = (p0) => p0.as || p0.resourceType || "-";
|
|
17
|
+
var _hf5_str = "p0.as||p0.resourceType||\"-\"";
|
|
12
18
|
var DEFAULT_FILTERS = createDefaultPreloadFilters();
|
|
13
19
|
var FILTERS = [
|
|
14
20
|
{
|
|
@@ -50,7 +56,7 @@ var Preloads = /*#__PURE__*/ componentQrl(/*#__PURE__*/ inlinedQrl(() => {
|
|
|
50
56
|
const phaseFilters = useStore({ ...DEFAULT_FILTERS.phaseFilters });
|
|
51
57
|
const store = useSignal(null);
|
|
52
58
|
useVisibleTaskQrl(/*#__PURE__*/ inlinedQrl(async () => {
|
|
53
|
-
|
|
59
|
+
let store = _capturesObj._[0], version = _capturesObj._[1];
|
|
54
60
|
const source = getPageDataSource();
|
|
55
61
|
store.value = await source.readPreloadStore();
|
|
56
62
|
version.value++;
|
|
@@ -66,8 +72,8 @@ var Preloads = /*#__PURE__*/ componentQrl(/*#__PURE__*/ inlinedQrl(() => {
|
|
|
66
72
|
};
|
|
67
73
|
}, "Preloads_component_useVisibleTask_0vUhmjcSbAc", [store, version]));
|
|
68
74
|
const vm = useComputedQrl(/*#__PURE__*/ inlinedQrl(() => {
|
|
69
|
-
|
|
70
|
-
|
|
75
|
+
let phaseFilters = _capturesObj._[0], sourceFilters = _capturesObj._[1], store = _capturesObj._[2];
|
|
76
|
+
_capturesObj._[3].value;
|
|
71
77
|
return computePreloadViewModel(store.value, {
|
|
72
78
|
sourceFilters: { ...sourceFilters },
|
|
73
79
|
phaseFilters: { ...phaseFilters }
|
|
@@ -79,72 +85,70 @@ var Preloads = /*#__PURE__*/ componentQrl(/*#__PURE__*/ inlinedQrl(() => {
|
|
|
79
85
|
version
|
|
80
86
|
]));
|
|
81
87
|
const rows = useComputedQrl(/*#__PURE__*/ inlinedQrl(() => {
|
|
82
|
-
|
|
88
|
+
let activeFilter = _capturesObj._[0], vm = _capturesObj._[1];
|
|
83
89
|
return filterPreloadRows(vm.value.rows, activeFilter.value);
|
|
84
90
|
}, "Preloads_component_rows_useComputed_Zff0cdUKId0", [activeFilter, vm]));
|
|
85
91
|
const runtimeState = useComputedQrl(/*#__PURE__*/ inlinedQrl(() => {
|
|
86
|
-
|
|
87
|
-
|
|
92
|
+
let store = _capturesObj._[0];
|
|
93
|
+
_capturesObj._[1].value;
|
|
88
94
|
return {
|
|
89
95
|
initialized: !!store.value,
|
|
90
96
|
qrlRequests: store.value?.qrlRequests.length ?? 0
|
|
91
97
|
};
|
|
92
98
|
}, "Preloads_component_runtimeState_useComputed_EHPIU4e0Nko", [store, version]));
|
|
93
99
|
const clear = /*#__PURE__*/ inlinedQrl(async () => {
|
|
94
|
-
|
|
100
|
+
let store = _capturesObj._[0], version = _capturesObj._[1];
|
|
95
101
|
const source = getPageDataSource();
|
|
96
102
|
await source.clearPreloadStore();
|
|
97
103
|
store.value = await source.readPreloadStore();
|
|
98
104
|
version.value++;
|
|
99
105
|
}, "Preloads_component_clear_zTejYm3eOBI", [store, version]);
|
|
100
106
|
const toggleSourceFilter = /*#__PURE__*/ inlinedQrl((key) => {
|
|
101
|
-
|
|
107
|
+
let sourceFilters = _capturesObj._[0];
|
|
102
108
|
sourceFilters[key] = !sourceFilters[key];
|
|
103
109
|
}, "Preloads_component_toggleSourceFilter_zJPQ6oCTEQw", [sourceFilters]);
|
|
104
110
|
const togglePhaseFilter = /*#__PURE__*/ inlinedQrl((key) => {
|
|
105
|
-
|
|
111
|
+
let phaseFilters = _capturesObj._[0];
|
|
106
112
|
phaseFilters[key] = !phaseFilters[key];
|
|
107
113
|
}, "Preloads_component_togglePhaseFilter_TkDMzfHnpcI", [phaseFilters]);
|
|
114
|
+
const Preloads_component_div_div_div_div_div_div_button_q_e_click_mEfAxj9bfwU = /*#__PURE__*/ inlinedQrl((_, _1, filter) => {
|
|
115
|
+
let activeFilter = _capturesObj._[0];
|
|
116
|
+
activeFilter.value = filter.id;
|
|
117
|
+
}, "Preloads_component_div_div_div_div_div_div_button_q_e_click_mEfAxj9bfwU", [activeFilter]).m();
|
|
108
118
|
return /*#__PURE__*/ _jsxSorted("div", null, { class: "h-full w-full flex-1 overflow-auto" }, /*#__PURE__*/ _jsxSorted("div", null, { class: "flex min-h-full flex-col gap-4" }, [/*#__PURE__*/ _jsxSorted("div", null, { class: "grid grid-cols-1 gap-4 md:grid-cols-2 xl:grid-cols-5" }, [
|
|
109
119
|
/*#__PURE__*/ _jsxSorted(StatCard, { value: String(vm.value.overview.total) }, {
|
|
110
120
|
label: "Visible QRLs",
|
|
111
|
-
subtitle: _fnSignal(_hf0, [vm])
|
|
112
|
-
}, null, 3, "
|
|
121
|
+
subtitle: _fnSignal(_hf0, [vm], _hf0_str)
|
|
122
|
+
}, null, 3, "oi_0"),
|
|
113
123
|
/*#__PURE__*/ _jsxSorted(StatCard, {
|
|
114
124
|
subtitle: `Max ${formatMs(vm.value.overview.maxImportDuration)}`,
|
|
115
125
|
value: formatMs(vm.value.overview.avgImportDuration)
|
|
116
|
-
}, { label: "Average Import Duration" }, null, 3, "
|
|
126
|
+
}, { label: "Average Import Duration" }, null, 3, "oi_1"),
|
|
117
127
|
/*#__PURE__*/ _jsxSorted(StatCard, {
|
|
118
128
|
subtitle: `Max ${formatMs(vm.value.overview.maxLoadDuration)}`,
|
|
119
129
|
value: formatMs(vm.value.overview.avgLoadDuration)
|
|
120
|
-
}, { label: "Average Load Duration" }, null, 3, "
|
|
130
|
+
}, { label: "Average Load Duration" }, null, 3, "oi_2"),
|
|
121
131
|
/*#__PURE__*/ _jsxSorted(StatCard, { value: String(vm.value.overview.correlated) }, {
|
|
122
132
|
label: "Preloaded Before Use",
|
|
123
133
|
subtitle: "Matched before the QRL fired"
|
|
124
|
-
}, null, 3, "
|
|
134
|
+
}, null, 3, "oi_3"),
|
|
125
135
|
/*#__PURE__*/ _jsxSorted(StatCard, { value: String(Math.max(0, vm.value.overview.total - vm.value.overview.correlated)) }, {
|
|
126
136
|
label: "Missed Preloads",
|
|
127
137
|
subtitle: "QRLs that were used first"
|
|
128
|
-
}, null, 3, "
|
|
138
|
+
}, null, 3, "oi_4")
|
|
129
139
|
], 1, null), /*#__PURE__*/ _jsxSorted("div", null, { class: "border-glass-border bg-card-item-bg flex min-h-0 flex-1 flex-col overflow-hidden rounded-2xl border" }, [/*#__PURE__*/ _jsxSorted("div", null, { class: "border-glass-border flex flex-wrap items-start justify-between gap-4 border-b p-4" }, [/*#__PURE__*/ _jsxSorted("div", null, { class: "flex flex-col gap-3" }, [
|
|
130
140
|
/*#__PURE__*/ _jsxSorted("div", null, { class: "text-muted-foreground text-[11px]" }, [
|
|
131
141
|
"Runtime: ",
|
|
132
|
-
_fnSignal(_hf1, [runtimeState]),
|
|
142
|
+
_fnSignal(_hf1, [runtimeState], _hf1_str),
|
|
133
143
|
" • QRL requests:",
|
|
134
144
|
" ",
|
|
135
|
-
_fnSignal(_hf2, [runtimeState])
|
|
145
|
+
_fnSignal(_hf2, [runtimeState], _hf2_str)
|
|
136
146
|
], 3, null),
|
|
137
|
-
/*#__PURE__*/ _jsxSorted("div", null, { class: "flex flex-wrap gap-2" }, FILTERS.map((filter) => {
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
return /*#__PURE__*/ _jsxSorted("button", {
|
|
143
|
-
class: activeFilter.value === filter.id ? "bg-primary text-primary-foreground rounded-full px-3 py-1.5 text-xs font-medium" : "border-border text-muted-foreground rounded-full border px-3 py-1.5 text-xs font-medium",
|
|
144
|
-
"q-e:click": qrl_0,
|
|
145
|
-
"q:p": filter
|
|
146
|
-
}, { type: "button" }, _wrapProp(filter, "label"), 4, filter.id);
|
|
147
|
-
}), 1, null),
|
|
147
|
+
/*#__PURE__*/ _jsxSorted("div", null, { class: "flex flex-wrap gap-2" }, FILTERS.map((filter) => /*#__PURE__*/ _jsxSorted("button", {
|
|
148
|
+
class: activeFilter.value === filter.id ? "bg-primary text-primary-foreground rounded-full px-3 py-1.5 text-xs font-medium" : "border-border text-muted-foreground rounded-full border px-3 py-1.5 text-xs font-medium",
|
|
149
|
+
"q-e:click": Preloads_component_div_div_div_div_div_div_button_q_e_click_mEfAxj9bfwU,
|
|
150
|
+
"q:p": filter
|
|
151
|
+
}, { type: "button" }, _wrapProp(filter, "label"), 4, filter.id)), 1, null),
|
|
148
152
|
/*#__PURE__*/ _jsxSorted("div", null, { class: "flex flex-wrap gap-2" }, [
|
|
149
153
|
/*#__PURE__*/ _jsxSorted("div", null, { class: "text-muted-foreground mr-1 text-xs font-medium tracking-wide uppercase" }, "Sources", 3, null),
|
|
150
154
|
/*#__PURE__*/ _jsxSorted("label", null, { class: "border-border text-muted-foreground flex cursor-default items-center gap-2 rounded-full border px-3 py-1.5 text-xs font-medium opacity-90" }, [
|
|
@@ -155,84 +159,92 @@ var Preloads = /*#__PURE__*/ componentQrl(/*#__PURE__*/ inlinedQrl(() => {
|
|
|
155
159
|
class: "h-3.5 w-3.5 rounded"
|
|
156
160
|
}, null, 3, null),
|
|
157
161
|
"Current Project (",
|
|
158
|
-
_fnSignal(_hf3, [vm]),
|
|
162
|
+
_fnSignal(_hf3, [vm], _hf3_str),
|
|
159
163
|
")"
|
|
160
164
|
], 3, null),
|
|
161
|
-
/*#__PURE__*/ _jsxSorted("label", null, { class: "border-border flex cursor-pointer items-center gap-2 rounded-full border px-3 py-1.5 text-xs font-medium" }, [/*#__PURE__*/ _jsxSorted("input", {
|
|
162
|
-
"q-e:change": /*#__PURE__*/ inlinedQrl((_, _1, toggleSourceFilter) => toggleSourceFilter("vitePluginInjected"), "Preloads_component_div_div_div_div_div_div_label_input_q_e_change_PO4w6A5Idk4").m(),
|
|
163
|
-
"q:p": toggleSourceFilter
|
|
164
|
-
}, {
|
|
165
|
+
/*#__PURE__*/ _jsxSorted("label", null, { class: "border-border flex cursor-pointer items-center gap-2 rounded-full border px-3 py-1.5 text-xs font-medium" }, [/*#__PURE__*/ _jsxSorted("input", null, {
|
|
165
166
|
type: "checkbox",
|
|
166
167
|
checked: _wrapProp(sourceFilters, "vitePluginInjected"),
|
|
167
168
|
class: "h-3.5 w-3.5 rounded focus:ring-0",
|
|
168
|
-
style: { accentColor: "var(--color-primary-active)" }
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
"
|
|
173
|
-
},
|
|
169
|
+
style: { accentColor: "var(--color-primary-active)" },
|
|
170
|
+
"q-e:change": /*#__PURE__*/ inlinedQrl(() => {
|
|
171
|
+
let toggleSourceFilter = _capturesObj._[0];
|
|
172
|
+
return toggleSourceFilter("vitePluginInjected");
|
|
173
|
+
}, "Preloads_component_div_div_div_div_div_div_label_input_q_e_change_PO4w6A5Idk4", [toggleSourceFilter])
|
|
174
|
+
}, null, 3, null), makeLabelCount("Vite Plugin Injected", vm.value.sourceCounts["vite-plugin-injected"])], 1, null),
|
|
175
|
+
/*#__PURE__*/ _jsxSorted("label", null, { class: "border-border flex cursor-pointer items-center gap-2 rounded-full border px-3 py-1.5 text-xs font-medium" }, [/*#__PURE__*/ _jsxSorted("input", null, {
|
|
174
176
|
type: "checkbox",
|
|
175
177
|
checked: _wrapProp(sourceFilters, "nodeModules"),
|
|
176
178
|
class: "h-3.5 w-3.5 rounded focus:ring-0",
|
|
177
|
-
style: { accentColor: "var(--color-primary-active)" }
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
"
|
|
182
|
-
},
|
|
179
|
+
style: { accentColor: "var(--color-primary-active)" },
|
|
180
|
+
"q-e:change": /*#__PURE__*/ inlinedQrl(() => {
|
|
181
|
+
let toggleSourceFilter = _capturesObj._[0];
|
|
182
|
+
return toggleSourceFilter("nodeModules");
|
|
183
|
+
}, "Preloads_component_div_div_div_div_div_div_label_input_q_e_change_1_a4f6Hw5N5s4", [toggleSourceFilter])
|
|
184
|
+
}, null, 3, null), makeLabelCount("Node Modules", vm.value.sourceCounts.node_modules)], 1, null),
|
|
185
|
+
/*#__PURE__*/ _jsxSorted("label", null, { class: "border-border flex cursor-pointer items-center gap-2 rounded-full border px-3 py-1.5 text-xs font-medium" }, [/*#__PURE__*/ _jsxSorted("input", null, {
|
|
183
186
|
type: "checkbox",
|
|
184
187
|
checked: _wrapProp(sourceFilters, "virtualModule"),
|
|
185
188
|
class: "h-3.5 w-3.5 rounded focus:ring-0",
|
|
186
|
-
style: { accentColor: "var(--color-primary-active)" }
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
"
|
|
191
|
-
},
|
|
189
|
+
style: { accentColor: "var(--color-primary-active)" },
|
|
190
|
+
"q-e:change": /*#__PURE__*/ inlinedQrl(() => {
|
|
191
|
+
let toggleSourceFilter = _capturesObj._[0];
|
|
192
|
+
return toggleSourceFilter("virtualModule");
|
|
193
|
+
}, "Preloads_component_div_div_div_div_div_div_label_input_q_e_change_2_JsdB9QG1WM0", [toggleSourceFilter])
|
|
194
|
+
}, null, 3, null), makeLabelCount("Virtual Module", vm.value.sourceCounts["virtual-module"])], 1, null),
|
|
195
|
+
/*#__PURE__*/ _jsxSorted("label", null, { class: "border-border flex cursor-pointer items-center gap-2 rounded-full border px-3 py-1.5 text-xs font-medium" }, [/*#__PURE__*/ _jsxSorted("input", null, {
|
|
192
196
|
type: "checkbox",
|
|
193
197
|
checked: _wrapProp(sourceFilters, "generated"),
|
|
194
198
|
class: "h-3.5 w-3.5 rounded focus:ring-0",
|
|
195
|
-
style: { accentColor: "var(--color-primary-active)" }
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
"
|
|
200
|
-
},
|
|
199
|
+
style: { accentColor: "var(--color-primary-active)" },
|
|
200
|
+
"q-e:change": /*#__PURE__*/ inlinedQrl(() => {
|
|
201
|
+
let toggleSourceFilter = _capturesObj._[0];
|
|
202
|
+
return toggleSourceFilter("generated");
|
|
203
|
+
}, "Preloads_component_div_div_div_div_div_div_label_input_q_e_change_3_90iPosvF3mQ", [toggleSourceFilter])
|
|
204
|
+
}, null, 3, null), makeLabelCount("Generated", vm.value.sourceCounts.generated)], 1, null),
|
|
205
|
+
/*#__PURE__*/ _jsxSorted("label", null, { class: "border-border flex cursor-pointer items-center gap-2 rounded-full border px-3 py-1.5 text-xs font-medium" }, [/*#__PURE__*/ _jsxSorted("input", null, {
|
|
201
206
|
type: "checkbox",
|
|
202
207
|
checked: _wrapProp(sourceFilters, "external"),
|
|
203
208
|
class: "h-3.5 w-3.5 rounded focus:ring-0",
|
|
204
|
-
style: { accentColor: "var(--color-primary-active)" }
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
"
|
|
209
|
-
},
|
|
209
|
+
style: { accentColor: "var(--color-primary-active)" },
|
|
210
|
+
"q-e:change": /*#__PURE__*/ inlinedQrl(() => {
|
|
211
|
+
let toggleSourceFilter = _capturesObj._[0];
|
|
212
|
+
return toggleSourceFilter("external");
|
|
213
|
+
}, "Preloads_component_div_div_div_div_div_div_label_input_q_e_change_4_AuLKgSZkHes", [toggleSourceFilter])
|
|
214
|
+
}, null, 3, null), makeLabelCount("External", vm.value.sourceCounts.external)], 1, null),
|
|
215
|
+
/*#__PURE__*/ _jsxSorted("label", null, { class: "border-border flex cursor-pointer items-center gap-2 rounded-full border px-3 py-1.5 text-xs font-medium" }, [/*#__PURE__*/ _jsxSorted("input", null, {
|
|
210
216
|
type: "checkbox",
|
|
211
217
|
checked: _wrapProp(sourceFilters, "unknown"),
|
|
212
218
|
class: "h-3.5 w-3.5 rounded focus:ring-0",
|
|
213
|
-
style: { accentColor: "var(--color-primary-active)" }
|
|
214
|
-
|
|
219
|
+
style: { accentColor: "var(--color-primary-active)" },
|
|
220
|
+
"q-e:change": /*#__PURE__*/ inlinedQrl(() => {
|
|
221
|
+
let toggleSourceFilter = _capturesObj._[0];
|
|
222
|
+
return toggleSourceFilter("unknown");
|
|
223
|
+
}, "Preloads_component_div_div_div_div_div_div_label_input_q_e_change_5_0E0MQZDqb5U", [toggleSourceFilter])
|
|
224
|
+
}, null, 3, null), makeLabelCount("Unknown", vm.value.sourceCounts.unknown)], 1, null)
|
|
215
225
|
], 1, null),
|
|
216
226
|
/*#__PURE__*/ _jsxSorted("div", null, { class: "flex flex-wrap gap-2" }, [
|
|
217
227
|
/*#__PURE__*/ _jsxSorted("div", null, { class: "text-muted-foreground mr-1 text-xs font-medium tracking-wide uppercase" }, "Phase", 3, null),
|
|
218
|
-
/*#__PURE__*/ _jsxSorted("label", null, { class: "border-border flex cursor-pointer items-center gap-2 rounded-full border px-3 py-1.5 text-xs font-medium" }, [/*#__PURE__*/ _jsxSorted("input", {
|
|
219
|
-
"q-e:change": /*#__PURE__*/ inlinedQrl((_, _1, togglePhaseFilter) => togglePhaseFilter("csr"), "Preloads_component_div_div_div_div_div_div_label_input_q_e_change_6_L5lgZJlMTm8").m(),
|
|
220
|
-
"q:p": togglePhaseFilter
|
|
221
|
-
}, {
|
|
228
|
+
/*#__PURE__*/ _jsxSorted("label", null, { class: "border-border flex cursor-pointer items-center gap-2 rounded-full border px-3 py-1.5 text-xs font-medium" }, [/*#__PURE__*/ _jsxSorted("input", null, {
|
|
222
229
|
type: "checkbox",
|
|
223
230
|
checked: _wrapProp(phaseFilters, "csr"),
|
|
224
231
|
class: "h-3.5 w-3.5 rounded focus:ring-0",
|
|
225
|
-
style: { accentColor: "var(--color-primary-active)" }
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
"
|
|
230
|
-
},
|
|
232
|
+
style: { accentColor: "var(--color-primary-active)" },
|
|
233
|
+
"q-e:change": /*#__PURE__*/ inlinedQrl(() => {
|
|
234
|
+
let togglePhaseFilter = _capturesObj._[0];
|
|
235
|
+
return togglePhaseFilter("csr");
|
|
236
|
+
}, "Preloads_component_div_div_div_div_div_div_label_input_q_e_change_6_L5lgZJlMTm8", [togglePhaseFilter])
|
|
237
|
+
}, null, 3, null), makeLabelCount("CSR", vm.value.phaseCounts.csr)], 1, null),
|
|
238
|
+
/*#__PURE__*/ _jsxSorted("label", null, { class: "border-border flex cursor-pointer items-center gap-2 rounded-full border px-3 py-1.5 text-xs font-medium" }, [/*#__PURE__*/ _jsxSorted("input", null, {
|
|
231
239
|
type: "checkbox",
|
|
232
240
|
checked: _wrapProp(phaseFilters, "ssr"),
|
|
233
241
|
class: "h-3.5 w-3.5 rounded focus:ring-0",
|
|
234
|
-
style: { accentColor: "var(--color-primary-active)" }
|
|
235
|
-
|
|
242
|
+
style: { accentColor: "var(--color-primary-active)" },
|
|
243
|
+
"q-e:change": /*#__PURE__*/ inlinedQrl(() => {
|
|
244
|
+
let togglePhaseFilter = _capturesObj._[0];
|
|
245
|
+
return togglePhaseFilter("ssr");
|
|
246
|
+
}, "Preloads_component_div_div_div_div_div_div_label_input_q_e_change_7_PiCA1ivS01Y", [togglePhaseFilter])
|
|
247
|
+
}, null, 3, null), makeLabelCount("SSR", vm.value.phaseCounts.ssr)], 1, null)
|
|
236
248
|
], 1, null)
|
|
237
249
|
], 1, null), /*#__PURE__*/ _jsxSorted("button", null, {
|
|
238
250
|
type: "button",
|
|
@@ -250,11 +262,11 @@ var Preloads = /*#__PURE__*/ componentQrl(/*#__PURE__*/ inlinedQrl(() => {
|
|
|
250
262
|
/*#__PURE__*/ _jsxSorted("td", null, { class: "px-4 py-3" }, [
|
|
251
263
|
/*#__PURE__*/ _jsxSorted("div", null, { class: "font-medium break-all" }, _wrapProp(row, "shortHref"), 1, null),
|
|
252
264
|
/*#__PURE__*/ _jsxSorted("div", null, { class: "text-muted-foreground mt-1 text-xs break-all" }, _wrapProp(row, "href"), 1, null),
|
|
253
|
-
row.qrlSymbol ? /*#__PURE__*/ _jsxSorted("div", null, { class: "text-muted-foreground mt-1 text-xs" }, ["Symbol: ", _wrapProp(row, "qrlSymbol")], 1, "
|
|
265
|
+
row.qrlSymbol ? /*#__PURE__*/ _jsxSorted("div", null, { class: "text-muted-foreground mt-1 text-xs" }, ["Symbol: ", _wrapProp(row, "qrlSymbol")], 1, "oi_5") : null
|
|
254
266
|
], 1, null),
|
|
255
267
|
/*#__PURE__*/ _jsxSorted("td", null, { class: "px-4 py-3" }, [
|
|
256
|
-
/*#__PURE__*/ _jsxSorted("div", null, null, _fnSignal(_hf4, [row]), 1, null),
|
|
257
|
-
/*#__PURE__*/ _jsxSorted("div", null, { class: "text-muted-foreground mt-1 text-xs" }, _fnSignal(_hf5, [row]), 1, null),
|
|
268
|
+
/*#__PURE__*/ _jsxSorted("div", null, null, _fnSignal(_hf4, [row], _hf4_str), 1, null),
|
|
269
|
+
/*#__PURE__*/ _jsxSorted("div", null, { class: "text-muted-foreground mt-1 text-xs" }, _fnSignal(_hf5, [row], _hf5_str), 1, null),
|
|
258
270
|
/*#__PURE__*/ _jsxSorted("div", null, { class: "text-muted-foreground mt-1 text-[11px] tracking-wide uppercase" }, _wrapProp(row, "originKind"), 1, null)
|
|
259
271
|
], 1, null),
|
|
260
272
|
/*#__PURE__*/ _jsxSorted("td", null, { class: "px-4 py-3" }, /*#__PURE__*/ _jsxSorted("div", null, { class: "font-medium tracking-wide uppercase" }, _wrapProp(row, "phase"), 1, null), 1, null),
|
|
@@ -265,6 +277,6 @@ var Preloads = /*#__PURE__*/ componentQrl(/*#__PURE__*/ inlinedQrl(() => {
|
|
|
265
277
|
], 1, row.id)) : /*#__PURE__*/ _jsxSorted("tr", null, { class: "border-glass-border border-t" }, /*#__PURE__*/ _jsxSorted("td", null, {
|
|
266
278
|
class: "text-muted-foreground px-4 py-8 text-center text-sm",
|
|
267
279
|
colSpan: 7
|
|
268
|
-
}, "No rows match the current filters. Uncheck a filter or re-enable CSR to view data.", 3, null), 3, "
|
|
280
|
+
}, "No rows match the current filters. Uncheck a filter or re-enable CSR to view data.", 3, null), 3, "oi_6"), 1, null)], 1, null), 1, null)], 1, null)], 1, null), 1, "oi_7");
|
|
269
281
|
}, "Preloads_component_fKcrex5znk4"));
|
|
270
282
|
export { Preloads };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __toESM } from "../../../../../../_virtual/_rolldown/runtime.qwik.mjs";
|
|
2
|
-
import { require_browser } from "../../../../../../node_modules/.pnpm/debug@4.4.3_supports-color@
|
|
2
|
+
import { require_browser } from "../../../../../../node_modules/.pnpm/debug@4.4.3_supports-color@11.0.0/node_modules/debug/src/browser.qwik.mjs";
|
|
3
3
|
import { getHighlighter } from "../../utils/shiki.qwik.mjs";
|
|
4
4
|
import { Tree } from "../../components/Tree/Tree.qwik.mjs";
|
|
5
5
|
import { getPageDataSource } from "../../devtools/page-data-source.qwik.mjs";
|
|
@@ -9,7 +9,7 @@ import { StateTreeNodeLabel } from "./components/StateTreeNodeLabel.qwik.mjs";
|
|
|
9
9
|
import { HookFiltersCard } from "./components/HookFiltersCard.qwik.mjs";
|
|
10
10
|
import { HighlightedCodeList } from "./components/HighlightedCodeList.qwik.mjs";
|
|
11
11
|
import { getCodeLanguage } from "./utils/getCodeLanguage.qwik.mjs";
|
|
12
|
-
import { Resource,
|
|
12
|
+
import { Resource, _capturesObj, _jsxSorted, _wrapProp, componentQrl, inlinedQrl, useComputedQrl, useResourceQrl, useSignal, useStylesQrl, useVisibleTaskQrl } from "@qwik.dev/core";
|
|
13
13
|
import { getViteClientRpc } from "@qwik.dev/devtools/kit";
|
|
14
14
|
var log = (0, (/* @__PURE__ */ __toESM(require_browser(), 1)).default)("qwik:devtools:renderTree");
|
|
15
15
|
var LOAD_RETRY_DELAY_MS = 300;
|
|
@@ -25,7 +25,7 @@ var RenderTree = /*#__PURE__*/ componentQrl(/*#__PURE__*/ inlinedQrl((_rawProps)
|
|
|
25
25
|
}
|
|
26
26
|
`, "RenderTree_component_useStyles_AWhkWvC33YA"));
|
|
27
27
|
const revealNode = useComputedQrl(/*#__PURE__*/ inlinedQrl(() => {
|
|
28
|
-
return
|
|
28
|
+
return _capturesObj._[0].state.componentReveal;
|
|
29
29
|
}, "RenderTree_component_revealNode_useComputed_kosn0Rf4154", [_rawProps]));
|
|
30
30
|
const codes = useSignal([]);
|
|
31
31
|
const data = useSignal([]);
|
|
@@ -35,7 +35,7 @@ var RenderTree = /*#__PURE__*/ componentQrl(/*#__PURE__*/ inlinedQrl((_rawProps)
|
|
|
35
35
|
const hookFilters = useSignal([]);
|
|
36
36
|
const hooksOpen = useSignal(true);
|
|
37
37
|
const highlightedCodesResource = useResourceQrl(/*#__PURE__*/ inlinedQrl(async (_rawProps) => {
|
|
38
|
-
|
|
38
|
+
let codes = _capturesObj._[0];
|
|
39
39
|
_rawProps.track(() => codes.value);
|
|
40
40
|
if (!codes.value.length) return [];
|
|
41
41
|
const highlighter = await getHighlighter();
|
|
@@ -47,7 +47,7 @@ var RenderTree = /*#__PURE__*/ componentQrl(/*#__PURE__*/ inlinedQrl((_rawProps)
|
|
|
47
47
|
});
|
|
48
48
|
}, "RenderTree_component_highlightedCodesResource_useResource_hdA49UhUQ7M", [codes]));
|
|
49
49
|
useVisibleTaskQrl(/*#__PURE__*/ inlinedQrl(({ cleanup }) => {
|
|
50
|
-
|
|
50
|
+
let data = _capturesObj._[0], lastTreeIds = _capturesObj._[1];
|
|
51
51
|
const source = getPageDataSource();
|
|
52
52
|
const syncTree = (tree) => {
|
|
53
53
|
if (!tree || tree.length === 0) return false;
|
|
@@ -71,7 +71,7 @@ var RenderTree = /*#__PURE__*/ componentQrl(/*#__PURE__*/ inlinedQrl((_rawProps)
|
|
|
71
71
|
});
|
|
72
72
|
}, "RenderTree_component_useVisibleTask_zrAfIjp4mH4", [data, lastTreeIds]));
|
|
73
73
|
const onNodeClick = /*#__PURE__*/ inlinedQrl(async (node) => {
|
|
74
|
-
|
|
74
|
+
let codes = _capturesObj._[0], fullStateTree = _capturesObj._[1], hookFilters = _capturesObj._[2], stateTree = _capturesObj._[3];
|
|
75
75
|
log(" current node clicked: %O", node);
|
|
76
76
|
const source = getPageDataSource();
|
|
77
77
|
const name = node.name || node.label || "";
|
|
@@ -113,15 +113,15 @@ var RenderTree = /*#__PURE__*/ componentQrl(/*#__PURE__*/ inlinedQrl((_rawProps)
|
|
|
113
113
|
]);
|
|
114
114
|
const currentTab = useSignal("state");
|
|
115
115
|
const showStateTab = /*#__PURE__*/ inlinedQrl(() => {
|
|
116
|
-
|
|
116
|
+
let currentTab = _capturesObj._[0];
|
|
117
117
|
currentTab.value = "state";
|
|
118
118
|
}, "RenderTree_component_showStateTab_O4o7nNS0Yc4", [currentTab]);
|
|
119
119
|
const showCodeTab = /*#__PURE__*/ inlinedQrl(() => {
|
|
120
|
-
|
|
120
|
+
let currentTab = _capturesObj._[0];
|
|
121
121
|
currentTab.value = "code";
|
|
122
122
|
}, "RenderTree_component_showCodeTab_m6wrkPHXkYM", [currentTab]);
|
|
123
123
|
const refreshFilteredStateTree = /*#__PURE__*/ inlinedQrl(() => {
|
|
124
|
-
|
|
124
|
+
let fullStateTree = _capturesObj._[0], hookFilters = _capturesObj._[1], stateTree = _capturesObj._[2];
|
|
125
125
|
stateTree.value = applyHookFilters(fullStateTree.value, hookFilters.value);
|
|
126
126
|
}, "RenderTree_component_refreshFilteredStateTree_Ng6tq73zzek", [
|
|
127
127
|
fullStateTree,
|
|
@@ -129,7 +129,7 @@ var RenderTree = /*#__PURE__*/ componentQrl(/*#__PURE__*/ inlinedQrl((_rawProps)
|
|
|
129
129
|
stateTree
|
|
130
130
|
]);
|
|
131
131
|
const handleSelectAll = /*#__PURE__*/ inlinedQrl(() => {
|
|
132
|
-
|
|
132
|
+
let hookFilters = _capturesObj._[0], refreshFilteredStateTree = _capturesObj._[1];
|
|
133
133
|
hookFilters.value = hookFilters.value.map((item) => ({
|
|
134
134
|
...item,
|
|
135
135
|
display: true
|
|
@@ -137,7 +137,7 @@ var RenderTree = /*#__PURE__*/ componentQrl(/*#__PURE__*/ inlinedQrl((_rawProps)
|
|
|
137
137
|
refreshFilteredStateTree();
|
|
138
138
|
}, "RenderTree_component_handleSelectAll_yl6MuzcFZk0", [hookFilters, refreshFilteredStateTree]);
|
|
139
139
|
const handleClear = /*#__PURE__*/ inlinedQrl(() => {
|
|
140
|
-
|
|
140
|
+
let hookFilters = _capturesObj._[0], refreshFilteredStateTree = _capturesObj._[1];
|
|
141
141
|
hookFilters.value = hookFilters.value.map((item) => ({
|
|
142
142
|
...item,
|
|
143
143
|
display: false
|
|
@@ -145,7 +145,7 @@ var RenderTree = /*#__PURE__*/ componentQrl(/*#__PURE__*/ inlinedQrl((_rawProps)
|
|
|
145
145
|
refreshFilteredStateTree();
|
|
146
146
|
}, "RenderTree_component_handleClear_0fY9KH70S2A", [hookFilters, refreshFilteredStateTree]);
|
|
147
147
|
const handleFilterChange = /*#__PURE__*/ inlinedQrl((index, checked) => {
|
|
148
|
-
|
|
148
|
+
let hookFilters = _capturesObj._[0], refreshFilteredStateTree = _capturesObj._[1];
|
|
149
149
|
hookFilters.value = hookFilters.value.map((item, itemIndex) => itemIndex === index ? {
|
|
150
150
|
...item,
|
|
151
151
|
display: checked
|
|
@@ -156,45 +156,49 @@ var RenderTree = /*#__PURE__*/ componentQrl(/*#__PURE__*/ inlinedQrl((_rawProps)
|
|
|
156
156
|
/*#__PURE__*/ _jsxSorted("div", null, {
|
|
157
157
|
class: "custom-scrollbar w-1/2 overflow-hidden p-3",
|
|
158
158
|
style: { minWidth: "360px" }
|
|
159
|
-
}, /*#__PURE__*/ _jsxSorted(Tree, {
|
|
160
|
-
const _rawProps = _captures[0];
|
|
161
|
-
return _rawProps.state.componentReveal = null;
|
|
162
|
-
}, "RenderTree_component_div_div_div_Tree_onRevealed_EevePL82QY4", [_rawProps]) }, {
|
|
163
|
-
data,
|
|
159
|
+
}, /*#__PURE__*/ _jsxSorted(Tree, {
|
|
164
160
|
onNodeClick,
|
|
161
|
+
onRevealed$: /*#__PURE__*/ inlinedQrl(() => {
|
|
162
|
+
let _rawProps = _capturesObj._[0];
|
|
163
|
+
return _rawProps.state.componentReveal = null;
|
|
164
|
+
}, "RenderTree_component_div_div_div_Tree_onRevealed_EevePL82QY4", [_rawProps])
|
|
165
|
+
}, {
|
|
166
|
+
data,
|
|
165
167
|
revealNode
|
|
166
|
-
}, null, 2, "
|
|
168
|
+
}, null, 2, "U1_1"), 1, null),
|
|
167
169
|
/*#__PURE__*/ _jsxSorted("div", null, { class: "border-glass-border border-l" }, null, 3, null),
|
|
168
170
|
/*#__PURE__*/ _jsxSorted("div", null, { class: "flex h-full min-h-0 w-1/2 flex-col overflow-hidden p-4" }, [
|
|
169
171
|
/*#__PURE__*/ _jsxSorted(RenderTreeTabs, null, {
|
|
170
172
|
currentTab: _wrapProp(currentTab),
|
|
171
173
|
onStateClick$: showStateTab,
|
|
172
174
|
onCodeClick$: showCodeTab
|
|
173
|
-
}, null, 3, "
|
|
174
|
-
currentTab.value === "state" && /*#__PURE__*/ _jsxSorted("div", null, { class: "mt-5 flex min-h-0 flex-1 flex-col" }, [/*#__PURE__*/ _jsxSorted(HookFiltersCard,
|
|
175
|
-
const hooksOpen = _captures[0];
|
|
176
|
-
return hooksOpen.value = !hooksOpen.value;
|
|
177
|
-
}, "RenderTree_component_div_div_div_div_HookFiltersCard_onToggleOpen_htBb6dFJgKk", [hooksOpen]) }, {
|
|
175
|
+
}, null, 3, "U1_2"),
|
|
176
|
+
currentTab.value === "state" && /*#__PURE__*/ _jsxSorted("div", null, { class: "mt-5 flex min-h-0 flex-1 flex-col" }, [/*#__PURE__*/ _jsxSorted(HookFiltersCard, null, {
|
|
178
177
|
filters: _wrapProp(hookFilters),
|
|
179
178
|
isOpen: _wrapProp(hooksOpen),
|
|
180
179
|
onSelectAll$: handleSelectAll,
|
|
181
180
|
onClear$: handleClear,
|
|
181
|
+
onToggleOpen$: /*#__PURE__*/ inlinedQrl(() => {
|
|
182
|
+
let hooksOpen = _capturesObj._[0];
|
|
183
|
+
return hooksOpen.value = !hooksOpen.value;
|
|
184
|
+
}, "RenderTree_component_div_div_div_div_HookFiltersCard_onToggleOpen_htBb6dFJgKk", [hooksOpen]),
|
|
182
185
|
onFilterChange$: handleFilterChange
|
|
183
|
-
}, null,
|
|
184
|
-
return /*#__PURE__*/ _jsxSorted(StateTreeNodeLabel, { node }, null, null, 3, "0a_3");
|
|
185
|
-
}, "RenderTree_component_div_div_div_div_div_Tree_renderNode_h2NF5iZQX8A") }, {
|
|
186
|
+
}, null, 3, "U1_3"), /*#__PURE__*/ _jsxSorted("div", null, { class: "mt-4 min-h-0 flex-1 overflow-y-auto p-2" }, /*#__PURE__*/ _jsxSorted(Tree, null, {
|
|
186
187
|
data: stateTree,
|
|
187
188
|
gap: 10,
|
|
188
189
|
animate: true,
|
|
189
190
|
animationDuration: 200,
|
|
190
|
-
isHover: true
|
|
191
|
-
|
|
191
|
+
isHover: true,
|
|
192
|
+
renderNode: /*#__PURE__*/ inlinedQrl((node) => {
|
|
193
|
+
return /*#__PURE__*/ _jsxSorted(StateTreeNodeLabel, { node }, null, null, 3, "U1_0");
|
|
194
|
+
}, "RenderTree_component_div_div_div_div_div_Tree_renderNode_h2NF5iZQX8A")
|
|
195
|
+
}, null, 3, "U1_4"), 1, null)], 1, "U1_5"),
|
|
192
196
|
currentTab.value === "code" && /*#__PURE__*/ _jsxSorted("div", null, { class: "border-glass-border bg-card-item-bg mt-4 min-h-0 flex-1 overflow-y-auto rounded-xl border p-2" }, /*#__PURE__*/ _jsxSorted(Resource, null, {
|
|
193
197
|
value: highlightedCodesResource,
|
|
194
|
-
onPending: () => /*#__PURE__*/ _jsxSorted("div", null, { class: "text-muted-foreground p-2 text-sm" }, "Loading code highlights…", 3, "
|
|
195
|
-
onResolved: (highlighted) => /*#__PURE__*/ _jsxSorted(HighlightedCodeList, { highlighted }, { codes: _wrapProp(codes) }, null, 3, "
|
|
196
|
-
}, null, 3, "
|
|
198
|
+
onPending: () => /*#__PURE__*/ _jsxSorted("div", null, { class: "text-muted-foreground p-2 text-sm" }, "Loading code highlights…", 3, "U1_6"),
|
|
199
|
+
onResolved: (highlighted) => /*#__PURE__*/ _jsxSorted(HighlightedCodeList, { highlighted }, { codes: _wrapProp(codes) }, null, 3, "U1_7")
|
|
200
|
+
}, null, 3, "U1_8"), 1, "U1_9")
|
|
197
201
|
], 1, null)
|
|
198
|
-
], 1, null), 1, "
|
|
202
|
+
], 1, null), 1, "U1_10");
|
|
199
203
|
}, "RenderTree_component_Sf4kwEPC9Qg"));
|
|
200
204
|
export { RenderTree };
|
package/dist/ui/packages/devtools/ui/src/features/RenderTree/components/HighlightedCodeList.qwik.mjs
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { _fnSignal, _jsxSorted, _wrapProp, componentQrl, inlinedQrl } from "@qwik.dev/core";
|
|
2
2
|
import { Fragment } from "@qwik.dev/core/jsx-runtime";
|
|
3
3
|
var _hf0 = (p0, p1) => p0.highlighted[p1] || "";
|
|
4
|
+
var _hf0_str = "p0.highlighted[p1]||\"\"";
|
|
4
5
|
var HighlightedCodeList = /*#__PURE__*/ componentQrl(/*#__PURE__*/ inlinedQrl((_rawProps) => {
|
|
5
|
-
return /*#__PURE__*/ _jsxSorted(Fragment, null, null, _rawProps.codes.map((item, index) => /*#__PURE__*/ _jsxSorted("div", null, { class: "border-glass-border bg-card-item-bg hover:bg-card-item-hover-bg mb-4 rounded-xl border p-4 transition-colors" }, [/*#__PURE__*/ _jsxSorted("div", null, { class: "text-primary mb-2 text-base font-semibold break-all" }, _wrapProp(item, "pathId"), 1, null), /*#__PURE__*/ _jsxSorted("pre", { dangerouslySetInnerHTML: _fnSignal(_hf0, [_rawProps, index]) }, { class: "overflow-hidden" }, null, 3, null)], 1, item.pathId)), 1, "
|
|
6
|
+
return /*#__PURE__*/ _jsxSorted(Fragment, null, null, _rawProps.codes.map((item, index) => /*#__PURE__*/ _jsxSorted("div", null, { class: "border-glass-border bg-card-item-bg hover:bg-card-item-hover-bg mb-4 rounded-xl border p-4 transition-colors" }, [/*#__PURE__*/ _jsxSorted("div", null, { class: "text-primary mb-2 text-base font-semibold break-all" }, _wrapProp(item, "pathId"), 1, null), /*#__PURE__*/ _jsxSorted("pre", { dangerouslySetInnerHTML: _fnSignal(_hf0, [_rawProps, index], _hf0_str) }, { class: "overflow-hidden" }, null, 3, null)], 1, item.pathId)), 1, "NQ_0");
|
|
6
7
|
}, "HighlightedCodeList_component_R9Fi7pmo1qQ"));
|
|
7
8
|
export { HighlightedCodeList };
|
package/dist/ui/packages/devtools/ui/src/features/RenderTree/components/HookFiltersCard.qwik.mjs
CHANGED
|
@@ -1,33 +1,32 @@
|
|
|
1
1
|
import { IconChevronUpMini } from "../../../components/Icons/Icons.qwik.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { _capturesObj, _fnSignal, _jsxSorted, _wrapProp, componentQrl, inlinedQrl } from "@qwik.dev/core";
|
|
3
3
|
var _hf0 = (p0) => ({
|
|
4
4
|
maxHeight: p0.isOpen ? "800px" : "0px",
|
|
5
5
|
opacity: p0.isOpen ? "1" : "0",
|
|
6
6
|
transition: "max-height 200ms ease, opacity 200ms ease"
|
|
7
7
|
});
|
|
8
|
+
var _hf0_str = "{maxHeight:p0.isOpen?\"800px\":\"0px\",opacity:p0.isOpen?\"1\":\"0\",transition:\"max-height 200ms ease, opacity 200ms ease\"}";
|
|
8
9
|
var HookFiltersCard = /*#__PURE__*/ componentQrl(/*#__PURE__*/ inlinedQrl((_rawProps) => {
|
|
10
|
+
const HookFiltersCard_component_div_div_label_input_q_e_change_FeP7wk8oowk = /*#__PURE__*/ inlinedQrl((event, _1, index) => {
|
|
11
|
+
let _rawProps = _capturesObj._[0];
|
|
12
|
+
const target = event.target;
|
|
13
|
+
_rawProps.onFilterChange$(index, target.checked);
|
|
14
|
+
}, "HookFiltersCard_component_div_div_label_input_q_e_change_FeP7wk8oowk", [_rawProps]).m();
|
|
9
15
|
return /*#__PURE__*/ _jsxSorted("div", null, { class: "border-glass-border bg-card-item-bg rounded-xl border" }, [/*#__PURE__*/ _jsxSorted("div", null, { class: "border-glass-border flex items-center justify-between border-b px-2 py-2" }, [/*#__PURE__*/ _jsxSorted("span", null, { class: "text-muted-foreground text-xs font-medium" }, "Hooks", 3, null), /*#__PURE__*/ _jsxSorted("div", null, { class: "flex items-center space-x-2" }, [
|
|
10
16
|
/*#__PURE__*/ _jsxSorted("button", { "q-e:click": _rawProps.onSelectAll$ }, { class: "text-primary px-2 py-1 text-xs hover:underline" }, "Select all", 2, null),
|
|
11
17
|
/*#__PURE__*/ _jsxSorted("button", { "q-e:click": _rawProps.onClear$ }, { class: "text-muted-foreground hover:text-foreground px-2 py-1 text-xs hover:underline" }, "Clear", 2, null),
|
|
12
18
|
/*#__PURE__*/ _jsxSorted("button", { "q-e:click": _rawProps.onToggleOpen$ }, {
|
|
13
19
|
"aria-label": "toggle hooks",
|
|
14
20
|
class: "text-muted-foreground hover:text-foreground rounded p-1"
|
|
15
|
-
}, /*#__PURE__*/ _jsxSorted(IconChevronUpMini, { class: `h-4 w-4 transition-transform duration-200 ${_rawProps.isOpen ? "rotate-180" : "-rotate-90"}` }, null, null, 3, "
|
|
16
|
-
], 1, null)], 1, null), /*#__PURE__*/ _jsxSorted("div", { style: _fnSignal(_hf0, [_rawProps]) }, { class: "grid grid-cols-2 gap-x-4 gap-y-3 overflow-hidden px-3 py-2 text-sm" }, _rawProps.filters.map((item, index) => {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
"q:p": index
|
|
26
|
-
}, {
|
|
27
|
-
type: "checkbox",
|
|
28
|
-
class: "h-4 w-4 shrink-0 cursor-pointer rounded focus:ring-0",
|
|
29
|
-
style: { accentColor: "var(--color-primary-active)" }
|
|
30
|
-
}, null, 6, null), /*#__PURE__*/ _jsxSorted("span", { title: _wrapProp(item, "key") }, { class: "ml-2 truncate select-none" }, _wrapProp(item, "key"), 1, null)], 1, item.key);
|
|
31
|
-
}), 1, null)], 1, "pG_1");
|
|
21
|
+
}, /*#__PURE__*/ _jsxSorted(IconChevronUpMini, { class: `h-4 w-4 transition-transform duration-200 ${_rawProps.isOpen ? "rotate-180" : "-rotate-90"}` }, null, null, 3, "5E_0"), 0, null)
|
|
22
|
+
], 1, null)], 1, null), /*#__PURE__*/ _jsxSorted("div", { style: _fnSignal(_hf0, [_rawProps], _hf0_str) }, { class: "grid grid-cols-2 gap-x-4 gap-y-3 overflow-hidden px-3 py-2 text-sm" }, _rawProps.filters.map((item, index) => /*#__PURE__*/ _jsxSorted("label", null, { class: "flex min-w-0 cursor-pointer items-center gap-2" }, [/*#__PURE__*/ _jsxSorted("input", {
|
|
23
|
+
checked: _wrapProp(item, "display"),
|
|
24
|
+
"q-e:change": HookFiltersCard_component_div_div_label_input_q_e_change_FeP7wk8oowk,
|
|
25
|
+
"q:p": index
|
|
26
|
+
}, {
|
|
27
|
+
type: "checkbox",
|
|
28
|
+
class: "h-4 w-4 shrink-0 cursor-pointer rounded focus:ring-0",
|
|
29
|
+
style: { accentColor: "var(--color-primary-active)" }
|
|
30
|
+
}, null, 6, null), /*#__PURE__*/ _jsxSorted("span", { title: _wrapProp(item, "key") }, { class: "ml-2 truncate select-none" }, _wrapProp(item, "key"), 1, null)], 1, item.key)), 1, null)], 1, "5E_1");
|
|
32
31
|
}, "HookFiltersCard_component_nIw23Ky2Txs"));
|
|
33
32
|
export { HookFiltersCard };
|
package/dist/ui/packages/devtools/ui/src/features/RenderTree/components/RenderTreeTabs.qwik.mjs
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { _fnSignal, _jsxSorted, componentQrl, inlinedQrl } from "@qwik.dev/core";
|
|
2
2
|
var _hf0 = (p0, p1) => p0.currentTab === p1 ? { boxShadow: "inset 0 -2px 0 0 var(--color-primary)" } : {};
|
|
3
|
+
var _hf0_str = "p0.currentTab===p1?{boxShadow:\"inset 0 -2px 0 0 var(--color-primary)\"}:{}";
|
|
3
4
|
var RenderTreeTabs = /*#__PURE__*/ componentQrl(/*#__PURE__*/ inlinedQrl((_rawProps) => {
|
|
4
5
|
return /*#__PURE__*/ _jsxSorted("div", null, { class: "border-glass-border flex space-x-2 border-b pb-1" }, ["state", "code"].map((tabId) => /*#__PURE__*/ _jsxSorted("button", {
|
|
5
6
|
class: ["rounded-lg px-4 py-2.5 text-sm font-medium transition-all duration-200", _rawProps.currentTab === tabId ? "text-primary bg-primary/10" : "text-muted-foreground hover:text-foreground hover:bg-foreground/5"],
|
|
6
7
|
"q-e:click": tabId === "state" ? _rawProps.onStateClick$ : _rawProps.onCodeClick$,
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
"q:p": tabId,
|
|
9
|
+
style: _fnSignal(_hf0, [_rawProps, tabId], _hf0_str)
|
|
10
|
+
}, null, tabId === "state" ? "State" : "Code", 4, tabId)), 1, "DH_0");
|
|
9
11
|
}, "RenderTreeTabs_component_fyOtScBp88U"));
|
|
10
12
|
export { RenderTreeTabs };
|
package/dist/ui/packages/devtools/ui/src/features/RenderTree/components/StateTreeNodeLabel.qwik.mjs
CHANGED
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import { getValueColorClass } from "../utils/getValueColorClass.qwik.mjs";
|
|
2
|
-
import { _jsxSorted, componentQrl, inlinedQrl } from "@qwik.dev/core";
|
|
2
|
+
import { _fnSignal, _jsxSorted, componentQrl, inlinedQrl } from "@qwik.dev/core";
|
|
3
3
|
import { Fragment } from "@qwik.dev/core/jsx-runtime";
|
|
4
|
+
var _hf0 = (p0) => p0[0];
|
|
5
|
+
var _hf0_str = "p0[0]";
|
|
4
6
|
var StateTreeNodeLabel = /*#__PURE__*/ componentQrl(/*#__PURE__*/ inlinedQrl((_rawProps) => {
|
|
5
7
|
const label = _rawProps.node.label || _rawProps.node.name || "";
|
|
6
8
|
const parts = label.split(":");
|
|
7
|
-
if (_rawProps.node.children && parts.length === 1) return /*#__PURE__*/ _jsxSorted("span", null, { class: "font-semibold text-pink-400" }, label, 1, "
|
|
9
|
+
if (_rawProps.node.children && parts.length === 1) return /*#__PURE__*/ _jsxSorted("span", null, { class: "font-semibold text-pink-400" }, label, 1, "Pv_0");
|
|
8
10
|
if (parts.length > 1) {
|
|
9
|
-
const key = parts[0];
|
|
10
11
|
const value = parts.slice(1).join(":").trim();
|
|
11
12
|
const valueClass = getValueColorClass(_rawProps.node, value);
|
|
12
13
|
return /*#__PURE__*/ _jsxSorted(Fragment, null, null, [
|
|
13
|
-
/*#__PURE__*/ _jsxSorted("span", null, { class: "text-blue-400" },
|
|
14
|
-
/*#__PURE__*/ _jsxSorted("span", null, { class: "text-foreground/70" }, "
|
|
14
|
+
/*#__PURE__*/ _jsxSorted("span", null, { class: "text-blue-400" }, _fnSignal(_hf0, [parts], _hf0_str), 1, null),
|
|
15
|
+
/*#__PURE__*/ _jsxSorted("span", null, { class: "text-foreground/70" }, ":", 3, null),
|
|
15
16
|
/*#__PURE__*/ _jsxSorted("span", { class: valueClass }, null, value, 1, null)
|
|
16
|
-
], 1, "
|
|
17
|
+
], 1, "Pv_1");
|
|
17
18
|
}
|
|
18
|
-
return /*#__PURE__*/ _jsxSorted("span", null, null, label, 1, "
|
|
19
|
+
return /*#__PURE__*/ _jsxSorted("span", null, null, label, 1, "Pv_2");
|
|
19
20
|
}, "StateTreeNodeLabel_component_ONzjgo7C9iQ"));
|
|
20
21
|
export { StateTreeNodeLabel };
|