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 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
var VideoPlaybackEventName;
|
|
2
|
-
|
|
3
|
-
(function (VideoPlaybackEventName) {
|
|
4
|
-
VideoPlaybackEventName["Impression"] = "fw:video:impression";
|
|
5
|
-
VideoPlaybackEventName["Start"] = "fw:video:start";
|
|
6
|
-
VideoPlaybackEventName["Pause"] = "fw:video:pause";
|
|
7
|
-
VideoPlaybackEventName["Resume"] = "fw:video:resume";
|
|
8
|
-
VideoPlaybackEventName["FirstQuartile"] = "fw:video:first-quartile";
|
|
9
|
-
VideoPlaybackEventName["Midpoint"] = "fw:video:midpoint";
|
|
10
|
-
VideoPlaybackEventName["ThirdQuartile"] = "fw:video:third-quartile";
|
|
11
|
-
VideoPlaybackEventName["Complete"] = "fw:video:complete";
|
|
12
|
-
VideoPlaybackEventName["AdStart"] = "fw:video:ad-start";
|
|
13
|
-
VideoPlaybackEventName["AdEnd"] = "fw:video:ad-end";
|
|
14
|
-
VideoPlaybackEventName["ClickCTA"] = "fw:video:click-cta";
|
|
15
|
-
VideoPlaybackEventName["ClickShare"] = "fw:video:click-share";
|
|
16
|
-
})(VideoPlaybackEventName || (VideoPlaybackEventName = {}));
|
|
17
|
-
|
|
18
|
-
export default VideoPlaybackEventName;
|
|
19
|
-
//# sourceMappingURL=VideoPlaybackEventName.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["VideoPlaybackEventName.ts"],"names":["VideoPlaybackEventName"],"mappings":"IAAKA,sB;;WAAAA,sB;AAAAA,EAAAA,sB;AAAAA,EAAAA,sB;AAAAA,EAAAA,sB;AAAAA,EAAAA,sB;AAAAA,EAAAA,sB;AAAAA,EAAAA,sB;AAAAA,EAAAA,sB;AAAAA,EAAAA,sB;AAAAA,EAAAA,sB;AAAAA,EAAAA,sB;AAAAA,EAAAA,sB;AAAAA,EAAAA,sB;GAAAA,sB,KAAAA,sB;;AAmDL,eAAeA,sBAAf","sourcesContent":["enum VideoPlaybackEventName {\n /**\n * When video is shown to the user.\n */\n Impression = 'fw:video:impression',\n /**\n * Video started.\n */\n Start = 'fw:video:start',\n /**\n * Video paused.\n */\n Pause = 'fw:video:pause',\n /**\n * Video resume.\n */\n Resume = 'fw:video:resume',\n /**\n * Video reached 25%.\n */\n FirstQuartile = 'fw:video:first-quartile',\n /**\n * Video reached 50%.\n */\n Midpoint = 'fw:video:midpoint',\n /**\n * Video reached 75%.\n */\n ThirdQuartile = 'fw:video:third-quartile',\n /**\n * Video reached 100%.\n */\n Complete = 'fw:video:complete',\n /**\n * Ad video started playing.\n */\n AdStart = 'fw:video:ad-start',\n /**\n * Ad video completed playing.\n */\n AdEnd = 'fw:video:ad-end',\n /**\n * When a visitor clicks on CTA button (if available).\n */\n ClickCTA = 'fw:video:click-cta',\n /**\n * When user clicks on \"Share\" button.\n */\n ClickShare = 'fw:video:click-share',\n}\n\nexport default VideoPlaybackEventName;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { NativeEventEmitter } from 'react-native';
|
|
2
|
-
import { NativeModules } from 'react-native';
|
|
3
|
-
import { LINKING_ERROR } from '../constants/FWErrorMessage';
|
|
4
|
-
const FWNavigatorModule = NativeModules.FWNavigatorModule ? NativeModules.FWNavigatorModule : new Proxy({}, {
|
|
5
|
-
get() {
|
|
6
|
-
throw new Error(LINKING_ERROR);
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
});
|
|
10
|
-
const FWNavigatorModuleEventEmitter = new NativeEventEmitter(FWNavigatorModule);
|
|
11
|
-
export { FWNavigatorModuleEventEmitter };
|
|
12
|
-
export default FWNavigatorModule;
|
|
13
|
-
//# sourceMappingURL=FWNavigatorModule.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["FWNavigatorModule.ts"],"names":["NativeEventEmitter","NativeModules","LINKING_ERROR","FWNavigatorModule","Proxy","get","Error","FWNavigatorModuleEventEmitter"],"mappings":"AAAA,SAASA,kBAAT,QAAiD,cAAjD;AACA,SAASC,aAAT,QAA8B,cAA9B;AACA,SAASC,aAAT,QAA8B,6BAA9B;AAEA,MAAMC,iBAAiB,GAAGF,aAAa,CAACE,iBAAd,GACtBF,aAAa,CAACE,iBADQ,GAEtB,IAAIC,KAAJ,CACE,EADF,EAEE;AACEC,EAAAA,GAAG,GAAG;AACJ,UAAM,IAAIC,KAAJ,CAAUJ,aAAV,CAAN;AACD;;AAHH,CAFF,CAFJ;AAiBA,MAAMK,6BAA6B,GAAG,IAAIP,kBAAJ,CAAuBG,iBAAvB,CAAtC;AACA,SAASI,6BAAT;AACA,eAAeJ,iBAAf","sourcesContent":["import { NativeEventEmitter, NativeModule } from 'react-native';\nimport { NativeModules } from 'react-native';\nimport { LINKING_ERROR } from '../constants/FWErrorMessage';\n\nconst FWNavigatorModule = NativeModules.FWNavigatorModule\n ? NativeModules.FWNavigatorModule\n : new Proxy(\n {},\n {\n get() {\n throw new Error(LINKING_ERROR);\n },\n }\n );\ninterface IFWNavigatorModule extends NativeModule {\n popNativeContainer(): Promise<boolean>;\n canPopNativeContainer(): Promise<boolean>;\n startFloatingPlayer(): Promise<boolean>;\n stopFloatingPlayer(): Promise<boolean>;\n}\n\nconst FWNavigatorModuleEventEmitter = new NativeEventEmitter(FWNavigatorModule);\nexport { FWNavigatorModuleEventEmitter };\nexport default FWNavigatorModule as IFWNavigatorModule;\n"]}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { NativeEventEmitter, NativeModules } from 'react-native';
|
|
2
|
-
import { LINKING_ERROR } from '../constants/FWErrorMessage';
|
|
3
|
-
const FireworkSDKModule = NativeModules.FireworkSDK ? NativeModules.FireworkSDK : new Proxy({}, {
|
|
4
|
-
get() {
|
|
5
|
-
throw new Error(LINKING_ERROR);
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
});
|
|
9
|
-
const FireworkSDKModuleEventEmitter = new NativeEventEmitter(FireworkSDKModule);
|
|
10
|
-
export { FireworkSDKModuleEventEmitter };
|
|
11
|
-
export default FireworkSDKModule;
|
|
12
|
-
//# sourceMappingURL=FireworkSDKModule.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["FireworkSDKModule.ts"],"names":["NativeEventEmitter","NativeModules","LINKING_ERROR","FireworkSDKModule","FireworkSDK","Proxy","get","Error","FireworkSDKModuleEventEmitter"],"mappings":"AAAA,SAASA,kBAAT,EAA2CC,aAA3C,QAAgE,cAAhE;AAEA,SAASC,aAAT,QAA8B,6BAA9B;AAMA,MAAMC,iBAAiB,GAAGF,aAAa,CAACG,WAAd,GACtBH,aAAa,CAACG,WADQ,GAEtB,IAAIC,KAAJ,CACE,EADF,EAEE;AACEC,EAAAA,GAAG,GAAG;AACJ,UAAM,IAAIC,KAAJ,CAAUL,aAAV,CAAN;AACD;;AAHH,CAFF,CAFJ;AAsBA,MAAMM,6BAA6B,GAAG,IAAIR,kBAAJ,CAAuBG,iBAAvB,CAAtC;AACA,SAASK,6BAAT;AACA,eAAeL,iBAAf","sourcesContent":["import { NativeEventEmitter, NativeModule, NativeModules } from 'react-native';\n\nimport { LINKING_ERROR } from '../constants/FWErrorMessage';\nimport type AdBadgeConfiguration from '../models/AdBadgeConfiguration';\nimport type SDKInitOptions from '../models/SDKInitOptions';\nimport type TrackPurchaseParameters from '../models/TrackPurchaseParameters';\nimport type VideoPlayerConfiguration from '../models/VideoPlayerConfiguration';\n\nconst FireworkSDKModule = NativeModules.FireworkSDK\n ? NativeModules.FireworkSDK\n : new Proxy(\n {},\n {\n get() {\n throw new Error(LINKING_ERROR);\n },\n }\n );\n\ninterface IFireworkSDKModule extends NativeModule {\n init(options?: SDKInitOptions): Promise<any>;\n openVideoPlayer(url: string, config?: VideoPlayerConfiguration): void;\n setCustomCTAClickEnabled(enabled: boolean): void;\n setShareBaseURL(url?: string): Promise<any>;\n setVideoPlaybackEventEnabled(enabled: boolean): void;\n setAdBadgeConfiguration(config?: AdBadgeConfiguration): Promise<any>;\n trackPurchase(parameters: TrackPurchaseParameters): void;\n changeAppLanguage(language?: string | null): Promise<boolean>;\n}\n\nconst FireworkSDKModuleEventEmitter = new NativeEventEmitter(FireworkSDKModule);\nexport { FireworkSDKModuleEventEmitter };\nexport default FireworkSDKModule as IFireworkSDKModule;\n"]}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { NativeEventEmitter, NativeModules } from 'react-native';
|
|
2
|
-
import { LINKING_ERROR } from '../constants/FWErrorMessage';
|
|
3
|
-
const LiveStreamModule = NativeModules.LiveStreamModule ? NativeModules.LiveStreamModule : new Proxy({}, {
|
|
4
|
-
get() {
|
|
5
|
-
throw new Error(LINKING_ERROR);
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
});
|
|
9
|
-
const LiveStreamModuleEventEmitter = new NativeEventEmitter(LiveStreamModule);
|
|
10
|
-
export { LiveStreamModuleEventEmitter };
|
|
11
|
-
export default LiveStreamModule;
|
|
12
|
-
//# sourceMappingURL=LiveStreamModule.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["LiveStreamModule.ts"],"names":["NativeEventEmitter","NativeModules","LINKING_ERROR","LiveStreamModule","Proxy","get","Error","LiveStreamModuleEventEmitter"],"mappings":"AAAA,SAASA,kBAAT,EAA2CC,aAA3C,QAAgE,cAAhE;AAEA,SAASC,aAAT,QAA8B,6BAA9B;AAEA,MAAMC,gBAAgB,GAAGF,aAAa,CAACE,gBAAd,GACrBF,aAAa,CAACE,gBADO,GAErB,IAAIC,KAAJ,CACE,EADF,EAEE;AACEC,EAAAA,GAAG,GAAG;AACJ,UAAM,IAAIC,KAAJ,CAAUJ,aAAV,CAAN;AACD;;AAHH,CAFF,CAFJ;AAcA,MAAMK,4BAA4B,GAAG,IAAIP,kBAAJ,CAAuBG,gBAAvB,CAArC;AACA,SAASI,4BAAT;AAEA,eAAeJ,gBAAf","sourcesContent":["import { NativeEventEmitter, NativeModule, NativeModules } from 'react-native';\n\nimport { LINKING_ERROR } from '../constants/FWErrorMessage';\n\nconst LiveStreamModule = NativeModules.LiveStreamModule\n ? NativeModules.LiveStreamModule\n : new Proxy(\n {},\n {\n get() {\n throw new Error(LINKING_ERROR);\n },\n }\n );\n\ninterface ILiveStreamModule extends NativeModule {\n init(): Promise<any>;\n}\nconst LiveStreamModuleEventEmitter = new NativeEventEmitter(LiveStreamModule);\nexport { LiveStreamModuleEventEmitter };\n\nexport default LiveStreamModule as ILiveStreamModule;\n"]}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { NativeEventEmitter, NativeModules } from 'react-native';
|
|
2
|
-
import { LINKING_ERROR } from '../constants/FWErrorMessage';
|
|
3
|
-
const ShoppingModule = NativeModules.ShoppingModule ? NativeModules.ShoppingModule : new Proxy({}, {
|
|
4
|
-
get() {
|
|
5
|
-
throw new Error(LINKING_ERROR);
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
});
|
|
9
|
-
const ShoppingModuleEventEmitter = new NativeEventEmitter(ShoppingModule);
|
|
10
|
-
export { ShoppingModuleEventEmitter };
|
|
11
|
-
export default ShoppingModule;
|
|
12
|
-
//# sourceMappingURL=ShoppingModule.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["ShoppingModule.ts"],"names":["NativeEventEmitter","NativeModules","LINKING_ERROR","ShoppingModule","Proxy","get","Error","ShoppingModuleEventEmitter"],"mappings":"AAAA,SAASA,kBAAT,EAA2CC,aAA3C,QAAgE,cAAhE;AAEA,SAASC,aAAT,QAA8B,6BAA9B;AAKA,MAAMC,cAAc,GAAGF,aAAa,CAACE,cAAd,GACnBF,aAAa,CAACE,cADK,GAEnB,IAAIC,KAAJ,CACE,EADF,EAEE;AACEC,EAAAA,GAAG,GAAG;AACJ,UAAM,IAAIC,KAAJ,CAAUJ,aAAV,CAAN;AACD;;AAHH,CAFF,CAFJ;AAyBA,MAAMK,0BAA0B,GAAG,IAAIP,kBAAJ,CAAuBG,cAAvB,CAAnC;AACA,SAASI,0BAAT;AAEA,eAAeJ,cAAf","sourcesContent":["import { NativeEventEmitter, NativeModule, NativeModules } from 'react-native';\n\nimport { LINKING_ERROR } from '../constants/FWErrorMessage';\nimport type Product from '../models/Product';\nimport type ProductInfoViewConfiguration from '../models/ProductInfoViewConfiguration';\nimport type ShoppingCTAResult from '../models/ShoppingCTAResult';\n\nconst ShoppingModule = NativeModules.ShoppingModule\n ? NativeModules.ShoppingModule\n : new Proxy(\n {},\n {\n get() {\n throw new Error(LINKING_ERROR);\n },\n }\n );\n\ninterface IShoppingModule extends NativeModule {\n init(): Promise<any>;\n updateVideoProducts(products: Product[], callbackId: number | string): void;\n updateShoppingCTAResult(\n result: ShoppingCTAResult,\n callbackId: number | string\n ): void;\n setCartIconVisible(visible: boolean): void;\n setCartItemCount(count: number): void;\n clearCallbackId(callbackId: number | string, eventName: string): void; // Only supported on iOS\n setProductInfoViewConfiguration(config: ProductInfoViewConfiguration): void;\n setCustomClickLinkButtonEnabled(enabled: boolean): Promise<any>;\n}\n\nconst ShoppingModuleEventEmitter = new NativeEventEmitter(ShoppingModule);\nexport { ShoppingModuleEventEmitter };\n\nexport default ShoppingModule as IShoppingModule;\n"]}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
|
-
|
|
3
|
-
class FWGlobalState {
|
|
4
|
-
static getInstance() {
|
|
5
|
-
if (!FWGlobalState._instance) {
|
|
6
|
-
FWGlobalState._instance = new FWGlobalState();
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
return FWGlobalState._instance;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
constructor() {
|
|
13
|
-
_defineProperty(this, "sdkInitCalledResolveFunc", void 0);
|
|
14
|
-
|
|
15
|
-
_defineProperty(this, "sdkInitCalledPromise", void 0);
|
|
16
|
-
|
|
17
|
-
_defineProperty(this, "sdkInitCalled", false);
|
|
18
|
-
|
|
19
|
-
this.sdkInitCalledPromise = new Promise(resolve => {
|
|
20
|
-
this.sdkInitCalledResolveFunc = resolve;
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
resolveSdkInitCalled() {
|
|
25
|
-
if (this.sdkInitCalledResolveFunc) {
|
|
26
|
-
// only call once
|
|
27
|
-
this.sdkInitCalledResolveFunc();
|
|
28
|
-
this.sdkInitCalledResolveFunc = undefined;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
this.sdkInitCalled = true;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
_defineProperty(FWGlobalState, "_instance", void 0);
|
|
37
|
-
|
|
38
|
-
export default FWGlobalState;
|
|
39
|
-
//# sourceMappingURL=FWGlobalState.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["FWGlobalState.ts"],"names":["FWGlobalState","getInstance","_instance","constructor","sdkInitCalledPromise","Promise","resolve","sdkInitCalledResolveFunc","resolveSdkInitCalled","undefined","sdkInitCalled"],"mappings":";;AAAA,MAAMA,aAAN,CAAoB;AAMA,SAAXC,WAAW,GAAG;AACnB,QAAI,CAACD,aAAa,CAACE,SAAnB,EAA8B;AAC5BF,MAAAA,aAAa,CAACE,SAAd,GAA0B,IAAIF,aAAJ,EAA1B;AACD;;AAED,WAAOA,aAAa,CAACE,SAArB;AACD;;AAEOC,EAAAA,WAAW,GAAG;AAAA;;AAAA;;AAAA,2CAVG,KAUH;;AACpB,SAAKC,oBAAL,GAA4B,IAAIC,OAAJ,CAAaC,OAAD,IAAa;AACnD,WAAKC,wBAAL,GAAgCD,OAAhC;AACD,KAF2B,CAA5B;AAGD;;AAEDE,EAAAA,oBAAoB,GAAG;AACrB,QAAI,KAAKD,wBAAT,EAAmC;AACjC;AACA,WAAKA,wBAAL;AACA,WAAKA,wBAAL,GAAgCE,SAAhC;AACD;;AACD,SAAKC,aAAL,GAAqB,IAArB;AACD;;AA3BiB;;gBAAdV,a;;AA8BN,eAAeA,aAAf","sourcesContent":["class FWGlobalState {\n private static _instance?: FWGlobalState;\n private sdkInitCalledResolveFunc?: () => void;\n sdkInitCalledPromise: Promise<void>;\n sdkInitCalled: boolean = false;\n\n static getInstance() {\n if (!FWGlobalState._instance) {\n FWGlobalState._instance = new FWGlobalState();\n }\n\n return FWGlobalState._instance!;\n }\n\n private constructor() {\n this.sdkInitCalledPromise = new Promise((resolve) => {\n this.sdkInitCalledResolveFunc = resolve;\n });\n }\n\n resolveSdkInitCalled() {\n if (this.sdkInitCalledResolveFunc) {\n // only call once\n this.sdkInitCalledResolveFunc();\n this.sdkInitCalledResolveFunc = undefined;\n }\n this.sdkInitCalled = true;\n }\n}\n\nexport default FWGlobalState;\n"]}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
|
-
|
|
3
|
-
export default class FWLoggerUtil {
|
|
4
|
-
static log(message) {
|
|
5
|
-
if (FWLoggerUtil.enabled && process.env.NODE_ENV === 'development') {
|
|
6
|
-
const currentDate = new Date();
|
|
7
|
-
console.log('[react-native-firework-sdk]', `${message} ${FWLoggerUtil.toISOString(currentDate)}`);
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
static logNativeMessage(nativeMessage) {
|
|
12
|
-
if (FWLoggerUtil.enabled && process.env.NODE_ENV === 'development') {
|
|
13
|
-
console.log('[react-native-firework-sdk] [native]', nativeMessage);
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
static toISOString(date) {
|
|
18
|
-
let timezoneOffset = -date.getTimezoneOffset();
|
|
19
|
-
let timezoneSymbol = timezoneOffset >= 0 ? '+' : '-';
|
|
20
|
-
let timezoneHours = Math.floor(Math.abs(timezoneOffset) / 60).toString().padStart(2, '0');
|
|
21
|
-
let timezoneMinutes = (Math.abs(timezoneOffset) % 60).toString().padStart(2, '0');
|
|
22
|
-
let timezoneString = `${timezoneSymbol}${timezoneHours}:${timezoneMinutes}`;
|
|
23
|
-
let year = date.getFullYear().toString();
|
|
24
|
-
let month = (date.getMonth() + 1).toString().padStart(2, '0');
|
|
25
|
-
let day = date.getDate().toString().padStart(2, '0');
|
|
26
|
-
let hours = date.getHours().toString().padStart(2, '0');
|
|
27
|
-
let minutes = date.getMinutes().toString().padStart(2, '0');
|
|
28
|
-
let seconds = date.getSeconds().toString().padStart(2, '0');
|
|
29
|
-
let milliseconds = date.getMilliseconds().toString().padStart(3, '0');
|
|
30
|
-
return `${year}-${month}-${day}T${hours}:${minutes}:${seconds}.${milliseconds}${timezoneString}`;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
_defineProperty(FWLoggerUtil, "enabled", false);
|
|
36
|
-
//# sourceMappingURL=FWLoggerUtil.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["FWLoggerUtil.ts"],"names":["FWLoggerUtil","log","message","enabled","process","env","NODE_ENV","currentDate","Date","console","toISOString","logNativeMessage","nativeMessage","date","timezoneOffset","getTimezoneOffset","timezoneSymbol","timezoneHours","Math","floor","abs","toString","padStart","timezoneMinutes","timezoneString","year","getFullYear","month","getMonth","day","getDate","hours","getHours","minutes","getMinutes","seconds","getSeconds","milliseconds","getMilliseconds"],"mappings":";;AAAA,eAAe,MAAMA,YAAN,CAAmB;AAEtB,SAAHC,GAAG,CAACC,OAAD,EAAkB;AAC1B,QAAIF,YAAY,CAACG,OAAb,IAAwBC,OAAO,CAACC,GAAR,CAAYC,QAAZ,KAAyB,aAArD,EAAoE;AAClE,YAAMC,WAAW,GAAG,IAAIC,IAAJ,EAApB;AAEAC,MAAAA,OAAO,CAACR,GAAR,CACE,6BADF,EAEG,GAAEC,OAAQ,IAAGF,YAAY,CAACU,WAAb,CAAyBH,WAAzB,CAAsC,EAFtD;AAID;AACF;;AAEsB,SAAhBI,gBAAgB,CAACC,aAAD,EAAwB;AAC7C,QAAIZ,YAAY,CAACG,OAAb,IAAwBC,OAAO,CAACC,GAAR,CAAYC,QAAZ,KAAyB,aAArD,EAAoE;AAClEG,MAAAA,OAAO,CAACR,GAAR,CAAY,sCAAZ,EAAoDW,aAApD;AACD;AACF;;AAEyB,SAAXF,WAAW,CAACG,IAAD,EAAqB;AAC7C,QAAIC,cAAc,GAAG,CAACD,IAAI,CAACE,iBAAL,EAAtB;AACA,QAAIC,cAAc,GAAGF,cAAc,IAAI,CAAlB,GAAsB,GAAtB,GAA4B,GAAjD;AACA,QAAIG,aAAa,GAAGC,IAAI,CAACC,KAAL,CAAWD,IAAI,CAACE,GAAL,CAASN,cAAT,IAA2B,EAAtC,EACjBO,QADiB,GAEjBC,QAFiB,CAER,CAFQ,EAEL,GAFK,CAApB;AAGA,QAAIC,eAAe,GAAG,CAACL,IAAI,CAACE,GAAL,CAASN,cAAT,IAA2B,EAA5B,EACnBO,QADmB,GAEnBC,QAFmB,CAEV,CAFU,EAEP,GAFO,CAAtB;AAGA,QAAIE,cAAc,GAAI,GAAER,cAAe,GAAEC,aAAc,IAAGM,eAAgB,EAA1E;AACA,QAAIE,IAAI,GAAGZ,IAAI,CAACa,WAAL,GAAmBL,QAAnB,EAAX;AACA,QAAIM,KAAK,GAAG,CAACd,IAAI,CAACe,QAAL,KAAkB,CAAnB,EAAsBP,QAAtB,GAAiCC,QAAjC,CAA0C,CAA1C,EAA6C,GAA7C,CAAZ;AACA,QAAIO,GAAG,GAAGhB,IAAI,CAACiB,OAAL,GAAeT,QAAf,GAA0BC,QAA1B,CAAmC,CAAnC,EAAsC,GAAtC,CAAV;AACA,QAAIS,KAAK,GAAGlB,IAAI,CAACmB,QAAL,GAAgBX,QAAhB,GAA2BC,QAA3B,CAAoC,CAApC,EAAuC,GAAvC,CAAZ;AACA,QAAIW,OAAO,GAAGpB,IAAI,CAACqB,UAAL,GAAkBb,QAAlB,GAA6BC,QAA7B,CAAsC,CAAtC,EAAyC,GAAzC,CAAd;AACA,QAAIa,OAAO,GAAGtB,IAAI,CAACuB,UAAL,GAAkBf,QAAlB,GAA6BC,QAA7B,CAAsC,CAAtC,EAAyC,GAAzC,CAAd;AACA,QAAIe,YAAY,GAAGxB,IAAI,CAACyB,eAAL,GAAuBjB,QAAvB,GAAkCC,QAAlC,CAA2C,CAA3C,EAA8C,GAA9C,CAAnB;AAEA,WAAQ,GAAEG,IAAK,IAAGE,KAAM,IAAGE,GAAI,IAAGE,KAAM,IAAGE,OAAQ,IAAGE,OAAQ,IAAGE,YAAa,GAAEb,cAAe,EAA/F;AACD;;AAtC+B;;gBAAbxB,Y,aACO,K","sourcesContent":["export default class FWLoggerUtil {\n static enabled: boolean = false;\n static log(message: string) {\n if (FWLoggerUtil.enabled && process.env.NODE_ENV === 'development') {\n const currentDate = new Date();\n\n console.log(\n '[react-native-firework-sdk]',\n `${message} ${FWLoggerUtil.toISOString(currentDate)}`\n );\n }\n }\n\n static logNativeMessage(nativeMessage: string) {\n if (FWLoggerUtil.enabled && process.env.NODE_ENV === 'development') {\n console.log('[react-native-firework-sdk] [native]', nativeMessage);\n }\n }\n\n private static toISOString(date: Date): string {\n let timezoneOffset = -date.getTimezoneOffset();\n let timezoneSymbol = timezoneOffset >= 0 ? '+' : '-';\n let timezoneHours = Math.floor(Math.abs(timezoneOffset) / 60)\n .toString()\n .padStart(2, '0');\n let timezoneMinutes = (Math.abs(timezoneOffset) % 60)\n .toString()\n .padStart(2, '0');\n let timezoneString = `${timezoneSymbol}${timezoneHours}:${timezoneMinutes}`;\n let year = date.getFullYear().toString();\n let month = (date.getMonth() + 1).toString().padStart(2, '0');\n let day = date.getDate().toString().padStart(2, '0');\n let hours = date.getHours().toString().padStart(2, '0');\n let minutes = date.getMinutes().toString().padStart(2, '0');\n let seconds = date.getSeconds().toString().padStart(2, '0');\n let milliseconds = date.getMilliseconds().toString().padStart(3, '0');\n\n return `${year}-${month}-${day}T${hours}:${minutes}:${seconds}.${milliseconds}${timezoneString}`;\n }\n}\n"]}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* You can use this class for pushing RN page from the native page.
|
|
3
|
-
*/
|
|
4
|
-
declare class FWNavigator {
|
|
5
|
-
private static _instance?;
|
|
6
|
-
static getInstance(): FWNavigator;
|
|
7
|
-
private constructor();
|
|
8
|
-
/**
|
|
9
|
-
* Pop the native container. You could use the method to close the fullscreen player.
|
|
10
|
-
* But if the enablePictureInPicture of the associated video feed is true,
|
|
11
|
-
* we can't close the fullscreen player.
|
|
12
|
-
* @returns {Promise<boolean>} The result of popping the native container.
|
|
13
|
-
*/
|
|
14
|
-
popNativeContainer(): Promise<boolean>;
|
|
15
|
-
/**
|
|
16
|
-
* Change current fullscreen player to floating player.
|
|
17
|
-
* @returns {Promise<boolean>} If the result is true, it means that the fullscreen
|
|
18
|
-
* player is changed to floating player.
|
|
19
|
-
*/
|
|
20
|
-
startFloatingPlayer(): Promise<boolean>;
|
|
21
|
-
/**
|
|
22
|
-
* Stop current floating player.
|
|
23
|
-
*/
|
|
24
|
-
stopFloatingPlayer(): Promise<void>;
|
|
25
|
-
}
|
|
26
|
-
export default FWNavigator;
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
import FWNavigator from './FWNavigator';
|
|
2
|
-
import LiveStream from './LiveStream';
|
|
3
|
-
import type AdBadgeConfiguration from './models/AdBadgeConfiguration';
|
|
4
|
-
import type { CustomCTAClickEvent, SDKInitEvent, VideoFeedClickEvent, VideoPlaybackEvent } from './models/FWEvents';
|
|
5
|
-
import type SDKInitOptions from './models/SDKInitOptions';
|
|
6
|
-
import type { VideoLaunchBehavior } from './models/SDKInitOptions';
|
|
7
|
-
import type TrackPurchaseParameters from './models/TrackPurchaseParameters';
|
|
8
|
-
import type VideoPlayerConfiguration from './models/VideoPlayerConfiguration';
|
|
9
|
-
import VideoShopping from './VideoShopping';
|
|
10
|
-
export type SDKInitCallback = (event: SDKInitEvent) => Promise<void> | void;
|
|
11
|
-
export type CustomCTAClickCallback = (event: CustomCTAClickEvent) => Promise<void> | void;
|
|
12
|
-
export type VideoPlaybackCallback = (event: VideoPlaybackEvent) => Promise<void> | void;
|
|
13
|
-
export type VideoFeedClickCallback = (event: VideoFeedClickEvent) => Promise<void> | void;
|
|
14
|
-
/**
|
|
15
|
-
* Firework SDK.
|
|
16
|
-
*/
|
|
17
|
-
declare class FireworkSDK {
|
|
18
|
-
private static _instance?;
|
|
19
|
-
/**
|
|
20
|
-
* The callback of SDK initialization.
|
|
21
|
-
*/
|
|
22
|
-
onSDKInit?: SDKInitCallback;
|
|
23
|
-
/**
|
|
24
|
-
* the callback of clicking Video Feed.
|
|
25
|
-
*/
|
|
26
|
-
onVideoFeedClick?: VideoFeedClickCallback;
|
|
27
|
-
/**
|
|
28
|
-
* The callback of clicking custom CTA.
|
|
29
|
-
*/
|
|
30
|
-
get onCustomCTAClick(): CustomCTAClickCallback | undefined;
|
|
31
|
-
set onCustomCTAClick(value: CustomCTAClickCallback | undefined);
|
|
32
|
-
private _onCustomCTAClick;
|
|
33
|
-
/**
|
|
34
|
-
* The callback of video playback.
|
|
35
|
-
*/
|
|
36
|
-
get onVideoPlayback(): VideoPlaybackCallback | undefined;
|
|
37
|
-
set onVideoPlayback(value: VideoPlaybackCallback | undefined);
|
|
38
|
-
private _onVideoPlayback?;
|
|
39
|
-
/**
|
|
40
|
-
* The global share base URL of the video.
|
|
41
|
-
* The {@link VideoPlayerConfiguration.shareBaseURL} in {@link VideoPlayerConfiguration} will override this.
|
|
42
|
-
*/
|
|
43
|
-
get shareBaseURL(): string | undefined;
|
|
44
|
-
set shareBaseURL(value: string | undefined);
|
|
45
|
-
private _shareBaseURL;
|
|
46
|
-
/**
|
|
47
|
-
* The configuration for ad badges.
|
|
48
|
-
*/
|
|
49
|
-
get adBadgeConfiguration(): AdBadgeConfiguration | undefined;
|
|
50
|
-
set adBadgeConfiguration(value: AdBadgeConfiguration | undefined);
|
|
51
|
-
private _adBadgeConfiguration;
|
|
52
|
-
get appLanguage(): string | undefined | null;
|
|
53
|
-
private _appLanguage;
|
|
54
|
-
/**
|
|
55
|
-
* Defaults to false.
|
|
56
|
-
* You can enable debug logs by setting this property to true.
|
|
57
|
-
*/
|
|
58
|
-
get debugLogsEnabled(): boolean;
|
|
59
|
-
set debugLogsEnabled(value: boolean);
|
|
60
|
-
/**
|
|
61
|
-
* Get video launch behavior.
|
|
62
|
-
*/
|
|
63
|
-
get videoLaunchBehavior(): VideoLaunchBehavior | undefined;
|
|
64
|
-
private _videoLaunchBehavior;
|
|
65
|
-
private get eventEmitter();
|
|
66
|
-
/**
|
|
67
|
-
* Get VideoShopping object.
|
|
68
|
-
*/
|
|
69
|
-
get shopping(): VideoShopping;
|
|
70
|
-
private _shopping;
|
|
71
|
-
/**
|
|
72
|
-
* Get LiveStream object.
|
|
73
|
-
*/
|
|
74
|
-
get liveStream(): LiveStream;
|
|
75
|
-
private _liveStream;
|
|
76
|
-
/**
|
|
77
|
-
* Get FWNavigator object.
|
|
78
|
-
*/
|
|
79
|
-
get navigator(): FWNavigator;
|
|
80
|
-
private _navigator;
|
|
81
|
-
/**
|
|
82
|
-
* Get global single instance of FireworkSDK class.
|
|
83
|
-
* @returns FireworkSDK
|
|
84
|
-
*/
|
|
85
|
-
static getInstance(): FireworkSDK;
|
|
86
|
-
private constructor();
|
|
87
|
-
/**
|
|
88
|
-
* Initializes Firework SDK.
|
|
89
|
-
* @param {SDKInitOptions?} options
|
|
90
|
-
*/
|
|
91
|
-
init(options?: SDKInitOptions): Promise<void>;
|
|
92
|
-
/**
|
|
93
|
-
* Open Video URL.
|
|
94
|
-
* @param {string} url
|
|
95
|
-
* @param {VideoPlayerConfiguration} config
|
|
96
|
-
*/
|
|
97
|
-
openVideoPlayer(url: string, config?: VideoPlayerConfiguration): Promise<void>;
|
|
98
|
-
/**
|
|
99
|
-
* Records the user purchase. Only supported on iOS.
|
|
100
|
-
* @param {TrackPurchaseParameters} parameters
|
|
101
|
-
*/
|
|
102
|
-
trackPurchase(parameters: TrackPurchaseParameters): Promise<void>;
|
|
103
|
-
/**
|
|
104
|
-
* Change App level language.
|
|
105
|
-
* @param {string | undefined | null} language Such as en, ar and en-US
|
|
106
|
-
* If language is null or undefined or empty string, SDK will use system language.
|
|
107
|
-
* @returns {Promise<boolean>} The result of changing app language.
|
|
108
|
-
*/
|
|
109
|
-
changeAppLanguage(language?: string | null): Promise<boolean>;
|
|
110
|
-
private updateInternalAppLanguage;
|
|
111
|
-
private updateInternalShareBaseURL;
|
|
112
|
-
}
|
|
113
|
-
export default FireworkSDK;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { LiveStreamChatEvent, LiveStreamEvent } from './models/FWEvents';
|
|
2
|
-
export type onLiveStreamEventCallback = (event: LiveStreamEvent) => Promise<void> | void;
|
|
3
|
-
export type onLiveStreamChatEventCallback = (event: LiveStreamChatEvent) => Promise<void> | void;
|
|
4
|
-
/**
|
|
5
|
-
* The entry class of live stream.
|
|
6
|
-
*/
|
|
7
|
-
declare class LiveStream {
|
|
8
|
-
private static _instance?;
|
|
9
|
-
/**
|
|
10
|
-
* The callback of live stream event.
|
|
11
|
-
*/
|
|
12
|
-
onLiveStreamEvent?: onLiveStreamEventCallback;
|
|
13
|
-
/**
|
|
14
|
-
* The callback of live stream chat event.
|
|
15
|
-
*/
|
|
16
|
-
onLiveStreamChatEvent?: onLiveStreamChatEventCallback;
|
|
17
|
-
private get eventEmitter();
|
|
18
|
-
static getInstance(): LiveStream;
|
|
19
|
-
private constructor();
|
|
20
|
-
}
|
|
21
|
-
export default LiveStream;
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import type { CustomClickLinkButtonEvent, ShoppingCTAEvent, UpdateProductDetailsEvent } from './models/FWEvents';
|
|
2
|
-
import type Product from './models/Product';
|
|
3
|
-
import type ProductInfoViewConfiguration from './models/ProductInfoViewConfiguration';
|
|
4
|
-
import type ShoppingCTAResult from './models/ShoppingCTAResult';
|
|
5
|
-
export type ShoppingCTACallback = (event: ShoppingCTAEvent) => Promise<ShoppingCTAResult> | ShoppingCTAResult;
|
|
6
|
-
export type CustomClickCartIconCallback = () => Promise<void> | void;
|
|
7
|
-
export type UpdateProductDetailsCallbackResult = Product[] | undefined | null;
|
|
8
|
-
export type UpdateProductDetailsCallback = (event: UpdateProductDetailsEvent) => Promise<UpdateProductDetailsCallbackResult> | UpdateProductDetailsCallbackResult;
|
|
9
|
-
export type CustomClickLinkButtonCallback = (event: CustomClickLinkButtonEvent) => Promise<void> | void;
|
|
10
|
-
/**
|
|
11
|
-
* The entry class of video shopping.
|
|
12
|
-
*/
|
|
13
|
-
declare class VideoShopping {
|
|
14
|
-
private static _instance?;
|
|
15
|
-
/**
|
|
16
|
-
* This callback is triggered when the user clicks the "Add to cart" or "Shop now" button.
|
|
17
|
-
* The host app can return a ShoppingCTAResult object to tell SDK how to handle the result.
|
|
18
|
-
*/
|
|
19
|
-
onShoppingCTA?: ShoppingCTACallback;
|
|
20
|
-
/**
|
|
21
|
-
* This callback is triggered when the user clicks the shopping cart icon.
|
|
22
|
-
*
|
|
23
|
-
* The host app can customize the click event processing logic of
|
|
24
|
-
* the shopping cart icon by setting the callback.
|
|
25
|
-
*/
|
|
26
|
-
onCustomClickCartIcon?: CustomClickCartIconCallback | undefined;
|
|
27
|
-
/**
|
|
28
|
-
* This callback is triggered when the video will be shown.
|
|
29
|
-
*
|
|
30
|
-
* The host app can return a Product list to update the latest product information.
|
|
31
|
-
*/
|
|
32
|
-
onUpdateProductDetails?: UpdateProductDetailsCallback;
|
|
33
|
-
/**
|
|
34
|
-
* This callback is triggered when the user clicks
|
|
35
|
-
* the link button next to Add to cart button.
|
|
36
|
-
*
|
|
37
|
-
* The host app can customize the click event processing logic of
|
|
38
|
-
* the link button by setting the callback.
|
|
39
|
-
*/
|
|
40
|
-
get onCustomClickLinkButton(): CustomClickLinkButtonCallback | undefined;
|
|
41
|
-
set onCustomClickLinkButton(value: CustomClickLinkButtonCallback | undefined);
|
|
42
|
-
private _onCustomClickLinkButton?;
|
|
43
|
-
/**
|
|
44
|
-
* Defaults to true.
|
|
45
|
-
* You can hide the cart icon by setting this property to false.
|
|
46
|
-
*/
|
|
47
|
-
get cartIconVisible(): boolean;
|
|
48
|
-
set cartIconVisible(value: boolean);
|
|
49
|
-
private _cartIconVisible;
|
|
50
|
-
/**
|
|
51
|
-
* The configuration of product info view.
|
|
52
|
-
* Please refer to {@link ProductInfoViewConfiguration} for more details.
|
|
53
|
-
*/
|
|
54
|
-
get productInfoViewConfiguration(): ProductInfoViewConfiguration | undefined;
|
|
55
|
-
set productInfoViewConfiguration(value: ProductInfoViewConfiguration | undefined);
|
|
56
|
-
private _productInfoViewConfiguration?;
|
|
57
|
-
private get eventEmitter();
|
|
58
|
-
static getInstance(): VideoShopping;
|
|
59
|
-
private constructor();
|
|
60
|
-
/**
|
|
61
|
-
*
|
|
62
|
-
* @param {number} count The number of items in the host app cart.
|
|
63
|
-
* The count should be greater than or equal to 0.
|
|
64
|
-
* We just use count to show or hide red indicator on the cart icon.
|
|
65
|
-
* If cound > 0, we will show the red indicator on the cart icon.
|
|
66
|
-
* Otherwise, we will hide the red indicator on the cart icon.
|
|
67
|
-
*/
|
|
68
|
-
setCartItemCount(count: number): Promise<void>;
|
|
69
|
-
private handleShoppingCTAEvent;
|
|
70
|
-
private handleClickCartIconEvent;
|
|
71
|
-
private handleUpdateProductDetailsEvent;
|
|
72
|
-
private handleCustomLinkButtonClickEvent;
|
|
73
|
-
}
|
|
74
|
-
export default VideoShopping;
|