@oomol-lab/open-flow 0.1.0-beta.79 → 0.1.0-beta.80

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 (32) hide show
  1. package/dist/browser/{FlowCanvas-BQGBcfoL.js → FlowCanvas-CrsiDHK8.js} +50 -51
  2. package/dist/browser/{createResourceDialog-DkovGogv.js → createResourceDialog-CS3u9ga9.js} +2 -2
  3. package/dist/browser/{dialog-CFFuRM8s.js → dialog-CFlvkliO.js} +7 -2
  4. package/dist/browser/{exportSvg-CYwyYiuH.js → exportPng-BOPfjeEi.js} +236 -38
  5. package/dist/browser/{flowChanges-CN2R-m1M.js → flowChanges-pFjPHU5k.js} +326 -203
  6. package/dist/browser/{flowWorkspace-CXVL1FNv.js → flowWorkspace-CRlqc403.js} +698 -480
  7. package/dist/browser/preview.css +153 -132
  8. package/dist/browser/preview.js +921 -643
  9. package/dist/browser/ui-logo.d.ts +1 -0
  10. package/dist/browser/ui.css +29 -4
  11. package/dist/browser/ui.js +4 -1
  12. package/dist/browser/workbench.css +153 -132
  13. package/dist/browser/workbench.js +9 -9
  14. package/dist/browser/{workbenchSelect-CkOS95gX.js → workbenchSelect-Ci0KCYv9.js} +1 -1
  15. package/dist/command/index.js +41 -41
  16. package/dist/common/control-api-conformance.js +49 -19
  17. package/dist/common/control-api.d.ts +26 -6
  18. package/dist/common/control-api.js +49 -19
  19. package/dist/common/control-requests.js +6 -2
  20. package/dist/common/flow-authoring.js +6 -2
  21. package/dist/common/flow-change.js +6 -2
  22. package/dist/common/flow-encoding.js +6 -2
  23. package/dist/common/flow-semantics.js +6 -2
  24. package/dist/common/flow-state.d.ts +47 -0
  25. package/dist/common/flow-state.js +7 -1
  26. package/dist/common/mcp.js +49 -18
  27. package/dist/common/scheduler.js +6 -2
  28. package/package.json +1 -1
  29. package/src/control/common/api.ts +24 -8
  30. package/src/control/common/connectorDecoders.ts +11 -30
  31. package/src/control/common/revisionDecoders.ts +14 -0
  32. package/src/state/common/state.ts +14 -0
@@ -2,4 +2,5 @@ import type { ComponentPropsWithoutRef } from 'react';
2
2
  export interface OpenFlowLogoProps extends Omit<ComponentPropsWithoutRef<'img'>, 'src' | 'srcSet'> {
3
3
  readonly theme: 'light' | 'dark';
4
4
  }
5
+ export declare function openFlowLogoSource(theme: 'light' | 'dark'): string;
5
6
  export declare function OpenFlowLogo({ theme, alt, width, height, style, ...props }: OpenFlowLogoProps): import("react").JSX.Element;
@@ -1273,6 +1273,10 @@
1273
1273
  height: calc(100% - 1px);
1274
1274
  }
1275
1275
 
1276
+ :where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .h-\[min\(32rem\,80dvh\)\] {
1277
+ height: min(32rem, 80dvh);
1278
+ }
1279
+
1276
1280
  :where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .h-\[min\(560px\,80dvh\)\] {
1277
1281
  height: min(560px, 80dvh);
1278
1282
  }
@@ -1329,10 +1333,6 @@
1329
1333
  max-height: 80dvh;
1330
1334
  }
1331
1335
 
1332
- :where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .max-h-\[80vh\] {
1333
- max-height: 80vh;
1334
- }
1335
-
1336
1336
  :where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .max-h-\[85dvh\] {
1337
1337
  max-height: 85dvh;
1338
1338
  }
@@ -1445,6 +1445,10 @@
1445
1445
  width: calc(var(--spacing) * 3.5);
1446
1446
  }
1447
1447
 
1448
+ :where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .w-4 {
1449
+ width: calc(var(--spacing) * 4);
1450
+ }
1451
+
1448
1452
  :where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .w-8 {
1449
1453
  width: calc(var(--spacing) * 8);
1450
1454
  }
@@ -1557,6 +1561,10 @@
1557
1561
  width: var(--container-md);
1558
1562
  }
1559
1563
 
1564
+ :where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .w-px {
1565
+ width: 1px;
1566
+ }
1567
+
1560
1568
  :where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .max-w-\(--available-width\) {
1561
1569
  max-width: var(--available-width);
1562
1570
  }
@@ -2736,6 +2744,10 @@
2736
2744
  padding-left: calc(var(--spacing) * 2.5);
2737
2745
  }
2738
2746
 
2747
+ :where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .pl-3 {
2748
+ padding-left: calc(var(--spacing) * 3);
2749
+ }
2750
+
2739
2751
  :where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .pl-4 {
2740
2752
  padding-left: calc(var(--spacing) * 4);
2741
2753
  }
@@ -2768,6 +2780,10 @@
2768
2780
  text-align: right;
2769
2781
  }
2770
2782
 
2783
+ :where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .align-middle {
2784
+ vertical-align: middle;
2785
+ }
2786
+
2771
2787
  :where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .font-mono {
2772
2788
  font-family: var(--font-mono);
2773
2789
  }
@@ -3699,6 +3715,11 @@
3699
3715
  border-width: 0;
3700
3716
  }
3701
3717
 
3718
+ :where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .last\:border-b-0:last-child {
3719
+ border-bottom-style: var(--tw-border-style);
3720
+ border-bottom-width: 0;
3721
+ }
3722
+
3702
3723
  :where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .last\:pb-0:last-child {
3703
3724
  padding-bottom: 0;
3704
3725
  }
@@ -5083,6 +5104,10 @@
5083
5104
  grid-row-start: 1;
5084
5105
  }
5085
5106
 
5107
+ :where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .sm\:inline {
5108
+ display: inline;
5109
+ }
5110
+
5086
5111
  :where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .sm\:w-3\/5 {
5087
5112
  width: 60%;
5088
5113
  }
@@ -19551,10 +19551,13 @@ var open_flow_dark_default = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.o
19551
19551
  var open_flow_light_default = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='100'%20height='100'%20viewBox='0%200%20100%20100'%20role='img'%20aria-label='Open%20Flow'%3e%3cpath%20fill='%2344474c'%20d='M32%2016H68Q84%2016%2084%2032V36H68C46%2036%2054%2056%2032%2056H16V32Q16%2016%2032%2016Z'/%3e%3cpath%20fill='%2393979f'%20d='M16%2068H32C54%2068%2046%2048%2068%2048H84V68Q84%2084%2068%2084H32Q16%2084%2016%2068Z'/%3e%3c/svg%3e";
19552
19552
  //#endregion
19553
19553
  //#region src/ui/browser/logo.tsx
19554
+ function openFlowLogoSource(theme) {
19555
+ return theme === "dark" ? open_flow_dark_default : open_flow_light_default;
19556
+ }
19554
19557
  function OpenFlowLogo({ theme, alt = "Open Flow", width = 24, height = 24, style, ...props }) {
19555
19558
  return /* @__PURE__ */ jsx("img", {
19556
19559
  ...props,
19557
- src: theme === "dark" ? open_flow_dark_default : open_flow_light_default,
19560
+ src: openFlowLogoSource(theme),
19558
19561
  alt,
19559
19562
  width,
19560
19563
  height,