@ada-support/embed2 1.0.60 → 1.0.61
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,3 +1,3 @@
|
|
|
1
|
-
import { StoreState } from "common/types/store-state";
|
|
1
|
+
import type { StoreState } from "common/types/store-state";
|
|
2
2
|
export declare const isRTLLanguage: (language: StoreState["language"] | undefined) => boolean;
|
|
3
3
|
export declare const isRTL: (client: StoreState["client"] | undefined, language: StoreState["language"] | undefined) => boolean;
|
package/dist/npm-entry/index.js
CHANGED
|
@@ -8788,7 +8788,7 @@ var client = new error_tracker_BrowserClient({
|
|
|
8788
8788
|
return event;
|
|
8789
8789
|
},
|
|
8790
8790
|
environment: "production",
|
|
8791
|
-
release: "1.0.
|
|
8791
|
+
release: "1.0.61-db21d26",
|
|
8792
8792
|
sampleRate: 0.25,
|
|
8793
8793
|
autoSessionTracking: false,
|
|
8794
8794
|
// Integrations don't seem to work with Sentry: https://github.com/getsentry/sentry-javascript/issues/2541
|
|
@@ -9488,7 +9488,7 @@ function getEmbedURL(_ref) {
|
|
|
9488
9488
|
polyfillVersionString = "legacy";
|
|
9489
9489
|
}
|
|
9490
9490
|
|
|
9491
|
-
return concat_default()(_context5 = concat_default()(_context6 = concat_default()(_context7 = "".concat(host, "/embed/")).call(_context7, polyfillVersionString, "/")).call(_context6, frameName, "/")).call(_context5, "
|
|
9491
|
+
return concat_default()(_context5 = concat_default()(_context6 = concat_default()(_context7 = "".concat(host, "/embed/")).call(_context7, polyfillVersionString, "/")).call(_context6, frameName, "/")).call(_context5, "db21d26", "/index.html");
|
|
9492
9492
|
}
|
|
9493
9493
|
/**
|
|
9494
9494
|
* Generate the Chat / API URL
|
|
@@ -11030,7 +11030,7 @@ var isRTLLanguage = function isRTLLanguage(language) {
|
|
|
11030
11030
|
};
|
|
11031
11031
|
var isRTL = function isRTL(client, language) {
|
|
11032
11032
|
var rtlLanguageBool = isRTLLanguage(language) || isRTLLanguage(getBrowserLanguage());
|
|
11033
|
-
var featureFlagsBool = (client === null || client === void 0 ? void 0 : client.features.chat_ui_v2) &&
|
|
11033
|
+
var featureFlagsBool = (client === null || client === void 0 ? void 0 : client.features.chat_ui_v2) && client.features.translations;
|
|
11034
11034
|
return featureFlagsBool && rtlLanguageBool || false;
|
|
11035
11035
|
};
|
|
11036
11036
|
;// CONCATENATED MODULE: ./src/common/helpers/getAlignment.ts
|
|
@@ -14368,7 +14368,7 @@ window.__AdaEmbedConstructor = Embed;
|
|
|
14368
14368
|
/* harmony export */ });
|
|
14369
14369
|
var isModern = new RegExp("((CPU[ +]OS|iPhone[ +]OS|CPU[ +]iPhone|CPU IPhone OS)[ +]+(15|(1[6-9]|[2-9]\\d|\\d{3,}))[_.]\\d+(?:[_.]\\d+)?)|((Chromium|Chrome)\\/(97|(9[8-9]|\\d{3,}))\\.\\d+(?:\\.\\d+)?)|(Version\\/(15|(1[6-9]|[2-9]\\d|\\d{3,}))\\.\\d+(?:\\.\\d+)? Safari\\/)|(Firefox\\/(96|(9[7-9]|\\d{3,}))\\.\\d+\\.\\d+)|(Firefox\\/(96|(9[7-9]|\\d{3,}))\\.\\d+(pre|[ab]\\d+[a-z]*)?)").test(navigator.userAgent);
|
|
14370
14370
|
var isProduction = "production" === "production";
|
|
14371
|
-
var embed2Version = "
|
|
14371
|
+
var embed2Version = "db21d26";
|
|
14372
14372
|
|
|
14373
14373
|
/***/ }),
|
|
14374
14374
|
|
|
@@ -14714,9 +14714,9 @@ function _log() {
|
|
|
14714
14714
|
service: "embed",
|
|
14715
14715
|
env: "production",
|
|
14716
14716
|
embedVersion: 2,
|
|
14717
|
-
version: "1.0.
|
|
14717
|
+
version: "1.0.61",
|
|
14718
14718
|
isNpm: true,
|
|
14719
|
-
commitHash: "
|
|
14719
|
+
commitHash: "db21d26"
|
|
14720
14720
|
}))
|
|
14721
14721
|
});
|
|
14722
14722
|
|
|
@@ -25657,7 +25657,7 @@ function _loadEmbed() {
|
|
|
25657
25657
|
polyfillVersionString = "legacy";
|
|
25658
25658
|
}
|
|
25659
25659
|
|
|
25660
|
-
embedScriptSource = concat_default()(_context16 = concat_default()(_context17 = "".concat(host, "/embed/")).call(_context17, polyfillVersionString, "/client/")).call(_context16, "
|
|
25660
|
+
embedScriptSource = concat_default()(_context16 = concat_default()(_context17 = "".concat(host, "/embed/")).call(_context17, polyfillVersionString, "/client/")).call(_context16, "db21d26", "/index.js");
|
|
25661
25661
|
}
|
|
25662
25662
|
|
|
25663
25663
|
clientScriptExists = Boolean( true || // The client script is bundled with npm module
|