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":["index.ts"],"names":["FireworkSDK"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA;;AAEA;;AAOA;;AACA;;AAKA;;AA0BA;;AAEA;;AA2BA;;AAgBA;;;;eAEeA,oB","sourcesContent":["import type {\n IStoryBlockMethods,\n IStoryBlockProps,\n} from './components/StoryBlock';\nimport StoryBlock from './components/StoryBlock';\nimport type { IVideoFeedProps, VideoFeedMode } from './components/VideoFeed';\nimport VideoFeed from './components/VideoFeed';\nimport type {\n CustomCTAClickCallback,\n SDKInitCallback,\n VideoFeedClickCallback,\n VideoPlaybackCallback,\n} from './FireworkSDK';\nimport FireworkSDK from './FireworkSDK';\nimport FWNavigator from './FWNavigator';\nimport type {\n onLiveStreamChatEventCallback,\n onLiveStreamEventCallback,\n} from './LiveStream';\nimport LiveStream from './LiveStream';\nimport type AdBadgeConfiguration from './models/AdBadgeConfiguration';\nimport type { AdBadgeTextType } from './models/AdBadgeConfiguration';\nimport type AdConfiguration from './models/AdConfiguration';\nimport type { VastAttribute } from './models/AdConfiguration';\nimport type AndroidFontInfo from './models/AndroidFontInfo';\nimport type FeedItemDetails from './models/FeedItemDetails';\nimport type FWError from './models/FWError';\nimport type {\n CustomClickLinkButtonEvent,\n CustomCTAClickEvent,\n LiveStreamChatEvent,\n LiveStreamEvent,\n SDKInitEvent,\n ShoppingCTAEvent,\n UpdateProductDetailsEvent,\n VideoFeedClickEvent,\n VideoPlaybackEvent,\n} from './models/FWEvents';\nimport type GradientDrawable from './models/GradientDrawable';\nimport type { GradientDrawableOrientation } from './models/GradientDrawable';\nimport type IOSFontInfo from './models/IOSFontInfo';\nimport type {\n IOSSystemFontStyle,\n IOSSystemFontWeight,\n} from './models/IOSFontInfo';\nimport LiveStreamChatEventName from './models/LiveStreamChatEventName';\nimport type LiveStreamEventDetails from './models/LiveStreamEventDetails';\nimport LiveStreamEventName from './models/LiveStreamEventName';\nimport type LiveStreamMessageDetails from './models/LiveStreamMessageDetails';\nimport type Product from './models/Product';\nimport type ProductInfoViewConfiguration from './models/ProductInfoViewConfiguration';\nimport type {\n LinkButtonConfiguration,\n ShoppingCTAButtonConfiguration,\n ShoppingCTAButtonText,\n} from './models/ProductInfoViewConfiguration';\nimport type ProductUnit from './models/ProductUnit';\nimport type { ProductPrice, ProductUnitOption } from './models/ProductUnit';\nimport type SDKInitOptions from './models/SDKInitOptions';\nimport type { VideoLaunchBehavior } from './models/SDKInitOptions';\nimport type ShoppingCTAResult from './models/ShoppingCTAResult';\nimport type { StoryBlockConfiguration } from './models/StoryBlockConfiguration';\nimport type { StoryBlockSource } from './models/StoryBlockSource';\nimport type TrackPurchaseParameters from './models/TrackPurchaseParameters';\nimport type VideoFeedConfiguration from './models/VideoFeedConfiguration';\nimport type {\n VideoFeedPadding,\n VideoFeedPlayIconConfiguration,\n VideoFeedTitleConfiguration,\n VideoFeedTitlePosition,\n} from './models/VideoFeedConfiguration';\nimport type { VideoFeedSource } from './models/VideoFeedSource';\nimport type VideoPlaybackDetails from './models/VideoPlaybackDetails';\nimport type { VideoPlayerSize } from './models/VideoPlaybackDetails';\nimport VideoPlaybackEventName from './models/VideoPlaybackEventName';\nimport type { VideoPlayerCompleteAction } from './models/VideoPlayerCompleteAction';\nimport type VideoPlayerConfiguration from './models/VideoPlayerConfiguration';\nimport type {\n VideoPlayerCTADelay,\n VideoPlayerCTADelayType,\n} from './models/VideoPlayerCTADelay';\nimport type { VideoPlayerCTAStyle } from './models/VideoPlayerCTAStyle';\nimport type { VideoPlayerCTAWidth } from './models/VideoPlayerCTAWidth';\nimport type { VideoPlayerStyle } from './models/VideoPlayerStyle';\nimport type {\n CustomClickCartIconCallback,\n CustomClickLinkButtonCallback,\n ShoppingCTACallback,\n UpdateProductDetailsCallback,\n} from './VideoShopping';\nimport VideoShopping from './VideoShopping';\n\nexport default FireworkSDK;\n\nexport {\n AdBadgeConfiguration,\n AdBadgeTextType,\n AdConfiguration,\n AndroidFontInfo,\n CustomClickCartIconCallback,\n CustomClickLinkButtonCallback,\n CustomClickLinkButtonEvent,\n CustomCTAClickCallback,\n CustomCTAClickEvent,\n FeedItemDetails,\n FireworkSDK,\n FWError,\n FWNavigator,\n GradientDrawable,\n GradientDrawableOrientation,\n IOSFontInfo,\n IOSSystemFontStyle,\n IOSSystemFontWeight,\n IStoryBlockMethods,\n IStoryBlockProps,\n IVideoFeedProps,\n LinkButtonConfiguration,\n LiveStream,\n LiveStreamChatEvent,\n LiveStreamChatEventName,\n LiveStreamEvent,\n LiveStreamEventDetails,\n LiveStreamEventName,\n LiveStreamMessageDetails,\n onLiveStreamChatEventCallback,\n onLiveStreamEventCallback,\n Product,\n ProductInfoViewConfiguration,\n ProductPrice,\n ProductUnit,\n ProductUnitOption,\n SDKInitCallback,\n SDKInitEvent,\n SDKInitOptions,\n ShoppingCTAButtonConfiguration,\n ShoppingCTAButtonText,\n ShoppingCTACallback,\n ShoppingCTAEvent,\n ShoppingCTAResult,\n StoryBlock,\n StoryBlockConfiguration,\n StoryBlockSource,\n TrackPurchaseParameters,\n UpdateProductDetailsCallback,\n UpdateProductDetailsEvent,\n VastAttribute,\n VideoFeed,\n VideoFeedClickCallback,\n VideoFeedClickEvent,\n VideoFeedConfiguration,\n VideoFeedMode,\n VideoFeedPadding,\n VideoFeedPlayIconConfiguration,\n VideoFeedSource,\n VideoFeedTitleConfiguration,\n VideoFeedTitlePosition,\n VideoLaunchBehavior,\n VideoPlaybackCallback,\n VideoPlaybackDetails,\n VideoPlaybackEvent,\n VideoPlaybackEventName,\n VideoPlayerCompleteAction,\n VideoPlayerConfiguration,\n VideoPlayerCTADelay,\n VideoPlayerCTADelayType,\n VideoPlayerCTAStyle,\n VideoPlayerCTAWidth,\n VideoPlayerSize,\n VideoPlayerStyle,\n VideoShopping,\n};\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,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.FWEventName = void 0;
|
|
7
|
-
let FWEventName;
|
|
8
|
-
exports.FWEventName = FWEventName;
|
|
9
|
-
|
|
10
|
-
(function (FWEventName) {
|
|
11
|
-
FWEventName["SDKInit"] = "fw:sdk-init";
|
|
12
|
-
FWEventName["CustomCTAClick"] = "fw:custom-cta-click";
|
|
13
|
-
FWEventName["VideoPlayback"] = "fw:video-playback";
|
|
14
|
-
FWEventName["VideoFeedClick"] = "fw:video-feed-click";
|
|
15
|
-
FWEventName["AddToCart"] = "fw:shopping:add-to-cart";
|
|
16
|
-
FWEventName["ShoppingCTAButtonClick"] = "fw:shopping:cta-button-click";
|
|
17
|
-
FWEventName["ClickCartIcon"] = "fw:shopping:click-cart-icon";
|
|
18
|
-
FWEventName["UpdateProductDetails"] = "fw:shopping:update-product-details";
|
|
19
|
-
FWEventName["LiveStream"] = "fw:livestream";
|
|
20
|
-
FWEventName["LiveStreamChat"] = "fw:livestream-chat";
|
|
21
|
-
FWEventName["ShareBaseURLUpdated"] = "fw:share-base-url-updated";
|
|
22
|
-
FWEventName["VideoLaunchBehaviorUpdated"] = "fw:video-launch-behavior-updated";
|
|
23
|
-
FWEventName["AdBadgeConfigurationUpdated"] = "fw:ad-badge-configuration-updated";
|
|
24
|
-
FWEventName["AppLanguageUpdated"] = "fw:app-language-updated";
|
|
25
|
-
FWEventName["NativeAppLanguageUpdated"] = "fw:native-app-language-updated";
|
|
26
|
-
FWEventName["LogMessage"] = "fw:log-message";
|
|
27
|
-
FWEventName["CustomLinkButtonClick"] = "fw:shopping:custom-link-button-click";
|
|
28
|
-
})(FWEventName || (exports.FWEventName = FWEventName = {}));
|
|
29
|
-
//# sourceMappingURL=FWEventName.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["FWEventName.ts"],"names":["FWEventName"],"mappings":";;;;;;IAAYA,W;;;WAAAA,W;AAAAA,EAAAA,W;AAAAA,EAAAA,W;AAAAA,EAAAA,W;AAAAA,EAAAA,W;AAAAA,EAAAA,W;AAAAA,EAAAA,W;AAAAA,EAAAA,W;AAAAA,EAAAA,W;AAAAA,EAAAA,W;AAAAA,EAAAA,W;AAAAA,EAAAA,W;AAAAA,EAAAA,W;AAAAA,EAAAA,W;AAAAA,EAAAA,W;AAAAA,EAAAA,W;AAAAA,EAAAA,W;AAAAA,EAAAA,W;GAAAA,W,2BAAAA,W","sourcesContent":["export enum FWEventName {\n SDKInit = 'fw:sdk-init',\n CustomCTAClick = 'fw:custom-cta-click',\n VideoPlayback = 'fw:video-playback',\n VideoFeedClick = 'fw:video-feed-click',\n AddToCart = 'fw:shopping:add-to-cart',\n ShoppingCTAButtonClick = 'fw:shopping:cta-button-click',\n ClickCartIcon = 'fw:shopping:click-cart-icon',\n UpdateProductDetails = 'fw:shopping:update-product-details',\n LiveStream = 'fw:livestream',\n LiveStreamChat = 'fw:livestream-chat',\n ShareBaseURLUpdated = 'fw:share-base-url-updated',\n VideoLaunchBehaviorUpdated = 'fw:video-launch-behavior-updated',\n AdBadgeConfigurationUpdated = 'fw:ad-badge-configuration-updated',\n AppLanguageUpdated = 'fw:app-language-updated',\n NativeAppLanguageUpdated = 'fw:native-app-language-updated',\n LogMessage = 'fw:log-message',\n CustomLinkButtonClick = 'fw:shopping:custom-link-button-click',\n}\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,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var LiveStreamChatEventName;
|
|
8
|
-
|
|
9
|
-
(function (LiveStreamChatEventName) {
|
|
10
|
-
LiveStreamChatEventName["userSendChat"] = "fw:livestream:user-send-chat";
|
|
11
|
-
})(LiveStreamChatEventName || (LiveStreamChatEventName = {}));
|
|
12
|
-
|
|
13
|
-
var _default = LiveStreamChatEventName;
|
|
14
|
-
exports.default = _default;
|
|
15
|
-
//# sourceMappingURL=LiveStreamChatEventName.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["LiveStreamChatEventName.ts"],"names":["LiveStreamChatEventName"],"mappings":";;;;;;IAAKA,uB;;WAAAA,uB;AAAAA,EAAAA,uB;GAAAA,uB,KAAAA,uB;;eAOUA,uB","sourcesContent":["enum LiveStreamChatEventName {\n /**\n * Called when a user sends messages to an active live stream.\n */\n userSendChat = 'fw:livestream:user-send-chat',\n}\n\nexport default LiveStreamChatEventName;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var LiveStreamEventName;
|
|
8
|
-
|
|
9
|
-
(function (LiveStreamEventName) {
|
|
10
|
-
LiveStreamEventName["userDidjoin"] = "fw:livestream:user-join";
|
|
11
|
-
LiveStreamEventName["userDidLeave"] = "fw:livestream:user-leave";
|
|
12
|
-
LiveStreamEventName["userSendLike"] = "fw:livestream:user-send-like";
|
|
13
|
-
})(LiveStreamEventName || (LiveStreamEventName = {}));
|
|
14
|
-
|
|
15
|
-
var _default = LiveStreamEventName;
|
|
16
|
-
exports.default = _default;
|
|
17
|
-
//# sourceMappingURL=LiveStreamEventName.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["LiveStreamEventName.ts"],"names":["LiveStreamEventName"],"mappings":";;;;;;IAAKA,mB;;WAAAA,mB;AAAAA,EAAAA,mB;AAAAA,EAAAA,mB;AAAAA,EAAAA,mB;GAAAA,mB,KAAAA,mB;;eAeUA,mB","sourcesContent":["enum LiveStreamEventName {\n /**\n * Called when a user joins an active live stream.\n */\n userDidjoin = 'fw:livestream:user-join',\n /**\n * Called when the user leaves an active live stream.\n */\n userDidLeave = 'fw:livestream:user-leave',\n /**\n * Called when a user sends a like to an active live stream.\n */\n userSendLike = 'fw:livestream:user-send-like',\n}\n\nexport default LiveStreamEventName;\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 +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,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var VideoPlaybackEventName;
|
|
8
|
-
|
|
9
|
-
(function (VideoPlaybackEventName) {
|
|
10
|
-
VideoPlaybackEventName["Impression"] = "fw:video:impression";
|
|
11
|
-
VideoPlaybackEventName["Start"] = "fw:video:start";
|
|
12
|
-
VideoPlaybackEventName["Pause"] = "fw:video:pause";
|
|
13
|
-
VideoPlaybackEventName["Resume"] = "fw:video:resume";
|
|
14
|
-
VideoPlaybackEventName["FirstQuartile"] = "fw:video:first-quartile";
|
|
15
|
-
VideoPlaybackEventName["Midpoint"] = "fw:video:midpoint";
|
|
16
|
-
VideoPlaybackEventName["ThirdQuartile"] = "fw:video:third-quartile";
|
|
17
|
-
VideoPlaybackEventName["Complete"] = "fw:video:complete";
|
|
18
|
-
VideoPlaybackEventName["AdStart"] = "fw:video:ad-start";
|
|
19
|
-
VideoPlaybackEventName["AdEnd"] = "fw:video:ad-end";
|
|
20
|
-
VideoPlaybackEventName["ClickCTA"] = "fw:video:click-cta";
|
|
21
|
-
VideoPlaybackEventName["ClickShare"] = "fw:video:click-share";
|
|
22
|
-
})(VideoPlaybackEventName || (VideoPlaybackEventName = {}));
|
|
23
|
-
|
|
24
|
-
var _default = VideoPlaybackEventName;
|
|
25
|
-
exports.default = _default;
|
|
26
|
-
//# 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;;eAmDUA,sB","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,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.FWNavigatorModuleEventEmitter = void 0;
|
|
7
|
-
|
|
8
|
-
var _reactNative = require("react-native");
|
|
9
|
-
|
|
10
|
-
var _FWErrorMessage = require("../constants/FWErrorMessage");
|
|
11
|
-
|
|
12
|
-
const FWNavigatorModule = _reactNative.NativeModules.FWNavigatorModule ? _reactNative.NativeModules.FWNavigatorModule : new Proxy({}, {
|
|
13
|
-
get() {
|
|
14
|
-
throw new Error(_FWErrorMessage.LINKING_ERROR);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
});
|
|
18
|
-
const FWNavigatorModuleEventEmitter = new _reactNative.NativeEventEmitter(FWNavigatorModule);
|
|
19
|
-
exports.FWNavigatorModuleEventEmitter = FWNavigatorModuleEventEmitter;
|
|
20
|
-
var _default = FWNavigatorModule;
|
|
21
|
-
exports.default = _default;
|
|
22
|
-
//# sourceMappingURL=FWNavigatorModule.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["FWNavigatorModule.ts"],"names":["FWNavigatorModule","NativeModules","Proxy","get","Error","LINKING_ERROR","FWNavigatorModuleEventEmitter","NativeEventEmitter"],"mappings":";;;;;;;AAAA;;AAEA;;AAEA,MAAMA,iBAAiB,GAAGC,2BAAcD,iBAAd,GACtBC,2BAAcD,iBADQ,GAEtB,IAAIE,KAAJ,CACE,EADF,EAEE;AACEC,EAAAA,GAAG,GAAG;AACJ,UAAM,IAAIC,KAAJ,CAAUC,6BAAV,CAAN;AACD;;AAHH,CAFF,CAFJ;AAiBA,MAAMC,6BAA6B,GAAG,IAAIC,+BAAJ,CAAuBP,iBAAvB,CAAtC;;eAEeA,iB","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,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.FireworkSDKModuleEventEmitter = void 0;
|
|
7
|
-
|
|
8
|
-
var _reactNative = require("react-native");
|
|
9
|
-
|
|
10
|
-
var _FWErrorMessage = require("../constants/FWErrorMessage");
|
|
11
|
-
|
|
12
|
-
const FireworkSDKModule = _reactNative.NativeModules.FireworkSDK ? _reactNative.NativeModules.FireworkSDK : new Proxy({}, {
|
|
13
|
-
get() {
|
|
14
|
-
throw new Error(_FWErrorMessage.LINKING_ERROR);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
});
|
|
18
|
-
const FireworkSDKModuleEventEmitter = new _reactNative.NativeEventEmitter(FireworkSDKModule);
|
|
19
|
-
exports.FireworkSDKModuleEventEmitter = FireworkSDKModuleEventEmitter;
|
|
20
|
-
var _default = FireworkSDKModule;
|
|
21
|
-
exports.default = _default;
|
|
22
|
-
//# sourceMappingURL=FireworkSDKModule.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["FireworkSDKModule.ts"],"names":["FireworkSDKModule","NativeModules","FireworkSDK","Proxy","get","Error","LINKING_ERROR","FireworkSDKModuleEventEmitter","NativeEventEmitter"],"mappings":";;;;;;;AAAA;;AAEA;;AAMA,MAAMA,iBAAiB,GAAGC,2BAAcC,WAAd,GACtBD,2BAAcC,WADQ,GAEtB,IAAIC,KAAJ,CACE,EADF,EAEE;AACEC,EAAAA,GAAG,GAAG;AACJ,UAAM,IAAIC,KAAJ,CAAUC,6BAAV,CAAN;AACD;;AAHH,CAFF,CAFJ;AAsBA,MAAMC,6BAA6B,GAAG,IAAIC,+BAAJ,CAAuBR,iBAAvB,CAAtC;;eAEeA,iB","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,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.LiveStreamModuleEventEmitter = void 0;
|
|
7
|
-
|
|
8
|
-
var _reactNative = require("react-native");
|
|
9
|
-
|
|
10
|
-
var _FWErrorMessage = require("../constants/FWErrorMessage");
|
|
11
|
-
|
|
12
|
-
const LiveStreamModule = _reactNative.NativeModules.LiveStreamModule ? _reactNative.NativeModules.LiveStreamModule : new Proxy({}, {
|
|
13
|
-
get() {
|
|
14
|
-
throw new Error(_FWErrorMessage.LINKING_ERROR);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
});
|
|
18
|
-
const LiveStreamModuleEventEmitter = new _reactNative.NativeEventEmitter(LiveStreamModule);
|
|
19
|
-
exports.LiveStreamModuleEventEmitter = LiveStreamModuleEventEmitter;
|
|
20
|
-
var _default = LiveStreamModule;
|
|
21
|
-
exports.default = _default;
|
|
22
|
-
//# sourceMappingURL=LiveStreamModule.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["LiveStreamModule.ts"],"names":["LiveStreamModule","NativeModules","Proxy","get","Error","LINKING_ERROR","LiveStreamModuleEventEmitter","NativeEventEmitter"],"mappings":";;;;;;;AAAA;;AAEA;;AAEA,MAAMA,gBAAgB,GAAGC,2BAAcD,gBAAd,GACrBC,2BAAcD,gBADO,GAErB,IAAIE,KAAJ,CACE,EADF,EAEE;AACEC,EAAAA,GAAG,GAAG;AACJ,UAAM,IAAIC,KAAJ,CAAUC,6BAAV,CAAN;AACD;;AAHH,CAFF,CAFJ;AAcA,MAAMC,4BAA4B,GAAG,IAAIC,+BAAJ,CAAuBP,gBAAvB,CAArC;;eAGeA,gB","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,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.ShoppingModuleEventEmitter = void 0;
|
|
7
|
-
|
|
8
|
-
var _reactNative = require("react-native");
|
|
9
|
-
|
|
10
|
-
var _FWErrorMessage = require("../constants/FWErrorMessage");
|
|
11
|
-
|
|
12
|
-
const ShoppingModule = _reactNative.NativeModules.ShoppingModule ? _reactNative.NativeModules.ShoppingModule : new Proxy({}, {
|
|
13
|
-
get() {
|
|
14
|
-
throw new Error(_FWErrorMessage.LINKING_ERROR);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
});
|
|
18
|
-
const ShoppingModuleEventEmitter = new _reactNative.NativeEventEmitter(ShoppingModule);
|
|
19
|
-
exports.ShoppingModuleEventEmitter = ShoppingModuleEventEmitter;
|
|
20
|
-
var _default = ShoppingModule;
|
|
21
|
-
exports.default = _default;
|
|
22
|
-
//# sourceMappingURL=ShoppingModule.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["ShoppingModule.ts"],"names":["ShoppingModule","NativeModules","Proxy","get","Error","LINKING_ERROR","ShoppingModuleEventEmitter","NativeEventEmitter"],"mappings":";;;;;;;AAAA;;AAEA;;AAKA,MAAMA,cAAc,GAAGC,2BAAcD,cAAd,GACnBC,2BAAcD,cADK,GAEnB,IAAIE,KAAJ,CACE,EADF,EAEE;AACEC,EAAAA,GAAG,GAAG;AACJ,UAAM,IAAIC,KAAJ,CAAUC,6BAAV,CAAN;AACD;;AAHH,CAFF,CAFJ;AAyBA,MAAMC,0BAA0B,GAAG,IAAIC,+BAAJ,CAAuBP,cAAvB,CAAnC;;eAGeA,c","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,47 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
9
|
-
|
|
10
|
-
class FWGlobalState {
|
|
11
|
-
static getInstance() {
|
|
12
|
-
if (!FWGlobalState._instance) {
|
|
13
|
-
FWGlobalState._instance = new FWGlobalState();
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
return FWGlobalState._instance;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
constructor() {
|
|
20
|
-
_defineProperty(this, "sdkInitCalledResolveFunc", void 0);
|
|
21
|
-
|
|
22
|
-
_defineProperty(this, "sdkInitCalledPromise", void 0);
|
|
23
|
-
|
|
24
|
-
_defineProperty(this, "sdkInitCalled", false);
|
|
25
|
-
|
|
26
|
-
this.sdkInitCalledPromise = new Promise(resolve => {
|
|
27
|
-
this.sdkInitCalledResolveFunc = resolve;
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
resolveSdkInitCalled() {
|
|
32
|
-
if (this.sdkInitCalledResolveFunc) {
|
|
33
|
-
// only call once
|
|
34
|
-
this.sdkInitCalledResolveFunc();
|
|
35
|
-
this.sdkInitCalledResolveFunc = undefined;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
this.sdkInitCalled = true;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
_defineProperty(FWGlobalState, "_instance", void 0);
|
|
44
|
-
|
|
45
|
-
var _default = FWGlobalState;
|
|
46
|
-
exports.default = _default;
|
|
47
|
-
//# 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;;eA8BSA,a","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,45 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
9
|
-
|
|
10
|
-
class FWLoggerUtil {
|
|
11
|
-
static log(message) {
|
|
12
|
-
if (FWLoggerUtil.enabled && process.env.NODE_ENV === 'development') {
|
|
13
|
-
const currentDate = new Date();
|
|
14
|
-
console.log('[react-native-firework-sdk]', `${message} ${FWLoggerUtil.toISOString(currentDate)}`);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
static logNativeMessage(nativeMessage) {
|
|
19
|
-
if (FWLoggerUtil.enabled && process.env.NODE_ENV === 'development') {
|
|
20
|
-
console.log('[react-native-firework-sdk] [native]', nativeMessage);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
static toISOString(date) {
|
|
25
|
-
let timezoneOffset = -date.getTimezoneOffset();
|
|
26
|
-
let timezoneSymbol = timezoneOffset >= 0 ? '+' : '-';
|
|
27
|
-
let timezoneHours = Math.floor(Math.abs(timezoneOffset) / 60).toString().padStart(2, '0');
|
|
28
|
-
let timezoneMinutes = (Math.abs(timezoneOffset) % 60).toString().padStart(2, '0');
|
|
29
|
-
let timezoneString = `${timezoneSymbol}${timezoneHours}:${timezoneMinutes}`;
|
|
30
|
-
let year = date.getFullYear().toString();
|
|
31
|
-
let month = (date.getMonth() + 1).toString().padStart(2, '0');
|
|
32
|
-
let day = date.getDate().toString().padStart(2, '0');
|
|
33
|
-
let hours = date.getHours().toString().padStart(2, '0');
|
|
34
|
-
let minutes = date.getMinutes().toString().padStart(2, '0');
|
|
35
|
-
let seconds = date.getSeconds().toString().padStart(2, '0');
|
|
36
|
-
let milliseconds = date.getMilliseconds().toString().padStart(3, '0');
|
|
37
|
-
return `${year}-${month}-${day}T${hours}:${minutes}:${seconds}.${milliseconds}${timezoneString}`;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
exports.default = FWLoggerUtil;
|
|
43
|
-
|
|
44
|
-
_defineProperty(FWLoggerUtil, "enabled", false);
|
|
45
|
-
//# 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":";;;;;;;;;AAAe,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"]}
|