@w6w/ui 0.2.58 → 0.2.60

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.
@@ -235,6 +235,18 @@ export interface W6WApi {
235
235
  name: string;
236
236
  kind: string;
237
237
  }[]>;
238
+ /**
239
+ * OPTIONAL: the agents the signed-in user can see, for the `agent` step-param
240
+ * picker (`@w6w/model · agent`). Absent, the param renders as a plain text
241
+ * input (an `agt_…` id) and this is never called. Archived agents are not
242
+ * listed by the host. `href`, when given, opens the agent in the Agents
243
+ * dashboard.
244
+ */
245
+ listAgents?(): Promise<{
246
+ id: string;
247
+ name: string;
248
+ href?: string;
249
+ }[]>;
238
250
  /**
239
251
  * OPTIONAL: ONE page of a data store's entries, for the `data-store-key`
240
252
  * step-param picker (`@w6w/store` get/set/delete/increment). Absent, the key
@@ -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.60",
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
+ }
@@ -249,12 +249,28 @@
249
249
  flex-wrap: wrap;
250
250
  gap: var(--w6w-sp-1);
251
251
  }
252
+ /* A chip is a button: it picks that iteration for the body steps below (input and output open). */
252
253
  .w6w-execution-log-iteration-chip {
253
254
  padding: var(--w6w-sp-0-5) var(--w6w-sp-2);
254
255
  border: 1px solid var(--w6w-border);
255
256
  border-radius: 999px;
257
+ background: transparent;
258
+ color: inherit;
259
+ font: inherit;
256
260
  font-size: var(--w6w-fs-xs);
257
261
  white-space: nowrap;
262
+ cursor: pointer;
263
+ }
264
+ .w6w-execution-log-iteration-chip:hover {
265
+ background: var(--w6w-panel-2);
266
+ }
267
+ .w6w-execution-log-iteration-chip[aria-pressed="true"] {
268
+ box-shadow: 0 0 0 2px currentColor;
269
+ font-weight: var(--w6w-fw-semibold);
270
+ }
271
+ .w6w-execution-log-iteration-chip:focus-visible {
272
+ outline: 2px solid var(--w6w-accent);
273
+ outline-offset: 2px;
258
274
  }
