@w6w/ui 0.2.58 → 0.2.59

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.
@@ -0,0 +1,20 @@
1
+ import { FlowStep } from './flow-types.ts';
2
+ /** "Run next nodes: In sequence / In parallel" — only meaningful with 2+ outgoing edges in a lane. */
3
+ export declare function StepFanOutControl({ step, count, readOnly, onChange, }: {
4
+ step: FlowStep;
5
+ count: number;
6
+ readOnly?: boolean;
7
+ onChange: (next: FlowStep) => void;
8
+ }): import("react").JSX.Element;
9
+ /**
10
+ * "Write to state" — where this step's output lands in the run's state tree
11
+ * (`Node.state`). Off is the key's absence (Merge at root on Set data, R14);
12
+ * every rule about paths and keys comes from `@w6w/expr` `validateStateConfig`.
13
+ */
14
+ export declare function StepStateControl({ step, inLoop, outputFields, readOnly, onChange, }: {
15
+ step: FlowStep;
16
+ inLoop: boolean;
17
+ outputFields?: string[];
18
+ readOnly?: boolean;
19
+ onChange: (next: FlowStep) => void;
20
+ }): import("react").JSX.Element;
package/dist/types.d.ts CHANGED
@@ -449,6 +449,11 @@ export interface AuthDef {
449
449
  description?: string;
450
450
  connectionLabel?: string;
451
451
  fields?: AuthField[];
452
+ /** Where to get what `fields` ask for: ordered steps, each optionally linking to the vendor page. */
453
+ setup?: {
454
+ text: string;
455
+ url?: string;
456
+ }[];
452
457
  /** Present when `type === "serviceAccount"`: what credential it accepts and how it binds. */
453
458
  serviceAccount?: ServiceAccountConfig;
454
459
  /** OAuth2 endpoints (only present when type === "oauth2"). */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@w6w/ui",
3
- "version": "0.2.58",
3
+ "version": "0.2.59",
4
4
  "description": "React components for w6w — central API management. Build plugins, apps and integrations on them.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://w6w.io",
@@ -72,7 +72,7 @@
72
72
  "@codemirror/state": "^6.5.0",
73
73
  "@codemirror/view": "^6.35.0",
74
74
  "@uiw/react-codemirror": "^4.23.7",
75
- "@w6w/expr": "^0.1.2",
75
+ "@w6w/expr": "^0.1.3",
76
76
  "@xyflow/react": "^12.3.6",
77
77
  "prism-react-renderer": "^2.4.1",
78
78
  "react-markdown": "^10.1.0",
@@ -33,11 +33,11 @@
33
33
  flex-shrink: 0;
34
34
  white-space: nowrap;
35
35
  }
36
+ /* No frame here: the body holds a DataTable or an EmptyState, and each draws its own
37
+ border. A border on this wrapper painted a second frame hugging the first (human
38
+ report 2026-11-08, Workflows: "double borders around the table"). */
36
39
  .w6w-callable-list-body {
37
- border: 1px solid var(--w6w-border);
38
- border-radius: 8px;
39
- background: var(--w6w-panel);
40
- overflow: hidden;
40
+ min-width: 0;
41
41
  }
42
42
  .w6w-callable-list-main {
43
43
  display: flex;
@@ -56,6 +56,7 @@
56
56
  display: inline-flex;
57
57
  align-items: center;
58
58
  gap: var(--w6w-sp-2);
59
+ white-space: nowrap;
59
60
  }
60
61
  .w6w-callable-list-badge {
61
62
  padding: var(--w6w-sp-0-5) var(--w6w-sp-2);
@@ -150,3 +150,104 @@
150
150
  flex-shrink: 0;
151
151
  color: var(--w6w-accent);
152
152
  }
