@workflow/web 4.1.0 → 5.0.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9176,7 +9176,7 @@ const app = express();
9176
9176
  app.all(
9177
9177
  "*",
9178
9178
  createRequestHandler({
9179
- build: () => import("./server-build-D_RLM6Vr.js").then((n) => n.F)
9179
+ build: () => import("./server-build-BxBXwQkv.js").then((n) => n.F)
9180
9180
  })
9181
9181
  );
9182
9182
  app.use(
@@ -1,5 +1,5 @@
1
- import { x as R, K as Ks, y as jsxRuntimeExports, z as Qe } from "./server-build-D_RLM6Vr.js";
2
- import { r as reactExports } from "./app-Czg8_lQt.js";
1
+ import { x as R, K as Ks, y as jsxRuntimeExports, z as Qe } from "./server-build-BxBXwQkv.js";
2
+ import { r as reactExports } from "./app-1J46XJy_.js";
3
3
  import "node:stream";
4
4
  import "util";
5
5
  import "crypto";
@@ -1,5 +1,5 @@
1
- import { B, D, q, E, a, b, c, H, L, M, P, Q, d, R, l, m, n, h, S, o, p, i, V, t, w, W, e, f, g, j, r, k, s, u, v } from "./server-build-D_RLM6Vr.js";
2
- import "./app-Czg8_lQt.js";
1
+ import { B, D, q, E, a, b, c, H, L, M, P, Q, d, R, l, m, n, h, S, o, p, i, V, t, w, W, e, f, g, j, r, k, s, u, v } from "./server-build-BxBXwQkv.js";
2
+ import "./app-1J46XJy_.js";
3
3
  import "stream";
4
4
  import "express";
5
5
  import "node:stream";
@@ -1,5 +1,5 @@
1
- import { N } from "./server-build-D_RLM6Vr.js";
2
- import "./app-Czg8_lQt.js";
1
+ import { N } from "./server-build-BxBXwQkv.js";
2
+ import "./app-1J46XJy_.js";
3
3
  import "stream";
4
4
  import "express";
5
5
  import "node:stream";
@@ -14,7 +14,7 @@ var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "
14
14
  var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
15
15
  var __superGet = (cls, obj, key) => __reflectGet(__getProtoOf(cls), key, obj);
16
16
  var _a2, _root, _hasMagic, _uflag, _parts, _parent, _parentIndex, _negs, _filledNegs, _options, _toString, _emptyExt, _AST_instances, fillNegs_fn, _AST_static, parseAST_fn, canAdoptWithSpace_fn, canAdopt_fn, canAdoptType_fn, adoptWithSpace_fn, adopt_fn, canUsurpType_fn, canUsurp_fn, usurp_fn, flatten_fn, partsToRegExp_fn, parseGlob_fn, _Minimatch_instances, matchGlobstar_fn, matchGlobStarBodySections_fn, matchOne_fn, _reader;
17
- import { a as requireReact, S as ServerRouter, c as createReadableStreamFromReadable, r as reactExports, g as getDefaultExportFromCjs, R as React, b as ReactExports, w as withComponentProps, d as withErrorBoundaryProps, M as Meta, L as Links, e as ScrollRestoration, f as Scripts, O as Outlet, u as useNavigate, h as useSearchParams, i as Link$1, j as useRouteError, k as isRouteErrorResponse, l as useLocation, m as useParams } from "./app-Czg8_lQt.js";
17
+ import { a as requireReact, S as ServerRouter, c as createReadableStreamFromReadable, r as reactExports, g as getDefaultExportFromCjs, R as React, b as ReactExports, w as withComponentProps, d as withErrorBoundaryProps, M as Meta, L as Links, e as ScrollRestoration, f as Scripts, O as Outlet, u as useNavigate, h as useSearchParams, i as Link$1, j as useRouteError, k as isRouteErrorResponse, l as useLocation, m as useParams } from "./app-1J46XJy_.js";
18
18
  import require$$0$4, { PassThrough } from "node:stream";
19
19
  import require$$0 from "util";
20
20
  import require$$1 from "crypto";
@@ -64928,7 +64928,7 @@ var tn = f("block", "before:content-[counter(line)]", "before:inline-block", "be
64928
64928
  var et = ({ className: e, language: t, style: o, isIncomplete: n, ...s2 }) => jsxRuntimeExports.jsx("div", { className: f("my-4 flex w-full flex-col gap-2 rounded-xl border border-border bg-sidebar p-2", e), "data-incomplete": n || void 0, "data-language": t, "data-streamdown": "code-block", style: { contentVisibility: "auto", containIntrinsicSize: "auto 200px", ...o }, ...s2 });
64929
64929
  var Se = reactExports.createContext({ code: "" }), de$1 = () => reactExports.useContext(Se);
64930
64930
  var ot = ({ language: e }) => jsxRuntimeExports.jsx("div", { className: "flex h-8 items-center text-muted-foreground text-xs", "data-language": e, "data-streamdown": "code-block-header", children: jsxRuntimeExports.jsx("span", { className: "ml-1 font-mono lowercase", children: e }) });
64931
- var cn$1 = /\n+$/, dn = reactExports.lazy(() => import("./highlighted-body-B3W2YXNL-CkjItV-_.js").then((e) => ({ default: e.HighlightedCodeBlockBody }))), rt = ({ code: e, language: t, className: o, children: n, isIncomplete: s2 = false, ...r2 }) => {
64931
+ var cn$1 = /\n+$/, dn = reactExports.lazy(() => import("./highlighted-body-B3W2YXNL-I0QqkET4.js").then((e) => ({ default: e.HighlightedCodeBlockBody }))), rt = ({ code: e, language: t, className: o, children: n, isIncomplete: s2 = false, ...r2 }) => {
64932
64932
  let i = reactExports.useMemo(() => e.replace(cn$1, ""), [e]), c = reactExports.useMemo(() => ({ bg: "transparent", fg: "inherit", tokens: i.split(`
64933
64933
  `).map((a2) => [{ content: a2, color: "inherit", bgColor: "transparent", htmlStyle: {}, offset: 0 }]) }), [i]);
64934
64934
  return jsxRuntimeExports.jsx(Se.Provider, { value: { code: e }, children: jsxRuntimeExports.jsxs(et, { isIncomplete: s2, language: t, children: [jsxRuntimeExports.jsx(ot, { language: t }), n ? jsxRuntimeExports.jsx("div", { className: "pointer-events-none sticky top-2 z-10 -mt-10 flex h-8 items-center justify-end", children: jsxRuntimeExports.jsx("div", { className: "pointer-events-auto flex shrink-0 items-center gap-2 rounded-md border border-sidebar bg-sidebar/80 px-1.5 py-1 supports-[backdrop-filter]:bg-sidebar/70 supports-[backdrop-filter]:backdrop-blur", "data-streamdown": "code-block-actions", children: n }) }) : null, jsxRuntimeExports.jsx(reactExports.Suspense, { fallback: jsxRuntimeExports.jsx(Qe, { className: o, language: t, result: c, ...r2 }), children: jsxRuntimeExports.jsx(dn, { className: o, code: i, language: t, raw: c, ...r2 }) })] }) });
@@ -65250,7 +65250,7 @@ var Dt = ({ children: e, className: t, onDownload: o, onError: n }) => {
65250
65250
  }, []), jsxRuntimeExports.jsxs("div", { className: "relative", ref: i, children: [jsxRuntimeExports.jsx("button", { className: f("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50", t), disabled: c, onClick: () => r2(!s2), title: "Download table", type: "button", children: e != null ? e : jsxRuntimeExports.jsx(Z, { size: 14 }) }), s2 ? jsxRuntimeExports.jsxs("div", { className: "absolute top-full right-0 z-10 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg", children: [jsxRuntimeExports.jsx("button", { className: "w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40", onClick: () => a2("csv"), title: "Download table as CSV", type: "button", children: "CSV" }), jsxRuntimeExports.jsx("button", { className: "w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40", onClick: () => a2("markdown"), title: "Download table as Markdown", type: "button", children: "Markdown" })] }) : null] });
65251
65251
  };
65252
65252
  var Vt = ({ children: e, className: t, showControls: o, ...n }) => jsxRuntimeExports.jsxs("div", { className: "my-4 flex flex-col gap-2 rounded-lg border border-border bg-sidebar p-2", "data-streamdown": "table-wrapper", children: [o ? jsxRuntimeExports.jsxs("div", { className: "flex items-center justify-end gap-1", children: [jsxRuntimeExports.jsx(Ht, {}), jsxRuntimeExports.jsx(Dt, {})] }) : null, jsxRuntimeExports.jsx("div", { className: "border-collapse overflow-x-auto overscroll-y-auto rounded-md border border-border bg-background", children: jsxRuntimeExports.jsx("table", { className: f("w-full divide-y divide-border", t), "data-streamdown": "table", ...n, children: e }) })] });
65253
- var Jn = reactExports.lazy(() => import("./mermaid-3ZIDBTTL-DeXo6unt.js").then((e) => ({ default: e.Mermaid }))), Kn = /language-([^\s]+)/;
65253
+ var Jn = reactExports.lazy(() => import("./mermaid-3ZIDBTTL-SEARynp_.js").then((e) => ({ default: e.Mermaid }))), Kn = /language-([^\s]+)/;
65254
65254
  function ke(e, t) {
65255
65255
  if (!(e != null && e.position || t != null && t.position)) return true;
65256
65256
  if (!(e != null && e.position && (t != null && t.position))) return false;
@@ -89331,7 +89331,7 @@ createLogger("webhook");
89331
89331
  createLogger("events");
89332
89332
  createLogger("adapter");
89333
89333
  const MAX_QUEUE_DELIVERIES = 48;
89334
- const version$1 = "4.2.0";
89334
+ const version$1 = "5.0.0-beta.0";
89335
89335
  const execFileAsync = promisify(execFile);
89336
89336
  function parsePort$1(value, radix = 10) {
89337
89337
  const port = parseInt(value, radix);
@@ -115657,7 +115657,7 @@ function createLocalWorld(args) {
115657
115657
  const basedir = mergedConfig.dataDir;
115658
115658
  const hooksDir = path$3.join(basedir, "hooks");
115659
115659
  const taggedHookFiles = await listTaggedFiles(hooksDir, tag);
115660
- const { HookSchema: HookSchema2 } = await import("./index-DH6v_ut2.js");
115660
+ const { HookSchema: HookSchema2 } = await import("./index-C2mzCybK.js");
115661
115661
  await Promise.all(taggedHookFiles.map(async (hookFile) => {
115662
115662
  const hook = await readJSON(path$3.join(hooksDir, hookFile), HookSchema2);
115663
115663
  if (hook == null ? void 0 : hook.token) {
@@ -115809,8 +115809,8 @@ function requireGetVercelOidcToken() {
115809
115809
  }
115810
115810
  try {
115811
115811
  const [{ getTokenPayload, isExpired }, { refreshToken }] = await Promise.all([
115812
- await import("./token-util-DwCA_kiW.js").then((n) => n.t),
115813
- await import("./token-B_OGugLw.js").then((n) => n.t)
115812
+ await import("./token-util-CdmCt7b7.js").then((n) => n.t),
115813
+ await import("./token-Ciwcps8o.js").then((n) => n.t)
115814
115814
  ]);
115815
115815
  if (!token || isExpired(getTokenPayload(token), options == null ? void 0 : options.expirationBufferMs)) {
115816
115816
  await refreshToken(options);
@@ -120975,7 +120975,7 @@ var QueueClient = class {
120975
120975
  setApi(this, new ApiClient({ ...options, region }));
120976
120976
  }
120977
120977
  };
120978
- const version = "4.1.0";
120978
+ const version = "5.0.0-beta.0";
120979
120979
  const HTTP_DEBUG_ENABLED = typeof process !== "undefined" && typeof process.env.DEBUG === "string" && (process.env.DEBUG.includes("workflow:") || process.env.DEBUG === "*");
120980
120980
  function httpLog(method, endpoint, status, ms2) {
120981
120981
  if (HTTP_DEBUG_ENABLED) {
@@ -1,5 +1,5 @@
1
- import { g as getDefaultExportFromCjs } from "./app-Czg8_lQt.js";
2
- import { C as requireTokenError, A as requireTokenUtil } from "./server-build-D_RLM6Vr.js";
1
+ import { g as getDefaultExportFromCjs } from "./app-1J46XJy_.js";
2
+ import { C as requireTokenError, A as requireTokenUtil } from "./server-build-BxBXwQkv.js";
3
3
  function _mergeNamespaces(n, m) {
4
4
  for (var i = 0; i < m.length; i++) {
5
5
  const e = m[i];
@@ -1,5 +1,5 @@
1
- import { g as getDefaultExportFromCjs } from "./app-Czg8_lQt.js";
2
- import { A as requireTokenUtil } from "./server-build-D_RLM6Vr.js";
1
+ import { g as getDefaultExportFromCjs } from "./app-1J46XJy_.js";
2
+ import { A as requireTokenUtil } from "./server-build-BxBXwQkv.js";
3
3
  function _mergeNamespaces(n, m) {
4
4
  for (var i = 0; i < m.length; i++) {
5
5
  const e = m[i];
@@ -1,4 +1,4 @@
1
- import { n } from "./assets/app-Czg8_lQt.js";
1
+ import { n } from "./assets/app-1J46XJy_.js";
2
2
  import "express";
3
3
  import "stream";
4
4
  export {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@workflow/web",
3
3
  "description": "Workflow Observability UI",
4
- "version": "4.1.0",
4
+ "version": "5.0.0-beta.0",
5
5
  "type": "module",
6
6
  "private": false,
7
7
  "files": [
@@ -71,12 +71,12 @@
71
71
  "vite": "^6",
72
72
  "vitest": "^3",
73
73
  "jsdom": "^26",
74
- "@workflow/errors": "4.1.0",
75
- "@workflow/core": "4.2.0",
76
- "@workflow/web-shared": "4.1.0",
77
- "@workflow/utils": "4.1.0",
78
- "@workflow/world": "4.1.0",
79
- "@workflow/world-vercel": "4.1.0"
74
+ "@workflow/core": "5.0.0-beta.0",
75
+ "@workflow/errors": "5.0.0-beta.0",
76
+ "@workflow/utils": "5.0.0-beta.0",
77
+ "@workflow/web-shared": "5.0.0-beta.0",
78
+ "@workflow/world": "5.0.0-beta.0",
79
+ "@workflow/world-vercel": "5.0.0-beta.0"
80
80
  },
81
81
  "scripts": {
82
82
  "dev": "react-router dev",