react-native-firework-sdk 2.16.2 → 2.17.0-beta.10

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 (509) hide show
  1. package/android/build.gradle +43 -75
  2. package/android/gradle.properties +5 -5
  3. package/android/settings.gradle +1 -1
  4. package/android/src/main/AndroidManifestNew.xml +41 -0
  5. package/android/src/main/java/com/fireworksdk/bridge/reactnative/manager/FWVideoFeedManager.kt +3 -3
  6. package/ios/FireworkReactNativeSDK.xcodeproj/project.pbxproj +295 -0
  7. package/ios/react_native_firework_sdk.h +0 -12
  8. package/lib/commonjs/FWNavigator.js +13 -34
  9. package/lib/commonjs/FWNavigator.js.map +1 -1
  10. package/lib/commonjs/FireworkSDK.js +44 -159
  11. package/lib/commonjs/FireworkSDK.js.map +1 -1
  12. package/lib/commonjs/LiveStream.js +8 -27
  13. package/lib/commonjs/LiveStream.js.map +1 -1
  14. package/lib/commonjs/VideoShopping.js +21 -91
  15. package/lib/commonjs/VideoShopping.js.map +1 -1
  16. package/lib/commonjs/components/FWStoryBlock.js +2 -6
  17. package/lib/commonjs/components/FWStoryBlock.js.map +1 -1
  18. package/lib/commonjs/components/FWVideoFeed.js +2 -6
  19. package/lib/commonjs/components/FWVideoFeed.js.map +1 -1
  20. package/lib/commonjs/components/StoryBlock.js +60 -162
  21. package/lib/commonjs/components/StoryBlock.js.map +1 -1
  22. package/lib/commonjs/components/VideoFeed.js +214 -336
  23. package/lib/commonjs/components/VideoFeed.js.map +1 -1
  24. package/lib/commonjs/constants/FWErrorMessage.js +1 -4
  25. package/lib/commonjs/constants/FWErrorMessage.js.map +1 -1
  26. package/lib/commonjs/index.js +14 -29
  27. package/lib/commonjs/index.js.map +1 -1
  28. package/lib/commonjs/models/AdBadgeConfiguration.js.map +1 -1
  29. package/lib/commonjs/models/AdConfiguration.js.map +1 -1
  30. package/lib/commonjs/models/AndroidFontInfo.js.map +1 -1
  31. package/lib/commonjs/models/ButtonInfo.js.map +1 -1
  32. package/lib/commonjs/models/CountdownTimerConfiguration.js.map +1 -1
  33. package/lib/commonjs/models/DataTrackingLevel.js.map +1 -1
  34. package/lib/commonjs/models/FWComponentType.js +3 -5
  35. package/lib/commonjs/models/FWComponentType.js.map +1 -1
  36. package/lib/commonjs/models/FWError.js.map +1 -1
  37. package/lib/commonjs/models/FWEventName.js +3 -5
  38. package/lib/commonjs/models/FWEventName.js.map +1 -1
  39. package/lib/commonjs/models/FWEvents.js.map +1 -1
  40. package/lib/commonjs/models/FWNativeErrorAction.js +3 -5
  41. package/lib/commonjs/models/FWNativeErrorAction.js.map +1 -1
  42. package/lib/commonjs/models/FeedItemDetails.js.map +1 -1
  43. package/lib/commonjs/models/GradientDrawable.js.map +1 -1
  44. package/lib/commonjs/models/IOSFontInfo.js.map +1 -1
  45. package/lib/commonjs/models/LiveStreamChatEventName.js +7 -7
  46. package/lib/commonjs/models/LiveStreamChatEventName.js.map +1 -1
  47. package/lib/commonjs/models/LiveStreamEventDetails.js.map +1 -1
  48. package/lib/commonjs/models/LiveStreamEventName.js +13 -7
  49. package/lib/commonjs/models/LiveStreamEventName.js.map +1 -1
  50. package/lib/commonjs/models/LiveStreamMessageDetails.js.map +1 -1
  51. package/lib/commonjs/models/LivestreamPlayerDesignVersion.js +4 -7
  52. package/lib/commonjs/models/LivestreamPlayerDesignVersion.js.map +1 -1
  53. package/lib/commonjs/models/MarkInitCalledOptions.js.map +1 -1
  54. package/lib/commonjs/models/OpenVideoPlayerConfiguration.js.map +1 -1
  55. package/lib/commonjs/models/Product.js.map +1 -1
  56. package/lib/commonjs/models/ProductInfoViewConfiguration.js.map +1 -1
  57. package/lib/commonjs/models/ProductUnit.js.map +1 -1
  58. package/lib/commonjs/models/PushRNContainerParams.js.map +1 -1
  59. package/lib/commonjs/models/ReplayBadgeConfiguration.js.map +1 -1
  60. package/lib/commonjs/models/SDKInitOptions.js.map +1 -1
  61. package/lib/commonjs/models/ShoppingCTAResult.js.map +1 -1
  62. package/lib/commonjs/models/StoryBlockConfiguration.js.map +1 -1
  63. package/lib/commonjs/models/StoryBlockNativeConfiguration.js.map +1 -1
  64. package/lib/commonjs/models/StoryBlockSource.js.map +1 -1
  65. package/lib/commonjs/models/TrackPurchaseParameters.js.map +1 -1
  66. package/lib/commonjs/models/VideoFeedConfiguration.js.map +1 -1
  67. package/lib/commonjs/models/VideoFeedSource.js.map +1 -1
  68. package/lib/commonjs/models/VideoPlaybackDetails.js.map +1 -1
  69. package/lib/commonjs/models/VideoPlaybackEventName.js +40 -7
  70. package/lib/commonjs/models/VideoPlaybackEventName.js.map +1 -1
  71. package/lib/commonjs/models/VideoPlayerButtonConfiguration.js.map +1 -1
  72. package/lib/commonjs/models/VideoPlayerCTADelay.js.map +1 -1
  73. package/lib/commonjs/models/VideoPlayerCTAStyle.js.map +1 -1
  74. package/lib/commonjs/models/VideoPlayerCTAWidth.js.map +1 -1
  75. package/lib/commonjs/models/VideoPlayerCompleteAction.js.map +1 -1
  76. package/lib/commonjs/models/VideoPlayerConfiguration.js.map +1 -1
  77. package/lib/commonjs/models/VideoPlayerLivestreamCountdownTimerTheme.js.map +1 -1
  78. package/lib/commonjs/models/VideoPlayerLogoConfiguration.js.map +1 -1
  79. package/lib/commonjs/models/VideoPlayerNativeConfiguration.js.map +1 -1
  80. package/lib/commonjs/models/VideoPlayerStyle.js.map +1 -1
  81. package/lib/commonjs/modules/FWNavigatorModule.js +3 -9
  82. package/lib/commonjs/modules/FWNavigatorModule.js.map +1 -1
  83. package/lib/commonjs/modules/FireworkSDKModule.js +3 -9
  84. package/lib/commonjs/modules/FireworkSDKModule.js.map +1 -1
  85. package/lib/commonjs/modules/LiveStreamModule.js +3 -9
  86. package/lib/commonjs/modules/LiveStreamModule.js.map +1 -1
  87. package/lib/commonjs/modules/ShoppingModule.js +3 -9
  88. package/lib/commonjs/modules/ShoppingModule.js.map +1 -1
  89. package/lib/commonjs/package.json +1 -0
  90. package/lib/commonjs/utils/FWGlobalState.js +3 -21
  91. package/lib/commonjs/utils/FWGlobalState.js.map +1 -1
  92. package/lib/commonjs/utils/FWJsonUtil.js +1 -9
  93. package/lib/commonjs/utils/FWJsonUtil.js.map +1 -1
  94. package/lib/commonjs/utils/FWLoggerUtil.js +1 -9
  95. package/lib/commonjs/utils/FWLoggerUtil.js.map +1 -1
  96. package/lib/commonjs/utils/VideoFeedUtil.js +15 -28
  97. package/lib/commonjs/utils/VideoFeedUtil.js.map +1 -1
  98. package/lib/module/FWNavigator.js +13 -24
  99. package/lib/module/FWNavigator.js.map +1 -1
  100. package/lib/module/FireworkSDK.js +42 -127
  101. package/lib/module/FireworkSDK.js.map +1 -1
  102. package/lib/module/LiveStream.js +7 -18
  103. package/lib/module/LiveStream.js.map +1 -1
  104. package/lib/module/VideoShopping.js +19 -68
  105. package/lib/module/VideoShopping.js.map +1 -1
  106. package/lib/module/components/FWStoryBlock.js +3 -1
  107. package/lib/module/components/FWStoryBlock.js.map +1 -1
  108. package/lib/module/components/FWVideoFeed.js +3 -1
  109. package/lib/module/components/FWVideoFeed.js.map +1 -1
  110. package/lib/module/components/StoryBlock.js +59 -112
  111. package/lib/module/components/StoryBlock.js.map +1 -1
  112. package/lib/module/components/VideoFeed.js +214 -300
  113. package/lib/module/components/VideoFeed.js.map +1 -1
  114. package/lib/module/constants/FWErrorMessage.js +2 -0
  115. package/lib/module/constants/FWErrorMessage.js.map +1 -1
  116. package/lib/module/index.js +14 -12
  117. package/lib/module/index.js.map +1 -1
  118. package/lib/module/models/AdBadgeConfiguration.js +1 -1
  119. package/lib/module/models/AdBadgeConfiguration.js.map +1 -1
  120. package/lib/module/models/AdConfiguration.js +1 -1
  121. package/lib/module/models/AdConfiguration.js.map +1 -1
  122. package/lib/module/models/AndroidFontInfo.js +1 -1
  123. package/lib/module/models/AndroidFontInfo.js.map +1 -1
  124. package/lib/module/models/ButtonInfo.js +1 -1
  125. package/lib/module/models/ButtonInfo.js.map +1 -1
  126. package/lib/module/models/CountdownTimerConfiguration.js +1 -1
  127. package/lib/module/models/CountdownTimerConfiguration.js.map +1 -1
  128. package/lib/module/models/DataTrackingLevel.js +1 -1
  129. package/lib/module/models/DataTrackingLevel.js.map +1 -1
  130. package/lib/module/models/FWComponentType.js +4 -3
  131. package/lib/module/models/FWComponentType.js.map +1 -1
  132. package/lib/module/models/FWError.js +1 -1
  133. package/lib/module/models/FWError.js.map +1 -1
  134. package/lib/module/models/FWEventName.js +4 -3
  135. package/lib/module/models/FWEventName.js.map +1 -1
  136. package/lib/module/models/FWEvents.js +2 -0
  137. package/lib/module/models/FWEvents.js.map +1 -1
  138. package/lib/module/models/FWNativeErrorAction.js +4 -3
  139. package/lib/module/models/FWNativeErrorAction.js.map +1 -1
  140. package/lib/module/models/FeedItemDetails.js +1 -1
  141. package/lib/module/models/FeedItemDetails.js.map +1 -1
  142. package/lib/module/models/GradientDrawable.js +1 -1
  143. package/lib/module/models/GradientDrawable.js.map +1 -1
  144. package/lib/module/models/IOSFontInfo.js +1 -1
  145. package/lib/module/models/IOSFontInfo.js.map +1 -1
  146. package/lib/module/models/LiveStreamChatEventName.js +7 -4
  147. package/lib/module/models/LiveStreamChatEventName.js.map +1 -1
  148. package/lib/module/models/LiveStreamEventDetails.js +1 -1
  149. package/lib/module/models/LiveStreamEventDetails.js.map +1 -1
  150. package/lib/module/models/LiveStreamEventName.js +13 -4
  151. package/lib/module/models/LiveStreamEventName.js.map +1 -1
  152. package/lib/module/models/LiveStreamMessageDetails.js +1 -1
  153. package/lib/module/models/LiveStreamMessageDetails.js.map +1 -1
  154. package/lib/module/models/LivestreamPlayerDesignVersion.js +4 -4
  155. package/lib/module/models/LivestreamPlayerDesignVersion.js.map +1 -1
  156. package/lib/module/models/MarkInitCalledOptions.js +1 -1
  157. package/lib/module/models/MarkInitCalledOptions.js.map +1 -1
  158. package/lib/module/models/OpenVideoPlayerConfiguration.js +1 -1
  159. package/lib/module/models/OpenVideoPlayerConfiguration.js.map +1 -1
  160. package/lib/module/models/Product.js +1 -1
  161. package/lib/module/models/Product.js.map +1 -1
  162. package/lib/module/models/ProductInfoViewConfiguration.js +1 -1
  163. package/lib/module/models/ProductInfoViewConfiguration.js.map +1 -1
  164. package/lib/module/models/ProductUnit.js +1 -1
  165. package/lib/module/models/ProductUnit.js.map +1 -1
  166. package/lib/module/models/PushRNContainerParams.js +1 -1
  167. package/lib/module/models/PushRNContainerParams.js.map +1 -1
  168. package/lib/module/models/ReplayBadgeConfiguration.js +1 -1
  169. package/lib/module/models/ReplayBadgeConfiguration.js.map +1 -1
  170. package/lib/module/models/SDKInitOptions.js +1 -1
  171. package/lib/module/models/SDKInitOptions.js.map +1 -1
  172. package/lib/module/models/ShoppingCTAResult.js +1 -1
  173. package/lib/module/models/ShoppingCTAResult.js.map +1 -1
  174. package/lib/module/models/StoryBlockConfiguration.js +2 -0
  175. package/lib/module/models/StoryBlockConfiguration.js.map +1 -1
  176. package/lib/module/models/StoryBlockNativeConfiguration.js +1 -1
  177. package/lib/module/models/StoryBlockNativeConfiguration.js.map +1 -1
  178. package/lib/module/models/StoryBlockSource.js +1 -1
  179. package/lib/module/models/StoryBlockSource.js.map +1 -1
  180. package/lib/module/models/TrackPurchaseParameters.js +1 -1
  181. package/lib/module/models/TrackPurchaseParameters.js.map +1 -1
  182. package/lib/module/models/VideoFeedConfiguration.js +1 -1
  183. package/lib/module/models/VideoFeedConfiguration.js.map +1 -1
  184. package/lib/module/models/VideoFeedSource.js +1 -1
  185. package/lib/module/models/VideoFeedSource.js.map +1 -1
  186. package/lib/module/models/VideoPlaybackDetails.js +1 -1
  187. package/lib/module/models/VideoPlaybackDetails.js.map +1 -1
  188. package/lib/module/models/VideoPlaybackEventName.js +40 -4
  189. package/lib/module/models/VideoPlaybackEventName.js.map +1 -1
  190. package/lib/module/models/VideoPlayerButtonConfiguration.js +1 -1
  191. package/lib/module/models/VideoPlayerButtonConfiguration.js.map +1 -1
  192. package/lib/module/models/VideoPlayerCTADelay.js +1 -1
  193. package/lib/module/models/VideoPlayerCTADelay.js.map +1 -1
  194. package/lib/module/models/VideoPlayerCTAStyle.js +2 -0
  195. package/lib/module/models/VideoPlayerCTAStyle.js.map +1 -1
  196. package/lib/module/models/VideoPlayerCTAWidth.js +1 -1
  197. package/lib/module/models/VideoPlayerCTAWidth.js.map +1 -1
  198. package/lib/module/models/VideoPlayerCompleteAction.js +1 -1
  199. package/lib/module/models/VideoPlayerCompleteAction.js.map +1 -1
  200. package/lib/module/models/VideoPlayerConfiguration.js +1 -1
  201. package/lib/module/models/VideoPlayerConfiguration.js.map +1 -1
  202. package/lib/module/models/VideoPlayerLivestreamCountdownTimerTheme.js +1 -1
  203. package/lib/module/models/VideoPlayerLivestreamCountdownTimerTheme.js.map +1 -1
  204. package/lib/module/models/VideoPlayerLogoConfiguration.js +1 -1
  205. package/lib/module/models/VideoPlayerLogoConfiguration.js.map +1 -1
  206. package/lib/module/models/VideoPlayerNativeConfiguration.js +1 -1
  207. package/lib/module/models/VideoPlayerNativeConfiguration.js.map +1 -1
  208. package/lib/module/models/VideoPlayerStyle.js +1 -1
  209. package/lib/module/models/VideoPlayerStyle.js.map +1 -1
  210. package/lib/module/modules/FWNavigatorModule.js +3 -2
  211. package/lib/module/modules/FWNavigatorModule.js.map +1 -1
  212. package/lib/module/modules/FireworkSDKModule.js +3 -2
  213. package/lib/module/modules/FireworkSDKModule.js.map +1 -1
  214. package/lib/module/modules/LiveStreamModule.js +3 -2
  215. package/lib/module/modules/LiveStreamModule.js.map +1 -1
  216. package/lib/module/modules/ShoppingModule.js +3 -2
  217. package/lib/module/modules/ShoppingModule.js.map +1 -1
  218. package/lib/module/package.json +1 -0
  219. package/lib/module/utils/FWGlobalState.js +3 -17
  220. package/lib/module/utils/FWGlobalState.js.map +1 -1
  221. package/lib/module/utils/FWJsonUtil.js +2 -6
  222. package/lib/module/utils/FWJsonUtil.js.map +1 -1
  223. package/lib/module/utils/FWLoggerUtil.js +2 -6
  224. package/lib/module/utils/FWLoggerUtil.js.map +1 -1
  225. package/lib/module/utils/VideoFeedUtil.js +16 -25
  226. package/lib/module/utils/VideoFeedUtil.js.map +1 -1
  227. package/lib/typescript/commonjs/package.json +1 -0
  228. package/lib/typescript/{FWNavigator.d.ts → commonjs/src/FWNavigator.d.ts} +3 -0
  229. package/lib/typescript/commonjs/src/FWNavigator.d.ts.map +1 -0
  230. package/lib/typescript/{FireworkSDK.d.ts → commonjs/src/FireworkSDK.d.ts} +1 -0
  231. package/lib/typescript/commonjs/src/FireworkSDK.d.ts.map +1 -0
  232. package/lib/typescript/{LiveStream.d.ts → commonjs/src/LiveStream.d.ts} +1 -0
  233. package/lib/typescript/commonjs/src/LiveStream.d.ts.map +1 -0
  234. package/lib/typescript/{VideoShopping.d.ts → commonjs/src/VideoShopping.d.ts} +1 -0
  235. package/lib/typescript/commonjs/src/VideoShopping.d.ts.map +1 -0
  236. package/lib/typescript/{components → commonjs/src/components}/FWStoryBlock.d.ts +1 -0
  237. package/lib/typescript/commonjs/src/components/FWStoryBlock.d.ts.map +1 -0
  238. package/lib/typescript/{components → commonjs/src/components}/FWVideoFeed.d.ts +1 -0
  239. package/lib/typescript/commonjs/src/components/FWVideoFeed.d.ts.map +1 -0
  240. package/lib/typescript/{components → commonjs/src/components}/StoryBlock.d.ts +3 -3
  241. package/lib/typescript/commonjs/src/components/StoryBlock.d.ts.map +1 -0
  242. package/lib/typescript/{components → commonjs/src/components}/VideoFeed.d.ts +3 -2
  243. package/lib/typescript/commonjs/src/components/VideoFeed.d.ts.map +1 -0
  244. package/lib/typescript/{constants → commonjs/src/constants}/FWErrorMessage.d.ts +1 -0
  245. package/lib/typescript/commonjs/src/constants/FWErrorMessage.d.ts.map +1 -0
  246. package/lib/typescript/{index.d.ts → commonjs/src/index.d.ts} +3 -1
  247. package/lib/typescript/commonjs/src/index.d.ts.map +1 -0
  248. package/lib/typescript/{models → commonjs/src/models}/AdBadgeConfiguration.d.ts +1 -0
  249. package/lib/typescript/commonjs/src/models/AdBadgeConfiguration.d.ts.map +1 -0
  250. package/lib/typescript/{models → commonjs/src/models}/AdConfiguration.d.ts +1 -0
  251. package/lib/typescript/commonjs/src/models/AdConfiguration.d.ts.map +1 -0
  252. package/lib/typescript/{models → commonjs/src/models}/AndroidFontInfo.d.ts +1 -0
  253. package/lib/typescript/commonjs/src/models/AndroidFontInfo.d.ts.map +1 -0
  254. package/lib/typescript/{models → commonjs/src/models}/ButtonInfo.d.ts +1 -0
  255. package/lib/typescript/commonjs/src/models/ButtonInfo.d.ts.map +1 -0
  256. package/lib/typescript/{models → commonjs/src/models}/CountdownTimerConfiguration.d.ts +1 -0
  257. package/lib/typescript/commonjs/src/models/CountdownTimerConfiguration.d.ts.map +1 -0
  258. package/lib/typescript/{models → commonjs/src/models}/DataTrackingLevel.d.ts +1 -0
  259. package/lib/typescript/commonjs/src/models/DataTrackingLevel.d.ts.map +1 -0
  260. package/lib/typescript/{models → commonjs/src/models}/FWComponentType.d.ts +1 -0
  261. package/lib/typescript/commonjs/src/models/FWComponentType.d.ts.map +1 -0
  262. package/lib/typescript/{models → commonjs/src/models}/FWError.d.ts +1 -0
  263. package/lib/typescript/commonjs/src/models/FWError.d.ts.map +1 -0
  264. package/lib/typescript/{models → commonjs/src/models}/FWEventName.d.ts +1 -0
  265. package/lib/typescript/commonjs/src/models/FWEventName.d.ts.map +1 -0
  266. package/lib/typescript/{models → commonjs/src/models}/FWEvents.d.ts +1 -0
  267. package/lib/typescript/commonjs/src/models/FWEvents.d.ts.map +1 -0
  268. package/lib/typescript/{models → commonjs/src/models}/FWNativeErrorAction.d.ts +1 -0
  269. package/lib/typescript/commonjs/src/models/FWNativeErrorAction.d.ts.map +1 -0
  270. package/lib/typescript/{models → commonjs/src/models}/FeedItemDetails.d.ts +1 -0
  271. package/lib/typescript/commonjs/src/models/FeedItemDetails.d.ts.map +1 -0
  272. package/lib/typescript/{models → commonjs/src/models}/GradientDrawable.d.ts +1 -0
  273. package/lib/typescript/commonjs/src/models/GradientDrawable.d.ts.map +1 -0
  274. package/lib/typescript/{models → commonjs/src/models}/IOSFontInfo.d.ts +1 -0
  275. package/lib/typescript/commonjs/src/models/IOSFontInfo.d.ts.map +1 -0
  276. package/lib/typescript/{models → commonjs/src/models}/LiveStreamChatEventName.d.ts +1 -0
  277. package/lib/typescript/commonjs/src/models/LiveStreamChatEventName.d.ts.map +1 -0
  278. package/lib/typescript/{models → commonjs/src/models}/LiveStreamEventDetails.d.ts +1 -0
  279. package/lib/typescript/commonjs/src/models/LiveStreamEventDetails.d.ts.map +1 -0
  280. package/lib/typescript/{models → commonjs/src/models}/LiveStreamEventName.d.ts +1 -0
  281. package/lib/typescript/commonjs/src/models/LiveStreamEventName.d.ts.map +1 -0
  282. package/lib/typescript/{models → commonjs/src/models}/LiveStreamMessageDetails.d.ts +1 -0
  283. package/lib/typescript/commonjs/src/models/LiveStreamMessageDetails.d.ts.map +1 -0
  284. package/lib/typescript/{models → commonjs/src/models}/LivestreamPlayerDesignVersion.d.ts +1 -0
  285. package/lib/typescript/commonjs/src/models/LivestreamPlayerDesignVersion.d.ts.map +1 -0
  286. package/lib/typescript/{models → commonjs/src/models}/MarkInitCalledOptions.d.ts +1 -0
  287. package/lib/typescript/commonjs/src/models/MarkInitCalledOptions.d.ts.map +1 -0
  288. package/lib/typescript/{models → commonjs/src/models}/OpenVideoPlayerConfiguration.d.ts +1 -0
  289. package/lib/typescript/commonjs/src/models/OpenVideoPlayerConfiguration.d.ts.map +1 -0
  290. package/lib/typescript/{models → commonjs/src/models}/Product.d.ts +1 -0
  291. package/lib/typescript/commonjs/src/models/Product.d.ts.map +1 -0
  292. package/lib/typescript/{models → commonjs/src/models}/ProductInfoViewConfiguration.d.ts +1 -0
  293. package/lib/typescript/commonjs/src/models/ProductInfoViewConfiguration.d.ts.map +1 -0
  294. package/lib/typescript/{models → commonjs/src/models}/ProductUnit.d.ts +1 -0
  295. package/lib/typescript/commonjs/src/models/ProductUnit.d.ts.map +1 -0
  296. package/lib/typescript/{models → commonjs/src/models}/PushRNContainerParams.d.ts +1 -0
  297. package/lib/typescript/commonjs/src/models/PushRNContainerParams.d.ts.map +1 -0
  298. package/lib/typescript/{models → commonjs/src/models}/ReplayBadgeConfiguration.d.ts +1 -0
  299. package/lib/typescript/commonjs/src/models/ReplayBadgeConfiguration.d.ts.map +1 -0
  300. package/lib/typescript/{models → commonjs/src/models}/SDKInitOptions.d.ts +1 -0
  301. package/lib/typescript/commonjs/src/models/SDKInitOptions.d.ts.map +1 -0
  302. package/lib/typescript/{models → commonjs/src/models}/ShoppingCTAResult.d.ts +1 -0
  303. package/lib/typescript/commonjs/src/models/ShoppingCTAResult.d.ts.map +1 -0
  304. package/lib/typescript/{models → commonjs/src/models}/StoryBlockConfiguration.d.ts +1 -0
  305. package/lib/typescript/commonjs/src/models/StoryBlockConfiguration.d.ts.map +1 -0
  306. package/lib/typescript/{models → commonjs/src/models}/StoryBlockNativeConfiguration.d.ts +1 -0
  307. package/lib/typescript/commonjs/src/models/StoryBlockNativeConfiguration.d.ts.map +1 -0
  308. package/lib/typescript/{models → commonjs/src/models}/StoryBlockSource.d.ts +1 -0
  309. package/lib/typescript/commonjs/src/models/StoryBlockSource.d.ts.map +1 -0
  310. package/lib/typescript/{models → commonjs/src/models}/TrackPurchaseParameters.d.ts +1 -0
  311. package/lib/typescript/commonjs/src/models/TrackPurchaseParameters.d.ts.map +1 -0
  312. package/lib/typescript/{models → commonjs/src/models}/VideoFeedConfiguration.d.ts +1 -0
  313. package/lib/typescript/commonjs/src/models/VideoFeedConfiguration.d.ts.map +1 -0
  314. package/lib/typescript/{models → commonjs/src/models}/VideoFeedSource.d.ts +1 -0
  315. package/lib/typescript/commonjs/src/models/VideoFeedSource.d.ts.map +1 -0
  316. package/lib/typescript/{models → commonjs/src/models}/VideoPlaybackDetails.d.ts +1 -0
  317. package/lib/typescript/commonjs/src/models/VideoPlaybackDetails.d.ts.map +1 -0
  318. package/lib/typescript/{models → commonjs/src/models}/VideoPlaybackEventName.d.ts +1 -0
  319. package/lib/typescript/commonjs/src/models/VideoPlaybackEventName.d.ts.map +1 -0
  320. package/lib/typescript/{models → commonjs/src/models}/VideoPlayerButtonConfiguration.d.ts +1 -0
  321. package/lib/typescript/commonjs/src/models/VideoPlayerButtonConfiguration.d.ts.map +1 -0
  322. package/lib/typescript/{models → commonjs/src/models}/VideoPlayerCTADelay.d.ts +1 -0
  323. package/lib/typescript/commonjs/src/models/VideoPlayerCTADelay.d.ts.map +1 -0
  324. package/lib/typescript/{models → commonjs/src/models}/VideoPlayerCTAStyle.d.ts +1 -0
  325. package/lib/typescript/commonjs/src/models/VideoPlayerCTAStyle.d.ts.map +1 -0
  326. package/lib/typescript/{models → commonjs/src/models}/VideoPlayerCTAWidth.d.ts +1 -0
  327. package/lib/typescript/commonjs/src/models/VideoPlayerCTAWidth.d.ts.map +1 -0
  328. package/lib/typescript/{models → commonjs/src/models}/VideoPlayerCompleteAction.d.ts +1 -0
  329. package/lib/typescript/commonjs/src/models/VideoPlayerCompleteAction.d.ts.map +1 -0
  330. package/lib/typescript/{models → commonjs/src/models}/VideoPlayerConfiguration.d.ts +1 -0
  331. package/lib/typescript/commonjs/src/models/VideoPlayerConfiguration.d.ts.map +1 -0
  332. package/lib/typescript/{models → commonjs/src/models}/VideoPlayerLivestreamCountdownTimerTheme.d.ts +1 -0
  333. package/lib/typescript/commonjs/src/models/VideoPlayerLivestreamCountdownTimerTheme.d.ts.map +1 -0
  334. package/lib/typescript/{models → commonjs/src/models}/VideoPlayerLogoConfiguration.d.ts +2 -1
  335. package/lib/typescript/commonjs/src/models/VideoPlayerLogoConfiguration.d.ts.map +1 -0
  336. package/lib/typescript/{models → commonjs/src/models}/VideoPlayerNativeConfiguration.d.ts +1 -0
  337. package/lib/typescript/commonjs/src/models/VideoPlayerNativeConfiguration.d.ts.map +1 -0
  338. package/lib/typescript/{models → commonjs/src/models}/VideoPlayerStyle.d.ts +1 -0
  339. package/lib/typescript/commonjs/src/models/VideoPlayerStyle.d.ts.map +1 -0
  340. package/lib/typescript/{modules → commonjs/src/modules}/FWNavigatorModule.d.ts +2 -1
  341. package/lib/typescript/commonjs/src/modules/FWNavigatorModule.d.ts.map +1 -0
  342. package/lib/typescript/{modules → commonjs/src/modules}/FireworkSDKModule.d.ts +4 -3
  343. package/lib/typescript/commonjs/src/modules/FireworkSDKModule.d.ts.map +1 -0
  344. package/lib/typescript/{modules → commonjs/src/modules}/LiveStreamModule.d.ts +2 -1
  345. package/lib/typescript/commonjs/src/modules/LiveStreamModule.d.ts.map +1 -0
  346. package/lib/typescript/{modules → commonjs/src/modules}/ShoppingModule.d.ts +2 -1
  347. package/lib/typescript/commonjs/src/modules/ShoppingModule.d.ts.map +1 -0
  348. package/lib/typescript/{utils → commonjs/src/utils}/FWGlobalState.d.ts +2 -1
  349. package/lib/typescript/commonjs/src/utils/FWGlobalState.d.ts.map +1 -0
  350. package/lib/typescript/{utils → commonjs/src/utils}/FWJsonUtil.d.ts +1 -0
  351. package/lib/typescript/commonjs/src/utils/FWJsonUtil.d.ts.map +1 -0
  352. package/lib/typescript/{utils → commonjs/src/utils}/FWLoggerUtil.d.ts +1 -0
  353. package/lib/typescript/commonjs/src/utils/FWLoggerUtil.d.ts.map +1 -0
  354. package/lib/typescript/{utils → commonjs/src/utils}/VideoFeedUtil.d.ts +1 -0
  355. package/lib/typescript/commonjs/src/utils/VideoFeedUtil.d.ts.map +1 -0
  356. package/lib/typescript/module/package.json +1 -0
  357. package/lib/typescript/module/src/FWNavigator.d.ts +59 -0
  358. package/lib/typescript/module/src/FWNavigator.d.ts.map +1 -0
  359. package/lib/typescript/module/src/FireworkSDK.d.ts +143 -0
  360. package/lib/typescript/module/src/FireworkSDK.d.ts.map +1 -0
  361. package/lib/typescript/module/src/LiveStream.d.ts +22 -0
  362. package/lib/typescript/module/src/LiveStream.d.ts.map +1 -0
  363. package/lib/typescript/module/src/VideoShopping.d.ts +94 -0
  364. package/lib/typescript/module/src/VideoShopping.d.ts.map +1 -0
  365. package/lib/typescript/module/src/components/FWStoryBlock.d.ts +3 -0
  366. package/lib/typescript/module/src/components/FWStoryBlock.d.ts.map +1 -0
  367. package/lib/typescript/module/src/components/FWVideoFeed.d.ts +3 -0
  368. package/lib/typescript/module/src/components/FWVideoFeed.d.ts.map +1 -0
  369. package/lib/typescript/module/src/components/StoryBlock.d.ts +116 -0
  370. package/lib/typescript/module/src/components/StoryBlock.d.ts.map +1 -0
  371. package/lib/typescript/module/src/components/VideoFeed.d.ts +145 -0
  372. package/lib/typescript/module/src/components/VideoFeed.d.ts.map +1 -0
  373. package/lib/typescript/module/src/constants/FWErrorMessage.d.ts +3 -0
  374. package/lib/typescript/module/src/constants/FWErrorMessage.d.ts.map +1 -0
  375. package/lib/typescript/module/src/index.d.ts +68 -0
  376. package/lib/typescript/module/src/index.d.ts.map +1 -0
  377. package/lib/typescript/module/src/models/AdBadgeConfiguration.d.ts +26 -0
  378. package/lib/typescript/module/src/models/AdBadgeConfiguration.d.ts.map +1 -0
  379. package/lib/typescript/module/src/models/AdConfiguration.d.ts +23 -0
  380. package/lib/typescript/module/src/models/AdConfiguration.d.ts.map +1 -0
  381. package/lib/typescript/module/src/models/AndroidFontInfo.d.ts +15 -0
  382. package/lib/typescript/module/src/models/AndroidFontInfo.d.ts.map +1 -0
  383. package/lib/typescript/module/src/models/ButtonInfo.d.ts +18 -0
  384. package/lib/typescript/module/src/models/ButtonInfo.d.ts.map +1 -0
  385. package/lib/typescript/module/src/models/CountdownTimerConfiguration.d.ts +13 -0
  386. package/lib/typescript/module/src/models/CountdownTimerConfiguration.d.ts.map +1 -0
  387. package/lib/typescript/module/src/models/DataTrackingLevel.d.ts +2 -0
  388. package/lib/typescript/module/src/models/DataTrackingLevel.d.ts.map +1 -0
  389. package/lib/typescript/module/src/models/FWComponentType.d.ts +5 -0
  390. package/lib/typescript/module/src/models/FWComponentType.d.ts.map +1 -0
  391. package/lib/typescript/module/src/models/FWError.d.ts +11 -0
  392. package/lib/typescript/module/src/models/FWError.d.ts.map +1 -0
  393. package/lib/typescript/module/src/models/FWEventName.d.ts +25 -0
  394. package/lib/typescript/module/src/models/FWEventName.d.ts.map +1 -0
  395. package/lib/typescript/module/src/models/FWEvents.d.ts +168 -0
  396. package/lib/typescript/module/src/models/FWEvents.d.ts.map +1 -0
  397. package/lib/typescript/module/src/models/FWNativeErrorAction.d.ts +5 -0
  398. package/lib/typescript/module/src/models/FWNativeErrorAction.d.ts.map +1 -0
  399. package/lib/typescript/module/src/models/FeedItemDetails.d.ts +59 -0
  400. package/lib/typescript/module/src/models/FeedItemDetails.d.ts.map +1 -0
  401. package/lib/typescript/module/src/models/GradientDrawable.d.ts +6 -0
  402. package/lib/typescript/module/src/models/GradientDrawable.d.ts.map +1 -0
  403. package/lib/typescript/module/src/models/IOSFontInfo.d.ts +22 -0
  404. package/lib/typescript/module/src/models/IOSFontInfo.d.ts.map +1 -0
  405. package/lib/typescript/module/src/models/LiveStreamChatEventName.d.ts +8 -0
  406. package/lib/typescript/module/src/models/LiveStreamChatEventName.d.ts.map +1 -0
  407. package/lib/typescript/module/src/models/LiveStreamEventDetails.d.ts +5 -0
  408. package/lib/typescript/module/src/models/LiveStreamEventDetails.d.ts.map +1 -0
  409. package/lib/typescript/module/src/models/LiveStreamEventName.d.ts +16 -0
  410. package/lib/typescript/module/src/models/LiveStreamEventName.d.ts.map +1 -0
  411. package/lib/typescript/module/src/models/LiveStreamMessageDetails.d.ts +15 -0
  412. package/lib/typescript/module/src/models/LiveStreamMessageDetails.d.ts.map +1 -0
  413. package/lib/typescript/module/src/models/LivestreamPlayerDesignVersion.d.ts +6 -0
  414. package/lib/typescript/module/src/models/LivestreamPlayerDesignVersion.d.ts.map +1 -0
  415. package/lib/typescript/module/src/models/MarkInitCalledOptions.d.ts +7 -0
  416. package/lib/typescript/module/src/models/MarkInitCalledOptions.d.ts.map +1 -0
  417. package/lib/typescript/module/src/models/OpenVideoPlayerConfiguration.d.ts +8 -0
  418. package/lib/typescript/module/src/models/OpenVideoPlayerConfiguration.d.ts.map +1 -0
  419. package/lib/typescript/module/src/models/Product.d.ts +24 -0
  420. package/lib/typescript/module/src/models/Product.d.ts.map +1 -0
  421. package/lib/typescript/module/src/models/ProductInfoViewConfiguration.d.ts +175 -0
  422. package/lib/typescript/module/src/models/ProductInfoViewConfiguration.d.ts.map +1 -0
  423. package/lib/typescript/module/src/models/ProductUnit.d.ts +39 -0
  424. package/lib/typescript/module/src/models/ProductUnit.d.ts.map +1 -0
  425. package/lib/typescript/module/src/models/PushRNContainerParams.d.ts +9 -0
  426. package/lib/typescript/module/src/models/PushRNContainerParams.d.ts.map +1 -0
  427. package/lib/typescript/module/src/models/ReplayBadgeConfiguration.d.ts +8 -0
  428. package/lib/typescript/module/src/models/ReplayBadgeConfiguration.d.ts.map +1 -0
  429. package/lib/typescript/module/src/models/SDKInitOptions.d.ts +12 -0
  430. package/lib/typescript/module/src/models/SDKInitOptions.d.ts.map +1 -0
  431. package/lib/typescript/module/src/models/ShoppingCTAResult.d.ts +12 -0
  432. package/lib/typescript/module/src/models/ShoppingCTAResult.d.ts.map +1 -0
  433. package/lib/typescript/module/src/models/StoryBlockConfiguration.d.ts +82 -0
  434. package/lib/typescript/module/src/models/StoryBlockConfiguration.d.ts.map +1 -0
  435. package/lib/typescript/module/src/models/StoryBlockNativeConfiguration.d.ts +8 -0
  436. package/lib/typescript/module/src/models/StoryBlockNativeConfiguration.d.ts.map +1 -0
  437. package/lib/typescript/module/src/models/StoryBlockSource.d.ts +2 -0
  438. package/lib/typescript/module/src/models/StoryBlockSource.d.ts.map +1 -0
  439. package/lib/typescript/module/src/models/TrackPurchaseParameters.d.ts +27 -0
  440. package/lib/typescript/module/src/models/TrackPurchaseParameters.d.ts.map +1 -0
  441. package/lib/typescript/module/src/models/VideoFeedConfiguration.d.ts +162 -0
  442. package/lib/typescript/module/src/models/VideoFeedConfiguration.d.ts.map +1 -0
  443. package/lib/typescript/module/src/models/VideoFeedSource.d.ts +2 -0
  444. package/lib/typescript/module/src/models/VideoFeedSource.d.ts.map +1 -0
  445. package/lib/typescript/module/src/models/VideoPlaybackDetails.d.ts +48 -0
  446. package/lib/typescript/module/src/models/VideoPlaybackDetails.d.ts.map +1 -0
  447. package/lib/typescript/module/src/models/VideoPlaybackEventName.d.ts +52 -0
  448. package/lib/typescript/module/src/models/VideoPlaybackEventName.d.ts.map +1 -0
  449. package/lib/typescript/module/src/models/VideoPlayerButtonConfiguration.d.ts +34 -0
  450. package/lib/typescript/module/src/models/VideoPlayerButtonConfiguration.d.ts.map +1 -0
  451. package/lib/typescript/module/src/models/VideoPlayerCTADelay.d.ts +12 -0
  452. package/lib/typescript/module/src/models/VideoPlayerCTADelay.d.ts.map +1 -0
  453. package/lib/typescript/module/src/models/VideoPlayerCTAStyle.d.ts +28 -0
  454. package/lib/typescript/module/src/models/VideoPlayerCTAStyle.d.ts.map +1 -0
  455. package/lib/typescript/module/src/models/VideoPlayerCTAWidth.d.ts +2 -0
  456. package/lib/typescript/module/src/models/VideoPlayerCTAWidth.d.ts.map +1 -0
  457. package/lib/typescript/module/src/models/VideoPlayerCompleteAction.d.ts +2 -0
  458. package/lib/typescript/module/src/models/VideoPlayerCompleteAction.d.ts.map +1 -0
  459. package/lib/typescript/module/src/models/VideoPlayerConfiguration.d.ts +87 -0
  460. package/lib/typescript/module/src/models/VideoPlayerConfiguration.d.ts.map +1 -0
  461. package/lib/typescript/module/src/models/VideoPlayerLivestreamCountdownTimerTheme.d.ts +2 -0
  462. package/lib/typescript/module/src/models/VideoPlayerLivestreamCountdownTimerTheme.d.ts.map +1 -0
  463. package/lib/typescript/module/src/models/VideoPlayerLogoConfiguration.d.ts +22 -0
  464. package/lib/typescript/module/src/models/VideoPlayerLogoConfiguration.d.ts.map +1 -0
  465. package/lib/typescript/module/src/models/VideoPlayerNativeConfiguration.d.ts +8 -0
  466. package/lib/typescript/module/src/models/VideoPlayerNativeConfiguration.d.ts.map +1 -0
  467. package/lib/typescript/module/src/models/VideoPlayerStyle.d.ts +2 -0
  468. package/lib/typescript/module/src/models/VideoPlayerStyle.d.ts.map +1 -0
  469. package/lib/typescript/module/src/modules/FWNavigatorModule.d.ts +17 -0
  470. package/lib/typescript/module/src/modules/FWNavigatorModule.d.ts.map +1 -0
  471. package/lib/typescript/module/src/modules/FireworkSDKModule.d.ts +28 -0
  472. package/lib/typescript/module/src/modules/FireworkSDKModule.d.ts.map +1 -0
  473. package/lib/typescript/module/src/modules/LiveStreamModule.d.ts +9 -0
  474. package/lib/typescript/module/src/modules/LiveStreamModule.d.ts.map +1 -0
  475. package/lib/typescript/module/src/modules/ShoppingModule.d.ts +22 -0
  476. package/lib/typescript/module/src/modules/ShoppingModule.d.ts.map +1 -0
  477. package/lib/typescript/module/src/utils/FWGlobalState.d.ts +13 -0
  478. package/lib/typescript/module/src/utils/FWGlobalState.d.ts.map +1 -0
  479. package/lib/typescript/module/src/utils/FWJsonUtil.d.ts +3 -0
  480. package/lib/typescript/module/src/utils/FWJsonUtil.d.ts.map +1 -0
  481. package/lib/typescript/module/src/utils/FWLoggerUtil.d.ts +7 -0
  482. package/lib/typescript/module/src/utils/FWLoggerUtil.d.ts.map +1 -0
  483. package/lib/typescript/module/src/utils/VideoFeedUtil.d.ts +11 -0
  484. package/lib/typescript/module/src/utils/VideoFeedUtil.d.ts.map +1 -0
  485. package/package.json +71 -55
  486. package/react_native_firework_sdk.podspec +35 -0
  487. package/src/FWNavigator.ts +2 -0
  488. package/src/components/StoryBlock.tsx +45 -50
  489. package/src/components/VideoFeed.tsx +7 -7
  490. package/src/{index.ts → index.tsx} +14 -12
  491. package/src/models/VideoPlayerLogoConfiguration.ts +7 -7
  492. package/src/modules/FWNavigatorModule.ts +5 -1
  493. package/src/modules/FireworkSDKModule.ts +7 -3
  494. package/src/modules/LiveStreamModule.ts +5 -1
  495. package/src/modules/ShoppingModule.ts +5 -1
  496. package/src/utils/FWGlobalState.ts +1 -1
  497. package/android/.idea/codeStyles/Project.xml +0 -124
  498. package/android/.idea/codeStyles/codeStyleConfig.xml +0 -5
  499. package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  500. package/android/gradle/wrapper/gradle-wrapper.properties +0 -5
  501. package/android/gradlew +0 -185
  502. package/android/gradlew.bat +0 -89
  503. package/ios/FireworkSdk.xcodeproj/project.pbxproj +0 -603
  504. package/ios/Modules/FWNavigatorModule/RNSScreenStackView+Window.h +0 -20
  505. package/ios/Modules/FWNavigatorModule/RNSScreenStackView+Window.m +0 -84
  506. package/ios/Support/MultiHostStreaming/FWMultiHostStreaming.podspec +0 -22
  507. package/ios/Support/MultiHostStreaming/Sources/MultiHostStreamingSDK.swift +0 -17
  508. package/react-native-firework-sdk.podspec +0 -38
  509. package/ios/{FireworkSdk-Bridging-Header.h → FWReactNativeSDK-Bridging-Header.h} +3 -3
