@streamlayer/feature-gamification 0.26.0 → 0.26.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.
@@ -36,6 +36,8 @@ export declare class Gamification extends AbstractFeature<'games', PlainMessage<
36
36
  };
37
37
  /** opened question */
38
38
  openedQuestion: GamificationBackground['openedQuestion'];
39
+ /** current user id */
40
+ currentUserId: GamificationBackground['userId'];
39
41
  /** pinned leaderboard id */
40
42
  openedUser: WritableAtom<LeaderboardItem | undefined>;
41
43
  closeFeature: () => void;
@@ -33,6 +33,8 @@ export class Gamification extends AbstractFeature {
33
33
  onboardingStatus;
34
34
  /** opened question */
35
35
  openedQuestion;
36
+ /** current user id */
37
+ currentUserId;
36
38
  /** pinned leaderboard id */
37
39
  openedUser;
38
40
  closeFeature;
@@ -49,6 +51,7 @@ export class Gamification extends AbstractFeature {
49
51
  this.storage = new GamificationStorage();
50
52
  this.userSummary = new ApiStore(queries.$userSummary(this.background.slStreamId, this.background.userId, instance.transport), 'gamification:userSummary');
51
53
  this.feedList = this.background.feedList;
54
+ this.currentUserId = this.background.userId;
52
55
  this.openedUser = createSingleStore(undefined);
53
56
  this.leaderboardId = new SingleStore(createSingleStore(this.settings.getValue('pinnedLeaderboardId')), 'pinnedLeaderboardId').getStore();
54
57
  this.onboardingStatus = onboarding(this, this.background, instance.transport, instance.notifications);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamlayer/feature-gamification",
3
- "version": "0.26.0",
3
+ "version": "0.26.1",
4
4
  "peerDependencies": {
5
5
  "@bufbuild/protobuf": "^1.4.2",
6
6
  "@streamlayer/sl-eslib": "^5.53.6",