@streamlayer/react 1.17.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.
Files changed (55) hide show
  1. package/lib/cjs/advertisement.js +36 -36
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/masters2.js +4 -4
  4. package/lib/cjs/notification.js +1 -1
  5. package/lib/cjs/provider.js +1 -1
  6. package/lib/cjs/useStreamLayerApp2.js +9 -9
  7. package/lib/classic/cjs/advertisement.js +36 -36
  8. package/lib/classic/cjs/bet-pack.js +5 -1
  9. package/lib/classic/cjs/index.js +1 -1
  10. package/lib/classic/cjs/notification.js +1 -1
  11. package/lib/classic/cjs/provider.js +14 -30
  12. package/lib/classic/cjs/useStreamLayerApp2.js +9 -9
  13. package/lib/classic/es/advertisement.js +2610 -2543
  14. package/lib/classic/es/bet-pack.js +3431 -12
  15. package/lib/classic/es/index.js +3 -5
  16. package/lib/classic/es/insight.js +8 -8
  17. package/lib/classic/es/notification.js +14 -14
  18. package/lib/classic/es/points.js +10 -10
  19. package/lib/classic/es/provider.js +3663 -3740
  20. package/lib/classic/es/useStreamLayerApp2.js +1979 -1979
  21. package/lib/classic/index.d.ts +1 -2
  22. package/lib/dist/cjs/masters.js +27 -27
  23. package/lib/dist/es/masters.js +6408 -6408
  24. package/lib/dist/style.css +1 -1
  25. package/lib/es/advertisement.js +2610 -2543
  26. package/lib/es/index.js +3 -5
  27. package/lib/es/index2.js +30 -30
  28. package/lib/es/insight.js +8 -8
  29. package/lib/es/masters2.js +36 -36
  30. package/lib/es/notification.js +25 -25
  31. package/lib/es/points.js +10 -10
  32. package/lib/es/provider.js +46 -46
  33. package/lib/es/useStreamLayerApp2.js +1979 -1979
  34. package/lib/index.d.ts +1 -2
  35. package/lib/style.css +1 -1
  36. package/package.json +16 -26
  37. package/lib/app/tvos.d.ts +0 -5
  38. package/lib/cjs/index3.js +0 -1
  39. package/lib/cjs/tvos.js +0 -1
  40. package/lib/classic/app/tvos.d.ts +0 -5
  41. package/lib/classic/cjs/gamification-feature2.js +0 -1
  42. package/lib/classic/cjs/index2.js +0 -5
  43. package/lib/classic/cjs/index3.js +0 -1
  44. package/lib/classic/cjs/masters.js +0 -1
  45. package/lib/classic/cjs/masters2.js +0 -13
  46. package/lib/classic/cjs/tvos.js +0 -1
  47. package/lib/classic/es/gamification-feature2.js +0 -4
  48. package/lib/classic/es/index2.js +0 -3426
  49. package/lib/classic/es/index3.js +0 -76
  50. package/lib/classic/es/masters.js +0 -9
  51. package/lib/classic/es/masters2.js +0 -868
  52. package/lib/classic/es/tvos.js +0 -1352
  53. package/lib/classic/style.css +0 -1
  54. package/lib/es/index3.js +0 -76
  55. package/lib/es/tvos.js +0 -1352
@@ -1,12 +1,12 @@
1
+ import { s, k as u, Z as L, _ as O, $ as R, G as B, a0 as P, W as Q, d as U, a as V, e as F, N as k, u as W, b as G, Y, h as _ } from "./provider.js";
1
2
  import { jsxs as c, jsx as e } from "react/jsx-runtime";
