@streamlayer/react 1.23.2 → 1.24.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.
Files changed (174) hide show
  1. package/lib/app/masters.d.ts +0 -1
  2. package/lib/cjs/Question.js +1 -1
  3. package/lib/cjs/advertisement.js +203 -28
  4. package/lib/cjs/analytics.js +1 -1
  5. package/lib/cjs/auth.js +1 -1
  6. package/lib/cjs/bet-pack.js +1 -1
  7. package/lib/cjs/feature.js +1 -1
  8. package/lib/cjs/gamification-feature.js +1 -1
  9. package/lib/cjs/gamification-feature2.js +1 -1
  10. package/lib/cjs/hooks-n9ax4LRT.js +1 -0
  11. package/lib/cjs/index-ByUNFvMk.js +5 -0
  12. package/lib/cjs/index.js +1 -1
  13. package/lib/cjs/index10.js +1 -1
  14. package/lib/cjs/index11.js +1 -3
  15. package/lib/cjs/index12.js +1 -1
  16. package/lib/cjs/index13.js +1 -3
  17. package/lib/cjs/index14.js +4 -1
  18. package/lib/cjs/index15.js +1 -1
  19. package/lib/cjs/index16.js +5 -3
  20. package/lib/cjs/index2.js +1 -1
  21. package/lib/cjs/index3.js +1 -1
  22. package/lib/cjs/index4.js +5 -3
  23. package/lib/cjs/index5.js +1 -1
  24. package/lib/cjs/index6.js +1 -1
  25. package/lib/cjs/index7.js +1 -1
  26. package/lib/cjs/index8.js +1 -1
  27. package/lib/cjs/index9.js +7 -1
  28. package/lib/cjs/insight.js +1 -1
  29. package/lib/cjs/masters.js +1 -1
  30. package/lib/cjs/masters2.js +8 -1
  31. package/lib/cjs/notification.js +1 -1
  32. package/lib/cjs/pause-ad.js +1 -1
  33. package/lib/cjs/points.js +1 -1
  34. package/lib/cjs/polymarket.js +14 -9
  35. package/lib/cjs/sl-types.js +1 -1
  36. package/lib/cjs/storage.js +1 -1
  37. package/lib/cjs/theme.js +1 -1
  38. package/lib/cjs/useStreamLayerApp.js +1 -1
  39. package/lib/cjs/useStreamLayerApp2.js +17 -3
  40. package/lib/cjs/utils.js +47 -1
  41. package/lib/classic/app/masters.d.ts +0 -1
  42. package/lib/classic/cjs/Question.js +1 -1
  43. package/lib/classic/cjs/advertisement.js +203 -28
  44. package/lib/classic/cjs/analytics.js +1 -1
  45. package/lib/classic/cjs/auth.js +1 -1
  46. package/lib/classic/cjs/bet-pack.js +5 -3
  47. package/lib/classic/cjs/feature.js +1 -1
  48. package/lib/classic/cjs/gamification-feature.js +1 -1
  49. package/lib/classic/cjs/hooks-n9ax4LRT.js +1 -0
  50. package/lib/classic/cjs/index-ByUNFvMk.js +5 -0
  51. package/lib/classic/cjs/index.js +1 -1
  52. package/lib/classic/cjs/index10.js +1 -1
  53. package/lib/classic/cjs/index11.js +1 -1
  54. package/lib/classic/cjs/index12.js +1 -1
  55. package/lib/classic/cjs/index13.js +4 -3
  56. package/lib/classic/cjs/index2.js +5 -3
  57. package/lib/classic/cjs/index3.js +1 -1
  58. package/lib/classic/cjs/index4.js +1 -1
  59. package/lib/classic/cjs/index5.js +1 -1
  60. package/lib/classic/cjs/index6.js +1 -1
  61. package/lib/classic/cjs/index7.js +7 -1
  62. package/lib/classic/cjs/index8.js +1 -1
  63. package/lib/classic/cjs/index9.js +1 -3
  64. package/lib/classic/cjs/insight.js +1 -1
  65. package/lib/classic/cjs/notification.js +1 -1
  66. package/lib/classic/cjs/notification2.js +1 -1
  67. package/lib/classic/cjs/pause-ad.js +1 -1
  68. package/lib/classic/cjs/points.js +1 -1
  69. package/lib/classic/cjs/polymarket.js +14 -9
  70. package/lib/classic/cjs/sl-types.js +1 -1
  71. package/lib/classic/cjs/useStreamLayerApp.js +1 -1
  72. package/lib/classic/cjs/useStreamLayerApp2.js +17 -3
  73. package/lib/classic/cjs/utils.js +47 -1
  74. package/lib/classic/es/Question.js +258 -275
  75. package/lib/classic/es/advertisement.js +22128 -38694
  76. package/lib/classic/es/analytics.js +55 -57
  77. package/lib/classic/es/auth.js +8 -14
  78. package/lib/classic/es/bet-pack.js +2413 -2455
  79. package/lib/classic/es/feature.js +46 -95
  80. package/lib/classic/es/gamification-feature.js +2 -2
  81. package/lib/classic/es/hooks-n9ax4LRT.js +97 -0
  82. package/lib/classic/es/index-ByUNFvMk.js +3775 -0
  83. package/lib/classic/es/index.js +13 -16
  84. package/lib/classic/es/index10.js +2587 -83
  85. package/lib/classic/es/index11.js +305 -3087
  86. package/lib/classic/es/index12.js +121 -124
  87. package/lib/classic/es/index13.js +559 -589
  88. package/lib/classic/es/index2.js +1755 -2114
  89. package/lib/classic/es/index3.js +13 -13
  90. package/lib/classic/es/index4.js +4 -283
  91. package/lib/classic/es/index5.js +5 -5
  92. package/lib/classic/es/index6.js +285 -10
  93. package/lib/classic/es/index7.js +179 -6
  94. package/lib/classic/es/index8.js +5 -10
  95. package/lib/classic/es/index9.js +8 -318
  96. package/lib/classic/es/insight.js +54 -61
  97. package/lib/classic/es/notification.js +5 -5
  98. package/lib/classic/es/notification2.js +730 -787
  99. package/lib/classic/es/pause-ad.js +168 -191
  100. package/lib/classic/es/points.js +47 -55
  101. package/lib/classic/es/polymarket.js +4058 -4289
  102. package/lib/classic/es/sl-types.js +128 -298
  103. package/lib/classic/es/useStreamLayerApp.js +2 -2
  104. package/lib/classic/es/useStreamLayerApp2.js +9090 -11121
  105. package/lib/classic/es/utils.js +28 -28
  106. package/lib/classic/index.d.ts +0 -1
  107. package/lib/classic/source.css +110 -0
  108. package/lib/dist/cjs/gamification-feature.js +1 -1
  109. package/lib/dist/cjs/index-ByUNFvMk.js +5 -0
  110. package/lib/dist/cjs/index.js +1 -1
  111. package/lib/dist/cjs/masters.js +69 -3
  112. package/lib/dist/es/gamification-feature.js +2 -2
  113. package/lib/dist/es/index-ByUNFvMk.js +3775 -0
  114. package/lib/dist/es/index.js +7 -10
  115. package/lib/dist/es/masters.js +16944 -19645
  116. package/lib/dist/index.d.ts +7 -17
  117. package/lib/dist/source.css +64 -0
  118. package/lib/es/Question.js +101 -105
  119. package/lib/es/advertisement.js +22128 -38694
  120. package/lib/es/analytics.js +55 -57
  121. package/lib/es/auth.js +8 -14
  122. package/lib/es/bet-pack.js +18 -29
  123. package/lib/es/feature.js +46 -95
  124. package/lib/es/gamification-feature.js +2 -2
  125. package/lib/es/gamification-feature2.js +2 -2
  126. package/lib/es/hooks-n9ax4LRT.js +97 -0
  127. package/lib/es/index-ByUNFvMk.js +3775 -0
  128. package/lib/es/index.js +13 -17
  129. package/lib/es/index10.js +8 -274
  130. package/lib/es/index11.js +172 -837
  131. package/lib/es/index12.js +2587 -183
  132. package/lib/es/index13.js +258 -314
  133. package/lib/es/index14.js +813 -81
  134. package/lib/es/index15.js +305 -3087
  135. package/lib/es/index16.js +803 -1005
  136. package/lib/es/index2.js +980 -1133
  137. package/lib/es/index3.js +4 -3
  138. package/lib/es/index4.js +2401 -2431
  139. package/lib/es/index5.js +13 -13
  140. package/lib/es/index6.js +5 -285
  141. package/lib/es/index7.js +7 -10
  142. package/lib/es/index8.js +283 -5
  143. package/lib/es/index9.js +180 -10
  144. package/lib/es/insight.js +54 -61
  145. package/lib/es/masters.js +5 -7
  146. package/lib/es/masters2.js +538 -708
  147. package/lib/es/notification.js +663 -719
  148. package/lib/es/pause-ad.js +168 -191
  149. package/lib/es/points.js +48 -56
  150. package/lib/es/polymarket.js +4058 -4289
  151. package/lib/es/sl-types.js +128 -317
  152. package/lib/es/storage.js +74 -75
  153. package/lib/es/theme.js +3 -190
  154. package/lib/es/useStreamLayerApp.js +2 -2
  155. package/lib/es/useStreamLayerApp2.js +9090 -11121
  156. package/lib/es/utils.js +28 -28
  157. package/lib/index.d.ts +0 -1
  158. package/lib/source.css +120 -0
  159. package/lib/style.css +1 -1
  160. package/package.json +21 -24
  161. package/lib/cjs/hooks-WfHlJH12.js +0 -1
  162. package/lib/cjs/index-eShKGO10.js +0 -1
  163. package/lib/cjs/style.css +0 -1
  164. package/lib/classic/cjs/hooks-WfHlJH12.js +0 -1
  165. package/lib/classic/cjs/index-eShKGO10.js +0 -1
  166. package/lib/classic/cjs/style.css +0 -1
  167. package/lib/classic/es/hooks-WfHlJH12.js +0 -98
  168. package/lib/classic/es/index-eShKGO10.js +0 -3757
  169. package/lib/classic/style.css +0 -1
  170. package/lib/dist/cjs/index-eShKGO10.js +0 -1
  171. package/lib/dist/es/index-eShKGO10.js +0 -3757
  172. package/lib/dist/style.css +0 -1
  173. package/lib/es/hooks-WfHlJH12.js +0 -98
  174. package/lib/es/index-eShKGO10.js +0 -3757
