@streamlayer/react 1.23.0 → 1.23.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/pause-ad.d.ts +2 -4
- package/lib/app/polymarket.d.ts +7 -0
- package/lib/cjs/Question.js +1 -1
- package/lib/cjs/advertisement.js +1 -1
- package/lib/cjs/auth.js +1 -1
- package/lib/cjs/bet-pack.js +1 -1
- package/lib/cjs/feature.js +1 -0
- package/lib/cjs/hooks-WfHlJH12.js +1 -0
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/index10.js +1 -4
- package/lib/cjs/index11.js +4 -1
- package/lib/cjs/index12.js +1 -1
- package/lib/cjs/index13.js +1 -1
- package/lib/cjs/index14.js +1 -1
- package/lib/cjs/index15.js +1 -5
- package/lib/cjs/index16.js +5 -0
- package/lib/cjs/index2.js +1 -1
- package/lib/cjs/index3.js +1 -1
- package/lib/cjs/index4.js +1 -1
- package/lib/cjs/index7.js +1 -1
- package/lib/cjs/index8.js +1 -1
- package/lib/cjs/index9.js +1 -1
- package/lib/cjs/insight.js +1 -1
- package/lib/cjs/masters.js +1 -1
- package/lib/cjs/masters2.js +4 -4
- package/lib/cjs/notification.js +1 -1
- package/lib/cjs/pause-ad.js +1 -1
- package/lib/cjs/points.js +1 -1
- package/lib/cjs/polymarket.js +19 -0
- package/lib/cjs/storage.js +1 -1
- package/lib/cjs/useStreamLayerApp2.js +5 -5
- package/lib/classic/app/pause-ad.d.ts +2 -4
- package/lib/classic/app/polymarket.d.ts +7 -0
- package/lib/classic/cjs/Question.js +1 -1
- package/lib/classic/cjs/advertisement.js +1 -1
- package/lib/classic/cjs/analytics.js +1 -1
- package/lib/classic/cjs/auth.js +1 -1
- package/lib/classic/cjs/bet-pack.js +3 -3
- package/lib/classic/cjs/feature.js +1 -0
- package/lib/classic/cjs/hooks-WfHlJH12.js +1 -0
- package/lib/classic/cjs/index.js +1 -1
- package/lib/classic/cjs/index10.js +1 -1
- package/lib/classic/cjs/index11.js +1 -1
- package/lib/classic/cjs/index12.js +1 -4
- package/lib/classic/cjs/index13.js +4 -0
- package/lib/classic/cjs/index2.js +2 -2
- package/lib/classic/cjs/index5.js +1 -1
- package/lib/classic/cjs/index6.js +1 -1
- package/lib/classic/cjs/index7.js +1 -1
- package/lib/classic/cjs/index8.js +1 -1
- package/lib/classic/cjs/index9.js +1 -1
- package/lib/classic/cjs/insight.js +1 -1
- package/lib/classic/cjs/notification.js +1 -1
- package/lib/classic/cjs/notification2.js +1 -1
- package/lib/classic/cjs/pause-ad.js +1 -1
- package/lib/classic/cjs/points.js +1 -1
- package/lib/classic/cjs/polymarket.js +19 -0
- package/lib/classic/cjs/useStreamLayerApp2.js +5 -5
- package/lib/classic/es/Question.js +4 -4
- package/lib/classic/es/advertisement.js +6 -6
- package/lib/classic/es/analytics.js +1 -1
- package/lib/classic/es/auth.js +1 -1
- package/lib/classic/es/bet-pack.js +18 -17
- package/lib/classic/es/feature.js +63 -0
- package/lib/classic/es/hooks-WfHlJH12.js +98 -0
- package/lib/classic/es/index.js +2 -2
- package/lib/classic/es/index10.js +82 -2295
- package/lib/classic/es/index11.js +2351 -179
- package/lib/classic/es/index12.js +170 -822
- package/lib/classic/es/index13.js +835 -0
- package/lib/classic/es/index2.js +127 -126
- package/lib/classic/es/index5.js +4 -5
- package/lib/classic/es/index6.js +5 -11
- package/lib/classic/es/index7.js +5 -62
- package/lib/classic/es/index8.js +7 -315
- package/lib/classic/es/index9.js +313 -81
- package/lib/classic/es/insight.js +2 -2
- package/lib/classic/es/notification.js +2 -2
- package/lib/classic/es/notification2.js +14 -13
- package/lib/classic/es/pause-ad.js +20 -20
- package/lib/classic/es/points.js +15 -14
- package/lib/classic/es/polymarket.js +6670 -0
- package/lib/classic/es/useStreamLayerApp2.js +143 -119
- package/lib/dist/cjs/masters.js +23 -23
- package/lib/dist/es/masters.js +189 -165
- package/lib/dist/index.d.ts +17 -6
- package/lib/dist/style.css +1 -1
- package/lib/es/Question.js +2 -2
- package/lib/es/advertisement.js +5 -5
- package/lib/es/auth.js +1 -1
- package/lib/es/bet-pack.js +1 -1
- package/lib/es/feature.js +63 -0
- package/lib/es/hooks-WfHlJH12.js +98 -0
- package/lib/es/index.js +2 -2
- package/lib/es/index10.js +236 -804
- package/lib/es/index11.js +822 -170
- package/lib/es/index12.js +166 -302
- package/lib/es/index13.js +313 -81
- package/lib/es/index14.js +82 -2350
- package/lib/es/index15.js +2330 -1229
- package/lib/es/index16.js +1254 -0
- package/lib/es/index2.js +118 -117
- package/lib/es/index3.js +3 -61
- package/lib/es/index4.js +3 -3
- package/lib/es/index7.js +5 -7
- package/lib/es/index8.js +5 -9
- package/lib/es/index9.js +7 -263
- package/lib/es/insight.js +2 -2
- package/lib/es/masters.js +1 -1
- package/lib/es/masters2.js +25 -24
- package/lib/es/notification.js +8 -7
- package/lib/es/pause-ad.js +20 -20
- package/lib/es/points.js +6 -5
- package/lib/es/polymarket.js +6670 -0
- package/lib/es/storage.js +2 -2
- package/lib/es/useStreamLayerApp2.js +143 -119
- package/lib/style.css +1 -1
- package/package.json +24 -14
- package/lib/cjs/hooks-B0Qttldg.js +0 -1
- package/lib/classic/cjs/hooks-B0Qttldg.js +0 -1
- package/lib/classic/es/hooks-B0Qttldg.js +0 -98
- package/lib/es/hooks-B0Qttldg.js +0 -98
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsxs as C, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { s as o, u as T } from "./sl-types.js";
|
|
3
3
|
import { createContext as X, useContext as l0, useRef as j, useState as x, useEffect as e0 } from "react";
|
|
4
|
-
import { O as o0 } from "./
|
|
5
|
-
import { y as s0, E as R } from "./
|
|
6
|
-
import { e as i0, b as a0 } from "./
|
|
4
|
+
import { O as o0 } from "./index10.js";
|
|
5
|
+
import { y as s0, E as R } from "./index9.js";
|
|
6
|
+
import { e as i0, b as a0 } from "./index12.js";
|
|
7
7
|
import { B as f } from "./index4.js";
|
|
8
8
|
import { Q as b, P as t0, A as Z, a as W, b as n0 } from "./useStreamLayerApp2.js";
|
|
9
|
-
import { e as C0, t as d0 } from "./
|
|
9
|
+
import { e as C0, t as d0 } from "./index13.js";
|
|
10
10
|
import { y as c0 } from "./utils.js";
|
|
11
11
|
const r0 = X({
|
|
12
12
|
sdk: null,
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { jsx as Q, jsxs as ye, Fragment as el } from "react/jsx-runtime";
|
|
2
|
-
import { h as By } from "./
|
|
2
|
+
import { h as By } from "./index7.js";
|
|
3
3
|
import { c as Ti, s as te, u as Qs } from "./sl-types.js";
|
|
4
4
|
import { a as My, f as Uy, b as Fy } from "./analytics.js";
|
|
5
5
|
import { useEffect as Bt, useState as Ol, useRef as qi, useCallback as vr } from "react";
|
|
6
|
-
import { e as ei } from "./
|
|
6
|
+
import { e as ei } from "./index5.js";
|
|
7
7
|
import { b as kh, g as Nt, h as Ph, i as Lh, j as tl, k as Rh, l as sa, m as Ms, n as li, A as $y, P as Vy, o as qy, S as jy } from "./useStreamLayerApp2.js";
|
|
8
|
-
import { O as Ra } from "./
|
|
8
|
+
import { O as Ra } from "./index10.js";
|
|
9
9
|
import { B as Hy } from "./index4.js";
|
|
10
|
-
import { y as il, E as zy } from "./
|
|
11
|
-
import { g as ln, c as na, a as Wy } from "./
|
|
10
|
+
import { y as il, E as zy } from "./index9.js";
|
|
11
|
+
import { g as ln, c as na, a as Wy } from "./index11.js";
|
|
12
12
|
import { v4 as wc, validate as Gy, v5 as Dc } from "uuid";
|
|
13
13
|
import { y as Ky } from "./utils.js";
|
|
14
|
-
import { B as Xy, F as Yy, z as Qy, j as er } from "./hooks-
|
|
14
|
+
import { B as Xy, F as Yy, z as Qy, j as er } from "./hooks-WfHlJH12.js";
|
|
15
15
|
function Ge() {
|
|
16
16
|
return Ge = Object.assign ? Object.assign.bind() : function(i) {
|
|
17
17
|
for (var e = 1; e < arguments.length; e++) {
|
package/lib/classic/es/auth.js
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { jsx as P, jsxs as F } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { e as vt } from "./index5.js";
|
|
3
3
|
import { s as _, u as Se, c as Ee } from "./sl-types.js";
|
|
4
|
-
import $, { forwardRef as Ae, useState as W, useRef as D, useEffect as Y, useLayoutEffect as
|
|
5
|
-
import
|
|
4
|
+
import $, { forwardRef as Ae, useState as W, useRef as D, useEffect as Y, useLayoutEffect as gt, createContext as He, useMemo as Re, useCallback as qe, memo as wt } from "react";
|
|
5
|
+
import bt from "lodash.throttle";
|
|
6
6
|
import { B as te } from "./index4.js";
|
|
7
|
-
import { d as
|
|
8
|
-
import { e as
|
|
9
|
-
import { d as
|
|
10
|
-
import {
|
|
7
|
+
import { d as yt } from "./index10.js";
|
|
8
|
+
import { e as St } from "./index13.js";
|
|
9
|
+
import { d as Et, e as xt, S as We } from "./useStreamLayerApp2.js";
|
|
10
|
+
import { c as Tt } from "./feature.js";
|
|
11
|
+
import { B as Ct } from "./hooks-WfHlJH12.js";
|
|
11
12
|
function _e(t) {
|
|
12
13
|
return t !== null && typeof t == "object" && "constructor" in t && t.constructor === Object;
|
|
13
14
|
}
|
|
@@ -2619,7 +2620,7 @@ function Js(t, e, s) {
|
|
|
2619
2620
|
}));
|
|
2620
2621
|
}
|
|
2621
2622
|
function ee(t, e) {
|
|
2622
|
-
return typeof window > "u" ? Y(t, e) :
|
|
2623
|
+
return typeof window > "u" ? Y(t, e) : gt(t, e);
|
|
2623
2624
|
}
|
|
2624
2625
|
const De = /* @__PURE__ */ He(null), Zs = /* @__PURE__ */ He(null), ot = /* @__PURE__ */ Ae(function(t, e) {
|
|
2625
2626
|
let {
|
|
@@ -2897,8 +2898,8 @@ const er = () => ot, tr = /* @__PURE__ */ _(er())({
|
|
|
2897
2898
|
className: t
|
|
2898
2899
|
}) => /* @__PURE__ */ P(fr, {
|
|
2899
2900
|
className: t,
|
|
2900
|
-
children: /* @__PURE__ */ P(
|
|
2901
|
-
}), hr = ({ question: t, vote: e }) => t ? /* @__PURE__ */ P(
|
|
2901
|
+
children: /* @__PURE__ */ P(yt, {})
|
|
2902
|
+
}), hr = ({ question: t, vote: e }) => t ? /* @__PURE__ */ P(St, { close: () => {
|
|
2902
2903
|
}, openedQuestion: t, vote: e, isLoading: !1, isEarlyPrediction: !0 }) : null, vr = /* @__PURE__ */ _("span")({
|
|
2903
2904
|
name: "NextButton",
|
|
2904
2905
|
class: "n991vvm",
|
|
@@ -3243,7 +3244,7 @@ const Tr = ({ data: t, gamification: e, onEvent: s, swipeable: r, autoplay: n })
|
|
|
3243
3244
|
e.closeQuestion();
|
|
3244
3245
|
}, [u, f] = W(1.1);
|
|
3245
3246
|
return Y(() => {
|
|
3246
|
-
const v =
|
|
3247
|
+
const v = bt(() => {
|
|
3247
3248
|
var h;
|
|
3248
3249
|
const b = (h = l.current) == null ? void 0 : h.size;
|
|
3249
3250
|
if (!b)
|
|
@@ -3287,7 +3288,7 @@ const Tr = ({ data: t, gamification: e, onEvent: s, swipeable: r, autoplay: n })
|
|
|
3287
3288
|
{
|
|
3288
3289
|
onEvent: n,
|
|
3289
3290
|
actionFn: () => n({ type: "slHardRefresh" }),
|
|
3290
|
-
description: l instanceof
|
|
3291
|
+
description: l instanceof Et && l.code !== xt.InvalidArgument ? `The event ID was not
|
|
3291
3292
|
specified or is invalid.` : `The server is unable to
|
|
3292
3293
|
handle this request.`
|
|
3293
3294
|
}
|
|
@@ -3314,7 +3315,7 @@ handle this request.`
|
|
|
3314
3315
|
name: "BetPackContainer",
|
|
3315
3316
|
class: "b18vssq2",
|
|
3316
3317
|
propsAsIs: !1
|
|
3317
|
-
}), ie = "slBetPackCb", Mr =
|
|
3318
|
+
}), ie = "slBetPackCb", Mr = Tt("betPack-ui"), kr = (t, e = {}) => {
|
|
3318
3319
|
var s, r;
|
|
3319
3320
|
const { questionId: n, answerId: i } = e, l = { questionId: n, answerId: i };
|
|
3320
3321
|
Mr.debug({ id: ie, type: t, ...l }), (s = window.top) == null || s.postMessage({ id: ie, type: t, ...l }, "*"), window.webkit && window.webkit.messageHandlers && window.webkit.messageHandlers[ie] && window.webkit.messageHandlers[ie].postMessage({ type: t, ...l }), (r = window.slBetPackCb) != null && r.postMessage && window.slBetPackCb.postMessage(JSON.stringify({ type: t, ...l, from: "base" }));
|
|
@@ -3403,7 +3404,7 @@ const Dr = ({ user: t, gamification: e, overlay: s, swipeable: r, onEvent: n })
|
|
|
3403
3404
|
description: `You are not authorized to
|
|
3404
3405
|
view this resource.`
|
|
3405
3406
|
}
|
|
3406
|
-
) : /* @__PURE__ */ P(Le, {}), mt =
|
|
3407
|
+
) : /* @__PURE__ */ P(Le, {}), mt = wt(({ sdk: t, swipeable: e = !0, onEvent: s = Ir, overlay: r }) => {
|
|
3407
3408
|
const n = Se(t.featuresList.getStore()), i = Re(() => t.getFeature(We.GAMES), [n]), l = Se(t.getUserStore());
|
|
3408
3409
|
return Y(() => (t.writeOverlaySessionId(), () => {
|
|
3409
3410
|
t.writeOverlaySessionId("");
|
|
@@ -3416,16 +3417,16 @@ view this resource.`
|
|
|
3416
3417
|
);
|
|
3417
3418
|
}), je = (t) => {
|
|
3418
3419
|
const e = t.target;
|
|
3419
|
-
e instanceof Element && e.getAttribute("data-a") === "intr" &&
|
|
3420
|
+
e instanceof Element && e.getAttribute("data-a") === "intr" && vt.emit("interactions", {
|
|
3420
3421
|
action: "tap",
|
|
3421
3422
|
payload: {}
|
|
3422
3423
|
});
|
|
3423
|
-
},
|
|
3424
|
+
}, Kr = () => {
|
|
3424
3425
|
const t = Ct();
|
|
3425
3426
|
return Y(() => (document == null || document.addEventListener("click", je), () => {
|
|
3426
3427
|
document == null || document.removeEventListener("click", je);
|
|
3427
3428
|
}), []), t ? /* @__PURE__ */ P(mt, { sdk: t }) : null;
|
|
3428
3429
|
};
|
|
3429
3430
|
export {
|
|
3430
|
-
|
|
3431
|
+
Kr as BetPackProvider
|
|
3431
3432
|
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
var d = Object.defineProperty;
|
|
2
|
+
var l = (t, e, s) => e in t ? d(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;
|
|
3
|
+
var n = (t, e, s) => l(t, typeof e != "symbol" ? e + "" : e, s);
|
|
4
|
+
import { pino as c } from "pino";
|
|
5
|
+
import "./sl-types.js";
|
|
6
|
+
import "nanostores";
|
|
7
|
+
import { S as o } from "./useStreamLayerApp2.js";
|
|
8
|
+
const v = c({
|
|
9
|
+
level: "trace",
|
|
10
|
+
enabled: typeof window < "u" && !!window.localStorage.getItem("SL_DEBUG"),
|
|
11
|
+
browser: {
|
|
12
|
+
write: (t) => {
|
|
13
|
+
console.log(t);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}), w = (t, e) => v.child({ name: t }, e);
|
|
17
|
+
class E extends Event {
|
|
18
|
+
constructor(s, i) {
|
|
19
|
+
super(s);
|
|
20
|
+
n(this, "slEventBus");
|
|
21
|
+
this.slEventBus = i;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
const m = w("event-bus");
|
|
25
|
+
class T {
|
|
26
|
+
constructor(e = "sl-event-bus") {
|
|
27
|
+
n(this, "name");
|
|
28
|
+
n(this, "listeners");
|
|
29
|
+
n(this, "emit", (e, s) => {
|
|
30
|
+
const i = new E(this.name, { ...s, type: e });
|
|
31
|
+
m.debug(i, "Emitting event"), window.dispatchEvent(i);
|
|
32
|
+
});
|
|
33
|
+
n(this, "destroy", () => {
|
|
34
|
+
this.listeners.forEach((e) => {
|
|
35
|
+
window.removeEventListener(this.name, e), this.listeners.delete(e);
|
|
36
|
+
}), this.listeners.clear();
|
|
37
|
+
});
|
|
38
|
+
this.name = e, this.listeners = /* @__PURE__ */ new Set();
|
|
39
|
+
}
|
|
40
|
+
listen(e) {
|
|
41
|
+
return window.addEventListener(this.name, e), this.listeners.add(e), () => {
|
|
42
|
+
this.off(e);
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
off(e) {
|
|
46
|
+
window.removeEventListener(this.name, e), this.listeners.delete(e);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
window.slStore = /* @__PURE__ */ Object.create(null);
|
|
50
|
+
var r;
|
|
51
|
+
(function(t) {
|
|
52
|
+
t.ORGANIZATION = "ORGANIZATION", t.STREAM = "STREAM";
|
|
53
|
+
})(r || (r = {}));
|
|
54
|
+
o.BETTING + "", o.GAMES + "", o.PUBLIC_CHAT + "", o.TWITTER + "";
|
|
55
|
+
var a;
|
|
56
|
+
(function(t) {
|
|
57
|
+
t.Ready = "ready", t.Suspended = "suspended";
|
|
58
|
+
})(a || (a = {}));
|
|
59
|
+
export {
|
|
60
|
+
T as E,
|
|
61
|
+
a as F,
|
|
62
|
+
w as c
|
|
63
|
+
};
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { createContext as g, useEffect as i, useRef as w, useMemo as A, useContext as u, useState as h } from "react";
|
|
2
|
+
import { jsxs as N, jsx as O } from "react/jsx-runtime";
|
|
3
|
+
import { $ as T } from "./useStreamLayerApp2.js";
|
|
4
|
+
const L = ({
|
|
5
|
+
event: e,
|
|
6
|
+
internal: r
|
|
7
|
+
}) => {
|
|
8
|
+
const o = H(), n = j();
|
|
9
|
+
return i(() => {
|
|
10
|
+
o && (e && (o.createEventSession(e, r), n && (n.current = e)), !e && n != null && n.current && (o.createEventSession("", r), n.current = ""));
|
|
11
|
+
}, [e, r, n, o]), null;
|
|
12
|
+
};
|
|
13
|
+
var x = /* @__PURE__ */ ((e) => (e[e.UNSET = 0] = "UNSET", e[e.CONNECTED = 1] = "CONNECTED", e[e.READY = 2] = "READY", e))(x || {});
|
|
14
|
+
const M = {
|
|
15
|
+
status: 0,
|
|
16
|
+
sdk: null
|
|
17
|
+
}, d = g(M), U = ({
|
|
18
|
+
sdkKey: e,
|
|
19
|
+
theme: r,
|
|
20
|
+
themeMode: o,
|
|
21
|
+
plugins: n,
|
|
22
|
+
children: a,
|
|
23
|
+
event: m,
|
|
24
|
+
production: y = !0,
|
|
25
|
+
autoEnable: C = !0,
|
|
26
|
+
withAdNotification: E,
|
|
27
|
+
withAd: S = !0,
|
|
28
|
+
betPack: c = !1,
|
|
29
|
+
hideFriends: f,
|
|
30
|
+
skipOnboarding: v,
|
|
31
|
+
friendsTab: p = "enabled",
|
|
32
|
+
onDeepLinkHandled: s,
|
|
33
|
+
videoPlayerController: l,
|
|
34
|
+
onContentActivate: D,
|
|
35
|
+
containerId: k,
|
|
36
|
+
webOS: K
|
|
37
|
+
}) => {
|
|
38
|
+
const t = T({
|
|
39
|
+
sdkKey: e,
|
|
40
|
+
plugins: n,
|
|
41
|
+
production: y,
|
|
42
|
+
autoEnable: C,
|
|
43
|
+
onDeepLinkHandled: s,
|
|
44
|
+
videoPlayerController: l,
|
|
45
|
+
onContentActivate: D,
|
|
46
|
+
hideFriends: f,
|
|
47
|
+
skipOnboarding: v,
|
|
48
|
+
withAdNotification: E,
|
|
49
|
+
withAd: S,
|
|
50
|
+
friendsTab: p,
|
|
51
|
+
betPack: c,
|
|
52
|
+
webOS: K
|
|
53
|
+
}), b = w(""), P = A(() => t ? { sdk: t, status: 2, event: b } : { status: 1, sdk: null, event: b }, [t]);
|
|
54
|
+
return i(() => {
|
|
55
|
+
t && (t.options.setKey("friendsTab", p), t.options.setKey("theme", r), t.options.setKey("themeMode", o), t.options.setKey("skipOnboarding", v), t.options.setKey("betPack", c), t.options.setKey("containerId", k));
|
|
56
|
+
}, [t, p, r, o, v, c, k]), i(() => () => {
|
|
57
|
+
s && (t == null || t.removeDeepLinkHandler(s)), l && (t == null || t.removeVideoPlayerController(l));
|
|
58
|
+
}, [t]), i(() => {
|
|
59
|
+
localStorage.getItem("SL_DEBUG") && console.log("StreamLayerProvider mounted with props:", {
|
|
60
|
+
sdkKey: !!e,
|
|
61
|
+
onDeepLinkHandled: !!s,
|
|
62
|
+
videoPlayerController: !!l
|
|
63
|
+
});
|
|
64
|
+
}, [e, s, l]), /* @__PURE__ */ N(d.Provider, { value: P, children: [
|
|
65
|
+
m !== void 0 && /* @__PURE__ */ O(L, { event: m }),
|
|
66
|
+
a
|
|
67
|
+
] });
|
|
68
|
+
}, H = () => {
|
|
69
|
+
const { sdk: e } = u(d);
|
|
70
|
+
return e;
|
|
71
|
+
}, j = () => {
|
|
72
|
+
const { event: e } = u(d);
|
|
73
|
+
return e;
|
|
74
|
+
}, Y = () => {
|
|
75
|
+
const { sdk: e } = u(d), [r, o] = h({});
|
|
76
|
+
return i(() => {
|
|
77
|
+
var n;
|
|
78
|
+
return e != null && e.options ? (n = e == null ? void 0 : e.options) == null ? void 0 : n.subscribe((a) => {
|
|
79
|
+
o({ theme: a.theme, themeMode: a.themeMode });
|
|
80
|
+
}) : () => {
|
|
81
|
+
};
|
|
82
|
+
}, [e == null ? void 0 : e.options]), r;
|
|
83
|
+
}, B = () => {
|
|
84
|
+
const { sdk: e } = u(d), [r, o] = h({});
|
|
85
|
+
return i(() => e != null && e.uiState ? e == null ? void 0 : e.uiState.subscribe((n) => {
|
|
86
|
+
o({ ...n });
|
|
87
|
+
}) : () => {
|
|
88
|
+
}, [e == null ? void 0 : e.uiState]), r;
|
|
89
|
+
};
|
|
90
|
+
export {
|
|
91
|
+
H as B,
|
|
92
|
+
B as F,
|
|
93
|
+
x as Y,
|
|
94
|
+
d as i,
|
|
95
|
+
L as j,
|
|
96
|
+
U as q,
|
|
97
|
+
Y as z
|
|
98
|
+
};
|
package/lib/classic/es/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "react";
|
|
2
|
-
import { q as o, j as S, B as s, z as i, F as y } from "./hooks-
|
|
2
|
+
import { q as o, j as S, B as s, z as i, F as y } from "./hooks-WfHlJH12.js";
|
|
3
3
|
import "react/jsx-runtime";
|
|
4
4
|
import "./useStreamLayerApp2.js";
|
|
5
|
-
import { h as p } from "./
|
|
5
|
+
import { h as p } from "./index7.js";
|
|
6
6
|
import { b as K } from "./index2.js";
|
|
7
7
|
import { a as D, K as c } from "./notification2.js";
|
|
8
8
|
export {
|