@8wave/ai-elements 0.74.0 → 0.75.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.
- package/dist/_chunks/{PkStreamingMarkdown-orhL2kzD.js → PkStreamingMarkdown-rIdQh5_D.js} +20 -20
- package/dist/_chunks/PkStreamingMarkdown-rIdQh5_D.js.map +1 -0
- package/dist/_chunks/{PkToolShowArtifact-c_vCWUpQ.js → PkToolShowArtifact-CeLgwZBA.js} +6 -6
- package/dist/_chunks/{PkToolShowArtifact-c_vCWUpQ.js.map → PkToolShowArtifact-CeLgwZBA.js.map} +1 -1
- package/dist/_chunks/{PkToolShowCalendarEvent-D2VHu1V3.js → PkToolShowCalendarEvent-cQpAAE3a.js} +10 -10
- package/dist/_chunks/{PkToolShowCalendarEvent-D2VHu1V3.js.map → PkToolShowCalendarEvent-cQpAAE3a.js.map} +1 -1
- package/dist/_chunks/{PkToolShowComparison-C2ZUH0w4.js → PkToolShowComparison-Cu-zT8-Z.js} +6 -6
- package/dist/_chunks/{PkToolShowComparison-C2ZUH0w4.js.map → PkToolShowComparison-Cu-zT8-Z.js.map} +1 -1
- package/dist/_chunks/PkToolShowContactForm-CqoSVvjG.js +1658 -0
- package/dist/_chunks/PkToolShowContactForm-CqoSVvjG.js.map +1 -0
- package/dist/_chunks/{PkToolShowEmail-BuyCHUU5.js → PkToolShowEmail-oLGym0R9.js} +10 -10
- package/dist/_chunks/{PkToolShowEmail-BuyCHUU5.js.map → PkToolShowEmail-oLGym0R9.js.map} +1 -1
- package/dist/_chunks/{PkToolShowImageGallery-ByldZ0nj.js → PkToolShowImageGallery-CDXSL1Mg.js} +2 -2
- package/dist/_chunks/{PkToolShowImageGallery-ByldZ0nj.js.map → PkToolShowImageGallery-CDXSL1Mg.js.map} +1 -1
- package/dist/_chunks/{PkToolShowLocation-BCFnC5c7.js → PkToolShowLocation-BtRUdoEw.js} +7 -7
- package/dist/_chunks/{PkToolShowLocation-BCFnC5c7.js.map → PkToolShowLocation-BtRUdoEw.js.map} +1 -1
- package/dist/_chunks/{PkToolShowMessage-6Bsfi3BC.js → PkToolShowMessage-tJQGRhce.js} +9 -9
- package/dist/_chunks/{PkToolShowMessage-6Bsfi3BC.js.map → PkToolShowMessage-tJQGRhce.js.map} +1 -1
- package/dist/_chunks/{PkToolShowMultipleChoice-BLNTD2lK.js → PkToolShowMultipleChoice-CtVvdyDg.js} +2 -2
- package/dist/_chunks/{PkToolShowMultipleChoice-BLNTD2lK.js.map → PkToolShowMultipleChoice-CtVvdyDg.js.map} +1 -1
- package/dist/_chunks/{PkToolShowProductList-B4S5_m-f.js → PkToolShowProductList-D_k6CDdb.js} +2 -2
- package/dist/_chunks/{PkToolShowProductList-B4S5_m-f.js.map → PkToolShowProductList-D_k6CDdb.js.map} +1 -1
- package/dist/_chunks/{PkToolShowQrCode-BVZlzYDq.js → PkToolShowQrCode-S1j_T8wQ.js} +6 -6
- package/dist/_chunks/{PkToolShowQrCode-BVZlzYDq.js.map → PkToolShowQrCode-S1j_T8wQ.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSources-BQo5DRwt.js → PkToolShowSources-CroItMtG.js} +6 -5
- package/dist/_chunks/PkToolShowSources-CroItMtG.js.map +1 -0
- package/dist/_chunks/{PkToolShowSuggestedReply-BxDI6yp_.js → PkToolShowSuggestedReply-BRa5Lpti.js} +2 -2
- package/dist/_chunks/{PkToolShowSuggestedReply-BxDI6yp_.js.map → PkToolShowSuggestedReply-BRa5Lpti.js.map} +1 -1
- package/dist/_chunks/{PkToolShowWeather-DR6egBIP.js → PkToolShowWeather-CUpCJ8Nj.js} +2 -2
- package/dist/_chunks/{PkToolShowWeather-DR6egBIP.js.map → PkToolShowWeather-CUpCJ8Nj.js.map} +1 -1
- package/dist/_chunks/{PkToolShowWebPages-D8RngE-F.js → PkToolShowWebPages-f-dHyxfD.js} +2 -2
- package/dist/_chunks/{PkToolShowWebPages-D8RngE-F.js.map → PkToolShowWebPages-f-dHyxfD.js.map} +1 -1
- package/dist/_chunks/{VvCheckbox.es-kmMsWlkU.js → VvCheckbox.es-BF8Mdg0O.js} +2 -2
- package/dist/_chunks/{VvCheckbox.es-kmMsWlkU.js.map → VvCheckbox.es-BF8Mdg0O.js.map} +1 -1
- package/dist/_chunks/{VvCheckboxGroup.es-BRRmuO9h.js → VvCheckboxGroup.es-BJc8MmJ3.js} +109 -109
- package/dist/_chunks/{VvCheckboxGroup.es-BRRmuO9h.js.map → VvCheckboxGroup.es-BJc8MmJ3.js.map} +1 -1
- package/dist/_chunks/{VvCombobox.es-pTM53Z4B.js → VvCombobox.es-ILRHqAye.js} +256 -256
- package/dist/_chunks/{VvCombobox.es-pTM53Z4B.js.map → VvCombobox.es-ILRHqAye.js.map} +1 -1
- package/dist/_chunks/{VvInputText.es-DO39OSWk.js → VvInputText.es-CDnMeO26.js} +190 -190
- package/dist/_chunks/{VvInputText.es-DO39OSWk.js.map → VvInputText.es-CDnMeO26.js.map} +1 -1
- package/dist/_chunks/{VvRadio.es-BpQAJbon.js → VvRadio.es-C2p5vvAx.js} +2 -2
- package/dist/_chunks/{VvRadio.es-BpQAJbon.js.map → VvRadio.es-C2p5vvAx.js.map} +1 -1
- package/dist/_chunks/{VvRadioGroup.es-BSBrmx9w.js → VvRadioGroup.es-6GlWuDjY.js} +10 -10
- package/dist/_chunks/{VvRadioGroup.es-BSBrmx9w.js.map → VvRadioGroup.es-6GlWuDjY.js.map} +1 -1
- package/dist/_chunks/{VvSelect.es-DALpUK5j.js → VvSelect.es-i4lO9onq.js} +6 -6
- package/dist/_chunks/{VvSelect.es-DALpUK5j.js.map → VvSelect.es-i4lO9onq.js.map} +1 -1
- package/dist/_chunks/{VvTextarea.es-C9dwYLOG.js → VvTextarea.es-CGpiCS4S.js} +248 -248
- package/dist/_chunks/{VvTextarea.es-C9dwYLOG.js.map → VvTextarea.es-CGpiCS4S.js.map} +1 -1
- package/dist/_chunks/{dist-DtF6poRc.js → dist-BTnzL-m0.js} +131 -119
- package/dist/_chunks/dist-BTnzL-m0.js.map +1 -0
- package/dist/_chunks/{index.es-BGFmj59S.js → index.es-CUjDCkXD.js} +449 -449
- package/dist/_chunks/{index.es-BGFmj59S.js.map → index.es-CUjDCkXD.js.map} +1 -1
- package/dist/_chunks/{schemas-Bp3a8tYV.js → schemas-aPiXCaCc.js} +1309 -945
- package/dist/_chunks/schemas-aPiXCaCc.js.map +1 -0
- package/dist/ai-elements.es.js +4603 -3406
- package/dist/ai-elements.es.js.map +1 -1
- package/dist-vue/PkChatbot.js +1 -1
- package/dist-vue/PkChatbotFeedbackForm.js +1 -1
- package/dist-vue/PkChatbotInput.js +1 -1
- package/dist-vue/PkChatbotMessages.js +1 -1
- package/dist-vue/PkChatbotViewChat.js +1 -1
- package/dist-vue/PkChatbotViewConversations.js +1 -1
- package/dist-vue/PkChatbotViewProfile.js +1 -1
- package/dist-vue/_chunks/{Media-Bic_vfSX.js → Media-CXQSoKqt.js} +3 -3
- package/dist-vue/_chunks/{Media-Bic_vfSX.js.map → Media-CXQSoKqt.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbot-woRkjgP5.js → PkChatbot-DAzGc7al.js} +7 -7
- package/dist-vue/_chunks/{PkChatbot-woRkjgP5.js.map → PkChatbot-DAzGc7al.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotFeedbackForm-D-lx1URv.js → PkChatbotFeedbackForm-DvUzirPP.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotFeedbackForm-D-lx1URv.js.map → PkChatbotFeedbackForm-DvUzirPP.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotInput-LHE0HZ9z.js → PkChatbotInput-C5QSmt21.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotInput-LHE0HZ9z.js.map → PkChatbotInput-C5QSmt21.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotMessages-BxTeEm3j.js → PkChatbotMessages-dsjB0-26.js} +7 -7
- package/dist-vue/_chunks/PkChatbotMessages-dsjB0-26.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotViewChat-BoEfZeco.js → PkChatbotViewChat-CjoezIyz.js} +6 -6
- package/dist-vue/_chunks/{PkChatbotViewChat-BoEfZeco.js.map → PkChatbotViewChat-CjoezIyz.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewConversations-DvVc1arX.js → PkChatbotViewConversations-DSQu6vY1.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewConversations-DvVc1arX.js.map → PkChatbotViewConversations-DSQu6vY1.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewProfile-Dev_6pki.js → PkChatbotViewProfile-BJJiaG9H.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewProfile-Dev_6pki.js.map → PkChatbotViewProfile-BJJiaG9H.js.map} +1 -1
- package/dist-vue/_chunks/{PkStreamingMarkdown-B4gnJ4hk.js → PkStreamingMarkdown-BAhC3uGK.js} +20 -20
- package/dist-vue/_chunks/PkStreamingMarkdown-BAhC3uGK.js.map +1 -0
- package/dist-vue/_chunks/{PkToolShowArtifact-EvbUZSOf.js → PkToolShowArtifact-RzrDPcEQ.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowArtifact-EvbUZSOf.js.map → PkToolShowArtifact-RzrDPcEQ.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowContactForm-CsDOqSJK.js → PkToolShowContactForm-r_GgO-ZX.js} +4 -4
- package/dist-vue/_chunks/{PkToolShowContactForm-CsDOqSJK.js.map → PkToolShowContactForm-r_GgO-ZX.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSources-ZtXFkIHt.js → PkToolShowSources-DK2DCvU3.js} +5 -4
- package/dist-vue/_chunks/PkToolShowSources-DK2DCvU3.js.map +1 -0
- package/dist-vue/_chunks/{ZodError-Ca0wCsGp.js → ZodError-C_est8SY.js} +2 -2
- package/dist-vue/_chunks/{ZodError-Ca0wCsGp.js.map → ZodError-C_est8SY.js.map} +1 -1
- package/dist-vue/_chunks/{createChatbotApiClient-YJegM3ni.js → createChatbotApiClient-f86KwRcq.js} +3 -3
- package/dist-vue/_chunks/createChatbotApiClient-f86KwRcq.js.map +1 -0
- package/dist-vue/_chunks/{index.es-CrPSzhoZ.js → index.es-_14zrNZB.js} +4 -4
- package/dist-vue/_chunks/{index.es-CrPSzhoZ.js.map → index.es-_14zrNZB.js.map} +1 -1
- package/dist-vue/_chunks/{schemas-sa2dDEGb.js → schemas-Clx4oKCB.js} +1309 -945
- package/dist-vue/_chunks/schemas-Clx4oKCB.js.map +1 -0
- package/dist-vue/_chunks/{useChatbotStore-DGL81KJa.js → useChatbotStore-CJlkoNn7.js} +1058 -997
- package/dist-vue/_chunks/useChatbotStore-CJlkoNn7.js.map +1 -0
- package/dist-vue/api.js +1 -1
- package/dist-vue/apps/web-component/src/composables/useChatbotAgent.d.ts +6 -6
- package/dist-vue/apps/web-component/src/composables/useChatbotAuth.d.ts +8 -8
- package/dist-vue/apps/web-component/src/lib.d.ts +29 -0
- package/dist-vue/apps/web-component/src/main.d.ts +0 -0
- package/dist-vue/apps/web-component/src/modules/applicationInsights.d.ts +38 -0
- package/dist-vue/composables.js +2 -2
- package/dist-vue/index.js +2846 -2870
- package/dist-vue/index.js.map +1 -1
- package/dist-vue/packages/auth/src/add-member-to-organization.d.ts +5 -0
- package/dist-vue/packages/auth/src/anonymous-reauth-plugin.d.ts +11 -0
- package/dist-vue/packages/auth/src/external-auth-plugin.d.ts +2 -0
- package/dist-vue/packages/auth/src/index.d.ts +3477 -8
- package/dist-vue/packages/auth/src/media-helpers.d.ts +13 -0
- package/dist-vue/packages/auth/src/organization-auto-join.d.ts +1 -0
- package/dist-vue/packages/components/src/PkEditorMarkdown.d.ts +1 -1
- package/dist-vue/packages/components/src/PkEditorRepeater.d.ts +2 -2
- package/dist-vue/packages/components/src/PkEditorWyswyg.d.ts +1 -1
- package/dist-vue/packages/components/src/PkFieldset.d.ts +3 -3
- package/dist-vue/packages/components/src/composables/index.d.ts +3 -0
- package/dist-vue/packages/components/src/composables/useChatbotError.d.ts +11 -11
- package/dist-vue/packages/composable/src/constants.d.ts +5 -0
- package/dist-vue/packages/composable/src/useDialog.d.ts +3 -3
- package/dist-vue/packages/composable/src/useSettingsStore.d.ts +4 -5
- package/dist-vue/packages/models/src/schema/Agent.d.ts +27 -27
- package/dist-vue/packages/models/src/schema/Document.d.ts +2 -0
- package/dist-vue/packages/models/src/schema/ReasoningChat.d.ts +5 -5
- package/dist-vue/packages/models/src/schema/SubAgent.d.ts +10 -10
- package/package.json +3 -3
- package/dist/_chunks/PkStreamingMarkdown-orhL2kzD.js.map +0 -1
- package/dist/_chunks/PkToolShowContactForm-6C4uWDtf.js +0 -1103
- package/dist/_chunks/PkToolShowContactForm-6C4uWDtf.js.map +0 -1
- package/dist/_chunks/PkToolShowSources-BQo5DRwt.js.map +0 -1
- package/dist/_chunks/dist-DtF6poRc.js.map +0 -1
- package/dist/_chunks/schemas-Bp3a8tYV.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotMessages-BxTeEm3j.js.map +0 -1
- package/dist-vue/_chunks/PkStreamingMarkdown-B4gnJ4hk.js.map +0 -1
- package/dist-vue/_chunks/PkToolShowSources-ZtXFkIHt.js.map +0 -1
- package/dist-vue/_chunks/createChatbotApiClient-YJegM3ni.js.map +0 -1
- package/dist-vue/_chunks/schemas-sa2dDEGb.js.map +0 -1
- package/dist-vue/_chunks/useChatbotStore-DGL81KJa.js.map +0 -1
- 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-
|
|
1
|
+
import { t as e } from "./_chunks/createChatbotApiClient-f86KwRcq.js";
|
|
2
2
|
export { e as createChatbotApiClient };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MaybeRefOrGetter
|
|
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
|
|
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<
|
|
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<
|
|
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 {};
|
package/dist-vue/composables.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as e } from "./_chunks/createChatbotApiClient-
|
|
1
|
+
import { t as e } from "./_chunks/createChatbotApiClient-f86KwRcq.js";
|
|
2
2
|
import { h as t } from "./_chunks/src-EtGd6cRz.js";
|
|
3
|
-
import { t as n } from "./_chunks/useChatbotStore-
|
|
3
|
+
import { t as n } from "./_chunks/useChatbotStore-CJlkoNn7.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";
|