@octaviaflow/core 3.1.0-beta.67 → 3.1.0-beta.69
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-64R3BAO7.js +2755 -0
- package/dist/chunk-64R3BAO7.js.map +1 -0
- package/dist/chunk-7S3CSRRV.js +5700 -0
- package/dist/chunk-7S3CSRRV.js.map +1 -0
- package/dist/chunk-JMSZOWT2.js +2616 -0
- package/dist/chunk-JMSZOWT2.js.map +1 -0
- package/dist/chunk-KCA7V5VN.js +5752 -0
- package/dist/chunk-KCA7V5VN.js.map +1 -0
- package/dist/chunk-KQKD4Z4H.js +1682 -0
- package/dist/chunk-KQKD4Z4H.js.map +1 -0
- package/dist/chunk-KZP2MNBO.js +2516 -0
- package/dist/chunk-KZP2MNBO.js.map +1 -0
- package/dist/chunk-PWCRELX4.js +5700 -0
- package/dist/chunk-PWCRELX4.js.map +1 -0
- package/dist/chunk-S4LE4BFQ.js +5934 -0
- package/dist/chunk-S4LE4BFQ.js.map +1 -0
- package/dist/chunk-U5T63SPL.js +5695 -0
- package/dist/chunk-U5T63SPL.js.map +1 -0
- package/dist/chunk-X7YETDK7.js +107 -0
- package/dist/chunk-X7YETDK7.js.map +1 -0
- package/dist/chunk-YIPBLM3G.js +2698 -0
- package/dist/chunk-YIPBLM3G.js.map +1 -0
- package/dist/components/Tabs/Tabs.d.ts.map +1 -1
- package/dist/components/WorkflowShowcase/ShowcaseScene.d.ts +20 -0
- package/dist/components/WorkflowShowcase/ShowcaseScene.d.ts.map +1 -0
- package/dist/components/WorkflowShowcase/ShowcaseSignup.d.ts +14 -0
- package/dist/components/WorkflowShowcase/ShowcaseSignup.d.ts.map +1 -0
- package/dist/components/WorkflowShowcase/WorkflowShowcase.d.ts +48 -0
- package/dist/components/WorkflowShowcase/WorkflowShowcase.d.ts.map +1 -0
- package/dist/components/WorkflowShowcase/index.d.ts +3 -0
- package/dist/components/WorkflowShowcase/index.d.ts.map +1 -0
- package/dist/components/WorkflowShowcase/showcaseEngine.d.ts +102 -0
- package/dist/components/WorkflowShowcase/showcaseEngine.d.ts.map +1 -0
- package/dist/index.cjs +5 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +18795 -25817
- package/dist/index.js.map +1 -1
- package/dist/marketing/components/AssistantTranscript/AssistantTranscript.d.ts +15 -0
- package/dist/marketing/components/AssistantTranscript/AssistantTranscript.d.ts.map +1 -0
- package/dist/marketing/components/BackedBy/BackedBy.d.ts +17 -0
- package/dist/marketing/components/BackedBy/BackedBy.d.ts.map +1 -0
- package/dist/marketing/components/BetaAccessForm/BetaAccessForm.d.ts +36 -0
- package/dist/marketing/components/BetaAccessForm/BetaAccessForm.d.ts.map +1 -0
- package/dist/marketing/components/BlogGrid/BlogGrid.d.ts +32 -0
- package/dist/marketing/components/BlogGrid/BlogGrid.d.ts.map +1 -0
- package/dist/marketing/components/ContactForm/ContactForm.d.ts +31 -0
- package/dist/marketing/components/ContactForm/ContactForm.d.ts.map +1 -0
- package/dist/marketing/components/CtaBanner/CtaBanner.d.ts +16 -0
- package/dist/marketing/components/CtaBanner/CtaBanner.d.ts.map +1 -0
- package/dist/marketing/components/FaqSection/FaqSection.d.ts +13 -0
- package/dist/marketing/components/FaqSection/FaqSection.d.ts.map +1 -0
- package/dist/marketing/components/FeatureGrid/FeatureGrid.d.ts +15 -0
- package/dist/marketing/components/FeatureGrid/FeatureGrid.d.ts.map +1 -0
- package/dist/marketing/components/IntegrationsFinder/IntegrationsFinder.d.ts +32 -0
- package/dist/marketing/components/IntegrationsFinder/IntegrationsFinder.d.ts.map +1 -0
- package/dist/marketing/components/IntegrationsWall/IntegrationsWall.d.ts +21 -0
- package/dist/marketing/components/IntegrationsWall/IntegrationsWall.d.ts.map +1 -0
- package/dist/marketing/components/LiveConsole/LiveConsole.d.ts +21 -0
- package/dist/marketing/components/LiveConsole/LiveConsole.d.ts.map +1 -0
- package/dist/marketing/components/LogoMarquee/LogoMarquee.d.ts +18 -0
- package/dist/marketing/components/LogoMarquee/LogoMarquee.d.ts.map +1 -0
- package/dist/marketing/components/MarketingFooter/MarketingFooter.d.ts +30 -0
- package/dist/marketing/components/MarketingFooter/MarketingFooter.d.ts.map +1 -0
- package/dist/marketing/components/MarketingHero/MarketingHero.d.ts +11 -0
- package/dist/marketing/components/MarketingHero/MarketingHero.d.ts.map +1 -0
- package/dist/marketing/components/MarketingNav/MarketingNav.d.ts +17 -0
- package/dist/marketing/components/MarketingNav/MarketingNav.d.ts.map +1 -0
- package/dist/marketing/components/MarketingSection/MarketingSection.d.ts +15 -0
- package/dist/marketing/components/MarketingSection/MarketingSection.d.ts.map +1 -0
- package/dist/marketing/components/PageHero/PageHero.d.ts +12 -0
- package/dist/marketing/components/PageHero/PageHero.d.ts.map +1 -0
- package/dist/marketing/components/PricingTiers/PricingTiers.d.ts +29 -0
- package/dist/marketing/components/PricingTiers/PricingTiers.d.ts.map +1 -0
- package/dist/marketing/components/StatBand/StatBand.d.ts +16 -0
- package/dist/marketing/components/StatBand/StatBand.d.ts.map +1 -0
- package/dist/marketing/components/TestimonialStrip/TestimonialStrip.d.ts +24 -0
- package/dist/marketing/components/TestimonialStrip/TestimonialStrip.d.ts.map +1 -0
- package/dist/marketing/components/WorkflowShowcase/ShowcaseScene.d.ts +22 -0
- package/dist/marketing/components/WorkflowShowcase/ShowcaseScene.d.ts.map +1 -0
- package/dist/marketing/components/WorkflowShowcase/ShowcaseSignup.d.ts +14 -0
- package/dist/marketing/components/WorkflowShowcase/ShowcaseSignup.d.ts.map +1 -0
- package/dist/marketing/components/WorkflowShowcase/WorkflowShowcase.d.ts +56 -0
- package/dist/marketing/components/WorkflowShowcase/WorkflowShowcase.d.ts.map +1 -0
- package/dist/marketing/components/WorkflowShowcase/index.d.ts +3 -0
- package/dist/marketing/components/WorkflowShowcase/index.d.ts.map +1 -0
- package/dist/marketing/components/WorkflowShowcase/showcaseEngine.d.ts +104 -0
- package/dist/marketing/components/WorkflowShowcase/showcaseEngine.d.ts.map +1 -0
- package/dist/marketing/glyphs.d.ts +20 -0
- package/dist/marketing/glyphs.d.ts.map +1 -0
- package/dist/marketing/index.d.ts +23 -0
- package/dist/marketing/index.d.ts.map +1 -0
- package/dist/marketing.cjs +6581 -0
- package/dist/marketing.cjs.map +1 -0
- package/dist/marketing.js +2602 -0
- package/dist/marketing.js.map +1 -0
- package/dist/styles.css +1 -1
- package/dist/workflow/components/HttpActionPanel/HttpActionPanel.d.ts +29 -0
- package/dist/workflow/components/HttpActionPanel/HttpActionPanel.d.ts.map +1 -0
- package/dist/workflow/components/HttpActionPanel/httpActionTypes.d.ts +135 -0
- package/dist/workflow/components/HttpActionPanel/httpActionTypes.d.ts.map +1 -0
- package/dist/workflow/index.d.ts +2 -0
- package/dist/workflow/index.d.ts.map +1 -1
- package/dist/workflow.cjs +6931 -271
- package/dist/workflow.cjs.map +1 -1
- package/dist/workflow.js +1591 -56
- package/dist/workflow.js.map +1 -1
- package/package.json +6 -1
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import { type WorkflowShowcaseConnector } from "./showcaseEngine";
|
|
3
|
+
export interface ShowcaseSceneNode {
|
|
4
|
+
connector: WorkflowShowcaseConnector;
|
|
5
|
+
/** Whether this node's step has completed (wires + particles light up). */
|
|
6
|
+
active: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface ShowcaseSceneProps {
|
|
9
|
+
left: ShowcaseSceneNode[];
|
|
10
|
+
right: ShowcaseSceneNode[];
|
|
11
|
+
/** Any build/run motion is happening (analyzing → welcome). */
|
|
12
|
+
engaged: boolean;
|
|
13
|
+
/** Platform tile labels (8). */
|
|
14
|
+
tiles: readonly string[];
|
|
15
|
+
/** Center-of-platform icon. Defaults to a gradient core glyph. */
|
|
16
|
+
coreIcon?: ReactNode;
|
|
17
|
+
caption: string;
|
|
18
|
+
}
|
|
19
|
+
export declare function ShowcaseScene({ left, right, engaged, tiles, coreIcon, caption, }: ShowcaseSceneProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
//# sourceMappingURL=ShowcaseScene.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ShowcaseScene.d.ts","sourceRoot":"","sources":["../../../src/components/WorkflowShowcase/ShowcaseScene.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAsB,KAAK,SAAS,EAA+B,MAAM,OAAO,CAAC;AAExF,OAAO,EAAY,KAAK,yBAAyB,EAAE,MAAM,kBAAkB,CAAC;AAY5E,MAAM,WAAW,iBAAiB;IAChC,SAAS,EAAE,yBAAyB,CAAC;IACrC,2EAA2E;IAC3E,MAAM,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,iBAAiB,EAAE,CAAC;IAC1B,KAAK,EAAE,iBAAiB,EAAE,CAAC;IAC3B,+DAA+D;IAC/D,OAAO,EAAE,OAAO,CAAC;IACjB,gCAAgC;IAChC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;IACzB,kEAAkE;IAClE,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;CACjB;AA6ED,wBAAgB,aAAa,CAAC,EAC5B,IAAI,EACJ,KAAK,EACL,OAAO,EACP,KAAK,EACL,QAAQ,EACR,OAAO,GACR,EAAE,kBAAkB,2CA4KpB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type WorkflowShowcasePhase, type WorkflowShowcaseSignupValues } from "./showcaseEngine";
|
|
2
|
+
export interface ShowcaseSignupProps {
|
|
3
|
+
phase: WorkflowShowcasePhase;
|
|
4
|
+
stepCount: number;
|
|
5
|
+
workspaceDomain: string;
|
|
6
|
+
teamSizes: string[];
|
|
7
|
+
error: string | null;
|
|
8
|
+
onSubmit: (values: WorkflowShowcaseSignupValues) => void;
|
|
9
|
+
onBack: () => void;
|
|
10
|
+
dashboardHref?: string;
|
|
11
|
+
onboardingHref?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare function ShowcaseSignup({ phase, stepCount, workspaceDomain, teamSizes, error, onSubmit, onBack, dashboardHref, onboardingHref, }: ShowcaseSignupProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
//# sourceMappingURL=ShowcaseSignup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ShowcaseSignup.d.ts","sourceRoot":"","sources":["../../../src/components/WorkflowShowcase/ShowcaseSignup.tsx"],"names":[],"mappings":"AAQA,OAAO,EAEL,KAAK,qBAAqB,EAC1B,KAAK,4BAA4B,EAClC,MAAM,kBAAkB,CAAC;AAW1B,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,qBAAqB,CAAC;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,QAAQ,EAAE,CAAC,MAAM,EAAE,4BAA4B,KAAK,IAAI,CAAC;IACzD,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAQD,wBAAgB,cAAc,CAAC,EAC7B,KAAK,EACL,SAAS,EACT,eAAe,EACf,SAAS,EACT,KAAK,EACL,QAAQ,EACR,MAAM,EACN,aAAmB,EACnB,cAAoB,GACrB,EAAE,mBAAmB,2CA2LrB"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { type ComponentPropsWithoutRef, type ReactNode } from "react";
|
|
2
|
+
import { type WorkflowShowcaseConnector, type WorkflowShowcaseExample, type WorkflowShowcaseMetric, type WorkflowShowcasePhase, type WorkflowShowcaseSignupValues } from "./showcaseEngine";
|
|
3
|
+
export interface WorkflowShowcaseBuildDetail {
|
|
4
|
+
prompt: string;
|
|
5
|
+
connectors: string[];
|
|
6
|
+
schedule: string;
|
|
7
|
+
}
|
|
8
|
+
export interface WorkflowShowcaseProps extends Omit<ComponentPropsWithoutRef<"section">, "onSubmit"> {
|
|
9
|
+
/** Connector catalog to recognize/pick from. Vendor-neutral by default. */
|
|
10
|
+
connectors?: WorkflowShowcaseConnector[];
|
|
11
|
+
/** "TRY:" example chips. */
|
|
12
|
+
examples?: WorkflowShowcaseExample[];
|
|
13
|
+
/** Right-rail metric cards. */
|
|
14
|
+
metrics?: WorkflowShowcaseMetric[];
|
|
15
|
+
/** Pre-filled prompt text. */
|
|
16
|
+
defaultPrompt?: string;
|
|
17
|
+
/** Mono label at the right edge of the toolbar. */
|
|
18
|
+
modelLabel?: string;
|
|
19
|
+
/** Mono label in the canvas header. */
|
|
20
|
+
canvasLabel?: string;
|
|
21
|
+
/** Header of the live activity rail. */
|
|
22
|
+
railLabel?: string;
|
|
23
|
+
/** Labels for the 8 platform tiles in the scene. */
|
|
24
|
+
platformTiles?: readonly string[];
|
|
25
|
+
/** Icon on the core cube. */
|
|
26
|
+
coreIcon?: ReactNode;
|
|
27
|
+
/** Catalog-size figure used in coach copy, e.g. "600+". */
|
|
28
|
+
catalogNote?: string;
|
|
29
|
+
/** Team-size choices in the signup form. */
|
|
30
|
+
teamSizes?: string[];
|
|
31
|
+
/** Domain used for the workspace-slug preview in the welcome card. */
|
|
32
|
+
workspaceDomain?: string;
|
|
33
|
+
dashboardHref?: string;
|
|
34
|
+
onboardingHref?: string;
|
|
35
|
+
/** Accessible label for the prompt textarea. */
|
|
36
|
+
promptAriaLabel?: string;
|
|
37
|
+
/** Fires when a build kicks off (analytics hook). */
|
|
38
|
+
onBuild?: (detail: WorkflowShowcaseBuildDetail) => void;
|
|
39
|
+
/** Fires on every phase transition (analytics hook). */
|
|
40
|
+
onPhaseChange?: (phase: WorkflowShowcasePhase) => void;
|
|
41
|
+
/**
|
|
42
|
+
* Real signup handler. Resolve → welcome card; throw → inline error and
|
|
43
|
+
* back to the form. Omit to simulate provisioning (pure demo mode).
|
|
44
|
+
*/
|
|
45
|
+
onSignup?: (values: WorkflowShowcaseSignupValues) => Promise<void> | void;
|
|
46
|
+
}
|
|
47
|
+
export declare function WorkflowShowcase({ connectors, examples, metrics, defaultPrompt, modelLabel, canvasLabel, railLabel, platformTiles, coreIcon, catalogNote, teamSizes, workspaceDomain, dashboardHref, onboardingHref, promptAriaLabel, onBuild, onPhaseChange, onSignup, className, ...rest }: WorkflowShowcaseProps): import("react/jsx-runtime").JSX.Element;
|
|
48
|
+
//# sourceMappingURL=WorkflowShowcase.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WorkflowShowcase.d.ts","sourceRoot":"","sources":["../../../src/components/WorkflowShowcase/WorkflowShowcase.tsx"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,wBAAwB,EAE7B,KAAK,SAAS,EAMf,MAAM,OAAO,CAAC;AAMf,OAAO,EAcL,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAE1B,KAAK,4BAA4B,EAClC,MAAM,kBAAkB,CAAC;AAa1B,MAAM,WAAW,2BAA2B;IAC1C,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,qBACf,SAAQ,IAAI,CAAC,wBAAwB,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC;IAC7D,2EAA2E;IAC3E,UAAU,CAAC,EAAE,yBAAyB,EAAE,CAAC;IACzC,4BAA4B;IAC5B,QAAQ,CAAC,EAAE,uBAAuB,EAAE,CAAC;IACrC,+BAA+B;IAC/B,OAAO,CAAC,EAAE,sBAAsB,EAAE,CAAC;IACnC,8BAA8B;IAC9B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,mDAAmD;IACnD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,uCAAuC;IACvC,WAAW,CAAC,EAAE,M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W_SHOWCASE_DEFAULT_TILES, WORKFLOW_SHOWCASE_SCHEDULES, type WorkflowShowcaseConnector, type WorkflowShowcaseExample, type WorkflowShowcaseMetric, type WorkflowShowcasePhase, type WorkflowShowcaseRole, type WorkflowShowcaseSignupValues, } from "./showcaseEngine";
|
|
2
|
+
export { WorkflowShowcase, type WorkflowShowcaseBuildDetail, type WorkflowShowcaseProps, } from "./WorkflowShowcase";
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/WorkflowShowcase/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oCAAoC,EACpC,kCAAkC,EAClC,iCAAiC,EACjC,+BAA+B,EAC/B,2BAA2B,EAC3B,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,4BAA4B,GAClC,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,gBAAgB,EAChB,KAAK,2BAA2B,EAChC,KAAK,qBAAqB,GAC3B,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
export type WorkflowShowcaseRole = "source" | "destination" | "action" | "notify";
|
|
3
|
+
export interface WorkflowShowcaseConnector {
|
|
4
|
+
/** Canonical display name — matched case-insensitively inside the prompt. */
|
|
5
|
+
name: string;
|
|
6
|
+
role: WorkflowShowcaseRole;
|
|
7
|
+
/** Extra strings that also count as a mention of this connector. */
|
|
8
|
+
aliases?: string[];
|
|
9
|
+
/** Optional icon tile. Defaults to a two-letter monogram. */
|
|
10
|
+
icon?: ReactNode;
|
|
11
|
+
}
|
|
12
|
+
export interface WorkflowShowcaseExample {
|
|
13
|
+
id: string;
|
|
14
|
+
/** Chip label, e.g. "Storefront orders → Warehouse, hourly". */
|
|
15
|
+
label: string;
|
|
16
|
+
/** Prompt inserted (and auto-built) when the chip is clicked. */
|
|
17
|
+
prompt: string;
|
|
18
|
+
}
|
|
19
|
+
export interface WorkflowShowcaseMetric {
|
|
20
|
+
id: string;
|
|
21
|
+
/** Final value once the pipeline reads as live. */
|
|
22
|
+
value: number;
|
|
23
|
+
/** Interim value while the workflow is still assembling. Omit → "—". */
|
|
24
|
+
buildingValue?: number;
|
|
25
|
+
decimals?: number;
|
|
26
|
+
/** Small unit text after the value, e.g. "rows/min". */
|
|
27
|
+
unit?: string;
|
|
28
|
+
/** Rendered before the number, e.g. "−". */
|
|
29
|
+
prefix?: string;
|
|
30
|
+
/** Rendered flush after the number, e.g. "%". */
|
|
31
|
+
suffix?: string;
|
|
32
|
+
/** Mono microcopy under the value, e.g. "THROUGHPUT". */
|
|
33
|
+
label: string;
|
|
34
|
+
/** "success" tints the final value green (savings, wins). */
|
|
35
|
+
tone?: "default" | "success";
|
|
36
|
+
}
|
|
37
|
+
export type WorkflowShowcasePhase = "idle" | "analyzing" | "building" | "done" | "signup" | "creating" | "welcome";
|
|
38
|
+
/** Phases in which the generated workflow reads as complete. */
|
|
39
|
+
export declare const SETTLED_PHASES: readonly WorkflowShowcasePhase[];
|
|
40
|
+
export interface WorkflowShowcasePlan {
|
|
41
|
+
/** Sources, in catalog order. */
|
|
42
|
+
left: WorkflowShowcaseConnector[];
|
|
43
|
+
/** Destination → action → notify, in that order. */
|
|
44
|
+
right: WorkflowShowcaseConnector[];
|
|
45
|
+
/** Every connector in the plan (left + right). */
|
|
46
|
+
all: WorkflowShowcaseConnector[];
|
|
47
|
+
/** Total assemble steps: each source + schema map + each right-side node. */
|
|
48
|
+
totalSteps: number;
|
|
49
|
+
}
|
|
50
|
+
export interface WorkflowShowcaseSignupValues {
|
|
51
|
+
name: string;
|
|
52
|
+
email: string;
|
|
53
|
+
company: string;
|
|
54
|
+
teamSize: string;
|
|
55
|
+
}
|
|
56
|
+
export interface ShowcaseActivityLine {
|
|
57
|
+
id: string;
|
|
58
|
+
text: string;
|
|
59
|
+
tone: "muted" | "faint" | "active" | "done" | "plain";
|
|
60
|
+
}
|
|
61
|
+
export interface ShowcasePromptSegment {
|
|
62
|
+
text: string;
|
|
63
|
+
/** Set when this segment is a recognized connector mention. */
|
|
64
|
+
connector?: WorkflowShowcaseConnector;
|
|
65
|
+
}
|
|
66
|
+
export declare const WORKFLOW_SHOWCASE_DEFAULT_CONNECTORS: WorkflowShowcaseConnector[];
|
|
67
|
+
export declare const WORKFLOW_SHOWCASE_DEFAULT_EXAMPLES: WorkflowShowcaseExample[];
|
|
68
|
+
export declare const WORKFLOW_SHOWCASE_DEFAULT_METRICS: WorkflowShowcaseMetric[];
|
|
69
|
+
export declare const WORKFLOW_SHOWCASE_SCHEDULES: readonly ["AUTO", "HOURLY", "DAILY", "REAL-TIME"];
|
|
70
|
+
export declare const WORKFLOW_SHOWCASE_DEFAULT_TILES: readonly ["ELT", "CDC", "DAG", "CRON", "HEAL", "COST", "API", "LOG"];
|
|
71
|
+
/** Connector names mentioned in the prompt, in catalog order, deduped. */
|
|
72
|
+
export declare function detectConnectors(prompt: string, catalog: WorkflowShowcaseConnector[]): string[];
|
|
73
|
+
/** Split the prompt into plain / recognized-connector segments, preserving
|
|
74
|
+
* the user's exact text. Powers the live-highlight overlay. */
|
|
75
|
+
export declare function segmentPrompt(prompt: string, catalog: WorkflowShowcaseConnector[]): ShowcasePromptSegment[];
|
|
76
|
+
/** Infer a schedule from natural language; null when nothing matches. */
|
|
77
|
+
export declare function scheduleFromPrompt(prompt: string): string | null;
|
|
78
|
+
/** Two-letter monogram for the default icon tile: "Team Chat" → "TC". */
|
|
79
|
+
export declare function monogram(name: string): string;
|
|
80
|
+
/**
|
|
81
|
+
* Resolve the workflow plan from explicit picks + prompt mentions. A viable
|
|
82
|
+
* demo always has at least one source and one non-source, so missing sides
|
|
83
|
+
* are backfilled from the catalog (first source / first notify-or-destination).
|
|
84
|
+
*/
|
|
85
|
+
export declare function resolvePlan(selected: string[], detected: string[], catalog: WorkflowShowcaseConnector[]): WorkflowShowcasePlan;
|
|
86
|
+
/** Ordered assemble steps for the rail + canvas ("storefront extract", …). */
|
|
87
|
+
export declare function assembleSteps(plan: WorkflowShowcasePlan): string[];
|
|
88
|
+
/**
|
|
89
|
+
* Script the "OCTAVIA IS DOING" rail for the current moment.
|
|
90
|
+
* `shown` = number of assemble steps already completed while building.
|
|
91
|
+
*/
|
|
92
|
+
export declare function buildActivity(args: {
|
|
93
|
+
phase: WorkflowShowcasePhase;
|
|
94
|
+
shown: number;
|
|
95
|
+
plan: WorkflowShowcasePlan;
|
|
96
|
+
selected: string[];
|
|
97
|
+
status: string;
|
|
98
|
+
}): ShowcaseActivityLine[];
|
|
99
|
+
/** "Acme Inc." → "acme-inc" (workspace slug preview in the welcome card). */
|
|
100
|
+
export declare function slugify(value: string): string;
|
|
101
|
+
export declare function isValidEmail(value: string): boolean;
|
|
102
|
+
//# sourceMappingURL=showcaseEngine.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"showcaseEngine.d.ts","sourceRoot":"","sources":["../../../src/components/WorkflowShowcase/showcaseEngine.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAWvC,MAAM,MAAM,oBAAoB,GAAG,QAAQ,GAAG,aAAa,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAElF,MAAM,WAAW,yBAAyB;IACxC,6EAA6E;IAC7E,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,oBAAoB,CAAC;IAC3B,oEAAoE;IACpE,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,6DAA6D;IAC7D,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB;AAED,MAAM,WAAW,uBAAuB;IACtC,EAAE,EAAE,MAAM,CAAC;IACX,gEAAgE;IAChE,KAAK,EAAE,MAAM,CAAC;IACd,iEAAiE;IACjE,MAAM,EAAE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B;AAMD,6EAA6E;AAC7E,wBAAgB,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAQ7C;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAEnD"}
|
package/dist/index.cjs
CHANGED
|
@@ -35352,6 +35352,11 @@ function TabButton({
|
|
|
35352
35352
|
const { tabProps } = (0, import_react_aria14.useTab)({ key: item.key }, state, ref);
|
|
35353
35353
|
const isSelected = state.selectedKey === item.key;
|
|
35354
35354
|
const isDisabled = state.disabledKeys.has(item.key);
|
|
35355
|
+
(0, import_react166.useEffect)(() => {
|
|
35356
|
+
if (isSelected) {
|
|
35357
|
+
ref.current?.scrollIntoView?.({ block: "nearest", inline: "nearest" });
|
|
35358
|
+
}
|
|
35359
|
+
}, [isSelected]);
|
|
35355
35360
|
const { onDrag, onDragStart, onDragEnd, onAnimationStart, ...safeTabProps } = tabProps;
|
|
35356
35361
|
return /* @__PURE__ */ (0, import_jsx_runtime149.jsxs)(
|
|
35357
35362
|
import_framer_motion35.motion.div,
|