@w6w/ui 0.2.57 → 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.
- package/CHANGELOG.md +19 -0
- package/dist/AddConnectionModal.d.ts +6 -0
- package/dist/StepBuilderModal.d.ts +17 -4
- package/dist/TriggerFillForm.d.ts +4 -3
- package/dist/WorkflowConnections.d.ts +7 -1
- package/dist/WorkflowFlowEditor.d.ts +6 -0
- package/dist/canvas-context-menu.d.ts +8 -3
- package/dist/components/AuthFieldsForm.d.ts +6 -0
- package/dist/components/Combobox.d.ts +9 -1
- package/dist/components/CredentialPicker.d.ts +1 -1
- package/dist/components/ExpressionOptions.d.ts +2 -0
- package/dist/condition-editor.d.ts +3 -1
- package/dist/connection-app-meta-CNEwLsL3.cjs +24 -0
- package/dist/connection-app-meta-CNEwLsL3.cjs.map +1 -0
- package/dist/connection-app-meta-Cl6mUAMF.js +13537 -0
- package/dist/connection-app-meta-Cl6mUAMF.js.map +1 -0
- package/dist/flow-history.d.ts +8 -0
- package/dist/flow.cjs +5 -5
- package/dist/flow.cjs.map +1 -1
- package/dist/flow.mjs +2425 -2618
- package/dist/flow.mjs.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +99 -102
- package/dist/index.mjs.map +1 -1
- package/dist/provider.d.ts +6 -0
- package/dist/state-shape.d.ts +13 -0
- package/dist/step-preview-state.d.ts +10 -1
- package/dist/step-settings-controls.d.ts +20 -0
- package/dist/types.d.ts +13 -0
- package/package.json +4 -2
- package/src/code.css +2 -1
- package/src/styles/_box-reset.scss +22 -0
- package/src/styles/_callable-list.scss +5 -4
- package/src/styles/_canvas.scss +1 -4
- package/src/styles/_chips.scss +0 -1
- package/src/styles/_connections.scss +101 -0
- package/src/styles/_copyable.scss +3 -1
- package/src/styles/_data-stores.scss +15 -5
- package/src/styles/_data-table.scss +6 -0
- package/src/styles/_data-vars.scss +10 -0
- package/src/styles/_empty-state.scss +16 -0
- package/src/styles/_execution-log.scss +3 -4
- package/src/styles/_fields.scss +57 -25
- package/src/styles/_flow.scss +11 -0
- package/src/styles/_fx.scss +14 -47
- package/src/styles/_host-guard.scss +100 -0
- package/src/styles/_step-builder.scss +26 -2
- package/src/styles/_step-config.scss +4 -5
- package/src/styles.css +335 -99
- package/src/styles.scss +2 -0
- package/dist/connection-app-meta-BeYDm-cs.cjs +0 -24
- package/dist/connection-app-meta-BeYDm-cs.cjs.map +0 -1
- package/dist/connection-app-meta-aURFNTx_.js +0 -12731
- package/dist/connection-app-meta-aURFNTx_.js.map +0 -1
package/dist/provider.d.ts
CHANGED
|
@@ -85,6 +85,12 @@ export interface StepStartState {
|
|
|
85
85
|
item?: unknown;
|
|
86
86
|
index?: number;
|
|
87
87
|
};
|
|
88
|
+
/**
|
|
89
|
+
* What upstream writers ("Write to state") put in the run state, folded from their saved tests
|
|
90
|
+
* (`computeStateShape`'s `written`) → `state.*`, laid over the project vars and the saved
|
|
91
|
+
* starting data. Never `var.*`: project variables stay host-owned.
|
|
92
|
+
*/
|
|
93
|
+
state?: Record<string, unknown>;
|
|
88
94
|
}
|
|
89
95
|
/**
|
|
90
96
|
* A caller-supplied override merged into an app action's outbound request at
|
package/dist/state-shape.d.ts
CHANGED
|
@@ -12,6 +12,13 @@ export interface StateShape {
|
|
|
12
12
|
* (test outputs, the app's `sample`, starting data, variable defaults) — never a skeleton.
|
|
13
13
|
*/
|
|
14
14
|
sampleValues: Record<string, unknown>;
|
|
15
|
+
/**
|
|
16
|
+
* Only what the upstream writers put in state, from REAL outputs (their saved or fresh tests),
|
|
17
|
+
* folded in run order over an empty tree — the starting data and variables are the server's to
|
|
18
|
+
* seed. A step Test sends it as its start state's `state`, so `{{ state.* }}` resolves the way
|
|
19
|
+
* the run will. `undefined` when no writer on a path into the node has a real output yet.
|
|
20
|
+
*/
|
|
21
|
+
written?: Record<string, unknown>;
|
|
15
22
|
}
|
|
16
23
|
export interface StateShapeInput {
|
|
17
24
|
/** The node whose incoming state this is (`null` → empty shape). */
|
|
@@ -24,6 +31,12 @@ export interface StateShapeInput {
|
|
|
24
31
|
shapes?: StepShapeContext;
|
|
25
32
|
/** Each node's REAL output (fresh test, else persisted), for preview values. */
|
|
26
33
|
previewOutputs?: Record<string, unknown>;
|
|
34
|
+
/**
|
|
35
|
+
* The anchor is a draft not wired in yet (the add-step builder before its incoming edge):
|
|
36
|
+
* every other node counts as upstream, the same rule the picker's step list follows
|
|
37
|
+
* (`upstreamStateSources`), so the State section is not empty while the node floats.
|
|
38
|
+
*/
|
|
39
|
+
floating?: boolean;
|
|
27
40
|
}
|
|
28
41
|
/**
|
|
29
42
|
* The engine's run order over `nodes`/`edges`: Kahn's, the ready queue seeded in declared node
|
|
@@ -125,6 +125,13 @@ export declare function foreachTestSample(test: StepTest | null | undefined): un
|
|
|
125
125
|
*
|
|
126
126
|
* With no specific step (shouldn't happen for a field edit) every node is offered.
|
|
127
127
|
*/
|
|
128
|
+
/**
|
|
129
|
+
* True when the add-step builder's draft has no place in the graph yet — no incoming edge and
|
|
130
|
+
* not inside a loop body — so nothing is its ancestor and every node counts as upstream. The one
|
|
131
|
+
* rule both {@link upstreamStateSources} (the step list) and the State section
|
|
132
|
+
* (`computeStateShape`'s `floating`) follow.
|
|
133
|
+
*/
|
|
134
|
+
export declare function isFloatingDraft(editingId: string | null, draftId: string | null | undefined, nodes: StepNode[], edges: Edge[]): boolean;
|
|
128
135
|
export declare function upstreamStateSources(editingId: string | null, nodes: StepNode[], edges: Edge[], shapes?: StepShapeContext, draftId?: string | null): {
|
|
129
136
|
steps: ExpressionStepSource[];
|
|
130
137
|
hasTrigger: boolean;
|
|
@@ -196,7 +203,9 @@ export declare function fetchSeedSources(listStepTests: (stepId: string) => Prom
|
|
|
196
203
|
export declare function startStateFromSeeds(seeds: SeedSource[], loop?: {
|
|
197
204
|
item?: unknown;
|
|
198
205
|
index?: number;
|
|
199
|
-
}
|
|
206
|
+
},
|
|
207
|
+
/** Upstream state writes (`StateShape.written`) → the start state's `state`. */
|
|
208
|
+
written?: Record<string, unknown>): StepStartState | undefined;
|
|
200
209
|
/** The default `{ item, index }` a loop-body Test is seeded with: the sample item, index 0. */
|
|
201
210
|
export declare function loopSeedFromSource(loop: ExpressionLoopSource | undefined): {
|
|
202
211
|
item?: unknown;
|
|
@@ -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
|
@@ -283,6 +283,14 @@ export interface ParamConfig {
|
|
|
283
283
|
allowCustom?: boolean;
|
|
284
284
|
/** Multiselect storage format. Defaults to an array; CSV preserves string-based API inputs. */
|
|
285
285
|
valueFormat?: "array" | "csv";
|
|
286
|
+
/**
|
|
287
|
+
* Object-item array cells only: render this cell as the widget for the type held by the
|
|
288
|
+
* sibling field with this key in the same row (`boolean` → empty/true/false dropdown,
|
|
289
|
+
* `json` → JSON editor with a full-size view, `number` → number input, else text). The
|
|
290
|
+
* stored value stays text either way; a value the new type cannot hold is cleared when
|
|
291
|
+
* the sibling changes. E.g. a trigger field's `default` follows its `type`.
|
|
292
|
+
*/
|
|
293
|
+
valueTypeFrom?: string;
|
|
286
294
|
}
|
|
287
295
|
/** Summary of an action an app exposes, as returned by GET /apps/:id. */
|
|
288
296
|
export interface ActionDef {
|
|
@@ -441,6 +449,11 @@ export interface AuthDef {
|
|
|
441
449
|
description?: string;
|
|
442
450
|
connectionLabel?: string;
|
|
443
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
|
+
}[];
|
|
444
457
|
/** Present when `type === "serviceAccount"`: what credential it accepts and how it binds. */
|
|
445
458
|
serviceAccount?: ServiceAccountConfig;
|
|
446
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.
|
|
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.
|
|
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",
|
|
@@ -100,6 +100,7 @@
|
|
|
100
100
|
"build": "pnpm build:css && tsc -b && vite build",
|
|
101
101
|
"build:css": "node scripts/build-css.mjs",
|
|
102
102
|
"check:css": "node scripts/build-css.mjs --check",
|
|
103
|
+
"check:guard": "node scripts/check-guard.mjs",
|
|
103
104
|
"typecheck": "tsc -b --noEmit",
|
|
104
105
|
"test": "node --max-old-space-size=2048 --conditions=w6w-source --import ./src/test-jsx-loader.mjs --test --test-concurrency=4 --test-timeout=120000 src/__tests__/*.test.ts src/components/__tests__/*.test.ts",
|
|
105
106
|
"test:picker-layout": "bash test/picker-layout/run.sh",
|
|
@@ -110,6 +111,7 @@
|
|
|
110
111
|
"test:action-test-form": "bash test/action-test-form/run.sh",
|
|
111
112
|
"test:host-isolation": "bash test/host-isolation/run.sh",
|
|
112
113
|
"test:copyable": "bash test/copyable/run.sh",
|
|
114
|
+
"test:host-cascade": "bash test/host-cascade/run.sh",
|
|
113
115
|
"test:code-editor-fill": "bash test/code-editor-fill/run.sh",
|
|
114
116
|
"test:pack-smoke": "bash test/pack-smoke/run.sh",
|
|
115
117
|
"storybook": "storybook dev -p 6006 --no-open",
|
package/src/code.css
CHANGED
|
@@ -327,7 +327,8 @@
|
|
|
327
327
|
.w6w-copyable input[type=password],
|
|
328
328
|
.w6w-copyable input[type=number],
|
|
329
329
|
.w6w-copyable select,
|
|
330
|
-
.w6w-copyable textarea
|
|
330
|
+
.w6w-copyable textarea,
|
|
331
|
+
.w6w-copyable.w6w-copyable textarea {
|
|
331
332
|
border: none;
|
|
332
333
|
background: transparent;
|
|
333
334
|
border-radius: 0;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// Box-model reset, scoped to the library: every element that carries a `w6w-`
|
|
2
|
+
// class token, and everything inside one, is `border-box` whatever the host
|
|
3
|
+
// page's `box-sizing` is (a bare content-box host made every boxed field 10px
|
|
4
|
+
// taller than the library drew it). It replaces seven per-component
|
|
5
|
+
// `box-sizing: border-box` declarations. Each selector is (0,1,0): ABOVE a host
|
|
6
|
+
// `*` (0,0,0) and tied with — so, by source order, below — any host class rule that
|
|
7
|
+
// sets box-sizing on purpose. No `:where()` here: that would drop to (0,0,0) and
|
|
8
|
+
// TIE a host `*`, which loads later and wins.
|
|
9
|
+
//
|
|
10
|
+
// A separate partial from the host guard so the guard-off A/B in the harness
|
|
11
|
+
// strips only the guard.
|
|
12
|
+
//
|
|
13
|
+
// `scripts/check-guard.mjs` parses the literal begin/end comments below.
|
|
14
|
+
|
|
15
|
+
/* w6w-box-reset:begin */
|
|
16
|
+
[class^="w6w-"],
|
|
17
|
+
[class*=" w6w-"],
|
|
18
|
+
[class^="w6w-"] *,
|
|
19
|
+
[class*=" w6w-"] * {
|
|
20
|
+
box-sizing: border-box;
|
|
21
|
+
}
|
|
22
|
+
/* w6w-box-reset:end */
|
|
@@ -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
|
-
|
|
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);
|
package/src/styles/_canvas.scss
CHANGED
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
.w6w-canvas-section,
|
|
11
11
|
.w6w-canvas-note {
|
|
12
12
|
position: absolute;
|
|
13
|
-
box-sizing: border-box;
|
|
14
13
|
border: 1px solid var(--w6w-canvas-color, var(--w6w-border));
|
|
15
14
|
border-radius: var(--w6w-radius, 6px);
|
|
16
15
|
background: color-mix(in srgb, var(--w6w-canvas-color, var(--w6w-panel)) 14%, transparent);
|
|
@@ -54,7 +53,6 @@
|
|
|
54
53
|
background: color-mix(in srgb, var(--w6w-canvas-color, var(--w6w-panel)) 18%, transparent);
|
|
55
54
|
}
|
|
56
55
|
.w6w-canvas-note-body {
|
|
57
|
-
box-sizing: border-box;
|
|
58
56
|
height: 100%;
|
|
59
57
|
overflow: auto;
|
|
60
58
|
padding: var(--w6w-sp-3) var(--w6w-sp-3);
|
|
@@ -242,7 +240,7 @@
|
|
|
242
240
|
.w6w-note-swatch-custom {
|
|
243
241
|
overflow: hidden;
|
|
244
242
|
background: conic-gradient(#f87171, #facc15, #4ade80, #60a5fa, #a78bfa, #f87171);
|
|
245
|
-
input {
|
|
243
|
+
input[type="color"] {
|
|
246
244
|
position: absolute;
|
|
247
245
|
inset: 0;
|
|
248
246
|
width: 100%;
|
|
@@ -345,7 +343,6 @@
|
|
|
345
343
|
}
|
|
346
344
|
.w6w-section-draw-rect {
|
|
347
345
|
position: absolute;
|
|
348
|
-
box-sizing: border-box;
|
|
349
346
|
border: 2px dashed var(--w6w-accent);
|
|
350
347
|
border-radius: var(--w6w-radius, 6px);
|
|
351
348
|
background: color-mix(in srgb, var(--w6w-accent) 10%, transparent);
|
package/src/styles/_chips.scss
CHANGED
|
@@ -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
|
+
}
|
|
@@ -49,7 +49,9 @@
|
|
|
49
49
|
.w6w-copyable input[type="password"],
|
|
50
50
|
.w6w-copyable input[type="number"],
|
|
51
51
|
.w6w-copyable select,
|
|
52
|
-
.w6w-copyable textarea
|
|
52
|
+
.w6w-copyable textarea,
|
|
53
|
+
/* (0,2,1): see _fx.scss — the guard would out-rank a bare (0,1,1) textarea rule. */
|
|
54
|
+
.w6w-copyable.w6w-copyable textarea {
|
|
53
55
|
border: none;
|
|
54
56
|
background: transparent;
|
|
55
57
|
border-radius: 0;
|
|
@@ -31,20 +31,30 @@
|
|
|
31
31
|
flex-direction: column;
|
|
32
32
|
gap: var(--w6w-sp-2);
|
|
33
33
|
}
|
|
34
|
+
/* A grid, not a wrapping flex row, so the header row's labels sit over their
|
|
35
|
+
columns: name | type | required | default | remove. */
|
|
34
36
|
.w6w-data-columns-row {
|
|
35
|
-
display:
|
|
36
|
-
|
|
37
|
+
display: grid;
|
|
38
|
+
grid-template-columns: minmax(0, 1fr) minmax(0, 7rem) auto minmax(0, 1fr) auto;
|
|
37
39
|
align-items: center;
|
|
38
40
|
gap: var(--w6w-sp-2);
|
|
39
41
|
}
|
|
42
|
+
.w6w-data-columns-row > * {
|
|
43
|
+
min-width: 0;
|
|
44
|
+
}
|
|
45
|
+
.w6w-data-columns-colhead {
|
|
46
|
+
font-size: var(--w6w-fs-xs);
|
|
47
|
+
font-weight: 500;
|
|
48
|
+
color: var(--w6w-muted);
|
|
49
|
+
}
|
|
50
|
+
.w6w-data-columns-error {
|
|
51
|
+
grid-column: 1 / -1;
|
|
52
|
+
}
|
|
40
53
|
.w6w-data-columns-required {
|
|
41
54
|
display: flex;
|
|
42
55
|
align-items: center;
|
|
43
56
|
gap: var(--w6w-sp-1);
|
|
44
57
|
}
|
|
45
|
-
.w6w-data-columns-error {
|
|
46
|
-
flex-basis: 100%;
|
|
47
|
-
}
|
|
48
58
|
.w6w-data-entries-toolbar {
|
|
49
59
|
display: flex;
|
|
50
60
|
align-items: center;
|
|
@@ -29,6 +29,12 @@
|
|
|
29
29
|
.w6w-data-table td:last-child {
|
|
30
30
|
border-right: 0;
|
|
31
31
|
}
|
|
32
|
+
/* Row separators only (`className="w6w-data-table-rows"`): a list whose second column is just a
|
|
33
|
+
row's controls (Variables, Secrets, Constants) reads as one item per row, not a grid. */
|
|
34
|
+
.w6w-data-table.w6w-data-table-rows th,
|
|
35
|
+
.w6w-data-table.w6w-data-table-rows td {
|
|
36
|
+
border-right: 0;
|
|
37
|
+
}
|
|
32
38
|
.w6w-data-table tbody tr:last-child > td {
|
|
33
39
|
border-bottom: 0;
|
|
34
40
|
}
|
|
@@ -8,6 +8,16 @@
|
|
|
8
8
|
.w6w-datavar-row > * {
|
|
9
9
|
min-width: 0;
|
|
10
10
|
}
|
|
11
|
+
/* Column headers: same grid as the rows, so each label sits over its column. */
|
|
12
|
+
.w6w-datavar-head {
|
|
13
|
+
display: grid;
|
|
14
|
+
grid-template-columns: minmax(0, 1fr) 110px minmax(0, 1fr) auto;
|
|
15
|
+
gap: var(--w6w-sp-1-5);
|
|
16
|
+
align-items: end;
|
|
17
|
+
font-size: var(--w6w-fs-xs);
|
|
18
|
+
font-weight: 500;
|
|
19
|
+
color: var(--w6w-muted);
|
|
20
|
+
}
|
|
11
21
|
.w6w-datavar-row input,
|
|
12
22
|
.w6w-datavar-row select {
|
|
13
23
|
background: var(--w6w-panel-2);
|
|
@@ -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
|
+
}
|
|
@@ -105,11 +105,10 @@
|
|
|
105
105
|
width: 100%;
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
-
/* `width: 100%` plus padding and a border overflows the parent under
|
|
109
|
-
|
|
110
|
-
|
|
108
|
+
/* `width: 100%` plus padding and a border overflows the parent under content-box
|
|
109
|
+
sizing; `_box-reset.scss` makes every `w6w-` element border-box, so it needs no
|
|
110
|
+
declaration of its own. */
|
|
111
111
|
.w6w-execution-log-empty {
|
|
112
|
-
box-sizing: border-box;
|
|
113
112
|
width: 100%;
|
|
114
113
|
padding: var(--w6w-sp-4);
|
|
115
114
|
border: 1px dashed var(--w6w-border);
|
package/src/styles/_fields.scss
CHANGED
|
@@ -85,46 +85,32 @@ select optgroup {
|
|
|
85
85
|
flex: 1 1 120px;
|
|
86
86
|
}
|
|
87
87
|
/* An object-item array row's boolean cell: `<label><checkbox><span>`. It is a
|
|
88
|
-
`<label>`, so
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
undeclared. `.w6w-array-cells` is a flex row at the default `align-items:
|
|
93
|
-
stretch`, so a bottom margin does not translate this cell, it SHORTENS its
|
|
94
|
-
stretched box — and because this block centres its own contents, the checkbox
|
|
95
|
-
and its caption then ride upward off the row's centre line. Measured before
|
|
96
|
-
this declaration existed, in [ui+studio]: checkbox cy 792 against the sibling
|
|
97
|
-
text cell's 799 — 7.0px out, while a ui-only render showed 0.0px. */
|
|
88
|
+
`<label>`, so a host page's unscoped `label { margin-bottom }` would shorten
|
|
89
|
+
its stretched box inside the `align-items: stretch` `.w6w-array-cells` row and
|
|
90
|
+
ride the checkbox off the row's centre line; `_host-guard.scss` reverts that
|
|
91
|
+
margin for every `w6w-` label, so this block declares none. */
|
|
98
92
|
.w6w-array-check {
|
|
99
93
|
display: inline-flex;
|
|
100
94
|
align-items: center;
|
|
101
95
|
gap: var(--w6w-sp-1-5);
|
|
102
96
|
flex: 0 0 auto;
|
|
103
|
-
margin: 0;
|
|
104
97
|
font-size: 13px;
|
|
105
98
|
color: var(--w6w-text);
|
|
106
99
|
white-space: nowrap;
|
|
107
100
|
cursor: pointer;
|
|
108
101
|
}
|
|
109
|
-
/*
|
|
110
|
-
|
|
111
|
-
(
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
affected. */
|
|
102
|
+
/* The checkbox's own `margin: 0` (a library choice: the UA's 3px/4px would
|
|
103
|
+
misalign it). `> input[type="checkbox"]` is (0,2,1): it TIES the guard's checkbox arm
|
|
104
|
+
(0,2,1, `margin-right: revert`) and wins only by loading later — do not
|
|
105
|
+
simplify it to `.w6w-array-check input` (0,1,1), which the guard would
|
|
106
|
+
silently out-rank. A host `input[type="checkbox"] { margin-right }` is only
|
|
107
|
+
(0,1,1). */
|
|
116
108
|
.w6w-array-check > input[type="checkbox"] {
|
|
117
109
|
margin: 0;
|
|
118
110
|
}
|
|
119
111
|
.w6w-field .w6w-array-input {
|
|
120
112
|
flex: 1;
|
|
121
113
|
min-width: 0;
|
|
122
|
-
/* Load-bearing, same class as `.w6w-array-check` above: a host
|
|
123
|
-
`input[type="text"] { margin-top: 4px }` otherwise lands here and drops this
|
|
124
|
-
cell 2px below its own row's checkbox cell. Measured in [ui+studio]:
|
|
125
|
-
checkbox cy 797 against this input's 799. This selector is (0,2,0) and beats
|
|
126
|
-
the host's (0,1,1). */
|
|
127
|
-
margin: 0;
|
|
128
114
|
background: var(--w6w-panel-2);
|
|
129
115
|
border: 1px solid var(--w6w-border);
|
|
130
116
|
border-radius: 8px;
|
|
@@ -133,6 +119,14 @@ select optgroup {
|
|
|
133
119
|
font-size: var(--w6w-fs-sm);
|
|
134
120
|
font-family: inherit;
|
|
135
121
|
}
|
|
122
|
+
/* A JSON cell: the one-line preview takes the cell, the open-editor button sits after it. */
|
|
123
|
+
.w6w-array-json {
|
|
124
|
+
display: flex;
|
|
125
|
+
align-items: center;
|
|
126
|
+
gap: var(--w6w-sp-1);
|
|
127
|
+
flex: 1;
|
|
128
|
+
min-width: 0;
|
|
129
|
+
}
|
|
136
130
|
.w6w-field .w6w-array-input:focus {
|
|
137
131
|
outline: none;
|
|
138
132
|
border-color: var(--w6w-accent);
|
|
@@ -159,6 +153,45 @@ select optgroup {
|
|
|
159
153
|
.w6w-array-add {
|
|
160
154
|
margin-top: var(--w6w-sp-0-5);
|
|
161
155
|
}
|
|
156
|
+
/* Column headers over an object-item array. Each header cell takes the same
|
|
157
|
+
flex as the input below it (`.w6w-field .w6w-array-input` → `flex: 1`), and
|
|
158
|
+
checkbox / × columns are invisible copies of the real cells, so headers line
|
|
159
|
+
up with their columns without a fixed grid. */
|
|
160
|
+
.w6w-array-head {
|
|
161
|
+
display: flex;
|
|
162
|
+
align-items: center;
|
|
163
|
+
gap: var(--w6w-sp-1-5);
|
|
164
|
+
width: 100%;
|
|
165
|
+
margin-bottom: calc(-1 * var(--w6w-sp-1));
|
|
166
|
+
}
|
|
167
|
+
.w6w-array-head-cells {
|
|
168
|
+
display: flex;
|
|
169
|
+
flex-wrap: wrap;
|
|
170
|
+
gap: var(--w6w-sp-1-5);
|
|
171
|
+
flex: 1;
|
|
172
|
+
min-width: 0;
|
|
173
|
+
}
|
|
174
|
+
/* Stands in for the checkbox (13px in every engine's default form controls). */
|
|
175
|
+
.w6w-array-head-box {
|
|
176
|
+
display: inline-block;
|
|
177
|
+
width: 13px;
|
|
178
|
+
}
|
|
179
|
+
.w6w-array-head-cell {
|
|
180
|
+
flex: 1;
|
|
181
|
+
min-width: 0;
|
|
182
|
+
overflow: hidden;
|
|
183
|
+
text-overflow: ellipsis;
|
|
184
|
+
white-space: nowrap;
|
|
185
|
+
font-size: var(--w6w-fs-xs);
|
|
186
|
+
font-weight: 500;
|
|
187
|
+
color: var(--w6w-muted);
|
|
188
|
+
}
|
|
189
|
+
.w6w-array-head-ghost {
|
|
190
|
+
visibility: hidden;
|
|
191
|
+
height: 0;
|
|
192
|
+
border-top-width: 0;
|
|
193
|
+
border-bottom-width: 0;
|
|
194
|
+
}
|
|
162
195
|
|
|
163
196
|
/* Combobox (`components/Combobox.tsx`): its <input> sits inside the component's
|
|
164
197
|
own positioned root, so it is not a direct flex child of `.w6w-field` and would
|
|
@@ -168,5 +201,4 @@ select optgroup {
|
|
|
168
201
|
}
|
|
169
202
|
.w6w-combobox > input[type="text"] {
|
|
170
203
|
width: 100%;
|
|
171
|
-
box-sizing: border-box;
|
|
172
204
|
}
|
package/src/styles/_flow.scss
CHANGED
|
@@ -359,6 +359,17 @@
|
|
|
359
359
|
color: var(--w6w-muted);
|
|
360
360
|
}
|
|
361
361
|
|
|
362
|
+
// An If's True label: outside the card, just above its right-edge handle, so an edge
|
|
363
|
+
// leaving that handle rightward never crosses it (False mirrors it under the bottom handle).
|
|
364
|
+
.w6w-flow .w6w-if-true-label {
|
|
365
|
+
position: absolute;
|
|
366
|
+
left: calc(100% + 6px);
|
|
367
|
+
bottom: calc(50% + 4px);
|
|
368
|
+
white-space: nowrap;
|
|
369
|
+
pointer-events: none;
|
|
370
|
+
color: var(--w6w-muted);
|
|
371
|
+
}
|
|
372
|
+
|
|
362
373
|
/* "Write to state" (step settings): the `validateStateConfig` messages for the current config. */
|
|
363
374
|
.w6w-state-write-issues {
|
|
364
375
|
color: var(--w6w-danger);
|