@streamlayer/react-ui 1.32.4 → 1.33.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 (154) hide show
  1. package/lib/app/app/Advertisement/index.d.ts +1 -1
  2. package/lib/app/app/Advertisement/index.js +14 -15
  3. package/lib/app/app/Banner/index.d.ts +1 -1
  4. package/lib/app/app/Features/FeatureProvider.d.ts +2 -2
  5. package/lib/app/app/Features/Gamification/Leaderboard.d.ts +1 -1
  6. package/lib/app/app/Features/Gamification/Leaderboard.js +46 -36
  7. package/lib/app/app/Features/Gamification/Question.d.ts +2 -2
  8. package/lib/app/app/Features/Gamification/Question.js +42 -42
  9. package/lib/app/app/Features/Gamification/QuestionAdvertisement.js +19 -25
  10. package/lib/app/app/Features/Gamification/QuestionsList.d.ts +1 -1
  11. package/lib/app/app/Features/Gamification/Tabs.d.ts +1 -1
  12. package/lib/app/app/Features/Gamification/UserSummary.d.ts +1 -1
  13. package/lib/app/app/Features/Gamification/index.d.ts +2 -2
  14. package/lib/app/app/Features/Gamification/index.js +29 -28
  15. package/lib/app/app/Features/index.d.ts +2 -2
  16. package/lib/app/app/InApp/index.d.ts +1 -1
  17. package/lib/app/app/Insight/index.d.ts +2 -2
  18. package/lib/app/app/Layout/index.d.ts +1 -1
  19. package/lib/app/app/Navigation/index.d.ts +1 -1
  20. package/lib/app/app/Notifications/Onboarding/Notification/index.d.ts +2 -2
  21. package/lib/app/app/Notifications/Onboarding/index.d.ts +2 -2
  22. package/lib/app/app/Notifications/Onboarding/index.js +45 -42
  23. package/lib/app/app/Notifications/index.d.ts +1 -1
  24. package/lib/app/app/Points/index.d.ts +1 -1
  25. package/lib/app/app/index.d.ts +1 -1
  26. package/lib/app/app/story/index.js +24 -24
  27. package/lib/app/app/story/insight/index.js +14 -15
  28. package/lib/app/app/story/insight/video.js +3 -3
  29. package/lib/app/app/story/promotion/content.js +5 -5
  30. package/lib/app/app/story/promotion/index.d.ts +1 -0
  31. package/lib/app/app/story/promotion/index.js +24 -25
  32. package/lib/app/app/story/promotion/video.d.ts +0 -1
  33. package/lib/app/app/story/promotion/video.js +41 -43
  34. package/lib/app/app/story/promotion-notification/index.js +15 -16
  35. package/lib/app/app/story/promotion-notification/video.d.ts +0 -1
  36. package/lib/app/app/story/promotion-notification/video.js +22 -30
  37. package/lib/app/app/story/settings/index.js +6 -6
  38. package/lib/app/app/story/settings/login.js +1 -1
  39. package/lib/app/app/story/video.js +28 -28
  40. package/lib/app/app/useApp.d.ts +1 -1
  41. package/lib/app/app/useAppContext.d.ts +1 -1
  42. package/lib/app/login/demo.js +19 -18
  43. package/lib/app/masters/BetPack/BetPackContent/EndScreen/index.d.ts +0 -1
  44. package/lib/app/masters/BetPack/BetPackContent/EndScreen/index.js +17 -17
  45. package/lib/app/masters/BetPack/BetPackContent/QuestionScreen/index.d.ts +2 -2
  46. package/lib/app/masters/BetPack/BetPackContent/index.d.ts +1 -1
  47. package/lib/app/masters/BetPack/BetPackOverlay/index.d.ts +1 -1
  48. package/lib/app/masters/BetPack/index.d.ts +1 -1
  49. package/lib/app/masters/Features/FeatureProvider.d.ts +2 -2
  50. package/lib/app/masters/Features/Gamification/Question.d.ts +1 -1
  51. package/lib/app/masters/Features/Gamification/QuestionsList.d.ts +1 -1
  52. package/lib/app/masters/Features/Gamification/Tabs.d.ts +1 -1
  53. package/lib/app/masters/Features/Gamification/UserSummary.d.ts +1 -1
  54. package/lib/app/masters/Features/Gamification/index.d.ts +1 -1
  55. package/lib/app/masters/Features/index.d.ts +2 -2
  56. package/lib/app/masters/Notifications/Onboarding/Notification/index.d.ts +2 -2
  57. package/lib/app/masters/Notifications/Onboarding/index.d.ts +2 -2
  58. package/lib/app/masters/Notifications/Onboarding/index.js +42 -39
  59. package/lib/app/masters/Notifications/index.d.ts +1 -1
  60. package/lib/app/masters/Points/index.d.ts +1 -1
  61. package/lib/app/masters/masters.d.ts +2 -1
  62. package/lib/app/masters/masters.js +34 -32
  63. package/lib/app/masters/provider.d.ts +4 -0
  64. package/lib/app/masters/provider.js +23 -0
  65. package/lib/app/masters/story/components.js +48 -52
  66. package/lib/app/masters/story/index.js +16 -15
  67. package/lib/app/masters/useMastersApp.d.ts +1 -1
  68. package/lib/app/masters/useMastersContext.d.ts +1 -1
  69. package/lib/app/tgl/index.d.ts +1 -0
  70. package/lib/app/tgl/index.js +19 -20
  71. package/lib/app/tgl/video.d.ts +0 -1
  72. package/lib/app/tgl/video.js +40 -42
  73. package/lib/app/useSdkFeature.d.ts +3 -3
  74. package/lib/app/webos/Advertisement/AdvertisementUI.d.ts +1 -1
  75. package/lib/app/webos/Advertisement/index.d.ts +1 -1
  76. package/lib/app/webos/ExposedPauseAd/PauseAd.d.ts +1 -1
  77. package/lib/app/webos/ExposedPauseAd/PauseAd.js +68 -68
  78. package/lib/app/webos/Question/index.d.ts +1 -1
  79. package/lib/app/webos/index.d.ts +1 -1
  80. package/lib/app/webos/story.js +26 -26
  81. package/lib/app/webos/ui/Sidebar/PromoAction.d.ts +1 -1
  82. package/lib/app/webos/ui/Sidebar/index.d.ts +2 -2
  83. package/lib/app/webos/ui/Sidebar/styles.js +82 -888
  84. package/lib/app/webos/ui/insight/index.d.ts +1 -1
  85. package/lib/assets/style.css +1 -1
  86. package/lib/core/app.d.ts +7 -0
  87. package/lib/core/app.js +14 -0
  88. package/lib/core/event.d.ts +6 -0
  89. package/lib/core/event.js +5 -0
  90. package/lib/core/hooks.d.ts +16 -0
  91. package/lib/core/hooks.js +8 -0
  92. package/lib/core/provider.d.ts +49 -0
  93. package/lib/core/provider.js +9 -0
  94. package/lib/hooks/analytics.d.ts +1 -1
  95. package/lib/hooks-B0Qttldg.js +99 -0
  96. package/lib/index.d.ts +0 -1
  97. package/lib/index.js +2 -4
  98. package/lib/ui/advertisement/banner/index.d.ts +3 -3
  99. package/lib/ui/advertisement/index.d.ts +1 -1
  100. package/lib/ui/advertisement/mock.d.ts +1 -1
  101. package/lib/ui/advertisement/notification/index.d.ts +1 -1
  102. package/lib/ui/advertisement/notification/lower-third/index.d.ts +1 -1
  103. package/lib/ui/advertisement/notification/lower-third/index.js +34 -30
  104. package/lib/ui/advertisement/overlay/externalAd/vast-player/useGAMPlayer.js +100 -33212
  105. package/lib/ui/advertisement/overlay/externalAd/vast-player/useGAMStatic.js +13 -13
  106. package/lib/ui/advertisement/overlay/externalAd/vast-player/useVastAds.d.ts +1 -1
  107. package/lib/ui/advertisement/overlay/externalAd/vast-player/useVastAds.js +63 -204
  108. package/lib/ui/advertisement/overlay/index.d.ts +2 -2
  109. package/lib/ui/close-btn/index.d.ts +1 -1
  110. package/lib/ui/gamification/constants.d.ts +1 -1
  111. package/lib/ui/gamification/detail/header/index.d.ts +1 -1
  112. package/lib/ui/gamification/insight/index.d.ts +1 -1
  113. package/lib/ui/gamification/insight-list/index.d.ts +1 -1
  114. package/lib/ui/gamification/leaderboard/list-item/index.d.ts +1 -1
  115. package/lib/ui/gamification/leaderboard/static.d.ts +1 -1
  116. package/lib/ui/gamification/onboarding/index.d.ts +2 -2
  117. package/lib/ui/gamification/question/inapp/notification/AdNotification/NotificationMedia/index.d.ts +2 -2
  118. package/lib/ui/gamification/question/inapp/notification/AdNotification/NotificationMedia/index.js +1 -1
  119. package/lib/ui/gamification/question/inapp/notification/AdNotification/index.d.ts +1 -1
  120. package/lib/ui/gamification/question/inapp/notification/NotificationMedia/index.d.ts +1 -1
  121. package/lib/ui/gamification/question/inapp/notification/index.d.ts +1 -1
  122. package/lib/ui/gamification/question/inapp/onboarding/index.d.ts +1 -1
  123. package/lib/ui/gamification/question/inapp/prediction-result/frames/index.d.ts +1 -1
  124. package/lib/ui/gamification/question/inapp/prediction-result/index.d.ts +1 -1
  125. package/lib/ui/gamification/question/inapp/prediction-result-ad/frames/index.d.ts +1 -1
  126. package/lib/ui/gamification/question/inapp/prediction-result-ad/index.d.ts +1 -1
  127. package/lib/ui/gamification/question/index.d.ts +1 -1
  128. package/lib/ui/gamification/question/list/index.d.ts +1 -1
  129. package/lib/ui/gamification/question/notification/index.d.ts +1 -1
  130. package/lib/ui/gamification/question/notification/insight/index.d.ts +2 -2
  131. package/lib/ui/gamification/question/notification/prediction-result/index.d.ts +1 -1
  132. package/lib/ui/gamification/question/notification/tweet/index.d.ts +1 -1
  133. package/lib/ui/gamification/vote/feedback/index.d.ts +1 -1
  134. package/lib/ui/gamification/vote/index.d.ts +1 -1
  135. package/lib/ui/gamification/vote/vote-option/index.d.ts +1 -1
  136. package/lib/ui/gamification/vote/win-bar/index.d.ts +1 -1
  137. package/lib/ui/icons/index.d.ts +198 -66
  138. package/lib/ui/navigation/button/index.d.ts +1 -1
  139. package/lib/ui/questions/insight/index.d.ts +1 -1
  140. package/lib/ui/questions/twitter/index.d.ts +1 -1
  141. package/lib/ui/video-player/index.js +26 -23
  142. package/lib/useStreamLayerApp.d.ts +23 -0
  143. package/lib/useStreamLayerApp.js +167 -0
  144. package/lib/utils/debug/components/bypassLogin.d.ts +1 -1
  145. package/lib/utils/debug/components/developer.d.ts +1 -1
  146. package/lib/utils/debug/components/eventInput.d.ts +1 -1
  147. package/lib/utils/debug/index.js +8 -8
  148. package/lib/utils/debug/storage.d.ts +1 -1
  149. package/lib/utils/storage.d.ts +1 -1
  150. package/package.json +42 -35
  151. package/lib/index-l-eyvmpL.js +0 -3758
  152. package/lib/utils/createDemo.d.ts +0 -12
  153. package/lib/utils/createDemo.js +0 -49
  154. package/lib/vast-client.min-B0NUra1B.js +0 -1060