@@ -4,225 +4,183 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
8
7
  var _react = _interopRequireDefault(require("react"));
9
-
10
8
  var _reactNative = require("react-native");
11
-
12
- var _FireworkSDK = _interopRequireDefault(require("../FireworkSDK"));
13
-
14
- var _FWEventName = require("../models/FWEventName");
15
-
16
- var _FWNativeErrorAction = require("../models/FWNativeErrorAction");
17
-
18
- var _FireworkSDKModule = require("../modules/FireworkSDKModule");
19
-
20
- var _FWGlobalState = _interopRequireDefault(require("../utils/FWGlobalState"));
21
-
22
- var _FWJsonUtil = _interopRequireDefault(require("../utils/FWJsonUtil"));
23
-
24
- var _FWLoggerUtil = _interopRequireDefault(require("../utils/FWLoggerUtil"));
25
-
26
- var _FWVideoFeed = _interopRequireDefault(require("./FWVideoFeed"));
27
-
28
- var _FWComponentType = require("../models/FWComponentType");
29
-
30
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
31
-
32
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
33
-
34
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
9
+ var _FireworkSDK = _interopRequireDefault(require("../FireworkSDK.js"));
10
+ var _FWEventName = require("../models/FWEventName.js");
11
+ var _FWNativeErrorAction = require("../models/FWNativeErrorAction.js");
12
+ var _FireworkSDKModule = require("../modules/FireworkSDKModule.js");
13
+ var _FWGlobalState = _interopRequireDefault(require("../utils/FWGlobalState.js"));
14
+ var _FWJsonUtil = _interopRequireDefault(require("../utils/FWJsonUtil.js"));
15
+ var _FWLoggerUtil = _interopRequireDefault(require("../utils/FWLoggerUtil.js"));
16
+ var _FWVideoFeed = _interopRequireDefault(require("./FWVideoFeed.js"));
17
+ var _FWComponentType = require("../models/FWComponentType.js");
18
+ var _jsxRuntime = require("react/jsx-runtime");
19
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
20
+ /**
21
+ * The props of VideoFeed component.
22
+ */
35
23
 
