@workflow/web 5.0.0-beta.41 → 5.0.0-beta.42
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-9JVnf-IU.css +1 -0
- package/build/client/assets/{arrow-up-right-jWH-UQH9.js → arrow-up-right-D39pnGsD.js} +1 -1
- package/build/client/assets/{highlighted-body-B3W2YXNL-DmmWu7VM.js → highlighted-body-B3W2YXNL-Dc1dLaUr.js} +1 -1
- package/build/client/assets/{home-BwYHJJJr.js → home-C6CuMqQu.js} +3 -3
- package/build/client/assets/{loader-circle-fFQM94Ej.js → loader-circle-BOxaTUjK.js} +1 -1
- package/build/client/assets/{manifest-f6a9dca2.js → manifest-cf88886b.js} +1 -1
- package/build/client/assets/{mermaid-3ZIDBTTL-DchhEfRL.js → mermaid-3ZIDBTTL-gEw-Ch1C.js} +308 -284
- package/build/client/assets/{root-D6p4Hb4F.js → root-BfhMCbkz.js} +3 -3
- package/build/client/assets/root-Bl5xphvU.css +1 -0
- package/build/client/assets/{run-detail-vPCbZIXx.js → run-detail-DKz7lp2q.js} +221 -105
- package/build/client/assets/{workflow-graph-viewer-t_fSwuwz.js → workflow-graph-viewer-CxrWityD.js} +3 -145
- package/build/client/assets/{zstd-browser-decoder-BTw1glGN.js → zstd-browser-decoder-CAEVa0bm.js} +1 -1
- package/build/server/assets/{app-D8GiFFR6.js → app-SrggQnfh.js} +739 -608
- package/build/server/assets/{highlighted-body-B3W2YXNL-BZVc2guG.js → highlighted-body-B3W2YXNL-DMhwZQgG.js} +1 -1
- package/build/server/assets/{index-DTci39F3.js → index-ByPjQpgH.js} +1 -1
- package/build/server/assets/index-DsnQrgwB.js +156 -0
- package/build/server/assets/{mermaid-3ZIDBTTL-DOefrphg.js → mermaid-3ZIDBTTL-CK9fLYE8.js} +1 -1
- package/build/server/assets/{token-c3byIJRC.js → token-sFDUVNm0.js} +1 -1
- package/build/server/assets/{token-util-C2yENsqE.js → token-util-CighjZkT.js} +1 -1
- package/build/server/assets/{websocket-server-DagS_hnJ.js → websocket-server-BADWB2u5.js} +1 -1
- package/build/server/assets/{wrapper-Cnumc4u1.js → wrapper-Bwi-W3ol.js} +3 -3
- package/build/server/assets/{ws-transport-2gJL6hC2.js → ws-transport-DaZsgQ2B.js} +41 -3
- package/build/server/assets/{zstd-browser-decoder-BCVvr1WT.js → zstd-browser-decoder-dRi0VqoM.js} +1 -1
- package/build/server/index.js +3 -3
- package/package.json +7 -7
- package/build/client/assets/app-BkGXg64e.css +0 -1
- package/build/client/assets/root-ZRjqDhEN.css +0 -1
- package/build/server/assets/index-BByEr1g6.js +0 -154
package/build/client/assets/{workflow-graph-viewer-t_fSwuwz.js → workflow-graph-viewer-CxrWityD.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
2
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
3
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
|
-
import { c as createLucideIcon, J as ChevronDown,
|
|
4
|
+
import { c as createLucideIcon, J as ChevronDown, Z as cn, e as cn$1, O as cva, bg as composeRefs, L as useComposedRefs, bh as useFloating, bi as offset, bj as shift, bk as limitShift, bl as flip, bm as size, bn as arrow, bo as hide, bp as autoUpdate, m as ChevronRight, C as Check, bq as VERCEL_403_ERROR_MESSAGE, br as bulkCancelRuns$1, bs as reenqueueRun$1, bt as wakeUpRun$1, bu as resumeHook$1, bv as fetchHookToken$1, bw as cancelRun$1, bx as recreateRun$1, T as Tooltip, a as TooltipTrigger, l as Copy, b as TooltipContent, z as createContextScope$1, p as useComposedRefs$1, E as createSlot, ag as formatDuration, B as Button, t as toast, w as useId$1, P as Primitive$1, q as composeEventHandlers$1, G as useControllableState$1, o as useCallbackRef$2, U as Presence$1 } from "./mermaid-3ZIDBTTL-gEw-Ch1C.js";
|
|
5
5
|
import { r as reactExports, j as jsxRuntimeExports, o as reactDomExports, R as ReactExports, H as React, D as ReactDOM, f as requireReact, I as getDefaultExportFromCjs } from "./index-PFjW8YjQ.js";
|
|
6
6
|
function parseName(tag, name) {
|
|
7
7
|
if (typeof name !== "string") {
|
|
@@ -298,152 +298,10 @@ function ResolveHookModal({ isOpen, onClose, onSubmit, isSubmitting = false }) {
|
|
|
298
298
|
if (!isOpen) {
|
|
299
299
|
return null;
|
|
300
300
|
}
|
|
301
|
-
return jsxRuntimeExports.jsxs("div", {
|
|
302
|
-
position: "fixed",
|
|
303
|
-
inset: 0,
|
|
304
|
-
zIndex: 50,
|
|
305
|
-
display: "flex",
|
|
306
|
-
alignItems: "center",
|
|
307
|
-
justifyContent: "center"
|
|
308
|
-
}, role: "dialog", "aria-modal": "true", "aria-labelledby": "resolve-hook-modal-title", children: [jsxRuntimeExports.jsx("div", { style: {
|
|
309
|
-
position: "absolute",
|
|
310
|
-
inset: 0,
|
|
311
|
-
background: "rgba(0, 0, 0, 0.7)"
|
|
312
|
-
}, onClick: isSubmitting ? void 0 : onClose }), jsxRuntimeExports.jsxs("div", { style: {
|
|
313
|
-
position: "relative",
|
|
314
|
-
zIndex: 10,
|
|
315
|
-
width: 480,
|
|
316
|
-
maxWidth: "calc(100% - 32px)",
|
|
317
|
-
borderRadius: 12,
|
|
318
|
-
border: "none",
|
|
319
|
-
boxShadow: "var(--ds-shadow-menu)",
|
|
320
|
-
background: "var(--ds-background-100)",
|
|
321
|
-
color: "var(--ds-gray-1000)",
|
|
322
|
-
overflow: "hidden"
|
|
323
|
-
}, children: [jsxRuntimeExports.jsxs("div", { style: {
|
|
324
|
-
display: "flex",
|
|
325
|
-
alignItems: "center",
|
|
326
|
-
justifyContent: "space-between",
|
|
327
|
-
padding: "16px 24px"
|
|
328
|
-
}, children: [jsxRuntimeExports.jsx("h2", { id: "resolve-hook-modal-title", style: {
|
|
329
|
-
margin: 0,
|
|
330
|
-
fontSize: 16,
|
|
331
|
-
fontWeight: 600,
|
|
332
|
-
color: "var(--ds-gray-1000)"
|
|
333
|
-
}, children: "Resolve Hook" }), jsxRuntimeExports.jsx("button", { type: "button", onClick: onClose, disabled: isSubmitting, "aria-label": "Close modal", style: {
|
|
334
|
-
display: "flex",
|
|
335
|
-
alignItems: "center",
|
|
336
|
-
justifyContent: "center",
|
|
337
|
-
padding: 4,
|
|
338
|
-
borderRadius: 6,
|
|
339
|
-
border: "none",
|
|
340
|
-
background: "transparent",
|
|
341
|
-
color: "var(--ds-gray-900)",
|
|
342
|
-
cursor: isSubmitting ? "not-allowed" : "pointer",
|
|
343
|
-
opacity: isSubmitting ? 0.5 : 1,
|
|
344
|
-
transition: "background 0.15s"
|
|
345
|
-
}, onMouseEnter: (e) => {
|
|
346
|
-
e.currentTarget.style.background = "var(--ds-gray-alpha-200)";
|
|
347
|
-
}, onMouseLeave: (e) => {
|
|
348
|
-
e.currentTarget.style.background = "transparent";
|
|
349
|
-
}, children: jsxRuntimeExports.jsx(X, { style: { width: 16, height: 16 } }) })] }), jsxRuntimeExports.jsxs("form", { onSubmit: handleSubmit, children: [jsxRuntimeExports.jsxs("div", { style: { padding: "0 24px 16px" }, children: [jsxRuntimeExports.jsx("label", { htmlFor: "json-payload", style: {
|
|
350
|
-
display: "block",
|
|
351
|
-
fontSize: 14,
|
|
352
|
-
fontWeight: 500,
|
|
353
|
-
marginBottom: 6,
|
|
354
|
-
color: "var(--ds-gray-1000)"
|
|
355
|
-
}, children: "JSON Payload" }), jsxRuntimeExports.jsxs("p", { style: {
|
|
356
|
-
fontSize: 13,
|
|
357
|
-
marginBottom: 12,
|
|
358
|
-
marginTop: 0,
|
|
359
|
-
color: "var(--ds-gray-900)",
|
|
360
|
-
lineHeight: 1.5
|
|
361
|
-
}, children: ["Enter a JSON value to send to the hook. Leave empty to send", " ", jsxRuntimeExports.jsx("code", { style: {
|
|
362
|
-
padding: "2px 6px",
|
|
363
|
-
borderRadius: 4,
|
|
364
|
-
fontSize: 12,
|
|
365
|
-
fontFamily: 'var(--font-mono, ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace)',
|
|
366
|
-
background: "var(--ds-gray-alpha-200)",
|
|
367
|
-
color: "var(--ds-gray-1000)"
|
|
368
|
-
}, children: "null" }), "."] }), jsxRuntimeExports.jsx("textarea", { ref: textareaRef, id: "json-payload", value: jsonInput, onChange: (e) => {
|
|
301
|
+
return jsxRuntimeExports.jsxs("div", { className: "fixed inset-0 z-50 flex items-center justify-center", role: "dialog", "aria-modal": "true", "aria-labelledby": "resolve-hook-modal-title", children: [jsxRuntimeExports.jsx("div", { className: "absolute inset-0 bg-black/70", onClick: isSubmitting ? void 0 : onClose }), jsxRuntimeExports.jsxs("div", { className: "relative z-10 w-[480px] max-w-[calc(100%_-_32px)] overflow-hidden !border-none bg-background-100 text-gray-1000 material-menu", children: [jsxRuntimeExports.jsxs("div", { className: "flex items-center justify-between px-6 py-4", children: [jsxRuntimeExports.jsx("h2", { id: "resolve-hook-modal-title", className: "m-0 font-semibold text-base text-gray-1000", children: "Resolve Hook" }), jsxRuntimeExports.jsx("button", { type: "button", onClick: onClose, disabled: isSubmitting, "aria-label": "Close modal", className: "flex cursor-pointer items-center justify-center rounded-md !border-none !bg-transparent p-1 text-gray-900 transition-colors hover:!bg-gray-alpha-200 disabled:cursor-not-allowed disabled:opacity-50", children: jsxRuntimeExports.jsx(X, { className: "size-4" }) })] }), jsxRuntimeExports.jsxs("form", { onSubmit: handleSubmit, children: [jsxRuntimeExports.jsxs("div", { className: "px-6 pb-4", children: [jsxRuntimeExports.jsx("label", { htmlFor: "json-payload", className: "mb-1.5 block font-medium text-gray-1000 text-sm", children: "JSON Payload" }), jsxRuntimeExports.jsxs("p", { className: "mt-0 mb-3 text-[13px] text-gray-900 leading-[1.5]", children: ["Enter a JSON value to send to the hook. Leave empty to send", " ", jsxRuntimeExports.jsx("code", { className: "rounded bg-gray-alpha-200 px-1.5 py-0.5 font-mono text-gray-1000 text-xs", children: "null" }), "."] }), jsxRuntimeExports.jsx("textarea", { ref: textareaRef, id: "json-payload", value: jsonInput, onChange: (e) => {
|
|
369
302
|
setJsonInput(e.target.value);
|
|
370
303
|
setParseError(null);
|
|
371
|
-
}, onKeyDown: handleKeyDown, disabled: isSubmitting, placeholder: '{"key": "value"}',
|
|
372
|
-
width: "100%",
|
|
373
|
-
height: 160,
|
|
374
|
-
padding: "8px 12px",
|
|
375
|
-
fontFamily: 'var(--font-mono, ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace)',
|
|
376
|
-
fontSize: 13,
|
|
377
|
-
lineHeight: 1.5,
|
|
378
|
-
borderRadius: 8,
|
|
379
|
-
border: `1px solid ${parseError ? "var(--ds-red-700)" : "var(--ds-gray-alpha-400)"}`,
|
|
380
|
-
color: "var(--ds-gray-1000)",
|
|
381
|
-
background: "var(--ds-background-100)",
|
|
382
|
-
outline: "none",
|
|
383
|
-
resize: "none",
|
|
384
|
-
opacity: isSubmitting ? 0.5 : 1,
|
|
385
|
-
cursor: isSubmitting ? "not-allowed" : "text",
|
|
386
|
-
boxSizing: "border-box"
|
|
387
|
-
} }), parseError && jsxRuntimeExports.jsx("p", { style: {
|
|
388
|
-
marginTop: 8,
|
|
389
|
-
fontSize: 13,
|
|
390
|
-
color: "var(--ds-red-900)",
|
|
391
|
-
margin: "8px 0 0"
|
|
392
|
-
}, children: parseError }), jsxRuntimeExports.jsxs("p", { style: {
|
|
393
|
-
marginTop: 8,
|
|
394
|
-
fontSize: 12,
|
|
395
|
-
color: "var(--ds-gray-800)",
|
|
396
|
-
margin: "8px 0 0"
|
|
397
|
-
}, children: ["Press", " ", jsxRuntimeExports.jsxs("kbd", { style: {
|
|
398
|
-
padding: "2px 5px",
|
|
399
|
-
borderRadius: 4,
|
|
400
|
-
fontSize: 11,
|
|
401
|
-
fontFamily: 'var(--font-mono, ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace)',
|
|
402
|
-
background: "var(--ds-gray-alpha-200)",
|
|
403
|
-
border: "1px solid var(--ds-gray-alpha-400)"
|
|
404
|
-
}, children: [isMacPlatform ? "⌘" : "Ctrl", "+Enter"] }), " ", "to submit"] })] }), jsxRuntimeExports.jsxs("div", { style: {
|
|
405
|
-
display: "flex",
|
|
406
|
-
alignItems: "center",
|
|
407
|
-
justifyContent: "flex-end",
|
|
408
|
-
gap: 8,
|
|
409
|
-
padding: "12px 24px",
|
|
410
|
-
borderTop: "1px solid var(--ds-gray-alpha-400)"
|
|
411
|
-
}, children: [jsxRuntimeExports.jsx("button", { type: "button", onClick: onClose, disabled: isSubmitting, style: {
|
|
412
|
-
padding: "8px 16px",
|
|
413
|
-
fontSize: 14,
|
|
414
|
-
fontWeight: 500,
|
|
415
|
-
borderRadius: 8,
|
|
416
|
-
border: "1px solid var(--ds-gray-alpha-400)",
|
|
417
|
-
background: "var(--ds-background-100)",
|
|
418
|
-
color: "var(--ds-gray-1000)",
|
|
419
|
-
cursor: isSubmitting ? "not-allowed" : "pointer",
|
|
420
|
-
opacity: isSubmitting ? 0.5 : 1,
|
|
421
|
-
transition: "background 0.15s"
|
|
422
|
-
}, onMouseEnter: (e) => {
|
|
423
|
-
e.currentTarget.style.background = "var(--ds-gray-alpha-100)";
|
|
424
|
-
}, onMouseLeave: (e) => {
|
|
425
|
-
e.currentTarget.style.background = "var(--ds-background-100)";
|
|
426
|
-
}, children: "Cancel" }), jsxRuntimeExports.jsxs("button", { type: "button", onClick: () => void submitPayload(), disabled: isSubmitting, style: {
|
|
427
|
-
display: "flex",
|
|
428
|
-
alignItems: "center",
|
|
429
|
-
gap: 6,
|
|
430
|
-
padding: "8px 16px",
|
|
431
|
-
fontSize: 14,
|
|
432
|
-
fontWeight: 500,
|
|
433
|
-
borderRadius: 8,
|
|
434
|
-
border: "none",
|
|
435
|
-
background: "var(--ds-gray-1000)",
|
|
436
|
-
color: "var(--ds-background-100)",
|
|
437
|
-
cursor: isSubmitting ? "not-allowed" : "pointer",
|
|
438
|
-
opacity: isSubmitting ? 0.5 : 1,
|
|
439
|
-
transition: "opacity 0.15s"
|
|
440
|
-
}, onMouseEnter: (e) => {
|
|
441
|
-
if (!isSubmitting)
|
|
442
|
-
e.currentTarget.style.opacity = "0.9";
|
|
443
|
-
}, onMouseLeave: (e) => {
|
|
444
|
-
if (!isSubmitting)
|
|
445
|
-
e.currentTarget.style.opacity = "1";
|
|
446
|
-
}, children: [jsxRuntimeExports.jsx(Send, { style: { width: 14, height: 14 } }), isSubmitting ? "Sending..." : "Send Payload"] })] })] })] })] });
|
|
304
|
+
}, onKeyDown: handleKeyDown, disabled: isSubmitting, placeholder: '{"key": "value"}', className: cn("box-border h-40 w-full resize-none rounded-lg border bg-background-100 px-3 py-2 font-mono text-[13px] text-gray-1000 leading-[1.5] outline-none disabled:cursor-not-allowed disabled:opacity-50", parseError ? "border-red-700" : "border-gray-alpha-400") }), parseError && jsxRuntimeExports.jsx("p", { className: "mt-2 mb-0 text-[13px] text-red-900", children: parseError }), jsxRuntimeExports.jsxs("p", { className: "mt-2 mb-0 text-gray-800 text-xs", children: ["Press", " ", jsxRuntimeExports.jsxs("kbd", { className: "rounded border border-gray-alpha-400 bg-gray-alpha-200 px-[5px] py-0.5 font-mono text-[11px]", children: [isMacPlatform ? "⌘" : "Ctrl", "+Enter"] }), " ", "to submit"] })] }), jsxRuntimeExports.jsxs("div", { className: "flex items-center justify-end gap-2 border-gray-alpha-400 border-t px-6 py-3", children: [jsxRuntimeExports.jsx("button", { type: "button", onClick: onClose, disabled: isSubmitting, className: "cursor-pointer rounded-lg border border-gray-alpha-400 bg-background-100 px-4 py-2 font-medium text-gray-1000 text-sm transition-colors hover:bg-gray-alpha-100 disabled:cursor-not-allowed disabled:opacity-50", children: "Cancel" }), jsxRuntimeExports.jsxs("button", { type: "button", onClick: () => void submitPayload(), disabled: isSubmitting, className: "flex cursor-pointer items-center gap-1.5 rounded-lg !border-none bg-gray-1000 px-4 py-2 font-medium text-background-100 text-sm transition-opacity hover:opacity-90 disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:opacity-50", children: [jsxRuntimeExports.jsx(Send, { className: "size-3.5" }), isSubmitting ? "Sending..." : "Send Payload"] })] })] })] })] });
|
|
447
305
|
}
|
|
448
306
|
const millisecondsInWeek = 6048e5;
|
|
449
307
|
const millisecondsInDay = 864e5;
|