@w6w/ui 0.2.57 → 0.2.58
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 +9 -0
- package/dist/StepBuilderModal.d.ts +9 -2
- package/dist/TriggerFillForm.d.ts +4 -3
- package/dist/WorkflowFlowEditor.d.ts +6 -0
- package/dist/components/ExpressionOptions.d.ts +2 -0
- package/dist/condition-editor.d.ts +3 -1
- package/dist/connection-app-meta-CKTmUX08.cjs +24 -0
- package/dist/connection-app-meta-CKTmUX08.cjs.map +1 -0
- package/dist/{connection-app-meta-aURFNTx_.js → connection-app-meta-D5hNbJB5.js} +4462 -4234
- package/dist/connection-app-meta-D5hNbJB5.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 +2110 -2064
- package/dist/flow.mjs.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +9 -2
- 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/types.d.ts +8 -0
- package/package.json +3 -1
- package/src/code.css +2 -1
- package/src/styles/_box-reset.scss +22 -0
- package/src/styles/_canvas.scss +1 -4
- package/src/styles/_chips.scss +0 -1
- 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/_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 +4 -2
- package/src/styles/_step-config.scss +4 -5
- package/src/styles.css +172 -95
- 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.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.2.58
|
|
4
|
+
|
|
5
|
+
- A trigger tested in the add-step dialog saves its test, so the next step can read its fields (`{{ nodes.<trigger>.output.* }}`) without re-running it from the step editor.
|
|
6
|
+
- Conditions: **has a value** and **is empty** check whether a field holds anything (saved as JSONLogic `!!` / `!`); **Not** reverses either.
|
|
7
|
+
- An If node's **True** label sits outside the card, above its port, like **False**.
|
|
8
|
+
- A step's Test and the canvas Run node form send what upstream "Write to state" nodes put in state, so `{{ state.* }}` resolves the way the run will (needs a server with the matching invoke change). A whole-value JSON field offers a **state** chip that binds it to `{{ state }}`, and the picker's State section shows for a step not yet wired in.
|
|
9
|
+
- `DataTable` takes `className="w6w-data-table-rows"` for row separators only, no column rule.
|
|
10
|
+
- Form fields keep the library's own spacing and widths on pages with global `label`, `input`, `textarea` or checkbox rules, and every component is `border-box` whatever the page's `box-sizing`. A page override of a form element's margin, width or min-height inside a component now needs at least two classes plus the element (see Theming → Restyle a single component).
|
|
11
|
+
|
|
3
12
|
## 0.2.57
|
|
4
13
|
|
|
5
14
|
- Use the app's sample event from the Run node modal.
|
|
@@ -20,7 +20,13 @@ export interface BuiltStep extends NodeConfig {
|
|
|
20
20
|
with?: Record<string, unknown>;
|
|
21
21
|
}
|
|
22
22
|
export interface StepBuilderModalProps {
|
|
23
|
+
/** Cancel, × and Esc — and Done when `onDone` is not supplied. */
|
|
23
24
|
onClose: () => void;
|
|
25
|
+
/**
|
|
26
|
+
* Done: the user finished configuring the added step. Lets a host tell Done from
|
|
27
|
+
* Cancel, so a cancelled add can be rolled back. Defaults to `onClose`.
|
|
28
|
+
*/
|
|
29
|
+
onDone?: () => void;
|
|
24
30
|
/**
|
|
25
31
|
* Fired once per session, the moment the step first has identity — for an
|
|
26
32
|
* app step, when Setup completes (action + connection, if needed); for a
|
|
@@ -192,7 +198,7 @@ export declare function ConfigViewToggle({ view, onChange, disabled, views, cust
|
|
|
192
198
|
*
|
|
193
199
|
* Data + IO come from `useW6WApi()`, so mount it under `<W6WUIProvider>`.
|
|
194
200
|
*/
|
|
195
|
-
export declare function StepBuilderModal({ onClose, onAdd, onDraftChange, theme, appsOnly, callables, initialTab, title, workflowId, stepId, upstreamSteps, loop, initialApp, initialAction, initialConnection, initialWith, appsFilter, appsIds, connectionOnly, onConnected, excludeCallableIds, onOpenStep, stepIds, }: StepBuilderModalProps): import("react").JSX.Element;
|
|
201
|
+
export declare function StepBuilderModal({ onClose, onDone, onAdd, onDraftChange, theme, appsOnly, callables, initialTab, title, workflowId, stepId, upstreamSteps, loop, initialApp, initialAction, initialConnection, initialWith, appsFilter, appsIds, connectionOnly, onConnected, excludeCallableIds, onOpenStep, stepIds, }: StepBuilderModalProps): import("react").JSX.Element;
|
|
196
202
|
/**
|
|
197
203
|
* Config form for a chosen internal node — its schema rendered through the same
|
|
198
204
|
* `ParamsForm` as app actions, seeded with the node's defaults. Emits the built
|
|
@@ -277,7 +283,8 @@ export declare function isTestRequired(surface: unknown): boolean;
|
|
|
277
283
|
* fixture (`saveStepTest`) and records the run's outcome (`recordStepTestRun`)
|
|
278
284
|
* against the given workflow step after each invoke. `input` is the resolved
|
|
279
285
|
* incoming state captured alongside the params (`values` → `with`). Absent in
|
|
280
|
-
* the add-step builder
|
|
286
|
+
* the add-step builder until the step is on the canvas: an app step lands on
|
|
287
|
+
* "Add", but a built-in node is committed the moment it is picked, so its Test saves.
|
|
281
288
|
*/
|
|
282
289
|
export interface StepTestPersist {
|
|
283
290
|
workflowId: string;
|
|
@@ -52,9 +52,10 @@ export declare function TriggerFillForm({ app, action, fields, persist, listen,
|
|
|
52
52
|
/** The trigger's `fields` param value (an array of field definitions). */
|
|
53
53
|
fields: unknown;
|
|
54
54
|
/**
|
|
55
|
-
* Where to remember the entered values. Absent
|
|
56
|
-
*
|
|
57
|
-
*
|
|
55
|
+
* Where to remember the entered values. Absent only where the trigger has no
|
|
56
|
+
* `(workflowId, stepId)` to key a fixture by (a builder with no canvas behind
|
|
57
|
+
* it); there this form neither reads nor writes one. The add-step builder
|
|
58
|
+
* passes it once the picked trigger is committed to the canvas.
|
|
58
59
|
*/
|
|
59
60
|
persist?: StepTestPersist;
|
|
60
61
|
/** Offer "Listen for test event" (webhook triggers in a saved workflow). */
|
|
@@ -220,7 +220,13 @@ interface StepEditModalProps {
|
|
|
220
220
|
/** The enclosing For each when this step is in its body: seeds `state.foreach` on Test. */
|
|
221
221
|
loop?: ExpressionLoopSource;
|
|
222
222
|
onChange: (next: FlowStep) => void;
|
|
223
|
+
/** Done: close, keeping the edits (they apply live). Also ×/Esc when `onCancel` is absent. */
|
|
223
224
|
onClose: () => void;
|
|
225
|
+
/**
|
|
226
|
+
* Cancel, × and Esc: close and discard this dialog's edits. Without it, no Cancel button
|
|
227
|
+
* shows and × / Esc keep the edits.
|
|
228
|
+
*/
|
|
229
|
+
onCancel?: () => void;
|
|
224
230
|
readOnly?: boolean;
|
|
225
231
|
initialView?: EditView;
|
|
226
232
|
/** Most outgoing edges this node has in one lane; "Run next nodes" needs >= 2. */
|
|
@@ -161,6 +161,8 @@ export interface ExpressionOptions {
|
|
|
161
161
|
*/
|
|
162
162
|
stateShape?: {
|
|
163
163
|
fields: ExpressionStateField[];
|
|
164
|
+
/** Upstream state writes from real outputs — what a step Test sends as `state` (`state-shape.ts`). */
|
|
165
|
+
written?: Record<string, unknown>;
|
|
164
166
|
};
|
|
165
167
|
/** Whether a trigger event is in scope (`trigger.event`). */
|
|
166
168
|
hasTrigger?: boolean;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { ExprValue, SecretValue } from './types.ts';
|
|
2
2
|
/** The comparisons the condition builder offers, in menu order, with their labels. */
|
|
3
|
-
export declare const CONDITION_OPERATORS: readonly [readonly ["is-true", "is true"], readonly ["is-false", "is false"], readonly ["===", "equals"], readonly ["!==", "does not equal"], readonly [">", "greater than"], readonly [">=", "at least"], readonly ["<", "less than"], readonly ["<=", "at most"], readonly ["in", "in"], readonly ["includes", "includes value"], readonly ["include-any", "includes any of (list)"], readonly ["include-all", "includes all of (list)"]];
|
|
3
|
+
export declare const CONDITION_OPERATORS: readonly [readonly ["is-true", "is true"], readonly ["is-false", "is false"], readonly ["has-value", "has a value"], readonly ["is-empty", "is empty"], readonly ["===", "equals"], readonly ["!==", "does not equal"], readonly [">", "greater than"], readonly [">=", "at least"], readonly ["<", "less than"], readonly ["<=", "at most"], readonly ["in", "in"], readonly ["includes", "includes value"], readonly ["include-any", "includes any of (list)"], readonly ["include-all", "includes all of (list)"]];
|
|
4
4
|
/** Operand order for membership comparisons; shown on the selected operator and its options. */
|
|
5
5
|
export declare const CONDITION_OPERATOR_HINTS: Record<string, string>;
|
|
6
|
+
/** True when `operator` takes no right-hand value (is true / is false / has a value / is empty). */
|
|
7
|
+
export declare function isUnaryConditionOperator(operator: string): boolean;
|
|
6
8
|
/** A comparison operator as the builder names it (`===` → "equals"); unknown ones as written. */
|
|
7
9
|
export declare function conditionOperatorLabel(op: string): string;
|
|
8
10
|
/** One comparison row of the builder: `left <operator> right`. */
|