@workflow/web 4.1.27 → 4.1.29

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 (22) hide show
  1. package/build/client/assets/{encryption-CVDhlDp_.js → encryption-Cu4jq70Y.js} +2 -2
  2. package/build/client/assets/{entry.client-C_C46bD6.js → entry.client-C7XgFTHI.js} +7 -205
  3. package/build/client/assets/{highlighted-body-B3W2YXNL-DNE7dweN.js → highlighted-body-B3W2YXNL-B6-MkXV1.js} +2 -2
  4. package/build/client/assets/{home-BcCTbe4i.js → home-Yy5gk_jJ.js} +4 -4
  5. package/build/client/assets/{index-BsV8i_Jn.js → index-BQ-Xa8kF.js} +769 -330
  6. package/build/client/assets/{index-DhdkuKp5.js → index-CXBr7N7m.js} +1 -1
  7. package/build/client/assets/{manifest-f88c7f34.js → manifest-e13ef35a.js} +1 -1
  8. package/build/client/assets/{mermaid-3ZIDBTTL-B1-N6W83.js → mermaid-3ZIDBTTL-DV4S4pTo.js} +7 -7
  9. package/build/client/assets/{root-C2Eu3fUP.js → root-DQQlQnXn.js} +2 -2
  10. package/build/client/assets/{run-detail-CyImB2zR.js → run-detail-rocfw9Z5.js} +5 -5
  11. package/build/client/assets/{workflow-graph-viewer-lj3vdGSs.js → workflow-graph-viewer-De_-9tJh.js} +3 -3
  12. package/build/server/assets/{app-uVbY_-qI.js → app-kk7f8nyn.js} +873 -597
  13. package/build/server/assets/{highlighted-body-B3W2YXNL-BAlPxI2y.js → highlighted-body-B3W2YXNL-2B4n3nOV.js} +2 -2
  14. package/build/server/assets/index-BUlN7QFn.js +1164 -0
  15. package/build/server/assets/{index-ClImPOu-.js → index-z6exFZED.js} +3 -3
  16. package/build/server/assets/{mermaid-3ZIDBTTL-Ccs470KM.js → mermaid-3ZIDBTTL-KuzOfT5O.js} +2 -2
  17. package/build/server/assets/{server-build-tMGygzbW.js → server-build-DFhWV1xt.js} +37 -18
  18. package/build/server/assets/{token-NxX4H9ze.js → token-BwhgGurx.js} +2 -2
  19. package/build/server/assets/{token-util-CXI_HnNu.js → token-util-ByZXsHfd.js} +2 -2
  20. package/build/server/index.js +1 -1
  21. package/package.json +9 -9
  22. package/build/server/assets/index-hBO56emR.js +0 -1286
@@ -1,5 +1,5 @@
1
- import { R as RuntimeDecryptionError } from "./index-DhdkuKp5.js";
2
- import "./index-BsV8i_Jn.js";
1
+ import { R as RuntimeDecryptionError } from "./index-CXBr7N7m.js";
2
+ import "./index-BQ-Xa8kF.js";
3
3
  const NONCE_LENGTH = 12;
4
4
  const TAG_LENGTH = 128;
5
5
  const KEY_LENGTH = 32;
@@ -1,4 +1,4 @@
1
- import { a as requireReact, b as requireReactDom, m as matchRoutes, s as shouldHydrateRouteLoader, E as ErrorResponseImpl, N as NO_BODY_STATUS_CODES, R as ReactExports, i as isRouteErrorResponse, r as reactExports, c as invariant, u as useFogOFWarDiscovery, F as FrameworkContext, d as RemixErrorBoundary, e as RouterProvider, f as reactDomExports, h as decodeViaTurboStream, k as createClientRoutes, l as createRouter, n as getPatchRoutesOnNavigationFunction, o as getTurboStreamSingleFetchDataStrategy, p as createBrowserHistory, q as createClientRoutesWithHMRRevalidationOptOut, t as mapRouteProperties, v as hydrationRouteProperties, j as jsxRuntimeExports } from "./index-BsV8i_Jn.js";
1
+ import { a as requireReact, b as requireReactDom, m as matchRoutes, s as shouldHydrateRouteLoader, N as NO_BODY_STATUS_CODES, R as ReactExports, i as isRouteErrorResponse, r as reactExports, c as invariant, u as useFogOFWarDiscovery, F as FrameworkContext, d as RemixErrorBoundary, e as RouterProvider, f as reactDomExports, h as decodeViaTurboStream, k as createClientRoutes, l as createRouter, n as getPatchRoutesOnNavigationFunction, o as getTurboStreamSingleFetchDataStrategy, p as createBrowserHistory, q as createClientRoutesWithHMRRevalidationOptOut, t as mapRouteProperties, v as hydrationRouteProperties, j as jsxRuntimeExports } from "./index-BQ-Xa8kF.js";
2
2
  var client = { exports: {} };
