react-native-firework-sdk 2.3.0 → 2.4.0-beta.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 (310) hide show
  1. package/FireworkVideoUI.xcframework/ios-arm64/FireworkVideoUI.framework/FireworkVideoUI +0 -0
  2. package/FireworkVideoUI.xcframework/ios-arm64/FireworkVideoUI.framework/Info.plist +0 -0
  3. package/FireworkVideoUI.xcframework/ios-arm64/FireworkVideoUI.framework/Modules/FireworkVideoUI.swiftmodule/arm64-apple-ios.abi.json +24 -10
  4. package/FireworkVideoUI.xcframework/ios-arm64/FireworkVideoUI.framework/Modules/FireworkVideoUI.swiftmodule/arm64-apple-ios.private.swiftinterface +1 -1
  5. package/FireworkVideoUI.xcframework/ios-arm64/FireworkVideoUI.framework/Modules/FireworkVideoUI.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  6. package/FireworkVideoUI.xcframework/ios-arm64/FireworkVideoUI.framework/Modules/FireworkVideoUI.swiftmodule/arm64-apple-ios.swiftinterface +1 -1
  7. package/FireworkVideoUI.xcframework/ios-arm64_x86_64-simulator/FireworkVideoUI.framework/FireworkVideoUI +0 -0
  8. package/FireworkVideoUI.xcframework/ios-arm64_x86_64-simulator/FireworkVideoUI.framework/Info.plist +0 -0
  9. package/FireworkVideoUI.xcframework/ios-arm64_x86_64-simulator/FireworkVideoUI.framework/Modules/FireworkVideoUI.swiftmodule/arm64-apple-ios-simulator.abi.json +24 -10
  10. package/FireworkVideoUI.xcframework/ios-arm64_x86_64-simulator/FireworkVideoUI.framework/Modules/FireworkVideoUI.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +1 -1
  11. package/FireworkVideoUI.xcframework/ios-arm64_x86_64-simulator/FireworkVideoUI.framework/Modules/FireworkVideoUI.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  12. package/FireworkVideoUI.xcframework/ios-arm64_x86_64-simulator/FireworkVideoUI.framework/Modules/FireworkVideoUI.swiftmodule/arm64-apple-ios-simulator.swiftinterface +1 -1
  13. package/FireworkVideoUI.xcframework/ios-arm64_x86_64-simulator/FireworkVideoUI.framework/Modules/FireworkVideoUI.swiftmodule/x86_64-apple-ios-simulator.abi.json +24 -10
  14. package/FireworkVideoUI.xcframework/ios-arm64_x86_64-simulator/FireworkVideoUI.framework/Modules/FireworkVideoUI.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +1 -1
  15. package/FireworkVideoUI.xcframework/ios-arm64_x86_64-simulator/FireworkVideoUI.framework/Modules/FireworkVideoUI.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  16. package/FireworkVideoUI.xcframework/ios-arm64_x86_64-simulator/FireworkVideoUI.framework/Modules/FireworkVideoUI.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +1 -1
  17. package/FireworkVideoUI.xcframework/ios-arm64_x86_64-simulator/FireworkVideoUI.framework/_CodeSignature/CodeResources +21 -21
  18. package/android/gradle.properties +1 -1
  19. package/android/src/main/java/com/fireworksdk/bridge/components/storyblock/StoryBlockFragment.kt +20 -0
  20. package/android/src/main/java/com/fireworksdk/bridge/components/videofeed/FWVideoFeed.kt +1 -69
  21. package/android/src/main/java/com/fireworksdk/bridge/models/FWVideoFeedPropsModel.kt +3 -1
  22. package/android/src/main/java/com/fireworksdk/bridge/models/FWVideoFeedPropsModelDeserializer.kt +21 -4
  23. package/android/src/main/java/com/fireworksdk/bridge/models/FWVideoFeedPropsModelSerializer.kt +15 -3
  24. package/android/src/main/java/com/fireworksdk/bridge/models/FWVideoPlayerConfigModel.kt +2 -1
  25. package/android/src/main/java/com/fireworksdk/bridge/models/FWVideoPlayerConfigModelDeserializer.kt +3 -0
  26. package/android/src/main/java/com/fireworksdk/bridge/models/FWVideoPlayerConfigModelSerializer.kt +2 -0
  27. package/android/src/main/java/com/fireworksdk/bridge/models/enums/FWVideoFeedSource.kt +3 -1
  28. package/android/src/main/java/com/fireworksdk/bridge/reactnative/FWReactNativeSDK.kt +6 -0
  29. package/android/src/main/java/com/fireworksdk/bridge/reactnative/manager/FWStoryBlockManager.kt +20 -15
  30. package/android/src/main/java/com/fireworksdk/bridge/reactnative/manager/FWVideoFeedManager.kt +45 -16
  31. package/android/src/main/java/com/fireworksdk/bridge/reactnative/module/FireworkSDKModule.kt +5 -0
  32. package/android/src/main/java/com/fireworksdk/bridge/utils/FWConfigUtil.kt +11 -1
  33. package/android/src/main/java/com/fireworksdk/bridge/utils/FWImageLoaderUtil.kt +16 -0
  34. package/ios/Components/StoryBlock.swift +9 -7
  35. package/ios/Components/StoryBlockConfiguration.swift +13 -0
  36. package/ios/Components/StoryBlockManager.m +6 -1
  37. package/ios/Components/VideoFeed.swift +5 -10
  38. package/ios/Components/VideoFeedManager.m +1 -2
  39. package/ios/Components/VideoPlayerConfiguration.swift +1 -0
  40. package/ios/FireworkSdk.xcodeproj/project.pbxproj +4 -26
  41. package/ios/FireworkVideoUI/FireworkVideoUI/Sources/AppLanguage/AppLanguageManager.swift +13 -2
  42. package/ios/FireworkVideoUI/FireworkVideoUI/Sources/AppLanguage/Extensions/UIKit/UIImageView+AppLanguage.swift +0 -34
  43. package/ios/FireworkVideoUI/Podfile +1 -1
  44. package/ios/FireworkVideoUI/Podfile.lock +4 -4
  45. package/ios/Models/RNToNative/RCTConvert+FireworkSDKModule.swift +1 -0
  46. package/ios/Models/RNToNative/RCTConvert+StoryBlock.swift +16 -1
  47. package/ios/Models/RNToNative/RCTConvert+VideoFeed.swift +2 -1
  48. package/ios/Modules/FireworkSDKModule/FireworkSDKModule.swift +8 -4
  49. package/ios/Modules/Shopping/ShoppingModule.swift +6 -5
  50. package/ios/react_native_firework_sdk.h +0 -1
  51. package/package.json +2 -2
  52. package/react-native-firework-sdk.podspec +1 -1
  53. package/src/FireworkSDK.ts +2 -2
  54. package/src/components/StoryBlock.tsx +65 -36
  55. package/src/components/VideoFeed.tsx +87 -74
  56. package/src/index.ts +2 -0
  57. package/src/models/AdBadgeConfiguration.ts +3 -0
  58. package/src/models/AndroidFontInfo.ts +1 -1
  59. package/src/models/OpenVideoPlayerConfiguration.ts +9 -0
  60. package/src/models/Product.ts +1 -1
  61. package/src/models/ProductUnit.ts +1 -1
  62. package/src/models/StoryBlockConfiguration.ts +1 -1
  63. package/src/models/StoryBlockNativeConfiguration.ts +9 -0
  64. package/src/models/StoryBlockSource.ts +2 -1
  65. package/src/models/VideoFeedConfiguration.ts +29 -4
  66. package/src/models/VideoFeedSource.ts +2 -1
  67. package/src/models/VideoPlayerCTAStyle.ts +6 -0
  68. package/src/models/VideoPlayerConfiguration.ts +10 -1
  69. package/src/models/VideoPlayerNativeConfiguration.ts +9 -0
  70. package/src/modules/FireworkSDKModule.ts +2 -2
  71. package/ios/Modules/Shopping/FWCartViewController.swift +0 -14
  72. package/ios/Utils/Extensions/Swizzle/UINavigationController+FWSwizzle.swift +0 -31
  73. package/ios/Utils/FWSwizzleLoader.h +0 -15
  74. package/ios/Utils/FWSwizzleLoader.m +0 -21
  75. package/ios/Utils/FWSwizzleLoader.swift +0 -13
  76. package/lib/commonjs/FWNavigator.js +0 -75
  77. package/lib/commonjs/FWNavigator.js.map +0 -1
  78. package/lib/commonjs/FireworkSDK.js +0 -341
  79. package/lib/commonjs/FireworkSDK.js.map +0 -1
  80. package/lib/commonjs/LiveStream.js +0 -66
  81. package/lib/commonjs/LiveStream.js.map +0 -1
  82. package/lib/commonjs/VideoShopping.js +0 -247
  83. package/lib/commonjs/VideoShopping.js.map +0 -1
  84. package/lib/commonjs/components/FWStoryBlock.js +0 -18
  85. package/lib/commonjs/components/FWStoryBlock.js.map +0 -1
  86. package/lib/commonjs/components/FWVideoFeed.js +0 -18
  87. package/lib/commonjs/components/FWVideoFeed.js.map +0 -1
  88. package/lib/commonjs/components/StoryBlock.js +0 -319
  89. package/lib/commonjs/components/StoryBlock.js.map +0 -1
  90. package/lib/commonjs/components/VideoFeed.js +0 -390
  91. package/lib/commonjs/components/VideoFeed.js.map +0 -1
  92. package/lib/commonjs/constants/FWErrorMessage.js +0 -15
  93. package/lib/commonjs/constants/FWErrorMessage.js.map +0 -1
  94. package/lib/commonjs/index.js +0 -84
  95. package/lib/commonjs/index.js.map +0 -1
  96. package/lib/commonjs/models/AdBadgeConfiguration.js +0 -2
  97. package/lib/commonjs/models/AdBadgeConfiguration.js.map +0 -1
  98. package/lib/commonjs/models/AdConfiguration.js +0 -2
  99. package/lib/commonjs/models/AdConfiguration.js.map +0 -1
  100. package/lib/commonjs/models/AndroidFontInfo.js +0 -2
  101. package/lib/commonjs/models/AndroidFontInfo.js.map +0 -1
  102. package/lib/commonjs/models/FWError.js +0 -2
  103. package/lib/commonjs/models/FWError.js.map +0 -1
  104. package/lib/commonjs/models/FWEventName.js +0 -29
  105. package/lib/commonjs/models/FWEventName.js.map +0 -1
  106. package/lib/commonjs/models/FWEvents.js +0 -6
  107. package/lib/commonjs/models/FWEvents.js.map +0 -1
  108. package/lib/commonjs/models/FeedItemDetails.js +0 -2
  109. package/lib/commonjs/models/FeedItemDetails.js.map +0 -1
  110. package/lib/commonjs/models/GradientDrawable.js +0 -2
  111. package/lib/commonjs/models/GradientDrawable.js.map +0 -1
  112. package/lib/commonjs/models/IOSFontInfo.js +0 -2
  113. package/lib/commonjs/models/IOSFontInfo.js.map +0 -1
  114. package/lib/commonjs/models/LiveStreamChatEventName.js +0 -15
  115. package/lib/commonjs/models/LiveStreamChatEventName.js.map +0 -1
  116. package/lib/commonjs/models/LiveStreamEventDetails.js +0 -2
  117. package/lib/commonjs/models/LiveStreamEventDetails.js.map +0 -1
  118. package/lib/commonjs/models/LiveStreamEventName.js +0 -17
  119. package/lib/commonjs/models/LiveStreamEventName.js.map +0 -1
  120. package/lib/commonjs/models/LiveStreamMessageDetails.js +0 -2
  121. package/lib/commonjs/models/LiveStreamMessageDetails.js.map +0 -1
  122. package/lib/commonjs/models/Product.js +0 -2
  123. package/lib/commonjs/models/Product.js.map +0 -1
  124. package/lib/commonjs/models/ProductInfoViewConfiguration.js +0 -2
  125. package/lib/commonjs/models/ProductInfoViewConfiguration.js.map +0 -1
  126. package/lib/commonjs/models/ProductUnit.js +0 -2
  127. package/lib/commonjs/models/ProductUnit.js.map +0 -1
  128. package/lib/commonjs/models/SDKInitOptions.js +0 -2
  129. package/lib/commonjs/models/SDKInitOptions.js.map +0 -1
  130. package/lib/commonjs/models/ShoppingCTAResult.js +0 -2
  131. package/lib/commonjs/models/ShoppingCTAResult.js.map +0 -1
  132. package/lib/commonjs/models/StoryBlockConfiguration.js +0 -6
  133. package/lib/commonjs/models/StoryBlockConfiguration.js.map +0 -1
  134. package/lib/commonjs/models/StoryBlockSource.js +0 -2
  135. package/lib/commonjs/models/StoryBlockSource.js.map +0 -1
  136. package/lib/commonjs/models/TrackPurchaseParameters.js +0 -2
  137. package/lib/commonjs/models/TrackPurchaseParameters.js.map +0 -1
  138. package/lib/commonjs/models/VideoFeedConfiguration.js +0 -2
  139. package/lib/commonjs/models/VideoFeedConfiguration.js.map +0 -1
  140. package/lib/commonjs/models/VideoFeedSource.js +0 -2
  141. package/lib/commonjs/models/VideoFeedSource.js.map +0 -1
  142. package/lib/commonjs/models/VideoPlaybackDetails.js +0 -2
  143. package/lib/commonjs/models/VideoPlaybackDetails.js.map +0 -1
  144. package/lib/commonjs/models/VideoPlaybackEventName.js +0 -26
  145. package/lib/commonjs/models/VideoPlaybackEventName.js.map +0 -1
  146. package/lib/commonjs/models/VideoPlayerCTADelay.js +0 -2
  147. package/lib/commonjs/models/VideoPlayerCTADelay.js.map +0 -1
  148. package/lib/commonjs/models/VideoPlayerCTAStyle.js +0 -6
  149. package/lib/commonjs/models/VideoPlayerCTAStyle.js.map +0 -1
  150. package/lib/commonjs/models/VideoPlayerCTAWidth.js +0 -2
  151. package/lib/commonjs/models/VideoPlayerCTAWidth.js.map +0 -1
  152. package/lib/commonjs/models/VideoPlayerCompleteAction.js +0 -2
  153. package/lib/commonjs/models/VideoPlayerCompleteAction.js.map +0 -1
  154. package/lib/commonjs/models/VideoPlayerConfiguration.js +0 -2
  155. package/lib/commonjs/models/VideoPlayerConfiguration.js.map +0 -1
  156. package/lib/commonjs/models/VideoPlayerStyle.js +0 -2
  157. package/lib/commonjs/models/VideoPlayerStyle.js.map +0 -1
  158. package/lib/commonjs/modules/FWNavigatorModule.js +0 -22
  159. package/lib/commonjs/modules/FWNavigatorModule.js.map +0 -1
  160. package/lib/commonjs/modules/FireworkSDKModule.js +0 -22
  161. package/lib/commonjs/modules/FireworkSDKModule.js.map +0 -1
  162. package/lib/commonjs/modules/LiveStreamModule.js +0 -22
  163. package/lib/commonjs/modules/LiveStreamModule.js.map +0 -1
  164. package/lib/commonjs/modules/ShoppingModule.js +0 -22
  165. package/lib/commonjs/modules/ShoppingModule.js.map +0 -1
  166. package/lib/commonjs/utils/FWGlobalState.js +0 -47
  167. package/lib/commonjs/utils/FWGlobalState.js.map +0 -1
  168. package/lib/commonjs/utils/FWLoggerUtil.js +0 -45
  169. package/lib/commonjs/utils/FWLoggerUtil.js.map +0 -1
  170. package/lib/module/FWNavigator.js +0 -58
  171. package/lib/module/FWNavigator.js.map +0 -1
  172. package/lib/module/FireworkSDK.js +0 -310
  173. package/lib/module/FireworkSDK.js.map +0 -1
  174. package/lib/module/LiveStream.js +0 -53
  175. package/lib/module/LiveStream.js.map +0 -1
  176. package/lib/module/VideoShopping.js +0 -222
  177. package/lib/module/VideoShopping.js.map +0 -1
  178. package/lib/module/components/FWStoryBlock.js +0 -8
  179. package/lib/module/components/FWStoryBlock.js.map +0 -1
  180. package/lib/module/components/FWVideoFeed.js +0 -8
  181. package/lib/module/components/FWVideoFeed.js.map +0 -1
  182. package/lib/module/components/StoryBlock.js +0 -282
  183. package/lib/module/components/StoryBlock.js.map +0 -1
  184. package/lib/module/components/VideoFeed.js +0 -365
  185. package/lib/module/components/VideoFeed.js.map +0 -1
  186. package/lib/module/constants/FWErrorMessage.js +0 -7
  187. package/lib/module/constants/FWErrorMessage.js.map +0 -1
  188. package/lib/module/index.js +0 -12
  189. package/lib/module/index.js.map +0 -1
  190. package/lib/module/models/AdBadgeConfiguration.js +0 -2
  191. package/lib/module/models/AdBadgeConfiguration.js.map +0 -1
  192. package/lib/module/models/AdConfiguration.js +0 -2
  193. package/lib/module/models/AdConfiguration.js.map +0 -1
  194. package/lib/module/models/AndroidFontInfo.js +0 -2
  195. package/lib/module/models/AndroidFontInfo.js.map +0 -1
  196. package/lib/module/models/FWError.js +0 -2
  197. package/lib/module/models/FWError.js.map +0 -1
  198. package/lib/module/models/FWEventName.js +0 -22
  199. package/lib/module/models/FWEventName.js.map +0 -1
  200. package/lib/module/models/FWEvents.js +0 -2
  201. package/lib/module/models/FWEvents.js.map +0 -1
  202. package/lib/module/models/FeedItemDetails.js +0 -2
  203. package/lib/module/models/FeedItemDetails.js.map +0 -1
  204. package/lib/module/models/GradientDrawable.js +0 -2
  205. package/lib/module/models/GradientDrawable.js.map +0 -1
  206. package/lib/module/models/IOSFontInfo.js +0 -2
  207. package/lib/module/models/IOSFontInfo.js.map +0 -1
  208. package/lib/module/models/LiveStreamChatEventName.js +0 -8
  209. package/lib/module/models/LiveStreamChatEventName.js.map +0 -1
  210. package/lib/module/models/LiveStreamEventDetails.js +0 -2
  211. package/lib/module/models/LiveStreamEventDetails.js.map +0 -1
  212. package/lib/module/models/LiveStreamEventName.js +0 -10
  213. package/lib/module/models/LiveStreamEventName.js.map +0 -1
  214. package/lib/module/models/LiveStreamMessageDetails.js +0 -2
  215. package/lib/module/models/LiveStreamMessageDetails.js.map +0 -1
  216. package/lib/module/models/Product.js +0 -2
  217. package/lib/module/models/Product.js.map +0 -1
  218. package/lib/module/models/ProductInfoViewConfiguration.js +0 -2
  219. package/lib/module/models/ProductInfoViewConfiguration.js.map +0 -1
  220. package/lib/module/models/ProductUnit.js +0 -2
  221. package/lib/module/models/ProductUnit.js.map +0 -1
  222. package/lib/module/models/SDKInitOptions.js +0 -2
  223. package/lib/module/models/SDKInitOptions.js.map +0 -1
  224. package/lib/module/models/ShoppingCTAResult.js +0 -2
  225. package/lib/module/models/ShoppingCTAResult.js.map +0 -1
  226. package/lib/module/models/StoryBlockConfiguration.js +0 -2
  227. package/lib/module/models/StoryBlockConfiguration.js.map +0 -1
  228. package/lib/module/models/StoryBlockSource.js +0 -2
  229. package/lib/module/models/StoryBlockSource.js.map +0 -1
  230. package/lib/module/models/TrackPurchaseParameters.js +0 -2
  231. package/lib/module/models/TrackPurchaseParameters.js.map +0 -1
  232. package/lib/module/models/VideoFeedConfiguration.js +0 -2
  233. package/lib/module/models/VideoFeedConfiguration.js.map +0 -1
  234. package/lib/module/models/VideoFeedSource.js +0 -2
  235. package/lib/module/models/VideoFeedSource.js.map +0 -1
  236. package/lib/module/models/VideoPlaybackDetails.js +0 -2
  237. package/lib/module/models/VideoPlaybackDetails.js.map +0 -1
  238. package/lib/module/models/VideoPlaybackEventName.js +0 -19
  239. package/lib/module/models/VideoPlaybackEventName.js.map +0 -1
  240. package/lib/module/models/VideoPlayerCTADelay.js +0 -2
  241. package/lib/module/models/VideoPlayerCTADelay.js.map +0 -1
  242. package/lib/module/models/VideoPlayerCTAStyle.js +0 -2
  243. package/lib/module/models/VideoPlayerCTAStyle.js.map +0 -1
  244. package/lib/module/models/VideoPlayerCTAWidth.js +0 -2
  245. package/lib/module/models/VideoPlayerCTAWidth.js.map +0 -1
  246. package/lib/module/models/VideoPlayerCompleteAction.js +0 -2
  247. package/lib/module/models/VideoPlayerCompleteAction.js.map +0 -1
  248. package/lib/module/models/VideoPlayerConfiguration.js +0 -2
  249. package/lib/module/models/VideoPlayerConfiguration.js.map +0 -1
  250. package/lib/module/models/VideoPlayerStyle.js +0 -2
  251. package/lib/module/models/VideoPlayerStyle.js.map +0 -1
  252. package/lib/module/modules/FWNavigatorModule.js +0 -13
  253. package/lib/module/modules/FWNavigatorModule.js.map +0 -1
  254. package/lib/module/modules/FireworkSDKModule.js +0 -12
  255. package/lib/module/modules/FireworkSDKModule.js.map +0 -1
  256. package/lib/module/modules/LiveStreamModule.js +0 -12
  257. package/lib/module/modules/LiveStreamModule.js.map +0 -1
  258. package/lib/module/modules/ShoppingModule.js +0 -12
  259. package/lib/module/modules/ShoppingModule.js.map +0 -1
  260. package/lib/module/utils/FWGlobalState.js +0 -39
  261. package/lib/module/utils/FWGlobalState.js.map +0 -1
  262. package/lib/module/utils/FWLoggerUtil.js +0 -36
  263. package/lib/module/utils/FWLoggerUtil.js.map +0 -1
  264. package/lib/typescript/FWNavigator.d.ts +0 -26
  265. package/lib/typescript/FireworkSDK.d.ts +0 -113
  266. package/lib/typescript/LiveStream.d.ts +0 -21
  267. package/lib/typescript/VideoShopping.d.ts +0 -74
  268. package/lib/typescript/components/FWStoryBlock.d.ts +0 -2
  269. package/lib/typescript/components/FWVideoFeed.d.ts +0 -2
  270. package/lib/typescript/components/StoryBlock.d.ts +0 -65
  271. package/lib/typescript/components/VideoFeed.d.ts +0 -105
  272. package/lib/typescript/constants/FWErrorMessage.d.ts +0 -2
  273. package/lib/typescript/index.d.ts +0 -52
  274. package/lib/typescript/models/AdBadgeConfiguration.d.ts +0 -22
  275. package/lib/typescript/models/AdConfiguration.d.ts +0 -22
  276. package/lib/typescript/models/AndroidFontInfo.d.ts +0 -14
  277. package/lib/typescript/models/FWError.d.ts +0 -10
  278. package/lib/typescript/models/FWEventName.d.ts +0 -19
  279. package/lib/typescript/models/FWEvents.d.ts +0 -70
  280. package/lib/typescript/models/FeedItemDetails.d.ts +0 -54
  281. package/lib/typescript/models/GradientDrawable.d.ts +0 -5
  282. package/lib/typescript/models/IOSFontInfo.d.ts +0 -21
  283. package/lib/typescript/models/LiveStreamChatEventName.d.ts +0 -7
  284. package/lib/typescript/models/LiveStreamEventDetails.d.ts +0 -3
  285. package/lib/typescript/models/LiveStreamEventName.d.ts +0 -15
  286. package/lib/typescript/models/LiveStreamMessageDetails.d.ts +0 -14
  287. package/lib/typescript/models/Product.d.ts +0 -23
  288. package/lib/typescript/models/ProductInfoViewConfiguration.d.ts +0 -38
  289. package/lib/typescript/models/ProductUnit.d.ts +0 -38
  290. package/lib/typescript/models/SDKInitOptions.d.ts +0 -11
  291. package/lib/typescript/models/ShoppingCTAResult.d.ts +0 -11
  292. package/lib/typescript/models/StoryBlockConfiguration.d.ts +0 -37
  293. package/lib/typescript/models/StoryBlockSource.d.ts +0 -1
  294. package/lib/typescript/models/TrackPurchaseParameters.d.ts +0 -26
  295. package/lib/typescript/models/VideoFeedConfiguration.d.ts +0 -108
  296. package/lib/typescript/models/VideoFeedSource.d.ts +0 -1
  297. package/lib/typescript/models/VideoPlaybackDetails.d.ts +0 -47
  298. package/lib/typescript/models/VideoPlaybackEventName.d.ts +0 -51
  299. package/lib/typescript/models/VideoPlayerCTADelay.d.ts +0 -11
  300. package/lib/typescript/models/VideoPlayerCTAStyle.d.ts +0 -21
  301. package/lib/typescript/models/VideoPlayerCTAWidth.d.ts +0 -1
  302. package/lib/typescript/models/VideoPlayerCompleteAction.d.ts +0 -1
  303. package/lib/typescript/models/VideoPlayerConfiguration.d.ts +0 -51
  304. package/lib/typescript/models/VideoPlayerStyle.d.ts +0 -1
  305. package/lib/typescript/modules/FWNavigatorModule.d.ts +0 -11
  306. package/lib/typescript/modules/FireworkSDKModule.d.ts +0 -19
  307. package/lib/typescript/modules/LiveStreamModule.d.ts +0 -8
  308. package/lib/typescript/modules/ShoppingModule.d.ts +0 -18
  309. package/lib/typescript/utils/FWGlobalState.d.ts +0 -10
  310. package/lib/typescript/utils/FWLoggerUtil.d.ts +0 -6
