@powerhousedao/workflow 6.2.3-dev.47 → 6.2.3-dev.48

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 (39) hide show
  1. package/dist/browser/{editor-YRMQ2K-6.js → editor-BXxj5Do5.js} +484 -197
  2. package/dist/browser/editor-BXxj5Do5.js.map +1 -0
  3. package/dist/browser/{editor-h6Fo7DOI.js → editor-C3l2HgXA.js} +4 -4
  4. package/dist/browser/{editor-h6Fo7DOI.js.map → editor-C3l2HgXA.js.map} +1 -1
  5. package/dist/browser/editors/workflow-editor/module.js +1 -1
  6. package/dist/browser/editors/workflow-studio/module.js +1 -1
  7. package/dist/browser/{trigger-text-CmtISlSW.js → trigger-text-Dwaxi16C.js} +34 -1
  8. package/dist/browser/{trigger-text-CmtISlSW.js.map → trigger-text-Dwaxi16C.js.map} +1 -1
  9. package/dist/node/{editor-C8kHYBz1.mjs → editor-B4TEgA0j.mjs} +4 -4
  10. package/dist/node/{editor-C8kHYBz1.mjs.map → editor-B4TEgA0j.mjs.map} +1 -1
  11. package/dist/node/{editor-CFYv3eBu.mjs → editor-DKpQGzMS.mjs} +484 -197
  12. package/dist/node/editor-DKpQGzMS.mjs.map +1 -0
  13. package/dist/node/editors/workflow-editor/module.mjs +1 -1
  14. package/dist/node/editors/workflow-studio/module.mjs +1 -1
  15. package/dist/node/pieces/reactor/descriptor.json +1 -1
  16. package/dist/node/pieces/reactor/package.json +1 -1
  17. package/dist/node/{trigger-text-CaAEQV69.mjs → trigger-text-qK_Nr5Pw.mjs} +34 -1
  18. package/dist/node/{trigger-text-CaAEQV69.mjs.map → trigger-text-qK_Nr5Pw.mjs.map} +1 -1
  19. package/dist/powerhouse.manifest.json +1 -1
  20. package/dist/style.css +130 -25
  21. package/dist/types/editors/workflow-editor/ui/ap-nodes.d.ts.map +1 -1
  22. package/dist/types/editors/workflow-editor/ui/trigger-text.d.ts +2 -0
  23. package/dist/types/editors/workflow-editor/ui/trigger-text.d.ts.map +1 -1
  24. package/dist/types/editors/workflow-studio/components/ScrollFade.d.ts +7 -0
  25. package/dist/types/editors/workflow-studio/components/ScrollFade.d.ts.map +1 -0
  26. package/dist/types/editors/workflow-studio/components/WorkflowBoard.d.ts.map +1 -1
  27. package/dist/types/editors/workflow-studio/components/WorkflowGraph.d.ts +31 -0
  28. package/dist/types/editors/workflow-studio/components/WorkflowGraph.d.ts.map +1 -1
  29. package/dist/types/editors/workflow-studio/components/WorkflowSteps.d.ts.map +1 -1
  30. package/dist/types/editors/workflow-studio/components/chain.d.ts +3 -0
  31. package/dist/types/editors/workflow-studio/components/chain.d.ts.map +1 -1
  32. package/dist/types/editors/workflow-studio/components/fit-geometry.test.d.ts +2 -0
  33. package/dist/types/editors/workflow-studio/components/fit-geometry.test.d.ts.map +1 -0
  34. package/dist/types/editors/workflow-studio/components/graph-layout.d.ts.map +1 -1
  35. package/dist/types/editors/workflow-studio/components/use-collapsed.d.ts +5 -0
  36. package/dist/types/editors/workflow-studio/components/use-collapsed.d.ts.map +1 -0
  37. package/package.json +8 -8
  38. package/dist/browser/editor-YRMQ2K-6.js.map +0 -1
  39. package/dist/node/editor-CFYv3eBu.mjs.map +0 -1
