@streamlayer/react 1.22.3 → 1.23.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/app/pause-ad.d.ts +2 -4
- package/lib/app/polymarket.d.ts +7 -0
- package/lib/cjs/Question.js +1 -1
- package/lib/cjs/advertisement.js +44 -40
- package/lib/cjs/analytics.js +1 -1
- package/lib/cjs/auth.js +1 -1
- package/lib/cjs/bet-pack.js +1 -1
- package/lib/cjs/feature.js +1 -0
- package/lib/cjs/hooks-WfHlJH12.js +1 -0
- package/lib/cjs/index-eShKGO10.js +5 -0
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/index10.js +1 -1
- package/lib/cjs/index16.js +2 -2
- package/lib/cjs/index2.js +1 -1
- package/lib/cjs/index3.js +1 -1
- package/lib/cjs/index4.js +1 -1
- package/lib/cjs/index7.js +1 -5
- package/lib/cjs/insight.js +1 -1
- package/lib/cjs/masters.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/polymarket.js +19 -0
- package/lib/cjs/useStreamLayerApp2.js +17 -17
- package/lib/classic/app/pause-ad.d.ts +2 -4
- package/lib/classic/app/polymarket.d.ts +7 -0
- 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/auth.js +1 -1
- package/lib/classic/cjs/bet-pack.js +3 -3
- package/lib/classic/cjs/feature.js +1 -0
- package/lib/classic/cjs/hooks-WfHlJH12.js +1 -0
- 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 +1 -1
- package/lib/classic/cjs/index13.js +1 -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/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/polymarket.js +19 -0
- package/lib/classic/cjs/useStreamLayerApp2.js +17 -17
- package/lib/classic/es/Question.js +50 -50
- package/lib/classic/es/advertisement.js +15547 -10742
- package/lib/classic/es/analytics.js +74 -18
- package/lib/classic/es/auth.js +1 -1
- package/lib/classic/es/bet-pack.js +19 -18
- package/lib/classic/es/feature.js +63 -0
- package/lib/classic/es/hooks-WfHlJH12.js +98 -0
- package/lib/classic/es/index-eShKGO10.js +3757 -0
- package/lib/classic/es/index.js +1 -1
- package/lib/classic/es/index10.js +1 -1
- package/lib/classic/es/index11.js +767 -755
- package/lib/classic/es/index12.js +1 -1
- package/lib/classic/es/index13.js +2 -2
- package/lib/classic/es/index2.js +125 -125
- package/lib/classic/es/index3.js +16 -61
- package/lib/classic/es/index4.js +282 -16
- package/lib/classic/es/index5.js +4 -283
- package/lib/classic/es/index6.js +5 -3758
- package/lib/classic/es/index9.js +1 -1
- package/lib/classic/es/insight.js +1 -1
- package/lib/classic/es/notification.js +1 -1
- package/lib/classic/es/notification2.js +476 -451
- package/lib/classic/es/pause-ad.js +174 -208
- package/lib/classic/es/points.js +16 -15
- package/lib/classic/es/polymarket.js +6670 -0
- package/lib/classic/es/useStreamLayerApp2.js +5088 -4030
- package/lib/dist/cjs/index-eShKGO10.js +5 -0
- package/lib/dist/cjs/masters.js +36 -36
- package/lib/dist/es/index-eShKGO10.js +3757 -0
- package/lib/dist/es/masters.js +9243 -8192
- package/lib/dist/index.d.ts +30 -7
- package/lib/dist/style.css +1 -1
- package/lib/es/Question.js +3 -3
- package/lib/es/advertisement.js +15547 -10742
- package/lib/es/analytics.js +74 -18
- package/lib/es/auth.js +1 -1
- package/lib/es/bet-pack.js +1 -1
- package/lib/es/feature.js +63 -0
- package/lib/es/hooks-WfHlJH12.js +98 -0
- package/lib/es/index-eShKGO10.js +3757 -0
- package/lib/es/index.js +1 -1
- package/lib/es/index10.js +9 -9
- package/lib/es/index16.js +2 -2
- package/lib/es/index2.js +118 -118
- package/lib/es/index3.js +3 -61
- package/lib/es/index4.js +1 -1
- package/lib/es/index7.js +5 -3758
- package/lib/es/insight.js +1 -1
- package/lib/es/masters.js +1 -1
- package/lib/es/masters2.js +23 -23
- package/lib/es/notification.js +450 -425
- package/lib/es/pause-ad.js +174 -208
- package/lib/es/points.js +5 -4
- package/lib/es/polymarket.js +6670 -0
- package/lib/es/useStreamLayerApp2.js +5088 -4030
- package/lib/style.css +1 -1
- package/package.json +27 -17
- package/lib/cjs/hooks-B0Qttldg.js +0 -1
- package/lib/cjs/index-DSi8Qgfs.js +0 -1
- package/lib/cjs/vast-client.min.js +0 -1
- package/lib/classic/cjs/hooks-B0Qttldg.js +0 -1
- package/lib/classic/cjs/index-DSi8Qgfs.js +0 -1
- package/lib/classic/cjs/vast-client.min.js +0 -1
- package/lib/classic/es/hooks-B0Qttldg.js +0 -98
- package/lib/classic/es/index-DSi8Qgfs.js +0 -65
- package/lib/classic/es/vast-client.min.js +0 -1060
- package/lib/es/hooks-B0Qttldg.js +0 -98
- package/lib/es/index-DSi8Qgfs.js +0 -65
- 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,12 +359,12 @@ 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";
|
|
354
|
-
export { AbstractStore, mergeStores } from "../../sdk-web-interfaces/src/store/abstract";
|
|
355
366
|
export { ApiStore } from "../../sdk-web-interfaces/src/store/api";
|
|
367
|
+
export { AbstractStore, mergeStores } from "../../sdk-web-interfaces/src/store/abstract";
|
|
356
368
|
export type CancelMountCb = () => void;
|
|
357
369
|
export type OnMountCb = () => CancelMountCb;
|
|
358
370
|
export interface StreamLayerSDK {
|
|
@@ -367,7 +379,7 @@ declare module "../../sdk-web-interfaces/src/index" {
|
|
|
367
379
|
sdk: StreamLayerSDK;
|
|
368
380
|
}
|
|
369
381
|
type DoneFn = Function;
|
|
370
|
-
export type StreamLayerPlugin<T =
|
|
382
|
+
export type StreamLayerPlugin<T = any> = (instance: StreamLayerContext, opts: T, done: DoneFn) => void;
|
|
371
383
|
export const eventBus: EventBus;
|
|
372
384
|
export type { EventBusEvent, EventBusData, EventBusActionPayload };
|
|
373
385
|
}
|
|
@@ -1086,6 +1098,7 @@ declare module "../../sdk-web-core/src/ui/index" {
|
|
|
1086
1098
|
appBanner?: boolean;
|
|
1087
1099
|
onboardingNotification?: boolean;
|
|
1088
1100
|
exposedPauseAd?: boolean;
|
|
1101
|
+
polymarket?: boolean;
|
|
1089
1102
|
};
|
|
1090
1103
|
export interface UIContext {
|
|
1091
1104
|
disableApp: () => void;
|
|
@@ -1097,6 +1110,8 @@ declare module "../../sdk-web-core/src/ui/index" {
|
|
|
1097
1110
|
onContentActivate?: OnContentActivateCallback;
|
|
1098
1111
|
enableExposedPauseAd: () => void;
|
|
1099
1112
|
disableExposedPauseAd: () => void;
|
|
1113
|
+
enablePolymarket: () => void;
|
|
1114
|
+
disablePolymarket: () => void;
|
|
1100
1115
|
}
|
|
1101
1116
|
module '@streamlayer/sdk-web-interfaces' {
|
|
1102
1117
|
interface StreamLayerContext {
|
|
@@ -1108,6 +1123,7 @@ declare module "../../sdk-web-core/src/ui/index" {
|
|
|
1108
1123
|
}
|
|
1109
1124
|
interface StreamLayerSDK {
|
|
1110
1125
|
uiState: ReturnType<typeof createMapStore<UIState>>;
|
|
1126
|
+
uiHandlers: Pick<UIContext, 'enablePolymarket' | 'disablePolymarket'>;
|
|
1111
1127
|
}
|
|
1112
1128
|
}
|
|
1113
1129
|
export const ui: (instance: StreamLayerContext, opts: {
|
|
@@ -1292,6 +1308,7 @@ declare module "app/insight" {
|
|
|
1292
1308
|
export const StreamLayerSDKInsight: React.FC<StreamLayerSDKInsightProps>;
|
|
1293
1309
|
}
|
|
1294
1310
|
declare module "app/pause-ad" {
|
|
1311
|
+
import { type StreamLayerSDKTvOptions } from '@streamlayer/react-ui/webos';
|
|
1295
1312
|
import { Component } from 'react';
|
|
1296
1313
|
import { VideoPlayerCallback } from '@streamlayer/react-ui/core/provider';
|
|
1297
1314
|
export type StreamLayerPauseAdProps = {
|
|
@@ -1306,10 +1323,7 @@ declare module "app/pause-ad" {
|
|
|
1306
1323
|
onRenderPauseAd?: (params: {
|
|
1307
1324
|
rendered: boolean;
|
|
1308
1325
|
}) => void;
|
|
1309
|
-
options?:
|
|
1310
|
-
showPauseButton?: boolean;
|
|
1311
|
-
pauseAdDelay?: number;
|
|
1312
|
-
};
|
|
1326
|
+
options?: StreamLayerSDKTvOptions;
|
|
1313
1327
|
};
|
|
1314
1328
|
export class StreamLayerPauseAd extends Component<StreamLayerPauseAdProps, {
|
|
1315
1329
|
hasError: boolean;
|
|
@@ -1327,6 +1341,15 @@ declare module "app/points" {
|
|
|
1327
1341
|
theme?: string;
|
|
1328
1342
|
}>;
|
|
1329
1343
|
}
|
|
1344
|
+
declare module "app/polymarket" {
|
|
1345
|
+
import '@streamlayer/sdk-web-core/ui';
|
|
1346
|
+
export const StreamLayerSDKPolymarketButton: React.FC<{
|
|
1347
|
+
theme?: string;
|
|
1348
|
+
}>;
|
|
1349
|
+
export const StreamLayerSDKPolymarket: React.FC<{
|
|
1350
|
+
theme?: string;
|
|
1351
|
+
}>;
|
|
1352
|
+
}
|
|
1330
1353
|
declare module "app/useStreamLayerApp" {
|
|
1331
1354
|
export { useStreamLayerApp } from '@streamlayer/react-ui/useStreamLayerApp';
|
|
1332
1355
|
}
|