@nice-code/action 0.5.4 → 0.5.5
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
|
|
@@ -2466,7 +2466,7 @@ async function resolveCompiledPosition(fileUrl, line, col) {
|
|
|
2466
2466
|
}
|
|
2467
2467
|
|
|
2468
2468
|
// src/devtools/browser/components/StackTraceSection.tsx
|
|
2469
|
-
import {
|
|
2469
|
+
import { jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
2470
2470
|
var INTERNAL_PATTERNS = [
|
|
2471
2471
|
"/nice-action/",
|
|
2472
2472
|
"@nice-code/action",
|
|
@@ -2620,7 +2620,7 @@ function ProjectRootSetupModal({
|
|
|
2620
2620
|
if (trimmed !== "")
|
|
2621
2621
|
onSave(trimmed);
|
|
2622
2622
|
};
|
|
2623
|
-
return /* @__PURE__ */
|
|
2623
|
+
return /* @__PURE__ */ jsxs3("div", {
|
|
2624
2624
|
style: {
|
|
2625
2625
|
position: "fixed",
|
|
2626
2626
|
inset: 0,
|
|
@@ -2630,11 +2630,11 @@ function ProjectRootSetupModal({
|
|
|
2630
2630
|
justifyContent: "center"
|
|
2631
2631
|
},
|
|
2632
2632
|
children: [
|
|
2633
|
-
/* @__PURE__ */
|
|
2633
|
+
/* @__PURE__ */ jsx4("div", {
|
|
2634
2634
|
onClick: onCancel,
|
|
2635
2635
|
style: { position: "absolute", inset: 0, background: "rgba(0, 0, 0, 0.72)" }
|
|
2636
|
-
}
|
|
2637
|
-
/* @__PURE__ */
|
|
2636
|
+
}),
|
|
2637
|
+
/* @__PURE__ */ jsxs3("form", {
|
|
2638
2638
|
onSubmit: handleSubmit,
|
|
2639
2639
|
style: {
|
|
2640
2640
|
position: "relative",
|
|
@@ -2649,14 +2649,14 @@ function ProjectRootSetupModal({
|
|
|
2649
2649
|
flexDirection: "column"
|
|
2650
2650
|
},
|
|
2651
2651
|
children: [
|
|
2652
|
-
/* @__PURE__ */
|
|
2652
|
+
/* @__PURE__ */ jsxs3("div", {
|
|
2653
2653
|
style: {
|
|
2654
2654
|
background: DEVTOOL_TOOLTIP_TITLE_BACKGROUND,
|
|
2655
2655
|
borderBottom: `1px solid ${DEVTOOL_TOOLTIP_BORDER}`,
|
|
2656
2656
|
padding: "10px 14px"
|
|
2657
2657
|
},
|
|
2658
2658
|
children: [
|
|
2659
|
-
/* @__PURE__ */
|
|
2659
|
+
/* @__PURE__ */ jsx4("div", {
|
|
2660
2660
|
style: {
|
|
2661
2661
|
color: DEVTOOL_COLOR_TEXT_EMPHASIS,
|
|
2662
2662
|
fontSize: "12px",
|
|
@@ -2664,41 +2664,41 @@ function ProjectRootSetupModal({
|
|
|
2664
2664
|
marginBottom: "2px"
|
|
2665
2665
|
},
|
|
2666
2666
|
children: "Set project root"
|
|
2667
|
-
}
|
|
2668
|
-
/* @__PURE__ */
|
|
2667
|
+
}),
|
|
2668
|
+
/* @__PURE__ */ jsxs3("div", {
|
|
2669
2669
|
style: { color: DEVTOOL_COLOR_TEXT_MUTED, fontSize: "10px" },
|
|
2670
2670
|
children: [
|
|
2671
2671
|
"Runtime:",
|
|
2672
2672
|
" ",
|
|
2673
|
-
/* @__PURE__ */
|
|
2673
|
+
/* @__PURE__ */ jsx4("span", {
|
|
2674
2674
|
style: {
|
|
2675
2675
|
color: DEVTOOL_COLOR_SEMANTIC_SYSTEM,
|
|
2676
2676
|
fontFamily: "ui-monospace, 'Cascadia Code', 'Source Code Pro', monospace"
|
|
2677
2677
|
},
|
|
2678
2678
|
children: envId
|
|
2679
|
-
}
|
|
2679
|
+
})
|
|
2680
2680
|
]
|
|
2681
|
-
}
|
|
2681
|
+
})
|
|
2682
2682
|
]
|
|
2683
|
-
}
|
|
2684
|
-
/* @__PURE__ */
|
|
2683
|
+
}),
|
|
2684
|
+
/* @__PURE__ */ jsxs3("div", {
|
|
2685
2685
|
style: { padding: "14px", display: "flex", flexDirection: "column", gap: "8px" },
|
|
2686
2686
|
children: [
|
|
2687
|
-
/* @__PURE__ */
|
|
2687
|
+
/* @__PURE__ */ jsxs3("div", {
|
|
2688
2688
|
style: { color: DEVTOOL_COLOR_TEXT_MUTED, fontSize: "10px", lineHeight: 1.4 },
|
|
2689
2689
|
children: [
|
|
2690
2690
|
"Provide the absolute path to this project's root so that root-relative source file paths (e.g.",
|
|
2691
2691
|
" ",
|
|
2692
|
-
/* @__PURE__ */
|
|
2692
|
+
/* @__PURE__ */ jsx4("span", {
|
|
2693
2693
|
style: {
|
|
2694
2694
|
fontFamily: "ui-monospace, 'Cascadia Code', 'Source Code Pro', monospace"
|
|
2695
2695
|
},
|
|
2696
2696
|
children: "src/App.tsx"
|
|
2697
|
-
}
|
|
2697
|
+
}),
|
|
2698
2698
|
") can be opened in VS Code."
|
|
2699
2699
|
]
|
|
2700
|
-
}
|
|
2701
|
-
/* @__PURE__ */
|
|
2700
|
+
}),
|
|
2701
|
+
/* @__PURE__ */ jsx4("input", {
|
|
2702
2702
|
ref: inputRef,
|
|
2703
2703
|
value,
|
|
2704
2704
|
onChange: (e) => setValue(e.currentTarget.value),
|
|
@@ -2715,10 +2715,10 @@ function ProjectRootSetupModal({
|
|
|
2715
2715
|
width: "100%",
|
|
2716
2716
|
boxSizing: "border-box"
|
|
2717
2717
|
}
|
|
2718
|
-
}
|
|
2718
|
+
})
|
|
2719
2719
|
]
|
|
2720
|
-
}
|
|
2721
|
-
/* @__PURE__ */
|
|
2720
|
+
}),
|
|
2721
|
+
/* @__PURE__ */ jsxs3("div", {
|
|
2722
2722
|
style: {
|
|
2723
2723
|
display: "flex",
|
|
2724
2724
|
justifyContent: "flex-end",
|
|
@@ -2727,7 +2727,7 @@ function ProjectRootSetupModal({
|
|
|
2727
2727
|
borderTop: `1px solid ${DEVTOOL_PANEL_BORDER}`
|
|
2728
2728
|
},
|
|
2729
2729
|
children: [
|
|
2730
|
-
/* @__PURE__ */
|
|
2730
|
+
/* @__PURE__ */ jsx4("button", {
|
|
2731
2731
|
type: "button",
|
|
2732
2732
|
onClick: onCancel,
|
|
2733
2733
|
style: {
|
|
@@ -2740,8 +2740,8 @@ function ProjectRootSetupModal({
|
|
|
2740
2740
|
cursor: "pointer"
|
|
2741
2741
|
},
|
|
2742
2742
|
children: "Cancel"
|
|
2743
|
-
}
|
|
2744
|
-
/* @__PURE__ */
|
|
2743
|
+
}),
|
|
2744
|
+
/* @__PURE__ */ jsx4("button", {
|
|
2745
2745
|
type: "submit",
|
|
2746
2746
|
disabled: value.trim() === "",
|
|
2747
2747
|
style: {
|
|
@@ -2755,13 +2755,13 @@ function ProjectRootSetupModal({
|
|
|
2755
2755
|
opacity: value.trim() === "" ? 0.5 : 1
|
|
2756
2756
|
},
|
|
2757
2757
|
children: "Save"
|
|
2758
|
-
}
|
|
2758
|
+
})
|
|
2759
2759
|
]
|
|
2760
|
-
}
|
|
2760
|
+
})
|
|
2761
2761
|
]
|
|
2762
|
-
}
|
|
2762
|
+
})
|
|
2763
2763
|
]
|
|
2764
|
-
}
|
|
2764
|
+
});
|
|
2765
2765
|
}
|
|
2766
2766
|
function OpenInVscodeButton({
|
|
2767
2767
|
frame,
|
|
@@ -2790,7 +2790,7 @@ function OpenInVscodeButton({
|
|
|
2790
2790
|
flexShrink: 0
|
|
2791
2791
|
};
|
|
2792
2792
|
if (needsSetup) {
|
|
2793
|
-
return /* @__PURE__ */
|
|
2793
|
+
return /* @__PURE__ */ jsx4("button", {
|
|
2794
2794
|
onClick: (e) => {
|
|
2795
2795
|
e.stopPropagation();
|
|
2796
2796
|
onNeedSetup();
|
|
@@ -2805,13 +2805,13 @@ function OpenInVscodeButton({
|
|
|
2805
2805
|
border: "none",
|
|
2806
2806
|
padding: 0
|
|
2807
2807
|
},
|
|
2808
|
-
children: /* @__PURE__ */
|
|
2808
|
+
children: /* @__PURE__ */ jsx4(ExternalLink, {
|
|
2809
2809
|
size: 10,
|
|
2810
2810
|
strokeWidth: 1.8
|
|
2811
|
-
}
|
|
2812
|
-
}
|
|
2811
|
+
})
|
|
2812
|
+
});
|
|
2813
2813
|
}
|
|
2814
|
-
return /* @__PURE__ */
|
|
2814
|
+
return /* @__PURE__ */ jsx4("a", {
|
|
2815
2815
|
href: url,
|
|
2816
2816
|
onClick: (e) => e.stopPropagation(),
|
|
2817
2817
|
onMouseEnter: () => setHovered(true),
|
|
@@ -2822,11 +2822,11 @@ function OpenInVscodeButton({
|
|
|
2822
2822
|
color: DEVTOOL_COLOR_TEXT_SECONDARY,
|
|
2823
2823
|
textDecoration: "none"
|
|
2824
2824
|
},
|
|
2825
|
-
children: /* @__PURE__ */
|
|
2825
|
+
children: /* @__PURE__ */ jsx4(ExternalLink, {
|
|
2826
2826
|
size: 10,
|
|
2827
2827
|
strokeWidth: 1.8
|
|
2828
|
-
}
|
|
2829
|
-
}
|
|
2828
|
+
})
|
|
2829
|
+
});
|
|
2830
2830
|
}
|
|
2831
2831
|
function countUserFrames(_runtime, stack) {
|
|
2832
2832
|
if (stack == null)
|
|
@@ -2880,9 +2880,9 @@ function StackTraceSection({
|
|
|
2880
2880
|
[runtimeKey]: path
|
|
2881
2881
|
}));
|
|
2882
2882
|
};
|
|
2883
|
-
return /* @__PURE__ */
|
|
2883
|
+
return /* @__PURE__ */ jsxs3("div", {
|
|
2884
2884
|
children: [
|
|
2885
|
-
/* @__PURE__ */
|
|
2885
|
+
/* @__PURE__ */ jsxs3("div", {
|
|
2886
2886
|
style: {
|
|
2887
2887
|
display: "flex",
|
|
2888
2888
|
alignItems: "center",
|
|
@@ -2890,17 +2890,17 @@ function StackTraceSection({
|
|
|
2890
2890
|
marginBottom: "3px"
|
|
2891
2891
|
},
|
|
2892
2892
|
children: [
|
|
2893
|
-
/* @__PURE__ */
|
|
2893
|
+
/* @__PURE__ */ jsx4(SectionLabel, {
|
|
2894
2894
|
label,
|
|
2895
2895
|
color
|
|
2896
|
-
}
|
|
2897
|
-
hasInternalFrames && /* @__PURE__ */
|
|
2896
|
+
}),
|
|
2897
|
+
hasInternalFrames && /* @__PURE__ */ jsx4("span", {
|
|
2898
2898
|
style: { color: DEVTOOL_COLOR_TEXT_MUTED, fontSize: "9px" },
|
|
2899
2899
|
children: !showAll ? "user only" : `all (${allFrames.length})`
|
|
2900
|
-
}
|
|
2900
|
+
})
|
|
2901
2901
|
]
|
|
2902
|
-
}
|
|
2903
|
-
/* @__PURE__ */
|
|
2902
|
+
}),
|
|
2903
|
+
/* @__PURE__ */ jsxs3("div", {
|
|
2904
2904
|
onClick: () => setShowAll((s) => !s),
|
|
2905
2905
|
style: {
|
|
2906
2906
|
background: DEVTOOL_STACK_TRACE_BACKGROUND,
|
|
@@ -2910,7 +2910,7 @@ function StackTraceSection({
|
|
|
2910
2910
|
cursor: "pointer"
|
|
2911
2911
|
},
|
|
2912
2912
|
children: [
|
|
2913
|
-
displayFrames.length === 0 ? /* @__PURE__ */
|
|
2913
|
+
displayFrames.length === 0 ? /* @__PURE__ */ jsx4("div", {
|
|
2914
2914
|
style: {
|
|
2915
2915
|
padding: "6px 10px",
|
|
2916
2916
|
color: DEVTOOL_COLOR_TEXT_MUTED,
|
|
@@ -2918,14 +2918,14 @@ function StackTraceSection({
|
|
|
2918
2918
|
fontStyle: "italic"
|
|
2919
2919
|
},
|
|
2920
2920
|
children: "no user frames captured"
|
|
2921
|
-
}
|
|
2921
|
+
}) : displayFrames.map((frame, idx) => {
|
|
2922
2922
|
const displayFile = formatFrameFile(frame.file);
|
|
2923
2923
|
const slashIdx = displayFile.lastIndexOf("/");
|
|
2924
2924
|
const folderPrefix = slashIdx >= 0 ? displayFile.slice(0, slashIdx + 1) : "";
|
|
2925
2925
|
const bareFilename = slashIdx >= 0 ? displayFile.slice(slashIdx + 1) : displayFile;
|
|
2926
2926
|
const titleStr = frame.file != null ? frame.file : frame.raw;
|
|
2927
2927
|
const isUser = !frame.isInternal;
|
|
2928
|
-
return /* @__PURE__ */
|
|
2928
|
+
return /* @__PURE__ */ jsxs3("div", {
|
|
2929
2929
|
title: titleStr,
|
|
2930
2930
|
style: {
|
|
2931
2931
|
position: "relative",
|
|
@@ -2937,7 +2937,7 @@ function StackTraceSection({
|
|
|
2937
2937
|
borderBottom: `1px solid ${DEVTOOL_LIST_BASE_BACKGROUND}`
|
|
2938
2938
|
},
|
|
2939
2939
|
children: [
|
|
2940
|
-
/* @__PURE__ */
|
|
2940
|
+
/* @__PURE__ */ jsx4("span", {
|
|
2941
2941
|
style: {
|
|
2942
2942
|
color: isUser ? DEVTOOL_STACK_FRAME_USER_NUMBER : DEVTOOL_STACK_FRAME_INTERNAL_NUMBER,
|
|
2943
2943
|
fontSize: "10px",
|
|
@@ -2947,8 +2947,8 @@ function StackTraceSection({
|
|
|
2947
2947
|
fontVariantNumeric: "tabular-nums"
|
|
2948
2948
|
},
|
|
2949
2949
|
children: idx + 1
|
|
2950
|
-
}
|
|
2951
|
-
/* @__PURE__ */
|
|
2950
|
+
}),
|
|
2951
|
+
/* @__PURE__ */ jsxs3("div", {
|
|
2952
2952
|
style: {
|
|
2953
2953
|
display: "flex",
|
|
2954
2954
|
flexDirection: "column",
|
|
@@ -2956,9 +2956,9 @@ function StackTraceSection({
|
|
|
2956
2956
|
lineHeight: 1.2
|
|
2957
2957
|
},
|
|
2958
2958
|
children: [
|
|
2959
|
-
/* @__PURE__ */
|
|
2959
|
+
/* @__PURE__ */ jsx4("div", {
|
|
2960
2960
|
style: { display: "flex", alignItems: "center" },
|
|
2961
|
-
children: /* @__PURE__ */
|
|
2961
|
+
children: /* @__PURE__ */ jsx4("span", {
|
|
2962
2962
|
style: {
|
|
2963
2963
|
color: isUser ? DEVTOOL_STACK_FRAME_USER_FUNCTION : DEVTOOL_STACK_FRAME_INTERNAL_FUNCTION,
|
|
2964
2964
|
fontSize: "12px",
|
|
@@ -2968,12 +2968,12 @@ function StackTraceSection({
|
|
|
2968
2968
|
whiteSpace: "nowrap"
|
|
2969
2969
|
},
|
|
2970
2970
|
children: frame.fn ?? "(anonymous)"
|
|
2971
|
-
}
|
|
2972
|
-
}
|
|
2973
|
-
/* @__PURE__ */
|
|
2971
|
+
})
|
|
2972
|
+
}),
|
|
2973
|
+
/* @__PURE__ */ jsxs3("div", {
|
|
2974
2974
|
style: { display: "flex", alignItems: "baseline", overflow: "hidden" },
|
|
2975
2975
|
children: [
|
|
2976
|
-
folderPrefix !== "" && /* @__PURE__ */
|
|
2976
|
+
folderPrefix !== "" && /* @__PURE__ */ jsx4("span", {
|
|
2977
2977
|
style: {
|
|
2978
2978
|
color: isUser ? DEVTOOL_STACK_FRAME_USER_FOLDER : DEVTOOL_STACK_FRAME_INTERNAL_FOLDER,
|
|
2979
2979
|
fontSize: "10px",
|
|
@@ -2984,8 +2984,8 @@ function StackTraceSection({
|
|
|
2984
2984
|
minWidth: 0
|
|
2985
2985
|
},
|
|
2986
2986
|
children: folderPrefix
|
|
2987
|
-
}
|
|
2988
|
-
/* @__PURE__ */
|
|
2987
|
+
}),
|
|
2988
|
+
/* @__PURE__ */ jsx4("span", {
|
|
2989
2989
|
style: {
|
|
2990
2990
|
color: isUser ? DEVTOOL_STACK_FRAME_USER_FILE : DEVTOOL_STACK_FRAME_INTERNAL_FILE,
|
|
2991
2991
|
fontSize: "10px",
|
|
@@ -2993,8 +2993,8 @@ function StackTraceSection({
|
|
|
2993
2993
|
flexShrink: 0
|
|
2994
2994
|
},
|
|
2995
2995
|
children: bareFilename
|
|
2996
|
-
}
|
|
2997
|
-
frame.line != null && /* @__PURE__ */
|
|
2996
|
+
}),
|
|
2997
|
+
frame.line != null && /* @__PURE__ */ jsxs3("span", {
|
|
2998
2998
|
style: {
|
|
2999
2999
|
color: isUser ? DEVTOOL_STACK_FRAME_USER_LINE : DEVTOOL_STACK_FRAME_INTERNAL_LINE,
|
|
3000
3000
|
fontSize: "10px",
|
|
@@ -3006,20 +3006,20 @@ function StackTraceSection({
|
|
|
3006
3006
|
":",
|
|
3007
3007
|
frame.line
|
|
3008
3008
|
]
|
|
3009
|
-
}
|
|
3009
|
+
})
|
|
3010
3010
|
]
|
|
3011
|
-
}
|
|
3011
|
+
})
|
|
3012
3012
|
]
|
|
3013
|
-
}
|
|
3014
|
-
/* @__PURE__ */
|
|
3013
|
+
}),
|
|
3014
|
+
/* @__PURE__ */ jsx4(OpenInVscodeButton, {
|
|
3015
3015
|
frame,
|
|
3016
3016
|
projectRoot,
|
|
3017
3017
|
onNeedSetup: () => setShowSetupModal(true)
|
|
3018
|
-
}
|
|
3018
|
+
})
|
|
3019
3019
|
]
|
|
3020
|
-
}, frame.raw
|
|
3020
|
+
}, frame.raw);
|
|
3021
3021
|
}),
|
|
3022
|
-
Array.from({ length: phantomFrameCount }, (_, i) => i).map((i) => /* @__PURE__ */
|
|
3022
|
+
Array.from({ length: phantomFrameCount }, (_, i) => i).map((i) => /* @__PURE__ */ jsxs3("div", {
|
|
3023
3023
|
"aria-hidden": "true",
|
|
3024
3024
|
style: {
|
|
3025
3025
|
visibility: "hidden",
|
|
@@ -3030,39 +3030,39 @@ function StackTraceSection({
|
|
|
3030
3030
|
borderBottom: `1px solid ${DEVTOOL_LIST_BASE_BACKGROUND}`
|
|
3031
3031
|
},
|
|
3032
3032
|
children: [
|
|
3033
|
-
/* @__PURE__ */
|
|
3033
|
+
/* @__PURE__ */ jsx4("span", {
|
|
3034
3034
|
style: { fontSize: "10px", minWidth: "10px", flexShrink: 0 },
|
|
3035
3035
|
children: "0"
|
|
3036
|
-
}
|
|
3037
|
-
/* @__PURE__ */
|
|
3036
|
+
}),
|
|
3037
|
+
/* @__PURE__ */ jsxs3("div", {
|
|
3038
3038
|
style: { display: "flex", flexDirection: "column", gap: "0.15em", lineHeight: 1.2 },
|
|
3039
3039
|
children: [
|
|
3040
|
-
/* @__PURE__ */
|
|
3040
|
+
/* @__PURE__ */ jsx4("div", {
|
|
3041
3041
|
style: { fontSize: "12px" },
|
|
3042
3042
|
children: "placeholder"
|
|
3043
|
-
}
|
|
3044
|
-
/* @__PURE__ */
|
|
3043
|
+
}),
|
|
3044
|
+
/* @__PURE__ */ jsx4("div", {
|
|
3045
3045
|
style: { fontSize: "10px" },
|
|
3046
3046
|
children: "placeholder/file.ts:1"
|
|
3047
|
-
}
|
|
3047
|
+
})
|
|
3048
3048
|
]
|
|
3049
|
-
}
|
|
3049
|
+
})
|
|
3050
3050
|
]
|
|
3051
|
-
}, `phantom-${i}
|
|
3051
|
+
}, `phantom-${i}`))
|
|
3052
3052
|
]
|
|
3053
|
-
}
|
|
3054
|
-
showSetupModal && /* @__PURE__ */
|
|
3053
|
+
}),
|
|
3054
|
+
showSetupModal && /* @__PURE__ */ jsx4(ProjectRootSetupModal, {
|
|
3055
3055
|
envId: runtime.envId,
|
|
3056
3056
|
currentValue: projectRoot ?? "",
|
|
3057
3057
|
onSave: handleSaveProjectRoot,
|
|
3058
3058
|
onCancel: () => setShowSetupModal(false)
|
|
3059
|
-
}
|
|
3059
|
+
})
|
|
3060
3060
|
]
|
|
3061
|
-
}
|
|
3061
|
+
});
|
|
3062
3062
|
}
|
|
3063
3063
|
|
|
3064
3064
|
// src/devtools/browser/components/ActionErrorDisplay.tsx
|
|
3065
|
-
import {
|
|
3065
|
+
import { jsx as jsx5, jsxs as jsxs4, Fragment } from "react/jsx-runtime";
|
|
3066
3066
|
var MONO3 = "ui-monospace, 'Cascadia Code', 'Source Code Pro', monospace";
|
|
3067
3067
|
var SANS2 = "ui-sans-serif, system-ui, -apple-system, sans-serif";
|
|
3068
3068
|
function FullErrorContent({
|
|
@@ -3072,29 +3072,29 @@ function FullErrorContent({
|
|
|
3072
3072
|
color,
|
|
3073
3073
|
runtime
|
|
3074
3074
|
}) {
|
|
3075
|
-
return /* @__PURE__ */
|
|
3075
|
+
return /* @__PURE__ */ jsxs4(Fragment, {
|
|
3076
3076
|
children: [
|
|
3077
|
-
isNiceErrorJson(error) ? /* @__PURE__ */
|
|
3077
|
+
isNiceErrorJson(error) ? /* @__PURE__ */ jsx5(NiceErrorDisplay, {
|
|
3078
3078
|
error,
|
|
3079
3079
|
label,
|
|
3080
3080
|
color
|
|
3081
|
-
}
|
|
3081
|
+
}) : /* @__PURE__ */ jsx5(DetailSection, {
|
|
3082
3082
|
label,
|
|
3083
3083
|
value: error,
|
|
3084
3084
|
color
|
|
3085
|
-
}
|
|
3086
|
-
/* @__PURE__ */
|
|
3085
|
+
}),
|
|
3086
|
+
/* @__PURE__ */ jsx5(StackTraceSection, {
|
|
3087
3087
|
runtime,
|
|
3088
3088
|
label: "Error Stack",
|
|
3089
3089
|
stack: errorStack,
|
|
3090
3090
|
color
|
|
3091
|
-
}
|
|
3091
|
+
})
|
|
3092
3092
|
]
|
|
3093
|
-
}
|
|
3093
|
+
});
|
|
3094
3094
|
}
|
|
3095
3095
|
function CompactErrorContent({ value, color }) {
|
|
3096
3096
|
if (isNiceErrorJson(value)) {
|
|
3097
|
-
return /* @__PURE__ */
|
|
3097
|
+
return /* @__PURE__ */ jsxs4("div", {
|
|
3098
3098
|
style: {
|
|
3099
3099
|
display: "flex",
|
|
3100
3100
|
flexDirection: "column",
|
|
@@ -3103,7 +3103,7 @@ function CompactErrorContent({ value, color }) {
|
|
|
3103
3103
|
minWidth: 0
|
|
3104
3104
|
},
|
|
3105
3105
|
children: [
|
|
3106
|
-
/* @__PURE__ */
|
|
3106
|
+
/* @__PURE__ */ jsx5("div", {
|
|
3107
3107
|
style: {
|
|
3108
3108
|
color,
|
|
3109
3109
|
fontFamily: SANS2,
|
|
@@ -3115,8 +3115,8 @@ function CompactErrorContent({ value, color }) {
|
|
|
3115
3115
|
textAlign: "left"
|
|
3116
3116
|
},
|
|
3117
3117
|
children: value.message
|
|
3118
|
-
}
|
|
3119
|
-
/* @__PURE__ */
|
|
3118
|
+
}),
|
|
3119
|
+
/* @__PURE__ */ jsxs4("div", {
|
|
3120
3120
|
style: {
|
|
3121
3121
|
display: "flex",
|
|
3122
3122
|
flexWrap: "wrap",
|
|
@@ -3125,7 +3125,7 @@ function CompactErrorContent({ value, color }) {
|
|
|
3125
3125
|
minWidth: 0
|
|
3126
3126
|
},
|
|
3127
3127
|
children: [
|
|
3128
|
-
value.ids.map((id) => /* @__PURE__ */
|
|
3128
|
+
value.ids.map((id) => /* @__PURE__ */ jsx5("span", {
|
|
3129
3129
|
style: {
|
|
3130
3130
|
color,
|
|
3131
3131
|
fontFamily: MONO3,
|
|
@@ -3135,8 +3135,8 @@ function CompactErrorContent({ value, color }) {
|
|
|
3135
3135
|
overflowWrap: "anywhere"
|
|
3136
3136
|
},
|
|
3137
3137
|
children: id
|
|
3138
|
-
}, id
|
|
3139
|
-
/* @__PURE__ */
|
|
3138
|
+
}, id)),
|
|
3139
|
+
/* @__PURE__ */ jsx5("span", {
|
|
3140
3140
|
style: {
|
|
3141
3141
|
color: DEVTOOL_COLOR_TEXT_MUTED,
|
|
3142
3142
|
fontFamily: MONO3,
|
|
@@ -3145,16 +3145,16 @@ function CompactErrorContent({ value, color }) {
|
|
|
3145
3145
|
overflowWrap: "anywhere"
|
|
3146
3146
|
},
|
|
3147
3147
|
children: value.def.domain
|
|
3148
|
-
}
|
|
3148
|
+
})
|
|
3149
3149
|
]
|
|
3150
|
-
}
|
|
3150
|
+
})
|
|
3151
3151
|
]
|
|
3152
|
-
}
|
|
3152
|
+
});
|
|
3153
3153
|
}
|
|
3154
3154
|
const text = typeof value === "string" ? value : value != null ? String(value) : null;
|
|
3155
3155
|
if (text == null)
|
|
3156
3156
|
return null;
|
|
3157
|
-
return /* @__PURE__ */
|
|
3157
|
+
return /* @__PURE__ */ jsx5("div", {
|
|
3158
3158
|
style: {
|
|
3159
3159
|
color,
|
|
3160
3160
|
fontFamily: SANS2,
|
|
@@ -3164,7 +3164,7 @@ function CompactErrorContent({ value, color }) {
|
|
|
3164
3164
|
overflowWrap: "anywhere"
|
|
3165
3165
|
},
|
|
3166
3166
|
children: text
|
|
3167
|
-
}
|
|
3167
|
+
});
|
|
3168
3168
|
}
|
|
3169
3169
|
function ActionErrorDisplay({
|
|
3170
3170
|
entry,
|
|
@@ -3174,59 +3174,59 @@ function ActionErrorDisplay({
|
|
|
3174
3174
|
if (status === "action-error") {
|
|
3175
3175
|
const color = DEVTOOL_COLOR_SEMANTIC_ERROR;
|
|
3176
3176
|
if (compact)
|
|
3177
|
-
return /* @__PURE__ */
|
|
3177
|
+
return /* @__PURE__ */ jsx5(CompactErrorContent, {
|
|
3178
3178
|
value: error,
|
|
3179
3179
|
color
|
|
3180
|
-
}
|
|
3181
|
-
return /* @__PURE__ */
|
|
3180
|
+
});
|
|
3181
|
+
return /* @__PURE__ */ jsx5(FullErrorContent, {
|
|
3182
3182
|
runtime: entry.meta.originClient,
|
|
3183
3183
|
label: "Action Error",
|
|
3184
3184
|
error,
|
|
3185
3185
|
errorStack,
|
|
3186
3186
|
color
|
|
3187
|
-
}
|
|
3187
|
+
});
|
|
3188
3188
|
}
|
|
3189
3189
|
if (status === "failed") {
|
|
3190
3190
|
const color = DEVTOOL_COLOR_SEMANTIC_ERROR;
|
|
3191
3191
|
if (compact)
|
|
3192
|
-
return /* @__PURE__ */
|
|
3192
|
+
return /* @__PURE__ */ jsx5(CompactErrorContent, {
|
|
3193
3193
|
value: error,
|
|
3194
3194
|
color
|
|
3195
|
-
}
|
|
3196
|
-
return /* @__PURE__ */
|
|
3195
|
+
});
|
|
3196
|
+
return /* @__PURE__ */ jsx5(FullErrorContent, {
|
|
3197
3197
|
runtime: entry.meta.originClient,
|
|
3198
3198
|
label: "Error",
|
|
3199
3199
|
error,
|
|
3200
3200
|
errorStack,
|
|
3201
3201
|
color
|
|
3202
|
-
}
|
|
3202
|
+
});
|
|
3203
3203
|
}
|
|
3204
3204
|
if (status === "aborted") {
|
|
3205
3205
|
const color = DEVTOOL_COLOR_SEMANTIC_METADATA;
|
|
3206
3206
|
if (compact)
|
|
3207
|
-
return /* @__PURE__ */
|
|
3207
|
+
return /* @__PURE__ */ jsx5(CompactErrorContent, {
|
|
3208
3208
|
value: abortReason,
|
|
3209
3209
|
color
|
|
3210
|
-
}
|
|
3211
|
-
return /* @__PURE__ */
|
|
3210
|
+
});
|
|
3211
|
+
return /* @__PURE__ */ jsxs4(Fragment, {
|
|
3212
3212
|
children: [
|
|
3213
|
-
abortReason != null && (isNiceErrorJson(abortReason) ? /* @__PURE__ */
|
|
3213
|
+
abortReason != null && (isNiceErrorJson(abortReason) ? /* @__PURE__ */ jsx5(NiceErrorDisplay, {
|
|
3214
3214
|
error: abortReason,
|
|
3215
3215
|
label: "Abort Reason",
|
|
3216
3216
|
color
|
|
3217
|
-
}
|
|
3217
|
+
}) : /* @__PURE__ */ jsx5(DetailSection, {
|
|
3218
3218
|
label: "Abort Reason",
|
|
3219
3219
|
value: abortReason,
|
|
3220
3220
|
color
|
|
3221
|
-
}
|
|
3222
|
-
/* @__PURE__ */
|
|
3221
|
+
})),
|
|
3222
|
+
/* @__PURE__ */ jsx5(StackTraceSection, {
|
|
3223
3223
|
runtime: entry.meta.originClient,
|
|
3224
3224
|
label: "Abort Stack",
|
|
3225
3225
|
stack: errorStack,
|
|
3226
3226
|
color
|
|
3227
|
-
}
|
|
3227
|
+
})
|
|
3228
3228
|
]
|
|
3229
|
-
}
|
|
3229
|
+
});
|
|
3230
3230
|
}
|
|
3231
3231
|
return null;
|
|
3232
3232
|
}
|
|
@@ -3239,7 +3239,7 @@ import { useState as useState4 } from "react";
|
|
|
3239
3239
|
|
|
3240
3240
|
// src/devtools/browser/components/Tooltip.tsx
|
|
3241
3241
|
import { useState as useState3 } from "react";
|
|
3242
|
-
import {
|
|
3242
|
+
import { jsx as jsx6, jsxs as jsxs5, Fragment as Fragment2 } from "react/jsx-runtime";
|
|
3243
3243
|
function Tooltip({
|
|
3244
3244
|
anchor,
|
|
3245
3245
|
config,
|
|
@@ -3272,7 +3272,7 @@ function Tooltip({
|
|
|
3272
3272
|
if (showAbove)
|
|
3273
3273
|
transform = "translateY(-100%)";
|
|
3274
3274
|
}
|
|
3275
|
-
return /* @__PURE__ */
|
|
3275
|
+
return /* @__PURE__ */ jsxs5("div", {
|
|
3276
3276
|
style: {
|
|
3277
3277
|
position: "fixed",
|
|
3278
3278
|
left,
|
|
@@ -3294,7 +3294,7 @@ function Tooltip({
|
|
|
3294
3294
|
overflowWrap: "anywhere"
|
|
3295
3295
|
},
|
|
3296
3296
|
children: [
|
|
3297
|
-
resolvedTitle != null && /* @__PURE__ */
|
|
3297
|
+
resolvedTitle != null && /* @__PURE__ */ jsx6("div", {
|
|
3298
3298
|
style: {
|
|
3299
3299
|
background: DEVTOOL_TOOLTIP_TITLE_BACKGROUND,
|
|
3300
3300
|
padding: "6px 8px",
|
|
@@ -3308,15 +3308,15 @@ function Tooltip({
|
|
|
3308
3308
|
borderBottom: `1px solid ${DEVTOOL_TOOLTIP_TITLE_BOTTOM_BORDER}`
|
|
3309
3309
|
},
|
|
3310
3310
|
children: resolvedTitle
|
|
3311
|
-
}
|
|
3312
|
-
/* @__PURE__ */
|
|
3311
|
+
}),
|
|
3312
|
+
/* @__PURE__ */ jsx6("div", {
|
|
3313
3313
|
style: {
|
|
3314
3314
|
padding: "6px 8px"
|
|
3315
3315
|
},
|
|
3316
3316
|
children: resolvedContent
|
|
3317
|
-
}
|
|
3317
|
+
})
|
|
3318
3318
|
]
|
|
3319
|
-
}
|
|
3319
|
+
});
|
|
3320
3320
|
}
|
|
3321
3321
|
function HoverTooltip({
|
|
3322
3322
|
config,
|
|
@@ -3325,24 +3325,24 @@ function HoverTooltip({
|
|
|
3325
3325
|
}) {
|
|
3326
3326
|
const [anchor, setAnchor] = useState3(null);
|
|
3327
3327
|
const enabled = config != null;
|
|
3328
|
-
return /* @__PURE__ */
|
|
3328
|
+
return /* @__PURE__ */ jsxs5(Fragment2, {
|
|
3329
3329
|
children: [
|
|
3330
|
-
/* @__PURE__ */
|
|
3330
|
+
/* @__PURE__ */ jsx6("span", {
|
|
3331
3331
|
onMouseEnter: enabled ? (e) => setAnchor(e.currentTarget.getBoundingClientRect()) : undefined,
|
|
3332
3332
|
onMouseLeave: enabled ? () => setAnchor(null) : undefined,
|
|
3333
3333
|
style: { ...style, cursor: enabled ? "default" : style?.cursor },
|
|
3334
3334
|
children
|
|
3335
|
-
}
|
|
3336
|
-
enabled && anchor != null && config != null && /* @__PURE__ */
|
|
3335
|
+
}),
|
|
3336
|
+
enabled && anchor != null && config != null && /* @__PURE__ */ jsx6(Tooltip, {
|
|
3337
3337
|
anchor,
|
|
3338
3338
|
config
|
|
3339
|
-
}
|
|
3339
|
+
})
|
|
3340
3340
|
]
|
|
3341
|
-
}
|
|
3341
|
+
});
|
|
3342
3342
|
}
|
|
3343
3343
|
|
|
3344
3344
|
// src/devtools/browser/components/Chip.tsx
|
|
3345
|
-
import {
|
|
3345
|
+
import { jsx as jsx7, jsxs as jsxs6, Fragment as Fragment3 } from "react/jsx-runtime";
|
|
3346
3346
|
var CHIP_SIZE_STYLES = {
|
|
3347
3347
|
["sm" /* sm */]: { fontSize: "0.8em", padding: "1px 3px" },
|
|
3348
3348
|
["md" /* md */]: { fontSize: "0.9em", padding: "1px 4px" },
|
|
@@ -3362,9 +3362,9 @@ function Chip({
|
|
|
3362
3362
|
const colorEntry = SEMANTIC_COLORS[color];
|
|
3363
3363
|
const resolvedColor = subtle ? colorEntry.subtle?.color ?? colorEntry.color : colorEntry.color;
|
|
3364
3364
|
const resolvedBorderColor = subtle ? colorEntry.subtle?.borderColor ?? "transparent" : colorEntry.borderColor;
|
|
3365
|
-
return /* @__PURE__ */
|
|
3365
|
+
return /* @__PURE__ */ jsxs6(Fragment3, {
|
|
3366
3366
|
children: [
|
|
3367
|
-
/* @__PURE__ */
|
|
3367
|
+
/* @__PURE__ */ jsx7("span", {
|
|
3368
3368
|
onMouseEnter: hasTooltip ? (e) => setAnchor(e.currentTarget.getBoundingClientRect()) : undefined,
|
|
3369
3369
|
onMouseLeave: hasTooltip ? () => setAnchor(null) : undefined,
|
|
3370
3370
|
style: {
|
|
@@ -3381,18 +3381,18 @@ function Chip({
|
|
|
3381
3381
|
cursor: hasTooltip ? "default" : undefined
|
|
3382
3382
|
},
|
|
3383
3383
|
children
|
|
3384
|
-
}
|
|
3385
|
-
anchor != null && hasTooltip && /* @__PURE__ */
|
|
3384
|
+
}),
|
|
3385
|
+
anchor != null && hasTooltip && /* @__PURE__ */ jsx7(Tooltip, {
|
|
3386
3386
|
anchor,
|
|
3387
3387
|
config: tooltip
|
|
3388
|
-
}
|
|
3388
|
+
})
|
|
3389
3389
|
]
|
|
3390
|
-
}
|
|
3390
|
+
});
|
|
3391
3391
|
}
|
|
3392
3392
|
|
|
3393
3393
|
// src/devtools/browser/components/Icon.tsx
|
|
3394
3394
|
import { useState as useState5 } from "react";
|
|
3395
|
-
import {
|
|
3395
|
+
import { jsx as jsx8, jsxs as jsxs7, Fragment as Fragment4 } from "react/jsx-runtime";
|
|
3396
3396
|
var BASE_ICON_SIDE_LENGTH_EM = 1.6;
|
|
3397
3397
|
var ICON_GAP_EM = 0.3;
|
|
3398
3398
|
function Icon({
|
|
@@ -3411,9 +3411,9 @@ function Icon({
|
|
|
3411
3411
|
const finalIcons = Array.isArray(IconComponent) ? IconComponent : [IconComponent];
|
|
3412
3412
|
const fullIconWidthEm = (finalIcons.length - 1) * ICON_GAP_EM + finalIcons.length * BASE_ICON_SIDE_LENGTH_EM * getSizeValue(size);
|
|
3413
3413
|
const iconSideLengthEm = `${BASE_ICON_SIDE_LENGTH_EM * getSizeValue(size)}em`;
|
|
3414
|
-
return /* @__PURE__ */
|
|
3414
|
+
return /* @__PURE__ */ jsxs7(Fragment4, {
|
|
3415
3415
|
children: [
|
|
3416
|
-
/* @__PURE__ */
|
|
3416
|
+
/* @__PURE__ */ jsx8("div", {
|
|
3417
3417
|
onMouseEnter: hasTooltip ? (e) => setAnchor(e.currentTarget.getBoundingClientRect()) : undefined,
|
|
3418
3418
|
onMouseLeave: hasTooltip ? () => setAnchor(null) : undefined,
|
|
3419
3419
|
style: {
|
|
@@ -3430,29 +3430,29 @@ function Icon({
|
|
|
3430
3430
|
cursor: hasTooltip ? "default" : undefined,
|
|
3431
3431
|
...style
|
|
3432
3432
|
},
|
|
3433
|
-
children: /* @__PURE__ */
|
|
3433
|
+
children: /* @__PURE__ */ jsx8("div", {
|
|
3434
3434
|
style: { display: "flex", alignItems: "center", gap: `${ICON_GAP_EM}em` },
|
|
3435
|
-
children: finalIcons.map((Comp, i) => /* @__PURE__ */
|
|
3435
|
+
children: finalIcons.map((Comp, i) => /* @__PURE__ */ jsx8(Comp, {
|
|
3436
3436
|
size: iconSideLengthEm,
|
|
3437
3437
|
strokeWidth: 2.6
|
|
3438
|
-
}, `${Comp.name}-${i}
|
|
3439
|
-
}
|
|
3440
|
-
}
|
|
3441
|
-
anchor != null && hasTooltip && /* @__PURE__ */
|
|
3438
|
+
}, `${Comp.name}-${i}`))
|
|
3439
|
+
})
|
|
3440
|
+
}),
|
|
3441
|
+
anchor != null && hasTooltip && /* @__PURE__ */ jsx8(Tooltip, {
|
|
3442
3442
|
anchor,
|
|
3443
3443
|
config: tooltip
|
|
3444
|
-
}
|
|
3444
|
+
})
|
|
3445
3445
|
]
|
|
3446
|
-
}
|
|
3446
|
+
});
|
|
3447
3447
|
}
|
|
3448
3448
|
|
|
3449
3449
|
// src/devtools/browser/components/DomainChip.tsx
|
|
3450
|
-
import {
|
|
3450
|
+
import { jsx as jsx9, jsxs as jsxs8, Fragment as Fragment5 } from "react/jsx-runtime";
|
|
3451
3451
|
function DomainHierarchyContent({ allDomains }) {
|
|
3452
|
-
return /* @__PURE__ */
|
|
3452
|
+
return /* @__PURE__ */ jsx9(Fragment5, {
|
|
3453
3453
|
children: allDomains.map((d, i) => {
|
|
3454
3454
|
const isCurrent = i === allDomains.length - 1;
|
|
3455
|
-
return /* @__PURE__ */
|
|
3455
|
+
return /* @__PURE__ */ jsxs8("div", {
|
|
3456
3456
|
style: {
|
|
3457
3457
|
display: "flex",
|
|
3458
3458
|
alignItems: "center",
|
|
@@ -3461,7 +3461,7 @@ function DomainHierarchyContent({ allDomains }) {
|
|
|
3461
3461
|
paddingTop: i > 0 ? "0.1rem" : undefined
|
|
3462
3462
|
},
|
|
3463
3463
|
children: [
|
|
3464
|
-
/* @__PURE__ */
|
|
3464
|
+
/* @__PURE__ */ jsx9("span", {
|
|
3465
3465
|
style: {
|
|
3466
3466
|
fontSize: "0.8rem",
|
|
3467
3467
|
height: "0.6em",
|
|
@@ -3473,19 +3473,19 @@ function DomainHierarchyContent({ allDomains }) {
|
|
|
3473
3473
|
justifyContent: "center"
|
|
3474
3474
|
},
|
|
3475
3475
|
children: "⬢"
|
|
3476
|
-
}
|
|
3477
|
-
/* @__PURE__ */
|
|
3476
|
+
}),
|
|
3477
|
+
/* @__PURE__ */ jsx9("span", {
|
|
3478
3478
|
style: {
|
|
3479
3479
|
color: isCurrent ? DEVTOOL_COLOR_SEMANTIC_SYSTEM : "#4b5563",
|
|
3480
3480
|
fontSize: "0.7rem",
|
|
3481
3481
|
fontWeight: isCurrent ? 500 : undefined
|
|
3482
3482
|
},
|
|
3483
3483
|
children: d
|
|
3484
|
-
}
|
|
3484
|
+
})
|
|
3485
3485
|
]
|
|
3486
|
-
}, d
|
|
3486
|
+
}, d);
|
|
3487
3487
|
})
|
|
3488
|
-
}
|
|
3488
|
+
});
|
|
3489
3489
|
}
|
|
3490
3490
|
function DomainChip({
|
|
3491
3491
|
compact = false,
|
|
@@ -3495,34 +3495,34 @@ function DomainChip({
|
|
|
3495
3495
|
size
|
|
3496
3496
|
}) {
|
|
3497
3497
|
if (compact) {
|
|
3498
|
-
return /* @__PURE__ */
|
|
3498
|
+
return /* @__PURE__ */ jsx9(Icon, {
|
|
3499
3499
|
icon: Component,
|
|
3500
3500
|
color: "domain" /* domain */,
|
|
3501
3501
|
tooltip: {
|
|
3502
|
-
content: /* @__PURE__ */
|
|
3502
|
+
content: /* @__PURE__ */ jsx9(DomainHierarchyContent, {
|
|
3503
3503
|
allDomains
|
|
3504
|
-
}
|
|
3504
|
+
}),
|
|
3505
3505
|
title: "Action Domain",
|
|
3506
3506
|
align: "edge"
|
|
3507
3507
|
}
|
|
3508
|
-
}
|
|
3508
|
+
});
|
|
3509
3509
|
}
|
|
3510
|
-
return /* @__PURE__ */
|
|
3510
|
+
return /* @__PURE__ */ jsx9(Chip, {
|
|
3511
3511
|
color: "domain" /* domain */,
|
|
3512
3512
|
subtle,
|
|
3513
3513
|
size,
|
|
3514
3514
|
rounded: true,
|
|
3515
3515
|
tooltip: {
|
|
3516
|
-
content: /* @__PURE__ */
|
|
3516
|
+
content: /* @__PURE__ */ jsx9(DomainHierarchyContent, {
|
|
3517
3517
|
allDomains
|
|
3518
|
-
}
|
|
3518
|
+
}),
|
|
3519
3519
|
title: "Action Domain",
|
|
3520
3520
|
align: "edge"
|
|
3521
3521
|
},
|
|
3522
|
-
children: /* @__PURE__ */
|
|
3522
|
+
children: /* @__PURE__ */ jsxs8("div", {
|
|
3523
3523
|
style: { display: "flex", alignItems: "center", gap: "0.4em" },
|
|
3524
3524
|
children: [
|
|
3525
|
-
/* @__PURE__ */
|
|
3525
|
+
/* @__PURE__ */ jsx9("span", {
|
|
3526
3526
|
style: {
|
|
3527
3527
|
height: "1.2em",
|
|
3528
3528
|
width: "1.2em",
|
|
@@ -3530,21 +3530,21 @@ function DomainChip({
|
|
|
3530
3530
|
alignItems: "center",
|
|
3531
3531
|
justifyContent: "center"
|
|
3532
3532
|
},
|
|
3533
|
-
children: /* @__PURE__ */
|
|
3533
|
+
children: /* @__PURE__ */ jsx9(Component, {
|
|
3534
3534
|
height: "1.2em",
|
|
3535
3535
|
width: "1.2em"
|
|
3536
|
-
}
|
|
3537
|
-
}
|
|
3538
|
-
/* @__PURE__ */
|
|
3536
|
+
})
|
|
3537
|
+
}),
|
|
3538
|
+
/* @__PURE__ */ jsx9("span", {
|
|
3539
3539
|
children: domain
|
|
3540
|
-
}
|
|
3540
|
+
})
|
|
3541
3541
|
]
|
|
3542
|
-
}
|
|
3543
|
-
}
|
|
3542
|
+
})
|
|
3543
|
+
});
|
|
3544
3544
|
}
|
|
3545
3545
|
|
|
3546
3546
|
// src/devtools/browser/components/HandlerChips.tsx
|
|
3547
|
-
import {
|
|
3547
|
+
import { jsx as jsx10, jsxs as jsxs9, Fragment as Fragment6 } from "react/jsx-runtime";
|
|
3548
3548
|
function getExternalLabel(hop) {
|
|
3549
3549
|
if (hop.handlerType !== "external")
|
|
3550
3550
|
return null;
|
|
@@ -3559,21 +3559,21 @@ function getTransportTooltipForHops(hops) {
|
|
|
3559
3559
|
return;
|
|
3560
3560
|
return {
|
|
3561
3561
|
title: "Transport",
|
|
3562
|
-
content: /* @__PURE__ */
|
|
3562
|
+
content: /* @__PURE__ */ jsx10("div", {
|
|
3563
3563
|
style: { display: "flex", flexDirection: "column", gap: "6px", fontSize: "11px" },
|
|
3564
|
-
children: lines.map((line) => /* @__PURE__ */
|
|
3564
|
+
children: lines.map((line) => /* @__PURE__ */ jsxs9("div", {
|
|
3565
3565
|
style: { display: "flex", flexDirection: "column", gap: "2px" },
|
|
3566
3566
|
children: [
|
|
3567
|
-
line.summary != null && /* @__PURE__ */
|
|
3567
|
+
line.summary != null && /* @__PURE__ */ jsx10("span", {
|
|
3568
3568
|
children: line.summary
|
|
3569
|
-
}
|
|
3570
|
-
line.url != null && line.url !== line.summary && /* @__PURE__ */
|
|
3569
|
+
}),
|
|
3570
|
+
line.url != null && line.url !== line.summary && /* @__PURE__ */ jsx10("span", {
|
|
3571
3571
|
style: { color: DEVTOOL_COLOR_TEXT_MUTED, wordBreak: "break-all" },
|
|
3572
3572
|
children: line.url
|
|
3573
|
-
}
|
|
3573
|
+
})
|
|
3574
3574
|
]
|
|
3575
|
-
}, `${line.summary ?? ""}:${line.url ?? ""}
|
|
3576
|
-
}
|
|
3575
|
+
}, `${line.summary ?? ""}:${line.url ?? ""}`))
|
|
3576
|
+
})
|
|
3577
3577
|
};
|
|
3578
3578
|
}
|
|
3579
3579
|
function HandlerChips({ entry, size, subtle }) {
|
|
@@ -3581,52 +3581,52 @@ function HandlerChips({ entry, size, subtle }) {
|
|
|
3581
3581
|
const localEnvId = firstHop != null ? firstHop.runtime.envId : null;
|
|
3582
3582
|
const externalLabel = firstHop != null ? getExternalLabel(firstHop) : null;
|
|
3583
3583
|
const firstHopIsLocal = firstHop != null && firstHop.handlerType === "local";
|
|
3584
|
-
return /* @__PURE__ */
|
|
3584
|
+
return /* @__PURE__ */ jsxs9(Fragment6, {
|
|
3585
3585
|
children: [
|
|
3586
|
-
localEnvId != null && (firstHopIsLocal || externalLabel == null) && /* @__PURE__ */
|
|
3586
|
+
localEnvId != null && (firstHopIsLocal || externalLabel == null) && /* @__PURE__ */ jsx10(Chip, {
|
|
3587
3587
|
color: "handler_local" /* handler_local */,
|
|
3588
3588
|
size,
|
|
3589
3589
|
subtle,
|
|
3590
3590
|
children: localEnvId
|
|
3591
|
-
}
|
|
3592
|
-
externalLabel != null && /* @__PURE__ */
|
|
3591
|
+
}),
|
|
3592
|
+
externalLabel != null && /* @__PURE__ */ jsx10(Chip, {
|
|
3593
3593
|
color: "handler_external" /* handler_external */,
|
|
3594
3594
|
size,
|
|
3595
3595
|
subtle,
|
|
3596
3596
|
tooltip: firstHop != null ? getTransportTooltip(firstHop) : undefined,
|
|
3597
3597
|
children: externalLabel
|
|
3598
|
-
}
|
|
3598
|
+
})
|
|
3599
3599
|
]
|
|
3600
|
-
}
|
|
3600
|
+
});
|
|
3601
3601
|
}
|
|
3602
3602
|
|
|
3603
3603
|
// src/devtools/browser/components/RunningTimer.tsx
|
|
3604
3604
|
import { useEffect as useEffect2, useState as useState6 } from "react";
|
|
3605
|
-
import {
|
|
3605
|
+
import { jsx as jsx11, jsxs as jsxs10, Fragment as Fragment7 } from "react/jsx-runtime";
|
|
3606
3606
|
function RunningTimer({ startTime }) {
|
|
3607
3607
|
const [elapsed, setElapsed] = useState6(() => Date.now() - startTime);
|
|
3608
3608
|
useEffect2(() => {
|
|
3609
3609
|
const interval = setInterval(() => setElapsed(Date.now() - startTime), 100);
|
|
3610
3610
|
return () => clearInterval(interval);
|
|
3611
3611
|
}, [startTime]);
|
|
3612
|
-
return /* @__PURE__ */
|
|
3612
|
+
return /* @__PURE__ */ jsxs10(Fragment7, {
|
|
3613
3613
|
children: [
|
|
3614
3614
|
elapsed,
|
|
3615
3615
|
"ms"
|
|
3616
3616
|
]
|
|
3617
|
-
}
|
|
3617
|
+
});
|
|
3618
3618
|
}
|
|
3619
3619
|
function DurationDisplay({ entry }) {
|
|
3620
3620
|
const d = formatDuration(entry);
|
|
3621
|
-
return /* @__PURE__ */
|
|
3622
|
-
children: d ?? /* @__PURE__ */
|
|
3621
|
+
return /* @__PURE__ */ jsx11(Fragment7, {
|
|
3622
|
+
children: d ?? /* @__PURE__ */ jsx11(RunningTimer, {
|
|
3623
3623
|
startTime: entry.startTime
|
|
3624
|
-
}
|
|
3625
|
-
}
|
|
3624
|
+
})
|
|
3625
|
+
});
|
|
3626
3626
|
}
|
|
3627
3627
|
|
|
3628
3628
|
// src/devtools/browser/components/CallStackSection.tsx
|
|
3629
|
-
import {
|
|
3629
|
+
import { jsx as jsx12, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
3630
3630
|
function getCalledLabel(entry) {
|
|
3631
3631
|
const firstHop = entry.meta.routing[0];
|
|
3632
3632
|
if (firstHop == null)
|
|
@@ -3656,7 +3656,7 @@ function CallStackLink({
|
|
|
3656
3656
|
const label = entryRole === "caller" ? "↑ from" : getCalledLabel(entry);
|
|
3657
3657
|
const firstHop = entry.meta.routing[0];
|
|
3658
3658
|
const transportTooltip = entryRole === "called" && firstHop != null ? getTransportTooltip(firstHop) : undefined;
|
|
3659
|
-
return /* @__PURE__ */
|
|
3659
|
+
return /* @__PURE__ */ jsxs11("div", {
|
|
3660
3660
|
onClick,
|
|
3661
3661
|
style: {
|
|
3662
3662
|
background: isFocused ? DEVTOOL_SECTION_BACKGROUND : DEVTOOL_DETAIL_HEADER_BACKGROUND,
|
|
@@ -3670,25 +3670,25 @@ function CallStackLink({
|
|
|
3670
3670
|
cursor: "pointer"
|
|
3671
3671
|
},
|
|
3672
3672
|
children: [
|
|
3673
|
-
/* @__PURE__ */
|
|
3673
|
+
/* @__PURE__ */ jsxs11("span", {
|
|
3674
3674
|
style: { display: "flex", alignItems: "center", gap: "1em", flexShrink: 0 },
|
|
3675
3675
|
children: [
|
|
3676
|
-
/* @__PURE__ */
|
|
3676
|
+
/* @__PURE__ */ jsx12("span", {
|
|
3677
3677
|
style: { color, fontSize: "10px", flexShrink: 0 },
|
|
3678
3678
|
children: symbol
|
|
3679
|
-
}
|
|
3680
|
-
/* @__PURE__ */
|
|
3679
|
+
}),
|
|
3680
|
+
/* @__PURE__ */ jsx12(HoverTooltip, {
|
|
3681
3681
|
config: transportTooltip,
|
|
3682
3682
|
style: { flexShrink: 0, display: "flex" },
|
|
3683
|
-
children: /* @__PURE__ */
|
|
3683
|
+
children: /* @__PURE__ */ jsx12("span", {
|
|
3684
3684
|
style: { color: labelColor, fontSize: "9px" },
|
|
3685
3685
|
children: label
|
|
3686
|
-
}
|
|
3687
|
-
}
|
|
3688
|
-
/* @__PURE__ */
|
|
3686
|
+
})
|
|
3687
|
+
}),
|
|
3688
|
+
/* @__PURE__ */ jsxs11("span", {
|
|
3689
3689
|
style: { display: "flex", alignItems: "center", gap: "5px" },
|
|
3690
3690
|
children: [
|
|
3691
|
-
/* @__PURE__ */
|
|
3691
|
+
/* @__PURE__ */ jsx12("span", {
|
|
3692
3692
|
style: {
|
|
3693
3693
|
color: DEVTOOL_COLOR_TEXT_SECONDARY,
|
|
3694
3694
|
fontSize: "11px",
|
|
@@ -3697,29 +3697,29 @@ function CallStackLink({
|
|
|
3697
3697
|
whiteSpace: "nowrap"
|
|
3698
3698
|
},
|
|
3699
3699
|
children: entry.actionId
|
|
3700
|
-
}
|
|
3701
|
-
/* @__PURE__ */
|
|
3700
|
+
}),
|
|
3701
|
+
/* @__PURE__ */ jsx12(DomainChip, {
|
|
3702
3702
|
domain: entry.domain,
|
|
3703
3703
|
allDomains: entry.allDomains,
|
|
3704
3704
|
size: "sm" /* sm */
|
|
3705
|
-
}
|
|
3705
|
+
})
|
|
3706
3706
|
]
|
|
3707
|
-
}
|
|
3707
|
+
})
|
|
3708
3708
|
]
|
|
3709
|
-
}
|
|
3710
|
-
/* @__PURE__ */
|
|
3709
|
+
}),
|
|
3710
|
+
/* @__PURE__ */ jsx12("span", {
|
|
3711
3711
|
style: {
|
|
3712
3712
|
color: DEVTOOL_COLOR_TEXT_FAINT,
|
|
3713
3713
|
fontSize: "10px",
|
|
3714
3714
|
textAlign: "right",
|
|
3715
3715
|
whiteSpace: "nowrap"
|
|
3716
3716
|
},
|
|
3717
|
-
children: /* @__PURE__ */
|
|
3717
|
+
children: /* @__PURE__ */ jsx12(DurationDisplay, {
|
|
3718
3718
|
entry
|
|
3719
|
-
}
|
|
3720
|
-
}
|
|
3719
|
+
})
|
|
3720
|
+
})
|
|
3721
3721
|
]
|
|
3722
|
-
}
|
|
3722
|
+
});
|
|
3723
3723
|
}
|
|
3724
3724
|
function CallStackSection({
|
|
3725
3725
|
parent,
|
|
@@ -3730,26 +3730,26 @@ function CallStackSection({
|
|
|
3730
3730
|
}) {
|
|
3731
3731
|
if (parent == null && childEntries.length === 0)
|
|
3732
3732
|
return null;
|
|
3733
|
-
return /* @__PURE__ */
|
|
3733
|
+
return /* @__PURE__ */ jsxs11("div", {
|
|
3734
3734
|
children: [
|
|
3735
|
-
parent != null && /* @__PURE__ */
|
|
3735
|
+
parent != null && /* @__PURE__ */ jsx12(CallStackLink, {
|
|
3736
3736
|
entry: parent,
|
|
3737
3737
|
entryRole: "caller",
|
|
3738
3738
|
isFocused: false,
|
|
3739
3739
|
onClick: () => onSelectParent(parent.cuid)
|
|
3740
|
-
}
|
|
3741
|
-
childEntries.map((child) => /* @__PURE__ */
|
|
3740
|
+
}),
|
|
3741
|
+
childEntries.map((child) => /* @__PURE__ */ jsx12(CallStackLink, {
|
|
3742
3742
|
entry: child,
|
|
3743
3743
|
entryRole: "called",
|
|
3744
3744
|
isFocused: focusedChildCuid === child.cuid,
|
|
3745
3745
|
onClick: () => onFocusChild(child.cuid)
|
|
3746
|
-
}, child.cuid
|
|
3746
|
+
}, child.cuid))
|
|
3747
3747
|
]
|
|
3748
|
-
}
|
|
3748
|
+
});
|
|
3749
3749
|
}
|
|
3750
3750
|
|
|
3751
3751
|
// src/devtools/browser/components/ChildDispatchChips.tsx
|
|
3752
|
-
import {
|
|
3752
|
+
import { jsx as jsx13 } from "react/jsx-runtime";
|
|
3753
3753
|
function ChildDispatchChips({
|
|
3754
3754
|
childRouteItems,
|
|
3755
3755
|
size = "sm" /* sm */
|
|
@@ -3770,41 +3770,41 @@ function ChildDispatchChips({
|
|
|
3770
3770
|
group.transports.push(transport);
|
|
3771
3771
|
}
|
|
3772
3772
|
}
|
|
3773
|
-
return /* @__PURE__ */
|
|
3773
|
+
return /* @__PURE__ */ jsx13("div", {
|
|
3774
3774
|
style: { display: "flex", alignItems: "center", gap: "4px", flexWrap: "wrap" },
|
|
3775
3775
|
children: Array.from(groups.values()).map((group) => {
|
|
3776
3776
|
const transportStr = group.transports.length > 0 ? group.transports.join(", ") : "ext";
|
|
3777
3777
|
const label = group.hasClient ? `${transportStr} → ${group.runtimeId}` : `→ ${transportStr}`;
|
|
3778
|
-
return /* @__PURE__ */
|
|
3778
|
+
return /* @__PURE__ */ jsx13(Chip, {
|
|
3779
3779
|
color: "handler_external" /* handler_external */,
|
|
3780
3780
|
size,
|
|
3781
3781
|
tooltip: getTransportTooltipForHops(group.hops),
|
|
3782
3782
|
children: label
|
|
3783
|
-
}, group.runtimeId
|
|
3783
|
+
}, group.runtimeId);
|
|
3784
3784
|
})
|
|
3785
|
-
}
|
|
3785
|
+
});
|
|
3786
3786
|
}
|
|
3787
3787
|
|
|
3788
3788
|
// src/devtools/browser/components/MetaSection.tsx
|
|
3789
3789
|
import { useState as useState7 } from "react";
|
|
3790
|
-
import {
|
|
3790
|
+
import { jsx as jsx14, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
3791
3791
|
function MetaChip({ label, value }) {
|
|
3792
|
-
return /* @__PURE__ */
|
|
3792
|
+
return /* @__PURE__ */ jsxs12("span", {
|
|
3793
3793
|
style: { whiteSpace: "nowrap" },
|
|
3794
3794
|
children: [
|
|
3795
|
-
/* @__PURE__ */
|
|
3795
|
+
/* @__PURE__ */ jsxs12("span", {
|
|
3796
3796
|
style: { color: DEVTOOL_COLOR_TEXT_MUTED },
|
|
3797
3797
|
children: [
|
|
3798
3798
|
label,
|
|
3799
3799
|
" "
|
|
3800
3800
|
]
|
|
3801
|
-
}
|
|
3802
|
-
/* @__PURE__ */
|
|
3801
|
+
}),
|
|
3802
|
+
/* @__PURE__ */ jsx14("span", {
|
|
3803
3803
|
style: { color: DEVTOOL_COLOR_TEXT_SECONDARY },
|
|
3804
3804
|
children: value
|
|
3805
|
-
}
|
|
3805
|
+
})
|
|
3806
3806
|
]
|
|
3807
|
-
}
|
|
3807
|
+
});
|
|
3808
3808
|
}
|
|
3809
3809
|
function MetaSection({ entry }) {
|
|
3810
3810
|
const [expanded, setExpanded] = useState7(false);
|
|
@@ -3815,9 +3815,9 @@ function MetaSection({ entry }) {
|
|
|
3815
3815
|
...meta.originClient.perId != null ? [{ label: "perId", value: meta.originClient.perId }] : [],
|
|
3816
3816
|
...meta.originClient.insId != null ? [{ label: "insId", value: meta.originClient.insId }] : []
|
|
3817
3817
|
];
|
|
3818
|
-
return /* @__PURE__ */
|
|
3818
|
+
return /* @__PURE__ */ jsxs12("div", {
|
|
3819
3819
|
children: [
|
|
3820
|
-
/* @__PURE__ */
|
|
3820
|
+
/* @__PURE__ */ jsxs12("div", {
|
|
3821
3821
|
style: {
|
|
3822
3822
|
display: "flex",
|
|
3823
3823
|
alignItems: "center",
|
|
@@ -3825,7 +3825,7 @@ function MetaSection({ entry }) {
|
|
|
3825
3825
|
marginBottom: "3px"
|
|
3826
3826
|
},
|
|
3827
3827
|
children: [
|
|
3828
|
-
/* @__PURE__ */
|
|
3828
|
+
/* @__PURE__ */ jsx14("div", {
|
|
3829
3829
|
style: {
|
|
3830
3830
|
color: DEVTOOL_COLOR_SEMANTIC_SYSTEM,
|
|
3831
3831
|
fontSize: "10px",
|
|
@@ -3833,14 +3833,14 @@ function MetaSection({ entry }) {
|
|
|
3833
3833
|
letterSpacing: "0.05em"
|
|
3834
3834
|
},
|
|
3835
3835
|
children: "Meta"
|
|
3836
|
-
}
|
|
3837
|
-
/* @__PURE__ */
|
|
3836
|
+
}),
|
|
3837
|
+
/* @__PURE__ */ jsx14("span", {
|
|
3838
3838
|
style: { color: DEVTOOL_COLOR_TEXT_FAINT, fontSize: "11px" },
|
|
3839
3839
|
children: expanded ? "▾" : "▸"
|
|
3840
|
-
}
|
|
3840
|
+
})
|
|
3841
3841
|
]
|
|
3842
|
-
}
|
|
3843
|
-
expanded ? /* @__PURE__ */
|
|
3842
|
+
}),
|
|
3843
|
+
expanded ? /* @__PURE__ */ jsx14("div", {
|
|
3844
3844
|
onClick: () => setExpanded(false),
|
|
3845
3845
|
style: {
|
|
3846
3846
|
background: DEVTOOL_SECTION_BACKGROUND,
|
|
@@ -3848,7 +3848,7 @@ function MetaSection({ entry }) {
|
|
|
3848
3848
|
overflow: "hidden",
|
|
3849
3849
|
cursor: "pointer"
|
|
3850
3850
|
},
|
|
3851
|
-
children: expandedRows.map(({ label, value }, i) => /* @__PURE__ */
|
|
3851
|
+
children: expandedRows.map(({ label, value }, i) => /* @__PURE__ */ jsxs12("div", {
|
|
3852
3852
|
style: {
|
|
3853
3853
|
display: "grid",
|
|
3854
3854
|
gridTemplateColumns: "52px 1fr",
|
|
@@ -3858,11 +3858,11 @@ function MetaSection({ entry }) {
|
|
|
3858
3858
|
alignItems: "start"
|
|
3859
3859
|
},
|
|
3860
3860
|
children: [
|
|
3861
|
-
/* @__PURE__ */
|
|
3861
|
+
/* @__PURE__ */ jsx14("span", {
|
|
3862
3862
|
style: { textAlign: "left", color: DEVTOOL_COLOR_TEXT_MUTED, fontSize: "10px", paddingTop: "1px" },
|
|
3863
3863
|
children: label
|
|
3864
|
-
}
|
|
3865
|
-
/* @__PURE__ */
|
|
3864
|
+
}),
|
|
3865
|
+
/* @__PURE__ */ jsx14("span", {
|
|
3866
3866
|
style: {
|
|
3867
3867
|
textAlign: "left",
|
|
3868
3868
|
color: DEVTOOL_COLOR_TEXT_SECONDARY,
|
|
@@ -3870,10 +3870,10 @@ function MetaSection({ entry }) {
|
|
|
3870
3870
|
wordBreak: "break-all"
|
|
3871
3871
|
},
|
|
3872
3872
|
children: value
|
|
3873
|
-
}
|
|
3873
|
+
})
|
|
3874
3874
|
]
|
|
3875
|
-
}, label
|
|
3876
|
-
}
|
|
3875
|
+
}, label))
|
|
3876
|
+
}) : /* @__PURE__ */ jsxs12("div", {
|
|
3877
3877
|
onClick: () => setExpanded(true),
|
|
3878
3878
|
style: {
|
|
3879
3879
|
background: DEVTOOL_SECTION_BACKGROUND,
|
|
@@ -3887,30 +3887,30 @@ function MetaSection({ entry }) {
|
|
|
3887
3887
|
cursor: "pointer"
|
|
3888
3888
|
},
|
|
3889
3889
|
children: [
|
|
3890
|
-
/* @__PURE__ */
|
|
3890
|
+
/* @__PURE__ */ jsx14(MetaChip, {
|
|
3891
3891
|
label: "cuid",
|
|
3892
3892
|
value: `…${cuid.slice(-8)}`
|
|
3893
|
-
}
|
|
3894
|
-
/* @__PURE__ */
|
|
3893
|
+
}),
|
|
3894
|
+
/* @__PURE__ */ jsx14(MetaChip, {
|
|
3895
3895
|
label: "runtime",
|
|
3896
3896
|
value: meta.originClient.envId
|
|
3897
|
-
}
|
|
3898
|
-
meta.originClient.perId != null && /* @__PURE__ */
|
|
3897
|
+
}),
|
|
3898
|
+
meta.originClient.perId != null && /* @__PURE__ */ jsx14(MetaChip, {
|
|
3899
3899
|
label: "perId",
|
|
3900
3900
|
value: meta.originClient.perId.length > 10 ? `${meta.originClient.perId.slice(0, 10)}…` : meta.originClient.perId
|
|
3901
|
-
}
|
|
3902
|
-
meta.originClient.insId != null && /* @__PURE__ */
|
|
3901
|
+
}),
|
|
3902
|
+
meta.originClient.insId != null && /* @__PURE__ */ jsx14(MetaChip, {
|
|
3903
3903
|
label: "insId",
|
|
3904
3904
|
value: meta.originClient.insId.length > 10 ? `${meta.originClient.insId.slice(0, 10)}…` : meta.originClient.insId
|
|
3905
|
-
}
|
|
3905
|
+
})
|
|
3906
3906
|
]
|
|
3907
|
-
}
|
|
3907
|
+
})
|
|
3908
3908
|
]
|
|
3909
|
-
}
|
|
3909
|
+
});
|
|
3910
3910
|
}
|
|
3911
3911
|
|
|
3912
3912
|
// src/devtools/browser/components/RoutingSection.tsx
|
|
3913
|
-
import {
|
|
3913
|
+
import { jsx as jsx15, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
3914
3914
|
function RoutingSection({
|
|
3915
3915
|
entry,
|
|
3916
3916
|
minHopCount = 0
|
|
@@ -3920,12 +3920,12 @@ function RoutingSection({
|
|
|
3920
3920
|
const phantomCount = Math.max(0, minHopCount - hopCount);
|
|
3921
3921
|
if (hopCount === 0 && phantomCount === 0)
|
|
3922
3922
|
return null;
|
|
3923
|
-
return /* @__PURE__ */
|
|
3923
|
+
return /* @__PURE__ */ jsxs13("div", {
|
|
3924
3924
|
children: [
|
|
3925
|
-
/* @__PURE__ */
|
|
3925
|
+
/* @__PURE__ */ jsx15(SectionLabel, {
|
|
3926
3926
|
label: hopCount > 0 ? `Routing · ${hopCount} hop${hopCount !== 1 ? "s" : ""}` : "Routing"
|
|
3927
|
-
}
|
|
3928
|
-
/* @__PURE__ */
|
|
3927
|
+
}),
|
|
3928
|
+
/* @__PURE__ */ jsxs13("div", {
|
|
3929
3929
|
style: { display: "flex", flexDirection: "column", gap: "2px" },
|
|
3930
3930
|
children: [
|
|
3931
3931
|
meta.routing.map((hop, i) => {
|
|
@@ -3935,7 +3935,7 @@ function RoutingSection({
|
|
|
3935
3935
|
const badgeText = isLocal ? "● exec" : `→ ${hop.transportSummary ?? hop.transport ?? "ext"}`;
|
|
3936
3936
|
const transportTooltip = isLocal ? undefined : getTransportTooltip(hop);
|
|
3937
3937
|
const runtimeTitle = [hop.runtime.perId, hop.runtime.insId].filter(Boolean).join(" · ") || undefined;
|
|
3938
|
-
return /* @__PURE__ */
|
|
3938
|
+
return /* @__PURE__ */ jsxs13("div", {
|
|
3939
3939
|
style: {
|
|
3940
3940
|
background: DEVTOOL_SECTION_BACKGROUND,
|
|
3941
3941
|
borderRadius: "4px",
|
|
@@ -3948,14 +3948,14 @@ function RoutingSection({
|
|
|
3948
3948
|
padding: "4px 8px"
|
|
3949
3949
|
},
|
|
3950
3950
|
children: [
|
|
3951
|
-
/* @__PURE__ */
|
|
3951
|
+
/* @__PURE__ */ jsxs13("span", {
|
|
3952
3952
|
style: { display: "flex", flexDirection: "row", alignItems: "center", gap: "10px" },
|
|
3953
3953
|
children: [
|
|
3954
|
-
/* @__PURE__ */
|
|
3954
|
+
/* @__PURE__ */ jsx15("span", {
|
|
3955
3955
|
style: { color: DEVTOOL_COLOR_TEXT_FAINT, fontSize: "10px", width: "16px", textAlign: "right" },
|
|
3956
3956
|
children: i + 1
|
|
3957
|
-
}
|
|
3958
|
-
/* @__PURE__ */
|
|
3957
|
+
}),
|
|
3958
|
+
/* @__PURE__ */ jsx15("span", {
|
|
3959
3959
|
title: runtimeTitle,
|
|
3960
3960
|
style: {
|
|
3961
3961
|
color: DEVTOOL_COLOR_TEXT_SECONDARY,
|
|
@@ -3966,13 +3966,13 @@ function RoutingSection({
|
|
|
3966
3966
|
textAlign: "center"
|
|
3967
3967
|
},
|
|
3968
3968
|
children: hop.runtime.envId
|
|
3969
|
-
}
|
|
3969
|
+
})
|
|
3970
3970
|
]
|
|
3971
|
-
}
|
|
3972
|
-
/* @__PURE__ */
|
|
3971
|
+
}),
|
|
3972
|
+
/* @__PURE__ */ jsx15(HoverTooltip, {
|
|
3973
3973
|
config: transportTooltip,
|
|
3974
3974
|
style: { display: "block", minWidth: 0, overflow: "hidden" },
|
|
3975
|
-
children: /* @__PURE__ */
|
|
3975
|
+
children: /* @__PURE__ */ jsx15("span", {
|
|
3976
3976
|
style: {
|
|
3977
3977
|
color: badgeColor,
|
|
3978
3978
|
fontSize: "10px",
|
|
@@ -3982,9 +3982,9 @@ function RoutingSection({
|
|
|
3982
3982
|
display: "block"
|
|
3983
3983
|
},
|
|
3984
3984
|
children: badgeText
|
|
3985
|
-
}
|
|
3986
|
-
}
|
|
3987
|
-
/* @__PURE__ */
|
|
3985
|
+
})
|
|
3986
|
+
}),
|
|
3987
|
+
/* @__PURE__ */ jsxs13("span", {
|
|
3988
3988
|
style: {
|
|
3989
3989
|
display: "flex",
|
|
3990
3990
|
alignItems: "center",
|
|
@@ -3993,7 +3993,7 @@ function RoutingSection({
|
|
|
3993
3993
|
overflow: "hidden"
|
|
3994
3994
|
},
|
|
3995
3995
|
children: [
|
|
3996
|
-
/* @__PURE__ */
|
|
3996
|
+
/* @__PURE__ */ jsx15("span", {
|
|
3997
3997
|
style: {
|
|
3998
3998
|
color: DEVTOOL_COLOR_TEXT_MUTED,
|
|
3999
3999
|
fontSize: "10px",
|
|
@@ -4002,21 +4002,21 @@ function RoutingSection({
|
|
|
4002
4002
|
textOverflow: "ellipsis"
|
|
4003
4003
|
},
|
|
4004
4004
|
children: hop.handlerClient != null ? `↳ ${hop.handlerClient.envId}` : ""
|
|
4005
|
-
}
|
|
4006
|
-
/* @__PURE__ */
|
|
4005
|
+
}),
|
|
4006
|
+
/* @__PURE__ */ jsxs13("span", {
|
|
4007
4007
|
style: { color: DEVTOOL_COLOR_TEXT_FAINT, fontSize: "10px", flexShrink: 0, marginLeft: "auto" },
|
|
4008
4008
|
children: [
|
|
4009
4009
|
"+",
|
|
4010
4010
|
hop.time - startTime,
|
|
4011
4011
|
"ms"
|
|
4012
4012
|
]
|
|
4013
|
-
}
|
|
4013
|
+
})
|
|
4014
4014
|
]
|
|
4015
|
-
}
|
|
4015
|
+
})
|
|
4016
4016
|
]
|
|
4017
|
-
}, `${hop.time}-${hop.runtime.envId}
|
|
4017
|
+
}, `${hop.time}-${hop.runtime.envId}`);
|
|
4018
4018
|
}),
|
|
4019
|
-
Array.from({ length: phantomCount }, (_, i) => `routing-phantom-${hopCount + i}`).map((key) => /* @__PURE__ */
|
|
4019
|
+
Array.from({ length: phantomCount }, (_, i) => `routing-phantom-${hopCount + i}`).map((key) => /* @__PURE__ */ jsxs13("div", {
|
|
4020
4020
|
"aria-hidden": "true",
|
|
4021
4021
|
style: {
|
|
4022
4022
|
visibility: "hidden",
|
|
@@ -4029,34 +4029,34 @@ function RoutingSection({
|
|
|
4029
4029
|
padding: "4px 8px"
|
|
4030
4030
|
},
|
|
4031
4031
|
children: [
|
|
4032
|
-
/* @__PURE__ */
|
|
4032
|
+
/* @__PURE__ */ jsxs13("span", {
|
|
4033
4033
|
style: { display: "flex", flexDirection: "row", alignItems: "center", gap: "10px" },
|
|
4034
4034
|
children: [
|
|
4035
|
-
/* @__PURE__ */
|
|
4035
|
+
/* @__PURE__ */ jsx15("span", {
|
|
4036
4036
|
style: { fontSize: "10px", width: "16px" },
|
|
4037
4037
|
children: "0"
|
|
4038
|
-
}
|
|
4039
|
-
/* @__PURE__ */
|
|
4038
|
+
}),
|
|
4039
|
+
/* @__PURE__ */ jsx15("span", {
|
|
4040
4040
|
style: { fontSize: "11px" },
|
|
4041
4041
|
children: "placeholder"
|
|
4042
|
-
}
|
|
4042
|
+
})
|
|
4043
4043
|
]
|
|
4044
|
-
}
|
|
4045
|
-
/* @__PURE__ */
|
|
4044
|
+
}),
|
|
4045
|
+
/* @__PURE__ */ jsx15("span", {
|
|
4046
4046
|
style: { fontSize: "10px" },
|
|
4047
4047
|
children: "placeholder"
|
|
4048
|
-
}
|
|
4049
|
-
/* @__PURE__ */
|
|
4048
|
+
}),
|
|
4049
|
+
/* @__PURE__ */ jsx15("span", {})
|
|
4050
4050
|
]
|
|
4051
|
-
}, key
|
|
4051
|
+
}, key))
|
|
4052
4052
|
]
|
|
4053
|
-
}
|
|
4053
|
+
})
|
|
4054
4054
|
]
|
|
4055
|
-
}
|
|
4055
|
+
});
|
|
4056
4056
|
}
|
|
4057
4057
|
|
|
4058
4058
|
// src/devtools/browser/components/action_detail/ActionDetailPanel.tsx
|
|
4059
|
-
import {
|
|
4059
|
+
import { jsx as jsx16, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
4060
4060
|
var STATUS_BADGE_LABEL = {
|
|
4061
4061
|
running: "RUNNING",
|
|
4062
4062
|
success: "SUCCESS",
|
|
@@ -4087,7 +4087,7 @@ function DetailHeader({
|
|
|
4087
4087
|
const color = STATUS_COLOR[entry.status];
|
|
4088
4088
|
const StatusIconComponent = STATUS_ICON[entry.status];
|
|
4089
4089
|
const timestamp = formatTimestamp(entry.startTime);
|
|
4090
|
-
return /* @__PURE__ */
|
|
4090
|
+
return /* @__PURE__ */ jsx16("div", {
|
|
4091
4091
|
onClick: !isActive ? onClick : undefined,
|
|
4092
4092
|
style: {
|
|
4093
4093
|
padding: "0.5em 1em",
|
|
@@ -4101,13 +4101,13 @@ function DetailHeader({
|
|
|
4101
4101
|
gap: "1em",
|
|
4102
4102
|
cursor: isActive ? "default" : "pointer"
|
|
4103
4103
|
},
|
|
4104
|
-
children: /* @__PURE__ */
|
|
4104
|
+
children: /* @__PURE__ */ jsxs14("div", {
|
|
4105
4105
|
style: { flex: 1, minWidth: 0, display: "flex", flexDirection: "column", gap: "0.5em" },
|
|
4106
4106
|
children: [
|
|
4107
|
-
/* @__PURE__ */
|
|
4107
|
+
/* @__PURE__ */ jsxs14("div", {
|
|
4108
4108
|
style: { display: "flex", alignItems: "center", minWidth: 0, gap: "0.5em" },
|
|
4109
4109
|
children: [
|
|
4110
|
-
/* @__PURE__ */
|
|
4110
|
+
/* @__PURE__ */ jsx16("span", {
|
|
4111
4111
|
style: {
|
|
4112
4112
|
color,
|
|
4113
4113
|
flexShrink: 0,
|
|
@@ -4115,12 +4115,12 @@ function DetailHeader({
|
|
|
4115
4115
|
alignItems: "center",
|
|
4116
4116
|
animation: entry.status === "running" ? "__nice-action-pulse 1.2s ease-in-out infinite" : undefined
|
|
4117
4117
|
},
|
|
4118
|
-
children: /* @__PURE__ */
|
|
4118
|
+
children: /* @__PURE__ */ jsx16(StatusIconComponent, {
|
|
4119
4119
|
size: 20,
|
|
4120
4120
|
strokeWidth: 1.75
|
|
4121
|
-
}
|
|
4122
|
-
}
|
|
4123
|
-
/* @__PURE__ */
|
|
4121
|
+
})
|
|
4122
|
+
}),
|
|
4123
|
+
/* @__PURE__ */ jsx16("span", {
|
|
4124
4124
|
style: {
|
|
4125
4125
|
color: DEVTOOL_COLOR_TEXT_EMPHASIS,
|
|
4126
4126
|
fontSize: "1.2em",
|
|
@@ -4133,8 +4133,8 @@ function DetailHeader({
|
|
|
4133
4133
|
minWidth: "2.5em"
|
|
4134
4134
|
},
|
|
4135
4135
|
children: entry.actionId
|
|
4136
|
-
}
|
|
4137
|
-
/* @__PURE__ */
|
|
4136
|
+
}),
|
|
4137
|
+
/* @__PURE__ */ jsx16("span", {
|
|
4138
4138
|
style: {
|
|
4139
4139
|
flexShrink: 0,
|
|
4140
4140
|
padding: "2px 9px",
|
|
@@ -4148,15 +4148,15 @@ function DetailHeader({
|
|
|
4148
4148
|
fontFamily: "ui-sans-serif, system-ui, sans-serif"
|
|
4149
4149
|
},
|
|
4150
4150
|
children: STATUS_BADGE_LABEL[entry.status]
|
|
4151
|
-
}
|
|
4152
|
-
/* @__PURE__ */
|
|
4151
|
+
}),
|
|
4152
|
+
/* @__PURE__ */ jsx16(DomainChip, {
|
|
4153
4153
|
domain: entry.domain,
|
|
4154
4154
|
allDomains: entry.allDomains,
|
|
4155
4155
|
size: "md" /* md */
|
|
4156
|
-
}
|
|
4156
|
+
})
|
|
4157
4157
|
]
|
|
4158
|
-
}
|
|
4159
|
-
/* @__PURE__ */
|
|
4158
|
+
}),
|
|
4159
|
+
/* @__PURE__ */ jsxs14("div", {
|
|
4160
4160
|
style: {
|
|
4161
4161
|
display: "flex",
|
|
4162
4162
|
alignItems: "center",
|
|
@@ -4164,7 +4164,7 @@ function DetailHeader({
|
|
|
4164
4164
|
gap: "8px"
|
|
4165
4165
|
},
|
|
4166
4166
|
children: [
|
|
4167
|
-
/* @__PURE__ */
|
|
4167
|
+
/* @__PURE__ */ jsxs14("div", {
|
|
4168
4168
|
style: {
|
|
4169
4169
|
display: "flex",
|
|
4170
4170
|
alignItems: "center",
|
|
@@ -4173,20 +4173,20 @@ function DetailHeader({
|
|
|
4173
4173
|
overflow: "hidden"
|
|
4174
4174
|
},
|
|
4175
4175
|
children: [
|
|
4176
|
-
/* @__PURE__ */
|
|
4176
|
+
/* @__PURE__ */ jsx16(HandlerChips, {
|
|
4177
4177
|
entry,
|
|
4178
4178
|
size: "md" /* md */
|
|
4179
|
-
}
|
|
4180
|
-
/* @__PURE__ */
|
|
4179
|
+
}),
|
|
4180
|
+
/* @__PURE__ */ jsx16(ChildDispatchChips, {
|
|
4181
4181
|
childRouteItems: childExternalRouteItems,
|
|
4182
4182
|
size: "md" /* md */
|
|
4183
|
-
}
|
|
4183
|
+
})
|
|
4184
4184
|
]
|
|
4185
|
-
}
|
|
4186
|
-
/* @__PURE__ */
|
|
4185
|
+
}),
|
|
4186
|
+
/* @__PURE__ */ jsxs14("div", {
|
|
4187
4187
|
style: { display: "flex", alignItems: "center", gap: "8px", flexShrink: 0 },
|
|
4188
4188
|
children: [
|
|
4189
|
-
/* @__PURE__ */
|
|
4189
|
+
/* @__PURE__ */ jsx16("span", {
|
|
4190
4190
|
style: {
|
|
4191
4191
|
color: DEVTOOL_COLOR_SEMANTIC_METADATA,
|
|
4192
4192
|
fontSize: "10px",
|
|
@@ -4194,20 +4194,20 @@ function DetailHeader({
|
|
|
4194
4194
|
fontFamily: "ui-sans-serif, system-ui, sans-serif"
|
|
4195
4195
|
},
|
|
4196
4196
|
children: timestamp
|
|
4197
|
-
}
|
|
4198
|
-
/* @__PURE__ */
|
|
4197
|
+
}),
|
|
4198
|
+
/* @__PURE__ */ jsx16("span", {
|
|
4199
4199
|
style: { color, fontSize: "12px", fontWeight: "500" },
|
|
4200
|
-
children: /* @__PURE__ */
|
|
4200
|
+
children: /* @__PURE__ */ jsx16(DurationDisplay, {
|
|
4201
4201
|
entry
|
|
4202
|
-
}
|
|
4203
|
-
}
|
|
4202
|
+
})
|
|
4203
|
+
})
|
|
4204
4204
|
]
|
|
4205
|
-
}
|
|
4205
|
+
})
|
|
4206
4206
|
]
|
|
4207
|
-
}
|
|
4207
|
+
})
|
|
4208
4208
|
]
|
|
4209
|
-
}
|
|
4210
|
-
}
|
|
4209
|
+
})
|
|
4210
|
+
});
|
|
4211
4211
|
}
|
|
4212
4212
|
function ActionDetailPanel({
|
|
4213
4213
|
entry,
|
|
@@ -4237,7 +4237,7 @@ function ActionDetailPanel({
|
|
|
4237
4237
|
const handleFocusChild = (cuid) => {
|
|
4238
4238
|
setFocusedChildCuid((prev) => prev === cuid ? null : cuid);
|
|
4239
4239
|
};
|
|
4240
|
-
return /* @__PURE__ */
|
|
4240
|
+
return /* @__PURE__ */ jsxs14("div", {
|
|
4241
4241
|
style: {
|
|
4242
4242
|
flex: 1,
|
|
4243
4243
|
display: "flex",
|
|
@@ -4247,20 +4247,20 @@ function ActionDetailPanel({
|
|
|
4247
4247
|
background: DEVTOOL_DETAIL_BASE_BACKGROUND
|
|
4248
4248
|
},
|
|
4249
4249
|
children: [
|
|
4250
|
-
/* @__PURE__ */
|
|
4250
|
+
/* @__PURE__ */ jsx16(DetailHeader, {
|
|
4251
4251
|
entry,
|
|
4252
4252
|
isActive: focusedChildCuid === null,
|
|
4253
4253
|
onClick: () => setFocusedChildCuid(null),
|
|
4254
4254
|
childExternalRouteItems
|
|
4255
|
-
}
|
|
4256
|
-
/* @__PURE__ */
|
|
4255
|
+
}),
|
|
4256
|
+
/* @__PURE__ */ jsx16(CallStackSection, {
|
|
4257
4257
|
parent,
|
|
4258
4258
|
childEntries,
|
|
4259
4259
|
focusedChildCuid,
|
|
4260
4260
|
onFocusChild: handleFocusChild,
|
|
4261
4261
|
onSelectParent: onSelectEntry
|
|
4262
|
-
}
|
|
4263
|
-
/* @__PURE__ */
|
|
4262
|
+
}),
|
|
4263
|
+
/* @__PURE__ */ jsxs14("div", {
|
|
4264
4264
|
style: {
|
|
4265
4265
|
flex: 1,
|
|
4266
4266
|
overflowY: "auto",
|
|
@@ -4271,43 +4271,43 @@ function ActionDetailPanel({
|
|
|
4271
4271
|
gap: "8px"
|
|
4272
4272
|
},
|
|
4273
4273
|
children: [
|
|
4274
|
-
focusedEntry.input !== undefined ? /* @__PURE__ */
|
|
4274
|
+
focusedEntry.input !== undefined ? /* @__PURE__ */ jsx16(DetailSection, {
|
|
4275
4275
|
label: "Input",
|
|
4276
4276
|
value: focusedEntry.input
|
|
4277
|
-
}
|
|
4277
|
+
}) : /* @__PURE__ */ jsx16(DetailSection, {
|
|
4278
4278
|
label: "Input",
|
|
4279
4279
|
value: "No input required or given"
|
|
4280
|
-
}
|
|
4281
|
-
focusedEntry.status === "success" && /* @__PURE__ */
|
|
4280
|
+
}),
|
|
4281
|
+
focusedEntry.status === "success" && /* @__PURE__ */ jsx16(DetailSection, {
|
|
4282
4282
|
label: "Output",
|
|
4283
4283
|
value: focusedEntry.output,
|
|
4284
4284
|
color: DEVTOOL_COLOR_SEMANTIC_SUCCESS
|
|
4285
|
-
}
|
|
4286
|
-
(focusedEntry.status === "action-error" || focusedEntry.status === "failed" || focusedEntry.status === "aborted") && /* @__PURE__ */
|
|
4285
|
+
}),
|
|
4286
|
+
(focusedEntry.status === "action-error" || focusedEntry.status === "failed" || focusedEntry.status === "aborted") && /* @__PURE__ */ jsx16(ActionErrorDisplay, {
|
|
4287
4287
|
entry: focusedEntry
|
|
4288
|
-
}
|
|
4289
|
-
focusedEntry.progressUpdates.length > 0 && /* @__PURE__ */
|
|
4288
|
+
}),
|
|
4289
|
+
focusedEntry.progressUpdates.length > 0 && /* @__PURE__ */ jsx16(DetailSection, {
|
|
4290
4290
|
label: `Progress (${focusedEntry.progressUpdates.length})`,
|
|
4291
4291
|
value: focusedEntry.progressUpdates
|
|
4292
|
-
}
|
|
4293
|
-
/* @__PURE__ */
|
|
4292
|
+
}),
|
|
4293
|
+
/* @__PURE__ */ jsx16(StackTraceSection, {
|
|
4294
4294
|
runtime: entry.meta.originClient,
|
|
4295
4295
|
label: "Dispatch Site",
|
|
4296
4296
|
stack: focusedEntry.callSite,
|
|
4297
4297
|
color: DEVTOOL_COLOR_TEXT_SECONDARY,
|
|
4298
4298
|
minFrameCount: maxCallSiteFrames
|
|
4299
|
-
}
|
|
4300
|
-
/* @__PURE__ */
|
|
4299
|
+
}),
|
|
4300
|
+
/* @__PURE__ */ jsx16(RoutingSection, {
|
|
4301
4301
|
entry: focusedEntry,
|
|
4302
4302
|
minHopCount: maxRoutingHops
|
|
4303
|
-
}
|
|
4304
|
-
/* @__PURE__ */
|
|
4303
|
+
}),
|
|
4304
|
+
/* @__PURE__ */ jsx16(MetaSection, {
|
|
4305
4305
|
entry: focusedEntry
|
|
4306
|
-
}
|
|
4306
|
+
})
|
|
4307
4307
|
]
|
|
4308
|
-
}
|
|
4308
|
+
})
|
|
4309
4309
|
]
|
|
4310
|
-
}
|
|
4310
|
+
});
|
|
4311
4311
|
}
|
|
4312
4312
|
|
|
4313
4313
|
// src/devtools/browser/components/action_list/ActionList.tsx
|
|
@@ -4322,7 +4322,7 @@ import { CircleX as CircleX2, PackageCheck, Sparkle, Variable } from "lucide-rea
|
|
|
4322
4322
|
import { useState as useState9 } from "react";
|
|
4323
4323
|
|
|
4324
4324
|
// src/devtools/browser/components/action_list/IoTooltipContent.tsx
|
|
4325
|
-
import {
|
|
4325
|
+
import { jsx as jsx17, Fragment as Fragment8 } from "react/jsx-runtime";
|
|
4326
4326
|
var JSON_TOKEN_RE2 = /("(?:\\.|[^"\\])*")(\s*:)?|(-?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)|(\btrue\b|\bfalse\b|\bnull\b|\bundefined\b)|([{}[\],])/g;
|
|
4327
4327
|
function renderColoredJson2(text) {
|
|
4328
4328
|
const nodes = [];
|
|
@@ -4335,35 +4335,35 @@ function renderColoredJson2(text) {
|
|
|
4335
4335
|
const [, str, colon, num, kw, punct] = m;
|
|
4336
4336
|
if (str != null) {
|
|
4337
4337
|
if (colon != null) {
|
|
4338
|
-
nodes.push(/* @__PURE__ */
|
|
4338
|
+
nodes.push(/* @__PURE__ */ jsx17("span", {
|
|
4339
4339
|
style: { color: DEVTOOL_JSON_KEY },
|
|
4340
4340
|
children: str
|
|
4341
|
-
}, i
|
|
4342
|
-
nodes.push(/* @__PURE__ */
|
|
4341
|
+
}, i++));
|
|
4342
|
+
nodes.push(/* @__PURE__ */ jsx17("span", {
|
|
4343
4343
|
style: { color: DEVTOOL_JSON_PUNCTUATION },
|
|
4344
4344
|
children: colon
|
|
4345
|
-
}, i
|
|
4345
|
+
}, i++));
|
|
4346
4346
|
} else {
|
|
4347
|
-
nodes.push(/* @__PURE__ */
|
|
4347
|
+
nodes.push(/* @__PURE__ */ jsx17("span", {
|
|
4348
4348
|
style: { color: DEVTOOL_JSON_STRING },
|
|
4349
4349
|
children: str
|
|
4350
|
-
}, i
|
|
4350
|
+
}, i++));
|
|
4351
4351
|
}
|
|
4352
4352
|
} else if (num != null) {
|
|
4353
|
-
nodes.push(/* @__PURE__ */
|
|
4353
|
+
nodes.push(/* @__PURE__ */ jsx17("span", {
|
|
4354
4354
|
style: { color: DEVTOOL_JSON_NUMBER },
|
|
4355
4355
|
children: num
|
|
4356
|
-
}, i
|
|
4356
|
+
}, i++));
|
|
4357
4357
|
} else if (kw != null) {
|
|
4358
|
-
nodes.push(/* @__PURE__ */
|
|
4358
|
+
nodes.push(/* @__PURE__ */ jsx17("span", {
|
|
4359
4359
|
style: { color: DEVTOOL_JSON_KEYWORD },
|
|
4360
4360
|
children: kw
|
|
4361
|
-
}, i
|
|
4361
|
+
}, i++));
|
|
4362
4362
|
} else if (punct != null) {
|
|
4363
|
-
nodes.push(/* @__PURE__ */
|
|
4363
|
+
nodes.push(/* @__PURE__ */ jsx17("span", {
|
|
4364
4364
|
style: { color: DEVTOOL_JSON_PUNCTUATION },
|
|
4365
4365
|
children: punct
|
|
4366
|
-
}, i
|
|
4366
|
+
}, i++));
|
|
4367
4367
|
}
|
|
4368
4368
|
last = JSON_TOKEN_RE2.lastIndex;
|
|
4369
4369
|
}
|
|
@@ -4382,7 +4382,7 @@ function stripOuterBraces(json) {
|
|
|
4382
4382
|
}
|
|
4383
4383
|
function IoTooltipContent({ value }) {
|
|
4384
4384
|
const text = stripOuterBraces(safeStringify(value, 2));
|
|
4385
|
-
return /* @__PURE__ */
|
|
4385
|
+
return /* @__PURE__ */ jsx17("div", {
|
|
4386
4386
|
style: {
|
|
4387
4387
|
fontFamily: "ui-monospace, 'Cascadia Code', 'Source Code Pro', monospace",
|
|
4388
4388
|
fontSize: "10px",
|
|
@@ -4392,11 +4392,11 @@ function IoTooltipContent({ value }) {
|
|
|
4392
4392
|
textAlign: "left"
|
|
4393
4393
|
},
|
|
4394
4394
|
children: renderColoredJson2(text)
|
|
4395
|
-
}
|
|
4395
|
+
});
|
|
4396
4396
|
}
|
|
4397
4397
|
|
|
4398
4398
|
// src/devtools/browser/components/action_list/ActionInputAndOutputChip.tsx
|
|
4399
|
-
import {
|
|
4399
|
+
import { jsx as jsx18, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
4400
4400
|
var ActionInputAndOutputChip = ({
|
|
4401
4401
|
entry,
|
|
4402
4402
|
breakReasons,
|
|
@@ -4417,94 +4417,94 @@ var ActionInputAndOutputChip = ({
|
|
|
4417
4417
|
const sizeNum = getSizeValue(size);
|
|
4418
4418
|
const newIconSizeEm = `${sizeNum * 0.9}em`;
|
|
4419
4419
|
const label = `${(isLocal ? localEnvId : externalLabel) ?? "unknown"}`;
|
|
4420
|
-
const newSparkleComp = /* @__PURE__ */
|
|
4420
|
+
const newSparkleComp = /* @__PURE__ */ jsx18("div", {
|
|
4421
4421
|
style: {
|
|
4422
4422
|
opacity: 0.9,
|
|
4423
4423
|
alignSelf: "start",
|
|
4424
4424
|
marginLeft: "-0.6em"
|
|
4425
4425
|
},
|
|
4426
|
-
children: /* @__PURE__ */
|
|
4426
|
+
children: /* @__PURE__ */ jsx18(Sparkle, {
|
|
4427
4427
|
strokeWidth: "0.2em",
|
|
4428
4428
|
color: "rgba(243, 250, 140, 1)",
|
|
4429
4429
|
width: newIconSizeEm,
|
|
4430
4430
|
height: newIconSizeEm
|
|
4431
|
-
}
|
|
4432
|
-
}
|
|
4433
|
-
return /* @__PURE__ */
|
|
4431
|
+
})
|
|
4432
|
+
});
|
|
4433
|
+
return /* @__PURE__ */ jsx18(Chip, {
|
|
4434
4434
|
color,
|
|
4435
4435
|
size,
|
|
4436
4436
|
subtle,
|
|
4437
|
-
children: /* @__PURE__ */
|
|
4437
|
+
children: /* @__PURE__ */ jsxs15("div", {
|
|
4438
4438
|
style: { display: "flex", alignItems: "center", gap: "0.4em" },
|
|
4439
4439
|
children: [
|
|
4440
|
-
/* @__PURE__ */
|
|
4440
|
+
/* @__PURE__ */ jsx18(Icon, {
|
|
4441
4441
|
noBackground: true,
|
|
4442
4442
|
icon: Variable,
|
|
4443
4443
|
color,
|
|
4444
4444
|
subtle: subtle || entry.input === undefined,
|
|
4445
4445
|
tooltip: {
|
|
4446
|
-
content: entry.input !== undefined ? /* @__PURE__ */
|
|
4446
|
+
content: entry.input !== undefined ? /* @__PURE__ */ jsx18(IoTooltipContent, {
|
|
4447
4447
|
value: entry.input
|
|
4448
|
-
}
|
|
4448
|
+
}) : /* @__PURE__ */ jsx18("span", {
|
|
4449
4449
|
style: { color: DEVTOOL_COLOR_TEXT_MUTED, fontSize: "10px" },
|
|
4450
4450
|
children: "No input required or given"
|
|
4451
|
-
}
|
|
4451
|
+
}),
|
|
4452
4452
|
title: isNewInput ? "New Input" : "Input"
|
|
4453
4453
|
}
|
|
4454
|
-
}
|
|
4454
|
+
}),
|
|
4455
4455
|
isNewInput && newSparkleComp,
|
|
4456
|
-
/* @__PURE__ */
|
|
4456
|
+
/* @__PURE__ */ jsx18("span", {
|
|
4457
4457
|
style: { opacity: 0.6 },
|
|
4458
4458
|
color,
|
|
4459
4459
|
children: "→"
|
|
4460
|
-
}
|
|
4461
|
-
/* @__PURE__ */
|
|
4460
|
+
}),
|
|
4461
|
+
/* @__PURE__ */ jsx18("span", {
|
|
4462
4462
|
style: { opacity: 0.8, cursor: transportTooltip != null ? "default" : undefined },
|
|
4463
4463
|
onMouseEnter: transportTooltip != null ? (e) => setLabelAnchor(e.currentTarget.getBoundingClientRect()) : undefined,
|
|
4464
4464
|
onMouseLeave: transportTooltip != null ? () => setLabelAnchor(null) : undefined,
|
|
4465
4465
|
children: label
|
|
4466
|
-
}
|
|
4467
|
-
labelAnchor != null && transportTooltip != null && /* @__PURE__ */
|
|
4466
|
+
}),
|
|
4467
|
+
labelAnchor != null && transportTooltip != null && /* @__PURE__ */ jsx18(Tooltip, {
|
|
4468
4468
|
anchor: labelAnchor,
|
|
4469
4469
|
config: transportTooltip
|
|
4470
|
-
}
|
|
4471
|
-
/* @__PURE__ */
|
|
4470
|
+
}),
|
|
4471
|
+
/* @__PURE__ */ jsx18("span", {
|
|
4472
4472
|
style: { opacity: 0.6 },
|
|
4473
4473
|
color,
|
|
4474
4474
|
children: "→"
|
|
4475
|
-
}
|
|
4476
|
-
entry.status === "success" && entry.output !== undefined && /* @__PURE__ */
|
|
4475
|
+
}),
|
|
4476
|
+
entry.status === "success" && entry.output !== undefined && /* @__PURE__ */ jsx18(Icon, {
|
|
4477
4477
|
noBackground: true,
|
|
4478
4478
|
icon: PackageCheck,
|
|
4479
4479
|
color: !hasError ? color : "default" /* default */,
|
|
4480
4480
|
tooltip: {
|
|
4481
|
-
content: /* @__PURE__ */
|
|
4481
|
+
content: /* @__PURE__ */ jsx18(IoTooltipContent, {
|
|
4482
4482
|
value: entry.output
|
|
4483
|
-
}
|
|
4483
|
+
}),
|
|
4484
4484
|
title: isNewOutput ? "New Output" : "Output"
|
|
4485
4485
|
}
|
|
4486
|
-
}
|
|
4487
|
-
(entry.error != null || entry.abortReason != null) && /* @__PURE__ */
|
|
4486
|
+
}),
|
|
4487
|
+
(entry.error != null || entry.abortReason != null) && /* @__PURE__ */ jsx18(Icon, {
|
|
4488
4488
|
noBackground: true,
|
|
4489
4489
|
icon: CircleX2,
|
|
4490
4490
|
color: entry.status === "aborted" ? "aborted" /* aborted */ : "error" /* error */,
|
|
4491
4491
|
tooltip: {
|
|
4492
|
-
content: /* @__PURE__ */
|
|
4492
|
+
content: /* @__PURE__ */ jsx18(ActionErrorDisplay, {
|
|
4493
4493
|
entry,
|
|
4494
4494
|
compact: true
|
|
4495
|
-
}
|
|
4495
|
+
}),
|
|
4496
4496
|
title: entry.status === "aborted" ? "Aborted" : "Error",
|
|
4497
4497
|
maxWidth: 340
|
|
4498
4498
|
}
|
|
4499
|
-
}
|
|
4499
|
+
}),
|
|
4500
4500
|
isNewOutput && newSparkleComp
|
|
4501
4501
|
]
|
|
4502
|
-
}
|
|
4503
|
-
}
|
|
4502
|
+
})
|
|
4503
|
+
});
|
|
4504
4504
|
};
|
|
4505
4505
|
|
|
4506
4506
|
// src/devtools/browser/components/action_list/ActionEntryRow.tsx
|
|
4507
|
-
import {
|
|
4507
|
+
import { jsx as jsx19, jsxs as jsxs16, Fragment as Fragment10 } from "react/jsx-runtime";
|
|
4508
4508
|
var MAX_GROUP_DOTS = 5;
|
|
4509
4509
|
function getLatestChipColor(status) {
|
|
4510
4510
|
if (status === "failed")
|
|
@@ -4527,14 +4527,14 @@ function GroupDotTooltip({
|
|
|
4527
4527
|
const deltaMs = refTime - entry.startTime;
|
|
4528
4528
|
const relStr = index === 0 ? "latest run" : `−${formatRelativeAge(deltaMs)} from latest`;
|
|
4529
4529
|
const durationStr = entry.endTime != null ? `${entry.endTime - entry.startTime}ms` : "running…";
|
|
4530
|
-
return /* @__PURE__ */
|
|
4530
|
+
return /* @__PURE__ */ jsx19(Tooltip, {
|
|
4531
4531
|
anchor,
|
|
4532
4532
|
config: {
|
|
4533
4533
|
align: "center",
|
|
4534
4534
|
maxWidth: 240,
|
|
4535
|
-
content: /* @__PURE__ */
|
|
4535
|
+
content: /* @__PURE__ */ jsxs16(Fragment10, {
|
|
4536
4536
|
children: [
|
|
4537
|
-
/* @__PURE__ */
|
|
4537
|
+
/* @__PURE__ */ jsxs16("div", {
|
|
4538
4538
|
style: { color: dotColor, marginBottom: "1px" },
|
|
4539
4539
|
children: [
|
|
4540
4540
|
symbol,
|
|
@@ -4543,16 +4543,16 @@ function GroupDotTooltip({
|
|
|
4543
4543
|
" of ",
|
|
4544
4544
|
total
|
|
4545
4545
|
]
|
|
4546
|
-
}
|
|
4547
|
-
/* @__PURE__ */
|
|
4546
|
+
}),
|
|
4547
|
+
/* @__PURE__ */ jsx19("div", {
|
|
4548
4548
|
style: { color: DEVTOOL_COLOR_TEXT_SECONDARY },
|
|
4549
4549
|
children: formatTimestamp(entry.startTime)
|
|
4550
|
-
}
|
|
4551
|
-
/* @__PURE__ */
|
|
4550
|
+
}),
|
|
4551
|
+
/* @__PURE__ */ jsx19("div", {
|
|
4552
4552
|
style: { color: DEVTOOL_COLOR_TEXT_MUTED },
|
|
4553
4553
|
children: durationStr
|
|
4554
|
-
}
|
|
4555
|
-
index > 0 && /* @__PURE__ */
|
|
4554
|
+
}),
|
|
4555
|
+
index > 0 && /* @__PURE__ */ jsx19("div", {
|
|
4556
4556
|
style: {
|
|
4557
4557
|
color: DEVTOOL_COLOR_TEXT_MUTED,
|
|
4558
4558
|
marginTop: "3px",
|
|
@@ -4560,11 +4560,11 @@ function GroupDotTooltip({
|
|
|
4560
4560
|
borderTop: `1px solid ${DEVTOOL_SECTION_BACKGROUND}`
|
|
4561
4561
|
},
|
|
4562
4562
|
children: relStr
|
|
4563
|
-
}
|
|
4563
|
+
})
|
|
4564
4564
|
]
|
|
4565
|
-
}
|
|
4565
|
+
})
|
|
4566
4566
|
}
|
|
4567
|
-
}
|
|
4567
|
+
});
|
|
4568
4568
|
}
|
|
4569
4569
|
function GroupDot({
|
|
4570
4570
|
entry,
|
|
@@ -4577,9 +4577,9 @@ function GroupDot({
|
|
|
4577
4577
|
const [anchor, setAnchor] = useState10(null);
|
|
4578
4578
|
const dotColor = STATUS_COLOR[entry.status];
|
|
4579
4579
|
const hovered = anchor != null;
|
|
4580
|
-
return /* @__PURE__ */
|
|
4580
|
+
return /* @__PURE__ */ jsxs16(Fragment10, {
|
|
4581
4581
|
children: [
|
|
4582
|
-
/* @__PURE__ */
|
|
4582
|
+
/* @__PURE__ */ jsx19("button", {
|
|
4583
4583
|
"data-cuid": entry.cuid,
|
|
4584
4584
|
onClick: (e) => {
|
|
4585
4585
|
e.stopPropagation();
|
|
@@ -4600,17 +4600,17 @@ function GroupDot({
|
|
|
4600
4600
|
transform: hovered ? "scale(1.55)" : "scale(1)",
|
|
4601
4601
|
transition: "transform 0.1s ease, opacity 0.1s ease, border-color 0.1s ease"
|
|
4602
4602
|
}
|
|
4603
|
-
}
|
|
4604
|
-
hovered && anchor != null && /* @__PURE__ */
|
|
4603
|
+
}),
|
|
4604
|
+
hovered && anchor != null && /* @__PURE__ */ jsx19(GroupDotTooltip, {
|
|
4605
4605
|
entry,
|
|
4606
4606
|
index,
|
|
4607
4607
|
total,
|
|
4608
4608
|
refTime,
|
|
4609
4609
|
dotColor,
|
|
4610
4610
|
anchor
|
|
4611
|
-
}
|
|
4611
|
+
})
|
|
4612
4612
|
]
|
|
4613
|
-
}
|
|
4613
|
+
});
|
|
4614
4614
|
}
|
|
4615
4615
|
function ActionEntryRow({
|
|
4616
4616
|
entry,
|
|
@@ -4630,7 +4630,7 @@ function ActionEntryRow({
|
|
|
4630
4630
|
const nonIoBreakReasons = breakReasons?.filter((r) => r !== "new_input" /* new_input */ && r !== "new_output" /* new_output */) ?? [];
|
|
4631
4631
|
const hasBottomError = entry.error != null || entry.abortReason != null;
|
|
4632
4632
|
const hasBottomContent = externalChildEntries.length > 0 || nonIoBreakReasons.length > 0;
|
|
4633
|
-
return /* @__PURE__ */
|
|
4633
|
+
return /* @__PURE__ */ jsxs16("div", {
|
|
4634
4634
|
"data-cuid": entry.cuid,
|
|
4635
4635
|
onClick,
|
|
4636
4636
|
style: {
|
|
@@ -4647,7 +4647,7 @@ function ActionEntryRow({
|
|
|
4647
4647
|
margin: "2px 4px"
|
|
4648
4648
|
},
|
|
4649
4649
|
children: [
|
|
4650
|
-
/* @__PURE__ */
|
|
4650
|
+
/* @__PURE__ */ jsx19("div", {
|
|
4651
4651
|
style: {
|
|
4652
4652
|
position: "absolute",
|
|
4653
4653
|
left: "2em",
|
|
@@ -4658,11 +4658,11 @@ function ActionEntryRow({
|
|
|
4658
4658
|
pointerEvents: "none",
|
|
4659
4659
|
zIndex: 0
|
|
4660
4660
|
}
|
|
4661
|
-
}
|
|
4662
|
-
/* @__PURE__ */
|
|
4661
|
+
}),
|
|
4662
|
+
/* @__PURE__ */ jsxs16("div", {
|
|
4663
4663
|
style: { display: "flex", alignItems: "center", gap: "8px" },
|
|
4664
4664
|
children: [
|
|
4665
|
-
/* @__PURE__ */
|
|
4665
|
+
/* @__PURE__ */ jsx19("div", {
|
|
4666
4666
|
style: {
|
|
4667
4667
|
position: "relative",
|
|
4668
4668
|
zIndex: 1,
|
|
@@ -4672,23 +4672,23 @@ function ActionEntryRow({
|
|
|
4672
4672
|
alignItems: "center",
|
|
4673
4673
|
justifyContent: "flex-start"
|
|
4674
4674
|
},
|
|
4675
|
-
children: isLatest ? /* @__PURE__ */
|
|
4675
|
+
children: isLatest ? /* @__PURE__ */ jsx19(Chip, {
|
|
4676
4676
|
size: "sm" /* sm */,
|
|
4677
4677
|
color: getLatestChipColor(entry.status),
|
|
4678
4678
|
children: "latest"
|
|
4679
|
-
}
|
|
4679
|
+
}) : /* @__PURE__ */ jsxs16(Chip, {
|
|
4680
4680
|
size: "sm" /* sm */,
|
|
4681
4681
|
color: getLatestChipColor(entry.status),
|
|
4682
4682
|
children: [
|
|
4683
4683
|
"+",
|
|
4684
4684
|
latestTime != null ? formatRelativeAge(latestTime - entry.startTime) : "?"
|
|
4685
4685
|
]
|
|
4686
|
-
}
|
|
4687
|
-
}
|
|
4688
|
-
/* @__PURE__ */
|
|
4686
|
+
})
|
|
4687
|
+
}),
|
|
4688
|
+
/* @__PURE__ */ jsxs16("div", {
|
|
4689
4689
|
style: { flex: 1, minWidth: 0, display: "flex", alignItems: "center", gap: "0.5em" },
|
|
4690
4690
|
children: [
|
|
4691
|
-
/* @__PURE__ */
|
|
4691
|
+
/* @__PURE__ */ jsx19("span", {
|
|
4692
4692
|
style: {
|
|
4693
4693
|
color: DEVTOOL_COLOR_TEXT_SECONDARY,
|
|
4694
4694
|
fontSize: "1em",
|
|
@@ -4701,15 +4701,15 @@ function ActionEntryRow({
|
|
|
4701
4701
|
minWidth: "3em"
|
|
4702
4702
|
},
|
|
4703
4703
|
children: entry.actionId
|
|
4704
|
-
}
|
|
4705
|
-
/* @__PURE__ */
|
|
4704
|
+
}),
|
|
4705
|
+
/* @__PURE__ */ jsx19(ActionInputAndOutputChip, {
|
|
4706
4706
|
breakReasons,
|
|
4707
4707
|
entry
|
|
4708
|
-
}
|
|
4709
|
-
/* @__PURE__ */
|
|
4708
|
+
}),
|
|
4709
|
+
/* @__PURE__ */ jsx19("div", {
|
|
4710
4710
|
style: { flex: 1 }
|
|
4711
|
-
}
|
|
4712
|
-
/* @__PURE__ */
|
|
4711
|
+
}),
|
|
4712
|
+
/* @__PURE__ */ jsxs16("div", {
|
|
4713
4713
|
style: {
|
|
4714
4714
|
display: "flex",
|
|
4715
4715
|
flexDirection: "column",
|
|
@@ -4719,7 +4719,7 @@ function ActionEntryRow({
|
|
|
4719
4719
|
marginRight: "-0.2em"
|
|
4720
4720
|
},
|
|
4721
4721
|
children: [
|
|
4722
|
-
/* @__PURE__ */
|
|
4722
|
+
/* @__PURE__ */ jsx19("span", {
|
|
4723
4723
|
style: {
|
|
4724
4724
|
display: "flex",
|
|
4725
4725
|
color: DEVTOOL_COLOR_SEMANTIC_METADATA,
|
|
@@ -4731,8 +4731,8 @@ function ActionEntryRow({
|
|
|
4731
4731
|
opacity: 0.7
|
|
4732
4732
|
},
|
|
4733
4733
|
children: timestamp
|
|
4734
|
-
}
|
|
4735
|
-
/* @__PURE__ */
|
|
4734
|
+
}),
|
|
4735
|
+
/* @__PURE__ */ jsx19("span", {
|
|
4736
4736
|
style: {
|
|
4737
4737
|
display: "flex",
|
|
4738
4738
|
color: DEVTOOL_COLOR_SEMANTIC_WARNING,
|
|
@@ -4741,17 +4741,17 @@ function ActionEntryRow({
|
|
|
4741
4741
|
opacity: 0.9,
|
|
4742
4742
|
flexShrink: 0
|
|
4743
4743
|
},
|
|
4744
|
-
children: /* @__PURE__ */
|
|
4744
|
+
children: /* @__PURE__ */ jsx19(DurationDisplay, {
|
|
4745
4745
|
entry
|
|
4746
|
-
}
|
|
4747
|
-
}
|
|
4746
|
+
})
|
|
4747
|
+
})
|
|
4748
4748
|
]
|
|
4749
|
-
}
|
|
4749
|
+
})
|
|
4750
4750
|
]
|
|
4751
|
-
}
|
|
4751
|
+
})
|
|
4752
4752
|
]
|
|
4753
|
-
}
|
|
4754
|
-
hasBottomContent && /* @__PURE__ */
|
|
4753
|
+
}),
|
|
4754
|
+
hasBottomContent && /* @__PURE__ */ jsxs16("div", {
|
|
4755
4755
|
style: {
|
|
4756
4756
|
display: "flex",
|
|
4757
4757
|
flexWrap: "wrap",
|
|
@@ -4760,64 +4760,64 @@ function ActionEntryRow({
|
|
|
4760
4760
|
paddingLeft: "4.5em"
|
|
4761
4761
|
},
|
|
4762
4762
|
children: [
|
|
4763
|
-
externalChildEntries.map((child) => /* @__PURE__ */
|
|
4763
|
+
externalChildEntries.map((child) => /* @__PURE__ */ jsxs16(Fragment9, {
|
|
4764
4764
|
children: [
|
|
4765
|
-
/* @__PURE__ */
|
|
4765
|
+
/* @__PURE__ */ jsx19(Icon, {
|
|
4766
4766
|
size: "sm" /* sm */,
|
|
4767
4767
|
icon: Variable2,
|
|
4768
4768
|
color: "io_input" /* io_input */,
|
|
4769
4769
|
subtle: true,
|
|
4770
4770
|
tooltip: {
|
|
4771
|
-
content: child.input !== undefined ? /* @__PURE__ */
|
|
4771
|
+
content: child.input !== undefined ? /* @__PURE__ */ jsx19(IoTooltipContent, {
|
|
4772
4772
|
value: child.input
|
|
4773
|
-
}
|
|
4773
|
+
}) : /* @__PURE__ */ jsx19("span", {
|
|
4774
4774
|
style: { color: DEVTOOL_COLOR_TEXT_MUTED, fontSize: "10px" },
|
|
4775
4775
|
children: "No input required or given"
|
|
4776
|
-
}
|
|
4776
|
+
}),
|
|
4777
4777
|
title: `Input · ${child.actionId}`
|
|
4778
4778
|
}
|
|
4779
|
-
}
|
|
4780
|
-
/* @__PURE__ */
|
|
4779
|
+
}),
|
|
4780
|
+
/* @__PURE__ */ jsx19(HandlerChips, {
|
|
4781
4781
|
entry: child,
|
|
4782
4782
|
size: "sm" /* sm */,
|
|
4783
4783
|
subtle: true
|
|
4784
|
-
}
|
|
4785
|
-
child.status === "success" && child.output !== undefined && /* @__PURE__ */
|
|
4784
|
+
}),
|
|
4785
|
+
child.status === "success" && child.output !== undefined && /* @__PURE__ */ jsx19(Icon, {
|
|
4786
4786
|
size: "sm" /* sm */,
|
|
4787
4787
|
icon: PackageCheck2,
|
|
4788
4788
|
color: "io_output" /* io_output */,
|
|
4789
4789
|
subtle: true,
|
|
4790
4790
|
tooltip: {
|
|
4791
|
-
content: /* @__PURE__ */
|
|
4791
|
+
content: /* @__PURE__ */ jsx19(IoTooltipContent, {
|
|
4792
4792
|
value: child.output
|
|
4793
|
-
}
|
|
4793
|
+
}),
|
|
4794
4794
|
title: `Output · ${child.actionId}`
|
|
4795
4795
|
}
|
|
4796
|
-
}
|
|
4796
|
+
})
|
|
4797
4797
|
]
|
|
4798
|
-
}, child.actionId
|
|
4799
|
-
nonIoBreakReasons.map((reason) => /* @__PURE__ */
|
|
4798
|
+
}, child.actionId)),
|
|
4799
|
+
nonIoBreakReasons.map((reason) => /* @__PURE__ */ jsx19(Chip, {
|
|
4800
4800
|
color: "default" /* default */,
|
|
4801
4801
|
subtle: true,
|
|
4802
4802
|
children: reason
|
|
4803
|
-
}, reason
|
|
4804
|
-
externalChildEntries.length > 0 && hasBottomError && /* @__PURE__ */
|
|
4803
|
+
}, reason)),
|
|
4804
|
+
externalChildEntries.length > 0 && hasBottomError && /* @__PURE__ */ jsx19(Icon, {
|
|
4805
4805
|
size: "sm" /* sm */,
|
|
4806
4806
|
icon: CircleX3,
|
|
4807
4807
|
color: entry.status === "aborted" ? "aborted" /* aborted */ : "error" /* error */,
|
|
4808
4808
|
subtle: true,
|
|
4809
4809
|
tooltip: {
|
|
4810
|
-
content: /* @__PURE__ */
|
|
4810
|
+
content: /* @__PURE__ */ jsx19(ActionErrorDisplay, {
|
|
4811
4811
|
entry,
|
|
4812
4812
|
compact: true
|
|
4813
|
-
}
|
|
4813
|
+
}),
|
|
4814
4814
|
title: entry.status === "aborted" ? "Aborted" : "Error",
|
|
4815
4815
|
maxWidth: 340
|
|
4816
4816
|
}
|
|
4817
|
-
}
|
|
4817
|
+
})
|
|
4818
4818
|
]
|
|
4819
|
-
}
|
|
4820
|
-
hasGroup && /* @__PURE__ */
|
|
4819
|
+
}),
|
|
4820
|
+
hasGroup && /* @__PURE__ */ jsxs16("div", {
|
|
4821
4821
|
style: {
|
|
4822
4822
|
display: "flex",
|
|
4823
4823
|
flexWrap: "wrap",
|
|
@@ -4827,15 +4827,15 @@ function ActionEntryRow({
|
|
|
4827
4827
|
paddingBottom: "2px"
|
|
4828
4828
|
},
|
|
4829
4829
|
children: [
|
|
4830
|
-
groupEntries.slice(0, MAX_GROUP_DOTS).map((e, i) => /* @__PURE__ */
|
|
4830
|
+
groupEntries.slice(0, MAX_GROUP_DOTS).map((e, i) => /* @__PURE__ */ jsx19(GroupDot, {
|
|
4831
4831
|
entry: e,
|
|
4832
4832
|
index: i,
|
|
4833
4833
|
total: groupEntries.length,
|
|
4834
4834
|
refTime: groupEntries[0].startTime,
|
|
4835
4835
|
isActive: selectedGroupCuid === e.cuid,
|
|
4836
4836
|
onSelect: () => onSelectGroupEntry?.(e.cuid)
|
|
4837
|
-
}, e.cuid
|
|
4838
|
-
groupEntries.length > MAX_GROUP_DOTS && /* @__PURE__ */
|
|
4837
|
+
}, e.cuid)),
|
|
4838
|
+
groupEntries.length > MAX_GROUP_DOTS && /* @__PURE__ */ jsxs16("span", {
|
|
4839
4839
|
style: {
|
|
4840
4840
|
fontSize: "0.7em",
|
|
4841
4841
|
opacity: 0.5,
|
|
@@ -4846,15 +4846,15 @@ function ActionEntryRow({
|
|
|
4846
4846
|
"+ ",
|
|
4847
4847
|
groupEntries.length - MAX_GROUP_DOTS
|
|
4848
4848
|
]
|
|
4849
|
-
}
|
|
4849
|
+
})
|
|
4850
4850
|
]
|
|
4851
|
-
}
|
|
4851
|
+
})
|
|
4852
4852
|
]
|
|
4853
|
-
}
|
|
4853
|
+
});
|
|
4854
4854
|
}
|
|
4855
4855
|
|
|
4856
4856
|
// src/devtools/browser/components/action_list/ActionList.tsx
|
|
4857
|
-
import {
|
|
4857
|
+
import { jsx as jsx20, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
4858
4858
|
function getBreakReasons(current, previous) {
|
|
4859
4859
|
const reasons = [];
|
|
4860
4860
|
const inputChanged = current.inputHash != null && previous.inputHash != null ? current.inputHash !== previous.inputHash : safeStringify(current.input, 0) !== safeStringify(previous.input, 0);
|
|
@@ -4921,29 +4921,29 @@ function ActionList({
|
|
|
4921
4921
|
containerRef.current?.querySelector(`[data-cuid="${repCuid}"]`)?.scrollIntoView({ block: "nearest" });
|
|
4922
4922
|
}, [selectedCuid, flatItems]);
|
|
4923
4923
|
if (groups.length === 0) {
|
|
4924
|
-
return /* @__PURE__ */
|
|
4924
|
+
return /* @__PURE__ */ jsx20("div", {
|
|
4925
4925
|
style,
|
|
4926
|
-
children: /* @__PURE__ */
|
|
4926
|
+
children: /* @__PURE__ */ jsx20("div", {
|
|
4927
4927
|
style: { padding: "24px", textAlign: "center", color: DEVTOOL_COLOR_TEXT_MUTED },
|
|
4928
4928
|
children: "No actions recorded yet"
|
|
4929
|
-
}
|
|
4930
|
-
}
|
|
4929
|
+
})
|
|
4930
|
+
});
|
|
4931
4931
|
}
|
|
4932
|
-
return /* @__PURE__ */
|
|
4932
|
+
return /* @__PURE__ */ jsxs17("div", {
|
|
4933
4933
|
ref: containerRef,
|
|
4934
4934
|
style,
|
|
4935
4935
|
children: [
|
|
4936
4936
|
flatItems.map((item) => {
|
|
4937
4937
|
const key = getFlatItemKey(item);
|
|
4938
4938
|
const { group } = item;
|
|
4939
|
-
return /* @__PURE__ */
|
|
4939
|
+
return /* @__PURE__ */ jsxs17("div", {
|
|
4940
4940
|
style: {
|
|
4941
4941
|
borderBottom: `1px solid ${DEVTOOL_LIST_GROUP_DIVIDER}`,
|
|
4942
4942
|
position: "relative",
|
|
4943
4943
|
overflow: "hidden"
|
|
4944
4944
|
},
|
|
4945
4945
|
children: [
|
|
4946
|
-
/* @__PURE__ */
|
|
4946
|
+
/* @__PURE__ */ jsx20("div", {
|
|
4947
4947
|
style: {
|
|
4948
4948
|
position: "absolute",
|
|
4949
4949
|
inset: 0,
|
|
@@ -4951,8 +4951,8 @@ function ActionList({
|
|
|
4951
4951
|
background: "linear-gradient(90deg, transparent 0%, rgba(148, 210, 255, 0.13) 50%, transparent 100%)",
|
|
4952
4952
|
animation: "__nice-action-shine 0.65s ease-out forwards"
|
|
4953
4953
|
}
|
|
4954
|
-
}, group.representative.cuid
|
|
4955
|
-
/* @__PURE__ */
|
|
4954
|
+
}, group.representative.cuid),
|
|
4955
|
+
/* @__PURE__ */ jsx20(ActionEntryRow, {
|
|
4956
4956
|
entry: group.representative,
|
|
4957
4957
|
isSelected: selectedCuid === group.representative.cuid || group.rest.some((e) => e.cuid === selectedCuid),
|
|
4958
4958
|
isLatest: item.groupIndex === 0,
|
|
@@ -4963,21 +4963,21 @@ function ActionList({
|
|
|
4963
4963
|
selectedGroupCuid: selectedCuid,
|
|
4964
4964
|
onSelectGroupEntry: (cuid) => onSubClick(cuid, selectedCuid === cuid),
|
|
4965
4965
|
onClick: () => onGroupClick(group)
|
|
4966
|
-
}
|
|
4966
|
+
})
|
|
4967
4967
|
]
|
|
4968
|
-
}, key
|
|
4968
|
+
}, key);
|
|
4969
4969
|
}),
|
|
4970
|
-
/* @__PURE__ */
|
|
4970
|
+
/* @__PURE__ */ jsx20("div", {
|
|
4971
4971
|
style: { padding: "24px", textAlign: "center", color: DEVTOOL_COLOR_TEXT_MUTED },
|
|
4972
4972
|
children: "Start of action history"
|
|
4973
|
-
}
|
|
4973
|
+
})
|
|
4974
4974
|
]
|
|
4975
|
-
}
|
|
4975
|
+
});
|
|
4976
4976
|
}
|
|
4977
4977
|
|
|
4978
4978
|
// src/devtools/browser/components/PanelChrome.tsx
|
|
4979
4979
|
import { useState as useState11 } from "react";
|
|
4980
|
-
import {
|
|
4980
|
+
import { jsx as jsx21, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
4981
4981
|
var MONO_FONT = "ui-monospace, 'Cascadia Code', 'Source Code Pro', monospace";
|
|
4982
4982
|
var SANS_FONT = "ui-sans-serif, system-ui, sans-serif";
|
|
4983
4983
|
var DOCKED_SIZE_MIN = 140;
|
|
@@ -5011,7 +5011,7 @@ function PanelHeader({
|
|
|
5011
5011
|
onClear,
|
|
5012
5012
|
openOthers
|
|
5013
5013
|
}) {
|
|
5014
|
-
return /* @__PURE__ */
|
|
5014
|
+
return /* @__PURE__ */ jsxs18("div", {
|
|
5015
5015
|
style: {
|
|
5016
5016
|
display: "flex",
|
|
5017
5017
|
alignItems: "center",
|
|
@@ -5023,10 +5023,10 @@ function PanelHeader({
|
|
|
5023
5023
|
flexShrink: 0
|
|
5024
5024
|
},
|
|
5025
5025
|
children: [
|
|
5026
|
-
/* @__PURE__ */
|
|
5026
|
+
/* @__PURE__ */ jsxs18("div", {
|
|
5027
5027
|
style: { display: "flex", alignItems: "center", gap: "8px", minWidth: 0 },
|
|
5028
5028
|
children: [
|
|
5029
|
-
/* @__PURE__ */
|
|
5029
|
+
/* @__PURE__ */ jsx21("span", {
|
|
5030
5030
|
style: {
|
|
5031
5031
|
color: DEVTOOL_COLOR_SEMANTIC_SYSTEM,
|
|
5032
5032
|
fontWeight: "bold",
|
|
@@ -5034,8 +5034,8 @@ function PanelHeader({
|
|
|
5034
5034
|
whiteSpace: "nowrap"
|
|
5035
5035
|
},
|
|
5036
5036
|
children: "⚡ action"
|
|
5037
|
-
}
|
|
5038
|
-
openOthers?.map((item) => /* @__PURE__ */
|
|
5037
|
+
}),
|
|
5038
|
+
openOthers?.map((item) => /* @__PURE__ */ jsxs18("button", {
|
|
5039
5039
|
onClick: item.onOpen,
|
|
5040
5040
|
title: `Open ${item.label} devtools`,
|
|
5041
5041
|
style: {
|
|
@@ -5053,28 +5053,28 @@ function PanelHeader({
|
|
|
5053
5053
|
whiteSpace: "nowrap"
|
|
5054
5054
|
},
|
|
5055
5055
|
children: [
|
|
5056
|
-
/* @__PURE__ */
|
|
5056
|
+
/* @__PURE__ */ jsx21("span", {
|
|
5057
5057
|
children: item.icon
|
|
5058
|
-
}
|
|
5059
|
-
/* @__PURE__ */
|
|
5058
|
+
}),
|
|
5059
|
+
/* @__PURE__ */ jsx21("span", {
|
|
5060
5060
|
children: item.label
|
|
5061
|
-
}
|
|
5062
|
-
item.badge != null && /* @__PURE__ */
|
|
5061
|
+
}),
|
|
5062
|
+
item.badge != null && /* @__PURE__ */ jsx21("span", {
|
|
5063
5063
|
style: { color: DEVTOOL_COLOR_SEMANTIC_SYSTEM },
|
|
5064
5064
|
children: item.badge
|
|
5065
|
-
}
|
|
5065
|
+
})
|
|
5066
5066
|
]
|
|
5067
|
-
}, item.id
|
|
5067
|
+
}, item.id))
|
|
5068
5068
|
]
|
|
5069
|
-
}
|
|
5070
|
-
/* @__PURE__ */
|
|
5069
|
+
}),
|
|
5070
|
+
/* @__PURE__ */ jsxs18("div", {
|
|
5071
5071
|
style: { display: "flex", gap: "10px", alignItems: "center" },
|
|
5072
5072
|
children: [
|
|
5073
|
-
/* @__PURE__ */
|
|
5073
|
+
/* @__PURE__ */ jsx21(PositionPicker, {
|
|
5074
5074
|
position,
|
|
5075
5075
|
onChange: onPositionChange
|
|
5076
|
-
}
|
|
5077
|
-
onClear != null && /* @__PURE__ */
|
|
5076
|
+
}),
|
|
5077
|
+
onClear != null && /* @__PURE__ */ jsx21("button", {
|
|
5078
5078
|
onClick: onClear,
|
|
5079
5079
|
style: {
|
|
5080
5080
|
background: "none",
|
|
@@ -5085,8 +5085,8 @@ function PanelHeader({
|
|
|
5085
5085
|
padding: "0"
|
|
5086
5086
|
},
|
|
5087
5087
|
children: "clear"
|
|
5088
|
-
}
|
|
5089
|
-
/* @__PURE__ */
|
|
5088
|
+
}),
|
|
5089
|
+
/* @__PURE__ */ jsx21("button", {
|
|
5090
5090
|
onClick: onClose,
|
|
5091
5091
|
style: {
|
|
5092
5092
|
background: "none",
|
|
@@ -5098,27 +5098,27 @@ function PanelHeader({
|
|
|
5098
5098
|
lineHeight: "1"
|
|
5099
5099
|
},
|
|
5100
5100
|
children: "×"
|
|
5101
|
-
}
|
|
5101
|
+
})
|
|
5102
5102
|
]
|
|
5103
|
-
}
|
|
5103
|
+
})
|
|
5104
5104
|
]
|
|
5105
|
-
}
|
|
5105
|
+
});
|
|
5106
5106
|
}
|
|
5107
5107
|
function PositionPicker({
|
|
5108
5108
|
position,
|
|
5109
5109
|
onChange
|
|
5110
5110
|
}) {
|
|
5111
|
-
return /* @__PURE__ */
|
|
5111
|
+
return /* @__PURE__ */ jsx21("div", {
|
|
5112
5112
|
title: "Move / dock panel",
|
|
5113
5113
|
style: { display: "grid", gridTemplateColumns: "repeat(3, 9px)", gap: "2px", padding: "2px" },
|
|
5114
5114
|
children: POSITION_GRID.map(({ key, pos }) => {
|
|
5115
5115
|
if (pos == null)
|
|
5116
|
-
return /* @__PURE__ */
|
|
5116
|
+
return /* @__PURE__ */ jsx21("div", {
|
|
5117
5117
|
style: { width: "9px", height: "9px" }
|
|
5118
|
-
}, key
|
|
5118
|
+
}, key);
|
|
5119
5119
|
const isTopBottom = pos === "dock-top" || pos === "dock-bottom";
|
|
5120
5120
|
const isActive = pos === position;
|
|
5121
|
-
return /* @__PURE__ */
|
|
5121
|
+
return /* @__PURE__ */ jsx21("div", {
|
|
5122
5122
|
title: pos,
|
|
5123
5123
|
onClick: () => onChange(pos),
|
|
5124
5124
|
style: {
|
|
@@ -5129,17 +5129,17 @@ function PositionPicker({
|
|
|
5129
5129
|
justifyContent: "center",
|
|
5130
5130
|
cursor: "pointer"
|
|
5131
5131
|
},
|
|
5132
|
-
children: /* @__PURE__ */
|
|
5132
|
+
children: /* @__PURE__ */ jsx21("div", {
|
|
5133
5133
|
style: {
|
|
5134
5134
|
width: isTopBottom ? "9px" : "3px",
|
|
5135
5135
|
height: isTopBottom ? "3px" : "9px",
|
|
5136
5136
|
borderRadius: "1px",
|
|
5137
5137
|
background: isActive ? DEVTOOL_COLOR_SEMANTIC_SYSTEM : DEVTOOL_COLOR_TEXT_FAINT
|
|
5138
5138
|
}
|
|
5139
|
-
}
|
|
5140
|
-
}, key
|
|
5139
|
+
})
|
|
5140
|
+
}, key);
|
|
5141
5141
|
})
|
|
5142
|
-
}
|
|
5142
|
+
});
|
|
5143
5143
|
}
|
|
5144
5144
|
function ResizeHandle({
|
|
5145
5145
|
dockSide,
|
|
@@ -5165,7 +5165,7 @@ function ResizeHandle({
|
|
|
5165
5165
|
window.addEventListener("mouseup", onUp);
|
|
5166
5166
|
};
|
|
5167
5167
|
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" };
|
|
5168
|
-
return /* @__PURE__ */
|
|
5168
|
+
return /* @__PURE__ */ jsx21("div", {
|
|
5169
5169
|
onMouseDown,
|
|
5170
5170
|
style: {
|
|
5171
5171
|
position: "absolute",
|
|
@@ -5173,7 +5173,7 @@ function ResizeHandle({
|
|
|
5173
5173
|
background: "transparent",
|
|
5174
5174
|
...edgeStyle
|
|
5175
5175
|
}
|
|
5176
|
-
}
|
|
5176
|
+
});
|
|
5177
5177
|
}
|
|
5178
5178
|
var SPLIT_RATIO_MIN = 0.15;
|
|
5179
5179
|
var SPLIT_RATIO_MAX = 0.85;
|
|
@@ -5199,7 +5199,7 @@ function SplitHandle({
|
|
|
5199
5199
|
window.addEventListener("mousemove", onMove);
|
|
5200
5200
|
window.addEventListener("mouseup", onUp);
|
|
5201
5201
|
};
|
|
5202
|
-
return /* @__PURE__ */
|
|
5202
|
+
return /* @__PURE__ */ jsx21("div", {
|
|
5203
5203
|
onMouseDown,
|
|
5204
5204
|
onMouseEnter: () => setHovered(true),
|
|
5205
5205
|
onMouseLeave: () => setHovered(false),
|
|
@@ -5211,10 +5211,10 @@ function SplitHandle({
|
|
|
5211
5211
|
opacity: hovered ? 0.6 : 1,
|
|
5212
5212
|
zIndex: 5
|
|
5213
5213
|
}
|
|
5214
|
-
}
|
|
5214
|
+
});
|
|
5215
5215
|
}
|
|
5216
5216
|
function DevtoolsLauncher({ items }) {
|
|
5217
|
-
return /* @__PURE__ */
|
|
5217
|
+
return /* @__PURE__ */ jsx21("div", {
|
|
5218
5218
|
style: {
|
|
5219
5219
|
position: "fixed",
|
|
5220
5220
|
bottom: "16px",
|
|
@@ -5224,7 +5224,7 @@ function DevtoolsLauncher({ items }) {
|
|
|
5224
5224
|
fontFamily: MONO_FONT,
|
|
5225
5225
|
fontSize: "12px"
|
|
5226
5226
|
},
|
|
5227
|
-
children: /* @__PURE__ */
|
|
5227
|
+
children: /* @__PURE__ */ jsx21("div", {
|
|
5228
5228
|
style: {
|
|
5229
5229
|
display: "flex",
|
|
5230
5230
|
background: DEVTOOL_SECTION_BACKGROUND,
|
|
@@ -5233,7 +5233,7 @@ function DevtoolsLauncher({ items }) {
|
|
|
5233
5233
|
overflow: "hidden",
|
|
5234
5234
|
boxShadow: "0 8px 24px rgba(0,0,0,0.35)"
|
|
5235
5235
|
},
|
|
5236
|
-
children: items.map((item, i) => /* @__PURE__ */
|
|
5236
|
+
children: items.map((item, i) => /* @__PURE__ */ jsxs18("button", {
|
|
5237
5237
|
onClick: item.onOpen,
|
|
5238
5238
|
style: {
|
|
5239
5239
|
display: "flex",
|
|
@@ -5250,20 +5250,20 @@ function DevtoolsLauncher({ items }) {
|
|
|
5250
5250
|
lineHeight: "1.5"
|
|
5251
5251
|
},
|
|
5252
5252
|
children: [
|
|
5253
|
-
/* @__PURE__ */
|
|
5253
|
+
/* @__PURE__ */ jsx21("span", {
|
|
5254
5254
|
children: item.icon
|
|
5255
|
-
}
|
|
5256
|
-
/* @__PURE__ */
|
|
5255
|
+
}),
|
|
5256
|
+
/* @__PURE__ */ jsx21("span", {
|
|
5257
5257
|
children: item.label
|
|
5258
|
-
}
|
|
5259
|
-
item.badge != null && /* @__PURE__ */
|
|
5258
|
+
}),
|
|
5259
|
+
item.badge != null && /* @__PURE__ */ jsx21("span", {
|
|
5260
5260
|
style: { color: DEVTOOL_COLOR_SEMANTIC_SYSTEM },
|
|
5261
5261
|
children: item.badge
|
|
5262
|
-
}
|
|
5262
|
+
})
|
|
5263
5263
|
]
|
|
5264
|
-
}, item.id
|
|
5265
|
-
}
|
|
5266
|
-
}
|
|
5264
|
+
}, item.id))
|
|
5265
|
+
})
|
|
5266
|
+
});
|
|
5267
5267
|
}
|
|
5268
5268
|
|
|
5269
5269
|
// src/devtools/browser/devtools_dock.ts
|
|
@@ -5374,7 +5374,7 @@ function getDevtoolsDockCoordinator() {
|
|
|
5374
5374
|
}
|
|
5375
5375
|
|
|
5376
5376
|
// src/devtools/browser/NiceActionDevtools.tsx
|
|
5377
|
-
import {
|
|
5377
|
+
import { jsx as jsx22, jsxs as jsxs19, Fragment as Fragment11 } from "react/jsx-runtime";
|
|
5378
5378
|
if (typeof document !== "undefined" && !document.getElementById("__nice-action-devtools-styles")) {
|
|
5379
5379
|
const style = document.createElement("style");
|
|
5380
5380
|
style.id = "__nice-action-devtools-styles";
|
|
@@ -5475,10 +5475,12 @@ function groupEntries(entries) {
|
|
|
5475
5475
|
return groups;
|
|
5476
5476
|
}
|
|
5477
5477
|
function NiceActionDevtools({ forceEnable, ...props }) {
|
|
5478
|
-
if (!forceEnable &&
|
|
5479
|
-
|
|
5478
|
+
if (!forceEnable && process["env"]["NODE_ENV"] !== "development") {
|
|
5479
|
+
return null;
|
|
5480
|
+
}
|
|
5481
|
+
return /* @__PURE__ */ jsx22(NiceActionDevtools_Panel, {
|
|
5480
5482
|
...props
|
|
5481
|
-
}
|
|
5483
|
+
});
|
|
5482
5484
|
}
|
|
5483
5485
|
function NiceActionDevtools_Panel({
|
|
5484
5486
|
core,
|
|
@@ -5563,9 +5565,9 @@ function NiceActionDevtools_Panel({
|
|
|
5563
5565
|
};
|
|
5564
5566
|
if (!isOpen) {
|
|
5565
5567
|
if (view.isPrimary && !view.anyOpen) {
|
|
5566
|
-
return /* @__PURE__ */
|
|
5568
|
+
return /* @__PURE__ */ jsx22(DevtoolsLauncher, {
|
|
5567
5569
|
items: view.devtools
|
|
5568
|
-
}
|
|
5570
|
+
});
|
|
5569
5571
|
}
|
|
5570
5572
|
return null;
|
|
5571
5573
|
}
|
|
@@ -5615,16 +5617,16 @@ function NiceActionDevtools_Panel({
|
|
|
5615
5617
|
},
|
|
5616
5618
|
childEntriesMap
|
|
5617
5619
|
};
|
|
5618
|
-
return /* @__PURE__ */
|
|
5620
|
+
return /* @__PURE__ */ jsxs19("div", {
|
|
5619
5621
|
id: "__nice-action-devtools-panel",
|
|
5620
5622
|
style: panelStyle,
|
|
5621
5623
|
children: [
|
|
5622
|
-
/* @__PURE__ */
|
|
5624
|
+
/* @__PURE__ */ jsx22(ResizeHandle, {
|
|
5623
5625
|
dockSide,
|
|
5624
5626
|
dockedSize,
|
|
5625
5627
|
onChange: (size) => setPrefs(isHorizDock ? { dockedHeight: size } : { dockedWidth: size })
|
|
5626
|
-
}
|
|
5627
|
-
/* @__PURE__ */
|
|
5628
|
+
}),
|
|
5629
|
+
/* @__PURE__ */ jsx22(PanelHeader, {
|
|
5628
5630
|
position,
|
|
5629
5631
|
onPositionChange: (p) => setPrefs({ position: p }),
|
|
5630
5632
|
onClose: () => setPrefs({ isOpen: false }),
|
|
@@ -5633,8 +5635,8 @@ function NiceActionDevtools_Panel({
|
|
|
5633
5635
|
setSelectedCuid(null);
|
|
5634
5636
|
} : undefined,
|
|
5635
5637
|
openOthers: view.otherClosed
|
|
5636
|
-
}
|
|
5637
|
-
/* @__PURE__ */
|
|
5638
|
+
}),
|
|
5639
|
+
/* @__PURE__ */ jsxs19("div", {
|
|
5638
5640
|
style: {
|
|
5639
5641
|
flex: 1,
|
|
5640
5642
|
display: "flex",
|
|
@@ -5643,7 +5645,7 @@ function NiceActionDevtools_Panel({
|
|
|
5643
5645
|
minHeight: 0
|
|
5644
5646
|
},
|
|
5645
5647
|
children: [
|
|
5646
|
-
/* @__PURE__ */
|
|
5648
|
+
/* @__PURE__ */ jsx22("div", {
|
|
5647
5649
|
style: {
|
|
5648
5650
|
flexGrow: selectedEntry != null ? 1 - detailRatio : 1,
|
|
5649
5651
|
flexShrink: 1,
|
|
@@ -5651,18 +5653,18 @@ function NiceActionDevtools_Panel({
|
|
|
5651
5653
|
minWidth: 0,
|
|
5652
5654
|
minHeight: 0
|
|
5653
5655
|
},
|
|
5654
|
-
children: /* @__PURE__ */
|
|
5656
|
+
children: /* @__PURE__ */ jsx22(ActionList, {
|
|
5655
5657
|
...virtualListProps,
|
|
5656
5658
|
style: { width: "100%", height: "100%", overflowY: "auto" }
|
|
5657
|
-
}
|
|
5658
|
-
}
|
|
5659
|
-
selectedEntry != null && /* @__PURE__ */
|
|
5659
|
+
})
|
|
5660
|
+
}),
|
|
5661
|
+
selectedEntry != null && /* @__PURE__ */ jsxs19(Fragment11, {
|
|
5660
5662
|
children: [
|
|
5661
|
-
/* @__PURE__ */
|
|
5663
|
+
/* @__PURE__ */ jsx22(SplitHandle, {
|
|
5662
5664
|
horizontal: isHorizDock,
|
|
5663
5665
|
onRatioChange: (ratio) => setPrefs({ detailRatio: ratio })
|
|
5664
|
-
}
|
|
5665
|
-
/* @__PURE__ */
|
|
5666
|
+
}),
|
|
5667
|
+
/* @__PURE__ */ jsx22("div", {
|
|
5666
5668
|
style: {
|
|
5667
5669
|
flexGrow: detailRatio,
|
|
5668
5670
|
flexShrink: 1,
|
|
@@ -5680,19 +5682,19 @@ function NiceActionDevtools_Panel({
|
|
|
5680
5682
|
boxShadow: "inset 0 18px 36px -14px rgba(0,0,0,0.8)"
|
|
5681
5683
|
}
|
|
5682
5684
|
},
|
|
5683
|
-
children: /* @__PURE__ */
|
|
5685
|
+
children: /* @__PURE__ */ jsx22(ActionDetailPanel, {
|
|
5684
5686
|
entry: selectedEntry,
|
|
5685
5687
|
parent: selectedEntryParent,
|
|
5686
5688
|
childEntries: selectedEntryChildren,
|
|
5687
5689
|
onSelectEntry: (cuid) => setSelectedCuid(cuid)
|
|
5688
|
-
}, selectedEntry.cuid
|
|
5689
|
-
}
|
|
5690
|
+
}, selectedEntry.cuid)
|
|
5691
|
+
})
|
|
5690
5692
|
]
|
|
5691
|
-
}
|
|
5693
|
+
})
|
|
5692
5694
|
]
|
|
5693
|
-
}
|
|
5695
|
+
})
|
|
5694
5696
|
]
|
|
5695
|
-
}
|
|
5697
|
+
});
|
|
5696
5698
|
}
|
|
5697
5699
|
export {
|
|
5698
5700
|
NiceActionDevtools,
|