@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
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { QwikLogo } from "../Icons/Icons.qwik.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { _capturesObj, _fnSignal, _jsxSorted, componentQrl, inlinedQrl, useSignal, useTaskQrl } from "@qwik.dev/core";
|
|
3
3
|
var _hf0 = (p0, p1) => ({
|
|
4
4
|
bottom: `${p1.value.y}px`,
|
|
5
5
|
right: `${p1.value.x}px`,
|
|
6
6
|
userSelect: p0.value ? "none" : void 0,
|
|
7
7
|
transition: p0.value ? "none" : void 0
|
|
8
8
|
});
|
|
9
|
+
var _hf0_str = "{bottom:`${p1.value.y}px`,right:`${p1.value.x}px`,userSelect:p0.value?\"none\":undefined,transition:p0.value?\"none\":undefined}";
|
|
9
10
|
var DevtoolsButton = /*#__PURE__*/ componentQrl(/*#__PURE__*/ inlinedQrl((props) => {
|
|
10
11
|
const position = useSignal({
|
|
11
12
|
x: 24,
|
|
@@ -22,8 +23,9 @@ var DevtoolsButton = /*#__PURE__*/ componentQrl(/*#__PURE__*/ inlinedQrl((props)
|
|
|
22
23
|
y: 0
|
|
23
24
|
});
|
|
24
25
|
const isMoved = useSignal(false);
|
|
25
|
-
/** Handles mouse movement during drag. Defined outside handleMouseDown$ for serialization. */
|
|
26
|
-
|
|
26
|
+
/** Handles mouse movement during drag. Defined outside handleMouseDown$ for serialization. */
|
|
27
|
+
const handleMouseMove = /*#__PURE__*/ inlinedQrl((event) => {
|
|
28
|
+
let isDragging = _capturesObj._[0], isMoved = _capturesObj._[1], position = _capturesObj._[2], startElementPos = _capturesObj._[3], startMousePos = _capturesObj._[4];
|
|
27
29
|
if (!isDragging.value) return;
|
|
28
30
|
const deltaX = event.clientX - startMousePos.value.x;
|
|
29
31
|
const deltaY = event.clientY - startMousePos.value.y;
|
|
@@ -43,12 +45,13 @@ var DevtoolsButton = /*#__PURE__*/ componentQrl(/*#__PURE__*/ inlinedQrl((props)
|
|
|
43
45
|
startElementPos,
|
|
44
46
|
startMousePos
|
|
45
47
|
]);
|
|
46
|
-
/** Handles mouse release to end drag. Defined outside handleMouseDown$ for serialization. */
|
|
47
|
-
|
|
48
|
+
/** Handles mouse release to end drag. Defined outside handleMouseDown$ for serialization. */
|
|
49
|
+
const handleMouseUp = /*#__PURE__*/ inlinedQrl(() => {
|
|
50
|
+
let isDragging = _capturesObj._[0];
|
|
48
51
|
if (isDragging.value) isDragging.value = false;
|
|
49
52
|
}, "DevtoolsButton_component_handleMouseUp_GgvQR4Yjzk0", [isDragging]);
|
|
50
53
|
const handleClick = /*#__PURE__*/ inlinedQrl(() => {
|
|
51
|
-
|
|
54
|
+
let isMoved = _capturesObj._[0], props = _capturesObj._[1];
|
|
52
55
|
if (isMoved.value) {
|
|
53
56
|
isMoved.value = false;
|
|
54
57
|
return;
|
|
@@ -56,8 +59,9 @@ var DevtoolsButton = /*#__PURE__*/ componentQrl(/*#__PURE__*/ inlinedQrl((props)
|
|
|
56
59
|
if (!props.state) return;
|
|
57
60
|
props.state.isOpen = !props.state.isOpen;
|
|
58
61
|
}, "DevtoolsButton_component_handleClick_Rt3WuwyzzVQ", [isMoved, props]);
|
|
59
|
-
/** Handles the mouse down event to initiate dragging. */
|
|
60
|
-
|
|
62
|
+
/** Handles the mouse down event to initiate dragging. */
|
|
63
|
+
const handleMouseDown = /*#__PURE__*/ inlinedQrl((event) => {
|
|
64
|
+
let elementRef = _capturesObj._[0], isDragging = _capturesObj._[1], isMoved = _capturesObj._[2], position = _capturesObj._[3], startElementPos = _capturesObj._[4], startMousePos = _capturesObj._[5];
|
|
61
65
|
if (event.button !== 0) return;
|
|
62
66
|
if (!elementRef.value) return;
|
|
63
67
|
event.preventDefault();
|
|
@@ -87,7 +91,7 @@ var DevtoolsButton = /*#__PURE__*/ componentQrl(/*#__PURE__*/ inlinedQrl((props)
|
|
|
87
91
|
startMousePos
|
|
88
92
|
]);
|
|
89
93
|
useTaskQrl(/*#__PURE__*/ inlinedQrl(({ track, cleanup }) => {
|
|
90
|
-
|
|
94
|
+
let handleMouseMove = _capturesObj._[0], handleMouseUp = _capturesObj._[1], isDragging = _capturesObj._[2];
|
|
91
95
|
track(() => isDragging.value);
|
|
92
96
|
if (isDragging.value && typeof window !== "undefined") {
|
|
93
97
|
window.addEventListener("mousemove", handleMouseMove);
|
|
@@ -102,20 +106,18 @@ var DevtoolsButton = /*#__PURE__*/ componentQrl(/*#__PURE__*/ inlinedQrl((props)
|
|
|
102
106
|
handleMouseUp,
|
|
103
107
|
isDragging
|
|
104
108
|
]));
|
|
105
|
-
return /*#__PURE__*/ _jsxSorted("div", {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
}, {
|
|
113
|
-
style: _fnSignal(_hf0, [isDragging, position]),
|
|
109
|
+
return /*#__PURE__*/ _jsxSorted("div", { class: [
|
|
110
|
+
"fixed z-[9990] flex h-14 w-14 origin-center items-center justify-center rounded-full select-none",
|
|
111
|
+
props.state?.isOpen && !isDragging.value ? "glass-button shadow-accent/20 pointer-events-none scale-90 rotate-90 opacity-0" : "glass-button animate-pulsar opacity-100 hover:scale-105 hover:shadow-[0_0_20px_rgba(22,182,246,0.5)]",
|
|
112
|
+
!isDragging.value ? "cursor-pointer transition-all duration-500 ease-out" : "scale-95 cursor-grabbing opacity-80"
|
|
113
|
+
] }, {
|
|
114
|
+
ref: elementRef,
|
|
115
|
+
style: _fnSignal(_hf0, [isDragging, position], _hf0_str),
|
|
114
116
|
"q-e:mousedown": handleMouseDown,
|
|
115
117
|
"q-e:click": handleClick
|
|
116
118
|
}, /*#__PURE__*/ _jsxSorted(QwikLogo, null, {
|
|
117
119
|
title: "Qwik Logo",
|
|
118
120
|
class: "pointer-events-none h-7 w-7 opacity-90 drop-shadow-[0_2px_4px_rgba(0,0,0,0.2)]"
|
|
119
|
-
}, null, 3, "
|
|
121
|
+
}, null, 3, "r2_0"), 1, "r2_1");
|
|
120
122
|
}, "DevtoolsButton_component_pc0s731OwsI"));
|
|
121
123
|
export { DevtoolsButton };
|
package/dist/ui/packages/devtools/ui/src/components/DevtoolsContainer/DevtoolsContainer.qwik.mjs
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { Slot, _jsxSorted, componentQrl, inlinedQrl } from "@qwik.dev/core";
|
|
2
2
|
var DevtoolsContainer = /*#__PURE__*/ componentQrl(/*#__PURE__*/ inlinedQrl(() => {
|
|
3
|
-
return /*#__PURE__*/ _jsxSorted("div", null, { class: "qwik-devtools" }, /*#__PURE__*/ _jsxSorted("div",
|
|
3
|
+
return /*#__PURE__*/ _jsxSorted("div", null, { class: "qwik-devtools" }, /*#__PURE__*/ _jsxSorted("div", null, {
|
|
4
|
+
class: "fixed right-0 bottom-0 z-[2147483647] font-sans",
|
|
5
|
+
"q:slot": "content"
|
|
6
|
+
}, /*#__PURE__*/ _jsxSorted(Slot, null, null, null, 3, "Y6_0"), 1, null), 1, "Y6_1");
|
|
4
7
|
}, "DevtoolsContainer_component_am55eKQZVYo"));
|
|
5
8
|
export { DevtoolsContainer };
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { IconArrowsPointingIn, IconArrowsPointingOut, IconXMark, QwikLogo } from "../Icons/Icons.qwik.mjs";
|
|
2
|
-
import { Slot,
|
|
2
|
+
import { Slot, _capturesObj, _fnSignal, _jsxSorted, componentQrl, inlinedQrl, isBrowser, useSignal, useTaskQrl, useVisibleTaskQrl } from "@qwik.dev/core";
|
|
3
3
|
import { Fragment } from "@qwik.dev/core/jsx-runtime";
|
|
4
4
|
var _hf0 = (p0) => ["border-glass-border/80 flex items-center justify-between border-b px-4 py-3", p0.state.isPanelFullscreen ? "cursor-default" : "cursor-grab"];
|
|
5
|
+
var _hf0_str = "[\"border-glass-border/80 flex items-center justify-between border-b px-4 py-3\",p0.state.isPanelFullscreen?\"cursor-default\":\"cursor-grab\"]";
|
|
5
6
|
var _hf1 = (p0) => p0.state.isPanelFullscreen ? "Fullscreen mode" : "Drag the title bar or resize from any edge";
|
|
7
|
+
var _hf1_str = "p0.state.isPanelFullscreen?\"Fullscreen mode\":\"Drag the title bar or resize from any edge\"";
|
|
6
8
|
var _hf2 = (p0) => p0.state.isPanelFullscreen ? "Restore window" : "Enter fullscreen";
|
|
9
|
+
var _hf2_str = "p0.state.isPanelFullscreen?\"Restore window\":\"Enter fullscreen\"";
|
|
7
10
|
var WINDOW_MARGIN = 24;
|
|
8
11
|
var COMPACT_MARGIN = 8;
|
|
9
12
|
var DEFAULT_WIDTH = 1180;
|
|
@@ -109,12 +112,12 @@ var DevtoolsPanel = /*#__PURE__*/ componentQrl(/*#__PURE__*/ inlinedQrl((props)
|
|
|
109
112
|
});
|
|
110
113
|
const panelBounds = useSignal({ ...props.state.panelBounds });
|
|
111
114
|
const stopInteraction = /*#__PURE__*/ inlinedQrl(() => {
|
|
112
|
-
|
|
115
|
+
let interactionMode = _capturesObj._[0];
|
|
113
116
|
interactionMode.value = null;
|
|
114
117
|
resetPointerStyles();
|
|
115
118
|
}, "DevtoolsPanel_component_stopInteraction_FDdPgYv46RA", [interactionMode]);
|
|
116
119
|
const handleMouseMove = /*#__PURE__*/ inlinedQrl((event) => {
|
|
117
|
-
|
|
120
|
+
let interactionMode = _capturesObj._[0], panelBounds = _capturesObj._[1], props = _capturesObj._[2], startBounds = _capturesObj._[3], startMousePosition = _capturesObj._[4];
|
|
118
121
|
if (!interactionMode.value || props.state.isPanelFullscreen) return;
|
|
119
122
|
const deltaX = event.clientX - startMousePosition.value.x;
|
|
120
123
|
const deltaY = event.clientY - startMousePosition.value.y;
|
|
@@ -160,7 +163,7 @@ var DevtoolsPanel = /*#__PURE__*/ componentQrl(/*#__PURE__*/ inlinedQrl((props)
|
|
|
160
163
|
startMousePosition
|
|
161
164
|
]);
|
|
162
165
|
const handleDragStart = /*#__PURE__*/ inlinedQrl((event) => {
|
|
163
|
-
|
|
166
|
+
let interactionMode = _capturesObj._[0], panelBounds = _capturesObj._[1], props = _capturesObj._[2], startBounds = _capturesObj._[3], startMousePosition = _capturesObj._[4];
|
|
164
167
|
if (event.button !== 0 || props.state.isPanelFullscreen) return;
|
|
165
168
|
event.preventDefault();
|
|
166
169
|
event.stopPropagation();
|
|
@@ -182,7 +185,7 @@ var DevtoolsPanel = /*#__PURE__*/ componentQrl(/*#__PURE__*/ inlinedQrl((props)
|
|
|
182
185
|
startMousePosition
|
|
183
186
|
]);
|
|
184
187
|
const handleResizeStart = /*#__PURE__*/ inlinedQrl((direction, event) => {
|
|
185
|
-
|
|
188
|
+
let interactionMode = _capturesObj._[0], panelBounds = _capturesObj._[1], props = _capturesObj._[2], startBounds = _capturesObj._[3], startMousePosition = _capturesObj._[4];
|
|
186
189
|
if (event.button !== 0 || props.state.isPanelFullscreen) return;
|
|
187
190
|
event.preventDefault();
|
|
188
191
|
event.stopPropagation();
|
|
@@ -204,7 +207,7 @@ var DevtoolsPanel = /*#__PURE__*/ componentQrl(/*#__PURE__*/ inlinedQrl((props)
|
|
|
204
207
|
startMousePosition
|
|
205
208
|
]);
|
|
206
209
|
const handleToggleFullscreen = /*#__PURE__*/ inlinedQrl(() => {
|
|
207
|
-
|
|
210
|
+
let interactionMode = _capturesObj._[0], panelBounds = _capturesObj._[1], props = _capturesObj._[2];
|
|
208
211
|
if (!isBrowser) return;
|
|
209
212
|
if (props.state.isPanelFullscreen) {
|
|
210
213
|
props.state.isPanelFullscreen = false;
|
|
@@ -223,7 +226,7 @@ var DevtoolsPanel = /*#__PURE__*/ componentQrl(/*#__PURE__*/ inlinedQrl((props)
|
|
|
223
226
|
props
|
|
224
227
|
]);
|
|
225
228
|
useTaskQrl(/*#__PURE__*/ inlinedQrl(({ cleanup }) => {
|
|
226
|
-
|
|
229
|
+
let props = _capturesObj._[0];
|
|
227
230
|
const handleKeyPress = (e) => {
|
|
228
231
|
if (e.key === "`" && e.metaKey) props.state.isOpen = !props.state.isOpen;
|
|
229
232
|
if (e.key === "Escape" && props.state.isPaletteOpen) props.state.isPaletteOpen = false;
|
|
@@ -236,7 +239,7 @@ var DevtoolsPanel = /*#__PURE__*/ componentQrl(/*#__PURE__*/ inlinedQrl((props)
|
|
|
236
239
|
});
|
|
237
240
|
}, "DevtoolsPanel_component_useTask_m0ftdAGWrnk", [props]));
|
|
238
241
|
useTaskQrl(/*#__PURE__*/ inlinedQrl(({ track, cleanup }) => {
|
|
239
|
-
|
|
242
|
+
let handleMouseMove = _capturesObj._[0], interactionMode = _capturesObj._[1], stopInteraction = _capturesObj._[2];
|
|
240
243
|
track(() => interactionMode.value);
|
|
241
244
|
if (!interactionMode.value || !isBrowser) return;
|
|
242
245
|
window.addEventListener("mousemove", handleMouseMove);
|
|
@@ -254,7 +257,7 @@ var DevtoolsPanel = /*#__PURE__*/ componentQrl(/*#__PURE__*/ inlinedQrl((props)
|
|
|
254
257
|
stopInteraction
|
|
255
258
|
]));
|
|
256
259
|
useVisibleTaskQrl(/*#__PURE__*/ inlinedQrl(({ track, cleanup }) => {
|
|
257
|
-
|
|
260
|
+
let panelBounds = _capturesObj._[0], props = _capturesObj._[1];
|
|
258
261
|
track(() => props.state.isOpen);
|
|
259
262
|
track(() => props.state.isPanelFullscreen);
|
|
260
263
|
if (!props.state.isOpen) return;
|
|
@@ -281,107 +284,117 @@ var DevtoolsPanel = /*#__PURE__*/ componentQrl(/*#__PURE__*/ inlinedQrl((props)
|
|
|
281
284
|
width: `min(calc(100vw - 48px), ${DEFAULT_WIDTH}px)`,
|
|
282
285
|
height: `min(calc(100vh - 48px), ${DEFAULT_HEIGHT}px)`
|
|
283
286
|
};
|
|
284
|
-
return /*#__PURE__*/ _jsxSorted(Fragment, null, null, [/*#__PURE__*/ _jsxSorted("div", {
|
|
285
|
-
|
|
287
|
+
return /*#__PURE__*/ _jsxSorted(Fragment, null, null, [/*#__PURE__*/ _jsxSorted("div", null, {
|
|
288
|
+
class: "fixed inset-0 z-[9990] bg-black/50 backdrop-blur-sm transition-opacity duration-300",
|
|
289
|
+
"q-e:mousedown": /*#__PURE__*/ inlinedQrl(() => {
|
|
290
|
+
let props = _capturesObj._[0];
|
|
286
291
|
props.state.isOpen = false;
|
|
287
|
-
}, "DevtoolsPanel_component_Fragment_div_q_e_mousedown_Yyj4ufBP6gI")
|
|
288
|
-
|
|
289
|
-
}, { class: "fixed inset-0 z-[9990] bg-black/50 backdrop-blur-sm transition-opacity duration-300" }, null, 6, null), /*#__PURE__*/ _jsxSorted("div", {
|
|
292
|
+
}, "DevtoolsPanel_component_Fragment_div_q_e_mousedown_Yyj4ufBP6gI", [props])
|
|
293
|
+
}, null, 3, null), /*#__PURE__*/ _jsxSorted("div", {
|
|
290
294
|
class: [
|
|
291
295
|
"glass-panel text-foreground fixed z-[9991] flex overflow-hidden border transition-[border-radius,width,height,left,top]",
|
|
292
296
|
interactionMode.value ? "duration-0" : "duration-200 ease-out",
|
|
293
297
|
props.state.isPanelFullscreen ? "inset-0 rounded-none" : "rounded-2xl shadow-2xl"
|
|
294
298
|
],
|
|
295
|
-
"q-e:mousedown": /*#__PURE__*/ inlinedQrl((event) => {
|
|
296
|
-
event.stopPropagation();
|
|
297
|
-
}, "DevtoolsPanel_component_Fragment_div_q_e_mousedown_1_TccpGpuhI0Q"),
|
|
298
299
|
style: panelStyle
|
|
299
|
-
},
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
}, {
|
|
300
|
+
}, { "q-e:mousedown": /*#__PURE__*/ inlinedQrl((event) => {
|
|
301
|
+
event.stopPropagation();
|
|
302
|
+
}, "DevtoolsPanel_component_Fragment_div_q_e_mousedown_1_TccpGpuhI0Q") }, [!props.state.isPanelFullscreen && /*#__PURE__*/ _jsxSorted(Fragment, null, null, [
|
|
303
|
+
/*#__PURE__*/ _jsxSorted("button", null, {
|
|
304
304
|
type: "button",
|
|
305
305
|
"aria-label": "Resize north",
|
|
306
|
-
class: "absolute inset-x-4 top-0 z-20 h-2 cursor-ns-resize"
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
"
|
|
311
|
-
},
|
|
306
|
+
class: "absolute inset-x-4 top-0 z-20 h-2 cursor-ns-resize",
|
|
307
|
+
"q-e:mousedown": /*#__PURE__*/ inlinedQrl((event) => {
|
|
308
|
+
let handleResizeStart = _capturesObj._[0];
|
|
309
|
+
return handleResizeStart("n", event);
|
|
310
|
+
}, "DevtoolsPanel_component_Fragment_div_Fragment_button_q_e_mousedown_Kpo8QnowZug", [handleResizeStart])
|
|
311
|
+
}, null, 3, null),
|
|
312
|
+
/*#__PURE__*/ _jsxSorted("button", null, {
|
|
312
313
|
type: "button",
|
|
313
314
|
"aria-label": "Resize south",
|
|
314
|
-
class: "absolute inset-x-4 bottom-0 z-20 h-2 cursor-ns-resize"
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
"
|
|
319
|
-
},
|
|
315
|
+
class: "absolute inset-x-4 bottom-0 z-20 h-2 cursor-ns-resize",
|
|
316
|
+
"q-e:mousedown": /*#__PURE__*/ inlinedQrl((event) => {
|
|
317
|
+
let handleResizeStart = _capturesObj._[0];
|
|
318
|
+
return handleResizeStart("s", event);
|
|
319
|
+
}, "DevtoolsPanel_component_Fragment_div_Fragment_button_q_e_mousedown_1_rpnKj8SmWbQ", [handleResizeStart])
|
|
320
|
+
}, null, 3, null),
|
|
321
|
+
/*#__PURE__*/ _jsxSorted("button", null, {
|
|
320
322
|
type: "button",
|
|
321
323
|
"aria-label": "Resize east",
|
|
322
|
-
class: "absolute top-4 right-0 bottom-4 z-20 w-2 cursor-ew-resize"
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
"
|
|
327
|
-
},
|
|
324
|
+
class: "absolute top-4 right-0 bottom-4 z-20 w-2 cursor-ew-resize",
|
|
325
|
+
"q-e:mousedown": /*#__PURE__*/ inlinedQrl((event) => {
|
|
326
|
+
let handleResizeStart = _capturesObj._[0];
|
|
327
|
+
return handleResizeStart("e", event);
|
|
328
|
+
}, "DevtoolsPanel_component_Fragment_div_Fragment_button_q_e_mousedown_2_7pH0bhGUSrQ", [handleResizeStart])
|
|
329
|
+
}, null, 3, null),
|
|
330
|
+
/*#__PURE__*/ _jsxSorted("button", null, {
|
|
328
331
|
type: "button",
|
|
329
332
|
"aria-label": "Resize west",
|
|
330
|
-
class: "absolute top-4 bottom-4 left-0 z-20 w-2 cursor-ew-resize"
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
"
|
|
335
|
-
},
|
|
333
|
+
class: "absolute top-4 bottom-4 left-0 z-20 w-2 cursor-ew-resize",
|
|
334
|
+
"q-e:mousedown": /*#__PURE__*/ inlinedQrl((event) => {
|
|
335
|
+
let handleResizeStart = _capturesObj._[0];
|
|
336
|
+
return handleResizeStart("w", event);
|
|
337
|
+
}, "DevtoolsPanel_component_Fragment_div_Fragment_button_q_e_mousedown_3_BqRiXxG6CsY", [handleResizeStart])
|
|
338
|
+
}, null, 3, null),
|
|
339
|
+
/*#__PURE__*/ _jsxSorted("button", null, {
|
|
336
340
|
type: "button",
|
|
337
341
|
"aria-label": "Resize northwest",
|
|
338
|
-
class: "absolute top-0 left-0 z-20 h-4 w-4 cursor-nwse-resize"
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
"
|
|
343
|
-
},
|
|
342
|
+
class: "absolute top-0 left-0 z-20 h-4 w-4 cursor-nwse-resize",
|
|
343
|
+
"q-e:mousedown": /*#__PURE__*/ inlinedQrl((event) => {
|
|
344
|
+
let handleResizeStart = _capturesObj._[0];
|
|
345
|
+
return handleResizeStart("nw", event);
|
|
346
|
+
}, "DevtoolsPanel_component_Fragment_div_Fragment_button_q_e_mousedown_4_azrG92Zn70A", [handleResizeStart])
|
|
347
|
+
}, null, 3, null),
|
|
348
|
+
/*#__PURE__*/ _jsxSorted("button", null, {
|
|
344
349
|
type: "button",
|
|
345
350
|
"aria-label": "Resize northeast",
|
|
346
|
-
class: "absolute top-0 right-0 z-20 h-4 w-4 cursor-nesw-resize"
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
"
|
|
351
|
-
},
|
|
351
|
+
class: "absolute top-0 right-0 z-20 h-4 w-4 cursor-nesw-resize",
|
|
352
|
+
"q-e:mousedown": /*#__PURE__*/ inlinedQrl((event) => {
|
|
353
|
+
let handleResizeStart = _capturesObj._[0];
|
|
354
|
+
return handleResizeStart("ne", event);
|
|
355
|
+
}, "DevtoolsPanel_component_Fragment_div_Fragment_button_q_e_mousedown_5_hTShrOzMO2s", [handleResizeStart])
|
|
356
|
+
}, null, 3, null),
|
|
357
|
+
/*#__PURE__*/ _jsxSorted("button", null, {
|
|
352
358
|
type: "button",
|
|
353
359
|
"aria-label": "Resize southwest",
|
|
354
|
-
class: "absolute bottom-0 left-0 z-20 h-4 w-4 cursor-nesw-resize"
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
"
|
|
359
|
-
},
|
|
360
|
+
class: "absolute bottom-0 left-0 z-20 h-4 w-4 cursor-nesw-resize",
|
|
361
|
+
"q-e:mousedown": /*#__PURE__*/ inlinedQrl((event) => {
|
|
362
|
+
let handleResizeStart = _capturesObj._[0];
|
|
363
|
+
return handleResizeStart("sw", event);
|
|
364
|
+
}, "DevtoolsPanel_component_Fragment_div_Fragment_button_q_e_mousedown_6_ukQTZz0jKXc", [handleResizeStart])
|
|
365
|
+
}, null, 3, null),
|
|
366
|
+
/*#__PURE__*/ _jsxSorted("button", null, {
|
|
360
367
|
type: "button",
|
|
361
368
|
"aria-label": "Resize southeast",
|
|
362
|
-
class: "absolute right-0 bottom-0 z-20 h-4 w-4 cursor-nwse-resize"
|
|
363
|
-
|
|
364
|
-
|
|
369
|
+
class: "absolute right-0 bottom-0 z-20 h-4 w-4 cursor-nwse-resize",
|
|
370
|
+
"q-e:mousedown": /*#__PURE__*/ inlinedQrl((event) => {
|
|
371
|
+
let handleResizeStart = _capturesObj._[0];
|
|
372
|
+
return handleResizeStart("se", event);
|
|
373
|
+
}, "DevtoolsPanel_component_Fragment_div_Fragment_button_q_e_mousedown_7_eWsKZf7ZlNg", [handleResizeStart])
|
|
374
|
+
}, null, 3, null)
|
|
375
|
+
], 3, "YV_0"), /*#__PURE__*/ _jsxSorted("div", null, { class: "flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden" }, [/*#__PURE__*/ _jsxSorted("div", { class: _fnSignal(_hf0, [props], _hf0_str) }, {
|
|
365
376
|
"q-e:mousedown": handleDragStart,
|
|
366
377
|
"q-e:dblclick": handleToggleFullscreen
|
|
367
378
|
}, [/*#__PURE__*/ _jsxSorted("div", null, { class: "flex min-w-0 items-center gap-3" }, [/*#__PURE__*/ _jsxSorted(QwikLogo, null, {
|
|
368
379
|
title: "Qwik Logo",
|
|
369
380
|
class: "h-5 w-5 shrink-0"
|
|
370
|
-
}, null, 3, "
|
|
371
|
-
|
|
372
|
-
|
|
381
|
+
}, null, 3, "YV_1"), /*#__PURE__*/ _jsxSorted("div", null, { class: "min-w-0" }, [/*#__PURE__*/ _jsxSorted("div", null, { class: "truncate text-sm font-semibold" }, "Qwik DevTools", 3, null), /*#__PURE__*/ _jsxSorted("div", null, { class: "text-muted-foreground truncate text-xs" }, _fnSignal(_hf1, [props], _hf1_str), 1, null)], 1, null)], 1, null), /*#__PURE__*/ _jsxSorted("div", null, {
|
|
382
|
+
class: "flex items-center gap-2",
|
|
383
|
+
"q-e:mousedown": /*#__PURE__*/ inlinedQrl((event) => {
|
|
384
|
+
event.stopPropagation();
|
|
385
|
+
}, "DevtoolsPanel_component_Fragment_div_div_div_div_q_e_mousedown_4Q09AHNKYqo")
|
|
386
|
+
}, [/*#__PURE__*/ _jsxSorted("button", { "aria-label": _fnSignal(_hf2, [props], _hf2_str) }, {
|
|
373
387
|
type: "button",
|
|
374
388
|
class: "bg-card-item-bg hover:bg-card-item-hover-bg border-glass-border text-muted-foreground hover:text-foreground flex h-9 w-9 cursor-pointer items-center justify-center rounded-full border shadow-sm backdrop-blur-md transition-all hover:scale-105 active:scale-95",
|
|
375
389
|
"q-e:click": handleToggleFullscreen
|
|
376
|
-
}, props.state.isPanelFullscreen ? /*#__PURE__*/ _jsxSorted(IconArrowsPointingIn, null, { class: "h-4 w-4" }, null, 3, "
|
|
377
|
-
"q-e:click": /*#__PURE__*/ inlinedQrl((_, _1, props) => {
|
|
378
|
-
props.state.isOpen = false;
|
|
379
|
-
}, "DevtoolsPanel_component_Fragment_div_div_div_div_button_q_e_click_wy3qFhRhsTU").m(),
|
|
380
|
-
"q:p": props
|
|
381
|
-
}, {
|
|
390
|
+
}, props.state.isPanelFullscreen ? /*#__PURE__*/ _jsxSorted(IconArrowsPointingIn, null, { class: "h-4 w-4" }, null, 3, "YV_2") : /*#__PURE__*/ _jsxSorted(IconArrowsPointingOut, null, { class: "h-4 w-4" }, null, 3, "YV_3"), 1, null), /*#__PURE__*/ _jsxSorted("button", null, {
|
|
382
391
|
type: "button",
|
|
383
392
|
"aria-label": "Close devtools",
|
|
384
|
-
class: "bg-card-item-bg hover:bg-card-item-hover-bg border-glass-border text-muted-foreground hover:text-foreground flex h-9 w-9 cursor-pointer items-center justify-center rounded-full border shadow-sm backdrop-blur-md transition-all hover:scale-105 active:scale-95"
|
|
385
|
-
|
|
393
|
+
class: "bg-card-item-bg hover:bg-card-item-hover-bg border-glass-border text-muted-foreground hover:text-foreground flex h-9 w-9 cursor-pointer items-center justify-center rounded-full border shadow-sm backdrop-blur-md transition-all hover:scale-105 active:scale-95",
|
|
394
|
+
"q-e:click": /*#__PURE__*/ inlinedQrl(() => {
|
|
395
|
+
let props = _capturesObj._[0];
|
|
396
|
+
props.state.isOpen = false;
|
|
397
|
+
}, "DevtoolsPanel_component_Fragment_div_div_div_div_button_q_e_click_wy3qFhRhsTU", [props])
|
|
398
|
+
}, /*#__PURE__*/ _jsxSorted(IconXMark, null, { class: "h-5 w-5" }, null, 3, "YV_4"), 1, null)], 1, null)], 1, null), /*#__PURE__*/ _jsxSorted("div", null, { class: "flex min-h-0 min-w-0 flex-1 overflow-hidden" }, /*#__PURE__*/ _jsxSorted(Slot, null, null, null, 3, "YV_5"), 1, null)], 1, null)], 1, null)], 1, "YV_6");
|
|
386
399
|
}, "DevtoolsPanel_component_BVQpbxoWoJY"));
|
|
387
400
|
export { DevtoolsPanel };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Slot, _jsxSorted, _wrapProp, componentQrl, inlinedQrl } from "@qwik.dev/core";
|
|
2
|
-
/** Small toolbar button with icon slot and optional text. Supports active/inactive visual states. */
|
|
2
|
+
/** Small toolbar button with icon slot and optional text. Supports active/inactive visual states. */
|
|
3
|
+
var IconButton = /*#__PURE__*/ componentQrl(/*#__PURE__*/ inlinedQrl((props) => {
|
|
3
4
|
return /*#__PURE__*/ _jsxSorted("button", {
|
|
4
5
|
"aria-label": _wrapProp(props, "title"),
|
|
5
6
|
class: [
|
|
@@ -9,6 +10,6 @@ import { Slot, _jsxSorted, _wrapProp, componentQrl, inlinedQrl } from "@qwik.dev
|
|
|
9
10
|
],
|
|
10
11
|
"q-e:click": props.onClick$,
|
|
11
12
|
title: _wrapProp(props, "title")
|
|
12
|
-
}, null, /*#__PURE__*/ _jsxSorted(Slot, null, null, null, 3, "
|
|
13
|
+
}, null, /*#__PURE__*/ _jsxSorted(Slot, null, null, null, 3, "W9_0"), 0, "W9_1");
|
|
13
14
|
}, "IconButton_component_bgPeqZ4Kexo"));
|
|
14
15
|
export { IconButton };
|