@streamlayer/react-ui 1.33.2 → 1.34.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 (38) hide show
  1. package/lib/app/app/Polymarket/index.d.ts +4 -0
  2. package/lib/app/app/Polymarket/index.js +56 -0
  3. package/lib/app/app/Polymarket/story.d.ts +2 -0
  4. package/lib/app/app/Polymarket/story.js +17 -0
  5. package/lib/app/masters/useSdkResponsive.js +1 -1
  6. package/lib/app/masters/useSdkScroll.js +1 -1
  7. package/lib/app/useSdkResponsive.js +1 -1
  8. package/lib/app/useSdkScroll.js +1 -1
  9. package/lib/app/webos/Advertisement/index.js +61 -61
  10. package/lib/app/webos/ExposedPauseAd/PauseAd.js +130 -103
  11. package/lib/app/webos/Question/index.js +30 -27
  12. package/lib/app/webos/index.d.ts +1 -0
  13. package/lib/app/webos/ui/Sidebar/index.js +145 -141
  14. package/lib/app/webos/ui/Sidebar/styles.d.ts +2 -0
  15. package/lib/app/webos/ui/Sidebar/styles.js +95 -85
  16. package/lib/assets/style.css +1 -1
  17. package/lib/{index-tnt2CtQe.js → index-Deo5_bIg.js} +6 -12
  18. package/lib/{index-DSi8Qgfs.js → index-Fv2CC2QU.js} +4 -4
  19. package/lib/ui/advertisement/overlay/externalAd/vast-player/useGAMPlayer.js +1 -1
  20. package/lib/ui/advertisement/overlay/externalAd/vast-player/useVastAds.js +1 -1
  21. package/lib/ui/gamification/question/inapp/notification/AdNotification/index.d.ts +1 -0
  22. package/lib/ui/gamification/question/inapp/notification/AdNotification/index.js +62 -48
  23. package/lib/ui/gamification/question/inapp/prediction-result/index.d.ts +1 -0
  24. package/lib/ui/gamification/question/inapp/prediction-result/index.js +4 -4
  25. package/lib/ui/gamification/question/inapp/prediction-result-ad/index.d.ts +1 -0
  26. package/lib/ui/gamification/question/inapp/prediction-result-ad/index.js +27 -16
  27. package/lib/ui/gamification/vote/insight-details/index.js +5 -5
  28. package/lib/ui/polymarket/index.d.ts +21 -0
  29. package/lib/ui/polymarket/index.js +226 -0
  30. package/lib/ui/polymarket/styles.d.ts +13 -0
  31. package/lib/ui/polymarket/styles.js +69 -0
  32. package/lib/utils/decorators/container.d.ts +1 -0
  33. package/lib/utils/decorators/container.js +9 -8
  34. package/lib/utils/decorators/styles.d.ts +1 -0
  35. package/lib/utils/decorators/styles.js +9 -4
  36. package/package.json +19 -16
  37. package/lib/ui/advertisement/overlay/externalAd/vast-player/useGAMStatic.d.ts +0 -10
  38. package/lib/ui/advertisement/overlay/externalAd/vast-player/useGAMStatic.js +0 -69
