@streamlayer/react 1.1.6 → 1.2.0
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/lib/app/provider.d.ts +3 -2
- package/lib/app/useStreamLayerApp.d.ts +3 -2
- package/lib/cjs/advertisement.js +1 -1
- package/lib/cjs/index2.js +20 -20
- package/lib/cjs/useStreamLayerApp2.js +11 -11
- package/lib/dist/cjs/masters.js +49 -49
- package/lib/dist/es/masters.js +4848 -4771
- package/lib/es/advertisement.js +6 -6
- package/lib/es/index2.js +286 -284
- package/lib/es/useStreamLayerApp2.js +2039 -1964
- package/package.json +13 -13
package/lib/es/advertisement.js
CHANGED
|
@@ -126,7 +126,7 @@ const Z = /* @__PURE__ */ s("div")({
|
|
|
126
126
|
class: "t3vxzaw",
|
|
127
127
|
propsAsIs: !1
|
|
128
128
|
}), je = "h10f3u0j", q = ({ promotion: e, promotionId: t, onClose: i }) => {
|
|
129
|
-
var a, n, l, r, p, c, u, I, f, $, S, M, B, E, k, L, N, C, x, T, _, j, P,
|
|
129
|
+
var a, n, l, r, p, c, u, I, f, $, S, M, B, E, k, L, N, C, x, T, _, j, P, w, O, R;
|
|
130
130
|
const b = e.type === m.INGAME_IAB11_LBAR || e.type === m.INGAME_IAB11, h = ((a = e.sponsor) == null ? void 0 : a.logo) && e.logoMode === v.CENTER;
|
|
131
131
|
return /* @__PURE__ */ d(be, { className: "PromoOverlay", children: [
|
|
132
132
|
/* @__PURE__ */ d(he, { children: [
|
|
@@ -180,13 +180,13 @@ const Z = /* @__PURE__ */ s("div")({
|
|
|
180
180
|
href: (T = e.banner) == null ? void 0 : T.url,
|
|
181
181
|
style: {
|
|
182
182
|
backgroundColor: ((j = (_ = e.banner) == null ? void 0 : _.ctaButton) == null ? void 0 : j.color) || "#009dc4",
|
|
183
|
-
color: ((
|
|
183
|
+
color: ((w = (P = e.banner) == null ? void 0 : P.ctaButton) == null ? void 0 : w.textColor) || "#fff"
|
|
184
184
|
},
|
|
185
185
|
"data-analytics": "button",
|
|
186
186
|
"data-promo-id": t,
|
|
187
187
|
"data-promo-type": e.type,
|
|
188
188
|
target: "_blank",
|
|
189
|
-
children: (R = (
|
|
189
|
+
children: (R = (O = e.banner) == null ? void 0 : O.ctaButton) == null ? void 0 : R.label
|
|
190
190
|
}
|
|
191
191
|
) })
|
|
192
192
|
] });
|
|
@@ -194,7 +194,7 @@ const Z = /* @__PURE__ */ s("div")({
|
|
|
194
194
|
name: "SidebarContainer",
|
|
195
195
|
class: "s1abskp8",
|
|
196
196
|
propsAsIs: !1
|
|
197
|
-
}),
|
|
197
|
+
}), we = ({
|
|
198
198
|
children: e,
|
|
199
199
|
direction: t,
|
|
200
200
|
style: i,
|
|
@@ -208,12 +208,12 @@ const Z = /* @__PURE__ */ s("div")({
|
|
|
208
208
|
children: /* @__PURE__ */ o(Pe, {
|
|
209
209
|
children: e
|
|
210
210
|
})
|
|
211
|
-
}),
|
|
211
|
+
}), Oe = (e) => (e == null ? void 0 : e.type) === m.INGAME_IAB11_LBAR || (e == null ? void 0 : e.type) === m.INGAME_IAB21_LBAR, Re = (e) => (e == null ? void 0 : e.type) === m.INGAME_IAB11 || (e == null ? void 0 : e.type) === m.INGAME_IAB21, Ge = ({ advertisement: e, layoutMode: t = "side-by-side", sidebar: i, banner: a }) => {
|
|
212
212
|
const n = A(e.data);
|
|
213
213
|
return !n.data && n.loading ? null : n.error ? /* @__PURE__ */ d("div", { children: [
|
|
214
214
|
"error ",
|
|
215
215
|
/* @__PURE__ */ o("button", { onClick: e.close, children: "close" })
|
|
216
|
-
] }) : n.data ? !i && !a && Re(n.data) ? /* @__PURE__ */ o(ve, { children: /* @__PURE__ */ o(q, { promotionId: e.id, promotion: n.data, onClose: e.close }) }) : i &&
|
|
216
|
+
] }) : n.data ? !i && !a && Re(n.data) ? /* @__PURE__ */ o(ve, { children: /* @__PURE__ */ o(q, { promotionId: e.id, promotion: n.data, onClose: e.close }) }) : i && Oe(n.data) ? /* @__PURE__ */ o(we, { direction: i, hiding: e.hiding, children: /* @__PURE__ */ o(q, { promotionId: e.id, promotion: n.data, onClose: e.close }) }) : a ? /* @__PURE__ */ o(ue, { promotionId: e.id, hiding: e.hiding, promotion: n.data, direction: a }) : null : /* @__PURE__ */ d("div", { children: [
|
|
217
217
|
"empty promo ",
|
|
218
218
|
/* @__PURE__ */ o("button", { onClick: e.close, children: "close" })
|
|
219
219
|
] });
|