@agentiffai/design 1.3.26 → 1.3.27
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/{Window-DyRP81dS.d.cts → Window-Dm_I5m8i.d.cts} +5 -7
- package/dist/{Window-DyRP81dS.d.ts → Window-Dm_I5m8i.d.ts} +5 -7
- package/dist/copilotkit/index.cjs +76 -46
- package/dist/copilotkit/index.cjs.map +1 -1
- package/dist/copilotkit/index.d.cts +2 -2
- package/dist/copilotkit/index.d.ts +2 -2
- package/dist/copilotkit/index.js +76 -46
- package/dist/copilotkit/index.js.map +1 -1
- package/dist/icons/index.cjs.map +1 -1
- package/dist/icons/index.js.map +1 -1
- package/dist/index.cjs +1957 -660
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +227 -2
- package/dist/index.d.ts +227 -2
- package/dist/index.js +1898 -613
- package/dist/index.js.map +1 -1
- package/dist/layout/index.cjs +76 -16
- package/dist/layout/index.cjs.map +1 -1
- package/dist/layout/index.js +76 -16
- package/dist/layout/index.js.map +1 -1
- package/dist/theme/index.cjs +4 -4
- package/dist/theme/index.cjs.map +1 -1
- package/dist/theme/index.d.cts +12 -12
- package/dist/theme/index.d.ts +12 -12
- package/dist/theme/index.js +4 -4
- package/dist/theme/index.js.map +1 -1
- package/dist/workflow/index.cjs +91 -61
- package/dist/workflow/index.cjs.map +1 -1
- package/dist/workflow/index.js +91 -61
- package/dist/workflow/index.js.map +1 -1
- package/package.json +1 -1
package/dist/workflow/index.js
CHANGED
|
@@ -20,7 +20,7 @@ var tokens = {
|
|
|
20
20
|
text: {
|
|
21
21
|
primary: "#FFFFFF",
|
|
22
22
|
secondary: "#B4B8C5",
|
|
23
|
-
tertiary: "#
|
|
23
|
+
tertiary: "#6B7280"},
|
|
24
24
|
// Teal (brand aligned)
|
|
25
25
|
error: "#EF4444",
|
|
26
26
|
warning: "#F59E0B",
|
|
@@ -57,8 +57,8 @@ var tokens = {
|
|
|
57
57
|
overlay: "rgba(0, 0, 0, 0.5)"},
|
|
58
58
|
typography: {
|
|
59
59
|
fontFamily: {
|
|
60
|
-
primary: "'
|
|
61
|
-
monospace: "'
|
|
60
|
+
primary: "'TT Interphases Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif",
|
|
61
|
+
monospace: "'Monaco', 'Menlo', 'Ubuntu Mono', monospace"
|
|
62
62
|
},
|
|
63
63
|
fontSize: {
|
|
64
64
|
xs: "0.875rem",
|
|
@@ -133,25 +133,27 @@ var WorkflowCard = ({
|
|
|
133
133
|
$connected: integration.connected !== false,
|
|
134
134
|
$optional: !!integration.optional,
|
|
135
135
|
title: `${integration.name}${integration.connected === false ? integration.optional ? " (optional)" : " (not connected)" : ""}`,
|
|
136
|
-
children: /* @__PURE__ */ jsx(
|
|
137
|
-
IntegrationIcon,
|
|
138
|
-
{
|
|
139
|
-
src: integration.icon,
|
|
140
|
-
alt: integration.name
|
|
141
|
-
}
|
|
142
|
-
)
|
|
136
|
+
children: /* @__PURE__ */ jsx(IntegrationIcon, { src: integration.icon, alt: integration.name })
|
|
143
137
|
},
|
|
144
138
|
integration.name
|
|
145
139
|
)) }),
|
|
146
140
|
/* @__PURE__ */ jsxs(Indicators, { children: [
|
|
147
|
-
estimatedCostPerRun && /* @__PURE__ */ jsx(
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
141
|
+
estimatedCostPerRun && /* @__PURE__ */ jsx(
|
|
142
|
+
IndicatorPill,
|
|
143
|
+
{
|
|
144
|
+
$variant: "info",
|
|
145
|
+
title: `Estimated cost: ${estimatedCostPerRun}${estimatedCostPerRun.includes("/") ? "" : " per run"}`,
|
|
146
|
+
children: /* @__PURE__ */ jsxs(IndicatorText, { children: [
|
|
147
|
+
estimatedCostPerRun,
|
|
148
|
+
estimatedCostPerRun.includes("/") ? "" : "/run"
|
|
149
|
+
] })
|
|
150
|
+
}
|
|
151
|
+
),
|
|
151
152
|
missingCount > 0 && /* @__PURE__ */ jsxs(
|
|
152
153
|
IndicatorPill,
|
|
153
154
|
{
|
|
154
155
|
$variant: "warning",
|
|
156
|
+
"data-testid": "workflow-card-status",
|
|
155
157
|
title: `${missingCount} integration${missingCount > 1 ? "s" : ""} not connected`,
|
|
156
158
|
children: [
|
|
157
159
|
/* @__PURE__ */ jsx(IndicatorDot, { $variant: "warning" }),
|
|
@@ -162,10 +164,18 @@ var WorkflowCard = ({
|
|
|
162
164
|
]
|
|
163
165
|
}
|
|
164
166
|
),
|
|
165
|
-
needsSetup && /* @__PURE__ */ jsxs(
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
167
|
+
needsSetup && /* @__PURE__ */ jsxs(
|
|
168
|
+
IndicatorPill,
|
|
169
|
+
{
|
|
170
|
+
$variant: "warning",
|
|
171
|
+
"data-testid": "workflow-card-needs-setup",
|
|
172
|
+
title: "Setup required before use",
|
|
173
|
+
children: [
|
|
174
|
+
/* @__PURE__ */ jsx(IndicatorDot, { $variant: "warning" }),
|
|
175
|
+
/* @__PURE__ */ jsx(IndicatorText, { children: "Needs Setup" })
|
|
176
|
+
]
|
|
177
|
+
}
|
|
178
|
+
)
|
|
169
179
|
] })
|
|
170
180
|
] })
|
|
171
181
|
]
|
|
@@ -567,37 +577,47 @@ var WorkflowErrorAlert = ({
|
|
|
567
577
|
return /* @__PURE__ */ jsx(InfoIcon, {});
|
|
568
578
|
}
|
|
569
579
|
};
|
|
570
|
-
const alertContent = /* @__PURE__ */ jsx(
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
580
|
+
const alertContent = /* @__PURE__ */ jsx(
|
|
581
|
+
AlertContainer,
|
|
582
|
+
{
|
|
583
|
+
variant,
|
|
584
|
+
severity,
|
|
585
|
+
className,
|
|
586
|
+
"data-testid": "error-alert",
|
|
587
|
+
role: "alert",
|
|
588
|
+
children: /* @__PURE__ */ jsxs(Header, { children: [
|
|
589
|
+
/* @__PURE__ */ jsx(IconContainer, { severity, "aria-hidden": "true", children: getIcon() }),
|
|
590
|
+
/* @__PURE__ */ jsxs(Content, { children: [
|
|
591
|
+
/* @__PURE__ */ jsx(Title, { children: displayTitle }),
|
|
592
|
+
/* @__PURE__ */ jsx(ErrorMessage, { children: errorMessage }),
|
|
593
|
+
errorCode && /* @__PURE__ */ jsxs(ErrorCode, { children: [
|
|
594
|
+
"Error Code: ",
|
|
595
|
+
errorCode
|
|
596
|
+
] }),
|
|
597
|
+
timestamp && /* @__PURE__ */ jsx(Timestamp, { children: new Date(timestamp).toLocaleString() }),
|
|
598
|
+
showDetails && (stackTrace || typeof error === "object" && error.stack) && /* @__PURE__ */ jsxs(
|
|
599
|
+
Details,
|
|
600
|
+
{
|
|
601
|
+
open: detailsOpen,
|
|
602
|
+
onToggle: (e) => setDetailsOpen(e.target.open),
|
|
603
|
+
children: [
|
|
604
|
+
/* @__PURE__ */ jsxs("summary", { children: [
|
|
605
|
+
/* @__PURE__ */ jsx(DetailsIcon, { open: detailsOpen, children: /* @__PURE__ */ jsx(ChevronIcon, {}) }),
|
|
606
|
+
"Show Details"
|
|
607
|
+
] }),
|
|
608
|
+
/* @__PURE__ */ jsx(StackTrace, { children: stackTrace || (typeof error === "object" ? error.stack : "") })
|
|
609
|
+
]
|
|
610
|
+
}
|
|
611
|
+
),
|
|
612
|
+
(retryable || onDismiss) && /* @__PURE__ */ jsxs(Actions, { children: [
|
|
613
|
+
retryable && onRetry && /* @__PURE__ */ jsx(Button, { variant: "primary", onClick: onRetry, children: "Retry" }),
|
|
614
|
+
onDismiss && /* @__PURE__ */ jsx(Button, { variant: "secondary", onClick: handleDismiss, children: "Dismiss" })
|
|
615
|
+
] })
|
|
616
|
+
] }),
|
|
617
|
+
variant !== "modal" && onDismiss && /* @__PURE__ */ jsx(CloseButton, { onClick: handleDismiss, "aria-label": "Dismiss alert", children: /* @__PURE__ */ jsx(CloseIcon, {}) })
|
|
597
618
|
] })
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
] }) });
|
|
619
|
+
}
|
|
620
|
+
);
|
|
601
621
|
if (variant === "modal") {
|
|
602
622
|
return /* @__PURE__ */ jsx(ModalOverlay, { isOpen: isModalOpen, onClick: handleDismiss, children: /* @__PURE__ */ jsxs(ModalContent, { onClick: (e) => e.stopPropagation(), children: [
|
|
603
623
|
alertContent,
|
|
@@ -1068,19 +1088,28 @@ var WorkflowResultPanel = ({
|
|
|
1068
1088
|
return /* @__PURE__ */ jsx(EmptyState, { children: "Unsupported variant" });
|
|
1069
1089
|
}
|
|
1070
1090
|
};
|
|
1071
|
-
return /* @__PURE__ */ jsxs(
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1091
|
+
return /* @__PURE__ */ jsxs(
|
|
1092
|
+
Panel,
|
|
1093
|
+
{
|
|
1094
|
+
collapsible,
|
|
1095
|
+
expanded,
|
|
1096
|
+
className,
|
|
1097
|
+
"data-testid": "result-panel",
|
|
1098
|
+
children: [
|
|
1099
|
+
/* @__PURE__ */ jsxs(Header2, { collapsible, onClick: handleToggle, children: [
|
|
1100
|
+
/* @__PURE__ */ jsxs(Title2, { children: [
|
|
1101
|
+
title,
|
|
1102
|
+
collapsible && /* @__PURE__ */ jsx(CollapseIcon, { expanded, children: /* @__PURE__ */ jsx(ChevronIcon2, {}) })
|
|
1103
|
+
] }),
|
|
1104
|
+
/* @__PURE__ */ jsxs(Actions2, { onClick: (e) => e.stopPropagation(), children: [
|
|
1105
|
+
onCopy && /* @__PURE__ */ jsx(IconButton, { onClick: onCopy, title: "Copy to clipboard", "aria-label": "Copy to clipboard", children: /* @__PURE__ */ jsx(CopyIcon, {}) }),
|
|
1106
|
+
onDownload && /* @__PURE__ */ jsx(IconButton, { onClick: onDownload, title: "Download", "aria-label": "Download results", children: /* @__PURE__ */ jsx(DownloadIcon, {}) })
|
|
1107
|
+
] })
|
|
1108
|
+
] }),
|
|
1109
|
+
/* @__PURE__ */ jsx(Content2, { maxHeight, expanded, children: renderContent() })
|
|
1110
|
+
]
|
|
1111
|
+
}
|
|
1112
|
+
);
|
|
1084
1113
|
};
|
|
1085
1114
|
WorkflowResultPanel.displayName = "WorkflowResultPanel";
|
|
1086
1115
|
var spin = keyframes`
|
|
@@ -1286,6 +1315,7 @@ var WorkflowStatusBadge = ({
|
|
|
1286
1315
|
$status: status,
|
|
1287
1316
|
$size: size,
|
|
1288
1317
|
className,
|
|
1318
|
+
"data-testid": "execution-status-badge",
|
|
1289
1319
|
role: "status",
|
|
1290
1320
|
"aria-label": displayLabel,
|
|
1291
1321
|
children: [
|