153
+
154
+ /* AddConnectionModal: the auth's "Where do I get this?" steps — a one-line toggle until opened. */
155
+ .w6w-auth-setup {
156
+ margin: var(--w6w-sp-1) 0 var(--w6w-sp-2);
157
+ font-size: var(--w6w-fs-sm);
158
+ }
159
+ .w6w-auth-setup-title {
160
+ display: inline-flex;
161
+ align-items: center;
162
+ gap: var(--w6w-sp-1);
163
+ color: var(--w6w-accent);
164
+ font-weight: var(--w6w-fw-medium);
165
+ cursor: pointer;
166
+ list-style: none;
167
+ }
168
+ .w6w-auth-setup-title::-webkit-details-marker {
169
+ display: none;
170
+ }
171
+ .w6w-auth-setup-title::before {
172
+ content: "▸";
173
+ font-size: var(--w6w-fs-xs);
174
+ }
175
+ .w6w-auth-setup[open] > .w6w-auth-setup-title::before {
176
+ content: "▾";
177
+ }
178
+ .w6w-auth-setup ol {
179
+ margin: var(--w6w-sp-2) 0 0;
180
+ padding: var(--w6w-sp-3) var(--w6w-sp-4) var(--w6w-sp-3) var(--w6w-sp-8);
181
+ border-radius: var(--w6w-radius);
182
+ background: var(--w6w-panel-2);
183
+ }
184
+ .w6w-auth-setup li + li {
185
+ margin-top: var(--w6w-sp-1);
186
+ }
187
+ .w6w-auth-setup a {
188
+ color: var(--w6w-accent);
189
+ font-weight: var(--w6w-fw-medium);
190
+ white-space: nowrap;
191
+ }
192
+
193
+ /* AuthFieldsForm: a pasted key file, read back as its fields (secret parts masked). */
194
+ .w6w-keyfile {
195
+ display: flex;
196
+ flex-direction: column;
197
+ align-items: flex-start;
198
+ gap: var(--w6w-sp-2);
199
+ padding: var(--w6w-sp-3) var(--w6w-sp-4);
200
+ border: 1px solid var(--w6w-border);
201
+ border-radius: var(--w6w-radius);
202
+ background: var(--w6w-panel-2);
203
+ }
204
+ .w6w-keyfile dl {
205
+ display: grid;
206
+ grid-template-columns: max-content minmax(0, 1fr);
207
+ gap: var(--w6w-sp-1) var(--w6w-sp-4);
208
+ margin: 0;
209
+ width: 100%;
210
+ font-size: var(--w6w-fs-sm);
211
+ }
212
+ .w6w-keyfile dl > div {
213
+ display: contents;
214
+ }
215
+ .w6w-keyfile dt {
216
+ color: var(--w6w-muted);
217
+ }
218
+ .w6w-keyfile dd {
219
+ margin: 0;
220
+ min-width: 0;
221
+ overflow-wrap: anywhere;
222
+ }
223
+ .w6w-keyfile code {
224
+ font-size: var(--w6w-fs-xs);
225
+ }
226
+ .w6w-keyfile-secret {
227
+ color: var(--w6w-muted);
228
+ }
229
+ .w6w-keyfile-paste {
230
+ font-family: var(--w6w-font-mono);
231
+ font-size: var(--w6w-fs-xs);
232
+ }
233
+
234
+ /* AddConnectionModal: the comma-separated scopes line with its Copy button. */
235
+ .w6w-scopes {
236
+ display: flex;
237
+ align-items: center;
238
+ gap: var(--w6w-sp-2);
239
+ min-width: 0;
240
+ }
241
+ .w6w-scopes code {
242
+ flex: 1;
243
+ min-width: 0;
244
+ padding: var(--w6w-sp-1) var(--w6w-sp-2);
245
+ border-radius: var(--w6w-radius);
246
+ background: var(--w6w-panel-2);
247
+ font-size: var(--w6w-fs-xs);
248
+ overflow-wrap: anywhere;
249
+ user-select: all;
250
+ }
251
+ .w6w-keyfile code {
252
+ user-select: all;
253
+ }
@@ -19,3 +19,19 @@
19
19
  .w6w-empty-state-body {
20
20
  color: var(--w6w-muted);
21
21
  }
22
+
23
+ /* StepBuilderModal: "Connect <App> to choose an action" — a quiet inline prompt, not a box. */
24
+ .w6w-empty-state.w6w-sb-connect-gate {
25
+ min-height: 0;
26
+ background: none;
27
+ border: none;
28
+ padding: var(--w6w-sp-3) 0;
29
+ }
30
+ .w6w-sb-connect-gate .w6w-empty-state-inner {
31
+ position: static;
32
+ transform: none;
33
+ flex-direction: row;
34
+ justify-content: flex-start;
35
+ gap: var(--w6w-sp-3);
36
+ text-align: left;
37
+ }
@@ -521,3 +521,25 @@ input.w6w-stepbuilder-search.w6w-stepbuilder-search:focus {
521
521
  right: 0;
522
522
  top: var(--w6w-sp-2);
523
523
  }
