@workflow/web 5.0.0-beta.37 → 5.0.0-beta.39

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.
Files changed (33) hide show
  1. package/README.md +1 -0
  2. package/build/client/assets/app-BqwHo5GR.css +1 -0
  3. package/build/client/assets/{arrow-up-right-DDNPFYmg.js → arrow-up-right-Ccx_FPfU.js} +1 -1
  4. package/build/client/assets/{highlighted-body-B3W2YXNL-CRgNr0YA.js → highlighted-body-B3W2YXNL-DMawUm9n.js} +1 -1
  5. package/build/client/assets/{home-BqvW8ODs.js → home-B6O_uPSC.js} +3 -2
  6. package/build/client/assets/loader-circle-BrO0dxVn.js +12 -0
  7. package/build/client/assets/manifest-7e8691f4.js +1 -0
  8. package/build/client/assets/{mermaid-3ZIDBTTL-CMP9Tato.js → mermaid-3ZIDBTTL-D20ZkB54.js} +665 -1682
  9. package/build/client/assets/mermaid-3ZIDBTTL-D8CjRQta.css +1 -0
  10. package/build/client/assets/root-CxZylOIf.css +1 -0
  11. package/build/client/assets/{root-2ub-CsWS.js → root-dudvdmvf.js} +6 -2
  12. package/build/client/assets/{run-detail-B1PK-m7y.js → run-detail-DtCCxxv2.js} +277 -359
  13. package/build/client/assets/{workflow-graph-viewer-DOLwtzSv.js → workflow-graph-viewer-B01nH75E.js} +65 -86
  14. package/build/client/assets/{zstd-browser-decoder-BAY5XtBl.js → zstd-browser-decoder-Dw3HhTgO.js} +1 -1
  15. package/build/server/assets/{server-build-C11Xqmwk.js → app-Bd12Opaf.js} +96186 -87164
  16. package/build/server/assets/{highlighted-body-B3W2YXNL-DE3KXslx.js → highlighted-body-B3W2YXNL-CFlRme7u.js} +3 -4
  17. package/build/server/assets/{index-M4Ai7vsa.js → index-B6SJpqpo.js} +65 -63
  18. package/build/server/assets/{mermaid-3ZIDBTTL-DjL45D7x.js → mermaid-3ZIDBTTL-CQsU8DGa.js} +4 -5
  19. package/build/server/assets/{token-Ulh8Tdgw.js → token-XJr1pjmC.js} +1 -2
  20. package/build/server/assets/{token-util-CiVcDWD3.js → token-util-BJaMxWWP.js} +1 -2
  21. package/build/server/assets/{zstd-browser-decoder-tQARkzJ5.js → zstd-browser-decoder-DL7Vc3pV.js} +4 -5
  22. package/build/server/index.js +41 -2
  23. package/handler.d.ts +22 -0
  24. package/handler.js +186 -0
  25. package/package.json +20 -8
  26. package/registry.d.ts +29 -0
  27. package/registry.js +89 -0
  28. package/build/client/assets/manifest-7f03c136.js +0 -1
  29. package/build/client/assets/mermaid-3ZIDBTTL-DDxQhcP4.css +0 -1
  30. package/build/client/assets/root-15oK726f.css +0 -1
  31. package/build/client/assets/server-build-DblSGQ6A.css +0 -1
  32. package/build/client/assets/worker-CqHKTA7D.js +0 -115
  33. package/build/server/assets/app-BaJoK9ck.js +0 -9217
