@streamlayer/react 0.29.9 → 0.29.10

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.
@@ -1395,6 +1395,8 @@ declare module "../../feature-gamification/src/gamification" {
1395
1395
  };
1396
1396
  /** opened question */
1397
1397
  openedQuestion: GamificationBackground['openedQuestion'];
1398
+ /** current user id */
1399
+ currentUserId: GamificationBackground['userId'];
1398
1400
  /** pinned leaderboard id */
1399
1401
  openedUser: WritableAtom<LeaderboardItem | undefined>;
1400
1402
  closeFeature: () => void;
@@ -6847,7 +6847,7 @@ var Nt;
6847
6847
  const Z1 = ({ feature: e, sdk: t, children: n, className: a }) => {
6848
6848
  const r = dt(e.status), { slStreamId: c } = dt(t.sdkStore);
6849
6849
  return c != null && c.loading ? /* @__PURE__ */ A("div", { className: a, children: "event is loading..." }) : c != null && c.data ? r !== Nt.Ready ? /* @__PURE__ */ A("div", { className: a, children: "wait feature..." }) : n : /* @__PURE__ */ A("div", { className: a, children: "event is forbidden..." });
6850
- }, J1 = Jc(() => import("./index-44ddc69c.js")), X1 = ({
6850
+ }, J1 = Jc(() => import("./index-b48a730f.js")), X1 = ({
6851
6851
  sdk: e,
6852
6852
  feature: t,
6853
6853
  className: n
@@ -17724,6 +17724,8 @@ class V3 extends js {
17724
17724
  _(this, "onboardingStatus");
17725
17725
  /** opened question */
17726
17726
  _(this, "openedQuestion");
17727
+ /** current user id */
17728
+ _(this, "currentUserId");
17727
17729
  /** pinned leaderboard id */
17728
17730
  _(this, "openedUser");
17729
17731
  _(this, "closeFeature");
@@ -17796,7 +17798,7 @@ class V3 extends js {
17796
17798
  _(this, "closeUser", () => {
17797
17799
  this.openedUser.set(void 0);
17798
17800
  });
17799
- this.background = pc(r), this.storage = new fc(), this.userSummary = new $e(f3(this.background.slStreamId, this.background.userId, r.transport), "gamification:userSummary"), this.feedList = this.background.feedList, this.openedUser = xe(void 0), this.leaderboardId = new He(xe(this.settings.getValue("pinnedLeaderboardId")), "pinnedLeaderboardId").getStore(), this.onboardingStatus = D3(this, this.background, r.transport, r.notifications), this.notifications = r.notifications, this.transport = r.transport, this.closeFeature = r.sdk.closeFeature, this.openFeature = () => r.sdk.openFeature(me.GAMES), this.openedQuestion = this.background.openedQuestion, this.deepLink = P3(this.transport, this.background.slStreamId), this.leaderboardList = B3(this.transport, this.background.slStreamId), this.status.subscribe((c) => {
17801
+ this.background = pc(r), this.storage = new fc(), this.userSummary = new $e(f3(this.background.slStreamId, this.background.userId, r.transport), "gamification:userSummary"), this.feedList = this.background.feedList, this.currentUserId = this.background.userId, this.openedUser = xe(void 0), this.leaderboardId = new He(xe(this.settings.getValue("pinnedLeaderboardId")), "pinnedLeaderboardId").getStore(), this.onboardingStatus = D3(this, this.background, r.transport, r.notifications), this.notifications = r.notifications, this.transport = r.transport, this.closeFeature = r.sdk.closeFeature, this.openFeature = () => r.sdk.openFeature(me.GAMES), this.openedQuestion = this.background.openedQuestion, this.deepLink = P3(this.transport, this.background.slStreamId), this.leaderboardList = B3(this.transport, this.background.slStreamId), this.status.subscribe((c) => {
17800
17802
  c === xt.Ready ? this.connect(r.transport) : this.disconnect();
17801
17803
  }), this.background.activeQuestionId.listen((c) => {
17802
17804
  var u, l, p, y, h, T, k, b, R, N, D, v, L, P, U, M;