@streamlayer/react 1.23.0 → 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 +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.js +1 -1
- package/lib/cjs/index10.js +1 -4
- package/lib/cjs/index11.js +4 -1
- 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 +1 -5
- package/lib/cjs/index16.js +5 -0
- 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 -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 +4 -4
- 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/storage.js +1 -1
- package/lib/cjs/useStreamLayerApp2.js +5 -5
- 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 +1 -1
- 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.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 +4 -0
- package/lib/classic/cjs/index2.js +2 -2
- 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 +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 +5 -5
- package/lib/classic/es/Question.js +4 -4
- package/lib/classic/es/advertisement.js +6 -6
- package/lib/classic/es/analytics.js +1 -1
- package/lib/classic/es/auth.js +1 -1
- package/lib/classic/es/bet-pack.js +18 -17
- package/lib/classic/es/feature.js +63 -0
- package/lib/classic/es/hooks-WfHlJH12.js +98 -0
- package/lib/classic/es/index.js +2 -2
- package/lib/classic/es/index10.js +82 -2295
- package/lib/classic/es/index11.js +2351 -179
- package/lib/classic/es/index12.js +170 -822
- package/lib/classic/es/index13.js +835 -0
- package/lib/classic/es/index2.js +127 -126
- package/lib/classic/es/index5.js +4 -5
- package/lib/classic/es/index6.js +5 -11
- package/lib/classic/es/index7.js +5 -62
- package/lib/classic/es/index8.js +7 -315
- package/lib/classic/es/index9.js +313 -81
- package/lib/classic/es/insight.js +2 -2
- package/lib/classic/es/notification.js +2 -2
- package/lib/classic/es/notification2.js +14 -13
- package/lib/classic/es/pause-ad.js +20 -20
- package/lib/classic/es/points.js +15 -14
- package/lib/classic/es/polymarket.js +6670 -0
- package/lib/classic/es/useStreamLayerApp2.js +143 -119
- package/lib/dist/cjs/masters.js +23 -23
- package/lib/dist/es/masters.js +189 -165
- package/lib/dist/index.d.ts +17 -6
- package/lib/dist/style.css +1 -1
- package/lib/es/Question.js +2 -2
- package/lib/es/advertisement.js +5 -5
- 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.js +2 -2
- package/lib/es/index10.js +236 -804
- package/lib/es/index11.js +822 -170
- package/lib/es/index12.js +166 -302
- package/lib/es/index13.js +313 -81
- package/lib/es/index14.js +82 -2350
- package/lib/es/index15.js +2330 -1229
- package/lib/es/index16.js +1254 -0
- package/lib/es/index2.js +118 -117
- package/lib/es/index3.js +3 -61
- package/lib/es/index4.js +3 -3
- package/lib/es/index7.js +5 -7
- package/lib/es/index8.js +5 -9
- package/lib/es/index9.js +7 -263
- package/lib/es/insight.js +2 -2
- package/lib/es/masters.js +1 -1
- package/lib/es/masters2.js +25 -24
- package/lib/es/notification.js +8 -7
- package/lib/es/pause-ad.js +20 -20
- package/lib/es/points.js +6 -5
- package/lib/es/polymarket.js +6670 -0
- package/lib/es/storage.js +2 -2
- package/lib/es/useStreamLayerApp2.js +143 -119
- package/lib/style.css +1 -1
- package/package.json +24 -14
- 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
|
@@ -363,8 +363,8 @@ declare module "../../sdk-web-interfaces/src/index" {
|
|
|
363
363
|
export { MapStore, createMapStore } from "../../sdk-web-interfaces/src/store/map";
|
|
364
364
|
export type { MapStoreListeners } from "../../sdk-web-interfaces/src/store/map";
|
|
365
365
|
export { SingleStore, createSingleStore, createComputedStore } from "../../sdk-web-interfaces/src/store/single";
|
|
366
|
-
export { AbstractStore, mergeStores } from "../../sdk-web-interfaces/src/store/abstract";
|
|
367
366
|
export { ApiStore } from "../../sdk-web-interfaces/src/store/api";
|
|
367
|
+
export { AbstractStore, mergeStores } from "../../sdk-web-interfaces/src/store/abstract";
|
|
368
368
|
export type CancelMountCb = () => void;
|
|
369
369
|
export type OnMountCb = () => CancelMountCb;
|
|
370
370
|
export interface StreamLayerSDK {
|
|
@@ -379,7 +379,7 @@ declare module "../../sdk-web-interfaces/src/index" {
|
|
|
379
379
|
sdk: StreamLayerSDK;
|
|
380
380
|
}
|
|
381
381
|
type DoneFn = Function;
|
|
382
|
-
export type StreamLayerPlugin<T =
|
|
382
|
+
export type StreamLayerPlugin<T = any> = (instance: StreamLayerContext, opts: T, done: DoneFn) => void;
|
|
383
383
|
export const eventBus: EventBus;
|
|
384
384
|
export type { EventBusEvent, EventBusData, EventBusActionPayload };
|
|
385
385
|
}
|
|
@@ -1098,6 +1098,7 @@ declare module "../../sdk-web-core/src/ui/index" {
|
|
|
1098
1098
|
appBanner?: boolean;
|
|
1099
1099
|
onboardingNotification?: boolean;
|
|
1100
1100
|
exposedPauseAd?: boolean;
|
|
1101
|
+
polymarket?: boolean;
|
|
1101
1102
|
};
|
|
1102
1103
|
export interface UIContext {
|
|
1103
1104
|
disableApp: () => void;
|
|
@@ -1109,6 +1110,8 @@ declare module "../../sdk-web-core/src/ui/index" {
|
|
|
1109
1110
|
onContentActivate?: OnContentActivateCallback;
|
|
1110
1111
|
enableExposedPauseAd: () => void;
|
|
1111
1112
|
disableExposedPauseAd: () => void;
|
|
1113
|
+
enablePolymarket: () => void;
|
|
1114
|
+
disablePolymarket: () => void;
|
|
1112
1115
|
}
|
|
1113
1116
|
module '@streamlayer/sdk-web-interfaces' {
|
|
1114
1117
|
interface StreamLayerContext {
|
|
@@ -1120,6 +1123,7 @@ declare module "../../sdk-web-core/src/ui/index" {
|
|
|
1120
1123
|
}
|
|
1121
1124
|
interface StreamLayerSDK {
|
|
1122
1125
|
uiState: ReturnType<typeof createMapStore<UIState>>;
|
|
1126
|
+
uiHandlers: Pick<UIContext, 'enablePolymarket' | 'disablePolymarket'>;
|
|
1123
1127
|
}
|
|
1124
1128
|
}
|
|
1125
1129
|
export const ui: (instance: StreamLayerContext, opts: {
|
|
@@ -1304,6 +1308,7 @@ declare module "app/insight" {
|
|
|
1304
1308
|
export const StreamLayerSDKInsight: React.FC<StreamLayerSDKInsightProps>;
|
|
1305
1309
|
}
|
|
1306
1310
|
declare module "app/pause-ad" {
|
|
1311
|
+
import { type StreamLayerSDKTvOptions } from '@streamlayer/react-ui/webos';
|
|
1307
1312
|
import { Component } from 'react';
|
|
1308
1313
|
import { VideoPlayerCallback } from '@streamlayer/react-ui/core/provider';
|
|
1309
1314
|
export type StreamLayerPauseAdProps = {
|
|
@@ -1318,10 +1323,7 @@ declare module "app/pause-ad" {
|
|
|
1318
1323
|
onRenderPauseAd?: (params: {
|
|
1319
1324
|
rendered: boolean;
|
|
1320
1325
|
}) => void;
|
|
1321
|
-
options?:
|
|
1322
|
-
showPauseButton?: boolean;
|
|
1323
|
-
pauseAdDelay?: number;
|
|
1324
|
-
};
|
|
1326
|
+
options?: StreamLayerSDKTvOptions;
|
|
1325
1327
|
};
|
|
1326
1328
|
export class StreamLayerPauseAd extends Component<StreamLayerPauseAdProps, {
|
|
1327
1329
|
hasError: boolean;
|
|
@@ -1339,6 +1341,15 @@ declare module "app/points" {
|
|
|
1339
1341
|
theme?: string;
|
|
1340
1342
|
}>;
|
|
1341
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
|
+
}
|
|
1342
1353
|
declare module "app/useStreamLayerApp" {
|
|
1343
1354
|
export { useStreamLayerApp } from '@streamlayer/react-ui/useStreamLayerApp';
|
|
1344
1355
|
}
|