@@ -45,7 +45,7 @@
45
45
  {
46
46
  "id": "@powerhousedao/piece-reactor",
47
47
  "name": "Powerhouse Reactor",
48
- "version": "6.2.3-dev.47",
48
+ "version": "6.2.3-dev.48",
49
49
  "description": "Read and write Powerhouse documents on the reactor this workflow runs in: create documents, dispatch actions, read state and schemas, and fire on document events.",
50
50
  "bundle": "dist/node/pieces/reactor",
51
51
  "descriptor": "dist/node/pieces/reactor/descriptor.json"
package/dist/style.css CHANGED
@@ -279,6 +279,9 @@
279
279
  }
280
280
  }
281
281
  @layer utilities {
282
+ .\@container {
283
+ container-type: inline-size;
284
+ }
282
285
  .pointer-events-auto {
283
286
  pointer-events: auto;
284
287
  }
@@ -338,6 +341,9 @@
338
341
  .top-0 {
339
342
  top: calc(var(--spacing) * 0);
340
343
  }
344
+ .top-1 {
345
+ top: calc(var(--spacing) * 1);
346
+ }
341
347
  .top-1\/2 {
342
348
  top: calc(1 / 2 * 100%);
343
349
  }
@@ -359,6 +365,9 @@
359
365
  .right-3 {
360
366
  right: calc(var(--spacing) * 3);
361
367
  }
368
+ .right-5 {
369
+ right: calc(var(--spacing) * 5);
370
+ }
362
371
  .right-full {
363
372
  right: 100%;
364
373
  }
@@ -431,6 +440,9 @@
431
440
  .mx-auto {
432
441
  margin-inline: auto;
433
442
  }
443
+ .-my-1 {
444
+ margin-block: calc(var(--spacing) * -1);
445
+ }
434
446
  .my-1 {
435
447
  margin-block: calc(var(--spacing) * 1);
436
448
  }
@@ -770,9 +782,6 @@
770
782
  .max-w-80 {
771
783
  max-width: calc(var(--spacing) * 80);
772
784
  }
773
- .max-w-\[60\%\] {
774
- max-width: 60%;
775
- }
776
785
  .max-w-\[92vw\] {
777
786
  max-width: 92vw;
778
787
  }
@@ -806,6 +815,9 @@
806
815
  .shrink-0 {
807
816
  flex-shrink: 0;
808
817
  }
818
+ .shrink-\[100\] {
819
+ flex-shrink: 100;
820
+ }
809
821
  .grow {
810
822
  flex-grow: 1;
811
823
  }
@@ -870,6 +882,12 @@
870
882
  .grid-cols-\[minmax\(0\,1fr\)_auto\] {
871
883
  grid-template-columns: minmax(0,1fr) auto;
872
884
  }
885
+ .grid-cols-\[minmax\(10rem\,2fr\)_minmax\(0\,3fr\)\] {
886
+ grid-template-columns: minmax(10rem,2fr) minmax(0,3fr);
887
+ }
888
+ .grid-rows-\[1\.5rem\] {
889
+ grid-template-rows: 1.5rem;
890
+ }
873
891
  .flex-col {
874
892
  flex-direction: column;
875
893
  }
@@ -1399,9 +1417,6 @@
1399
1417
  .px-4 {
1400
1418
  padding-inline: calc(var(--spacing) * 4);
1401
1419
  }
1402
- .px-5 {
1403
- padding-inline: calc(var(--spacing) * 5);
1404
- }
1405
1420
  .px-6 {
1406
1421
  padding-inline: calc(var(--spacing) * 6);
1407
1422
  }
@@ -1444,6 +1459,9 @@
1444
1459
  .py-px {
1445
1460
  padding-block: 1px;
1446
1461
  }
1462
+ .pt-1 {
1463
+ padding-top: calc(var(--spacing) * 1);
1464
+ }
1447
1465
  .pt-1\.5 {
1448
1466
  padding-top: calc(var(--spacing) * 1.5);
1449
1467
  }
@@ -1471,6 +1489,9 @@
1471
1489
  .pr-3 {
1472
1490
  padding-right: calc(var(--spacing) * 3);
1473
1491
  }
1492
+ .pr-5 {
1493
+ padding-right: calc(var(--spacing) * 5);
1494
+ }
1474
1495
  .pr-9 {
1475
1496
  padding-right: calc(var(--spacing) * 9);
1476
1497
  }
@@ -1492,6 +1513,12 @@
1492
1513
  .pb-3 {
1493
1514
  padding-bottom: calc(var(--spacing) * 3);
1494
1515
  }
1516
+ .pb-4 {
1517
+ padding-bottom: calc(var(--spacing) * 4);
1518
+ }
1519
+ .pl-0\.5 {
1520
+ padding-left: calc(var(--spacing) * 0.5);
1521
+ }
1495
1522
  .pl-1 {
1496
1523
  padding-left: calc(var(--spacing) * 1);
1497
1524
  }
@@ -1510,6 +1537,9 @@
1510
1537
  .pl-4 {
1511
1538
  padding-left: calc(var(--spacing) * 4);
1512
1539
  }
1540
+ .pl-9 {
1541
+ padding-left: calc(var(--spacing) * 9);
1542
+ }
1513
1543
  .pl-10 {
1514
1544
  padding-left: calc(var(--spacing) * 10);
1515
1545
  }
@@ -1573,6 +1603,10 @@
1573
1603
  --tw-leading: calc(var(--spacing) * 5);
1574
1604
  line-height: calc(var(--spacing) * 5);
1575
1605
  }