524
+
525
+ /* Search-everything results: one scrolling column of titled sections. */
526
+ .w6w-stepbuilder-results {
527
+ display: flex;
528
+ flex-direction: column;
529
+ gap: var(--w6w-sp-4);
530
+ min-height: 0;
531
+ overflow-y: auto;
532
+ }
533
+ .w6w-stepbuilder-results-section {
534
+ display: flex;
535
+ flex-direction: column;
536
+ gap: var(--w6w-sp-2);
537
+ }
538
+ .w6w-stepbuilder-results-section > h4 {
539
+ margin: 0;
540
+ color: var(--w6w-muted);
541
+ font-size: var(--w6w-fs-xs);
542
+ font-weight: var(--w6w-fw-semibold);
543
+ letter-spacing: 0.04em;
544
+ text-transform: uppercase;
545
+ }
package/src/styles.css CHANGED
@@ -3727,6 +3727,30 @@ input.w6w-stepbuilder-search.w6w-stepbuilder-search:focus {
3727
3727
  top: var(--w6w-sp-2);
3728
3728
  }
3729
3729
 
3730
+ /* Search-everything results: one scrolling column of titled sections. */
3731
+ .w6w-stepbuilder-results {
3732
+ display: flex;
3733
+ flex-direction: column;
3734
+ gap: var(--w6w-sp-4);
3735
+ min-height: 0;
3736
+ overflow-y: auto;
3737
+ }
3738
+
3739
+ .w6w-stepbuilder-results-section {
3740
+ display: flex;
3741
+ flex-direction: column;
3742
+ gap: var(--w6w-sp-2);
3743
+ }
3744
+
3745
+ .w6w-stepbuilder-results-section > h4 {
3746
+ margin: 0;
3747
+ color: var(--w6w-muted);
3748
+ font-size: var(--w6w-fs-xs);
3749
+ font-weight: var(--w6w-fw-semibold);
3750
+ letter-spacing: 0.04em;
3751
+ text-transform: uppercase;
3752
+ }
3753
+
3730
3754
  .w6w-stepconfig-header {
3731
3755
  display: flex;
3732
3756
  flex-direction: column;
@@ -6503,11 +6527,11 @@ button.w6w-rel-open:focus-visible strong {
6503
6527
  white-space: nowrap;
6504
6528
  }
6505
6529
 
6530
+ /* No frame here: the body holds a DataTable or an EmptyState, and each draws its own
6531
+ border. A border on this wrapper painted a second frame hugging the first (human
6532
+ report 2026-11-08, Workflows: "double borders around the table"). */
6506
6533
  .w6w-callable-list-body {
6507
- border: 1px solid var(--w6w-border);
6508
- border-radius: 8px;
6509
- background: var(--w6w-panel);
6510
- overflow: hidden;
6534
+ min-width: 0;
6511
6535
  }
6512
6536
 
6513
6537
  .w6w-callable-list-main {
@@ -6529,6 +6553,7 @@ button.w6w-rel-open:focus-visible strong {
6529
6553
  display: inline-flex;
6530
6554
  align-items: center;
6531
6555
  gap: var(--w6w-sp-2);
6556
+ white-space: nowrap;
6532
6557
  }
6533
6558
 
6534
6559
  .w6w-callable-list-badge {
@@ -6806,6 +6831,123 @@ button.w6w-rel-open:focus-visible strong {
6806
6831
  color: var(--w6w-accent);
6807
6832
  }
6808
6833
 
6834
+ /* AddConnectionModal: the auth's "Where do I get this?" steps — a one-line toggle until opened. */
6835
+ .w6w-auth-setup {
6836
+ margin: var(--w6w-sp-1) 0 var(--w6w-sp-2);
6837
+ font-size: var(--w6w-fs-sm);
6838
+ }
6839
+
6840
+ .w6w-auth-setup-title {
6841
+ display: inline-flex;
6842
+ align-items: center;
6843
+ gap: var(--w6w-sp-1);
6844
+ color: var(--w6w-accent);
6845
+ font-weight: var(--w6w-fw-medium);
6846
+ cursor: pointer;
6847
+ list-style: none;
6848
+ }
6849
+
6850
+ .w6w-auth-setup-title::-webkit-details-marker {
6851
+ display: none;
6852
+ }
6853
+
6854
+ .w6w-auth-setup-title::before {
6855
+ content: "▸";
6856
+ font-size: var(--w6w-fs-xs);
6857
+ }
6858
+
6859
+ .w6w-auth-setup[open] > .w6w-auth-setup-title::before {
6860
+ content: "▾";
6861
+ }
6862
+
6863
+ .w6w-auth-setup ol {
6864
+ margin: var(--w6w-sp-2) 0 0;
6865
+ padding: var(--w6w-sp-3) var(--w6w-sp-4) var(--w6w-sp-3) var(--w6w-sp-8);
6866
+ border-radius: var(--w6w-radius);
6867
+ background: var(--w6w-panel-2);
6868
+ }
6869
+
6870
+ .w6w-auth-setup li + li {
6871
+ margin-top: var(--w6w-sp-1);
6872
+ }
6873
+
6874
+ .w6w-auth-setup a {
6875
+ color: var(--w6w-accent);
6876
+ font-weight: var(--w6w-fw-medium);
6877
+ white-space: nowrap;
6878
+ }
6879
+
6880
+ /* AuthFieldsForm: a pasted key file, read back as its fields (secret parts masked). */
6881
+ .w6w-keyfile {
6882
+ display: flex;
6883
+ flex-direction: column;
6884
+ align-items: flex-start;
6885
+ gap: var(--w6w-sp-2);
6886
+ padding: var(--w6w-sp-3) var(--w6w-sp-4);
6887
+ border: 1px solid var(--w6w-border);
6888
+ border-radius: var(--w6w-radius);
6889
+ background: var(--w6w-panel-2);
6890
+ }
6891
+
6892
+ .w6w-keyfile dl {
6893
+ display: grid;
6894
+ grid-template-columns: max-content minmax(0, 1fr);
6895
+ gap: var(--w6w-sp-1) var(--w6w-sp-4);
6896
+ margin: 0;
6897
+ width: 100%;
6898
+ font-size: var(--w6w-fs-sm);
6899
+ }
6900
+
6901
+ .w6w-keyfile dl > div {
6902
+ display: contents;
6903
+ }
6904
+
6905
+ .w6w-keyfile dt {
6906
+ color: var(--w6w-muted);
6907
+ }
6908
+
6909
+ .w6w-keyfile dd {
6910
+ margin: 0;
6911
+ min-width: 0;
6912
+ overflow-wrap: anywhere;
6913
+ }
6914
+
6915
+ .w6w-keyfile code {
6916
+ font-size: var(--w6w-fs-xs);
6917
+ }
6918
+
6919
+ .w6w-keyfile-secret {
6920
+ color: var(--w6w-muted);
6921
+ }
6922
+
6923
+ .w6w-keyfile-paste {
6924
+ font-family: var(--w6w-font-mono);
6925
+ font-size: var(--w6w-fs-xs);
6926
+ }
6927
+
6928
+ /* AddConnectionModal: the comma-separated scopes line with its Copy button. */
6929
+ .w6w-scopes {
6930
+ display: flex;
6931
+ align-items: center;
6932
+ gap: var(--w6w-sp-2);
6933
+ min-width: 0;
6934
+ }
6935
+
6936
+ .w6w-scopes code {
6937
+ flex: 1;
6938
+ min-width: 0;
6939
+ padding: var(--w6w-sp-1) var(--w6w-sp-2);
6940
+ border-radius: var(--w6w-radius);
6941
+ background: var(--w6w-panel-2);
6942
+ font-size: var(--w6w-fs-xs);
6943
+ overflow-wrap: anywhere;
6944
+ user-select: all;
6945
+ }
6946
+
6947
+ .w6w-keyfile code {
6948
+ user-select: all;
6949
+ }
6950
+
6809
6951
  /* Data stores (F-2): DataStoreList, ColumnsEditor, CsvPanel and the data-grid/entry rules ported from Studio's Data store detail page. */
6810
6952
  .w6w-data-store-list {
6811
6953
  display: flex;
@@ -7006,6 +7148,23 @@ button.w6w-rel-open:focus-visible strong {
7006
7148
  color: var(--w6w-muted);
7007
7149
  }
7008
7150
 
7151
+ /* StepBuilderModal: "Connect <App> to choose an action" — a quiet inline prompt, not a box. */
7152
+ .w6w-empty-state.w6w-sb-connect-gate {
7153
+ min-height: 0;
7154
+ background: none;
7155
+ border: none;
7156
+ padding: var(--w6w-sp-3) 0;
7157
+ }
7158
+
7159
+ .w6w-sb-connect-gate .w6w-empty-state-inner {
7160
+ position: static;
7161
+ transform: none;
7162
+ flex-direction: row;
7163
+ justify-content: flex-start;
7164
+ gap: var(--w6w-sp-3);
7165
+ text-align: left;
7166
+ }
7167
+
7009
7168
  .w6w-canvas-layer {
7010
7169
  position: absolute;
7011
7170
  top: 0;