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