2
- import { useState as y, useCallback as L, useMemo as E, useEffect as x } from "react";
3
- import { s, k as u, D as O, A as R, x as B, q as P, r as Q, y as U, g as V, f as F, e as W, N as k, u as G, d as K, c as Y, h as _ } from "./provider.js";
4
- import { Q as m, b as A, c as H, S as J } from "./useStreamLayerApp2.js";
3
+ import { useState as y, useCallback as K, useMemo as E, useEffect as x } from "react";
4
+ import { j as m, Q as A, k as Z, S as H } from "./useStreamLayerApp2.js";
5
5
  const $ = /* @__PURE__ */ s("div")({
6
6
  name: "Media",
7
7
  class: "m1bcvojl",
8
8
  propsAsIs: !1
9
- }), X = () => $, Z = /* @__PURE__ */ s(X())({
9
+ }), J = () => $, X = /* @__PURE__ */ s(J())({
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]: Z
38
+ [m.TRANSPARENT]: X
39
39
  }, b = ({
40
40
  src: t,
41
41
  imageMode: i = m.UNSET,
@@ -100,7 +100,7 @@ const $ = /* @__PURE__ */ s("div")({
100
100
  return /* @__PURE__ */ c($e, { children: [
101
101
  d && /* @__PURE__ */ e(ve, { children: /* @__PURE__ */ e(he, { children: d }) }),
102
102
  /* @__PURE__ */ e(
103
- O,
103
+ L,
104
104
  {
105
105
  image: t,
106
106
  name: (l = i == null ? void 0 : i.meta) == null ? void 0 : l.accountName,
@@ -109,22 +109,22 @@ const $ = /* @__PURE__ */ s("div")({
109
109
  createdTweet: i == null ? void 0 : i.date
110
110
  }
111
111
  ),
112
- /* @__PURE__ */ e(Ae, { children: R(n) })
112
+ /* @__PURE__ */ e(Ae, { children: O(n) })
113
113
  ] });
114
114
  }, fe = ({ title: t, questionType: i, questionTypeData: o }) => /* @__PURE__ */ c(M, { children: [
115
115
  /* @__PURE__ */ e(
116
- B,
116
+ R,
117
117
  {
118
118
  questionTypeData: o,
119
119
  questionType: i,
120
- questionStatus: H.UNSET
120
+ questionStatus: Z.UNSET
121
121
  }
122
122
  ),
123
123
  t && /* @__PURE__ */ e(pe, { children: t })
124
124
  ] }), ge = ({ tweet: t }) => t ? /* @__PURE__ */ e(M, { children: /* @__PURE__ */ e(ye, { ...t, controlVideo: () => {
125
125
  } }) }) : null, Te = ({ action: t, questionType: i, inApp: o, insight: a, tweet: n }) => {
126
126
  var d;
127
- const l = P[i], r = Q[i];
127
+ const l = B[i], r = P[i];
128
128
  if (!l || !o || !o.notification)
129
129
  return null;
130
130
  const { title: p, image: I, imageMode: v } = o.notification;
@@ -154,7 +154,7 @@ const $ = /* @__PURE__ */ s("div")({
154
154
  name: "TitleIcon",
155
155
  class: "t16zzzei",
156
156
  propsAsIs: !0
157
- }), we = () => U, qe = /* @__PURE__ */ s(we())({
157
+ }), we = () => Q, qe = /* @__PURE__ */ s(we())({
158
158
  name: "Close",
159
159
  class: "c1sur0q2",
160
160
  propsAsIs: !0
@@ -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 = L((p) => {
261
+ })), r = K((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
- }), Ke = () => g, Ye = /* @__PURE__ */ s(Ke())({
300
+ }), Ye = () => g, _e = /* @__PURE__ */ s(Ye())({
301
301
  name: "Line2",
302
302
  class: "l1o7966d",
303
303
  propsAsIs: !0
304
- }), _e = () => g, He = /* @__PURE__ */ s(_e())({
304
+ }), Ke = () => g, Ze = /* @__PURE__ */ s(Ke())({
305
305
  name: "Line3",
306
306
  class: "lu9lyxq",
307
307
  propsAsIs: !0
308
- }), Je = () => /* @__PURE__ */ c(Fe, {
308
+ }), He = () => /* @__PURE__ */ c(Fe, {
309
309
  children: [/* @__PURE__ */ e(Ge, {
310
310
  children: /* @__PURE__ */ e("div", {})
311
- }), /* @__PURE__ */ e(Ye, {
311
+ }), /* @__PURE__ */ e(_e, {
312
312
  children: /* @__PURE__ */ e("div", {})
313
- }), /* @__PURE__ */ e(He, {
313
+ }), /* @__PURE__ */ e(Ze, {
314
314
  children: /* @__PURE__ */ e("div", {})
315
315
  })]
316
- }), Xe = /* @__PURE__ */ s("div")({
316
+ }), Je = /* @__PURE__ */ s("div")({
317
317
  name: "Container",
318
318
  class: "c10jy6zf",
319
319
  propsAsIs: !1
320
- }), Ze = () => u, es = /* @__PURE__ */ s(Ze())({
320
+ }), Xe = () => u, es = /* @__PURE__ */ s(Xe())({
321
321
  name: "CheckIcon",
322
322
  class: "c1c7scay",
323
323
  propsAsIs: !0
324
- }), ss = () => /* @__PURE__ */ c(Xe, {
324
+ }), ss = () => /* @__PURE__ */ c(Je, {
325
325
  children: [/* @__PURE__ */ e(es, {
326
326
  name: "icon-check"
327
327
  }), " Prediction results are in!"]
@@ -391,7 +391,7 @@ const $ = /* @__PURE__ */ s("div")({
391
391
  points: t
392
392
  }) => /* @__PURE__ */ c(ps, {
393
393
  children: [/* @__PURE__ */ c(ms, {
394
- children: ["You won ", /* @__PURE__ */ e(V, {
394
+ children: ["You won ", /* @__PURE__ */ e(U, {
395
395
  delay: 0.5,
396
396
  prefix: "+",
397
397
  suffix: " points",
@@ -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(Je, {}, r),
432
+ r !== 1 && /* @__PURE__ */ e(He, {}, 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,9 +458,9 @@ 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 = F(i), a = t.getFeature(J.GAMES), n = E(() => t.getActiveNotification(), [t, o]);
461
+ const [i] = y(t.getNotificationsStore()), o = V(i), a = t.getFeature(H.GAMES), n = E(() => t.getActiveNotification(), [t, o]);
462
462
  return x(() => {
463
- n && W.emit("notification", {
463
+ n && F.emit("notification", {
464
464
  action: "rendered",
465
465
  payload: {
466
466
  questionId: n.data.questionId,
@@ -476,7 +476,7 @@ 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 = G(), o = K(), a = Y();
479
+ const i = W(), o = G(), a = Y();
480
480
  return i && (a.appNotification || a.onboardingNotification) ? a.app && !a.onboardingNotification ? null : /* @__PURE__ */ e("div", { className: "StreamLayerSDK", children: /* @__PURE__ */ e(_, { customTheme: t ?? o.theme, themeMode: o.themeMode, children: /* @__PURE__ */ e(fs, { sdk: i }) }) }) : null;
481
481
  };
482
482
  export {
package/lib/es/points.js CHANGED
@@ -1,16 +1,16 @@
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 y, m as h, g as S, f, F as p, e as r, u as v, d as g, h as k } from "./provider.js";
4
- import { S as A } from "./useStreamLayerApp2.js";
5
- const I = /* @__PURE__ */ a("div")({
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
+ import { S as b } from "./useStreamLayerApp2.js";
5
+ const A = /* @__PURE__ */ a("div")({
6
6
  name: "PointsContainer",
7
7
  class: "psiob9b",
8
8
  propsAsIs: !1
9
- }), P = /* @__PURE__ */ a("div")({
9
+ }), I = /* @__PURE__ */ a("div")({
10
10
  name: "PointsIcon",
11
11
  class: "p1gqe4lh",
12
12
  propsAsIs: !1
13
- }), b = () => y, T = /* @__PURE__ */ a(b())({
13
+ }), P = () => y, T = /* @__PURE__ */ a(P())({
14
14
  name: "PointsSvg",
15
15
  class: "p15syg2y",
16
16
  propsAsIs: !0
@@ -26,8 +26,8 @@ const I = /* @__PURE__ */ a("div")({
26
26
  name: "PointsValue",
27
27
  class: "prj9b3v",
28
28
  propsAsIs: !1
29
- }), C = ({ points: s, onClick: e }) => /* @__PURE__ */ l(I, { className: h, onClick: e, children: [
30
- /* @__PURE__ */ t(P, { children: /* @__PURE__ */ t(T, { name: "icon-trophy-solid" }) }),
29
+ }), C = ({ points: s, onClick: e }) => /* @__PURE__ */ l(A, { className: h, onClick: e, children: [
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" }),
33
33
  /* @__PURE__ */ t(x, { children: /* @__PURE__ */ t(S, { value: s }) })
@@ -61,11 +61,11 @@ const I = /* @__PURE__ */ a("div")({
61
61
  }, M = ({ sdk: s }) => {
62
62
  if (!f(s.featuresList.getStore()))
63
63
  return null;
64
- const e = s.getFeature(A.GAMES);
64
+ const e = s.getFeature(b.GAMES);
65
65
  return e ? /* @__PURE__ */ t(j, { gamification: e }) : null;
66
66
  }, K = ({ theme: s }) => {
67
- const e = v(), n = g();
68
- return e ? /* @__PURE__ */ t("div", { className: "StreamLayerSDK", children: /* @__PURE__ */ t(k, { customTheme: s ?? n.theme, themeMode: n.themeMode, children: /* @__PURE__ */ t(M, { sdk: e }) }) }) : null;
67
+ const e = v(), n = k();
68
+ return e ? /* @__PURE__ */ t("div", { className: "StreamLayerSDK", children: /* @__PURE__ */ t(g, { customTheme: s ?? n.theme, themeMode: n.themeMode, children: /* @__PURE__ */ t(M, { sdk: e }) }) }) : null;
69
69
  };
70
70
  export {
71
71
  K as StreamLayerSDKPoints
@@ -4,7 +4,7 @@ var K = (e, t, n) => v4(e, typeof t != "symbol" ? t + "" : t, n);
4
4
  import { jsx as c, jsxs as E, Fragment as ae } from "react/jsx-runtime";
5
5
  import * as h from "react";
6
6
  import He, { useCallback as ie, useSyncExternalStore as g4, useState as D, useEffect as P, useRef as Q, createContext as E3, useContext as ct, useLayoutEffect as ui, useMemo as Ce, memo as y4, Component as k3, createElement as w4, PureComponent as b4, lazy as L4, Suspense as E4, forwardRef as I3 } from "react";
7
- import { p as k4, S as Te, a as Y1, j as fa, b as $, k as I4, Q as nt, c as Ot, A as S4, I as S3, l as x4, m as X2, n as T4 } from "./useStreamLayerApp2.js";
7
+ import { p as k4, S as Te, a as Y1, h as fa, Q as $, i as I4, j as nt, k as Ot, A as S4, I as S3, l as x4, m as X2, n as T4 } from "./useStreamLayerApp2.js";
8
8
  var J2 = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
9
9
  function x3(e) {
10
10
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
@@ -10980,60 +10980,60 @@ const BC = {
10980
10980
  ] });
10981
10981
  };
10982
10982
  export {
10983
- ci as $,
10984
- Hd as A,
10985
- Ec as B,
10986
- Ld as C,
10987
- _d as D,
10988
- zd as E,
10983
+ ff as $,
10984
+ xe as A,
10985
+ yC as B,
10986
+ c3 as C,
10987
+ sm as D,
10988
+ or as E,
10989
10989
  Ht as F,
10990
- If as G,
10990
+ dr as G,
10991
10991
  td as H,
10992
- D3 as I,
10993
- N3 as J,
10994
- Zs as K,
10995
- n2 as L,
10996
- cm as M,
10992
+ cm as I,
10993
+ Me as J,
10994
+ Aa as K,
10995
+ W6 as L,
10996
+ q6 as M,
10997
10997
  Pt as N,
10998
- Jm as O,
10998
+ m6 as O,
10999
10999
  GC as P,
11000
- yC as Q,
11001
- c3 as R,
11002
- YC as S,
11003
- sm as T,
11004
- or as U,
11005
- N6 as V,
11006
- Me as W,
11007
- Aa as X,
11008
- q6 as Y,
11009
- m6 as Z,
11010
- mt as _,
11011
- zC as a,
11012
- B6 as a0,
11013
- ca as a1,
11014
- KC as b,
11015
- FC as c,
11016
- DC as d,
11000
+ YC as Q,
11001
+ N6 as R,
11002
+ zC as S,
11003
+ mt as T,
11004
+ ci as U,
11005
+ B6 as V,
11006
+ $7 as W,
11007
+ ca as X,
11008
+ FC as Y,
11009
+ _d as Z,
11010
+ Hd as _,
11011
+ B as a,
11012
+ QC as a0,
11013
+ KC as a1,
11014
+ DC as b,
11015
+ rd as c,
11016
+ oa as d,
11017
11017
  A2 as e,
11018
- B as f,
11019
- oa as g,
11018
+ nd as f,
11019
+ d0 as g,
11020
11020
  OC as h,
11021
- Re as i,
11022
- W6 as j,
11021
+ Jt as i,
11022
+ Re as j,
11023
11023
  H as k,
11024
- rd as l,
11024
+ _3 as l,
11025
11025
  tn as m,
11026
- nd as n,
11027
- d0 as o,
11028
- Jt as p,
11029
- dr as q,
11030
- QC as r,
11026
+ O3 as n,
11027
+ Ec as o,
11028
+ Ld as p,
11029
+ zd as q,
11030
+ If as r,
11031
11031
  d as s,
11032
- _3 as t,
11032
+ D3 as t,
11033
11033
  PC as u,
11034
- xe as v,
11035
- O3 as w,
11036
- ff as x,
11037
- $7 as y,
11034
+ N3 as v,
11035
+ n2 as w,
11036
+ Zs as x,
11037
+ Jm as y,
11038
11038
  jd as z
11039
11039
  };