@streamlayer/react 1.8.3 → 1.8.4

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.
@@ -38743,7 +38743,7 @@ const r2 = new pm(), HX = (n, a, o) => {
38743
38743
  }), o();
38744
38744
  }, jX = (n, a, o) => {
38745
38745
  const l = { onMountedFired: !1 }, c = /* @__PURE__ */ new Map(), p = /* @__PURE__ */ new Map();
38746
- n.sdk = /* @__PURE__ */ Object.create(null), n.sdk.onMount = ({ name: f, clear: y }, b) => {
38746
+ n.sdk = /* @__PURE__ */ Object.create(null), n.sdk.withAuth = !1, n.sdk.onMount = ({ name: f, clear: y }, b) => {
38747
38747
  var w, E;
38748
38748
  if (c.has(f)) {
38749
38749
  const I = p.get(f);
@@ -39303,7 +39303,7 @@ class nJ extends fE {
39303
39303
  }
39304
39304
  }
39305
39305
  });
39306
- this.background = new _X(c), this.advertisement = this.background.advertisement, this.onQuestionActivate = c.onQuestionActivate, this.feedSubscription = this.background.feedSubscription, this.activeQuestionId = this.background.activeQuestionId, this.openedQuestionId = this.background.openedQuestionId, this.storage = new vE(), this.feedList = this.background.feedList, this.friends = new is(fX(this.background.userId, c.transport), "gamification:friends"), this.currentUserId = this.background.userId, this.openedUser = _a(void 0), this.onboardingProcessed = _a(!1), this.leaderboardId = new Do(_a(this.settings.getValue("pinnedLeaderboardId")), "pinnedLeaderboardId").getStore(), this.onboardingStatus = XX(this, this.background, c.transport, c.notifications), this.notifications = c.notifications, this.transport = c.transport, this.closeFeature = (p = !0) => c.sdk.closeFeature(p), this.openFeature = () => c.sdk.openFeature(yt.GAMES), this.openedQuestion = this.background.openedQuestion, this.deepLink = KX(this.transport, this.background.slStreamId, c.stores.providerStreamId.getStore(), this.background.userId), this.userSummary = JX(this.background.slStreamId, this.background.userId, this.friends, this.transport), this.leaderboardList = MX(this.transport, this.background.slStreamId, this.background.userId, this.friends), this.connect(), this.cancels.add(this.userSummary.$store.listen((p, f) => {
39306
+ this.background = new _X(c), this.advertisement = this.background.advertisement, this.onQuestionActivate = c.onQuestionActivate, this.feedSubscription = this.background.feedSubscription, this.activeQuestionId = this.background.activeQuestionId, this.openedQuestionId = this.background.openedQuestionId, this.storage = new vE(), this.feedList = this.background.feedList, this.friends = new is(fX(this.background.userId, c.transport), "gamification:friends"), this.currentUserId = this.background.userId, this.openedUser = _a(void 0), this.onboardingProcessed = _a(!c.sdk.withAuth), this.leaderboardId = new Do(_a(this.settings.getValue("pinnedLeaderboardId")), "pinnedLeaderboardId").getStore(), this.onboardingStatus = XX(this, this.background, c.transport, c.notifications), this.notifications = c.notifications, this.transport = c.transport, this.closeFeature = (p = !0) => c.sdk.closeFeature(p), this.openFeature = () => c.sdk.openFeature(yt.GAMES), this.openedQuestion = this.background.openedQuestion, this.deepLink = KX(this.transport, this.background.slStreamId, c.stores.providerStreamId.getStore(), this.background.userId), this.userSummary = JX(this.background.slStreamId, this.background.userId, this.friends, this.transport), this.leaderboardList = MX(this.transport, this.background.slStreamId, this.background.userId, this.friends), this.connect(), this.cancels.add(this.userSummary.$store.listen((p, f) => {
39307
39307
  f != null && f.summary && (p != null && p.summary) && this.leaderboardList.invalidate();
39308
39308
  })), this.cancels.add(this.onboardingStatus.$store.listen(this.checkInteractiveFlag)), this.cancels.add(this.background.moderation.getStore().listen(this.checkInteractiveFlag)), this.cancels.add(this.settings.subscribe(this.checkInteractiveFlag)), this.cancels.add(this.onboardingStatus.$store.listen((p, f) => {
39309
39309
  (f === void 0 || p !== ca.Unset) && this.background.activeQuestionId.invalidate();
@@ -42260,7 +42260,7 @@ const Gte = ({
42260
42260
  I = !0;
42261
42261
  };
42262
42262
  const O = qte(n, o, l, {
42263
- version: "1.8.3",
42263
+ version: "1.8.4",
42264
42264
  onDeepLinkHandled: c,
42265
42265
  videoPlayerController: p,
42266
42266
  onContentActivate: f,
@@ -42363,7 +42363,7 @@ class une extends Y9 {
42363
42363
  const cne = ({ token: n, schema: a }) => {
42364
42364
  const o = Vy();
42365
42365
  return bt(() => {
42366
- n && a && o && o.authorizationBypass(a, n);
42366
+ n && a && o && o.authorizationBypass(a, n), o && (o.withAuth = !0);
42367
42367
  }, [n, a, o]), null;
42368
42368
  }, dne = () => {
42369
42369
  const n = Vy();
package/lib/es/auth.js CHANGED
@@ -1,11 +1,11 @@
1
- import { useEffect as i } from "react";
2
- import { u as a } from "./index2.js";
3
- const e = ({ token: r, schema: o }) => {
4
- const t = a();
5
- return i(() => {
6
- r && o && t && t.authorizationBypass(o, r);
7
- }, [r, o, t]), null;
1
+ import { useEffect as o } from "react";
2
+ import { u } from "./index2.js";
3
+ const f = ({ token: t, schema: i }) => {
4
+ const r = u();
5
+ return o(() => {
6
+ t && i && r && r.authorizationBypass(i, t), r && (r.withAuth = !0);
7
+ }, [t, i, r]), null;
8
8
  };
9
9
  export {
10
- e as StreamLayerLogin
10
+ f as StreamLayerLogin
11
11
  };
@@ -14329,7 +14329,7 @@ const Ht = new It(), Wk = (e, t, n) => {
14329
14329
  }), n();
14330
14330
  }, Zk = (e, t, n) => {
14331
14331
  const a = { onMountedFired: !1 }, s = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map();
14332
- e.sdk = /* @__PURE__ */ Object.create(null), e.sdk.onMount = ({ name: r, clear: c }, l) => {
14332
+ e.sdk = /* @__PURE__ */ Object.create(null), e.sdk.withAuth = !1, e.sdk.onMount = ({ name: r, clear: c }, l) => {
14333
14333
  var m, u;
14334
14334
  if (s.has(r)) {
14335
14335
  const d = o.get(r);
@@ -14889,7 +14889,7 @@ class ch extends Qi {
14889
14889
  }
14890
14890
  }
14891
14891
  });
14892
- this.background = new Mk(s), this.advertisement = this.background.advertisement, this.onQuestionActivate = s.onQuestionActivate, this.feedSubscription = this.background.feedSubscription, this.activeQuestionId = this.background.activeQuestionId, this.openedQuestionId = this.background.openedQuestionId, this.storage = new Wi(), this.feedList = this.background.feedList, this.friends = new Ue(hk(this.background.userId, s.transport), "gamification:friends"), this.currentUserId = this.background.userId, this.openedUser = ie(void 0), this.onboardingProcessed = ie(!1), this.leaderboardId = new be(ie(this.settings.getValue("pinnedLeaderboardId")), "pinnedLeaderboardId").getStore(), this.onboardingStatus = sh(this, this.background, s.transport, s.notifications), this.notifications = s.notifications, this.transport = s.transport, this.closeFeature = (o = !0) => s.sdk.closeFeature(o), this.openFeature = () => s.sdk.openFeature(Y.GAMES), this.openedQuestion = this.background.openedQuestion, this.deepLink = nh(this.transport, this.background.slStreamId, s.stores.providerStreamId.getStore(), this.background.userId), this.userSummary = oh(this.background.slStreamId, this.background.userId, this.friends, this.transport), this.leaderboardList = qk(this.transport, this.background.slStreamId, this.background.userId, this.friends), this.connect(), this.cancels.add(this.userSummary.$store.listen((o, r) => {
14892
+ this.background = new Mk(s), this.advertisement = this.background.advertisement, this.onQuestionActivate = s.onQuestionActivate, this.feedSubscription = this.background.feedSubscription, this.activeQuestionId = this.background.activeQuestionId, this.openedQuestionId = this.background.openedQuestionId, this.storage = new Wi(), this.feedList = this.background.feedList, this.friends = new Ue(hk(this.background.userId, s.transport), "gamification:friends"), this.currentUserId = this.background.userId, this.openedUser = ie(void 0), this.onboardingProcessed = ie(!s.sdk.withAuth), this.leaderboardId = new be(ie(this.settings.getValue("pinnedLeaderboardId")), "pinnedLeaderboardId").getStore(), this.onboardingStatus = sh(this, this.background, s.transport, s.notifications), this.notifications = s.notifications, this.transport = s.transport, this.closeFeature = (o = !0) => s.sdk.closeFeature(o), this.openFeature = () => s.sdk.openFeature(Y.GAMES), this.openedQuestion = this.background.openedQuestion, this.deepLink = nh(this.transport, this.background.slStreamId, s.stores.providerStreamId.getStore(), this.background.userId), this.userSummary = oh(this.background.slStreamId, this.background.userId, this.friends, this.transport), this.leaderboardList = qk(this.transport, this.background.slStreamId, this.background.userId, this.friends), this.connect(), this.cancels.add(this.userSummary.$store.listen((o, r) => {
14893
14893
  r != null && r.summary && (o != null && o.summary) && this.leaderboardList.invalidate();
14894
14894
  })), this.cancels.add(this.onboardingStatus.$store.listen(this.checkInteractiveFlag)), this.cancels.add(this.background.moderation.getStore().listen(this.checkInteractiveFlag)), this.cancels.add(this.settings.subscribe(this.checkInteractiveFlag)), this.cancels.add(this.onboardingStatus.$store.listen((o, r) => {
14895
14895
  (r === void 0 || o !== ae.Unset) && this.background.activeQuestionId.invalidate();
@@ -17846,7 +17846,7 @@ const Z_ = ({
17846
17846
  d = !0;
17847
17847
  };
17848
17848
  const y = z_(e, n, a, {
17849
- version: "1.8.3",
17849
+ version: "1.8.4",
17850
17850
  onDeepLinkHandled: s,
17851
17851
  videoPlayerController: o,
17852
17852
  onContentActivate: r,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamlayer/react",
3
- "version": "1.8.3",
3
+ "version": "1.8.4",
4
4
  "type": "module",
5
5
  "author": "StreamLayer, Inc (https://streamlayer.io)",
6
6
  "maintainers": [
@@ -83,17 +83,17 @@
83
83
  }
84
84
  ],
85
85
  "dependencies": {
86
- "@streamlayer/feature-gamification": "^1.8.3",
87
- "@streamlayer/sdk-web": "^1.5.3",
88
- "@streamlayer/sdk-web-analytics": "^1.4.4",
89
- "@streamlayer/sdk-web-api": "^1.6.4",
90
- "@streamlayer/sdk-web-core": "^1.6.3",
91
- "@streamlayer/sdk-web-features": "^1.0.25",
92
- "@streamlayer/sdk-web-interfaces": "^1.2.4",
93
- "@streamlayer/sdk-web-logger": "^1.0.25",
94
- "@streamlayer/sdk-web-notifications": "^1.2.4",
95
- "@streamlayer/sdk-web-storage": "^1.0.25",
96
- "@streamlayer/sdk-web-types": "^1.7.4"
86
+ "@streamlayer/feature-gamification": "^1.8.4",
87
+ "@streamlayer/sdk-web": "^1.5.4",
88
+ "@streamlayer/sdk-web-analytics": "^1.4.5",
89
+ "@streamlayer/sdk-web-api": "^1.6.5",
90
+ "@streamlayer/sdk-web-core": "^1.6.4",
91
+ "@streamlayer/sdk-web-features": "^1.0.26",
92
+ "@streamlayer/sdk-web-interfaces": "^1.2.5",
93
+ "@streamlayer/sdk-web-logger": "^1.0.26",
94
+ "@streamlayer/sdk-web-notifications": "^1.2.5",
95
+ "@streamlayer/sdk-web-storage": "^1.0.26",
96
+ "@streamlayer/sdk-web-types": "^1.7.5"
97
97
  },
98
98
  "peerDependencies": {
99
99
  "@bufbuild/protobuf": "^1.10.0",
@@ -149,7 +149,7 @@
149
149
  "size-limit": "^11.1.6",
150
150
  "url-loader": "^4.1.1",
151
151
  "vite-plugin-dts": "^4.2.3",
152
- "@streamlayer/react-ui": "^1.11.3"
152
+ "@streamlayer/react-ui": "^1.11.4"
153
153
  },
154
154
  "scripts": {
155
155
  "size-limit": "size-limit"