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.
- package/android/build.gradle +43 -75
- package/android/gradle.properties +5 -5
- package/android/settings.gradle +1 -1
- package/android/src/main/AndroidManifestNew.xml +41 -0
- package/android/src/main/java/com/fireworksdk/bridge/reactnative/manager/FWVideoFeedManager.kt +3 -3
- package/ios/FireworkReactNativeSDK.xcodeproj/project.pbxproj +295 -0
- package/ios/react_native_firework_sdk.h +0 -12
- package/lib/commonjs/FWNavigator.js +13 -34
- package/lib/commonjs/FWNavigator.js.map +1 -1
- package/lib/commonjs/FireworkSDK.js +44 -159
- package/lib/commonjs/FireworkSDK.js.map +1 -1
- package/lib/commonjs/LiveStream.js +8 -27
- package/lib/commonjs/LiveStream.js.map +1 -1
- package/lib/commonjs/VideoShopping.js +21 -91
- package/lib/commonjs/VideoShopping.js.map +1 -1
- package/lib/commonjs/components/FWStoryBlock.js +2 -6
- package/lib/commonjs/components/FWStoryBlock.js.map +1 -1
- package/lib/commonjs/components/FWVideoFeed.js +2 -6
- package/lib/commonjs/components/FWVideoFeed.js.map +1 -1
- package/lib/commonjs/components/StoryBlock.js +60 -162
- package/lib/commonjs/components/StoryBlock.js.map +1 -1
- package/lib/commonjs/components/VideoFeed.js +214 -336
- package/lib/commonjs/components/VideoFeed.js.map +1 -1
- package/lib/commonjs/constants/FWErrorMessage.js +1 -4
- package/lib/commonjs/constants/FWErrorMessage.js.map +1 -1
- package/lib/commonjs/index.js +14 -29
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/models/AdBadgeConfiguration.js.map +1 -1
- package/lib/commonjs/models/AdConfiguration.js.map +1 -1
- package/lib/commonjs/models/AndroidFontInfo.js.map +1 -1
- package/lib/commonjs/models/ButtonInfo.js.map +1 -1
- package/lib/commonjs/models/CountdownTimerConfiguration.js.map +1 -1
- package/lib/commonjs/models/DataTrackingLevel.js.map +1 -1
- package/lib/commonjs/models/FWComponentType.js +3 -5
- package/lib/commonjs/models/FWComponentType.js.map +1 -1
- package/lib/commonjs/models/FWError.js.map +1 -1
- package/lib/commonjs/models/FWEventName.js +3 -5
- package/lib/commonjs/models/FWEventName.js.map +1 -1
- package/lib/commonjs/models/FWEvents.js.map +1 -1
- package/lib/commonjs/models/FWNativeErrorAction.js +3 -5
- package/lib/commonjs/models/FWNativeErrorAction.js.map +1 -1
- package/lib/commonjs/models/FeedItemDetails.js.map +1 -1
- package/lib/commonjs/models/GradientDrawable.js.map +1 -1
- package/lib/commonjs/models/IOSFontInfo.js.map +1 -1
- package/lib/commonjs/models/LiveStreamChatEventName.js +7 -7
- package/lib/commonjs/models/LiveStreamChatEventName.js.map +1 -1
- package/lib/commonjs/models/LiveStreamEventDetails.js.map +1 -1
- package/lib/commonjs/models/LiveStreamEventName.js +13 -7
- package/lib/commonjs/models/LiveStreamEventName.js.map +1 -1
- package/lib/commonjs/models/LiveStreamMessageDetails.js.map +1 -1
- package/lib/commonjs/models/LivestreamPlayerDesignVersion.js +4 -7
- package/lib/commonjs/models/LivestreamPlayerDesignVersion.js.map +1 -1
- package/lib/commonjs/models/MarkInitCalledOptions.js.map +1 -1
- package/lib/commonjs/models/OpenVideoPlayerConfiguration.js.map +1 -1
- package/lib/commonjs/models/Product.js.map +1 -1
- package/lib/commonjs/models/ProductInfoViewConfiguration.js.map +1 -1
- package/lib/commonjs/models/ProductUnit.js.map +1 -1
- package/lib/commonjs/models/PushRNContainerParams.js.map +1 -1
- package/lib/commonjs/models/ReplayBadgeConfiguration.js.map +1 -1
- package/lib/commonjs/models/SDKInitOptions.js.map +1 -1
- package/lib/commonjs/models/ShoppingCTAResult.js.map +1 -1
- package/lib/commonjs/models/StoryBlockConfiguration.js.map +1 -1
- package/lib/commonjs/models/StoryBlockNativeConfiguration.js.map +1 -1
- package/lib/commonjs/models/StoryBlockSource.js.map +1 -1
- package/lib/commonjs/models/TrackPurchaseParameters.js.map +1 -1
- package/lib/commonjs/models/VideoFeedConfiguration.js.map +1 -1
- package/lib/commonjs/models/VideoFeedSource.js.map +1 -1
- package/lib/commonjs/models/VideoPlaybackDetails.js.map +1 -1
- package/lib/commonjs/models/VideoPlaybackEventName.js +40 -7
- package/lib/commonjs/models/VideoPlaybackEventName.js.map +1 -1
- package/lib/commonjs/models/VideoPlayerButtonConfiguration.js.map +1 -1
- package/lib/commonjs/models/VideoPlayerCTADelay.js.map +1 -1
- package/lib/commonjs/models/VideoPlayerCTAStyle.js.map +1 -1
- package/lib/commonjs/models/VideoPlayerCTAWidth.js.map +1 -1
- package/lib/commonjs/models/VideoPlayerCompleteAction.js.map +1 -1
- package/lib/commonjs/models/VideoPlayerConfiguration.js.map +1 -1
- package/lib/commonjs/models/VideoPlayerLivestreamCountdownTimerTheme.js.map +1 -1
- package/lib/commonjs/models/VideoPlayerLogoConfiguration.js.map +1 -1
- package/lib/commonjs/models/VideoPlayerNativeConfiguration.js.map +1 -1
- package/lib/commonjs/models/VideoPlayerStyle.js.map +1 -1
- package/lib/commonjs/modules/FWNavigatorModule.js +3 -9
- package/lib/commonjs/modules/FWNavigatorModule.js.map +1 -1
- package/lib/commonjs/modules/FireworkSDKModule.js +3 -9
- package/lib/commonjs/modules/FireworkSDKModule.js.map +1 -1
- package/lib/commonjs/modules/LiveStreamModule.js +3 -9
- package/lib/commonjs/modules/LiveStreamModule.js.map +1 -1
- package/lib/commonjs/modules/ShoppingModule.js +3 -9
- package/lib/commonjs/modules/ShoppingModule.js.map +1 -1
- package/lib/commonjs/package.json +1 -0
- package/lib/commonjs/utils/FWGlobalState.js +3 -21
- package/lib/commonjs/utils/FWGlobalState.js.map +1 -1
- package/lib/commonjs/utils/FWJsonUtil.js +1 -9
- package/lib/commonjs/utils/FWJsonUtil.js.map +1 -1
- package/lib/commonjs/utils/FWLoggerUtil.js +1 -9
- package/lib/commonjs/utils/FWLoggerUtil.js.map +1 -1
- package/lib/commonjs/utils/VideoFeedUtil.js +15 -28
- package/lib/commonjs/utils/VideoFeedUtil.js.map +1 -1
- package/lib/module/FWNavigator.js +13 -24
- package/lib/module/FWNavigator.js.map +1 -1
- package/lib/module/FireworkSDK.js +42 -127
- package/lib/module/FireworkSDK.js.map +1 -1
- package/lib/module/LiveStream.js +7 -18
- package/lib/module/LiveStream.js.map +1 -1
- package/lib/module/VideoShopping.js +19 -68
- package/lib/module/VideoShopping.js.map +1 -1
- package/lib/module/components/FWStoryBlock.js +3 -1
- package/lib/module/components/FWStoryBlock.js.map +1 -1
- package/lib/module/components/FWVideoFeed.js +3 -1
- package/lib/module/components/FWVideoFeed.js.map +1 -1
- package/lib/module/components/StoryBlock.js +59 -112
- package/lib/module/components/StoryBlock.js.map +1 -1
- package/lib/module/components/VideoFeed.js +214 -300
- package/lib/module/components/VideoFeed.js.map +1 -1
- package/lib/module/constants/FWErrorMessage.js +2 -0
- package/lib/module/constants/FWErrorMessage.js.map +1 -1
- package/lib/module/index.js +14 -12
- package/lib/module/index.js.map +1 -1
- package/lib/module/models/AdBadgeConfiguration.js +1 -1
- package/lib/module/models/AdBadgeConfiguration.js.map +1 -1
- package/lib/module/models/AdConfiguration.js +1 -1
- package/lib/module/models/AdConfiguration.js.map +1 -1
- package/lib/module/models/AndroidFontInfo.js +1 -1
- package/lib/module/models/AndroidFontInfo.js.map +1 -1
- package/lib/module/models/ButtonInfo.js +1 -1
- package/lib/module/models/ButtonInfo.js.map +1 -1
- package/lib/module/models/CountdownTimerConfiguration.js +1 -1
- package/lib/module/models/CountdownTimerConfiguration.js.map +1 -1
- package/lib/module/models/DataTrackingLevel.js +1 -1
- package/lib/module/models/DataTrackingLevel.js.map +1 -1
- package/lib/module/models/FWComponentType.js +4 -3
- package/lib/module/models/FWComponentType.js.map +1 -1
- package/lib/module/models/FWError.js +1 -1
- package/lib/module/models/FWError.js.map +1 -1
- package/lib/module/models/FWEventName.js +4 -3
- package/lib/module/models/FWEventName.js.map +1 -1
- package/lib/module/models/FWEvents.js +2 -0
- package/lib/module/models/FWEvents.js.map +1 -1
- package/lib/module/models/FWNativeErrorAction.js +4 -3
- package/lib/module/models/FWNativeErrorAction.js.map +1 -1
- package/lib/module/models/FeedItemDetails.js +1 -1
- package/lib/module/models/FeedItemDetails.js.map +1 -1
- package/lib/module/models/GradientDrawable.js +1 -1
- package/lib/module/models/GradientDrawable.js.map +1 -1
- package/lib/module/models/IOSFontInfo.js +1 -1
- package/lib/module/models/IOSFontInfo.js.map +1 -1
- package/lib/module/models/LiveStreamChatEventName.js +7 -4
- package/lib/module/models/LiveStreamChatEventName.js.map +1 -1
- package/lib/module/models/LiveStreamEventDetails.js +1 -1
- package/lib/module/models/LiveStreamEventDetails.js.map +1 -1
- package/lib/module/models/LiveStreamEventName.js +13 -4
- package/lib/module/models/LiveStreamEventName.js.map +1 -1
- package/lib/module/models/LiveStreamMessageDetails.js +1 -1
- package/lib/module/models/LiveStreamMessageDetails.js.map +1 -1
- package/lib/module/models/LivestreamPlayerDesignVersion.js +4 -4
- package/lib/module/models/LivestreamPlayerDesignVersion.js.map +1 -1
- package/lib/module/models/MarkInitCalledOptions.js +1 -1
- package/lib/module/models/MarkInitCalledOptions.js.map +1 -1
- package/lib/module/models/OpenVideoPlayerConfiguration.js +1 -1
- package/lib/module/models/OpenVideoPlayerConfiguration.js.map +1 -1
- package/lib/module/models/Product.js +1 -1
- package/lib/module/models/Product.js.map +1 -1
- package/lib/module/models/ProductInfoViewConfiguration.js +1 -1
- package/lib/module/models/ProductInfoViewConfiguration.js.map +1 -1
- package/lib/module/models/ProductUnit.js +1 -1
- package/lib/module/models/ProductUnit.js.map +1 -1
- package/lib/module/models/PushRNContainerParams.js +1 -1
- package/lib/module/models/PushRNContainerParams.js.map +1 -1
- package/lib/module/models/ReplayBadgeConfiguration.js +1 -1
- package/lib/module/models/ReplayBadgeConfiguration.js.map +1 -1
- package/lib/module/models/SDKInitOptions.js +1 -1
- package/lib/module/models/SDKInitOptions.js.map +1 -1
- package/lib/module/models/ShoppingCTAResult.js +1 -1
- package/lib/module/models/ShoppingCTAResult.js.map +1 -1
- package/lib/module/models/StoryBlockConfiguration.js +2 -0
- package/lib/module/models/StoryBlockConfiguration.js.map +1 -1
- package/lib/module/models/StoryBlockNativeConfiguration.js +1 -1
- package/lib/module/models/StoryBlockNativeConfiguration.js.map +1 -1
- package/lib/module/models/StoryBlockSource.js +1 -1
- package/lib/module/models/StoryBlockSource.js.map +1 -1
- package/lib/module/models/TrackPurchaseParameters.js +1 -1
- package/lib/module/models/TrackPurchaseParameters.js.map +1 -1
- package/lib/module/models/VideoFeedConfiguration.js +1 -1
- package/lib/module/models/VideoFeedConfiguration.js.map +1 -1
- package/lib/module/models/VideoFeedSource.js +1 -1
- package/lib/module/models/VideoFeedSource.js.map +1 -1
- package/lib/module/models/VideoPlaybackDetails.js +1 -1
- package/lib/module/models/VideoPlaybackDetails.js.map +1 -1
- package/lib/module/models/VideoPlaybackEventName.js +40 -4
- package/lib/module/models/VideoPlaybackEventName.js.map +1 -1
- package/lib/module/models/VideoPlayerButtonConfiguration.js +1 -1
- package/lib/module/models/VideoPlayerButtonConfiguration.js.map +1 -1
- package/lib/module/models/VideoPlayerCTADelay.js +1 -1
- package/lib/module/models/VideoPlayerCTADelay.js.map +1 -1
- package/lib/module/models/VideoPlayerCTAStyle.js +2 -0
- package/lib/module/models/VideoPlayerCTAStyle.js.map +1 -1
- package/lib/module/models/VideoPlayerCTAWidth.js +1 -1
- package/lib/module/models/VideoPlayerCTAWidth.js.map +1 -1
- package/lib/module/models/VideoPlayerCompleteAction.js +1 -1
- package/lib/module/models/VideoPlayerCompleteAction.js.map +1 -1
- package/lib/module/models/VideoPlayerConfiguration.js +1 -1
- package/lib/module/models/VideoPlayerConfiguration.js.map +1 -1
- package/lib/module/models/VideoPlayerLivestreamCountdownTimerTheme.js +1 -1
- package/lib/module/models/VideoPlayerLivestreamCountdownTimerTheme.js.map +1 -1
- package/lib/module/models/VideoPlayerLogoConfiguration.js +1 -1
- package/lib/module/models/VideoPlayerLogoConfiguration.js.map +1 -1
- package/lib/module/models/VideoPlayerNativeConfiguration.js +1 -1
- package/lib/module/models/VideoPlayerNativeConfiguration.js.map +1 -1
- package/lib/module/models/VideoPlayerStyle.js +1 -1
- package/lib/module/models/VideoPlayerStyle.js.map +1 -1
- package/lib/module/modules/FWNavigatorModule.js +3 -2
- package/lib/module/modules/FWNavigatorModule.js.map +1 -1
- package/lib/module/modules/FireworkSDKModule.js +3 -2
- package/lib/module/modules/FireworkSDKModule.js.map +1 -1
- package/lib/module/modules/LiveStreamModule.js +3 -2
- package/lib/module/modules/LiveStreamModule.js.map +1 -1
- package/lib/module/modules/ShoppingModule.js +3 -2
- package/lib/module/modules/ShoppingModule.js.map +1 -1
- package/lib/module/package.json +1 -0
- package/lib/module/utils/FWGlobalState.js +3 -17
- package/lib/module/utils/FWGlobalState.js.map +1 -1
- package/lib/module/utils/FWJsonUtil.js +2 -6
- package/lib/module/utils/FWJsonUtil.js.map +1 -1
- package/lib/module/utils/FWLoggerUtil.js +2 -6
- package/lib/module/utils/FWLoggerUtil.js.map +1 -1
- package/lib/module/utils/VideoFeedUtil.js +16 -25
- package/lib/module/utils/VideoFeedUtil.js.map +1 -1
- package/lib/typescript/commonjs/package.json +1 -0
- package/lib/typescript/{FWNavigator.d.ts → commonjs/src/FWNavigator.d.ts} +3 -0
- package/lib/typescript/commonjs/src/FWNavigator.d.ts.map +1 -0
- package/lib/typescript/{FireworkSDK.d.ts → commonjs/src/FireworkSDK.d.ts} +1 -0
- package/lib/typescript/commonjs/src/FireworkSDK.d.ts.map +1 -0
- package/lib/typescript/{LiveStream.d.ts → commonjs/src/LiveStream.d.ts} +1 -0
- package/lib/typescript/commonjs/src/LiveStream.d.ts.map +1 -0
- package/lib/typescript/{VideoShopping.d.ts → commonjs/src/VideoShopping.d.ts} +1 -0
- package/lib/typescript/commonjs/src/VideoShopping.d.ts.map +1 -0
- package/lib/typescript/{components → commonjs/src/components}/FWStoryBlock.d.ts +1 -0
- package/lib/typescript/commonjs/src/components/FWStoryBlock.d.ts.map +1 -0
- package/lib/typescript/{components → commonjs/src/components}/FWVideoFeed.d.ts +1 -0
- package/lib/typescript/commonjs/src/components/FWVideoFeed.d.ts.map +1 -0
- package/lib/typescript/{components → commonjs/src/components}/StoryBlock.d.ts +3 -3
- package/lib/typescript/commonjs/src/components/StoryBlock.d.ts.map +1 -0
- package/lib/typescript/{components → commonjs/src/components}/VideoFeed.d.ts +3 -2
- package/lib/typescript/commonjs/src/components/VideoFeed.d.ts.map +1 -0
- package/lib/typescript/{constants → commonjs/src/constants}/FWErrorMessage.d.ts +1 -0
- package/lib/typescript/commonjs/src/constants/FWErrorMessage.d.ts.map +1 -0
- package/lib/typescript/{index.d.ts → commonjs/src/index.d.ts} +3 -1
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/AdBadgeConfiguration.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/AdBadgeConfiguration.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/AdConfiguration.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/AdConfiguration.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/AndroidFontInfo.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/AndroidFontInfo.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/ButtonInfo.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/ButtonInfo.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/CountdownTimerConfiguration.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/CountdownTimerConfiguration.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/DataTrackingLevel.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/DataTrackingLevel.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/FWComponentType.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/FWComponentType.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/FWError.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/FWError.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/FWEventName.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/FWEventName.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/FWEvents.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/FWEvents.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/FWNativeErrorAction.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/FWNativeErrorAction.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/FeedItemDetails.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/FeedItemDetails.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/GradientDrawable.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/GradientDrawable.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/IOSFontInfo.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/IOSFontInfo.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/LiveStreamChatEventName.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/LiveStreamChatEventName.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/LiveStreamEventDetails.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/LiveStreamEventDetails.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/LiveStreamEventName.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/LiveStreamEventName.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/LiveStreamMessageDetails.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/LiveStreamMessageDetails.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/LivestreamPlayerDesignVersion.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/LivestreamPlayerDesignVersion.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/MarkInitCalledOptions.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/MarkInitCalledOptions.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/OpenVideoPlayerConfiguration.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/OpenVideoPlayerConfiguration.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/Product.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/Product.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/ProductInfoViewConfiguration.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/ProductInfoViewConfiguration.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/ProductUnit.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/ProductUnit.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/PushRNContainerParams.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/PushRNContainerParams.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/ReplayBadgeConfiguration.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/ReplayBadgeConfiguration.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/SDKInitOptions.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/SDKInitOptions.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/ShoppingCTAResult.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/ShoppingCTAResult.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/StoryBlockConfiguration.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/StoryBlockConfiguration.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/StoryBlockNativeConfiguration.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/StoryBlockNativeConfiguration.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/StoryBlockSource.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/StoryBlockSource.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/TrackPurchaseParameters.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/TrackPurchaseParameters.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/VideoFeedConfiguration.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/VideoFeedConfiguration.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/VideoFeedSource.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/VideoFeedSource.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/VideoPlaybackDetails.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/VideoPlaybackDetails.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/VideoPlaybackEventName.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/VideoPlaybackEventName.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/VideoPlayerButtonConfiguration.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/VideoPlayerButtonConfiguration.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/VideoPlayerCTADelay.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/VideoPlayerCTADelay.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/VideoPlayerCTAStyle.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/VideoPlayerCTAStyle.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/VideoPlayerCTAWidth.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/VideoPlayerCTAWidth.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/VideoPlayerCompleteAction.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/VideoPlayerCompleteAction.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/VideoPlayerConfiguration.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/VideoPlayerConfiguration.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/VideoPlayerLivestreamCountdownTimerTheme.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/VideoPlayerLivestreamCountdownTimerTheme.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/VideoPlayerLogoConfiguration.d.ts +2 -1
- package/lib/typescript/commonjs/src/models/VideoPlayerLogoConfiguration.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/VideoPlayerNativeConfiguration.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/VideoPlayerNativeConfiguration.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/VideoPlayerStyle.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/VideoPlayerStyle.d.ts.map +1 -0
- package/lib/typescript/{modules → commonjs/src/modules}/FWNavigatorModule.d.ts +2 -1
- package/lib/typescript/commonjs/src/modules/FWNavigatorModule.d.ts.map +1 -0
- package/lib/typescript/{modules → commonjs/src/modules}/FireworkSDKModule.d.ts +4 -3
- package/lib/typescript/commonjs/src/modules/FireworkSDKModule.d.ts.map +1 -0
- package/lib/typescript/{modules → commonjs/src/modules}/LiveStreamModule.d.ts +2 -1
- package/lib/typescript/commonjs/src/modules/LiveStreamModule.d.ts.map +1 -0
- package/lib/typescript/{modules → commonjs/src/modules}/ShoppingModule.d.ts +2 -1
- package/lib/typescript/commonjs/src/modules/ShoppingModule.d.ts.map +1 -0
- package/lib/typescript/{utils → commonjs/src/utils}/FWGlobalState.d.ts +2 -1
- package/lib/typescript/commonjs/src/utils/FWGlobalState.d.ts.map +1 -0
- package/lib/typescript/{utils → commonjs/src/utils}/FWJsonUtil.d.ts +1 -0
- package/lib/typescript/commonjs/src/utils/FWJsonUtil.d.ts.map +1 -0
- package/lib/typescript/{utils → commonjs/src/utils}/FWLoggerUtil.d.ts +1 -0
- package/lib/typescript/commonjs/src/utils/FWLoggerUtil.d.ts.map +1 -0
- package/lib/typescript/{utils → commonjs/src/utils}/VideoFeedUtil.d.ts +1 -0
- package/lib/typescript/commonjs/src/utils/VideoFeedUtil.d.ts.map +1 -0
- package/lib/typescript/module/package.json +1 -0
- package/lib/typescript/module/src/FWNavigator.d.ts +59 -0
- package/lib/typescript/module/src/FWNavigator.d.ts.map +1 -0
- package/lib/typescript/module/src/FireworkSDK.d.ts +143 -0
- package/lib/typescript/module/src/FireworkSDK.d.ts.map +1 -0
- package/lib/typescript/module/src/LiveStream.d.ts +22 -0
- package/lib/typescript/module/src/LiveStream.d.ts.map +1 -0
- package/lib/typescript/module/src/VideoShopping.d.ts +94 -0
- package/lib/typescript/module/src/VideoShopping.d.ts.map +1 -0
- package/lib/typescript/module/src/components/FWStoryBlock.d.ts +3 -0
- package/lib/typescript/module/src/components/FWStoryBlock.d.ts.map +1 -0
- package/lib/typescript/module/src/components/FWVideoFeed.d.ts +3 -0
- package/lib/typescript/module/src/components/FWVideoFeed.d.ts.map +1 -0
- package/lib/typescript/module/src/components/StoryBlock.d.ts +116 -0
- package/lib/typescript/module/src/components/StoryBlock.d.ts.map +1 -0
- package/lib/typescript/module/src/components/VideoFeed.d.ts +145 -0
- package/lib/typescript/module/src/components/VideoFeed.d.ts.map +1 -0
- package/lib/typescript/module/src/constants/FWErrorMessage.d.ts +3 -0
- package/lib/typescript/module/src/constants/FWErrorMessage.d.ts.map +1 -0
- package/lib/typescript/module/src/index.d.ts +68 -0
- package/lib/typescript/module/src/index.d.ts.map +1 -0
- package/lib/typescript/module/src/models/AdBadgeConfiguration.d.ts +26 -0
- package/lib/typescript/module/src/models/AdBadgeConfiguration.d.ts.map +1 -0
- package/lib/typescript/module/src/models/AdConfiguration.d.ts +23 -0
- package/lib/typescript/module/src/models/AdConfiguration.d.ts.map +1 -0
- package/lib/typescript/module/src/models/AndroidFontInfo.d.ts +15 -0
- package/lib/typescript/module/src/models/AndroidFontInfo.d.ts.map +1 -0
- package/lib/typescript/module/src/models/ButtonInfo.d.ts +18 -0
- package/lib/typescript/module/src/models/ButtonInfo.d.ts.map +1 -0
- package/lib/typescript/module/src/models/CountdownTimerConfiguration.d.ts +13 -0
- package/lib/typescript/module/src/models/CountdownTimerConfiguration.d.ts.map +1 -0
- package/lib/typescript/module/src/models/DataTrackingLevel.d.ts +2 -0
- package/lib/typescript/module/src/models/DataTrackingLevel.d.ts.map +1 -0
- package/lib/typescript/module/src/models/FWComponentType.d.ts +5 -0
- package/lib/typescript/module/src/models/FWComponentType.d.ts.map +1 -0
- package/lib/typescript/module/src/models/FWError.d.ts +11 -0
- package/lib/typescript/module/src/models/FWError.d.ts.map +1 -0
- package/lib/typescript/module/src/models/FWEventName.d.ts +25 -0
- package/lib/typescript/module/src/models/FWEventName.d.ts.map +1 -0
- package/lib/typescript/module/src/models/FWEvents.d.ts +168 -0
- package/lib/typescript/module/src/models/FWEvents.d.ts.map +1 -0
- package/lib/typescript/module/src/models/FWNativeErrorAction.d.ts +5 -0
- package/lib/typescript/module/src/models/FWNativeErrorAction.d.ts.map +1 -0
- package/lib/typescript/module/src/models/FeedItemDetails.d.ts +59 -0
- package/lib/typescript/module/src/models/FeedItemDetails.d.ts.map +1 -0
- package/lib/typescript/module/src/models/GradientDrawable.d.ts +6 -0
- package/lib/typescript/module/src/models/GradientDrawable.d.ts.map +1 -0
- package/lib/typescript/module/src/models/IOSFontInfo.d.ts +22 -0
- package/lib/typescript/module/src/models/IOSFontInfo.d.ts.map +1 -0
- package/lib/typescript/module/src/models/LiveStreamChatEventName.d.ts +8 -0
- package/lib/typescript/module/src/models/LiveStreamChatEventName.d.ts.map +1 -0
- package/lib/typescript/module/src/models/LiveStreamEventDetails.d.ts +5 -0
- package/lib/typescript/module/src/models/LiveStreamEventDetails.d.ts.map +1 -0
- package/lib/typescript/module/src/models/LiveStreamEventName.d.ts +16 -0
- package/lib/typescript/module/src/models/LiveStreamEventName.d.ts.map +1 -0
- package/lib/typescript/module/src/models/LiveStreamMessageDetails.d.ts +15 -0
- package/lib/typescript/module/src/models/LiveStreamMessageDetails.d.ts.map +1 -0
- package/lib/typescript/module/src/models/LivestreamPlayerDesignVersion.d.ts +6 -0
- package/lib/typescript/module/src/models/LivestreamPlayerDesignVersion.d.ts.map +1 -0
- package/lib/typescript/module/src/models/MarkInitCalledOptions.d.ts +7 -0
- package/lib/typescript/module/src/models/MarkInitCalledOptions.d.ts.map +1 -0
- package/lib/typescript/module/src/models/OpenVideoPlayerConfiguration.d.ts +8 -0
- package/lib/typescript/module/src/models/OpenVideoPlayerConfiguration.d.ts.map +1 -0
- package/lib/typescript/module/src/models/Product.d.ts +24 -0
- package/lib/typescript/module/src/models/Product.d.ts.map +1 -0
- package/lib/typescript/module/src/models/ProductInfoViewConfiguration.d.ts +175 -0
- package/lib/typescript/module/src/models/ProductInfoViewConfiguration.d.ts.map +1 -0
- package/lib/typescript/module/src/models/ProductUnit.d.ts +39 -0
- package/lib/typescript/module/src/models/ProductUnit.d.ts.map +1 -0
- package/lib/typescript/module/src/models/PushRNContainerParams.d.ts +9 -0
- package/lib/typescript/module/src/models/PushRNContainerParams.d.ts.map +1 -0
- package/lib/typescript/module/src/models/ReplayBadgeConfiguration.d.ts +8 -0
- package/lib/typescript/module/src/models/ReplayBadgeConfiguration.d.ts.map +1 -0
- package/lib/typescript/module/src/models/SDKInitOptions.d.ts +12 -0
- package/lib/typescript/module/src/models/SDKInitOptions.d.ts.map +1 -0
- package/lib/typescript/module/src/models/ShoppingCTAResult.d.ts +12 -0
- package/lib/typescript/module/src/models/ShoppingCTAResult.d.ts.map +1 -0
- package/lib/typescript/module/src/models/StoryBlockConfiguration.d.ts +82 -0
- package/lib/typescript/module/src/models/StoryBlockConfiguration.d.ts.map +1 -0
- package/lib/typescript/module/src/models/StoryBlockNativeConfiguration.d.ts +8 -0
- package/lib/typescript/module/src/models/StoryBlockNativeConfiguration.d.ts.map +1 -0
- package/lib/typescript/module/src/models/StoryBlockSource.d.ts +2 -0
- package/lib/typescript/module/src/models/StoryBlockSource.d.ts.map +1 -0
- package/lib/typescript/module/src/models/TrackPurchaseParameters.d.ts +27 -0
- package/lib/typescript/module/src/models/TrackPurchaseParameters.d.ts.map +1 -0
- package/lib/typescript/module/src/models/VideoFeedConfiguration.d.ts +162 -0
- package/lib/typescript/module/src/models/VideoFeedConfiguration.d.ts.map +1 -0
- package/lib/typescript/module/src/models/VideoFeedSource.d.ts +2 -0
- package/lib/typescript/module/src/models/VideoFeedSource.d.ts.map +1 -0
- package/lib/typescript/module/src/models/VideoPlaybackDetails.d.ts +48 -0
- package/lib/typescript/module/src/models/VideoPlaybackDetails.d.ts.map +1 -0
- package/lib/typescript/module/src/models/VideoPlaybackEventName.d.ts +52 -0
- package/lib/typescript/module/src/models/VideoPlaybackEventName.d.ts.map +1 -0
- package/lib/typescript/module/src/models/VideoPlayerButtonConfiguration.d.ts +34 -0
- package/lib/typescript/module/src/models/VideoPlayerButtonConfiguration.d.ts.map +1 -0
- package/lib/typescript/module/src/models/VideoPlayerCTADelay.d.ts +12 -0
- package/lib/typescript/module/src/models/VideoPlayerCTADelay.d.ts.map +1 -0
- package/lib/typescript/module/src/models/VideoPlayerCTAStyle.d.ts +28 -0
- package/lib/typescript/module/src/models/VideoPlayerCTAStyle.d.ts.map +1 -0
- package/lib/typescript/module/src/models/VideoPlayerCTAWidth.d.ts +2 -0
- package/lib/typescript/module/src/models/VideoPlayerCTAWidth.d.ts.map +1 -0
- package/lib/typescript/module/src/models/VideoPlayerCompleteAction.d.ts +2 -0
- package/lib/typescript/module/src/models/VideoPlayerCompleteAction.d.ts.map +1 -0
- package/lib/typescript/module/src/models/VideoPlayerConfiguration.d.ts +87 -0
- package/lib/typescript/module/src/models/VideoPlayerConfiguration.d.ts.map +1 -0
- package/lib/typescript/module/src/models/VideoPlayerLivestreamCountdownTimerTheme.d.ts +2 -0
- package/lib/typescript/module/src/models/VideoPlayerLivestreamCountdownTimerTheme.d.ts.map +1 -0
- package/lib/typescript/module/src/models/VideoPlayerLogoConfiguration.d.ts +22 -0
- package/lib/typescript/module/src/models/VideoPlayerLogoConfiguration.d.ts.map +1 -0
- package/lib/typescript/module/src/models/VideoPlayerNativeConfiguration.d.ts +8 -0
- package/lib/typescript/module/src/models/VideoPlayerNativeConfiguration.d.ts.map +1 -0
- package/lib/typescript/module/src/models/VideoPlayerStyle.d.ts +2 -0
- package/lib/typescript/module/src/models/VideoPlayerStyle.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/FWNavigatorModule.d.ts +17 -0
- package/lib/typescript/module/src/modules/FWNavigatorModule.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/FireworkSDKModule.d.ts +28 -0
- package/lib/typescript/module/src/modules/FireworkSDKModule.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/LiveStreamModule.d.ts +9 -0
- package/lib/typescript/module/src/modules/LiveStreamModule.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/ShoppingModule.d.ts +22 -0
- package/lib/typescript/module/src/modules/ShoppingModule.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/FWGlobalState.d.ts +13 -0
- package/lib/typescript/module/src/utils/FWGlobalState.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/FWJsonUtil.d.ts +3 -0
- package/lib/typescript/module/src/utils/FWJsonUtil.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/FWLoggerUtil.d.ts +7 -0
- package/lib/typescript/module/src/utils/FWLoggerUtil.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/VideoFeedUtil.d.ts +11 -0
- package/lib/typescript/module/src/utils/VideoFeedUtil.d.ts.map +1 -0
- package/package.json +71 -55
- package/react_native_firework_sdk.podspec +35 -0
- package/src/FWNavigator.ts +2 -0
- package/src/components/StoryBlock.tsx +45 -50
- package/src/components/VideoFeed.tsx +7 -7
- package/src/{index.ts → index.tsx} +14 -12
- package/src/models/VideoPlayerLogoConfiguration.ts +7 -7
- package/src/modules/FWNavigatorModule.ts +5 -1
- package/src/modules/FireworkSDKModule.ts +7 -3
- package/src/modules/LiveStreamModule.ts +5 -1
- package/src/modules/ShoppingModule.ts +5 -1
- package/src/utils/FWGlobalState.ts +1 -1
- package/android/.idea/codeStyles/Project.xml +0 -124
- package/android/.idea/codeStyles/codeStyleConfig.xml +0 -5
- package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/android/gradle/wrapper/gradle-wrapper.properties +0 -5
- package/android/gradlew +0 -185
- package/android/gradlew.bat +0 -89
- package/ios/FireworkSdk.xcodeproj/project.pbxproj +0 -603
- package/ios/Modules/FWNavigatorModule/RNSScreenStackView+Window.h +0 -20
- package/ios/Modules/FWNavigatorModule/RNSScreenStackView+Window.m +0 -84
- package/ios/Support/MultiHostStreaming/FWMultiHostStreaming.podspec +0 -22
- package/ios/Support/MultiHostStreaming/Sources/MultiHostStreamingSDK.swift +0 -17
- package/react-native-firework-sdk.podspec +0 -38
- 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
|
|
13
|
-
|
|
14
|
-
var
|
|
15
|
-
|
|
16
|
-
var
|
|
17
|
-
|
|
18
|
-
var
|
|
19
|
-
|
|
20
|
-
var
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
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
|
-
|
|
109
|
-
|
|
110
|
-
}
|
|
80
|
+
}
|
|
81
|
+
if (action === _FWNativeErrorAction.FWNativeErrorAction.loadingFirstPage || !this._loaded) {
|
|
82
|
+
onVideoFeedEmpty?.(error);
|
|
111
83
|
}
|
|
112
84
|
} else {
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
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
|
-
|
|
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
|
-
|
|
96
|
+
onVideoFeedLoadFinished();
|
|
163
97
|
}
|
|
98
|
+
this._loaded = true;
|
|
164
99
|
}
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
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
|
-
|
|
128
|
+
onVideoFeedDidStartPictureInPicture({
|
|
129
|
+
name
|
|
130
|
+
});
|
|
192
131
|
}
|
|
132
|
+
} else {
|
|
133
|
+
onVideoFeedDidStartPictureInPicture();
|
|
193
134
|
}
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
if (
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
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
|
-
|
|
216
|
-
|
|
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
|
|
317
|
-
const
|
|
318
|
-
const
|
|
319
|
-
const
|
|
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
|
|
344
|
-
const
|
|
345
|
-
const
|
|
346
|
-
const
|
|
347
|
-
const
|
|
348
|
-
const
|
|
349
|
-
const
|
|
350
|
-
const
|
|
351
|
-
const
|
|
352
|
-
const
|
|
353
|
-
const
|
|
354
|
-
const
|
|
355
|
-
const
|
|
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
|
|
361
|
-
const
|
|
362
|
-
const
|
|
363
|
-
const
|
|
364
|
-
const
|
|
365
|
-
const
|
|
366
|
-
const
|
|
367
|
-
const
|
|
368
|
-
const
|
|
369
|
-
const
|
|
370
|
-
const
|
|
371
|
-
const
|
|
372
|
-
const
|
|
373
|
-
const
|
|
374
|
-
const
|
|
375
|
-
const
|
|
376
|
-
const
|
|
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
|
|
382
|
-
const
|
|
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
|
|
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
|
|
422
|
-
key += `_titleAndroidFontInfo.typefaceName:${titleAndroidFontInfo
|
|
423
|
-
key += `_titleGradientDrawable.orientation:${titleGradientDrawable
|
|
424
|
-
key += `_titleGradientDrawable.colors:${titleGradientDrawable
|
|
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
|
|
453
|
-
key += `_buttonConfiguration.closeButton:${this._generateButtonInfoString(buttonConfiguration
|
|
454
|
-
key += `_buttonConfiguration.muteButton:${this._generateButtonInfoString(buttonConfiguration
|
|
455
|
-
key += `_buttonConfiguration.unmuteButton:${this._generateButtonInfoString(buttonConfiguration
|
|
456
|
-
key += `_buttonConfiguration.playButton:${this._generateButtonInfoString(buttonConfiguration
|
|
457
|
-
key += `_buttonConfiguration.pauseButton:${this._generateButtonInfoString(buttonConfiguration
|
|
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
|
-
|
|
470
|
-
|
|
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
|
|
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
|
|
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
|
|
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 = {
|
|
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 = {
|
|
560
|
-
|
|
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
|
-
|
|
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
|