react-native-firework-sdk 2.3.0 → 2.4.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/FireworkVideoUI.xcframework/ios-arm64/FireworkVideoUI.framework/FireworkVideoUI +0 -0
- package/FireworkVideoUI.xcframework/ios-arm64/FireworkVideoUI.framework/Info.plist +0 -0
- package/FireworkVideoUI.xcframework/ios-arm64/FireworkVideoUI.framework/Modules/FireworkVideoUI.swiftmodule/arm64-apple-ios.abi.json +24 -10
- package/FireworkVideoUI.xcframework/ios-arm64/FireworkVideoUI.framework/Modules/FireworkVideoUI.swiftmodule/arm64-apple-ios.private.swiftinterface +1 -1
- package/FireworkVideoUI.xcframework/ios-arm64/FireworkVideoUI.framework/Modules/FireworkVideoUI.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/FireworkVideoUI.xcframework/ios-arm64/FireworkVideoUI.framework/Modules/FireworkVideoUI.swiftmodule/arm64-apple-ios.swiftinterface +1 -1
- package/FireworkVideoUI.xcframework/ios-arm64_x86_64-simulator/FireworkVideoUI.framework/FireworkVideoUI +0 -0
- package/FireworkVideoUI.xcframework/ios-arm64_x86_64-simulator/FireworkVideoUI.framework/Info.plist +0 -0
- package/FireworkVideoUI.xcframework/ios-arm64_x86_64-simulator/FireworkVideoUI.framework/Modules/FireworkVideoUI.swiftmodule/arm64-apple-ios-simulator.abi.json +24 -10
- package/FireworkVideoUI.xcframework/ios-arm64_x86_64-simulator/FireworkVideoUI.framework/Modules/FireworkVideoUI.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +1 -1
- package/FireworkVideoUI.xcframework/ios-arm64_x86_64-simulator/FireworkVideoUI.framework/Modules/FireworkVideoUI.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/FireworkVideoUI.xcframework/ios-arm64_x86_64-simulator/FireworkVideoUI.framework/Modules/FireworkVideoUI.swiftmodule/arm64-apple-ios-simulator.swiftinterface +1 -1
- package/FireworkVideoUI.xcframework/ios-arm64_x86_64-simulator/FireworkVideoUI.framework/Modules/FireworkVideoUI.swiftmodule/x86_64-apple-ios-simulator.abi.json +24 -10
- package/FireworkVideoUI.xcframework/ios-arm64_x86_64-simulator/FireworkVideoUI.framework/Modules/FireworkVideoUI.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +1 -1
- package/FireworkVideoUI.xcframework/ios-arm64_x86_64-simulator/FireworkVideoUI.framework/Modules/FireworkVideoUI.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/FireworkVideoUI.xcframework/ios-arm64_x86_64-simulator/FireworkVideoUI.framework/Modules/FireworkVideoUI.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +1 -1
- package/FireworkVideoUI.xcframework/ios-arm64_x86_64-simulator/FireworkVideoUI.framework/_CodeSignature/CodeResources +21 -21
- package/android/gradle.properties +1 -1
- package/android/src/main/java/com/fireworksdk/bridge/components/storyblock/StoryBlockFragment.kt +20 -0
- package/android/src/main/java/com/fireworksdk/bridge/components/videofeed/FWVideoFeed.kt +1 -69
- package/android/src/main/java/com/fireworksdk/bridge/models/FWVideoFeedPropsModel.kt +3 -1
- package/android/src/main/java/com/fireworksdk/bridge/models/FWVideoFeedPropsModelDeserializer.kt +21 -4
- package/android/src/main/java/com/fireworksdk/bridge/models/FWVideoFeedPropsModelSerializer.kt +15 -3
- package/android/src/main/java/com/fireworksdk/bridge/models/FWVideoPlayerConfigModel.kt +2 -1
- package/android/src/main/java/com/fireworksdk/bridge/models/FWVideoPlayerConfigModelDeserializer.kt +3 -0
- package/android/src/main/java/com/fireworksdk/bridge/models/FWVideoPlayerConfigModelSerializer.kt +2 -0
- package/android/src/main/java/com/fireworksdk/bridge/models/enums/FWVideoFeedSource.kt +3 -1
- package/android/src/main/java/com/fireworksdk/bridge/reactnative/FWReactNativeSDK.kt +6 -0
- package/android/src/main/java/com/fireworksdk/bridge/reactnative/manager/FWStoryBlockManager.kt +20 -15
- package/android/src/main/java/com/fireworksdk/bridge/reactnative/manager/FWVideoFeedManager.kt +45 -16
- package/android/src/main/java/com/fireworksdk/bridge/reactnative/module/FireworkSDKModule.kt +5 -0
- package/android/src/main/java/com/fireworksdk/bridge/utils/FWConfigUtil.kt +11 -1
- package/android/src/main/java/com/fireworksdk/bridge/utils/FWImageLoaderUtil.kt +16 -0
- package/ios/Components/StoryBlock.swift +9 -7
- package/ios/Components/StoryBlockConfiguration.swift +13 -0
- package/ios/Components/StoryBlockManager.m +6 -1
- package/ios/Components/VideoFeed.swift +5 -10
- package/ios/Components/VideoFeedManager.m +1 -2
- package/ios/Components/VideoPlayerConfiguration.swift +1 -0
- package/ios/FireworkSdk.xcodeproj/project.pbxproj +4 -26
- package/ios/FireworkVideoUI/FireworkVideoUI/Sources/AppLanguage/AppLanguageManager.swift +13 -2
- package/ios/FireworkVideoUI/FireworkVideoUI/Sources/AppLanguage/Extensions/UIKit/UIImageView+AppLanguage.swift +0 -34
- package/ios/FireworkVideoUI/Podfile +1 -1
- package/ios/FireworkVideoUI/Podfile.lock +4 -4
- package/ios/Models/RNToNative/RCTConvert+FireworkSDKModule.swift +1 -0
- package/ios/Models/RNToNative/RCTConvert+StoryBlock.swift +16 -1
- package/ios/Models/RNToNative/RCTConvert+VideoFeed.swift +2 -1
- package/ios/Modules/FireworkSDKModule/FireworkSDKModule.swift +8 -4
- package/ios/Modules/Shopping/ShoppingModule.swift +6 -5
- package/ios/react_native_firework_sdk.h +0 -1
- package/package.json +2 -2
- package/react-native-firework-sdk.podspec +1 -1
- package/src/FireworkSDK.ts +2 -2
- package/src/components/StoryBlock.tsx +65 -36
- package/src/components/VideoFeed.tsx +87 -74
- package/src/index.ts +2 -0
- package/src/models/AdBadgeConfiguration.ts +3 -0
- package/src/models/AndroidFontInfo.ts +1 -1
- package/src/models/OpenVideoPlayerConfiguration.ts +9 -0
- package/src/models/Product.ts +1 -1
- package/src/models/ProductUnit.ts +1 -1
- package/src/models/StoryBlockConfiguration.ts +1 -1
- package/src/models/StoryBlockNativeConfiguration.ts +9 -0
- package/src/models/StoryBlockSource.ts +2 -1
- package/src/models/VideoFeedConfiguration.ts +29 -4
- package/src/models/VideoFeedSource.ts +2 -1
- package/src/models/VideoPlayerCTAStyle.ts +6 -0
- package/src/models/VideoPlayerConfiguration.ts +10 -1
- package/src/models/VideoPlayerNativeConfiguration.ts +9 -0
- package/src/modules/FireworkSDKModule.ts +2 -2
- package/ios/Modules/Shopping/FWCartViewController.swift +0 -14
- package/ios/Utils/Extensions/Swizzle/UINavigationController+FWSwizzle.swift +0 -31
- package/ios/Utils/FWSwizzleLoader.h +0 -15
- package/ios/Utils/FWSwizzleLoader.m +0 -21
- package/ios/Utils/FWSwizzleLoader.swift +0 -13
- package/lib/commonjs/FWNavigator.js +0 -75
- package/lib/commonjs/FWNavigator.js.map +0 -1
- package/lib/commonjs/FireworkSDK.js +0 -341
- package/lib/commonjs/FireworkSDK.js.map +0 -1
- package/lib/commonjs/LiveStream.js +0 -66
- package/lib/commonjs/LiveStream.js.map +0 -1
- package/lib/commonjs/VideoShopping.js +0 -247
- package/lib/commonjs/VideoShopping.js.map +0 -1
- package/lib/commonjs/components/FWStoryBlock.js +0 -18
- package/lib/commonjs/components/FWStoryBlock.js.map +0 -1
- package/lib/commonjs/components/FWVideoFeed.js +0 -18
- package/lib/commonjs/components/FWVideoFeed.js.map +0 -1
- package/lib/commonjs/components/StoryBlock.js +0 -319
- package/lib/commonjs/components/StoryBlock.js.map +0 -1
- package/lib/commonjs/components/VideoFeed.js +0 -390
- package/lib/commonjs/components/VideoFeed.js.map +0 -1
- package/lib/commonjs/constants/FWErrorMessage.js +0 -15
- package/lib/commonjs/constants/FWErrorMessage.js.map +0 -1
- package/lib/commonjs/index.js +0 -84
- package/lib/commonjs/index.js.map +0 -1
- package/lib/commonjs/models/AdBadgeConfiguration.js +0 -2
- package/lib/commonjs/models/AdBadgeConfiguration.js.map +0 -1
- package/lib/commonjs/models/AdConfiguration.js +0 -2
- package/lib/commonjs/models/AdConfiguration.js.map +0 -1
- package/lib/commonjs/models/AndroidFontInfo.js +0 -2
- package/lib/commonjs/models/AndroidFontInfo.js.map +0 -1
- package/lib/commonjs/models/FWError.js +0 -2
- package/lib/commonjs/models/FWError.js.map +0 -1
- package/lib/commonjs/models/FWEventName.js +0 -29
- package/lib/commonjs/models/FWEventName.js.map +0 -1
- package/lib/commonjs/models/FWEvents.js +0 -6
- package/lib/commonjs/models/FWEvents.js.map +0 -1
- package/lib/commonjs/models/FeedItemDetails.js +0 -2
- package/lib/commonjs/models/FeedItemDetails.js.map +0 -1
- package/lib/commonjs/models/GradientDrawable.js +0 -2
- package/lib/commonjs/models/GradientDrawable.js.map +0 -1
- package/lib/commonjs/models/IOSFontInfo.js +0 -2
- package/lib/commonjs/models/IOSFontInfo.js.map +0 -1
- package/lib/commonjs/models/LiveStreamChatEventName.js +0 -15
- package/lib/commonjs/models/LiveStreamChatEventName.js.map +0 -1
- package/lib/commonjs/models/LiveStreamEventDetails.js +0 -2
- package/lib/commonjs/models/LiveStreamEventDetails.js.map +0 -1
- package/lib/commonjs/models/LiveStreamEventName.js +0 -17
- package/lib/commonjs/models/LiveStreamEventName.js.map +0 -1
- package/lib/commonjs/models/LiveStreamMessageDetails.js +0 -2
- package/lib/commonjs/models/LiveStreamMessageDetails.js.map +0 -1
- package/lib/commonjs/models/Product.js +0 -2
- package/lib/commonjs/models/Product.js.map +0 -1
- package/lib/commonjs/models/ProductInfoViewConfiguration.js +0 -2
- package/lib/commonjs/models/ProductInfoViewConfiguration.js.map +0 -1
- package/lib/commonjs/models/ProductUnit.js +0 -2
- package/lib/commonjs/models/ProductUnit.js.map +0 -1
- package/lib/commonjs/models/SDKInitOptions.js +0 -2
- package/lib/commonjs/models/SDKInitOptions.js.map +0 -1
- package/lib/commonjs/models/ShoppingCTAResult.js +0 -2
- package/lib/commonjs/models/ShoppingCTAResult.js.map +0 -1
- package/lib/commonjs/models/StoryBlockConfiguration.js +0 -6
- package/lib/commonjs/models/StoryBlockConfiguration.js.map +0 -1
- package/lib/commonjs/models/StoryBlockSource.js +0 -2
- package/lib/commonjs/models/StoryBlockSource.js.map +0 -1
- package/lib/commonjs/models/TrackPurchaseParameters.js +0 -2
- package/lib/commonjs/models/TrackPurchaseParameters.js.map +0 -1
- package/lib/commonjs/models/VideoFeedConfiguration.js +0 -2
- package/lib/commonjs/models/VideoFeedConfiguration.js.map +0 -1
- package/lib/commonjs/models/VideoFeedSource.js +0 -2
- package/lib/commonjs/models/VideoFeedSource.js.map +0 -1
- package/lib/commonjs/models/VideoPlaybackDetails.js +0 -2
- package/lib/commonjs/models/VideoPlaybackDetails.js.map +0 -1
- package/lib/commonjs/models/VideoPlaybackEventName.js +0 -26
- package/lib/commonjs/models/VideoPlaybackEventName.js.map +0 -1
- package/lib/commonjs/models/VideoPlayerCTADelay.js +0 -2
- package/lib/commonjs/models/VideoPlayerCTADelay.js.map +0 -1
- package/lib/commonjs/models/VideoPlayerCTAStyle.js +0 -6
- package/lib/commonjs/models/VideoPlayerCTAStyle.js.map +0 -1
- package/lib/commonjs/models/VideoPlayerCTAWidth.js +0 -2
- package/lib/commonjs/models/VideoPlayerCTAWidth.js.map +0 -1
- package/lib/commonjs/models/VideoPlayerCompleteAction.js +0 -2
- package/lib/commonjs/models/VideoPlayerCompleteAction.js.map +0 -1
- package/lib/commonjs/models/VideoPlayerConfiguration.js +0 -2
- package/lib/commonjs/models/VideoPlayerConfiguration.js.map +0 -1
- package/lib/commonjs/models/VideoPlayerStyle.js +0 -2
- package/lib/commonjs/models/VideoPlayerStyle.js.map +0 -1
- package/lib/commonjs/modules/FWNavigatorModule.js +0 -22
- package/lib/commonjs/modules/FWNavigatorModule.js.map +0 -1
- package/lib/commonjs/modules/FireworkSDKModule.js +0 -22
- package/lib/commonjs/modules/FireworkSDKModule.js.map +0 -1
- package/lib/commonjs/modules/LiveStreamModule.js +0 -22
- package/lib/commonjs/modules/LiveStreamModule.js.map +0 -1
- package/lib/commonjs/modules/ShoppingModule.js +0 -22
- package/lib/commonjs/modules/ShoppingModule.js.map +0 -1
- package/lib/commonjs/utils/FWGlobalState.js +0 -47
- package/lib/commonjs/utils/FWGlobalState.js.map +0 -1
- package/lib/commonjs/utils/FWLoggerUtil.js +0 -45
- package/lib/commonjs/utils/FWLoggerUtil.js.map +0 -1
- package/lib/module/FWNavigator.js +0 -58
- package/lib/module/FWNavigator.js.map +0 -1
- package/lib/module/FireworkSDK.js +0 -310
- package/lib/module/FireworkSDK.js.map +0 -1
- package/lib/module/LiveStream.js +0 -53
- package/lib/module/LiveStream.js.map +0 -1
- package/lib/module/VideoShopping.js +0 -222
- package/lib/module/VideoShopping.js.map +0 -1
- package/lib/module/components/FWStoryBlock.js +0 -8
- package/lib/module/components/FWStoryBlock.js.map +0 -1
- package/lib/module/components/FWVideoFeed.js +0 -8
- package/lib/module/components/FWVideoFeed.js.map +0 -1
- package/lib/module/components/StoryBlock.js +0 -282
- package/lib/module/components/StoryBlock.js.map +0 -1
- package/lib/module/components/VideoFeed.js +0 -365
- package/lib/module/components/VideoFeed.js.map +0 -1
- package/lib/module/constants/FWErrorMessage.js +0 -7
- package/lib/module/constants/FWErrorMessage.js.map +0 -1
- package/lib/module/index.js +0 -12
- package/lib/module/index.js.map +0 -1
- package/lib/module/models/AdBadgeConfiguration.js +0 -2
- package/lib/module/models/AdBadgeConfiguration.js.map +0 -1
- package/lib/module/models/AdConfiguration.js +0 -2
- package/lib/module/models/AdConfiguration.js.map +0 -1
- package/lib/module/models/AndroidFontInfo.js +0 -2
- package/lib/module/models/AndroidFontInfo.js.map +0 -1
- package/lib/module/models/FWError.js +0 -2
- package/lib/module/models/FWError.js.map +0 -1
- package/lib/module/models/FWEventName.js +0 -22
- package/lib/module/models/FWEventName.js.map +0 -1
- package/lib/module/models/FWEvents.js +0 -2
- package/lib/module/models/FWEvents.js.map +0 -1
- package/lib/module/models/FeedItemDetails.js +0 -2
- package/lib/module/models/FeedItemDetails.js.map +0 -1
- package/lib/module/models/GradientDrawable.js +0 -2
- package/lib/module/models/GradientDrawable.js.map +0 -1
- package/lib/module/models/IOSFontInfo.js +0 -2
- package/lib/module/models/IOSFontInfo.js.map +0 -1
- package/lib/module/models/LiveStreamChatEventName.js +0 -8
- package/lib/module/models/LiveStreamChatEventName.js.map +0 -1
- package/lib/module/models/LiveStreamEventDetails.js +0 -2
- package/lib/module/models/LiveStreamEventDetails.js.map +0 -1
- package/lib/module/models/LiveStreamEventName.js +0 -10
- package/lib/module/models/LiveStreamEventName.js.map +0 -1
- package/lib/module/models/LiveStreamMessageDetails.js +0 -2
- package/lib/module/models/LiveStreamMessageDetails.js.map +0 -1
- package/lib/module/models/Product.js +0 -2
- package/lib/module/models/Product.js.map +0 -1
- package/lib/module/models/ProductInfoViewConfiguration.js +0 -2
- package/lib/module/models/ProductInfoViewConfiguration.js.map +0 -1
- package/lib/module/models/ProductUnit.js +0 -2
- package/lib/module/models/ProductUnit.js.map +0 -1
- package/lib/module/models/SDKInitOptions.js +0 -2
- package/lib/module/models/SDKInitOptions.js.map +0 -1
- package/lib/module/models/ShoppingCTAResult.js +0 -2
- package/lib/module/models/ShoppingCTAResult.js.map +0 -1
- package/lib/module/models/StoryBlockConfiguration.js +0 -2
- package/lib/module/models/StoryBlockConfiguration.js.map +0 -1
- package/lib/module/models/StoryBlockSource.js +0 -2
- package/lib/module/models/StoryBlockSource.js.map +0 -1
- package/lib/module/models/TrackPurchaseParameters.js +0 -2
- package/lib/module/models/TrackPurchaseParameters.js.map +0 -1
- package/lib/module/models/VideoFeedConfiguration.js +0 -2
- package/lib/module/models/VideoFeedConfiguration.js.map +0 -1
- package/lib/module/models/VideoFeedSource.js +0 -2
- package/lib/module/models/VideoFeedSource.js.map +0 -1
- package/lib/module/models/VideoPlaybackDetails.js +0 -2
- package/lib/module/models/VideoPlaybackDetails.js.map +0 -1
- package/lib/module/models/VideoPlaybackEventName.js +0 -19
- package/lib/module/models/VideoPlaybackEventName.js.map +0 -1
- package/lib/module/models/VideoPlayerCTADelay.js +0 -2
- package/lib/module/models/VideoPlayerCTADelay.js.map +0 -1
- package/lib/module/models/VideoPlayerCTAStyle.js +0 -2
- package/lib/module/models/VideoPlayerCTAStyle.js.map +0 -1
- package/lib/module/models/VideoPlayerCTAWidth.js +0 -2
- package/lib/module/models/VideoPlayerCTAWidth.js.map +0 -1
- package/lib/module/models/VideoPlayerCompleteAction.js +0 -2
- package/lib/module/models/VideoPlayerCompleteAction.js.map +0 -1
- package/lib/module/models/VideoPlayerConfiguration.js +0 -2
- package/lib/module/models/VideoPlayerConfiguration.js.map +0 -1
- package/lib/module/models/VideoPlayerStyle.js +0 -2
- package/lib/module/models/VideoPlayerStyle.js.map +0 -1
- package/lib/module/modules/FWNavigatorModule.js +0 -13
- package/lib/module/modules/FWNavigatorModule.js.map +0 -1
- package/lib/module/modules/FireworkSDKModule.js +0 -12
- package/lib/module/modules/FireworkSDKModule.js.map +0 -1
- package/lib/module/modules/LiveStreamModule.js +0 -12
- package/lib/module/modules/LiveStreamModule.js.map +0 -1
- package/lib/module/modules/ShoppingModule.js +0 -12
- package/lib/module/modules/ShoppingModule.js.map +0 -1
- package/lib/module/utils/FWGlobalState.js +0 -39
- package/lib/module/utils/FWGlobalState.js.map +0 -1
- package/lib/module/utils/FWLoggerUtil.js +0 -36
- package/lib/module/utils/FWLoggerUtil.js.map +0 -1
- package/lib/typescript/FWNavigator.d.ts +0 -26
- package/lib/typescript/FireworkSDK.d.ts +0 -113
- package/lib/typescript/LiveStream.d.ts +0 -21
- package/lib/typescript/VideoShopping.d.ts +0 -74
- package/lib/typescript/components/FWStoryBlock.d.ts +0 -2
- package/lib/typescript/components/FWVideoFeed.d.ts +0 -2
- package/lib/typescript/components/StoryBlock.d.ts +0 -65
- package/lib/typescript/components/VideoFeed.d.ts +0 -105
- package/lib/typescript/constants/FWErrorMessage.d.ts +0 -2
- package/lib/typescript/index.d.ts +0 -52
- package/lib/typescript/models/AdBadgeConfiguration.d.ts +0 -22
- package/lib/typescript/models/AdConfiguration.d.ts +0 -22
- package/lib/typescript/models/AndroidFontInfo.d.ts +0 -14
- package/lib/typescript/models/FWError.d.ts +0 -10
- package/lib/typescript/models/FWEventName.d.ts +0 -19
- package/lib/typescript/models/FWEvents.d.ts +0 -70
- package/lib/typescript/models/FeedItemDetails.d.ts +0 -54
- package/lib/typescript/models/GradientDrawable.d.ts +0 -5
- package/lib/typescript/models/IOSFontInfo.d.ts +0 -21
- package/lib/typescript/models/LiveStreamChatEventName.d.ts +0 -7
- package/lib/typescript/models/LiveStreamEventDetails.d.ts +0 -3
- package/lib/typescript/models/LiveStreamEventName.d.ts +0 -15
- package/lib/typescript/models/LiveStreamMessageDetails.d.ts +0 -14
- package/lib/typescript/models/Product.d.ts +0 -23
- package/lib/typescript/models/ProductInfoViewConfiguration.d.ts +0 -38
- package/lib/typescript/models/ProductUnit.d.ts +0 -38
- package/lib/typescript/models/SDKInitOptions.d.ts +0 -11
- package/lib/typescript/models/ShoppingCTAResult.d.ts +0 -11
- package/lib/typescript/models/StoryBlockConfiguration.d.ts +0 -37
- package/lib/typescript/models/StoryBlockSource.d.ts +0 -1
- package/lib/typescript/models/TrackPurchaseParameters.d.ts +0 -26
- package/lib/typescript/models/VideoFeedConfiguration.d.ts +0 -108
- package/lib/typescript/models/VideoFeedSource.d.ts +0 -1
- package/lib/typescript/models/VideoPlaybackDetails.d.ts +0 -47
- package/lib/typescript/models/VideoPlaybackEventName.d.ts +0 -51
- package/lib/typescript/models/VideoPlayerCTADelay.d.ts +0 -11
- package/lib/typescript/models/VideoPlayerCTAStyle.d.ts +0 -21
- package/lib/typescript/models/VideoPlayerCTAWidth.d.ts +0 -1
- package/lib/typescript/models/VideoPlayerCompleteAction.d.ts +0 -1
- package/lib/typescript/models/VideoPlayerConfiguration.d.ts +0 -51
- package/lib/typescript/models/VideoPlayerStyle.d.ts +0 -1
- package/lib/typescript/modules/FWNavigatorModule.d.ts +0 -11
- package/lib/typescript/modules/FireworkSDKModule.d.ts +0 -19
- package/lib/typescript/modules/LiveStreamModule.d.ts +0 -8
- package/lib/typescript/modules/ShoppingModule.d.ts +0 -18
- package/lib/typescript/utils/FWGlobalState.d.ts +0 -10
- package/lib/typescript/utils/FWLoggerUtil.d.ts +0 -6
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import type { VideoPlayerCTADelay } from './VideoPlayerCTADelay';
|
|
2
|
-
import type { VideoPlayerCTAWidth } from './VideoPlayerCTAWidth';
|
|
3
|
-
import type { VideoPlayerCompleteAction } from './VideoPlayerCompleteAction';
|
|
4
|
-
export interface StoryBlockConfiguration {
|
|
5
|
-
/**
|
|
6
|
-
* Behavior occurring after video is complete.
|
|
7
|
-
*/
|
|
8
|
-
videoCompleteAction?: VideoPlayerCompleteAction;
|
|
9
|
-
/**
|
|
10
|
-
* Indicates if the video player shows share button.
|
|
11
|
-
*/
|
|
12
|
-
showShareButton?: boolean;
|
|
13
|
-
/**
|
|
14
|
-
* Indicates if the video player shows playback button.
|
|
15
|
-
*/
|
|
16
|
-
showPlaybackButton?: boolean;
|
|
17
|
-
/**
|
|
18
|
-
* Indicates if Firework branding should be showed or not.
|
|
19
|
-
*/
|
|
20
|
-
showBranding?: boolean;
|
|
21
|
-
/**
|
|
22
|
-
* Specifies the delay before showing the CTA.
|
|
23
|
-
*/
|
|
24
|
-
ctaDelay?: VideoPlayerCTADelay;
|
|
25
|
-
/**
|
|
26
|
-
* Specifies the delay before the highlight animation occurs. Only supported on iOS.
|
|
27
|
-
*/
|
|
28
|
-
ctaHighlightDelay?: VideoPlayerCTADelay;
|
|
29
|
-
/**
|
|
30
|
-
* The share base URL of the video.
|
|
31
|
-
*/
|
|
32
|
-
shareBaseURL?: string;
|
|
33
|
-
/**
|
|
34
|
-
* Specifies the desired width for the Video Player CTA button.
|
|
35
|
-
*/
|
|
36
|
-
ctaWidth?: VideoPlayerCTAWidth;
|
|
37
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type StoryBlockSource = 'discover' | 'channel' | 'playlist' | 'dynamicContent' | 'hashtagPlaylist';
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export default interface TrackPurchaseParameters {
|
|
2
|
-
/**
|
|
3
|
-
* A unique identifier for the user's order.
|
|
4
|
-
*/
|
|
5
|
-
orderId: string;
|
|
6
|
-
/**
|
|
7
|
-
* The value of the order.
|
|
8
|
-
*/
|
|
9
|
-
value?: number;
|
|
10
|
-
/**
|
|
11
|
-
* The currency code of the purchase value.
|
|
12
|
-
*/
|
|
13
|
-
currencyCode?: string;
|
|
14
|
-
/**
|
|
15
|
-
* The country code of the purchase.
|
|
16
|
-
*/
|
|
17
|
-
countryCode?: string;
|
|
18
|
-
/**
|
|
19
|
-
* Any additional information associated to the purchase.
|
|
20
|
-
* Reserved keys: order_id, value, currency, country.
|
|
21
|
-
* Any values passed in the additionalInfo that use a reserved key will be ignored.
|
|
22
|
-
*/
|
|
23
|
-
additionalInfo?: {
|
|
24
|
-
[key: string]: string;
|
|
25
|
-
};
|
|
26
|
-
}
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
import type IOSFontInfo from './IOSFontInfo';
|
|
2
|
-
import type AndroidFontInfo from './AndroidFontInfo';
|
|
3
|
-
import type GradientDrawable from './GradientDrawable';
|
|
4
|
-
export interface VideoFeedTitleConfiguration {
|
|
5
|
-
/**
|
|
6
|
-
* Specifies if the video feed title is hidden.
|
|
7
|
-
*/
|
|
8
|
-
hidden?: boolean;
|
|
9
|
-
/**
|
|
10
|
-
* The text color of video feed title.
|
|
11
|
-
*/
|
|
12
|
-
textColor?: string;
|
|
13
|
-
/**
|
|
14
|
-
* The font size of video feed title.
|
|
15
|
-
*/
|
|
16
|
-
fontSize?: number;
|
|
17
|
-
/**
|
|
18
|
-
* Specifies the number of allowed lines for the label.
|
|
19
|
-
* Only supported on iOS.
|
|
20
|
-
*/
|
|
21
|
-
numberOfLines?: number;
|
|
22
|
-
/**
|
|
23
|
-
* The iOS font info of video feed title.
|
|
24
|
-
* The property is ignored when fontSize is not set.
|
|
25
|
-
* Only supported on iOS.
|
|
26
|
-
*/
|
|
27
|
-
iOSFontInfo?: IOSFontInfo;
|
|
28
|
-
/**
|
|
29
|
-
* The Android font info of "VideoFeedTitle".
|
|
30
|
-
* The property is ignored when fontSize is not set.
|
|
31
|
-
* Only supported on Android.
|
|
32
|
-
*/
|
|
33
|
-
androidFontInfo?: AndroidFontInfo;
|
|
34
|
-
/**
|
|
35
|
-
* The background color of video feed title.
|
|
36
|
-
* The property is ignored when gradientDrawable is set.
|
|
37
|
-
* Only supported on Android.
|
|
38
|
-
*/
|
|
39
|
-
backgroundColor?: string;
|
|
40
|
-
/**
|
|
41
|
-
* The background drawable of video feed title.
|
|
42
|
-
* Only supported on Android.
|
|
43
|
-
*/
|
|
44
|
-
gradientDrawable?: GradientDrawable;
|
|
45
|
-
}
|
|
46
|
-
export interface VideoFeedPlayIconConfiguration {
|
|
47
|
-
hidden?: boolean;
|
|
48
|
-
iconWidth?: number;
|
|
49
|
-
}
|
|
50
|
-
export type VideoFeedTitlePosition = 'stacked' | 'nested';
|
|
51
|
-
export interface VideoFeedPadding {
|
|
52
|
-
top?: number;
|
|
53
|
-
right?: number;
|
|
54
|
-
bottom?: number;
|
|
55
|
-
left?: number;
|
|
56
|
-
}
|
|
57
|
-
export default interface VideoFeedConfiguration {
|
|
58
|
-
/**
|
|
59
|
-
* Background color of video feed.
|
|
60
|
-
*/
|
|
61
|
-
backgroundColor?: string;
|
|
62
|
-
/**
|
|
63
|
-
* Corner radius of video feed item.
|
|
64
|
-
*/
|
|
65
|
-
cornerRadius?: number;
|
|
66
|
-
/**
|
|
67
|
-
* Configuration of video feed item title.
|
|
68
|
-
*/
|
|
69
|
-
title?: VideoFeedTitleConfiguration;
|
|
70
|
-
/**
|
|
71
|
-
* Title position of video feed item.
|
|
72
|
-
*/
|
|
73
|
-
titlePosition?: VideoFeedTitlePosition;
|
|
74
|
-
/**
|
|
75
|
-
* The padding of video feed title. Only supported on iOS.
|
|
76
|
-
*/
|
|
77
|
-
titlePadding?: VideoFeedPadding;
|
|
78
|
-
/**
|
|
79
|
-
* Configuration of video feed item play icon.
|
|
80
|
-
*/
|
|
81
|
-
playIcon?: VideoFeedPlayIconConfiguration;
|
|
82
|
-
/**
|
|
83
|
-
* Indicates if the video feed item shows ad badge.
|
|
84
|
-
*/
|
|
85
|
-
showAdBadge?: boolean;
|
|
86
|
-
/**
|
|
87
|
-
* The aspect ratio(width / height) for video feed item. Only supported on iOS.
|
|
88
|
-
*/
|
|
89
|
-
aspectRatio?: number;
|
|
90
|
-
/**
|
|
91
|
-
* The padding of video feed content. Only supported on iOS.
|
|
92
|
-
*/
|
|
93
|
-
contentPadding?: VideoFeedPadding;
|
|
94
|
-
/**
|
|
95
|
-
* The item spacing for video feed.
|
|
96
|
-
*/
|
|
97
|
-
itemSpacing?: number;
|
|
98
|
-
/**
|
|
99
|
-
* Specifies if autoplay is enabled.
|
|
100
|
-
*/
|
|
101
|
-
enableAutoplay?: boolean;
|
|
102
|
-
/**
|
|
103
|
-
* The number of feed items to be displayed per row.
|
|
104
|
-
* The property only takes effect when video feed mode is grid.
|
|
105
|
-
* The property value needs to be an integer and greater than 0.
|
|
106
|
-
*/
|
|
107
|
-
gridColumns?: number;
|
|
108
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type VideoFeedSource = 'discover' | 'channel' | 'playlist' | 'playlistGroup' | 'dynamicContent' | 'hashtagPlaylist';
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
export interface VideoPlayerSize {
|
|
2
|
-
width: number;
|
|
3
|
-
height: number;
|
|
4
|
-
}
|
|
5
|
-
export default interface VideoPlaybackDetails {
|
|
6
|
-
/**
|
|
7
|
-
* A unique identifier of the video.
|
|
8
|
-
*/
|
|
9
|
-
videoId: string;
|
|
10
|
-
/**
|
|
11
|
-
* The total duration of the video.
|
|
12
|
-
*/
|
|
13
|
-
duration?: number | null;
|
|
14
|
-
/**
|
|
15
|
-
* The caption for the video.
|
|
16
|
-
*/
|
|
17
|
-
caption?: string | null;
|
|
18
|
-
/**
|
|
19
|
-
* Video badge type.
|
|
20
|
-
*/
|
|
21
|
-
badge?: string | null;
|
|
22
|
-
/**
|
|
23
|
-
* The size of the player.
|
|
24
|
-
*/
|
|
25
|
-
playerSize?: VideoPlayerSize | null;
|
|
26
|
-
/**
|
|
27
|
-
* Indicates if the video is associated with a call-to-action (CTA).
|
|
28
|
-
*/
|
|
29
|
-
hasCTA?: boolean | null;
|
|
30
|
-
/**
|
|
31
|
-
* The amount of time the video was playing at the time of the event.
|
|
32
|
-
*/
|
|
33
|
-
progress?: number | null;
|
|
34
|
-
/**
|
|
35
|
-
* The type of the CTA button clicked: "buy" "download" "view" "book".
|
|
36
|
-
* Only supported on iOS.
|
|
37
|
-
*/
|
|
38
|
-
ctaActionType?: string | null;
|
|
39
|
-
/**
|
|
40
|
-
* The url of the CTA button clicked.
|
|
41
|
-
*/
|
|
42
|
-
ctaActionURL?: string | null;
|
|
43
|
-
/**
|
|
44
|
-
* The associated feed ID
|
|
45
|
-
*/
|
|
46
|
-
feedId?: string | null;
|
|
47
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
declare enum VideoPlaybackEventName {
|
|
2
|
-
/**
|
|
3
|
-
* When video is shown to the user.
|
|
4
|
-
*/
|
|
5
|
-
Impression = "fw:video:impression",
|
|
6
|
-
/**
|
|
7
|
-
* Video started.
|
|
8
|
-
*/
|
|
9
|
-
Start = "fw:video:start",
|
|
10
|
-
/**
|
|
11
|
-
* Video paused.
|
|
12
|
-
*/
|
|
13
|
-
Pause = "fw:video:pause",
|
|
14
|
-
/**
|
|
15
|
-
* Video resume.
|
|
16
|
-
*/
|
|
17
|
-
Resume = "fw:video:resume",
|
|
18
|
-
/**
|
|
19
|
-
* Video reached 25%.
|
|
20
|
-
*/
|
|
21
|
-
FirstQuartile = "fw:video:first-quartile",
|
|
22
|
-
/**
|
|
23
|
-
* Video reached 50%.
|
|
24
|
-
*/
|
|
25
|
-
Midpoint = "fw:video:midpoint",
|
|
26
|
-
/**
|
|
27
|
-
* Video reached 75%.
|
|
28
|
-
*/
|
|
29
|
-
ThirdQuartile = "fw:video:third-quartile",
|
|
30
|
-
/**
|
|
31
|
-
* Video reached 100%.
|
|
32
|
-
*/
|
|
33
|
-
Complete = "fw:video:complete",
|
|
34
|
-
/**
|
|
35
|
-
* Ad video started playing.
|
|
36
|
-
*/
|
|
37
|
-
AdStart = "fw:video:ad-start",
|
|
38
|
-
/**
|
|
39
|
-
* Ad video completed playing.
|
|
40
|
-
*/
|
|
41
|
-
AdEnd = "fw:video:ad-end",
|
|
42
|
-
/**
|
|
43
|
-
* When a visitor clicks on CTA button (if available).
|
|
44
|
-
*/
|
|
45
|
-
ClickCTA = "fw:video:click-cta",
|
|
46
|
-
/**
|
|
47
|
-
* When user clicks on "Share" button.
|
|
48
|
-
*/
|
|
49
|
-
ClickShare = "fw:video:click-share"
|
|
50
|
-
}
|
|
51
|
-
export default VideoPlaybackEventName;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export type VideoPlayerCTADelayType = 'constant' | 'percentage';
|
|
2
|
-
export interface VideoPlayerCTADelay {
|
|
3
|
-
type: VideoPlayerCTADelayType;
|
|
4
|
-
/**
|
|
5
|
-
* If type is constant, the value is the number of seconds of delay.
|
|
6
|
-
* Value should be greater than or equal to 0 and less than or equal to 10 when type is constant.
|
|
7
|
-
* If type is percentage, the value is a percentage based on the the total duration of the video length.
|
|
8
|
-
* Value must be greater than or equal to 0 and less than 1 when type is percentage.
|
|
9
|
-
*/
|
|
10
|
-
value: number;
|
|
11
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type IOSFontInfo from './IOSFontInfo';
|
|
2
|
-
export interface VideoPlayerCTAStyle {
|
|
3
|
-
/**
|
|
4
|
-
* The background color of CTA button.
|
|
5
|
-
*/
|
|
6
|
-
backgroundColor?: string;
|
|
7
|
-
/**
|
|
8
|
-
* The text color of CTA button.
|
|
9
|
-
*/
|
|
10
|
-
textColor?: string;
|
|
11
|
-
/**
|
|
12
|
-
* The font size of CTA button.
|
|
13
|
-
*/
|
|
14
|
-
fontSize?: number;
|
|
15
|
-
/**
|
|
16
|
-
* The iOS font info of CTA button.
|
|
17
|
-
* The property is ignored when fontSize is not set.
|
|
18
|
-
* Only supported on iOS.
|
|
19
|
-
*/
|
|
20
|
-
iOSFontInfo?: IOSFontInfo;
|
|
21
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type VideoPlayerCTAWidth = 'fullWidth' | 'compact' | 'sizeToFit';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type VideoPlayerCompleteAction = 'loop' | 'advanceToNext';
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import type { VideoPlayerCTADelay } from './VideoPlayerCTADelay';
|
|
2
|
-
import type { VideoPlayerCTAStyle } from './VideoPlayerCTAStyle';
|
|
3
|
-
import type { VideoPlayerCTAWidth } from './VideoPlayerCTAWidth';
|
|
4
|
-
import type { VideoPlayerCompleteAction } from './VideoPlayerCompleteAction';
|
|
5
|
-
import type { VideoPlayerStyle } from './VideoPlayerStyle';
|
|
6
|
-
export default interface VideoPlayerConfiguration {
|
|
7
|
-
/**
|
|
8
|
-
* Sets the proportion of the video player to its container.
|
|
9
|
-
*/
|
|
10
|
-
playerStyle?: VideoPlayerStyle;
|
|
11
|
-
/**
|
|
12
|
-
* Behavior occurring after video is complete.
|
|
13
|
-
*/
|
|
14
|
-
videoCompleteAction?: VideoPlayerCompleteAction;
|
|
15
|
-
/**
|
|
16
|
-
* Indicates if the video player shows share button.
|
|
17
|
-
*/
|
|
18
|
-
showShareButton?: boolean;
|
|
19
|
-
/**
|
|
20
|
-
* The style of CTA button style. Only supported on iOS.
|
|
21
|
-
*/
|
|
22
|
-
ctaButtonStyle?: VideoPlayerCTAStyle;
|
|
23
|
-
/**
|
|
24
|
-
* Indicates if the video player shows playback button.
|
|
25
|
-
*/
|
|
26
|
-
showPlaybackButton?: boolean;
|
|
27
|
-
/**
|
|
28
|
-
* Indicates if the video player shows mute button.
|
|
29
|
-
*/
|
|
30
|
-
showMuteButton?: boolean;
|
|
31
|
-
/**
|
|
32
|
-
* Indicates if Firework branding should be showed or not.
|
|
33
|
-
*/
|
|
34
|
-
showBranding?: boolean;
|
|
35
|
-
/**
|
|
36
|
-
* Specifies the delay before showing the CTA.
|
|
37
|
-
*/
|
|
38
|
-
ctaDelay?: VideoPlayerCTADelay;
|
|
39
|
-
/**
|
|
40
|
-
* Specifies the delay before the highlight animation occurs. Only supported on iOS.
|
|
41
|
-
*/
|
|
42
|
-
ctaHighlightDelay?: VideoPlayerCTADelay;
|
|
43
|
-
/**
|
|
44
|
-
* The share base URL of the video.
|
|
45
|
-
*/
|
|
46
|
-
shareBaseURL?: string;
|
|
47
|
-
/**
|
|
48
|
-
* Specifies the desired width for the Video Player CTA button.
|
|
49
|
-
*/
|
|
50
|
-
ctaWidth?: VideoPlayerCTAWidth;
|
|
51
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type VideoPlayerStyle = 'full' | 'fit';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { NativeEventEmitter, NativeModule } from 'react-native';
|
|
2
|
-
interface IFWNavigatorModule extends NativeModule {
|
|
3
|
-
popNativeContainer(): Promise<boolean>;
|
|
4
|
-
canPopNativeContainer(): Promise<boolean>;
|
|
5
|
-
startFloatingPlayer(): Promise<boolean>;
|
|
6
|
-
stopFloatingPlayer(): Promise<boolean>;
|
|
7
|
-
}
|
|
8
|
-
declare const FWNavigatorModuleEventEmitter: NativeEventEmitter;
|
|
9
|
-
export { FWNavigatorModuleEventEmitter };
|
|
10
|
-
declare const _default: IFWNavigatorModule;
|
|
11
|
-
export default _default;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { NativeEventEmitter, NativeModule } from 'react-native';
|
|
2
|
-
import type AdBadgeConfiguration from '../models/AdBadgeConfiguration';
|
|
3
|
-
import type SDKInitOptions from '../models/SDKInitOptions';
|
|
4
|
-
import type TrackPurchaseParameters from '../models/TrackPurchaseParameters';
|
|
5
|
-
import type VideoPlayerConfiguration from '../models/VideoPlayerConfiguration';
|
|
6
|
-
interface IFireworkSDKModule extends NativeModule {
|
|
7
|
-
init(options?: SDKInitOptions): Promise<any>;
|
|
8
|
-
openVideoPlayer(url: string, config?: VideoPlayerConfiguration): void;
|
|
9
|
-
setCustomCTAClickEnabled(enabled: boolean): void;
|
|
10
|
-
setShareBaseURL(url?: string): Promise<any>;
|
|
11
|
-
setVideoPlaybackEventEnabled(enabled: boolean): void;
|
|
12
|
-
setAdBadgeConfiguration(config?: AdBadgeConfiguration): Promise<any>;
|
|
13
|
-
trackPurchase(parameters: TrackPurchaseParameters): void;
|
|
14
|
-
changeAppLanguage(language?: string | null): Promise<boolean>;
|
|
15
|
-
}
|
|
16
|
-
declare const FireworkSDKModuleEventEmitter: NativeEventEmitter;
|
|
17
|
-
export { FireworkSDKModuleEventEmitter };
|
|
18
|
-
declare const _default: IFireworkSDKModule;
|
|
19
|
-
export default _default;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { NativeEventEmitter, NativeModule } from 'react-native';
|
|
2
|
-
interface ILiveStreamModule extends NativeModule {
|
|
3
|
-
init(): Promise<any>;
|
|
4
|
-
}
|
|
5
|
-
declare const LiveStreamModuleEventEmitter: NativeEventEmitter;
|
|
6
|
-
export { LiveStreamModuleEventEmitter };
|
|
7
|
-
declare const _default: ILiveStreamModule;
|
|
8
|
-
export default _default;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { NativeEventEmitter, NativeModule } from 'react-native';
|
|
2
|
-
import type Product from '../models/Product';
|
|
3
|
-
import type ProductInfoViewConfiguration from '../models/ProductInfoViewConfiguration';
|
|
4
|
-
import type ShoppingCTAResult from '../models/ShoppingCTAResult';
|
|
5
|
-
interface IShoppingModule extends NativeModule {
|
|
6
|
-
init(): Promise<any>;
|
|
7
|
-
updateVideoProducts(products: Product[], callbackId: number | string): void;
|
|
8
|
-
updateShoppingCTAResult(result: ShoppingCTAResult, callbackId: number | string): void;
|
|
9
|
-
setCartIconVisible(visible: boolean): void;
|
|
10
|
-
setCartItemCount(count: number): void;
|
|
11
|
-
clearCallbackId(callbackId: number | string, eventName: string): void;
|
|
12
|
-
setProductInfoViewConfiguration(config: ProductInfoViewConfiguration): void;
|
|
13
|
-
setCustomClickLinkButtonEnabled(enabled: boolean): Promise<any>;
|
|
14
|
-
}
|
|
15
|
-
declare const ShoppingModuleEventEmitter: NativeEventEmitter;
|
|
16
|
-
export { ShoppingModuleEventEmitter };
|
|
17
|
-
declare const _default: IShoppingModule;
|
|
18
|
-
export default _default;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
declare class FWGlobalState {
|
|
2
|
-
private static _instance?;
|
|
3
|
-
private sdkInitCalledResolveFunc?;
|
|
4
|
-
sdkInitCalledPromise: Promise<void>;
|
|
5
|
-
sdkInitCalled: boolean;
|
|
6
|
-
static getInstance(): FWGlobalState;
|
|
7
|
-
private constructor();
|
|
8
|
-
resolveSdkInitCalled(): void;
|
|
9
|
-
}
|
|
10
|
-
export default FWGlobalState;
|