@streamlayer/react 1.23.0 → 1.23.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/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 +28 -223
- 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/gamification-feature.js +1 -1
- package/lib/cjs/gamification-feature2.js +1 -1
- package/lib/cjs/hooks-WfHlJH12.js +1 -0
- package/lib/cjs/index-eShKGO10.js +1 -5
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/index10.js +1 -4
- package/lib/cjs/index11.js +3 -1
- package/lib/cjs/index12.js +1 -1
- package/lib/cjs/index13.js +3 -1
- package/lib/cjs/index14.js +1 -1
- package/lib/cjs/index15.js +1 -5
- package/lib/cjs/index16.js +3 -0
- package/lib/cjs/index2.js +1 -1
- package/lib/cjs/index3.js +1 -1
- package/lib/cjs/index4.js +3 -5
- package/lib/cjs/index5.js +1 -1
- package/lib/cjs/index6.js +1 -1
- package/lib/cjs/index7.js +1 -1
- package/lib/cjs/index8.js +1 -1
- package/lib/cjs/index9.js +1 -1
- package/lib/cjs/insight.js +1 -1
- package/lib/cjs/masters.js +1 -1
- package/lib/cjs/masters2.js +1 -13
- 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 +9 -0
- package/lib/cjs/sl-types.js +1 -15
- package/lib/cjs/storage.js +1 -1
- package/lib/cjs/style.css +1 -0
- package/lib/cjs/theme.js +1 -17
- package/lib/cjs/useStreamLayerApp.js +1 -1
- package/lib/cjs/useStreamLayerApp2.js +3 -17
- package/lib/cjs/utils.js +1 -47
- 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 +28 -223
- package/lib/classic/cjs/analytics.js +1 -1
- package/lib/classic/cjs/auth.js +1 -1
- package/lib/classic/cjs/bet-pack.js +3 -5
- package/lib/classic/cjs/feature.js +1 -0
- package/lib/classic/cjs/gamification-feature.js +1 -1
- package/lib/classic/cjs/hooks-WfHlJH12.js +1 -0
- package/lib/classic/cjs/index-eShKGO10.js +1 -5
- 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 -4
- package/lib/classic/cjs/index13.js +3 -0
- package/lib/classic/cjs/index2.js +3 -5
- 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 -1
- package/lib/classic/cjs/index7.js +1 -1
- package/lib/classic/cjs/index8.js +1 -1
- package/lib/classic/cjs/index9.js +3 -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 +9 -0
- package/lib/classic/cjs/sl-types.js +1 -15
- package/lib/classic/cjs/style.css +1 -0
- package/lib/classic/cjs/useStreamLayerApp.js +1 -1
- package/lib/classic/cjs/useStreamLayerApp2.js +3 -17
- package/lib/classic/cjs/utils.js +1 -47
- package/lib/classic/es/Question.js +277 -264
- package/lib/classic/es/advertisement.js +34990 -18881
- package/lib/classic/es/analytics.js +58 -56
- package/lib/classic/es/auth.js +14 -8
- package/lib/classic/es/bet-pack.js +2448 -2418
- package/lib/classic/es/feature.js +108 -0
- package/lib/classic/es/gamification-feature.js +2 -2
- package/lib/classic/es/hooks-WfHlJH12.js +98 -0
- package/lib/classic/es/index-eShKGO10.js +948 -948
- package/lib/classic/es/index.js +13 -13
- package/lib/classic/es/index10.js +83 -2295
- package/lib/classic/es/index11.js +3095 -179
- package/lib/classic/es/index12.js +174 -821
- package/lib/classic/es/index13.js +850 -0
- package/lib/classic/es/index2.js +2099 -1763
- package/lib/classic/es/index3.js +11 -11
- package/lib/classic/es/index4.js +127 -127
- package/lib/classic/es/index5.js +3 -5
- package/lib/classic/es/index6.js +10 -11
- package/lib/classic/es/index7.js +6 -62
- package/lib/classic/es/index8.js +9 -316
- package/lib/classic/es/index9.js +316 -82
- package/lib/classic/es/insight.js +58 -53
- package/lib/classic/es/notification.js +5 -5
- package/lib/classic/es/notification2.js +765 -722
- package/lib/classic/es/pause-ad.js +190 -167
- package/lib/classic/es/points.js +55 -47
- package/lib/classic/es/polymarket.js +6848 -0
- package/lib/classic/es/sl-types.js +193 -125
- package/lib/classic/es/useStreamLayerApp.js +2 -2
- package/lib/classic/es/useStreamLayerApp2.js +9727 -7592
- package/lib/classic/es/utils.js +28 -28
- package/lib/classic/index.d.ts +1 -0
- package/lib/classic/style.css +1 -0
- package/lib/dist/cjs/gamification-feature.js +1 -1
- package/lib/dist/cjs/index-eShKGO10.js +1 -5
- package/lib/dist/cjs/index.js +1 -1
- package/lib/dist/cjs/masters.js +3 -77
- package/lib/dist/es/gamification-feature.js +2 -2
- package/lib/dist/es/index-eShKGO10.js +948 -948
- package/lib/dist/es/index.js +7 -8
- package/lib/dist/es/masters.js +18212 -14741
- package/lib/dist/index.d.ts +29 -8
- package/lib/dist/style.css +1 -1
- package/lib/es/Question.js +108 -106
- package/lib/es/advertisement.js +34990 -18881
- package/lib/es/analytics.js +58 -56
- package/lib/es/auth.js +14 -8
- package/lib/es/bet-pack.js +29 -17
- package/lib/es/feature.js +108 -0
- package/lib/es/gamification-feature.js +2 -2
- package/lib/es/gamification-feature2.js +2 -2
- package/lib/es/hooks-WfHlJH12.js +98 -0
- package/lib/es/index-eShKGO10.js +948 -948
- package/lib/es/index.js +14 -13
- package/lib/es/index10.js +258 -816
- package/lib/es/index11.js +837 -170
- package/lib/es/index12.js +181 -312
- package/lib/es/index13.js +316 -82
- package/lib/es/index14.js +83 -2350
- package/lib/es/index15.js +3069 -1224
- package/lib/es/index16.js +1453 -0
- package/lib/es/index2.js +1118 -984
- package/lib/es/index3.js +3 -62
- package/lib/es/index4.js +2424 -2407
- package/lib/es/index5.js +11 -11
- package/lib/es/index6.js +127 -127
- package/lib/es/index7.js +10 -7
- package/lib/es/index8.js +5 -9
- package/lib/es/index9.js +10 -265
- package/lib/es/insight.js +58 -53
- package/lib/es/masters.js +6 -5
- package/lib/es/masters2.js +696 -558
- package/lib/es/notification.js +697 -655
- package/lib/es/pause-ad.js +190 -167
- package/lib/es/points.js +56 -48
- package/lib/es/polymarket.js +6848 -0
- package/lib/es/sl-types.js +200 -132
- package/lib/es/storage.js +75 -74
- package/lib/es/theme.js +177 -31
- package/lib/es/useStreamLayerApp.js +2 -2
- package/lib/es/useStreamLayerApp2.js +9727 -7592
- package/lib/es/utils.js +28 -28
- package/lib/index.d.ts +1 -0
- package/lib/style.css +1 -1
- package/package.json +33 -20
- package/lib/cjs/hooks-B0Qttldg.js +0 -1
- package/lib/classic/cjs/hooks-B0Qttldg.js +0 -1
- package/lib/classic/es/hooks-B0Qttldg.js +0 -98
- package/lib/es/hooks-B0Qttldg.js +0 -98
package/lib/dist/index.d.ts
CHANGED
|
@@ -64,8 +64,17 @@ declare module "../../sdk-web-types/src/index" {
|
|
|
64
64
|
export * from "../../sdk-web-types/src/sl-types";
|
|
65
65
|
}
|
|
66
66
|
declare module "../../sdk-web-logger/src/index" {
|
|
67
|
-
|
|
68
|
-
|
|
67
|
+
interface LoggerInstance {
|
|
68
|
+
level: string;
|
|
69
|
+
trace: (...args: any[]) => void;
|
|
70
|
+
debug: (...args: any[]) => void;
|
|
71
|
+
info: (...args: any[]) => void;
|
|
72
|
+
warn: (...args: any[]) => void;
|
|
73
|
+
error: (...args: any[]) => void;
|
|
74
|
+
fatal: (...args: any[]) => void;
|
|
75
|
+
child: (bindings: Record<string, unknown>, options?: Record<string, unknown>) => LoggerInstance;
|
|
76
|
+
}
|
|
77
|
+
export const createLogger: (name: string, options?: Record<string, unknown>) => LoggerInstance;
|
|
69
78
|
export type Logger = ReturnType<typeof createLogger>;
|
|
70
79
|
}
|
|
71
80
|
declare module "../../sdk-web-interfaces/src/event-bus/index" {
|
|
@@ -363,8 +372,8 @@ declare module "../../sdk-web-interfaces/src/index" {
|
|
|
363
372
|
export { MapStore, createMapStore } from "../../sdk-web-interfaces/src/store/map";
|
|
364
373
|
export type { MapStoreListeners } from "../../sdk-web-interfaces/src/store/map";
|
|
365
374
|
export { SingleStore, createSingleStore, createComputedStore } from "../../sdk-web-interfaces/src/store/single";
|
|
366
|
-
export { AbstractStore, mergeStores } from "../../sdk-web-interfaces/src/store/abstract";
|
|
367
375
|
export { ApiStore } from "../../sdk-web-interfaces/src/store/api";
|
|
376
|
+
export { AbstractStore, mergeStores } from "../../sdk-web-interfaces/src/store/abstract";
|
|
368
377
|
export type CancelMountCb = () => void;
|
|
369
378
|
export type OnMountCb = () => CancelMountCb;
|
|
370
379
|
export interface StreamLayerSDK {
|
|
@@ -379,7 +388,7 @@ declare module "../../sdk-web-interfaces/src/index" {
|
|
|
379
388
|
sdk: StreamLayerSDK;
|
|
380
389
|
}
|
|
381
390
|
type DoneFn = Function;
|
|
382
|
-
export type StreamLayerPlugin<T =
|
|
391
|
+
export type StreamLayerPlugin<T = any> = (instance: StreamLayerContext, opts: T, done: DoneFn) => void;
|
|
383
392
|
export const eventBus: EventBus;
|
|
384
393
|
export type { EventBusEvent, EventBusData, EventBusActionPayload };
|
|
385
394
|
}
|
|
@@ -1098,6 +1107,7 @@ declare module "../../sdk-web-core/src/ui/index" {
|
|
|
1098
1107
|
appBanner?: boolean;
|
|
1099
1108
|
onboardingNotification?: boolean;
|
|
1100
1109
|
exposedPauseAd?: boolean;
|
|
1110
|
+
polymarket?: boolean;
|
|
1101
1111
|
};
|
|
1102
1112
|
export interface UIContext {
|
|
1103
1113
|
disableApp: () => void;
|
|
@@ -1109,6 +1119,8 @@ declare module "../../sdk-web-core/src/ui/index" {
|
|
|
1109
1119
|
onContentActivate?: OnContentActivateCallback;
|
|
1110
1120
|
enableExposedPauseAd: () => void;
|
|
1111
1121
|
disableExposedPauseAd: () => void;
|
|
1122
|
+
enablePolymarket: () => void;
|
|
1123
|
+
disablePolymarket: () => void;
|
|
1112
1124
|
}
|
|
1113
1125
|
module '@streamlayer/sdk-web-interfaces' {
|
|
1114
1126
|
interface StreamLayerContext {
|
|
@@ -1120,6 +1132,7 @@ declare module "../../sdk-web-core/src/ui/index" {
|
|
|
1120
1132
|
}
|
|
1121
1133
|
interface StreamLayerSDK {
|
|
1122
1134
|
uiState: ReturnType<typeof createMapStore<UIState>>;
|
|
1135
|
+
uiHandlers: Pick<UIContext, 'enablePolymarket' | 'disablePolymarket'>;
|
|
1123
1136
|
}
|
|
1124
1137
|
}
|
|
1125
1138
|
export const ui: (instance: StreamLayerContext, opts: {
|
|
@@ -1232,6 +1245,7 @@ declare module "app/notification" {
|
|
|
1232
1245
|
}>;
|
|
1233
1246
|
}
|
|
1234
1247
|
declare module "index" {
|
|
1248
|
+
import '@streamlayer/react-ui/style.css';
|
|
1235
1249
|
export { useStreamLayer, useStreamLayerUI, useStreamLayerTheme } from '@streamlayer/react-ui/core/hooks';
|
|
1236
1250
|
export { StreamLayerProvider, type DeepLinkCallback, type VideoPlayerCallback, type VideoPlayerData, type ContentActivateParams, type OnContentActivateCallback, } from '@streamlayer/react-ui/core/provider';
|
|
1237
1251
|
export { StreamLayerThemeProvider } from '@streamlayer/react-ui/ui/theme';
|
|
@@ -1304,6 +1318,7 @@ declare module "app/insight" {
|
|
|
1304
1318
|
export const StreamLayerSDKInsight: React.FC<StreamLayerSDKInsightProps>;
|
|
1305
1319
|
}
|
|
1306
1320
|
declare module "app/pause-ad" {
|
|
1321
|
+
import { type StreamLayerSDKTvOptions } from '@streamlayer/react-ui/webos';
|
|
1307
1322
|
import { Component } from 'react';
|
|
1308
1323
|
import { VideoPlayerCallback } from '@streamlayer/react-ui/core/provider';
|
|
1309
1324
|
export type StreamLayerPauseAdProps = {
|
|
@@ -1318,10 +1333,7 @@ declare module "app/pause-ad" {
|
|
|
1318
1333
|
onRenderPauseAd?: (params: {
|
|
1319
1334
|
rendered: boolean;
|
|
1320
1335
|
}) => void;
|
|
1321
|
-
options?:
|
|
1322
|
-
showPauseButton?: boolean;
|
|
1323
|
-
pauseAdDelay?: number;
|
|
1324
|
-
};
|
|
1336
|
+
options?: StreamLayerSDKTvOptions;
|
|
1325
1337
|
};
|
|
1326
1338
|
export class StreamLayerPauseAd extends Component<StreamLayerPauseAdProps, {
|
|
1327
1339
|
hasError: boolean;
|
|
@@ -1339,6 +1351,15 @@ declare module "app/points" {
|
|
|
1339
1351
|
theme?: string;
|
|
1340
1352
|
}>;
|
|
1341
1353
|
}
|
|
1354
|
+
declare module "app/polymarket" {
|
|
1355
|
+
import '@streamlayer/sdk-web-core/ui';
|
|
1356
|
+
export const StreamLayerSDKPolymarketButton: React.FC<{
|
|
1357
|
+
theme?: string;
|
|
1358
|
+
}>;
|
|
1359
|
+
export const StreamLayerSDKPolymarket: React.FC<{
|
|
1360
|
+
theme?: string;
|
|
1361
|
+
}>;
|
|
1362
|
+
}
|
|
1342
1363
|
declare module "app/useStreamLayerApp" {
|
|
1343
1364
|
export { useStreamLayerApp } from '@streamlayer/react-ui/useStreamLayerApp';
|
|
1344
1365
|
}
|