@nice-code/action 0.4.10 → 0.5.0
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.
|
@@ -2090,9 +2090,9 @@ function getSizeValue(size) {
|
|
|
2090
2090
|
import { useState } from "react";
|
|
2091
2091
|
|
|
2092
2092
|
// src/devtools/browser/components/SectionLabel.tsx
|
|
2093
|
-
import {
|
|
2093
|
+
import { jsx } from "react/jsx-runtime";
|
|
2094
2094
|
function SectionLabel({ label, color = DEVTOOL_COLOR_SEMANTIC_SYSTEM }) {
|
|
2095
|
-
return /* @__PURE__ */
|
|
2095
|
+
return /* @__PURE__ */ jsx("div", {
|
|
2096
2096
|
style: {
|
|
2097
2097
|
color,
|
|
2098
2098
|
fontSize: "0.85em",
|
|
@@ -2103,7 +2103,7 @@ function SectionLabel({ label, color = DEVTOOL_COLOR_SEMANTIC_SYSTEM }) {
|
|
|
2103
2103
|
textAlign: "left"
|
|
2104
2104
|
},
|
|
2105
2105
|
children: label
|
|
2106
|
-
}
|
|
2106
|
+
});
|
|
2107
2107
|
}
|
|
2108
2108
|
|
|
2109
2109
|
// src/devtools/browser/components/utils.ts
|
|
@@ -2167,7 +2167,7 @@ function formatTimestamp(startTime) {
|
|
|
2167
2167
|
}
|
|
2168
2168
|
|
|
2169
2169
|
// src/devtools/browser/components/DetailSection.tsx
|
|
2170
|
-
import {
|
|
2170
|
+
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
2171
2171
|
var COMPACT_CHAR_LIMIT = 120;
|
|
2172
2172
|
var MONO = "ui-monospace, 'Cascadia Code', 'Source Code Pro', monospace";
|
|
2173
2173
|
var JSON_TOKEN_RE = /("(?:\\.|[^"\\])*")(\s*:)?|(-?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)|(\btrue\b|\bfalse\b|\bnull\b|\bundefined\b)|([{}[\],])/g;
|
|
@@ -2182,35 +2182,35 @@ function renderColoredJson(text) {
|
|
|
2182
2182
|
const [, str, colon, num, kw, punct] = m;
|
|
2183
2183
|
if (str != null) {
|
|
2184
2184
|
if (colon != null) {
|
|
2185
|
-
nodes.push(/* @__PURE__ */
|
|
2185
|
+
nodes.push(/* @__PURE__ */ jsx2("span", {
|
|
2186
2186
|
style: { color: DEVTOOL_JSON_KEY },
|
|
2187
2187
|
children: str
|
|
2188
|
-
}, i
|
|
2189
|
-
nodes.push(/* @__PURE__ */
|
|
2188
|
+
}, i++));
|
|
2189
|
+
nodes.push(/* @__PURE__ */ jsx2("span", {
|
|
2190
2190
|
style: { color: DEVTOOL_JSON_PUNCTUATION },
|
|
2191
2191
|
children: colon
|
|
2192
|
-
}, i
|
|
2192
|
+
}, i++));
|
|
2193
2193
|
} else {
|
|
2194
|
-
nodes.push(/* @__PURE__ */
|
|
2194
|
+
nodes.push(/* @__PURE__ */ jsx2("span", {
|
|
2195
2195
|
style: { color: DEVTOOL_JSON_STRING },
|
|
2196
2196
|
children: str
|
|
2197
|
-
}, i
|
|
2197
|
+
}, i++));
|
|
2198
2198
|
}
|
|
2199
2199
|
} else if (num != null) {
|
|
2200
|
-
nodes.push(/* @__PURE__ */
|
|
2200
|
+
nodes.push(/* @__PURE__ */ jsx2("span", {
|
|
2201
2201
|
style: { color: DEVTOOL_JSON_NUMBER },
|
|
2202
2202
|
children: num
|
|
2203
|
-
}, i
|
|
2203
|
+
}, i++));
|
|
2204
2204
|
} else if (kw != null) {
|
|
2205
|
-
nodes.push(/* @__PURE__ */
|
|
2205
|
+
nodes.push(/* @__PURE__ */ jsx2("span", {
|
|
2206
2206
|
style: { color: DEVTOOL_JSON_KEYWORD },
|
|
2207
2207
|
children: kw
|
|
2208
|
-
}, i
|
|
2208
|
+
}, i++));
|
|
2209
2209
|
} else if (punct != null) {
|
|
2210
|
-
nodes.push(/* @__PURE__ */
|
|
2210
|
+
nodes.push(/* @__PURE__ */ jsx2("span", {
|
|
2211
2211
|
style: { color: DEVTOOL_JSON_PUNCTUATION },
|
|
2212
2212
|
children: punct
|
|
2213
|
-
}, i
|
|
2213
|
+
}, i++));
|
|
2214
2214
|
}
|
|
2215
2215
|
last = JSON_TOKEN_RE.lastIndex;
|
|
2216
2216
|
}
|
|
@@ -2239,9 +2239,9 @@ function DetailSection({
|
|
|
2239
2239
|
const canExpand = fullJson !== compactJson || compactJson.length > COMPACT_CHAR_LIMIT;
|
|
2240
2240
|
const compactDisplay = compactJson.length > COMPACT_CHAR_LIMIT ? `${compactJson.slice(0, COMPACT_CHAR_LIMIT)}…` : compactJson;
|
|
2241
2241
|
const baseStyle = isPlainString ? { background: DEVTOOL_SECTION_STRING_BACKGROUND, color: DEVTOOL_COLOR_TEXT_MUTED } : { background: DEVTOOL_SECTION_BACKGROUND, color: DEVTOOL_COLOR_TEXT_SECONDARY };
|
|
2242
|
-
return /* @__PURE__ */
|
|
2242
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
2243
2243
|
children: [
|
|
2244
|
-
/* @__PURE__ */
|
|
2244
|
+
/* @__PURE__ */ jsxs("div", {
|
|
2245
2245
|
style: {
|
|
2246
2246
|
display: "flex",
|
|
2247
2247
|
alignItems: "center",
|
|
@@ -2249,17 +2249,17 @@ function DetailSection({
|
|
|
2249
2249
|
marginBottom: "3px"
|
|
2250
2250
|
},
|
|
2251
2251
|
children: [
|
|
2252
|
-
/* @__PURE__ */
|
|
2252
|
+
/* @__PURE__ */ jsx2(SectionLabel, {
|
|
2253
2253
|
label,
|
|
2254
2254
|
color
|
|
2255
|
-
}
|
|
2256
|
-
canExpand && /* @__PURE__ */
|
|
2255
|
+
}),
|
|
2256
|
+
canExpand && /* @__PURE__ */ jsx2("span", {
|
|
2257
2257
|
style: { color: DEVTOOL_COLOR_TEXT_FAINT, fontSize: "11px" },
|
|
2258
2258
|
children: expanded ? "▾" : "▸"
|
|
2259
|
-
}
|
|
2259
|
+
})
|
|
2260
2260
|
]
|
|
2261
|
-
}
|
|
2262
|
-
expanded ? /* @__PURE__ */
|
|
2261
|
+
}),
|
|
2262
|
+
expanded ? /* @__PURE__ */ jsx2("div", {
|
|
2263
2263
|
onClick: canExpand ? () => setExpanded(false) : undefined,
|
|
2264
2264
|
style: {
|
|
2265
2265
|
margin: 0,
|
|
@@ -2276,7 +2276,7 @@ function DetailSection({
|
|
|
2276
2276
|
...baseStyle
|
|
2277
2277
|
},
|
|
2278
2278
|
children: isPlainString ? fullJson : renderColoredJson(fullJson)
|
|
2279
|
-
}
|
|
2279
|
+
}) : /* @__PURE__ */ jsx2("div", {
|
|
2280
2280
|
onClick: canExpand ? () => setExpanded(true) : undefined,
|
|
2281
2281
|
style: {
|
|
2282
2282
|
padding: "5px 8px",
|
|
@@ -2291,13 +2291,13 @@ function DetailSection({
|
|
|
2291
2291
|
...baseStyle
|
|
2292
2292
|
},
|
|
2293
2293
|
children: compactDisplay
|
|
2294
|
-
}
|
|
2294
|
+
})
|
|
2295
2295
|
]
|
|
2296
|
-
}
|
|
2296
|
+
});
|
|
2297
2297
|
}
|
|
2298
2298
|
|
|
2299
2299
|
// src/devtools/browser/components/NiceErrorDisplay.tsx
|
|
2300
|
-
import {
|
|
2300
|
+
import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
2301
2301
|
var MONO2 = "ui-monospace, 'Cascadia Code', 'Source Code Pro', monospace";
|
|
2302
2302
|
var SANS = "ui-sans-serif, system-ui, -apple-system, sans-serif";
|
|
2303
2303
|
function isNiceErrorJson(value) {
|
|
@@ -2307,7 +2307,7 @@ function isNiceErrorJson(value) {
|
|
|
2307
2307
|
return v["name"] === "NiceError" && Array.isArray(v["ids"]) && typeof v["message"] === "string";
|
|
2308
2308
|
}
|
|
2309
2309
|
function NiceErrorBody({ error }) {
|
|
2310
|
-
return /* @__PURE__ */
|
|
2310
|
+
return /* @__PURE__ */ jsxs2("div", {
|
|
2311
2311
|
style: {
|
|
2312
2312
|
background: DEVTOOL_ERROR_BACKGROUND,
|
|
2313
2313
|
border: `1px solid ${DEVTOOL_COLOR_SEMANTIC_ERROR}`,
|
|
@@ -2315,7 +2315,7 @@ function NiceErrorBody({ error }) {
|
|
|
2315
2315
|
overflow: "hidden"
|
|
2316
2316
|
},
|
|
2317
2317
|
children: [
|
|
2318
|
-
/* @__PURE__ */
|
|
2318
|
+
/* @__PURE__ */ jsx3("div", {
|
|
2319
2319
|
style: {
|
|
2320
2320
|
padding: "12px 14px",
|
|
2321
2321
|
color: DEVTOOL_COLOR_SEMANTIC_ERROR,
|
|
@@ -2328,8 +2328,8 @@ function NiceErrorBody({ error }) {
|
|
|
2328
2328
|
borderBottom: `1px solid ${DEVTOOL_ERROR_BADGE_BACKGROUND}`
|
|
2329
2329
|
},
|
|
2330
2330
|
children: error.message
|
|
2331
|
-
}
|
|
2332
|
-
/* @__PURE__ */
|
|
2331
|
+
}),
|
|
2332
|
+
/* @__PURE__ */ jsxs2("div", {
|
|
2333
2333
|
style: {
|
|
2334
2334
|
padding: "6px 14px 8px",
|
|
2335
2335
|
display: "flex",
|
|
@@ -2339,7 +2339,7 @@ function NiceErrorBody({ error }) {
|
|
|
2339
2339
|
background: DEVTOOL_ERROR_BADGE_BACKGROUND
|
|
2340
2340
|
},
|
|
2341
2341
|
children: [
|
|
2342
|
-
error.ids.map((id) => /* @__PURE__ */
|
|
2342
|
+
error.ids.map((id) => /* @__PURE__ */ jsx3("span", {
|
|
2343
2343
|
style: {
|
|
2344
2344
|
color: DEVTOOL_COLOR_SEMANTIC_ERROR,
|
|
2345
2345
|
fontFamily: MONO2,
|
|
@@ -2347,50 +2347,50 @@ function NiceErrorBody({ error }) {
|
|
|
2347
2347
|
fontWeight: "600"
|
|
2348
2348
|
},
|
|
2349
2349
|
children: id
|
|
2350
|
-
}, id
|
|
2351
|
-
/* @__PURE__ */
|
|
2350
|
+
}, id)),
|
|
2351
|
+
/* @__PURE__ */ jsxs2("span", {
|
|
2352
2352
|
style: { color: DEVTOOL_COLOR_TEXT_MUTED, fontSize: "10px", fontFamily: SANS },
|
|
2353
2353
|
children: [
|
|
2354
2354
|
"domain:",
|
|
2355
2355
|
" ",
|
|
2356
|
-
/* @__PURE__ */
|
|
2356
|
+
/* @__PURE__ */ jsx3("span", {
|
|
2357
2357
|
style: { color: DEVTOOL_COLOR_TEXT_MUTED, fontFamily: MONO2 },
|
|
2358
2358
|
children: error.def.domain
|
|
2359
|
-
}
|
|
2359
|
+
})
|
|
2360
2360
|
]
|
|
2361
|
-
}
|
|
2362
|
-
/* @__PURE__ */
|
|
2361
|
+
}),
|
|
2362
|
+
/* @__PURE__ */ jsxs2("span", {
|
|
2363
2363
|
style: { color: DEVTOOL_COLOR_TEXT_MUTED, fontSize: "10px", fontFamily: SANS },
|
|
2364
2364
|
children: [
|
|
2365
2365
|
"http:",
|
|
2366
2366
|
" ",
|
|
2367
|
-
/* @__PURE__ */
|
|
2367
|
+
/* @__PURE__ */ jsx3("span", {
|
|
2368
2368
|
style: { color: DEVTOOL_COLOR_TEXT_MUTED, fontFamily: MONO2 },
|
|
2369
2369
|
children: error.httpStatusCode
|
|
2370
|
-
}
|
|
2370
|
+
})
|
|
2371
2371
|
]
|
|
2372
|
-
}
|
|
2372
|
+
})
|
|
2373
2373
|
]
|
|
2374
|
-
}
|
|
2374
|
+
})
|
|
2375
2375
|
]
|
|
2376
|
-
}
|
|
2376
|
+
});
|
|
2377
2377
|
}
|
|
2378
2378
|
function NiceErrorDisplay({
|
|
2379
2379
|
error,
|
|
2380
2380
|
label,
|
|
2381
2381
|
color
|
|
2382
2382
|
}) {
|
|
2383
|
-
return /* @__PURE__ */
|
|
2383
|
+
return /* @__PURE__ */ jsxs2("div", {
|
|
2384
2384
|
children: [
|
|
2385
|
-
/* @__PURE__ */
|
|
2385
|
+
/* @__PURE__ */ jsx3(SectionLabel, {
|
|
2386
2386
|
label,
|
|
2387
2387
|
color
|
|
2388
|
-
}
|
|
2389
|
-
/* @__PURE__ */
|
|
2388
|
+
}),
|
|
2389
|
+
/* @__PURE__ */ jsx3(NiceErrorBody, {
|
|
2390
2390
|
error
|
|
2391
|
-
}
|
|
2391
|
+
})
|
|
2392
2392
|
]
|
|
2393
|
-
}
|
|
2393
|
+
});
|
|
2394
2394
|
}
|
|
2395
2395
|
|
|
2396
2396
|
// src/devtools/browser/components/StackTraceSection.tsx
|
|
@@ -2463,7 +2463,7 @@ async function resolveCompiledPosition(fileUrl, line, col) {
|
|
|
2463
2463
|
}
|
|
2464
2464
|
|
|
2465
2465
|
// src/devtools/browser/components/StackTraceSection.tsx
|
|
2466
|
-
import {
|
|
2466
|
+
import { jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
2467
2467
|
var INTERNAL_PATTERNS = [
|
|
2468
2468
|
"/nice-action/",
|
|
2469
2469
|
"@nice-code/action",
|
|
@@ -2617,7 +2617,7 @@ function ProjectRootSetupModal({
|
|
|
2617
2617
|
if (trimmed !== "")
|
|
2618
2618
|
onSave(trimmed);
|
|
2619
2619
|
};
|
|
2620
|
-
return /* @__PURE__ */
|
|
2620
|
+
return /* @__PURE__ */ jsxs3("div", {
|
|
2621
2621
|
style: {
|
|
2622
2622
|
position: "fixed",
|
|
2623
2623
|
inset: 0,
|
|
@@ -2627,11 +2627,11 @@ function ProjectRootSetupModal({
|
|
|
2627
2627
|
justifyContent: "center"
|
|
2628
2628
|
},
|
|
2629
2629
|
children: [
|
|
2630
|
-
/* @__PURE__ */
|
|
2630
|
+
/* @__PURE__ */ jsx4("div", {
|
|
2631
2631
|
onClick: onCancel,
|
|
2632
2632
|
style: { position: "absolute", inset: 0, background: "rgba(0, 0, 0, 0.72)" }
|
|
2633
|
-
}
|
|
2634
|
-
/* @__PURE__ */
|
|
2633
|
+
}),
|
|
2634
|
+
/* @__PURE__ */ jsxs3("form", {
|
|
2635
2635
|
onSubmit: handleSubmit,
|
|
2636
2636
|
style: {
|
|
2637
2637
|
position: "relative",
|
|
@@ -2646,14 +2646,14 @@ function ProjectRootSetupModal({
|
|
|
2646
2646
|
flexDirection: "column"
|
|
2647
2647
|
},
|
|
2648
2648
|
children: [
|
|
2649
|
-
/* @__PURE__ */
|
|
2649
|
+
/* @__PURE__ */ jsxs3("div", {
|
|
2650
2650
|
style: {
|
|
2651
2651
|
background: DEVTOOL_TOOLTIP_TITLE_BACKGROUND,
|
|
2652
2652
|
borderBottom: `1px solid ${DEVTOOL_TOOLTIP_BORDER}`,
|
|
2653
2653
|
padding: "10px 14px"
|
|
2654
2654
|
},
|
|
2655
2655
|
children: [
|
|
2656
|
-
/* @__PURE__ */
|
|
2656
|
+
/* @__PURE__ */ jsx4("div", {
|
|
2657
2657
|
style: {
|
|
2658
2658
|
color: DEVTOOL_COLOR_TEXT_EMPHASIS,
|
|
2659
2659
|
fontSize: "12px",
|
|
@@ -2661,41 +2661,41 @@ function ProjectRootSetupModal({
|
|
|
2661
2661
|
marginBottom: "2px"
|
|
2662
2662
|
},
|
|
2663
2663
|
children: "Set project root"
|
|
2664
|
-
}
|
|
2665
|
-
/* @__PURE__ */
|
|
2664
|
+
}),
|
|
2665
|
+
/* @__PURE__ */ jsxs3("div", {
|
|
2666
2666
|
style: { color: DEVTOOL_COLOR_TEXT_MUTED, fontSize: "10px" },
|
|
2667
2667
|
children: [
|
|
2668
2668
|
"Runtime:",
|
|
2669
2669
|
" ",
|
|
2670
|
-
/* @__PURE__ */
|
|
2670
|
+
/* @__PURE__ */ jsx4("span", {
|
|
2671
2671
|
style: {
|
|
2672
2672
|
color: DEVTOOL_COLOR_SEMANTIC_SYSTEM,
|
|
2673
2673
|
fontFamily: "ui-monospace, 'Cascadia Code', 'Source Code Pro', monospace"
|
|
2674
2674
|
},
|
|
2675
2675
|
children: envId
|
|
2676
|
-
}
|
|
2676
|
+
})
|
|
2677
2677
|
]
|
|
2678
|
-
}
|
|
2678
|
+
})
|
|
2679
2679
|
]
|
|
2680
|
-
}
|
|
2681
|
-
/* @__PURE__ */
|
|
2680
|
+
}),
|
|
2681
|
+
/* @__PURE__ */ jsxs3("div", {
|
|
2682
2682
|
style: { padding: "14px", display: "flex", flexDirection: "column", gap: "8px" },
|
|
2683
2683
|
children: [
|
|
2684
|
-
/* @__PURE__ */
|
|
2684
|
+
/* @__PURE__ */ jsxs3("div", {
|
|
2685
2685
|
style: { color: DEVTOOL_COLOR_TEXT_MUTED, fontSize: "10px", lineHeight: 1.4 },
|
|
2686
2686
|
children: [
|
|
2687
2687
|
"Provide the absolute path to this project's root so that root-relative source file paths (e.g.",
|
|
2688
2688
|
" ",
|
|
2689
|
-
/* @__PURE__ */
|
|
2689
|
+
/* @__PURE__ */ jsx4("span", {
|
|
2690
2690
|
style: {
|
|
2691
2691
|
fontFamily: "ui-monospace, 'Cascadia Code', 'Source Code Pro', monospace"
|
|
2692
2692
|
},
|
|
2693
2693
|
children: "src/App.tsx"
|
|
2694
|
-
}
|
|
2694
|
+
}),
|
|
2695
2695
|
") can be opened in VS Code."
|
|
2696
2696
|
]
|
|
2697
|
-
}
|
|
2698
|
-
/* @__PURE__ */
|
|
2697
|
+
}),
|
|
2698
|
+
/* @__PURE__ */ jsx4("input", {
|
|
2699
2699
|
ref: inputRef,
|
|
2700
2700
|
value,
|
|
2701
2701
|
onChange: (e) => setValue(e.currentTarget.value),
|
|
@@ -2712,10 +2712,10 @@ function ProjectRootSetupModal({
|
|
|
2712
2712
|
width: "100%",
|
|
2713
2713
|
boxSizing: "border-box"
|
|
2714
2714
|
}
|
|
2715
|
-
}
|
|
2715
|
+
})
|
|
2716
2716
|
]
|
|
2717
|
-
}
|
|
2718
|
-
/* @__PURE__ */
|
|
2717
|
+
}),
|
|
2718
|
+
/* @__PURE__ */ jsxs3("div", {
|
|
2719
2719
|
style: {
|
|
2720
2720
|
display: "flex",
|
|
2721
2721
|
justifyContent: "flex-end",
|
|
@@ -2724,7 +2724,7 @@ function ProjectRootSetupModal({
|
|
|
2724
2724
|
borderTop: `1px solid ${DEVTOOL_PANEL_BORDER}`
|
|
2725
2725
|
},
|
|
2726
2726
|
children: [
|
|
2727
|
-
/* @__PURE__ */
|
|
2727
|
+
/* @__PURE__ */ jsx4("button", {
|
|
2728
2728
|
type: "button",
|
|
2729
2729
|
onClick: onCancel,
|
|
2730
2730
|
style: {
|
|
@@ -2737,8 +2737,8 @@ function ProjectRootSetupModal({
|
|
|
2737
2737
|
cursor: "pointer"
|
|
2738
2738
|
},
|
|
2739
2739
|
children: "Cancel"
|
|
2740
|
-
}
|
|
2741
|
-
/* @__PURE__ */
|
|
2740
|
+
}),
|
|
2741
|
+
/* @__PURE__ */ jsx4("button", {
|
|
2742
2742
|
type: "submit",
|
|
2743
2743
|
disabled: value.trim() === "",
|
|
2744
2744
|
style: {
|
|
@@ -2752,13 +2752,13 @@ function ProjectRootSetupModal({
|
|
|
2752
2752
|
opacity: value.trim() === "" ? 0.5 : 1
|
|
2753
2753
|
},
|
|
2754
2754
|
children: "Save"
|
|
2755
|
-
}
|
|
2755
|
+
})
|
|
2756
2756
|
]
|
|
2757
|
-
}
|
|
2757
|
+
})
|
|
2758
2758
|
]
|
|
2759
|
-
}
|
|
2759
|
+
})
|
|
2760
2760
|
]
|
|
2761
|
-
}
|
|
2761
|
+
});
|
|
2762
2762
|
}
|
|
2763
2763
|
function OpenInVscodeButton({
|
|
2764
2764
|
frame,
|
|
@@ -2787,7 +2787,7 @@ function OpenInVscodeButton({
|
|
|
2787
2787
|
flexShrink: 0
|
|
2788
2788
|
};
|
|
2789
2789
|
if (needsSetup) {
|
|
2790
|
-
return /* @__PURE__ */
|
|
2790
|
+
return /* @__PURE__ */ jsx4("button", {
|
|
2791
2791
|
onClick: (e) => {
|
|
2792
2792
|
e.stopPropagation();
|
|
2793
2793
|
onNeedSetup();
|
|
@@ -2802,13 +2802,13 @@ function OpenInVscodeButton({
|
|
|
2802
2802
|
border: "none",
|
|
2803
2803
|
padding: 0
|
|
2804
2804
|
},
|
|
2805
|
-
children: /* @__PURE__ */
|
|
2805
|
+
children: /* @__PURE__ */ jsx4(ExternalLink, {
|
|
2806
2806
|
size: 10,
|
|
2807
2807
|
strokeWidth: 1.8
|
|
2808
|
-
}
|
|
2809
|
-
}
|
|
2808
|
+
})
|
|
2809
|
+
});
|
|
2810
2810
|
}
|
|
2811
|
-
return /* @__PURE__ */
|
|
2811
|
+
return /* @__PURE__ */ jsx4("a", {
|
|
2812
2812
|
href: url,
|
|
2813
2813
|
onClick: (e) => e.stopPropagation(),
|
|
2814
2814
|
onMouseEnter: () => setHovered(true),
|
|
@@ -2819,11 +2819,11 @@ function OpenInVscodeButton({
|
|
|
2819
2819
|
color: DEVTOOL_COLOR_TEXT_SECONDARY,
|
|
2820
2820
|
textDecoration: "none"
|
|
2821
2821
|
},
|
|
2822
|
-
children: /* @__PURE__ */
|
|
2822
|
+
children: /* @__PURE__ */ jsx4(ExternalLink, {
|
|
2823
2823
|
size: 10,
|
|
2824
2824
|
strokeWidth: 1.8
|
|
2825
|
-
}
|
|
2826
|
-
}
|
|
2825
|
+
})
|
|
2826
|
+
});
|
|
2827
2827
|
}
|
|
2828
2828
|
function countUserFrames(_runtime, stack) {
|
|
2829
2829
|
if (stack == null)
|
|
@@ -2877,9 +2877,9 @@ function StackTraceSection({
|
|
|
2877
2877
|
[runtimeKey]: path
|
|
2878
2878
|
}));
|
|
2879
2879
|
};
|
|
2880
|
-
return /* @__PURE__ */
|
|
2880
|
+
return /* @__PURE__ */ jsxs3("div", {
|
|
2881
2881
|
children: [
|
|
2882
|
-
/* @__PURE__ */
|
|
2882
|
+
/* @__PURE__ */ jsxs3("div", {
|
|
2883
2883
|
style: {
|
|
2884
2884
|
display: "flex",
|
|
2885
2885
|
alignItems: "center",
|
|
@@ -2887,17 +2887,17 @@ function StackTraceSection({
|
|
|
2887
2887
|
marginBottom: "3px"
|
|
2888
2888
|
},
|
|
2889
2889
|
children: [
|
|
2890
|
-
/* @__PURE__ */
|
|
2890
|
+
/* @__PURE__ */ jsx4(SectionLabel, {
|
|
2891
2891
|
label,
|
|
2892
2892
|
color
|
|
2893
|
-
}
|
|
2894
|
-
hasInternalFrames && /* @__PURE__ */
|
|
2893
|
+
}),
|
|
2894
|
+
hasInternalFrames && /* @__PURE__ */ jsx4("span", {
|
|
2895
2895
|
style: { color: DEVTOOL_COLOR_TEXT_MUTED, fontSize: "9px" },
|
|
2896
2896
|
children: !showAll ? "user only" : `all (${allFrames.length})`
|
|
2897
|
-
}
|
|
2897
|
+
})
|
|
2898
2898
|
]
|
|
2899
|
-
}
|
|
2900
|
-
/* @__PURE__ */
|
|
2899
|
+
}),
|
|
2900
|
+
/* @__PURE__ */ jsxs3("div", {
|
|
2901
2901
|
onClick: () => setShowAll((s) => !s),
|
|
2902
2902
|
style: {
|
|
2903
2903
|
background: DEVTOOL_STACK_TRACE_BACKGROUND,
|
|
@@ -2907,7 +2907,7 @@ function StackTraceSection({
|
|
|
2907
2907
|
cursor: "pointer"
|
|
2908
2908
|
},
|
|
2909
2909
|
children: [
|
|
2910
|
-
displayFrames.length === 0 ? /* @__PURE__ */
|
|
2910
|
+
displayFrames.length === 0 ? /* @__PURE__ */ jsx4("div", {
|
|
2911
2911
|
style: {
|
|
2912
2912
|
padding: "6px 10px",
|
|
2913
2913
|
color: DEVTOOL_COLOR_TEXT_MUTED,
|
|
@@ -2915,14 +2915,14 @@ function StackTraceSection({
|
|
|
2915
2915
|
fontStyle: "italic"
|
|
2916
2916
|
},
|
|
2917
2917
|
children: "no user frames captured"
|
|
2918
|
-
}
|
|
2918
|
+
}) : displayFrames.map((frame, idx) => {
|
|
2919
2919
|
const displayFile = formatFrameFile(frame.file);
|
|
2920
2920
|
const slashIdx = displayFile.lastIndexOf("/");
|
|
2921
2921
|
const folderPrefix = slashIdx >= 0 ? displayFile.slice(0, slashIdx + 1) : "";
|
|
2922
2922
|
const bareFilename = slashIdx >= 0 ? displayFile.slice(slashIdx + 1) : displayFile;
|
|
2923
2923
|
const titleStr = frame.file != null ? frame.file : frame.raw;
|
|
2924
2924
|
const isUser = !frame.isInternal;
|
|
2925
|
-
return /* @__PURE__ */
|
|
2925
|
+
return /* @__PURE__ */ jsxs3("div", {
|
|
2926
2926
|
title: titleStr,
|
|
2927
2927
|
style: {
|
|
2928
2928
|
position: "relative",
|
|
@@ -2934,7 +2934,7 @@ function StackTraceSection({
|
|
|
2934
2934
|
borderBottom: `1px solid ${DEVTOOL_LIST_BASE_BACKGROUND}`
|
|
2935
2935
|
},
|
|
2936
2936
|
children: [
|
|
2937
|
-
/* @__PURE__ */
|
|
2937
|
+
/* @__PURE__ */ jsx4("span", {
|
|
2938
2938
|
style: {
|
|
2939
2939
|
color: isUser ? DEVTOOL_STACK_FRAME_USER_NUMBER : DEVTOOL_STACK_FRAME_INTERNAL_NUMBER,
|
|
2940
2940
|
fontSize: "10px",
|
|
@@ -2944,8 +2944,8 @@ function StackTraceSection({
|
|
|
2944
2944
|
fontVariantNumeric: "tabular-nums"
|
|
2945
2945
|
},
|
|
2946
2946
|
children: idx + 1
|
|
2947
|
-
}
|
|
2948
|
-
/* @__PURE__ */
|
|
2947
|
+
}),
|
|
2948
|
+
/* @__PURE__ */ jsxs3("div", {
|
|
2949
2949
|
style: {
|
|
2950
2950
|
display: "flex",
|
|
2951
2951
|
flexDirection: "column",
|
|
@@ -2953,9 +2953,9 @@ function StackTraceSection({
|
|
|
2953
2953
|
lineHeight: 1.2
|
|
2954
2954
|
},
|
|
2955
2955
|
children: [
|
|
2956
|
-
/* @__PURE__ */
|
|
2956
|
+
/* @__PURE__ */ jsx4("div", {
|
|
2957
2957
|
style: { display: "flex", alignItems: "center" },
|
|
2958
|
-
children: /* @__PURE__ */
|
|
2958
|
+
children: /* @__PURE__ */ jsx4("span", {
|
|
2959
2959
|
style: {
|
|
2960
2960
|
color: isUser ? DEVTOOL_STACK_FRAME_USER_FUNCTION : DEVTOOL_STACK_FRAME_INTERNAL_FUNCTION,
|
|
2961
2961
|
fontSize: "12px",
|
|
@@ -2965,12 +2965,12 @@ function StackTraceSection({
|
|
|
2965
2965
|
whiteSpace: "nowrap"
|
|
2966
2966
|
},
|
|
2967
2967
|
children: frame.fn ?? "(anonymous)"
|
|
2968
|
-
}
|
|
2969
|
-
}
|
|
2970
|
-
/* @__PURE__ */
|
|
2968
|
+
})
|
|
2969
|
+
}),
|
|
2970
|
+
/* @__PURE__ */ jsxs3("div", {
|
|
2971
2971
|
style: { display: "flex", alignItems: "baseline", overflow: "hidden" },
|
|
2972
2972
|
children: [
|
|
2973
|
-
folderPrefix !== "" && /* @__PURE__ */
|
|
2973
|
+
folderPrefix !== "" && /* @__PURE__ */ jsx4("span", {
|
|
2974
2974
|
style: {
|
|
2975
2975
|
color: isUser ? DEVTOOL_STACK_FRAME_USER_FOLDER : DEVTOOL_STACK_FRAME_INTERNAL_FOLDER,
|
|
2976
2976
|
fontSize: "10px",
|
|
@@ -2981,8 +2981,8 @@ function StackTraceSection({
|
|
|
2981
2981
|
minWidth: 0
|
|
2982
2982
|
},
|
|
2983
2983
|
children: folderPrefix
|
|
2984
|
-
}
|
|
2985
|
-
/* @__PURE__ */
|
|
2984
|
+
}),
|
|
2985
|
+
/* @__PURE__ */ jsx4("span", {
|
|
2986
2986
|
style: {
|
|
2987
2987
|
color: isUser ? DEVTOOL_STACK_FRAME_USER_FILE : DEVTOOL_STACK_FRAME_INTERNAL_FILE,
|
|
2988
2988
|
fontSize: "10px",
|
|
@@ -2990,8 +2990,8 @@ function StackTraceSection({
|
|
|
2990
2990
|
flexShrink: 0
|
|
2991
2991
|
},
|
|
2992
2992
|
children: bareFilename
|
|
2993
|
-
}
|
|
2994
|
-
frame.line != null && /* @__PURE__ */
|
|
2993
|
+
}),
|
|
2994
|
+
frame.line != null && /* @__PURE__ */ jsxs3("span", {
|
|
2995
2995
|
style: {
|
|
2996
2996
|
color: isUser ? DEVTOOL_STACK_FRAME_USER_LINE : DEVTOOL_STACK_FRAME_INTERNAL_LINE,
|
|
2997
2997
|
fontSize: "10px",
|
|
@@ -3003,20 +3003,20 @@ function StackTraceSection({
|
|
|
3003
3003
|
":",
|
|
3004
3004
|
frame.line
|
|
3005
3005
|
]
|
|
3006
|
-
}
|
|
3006
|
+
})
|
|
3007
3007
|
]
|
|
3008
|
-
}
|
|
3008
|
+
})
|
|
3009
3009
|
]
|
|
3010
|
-
}
|
|
3011
|
-
/* @__PURE__ */
|
|
3010
|
+
}),
|
|
3011
|
+
/* @__PURE__ */ jsx4(OpenInVscodeButton, {
|
|
3012
3012
|
frame,
|
|
3013
3013
|
projectRoot,
|
|
3014
3014
|
onNeedSetup: () => setShowSetupModal(true)
|
|
3015
|
-
}
|
|
3015
|
+
})
|
|
3016
3016
|
]
|
|
3017
|
-
}, frame.raw
|
|
3017
|
+
}, frame.raw);
|
|
3018
3018
|
}),
|
|
3019
|
-
Array.from({ length: phantomFrameCount }, (_, i) => i).map((i) => /* @__PURE__ */
|
|
3019
|
+
Array.from({ length: phantomFrameCount }, (_, i) => i).map((i) => /* @__PURE__ */ jsxs3("div", {
|
|
3020
3020
|
"aria-hidden": "true",
|
|
3021
3021
|
style: {
|
|
3022
3022
|
visibility: "hidden",
|
|
@@ -3027,39 +3027,39 @@ function StackTraceSection({
|
|
|
3027
3027
|
borderBottom: `1px solid ${DEVTOOL_LIST_BASE_BACKGROUND}`
|
|
3028
3028
|
},
|
|
3029
3029
|
children: [
|
|
3030
|
-
/* @__PURE__ */
|
|
3030
|
+
/* @__PURE__ */ jsx4("span", {
|
|
3031
3031
|
style: { fontSize: "10px", minWidth: "10px", flexShrink: 0 },
|
|
3032
3032
|
children: "0"
|
|
3033
|
-
}
|
|
3034
|
-
/* @__PURE__ */
|
|
3033
|
+
}),
|
|
3034
|
+
/* @__PURE__ */ jsxs3("div", {
|
|
3035
3035
|
style: { display: "flex", flexDirection: "column", gap: "0.15em", lineHeight: 1.2 },
|
|
3036
3036
|
children: [
|
|
3037
|
-
/* @__PURE__ */
|
|
3037
|
+
/* @__PURE__ */ jsx4("div", {
|
|
3038
3038
|
style: { fontSize: "12px" },
|
|
3039
3039
|
children: "placeholder"
|
|
3040
|
-
}
|
|
3041
|
-
/* @__PURE__ */
|
|
3040
|
+
}),
|
|
3041
|
+
/* @__PURE__ */ jsx4("div", {
|
|
3042
3042
|
style: { fontSize: "10px" },
|
|
3043
3043
|
children: "placeholder/file.ts:1"
|
|
3044
|
-
}
|
|
3044
|
+
})
|
|
3045
3045
|
]
|
|
3046
|
-
}
|
|
3046
|
+
})
|
|
3047
3047
|
]
|
|
3048
|
-
}, `phantom-${i}
|
|
3048
|
+
}, `phantom-${i}`))
|
|
3049
3049
|
]
|
|
3050
|
-
}
|
|
3051
|
-
showSetupModal && /* @__PURE__ */
|
|
3050
|
+
}),
|
|
3051
|
+
showSetupModal && /* @__PURE__ */ jsx4(ProjectRootSetupModal, {
|
|
3052
3052
|
envId: runtime.envId,
|
|
3053
3053
|
currentValue: projectRoot ?? "",
|
|
3054
3054
|
onSave: handleSaveProjectRoot,
|
|
3055
3055
|
onCancel: () => setShowSetupModal(false)
|
|
3056
|
-
}
|
|
3056
|
+
})
|
|
3057
3057
|
]
|
|
3058
|
-
}
|
|
3058
|
+
});
|
|
3059
3059
|
}
|
|
3060
3060
|
|
|
3061
3061
|
// src/devtools/browser/components/ActionErrorDisplay.tsx
|
|
3062
|
-
import {
|
|
3062
|
+
import { jsx as jsx5, jsxs as jsxs4, Fragment } from "react/jsx-runtime";
|
|
3063
3063
|
var MONO3 = "ui-monospace, 'Cascadia Code', 'Source Code Pro', monospace";
|
|
3064
3064
|
var SANS2 = "ui-sans-serif, system-ui, -apple-system, sans-serif";
|
|
3065
3065
|
function FullErrorContent({
|
|
@@ -3069,29 +3069,29 @@ function FullErrorContent({
|
|
|
3069
3069
|
color,
|
|
3070
3070
|
runtime
|
|
3071
3071
|
}) {
|
|
3072
|
-
return /* @__PURE__ */
|
|
3072
|
+
return /* @__PURE__ */ jsxs4(Fragment, {
|
|
3073
3073
|
children: [
|
|
3074
|
-
isNiceErrorJson(error) ? /* @__PURE__ */
|
|
3074
|
+
isNiceErrorJson(error) ? /* @__PURE__ */ jsx5(NiceErrorDisplay, {
|
|
3075
3075
|
error,
|
|
3076
3076
|
label,
|
|
3077
3077
|
color
|
|
3078
|
-
}
|
|
3078
|
+
}) : /* @__PURE__ */ jsx5(DetailSection, {
|
|
3079
3079
|
label,
|
|
3080
3080
|
value: error,
|
|
3081
3081
|
color
|
|
3082
|
-
}
|
|
3083
|
-
/* @__PURE__ */
|
|
3082
|
+
}),
|
|
3083
|
+
/* @__PURE__ */ jsx5(StackTraceSection, {
|
|
3084
3084
|
runtime,
|
|
3085
3085
|
label: "Error Stack",
|
|
3086
3086
|
stack: errorStack,
|
|
3087
3087
|
color
|
|
3088
|
-
}
|
|
3088
|
+
})
|
|
3089
3089
|
]
|
|
3090
|
-
}
|
|
3090
|
+
});
|
|
3091
3091
|
}
|
|
3092
3092
|
function CompactErrorContent({ value, color }) {
|
|
3093
3093
|
if (isNiceErrorJson(value)) {
|
|
3094
|
-
return /* @__PURE__ */
|
|
3094
|
+
return /* @__PURE__ */ jsxs4("div", {
|
|
3095
3095
|
style: {
|
|
3096
3096
|
display: "flex",
|
|
3097
3097
|
flexDirection: "column",
|
|
@@ -3100,7 +3100,7 @@ function CompactErrorContent({ value, color }) {
|
|
|
3100
3100
|
minWidth: 0
|
|
3101
3101
|
},
|
|
3102
3102
|
children: [
|
|
3103
|
-
/* @__PURE__ */
|
|
3103
|
+
/* @__PURE__ */ jsx5("div", {
|
|
3104
3104
|
style: {
|
|
3105
3105
|
color,
|
|
3106
3106
|
fontFamily: SANS2,
|
|
@@ -3112,8 +3112,8 @@ function CompactErrorContent({ value, color }) {
|
|
|
3112
3112
|
textAlign: "left"
|
|
3113
3113
|
},
|
|
3114
3114
|
children: value.message
|
|
3115
|
-
}
|
|
3116
|
-
/* @__PURE__ */
|
|
3115
|
+
}),
|
|
3116
|
+
/* @__PURE__ */ jsxs4("div", {
|
|
3117
3117
|
style: {
|
|
3118
3118
|
display: "flex",
|
|
3119
3119
|
flexWrap: "wrap",
|
|
@@ -3122,7 +3122,7 @@ function CompactErrorContent({ value, color }) {
|
|
|
3122
3122
|
minWidth: 0
|
|
3123
3123
|
},
|
|
3124
3124
|
children: [
|
|
3125
|
-
value.ids.map((id) => /* @__PURE__ */
|
|
3125
|
+
value.ids.map((id) => /* @__PURE__ */ jsx5("span", {
|
|
3126
3126
|
style: {
|
|
3127
3127
|
color,
|
|
3128
3128
|
fontFamily: MONO3,
|
|
@@ -3132,8 +3132,8 @@ function CompactErrorContent({ value, color }) {
|
|
|
3132
3132
|
overflowWrap: "anywhere"
|
|
3133
3133
|
},
|
|
3134
3134
|
children: id
|
|
3135
|
-
}, id
|
|
3136
|
-
/* @__PURE__ */
|
|
3135
|
+
}, id)),
|
|
3136
|
+
/* @__PURE__ */ jsx5("span", {
|
|
3137
3137
|
style: {
|
|
3138
3138
|
color: DEVTOOL_COLOR_TEXT_MUTED,
|
|
3139
3139
|
fontFamily: MONO3,
|
|
@@ -3142,16 +3142,16 @@ function CompactErrorContent({ value, color }) {
|
|
|
3142
3142
|
overflowWrap: "anywhere"
|
|
3143
3143
|
},
|
|
3144
3144
|
children: value.def.domain
|
|
3145
|
-
}
|
|
3145
|
+
})
|
|
3146
3146
|
]
|
|
3147
|
-
}
|
|
3147
|
+
})
|
|
3148
3148
|
]
|
|
3149
|
-
}
|
|
3149
|
+
});
|
|
3150
3150
|
}
|
|
3151
3151
|
const text = typeof value === "string" ? value : value != null ? String(value) : null;
|
|
3152
3152
|
if (text == null)
|
|
3153
3153
|
return null;
|
|
3154
|
-
return /* @__PURE__ */
|
|
3154
|
+
return /* @__PURE__ */ jsx5("div", {
|
|
3155
3155
|
style: {
|
|
3156
3156
|
color,
|
|
3157
3157
|
fontFamily: SANS2,
|
|
@@ -3161,7 +3161,7 @@ function CompactErrorContent({ value, color }) {
|
|
|
3161
3161
|
overflowWrap: "anywhere"
|
|
3162
3162
|
},
|
|
3163
3163
|
children: text
|
|
3164
|
-
}
|
|
3164
|
+
});
|
|
3165
3165
|
}
|
|
3166
3166
|
function ActionErrorDisplay({
|
|
3167
3167
|
entry,
|
|
@@ -3171,59 +3171,59 @@ function ActionErrorDisplay({
|
|
|
3171
3171
|
if (status === "action-error") {
|
|
3172
3172
|
const color = DEVTOOL_COLOR_SEMANTIC_ERROR;
|
|
3173
3173
|
if (compact)
|
|
3174
|
-
return /* @__PURE__ */
|
|
3174
|
+
return /* @__PURE__ */ jsx5(CompactErrorContent, {
|
|
3175
3175
|
value: error,
|
|
3176
3176
|
color
|
|
3177
|
-
}
|
|
3178
|
-
return /* @__PURE__ */
|
|
3177
|
+
});
|
|
3178
|
+
return /* @__PURE__ */ jsx5(FullErrorContent, {
|
|
3179
3179
|
runtime: entry.meta.originClient,
|
|
3180
3180
|
label: "Action Error",
|
|
3181
3181
|
error,
|
|
3182
3182
|
errorStack,
|
|
3183
3183
|
color
|
|
3184
|
-
}
|
|
3184
|
+
});
|
|
3185
3185
|
}
|
|
3186
3186
|
if (status === "failed") {
|
|
3187
3187
|
const color = DEVTOOL_COLOR_SEMANTIC_ERROR;
|
|
3188
3188
|
if (compact)
|
|
3189
|
-
return /* @__PURE__ */
|
|
3189
|
+
return /* @__PURE__ */ jsx5(CompactErrorContent, {
|
|
3190
3190
|
value: error,
|
|
3191
3191
|
color
|
|
3192
|
-
}
|
|
3193
|
-
return /* @__PURE__ */
|
|
3192
|
+
});
|
|
3193
|
+
return /* @__PURE__ */ jsx5(FullErrorContent, {
|
|
3194
3194
|
runtime: entry.meta.originClient,
|
|
3195
3195
|
label: "Error",
|
|
3196
3196
|
error,
|
|
3197
3197
|
errorStack,
|
|
3198
3198
|
color
|
|
3199
|
-
}
|
|
3199
|
+
});
|
|
3200
3200
|
}
|
|
3201
3201
|
if (status === "aborted") {
|
|
3202
3202
|
const color = DEVTOOL_COLOR_SEMANTIC_METADATA;
|
|
3203
3203
|
if (compact)
|
|
3204
|
-
return /* @__PURE__ */
|
|
3204
|
+
return /* @__PURE__ */ jsx5(CompactErrorContent, {
|
|
3205
3205
|
value: abortReason,
|
|
3206
3206
|
color
|
|
3207
|
-
}
|
|
3208
|
-
return /* @__PURE__ */
|
|
3207
|
+
});
|
|
3208
|
+
return /* @__PURE__ */ jsxs4(Fragment, {
|
|
3209
3209
|
children: [
|
|
3210
|
-
abortReason != null && (isNiceErrorJson(abortReason) ? /* @__PURE__ */
|
|
3210
|
+
abortReason != null && (isNiceErrorJson(abortReason) ? /* @__PURE__ */ jsx5(NiceErrorDisplay, {
|
|
3211
3211
|
error: abortReason,
|
|
3212
3212
|
label: "Abort Reason",
|
|
3213
3213
|
color
|
|
3214
|
-
}
|
|
3214
|
+
}) : /* @__PURE__ */ jsx5(DetailSection, {
|
|
3215
3215
|
label: "Abort Reason",
|
|
3216
3216
|
value: abortReason,
|
|
3217
3217
|
color
|
|
3218
|
-
}
|
|
3219
|
-
/* @__PURE__ */
|
|
3218
|
+
})),
|
|
3219
|
+
/* @__PURE__ */ jsx5(StackTraceSection, {
|
|
3220
3220
|
runtime: entry.meta.originClient,
|
|
3221
3221
|
label: "Abort Stack",
|
|
3222
3222
|
stack: errorStack,
|
|
3223
3223
|
color
|
|
3224
|
-
}
|
|
3224
|
+
})
|
|
3225
3225
|
]
|
|
3226
|
-
}
|
|
3226
|
+
});
|
|
3227
3227
|
}
|
|
3228
3228
|
return null;
|
|
3229
3229
|
}
|
|
@@ -3236,7 +3236,7 @@ import { useState as useState4 } from "react";
|
|
|
3236
3236
|
|
|
3237
3237
|
// src/devtools/browser/components/Tooltip.tsx
|
|
3238
3238
|
import { useState as useState3 } from "react";
|
|
3239
|
-
import {
|
|
3239
|
+
import { jsx as jsx6, jsxs as jsxs5, Fragment as Fragment2 } from "react/jsx-runtime";
|
|
3240
3240
|
function Tooltip({
|
|
3241
3241
|
anchor,
|
|
3242
3242
|
config,
|
|
@@ -3269,7 +3269,7 @@ function Tooltip({
|
|
|
3269
3269
|
if (showAbove)
|
|
3270
3270
|
transform = "translateY(-100%)";
|
|
3271
3271
|
}
|
|
3272
|
-
return /* @__PURE__ */
|
|
3272
|
+
return /* @__PURE__ */ jsxs5("div", {
|
|
3273
3273
|
style: {
|
|
3274
3274
|
position: "fixed",
|
|
3275
3275
|
left,
|
|
@@ -3291,7 +3291,7 @@ function Tooltip({
|
|
|
3291
3291
|
overflowWrap: "anywhere"
|
|
3292
3292
|
},
|
|
3293
3293
|
children: [
|
|
3294
|
-
resolvedTitle != null && /* @__PURE__ */
|
|
3294
|
+
resolvedTitle != null && /* @__PURE__ */ jsx6("div", {
|
|
3295
3295
|
style: {
|
|
3296
3296
|
background: DEVTOOL_TOOLTIP_TITLE_BACKGROUND,
|
|
3297
3297
|
padding: "6px 8px",
|
|
@@ -3305,15 +3305,15 @@ function Tooltip({
|
|
|
3305
3305
|
borderBottom: `1px solid ${DEVTOOL_TOOLTIP_TITLE_BOTTOM_BORDER}`
|
|
3306
3306
|
},
|
|
3307
3307
|
children: resolvedTitle
|
|
3308
|
-
}
|
|
3309
|
-
/* @__PURE__ */
|
|
3308
|
+
}),
|
|
3309
|
+
/* @__PURE__ */ jsx6("div", {
|
|
3310
3310
|
style: {
|
|
3311
3311
|
padding: "6px 8px"
|
|
3312
3312
|
},
|
|
3313
3313
|
children: resolvedContent
|
|
3314
|
-
}
|
|
3314
|
+
})
|
|
3315
3315
|
]
|
|
3316
|
-
}
|
|
3316
|
+
});
|
|
3317
3317
|
}
|
|
3318
3318
|
function HoverTooltip({
|
|
3319
3319
|
config,
|
|
@@ -3322,24 +3322,24 @@ function HoverTooltip({
|
|
|
3322
3322
|
}) {
|
|
3323
3323
|
const [anchor, setAnchor] = useState3(null);
|
|
3324
3324
|
const enabled = config != null;
|
|
3325
|
-
return /* @__PURE__ */
|
|
3325
|
+
return /* @__PURE__ */ jsxs5(Fragment2, {
|
|
3326
3326
|
children: [
|
|
3327
|
-
/* @__PURE__ */
|
|
3327
|
+
/* @__PURE__ */ jsx6("span", {
|
|
3328
3328
|
onMouseEnter: enabled ? (e) => setAnchor(e.currentTarget.getBoundingClientRect()) : undefined,
|
|
3329
3329
|
onMouseLeave: enabled ? () => setAnchor(null) : undefined,
|
|
3330
3330
|
style: { ...style, cursor: enabled ? "default" : style?.cursor },
|
|
3331
3331
|
children
|
|
3332
|
-
}
|
|
3333
|
-
enabled && anchor != null && config != null && /* @__PURE__ */
|
|
3332
|
+
}),
|
|
3333
|
+
enabled && anchor != null && config != null && /* @__PURE__ */ jsx6(Tooltip, {
|
|
3334
3334
|
anchor,
|
|
3335
3335
|
config
|
|
3336
|
-
}
|
|
3336
|
+
})
|
|
3337
3337
|
]
|
|
3338
|
-
}
|
|
3338
|
+
});
|
|
3339
3339
|
}
|
|
3340
3340
|
|
|
3341
3341
|
// src/devtools/browser/components/Chip.tsx
|
|
3342
|
-
import {
|
|
3342
|
+
import { jsx as jsx7, jsxs as jsxs6, Fragment as Fragment3 } from "react/jsx-runtime";
|
|
3343
3343
|
var CHIP_SIZE_STYLES = {
|
|
3344
3344
|
["sm" /* sm */]: { fontSize: "0.8em", padding: "1px 3px" },
|
|
3345
3345
|
["md" /* md */]: { fontSize: "0.9em", padding: "1px 4px" },
|
|
@@ -3359,9 +3359,9 @@ function Chip({
|
|
|
3359
3359
|
const colorEntry = SEMANTIC_COLORS[color];
|
|
3360
3360
|
const resolvedColor = subtle ? colorEntry.subtle?.color ?? colorEntry.color : colorEntry.color;
|
|
3361
3361
|
const resolvedBorderColor = subtle ? colorEntry.subtle?.borderColor ?? "transparent" : colorEntry.borderColor;
|
|
3362
|
-
return /* @__PURE__ */
|
|
3362
|
+
return /* @__PURE__ */ jsxs6(Fragment3, {
|
|
3363
3363
|
children: [
|
|
3364
|
-
/* @__PURE__ */
|
|
3364
|
+
/* @__PURE__ */ jsx7("span", {
|
|
3365
3365
|
onMouseEnter: hasTooltip ? (e) => setAnchor(e.currentTarget.getBoundingClientRect()) : undefined,
|
|
3366
3366
|
onMouseLeave: hasTooltip ? () => setAnchor(null) : undefined,
|
|
3367
3367
|
style: {
|
|
@@ -3378,18 +3378,18 @@ function Chip({
|
|
|
3378
3378
|
cursor: hasTooltip ? "default" : undefined
|
|
3379
3379
|
},
|
|
3380
3380
|
children
|
|
3381
|
-
}
|
|
3382
|
-
anchor != null && hasTooltip && /* @__PURE__ */
|
|
3381
|
+
}),
|
|
3382
|
+
anchor != null && hasTooltip && /* @__PURE__ */ jsx7(Tooltip, {
|
|
3383
3383
|
anchor,
|
|
3384
3384
|
config: tooltip
|
|
3385
|
-
}
|
|
3385
|
+
})
|
|
3386
3386
|
]
|
|
3387
|
-
}
|
|
3387
|
+
});
|
|
3388
3388
|
}
|
|
3389
3389
|
|
|
3390
3390
|
// src/devtools/browser/components/Icon.tsx
|
|
3391
3391
|
import { useState as useState5 } from "react";
|
|
3392
|
-
import {
|
|
3392
|
+
import { jsx as jsx8, jsxs as jsxs7, Fragment as Fragment4 } from "react/jsx-runtime";
|
|
3393
3393
|
var BASE_ICON_SIDE_LENGTH_EM = 1.6;
|
|
3394
3394
|
var ICON_GAP_EM = 0.3;
|
|
3395
3395
|
function Icon({
|
|
@@ -3408,9 +3408,9 @@ function Icon({
|
|
|
3408
3408
|
const finalIcons = Array.isArray(IconComponent) ? IconComponent : [IconComponent];
|
|
3409
3409
|
const fullIconWidthEm = (finalIcons.length - 1) * ICON_GAP_EM + finalIcons.length * BASE_ICON_SIDE_LENGTH_EM * getSizeValue(size);
|
|
3410
3410
|
const iconSideLengthEm = `${BASE_ICON_SIDE_LENGTH_EM * getSizeValue(size)}em`;
|
|
3411
|
-
return /* @__PURE__ */
|
|
3411
|
+
return /* @__PURE__ */ jsxs7(Fragment4, {
|
|
3412
3412
|
children: [
|
|
3413
|
-
/* @__PURE__ */
|
|
3413
|
+
/* @__PURE__ */ jsx8("div", {
|
|
3414
3414
|
onMouseEnter: hasTooltip ? (e) => setAnchor(e.currentTarget.getBoundingClientRect()) : undefined,
|
|
3415
3415
|
onMouseLeave: hasTooltip ? () => setAnchor(null) : undefined,
|
|
3416
3416
|
style: {
|
|
@@ -3427,29 +3427,29 @@ function Icon({
|
|
|
3427
3427
|
cursor: hasTooltip ? "default" : undefined,
|
|
3428
3428
|
...style
|
|
3429
3429
|
},
|
|
3430
|
-
children: /* @__PURE__ */
|
|
3430
|
+
children: /* @__PURE__ */ jsx8("div", {
|
|
3431
3431
|
style: { display: "flex", alignItems: "center", gap: `${ICON_GAP_EM}em` },
|
|
3432
|
-
children: finalIcons.map((Comp, i) => /* @__PURE__ */
|
|
3432
|
+
children: finalIcons.map((Comp, i) => /* @__PURE__ */ jsx8(Comp, {
|
|
3433
3433
|
size: iconSideLengthEm,
|
|
3434
3434
|
strokeWidth: 2.6
|
|
3435
|
-
}, `${Comp.name}-${i}
|
|
3436
|
-
}
|
|
3437
|
-
}
|
|
3438
|
-
anchor != null && hasTooltip && /* @__PURE__ */
|
|
3435
|
+
}, `${Comp.name}-${i}`))
|
|
3436
|
+
})
|
|
3437
|
+
}),
|
|
3438
|
+
anchor != null && hasTooltip && /* @__PURE__ */ jsx8(Tooltip, {
|
|
3439
3439
|
anchor,
|
|
3440
3440
|
config: tooltip
|
|
3441
|
-
}
|
|
3441
|
+
})
|
|
3442
3442
|
]
|
|
3443
|
-
}
|
|
3443
|
+
});
|
|
3444
3444
|
}
|
|
3445
3445
|
|
|
3446
3446
|
// src/devtools/browser/components/DomainChip.tsx
|
|
3447
|
-
import {
|
|
3447
|
+
import { jsx as jsx9, jsxs as jsxs8, Fragment as Fragment5 } from "react/jsx-runtime";
|
|
3448
3448
|
function DomainHierarchyContent({ allDomains }) {
|
|
3449
|
-
return /* @__PURE__ */
|
|
3449
|
+
return /* @__PURE__ */ jsx9(Fragment5, {
|
|
3450
3450
|
children: allDomains.map((d, i) => {
|
|
3451
3451
|
const isCurrent = i === allDomains.length - 1;
|
|
3452
|
-
return /* @__PURE__ */
|
|
3452
|
+
return /* @__PURE__ */ jsxs8("div", {
|
|
3453
3453
|
style: {
|
|
3454
3454
|
display: "flex",
|
|
3455
3455
|
alignItems: "center",
|
|
@@ -3458,7 +3458,7 @@ function DomainHierarchyContent({ allDomains }) {
|
|
|
3458
3458
|
paddingTop: i > 0 ? "0.1rem" : undefined
|
|
3459
3459
|
},
|
|
3460
3460
|
children: [
|
|
3461
|
-
/* @__PURE__ */
|
|
3461
|
+
/* @__PURE__ */ jsx9("span", {
|
|
3462
3462
|
style: {
|
|
3463
3463
|
fontSize: "0.8rem",
|
|
3464
3464
|
height: "0.6em",
|
|
@@ -3470,19 +3470,19 @@ function DomainHierarchyContent({ allDomains }) {
|
|
|
3470
3470
|
justifyContent: "center"
|
|
3471
3471
|
},
|
|
3472
3472
|
children: "⬢"
|
|
3473
|
-
}
|
|
3474
|
-
/* @__PURE__ */
|
|
3473
|
+
}),
|
|
3474
|
+
/* @__PURE__ */ jsx9("span", {
|
|
3475
3475
|
style: {
|
|
3476
3476
|
color: isCurrent ? DEVTOOL_COLOR_SEMANTIC_SYSTEM : "#4b5563",
|
|
3477
3477
|
fontSize: "0.7rem",
|
|
3478
3478
|
fontWeight: isCurrent ? 500 : undefined
|
|
3479
3479
|
},
|
|
3480
3480
|
children: d
|
|
3481
|
-
}
|
|
3481
|
+
})
|
|
3482
3482
|
]
|
|
3483
|
-
}, d
|
|
3483
|
+
}, d);
|
|
3484
3484
|
})
|
|
3485
|
-
}
|
|
3485
|
+
});
|
|
3486
3486
|
}
|
|
3487
3487
|
function DomainChip({
|
|
3488
3488
|
compact = false,
|
|
@@ -3492,34 +3492,34 @@ function DomainChip({
|
|
|
3492
3492
|
size
|
|
3493
3493
|
}) {
|
|
3494
3494
|
if (compact) {
|
|
3495
|
-
return /* @__PURE__ */
|
|
3495
|
+
return /* @__PURE__ */ jsx9(Icon, {
|
|
3496
3496
|
icon: Component,
|
|
3497
3497
|
color: "domain" /* domain */,
|
|
3498
3498
|
tooltip: {
|
|
3499
|
-
content: /* @__PURE__ */
|
|
3499
|
+
content: /* @__PURE__ */ jsx9(DomainHierarchyContent, {
|
|
3500
3500
|
allDomains
|
|
3501
|
-
}
|
|
3501
|
+
}),
|
|
3502
3502
|
title: "Action Domain",
|
|
3503
3503
|
align: "edge"
|
|
3504
3504
|
}
|
|
3505
|
-
}
|
|
3505
|
+
});
|
|
3506
3506
|
}
|
|
3507
|
-
return /* @__PURE__ */
|
|
3507
|
+
return /* @__PURE__ */ jsx9(Chip, {
|
|
3508
3508
|
color: "domain" /* domain */,
|
|
3509
3509
|
subtle,
|
|
3510
3510
|
size,
|
|
3511
3511
|
rounded: true,
|
|
3512
3512
|
tooltip: {
|
|
3513
|
-
content: /* @__PURE__ */
|
|
3513
|
+
content: /* @__PURE__ */ jsx9(DomainHierarchyContent, {
|
|
3514
3514
|
allDomains
|
|
3515
|
-
}
|
|
3515
|
+
}),
|
|
3516
3516
|
title: "Action Domain",
|
|
3517
3517
|
align: "edge"
|
|
3518
3518
|
},
|
|
3519
|
-
children: /* @__PURE__ */
|
|
3519
|
+
children: /* @__PURE__ */ jsxs8("div", {
|
|
3520
3520
|
style: { display: "flex", alignItems: "center", gap: "0.4em" },
|
|
3521
3521
|
children: [
|
|
3522
|
-
/* @__PURE__ */
|
|
3522
|
+
/* @__PURE__ */ jsx9("span", {
|
|
3523
3523
|
style: {
|
|
3524
3524
|
height: "1.2em",
|
|
3525
3525
|
width: "1.2em",
|
|
@@ -3527,21 +3527,21 @@ function DomainChip({
|
|
|
3527
3527
|
alignItems: "center",
|
|
3528
3528
|
justifyContent: "center"
|
|
3529
3529
|
},
|
|
3530
|
-
children: /* @__PURE__ */
|
|
3530
|
+
children: /* @__PURE__ */ jsx9(Component, {
|
|
3531
3531
|
height: "1.2em",
|
|
3532
3532
|
width: "1.2em"
|
|
3533
|
-
}
|
|
3534
|
-
}
|
|
3535
|
-
/* @__PURE__ */
|
|
3533
|
+
})
|
|
3534
|
+
}),
|
|
3535
|
+
/* @__PURE__ */ jsx9("span", {
|
|
3536
3536
|
children: domain
|
|
3537
|
-
}
|
|
3537
|
+
})
|
|
3538
3538
|
]
|
|
3539
|
-
}
|
|
3540
|
-
}
|
|
3539
|
+
})
|
|
3540
|
+
});
|
|
3541
3541
|
}
|
|
3542
3542
|
|
|
3543
3543
|
// src/devtools/browser/components/HandlerChips.tsx
|
|
3544
|
-
import {
|
|
3544
|
+
import { jsx as jsx10, jsxs as jsxs9, Fragment as Fragment6 } from "react/jsx-runtime";
|
|
3545
3545
|
function getExternalLabel(hop) {
|
|
3546
3546
|
if (hop.handlerType !== "external")
|
|
3547
3547
|
return null;
|
|
@@ -3556,21 +3556,21 @@ function getTransportTooltipForHops(hops) {
|
|
|
3556
3556
|
return;
|
|
3557
3557
|
return {
|
|
3558
3558
|
title: "Transport",
|
|
3559
|
-
content: /* @__PURE__ */
|
|
3559
|
+
content: /* @__PURE__ */ jsx10("div", {
|
|
3560
3560
|
style: { display: "flex", flexDirection: "column", gap: "6px", fontSize: "11px" },
|
|
3561
|
-
children: lines.map((line) => /* @__PURE__ */
|
|
3561
|
+
children: lines.map((line) => /* @__PURE__ */ jsxs9("div", {
|
|
3562
3562
|
style: { display: "flex", flexDirection: "column", gap: "2px" },
|
|
3563
3563
|
children: [
|
|
3564
|
-
line.summary != null && /* @__PURE__ */
|
|
3564
|
+
line.summary != null && /* @__PURE__ */ jsx10("span", {
|
|
3565
3565
|
children: line.summary
|
|
3566
|
-
}
|
|
3567
|
-
line.url != null && line.url !== line.summary && /* @__PURE__ */
|
|
3566
|
+
}),
|
|
3567
|
+
line.url != null && line.url !== line.summary && /* @__PURE__ */ jsx10("span", {
|
|
3568
3568
|
style: { color: DEVTOOL_COLOR_TEXT_MUTED, wordBreak: "break-all" },
|
|
3569
3569
|
children: line.url
|
|
3570
|
-
}
|
|
3570
|
+
})
|
|
3571
3571
|
]
|
|
3572
|
-
}, `${line.summary ?? ""}:${line.url ?? ""}
|
|
3573
|
-
}
|
|
3572
|
+
}, `${line.summary ?? ""}:${line.url ?? ""}`))
|
|
3573
|
+
})
|
|
3574
3574
|
};
|
|
3575
3575
|
}
|
|
3576
3576
|
function HandlerChips({ entry, size, subtle }) {
|
|
@@ -3578,52 +3578,52 @@ function HandlerChips({ entry, size, subtle }) {
|
|
|
3578
3578
|
const localEnvId = firstHop != null ? firstHop.runtime.envId : null;
|
|
3579
3579
|
const externalLabel = firstHop != null ? getExternalLabel(firstHop) : null;
|
|
3580
3580
|
const firstHopIsLocal = firstHop != null && firstHop.handlerType === "local";
|
|
3581
|
-
return /* @__PURE__ */
|
|
3581
|
+
return /* @__PURE__ */ jsxs9(Fragment6, {
|
|
3582
3582
|
children: [
|
|
3583
|
-
localEnvId != null && (firstHopIsLocal || externalLabel == null) && /* @__PURE__ */
|
|
3583
|
+
localEnvId != null && (firstHopIsLocal || externalLabel == null) && /* @__PURE__ */ jsx10(Chip, {
|
|
3584
3584
|
color: "handler_local" /* handler_local */,
|
|
3585
3585
|
size,
|
|
3586
3586
|
subtle,
|
|
3587
3587
|
children: localEnvId
|
|
3588
|
-
}
|
|
3589
|
-
externalLabel != null && /* @__PURE__ */
|
|
3588
|
+
}),
|
|
3589
|
+
externalLabel != null && /* @__PURE__ */ jsx10(Chip, {
|
|
3590
3590
|
color: "handler_external" /* handler_external */,
|
|
3591
3591
|
size,
|
|
3592
3592
|
subtle,
|
|
3593
3593
|
tooltip: firstHop != null ? getTransportTooltip(firstHop) : undefined,
|
|
3594
3594
|
children: externalLabel
|
|
3595
|
-
}
|
|
3595
|
+
})
|
|
3596
3596
|
]
|
|
3597
|
-
}
|
|
3597
|
+
});
|
|
3598
3598
|
}
|
|
3599
3599
|
|
|
3600
3600
|
// src/devtools/browser/components/RunningTimer.tsx
|
|
3601
3601
|
import { useEffect as useEffect2, useState as useState6 } from "react";
|
|
3602
|
-
import {
|
|
3602
|
+
import { jsx as jsx11, jsxs as jsxs10, Fragment as Fragment7 } from "react/jsx-runtime";
|
|
3603
3603
|
function RunningTimer({ startTime }) {
|
|
3604
3604
|
const [elapsed, setElapsed] = useState6(() => Date.now() - startTime);
|
|
3605
3605
|
useEffect2(() => {
|
|
3606
3606
|
const interval = setInterval(() => setElapsed(Date.now() - startTime), 100);
|
|
3607
3607
|
return () => clearInterval(interval);
|
|
3608
3608
|
}, [startTime]);
|
|
3609
|
-
return /* @__PURE__ */
|
|
3609
|
+
return /* @__PURE__ */ jsxs10(Fragment7, {
|
|
3610
3610
|
children: [
|
|
3611
3611
|
elapsed,
|
|
3612
3612
|
"ms"
|
|
3613
3613
|
]
|
|
3614
|
-
}
|
|
3614
|
+
});
|
|
3615
3615
|
}
|
|
3616
3616
|
function DurationDisplay({ entry }) {
|
|
3617
3617
|
const d = formatDuration(entry);
|
|
3618
|
-
return /* @__PURE__ */
|
|
3619
|
-
children: d ?? /* @__PURE__ */
|
|
3618
|
+
return /* @__PURE__ */ jsx11(Fragment7, {
|
|
3619
|
+
children: d ?? /* @__PURE__ */ jsx11(RunningTimer, {
|
|
3620
3620
|
startTime: entry.startTime
|
|
3621
|
-
}
|
|
3622
|
-
}
|
|
3621
|
+
})
|
|
3622
|
+
});
|
|
3623
3623
|
}
|
|
3624
3624
|
|
|
3625
3625
|
// src/devtools/browser/components/CallStackSection.tsx
|
|
3626
|
-
import {
|
|
3626
|
+
import { jsx as jsx12, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
3627
3627
|
function getCalledLabel(entry) {
|
|
3628
3628
|
const firstHop = entry.meta.routing[0];
|
|
3629
3629
|
if (firstHop == null)
|
|
@@ -3653,7 +3653,7 @@ function CallStackLink({
|
|
|
3653
3653
|
const label = entryRole === "caller" ? "↑ from" : getCalledLabel(entry);
|
|
3654
3654
|
const firstHop = entry.meta.routing[0];
|
|
3655
3655
|
const transportTooltip = entryRole === "called" && firstHop != null ? getTransportTooltip(firstHop) : undefined;
|
|
3656
|
-
return /* @__PURE__ */
|
|
3656
|
+
return /* @__PURE__ */ jsxs11("div", {
|
|
3657
3657
|
onClick,
|
|
3658
3658
|
style: {
|
|
3659
3659
|
background: isFocused ? DEVTOOL_SECTION_BACKGROUND : DEVTOOL_DETAIL_HEADER_BACKGROUND,
|
|
@@ -3667,25 +3667,25 @@ function CallStackLink({
|
|
|
3667
3667
|
cursor: "pointer"
|
|
3668
3668
|
},
|
|
3669
3669
|
children: [
|
|
3670
|
-
/* @__PURE__ */
|
|
3670
|
+
/* @__PURE__ */ jsxs11("span", {
|
|
3671
3671
|
style: { display: "flex", alignItems: "center", gap: "1em", flexShrink: 0 },
|
|
3672
3672
|
children: [
|
|
3673
|
-
/* @__PURE__ */
|
|
3673
|
+
/* @__PURE__ */ jsx12("span", {
|
|
3674
3674
|
style: { color, fontSize: "10px", flexShrink: 0 },
|
|
3675
3675
|
children: symbol
|
|
3676
|
-
}
|
|
3677
|
-
/* @__PURE__ */
|
|
3676
|
+
}),
|
|
3677
|
+
/* @__PURE__ */ jsx12(HoverTooltip, {
|
|
3678
3678
|
config: transportTooltip,
|
|
3679
3679
|
style: { flexShrink: 0, display: "flex" },
|
|
3680
|
-
children: /* @__PURE__ */
|
|
3680
|
+
children: /* @__PURE__ */ jsx12("span", {
|
|
3681
3681
|
style: { color: labelColor, fontSize: "9px" },
|
|
3682
3682
|
children: label
|
|
3683
|
-
}
|
|
3684
|
-
}
|
|
3685
|
-
/* @__PURE__ */
|
|
3683
|
+
})
|
|
3684
|
+
}),
|
|
3685
|
+
/* @__PURE__ */ jsxs11("span", {
|
|
3686
3686
|
style: { display: "flex", alignItems: "center", gap: "5px" },
|
|
3687
3687
|
children: [
|
|
3688
|
-
/* @__PURE__ */
|
|
3688
|
+
/* @__PURE__ */ jsx12("span", {
|
|
3689
3689
|
style: {
|
|
3690
3690
|
color: DEVTOOL_COLOR_TEXT_SECONDARY,
|
|
3691
3691
|
fontSize: "11px",
|
|
@@ -3694,29 +3694,29 @@ function CallStackLink({
|
|
|
3694
3694
|
whiteSpace: "nowrap"
|
|
3695
3695
|
},
|
|
3696
3696
|
children: entry.actionId
|
|
3697
|
-
}
|
|
3698
|
-
/* @__PURE__ */
|
|
3697
|
+
}),
|
|
3698
|
+
/* @__PURE__ */ jsx12(DomainChip, {
|
|
3699
3699
|
domain: entry.domain,
|
|
3700
3700
|
allDomains: entry.allDomains,
|
|
3701
3701
|
size: "sm" /* sm */
|
|
3702
|
-
}
|
|
3702
|
+
})
|
|
3703
3703
|
]
|
|
3704
|
-
}
|
|
3704
|
+
})
|
|
3705
3705
|
]
|
|
3706
|
-
}
|
|
3707
|
-
/* @__PURE__ */
|
|
3706
|
+
}),
|
|
3707
|
+
/* @__PURE__ */ jsx12("span", {
|
|
3708
3708
|
style: {
|
|
3709
3709
|
color: DEVTOOL_COLOR_TEXT_FAINT,
|
|
3710
3710
|
fontSize: "10px",
|
|
3711
3711
|
textAlign: "right",
|
|
3712
3712
|
whiteSpace: "nowrap"
|
|
3713
3713
|
},
|
|
3714
|
-
children: /* @__PURE__ */
|
|
3714
|
+
children: /* @__PURE__ */ jsx12(DurationDisplay, {
|
|
3715
3715
|
entry
|
|
3716
|
-
}
|
|
3717
|
-
}
|
|
3716
|
+
})
|
|
3717
|
+
})
|
|
3718
3718
|
]
|
|
3719
|
-
}
|
|
3719
|
+
});
|
|
3720
3720
|
}
|
|
3721
3721
|
function CallStackSection({
|
|
3722
3722
|
parent,
|
|
@@ -3727,26 +3727,26 @@ function CallStackSection({
|
|
|
3727
3727
|
}) {
|
|
3728
3728
|
if (parent == null && childEntries.length === 0)
|
|
3729
3729
|
return null;
|
|
3730
|
-
return /* @__PURE__ */
|
|
3730
|
+
return /* @__PURE__ */ jsxs11("div", {
|
|
3731
3731
|
children: [
|
|
3732
|
-
parent != null && /* @__PURE__ */
|
|
3732
|
+
parent != null && /* @__PURE__ */ jsx12(CallStackLink, {
|
|
3733
3733
|
entry: parent,
|
|
3734
3734
|
entryRole: "caller",
|
|
3735
3735
|
isFocused: false,
|
|
3736
3736
|
onClick: () => onSelectParent(parent.cuid)
|
|
3737
|
-
}
|
|
3738
|
-
childEntries.map((child) => /* @__PURE__ */
|
|
3737
|
+
}),
|
|
3738
|
+
childEntries.map((child) => /* @__PURE__ */ jsx12(CallStackLink, {
|
|
3739
3739
|
entry: child,
|
|
3740
3740
|
entryRole: "called",
|
|
3741
3741
|
isFocused: focusedChildCuid === child.cuid,
|
|
3742
3742
|
onClick: () => onFocusChild(child.cuid)
|
|
3743
|
-
}, child.cuid
|
|
3743
|
+
}, child.cuid))
|
|
3744
3744
|
]
|
|
3745
|
-
}
|
|
3745
|
+
});
|
|
3746
3746
|
}
|
|
3747
3747
|
|
|
3748
3748
|
// src/devtools/browser/components/ChildDispatchChips.tsx
|
|
3749
|
-
import {
|
|
3749
|
+
import { jsx as jsx13 } from "react/jsx-runtime";
|
|
3750
3750
|
function ChildDispatchChips({
|
|
3751
3751
|
childRouteItems,
|
|
3752
3752
|
size = "sm" /* sm */
|
|
@@ -3767,41 +3767,41 @@ function ChildDispatchChips({
|
|
|
3767
3767
|
group.transports.push(transport);
|
|
3768
3768
|
}
|
|
3769
3769
|
}
|
|
3770
|
-
return /* @__PURE__ */
|
|
3770
|
+
return /* @__PURE__ */ jsx13("div", {
|
|
3771
3771
|
style: { display: "flex", alignItems: "center", gap: "4px", flexWrap: "wrap" },
|
|
3772
3772
|
children: Array.from(groups.values()).map((group) => {
|
|
3773
3773
|
const transportStr = group.transports.length > 0 ? group.transports.join(", ") : "ext";
|
|
3774
3774
|
const label = group.hasClient ? `${transportStr} → ${group.runtimeId}` : `→ ${transportStr}`;
|
|
3775
|
-
return /* @__PURE__ */
|
|
3775
|
+
return /* @__PURE__ */ jsx13(Chip, {
|
|
3776
3776
|
color: "handler_external" /* handler_external */,
|
|
3777
3777
|
size,
|
|
3778
3778
|
tooltip: getTransportTooltipForHops(group.hops),
|
|
3779
3779
|
children: label
|
|
3780
|
-
}, group.runtimeId
|
|
3780
|
+
}, group.runtimeId);
|
|
3781
3781
|
})
|
|
3782
|
-
}
|
|
3782
|
+
});
|
|
3783
3783
|
}
|
|
3784
3784
|
|
|
3785
3785
|
// src/devtools/browser/components/MetaSection.tsx
|
|
3786
3786
|
import { useState as useState7 } from "react";
|
|
3787
|
-
import {
|
|
3787
|
+
import { jsx as jsx14, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
3788
3788
|
function MetaChip({ label, value }) {
|
|
3789
|
-
return /* @__PURE__ */
|
|
3789
|
+
return /* @__PURE__ */ jsxs12("span", {
|
|
3790
3790
|
style: { whiteSpace: "nowrap" },
|
|
3791
3791
|
children: [
|
|
3792
|
-
/* @__PURE__ */
|
|
3792
|
+
/* @__PURE__ */ jsxs12("span", {
|
|
3793
3793
|
style: { color: DEVTOOL_COLOR_TEXT_MUTED },
|
|
3794
3794
|
children: [
|
|
3795
3795
|
label,
|
|
3796
3796
|
" "
|
|
3797
3797
|
]
|
|
3798
|
-
}
|
|
3799
|
-
/* @__PURE__ */
|
|
3798
|
+
}),
|
|
3799
|
+
/* @__PURE__ */ jsx14("span", {
|
|
3800
3800
|
style: { color: DEVTOOL_COLOR_TEXT_SECONDARY },
|
|
3801
3801
|
children: value
|
|
3802
|
-
}
|
|
3802
|
+
})
|
|
3803
3803
|
]
|
|
3804
|
-
}
|
|
3804
|
+
});
|
|
3805
3805
|
}
|
|
3806
3806
|
function MetaSection({ entry }) {
|
|
3807
3807
|
const [expanded, setExpanded] = useState7(false);
|
|
@@ -3812,9 +3812,9 @@ function MetaSection({ entry }) {
|
|
|
3812
3812
|
...meta.originClient.perId != null ? [{ label: "perId", value: meta.originClient.perId }] : [],
|
|
3813
3813
|
...meta.originClient.insId != null ? [{ label: "insId", value: meta.originClient.insId }] : []
|
|
3814
3814
|
];
|
|
3815
|
-
return /* @__PURE__ */
|
|
3815
|
+
return /* @__PURE__ */ jsxs12("div", {
|
|
3816
3816
|
children: [
|
|
3817
|
-
/* @__PURE__ */
|
|
3817
|
+
/* @__PURE__ */ jsxs12("div", {
|
|
3818
3818
|
style: {
|
|
3819
3819
|
display: "flex",
|
|
3820
3820
|
alignItems: "center",
|
|
@@ -3822,7 +3822,7 @@ function MetaSection({ entry }) {
|
|
|
3822
3822
|
marginBottom: "3px"
|
|
3823
3823
|
},
|
|
3824
3824
|
children: [
|
|
3825
|
-
/* @__PURE__ */
|
|
3825
|
+
/* @__PURE__ */ jsx14("div", {
|
|
3826
3826
|
style: {
|
|
3827
3827
|
color: DEVTOOL_COLOR_SEMANTIC_SYSTEM,
|
|
3828
3828
|
fontSize: "10px",
|
|
@@ -3830,14 +3830,14 @@ function MetaSection({ entry }) {
|
|
|
3830
3830
|
letterSpacing: "0.05em"
|
|
3831
3831
|
},
|
|
3832
3832
|
children: "Meta"
|
|
3833
|
-
}
|
|
3834
|
-
/* @__PURE__ */
|
|
3833
|
+
}),
|
|
3834
|
+
/* @__PURE__ */ jsx14("span", {
|
|
3835
3835
|
style: { color: DEVTOOL_COLOR_TEXT_FAINT, fontSize: "11px" },
|
|
3836
3836
|
children: expanded ? "▾" : "▸"
|
|
3837
|
-
}
|
|
3837
|
+
})
|
|
3838
3838
|
]
|
|
3839
|
-
}
|
|
3840
|
-
expanded ? /* @__PURE__ */
|
|
3839
|
+
}),
|
|
3840
|
+
expanded ? /* @__PURE__ */ jsx14("div", {
|
|
3841
3841
|
onClick: () => setExpanded(false),
|
|
3842
3842
|
style: {
|
|
3843
3843
|
background: DEVTOOL_SECTION_BACKGROUND,
|
|
@@ -3845,7 +3845,7 @@ function MetaSection({ entry }) {
|
|
|
3845
3845
|
overflow: "hidden",
|
|
3846
3846
|
cursor: "pointer"
|
|
3847
3847
|
},
|
|
3848
|
-
children: expandedRows.map(({ label, value }, i) => /* @__PURE__ */
|
|
3848
|
+
children: expandedRows.map(({ label, value }, i) => /* @__PURE__ */ jsxs12("div", {
|
|
3849
3849
|
style: {
|
|
3850
3850
|
display: "grid",
|
|
3851
3851
|
gridTemplateColumns: "52px 1fr",
|
|
@@ -3855,11 +3855,11 @@ function MetaSection({ entry }) {
|
|
|
3855
3855
|
alignItems: "start"
|
|
3856
3856
|
},
|
|
3857
3857
|
children: [
|
|
3858
|
-
/* @__PURE__ */
|
|
3858
|
+
/* @__PURE__ */ jsx14("span", {
|
|
3859
3859
|
style: { textAlign: "left", color: DEVTOOL_COLOR_TEXT_MUTED, fontSize: "10px", paddingTop: "1px" },
|
|
3860
3860
|
children: label
|
|
3861
|
-
}
|
|
3862
|
-
/* @__PURE__ */
|
|
3861
|
+
}),
|
|
3862
|
+
/* @__PURE__ */ jsx14("span", {
|
|
3863
3863
|
style: {
|
|
3864
3864
|
textAlign: "left",
|
|
3865
3865
|
color: DEVTOOL_COLOR_TEXT_SECONDARY,
|
|
@@ -3867,10 +3867,10 @@ function MetaSection({ entry }) {
|
|
|
3867
3867
|
wordBreak: "break-all"
|
|
3868
3868
|
},
|
|
3869
3869
|
children: value
|
|
3870
|
-
}
|
|
3870
|
+
})
|
|
3871
3871
|
]
|
|
3872
|
-
}, label
|
|
3873
|
-
}
|
|
3872
|
+
}, label))
|
|
3873
|
+
}) : /* @__PURE__ */ jsxs12("div", {
|
|
3874
3874
|
onClick: () => setExpanded(true),
|
|
3875
3875
|
style: {
|
|
3876
3876
|
background: DEVTOOL_SECTION_BACKGROUND,
|
|
@@ -3884,30 +3884,30 @@ function MetaSection({ entry }) {
|
|
|
3884
3884
|
cursor: "pointer"
|
|
3885
3885
|
},
|
|
3886
3886
|
children: [
|
|
3887
|
-
/* @__PURE__ */
|
|
3887
|
+
/* @__PURE__ */ jsx14(MetaChip, {
|
|
3888
3888
|
label: "cuid",
|
|
3889
3889
|
value: `…${cuid.slice(-8)}`
|
|
3890
|
-
}
|
|
3891
|
-
/* @__PURE__ */
|
|
3890
|
+
}),
|
|
3891
|
+
/* @__PURE__ */ jsx14(MetaChip, {
|
|
3892
3892
|
label: "runtime",
|
|
3893
3893
|
value: meta.originClient.envId
|
|
3894
|
-
}
|
|
3895
|
-
meta.originClient.perId != null && /* @__PURE__ */
|
|
3894
|
+
}),
|
|
3895
|
+
meta.originClient.perId != null && /* @__PURE__ */ jsx14(MetaChip, {
|
|
3896
3896
|
label: "perId",
|
|
3897
3897
|
value: meta.originClient.perId.length > 10 ? `${meta.originClient.perId.slice(0, 10)}…` : meta.originClient.perId
|
|
3898
|
-
}
|
|
3899
|
-
meta.originClient.insId != null && /* @__PURE__ */
|
|
3898
|
+
}),
|
|
3899
|
+
meta.originClient.insId != null && /* @__PURE__ */ jsx14(MetaChip, {
|
|
3900
3900
|
label: "insId",
|
|
3901
3901
|
value: meta.originClient.insId.length > 10 ? `${meta.originClient.insId.slice(0, 10)}…` : meta.originClient.insId
|
|
3902
|
-
}
|
|
3902
|
+
})
|
|
3903
3903
|
]
|
|
3904
|
-
}
|
|
3904
|
+
})
|
|
3905
3905
|
]
|
|
3906
|
-
}
|
|
3906
|
+
});
|
|
3907
3907
|
}
|
|
3908
3908
|
|
|
3909
3909
|
// src/devtools/browser/components/RoutingSection.tsx
|
|
3910
|
-
import {
|
|
3910
|
+
import { jsx as jsx15, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
3911
3911
|
function RoutingSection({
|
|
3912
3912
|
entry,
|
|
3913
3913
|
minHopCount = 0
|
|
@@ -3917,12 +3917,12 @@ function RoutingSection({
|
|
|
3917
3917
|
const phantomCount = Math.max(0, minHopCount - hopCount);
|
|
3918
3918
|
if (hopCount === 0 && phantomCount === 0)
|
|
3919
3919
|
return null;
|
|
3920
|
-
return /* @__PURE__ */
|
|
3920
|
+
return /* @__PURE__ */ jsxs13("div", {
|
|
3921
3921
|
children: [
|
|
3922
|
-
/* @__PURE__ */
|
|
3922
|
+
/* @__PURE__ */ jsx15(SectionLabel, {
|
|
3923
3923
|
label: hopCount > 0 ? `Routing · ${hopCount} hop${hopCount !== 1 ? "s" : ""}` : "Routing"
|
|
3924
|
-
}
|
|
3925
|
-
/* @__PURE__ */
|
|
3924
|
+
}),
|
|
3925
|
+
/* @__PURE__ */ jsxs13("div", {
|
|
3926
3926
|
style: { display: "flex", flexDirection: "column", gap: "2px" },
|
|
3927
3927
|
children: [
|
|
3928
3928
|
meta.routing.map((hop, i) => {
|
|
@@ -3932,7 +3932,7 @@ function RoutingSection({
|
|
|
3932
3932
|
const badgeText = isLocal ? "● exec" : `→ ${hop.transportSummary ?? hop.transport ?? "ext"}`;
|
|
3933
3933
|
const transportTooltip = isLocal ? undefined : getTransportTooltip(hop);
|
|
3934
3934
|
const runtimeTitle = [hop.runtime.perId, hop.runtime.insId].filter(Boolean).join(" · ") || undefined;
|
|
3935
|
-
return /* @__PURE__ */
|
|
3935
|
+
return /* @__PURE__ */ jsxs13("div", {
|
|
3936
3936
|
style: {
|
|
3937
3937
|
background: DEVTOOL_SECTION_BACKGROUND,
|
|
3938
3938
|
borderRadius: "4px",
|
|
@@ -3945,14 +3945,14 @@ function RoutingSection({
|
|
|
3945
3945
|
padding: "4px 8px"
|
|
3946
3946
|
},
|
|
3947
3947
|
children: [
|
|
3948
|
-
/* @__PURE__ */
|
|
3948
|
+
/* @__PURE__ */ jsxs13("span", {
|
|
3949
3949
|
style: { display: "flex", flexDirection: "row", alignItems: "center", gap: "10px" },
|
|
3950
3950
|
children: [
|
|
3951
|
-
/* @__PURE__ */
|
|
3951
|
+
/* @__PURE__ */ jsx15("span", {
|
|
3952
3952
|
style: { color: DEVTOOL_COLOR_TEXT_FAINT, fontSize: "10px", width: "16px", textAlign: "right" },
|
|
3953
3953
|
children: i + 1
|
|
3954
|
-
}
|
|
3955
|
-
/* @__PURE__ */
|
|
3954
|
+
}),
|
|
3955
|
+
/* @__PURE__ */ jsx15("span", {
|
|
3956
3956
|
title: runtimeTitle,
|
|
3957
3957
|
style: {
|
|
3958
3958
|
color: DEVTOOL_COLOR_TEXT_SECONDARY,
|
|
@@ -3963,13 +3963,13 @@ function RoutingSection({
|
|
|
3963
3963
|
textAlign: "center"
|
|
3964
3964
|
},
|
|
3965
3965
|
children: hop.runtime.envId
|
|
3966
|
-
}
|
|
3966
|
+
})
|
|
3967
3967
|
]
|
|
3968
|
-
}
|
|
3969
|
-
/* @__PURE__ */
|
|
3968
|
+
}),
|
|
3969
|
+
/* @__PURE__ */ jsx15(HoverTooltip, {
|
|
3970
3970
|
config: transportTooltip,
|
|
3971
3971
|
style: { display: "block", minWidth: 0, overflow: "hidden" },
|
|
3972
|
-
children: /* @__PURE__ */
|
|
3972
|
+
children: /* @__PURE__ */ jsx15("span", {
|
|
3973
3973
|
style: {
|
|
3974
3974
|
color: badgeColor,
|
|
3975
3975
|
fontSize: "10px",
|
|
@@ -3979,9 +3979,9 @@ function RoutingSection({
|
|
|
3979
3979
|
display: "block"
|
|
3980
3980
|
},
|
|
3981
3981
|
children: badgeText
|
|
3982
|
-
}
|
|
3983
|
-
}
|
|
3984
|
-
/* @__PURE__ */
|
|
3982
|
+
})
|
|
3983
|
+
}),
|
|
3984
|
+
/* @__PURE__ */ jsxs13("span", {
|
|
3985
3985
|
style: {
|
|
3986
3986
|
display: "flex",
|
|
3987
3987
|
alignItems: "center",
|
|
@@ -3990,7 +3990,7 @@ function RoutingSection({
|
|
|
3990
3990
|
overflow: "hidden"
|
|
3991
3991
|
},
|
|
3992
3992
|
children: [
|
|
3993
|
-
/* @__PURE__ */
|
|
3993
|
+
/* @__PURE__ */ jsx15("span", {
|
|
3994
3994
|
style: {
|
|
3995
3995
|
color: DEVTOOL_COLOR_TEXT_MUTED,
|
|
3996
3996
|
fontSize: "10px",
|
|
@@ -3999,21 +3999,21 @@ function RoutingSection({
|
|
|
3999
3999
|
textOverflow: "ellipsis"
|
|
4000
4000
|
},
|
|
4001
4001
|
children: hop.handlerClient != null ? `↳ ${hop.handlerClient.envId}` : ""
|
|
4002
|
-
}
|
|
4003
|
-
/* @__PURE__ */
|
|
4002
|
+
}),
|
|
4003
|
+
/* @__PURE__ */ jsxs13("span", {
|
|
4004
4004
|
style: { color: DEVTOOL_COLOR_TEXT_FAINT, fontSize: "10px", flexShrink: 0, marginLeft: "auto" },
|
|
4005
4005
|
children: [
|
|
4006
4006
|
"+",
|
|
4007
4007
|
hop.time - startTime,
|
|
4008
4008
|
"ms"
|
|
4009
4009
|
]
|
|
4010
|
-
}
|
|
4010
|
+
})
|
|
4011
4011
|
]
|
|
4012
|
-
}
|
|
4012
|
+
})
|
|
4013
4013
|
]
|
|
4014
|
-
}, `${hop.time}-${hop.runtime.envId}
|
|
4014
|
+
}, `${hop.time}-${hop.runtime.envId}`);
|
|
4015
4015
|
}),
|
|
4016
|
-
Array.from({ length: phantomCount }, (_, i) => `routing-phantom-${hopCount + i}`).map((key) => /* @__PURE__ */
|
|
4016
|
+
Array.from({ length: phantomCount }, (_, i) => `routing-phantom-${hopCount + i}`).map((key) => /* @__PURE__ */ jsxs13("div", {
|
|
4017
4017
|
"aria-hidden": "true",
|
|
4018
4018
|
style: {
|
|
4019
4019
|
visibility: "hidden",
|
|
@@ -4026,34 +4026,34 @@ function RoutingSection({
|
|
|
4026
4026
|
padding: "4px 8px"
|
|
4027
4027
|
},
|
|
4028
4028
|
children: [
|
|
4029
|
-
/* @__PURE__ */
|
|
4029
|
+
/* @__PURE__ */ jsxs13("span", {
|
|
4030
4030
|
style: { display: "flex", flexDirection: "row", alignItems: "center", gap: "10px" },
|
|
4031
4031
|
children: [
|
|
4032
|
-
/* @__PURE__ */
|
|
4032
|
+
/* @__PURE__ */ jsx15("span", {
|
|
4033
4033
|
style: { fontSize: "10px", width: "16px" },
|
|
4034
4034
|
children: "0"
|
|
4035
|
-
}
|
|
4036
|
-
/* @__PURE__ */
|
|
4035
|
+
}),
|
|
4036
|
+
/* @__PURE__ */ jsx15("span", {
|
|
4037
4037
|
style: { fontSize: "11px" },
|
|
4038
4038
|
children: "placeholder"
|
|
4039
|
-
}
|
|
4039
|
+
})
|
|
4040
4040
|
]
|
|
4041
|
-
}
|
|
4042
|
-
/* @__PURE__ */
|
|
4041
|
+
}),
|
|
4042
|
+
/* @__PURE__ */ jsx15("span", {
|
|
4043
4043
|
style: { fontSize: "10px" },
|
|
4044
4044
|
children: "placeholder"
|
|
4045
|
-
}
|
|
4046
|
-
/* @__PURE__ */
|
|
4045
|
+
}),
|
|
4046
|
+
/* @__PURE__ */ jsx15("span", {})
|
|
4047
4047
|
]
|
|
4048
|
-
}, key
|
|
4048
|
+
}, key))
|
|
4049
4049
|
]
|
|
4050
|
-
}
|
|
4050
|
+
})
|
|
4051
4051
|
]
|
|
4052
|
-
}
|
|
4052
|
+
});
|
|
4053
4053
|
}
|
|
4054
4054
|
|
|
4055
4055
|
// src/devtools/browser/components/action_detail/ActionDetailPanel.tsx
|
|
4056
|
-
import {
|
|
4056
|
+
import { jsx as jsx16, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
4057
4057
|
var STATUS_BADGE_LABEL = {
|
|
4058
4058
|
running: "RUNNING",
|
|
4059
4059
|
success: "SUCCESS",
|
|
@@ -4084,7 +4084,7 @@ function DetailHeader({
|
|
|
4084
4084
|
const color = STATUS_COLOR[entry.status];
|
|
4085
4085
|
const StatusIconComponent = STATUS_ICON[entry.status];
|
|
4086
4086
|
const timestamp = formatTimestamp(entry.startTime);
|
|
4087
|
-
return /* @__PURE__ */
|
|
4087
|
+
return /* @__PURE__ */ jsx16("div", {
|
|
4088
4088
|
onClick: !isActive ? onClick : undefined,
|
|
4089
4089
|
style: {
|
|
4090
4090
|
padding: "0.5em 1em",
|
|
@@ -4098,13 +4098,13 @@ function DetailHeader({
|
|
|
4098
4098
|
gap: "1em",
|
|
4099
4099
|
cursor: isActive ? "default" : "pointer"
|
|
4100
4100
|
},
|
|
4101
|
-
children: /* @__PURE__ */
|
|
4101
|
+
children: /* @__PURE__ */ jsxs14("div", {
|
|
4102
4102
|
style: { flex: 1, minWidth: 0, display: "flex", flexDirection: "column", gap: "0.5em" },
|
|
4103
4103
|
children: [
|
|
4104
|
-
/* @__PURE__ */
|
|
4104
|
+
/* @__PURE__ */ jsxs14("div", {
|
|
4105
4105
|
style: { display: "flex", alignItems: "center", minWidth: 0, gap: "0.5em" },
|
|
4106
4106
|
children: [
|
|
4107
|
-
/* @__PURE__ */
|
|
4107
|
+
/* @__PURE__ */ jsx16("span", {
|
|
4108
4108
|
style: {
|
|
4109
4109
|
color,
|
|
4110
4110
|
flexShrink: 0,
|
|
@@ -4112,12 +4112,12 @@ function DetailHeader({
|
|
|
4112
4112
|
alignItems: "center",
|
|
4113
4113
|
animation: entry.status === "running" ? "__nice-action-pulse 1.2s ease-in-out infinite" : undefined
|
|
4114
4114
|
},
|
|
4115
|
-
children: /* @__PURE__ */
|
|
4115
|
+
children: /* @__PURE__ */ jsx16(StatusIconComponent, {
|
|
4116
4116
|
size: 20,
|
|
4117
4117
|
strokeWidth: 1.75
|
|
4118
|
-
}
|
|
4119
|
-
}
|
|
4120
|
-
/* @__PURE__ */
|
|
4118
|
+
})
|
|
4119
|
+
}),
|
|
4120
|
+
/* @__PURE__ */ jsx16("span", {
|
|
4121
4121
|
style: {
|
|
4122
4122
|
color: DEVTOOL_COLOR_TEXT_EMPHASIS,
|
|
4123
4123
|
fontSize: "1.2em",
|
|
@@ -4130,8 +4130,8 @@ function DetailHeader({
|
|
|
4130
4130
|
minWidth: "2.5em"
|
|
4131
4131
|
},
|
|
4132
4132
|
children: entry.actionId
|
|
4133
|
-
}
|
|
4134
|
-
/* @__PURE__ */
|
|
4133
|
+
}),
|
|
4134
|
+
/* @__PURE__ */ jsx16("span", {
|
|
4135
4135
|
style: {
|
|
4136
4136
|
flexShrink: 0,
|
|
4137
4137
|
padding: "2px 9px",
|
|
@@ -4145,15 +4145,15 @@ function DetailHeader({
|
|
|
4145
4145
|
fontFamily: "ui-sans-serif, system-ui, sans-serif"
|
|
4146
4146
|
},
|
|
4147
4147
|
children: STATUS_BADGE_LABEL[entry.status]
|
|
4148
|
-
}
|
|
4149
|
-
/* @__PURE__ */
|
|
4148
|
+
}),
|
|
4149
|
+
/* @__PURE__ */ jsx16(DomainChip, {
|
|
4150
4150
|
domain: entry.domain,
|
|
4151
4151
|
allDomains: entry.allDomains,
|
|
4152
4152
|
size: "md" /* md */
|
|
4153
|
-
}
|
|
4153
|
+
})
|
|
4154
4154
|
]
|
|
4155
|
-
}
|
|
4156
|
-
/* @__PURE__ */
|
|
4155
|
+
}),
|
|
4156
|
+
/* @__PURE__ */ jsxs14("div", {
|
|
4157
4157
|
style: {
|
|
4158
4158
|
display: "flex",
|
|
4159
4159
|
alignItems: "center",
|
|
@@ -4161,7 +4161,7 @@ function DetailHeader({
|
|
|
4161
4161
|
gap: "8px"
|
|
4162
4162
|
},
|
|
4163
4163
|
children: [
|
|
4164
|
-
/* @__PURE__ */
|
|
4164
|
+
/* @__PURE__ */ jsxs14("div", {
|
|
4165
4165
|
style: {
|
|
4166
4166
|
display: "flex",
|
|
4167
4167
|
alignItems: "center",
|
|
@@ -4170,20 +4170,20 @@ function DetailHeader({
|
|
|
4170
4170
|
overflow: "hidden"
|
|
4171
4171
|
},
|
|
4172
4172
|
children: [
|
|
4173
|
-
/* @__PURE__ */
|
|
4173
|
+
/* @__PURE__ */ jsx16(HandlerChips, {
|
|
4174
4174
|
entry,
|
|
4175
4175
|
size: "md" /* md */
|
|
4176
|
-
}
|
|
4177
|
-
/* @__PURE__ */
|
|
4176
|
+
}),
|
|
4177
|
+
/* @__PURE__ */ jsx16(ChildDispatchChips, {
|
|
4178
4178
|
childRouteItems: childExternalRouteItems,
|
|
4179
4179
|
size: "md" /* md */
|
|
4180
|
-
}
|
|
4180
|
+
})
|
|
4181
4181
|
]
|
|
4182
|
-
}
|
|
4183
|
-
/* @__PURE__ */
|
|
4182
|
+
}),
|
|
4183
|
+
/* @__PURE__ */ jsxs14("div", {
|
|
4184
4184
|
style: { display: "flex", alignItems: "center", gap: "8px", flexShrink: 0 },
|
|
4185
4185
|
children: [
|
|
4186
|
-
/* @__PURE__ */
|
|
4186
|
+
/* @__PURE__ */ jsx16("span", {
|
|
4187
4187
|
style: {
|
|
4188
4188
|
color: DEVTOOL_COLOR_SEMANTIC_METADATA,
|
|
4189
4189
|
fontSize: "10px",
|
|
@@ -4191,20 +4191,20 @@ function DetailHeader({
|
|
|
4191
4191
|
fontFamily: "ui-sans-serif, system-ui, sans-serif"
|
|
4192
4192
|
},
|
|
4193
4193
|
children: timestamp
|
|
4194
|
-
}
|
|
4195
|
-
/* @__PURE__ */
|
|
4194
|
+
}),
|
|
4195
|
+
/* @__PURE__ */ jsx16("span", {
|
|
4196
4196
|
style: { color, fontSize: "12px", fontWeight: "500" },
|
|
4197
|
-
children: /* @__PURE__ */
|
|
4197
|
+
children: /* @__PURE__ */ jsx16(DurationDisplay, {
|
|
4198
4198
|
entry
|
|
4199
|
-
}
|
|
4200
|
-
}
|
|
4199
|
+
})
|
|
4200
|
+
})
|
|
4201
4201
|
]
|
|
4202
|
-
}
|
|
4202
|
+
})
|
|
4203
4203
|
]
|
|
4204
|
-
}
|
|
4204
|
+
})
|
|
4205
4205
|
]
|
|
4206
|
-
}
|
|
4207
|
-
}
|
|
4206
|
+
})
|
|
4207
|
+
});
|
|
4208
4208
|
}
|
|
4209
4209
|
function ActionDetailPanel({
|
|
4210
4210
|
entry,
|
|
@@ -4234,7 +4234,7 @@ function ActionDetailPanel({
|
|
|
4234
4234
|
const handleFocusChild = (cuid) => {
|
|
4235
4235
|
setFocusedChildCuid((prev) => prev === cuid ? null : cuid);
|
|
4236
4236
|
};
|
|
4237
|
-
return /* @__PURE__ */
|
|
4237
|
+
return /* @__PURE__ */ jsxs14("div", {
|
|
4238
4238
|
style: {
|
|
4239
4239
|
flex: 1,
|
|
4240
4240
|
display: "flex",
|
|
@@ -4244,20 +4244,20 @@ function ActionDetailPanel({
|
|
|
4244
4244
|
background: DEVTOOL_DETAIL_BASE_BACKGROUND
|
|
4245
4245
|
},
|
|
4246
4246
|
children: [
|
|
4247
|
-
/* @__PURE__ */
|
|
4247
|
+
/* @__PURE__ */ jsx16(DetailHeader, {
|
|
4248
4248
|
entry,
|
|
4249
4249
|
isActive: focusedChildCuid === null,
|
|
4250
4250
|
onClick: () => setFocusedChildCuid(null),
|
|
4251
4251
|
childExternalRouteItems
|
|
4252
|
-
}
|
|
4253
|
-
/* @__PURE__ */
|
|
4252
|
+
}),
|
|
4253
|
+
/* @__PURE__ */ jsx16(CallStackSection, {
|
|
4254
4254
|
parent,
|
|
4255
4255
|
childEntries,
|
|
4256
4256
|
focusedChildCuid,
|
|
4257
4257
|
onFocusChild: handleFocusChild,
|
|
4258
4258
|
onSelectParent: onSelectEntry
|
|
4259
|
-
}
|
|
4260
|
-
/* @__PURE__ */
|
|
4259
|
+
}),
|
|
4260
|
+
/* @__PURE__ */ jsxs14("div", {
|
|
4261
4261
|
style: {
|
|
4262
4262
|
flex: 1,
|
|
4263
4263
|
overflowY: "auto",
|
|
@@ -4268,43 +4268,43 @@ function ActionDetailPanel({
|
|
|
4268
4268
|
gap: "8px"
|
|
4269
4269
|
},
|
|
4270
4270
|
children: [
|
|
4271
|
-
focusedEntry.input !== undefined ? /* @__PURE__ */
|
|
4271
|
+
focusedEntry.input !== undefined ? /* @__PURE__ */ jsx16(DetailSection, {
|
|
4272
4272
|
label: "Input",
|
|
4273
4273
|
value: focusedEntry.input
|
|
4274
|
-
}
|
|
4274
|
+
}) : /* @__PURE__ */ jsx16(DetailSection, {
|
|
4275
4275
|
label: "Input",
|
|
4276
4276
|
value: "No input required or given"
|
|
4277
|
-
}
|
|
4278
|
-
focusedEntry.status === "success" && /* @__PURE__ */
|
|
4277
|
+
}),
|
|
4278
|
+
focusedEntry.status === "success" && /* @__PURE__ */ jsx16(DetailSection, {
|
|
4279
4279
|
label: "Output",
|
|
4280
4280
|
value: focusedEntry.output,
|
|
4281
4281
|
color: DEVTOOL_COLOR_SEMANTIC_SUCCESS
|
|
4282
|
-
}
|
|
4283
|
-
(focusedEntry.status === "action-error" || focusedEntry.status === "failed" || focusedEntry.status === "aborted") && /* @__PURE__ */
|
|
4282
|
+
}),
|
|
4283
|
+
(focusedEntry.status === "action-error" || focusedEntry.status === "failed" || focusedEntry.status === "aborted") && /* @__PURE__ */ jsx16(ActionErrorDisplay, {
|
|
4284
4284
|
entry: focusedEntry
|
|
4285
|
-
}
|
|
4286
|
-
focusedEntry.progressUpdates.length > 0 && /* @__PURE__ */
|
|
4285
|
+
}),
|
|
4286
|
+
focusedEntry.progressUpdates.length > 0 && /* @__PURE__ */ jsx16(DetailSection, {
|
|
4287
4287
|
label: `Progress (${focusedEntry.progressUpdates.length})`,
|
|
4288
4288
|
value: focusedEntry.progressUpdates
|
|
4289
|
-
}
|
|
4290
|
-
/* @__PURE__ */
|
|
4289
|
+
}),
|
|
4290
|
+
/* @__PURE__ */ jsx16(StackTraceSection, {
|
|
4291
4291
|
runtime: entry.meta.originClient,
|
|
4292
4292
|
label: "Dispatch Site",
|
|
4293
4293
|
stack: focusedEntry.callSite,
|
|
4294
4294
|
color: DEVTOOL_COLOR_TEXT_SECONDARY,
|
|
4295
4295
|
minFrameCount: maxCallSiteFrames
|
|
4296
|
-
}
|
|
4297
|
-
/* @__PURE__ */
|
|
4296
|
+
}),
|
|
4297
|
+
/* @__PURE__ */ jsx16(RoutingSection, {
|
|
4298
4298
|
entry: focusedEntry,
|
|
4299
4299
|
minHopCount: maxRoutingHops
|
|
4300
|
-
}
|
|
4301
|
-
/* @__PURE__ */
|
|
4300
|
+
}),
|
|
4301
|
+
/* @__PURE__ */ jsx16(MetaSection, {
|
|
4302
4302
|
entry: focusedEntry
|
|
4303
|
-
}
|
|
4303
|
+
})
|
|
4304
4304
|
]
|
|
4305
|
-
}
|
|
4305
|
+
})
|
|
4306
4306
|
]
|
|
4307
|
-
}
|
|
4307
|
+
});
|
|
4308
4308
|
}
|
|
4309
4309
|
|
|
4310
4310
|
// src/devtools/browser/components/action_list/ActionList.tsx
|
|
@@ -4319,7 +4319,7 @@ import { CircleX as CircleX2, PackageCheck, Sparkle, Variable } from "lucide-rea
|
|
|
4319
4319
|
import { useState as useState9 } from "react";
|
|
4320
4320
|
|
|
4321
4321
|
// src/devtools/browser/components/action_list/IoTooltipContent.tsx
|
|
4322
|
-
import {
|
|
4322
|
+
import { jsx as jsx17, Fragment as Fragment8 } from "react/jsx-runtime";
|
|
4323
4323
|
var JSON_TOKEN_RE2 = /("(?:\\.|[^"\\])*")(\s*:)?|(-?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)|(\btrue\b|\bfalse\b|\bnull\b|\bundefined\b)|([{}[\],])/g;
|
|
4324
4324
|
function renderColoredJson2(text) {
|
|
4325
4325
|
const nodes = [];
|
|
@@ -4332,35 +4332,35 @@ function renderColoredJson2(text) {
|
|
|
4332
4332
|
const [, str, colon, num, kw, punct] = m;
|
|
4333
4333
|
if (str != null) {
|
|
4334
4334
|
if (colon != null) {
|
|
4335
|
-
nodes.push(/* @__PURE__ */
|
|
4335
|
+
nodes.push(/* @__PURE__ */ jsx17("span", {
|
|
4336
4336
|
style: { color: DEVTOOL_JSON_KEY },
|
|
4337
4337
|
children: str
|
|
4338
|
-
}, i
|
|
4339
|
-
nodes.push(/* @__PURE__ */
|
|
4338
|
+
}, i++));
|
|
4339
|
+
nodes.push(/* @__PURE__ */ jsx17("span", {
|
|
4340
4340
|
style: { color: DEVTOOL_JSON_PUNCTUATION },
|
|
4341
4341
|
children: colon
|
|
4342
|
-
}, i
|
|
4342
|
+
}, i++));
|
|
4343
4343
|
} else {
|
|
4344
|
-
nodes.push(/* @__PURE__ */
|
|
4344
|
+
nodes.push(/* @__PURE__ */ jsx17("span", {
|
|
4345
4345
|
style: { color: DEVTOOL_JSON_STRING },
|
|
4346
4346
|
children: str
|
|
4347
|
-
}, i
|
|
4347
|
+
}, i++));
|
|
4348
4348
|
}
|
|
4349
4349
|
} else if (num != null) {
|
|
4350
|
-
nodes.push(/* @__PURE__ */
|
|
4350
|
+
nodes.push(/* @__PURE__ */ jsx17("span", {
|
|
4351
4351
|
style: { color: DEVTOOL_JSON_NUMBER },
|
|
4352
4352
|
children: num
|
|
4353
|
-
}, i
|
|
4353
|
+
}, i++));
|
|
4354
4354
|
} else if (kw != null) {
|
|
4355
|
-
nodes.push(/* @__PURE__ */
|
|
4355
|
+
nodes.push(/* @__PURE__ */ jsx17("span", {
|
|
4356
4356
|
style: { color: DEVTOOL_JSON_KEYWORD },
|
|
4357
4357
|
children: kw
|
|
4358
|
-
}, i
|
|
4358
|
+
}, i++));
|
|
4359
4359
|
} else if (punct != null) {
|
|
4360
|
-
nodes.push(/* @__PURE__ */
|
|
4360
|
+
nodes.push(/* @__PURE__ */ jsx17("span", {
|
|
4361
4361
|
style: { color: DEVTOOL_JSON_PUNCTUATION },
|
|
4362
4362
|
children: punct
|
|
4363
|
-
}, i
|
|
4363
|
+
}, i++));
|
|
4364
4364
|
}
|
|
4365
4365
|
last = JSON_TOKEN_RE2.lastIndex;
|
|
4366
4366
|
}
|
|
@@ -4379,7 +4379,7 @@ function stripOuterBraces(json) {
|
|
|
4379
4379
|
}
|
|
4380
4380
|
function IoTooltipContent({ value }) {
|
|
4381
4381
|
const text = stripOuterBraces(safeStringify(value, 2));
|
|
4382
|
-
return /* @__PURE__ */
|
|
4382
|
+
return /* @__PURE__ */ jsx17("div", {
|
|
4383
4383
|
style: {
|
|
4384
4384
|
fontFamily: "ui-monospace, 'Cascadia Code', 'Source Code Pro', monospace",
|
|
4385
4385
|
fontSize: "10px",
|
|
@@ -4389,11 +4389,11 @@ function IoTooltipContent({ value }) {
|
|
|
4389
4389
|
textAlign: "left"
|
|
4390
4390
|
},
|
|
4391
4391
|
children: renderColoredJson2(text)
|
|
4392
|
-
}
|
|
4392
|
+
});
|
|
4393
4393
|
}
|
|
4394
4394
|
|
|
4395
4395
|
// src/devtools/browser/components/action_list/ActionInputAndOutputChip.tsx
|
|
4396
|
-
import {
|
|
4396
|
+
import { jsx as jsx18, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
4397
4397
|
var ActionInputAndOutputChip = ({
|
|
4398
4398
|
entry,
|
|
4399
4399
|
breakReasons,
|
|
@@ -4414,94 +4414,94 @@ var ActionInputAndOutputChip = ({
|
|
|
4414
4414
|
const sizeNum = getSizeValue(size);
|
|
4415
4415
|
const newIconSizeEm = `${sizeNum * 0.9}em`;
|
|
4416
4416
|
const label = `${(isLocal ? localEnvId : externalLabel) ?? "unknown"}`;
|
|
4417
|
-
const newSparkleComp = /* @__PURE__ */
|
|
4417
|
+
const newSparkleComp = /* @__PURE__ */ jsx18("div", {
|
|
4418
4418
|
style: {
|
|
4419
4419
|
opacity: 0.9,
|
|
4420
4420
|
alignSelf: "start",
|
|
4421
4421
|
marginLeft: "-0.6em"
|
|
4422
4422
|
},
|
|
4423
|
-
children: /* @__PURE__ */
|
|
4423
|
+
children: /* @__PURE__ */ jsx18(Sparkle, {
|
|
4424
4424
|
strokeWidth: "0.2em",
|
|
4425
4425
|
color: "rgba(243, 250, 140, 1)",
|
|
4426
4426
|
width: newIconSizeEm,
|
|
4427
4427
|
height: newIconSizeEm
|
|
4428
|
-
}
|
|
4429
|
-
}
|
|
4430
|
-
return /* @__PURE__ */
|
|
4428
|
+
})
|
|
4429
|
+
});
|
|
4430
|
+
return /* @__PURE__ */ jsx18(Chip, {
|
|
4431
4431
|
color,
|
|
4432
4432
|
size,
|
|
4433
4433
|
subtle,
|
|
4434
|
-
children: /* @__PURE__ */
|
|
4434
|
+
children: /* @__PURE__ */ jsxs15("div", {
|
|
4435
4435
|
style: { display: "flex", alignItems: "center", gap: "0.4em" },
|
|
4436
4436
|
children: [
|
|
4437
|
-
/* @__PURE__ */
|
|
4437
|
+
/* @__PURE__ */ jsx18(Icon, {
|
|
4438
4438
|
noBackground: true,
|
|
4439
4439
|
icon: Variable,
|
|
4440
4440
|
color,
|
|
4441
4441
|
subtle: subtle || entry.input === undefined,
|
|
4442
4442
|
tooltip: {
|
|
4443
|
-
content: entry.input !== undefined ? /* @__PURE__ */
|
|
4443
|
+
content: entry.input !== undefined ? /* @__PURE__ */ jsx18(IoTooltipContent, {
|
|
4444
4444
|
value: entry.input
|
|
4445
|
-
}
|
|
4445
|
+
}) : /* @__PURE__ */ jsx18("span", {
|
|
4446
4446
|
style: { color: DEVTOOL_COLOR_TEXT_MUTED, fontSize: "10px" },
|
|
4447
4447
|
children: "No input required or given"
|
|
4448
|
-
}
|
|
4448
|
+
}),
|
|
4449
4449
|
title: isNewInput ? "New Input" : "Input"
|
|
4450
4450
|
}
|
|
4451
|
-
}
|
|
4451
|
+
}),
|
|
4452
4452
|
isNewInput && newSparkleComp,
|
|
4453
|
-
/* @__PURE__ */
|
|
4453
|
+
/* @__PURE__ */ jsx18("span", {
|
|
4454
4454
|
style: { opacity: 0.6 },
|
|
4455
4455
|
color,
|
|
4456
4456
|
children: "→"
|
|
4457
|
-
}
|
|
4458
|
-
/* @__PURE__ */
|
|
4457
|
+
}),
|
|
4458
|
+
/* @__PURE__ */ jsx18("span", {
|
|
4459
4459
|
style: { opacity: 0.8, cursor: transportTooltip != null ? "default" : undefined },
|
|
4460
4460
|
onMouseEnter: transportTooltip != null ? (e) => setLabelAnchor(e.currentTarget.getBoundingClientRect()) : undefined,
|
|
4461
4461
|
onMouseLeave: transportTooltip != null ? () => setLabelAnchor(null) : undefined,
|
|
4462
4462
|
children: label
|
|
4463
|
-
}
|
|
4464
|
-
labelAnchor != null && transportTooltip != null && /* @__PURE__ */
|
|
4463
|
+
}),
|
|
4464
|
+
labelAnchor != null && transportTooltip != null && /* @__PURE__ */ jsx18(Tooltip, {
|
|
4465
4465
|
anchor: labelAnchor,
|
|
4466
4466
|
config: transportTooltip
|
|
4467
|
-
}
|
|
4468
|
-
/* @__PURE__ */
|
|
4467
|
+
}),
|
|
4468
|
+
/* @__PURE__ */ jsx18("span", {
|
|
4469
4469
|
style: { opacity: 0.6 },
|
|
4470
4470
|
color,
|
|
4471
4471
|
children: "→"
|
|
4472
|
-
}
|
|
4473
|
-
entry.status === "success" && entry.output !== undefined && /* @__PURE__ */
|
|
4472
|
+
}),
|
|
4473
|
+
entry.status === "success" && entry.output !== undefined && /* @__PURE__ */ jsx18(Icon, {
|
|
4474
4474
|
noBackground: true,
|
|
4475
4475
|
icon: PackageCheck,
|
|
4476
4476
|
color: !hasError ? color : "default" /* default */,
|
|
4477
4477
|
tooltip: {
|
|
4478
|
-
content: /* @__PURE__ */
|
|
4478
|
+
content: /* @__PURE__ */ jsx18(IoTooltipContent, {
|
|
4479
4479
|
value: entry.output
|
|
4480
|
-
}
|
|
4480
|
+
}),
|
|
4481
4481
|
title: isNewOutput ? "New Output" : "Output"
|
|
4482
4482
|
}
|
|
4483
|
-
}
|
|
4484
|
-
(entry.error != null || entry.abortReason != null) && /* @__PURE__ */
|
|
4483
|
+
}),
|
|
4484
|
+
(entry.error != null || entry.abortReason != null) && /* @__PURE__ */ jsx18(Icon, {
|
|
4485
4485
|
noBackground: true,
|
|
4486
4486
|
icon: CircleX2,
|
|
4487
4487
|
color: entry.status === "aborted" ? "aborted" /* aborted */ : "error" /* error */,
|
|
4488
4488
|
tooltip: {
|
|
4489
|
-
content: /* @__PURE__ */
|
|
4489
|
+
content: /* @__PURE__ */ jsx18(ActionErrorDisplay, {
|
|
4490
4490
|
entry,
|
|
4491
4491
|
compact: true
|
|
4492
|
-
}
|
|
4492
|
+
}),
|
|
4493
4493
|
title: entry.status === "aborted" ? "Aborted" : "Error",
|
|
4494
4494
|
maxWidth: 340
|
|
4495
4495
|
}
|
|
4496
|
-
}
|
|
4496
|
+
}),
|
|
4497
4497
|
isNewOutput && newSparkleComp
|
|
4498
4498
|
]
|
|
4499
|
-
}
|
|
4500
|
-
}
|
|
4499
|
+
})
|
|
4500
|
+
});
|
|
4501
4501
|
};
|
|
4502
4502
|
|
|
4503
4503
|
// src/devtools/browser/components/action_list/ActionEntryRow.tsx
|
|
4504
|
-
import {
|
|
4504
|
+
import { jsx as jsx19, jsxs as jsxs16, Fragment as Fragment10 } from "react/jsx-runtime";
|
|
4505
4505
|
var MAX_GROUP_DOTS = 5;
|
|
4506
4506
|
function getLatestChipColor(status) {
|
|
4507
4507
|
if (status === "failed")
|
|
@@ -4524,14 +4524,14 @@ function GroupDotTooltip({
|
|
|
4524
4524
|
const deltaMs = refTime - entry.startTime;
|
|
4525
4525
|
const relStr = index === 0 ? "latest run" : `−${formatRelativeAge(deltaMs)} from latest`;
|
|
4526
4526
|
const durationStr = entry.endTime != null ? `${entry.endTime - entry.startTime}ms` : "running…";
|
|
4527
|
-
return /* @__PURE__ */
|
|
4527
|
+
return /* @__PURE__ */ jsx19(Tooltip, {
|
|
4528
4528
|
anchor,
|
|
4529
4529
|
config: {
|
|
4530
4530
|
align: "center",
|
|
4531
4531
|
maxWidth: 240,
|
|
4532
|
-
content: /* @__PURE__ */
|
|
4532
|
+
content: /* @__PURE__ */ jsxs16(Fragment10, {
|
|
4533
4533
|
children: [
|
|
4534
|
-
/* @__PURE__ */
|
|
4534
|
+
/* @__PURE__ */ jsxs16("div", {
|
|
4535
4535
|
style: { color: dotColor, marginBottom: "1px" },
|
|
4536
4536
|
children: [
|
|
4537
4537
|
symbol,
|
|
@@ -4540,16 +4540,16 @@ function GroupDotTooltip({
|
|
|
4540
4540
|
" of ",
|
|
4541
4541
|
total
|
|
4542
4542
|
]
|
|
4543
|
-
}
|
|
4544
|
-
/* @__PURE__ */
|
|
4543
|
+
}),
|
|
4544
|
+
/* @__PURE__ */ jsx19("div", {
|
|
4545
4545
|
style: { color: DEVTOOL_COLOR_TEXT_SECONDARY },
|
|
4546
4546
|
children: formatTimestamp(entry.startTime)
|
|
4547
|
-
}
|
|
4548
|
-
/* @__PURE__ */
|
|
4547
|
+
}),
|
|
4548
|
+
/* @__PURE__ */ jsx19("div", {
|
|
4549
4549
|
style: { color: DEVTOOL_COLOR_TEXT_MUTED },
|
|
4550
4550
|
children: durationStr
|
|
4551
|
-
}
|
|
4552
|
-
index > 0 && /* @__PURE__ */
|
|
4551
|
+
}),
|
|
4552
|
+
index > 0 && /* @__PURE__ */ jsx19("div", {
|
|
4553
4553
|
style: {
|
|
4554
4554
|
color: DEVTOOL_COLOR_TEXT_MUTED,
|
|
4555
4555
|
marginTop: "3px",
|
|
@@ -4557,11 +4557,11 @@ function GroupDotTooltip({
|
|
|
4557
4557
|
borderTop: `1px solid ${DEVTOOL_SECTION_BACKGROUND}`
|
|
4558
4558
|
},
|
|
4559
4559
|
children: relStr
|
|
4560
|
-
}
|
|
4560
|
+
})
|
|
4561
4561
|
]
|
|
4562
|
-
}
|
|
4562
|
+
})
|
|
4563
4563
|
}
|
|
4564
|
-
}
|
|
4564
|
+
});
|
|
4565
4565
|
}
|
|
4566
4566
|
function GroupDot({
|
|
4567
4567
|
entry,
|
|
@@ -4574,9 +4574,9 @@ function GroupDot({
|
|
|
4574
4574
|
const [anchor, setAnchor] = useState10(null);
|
|
4575
4575
|
const dotColor = STATUS_COLOR[entry.status];
|
|
4576
4576
|
const hovered = anchor != null;
|
|
4577
|
-
return /* @__PURE__ */
|
|
4577
|
+
return /* @__PURE__ */ jsxs16(Fragment10, {
|
|
4578
4578
|
children: [
|
|
4579
|
-
/* @__PURE__ */
|
|
4579
|
+
/* @__PURE__ */ jsx19("button", {
|
|
4580
4580
|
"data-cuid": entry.cuid,
|
|
4581
4581
|
onClick: (e) => {
|
|
4582
4582
|
e.stopPropagation();
|
|
@@ -4597,17 +4597,17 @@ function GroupDot({
|
|
|
4597
4597
|
transform: hovered ? "scale(1.55)" : "scale(1)",
|
|
4598
4598
|
transition: "transform 0.1s ease, opacity 0.1s ease, border-color 0.1s ease"
|
|
4599
4599
|
}
|
|
4600
|
-
}
|
|
4601
|
-
hovered && anchor != null && /* @__PURE__ */
|
|
4600
|
+
}),
|
|
4601
|
+
hovered && anchor != null && /* @__PURE__ */ jsx19(GroupDotTooltip, {
|
|
4602
4602
|
entry,
|
|
4603
4603
|
index,
|
|
4604
4604
|
total,
|
|
4605
4605
|
refTime,
|
|
4606
4606
|
dotColor,
|
|
4607
4607
|
anchor
|
|
4608
|
-
}
|
|
4608
|
+
})
|
|
4609
4609
|
]
|
|
4610
|
-
}
|
|
4610
|
+
});
|
|
4611
4611
|
}
|
|
4612
4612
|
function ActionEntryRow({
|
|
4613
4613
|
entry,
|
|
@@ -4627,7 +4627,7 @@ function ActionEntryRow({
|
|
|
4627
4627
|
const nonIoBreakReasons = breakReasons?.filter((r) => r !== "new_input" /* new_input */ && r !== "new_output" /* new_output */) ?? [];
|
|
4628
4628
|
const hasBottomError = entry.error != null || entry.abortReason != null;
|
|
4629
4629
|
const hasBottomContent = externalChildEntries.length > 0 || nonIoBreakReasons.length > 0;
|
|
4630
|
-
return /* @__PURE__ */
|
|
4630
|
+
return /* @__PURE__ */ jsxs16("div", {
|
|
4631
4631
|
"data-cuid": entry.cuid,
|
|
4632
4632
|
onClick,
|
|
4633
4633
|
style: {
|
|
@@ -4644,7 +4644,7 @@ function ActionEntryRow({
|
|
|
4644
4644
|
margin: "2px 4px"
|
|
4645
4645
|
},
|
|
4646
4646
|
children: [
|
|
4647
|
-
/* @__PURE__ */
|
|
4647
|
+
/* @__PURE__ */ jsx19("div", {
|
|
4648
4648
|
style: {
|
|
4649
4649
|
position: "absolute",
|
|
4650
4650
|
left: "2em",
|
|
@@ -4655,11 +4655,11 @@ function ActionEntryRow({
|
|
|
4655
4655
|
pointerEvents: "none",
|
|
4656
4656
|
zIndex: 0
|
|
4657
4657
|
}
|
|
4658
|
-
}
|
|
4659
|
-
/* @__PURE__ */
|
|
4658
|
+
}),
|
|
4659
|
+
/* @__PURE__ */ jsxs16("div", {
|
|
4660
4660
|
style: { display: "flex", alignItems: "center", gap: "8px" },
|
|
4661
4661
|
children: [
|
|
4662
|
-
/* @__PURE__ */
|
|
4662
|
+
/* @__PURE__ */ jsx19("div", {
|
|
4663
4663
|
style: {
|
|
4664
4664
|
position: "relative",
|
|
4665
4665
|
zIndex: 1,
|
|
@@ -4669,23 +4669,23 @@ function ActionEntryRow({
|
|
|
4669
4669
|
alignItems: "center",
|
|
4670
4670
|
justifyContent: "flex-start"
|
|
4671
4671
|
},
|
|
4672
|
-
children: isLatest ? /* @__PURE__ */
|
|
4672
|
+
children: isLatest ? /* @__PURE__ */ jsx19(Chip, {
|
|
4673
4673
|
size: "sm" /* sm */,
|
|
4674
4674
|
color: getLatestChipColor(entry.status),
|
|
4675
4675
|
children: "latest"
|
|
4676
|
-
}
|
|
4676
|
+
}) : /* @__PURE__ */ jsxs16(Chip, {
|
|
4677
4677
|
size: "sm" /* sm */,
|
|
4678
4678
|
color: getLatestChipColor(entry.status),
|
|
4679
4679
|
children: [
|
|
4680
4680
|
"+",
|
|
4681
4681
|
latestTime != null ? formatRelativeAge(latestTime - entry.startTime) : "?"
|
|
4682
4682
|
]
|
|
4683
|
-
}
|
|
4684
|
-
}
|
|
4685
|
-
/* @__PURE__ */
|
|
4683
|
+
})
|
|
4684
|
+
}),
|
|
4685
|
+
/* @__PURE__ */ jsxs16("div", {
|
|
4686
4686
|
style: { flex: 1, minWidth: 0, display: "flex", alignItems: "center", gap: "0.5em" },
|
|
4687
4687
|
children: [
|
|
4688
|
-
/* @__PURE__ */
|
|
4688
|
+
/* @__PURE__ */ jsx19("span", {
|
|
4689
4689
|
style: {
|
|
4690
4690
|
color: DEVTOOL_COLOR_TEXT_SECONDARY,
|
|
4691
4691
|
fontSize: "1em",
|
|
@@ -4698,15 +4698,15 @@ function ActionEntryRow({
|
|
|
4698
4698
|
minWidth: "3em"
|
|
4699
4699
|
},
|
|
4700
4700
|
children: entry.actionId
|
|
4701
|
-
}
|
|
4702
|
-
/* @__PURE__ */
|
|
4701
|
+
}),
|
|
4702
|
+
/* @__PURE__ */ jsx19(ActionInputAndOutputChip, {
|
|
4703
4703
|
breakReasons,
|
|
4704
4704
|
entry
|
|
4705
|
-
}
|
|
4706
|
-
/* @__PURE__ */
|
|
4705
|
+
}),
|
|
4706
|
+
/* @__PURE__ */ jsx19("div", {
|
|
4707
4707
|
style: { flex: 1 }
|
|
4708
|
-
}
|
|
4709
|
-
/* @__PURE__ */
|
|
4708
|
+
}),
|
|
4709
|
+
/* @__PURE__ */ jsxs16("div", {
|
|
4710
4710
|
style: {
|
|
4711
4711
|
display: "flex",
|
|
4712
4712
|
flexDirection: "column",
|
|
@@ -4716,7 +4716,7 @@ function ActionEntryRow({
|
|
|
4716
4716
|
marginRight: "-0.2em"
|
|
4717
4717
|
},
|
|
4718
4718
|
children: [
|
|
4719
|
-
/* @__PURE__ */
|
|
4719
|
+
/* @__PURE__ */ jsx19("span", {
|
|
4720
4720
|
style: {
|
|
4721
4721
|
display: "flex",
|
|
4722
4722
|
color: DEVTOOL_COLOR_SEMANTIC_METADATA,
|
|
@@ -4728,8 +4728,8 @@ function ActionEntryRow({
|
|
|
4728
4728
|
opacity: 0.7
|
|
4729
4729
|
},
|
|
4730
4730
|
children: timestamp
|
|
4731
|
-
}
|
|
4732
|
-
/* @__PURE__ */
|
|
4731
|
+
}),
|
|
4732
|
+
/* @__PURE__ */ jsx19("span", {
|
|
4733
4733
|
style: {
|
|
4734
4734
|
display: "flex",
|
|
4735
4735
|
color: DEVTOOL_COLOR_SEMANTIC_WARNING,
|
|
@@ -4738,17 +4738,17 @@ function ActionEntryRow({
|
|
|
4738
4738
|
opacity: 0.9,
|
|
4739
4739
|
flexShrink: 0
|
|
4740
4740
|
},
|
|
4741
|
-
children: /* @__PURE__ */
|
|
4741
|
+
children: /* @__PURE__ */ jsx19(DurationDisplay, {
|
|
4742
4742
|
entry
|
|
4743
|
-
}
|
|
4744
|
-
}
|
|
4743
|
+
})
|
|
4744
|
+
})
|
|
4745
4745
|
]
|
|
4746
|
-
}
|
|
4746
|
+
})
|
|
4747
4747
|
]
|
|
4748
|
-
}
|
|
4748
|
+
})
|
|
4749
4749
|
]
|
|
4750
|
-
}
|
|
4751
|
-
hasBottomContent && /* @__PURE__ */
|
|
4750
|
+
}),
|
|
4751
|
+
hasBottomContent && /* @__PURE__ */ jsxs16("div", {
|
|
4752
4752
|
style: {
|
|
4753
4753
|
display: "flex",
|
|
4754
4754
|
flexWrap: "wrap",
|
|
@@ -4757,64 +4757,64 @@ function ActionEntryRow({
|
|
|
4757
4757
|
paddingLeft: "4.5em"
|
|
4758
4758
|
},
|
|
4759
4759
|
children: [
|
|
4760
|
-
externalChildEntries.map((child) => /* @__PURE__ */
|
|
4760
|
+
externalChildEntries.map((child) => /* @__PURE__ */ jsxs16(Fragment9, {
|
|
4761
4761
|
children: [
|
|
4762
|
-
/* @__PURE__ */
|
|
4762
|
+
/* @__PURE__ */ jsx19(Icon, {
|
|
4763
4763
|
size: "sm" /* sm */,
|
|
4764
4764
|
icon: Variable2,
|
|
4765
4765
|
color: "io_input" /* io_input */,
|
|
4766
4766
|
subtle: true,
|
|
4767
4767
|
tooltip: {
|
|
4768
|
-
content: child.input !== undefined ? /* @__PURE__ */
|
|
4768
|
+
content: child.input !== undefined ? /* @__PURE__ */ jsx19(IoTooltipContent, {
|
|
4769
4769
|
value: child.input
|
|
4770
|
-
}
|
|
4770
|
+
}) : /* @__PURE__ */ jsx19("span", {
|
|
4771
4771
|
style: { color: DEVTOOL_COLOR_TEXT_MUTED, fontSize: "10px" },
|
|
4772
4772
|
children: "No input required or given"
|
|
4773
|
-
}
|
|
4773
|
+
}),
|
|
4774
4774
|
title: `Input · ${child.actionId}`
|
|
4775
4775
|
}
|
|
4776
|
-
}
|
|
4777
|
-
/* @__PURE__ */
|
|
4776
|
+
}),
|
|
4777
|
+
/* @__PURE__ */ jsx19(HandlerChips, {
|
|
4778
4778
|
entry: child,
|
|
4779
4779
|
size: "sm" /* sm */,
|
|
4780
4780
|
subtle: true
|
|
4781
|
-
}
|
|
4782
|
-
child.status === "success" && child.output !== undefined && /* @__PURE__ */
|
|
4781
|
+
}),
|
|
4782
|
+
child.status === "success" && child.output !== undefined && /* @__PURE__ */ jsx19(Icon, {
|
|
4783
4783
|
size: "sm" /* sm */,
|
|
4784
4784
|
icon: PackageCheck2,
|
|
4785
4785
|
color: "io_output" /* io_output */,
|
|
4786
4786
|
subtle: true,
|
|
4787
4787
|
tooltip: {
|
|
4788
|
-
content: /* @__PURE__ */
|
|
4788
|
+
content: /* @__PURE__ */ jsx19(IoTooltipContent, {
|
|
4789
4789
|
value: child.output
|
|
4790
|
-
}
|
|
4790
|
+
}),
|
|
4791
4791
|
title: `Output · ${child.actionId}`
|
|
4792
4792
|
}
|
|
4793
|
-
}
|
|
4793
|
+
})
|
|
4794
4794
|
]
|
|
4795
|
-
}, child.actionId
|
|
4796
|
-
nonIoBreakReasons.map((reason) => /* @__PURE__ */
|
|
4795
|
+
}, child.actionId)),
|
|
4796
|
+
nonIoBreakReasons.map((reason) => /* @__PURE__ */ jsx19(Chip, {
|
|
4797
4797
|
color: "default" /* default */,
|
|
4798
4798
|
subtle: true,
|
|
4799
4799
|
children: reason
|
|
4800
|
-
}, reason
|
|
4801
|
-
externalChildEntries.length > 0 && hasBottomError && /* @__PURE__ */
|
|
4800
|
+
}, reason)),
|
|
4801
|
+
externalChildEntries.length > 0 && hasBottomError && /* @__PURE__ */ jsx19(Icon, {
|
|
4802
4802
|
size: "sm" /* sm */,
|
|
4803
4803
|
icon: CircleX3,
|
|
4804
4804
|
color: entry.status === "aborted" ? "aborted" /* aborted */ : "error" /* error */,
|
|
4805
4805
|
subtle: true,
|
|
4806
4806
|
tooltip: {
|
|
4807
|
-
content: /* @__PURE__ */
|
|
4807
|
+
content: /* @__PURE__ */ jsx19(ActionErrorDisplay, {
|
|
4808
4808
|
entry,
|
|
4809
4809
|
compact: true
|
|
4810
|
-
}
|
|
4810
|
+
}),
|
|
4811
4811
|
title: entry.status === "aborted" ? "Aborted" : "Error",
|
|
4812
4812
|
maxWidth: 340
|
|
4813
4813
|
}
|
|
4814
|
-
}
|
|
4814
|
+
})
|
|
4815
4815
|
]
|
|
4816
|
-
}
|
|
4817
|
-
hasGroup && /* @__PURE__ */
|
|
4816
|
+
}),
|
|
4817
|
+
hasGroup && /* @__PURE__ */ jsxs16("div", {
|
|
4818
4818
|
style: {
|
|
4819
4819
|
display: "flex",
|
|
4820
4820
|
flexWrap: "wrap",
|
|
@@ -4824,15 +4824,15 @@ function ActionEntryRow({
|
|
|
4824
4824
|
paddingBottom: "2px"
|
|
4825
4825
|
},
|
|
4826
4826
|
children: [
|
|
4827
|
-
groupEntries.slice(0, MAX_GROUP_DOTS).map((e, i) => /* @__PURE__ */
|
|
4827
|
+
groupEntries.slice(0, MAX_GROUP_DOTS).map((e, i) => /* @__PURE__ */ jsx19(GroupDot, {
|
|
4828
4828
|
entry: e,
|
|
4829
4829
|
index: i,
|
|
4830
4830
|
total: groupEntries.length,
|
|
4831
4831
|
refTime: groupEntries[0].startTime,
|
|
4832
4832
|
isActive: selectedGroupCuid === e.cuid,
|
|
4833
4833
|
onSelect: () => onSelectGroupEntry?.(e.cuid)
|
|
4834
|
-
}, e.cuid
|
|
4835
|
-
groupEntries.length > MAX_GROUP_DOTS && /* @__PURE__ */
|
|
4834
|
+
}, e.cuid)),
|
|
4835
|
+
groupEntries.length > MAX_GROUP_DOTS && /* @__PURE__ */ jsxs16("span", {
|
|
4836
4836
|
style: {
|
|
4837
4837
|
fontSize: "0.7em",
|
|
4838
4838
|
opacity: 0.5,
|
|
@@ -4843,15 +4843,15 @@ function ActionEntryRow({
|
|
|
4843
4843
|
"+ ",
|
|
4844
4844
|
groupEntries.length - MAX_GROUP_DOTS
|
|
4845
4845
|
]
|
|
4846
|
-
}
|
|
4846
|
+
})
|
|
4847
4847
|
]
|
|
4848
|
-
}
|
|
4848
|
+
})
|
|
4849
4849
|
]
|
|
4850
|
-
}
|
|
4850
|
+
});
|
|
4851
4851
|
}
|
|
4852
4852
|
|
|
4853
4853
|
// src/devtools/browser/components/action_list/ActionList.tsx
|
|
4854
|
-
import {
|
|
4854
|
+
import { jsx as jsx20, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
4855
4855
|
function getBreakReasons(current, previous) {
|
|
4856
4856
|
const reasons = [];
|
|
4857
4857
|
const inputChanged = current.inputHash != null && previous.inputHash != null ? current.inputHash !== previous.inputHash : safeStringify(current.input, 0) !== safeStringify(previous.input, 0);
|
|
@@ -4918,29 +4918,29 @@ function ActionList({
|
|
|
4918
4918
|
containerRef.current?.querySelector(`[data-cuid="${repCuid}"]`)?.scrollIntoView({ block: "nearest" });
|
|
4919
4919
|
}, [selectedCuid, flatItems]);
|
|
4920
4920
|
if (groups.length === 0) {
|
|
4921
|
-
return /* @__PURE__ */
|
|
4921
|
+
return /* @__PURE__ */ jsx20("div", {
|
|
4922
4922
|
style,
|
|
4923
|
-
children: /* @__PURE__ */
|
|
4923
|
+
children: /* @__PURE__ */ jsx20("div", {
|
|
4924
4924
|
style: { padding: "24px", textAlign: "center", color: DEVTOOL_COLOR_TEXT_MUTED },
|
|
4925
4925
|
children: "No actions recorded yet"
|
|
4926
|
-
}
|
|
4927
|
-
}
|
|
4926
|
+
})
|
|
4927
|
+
});
|
|
4928
4928
|
}
|
|
4929
|
-
return /* @__PURE__ */
|
|
4929
|
+
return /* @__PURE__ */ jsxs17("div", {
|
|
4930
4930
|
ref: containerRef,
|
|
4931
4931
|
style,
|
|
4932
4932
|
children: [
|
|
4933
4933
|
flatItems.map((item) => {
|
|
4934
4934
|
const key = getFlatItemKey(item);
|
|
4935
4935
|
const { group } = item;
|
|
4936
|
-
return /* @__PURE__ */
|
|
4936
|
+
return /* @__PURE__ */ jsxs17("div", {
|
|
4937
4937
|
style: {
|
|
4938
4938
|
borderBottom: `1px solid ${DEVTOOL_LIST_GROUP_DIVIDER}`,
|
|
4939
4939
|
position: "relative",
|
|
4940
4940
|
overflow: "hidden"
|
|
4941
4941
|
},
|
|
4942
4942
|
children: [
|
|
4943
|
-
/* @__PURE__ */
|
|
4943
|
+
/* @__PURE__ */ jsx20("div", {
|
|
4944
4944
|
style: {
|
|
4945
4945
|
position: "absolute",
|
|
4946
4946
|
inset: 0,
|
|
@@ -4948,8 +4948,8 @@ function ActionList({
|
|
|
4948
4948
|
background: "linear-gradient(90deg, transparent 0%, rgba(148, 210, 255, 0.13) 50%, transparent 100%)",
|
|
4949
4949
|
animation: "__nice-action-shine 0.65s ease-out forwards"
|
|
4950
4950
|
}
|
|
4951
|
-
}, group.representative.cuid
|
|
4952
|
-
/* @__PURE__ */
|
|
4951
|
+
}, group.representative.cuid),
|
|
4952
|
+
/* @__PURE__ */ jsx20(ActionEntryRow, {
|
|
4953
4953
|
entry: group.representative,
|
|
4954
4954
|
isSelected: selectedCuid === group.representative.cuid || group.rest.some((e) => e.cuid === selectedCuid),
|
|
4955
4955
|
isLatest: item.groupIndex === 0,
|
|
@@ -4960,21 +4960,21 @@ function ActionList({
|
|
|
4960
4960
|
selectedGroupCuid: selectedCuid,
|
|
4961
4961
|
onSelectGroupEntry: (cuid) => onSubClick(cuid, selectedCuid === cuid),
|
|
4962
4962
|
onClick: () => onGroupClick(group)
|
|
4963
|
-
}
|
|
4963
|
+
})
|
|
4964
4964
|
]
|
|
4965
|
-
}, key
|
|
4965
|
+
}, key);
|
|
4966
4966
|
}),
|
|
4967
|
-
/* @__PURE__ */
|
|
4967
|
+
/* @__PURE__ */ jsx20("div", {
|
|
4968
4968
|
style: { padding: "24px", textAlign: "center", color: DEVTOOL_COLOR_TEXT_MUTED },
|
|
4969
4969
|
children: "Start of action history"
|
|
4970
|
-
}
|
|
4970
|
+
})
|
|
4971
4971
|
]
|
|
4972
|
-
}
|
|
4972
|
+
});
|
|
4973
4973
|
}
|
|
4974
4974
|
|
|
4975
4975
|
// src/devtools/browser/components/PanelChrome.tsx
|
|
4976
4976
|
import { useState as useState11 } from "react";
|
|
4977
|
-
import {
|
|
4977
|
+
import { jsx as jsx21, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
4978
4978
|
var MONO_FONT = "ui-monospace, 'Cascadia Code', 'Source Code Pro', monospace";
|
|
4979
4979
|
var SANS_FONT = "ui-sans-serif, system-ui, sans-serif";
|
|
4980
4980
|
var DOCKED_SIZE_MIN = 140;
|
|
@@ -5008,7 +5008,7 @@ function PanelHeader({
|
|
|
5008
5008
|
onClear,
|
|
5009
5009
|
openOthers
|
|
5010
5010
|
}) {
|
|
5011
|
-
return /* @__PURE__ */
|
|
5011
|
+
return /* @__PURE__ */ jsxs18("div", {
|
|
5012
5012
|
style: {
|
|
5013
5013
|
display: "flex",
|
|
5014
5014
|
alignItems: "center",
|
|
@@ -5020,10 +5020,10 @@ function PanelHeader({
|
|
|
5020
5020
|
flexShrink: 0
|
|
5021
5021
|
},
|
|
5022
5022
|
children: [
|
|
5023
|
-
/* @__PURE__ */
|
|
5023
|
+
/* @__PURE__ */ jsxs18("div", {
|
|
5024
5024
|
style: { display: "flex", alignItems: "center", gap: "8px", minWidth: 0 },
|
|
5025
5025
|
children: [
|
|
5026
|
-
/* @__PURE__ */
|
|
5026
|
+
/* @__PURE__ */ jsx21("span", {
|
|
5027
5027
|
style: {
|
|
5028
5028
|
color: DEVTOOL_COLOR_SEMANTIC_SYSTEM,
|
|
5029
5029
|
fontWeight: "bold",
|
|
@@ -5031,8 +5031,8 @@ function PanelHeader({
|
|
|
5031
5031
|
whiteSpace: "nowrap"
|
|
5032
5032
|
},
|
|
5033
5033
|
children: "⚡ action"
|
|
5034
|
-
}
|
|
5035
|
-
openOthers?.map((item) => /* @__PURE__ */
|
|
5034
|
+
}),
|
|
5035
|
+
openOthers?.map((item) => /* @__PURE__ */ jsxs18("button", {
|
|
5036
5036
|
onClick: item.onOpen,
|
|
5037
5037
|
title: `Open ${item.label} devtools`,
|
|
5038
5038
|
style: {
|
|
@@ -5050,28 +5050,28 @@ function PanelHeader({
|
|
|
5050
5050
|
whiteSpace: "nowrap"
|
|
5051
5051
|
},
|
|
5052
5052
|
children: [
|
|
5053
|
-
/* @__PURE__ */
|
|
5053
|
+
/* @__PURE__ */ jsx21("span", {
|
|
5054
5054
|
children: item.icon
|
|
5055
|
-
}
|
|
5056
|
-
/* @__PURE__ */
|
|
5055
|
+
}),
|
|
5056
|
+
/* @__PURE__ */ jsx21("span", {
|
|
5057
5057
|
children: item.label
|
|
5058
|
-
}
|
|
5059
|
-
item.badge != null && /* @__PURE__ */
|
|
5058
|
+
}),
|
|
5059
|
+
item.badge != null && /* @__PURE__ */ jsx21("span", {
|
|
5060
5060
|
style: { color: DEVTOOL_COLOR_SEMANTIC_SYSTEM },
|
|
5061
5061
|
children: item.badge
|
|
5062
|
-
}
|
|
5062
|
+
})
|
|
5063
5063
|
]
|
|
5064
|
-
}, item.id
|
|
5064
|
+
}, item.id))
|
|
5065
5065
|
]
|
|
5066
|
-
}
|
|
5067
|
-
/* @__PURE__ */
|
|
5066
|
+
}),
|
|
5067
|
+
/* @__PURE__ */ jsxs18("div", {
|
|
5068
5068
|
style: { display: "flex", gap: "10px", alignItems: "center" },
|
|
5069
5069
|
children: [
|
|
5070
|
-
/* @__PURE__ */
|
|
5070
|
+
/* @__PURE__ */ jsx21(PositionPicker, {
|
|
5071
5071
|
position,
|
|
5072
5072
|
onChange: onPositionChange
|
|
5073
|
-
}
|
|
5074
|
-
onClear != null && /* @__PURE__ */
|
|
5073
|
+
}),
|
|
5074
|
+
onClear != null && /* @__PURE__ */ jsx21("button", {
|
|
5075
5075
|
onClick: onClear,
|
|
5076
5076
|
style: {
|
|
5077
5077
|
background: "none",
|
|
@@ -5082,8 +5082,8 @@ function PanelHeader({
|
|
|
5082
5082
|
padding: "0"
|
|
5083
5083
|
},
|
|
5084
5084
|
children: "clear"
|
|
5085
|
-
}
|
|
5086
|
-
/* @__PURE__ */
|
|
5085
|
+
}),
|
|
5086
|
+
/* @__PURE__ */ jsx21("button", {
|
|
5087
5087
|
onClick: onClose,
|
|
5088
5088
|
style: {
|
|
5089
5089
|
background: "none",
|
|
@@ -5095,27 +5095,27 @@ function PanelHeader({
|
|
|
5095
5095
|
lineHeight: "1"
|
|
5096
5096
|
},
|
|
5097
5097
|
children: "×"
|
|
5098
|
-
}
|
|
5098
|
+
})
|
|
5099
5099
|
]
|
|
5100
|
-
}
|
|
5100
|
+
})
|
|
5101
5101
|
]
|
|
5102
|
-
}
|
|
5102
|
+
});
|
|
5103
5103
|
}
|
|
5104
5104
|
function PositionPicker({
|
|
5105
5105
|
position,
|
|
5106
5106
|
onChange
|
|
5107
5107
|
}) {
|
|
5108
|
-
return /* @__PURE__ */
|
|
5108
|
+
return /* @__PURE__ */ jsx21("div", {
|
|
5109
5109
|
title: "Move / dock panel",
|
|
5110
5110
|
style: { display: "grid", gridTemplateColumns: "repeat(3, 9px)", gap: "2px", padding: "2px" },
|
|
5111
5111
|
children: POSITION_GRID.map(({ key, pos }) => {
|
|
5112
5112
|
if (pos == null)
|
|
5113
|
-
return /* @__PURE__ */
|
|
5113
|
+
return /* @__PURE__ */ jsx21("div", {
|
|
5114
5114
|
style: { width: "9px", height: "9px" }
|
|
5115
|
-
}, key
|
|
5115
|
+
}, key);
|
|
5116
5116
|
const isTopBottom = pos === "dock-top" || pos === "dock-bottom";
|
|
5117
5117
|
const isActive = pos === position;
|
|
5118
|
-
return /* @__PURE__ */
|
|
5118
|
+
return /* @__PURE__ */ jsx21("div", {
|
|
5119
5119
|
title: pos,
|
|
5120
5120
|
onClick: () => onChange(pos),
|
|
5121
5121
|
style: {
|
|
@@ -5126,17 +5126,17 @@ function PositionPicker({
|
|
|
5126
5126
|
justifyContent: "center",
|
|
5127
5127
|
cursor: "pointer"
|
|
5128
5128
|
},
|
|
5129
|
-
children: /* @__PURE__ */
|
|
5129
|
+
children: /* @__PURE__ */ jsx21("div", {
|
|
5130
5130
|
style: {
|
|
5131
5131
|
width: isTopBottom ? "9px" : "3px",
|
|
5132
5132
|
height: isTopBottom ? "3px" : "9px",
|
|
5133
5133
|
borderRadius: "1px",
|
|
5134
5134
|
background: isActive ? DEVTOOL_COLOR_SEMANTIC_SYSTEM : DEVTOOL_COLOR_TEXT_FAINT
|
|
5135
5135
|
}
|
|
5136
|
-
}
|
|
5137
|
-
}, key
|
|
5136
|
+
})
|
|
5137
|
+
}, key);
|
|
5138
5138
|
})
|
|
5139
|
-
}
|
|
5139
|
+
});
|
|
5140
5140
|
}
|
|
5141
5141
|
function ResizeHandle({
|
|
5142
5142
|
dockSide,
|
|
@@ -5162,7 +5162,7 @@ function ResizeHandle({
|
|
|
5162
5162
|
window.addEventListener("mouseup", onUp);
|
|
5163
5163
|
};
|
|
5164
5164
|
const edgeStyle = dockSide === "bottom" ? { top: 0, left: 0, right: 0, height: "5px", cursor: "ns-resize" } : dockSide === "top" ? { bottom: 0, left: 0, right: 0, height: "5px", cursor: "ns-resize" } : dockSide === "right" ? { top: 0, bottom: 0, left: 0, width: "5px", cursor: "ew-resize" } : { top: 0, bottom: 0, right: 0, width: "5px", cursor: "ew-resize" };
|
|
5165
|
-
return /* @__PURE__ */
|
|
5165
|
+
return /* @__PURE__ */ jsx21("div", {
|
|
5166
5166
|
onMouseDown,
|
|
5167
5167
|
style: {
|
|
5168
5168
|
position: "absolute",
|
|
@@ -5170,7 +5170,7 @@ function ResizeHandle({
|
|
|
5170
5170
|
background: "transparent",
|
|
5171
5171
|
...edgeStyle
|
|
5172
5172
|
}
|
|
5173
|
-
}
|
|
5173
|
+
});
|
|
5174
5174
|
}
|
|
5175
5175
|
var SPLIT_RATIO_MIN = 0.15;
|
|
5176
5176
|
var SPLIT_RATIO_MAX = 0.85;
|
|
@@ -5196,7 +5196,7 @@ function SplitHandle({
|
|
|
5196
5196
|
window.addEventListener("mousemove", onMove);
|
|
5197
5197
|
window.addEventListener("mouseup", onUp);
|
|
5198
5198
|
};
|
|
5199
|
-
return /* @__PURE__ */
|
|
5199
|
+
return /* @__PURE__ */ jsx21("div", {
|
|
5200
5200
|
onMouseDown,
|
|
5201
5201
|
onMouseEnter: () => setHovered(true),
|
|
5202
5202
|
onMouseLeave: () => setHovered(false),
|
|
@@ -5208,10 +5208,10 @@ function SplitHandle({
|
|
|
5208
5208
|
opacity: hovered ? 0.6 : 1,
|
|
5209
5209
|
zIndex: 5
|
|
5210
5210
|
}
|
|
5211
|
-
}
|
|
5211
|
+
});
|
|
5212
5212
|
}
|
|
5213
5213
|
function DevtoolsLauncher({ items }) {
|
|
5214
|
-
return /* @__PURE__ */
|
|
5214
|
+
return /* @__PURE__ */ jsx21("div", {
|
|
5215
5215
|
style: {
|
|
5216
5216
|
position: "fixed",
|
|
5217
5217
|
bottom: "16px",
|
|
@@ -5221,7 +5221,7 @@ function DevtoolsLauncher({ items }) {
|
|
|
5221
5221
|
fontFamily: MONO_FONT,
|
|
5222
5222
|
fontSize: "12px"
|
|
5223
5223
|
},
|
|
5224
|
-
children: /* @__PURE__ */
|
|
5224
|
+
children: /* @__PURE__ */ jsx21("div", {
|
|
5225
5225
|
style: {
|
|
5226
5226
|
display: "flex",
|
|
5227
5227
|
background: DEVTOOL_SECTION_BACKGROUND,
|
|
@@ -5230,7 +5230,7 @@ function DevtoolsLauncher({ items }) {
|
|
|
5230
5230
|
overflow: "hidden",
|
|
5231
5231
|
boxShadow: "0 8px 24px rgba(0,0,0,0.35)"
|
|
5232
5232
|
},
|
|
5233
|
-
children: items.map((item, i) => /* @__PURE__ */
|
|
5233
|
+
children: items.map((item, i) => /* @__PURE__ */ jsxs18("button", {
|
|
5234
5234
|
onClick: item.onOpen,
|
|
5235
5235
|
style: {
|
|
5236
5236
|
display: "flex",
|
|
@@ -5247,20 +5247,20 @@ function DevtoolsLauncher({ items }) {
|
|
|
5247
5247
|
lineHeight: "1.5"
|
|
5248
5248
|
},
|
|
5249
5249
|
children: [
|
|
5250
|
-
/* @__PURE__ */
|
|
5250
|
+
/* @__PURE__ */ jsx21("span", {
|
|
5251
5251
|
children: item.icon
|
|
5252
|
-
}
|
|
5253
|
-
/* @__PURE__ */
|
|
5252
|
+
}),
|
|
5253
|
+
/* @__PURE__ */ jsx21("span", {
|
|
5254
5254
|
children: item.label
|
|
5255
|
-
}
|
|
5256
|
-
item.badge != null && /* @__PURE__ */
|
|
5255
|
+
}),
|
|
5256
|
+
item.badge != null && /* @__PURE__ */ jsx21("span", {
|
|
5257
5257
|
style: { color: DEVTOOL_COLOR_SEMANTIC_SYSTEM },
|
|
5258
5258
|
children: item.badge
|
|
5259
|
-
}
|
|
5259
|
+
})
|
|
5260
5260
|
]
|
|
5261
|
-
}, item.id
|
|
5262
|
-
}
|
|
5263
|
-
}
|
|
5261
|
+
}, item.id))
|
|
5262
|
+
})
|
|
5263
|
+
});
|
|
5264
5264
|
}
|
|
5265
5265
|
|
|
5266
5266
|
// src/devtools/browser/devtools_dock.ts
|
|
@@ -5371,7 +5371,7 @@ function getDevtoolsDockCoordinator() {
|
|
|
5371
5371
|
}
|
|
5372
5372
|
|
|
5373
5373
|
// src/devtools/browser/NiceActionDevtools.tsx
|
|
5374
|
-
import {
|
|
5374
|
+
import { jsx as jsx22, jsxs as jsxs19, Fragment as Fragment11 } from "react/jsx-runtime";
|
|
5375
5375
|
if (typeof document !== "undefined" && !document.getElementById("__nice-action-devtools-styles")) {
|
|
5376
5376
|
const style = document.createElement("style");
|
|
5377
5377
|
style.id = "__nice-action-devtools-styles";
|
|
@@ -5472,10 +5472,12 @@ function groupEntries(entries) {
|
|
|
5472
5472
|
return groups;
|
|
5473
5473
|
}
|
|
5474
5474
|
function NiceActionDevtools(props) {
|
|
5475
|
-
if (
|
|
5476
|
-
|
|
5475
|
+
if (true) {
|
|
5476
|
+
return null;
|
|
5477
|
+
}
|
|
5478
|
+
return /* @__PURE__ */ jsx22(NiceActionDevtools_Panel, {
|
|
5477
5479
|
...props
|
|
5478
|
-
}
|
|
5480
|
+
});
|
|
5479
5481
|
}
|
|
5480
5482
|
function NiceActionDevtools_Panel({
|
|
5481
5483
|
core,
|
|
@@ -5560,9 +5562,9 @@ function NiceActionDevtools_Panel({
|
|
|
5560
5562
|
};
|
|
5561
5563
|
if (!isOpen) {
|
|
5562
5564
|
if (view.isPrimary && !view.anyOpen) {
|
|
5563
|
-
return /* @__PURE__ */
|
|
5565
|
+
return /* @__PURE__ */ jsx22(DevtoolsLauncher, {
|
|
5564
5566
|
items: view.devtools
|
|
5565
|
-
}
|
|
5567
|
+
});
|
|
5566
5568
|
}
|
|
5567
5569
|
return null;
|
|
5568
5570
|
}
|
|
@@ -5612,16 +5614,16 @@ function NiceActionDevtools_Panel({
|
|
|
5612
5614
|
},
|
|
5613
5615
|
childEntriesMap
|
|
5614
5616
|
};
|
|
5615
|
-
return /* @__PURE__ */
|
|
5617
|
+
return /* @__PURE__ */ jsxs19("div", {
|
|
5616
5618
|
id: "__nice-action-devtools-panel",
|
|
5617
5619
|
style: panelStyle,
|
|
5618
5620
|
children: [
|
|
5619
|
-
/* @__PURE__ */
|
|
5621
|
+
/* @__PURE__ */ jsx22(ResizeHandle, {
|
|
5620
5622
|
dockSide,
|
|
5621
5623
|
dockedSize,
|
|
5622
5624
|
onChange: (size) => setPrefs(isHorizDock ? { dockedHeight: size } : { dockedWidth: size })
|
|
5623
|
-
}
|
|
5624
|
-
/* @__PURE__ */
|
|
5625
|
+
}),
|
|
5626
|
+
/* @__PURE__ */ jsx22(PanelHeader, {
|
|
5625
5627
|
position,
|
|
5626
5628
|
onPositionChange: (p) => setPrefs({ position: p }),
|
|
5627
5629
|
onClose: () => setPrefs({ isOpen: false }),
|
|
@@ -5630,8 +5632,8 @@ function NiceActionDevtools_Panel({
|
|
|
5630
5632
|
setSelectedCuid(null);
|
|
5631
5633
|
} : undefined,
|
|
5632
5634
|
openOthers: view.otherClosed
|
|
5633
|
-
}
|
|
5634
|
-
/* @__PURE__ */
|
|
5635
|
+
}),
|
|
5636
|
+
/* @__PURE__ */ jsxs19("div", {
|
|
5635
5637
|
style: {
|
|
5636
5638
|
flex: 1,
|
|
5637
5639
|
display: "flex",
|
|
@@ -5640,7 +5642,7 @@ function NiceActionDevtools_Panel({
|
|
|
5640
5642
|
minHeight: 0
|
|
5641
5643
|
},
|
|
5642
5644
|
children: [
|
|
5643
|
-
/* @__PURE__ */
|
|
5645
|
+
/* @__PURE__ */ jsx22("div", {
|
|
5644
5646
|
style: {
|
|
5645
5647
|
flexGrow: selectedEntry != null ? 1 - detailRatio : 1,
|
|
5646
5648
|
flexShrink: 1,
|
|
@@ -5648,18 +5650,18 @@ function NiceActionDevtools_Panel({
|
|
|
5648
5650
|
minWidth: 0,
|
|
5649
5651
|
minHeight: 0
|
|
5650
5652
|
},
|
|
5651
|
-
children: /* @__PURE__ */
|
|
5653
|
+
children: /* @__PURE__ */ jsx22(ActionList, {
|
|
5652
5654
|
...virtualListProps,
|
|
5653
5655
|
style: { width: "100%", height: "100%", overflowY: "auto" }
|
|
5654
|
-
}
|
|
5655
|
-
}
|
|
5656
|
-
selectedEntry != null && /* @__PURE__ */
|
|
5656
|
+
})
|
|
5657
|
+
}),
|
|
5658
|
+
selectedEntry != null && /* @__PURE__ */ jsxs19(Fragment11, {
|
|
5657
5659
|
children: [
|
|
5658
|
-
/* @__PURE__ */
|
|
5660
|
+
/* @__PURE__ */ jsx22(SplitHandle, {
|
|
5659
5661
|
horizontal: isHorizDock,
|
|
5660
5662
|
onRatioChange: (ratio) => setPrefs({ detailRatio: ratio })
|
|
5661
|
-
}
|
|
5662
|
-
/* @__PURE__ */
|
|
5663
|
+
}),
|
|
5664
|
+
/* @__PURE__ */ jsx22("div", {
|
|
5663
5665
|
style: {
|
|
5664
5666
|
flexGrow: detailRatio,
|
|
5665
5667
|
flexShrink: 1,
|
|
@@ -5677,19 +5679,19 @@ function NiceActionDevtools_Panel({
|
|
|
5677
5679
|
boxShadow: "inset 0 18px 36px -14px rgba(0,0,0,0.8)"
|
|
5678
5680
|
}
|
|
5679
5681
|
},
|
|
5680
|
-
children: /* @__PURE__ */
|
|
5682
|
+
children: /* @__PURE__ */ jsx22(ActionDetailPanel, {
|
|
5681
5683
|
entry: selectedEntry,
|
|
5682
5684
|
parent: selectedEntryParent,
|
|
5683
5685
|
childEntries: selectedEntryChildren,
|
|
5684
5686
|
onSelectEntry: (cuid) => setSelectedCuid(cuid)
|
|
5685
|
-
}, selectedEntry.cuid
|
|
5686
|
-
}
|
|
5687
|
+
}, selectedEntry.cuid)
|
|
5688
|
+
})
|
|
5687
5689
|
]
|
|
5688
|
-
}
|
|
5690
|
+
})
|
|
5689
5691
|
]
|
|
5690
|
-
}
|
|
5692
|
+
})
|
|
5691
5693
|
]
|
|
5692
|
-
}
|
|
5694
|
+
});
|
|
5693
5695
|
}
|
|
5694
5696
|
export {
|
|
5695
5697
|
NiceActionDevtools,
|