@developer.notchatbot/webchat 1.5.1 → 1.5.2
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/types.d.ts +9 -0
- package/dist/utils/google-events.d.ts +11 -0
- package/dist/webchat-bundle.min.js +2693 -2679
- package/dist/webchat-bundle.min.umd.cjs +27 -27
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -25,6 +25,15 @@ export interface WebChatConfig {
|
|
|
25
25
|
whatsapp?: Omit<WhatsAppConfig, 'position' | 'marginBottom' | 'marginSide' | 'mobile' | 'desktop'> & {
|
|
26
26
|
active?: boolean;
|
|
27
27
|
};
|
|
28
|
+
/**
|
|
29
|
+
* Optional GTM/GA event name overrides for dataLayer pushes.
|
|
30
|
+
* If omitted, defaults are used.
|
|
31
|
+
*/
|
|
32
|
+
gtmEvents?: {
|
|
33
|
+
click_burbuja_principal?: string;
|
|
34
|
+
click_burbuja_notchatbot?: string;
|
|
35
|
+
click_burbuja_whatsapp?: string;
|
|
36
|
+
};
|
|
28
37
|
}
|
|
29
38
|
export interface EmbedChatInputConfig {
|
|
30
39
|
backgroundColor?: string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const sendGoogleEvent: (eventName: string, payload?: any) => void;
|
|
2
|
+
export declare const DEFAULT_WEBCHAT_GTM_EVENTS: {
|
|
3
|
+
readonly click_burbuja_principal: "click_burbuja_principal";
|
|
4
|
+
readonly click_burbuja_notchatbot: "click_burbuja_notchatbot";
|
|
5
|
+
readonly click_burbuja_whatsapp: "click_burbuja_whatsapp";
|
|
6
|
+
};
|
|
7
|
+
declare global {
|
|
8
|
+
interface Window {
|
|
9
|
+
dataLayer: any[];
|
|
10
|
+
}
|
|
11
|
+
}
|