@oomol-lab/open-flow 0.1.0-beta.76 → 0.1.0-beta.78
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.
- package/README.md +3 -0
- package/dist/browser/{ContentIcon-Cm1hbVzW.js → ContentIcon-CMn0c-kl.js} +99 -6
- package/dist/browser/{FlowCanvas-NzKtla_c.js → FlowCanvas-BQGBcfoL.js} +1709 -613
- package/dist/browser/{createResourceDialog-BgdedQqu.js → createResourceDialog-DCGxfKFM.js} +63 -57
- package/dist/browser/{dialog-aSElFFw2.js → dialog-WzR4CRFH.js} +76 -77
- package/dist/browser/{exportSvg-Dcz4HTo_.js → exportSvg-CYwyYiuH.js} +2 -2
- package/dist/browser/{flowChanges-NZyS7HSp.js → flowChanges-Bz4dbDN_.js} +6875 -11091
- package/dist/browser/{flowWorkspace-Bl0SDehy.js → flowWorkspace-BI6L6a4r.js} +1415 -3037
- package/dist/browser/licenses.md +1 -1
- package/dist/browser/preview.css +619 -462
- package/dist/browser/preview.js +9016 -14956
- package/dist/browser/theme.css +4 -2
- package/dist/browser/{tooltip-3XMK9jkr.js → tooltip-BDcVTNpu.js} +65 -2
- package/dist/browser/{typeScriptSession-C9sBGOKZ.js → typeScriptSession-CRoezJPN.js} +1 -1
- package/dist/browser/ui.css +112 -24
- package/dist/browser/ui.js +3 -2
- package/dist/browser/workbench.css +10020 -9842
- package/dist/browser/workbench.d.ts +5 -2
- package/dist/browser/workbench.js +2382 -2668
- package/dist/browser/{workbenchSelect-DBGP7Y4Z.js → workbenchSelect-DtAd0zc4.js} +2 -2
- package/dist/command/index.js +48 -48
- package/dist/common/authoring.d.ts +4 -4
- package/dist/common/authoringExamples.d.ts +3 -2
- package/dist/common/authoringSchema.d.ts +15 -4
- package/dist/common/control-api-conformance.js +155 -15
- package/dist/common/control-api-errors.d.ts +12 -0
- package/dist/common/control-api.d.ts +39 -2
- package/dist/common/control-api.js +180 -37
- package/dist/common/control-requests.d.ts +23 -3
- package/dist/common/control-requests.js +141 -14
- package/dist/common/engine-contract.d.ts +3 -2
- package/dist/common/flow-authoring.js +47 -7
- package/dist/common/flow-change-schema.d.ts +1 -1
- package/dist/common/flow-change.d.ts +2 -2
- package/dist/common/flow-change.js +48 -8
- package/dist/common/flow-encoding.js +47 -7
- package/dist/common/flow-semantics.js +86 -8
- package/dist/common/flow-state.d.ts +100 -0
- package/dist/common/flow-state.js +5794 -0
- package/dist/common/mcp.d.ts +96 -3
- package/dist/common/mcp.js +158 -13
- package/dist/common/run-events.js +19 -8
- package/dist/common/runtime-contract.d.ts +14 -0
- package/dist/common/runtime-contract.js +124 -17
- package/dist/common/runtime-nodejs-compat.js +11 -12
- package/dist/common/scheduler-node-execution.d.ts +1 -0
- package/dist/common/scheduler.d.ts +2 -1
- package/dist/common/scheduler.js +95 -40
- package/dist/common/state-conformance.d.ts +16 -0
- package/dist/common/tags.d.ts +4 -0
- package/dist/index.d.ts +11 -0
- package/package.json +5 -1
- package/src/control/common/api.ts +101 -11
- package/src/control/common/authoring.ts +7 -1
- package/src/control/common/authoringExamples.ts +9 -0
- package/src/control/common/authoringSchema.ts +18 -12
- package/src/control/common/errors.ts +6 -0
- package/src/control/common/flowDecoders.ts +1 -0
- package/src/control/common/mcp.ts +16 -0
- package/src/control/common/requests.ts +16 -2
- package/src/control/common/tags.ts +20 -0
- package/src/execution/common/events.ts +22 -7
- package/src/execution/common/node-execution.ts +3 -0
- package/src/execution/common/scheduler.ts +29 -13
- package/src/flow/common/change.ts +2 -1
- package/src/flow/common/changeSchema.ts +11 -1
- package/src/flow/common/errorHandling.ts +1 -1
- package/src/flow/common/semantics.ts +27 -1
- package/src/runtime/common/engineContract.ts +6 -3
- package/src/runtime/common/nodejsGuest.generated.json +11 -12
- package/src/runtime/common/runtime.ts +122 -7
- package/src/state/common/conformance.ts +81 -0
- package/src/state/common/state.ts +141 -0
- package/src/types/index.ts +11 -0
package/dist/browser/ui.css
CHANGED
|
@@ -148,6 +148,7 @@
|
|
|
148
148
|
--ui-secondary-foreground: var(--_open-flow-secondary-foreground);
|
|
149
149
|
--ui-muted: var(--_open-flow-muted);
|
|
150
150
|
--ui-muted-foreground: var(--_open-flow-muted-foreground);
|
|
151
|
+
--ui-control-background: var(--open-flow-control-background);
|
|
151
152
|
--ui-accent: var(--_open-flow-accent);
|
|
152
153
|
--ui-accent-foreground: var(--_open-flow-accent-foreground);
|
|
153
154
|
--ui-destructive: var(--_open-flow-destructive);
|
|
@@ -207,7 +208,7 @@
|
|
|
207
208
|
.open-flow-property-panel {
|
|
208
209
|
--ui-card: var(--_open-flow-node-surface);
|
|
209
210
|
--ui-background: var(--_open-flow-node-surface);
|
|
210
|
-
--ui-control-background: var(--_open-flow-node-content);
|
|
211
|
+
--ui-control-background: var(--open-flow-control-background, var(--_open-flow-node-content));
|
|
211
212
|
--ui-control-hover-background: var(--_open-flow-secondary);
|
|
212
213
|
}
|
|
213
214
|
|
|
@@ -411,7 +412,7 @@
|
|
|
411
412
|
--widget-background: var(--fill-4);
|
|
412
413
|
--widget-background-highlight-color: var(--fill-5);
|
|
413
414
|
--widget-background-mask-highlight-color: #0000001a;
|
|
414
|
-
--widget-input-background: var(--fill-3);
|
|
415
|
+
--widget-input-background: var(--open-flow-control-background, var(--fill-3));
|
|
415
416
|
--widget-input-selection-background-color: var(--open-flow-accent, light-dark(#d1d2f3, #2b4f77));
|
|
416
417
|
--widget-switch-background-color: var(--fill-7);
|
|
417
418
|
--widget-switch-border-color: transparent;
|
|
@@ -642,6 +643,9 @@
|
|
|
642
643
|
|
|
643
644
|
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root), :where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) *, :where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) :before, :where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) :after {
|
|
644
645
|
box-sizing: border-box;
|
|
646
|
+
--tw-translate-x: 0;
|
|
647
|
+
--tw-translate-y: 0;
|
|
648
|
+
--tw-translate-z: 0;
|
|
645
649
|
}
|
|
646
650
|
|
|
647
651
|
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) button, :where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) input, :where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) select, :where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) textarea {
|
|
@@ -835,6 +839,10 @@
|
|
|
835
839
|
order: 9999;
|
|
836
840
|
}
|
|
837
841
|
|
|
842
|
+
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .col-span-2 {
|
|
843
|
+
grid-column: span 2 / span 2;
|
|
844
|
+
}
|
|
845
|
+
|
|
838
846
|
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .col-span-full {
|
|
839
847
|
grid-column: 1 / -1;
|
|
840
848
|
}
|
|
@@ -901,6 +909,10 @@
|
|
|
901
909
|
margin: calc(var(--spacing) * 2);
|
|
902
910
|
}
|
|
903
911
|
|
|
912
|
+
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .m-4 {
|
|
913
|
+
margin: calc(var(--spacing) * 4);
|
|
914
|
+
}
|
|
915
|
+
|
|
904
916
|
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .m-auto {
|
|
905
917
|
margin: auto;
|
|
906
918
|
}
|
|
@@ -1213,6 +1225,10 @@
|
|
|
1213
1225
|
height: calc(var(--spacing) * 10);
|
|
1214
1226
|
}
|
|
1215
1227
|
|
|
1228
|
+
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .h-16 {
|
|
1229
|
+
height: calc(var(--spacing) * 16);
|
|
1230
|
+
}
|
|
1231
|
+
|
|
1216
1232
|
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .h-80 {
|
|
1217
1233
|
height: calc(var(--spacing) * 80);
|
|
1218
1234
|
}
|
|
@@ -1305,10 +1321,6 @@
|
|
|
1305
1321
|
max-height: calc(var(--spacing) * 64);
|
|
1306
1322
|
}
|
|
1307
1323
|
|
|
1308
|
-
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .max-h-96 {
|
|
1309
|
-
max-height: calc(var(--spacing) * 96);
|
|
1310
|
-
}
|
|
1311
|
-
|
|
1312
1324
|
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .max-h-\[70vh\] {
|
|
1313
1325
|
max-height: 70vh;
|
|
1314
1326
|
}
|
|
@@ -1317,6 +1329,10 @@
|
|
|
1317
1329
|
max-height: 80dvh;
|
|
1318
1330
|
}
|
|
1319
1331
|
|
|
1332
|
+
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .max-h-\[80vh\] {
|
|
1333
|
+
max-height: 80vh;
|
|
1334
|
+
}
|
|
1335
|
+
|
|
1320
1336
|
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .max-h-\[85dvh\] {
|
|
1321
1337
|
max-height: 85dvh;
|
|
1322
1338
|
}
|
|
@@ -1333,6 +1349,10 @@
|
|
|
1333
1349
|
max-height: min(40vh, 280px);
|
|
1334
1350
|
}
|
|
1335
1351
|
|
|
1352
|
+
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .max-h-\[min\(50vh\,360px\)\] {
|
|
1353
|
+
max-height: min(50vh, 360px);
|
|
1354
|
+
}
|
|
1355
|
+
|
|
1336
1356
|
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .max-h-\[min\(50vh\,360px\,calc\(var\(--available-height\)-0\.5rem\)\)\] {
|
|
1337
1357
|
max-height: min(50vh, 360px, calc(var(--available-height) - .5rem));
|
|
1338
1358
|
}
|
|
@@ -1341,6 +1361,10 @@
|
|
|
1341
1361
|
max-height: min(60dvh, 480px);
|
|
1342
1362
|
}
|
|
1343
1363
|
|
|
1364
|
+
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .max-h-\[min\(60vh\,32rem\)\] {
|
|
1365
|
+
max-height: min(60vh, 32rem);
|
|
1366
|
+
}
|
|
1367
|
+
|
|
1344
1368
|
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .max-h-\[min\(60vh\,360px\)\] {
|
|
1345
1369
|
max-height: min(60vh, 360px);
|
|
1346
1370
|
}
|
|
@@ -1437,6 +1461,10 @@
|
|
|
1437
1461
|
width: calc(var(--spacing) * 16);
|
|
1438
1462
|
}
|
|
1439
1463
|
|
|
1464
|
+
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .w-24 {
|
|
1465
|
+
width: calc(var(--spacing) * 24);
|
|
1466
|
+
}
|
|
1467
|
+
|
|
1440
1468
|
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .w-28 {
|
|
1441
1469
|
width: calc(var(--spacing) * 28);
|
|
1442
1470
|
}
|
|
@@ -1445,6 +1473,10 @@
|
|
|
1445
1473
|
width: calc(var(--spacing) * 36);
|
|
1446
1474
|
}
|
|
1447
1475
|
|
|
1476
|
+
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .w-40 {
|
|
1477
|
+
width: calc(var(--spacing) * 40);
|
|
1478
|
+
}
|
|
1479
|
+
|
|
1448
1480
|
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .w-44 {
|
|
1449
1481
|
width: calc(var(--spacing) * 44);
|
|
1450
1482
|
}
|
|
@@ -1533,6 +1565,10 @@
|
|
|
1533
1565
|
max-width: calc(var(--spacing) * 40);
|
|
1534
1566
|
}
|
|
1535
1567
|
|
|
1568
|
+
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .max-w-48 {
|
|
1569
|
+
max-width: calc(var(--spacing) * 48);
|
|
1570
|
+
}
|
|
1571
|
+
|
|
1536
1572
|
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .max-w-64 {
|
|
1537
1573
|
max-width: calc(var(--spacing) * 64);
|
|
1538
1574
|
}
|
|
@@ -1657,10 +1693,18 @@
|
|
|
1657
1693
|
flex-grow: 1;
|
|
1658
1694
|
}
|
|
1659
1695
|
|
|
1696
|
+
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .basis-30 {
|
|
1697
|
+
flex-basis: calc(var(--spacing) * 30);
|
|
1698
|
+
}
|
|
1699
|
+
|
|
1660
1700
|
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .basis-48 {
|
|
1661
1701
|
flex-basis: calc(var(--spacing) * 48);
|
|
1662
1702
|
}
|
|
1663
1703
|
|
|
1704
|
+
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .table-fixed {
|
|
1705
|
+
table-layout: fixed;
|
|
1706
|
+
}
|
|
1707
|
+
|
|
1664
1708
|
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .border-collapse {
|
|
1665
1709
|
border-collapse: collapse;
|
|
1666
1710
|
}
|
|
@@ -1881,6 +1925,10 @@
|
|
|
1881
1925
|
align-items: center;
|
|
1882
1926
|
}
|
|
1883
1927
|
|
|
1928
|
+
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .items-end {
|
|
1929
|
+
align-items: flex-end;
|
|
1930
|
+
}
|
|
1931
|
+
|
|
1884
1932
|
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .items-start {
|
|
1885
1933
|
align-items: flex-start;
|
|
1886
1934
|
}
|
|
@@ -2053,6 +2101,10 @@
|
|
|
2053
2101
|
align-self: stretch;
|
|
2054
2102
|
}
|
|
2055
2103
|
|
|
2104
|
+
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .justify-self-start {
|
|
2105
|
+
justify-self: flex-start;
|
|
2106
|
+
}
|
|
2107
|
+
|
|
2056
2108
|
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .truncate {
|
|
2057
2109
|
text-overflow: ellipsis;
|
|
2058
2110
|
white-space: nowrap;
|
|
@@ -2201,6 +2253,11 @@
|
|
|
2201
2253
|
border-left-width: 1px;
|
|
2202
2254
|
}
|
|
2203
2255
|
|
|
2256
|
+
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .border-dashed {
|
|
2257
|
+
--tw-border-style: dashed;
|
|
2258
|
+
border-style: dashed;
|
|
2259
|
+
}
|
|
2260
|
+
|
|
2204
2261
|
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .border-\[color-mix\(in_srgb\,var\(--_open-flow-comment-border\)_45\%\,transparent\)\] {
|
|
2205
2262
|
border-color: var(--_open-flow-comment-border);
|
|
2206
2263
|
}
|
|
@@ -2385,16 +2442,6 @@
|
|
|
2385
2442
|
}
|
|
2386
2443
|
}
|
|
2387
2444
|
|
|
2388
|
-
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .bg-foreground\/5 {
|
|
2389
|
-
background-color: var(--ui-foreground);
|
|
2390
|
-
}
|
|
2391
|
-
|
|
2392
|
-
@supports (color: color-mix(in lab, red, red)) {
|
|
2393
|
-
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .bg-foreground\/5 {
|
|
2394
|
-
background-color: color-mix(in oklab, var(--ui-foreground) 5%, transparent);
|
|
2395
|
-
}
|
|
2396
|
-
}
|
|
2397
|
-
|
|
2398
2445
|
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .bg-foreground\/\[0\.03\] {
|
|
2399
2446
|
background-color: var(--ui-foreground);
|
|
2400
2447
|
}
|
|
@@ -2601,6 +2648,10 @@
|
|
|
2601
2648
|
padding-block: calc(var(--spacing) * 4);
|
|
2602
2649
|
}
|
|
2603
2650
|
|
|
2651
|
+
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .py-8 {
|
|
2652
|
+
padding-block: calc(var(--spacing) * 8);
|
|
2653
|
+
}
|
|
2654
|
+
|
|
2604
2655
|
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .py-\[5px\] {
|
|
2605
2656
|
padding-block: 5px;
|
|
2606
2657
|
}
|
|
@@ -3012,10 +3063,6 @@
|
|
|
3012
3063
|
text-underline-offset: 4px;
|
|
3013
3064
|
}
|
|
3014
3065
|
|
|
3015
|
-
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .opacity-0 {
|
|
3016
|
-
opacity: 0;
|
|
3017
|
-
}
|
|
3018
|
-
|
|
3019
3066
|
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .opacity-40 {
|
|
3020
3067
|
opacity: .4;
|
|
3021
3068
|
}
|
|
@@ -3647,6 +3694,15 @@
|
|
|
3647
3694
|
margin-bottom: 0;
|
|
3648
3695
|
}
|
|
3649
3696
|
|
|
3697
|
+
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .last\:border-0:last-child {
|
|
3698
|
+
border-style: var(--tw-border-style);
|
|
3699
|
+
border-width: 0;
|
|
3700
|
+
}
|
|
3701
|
+
|
|
3702
|
+
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .last\:pb-0:last-child {
|
|
3703
|
+
padding-bottom: 0;
|
|
3704
|
+
}
|
|
3705
|
+
|
|
3650
3706
|
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .last\:pb-1:last-child {
|
|
3651
3707
|
padding-bottom: var(--spacing);
|
|
3652
3708
|
}
|
|
@@ -3728,7 +3784,7 @@
|
|
|
3728
3784
|
}
|
|
3729
3785
|
}
|
|
3730
3786
|
|
|
3731
|
-
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .hover\:bg-foreground
|
|
3787
|
+
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .hover\:bg-foreground\/7:hover {
|
|
3732
3788
|
background-color: var(--ui-foreground);
|
|
3733
3789
|
}
|
|
3734
3790
|
|
|
@@ -5011,10 +5067,38 @@
|
|
|
5011
5067
|
}
|
|
5012
5068
|
|
|
5013
5069
|
@media (min-width: 40rem) {
|
|
5070
|
+
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .sm\:col-span-1 {
|
|
5071
|
+
grid-column: span 1 / span 1;
|
|
5072
|
+
}
|
|
5073
|
+
|
|
5074
|
+
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .sm\:col-start-2 {
|
|
5075
|
+
grid-column-start: 2;
|
|
5076
|
+
}
|
|
5077
|
+
|
|
5078
|
+
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .sm\:col-start-3 {
|
|
5079
|
+
grid-column-start: 3;
|
|
5080
|
+
}
|
|
5081
|
+
|
|
5082
|
+
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .sm\:row-start-1 {
|
|
5083
|
+
grid-row-start: 1;
|
|
5084
|
+
}
|
|
5085
|
+
|
|
5086
|
+
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .sm\:w-3\/5 {
|
|
5087
|
+
width: 60%;
|
|
5088
|
+
}
|
|
5089
|
+
|
|
5090
|
+
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .sm\:w-20 {
|
|
5091
|
+
width: calc(var(--spacing) * 20);
|
|
5092
|
+
}
|
|
5093
|
+
|
|
5014
5094
|
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .sm\:w-56 {
|
|
5015
5095
|
width: calc(var(--spacing) * 56);
|
|
5016
5096
|
}
|
|
5017
5097
|
|
|
5098
|
+
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .sm\:w-auto {
|
|
5099
|
+
width: auto;
|
|
5100
|
+
}
|
|
5101
|
+
|
|
5018
5102
|
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .sm\:max-w-2xl {
|
|
5019
5103
|
max-width: var(--container-2xl);
|
|
5020
5104
|
}
|
|
@@ -5047,6 +5131,10 @@
|
|
|
5047
5131
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
5048
5132
|
}
|
|
5049
5133
|
|
|
5134
|
+
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .sm\:grid-cols-\[minmax\(0\,1fr\)_auto_auto\] {
|
|
5135
|
+
grid-template-columns: minmax(0, 1fr) auto auto;
|
|
5136
|
+
}
|
|
5137
|
+
|
|
5050
5138
|
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .sm\:flex-row {
|
|
5051
5139
|
flex-direction: row;
|
|
5052
5140
|
}
|
|
@@ -5244,7 +5332,7 @@
|
|
|
5244
5332
|
}
|
|
5245
5333
|
}
|
|
5246
5334
|
|
|
5247
|
-
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .dark\:hover\:bg-foreground
|
|
5335
|
+
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .dark\:hover\:bg-foreground\/7:hover {
|
|
5248
5336
|
background-color: var(--ui-foreground);
|
|
5249
5337
|
}
|
|
5250
5338
|
|
|
@@ -5818,14 +5906,14 @@
|
|
|
5818
5906
|
}
|
|
5819
5907
|
|
|
5820
5908
|
@supports (position-anchor: --open-flow-canvas) {
|
|
5821
|
-
[data-sonner-toaster].open-flow-notifications[data-sonner-theme][data-x-position="center"] {
|
|
5909
|
+
:root:not(:has([data-slot="dialog-content"])) [data-sonner-toaster].open-flow-notifications[data-sonner-theme][data-x-position="center"] {
|
|
5822
5910
|
position-anchor: --open-flow-canvas;
|
|
5823
5911
|
left: anchor(center, 50%);
|
|
5824
5912
|
max-width: calc(anchor-size(width, 100%) - 24px);
|
|
5825
5913
|
transform: translateX(-50%);
|
|
5826
5914
|
}
|
|
5827
5915
|
|
|
5828
|
-
[data-sonner-toaster].open-flow-notifications[data-sonner-theme][data-x-position="center"][data-y-position="top"] {
|
|
5916
|
+
:root:not(:has([data-slot="dialog-content"])) [data-sonner-toaster].open-flow-notifications[data-sonner-theme][data-x-position="center"][data-y-position="top"] {
|
|
5829
5917
|
top: calc(anchor(top, calc(var(--offset-top) - 16px)) + 16px);
|
|
5830
5918
|
}
|
|
5831
5919
|
}
|
package/dist/browser/ui.js
CHANGED
|
@@ -13188,10 +13188,11 @@ function DialogOverlay({ className, ...props }) {
|
|
|
13188
13188
|
...props
|
|
13189
13189
|
});
|
|
13190
13190
|
}
|
|
13191
|
-
|
|
13191
|
+
var DialogContent$1 = React.forwardRef(function DialogContent({ children, className, closeLabel = "Close", container, showCloseButton = true, ...props }, ref) {
|
|
13192
13192
|
return /* @__PURE__ */ jsxs(DialogPortal, {
|
|
13193
13193
|
container,
|
|
13194
13194
|
children: [/* @__PURE__ */ jsx(DialogOverlay, {}), /* @__PURE__ */ jsxs(DialogPopup, {
|
|
13195
|
+
ref,
|
|
13195
13196
|
"data-slot": "dialog-content",
|
|
13196
13197
|
className: cn("fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] grid-cols-[minmax(0,1fr)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-lg bg-popover [--ui-control-background:var(--ui-popover)] p-4 text-sm text-popover-foreground shadow-lg ring-1 ring-foreground/10 outline-none sm:max-w-sm transition-opacity duration-150 ease-out data-starting-style:opacity-0 data-ending-style:opacity-0 motion-reduce:transition-none", className),
|
|
13197
13198
|
...props,
|
|
@@ -13214,7 +13215,7 @@ function DialogContent$1({ children, className, closeLabel = "Close", container,
|
|
|
13214
13215
|
})] })]
|
|
13215
13216
|
})]
|
|
13216
13217
|
});
|
|
13217
|
-
}
|
|
13218
|
+
});
|
|
13218
13219
|
function DialogHeader$1({ className, ...props }) {
|
|
13219
13220
|
return /* @__PURE__ */ jsx("div", {
|
|
13220
13221
|
"data-slot": "dialog-header",
|