@developer.notchatbot/webchat 1.1.3 → 1.1.5
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.
|
@@ -8,15 +8,18 @@ export declare const COMPANY_CONFIG: {
|
|
|
8
8
|
readonly position: "bottom-right";
|
|
9
9
|
readonly marginBottom: 20;
|
|
10
10
|
readonly marginSide: 20;
|
|
11
|
+
readonly showPopup: true;
|
|
11
12
|
readonly mobile: {
|
|
12
13
|
readonly position: "bottom-right";
|
|
13
14
|
readonly marginBottom: 15;
|
|
14
15
|
readonly marginSide: 15;
|
|
16
|
+
readonly showPopup: true;
|
|
15
17
|
};
|
|
16
18
|
readonly desktop: {
|
|
17
19
|
readonly position: "bottom-right";
|
|
18
20
|
readonly marginBottom: 25;
|
|
19
21
|
readonly marginSide: 25;
|
|
22
|
+
readonly showPopup: true;
|
|
20
23
|
};
|
|
21
24
|
readonly closeButtonIcon: "default";
|
|
22
25
|
readonly closeButtonText: "Cerrar";
|
|
@@ -8,15 +8,18 @@ export declare const COMPANY_CONFIG: {
|
|
|
8
8
|
readonly position: "{{ POSITION }}";
|
|
9
9
|
readonly marginBottom: "{{ MARGIN_BOTTOM }}";
|
|
10
10
|
readonly marginSide: "{{ MARGIN_SIDE }}";
|
|
11
|
+
readonly showPopup: "{{ SHOW_POPUP }}";
|
|
11
12
|
readonly mobile: {
|
|
12
13
|
readonly position: "{{ MOBILE_POSITION }}";
|
|
13
14
|
readonly marginBottom: "{{ MOBILE_MARGIN_BOTTOM }}";
|
|
14
15
|
readonly marginSide: "{{ MOBILE_MARGIN_SIDE }}";
|
|
16
|
+
readonly showPopup: "{{ MOBILE_SHOW_POPUP }}";
|
|
15
17
|
};
|
|
16
18
|
readonly desktop: {
|
|
17
19
|
readonly position: "{{ DESKTOP_POSITION }}";
|
|
18
20
|
readonly marginBottom: "{{ DESKTOP_MARGIN_BOTTOM }}";
|
|
19
21
|
readonly marginSide: "{{ DESKTOP_MARGIN_SIDE }}";
|
|
22
|
+
readonly showPopup: "{{ DESKTOP_SHOW_POPUP }}";
|
|
20
23
|
};
|
|
21
24
|
readonly closeButtonIcon: "{{ CLOSE_BUTTON_ICON }}";
|
|
22
25
|
readonly closeButtonText: "{{ CLOSE_BUTTON_TEXT }}";
|
package/dist/types.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export interface WebChatPositionConfig {
|
|
|
2
2
|
position?: 'bottom-right' | 'bottom-left';
|
|
3
3
|
marginBottom?: number;
|
|
4
4
|
marginSide?: number;
|
|
5
|
+
showPopup?: boolean;
|
|
5
6
|
}
|
|
6
7
|
export interface WebChatConfig {
|
|
7
8
|
elementId: string;
|
|
@@ -17,6 +18,7 @@ export interface WebChatConfig {
|
|
|
17
18
|
closeButtonCustomIcon?: string;
|
|
18
19
|
marginBottom?: number;
|
|
19
20
|
marginSide?: number;
|
|
21
|
+
showPopup?: boolean;
|
|
20
22
|
mobile?: WebChatPositionConfig;
|
|
21
23
|
desktop?: WebChatPositionConfig;
|
|
22
24
|
}
|
|
@@ -155,6 +157,7 @@ export interface ChatBubblePopoverProps {
|
|
|
155
157
|
primaryColor: string;
|
|
156
158
|
isMobile: boolean;
|
|
157
159
|
isOpen: boolean;
|
|
160
|
+
onPopoverClick: () => void;
|
|
158
161
|
}
|
|
159
162
|
export interface WebChatInstance {
|
|
160
163
|
root: any;
|
package/dist/utils/config.d.ts
CHANGED