@streamlayer/react 0.38.0 → 0.39.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/app/provider.d.ts +2 -1
- package/lib/cjs/gamification-feature.js +1 -1
- package/lib/cjs/index2.js +5 -3
- package/lib/cjs/masters2.js +41 -41
- package/lib/cjs/useStreamLayerApp.js +1 -1
- package/lib/dist/cjs/gamification-feature.js +1 -1
- package/lib/dist/cjs/masters.js +59 -57
- package/lib/dist/es/gamification-feature.js +5 -5
- package/lib/dist/es/index.js +1 -1
- package/lib/dist/es/masters.js +11815 -11712
- package/lib/dist/index.d.ts +29 -24
- package/lib/dist/style.css +1 -1
- package/lib/es/gamification-feature.js +85 -85
- package/lib/es/index2.js +30 -27
- package/lib/es/masters.js +3 -3
- package/lib/es/masters2.js +6326 -6254
- package/lib/es/useStreamLayerApp.js +1 -1
- package/lib/style.css +1 -1
- package/package.json +12 -12
|
@@ -2,7 +2,7 @@ import { jsxs as r, jsx as s, Fragment as x } from "react/jsx-runtime";
|
|
|
2
2
|
import { s as t, c as A, d as ce } from "./useSdkFeature.js";
|
|
3
3
|
import { useStore as S } from "@nanostores/react";
|
|
4
4
|
import { useState as E, useLayoutEffect as ye, useCallback as B, useEffect as ee, useMemo as N, PureComponent as Re, useTransition as we } from "react";
|
|
5
|
-
import { o as de, I as pe, s as ue, c as
|
|
5
|
+
import { o as de, I as pe, s as ue, c as ke, H as Te, G as me, F as xe, h as Se, a as qe, p as Ee, C as Ne, n as he, m as De, b as Le, l as Ve, d as Pe, e as Oe, f as Qe } from "./masters2.js";
|
|
6
6
|
import { QuestionType as m, QuestionStatus as D, QuestionImages as j, PickHistoryStatus as F } from "@streamlayer/sdk-web-types";
|
|
7
7
|
import "react-countup";
|
|
8
8
|
import { CountdownCircleTimer as Me } from "react-countdown-circle-timer";
|
|
@@ -29,11 +29,11 @@ const je = /* @__PURE__ */ t("div")({
|
|
|
29
29
|
name: "QuestionTypeTitle",
|
|
30
30
|
class: "qss5f0e",
|
|
31
31
|
propsAsIs: !1
|
|
32
|
-
}),
|
|
32
|
+
}), He = /* @__PURE__ */ t("div")({
|
|
33
33
|
name: "CloseIconWrap",
|
|
34
34
|
class: "c1ao1jtv",
|
|
35
35
|
propsAsIs: !1
|
|
36
|
-
}),
|
|
36
|
+
}), We = () => A, Ze = /* @__PURE__ */ t(We())({
|
|
37
37
|
name: "CloseIcon",
|
|
38
38
|
class: "cvsl7l3",
|
|
39
39
|
propsAsIs: !0
|
|
@@ -51,7 +51,7 @@ const je = /* @__PURE__ */ t("div")({
|
|
|
51
51
|
),
|
|
52
52
|
(i == null ? void 0 : i.label) && /* @__PURE__ */ s(Fe, { children: i.label })
|
|
53
53
|
] }),
|
|
54
|
-
/* @__PURE__ */ s(
|
|
54
|
+
/* @__PURE__ */ s(He, { onClick: n, children: /* @__PURE__ */ s(Ze, { name: "icon-cross" }) })
|
|
55
55
|
] });
|
|
56
56
|
}, Ye = /* @__PURE__ */ t("div")({
|
|
57
57
|
name: "Container",
|
|
@@ -80,7 +80,7 @@ const je = /* @__PURE__ */ t("div")({
|
|
|
80
80
|
name: "Title",
|
|
81
81
|
class: "t8s05oq",
|
|
82
82
|
propsAsIs: !1
|
|
83
|
-
}),
|
|
83
|
+
}), H = ({ indicator: e, title: n }) => /* @__PURE__ */ r(Xe, { children: [
|
|
84
84
|
/* @__PURE__ */ s(Je, { children: e }),
|
|
85
85
|
/* @__PURE__ */ s(es, { children: n })
|
|
86
86
|
] }), ss = /* @__PURE__ */ t("div")({
|
|
@@ -193,10 +193,10 @@ const je = /* @__PURE__ */ t("div")({
|
|
|
193
193
|
/* @__PURE__ */ s(te, { indicator: a || 0, title: "Global rank" })
|
|
194
194
|
] }),
|
|
195
195
|
/* @__PURE__ */ r(Is, { children: [
|
|
196
|
-
/* @__PURE__ */ s(
|
|
197
|
-
/* @__PURE__ */ s(
|
|
198
|
-
/* @__PURE__ */ s(
|
|
199
|
-
/* @__PURE__ */ s(
|
|
196
|
+
/* @__PURE__ */ s(H, { indicator: p || 0, title: "Win streak" }),
|
|
197
|
+
/* @__PURE__ */ s(H, { indicator: c || 0, title: "Correct" }),
|
|
198
|
+
/* @__PURE__ */ s(H, { indicator: l || 0, title: "Incorrect" }),
|
|
199
|
+
/* @__PURE__ */ s(H, { indicator: `${u || 0}%`, title: "Succ. rate" })
|
|
200
200
|
] })
|
|
201
201
|
] })
|
|
202
202
|
] }), As = /* @__PURE__ */ t("div")({
|
|
@@ -223,11 +223,11 @@ const je = /* @__PURE__ */ t("div")({
|
|
|
223
223
|
name: "Description",
|
|
224
224
|
class: "dlaj9xp",
|
|
225
225
|
propsAsIs: !1
|
|
226
|
-
}),
|
|
226
|
+
}), ks = ({ title: e, description: n }) => /* @__PURE__ */ r(ys, { children: [
|
|
227
227
|
/* @__PURE__ */ s(A, { name: "icon-check-circle" }),
|
|
228
228
|
/* @__PURE__ */ s(Rs, { children: e }),
|
|
229
229
|
/* @__PURE__ */ s(ws, { children: n })
|
|
230
|
-
] }),
|
|
230
|
+
] }), Ts = /* @__PURE__ */ t("div")({
|
|
231
231
|
name: "Container",
|
|
232
232
|
class: "c16sbdnm",
|
|
233
233
|
propsAsIs: !1
|
|
@@ -239,7 +239,7 @@ const je = /* @__PURE__ */ t("div")({
|
|
|
239
239
|
name: "FeedbackIconWrap",
|
|
240
240
|
class: "f1g20ja7",
|
|
241
241
|
propsAsIs: !1
|
|
242
|
-
}),
|
|
242
|
+
}), W = /* @__PURE__ */ t("div")({
|
|
243
243
|
name: "FeedbackHeader",
|
|
244
244
|
class: "f455ozj",
|
|
245
245
|
propsAsIs: !1
|
|
@@ -269,29 +269,29 @@ const je = /* @__PURE__ */ t("div")({
|
|
|
269
269
|
enteredAnActiveQuestion: h,
|
|
270
270
|
marketClosed: C
|
|
271
271
|
}) => {
|
|
272
|
-
const I = o && (i === m.TRIVIA || i === m.PREDICTION) && d && p !== D.RESOLVED, f = i === m.PREDICTION && !a,
|
|
273
|
-
if (!c && !l && !g && !
|
|
272
|
+
const I = o && (i === m.TRIVIA || i === m.PREDICTION) && d && p !== D.RESOLVED, f = i === m.PREDICTION && !a, k = C && i === m.PREDICTION && !o && !h || i === m.PREDICTION && u && d && h, g = I && f, w = I && a, b = i === m.PREDICTION && o && d && a, V = o && i === m.POLL && d;
|
|
273
|
+
if (!c && !l && !g && !w && !k && !V && !b)
|
|
274
274
|
return null;
|
|
275
|
-
const q = n ? "correct" : "incorrect",
|
|
276
|
-
return /* @__PURE__ */ r(
|
|
275
|
+
const q = n ? "correct" : "incorrect", T = n ? e == null ? void 0 : e.correctFeedback : e == null ? void 0 : e.incorrectFeedback;
|
|
276
|
+
return /* @__PURE__ */ r(Ts, { "data-isPrediction": f, children: [
|
|
277
277
|
c && /* @__PURE__ */ r(x, { children: [
|
|
278
278
|
/* @__PURE__ */ s(U, { children: /* @__PURE__ */ s(A, { name: "questionExpired" }) }),
|
|
279
279
|
/* @__PURE__ */ r("div", { children: [
|
|
280
|
-
/* @__PURE__ */ s(
|
|
280
|
+
/* @__PURE__ */ s(W, { children: /* @__PURE__ */ s(Q, { children: "Question Expired" }) }),
|
|
281
281
|
/* @__PURE__ */ s(J, { children: "You can still answer to see if you're correct, but no points are awarded for expired questions." })
|
|
282
282
|
] })
|
|
283
283
|
] }),
|
|
284
284
|
l && /* @__PURE__ */ r(x, { children: [
|
|
285
285
|
/* @__PURE__ */ s(U, { children: /* @__PURE__ */ s(A, { name: "questionExpired" }) }),
|
|
286
286
|
/* @__PURE__ */ r("div", { children: [
|
|
287
|
-
/* @__PURE__ */ s(
|
|
287
|
+
/* @__PURE__ */ s(W, { children: /* @__PURE__ */ s(Q, { children: "Question Closed" }) }),
|
|
288
288
|
/* @__PURE__ */ s(J, { children: "This question was answered after the moderator closed the question. So the points for this answer won’t tally." })
|
|
289
289
|
] })
|
|
290
290
|
] }),
|
|
291
|
-
|
|
291
|
+
k && /* @__PURE__ */ r(x, { children: [
|
|
292
292
|
/* @__PURE__ */ s(U, { children: /* @__PURE__ */ s(A, { name: "questionExpired" }) }),
|
|
293
293
|
/* @__PURE__ */ r("div", { children: [
|
|
294
|
-
/* @__PURE__ */ s(
|
|
294
|
+
/* @__PURE__ */ s(W, { children: /* @__PURE__ */ s(Q, { children: "Question Closed" }) }),
|
|
295
295
|
/* @__PURE__ */ s(J, { children: "This event has already taken place, so the ability to make a prediction on its outcome is no longer available." })
|
|
296
296
|
] })
|
|
297
297
|
] }),
|
|
@@ -299,15 +299,15 @@ const je = /* @__PURE__ */ t("div")({
|
|
|
299
299
|
/* @__PURE__ */ s(Ss, { name: "icon-prediction" }),
|
|
300
300
|
/* @__PURE__ */ s(Q, { children: "Stay tuned to see if your prediction was correct." })
|
|
301
301
|
] }),
|
|
302
|
-
|
|
302
|
+
V && /* @__PURE__ */ r(x, { children: [
|
|
303
303
|
/* @__PURE__ */ s(U, { "data-feedback-type": "correct", children: /* @__PURE__ */ s(A, { name: "correct" }) }),
|
|
304
|
-
/* @__PURE__ */ s(Q, { children: "
|
|
304
|
+
/* @__PURE__ */ s(Q, { children: "Thanks for answering. Please stay tuned for the next question." })
|
|
305
305
|
] }),
|
|
306
|
-
(
|
|
306
|
+
(w || b) && /* @__PURE__ */ r(x, { children: [
|
|
307
307
|
/* @__PURE__ */ s(U, { "data-feedback-type": q, children: /* @__PURE__ */ s(A, { name: q }) }),
|
|
308
|
-
/* @__PURE__ */ s("div", { children: /* @__PURE__ */ r(
|
|
309
|
-
/* @__PURE__ */ s(qs, { "data-feedback-type": q, children:
|
|
310
|
-
/* @__PURE__ */ s(Q, { children:
|
|
308
|
+
/* @__PURE__ */ s("div", { children: /* @__PURE__ */ r(W, { children: [
|
|
309
|
+
/* @__PURE__ */ s(qs, { "data-feedback-type": q, children: T == null ? void 0 : T.title }),
|
|
310
|
+
/* @__PURE__ */ s(Q, { children: T == null ? void 0 : T.description })
|
|
311
311
|
] }) })
|
|
312
312
|
] })
|
|
313
313
|
] });
|
|
@@ -315,15 +315,15 @@ const je = /* @__PURE__ */ t("div")({
|
|
|
315
315
|
name: "Container",
|
|
316
316
|
class: "c14ielyq",
|
|
317
317
|
propsAsIs: !1
|
|
318
|
-
}), Ds = () =>
|
|
318
|
+
}), Ds = () => ke, Ls = /* @__PURE__ */ t(Ds())({
|
|
319
319
|
name: "QuestionScrollContainer",
|
|
320
320
|
class: "q1tlqx57",
|
|
321
321
|
propsAsIs: !0
|
|
322
|
-
}),
|
|
322
|
+
}), Vs = /* @__PURE__ */ t("div")({
|
|
323
323
|
name: "Content",
|
|
324
324
|
class: "c1hq58md",
|
|
325
325
|
propsAsIs: !1
|
|
326
|
-
}),
|
|
326
|
+
}), Ps = /* @__PURE__ */ t("div")({
|
|
327
327
|
name: "Title",
|
|
328
328
|
class: "t1c8nxcx",
|
|
329
329
|
propsAsIs: !1
|
|
@@ -359,11 +359,11 @@ const je = /* @__PURE__ */ t("div")({
|
|
|
359
359
|
name: "IconDefault",
|
|
360
360
|
class: "i1grrgwj",
|
|
361
361
|
propsAsIs: !0
|
|
362
|
-
}), Fs = () => Ce,
|
|
362
|
+
}), Fs = () => Ce, Hs = /* @__PURE__ */ t(Fs())({
|
|
363
363
|
name: "IconCircle",
|
|
364
364
|
class: "ibemyq8",
|
|
365
365
|
propsAsIs: !0
|
|
366
|
-
}),
|
|
366
|
+
}), Ws = /* @__PURE__ */ t("span")({
|
|
367
367
|
name: "Title",
|
|
368
368
|
class: "t1dceht",
|
|
369
369
|
propsAsIs: !1
|
|
@@ -386,7 +386,7 @@ const je = /* @__PURE__ */ t("div")({
|
|
|
386
386
|
}), oe = {
|
|
387
387
|
[j.CENTERED]: (e) => /* @__PURE__ */ s(zs, { alt: "option-icon", src: e }),
|
|
388
388
|
[j.TRANSPARENT]: (e) => /* @__PURE__ */ s(js, { children: /* @__PURE__ */ s(Us, { style: { backgroundImage: `url(${e})` } }) }),
|
|
389
|
-
[j.ROUNDED]: (e) => /* @__PURE__ */ s(
|
|
389
|
+
[j.ROUNDED]: (e) => /* @__PURE__ */ s(Hs, { alt: "option-icon", src: e }),
|
|
390
390
|
[j.NONE]: () => null,
|
|
391
391
|
[j.UNSET]: () => null
|
|
392
392
|
}, Js = ({ questionType: e, hasCorrectAnswer: n, correct: o, youVoted: i, questionVoted: a }) => {
|
|
@@ -422,14 +422,14 @@ const je = /* @__PURE__ */ t("div")({
|
|
|
422
422
|
imageMode: C,
|
|
423
423
|
answerTimeExpired: I,
|
|
424
424
|
questionStatus: f,
|
|
425
|
-
isLoading:
|
|
425
|
+
isLoading: k,
|
|
426
426
|
questionType: g,
|
|
427
|
-
correct:
|
|
427
|
+
correct: w,
|
|
428
428
|
hasCorrectAnswer: b,
|
|
429
|
-
votedAfterQuestionClosed:
|
|
429
|
+
votedAfterQuestionClosed: V,
|
|
430
430
|
enteredAnActiveQuestion: q,
|
|
431
|
-
marketClosed:
|
|
432
|
-
} = e, [M, z] = E(p),
|
|
431
|
+
marketClosed: T
|
|
432
|
+
} = e, [M, z] = E(p), P = Js(e), G = en({ questionType: g, questionVoted: h, correct: w, hasCorrectAnswer: b, questionStatus: f }), v = T && g === m.PREDICTION, $ = h || v, y = g === m.PREDICTION && !h && !T, K = h && !u && P !== "incorrect";
|
|
433
433
|
return ye(() => {
|
|
434
434
|
p > 0 && (z(0), requestAnimationFrame(() => {
|
|
435
435
|
z(p);
|
|
@@ -439,19 +439,19 @@ const je = /* @__PURE__ */ t("div")({
|
|
|
439
439
|
{
|
|
440
440
|
value: o,
|
|
441
441
|
"data-selected": u,
|
|
442
|
-
"data-answer-state":
|
|
443
|
-
disabled: h ||
|
|
442
|
+
"data-answer-state": P,
|
|
443
|
+
disabled: h || k || I || v && !q || v && q && V,
|
|
444
444
|
"data-is-not-checked": K,
|
|
445
445
|
onClick: (X) => {
|
|
446
446
|
d(
|
|
447
|
-
g === m.PREDICTION ?
|
|
447
|
+
g === m.PREDICTION ? T : f === D.RESOLVED
|
|
448
448
|
), l(X);
|
|
449
449
|
},
|
|
450
450
|
children: [
|
|
451
|
-
/* @__PURE__ */ s(Ms, { "data-answer-state":
|
|
451
|
+
/* @__PURE__ */ s(Ms, { "data-answer-state": P, style: { width: `${$ ? M : 0}%` } }),
|
|
452
452
|
/* @__PURE__ */ r(_s, { children: [
|
|
453
453
|
i && C && ((n = oe[C]) == null ? void 0 : n.call(oe, i)),
|
|
454
|
-
/* @__PURE__ */ s(
|
|
454
|
+
/* @__PURE__ */ s(Ws, { children: a }),
|
|
455
455
|
y && /* @__PURE__ */ r("div", { children: [
|
|
456
456
|
c,
|
|
457
457
|
/* @__PURE__ */ s(Ys, { children: "pts" })
|
|
@@ -546,22 +546,22 @@ const je = /* @__PURE__ */ t("div")({
|
|
|
546
546
|
i && p !== m.PREDICTION && /* @__PURE__ */ s(ln, { isPlaying: o, onTimerExpired: l, duration: c })
|
|
547
547
|
] }), fn = ({ openedQuestion: e, isLoading: n, vote: o, close: i }) => {
|
|
548
548
|
var a, p;
|
|
549
|
-
const c = e.subject, l = e.type, d = e.status, u = (a = e.options) == null ? void 0 : a.options, h = e.marketClosed, [C, I] = E(!1), [f,
|
|
549
|
+
const c = e.subject, l = e.type, d = e.status, u = (a = e.options) == null ? void 0 : a.options, h = e.marketClosed, [C, I] = E(!1), [f, k] = E(!1), [g, w] = E(!0), [b, V] = E(!1), [q, T] = E(""), M = e == null ? void 0 : e.id;
|
|
550
550
|
ee(() => {
|
|
551
|
-
l === m.PREDICTION ? h &&
|
|
551
|
+
l === m.PREDICTION ? h && w(!1) : d === D.RESOLVED && w(!1);
|
|
552
552
|
}, []);
|
|
553
553
|
const z = B((R) => {
|
|
554
|
-
|
|
555
|
-
}, []),
|
|
554
|
+
k(R), I(!0);
|
|
555
|
+
}, []), P = B(
|
|
556
556
|
async (R) => {
|
|
557
557
|
if (M) {
|
|
558
558
|
const _ = R.currentTarget.value;
|
|
559
|
-
|
|
559
|
+
T(_), await o(M, _);
|
|
560
560
|
}
|
|
561
561
|
},
|
|
562
|
-
[M,
|
|
562
|
+
[M, T, o]
|
|
563
563
|
), G = B(() => {
|
|
564
|
-
|
|
564
|
+
V(!0), setTimeout(i, 3e3);
|
|
565
565
|
}, [i]), v = N(
|
|
566
566
|
() => e == null ? void 0 : e.answers.find((R) => R.youVoted === !0),
|
|
567
567
|
[e]
|
|
@@ -583,7 +583,7 @@ const je = /* @__PURE__ */ t("div")({
|
|
|
583
583
|
answerTimeExpired: b,
|
|
584
584
|
questionStatus: d,
|
|
585
585
|
imageMode: (_ = e.appearance) == null ? void 0 : _.images,
|
|
586
|
-
onVote:
|
|
586
|
+
onVote: P
|
|
587
587
|
};
|
|
588
588
|
}) : [], [
|
|
589
589
|
$,
|
|
@@ -592,7 +592,7 @@ const je = /* @__PURE__ */ t("div")({
|
|
|
592
592
|
e,
|
|
593
593
|
v,
|
|
594
594
|
d,
|
|
595
|
-
|
|
595
|
+
P,
|
|
596
596
|
q
|
|
597
597
|
]), X = u && (u.case === "trivia" || u.case === "prediction") ? u.value : void 0, O = d === D.RESOLVED && l === m.TRIVIA && !v && !g, se = l === m.TRIVIA && f && C && g, ne = N(() => l === m.PREDICTION ? !!(v && !$ || v && $ && y != null && y.youVoted) : !0, [l, v, $, y]), Ae = N(() => {
|
|
598
598
|
if (l === m.PREDICTION && v && (!$ || $ && y != null && y.youVoted))
|
|
@@ -608,7 +608,7 @@ const je = /* @__PURE__ */ t("div")({
|
|
|
608
608
|
l,
|
|
609
609
|
$
|
|
610
610
|
]), $e = N(() => l === m.PREDICTION && v ? $ ? $ && y != null && y.youVoted ? "You won" : "" : "To win" : O || b ? "Time expired" : l === m.POLL ? "Time remaining" : v ? "You won" : "To win", [b, l, v, O, $, y]), ge = (l === m.TRIVIA || l === m.PREDICTION) && v && $ && (y == null ? void 0 : y.youVoted), be = v || O || se || l === m.TRIVIA && d === D.RESOLVED && g;
|
|
611
|
-
return /* @__PURE__ */ s(Ls, { children: /* @__PURE__ */ s(Ns, { children: /* @__PURE__ */ r(
|
|
611
|
+
return /* @__PURE__ */ s(Ls, { children: /* @__PURE__ */ s(Ns, { children: /* @__PURE__ */ r(Vs, { children: [
|
|
612
612
|
/* @__PURE__ */ s(
|
|
613
613
|
Es,
|
|
614
614
|
{
|
|
@@ -640,13 +640,13 @@ const je = /* @__PURE__ */ t("div")({
|
|
|
640
640
|
}
|
|
641
641
|
),
|
|
642
642
|
b ? /* @__PURE__ */ s(
|
|
643
|
-
|
|
643
|
+
ks,
|
|
644
644
|
{
|
|
645
645
|
title: "More to come...",
|
|
646
646
|
description: "Watch for additional enhanced stream interactive experience."
|
|
647
647
|
}
|
|
648
648
|
) : /* @__PURE__ */ r(x, { children: [
|
|
649
|
-
/* @__PURE__ */ s(
|
|
649
|
+
/* @__PURE__ */ s(Ps, { style: ne ? {} : { marginTop: 0 }, children: c }),
|
|
650
650
|
/* @__PURE__ */ s(Os, { children: K.map((R) => /* @__PURE__ */ s(
|
|
651
651
|
sn,
|
|
652
652
|
{
|
|
@@ -683,7 +683,7 @@ const je = /* @__PURE__ */ t("div")({
|
|
|
683
683
|
}), fe = ({ instantView: e, isDetail: n, notification: o }) => {
|
|
684
684
|
const i = e == null ? void 0 : e.heading, a = e == null ? void 0 : e.body, p = i || a, c = o == null ? void 0 : o.title, l = o == null ? void 0 : o.body;
|
|
685
685
|
return /* @__PURE__ */ r(An, { children: [
|
|
686
|
-
(e == null ? void 0 : e.video) && /* @__PURE__ */ s(
|
|
686
|
+
(e == null ? void 0 : e.video) && /* @__PURE__ */ s(Te, { source: e.video.url, poster: e.video.thumbnailUrl }),
|
|
687
687
|
(e == null ? void 0 : e.image) && !(e != null && e.video) && /* @__PURE__ */ s(yn, { src: e == null ? void 0 : e.image }),
|
|
688
688
|
/* @__PURE__ */ r($n, { children: [
|
|
689
689
|
/* @__PURE__ */ s(gn, { children: n && p ? i : c }),
|
|
@@ -698,13 +698,13 @@ const je = /* @__PURE__ */ t("div")({
|
|
|
698
698
|
name: "WebLinkBtn",
|
|
699
699
|
class: "w19zie3h",
|
|
700
700
|
propsAsIs: !1
|
|
701
|
-
}),
|
|
701
|
+
}), kn = ({ instantView: e, ...n }) => /* @__PURE__ */ r(Rn, { children: [
|
|
702
702
|
/* @__PURE__ */ s(fe, { instantView: e, ...n, isDetail: !0 }),
|
|
703
703
|
(e == null ? void 0 : e.webLink) && /* @__PURE__ */ r(wn, { href: e == null ? void 0 : e.webLink.url, target: "_blank", children: [
|
|
704
704
|
e == null ? void 0 : e.webLink.label,
|
|
705
705
|
/* @__PURE__ */ s(A, { name: "icon-external-link" })
|
|
706
706
|
] })
|
|
707
|
-
] }),
|
|
707
|
+
] }), Tn = /* @__PURE__ */ t("div")({
|
|
708
708
|
name: "Container",
|
|
709
709
|
class: "c1dcxmvf",
|
|
710
710
|
propsAsIs: !1
|
|
@@ -712,7 +712,7 @@ const je = /* @__PURE__ */ t("div")({
|
|
|
712
712
|
name: "Quote",
|
|
713
713
|
class: "qb4q22c",
|
|
714
714
|
propsAsIs: !1
|
|
715
|
-
}), Sn = (e) => /* @__PURE__ */ r(
|
|
715
|
+
}), Sn = (e) => /* @__PURE__ */ r(Tn, { children: [
|
|
716
716
|
e.title && /* @__PURE__ */ s(xn, { children: e.title }),
|
|
717
717
|
/* @__PURE__ */ s(me, { ...e, isDetail: !0 })
|
|
718
718
|
] }), qn = /* @__PURE__ */ t("div")({
|
|
@@ -723,7 +723,7 @@ const je = /* @__PURE__ */ t("div")({
|
|
|
723
723
|
openedQuestion: e
|
|
724
724
|
}) => {
|
|
725
725
|
var n, o;
|
|
726
|
-
return ((n = e == null ? void 0 : e.attributes) == null ? void 0 : n.attributes.case) === "insight" ? /* @__PURE__ */ s(
|
|
726
|
+
return ((n = e == null ? void 0 : e.attributes) == null ? void 0 : n.attributes.case) === "insight" ? /* @__PURE__ */ s(kn, {
|
|
727
727
|
...e.attributes.attributes.value
|
|
728
728
|
}) : ((o = e == null ? void 0 : e.attributes) == null ? void 0 : o.attributes.case) === "tweet" ? /* @__PURE__ */ s(Sn, {
|
|
729
729
|
...e.attributes.attributes.value
|
|
@@ -769,11 +769,11 @@ const je = /* @__PURE__ */ t("div")({
|
|
|
769
769
|
name: "Container",
|
|
770
770
|
class: "c115qtkr",
|
|
771
771
|
propsAsIs: !1
|
|
772
|
-
}),
|
|
772
|
+
}), Vn = /* @__PURE__ */ t("div")({
|
|
773
773
|
name: "STabs",
|
|
774
774
|
class: "sxnslc8",
|
|
775
775
|
propsAsIs: !1
|
|
776
|
-
}),
|
|
776
|
+
}), Pn = /* @__PURE__ */ t("button")({
|
|
777
777
|
name: "Button",
|
|
778
778
|
class: "b1umzux0",
|
|
779
779
|
propsAsIs: !1
|
|
@@ -783,7 +783,7 @@ const je = /* @__PURE__ */ t("div")({
|
|
|
783
783
|
propsAsIs: !1
|
|
784
784
|
});
|
|
785
785
|
var Y = /* @__PURE__ */ ((e) => (e.HOME = "home", e.LEADERBOARD = "leaderboard", e))(Y || {});
|
|
786
|
-
const ae = ({ title: e, active: n, onClick: o }) => /* @__PURE__ */ s(
|
|
786
|
+
const ae = ({ title: e, active: n, onClick: o }) => /* @__PURE__ */ s(Pn, { onClick: o, "data-selected": n, children: /* @__PURE__ */ s(On, { children: e }) }), Qn = ({ activePage: e = "home", toggleActivePage: n }) => /* @__PURE__ */ s(Ln, { children: /* @__PURE__ */ r(Vn, { "data-position": e === "home" ? "left" : "right", children: [
|
|
787
787
|
/* @__PURE__ */ s(ae, { title: "Home", active: e === "home", onClick: () => n(
|
|
788
788
|
"home"
|
|
789
789
|
/* HOME */
|
|
@@ -823,8 +823,8 @@ const ae = ({ title: e, active: n, onClick: o }) => /* @__PURE__ */ s(Vn, { onCl
|
|
|
823
823
|
name: "ArrowInviteIcon",
|
|
824
824
|
class: "awohrz6",
|
|
825
825
|
propsAsIs: !0
|
|
826
|
-
}),
|
|
827
|
-
/* @__PURE__ */ s(_n, { alt: "friends-icon", src:
|
|
826
|
+
}), Hn = "data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='32'%20height='32'%20rx='16'%20fill='white'/%3e%3cpath%20d='M10.4615%2012.6875C9.44231%2012.6875%208.61538%2013.4665%208.61538%2014.4266C8.61538%2015.3868%209.44231%2016.1658%2010.4615%2016.1658C11.4808%2016.1658%2012.3077%2015.3868%2012.3077%2014.4266C12.3077%2013.4665%2011.4808%2012.6875%2010.4615%2012.6875ZM10.4615%2016.1658C9.10817%2016.1658%208%2017.2097%208%2018.4846V19.7527C8%2019.7527%208.61538%2020.2237%2010.4615%2020.2237C12.3077%2020.2237%2012.9231%2019.7527%2012.9231%2019.7527V18.4846C12.9231%2017.2097%2011.8149%2016.1658%2010.4615%2016.1658ZM21.5385%2012.6875C20.5192%2012.6875%2019.6923%2013.4665%2019.6923%2014.4266C19.6923%2015.3868%2020.5192%2016.1658%2021.5385%2016.1658C22.5577%2016.1658%2023.3846%2015.3868%2023.3846%2014.4266C23.3846%2013.4665%2022.5577%2012.6875%2021.5385%2012.6875ZM21.5385%2016.1658C20.1851%2016.1658%2019.0769%2017.2097%2019.0769%2018.4846V19.7527C19.0769%2019.7527%2019.6923%2020.2237%2021.5385%2020.2237C23.3846%2020.2237%2024%2019.7527%2024%2019.7527V18.4846C24%2017.2097%2022.8918%2016.1658%2021.5385%2016.1658ZM16%2015.0063C14.9808%2015.0063%2014.1538%2015.7853%2014.1538%2016.7455C14.1538%2017.7056%2014.9808%2018.4846%2016%2018.4846C17.0192%2018.4846%2017.8462%2017.7056%2017.8462%2016.7455C17.8462%2015.7853%2017.0192%2015.0063%2016%2015.0063ZM16%2018.4846C14.6466%2018.4846%2013.5385%2019.5285%2013.5385%2020.8034V22.0715C13.5385%2022.0715%2014.1538%2022.5425%2016%2022.5425C17.8462%2022.5425%2018.4615%2022.0715%2018.4615%2022.0715V20.8034C18.4615%2019.5285%2017.3534%2018.4846%2016%2018.4846Z'%20fill='%23107D57'/%3e%3cpath%20opacity='0.5'%20d='M13.3908%209C12.3103%209%2011.4336%209.82584%2011.4336%2010.8437C11.4336%2011.8616%2012.3103%2012.6875%2013.3908%2012.6875C14.4713%2012.6875%2015.348%2011.8616%2015.348%2010.8437C15.348%209.82584%2014.4713%209%2013.3908%209ZM13.3908%2012.6875C13.1946%2012.6875%2012.9958%2012.6827%2012.7996%2012.7451C13.192%2013.2372%2013.3908%2013.8542%2013.3908%2014.5312C13.3908%2014.7761%2013.3296%2015.0161%2013.3296%2015.261C13.8521%2014.524%2014.6956%2014.0391%2015.6742%2013.9166C15.218%2013.1796%2014.3694%2012.6875%2013.3908%2012.6875ZM18.61%209C17.5295%209%2016.6528%209.82584%2016.6528%2010.8437C16.6528%2011.8616%2017.5295%2012.6875%2018.61%2012.6875C19.6905%2012.6875%2020.5672%2011.8616%2020.5672%2010.8437C20.5672%209.82584%2019.6905%209%2018.61%209ZM18.61%2012.6875C17.6314%2012.6875%2016.7828%2013.1796%2016.3266%2013.9166C17.3052%2014.0391%2018.1487%2014.524%2018.6712%2015.261C18.6712%2015.0161%2018.61%2014.7761%2018.61%2014.5312C18.61%2013.8542%2018.8088%2013.2372%2019.2012%2012.7451C19.005%2012.6827%2018.8062%2012.6875%2018.61%2012.6875Z'%20fill='%23107D57'/%3e%3c/svg%3e", Wn = ({ title: e, description: n, onClick: o, className: i }) => /* @__PURE__ */ r(Mn, { onClick: o, className: i, children: [
|
|
827
|
+
/* @__PURE__ */ s(_n, { alt: "friends-icon", src: Hn }),
|
|
828
828
|
/* @__PURE__ */ r(jn, { children: [
|
|
829
829
|
/* @__PURE__ */ s(Un, { children: e }),
|
|
830
830
|
/* @__PURE__ */ s(Bn, { children: n })
|
|
@@ -927,8 +927,8 @@ var Gn = function(e, n) {
|
|
|
927
927
|
startIndex: Math.max(0, i - C),
|
|
928
928
|
stopIndex: Math.min(l - 1, a + C)
|
|
929
929
|
});
|
|
930
|
-
(this._memoizedUnloadedRanges.length !== I.length || this._memoizedUnloadedRanges.some(function(f,
|
|
931
|
-
return I[
|
|
930
|
+
(this._memoizedUnloadedRanges.length !== I.length || this._memoizedUnloadedRanges.some(function(f, k) {
|
|
931
|
+
return I[k] !== f;
|
|
932
932
|
})) && (this._memoizedUnloadedRanges = I, this._loadUnloadedRanges(I));
|
|
933
933
|
}
|
|
934
934
|
}, {
|
|
@@ -1078,7 +1078,7 @@ const Jn = /* @__PURE__ */ t("div")({
|
|
|
1078
1078
|
openItemDetail: e.openUser,
|
|
1079
1079
|
currentUserId: e.currentUserId.get()
|
|
1080
1080
|
}, l), d && /* @__PURE__ */ s(ut, {
|
|
1081
|
-
children: /* @__PURE__ */ s(
|
|
1081
|
+
children: /* @__PURE__ */ s(Wn, {
|
|
1082
1082
|
onClick: () => u(d),
|
|
1083
1083
|
title: "Invite Friends",
|
|
1084
1084
|
description: "Challenge them now!"
|
|
@@ -1156,11 +1156,11 @@ const Jn = /* @__PURE__ */ t("div")({
|
|
|
1156
1156
|
] }),
|
|
1157
1157
|
/* @__PURE__ */ s(Ct, { children: a ? /* @__PURE__ */ s(yt, { children: "Play" }) : d })
|
|
1158
1158
|
] }) : null;
|
|
1159
|
-
},
|
|
1159
|
+
}, kt = /* @__PURE__ */ t("div")({
|
|
1160
1160
|
name: "Container",
|
|
1161
1161
|
class: "cll3md7",
|
|
1162
1162
|
propsAsIs: !1
|
|
1163
|
-
}),
|
|
1163
|
+
}), Tt = /* @__PURE__ */ t("button")({
|
|
1164
1164
|
name: "ActionBtn",
|
|
1165
1165
|
class: "a10g1iik",
|
|
1166
1166
|
propsAsIs: !1
|
|
@@ -1168,9 +1168,9 @@ const Jn = /* @__PURE__ */ t("div")({
|
|
|
1168
1168
|
openInsight: e,
|
|
1169
1169
|
questionId: n,
|
|
1170
1170
|
...o
|
|
1171
|
-
}) => /* @__PURE__ */ r(
|
|
1171
|
+
}) => /* @__PURE__ */ r(kt, { children: [
|
|
1172
1172
|
/* @__PURE__ */ s(fe, { questionId: n, ...o }),
|
|
1173
|
-
e && /* @__PURE__ */ s(
|
|
1173
|
+
e && /* @__PURE__ */ s(Tt, { onClick: () => e(n), children: "View Insight" })
|
|
1174
1174
|
] }), St = /* @__PURE__ */ t("div")({
|
|
1175
1175
|
name: "Container",
|
|
1176
1176
|
class: "cl56x6b",
|
|
@@ -1194,7 +1194,7 @@ const Jn = /* @__PURE__ */ t("div")({
|
|
|
1194
1194
|
name: "QuestionsContainer",
|
|
1195
1195
|
class: "qvghv3l",
|
|
1196
1196
|
propsAsIs: !1
|
|
1197
|
-
}),
|
|
1197
|
+
}), Vt = ({ questions: e, openQuestion: n }) => /* @__PURE__ */ s(Lt, { children: e == null ? void 0 : e.map((o) => {
|
|
1198
1198
|
var i, a, p;
|
|
1199
1199
|
if (o.type === "question" && ((i = o.attributes) == null ? void 0 : i.attributes.case) === "question") {
|
|
1200
1200
|
const c = o.attributes.attributes.value;
|
|
@@ -1209,9 +1209,9 @@ const Jn = /* @__PURE__ */ t("div")({
|
|
|
1209
1209
|
return /* @__PURE__ */ s(Dt, { openTweet: n, ...c, tweetId: l }, l);
|
|
1210
1210
|
}
|
|
1211
1211
|
return null;
|
|
1212
|
-
}) }),
|
|
1212
|
+
}) }), Pt = ({ store: e, openQuestion: n }) => {
|
|
1213
1213
|
const o = S(e);
|
|
1214
|
-
return o != null && o.data ? /* @__PURE__ */ s(
|
|
1214
|
+
return o != null && o.data ? /* @__PURE__ */ s(Vt, { openQuestion: n, questions: o.data }) : /* @__PURE__ */ s("div", { children: "wait questions..." });
|
|
1215
1215
|
}, Ot = ({ userSummary: e }) => {
|
|
1216
1216
|
var n;
|
|
1217
1217
|
const [o, i] = E(void 0);
|
|
@@ -1224,37 +1224,37 @@ const Jn = /* @__PURE__ */ t("div")({
|
|
|
1224
1224
|
};
|
|
1225
1225
|
}, [e]), o != null && o.summary ? /* @__PURE__ */ s(ve, { ...o.summary, successRate: (n = o.percentage) == null ? void 0 : n.correct }) : /* @__PURE__ */ s("div", { children: "wait user..." });
|
|
1226
1226
|
}, Qt = ({ gamification: e, className: n, scrollStore: o, scrollNode: i, appNode: a, style: p, responsiveStore: c, headerNode: l }) => {
|
|
1227
|
-
const { tabsShown: d } = S(o, { keys: ["tabsShown"] }), [u, h] = E(Y.HOME), [, C] = we(), { sdkInDesktopView: I } = S(c, { keys: ["sdkInDesktopView"] }), f = (
|
|
1227
|
+
const { tabsShown: d } = S(o, { keys: ["tabsShown"] }), [u, h] = E(Y.HOME), [, C] = we(), { sdkInDesktopView: I } = S(c, { keys: ["sdkInDesktopView"] }), f = (w) => {
|
|
1228
1228
|
C(() => {
|
|
1229
1229
|
var b;
|
|
1230
|
-
h(
|
|
1230
|
+
h(w), I === !1 && (((b = a.current) == null ? void 0 : b.getBoundingClientRect().y) || 0) < 0 && Pe(a, { behavior: "instant" });
|
|
1231
1231
|
});
|
|
1232
1232
|
};
|
|
1233
|
-
ee(() => o.listen((
|
|
1234
|
-
if (
|
|
1233
|
+
ee(() => o.listen((w) => {
|
|
1234
|
+
if (w.scrollPosition === 0) {
|
|
1235
1235
|
o.setKey("tabsShown", !0);
|
|
1236
1236
|
return;
|
|
1237
1237
|
}
|
|
1238
|
-
o.setKey("tabsShown",
|
|
1239
|
-
}), [o]);
|
|
1240
|
-
let
|
|
1241
|
-
I ?
|
|
1238
|
+
c.get().sdkInDesktopView ? o.setKey("tabsShown", w.scrollDirection === "backward") : o.setKey("tabsShown", w.scrollDirection === "forward");
|
|
1239
|
+
}), [o, c]);
|
|
1240
|
+
let k = "0px";
|
|
1241
|
+
I ? k = d ? "0px" : "calc(8px - var(--header-height) - var(--header-offset))" : k = d ? "calc(var(--header-height) + var(--header-offset) - 2px)" : "0px";
|
|
1242
1242
|
const g = I ? a : l;
|
|
1243
1243
|
return /* @__PURE__ */ r(Ee, { className: n, style: p, children: [
|
|
1244
1244
|
/* @__PURE__ */ s(
|
|
1245
1245
|
Ne,
|
|
1246
1246
|
{
|
|
1247
1247
|
style: {
|
|
1248
|
-
top:
|
|
1248
|
+
top: k
|
|
1249
1249
|
},
|
|
1250
1250
|
children: /* @__PURE__ */ s(Qn, { activePage: u, toggleActivePage: f })
|
|
1251
1251
|
}
|
|
1252
1252
|
),
|
|
1253
1253
|
u === Y.HOME && /* @__PURE__ */ r(x, { children: [
|
|
1254
1254
|
/* @__PURE__ */ s(he, { style: { paddingTop: "8px" }, children: /* @__PURE__ */ s(De, { children: /* @__PURE__ */ s(Ot, { userSummary: e.userSummary }) }) }),
|
|
1255
|
-
/* @__PURE__ */ s(Le, { style: { flex: 1 }, children: /* @__PURE__ */ s(
|
|
1255
|
+
/* @__PURE__ */ s(Le, { style: { flex: 1 }, children: /* @__PURE__ */ s(Pt, { openQuestion: e.openQuestion, store: e.feedList.getStore() }) })
|
|
1256
1256
|
] }),
|
|
1257
|
-
u === Y.LEADERBOARD && /* @__PURE__ */ s(
|
|
1257
|
+
u === Y.LEADERBOARD && /* @__PURE__ */ s(Ve, { children: /* @__PURE__ */ s(
|
|
1258
1258
|
mt,
|
|
1259
1259
|
{
|
|
1260
1260
|
renderClipBoardNode: g,
|
package/lib/es/index2.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { createContext as
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { createContext as S, useMemo as d } from "react";
|
|
3
3
|
import { useStreamLayerApp as G } from "./useStreamLayerApp.js";
|
|
4
|
-
var
|
|
5
|
-
const
|
|
4
|
+
var O = /* @__PURE__ */ ((R) => (R[R.UNSET = 0] = "UNSET", R[R.CONNECTED = 1] = "CONNECTED", R[R.READY = 2] = "READY", R))(O || {});
|
|
5
|
+
const D = S({
|
|
6
6
|
status: 0,
|
|
7
7
|
sdk: null
|
|
8
8
|
}), I = ({
|
|
@@ -10,16 +10,16 @@ const O = i({
|
|
|
10
10
|
plugins: E,
|
|
11
11
|
children: e,
|
|
12
12
|
production: _ = !0,
|
|
13
|
-
autoEnable:
|
|
14
|
-
onDeepLinkHandled:
|
|
13
|
+
autoEnable: s = !0,
|
|
14
|
+
onDeepLinkHandled: N
|
|
15
15
|
}) => {
|
|
16
|
-
const
|
|
17
|
-
sdk:
|
|
16
|
+
const A = G(R, E, _, s), i = d(() => A ? (N && A.onDeepLinkHandled(N), {
|
|
17
|
+
sdk: A,
|
|
18
18
|
status: 2
|
|
19
19
|
/* READY */
|
|
20
|
-
}) : { status: 1, sdk: null }, [
|
|
21
|
-
return /* @__PURE__ */
|
|
22
|
-
},
|
|
20
|
+
}) : { status: 1, sdk: null }, [A]);
|
|
21
|
+
return /* @__PURE__ */ a(D.Provider, { value: i, children: e });
|
|
22
|
+
}, c = {
|
|
23
23
|
BG_TRANSPARENT: "rgba(0,0,0, .8)",
|
|
24
24
|
BG_TRANSPARENT_VOTE_CONTAINER: "rgba(10, 14, 19, 0.8)",
|
|
25
25
|
BG_TRANSPARENT_ITEM: "rgba(0, 0, 0, 0.7)",
|
|
@@ -48,7 +48,7 @@ const O = i({
|
|
|
48
48
|
GREY_PRIMARY: "#909395",
|
|
49
49
|
DIVIDER_COLOR_SECONDARY: "#53565a",
|
|
50
50
|
GREEN_PRIMARY_BTN: "#009B77"
|
|
51
|
-
},
|
|
51
|
+
}, B = {
|
|
52
52
|
PRIMARY_GREEN1: "#107D57",
|
|
53
53
|
PRIMARY_GREEN2: "#006747",
|
|
54
54
|
PRIMARY_GREEN3: "#1C4932",
|
|
@@ -70,21 +70,22 @@ const O = i({
|
|
|
70
70
|
NEUTRALS_GRAY8: "#53565A",
|
|
71
71
|
NEUTRALS_GRAY9: "#25282A",
|
|
72
72
|
NEUTRALS_BLACK: "#000000"
|
|
73
|
-
}, o = Object.assign({},
|
|
73
|
+
}, o = Object.assign({}, c, B), t = {
|
|
74
74
|
REGULAR: "'Benton Sans', BentonSans, Arial, Helvetica, sans-serif",
|
|
75
75
|
SERIF: "'Tiempos', 'Tiempos Text', Times New Roman, serif",
|
|
76
76
|
COLOR: "#fff",
|
|
77
77
|
WEIGHT_DEFAULT: "500"
|
|
78
78
|
}, r = {
|
|
79
|
+
xs: 324,
|
|
79
80
|
sm: 576,
|
|
80
81
|
md: 768,
|
|
81
82
|
lg: 992,
|
|
82
|
-
xl:
|
|
83
|
-
xxl:
|
|
84
|
-
},
|
|
83
|
+
xl: 1215,
|
|
84
|
+
xxl: 1440
|
|
85
|
+
}, Y = {
|
|
85
86
|
landscape: "landscape",
|
|
86
87
|
portrait: "portrait"
|
|
87
|
-
},
|
|
88
|
+
}, l = Object.keys(o).reduce((R, E) => {
|
|
88
89
|
const e = o[E];
|
|
89
90
|
return `
|
|
90
91
|
${R}
|
|
@@ -94,11 +95,11 @@ const O = i({
|
|
|
94
95
|
@media only screen and (${R}) {
|
|
95
96
|
${E}
|
|
96
97
|
}
|
|
97
|
-
`,
|
|
98
|
+
`, C = (R, E) => (e) => `
|
|
98
99
|
@media only screen and (${R}) and (${E}) {
|
|
99
100
|
${e}
|
|
100
101
|
}
|
|
101
|
-
`,
|
|
102
|
+
`, T = {
|
|
102
103
|
up: (R) => {
|
|
103
104
|
const E = r[R];
|
|
104
105
|
return n(`min-width: ${E}px`);
|
|
@@ -109,23 +110,25 @@ const O = i({
|
|
|
109
110
|
},
|
|
110
111
|
intermediate: (R, E) => {
|
|
111
112
|
const e = r[R] - 1, _ = r[E];
|
|
112
|
-
return
|
|
113
|
+
return C(`max-width: ${e}px`, `min-width: ${_}px`);
|
|
113
114
|
},
|
|
114
115
|
orientation: (R) => {
|
|
115
|
-
const E =
|
|
116
|
+
const E = Y[R];
|
|
116
117
|
return n(`orientation: ${E}`);
|
|
117
118
|
}
|
|
118
119
|
};
|
|
119
|
-
`${
|
|
120
|
+
`${l}${t.REGULAR}${t.REGULAR}${t.COLOR}${t.SERIF}${t.WEIGHT_DEFAULT}${T.down("xl")`
|
|
120
121
|
--header-offset: 56px;
|
|
122
|
+
`}${T.intermediate("xl", "lg")`
|
|
123
|
+
--header-offset: 76px;
|
|
121
124
|
`}`;
|
|
122
|
-
const
|
|
125
|
+
const x = "StreamLayerCSSReset", f = "ttkj0ah", L = ({ children: R, style: E }) => /* @__PURE__ */ a("div", { className: "StreamLayerSDKTheme", children: /* @__PURE__ */ a("div", { className: f, style: E, children: R }) });
|
|
123
126
|
export {
|
|
124
127
|
o as E,
|
|
125
128
|
r as O,
|
|
126
129
|
I as S,
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
130
|
+
D as a,
|
|
131
|
+
O as b,
|
|
132
|
+
x as m,
|
|
133
|
+
L as p
|
|
131
134
|
};
|
package/lib/es/masters.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "./index2.js";
|
|
3
|
-
import { M as
|
|
3
|
+
import { M as d, g as f } from "./masters2.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import "./useStreamLayerApp.js";
|
|
6
6
|
import "@streamlayer/sdk-web";
|
|
@@ -12,6 +12,6 @@ import "react-countup";
|
|
|
12
12
|
import "@streamlayer/sdk-web-notifications";
|
|
13
13
|
import "lodash.throttle";
|
|
14
14
|
export {
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
d as MastersStreamLayerProvider,
|
|
16
|
+
f as MastersStreamLayerSDKReact
|
|
17
17
|
};
|