@@ -12,34 +12,42 @@ const b = /* @__PURE__ */ s("div")({
12
12
  class: "c18fzrta",
13
13
  propsAsIs: !1
14
14
  }), k = /* @__PURE__ */ s("div")({
15
- name: "Header",
16
- class: "hxfcca1",
15
+ name: "Content",
16
+ class: "cxfcca1",
17
17
  propsAsIs: !1
18
18
  }), V = /* @__PURE__ */ s("div")({
19
+ name: "ContentWrap",
20
+ class: "cz4xk2s",
21
+ propsAsIs: !1
22
+ }), Q = /* @__PURE__ */ s("div")({
23
+ name: "Header",
24
+ class: "h1udizru",
25
+ propsAsIs: !1
26
+ }), y = /* @__PURE__ */ s("div")({
19
27
  name: "BrandBlock",
20
- class: "bz4xk2s",
28
+ class: "b1keaj5j",
21
29
  propsAsIs: !1
22
- }), Q = /* @__PURE__ */ s("img")({
30
+ }), S = /* @__PURE__ */ s("img")({
23
31
  name: "LogoIcon",
24
- class: "l1udizru",
32
+ class: "l17io0yd",
25
33
  propsAsIs: !1
26
- }), y = /* @__PURE__ */ s("div")({
34
+ }), T = /* @__PURE__ */ s("div")({
27
35
  name: "BrandText",
28
- class: "b1keaj5j",
36
+ class: "b4ldrvh",
29
37
  propsAsIs: !1
30
- }), S = /* @__PURE__ */ s("div")({
38
+ }), M = /* @__PURE__ */ s("div")({
31
39
  name: "BrandNameContainer",
32
- class: "b17io0yd",
40
+ class: "bxfmzcm",
33
41
  propsAsIs: !1
34
- }), T = /* @__PURE__ */ s("span")({
42
+ }), _ = /* @__PURE__ */ s("span")({
35
43
  name: "BrandName",
36
- class: "b4ldrvh",
44
+ class: "baubznb",
37
45
  propsAsIs: !1
38
- }), M = /* @__PURE__ */ s("span")({
46
+ }), j = /* @__PURE__ */ s("span")({
39
47
  name: "Sponsored",
40
- class: "sxfmzcm",
48
+ class: "s1n8ue7o",
41
49
  propsAsIs: !1
42
- }), _ = (e) => /* @__PURE__ */ o("svg", {
50
+ }), H = (e) => /* @__PURE__ */ o("svg", {
43
51
  viewBox: "0 0 24 24",
44
52
  fill: "white",
45
53
  xmlns: "http://www.w3.org/2000/svg",
@@ -49,53 +57,53 @@ const b = /* @__PURE__ */ s("div")({
49
57
  clipRule: "evenodd",
50
58
  d: "M6.225 4.811a.75.75 0 0 1 1.06 0L12 9.525l4.715-4.714a.75.75 0 1 1 1.06 1.06L13.06 10.5l4.715 4.715a.75.75 0 0 1-1.06 1.06L12 11.56l-4.715 4.715a.75.75 0 0 1-1.06-1.06L10.94 10.5 6.225 5.785a.75.75 0 0 1 0-1.06z"
51
59
  })
52
- }), q = /* @__PURE__ */ s("button")({
60
+ }), W = /* @__PURE__ */ s("button")({
53
61
  name: "CloseButton",
54
- class: "caubznb",
62
+ class: "cexkm55",
55
63
  propsAsIs: !1
56
- }), f = () => d, H = /* @__PURE__ */ s(f())({
64
+ }), f = () => d, q = /* @__PURE__ */ s(f())({
57
65
  name: "FocusableVideo",
58
- class: "f1n8ue7o",
66
+ class: "filh2qp",
59
67
  propsAsIs: !0
60
- }), j = /* @__PURE__ */ s("div")({
68
+ }), D = /* @__PURE__ */ s("div")({
61
69
  name: "VideoWrapper",
62
- class: "vexkm55",
70
+ class: "v1x04fia",
63
71
  propsAsIs: !1
64
72
  }), m = () => ({
65
73
  isPlaying: e
66
- }) => e ? "none" : "block", W = /* @__PURE__ */ s("button")({
74
+ }) => e ? "none" : "block", P = /* @__PURE__ */ s("button")({
67
75
  name: "PlayPauseButton",
68
- class: "pilh2qp",
76
+ class: "p15di30w",
69
77
  propsAsIs: !1,
70
78
  vars: {
71
- "pilh2qp-0": [m()]
79
+ "p15di30w-0": [m()]
72
80
  }
73
81
  }), v = () => ({
74
82
  visible: e
75
- }) => e ? "flex" : "none", D = /* @__PURE__ */ s("div")({
83
+ }) => e ? "flex" : "none", Z = /* @__PURE__ */ s("div")({
76
84
  name: "CenterIndicator",
77
- class: "c1x04fia",
85
+ class: "cui9wi2",
78
86
  propsAsIs: !1,
79
87
  vars: {
80
- "c1x04fia-0": [v()]
88
+ "cui9wi2-0": [v()]
81
89
  }
82
- }), P = /* @__PURE__ */ s("div")({
90
+ }), z = /* @__PURE__ */ s("div")({
83
91
  name: "VideoBlock",
84
- class: "v15di30w",
92
+ class: "vddh3kx",
85
93
  propsAsIs: !1
86
94
  }), I = () => ({
87
95
  backgroundColor: e
88
96
  }) => e || "#0f6cd4", x = () => ({
89
97
  textColor: e
90
- }) => e || "#fff", Z = /* @__PURE__ */ s("div")({
98
+ }) => e || "#fff", N = /* @__PURE__ */ s("div")({
91
99
  name: "SendToUserButton",
92
- class: "sui9wi2",
100
+ class: "s13i81d3",
93
101
  propsAsIs: !1,
94
102
  vars: {
95
- "sui9wi2-0": [I()],
96
- "sui9wi2-1": [x()]
103
+ "s13i81d3-0": [I()],
104
+ "s13i81d3-1": [x()]
97
105
  }
98
- }), z = () => /* @__PURE__ */ o("svg", {
106
+ }), U = () => /* @__PURE__ */ o("svg", {
99
107
  fill: "white",
100
108
  style: {
101
109
  fill: "white",
@@ -110,52 +118,52 @@ const b = /* @__PURE__ */ s("div")({
110
118
  d: "M5.57502 27.5H34.9099C37.803 27.5 39.5 25.8713 39.5 22.645V5.355C39.5 2.12878 37.7869 0.5 34.4251 0.5H5.09014C2.19706 0.5 0.5 2.12878 0.5 5.355V22.645C0.5 25.8713 2.21323 27.5 5.57502 27.5ZM5.47805 25.1039C3.87796 25.1039 2.97286 24.2425 2.97286 22.6294V5.33933C2.97286 3.74189 3.87796 2.89618 5.47805 2.89618H34.5058C36.1059 2.89618 37.0272 3.74189 37.0272 5.355V22.645C37.0272 24.2425 36.1059 25.1039 34.5058 25.1039H5.47805ZM19.9919 18.1189C21.0263 18.1189 22.0285 17.7431 22.9496 16.9287L38.1586 3.66359L36.4776 2.01915L21.5435 15.0651C21.0425 15.5035 20.5253 15.7071 19.9919 15.7071C19.4586 15.7071 18.9414 15.5035 18.4403 15.0651L3.50622 2.01915L1.82532 3.66359L17.0342 16.9287C17.9554 17.7431 18.9575 18.1189 19.9919 18.1189ZM3.74866 25.4954L15.224 14.3602L13.5431 12.7315L2.06776 23.851L3.74866 25.4954ZM36.2676 25.5111L37.9484 23.8666L26.4569 12.7315L24.7598 14.3602L36.2676 25.5111Z",
111
119
  fill: "white"
112
120
  })
113
- }), N = /* @__PURE__ */ s("div")({
121
+ }), F = /* @__PURE__ */ s("div")({
114
122
  name: "SendToUserText",
115
- class: "sddh3kx",
123
+ class: "s1vr1bii",
116
124
  propsAsIs: !1
117
- }), U = /* @__PURE__ */ s("div")({
125
+ }), $ = /* @__PURE__ */ s("div")({
118
126
  name: "VideoStatus",
119
- class: "v13i81d3",
127
+ class: "v1st3522",
120
128
  propsAsIs: !1
121
- }), F = /* @__PURE__ */ s("h2")({
129
+ }), E = /* @__PURE__ */ s("h2")({
122
130
  name: "Title",
123
- class: "t1vr1bii",
131
+ class: "tjnj4vf",
124
132
  propsAsIs: !1
125
- }), $ = /* @__PURE__ */ s("p")({
133
+ }), G = /* @__PURE__ */ s("p")({
126
134
  name: "Description",
127
- class: "d1st3522",
135
+ class: "d1bj8s6q",
128
136
  propsAsIs: !1
129
- }), E = /* @__PURE__ */ s("div")({
137
+ }), J = /* @__PURE__ */ s("div")({
130
138
  name: "QRBlock",
131
- class: "qjnj4vf",
139
+ class: "q1nyi744",
132
140
  propsAsIs: !1
133
- }), G = /* @__PURE__ */ s("div")({
141
+ }), K = /* @__PURE__ */ s("div")({
134
142
  name: "QRDescBlock",
135
- class: "q1bj8s6q",
143
+ class: "q1ri138g",
136
144
  propsAsIs: !1
137
- }), J = /* @__PURE__ */ s("div")({
145
+ }), O = /* @__PURE__ */ s("div")({
138
146
  name: "LearnMore",
139
- class: "l1nyi744",
147
+ class: "l1asn3je",
140
148
  propsAsIs: !1
141
- }), K = /* @__PURE__ */ s("div")({
149
+ }), X = /* @__PURE__ */ s("div")({
142
150
  name: "QRHint",
143
- class: "q1ri138g",
151
+ class: "qa9pwin",
144
152
  propsAsIs: !1
145
- }), u = /* @__PURE__ */ s("div")({
153
+ }), A = /* @__PURE__ */ s("div")({
146
154
  name: "QRWrapper",
147
- class: "q1asn3je",
155
+ class: "q1j7gm7x",
148
156
  propsAsIs: !1
149
- }), A = () => i, B = /* @__PURE__ */ s(A())({
157
+ }), C = () => i, u = /* @__PURE__ */ s(C())({
150
158
  name: "StyledQRCode",
151
- class: "sa9pwin",
159
+ class: "s1sb0ho1",
152
160
  propsAsIs: !0
153
- }), O = p.forwardRef(({
161
+ }), Y = p.forwardRef(({
154
162
  value: e,
155
163
  size: a = 200,
156
164
  fgColor: n = "#0f172a",
157
- bgColor: r = "#ffffff",
158
- level: t = "M",
165
+ bgColor: t = "#ffffff",
166
+ level: r = "M",
159
167
  tabIndex: l = 0
160
168
  }, c) => /* @__PURE__ */ o("a", {
161
169
  ref: c,
@@ -167,43 +175,45 @@ const b = /* @__PURE__ */ s("div")({
167
175
  borderRadius: 10
168
176
  },
169
177
  tabIndex: l,
170
- children: /* @__PURE__ */ o(u, {
171
- children: /* @__PURE__ */ o(B, {
178
+ children: /* @__PURE__ */ o(A, {
179
+ children: /* @__PURE__ */ o(u, {
172
180
  value: e,
173
181
  size: a,
174
182
  fgColor: n,
175
- bgColor: r,
176
- level: t,
183
+ bgColor: t,
184
+ level: r,
177
185
  viewBox: `0 0 ${a} ${a}`
178
186
  })
179
187
  })
180
188
  }));
181
189
  export {
182
- V as BrandBlock,
183
- T as BrandName,
184
- S as BrandNameContainer,
185
- y as BrandText,
186
- D as CenterIndicator,
187
- q as CloseButton,
188
- _ as CloseIcon,
190
+ y as BrandBlock,
191
+ _ as BrandName,
192
+ M as BrandNameContainer,
193
+ T as BrandText,
194
+ Z as CenterIndicator,
195
+ W as CloseButton,
196
+ H as CloseIcon,
189
197
  g as Container,
190
- $ as Description,
191
- z as EnvelopeIcon,
192
- H as FocusableVideo,
193
- k as Header,
194
- J as LearnMore,
195
- Q as LogoIcon,
196
- W as PlayPauseButton,
197
- O as QR,
198
- E as QRBlock,
199
- G as QRDescBlock,
200
- K as QRHint,
201
- Z as SendToUserButton,
202
- N as SendToUserText,
203
- M as Sponsored,
204
- F as Title,
205
- P as VideoBlock,
206
- U as VideoStatus,
207
- j as VideoWrapper,
198
+ k as Content,
199
+ V as ContentWrap,
200
+ G as Description,
201
+ U as EnvelopeIcon,
202
+ q as FocusableVideo,
203
+ Q as Header,
204
+ O as LearnMore,
205
+ S as LogoIcon,
206
+ P as PlayPauseButton,
207
+ Y as QR,
208
+ J as QRBlock,
209
+ K as QRDescBlock,
210
+ X as QRHint,
211
+ N as SendToUserButton,
212
+ F as SendToUserText,
213
+ j as Sponsored,
214
+ E as Title,
215
+ z as VideoBlock,
216
+ $ as VideoStatus,
217
+ D as VideoWrapper,
208
218
  b as Wrap
209
219
  };