@8wave/ai-elements 0.127.0-beta.15 → 0.127.0-beta.16
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/_chunks/{PkFilePreview-yKT0QkEB.js → PkFilePreview-3_ZmPzQO.js} +3 -3
- package/dist/_chunks/{PkFilePreview-yKT0QkEB.js.map → PkFilePreview-3_ZmPzQO.js.map} +1 -1
- package/dist/_chunks/{PkFilePreviewDialog-B4yKQbLi.js → PkFilePreviewDialog-m3iqn0rl.js} +2 -2
- package/dist/_chunks/{PkFilePreviewDialog-B4yKQbLi.js.map → PkFilePreviewDialog-m3iqn0rl.js.map} +1 -1
- package/dist/_chunks/{PkImageEditorDialog-BF6tQvTY.js → PkImageEditorDialog-W8TCEHBJ.js} +2 -2
- package/dist/_chunks/{PkImageEditorDialog-BF6tQvTY.js.map → PkImageEditorDialog-W8TCEHBJ.js.map} +1 -1
- package/dist/_chunks/{PkSelectionActions-J1AaO8Of.js → PkSelectionActions-B14kAu8T.js} +2 -2
- package/dist/_chunks/{PkSelectionActions-J1AaO8Of.js.map → PkSelectionActions-B14kAu8T.js.map} +1 -1
- package/dist/_chunks/{PkStreamingMarkdown-CvIq4j9U.js → PkStreamingMarkdown-Df_VzmC0.js} +2 -2
- package/dist/_chunks/{PkStreamingMarkdown-CvIq4j9U.js.map → PkStreamingMarkdown-Df_VzmC0.js.map} +1 -1
- package/dist/_chunks/{PkToolChatFile-Y5CR96-B.js → PkToolChatFile-BXrgzaIj.js} +2 -2
- package/dist/_chunks/{PkToolChatFile-Y5CR96-B.js.map → PkToolChatFile-BXrgzaIj.js.map} +1 -1
- package/dist/_chunks/{PkToolShowArtifact-CBsIMKuq.js → PkToolShowArtifact-Df2ibXU_.js} +2 -2
- package/dist/_chunks/{PkToolShowArtifact-CBsIMKuq.js.map → PkToolShowArtifact-Df2ibXU_.js.map} +1 -1
- package/dist/_chunks/{PkToolShowContactForm-D8tYijcg.js → PkToolShowContactForm-CfW3f_Zs.js} +2 -2
- package/dist/_chunks/{PkToolShowContactForm-D8tYijcg.js.map → PkToolShowContactForm-CfW3f_Zs.js.map} +1 -1
- package/dist/_chunks/{PkToolShowForm-CM63L5WC.js → PkToolShowForm-Chj3bqAn.js} +3 -3
- package/dist/_chunks/{PkToolShowForm-CM63L5WC.js.map → PkToolShowForm-Chj3bqAn.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSources-BoJmMb4K.js → PkToolShowSources-B9qNtyum.js} +2 -2
- package/dist/_chunks/{PkToolShowSources-BoJmMb4K.js.map → PkToolShowSources-B9qNtyum.js.map} +1 -1
- package/dist/_chunks/{utils-BYVRPDrv.js → utils-C1mMVCFZ.js} +4 -3
- package/dist/_chunks/utils-C1mMVCFZ.js.map +1 -0
- package/dist/ai-elements.es.js +604 -587
- package/dist/ai-elements.es.js.map +1 -1
- package/dist-vue/PkChatbot.js +1 -1
- package/dist-vue/PkChatbotEmptyState.js +1 -1
- package/dist-vue/PkChatbotInput.js +1 -1
- package/dist-vue/PkChatbotLocalFolders.js +1 -1
- package/dist-vue/PkChatbotMessages.js +1 -1
- package/dist-vue/PkChatbotStepPayload.js +1 -1
- package/dist-vue/PkChatbotStepToolDetail.js +1 -1
- package/dist-vue/PkChatbotSteps.js +1 -1
- package/dist-vue/PkChatbotViewChat.js +1 -1
- package/dist-vue/PkChatbotViewConversations.js +1 -1
- package/dist-vue/PkChatbotViewFiles.js +1 -1
- package/dist-vue/PkChatbotViewProfile.js +1 -1
- package/dist-vue/_chunks/{PkChatbot-CrHeZSwq.js → PkChatbot-BWgqvPsG.js} +8 -8
- package/dist-vue/_chunks/{PkChatbot-CrHeZSwq.js.map → PkChatbot-BWgqvPsG.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotEmptyState-BSdctGUp.js → PkChatbotEmptyState-CS0l2BBa.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotEmptyState-BSdctGUp.js.map → PkChatbotEmptyState-CS0l2BBa.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotInput-Bkr2FMAR.js → PkChatbotInput-9PwloFKx.js} +29 -15
- package/dist-vue/_chunks/PkChatbotInput-9PwloFKx.js.map +1 -0
- package/dist-vue/_chunks/PkChatbotLocalFolders-D7kxpwR2.js +122 -0
- package/dist-vue/_chunks/PkChatbotLocalFolders-D7kxpwR2.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotMessages-Cf19Jak8.js → PkChatbotMessages-CU0y2j8g.js} +16 -16
- package/dist-vue/_chunks/{PkChatbotMessages-Cf19Jak8.js.map → PkChatbotMessages-CU0y2j8g.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotStepPayload-BWeGBOGl.js → PkChatbotStepPayload-Ds9rz4MI.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotStepPayload-BWeGBOGl.js.map → PkChatbotStepPayload-Ds9rz4MI.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-k_purHyE.js → PkChatbotStepToolDetail-C_xWXZkE.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-k_purHyE.js.map → PkChatbotStepToolDetail-C_xWXZkE.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotSteps-DvYhk_xP.js → PkChatbotSteps-CjX5nxsq.js} +6 -6
- package/dist-vue/_chunks/{PkChatbotSteps-DvYhk_xP.js.map → PkChatbotSteps-CjX5nxsq.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewChat-D-tjQF-v.js → PkChatbotViewChat-D5DiEgwE.js} +234 -237
- package/dist-vue/_chunks/PkChatbotViewChat-D5DiEgwE.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotViewConversations-BYn6wfoM.js → PkChatbotViewConversations-Bj77_upQ.js} +4 -4
- package/dist-vue/_chunks/{PkChatbotViewConversations-BYn6wfoM.js.map → PkChatbotViewConversations-Bj77_upQ.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewFiles-BWD7GF4M.js → PkChatbotViewFiles-nL2UGO-g.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewFiles-BWD7GF4M.js.map → PkChatbotViewFiles-nL2UGO-g.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewProfile-D5LQ_IB6.js → PkChatbotViewProfile-B8xPFxkz.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewProfile-D5LQ_IB6.js.map → PkChatbotViewProfile-B8xPFxkz.js.map} +1 -1
- package/dist-vue/_chunks/{PkFilePreview-CURIA-I5.js → PkFilePreview-D6VCM-tr.js} +3 -3
- package/dist-vue/_chunks/{PkFilePreview-CURIA-I5.js.map → PkFilePreview-D6VCM-tr.js.map} +1 -1
- package/dist-vue/_chunks/{PkFilePreviewDialog-Cmic1Xl-.js → PkFilePreviewDialog-CwkET8_p.js} +2 -2
- package/dist-vue/_chunks/{PkFilePreviewDialog-Cmic1Xl-.js.map → PkFilePreviewDialog-CwkET8_p.js.map} +1 -1
- package/dist-vue/_chunks/{PkImageEditorDialog-bt-_WXJ7.js → PkImageEditorDialog-CXSSDTtp.js} +2 -2
- package/dist-vue/_chunks/{PkImageEditorDialog-bt-_WXJ7.js.map → PkImageEditorDialog-CXSSDTtp.js.map} +1 -1
- package/dist-vue/_chunks/{PkStreamingMarkdown-D38PPSbB.js → PkStreamingMarkdown-D5ad7uGI.js} +2 -2
- package/dist-vue/_chunks/{PkStreamingMarkdown-D38PPSbB.js.map → PkStreamingMarkdown-D5ad7uGI.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolChatFile-Dvn6Jg9n.js → PkToolChatFile-DDVwPfee.js} +2 -2
- package/dist-vue/_chunks/{PkToolChatFile-Dvn6Jg9n.js.map → PkToolChatFile-DDVwPfee.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowArtifact-Clkqoz26.js → PkToolShowArtifact-CdS7BNoU.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowArtifact-Clkqoz26.js.map → PkToolShowArtifact-CdS7BNoU.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowChart-RLAsKQT7.js → PkToolShowChart-E2NW5ess.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowChart-RLAsKQT7.js.map → PkToolShowChart-E2NW5ess.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowContactForm-BSDtKWWD.js → PkToolShowContactForm-COu43u5z.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowContactForm-BSDtKWWD.js.map → PkToolShowContactForm-COu43u5z.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowDiagram-9EYiOJXE.js → PkToolShowDiagram-BOGh8Z0j.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowDiagram-9EYiOJXE.js.map → PkToolShowDiagram-BOGh8Z0j.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowForm-mXmiZPIW.js → PkToolShowForm-D3n6fxtt.js} +3 -3
- package/dist-vue/_chunks/{PkToolShowForm-mXmiZPIW.js.map → PkToolShowForm-D3n6fxtt.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowImageGallery-B2phVedq.js → PkToolShowImageGallery-D3Z5vTb0.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowImageGallery-B2phVedq.js.map → PkToolShowImageGallery-D3Z5vTb0.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowProductList-BX9D6A8k.js → PkToolShowProductList-4mkoLMOz.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowProductList-BX9D6A8k.js.map → PkToolShowProductList-4mkoLMOz.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSources-B0Xw8RR2.js → PkToolShowSources-DkpLjqfn.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowSources-B0Xw8RR2.js.map → PkToolShowSources-DkpLjqfn.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowVideo-DyOPeNq_.js → PkToolShowVideo-DyjqJfqW.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowVideo-DyOPeNq_.js.map → PkToolShowVideo-DyjqJfqW.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowWebPages-DajE3TAx.js → PkToolShowWebPages-BSvuIrSs.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowWebPages-DajE3TAx.js.map → PkToolShowWebPages-BSvuIrSs.js.map} +1 -1
- package/dist-vue/_chunks/{localFolders-D8DxM-5y.js → localFolders-Dn8jAVz4.js} +4 -3
- package/dist-vue/_chunks/localFolders-Dn8jAVz4.js.map +1 -0
- package/dist-vue/_chunks/{useChatbotStore-DCE7Ig6x.js → useChatbotStore-ZA6_oD5a.js} +2 -2
- package/dist-vue/_chunks/{useChatbotStore-DCE7Ig6x.js.map → useChatbotStore-ZA6_oD5a.js.map} +1 -1
- package/dist-vue/_chunks/{utils-SmeQuVL1.js → utils-BDXwCfXk.js} +2 -2
- package/dist-vue/_chunks/{utils-SmeQuVL1.js.map → utils-BDXwCfXk.js.map} +1 -1
- package/dist-vue/composables.js +12 -2
- package/dist-vue/composables.js.map +1 -1
- package/dist-vue/index.js +25 -25
- package/dist-vue/locales.js +12 -2
- package/dist-vue/packages/components/src/chat/PkChatbotInput.d.ts +10 -2
- package/dist-vue/packages/components/src/chat/PkChatbotLocalFolders.d.ts +12 -9
- package/dist-vue/style.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/utils-BYVRPDrv.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotInput-Bkr2FMAR.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotLocalFolders-CSvqh_Cx.js +0 -126
- package/dist-vue/_chunks/PkChatbotLocalFolders-CSvqh_Cx.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotViewChat-D-tjQF-v.js.map +0 -1
- package/dist-vue/_chunks/localFolders-D8DxM-5y.js.map +0 -1
package/dist-vue/PkChatbot.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbot-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbot-BWgqvPsG.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbotEmptyState-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbotEmptyState-CS0l2BBa.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbotInput-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbotInput-9PwloFKx.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbotLocalFolders-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbotLocalFolders-D7kxpwR2.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbotMessages-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbotMessages-CU0y2j8g.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbotStepPayload-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbotStepPayload-Ds9rz4MI.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbotStepToolDetail-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbotStepToolDetail-C_xWXZkE.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbotSteps-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbotSteps-CjX5nxsq.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbotViewChat-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbotViewChat-D5DiEgwE.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbotViewConversations-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbotViewConversations-Bj77_upQ.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbotViewFiles-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbotViewFiles-nL2UGO-g.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbotViewProfile-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbotViewProfile-B8xPFxkz.js";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { t as e } from "./VvButtonLocalized-C-vx25u4.js";
|
|
2
|
-
import { n as t } from "./useChatbotStore-
|
|
2
|
+
import { n as t } from "./useChatbotStore-ZA6_oD5a.js";
|
|
3
3
|
import { t as n } from "./useDialogConfirm-fn7iV-iE.js";
|
|
4
4
|
import { t as r } from "./useLocalizedString-Dmn92nix.js";
|
|
5
5
|
import { t as i } from "./useShortUrlResolver-KJDk7QLj.js";
|
|
6
6
|
import { t as ee } from "./PkAvatar-DwtZWSW4.js";
|
|
7
|
-
import { t as te } from "./PkChatbotViewChat-
|
|
8
|
-
import { t as ne } from "./PkChatbotViewConversations-
|
|
9
|
-
import { t as re } from "./PkChatbotViewFiles-
|
|
10
|
-
import { n as a, t as ie } from "./PkChatbotViewProfile-
|
|
11
|
-
import { i as o, t as ae } from "./PkStreamingMarkdown-
|
|
12
|
-
import { c as oe, z as se } from "./utils-
|
|
7
|
+
import { t as te } from "./PkChatbotViewChat-D5DiEgwE.js";
|
|
8
|
+
import { t as ne } from "./PkChatbotViewConversations-Bj77_upQ.js";
|
|
9
|
+
import { t as re } from "./PkChatbotViewFiles-nL2UGO-g.js";
|
|
10
|
+
import { n as a, t as ie } from "./PkChatbotViewProfile-B8xPFxkz.js";
|
|
11
|
+
import { i as o, t as ae } from "./PkStreamingMarkdown-D5ad7uGI.js";
|
|
12
|
+
import { c as oe, z as se } from "./utils-BDXwCfXk.js";
|
|
13
13
|
import { VvAlert as ce, VvButtonGroup as le, VvDropdown as ue, VvDropdownAction as de, VvIcon as fe } from "@volverjs/ui-vue/components";
|
|
14
14
|
import { Fragment as s, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createSlots as p, createTextVNode as m, createVNode as h, defineComponent as g, guardReactiveProps as _, inject as pe, mergeModels as v, mergeProps as me, normalizeClass as he, normalizeProps as y, normalizeStyle as b, openBlock as x, ref as ge, renderList as S, renderSlot as C, toDisplayString as w, toRef as _e, unref as T, useModel as ve, useSlots as ye, useTemplateRef as be, watch as E, watchEffect as xe, withCtx as D } from "vue";
|
|
15
15
|
import { useI18n as Se } from "vue-i18n";
|
|
@@ -324,4 +324,4 @@ var Te = { class: "pk-chatbot__header-start" }, Ee = ["title"], De = { key: 1 },
|
|
|
324
324
|
});
|
|
325
325
|
export { O as t };
|
|
326
326
|
|
|
327
|
-
//# sourceMappingURL=PkChatbot-
|
|
327
|
+
//# sourceMappingURL=PkChatbot-BWgqvPsG.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PkChatbot-CrHeZSwq.js","names":["_useModel","_openBlock","_createElementBlock","_normalizeClass","_normalizeStyle","_createElementVNode","_unref","_Fragment","_createVNode","_mergeProps","_createBlock","PkAvatar","_toDisplayString","_withCtx","_renderSlot","_normalizeProps","_guardReactiveProps","_createTextVNode","PkChatbotViewChat","_renderList","PkChatbotViewConversations","PkChatbotViewFiles","PkChatbotViewProfile","PkStreamingMarkdown","VvButtonLocalized","useChatbotStore","useDialogConfirm","useLocalizedString","provideShortUrlResolver","PkAvatar_default","PkChatbotViewChat_default","PkChatbotViewConversations_default","PkChatbotViewFiles_default","ChatbotProfileContextKey","PkChatbotViewProfile_default","provideChatImagePolicy","PkStreamingMarkdown_default","agentThemeStyle","resolveContrastColor","_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","PkChatbot_default","defineComponent","\"chatId\"","\"chatIdModifiers\"","__expose","__emit","slots","useSlots","$t","useI18n","props","__props","emit","chatId","useModel","store","hashes","storeToRefs","storeAgentId","toRef","profile","inject","canManageProfile","computed","canSignIn","canEraseConversations","showEraseConversations","activeView","conversations","isErasingConversations","ref","handleEraseAll","eraseConversations","openDialogConfirm","startNewChat","watch","canManage","navigate","watchEffect","id","localChatId","chatError","error","parsedError","isFullscreen","isPanel","chatbotEl","useTemplateRef","chatbotWidth","useElementSize","isPhoneWidth","isTightWidth","isWideWidth","isReasoningAgent","showReasoningNotice","messages","message","useColorsForAgentHeader","showHeaderMenu","pageAccessAvailable","confirmationsAvailable","themeClass","isDark","mainColor","contrastColor","themeStyle","footerMessage","title","activeMessage","newAgentId","newChatId","newView","_component_VvButton","_component_VvIcon","VvIcon","_component_VvDropdownAction","VvDropdownAction","_component_VvDropdown","VvDropdown","_component_VvButtonGroup","VvButtonGroup","_component_VvAlert","VvAlert","openBlock","createElementBlock","normalizeClass","normalizeStyle","createCommentVNode","createElementVNode","unref","createBlock","Fragment","createVNode","mergeProps","_cache","toDisplayString","withCtx","renderSlot","_ctx","normalizeProps","guardReactiveProps","stopGeneration","createTextVNode","setPageAccessOff","pageAccessOff","setConfirmationMode","confirmationMode","$event","createSlots","renderList","slotName","slotData"],"sources":["../../../../packages/components/src/chat/PkChatbot.vue"],"sourcesContent":["<script setup lang=\"ts\">\n import {\n computed,\n inject,\n ref,\n toRef,\n useTemplateRef,\n watch,\n watchEffect,\n useSlots,\n } from 'vue'\n import { useElementSize } from '@vueuse/core'\n import { storeToRefs } from 'pinia'\n import { useI18n } from 'vue-i18n'\n import type {\n AgentConfirmationsCapability,\n AgentInterface,\n AgentModel,\n AgentFileUpload,\n AgentGatewayOptions,\n AgentVoiceCapability,\n ChatMessageActions,\n RevisedAnswer,\n UIChatMessage,\n AgentTools,\n HostToolsCapability,\n LocalFoldersCapability,\n PageAccessCapability,\n SelectionActionsCapability,\n } from 'models'\n import {\n type RegisteredHostTool,\n useChatbotStore,\n useDialogConfirm,\n useLocalizedString,\n provideShortUrlResolver,\n } from 'composables'\n import PkAvatar from './PkAvatar.vue'\n import PkChatbotViewChat from './PkChatbotViewChat.vue'\n import PkChatbotViewConversations from './PkChatbotViewConversations.vue'\n import PkChatbotViewFiles from './PkChatbotViewFiles.vue'\n import PkChatbotViewProfile from './PkChatbotViewProfile.vue'\n import PkStreamingMarkdown from './PkStreamingMarkdown.vue'\n import { ChatbotProfileContextKey } from './chatbotProfileContext'\n import { provideChatImagePolicy } from './chatImagePolicy'\n import { agentThemeStyle, resolveContrastColor } from './utils'\n\n // Captured in script setup to avoid TS7022 circular inference in template\n const slots = useSlots()\n\n const { t: $t } = useI18n({\n useScope: 'global',\n })\n\n const props = defineProps<{\n baseUrl: string\n basePath?: string\n agentId: string\n agentType?: 'reasoning' | 'chat'\n userId?: string\n name?: string\n model?: string\n agentModel?: AgentModel\n agentTools?: AgentTools\n agentInterface?: AgentInterface\n actions?: ChatMessageActions[]\n revisedAnswers?: RevisedAnswer[]\n headers?: Record<string, string>\n systemTheme?: 'light' | 'dark'\n agentFileUpload?: AgentFileUpload\n /** Voice configuration from the agent settings: enables the talk button. */\n voice?: AgentVoiceCapability\n fallbackModels?: string[]\n gatewayOptions?: Partial<AgentGatewayOptions>\n externalContext?: Record<string, unknown>\n /** Host tools as the agent allows them (`capabilities.hostTools` of the public agent). */\n hostTools?: HostToolsCapability\n /** Tools the embedding app registered, with the function that runs each (spec `host-tools.md`). */\n hostToolRegistry?: RegisteredHostTool[]\n /** Page access as the agent allows it (`capabilities.pageAccess`, spec `page-tools.md`). */\n pageAccess?: PageAccessCapability\n /**\n * Local folders as the agent allows them (`capabilities.localFolders`,\n * spec `chat-local-folders.md`). Only the app's chat page passes it: the\n * widget's grant would belong to the customer's site.\n */\n localFolders?: LocalFoldersCapability\n /** Whether the user may choose automatic confirmations (`capabilities.confirmations`, spec `auto-confirmations.md`). */\n confirmations?: AgentConfirmationsCapability\n /** The selection bar's groups (`capabilities.selectionActions`, spec `selection-actions.md`). */\n selectionActions?: SelectionActionsCapability\n /** The widget's page tools: only the web component provides them. */\n pageToolRegistry?: RegisteredHostTool[]\n /** The tools of the forms annotated on the page now, read on every request. */\n pageForms?: () => RegisteredHostTool[]\n /** Layout modifier: `widget` (default) keeps the contained layout with header, `fullscreen` removes header/background for full-page usage (the page provides the chrome), `panel` keeps the header but slims it down for a docked side panel (the host provides background and border) */\n modifier?: 'widget' | 'fullscreen' | 'panel'\n /** Display name of the current user, used for the `{name}` placeholder in the fullscreen greeting */\n userName?: string\n /** Show the \"Files in this chat\" menu for hosts that don't provide the\n * profile context but whose user is authenticated (e.g. the backoffice\n * playground). The widget host relies on `canManageProfile` instead. */\n userFilesEnabled?: boolean\n /** The host can close the chat: the header menu offers \"Close\", which emits `close`. */\n closable?: boolean\n }>()\n const emit = defineEmits<{\n 'message-update': [message: UIChatMessage]\n 'show-info': [message: UIChatMessage]\n revise: [message: UIChatMessage]\n error: [error: { type: string; title: string; status: number }]\n /** That conversation is loaded: a message sent now lands in it. */\n loaded: [chatId: string]\n /** The user chose \"Close\" in the header menu. */\n close: []\n /** An action of a selection bar was sent: the telemetry's properties (spec `selection-actions.md`). */\n 'selection-action': [properties: Record<string, string>]\n }>()\n\n const chatId = defineModel<string | undefined>('chatId', {\n type: String,\n default: undefined,\n })\n\n const store = useChatbotStore(props.agentId)\n\n // Resolve backend short-urls (`/api/r/<hash>`) back to their real target\n // for display in tool components. Batched + cached across the chat tree.\n provideShortUrlResolver((hashes) =>\n store.apiClient.resolveShortUrls(hashes),\n )\n\n const {\n messages,\n conversations,\n localChatId,\n activeView,\n chatError,\n isDark,\n pageAccessAvailable,\n pageAccessOff,\n confirmationsAvailable,\n confirmationMode,\n } = storeToRefs(store)\n\n // Ref to store.agentId for watchers (avoids duplicate-key with agentId prop)\n const storeAgentId = toRef(store, 'agentId')\n\n const {\n startNewChat,\n stopGeneration,\n regenerate,\n navigate,\n sendMessage,\n setPageAccessOff,\n setConfirmationMode,\n } = store\n\n // When the agent holds external images, the answers and the tool cards\n // load them by themselves only from the backend this chat talks to and\n // from the hosts the agent lists.\n provideChatImagePolicy(\n () => props.agentInterface,\n () => props.baseUrl,\n )\n\n // Optional profile-management context provided by the host widget.\n // Present only for authenticated, non-anonymous sessions.\n const profile = inject(ChatbotProfileContextKey, undefined)\n const canManageProfile = computed(\n () => profile?.canManageProfile.value ?? false,\n )\n // Anonymous users get a \"Sign in\" entry instead of the profile one,\n // provided the host filled the `view-auth` slot and the agent has at\n // least one auth method enabled.\n const canSignIn = computed(\n () =>\n !canManageProfile.value &&\n (profile?.canSignIn?.value ?? false) &&\n slots['view-auth'] !== undefined,\n )\n\n // GDPR B.3: bulk \"delete my conversations\", available to anonymous\n // sessions too (the host wires the endpoint through the profile context).\n // Hidden when the host application owns the session (external token or\n // host-session mode): the endpoint erases ALL conversations of the\n // session's user platform-wide, an account-scoped action that belongs to\n // the host, not to an embedded widget. Same gating as sign-out and\n // manage-profile in PkChatbotViewProfile. It is the last, danger entry of\n // the header menu while the conversations are on screen, so the list\n // holds only the conversations (DESIGN.md: an irreversible action in a\n // menu is a danger VvDropdownAction).\n const { openDialogConfirm } = useDialogConfirm()\n const canEraseConversations = computed(\n () =>\n !!profile?.eraseConversations &&\n !(profile.isExternalAuth?.value ?? false),\n )\n const showEraseConversations = computed(\n () =>\n canEraseConversations.value &&\n activeView.value === 'conversations' &&\n conversations.value.length > 0,\n )\n const isErasingConversations = ref(false)\n const handleEraseAll = async () => {\n const eraseConversations = profile?.eraseConversations\n if (!eraseConversations || !canEraseConversations.value) {\n return\n }\n const proceed = await openDialogConfirm({\n title: $t('confirmTitle.deleteMyConversations'),\n questionLabel: $t('message.deleteMyConversationsConfirm'),\n descriptionLabel: $t('message.deleteMyConversationsConsequence'),\n confirmLabel: $t('action.deleteMyConversationsConfirm'),\n danger: true,\n })\n if (!proceed) {\n return\n }\n isErasingConversations.value = true\n try {\n await eraseConversations()\n conversations.value = []\n startNewChat()\n } catch {\n // Same policy as single delete: fail silently and reconcile\n // with the server state\n store.loadConversations(props.agentId)\n } finally {\n isErasingConversations.value = false\n }\n }\n\n // Once the sign-in completes (the session becomes non-anonymous) leave\n // the auth view and return to the conversation.\n watch(canManageProfile, (canManage) => {\n if (canManage && activeView.value === 'auth') {\n navigate('chat')\n }\n })\n\n // Sync props → store reactively\n watchEffect(() => {\n store.baseUrl = props.baseUrl\n store.basePath = props.basePath\n store.name = props.name\n store.agentType = props.agentType\n store.userId = props.userId\n store.agentInterface = props.agentInterface\n store.agentModel = props.agentModel\n store.agentTools = props.agentTools\n store.headers = props.headers\n store.revisedAnswers = props.revisedAnswers\n store.model = props.model\n store.actionsInput = props.actions\n store.agentFileUpload = props.agentFileUpload\n store.agentVoice = props.voice\n store.fallbackModels = props.fallbackModels\n store.gatewayOptions = props.gatewayOptions\n store.externalContext = props.externalContext\n store.agentHostTools = props.hostTools\n store.hostToolRegistry = props.hostToolRegistry\n store.agentPageAccess = props.pageAccess\n store.agentLocalFolders = props.localFolders\n store.agentConfirmations = props.confirmations\n store.agentSelectionActions = props.selectionActions\n store.pageToolRegistry = props.pageToolRegistry\n store.pageFormsProvider = props.pageForms\n store.systemTheme = props.systemTheme\n store.hideWelcomeMessage = props.modifier === 'fullscreen'\n })\n\n // Sync chatId v-model ↔ store (bidirectional)\n // Parent → store: if the parent provides an external chatId, push it into\n // the store so the Chat instance picks it up.\n watch(\n () => chatId.value,\n (id) => {\n if (id && id !== store.localChatId) {\n store.localChatId = id\n }\n },\n { immediate: true },\n )\n // Store → parent: keep the v-model in sync whenever the store changes\n // the chatId internally (e.g. startNewChat).\n watch(localChatId, (id) => {\n chatId.value = id\n })\n\n // Emit structured errors from chat to the parent component\n watch(chatError, (error) => {\n if (!error) {\n return\n }\n try {\n const parsedError = JSON.parse(error.message) as {\n type: string\n title: string\n status: number\n }\n emit('error', parsedError)\n } catch {\n // ignore non-JSON errors\n }\n })\n\n // ui\n const isFullscreen = computed(() => props.modifier === 'fullscreen')\n const isPanel = computed(() => props.modifier === 'panel')\n\n /**\n * How much room the chat has, measured on the chat and not on the window.\n *\n * The same chat renders in a phone page, in a 408px widget, in a docked\n * panel and in a preview frame that the side panels squeeze to phone width\n * on a desktop screen, so the viewport says nothing about the space the\n * layout actually has. A CSS container query would read the same number\n * with no JavaScript, but `container-type` makes the element a containing\n * block for `position: fixed` descendants on every engine except Chrome\n * 129 and later, which displaces every dropdown in the chat: see\n * docs/agents/gotchas.md, \"The chat measures its own width, and not with a\n * container query\".\n *\n * The thresholds carry the modifiers, so the CSS stays declarative:\n * `--phone` has as much room as a phone page, `--tight` is too tight for\n * the agent chip beside the field, `--wide` has room for the outline rail\n * beside the reading column. Before the first measurement the width is 0\n * and no modifier applies, which is the roomy layout the base CSS writes.\n */\n const chatbotEl = useTemplateRef<HTMLDivElement>('chatbotEl')\n const { width: chatbotWidth } = useElementSize(chatbotEl)\n const isPhoneWidth = computed(\n () => chatbotWidth.value > 0 && chatbotWidth.value < 576,\n )\n const isTightWidth = computed(\n () => chatbotWidth.value > 0 && chatbotWidth.value < 640,\n )\n const isWideWidth = computed(() => chatbotWidth.value >= 848)\n const isReasoningAgent = computed(() => props.agentType === 'reasoning')\n // The notice says how a reasoning agent reads a message: it stands before\n // the first one, then leaves the room to the answers (pinned, it took a\n // third of a phone screen in the reasoning playground)\n const showReasoningNotice = computed(\n () =>\n isReasoningAgent.value &&\n !messages.value.some((message) => message.role === 'user'),\n )\n // A docked panel keeps a neutral header whatever the agent asks: it sits\n // beside the site or the app as part of the frame, and a colored band\n // made it read as a second site next to the first one.\n const useColorsForAgentHeader = computed(\n () => !isPanel.value && props.agentInterface?.useColorsForAgentHeader,\n )\n // Panel mode promotes the everyday actions (new chat, history) from the\n // dropdown to direct header buttons: the dropdown then only remains for\n // the secondary entries (files, profile, sign-in) and disappears when\n // none of them applies.\n const showHeaderMenu = computed(\n () =>\n !isPanel.value ||\n canManageProfile.value ||\n canSignIn.value ||\n pageAccessAvailable.value ||\n confirmationsAvailable.value ||\n props.closable ||\n showEraseConversations.value ||\n (!!props.userFilesEnabled && !!localChatId.value),\n )\n const themeClass = computed(() => [\n 'theme',\n `theme--${isDark.value ? 'dark' : 'light'}`,\n ])\n const mainColor = computed(() => props.agentInterface?.mainColor)\n const contrastColor = computed(() =>\n resolveContrastColor(props.agentInterface?.textColor, mainColor.value),\n )\n const themeStyle = computed(() =>\n agentThemeStyle(mainColor.value, contrastColor.value),\n )\n const footerMessage = useLocalizedString(\n () => props.agentInterface?.footerMessage,\n )\n const title = computed(() => {\n if (activeView.value === 'conversations') {\n return $t('label.conversations')\n }\n if (activeView.value === 'profile') {\n return $t('label.profile')\n }\n if (activeView.value === 'auth') {\n return $t('label.authentication')\n }\n if (activeView.value === 'files') {\n return $t('userFiles.chatFilesTitle')\n }\n return props.name\n })\n\n // state\n const activeMessage = computed(() => {\n return messages.value?.[messages.value.length - 1]\n })\n\n // expose\n defineExpose({\n startNewChat,\n regenerate,\n stopGeneration,\n sendMessage,\n sendSelection: store.sendSelection,\n })\n\n // load chat, conversations and feedbacks on agent or chat change\n watch(\n [storeAgentId, localChatId],\n async ([newAgentId, newChatId]) => {\n await store.initialize(newAgentId, newChatId)\n emit('loaded', newChatId)\n },\n {\n immediate: true,\n },\n )\n // load conversations when navigating to conversations view\n watch(activeView, (newView) => {\n if (newView === 'conversations') {\n store.loadConversations(storeAgentId.value)\n } else if (newView === 'files') {\n store.loadChatFiles()\n }\n })\n // emit message updates for up-to-date context in parent components\n watch(\n activeMessage,\n (message) => {\n if (message) {\n emit('message-update', message)\n }\n },\n {\n deep: true,\n immediate: true,\n },\n )\n</script>\n\n<template>\n <div\n ref=\"chatbotEl\"\n class=\"pk-chatbot\"\n :class=\"[\n themeClass,\n {\n 'pk-chatbot--fullscreen': isFullscreen,\n 'pk-chatbot--panel': isPanel,\n 'pk-chatbot--phone': isPhoneWidth,\n 'pk-chatbot--tight': isTightWidth,\n 'pk-chatbot--wide': isWideWidth,\n },\n ]\"\n :style=\"themeStyle\">\n <!-- #region title -->\n <div\n v-if=\"!isFullscreen\"\n class=\"pk-chatbot__header\"\n :style=\"\n useColorsForAgentHeader\n ? {\n backgroundColor: mainColor,\n }\n : undefined\n \">\n <div class=\"pk-chatbot__header-start\">\n <template v-if=\"activeView !== 'chat'\">\n <VvButton\n v-bind=\"{\n modifiers: useColorsForAgentHeader\n ? `action-quiet-${contrastColor}`\n : 'action-quiet',\n icon: 'ri:arrow-left-s-line',\n title: $t('action.goBack'),\n }\"\n @click=\"navigate('chat')\" />\n <VvIcon\n :name=\"\n activeView === 'conversations'\n ? 'ri:history-line'\n : activeView === 'files'\n ? 'ri:attachment-2'\n : 'ri:user-line'\n \"\n class=\"pk-chatbot__nav-icon\"\n :style=\"\n useColorsForAgentHeader\n ? {\n color: contrastColor,\n }\n : undefined\n \" />\n </template>\n <!-- Panel mode: no avatar, the docked panel identifies the\n agent with the title alone. The title beside it names\n the agent, so the tile is hidden from screen readers:\n VvAvatar would announce it as \"avatar\". -->\n <PkAvatar\n v-else-if=\"!isPanel\"\n class=\"pk-chatbot__avatar\"\n aria-hidden=\"true\"\n :name\n :img-src=\"agentInterface?.logo\" />\n <strong\n class=\"pk-chatbot__title\"\n :title=\"title\"\n :style=\"\n useColorsForAgentHeader\n ? {\n color: contrastColor,\n }\n : undefined\n \">\n {{ title }}\n </strong>\n </div>\n <VvButtonGroup class=\"pk-chatbot__header-end\" modifiers=\"compact\">\n <slot\n name=\"header-actions\"\n v-bind=\"{\n mainColor,\n useColorsForAgentHeader,\n contrastColor,\n startNewChat,\n stopGeneration,\n }\" />\n <template v-if=\"isPanel\">\n <VvButton\n :modifiers=\"\n useColorsForAgentHeader\n ? `action-quiet-${contrastColor}`\n : 'action-quiet'\n \"\n icon=\"ri:edit-box-line\"\n :title=\"$t('action.startNewChat')\"\n @click=\"startNewChat()\" />\n <VvButton\n v-if=\"!isReasoningAgent\"\n :modifiers=\"\n useColorsForAgentHeader\n ? `action-quiet-${contrastColor}`\n : 'action-quiet'\n \"\n icon=\"ri:history-line\"\n :title=\"$t('action.viewRecentChats')\"\n @click=\"navigate('conversations')\" />\n </template>\n <VvDropdown\n v-if=\"showHeaderMenu\"\n v-bind=\"{\n placement: 'bottom-end',\n modifiers: 'menu',\n flip: true,\n offset: 3,\n strategy: 'fixed',\n }\">\n <VvButton\n v-bind=\"{\n modifiers: useColorsForAgentHeader\n ? `action-quiet-${contrastColor}`\n : 'action-quiet',\n icon: 'ri:more-2-fill',\n title: $t('action.moreActions'),\n }\" />\n <template #items>\n <VvDropdownAction\n v-if=\"!isPanel\"\n @click=\"startNewChat()\">\n <VvIcon name=\"ri:edit-box-line\" />\n {{ $t('action.startNewChat') }}\n </VvDropdownAction>\n <VvDropdownAction\n v-if=\"\n !isReasoningAgent &&\n !isPanel &&\n activeView !== 'conversations'\n \"\n @click=\"navigate('conversations')\">\n <VvIcon name=\"ri:history-line\" />\n {{ $t('action.viewRecentChats') }}\n </VvDropdownAction>\n <VvDropdownAction\n v-if=\"\n (canManageProfile || userFilesEnabled) &&\n localChatId\n \"\n @click=\"navigate('files')\">\n <VvIcon name=\"ri:attachment-2\" />\n {{ $t('userFiles.chatFilesTitle') }}\n </VvDropdownAction>\n <!-- The user's own switch for the page tools, for\n this tab (spec page-tools.md) -->\n <VvDropdownAction\n v-if=\"pageAccessAvailable\"\n @click=\"setPageAccessOff(!pageAccessOff)\">\n <VvIcon\n :name=\"\n pageAccessOff\n ? 'ri:pages-line'\n : 'ri:forbid-line'\n \" />\n {{\n pageAccessOff\n ? $t('action.enablePageAccess')\n : $t('action.disablePageAccess')\n }}\n </VvDropdownAction>\n <!-- The user's choice of confirmations, where the\n agent allows it (spec auto-confirmations.md) -->\n <VvDropdownAction\n v-if=\"confirmationsAvailable\"\n @click=\"\n setConfirmationMode(\n confirmationMode === 'automatic'\n ? 'manual'\n : 'automatic',\n )\n \">\n <VvIcon\n :name=\"\n confirmationMode === 'automatic'\n ? 'ri:hand'\n : 'ri:flashlight-line'\n \" />\n {{\n confirmationMode === 'automatic'\n ? $t('action.manualConfirmations')\n : $t('action.automaticConfirmations')\n }}\n </VvDropdownAction>\n <VvDropdownAction\n v-if=\"canManageProfile\"\n @click=\"navigate('profile')\">\n <VvIcon name=\"ri:user-line\" />\n {{ $t('label.profile') }}\n </VvDropdownAction>\n <VvDropdownAction\n v-else-if=\"canSignIn\"\n @click=\"navigate('auth')\">\n <VvIcon name=\"ri:account-circle-line\" />\n {{ $t('action.signIn') }}\n </VvDropdownAction>\n <VvDropdownAction\n v-if=\"closable\"\n @click=\"emit('close')\">\n <VvIcon name=\"ri:close-line\" />\n {{ $t('action.close') }}\n </VvDropdownAction>\n <VvDropdownAction\n v-if=\"showEraseConversations\"\n modifiers=\"danger\"\n :disabled=\"isErasingConversations\"\n @click=\"handleEraseAll()\">\n <VvIcon name=\"ri:delete-bin-line\" />\n {{ $t('action.deleteMyConversations') }}\n </VvDropdownAction>\n </template>\n </VvDropdown>\n <slot\n name=\"actions\"\n v-bind=\"{\n mainColor,\n useColorsForAgentHeader,\n contrastColor,\n startNewChat,\n stopGeneration,\n }\" />\n </VvButtonGroup>\n </div>\n <!-- #endregion -->\n\n <div v-if=\"showReasoningNotice\">\n <div class=\"pk-chatbot__warning-body\">\n <VvAlert modifiers=\"callout\">\n <div class=\"pk-chatbot__warning-header\">\n <VvIcon\n name=\"ri:alert-line\"\n class=\"pk-chatbot__warning-icon\" />\n <strong class=\"pk-chatbot__warning-title\">\n {{ $t('message.warning') }}\n </strong>\n </div>\n <p class=\"pk-chatbot__warning-text\">\n {{ $t('message.reasoningAgent') }}\n </p>\n </VvAlert>\n </div>\n </div>\n\n <!-- #region views -->\n <PkChatbotViewChat\n v-if=\"activeView === 'chat'\"\n :agent-id\n :modifier\n :user-name\n @show-info=\"emit('show-info', $event)\"\n @revise=\"emit('revise', $event)\"\n @selection-action=\"emit('selection-action', $event)\">\n <template\n v-for=\"slotName in Object.keys(slots)\"\n #[slotName]=\"slotData\"\n ><slot :name=\"slotName\" v-bind=\"slotData\"\n /></template>\n </PkChatbotViewChat>\n <PkChatbotViewConversations\n v-else-if=\"activeView === 'conversations'\"\n :agent-id>\n <template\n v-for=\"slotName in Object.keys(slots)\"\n #[slotName]=\"slotData\"\n ><slot :name=\"slotName\" v-bind=\"slotData\"\n /></template>\n </PkChatbotViewConversations>\n <PkChatbotViewFiles v-else-if=\"activeView === 'files'\" :agent-id />\n <div\n v-else-if=\"activeView === 'auth'\"\n class=\"pk-chatbot__view-auth flex-1 min-h-0 overflow-y-auto\">\n <!-- Sign-in form provided by the host widget (owns the auth client) -->\n <slot name=\"view-auth\" />\n </div>\n <PkChatbotViewProfile v-else :agent-id>\n <template\n v-for=\"slotName in Object.keys(slots)\"\n #[slotName]=\"slotData\"\n ><slot :name=\"slotName\" v-bind=\"slotData\"\n /></template>\n </PkChatbotViewProfile>\n <!-- #endregion -->\n\n <!-- #region footer -->\n <div v-if=\"footerMessage\" class=\"pk-chatbot__footer\">\n <PkStreamingMarkdown :markdown=\"footerMessage\" class=\"wysiwyg\" />\n </div>\n <!-- #endregion -->\n </div>\n</template>\n\n<style lang=\"scss\">\n .pk-chatbot {\n display: flex;\n flex-direction: column;\n position: relative;\n height: 100%;\n background-color: var(--color-surface);\n\n &__header {\n position: sticky;\n top: 0;\n z-index: 1;\n display: flex;\n justify-content: space-between;\n gap: var(--spacing-14);\n background-color: var(--color-surface-1);\n padding: var(--spacing-14);\n border-bottom: 1px solid var(--color-surface-3);\n }\n\n &__header-start {\n display: flex;\n align-items: center;\n gap: var(--spacing-sm);\n min-width: 0;\n }\n\n &__nav-icon {\n font-size: var(--text-18);\n }\n\n &__avatar {\n width: var(--spacing-24);\n height: var(--spacing-24);\n }\n\n &__title {\n font-size: var(--text-16);\n font-weight: var(--font-semibold);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n &__header-end {\n flex-shrink: 0;\n }\n\n &__warning-body {\n padding: var(--spacing-md);\n border-bottom: 1px solid var(--color-surface-3);\n }\n\n &__warning-header {\n display: flex;\n align-items: center;\n gap: var(--spacing-4);\n margin-bottom: var(--spacing-4);\n }\n\n &__warning-icon {\n width: var(--spacing-16);\n height: var(--spacing-16);\n }\n\n &__warning-title {\n font-weight: 600;\n font-size: var(--text-14);\n }\n\n &__warning-text {\n font-size: var(--text-12);\n color: var(--color-word-3);\n }\n\n &__footer {\n padding: var(--spacing-md);\n border-top: 1px solid var(--color-surface-3);\n text-align: center;\n font-size: var(--text-12);\n color: var(--color-word-2);\n }\n\n // Modifier: fullscreen — layout full-page (Gemini-style): nessun\n // header interno, sfondo trasparente, input pill centrato.\n // Il chrome (sidebar, navigazione) è gestito dalla pagina ospite.\n &--fullscreen {\n // The dock, 60px. Declared rather than taken from the agent chip,\n // which the tight layout hides: the pill fell to 54px there and\n // the call bar that takes its place stayed at 60. There is no 60\n // in the spacing scale and a raw `60px` would stop following the\n // root font size, which the labels inside do follow.\n --pk-chat-fullscreen-dock-height: calc(\n var(--spacing-56) + var(--spacing-4)\n );\n\n // The pill, the notice that tucks into its top corners and the\n // call bar all round their ends on half of it.\n --pk-chat-dock-radius: calc(\n var(--pk-chat-fullscreen-dock-height) / 2\n );\n\n background-color: transparent;\n\n .pk-chatbot__footer {\n border-top: none;\n padding: 0 var(--spacing-md) var(--spacing-sm) var(--spacing-md);\n }\n\n // Reading column aligned with the input (Gemini-style). The\n // constraint lives on the inner wrapper so the scroll container\n // spans the page and the scrollbar sits at its edge.\n .pk-chatbot-messages {\n // Symmetric gutters: a visible scrollbar would otherwise\n // shrink the content box on one side only, shifting the\n // column off the input axis\n scrollbar-gutter: stable both-edges;\n\n // Dissolve the content at both edges (works on any page\n // background, dots included — a surface-colored fade band\n // would cut through the pattern instead)\n mask-image: linear-gradient(\n to bottom,\n transparent 0,\n #000 var(--spacing-40),\n #000 calc(100% - var(--spacing-40)),\n transparent 100%\n );\n\n // Resting clearance so the first/last lines sit inside the\n // fully opaque zone\n padding-block: var(--spacing-48);\n }\n\n .pk-chatbot-messages__wrapper {\n width: 100%;\n max-width: 768px;\n margin-inline: auto;\n }\n\n // Outline rail: wide chats only, measured on the chat and not on\n // the viewport, so a preview frame squeezed by side panels loses\n // it like a phone does. The rail sits at the edge of the scroll\n // area beside the reading column: below the `--wide` threshold\n // (768px column plus a 40px rail on each side) it would cover the\n // messages instead.\n .pk-chatbot-messages__outline {\n display: none;\n }\n\n &.pk-chatbot--wide .pk-chatbot-messages__outline {\n display: block;\n }\n\n .pk-chatbot-file-preview {\n background-color: var(--color-surface);\n }\n\n .pk-chatbot-input__notice {\n background-color: var(--color-surface);\n border-inline: 1px solid var(--color-surface-3);\n border-top: 1px solid var(--color-surface-2);\n padding: var(--spacing-10) var(--spacing-16);\n\n // As deep as the pill's corners, or the page shows through\n // where their curve leaves the side\n &::after {\n background-color: var(--color-surface);\n border-inline: 1px solid var(--color-surface-2);\n bottom: calc(-1 * var(--pk-chat-dock-radius));\n height: var(--pk-chat-dock-radius);\n left: -1px;\n right: -1px;\n }\n }\n\n .pk-chatbot-input {\n width: calc(100% - var(--spacing-sm) * 2);\n max-width: 768px;\n margin-inline: auto;\n\n &__form {\n // True semicircles at rest, concentric with the send\n // button, whose center sits 30px in. Not `rounded-full`:\n // once Shift+Enter grows the field the ends would swell\n // with it and cut into the first and last line.\n border-radius: var(--pk-chat-dock-radius);\n min-height: var(--pk-chat-fullscreen-dock-height);\n padding: var(--spacing-12) var(--spacing-16);\n background-color: var(--color-surface-1);\n border-color: var(--color-surface-2);\n box-shadow: none;\n transition:\n border-color var(--duration-200) var(--ease-in-out),\n box-shadow var(--duration-200) var(--ease-in-out);\n\n &:has(:focus-within) {\n border-color: var(--color-surface-4);\n box-shadow: var(--shadow-sm);\n }\n\n @media (prefers-reduced-motion: reduce) {\n transition: none;\n }\n }\n\n &__textarea {\n background-color: transparent;\n }\n }\n\n // A live call takes the place of the input, so it takes its shape,\n // its column and its height: full-bleed here would break the\n // reading axis, and a different height would make the dock jump\n // the moment the call starts.\n .pk-voice-session {\n --pk-chat-dock-height: var(--pk-chat-fullscreen-dock-height);\n --pk-voice-orb-size: var(--spacing-40);\n --pk-voice-orb-bars-height: var(--spacing-20);\n --pk-voice-session-surface: var(--color-surface-1);\n\n width: calc(100% - var(--spacing-sm) * 2);\n max-width: 768px;\n margin-inline: auto;\n padding-inline: var(--spacing-16);\n border-color: var(--color-surface-2);\n border-radius: var(--pk-chat-dock-radius);\n box-shadow: none;\n\n &__timer {\n font-size: var(--text-14);\n }\n }\n\n // A colleague's conversation in a shared project: the line that\n // takes the input's place takes its shape, column and height too,\n // as the call does, so the dock does not jump between chats.\n .pk-chatbot-view-chat__read-only {\n width: calc(100% - var(--spacing-sm) * 2);\n max-width: 768px;\n min-height: var(--pk-chat-fullscreen-dock-height);\n margin-inline: auto;\n padding-inline: var(--spacing-16) var(--spacing-12);\n border-color: var(--color-surface-2);\n border-radius: var(--pk-chat-dock-radius);\n background-color: var(--color-surface-1);\n }\n\n // The chat's tasks above the pill, in its column and its edge,\n // with the inset of the notice here, 16px inside a border\n .pk-chatbot-wakeup-bar {\n --pk-chatbot-wakeup-bar-border: var(--color-surface-2);\n --pk-chatbot-wakeup-bar-inset: var(--spacing-16);\n\n width: calc(100% - var(--spacing-sm) * 2);\n max-width: 768px;\n margin-inline: auto;\n }\n }\n\n // Modifier: panel — compact chrome for a docked side panel: the host\n // container owns background and border, the header slims down and\n // drops its own surface so the chat blends into the panel.\n &--panel {\n background-color: transparent;\n\n .pk-chatbot__header {\n background-color: transparent;\n\n // Fixed height so the panel header lines up with the host's\n // own chrome. Custom properties inherit through the shadow\n // root: an embedding host can override it to match its\n // header (the default matches the platform header, 50px).\n height: var(--pk-chatbot-panel-header-height, 50px);\n align-items: center;\n padding-block: 0;\n padding-inline: var(--spacing-10);\n border-bottom: 1px solid var(--color-surface-3);\n }\n\n .pk-chatbot__title {\n font-size: var(--text-14);\n }\n\n .pk-chatbot__footer {\n border-top: none;\n padding: var(--spacing-6) var(--spacing-md);\n }\n }\n\n // A chat given a whole page without the fullscreen layout (the page\n // an iframe embeds, a widget its host lets fill the screen) keeps the\n // reading column of the fullscreen one: at 1440px an answer ran\n // 1408px wide, some two hundred characters a line. Measured on the\n // chat, like `--wide` itself, so a narrow frame is left alone.\n &--wide:not(.pk-chatbot--fullscreen) {\n .pk-chatbot-messages__wrapper,\n .pk-chatbot-input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EAAmEW,IAAA;;KAAX,YAAAsC,EAAA;I,6BAEzCrD,EAAAqE,CAAA,MAAU,UADzB1E,EAAA,GAAAC,EAKM,OALN4C,IAKM,CADFhC,EAAyBoI,EAAA,QAAA,WAAA,C,OAE7BjJ,EAAA,GAAAS,EAMuBY,IAAA;;KANO,YAAAqC,EAAA;I,gBAEHxC,EAAA,OAAO,KAAKb,EAAAgD,CAAA,CAAK,IAA7B,O;KACN,MAAAwG;KACA,IAAAjJ,GADY,MAAQ,CACpBC,EACHoI,EAAA,QADgBY,GAAQ/I,EAAAC,EAAU+I,CAAQ,CAAA,CAAA,C;;IAMrCzJ,EAAA4G,EAAA,KAAXjH,EAAA,GAAAC,EAEM,OAFN6C,IAEM,CADFvC,EAAiEe,IAAA;KAA3C,UAAUjB,EAAA4G,EAAA;KAAe,OAAM"}
|
|
1
|
+
{"version":3,"file":"PkChatbot-BWgqvPsG.js","names":["_useModel","_openBlock","_createElementBlock","_normalizeClass","_normalizeStyle","_createElementVNode","_unref","_Fragment","_createVNode","_mergeProps","_createBlock","PkAvatar","_toDisplayString","_withCtx","_renderSlot","_normalizeProps","_guardReactiveProps","_createTextVNode","PkChatbotViewChat","_renderList","PkChatbotViewConversations","PkChatbotViewFiles","PkChatbotViewProfile","PkStreamingMarkdown","VvButtonLocalized","useChatbotStore","useDialogConfirm","useLocalizedString","provideShortUrlResolver","PkAvatar_default","PkChatbotViewChat_default","PkChatbotViewConversations_default","PkChatbotViewFiles_default","ChatbotProfileContextKey","PkChatbotViewProfile_default","provideChatImagePolicy","PkStreamingMarkdown_default","agentThemeStyle","resolveContrastColor","_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","PkChatbot_default","defineComponent","\"chatId\"","\"chatIdModifiers\"","__expose","__emit","slots","useSlots","$t","useI18n","props","__props","emit","chatId","useModel","store","hashes","storeToRefs","storeAgentId","toRef","profile","inject","canManageProfile","computed","canSignIn","canEraseConversations","showEraseConversations","activeView","conversations","isErasingConversations","ref","handleEraseAll","eraseConversations","openDialogConfirm","startNewChat","watch","canManage","navigate","watchEffect","id","localChatId","chatError","error","parsedError","isFullscreen","isPanel","chatbotEl","useTemplateRef","chatbotWidth","useElementSize","isPhoneWidth","isTightWidth","isWideWidth","isReasoningAgent","showReasoningNotice","messages","message","useColorsForAgentHeader","showHeaderMenu","pageAccessAvailable","confirmationsAvailable","themeClass","isDark","mainColor","contrastColor","themeStyle","footerMessage","title","activeMessage","newAgentId","newChatId","newView","_component_VvButton","_component_VvIcon","VvIcon","_component_VvDropdownAction","VvDropdownAction","_component_VvDropdown","VvDropdown","_component_VvButtonGroup","VvButtonGroup","_component_VvAlert","VvAlert","openBlock","createElementBlock","normalizeClass","normalizeStyle","createCommentVNode","createElementVNode","unref","createBlock","Fragment","createVNode","mergeProps","_cache","toDisplayString","withCtx","renderSlot","_ctx","normalizeProps","guardReactiveProps","stopGeneration","createTextVNode","setPageAccessOff","pageAccessOff","setConfirmationMode","confirmationMode","$event","createSlots","renderList","slotName","slotData"],"sources":["../../../../packages/components/src/chat/PkChatbot.vue"],"sourcesContent":["<script setup lang=\"ts\">\n import {\n computed,\n inject,\n ref,\n toRef,\n useTemplateRef,\n watch,\n watchEffect,\n useSlots,\n } from 'vue'\n import { useElementSize } from '@vueuse/core'\n import { storeToRefs } from 'pinia'\n import { useI18n } from 'vue-i18n'\n import type {\n AgentConfirmationsCapability,\n AgentInterface,\n AgentModel,\n AgentFileUpload,\n AgentGatewayOptions,\n AgentVoiceCapability,\n ChatMessageActions,\n RevisedAnswer,\n UIChatMessage,\n AgentTools,\n HostToolsCapability,\n LocalFoldersCapability,\n PageAccessCapability,\n SelectionActionsCapability,\n } from 'models'\n import {\n type RegisteredHostTool,\n useChatbotStore,\n useDialogConfirm,\n useLocalizedString,\n provideShortUrlResolver,\n } from 'composables'\n import PkAvatar from './PkAvatar.vue'\n import PkChatbotViewChat from './PkChatbotViewChat.vue'\n import PkChatbotViewConversations from './PkChatbotViewConversations.vue'\n import PkChatbotViewFiles from './PkChatbotViewFiles.vue'\n import PkChatbotViewProfile from './PkChatbotViewProfile.vue'\n import PkStreamingMarkdown from './PkStreamingMarkdown.vue'\n import { ChatbotProfileContextKey } from './chatbotProfileContext'\n import { provideChatImagePolicy } from './chatImagePolicy'\n import { agentThemeStyle, resolveContrastColor } from './utils'\n\n // Captured in script setup to avoid TS7022 circular inference in template\n const slots = useSlots()\n\n const { t: $t } = useI18n({\n useScope: 'global',\n })\n\n const props = defineProps<{\n baseUrl: string\n basePath?: string\n agentId: string\n agentType?: 'reasoning' | 'chat'\n userId?: string\n name?: string\n model?: string\n agentModel?: AgentModel\n agentTools?: AgentTools\n agentInterface?: AgentInterface\n actions?: ChatMessageActions[]\n revisedAnswers?: RevisedAnswer[]\n headers?: Record<string, string>\n systemTheme?: 'light' | 'dark'\n agentFileUpload?: AgentFileUpload\n /** Voice configuration from the agent settings: enables the talk button. */\n voice?: AgentVoiceCapability\n fallbackModels?: string[]\n gatewayOptions?: Partial<AgentGatewayOptions>\n externalContext?: Record<string, unknown>\n /** Host tools as the agent allows them (`capabilities.hostTools` of the public agent). */\n hostTools?: HostToolsCapability\n /** Tools the embedding app registered, with the function that runs each (spec `host-tools.md`). */\n hostToolRegistry?: RegisteredHostTool[]\n /** Page access as the agent allows it (`capabilities.pageAccess`, spec `page-tools.md`). */\n pageAccess?: PageAccessCapability\n /**\n * Local folders as the agent allows them (`capabilities.localFolders`,\n * spec `chat-local-folders.md`). Only the app's chat page passes it: the\n * widget's grant would belong to the customer's site.\n */\n localFolders?: LocalFoldersCapability\n /** Whether the user may choose automatic confirmations (`capabilities.confirmations`, spec `auto-confirmations.md`). */\n confirmations?: AgentConfirmationsCapability\n /** The selection bar's groups (`capabilities.selectionActions`, spec `selection-actions.md`). */\n selectionActions?: SelectionActionsCapability\n /** The widget's page tools: only the web component provides them. */\n pageToolRegistry?: RegisteredHostTool[]\n /** The tools of the forms annotated on the page now, read on every request. */\n pageForms?: () => RegisteredHostTool[]\n /** Layout modifier: `widget` (default) keeps the contained layout with header, `fullscreen` removes header/background for full-page usage (the page provides the chrome), `panel` keeps the header but slims it down for a docked side panel (the host provides background and border) */\n modifier?: 'widget' | 'fullscreen' | 'panel'\n /** Display name of the current user, used for the `{name}` placeholder in the fullscreen greeting */\n userName?: string\n /** Show the \"Files in this chat\" menu for hosts that don't provide the\n * profile context but whose user is authenticated (e.g. the backoffice\n * playground). The widget host relies on `canManageProfile` instead. */\n userFilesEnabled?: boolean\n /** The host can close the chat: the header menu offers \"Close\", which emits `close`. */\n closable?: boolean\n }>()\n const emit = defineEmits<{\n 'message-update': [message: UIChatMessage]\n 'show-info': [message: UIChatMessage]\n revise: [message: UIChatMessage]\n error: [error: { type: string; title: string; status: number }]\n /** That conversation is loaded: a message sent now lands in it. */\n loaded: [chatId: string]\n /** The user chose \"Close\" in the header menu. */\n close: []\n /** An action of a selection bar was sent: the telemetry's properties (spec `selection-actions.md`). */\n 'selection-action': [properties: Record<string, string>]\n }>()\n\n const chatId = defineModel<string | undefined>('chatId', {\n type: String,\n default: undefined,\n })\n\n const store = useChatbotStore(props.agentId)\n\n // Resolve backend short-urls (`/api/r/<hash>`) back to their real target\n // for display in tool components. Batched + cached across the chat tree.\n provideShortUrlResolver((hashes) =>\n store.apiClient.resolveShortUrls(hashes),\n )\n\n const {\n messages,\n conversations,\n localChatId,\n activeView,\n chatError,\n isDark,\n pageAccessAvailable,\n pageAccessOff,\n confirmationsAvailable,\n confirmationMode,\n } = storeToRefs(store)\n\n // Ref to store.agentId for watchers (avoids duplicate-key with agentId prop)\n const storeAgentId = toRef(store, 'agentId')\n\n const {\n startNewChat,\n stopGeneration,\n regenerate,\n navigate,\n sendMessage,\n setPageAccessOff,\n setConfirmationMode,\n } = store\n\n // When the agent holds external images, the answers and the tool cards\n // load them by themselves only from the backend this chat talks to and\n // from the hosts the agent lists.\n provideChatImagePolicy(\n () => props.agentInterface,\n () => props.baseUrl,\n )\n\n // Optional profile-management context provided by the host widget.\n // Present only for authenticated, non-anonymous sessions.\n const profile = inject(ChatbotProfileContextKey, undefined)\n const canManageProfile = computed(\n () => profile?.canManageProfile.value ?? false,\n )\n // Anonymous users get a \"Sign in\" entry instead of the profile one,\n // provided the host filled the `view-auth` slot and the agent has at\n // least one auth method enabled.\n const canSignIn = computed(\n () =>\n !canManageProfile.value &&\n (profile?.canSignIn?.value ?? false) &&\n slots['view-auth'] !== undefined,\n )\n\n // GDPR B.3: bulk \"delete my conversations\", available to anonymous\n // sessions too (the host wires the endpoint through the profile context).\n // Hidden when the host application owns the session (external token or\n // host-session mode): the endpoint erases ALL conversations of the\n // session's user platform-wide, an account-scoped action that belongs to\n // the host, not to an embedded widget. Same gating as sign-out and\n // manage-profile in PkChatbotViewProfile. It is the last, danger entry of\n // the header menu while the conversations are on screen, so the list\n // holds only the conversations (DESIGN.md: an irreversible action in a\n // menu is a danger VvDropdownAction).\n const { openDialogConfirm } = useDialogConfirm()\n const canEraseConversations = computed(\n () =>\n !!profile?.eraseConversations &&\n !(profile.isExternalAuth?.value ?? false),\n )\n const showEraseConversations = computed(\n () =>\n canEraseConversations.value &&\n activeView.value === 'conversations' &&\n conversations.value.length > 0,\n )\n const isErasingConversations = ref(false)\n const handleEraseAll = async () => {\n const eraseConversations = profile?.eraseConversations\n if (!eraseConversations || !canEraseConversations.value) {\n return\n }\n const proceed = await openDialogConfirm({\n title: $t('confirmTitle.deleteMyConversations'),\n questionLabel: $t('message.deleteMyConversationsConfirm'),\n descriptionLabel: $t('message.deleteMyConversationsConsequence'),\n confirmLabel: $t('action.deleteMyConversationsConfirm'),\n danger: true,\n })\n if (!proceed) {\n return\n }\n isErasingConversations.value = true\n try {\n await eraseConversations()\n conversations.value = []\n startNewChat()\n } catch {\n // Same policy as single delete: fail silently and reconcile\n // with the server state\n store.loadConversations(props.agentId)\n } finally {\n isErasingConversations.value = false\n }\n }\n\n // Once the sign-in completes (the session becomes non-anonymous) leave\n // the auth view and return to the conversation.\n watch(canManageProfile, (canManage) => {\n if (canManage && activeView.value === 'auth') {\n navigate('chat')\n }\n })\n\n // Sync props → store reactively\n watchEffect(() => {\n store.baseUrl = props.baseUrl\n store.basePath = props.basePath\n store.name = props.name\n store.agentType = props.agentType\n store.userId = props.userId\n store.agentInterface = props.agentInterface\n store.agentModel = props.agentModel\n store.agentTools = props.agentTools\n store.headers = props.headers\n store.revisedAnswers = props.revisedAnswers\n store.model = props.model\n store.actionsInput = props.actions\n store.agentFileUpload = props.agentFileUpload\n store.agentVoice = props.voice\n store.fallbackModels = props.fallbackModels\n store.gatewayOptions = props.gatewayOptions\n store.externalContext = props.externalContext\n store.agentHostTools = props.hostTools\n store.hostToolRegistry = props.hostToolRegistry\n store.agentPageAccess = props.pageAccess\n store.agentLocalFolders = props.localFolders\n store.agentConfirmations = props.confirmations\n store.agentSelectionActions = props.selectionActions\n store.pageToolRegistry = props.pageToolRegistry\n store.pageFormsProvider = props.pageForms\n store.systemTheme = props.systemTheme\n store.hideWelcomeMessage = props.modifier === 'fullscreen'\n })\n\n // Sync chatId v-model ↔ store (bidirectional)\n // Parent → store: if the parent provides an external chatId, push it into\n // the store so the Chat instance picks it up.\n watch(\n () => chatId.value,\n (id) => {\n if (id && id !== store.localChatId) {\n store.localChatId = id\n }\n },\n { immediate: true },\n )\n // Store → parent: keep the v-model in sync whenever the store changes\n // the chatId internally (e.g. startNewChat).\n watch(localChatId, (id) => {\n chatId.value = id\n })\n\n // Emit structured errors from chat to the parent component\n watch(chatError, (error) => {\n if (!error) {\n return\n }\n try {\n const parsedError = JSON.parse(error.message) as {\n type: string\n title: string\n status: number\n }\n emit('error', parsedError)\n } catch {\n // ignore non-JSON errors\n }\n })\n\n // ui\n const isFullscreen = computed(() => props.modifier === 'fullscreen')\n const isPanel = computed(() => props.modifier === 'panel')\n\n /**\n * How much room the chat has, measured on the chat and not on the window.\n *\n * The same chat renders in a phone page, in a 408px widget, in a docked\n * panel and in a preview frame that the side panels squeeze to phone width\n * on a desktop screen, so the viewport says nothing about the space the\n * layout actually has. A CSS container query would read the same number\n * with no JavaScript, but `container-type` makes the element a containing\n * block for `position: fixed` descendants on every engine except Chrome\n * 129 and later, which displaces every dropdown in the chat: see\n * docs/agents/gotchas.md, \"The chat measures its own width, and not with a\n * container query\".\n *\n * The thresholds carry the modifiers, so the CSS stays declarative:\n * `--phone` has as much room as a phone page, `--tight` is too tight for\n * the agent chip beside the field, `--wide` has room for the outline rail\n * beside the reading column. Before the first measurement the width is 0\n * and no modifier applies, which is the roomy layout the base CSS writes.\n */\n const chatbotEl = useTemplateRef<HTMLDivElement>('chatbotEl')\n const { width: chatbotWidth } = useElementSize(chatbotEl)\n const isPhoneWidth = computed(\n () => chatbotWidth.value > 0 && chatbotWidth.value < 576,\n )\n const isTightWidth = computed(\n () => chatbotWidth.value > 0 && chatbotWidth.value < 640,\n )\n const isWideWidth = computed(() => chatbotWidth.value >= 848)\n const isReasoningAgent = computed(() => props.agentType === 'reasoning')\n // The notice says how a reasoning agent reads a message: it stands before\n // the first one, then leaves the room to the answers (pinned, it took a\n // third of a phone screen in the reasoning playground)\n const showReasoningNotice = computed(\n () =>\n isReasoningAgent.value &&\n !messages.value.some((message) => message.role === 'user'),\n )\n // A docked panel keeps a neutral header whatever the agent asks: it sits\n // beside the site or the app as part of the frame, and a colored band\n // made it read as a second site next to the first one.\n const useColorsForAgentHeader = computed(\n () => !isPanel.value && props.agentInterface?.useColorsForAgentHeader,\n )\n // Panel mode promotes the everyday actions (new chat, history) from the\n // dropdown to direct header buttons: the dropdown then only remains for\n // the secondary entries (files, profile, sign-in) and disappears when\n // none of them applies.\n const showHeaderMenu = computed(\n () =>\n !isPanel.value ||\n canManageProfile.value ||\n canSignIn.value ||\n pageAccessAvailable.value ||\n confirmationsAvailable.value ||\n props.closable ||\n showEraseConversations.value ||\n (!!props.userFilesEnabled && !!localChatId.value),\n )\n const themeClass = computed(() => [\n 'theme',\n `theme--${isDark.value ? 'dark' : 'light'}`,\n ])\n const mainColor = computed(() => props.agentInterface?.mainColor)\n const contrastColor = computed(() =>\n resolveContrastColor(props.agentInterface?.textColor, mainColor.value),\n )\n const themeStyle = computed(() =>\n agentThemeStyle(mainColor.value, contrastColor.value),\n )\n const footerMessage = useLocalizedString(\n () => props.agentInterface?.footerMessage,\n )\n const title = computed(() => {\n if (activeView.value === 'conversations') {\n return $t('label.conversations')\n }\n if (activeView.value === 'profile') {\n return $t('label.profile')\n }\n if (activeView.value === 'auth') {\n return $t('label.authentication')\n }\n if (activeView.value === 'files') {\n return $t('userFiles.chatFilesTitle')\n }\n return props.name\n })\n\n // state\n const activeMessage = computed(() => {\n return messages.value?.[messages.value.length - 1]\n })\n\n // expose\n defineExpose({\n startNewChat,\n regenerate,\n stopGeneration,\n sendMessage,\n sendSelection: store.sendSelection,\n })\n\n // load chat, conversations and feedbacks on agent or chat change\n watch(\n [storeAgentId, localChatId],\n async ([newAgentId, newChatId]) => {\n await store.initialize(newAgentId, newChatId)\n emit('loaded', newChatId)\n },\n {\n immediate: true,\n },\n )\n // load conversations when navigating to conversations view\n watch(activeView, (newView) => {\n if (newView === 'conversations') {\n store.loadConversations(storeAgentId.value)\n } else if (newView === 'files') {\n store.loadChatFiles()\n }\n })\n // emit message updates for up-to-date context in parent components\n watch(\n activeMessage,\n (message) => {\n if (message) {\n emit('message-update', message)\n }\n },\n {\n deep: true,\n immediate: true,\n },\n )\n</script>\n\n<template>\n <div\n ref=\"chatbotEl\"\n class=\"pk-chatbot\"\n :class=\"[\n themeClass,\n {\n 'pk-chatbot--fullscreen': isFullscreen,\n 'pk-chatbot--panel': isPanel,\n 'pk-chatbot--phone': isPhoneWidth,\n 'pk-chatbot--tight': isTightWidth,\n 'pk-chatbot--wide': isWideWidth,\n },\n ]\"\n :style=\"themeStyle\">\n <!-- #region title -->\n <div\n v-if=\"!isFullscreen\"\n class=\"pk-chatbot__header\"\n :style=\"\n useColorsForAgentHeader\n ? {\n backgroundColor: mainColor,\n }\n : undefined\n \">\n <div class=\"pk-chatbot__header-start\">\n <template v-if=\"activeView !== 'chat'\">\n <VvButton\n v-bind=\"{\n modifiers: useColorsForAgentHeader\n ? `action-quiet-${contrastColor}`\n : 'action-quiet',\n icon: 'ri:arrow-left-s-line',\n title: $t('action.goBack'),\n }\"\n @click=\"navigate('chat')\" />\n <VvIcon\n :name=\"\n activeView === 'conversations'\n ? 'ri:history-line'\n : activeView === 'files'\n ? 'ri:attachment-2'\n : 'ri:user-line'\n \"\n class=\"pk-chatbot__nav-icon\"\n :style=\"\n useColorsForAgentHeader\n ? {\n color: contrastColor,\n }\n : undefined\n \" />\n </template>\n <!-- Panel mode: no avatar, the docked panel identifies the\n agent with the title alone. The title beside it names\n the agent, so the tile is hidden from screen readers:\n VvAvatar would announce it as \"avatar\". -->\n <PkAvatar\n v-else-if=\"!isPanel\"\n class=\"pk-chatbot__avatar\"\n aria-hidden=\"true\"\n :name\n :img-src=\"agentInterface?.logo\" />\n <strong\n class=\"pk-chatbot__title\"\n :title=\"title\"\n :style=\"\n useColorsForAgentHeader\n ? {\n color: contrastColor,\n }\n : undefined\n \">\n {{ title }}\n </strong>\n </div>\n <VvButtonGroup class=\"pk-chatbot__header-end\" modifiers=\"compact\">\n <slot\n name=\"header-actions\"\n v-bind=\"{\n mainColor,\n useColorsForAgentHeader,\n contrastColor,\n startNewChat,\n stopGeneration,\n }\" />\n <template v-if=\"isPanel\">\n <VvButton\n :modifiers=\"\n useColorsForAgentHeader\n ? `action-quiet-${contrastColor}`\n : 'action-quiet'\n \"\n icon=\"ri:edit-box-line\"\n :title=\"$t('action.startNewChat')\"\n @click=\"startNewChat()\" />\n <VvButton\n v-if=\"!isReasoningAgent\"\n :modifiers=\"\n useColorsForAgentHeader\n ? `action-quiet-${contrastColor}`\n : 'action-quiet'\n \"\n icon=\"ri:history-line\"\n :title=\"$t('action.viewRecentChats')\"\n @click=\"navigate('conversations')\" />\n </template>\n <VvDropdown\n v-if=\"showHeaderMenu\"\n v-bind=\"{\n placement: 'bottom-end',\n modifiers: 'menu',\n flip: true,\n offset: 3,\n strategy: 'fixed',\n }\">\n <VvButton\n v-bind=\"{\n modifiers: useColorsForAgentHeader\n ? `action-quiet-${contrastColor}`\n : 'action-quiet',\n icon: 'ri:more-2-fill',\n title: $t('action.moreActions'),\n }\" />\n <template #items>\n <VvDropdownAction\n v-if=\"!isPanel\"\n @click=\"startNewChat()\">\n <VvIcon name=\"ri:edit-box-line\" />\n {{ $t('action.startNewChat') }}\n </VvDropdownAction>\n <VvDropdownAction\n v-if=\"\n !isReasoningAgent &&\n !isPanel &&\n activeView !== 'conversations'\n \"\n @click=\"navigate('conversations')\">\n <VvIcon name=\"ri:history-line\" />\n {{ $t('action.viewRecentChats') }}\n </VvDropdownAction>\n <VvDropdownAction\n v-if=\"\n (canManageProfile || userFilesEnabled) &&\n localChatId\n \"\n @click=\"navigate('files')\">\n <VvIcon name=\"ri:attachment-2\" />\n {{ $t('userFiles.chatFilesTitle') }}\n </VvDropdownAction>\n <!-- The user's own switch for the page tools, for\n this tab (spec page-tools.md) -->\n <VvDropdownAction\n v-if=\"pageAccessAvailable\"\n @click=\"setPageAccessOff(!pageAccessOff)\">\n <VvIcon\n :name=\"\n pageAccessOff\n ? 'ri:pages-line'\n : 'ri:forbid-line'\n \" />\n {{\n pageAccessOff\n ? $t('action.enablePageAccess')\n : $t('action.disablePageAccess')\n }}\n </VvDropdownAction>\n <!-- The user's choice of confirmations, where the\n agent allows it (spec auto-confirmations.md) -->\n <VvDropdownAction\n v-if=\"confirmationsAvailable\"\n @click=\"\n setConfirmationMode(\n confirmationMode === 'automatic'\n ? 'manual'\n : 'automatic',\n )\n \">\n <VvIcon\n :name=\"\n confirmationMode === 'automatic'\n ? 'ri:hand'\n : 'ri:flashlight-line'\n \" />\n {{\n confirmationMode === 'automatic'\n ? $t('action.manualConfirmations')\n : $t('action.automaticConfirmations')\n }}\n </VvDropdownAction>\n <VvDropdownAction\n v-if=\"canManageProfile\"\n @click=\"navigate('profile')\">\n <VvIcon name=\"ri:user-line\" />\n {{ $t('label.profile') }}\n </VvDropdownAction>\n <VvDropdownAction\n v-else-if=\"canSignIn\"\n @click=\"navigate('auth')\">\n <VvIcon name=\"ri:account-circle-line\" />\n {{ $t('action.signIn') }}\n </VvDropdownAction>\n <VvDropdownAction\n v-if=\"closable\"\n @click=\"emit('close')\">\n <VvIcon name=\"ri:close-line\" />\n {{ $t('action.close') }}\n </VvDropdownAction>\n <VvDropdownAction\n v-if=\"showEraseConversations\"\n modifiers=\"danger\"\n :disabled=\"isErasingConversations\"\n @click=\"handleEraseAll()\">\n <VvIcon name=\"ri:delete-bin-line\" />\n {{ $t('action.deleteMyConversations') }}\n </VvDropdownAction>\n </template>\n </VvDropdown>\n <slot\n name=\"actions\"\n v-bind=\"{\n mainColor,\n useColorsForAgentHeader,\n contrastColor,\n startNewChat,\n stopGeneration,\n }\" />\n </VvButtonGroup>\n </div>\n <!-- #endregion -->\n\n <div v-if=\"showReasoningNotice\">\n <div class=\"pk-chatbot__warning-body\">\n <VvAlert modifiers=\"callout\">\n <div class=\"pk-chatbot__warning-header\">\n <VvIcon\n name=\"ri:alert-line\"\n class=\"pk-chatbot__warning-icon\" />\n <strong class=\"pk-chatbot__warning-title\">\n {{ $t('message.warning') }}\n </strong>\n </div>\n <p class=\"pk-chatbot__warning-text\">\n {{ $t('message.reasoningAgent') }}\n </p>\n </VvAlert>\n </div>\n </div>\n\n <!-- #region views -->\n <PkChatbotViewChat\n v-if=\"activeView === 'chat'\"\n :agent-id\n :modifier\n :user-name\n @show-info=\"emit('show-info', $event)\"\n @revise=\"emit('revise', $event)\"\n @selection-action=\"emit('selection-action', $event)\">\n <template\n v-for=\"slotName in Object.keys(slots)\"\n #[slotName]=\"slotData\"\n ><slot :name=\"slotName\" v-bind=\"slotData\"\n /></template>\n </PkChatbotViewChat>\n <PkChatbotViewConversations\n v-else-if=\"activeView === 'conversations'\"\n :agent-id>\n <template\n v-for=\"slotName in Object.keys(slots)\"\n #[slotName]=\"slotData\"\n ><slot :name=\"slotName\" v-bind=\"slotData\"\n /></template>\n </PkChatbotViewConversations>\n <PkChatbotViewFiles v-else-if=\"activeView === 'files'\" :agent-id />\n <div\n v-else-if=\"activeView === 'auth'\"\n class=\"pk-chatbot__view-auth flex-1 min-h-0 overflow-y-auto\">\n <!-- Sign-in form provided by the host widget (owns the auth client) -->\n <slot name=\"view-auth\" />\n </div>\n <PkChatbotViewProfile v-else :agent-id>\n <template\n v-for=\"slotName in Object.keys(slots)\"\n #[slotName]=\"slotData\"\n ><slot :name=\"slotName\" v-bind=\"slotData\"\n /></template>\n </PkChatbotViewProfile>\n <!-- #endregion -->\n\n <!-- #region footer -->\n <div v-if=\"footerMessage\" class=\"pk-chatbot__footer\">\n <PkStreamingMarkdown :markdown=\"footerMessage\" class=\"wysiwyg\" />\n </div>\n <!-- #endregion -->\n </div>\n</template>\n\n<style lang=\"scss\">\n .pk-chatbot {\n display: flex;\n flex-direction: column;\n position: relative;\n height: 100%;\n background-color: var(--color-surface);\n\n &__header {\n position: sticky;\n top: 0;\n z-index: 1;\n display: flex;\n justify-content: space-between;\n gap: var(--spacing-14);\n background-color: var(--color-surface-1);\n padding: var(--spacing-14);\n border-bottom: 1px solid var(--color-surface-3);\n }\n\n &__header-start {\n display: flex;\n align-items: center;\n gap: var(--spacing-sm);\n min-width: 0;\n }\n\n &__nav-icon {\n font-size: var(--text-18);\n }\n\n &__avatar {\n width: var(--spacing-24);\n height: var(--spacing-24);\n }\n\n &__title {\n font-size: var(--text-16);\n font-weight: var(--font-semibold);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n &__header-end {\n flex-shrink: 0;\n }\n\n &__warning-body {\n padding: var(--spacing-md);\n border-bottom: 1px solid var(--color-surface-3);\n }\n\n &__warning-header {\n display: flex;\n align-items: center;\n gap: var(--spacing-4);\n margin-bottom: var(--spacing-4);\n }\n\n &__warning-icon {\n width: var(--spacing-16);\n height: var(--spacing-16);\n }\n\n &__warning-title {\n font-weight: 600;\n font-size: var(--text-14);\n }\n\n &__warning-text {\n font-size: var(--text-12);\n color: var(--color-word-3);\n }\n\n &__footer {\n padding: var(--spacing-md);\n border-top: 1px solid var(--color-surface-3);\n text-align: center;\n font-size: var(--text-12);\n color: var(--color-word-2);\n }\n\n // Modifier: fullscreen — layout full-page (Gemini-style): nessun\n // header interno, sfondo trasparente, input pill centrato.\n // Il chrome (sidebar, navigazione) è gestito dalla pagina ospite.\n &--fullscreen {\n // The dock, 60px. Declared rather than taken from the agent chip,\n // which the tight layout hides: the pill fell to 54px there and\n // the call bar that takes its place stayed at 60. There is no 60\n // in the spacing scale and a raw `60px` would stop following the\n // root font size, which the labels inside do follow.\n --pk-chat-fullscreen-dock-height: calc(\n var(--spacing-56) + var(--spacing-4)\n );\n\n // The pill, the notice that tucks into its top corners and the\n // call bar all round their ends on half of it.\n --pk-chat-dock-radius: calc(\n var(--pk-chat-fullscreen-dock-height) / 2\n );\n\n background-color: transparent;\n\n .pk-chatbot__footer {\n border-top: none;\n padding: 0 var(--spacing-md) var(--spacing-sm) var(--spacing-md);\n }\n\n // Reading column aligned with the input (Gemini-style). The\n // constraint lives on the inner wrapper so the scroll container\n // spans the page and the scrollbar sits at its edge.\n .pk-chatbot-messages {\n // Symmetric gutters: a visible scrollbar would otherwise\n // shrink the content box on one side only, shifting the\n // column off the input axis\n scrollbar-gutter: stable both-edges;\n\n // Dissolve the content at both edges (works on any page\n // background, dots included — a surface-colored fade band\n // would cut through the pattern instead)\n mask-image: linear-gradient(\n to bottom,\n transparent 0,\n #000 var(--spacing-40),\n #000 calc(100% - var(--spacing-40)),\n transparent 100%\n );\n\n // Resting clearance so the first/last lines sit inside the\n // fully opaque zone\n padding-block: var(--spacing-48);\n }\n\n .pk-chatbot-messages__wrapper {\n width: 100%;\n max-width: 768px;\n margin-inline: auto;\n }\n\n // Outline rail: wide chats only, measured on the chat and not on\n // the viewport, so a preview frame squeezed by side panels loses\n // it like a phone does. The rail sits at the edge of the scroll\n // area beside the reading column: below the `--wide` threshold\n // (768px column plus a 40px rail on each side) it would cover the\n // messages instead.\n .pk-chatbot-messages__outline {\n display: none;\n }\n\n &.pk-chatbot--wide .pk-chatbot-messages__outline {\n display: block;\n }\n\n .pk-chatbot-file-preview {\n background-color: var(--color-surface);\n }\n\n .pk-chatbot-input__notice {\n background-color: var(--color-surface);\n border-inline: 1px solid var(--color-surface-3);\n border-top: 1px solid var(--color-surface-2);\n padding: var(--spacing-10) var(--spacing-16);\n\n // As deep as the pill's corners, or the page shows through\n // where their curve leaves the side\n &::after {\n background-color: var(--color-surface);\n border-inline: 1px solid var(--color-surface-2);\n bottom: calc(-1 * var(--pk-chat-dock-radius));\n height: var(--pk-chat-dock-radius);\n left: -1px;\n right: -1px;\n }\n }\n\n .pk-chatbot-input {\n width: calc(100% - var(--spacing-sm) * 2);\n max-width: 768px;\n margin-inline: auto;\n\n &__form {\n // True semicircles at rest, concentric with the send\n // button, whose center sits 30px in. Not `rounded-full`:\n // once Shift+Enter grows the field the ends would swell\n // with it and cut into the first and last line.\n border-radius: var(--pk-chat-dock-radius);\n min-height: var(--pk-chat-fullscreen-dock-height);\n padding: var(--spacing-12) var(--spacing-16);\n background-color: var(--color-surface-1);\n border-color: var(--color-surface-2);\n box-shadow: none;\n transition:\n border-color var(--duration-200) var(--ease-in-out),\n box-shadow var(--duration-200) var(--ease-in-out);\n\n &:has(:focus-within) {\n border-color: var(--color-surface-4);\n box-shadow: var(--shadow-sm);\n }\n\n @media (prefers-reduced-motion: reduce) {\n transition: none;\n }\n }\n\n &__textarea {\n background-color: transparent;\n }\n }\n\n // A live call takes the place of the input, so it takes its shape,\n // its column and its height: full-bleed here would break the\n // reading axis, and a different height would make the dock jump\n // the moment the call starts.\n .pk-voice-session {\n --pk-chat-dock-height: var(--pk-chat-fullscreen-dock-height);\n --pk-voice-orb-size: var(--spacing-40);\n --pk-voice-orb-bars-height: var(--spacing-20);\n --pk-voice-session-surface: var(--color-surface-1);\n\n width: calc(100% - var(--spacing-sm) * 2);\n max-width: 768px;\n margin-inline: auto;\n padding-inline: var(--spacing-16);\n border-color: var(--color-surface-2);\n border-radius: var(--pk-chat-dock-radius);\n box-shadow: none;\n\n &__timer {\n font-size: var(--text-14);\n }\n }\n\n // A colleague's conversation in a shared project: the line that\n // takes the input's place takes its shape, column and height too,\n // as the call does, so the dock does not jump between chats.\n .pk-chatbot-view-chat__read-only {\n width: calc(100% - var(--spacing-sm) * 2);\n max-width: 768px;\n min-height: var(--pk-chat-fullscreen-dock-height);\n margin-inline: auto;\n padding-inline: var(--spacing-16) var(--spacing-12);\n border-color: var(--color-surface-2);\n border-radius: var(--pk-chat-dock-radius);\n background-color: var(--color-surface-1);\n }\n\n // The chat's tasks above the pill, in its column and its edge,\n // with the inset of the notice here, 16px inside a border\n .pk-chatbot-wakeup-bar {\n --pk-chatbot-wakeup-bar-border: var(--color-surface-2);\n --pk-chatbot-wakeup-bar-inset: var(--spacing-16);\n\n width: calc(100% - var(--spacing-sm) * 2);\n max-width: 768px;\n margin-inline: auto;\n }\n\n // The folders the agent may read, framed and placed as the tasks box\n .pk-chatbot-local-folders {\n --pk-chatbot-local-folders-border: var(--color-surface-2);\n --pk-chatbot-local-folders-inset: var(--spacing-16);\n\n width: calc(100% - var(--spacing-sm) * 2);\n max-width: 768px;\n margin-inline: auto;\n }\n }\n\n // Modifier: panel — compact chrome for a docked side panel: the host\n // container owns background and border, the header slims down and\n // drops its own surface so the chat blends into the panel.\n &--panel {\n background-color: transparent;\n\n .pk-chatbot__header {\n background-color: transparent;\n\n // Fixed height so the panel header lines up with the host's\n // own chrome. Custom properties inherit through the shadow\n // root: an embedding host can override it to match its\n // header (the default matches the platform header, 50px).\n height: var(--pk-chatbot-panel-header-height, 50px);\n align-items: center;\n padding-block: 0;\n padding-inline: var(--spacing-10);\n border-bottom: 1px solid var(--color-surface-3);\n }\n\n .pk-chatbot__title {\n font-size: var(--text-14);\n }\n\n .pk-chatbot__footer {\n border-top: none;\n padding: var(--spacing-6) var(--spacing-md);\n }\n }\n\n // A chat given a whole page without the fullscreen layout (the page\n // an iframe embeds, a widget its host lets fill the screen) keeps the\n // reading column of the fullscreen one: at 1440px an answer ran\n // 1408px wide, some two hundred characters a line. Measured on the\n // chat, like `--wide` itself, so a narrow frame is left alone.\n &--wide:not(.pk-chatbot--fullscreen) {\n .pk-chatbot-messages__wrapper,\n .pk-chatbot-input,\n .pk-chatbot-wakeup-bar {\n width: 100%;\n max-width: 768px;\n margin-inline: auto;\n }\n }\n }\n</style>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgDI,IAAMsD,IAAQC,GAAS,GAEjB,EAAE,GAAGC,MAAOC,GAAQ,EACtB,UAAU,SACd,CAAC,GAEKC,IAAQC,GAoDRC,IAAOP,GAaPQ,IAAS7D,GAA+B2D,GAAC,QAG9C,GAEKI,IAAQtC,EAAgBiC,EAAM,OAAO;EAI3C,GAAyB,MACrBK,EAAM,UAAU,iBAAiBC,CAAM,CAC3C;EAEA,IAAM,EACF,aACA,kBACA,gBACA,eACA,eACA,YACA,yBACA,kBACA,4BACA,wBACAC,GAAYF,CAAK,GAGfG,KAAeC,GAAMJ,GAAO,SAAS,GAErC,EACF,iBACA,mBACA,gBACA,aACA,iBACA,sBACA,4BACAA;EAKJ,QACUL,EAAM,sBACNA,EAAM,OAChB;EAIA,IAAMU,IAAUC,GAAOpC,GAA0B,KAAA,CAAS,GACpDqC,IAAmBC,QACfH,GAAS,iBAAiB,SAAS,EAC7C,GAIMI,KAAYD,QAEV,CAACD,EAAiB,UACjBF,GAAS,WAAW,SAAS,OAC9Bd,EAAM,iBAAiB,KAAA,CAC/B,GAYM,EAAE,0BAAsB5B,EAAiB,GACzC+C,KAAwBF,QAEtB,CAAC,CAACH,GAAS,sBACX,EAAEA,EAAQ,gBAAgB,SAAS,GAC3C,GACMM,KAAyBH,QAEvBE,GA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;;KANxB,YAAAuC,EAAA;I,gBAEsBxC,EAAA,OAAO,KAAKb,EAAAgD,CAAA,CAAK,IAA7B,O;KACN,MAAAwG;KACA,IAAAjJ,GADY,MAAQ,CACpBC,EACHoI,EAAA,QADgBY,GAAQ/I,EAAAC,EAAU+I,CAAQ,CAAA,CAAA,C;I,8BAGjBzJ,EAAAqE,CAAA,MAAU,WAAzC1E,EAAA,GAAAS,EAAmEW,IAAA;;KAAX,YAAAsC,EAAA;I,6BAEzCrD,EAAAqE,CAAA,MAAU,UADzB1E,EAAA,GAAAC,EAKM,OALN4C,IAKM,CADFhC,EAAyBoI,EAAA,QAAA,WAAA,C,OAE7BjJ,EAAA,GAAAS,EAMuBY,IAAA;;KANO,YAAAqC,EAAA;I,gBAEHxC,EAAA,OAAO,KAAKb,EAAAgD,CAAA,CAAK,IAA7B,O;KACN,MAAAwG;KACA,IAAAjJ,GADY,MAAQ,CACpBC,EACHoI,EAAA,QADgBY,GAAQ/I,EAAAC,EAAU+I,CAAQ,CAAA,CAAA,C;;IAMrCzJ,EAAA4G,EAAA,KAAXjH,EAAA,GAAAC,EAEM,OAFN6C,IAEM,CADFvC,EAAiEe,IAAA;KAA3C,UAAUjB,EAAA4G,EAAA;KAAe,OAAM"}
|
package/dist-vue/_chunks/{PkChatbotEmptyState-BSdctGUp.js → PkChatbotEmptyState-CS0l2BBa.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./PkAvatar-DwtZWSW4.js";
|
|
2
|
-
import { t } from "./PkStreamingMarkdown-
|
|
2
|
+
import { t } from "./PkStreamingMarkdown-D5ad7uGI.js";
|
|
3
3
|
import { createBlock as n, createCommentVNode as r, createElementBlock as i, defineComponent as a, mergeProps as o, openBlock as s } from "vue";
|
|
4
4
|
// ../../packages/components/src/chat/PkChatbotEmptyState.vue?vue&type=script&setup=true&lang.ts
|
|
5
5
|
var c = { class: "pk-chatbot-empty-state" }, l = /* @__PURE__ */ a({
|
|
@@ -29,4 +29,4 @@ var c = { class: "pk-chatbot-empty-state" }, l = /* @__PURE__ */ a({
|
|
|
29
29
|
});
|
|
30
30
|
export { l as t };
|
|
31
31
|
|
|
32
|
-
//# sourceMappingURL=PkChatbotEmptyState-
|
|
32
|
+
//# sourceMappingURL=PkChatbotEmptyState-CS0l2BBa.js.map
|
package/dist-vue/_chunks/{PkChatbotEmptyState-BSdctGUp.js.map → PkChatbotEmptyState-CS0l2BBa.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PkChatbotEmptyState-
|
|
1
|
+
{"version":3,"file":"PkChatbotEmptyState-CS0l2BBa.js","names":["_openBlock","_createElementBlock","_createBlock","PkAvatar","_mergeProps","PkStreamingMarkdown","PkAvatar_default","_hoisted_1","PkChatbotEmptyState_default","defineComponent","openBlock","createElementBlock","__props","createBlock","mergeProps","createCommentVNode","PkStreamingMarkdown_default"],"sources":["../../../../packages/components/src/chat/PkChatbotEmptyState.vue"],"sourcesContent":["<script setup lang=\"ts\">\n import PkAvatar from './PkAvatar.vue'\n import PkStreamingMarkdown from './PkStreamingMarkdown.vue'\n\n defineProps<{\n greeting?: string\n /** Agent avatar shown above the greeting where the input chip is hidden (mobile) */\n logo?: string | null\n name?: string\n }>()\n</script>\n\n<template>\n <div class=\"pk-chatbot-empty-state\">\n <!-- Shown where the agent chip is hidden, the one sign of the agent\n there, with no name beside it: an image named after the agent,\n or nothing to read without a name. VvAvatar says \"avatar\". -->\n <PkAvatar\n v-if=\"logo || name\"\n class=\"pk-chatbot-empty-state__avatar\"\n v-bind=\"\n name\n ? { role: 'img', 'aria-label': name }\n : { 'aria-hidden': 'true' }\n \"\n :img-src=\"logo\"\n :name=\"name\" />\n <PkStreamingMarkdown\n v-if=\"greeting\"\n :markdown=\"greeting\"\n :animation=\"null\"\n class=\"wysiwyg pk-chatbot-empty-state__greeting\" />\n </div>\n</template>\n\n<style lang=\"scss\">\n .pk-chatbot-empty-state {\n // Above the fullscreen ambient glow\n position: relative;\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: var(--spacing-sm);\n padding: var(--spacing-md);\n text-align: center;\n\n // Let the greeting wrap on a couple of lines (Gemini-like). Keyed on\n // the chat's own width (`--phone`, measured in PkChatbot): a narrow\n // preview frame on a desktop screen wraps like a phone\n .pk-chatbot--phone & {\n padding-inline: var(--spacing-56);\n }\n\n &__avatar {\n width: var(--spacing-64);\n height: var(--spacing-64);\n font-size: var(--text-20);\n\n // The agent identity lives in the input chip when that is\n // visible: the chip hides itself at `--tight`, so keying the\n // avatar on the absence of that modifier shows exactly one of\n // the two\n .pk-chatbot:not(.pk-chatbot--tight) & {\n display: none;\n }\n }\n\n &__greeting {\n font-size: var(--text-28);\n font-weight: var(--font-light);\n color: var(--color-word-1);\n text-wrap: balance;\n\n // Render the greeting markdown inline as a single heading line\n :first-child {\n margin-top: 0;\n }\n\n :last-child {\n margin-bottom: 0;\n }\n }\n\n // Enters fading in from below, in sync with the glow ignition\n &__avatar,\n &__greeting {\n animation: pk-chatbot-greeting-enter 600ms var(--ease-out) both;\n\n @media (prefers-reduced-motion: reduce) {\n animation: none;\n }\n }\n }\n\n @keyframes pk-chatbot-greeting-enter {\n from {\n opacity: 0;\n transform: translateY(var(--spacing-16));\n }\n }\n</style>\n"],"mappings":";;;;;;;;;;;;E,kBAaIA,EAAA,GAAAC,EAmBM,OAnBNM,GAmBM,CAdQK,EAAA,QAAQA,EAAA,QADlBZ,EAAA,GAAAE,EASmBC,GATnBC,EASmB;;GAPf,OAAM;E,GACmBQ,EAAA,OAAwD;GAAA,MAAA;GAAA,cAAAA,EAAA;EAAI,I;GAKpF,WAASA,EAAA;GACT,MAAMA,EAAA;E,iDAEDA,EAAA,YADVZ,EAAA,GAAAE,EAIuDG,GAAA;;GAFlD,UAAUO,EAAA;GACV,WAAW;GACZ,OAAM"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as e } from "./VvButtonLocalized-C-vx25u4.js";
|
|
2
2
|
import { c as t, s as n } from "./Media-DtudATme.js";
|
|
3
3
|
import { t as r } from "./useSettledSelection-1bfM1fzx.js";
|
|
4
|
-
import { t as i } from "./PkStreamingMarkdown-
|
|
4
|
+
import { t as i } from "./PkStreamingMarkdown-D5ad7uGI.js";
|
|
5
5
|
import { t as a } from "./PkChatbotFilePreview-BbytSmUB.js";
|
|
6
|
-
import { j as o, k as s } from "./utils-
|
|
6
|
+
import { j as o, k as s } from "./utils-BDXwCfXk.js";
|
|
7
7
|
import { VvDropdown as c, VvDropdownAction as l, VvIcon as u } from "@volverjs/ui-vue/components";
|
|
8
8
|
import { Fragment as d, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createTextVNode as _, createVNode as v, defineAsyncComponent as ee, defineComponent as y, mergeModels as b, mergeProps as te, nextTick as x, normalizeClass as ne, normalizeProps as re, onBeforeUnmount as ie, onMounted as ae, openBlock as S, ref as C, renderList as oe, renderSlot as se, shallowRef as ce, toDisplayString as w, unref as T, useId as le, useModel as ue, useTemplateRef as E, watch as de, withCtx as D, withKeys as fe, withModifiers as pe } from "vue";
|
|
9
9
|
import { useI18n as me } from "vue-i18n";
|
|
@@ -242,7 +242,8 @@ var xe = { class: "pk-chatbot-input" }, Se = {
|
|
|
242
242
|
pointer: {},
|
|
243
243
|
automaticConfirmations: { type: Boolean },
|
|
244
244
|
editableImages: { type: Boolean },
|
|
245
|
-
retryableAttachments: { type: Boolean }
|
|
245
|
+
retryableAttachments: { type: Boolean },
|
|
246
|
+
folderConnect: { type: Boolean }
|
|
246
247
|
}, {
|
|
247
248
|
modelValue: { default: void 0 },
|
|
248
249
|
modelModifiers: {},
|
|
@@ -263,10 +264,11 @@ var xe = { class: "pk-chatbot-input" }, Se = {
|
|
|
263
264
|
"voice-start",
|
|
264
265
|
"point",
|
|
265
266
|
"remove-pointer",
|
|
266
|
-
"manual-confirmations"
|
|
267
|
+
"manual-confirmations",
|
|
268
|
+
"connect-folder"
|
|
267
269
|
], ["update:modelValue", "update:pendingAttachments"]),
|
|
268
270
|
setup(y, { expose: b, emit: O }) {
|
|
269
|
-
let ge = ee(() => import("./PkImageEditorDialog-
|
|
271
|
+
let ge = ee(() => import("./PkImageEditorDialog-CXSSDTtp.js")), k = ue(y, "modelValue"), A = ue(y, "pendingAttachments"), M = O, N = y, { t: F } = me({ useScope: "global" }), I = E("textareaEl"), _e = E("fileInputEl"), L = E("cameraInputEl"), R = E("formEl"), z = C(k.value ?? ""), B = null, V = () => {
|
|
270
272
|
B !== null && (clearTimeout(B), B = null);
|
|
271
273
|
}, H = () => {
|
|
272
274
|
V(), k.value = z.value;
|
|
@@ -487,7 +489,7 @@ var xe = { class: "pk-chatbot-input" }, Se = {
|
|
|
487
489
|
]))), 128))])) : m("", !0),
|
|
488
490
|
g("div", Oe, [
|
|
489
491
|
se(t.$slots, "prepend"),
|
|
490
|
-
y.fileUpload
|
|
492
|
+
y.fileUpload?.enabled && (J.value || tt.value || t.$slots["additional-actions"]) || y.folderConnect ? (S(), p(f, re(te({ key: 0 }, {
|
|
491
493
|
placement: "top-start",
|
|
492
494
|
modifiers: "menu",
|
|
493
495
|
flip: !0,
|
|
@@ -496,7 +498,7 @@ var xe = { class: "pk-chatbot-input" }, Se = {
|
|
|
496
498
|
default: D(({ init: e, toggle: t, aria: n }) => [g("button", te({ ref: (t) => e(t) }, n, {
|
|
497
499
|
class: "pk-chat-button",
|
|
498
500
|
type: "button",
|
|
499
|
-
title: T(F)("action.attachFile"),
|
|
501
|
+
title: y.fileUpload?.enabled ? T(F)("action.attachFile") : T(F)("localFolders.connect"),
|
|
500
502
|
disabled: W.value,
|
|
501
503
|
onClick: t
|
|
502
504
|
}), [v(r, {
|
|
@@ -504,7 +506,7 @@ var xe = { class: "pk-chatbot-input" }, Se = {
|
|
|
504
506
|
class: "pk-chat-button__icon"
|
|
505
507
|
})], 16, ke)]),
|
|
506
508
|
items: D(() => [
|
|
507
|
-
J.value ? (S(), p(s, {
|
|
509
|
+
y.fileUpload?.enabled && J.value ? (S(), p(s, {
|
|
508
510
|
key: 0,
|
|
509
511
|
disabled: W.value || y.attachmentLimitReached,
|
|
510
512
|
onClick: $e
|
|
@@ -515,7 +517,7 @@ var xe = { class: "pk-chatbot-input" }, Se = {
|
|
|
515
517
|
}), _(" " + w(T(F)("action.takePhoto")), 1)]),
|
|
516
518
|
_: 1
|
|
517
519
|
}, 8, ["disabled"])) : m("", !0),
|
|
518
|
-
tt.value ? (S(), p(s, {
|
|
520
|
+
y.fileUpload?.enabled && tt.value ? (S(), p(s, {
|
|
519
521
|
key: 1,
|
|
520
522
|
disabled: W.value || y.attachmentLimitReached,
|
|
521
523
|
onClick: lt
|
|
@@ -526,7 +528,8 @@ var xe = { class: "pk-chatbot-input" }, Se = {
|
|
|
526
528
|
}), _(" " + w(T(F)("action.attachScreenshot")), 1)]),
|
|
527
529
|
_: 1
|
|
528
530
|
}, 8, ["disabled"])) : m("", !0),
|
|
529
|
-
|
|
531
|
+
y.fileUpload?.enabled ? (S(), p(s, {
|
|
532
|
+
key: 2,
|
|
530
533
|
disabled: W.value || y.attachmentLimitReached,
|
|
531
534
|
onClick: Qe
|
|
532
535
|
}, {
|
|
@@ -535,7 +538,18 @@ var xe = { class: "pk-chatbot-input" }, Se = {
|
|
|
535
538
|
class: "pk-chatbot-input__dropdown-icon"
|
|
536
539
|
}), _(" " + w(T(F)("action.attachFile")), 1)]),
|
|
537
540
|
_: 1
|
|
538
|
-
}, 8, ["disabled"]),
|
|
541
|
+
}, 8, ["disabled"])) : m("", !0),
|
|
542
|
+
y.folderConnect ? (S(), p(s, {
|
|
543
|
+
key: 3,
|
|
544
|
+
disabled: W.value,
|
|
545
|
+
onClick: n[2] ||= (e) => M("connect-folder")
|
|
546
|
+
}, {
|
|
547
|
+
default: D(() => [v(r, {
|
|
548
|
+
name: "ri:folder-add-line",
|
|
549
|
+
class: "pk-chatbot-input__dropdown-icon"
|
|
550
|
+
}), _(" " + w(T(F)("localFolders.connect")), 1)]),
|
|
551
|
+
_: 1
|
|
552
|
+
}, 8, ["disabled"])) : m("", !0),
|
|
539
553
|
se(t.$slots, "additional-actions")
|
|
540
554
|
]),
|
|
541
555
|
_: 3
|
|
@@ -572,7 +586,7 @@ var xe = { class: "pk-chatbot-input" }, Se = {
|
|
|
572
586
|
title: T(F)("pagePointer.start"),
|
|
573
587
|
"aria-pressed": y.pointing,
|
|
574
588
|
disabled: W.value,
|
|
575
|
-
onClick: n[
|
|
589
|
+
onClick: n[3] ||= (e) => M("point")
|
|
576
590
|
}, null, 8, [
|
|
577
591
|
"title",
|
|
578
592
|
"aria-pressed",
|
|
@@ -594,7 +608,7 @@ var xe = { class: "pk-chatbot-input" }, Se = {
|
|
|
594
608
|
onKeydown: [fe(_t, ["enter"]), fe(vt, ["tab"])],
|
|
595
609
|
onPaste: it
|
|
596
610
|
}, null, 40, Ne)]),
|
|
597
|
-
q.value ? (S(), h("span", Pe, [n[
|
|
611
|
+
q.value ? (S(), h("span", Pe, [n[5] ||= g("kbd", { "aria-hidden": "true" }, "Tab", -1), g("span", {
|
|
598
612
|
id: T(qe),
|
|
599
613
|
class: "u-visually-hidden"
|
|
600
614
|
}, w(T(F)("hint.suggestedNextMessage")), 9, Fe)])) : m("", !0),
|
|
@@ -608,7 +622,7 @@ var xe = { class: "pk-chatbot-input" }, Se = {
|
|
|
608
622
|
icon: "ri:mic-line",
|
|
609
623
|
title: T(F)("action.talk"),
|
|
610
624
|
disabled: W.value,
|
|
611
|
-
onClick: n[
|
|
625
|
+
onClick: n[4] ||= (e) => M("voice-start")
|
|
612
626
|
}, null, 8, ["title", "disabled"])) : m("", !0),
|
|
613
627
|
U.value ? (S(), p(P, {
|
|
614
628
|
key: 8,
|
|
@@ -655,4 +669,4 @@ var xe = { class: "pk-chatbot-input" }, Se = {
|
|
|
655
669
|
});
|
|
656
670
|
export { P as n, Re as t };
|
|
657
671
|
|
|
658
|
-
//# sourceMappingURL=PkChatbotInput-
|
|
672
|
+
//# sourceMappingURL=PkChatbotInput-9PwloFKx.js.map
|