@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.
Files changed (122) hide show
  1. package/lib/app/pause-ad.d.ts +2 -4
  2. package/lib/app/polymarket.d.ts +7 -0
  3. package/lib/cjs/Question.js +1 -1
  4. package/lib/cjs/advertisement.js +1 -1
  5. package/lib/cjs/auth.js +1 -1
  6. package/lib/cjs/bet-pack.js +1 -1
  7. package/lib/cjs/feature.js +1 -0
  8. package/lib/cjs/hooks-WfHlJH12.js +1 -0
  9. package/lib/cjs/index.js +1 -1
  10. package/lib/cjs/index10.js +1 -4
  11. package/lib/cjs/index11.js +4 -1
  12. package/lib/cjs/index12.js +1 -1
  13. package/lib/cjs/index13.js +1 -1
  14. package/lib/cjs/index14.js +1 -1
  15. package/lib/cjs/index15.js +1 -5
  16. package/lib/cjs/index16.js +5 -0
  17. package/lib/cjs/index2.js +1 -1
  18. package/lib/cjs/index3.js +1 -1
  19. package/lib/cjs/index4.js +1 -1
  20. package/lib/cjs/index7.js +1 -1
  21. package/lib/cjs/index8.js +1 -1
  22. package/lib/cjs/index9.js +1 -1
  23. package/lib/cjs/insight.js +1 -1
  24. package/lib/cjs/masters.js +1 -1
  25. package/lib/cjs/masters2.js +4 -4
  26. package/lib/cjs/notification.js +1 -1
  27. package/lib/cjs/pause-ad.js +1 -1
  28. package/lib/cjs/points.js +1 -1
  29. package/lib/cjs/polymarket.js +19 -0
  30. package/lib/cjs/storage.js +1 -1
  31. package/lib/cjs/useStreamLayerApp2.js +5 -5
  32. package/lib/classic/app/pause-ad.d.ts +2 -4
  33. package/lib/classic/app/polymarket.d.ts +7 -0
  34. package/lib/classic/cjs/Question.js +1 -1
  35. package/lib/classic/cjs/advertisement.js +1 -1
  36. package/lib/classic/cjs/analytics.js +1 -1
  37. package/lib/classic/cjs/auth.js +1 -1
  38. package/lib/classic/cjs/bet-pack.js +3 -3
  39. package/lib/classic/cjs/feature.js +1 -0
  40. package/lib/classic/cjs/hooks-WfHlJH12.js +1 -0
  41. package/lib/classic/cjs/index.js +1 -1
  42. package/lib/classic/cjs/index10.js +1 -1
  43. package/lib/classic/cjs/index11.js +1 -1
  44. package/lib/classic/cjs/index12.js +1 -4
  45. package/lib/classic/cjs/index13.js +4 -0
  46. package/lib/classic/cjs/index2.js +2 -2
  47. package/lib/classic/cjs/index5.js +1 -1
  48. package/lib/classic/cjs/index6.js +1 -1
  49. package/lib/classic/cjs/index7.js +1 -1
  50. package/lib/classic/cjs/index8.js +1 -1
  51. package/lib/classic/cjs/index9.js +1 -1
  52. package/lib/classic/cjs/insight.js +1 -1
  53. package/lib/classic/cjs/notification.js +1 -1
  54. package/lib/classic/cjs/notification2.js +1 -1
  55. package/lib/classic/cjs/pause-ad.js +1 -1
  56. package/lib/classic/cjs/points.js +1 -1
  57. package/lib/classic/cjs/polymarket.js +19 -0
  58. package/lib/classic/cjs/useStreamLayerApp2.js +5 -5
  59. package/lib/classic/es/Question.js +4 -4
  60. package/lib/classic/es/advertisement.js +6 -6
  61. package/lib/classic/es/analytics.js +1 -1
  62. package/lib/classic/es/auth.js +1 -1
  63. package/lib/classic/es/bet-pack.js +18 -17
  64. package/lib/classic/es/feature.js +63 -0
  65. package/lib/classic/es/hooks-WfHlJH12.js +98 -0
  66. package/lib/classic/es/index.js +2 -2
  67. package/lib/classic/es/index10.js +82 -2295
  68. package/lib/classic/es/index11.js +2351 -179
  69. package/lib/classic/es/index12.js +170 -822
  70. package/lib/classic/es/index13.js +835 -0
  71. package/lib/classic/es/index2.js +127 -126
  72. package/lib/classic/es/index5.js +4 -5
  73. package/lib/classic/es/index6.js +5 -11
  74. package/lib/classic/es/index7.js +5 -62
  75. package/lib/classic/es/index8.js +7 -315
  76. package/lib/classic/es/index9.js +313 -81
  77. package/lib/classic/es/insight.js +2 -2
  78. package/lib/classic/es/notification.js +2 -2
  79. package/lib/classic/es/notification2.js +14 -13
  80. package/lib/classic/es/pause-ad.js +20 -20
  81. package/lib/classic/es/points.js +15 -14
  82. package/lib/classic/es/polymarket.js +6670 -0
  83. package/lib/classic/es/useStreamLayerApp2.js +143 -119
  84. package/lib/dist/cjs/masters.js +23 -23
  85. package/lib/dist/es/masters.js +189 -165
  86. package/lib/dist/index.d.ts +17 -6
  87. package/lib/dist/style.css +1 -1
  88. package/lib/es/Question.js +2 -2
  89. package/lib/es/advertisement.js +5 -5
  90. package/lib/es/auth.js +1 -1
  91. package/lib/es/bet-pack.js +1 -1
  92. package/lib/es/feature.js +63 -0
  93. package/lib/es/hooks-WfHlJH12.js +98 -0
  94. package/lib/es/index.js +2 -2
  95. package/lib/es/index10.js +236 -804
  96. package/lib/es/index11.js +822 -170
  97. package/lib/es/index12.js +166 -302
  98. package/lib/es/index13.js +313 -81
  99. package/lib/es/index14.js +82 -2350
  100. package/lib/es/index15.js +2330 -1229
  101. package/lib/es/index16.js +1254 -0
  102. package/lib/es/index2.js +118 -117
  103. package/lib/es/index3.js +3 -61
  104. package/lib/es/index4.js +3 -3
  105. package/lib/es/index7.js +5 -7
  106. package/lib/es/index8.js +5 -9
  107. package/lib/es/index9.js +7 -263
  108. package/lib/es/insight.js +2 -2
  109. package/lib/es/masters.js +1 -1
  110. package/lib/es/masters2.js +25 -24
  111. package/lib/es/notification.js +8 -7
  112. package/lib/es/pause-ad.js +20 -20
  113. package/lib/es/points.js +6 -5
  114. package/lib/es/polymarket.js +6670 -0
  115. package/lib/es/storage.js +2 -2
  116. package/lib/es/useStreamLayerApp2.js +143 -119
  117. package/lib/style.css +1 -1
  118. package/package.json +24 -14
  119. package/lib/cjs/hooks-B0Qttldg.js +0 -1
  120. package/lib/classic/cjs/hooks-B0Qttldg.js +0 -1
  121. package/lib/classic/es/hooks-B0Qttldg.js +0 -98
  122. package/lib/es/hooks-B0Qttldg.js +0 -98
@@ -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 = unknown> = (instance: StreamLayerContext, opts: T, done: DoneFn) => void;
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
  }