1606
+ .leading-\[18px\] {
1607
+ --tw-leading: 18px;
1608
+ line-height: 18px;
1609
+ }
1576
1610
  .leading-relaxed {
1577
1611
  --tw-leading: var(--leading-relaxed);
1578
1612
  line-height: var(--leading-relaxed);
@@ -1613,6 +1647,9 @@
1613
1647
  --tw-tracking: var(--tracking-wider);
1614
1648
  letter-spacing: var(--tracking-wider);
1615
1649
  }
1650
+ .\[overflow-wrap\:anywhere\] {
1651
+ overflow-wrap: anywhere;
1652
+ }
1616
1653
  .break-words {
1617
1654
  overflow-wrap: break-word;
1618
1655
  }
@@ -1806,12 +1843,6 @@
1806
1843
  .ring-wf-warn {
1807
1844
  --tw-ring-color: var(--wf-warn);
1808
1845
  }
1809
- .ring-wf-warn\/30 {
1810
- --tw-ring-color: var(--wf-warn);
1811
- @supports (color: color-mix(in lab, red, red)) {
1812
- --tw-ring-color: color-mix(in oklab, var(--wf-warn) 30%, transparent);
1813
- }
1814
- }
1815
1846
  .ring-wf-warn\/50 {
1816
1847
  --tw-ring-color: var(--wf-warn);
1817
1848
  @supports (color: color-mix(in lab, red, red)) {
@@ -1880,6 +1911,18 @@
1880
1911
  .ring-inset {
1881
1912
  --tw-ring-inset: inset;
1882
1913
  }
1914
+ .group-first\/row\:rounded-t-xl {
1915
+ &:is(:where(.group\/row):first-child *) {
1916
+ border-top-left-radius: var(--radius-xl);
1917
+ border-top-right-radius: var(--radius-xl);
1918
+ }
1919
+ }
1920
+ .group-last\/row\:rounded-b-xl {
1921
+ &:is(:where(.group\/row):last-child *) {
1922
+ border-bottom-right-radius: var(--radius-xl);
1923
+ border-bottom-left-radius: var(--radius-xl);
1924
+ }
1925
+ }
1883
1926
  .group-focus-within\/field\:opacity-100 {
1884
1927
  &:is(:where(.group\/field):focus-within *) {
1885
1928
  opacity: 100%;
@@ -1909,6 +1952,13 @@
1909
1952
  }
1910
1953
  }
1911
1954
  }
1955
+ .group-hover\/content\:opacity-100 {
1956
+ &:is(:where(.group\/content):hover *) {
1957
+ @media (hover: hover) {
1958
+ opacity: 100%;
1959
+ }
1960
+ }
1961
+ }
1912
1962
  .group-hover\/field\:opacity-100 {
1913
1963
  &:is(:where(.group\/field):hover *) {
1914
1964
  @media (hover: hover) {
@@ -1916,6 +1966,20 @@
1916
1966
  }
1917
1967
  }
1918
1968
  }
1969
+ .group-hover\/header\:bg-accent {
1970
+ &:is(:where(.group\/header):hover *) {
1971
+ @media (hover: hover) {
1972
+ background-color: var(--accent);
1973
+ }
1974
+ }
1975
+ }
1976
+ .group-hover\/header\:text-foreground {
1977
+ &:is(:where(.group\/header):hover *) {
1978
+ @media (hover: hover) {
1979
+ color: var(--foreground);
1980
+ }
1981
+ }
1982
+ }
1919
1983
  .group-hover\/key\:inline-flex {
1920
1984
  &:is(:where(.group\/key):hover *) {
1921
1985
  @media (hover: hover) {
@@ -1942,6 +2006,21 @@
1942
2006
  display: inline;
1943
2007
  }
1944
2008
  }
2009
+ .group-focus-visible\/content\:opacity-100 {
2010
+ &:is(:where(.group\/content):focus-visible *) {
2011
+ opacity: 100%;
2012
+ }
2013
+ }
2014
+ .group-focus-visible\/header\:bg-accent {
2015
+ &:is(:where(.group\/header):focus-visible *) {
2016
+ background-color: var(--accent);
2017
+ }
2018
+ }
2019
+ .group-focus-visible\/header\:text-foreground {
2020
+ &:is(:where(.group\/header):focus-visible *) {
2021
+ color: var(--foreground);
2022
+ }
2023
+ }
1945
2024
  .placeholder\:text-muted-foreground {
1946
2025
  &::placeholder {
1947
2026
  color: var(--muted-foreground);
@@ -2117,16 +2196,6 @@
2117
2196
  }
2118
2197
  }
2119
2198
  }
2120
- .hover\:bg-wf-warn\/20 {
2121
- &:hover {
2122
- @media (hover: hover) {
2123
- background-color: var(--wf-warn);
2124
- @supports (color: color-mix(in lab, red, red)) {
2125
- background-color: color-mix(in oklab, var(--wf-warn) 20%, transparent);
2126
- }
2127
- }
2128
- }
2129
- }
2130
2199
  .hover\:text-foreground {
2131
2200
  &:hover {
2132
2201
  @media (hover: hover) {
@@ -2235,6 +2304,14 @@
2235
2304
  background-color: var(--accent);
2236
2305
  }
2237
2306
  }
2307
+ .focus-visible\:bg-accent\/50 {
2308
+ &:focus-visible {
2309
+ background-color: var(--accent);
2310
+ @supports (color: color-mix(in lab, red, red)) {
2311
+ background-color: color-mix(in oklab, var(--accent) 50%, transparent);
2312
+ }
2313
+ }
2314
+ }
2238
2315
  .focus-visible\:bg-accent\/60 {
2239
2316
  &:focus-visible {
2240
2317
  background-color: var(--accent);
@@ -2322,11 +2399,19 @@
2322
2399
  opacity: 60%;
2323
2400
  }
2324
2401
  }
2325
- .has-\[\>button\:focus-visible\]\:bg-accent\/50 {
2326
- &:has(>button:focus-visible) {
2402
+ .has-\[\[data-row-header\]\:focus-visible\]\:bg-accent\/40 {
2403
+ &:has(*:is([data-row-header]:focus-visible)) {
2327
2404
  background-color: var(--accent);
2328
2405
  @supports (color: color-mix(in lab, red, red)) {
2329
- background-color: color-mix(in oklab, var(--accent) 50%, transparent);
2406
+ background-color: color-mix(in oklab, var(--accent) 40%, transparent);
2407
+ }
2408
+ }
2409
+ }
2410
+ .has-\[\[data-row-header\]\:hover\]\:bg-accent\/40 {
2411
+ &:has(*:is([data-row-header]:hover)) {
2412
+ background-color: var(--accent);
2413
+ @supports (color: color-mix(in lab, red, red)) {
2414
+ background-color: color-mix(in oklab, var(--accent) 40%, transparent);
2330
2415
  }
2331
2416
  }
2332
2417
  }
@@ -2355,6 +2440,26 @@
2355
2440
  grid-template-columns: minmax(0,1fr) minmax(0,10rem) auto;
2356
2441
  }
2357
2442
  }
2443
+ .\@\[44rem\]\:block {
2444
+ @container (width >= 44rem) {
2445
+ display: block;
2446
+ }
2447
+ }
2448
+ .\@\[44rem\]\:grid-cols-\[minmax\(10rem\,2fr\)_minmax\(0\,3fr\)_auto\] {
2449
+ @container (width >= 44rem) {
2450
+ grid-template-columns: minmax(10rem,2fr) minmax(0,3fr) auto;
2451
+ }
2452
+ }
2453
+ .\@\[60rem\]\:block {
2454
+ @container (width >= 60rem) {
2455
+ display: block;
2456
+ }
2457
+ }
2458
+ .\@\[60rem\]\:grid-cols-\[minmax\(10rem\,2fr\)_minmax\(0\,3fr\)_minmax\(0\,10rem\)_auto\] {
2459
+ @container (width >= 60rem) {
2460
+ grid-template-columns: minmax(10rem,2fr) minmax(0,3fr) minmax(0,10rem) auto;
2461
+ }
2462
+ }
2358
2463
  .dark\:rounded-\[22\%\] {
2359
2464
  &:where(.dark, .dark *) {
2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AW;CACZ,CAAC"}
@@ -1,6 +1,8 @@
1
1
  /** Describes a five-field cron expression, or returns undefined. */
2
2
  export declare function describeCron(cron: string): string | undefined;
3
3
  export declare function describeSchedule(config: unknown): string;
4
+ /** Describes a reactor document trigger by what it filters on. */
5
+ export declare function describeDocumentTrigger(triggerName: string, config: unknown): string | undefined;
4
6
  /** When a workflow starts, from its trigger. */
5
7
  export declare function describeTrigger(trigger: {
6
8
  pieceName: string;
@@ -1 +1 @@
1
- {"version":3,"file":"trigger-text.d.ts","sourceRoot":"","sources":["../../../../../editors/workflow-editor/ui/trigger-text.ts"],"names":[],"mappings":"AAyCA,oEAAoE;AACpE,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAoC7D;AAED,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,CAiBxD;AAED,gDAAgD;AAChD,wBAAgB,eAAe,CAC7B,OAAO,EACH;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,OAAO,CAAA;CAAE,GAC3D,IAAI,GACJ,SAAS,GACZ,MAAM,CAoBR"}
1
+ {"version":3,"file":"trigger-text.d.ts","sourceRoot":"","sources":["../../../../../editors/workflow-editor/ui/trigger-text.ts"],"names":[],"mappings":"AA8CA,oEAAoE;AACpE,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAoC7D;AAED,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,CAiBxD;AA+BD,kEAAkE;AAClE,wBAAgB,uBAAuB,CACrC,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,OAAO,GACd,MAAM,GAAG,SAAS,CAsBpB;AAED,gDAAgD;AAChD,wBAAgB,eAAe,CAC7B,OAAO,EACH;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,OAAO,CAAA;CAAE,GAC3D,IAAI,GACJ,SAAS,GACZ,MAAM,CA2BR"}
@@ -0,0 +1,7 @@
1
+ import { type ReactNode } from "react";
2
+ export declare function ScrollFade(props: {
3
+ className?: string;
4
+ clip?: boolean;
5
+ children: ReactNode;
6
+ }): import("react/jsx-runtime").JSX.Element;
7
+ //# sourceMappingURL=ScrollFade.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScrollFade.d.ts","sourceRoot":"","sources":["../../../../../editors/workflow-studio/components/ScrollFade.tsx"],"names":[],"mappings":"AAEA,OAAO,EAA+B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAWpE,wBAAgB,UAAU,CAAC,KAAK,EAAE;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,QAAQ,EAAE,SAAS,CAAC;CACrB,2CAoCA"}
@@ -1 +1 @@
1
- {"version":3,"file":"WorkflowBoard.d.ts","sourceRoot":"","sources":["../../../../../editors/workflow-studio/components/WorkflowBoard.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAmDzE,wBAAgB,aAAa,CAAC,KAAK,EAAE;IACnC,IAAI,EAAE,SAAS,EAAE,GAAG,IAAI,CAAC;IAEzB,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB,2CAmJA"}
1
+ {"version":3,"file":"WorkflowBoard.d.ts","sourceRoot":"","sources":["../../../../../editors/workflow-studio/components/WorkflowBoard.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAyGzE,wBAAgB,aAAa,CAAC,KAAK,EAAE;IACnC,IAAI,EAAE,SAAS,EAAE,GAAG,IAAI,CAAC;IAEzB,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB,2CA6MA"}
@@ -1,10 +1,41 @@
1
1
  import type { WorkflowState } from "document-models/workflow";
2
2
  import type { RunRecord } from "../../workflow-editor/runtime-client.js";
3
+ export interface Geometry {
4
+ r: number;
5
+ col: number;
6
+ lane: number;
7
+ lead: number;
8
+ top: number;
9
+ dip: number;
10
+ label: number;
11
+ subtitle: boolean;
12
+ nameText: string;
13
+ logo: number;
14
+ circle: string;
15
+ pill: string;
16
+ pillLogo: string;
17
+ pillLogoX: number;
18
+ portText: string;
19
+ }
20
+ export interface Room {
21
+ width: number;
22
+ pill: number;
23
+ }
24
+ export interface GraphFit {
25
+ g: Geometry;
26
+ stacked: boolean;
27
+ perRow: number;
28
+ }
29
+ export declare function fitGraph(base: Geometry, cols: number, room: Room | null): GraphFit;
30
+ export declare const GEOMETRY: Record<"sm" | "md", Geometry>;
31
+ export type Point = [number, number];
32
+ export declare function simplify(route: Point[]): Point[];
3
33
  export declare function WorkflowGraph(props: {
4
34
  state: WorkflowState;
5
35
  triggerText: string;
6
36
  latest?: RunRecord;
7
37
  onOpen?: () => void;
8
38
  size?: "sm" | "md";
39
+ fit?: boolean;
9
40
  }): import("react/jsx-runtime").JSX.Element;
10
41
  //# sourceMappingURL=WorkflowGraph.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"WorkflowGraph.d.ts","sourceRoot":"","sources":["../../../../../editors/workflow-studio/components/WorkflowGraph.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAE9D,OAAO,KAAK,EACV,SAAS,EAEV,MAAM,yCAAyC,CAAC;AA2QjD,wBAAgB,aAAa,CAAC,KAAK,EAAE;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QAAQ,CAyBV;AAED,eAAO,MAAM,QAAQ,EAAE,MAAM,CAAC,IAAI,GAAG,IAAI,EAAE,QAAQ,CAuClD,CAAC;AAgCF,MAAM,MAAM,KAAK,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAkCrC,wBAAgB,QAAQ,CAAC,KAAK,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,CAiBhD;AA0JD,wBAAgB,aAAa,CAAC,KAAK,EAAE;IACnC,KAAK,EAAE,aAAa,CAAC;IAErB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,SAAS,CAAC;IAEnB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IAEpB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAEnB,GAAG,CAAC,EAAE,OAAO,CAAC;CACf,2CAiRA"}
@@ -1 +1 @@
1
- {"version":3,"file":"WorkflowSteps.d.ts","sourceRoot":"","sources":["../../../../../editors/workflow-studio/components/WorkflowSteps.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AA+FzE,wBAAgB,aAAa,CAAC,KAAK,EAAE;IACnC,KAAK,EAAE,aAAa,CAAC;IACrB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,YAAY,EAAE,MAAM,IAAI,CAAC;CAC1B,2CAyFA"}
1
+ {"version":3,"file":"WorkflowSteps.d.ts","sourceRoot":"","sources":["../../../../../editors/workflow-studio/components/WorkflowSteps.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAgGzE,wBAAgB,aAAa,CAAC,KAAK,EAAE;IACnC,KAAK,EAAE,aAAa,CAAC;IACrB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,YAAY,EAAE,MAAM,IAAI,CAAC;CAC1B,2CA0FA"}
@@ -1,5 +1,6 @@
1
1
  import type { RunRecord } from "../../workflow-editor/runtime-client.js";
2
2
  import { type BlockIdentity } from "../../workflow-editor/ui/blocks.js";
3
+ import { stepOutline } from "./step-outline.js";
3
4
  export interface ChainLink {
4
5
  id: string;
5
6
  block: BlockIdentity;
@@ -11,6 +12,8 @@ export declare function MiniChain(props: {
11
12
  size?: "sm" | "md";
12
13
  }): import("react/jsx-runtime").JSX.Element;
13
14
  export declare function triggerOfKind(kind: string): BlockIdentity;
15
+ /** A workflow's steps in the order a run reaches them, coloured by a run. */
16
+ export declare function workflowLinks(workflow: Parameters<typeof stepOutline>[0], latest?: RunRecord): ChainLink[];
14
17
  /** A run's own chain: the trigger, then every step it recorded. */
15
18
  export declare function runLinks(run: RunRecord, trigger?: BlockIdentity): ChainLink[];
16
19
  /** Recent runs as ticks, oldest to newest, padded so strips line up. */
@@ -1 +1 @@
1
- {"version":3,"file":"chain.d.ts","sourceRoot":"","sources":["../../../../../editors/workflow-studio/components/chain.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAEzE,OAAO,EAEL,KAAK,aAAa,EACnB,MAAM,oCAAoC,CAAC;AAU5C,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,aAAa,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IAEd,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAsBD,wBAAgB,SAAS,CAAC,KAAK,EAAE;IAAE,KAAK,EAAE,SAAS,EAAE,CAAC;IAAC,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAA;CAAE,2CAkE1E;AAID,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,aAAa,CAazD;AAED,mEAAmE;AACnE,wBAAgB,QAAQ,CAAC,GAAG,EAAE,SAAS,E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 -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=fit-geometry.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fit-geometry.test.d.ts","sourceRoot":"","sources":["../../../../../editors/workflow-studio/components/fit-geometry.test.ts"],"names":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"graph-layout.d.ts","sourceRoot":"","sources":["../../../../../editors/workflow-studio/components/graph-layout.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,KAAK,WAAW,EAChB,KAAK,WAAW,EACjB,MAAM,mBAAmB,CAAC;AAE3B,eAAO,MAAM,YAAY,YAAY,CAAC;AAEtC,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,WAAW,CAAC;IAElB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IAEb,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;CACrB;AAED,MAAM,WAAW,SAAS;IAExB,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IAGb,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,OAAO,CAAA;KAAE,CAAC;CACzC;AAED,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,SAAS,EAAE,CAAC;IACnB,KAAK,EAAE,SAAS,EAAE,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AAKD,wBAAgB,WAAW,CAAC,IAAI,EAAE;IAChC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,KAAK,EAAE,SAAS,WAAW,EAAE,CAAC;IAC9B,KAAK,EAAE,SAAS,WAAW,EAAE,CAAC;CAC/B,GAAG,WAAW,CAkEd"}
1
+ {"version":3,"file":"graph-layout.d.ts","sourceRoot":"","sources":["../../../../../editors/workflow-studio/components/graph-layout.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,KAAK,WAAW,EAChB,KAAK,WAAW,EACjB,MAAM,mBAAmB,CAAC;AAE3B,eAAO,MAAM,YAAY,YAAY,CAAC;AAEtC,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,WAAW,CAAC;IAElB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IAEb,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;CACrB;AAED,MAAM,WAAW,SAAS;IAExB,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IAGb,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,OAAO,CAAA;KAAE,CAAC;CACzC;AAED,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,SAAS,EAAE,CAAC;IACnB,KAAK,EAAE,SAAS,EAAE,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AAKD,wBAAgB,WAAW,CAAC,IAAI,EAAE;IAChC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,KAAK,EAAE,SAAS,WAAW,EAAE,CAAC;IAC9B,KAAK,EAAE,SAAS,WAAW,EAAE,CAAC;CAC/B,GAAG,WAAW,CAsEd"}
@@ -0,0 +1,5 @@
1
+ export declare function useCollapsed(): {
2
+ isCollapsed: (id: string) => boolean;
3
+ toggle: (id: string) => void;
4
+ };
5
+ //# sourceMappingURL=use-collapsed.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-collapsed.d.ts","sourceRoot":"","sources":["../../../../../editors/workflow-studio/components/use-collapsed.ts"],"names":[],"mappings":"AA2BA,wBAAgB,YAAY;sBAUC,MAAM;iBARD,MAAM;EASvC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerhousedao/workflow",
3
- "version": "6.2.3-dev.47",
3
+ "version": "6.2.3-dev.48",
4
4
  "license": "AGPL-3.0-only",
5
5
  "type": "module",
6
6
  "sideEffects": [
@@ -62,15 +62,15 @@
62
62
  "./package.json": "./package.json"
63
63
  },
64
64
  "dependencies": {
65
- "@powerhousedao/design-system": "6.2.3-dev.47",
66
- "@powerhousedao/pieces-framework": "6.2.3-dev.47",
67
- "@powerhousedao/reactor": "6.2.3-dev.47",
68
- "@powerhousedao/reactor-browser": "6.2.3-dev.47",
69
- "@powerhousedao/shared": "6.2.3-dev.47",
65
+ "@powerhousedao/design-system": "6.2.3-dev.48",
66
+ "@powerhousedao/pieces-framework": "6.2.3-dev.48",
67
+ "@powerhousedao/reactor": "6.2.3-dev.48",
68
+ "@powerhousedao/reactor-browser": "6.2.3-dev.48",
69
+ "@powerhousedao/shared": "6.2.3-dev.48",
70
70
  "@tanstack/react-query": "^5.49.2",
71
71
  "@uiw/react-json-view": "2.0.0-alpha.42",
72
72
  "@xyflow/react": "12.11.6",
73
- "document-model": "6.2.3-dev.47",
73
+ "document-model": "6.2.3-dev.48",
74
74
  "graphql": "^16",
75
75
  "react": "19.2.6",
76
76
  "react-dom": "19.2.6",
@@ -80,7 +80,7 @@
80
80
  },
81
81
  "devDependencies": {
82
82
  "@playwright/test": "^1.60.0",
83
- "@powerhousedao/powerhouse-vetra-packages": "6.2.3-dev.47",
83
+ "@powerhousedao/powerhouse-vetra-packages": "6.2.3-dev.48",
84
84
  "@tailwindcss/cli": "4.2.2",
85
85
  "@types/node": "25.2.3",
86
86
  "@types/react": "19.2.14",