@@ -1,65 +0,0 @@
1
- import React from 'react';
2
- import { StyleProp, ViewStyle } from 'react-native';
3
- import type AdConfiguration from '../models/AdConfiguration';
4
- import type FWError from '../models/FWError';
5
- import type { StoryBlockConfiguration } from '../models/StoryBlockConfiguration';
6
- import type { StoryBlockSource } from '../models/StoryBlockSource';
7
- export interface IStoryBlockMethods {
8
- /**
9
- * Play the story block.
10
- */
11
- play: () => void;
12
- /**
13
- * Pause the story block.
14
- */
15
- pause: () => void;
16
- }
17
- /**
18
- * The props type of StoryBlock component.
19
- */
20
- export interface IStoryBlockProps {
21
- /**
22
- * Standard React Native View Style.
23
- */
24
- style?: StyleProp<ViewStyle>;
25
- /**
26
- * One of four available story block sources.
27
- */
28
- source: StoryBlockSource;
29
- /**
30
- * Channel id of the story block. Required when the source is set as channel or playlist or dynamicContent.
31
- */
32
- channel?: string;
33
- /**
34
- * Playlist id of the story block. Please note channel id is necessary. Required when the source is set as playlist.
35
- */
36
- playlist?: string;
37
- /**
38
- * The dynamic content parameters of the story block. Required when the source is set as dynamicContent.
39
- */
40
- dynamicContentParameters?: {
41
- [key: string]: string[];
42
- };
43
- /**
44
- * Hashtag filter expression is an s-expression used to provide feeds filtered by hashtags with specified criteria.
45
- * Queries are specified with boolean predicates on what hashtags are there on the video.
46
- * For instance, (and sport food) (or sport food) (and sport (or food comedy)) sport are all valid expressions.
47
- * Non-UTF-8 characters are not allowed. If using boolean predicates, the expression needs to be wrapped with parenthesis.
48
- */
49
- hashtagFilterExpression?: string;
50
- /**
51
- * Specifies if Picture in Picture is enabled. Only supported on iOS.
52
- */
53
- enablePictureInPicture?: boolean;
54
- /**
55
- * Ad configuration of the feed. Only supported on iOS.
56
- */
57
- adConfiguration?: AdConfiguration;
58
- storyBlockConfiguration?: StoryBlockConfiguration;
59
- /**
60
- * The feed loading result callback. It means loading successfully when error equals to undefined.
61
- */
62
- onStoryBlockLoadFinished?: (error?: FWError) => void;
63
- }
64
- declare const _default: React.ForwardRefExoticComponent<IStoryBlockProps & React.RefAttributes<IStoryBlockMethods>>;
65
- export default _default;
@@ -1,105 +0,0 @@
1
- import React from 'react';
2
- import { StyleProp, ViewStyle } from 'react-native';
3
- import type AdConfiguration from '../models/AdConfiguration';
4
- import type FWError from '../models/FWError';
5
- import type VideoFeedConfiguration from '../models/VideoFeedConfiguration';
6
- import type { VideoFeedSource } from '../models/VideoFeedSource';
7
- import type VideoPlayerConfiguration from '../models/VideoPlayerConfiguration';
8
- export type VideoFeedMode = 'row' | 'column' | 'grid';
9
- /**
10
- * The props of VideoFeed component.
11
- */
12
- export interface IVideoFeedProps {
13
- /**
14
- * Standard React Native View Style.
15
- */
16
- style?: StyleProp<ViewStyle>;
17
- /**
18
- * One of five available video feed sources.The playlistGroup is only supported on iOS
19
- */
20
- source: VideoFeedSource;
21
- /**
22
- * Channel id of the feed. Required when the source is set as channel or playlist or dynamicContent.
23
- */
24
- channel?: string;
25
- /**
26
- * Playlist id of the feed. Please note channel id is necessary. Required when the source is set as playlist.
27
- */
28
- playlist?: string;
29
- /**
30
- * PlaylistGroup id of the feed. Required when the source is set as playlistGroup. Only supported on iOS.
31
- */
32
- playlistGroup?: string;
33
- /**
34
- * The dynamic content parameters of the feed. Required when the source is set as dynamicContent.
35
- */
36
- dynamicContentParameters?: {
37
- [key: string]: string[];
38
- };
39
- /**
40
- * Hashtag filter expression is an s-expression used to provide feeds filtered by hashtags with specified criteria.
41
- * Queries are specified with boolean predicates on what hashtags are there on the video.
42
- * For instance, (and sport food) (or sport food) (and sport (or food comedy)) sport are all valid expressions.
43
- * Non-UTF-8 characters are not allowed. If using boolean predicates, the expression needs to be wrapped with parenthesis.
44
- */
45
- hashtagFilterExpression?: string;
46
- /**
47
- * One of three available display modes. Defaults to row.
48
- */
49
- mode?: VideoFeedMode;
50
- /**
51
- * Specifies if Picture in Picture is enabled.
52
- */
53
- enablePictureInPicture?: boolean;
54
- /**
55
- * Configuration of the feed.
56
- */
57
- videoFeedConfiguration?: VideoFeedConfiguration;
58
- /**
59
- * Configuration of the player.
60
- */
61
- videoPlayerConfiguration?: VideoPlayerConfiguration;
62
- /**
63
- * Ad configuration of the feed. Only supported on iOS.
64
- */
65
- adConfiguration?: AdConfiguration;
66
- /**
67
- * The feed loading result callback. It means loading successfully when error equals to undefined. Only supported on iOS.
68
- */
69
- onVideoFeedLoadFinished?: (error?: FWError) => void;
70
- }
71
- interface IVideoFeedState {
72
- sdkInitCalled: boolean;
73
- }
74
- /**
75
- * VideoFeed component.
76
- */
77
- declare class VideoFeed extends React.Component<IVideoFeedProps, IVideoFeedState> {
78
- /**
79
- * @ignore
80
- */
81
- static defaultProps: {
82
- mode: string;
83
- };
84
- private _nativeComponentRef;
85
- private _subscriptions;
86
- constructor(props: IVideoFeedProps);
87
- refresh: () => void;
88
- private _onVideoFeedLoadFinished;
89
- /**
90
- * @ignore
91
- */
92
- componentDidMount(): void;
93
- /**
94
- * @ignore
95
- */
96
- componentWillUnmount(): void;
97
- /**
98
- * @ignore
99
- */
100
- render(): JSX.Element | null;
101
- private _generateDynamicContentParametersString;
102
- private _generateVastAttributesString;
103
- private _getVideoFeedConfiguration;
104
- }
105
- export default VideoFeed;
@@ -1,2 +0,0 @@
1
- declare const LINKING_ERROR: string;
2
- export { LINKING_ERROR };
@@ -1,52 +0,0 @@
1
- import type { IStoryBlockMethods, IStoryBlockProps } from './components/StoryBlock';
2
- import StoryBlock from './components/StoryBlock';
3
- import type { IVideoFeedProps, VideoFeedMode } from './components/VideoFeed';
4
- import VideoFeed from './components/VideoFeed';
5
- import type { CustomCTAClickCallback, SDKInitCallback, VideoFeedClickCallback, VideoPlaybackCallback } from './FireworkSDK';
6
- import FireworkSDK from './FireworkSDK';
7
- import FWNavigator from './FWNavigator';
8
- import type { onLiveStreamChatEventCallback, onLiveStreamEventCallback } from './LiveStream';
9
- import LiveStream from './LiveStream';
10
- import type AdBadgeConfiguration from './models/AdBadgeConfiguration';
11
- import type { AdBadgeTextType } from './models/AdBadgeConfiguration';
12
- import type AdConfiguration from './models/AdConfiguration';
13
- import type { VastAttribute } from './models/AdConfiguration';
14
- import type AndroidFontInfo from './models/AndroidFontInfo';
15
- import type FeedItemDetails from './models/FeedItemDetails';
16
- import type FWError from './models/FWError';
17
- import type { CustomClickLinkButtonEvent, CustomCTAClickEvent, LiveStreamChatEvent, LiveStreamEvent, SDKInitEvent, ShoppingCTAEvent, UpdateProductDetailsEvent, VideoFeedClickEvent, VideoPlaybackEvent } from './models/FWEvents';
18
- import type GradientDrawable from './models/GradientDrawable';
19
- import type { GradientDrawableOrientation } from './models/GradientDrawable';
20
- import type IOSFontInfo from './models/IOSFontInfo';
21
- import type { IOSSystemFontStyle, IOSSystemFontWeight } from './models/IOSFontInfo';
22
- import LiveStreamChatEventName from './models/LiveStreamChatEventName';
23
- import type LiveStreamEventDetails from './models/LiveStreamEventDetails';
24
- import LiveStreamEventName from './models/LiveStreamEventName';
25
- import type LiveStreamMessageDetails from './models/LiveStreamMessageDetails';
26
- import type Product from './models/Product';
27
- import type ProductInfoViewConfiguration from './models/ProductInfoViewConfiguration';
28
- import type { LinkButtonConfiguration, ShoppingCTAButtonConfiguration, ShoppingCTAButtonText } from './models/ProductInfoViewConfiguration';
29
- import type ProductUnit from './models/ProductUnit';
30
- import type { ProductPrice, ProductUnitOption } from './models/ProductUnit';
31
- import type SDKInitOptions from './models/SDKInitOptions';
32
- import type { VideoLaunchBehavior } from './models/SDKInitOptions';
33
- import type ShoppingCTAResult from './models/ShoppingCTAResult';
34
- import type { StoryBlockConfiguration } from './models/StoryBlockConfiguration';
35
- import type { StoryBlockSource } from './models/StoryBlockSource';
36
- import type TrackPurchaseParameters from './models/TrackPurchaseParameters';
37
- import type VideoFeedConfiguration from './models/VideoFeedConfiguration';
38
- import type { VideoFeedPadding, VideoFeedPlayIconConfiguration, VideoFeedTitleConfiguration, VideoFeedTitlePosition } from './models/VideoFeedConfiguration';
39
- import type { VideoFeedSource } from './models/VideoFeedSource';
40
- import type VideoPlaybackDetails from './models/VideoPlaybackDetails';
41
- import type { VideoPlayerSize } from './models/VideoPlaybackDetails';
42
- import VideoPlaybackEventName from './models/VideoPlaybackEventName';
43
- import type { VideoPlayerCompleteAction } from './models/VideoPlayerCompleteAction';
44
- import type VideoPlayerConfiguration from './models/VideoPlayerConfiguration';
45
- import type { VideoPlayerCTADelay, VideoPlayerCTADelayType } from './models/VideoPlayerCTADelay';
46
- import type { VideoPlayerCTAStyle } from './models/VideoPlayerCTAStyle';
47
- import type { VideoPlayerCTAWidth } from './models/VideoPlayerCTAWidth';
48
- import type { VideoPlayerStyle } from './models/VideoPlayerStyle';
49
- import type { CustomClickCartIconCallback, CustomClickLinkButtonCallback, ShoppingCTACallback, UpdateProductDetailsCallback } from './VideoShopping';
50
- import VideoShopping from './VideoShopping';
51
- export default FireworkSDK;
52
- export { AdBadgeConfiguration, AdBadgeTextType, AdConfiguration, AndroidFontInfo, CustomClickCartIconCallback, CustomClickLinkButtonCallback, CustomClickLinkButtonEvent, CustomCTAClickCallback, CustomCTAClickEvent, FeedItemDetails, FireworkSDK, FWError, FWNavigator, GradientDrawable, GradientDrawableOrientation, IOSFontInfo, IOSSystemFontStyle, IOSSystemFontWeight, IStoryBlockMethods, IStoryBlockProps, IVideoFeedProps, LinkButtonConfiguration, LiveStream, LiveStreamChatEvent, LiveStreamChatEventName, LiveStreamEvent, LiveStreamEventDetails, LiveStreamEventName, LiveStreamMessageDetails, onLiveStreamChatEventCallback, onLiveStreamEventCallback, Product, ProductInfoViewConfiguration, ProductPrice, ProductUnit, ProductUnitOption, SDKInitCallback, SDKInitEvent, SDKInitOptions, ShoppingCTAButtonConfiguration, ShoppingCTAButtonText, ShoppingCTACallback, ShoppingCTAEvent, ShoppingCTAResult, StoryBlock, StoryBlockConfiguration, StoryBlockSource, TrackPurchaseParameters, UpdateProductDetailsCallback, UpdateProductDetailsEvent, VastAttribute, VideoFeed, VideoFeedClickCallback, VideoFeedClickEvent, VideoFeedConfiguration, VideoFeedMode, VideoFeedPadding, VideoFeedPlayIconConfiguration, VideoFeedSource, VideoFeedTitleConfiguration, VideoFeedTitlePosition, VideoLaunchBehavior, VideoPlaybackCallback, VideoPlaybackDetails, VideoPlaybackEvent, VideoPlaybackEventName, VideoPlayerCompleteAction, VideoPlayerConfiguration, VideoPlayerCTADelay, VideoPlayerCTADelayType, VideoPlayerCTAStyle, VideoPlayerCTAWidth, VideoPlayerSize, VideoPlayerStyle, VideoShopping, };
@@ -1,22 +0,0 @@
1
- import type AndroidFontInfo from './AndroidFontInfo';
2
- export type AdBadgeTextType = 'ad' | 'sponsored';
3
- export default interface AdBadgeConfiguration {
4
- /**
5
- * The text type of the ad badge.
6
- */
7
- badgeTextType?: AdBadgeTextType;
8
- /**
9
- * The background color of the ad badge.
10
- */
11
- backgroundColor?: string;
12
- /**
13
- * The color of the ad badge text.
14
- */
15
- textColor?: string;
16
- /**
17
- * The Android font info of ad badge.
18
- * The property is ignored when fontSize is not set.
19
- * Only supported on Android.
20
- */
21
- androidFontInfo?: AndroidFontInfo;
22
- }
@@ -1,22 +0,0 @@
1
- export interface VastAttribute {
2
- name: string;
3
- value: string;
4
- }
5
- export default interface AdConfiguration {
6
- /**
7
- * Custom VAST attributes to be used when fetching ads.
8
- */
9
- vastAttributes?: VastAttribute[];
10
- /**
11
- * Indicates that the feed is dependent on ads being fetched before displaying any feed content.
12
- * Default value is false.
13
- * Warning: This will cause a delay in feed rendering. Use only when necessary.
14
- */
15
- requiresAds?: boolean;
16
- /**
17
- * Specifies the timeout(The unit of time is seconds) to be applied when ads are required.
18
- * Default value is 10.
19
- * This property is ignored when requiresAd is false
20
- */
21
- adsFetchTimeout?: number;
22
- }
@@ -1,14 +0,0 @@
1
- /**
2
- * Only supported on Android.
3
- */
4
- export default interface AndroidFontInfo {
5
- /**
6
- * Whether to use a custom font. Default is false.
7
- */
8
- isCustom?: boolean;
9
- /**
10
- * The Android system typeface name, such as "DEFAULT", "DEFAULT_BOLD", "SANS_SERIF", "SERIF", "MONOSPACE".
11
- * Or custom font name, such as: "fonts/kaushanscript_regular.ttf". (You need to set the isCustom=true and put the font file in the "assets" directory: app/src/main/assets/fonts/kaushanscript_regular.ttf)
12
- */
13
- typefaceName?: string;
14
- }
@@ -1,10 +0,0 @@
1
- export default interface FWError {
2
- /**
3
- * Error name
4
- */
5
- name: string;
6
- /**
7
- * Error Reason
8
- */
9
- reason?: string | null;
10
- }
@@ -1,19 +0,0 @@
1
- export declare enum FWEventName {
2
- SDKInit = "fw:sdk-init",
3
- CustomCTAClick = "fw:custom-cta-click",
4
- VideoPlayback = "fw:video-playback",
5
- VideoFeedClick = "fw:video-feed-click",
6
- AddToCart = "fw:shopping:add-to-cart",
7
- ShoppingCTAButtonClick = "fw:shopping:cta-button-click",
8
- ClickCartIcon = "fw:shopping:click-cart-icon",
9
- UpdateProductDetails = "fw:shopping:update-product-details",
10
- LiveStream = "fw:livestream",
11
- LiveStreamChat = "fw:livestream-chat",
12
- ShareBaseURLUpdated = "fw:share-base-url-updated",
13
- VideoLaunchBehaviorUpdated = "fw:video-launch-behavior-updated",
14
- AdBadgeConfigurationUpdated = "fw:ad-badge-configuration-updated",
15
- AppLanguageUpdated = "fw:app-language-updated",
16
- NativeAppLanguageUpdated = "fw:native-app-language-updated",
17
- LogMessage = "fw:log-message",
18
- CustomLinkButtonClick = "fw:shopping:custom-link-button-click"
19
- }
@@ -1,70 +0,0 @@
1
- import type VideoPlaybackDetails from './VideoPlaybackDetails';
2
- import type FWError from './FWError';
3
- import type VideoPlaybackEventName from './VideoPlaybackEventName';
4
- import type FeedItemDetails from './FeedItemDetails';
5
- import type LiveStreamMessageDetails from './LiveStreamMessageDetails';
6
- import type LiveStreamChatEventName from './LiveStreamChatEventName';
7
- import type LiveStreamEventDetails from './LiveStreamEventDetails';
8
- import type LiveStreamEventName from './LiveStreamEventName';
9
- export interface SDKInitEvent {
10
- /**
11
- * If error equals undefined/null, it means the initialization is successful.
12
- */
13
- error?: FWError | null;
14
- }
15
- export interface CustomCTAClickEvent {
16
- /**
17
- * Action URL that is associated with this CTA
18
- */
19
- url: string;
20
- }
21
- export interface VideoPlaybackEvent {
22
- eventName: VideoPlaybackEventName;
23
- info: VideoPlaybackDetails;
24
- }
25
- export interface VideoFeedClickEvent {
26
- info: FeedItemDetails;
27
- }
28
- export interface ShoppingCTAEvent {
29
- /**
30
- * The url for the product unit
31
- */
32
- url: string;
33
- /**
34
- * A unique identifier of the product.
35
- */
36
- productId: string;
37
- /**
38
- * A unique identifier of the product unit.
39
- */
40
- unitId: string;
41
- }
42
- export interface UpdateProductDetailsEvent {
43
- /**
44
- * A unique identifier list of the products.
45
- */
46
- productIds: string[];
47
- }
48
- export interface CustomClickLinkButtonEvent {
49
- /**
50
- * The url for the product unit
51
- */
52
- url: string;
53
- /**
54
- * A unique identifier of the product.
55
- */
56
- productId: string;
57
- /**
58
- * A unique identifier of the product unit.
59
- */
60
- unitId: string;
61
- }
62
- export interface LiveStreamEvent {
63
- eventName: LiveStreamEventName;
64
- info: LiveStreamEventDetails;
65
- }
66
- export interface LiveStreamChatEvent {
67
- eventName: LiveStreamChatEventName;
68
- message: LiveStreamMessageDetails;
69
- liveStream: LiveStreamEventDetails;
70
- }
@@ -1,54 +0,0 @@
1
- import type { VideoFeedSource } from '../models/VideoFeedSource';
2
- export default interface FeedItemDetails {
3
- /**
4
- * The index of the thumbnail tapped in the feed.
5
- */
6
- index: number;
7
- /**
8
- * The unique id of the thumbnail.
9
- * If the source is playlistGroup this value will represent the playlist's id; otherwise this value is the id of the selected video.
10
- */
11
- id: string;
12
- /**
13
- * The total duration of the video.
14
- * If the source is playlistGroup this value will always be 0.
15
- * Otherwise this value is the duration of the selected video.
16
- */
17
- duration: number;
18
- /**
19
- * The title of the feed item.
20
- * Currently, the property doesn't have value on the Android side when the source is playlistGroup.
21
- * But the property has value for other feed sources.
22
- */
23
- title?: string | null;
24
- /**
25
- * The source of the feed.
26
- */
27
- source: VideoFeedSource;
28
- /**
29
- * The channel id of the feed.
30
- * The property has value when the source is channel or playlist or dynamicContent.
31
- */
32
- channel?: string | null;
33
- /**
34
- * Playlist id of the feed. The property has value when the source is playlist.
35
- */
36
- playlist?: string | null;
37
- /**
38
- * Playlist group id of the feed. The property has value when the source is playlistGroup.
39
- */
40
- playlistGroup?: string | null;
41
- /**
42
- * The dynamic content parameters of the feed. The property has value when the source is dynamicContent.
43
- */
44
- dynamicContentParameters?: {
45
- [key: string]: string[];
46
- } | null;
47
- /**
48
- * Hashtag filter expression is an s-expression used to provide feeds filtered by hashtags with specified criteria.
49
- * Queries are specified with boolean predicates on what hashtags are there on the video.
50
- * For instance, (and sport food) (or sport food) (and sport (or food comedy)) sport are all valid expressions.
51
- * Non-UTF-8 characters are not allowed. If using boolean predicates, the expression needs to be wrapped with parenthesis.
52
- */
53
- hashtagFilterExpression?: string;
54
- }
@@ -1,5 +0,0 @@
1
- export type GradientDrawableOrientation = 'TOP_BOTTOM' | 'TR_BL' | 'RIGHT_LEFT' | 'BR_TL' | 'BOTTOM_TOP' | 'BL_TR' | 'LEFT_RIGHT' | 'TL_BR';
2
- export default interface GradientDrawable {
3
- orientation?: GradientDrawableOrientation;
4
- colors?: string[];
5
- }
@@ -1,21 +0,0 @@
1
- export type IOSSystemFontStyle = 'normal' | 'italic';
2
- export type IOSSystemFontWeight = 'ultraLight' | 'thin' | 'light' | 'regular' | 'medium' | 'semibold' | 'bold' | 'heavy' | 'black';
3
- export default interface IOSFontInfo {
4
- /**
5
- * The iOS font name, such as "Helvetica", "Helvetica-Bold".
6
- * Only supported on iOS.
7
- */
8
- fontName?: string;
9
- /**
10
- * The iOS system font style.
11
- * The property is ignored when fontName is non-empty.
12
- * Only supported on iOS.
13
- */
14
- systemFontStyle?: IOSSystemFontStyle;
15
- /**
16
- * The iOS system font weight.
17
- * The property is ignored when fontName is non-empty or systemFontStyle is italic.
18
- * Only supported on iOS.
19
- */
20
- systemFontWeight?: IOSSystemFontWeight;
21
- }
@@ -1,7 +0,0 @@
1
- declare enum LiveStreamChatEventName {
2
- /**
3
- * Called when a user sends messages to an active live stream.
4
- */
5
- userSendChat = "fw:livestream:user-send-chat"
6
- }
7
- export default LiveStreamChatEventName;
@@ -1,3 +0,0 @@
1
- export default interface LiveStreamEventDetails {
2
- id: string;
3
- }
@@ -1,15 +0,0 @@
1
- declare enum LiveStreamEventName {
2
- /**
3
- * Called when a user joins an active live stream.
4
- */
5
- userDidjoin = "fw:livestream:user-join",
6
- /**
7
- * Called when the user leaves an active live stream.
8
- */
9
- userDidLeave = "fw:livestream:user-leave",
10
- /**
11
- * Called when a user sends a like to an active live stream.
12
- */
13
- userSendLike = "fw:livestream:user-send-like"
14
- }
15
- export default LiveStreamEventName;
@@ -1,14 +0,0 @@
1
- export default interface LiveStreamMessageDetails {
2
- /**
3
- * A unique identifier of the message.
4
- */
5
- messageId: string;
6
- /**
7
- * The username of the user.
8
- */
9
- username?: string | null;
10
- /**
11
- * The text of the message.
12
- */
13
- text?: string | null;
14
- }
@@ -1,23 +0,0 @@
1
- import type ProductUnit from './ProductUnit';
2
- export default interface Product {
3
- /**
4
- * A unique identifier of the product.
5
- */
6
- productId: string;
7
- /**
8
- * The name of the product.
9
- */
10
- name?: string | null;
11
- /**
12
- * The description of the product.
13
- */
14
- description?: string | null;
15
- /**
16
- * The availability of the product. Only supported on iOS.
17
- */
18
- isAvailable?: boolean;
19
- /**
20
- * The unit array of the product
21
- */
22
- units?: ProductUnit[] | null;
23
- }
@@ -1,38 +0,0 @@
1
- import type IOSFontInfo from './IOSFontInfo';
2
- export type ShoppingCTAButtonText = 'addToCart' | 'shopNow';
3
- export interface ShoppingCTAButtonConfiguration {
4
- /**
5
- * The text of shopping CTA button.
6
- */
7
- text?: ShoppingCTAButtonText;
8
- /**
9
- * The background color of CTA button.
10
- */
11
- backgroundColor?: string;
12
- /**
13
- * The text color of CTA button.
14
- */
15
- textColor?: string;
16
- /**
17
- * The font size of CTA button.
18
- */
19
- fontSize?: number;
20
- /**
21
- * The iOS font info of "Add to cart" button.
22
- * The property is ignored when fontSize is not set.
23
- */
24
- iOSFontInfo?: IOSFontInfo;
25
- }
26
- export interface LinkButtonConfiguration {
27
- isHidden?: boolean;
28
- }
29
- export default interface ProductInfoViewConfiguration {
30
- /**
31
- * Configuration of shopping CTA button. Only supported on iOS.
32
- */
33
- ctaButton?: ShoppingCTAButtonConfiguration;
34
- /**
35
- * Configuration of link button next to shopping CTA button.
36
- */
37
- linkButton?: LinkButtonConfiguration;
38
- }
@@ -1,38 +0,0 @@
1
- export interface ProductPrice {
2
- amount: number;
3
- currencyCode: string;
4
- }
5
- export interface ProductUnitOption {
6
- name: string;
7
- value: string;
8
- }
9
- export default interface ProductUnit {
10
- /**
11
- * The unique identifier of the product unit.
12
- */
13
- unitId: string;
14
- /**
15
- * The name of the product unit.
16
- */
17
- name?: string | null;
18
- /**
19
- * The url of the product unit.
20
- */
21
- url?: string;
22
- /**
23
- * The image url of the product unit.
24
- */
25
- imageUrl?: string;
26
- /**
27
- * The price of the product unit.
28
- */
29
- price?: ProductPrice;
30
- /**
31
- * The availability of the product unit. Only supported on iOS.
32
- */
33
- isAvailable?: boolean;
34
- /**
35
- * The options of the product unit.
36
- */
37
- options?: ProductUnitOption[];
38
- }
@@ -1,11 +0,0 @@
1
- export type VideoLaunchBehavior = 'default' | 'muteOnFirstLaunch';
2
- export default interface SDKInitOptions {
3
- /**
4
- * Custom value to identify the current user.
5
- */
6
- userId?: string;
7
- /**
8
- * Behavior occurring after video is launched.
9
- */
10
- videoLaunchBehavior?: VideoLaunchBehavior;
11
- }
@@ -1,11 +0,0 @@
1
- export default interface ShoppingCTAResult {
2
- /**
3
- * The result of shopping CTA button.
4
- */
5
- res: 'success' | 'fail';
6
- /**
7
- * We will show a toast to display the tips.
8
- * If the property is undefined or empty string, we don't show a toast.
9
- */
10
- tips?: string;
11
- }