@w6w/ui 0.2.66 → 0.2.68

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.
Files changed (56) hide show
  1. package/CHANGELOG.md +19 -1
  2. package/README.md +5 -3
  3. package/dist/{CodeBlock-C1IC5_6O.cjs → CodeBlock-85y9qvE3.cjs} +4 -4
  4. package/dist/{CodeBlock-C1IC5_6O.cjs.map → CodeBlock-85y9qvE3.cjs.map} +1 -1
  5. package/dist/{CodeBlock-CsdRXzb0.js → CodeBlock-a5QVaIGk.js} +158 -131
  6. package/dist/{CodeBlock-CsdRXzb0.js.map → CodeBlock-a5QVaIGk.js.map} +1 -1
  7. package/dist/FormBuilder.d.ts +19 -0
  8. package/dist/ManualWebhookPanel.d.ts +34 -0
  9. package/dist/NodeConfigForm.d.ts +8 -2
  10. package/dist/StepBuilderModal.d.ts +2 -0
  11. package/dist/TriggerFillForm.d.ts +3 -0
  12. package/dist/WebhookListenPanel.d.ts +8 -1
  13. package/dist/code.cjs +1 -1
  14. package/dist/code.mjs +1 -1
  15. package/dist/components/AuthFieldsForm.d.ts +10 -0
  16. package/dist/components/AuthGuide.d.ts +19 -1
  17. package/dist/components/CallableList.d.ts +30 -4
  18. package/dist/components/Combobox.d.ts +5 -0
  19. package/dist/components/ExecutionLogDock.d.ts +44 -0
  20. package/dist/components/ExecutionLogPanel.d.ts +66 -0
  21. package/dist/components/ExecutionLogView.d.ts +30 -0
  22. package/dist/components/ExpressionOptions.d.ts +22 -0
  23. package/dist/components/icons.d.ts +1 -1
  24. package/dist/connection-app-meta-DID4zDg-.cjs +29 -0
  25. package/dist/connection-app-meta-DID4zDg-.cjs.map +1 -0
  26. package/dist/{connection-app-meta-CKBbgN7e.js → connection-app-meta-mmyKM3H9.js} +5725 -4161
  27. package/dist/connection-app-meta-mmyKM3H9.js.map +1 -0
  28. package/dist/dynamic-fields.d.ts +3 -0
  29. package/dist/flow-types.d.ts +27 -1
  30. package/dist/flow.cjs +8 -5
  31. package/dist/flow.cjs.map +1 -1
  32. package/dist/flow.mjs +3681 -2463
  33. package/dist/flow.mjs.map +1 -1
  34. package/dist/form-schema.d.ts +270 -0
  35. package/dist/form-trigger.d.ts +8 -0
  36. package/dist/index.cjs +3 -2
  37. package/dist/index.cjs.map +1 -1
  38. package/dist/index.d.ts +8 -4
  39. package/dist/index.mjs +1766 -1343
  40. package/dist/index.mjs.map +1 -1
  41. package/dist/provider.d.ts +14 -0
  42. package/dist/resolve-params.d.ts +2 -0
  43. package/dist/types.d.ts +17 -1
  44. package/dist/workflow-connections.d.ts +11 -0
  45. package/package.json +2 -2
  46. package/src/styles/_callable-list.scss +37 -3
  47. package/src/styles/_connections.scss +29 -0
  48. package/src/styles/_execution-log-view.scss +322 -0
  49. package/src/styles/_expression-modal.scss +7 -0
  50. package/src/styles/_form-builder.scss +245 -0
  51. package/src/styles/_sections.scss +29 -0
  52. package/src/styles.css +725 -7
  53. package/src/styles.scss +2 -0
  54. package/dist/connection-app-meta-CKBbgN7e.js.map +0 -1
  55. package/dist/connection-app-meta-DfA6Yqhh.cjs +0 -28
  56. package/dist/connection-app-meta-DfA6Yqhh.cjs.map +0 -1
