@streamlayer/react 1.22.3 → 1.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/Question.js +1 -1
- package/lib/cjs/advertisement.js +44 -40
- package/lib/cjs/analytics.js +1 -1
- package/lib/cjs/index-eShKGO10.js +5 -0
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/index10.js +4 -1
- package/lib/cjs/index11.js +1 -4
- package/lib/cjs/index12.js +1 -1
- package/lib/cjs/index13.js +1 -1
- package/lib/cjs/index14.js +1 -1
- package/lib/cjs/index15.js +5 -1
- package/lib/cjs/index2.js +1 -1
- package/lib/cjs/index4.js +1 -1
- package/lib/cjs/index7.js +1 -5
- package/lib/cjs/index8.js +1 -1
- package/lib/cjs/index9.js +1 -1
- package/lib/cjs/insight.js +1 -1
- package/lib/cjs/masters2.js +5 -5
- package/lib/cjs/notification.js +1 -1
- package/lib/cjs/pause-ad.js +1 -1
- package/lib/cjs/points.js +1 -1
- package/lib/cjs/storage.js +1 -1
- package/lib/cjs/useStreamLayerApp2.js +17 -17
- package/lib/classic/cjs/Question.js +1 -1
- package/lib/classic/cjs/advertisement.js +44 -40
- package/lib/classic/cjs/analytics.js +1 -1
- package/lib/classic/cjs/bet-pack.js +1 -1
- package/lib/classic/cjs/index-eShKGO10.js +5 -0
- package/lib/classic/cjs/index.js +1 -1
- package/lib/classic/cjs/index10.js +1 -1
- package/lib/classic/cjs/index11.js +1 -1
- package/lib/classic/cjs/index12.js +4 -1
- package/lib/classic/cjs/index2.js +2 -2
- package/lib/classic/cjs/index3.js +1 -1
- package/lib/classic/cjs/index4.js +1 -1
- package/lib/classic/cjs/index5.js +1 -1
- package/lib/classic/cjs/index6.js +1 -5
- package/lib/classic/cjs/index7.js +1 -1
- package/lib/classic/cjs/index8.js +1 -1
- package/lib/classic/cjs/index9.js +1 -1
- package/lib/classic/cjs/insight.js +1 -1
- package/lib/classic/cjs/notification.js +1 -1
- package/lib/classic/cjs/notification2.js +1 -1
- package/lib/classic/cjs/pause-ad.js +1 -1
- package/lib/classic/cjs/points.js +1 -1
- package/lib/classic/cjs/useStreamLayerApp2.js +17 -17
- package/lib/classic/es/Question.js +53 -53
- package/lib/classic/es/advertisement.js +15547 -10742
- package/lib/classic/es/analytics.js +74 -18
- package/lib/classic/es/bet-pack.js +4 -4
- package/lib/classic/es/index-eShKGO10.js +3757 -0
- package/lib/classic/es/index.js +1 -1
- package/lib/classic/es/index10.js +2295 -82
- package/lib/classic/es/index11.js +179 -2339
- package/lib/classic/es/index12.js +822 -170
- package/lib/classic/es/index2.js +13 -14
- package/lib/classic/es/index3.js +16 -61
- package/lib/classic/es/index4.js +282 -16
- package/lib/classic/es/index5.js +5 -283
- package/lib/classic/es/index6.js +9 -3756
- package/lib/classic/es/index7.js +62 -5
- package/lib/classic/es/index8.js +315 -7
- package/lib/classic/es/index9.js +81 -313
- package/lib/classic/es/insight.js +1 -1
- package/lib/classic/es/notification.js +1 -1
- package/lib/classic/es/notification2.js +476 -452
- package/lib/classic/es/pause-ad.js +174 -208
- package/lib/classic/es/points.js +4 -4
- package/lib/classic/es/useStreamLayerApp2.js +5062 -4028
- package/lib/dist/cjs/index-eShKGO10.js +5 -0
- package/lib/dist/cjs/masters.js +35 -35
- package/lib/dist/es/index-eShKGO10.js +3757 -0
- package/lib/dist/es/masters.js +9267 -8240
- package/lib/dist/index.d.ts +13 -1
- package/lib/dist/style.css +1 -1
- package/lib/es/Question.js +4 -4
- package/lib/es/advertisement.js +15547 -10742
- package/lib/es/analytics.js +74 -18
- package/lib/es/index-eShKGO10.js +3757 -0
- package/lib/es/index.js +1 -1
- package/lib/es/index10.js +804 -236
- package/lib/es/index11.js +170 -822
- package/lib/es/index12.js +302 -166
- package/lib/es/index13.js +81 -313
- package/lib/es/index14.js +2350 -82
- package/lib/es/index15.js +1229 -2330
- package/lib/es/index2.js +10 -11
- package/lib/es/index4.js +2 -2
- package/lib/es/index7.js +5 -3756
- package/lib/es/index8.js +9 -5
- package/lib/es/index9.js +263 -7
- package/lib/es/insight.js +1 -1
- package/lib/es/masters2.js +15 -16
- package/lib/es/notification.js +449 -425
- package/lib/es/pause-ad.js +174 -208
- package/lib/es/points.js +1 -1
- package/lib/es/storage.js +2 -2
- package/lib/es/useStreamLayerApp2.js +5062 -4028
- package/lib/style.css +1 -1
- package/package.json +17 -17
- package/lib/cjs/index-DSi8Qgfs.js +0 -1
- package/lib/cjs/index16.js +0 -5
- package/lib/cjs/vast-client.min.js +0 -1
- package/lib/classic/cjs/index-DSi8Qgfs.js +0 -1
- package/lib/classic/cjs/index13.js +0 -4
- package/lib/classic/cjs/vast-client.min.js +0 -1
- package/lib/classic/es/index-DSi8Qgfs.js +0 -65
- package/lib/classic/es/index13.js +0 -835
- package/lib/classic/es/vast-client.min.js +0 -1060
- package/lib/es/index-DSi8Qgfs.js +0 -65
- package/lib/es/index16.js +0 -1254
- package/lib/es/vast-client.min.js +0 -1060
package/lib/dist/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ declare module "../../sdk-web-types/src/sl-types" {
|
|
|
7
7
|
import type { PickHistory as IPickHistory, InsightHistory as IInsightHistory, TweetHistory as ITweetHistory, FeedItem as IFeedItem, FeedItemAttributes as IFeedItemAttributes, InstantView as IInstantView, PromotionHistory as IPromotionHistory } from '@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb';
|
|
8
8
|
import type { LeaderboardItem as ILeaderboardItem } from '@streamlayer/sl-eslib/interactive/leaderboard/interactive.leaderboard_pb';
|
|
9
9
|
import { type ExtendedQuestionAnswer as IExtendedQuestionAnswer, type Question as IQuestion, type ExtendedQuestion as IExtendedQuestion, type QuestionOptions_PromotionOptions, type QuestionOptions_AdCampaigns, type QuestionNotification as IQuestionNotification, type PromotionNotification as IPromotionNotification, type CloseTimer as ICloseTimer, type Promotion as IPromotion, QuestionOptions_GamOptions } from '@streamlayer/sl-eslib/interactive/interactive.common_pb';
|
|
10
|
+
import type { EventWithSeries as IEventWithSeries } from '@streamlayer/sl-eslib/polymarket/sportsClient_pb';
|
|
10
11
|
export type UnionOmit<T, K extends string | number | symbol> = T extends unknown ? Omit<T, K> : never;
|
|
11
12
|
export type NullUnionOmit<T, K extends string | number | symbol> = null extends T ? UnionOmit<NonNullable<T>, K> : UnionOmit<T, K>;
|
|
12
13
|
export type RecursiveOmitHelper<T, K extends string | number | symbol> = {
|
|
@@ -50,6 +51,7 @@ declare module "../../sdk-web-types/src/sl-types" {
|
|
|
50
51
|
export type EventSummary = PlainMessage<SummaryResponse_ResponseData_SummaryResponseAttributes>;
|
|
51
52
|
export type GamOptions = PlainMessage<QuestionOptions_GamOptions>;
|
|
52
53
|
export type AdCampaigns = PlainMessage<QuestionOptions_AdCampaigns>;
|
|
54
|
+
export type EventWithSeries = PlainMessage<IEventWithSeries>;
|
|
53
55
|
export { SdkOverlayType as FeatureType, type SdkOverlaySettings, type GamesOverlaySettings, } from '@streamlayer/sl-eslib/sdkSettings/sdkSettings.common_pb';
|
|
54
56
|
export { InvitationFrom } from '@streamlayer/sl-eslib/analytics/v1/invitations/invitations_pb';
|
|
55
57
|
export enum NotificationType {
|
|
@@ -135,6 +137,7 @@ declare module "../../sdk-web-interfaces/src/event-bus/index" {
|
|
|
135
137
|
app: unknown;
|
|
136
138
|
exposedPauseAd: {
|
|
137
139
|
id?: string;
|
|
140
|
+
parentId?: string;
|
|
138
141
|
};
|
|
139
142
|
invitation: {
|
|
140
143
|
from?: InvitationFrom;
|
|
@@ -281,6 +284,15 @@ declare module "../../sdk-web-interfaces/src/feature" {
|
|
|
281
284
|
Ready = "ready",
|
|
282
285
|
Suspended = "suspended"
|
|
283
286
|
}
|
|
287
|
+
export class AbstractFeatureUnit {
|
|
288
|
+
status: WritableAtom<FeatureStatus>;
|
|
289
|
+
protected listeners: Set<FeatureListener>;
|
|
290
|
+
constructor();
|
|
291
|
+
registerEventListener(listener: FeatureListener): void;
|
|
292
|
+
enable: () => void;
|
|
293
|
+
disable: () => void;
|
|
294
|
+
protected fireEvent(event: unknown): void;
|
|
295
|
+
}
|
|
284
296
|
export class AbstractFeature<K extends FeatureSettings['case'] | undefined, C extends FeatureSettings['value'] = FeatureSettings['value']> {
|
|
285
297
|
status: WritableAtom<FeatureStatus>;
|
|
286
298
|
source: FeatureSource;
|
|
@@ -347,7 +359,7 @@ declare module "../../sdk-web-interfaces/src/index" {
|
|
|
347
359
|
import { FeatureType } from '@streamlayer/sdk-web-types';
|
|
348
360
|
import { EventBus, EventBusEvent, EventBusData, EventBusActionPayload } from "../../sdk-web-interfaces/src/event-bus/index";
|
|
349
361
|
export { AbstractAuthenticationProvider } from "../../sdk-web-interfaces/src/auth";
|
|
350
|
-
export { AbstractFeature, FeatureSource, type FeatureProps, FeatureStatus } from "../../sdk-web-interfaces/src/feature";
|
|
362
|
+
export { AbstractFeature, AbstractFeatureUnit, FeatureSource, type FeatureProps, FeatureStatus } from "../../sdk-web-interfaces/src/feature";
|
|
351
363
|
export { MapStore, createMapStore } from "../../sdk-web-interfaces/src/store/map";
|
|
352
364
|
export type { MapStoreListeners } from "../../sdk-web-interfaces/src/store/map";
|
|
353
365
|
export { SingleStore, createSingleStore, createComputedStore } from "../../sdk-web-interfaces/src/store/single";
|