@workflow/web 5.3.2 → 5.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/client/assets/app-CmaRLUwS.css +1 -0
- package/build/client/assets/arrow-up-right-AHTyWXU2.js +9 -0
- package/build/client/assets/{entry.client-xzxVCL3o.js → entry.client-BqbaswKw.js} +13 -35
- package/build/client/assets/{highlighted-body-JLMTFACH-1yzOVKg0.js → highlighted-body-JLMTFACH-_kzpqYmW.js} +2 -2
- package/build/client/assets/{home--wf0CrF6.js → home-DjUPTrY5.js} +91 -161
- package/build/client/assets/{index-wl5l5E8H.js → index-BUQuaV5X.js} +78 -149
- package/build/client/assets/{manifest-7b81d8d4.js → manifest-9126df65.js} +1 -1
- package/build/client/assets/{mermaid-WFAXDIZX-CB__BxYb.js → mermaid-WFAXDIZX-CNo_0yWo.js} +1236 -1340
- package/build/client/assets/mermaid-WFAXDIZX-F88p7PFX.css +1 -0
- package/build/client/assets/{root-C1XwTNUK.js → root-Bh-E5He-.js} +7 -31
- package/build/client/assets/root-kJB77No4.css +1 -0
- package/build/client/assets/{rpc-client-SbyXJdFV.js → rpc-client-DL_nSX36.js} +3 -4
- package/build/client/assets/{run-detail-2CnpdXm1.js → run-detail-5dPVsaSm.js} +121 -203
- package/build/client/assets/{run-usage-DRV6lopZ.js → run-usage-BEswHGKU.js} +15 -24
- package/build/client/assets/{run-usage-C3aywyqa.js → run-usage-C_wyncgV.js} +5 -5
- package/build/client/assets/{skeleton-DMLgjvZZ.js → skeleton-DE14mNQw.js} +3 -21
- package/build/client/assets/{url-state-JAVaNZ_m.js → url-state-5GKQwo-f.js} +471 -702
- package/build/client/assets/{zstd-browser-decoder-Z5736ep5.js → zstd-browser-decoder-CbTMLAMd.js} +2 -2
- package/build/server/assets/{app-C4Vf0mu1.js → app-C-e60j14.js} +11450 -12386
- package/build/server/assets/{esm-CETb4fkq.js → esm-BzrGWk7J.js} +2 -2
- package/build/server/assets/{highlighted-body-JLMTFACH-CF_5tt3-.js → highlighted-body-JLMTFACH-B7y0X_Kn.js} +1 -1
- package/build/server/assets/{index-BrYeW--s.js → index-DRDsjR--.js} +398 -490
- package/build/server/assets/{mermaid-WFAXDIZX-BHZz_uL6.js → mermaid-WFAXDIZX-MsPxEM1Y.js} +1 -1
- package/build/server/assets/{token-B94O3LuJ.js → token-CKgyaeCJ.js} +5 -5
- package/build/server/assets/{token-k0na1G9v.js → token-DXh0TnqB.js} +6 -6
- package/build/server/assets/{token-util-DFlzY9Hw.js → token-util-CCc0uYVy.js} +2 -2
- package/build/server/assets/{token-util-DgTmPzWb.js → token-util-DOHYMq7D.js} +1 -1
- package/build/server/assets/{wrapper-BEqyNEir.js → wrapper-BzLz38Oh.js} +2 -2
- package/build/server/assets/{zstd-browser-decoder-LnaKiDUZ.js → zstd-browser-decoder-BSSEC3XP.js} +1 -1
- package/build/server/index.js +1 -1
- package/package.json +8 -8
- package/build/client/assets/app-BHCSMHev.css +0 -1
- package/build/client/assets/arrow-up-right-DyaB_ak4.js +0 -15
- package/build/client/assets/mermaid-WFAXDIZX-D8CjRQta.css +0 -1
- package/build/client/assets/root-C3ED6Dwc.css +0 -1
|
@@ -1,13 +1,7 @@
|
|
|
1
|
-
import { r as reactExports, j as jsxRuntimeExports, L as Link } from "./index-
|
|
2
|
-
import { c as createLucideIcon, a as cn, u as useRowWindow, i as isSpanDimmedBySearch, b as ROW_HEIGHT_PX, T as Tooltip, d as TooltipTrigger, e as TooltipContent, g as getSpanDurationMs, f as isSpanErrored, h as isSpanCancelled, j as formatDurationPrecise, B as Button, C as ChevronRight } from "./mermaid-WFAXDIZX-
|
|
3
|
-
import { f as formatStepName, p as parseStepName, a as parseWorkflowName, C as Circle, b as CircleAlert, R as RotateCw, S as Skeleton } from "./skeleton-
|
|
4
|
-
import { A as ArrowUpRight } from "./arrow-up-right-
|
|
5
|
-
/**
|
|
6
|
-
* @license lucide-react v0.575.0 - ISC
|
|
7
|
-
*
|
|
8
|
-
* This source code is licensed under the ISC license.
|
|
9
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/
|
|
1
|
+
import { r as reactExports, j as jsxRuntimeExports, L as Link } from "./index-BUQuaV5X.js";
|
|
2
|
+
import { c as createLucideIcon, a as cn, u as useRowWindow, i as isSpanDimmedBySearch, b as ROW_HEIGHT_PX, T as Tooltip, d as TooltipTrigger, e as TooltipContent, g as getSpanDurationMs, f as isSpanErrored, h as isSpanCancelled, j as formatDurationPrecise, B as Button, C as ChevronRight } from "./mermaid-WFAXDIZX-CNo_0yWo.js";
|
|
3
|
+
import { f as formatStepName, p as parseStepName, a as parseWorkflowName, C as Circle, b as CircleAlert, R as RotateCw, S as Skeleton } from "./skeleton-DE14mNQw.js";
|
|
4
|
+
import { A as ArrowUpRight } from "./arrow-up-right-AHTyWXU2.js";
|
|
11
5
|
const __iconNode = [
|
|
12
6
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
13
7
|
["path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3", key: "1u773s" }],
|
|
@@ -33,12 +27,11 @@ function plural(count, one, many) {
|
|
|
33
27
|
return `${count.toLocaleString("en-US")} ${count === 1 ? one : many}`;
|
|
34
28
|
}
|
|
35
29
|
function usageSpanLabel(span) {
|
|
36
|
-
var _a, _b;
|
|
37
30
|
if (span.kind === "step") {
|
|
38
|
-
return
|
|
31
|
+
return parseStepName(span.name)?.shortName || span.name;
|
|
39
32
|
}
|
|
40
33
|
if (span.kind === "run") {
|
|
41
|
-
return
|
|
34
|
+
return parseWorkflowName(span.name)?.shortName || span.name;
|
|
42
35
|
}
|
|
43
36
|
return span.name;
|
|
44
37
|
}
|
|
@@ -337,7 +330,7 @@ function flushMeasurements() {
|
|
|
337
330
|
pendingMeasurements.clear();
|
|
338
331
|
const measures = reads.map((read) => read());
|
|
339
332
|
for (const measure of measures) {
|
|
340
|
-
measure
|
|
333
|
+
measure?.();
|
|
341
334
|
}
|
|
342
335
|
}
|
|
343
336
|
function scheduleMeasurement(key, { read, measure }) {
|
|
@@ -416,7 +409,7 @@ function useMiddleTruncate(value) {
|
|
|
416
409
|
if (!measureEl)
|
|
417
410
|
return;
|
|
418
411
|
const lastMeasurement = lastMeasurementRef.current;
|
|
419
|
-
if (
|
|
412
|
+
if (lastMeasurement?.availableWidth === availableWidth && lastMeasurement.typography === typography && lastMeasurement.value === value) {
|
|
420
413
|
return;
|
|
421
414
|
}
|
|
422
415
|
lastMeasurementRef.current = {
|
|
@@ -466,7 +459,6 @@ function useMiddleTruncate(value) {
|
|
|
466
459
|
}
|
|
467
460
|
}, [readMeasurement, recalculate]);
|
|
468
461
|
reactExports.useEffect(() => {
|
|
469
|
-
var _a;
|
|
470
462
|
const el = ref.current;
|
|
471
463
|
if (!el)
|
|
472
464
|
return;
|
|
@@ -478,7 +470,7 @@ function useMiddleTruncate(value) {
|
|
|
478
470
|
});
|
|
479
471
|
};
|
|
480
472
|
const ro = typeof ResizeObserver !== "undefined" ? new ResizeObserver(scheduleRecalculation) : null;
|
|
481
|
-
ro
|
|
473
|
+
ro?.observe(el);
|
|
482
474
|
if (!ro) {
|
|
483
475
|
window.addEventListener("resize", scheduleRecalculation);
|
|
484
476
|
}
|
|
@@ -488,15 +480,14 @@ function useMiddleTruncate(value) {
|
|
|
488
480
|
scheduleRecalculation();
|
|
489
481
|
};
|
|
490
482
|
const fontSet = "fonts" in document ? document.fonts : null;
|
|
491
|
-
|
|
483
|
+
fontSet?.addEventListener?.("loadingdone", onFontsLoaded);
|
|
492
484
|
return () => {
|
|
493
|
-
|
|
494
|
-
ro == null ? void 0 : ro.disconnect();
|
|
485
|
+
ro?.disconnect();
|
|
495
486
|
if (!ro) {
|
|
496
487
|
window.removeEventListener("resize", scheduleRecalculation);
|
|
497
488
|
}
|
|
498
489
|
cancelMeasurement(measurementKey);
|
|
499
|
-
|
|
490
|
+
fontSet?.removeEventListener?.("loadingdone", onFontsLoaded);
|
|
500
491
|
};
|
|
501
492
|
}, [readMeasurement, recalculate]);
|
|
502
493
|
return {
|
|
@@ -535,7 +526,7 @@ function MiddleTruncate({ value, className, onCopy: onCopyProp, ...props }) {
|
|
|
535
526
|
const { ref, measureRef, displayText, isTruncated, prefixText, suffixText } = useMiddleTruncate(value);
|
|
536
527
|
const visibleRef = reactExports.useRef(null);
|
|
537
528
|
const handleCopy = reactExports.useCallback((e) => {
|
|
538
|
-
onCopyProp
|
|
529
|
+
onCopyProp?.(e);
|
|
539
530
|
if (e.defaultPrevented || !isTruncated)
|
|
540
531
|
return;
|
|
541
532
|
const selection = window.getSelection();
|
|
@@ -559,12 +550,12 @@ function MiddleTruncate({ value, className, onCopy: onCopyProp, ...props }) {
|
|
|
559
550
|
});
|
|
560
551
|
}
|
|
561
552
|
}
|
|
562
|
-
copyText
|
|
553
|
+
copyText ??= getMiddleTruncateCopyTextFromSelectionText({
|
|
563
554
|
prefixText,
|
|
564
555
|
selectionText,
|
|
565
556
|
suffixText,
|
|
566
557
|
value
|
|
567
|
-
})
|
|
558
|
+
});
|
|
568
559
|
if (copyText === null)
|
|
569
560
|
return;
|
|
570
561
|
e.preventDefault();
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { w as withComponentProps, u as useOutletContext, j as jsxRuntimeExports } from "./index-
|
|
2
|
-
import { R as RunUsagePage } from "./run-usage-
|
|
1
|
+
import { w as withComponentProps, u as useOutletContext, j as jsxRuntimeExports } from "./index-BUQuaV5X.js";
|
|
2
|
+
import { R as RunUsagePage } from "./run-usage-BEswHGKU.js";
|
|
3
3
|
import { D as DEFAULT_TITLE, a as DEFAULT_META_DESCRIPTION } from "./meta-9cjJ0pVb.js";
|
|
4
|
-
import "./mermaid-WFAXDIZX-
|
|
5
|
-
import "./skeleton-
|
|
6
|
-
import "./arrow-up-right-
|
|
4
|
+
import "./mermaid-WFAXDIZX-CNo_0yWo.js";
|
|
5
|
+
import "./skeleton-DE14mNQw.js";
|
|
6
|
+
import "./arrow-up-right-AHTyWXU2.js";
|
|
7
7
|
function meta({
|
|
8
8
|
params
|
|
9
9
|
}) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as createLucideIcon, a as cn } from "./mermaid-WFAXDIZX-
|
|
2
|
-
import { j as jsxRuntimeExports } from "./index-
|
|
1
|
+
import { c as createLucideIcon, a as cn } from "./mermaid-WFAXDIZX-CNo_0yWo.js";
|
|
2
|
+
import { j as jsxRuntimeExports } from "./index-BUQuaV5X.js";
|
|
3
3
|
function parseName(tag, name) {
|
|
4
4
|
if (typeof name !== "string") {
|
|
5
5
|
return null;
|
|
@@ -15,7 +15,7 @@ function parseName(tag, name) {
|
|
|
15
15
|
moduleShortName = moduleSpecifier.split("/").at(-1) ?? "";
|
|
16
16
|
} else {
|
|
17
17
|
const withoutVersion = moduleSpecifier.split("@").slice(0, -1).join("@") || moduleSpecifier.split("@")[0];
|
|
18
|
-
moduleShortName =
|
|
18
|
+
moduleShortName = withoutVersion?.split("/").at(-1) ?? "";
|
|
19
19
|
}
|
|
20
20
|
if (["default", "__default"].includes(shortName) && moduleShortName) {
|
|
21
21
|
shortName = moduleShortName;
|
|
@@ -40,32 +40,14 @@ function formatParsedName(parsed, fallback) {
|
|
|
40
40
|
return fallback;
|
|
41
41
|
return `${parsed.shortName} (${parsed.moduleSpecifier})`;
|
|
42
42
|
}
|
|
43
|
-
/**
|
|
44
|
-
* @license lucide-react v0.575.0 - ISC
|
|
45
|
-
*
|
|
46
|
-
* This source code is licensed under the ISC license.
|
|
47
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
48
|
-
*/
|
|
49
43
|
const __iconNode$2 = [
|
|
50
44
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
51
45
|
["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
|
|
52
46
|
["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }]
|
|
53
47
|
];
|
|
54
48
|
const CircleAlert = createLucideIcon("circle-alert", __iconNode$2);
|
|
55
|
-
/**
|
|
56
|
-
* @license lucide-react v0.575.0 - ISC
|
|
57
|
-
*
|
|
58
|
-
* This source code is licensed under the ISC license.
|
|
59
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
60
|
-
*/
|
|
61
49
|
const __iconNode$1 = [["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]];
|
|
62
50
|
const Circle = createLucideIcon("circle", __iconNode$1);
|
|
63
|
-
/**
|
|
64
|
-
* @license lucide-react v0.575.0 - ISC
|
|
65
|
-
*
|
|
66
|
-
* This source code is licensed under the ISC license.
|
|
67
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
68
|
-
*/
|
|
69
51
|
const __iconNode = [
|
|
70
52
|
["path", { d: "M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8", key: "1p45f6" }],
|
|
71
53
|
["path", { d: "M21 3v5h-5", key: "1q7to0" }]
|