@@ -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, H as ChevronDown, W as cn, e as cn$1, M as cva, b9 as composeRefs, I as useComposedRefs, ba as useFloating, bb as offset, bc as shift, bd as limitShift, be as flip, bf as size, bg as arrow, bh as hide, bi as autoUpdate, C as ChevronRight, bj as VERCEL_403_ERROR_MESSAGE, bk as cancelRun$1, bl as reenqueueRun$1, bm as wakeUpRun$1, bn as resumeHook$1, bo as fetchHookToken$1, bp as recreateRun$1, T as Tooltip, a as TooltipTrigger, b as TooltipContent, x as createContextScope$1, n as useComposedRefs$1, y as createSlot, aa as formatDuration, B as Button, t as toast, s as useId$1, P as Primitive$1, o as composeEventHandlers$1, E as useControllableState$1, m as useCallbackRef$2, N as Presence$1 } from "./mermaid-3ZIDBTTL-CMP9Tato.js";
4
+ import { c as createLucideIcon, J as ChevronDown, X as cn, e as cn$1, N as cva, be as composeRefs, L as useComposedRefs, bf as useFloating, bg as offset, bh as shift, bi as limitShift, bj as flip, bk as size, bl as arrow, bm as hide, bn as autoUpdate, m as ChevronRight, C as Check, bo as VERCEL_403_ERROR_MESSAGE, bp as cancelRun$1, bq as reenqueueRun$1, br as wakeUpRun$1, bs as resumeHook$1, bt as fetchHookToken$1, bu 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, aa 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, O as Presence$1 } from "./mermaid-3ZIDBTTL-D20ZkB54.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") {
@@ -41,7 +41,7 @@ function parseStepName(name) {
41
41
  * This source code is licensed under the ISC license.
42
42
  * See the LICENSE file in the root directory of this source tree.
43
43
  */
44
- const __iconNode$f = [
44
+ const __iconNode$d = [
45
45
  ["path", { d: "M6.87 6.87a8 8 0 1 0 11.26 11.26", key: "3on8tj" }],
46
46
  ["path", { d: "M19.9 14.25a8 8 0 0 0-9.15-9.15", key: "15ghsc" }],
47
47
  ["path", { d: "m22 6-3-3", key: "1opdir" }],
@@ -49,42 +49,34 @@ const __iconNode$f = [
49
49
  ["path", { d: "m2 2 20 20", key: "1ooewy" }],
50
50
  ["path", { d: "M4 4 2 6", key: "1ycko6" }]
51
51
  ];
52
- const AlarmClockOff = createLucideIcon("alarm-clock-off", __iconNode$f);
52
+ const AlarmClockOff = createLucideIcon("alarm-clock-off", __iconNode$d);
53
53
  /**
54
54
  * @license lucide-react v0.575.0 - ISC
55
55
  *
56
56
  * This source code is licensed under the ISC license.
57
57
  * See the LICENSE file in the root directory of this source tree.
58
58
  */
59
- const __iconNode$e = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]];
60
- const Check = createLucideIcon("check", __iconNode$e);
59
+ const __iconNode$c = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]];
60
+ const ChevronUp = createLucideIcon("chevron-up", __iconNode$c);
61
61
  /**
62
62
  * @license lucide-react v0.575.0 - ISC
63
63
  *
64
64
  * This source code is licensed under the ISC license.
65
65
  * See the LICENSE file in the root directory of this source tree.
66
66
  */
