@streamlayer/react 0.37.0 → 0.38.0

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.
@@ -106,7 +106,7 @@ declare module "../../sdk-web-interfaces/src/store/map" {
106
106
  };
107
107
  }
108
108
  declare module "../../sdk-web-interfaces/src/feature" {
109
- import { FeatureConfig as SdkOverlay, SdkOverlaySettings } from '../../sdk-web/src/index.ts-types';
109
+ import { FeatureConfig as SdkOverlay, SdkOverlaySettings } from '../../sdk-web-types/src/index.ts';
110
110
  import { PlainMessage } from '@bufbuild/protobuf';
111
111
  import { WritableAtom } from 'nanostores';
112
112
  import { MapStore } from "../../sdk-web-interfaces/src/store/map";
@@ -195,7 +195,7 @@ declare module "../../sdk-web-interfaces/src/store/api" {
195
195
  }
196
196
  }
197
197
  declare module "../../sdk-web-interfaces/src/index" {
198
- import { FeatureType } from '../../sdk-web/src/index.ts-types';
198
+ import { FeatureType } from '../../sdk-web-types/src/index.ts';
199
199
  export { AbstractAuthenticationProvider } from "../../sdk-web-interfaces/src/auth";
200
200
  export { AbstractFeature, FeatureSource, type FeatureProps, FeatureStatus } from "../../sdk-web-interfaces/src/feature";
201
201
  export { MapStore, createMapStore } from "../../sdk-web-interfaces/src/store/map";
@@ -369,7 +369,7 @@ declare module "../../sdk-web-api/src/grpc/queries/user" {
369
369
  import { PlainMessage } from '@bufbuild/protobuf';
370
370
  import { Transport } from "../../sdk-web-api/src/grpc/transport";
371
371
  export const $user: ($userToken: ReadableAtom<string | undefined>, transport: Transport) => import("@nanostores/query").FetcherStore<import("@streamlayer/sl-eslib/users/users_pb").MeResponse, any>;
372
- export const bypassLogin: (transport: Transport) => ({ userKey, schema, init }: PlainMessage<BypassAuthRequest>) => Promise<import("@streamlayer/sl-eslib/users/users_pb").BypassAuthResponse>;
372
+ export const bypassLogin: (transport: Transport) => ({ userKey, schema, init, inviterKey }: PlainMessage<BypassAuthRequest>) => Promise<import("@streamlayer/sl-eslib/users/users_pb").BypassAuthResponse>;
373
373
  export const bypassAuth: (transport: Transport, params: {
374
374
  userKey?: string;
375
375
  schema?: string;
@@ -407,7 +407,7 @@ declare module "../../sdk-web-api/src/grpc/queries/index" {
407
407
  export * from "../../sdk-web-api/src/grpc/queries/user";
408
408
  }
409
409
  declare module "../../sdk-web-api/src/index" {
410
- import { StreamLayerContext } from '../../sdk-web/src/index.ts-interfaces';
410
+ import { StreamLayerContext } from '../../sdk-web-interfaces/src/index.ts';
411
411
  import { FetcherStore } from '@nanostores/query';
412
412
  export type { ServerStreamSubscriptionOptions } from "../../sdk-web-api/src/grpc/subscription";
413
413
  export { Transport } from "../../sdk-web-api/src/grpc/transport";
@@ -433,7 +433,8 @@ declare module "../../sdk-web-storage/src/index" {
433
433
  export class Storage {
434
434
  private delimiter;
435
435
  private prefix;
436
- constructor(prefix?: string);
436
+ private storage;
437
+ constructor(prefix?: string, storage?: globalThis.Storage);
437
438
  clear: () => void;
438
439
  protected generateKey: (keyParts: string[]) => string;
439
440
  protected write: (keyParts_0: string, keyParts_1: string, ...keyParts_2: string[]) => void;
@@ -442,7 +443,7 @@ declare module "../../sdk-web-storage/src/index" {
442
443
  }
443
444
  }
444
445
  declare module "../../sdk-web-core/src/storage" {
445
- import { Storage } from '../../sdk-web/src/index.ts-storage';
446
+ import { Storage } from '../../sdk-web-storage/src/index.ts';
446
447
  export class UserStorage extends Storage {
447
448
  constructor();
448
449
  setSchema: (value: string) => void;
@@ -455,8 +456,9 @@ declare module "../../sdk-web-core/src/storage" {
455
456
  }
456
457
  }
457
458
  declare module "../../sdk-web-core/src/store/init" {
458
- import { SingleStore, ApiStore } from '../../sdk-web/src/index.ts-interfaces';
459
- import { Transport } from '../../sdk-web/src/index.ts-api';
459
+ import { SingleStore, ApiStore } from '../../sdk-web-interfaces/src/index.ts';
460
+ import { Transport } from '../../sdk-web-api/src/index.ts';
461
+ import type { BypassAuthResponse } from '@streamlayer/sl-eslib/users/users_pb';
460
462
  export enum CoreStatus {
461
463
  DISABLED = "disabled",
462
464
  INITIALIZATION = "initialization",
@@ -470,7 +472,7 @@ declare module "../../sdk-web-core/src/store/init" {
470
472
  readonly providerStreamId: SingleStore<unknown, import("nanostores").WritableAtom<string | undefined>>;
471
473
  readonly slStreamId: ApiStore<string | undefined, import("@nanostores/query").FetcherStore<string | undefined, any>>;
472
474
  readonly streamSettings: ApiStore<import("@streamlayer/sl-eslib/sdkSettings/sdkSettings.common_pb").StreamSettings | undefined, import("@nanostores/query").FetcherStore<import("@streamlayer/sl-eslib/sdkSettings/sdkSettings.common_pb").StreamSettings | undefined, any>>;
473
- readonly user: ApiStore<import("@streamlayer/sl-eslib/users/users_pb").MeResponse | undefined, import("@nanostores/query").FetcherStore<import("@streamlayer/sl-eslib/users/users_pb").MeResponse | undefined, any>>;
475
+ readonly user: ApiStore<import("@streamlayer/sl-eslib/users/users_pb").MeResponse & BypassAuthResponse, import("@nanostores/query").FetcherStore<import("@streamlayer/sl-eslib/users/users_pb").MeResponse & BypassAuthResponse, any>>;
474
476
  readonly userKey: SingleStore<unknown, import("nanostores").WritableAtom<string | undefined>>;
475
477
  readonly userToken: SingleStore<unknown, import("nanostores").WritableAtom<string | undefined>>;
476
478
  readonly userSettings: ApiStore<import("@streamlayer/sl-eslib/sdkSettings/client/client_pb").ClientSettings | undefined, import("@nanostores/query").FetcherStore<import("@streamlayer/sl-eslib/sdkSettings/client/client_pb").ClientSettings | undefined, any>>;
@@ -511,9 +513,9 @@ declare module "../../sdk-web-core/src/store/init" {
511
513
  };
512
514
  }
513
515
  declare module "../../sdk-web-core/src/store/store" {
514
- import type { OrganizationAdvertising, StreamSettings, OrganizationSettings, User, UserSettings } from '../../sdk-web/src/index.ts-types';
515
- import { AbstractStore } from '../../sdk-web/src/index.ts-interfaces';
516
- import { Transport } from '../../sdk-web/src/index.ts-api';
516
+ import type { OrganizationAdvertising, StreamSettings, OrganizationSettings, User, UserSettings } from '../../sdk-web-types/src/index.ts';
517
+ import { AbstractStore } from '../../sdk-web-interfaces/src/index.ts';
518
+ import { Transport } from '../../sdk-web-api/src/index.ts';
517
519
  import { ReadableAtom } from 'nanostores';
518
520
  import { FetcherValue } from '@nanostores/query';
519
521
  import { initializeStore, CoreStatus } from "../../sdk-web-core/src/store/init";
@@ -561,16 +563,16 @@ declare module "../../sdk-web-core/src/store/store" {
561
563
  constructor(transport: Transport);
562
564
  getValue(): unknown;
563
565
  getValues(): {
564
- readonly enabled: import('../../sdk-web/src/index.ts-interfaces').SingleStore<unknown, import("nanostores").WritableAtom<"on" | undefined>>;
565
- readonly status: import('../../sdk-web/src/index.ts-interfaces').SingleStore<unknown, import("nanostores").WritableAtom<CoreStatus>>;
566
- readonly providerStreamId: import('../../sdk-web/src/index.ts-interfaces').SingleStore<unknown, import("nanostores").WritableAtom<string | undefined>>;
567
- readonly slStreamId: import('../../sdk-web/src/index.ts-interfaces').ApiStore<string | undefined, import("@nanostores/query").FetcherStore<string | undefined, any>>;
568
- readonly streamSettings: import('../../sdk-web/src/index.ts-interfaces').ApiStore<import("@streamlayer/sl-eslib/sdkSettings/sdkSettings.common_pb").StreamSettings | undefined, import("@nanostores/query").FetcherStore<import("@streamlayer/sl-eslib/sdkSettings/sdkSettings.common_pb").StreamSettings | undefined, any>>;
569
- readonly user: import('../../sdk-web/src/index.ts-interfaces').ApiStore<import("@streamlayer/sl-eslib/users/users_pb").MeResponse | undefined, import("@nanostores/query").FetcherStore<import("@streamlayer/sl-eslib/users/users_pb").MeResponse | undefined, any>>;
570
- readonly userKey: import('../../sdk-web/src/index.ts-interfaces').SingleStore<unknown, import("nanostores").WritableAtom<string | undefined>>;
571
- readonly userToken: import('../../sdk-web/src/index.ts-interfaces').SingleStore<unknown, import("nanostores").WritableAtom<string | undefined>>;
572
- readonly userSettings: import('../../sdk-web/src/index.ts-interfaces').ApiStore<import("@streamlayer/sl-eslib/sdkSettings/client/client_pb").ClientSettings | undefined, import("@nanostores/query").FetcherStore<import("@streamlayer/sl-eslib/sdkSettings/client/client_pb").ClientSettings | undefined, any>>;
573
- readonly organizationSettings: import('../../sdk-web/src/index.ts-interfaces').ApiStore<{
566
+ readonly enabled: import('../../sdk-web-interfaces/src/index.ts').SingleStore<unknown, import("nanostores").WritableAtom<"on" | undefined>>;
567
+ readonly status: import('../../sdk-web-interfaces/src/index.ts').SingleStore<unknown, import("nanostores").WritableAtom<CoreStatus>>;
568
+ readonly providerStreamId: import('../../sdk-web-interfaces/src/index.ts').SingleStore<unknown, import("nanostores").WritableAtom<string | undefined>>;
569
+ readonly slStreamId: import('../../sdk-web-interfaces/src/index.ts').ApiStore<string | undefined, import("@nanostores/query").FetcherStore<string | undefined, any>>;
570
+ readonly streamSettings: import('../../sdk-web-interfaces/src/index.ts').ApiStore<import("@streamlayer/sl-eslib/sdkSettings/sdkSettings.common_pb").StreamSettings | undefined, import("@nanostores/query").FetcherStore<import("@streamlayer/sl-eslib/sdkSettings/sdkSettings.common_pb").StreamSettings | undefined, any>>;
571
+ readonly user: import('../../sdk-web-interfaces/src/index.ts').ApiStore<import("@streamlayer/sl-eslib/users/users_pb").MeResponse & import("@streamlayer/sl-eslib/users/users_pb").BypassAuthResponse, import("@nanostores/query").FetcherStore<import("@streamlayer/sl-eslib/users/users_pb").MeResponse & import("@streamlayer/sl-eslib/users/users_pb").BypassAuthResponse, any>>;
572
+ readonly userKey: import('../../sdk-web-interfaces/src/index.ts').SingleStore<unknown, import("nanostores").WritableAtom<string | undefined>>;
573
+ readonly userToken: import('../../sdk-web-interfaces/src/index.ts').SingleStore<unknown, import("nanostores").WritableAtom<string | undefined>>;
574
+ readonly userSettings: import('../../sdk-web-interfaces/src/index.ts').ApiStore<import("@streamlayer/sl-eslib/sdkSettings/client/client_pb").ClientSettings | undefined, import("@nanostores/query").FetcherStore<import("@streamlayer/sl-eslib/sdkSettings/client/client_pb").ClientSettings | undefined, any>>;
575
+ readonly organizationSettings: import('../../sdk-web-interfaces/src/index.ts').ApiStore<{
574
576
  id: string;
575
577
  overlays?: import("@streamlayer/sl-eslib/sdkSettings/sdkSettings.common_pb").SdkOverlay[] | undefined;
576
578
  buttonIcon?: string | undefined;
@@ -603,7 +605,7 @@ declare module "../../sdk-web-core/src/store/store" {
603
605
  pub?: import("@streamlayer/sl-eslib/sdkSettings/sdkSettings.common_pb").JWK | undefined;
604
606
  getstream?: import("@streamlayer/sl-eslib/sdkSettings/sdkSettings.common_pb").GetStreamSettingsClient | undefined;
605
607
  } | undefined, any>>;
606
- readonly organizationAdvertising: import('../../sdk-web/src/index.ts-interfaces').ApiStore<import("@streamlayer/sl-eslib/sdkSettings/sdkSettings.common_pb").Advertising | undefined, import("@nanostores/query").FetcherStore<import("@streamlayer/sl-eslib/sdkSettings/sdkSettings.common_pb").Advertising | undefined, any>>;
608
+ readonly organizationAdvertising: import('../../sdk-web-interfaces/src/index.ts').ApiStore<import("@streamlayer/sl-eslib/sdkSettings/sdkSettings.common_pb").Advertising | undefined, import("@nanostores/query").FetcherStore<import("@streamlayer/sl-eslib/sdkSettings/sdkSettings.common_pb").Advertising | undefined, any>>;
607
609
  };
608
610
  setValue(): void;
609
611
  subscribe: (subscribes: Partial<StoreListeners>) => void;
@@ -613,10 +615,49 @@ declare module "../../sdk-web-core/src/store/store" {
613
615
  [Index in keyof StoreObj]: (params: FetcherValue<CoreStoreInterface[Index]>) => void;
614
616
  };
615
617
  }
618
+ declare module "../../sdk-web-core/src/deepLink/index" {
619
+ import { StreamLayerContext } from '../../sdk-web-interfaces/src/index.ts';
620
+ import { MapStore } from '../../sdk-web-interfaces/src/index.ts';
621
+ type DeepLinkContextData = {
622
+ processed: boolean;
623
+ hash?: string;
624
+ search?: string;
625
+ sessionId?: string;
626
+ data?: {
627
+ friendId?: string;
628
+ };
629
+ };
630
+ export interface DeepLinkContext {
631
+ $store: DeepLinkContextStore;
632
+ getDeepLinkData: () => DeepLinkContextData['data'];
633
+ deepLinkUsed: (inviterId: string) => void;
634
+ onDeepLinkHandlers: Set<() => void>;
635
+ }
636
+ export type DeepLinkContextStore = MapStore<DeepLinkContextData>;
637
+ module '@streamlayer/sdk-web-interfaces' {
638
+ interface StreamLayerContext {
639
+ deepLink: DeepLinkContext;
640
+ }
641
+ interface StreamLayerSDK {
642
+ onDeepLinkHandled: (cb: () => void) => void;
643
+ deepLinkHandled: () => void;
644
+ getInviterId: () => string | undefined;
645
+ }
646
+ }
647
+ export const DEEP_LINK_PREFIX = "sldl";
648
+ export const DEEP_LINK_USER_ID = "sldl_uid";
649
+ export const DEEP_LINK_EVENT_ID = "sldl_eid";
650
+ /**
651
+ * Bypass authorization, used for login with external token.
652
+ * Automatically login user if SDK initialized and READY.
653
+ */
654
+ export const deepLink: (instance: StreamLayerContext, opts: unknown, done: () => void) => void;
655
+ }
616
656
  declare module "../../sdk-web-core/src/auth/bypass/index" {
617
- import { AbstractAuthenticationProvider } from '../../sdk-web/src/index.ts-interfaces';
618
- import { Transport } from '../../sdk-web/src/index.ts-api';
657
+ import { AbstractAuthenticationProvider } from '../../sdk-web-interfaces/src/index.ts';
658
+ import { Transport } from '../../sdk-web-api/src/index.ts';
619
659
  import { CoreStore } from "../../sdk-web-core/src/store/store";
660
+ import { DeepLinkContext } from "../../sdk-web-core/src/deepLink/index";
620
661
  /**
621
662
  * An authorization service manages user access by providing login, logout,
622
663
  * authentication checks, and the ability to revoke access.
@@ -624,10 +665,11 @@ declare module "../../sdk-web-core/src/auth/bypass/index" {
624
665
  */
625
666
  export class BypassAuth extends AbstractAuthenticationProvider {
626
667
  private readonly $coreStore;
668
+ private readonly deepLink;
627
669
  private readonly transport;
628
670
  private readonly bypassLogin;
629
- constructor(store: CoreStore, transport: Transport);
630
- me: () => Promise<import("@streamlayer/sl-eslib/users/users_common_pb").User | undefined>;
671
+ constructor(store: CoreStore, transport: Transport, deepLink: DeepLinkContext);
672
+ me: () => Promise<(import("@streamlayer/sl-eslib/users/users_common_pb").User & import("@streamlayer/sl-eslib/users/users_common_pb").User) | undefined>;
631
673
  /**
632
674
  * Login user by token and schema.
633
675
  * On success, save the user and update the token to the Transport, UserStore and cache.
@@ -635,7 +677,7 @@ declare module "../../sdk-web-core/src/auth/bypass/index" {
635
677
  * @param userKey - user token received from the host app.
636
678
  */
637
679
  login: (schema: string, userKey: string) => Promise<string>;
638
- isAuthenticated: () => Promise<import("@streamlayer/sl-eslib/users/users_common_pb").User | undefined>;
680
+ isAuthenticated: () => Promise<(import("@streamlayer/sl-eslib/users/users_common_pb").User & import("@streamlayer/sl-eslib/users/users_common_pb").User) | undefined>;
639
681
  /**
640
682
  * Logout user. Clears the all user data from the store.
641
683
  */
@@ -665,7 +707,7 @@ declare module "../../sdk-web-core/src/auth/bypass/index" {
665
707
  }
666
708
  }
667
709
  declare module "../../sdk-web-core/src/auth/index" {
668
- import { StreamLayerContext } from '../../sdk-web/src/index.ts-interfaces';
710
+ import { StreamLayerContext } from '../../sdk-web-interfaces/src/index.ts';
669
711
  import { CoreStores, StoreObj } from "../../sdk-web-core/src/store/store";
670
712
  import { UserStorage } from "../../sdk-web-core/src/storage";
671
713
  import { BypassAuth } from "../../sdk-web-core/src/auth/bypass/index";
@@ -689,7 +731,7 @@ declare module "../../sdk-web-core/src/auth/index" {
689
731
  export const bypass: (instance: StreamLayerContext, opts: unknown, done: () => void) => void;
690
732
  }
691
733
  declare module "../../sdk-web-core/src/store/index" {
692
- import { StreamLayerContext } from '../../sdk-web/src/index.ts-interfaces';
734
+ import { StreamLayerContext } from '../../sdk-web-interfaces/src/index.ts';
693
735
  import { CoreStore, CoreStores, StoreObj } from "../../sdk-web-core/src/store/store";
694
736
  module '@streamlayer/sdk-web-interfaces' {
695
737
  interface StreamLayerSDK {
@@ -719,9 +761,10 @@ declare module "../../sdk-web-core/src/store/index" {
719
761
  export const store: (instance: StreamLayerContext, opts: unknown, done: () => void) => void;
720
762
  }
721
763
  declare module "../../sdk-web-core/src/index" {
722
- import { StreamLayerContext } from '../../sdk-web/src/index.ts-interfaces';
764
+ import { StreamLayerContext } from '../../sdk-web-interfaces/src/index.ts';
723
765
  export { bypass, storage } from "../../sdk-web-core/src/auth/index";
724
766
  export { store } from "../../sdk-web-core/src/store/index";
767
+ export { deepLink, DEEP_LINK_PREFIX, DEEP_LINK_USER_ID, DEEP_LINK_EVENT_ID } from "../../sdk-web-core/src/deepLink/index";
725
768
  import "../../sdk-web-core/src/store/index";
726
769
  import "../../sdk-web-core/src/auth/index";
727
770
  module '@streamlayer/sdk-web-interfaces' {
@@ -758,7 +801,7 @@ declare module "../../sdk-web-logger/src/index" {
758
801
  export type Logger = ReturnType<typeof createLogger>;
759
802
  }
760
803
  declare module "../../sdk-web-notifications/src/queue/index" {
761
- import { SingleStore, createComputedStore } from '../../sdk-web/src/index.ts-interfaces';
804
+ import { SingleStore, createComputedStore } from '../../sdk-web-interfaces/src/index.ts';
762
805
  import { Notification } from "../../sdk-web-notifications/src/index";
763
806
  export type NotificationsQueueOptions = {
764
807
  concurrency: number;
@@ -782,7 +825,7 @@ declare module "../../sdk-web-notifications/src/queue/index" {
782
825
  }
783
826
  }
784
827
  declare module "../../sdk-web-notifications/src/storage" {
785
- import { Storage } from '../../sdk-web/src/index.ts-storage';
828
+ import { Storage } from '../../sdk-web-storage/src/index.ts';
786
829
  export class NotificationStorage extends Storage {
787
830
  constructor();
788
831
  setOpened: (notificationId: string) => void;
@@ -791,7 +834,7 @@ declare module "../../sdk-web-notifications/src/storage" {
791
834
  }
792
835
  }
793
836
  declare module "../../sdk-web-notifications/src/notifications" {
794
- import { InstantView, QuestionType, GameSettings } from '../../sdk-web/src/index.ts-types';
837
+ import { InstantView, QuestionType, GameSettings } from '../../sdk-web-types/src/index.ts';
795
838
  import { NotificationsQueue, NotificationsQueueOptions } from "../../sdk-web-notifications/src/queue/index";
796
839
  export type NotificationData = {
797
840
  questionType: QuestionType;
@@ -849,7 +892,7 @@ declare module "../../sdk-web-notifications/src/notifications" {
849
892
  }
850
893
  }
851
894
  declare module "../../sdk-web-notifications/src/index" {
852
- import { StreamLayerContext } from '../../sdk-web/src/index.ts-interfaces';
895
+ import { StreamLayerContext } from '../../sdk-web-interfaces/src/index.ts';
853
896
  import { Notifications } from "../../sdk-web-notifications/src/notifications";
854
897
  export { type Notification, type NotificationData, NotificationType, Notifications } from "../../sdk-web-notifications/src/notifications";
855
898
  export { type NotificationsList } from "../../sdk-web-notifications/src/queue/index";
@@ -869,7 +912,7 @@ declare module "../../sdk-web-notifications/src/index" {
869
912
  export const notifications: (instance: StreamLayerContext, opts: unknown, done: () => void) => void;
870
913
  }
871
914
  declare module "../../feature-gamification/src/queries/leaderboard" {
872
- import type { Transport } from '../../sdk-web/src/index.ts-api';
915
+ import type { Transport } from '../../sdk-web-api/src/index.ts';
873
916
  import { ReadableAtom } from 'nanostores';
874
917
  import { ListRequest } from '@streamlayer/sl-eslib/interactive/leaderboard/interactive.leaderboard_pb';
875
918
  import { PartialMessage } from '@bufbuild/protobuf';
@@ -879,17 +922,17 @@ declare module "../../feature-gamification/src/queries/leaderboard" {
879
922
  export const createLeaderboardListFetch: (transport: Transport) => (params: PartialMessage<ListRequest>) => Promise<import("@streamlayer/sl-eslib/interactive/leaderboard/interactive.leaderboard_pb").ListResponse>;
880
923
  }
881
924
  declare module "../../feature-gamification/src/queries/friends" {
882
- import type { Transport } from '../../sdk-web/src/index.ts-api';
925
+ import type { Transport } from '../../sdk-web-api/src/index.ts';
883
926
  import { ReadableAtom } from 'nanostores';
884
927
  export const $friends: ($userId: ReadableAtom<string | undefined>, transport: Transport) => import("@nanostores/query").FetcherStore<import("@streamlayer/sl-eslib/users/users_pb").GetFriendsResponse_FriendData[], any>;
885
928
  }
886
929
  declare module "../../feature-gamification/src/queries/moderation" {
887
- import type { Transport } from '../../sdk-web/src/index.ts-api';
930
+ import type { Transport } from '../../sdk-web-api/src/index.ts';
888
931
  import { ReadableAtom } from 'nanostores';
889
932
  export const $moderation: (slStreamId: ReadableAtom<string | undefined>, transport: Transport) => import("@nanostores/query").FetcherStore<import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").InteractiveFeed | undefined, any>;
890
933
  }
891
934
  declare module "../../feature-gamification/src/queries/index" {
892
- import type { Transport } from '../../sdk-web/src/index.ts-api';
935
+ import type { Transport } from '../../sdk-web-api/src/index.ts';
893
936
  import { ReadableAtom } from 'nanostores';
894
937
  import type { SubscriptionRequest, SubscriptionResponse, VotingSubscriptionRequest, VotingSubscriptionResponse, QuestionSubscriptionRequest, QuestionSubscriptionResponse } from '@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb';
895
938
  import { InteractiveAllowed } from "../../feature-gamification/src/background";
@@ -1218,9 +1261,9 @@ declare module "../../feature-gamification/src/queries/index" {
1218
1261
  };
1219
1262
  };
1220
1263
  }, QuestionSubscriptionRequest, QuestionSubscriptionResponse, "subscription" | "votingSubscription" | "questionSubscription" | "feedSubscription", ((request: import("@bufbuild/protobuf").PartialMessage<SubscriptionRequest>, options?: import("@connectrpc/connect").CallOptions | undefined) => AsyncIterable<SubscriptionResponse>) | ((request: import("@bufbuild/protobuf").PartialMessage<VotingSubscriptionRequest>, options?: import("@connectrpc/connect").CallOptions | undefined) => AsyncIterable<VotingSubscriptionResponse>) | ((request: import("@bufbuild/protobuf").PartialMessage<QuestionSubscriptionRequest>, options?: import("@connectrpc/connect").CallOptions | undefined) => AsyncIterable<QuestionSubscriptionResponse>) | ((request: import("@bufbuild/protobuf").PartialMessage<import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").FeedSubscriptionRequest>, options?: import("@connectrpc/connect").CallOptions | undefined) => AsyncIterable<import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").FeedSubscriptionResponse>)>;
1221
- export const getQuestionByUser: (questionId: string, transport: Transport) => Promise<import('../../sdk-web/src/index.ts-types').ExtendedQuestion | undefined>;
1264
+ export const getQuestionByUser: (questionId: string, transport: Transport) => Promise<import('../../sdk-web-types/src/index.ts').ExtendedQuestion | undefined>;
1222
1265
  export const getQuestionDetail: (questionId: string, transport: Transport) => Promise<import("@streamlayer/sl-eslib/interactive/interactive.common_pb").Question | undefined>;
1223
- export const $questionByUser: ($questionId: ReadableAtom<string | undefined>, transport: Transport) => import("@nanostores/query").FetcherStore<import('../../sdk-web/src/index.ts-types').ExtendedQuestion | undefined, any>;
1266
+ export const $questionByUser: ($questionId: ReadableAtom<string | undefined>, transport: Transport) => import("@nanostores/query").FetcherStore<import('../../sdk-web-types/src/index.ts').ExtendedQuestion | undefined, any>;
1224
1267
  export const $pickHistory: (slStreamId: ReadableAtom<string | undefined>, transport: Transport) => import("@nanostores/query").FetcherStore<(import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").PickHistory | undefined)[], any>;
1225
1268
  export const $feedList: ($slStreamId: ReadableAtom<string | undefined>, $interactiveAllowed: ReadableAtom<InteractiveAllowed>, transport: Transport) => import("@nanostores/query").FetcherStore<import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").FeedItem[], any>;
1226
1269
  export { $userSummary, $leaderboardList } from "../../feature-gamification/src/queries/leaderboard";
@@ -1228,7 +1271,7 @@ declare module "../../feature-gamification/src/queries/index" {
1228
1271
  export { $moderation } from "../../feature-gamification/src/queries/moderation";
1229
1272
  }
1230
1273
  declare module "../../feature-gamification/src/detail" {
1231
- import type { Transport } from '../../sdk-web/src/index.ts-api';
1274
+ import type { Transport } from '../../sdk-web-api/src/index.ts';
1232
1275
  import { ReadableAtom } from 'nanostores';
1233
1276
  import { getQuestionByUser } from "../../feature-gamification/src/queries/index";
1234
1277
  import { type GamificationBackground } from "../../feature-gamification/src/background";
@@ -1245,8 +1288,8 @@ declare module "../../feature-gamification/src/detail" {
1245
1288
  };
1246
1289
  }
1247
1290
  declare module "../../feature-gamification/src/background" {
1248
- import { ApiStore, type StreamLayerContext } from '../../sdk-web/src/index.ts-interfaces';
1249
- import type { GetApiResponseType } from '../../sdk-web/src/index.ts-api';
1291
+ import { ApiStore, type StreamLayerContext } from '../../sdk-web-interfaces/src/index.ts';
1292
+ import type { GetApiResponseType } from '../../sdk-web-api/src/index.ts';
1250
1293
  import '@streamlayer/sdk-web-core/store';
1251
1294
  import { ReadableAtom, WritableAtom } from 'nanostores';
1252
1295
  import * as queries from "../../feature-gamification/src/queries/index";
@@ -1315,7 +1358,7 @@ declare module "../../feature-gamification/src/background" {
1315
1358
  }
1316
1359
  }
1317
1360
  declare module "../../feature-gamification/src/queries/actions" {
1318
- import type { Transport } from '../../sdk-web/src/index.ts-api';
1361
+ import type { Transport } from '../../sdk-web-api/src/index.ts';
1319
1362
  export const submitAnswer: (transport: Transport, data: {
1320
1363
  questionId: string;
1321
1364
  answerId: string;
@@ -1324,8 +1367,8 @@ declare module "../../feature-gamification/src/queries/actions" {
1324
1367
  export const skipQuestion: (transport: Transport, questionId: string) => Promise<import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").SkipQuestionResponse>;
1325
1368
  }
1326
1369
  declare module "../../feature-gamification/src/onboarding" {
1327
- import { Transport } from '../../sdk-web/src/index.ts-api';
1328
- import { type Notifications } from '../../sdk-web/src/index.ts-notifications';
1370
+ import { Transport } from '../../sdk-web-api/src/index.ts';
1371
+ import { type Notifications } from '../../sdk-web-notifications/src/index.ts';
1329
1372
  import { GamificationBackground } from "../../feature-gamification/src/background";
1330
1373
  import { Gamification } from "../../feature-gamification/src/index";
1331
1374
  /**
@@ -1349,7 +1392,7 @@ declare module "../../feature-gamification/src/onboarding" {
1349
1392
  };
1350
1393
  }
1351
1394
  declare module "../../feature-gamification/src/storage" {
1352
- import { Storage } from '../../sdk-web/src/index.ts-storage';
1395
+ import { Storage } from '../../sdk-web-storage/src/index.ts';
1353
1396
  import { OnboardingStatus } from "../../feature-gamification/src/onboarding";
1354
1397
  type UserProps = {
1355
1398
  userId: string;
@@ -1365,7 +1408,7 @@ declare module "../../feature-gamification/src/storage" {
1365
1408
  }
1366
1409
  }
1367
1410
  declare module "../../feature-gamification/src/leaderboard" {
1368
- import type { Transport } from '../../sdk-web/src/index.ts-api';
1411
+ import type { Transport } from '../../sdk-web-api/src/index.ts';
1369
1412
  import { ReadableAtom } from 'nanostores';
1370
1413
  import { type LeaderboardItem } from "../../feature-gamification/src/queries/leaderboard";
1371
1414
  import { Gamification } from "../../feature-gamification/src/index";
@@ -1386,7 +1429,7 @@ declare module "../../feature-gamification/src/leaderboard" {
1386
1429
  };
1387
1430
  }
1388
1431
  declare module "../../feature-gamification/src/queries/deepLink" {
1389
- import type { Transport } from '../../sdk-web/src/index.ts-api';
1432
+ import type { Transport } from '../../sdk-web-api/src/index.ts';
1390
1433
  import { ReadableAtom } from 'nanostores';
1391
1434
  import { DeepLink } from '@streamlayer/sl-eslib/sdkSettings/client/client_pb';
1392
1435
  type EventId = ReadableAtom<string | undefined>;
@@ -1397,7 +1440,7 @@ declare module "../../feature-gamification/src/queries/deepLink" {
1397
1440
  }) => Promise<import("@streamlayer/sl-eslib/shortLinks/linksClient_pb").GenerateResponse>;
1398
1441
  }
1399
1442
  declare module "../../feature-gamification/src/deepLink" {
1400
- import type { Transport } from '../../sdk-web/src/index.ts-api';
1443
+ import type { Transport } from '../../sdk-web-api/src/index.ts';
1401
1444
  import { ReadableAtom } from 'nanostores';
1402
1445
  type DeepLinkData = {
1403
1446
  data?: string;
@@ -1410,9 +1453,9 @@ declare module "../../feature-gamification/src/deepLink" {
1410
1453
  };
1411
1454
  }
1412
1455
  declare module "../../feature-gamification/src/gamification" {
1413
- import { AbstractFeature, ApiStore, FeatureSource, type FeatureProps, type StreamLayerContext } from '../../sdk-web/src/index.ts-interfaces';
1414
- import { type GamesOverlaySettings } from '../../sdk-web/src/index.ts-types';
1415
- import type { GetApiResponseType } from '../../sdk-web/src/index.ts-api';
1456
+ import { AbstractFeature, ApiStore, FeatureSource, type FeatureProps, type StreamLayerContext } from '../../sdk-web-interfaces/src/index.ts';
1457
+ import { type GamesOverlaySettings } from '../../sdk-web-types/src/index.ts';
1458
+ import type { GetApiResponseType } from '../../sdk-web-api/src/index.ts';
1416
1459
  import '@streamlayer/sdk-web-core/store';
1417
1460
  import type { PlainMessage } from '@bufbuild/protobuf';
1418
1461
  import { WritableAtom } from 'nanostores';
@@ -1492,8 +1535,8 @@ declare module "../../feature-gamification/src/index" {
1492
1535
  }
1493
1536
  }
1494
1537
  declare module "../../sdk-web-features/src/index" {
1495
- import { FeatureType } from '../../sdk-web/src/index.ts-types';
1496
- import { AbstractFeature, FeatureSource, FeatureProps, StreamLayerContext, SingleStore } from '../../sdk-web/src/index.ts-interfaces';
1538
+ import { FeatureType } from '../../sdk-web-types/src/index.ts';
1539
+ import { AbstractFeature, FeatureSource, FeatureProps, StreamLayerContext, SingleStore } from '../../sdk-web-interfaces/src/index.ts';
1497
1540
  import { Gamification } from '../../feature-gamification/src/index.ts';
1498
1541
  export type Features = Feature | Gamification;
1499
1542
  export const AvailableFeatures: {
@@ -1503,7 +1546,7 @@ declare module "../../sdk-web-features/src/index" {
1503
1546
  constructor(overlay: FeatureProps, source: FeatureSource);
1504
1547
  }
1505
1548
  export const initFeature: (overlay: FeatureProps, source: FeatureSource, instance: StreamLayerContext) => Gamification | Feature;
1506
- export { FeatureSource } from '../../sdk-web/src/index.ts-interfaces';
1549
+ export { FeatureSource } from '../../sdk-web-interfaces/src/index.ts';
1507
1550
  module '@streamlayer/sdk-web-interfaces' {
1508
1551
  interface StreamLayerContext {
1509
1552
  features: Map<FeatureType, Features>;
@@ -1523,8 +1566,9 @@ declare module "../../sdk-web-features/src/index" {
1523
1566
  export const features: (instance: StreamLayerContext, opts: unknown, done: () => void) => void;
1524
1567
  }
1525
1568
  declare module "../../sdk-web/src/index" {
1526
- import { StreamLayerContext } from '../../sdk-web/src/index.ts-interfaces';
1569
+ import { StreamLayerContext } from '../../sdk-web-interfaces/src/index.ts';
1527
1570
  import avvio from 'avvio';
1571
+ import './polyfills/raf';
1528
1572
  export type StreamLayerInstance = avvio.mixedInstance<StreamLayerContext>;
1529
1573
  export type StreamLayerPlugin = (instance: StreamLayerContext, opts: unknown, done: DoneFn) => void;
1530
1574
  type DoneFn = Function;
@@ -1533,7 +1577,7 @@ declare module "../../sdk-web/src/index" {
1533
1577
  }): avvio.Avvio<StreamLayerContext>;
1534
1578
  }
1535
1579
  declare module "app/useStreamLayerApp" {
1536
- import type { StreamLayerSDK, StreamLayerPlugin } from '../../sdk-web/src/index.ts-interfaces';
1580
+ import type { StreamLayerSDK, StreamLayerPlugin } from '../../sdk-web-interfaces/src/index.ts';
1537
1581
  global {
1538
1582
  interface Window {
1539
1583
  sl: unknown;
@@ -1542,7 +1586,7 @@ declare module "app/useStreamLayerApp" {
1542
1586
  export const useStreamLayerApp: (sdkKey: string, plugins?: Set<StreamLayerPlugin>, production?: boolean, autoEnable?: boolean) => StreamLayerSDK | null;
1543
1587
  }
1544
1588
  declare module "app/provider" {
1545
- import type { StreamLayerSDK, StreamLayerPlugin } from '../../sdk-web/src/index.ts-interfaces';
1589
+ import type { StreamLayerSDK, StreamLayerPlugin } from '../../sdk-web-interfaces/src/index.ts';
1546
1590
  export enum StreamLayerStatus {
1547
1591
  UNSET = 0,
1548
1592
  CONNECTED = 1,
@@ -1557,12 +1601,14 @@ declare module "app/provider" {
1557
1601
  plugins?: Set<StreamLayerPlugin>;
1558
1602
  production?: boolean;
1559
1603
  autoEnable?: boolean;
1604
+ onDeepLinkHandled?: () => void;
1560
1605
  };
1561
1606
  export const StreamLayerProvider: React.FC<StreamLayerProps & {
1562
1607
  children: React.ReactNode;
1563
1608
  }>;
1564
1609
  }
1565
1610
  declare module "app/masters" {
1611
+ import { Component } from 'react';
1566
1612
  import { StreamLayerProps } from "app/provider";
1567
1613
  import '@streamlayer/react-ui/style.css';
1568
1614
  export const MastersStreamLayerProvider: React.FC<Omit<StreamLayerProps, 'autoEnable'> & {
@@ -1579,10 +1625,19 @@ declare module "app/masters" {
1579
1625
  overlays?: Overlays;
1580
1626
  children: (methods: MastersAppChildrenProps) => React.ReactNode;
1581
1627
  };
1582
- export const MastersStreamLayerSDKReact: React.FC<MastersAppProps>;
1628
+ export class MastersStreamLayerSDKReact extends Component<MastersAppProps, {
1629
+ hasError: boolean;
1630
+ }> {
1631
+ constructor(props: MastersAppProps);
1632
+ static getDerivedStateFromError(): {
1633
+ hasError: boolean;
1634
+ };
1635
+ componentDidCatch(error: any, info: any): void;
1636
+ render(): string | number | boolean | Iterable<import("react").ReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined;
1637
+ }
1583
1638
  }
1584
1639
  declare module "app/app" {
1585
- import type { StreamLayerSDK } from '../../sdk-web/src/index.ts-interfaces';
1640
+ import type { StreamLayerSDK } from '../../sdk-web-interfaces/src/index.ts';
1586
1641
  export const useStreamLayer: () => StreamLayerSDK | null;
1587
1642
  export const StreamLayerSDKReact: React.FC;
1588
1643
  }