3
3
  var reactDomClient_production = {};
4
4
  var scheduler = { exports: {} };
@@ -11361,166 +11361,6 @@ function requireClient() {
11361
11361
  return client.exports;
11362
11362
  }
11363
11363
  var clientExports = requireClient();
11364
- var dist = {};
11365
- var hasRequiredDist;
11366
- function requireDist() {
11367
- if (hasRequiredDist) return dist;
11368
- hasRequiredDist = 1;
11369
- Object.defineProperty(dist, "__esModule", { value: true });
11370
- dist.parse = parse;
11371
- dist.serialize = serialize;
11372
- const cookieNameRegExp = /^[\u0021-\u003A\u003C\u003E-\u007E]+$/;
11373
- const cookieValueRegExp = /^[\u0021-\u003A\u003C-\u007E]*$/;
11374
- const domainValueRegExp = /^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i;
11375
- const pathValueRegExp = /^[\u0020-\u003A\u003D-\u007E]*$/;
11376
- const __toString = Object.prototype.toString;
11377
- const NullObject = /* @__PURE__ */ (() => {
11378
- const C = function() {
11379
- };
11380
- C.prototype = /* @__PURE__ */ Object.create(null);
11381
- return C;
11382
- })();
11383
- function parse(str, options) {
11384
- const obj = new NullObject();
11385
- const len = str.length;
11386
- if (len < 2)
11387
- return obj;
11388
- const dec = (options == null ? void 0 : options.decode) || decode;
11389
- let index = 0;
11390
- do {
11391
- const eqIdx = str.indexOf("=", index);
11392
- if (eqIdx === -1)
11393
- break;
11394
- const colonIdx = str.indexOf(";", index);
11395
- const endIdx = colonIdx === -1 ? len : colonIdx;
11396
- if (eqIdx > endIdx) {
11397
- index = str.lastIndexOf(";", eqIdx - 1) + 1;
11398
- continue;
11399
- }
11400
- const keyStartIdx = startIndex(str, index, eqIdx);
11401
- const keyEndIdx = endIndex(str, eqIdx, keyStartIdx);
11402
- const key = str.slice(keyStartIdx, keyEndIdx);
11403
- if (obj[key] === void 0) {
11404
- let valStartIdx = startIndex(str, eqIdx + 1, endIdx);
11405
- let valEndIdx = endIndex(str, endIdx, valStartIdx);
11406
- const value = dec(str.slice(valStartIdx, valEndIdx));
11407
- obj[key] = value;
11408
- }
11409
- index = endIdx + 1;
11410
- } while (index < len);
11411
- return obj;
11412
- }
11413
- function startIndex(str, index, max) {
11414
- do {
11415
- const code = str.charCodeAt(index);
11416
- if (code !== 32 && code !== 9)
11417
- return index;
11418
- } while (++index < max);
11419
- return max;
11420
- }
11421
- function endIndex(str, index, min) {
11422
- while (index > min) {
11423
- const code = str.charCodeAt(--index);
11424
- if (code !== 32 && code !== 9)
11425
- return index + 1;
11426
- }
11427
- return min;
11428
- }
11429
- function serialize(name, val, options) {
11430
- const enc = (options == null ? void 0 : options.encode) || encodeURIComponent;
11431
- if (!cookieNameRegExp.test(name)) {
11432
- throw new TypeError(`argument name is invalid: ${name}`);
11433
- }
11434
- const value = enc(val);
11435
- if (!cookieValueRegExp.test(value)) {
11436
- throw new TypeError(`argument val is invalid: ${val}`);
11437
- }
11438
- let str = name + "=" + value;
11439
- if (!options)
11440
- return str;
11441
- if (options.maxAge !== void 0) {
11442
- if (!Number.isInteger(options.maxAge)) {
11443
- throw new TypeError(`option maxAge is invalid: ${options.maxAge}`);
11444
- }
11445
- str += "; Max-Age=" + options.maxAge;
11446
- }
11447
- if (options.domain) {
11448
- if (!domainValueRegExp.test(options.domain)) {
11449
- throw new TypeError(`option domain is invalid: ${options.domain}`);
11450
- }
11451
- str += "; Domain=" + options.domain;
11452
- }
11453
- if (options.path) {
11454
- if (!pathValueRegExp.test(options.path)) {
11455
- throw new TypeError(`option path is invalid: ${options.path}`);
11456
- }
11457
- str += "; Path=" + options.path;
11458
- }
11459
- if (options.expires) {
11460
- if (!isDate(options.expires) || !Number.isFinite(options.expires.valueOf())) {
11461
- throw new TypeError(`option expires is invalid: ${options.expires}`);
11462
- }
11463
- str += "; Expires=" + options.expires.toUTCString();
11464
- }
11465
- if (options.httpOnly) {
11466
- str += "; HttpOnly";
11467
- }
11468
- if (options.secure) {
11469
- str += "; Secure";
11470
- }
11471
- if (options.partitioned) {
11472
- str += "; Partitioned";
11473
- }
11474
- if (options.priority) {
11475
- const priority = typeof options.priority === "string" ? options.priority.toLowerCase() : void 0;
11476
- switch (priority) {
11477
- case "low":
11478
- str += "; Priority=Low";
11479
- break;
11480
- case "medium":
11481
- str += "; Priority=Medium";
11482
- break;
11483
- case "high":
11484
- str += "; Priority=High";
11485
- break;
11486
- default:
11487
- throw new TypeError(`option priority is invalid: ${options.priority}`);
11488
- }
11489
- }
11490
- if (options.sameSite) {
11491
- const sameSite = typeof options.sameSite === "string" ? options.sameSite.toLowerCase() : options.sameSite;
11492
- switch (sameSite) {
11493
- case true:
11494
- case "strict":
11495
- str += "; SameSite=Strict";
11496
- break;
11497
- case "lax":
11498
- str += "; SameSite=Lax";
11499
- break;
11500
- case "none":
11501
- str += "; SameSite=None";
11502
- break;
11503
- default:
11504
- throw new TypeError(`option sameSite is invalid: ${options.sameSite}`);
11505
- }
11506
- }
11507
- return str;
11508
- }
11509
- function decode(str) {
11510
- if (str.indexOf("%") === -1)
11511
- return str;
11512
- try {
11513
- return decodeURIComponent(str);
11514
- } catch (e) {
11515
- return str;
11516
- }
11517
- }
11518
- function isDate(val) {
11519
- return __toString.call(val) === "[object Date]";
11520
- }
11521
- return dist;
11522
- }
11523
- requireDist();
11524
11364
  /* @__PURE__ */ new Set([
11525
11365
  ...NO_BODY_STATUS_CODES,
11526
11366
  304
@@ -11618,41 +11458,6 @@ function RSCDefaultRootErrorBoundaryImpl({
11618
11458
  errorInstance.stack
11619
11459
  ), heyDeveloper);
11620
11460
  }
11621
- function deserializeErrors(errors) {
11622
- if (!errors) return null;
11623
- let entries = Object.entries(errors);
11624
- let serialized = {};
11625
- for (let [key, val] of entries) {
11626
- if (val && val.__type === "RouteErrorResponse") {
11627
- serialized[key] = new ErrorResponseImpl(
11628
- val.status,
11629
- val.statusText,
11630
- val.data,
11631
- val.internal === true
11632
- );
11633
- } else if (val && val.__type === "Error") {
11634
- if (val.__subType) {
11635
- let ErrorConstructor = window[val.__subType];
11636
- if (typeof ErrorConstructor === "function") {
11637
- try {
11638
- let error = new ErrorConstructor(val.message);
11639
- error.stack = val.stack;
11640
- serialized[key] = error;
11641
- } catch (e) {
11642
- }
11643
- }
11644
- }
11645
- if (serialized[key] == null) {
11646
- let error = new Error(val.message);
11647
- error.stack = val.stack;
11648
- serialized[key] = error;
11649
- }
11650
- } else {
11651
- serialized[key] = val;
11652
- }
11653
- }
11654
- return serialized;
11655
- }
11656
11461
  function getHydrationData({
11657
11462
  state,
11658
11463
  routes,
@@ -11715,7 +11520,7 @@ function initSsrInfo() {
11715
11520
  }
11716
11521
  function createHydratedRouter({
11717
11522
  getContext,
11718
- unstable_instrumentations
11523
+ instrumentations
11719
11524
  }) {
11720
11525
  var _a, _b;
11721
11526
  initSsrInfo();
@@ -11775,9 +11580,6 @@ function createHydratedRouter({
11775
11580
  basename: (_b = window.__reactRouterContext) == null ? void 0 : _b.basename,
11776
11581
  isSpaMode: ssrInfo.context.isSpaMode
11777
11582
  });
11778
- if (hydrationData && hydrationData.errors) {
11779
- hydrationData.errors = deserializeErrors(hydrationData.errors);
11780
- }
11781
11583
  }
11782
11584
  if (window.history.state && window.history.state.masked) {
11783
11585
  window.history.replaceState(
@@ -11792,10 +11594,10 @@ function createHydratedRouter({
11792
11594
  getContext,
11793
11595
  hydrationData,
11794
11596
  hydrationRouteProperties,
11795
- unstable_instrumentations,
11597
+ instrumentations,
11796
11598
  mapRouteProperties,
11797
11599
  future: {
11798
- middleware: ssrInfo.context.future.v8_middleware
11600
+ v8_passThroughRequests: ssrInfo.context.future.v8_passThroughRequests
11799
11601
  },
11800
11602
  dataStrategy: getTurboStreamSingleFetchDataStrategy(
11801
11603
  () => router2,
@@ -11803,7 +11605,7 @@ function createHydratedRouter({
11803
11605
  ssrInfo.routeModules,
11804
11606
  ssrInfo.context.ssr,
11805
11607
  ssrInfo.context.basename,
11806
- ssrInfo.context.future.unstable_trailingSlashAwareDataRequests
11608
+ ssrInfo.context.future.v8_trailingSlashAwareDataRequests
11807
11609
  ),
11808
11610
  patchRoutesOnNavigation: getPatchRoutesOnNavigationFunction(
11809
11611
  () => router2,
@@ -11829,7 +11631,7 @@ function HydratedRouter(props) {
11829
11631
  if (!router) {
11830
11632
  router = createHydratedRouter({
11831
11633
  getContext: props.getContext,
11832
- unstable_instrumentations: props.unstable_instrumentations
11634
+ instrumentations: props.instrumentations
11833
11635
  });
11834
11636
  }
11835
11637
  let [criticalCss, setCriticalCss] = reactExports.useState(
@@ -11884,7 +11686,7 @@ function HydratedRouter(props) {
11884
11686
  RouterProvider2,
11885
11687
  {
11886
11688
  router,
11887
- unstable_useTransitions: props.unstable_useTransitions,
11689
+ useTransitions: props.useTransitions,
11888
11690
  onError: props.onError
11889
11691
  }
11890
11692
  ))
@@ -1,5 +1,5 @@
1
- import { R, K as Ks, Q as Qe } from "./mermaid-3ZIDBTTL-B1-N6W83.js";
2
- import { r as reactExports, j as jsxRuntimeExports } from "./index-BsV8i_Jn.js";
1
+ import { R, K as Ks, Q as Qe } from "./mermaid-3ZIDBTTL-DV4S4pTo.js";
2
+ import { r as reactExports, j as jsxRuntimeExports } from "./index-BQ-Xa8kF.js";
3
3
  var L = ({ code: s, language: t, raw: e, className: n, ...d$1 }) => {
4
4
  let { shikiTheme: l } = reactExports.useContext(R), o = Ks(), [m, i] = reactExports.useState(e);
5
5
  return reactExports.useEffect(() => {
@@ -1,7 +1,7 @@
1
- import { r as reactExports, D as ReactDOM, j as jsxRuntimeExports, A as Link, f as reactDomExports, C as useSearchParams, B as useNavigate, G as useLocation, w as withComponentProps } from "./index-BsV8i_Jn.js";
2
- import { R as ResolveHookModal, S as Send, a as Skeleton, u as unwrapOrThrow, W as WorkflowWebAPIError, b as RelativeTime, A as Alert, C as CircleAlert, c as AlertTitle, d as AlertDescription, g as getErrorMessage, e as CopyableText, D as DropdownMenu, f as DropdownMenuTrigger, E as Ellipsis, h as DropdownMenuContent, i as DropdownMenuItem, j as ChevronRight, r as resumeHook, k as createCollection, l as hideOthers, m as ReactRemoveScroll, n as useDirection, o as ChevronDown, p as ChevronUp, q as Check, X, s as useControllableState$1, P as Primitive$1, t as composeEventHandlers$1, v as Presence, w as useSize, x as createContextScope$1, y as cancelRun, z as reenqueueRun, B as parseWorkflowName, F as StatusBadge, Z as Zap, G as CircleX, H as RunActionsDropdownItems, I as unwrapServerActionResult, J as WorkflowGraphViewer, T as Tabs, K as TabsList, L as TabsTrigger, M as TabsContent, N as ErrorBoundary } from "./workflow-graph-viewer-lj3vdGSs.js";
3
- import { g as useLayoutEffect2, P as Primitive, c as createLucideIcon, h as useToast, d as cn, D as DEFAULT_PAGE_SIZE, i as fetchRuns, j as fetchHooks, k as getPaginationDisplay, T as Tooltip, a as TooltipTrigger, B as Button, b as TooltipContent, l as fetchEvents, m as useCallbackRef, n as useComposedRefs, A as Anchor, o as composeEventHandlers, p as useId, q as createPopperScope, s as DismissableLayer, v as createContextScope, w as createSlot, C as Content$1, x as useControllableState, y as Root2$1, V as VISUALLY_HIDDEN_STYLES, z as Arrow, E as useComposedRefs$1, u as useServerConfig, t as toast, L as LoaderCircle, F as fetchRun, G as cva, H as Presence$1, I as createContext2, J as fetchWorkflowsManifest } from "./mermaid-3ZIDBTTL-B1-N6W83.js";
4
- import "./index-DhdkuKp5.js";
1
+ import { r as reactExports, D as ReactDOM, j as jsxRuntimeExports, A as Link, f as reactDomExports, C as useSearchParams, B as useNavigate, E as useLocation, w as withComponentProps } from "./index-BQ-Xa8kF.js";
2
+ import { R as ResolveHookModal, S as Send, a as Skeleton, u as unwrapOrThrow, W as WorkflowWebAPIError, b as RelativeTime, A as Alert, C as CircleAlert, c as AlertTitle, d as AlertDescription, g as getErrorMessage, e as CopyableText, D as DropdownMenu, f as DropdownMenuTrigger, E as Ellipsis, h as DropdownMenuContent, i as DropdownMenuItem, j as ChevronRight, r as resumeHook, k as createCollection, l as hideOthers, m as ReactRemoveScroll, n as useDirection, o as ChevronDown, p as ChevronUp, q as Check, X, s as useControllableState$1, P as Primitive$1, t as composeEventHandlers$1, v as Presence, w as useSize, x as createContextScope$1, y as cancelRun, z as reenqueueRun, B as parseWorkflowName, F as StatusBadge, Z as Zap, G as CircleX, H as RunActionsDropdownItems, I as unwrapServerActionResult, J as WorkflowGraphViewer, T as Tabs, K as TabsList, L as TabsTrigger, M as TabsContent, N as ErrorBoundary } from "./workflow-graph-viewer-De_-9tJh.js";
3
+ import { g as useLayoutEffect2, P as Primitive, c as createLucideIcon, h as useToast, d as cn, D as DEFAULT_PAGE_SIZE, i as fetchRuns, j as fetchHooks, k as getPaginationDisplay, T as Tooltip, a as TooltipTrigger, B as Button, b as TooltipContent, l as fetchEvents, m as useCallbackRef, n as useComposedRefs, A as Anchor, o as composeEventHandlers, p as useId, q as createPopperScope, s as DismissableLayer, v as createContextScope, w as createSlot, C as Content$1, x as useControllableState, y as Root2$1, V as VISUALLY_HIDDEN_STYLES, z as Arrow, E as useComposedRefs$1, u as useServerConfig, t as toast, L as LoaderCircle, F as fetchRun, G as cva, H as Presence$1, I as createContext2, J as fetchWorkflowsManifest } from "./mermaid-3ZIDBTTL-DV4S4pTo.js";
4
+ import "./index-CXBr7N7m.js";
5
5
  var PORTAL_NAME$2 = "Portal";
6
6
  var Portal$2 = reactExports.forwardRef((props, forwardedRef) => {
7
7
  var _a;