@octaviaflow/core 3.0.18-beta.6 → 3.0.18-beta.8
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/dist/chunk-2NGC7AI3.js +2637 -0
- package/dist/chunk-2NGC7AI3.js.map +1 -0
- package/dist/chunk-2O6K5PLY.js +2637 -0
- package/dist/chunk-2O6K5PLY.js.map +1 -0
- package/dist/chunk-C3UD2AZ5.js +2637 -0
- package/dist/chunk-C3UD2AZ5.js.map +1 -0
- package/dist/chunk-IOKUV7FD.js +2658 -0
- package/dist/chunk-IOKUV7FD.js.map +1 -0
- package/dist/chunk-KYMYNYFV.js +2656 -0
- package/dist/chunk-KYMYNYFV.js.map +1 -0
- package/dist/chunk-PVJXX6GP.js +2640 -0
- package/dist/chunk-PVJXX6GP.js.map +1 -0
- package/dist/components/CsvViewer/CsvViewer.d.ts +51 -0
- package/dist/components/CsvViewer/CsvViewer.d.ts.map +1 -0
- package/dist/components/CsvViewer/index.d.ts +2 -0
- package/dist/components/CsvViewer/index.d.ts.map +1 -0
- package/dist/components/DropdownMenu/DropdownMenu.d.ts +4 -1
- package/dist/components/DropdownMenu/DropdownMenu.d.ts.map +1 -1
- package/dist/components/ExecutionConsole/ExecutionConsole.d.ts +8 -2
- package/dist/components/ExecutionConsole/ExecutionConsole.d.ts.map +1 -1
- package/dist/components/FlowMinimap/FlowMinimap.d.ts +17 -1
- package/dist/components/FlowMinimap/FlowMinimap.d.ts.map +1 -1
- package/dist/components/FlowToolbar/FlowToolbar.d.ts +16 -10
- package/dist/components/FlowToolbar/FlowToolbar.d.ts.map +1 -1
- package/dist/components/JsonViewer/JsonViewer.d.ts +42 -7
- package/dist/components/JsonViewer/JsonViewer.d.ts.map +1 -1
- package/dist/components/JsonViewer/index.d.ts +1 -1
- package/dist/components/JsonViewer/index.d.ts.map +1 -1
- package/dist/components/WorkflowHeader/WorkflowHeader.d.ts +130 -0
- package/dist/components/WorkflowHeader/WorkflowHeader.d.ts.map +1 -0
- package/dist/components/WorkflowHeader/WorkflowHeaderExpanded.d.ts +69 -0
- package/dist/components/WorkflowHeader/WorkflowHeaderExpanded.d.ts.map +1 -0
- package/dist/components/WorkflowHeader/index.d.ts +3 -0
- package/dist/components/WorkflowHeader/index.d.ts.map +1 -0
- package/dist/components/WorkflowHeader/misc/WorkflowHeaderCentered.d.ts +40 -0
- package/dist/components/WorkflowHeader/misc/WorkflowHeaderCentered.d.ts.map +1 -0
- package/dist/components/WorkflowHeader/misc/WorkflowHeaderCommand.d.ts +39 -0
- package/dist/components/WorkflowHeader/misc/WorkflowHeaderCommand.d.ts.map +1 -0
- package/dist/components/WorkflowHeader/misc/WorkflowHeaderMinimal.d.ts +44 -0
- package/dist/components/WorkflowHeader/misc/WorkflowHeaderMinimal.d.ts.map +1 -0
- package/dist/components/WorkflowHeader/misc/WorkflowHeaderRail.d.ts +45 -0
- package/dist/components/WorkflowHeader/misc/WorkflowHeaderRail.d.ts.map +1 -0
- package/dist/components/WorkflowHeader/misc/WorkflowHeaderStudio.d.ts +48 -0
- package/dist/components/WorkflowHeader/misc/WorkflowHeaderStudio.d.ts.map +1 -0
- package/dist/components/WorkflowHeader/misc/WorkflowHeaderTiered.d.ts +52 -0
- package/dist/components/WorkflowHeader/misc/WorkflowHeaderTiered.d.ts.map +1 -0
- package/dist/components/XmlViewer/XmlViewer.d.ts +26 -1
- package/dist/components/XmlViewer/XmlViewer.d.ts.map +1 -1
- package/dist/components/XmlViewer/index.d.ts +1 -1
- package/dist/components/XmlViewer/index.d.ts.map +1 -1
- package/dist/components/YamlViewer/YamlViewer.d.ts +26 -1
- package/dist/components/YamlViewer/YamlViewer.d.ts.map +1 -1
- package/dist/components/YamlViewer/index.d.ts +1 -1
- package/dist/components/YamlViewer/index.d.ts.map +1 -1
- package/dist/hooks/useRelativeTime.d.ts +28 -0
- package/dist/hooks/useRelativeTime.d.ts.map +1 -0
- package/dist/hooks/useWorkflowRuntime.d.ts +20 -0
- package/dist/hooks/useWorkflowRuntime.d.ts.map +1 -0
- package/dist/index.cjs +4423 -3411
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +7 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4243 -3230
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/workflow/components/FlowCanvas/FlowCanvas.d.ts +14 -1
- package/dist/workflow/components/FlowCanvas/FlowCanvas.d.ts.map +1 -1
- package/dist/workflow/index.d.ts +1 -1
- package/dist/workflow/index.d.ts.map +1 -1
- package/dist/workflow/store/selectors.d.ts +12 -0
- package/dist/workflow/store/selectors.d.ts.map +1 -1
- package/dist/workflow.cjs +84 -46
- package/dist/workflow.cjs.map +1 -1
- package/dist/workflow.js +15 -57
- package/dist/workflow.js.map +1 -1
- package/package.json +7 -3
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WorkflowHeaderCommand (DRAFT — not exported from the package).
|
|
3
|
+
*
|
|
4
|
+
* Center-stage command palette trigger (a search input lookalike). Most
|
|
5
|
+
* actions are reachable from the palette, so the action cluster on the
|
|
6
|
+
* right stays minimal (Run/Stop, console, ⋮). Identity sits on the left.
|
|
7
|
+
*
|
|
8
|
+
* ┌──────────────────────────────────────────────────────────────────────┐
|
|
9
|
+
* │ ● HTTP Order Sync [⌘K Search nodes, actions, runs…] Stop ⏏ ⋮ │
|
|
10
|
+
* └──────────────────────────────────────────────────────────────────────┘
|
|
11
|
+
*
|
|
12
|
+
* Why it might win:
|
|
13
|
+
* - For power users who live in keyboard shortcuts, the palette IS the
|
|
14
|
+
* surface — the chrome around it can be very quiet.
|
|
15
|
+
* - Center input acts as a visual anchor and a doing-things-fast affordance.
|
|
16
|
+
*
|
|
17
|
+
* Why it might lose:
|
|
18
|
+
* - First-time users look for buttons, not search inputs.
|
|
19
|
+
* - Hard to balance the center input against the left identity on
|
|
20
|
+
* narrow viewports.
|
|
21
|
+
*/
|
|
22
|
+
import type { ReactNode } from "react";
|
|
23
|
+
import { type DropdownMenuItem } from "../../DropdownMenu";
|
|
24
|
+
export interface WorkflowHeaderCommandProps {
|
|
25
|
+
name: ReactNode;
|
|
26
|
+
statusTone?: "draft" | "active" | "paused" | "error" | "running";
|
|
27
|
+
/** Placeholder shown in the command palette trigger input. */
|
|
28
|
+
commandPlaceholder?: string;
|
|
29
|
+
/** Fires when the palette trigger is clicked or ⌘K pressed. */
|
|
30
|
+
onCommand?: () => void;
|
|
31
|
+
isRunning?: boolean;
|
|
32
|
+
onStop?: () => void;
|
|
33
|
+
isConsoleOpen?: boolean;
|
|
34
|
+
onToggleConsole?: () => void;
|
|
35
|
+
menuItems?: DropdownMenuItem[];
|
|
36
|
+
className?: string;
|
|
37
|
+
}
|
|
38
|
+
export declare function WorkflowHeaderCommand({ name, statusTone, commandPlaceholder, onCommand, isRunning, onStop, isConsoleOpen, onToggleConsole, menuItems, className, }: WorkflowHeaderCommandProps): import("react/jsx-runtime").JSX.Element;
|
|
39
|
+
//# sourceMappingURL=WorkflowHeaderCommand.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WorkflowHeaderCommand.d.ts","sourceRoot":"","sources":["../../../../src/components/WorkflowHeader/misc/WorkflowHeaderCommand.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAQvC,OAAO,EAAgB,KAAK,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAGzE,MAAM,WAAW,0BAA0B;IACzC,IAAI,EAAE,SAAS,CAAC;IAChB,UAAU,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAC;IACjE,8DAA8D;IAC9D,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,+DAA+D;IAC/D,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,SAAS,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,qBAAqB,CAAC,EACpC,IAAI,EACJ,UAAoB,EACpB,kBAAmD,EACnD,SAAS,EACT,SAAS,EACT,MAAM,EACN,aAAa,EACb,eAAe,EACf,SAAS,EACT,SAAS,GACV,EAAE,0BAA0B,2CAmE5B"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WorkflowHeaderMinimal (DRAFT — not exported from the package).
|
|
3
|
+
*
|
|
4
|
+
* Single-row barebones variant for editors embedded inside a larger
|
|
5
|
+
* surface that already provides chrome (back navigation, breadcrumb,
|
|
6
|
+
* environment switching). The DS strip is reduced to:
|
|
7
|
+
*
|
|
8
|
+
* ┌──────────────────────────────────────────────────┐
|
|
9
|
+
* │ ● Name · Saved 12s ago Stop · ⋮ │
|
|
10
|
+
* └──────────────────────────────────────────────────┘
|
|
11
|
+
*
|
|
12
|
+
* What's intentionally NOT here vs the main variant:
|
|
13
|
+
* - No back / breadcrumb (parent surface owns navigation)
|
|
14
|
+
* - No env chip (parent surface owns environment switching)
|
|
15
|
+
* - No console toggle (assumes the host renders the console inline)
|
|
16
|
+
* - No bottom progress shimmer (assumes the host provides ambient
|
|
17
|
+
* "running" feedback elsewhere)
|
|
18
|
+
*
|
|
19
|
+
* Why it might win:
|
|
20
|
+
* - When this header is embedded in a richer parent UI, duplicating
|
|
21
|
+
* navigation and environment controls makes both feel cluttered.
|
|
22
|
+
*
|
|
23
|
+
* Why it might lose:
|
|
24
|
+
* - Loses the "this strip is the entire chrome" pattern that the
|
|
25
|
+
* standalone editor relies on.
|
|
26
|
+
*
|
|
27
|
+
* Imported only by `WorkflowHeader.stories.tsx` for side-by-side review.
|
|
28
|
+
*/
|
|
29
|
+
import type { ReactNode } from "react";
|
|
30
|
+
import { type DropdownMenuItem } from "../../DropdownMenu";
|
|
31
|
+
export interface WorkflowHeaderMinimalProps {
|
|
32
|
+
name: ReactNode;
|
|
33
|
+
/** "draft" | "active" | "paused" | "error" | "running" */
|
|
34
|
+
statusTone?: "draft" | "active" | "paused" | "error" | "running";
|
|
35
|
+
/** Save indicator text. Consumer formats relative time. */
|
|
36
|
+
saveLabel?: string;
|
|
37
|
+
saveError?: string | null;
|
|
38
|
+
isRunning?: boolean;
|
|
39
|
+
onStop?: () => void;
|
|
40
|
+
menuItems?: DropdownMenuItem[];
|
|
41
|
+
className?: string;
|
|
42
|
+
}
|
|
43
|
+
export declare function WorkflowHeaderMinimal({ name, statusTone, saveLabel, saveError, isRunning, onStop, menuItems, className, }: WorkflowHeaderMinimalProps): import("react/jsx-runtime").JSX.Element;
|
|
44
|
+
//# sourceMappingURL=WorkflowHeaderMinimal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WorkflowHeaderMinimal.d.ts","sourceRoot":"","sources":["../../../../src/components/WorkflowHeader/misc/WorkflowHeaderMinimal.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,OAAO,EAAgB,KAAK,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAGzE,MAAM,WAAW,0BAA0B;IACzC,IAAI,EAAE,SAAS,CAAC;IAChB,0DAA0D;IAC1D,UAAU,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAC;IACjE,2DAA2D;IAC3D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,qBAAqB,CAAC,EACpC,IAAI,EACJ,UAAoB,EACpB,SAAS,EACT,SAAS,EACT,SAAS,EACT,MAAM,EACN,SAAS,EACT,SAAS,GACV,EAAE,0BAA0B,2CAsD5B"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WorkflowHeaderRail (DRAFT — not exported from the package).
|
|
3
|
+
*
|
|
4
|
+
* Single row with a 3 px status-coloured stripe on the LEFT edge that
|
|
5
|
+
* runs the full header height. The rail IS the status indicator — no
|
|
6
|
+
* dot needed inline. Reads instantly from the periphery: orange = paused,
|
|
7
|
+
* red = error, blue + animated = running.
|
|
8
|
+
*
|
|
9
|
+
* ┃ ‹ Workflows / HTTP Order Sync · Saved 12s ago Stop · Draft ▎ ⏏ ⋮
|
|
10
|
+
* ┃ ← rail (status-tinted, animates when running)
|
|
11
|
+
*
|
|
12
|
+
* Why it might win:
|
|
13
|
+
* - Status is readable from the periphery without parsing — single
|
|
14
|
+
* vertical line catches the eye like a tab indicator.
|
|
15
|
+
* - No inline status dot frees ~12 px of horizontal space for the title.
|
|
16
|
+
*
|
|
17
|
+
* Why it might lose:
|
|
18
|
+
* - Left-edge accents collide with sidebars/rails the host already uses.
|
|
19
|
+
* - Less discoverable status — first-time users don't know to read it.
|
|
20
|
+
*/
|
|
21
|
+
import type { ReactNode } from "react";
|
|
22
|
+
import { type DropdownMenuItem } from "../../DropdownMenu";
|
|
23
|
+
export interface WorkflowHeaderRailProps {
|
|
24
|
+
name: ReactNode;
|
|
25
|
+
statusTone?: "draft" | "active" | "paused" | "error" | "running";
|
|
26
|
+
onBack?: () => void;
|
|
27
|
+
parentLabel?: ReactNode;
|
|
28
|
+
saveLabel?: string;
|
|
29
|
+
saveError?: string | null;
|
|
30
|
+
isRunning?: boolean;
|
|
31
|
+
onStop?: () => void;
|
|
32
|
+
runtime?: string;
|
|
33
|
+
environment?: {
|
|
34
|
+
label: ReactNode;
|
|
35
|
+
accent?: string;
|
|
36
|
+
title?: string;
|
|
37
|
+
onClick?: () => void;
|
|
38
|
+
};
|
|
39
|
+
isConsoleOpen?: boolean;
|
|
40
|
+
onToggleConsole?: () => void;
|
|
41
|
+
menuItems?: DropdownMenuItem[];
|
|
42
|
+
className?: string;
|
|
43
|
+
}
|
|
44
|
+
export declare function WorkflowHeaderRail({ name, statusTone, onBack, parentLabel, saveLabel, saveError, isRunning, onStop, runtime, environment, isConsoleOpen, onToggleConsole, menuItems, className, }: WorkflowHeaderRailProps): import("react/jsx-runtime").JSX.Element;
|
|
45
|
+
//# sourceMappingURL=WorkflowHeaderRail.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WorkflowHeaderRail.d.ts","sourceRoot":"","sources":["../../../../src/components/WorkflowHeader/misc/WorkflowHeaderRail.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AASvC,OAAO,EAAgB,KAAK,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAGzE,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,SAAS,CAAC;IAChB,UAAU,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAC;IACjE,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE;QAAE,KAAK,EAAE,SAAS,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;KAAE,CAAC;IAC1F,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,SAAS,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,kBAAkB,CAAC,EACjC,IAAI,EACJ,UAAoB,EACpB,MAAM,EACN,WAAoB,EACpB,SAAS,EACT,SAAS,EACT,SAAS,EACT,MAAM,EACN,OAAO,EACP,WAAW,EACX,aAAa,EACb,eAAe,EACf,SAAS,EACT,SAAS,GACV,EAAE,uBAAuB,2CA4FzB"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WorkflowHeaderStudio (DRAFT — not exported from the package).
|
|
3
|
+
*
|
|
4
|
+
* Dashboard-feel single row (60 px tall). The Run / Stop CTA is the
|
|
5
|
+
* visual anchor on the right — primary variant, prominent — making
|
|
6
|
+
* "execute this workflow" the obvious next action. Generous typography.
|
|
7
|
+
*
|
|
8
|
+
* ┌──────────────────────────────────────────────────────────────────────────┐
|
|
9
|
+
* │ ‹ Workflows / ● HTTP Order Sync Draft ▎ ⏏ [▶ Run] ⋮ │
|
|
10
|
+
* │ Saved 12s ago │
|
|
11
|
+
* └──────────────────────────────────────────────────────────────────────────┘
|
|
12
|
+
*
|
|
13
|
+
* Why it might win:
|
|
14
|
+
* - Run is the primary intent in most editor sessions — giving it visual
|
|
15
|
+
* weight reduces hunt-and-click and reads as "tool ready to do work."
|
|
16
|
+
* - 60 px height gives the title room to breathe; save indicator gets a
|
|
17
|
+
* dedicated second line so it's never competing with the title.
|
|
18
|
+
*
|
|
19
|
+
* Why it might lose:
|
|
20
|
+
* - 16 px taller than the default → less canvas.
|
|
21
|
+
* - Big primary CTA at rest can feel demanding on long idle sessions.
|
|
22
|
+
*/
|
|
23
|
+
import type { ReactNode } from "react";
|
|
24
|
+
import { type DropdownMenuItem } from "../../DropdownMenu";
|
|
25
|
+
export interface WorkflowHeaderStudioProps {
|
|
26
|
+
name: ReactNode;
|
|
27
|
+
statusTone?: "draft" | "active" | "paused" | "error" | "running";
|
|
28
|
+
onBack?: () => void;
|
|
29
|
+
parentLabel?: ReactNode;
|
|
30
|
+
saveLabel?: string;
|
|
31
|
+
saveError?: string | null;
|
|
32
|
+
isRunning?: boolean;
|
|
33
|
+
onRun?: () => void;
|
|
34
|
+
onStop?: () => void;
|
|
35
|
+
runtime?: string;
|
|
36
|
+
environment?: {
|
|
37
|
+
label: ReactNode;
|
|
38
|
+
accent?: string;
|
|
39
|
+
title?: string;
|
|
40
|
+
onClick?: () => void;
|
|
41
|
+
};
|
|
42
|
+
isConsoleOpen?: boolean;
|
|
43
|
+
onToggleConsole?: () => void;
|
|
44
|
+
menuItems?: DropdownMenuItem[];
|
|
45
|
+
className?: string;
|
|
46
|
+
}
|
|
47
|
+
export declare function WorkflowHeaderStudio({ name, statusTone, onBack, parentLabel, saveLabel, saveError, isRunning, onRun, onStop, runtime, environment, isConsoleOpen, onToggleConsole, menuItems, className, }: WorkflowHeaderStudioProps): import("react/jsx-runtime").JSX.Element;
|
|
48
|
+
//# sourceMappingURL=WorkflowHeaderStudio.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WorkflowHeaderStudio.d.ts","sourceRoot":"","sources":["../../../../src/components/WorkflowHeader/misc/WorkflowHeaderStudio.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAUvC,OAAO,EAAgB,KAAK,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAGzE,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,SAAS,CAAC;IAChB,UAAU,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAC;IACjE,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,IAAI,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE;QAAE,KAAK,EAAE,SAAS,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;KAAE,CAAC;IAC1F,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,SAAS,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,oBAAoB,CAAC,EACnC,IAAI,EACJ,UAAoB,EACpB,MAAM,EACN,WAAoB,EACpB,SAAS,EACT,SAAS,EACT,SAAS,EACT,KAAK,EACL,MAAM,EACN,OAAO,EACP,WAAW,EACX,aAAa,EACb,eAAe,EACf,SAAS,EACT,SAAS,GACV,EAAE,yBAAyB,2CAgH3B"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WorkflowHeaderTiered (DRAFT — not exported from the package).
|
|
3
|
+
*
|
|
4
|
+
* Two-row variant for editors that need always-visible run metadata
|
|
5
|
+
* underneath the identity row.
|
|
6
|
+
*
|
|
7
|
+
* ┌──────────────────────────────────────────────────────────────────────┐
|
|
8
|
+
* │ ‹ Workflows / ● Name Stop · 00:12 · Env ▎ ⏏ ⋮ │ ← 40 px
|
|
9
|
+
* │ GPT-4o · 2 steps · 0 errors · last run 3m ago · Saved 12s ago │ ← 24 px
|
|
10
|
+
* │ ──────────────────────────────────────────────────────────────────── │ ← shimmer while running
|
|
11
|
+
* └──────────────────────────────────────────────────────────────────────┘
|
|
12
|
+
*
|
|
13
|
+
* Why it might win:
|
|
14
|
+
* - Always-visible execution context (model, step count, errors, etc.)
|
|
15
|
+
* - Save indicator gets dedicated breathing room — never competes with
|
|
16
|
+
* the title for horizontal space
|
|
17
|
+
*
|
|
18
|
+
* Why it might lose:
|
|
19
|
+
* - 64 px total height (40 + 24) costs 20 px of canvas vs the default 44 px
|
|
20
|
+
* - The meta strip can read as noise when the workflow is idle
|
|
21
|
+
*
|
|
22
|
+
* Imported only by `WorkflowHeader.stories.tsx` for side-by-side review.
|
|
23
|
+
*/
|
|
24
|
+
import type { ReactNode } from "react";
|
|
25
|
+
import { type DropdownMenuItem } from "../../DropdownMenu";
|
|
26
|
+
export interface WorkflowHeaderTieredProps {
|
|
27
|
+
name: ReactNode;
|
|
28
|
+
/** "draft" | "active" | "paused" | "error" | "running" */
|
|
29
|
+
statusTone?: "draft" | "active" | "paused" | "error" | "running";
|
|
30
|
+
onBack?: () => void;
|
|
31
|
+
parentLabel?: ReactNode;
|
|
32
|
+
/** Free-form meta line — model, step count, errors, etc. */
|
|
33
|
+
meta?: ReactNode;
|
|
34
|
+
/** Save indicator text. Consumer formats relative time on its side. */
|
|
35
|
+
saveLabel?: string;
|
|
36
|
+
saveError?: string | null;
|
|
37
|
+
isRunning?: boolean;
|
|
38
|
+
onStop?: () => void;
|
|
39
|
+
runtime?: string;
|
|
40
|
+
environment?: {
|
|
41
|
+
label: ReactNode;
|
|
42
|
+
accent?: string;
|
|
43
|
+
title?: string;
|
|
44
|
+
onClick?: () => void;
|
|
45
|
+
};
|
|
46
|
+
isConsoleOpen?: boolean;
|
|
47
|
+
onToggleConsole?: () => void;
|
|
48
|
+
menuItems?: DropdownMenuItem[];
|
|
49
|
+
className?: string;
|
|
50
|
+
}
|
|
51
|
+
export declare function WorkflowHeaderTiered({ name, statusTone, onBack, parentLabel, meta, saveLabel, saveError, isRunning, onStop, runtime, environment, isConsoleOpen, onToggleConsole, menuItems, className, }: WorkflowHeaderTieredProps): import("react/jsx-runtime").JSX.Element;
|
|
52
|
+
//# sourceMappingURL=WorkflowHeaderTiered.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WorkflowHeaderTiered.d.ts","sourceRoot":"","sources":["../../../../src/components/WorkflowHeader/misc/WorkflowHeaderTiered.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAUvC,OAAO,EAAgB,KAAK,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAGzE,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,SAAS,CAAC;IAChB,0DAA0D;IAC1D,UAAU,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAC;IACjE,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,4DAA4D;IAC5D,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,uEAAuE;IACvE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE;QAAE,KAAK,EAAE,SAAS,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;KAAE,CAAC;IAC1F,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,SAAS,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,oBAAoB,CAAC,EACnC,IAAI,EACJ,UAAoB,EACpB,MAAM,EACN,WAAoB,EACpB,IAAI,EACJ,SAAS,EACT,SAAS,EACT,SAAS,EACT,MAAM,EACN,OAAO,EACP,WAAW,EACX,aAAa,EACb,eAAe,EACf,SAAS,EACT,SAAS,GACV,EAAE,yBAAyB,2CAkH3B"}
|
|
@@ -1,7 +1,32 @@
|
|
|
1
1
|
import { type ComponentPropsWithoutRef, type ReactNode } from "react";
|
|
2
|
-
|
|
2
|
+
/** Result reported through `onValidate` after each edit-mode keystroke. */
|
|
3
|
+
export interface XmlViewerValidationResult {
|
|
4
|
+
/** True when the current editor text passes `XMLValidator.validate`. */
|
|
5
|
+
valid: boolean;
|
|
6
|
+
/** Parse error details — only present when `valid` is false. */
|
|
7
|
+
error?: {
|
|
8
|
+
/** 1-indexed line number. */
|
|
9
|
+
line: number;
|
|
10
|
+
/** 1-indexed column number. */
|
|
11
|
+
col: number;
|
|
12
|
+
/** Human-readable error message. */
|
|
13
|
+
message: string;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
export interface XmlViewerProps extends Omit<ComponentPropsWithoutRef<"div">, "title" | "children" | "onChange"> {
|
|
3
17
|
/** Raw XML string. */
|
|
4
18
|
data: string;
|
|
19
|
+
/**
|
|
20
|
+
* `view` (default) — read-only DOM-style tree with collapsible nodes.
|
|
21
|
+
* `edit` — CodeEditor primed with the XML text. `onChange` fires on
|
|
22
|
+
* every keystroke; `onValidate` reports parse success/failure via
|
|
23
|
+
* `fast-xml-parser`'s XMLValidator (line/col accurate across browsers).
|
|
24
|
+
*/
|
|
25
|
+
mode?: "view" | "edit";
|
|
26
|
+
/** Fires on every keystroke in `mode='edit'` with the raw editor text. */
|
|
27
|
+
onChange?: (rawText: string) => void;
|
|
28
|
+
/** Fires after each parse attempt in `mode='edit'`. */
|
|
29
|
+
onValidate?: (result: XmlViewerValidationResult) => void;
|
|
5
30
|
/** Initially expand to N levels deep. Default 2. Use `Infinity` to expand everything. */
|
|
6
31
|
defaultExpandDepth?: number;
|
|
7
32
|
/** Show attributes inline (vs. collapsed). Default true. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"XmlViewer.d.ts","sourceRoot":"","sources":["../../../src/components/XmlViewer/XmlViewer.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"XmlViewer.d.ts","sourceRoot":"","sources":["../../../src/components/XmlViewer/XmlViewer.tsx"],"names":[],"mappings":"AAOA,OAAO,EACL,KAAK,wBAAwB,EAG7B,KAAK,SAAS,EAMf,MAAM,OAAO,CAAC;AASf,2EAA2E;AAC3E,MAAM,WAAW,yBAAyB;IACxC,wEAAwE;IACxE,KAAK,EAAE,OAAO,CAAC;IACf,gEAAgE;IAChE,KAAK,CAAC,EAAE;QACN,6BAA6B;QAC7B,IAAI,EAAE,MAAM,CAAC;QACb,+BAA+B;QAC/B,GAAG,EAAE,MAAM,CAAC;QACZ,oCAAoC;QACpC,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;CACH;AAED,MAAM,WAAW,cACf,SAAQ,IAAI,CAAC,wBAAwB,CAAC,KAAK,CAAC,EAAE,OAAO,GAAG,UAAU,GAAG,UAAU,CAAC;IAChF,sBAAsB;IACtB,IAAI,EAAE,MAAM,CAAC;IACb;;;;;OAKG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,0EAA0E;IAC1E,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,uDAAuD;IACvD,UAAU,CAAC,EAAE,CAAC,MAAM,EAAE,yBAAyB,KAAK,IAAI,CAAC;IACzD,yFAAyF;IACzF,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,4DAA4D;IAC5D,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,oFAAoF;IACpF,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,sBAAsB;IACtB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,0CAA0C;IAC1C,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,4CAA4C;IAC5C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,oEAAoE;IACpE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,gEAAgE;IAChE,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC7B;AAgGD;;;GAGG;AACH,eAAO,MAAM,SAAS,2GAiFrB,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { XmlViewer, type XmlViewerProps } from "./XmlViewer";
|
|
1
|
+
export { XmlViewer, type XmlViewerProps, type XmlViewerValidationResult, } from "./XmlViewer";
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/XmlViewer/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/XmlViewer/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,KAAK,cAAc,EACnB,KAAK,yBAAyB,GAC/B,MAAM,aAAa,CAAC"}
|
|
@@ -1,7 +1,32 @@
|
|
|
1
1
|
import { type ComponentPropsWithoutRef, type ReactNode } from "react";
|
|
2
|
-
|
|
2
|
+
/** Result reported through `onValidate` after each edit-mode keystroke. */
|
|
3
|
+
export interface YamlViewerValidationResult {
|
|
4
|
+
/** True when the current editor text parses as valid YAML. */
|
|
5
|
+
valid: boolean;
|
|
6
|
+
/** Parse error details — only present when `valid` is false. */
|
|
7
|
+
error?: {
|
|
8
|
+
/** 1-indexed line number from the YAML parser. */
|
|
9
|
+
line: number;
|
|
10
|
+
/** 1-indexed column number from the YAML parser. */
|
|
11
|
+
col: number;
|
|
12
|
+
/** Human-readable error message. */
|
|
13
|
+
message: string;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
export interface YamlViewerProps extends Omit<ComponentPropsWithoutRef<"div">, "title" | "children" | "onChange"> {
|
|
3
17
|
/** Raw YAML string OR a parsed object/array (auto-stringified to YAML). */
|
|
4
18
|
data: string | unknown;
|
|
19
|
+
/**
|
|
20
|
+
* `view` (default) — read-only token-highlighted YAML tree.
|
|
21
|
+
* `edit` — CodeEditor primed with the YAML text. `onChange` fires on
|
|
22
|
+
* every keystroke; `onValidate` reports parse success/failure with
|
|
23
|
+
* line/col extracted from the `yaml` parser.
|
|
24
|
+
*/
|
|
25
|
+
mode?: "view" | "edit";
|
|
26
|
+
/** Fires on every keystroke in `mode='edit'` with the raw editor text. */
|
|
27
|
+
onChange?: (rawText: string) => void;
|
|
28
|
+
/** Fires after each parse attempt in `mode='edit'`. */
|
|
29
|
+
onValidate?: (result: YamlViewerValidationResult) => void;
|
|
5
30
|
/** Initially expand to N levels deep. Default 99 (fully expanded). */
|
|
6
31
|
defaultExpandDepth?: number;
|
|
7
32
|
/** Show line numbers at the gutter. Default true. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"YamlViewer.d.ts","sourceRoot":"","sources":["../../../src/components/YamlViewer/YamlViewer.tsx"],"names":[],"mappings":"AAMA,OAAO,EACL,KAAK,wBAAwB,EAG7B,KAAK,SAAS,
|
|
1
|
+
{"version":3,"file":"YamlViewer.d.ts","sourceRoot":"","sources":["../../../src/components/YamlViewer/YamlViewer.tsx"],"names":[],"mappings":"AAMA,OAAO,EACL,KAAK,wBAAwB,EAG7B,KAAK,SAAS,EAMf,MAAM,OAAO,CAAC;AAUf,2EAA2E;AAC3E,MAAM,WAAW,0BAA0B;IACzC,8DAA8D;IAC9D,KAAK,EAAE,OAAO,CAAC;IACf,gEAAgE;IAChE,KAAK,CAAC,EAAE;QACN,kDAAkD;QAClD,IAAI,EAAE,MAAM,CAAC;QACb,oDAAoD;QACpD,GAAG,EAAE,MAAM,CAAC;QACZ,oCAAoC;QACpC,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;CACH;AAED,MAAM,WAAW,eACf,SAAQ,IAAI,CAAC,wBAAwB,CAAC,KAAK,CAAC,EAAE,OAAO,GAAG,UAAU,GAAG,UAAU,CAAC;IAChF,2EAA2E;IAC3E,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,0EAA0E;IAC1E,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,uDAAuD;IACvD,UAAU,CAAC,EAAE,CAAC,MAAM,EAAE,0BAA0B,KAAK,IAAI,CAAC;IAC1D,sEAAsE;IACtE,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,qDAAqD;IACrD,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,iDAAiD;IACjD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,wEAAwE;IACxE,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,sBAAsB;IACtB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,0CAA0C;IAC1C,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,oEAAoE;IACpE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,gEAAgE;IAChE,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC7B;AA4KD;;;GAGG;AACH,eAAO,MAAM,UAAU,4GAkPtB,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { YamlViewer, type YamlViewerProps } from "./YamlViewer";
|
|
1
|
+
export { YamlViewer, type YamlViewerProps, type YamlViewerValidationResult, } from "./YamlViewer";
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/YamlViewer/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/YamlViewer/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,KAAK,eAAe,EACpB,KAAK,0BAA0B,GAChC,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pure relative-time formatter — produces `just now / Xs ago / Xm ago /
|
|
3
|
+
* Xh ago` for the first 24 h, then falls back to a locale date string.
|
|
4
|
+
*
|
|
5
|
+
* @param when Reference timestamp (`Date` or epoch ms). `null` → returns null.
|
|
6
|
+
* @param now The "now" baseline (epoch ms). Defaults to `Date.now()`.
|
|
7
|
+
* Pass the same `now` repeatedly to keep render output stable
|
|
8
|
+
* across many indicators on the same surface.
|
|
9
|
+
*/
|
|
10
|
+
export declare function formatRelativeTime(when: Date | number | null | undefined, now?: number): string | null;
|
|
11
|
+
export interface UseRelativeTimeOptions {
|
|
12
|
+
/**
|
|
13
|
+
* Tick cadence in milliseconds. Default 30 000 (30 s). Drop to 1 000
|
|
14
|
+
* for second-resolution indicators (e.g. a live "uploading"
|
|
15
|
+
* countdown); raise to 60 000+ for slow-changing meta lines.
|
|
16
|
+
*/
|
|
17
|
+
intervalMs?: number;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Live relative-time string. Re-renders the host every `intervalMs`
|
|
21
|
+
* (default 30 s) so the displayed value stays current without the
|
|
22
|
+
* consumer wiring a timer.
|
|
23
|
+
*
|
|
24
|
+
* @param date Timestamp (`Date` or epoch ms). `null` → returns null.
|
|
25
|
+
* @param options Optional config — see {@link UseRelativeTimeOptions}.
|
|
26
|
+
*/
|
|
27
|
+
export declare function useRelativeTime(date: Date | number | null | undefined, options?: UseRelativeTimeOptions): string | null;
|
|
28
|
+
//# sourceMappingURL=useRelativeTime.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useRelativeTime.d.ts","sourceRoot":"","sources":["../../src/hooks/useRelativeTime.ts"],"names":[],"mappings":"AA0BA;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,IAAI,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,EACtC,GAAG,GAAE,MAAmB,GACvB,MAAM,GAAG,IAAI,CAWf;AAED,MAAM,WAAW,sBAAsB;IACrC;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAC7B,IAAI,EAAE,IAAI,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,EACtC,OAAO,GAAE,sBAA2B,GACnC,MAAM,GAAG,IAAI,CAaf"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pure runtime formatter. Use this for static durations (a finished run's
|
|
3
|
+
* total time, a CSV cell, an exported report). For live ticking strings
|
|
4
|
+
* use {@link useWorkflowRuntime}.
|
|
5
|
+
*
|
|
6
|
+
* - Sub-hour runs render as `MM:SS` (two-digit minutes + seconds).
|
|
7
|
+
* - One-hour-and-over runs render as `H:MM:SS` (hour-prefixed).
|
|
8
|
+
* - Negative inputs clamp to 0.
|
|
9
|
+
*/
|
|
10
|
+
export declare function formatWorkflowRuntime(ms: number): string;
|
|
11
|
+
/**
|
|
12
|
+
* Live runtime counter — re-renders the host component once per second
|
|
13
|
+
* while `active` is true. Returns `null` when paused so consumers can
|
|
14
|
+
* render an idle placeholder.
|
|
15
|
+
*
|
|
16
|
+
* @param startedAt Run start time (`Date` or epoch ms). `null` / undefined → returns null.
|
|
17
|
+
* @param active Drives ticking. False stops the interval and returns null.
|
|
18
|
+
*/
|
|
19
|
+
export declare function useWorkflowRuntime(startedAt: Date | number | null | undefined, active: boolean): string | null;
|
|
20
|
+
//# sourceMappingURL=useWorkflowRuntime.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useWorkflowRuntime.d.ts","sourceRoot":"","sources":["../../src/hooks/useWorkflowRuntime.ts"],"names":[],"mappings":"AA2BA;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CAOxD;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAChC,SAAS,EAAE,IAAI,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,EAC3C,MAAM,EAAE,OAAO,GACd,MAAM,GAAG,IAAI,CAef"}
|