package/lib/es/index9.js CHANGED
@@ -1,12 +1,182 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import { s as styled_default } from "./sl-types.js";
3
- const e = /* @__PURE__ */ styled_default("div")({
4
- name: "Container",
5
- class: "cqg02m",
6
- propsAsIs: false
7
- });
8
- const i = ({ children: r, style: o, loading: t }) => t ? /* @__PURE__ */ jsx(e, { style: o, children: r }) : r;
1
+ import { jsx as F } from "react/jsx-runtime";
2
+ import { d as n } from "./index12.js";
3
+ import { useEffect as D, useState as S, useCallback as C } from "react";
4
+ import { s as I } from "./sl-types.js";
5
+ import { CountdownCircleTimer as t } from "react-countdown-circle-timer";
6
+ import { B as a } from "./index8.js";
7
+ const f = {
8
+ BLUE_QUESTION_ACTION_BTN: "#1589ee",
9
+ WHITE: "#FFFFFF",
10
+ BLUE: "#2d6ffd",
11
+ GREY_PRIMARY: "#909395",
12
+ GREY_PRIMARY_ONBOARDING_INAPP: "#B5B7B8",
13
+ PRIMARY_1: "#1D7BFF",
14
+ // main
15
+ PRIMARY_2: "#095CD1",
16
+ // hover, active, ...etc (darken 10%)
17
+ PRIMARY_TEXT: "#090E13",
18
+ SECONDARY_TEXT: "rgba(10, 14, 19, 0.70)",
19
+ QUESTION_TYPE_ICON: "#1D7BFF",
20
+ QUESTION_BODY_TEXT: "#090E13",
21
+ PRESENTED_BY_TEXT: "#090E13",
22
+ SUCCESS: "#107D57",
23
+ UNSUCCESS: "#DF2F3B",
24
+ SECONDARY_RED1: "#DF2F3B",
25
+ NEUTRALS_WHITE: "#FFFFFF",
26
+ NEUTRALS_WHITE1: "#FFFFFF",
27
+ NEUTRALS_GRAY1: "#F7F7F7",
28
+ NEUTRALS_GRAY2: "#F2F2F1",
29
+ NEUTRALS_GRAY3: "#E8E8E8",
30
+ NEUTRALS_GRAY4: "#D9D9D6",
31
+ NEUTRALS_GRAY5: "#B1B3B3",
32
+ NEUTRALS_GRAY6: "#888B8D",
33
+ NEUTRALS_GRAY7: "#6B6F73",
34
+ NEUTRALS_GRAY9: "#25282A",
35
+ SDK_CONTAINER_BG: "#F7F7F7",
36
+ SDK_WHITE_CONTAINER_BG: "#fff",
37
+ SDK_DARK_CONTAINER_BG: "#fff",
38
+ SDK_PREDICTION_RESULT_SUCCESS_BG: "#fff",
39
+ SDK_PREDICTION_RESULT_INCORRECT_BG: "#fff",
40
+ SDK_PREDICTION_RESULT_SUCCESS_TEXT: "#107D57",
41
+ SDK_PREDICTION_RESULT_ERROR_TITLE: "#090E13",
42
+ SDK_PREDICTION_RESULT_ERROR_SUBTITLE: "#DF2F3B",
43
+ SDK_PREDICTION_RESULT_CLOSE_ICON: "#6B6F73",
44
+ SDK_PREDICTION_FEEDBACK_SUCCESS_ICON: "#107D57",
45
+ SDK_PREDICTION_FEEDBACK_INCORRECT_RECT1: "#CD2525",
46
+ SDK_PREDICTION_FEEDBACK_INCORRECT_RECT2: "#fff",
47
+ PREDICTION_BG_LINES_CORRECT: "#01AB58",
48
+ PREDICTION_BG_LINES_INCORRECT: "#888B8D",
49
+ SKELETON_COLOR_1: "#f1efef",
50
+ SKELETON_COLOR_2: "#f9f8f8",
51
+ TABS_CONTAINER_BG: "#F2F2F1",
52
+ TABS_ACTIVE_BG: "#FFFFFF",
53
+ TABS_COLOR: "#6B6F73",
54
+ TABS_ACTIVE_COLOR: "#1D7BFF",
55
+ CARD_BG: "#FFFFFF",
56
+ CARD_BORDER: "#fff",
57
+ BORDER: "#E8E8E8",
58
+ VOTE_BTN_BG: "#F7F7F7",
59
+ VOTE_BTN_BORDER: "rgb(232, 232, 232)",
60
+ VOTE_BTN_DISABLED_BORDER: "#B1B3B3",
61
+ VOTE_BTN_SELECTED_BORDER: "#25282A",
62
+ VOTE_BTN_NOT_SELECTED_BORDER: "#E8E8E8",
63
+ VOTE_BTN_SELECTED_BG: "#FFFFFF",
64
+ VOTE_BTN_SELECTED_BG_AD_UNIT: "#FFFFFF",
65
+ VOTE_BTN_NOT_SELECTED_BG: "#FFFFFF",
66
+ VOTE_BTN_NOT_SELECTED_BG_UNSET: "rgb(196, 196, 196)",
67
+ VOTED_ANSWER_BG: "#FFFFFF",
68
+ VOTED_BTN_RCT_BG: "#2d5694",
69
+ IN_APP_BG: "rgba(255, 255, 255, 0.90)",
70
+ IN_APP_QUESTION_TYPE_ICON: "#1D7BFF",
71
+ IN_APP_QUESTION_TYPE_LABEL: "#82899E",
72
+ IN_APP_QUESTION_QUOTE: "rgba(10, 14, 19, 0.70)",
73
+ IN_APP_QUESTION_RESULT_SUBTITLE_BG: "#1D7BFF",
74
+ IN_APP_QUESTION_RESULT_LINE: "#babfc5",
75
+ QUOTE_BORDER: "#E8E8E8",
76
+ QUOTE_TEXT: "rgba(10, 14, 19, 0.70)"
77
+ }, c = {
78
+ BG_PRIMARY: "#13212b",
79
+ BG_SECONDARY: "#152430",
80
+ BG_SECONDARY1: "#435059",
81
+ BORDER_PRIMARY: "rgba(255, 255, 255, 0.1)",
82
+ TEXT_PRIMARY: "#f9f9f9",
83
+ TEXT_PRIMARY1: "#f9f9f9",
84
+ TEXT_SECONDARY: "rgba(255, 255, 255, 0.8)",
85
+ TEXT_SECONDARY1: "#878787",
86
+ WHITE: "#fff"
87
+ }, l = ["#107D57", "#DF2F3B", "#DF2F3B", "#E8E8E8"], L = "#cee5de", P = "#f9d6d8", U = "#E8E8E8", x = {
88
+ xs: 324,
89
+ sm: 576,
90
+ md: 768,
91
+ lg: 992,
92
+ xl: 1200,
93
+ xxl: 1440
94
+ };
95
+ Object.entries(f).reduce((_, [E, T]) => `
96
+ ${_}
97
+ --color-${E.toLowerCase().replaceAll("_", "-")}: ${T};
98
+ `, "");
99
+ Object.entries(c).reduce((_, [E, T]) => `
100
+ ${_}
101
+ --color-adv-${E.toLowerCase().replaceAll("_", "-")}: ${T};
102
+ `, "");
103
+ const d = (_) => {
104
+ const { Component: E, options: T, customOptions: e, autoFocus: R, ...O } = _, N = n.useFocusable({
105
+ ...T,
106
+ ...e,
107
+ onEnterPress: () => _.onClick?.({ currentTarget: N.ref.current, stopPropagation: () => {
108
+ } })
109
+ });
110
+ return D(() => {
111
+ R && N.focusSelf();
112
+ }, []), /* @__PURE__ */ F(E, { ...O, ...N, "data-is-with-focus": "true" });
113
+ };
114
+ function Q(_, E) {
115
+ return ({ webos: T, options: e, ...R }) => T ? /* @__PURE__ */ F(d, { Component: _, options: E, customOptions: e, ...R }) : /* @__PURE__ */ F(_, { ...R });
116
+ }
117
+ const m = [10, 10, 1, 0], G = /* @__PURE__ */ I("div")({
118
+ name: "RemainingTimeCircle",
119
+ class: "r165427",
120
+ propsAsIs: !1
121
+ }), p = /* @__PURE__ */ I("div")({
122
+ name: "RemainingTime",
123
+ class: "r17garf3",
124
+ propsAsIs: !1
125
+ }), Y = L, B = P, o = U, X = ({
126
+ className: _,
127
+ duration: E = 30,
128
+ onTimerExpired: T,
129
+ isPlaying: e = !0
130
+ }) => /* @__PURE__ */ F(t, {
131
+ isPlaying: e,
132
+ strokeWidth: 0,
133
+ duration: E,
134
+ colors: B,
135
+ size: 24,
136
+ onComplete: T,
137
+ children: ({
138
+ remainingTime: R
139
+ }) => /* @__PURE__ */ F(p, {
140
+ className: _,
141
+ children: E === 0 ? 0 : R
142
+ })
143
+ }), M = ({
144
+ isPlaying: _ = !0,
145
+ duration: E = 30,
146
+ onTimerExpired: T
147
+ }) => {
148
+ const [e, R] = S(E > 10 ? Y : B), [O, N] = S(2);
149
+ D(() => {
150
+ E === 0 && (N(0), R(o));
151
+ }, [E]);
152
+ const i = ({
153
+ remainingTime: r
154
+ }) => /* @__PURE__ */ F(G, {
155
+ children: E === 0 ? 0 : r
156
+ }), s = C(() => {
157
+ T?.(), R(o);
158
+ }, [T, R]), A = C((r) => {
159
+ r === 10 && R(B);
160
+ }, [R]);
161
+ return /* @__PURE__ */ F(t, {
162
+ isPlaying: _,
163
+ duration: E,
164
+ colors: l,
165
+ colorsTime: m,
166
+ size: 32,
167
+ strokeWidth: O,
168
+ trailStrokeWidth: 2,
169
+ trailColor: e,
170
+ onComplete: s,
171
+ onUpdate: A,
172
+ children: i
173
+ });
174
+ }, W = ({ height: _ = "37px", width: E = "37px" }) => /* @__PURE__ */ F("div", { style: { height: _, width: E }, children: /* @__PURE__ */ F(a, { name: "loader" }) });
9
175
  export {
10
- e,
11
- i
176
+ x as A,
177
+ X as G,
178
+ M as L,
179
+ f as R,
180
+ Q as b,
181
+ W as d
12
182
  };