259
275
  .w6w-execution-log-iteration-chip-succeeded {
260
276
  border-color: var(--w6w-success);
@@ -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;
@@ -5470,12 +5494,31 @@ input.w6w-stepbuilder-search.w6w-stepbuilder-search:focus {
5470
5494
  gap: var(--w6w-sp-1);
5471
5495
  }
5472
5496
 
5497
+ /* A chip is a button: it picks that iteration for the body steps below (input and output open). */
5473
5498
  .w6w-execution-log-iteration-chip {
5474
5499
  padding: var(--w6w-sp-0-5) var(--w6w-sp-2);
5475
5500
  border: 1px solid var(--w6w-border);
5476
5501
  border-radius: 999px;
5502
+ background: transparent;
5503
+ color: inherit;
5504
+ font: inherit;
5477
5505
  font-size: var(--w6w-fs-xs);
5478
5506
  white-space: nowrap;
5507
+ cursor: pointer;
5508
+ }
5509
+
5510
+ .w6w-execution-log-iteration-chip:hover {
5511
+ background: var(--w6w-panel-2);
5512
+ }
5513
+
5514
+ .w6w-execution-log-iteration-chip[aria-pressed=true] {
5515
+ box-shadow: 0 0 0 2px currentColor;
5516
+ font-weight: var(--w6w-fw-semibold);
5517
+ }
5518
+
5519
+ .w6w-execution-log-iteration-chip:focus-visible {
5520
+ outline: 2px solid var(--w6w-accent);
5521
+ outline-offset: 2px;
5479
5522
  }
5480
5523
 
5481
5524
  .w6w-execution-log-iteration-chip-succeeded {
@@ -6503,11 +6546,11 @@ button.w6w-rel-open:focus-visible strong {
6503
6546
  white-space: nowrap;
6504
6547
  }
6505
6548
 
6549
+ /* No frame here: the body holds a DataTable or an EmptyState, and each draws its own
6550
+ border. A border on this wrapper painted a second frame hugging the first (human
6551
+ report 2026-11-08, Workflows: "double borders around the table"). */
6506
6552
  .w6w-callable-list-body {
6507
- border: 1px solid var(--w6w-border);
6508
- border-radius: 8px;
6509
- background: var(--w6w-panel);
6510
- overflow: hidden;
6553
+ min-width: 0;
6511
6554
  }
6512
6555
 
6513
6556
  .w6w-callable-list-main {
@@ -6529,6 +6572,7 @@ button.w6w-rel-open:focus-visible strong {
6529
6572
  display: inline-flex;
6530
6573
  align-items: center;
6531
6574
  gap: var(--w6w-sp-2);
6575
+ white-space: nowrap;
6532
6576
  }
6533
6577
 
6534
6578
  .w6w-callable-list-badge {
@@ -6806,6 +6850,123 @@ button.w6w-rel-open:focus-visible strong {
6806
6850
  color: var(--w6w-accent);
6807
6851
  }
6808
6852
 
6853
+ /* AddConnectionModal: the auth's "Where do I get this?" steps — a one-line toggle until opened. */
6854
+ .w6w-auth-setup {
6855
+ margin: var(--w6w-sp-1) 0 var(--w6w-sp-2);
6856
+ font-size: var(--w6w-fs-sm);
6857
+ }
6858
+
6859
+ .w6w-auth-setup-title {
6860
+ display: inline-flex;
6861
+ align-items: center;
6862
+ gap: var(--w6w-sp-1);
6863
+ color: var(--w6w-accent);
6864
+ font-weight: var(--w6w-fw-medium);
6865
+ cursor: pointer;
6866
+ list-style: none;
6867
+ }
6868
+
6869
+ .w6w-auth-setup-title::-webkit-details-marker {
6870
+ display: none;
6871
+ }
6872
+
6873
+ .w6w-auth-setup-title::before {
6874
+ content: "▸";
6875
+ font-size: var(--w6w-fs-xs);
6876
+ }
6877
+
6878
+ .w6w-auth-setup[open] > .w6w-auth-setup-title::before {
6879
+ content: "▾";
6880
+ }
6881
+
6882
+ .w6w-auth-setup ol {
6883
+ margin: var(--w6w-sp-2) 0 0;
6884
+ padding: var(--w6w-sp-3) var(--w6w-sp-4) var(--w6w-sp-3) var(--w6w-sp-8);
6885
+ border-radius: var(--w6w-radius);
6886
+ background: var(--w6w-panel-2);
6887
+ }
6888
+
6889
+ .w6w-auth-setup li + li {
6890
+ margin-top: var(--w6w-sp-1);
6891
+ }
6892
+
6893
+ .w6w-auth-setup a {
6894
+ color: var(--w6w-accent);
6895
+ font-weight: var(--w6w-fw-medium);
6896
+ white-space: nowrap;
6897
+ }
6898
+
6899
+ /* AuthFieldsForm: a pasted key file, read back as its fields (secret parts masked). */
6900
+ .w6w-keyfile {
6901
+ display: flex;
6902
+ flex-direction: column;
6903
+ align-items: flex-start;
6904
+ gap: var(--w6w-sp-2);
6905
+ padding: var(--w6w-sp-3) var(--w6w-sp-4);
6906
+ border: 1px solid var(--w6w-border);
6907
+ border-radius: var(--w6w-radius);
6908
+ background: var(--w6w-panel-2);
6909
+ }
6910
+
6911
+ .w6w-keyfile dl {
6912
+ display: grid;
6913
+ grid-template-columns: max-content minmax(0, 1fr);
6914
+ gap: var(--w6w-sp-1) var(--w6w-sp-4);
6915
+ margin: 0;
6916
+ width: 100%;
6917
+ font-size: var(--w6w-fs-sm);
6918
+ }
6919
+
6920
+ .w6w-keyfile dl > div {
6921
+ display: contents;
6922
+ }
6923
+
6924
+ .w6w-keyfile dt {
6925
+ color: var(--w6w-muted);
6926
+ }
6927
+
6928
+ .w6w-keyfile dd {
6929
+ margin: 0;
6930
+ min-width: 0;
6931
+ overflow-wrap: anywhere;
6932
+ }
6933
+
6934
+ .w6w-keyfile code {
6935
+ font-size: var(--w6w-fs-xs);
6936
+ }
6937
+
6938
+ .w6w-keyfile-secret {
6939
+ color: var(--w6w-muted);
6940
+ }
6941
+
6942
+ .w6w-keyfile-paste {
6943
+ font-family: var(--w6w-font-mono);
6944
+ font-size: var(--w6w-fs-xs);
6945
+ }
6946
+
6947
+ /* AddConnectionModal: the comma-separated scopes line with its Copy button. */
6948
+ .w6w-scopes {
6949
+ display: flex;
6950
+ align-items: center;
6951
+ gap: var(--w6w-sp-2);
6952
+ min-width: 0;
6953
+ }
6954
+
6955
+ .w6w-scopes code {
6956
+ flex: 1;
6957
+ min-width: 0;
6958
+ padding: var(--w6w-sp-1) var(--w6w-sp-2);
6959
+ border-radius: var(--w6w-radius);
6960
+ background: var(--w6w-panel-2);
6961
+ font-size: var(--w6w-fs-xs);
6962
+ overflow-wrap: anywhere;
6963
+ user-select: all;
6964
+ }
6965
+
6966
+ .w6w-keyfile code {
6967
+ user-select: all;
6968
+ }
6969
+
6809
6970
  /* Data stores (F-2): DataStoreList, ColumnsEditor, CsvPanel and the data-grid/entry rules ported from Studio's Data store detail page. */
6810
6971
  .w6w-data-store-list {
6811
6972
  display: flex;
@@ -7006,6 +7167,23 @@ button.w6w-rel-open:focus-visible strong {
7006
7167
  color: var(--w6w-muted);
7007
7168
  }
7008
7169
 
7170
+ /* StepBuilderModal: "Connect <App> to choose an action" — a quiet inline prompt, not a box. */
7171
+ .w6w-empty-state.w6w-sb-connect-gate {
7172
+ min-height: 0;
7173
+ background: none;
7174
+ border: none;
7175
+ padding: var(--w6w-sp-3) 0;
7176
+ }
7177
+
7178
+ .w6w-sb-connect-gate .w6w-empty-state-inner {
7179
+ position: static;
7180
+ transform: none;
7181
+ flex-direction: row;
7182
+ justify-content: flex-start;
7183
+ gap: var(--w6w-sp-3);
7184
+ text-align: left;
7185
+ }
7186
+
7009
7187
  .w6w-canvas-layer {
7010
7188
  position: absolute;
7011
7189
  top: 0;