@streamlayer/react 0.35.0 → 0.36.2
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/gamification-feature.js +1 -1
- package/lib/cjs/masters.js +1 -1
- package/lib/cjs/masters2.js +50 -60
- package/lib/cjs/points.js +1 -1
- package/lib/cjs/useSdkFeature.js +1 -0
- package/lib/cjs/useStreamLayerApp.js +1 -1
- package/lib/dist/cjs/gamification-feature.js +1 -1
- package/lib/dist/cjs/masters.js +70 -81
- package/lib/dist/es/gamification-feature.js +663 -661
- package/lib/dist/es/index.js +1 -1
- package/lib/dist/es/masters.js +20316 -24199
- package/lib/dist/index.d.ts +61 -65
- package/lib/dist/style.css +1 -1
- package/lib/es/gamification-feature.js +537 -535
- package/lib/es/masters.js +2 -2
- package/lib/es/masters2.js +11092 -13288
- package/lib/es/points.js +28 -29
- package/lib/es/useSdkFeature.js +178 -0
- package/lib/es/useStreamLayerApp.js +1 -1
- package/lib/style.css +1 -1
- package/package.json +58 -39
- package/lib/cjs/index4.js +0 -1
- package/lib/es/index4.js +0 -158
package/lib/dist/index.d.ts
CHANGED
|
@@ -10,8 +10,8 @@ declare module "../../sdk-web-types/src/sl-types" {
|
|
|
10
10
|
export { PickHistoryStatus } from '@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb';
|
|
11
11
|
import type { LeaderboardItem as ILeaderboardItem } from '@streamlayer/sl-eslib/interactive/leaderboard/interactive.leaderboard_pb';
|
|
12
12
|
import type { ExtendedQuestionAnswer as IExtendedQuestionAnswer } from '@streamlayer/sl-eslib/interactive/interactive.common_pb';
|
|
13
|
-
export type ExtendedQuestionAnswer = PlainMessage<IExtendedQuestionAnswer>;
|
|
14
13
|
export type PickHistory = PlainMessage<IPickHistory>;
|
|
14
|
+
export type ExtendedQuestionAnswer = PlainMessage<IExtendedQuestionAnswer>;
|
|
15
15
|
export type InsightHistory = PlainMessage<IInsightHistory>;
|
|
16
16
|
export type TweetHistory = PlainMessage<ITweetHistory>;
|
|
17
17
|
export type OrganizationSettings = SLOrganizationSettings;
|
|
@@ -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
|
|
109
|
+
import { FeatureConfig as SdkOverlay, SdkOverlaySettings } from '../../sdk-web/src/index.ts-types';
|
|
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
|
|
198
|
+
import { FeatureType } from '../../sdk-web/src/index.ts-types';
|
|
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";
|
|
@@ -204,8 +204,8 @@ declare module "../../sdk-web-interfaces/src/index" {
|
|
|
204
204
|
export { AbstractStore, mergeStores } from "../../sdk-web-interfaces/src/store/abstract";
|
|
205
205
|
export { ApiStore } from "../../sdk-web-interfaces/src/store/api";
|
|
206
206
|
export interface StreamLayerSDK {
|
|
207
|
-
openFeature: (featureType: FeatureType) => void;
|
|
208
207
|
closeFeature: (destroy?: boolean) => void;
|
|
208
|
+
openFeature: (featureType: FeatureType) => void;
|
|
209
209
|
}
|
|
210
210
|
export interface StreamLayerContext {
|
|
211
211
|
sdk: StreamLayerSDK;
|
|
@@ -405,7 +405,7 @@ declare module "../../sdk-web-api/src/grpc/queries/index" {
|
|
|
405
405
|
export * from "../../sdk-web-api/src/grpc/queries/user";
|
|
406
406
|
}
|
|
407
407
|
declare module "../../sdk-web-api/src/index" {
|
|
408
|
-
import { StreamLayerContext } from '../../sdk-web
|
|
408
|
+
import { StreamLayerContext } from '../../sdk-web/src/index.ts-interfaces';
|
|
409
409
|
import { FetcherStore } from '@nanostores/query';
|
|
410
410
|
export type { ServerStreamSubscriptionOptions } from "../../sdk-web-api/src/grpc/subscription";
|
|
411
411
|
export { Transport } from "../../sdk-web-api/src/grpc/transport";
|
|
@@ -440,7 +440,7 @@ declare module "../../sdk-web-storage/src/index" {
|
|
|
440
440
|
}
|
|
441
441
|
}
|
|
442
442
|
declare module "../../sdk-web-core/src/storage" {
|
|
443
|
-
import { Storage } from '../../sdk-web
|
|
443
|
+
import { Storage } from '../../sdk-web/src/index.ts-storage';
|
|
444
444
|
export class UserStorage extends Storage {
|
|
445
445
|
constructor();
|
|
446
446
|
setSchema: (value: string) => void;
|
|
@@ -453,8 +453,8 @@ declare module "../../sdk-web-core/src/storage" {
|
|
|
453
453
|
}
|
|
454
454
|
}
|
|
455
455
|
declare module "../../sdk-web-core/src/store/init" {
|
|
456
|
-
import { SingleStore, ApiStore } from '../../sdk-web
|
|
457
|
-
import { Transport } from '../../sdk-web
|
|
456
|
+
import { SingleStore, ApiStore } from '../../sdk-web/src/index.ts-interfaces';
|
|
457
|
+
import { Transport } from '../../sdk-web/src/index.ts-api';
|
|
458
458
|
export enum CoreStatus {
|
|
459
459
|
DISABLED = "disabled",
|
|
460
460
|
INITIALIZATION = "initialization",
|
|
@@ -509,9 +509,9 @@ declare module "../../sdk-web-core/src/store/init" {
|
|
|
509
509
|
};
|
|
510
510
|
}
|
|
511
511
|
declare module "../../sdk-web-core/src/store/store" {
|
|
512
|
-
import type { OrganizationAdvertising, StreamSettings, OrganizationSettings, User, UserSettings } from '../../sdk-web
|
|
513
|
-
import { AbstractStore } from '../../sdk-web
|
|
514
|
-
import { Transport } from '../../sdk-web
|
|
512
|
+
import type { OrganizationAdvertising, StreamSettings, OrganizationSettings, User, UserSettings } from '../../sdk-web/src/index.ts-types';
|
|
513
|
+
import { AbstractStore } from '../../sdk-web/src/index.ts-interfaces';
|
|
514
|
+
import { Transport } from '../../sdk-web/src/index.ts-api';
|
|
515
515
|
import { ReadableAtom } from 'nanostores';
|
|
516
516
|
import { FetcherValue } from '@nanostores/query';
|
|
517
517
|
import { initializeStore, CoreStatus } from "../../sdk-web-core/src/store/init";
|
|
@@ -559,16 +559,16 @@ declare module "../../sdk-web-core/src/store/store" {
|
|
|
559
559
|
constructor(transport: Transport);
|
|
560
560
|
getValue(): unknown;
|
|
561
561
|
getValues(): {
|
|
562
|
-
readonly enabled: import('../../sdk-web
|
|
563
|
-
readonly status: import('../../sdk-web
|
|
564
|
-
readonly providerStreamId: import('../../sdk-web
|
|
565
|
-
readonly slStreamId: import('../../sdk-web
|
|
566
|
-
readonly streamSettings: import('../../sdk-web
|
|
567
|
-
readonly user: import('../../sdk-web
|
|
568
|
-
readonly userKey: import('../../sdk-web
|
|
569
|
-
readonly userToken: import('../../sdk-web
|
|
570
|
-
readonly userSettings: import('../../sdk-web
|
|
571
|
-
readonly organizationSettings: import('../../sdk-web
|
|
562
|
+
readonly enabled: import('../../sdk-web/src/index.ts-interfaces').SingleStore<unknown, import("nanostores").WritableAtom<"on" | undefined>>;
|
|
563
|
+
readonly status: import('../../sdk-web/src/index.ts-interfaces').SingleStore<unknown, import("nanostores").WritableAtom<CoreStatus>>;
|
|
564
|
+
readonly providerStreamId: import('../../sdk-web/src/index.ts-interfaces').SingleStore<unknown, import("nanostores").WritableAtom<string | undefined>>;
|
|
565
|
+
readonly slStreamId: import('../../sdk-web/src/index.ts-interfaces').ApiStore<string | undefined, import("@nanostores/query").FetcherStore<string | undefined, any>>;
|
|
566
|
+
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>>;
|
|
567
|
+
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>>;
|
|
568
|
+
readonly userKey: import('../../sdk-web/src/index.ts-interfaces').SingleStore<unknown, import("nanostores").WritableAtom<string | undefined>>;
|
|
569
|
+
readonly userToken: import('../../sdk-web/src/index.ts-interfaces').SingleStore<unknown, import("nanostores").WritableAtom<string | undefined>>;
|
|
570
|
+
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>>;
|
|
571
|
+
readonly organizationSettings: import('../../sdk-web/src/index.ts-interfaces').ApiStore<{
|
|
572
572
|
id: string;
|
|
573
573
|
overlays?: import("@streamlayer/sl-eslib/sdkSettings/sdkSettings.common_pb").SdkOverlay[] | undefined;
|
|
574
574
|
buttonIcon?: string | undefined;
|
|
@@ -601,7 +601,7 @@ declare module "../../sdk-web-core/src/store/store" {
|
|
|
601
601
|
pub?: import("@streamlayer/sl-eslib/sdkSettings/sdkSettings.common_pb").JWK | undefined;
|
|
602
602
|
getstream?: import("@streamlayer/sl-eslib/sdkSettings/sdkSettings.common_pb").GetStreamSettingsClient | undefined;
|
|
603
603
|
} | undefined, any>>;
|
|
604
|
-
readonly organizationAdvertising: import('../../sdk-web
|
|
604
|
+
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>>;
|
|
605
605
|
};
|
|
606
606
|
setValue(): void;
|
|
607
607
|
subscribe: (subscribes: Partial<StoreListeners>) => void;
|
|
@@ -612,8 +612,8 @@ declare module "../../sdk-web-core/src/store/store" {
|
|
|
612
612
|
};
|
|
613
613
|
}
|
|
614
614
|
declare module "../../sdk-web-core/src/auth/bypass/index" {
|
|
615
|
-
import { AbstractAuthenticationProvider } from '../../sdk-web
|
|
616
|
-
import { Transport } from '../../sdk-web
|
|
615
|
+
import { AbstractAuthenticationProvider } from '../../sdk-web/src/index.ts-interfaces';
|
|
616
|
+
import { Transport } from '../../sdk-web/src/index.ts-api';
|
|
617
617
|
import { CoreStore } from "../../sdk-web-core/src/store/store";
|
|
618
618
|
/**
|
|
619
619
|
* An authorization service manages user access by providing login, logout,
|
|
@@ -663,7 +663,7 @@ declare module "../../sdk-web-core/src/auth/bypass/index" {
|
|
|
663
663
|
}
|
|
664
664
|
}
|
|
665
665
|
declare module "../../sdk-web-core/src/auth/index" {
|
|
666
|
-
import { StreamLayerContext } from '../../sdk-web
|
|
666
|
+
import { StreamLayerContext } from '../../sdk-web/src/index.ts-interfaces';
|
|
667
667
|
import { CoreStores, StoreObj } from "../../sdk-web-core/src/store/store";
|
|
668
668
|
import { UserStorage } from "../../sdk-web-core/src/storage";
|
|
669
669
|
import { BypassAuth } from "../../sdk-web-core/src/auth/bypass/index";
|
|
@@ -687,7 +687,7 @@ declare module "../../sdk-web-core/src/auth/index" {
|
|
|
687
687
|
export const bypass: (instance: StreamLayerContext, opts: unknown, done: () => void) => void;
|
|
688
688
|
}
|
|
689
689
|
declare module "../../sdk-web-core/src/store/index" {
|
|
690
|
-
import { StreamLayerContext } from '../../sdk-web
|
|
690
|
+
import { StreamLayerContext } from '../../sdk-web/src/index.ts-interfaces';
|
|
691
691
|
import { CoreStore, CoreStores, StoreObj } from "../../sdk-web-core/src/store/store";
|
|
692
692
|
module '@streamlayer/sdk-web-interfaces' {
|
|
693
693
|
interface StreamLayerSDK {
|
|
@@ -717,7 +717,7 @@ declare module "../../sdk-web-core/src/store/index" {
|
|
|
717
717
|
export const store: (instance: StreamLayerContext, opts: unknown, done: () => void) => void;
|
|
718
718
|
}
|
|
719
719
|
declare module "../../sdk-web-core/src/index" {
|
|
720
|
-
import { StreamLayerContext } from '../../sdk-web
|
|
720
|
+
import { StreamLayerContext } from '../../sdk-web/src/index.ts-interfaces';
|
|
721
721
|
export { bypass, storage } from "../../sdk-web-core/src/auth/index";
|
|
722
722
|
export { store } from "../../sdk-web-core/src/store/index";
|
|
723
723
|
import "../../sdk-web-core/src/store/index";
|
|
@@ -752,17 +752,11 @@ declare module "../../react-ui/src/index" {
|
|
|
752
752
|
}
|
|
753
753
|
declare module "../../sdk-web-logger/src/index" {
|
|
754
754
|
import { pino, ChildLoggerOptions } from 'pino';
|
|
755
|
-
export const createLogger: (name: string, options?: ChildLoggerOptions) => pino.Logger<
|
|
756
|
-
level: "trace";
|
|
757
|
-
enabled: false;
|
|
758
|
-
browser: {
|
|
759
|
-
write: (o: object) => void;
|
|
760
|
-
};
|
|
761
|
-
} & ChildLoggerOptions>;
|
|
755
|
+
export const createLogger: (name: string, options?: ChildLoggerOptions) => pino.Logger<never>;
|
|
762
756
|
export type Logger = ReturnType<typeof createLogger>;
|
|
763
757
|
}
|
|
764
758
|
declare module "../../sdk-web-notifications/src/queue/index" {
|
|
765
|
-
import { SingleStore, createComputedStore } from '../../sdk-web
|
|
759
|
+
import { SingleStore, createComputedStore } from '../../sdk-web/src/index.ts-interfaces';
|
|
766
760
|
import { Notification } from "../../sdk-web-notifications/src/index";
|
|
767
761
|
export type NotificationsQueueOptions = {
|
|
768
762
|
concurrency: number;
|
|
@@ -786,7 +780,7 @@ declare module "../../sdk-web-notifications/src/queue/index" {
|
|
|
786
780
|
}
|
|
787
781
|
}
|
|
788
782
|
declare module "../../sdk-web-notifications/src/storage" {
|
|
789
|
-
import { Storage } from '../../sdk-web
|
|
783
|
+
import { Storage } from '../../sdk-web/src/index.ts-storage';
|
|
790
784
|
export class NotificationStorage extends Storage {
|
|
791
785
|
constructor();
|
|
792
786
|
setOpened: (notificationId: string) => void;
|
|
@@ -795,7 +789,7 @@ declare module "../../sdk-web-notifications/src/storage" {
|
|
|
795
789
|
}
|
|
796
790
|
}
|
|
797
791
|
declare module "../../sdk-web-notifications/src/notifications" {
|
|
798
|
-
import { InstantView, QuestionType, GameSettings } from '../../sdk-web
|
|
792
|
+
import { InstantView, QuestionType, GameSettings } from '../../sdk-web/src/index.ts-types';
|
|
799
793
|
import { NotificationsQueue, NotificationsQueueOptions } from "../../sdk-web-notifications/src/queue/index";
|
|
800
794
|
export type NotificationData = {
|
|
801
795
|
questionType: QuestionType;
|
|
@@ -837,6 +831,7 @@ declare module "../../sdk-web-notifications/src/notifications" {
|
|
|
837
831
|
methods?: M;
|
|
838
832
|
data: NotificationData;
|
|
839
833
|
id: string;
|
|
834
|
+
persistent?: boolean;
|
|
840
835
|
};
|
|
841
836
|
/**
|
|
842
837
|
* @description app notifications (inapp)
|
|
@@ -846,13 +841,13 @@ declare module "../../sdk-web-notifications/src/notifications" {
|
|
|
846
841
|
private storage;
|
|
847
842
|
constructor(options?: Partial<NotificationsQueueOptions>);
|
|
848
843
|
add: (notification: Notification) => void;
|
|
849
|
-
close: (notificationId: string) => void;
|
|
844
|
+
close: (notificationId: string, markAsViewed?: boolean) => void;
|
|
850
845
|
getQueueStore: () => import("nanostores").WritableAtom<Map<string, Notification> | undefined>;
|
|
851
846
|
markAsViewed: (notificationId: string) => void;
|
|
852
847
|
}
|
|
853
848
|
}
|
|
854
849
|
declare module "../../sdk-web-notifications/src/index" {
|
|
855
|
-
import { StreamLayerContext } from '../../sdk-web
|
|
850
|
+
import { StreamLayerContext } from '../../sdk-web/src/index.ts-interfaces';
|
|
856
851
|
import { Notifications } from "../../sdk-web-notifications/src/notifications";
|
|
857
852
|
export { type Notification, type NotificationData, NotificationType, Notifications } from "../../sdk-web-notifications/src/notifications";
|
|
858
853
|
export { type NotificationsList } from "../../sdk-web-notifications/src/queue/index";
|
|
@@ -872,7 +867,7 @@ declare module "../../sdk-web-notifications/src/index" {
|
|
|
872
867
|
export const notifications: (instance: StreamLayerContext, opts: unknown, done: () => void) => void;
|
|
873
868
|
}
|
|
874
869
|
declare module "../../feature-gamification/src/queries/leaderboard" {
|
|
875
|
-
import type { Transport } from '../../sdk-web
|
|
870
|
+
import type { Transport } from '../../sdk-web/src/index.ts-api';
|
|
876
871
|
import { ReadableAtom } from 'nanostores';
|
|
877
872
|
import { ListRequest } from '@streamlayer/sl-eslib/interactive/leaderboard/interactive.leaderboard_pb';
|
|
878
873
|
import { PartialMessage } from '@bufbuild/protobuf';
|
|
@@ -882,12 +877,12 @@ declare module "../../feature-gamification/src/queries/leaderboard" {
|
|
|
882
877
|
export const createLeaderboardListFetch: (transport: Transport) => (params: PartialMessage<ListRequest>) => Promise<import("@streamlayer/sl-eslib/interactive/leaderboard/interactive.leaderboard_pb").ListResponse>;
|
|
883
878
|
}
|
|
884
879
|
declare module "../../feature-gamification/src/queries/moderation" {
|
|
885
|
-
import type { Transport } from '../../sdk-web
|
|
880
|
+
import type { Transport } from '../../sdk-web/src/index.ts-api';
|
|
886
881
|
import { ReadableAtom } from 'nanostores';
|
|
887
882
|
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>;
|
|
888
883
|
}
|
|
889
884
|
declare module "../../feature-gamification/src/queries/index" {
|
|
890
|
-
import type { Transport } from '../../sdk-web
|
|
885
|
+
import type { Transport } from '../../sdk-web/src/index.ts-api';
|
|
891
886
|
import { ReadableAtom } from 'nanostores';
|
|
892
887
|
import type { SubscriptionRequest, SubscriptionResponse, VotingSubscriptionRequest, VotingSubscriptionResponse, QuestionSubscriptionRequest, QuestionSubscriptionResponse } from '@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb';
|
|
893
888
|
export const $activeQuestion: (slStreamId: ReadableAtom<string | undefined>, transport: Transport) => import("@nanostores/query").FetcherStore<import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").FeedQuestion | undefined, any>;
|
|
@@ -1215,8 +1210,9 @@ declare module "../../feature-gamification/src/queries/index" {
|
|
|
1215
1210
|
};
|
|
1216
1211
|
};
|
|
1217
1212
|
}, 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>)>;
|
|
1218
|
-
export const getQuestionByUser: (questionId: string, transport: Transport) => Promise<import('../../sdk-web
|
|
1219
|
-
export const
|
|
1213
|
+
export const getQuestionByUser: (questionId: string, transport: Transport) => Promise<import('../../sdk-web/src/index.ts-types').ExtendedQuestion | undefined>;
|
|
1214
|
+
export const getQuestionDetail: (questionId: string, transport: Transport) => Promise<import("@streamlayer/sl-eslib/interactive/interactive.common_pb").Question | undefined>;
|
|
1215
|
+
export const $questionByUser: ($questionId: ReadableAtom<string | undefined>, transport: Transport) => import("@nanostores/query").FetcherStore<import('../../sdk-web/src/index.ts-types').ExtendedQuestion | undefined, any>;
|
|
1220
1216
|
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>;
|
|
1221
1217
|
export const $feedList: (slStreamId: ReadableAtom<string | undefined>, transport: Transport) => import("@nanostores/query").FetcherStore<import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").FeedItem[], any>;
|
|
1222
1218
|
export const $insightHistory: (slStreamId: ReadableAtom<string | undefined>, transport: Transport) => import("@nanostores/query").FetcherStore<(import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").InsightHistory | undefined)[] | undefined, any>;
|
|
@@ -1224,7 +1220,7 @@ declare module "../../feature-gamification/src/queries/index" {
|
|
|
1224
1220
|
export { $moderation } from "../../feature-gamification/src/queries/moderation";
|
|
1225
1221
|
}
|
|
1226
1222
|
declare module "../../feature-gamification/src/detail" {
|
|
1227
|
-
import type { Transport } from '../../sdk-web
|
|
1223
|
+
import type { Transport } from '../../sdk-web/src/index.ts-api';
|
|
1228
1224
|
import { ReadableAtom } from 'nanostores';
|
|
1229
1225
|
import { getQuestionByUser } from "../../feature-gamification/src/queries/index";
|
|
1230
1226
|
import { type GamificationBackground } from "../../feature-gamification/src/background";
|
|
@@ -1241,8 +1237,8 @@ declare module "../../feature-gamification/src/detail" {
|
|
|
1241
1237
|
};
|
|
1242
1238
|
}
|
|
1243
1239
|
declare module "../../feature-gamification/src/background" {
|
|
1244
|
-
import { ApiStore, type StreamLayerContext } from '../../sdk-web
|
|
1245
|
-
import type { GetApiResponseType } from '../../sdk-web
|
|
1240
|
+
import { ApiStore, type StreamLayerContext } from '../../sdk-web/src/index.ts-interfaces';
|
|
1241
|
+
import type { GetApiResponseType } from '../../sdk-web/src/index.ts-api';
|
|
1246
1242
|
import '@streamlayer/sdk-web-core/store';
|
|
1247
1243
|
import { ReadableAtom, WritableAtom } from 'nanostores';
|
|
1248
1244
|
import * as queries from "../../feature-gamification/src/queries/index";
|
|
@@ -1302,7 +1298,7 @@ declare module "../../feature-gamification/src/background" {
|
|
|
1302
1298
|
}
|
|
1303
1299
|
}
|
|
1304
1300
|
declare module "../../feature-gamification/src/queries/actions" {
|
|
1305
|
-
import type { Transport } from '../../sdk-web
|
|
1301
|
+
import type { Transport } from '../../sdk-web/src/index.ts-api';
|
|
1306
1302
|
export const submitAnswer: (transport: Transport, data: {
|
|
1307
1303
|
questionId: string;
|
|
1308
1304
|
answerId: string;
|
|
@@ -1311,8 +1307,8 @@ declare module "../../feature-gamification/src/queries/actions" {
|
|
|
1311
1307
|
export const skipQuestion: (transport: Transport, questionId: string) => Promise<import("@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb").SkipQuestionResponse>;
|
|
1312
1308
|
}
|
|
1313
1309
|
declare module "../../feature-gamification/src/onboarding" {
|
|
1314
|
-
import { Transport } from '../../sdk-web
|
|
1315
|
-
import { type Notifications } from '../../sdk-web
|
|
1310
|
+
import { Transport } from '../../sdk-web/src/index.ts-api';
|
|
1311
|
+
import { type Notifications } from '../../sdk-web/src/index.ts-notifications';
|
|
1316
1312
|
import { GamificationBackground } from "../../feature-gamification/src/background";
|
|
1317
1313
|
import { Gamification } from "../../feature-gamification/src/index";
|
|
1318
1314
|
/**
|
|
@@ -1336,7 +1332,7 @@ declare module "../../feature-gamification/src/onboarding" {
|
|
|
1336
1332
|
};
|
|
1337
1333
|
}
|
|
1338
1334
|
declare module "../../feature-gamification/src/storage" {
|
|
1339
|
-
import { Storage } from '../../sdk-web
|
|
1335
|
+
import { Storage } from '../../sdk-web/src/index.ts-storage';
|
|
1340
1336
|
import { OnboardingStatus } from "../../feature-gamification/src/onboarding";
|
|
1341
1337
|
type UserProps = {
|
|
1342
1338
|
userId: string;
|
|
@@ -1352,7 +1348,7 @@ declare module "../../feature-gamification/src/storage" {
|
|
|
1352
1348
|
}
|
|
1353
1349
|
}
|
|
1354
1350
|
declare module "../../feature-gamification/src/leaderboard" {
|
|
1355
|
-
import type { Transport } from '../../sdk-web
|
|
1351
|
+
import type { Transport } from '../../sdk-web/src/index.ts-api';
|
|
1356
1352
|
import { ReadableAtom } from 'nanostores';
|
|
1357
1353
|
import { type LeaderboardItem } from "../../feature-gamification/src/queries/leaderboard";
|
|
1358
1354
|
type LeaderboardOptions = {
|
|
@@ -1371,7 +1367,7 @@ declare module "../../feature-gamification/src/leaderboard" {
|
|
|
1371
1367
|
};
|
|
1372
1368
|
}
|
|
1373
1369
|
declare module "../../feature-gamification/src/queries/deepLink" {
|
|
1374
|
-
import type { Transport } from '../../sdk-web
|
|
1370
|
+
import type { Transport } from '../../sdk-web/src/index.ts-api';
|
|
1375
1371
|
import { ReadableAtom } from 'nanostores';
|
|
1376
1372
|
import { DeepLink } from '@streamlayer/sl-eslib/sdkSettings/client/client_pb';
|
|
1377
1373
|
type EventId = ReadableAtom<string | undefined>;
|
|
@@ -1379,10 +1375,10 @@ declare module "../../feature-gamification/src/queries/deepLink" {
|
|
|
1379
1375
|
export const generateShortLink: (transport: Transport, { web, mobile }: {
|
|
1380
1376
|
web: string;
|
|
1381
1377
|
mobile: string;
|
|
1382
|
-
}) => Promise<import("@streamlayer/sl-eslib/shortLinks/
|
|
1378
|
+
}) => Promise<import("@streamlayer/sl-eslib/shortLinks/linksClient_pb").GenerateResponse>;
|
|
1383
1379
|
}
|
|
1384
1380
|
declare module "../../feature-gamification/src/deepLink" {
|
|
1385
|
-
import type { Transport } from '../../sdk-web
|
|
1381
|
+
import type { Transport } from '../../sdk-web/src/index.ts-api';
|
|
1386
1382
|
import { ReadableAtom } from 'nanostores';
|
|
1387
1383
|
type DeepLinkData = {
|
|
1388
1384
|
data?: string;
|
|
@@ -1395,9 +1391,9 @@ declare module "../../feature-gamification/src/deepLink" {
|
|
|
1395
1391
|
};
|
|
1396
1392
|
}
|
|
1397
1393
|
declare module "../../feature-gamification/src/gamification" {
|
|
1398
|
-
import { AbstractFeature, ApiStore, FeatureSource, type FeatureProps, type StreamLayerContext } from '../../sdk-web
|
|
1399
|
-
import { type GamesOverlaySettings } from '../../sdk-web
|
|
1400
|
-
import type { GetApiResponseType } from '../../sdk-web
|
|
1394
|
+
import { AbstractFeature, ApiStore, FeatureSource, type FeatureProps, type StreamLayerContext } from '../../sdk-web/src/index.ts-interfaces';
|
|
1395
|
+
import { type GamesOverlaySettings } from '../../sdk-web/src/index.ts-types';
|
|
1396
|
+
import type { GetApiResponseType } from '../../sdk-web/src/index.ts-api';
|
|
1401
1397
|
import '@streamlayer/sdk-web-core/store';
|
|
1402
1398
|
import type { PlainMessage } from '@bufbuild/protobuf';
|
|
1403
1399
|
import { WritableAtom } from 'nanostores';
|
|
@@ -1466,8 +1462,8 @@ declare module "../../feature-gamification/src/index" {
|
|
|
1466
1462
|
}
|
|
1467
1463
|
}
|
|
1468
1464
|
declare module "../../sdk-web-features/src/index" {
|
|
1469
|
-
import { FeatureType } from '../../sdk-web
|
|
1470
|
-
import { AbstractFeature, FeatureSource, FeatureProps, StreamLayerContext, SingleStore } from '../../sdk-web
|
|
1465
|
+
import { FeatureType } from '../../sdk-web/src/index.ts-types';
|
|
1466
|
+
import { AbstractFeature, FeatureSource, FeatureProps, StreamLayerContext, SingleStore } from '../../sdk-web/src/index.ts-interfaces';
|
|
1471
1467
|
import { Gamification } from '../../feature-gamification/src/index.ts';
|
|
1472
1468
|
export type Features = Feature | Gamification;
|
|
1473
1469
|
export const AvailableFeatures: {
|
|
@@ -1477,7 +1473,7 @@ declare module "../../sdk-web-features/src/index" {
|
|
|
1477
1473
|
constructor(overlay: FeatureProps, source: FeatureSource);
|
|
1478
1474
|
}
|
|
1479
1475
|
export const initFeature: (overlay: FeatureProps, source: FeatureSource, instance: StreamLayerContext) => Gamification | Feature;
|
|
1480
|
-
export { FeatureSource } from '../../sdk-web
|
|
1476
|
+
export { FeatureSource } from '../../sdk-web/src/index.ts-interfaces';
|
|
1481
1477
|
module '@streamlayer/sdk-web-interfaces' {
|
|
1482
1478
|
interface StreamLayerContext {
|
|
1483
1479
|
features: Map<FeatureType, Features>;
|
|
@@ -1497,7 +1493,7 @@ declare module "../../sdk-web-features/src/index" {
|
|
|
1497
1493
|
export const features: (instance: StreamLayerContext, opts: unknown, done: () => void) => void;
|
|
1498
1494
|
}
|
|
1499
1495
|
declare module "../../sdk-web/src/index" {
|
|
1500
|
-
import { StreamLayerContext } from '../../sdk-web
|
|
1496
|
+
import { StreamLayerContext } from '../../sdk-web/src/index.ts-interfaces';
|
|
1501
1497
|
import avvio from 'avvio';
|
|
1502
1498
|
export type StreamLayerInstance = avvio.mixedInstance<StreamLayerContext>;
|
|
1503
1499
|
export type StreamLayerPlugin = (instance: StreamLayerContext, opts: unknown, done: DoneFn) => void;
|
|
@@ -1507,7 +1503,7 @@ declare module "../../sdk-web/src/index" {
|
|
|
1507
1503
|
}): avvio.Avvio<StreamLayerContext>;
|
|
1508
1504
|
}
|
|
1509
1505
|
declare module "app/useStreamLayerApp" {
|
|
1510
|
-
import type { StreamLayerSDK, StreamLayerPlugin } from '../../sdk-web
|
|
1506
|
+
import type { StreamLayerSDK, StreamLayerPlugin } from '../../sdk-web/src/index.ts-interfaces';
|
|
1511
1507
|
global {
|
|
1512
1508
|
interface Window {
|
|
1513
1509
|
sl: unknown;
|
|
@@ -1516,7 +1512,7 @@ declare module "app/useStreamLayerApp" {
|
|
|
1516
1512
|
export const useStreamLayerApp: (sdkKey: string, plugins?: Set<StreamLayerPlugin>, production?: boolean, autoEnable?: boolean) => StreamLayerSDK | null;
|
|
1517
1513
|
}
|
|
1518
1514
|
declare module "app/provider" {
|
|
1519
|
-
import type { StreamLayerSDK, StreamLayerPlugin } from '../../sdk-web
|
|
1515
|
+
import type { StreamLayerSDK, StreamLayerPlugin } from '../../sdk-web/src/index.ts-interfaces';
|
|
1520
1516
|
export enum StreamLayerStatus {
|
|
1521
1517
|
UNSET = 0,
|
|
1522
1518
|
CONNECTED = 1,
|
|
@@ -1556,7 +1552,7 @@ declare module "app/masters" {
|
|
|
1556
1552
|
export const MastersStreamLayerSDKReact: React.FC<MastersAppProps>;
|
|
1557
1553
|
}
|
|
1558
1554
|
declare module "app/app" {
|
|
1559
|
-
import type { StreamLayerSDK } from '../../sdk-web
|
|
1555
|
+
import type { StreamLayerSDK } from '../../sdk-web/src/index.ts-interfaces';
|
|
1560
1556
|
export const useStreamLayer: () => StreamLayerSDK | null;
|
|
1561
1557
|
export const StreamLayerSDKReact: React.FC;
|
|
1562
1558
|
}
|