react-native-firework-sdk 2.16.1 → 2.17.0-beta.2
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/ios/FireworkSdk-Bridging-Header.h +3 -3
- 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 -161
- package/lib/commonjs/components/StoryBlock.js.map +1 -1
- package/lib/commonjs/components/VideoFeed.js +214 -335
- 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 -111
- package/lib/module/components/StoryBlock.js.map +1 -1
- package/lib/module/components/VideoFeed.js +214 -299
- 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 -48
- package/src/components/VideoFeed.tsx +7 -6
- 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
|
@@ -1,23 +1,27 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
2
|
|
|
3
|
-
import
|
|
3
|
+
import { forwardRef, useEffect, useImperativeHandle, useReducer, useRef, useState } from 'react';
|
|
4
4
|
import { findNodeHandle, Platform, UIManager } from 'react-native';
|
|
5
|
-
import FireworkSDK from
|
|
6
|
-
import { FWEventName } from
|
|
7
|
-
import { FireworkSDKModuleEventEmitter } from
|
|
8
|
-
import FWGlobalState from
|
|
9
|
-
import FWLoggerUtil from
|
|
10
|
-
import FWStoryBlock from
|
|
11
|
-
import gennerateJsonKey from
|
|
12
|
-
import { FWComponentType } from
|
|
5
|
+
import FireworkSDK from "../FireworkSDK.js";
|
|
6
|
+
import { FWEventName } from "../models/FWEventName.js";
|
|
7
|
+
import { FireworkSDKModuleEventEmitter } from "../modules/FireworkSDKModule.js";
|
|
8
|
+
import FWGlobalState from "../utils/FWGlobalState.js";
|
|
9
|
+
import FWLoggerUtil from "../utils/FWLoggerUtil.js";
|
|
10
|
+
import FWStoryBlock from "./FWStoryBlock.js";
|
|
11
|
+
import gennerateJsonKey from "../utils/FWJsonUtil.js";
|
|
12
|
+
import { FWComponentType } from "../models/FWComponentType.js";
|
|
13
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
14
|
const NativeComponentName = 'FWStoryBlock';
|
|
14
15
|
|
|
16
|
+
/**
|
|
17
|
+
* The props type of StoryBlock component.
|
|
18
|
+
*/
|
|
19
|
+
|
|
15
20
|
const StoryBlock = (props, forwardedRef) => {
|
|
16
21
|
const nativeComponentRef = useRef(null);
|
|
17
22
|
const [sdkInitCalled, setSdkInitCalled] = useState(FWGlobalState.getInstance().sdkInitCalled);
|
|
18
23
|
const loadedRef = useRef(false);
|
|
19
24
|
const [, forceUpdate] = useReducer(x => x + 1, 0);
|
|
20
|
-
|
|
21
25
|
const handleStoryBlockLoadFinished = event => {
|
|
22
26
|
FWLoggerUtil.log(`StoryBlock handleStoryBlockLoadFinished ${event.nativeEvent.name}`);
|
|
23
27
|
const {
|
|
@@ -28,21 +32,17 @@ const StoryBlock = (props, forwardedRef) => {
|
|
|
28
32
|
name,
|
|
29
33
|
reason
|
|
30
34
|
} = event.nativeEvent;
|
|
31
|
-
|
|
32
35
|
if (onStoryBlockLoadFinished) {
|
|
33
36
|
if (name) {
|
|
34
37
|
let error = {
|
|
35
38
|
name
|
|
36
39
|
};
|
|
37
|
-
|
|
38
40
|
if (reason) {
|
|
39
41
|
error.reason = reason;
|
|
40
42
|
}
|
|
41
|
-
|
|
42
43
|
onStoryBlockLoadFinished(error);
|
|
43
|
-
|
|
44
44
|
if (!loadedRef.current) {
|
|
45
|
-
onStoryBlockEmpty
|
|
45
|
+
onStoryBlockEmpty?.(error);
|
|
46
46
|
}
|
|
47
47
|
} else {
|
|
48
48
|
onStoryBlockLoadFinished();
|
|
@@ -50,18 +50,15 @@ const StoryBlock = (props, forwardedRef) => {
|
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
};
|
|
53
|
-
|
|
54
53
|
const handleStoryBlockEmpty = event => {
|
|
55
54
|
FWLoggerUtil.log(`StoryBlock handleStoryBlockEmpty ${event.nativeEvent}`);
|
|
56
55
|
const {
|
|
57
56
|
onStoryBlockEmpty
|
|
58
57
|
} = props;
|
|
59
|
-
|
|
60
58
|
if (onStoryBlockEmpty) {
|
|
61
59
|
onStoryBlockEmpty();
|
|
62
60
|
}
|
|
63
61
|
};
|
|
64
|
-
|
|
65
62
|
const handleStoryBlockDidStartPictureInPicture = event => {
|
|
66
63
|
FWLoggerUtil.log(`StoryBlock handleStoryBlockDidStartPictureInPicture ${JSON.stringify(event.nativeEvent)}`);
|
|
67
64
|
const {
|
|
@@ -71,7 +68,6 @@ const StoryBlock = (props, forwardedRef) => {
|
|
|
71
68
|
name,
|
|
72
69
|
reason
|
|
73
70
|
} = event.nativeEvent;
|
|
74
|
-
|
|
75
71
|
if (onStoryBlockDidStartPictureInPicture) {
|
|
76
72
|
if (name) {
|
|
77
73
|
if (reason) {
|
|
@@ -89,7 +85,6 @@ const StoryBlock = (props, forwardedRef) => {
|
|
|
89
85
|
}
|
|
90
86
|
}
|
|
91
87
|
};
|
|
92
|
-
|
|
93
88
|
const handleStoryBlockDidStopPictureInPicture = event => {
|
|
94
89
|
FWLoggerUtil.log(`StoryBlock handleStoryBlockDidStopPictureInPicture ${JSON.stringify(event.nativeEvent)}`);
|
|
95
90
|
const {
|
|
@@ -99,7 +94,6 @@ const StoryBlock = (props, forwardedRef) => {
|
|
|
99
94
|
name,
|
|
100
95
|
reason
|
|
101
96
|
} = event.nativeEvent;
|
|
102
|
-
|
|
103
97
|
if (onStoryBlockDidStopPictureInPicture) {
|
|
104
98
|
if (name) {
|
|
105
99
|
if (reason) {
|
|
@@ -117,7 +111,6 @@ const StoryBlock = (props, forwardedRef) => {
|
|
|
117
111
|
}
|
|
118
112
|
}
|
|
119
113
|
};
|
|
120
|
-
|
|
121
114
|
const handleStoryBlockGetFeedId = event => {
|
|
122
115
|
FWLoggerUtil.log(`StoryBlock handleStoryBlockGetFeedId ${JSON.stringify(event.nativeEvent)}`);
|
|
123
116
|
const {
|
|
@@ -126,105 +119,80 @@ const StoryBlock = (props, forwardedRef) => {
|
|
|
126
119
|
const {
|
|
127
120
|
feedId
|
|
128
121
|
} = event.nativeEvent;
|
|
129
|
-
|
|
130
122
|
if (feedId) {
|
|
131
123
|
FWGlobalState.getInstance().componentTypeByFeedIdMap.set(feedId, FWComponentType.storyBlock);
|
|
132
124
|
}
|
|
133
|
-
|
|
134
125
|
if (onStoryBlockGetFeedId) {
|
|
135
|
-
onStoryBlockGetFeedId(feedId
|
|
126
|
+
onStoryBlockGetFeedId(feedId ?? '');
|
|
136
127
|
}
|
|
137
128
|
};
|
|
138
|
-
|
|
139
129
|
const generateDynamicContentParametersString = () => {
|
|
140
130
|
const {
|
|
141
131
|
dynamicContentParameters
|
|
142
132
|
} = props;
|
|
143
|
-
|
|
144
133
|
if (!dynamicContentParameters) {
|
|
145
134
|
return '';
|
|
146
135
|
}
|
|
147
|
-
|
|
148
136
|
let resultString = '';
|
|
149
137
|
const sortedKeyList = Object.keys(dynamicContentParameters).sort();
|
|
150
|
-
|
|
151
138
|
for (const key of sortedKeyList) {
|
|
152
|
-
const value = dynamicContentParameters[key];
|
|
139
|
+
const value = dynamicContentParameters[key] ?? [];
|
|
153
140
|
const valueString = value.join(',');
|
|
154
|
-
|
|
155
141
|
if (resultString.length > 0) {
|
|
156
142
|
resultString += '_';
|
|
157
143
|
}
|
|
158
|
-
|
|
159
144
|
resultString += `${key}:${valueString}`;
|
|
160
145
|
}
|
|
161
|
-
|
|
162
146
|
return resultString;
|
|
163
147
|
};
|
|
164
|
-
|
|
165
148
|
const generateVastAttributesString = () => {
|
|
166
149
|
const {
|
|
167
150
|
adConfiguration
|
|
168
151
|
} = props;
|
|
169
|
-
const vastAttributes = adConfiguration
|
|
170
|
-
|
|
152
|
+
const vastAttributes = adConfiguration?.vastAttributes;
|
|
171
153
|
if (!vastAttributes) {
|
|
172
154
|
return '';
|
|
173
155
|
}
|
|
174
|
-
|
|
175
156
|
let resultString = '';
|
|
176
|
-
|
|
177
157
|
for (const attribute of vastAttributes) {
|
|
178
|
-
var _attribute$name;
|
|
179
|
-
|
|
180
158
|
if (resultString.length > 0) {
|
|
181
159
|
resultString += '_';
|
|
182
160
|
}
|
|
183
|
-
|
|
184
|
-
resultString += `${(_attribute$name = attribute.name) !== null && _attribute$name !== void 0 ? _attribute$name : ''}:${attribute.value}`;
|
|
161
|
+
resultString += `${attribute.name ?? ''}:${attribute.value}`;
|
|
185
162
|
}
|
|
186
|
-
|
|
187
163
|
return resultString;
|
|
188
164
|
};
|
|
189
|
-
|
|
190
165
|
const generateButtonInfoString = buttonInfo => {
|
|
191
|
-
return `imageName:${buttonInfo
|
|
166
|
+
return `imageName:${buttonInfo?.imageName}_systemImageName:${buttonInfo?.systemImageName}_tintColor:${buttonInfo?.tintColor}`;
|
|
192
167
|
};
|
|
193
|
-
|
|
194
168
|
const getStoryBlockConfiguration = () => {
|
|
195
169
|
const {
|
|
196
170
|
storyBlockConfiguration,
|
|
197
171
|
enablePictureInPicture
|
|
198
172
|
} = props;
|
|
199
173
|
let resultStoryBlockConfiguration = storyBlockConfiguration;
|
|
200
|
-
|
|
201
174
|
if (typeof enablePictureInPicture === 'boolean') {
|
|
202
175
|
if (!resultStoryBlockConfiguration) {
|
|
203
176
|
resultStoryBlockConfiguration = {};
|
|
204
177
|
}
|
|
205
|
-
|
|
206
|
-
|
|
178
|
+
resultStoryBlockConfiguration = {
|
|
179
|
+
...resultStoryBlockConfiguration,
|
|
207
180
|
enablePictureInPicture
|
|
208
181
|
};
|
|
209
182
|
}
|
|
210
|
-
|
|
211
183
|
return resultStoryBlockConfiguration;
|
|
212
184
|
};
|
|
213
|
-
|
|
214
185
|
const storyBlockConfiguration = getStoryBlockConfiguration();
|
|
215
|
-
|
|
216
186
|
const generateKey = () => {
|
|
217
|
-
var _adBadgeConfiguration, _adBadgeConfiguration2, _storyBlockConfigurat, _storyBlockConfigurat2, _storyBlockConfigurat3, _storyBlockConfigurat4, _storyBlockConfigurat5, _storyBlockConfigurat6;
|
|
218
|
-
|
|
219
187
|
const gShareBaseURL = FireworkSDK.getInstance().shareBaseURL;
|
|
220
188
|
const appLanguage = FireworkSDK.getInstance().appLanguage;
|
|
221
189
|
const videoLaunchBehavior = FireworkSDK.getInstance().videoLaunchBehavior;
|
|
222
190
|
const adBadgeConfiguration = FireworkSDK.getInstance().adBadgeConfiguration;
|
|
223
|
-
const adBadgeTextType = adBadgeConfiguration
|
|
224
|
-
const backgroundColorOfAdBadge = adBadgeConfiguration
|
|
225
|
-
const textColorOfAdBadge = adBadgeConfiguration
|
|
226
|
-
const androidFontIsCustomOfAdBadge = adBadgeConfiguration
|
|
227
|
-
const androidFontTypefaceNameOfAdBadge = adBadgeConfiguration
|
|
191
|
+
const adBadgeTextType = adBadgeConfiguration?.badgeTextType;
|
|
192
|
+
const backgroundColorOfAdBadge = adBadgeConfiguration?.backgroundColor;
|
|
193
|
+
const textColorOfAdBadge = adBadgeConfiguration?.textColor;
|
|
194
|
+
const androidFontIsCustomOfAdBadge = adBadgeConfiguration?.androidFontInfo?.isCustom;
|
|
195
|
+
const androidFontTypefaceNameOfAdBadge = adBadgeConfiguration?.androidFontInfo?.typefaceName;
|
|
228
196
|
const dataTrackingLevel = FireworkSDK.getInstance().dataTrackingLevel;
|
|
229
197
|
const livestreamPlayerDesignVersion = FireworkSDK.getInstance().livestreamPlayerDesignVersion;
|
|
230
198
|
const {
|
|
@@ -239,43 +207,39 @@ const StoryBlock = (props, forwardedRef) => {
|
|
|
239
207
|
adConfiguration
|
|
240
208
|
} = props;
|
|
241
209
|
const dynamicContentParametersString = generateDynamicContentParametersString();
|
|
242
|
-
const playerStyle = storyBlockConfiguration
|
|
243
|
-
const videoCompleteAction = storyBlockConfiguration
|
|
244
|
-
const showShareButton = storyBlockConfiguration
|
|
245
|
-
const showPlaybackButton = storyBlockConfiguration
|
|
246
|
-
const showMuteButton = storyBlockConfiguration
|
|
247
|
-
const showBranding = storyBlockConfiguration
|
|
248
|
-
const ctaDelayType = storyBlockConfiguration
|
|
249
|
-
const ctaDelayValue = storyBlockConfiguration
|
|
250
|
-
const ctaHighlightDelayType = storyBlockConfiguration
|
|
251
|
-
const ctaHighlightDelayValue = storyBlockConfiguration
|
|
252
|
-
const shareBaseURL = storyBlockConfiguration
|
|
253
|
-
const buttonConfiguration = storyBlockConfiguration
|
|
254
|
-
const videoPlayerLogoConfigurationJsonKey = gennerateJsonKey(storyBlockConfiguration
|
|
255
|
-
const ctaWidth = storyBlockConfiguration
|
|
256
|
-
const showVideoDetailTitle = storyBlockConfiguration
|
|
257
|
-
const requiresAds = adConfiguration
|
|
258
|
-
const adsFetchTimeout = adConfiguration
|
|
210
|
+
const playerStyle = storyBlockConfiguration?.playerStyle;
|
|
211
|
+
const videoCompleteAction = storyBlockConfiguration?.videoCompleteAction;
|
|
212
|
+
const showShareButton = storyBlockConfiguration?.showShareButton;
|
|
213
|
+
const showPlaybackButton = storyBlockConfiguration?.showPlaybackButton;
|
|
214
|
+
const showMuteButton = storyBlockConfiguration?.showMuteButton;
|
|
215
|
+
const showBranding = storyBlockConfiguration?.showBranding;
|
|
216
|
+
const ctaDelayType = storyBlockConfiguration?.ctaDelay?.type;
|
|
217
|
+
const ctaDelayValue = storyBlockConfiguration?.ctaDelay?.value?.toFixed(5);
|
|
218
|
+
const ctaHighlightDelayType = storyBlockConfiguration?.ctaHighlightDelay?.type;
|
|
219
|
+
const ctaHighlightDelayValue = storyBlockConfiguration?.ctaHighlightDelay?.value?.toFixed(5);
|
|
220
|
+
const shareBaseURL = storyBlockConfiguration?.shareBaseURL;
|
|
221
|
+
const buttonConfiguration = storyBlockConfiguration?.buttonConfiguration;
|
|
222
|
+
const videoPlayerLogoConfigurationJsonKey = gennerateJsonKey(storyBlockConfiguration?.videoPlayerLogoConfiguration);
|
|
223
|
+
const ctaWidth = storyBlockConfiguration?.ctaWidth;
|
|
224
|
+
const showVideoDetailTitle = storyBlockConfiguration?.showVideoDetailTitle;
|
|
225
|
+
const requiresAds = adConfiguration?.requiresAds;
|
|
226
|
+
const adsFetchTimeout = adConfiguration?.adsFetchTimeout;
|
|
259
227
|
const vastAttributesString = generateVastAttributesString();
|
|
260
228
|
const productInfoViewConfigurationJsonKey = gennerateJsonKey(FireworkSDK.getInstance().shopping.productInfoViewConfiguration);
|
|
261
|
-
const replayBadgeConfigurationJsonKey = gennerateJsonKey(storyBlockConfiguration
|
|
262
|
-
const countdownTimerConfigurationJsonKey = gennerateJsonKey(storyBlockConfiguration
|
|
229
|
+
const replayBadgeConfigurationJsonKey = gennerateJsonKey(storyBlockConfiguration?.replayBadgeConfiguration);
|
|
230
|
+
const countdownTimerConfigurationJsonKey = gennerateJsonKey(storyBlockConfiguration?.countdownTimerConfiguration);
|
|
263
231
|
let key = `gShareBaseURL:${gShareBaseURL}`;
|
|
264
|
-
|
|
265
232
|
if (Platform.OS === 'ios') {
|
|
266
233
|
key += `_appLanguage:${appLanguage}`;
|
|
267
234
|
}
|
|
268
|
-
|
|
269
235
|
key += `_videoLaunchBehavior:${videoLaunchBehavior}`;
|
|
270
236
|
key += `_adBadgeTextType:${adBadgeTextType}`;
|
|
271
237
|
key += `_backgroundColorOfAdBadge:${backgroundColorOfAdBadge}`;
|
|
272
238
|
key += `_textColorOfAdBadge:${textColorOfAdBadge}`;
|
|
273
|
-
|
|
274
239
|
if (Platform.OS === 'android') {
|
|
275
240
|
key += `_androidFontIsCustomOfAdBadge${androidFontIsCustomOfAdBadge}`;
|
|
276
241
|
key += `_androidFontTypefaceNameOfAdBadge${androidFontTypefaceNameOfAdBadge}`;
|
|
277
242
|
}
|
|
278
|
-
|
|
279
243
|
key += `_dataTrackingLevel:${dataTrackingLevel}`;
|
|
280
244
|
key += `_livestreamPlayerDesignVersion:${livestreamPlayerDesignVersion}`;
|
|
281
245
|
key += `_source:${source}`;
|
|
@@ -283,7 +247,7 @@ const StoryBlock = (props, forwardedRef) => {
|
|
|
283
247
|
key += `_playlist:${playlist}`;
|
|
284
248
|
key += `_dynamicContentParameters:${dynamicContentParametersString}`;
|
|
285
249
|
key += `_hashtagFilterExpression:${hashtagFilterExpression}`;
|
|
286
|
-
key += `productIds:${productIds
|
|
250
|
+
key += `productIds:${productIds?.join(',')}`;
|
|
287
251
|
key += `_contentId:${contentId}`;
|
|
288
252
|
key += `_enablePictureInPicture:${enablePictureInPicture}`;
|
|
289
253
|
key += `_cornerRadius:${cornerRadius}`;
|
|
@@ -299,17 +263,15 @@ const StoryBlock = (props, forwardedRef) => {
|
|
|
299
263
|
key += `_ctaHighlightDelayType:${ctaHighlightDelayType}`;
|
|
300
264
|
key += `_ctaHighlightDelayValue:${ctaHighlightDelayValue}`;
|
|
301
265
|
key += `_ctaWidth:${ctaWidth}`;
|
|
302
|
-
key += `_buttonConfiguration.videoDetailButton:${generateButtonInfoString(buttonConfiguration
|
|
303
|
-
key += `_buttonConfiguration.closeButton:${generateButtonInfoString(buttonConfiguration
|
|
304
|
-
key += `_buttonConfiguration.muteButton:${generateButtonInfoString(buttonConfiguration
|
|
305
|
-
key += `_buttonConfiguration.unmuteButton:${generateButtonInfoString(buttonConfiguration
|
|
306
|
-
key += `_buttonConfiguration.playButton:${generateButtonInfoString(buttonConfiguration
|
|
307
|
-
key += `_buttonConfiguration.pauseButton:${generateButtonInfoString(buttonConfiguration
|
|
308
|
-
|
|
266
|
+
key += `_buttonConfiguration.videoDetailButton:${generateButtonInfoString(buttonConfiguration?.videoDetailButton)}`;
|
|
267
|
+
key += `_buttonConfiguration.closeButton:${generateButtonInfoString(buttonConfiguration?.closeButton)}`;
|
|
268
|
+
key += `_buttonConfiguration.muteButton:${generateButtonInfoString(buttonConfiguration?.muteButton)}`;
|
|
269
|
+
key += `_buttonConfiguration.unmuteButton:${generateButtonInfoString(buttonConfiguration?.unmuteButton)}`;
|
|
270
|
+
key += `_buttonConfiguration.playButton:${generateButtonInfoString(buttonConfiguration?.playButton)}`;
|
|
271
|
+
key += `_buttonConfiguration.pauseButton:${generateButtonInfoString(buttonConfiguration?.pauseButton)}`;
|
|
309
272
|
if (Platform.OS === 'android') {
|
|
310
273
|
key += `_videoPlayerLogoConfiguration:${videoPlayerLogoConfigurationJsonKey}`;
|
|
311
274
|
}
|
|
312
|
-
|
|
313
275
|
key += `_showVideoDetailTitle:${showVideoDetailTitle}`;
|
|
314
276
|
key += `_requiresAds:${requiresAds}`;
|
|
315
277
|
key += `_adsFetchTimeout:${adsFetchTimeout}`;
|
|
@@ -319,28 +281,22 @@ const StoryBlock = (props, forwardedRef) => {
|
|
|
319
281
|
key += `_countdownTimerConfiguration:${countdownTimerConfigurationJsonKey}`;
|
|
320
282
|
return key;
|
|
321
283
|
};
|
|
322
|
-
|
|
323
284
|
const key = generateKey();
|
|
324
285
|
console.log('story block key', key);
|
|
325
286
|
useImperativeHandle(forwardedRef, () => {
|
|
326
287
|
const sendCommand = command => {
|
|
327
288
|
const nativeNodeHandle = findNodeHandle(nativeComponentRef.current);
|
|
328
|
-
let commandId = UIManager.getViewManagerConfig(NativeComponentName).Commands[command];
|
|
329
|
-
|
|
289
|
+
let commandId = UIManager.getViewManagerConfig(NativeComponentName).Commands[command] ?? '';
|
|
330
290
|
if (Platform.OS === 'android') {
|
|
331
291
|
commandId = commandId.toString();
|
|
332
292
|
}
|
|
333
|
-
|
|
334
293
|
let reactTag = findNodeHandle(nativeNodeHandle);
|
|
335
294
|
FWLoggerUtil.log(`StoryBlock sendCommand: ${command} commandId: ${commandId} nativeNodeHandle: ${nativeNodeHandle} reactTag: ${reactTag}`);
|
|
336
|
-
|
|
337
295
|
if (!nativeNodeHandle || !reactTag) {
|
|
338
296
|
return;
|
|
339
297
|
}
|
|
340
|
-
|
|
341
298
|
UIManager.dispatchViewManagerCommand(reactTag, commandId, []);
|
|
342
299
|
};
|
|
343
|
-
|
|
344
300
|
return {
|
|
345
301
|
play: () => {
|
|
346
302
|
sendCommand('play');
|
|
@@ -355,14 +311,12 @@ const StoryBlock = (props, forwardedRef) => {
|
|
|
355
311
|
if (Platform.OS !== 'ios') {
|
|
356
312
|
return;
|
|
357
313
|
}
|
|
358
|
-
|
|
359
314
|
sendCommand('onViewportEntered');
|
|
360
315
|
},
|
|
361
316
|
onViewportLeft: () => {
|
|
362
317
|
if (Platform.OS !== 'ios') {
|
|
363
318
|
return;
|
|
364
319
|
}
|
|
365
|
-
|
|
366
320
|
sendCommand('onViewportLeft');
|
|
367
321
|
}
|
|
368
322
|
};
|
|
@@ -411,12 +365,10 @@ const StoryBlock = (props, forwardedRef) => {
|
|
|
411
365
|
setTimeout(() => {
|
|
412
366
|
const viewId = findNodeHandle(nativeComponentRef.current);
|
|
413
367
|
FWLoggerUtil.log(`StoryBlock createFragment viewId: ${viewId}`);
|
|
414
|
-
|
|
415
368
|
if (!viewId) {
|
|
416
369
|
return;
|
|
417
370
|
}
|
|
418
|
-
|
|
419
|
-
UIManager.dispatchViewManagerCommand(viewId, UIManager.getViewManagerConfig(NativeComponentName).Commands.create.toString(), [viewId]);
|
|
371
|
+
UIManager.dispatchViewManagerCommand(viewId, UIManager.getViewManagerConfig(NativeComponentName).Commands.create?.toString() ?? '', [viewId]);
|
|
420
372
|
}, 500);
|
|
421
373
|
}
|
|
422
374
|
}, [key]);
|
|
@@ -425,20 +377,17 @@ const StoryBlock = (props, forwardedRef) => {
|
|
|
425
377
|
setSdkInitCalled(true);
|
|
426
378
|
});
|
|
427
379
|
}, []);
|
|
428
|
-
|
|
429
380
|
if (!sdkInitCalled) {
|
|
430
381
|
return null;
|
|
431
382
|
}
|
|
432
|
-
|
|
433
383
|
const {
|
|
434
384
|
style,
|
|
435
385
|
cornerRadius,
|
|
436
386
|
...otherProps
|
|
437
387
|
} = props;
|
|
438
|
-
return /*#__PURE__*/
|
|
388
|
+
return /*#__PURE__*/_jsx(FWStoryBlock, {
|
|
439
389
|
ref: nativeComponentRef,
|
|
440
|
-
|
|
441
|
-
}, otherProps, {
|
|
390
|
+
...otherProps,
|
|
442
391
|
cornerRadius: cornerRadius,
|
|
443
392
|
style: Object.assign({
|
|
444
393
|
borderRadius: cornerRadius
|
|
@@ -450,8 +399,7 @@ const StoryBlock = (props, forwardedRef) => {
|
|
|
450
399
|
onStoryBlockDidStartPictureInPicture: handleStoryBlockDidStartPictureInPicture,
|
|
451
400
|
onStoryBlockDidStopPictureInPicture: handleStoryBlockDidStopPictureInPicture,
|
|
452
401
|
onStoryBlockGetFeedId: handleStoryBlockGetFeedId
|
|
453
|
-
})
|
|
402
|
+
}, key);
|
|
454
403
|
};
|
|
455
|
-
|
|
456
404
|
export default /*#__PURE__*/forwardRef(StoryBlock);
|
|
457
405
|
//# sourceMappingURL=StoryBlock.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["StoryBlock.tsx"],"names":["React","forwardRef","useEffect","useImperativeHandle","useReducer","useRef","useState","findNodeHandle","Platform","UIManager","FireworkSDK","FWEventName","FireworkSDKModuleEventEmitter","FWGlobalState","FWLoggerUtil","FWStoryBlock","gennerateJsonKey","FWComponentType","NativeComponentName","StoryBlock","props","forwardedRef","nativeComponentRef","sdkInitCalled","setSdkInitCalled","getInstance","loadedRef","forceUpdate","x","handleStoryBlockLoadFinished","event","log","nativeEvent","name","onStoryBlockLoadFinished","onStoryBlockEmpty","reason","error","current","handleStoryBlockEmpty","handleStoryBlockDidStartPictureInPicture","JSON","stringify","onStoryBlockDidStartPictureInPicture","handleStoryBlockDidStopPictureInPicture","onStoryBlockDidStopPictureInPicture","handleStoryBlockGetFeedId","onStoryBlockGetFeedId","feedId","componentTypeByFeedIdMap","set","storyBlock","generateDynamicContentParametersString","dynamicContentParameters","resultString","sortedKeyList","Object","keys","sort","key","value","valueString","join","length","generateVastAttributesString","adConfiguration","vastAttributes","attribute","generateButtonInfoString","buttonInfo","imageName","systemImageName","tintColor","getStoryBlockConfiguration","storyBlockConfiguration","enablePictureInPicture","resultStoryBlockConfiguration","generateKey","gShareBaseURL","shareBaseURL","appLanguage","videoLaunchBehavior","adBadgeConfiguration","adBadgeTextType","badgeTextType","backgroundColorOfAdBadge","backgroundColor","textColorOfAdBadge","textColor","androidFontIsCustomOfAdBadge","androidFontInfo","isCustom","androidFontTypefaceNameOfAdBadge","typefaceName","dataTrackingLevel","livestreamPlayerDesignVersion","source","channel","playlist","hashtagFilterExpression","productIds","contentId","cornerRadius","dynamicContentParametersString","playerStyle","videoCompleteAction","showShareButton","showPlaybackButton","showMuteButton","showBranding","ctaDelayType","ctaDelay","type","ctaDelayValue","toFixed","ctaHighlightDelayType","ctaHighlightDelay","ctaHighlightDelayValue","buttonConfiguration","videoPlayerLogoConfigurationJsonKey","videoPlayerLogoConfiguration","ctaWidth","showVideoDetailTitle","requiresAds","adsFetchTimeout","vastAttributesString","productInfoViewConfigurationJsonKey","shopping","productInfoViewConfiguration","replayBadgeConfigurationJsonKey","replayBadgeConfiguration","countdownTimerConfigurationJsonKey","countdownTimerConfiguration","OS","videoDetailButton","closeButton","muteButton","unmuteButton","playButton","pauseButton","console","sendCommand","command","nativeNodeHandle","commandId","getViewManagerConfig","Commands","toString","reactTag","dispatchViewManagerCommand","play","pause","openFullscreen","onViewportEntered","onViewportLeft","subscriptionOfShareBaseURLUpdated","addListener","ShareBaseURLUpdated","subscriptionOfAdBadgeConfigurationUpdated","AdBadgeConfigurationUpdated","subscriptionOfVideoLaunchBehaviorUpdated","VideoLaunchBehaviorUpdated","subscriptionOfAppLanguageUpdated","AppLanguageUpdated","subscriptionOfProductInfoViewConfigurationUpdated","ProductInfoViewConfigurationUpdated","subscriptionOfDataTrackingLevelUpdated","DataTrackingLevelUpdated","subscriptionOfLivestreamPlayerDesignVersionUpdated","LivestreamPlayerDesignVersionUpdated","remove","setTimeout","viewId","create","sdkInitCalledPromise","then","style","otherProps","assign","borderRadius","undefined"],"mappings":";;AACA,OAAOA,KAAP,IACEC,UADF,EAEEC,SAFF,EAGEC,mBAHF,EAIEC,UAJF,EAKEC,MALF,EAMEC,QANF,QAOO,OAPP;AASA,SACEC,cADF,EAGEC,QAHF,EAKEC,SALF,QAOO,cAPP;AASA,OAAOC,WAAP,MAAwB,gBAAxB;AAGA,SAASC,WAAT,QAA4B,uBAA5B;AAIA,SAASC,6BAAT,QAA8C,8BAA9C;AACA,OAAOC,aAAP,MAA0B,wBAA1B;AACA,OAAOC,YAAP,MAAyB,uBAAzB;AACA,OAAOC,YAAP,MAAyB,gBAAzB;AAEA,OAAOC,gBAAP,MAA6B,qBAA7B;AACA,SA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DC,IAAjD,CAAsD,MAAM;AAC1DvJ,MAAAA,gBAAgB,CAAC,IAAD,CAAhB;AACD,KAFD;AAGD,GAJQ,EAIN,EAJM,CAAT;;AAMA,MAAI,CAACD,aAAL,EAAoB;AAClB,WAAO,IAAP;AACD;;AACD,QAAM;AAAEyJ,IAAAA,KAAF;AAAS1E,IAAAA,YAAT;AAAuB,OAAG2E;AAA1B,MAAyC7J,KAA/C;AACA,sBACE,oBAAC,YAAD;AACE,IAAA,GAAG,EAAEE,kBADP;AAEE,IAAA,GAAG,EAAEqC;AAFP,KAGMsH,UAHN;AAIE,IAAA,YAAY,EAAE3E,YAJhB;AAKE,IAAA,KAAK,EAAE9C,MAAM,CAAC0H,MAAP,CAAc;AAAEC,MAAAA,YAAY,EAAE7E;AAAhB,KAAd,EAA8C0E,KAA9C,CALT;AAME,IAAA,uBAAuB,EAAEtG,uBAN3B;AAOE,IAAA,sBAAsB,EAAE0G,SAP1B;AAQE,IAAA,wBAAwB,EAAEvJ,4BAR5B;AASE,IAAA,iBAAiB,EAAEU,qBATrB;AAUE,IAAA,oCAAoC,EAClCC,wCAXJ;AAaE,IAAA,mCAAmC,EACjCI,uCAdJ;AAgBE,IAAA,qBAAqB,EAAEE;AAhBzB,KADF;AAoBD,CA7eD;;AA+eA,4BAAe7C,UAAU,CAACkB,UAAD,CAAzB","sourcesContent":["import type { ForwardRefRenderFunction } from 'react';\nimport React, {\n forwardRef,\n useEffect,\n useImperativeHandle,\n useReducer,\n useRef,\n useState,\n} from 'react';\n\nimport {\n findNodeHandle,\n NativeSyntheticEvent,\n Platform,\n StyleProp,\n UIManager,\n ViewStyle,\n} from 'react-native';\n\nimport FireworkSDK from '../FireworkSDK';\nimport type AdConfiguration from '../models/AdConfiguration';\nimport type FWError from '../models/FWError';\nimport { FWEventName } from '../models/FWEventName';\nimport type { StoryBlockConfiguration } from '../models/StoryBlockConfiguration';\nimport type StoryBlockNativeConfiguration from '../models/StoryBlockNativeConfiguration';\nimport type { StoryBlockSource } from '../models/StoryBlockSource';\nimport { FireworkSDKModuleEventEmitter } from '../modules/FireworkSDKModule';\nimport FWGlobalState from '../utils/FWGlobalState';\nimport FWLoggerUtil from '../utils/FWLoggerUtil';\nimport FWStoryBlock from './FWStoryBlock';\nimport type ButtonInfo from '../models/ButtonInfo';\nimport gennerateJsonKey from '../utils/FWJsonUtil';\nimport { FWComponentType } from '../models/FWComponentType';\n\nconst NativeComponentName = 'FWStoryBlock';\n\nexport interface IStoryBlockMethods {\n /**\n * Play the story block.\n */\n play: () => void;\n /**\n * Pause the story block.\n */\n pause: () => void;\n /**\n * Open the fullscreen story block.\n * Only supported on Android.\n */\n openFullscreen: () => void;\n /**\n * Triggered when the story block enters the viewport.\n * Only supported on iOS.\n * It is recommended that the host app is triggered when listening for scrolling.\n */\n onViewportEntered: () => void;\n /**\n * Triggered when the story block leaves the viewport.\n * Only supported on iOS.\n * It is recommended that the host app is triggered when listening for scrolling.\n */\n onViewportLeft: () => void;\n}\n\n/**\n * The props type of StoryBlock component.\n */\nexport interface IStoryBlockProps {\n /**\n * Standard React Native View Style.\n */\n style?: StyleProp<ViewStyle>;\n /**\n * One of four available story block sources.\n */\n source: StoryBlockSource;\n /**\n * Channel id of the story block. Required when the source is set as channel or playlist or dynamicContent.\n */\n channel?: string;\n /**\n * Playlist id of the story block. Please note channel id is necessary. Required when the source is set as playlist.\n */\n playlist?: string;\n /**\n * The dynamic content parameters of the story block. Required when the source is set as dynamicContent.\n */\n dynamicContentParameters?: { [key: string]: string[] };\n /**\n * Hashtag filter expression is an s-expression used to provide feeds filtered by hashtags with specified criteria.\n * Queries are specified with boolean predicates on what hashtags are there on the video.\n * For instance, (and sport food) (or sport food) (and sport (or food comedy)) sport are all valid expressions.\n * Non-UTF-8 characters are not allowed. If using boolean predicates, the expression needs to be wrapped with parenthesis.\n */\n hashtagFilterExpression?: string;\n /**\n * Product ids used to generate the sku feed\n */\n productIds?: string[];\n /**\n * The video or live stream id.\n */\n contentId?: string;\n /**\n * Specifies if Picture in Picture is enabled. Only supported on iOS.\n */\n enablePictureInPicture?: boolean;\n /**\n * The corner radius of story block.\n */\n cornerRadius?: number;\n /**\n * Ad configuration of the feed.\n */\n adConfiguration?: AdConfiguration;\n\n /* The configuration of the story block. */\n storyBlockConfiguration?: StoryBlockConfiguration;\n /**\n * The feed loading result callback. It means loading successfully when error equals to undefined.\n */\n onStoryBlockLoadFinished?: (error?: FWError) => void;\n /**\n * The callback is triggered when there are no items in the story block.\n * The callback is triggered in the following cases:\n * 1. Loading successfully but the back end returns an empty list.\n * 2. The load failed and list is empty.\n * onStoryBlockLoadFinished will also be triggered when onStoryBlockEmpty is triggered.\n */\n onStoryBlockEmpty?: (error?: FWError) => void;\n /**\n * Start Picture in Picture callback. Only supported on iOS.\n */\n onStoryBlockDidStartPictureInPicture?: (error?: FWError) => void;\n /**\n * Stop Picture in Picture callback. Only supported on iOS.\n */\n onStoryBlockDidStopPictureInPicture?: (error?: FWError) => void;\n /**\n *\n * The host app could use this callback to get feed id.\n * The feed id can be used for conversion tracking.\n */\n onStoryBlockGetFeedId?: (feedId: string) => void;\n}\n\nconst StoryBlock: ForwardRefRenderFunction<\n IStoryBlockMethods,\n IStoryBlockProps\n> = (props: IStoryBlockProps, forwardedRef) => {\n const nativeComponentRef = useRef(null);\n const [sdkInitCalled, setSdkInitCalled] = useState<boolean>(\n FWGlobalState.getInstance().sdkInitCalled\n );\n const loadedRef = useRef<boolean>(false);\n const [, forceUpdate] = useReducer((x) => x + 1, 0);\n\n const handleStoryBlockLoadFinished = (event: NativeSyntheticEvent<any>) => {\n FWLoggerUtil.log(\n `StoryBlock handleStoryBlockLoadFinished ${event.nativeEvent.name}`\n );\n\n const { onStoryBlockLoadFinished, onStoryBlockEmpty } = props;\n const { name, reason } = event.nativeEvent;\n\n if (onStoryBlockLoadFinished) {\n if (name) {\n let error: FWError = { name };\n if (reason) {\n error.reason = reason;\n }\n\n onStoryBlockLoadFinished(error);\n if (!loadedRef.current) {\n onStoryBlockEmpty?.(error);\n }\n } else {\n onStoryBlockLoadFinished();\n loadedRef.current = true;\n }\n }\n };\n\n const handleStoryBlockEmpty = (event: NativeSyntheticEvent<any>) => {\n FWLoggerUtil.log(`StoryBlock handleStoryBlockEmpty ${event.nativeEvent}`);\n\n const { onStoryBlockEmpty } = props;\n\n if (onStoryBlockEmpty) {\n onStoryBlockEmpty();\n }\n };\n\n const handleStoryBlockDidStartPictureInPicture = (\n event: NativeSyntheticEvent<any>\n ) => {\n FWLoggerUtil.log(\n `StoryBlock handleStoryBlockDidStartPictureInPicture ${JSON.stringify(\n event.nativeEvent\n )}`\n );\n const { onStoryBlockDidStartPictureInPicture } = props;\n\n const { name, reason } = event.nativeEvent;\n\n if (onStoryBlockDidStartPictureInPicture) {\n if (name) {\n if (reason) {\n onStoryBlockDidStartPictureInPicture({ name, reason });\n } else {\n onStoryBlockDidStartPictureInPicture({ name });\n }\n } else {\n onStoryBlockDidStartPictureInPicture();\n }\n }\n };\n\n const handleStoryBlockDidStopPictureInPicture = (\n event: NativeSyntheticEvent<any>\n ) => {\n FWLoggerUtil.log(\n `StoryBlock handleStoryBlockDidStopPictureInPicture ${JSON.stringify(\n event.nativeEvent\n )}`\n );\n const { onStoryBlockDidStopPictureInPicture } = props;\n\n const { name, reason } = event.nativeEvent;\n\n if (onStoryBlockDidStopPictureInPicture) {\n if (name) {\n if (reason) {\n onStoryBlockDidStopPictureInPicture({ name, reason });\n } else {\n onStoryBlockDidStopPictureInPicture({ name });\n }\n } else {\n onStoryBlockDidStopPictureInPicture();\n }\n }\n };\n\n const handleStoryBlockGetFeedId = (event: NativeSyntheticEvent<any>) => {\n FWLoggerUtil.log(\n `StoryBlock handleStoryBlockGetFeedId ${JSON.stringify(\n event.nativeEvent\n )}`\n );\n const { onStoryBlockGetFeedId } = props;\n\n const { feedId } = event.nativeEvent;\n\n if (feedId) {\n FWGlobalState.getInstance().componentTypeByFeedIdMap.set(\n feedId,\n FWComponentType.storyBlock\n );\n }\n\n if (onStoryBlockGetFeedId) {\n onStoryBlockGetFeedId(feedId ?? '');\n }\n };\n\n const generateDynamicContentParametersString = (): string => {\n const { dynamicContentParameters } = props;\n\n if (!dynamicContentParameters) {\n return '';\n }\n\n let resultString = '';\n const sortedKeyList = Object.keys(dynamicContentParameters).sort();\n for (const key of sortedKeyList) {\n const value = dynamicContentParameters[key];\n const valueString = value.join(',');\n if (resultString.length > 0) {\n resultString += '_';\n }\n\n resultString += `${key}:${valueString}`;\n }\n\n return resultString;\n };\n\n const generateVastAttributesString = () => {\n const { adConfiguration } = props;\n const vastAttributes = adConfiguration?.vastAttributes;\n if (!vastAttributes) {\n return '';\n }\n\n let resultString = '';\n for (const attribute of vastAttributes) {\n if (resultString.length > 0) {\n resultString += '_';\n }\n resultString += `${attribute.name ?? ''}:${attribute.value}`;\n }\n\n return resultString;\n };\n\n const generateButtonInfoString = (buttonInfo?: ButtonInfo) => {\n return `imageName:${buttonInfo?.imageName}_systemImageName:${buttonInfo?.systemImageName}_tintColor:${buttonInfo?.tintColor}`;\n };\n\n const getStoryBlockConfiguration: () =>\n | StoryBlockNativeConfiguration\n | undefined = () => {\n const { storyBlockConfiguration, enablePictureInPicture } = props;\n let resultStoryBlockConfiguration:\n | StoryBlockNativeConfiguration\n | undefined = storyBlockConfiguration;\n if (typeof enablePictureInPicture === 'boolean') {\n if (!resultStoryBlockConfiguration) {\n resultStoryBlockConfiguration = {};\n }\n resultStoryBlockConfiguration = {\n ...resultStoryBlockConfiguration,\n enablePictureInPicture,\n };\n }\n return resultStoryBlockConfiguration;\n };\n const storyBlockConfiguration = getStoryBlockConfiguration();\n\n const generateKey = (): string => {\n const gShareBaseURL = FireworkSDK.getInstance().shareBaseURL;\n const appLanguage = FireworkSDK.getInstance().appLanguage;\n const videoLaunchBehavior = FireworkSDK.getInstance().videoLaunchBehavior;\n const adBadgeConfiguration = FireworkSDK.getInstance().adBadgeConfiguration;\n const adBadgeTextType = adBadgeConfiguration?.badgeTextType;\n const backgroundColorOfAdBadge = adBadgeConfiguration?.backgroundColor;\n const textColorOfAdBadge = adBadgeConfiguration?.textColor;\n const androidFontIsCustomOfAdBadge =\n adBadgeConfiguration?.androidFontInfo?.isCustom;\n const androidFontTypefaceNameOfAdBadge =\n adBadgeConfiguration?.androidFontInfo?.typefaceName;\n const dataTrackingLevel = FireworkSDK.getInstance().dataTrackingLevel;\n const livestreamPlayerDesignVersion =\n FireworkSDK.getInstance().livestreamPlayerDesignVersion;\n\n const {\n source,\n channel,\n playlist,\n hashtagFilterExpression,\n productIds,\n contentId,\n enablePictureInPicture,\n cornerRadius,\n adConfiguration,\n } = props;\n const dynamicContentParametersString =\n generateDynamicContentParametersString();\n\n const playerStyle = storyBlockConfiguration?.playerStyle;\n const videoCompleteAction = storyBlockConfiguration?.videoCompleteAction;\n const showShareButton = storyBlockConfiguration?.showShareButton;\n const showPlaybackButton = storyBlockConfiguration?.showPlaybackButton;\n const showMuteButton = storyBlockConfiguration?.showMuteButton;\n const showBranding = storyBlockConfiguration?.showBranding;\n const ctaDelayType = storyBlockConfiguration?.ctaDelay?.type;\n const ctaDelayValue = storyBlockConfiguration?.ctaDelay?.value?.toFixed(5);\n const ctaHighlightDelayType =\n storyBlockConfiguration?.ctaHighlightDelay?.type;\n const ctaHighlightDelayValue =\n storyBlockConfiguration?.ctaHighlightDelay?.value?.toFixed(5);\n const shareBaseURL = storyBlockConfiguration?.shareBaseURL;\n const buttonConfiguration = storyBlockConfiguration?.buttonConfiguration;\n const videoPlayerLogoConfigurationJsonKey = gennerateJsonKey(\n storyBlockConfiguration?.videoPlayerLogoConfiguration\n );\n const ctaWidth = storyBlockConfiguration?.ctaWidth;\n const showVideoDetailTitle = storyBlockConfiguration?.showVideoDetailTitle;\n\n const requiresAds = adConfiguration?.requiresAds;\n const adsFetchTimeout = adConfiguration?.adsFetchTimeout;\n const vastAttributesString = generateVastAttributesString();\n const productInfoViewConfigurationJsonKey = gennerateJsonKey(\n FireworkSDK.getInstance().shopping.productInfoViewConfiguration\n );\n const replayBadgeConfigurationJsonKey = gennerateJsonKey(\n storyBlockConfiguration?.replayBadgeConfiguration\n );\n const countdownTimerConfigurationJsonKey = gennerateJsonKey(\n storyBlockConfiguration?.countdownTimerConfiguration\n );\n\n let key = `gShareBaseURL:${gShareBaseURL}`;\n if (Platform.OS === 'ios') {\n key += `_appLanguage:${appLanguage}`;\n }\n key += `_videoLaunchBehavior:${videoLaunchBehavior}`;\n key += `_adBadgeTextType:${adBadgeTextType}`;\n key += `_backgroundColorOfAdBadge:${backgroundColorOfAdBadge}`;\n key += `_textColorOfAdBadge:${textColorOfAdBadge}`;\n if (Platform.OS === 'android') {\n key += `_androidFontIsCustomOfAdBadge${androidFontIsCustomOfAdBadge}`;\n key += `_androidFontTypefaceNameOfAdBadge${androidFontTypefaceNameOfAdBadge}`;\n }\n key += `_dataTrackingLevel:${dataTrackingLevel}`;\n key += `_livestreamPlayerDesignVersion:${livestreamPlayerDesignVersion}`;\n key += `_source:${source}`;\n key += `_channel:${channel}`;\n key += `_playlist:${playlist}`;\n key += `_dynamicContentParameters:${dynamicContentParametersString}`;\n key += `_hashtagFilterExpression:${hashtagFilterExpression}`;\n key += `productIds:${productIds?.join(',')}`;\n key += `_contentId:${contentId}`;\n key += `_enablePictureInPicture:${enablePictureInPicture}`;\n key += `_cornerRadius:${cornerRadius}`;\n\n key += `_shareBaseURL:${shareBaseURL}`;\n key += `_playerStyle:${playerStyle}`;\n key += `_videoCompleteAction:${videoCompleteAction}`;\n key += `_showShareButton:${showShareButton}`;\n key += `_showPlaybackButton:${showPlaybackButton}`;\n key += `_showMuteButton:${showMuteButton}`;\n key += `_showBranding:${showBranding}`;\n key += `_ctaDelayType:${ctaDelayType}`;\n key += `_ctaDelayValue:${ctaDelayValue}`;\n key += `_ctaHighlightDelayType:${ctaHighlightDelayType}`;\n key += `_ctaHighlightDelayValue:${ctaHighlightDelayValue}`;\n key += `_ctaWidth:${ctaWidth}`;\n key += `_buttonConfiguration.videoDetailButton:${generateButtonInfoString(\n buttonConfiguration?.videoDetailButton\n )}`;\n key += `_buttonConfiguration.closeButton:${generateButtonInfoString(\n buttonConfiguration?.closeButton\n )}`;\n key += `_buttonConfiguration.muteButton:${generateButtonInfoString(\n buttonConfiguration?.muteButton\n )}`;\n key += `_buttonConfiguration.unmuteButton:${generateButtonInfoString(\n buttonConfiguration?.unmuteButton\n )}`;\n key += `_buttonConfiguration.playButton:${generateButtonInfoString(\n buttonConfiguration?.playButton\n )}`;\n key += `_buttonConfiguration.pauseButton:${generateButtonInfoString(\n buttonConfiguration?.pauseButton\n )}`;\n if (Platform.OS === 'android') {\n key += `_videoPlayerLogoConfiguration:${videoPlayerLogoConfigurationJsonKey}`;\n }\n key += `_showVideoDetailTitle:${showVideoDetailTitle}`;\n\n key += `_requiresAds:${requiresAds}`;\n key += `_adsFetchTimeout:${adsFetchTimeout}`;\n key += `_vastAttributes:${vastAttributesString}`;\n key += `_productInfoViewConfiguration:${productInfoViewConfigurationJsonKey}`;\n key += `_replayBadgeConfiguration:${replayBadgeConfigurationJsonKey}`;\n key += `_countdownTimerConfiguration:${countdownTimerConfigurationJsonKey}`;\n\n return key;\n };\n\n const key = generateKey();\n\n console.log('story block key', key);\n\n useImperativeHandle(\n forwardedRef,\n () => {\n const sendCommand = (command: string) => {\n const nativeNodeHandle = findNodeHandle(nativeComponentRef.current);\n\n let commandId: string | number =\n UIManager.getViewManagerConfig(NativeComponentName).Commands[command];\n if (Platform.OS === 'android') {\n commandId = commandId.toString();\n }\n let reactTag: number | null = findNodeHandle(nativeNodeHandle);\n FWLoggerUtil.log(\n `StoryBlock sendCommand: ${command} commandId: ${commandId} nativeNodeHandle: ${nativeNodeHandle} reactTag: ${reactTag}`\n );\n if (!nativeNodeHandle || !reactTag) {\n return;\n }\n UIManager.dispatchViewManagerCommand(reactTag, commandId, []);\n };\n return {\n play: () => {\n sendCommand('play');\n },\n pause: () => {\n sendCommand('pause');\n },\n openFullscreen: () => {\n sendCommand('openFullscreen');\n },\n onViewportEntered: () => {\n if (Platform.OS !== 'ios') {\n return;\n }\n sendCommand('onViewportEntered');\n },\n onViewportLeft: () => {\n if (Platform.OS !== 'ios') {\n return;\n }\n sendCommand('onViewportLeft');\n },\n };\n },\n []\n );\n\n useEffect(() => {\n const subscriptionOfShareBaseURLUpdated =\n FireworkSDKModuleEventEmitter.addListener(\n FWEventName.ShareBaseURLUpdated,\n () => {\n FWLoggerUtil.log('Receive FWEventName.ShareBaseURLUpdated');\n forceUpdate();\n }\n );\n const subscriptionOfAdBadgeConfigurationUpdated =\n FireworkSDKModuleEventEmitter.addListener(\n FWEventName.AdBadgeConfigurationUpdated,\n () => {\n FWLoggerUtil.log('Receive FWEventName.AdBadgeConfigurationUpdated');\n forceUpdate();\n }\n );\n\n const subscriptionOfVideoLaunchBehaviorUpdated =\n FireworkSDKModuleEventEmitter.addListener(\n FWEventName.VideoLaunchBehaviorUpdated,\n () => {\n FWLoggerUtil.log('Receive FWEventName.VideoLaunchBehaviorUpdated');\n forceUpdate();\n }\n );\n\n const subscriptionOfAppLanguageUpdated =\n FireworkSDKModuleEventEmitter.addListener(\n FWEventName.AppLanguageUpdated,\n () => {\n FWLoggerUtil.log('Receive FWEventName.AppLanguageUpdated');\n forceUpdate();\n }\n );\n\n const subscriptionOfProductInfoViewConfigurationUpdated =\n FireworkSDKModuleEventEmitter.addListener(\n FWEventName.ProductInfoViewConfigurationUpdated,\n () => {\n FWLoggerUtil.log(\n 'Receive FWEventName.ProductInfoViewConfigurationUpdated'\n );\n forceUpdate();\n }\n );\n\n const subscriptionOfDataTrackingLevelUpdated =\n FireworkSDKModuleEventEmitter.addListener(\n FWEventName.DataTrackingLevelUpdated,\n () => {\n FWLoggerUtil.log('Receive FWEventName.DataTrackingLevelUpdated');\n forceUpdate();\n }\n );\n\n const subscriptionOfLivestreamPlayerDesignVersionUpdated =\n FireworkSDKModuleEventEmitter.addListener(\n FWEventName.LivestreamPlayerDesignVersionUpdated,\n () => {\n FWLoggerUtil.log(\n 'Receive FWEventName.LivestreamPlayerDesignVersionUpdated'\n );\n forceUpdate();\n }\n );\n\n return () => {\n subscriptionOfShareBaseURLUpdated.remove();\n subscriptionOfAdBadgeConfigurationUpdated.remove();\n subscriptionOfVideoLaunchBehaviorUpdated.remove();\n subscriptionOfAppLanguageUpdated.remove();\n subscriptionOfProductInfoViewConfigurationUpdated.remove();\n subscriptionOfDataTrackingLevelUpdated.remove();\n subscriptionOfLivestreamPlayerDesignVersionUpdated.remove();\n };\n }, []);\n\n useEffect(() => {\n if (Platform.OS === 'android') {\n setTimeout(() => {\n const viewId = findNodeHandle(nativeComponentRef.current);\n FWLoggerUtil.log(`StoryBlock createFragment viewId: ${viewId}`);\n if (!viewId) {\n return;\n }\n UIManager.dispatchViewManagerCommand(\n viewId,\n UIManager.getViewManagerConfig(\n NativeComponentName\n ).Commands.create.toString(),\n [viewId]\n );\n }, 500);\n }\n }, [key]);\n\n useEffect(() => {\n FWGlobalState.getInstance().sdkInitCalledPromise.then(() => {\n setSdkInitCalled(true);\n });\n }, []);\n\n if (!sdkInitCalled) {\n return null;\n }\n const { style, cornerRadius, ...otherProps } = props;\n return (\n <FWStoryBlock\n ref={nativeComponentRef}\n key={key}\n {...otherProps}\n cornerRadius={cornerRadius}\n style={Object.assign({ borderRadius: cornerRadius }, style)}\n storyBlockConfiguration={storyBlockConfiguration}\n enablePictureInPicture={undefined}\n onStoryBlockLoadFinished={handleStoryBlockLoadFinished}\n onStoryBlockEmpty={handleStoryBlockEmpty}\n onStoryBlockDidStartPictureInPicture={\n handleStoryBlockDidStartPictureInPicture\n }\n onStoryBlockDidStopPictureInPicture={\n handleStoryBlockDidStopPictureInPicture\n }\n onStoryBlockGetFeedId={handleStoryBlockGetFeedId}\n />\n );\n};\n\nexport default forwardRef(StoryBlock);\n"]}
|
|
1
|
+
{"version":3,"names":["forwardRef","useEffect","useImperativeHandle","useReducer","useRef","useState","findNodeHandle","Platform","UIManager","FireworkSDK","FWEventName","FireworkSDKModuleEventEmitter","FWGlobalState","FWLoggerUtil","FWStoryBlock","gennerateJsonKey","FWComponentType","jsx","_jsx","NativeComponentName","StoryBlock","props","forwardedRef","nativeComponentRef","sdkInitCalled","setSdkInitCalled","getInstance","loadedRef","forceUpdate","x","handleStoryBlockLoadFinished","event","log","nativeEvent","name","onStoryBlockLoadFinished","onStoryBlockEmpty","reason","error","current","handleStoryBlockEmpty","handleStoryBlockDidStartPictureInPicture","JSON","stringify","onStoryBlockDidStartPictureInPicture","handleStoryBlockDidStopPictureInPicture","onStoryBlockDidStopPictureInPicture","handleStoryBlockGetFeedId","onStoryBlockGetFeedId","feedId","componentTypeByFeedIdMap","set","storyBlock","generateDynamicContentParametersString","dynamicContentParameters","resultString","sortedKeyList","Object","keys","sort","key","value","valueString","join","length","generateVastAttributesString","adConfiguration","vastAttributes","attribute","generateButtonInfoString","buttonInfo","imageName","systemImageName","tintColor","getStoryBlockConfiguration","storyBlockConfiguration","enablePictureInPicture","resultStoryBlockConfiguration","generateKey","gShareBaseURL","shareBaseURL","appLanguage","videoLaunchBehavior","adBadgeConfiguration","adBadgeTextType","badgeTextType","backgroundColorOfAdBadge","backgroundColor","textColorOfAdBadge","textColor","androidFontIsCustomOfAdBadge","androidFontInfo","isCustom","androidFontTypefaceNameOfAdBadge","typefaceName","dataTrackingLevel","livestreamPlayerDesignVersion","source","channel","playlist","hashtagFilterExpression","productIds","contentId","cornerRadius","dynamicContentParametersString","playerStyle","videoCompleteAction","showShareButton","showPlaybackButton","showMuteButton","showBranding","ctaDelayType","ctaDelay","type","ctaDelayValue","toFixed","ctaHighlightDelayType","ctaHighlightDelay","ctaHighlightDelayValue","buttonConfiguration","videoPlayerLogoConfigurationJsonKey","videoPlayerLogoConfiguration","ctaWidth","showVideoDetailTitle","requiresAds","adsFetchTimeout","vastAttributesString","productInfoViewConfigurationJsonKey","shopping","productInfoViewConfiguration","replayBadgeConfigurationJsonKey","replayBadgeConfiguration","countdownTimerConfigurationJsonKey","countdownTimerConfiguration","OS","videoDetailButton","closeButton","muteButton","unmuteButton","playButton","pauseButton","console","sendCommand","command","nativeNodeHandle","commandId","getViewManagerConfig","Commands","toString","reactTag","dispatchViewManagerCommand","play","pause","openFullscreen","onViewportEntered","onViewportLeft","subscriptionOfShareBaseURLUpdated","addListener","ShareBaseURLUpdated","subscriptionOfAdBadgeConfigurationUpdated","AdBadgeConfigurationUpdated","subscriptionOfVideoLaunchBehaviorUpdated","VideoLaunchBehaviorUpdated","subscriptionOfAppLanguageUpdated","AppLanguageUpdated","subscriptionOfProductInfoViewConfigurationUpdated","ProductInfoViewConfigurationUpdated","subscriptionOfDataTrackingLevelUpdated","DataTrackingLevelUpdated","subscriptionOfLivestreamPlayerDesignVersionUpdated","LivestreamPlayerDesignVersionUpdated","remove","setTimeout","viewId","create","sdkInitCalledPromise","then","style","otherProps","ref","assign","borderRadius","undefined"],"sourceRoot":"../../../src","sources":["components/StoryBlock.tsx"],"mappings":";;AACA,SACEA,UAAU,EACVC,SAAS,EACTC,mBAAmB,EACnBC,UAAU,EACVC,MAAM,EACNC,QAAQ,QACH,OAAO;AAEd,SACEC,cAAc,EAEdC,QAAQ,EAERC,SAAS,QAEJ,cAAc;AAErB,OAAOC,WAAW,MAAM,mBAAgB;AAGxC,SAASC,WAAW,QAAQ,0BAAuB;AAInD,SAASC,6BAA6B,QAAQ,iCAA8B;AAC5E,OAAOC,aAAa,MAAM,2BAAwB;AAClD,OAAOC,YAAY,MAAM,0BAAuB;AAChD,OAAOC,YAAY,MAAM,mBAAgB;AAEzC,OAAOC,gBAAgB,MAAM,wBAAqB;AAClD,SAASC,eAAe,QAAQ,8BAA2B;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAE5D,MAAMC,mBAAmB,GAAG,cAAc;;AA8B1C;AACA;AACA;;AAgFA,MAAMC,UAGL,GAAGA,CAACC,KAAuB,EAAEC,YAAY,KAAK;EAC7C,MAAMC,kBAAkB,GAAGnB,MAAM,CAAC,IAAI,CAAC;EACvC,MAAM,CAACoB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