@vlprojects-chat/chat 0.18.1-LD-9027.1 → 0.18.1
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/index.mjs +5 -7
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -39141,7 +39141,7 @@ const vP = {
|
|
|
39141
39141
|
}, vce = () => {
|
|
39142
39142
|
const e = pe.useContext(D2);
|
|
39143
39143
|
return e ? e.chatSnackbarContainer : null;
|
|
39144
|
-
}, yce = "@vlprojects-chat/chat", bce = "vlprojects", wce = "0.18.
|
|
39144
|
+
}, yce = "@vlprojects-chat/chat", bce = "vlprojects", wce = "0.18.1-LD-9027.2", Sce = "vlprojects chat", Ece = "ISC", xce = "dist/index.d.ts", Cce = "./dist/index.mjs", Tce = "./dist/index.mjs", Oce = [
|
|
39145
39145
|
"dist"
|
|
39146
39146
|
], Rce = {
|
|
39147
39147
|
type: "git",
|
|
@@ -42268,7 +42268,7 @@ const Nle = (e) => {
|
|
|
42268
42268
|
t,
|
|
42269
42269
|
/* @__PURE__ */ h.jsxs("div", { className: a.buttonsHolder, children: [
|
|
42270
42270
|
i && s !== pp.Hidden && /* @__PURE__ */ h.jsx(Zn, { className: a.button, onClick: u, sx: { marginLeft: "auto" }, children: s === pp.Expand ? /* @__PURE__ */ h.jsx(Mle, {}) : /* @__PURE__ */ h.jsx(Nle, {}) }),
|
|
42271
|
-
!window.opener && /* @__PURE__ */ h.jsx(Zn, { className: a.button, onClick: l, "data-qa": "open-in-popup-button", children: /* @__PURE__ */ h.jsx(kle, {}) }),
|
|
42271
|
+
(o.showOpenInPopupButton || !window.opener) && /* @__PURE__ */ h.jsx(Zn, { className: a.button, onClick: l, "data-qa": "open-in-popup-button", children: /* @__PURE__ */ h.jsx(kle, {}) }),
|
|
42272
42272
|
o.showCloseButton && /* @__PURE__ */ h.jsx(
|
|
42273
42273
|
Zn,
|
|
42274
42274
|
{
|
|
@@ -65352,9 +65352,7 @@ const C1e = (e) => {
|
|
|
65352
65352
|
integrations: [oK()],
|
|
65353
65353
|
tracesSampleRate: 1
|
|
65354
65354
|
}), A.init();
|
|
65355
|
-
const R = Ure(), _ = R.appIdFromAttr || t || void 0 || void 0, B = R.apiUrlFromAttr || n || "https://api.livedigital.chat", K = R.channelIdFromAttr || r || void 0 || void 0;
|
|
65356
|
-
console.log("userTokenFromProps=", i);
|
|
65357
|
-
const F = i || one();
|
|
65355
|
+
const R = Ure(), _ = R.appIdFromAttr || t || void 0 || void 0, B = R.apiUrlFromAttr || n || "https://api.livedigital.chat", K = R.channelIdFromAttr || r || void 0 || void 0, F = i || one();
|
|
65358
65356
|
if (!_ || !B || !K || !F) {
|
|
65359
65357
|
const re = [
|
|
65360
65358
|
["No app id", !_],
|
|
@@ -65368,7 +65366,7 @@ const C1e = (e) => {
|
|
|
65368
65366
|
severity: "critical"
|
|
65369
65367
|
}), new Error(re);
|
|
65370
65368
|
}
|
|
65371
|
-
Qte(B), A.ui.setChannelId(K), A.ui.setParentChannelId(o || K), A.ui.setIsVisible(e || !1),
|
|
65369
|
+
Qte(B), A.ui.setChannelId(K), A.ui.setParentChannelId(o || K), A.ui.setIsVisible(e || !1), A.auth.setAccessToken(F), A.auth.setAppId(_), y && A.chat.setHostEventBus(y), C && A.chat.setDirectChatStartDateISOString(C), A.chat.setTabId(b);
|
|
65372
65370
|
const L = await rie(A, _);
|
|
65373
65371
|
L || d3({
|
|
65374
65372
|
message: "Settings fetch failed",
|
|
@@ -65421,7 +65419,7 @@ const C1e = (e) => {
|
|
|
65421
65419
|
i,
|
|
65422
65420
|
a
|
|
65423
65421
|
]), yt(() => {
|
|
65424
|
-
A.settings.setShowCloseButton(c), A.settings.setShowHeader(l), A.settings.setShowMessageInput(u), A.settings.setShowOpenInPopupButton(!window.opener), A.settings.setShowPolls(d);
|
|
65422
|
+
A.settings.setShowCloseButton(c), A.settings.setShowHeader(l), A.settings.setShowMessageInput(u), A.settings.setShowOpenInPopupButton(p || !window.opener), A.settings.setShowPolls(d);
|
|
65425
65423
|
}, [
|
|
65426
65424
|
c,
|
|
65427
65425
|
l,
|