@streamlayer/react 1.15.5 → 1.16.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.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/notification.js +1 -1
- package/lib/cjs/provider.js +16 -16
- package/lib/cjs/useStreamLayerApp2.js +17 -17
- package/lib/classic/cjs/index.js +1 -1
- package/lib/classic/cjs/notification.js +1 -1
- package/lib/classic/cjs/provider.js +16 -16
- package/lib/classic/cjs/useStreamLayerApp2.js +17 -17
- package/lib/classic/es/index.js +11 -12
- package/lib/classic/es/notification.js +6 -6
- package/lib/classic/es/provider.js +1701 -1697
- package/lib/classic/es/useStreamLayerApp2.js +7310 -14954
- package/lib/classic/style.css +1 -1
- package/lib/dist/cjs/masters.js +42 -42
- package/lib/dist/es/masters.js +20995 -28635
- package/lib/dist/style.css +1 -1
- package/lib/es/index.js +11 -12
- package/lib/es/notification.js +6 -6
- package/lib/es/provider.js +1698 -1694
- package/lib/es/useStreamLayerApp2.js +7310 -14954
- package/lib/style.css +1 -1
- package/package.json +17 -17
package/lib/classic/es/index.js
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import { Q as
|
|
2
|
-
import "./useStreamLayerApp2.js";
|
|
1
|
+
import { Q as m, S, a1 as o, h as i, u as s, b as y, Y as L } from "./provider.js";
|
|
3
2
|
import "react/jsx-runtime";
|
|
4
3
|
import "react";
|
|
5
|
-
import { StreamLayerSDKNotification as
|
|
4
|
+
import { StreamLayerSDKNotification as p, StreamLayerSDKNotificationUI as u } from "./notification.js";
|
|
6
5
|
export {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
6
|
+
m as StreamLayerProvider,
|
|
7
|
+
S as StreamLayerSDKEvent,
|
|
8
|
+
p as StreamLayerSDKNotification,
|
|
9
|
+
u as StreamLayerSDKNotificationUI,
|
|
10
|
+
o as StreamLayerSDKReact,
|
|
11
|
+
i as StreamLayerThemeProvider,
|
|
12
|
+
s as useStreamLayer,
|
|
13
|
+
y as useStreamLayerTheme,
|
|
14
|
+
L as useStreamLayerUI
|
|
16
15
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { k as u,
|
|
2
|
-
import { j as m, Q as A, k as K, S as Z } from "./useStreamLayerApp2.js";
|
|
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";
|
|
3
2
|
import { jsxs as c, jsx as e } from "react/jsx-runtime";
|
|
4
|
-
import { useState as y, useCallback as
|
|
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",
|
|
@@ -117,7 +117,7 @@ const $ = /* @__PURE__ */ s("div")({
|
|
|
117
117
|
{
|
|
118
118
|
questionTypeData: o,
|
|
119
119
|
questionType: i,
|
|
120
|
-
questionStatus:
|
|
120
|
+
questionStatus: Z.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 = K((p) => {
|
|
262
262
|
p || l.disconnect(), l.observe(p);
|
|
263
263
|
}, [l]);
|
|
264
264
|
return E(() => () => {
|
|
@@ -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(H.GAMES), n = E(() => t.getActiveNotification(), [t, o]);
|
|
462
462
|
return x(() => {
|
|
463
463
|
n && F.emit("notification", {
|
|
464
464
|
action: "rendered",
|