36
24
  const NativeComponentName = 'FWVideoFeed';
25
+
37
26
  /**
38
27
  * VideoFeed component.
39
28
  */
40
-
41
29
  class VideoFeed extends _react.default.Component {
42
30
  /**
43
31
  * @ignore
44
32
  */
33
+ static defaultProps = {
34
+ mode: 'row'
35
+ };
36
+ _nativeComponentRef = /*#__PURE__*/_react.default.createRef();
37
+ _subscriptions = [];
38
+ _loaded = false;
45
39
  constructor(props) {
46
40
  super(props);
47
-
48
- _defineProperty(this, "_nativeComponentRef", /*#__PURE__*/_react.default.createRef());
49
-
50
- _defineProperty(this, "_subscriptions", []);
51
-
52
- _defineProperty(this, "_loaded", false);
53
-
54
- _defineProperty(this, "refresh", () => {
55
- _FWLoggerUtil.default.log(`VideoFeed refresh ${JSON.stringify(this.props)}`);
56
-
57
- const nativeNodeHandle = (0, _reactNative.findNodeHandle)(this._nativeComponentRef.current);
58
-
59
- let commandId = _reactNative.UIManager.getViewManagerConfig(NativeComponentName).Commands.refresh;
60
-
61
- if (_reactNative.Platform.OS === 'android') {
62
- commandId = commandId.toString();
63
- }
64
-
65
- let reactTag = (0, _reactNative.findNodeHandle)(nativeNodeHandle);
66
-
67
- _FWLoggerUtil.default.log(`VideoFeed refresh commandId: ${commandId} nativeNodeHandle: ${nativeNodeHandle} reactTag: ${reactTag}`);
68
-
69
- if (!nativeNodeHandle || !reactTag) {
70
- return;
71
- }
72
-
73
- _reactNative.UIManager.dispatchViewManagerCommand(reactTag, commandId, []);
74
- });
75
-
76
- _defineProperty(this, "_onVideoFeedLoadFinished", event => {
77
- const {
78
- onVideoFeedLoadFinished,
79
- onVideoFeedEmpty
80
- } = this.props;
81
- const {
82
- name,
83
- reason,
84
- action
85
- } = event.nativeEvent;
86
-
87
- if (onVideoFeedLoadFinished) {
88
- if (name) {
89
- let error = {
90
- name
91
- };
92
-
93
- if (reason) {
94
- error.reason = reason;
95
- }
96
-
97
- if (_reactNative.Platform.OS === 'android') {
98
- if (!this._loaded) {
99
- onVideoFeedLoadFinished(error);
100
- }
101
-
102
- if (action === _FWNativeErrorAction.FWNativeErrorAction.loadingFirstPage || !this._loaded) {
103
- onVideoFeedEmpty === null || onVideoFeedEmpty === void 0 ? void 0 : onVideoFeedEmpty(error);
104
- }
105
- } else {
41
+ this.state = {
42
+ sdkInitCalled: _FWGlobalState.default.getInstance().sdkInitCalled
43
+ };
44
+ }
45
+ refresh = () => {
46
+ _FWLoggerUtil.default.log(`VideoFeed refresh ${JSON.stringify(this.props)}`);
47
+ const nativeNodeHandle = (0, _reactNative.findNodeHandle)(this._nativeComponentRef.current);
48
+ let commandId = _reactNative.UIManager.getViewManagerConfig(NativeComponentName).Commands.refresh ?? '';
49
+ if (_reactNative.Platform.OS === 'android') {
50
+ commandId = commandId.toString();
51
+ }
52
+ let reactTag = (0, _reactNative.findNodeHandle)(nativeNodeHandle);
53
+ _FWLoggerUtil.default.log(`VideoFeed refresh commandId: ${commandId} nativeNodeHandle: ${nativeNodeHandle} reactTag: ${reactTag}`);
54
+ if (!nativeNodeHandle || !reactTag) {
55
+ return;
56
+ }
57
+ _reactNative.UIManager.dispatchViewManagerCommand(reactTag, commandId, []);
58
+ };
59
+ _onVideoFeedLoadFinished = event => {
60
+ const {
61
+ onVideoFeedLoadFinished,
62
+ onVideoFeedEmpty
63
+ } = this.props;
64
+ const {
65
+ name,
66
+ reason,
67
+ action
68
+ } = event.nativeEvent;
69
+ if (onVideoFeedLoadFinished) {
70
+ if (name) {
71
+ let error = {
72
+ name
73
+ };
74
+ if (reason) {
75
+ error.reason = reason;
76
+ }
77
+ if (_reactNative.Platform.OS === 'android') {
78
+ if (!this._loaded) {
106
79
  onVideoFeedLoadFinished(error);
107
-
108
- if (!this._loaded) {
109
- onVideoFeedEmpty === null || onVideoFeedEmpty === void 0 ? void 0 : onVideoFeedEmpty(error);
110
- }
80
+ }
81
+ if (action === _FWNativeErrorAction.FWNativeErrorAction.loadingFirstPage || !this._loaded) {
82
+ onVideoFeedEmpty?.(error);
111
83
  }
112
84
  } else {
113
- if (_reactNative.Platform.OS === 'android') {
114
- if (!this._loaded) {
115
- onVideoFeedLoadFinished();
116
- }
117
- } else {
118
- onVideoFeedLoadFinished();
85
+ onVideoFeedLoadFinished(error);
86
+ if (!this._loaded) {
87
+ onVideoFeedEmpty?.(error);
119
88
  }
120
-
121
- this._loaded = true;
122
89
  }
123
- }
124
- });
125
-
126
- _defineProperty(this, "_onVideoFeedEmpty", event => {
127
- _FWLoggerUtil.default.log(`VideoFeed _onVideoFeedLoadFinished ${JSON.stringify(event.nativeEvent)}`);
128
-
129
- const {
130
- onVideoFeedEmpty
131
- } = this.props;
132
-
133
- if (onVideoFeedEmpty) {
134
- onVideoFeedEmpty();
135
- }
136
- });
137
-
138
- _defineProperty(this, "_onVideoFeedDidStartPictureInPicture", event => {
139
- _FWLoggerUtil.default.log(`VideoFeed _onVideoFeedDidStartPictureInPicture ${JSON.stringify(event.nativeEvent)}`);
140
-
141
- const {
142
- onVideoFeedDidStartPictureInPicture
143
- } = this.props;
144
- const {
145
- name,
146
- reason
147
- } = event.nativeEvent;
148
-
149
- if (onVideoFeedDidStartPictureInPicture) {
150
- if (name) {
151
- if (reason) {
152
- onVideoFeedDidStartPictureInPicture({
153
- name,
154
- reason
155
- });
156
- } else {
157
- onVideoFeedDidStartPictureInPicture({
158
- name
159
- });
90
+ } else {
91
+ if (_reactNative.Platform.OS === 'android') {
92
+ if (!this._loaded) {
93
+ onVideoFeedLoadFinished();
160
94
  }
161
95
  } else {
162
- onVideoFeedDidStartPictureInPicture();
96
+ onVideoFeedLoadFinished();
163
97
  }
98
+ this._loaded = true;
164
99
  }
165
- });
166
-
167
- _defineProperty(this, "_onVideoFeedDidStopPictureInPicture", event => {
168
- _FWLoggerUtil.default.log(`VideoFeed _onVideoFeedDidStopPictureInPicture ${JSON.stringify(event.nativeEvent)}`);
169
-
170
- const {
171
- onVideoFeedDidStopPictureInPicture
172
- } = this.props;
173
- const {
174
- name,
175
- reason
176
- } = event.nativeEvent;
177
-
178
- if (onVideoFeedDidStopPictureInPicture) {
179
- if (name) {
180
- if (reason) {
181
- onVideoFeedDidStopPictureInPicture({
182
- name,
183
- reason
184
- });
185
- } else {
186
- onVideoFeedDidStopPictureInPicture({
187
- name
188
- });
189
- }
100
+ }
101
+ };
102
+ _onVideoFeedEmpty = event => {
103
+ _FWLoggerUtil.default.log(`VideoFeed _onVideoFeedLoadFinished ${JSON.stringify(event.nativeEvent)}`);
104
+ const {
105
+ onVideoFeedEmpty
106
+ } = this.props;
107
+ if (onVideoFeedEmpty) {
108
+ onVideoFeedEmpty();
109
+ }
110
+ };
111
+ _onVideoFeedDidStartPictureInPicture = event => {
112
+ _FWLoggerUtil.default.log(`VideoFeed _onVideoFeedDidStartPictureInPicture ${JSON.stringify(event.nativeEvent)}`);
113
+ const {
114
+ onVideoFeedDidStartPictureInPicture
115
+ } = this.props;
116
+ const {
117
+ name,
118
+ reason
119
+ } = event.nativeEvent;
120
+ if (onVideoFeedDidStartPictureInPicture) {
121
+ if (name) {
122
+ if (reason) {
123
+ onVideoFeedDidStartPictureInPicture({
124
+ name,
125
+ reason
126
+ });
190
127
  } else {
191
- onVideoFeedDidStopPictureInPicture();
128
+ onVideoFeedDidStartPictureInPicture({
129
+ name
130
+ });
192
131
  }
132
+ } else {
133
+ onVideoFeedDidStartPictureInPicture();
193
134
  }
194
- });
195
-
196
- _defineProperty(this, "_onVideoFeedGetFeedId", event => {
197
- _FWLoggerUtil.default.log(`VideoFeed onVideoFeedGetFeedId ${JSON.stringify(event.nativeEvent)}`);
198
-
199
- const {
200
- onVideoFeedGetFeedId
201
- } = this.props;
202
- const {
203
- feedId
204
- } = event.nativeEvent;
205
-
206
- if (feedId) {
207
- _FWGlobalState.default.getInstance().componentTypeByFeedIdMap.set(feedId, _FWComponentType.FWComponentType.videoFeed);
208
- }
209
-
210
- if (onVideoFeedGetFeedId) {
211
- onVideoFeedGetFeedId(feedId !== null && feedId !== void 0 ? feedId : '');
135
+ }
136
+ };
137
+ _onVideoFeedDidStopPictureInPicture = event => {
138
+ _FWLoggerUtil.default.log(`VideoFeed _onVideoFeedDidStopPictureInPicture ${JSON.stringify(event.nativeEvent)}`);
139
+ const {
140
+ onVideoFeedDidStopPictureInPicture
141
+ } = this.props;
142
+ const {
143
+ name,
144
+ reason
145
+ } = event.nativeEvent;
146
+ if (onVideoFeedDidStopPictureInPicture) {
147
+ if (name) {
148
+ if (reason) {
149
+ onVideoFeedDidStopPictureInPicture({
150
+ name,
151
+ reason
152
+ });
153
+ } else {
154
+ onVideoFeedDidStopPictureInPicture({
155
+ name
156
+ });
157
+ }
158
+ } else {
159
+ onVideoFeedDidStopPictureInPicture();
212
160
  }
213
- });
214
-
215
- this.state = {
216
- sdkInitCalled: _FWGlobalState.default.getInstance().sdkInitCalled
217
- };
218
- }
161
+ }
162
+ };
163
+ _onVideoFeedGetFeedId = event => {
164
+ _FWLoggerUtil.default.log(`VideoFeed onVideoFeedGetFeedId ${JSON.stringify(event.nativeEvent)}`);
165
+ const {
166
+ onVideoFeedGetFeedId
167
+ } = this.props;
168
+ const {
169
+ feedId
170
+ } = event.nativeEvent;
171
+ if (feedId) {
172
+ _FWGlobalState.default.getInstance().componentTypeByFeedIdMap.set(feedId, _FWComponentType.FWComponentType.videoFeed);
173
+ }
174
+ if (onVideoFeedGetFeedId) {
175
+ onVideoFeedGetFeedId(feedId ?? '');
176
+ }
177
+ };
219
178
 
220
179
  /**
221
180
  * @ignore
222
181
  */
223
182
  componentDidMount() {
224
183
  _FWLoggerUtil.default.log(`VideoFeed componentDidMount ${JSON.stringify(this.props)}`);
225
-
226
184
  if (!this.state.sdkInitCalled) {
227
185
  _FWGlobalState.default.getInstance().sdkInitCalledPromise.then(() => {
228
186
  this.setState({
@@ -230,99 +188,67 @@ class VideoFeed extends _react.default.Component {
230
188
  });
231
189
  });
232
190
  }
233
-
234
191
  const subscriptionOfShareBaseURLUpdated = _FireworkSDKModule.FireworkSDKModuleEventEmitter.addListener(_FWEventName.FWEventName.ShareBaseURLUpdated, () => {
235
192
  _FWLoggerUtil.default.log('Receive FWEventName.ShareBaseURLUpdated');
236
-
237
193
  this.setState({});
238
194
  });
239
-
240
195
  this._subscriptions.push(subscriptionOfShareBaseURLUpdated);
241
-
242
196
  const subscriptionOfAdBadgeConfigurationUpdated = _FireworkSDKModule.FireworkSDKModuleEventEmitter.addListener(_FWEventName.FWEventName.AdBadgeConfigurationUpdated, () => {
243
197
  _FWLoggerUtil.default.log('Receive FWEventName.AdBadgeConfigurationUpdated');
244
-
245
198
  this.setState({});
246
199
  });
247
-
248
200
  this._subscriptions.push(subscriptionOfAdBadgeConfigurationUpdated);
249
-
250
201
  const subscriptionOfVideoLaunchBehaviorUpdated = _FireworkSDKModule.FireworkSDKModuleEventEmitter.addListener(_FWEventName.FWEventName.VideoLaunchBehaviorUpdated, () => {
251
202
  _FWLoggerUtil.default.log('Receive FWEventName.VideoLaunchBehaviorUpdated');
252
-
253
203
  this.setState({});
254
204
  });
255
-
256
205
  this._subscriptions.push(subscriptionOfVideoLaunchBehaviorUpdated);
257
-
258
206
  const subscriptionOfAppLanguageUpdated = _FireworkSDKModule.FireworkSDKModuleEventEmitter.addListener(_FWEventName.FWEventName.AppLanguageUpdated, () => {
259
207
  _FWLoggerUtil.default.log('Receive FWEventName.AppLanguageUpdated');
260
-
261
208
  this.setState({});
262
209
  });
263
-
264
210
  this._subscriptions.push(subscriptionOfAppLanguageUpdated);
265
-
266
211
  const subscriptionOfDataTrackingLevelUpdated = _FireworkSDKModule.FireworkSDKModuleEventEmitter.addListener(_FWEventName.FWEventName.DataTrackingLevelUpdated, () => {
267
212
  _FWLoggerUtil.default.log('Receive FWEventName.DataTrackingLevelUpdated');
268
-
269
213
  this.setState({});
270
214
  });
271
-
272
215
  this._subscriptions.push(subscriptionOfDataTrackingLevelUpdated);
273
-
274
216
  const subscriptionOfLivestreamPlayerDesignVersionUpdated = _FireworkSDKModule.FireworkSDKModuleEventEmitter.addListener(_FWEventName.FWEventName.LivestreamPlayerDesignVersionUpdated, () => {
275
217
  _FWLoggerUtil.default.log('Receive FWEventName.LivestreamPlayerDesignVersionUpdated');
276
-
277
218
  this.setState({});
278
219
  });
279
-
280
220
  this._subscriptions.push(subscriptionOfLivestreamPlayerDesignVersionUpdated);
281
221
  }
222
+
282
223
  /**
283
224
  * @ignore
284
225
  */
285
-
286
-
287
226
  componentWillUnmount() {
288
227
  _FWLoggerUtil.default.log(`VideoFeed componentWillUnmount ${JSON.stringify(this.props)}`);
289
-
290
228
  this._subscriptions.forEach(value => {
291
229
  value.remove();
292
230
  });
293
-
294
231
  this._subscriptions = [];
295
232
  }
233
+
296
234
  /**
297
235
  * @ignore
298
236
  */
299
-
300
-
301
237
  render() {
302
- var _adBadgeConfiguration, _adBadgeConfiguration2, _adBadgeConfiguration3, _videoFeedConfigurati, _videoFeedConfigurati2, _videoFeedConfigurati3, _videoFeedConfigurati4, _videoFeedConfigurati5, _videoFeedConfigurati6, _videoFeedConfigurati7, _videoFeedConfigurati8, _videoFeedConfigurati9, _videoFeedConfigurati10, _videoFeedConfigurati11, _videoFeedConfigurati12, _videoFeedConfigurati13, _videoFeedConfigurati14, _videoPlayerConfigura, _videoPlayerConfigura2, _videoPlayerConfigura3, _videoPlayerConfigura4, _videoPlayerConfigura5, _videoPlayerConfigura6;
303
-
304
238
  if (!this.state.sdkInitCalled) {
305
239
  return null;
306
240
  }
307
-
308
241
  const gShareBaseURL = _FireworkSDK.default.getInstance().shareBaseURL;
309
-
310
242
  const appLanguage = _FireworkSDK.default.getInstance().appLanguage;
311
-
312
243
  const videoLaunchBehavior = _FireworkSDK.default.getInstance().videoLaunchBehavior;
313
-
314
244
  const adBadgeConfiguration = _FireworkSDK.default.getInstance().adBadgeConfiguration;
315
-
316
- const adBadgeTextType = adBadgeConfiguration === null || adBadgeConfiguration === void 0 ? void 0 : adBadgeConfiguration.badgeTextType;
317
- const backgroundColorOfAdBadge = adBadgeConfiguration === null || adBadgeConfiguration === void 0 ? void 0 : adBadgeConfiguration.backgroundColor;
318
- const textColorOfAdBadge = adBadgeConfiguration === null || adBadgeConfiguration === void 0 ? void 0 : adBadgeConfiguration.textColor;
319
- const androidFontIsCustomOfAdBadge = adBadgeConfiguration === null || adBadgeConfiguration === void 0 ? void 0 : (_adBadgeConfiguration = adBadgeConfiguration.androidFontInfo) === null || _adBadgeConfiguration === void 0 ? void 0 : (_adBadgeConfiguration2 = _adBadgeConfiguration.isCustom) === null || _adBadgeConfiguration2 === void 0 ? void 0 : _adBadgeConfiguration2.toString();
320
- const androidFontTypefaceNameOfAdBadge = adBadgeConfiguration === null || adBadgeConfiguration === void 0 ? void 0 : (_adBadgeConfiguration3 = adBadgeConfiguration.androidFontInfo) === null || _adBadgeConfiguration3 === void 0 ? void 0 : _adBadgeConfiguration3.typefaceName;
321
-
245
+ const adBadgeTextType = adBadgeConfiguration?.badgeTextType;
246
+ const backgroundColorOfAdBadge = adBadgeConfiguration?.backgroundColor;
247
+ const textColorOfAdBadge = adBadgeConfiguration?.textColor;
248
+ const androidFontIsCustomOfAdBadge = adBadgeConfiguration?.androidFontInfo?.isCustom?.toString();
249
+ const androidFontTypefaceNameOfAdBadge = adBadgeConfiguration?.androidFontInfo?.typefaceName;
322
250
  const dataTrackingLevel = _FireworkSDK.default.getInstance().dataTrackingLevel;
323
-
324
251
  const livestreamPlayerDesignVersion = _FireworkSDK.default.getInstance().livestreamPlayerDesignVersion;
325
-
326
252
  const {
327
253
  source,
328
254
  channel,
@@ -335,68 +261,57 @@ class VideoFeed extends _react.default.Component {
335
261
  enablePictureInPicture,
336
262
  adConfiguration
337
263
  } = this.props;
338
-
339
264
  const dynamicContentParametersString = this._generateDynamicContentParametersString();
340
-
341
265
  const videoFeedConfiguration = this._getVideoFeedConfiguration();
342
-
343
- const cornerRadius = videoFeedConfiguration === null || videoFeedConfiguration === void 0 ? void 0 : (_videoFeedConfigurati = videoFeedConfiguration.cornerRadius) === null || _videoFeedConfigurati === void 0 ? void 0 : _videoFeedConfigurati.toFixed(5);
344
- const titleHidden = videoFeedConfiguration === null || videoFeedConfiguration === void 0 ? void 0 : (_videoFeedConfigurati2 = videoFeedConfiguration.title) === null || _videoFeedConfigurati2 === void 0 ? void 0 : (_videoFeedConfigurati3 = _videoFeedConfigurati2.hidden) === null || _videoFeedConfigurati3 === void 0 ? void 0 : _videoFeedConfigurati3.toString();
345
- const titleTextColor = videoFeedConfiguration === null || videoFeedConfiguration === void 0 ? void 0 : (_videoFeedConfigurati4 = videoFeedConfiguration.title) === null || _videoFeedConfigurati4 === void 0 ? void 0 : _videoFeedConfigurati4.textColor;
346
- const titleFontSize = videoFeedConfiguration === null || videoFeedConfiguration === void 0 ? void 0 : (_videoFeedConfigurati5 = videoFeedConfiguration.title) === null || _videoFeedConfigurati5 === void 0 ? void 0 : (_videoFeedConfigurati6 = _videoFeedConfigurati5.fontSize) === null || _videoFeedConfigurati6 === void 0 ? void 0 : _videoFeedConfigurati6.toFixed(5);
347
- const titleNumberOfLines = videoFeedConfiguration === null || videoFeedConfiguration === void 0 ? void 0 : (_videoFeedConfigurati7 = videoFeedConfiguration.title) === null || _videoFeedConfigurati7 === void 0 ? void 0 : _videoFeedConfigurati7.numberOfLines;
348
- const titleAndroidFontInfo = videoFeedConfiguration === null || videoFeedConfiguration === void 0 ? void 0 : (_videoFeedConfigurati8 = videoFeedConfiguration.title) === null || _videoFeedConfigurati8 === void 0 ? void 0 : _videoFeedConfigurati8.androidFontInfo;
349
- const titleGradientDrawable = videoFeedConfiguration === null || videoFeedConfiguration === void 0 ? void 0 : (_videoFeedConfigurati9 = videoFeedConfiguration.title) === null || _videoFeedConfigurati9 === void 0 ? void 0 : _videoFeedConfigurati9.gradientDrawable;
350
- const titlePosition = videoFeedConfiguration === null || videoFeedConfiguration === void 0 ? void 0 : videoFeedConfiguration.titlePosition;
351
- const playIconHidden = videoFeedConfiguration === null || videoFeedConfiguration === void 0 ? void 0 : (_videoFeedConfigurati10 = videoFeedConfiguration.playIcon) === null || _videoFeedConfigurati10 === void 0 ? void 0 : _videoFeedConfigurati10.hidden;
352
- const playIconWidth = videoFeedConfiguration === null || videoFeedConfiguration === void 0 ? void 0 : (_videoFeedConfigurati11 = videoFeedConfiguration.playIcon) === null || _videoFeedConfigurati11 === void 0 ? void 0 : (_videoFeedConfigurati12 = _videoFeedConfigurati11.iconWidth) === null || _videoFeedConfigurati12 === void 0 ? void 0 : _videoFeedConfigurati12.toFixed(5);
353
- const showAdBadge = videoFeedConfiguration === null || videoFeedConfiguration === void 0 ? void 0 : (_videoFeedConfigurati13 = videoFeedConfiguration.showAdBadge) === null || _videoFeedConfigurati13 === void 0 ? void 0 : _videoFeedConfigurati13.toString();
354
- const enableAutoplay = videoFeedConfiguration === null || videoFeedConfiguration === void 0 ? void 0 : videoFeedConfiguration.enableAutoplay;
355
- const gridColumns = videoFeedConfiguration === null || videoFeedConfiguration === void 0 ? void 0 : videoFeedConfiguration.gridColumns;
356
- const itemSpacing = videoFeedConfiguration === null || videoFeedConfiguration === void 0 ? void 0 : (_videoFeedConfigurati14 = videoFeedConfiguration.itemSpacing) === null || _videoFeedConfigurati14 === void 0 ? void 0 : _videoFeedConfigurati14.toFixed(5);
357
-
266
+ const cornerRadius = videoFeedConfiguration?.cornerRadius?.toFixed(5);
267
+ const titleHidden = videoFeedConfiguration?.title?.hidden?.toString();
268
+ const titleTextColor = videoFeedConfiguration?.title?.textColor;
269
+ const titleFontSize = videoFeedConfiguration?.title?.fontSize?.toFixed(5);
270
+ const titleNumberOfLines = videoFeedConfiguration?.title?.numberOfLines;
271
+ const titleAndroidFontInfo = videoFeedConfiguration?.title?.androidFontInfo;
272
+ const titleGradientDrawable = videoFeedConfiguration?.title?.gradientDrawable;
273
+ const titlePosition = videoFeedConfiguration?.titlePosition;
274
+ const playIconHidden = videoFeedConfiguration?.playIcon?.hidden;
275
+ const playIconWidth = videoFeedConfiguration?.playIcon?.iconWidth?.toFixed(5);
276
+ const showAdBadge = videoFeedConfiguration?.showAdBadge?.toString();
277
+ const enableAutoplay = videoFeedConfiguration?.enableAutoplay;
278
+ const gridColumns = videoFeedConfiguration?.gridColumns;
279
+ const itemSpacing = videoFeedConfiguration?.itemSpacing?.toFixed(5);
358
280
  const videoPlayerConfiguration = this._getVideoPlayerConfiguration();
359
-
360
- const playerStyle = videoPlayerConfiguration === null || videoPlayerConfiguration === void 0 ? void 0 : videoPlayerConfiguration.playerStyle;
361
- const videoCompleteAction = videoPlayerConfiguration === null || videoPlayerConfiguration === void 0 ? void 0 : videoPlayerConfiguration.videoCompleteAction;
362
- const showShareButton = videoPlayerConfiguration === null || videoPlayerConfiguration === void 0 ? void 0 : videoPlayerConfiguration.showShareButton;
363
- const showPlaybackButton = videoPlayerConfiguration === null || videoPlayerConfiguration === void 0 ? void 0 : videoPlayerConfiguration.showPlaybackButton;
364
- const showMuteButton = videoPlayerConfiguration === null || videoPlayerConfiguration === void 0 ? void 0 : videoPlayerConfiguration.showMuteButton;
365
- const showBranding = videoPlayerConfiguration === null || videoPlayerConfiguration === void 0 ? void 0 : videoPlayerConfiguration.showBranding;
366
- const ctaDelayType = videoPlayerConfiguration === null || videoPlayerConfiguration === void 0 ? void 0 : (_videoPlayerConfigura = videoPlayerConfiguration.ctaDelay) === null || _videoPlayerConfigura === void 0 ? void 0 : _videoPlayerConfigura.type;
367
- const ctaDelayValue = videoPlayerConfiguration === null || videoPlayerConfiguration === void 0 ? void 0 : (_videoPlayerConfigura2 = videoPlayerConfiguration.ctaDelay) === null || _videoPlayerConfigura2 === void 0 ? void 0 : (_videoPlayerConfigura3 = _videoPlayerConfigura2.value) === null || _videoPlayerConfigura3 === void 0 ? void 0 : _videoPlayerConfigura3.toFixed(5);
368
- const ctaHighlightDelayType = videoPlayerConfiguration === null || videoPlayerConfiguration === void 0 ? void 0 : (_videoPlayerConfigura4 = videoPlayerConfiguration.ctaHighlightDelay) === null || _videoPlayerConfigura4 === void 0 ? void 0 : _videoPlayerConfigura4.type;
369
- const ctaHighlightDelayValue = videoPlayerConfiguration === null || videoPlayerConfiguration === void 0 ? void 0 : (_videoPlayerConfigura5 = videoPlayerConfiguration.ctaHighlightDelay) === null || _videoPlayerConfigura5 === void 0 ? void 0 : (_videoPlayerConfigura6 = _videoPlayerConfigura5.value) === null || _videoPlayerConfigura6 === void 0 ? void 0 : _videoPlayerConfigura6.toFixed(5);
370
- const shareBaseURL = videoPlayerConfiguration === null || videoPlayerConfiguration === void 0 ? void 0 : videoPlayerConfiguration.shareBaseURL;
371
- const ctaWidth = videoPlayerConfiguration === null || videoPlayerConfiguration === void 0 ? void 0 : videoPlayerConfiguration.ctaWidth;
372
- const buttonConfiguration = videoPlayerConfiguration === null || videoPlayerConfiguration === void 0 ? void 0 : videoPlayerConfiguration.buttonConfiguration;
373
- const videoPlayerLogoConfigurationJsonKey = (0, _FWJsonUtil.default)(videoPlayerConfiguration === null || videoPlayerConfiguration === void 0 ? void 0 : videoPlayerConfiguration.videoPlayerLogoConfiguration);
374
- const countdownTimerConfigurationJsonKey = (0, _FWJsonUtil.default)(videoPlayerConfiguration === null || videoPlayerConfiguration === void 0 ? void 0 : videoPlayerConfiguration.countdownTimerConfiguration);
375
- const showVideoDetailTitle = videoPlayerConfiguration === null || videoPlayerConfiguration === void 0 ? void 0 : videoPlayerConfiguration.showVideoDetailTitle;
376
- const requiresAds = adConfiguration === null || adConfiguration === void 0 ? void 0 : adConfiguration.requiresAds;
377
- const adsFetchTimeout = adConfiguration === null || adConfiguration === void 0 ? void 0 : adConfiguration.adsFetchTimeout;
378
-
281
+ const playerStyle = videoPlayerConfiguration?.playerStyle;
282
+ const videoCompleteAction = videoPlayerConfiguration?.videoCompleteAction;
283
+ const showShareButton = videoPlayerConfiguration?.showShareButton;
284
+ const showPlaybackButton = videoPlayerConfiguration?.showPlaybackButton;
285
+ const showMuteButton = videoPlayerConfiguration?.showMuteButton;
286
+ const showBranding = videoPlayerConfiguration?.showBranding;
287
+ const ctaDelayType = videoPlayerConfiguration?.ctaDelay?.type;
288
+ const ctaDelayValue = videoPlayerConfiguration?.ctaDelay?.value?.toFixed(5);
289
+ const ctaHighlightDelayType = videoPlayerConfiguration?.ctaHighlightDelay?.type;
290
+ const ctaHighlightDelayValue = videoPlayerConfiguration?.ctaHighlightDelay?.value?.toFixed(5);
291
+ const shareBaseURL = videoPlayerConfiguration?.shareBaseURL;
292
+ const ctaWidth = videoPlayerConfiguration?.ctaWidth;
293
+ const buttonConfiguration = videoPlayerConfiguration?.buttonConfiguration;
294
+ const videoPlayerLogoConfigurationJsonKey = (0, _FWJsonUtil.default)(videoPlayerConfiguration?.videoPlayerLogoConfiguration);
295
+ const countdownTimerConfigurationJsonKey = (0, _FWJsonUtil.default)(videoPlayerConfiguration?.countdownTimerConfiguration);
296
+ const showVideoDetailTitle = videoPlayerConfiguration?.showVideoDetailTitle;
297
+ const requiresAds = adConfiguration?.requiresAds;
298
+ const adsFetchTimeout = adConfiguration?.adsFetchTimeout;
379
299
  const vastAttributesString = this._generateVastAttributesString();
380
-
381
- const replayBadgeVideoFeedConfigurationJsonKey = (0, _FWJsonUtil.default)(videoFeedConfiguration === null || videoFeedConfiguration === void 0 ? void 0 : videoFeedConfiguration.replayBadge);
382
- const replayBadgeVideoPlayerConfigurationJsonKey = (0, _FWJsonUtil.default)(videoPlayerConfiguration === null || videoPlayerConfiguration === void 0 ? void 0 : videoPlayerConfiguration.replayBadgeConfiguration);
383
- const shadowVideoFeedConfigurationJsonKey = (0, _FWJsonUtil.default)(videoFeedConfiguration === null || videoFeedConfiguration === void 0 ? void 0 : videoFeedConfiguration.shadow);
300
+ const replayBadgeVideoFeedConfigurationJsonKey = (0, _FWJsonUtil.default)(videoFeedConfiguration?.replayBadge);
301
+ const replayBadgeVideoPlayerConfigurationJsonKey = (0, _FWJsonUtil.default)(videoPlayerConfiguration?.replayBadgeConfiguration);
302
+ const shadowVideoFeedConfigurationJsonKey = (0, _FWJsonUtil.default)(videoFeedConfiguration?.shadow);
384
303
  let key = `gShareBaseURL:${gShareBaseURL}`;
385
-
386
304
  if (_reactNative.Platform.OS === 'ios') {
387
305
  key += `_appLanguage:${appLanguage}`;
388
306
  }
389
-
390
307
  key += `_videoLaunchBehavior:${videoLaunchBehavior}`;
391
308
  key += `_adBadgeTextType:${adBadgeTextType}`;
392
309
  key += `_backgroundColorOfAdBadge:${backgroundColorOfAdBadge}`;
393
310
  key += `_textColorOfAdBadge:${textColorOfAdBadge}`;
394
-
395
311
  if (_reactNative.Platform.OS === 'android') {
396
312
  key += `_androidFontIsCustomOfAdBadge${androidFontIsCustomOfAdBadge}`;
397
313
  key += `_androidFontTypefaceNameOfAdBadge${androidFontTypefaceNameOfAdBadge}`;
398
314
  }
399
-
400
315
  key += `_dataTrackingLevel:${dataTrackingLevel}`;
401
316
  key += `_livestreamPlayerDesignVersion:${livestreamPlayerDesignVersion}`;
402
317
  key += `_source:${source}`;
@@ -405,38 +320,31 @@ class VideoFeed extends _react.default.Component {
405
320
  key += `_playlistGroup:${playlistGroup}`;
406
321
  key += `_dynamicContentParameters:${dynamicContentParametersString}`;
407
322
  key += `_hashtagFilterExpression:${hashtagFilterExpression}`;
408
- key += `_productIds:${productIds === null || productIds === void 0 ? void 0 : productIds.join(',')}`;
323
+ key += `_productIds:${productIds?.join(',')}`;
409
324
  key += `_contentId:${contentId}`;
410
325
  key += `_mode:${mode}`;
411
326
  key += `_enablePictureInPicture:${enablePictureInPicture}`;
412
327
  key += `_titleHidden:${titleHidden}`;
413
-
414
328
  if (_reactNative.Platform.OS === 'android') {
415
- var _titleGradientDrawabl;
416
-
417
329
  key += `_cornerRadius:${cornerRadius}`;
418
330
  key += `_titleTextColor:${titleTextColor}`;
419
331
  key += `_titleFontSize:${titleFontSize}`;
420
332
  key += `_titleNumberOfLines:${titleNumberOfLines}`;
421
- key += `_titleAndroidFontInfo.isCustom:${titleAndroidFontInfo === null || titleAndroidFontInfo === void 0 ? void 0 : titleAndroidFontInfo.isCustom}`;
422
- key += `_titleAndroidFontInfo.typefaceName:${titleAndroidFontInfo === null || titleAndroidFontInfo === void 0 ? void 0 : titleAndroidFontInfo.typefaceName}`;
423
- key += `_titleGradientDrawable.orientation:${titleGradientDrawable === null || titleGradientDrawable === void 0 ? void 0 : titleGradientDrawable.orientation}`;
424
- key += `_titleGradientDrawable.colors:${titleGradientDrawable === null || titleGradientDrawable === void 0 ? void 0 : (_titleGradientDrawabl = titleGradientDrawable.colors) === null || _titleGradientDrawabl === void 0 ? void 0 : _titleGradientDrawabl.join(',')}`;
333
+ key += `_titleAndroidFontInfo.isCustom:${titleAndroidFontInfo?.isCustom}`;
334
+ key += `_titleAndroidFontInfo.typefaceName:${titleAndroidFontInfo?.typefaceName}`;
335
+ key += `_titleGradientDrawable.orientation:${titleGradientDrawable?.orientation}`;
336
+ key += `_titleGradientDrawable.colors:${titleGradientDrawable?.colors?.join(',')}`;
425
337
  key += `_playIconHidden:${playIconHidden}`;
426
338
  key += `_playIconWidth:${playIconWidth}`;
427
339
  key += `_showAdBadge:${showAdBadge}`;
428
340
  }
429
-
430
341
  key += `_titlePosition:${titlePosition}`;
431
-
432
342
  if (_reactNative.Platform.OS === 'android') {
433
343
  key += `_enableAutoplay:${enableAutoplay}`;
434
344
  }
435
-
436
345
  key += `_gridColumns:${gridColumns}`;
437
346
  key += `_itemSpacing:${itemSpacing}`;
438
347
  key += `_shareBaseURL:${shareBaseURL}`;
439
-
440
348
  if (_reactNative.Platform.OS === 'android') {
441
349
  key += `_playerStyle:${playerStyle}`;
442
350
  key += `_videoCompleteAction:${videoCompleteAction}`;
@@ -449,27 +357,24 @@ class VideoFeed extends _react.default.Component {
449
357
  key += `_ctaHighlightDelayType:${ctaHighlightDelayType}`;
450
358
  key += `_ctaHighlightDelayValue:${ctaHighlightDelayValue}`;
451
359
  key += `_ctaWidth:${ctaWidth}`;
452
- key += `_buttonConfiguration.videoDetailButton:${this._generateButtonInfoString(buttonConfiguration === null || buttonConfiguration === void 0 ? void 0 : buttonConfiguration.videoDetailButton)}`;
453
- key += `_buttonConfiguration.closeButton:${this._generateButtonInfoString(buttonConfiguration === null || buttonConfiguration === void 0 ? void 0 : buttonConfiguration.closeButton)}`;
454
- key += `_buttonConfiguration.muteButton:${this._generateButtonInfoString(buttonConfiguration === null || buttonConfiguration === void 0 ? void 0 : buttonConfiguration.muteButton)}`;
455
- key += `_buttonConfiguration.unmuteButton:${this._generateButtonInfoString(buttonConfiguration === null || buttonConfiguration === void 0 ? void 0 : buttonConfiguration.unmuteButton)}`;
456
- key += `_buttonConfiguration.playButton:${this._generateButtonInfoString(buttonConfiguration === null || buttonConfiguration === void 0 ? void 0 : buttonConfiguration.playButton)}`;
457
- key += `_buttonConfiguration.pauseButton:${this._generateButtonInfoString(buttonConfiguration === null || buttonConfiguration === void 0 ? void 0 : buttonConfiguration.pauseButton)}`;
360
+ key += `_buttonConfiguration.videoDetailButton:${this._generateButtonInfoString(buttonConfiguration?.videoDetailButton)}`;
361
+ key += `_buttonConfiguration.closeButton:${this._generateButtonInfoString(buttonConfiguration?.closeButton)}`;
362
+ key += `_buttonConfiguration.muteButton:${this._generateButtonInfoString(buttonConfiguration?.muteButton)}`;
363
+ key += `_buttonConfiguration.unmuteButton:${this._generateButtonInfoString(buttonConfiguration?.unmuteButton)}`;
364
+ key += `_buttonConfiguration.playButton:${this._generateButtonInfoString(buttonConfiguration?.playButton)}`;
365
+ key += `_buttonConfiguration.pauseButton:${this._generateButtonInfoString(buttonConfiguration?.pauseButton)}`;
458
366
  key += `_videoPlayerLogoConfiguration:${videoPlayerLogoConfigurationJsonKey}`;
459
367
  key += `_countdownTimerConfiguration:${countdownTimerConfigurationJsonKey}`;
460
368
  key += `_showVideoDetailTitle:${showVideoDetailTitle}`;
461
369
  }
462
-
463
370
  key += `_requiresAds:${requiresAds}`;
464
371
  key += `_adsFetchTimeout:${adsFetchTimeout}`;
465
372
  key += `_vastAttributes:${vastAttributesString}`;
466
373
  key += `_replayBadgeVideoFeedConfiguration:${replayBadgeVideoFeedConfigurationJsonKey}`;
467
374
  key += `_replayBadgeVideoPlayerConfiguration:${replayBadgeVideoPlayerConfigurationJsonKey}`;
468
375
  key += `_shadowVideoFeedConfiguration:${shadowVideoFeedConfigurationJsonKey}`;
469
- console.log('video feed key', key);
470
- return /*#__PURE__*/_react.default.createElement(_FWVideoFeed.default, _extends({
471
- key: key
472
- }, this.props, {
376
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_FWVideoFeed.default, {
377
+ ...this.props,
473
378
  enablePictureInPicture: undefined,
474
379
  videoFeedConfiguration: videoFeedConfiguration,
475
380
  videoPlayerConfiguration: videoPlayerConfiguration,
@@ -479,119 +384,92 @@ class VideoFeed extends _react.default.Component {
479
384
  onVideoFeedDidStartPictureInPicture: this._onVideoFeedDidStartPictureInPicture,
480
385
  onVideoFeedDidStopPictureInPicture: this._onVideoFeedDidStopPictureInPicture,
481
386
  onVideoFeedGetFeedId: this._onVideoFeedGetFeedId,
482
- mode: mode !== null && mode !== void 0 ? mode : 'row'
483
- }));
387
+ mode: mode ?? 'row'
388
+ }, key);
484
389
  }
485
-
486
390
  _generateDynamicContentParametersString() {
487
391
  const {
488
392
  dynamicContentParameters
489
393
  } = this.props;
490
-
491
394
  if (!dynamicContentParameters) {
492
395
  return '';
493
396
  }
494
-
495
397
  let resultString = '';
496
398
  const sortedKeyList = Object.keys(dynamicContentParameters).sort();
497
-
498
399
  for (const key of sortedKeyList) {
499
- const value = dynamicContentParameters[key];
400
+ const value = dynamicContentParameters[key] ?? [];
500
401
  const valueString = value.join(',');
501
-
502
402
  if (resultString.length > 0) {
503
403
  resultString += '_';
504
404
  }
505
-
506
405
  resultString += `${key}:${valueString}`;
507
406
  }
508
-
509
407
  return resultString;
510
408
  }
511
-
512
409
  _generateVastAttributesString() {
513
410
  const {
514
411
  adConfiguration
515
412
  } = this.props;
516
- const vastAttributes = adConfiguration === null || adConfiguration === void 0 ? void 0 : adConfiguration.vastAttributes;
517
-
413
+ const vastAttributes = adConfiguration?.vastAttributes;
518
414
  if (!vastAttributes) {
519
415
  return '';
520
416
  }
521
-
522
417
  let resultString = '';
523
-
524
418
  for (const attribute of vastAttributes) {
525
419
  if (resultString.length > 0) {
526
420
  resultString += '_';
527
421
  }
528
-
529
422
  resultString += `${attribute.name}:${attribute.value}`;
530
423
  }
531
-
532
424
  return resultString;
533
425
  }
534
-
535
426
  _generateButtonInfoString(buttonInfo) {
536
- return `imageName:${buttonInfo === null || buttonInfo === void 0 ? void 0 : buttonInfo.imageName}_systemImageName:${buttonInfo === null || buttonInfo === void 0 ? void 0 : buttonInfo.systemImageName}_tintColor:${buttonInfo === null || buttonInfo === void 0 ? void 0 : buttonInfo.tintColor}`;
427
+ return `imageName:${buttonInfo?.imageName}_systemImageName:${buttonInfo?.systemImageName}_tintColor:${buttonInfo?.tintColor}`;
537
428
  }
538
-
539
429
  _getVideoFeedConfiguration() {
540
430
  const {
541
431
  videoFeedConfiguration
542
432
  } = this.props;
543
-
544
433
  if (!videoFeedConfiguration) {
545
434
  return videoFeedConfiguration;
546
435
  }
547
-
548
436
  let resultVideoFeedConfiguration = videoFeedConfiguration;
549
-
550
437
  if (resultVideoFeedConfiguration.gridColumns && Math.floor(resultVideoFeedConfiguration.gridColumns) !== resultVideoFeedConfiguration.gridColumns) {
551
438
  const gridColumns = Math.floor(resultVideoFeedConfiguration.gridColumns);
552
- resultVideoFeedConfiguration = { ...resultVideoFeedConfiguration,
439
+ resultVideoFeedConfiguration = {
440
+ ...resultVideoFeedConfiguration,
553
441
  gridColumns
554
442
  };
555
443
  }
556
-
557
444
  if (resultVideoFeedConfiguration.title && resultVideoFeedConfiguration.title.numberOfLines && Math.floor(resultVideoFeedConfiguration.title.numberOfLines) !== resultVideoFeedConfiguration.title.numberOfLines) {
558
445
  const numberOfLines = Math.floor(resultVideoFeedConfiguration.title.numberOfLines);
559
- resultVideoFeedConfiguration = { ...resultVideoFeedConfiguration,
560
- title: { ...resultVideoFeedConfiguration.title,
446
+ resultVideoFeedConfiguration = {
447
+ ...resultVideoFeedConfiguration,
448
+ title: {
449
+ ...resultVideoFeedConfiguration.title,
561
450
  numberOfLines
562
451
  }
563
452
  };
564
453
  }
565
-
566
454
  return resultVideoFeedConfiguration;
567
455
  }
568
-
569
456
  _getVideoPlayerConfiguration() {
570
457
  const {
571
458
  videoPlayerConfiguration,
572
459
  enablePictureInPicture
573
460
  } = this.props;
574
461
  let resultVideoPlayerConfiguration = videoPlayerConfiguration;
575
-
576
462
  if (typeof enablePictureInPicture === 'boolean') {
577
463
  if (!resultVideoPlayerConfiguration) {
578
464
  resultVideoPlayerConfiguration = {};
579
465
  }
580
-
581
- resultVideoPlayerConfiguration = { ...resultVideoPlayerConfiguration,
466
+ resultVideoPlayerConfiguration = {
467
+ ...resultVideoPlayerConfiguration,
582
468
  enablePictureInPicture
583
469
  };
584
470
  }
585
-
586
471
  return resultVideoPlayerConfiguration;
587
472
  }
588
-
589
473
  }
590
-
591
- _defineProperty(VideoFeed, "defaultProps", {
592
- mode: 'row'
593
- });
594
-
595
- var _default = VideoFeed;
596
- exports.default = _default;
474
+ var _default = exports.default = VideoFeed;
597
475
  //# sourceMappingURL=VideoFeed.js.map