@streamlayer/react 1.16.0 → 1.17.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/lib/cjs/advertisement.js +30 -30
- package/lib/cjs/masters2.js +4 -4
- package/lib/cjs/points.js +1 -1
- package/lib/cjs/provider.js +1 -1
- package/lib/cjs/useStreamLayerApp2.js +12 -12
- package/lib/classic/cjs/advertisement.js +30 -30
- package/lib/classic/cjs/bet-pack.js +5 -1
- package/lib/classic/cjs/notification.js +1 -1
- package/lib/classic/cjs/points.js +1 -1
- package/lib/classic/cjs/provider.js +14 -30
- package/lib/classic/cjs/useStreamLayerApp2.js +12 -12
- package/lib/classic/es/advertisement.js +2064 -2062
- package/lib/classic/es/bet-pack.js +3431 -12
- package/lib/classic/es/index.js +1 -1
- package/lib/classic/es/notification.js +19 -19
- package/lib/classic/es/points.js +3 -3
- package/lib/classic/es/provider.js +3662 -3739
- package/lib/classic/es/useStreamLayerApp2.js +2688 -2688
- package/lib/classic/index.d.ts +1 -1
- package/lib/dist/cjs/masters.js +30 -30
- package/lib/dist/es/masters.js +7747 -7747
- package/lib/dist/style.css +1 -1
- package/lib/es/advertisement.js +2064 -2062
- package/lib/es/index2.js +1 -1
- package/lib/es/masters2.js +24 -24
- package/lib/es/points.js +3 -3
- package/lib/es/provider.js +7 -7
- package/lib/es/useStreamLayerApp2.js +2688 -2688
- package/lib/index.d.ts +1 -1
- package/lib/style.css +1 -1
- package/package.json +16 -16
- package/lib/classic/cjs/gamification-feature2.js +0 -1
- package/lib/classic/cjs/index2.js +0 -5
- package/lib/classic/cjs/masters.js +0 -1
- package/lib/classic/cjs/masters2.js +0 -13
- package/lib/classic/es/gamification-feature2.js +0 -4
- package/lib/classic/es/index2.js +0 -3426
- package/lib/classic/es/masters.js +0 -9
- package/lib/classic/es/masters2.js +0 -868
- package/lib/classic/style.css +0 -1
package/lib/classic/es/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { r as m, S, t as o, h as i, u as s, b as y, o as L } from "./provider.js";
|
|
2
2
|
import "react/jsx-runtime";
|
|
3
3
|
import "react";
|
|
4
4
|
import { StreamLayerSDKNotification as p, StreamLayerSDKNotificationUI as u } from "./notification.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { s, k as u,
|
|
1
|
+
import { s, k as u, D as L, A as O, x as R, p as B, q as P, y as Q, d as U, a as V, e as F, N as k, u as W, b as G, o as K, h as Y } from "./provider.js";
|
|
2
2
|
import { jsxs as c, jsx as e } from "react/jsx-runtime";
|
|
3
|
-
import { useState as y, useCallback as
|
|
4
|
-
import { j as m, Q as A, k as
|
|
3
|
+
import { useState as y, useCallback as _, useMemo as E, useEffect as x } from "react";
|
|
4
|
+
import { j as m, Q as A, k as H, S as J } from "./useStreamLayerApp2.js";
|
|
5
5
|
const $ = /* @__PURE__ */ s("div")({
|
|
6
6
|
name: "Media",
|
|
7
7
|
class: "m1bcvojl",
|
|
8
8
|
propsAsIs: !1
|
|
9
|
-
}),
|
|
9
|
+
}), X = () => $, Z = /* @__PURE__ */ s(X())({
|
|
10
10
|
name: "MediaImgBottom",
|
|
11
11
|
class: "m58gin0",
|
|
12
12
|
propsAsIs: !0
|
|
@@ -35,7 +35,7 @@ const $ = /* @__PURE__ */ s("div")({
|
|
|
35
35
|
[m.NONE]: N,
|
|
36
36
|
[m.ROUNDED]: ne,
|
|
37
37
|
[m.CENTERED]: ie,
|
|
38
|
-
[m.TRANSPARENT]:
|
|
38
|
+
[m.TRANSPARENT]: Z
|
|
39
39
|
}, b = ({
|
|
40
40
|
src: t,
|
|
41
41
|
imageMode: i = m.UNSET,
|
|
@@ -117,7 +117,7 @@ const $ = /* @__PURE__ */ s("div")({
|
|
|
117
117
|
{
|
|
118
118
|
questionTypeData: o,
|
|
119
119
|
questionType: i,
|
|
120
|
-
questionStatus:
|
|
120
|
+
questionStatus: H.UNSET
|
|
121
121
|
}
|
|
122
122
|
),
|
|
123
123
|
t && /* @__PURE__ */ e(pe, { children: t })
|
|
@@ -258,7 +258,7 @@ const $ = /* @__PURE__ */ s("div")({
|
|
|
258
258
|
var I, v;
|
|
259
259
|
d((v = (I = p == null ? void 0 : p[0]) == null ? void 0 : I.contentRect) == null ? void 0 : v.width);
|
|
260
260
|
});
|
|
261
|
-
})), r =
|
|
261
|
+
})), r = _((p) => {
|
|
262
262
|
p || l.disconnect(), l.observe(p);
|
|
263
263
|
}, [l]);
|
|
264
264
|
return E(() => () => {
|
|
@@ -297,31 +297,31 @@ const $ = /* @__PURE__ */ s("div")({
|
|
|
297
297
|
name: "Line1",
|
|
298
298
|
class: "le78kvg",
|
|
299
299
|
propsAsIs: !0
|
|
300
|
-
}),
|
|
300
|
+
}), Ke = () => g, Ye = /* @__PURE__ */ s(Ke())({
|
|
301
301
|
name: "Line2",
|
|
302
302
|
class: "l1o7966d",
|
|
303
303
|
propsAsIs: !0
|
|
304
|
-
}),
|
|
304
|
+
}), _e = () => g, He = /* @__PURE__ */ s(_e())({
|
|
305
305
|
name: "Line3",
|
|
306
306
|
class: "lu9lyxq",
|
|
307
307
|
propsAsIs: !0
|
|
308
|
-
}),
|
|
308
|
+
}), Je = () => /* @__PURE__ */ c(Fe, {
|
|
309
309
|
children: [/* @__PURE__ */ e(Ge, {
|
|
310
310
|
children: /* @__PURE__ */ e("div", {})
|
|
311
|
-
}), /* @__PURE__ */ e(
|
|
311
|
+
}), /* @__PURE__ */ e(Ye, {
|
|
312
312
|
children: /* @__PURE__ */ e("div", {})
|
|
313
|
-
}), /* @__PURE__ */ e(
|
|
313
|
+
}), /* @__PURE__ */ e(He, {
|
|
314
314
|
children: /* @__PURE__ */ e("div", {})
|
|
315
315
|
})]
|
|
316
|
-
}),
|
|
316
|
+
}), Xe = /* @__PURE__ */ s("div")({
|
|
317
317
|
name: "Container",
|
|
318
318
|
class: "c10jy6zf",
|
|
319
319
|
propsAsIs: !1
|
|
320
|
-
}),
|
|
320
|
+
}), Ze = () => u, es = /* @__PURE__ */ s(Ze())({
|
|
321
321
|
name: "CheckIcon",
|
|
322
322
|
class: "c1c7scay",
|
|
323
323
|
propsAsIs: !0
|
|
324
|
-
}), ss = () => /* @__PURE__ */ c(
|
|
324
|
+
}), ss = () => /* @__PURE__ */ c(Xe, {
|
|
325
325
|
children: [/* @__PURE__ */ e(es, {
|
|
326
326
|
name: "icon-check"
|
|
327
327
|
}), " Prediction results are in!"]
|
|
@@ -429,7 +429,7 @@ const $ = /* @__PURE__ */ s("div")({
|
|
|
429
429
|
return /* @__PURE__ */ e(w, { children: /* @__PURE__ */ e(q, { children: /* @__PURE__ */ e(ss, {}) }) });
|
|
430
430
|
let p = "pending";
|
|
431
431
|
return (r === 3 || r === 4) && (p = n ? "correct" : "incorrect"), /* @__PURE__ */ e(w, { "data-a": "intr", onClick: () => i == null ? void 0 : i(), children: /* @__PURE__ */ c(q, { children: [
|
|
432
|
-
r !== 1 && /* @__PURE__ */ e(
|
|
432
|
+
r !== 1 && /* @__PURE__ */ e(Je, {}, r),
|
|
433
433
|
/* @__PURE__ */ c(Ve, { state: p, step: r, answer: (a == null ? void 0 : a.title) || "unknown", children: [
|
|
434
434
|
r === 2 && /* @__PURE__ */ e(os, { title: l || "unknown" }),
|
|
435
435
|
r === 3 && n && /* @__PURE__ */ e(ls, {}),
|
|
@@ -458,7 +458,7 @@ const $ = /* @__PURE__ */ s("div")({
|
|
|
458
458
|
class: "n1i4h28u",
|
|
459
459
|
propsAsIs: !1
|
|
460
460
|
}), ys = (t) => /* @__PURE__ */ e($s, { children: /* @__PURE__ */ e(As, { ...t }) }), fs = ({ sdk: t }) => {
|
|
461
|
-
const [i] = y(t.getNotificationsStore()), o = V(i), a = t.getFeature(
|
|
461
|
+
const [i] = y(t.getNotificationsStore()), o = V(i), a = t.getFeature(J.GAMES), n = E(() => t.getActiveNotification(), [t, o]);
|
|
462
462
|
return x(() => {
|
|
463
463
|
n && F.emit("notification", {
|
|
464
464
|
action: "rendered",
|
|
@@ -476,8 +476,8 @@ const $ = /* @__PURE__ */ s("div")({
|
|
|
476
476
|
}
|
|
477
477
|
) : null : n && n.type === k.ONBOARDING ? n.data.onboarding ? /* @__PURE__ */ e(je, { open: a == null ? void 0 : a.openFeature, close: n.close, ...n.data.onboarding }) : null : n && /* @__PURE__ */ e(Te, { ...n.data, action: n.action });
|
|
478
478
|
}, bs = ({ theme: t }) => {
|
|
479
|
-
const i = W(), o = G(), a =
|
|
480
|
-
return i && (a.appNotification || a.onboardingNotification) ? a.app && !a.onboardingNotification ? null : /* @__PURE__ */ e("div", { className: "StreamLayerSDK", children: /* @__PURE__ */ e(
|
|
479
|
+
const i = W(), o = G(), a = K();
|
|
480
|
+
return i && (a.appNotification || a.onboardingNotification) ? a.app && !a.onboardingNotification ? null : /* @__PURE__ */ e("div", { className: "StreamLayerSDK", children: /* @__PURE__ */ e(Y, { customTheme: t ?? o.theme, themeMode: o.themeMode, children: /* @__PURE__ */ e(fs, { sdk: i }) }) }) : null;
|
|
481
481
|
};
|
|
482
482
|
export {
|
|
483
483
|
bs as StreamLayerSDKNotification,
|
package/lib/classic/es/points.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as l, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { useState as u, useEffect as d } from "react";
|
|
3
|
-
import { s as a, k as
|
|
3
|
+
import { s as a, k as y, m as h, d as S, a as f, F as p, e as r, u as v, b as k, h as g } from "./provider.js";
|
|
4
4
|
import { S as b } from "./useStreamLayerApp2.js";
|
|
5
5
|
const A = /* @__PURE__ */ a("div")({
|
|
6
6
|
name: "PointsContainer",
|
|
@@ -10,7 +10,7 @@ const A = /* @__PURE__ */ a("div")({
|
|
|
10
10
|
name: "PointsIcon",
|
|
11
11
|
class: "p1gqe4lh",
|
|
12
12
|
propsAsIs: !1
|
|
13
|
-
}), P = () =>
|
|
13
|
+
}), P = () => y, T = /* @__PURE__ */ a(P())({
|
|
14
14
|
name: "PointsSvg",
|
|
15
15
|
class: "p15syg2y",
|
|
16
16
|
propsAsIs: !0
|
|
@@ -26,7 +26,7 @@ const A = /* @__PURE__ */ a("div")({
|
|
|
26
26
|
name: "PointsValue",
|
|
27
27
|
class: "prj9b3v",
|
|
28
28
|
propsAsIs: !1
|
|
29
|
-
}), C = ({ points: s, onClick: e }) => /* @__PURE__ */ l(A, { className:
|
|
29
|
+
}), C = ({ points: s, onClick: e }) => /* @__PURE__ */ l(A, { className: h, onClick: e, children: [
|
|
30
30
|
/* @__PURE__ */ t(I, { children: /* @__PURE__ */ t(T, { name: "icon-trophy-solid" }) }),
|
|
31
31
|
/* @__PURE__ */ l(F, { children: [
|
|
32
32
|
/* @__PURE__ */ t(L, { children: "Total points" }),
|