@octaviaflow/core 3.1.0-beta.65 → 3.1.0-beta.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.
- package/dist/chunk-5AKA6EJB.js +3003 -0
- package/dist/chunk-5AKA6EJB.js.map +1 -0
- package/dist/chunk-JMSZOWT2.js +2616 -0
- package/dist/chunk-JMSZOWT2.js.map +1 -0
- package/dist/chunk-KZP2MNBO.js +2516 -0
- package/dist/chunk-KZP2MNBO.js.map +1 -0
- package/dist/chunk-S4LE4BFQ.js +5934 -0
- package/dist/chunk-S4LE4BFQ.js.map +1 -0
- package/dist/chunk-X7YETDK7.js +107 -0
- package/dist/chunk-X7YETDK7.js.map +1 -0
- package/dist/components/AgentCard/AgentCard.d.ts +5 -0
- package/dist/components/AgentCard/AgentCard.d.ts.map +1 -1
- package/dist/components/Catalog/Catalog.d.ts +116 -0
- package/dist/components/Catalog/Catalog.d.ts.map +1 -0
- package/dist/components/Catalog/index.d.ts +2 -0
- package/dist/components/Catalog/index.d.ts.map +1 -0
- package/dist/components/ExecutionConsole/ExecutionConsole.d.ts.map +1 -1
- package/dist/components/FlowMinimap/FlowMinimap.d.ts.map +1 -1
- package/dist/components/FlowToolbar/FlowToolbar.d.ts +27 -0
- package/dist/components/FlowToolbar/FlowToolbar.d.ts.map +1 -1
- package/dist/components/FlowToolbar/index.d.ts +1 -1
- package/dist/components/FlowToolbar/index.d.ts.map +1 -1
- package/dist/components/ItemDetail/ItemDetail.d.ts +57 -0
- package/dist/components/ItemDetail/ItemDetail.d.ts.map +1 -0
- package/dist/components/ItemDetail/index.d.ts +2 -0
- package/dist/components/ItemDetail/index.d.ts.map +1 -0
- package/dist/components/MessageBlockBuilder/BlockFieldsEditor.d.ts +18 -0
- package/dist/components/MessageBlockBuilder/BlockFieldsEditor.d.ts.map +1 -0
- package/dist/components/MessageBlockBuilder/MessageBlockBuilder.d.ts +6 -0
- package/dist/components/MessageBlockBuilder/MessageBlockBuilder.d.ts.map +1 -0
- package/dist/components/MessageBlockBuilder/MessagePreview.d.ts +9 -0
- package/dist/components/MessageBlockBuilder/MessagePreview.d.ts.map +1 -0
- package/dist/components/MessageBlockBuilder/TokenPanel.d.ts +17 -0
- package/dist/components/MessageBlockBuilder/TokenPanel.d.ts.map +1 -0
- package/dist/components/MessageBlockBuilder/glyphs.d.ts +18 -0
- package/dist/components/MessageBlockBuilder/glyphs.d.ts.map +1 -0
- package/dist/components/MessageBlockBuilder/index.d.ts +4 -0
- package/dist/components/MessageBlockBuilder/index.d.ts.map +1 -0
- package/dist/components/MessageBlockBuilder/internal.d.ts +33 -0
- package/dist/components/MessageBlockBuilder/internal.d.ts.map +1 -0
- package/dist/components/MessageBlockBuilder/platforms/googleChat.d.ts +7 -0
- package/dist/components/MessageBlockBuilder/platforms/googleChat.d.ts.map +1 -0
- package/dist/components/MessageBlockBuilder/platforms/index.d.ts +7 -0
- package/dist/components/MessageBlockBuilder/platforms/index.d.ts.map +1 -0
- package/dist/components/MessageBlockBuilder/platforms/slack.d.ts +7 -0
- package/dist/components/MessageBlockBuilder/platforms/slack.d.ts.map +1 -0
- package/dist/components/MessageBlockBuilder/platforms/teams.d.ts +7 -0
- package/dist/components/MessageBlockBuilder/platforms/teams.d.ts.map +1 -0
- package/dist/components/MessageBlockBuilder/types.d.ts +183 -0
- package/dist/components/MessageBlockBuilder/types.d.ts.map +1 -0
- package/dist/components/PlanCard/PlanCard.d.ts +35 -0
- package/dist/components/PlanCard/PlanCard.d.ts.map +1 -0
- package/dist/components/PlanCard/index.d.ts +2 -0
- package/dist/components/PlanCard/index.d.ts.map +1 -0
- package/dist/components/PlanPicker/PlanPicker.d.ts +16 -0
- package/dist/components/PlanPicker/PlanPicker.d.ts.map +1 -0
- package/dist/components/PlanPicker/context.d.ts +8 -0
- package/dist/components/PlanPicker/context.d.ts.map +1 -0
- package/dist/components/PlanPicker/index.d.ts +2 -0
- package/dist/components/PlanPicker/index.d.ts.map +1 -0
- package/dist/components/PricingCard/index.d.ts +1 -1
- package/dist/components/PricingCard/index.d.ts.map +1 -1
- package/dist/components/TemplateCard/TemplateCard.d.ts +27 -0
- package/dist/components/TemplateCard/TemplateCard.d.ts.map +1 -1
- package/dist/components/UsageMeter/UsageMeter.d.ts +41 -0
- package/dist/components/UsageMeter/UsageMeter.d.ts.map +1 -0
- package/dist/components/UsageMeter/index.d.ts +2 -0
- package/dist/components/UsageMeter/index.d.ts.map +1 -0
- 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 +16261 -11888
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +8 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +19366 -20520
- 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/CtaBanner/CtaBanner.d.ts +16 -0
- package/dist/marketing/components/CtaBanner/CtaBanner.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/IntegrationsWall/IntegrationsWall.d.ts +19 -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/MarketingFooter/MarketingFooter.d.ts +25 -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/StatBand/StatBand.d.ts +16 -0
- package/dist/marketing/components/StatBand/StatBand.d.ts.map +1 -0
- package/dist/marketing/components/WorkflowShowcase/ShowcaseScene.d.ts +20 -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 +48 -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 +102 -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 +13 -0
- package/dist/marketing/index.d.ts.map +1 -0
- package/dist/marketing.cjs +3985 -0
- package/dist/marketing.cjs.map +1 -0
- package/dist/marketing.js +1669 -0
- package/dist/marketing.js.map +1 -0
- package/dist/styles.css +1 -1
- package/dist/workflow/components/FlowCanvas/FlowCanvas.d.ts +3 -3
- package/dist/workflow/components/FlowCanvas/FlowCanvas.d.ts.map +1 -1
- package/dist/workflow/components/FlowNode/FlowNode.d.ts.map +1 -1
- package/dist/workflow/components/Handle/Handle.d.ts.map +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/components/NodeResizer/NodeResizer.d.ts.map +1 -1
- package/dist/workflow/index.d.ts +2 -0
- package/dist/workflow/index.d.ts.map +1 -1
- package/dist/workflow/layout/dagre.d.ts.map +1 -1
- package/dist/workflow/layout/elk.d.ts.map +1 -1
- package/dist/workflow/layout/types.d.ts +1 -1
- package/dist/workflow/layout/types.d.ts.map +1 -1
- package/dist/workflow/utils/parenting.d.ts +26 -6
- package/dist/workflow/utils/parenting.d.ts.map +1 -1
- package/dist/workflow.cjs +7118 -411
- package/dist/workflow.cjs.map +1 -1
- package/dist/workflow.js +1598 -68
- 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\"\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I,GAAG,QAAQ,CAAC;AAC9D,cAAM,QAAQ,OAAO,CAAC;AACtB,cAAM,UAAU,aAAa,QAAQ;AACrC,aAAK,OAAO;AACZ,qBAAa,UAAU;AACvB,YAAI,IAAI,GAAG;AACT,gBAAM,sBAAsB,IAAI;AAAA,QAClC,OAAO;AACL,uBAAa,UAAU;AACvB,eAAK,KAAK;AACV,uBAAa;AAAA,QACf;AAAA,MACF;AAEA,YAAM,QAAQ,MAAM;AAClB,cAAM,sBAAsB,IAAI;AAAA,MAClC;AAEA,UAAI,QAAQ,GAAG;AACb,oBAAY,OAAO,WAAW,OAAO,KAAK;AAAA,MAC5C,OAAO;AACL,cAAM;AAAA,MACR;AAEA,aAAO,MAAM;AACX,oBAAY;AACZ,YAAI,QAAQ,KAAM,sBAAqB,GAAG;AAC1C,YAAI,cAAc,KAAM,QAAO,aAAa,SAAS;AAAA,MACvD;AAAA,IAKF,GAAG,CAAC,OAAO,UAAU,OAAO,gBAAgB,CAAC;AAE7C,UAAM,UAAU,cAAc,YAAY,CAAC,IAAI,EAAE,QAAQ,QAAQ;AAEjE,WACE;AAAA,MAAC;AAAA;AAAA,QACE,GAAG;AAAA,QACJ;AAAA,QACA,WAAW,GAAG,gBAAgB,SAAS;AAAA,QAIvC,aAAU;AAAA,QACV,eAAY;AAAA,QAEX;AAAA;AAAA,UACA;AAAA,UACA;AAAA;AAAA;AAAA,IACH;AAAA,EAEJ;AACF;AAEA,QAAQ,cAAc;","names":["CountUp"]}
|
|
@@ -28,6 +28,11 @@ export interface AgentCardProps {
|
|
|
28
28
|
model?: string;
|
|
29
29
|
/** Runtime status. Drives the right-aligned status pill. */
|
|
30
30
|
status?: AgentStatus;
|
|
31
|
+
/** Optional header badge shown in the status slot INSTEAD of the runtime
|
|
32
|
+
* status pill — for surfaces whose state isn't a runtime status: a catalog
|
|
33
|
+
* ("New" / "Popular" / "Official") or a library lifecycle chip
|
|
34
|
+
* ("Active" / "Archived" / "Needs attention"). Pass a `<Badge>`. */
|
|
35
|
+
badge?: ReactNode;
|
|
31
36
|
/** Agent type — colors the avatar surface per the DAG node taxonomy. */
|
|
32
37
|
agentType?: AgentType;
|
|
33
38
|
/** Tool count badge. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgentCard.d.ts","sourceRoot":"","sources":["../../../src/components/AgentCard/AgentCard.tsx"],"names":[],"mappings":"AACA,OAAO,EAAmD,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAKxF;;;;;GAKG;AAEH;+EAC+E;AAC/E,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEzF;wDACwD;AACxD,MAAM,MAAM,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,WAAW,GAAG,WAAW,GAAG,IAAI,CAAC;AAEhF;yDACyD;AACzD,MAAM,MAAM,aAAa,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAE/C;yEACyE;AACzE,MAAM,MAAM,gBAAgB,GAAG,aAAa,GAAG,OAAO,CAAC;AAEvD,MAAM,WAAW,cAAc;IAC7B,0BAA0B;IAC1B,IAAI,EAAE,SAAS,CAAC;IAChB,sFAAsF;IACtF,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,+EAA+E;IAC/E,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,2DAA2D;IAC3D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,4DAA4D;IAC5D,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,wEAAwE;IACxE,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,wBAAwB;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,0DAA0D;IAC1D,IAAI,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACzB;;8EAE0E;IAC1E,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,8FAA8F;IAC9F,UAAU,CAAC,EAAE,IAAI,GA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O,CAAC,EAAE,SAAS,CAAC;IACpB,2DAA2D;IAC3D,KAAK,CAAC,EAAE,SAAS,CAAC;IAElB,oGAAoG;IACpG,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAErB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAmCD,eAAO,MAAM,SAAS,2GA0SpB,CAAC"}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Catalog — the browse-and-pick shell behind "store" surfaces (Agents Store,
|
|
3
|
+
* Template Store, connector/integration galleries).
|
|
4
|
+
*
|
|
5
|
+
* It is a CONTROLLED LAYOUT, not a data store: it renders the chrome — title +
|
|
6
|
+
* description, an actions slot (e.g. an Agents|Templates SegmentedControl), a
|
|
7
|
+
* search field, a category filter row, a result count, and a responsive card
|
|
8
|
+
* grid — and emits change events. The consumer owns the data, the filtering,
|
|
9
|
+
* and the cards it drops in as `children` (AgentCard, TemplateCard, …). Keeping
|
|
10
|
+
* it presentational is what lets one component serve every catalog surface.
|
|
11
|
+
*
|
|
12
|
+
* Composition:
|
|
13
|
+
* <Catalog
|
|
14
|
+
* title="Store"
|
|
15
|
+
* headerActions={<SegmentedControl … />}
|
|
16
|
+
* searchValue={q} onSearchChange={setQ}
|
|
17
|
+
* categories={CATS} selectedCategory={cat} onCategoryChange={setCat}
|
|
18
|
+
* count={`${items.length} agents`}
|
|
19
|
+
* empty={<EmptyState … />} isEmpty={items.length === 0}
|
|
20
|
+
* >
|
|
21
|
+
* {items.map(a => <AgentCard key={a.id} … actions={<Button>Import</Button>} />)}
|
|
22
|
+
* </Catalog>
|
|
23
|
+
*/
|
|
24
|
+
import type { ReactNode } from "react";
|
|
25
|
+
export interface CatalogCategory {
|
|
26
|
+
/** Stable value emitted by `onCategoryChange`. */
|
|
27
|
+
value: string;
|
|
28
|
+
/** Human-facing tab label. */
|
|
29
|
+
label: ReactNode;
|
|
30
|
+
/** Optional count rendered as a muted badge on the tab. */
|
|
31
|
+
count?: number;
|
|
32
|
+
/** Optional leading glyph (16px svg) rendered before the label. */
|
|
33
|
+
icon?: ReactNode;
|
|
34
|
+
}
|
|
35
|
+
export interface CatalogSectionProps {
|
|
36
|
+
/** Section heading (usually the category name). */
|
|
37
|
+
title: ReactNode;
|
|
38
|
+
/** Optional count badge after the title (e.g. number of items). */
|
|
39
|
+
count?: ReactNode;
|
|
40
|
+
/** Optional one-line description under the title. */
|
|
41
|
+
description?: ReactNode;
|
|
42
|
+
/** Trailing header slot — e.g. a "View all →" ghost button. */
|
|
43
|
+
action?: ReactNode;
|
|
44
|
+
/** Cards for this section's grid. */
|
|
45
|
+
children?: ReactNode;
|
|
46
|
+
/** Minimum card width (px). Inherits the Catalog default when omitted. */
|
|
47
|
+
minCardWidth?: number;
|
|
48
|
+
className?: string;
|
|
49
|
+
id?: string;
|
|
50
|
+
}
|
|
51
|
+
export interface CatalogProps {
|
|
52
|
+
/** Section title (e.g. "Store"). Rendered as an <h2>. */
|
|
53
|
+
title?: ReactNode;
|
|
54
|
+
/** One-line description under the title. */
|
|
55
|
+
description?: ReactNode;
|
|
56
|
+
/** Trailing header slot — e.g. an Agents | Templates SegmentedControl. */
|
|
57
|
+
headerActions?: ReactNode;
|
|
58
|
+
/** Controlled search value. When set (or `onSearchChange` is), the search field renders. */
|
|
59
|
+
searchValue?: string;
|
|
60
|
+
/** Fires on every keystroke with the new value. */
|
|
61
|
+
onSearchChange?: (value: string) => void;
|
|
62
|
+
/** Search field placeholder. */
|
|
63
|
+
searchPlaceholder?: string;
|
|
64
|
+
/** Accessible label for the search field (defaults to the placeholder or "Search"). */
|
|
65
|
+
searchLabel?: string;
|
|
66
|
+
/** Category filter chips. Omit for no filter row. */
|
|
67
|
+
categories?: readonly CatalogCategory[];
|
|
68
|
+
/** Selected category value (controlled). */
|
|
69
|
+
selectedCategory?: string;
|
|
70
|
+
/** Fires with the chosen category value. */
|
|
71
|
+
onCategoryChange?: (value: string) => void;
|
|
72
|
+
/**
|
|
73
|
+
* Result summary (e.g. "12 agents"). Rendered only in the no-rail
|
|
74
|
+
* toolbar — when categories exist, the tab badges already carry the
|
|
75
|
+
* counts, so this is intentionally not repeated on the rail.
|
|
76
|
+
*/
|
|
77
|
+
count?: ReactNode;
|
|
78
|
+
/**
|
|
79
|
+
* Trailing slot on the category rail, after the search (e.g. a sort
|
|
80
|
+
* Select or a primary "Submit template" Button). Only rendered when
|
|
81
|
+
* `categories` are present (the rail exists).
|
|
82
|
+
*/
|
|
83
|
+
railActions?: ReactNode;
|
|
84
|
+
/** The catalog items — a grid of cards. */
|
|
85
|
+
children?: ReactNode;
|
|
86
|
+
/**
|
|
87
|
+
* When true, children render in a vertical stack instead of the card
|
|
88
|
+
* grid — for grouped browsing where children are `Catalog.Section`s
|
|
89
|
+
* (each section owns its header + its own grid). Typical use: the
|
|
90
|
+
* "All" category renders sections per category; picking a category
|
|
91
|
+
* switches back to the flat grid.
|
|
92
|
+
*/
|
|
93
|
+
sectioned?: boolean;
|
|
94
|
+
/** Render `loadingContent` in place of the grid (e.g. skeleton cards). */
|
|
95
|
+
loading?: boolean;
|
|
96
|
+
/** What to show while `loading` (usually a row of skeleton cards). */
|
|
97
|
+
loadingContent?: ReactNode;
|
|
98
|
+
/** Shown when there are no items and not loading. Pass an `<EmptyState />`. */
|
|
99
|
+
empty?: ReactNode;
|
|
100
|
+
/** When true (and not loading), render `empty` instead of the grid. */
|
|
101
|
+
isEmpty?: boolean;
|
|
102
|
+
/** Minimum card width (px) for the responsive auto-fill grid. Default 280. */
|
|
103
|
+
minCardWidth?: number;
|
|
104
|
+
className?: string;
|
|
105
|
+
id?: string;
|
|
106
|
+
}
|
|
107
|
+
export declare function Catalog({ title, description, headerActions, searchValue, onSearchChange, searchPlaceholder, searchLabel, categories, selectedCategory, onCategoryChange, count, railActions, children, sectioned, loading, loadingContent, empty, isEmpty, minCardWidth, className, id, }: CatalogProps): import("react/jsx-runtime").JSX.Element;
|
|
108
|
+
export declare namespace Catalog {
|
|
109
|
+
var Section: typeof CatalogSection;
|
|
110
|
+
var displayName: string;
|
|
111
|
+
}
|
|
112
|
+
export declare function CatalogSection({ title, count, description, action, children, minCardWidth, className, id, }: CatalogSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
113
|
+
export declare namespace CatalogSection {
|
|
114
|
+
var displayName: string;
|
|
115
|
+
}
|
|
116
|
+
//# sourceMappingURL=Catalog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Catalog.d.ts","sourceRoot":"","sources":["../../../src/components/Catalog/Catalog.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,KAAK,EAAiB,SAAS,EAAE,MAAM,OAAO,CAAC;AAGtD,MAAM,WAAW,eAAe;IAC9B,kDAAkD;IAClD,KAAK,EAAE,MAAM,CAAC;IACd,8BAA8B;IAC9B,KAAK,EAAE,SAAS,CAAC;IACjB,2DAA2D;IAC3D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,mEAAmE;IACnE,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB;AAED,MAAM,WAAW,mBAAmB;IAClC,mDAAmD;IACnD,KAAK,EAAE,SAAS,CAAC;IACjB,mEAAmE;IACnE,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,qDAAqD;IACrD,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,+DAA+D;IAC/D,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,qCAAqC;IACrC,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,0EAA0E;IAC1E,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,YAAY;IAC3B,yDAAyD;IACzD,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,4CAA4C;IAC5C,WAAW,CAAC,EAAE,SAAS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SAAiB,EACjB,OAAe,EACf,cAAc,EACd,KAAK,EACL,OAAe,EACf,YAAY,EACZ,SAAS,EACT,EAAE,GACH,EAAE,YAAY,2CAiHd;yBAvIe,OAAO;;;;AAgJvB,wBAAgB,cAAc,CAAC,EAC7B,KAAK,EACL,KAAK,EACL,WAAW,EACX,MAAM,EACN,QAAQ,EACR,YAAY,EACZ,SAAS,EACT,EAAE,GACH,EAAE,mBAAmB,2CA6BrB;yBAtCe,cAAc"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Catalog/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EACP,cAAc,EACd,KAAK,eAAe,EACpB,KAAK,YAAY,EACjB,KAAK,mBAAmB,GACzB,MAAM,WAAW,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExecutionConsole.d.ts","sourceRoot":"","sources":["../../../src/components/ExecutionConsole/ExecutionConsole.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAwC,MAAM,OAAO,CAAC;AAG7E,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,GAAG,SAAS,CAAC;AAEvE,MAAM,WAAW,QAAQ;IACvB,6EAA6E;IAC7E,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,QAAQ,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,2EAA2E;IAC3E,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,kEAAkE;IAClE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;qEACiE;IACjE,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,mEAAmE;IACnE,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,KAAK,CAAC;AAE1C,MAAM,WAAW,qBAAqB;IACpC,IAAI,CAAC,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C,EACxC,MAAM,EACN,OAAO,EACP,UAAU,EACV,SAAS,GACV,EAAE,qBAAqB,
|
|
1
|
+
{"version":3,"file":"ExecutionConsole.d.ts","sourceRoot":"","sources":["../../../src/components/ExecutionConsole/ExecutionConsole.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAwC,MAAM,OAAO,CAAC;AAG7E,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,GAAG,SAAS,CAAC;AAEvE,MAAM,WAAW,QAAQ;IACvB,6EAA6E;IAC7E,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,QAAQ,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,2EAA2E;IAC3E,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,kEAAkE;IAClE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;qEACiE;IACjE,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,mEAAmE;IACnE,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,KAAK,CAAC;AAE1C,MAAM,WAAW,qBAAqB;IACpC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,IAAI,CAAC,EAAE,QAAQ,EAAE,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,mFAAmF;IACnF,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,oEAAoE;IACpE,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;;;oEAIgE;IAChE,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,+EAA+E;IAC/E,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB;iEAC6D;IAC7D,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,YAAY,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,IAAI,CAAC;IAC5D,+CAA+C;IAC/C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,qDAAqD;IACrD,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,0EAA0E;IAC1E,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,8CAA8C;IAC9C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,+EAA+E;IAC/E,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,mEAAmE;IACnE,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,+DAA+D;IAC/D,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAkED,wBAAgB,gBAAgB,CAAC,EAC/B,IAAI,EAAE,QAAQ,EACd,QAAQ,EACR,IAAS,EACT,OAAe,EACf,OAAe,EACf,MAAM,EACN,OAAO,EACP,OAAO,EACP,MAAM,EACN,QAAQ,EACR,UAAiB,EACjB,eAAsB,EACtB,cAAqB,EACrB,UAAiB,EACjB,cAAwC,EACxC,MAAM,EACN,OAAO,EACP,UAAU,EACV,SAAS,GACV,EAAE,qBAAqB,2CA+evB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FlowMinimap.d.ts","sourceRoot":"","sources":["../../../src/components/FlowMinimap/FlowMinimap.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FlowMinimap.d.ts","sourceRoot":"","sources":["../../../src/components/FlowMinimap/FlowMinimap.tsx"],"names":[],"mappings":"AA0BA,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,C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-1,4 +1,5 @@
|
|
|
1
1
|
import { type ReactNode } from "react";
|
|
2
|
+
import { type HoverCardPlacement } from "../HoverCard";
|
|
2
3
|
export interface FlowToolbarProps {
|
|
3
4
|
children?: ReactNode;
|
|
4
5
|
/** "left" / "right" pin to side and stack vertically; "top" / "bottom" stack horizontally. */
|
|
@@ -148,4 +149,30 @@ export interface FlowToolbarResetProps {
|
|
|
148
149
|
}
|
|
149
150
|
export declare function FlowToolbarReset({ onReset, disabled, shortcut, className, }: FlowToolbarResetProps): import("react/jsx-runtime").JSX.Element;
|
|
150
151
|
export declare function FlowToolbarZoom({ zoom: zoomProp, onZoomIn, onZoomOut, onFit, onReset, className, }: FlowToolbarZoomProps): import("react/jsx-runtime").JSX.Element;
|
|
152
|
+
export interface FlowToolbarIssueItem {
|
|
153
|
+
/** Stable identity (rule + anchor). */
|
|
154
|
+
id: string;
|
|
155
|
+
severity: "error" | "warning";
|
|
156
|
+
message: string;
|
|
157
|
+
/** Anchors for click-to-focus. */
|
|
158
|
+
nodeId?: string;
|
|
159
|
+
edgeId?: string;
|
|
160
|
+
/** Optional secondary line (e.g. the node's label). */
|
|
161
|
+
source?: string;
|
|
162
|
+
}
|
|
163
|
+
export interface FlowToolbarIssuesProps {
|
|
164
|
+
issues: FlowToolbarIssueItem[];
|
|
165
|
+
/** Click a row → host selects/pans to the offending node. */
|
|
166
|
+
onIssueClick?: (issue: FlowToolbarIssueItem) => void;
|
|
167
|
+
/** Overlay side relative to the button. Default `right` (left toolbar). */
|
|
168
|
+
placement?: HoverCardPlacement;
|
|
169
|
+
/** Rows shown before "+N more". Default 8. */
|
|
170
|
+
maxVisible?: number;
|
|
171
|
+
label?: string;
|
|
172
|
+
/** HoverCard open/close delays (ms). Defaults 120 / 220. */
|
|
173
|
+
openDelay?: number;
|
|
174
|
+
closeDelay?: number;
|
|
175
|
+
className?: string;
|
|
176
|
+
}
|
|
177
|
+
export declare function FlowToolbarIssues({ issues, onIssueClick, placement, maxVisible, label, openDelay, closeDelay, className, }: FlowToolbarIssuesProps): import("react/jsx-runtime").JSX.Element;
|
|
151
178
|
//# sourceMappingURL=FlowToolbar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FlowToolbar.d.ts","sourceRoot":"","sources":["../../../src/components/FlowToolbar/FlowToolbar.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FlowToolbar.d.ts","sourceRoot":"","sources":["../../../src/components/FlowToolbar/FlowToolbar.tsx"],"names":[],"mappings":"AAyBA,OAAO,EAAE,KAAK,SAAS,EAA+B,MAAM,OAAO,CAAC;AAGpE,OAAO,EAAa,KAAK,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAIlE,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,8FAA8F;IAC9F,SAAS,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,OAAO,GAAG,QAAQ,CAAC;IAChD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,WAAW,CAAC,EAAE,QAAQ,EAAE,SAAkB,EAAE,SAAS,EAAE,EAAE,gBAAgB,2CAUxF;AAED,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,SAAS,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,8DAA8D;IAC9D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,0EAA0E;IAC1E,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,iBAAiB,CAAC,EAChC,IAAI,EACJ,KAAK,EACL,OAAO,EACP,MAAc,EACd,QAAgB,EAChB,MAAc,EACd,QAAQ,EACR,OAAO,E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oBAAoB,EAAE,CAAC;IAC/B,6DAA6D;IAC7D,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,oBAAoB,KAAK,IAAI,CAAC;IACrD,2EAA2E;IAC3E,SAAS,CAAC,EAAE,kBAAkB,CAAC;IAC/B,8CAA8C;IAC9C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,4DAA4D;IAC5D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,iBAAiB,CAAC,EAChC,MAAM,EACN,YAAY,EACZ,SAAmB,EACnB,UAAc,EACd,KAAgB,EAChB,SAAe,EACf,UAAgB,EAChB,SAAS,GACV,EAAE,sBAAsB,2CA+FxB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { FlowToolbar, FlowToolbarAutoLayout, type FlowToolbarAutoLayoutProps, FlowToolbarButton, type FlowToolbarButtonProps, FlowToolbarDivider, type FlowToolbarDividerProps, FlowToolbarFitView, type FlowToolbarFitViewProps, FlowToolbarIcons, type FlowToolbarProps, FlowToolbarRedo, type FlowToolbarRedoProps, FlowToolbarReset, type FlowToolbarResetProps, FlowToolbarRun, type FlowToolbarRunProps, FlowToolbarSave, type FlowToolbarSaveProps, type FlowToolbarSaveState, FlowToolbarUndo, type FlowToolbarUndoProps, FlowToolbarZoom, type FlowToolbarZoomProps, } from "./FlowToolbar";
|
|
1
|
+
export { FlowToolbar, FlowToolbarAutoLayout, type FlowToolbarAutoLayoutProps, FlowToolbarButton, type FlowToolbarButtonProps, FlowToolbarDivider, type FlowToolbarDividerProps, FlowToolbarFitView, type FlowToolbarFitViewProps, FlowToolbarIcons, type FlowToolbarIssueItem, FlowToolbarIssues, type FlowToolbarIssuesProps, type FlowToolbarProps, FlowToolbarRedo, type FlowToolbarRedoProps, FlowToolbarReset, type FlowToolbarResetProps, FlowToolbarRun, type FlowToolbarRunProps, FlowToolbarSave, type FlowToolbarSaveProps, type FlowToolbarSaveState, FlowToolbarUndo, type FlowToolbarUndoProps, FlowToolbarZoom, type FlowToolbarZoomProps, } from "./FlowToolbar";
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/FlowToolbar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,qBAAqB,EACrB,KAAK,0BAA0B,EAC/B,iBAAiB,EACjB,KAAK,sBAAsB,EAC3B,kBAAkB,EAClB,KAAK,uBAAuB,EAC5B,kBAAkB,EAClB,KAAK,uBAAuB,EAC5B,gBAAgB,EAChB,KAAK,gBAAgB,EACrB,eAAe,EACf,KAAK,oBAAoB,EACzB,gBAAgB,EAChB,KAAK,qBAAqB,EAC1B,cAAc,EACd,KAAK,mBAAmB,EACxB,eAAe,EACf,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,eAAe,EACf,KAAK,oBAAoB,EACzB,eAAe,EACf,KAAK,oBAAoB,GAC1B,MAAM,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/FlowToolbar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,qBAAqB,EACrB,KAAK,0BAA0B,EAC/B,iBAAiB,EACjB,KAAK,sBAAsB,EAC3B,kBAAkB,EAClB,KAAK,uBAAuB,EAC5B,kBAAkB,EAClB,KAAK,uBAAuB,EAC5B,gBAAgB,EAChB,KAAK,oBAAoB,EACzB,iBAAiB,EACjB,KAAK,sBAAsB,EAC3B,KAAK,gBAAgB,EACrB,eAAe,EACf,KAAK,oBAAoB,EACzB,gBAAgB,EAChB,KAAK,qBAAqB,EAC1B,cAAc,EACd,KAAK,mBAAmB,EACxB,eAAe,EACf,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,eAAe,EACf,KAAK,oBAAoB,EACzB,eAAe,EACf,KAAK,oBAAoB,GAC1B,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ItemDetail — the detail / preview panel body for catalog + library surfaces.
|
|
3
|
+
*
|
|
4
|
+
* A presentational, drawer-agnostic layout: a rich header (avatar · title ·
|
|
5
|
+
* subtitle · badge · optional close), a description, a facts list (composed from
|
|
6
|
+
* DescriptionList), an optional "what's included" checklist, a tag cluster, and a
|
|
7
|
+
* footer actions slot. Drop it inside a `Drawer` / `Sheet` / `SlideoutPanel`, or
|
|
8
|
+
* render it inline as a persistent side panel.
|
|
9
|
+
*
|
|
10
|
+
* It powers both stops of the agent flow with one component:
|
|
11
|
+
* • Store preview → facts + "what's included" + [Preview] [Import]
|
|
12
|
+
* • Library detail → facts + status + [Edit] [Test] [Open builder]
|
|
13
|
+
*/
|
|
14
|
+
import type { ReactNode } from "react";
|
|
15
|
+
import { type DescriptionListItem } from "../DescriptionList";
|
|
16
|
+
export interface ItemDetailFact extends DescriptionListItem {
|
|
17
|
+
}
|
|
18
|
+
export interface ItemDetailIncludedRow {
|
|
19
|
+
/** The line of copy (e.g. "Octaviaflow model — no API key needed"). */
|
|
20
|
+
label: ReactNode;
|
|
21
|
+
/** `false` marks the row as optional / not-yet-satisfied (dimmed, hollow mark).
|
|
22
|
+
* Defaults to `true` (a satisfied checkmark). */
|
|
23
|
+
included?: boolean;
|
|
24
|
+
}
|
|
25
|
+
export interface ItemDetailProps {
|
|
26
|
+
/** Leading avatar / glyph. */
|
|
27
|
+
avatar?: ReactNode;
|
|
28
|
+
/** Item name. */
|
|
29
|
+
title: ReactNode;
|
|
30
|
+
/** Secondary line (e.g. "by OctaviaFlow · v1 · used 2.4k times"). */
|
|
31
|
+
subtitle?: ReactNode;
|
|
32
|
+
/** Trailing header badge (e.g. `<Badge>New</Badge>`, a status chip). */
|
|
33
|
+
badge?: ReactNode;
|
|
34
|
+
/** Fires the header close (X). Omit to hide the close control. */
|
|
35
|
+
onClose?: () => void;
|
|
36
|
+
/** Longer description paragraph. */
|
|
37
|
+
description?: ReactNode;
|
|
38
|
+
/** Key facts, rendered as a stacked description list. */
|
|
39
|
+
facts?: ItemDetailFact[];
|
|
40
|
+
/** "What's included" checklist. */
|
|
41
|
+
included?: ItemDetailIncludedRow[];
|
|
42
|
+
/** Heading above the checklist. Defaults to "What's included". */
|
|
43
|
+
includedTitle?: ReactNode;
|
|
44
|
+
/** Tag chips. */
|
|
45
|
+
tags?: readonly string[];
|
|
46
|
+
/** Footer actions (typically 1–2 Buttons). */
|
|
47
|
+
actions?: ReactNode;
|
|
48
|
+
/** Small helper line under the actions (e.g. the import promise). */
|
|
49
|
+
actionsNote?: ReactNode;
|
|
50
|
+
className?: string;
|
|
51
|
+
id?: string;
|
|
52
|
+
}
|
|
53
|
+
export declare function ItemDetail({ avatar, title, subtitle, badge, onClose, description, facts, included, includedTitle, tags, actions, actionsNote, className, id, }: ItemDetailProps): import("react/jsx-runtime").JSX.Element;
|
|
54
|
+
export declare namespace ItemDetail {
|
|
55
|
+
var displayName: string;
|
|
56
|
+
}
|
|
57
|
+
//# sourceMappingURL=ItemDetail.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ItemDetail.d.ts","sourceRoot":"","sources":["../../../src/components/ItemDetail/ItemDetail.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAmB,KAAK,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAG/E,MAAM,WAAW,cAAe,SAAQ,mBAAmB;CAAG;AAE9D,MAAM,WAAW,qBAAqB;IACpC,uEAAuE;IACvE,KAAK,EAAE,SAAS,CAAC;IACjB;sDACkD;IAClD,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,eAAe;IAC9B,8BAA8B;IAC9B,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,iBAAiB;IACjB,KAAK,EAAE,SAAS,CAAC;IACjB,qEAAqE;IACrE,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,wEAAwE;IACxE,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,kEAAkE;IAClE,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAErB,oCAAoC;IACpC,WAAW,CAAC,EAAE,SAAS,CAAC;IAExB,yDAAyD;IACzD,KAAK,CAAC,EAAE,cAAc,EAAE,CAAC;IAEzB,mCAAmC;IACnC,QAAQ,CAAC,EAAE,qBAAqB,EAAE,CAAC;IACnC,kEAAkE;IAClE,aAAa,CAAC,EAAE,SAAS,CAAC;IAE1B,iBAAiB;IACjB,IAAI,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAEzB,8CAA8C;IAC9C,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,qEAAqE;IACrE,WAAW,CAAC,EAAE,SAAS,CAAC;IAExB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAmBD,wBAAgB,UAAU,CAAC,EACzB,MAAM,EACN,KAAK,EACL,QAAQ,EACR,KAAK,EACL,OAAO,EACP,WAAW,EACX,KAAK,EACL,QAAQ,EACR,aAAiC,EACjC,IAAI,EACJ,OAAO,EACP,WAAW,EACX,SAAS,EACT,EAAE,GACH,EAAE,eAAe,2CA+EjB;yBA9Fe,UAAU"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ItemDetail/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,qBAAqB,GAC3B,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { MessageFieldSpec } from "./types";
|
|
2
|
+
export interface TokenFieldRegistry {
|
|
3
|
+
activeFieldId: string | null;
|
|
4
|
+
/** A tokens-enabled field gained focus. */
|
|
5
|
+
onFieldFocus: (id: string, label: string) => void;
|
|
6
|
+
/** Keeps the active field's insert callback fresh across value changes. */
|
|
7
|
+
registerInsert: (id: string, insert: (token: string) => void) => void;
|
|
8
|
+
}
|
|
9
|
+
export interface BlockFieldsEditorProps {
|
|
10
|
+
fields: MessageFieldSpec[];
|
|
11
|
+
values: Record<string, unknown>;
|
|
12
|
+
onChange: (values: Record<string, unknown>) => void;
|
|
13
|
+
/** Stable prefix for field identities (block id, or meta scope). */
|
|
14
|
+
scopeId: string;
|
|
15
|
+
tokenRegistry?: TokenFieldRegistry;
|
|
16
|
+
}
|
|
17
|
+
export declare function BlockFieldsEditor({ fields, values, onChange, scopeId, tokenRegistry, }: BlockFieldsEditorProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
//# sourceMappingURL=BlockFieldsEditor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BlockFieldsEditor.d.ts","sourceRoot":"","sources":["../../../src/components/MessageBlockBuilder/BlockFieldsEditor.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EACV,gBAAgB,EAKjB,MAAM,SAAS,CAAC;AAYjB,MAAM,WAAW,kBAAkB;IACjC,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,2CAA2C;IAC3C,YAAY,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClD,2EAA2E;IAC3E,cAAc,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,KAAK,IAAI,CAAC;CACvE;AAED,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,gBAAgB,EAAE,CAAC;IAC3B,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAC;IACpD,oEAAoE;IACpE,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,kBAAkB,CAAC;CACpC;AA+MD,wBAAgB,iBAAiB,CAAC,EAChC,MAAM,EACN,MAAM,EACN,QAAQ,EACR,OAAO,EACP,aAAa,GACd,EAAE,sBAAsB,2CAwFxB"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { MessageBlockBuilderProps, MessagePlatform } from "./types";
|
|
2
|
+
export declare function MessageBlockBuilder<P extends MessagePlatform = MessagePlatform>({ open, onClose, platform, value, onSave, onChange, title, tokenGroups, resolveTokenLabel, }: MessageBlockBuilderProps<P>): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare namespace MessageBlockBuilder {
|
|
4
|
+
var displayName: string;
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=MessageBlockBuilder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MessageBlockBuilder.d.ts","sourceRoot":"","sources":["../../../src/components/MessageBlockBuilder/MessageBlockBuilder.tsx"],"names":[],"mappings":"AAoCA,OAAO,KAAK,EAEV,wBAAwB,EACxB,eAAe,EAGhB,MAAM,SAAS,CAAC;AA2BjB,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,eAAe,GAAG,eAAe,EAAE,EAC/E,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,KAAK,EACL,MAAM,EACN,QAAQ,EACR,KAAK,EACL,WAAW,EACX,iBAAiB,GAClB,EAAE,wBAAwB,CAAC,CAAC,CAAC,2CAypB7B;yBAnqBe,mBAAmB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { MessageBlock, MessagePlatform } from "./types";
|
|
2
|
+
export interface MessagePreviewProps {
|
|
3
|
+
platform: MessagePlatform;
|
|
4
|
+
blocks: MessageBlock[];
|
|
5
|
+
meta: Record<string, unknown>;
|
|
6
|
+
resolveTokenLabel?: (token: string) => string | undefined;
|
|
7
|
+
}
|
|
8
|
+
export declare function MessagePreview({ platform, blocks, meta, resolveTokenLabel }: MessagePreviewProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
//# sourceMappingURL=MessagePreview.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MessagePreview.d.ts","sourceRoot":"","sources":["../../../src/components/MessageBlockBuilder/MessagePreview.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAQ7D,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,eAAe,CAAC;IAC1B,MAAM,EAAE,YAAY,EAAE,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9B,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC;CAC3D;AA6uBD,wBAAgB,cAAc,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,iBAAiB,EAAE,EAAE,mBAAmB,2CAIhG"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { MessageTokenGroup } from "./types";
|
|
2
|
+
export interface TokenPanelProps {
|
|
3
|
+
tokenGroups: MessageTokenGroup[];
|
|
4
|
+
resolveTokenLabel?: (token: string) => string | undefined;
|
|
5
|
+
/** Label of the field click-inserts currently target, or null when none. */
|
|
6
|
+
targetLabel: string | null;
|
|
7
|
+
onInsert: (token: string) => void;
|
|
8
|
+
onClose: () => void;
|
|
9
|
+
/** Bind a ref as the ENTIRE message payload (upstream step already built
|
|
10
|
+
* the complete blocks/card JSON). */
|
|
11
|
+
onUseAsMessage?: (token: string) => void;
|
|
12
|
+
/** Ref drag lifecycle — lets the shell show the whole-message drop zone. */
|
|
13
|
+
onRefDragStart?: () => void;
|
|
14
|
+
onRefDragEnd?: () => void;
|
|
15
|
+
}
|
|
16
|
+
export declare function TokenPanel({ tokenGroups, resolveTokenLabel, targetLabel, onInsert, onClose, onUseAsMessage, onRefDragStart, onRefDragEnd, }: TokenPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
//# sourceMappingURL=TokenPanel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TokenPanel.d.ts","sourceRoot":"","sources":["../../../src/components/MessageBlockBuilder/TokenPanel.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAQjD,MAAM,WAAW,eAAe;IAC9B,WAAW,EAAE,iBAAiB,EAAE,CAAC;IACjC,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC;IAC1D,4EAA4E;IAC5E,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB;0CACsC;IACtC,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,4EAA4E;IAC5E,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;CAC3B;AAED,wBAAgB,UAAU,CAAC,EACzB,WAAW,EACX,iBAAiB,EACjB,WAAW,EACX,QAAQ,EACR,OAAO,EACP,cAAc,EACd,cAAc,EACd,YAAY,GACb,EAAE,eAAe,2CA+HjB"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
export declare const headingGlyph: ReactNode;
|
|
3
|
+
export declare const textGlyph: ReactNode;
|
|
4
|
+
export declare const contextGlyph: ReactNode;
|
|
5
|
+
export declare const imageGlyph: ReactNode;
|
|
6
|
+
export declare const dividerGlyph: ReactNode;
|
|
7
|
+
export declare const buttonGlyph: ReactNode;
|
|
8
|
+
export declare const videoGlyph: ReactNode;
|
|
9
|
+
export declare const factGlyph: ReactNode;
|
|
10
|
+
export declare const columnsGlyph: ReactNode;
|
|
11
|
+
export declare const containerGlyph: ReactNode;
|
|
12
|
+
export declare const tableGlyph: ReactNode;
|
|
13
|
+
export declare const imageSetGlyph: ReactNode;
|
|
14
|
+
export declare const decoratedTextGlyph: ReactNode;
|
|
15
|
+
export declare const gridGlyph: ReactNode;
|
|
16
|
+
export declare const chartGlyph: ReactNode;
|
|
17
|
+
export declare const chipGlyph: ReactNode;
|
|
18
|
+
//# sourceMappingURL=glyphs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"glyphs.d.ts","sourceRoot":"","sources":["../../../src/components/MessageBlockBuilder/glyphs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAyBvC,eAAO,MAAM,YAAY,WAIxB,CAAC;AAEF,eAAO,MAAM,SAAS,WAIrB,CAAC;AAEF,eAAO,MAAM,YAAY,WAKxB,CAAC;AAEF,eAAO,MAAM,UAAU,WAMtB,CAAC;AAEF,eAAO,MAAM,YAAY,WAKxB,CAAC;AAEF,eAAO,MAAM,WAAW,WAKvB,CAAC;AAEF,eAAO,MAAM,UAAU,WAKtB,CAAC;AAEF,eAAO,MAAM,SAAS,WAKrB,CAAC;AAEF,eAAO,MAAM,YAAY,WAKxB,CAAC;AAEF,eAAO,MAAM,cAAc,WAK1B,CAAC;AAEF,eAAO,MAAM,UAAU,WAKtB,CAAC;AAEF,eAAO,MAAM,aAAa,WAKzB,CAAC;AAEF,eAAO,MAAM,kBAAkB,WAK9B,CAAC;AAEF,eAAO,MAAM,SAAS,WAOrB,CAAC;AAEF,eAAO,MAAM,UAAU,WAKtB,CAAC;AAEF,eAAO,MAAM,SAAS,WAKrB,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { MessageBlockBuilder } from "./MessageBlockBuilder";
|
|
2
|
+
export { googleChatAdapter, messagePlatformAdapters, slackAdapter, teamsAdapter, } from "./platforms";
|
|
3
|
+
export type { GoogleChatCardsV2, MessageBlock, MessageBlockBuilderProps, MessageBlockDefinition, MessageFieldSpec, MessageParseResult, MessagePlatform, MessagePlatformAdapter, MessagePlatformValue, MessagePlatformValueMap, MessageTokenGroup, MessageTokenItem, MessageValidationIssue, SlackMessageBlocks, TeamsAdaptiveCard, } from "./types";
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/MessageBlockBuilder/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EACL,iBAAiB,EACjB,uBAAuB,EACvB,YAAY,EACZ,YAAY,GACb,MAAM,aAAa,CAAC;AACrB,YAAY,EACV,iBAAiB,EACjB,YAAY,EACZ,wBAAwB,EACxB,sBAAsB,EACtB,gBAAgB,EAChB,kBAAkB,EAClB,eAAe,EACf,sBAAsB,EACtB,oBAAoB,EACpB,uBAAuB,EACvB,iBAAiB,EACjB,gBAAgB,EAChB,sBAAsB,EACtB,kBAAkB,EAClB,iBAAiB,GAClB,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { MessageBlock, MessageBlockDefinition, MessageFieldSpec, MessagePlatformAdapter, MessageValidationIssue } from "./types";
|
|
2
|
+
/** dataTransfer MIME for dragging a palette block kind onto the canvas. */
|
|
3
|
+
export declare const BLOCK_DRAG_MIME = "application/x-ods-message-block";
|
|
4
|
+
/** dataTransfer MIME for dragging a data-ref token into a text field. */
|
|
5
|
+
export declare const TOKEN_DRAG_MIME = "application/x-ods-data-ref";
|
|
6
|
+
export declare function createBlockId(): string;
|
|
7
|
+
/** Matches the token forms the workflow engine substitutes at runtime:
|
|
8
|
+
* `{{…}}` (URN, short token, FX call) and `${…}` deep-path refs. */
|
|
9
|
+
export declare const TOKEN_PATTERN: RegExp;
|
|
10
|
+
/** Same pattern with a capture group, for split()-based pill rendering. */
|
|
11
|
+
export declare const TOKEN_SPLIT_PATTERN: RegExp;
|
|
12
|
+
export declare function containsToken(value: string): boolean;
|
|
13
|
+
/** True when the string is exactly ONE token (nothing else) — the shape the
|
|
14
|
+
* engine substitutes with the resolved value's original type, letting a
|
|
15
|
+
* whole blocks/card payload be supplied by an upstream step. */
|
|
16
|
+
export declare function isLoneToken(value: string): boolean;
|
|
17
|
+
/** Compact fallback label for a raw token when the host provides none:
|
|
18
|
+
* "{{ods://steps/abc/output/order.id}}" → "order.id". */
|
|
19
|
+
export declare function compactTokenLabel(token: string): string;
|
|
20
|
+
export declare function asString(value: unknown): string;
|
|
21
|
+
export declare function asBoolean(value: unknown): boolean;
|
|
22
|
+
export declare function asItems(value: unknown): Array<Record<string, unknown>>;
|
|
23
|
+
export declare function isFieldVisible(field: MessageFieldSpec, values: Record<string, unknown>): boolean;
|
|
24
|
+
/** Chart values may be literal numbers or a data-ref token. Literals emit as
|
|
25
|
+
* numbers; single-token strings stay strings (the engine's substitution
|
|
26
|
+
* preserves the resolved value's type for lone tokens). */
|
|
27
|
+
export declare function asNumberOrToken(value: unknown): number | string;
|
|
28
|
+
/** Numeric preview coercion — tokens become 0 placeholders. */
|
|
29
|
+
export declare function asPreviewNumber(value: unknown): number;
|
|
30
|
+
export declare function cloneBlock(block: MessageBlock): MessageBlock;
|
|
31
|
+
export declare function definitionsByKind(adapter: MessagePlatformAdapter): Map<string, MessageBlockDefinition>;
|
|
32
|
+
export declare function validateMessage(adapter: MessagePlatformAdapter, blocks: MessageBlock[], meta: Record<string, unknown>): MessageValidationIssue[];
|
|
33
|
+
//# sourceMappingURL=internal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version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AY,GAAG,YAAY,CAM5D;AAED,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,sBAAsB,GAC9B,GAAG,CAAC,MAAM,EAAE,sBAAsB,CAAC,CAErC;AA6ED,wBAAgB,eAAe,CAC7B,OAAO,EAAE,sBAAsB,EAC/B,MAAM,EAAE,YAAY,EAAE,EACtB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC5B,sBAAsB,EAAE,CAgD1B"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { MessageBlock, MessagePlatformAdapter } from "../types";
|
|
2
|
+
type GcJson = Record<string, unknown>;
|
|
3
|
+
declare function serializeBlock(block: MessageBlock): GcJson | null;
|
|
4
|
+
declare function parseWidget(raw: unknown): MessageBlock | null;
|
|
5
|
+
export declare const googleChatAdapter: MessagePlatformAdapter;
|
|
6
|
+
export { parseWidget as parseGoogleChatWidget, serializeBlock as serializeGoogleChatWidget };
|
|
7
|
+
//# sourceMappingURL=googleChat.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"googleChat.d.ts","sourceRoot":"","sources":["../../../../src/components/MessageBlockBuilder/platforms/googleChat.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAEV,YAAY,EAEZ,sBAAsB,EACvB,MAAM,UAAU,CAAC;AAUlB,KAAK,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAiEtC,iBAAS,cAAc,CAAC,KAAK,EAAE,YAAY,GAAG,MAAM,GAAG,IAAI,CA0E1D;AASD,iBAAS,WAAW,CAAC,GAAG,EAAE,OAAO,GAAG,YAAY,GAAG,IAAI,CAwHtD;AAED,eAAO,MAAM,iBAAiB,EAAE,sBA+P/B,CAAC;AAEF,OAAO,EAAE,WAAW,IAAI,qBAAqB,EAAE,cAAc,IAAI,yBAAyB,EAAE,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { MessagePlatform, MessagePlatformAdapter } from "../types";
|
|
2
|
+
import { googleChatAdapter } from "./googleChat";
|
|
3
|
+
import { slackAdapter } from "./slack";
|
|
4
|
+
import { teamsAdapter } from "./teams";
|
|
5
|
+
export declare const messagePlatformAdapters: Record<MessagePlatform, MessagePlatformAdapter>;
|
|
6
|
+
export { googleChatAdapter, slackAdapter, teamsAdapter };
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|