@informedai/react 0.4.28 → 0.4.29
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/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +7 -3
- package/dist/index.mjs +7 -3
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1209,7 +1209,8 @@ function MessageBubble({ message, theme, onQuickAction, isLatest = false, quickA
|
|
|
1209
1209
|
{
|
|
1210
1210
|
runId: message.agentContext.analyticsRun.runId,
|
|
1211
1211
|
query: message.agentContext.analyticsRun.query,
|
|
1212
|
-
status: message.agentContext.analyticsRun.status
|
|
1212
|
+
status: message.agentContext.analyticsRun.status,
|
|
1213
|
+
queryType: message.agentContext.analyticsRun.queryType
|
|
1213
1214
|
}
|
|
1214
1215
|
),
|
|
1215
1216
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
@@ -1347,7 +1348,7 @@ function GroupedQuickActions({ actions, groups, theme, onQuickAction }) {
|
|
|
1347
1348
|
] }, groupKey);
|
|
1348
1349
|
}) });
|
|
1349
1350
|
}
|
|
1350
|
-
function AnalyticsBadge({ runId, query, status }) {
|
|
1351
|
+
function AnalyticsBadge({ runId, query, status, queryType }) {
|
|
1351
1352
|
const { session, onAnalyticsRunClick, getAnalyticsRun } = useInformedAI();
|
|
1352
1353
|
const [expanded, setExpanded] = (0, import_react2.useState)(false);
|
|
1353
1354
|
const [runDetail, setRunDetail] = (0, import_react2.useState)(null);
|
|
@@ -1392,7 +1393,10 @@ function AnalyticsBadge({ runId, query, status }) {
|
|
|
1392
1393
|
title: `Analytics query: ${query}`,
|
|
1393
1394
|
children: [
|
|
1394
1395
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(ChartIcon, { size: 12 }),
|
|
1395
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.
|
|
1396
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("span", { children: [
|
|
1397
|
+
"Analytics query",
|
|
1398
|
+
queryType ? ` \xB7 ${queryType.charAt(0).toUpperCase() + queryType.slice(1)}` : ""
|
|
1399
|
+
] }),
|
|
1396
1400
|
!onAnalyticsRunClick && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { style: { fontSize: "9px", marginLeft: "2px" }, children: expanded ? "\u25B2" : "\u25BC" })
|
|
1397
1401
|
]
|
|
1398
1402
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -1176,7 +1176,8 @@ function MessageBubble({ message, theme, onQuickAction, isLatest = false, quickA
|
|
|
1176
1176
|
{
|
|
1177
1177
|
runId: message.agentContext.analyticsRun.runId,
|
|
1178
1178
|
query: message.agentContext.analyticsRun.query,
|
|
1179
|
-
status: message.agentContext.analyticsRun.status
|
|
1179
|
+
status: message.agentContext.analyticsRun.status,
|
|
1180
|
+
queryType: message.agentContext.analyticsRun.queryType
|
|
1180
1181
|
}
|
|
1181
1182
|
),
|
|
1182
1183
|
/* @__PURE__ */ jsx2(
|
|
@@ -1314,7 +1315,7 @@ function GroupedQuickActions({ actions, groups, theme, onQuickAction }) {
|
|
|
1314
1315
|
] }, groupKey);
|
|
1315
1316
|
}) });
|
|
1316
1317
|
}
|
|
1317
|
-
function AnalyticsBadge({ runId, query, status }) {
|
|
1318
|
+
function AnalyticsBadge({ runId, query, status, queryType }) {
|
|
1318
1319
|
const { session, onAnalyticsRunClick, getAnalyticsRun } = useInformedAI();
|
|
1319
1320
|
const [expanded, setExpanded] = useState2(false);
|
|
1320
1321
|
const [runDetail, setRunDetail] = useState2(null);
|
|
@@ -1359,7 +1360,10 @@ function AnalyticsBadge({ runId, query, status }) {
|
|
|
1359
1360
|
title: `Analytics query: ${query}`,
|
|
1360
1361
|
children: [
|
|
1361
1362
|
/* @__PURE__ */ jsx2(ChartIcon, { size: 12 }),
|
|
1362
|
-
/* @__PURE__ */
|
|
1363
|
+
/* @__PURE__ */ jsxs("span", { children: [
|
|
1364
|
+
"Analytics query",
|
|
1365
|
+
queryType ? ` \xB7 ${queryType.charAt(0).toUpperCase() + queryType.slice(1)}` : ""
|
|
1366
|
+
] }),
|
|
1363
1367
|
!onAnalyticsRunClick && /* @__PURE__ */ jsx2("span", { style: { fontSize: "9px", marginLeft: "2px" }, children: expanded ? "\u25B2" : "\u25BC" })
|
|
1364
1368
|
]
|
|
1365
1369
|
}
|