@@ -0,0 +1,19 @@
1
+ import { FormDefinition } from './form-schema.ts';
2
+ /**
3
+ * The `@w6w/form` trigger's form builder — the custom editor for its `form` param (a
4
+ * {@link FormDefinition}, `form-schema.ts`). The form's title and description, then its fields as
5
+ * a list you **drag to reorder** (grip; ArrowUp/ArrowDown on a focused grip moves one place), each
6
+ * opening into its own settings; a searchable "Add a field" combobox that appends a new field
7
+ * of the picked type and opens it; then the completion screen and the page settings. Every edit writes the
8
+ * whole definition back through `onChange`; the authored value is edited in place (never
9
+ * round-tripped through the parser, which would drop a half-typed name), and the parser's problems
10
+ * are listed on top. The JSON itself stays editable in the step's Parameters code view.
11
+ */
12
+ export declare function FormBuilder({ value, onChange, readOnly, stepId, }: {
13
+ /** The step's `with.form` — a form definition, or absent for a new trigger. */
14
+ value: unknown;
15
+ onChange: (form: FormDefinition) => void;
16
+ readOnly?: boolean;
17
+ /** The trigger's node id, for the "use this answer as" hint. */
18
+ stepId?: string;
19
+ }): import("react").JSX.Element;
@@ -0,0 +1,34 @@
1
+ import { SubscriptionSummary, WebhookSetup } from './types.ts';
2
+ /**
3
+ * The trigger node's own subscription, if any: node-bound, same app and trigger. The server keeps
4
+ * one row per node, so this is the row whose URL the user pastes into the vendor.
5
+ */
6
+ export declare function pickNodeSubscription(subs: readonly SubscriptionSummary[], nodeId: string, appId: string, triggerKey: string): SubscriptionSummary | null;
7
+ /** `instructions` → its steps: one per non-empty line, a leading "1." / "-" / "•" dropped. */
8
+ export declare function instructionSteps(instructions: string | undefined): string[];
9
+ /**
10
+ * The receive URL of an app trigger whose webhook the USER adds in the vendor
11
+ * (`Trigger.webhook.registration === "manual"`, rfcs/trigger.md Amendment 2026-11-22), with the
12
+ * app's own steps for adding it and a plain warning that nothing arrives until it is added.
13
+ *
14
+ * The URL exists before publish: when the node has no subscription yet the panel asks the server
15
+ * for one (`createSubscription` with `nodeId`). That create is idempotent per node on the server,
16
+ * and the row stays dormant until the node is published, so opening the panel twice, or on a
17
+ * second tab, never mints a second URL. The id, and so the URL, survives edits to the trigger's
18
+ * params and connection, so a URL already pasted keeps working.
19
+ *
20
+ * While the row is still `pending` (not yet adopted by a publish), edits to the node's fields are
21
+ * sent to it, debounced, by the same idempotent create: a vendor that checks the URL when it is
22
+ * saved (a verify token, a signing secret) checks it against what the user just typed.
23
+ */
24
+ export declare function ManualWebhookPanel({ workflowId, nodeId, appId, triggerKey, appName, setup, connectionId, params, readOnly, }: {
25
+ workflowId: string;
26
+ nodeId: string;
27
+ appId: string;
28
+ triggerKey: string;
29
+ appName: string;
30
+ setup: WebhookSetup;
31
+ connectionId: string | null;
32
+ params: Record<string, unknown>;
33
+ readOnly?: boolean;
34
+ }): import("react").JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { FlowStep } from './flow-types.ts';
3
3
  /** The base, always-available node settings — independent of the action's params. */
4
- export type NodeConfig = Pick<FlowStep, "retry" | "onError" | "notes">;
4
+ export type NodeConfig = Pick<FlowStep, "retry" | "onError" | "notes" | "timeoutMs">;
5
5
  /**
6
6
  * A stable reference over a Function or a Workflow (core rfcs/endpoint.md ·
7
7
  * CallableRef). Declared **locally** — structurally identical to
@@ -27,7 +27,7 @@ export type CallableRef = {
27
27
  * existing caller, so `NodeConfig` itself and every pre-existing render path
28
28
  * are unchanged.
29
29
  */
