@verba-ai/chat-sdk 1.0.6 → 1.0.7
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/chat-sdk.es.js
CHANGED
|
@@ -3077,7 +3077,7 @@ function Ze(e, t) {
|
|
|
3077
3077
|
{ duration: 0.22, ease: [0.34, 1.56, 0.64, 1] }
|
|
3078
3078
|
));
|
|
3079
3079
|
}
|
|
3080
|
-
const Va = "
|
|
3080
|
+
const Va = "https://embed.verba.chat", wa = `${Va}/embeddable.html`;
|
|
3081
3081
|
class Bt extends Error {
|
|
3082
3082
|
constructor(t) {
|
|
3083
3083
|
super(`[VerbaChatSDK] ${t}`), this.name = "ChatSDKError";
|
|
@@ -3203,7 +3203,7 @@ class Aa {
|
|
|
3203
3203
|
}
|
|
3204
3204
|
buildWidgetUrl() {
|
|
3205
3205
|
const t = new URL(wa);
|
|
3206
|
-
if (t.searchParams.set("tag-id", this.config.tagId), t.searchParams.set("sdk-version", "1.0.
|
|
3206
|
+
if (t.searchParams.set("tag-id", this.config.tagId), t.searchParams.set("sdk-version", "1.0.7"), typeof this.config.theme == "object") {
|
|
3207
3207
|
const n = this.config.theme;
|
|
3208
3208
|
n.primaryColor && t.searchParams.set("color", n.primaryColor), n.textColor && t.searchParams.set("textColor", n.textColor), n.backgroundColor && t.searchParams.set("backgroundColor", n.backgroundColor), n.fontFamily && t.searchParams.set("fontFamily", n.fontFamily);
|
|
3209
3209
|
} else
|