67
- const __iconNode$d = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]];
68
- const ChevronUp = createLucideIcon("chevron-up", __iconNode$d);
69
- /**
70
- * @license lucide-react v0.575.0 - ISC
71
- *
72
- * This source code is licensed under the ISC license.
73
- * See the LICENSE file in the root directory of this source tree.
74
- */
75
- const __iconNode$c = [
67
+ const __iconNode$b = [
76
68
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
77
69
  ["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
78
70
  ["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }]
79
71
  ];
80
- const CircleAlert = createLucideIcon("circle-alert", __iconNode$c);
72
+ const CircleAlert = createLucideIcon("circle-alert", __iconNode$b);
81
73
  /**
82
74
  * @license lucide-react v0.575.0 - ISC
83
75
  *
84
76
  * This source code is licensed under the ISC license.
85
77
  * See the LICENSE file in the root directory of this source tree.
86
78
  */
87
- const __iconNode$b = [
79
+ const __iconNode$a = [
88
80
  [
89
81
  "path",
90
82
  {
@@ -94,60 +86,49 @@ const __iconNode$b = [
94
86
  ],
95
87
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]
96
88
  ];
97
- const CirclePlay = createLucideIcon("circle-play", __iconNode$b);
89
+ const CirclePlay = createLucideIcon("circle-play", __iconNode$a);
98
90
  /**
99
91
  * @license lucide-react v0.575.0 - ISC
100
92
  *
101
93
  * This source code is licensed under the ISC license.
102
94
  * See the LICENSE file in the root directory of this source tree.
103
95
  */
104
- const __iconNode$a = [
96
+ const __iconNode$9 = [
105
97
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
106
98
  ["rect", { x: "9", y: "9", width: "6", height: "6", rx: "1", key: "1ssd4o" }]
107
99
  ];
108
- const CircleStop = createLucideIcon("circle-stop", __iconNode$a);
100
+ const CircleStop = createLucideIcon("circle-stop", __iconNode$9);
109
101
  /**
110
102
  * @license lucide-react v0.575.0 - ISC
111
103
  *
112
104
  * This source code is licensed under the ISC license.
113
105
  * See the LICENSE file in the root directory of this source tree.
114
106
  */
115
- const __iconNode$9 = [
107
+ const __iconNode$8 = [
116
108
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
117
109
  ["path", { d: "m15 9-6 6", key: "1uzhvr" }],
118
110
  ["path", { d: "m9 9 6 6", key: "z0biqf" }]
119
111
  ];
120
- const CircleX = createLucideIcon("circle-x", __iconNode$9);
112
+ const CircleX = createLucideIcon("circle-x", __iconNode$8);
121
113
  /**
122
114
  * @license lucide-react v0.575.0 - ISC
123
115
  *
124
116
  * This source code is licensed under the ISC license.
125
117
  * See the LICENSE file in the root directory of this source tree.
126
118
  */
127
- const __iconNode$8 = [["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]];
128
- const Circle = createLucideIcon("circle", __iconNode$8);
119
+ const __iconNode$7 = [["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]];
120
+ const Circle = createLucideIcon("circle", __iconNode$7);
129
121
  /**
130
122
  * @license lucide-react v0.575.0 - ISC
131
123
  *
132
124
  * This source code is licensed under the ISC license.
133
125
  * See the LICENSE file in the root directory of this source tree.
134
126
  */
135
- const __iconNode$7 = [
127
+ const __iconNode$6 = [
136
128
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
137
129
  ["path", { d: "M12 6v6l4 2", key: "mmk7yg" }]
138
130
  ];
139
- const Clock = createLucideIcon("clock", __iconNode$7);
140
- /**
141
- * @license lucide-react v0.575.0 - ISC
142
- *
143
- * This source code is licensed under the ISC license.
144
- * See the LICENSE file in the root directory of this source tree.
145
- */
146
- const __iconNode$6 = [
147
- ["rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2", key: "17jyea" }],
148
- ["path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2", key: "zix9uf" }]
149
- ];
150
- const Copy = createLucideIcon("copy", __iconNode$6);
131
+ const Clock = createLucideIcon("clock", __iconNode$6);
151
132
  /**
152
133
  * @license lucide-react v0.575.0 - ISC
153
134
  *
@@ -229,7 +210,7 @@ const __iconNode = [
229
210
  const Zap = createLucideIcon("zap", __iconNode);
230
211
  function ErrorCard({ title, className, details = "Unknown error" }) {
231
212
  const [isExpanded, setIsExpanded] = reactExports.useState(false);
232
- return jsxRuntimeExports.jsx("div", { className: "flex justify-center w-full", children: jsxRuntimeExports.jsxs("div", { className: cn("rounded-lg border border-red-400 w-full max-w-[800px]", className), style: { background: "var(--ds-red-100)" }, children: [jsxRuntimeExports.jsxs("button", { type: "button", onClick: () => setIsExpanded(!isExpanded), className: "w-full px-4 py-3 flex items-center justify-between gap-2 text-left transition-colors", style: { color: "var(--ds-red-900)" }, children: [jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-2", children: [jsxRuntimeExports.jsx(CircleAlert, { className: "h-4 w-4 shrink-0" }), jsxRuntimeExports.jsx("span", { className: "font-medium text-sm", children: title })] }), jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-1.5 opacity-70", children: [jsxRuntimeExports.jsx("span", { className: "text-xs", children: "Click to show details" }), jsxRuntimeExports.jsx(ChevronDown, { className: cn("h-4 w-4 transition-transform duration-200", isExpanded && "rotate-180") })] })] }), isExpanded && details && jsxRuntimeExports.jsx("div", { className: "px-4 pb-3", style: { borderTop: "1px solid var(--ds-red-400)" }, children: jsxRuntimeExports.jsx("pre", { className: "mt-3 p-3 rounded-md text-xs font-mono whitespace-pre-wrap break-words overflow-auto", style: {
213
+ return jsxRuntimeExports.jsx("div", { className: "flex justify-center w-full", children: jsxRuntimeExports.jsxs("div", { className: cn("rounded-lg border border-red-400 w-full max-w-[800px]", className), style: { background: "var(--ds-red-100)" }, children: [jsxRuntimeExports.jsxs("button", { type: "button", onClick: () => setIsExpanded(!isExpanded), className: "w-full px-4 py-3 flex items-center justify-between gap-2 text-left transition-colors", style: { color: "var(--ds-red-900)" }, children: [jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-2", children: [jsxRuntimeExports.jsx(CircleAlert, { className: "h-4 w-4 shrink-0" }), jsxRuntimeExports.jsx("span", { className: "font-medium text-label-14", children: title })] }), jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-1.5 opacity-70", children: [jsxRuntimeExports.jsx("span", { className: "text-label-12", children: "Click to show details" }), jsxRuntimeExports.jsx(ChevronDown, { className: cn("h-4 w-4 transition-transform duration-200", isExpanded && "rotate-180") })] })] }), isExpanded && details && jsxRuntimeExports.jsx("div", { className: "px-4 pb-3", style: { borderTop: "1px solid var(--ds-red-400)" }, children: jsxRuntimeExports.jsx("pre", { className: "mt-3 p-3 rounded-md text-label-12-mono whitespace-pre-wrap break-words overflow-auto", style: {
233
214
  background: "var(--ds-red-200)",
234
215
  color: "var(--ds-red-900)"
235
216
  }, children: details }) })] }) });
@@ -16116,67 +16097,65 @@ function WorkflowGraphViewer({ workflow }) {
16116
16097
  ) });
16117
16098
  }
16118
16099
  export {
16119
- useEscapeKeydown as $,
16100
+ useLayoutEffect2 as $,
16120
16101
  Alert as A,
16121
- cancelRun as B,
16122
- Check as C,
16102
+ parseWorkflowName as B,
16103
+ CircleAlert as C,
16123
16104
  DropdownMenu as D,
16124
16105
  Ellipsis as E,
16125
- reenqueueRun as F,
16126
- parseWorkflowName as G,
16127
- StatusBadge as H,
16128
- CircleX as I,
16129
- RunActionsDropdownItems as J,
16130
- unwrapServerActionResult as K,
16131
- WorkflowGraphViewer as L,
16132
- TabsList as M,
16133
- TabsTrigger as N,
16134
- TabsContent as O,
16106
+ StatusBadge as F,
16107
+ CircleX as G,
16108
+ RunActionsDropdownItems as H,
16109
+ unwrapServerActionResult as I,
16110
+ WorkflowGraphViewer as J,
16111
+ TabsList as K,
16112
+ TabsTrigger as L,
16113
+ TabsContent as M,
16114
+ ErrorBoundary as N,
16115
+ parseStepName as O,
16135
16116
  Primitive as P,
16136
- ErrorBoundary as Q,
16117
+ ErrorCard as Q,
16137
16118
  ResolveHookModal as R,
16138
16119
  Send as S,
16139
16120
  Tabs as T,
16140
- parseStepName as U,
16141
- ErrorCard as V,
16121
+ format as U,
16122
+ Circle as V,
16142
16123
  WorkflowWebAPIError as W,
16143
16124
  X,
16144
- format as Y,
16125
+ useEscapeKeydown as Y,
16145
16126
  Zap as Z,
16146
- Circle as _,
16147
- Copy as a,
16148
- useCallbackRef$1 as a0,
16149
- useLayoutEffect2 as a1,
16150
- useId as a2,
16151
- createContext2 as a3,
16152
- useFocusGuards as a4,
16153
- LAYOUT as a5,
16154
- wakeUpRun as a6,
16155
- RunActionsButtons as a7,
16156
- recreateRun as a8,
16157
- Skeleton as b,
16158
- RelativeTime as c,
16159
- CircleAlert as d,
16160
- AlertTitle as e,
16127
+ useCallbackRef$1 as _,
16128
+ Skeleton as a,
16129
+ useId as a0,
16130
+ createContext2 as a1,
16131
+ useFocusGuards as a2,
16132
+ LAYOUT as a3,
16133
+ wakeUpRun as a4,
16134
+ RunActionsButtons as a5,
16135
+ recreateRun as a6,
16136
+ RelativeTime as b,
16137
+ AlertTitle as c,
16138
+ AlertDescription as d,
16139
+ getErrorMessage as e,
16161
16140
  fetchHookToken as f,
16162
16141
  getErrorTitle as g,
16163
- AlertDescription as h,
16164
- getErrorMessage as i,
16165
- CopyableText as j,
16166
- DropdownMenuTrigger as k,
16167
- DropdownMenuContent as l,
16168
- DropdownMenuItem as m,
16169
- resumeHook as n,
16170
- createCollection as o,
16171
- hideOthers as p,
16172
- ReactRemoveScroll as q,
16142
+ CopyableText as h,
16143
+ DropdownMenuTrigger as i,
16144
+ DropdownMenuContent as j,
16145
+ DropdownMenuItem as k,
16146
+ resumeHook as l,
16147
+ createCollection as m,
16148
+ hideOthers as n,
16149
+ ReactRemoveScroll as o,
16150
+ useDirection as p,
16151
+ ChevronUp as q,
16173
16152
  requireShim as r,
16174
- useDirection as s,
16175
- ChevronUp as t,
16153
+ useControllableState as s,
16154
+ composeEventHandlers as t,
16176
16155
  unwrapOrThrow as u,
16177
- useControllableState as v,
16178
- composeEventHandlers as w,
16179
- Presence as x,
16180
- useSize as y,
16181
- createContextScope as z
16156
+ Presence as v,
16157
+ useSize as w,
16158
+ createContextScope as x,
16159
+ cancelRun as y,
16160
+ reenqueueRun as z
16182
16161
  };
@@ -1,4 +1,4 @@
1
- import { r as registerZstdDecoder, _ as __vitePreload } from "./mermaid-3ZIDBTTL-CMP9Tato.js";
1
+ import { r as registerZstdDecoder, _ as __vitePreload } from "./mermaid-3ZIDBTTL-D20ZkB54.js";
2
2
  import "./index-PFjW8YjQ.js";
3
3
  let registered = false;
4
4
  let modulePromise;