30
- export declare function NodeConfigForm({ config, onChange, readOnly, hasGraph, failureHandling, retryControls, reroute, }: {
30
+ export declare function NodeConfigForm({ config, onChange, readOnly, hasGraph, failureHandling, retryControls, timeoutControl, reroute, }: {
31
31
  config: NodeConfig;
32
32
  onChange: (next: NodeConfig) => void;
33
33
  readOnly?: boolean;
@@ -55,6 +55,12 @@ export declare function NodeConfigForm({ config, onChange, readOnly, hasGraph, f
55
55
  * first"). Default `true` reproduces today's markup byte-identically.
56
56
  */
57
57
  retryControls?: boolean;
58
+ /**
59
+ * `false` omits the "Timeout" field. Defaults to `retryControls`: the steps
60
+ * that cannot retry (`@w6w/call`/`@w6w/control`) make no vendor call to time
61
+ * out either, and a trigger is already hidden by `failureHandling`.
62
+ */
63
+ timeoutControl?: boolean;
58
64
  /**
59
65
  * Failure re-dispatch — a `CallableRef`, rendered only when supplied. `value`/
60
66
  * `onChange` are the host's own state (so it can offer a "clear" affordance);
@@ -326,6 +326,8 @@ export declare const StepTestRun: import('react').ForwardRefExoticComponent<{
326
326
  action: string;
327
327
  connectionId?: string;
328
328
  values: Record<string, unknown>;
329
+ /** The step's own time limit (ms), sent with the test invoke when set. */
330
+ timeoutMs?: number;
329
331
  canRun: boolean;
330
332
  hideRunButton?: boolean;
331
333
  persist?: StepTestPersist;
@@ -1,4 +1,5 @@
1
1
  import { StepTestPersist } from './StepBuilderModal.tsx';
2
+ import { FORM_APP, WEBHOOK_APP } from './flow-types.ts';
2
3
  /** How long an edited sample payload sits before it is remembered (it is flushed on close too). */
3
4
  export declare const EDIT_SAVE_DEBOUNCE_MS = 600;
4
5
  /**
@@ -69,6 +70,8 @@ export declare function TriggerFillForm({ app, action, fields, persist, listen,
69
70
  listen?: {
70
71
  stepWith: Record<string, unknown> | undefined;
71
72
  readOnly?: boolean;
73
+ /** The trigger app; a `@w6w/form` listens for a form submission. Default `@w6w/webhook`. */
74
+ appId?: typeof WEBHOOK_APP | typeof FORM_APP;
72
75
  };
73
76
  /** An app trigger node (`uses.trigger: true`): the payload is the output, nothing is invoked. */
74
77
  appTrigger?: boolean;
@@ -1,3 +1,4 @@
1
+ import { FORM_APP, WEBHOOK_APP } from './flow-types.ts';
1
2
  import { SubscriptionSummary, WebhookListenSession } from './types.ts';
2
3
  /** The captured call a webhook trigger emits as its output. */
3
4
  export type CapturedWebhookRequest = NonNullable<WebhookListenSession["request"]>;
@@ -16,7 +17,13 @@ export declare function displayHeaders(headers: Record<string, string>): Record<
16
17
  * ones masked), pretty body — and **Use as test data** hands it to `onUse`, which makes it this
17
18
  * trigger's output and saved test.
18
19
  */
19
- export declare function WebhookListenPanel({ workflowId, stepId, stepWith, readOnly, onUse, using, }: {
20
+ export declare function WebhookListenPanel({ workflowId, stepId, stepWith, readOnly, onUse, using, appId, }: {
21
+ /**
22
+ * The trigger: a `@w6w/webhook` URL captures the next request; a `@w6w/form` page captures the
23
+ * next submission — which, unlike a webhook's, also runs the workflow (the editor's saved draft),
24
+ * so a test submission shows the whole flow continuing.
25
+ */
26
+ appId?: typeof WEBHOOK_APP | typeof FORM_APP;
20
27
  workflowId: string;
21
28
  stepId: string;
22
29
  /** The node's current config — the params a newly created subscription starts from. */
package/dist/code.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CodeBlock-C1IC5_6O.cjs");exports.CodeBlock=e.CodeBlock;exports.Copyable=e.Copyable;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CodeBlock-85y9qvE3.cjs");exports.CodeBlock=e.CodeBlock;exports.Copyable=e.Copyable;
2
2
  //# sourceMappingURL=code.cjs.map
package/dist/code.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { C as a, a as l } from "./CodeBlock-CsdRXzb0.js";
2
+ import { C as a, a as l } from "./CodeBlock-a5QVaIGk.js";
3
3
  export {
4
4
  a as CodeBlock,
5
5
  l as Copyable
@@ -43,4 +43,14 @@ export declare function keyFilePreview(raw: string): {
43
43
  value: string;
44
44
  secret: boolean;
45
45
  }[] | null;
46
+ /**
47
+ * A secret JSON field (a service-account key file): paste it or pick the file, then see what was
48
+ * read — the account email, project, client id, key id — with the secret parts masked. The raw
49
+ * text is never shown back; it is parsed and encrypted on save, and a saved key is never re-shown.
50
+ */
51
+ export declare function SecretJsonField({ field, value, onChange, }: {
52
+ field: AuthField;
53
+ value: string;
54
+ onChange: (raw: string) => void;
55
+ }): import("react").JSX.Element;
46
56
  export {};
@@ -5,9 +5,10 @@ import { AuthDef } from '../types.ts';
5
5
  * or a delegation is re-granted. The auth's description, its "Where do I get this?" steps, and
6
6
  * for a service account the scopes to grant, each only when declared.
7
7
  */
8
- export declare function AuthGuide({ auth, scopes }: {
8
+ export declare function AuthGuide({ auth, scopes, clientId, }: {
9
9
  auth: AuthDef;
10
10
  scopes?: boolean;
11
+ clientId?: string;
11
12
  }): import("react").JSX.Element;
12
13
  /**
13
14
  * "Where do I get this?" — the auth's own setup steps, each linking to the vendor page where the
@@ -19,6 +20,23 @@ export declare function AuthSetupSteps({ steps }: {
19
20
  url?: string;
20
21
  }[];
21
22
  }): import("react").JSX.Element;
23
+ /**
24
+ * The Client ID a Google service-account key carries, from a pasted key file's text (or an
25
+ * already-parsed object). Empty when it is not a key file yet.
26
+ */
27
+ export declare function keyClientId(raw: unknown): string;
28
+ /**
29
+ * Domain-wide delegation, spelled out where a service-account connection is made: a Workspace
30
+ * service account can act as a user only after a Workspace admin allows its Client ID for the
31
+ * exact scopes. Always open (it is the step people miss), with the Client ID and the scopes each
32
+ * copyable, so nothing has to be hunted for in the key file. `clientId` is empty until a key is
33
+ * chosen or pasted.
34
+ */
35
+ export declare function DelegationSteps({ scopes, clientId, required, }: {
36
+ scopes: readonly string[];
37
+ clientId: string;
38
+ required: boolean;
39
+ }): import("react").JSX.Element;
22
40
  /**
23
41
  * The scopes a service account must be granted, comma-separated exactly as Google's
24
42
  * Domain-wide delegation form asks for them, with a Copy button.
@@ -6,6 +6,10 @@ export interface CallableListRow {
6
6
  title: ReactNode;
7
7
  description?: ReactNode;
8
8
  archived: boolean;
9
+ /** The row's status bucket (e.g. `"active"`, `"draft"`): which of the list's `groups` tabs it sits in. */
10
+ group?: string;
11
+ /** What the search box matches, besides the id. Defaults to `title` and `description` when strings. */
12
+ searchText?: string;
9
13
  /** Extra badges, rendered before the archived badge in the trailing slot. */
10
14
  badges?: ReactNode;
11
15
  /** Trailing content; sits inside the row's anchor when `getHref` is set, so keep it non-interactive. */
@@ -41,10 +45,16 @@ export interface CallableListProps {
41
45
  newLabel?: string;
42
46
  /** Tooltip (`title` attribute) on each openable row. */
43
47
  openRowTitle?: string;
48
+ /**
49
+ * `showArchived` lands on the Archived tab; `filterTab` is a prefix, each tab gets
50
+ * `<prefix>-<key>` (`all`, a group key, `archived`).
51
+ */
44
52
  testIds?: {
45
53
  showArchived?: string;
46
54
  importOpen?: string;
47
55
  archivedBadge?: string;
56
+ filterTab?: string;
57
+ search?: string;
48
58
  };
49
59
  loading?: boolean;
50
60
  error?: string | null;
@@ -58,11 +68,21 @@ export interface CallableListProps {
58
68
  onOpen?: (id: string, event: MouseEvent<Element>) => void;
59
69
  /** When set, each row is a real `<a href>`. */
60
70
  getHref?: (id: string) => string;
61
- /** Controlled "Show archived". Omit for an uncontrolled toggle that starts off. */
71
+ /**
72
+ * Status tabs between All and Archived, in order (e.g. Active, Draft). A row joins one through
73
+ * its `group`. All lists every row that is not archived; Archived lists only archived rows.
74
+ */
75
+ groups?: readonly CallableListGroup[];
76
+ /** Controlled tab: `"all"`, a group key, or `"archived"`. Omit for an uncontrolled tab on All. */
77
+ filter?: string;
78
+ onFilterChange?: (next: string) => void;
79
+ /** Old name for the Archived tab: `true` is `filter: "archived"`, `false` is All. */
62
80
  showArchived?: boolean;
63
81
  onShowArchivedChange?: (next: boolean) => void;
82
+ /** Placeholder of the search box. Defaults to "Search by name". */
83
+ searchPlaceholder?: string;
64
84
  slots?: {
65
- /** Replaces the default title/description block (the Show-archived toggle stays). */
85
+ /** Replaces the default title/description block (the filter bar stays). */
66
86
  header?: ReactNode;
67
87
  /** Rendered before Import/New. */
68
88
  actions?: ReactNode;
@@ -70,10 +90,16 @@ export interface CallableListProps {
70
90
  empty?: ReactNode;
71
91
  };
72
92
  }
93
+ /** One status tab of a {@link CallableList}: rows whose `group` equals `key`. */
94
+ export interface CallableListGroup {
95
+ key: string;
96
+ label: string;
97
+ }
73
98
  /**
74
99
  * A presentational list of callables (Functions, Endpoints, Workflows): rows in, callbacks out.
75
- * Owns only the archived filter and its toggle; it knows no router, query, modal or kind.
100
+ * Owns only its filters — status tabs (All, each of `groups`, Archived, with counts) and a search
101
+ * box; it knows no router, query, modal or kind.
76
102
  * Rows render through {@link DataTable}: a click handler with `onOpen`, anchors with `getHref`.
77
103
  * No visible rows renders an {@link EmptyState}; when only archived rows exist it offers "Show archived".
78
104
  */
79
- export declare function CallableList({ rows, title, icon, description, emptyCopy, newLabel, openRowTitle, testIds, loading, error, onCreate, creating, onImport, onOpen, getHref, showArchived: showArchivedProp, onShowArchivedChange, slots, }: CallableListProps): import("react").JSX.Element;
105
+ export declare function CallableList({ rows, title, icon, description, emptyCopy, newLabel, openRowTitle, testIds, loading, error, onCreate, creating, onImport, onOpen, getHref, groups, filter: filterProp, onFilterChange, showArchived: showArchivedProp, onShowArchivedChange, searchPlaceholder, slots, }: CallableListProps): import("react").JSX.Element;
@@ -11,6 +11,11 @@ export interface ComboboxOption {
11
11
  icon?: ReactNode;
12
12
  /** Extra text the filter also matches (e.g. a provider name that is not in the label). */
13
13
  keywords?: string;
14
+ /**
15
+ * A section heading: a run of consecutive options sharing a `group` is listed under it (an
16
+ * `<optgroup>` in select mode). Filtering keeps the heading over the options still shown.
17
+ */
18
+ group?: string;
14
19
  }
15
20
  export interface ComboboxProps {
16
21
  options: ComboboxOption[];
@@ -0,0 +1,44 @@
1
+ import { ReactNode } from 'react';
2
+ /** Where the log body is shown: under the host's content, in an in-page window, or in its own browser window. */
3
+ export type ExecutionLogDockMode = "docked" | "floating" | "window";
4
+ export interface ExecutionLogDockProps {
5
+ /** The log body, typically an `ExecutionLogView`. It stays mounted while the dock is collapsed. */
6
+ children: ReactNode;
7
+ /** Whether the body is showing. The bar is always showing. */
8
+ open: boolean;
9
+ onOpenChange: (open: boolean) => void;
10
+ /** Text on the bar's toggle. Default "Logs". */
11
+ title?: ReactNode;
12
+ /** Status shown on the bar beside the title (a run's status pill, step count, duration). */
13
+ summary?: ReactNode;
14
+ /**
15
+ * Clears what the log shows (e.g. "I'm done looking at this run"). Omitted ⇒ no Clear control.
16
+ * The control carries `data-testid="execution-log-dismiss"`, the same lever `ExecutionLogPanel`'s
17
+ * dismiss button is.
18
+ */
19
+ onClear?: () => void;
20
+ /** Docked body height in px. Default 320. The user can drag it between 120px and 85% of the viewport. */
21
+ defaultHeight?: number;
22
+ /**
23
+ * Class names for the wrapper the body is rendered in once it is popped out to its own browser
24
+ * window — a host that scopes its stylesheet under a root class (e.g. `w6w-embed-root`) passes
25
+ * that class here so the copied styles still match.
26
+ */
27
+ windowClassName?: string;
28
+ /** Title of the popped-out browser window. Default "Logs". */
29
+ windowTitle?: string;
30
+ /** Extra content at the end of the bar, before the dock controls. */
31
+ barActions?: ReactNode;
32
+ "data-testid"?: string;
33
+ }
34
+ /**
35
+ * A bottom dock for a log: an always-visible bar that slides the log up from the bottom of its
36
+ * host (splitting the space with whatever sits above it), with a drag handle for the split, and
37
+ * a pop-out that moves the log into its own browser window — or, where popups are blocked (an
38
+ * embed inside an iframe), into a floating in-page window — with a control to dock it back.
39
+ *
40
+ * Layout contract: render it as the last child of a flex column whose first child takes the
41
+ * remaining space (`flex: 1; min-height: 0`). Docked, the dock's own height is the bar plus the
42
+ * body's height; collapsed or popped out, it is just the bar.
43
+ */
44
+ export declare function ExecutionLogDock({ children, open, onOpenChange, title, summary, onClear, defaultHeight, windowClassName, windowTitle, barActions, "data-testid": testId, }: ExecutionLogDockProps): import("react").JSX.Element;
@@ -9,6 +9,12 @@ export interface ExecutionLogNode {
9
9
  appName?: string;
10
10
  actionName?: string;
11
11
  }
12
+ /** A node's kind and display names, a built-in `@w6w/*` node resolved from its own definition. */
13
+ export declare function describeNode(node: ExecutionLogNode): {
14
+ trigger: boolean;
15
+ appName: string;
16
+ actionName: string;
17
+ };
12
18
  /**
13
19
  * A step's or run's failure, already normalised by the HOST from the workflow
14
20
  * spec's `StepError` (`code`/`message`/`phase`/`retryable`). The panel never
@@ -121,6 +127,8 @@ export interface ExecutionLogIteration {
121
127
  failedNodeId?: string;
122
128
  steps: ExecutionLogStep[];
123
129
  }
130
+ /** Server record key order is not execution order. Keep ties stable and never mutate props. */
131
+ export declare function chronologicalSteps(steps: readonly ExecutionLogStep[]): ExecutionLogStep[];
124
132
  export interface ExecutionLogPanelProps {
125
133
  /** Rendered earliest first by start time (finish time as fallback), then untimed steps. */
126
134
  steps: ExecutionLogStep[];
@@ -154,3 +162,61 @@ export interface ExecutionLogPanelProps {
154
162
  * docstring). Fills whatever box its host gives it.
155
163
  */
156
164
  export declare function ExecutionLogPanel({ steps, emptyLabel, onDismiss, runError, stepErrors, }: ExecutionLogPanelProps): import("react").JSX.Element;
165
+ export declare const isOffPath: (step: ExecutionLogStep) => boolean;
166
+ /** The short reason shown beside a real skip's pill. */
167
+ export declare const SKIP_REASON_LABELS: Record<Exclude<SkipReason, "not_on_path">, string>;
168
+ /** "N steps on other paths, not part of this run" — collapsed; expands to their names. */
169
+ export declare function ExecutionLogOffPath({ steps }: {
170
+ steps: ExecutionLogStep[];
171
+ }): import("react").JSX.Element;
172
+ /**
173
+ * A For each row's per-iteration view: a summary (count, failures, pointer at the
174
+ * failing body step), one chip per served iteration, and one sub-row per body
175
+ * step showing the SELECTED iteration's record (failed iteration preselected,
176
+ * else the last served one). Clicking a chip selects that iteration for every
177
+ * body step and opens their rows, so its input and output read at once; each
178
+ * sub-row's `<select>` picks the same shared iteration. Pure props -> DOM.
179
+ */
180
+ export declare function ExecutionLogIterations({ step }: {
181
+ step: ExecutionLogStep;
182
+ }): import("react").JSX.Element;
183
+ /**
184
+ * `TriggerFillForm`'s StepError visual, reused rather than re-invented: the
185
+ * `.w6w-result.w6w-error` box, an optional muted `<code>` line, then the
186
+ * message. `label` (recorded step errors only) names the step on a line above.
187
+ * The code line's spacing lives in `_execution-log.scss` as tokens instead of
188
+ * `TriggerFillForm`'s inline style — same values (`0.75` opacity, a 4px gap).
189
+ */
190
+ export declare function ExecutionLogErrorBlock({ error, label, }: {
191
+ error: ExecutionLogError;
192
+ label?: string;
193
+ }): import("react").JSX.Element;
194
+ export declare function formatElapsed(startedAt: string, finishedAt: string): string | null;
195
+ /** Each payload starts collapsed and mounts its read-only JSON tree on demand.
196
+ * The shared viewer provides key folding, Expand/Collapse all and full-value copy.
197
+ * Force JSON so an output string stays a string, even when it contains HTML or JSON text. */
198
+ export declare function ExecutionLogJson({ title, value, defaultOpen, }: {
199
+ title: string;
200
+ value: unknown;
201
+ /** Start expanded (an iteration picked from a For each chip shows its data at once). */
202
+ defaultOpen?: boolean;
203
+ }): import("react").JSX.Element;
204
+ /**
205
+ * An If / Stop workflow / Router input's resolved comparisons as a left | operator | right |
206
+ * result table — what was compared, not only `condition: true`. The engine records them
207
+ * beside the boolean (`{ conditions: [{ left, op, right, result }], combinator? }`; a Router
208
+ * per route); a record without that trace renders nothing, and the raw Input below still
209
+ * shows everything.
210
+ */
211
+ export declare function ExecutionLogConditions({ input }: {
212
+ input: unknown;
213
+ }): import("react").JSX.Element | null;
214
+ export declare function hasStateBlock(step: ExecutionLogStep): boolean;
215
+ /**
216
+ * The State block: one row per state write in the order the run recorded them
217
+ * (`state.<path>: old → new`, or the warning that stopped it), then the run's
218
+ * state tree after this step. Rendered only when there is something to show.
219
+ */
220
+ export declare function ExecutionLogState({ step }: {
221
+ step: ExecutionLogStep;
222
+ }): import("react").JSX.Element;
@@ -0,0 +1,30 @@
1
+ import { ReactNode } from 'react';
2
+ import { ExecutionLogError, ExecutionLogRecordedError, ExecutionLogStep } from './ExecutionLogPanel.tsx';
3
+ export interface ExecutionLogViewProps {
4
+ /** The run's steps, the same already-mapped rows `ExecutionLogPanel` takes. */
5
+ steps: ExecutionLogStep[];
6
+ /** Shown instead of the two columns when no step of the run has a row yet. */
7
+ emptyLabel?: ReactNode;
8
+ /** The run's own failure (`RunState.error`), shown above both columns. */
9
+ runError?: ExecutionLogError;
10
+ /** Step failures the run recorded and moved past (`RunState.stepErrors`), after `runError`. */
11
+ stepErrors?: ExecutionLogRecordedError[];
12
+ /**
13
+ * The step shown in the right column. Omitted ⇒ the view keeps its own selection: it follows
14
+ * the run (the failed step, else the one still running, else the latest) until the user picks
15
+ * a row, and keeps that row from then on.
16
+ */
17
+ selectedStepId?: string | null;
18
+ /** Called with the row the user picked. */
19
+ onSelectStep?: (stepId: string) => void;
20
+ }
21
+ /**
22
+ * A workflow run's log as two columns: the steps in execution order on the left, and the picked
23
+ * step on the right — its status, start and finish timestamps, elapsed time, error, input and
24
+ * output side by side, console, metadata and state.
25
+ *
26
+ * Same "host owns the data" contract as `ExecutionLogPanel`: it takes already-mapped rows and
27
+ * never fetches or polls. It fills the box its host gives it (a docked panel, a floating window,
28
+ * a page), scrolling each column on its own.
29
+ */
30
+ export declare function ExecutionLogView({ steps, emptyLabel, runError, stepErrors, selectedStepId, onSelectStep, }: ExecutionLogViewProps): import("react").JSX.Element;
@@ -139,6 +139,23 @@ export interface ExpressionDocumentSource {
139
139
  key: string;
140
140
  }[];
141
141
  }
142
+ /**
143
+ * A workflow connection binding (`connections.<name>`): who it is and the non-secret `profile`
144
+ * its app recorded at connect time. Offered as the rail's "Connections" section.
145
+ */
146
+ export interface ExpressionConnectionSource {
147
+ /** The binding name (`Workflow.connections` key), e.g. `gitlab_1`. */
148
+ name: string;
149
+ /** The app's display name, else its id. */
150
+ appName: string;
151
+ /** The bound connection's display name; absent while unbound or not loaded. */
152
+ label?: string;
153
+ /**
154
+ * The readable fields under `connections.<name>`: `id`, `app`, `name`, `state`, `profile`, and
155
+ * one `profile.<path>` per profile leaf (`path: true`, so the rail nests them).
156
+ */
157
+ fields: ExpressionFieldSource[];
158
+ }
142
159
  /** Known variable/secret names offered in an ExpressionInput's insert menu. */
143
160
  export interface ExpressionOptions {
144
161
  vars?: string[];
@@ -148,6 +165,11 @@ export interface ExpressionOptions {
148
165
  * only — there is deliberately no create callback.
149
166
  */
150
167
  constants?: string[];
168
+ /**
169
+ * The workflow's connection bindings (`connections.<name>.profile.<field>`). Workflow context
170
+ * only; values for the preview ride {@link sampleValues} as whole `connections.<name>` objects.
171
+ */
172
+ connections?: ExpressionConnectionSource[];
151
173
  secrets?: string[];
152
174
  /**
153
175
  * Function/run input keys in scope (`inputs.<name>`). Present when the field
@@ -4,7 +4,7 @@ import { ReactNode } from 'react';
4
4
  * never for the studio component that happened to draw it, so a caller asks for
5
5
  * `icon="history"` rather than `icon="history-icon-tsx"`.
6
6
  */
7
- export type IconName = "edit" | "edit-2" | "delete" | "copy" | "check" | "close" | "history" | "info" | "clock" | "json" | "code" | "sync" | "cloud-download" | "eye" | "play" | "stop" | "warning" | "file-text" | "settings" | "github" | "user" | "bot" | "users" | "logout" | "id-card" | "dashboard" | "pulse" | "workflow" | "globe" | "lambda" | "sliders" | "file" | "plug" | "grid" | "folder" | "git-branch" | "coin" | "building" | "server" | "price-tag" | "lang-node" | "terminal" | "lang-python" | "lang-curl" | "sun" | "moon" | "circle-half" | "layout" | "run" | "pause" | "ban" | "trash" | "maximize" | "form" | "braces" | "settings-2" | "sticky-note" | "frame" | "bold" | "grip" | "chevron-down" | "database" | "archive" | "key" | "eye-off" | "more-horizontal";
7
+ export type IconName = "edit" | "edit-2" | "delete" | "copy" | "check" | "close" | "history" | "info" | "clock" | "json" | "code" | "sync" | "cloud-download" | "eye" | "play" | "stop" | "warning" | "file-text" | "settings" | "github" | "user" | "bot" | "users" | "logout" | "id-card" | "dashboard" | "pulse" | "workflow" | "globe" | "lambda" | "sliders" | "file" | "plug" | "grid" | "folder" | "git-branch" | "coin" | "building" | "server" | "price-tag" | "lang-node" | "terminal" | "lang-python" | "lang-curl" | "sun" | "moon" | "circle-half" | "layout" | "run" | "pause" | "ban" | "trash" | "maximize" | "form" | "braces" | "settings-2" | "sticky-note" | "frame" | "bold" | "grip" | "chevron-down" | "chevron-up" | "external-link" | "panel-bottom" | "database" | "archive" | "key" | "eye-off" | "more-horizontal";
8
8
  /**
9
9
  * Which attributes the shared `<svg>` root carries — i.e. how the glyph is
10
10
  * painted. The sources are not uniform, and forcing them into one shape would