@streamlayer/react 0.37.0 → 0.37.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.
- package/lib/cjs/app.js +1 -1
- package/lib/cjs/gamification-feature.js +2 -2
- package/lib/cjs/index2.js +13 -3
- package/lib/cjs/masters.js +1 -1
- package/lib/cjs/masters2.js +30 -30
- package/lib/cjs/points.js +1 -1
- package/lib/cjs/useSdkFeature.js +1 -1
- package/lib/cjs/useStreamLayerApp.js +1 -1
- package/lib/dist/cjs/gamification-feature.js +2 -2
- package/lib/dist/cjs/masters.js +76 -65
- package/lib/dist/es/gamification-feature.js +611 -610
- package/lib/dist/es/index.js +1 -1
- package/lib/dist/es/masters.js +22672 -20022
- package/lib/dist/index.d.ts +55 -55
- package/lib/dist/style.css +1 -1
- package/lib/es/app.js +5 -5
- package/lib/es/gamification-feature.js +614 -614
- package/lib/es/index2.js +59 -24
- package/lib/es/masters.js +4 -3
- package/lib/es/masters2.js +5728 -5677
- package/lib/es/points.js +21 -22
- package/lib/es/useSdkFeature.js +112 -97
- package/lib/es/useStreamLayerApp.js +1 -1
- package/lib/style.css +1 -1
- package/package.json +14 -14
- package/lib/cjs/index3.js +0 -1
- package/lib/es/index3.js +0 -19
package/lib/dist/index.d.ts
CHANGED
|
@@ -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
|
|
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
|
|
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";
|
|
@@ -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
|
|
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";
|
|
@@ -442,7 +442,7 @@ declare module "../../sdk-web-storage/src/index" {
|
|
|
442
442
|
}
|
|
443
443
|
}
|
|
444
444
|
declare module "../../sdk-web-core/src/storage" {
|
|
445
|
-
import { Storage } from '../../sdk-web/src/index.ts
|
|
445
|
+
import { Storage } from '../../sdk-web-storage/src/index.ts';
|
|
446
446
|
export class UserStorage extends Storage {
|
|
447
447
|
constructor();
|
|
448
448
|
setSchema: (value: string) => void;
|
|
@@ -455,8 +455,8 @@ declare module "../../sdk-web-core/src/storage" {
|
|
|
455
455
|
}
|
|
456
456
|
}
|
|
457
457
|
declare module "../../sdk-web-core/src/store/init" {
|
|
458
|
-
import { SingleStore, ApiStore } from '../../sdk-web/src/index.ts
|
|
459
|
-
import { Transport } from '../../sdk-web/src/index.ts
|
|
458
|
+
import { SingleStore, ApiStore } from '../../sdk-web-interfaces/src/index.ts';
|
|
459
|
+
import { Transport } from '../../sdk-web-api/src/index.ts';
|
|
460
460
|
export enum CoreStatus {
|
|
461
461
|
DISABLED = "disabled",
|
|
462
462
|
INITIALIZATION = "initialization",
|
|
@@ -511,9 +511,9 @@ declare module "../../sdk-web-core/src/store/init" {
|
|
|
511
511
|
};
|
|
512
512
|
}
|
|
513
513
|
declare module "../../sdk-web-core/src/store/store" {
|
|
514
|
-
import type { OrganizationAdvertising, StreamSettings, OrganizationSettings, User, UserSettings } from '../../sdk-web/src/index.ts
|
|
515
|
-
import { AbstractStore } from '../../sdk-web/src/index.ts
|
|
516
|
-
import { Transport } from '../../sdk-web/src/index.ts
|
|
514
|
+
import type { OrganizationAdvertising, StreamSettings, OrganizationSettings, User, UserSettings } from '../../sdk-web-types/src/index.ts';
|
|
515
|
+
import { AbstractStore } from '../../sdk-web-interfaces/src/index.ts';
|
|
516
|
+
import { Transport } from '../../sdk-web-api/src/index.ts';
|
|
517
517
|
import { ReadableAtom } from 'nanostores';
|
|
518
518
|
import { FetcherValue } from '@nanostores/query';
|
|
519
519
|
import { initializeStore, CoreStatus } from "../../sdk-web-core/src/store/init";
|
|
@@ -561,16 +561,16 @@ declare module "../../sdk-web-core/src/store/store" {
|
|
|
561
561
|
constructor(transport: Transport);
|
|
562
562
|
getValue(): unknown;
|
|
563
563
|
getValues(): {
|
|
564
|
-
readonly enabled: import('../../sdk-web/src/index.ts
|
|
565
|
-
readonly status: import('../../sdk-web/src/index.ts
|
|
566
|
-
readonly providerStreamId: import('../../sdk-web/src/index.ts
|
|
567
|
-
readonly slStreamId: import('../../sdk-web/src/index.ts
|
|
568
|
-
readonly streamSettings: import('../../sdk-web/src/index.ts
|
|
569
|
-
readonly user: import('../../sdk-web/src/index.ts
|
|
570
|
-
readonly userKey: import('../../sdk-web/src/index.ts
|
|
571
|
-
readonly userToken: import('../../sdk-web/src/index.ts
|
|
572
|
-
readonly userSettings: import('../../sdk-web/src/index.ts
|
|
573
|
-
readonly organizationSettings: import('../../sdk-web/src/index.ts
|
|
564
|
+
readonly enabled: import('../../sdk-web-interfaces/src/index.ts').SingleStore<unknown, import("nanostores").WritableAtom<"on" | undefined>>;
|
|
565
|
+
readonly status: import('../../sdk-web-interfaces/src/index.ts').SingleStore<unknown, import("nanostores").WritableAtom<CoreStatus>>;
|
|
566
|
+
readonly providerStreamId: import('../../sdk-web-interfaces/src/index.ts').SingleStore<unknown, import("nanostores").WritableAtom<string | undefined>>;
|
|
567
|
+
readonly slStreamId: import('../../sdk-web-interfaces/src/index.ts').ApiStore<string | undefined, import("@nanostores/query").FetcherStore<string | undefined, any>>;
|
|
568
|
+
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>>;
|
|
569
|
+
readonly user: import('../../sdk-web-interfaces/src/index.ts').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-interfaces/src/index.ts').SingleStore<unknown, import("nanostores").WritableAtom<string | undefined>>;
|
|
571
|
+
readonly userToken: import('../../sdk-web-interfaces/src/index.ts').SingleStore<unknown, import("nanostores").WritableAtom<string | undefined>>;
|
|
572
|
+
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>>;
|
|
573
|
+
readonly organizationSettings: import('../../sdk-web-interfaces/src/index.ts').ApiStore<{
|
|
574
574
|
id: string;
|
|
575
575
|
overlays?: import("@streamlayer/sl-eslib/sdkSettings/sdkSettings.common_pb").SdkOverlay[] | undefined;
|
|
576
576
|
buttonIcon?: string | undefined;
|
|
@@ -603,7 +603,7 @@ declare module "../../sdk-web-core/src/store/store" {
|
|
|
603
603
|
pub?: import("@streamlayer/sl-eslib/sdkSettings/sdkSettings.common_pb").JWK | undefined;
|
|
604
604
|
getstream?: import("@streamlayer/sl-eslib/sdkSettings/sdkSettings.common_pb").GetStreamSettingsClient | undefined;
|
|
605
605
|
} | undefined, any>>;
|
|
606
|
-
readonly organizationAdvertising: import('../../sdk-web/src/index.ts
|
|
606
|
+
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
607
|
};
|
|
608
608
|
setValue(): void;
|
|
609
609
|
subscribe: (subscribes: Partial<StoreListeners>) => void;
|
|
@@ -614,8 +614,8 @@ declare module "../../sdk-web-core/src/store/store" {
|
|
|
614
614
|
};
|
|
615
615
|
}
|
|
616
616
|
declare module "../../sdk-web-core/src/auth/bypass/index" {
|
|
617
|
-
import { AbstractAuthenticationProvider } from '../../sdk-web/src/index.ts
|
|
618
|
-
import { Transport } from '../../sdk-web/src/index.ts
|
|
617
|
+
import { AbstractAuthenticationProvider } from '../../sdk-web-interfaces/src/index.ts';
|
|
618
|
+
import { Transport } from '../../sdk-web-api/src/index.ts';
|
|
619
619
|
import { CoreStore } from "../../sdk-web-core/src/store/store";
|
|
620
620
|
/**
|
|
621
621
|
* An authorization service manages user access by providing login, logout,
|
|
@@ -665,7 +665,7 @@ declare module "../../sdk-web-core/src/auth/bypass/index" {
|
|
|
665
665
|
}
|
|
666
666
|
}
|
|
667
667
|
declare module "../../sdk-web-core/src/auth/index" {
|
|
668
|
-
import { StreamLayerContext } from '../../sdk-web/src/index.ts
|
|
668
|
+
import { StreamLayerContext } from '../../sdk-web-interfaces/src/index.ts';
|
|
669
669
|
import { CoreStores, StoreObj } from "../../sdk-web-core/src/store/store";
|
|
670
670
|
import { UserStorage } from "../../sdk-web-core/src/storage";
|
|
671
671
|
import { BypassAuth } from "../../sdk-web-core/src/auth/bypass/index";
|
|
@@ -689,7 +689,7 @@ declare module "../../sdk-web-core/src/auth/index" {
|
|
|
689
689
|
export const bypass: (instance: StreamLayerContext, opts: unknown, done: () => void) => void;
|
|
690
690
|
}
|
|
691
691
|
declare module "../../sdk-web-core/src/store/index" {
|
|
692
|
-
import { StreamLayerContext } from '../../sdk-web/src/index.ts
|
|
692
|
+
import { StreamLayerContext } from '../../sdk-web-interfaces/src/index.ts';
|
|
693
693
|
import { CoreStore, CoreStores, StoreObj } from "../../sdk-web-core/src/store/store";
|
|
694
694
|
module '@streamlayer/sdk-web-interfaces' {
|
|
695
695
|
interface StreamLayerSDK {
|
|
@@ -719,7 +719,7 @@ declare module "../../sdk-web-core/src/store/index" {
|
|
|
719
719
|
export const store: (instance: StreamLayerContext, opts: unknown, done: () => void) => void;
|
|
720
720
|
}
|
|
721
721
|
declare module "../../sdk-web-core/src/index" {
|
|
722
|
-
import { StreamLayerContext } from '../../sdk-web/src/index.ts
|
|
722
|
+
import { StreamLayerContext } from '../../sdk-web-interfaces/src/index.ts';
|
|
723
723
|
export { bypass, storage } from "../../sdk-web-core/src/auth/index";
|
|
724
724
|
export { store } from "../../sdk-web-core/src/store/index";
|
|
725
725
|
import "../../sdk-web-core/src/store/index";
|
|
@@ -758,7 +758,7 @@ declare module "../../sdk-web-logger/src/index" {
|
|
|
758
758
|
export type Logger = ReturnType<typeof createLogger>;
|
|
759
759
|
}
|
|
760
760
|
declare module "../../sdk-web-notifications/src/queue/index" {
|
|
761
|
-
import { SingleStore, createComputedStore } from '../../sdk-web/src/index.ts
|
|
761
|
+
import { SingleStore, createComputedStore } from '../../sdk-web-interfaces/src/index.ts';
|
|
762
762
|
import { Notification } from "../../sdk-web-notifications/src/index";
|
|
763
763
|
export type NotificationsQueueOptions = {
|
|
764
764
|
concurrency: number;
|
|
@@ -782,7 +782,7 @@ declare module "../../sdk-web-notifications/src/queue/index" {
|
|
|
782
782
|
}
|
|
783
783
|
}
|
|
784
784
|
declare module "../../sdk-web-notifications/src/storage" {
|
|
785
|
-
import { Storage } from '../../sdk-web/src/index.ts
|
|
785
|
+
import { Storage } from '../../sdk-web-storage/src/index.ts';
|
|
786
786
|
export class NotificationStorage extends Storage {
|
|
787
787
|
constructor();
|
|
788
788
|
setOpened: (notificationId: string) => void;
|
|
@@ -791,7 +791,7 @@ declare module "../../sdk-web-notifications/src/storage" {
|
|
|
791
791
|
}
|
|
792
792
|
}
|
|
793
793
|
declare module "../../sdk-web-notifications/src/notifications" {
|
|
794
|
-
import { InstantView, QuestionType, GameSettings } from '../../sdk-web/src/index.ts
|
|
794
|
+
import { InstantView, QuestionType, GameSettings } from '../../sdk-web-types/src/index.ts';
|
|
795
795
|
import { NotificationsQueue, NotificationsQueueOptions } from "../../sdk-web-notifications/src/queue/index";
|
|
796
796
|
export type NotificationData = {
|
|
797
797
|
questionType: QuestionType;
|
|
@@ -849,7 +849,7 @@ declare module "../../sdk-web-notifications/src/notifications" {
|
|
|
849
849
|
}
|
|
850
850
|
}
|
|
851
851
|
declare module "../../sdk-web-notifications/src/index" {
|
|
852
|
-
import { StreamLayerContext } from '../../sdk-web/src/index.ts
|
|
852
|
+
import { StreamLayerContext } from '../../sdk-web-interfaces/src/index.ts';
|
|
853
853
|
import { Notifications } from "../../sdk-web-notifications/src/notifications";
|
|
854
854
|
export { type Notification, type NotificationData, NotificationType, Notifications } from "../../sdk-web-notifications/src/notifications";
|
|
855
855
|
export { type NotificationsList } from "../../sdk-web-notifications/src/queue/index";
|
|
@@ -869,7 +869,7 @@ declare module "../../sdk-web-notifications/src/index" {
|
|
|
869
869
|
export const notifications: (instance: StreamLayerContext, opts: unknown, done: () => void) => void;
|
|
870
870
|
}
|
|
871
871
|
declare module "../../feature-gamification/src/queries/leaderboard" {
|
|
872
|
-
import type { Transport } from '../../sdk-web/src/index.ts
|
|
872
|
+
import type { Transport } from '../../sdk-web-api/src/index.ts';
|
|
873
873
|
import { ReadableAtom } from 'nanostores';
|
|
874
874
|
import { ListRequest } from '@streamlayer/sl-eslib/interactive/leaderboard/interactive.leaderboard_pb';
|
|
875
875
|
import { PartialMessage } from '@bufbuild/protobuf';
|
|
@@ -879,17 +879,17 @@ declare module "../../feature-gamification/src/queries/leaderboard" {
|
|
|
879
879
|
export const createLeaderboardListFetch: (transport: Transport) => (params: PartialMessage<ListRequest>) => Promise<import("@streamlayer/sl-eslib/interactive/leaderboard/interactive.leaderboard_pb").ListResponse>;
|
|
880
880
|
}
|
|
881
881
|
declare module "../../feature-gamification/src/queries/friends" {
|
|
882
|
-
import type { Transport } from '../../sdk-web/src/index.ts
|
|
882
|
+
import type { Transport } from '../../sdk-web-api/src/index.ts';
|
|
883
883
|
import { ReadableAtom } from 'nanostores';
|
|
884
884
|
export const $friends: ($userId: ReadableAtom<string | undefined>, transport: Transport) => import("@nanostores/query").FetcherStore<import("@streamlayer/sl-eslib/users/users_pb").GetFriendsResponse_FriendData[], any>;
|
|
885
885
|
}
|
|
886
886
|
declare module "../../feature-gamification/src/queries/moderation" {
|
|
887
|
-
import type { Transport } from '../../sdk-web/src/index.ts
|
|
887
|
+
import type { Transport } from '../../sdk-web-api/src/index.ts';
|
|
888
888
|
import { ReadableAtom } from 'nanostores';
|
|
889
889
|
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
890
|
}
|
|
891
891
|
declare module "../../feature-gamification/src/queries/index" {
|
|
892
|
-
import type { Transport } from '../../sdk-web/src/index.ts
|
|
892
|
+
import type { Transport } from '../../sdk-web-api/src/index.ts';
|
|
893
893
|
import { ReadableAtom } from 'nanostores';
|
|
894
894
|
import type { SubscriptionRequest, SubscriptionResponse, VotingSubscriptionRequest, VotingSubscriptionResponse, QuestionSubscriptionRequest, QuestionSubscriptionResponse } from '@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb';
|
|
895
895
|
import { InteractiveAllowed } from "../../feature-gamification/src/background";
|
|
@@ -1218,9 +1218,9 @@ declare module "../../feature-gamification/src/queries/index" {
|
|
|
1218
1218
|
};
|
|
1219
1219
|
};
|
|
1220
1220
|
}, 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
|
|
1221
|
+
export const getQuestionByUser: (questionId: string, transport: Transport) => Promise<import('../../sdk-web-types/src/index.ts').ExtendedQuestion | undefined>;
|
|
1222
1222
|
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
|
|
1223
|
+
export const $questionByUser: ($questionId: ReadableAtom<string | undefined>, transport: Transport) => import("@nanostores/query").FetcherStore<import('../../sdk-web-types/src/index.ts').ExtendedQuestion | undefined, any>;
|
|
1224
1224
|
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
1225
|
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
1226
|
export { $userSummary, $leaderboardList } from "../../feature-gamification/src/queries/leaderboard";
|
|
@@ -1228,7 +1228,7 @@ declare module "../../feature-gamification/src/queries/index" {
|
|
|
1228
1228
|
export { $moderation } from "../../feature-gamification/src/queries/moderation";
|
|
1229
1229
|
}
|
|
1230
1230
|
declare module "../../feature-gamification/src/detail" {
|
|
1231
|
-
import type { Transport } from '../../sdk-web/src/index.ts
|
|
1231
|
+
import type { Transport } from '../../sdk-web-api/src/index.ts';
|
|
1232
1232
|
import { ReadableAtom } from 'nanostores';
|
|
1233
1233
|
import { getQuestionByUser } from "../../feature-gamification/src/queries/index";
|
|
1234
1234
|
import { type GamificationBackground } from "../../feature-gamification/src/background";
|
|
@@ -1245,8 +1245,8 @@ declare module "../../feature-gamification/src/detail" {
|
|
|
1245
1245
|
};
|
|
1246
1246
|
}
|
|
1247
1247
|
declare module "../../feature-gamification/src/background" {
|
|
1248
|
-
import { ApiStore, type StreamLayerContext } from '../../sdk-web/src/index.ts
|
|
1249
|
-
import type { GetApiResponseType } from '../../sdk-web/src/index.ts
|
|
1248
|
+
import { ApiStore, type StreamLayerContext } from '../../sdk-web-interfaces/src/index.ts';
|
|
1249
|
+
import type { GetApiResponseType } from '../../sdk-web-api/src/index.ts';
|
|
1250
1250
|
import '@streamlayer/sdk-web-core/store';
|
|
1251
1251
|
import { ReadableAtom, WritableAtom } from 'nanostores';
|
|
1252
1252
|
import * as queries from "../../feature-gamification/src/queries/index";
|
|
@@ -1315,7 +1315,7 @@ declare module "../../feature-gamification/src/background" {
|
|
|
1315
1315
|
}
|
|
1316
1316
|
}
|
|
1317
1317
|
declare module "../../feature-gamification/src/queries/actions" {
|
|
1318
|
-
import type { Transport } from '../../sdk-web/src/index.ts
|
|
1318
|
+
import type { Transport } from '../../sdk-web-api/src/index.ts';
|
|
1319
1319
|
export const submitAnswer: (transport: Transport, data: {
|
|
1320
1320
|
questionId: string;
|
|
1321
1321
|
answerId: string;
|
|
@@ -1324,8 +1324,8 @@ declare module "../../feature-gamification/src/queries/actions" {
|
|
|
1324
1324
|
export const skipQuestion: (transport: Transport, questionId: string) => Promise<import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").SkipQuestionResponse>;
|
|
1325
1325
|
}
|
|
1326
1326
|
declare module "../../feature-gamification/src/onboarding" {
|
|
1327
|
-
import { Transport } from '../../sdk-web/src/index.ts
|
|
1328
|
-
import { type Notifications } from '../../sdk-web/src/index.ts
|
|
1327
|
+
import { Transport } from '../../sdk-web-api/src/index.ts';
|
|
1328
|
+
import { type Notifications } from '../../sdk-web-notifications/src/index.ts';
|
|
1329
1329
|
import { GamificationBackground } from "../../feature-gamification/src/background";
|
|
1330
1330
|
import { Gamification } from "../../feature-gamification/src/index";
|
|
1331
1331
|
/**
|
|
@@ -1349,7 +1349,7 @@ declare module "../../feature-gamification/src/onboarding" {
|
|
|
1349
1349
|
};
|
|
1350
1350
|
}
|
|
1351
1351
|
declare module "../../feature-gamification/src/storage" {
|
|
1352
|
-
import { Storage } from '../../sdk-web/src/index.ts
|
|
1352
|
+
import { Storage } from '../../sdk-web-storage/src/index.ts';
|
|
1353
1353
|
import { OnboardingStatus } from "../../feature-gamification/src/onboarding";
|
|
1354
1354
|
type UserProps = {
|
|
1355
1355
|
userId: string;
|
|
@@ -1365,7 +1365,7 @@ declare module "../../feature-gamification/src/storage" {
|
|
|
1365
1365
|
}
|
|
1366
1366
|
}
|
|
1367
1367
|
declare module "../../feature-gamification/src/leaderboard" {
|
|
1368
|
-
import type { Transport } from '../../sdk-web/src/index.ts
|
|
1368
|
+
import type { Transport } from '../../sdk-web-api/src/index.ts';
|
|
1369
1369
|
import { ReadableAtom } from 'nanostores';
|
|
1370
1370
|
import { type LeaderboardItem } from "../../feature-gamification/src/queries/leaderboard";
|
|
1371
1371
|
import { Gamification } from "../../feature-gamification/src/index";
|
|
@@ -1386,7 +1386,7 @@ declare module "../../feature-gamification/src/leaderboard" {
|
|
|
1386
1386
|
};
|
|
1387
1387
|
}
|
|
1388
1388
|
declare module "../../feature-gamification/src/queries/deepLink" {
|
|
1389
|
-
import type { Transport } from '../../sdk-web/src/index.ts
|
|
1389
|
+
import type { Transport } from '../../sdk-web-api/src/index.ts';
|
|
1390
1390
|
import { ReadableAtom } from 'nanostores';
|
|
1391
1391
|
import { DeepLink } from '@streamlayer/sl-eslib/sdkSettings/client/client_pb';
|
|
1392
1392
|
type EventId = ReadableAtom<string | undefined>;
|
|
@@ -1397,7 +1397,7 @@ declare module "../../feature-gamification/src/queries/deepLink" {
|
|
|
1397
1397
|
}) => Promise<import("@streamlayer/sl-eslib/shortLinks/linksClient_pb").GenerateResponse>;
|
|
1398
1398
|
}
|
|
1399
1399
|
declare module "../../feature-gamification/src/deepLink" {
|
|
1400
|
-
import type { Transport } from '../../sdk-web/src/index.ts
|
|
1400
|
+
import type { Transport } from '../../sdk-web-api/src/index.ts';
|
|
1401
1401
|
import { ReadableAtom } from 'nanostores';
|
|
1402
1402
|
type DeepLinkData = {
|
|
1403
1403
|
data?: string;
|
|
@@ -1410,9 +1410,9 @@ declare module "../../feature-gamification/src/deepLink" {
|
|
|
1410
1410
|
};
|
|
1411
1411
|
}
|
|
1412
1412
|
declare module "../../feature-gamification/src/gamification" {
|
|
1413
|
-
import { AbstractFeature, ApiStore, FeatureSource, type FeatureProps, type StreamLayerContext } from '../../sdk-web/src/index.ts
|
|
1414
|
-
import { type GamesOverlaySettings } from '../../sdk-web/src/index.ts
|
|
1415
|
-
import type { GetApiResponseType } from '../../sdk-web/src/index.ts
|
|
1413
|
+
import { AbstractFeature, ApiStore, FeatureSource, type FeatureProps, type StreamLayerContext } from '../../sdk-web-interfaces/src/index.ts';
|
|
1414
|
+
import { type GamesOverlaySettings } from '../../sdk-web-types/src/index.ts';
|
|
1415
|
+
import type { GetApiResponseType } from '../../sdk-web-api/src/index.ts';
|
|
1416
1416
|
import '@streamlayer/sdk-web-core/store';
|
|
1417
1417
|
import type { PlainMessage } from '@bufbuild/protobuf';
|
|
1418
1418
|
import { WritableAtom } from 'nanostores';
|
|
@@ -1492,8 +1492,8 @@ declare module "../../feature-gamification/src/index" {
|
|
|
1492
1492
|
}
|
|
1493
1493
|
}
|
|
1494
1494
|
declare module "../../sdk-web-features/src/index" {
|
|
1495
|
-
import { FeatureType } from '../../sdk-web/src/index.ts
|
|
1496
|
-
import { AbstractFeature, FeatureSource, FeatureProps, StreamLayerContext, SingleStore } from '../../sdk-web/src/index.ts
|
|
1495
|
+
import { FeatureType } from '../../sdk-web-types/src/index.ts';
|
|
1496
|
+
import { AbstractFeature, FeatureSource, FeatureProps, StreamLayerContext, SingleStore } from '../../sdk-web-interfaces/src/index.ts';
|
|
1497
1497
|
import { Gamification } from '../../feature-gamification/src/index.ts';
|
|
1498
1498
|
export type Features = Feature | Gamification;
|
|
1499
1499
|
export const AvailableFeatures: {
|
|
@@ -1503,7 +1503,7 @@ declare module "../../sdk-web-features/src/index" {
|
|
|
1503
1503
|
constructor(overlay: FeatureProps, source: FeatureSource);
|
|
1504
1504
|
}
|
|
1505
1505
|
export const initFeature: (overlay: FeatureProps, source: FeatureSource, instance: StreamLayerContext) => Gamification | Feature;
|
|
1506
|
-
export { FeatureSource } from '../../sdk-web/src/index.ts
|
|
1506
|
+
export { FeatureSource } from '../../sdk-web-interfaces/src/index.ts';
|
|
1507
1507
|
module '@streamlayer/sdk-web-interfaces' {
|
|
1508
1508
|
interface StreamLayerContext {
|
|
1509
1509
|
features: Map<FeatureType, Features>;
|
|
@@ -1523,7 +1523,7 @@ declare module "../../sdk-web-features/src/index" {
|
|
|
1523
1523
|
export const features: (instance: StreamLayerContext, opts: unknown, done: () => void) => void;
|
|
1524
1524
|
}
|
|
1525
1525
|
declare module "../../sdk-web/src/index" {
|
|
1526
|
-
import { StreamLayerContext } from '../../sdk-web/src/index.ts
|
|
1526
|
+
import { StreamLayerContext } from '../../sdk-web-interfaces/src/index.ts';
|
|
1527
1527
|
import avvio from 'avvio';
|
|
1528
1528
|
export type StreamLayerInstance = avvio.mixedInstance<StreamLayerContext>;
|
|
1529
1529
|
export type StreamLayerPlugin = (instance: StreamLayerContext, opts: unknown, done: DoneFn) => void;
|
|
@@ -1533,7 +1533,7 @@ declare module "../../sdk-web/src/index" {
|
|
|
1533
1533
|
}): avvio.Avvio<StreamLayerContext>;
|
|
1534
1534
|
}
|
|
1535
1535
|
declare module "app/useStreamLayerApp" {
|
|
1536
|
-
import type { StreamLayerSDK, StreamLayerPlugin } from '../../sdk-web/src/index.ts
|
|
1536
|
+
import type { StreamLayerSDK, StreamLayerPlugin } from '../../sdk-web-interfaces/src/index.ts';
|
|
1537
1537
|
global {
|
|
1538
1538
|
interface Window {
|
|
1539
1539
|
sl: unknown;
|
|
@@ -1542,7 +1542,7 @@ declare module "app/useStreamLayerApp" {
|
|
|
1542
1542
|
export const useStreamLayerApp: (sdkKey: string, plugins?: Set<StreamLayerPlugin>, production?: boolean, autoEnable?: boolean) => StreamLayerSDK | null;
|
|
1543
1543
|
}
|
|
1544
1544
|
declare module "app/provider" {
|
|
1545
|
-
import type { StreamLayerSDK, StreamLayerPlugin } from '../../sdk-web/src/index.ts
|
|
1545
|
+
import type { StreamLayerSDK, StreamLayerPlugin } from '../../sdk-web-interfaces/src/index.ts';
|
|
1546
1546
|
export enum StreamLayerStatus {
|
|
1547
1547
|
UNSET = 0,
|
|
1548
1548
|
CONNECTED = 1,
|
|
@@ -1582,7 +1582,7 @@ declare module "app/masters" {
|
|
|
1582
1582
|
export const MastersStreamLayerSDKReact: React.FC<MastersAppProps>;
|
|
1583
1583
|
}
|
|
1584
1584
|
declare module "app/app" {
|
|
1585
|
-
import type { StreamLayerSDK } from '../../sdk-web/src/index.ts
|
|
1585
|
+
import type { StreamLayerSDK } from '../../sdk-web-interfaces/src/index.ts';
|
|
1586
1586
|
export const useStreamLayer: () => StreamLayerSDK | null;
|
|
1587
1587
|
export const StreamLayerSDKReact: React.FC;
|
|
1588
1588
|
}
|