@streamlayer/react 0.41.7 → 0.41.9

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.
@@ -293,6 +293,25 @@ declare module "../../sdk-web-interfaces/src/index" {
293
293
  export const eventBus: EventBus;
294
294
  export type { EventBusEvent, EventBusData, EventBusActionPayload };
295
295
  }
296
+ declare module "../../sdk-web-storage/src/isQuotaExceededError" {
297
+ export function isQuotaExceededError(err: unknown): boolean;
298
+ }
299
+ declare module "../../sdk-web-storage/src/index" {
300
+ import { isQuotaExceededError } from "../../sdk-web-storage/src/isQuotaExceededError";
301
+ export { isQuotaExceededError };
302
+ export type ArrayWithMinTwoItems = [string, string, ...string[]];
303
+ export class Storage {
304
+ private delimiter;
305
+ private prefix;
306
+ private storage;
307
+ constructor(prefix?: string, storage?: globalThis.Storage);
308
+ clear: () => void;
309
+ protected generateKey: (keyParts: string[]) => string;
310
+ protected write: (keyParts_0: string, keyParts_1: string, ...keyParts_2: string[]) => void;
311
+ protected read: (...keyParts: string[]) => string | undefined;
312
+ protected remove: (...keyParts: string[]) => void;
313
+ }
314
+ }
296
315
  declare module "../../sdk-web-api/src/utils/devtools" {
297
316
  export const __GRPC_DEVTOOLS_EXTENSION__: any;
298
317
  }
@@ -577,19 +596,6 @@ declare module "../../sdk-web-api/src/index" {
577
596
  version?: string;
578
597
  }, done: () => void) => void;
579
598
  }
580
- declare module "../../sdk-web-storage/src/index" {
581
- export class Storage {
582
- private delimiter;
583
- private prefix;
584
- private storage;
585
- constructor(prefix?: string, storage?: globalThis.Storage);
586
- clear: () => void;
587
- protected generateKey: (keyParts: string[]) => string;
588
- protected write: (keyParts_0: string, keyParts_1: string, ...keyParts_2: string[]) => void;
589
- protected read: (...keyParts: string[]) => string | undefined;
590
- protected remove: (...keyParts: string[]) => void;
591
- }
592
- }
593
599
  declare module "../../sdk-web-core/src/storage" {
594
600
  import { Storage } from '../../sdk-web-storage/src/index.ts';
595
601
  export class UserStorage extends Storage {
@@ -1614,11 +1620,12 @@ declare module "../../feature-gamification/src/storage" {
1614
1620
  organizationId: string;
1615
1621
  };
1616
1622
  export class GamificationStorage extends Storage {
1623
+ private sessionStorage;
1617
1624
  constructor();
1618
1625
  saveOnboardingStatus: ({ userId, eventId, organizationId }: UserProps, status: OnboardingStatus) => void;
1619
1626
  getOnboardingStatus: ({ userId, eventId, organizationId }: UserProps) => string | undefined;
1620
1627
  setOnboardingInstantOpen: ({ userId, eventId, organizationId }: UserProps) => void;
1621
- getOnboardingInstantOpen: ({ userId, eventId, organizationId }: UserProps) => string | null;
1628
+ getOnboardingInstantOpen: ({ userId, eventId, organizationId }: UserProps) => string | undefined;
1622
1629
  }
1623
1630
  }
1624
1631
  declare module "../../feature-gamification/src/leaderboard" {
@@ -1675,9 +1682,7 @@ declare module "../../feature-gamification/src/userSummary" {
1675
1682
  import { LeaderboardSummaryItem } from '@streamlayer/sl-eslib/interactive/leaderboard/interactive.leaderboard_pb';
1676
1683
  import { Gamification } from "../../feature-gamification/src/index";
1677
1684
  export const summary: ($eventId: ReadableAtom<string | undefined>, $userId: ReadableAtom<string | undefined>, $friends: Gamification['friends'], transport: Transport) => {
1678
- $store: import("nanostores").MapStore<(LeaderboardSummaryItem & {
1679
- fromLeaderboard?: boolean | undefined;
1680
- }) | undefined>;
1685
+ $store: import("nanostores").MapStore<LeaderboardSummaryItem | undefined>;
1681
1686
  invalidate: () => void;
1682
1687
  };
1683
1688
  }
@@ -16,7 +16,7 @@ const y = ({
16
16
  r = !0;
17
17
  };
18
18
  const o = c(t, s, f, {
19
- version: "0.41.7",
19
+ version: "0.41.9",
20
20
  onDeepLinkHandled: u,
21
21
  videoPlayerController: i
22
22
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamlayer/react",
3
- "version": "0.41.7",
3
+ "version": "0.41.9",
4
4
  "type": "module",
5
5
  "author": "StreamLayer, Inc (https://streamlayer.io)",
6
6
  "maintainers": [
@@ -73,17 +73,17 @@
73
73
  }
74
74
  ],
75
75
  "dependencies": {
76
- "@streamlayer/feature-gamification": "^0.41.1",
77
- "@streamlayer/sdk-web": "^0.33.5",
78
- "@streamlayer/sdk-web-analytics": "^0.2.1",
79
- "@streamlayer/sdk-web-api": "^0.25.1",
80
- "@streamlayer/sdk-web-core": "^0.23.1",
81
- "@streamlayer/sdk-web-features": "^0.11.29",
82
- "@streamlayer/sdk-web-interfaces": "^0.22.1",
83
- "@streamlayer/sdk-web-logger": "^0.5.21",
84
- "@streamlayer/sdk-web-notifications": "^0.16.1",
85
- "@streamlayer/sdk-web-storage": "^0.4.8",
86
- "@streamlayer/sdk-web-types": "^0.23.3"
76
+ "@streamlayer/feature-gamification": "^0.41.3",
77
+ "@streamlayer/sdk-web": "^0.33.7",
78
+ "@streamlayer/sdk-web-analytics": "^0.2.3",
79
+ "@streamlayer/sdk-web-core": "^0.23.2",
80
+ "@streamlayer/sdk-web-api": "^0.25.2",
81
+ "@streamlayer/sdk-web-features": "^0.11.31",
82
+ "@streamlayer/sdk-web-interfaces": "^0.22.2",
83
+ "@streamlayer/sdk-web-logger": "^0.5.22",
84
+ "@streamlayer/sdk-web-storage": "^0.4.9",
85
+ "@streamlayer/sdk-web-notifications": "^0.16.2",
86
+ "@streamlayer/sdk-web-types": "^0.23.4"
87
87
  },
88
88
  "peerDependencies": {
89
89
  "@bufbuild/protobuf": "^1.8.0",
@@ -139,7 +139,7 @@
139
139
  "size-limit": "^11.1.0",
140
140
  "url-loader": "^4.1.1",
141
141
  "vite-plugin-dts": "^3.7.3",
142
- "@streamlayer/react-ui": "^0.100.2"
142
+ "@streamlayer/react-ui": "^0.100.4"
143
143
  },
144
144
  "scripts": {
145
145
  "size-limit": "size-limit"