@streamlayer/react 1.8.2 → 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.
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.2",
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.2",
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.2",
87
- "@streamlayer/sdk-web": "^1.5.2",
88
- "@streamlayer/sdk-web-api": "^1.6.3",
89
- "@streamlayer/sdk-web-analytics": "^1.4.3",
90
- "@streamlayer/sdk-web-features": "^1.0.24",
91
- "@streamlayer/sdk-web-interfaces": "^1.2.3",
92
- "@streamlayer/sdk-web-notifications": "^1.2.3",
93
- "@streamlayer/sdk-web-core": "^1.6.2",
94
- "@streamlayer/sdk-web-logger": "^1.0.24",
95
- "@streamlayer/sdk-web-storage": "^1.0.24",
96
- "@streamlayer/sdk-web-types": "^1.7.3"
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.2"
152
+ "@streamlayer/react-ui": "^1.11.4"
153
153
  },
154
154
  "scripts": {
155
155
  "size-limit": "size-limit"