@8wave/ai-elements 0.74.0 → 0.77.0

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.
Files changed (159) hide show
  1. package/dist/_chunks/{PkStreamingMarkdown-orhL2kzD.js → PkStreamingMarkdown-COZApJzT.js} +22 -22
  2. package/dist/_chunks/PkStreamingMarkdown-COZApJzT.js.map +1 -0
  3. package/dist/_chunks/{PkToolShowArtifact-c_vCWUpQ.js → PkToolShowArtifact-BZQixk9z.js} +7 -7
  4. package/dist/_chunks/{PkToolShowArtifact-c_vCWUpQ.js.map → PkToolShowArtifact-BZQixk9z.js.map} +1 -1
  5. package/dist/_chunks/{PkToolShowCalendarEvent-D2VHu1V3.js → PkToolShowCalendarEvent-BEqn5iEb.js} +12 -12
  6. package/dist/_chunks/{PkToolShowCalendarEvent-D2VHu1V3.js.map → PkToolShowCalendarEvent-BEqn5iEb.js.map} +1 -1
  7. package/dist/_chunks/{PkToolShowComparison-C2ZUH0w4.js → PkToolShowComparison-p34r0Hhd.js} +7 -7
  8. package/dist/_chunks/{PkToolShowComparison-C2ZUH0w4.js.map → PkToolShowComparison-p34r0Hhd.js.map} +1 -1
  9. package/dist/_chunks/PkToolShowContactForm-thS7c8iL.js +1658 -0
  10. package/dist/_chunks/PkToolShowContactForm-thS7c8iL.js.map +1 -0
  11. package/dist/_chunks/{PkToolShowEmail-BuyCHUU5.js → PkToolShowEmail-Be8FvWjw.js} +11 -11
  12. package/dist/_chunks/{PkToolShowEmail-BuyCHUU5.js.map → PkToolShowEmail-Be8FvWjw.js.map} +1 -1
  13. package/dist/_chunks/{PkToolShowImageGallery-ByldZ0nj.js → PkToolShowImageGallery-DmJztS-Z.js} +5 -5
  14. package/dist/_chunks/{PkToolShowImageGallery-ByldZ0nj.js.map → PkToolShowImageGallery-DmJztS-Z.js.map} +1 -1
  15. package/dist/_chunks/{PkToolShowLocation-BCFnC5c7.js → PkToolShowLocation-DOoLCHzS.js} +9 -9
  16. package/dist/_chunks/{PkToolShowLocation-BCFnC5c7.js.map → PkToolShowLocation-DOoLCHzS.js.map} +1 -1
  17. package/dist/_chunks/{PkToolShowMessage-6Bsfi3BC.js → PkToolShowMessage-DgeULbdQ.js} +10 -10
  18. package/dist/_chunks/{PkToolShowMessage-6Bsfi3BC.js.map → PkToolShowMessage-DgeULbdQ.js.map} +1 -1
  19. package/dist/_chunks/{PkToolShowMultipleChoice-BLNTD2lK.js → PkToolShowMultipleChoice-CpGyn_bZ.js} +3 -3
  20. package/dist/_chunks/{PkToolShowMultipleChoice-BLNTD2lK.js.map → PkToolShowMultipleChoice-CpGyn_bZ.js.map} +1 -1
  21. package/dist/_chunks/{PkToolShowProductList-B4S5_m-f.js → PkToolShowProductList-DEo7XogW.js} +4 -4
  22. package/dist/_chunks/{PkToolShowProductList-B4S5_m-f.js.map → PkToolShowProductList-DEo7XogW.js.map} +1 -1
  23. package/dist/_chunks/{PkToolShowQrCode-BVZlzYDq.js → PkToolShowQrCode-UE4uSyvJ.js} +7 -7
  24. package/dist/_chunks/{PkToolShowQrCode-BVZlzYDq.js.map → PkToolShowQrCode-UE4uSyvJ.js.map} +1 -1
  25. package/dist/_chunks/{PkToolShowSources-BQo5DRwt.js → PkToolShowSources-BMXftK6O.js} +10 -9
  26. package/dist/_chunks/PkToolShowSources-BMXftK6O.js.map +1 -0
  27. package/dist/_chunks/{PkToolShowSuggestedReply-BxDI6yp_.js → PkToolShowSuggestedReply-CPAnHI0c.js} +3 -3
  28. package/dist/_chunks/{PkToolShowSuggestedReply-BxDI6yp_.js.map → PkToolShowSuggestedReply-CPAnHI0c.js.map} +1 -1
  29. package/dist/_chunks/{PkToolShowWeather-DR6egBIP.js → PkToolShowWeather-DcSUbzx0.js} +4 -4
  30. package/dist/_chunks/{PkToolShowWeather-DR6egBIP.js.map → PkToolShowWeather-DcSUbzx0.js.map} +1 -1
  31. package/dist/_chunks/{PkToolShowWebPages-D8RngE-F.js → PkToolShowWebPages-aH_GarEV.js} +5 -5
  32. package/dist/_chunks/{PkToolShowWebPages-D8RngE-F.js.map → PkToolShowWebPages-aH_GarEV.js.map} +1 -1
  33. package/dist/_chunks/{PkUrl-CI17WkYu.js → PkUrl-BHD0_pal.js} +2 -2
  34. package/dist/_chunks/{PkUrl-CI17WkYu.js.map → PkUrl-BHD0_pal.js.map} +1 -1
  35. package/dist/_chunks/{VvCheckbox.es-kmMsWlkU.js → VvCheckbox.es-ohF87NOe.js} +3 -3
  36. package/dist/_chunks/{VvCheckbox.es-kmMsWlkU.js.map → VvCheckbox.es-ohF87NOe.js.map} +1 -1
  37. package/dist/_chunks/{VvCheckboxGroup.es-BRRmuO9h.js → VvCheckboxGroup.es-DZCbyLN0.js} +109 -109
  38. package/dist/_chunks/{VvCheckboxGroup.es-BRRmuO9h.js.map → VvCheckboxGroup.es-DZCbyLN0.js.map} +1 -1
  39. package/dist/_chunks/{VvCombobox.es-pTM53Z4B.js → VvCombobox.es-YLPD7MpO.js} +256 -256
  40. package/dist/_chunks/{VvCombobox.es-pTM53Z4B.js.map → VvCombobox.es-YLPD7MpO.js.map} +1 -1
  41. package/dist/_chunks/{VvInputText.es-DO39OSWk.js → VvInputText.es-DAnAXfBO.js} +190 -190
  42. package/dist/_chunks/{VvInputText.es-DO39OSWk.js.map → VvInputText.es-DAnAXfBO.js.map} +1 -1
  43. package/dist/_chunks/{VvRadio.es-BpQAJbon.js → VvRadio.es-Do9oyNtV.js} +3 -3
  44. package/dist/_chunks/{VvRadio.es-BpQAJbon.js.map → VvRadio.es-Do9oyNtV.js.map} +1 -1
  45. package/dist/_chunks/{VvRadioGroup.es-BSBrmx9w.js → VvRadioGroup.es-BHcqcJFC.js} +11 -11
  46. package/dist/_chunks/{VvRadioGroup.es-BSBrmx9w.js.map → VvRadioGroup.es-BHcqcJFC.js.map} +1 -1
  47. package/dist/_chunks/{VvSelect.es-DALpUK5j.js → VvSelect.es-CP_y02fy.js} +8 -8
  48. package/dist/_chunks/{VvSelect.es-DALpUK5j.js.map → VvSelect.es-CP_y02fy.js.map} +1 -1
  49. package/dist/_chunks/{VvTextarea.es-C9dwYLOG.js → VvTextarea.es-DetA_2DM.js} +250 -250
  50. package/dist/_chunks/{VvTextarea.es-C9dwYLOG.js.map → VvTextarea.es-DetA_2DM.js.map} +1 -1
  51. package/dist/_chunks/{dist-DtF6poRc.js → dist-yqV26MWM.js} +132 -120
  52. package/dist/_chunks/dist-yqV26MWM.js.map +1 -0
  53. package/dist/_chunks/{esm-0nyRYwmP.js → esm-DLxNpT06.js} +7 -7
  54. package/dist/_chunks/{esm-0nyRYwmP.js.map → esm-DLxNpT06.js.map} +1 -1
  55. package/dist/_chunks/{floating-ui.vue-B5ZV-j8C.js → floating-ui.vue-tVPpNXUc.js} +3 -3
  56. package/dist/_chunks/{floating-ui.vue-B5ZV-j8C.js.map → floating-ui.vue-tVPpNXUc.js.map} +1 -1
  57. package/dist/_chunks/{iconify-C1EOwL90.js → iconify-y0w2FIJH.js} +3 -3
  58. package/dist/_chunks/{iconify-C1EOwL90.js.map → iconify-y0w2FIJH.js.map} +1 -1
  59. package/dist/_chunks/{index.es-BGFmj59S.js → index.es-7fUi-rc0.js} +452 -452
  60. package/dist/_chunks/{index.es-BGFmj59S.js.map → index.es-7fUi-rc0.js.map} +1 -1
  61. package/dist/_chunks/{schemas-Bp3a8tYV.js → schemas-aPiXCaCc.js} +1309 -945
  62. package/dist/_chunks/schemas-aPiXCaCc.js.map +1 -0
  63. package/dist/_chunks/{src-C_wl-KYN.js → src-BfoQF6Z3.js} +2 -2
  64. package/dist/_chunks/{src-C_wl-KYN.js.map → src-BfoQF6Z3.js.map} +1 -1
  65. package/dist/_chunks/{useLightbox-CH1KeVqr.js → useLightbox-DL_oVBep.js} +3 -3
  66. package/dist/_chunks/{useLightbox-CH1KeVqr.js.map → useLightbox-DL_oVBep.js.map} +1 -1
  67. package/dist/_chunks/{vue-i18n-KvYvoek4.js → vue-i18n-DAH6nDTN.js} +3 -3
  68. package/dist/_chunks/{vue-i18n-KvYvoek4.js.map → vue-i18n-DAH6nDTN.js.map} +1 -1
  69. package/dist/_chunks/{vue.runtime.esm-bundler-BmggS4HU.js → vue.runtime.esm-bundler-Dq29dQrz.js} +16 -10
  70. package/dist/_chunks/vue.runtime.esm-bundler-Dq29dQrz.js.map +1 -0
  71. package/dist/ai-elements.es.js +4637 -3428
  72. package/dist/ai-elements.es.js.map +1 -1
  73. package/dist-vue/PkChatbot.js +1 -1
  74. package/dist-vue/PkChatbotFeedbackForm.js +1 -1
  75. package/dist-vue/PkChatbotInput.js +1 -1
  76. package/dist-vue/PkChatbotMessages.js +1 -1
  77. package/dist-vue/PkChatbotViewChat.js +1 -1
  78. package/dist-vue/PkChatbotViewConversations.js +1 -1
  79. package/dist-vue/PkChatbotViewProfile.js +1 -1
  80. package/dist-vue/_chunks/{Media-Bic_vfSX.js → Media-kK7BnZGr.js} +4 -4
  81. package/dist-vue/_chunks/Media-kK7BnZGr.js.map +1 -0
  82. package/dist-vue/_chunks/{PkChatbot-woRkjgP5.js → PkChatbot-B9RSkQmJ.js} +7 -7
  83. package/dist-vue/_chunks/{PkChatbot-woRkjgP5.js.map → PkChatbot-B9RSkQmJ.js.map} +1 -1
  84. package/dist-vue/_chunks/{PkChatbotFeedbackForm-D-lx1URv.js → PkChatbotFeedbackForm-lj9CHdhn.js} +3 -3
  85. package/dist-vue/_chunks/{PkChatbotFeedbackForm-D-lx1URv.js.map → PkChatbotFeedbackForm-lj9CHdhn.js.map} +1 -1
  86. package/dist-vue/_chunks/{PkChatbotInput-LHE0HZ9z.js → PkChatbotInput-C5QSmt21.js} +2 -2
  87. package/dist-vue/_chunks/{PkChatbotInput-LHE0HZ9z.js.map → PkChatbotInput-C5QSmt21.js.map} +1 -1
  88. package/dist-vue/_chunks/{PkChatbotMessages-BxTeEm3j.js → PkChatbotMessages-DOeUT6YL.js} +7 -7
  89. package/dist-vue/_chunks/PkChatbotMessages-DOeUT6YL.js.map +1 -0
  90. package/dist-vue/_chunks/{PkChatbotViewChat-BoEfZeco.js → PkChatbotViewChat-C2FuDayB.js} +6 -6
  91. package/dist-vue/_chunks/{PkChatbotViewChat-BoEfZeco.js.map → PkChatbotViewChat-C2FuDayB.js.map} +1 -1
  92. package/dist-vue/_chunks/{PkChatbotViewConversations-DvVc1arX.js → PkChatbotViewConversations-2xc0o-fO.js} +2 -2
  93. package/dist-vue/_chunks/{PkChatbotViewConversations-DvVc1arX.js.map → PkChatbotViewConversations-2xc0o-fO.js.map} +1 -1
  94. package/dist-vue/_chunks/{PkChatbotViewProfile-Dev_6pki.js → PkChatbotViewProfile-CoT1JnMk.js} +2 -2
  95. package/dist-vue/_chunks/{PkChatbotViewProfile-Dev_6pki.js.map → PkChatbotViewProfile-CoT1JnMk.js.map} +1 -1
  96. package/dist-vue/_chunks/{PkStreamingMarkdown-B4gnJ4hk.js → PkStreamingMarkdown-BAhC3uGK.js} +20 -20
  97. package/dist-vue/_chunks/PkStreamingMarkdown-BAhC3uGK.js.map +1 -0
  98. package/dist-vue/_chunks/{PkToolShowArtifact-EvbUZSOf.js → PkToolShowArtifact-RzrDPcEQ.js} +2 -2
  99. package/dist-vue/_chunks/{PkToolShowArtifact-EvbUZSOf.js.map → PkToolShowArtifact-RzrDPcEQ.js.map} +1 -1
  100. package/dist-vue/_chunks/{PkToolShowContactForm-CsDOqSJK.js → PkToolShowContactForm-5H4jfq1F.js} +4 -4
  101. package/dist-vue/_chunks/{PkToolShowContactForm-CsDOqSJK.js.map → PkToolShowContactForm-5H4jfq1F.js.map} +1 -1
  102. package/dist-vue/_chunks/{PkToolShowSources-ZtXFkIHt.js → PkToolShowSources-Dv0uuvqS.js} +5 -4
  103. package/dist-vue/_chunks/PkToolShowSources-Dv0uuvqS.js.map +1 -0
  104. package/dist-vue/_chunks/{ZodError-Ca0wCsGp.js → ZodError-C_est8SY.js} +2 -2
  105. package/dist-vue/_chunks/{ZodError-Ca0wCsGp.js.map → ZodError-C_est8SY.js.map} +1 -1
  106. package/dist-vue/_chunks/{createChatbotApiClient-YJegM3ni.js → createChatbotApiClient-CvDRMmDa.js} +3 -3
  107. package/dist-vue/_chunks/createChatbotApiClient-CvDRMmDa.js.map +1 -0
  108. package/dist-vue/_chunks/{index.es-CrPSzhoZ.js → index.es-Dk_HaA08.js} +4 -4
  109. package/dist-vue/_chunks/{index.es-CrPSzhoZ.js.map → index.es-Dk_HaA08.js.map} +1 -1
  110. package/dist-vue/_chunks/{schemas-sa2dDEGb.js → schemas-Clx4oKCB.js} +1309 -945
  111. package/dist-vue/_chunks/schemas-Clx4oKCB.js.map +1 -0
  112. package/dist-vue/_chunks/{useChatbotStore-DGL81KJa.js → useChatbotStore-DMDbzuub.js} +1061 -1000
  113. package/dist-vue/_chunks/useChatbotStore-DMDbzuub.js.map +1 -0
  114. package/dist-vue/api.js +1 -1
  115. package/dist-vue/apps/web-component/src/composables/useChatbotAgent.d.ts +6 -6
  116. package/dist-vue/apps/web-component/src/composables/useChatbotAuth.d.ts +8 -8
  117. package/dist-vue/apps/web-component/src/lib.d.ts +29 -0
  118. package/dist-vue/apps/web-component/src/main.d.ts +0 -0
  119. package/dist-vue/apps/web-component/src/modules/applicationInsights.d.ts +38 -0
  120. package/dist-vue/composables.js +2 -2
  121. package/dist-vue/index.js +2852 -2876
  122. package/dist-vue/index.js.map +1 -1
  123. package/dist-vue/packages/auth/src/add-member-to-organization.d.ts +5 -0
  124. package/dist-vue/packages/auth/src/anonymous-reauth-plugin.d.ts +11 -0
  125. package/dist-vue/packages/auth/src/external-auth-plugin.d.ts +2 -0
  126. package/dist-vue/packages/auth/src/index.d.ts +3477 -8
  127. package/dist-vue/packages/auth/src/media-helpers.d.ts +13 -0
  128. package/dist-vue/packages/auth/src/organization-auto-join.d.ts +1 -0
  129. package/dist-vue/packages/components/src/PkEditorMarkdown.d.ts +1 -1
  130. package/dist-vue/packages/components/src/PkEditorRepeater.d.ts +2 -2
  131. package/dist-vue/packages/components/src/PkEditorWyswyg.d.ts +1 -1
  132. package/dist-vue/packages/components/src/PkFieldset.d.ts +3 -3
  133. package/dist-vue/packages/components/src/composables/index.d.ts +3 -0
  134. package/dist-vue/packages/components/src/composables/useChatbotError.d.ts +11 -11
  135. package/dist-vue/packages/composable/src/constants.d.ts +5 -0
  136. package/dist-vue/packages/composable/src/useDialog.d.ts +3 -3
  137. package/dist-vue/packages/composable/src/useSettingsStore.d.ts +4 -5
  138. package/dist-vue/packages/models/src/schema/Agent.d.ts +27 -27
  139. package/dist-vue/packages/models/src/schema/AgentEndpoint.d.ts +1 -1
  140. package/dist-vue/packages/models/src/schema/Document.d.ts +2 -0
  141. package/dist-vue/packages/models/src/schema/ReasoningChat.d.ts +5 -5
  142. package/dist-vue/packages/models/src/schema/SubAgent.d.ts +10 -10
  143. package/dist-vue/packages/models/src/schema/constants.d.ts +3 -1
  144. package/package.json +4 -4
  145. package/dist/_chunks/PkStreamingMarkdown-orhL2kzD.js.map +0 -1
  146. package/dist/_chunks/PkToolShowContactForm-6C4uWDtf.js +0 -1103
  147. package/dist/_chunks/PkToolShowContactForm-6C4uWDtf.js.map +0 -1
  148. package/dist/_chunks/PkToolShowSources-BQo5DRwt.js.map +0 -1
  149. package/dist/_chunks/dist-DtF6poRc.js.map +0 -1
  150. package/dist/_chunks/schemas-Bp3a8tYV.js.map +0 -1
  151. package/dist/_chunks/vue.runtime.esm-bundler-BmggS4HU.js.map +0 -1
  152. package/dist-vue/_chunks/Media-Bic_vfSX.js.map +0 -1
  153. package/dist-vue/_chunks/PkChatbotMessages-BxTeEm3j.js.map +0 -1
  154. package/dist-vue/_chunks/PkStreamingMarkdown-B4gnJ4hk.js.map +0 -1
  155. package/dist-vue/_chunks/PkToolShowSources-ZtXFkIHt.js.map +0 -1
  156. package/dist-vue/_chunks/createChatbotApiClient-YJegM3ni.js.map +0 -1
  157. package/dist-vue/_chunks/schemas-sa2dDEGb.js.map +0 -1
  158. package/dist-vue/_chunks/useChatbotStore-DGL81KJa.js.map +0 -1
  159. package/dist-vue/packages/composable/src/chatbot/useChatbotStore.d.ts +0 -6