package/lib/es/insight.js CHANGED
@@ -1,86 +1,79 @@
1
- import { jsx, jsxs } from "react/jsx-runtime";
2
- import { h } from "./index8.js";
3
- import { u as useStore, s as styled_default } from "./sl-types.js";
4
- import { useRef, useEffect } from "react";
5
- import { h as ht } from "./Question.js";
6
- import { S as SdkOverlayType } from "./useStreamLayerApp2.js";
7
- import { B, z, j } from "./hooks-WfHlJH12.js";
8
- const b = () => ht, v = /* @__PURE__ */ styled_default(b())({
1
+ import { jsx as u, jsxs as c } from "react/jsx-runtime";
2
+ import { h as p } from "./index7.js";
3
+ import { u as a, s as h } from "./sl-types.js";
4
+ import { useRef as f, useEffect as l } from "react";
5
+ import { _ as I } from "./Question.js";
6
+ import { S as g } from "./useStreamLayerApp2.js";
7
+ import { Y as S, _ as k, g as Q } from "./hooks-n9ax4LRT.js";
8
+ const y = () => I, A = /* @__PURE__ */ h(y())({
9
9
  name: "QuestionWrap",
10
10
  class: "q10hhsxv",
11
- propsAsIs: true
12
- }), w = ({
11
+ propsAsIs: !0
12
+ }), b = ({
13
13
  gamification: e,
14
- sdk: n,
15
- persistent: o,
16
- skipAutoClose: p,
17
- hideHeader: f,
14
+ sdk: o,
15
+ persistent: i,
16
+ skipAutoClose: n,
17
+ hideHeader: d,
18
18
  insightId: t
19
19
  }) => {
20
- const r = useRef(""), i = useStore(e.openedQuestion.$store);
21
- return useEffect(() => t ? (!o || e.isOpenedQuestion(t) || (r.current = t, e.getFeedItem(t).then((u) => {
22
- var c;
23
- r.current === t && ((c = u == null ? void 0 : u.attributes) == null ? void 0 : c.attributes.case) === "insight" && e.openQuestion(t, u);
20
+ const r = f(""), m = a(e.openedQuestion.$store);
21
+ return l(() => t ? (!i || e.isOpenedQuestion(t) || (r.current = t, e.getFeedItem(t).then((s) => {
22
+ r.current === t && s?.attributes?.attributes.case === "insight" && e.openQuestion(t, s);
24
23
  })), () => {
25
24
  r.current = "";
26
25
  }) : (e.activeQuestionId.subscribe(({
27
26
  data: s
28
27
  }) => {
29
- var u;
30
- s && ((u = s.feedItem) == null ? void 0 : u.type) === "insight" && (!o || e.isOpenedQuestion(s.feedItem.id) || (r.current = s.feedItem.id, e.openQuestion(s.feedItem.id, s.feedItem))), !s && r.current && (e.closeQuestion(r.current), r.current = "");
28
+ s && s.feedItem?.type === "insight" && (!i || e.isOpenedQuestion(s.feedItem.id) || (r.current = s.feedItem.id, e.openQuestion(s.feedItem.id, s.feedItem))), !s && r.current && (e.closeQuestion(r.current), r.current = "");
31
29
  }), () => {
32
- }), [e, o, t]), i ? /* @__PURE__ */ jsx(v, {
33
- sdk: n,
34
- skipAutoClose: p,
35
- hideHeader: f,
30
+ }), [e, i, t]), m ? /* @__PURE__ */ u(A, {
31
+ sdk: o,
32
+ skipAutoClose: n,
33
+ hideHeader: d,
36
34
  gamification: e,
37
- hideSponsor: true
35
+ hideSponsor: !0
38
36
  }) : null;
39
- }, D = ({
37
+ }, v = ({
40
38
  sdk: e,
41
- persistent: n,
42
- skipAutoClose: o,
43
- insightId: p,
44
- hideHeader: f
39
+ persistent: o,
40
+ skipAutoClose: i,
41
+ insightId: n,
42
+ hideHeader: d
45
43
  }) => {
46
- if (!useStore(e.featuresList.getStore()))
44
+ if (!a(e.featuresList.getStore()))
47
45
  return null;
48
- const r = e.getFeature(SdkOverlayType.GAMES);
49
- return r ? /* @__PURE__ */ jsx(w, {
50
- insightId: p,
46
+ const t = e.getFeature(g.GAMES);
47
+ return t ? /* @__PURE__ */ u(b, {
48
+ insightId: n,
51
49
  sdk: e,
52
- persistent: n,
53
- hideHeader: f,
54
- gamification: r,
55
- skipAutoClose: o
50
+ persistent: o,
51
+ hideHeader: d,
52
+ gamification: t,
53
+ skipAutoClose: i
56
54
  }) : null;
57
- };
58
- const StreamLayerSDKInsight = ({
59
- event,
60
- theme,
61
- hideHeader,
62
- skipAutoClose,
63
- persistent
55
+ }, M = ({
56
+ event: e,
57
+ theme: o,
58
+ hideHeader: i,
59
+ skipAutoClose: n,
60
+ persistent: d
64
61
  }) => {
65
- const sdk = B();
66
- const baseTheme = z();
67
- if (!sdk) {
68
- return null;
69
- }
70
- return /* @__PURE__ */ jsxs("div", { className: "StreamLayerSDK", children: [
71
- /* @__PURE__ */ jsx(h, { customTheme: theme ?? baseTheme.theme, themeMode: baseTheme.themeMode, children: /* @__PURE__ */ jsx(
72
- D,
62
+ const t = S(), r = k();
63
+ return t ? /* @__PURE__ */ c("div", { className: "StreamLayerSDK", children: [
64
+ /* @__PURE__ */ u(p, { customTheme: o ?? r.theme, themeMode: r.themeMode, children: /* @__PURE__ */ u(
65
+ v,
73
66
  {
74
- skipAutoClose,
75
- sdk,
76
- hideHeader,
77
- persistent
67
+ skipAutoClose: n,
68
+ sdk: t,
69
+ hideHeader: i,
70
+ persistent: d
78
71
  }
79
72
  ) }),
80
- event !== void 0 && /* @__PURE__ */ jsx(j, { event })
81
- ] });
73
+ e !== void 0 && /* @__PURE__ */ u(Q, { event: e })
74
+ ] }) : null;
82
75
  };
83
76
  export {
84
- StreamLayerSDKInsight,
85
- D as StreamLayerSDKInsightUI
77
+ M as StreamLayerSDKInsight,
78
+ v as StreamLayerSDKInsightUI
86
79
  };
package/lib/es/masters.js CHANGED
@@ -1,11 +1,9 @@
1
1
  import "react/jsx-runtime";
2
- import { S, M } from "./masters2.js";
2
+ import { S as s, M as m } from "./masters2.js";
3
3
  import "react";
4
- import "./useStreamLayerApp2.js";
5
- import { B } from "./hooks-WfHlJH12.js";
6
- import "./index16.js";
4
+ import { Y as S } from "./hooks-n9ax4LRT.js";
7
5
  export {
8
- S as MastersStreamLayerProvider,
9
- M as MastersStreamLayerSDKReact,
10
- B as useStreamLayer
6
+ s as MastersStreamLayerProvider,
7
+ m as MastersStreamLayerSDKReact,
8
+ S as useStreamLayer
11
9
  };