@robylon/whatsapp-react-sdk 1.0.5 → 1.0.7-staging.4
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/cjs/index.js +2 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/types.d.ts +8 -0
- package/dist/cjs/types/vanilla/components/ChatWidgetPopup.d.ts +1 -0
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/types.d.ts +8 -0
- package/dist/esm/types/vanilla/components/ChatWidgetPopup.d.ts +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/umd/robylon-chatbot.js +1 -1
- package/dist/umd/robylon-chatbot.js.map +1 -1
- package/dist/umd/types/types.d.ts +8 -0
- package/dist/umd/types/vanilla/components/ChatWidgetPopup.d.ts +1 -0
- package/package.json +1 -1
|
@@ -58,6 +58,9 @@ export interface ChatbotConfig {
|
|
|
58
58
|
title_bar_color?: string;
|
|
59
59
|
button_content?: string;
|
|
60
60
|
powered_by_robylon?: boolean;
|
|
61
|
+
custom_footer_link?: boolean;
|
|
62
|
+
footer_link_text?: string;
|
|
63
|
+
footer_link_url?: string;
|
|
61
64
|
}
|
|
62
65
|
interface RobylonSdkConfig {
|
|
63
66
|
chatbot_id: string;
|
|
@@ -81,6 +84,11 @@ export interface ChatbotState {
|
|
|
81
84
|
declare global {
|
|
82
85
|
interface Window {
|
|
83
86
|
initializeRobylonSdk: (config: RobylonSdkConfig) => void;
|
|
87
|
+
RobylonWhatsApp?: {
|
|
88
|
+
create: (config: any) => any;
|
|
89
|
+
getState?: () => string;
|
|
90
|
+
q?: any[];
|
|
91
|
+
};
|
|
84
92
|
}
|
|
85
93
|
}
|
|
86
94
|
export declare enum ProactiveSendTimeType {
|
|
@@ -9,6 +9,7 @@ export declare class ChatWidgetPopup {
|
|
|
9
9
|
constructor(config: ChatWidgetPopupConfig);
|
|
10
10
|
private createTitleBar;
|
|
11
11
|
private createContent;
|
|
12
|
+
private createFooterLink;
|
|
12
13
|
private render;
|
|
13
14
|
getElement(): HTMLDivElement;
|
|
14
15
|
update(config: ChatWidgetPopupConfig): void;
|