@w6w/ui 0.2.59 → 0.2.62
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 +13 -0
- package/dist/AddConnectionModal.d.ts +7 -6
- package/dist/StepBuilderModal.d.ts +16 -2
- package/dist/components/CredentialPicker.d.ts +15 -6
- package/dist/components/ExpressionOptions.d.ts +8 -0
- package/dist/{connection-app-meta-Cl6mUAMF.js → connection-app-meta-CIfXp2O-.js} +5849 -5214
- package/dist/connection-app-meta-CIfXp2O-.js.map +1 -0
- package/dist/connection-app-meta-Cn39S3ED.cjs +24 -0
- package/dist/connection-app-meta-Cn39S3ED.cjs.map +1 -0
- package/dist/credentialLinkContext.d.ts +8 -0
- package/dist/flow-loop.d.ts +7 -2
- package/dist/flow-types.d.ts +12 -0
- package/dist/flow.cjs +5 -5
- package/dist/flow.cjs.map +1 -1
- package/dist/flow.mjs +1270 -1208
- package/dist/flow.mjs.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +942 -957
- package/dist/index.mjs.map +1 -1
- package/dist/provider.d.ts +17 -0
- package/dist/resolve-params.d.ts +4 -0
- package/dist/step-preview-state.d.ts +13 -7
- package/dist/types.d.ts +6 -0
- package/package.json +1 -1
- package/src/styles/_execution-log.scss +16 -0
- package/src/styles/_tester.scss +8 -0
- package/src/styles.css +29 -0
- package/dist/connection-app-meta-CNEwLsL3.cjs +0 -24
- package/dist/connection-app-meta-CNEwLsL3.cjs.map +0 -1
- package/dist/connection-app-meta-Cl6mUAMF.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.2.61
|
|
4
|
+
|
|
5
|
+
- **Nested loops:** a For each can sit inside another For each's body, at any depth. Wait, Stop, Respond, If and Router also work in a loop body; Parallel, Merge, Aggregate and Race are refused with the reason.
|
|
6
|
+
- Inside a nested loop the expression picker offers each enclosing loop's Item and Index (`foreach.loops.<id>.item` / `.index`); `foreach.item` stays the innermost loop.
|
|
7
|
+
- The Test tab has a sample item per enclosing loop, and the execution log nests inner iterations under the outer iteration that ran them.
|
|
8
|
+
- A new repeat row seeds an unchecked checkbox as `false`, not `""`.
|
|
9
|
+
|
|
10
|
+
## 0.2.60
|
|
11
|
+
|
|
12
|
+
- **Run agent** node: pick an agent and write the message it runs on (`@w6w/model` · agent).
|
|
13
|
+
- Clicking a For each iteration in the execution log shows that iteration's input and output.
|
|
14
|
+
- `StepBuilderModal` takes `setupOnly`: the picker finishes once an action and its connection are chosen, for hosts that configure the rest themselves (e.g. an agent's tools).
|
|
15
|
+
|
|
3
16
|
## 0.2.59
|
|
4
17
|
|
|
5
18
|
- The add-node dialog's Settings tab offers **Write to state** and **Run next nodes**, and a choice lands on the node as soon as it is added.
|
|
@@ -12,6 +12,13 @@ export interface AddConnectionModalProps {
|
|
|
12
12
|
* specific app (e.g. from the step builder). Omit to let the user pick.
|
|
13
13
|
*/
|
|
14
14
|
initialAppId?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Where "Create a shared credential" goes (the host navigates; the modal closes first). Shown
|
|
17
|
+
* in the empty "Use existing" state only when a callback is available, from this prop or else
|
|
18
|
+
* from {@link CreateSharedCredentialContext}; the prop wins when both are given. Omit both and
|
|
19
|
+
* the empty state is the hint text alone.
|
|
20
|
+
*/
|
|
21
|
+
onCreateSharedCredential?: () => void;
|
|
15
22
|
}
|
|
16
23
|
/**
|
|
17
24
|
* Add-connection modal. Same shape as the step builder's "add a step" modal —
|
|
@@ -22,9 +29,3 @@ export interface AddConnectionModalProps {
|
|
|
22
29
|
* in. Data + IO come from `useW6WApi()`.
|
|
23
30
|
*/
|
|
24
31
|
export declare function AddConnectionModal(props: AddConnectionModalProps): import("react").JSX.Element;
|
|
25
|
-
/**
|
|
26
|
-
* The saved key's label, so nobody has to invent one: the service account's own email when the
|
|
27
|
-
* pasted key carries one (what Google Cloud calls it too), else "<App> key". Connections point at
|
|
28
|
-
* the key by id; the label only tells saved keys apart in the "Use existing" list.
|
|
29
|
-
*/
|
|
30
|
-
export declare function credentialName(source: Record<string, unknown>, appName: string): string;
|
|
@@ -156,6 +156,16 @@ export interface StepBuilderModalProps {
|
|
|
156
156
|
* (e.g. binding a repository), not a runnable step.
|
|
157
157
|
*/
|
|
158
158
|
connectionOnly?: boolean;
|
|
159
|
+
/**
|
|
160
|
+
* Stop at "an action and its connection are chosen" — no Configure, no Test. The Setup tab's
|
|
161
|
+
* footer commits the pick through `onAdd`, labelled {@link StepBuilderModalProps.addLabel}. For a
|
|
162
|
+
* caller that binds an action as a capability rather than a configured step (an agent's tools:
|
|
163
|
+
* the model supplies the parameters at call time). A picked Function or Workflow is committed
|
|
164
|
+
* at once, without its inputs form.
|
|
165
|
+
*/
|
|
166
|
+
setupOnly?: boolean;
|
|
167
|
+
/** The commit button's label with {@link StepBuilderModalProps.setupOnly}. Defaults to "Add". */
|
|
168
|
+
addLabel?: string;
|
|
159
169
|
/**
|
|
160
170
|
* Fired once, on {@link AppConnectionOnlyConfig}'s footer button — never on
|
|
161
171
|
* selection alone. Only meaningful with {@link StepBuilderModalProps.connectionOnly}.
|
|
@@ -204,7 +214,7 @@ export declare function ConfigViewToggle({ view, onChange, disabled, views, cust
|
|
|
204
214
|
*
|
|
205
215
|
* Data + IO come from `useW6WApi()`, so mount it under `<W6WUIProvider>`.
|
|
206
216
|
*/
|
|
207
|
-
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;
|
|
217
|
+
export declare function StepBuilderModal({ onClose, onDone, onAdd, onDraftChange, theme, appsOnly, callables, initialTab, title, workflowId, stepId, upstreamSteps, loop, initialApp, initialAction, initialConnection, initialWith, appsFilter, appsIds, connectionOnly, setupOnly, addLabel, onConnected, excludeCallableIds, onOpenStep, stepIds, }: StepBuilderModalProps): import("react").JSX.Element;
|
|
208
218
|
/**
|
|
209
219
|
* Config form for a chosen internal node — its schema rendered through the same
|
|
210
220
|
* `ParamsForm` as app actions, seeded with the node's defaults. Emits the built
|
|
@@ -419,7 +429,7 @@ export declare function AppTriggerTestNote({ title, app }: {
|
|
|
419
429
|
title: string;
|
|
420
430
|
app: string;
|
|
421
431
|
}): import("react").JSX.Element;
|
|
422
|
-
export declare function AppStepConfig({ kind, onOpenStep, appId, app, onAdd, onClose, onDone, onDraftChange, onChangeApp, theme, workflowId, stepId, upstreamSteps, loop, initialAction, initialConnection, initialWith, }: {
|
|
432
|
+
export declare function AppStepConfig({ kind, onOpenStep, appId, app, onAdd, onClose, onDone, onDraftChange, onChangeApp, theme, workflowId, stepId, upstreamSteps, loop, initialAction, initialConnection, initialWith, setupOnly, addLabel, }: {
|
|
423
433
|
/**
|
|
424
434
|
* What the Setup tab picks: one of the app's actions, or (`"trigger"`, the
|
|
425
435
|
* Triggers tab) one of its triggers. Same account step, same picker, same
|
|
@@ -452,6 +462,10 @@ export declare function AppStepConfig({ kind, onOpenStep, appId, app, onAdd, onC
|
|
|
452
462
|
initialConnection?: string;
|
|
453
463
|
/** Pre-filled parameter values */
|
|
454
464
|
initialWith?: Record<string, unknown>;
|
|
465
|
+
/** See {@link StepBuilderModalProps.setupOnly}. */
|
|
466
|
+
setupOnly?: boolean;
|
|
467
|
+
/** See {@link StepBuilderModalProps.addLabel}. */
|
|
468
|
+
addLabel?: string;
|
|
455
469
|
}): import("react").JSX.Element;
|
|
456
470
|
/**
|
|
457
471
|
* {@link AppStepConfig}'s Setup tab, minus the Action and Configure/Test
|
|
@@ -8,18 +8,27 @@ export interface CredentialPickerProps {
|
|
|
8
8
|
/** The chosen credential id (`""` for none). Only used in `"existing"` mode. */
|
|
9
9
|
selectedId: string;
|
|
10
10
|
onSelect: (id: string) => void;
|
|
11
|
-
/** False hides the "Use existing" choice (
|
|
11
|
+
/** False hides the "Use existing" choice entirely (the caller has no stored-credential seam). Default true. */
|
|
12
12
|
canUseExisting?: boolean;
|
|
13
13
|
/** The contract the credential must satisfy, shown as a hint. */
|
|
14
14
|
contract?: string;
|
|
15
|
+
/** Shown instead of the list when "Use existing" is chosen and `credentials` is empty. */
|
|
16
|
+
emptyHint?: string;
|
|
17
|
+
/**
|
|
18
|
+
* When given, the empty state also offers a "Create a shared credential" button that calls it.
|
|
19
|
+
* Omit it and the empty state is the hint alone.
|
|
20
|
+
*/
|
|
21
|
+
onCreateShared?: () => void;
|
|
15
22
|
}
|
|
16
23
|
/**
|
|
17
|
-
* The Use existing /
|
|
18
|
-
* credentials. Presentational: no API access, no state of its own.
|
|
19
|
-
*
|
|
20
|
-
*
|
|
24
|
+
* The Use existing / Enter new switch of a connection's Credential step, plus the list of shared
|
|
25
|
+
* credentials. Presentational: no API access, no state of its own. Both choices are always shown;
|
|
26
|
+
* with nothing to choose from, "Use existing" shows `emptyHint` (and the optional create link)
|
|
27
|
+
* rather than disappearing. Each option shows the credential's name and its non-secret `display`
|
|
28
|
+
* values, never a payload. The "Enter new" form itself (the app's own fields) is the caller's,
|
|
29
|
+
* rendered beneath this.
|
|
21
30
|
*/
|
|
22
|
-
export declare function CredentialPicker({ credentials, mode, onModeChange, selectedId, onSelect, canUseExisting, contract, }: CredentialPickerProps): import("react").JSX.Element;
|
|
31
|
+
export declare function CredentialPicker({ credentials, mode, onModeChange, selectedId, onSelect, canUseExisting, contract, emptyHint, onCreateShared, }: CredentialPickerProps): import("react").JSX.Element;
|
|
23
32
|
/**
|
|
24
33
|
* The binding fields a `serviceAccount` auth asks for on a connection. `delegatedUser` is always
|
|
25
34
|
* labelled "Workspace user to act as" (the person the credential acts as, never the connection's owner),
|
|
@@ -73,6 +73,14 @@ export interface ExpressionStateField extends ExpressionFieldSource {
|
|
|
73
73
|
*/
|
|
74
74
|
export interface ExpressionLoopSource {
|
|
75
75
|
foreachId: string;
|
|
76
|
+
/** The For each's display name (its id: steps carry no other name): labels its picker entries. */
|
|
77
|
+
name?: string;
|
|
78
|
+
/**
|
|
79
|
+
* The For each loops ENCLOSING this one, outermost first, each with its own item sample and
|
|
80
|
+
* name. Present only when nested; the picker adds `foreach.loops.<id>.item|index` entries
|
|
81
|
+
* for each. This object itself stays the innermost loop (`foreach.item` / `foreach.index`).
|
|
82
|
+
*/
|
|
83
|
+
outer?: ExpressionLoopSource[];
|
|
76
84
|
/** Element [0] of the For each's resolved `items`. OMITTED (key absent) when unresolvable. */
|
|
77
85
|
itemSample?: unknown;
|
|
78
86
|
/** `inferOutputFields(itemSample)`. OMITTED when none. */
|