@ada-support/embed2 1.5.3 → 1.5.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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const CHATTER_TOKEN_STORAGE_KEY = "chatter";
|
|
2
2
|
export declare const CHATTER_CREATED_STORAGE_KEY = "ada-embed_chatter-created";
|
|
3
|
-
export declare const SESSION_AUTH_TOKEN_STORAGE_KEY = "
|
|
3
|
+
export declare const SESSION_AUTH_TOKEN_STORAGE_KEY = "ada-embed_session-token";
|
|
4
4
|
export declare const IN_LIVE_CHAT_STORAGE_KEY = "inLiveChat";
|
|
5
5
|
export declare const ZD_SESSION_STORAGE_KEY = "ada-embed_zd-session-id";
|
|
6
6
|
export declare const ZD_PREVIOUS_TAGS_STORAGE_KEY = "ada-embed_zd-previous-tags";
|
package/dist/npm-entry/index.js
CHANGED
|
@@ -15806,7 +15806,7 @@ const client = new error_tracker_BrowserClient({
|
|
|
15806
15806
|
},
|
|
15807
15807
|
|
|
15808
15808
|
environment: "production",
|
|
15809
|
-
release: "1.5.
|
|
15809
|
+
release: "1.5.4-8867424",
|
|
15810
15810
|
sampleRate: 0.25,
|
|
15811
15811
|
autoSessionTracking: false,
|
|
15812
15812
|
// Integrations don't seem to work with Sentry: https://github.com/getsentry/sentry-javascript/issues/2541
|
|
@@ -16436,7 +16436,7 @@ function getEmbedURL(_ref) {
|
|
|
16436
16436
|
host = "http://".concat(window.location.hostname, ":9001");
|
|
16437
16437
|
}
|
|
16438
16438
|
|
|
16439
|
-
return "".concat(host, "/embed/").concat(frameName, "/").concat("
|
|
16439
|
+
return "".concat(host, "/embed/").concat(frameName, "/").concat("8867424", "/index.html");
|
|
16440
16440
|
}
|
|
16441
16441
|
|
|
16442
16442
|
function constructQueryString(query) {
|
|
@@ -16635,7 +16635,7 @@ const actions = {
|
|
|
16635
16635
|
;// CONCATENATED MODULE: ./src/common/constants/storage-keys.ts
|
|
16636
16636
|
const CHATTER_TOKEN_STORAGE_KEY = "chatter";
|
|
16637
16637
|
const CHATTER_CREATED_STORAGE_KEY = "ada-embed_chatter-created";
|
|
16638
|
-
const SESSION_AUTH_TOKEN_STORAGE_KEY = "
|
|
16638
|
+
const SESSION_AUTH_TOKEN_STORAGE_KEY = "ada-embed_session-token";
|
|
16639
16639
|
const IN_LIVE_CHAT_STORAGE_KEY = "inLiveChat";
|
|
16640
16640
|
const ZD_SESSION_STORAGE_KEY = "ada-embed_zd-session-id";
|
|
16641
16641
|
const ZD_PREVIOUS_TAGS_STORAGE_KEY = "ada-embed_zd-previous-tags";
|
|
@@ -16644,7 +16644,7 @@ const ZD_MESSAGING_EXTERNAL_USER_ID_STORAGE_KEY = "ada-embed_zd-messaging-extern
|
|
|
16644
16644
|
const ZD_MESSAGING_CHATTER_CREATED_STORAGE_KEY = "ada-embed_zd-messaging-chatter-created";
|
|
16645
16645
|
/** @deprecated - Use CHATTER_TOKEN_STORAGE_KEY */
|
|
16646
16646
|
|
|
16647
|
-
const CHATTER_STORAGE_KEY = CHATTER_TOKEN_STORAGE_KEY;
|
|
16647
|
+
const CHATTER_STORAGE_KEY = (/* unused pure expression or super */ null && (CHATTER_TOKEN_STORAGE_KEY));
|
|
16648
16648
|
;// CONCATENATED MODULE: ./src/frames/lib/safe-storage/index.ts
|
|
16649
16649
|
|
|
16650
16650
|
|
|
@@ -18186,9 +18186,9 @@ async function log(message, extra, options) {
|
|
|
18186
18186
|
service: "embed",
|
|
18187
18187
|
env: "production",
|
|
18188
18188
|
embedVersion: 2,
|
|
18189
|
-
version: "1.5.
|
|
18189
|
+
version: "1.5.4",
|
|
18190
18190
|
isNpm: true,
|
|
18191
|
-
commitHash: "
|
|
18191
|
+
commitHash: "8867424"
|
|
18192
18192
|
}))
|
|
18193
18193
|
});
|
|
18194
18194
|
}
|
|
@@ -18620,20 +18620,17 @@ const isMobile = /(iPhone)|(iPod)|(android)|(webOS)/i.exec(navigator.userAgent)
|
|
|
18620
18620
|
|
|
18621
18621
|
function storeChatterEventDataInBrowser(client, payload) {
|
|
18622
18622
|
const {
|
|
18623
|
-
persistence
|
|
18624
|
-
|
|
18625
|
-
} = client; // TODO: CHATX-1618 please remove the line below - the ff won't be needed anymore
|
|
18626
|
-
|
|
18627
|
-
const isChatSessionAuthEnabled = features.chat_session_auth;
|
|
18623
|
+
persistence
|
|
18624
|
+
} = client;
|
|
18628
18625
|
const {
|
|
18629
18626
|
chatter,
|
|
18630
18627
|
created,
|
|
18631
18628
|
sessionToken
|
|
18632
18629
|
} = payload;
|
|
18633
|
-
setBrowserStorageItem(
|
|
18634
|
-
setBrowserStorageItem(CHATTER_CREATED_STORAGE_KEY, created, persistence);
|
|
18630
|
+
setBrowserStorageItem(CHATTER_TOKEN_STORAGE_KEY, chatter, persistence);
|
|
18631
|
+
setBrowserStorageItem(CHATTER_CREATED_STORAGE_KEY, created, persistence);
|
|
18635
18632
|
|
|
18636
|
-
if (
|
|
18633
|
+
if (sessionToken) {
|
|
18637
18634
|
setBrowserStorageItem(SESSION_AUTH_TOKEN_STORAGE_KEY, sessionToken, persistence);
|
|
18638
18635
|
}
|
|
18639
18636
|
}
|
|
@@ -18761,7 +18758,7 @@ class ChatFrame extends d {
|
|
|
18761
18758
|
const hostPageUrlParams = new (url_default())(window.location.href).searchParams;
|
|
18762
18759
|
const smsToken = hostPageUrlParams.get("adaSMSToken");
|
|
18763
18760
|
const queryParams = {
|
|
18764
|
-
embedVersion: "
|
|
18761
|
+
embedVersion: "8867424".slice(0, 7),
|
|
18765
18762
|
greeting,
|
|
18766
18763
|
language,
|
|
18767
18764
|
skipGreeting,
|
|
@@ -20976,7 +20973,7 @@ class Embed {
|
|
|
20976
20973
|
|
|
20977
20974
|
}
|
|
20978
20975
|
|
|
20979
|
-
_defineProperty(Embed, "embed2Version", "
|
|
20976
|
+
_defineProperty(Embed, "embed2Version", "8867424");
|
|
20980
20977
|
;// CONCATENATED MODULE: ./src/common/helpers/startup.ts
|
|
20981
20978
|
|
|
20982
20979
|
|