feat: Add an extended bubble design for the widget (#1123)

* feat: Add a new design for chat bubble

Signed-off-by: Pranav Raj Sreepuram <pranavrajs@gmail.com>

* Add i18n

* Fix stye issues

* Set fixed font-size

* Update docs for bubble
This commit is contained in:
Pranav Raj S
2020-08-09 16:07:32 +05:30
committed by GitHub
parent a04ca24def
commit 0adbc346df
16 changed files with 164 additions and 84 deletions

View File

@@ -1,5 +1,6 @@
import Cookies from 'js-cookie';
import { IFrameHelper } from '../sdk/IFrameHelper';
import { getBubbleView } from '../sdk/bubbleHelpers';
const runSDK = ({ baseUrl, websiteToken }) => {
const chatwootSettings = window.chatwootSettings || {};
@@ -11,6 +12,7 @@ const runSDK = ({ baseUrl, websiteToken }) => {
position: chatwootSettings.position === 'left' ? 'left' : 'right',
websiteToken,
locale: chatwootSettings.locale,
type: getBubbleView(chatwootSettings.type),
toggle() {
IFrameHelper.events.toggleBubble();