@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,107 @@
|
|
|
1
|
+
import {
|
|
2
|
+
cn
|
|
3
|
+
} from "./chunk-ZAUUGK2Y.js";
|
|
4
|
+
|
|
5
|
+
// src/components/CountUp/CountUp.tsx
|
|
6
|
+
import {
|
|
7
|
+
forwardRef,
|
|
8
|
+
useEffect,
|
|
9
|
+
useRef,
|
|
10
|
+
useState
|
|
11
|
+
} from "react";
|
|
12
|
+
import { jsxs } from "react/jsx-runtime";
|
|
13
|
+
var easeLinear = (t) => t;
|
|
14
|
+
var easeOutCubic = (t) => 1 - Math.pow(1 - t, 3);
|
|
15
|
+
var easeOutQuart = (t) => 1 - Math.pow(1 - t, 4);
|
|
16
|
+
var easeOutExpo = (t) => t === 1 ? 1 : 1 - Math.pow(2, -10 * t);
|
|
17
|
+
var CountUp = forwardRef(
|
|
18
|
+
function CountUp2({
|
|
19
|
+
value,
|
|
20
|
+
from = 0,
|
|
21
|
+
duration = 800,
|
|
22
|
+
easing = easeOutCubic,
|
|
23
|
+
decimals = 0,
|
|
24
|
+
formatValue,
|
|
25
|
+
prefix,
|
|
26
|
+
suffix,
|
|
27
|
+
delay = 0,
|
|
28
|
+
disableAnimation = false,
|
|
29
|
+
onComplete,
|
|
30
|
+
className,
|
|
31
|
+
...rest
|
|
32
|
+
}, ref) {
|
|
33
|
+
const [n, setN] = useState(disableAnimation ? value : from);
|
|
34
|
+
const lastRendered = useRef(disableAnimation ? value : from);
|
|
35
|
+
useEffect(() => {
|
|
36
|
+
const reduced = typeof window !== "undefined" && window.matchMedia?.("(prefers-reduced-motion: reduce)").matches;
|
|
37
|
+
if (disableAnimation || reduced) {
|
|
38
|
+
setN(value);
|
|
39
|
+
lastRendered.current = value;
|
|
40
|
+
onComplete?.();
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
const startValue = lastRendered.current;
|
|
44
|
+
const delta = value - startValue;
|
|
45
|
+
if (delta === 0) return;
|
|
46
|
+
let raf = null;
|
|
47
|
+
let timeoutId = null;
|
|
48
|
+
let startTime = null;
|
|
49
|
+
let cancelled = false;
|
|
50
|
+
const tick = (ts) => {
|
|
51
|
+
if (cancelled) return;
|
|
52
|
+
if (startTime === null) startTime = ts;
|
|
53
|
+
const t = Math.min(1, (ts - startTime) / Math.max(1, duration));
|
|
54
|
+
const eased = easing(t);
|
|
55
|
+
const current = startValue + delta * eased;
|
|
56
|
+
setN(current);
|
|
57
|
+
lastRendered.current = current;
|
|
58
|
+
if (t < 1) {
|
|
59
|
+
raf = requestAnimationFrame(tick);
|
|
60
|
+
} else {
|
|
61
|
+
lastRendered.current = value;
|
|
62
|
+
setN(value);
|
|
63
|
+
onComplete?.();
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
const start = () => {
|
|
67
|
+
raf = requestAnimationFrame(tick);
|
|
68
|
+
};
|
|
69
|
+
if (delay > 0) {
|
|
70
|
+
timeoutId = window.setTimeout(start, delay);
|
|
71
|
+
} else {
|
|
72
|
+
start();
|
|
73
|
+
}
|
|
74
|
+
return () => {
|
|
75
|
+
cancelled = true;
|
|
76
|
+
if (raf !== null) cancelAnimationFrame(raf);
|
|
77
|
+
if (timeoutId !== null) window.clearTimeout(timeoutId);
|
|
78
|
+
};
|
|
79
|
+
}, [value, duration, delay, disableAnimation]);
|
|
80
|
+
const display = formatValue ? formatValue(n) : n.toFixed(decimals);
|
|
81
|
+
return /* @__PURE__ */ jsxs(
|
|
82
|
+
"span",
|
|
83
|
+
{
|
|
84
|
+
...rest,
|
|
85
|
+
ref,
|
|
86
|
+
className: cn("ods-count-up", className),
|
|
87
|
+
"aria-live": "polite",
|
|
88
|
+
"aria-atomic": "true",
|
|
89
|
+
children: [
|
|
90
|
+
prefix,
|
|
91
|
+
display,
|
|
92
|
+
suffix
|
|
93
|
+
]
|
|
94
|
+
}
|
|
95
|
+
);
|
|
96
|
+
}
|
|
97
|
+
);
|
|
98
|
+
CountUp.displayName = "CountUp";
|
|
99
|
+
|
|
100
|
+
export {
|
|
101
|
+
easeLinear,
|
|
102
|
+
easeOutCubic,
|
|
103
|
+
easeOutQuart,
|
|
104
|
+
easeOutExpo,
|
|
105
|
+
CountUp
|
|
106
|
+
};
|
|
107
|
+
//# sourceMappingURL=chunk-X7YETDK7.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/CountUp/CountUp.tsx"],"sourcesContent":["\"use client\";\nimport {\n type ComponentPropsWithoutRef,\n forwardRef,\n type ReactNode,\n useEffect,\n useRef,\n useState,\n} from \"react\";\nimport { cn } from \"../../utils/cn\";\n\n/* ---------------------------------------------------------------------------\n * CountUp — animated numeric counter.\n *\n * For ETL / orchestration dashboards: rows processed, runs completed,\n * MRR, throughput totals. Pairs naturally with `Sparkline` and `Stat`.\n *\n * The animation is implementation-light — a `requestAnimationFrame` loop\n * with a configurable easing function. Skips entirely when the user has\n * `prefers-reduced-motion` enabled or `disableAnimation` is true.\n *\n * Re-runs the tween whenever `value` changes, starting from the previous\n * displayed value (so consecutive updates flow smoothly without a reset\n * to 0).\n * ------------------------------------------------------------------------- */\n\nexport type Easing = (t: number) => number;\n\nexport interface CountUpProps\n extends Omit<\n ComponentPropsWithoutRef<\"span\">,\n // HTMLSpanElement carries a native `prefix` attribute (string) — omit\n // it so our `ReactNode` prefix slot can coexist.\n \"children\" | \"onChange\" | \"prefix\"\n > {\n /** Target value. */\n value: number;\n /** Starting value on FIRST mount. Default 0. */\n from?: number;\n /** Tween duration in ms. Default 800. */\n duration?: number;\n /** Easing function. Default `easeOutCubic`. */\n easing?: Easing;\n /** Decimal places when no `formatValue` is supplied. Default 0. */\n decimals?: number;\n /** Custom formatter — wins over `decimals`. */\n formatValue?: (value: number) => ReactNode;\n /** Inline content before the number. */\n prefix?: ReactNode;\n /** Inline content after the number (e.g. \"%\"). */\n suffix?: ReactNode;\n /** Delay the tween start in ms. */\n delay?: number;\n /**\n * Skip the animation and render `value` immediately. Reads as a\n * \"static mode\" — useful for SSR snapshots or print views.\n */\n disableAnimation?: boolean;\n /** Fires once when the tween settles on the target value. */\n onComplete?: () => void;\n}\n\n/* ---------------------------------------------------------------------------\n * Easings\n * ------------------------------------------------------------------------- */\n\nexport const easeLinear: Easing = (t) => t;\nexport const easeOutCubic: Easing = (t) => 1 - Math.pow(1 - t, 3);\nexport const easeOutQuart: Easing = (t) => 1 - Math.pow(1 - t, 4);\nexport const easeOutExpo: Easing = (t) =>\n t === 1 ? 1 : 1 - Math.pow(2, -10 * t);\n\n/* ---------------------------------------------------------------------------\n * Component\n * ------------------------------------------------------------------------- */\n\nexport const CountUp = forwardRef<HTMLSpanElement, CountUpProps>(\n function CountUp(\n {\n value,\n from = 0,\n duration = 800,\n easing = easeOutCubic,\n decimals = 0,\n formatValue,\n prefix,\n suffix,\n delay = 0,\n disableAnimation = false,\n onComplete,\n className,\n ...rest\n },\n ref,\n ) {\n // The current rendered number. Initialise to `from` on first mount;\n // subsequent renders tween from the previous displayed value.\n const [n, setN] = useState<number>(disableAnimation ? value : from);\n const lastRendered = useRef<number>(disableAnimation ? value : from);\n\n useEffect(() => {\n // Respect prefers-reduced-motion — snap to target without animation.\n const reduced =\n typeof window !== \"undefined\" &&\n window.matchMedia?.(\"(prefers-reduced-motion: reduce)\")\n .matches;\n\n if (disableAnimation || reduced) {\n setN(value);\n lastRendered.current = value;\n onComplete?.();\n return;\n }\n\n const startValue = lastRendered.current;\n const delta = value - startValue;\n if (delta === 0) return;\n\n let raf: number | null = null;\n let timeoutId: number | null = null;\n let startTime: number | null = null;\n let cancelled = false;\n\n const tick = (ts: number) => {\n if (cancelled) return;\n if (startTime === null) startTime = ts;\n const t = Math.min(1, (ts - startTime) / Math.max(1, duration));\n const eased = easing(t);\n const current = startValue + delta * eased;\n setN(current);\n lastRendered.current = current;\n if (t < 1) {\n raf = requestAnimationFrame(tick);\n } else {\n lastRendered.current = value;\n setN(value);\n onComplete?.();\n }\n };\n\n const start = () => {\n raf = requestAnimationFrame(tick);\n };\n\n if (delay > 0) {\n timeoutId = window.setTimeout(start, delay);\n } else {\n start();\n }\n\n return () => {\n cancelled = true;\n if (raf !== null) cancelAnimationFrame(raf);\n if (timeoutId !== null) window.clearTimeout(timeoutId);\n };\n // We intentionally exclude `easing` from deps — it should be a\n // stable function reference. If the consumer changes easing\n // mid-flight, we just pick it up on the next value change.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [value, duration, delay, disableAnimation]);\n\n const display = formatValue ? formatValue(n) : n.toFixed(decimals);\n\n return (\n <span\n {...rest}\n ref={ref}\n className={cn(\"ods-count-up\", className)}\n // aria-live so screen readers announce updates without a stale\n // value lingering. Polite (default for \"status\") avoids\n // interrupting other announcements.\n aria-live=\"polite\"\n aria-atomic=\"true\"\n >\n {prefix}\n {display}\n {suffix}\n </span>\n );\n },\n);\n\nCountUp.displayName = \"CountUp\";\n"],"mappings":";;;;;AACA;AAAA,EAEE;AAAA,EAEA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AA4JD;AAlGC,IAAM,aAAqB,CAAC,MAAM;AAClC,IAAM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