@streamlayer/react 1.17.1 → 1.18.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 (54) hide show
  1. package/lib/app/advertisement.d.ts +1 -0
  2. package/lib/app/app.d.ts +3 -0
  3. package/lib/app/provider.d.ts +4 -1
  4. package/lib/app/useStreamLayerApp.d.ts +2 -1
  5. package/lib/cjs/advertisement.js +36 -36
  6. package/lib/cjs/gamification-feature.js +1 -1
  7. package/lib/cjs/index2.js +2 -2
  8. package/lib/cjs/insight.js +1 -1
  9. package/lib/cjs/masters2.js +3 -3
  10. package/lib/cjs/notification.js +1 -1
  11. package/lib/cjs/points.js +1 -1
  12. package/lib/cjs/provider.js +62 -19
  13. package/lib/cjs/useStreamLayerApp2.js +15 -15
  14. package/lib/classic/app/advertisement.d.ts +1 -0
  15. package/lib/classic/app/app.d.ts +3 -0
  16. package/lib/classic/app/provider.d.ts +4 -1
  17. package/lib/classic/app/useStreamLayerApp.d.ts +2 -1
  18. package/lib/classic/cjs/advertisement.js +36 -36
  19. package/lib/classic/cjs/bet-pack.js +2 -2
  20. package/lib/classic/cjs/gamification-feature.js +1 -1
  21. package/lib/classic/cjs/insight.js +1 -1
  22. package/lib/classic/cjs/notification.js +1 -1
  23. package/lib/classic/cjs/points.js +1 -1
  24. package/lib/classic/cjs/provider.js +57 -14
  25. package/lib/classic/cjs/useStreamLayerApp2.js +15 -15
  26. package/lib/classic/es/advertisement.js +6778 -6620
  27. package/lib/classic/es/bet-pack.js +245 -245
  28. package/lib/classic/es/gamification-feature.js +1 -1
  29. package/lib/classic/es/index.js +3 -3
  30. package/lib/classic/es/insight.js +41 -38
  31. package/lib/classic/es/notification.js +739 -230
  32. package/lib/classic/es/points.js +10 -10
  33. package/lib/classic/es/provider.js +7175 -4742
  34. package/lib/classic/es/useStreamLayerApp.js +1 -1
  35. package/lib/classic/es/useStreamLayerApp2.js +4007 -3787
  36. package/lib/dist/cjs/gamification-feature2.js +1 -1
  37. package/lib/dist/cjs/masters.js +47 -43
  38. package/lib/dist/es/gamification-feature2.js +15 -15
  39. package/lib/dist/es/index.js +3 -3
  40. package/lib/dist/es/masters.js +14631 -12156
  41. package/lib/dist/style.css +1 -1
  42. package/lib/es/advertisement.js +6778 -6620
  43. package/lib/es/gamification-feature.js +1 -1
  44. package/lib/es/index.js +1 -1
  45. package/lib/es/index2.js +362 -362
  46. package/lib/es/insight.js +41 -38
  47. package/lib/es/masters2.js +28 -26
  48. package/lib/es/notification.js +739 -230
  49. package/lib/es/points.js +10 -10
  50. package/lib/es/provider.js +7162 -4706
  51. package/lib/es/useStreamLayerApp.js +1 -1
  52. package/lib/es/useStreamLayerApp2.js +4007 -3787
  53. package/lib/style.css +1 -1
  54. package/package.json +14 -14
@@ -13,6 +13,7 @@ export type StreamLayerSDKAdvertisementProps = {
13
13
  skipAutoClose?: boolean;
14
14
  skipTypeCheck?: boolean;
15
15
  externalAd?: boolean;
16
+ muted?: boolean;
16
17
  };
17
18
  export { StreamLayerSDKAdvertisementUI };
18
19
  export declare const StreamLayerSDKAdvertisement: React.FC<StreamLayerSDKAdvertisementProps>;
package/lib/app/app.d.ts CHANGED
@@ -10,11 +10,14 @@ export declare const useStreamLayerUI: () => {
10
10
  promotionBanner?: boolean;
11
11
  app?: boolean;
12
12
  appNotification?: boolean;
13
+ appSidebar?: boolean;
14
+ appBanner?: boolean;
13
15
  onboardingNotification?: boolean;
14
16
  };
15
17
  export declare const StreamLayerSDKReact: React.FC<{
16
18
  event?: string;
17
19
  topNavigation?: boolean;
18
20
  withSidebarNotification?: boolean;
21
+ muted?: boolean;
19
22
  theme?: string;
20
23
  }>;
@@ -9,7 +9,8 @@ export type ContentActivateParams = {
9
9
  type: 'advertisement' | 'insight' | 'poll' | 'trivia' | 'prediction' | 'tweet' | 'question';
10
10
  };
11
11
  export type VideoPlayerData = {
12
- muted: boolean;
12
+ muted?: boolean;
13
+ play?: boolean;
13
14
  };
14
15
  export type VideoPlayerCallback = (videoPlayerData: VideoPlayerData) => void;
15
16
  export type OnContentActivateCallback = (renderData: ContentActivateParams) => void;
@@ -38,9 +39,11 @@ export type StreamLayerProps = {
38
39
  hideFriends?: boolean;
39
40
  friendsTab?: 'enabled' | 'disabled' | 'activatedGame';
40
41
  themeMode?: 'light' | 'dark';
42
+ containerId?: string;
41
43
  };
42
44
  export declare const StreamLayerProvider: React.FC<StreamLayerProps & {
43
45
  children: React.ReactNode;
44
46
  skipOnboarding?: boolean;
45
47
  betPack?: boolean;
48
+ webOS?: boolean;
46
49
  }>;
@@ -5,7 +5,7 @@ declare global {
5
5
  sl: unknown;
6
6
  }
7
7
  }
8
- export declare const useStreamLayerApp: ({ sdkKey, plugins, production, autoEnable, onDeepLinkHandled, videoPlayerController, onContentActivate, hideFriends, skipOnboarding, withAdNotification, withAd, friendsTab, betPack, }: {
8
+ export declare const useStreamLayerApp: ({ sdkKey, plugins, production, autoEnable, onDeepLinkHandled, videoPlayerController, onContentActivate, hideFriends, skipOnboarding, withAdNotification, withAd, friendsTab, betPack, webOS, }: {
9
9
  sdkKey: string;
10
10
  plugins?: Set<StreamLayerPlugin>;
11
11
  production?: boolean;
@@ -18,5 +18,6 @@ export declare const useStreamLayerApp: ({ sdkKey, plugins, production, autoEnab
18
18
  hideFriends?: boolean;
19
19
  withAd?: boolean;
20
20
  betPack?: boolean;
21
+ webOS?: boolean;
21
22
  friendsTab: "enabled" | "disabled" | "activatedGame";
22
23
  }) => StreamLayerSDK | null;