package/dist-vue/api.js CHANGED
@@ -1,2 +1,2 @@
1
- import { t as e } from "./_chunks/createChatbotApiClient-YJegM3ni.js";
1
+ import { t as e } from "./_chunks/createChatbotApiClient-CvDRMmDa.js";
2
2
  export { e as createChatbotApiClient };
@@ -1,4 +1,4 @@
1
- import { MaybeRefOrGetter, Ref, ComputedRef } from 'vue';
1
+ import { MaybeRefOrGetter } from 'vue';
2
2
  import { AgentStatus, AgentVisibility, AgentLoaderStrategy, StoragePolicy, AgentChannel } from '../../../../packages/models/src';
3
3
  export declare function useChatbotAgent(options: {
4
4
  baseUrl?: string;
@@ -7,7 +7,7 @@ export declare function useChatbotAgent(options: {
7
7
  agentId?: MaybeRefOrGetter<string>;
8
8
  headers?: MaybeRefOrGetter<Record<string, string> | undefined>;
9
9
  }): {
10
- agent: Ref<{
10
+ agent: globalThis.Ref<{
11
11
  id: string;
12
12
  name: string;
13
13
  status: AgentStatus;
@@ -226,10 +226,10 @@ export declare function useChatbotAgent(options: {
226
226
  channels: AgentChannel[];
227
227
  logo?: string | undefined;
228
228
  } | undefined>;
229
- contrastColor: ComputedRef<"white" | "black">;
230
- mainColor: ComputedRef<string | undefined>;
231
- themeClass: ComputedRef<string[]>;
232
- themeStyle: ComputedRef<{
229
+ contrastColor: globalThis.ComputedRef<"white" | "black">;
230
+ mainColor: globalThis.ComputedRef<string | undefined>;
231
+ themeClass: globalThis.ComputedRef<string[]>;
232
+ themeStyle: globalThis.ComputedRef<{
233
233
  '--chatbot-main-color': string | undefined;
234
234
  '--chatbot-contrast-color': "white" | "black";
235
235
  } | undefined>;
@@ -1,4 +1,4 @@
1
- import { MaybeRefOrGetter, Ref, WritableComputedRef, ComputedRef } from 'vue';
1
+ import { MaybeRefOrGetter } from 'vue';
2
2
  import { createAuthClient } from 'better-auth/vue';
3
3
  import { anonymousClient } from 'better-auth/client/plugins';
4
4
  import { BetterFetch, BetterFetchResponse, InferSignUpEmailCtx, InferUserUpdateCtx, BetterFetchError, BetterFetchPlugin, SuccessContext, ErrorContext, RequestContext, ResponseContext, FetchEsque, RetryOptions, StandardSchemaV1, WritableAtom } from 'better-auth/client';
@@ -781,7 +781,7 @@ export declare function useChatbotAuth(options?: {
781
781
  };
782
782
  } & {
783
783
  useSession: {
784
- (): Readonly< Ref<{
784
+ (): Readonly<globalThis.Ref<{
785
785
  readonly data: {
786
786
  readonly user: {
787
787
  readonly id: string;
@@ -841,7 +841,7 @@ export declare function useChatbotAuth(options?: {
841
841
  } | undefined) => Promise<void>;
842
842
  }>>;
843
843
  <F extends (...args: any) => any>(useFetch: F): Promise<{
844
- data: Ref<{
844
+ data: globalThis.Ref<{
845
845
  user: StripEmptyObjects<{
846
846
  id: string;
847
847
  createdAt: Date;
@@ -1209,7 +1209,7 @@ export declare function useChatbotAuth(options?: {
1209
1209
  };
1210
1210
  };
1211
1211
  };
1212
- session: Readonly< Ref<{
1212
+ session: Readonly<globalThis.Ref<{
1213
1213
  readonly data: {
1214
1214
  readonly user: {
1215
1215
  readonly id: string;
@@ -1268,9 +1268,9 @@ export declare function useChatbotAuth(options?: {
1268
1268
  query?: SessionQueryParams;
1269
1269
  } | undefined) => Promise<void>;
1270
1270
  }>>;
1271
- isAuthenticating: Ref<boolean, boolean>;
1272
- token: WritableComputedRef<string, string>;
1273
- headers: ComputedRef<{
1271
+ isAuthenticating: globalThis.Ref<boolean, boolean>;
1272
+ token: globalThis.WritableComputedRef<string, string>;
1273
+ headers: globalThis.ComputedRef<{
1274
1274
  Authorization: string;
1275
1275
  } | undefined>;
1276
1276
  onError: (error: {
@@ -1278,6 +1278,6 @@ export declare function useChatbotAuth(options?: {
1278
1278
  title: string;
1279
1279
  status: number;
1280
1280
  }) => void;
1281
- userId: ComputedRef<string | undefined>;
1281
+ userId: globalThis.ComputedRef<string | undefined>;
1282
1282
  };
1283
1283
  export {};
@@ -0,0 +1,29 @@
1
+ import { default as FloatingChatWidget } from './components/FloatingChatWidget.ce';
2
+ import { default as EmbeddedChatWidget } from './components/EmbeddedChatWidget.ce';
3
+ import { VueElementConstructor } from 'vue';
4
+ export declare const FloatingChatWidgetCe: VueElementConstructor<{
5
+ agentId: string;
6
+ organizationSlug: string;
7
+ baseUrl?: string;
8
+ externalToken?: string;
9
+ awaitExternalToken?: boolean;
10
+ floatingButtonPosition?: "left" | "right";
11
+ customCss?: string;
12
+ appinsightsConnectionString?: string;
13
+ }>;
14
+ export declare const EmbeddedChatWidgetCe: VueElementConstructor<{
15
+ agentId: string;
16
+ organizationSlug: string;
17
+ baseUrl?: string;
18
+ externalToken?: string;
19
+ awaitExternalToken?: boolean;
20
+ forwardedSlots?: string;
21
+ customCss?: string;
22
+ appinsightsConnectionString?: string;
23
+ }>;
24
+ declare module 'vue' {
25
+ interface GlobalComponents {
26
+ 'floating-chat-widget': typeof FloatingChatWidget;
27
+ 'embedded-chat-widget': typeof EmbeddedChatWidget;
28
+ }
29
+ }
File without changes
@@ -0,0 +1,38 @@
1
+ type TelemetryContext = {
2
+ organizationSlug?: string;
3
+ agentId?: string;
4
+ userId?: string;
5
+ };
6
+ /**
7
+ * Initializes Application Insights for the web component widget.
8
+ *
9
+ * The SDK is loaded via dynamic `import()` so it never blocks the initial
10
+ * render. Calls to `trackAppEvent` / `trackAppException` made while the SDK
11
+ * is still loading are queued and replayed once it's ready.
12
+ *
13
+ * Uses a singleton pattern — only the first call with a valid connection string
14
+ * takes effect. Subsequent calls are no-ops.
15
+ *
16
+ * All automatic browser hooks (window.onerror, fetch/XHR instrumentation,
17
+ * page-visit timing, route tracking) are deliberately disabled so the widget
18
+ * never interferes with the host page. Errors are captured exclusively through
19
+ * Vue's `app.config.errorHandler`; events are tracked via explicit calls.
20
+ */
21
+ export declare function initializeAppInsights(connectionString?: string): void;
22
+ /**
23
+ * Updates telemetry context enriched onto every subsequent event.
24
+ */
25
+ export declare function setTelemetryContext(ctx: Partial<TelemetryContext>): void;
26
+ /**
27
+ * Tracks a custom event when telemetry is initialized.
28
+ */
29
+ export declare function trackAppEvent(name: string, properties?: Record<string, string>): void;
30
+ /**
31
+ * Tracks a custom metric when telemetry is initialized.
32
+ */
33
+ export declare function trackAppMetric(name: string, average: number, properties?: Record<string, string>): void;
34
+ /**
35
+ * Tracks an exception when telemetry is initialized.
36
+ */
37
+ export declare function trackAppException(error: Error, properties?: Record<string, string>): void;
38
+ export {};
@@ -1,6 +1,6 @@
1
- import { t as e } from "./_chunks/createChatbotApiClient-YJegM3ni.js";
1
+ import { t as e } from "./_chunks/createChatbotApiClient-CvDRMmDa.js";
2
2
  import { h as t } from "./_chunks/src-EtGd6cRz.js";
3
- import { t as n } from "./_chunks/useChatbotStore-DGL81KJa.js";
3
+ import { t as n } from "./_chunks/useChatbotStore-DMDbzuub.js";
4
4
  import { o as r } from "./_chunks/utils-BegUBK7s.js";
5
5
  import { computed as i, getCurrentInstance as a, onBeforeUnmount as o, onMounted as s, ref as c, toValue as l, watch as u } from "vue";
6
6
  import { createAuthClient as d } from "better-auth/vue";