@@ -1,6 +1,6 @@
1
- import { jsx as u } from "react/jsx-runtime";
2
- import { useMemo as y, useState as n, useEffect as o } from "react";
3
- import { useStreamLayer as m } from "@streamlayer/react";
1
+ import { jsx as c } from "react/jsx-runtime";
2
+ import { u as y } from "../../hooks-B0Qttldg.js";
3
+ import { useMemo as m, useState as n, useEffect as o } from "react";
4
4
  import { Developer as k } from "./components/developer.js";
5
5
  import { DeveloperStorage as a } from "./storage.js";
6
6
  const E = {
@@ -21,9 +21,9 @@ const E = {
21
21
  }
22
22
  }
23
23
  }, I = (e = {}) => {
24
- const t = y(() => new a(), []), [s, d] = n(
24
+ const t = m(() => new a(), []), [s, d] = n(
25
25
  e.production !== void 0 ? e.production ? "production" : "development" : t.getEnv()
26
- ), [v, i] = n(e.sdkKey || t.getSdkKey() || "set-sdk-key"), [c, r] = n(e.eventId || t.getEvent() || "");
26
+ ), [v, i] = n(e.sdkKey || t.getSdkKey() || "set-sdk-key"), [u, r] = n(e.eventId || t.getEvent() || "");
27
27
  return o(() => {
28
28
  e.sdkKey && (i(e.sdkKey), t.setSdkKey(e.sdkKey));
29
29
  }, [e.sdkKey, t]), o(() => {
@@ -35,12 +35,12 @@ const E = {
35
35
  setEnv: d,
36
36
  sdkKey: v,
37
37
  setSdkKey: i,
38
- event: c,
38
+ event: u,
39
39
  setEvent: r
40
40
  };
41
41
  }, b = (e) => {
42
- const t = m();
43
- return /* @__PURE__ */ u(k, { sdk: t, ...e });
42
+ const t = y();
43
+ return /* @__PURE__ */ c(k, { sdk: t, ...e });
44
44
  };
45
45
  export {
46
46
  b as StreamLayerDebug,
@@ -1,4 +1,4 @@
1
- import { Storage } from '@streamlayer/sdk-web-storage';
1
+ import { Storage } from '../../packages/sdk-web-storage/src/index.ts';
2
2
  export declare class DeveloperStorage extends Storage {
3
3
  constructor();
4
4
  setSchema: (value: string) => void;
@@ -1,4 +1,4 @@
1
- import { Storage } from '@streamlayer/sdk-web-storage';
1
+ import { Storage } from '../packages/sdk-web-storage/src/index.ts';
2
2
  export declare class DeveloperStorage extends Storage {
3
3
  constructor();
4
4
  setSchema: (value: string) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamlayer/react-ui",
3
- "version": "1.32.4",
3
+ "version": "1.33.1",
4
4
  "type": "module",
5
5
  "main": "./src/index.js",
6
6
  "typings": "./lib/index.d.ts",
@@ -60,6 +60,16 @@
60
60
  "default": "./lib/app/app/InApp/index.js",
61
61
  "types": "./lib/app/app/InApp/index.d.ts"
62
62
  },
63
+ "./core/*": {
64
+ "import": "./lib/core/*.js",
65
+ "default": "./lib/core/*.js",
66
+ "types": "./lib/core/*.d.ts"
67
+ },
68
+ "./useStreamLayerApp": {
69
+ "import": "./lib/useStreamLayerApp.js",
70
+ "default": "./lib/useStreamLayerApp.js",
71
+ "types": "./lib/useStreamLayerApp.d.ts"
72
+ },
63
73
  "./*": {
64
74
  "import": "./lib/*/index.js",
65
75
  "default": "./lib/*/index.js",
@@ -77,27 +87,42 @@
77
87
  "peerDependencies": {
78
88
  "@lottiefiles/react-lottie-player": "^3.5.4",
79
89
  "@streamlayer/sl-eslib": "^5.225.0",
80
- "@types/lodash.throttle": "^4.1.9",
81
90
  "lodash.throttle": "^4.1.1",
82
91
  "react-infinite-scroller": "^1.2.6",
83
92
  "react-virtualized-auto-sizer": "^1.0.24",
84
93
  "react-window": "^1.8.10",
85
94
  "@noriginmedia/norigin-spatial-navigation": "^2.3.0",
86
95
  "react-window-infinite-loader": "^1.0.9",
96
+ "@dailymotion/vast-client": "^6.4.2",
97
+ "react-qr-code": "^2.0.16",
98
+ "swiper": "^11.2.6",
99
+ "video.js": "^8.21.0",
100
+ "videojs-contrib-ads": "^7.5.2",
101
+ "vmap": "^3.2.0",
102
+ "@connectrpc/connect": "^2.0.0",
103
+ "@connectrpc/connect-web": "^2.0.0",
104
+ "vpaid-html5-client": "^0.1.14",
105
+ "hls.js": "^1.6.13",
87
106
  "uuid": "^11.1.0",
88
- "@streamlayer/feature-gamification": "^1.23.4",
89
- "@streamlayer/react-polyfills": "^0.1.49",
90
- "@streamlayer/sdk-web-analytics": "^1.13.4",
91
- "@streamlayer/sdk-web": "^1.16.4",
92
- "@streamlayer/sdk-web-anonymous-auth": "^1.3.4",
93
- "@streamlayer/sdk-web-api": "^1.14.4",
94
- "@streamlayer/sdk-web-core": "^1.17.4",
95
- "@streamlayer/sdk-web-features": "^1.0.89",
96
- "@streamlayer/sdk-web-interfaces": "^1.8.4",
97
- "@streamlayer/sdk-web-logger": "^1.0.89",
98
- "@streamlayer/sdk-web-notifications": "^1.3.51",
99
- "@streamlayer/sdk-web-storage": "^1.0.89",
100
- "@streamlayer/sdk-web-types": "^1.16.4"
107
+ "react": "18.3.1",
108
+ "react-dom": "18.3.1",
109
+ "react-auth-code-input": "^3.2.1",
110
+ "react-countdown-circle-timer": "^3.2.1",
111
+ "react-countup": "^6.5.3",
112
+ "react-phone-number-input": "^3.4.8",
113
+ "@streamlayer/feature-gamification": "^1.23.6",
114
+ "@streamlayer/react-polyfills": "^0.1.51",
115
+ "@streamlayer/sdk-web": "^1.16.6",
116
+ "@streamlayer/sdk-web-analytics": "^1.14.1",
117
+ "@streamlayer/sdk-web-anonymous-auth": "^1.3.6",
118
+ "@streamlayer/sdk-web-api": "^1.14.6",
119
+ "@streamlayer/sdk-web-core": "^1.18.1",
120
+ "@streamlayer/sdk-web-features": "^1.0.91",
121
+ "@streamlayer/sdk-web-interfaces": "^1.8.6",
122
+ "@streamlayer/sdk-web-logger": "^1.0.91",
123
+ "@streamlayer/sdk-web-notifications": "^1.3.53",
124
+ "@streamlayer/sdk-web-storage": "^1.0.91",
125
+ "@streamlayer/sdk-web-types": "^1.16.6"
101
126
  },
102
127
  "nx": {
103
128
  "implicitDependencies": [
@@ -105,8 +130,7 @@
105
130
  ]
106
131
  },
107
132
  "devDependencies": {
108
- "@connectrpc/connect": "^2.0.0",
109
- "@connectrpc/connect-web": "^2.0.0",
133
+ "@types/lodash.throttle": "^4.1.9",
110
134
  "@esbuild-plugins/node-globals-polyfill": "^0.2.3",
111
135
  "@esbuild-plugins/node-modules-polyfill": "^0.2.2",
112
136
  "@linaria/babel-preset": "^5.0.4",
@@ -124,13 +148,6 @@
124
148
  "@wyw-in-js/vite": "^0.5.3",
125
149
  "esbuild-plugin-babel": "^0.2.3",
126
150
  "glob": "^11.0.0",
127
- "hls.js": "^1.6.13",
128
- "react": "18.3.1",
129
- "react-dom": "18.3.1",
130
- "react-auth-code-input": "^3.2.1",
131
- "react-countdown-circle-timer": "^3.2.1",
132
- "react-countup": "^6.5.3",
133
- "react-phone-number-input": "^3.4.8",
134
151
  "rollup-plugin-node-polyfills": "^0.2.1",
135
152
  "screenfull": "^6.0.2",
136
153
  "tslib": "^2.7.0",
@@ -138,18 +155,8 @@
138
155
  "vite-plugin-node-polyfills": "^0.22.0",
139
156
  "vite-plugin-svgr": "^4.2.0",
140
157
  "vite-svg-loader": "^5.1.0",
141
- "vite-tsconfig-paths": "^5.0.1",
142
- "@streamlayer/react": "^1.21.4"
143
- },
144
- "dependencies": {
145
- "@dailymotion/vast-client": "^6.4.2",
146
158
  "@types/vast-client": "^3.0.4",
147
159
  "@types/vmap": "^2.2.4",
148
- "react-qr-code": "^2.0.16",
149
- "swiper": "^11.2.6",
150
- "video.js": "^8.21.0",
151
- "videojs-contrib-ads": "^7.5.2",
152
- "vmap": "^3.2.0",
153
- "vpaid-html5-client": "^0.1.14"
160
+ "vite-tsconfig-paths": "^5.0.1"
154
161
  }
155
162
  }