@octaviaflow/core 3.1.0-beta.119 → 3.1.0-beta.120
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-OQAB7DBO.js +3715 -0
- package/dist/chunk-OQAB7DBO.js.map +1 -0
- package/dist/components/AssistantConversation/AssistantConversation.d.ts +2 -0
- package/dist/components/AssistantConversation/AssistantConversation.d.ts.map +1 -1
- package/dist/components/AssistantConversation/assistant.fixtures.d.ts.map +1 -1
- package/dist/components/AssistantDock/AssistantDock.d.ts +6 -2
- package/dist/components/AssistantDock/AssistantDock.d.ts.map +1 -1
- package/dist/components/AssistantHistory/AssistantHistory.d.ts +26 -0
- package/dist/components/AssistantHistory/AssistantHistory.d.ts.map +1 -0
- package/dist/components/AssistantHistory/index.d.ts +2 -0
- package/dist/components/AssistantHistory/index.d.ts.map +1 -0
- package/dist/index.cjs +3907 -3828
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3530 -3463
- package/dist/index.js.map +1 -1
- package/dist/marketing.cjs +15 -4
- package/dist/marketing.cjs.map +1 -1
- package/dist/marketing.js +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/marketing.cjs
CHANGED
|
@@ -4292,13 +4292,13 @@ function AssistantConversation({
|
|
|
4292
4292
|
const thread = /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_jsx_runtime27.Fragment, { children: [
|
|
4293
4293
|
greeting && said(greeting),
|
|
4294
4294
|
messages.map(
|
|
4295
|
-
(m) => m.role === "user" ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(ChatBubble, { variant: "user", hideAvatar: true, children: m.content }, m.id) : /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "ods-assistant__reply", children: [
|
|
4295
|
+
(m, i) => m.role === "user" ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(ChatBubble, { variant: "user", hideAvatar: true, children: m.content }, m.id) : /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "ods-assistant__reply", children: [
|
|
4296
4296
|
m.steps && m.steps.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(ChatToolTrace, { calls: m.steps, summary: stepSummary(m.steps), autoOpen: false }),
|
|
4297
4297
|
m.content ? said(/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(ReplyText, { message: m })) : (
|
|
4298
4298
|
// While a step runs, its line already says what is happening.
|
|
4299
4299
|
!m.steps?.some((st) => st.status === "running") && said(/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(ChatThinking, { variant: "shimmer", label: m.status || "Thinking\u2026", size: "sm" }))
|
|
4300
4300
|
),
|
|
4301
|
-
m.blocks && m.blocks.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "ods-assistant__blocks", children: m.blocks.map((b,
|
|
4301
|
+
m.blocks && m.blocks.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "ods-assistant__blocks", children: m.blocks.map((b, i2) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
4302
4302
|
Block,
|
|
4303
4303
|
{
|
|
4304
4304
|
block: b,
|
|
@@ -4306,7 +4306,7 @@ function AssistantConversation({
|
|
|
4306
4306
|
onAnswer,
|
|
4307
4307
|
onSkipAsk
|
|
4308
4308
|
},
|
|
4309
|
-
b.type === "ask" ? b.askId : `${b.type}:${b.url}:${
|
|
4309
|
+
b.type === "ask" ? b.askId : `${b.type}:${b.url}:${i2}`
|
|
4310
4310
|
)) }),
|
|
4311
4311
|
m.sources && m.sources.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
4312
4312
|
ChatSources,
|
|
@@ -4327,7 +4327,18 @@ function AssistantConversation({
|
|
|
4327
4327
|
onRate: (r) => onRate(m.id, r)
|
|
4328
4328
|
}
|
|
4329
4329
|
)
|
|
4330
|
-
] })
|
|
4330
|
+
] }),
|
|
4331
|
+
i === messages.length - 1 && !busy && !m.streaming && onSend && (m.followUps?.length ?? 0) > 0 && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
4332
|
+
ChatSuggestions,
|
|
4333
|
+
{
|
|
4334
|
+
className: "ods-assistant__follow-ups",
|
|
4335
|
+
items: m.followUps ?? [],
|
|
4336
|
+
onSelect: (v) => onSend(v),
|
|
4337
|
+
size: "sm",
|
|
4338
|
+
layout: "wrap",
|
|
4339
|
+
"aria-label": "Ask next"
|
|
4340
|
+
}
|
|
4341
|
+
)
|
|
4331
4342
|
] }, m.id)
|
|
4332
4343
|
)
|
|
4333
4344
|
] });
|