@ada-support/embed2 1.1.11 → 1.1.14
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.
|
@@ -49,6 +49,7 @@ export declare class ChatFrame extends Component<ChatFrameProps, ChatFrameState>
|
|
|
49
49
|
documentBodyRight: string;
|
|
50
50
|
channel?: FrameChannel;
|
|
51
51
|
chatRenderTimeout?: number;
|
|
52
|
+
url: string;
|
|
52
53
|
state: ChatFrameState;
|
|
53
54
|
componentDidMount(): void;
|
|
54
55
|
componentDidUpdate(prevProps: ChatFrameProps): void;
|
package/dist/npm-entry/index.js
CHANGED
|
@@ -8798,7 +8798,7 @@ var client = new error_tracker_BrowserClient({
|
|
|
8798
8798
|
return event;
|
|
8799
8799
|
},
|
|
8800
8800
|
environment: "production",
|
|
8801
|
-
release: "1.1.
|
|
8801
|
+
release: "1.1.14-63f5979",
|
|
8802
8802
|
sampleRate: 0.25,
|
|
8803
8803
|
autoSessionTracking: false,
|
|
8804
8804
|
// Integrations don't seem to work with Sentry: https://github.com/getsentry/sentry-javascript/issues/2541
|
|
@@ -9500,7 +9500,7 @@ function getEmbedURL(_ref) {
|
|
|
9500
9500
|
polyfillVersionString = "legacy";
|
|
9501
9501
|
}
|
|
9502
9502
|
|
|
9503
|
-
return concat_default()(_context5 = concat_default()(_context6 = concat_default()(_context7 = "".concat(host, "/embed/")).call(_context7, polyfillVersionString, "/")).call(_context6, frameName, "/")).call(_context5, "
|
|
9503
|
+
return concat_default()(_context5 = concat_default()(_context6 = concat_default()(_context7 = "".concat(host, "/embed/")).call(_context7, polyfillVersionString, "/")).call(_context6, frameName, "/")).call(_context5, "63f5979", "/index.html");
|
|
9504
9504
|
}
|
|
9505
9505
|
/**
|
|
9506
9506
|
* Generate the Chat / API URL
|
|
@@ -11642,6 +11642,8 @@ var ChatFrame = /*#__PURE__*/function (_Component) {
|
|
|
11642
11642
|
|
|
11643
11643
|
(0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "chatRenderTimeout", void 0);
|
|
11644
11644
|
|
|
11645
|
+
(0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "url", _this.getIframeSrc());
|
|
11646
|
+
|
|
11645
11647
|
(0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "state", {
|
|
11646
11648
|
isMounted: false,
|
|
11647
11649
|
closeTransitionTime: 200
|
|
@@ -11733,7 +11735,7 @@ var ChatFrame = /*#__PURE__*/function (_Component) {
|
|
|
11733
11735
|
cluster: cluster,
|
|
11734
11736
|
domain: domain,
|
|
11735
11737
|
qp: {
|
|
11736
|
-
embedVersion: slice_default()("
|
|
11738
|
+
embedVersion: slice_default()("63f5979").call("63f5979", 0, 7),
|
|
11737
11739
|
greeting: greeting,
|
|
11738
11740
|
language: language,
|
|
11739
11741
|
skipGreeting: skipGreeting,
|
|
@@ -12353,7 +12355,7 @@ var ChatFrame = /*#__PURE__*/function (_Component) {
|
|
|
12353
12355
|
};
|
|
12354
12356
|
|
|
12355
12357
|
return v("iframe", {
|
|
12356
|
-
src: this.
|
|
12358
|
+
src: this.url,
|
|
12357
12359
|
scrolling: "no",
|
|
12358
12360
|
style: this.chooseStyles,
|
|
12359
12361
|
frameBorder: "0",
|
|
@@ -13240,7 +13242,8 @@ var Container = /*#__PURE__*/function (_Component) {
|
|
|
13240
13242
|
greeting: greeting,
|
|
13241
13243
|
language: language,
|
|
13242
13244
|
metaFields: _newMetaFields,
|
|
13243
|
-
sensitiveMetaFields: _sensitiveMetaFields
|
|
13245
|
+
sensitiveMetaFields: _sensitiveMetaFields,
|
|
13246
|
+
chatDimensions: undefined
|
|
13244
13247
|
};
|
|
13245
13248
|
|
|
13246
13249
|
if (!resetChatHistory) {
|
|
@@ -14402,7 +14405,7 @@ window.__AdaEmbedConstructor = Embed;
|
|
|
14402
14405
|
/* harmony export */ });
|
|
14403
14406
|
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)\\/(100|(10[1-9]|1[1-9]\\d|[2-9]\\d\\d|\\d{4,}))\\.\\d+(?:\\.\\d+)?)|(Version\\/(15|(1[6-9]|[2-9]\\d|\\d{3,}))\\.\\d+(?:\\.\\d+)? Safari\\/)|(Firefox\\/(99|([1-9]\\d\\d|\\d{4,}))\\.\\d+\\.\\d+)|(Firefox\\/(99|([1-9]\\d\\d|\\d{4,}))\\.\\d+(pre|[ab]\\d+[a-z]*)?)").test(navigator.userAgent);
|
|
14404
14407
|
var isProduction = "production" === "production";
|
|
14405
|
-
var embed2Version = "
|
|
14408
|
+
var embed2Version = "63f5979";
|
|
14406
14409
|
|
|
14407
14410
|
/***/ }),
|
|
14408
14411
|
|
|
@@ -14747,9 +14750,9 @@ function _log() {
|
|
|
14747
14750
|
service: "embed",
|
|
14748
14751
|
env: "production",
|
|
14749
14752
|
embedVersion: 2,
|
|
14750
|
-
version: "1.1.
|
|
14753
|
+
version: "1.1.14",
|
|
14751
14754
|
isNpm: true,
|
|
14752
|
-
commitHash: "
|
|
14755
|
+
commitHash: "63f5979"
|
|
14753
14756
|
}))
|
|
14754
14757
|
});
|
|
14755
14758
|
|
|
@@ -25690,7 +25693,7 @@ function _loadClientChunk() {
|
|
|
25690
25693
|
polyfillVersionString = "legacy";
|
|
25691
25694
|
}
|
|
25692
25695
|
|
|
25693
|
-
clientScriptSource = concat_default()(_context17 = concat_default()(_context18 = "".concat(host, "/embed/")).call(_context18, polyfillVersionString, "/client/")).call(_context17, "
|
|
25696
|
+
clientScriptSource = concat_default()(_context17 = concat_default()(_context18 = "".concat(host, "/embed/")).call(_context18, polyfillVersionString, "/client/")).call(_context17, "63f5979", "/index.js");
|
|
25694
25697
|
} // `window.__AdaEmbedConstructor` gets created in the "client" bundle
|
|
25695
25698
|
|
|
25696
25699
|
|