react-native-firework-sdk 2.16.1 → 2.17.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/android/build.gradle +43 -75
- package/android/gradle.properties +5 -5
- package/android/settings.gradle +1 -1
- package/android/src/main/AndroidManifestNew.xml +41 -0
- package/ios/FireworkSdk-Bridging-Header.h +3 -3
- package/lib/commonjs/FWNavigator.js +13 -34
- package/lib/commonjs/FWNavigator.js.map +1 -1
- package/lib/commonjs/FireworkSDK.js +44 -159
- package/lib/commonjs/FireworkSDK.js.map +1 -1
- package/lib/commonjs/LiveStream.js +8 -27
- package/lib/commonjs/LiveStream.js.map +1 -1
- package/lib/commonjs/VideoShopping.js +21 -91
- package/lib/commonjs/VideoShopping.js.map +1 -1
- package/lib/commonjs/components/FWStoryBlock.js +2 -6
- package/lib/commonjs/components/FWStoryBlock.js.map +1 -1
- package/lib/commonjs/components/FWVideoFeed.js +2 -6
- package/lib/commonjs/components/FWVideoFeed.js.map +1 -1
- package/lib/commonjs/components/StoryBlock.js +60 -161
- package/lib/commonjs/components/StoryBlock.js.map +1 -1
- package/lib/commonjs/components/VideoFeed.js +214 -335
- package/lib/commonjs/components/VideoFeed.js.map +1 -1
- package/lib/commonjs/constants/FWErrorMessage.js +1 -4
- package/lib/commonjs/constants/FWErrorMessage.js.map +1 -1
- package/lib/commonjs/index.js +14 -29
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/models/AdBadgeConfiguration.js.map +1 -1
- package/lib/commonjs/models/AdConfiguration.js.map +1 -1
- package/lib/commonjs/models/AndroidFontInfo.js.map +1 -1
- package/lib/commonjs/models/ButtonInfo.js.map +1 -1
- package/lib/commonjs/models/CountdownTimerConfiguration.js.map +1 -1
- package/lib/commonjs/models/DataTrackingLevel.js.map +1 -1
- package/lib/commonjs/models/FWComponentType.js +3 -5
- package/lib/commonjs/models/FWComponentType.js.map +1 -1
- package/lib/commonjs/models/FWError.js.map +1 -1
- package/lib/commonjs/models/FWEventName.js +3 -5
- package/lib/commonjs/models/FWEventName.js.map +1 -1
- package/lib/commonjs/models/FWEvents.js.map +1 -1
- package/lib/commonjs/models/FWNativeErrorAction.js +3 -5
- package/lib/commonjs/models/FWNativeErrorAction.js.map +1 -1
- package/lib/commonjs/models/FeedItemDetails.js.map +1 -1
- package/lib/commonjs/models/GradientDrawable.js.map +1 -1
- package/lib/commonjs/models/IOSFontInfo.js.map +1 -1
- package/lib/commonjs/models/LiveStreamChatEventName.js +7 -7
- package/lib/commonjs/models/LiveStreamChatEventName.js.map +1 -1
- package/lib/commonjs/models/LiveStreamEventDetails.js.map +1 -1
- package/lib/commonjs/models/LiveStreamEventName.js +13 -7
- package/lib/commonjs/models/LiveStreamEventName.js.map +1 -1
- package/lib/commonjs/models/LiveStreamMessageDetails.js.map +1 -1
- package/lib/commonjs/models/LivestreamPlayerDesignVersion.js +4 -7
- package/lib/commonjs/models/LivestreamPlayerDesignVersion.js.map +1 -1
- package/lib/commonjs/models/MarkInitCalledOptions.js.map +1 -1
- package/lib/commonjs/models/OpenVideoPlayerConfiguration.js.map +1 -1
- package/lib/commonjs/models/Product.js.map +1 -1
- package/lib/commonjs/models/ProductInfoViewConfiguration.js.map +1 -1
- package/lib/commonjs/models/ProductUnit.js.map +1 -1
- package/lib/commonjs/models/PushRNContainerParams.js.map +1 -1
- package/lib/commonjs/models/ReplayBadgeConfiguration.js.map +1 -1
- package/lib/commonjs/models/SDKInitOptions.js.map +1 -1
- package/lib/commonjs/models/ShoppingCTAResult.js.map +1 -1
- package/lib/commonjs/models/StoryBlockConfiguration.js.map +1 -1
- package/lib/commonjs/models/StoryBlockNativeConfiguration.js.map +1 -1
- package/lib/commonjs/models/StoryBlockSource.js.map +1 -1
- package/lib/commonjs/models/TrackPurchaseParameters.js.map +1 -1
- package/lib/commonjs/models/VideoFeedConfiguration.js.map +1 -1
- package/lib/commonjs/models/VideoFeedSource.js.map +1 -1
- package/lib/commonjs/models/VideoPlaybackDetails.js.map +1 -1
- package/lib/commonjs/models/VideoPlaybackEventName.js +40 -7
- package/lib/commonjs/models/VideoPlaybackEventName.js.map +1 -1
- package/lib/commonjs/models/VideoPlayerButtonConfiguration.js.map +1 -1
- package/lib/commonjs/models/VideoPlayerCTADelay.js.map +1 -1
- package/lib/commonjs/models/VideoPlayerCTAStyle.js.map +1 -1
- package/lib/commonjs/models/VideoPlayerCTAWidth.js.map +1 -1
- package/lib/commonjs/models/VideoPlayerCompleteAction.js.map +1 -1
- package/lib/commonjs/models/VideoPlayerConfiguration.js.map +1 -1
- package/lib/commonjs/models/VideoPlayerLivestreamCountdownTimerTheme.js.map +1 -1
- package/lib/commonjs/models/VideoPlayerLogoConfiguration.js.map +1 -1
- package/lib/commonjs/models/VideoPlayerNativeConfiguration.js.map +1 -1
- package/lib/commonjs/models/VideoPlayerStyle.js.map +1 -1
- package/lib/commonjs/modules/FWNavigatorModule.js +3 -9
- package/lib/commonjs/modules/FWNavigatorModule.js.map +1 -1
- package/lib/commonjs/modules/FireworkSDKModule.js +3 -9
- package/lib/commonjs/modules/FireworkSDKModule.js.map +1 -1
- package/lib/commonjs/modules/LiveStreamModule.js +3 -9
- package/lib/commonjs/modules/LiveStreamModule.js.map +1 -1
- package/lib/commonjs/modules/ShoppingModule.js +3 -9
- package/lib/commonjs/modules/ShoppingModule.js.map +1 -1
- package/lib/commonjs/package.json +1 -0
- package/lib/commonjs/utils/FWGlobalState.js +3 -21
- package/lib/commonjs/utils/FWGlobalState.js.map +1 -1
- package/lib/commonjs/utils/FWJsonUtil.js +1 -9
- package/lib/commonjs/utils/FWJsonUtil.js.map +1 -1
- package/lib/commonjs/utils/FWLoggerUtil.js +1 -9
- package/lib/commonjs/utils/FWLoggerUtil.js.map +1 -1
- package/lib/commonjs/utils/VideoFeedUtil.js +15 -28
- package/lib/commonjs/utils/VideoFeedUtil.js.map +1 -1
- package/lib/module/FWNavigator.js +13 -24
- package/lib/module/FWNavigator.js.map +1 -1
- package/lib/module/FireworkSDK.js +42 -127
- package/lib/module/FireworkSDK.js.map +1 -1
- package/lib/module/LiveStream.js +7 -18
- package/lib/module/LiveStream.js.map +1 -1
- package/lib/module/VideoShopping.js +19 -68
- package/lib/module/VideoShopping.js.map +1 -1
- package/lib/module/components/FWStoryBlock.js +3 -1
- package/lib/module/components/FWStoryBlock.js.map +1 -1
- package/lib/module/components/FWVideoFeed.js +3 -1
- package/lib/module/components/FWVideoFeed.js.map +1 -1
- package/lib/module/components/StoryBlock.js +59 -111
- package/lib/module/components/StoryBlock.js.map +1 -1
- package/lib/module/components/VideoFeed.js +214 -299
- package/lib/module/components/VideoFeed.js.map +1 -1
- package/lib/module/constants/FWErrorMessage.js +2 -0
- package/lib/module/constants/FWErrorMessage.js.map +1 -1
- package/lib/module/index.js +14 -12
- package/lib/module/index.js.map +1 -1
- package/lib/module/models/AdBadgeConfiguration.js +1 -1
- package/lib/module/models/AdBadgeConfiguration.js.map +1 -1
- package/lib/module/models/AdConfiguration.js +1 -1
- package/lib/module/models/AdConfiguration.js.map +1 -1
- package/lib/module/models/AndroidFontInfo.js +1 -1
- package/lib/module/models/AndroidFontInfo.js.map +1 -1
- package/lib/module/models/ButtonInfo.js +1 -1
- package/lib/module/models/ButtonInfo.js.map +1 -1
- package/lib/module/models/CountdownTimerConfiguration.js +1 -1
- package/lib/module/models/CountdownTimerConfiguration.js.map +1 -1
- package/lib/module/models/DataTrackingLevel.js +1 -1
- package/lib/module/models/DataTrackingLevel.js.map +1 -1
- package/lib/module/models/FWComponentType.js +4 -3
- package/lib/module/models/FWComponentType.js.map +1 -1
- package/lib/module/models/FWError.js +1 -1
- package/lib/module/models/FWError.js.map +1 -1
- package/lib/module/models/FWEventName.js +4 -3
- package/lib/module/models/FWEventName.js.map +1 -1
- package/lib/module/models/FWEvents.js +2 -0
- package/lib/module/models/FWEvents.js.map +1 -1
- package/lib/module/models/FWNativeErrorAction.js +4 -3
- package/lib/module/models/FWNativeErrorAction.js.map +1 -1
- package/lib/module/models/FeedItemDetails.js +1 -1
- package/lib/module/models/FeedItemDetails.js.map +1 -1
- package/lib/module/models/GradientDrawable.js +1 -1
- package/lib/module/models/GradientDrawable.js.map +1 -1
- package/lib/module/models/IOSFontInfo.js +1 -1
- package/lib/module/models/IOSFontInfo.js.map +1 -1
- package/lib/module/models/LiveStreamChatEventName.js +7 -4
- package/lib/module/models/LiveStreamChatEventName.js.map +1 -1
- package/lib/module/models/LiveStreamEventDetails.js +1 -1
- package/lib/module/models/LiveStreamEventDetails.js.map +1 -1
- package/lib/module/models/LiveStreamEventName.js +13 -4
- package/lib/module/models/LiveStreamEventName.js.map +1 -1
- package/lib/module/models/LiveStreamMessageDetails.js +1 -1
- package/lib/module/models/LiveStreamMessageDetails.js.map +1 -1
- package/lib/module/models/LivestreamPlayerDesignVersion.js +4 -4
- package/lib/module/models/LivestreamPlayerDesignVersion.js.map +1 -1
- package/lib/module/models/MarkInitCalledOptions.js +1 -1
- package/lib/module/models/MarkInitCalledOptions.js.map +1 -1
- package/lib/module/models/OpenVideoPlayerConfiguration.js +1 -1
- package/lib/module/models/OpenVideoPlayerConfiguration.js.map +1 -1
- package/lib/module/models/Product.js +1 -1
- package/lib/module/models/Product.js.map +1 -1
- package/lib/module/models/ProductInfoViewConfiguration.js +1 -1
- package/lib/module/models/ProductInfoViewConfiguration.js.map +1 -1
- package/lib/module/models/ProductUnit.js +1 -1
- package/lib/module/models/ProductUnit.js.map +1 -1
- package/lib/module/models/PushRNContainerParams.js +1 -1
- package/lib/module/models/PushRNContainerParams.js.map +1 -1
- package/lib/module/models/ReplayBadgeConfiguration.js +1 -1
- package/lib/module/models/ReplayBadgeConfiguration.js.map +1 -1
- package/lib/module/models/SDKInitOptions.js +1 -1
- package/lib/module/models/SDKInitOptions.js.map +1 -1
- package/lib/module/models/ShoppingCTAResult.js +1 -1
- package/lib/module/models/ShoppingCTAResult.js.map +1 -1
- package/lib/module/models/StoryBlockConfiguration.js +2 -0
- package/lib/module/models/StoryBlockConfiguration.js.map +1 -1
- package/lib/module/models/StoryBlockNativeConfiguration.js +1 -1
- package/lib/module/models/StoryBlockNativeConfiguration.js.map +1 -1
- package/lib/module/models/StoryBlockSource.js +1 -1
- package/lib/module/models/StoryBlockSource.js.map +1 -1
- package/lib/module/models/TrackPurchaseParameters.js +1 -1
- package/lib/module/models/TrackPurchaseParameters.js.map +1 -1
- package/lib/module/models/VideoFeedConfiguration.js +1 -1
- package/lib/module/models/VideoFeedConfiguration.js.map +1 -1
- package/lib/module/models/VideoFeedSource.js +1 -1
- package/lib/module/models/VideoFeedSource.js.map +1 -1
- package/lib/module/models/VideoPlaybackDetails.js +1 -1
- package/lib/module/models/VideoPlaybackDetails.js.map +1 -1
- package/lib/module/models/VideoPlaybackEventName.js +40 -4
- package/lib/module/models/VideoPlaybackEventName.js.map +1 -1
- package/lib/module/models/VideoPlayerButtonConfiguration.js +1 -1
- package/lib/module/models/VideoPlayerButtonConfiguration.js.map +1 -1
- package/lib/module/models/VideoPlayerCTADelay.js +1 -1
- package/lib/module/models/VideoPlayerCTADelay.js.map +1 -1
- package/lib/module/models/VideoPlayerCTAStyle.js +2 -0
- package/lib/module/models/VideoPlayerCTAStyle.js.map +1 -1
- package/lib/module/models/VideoPlayerCTAWidth.js +1 -1
- package/lib/module/models/VideoPlayerCTAWidth.js.map +1 -1
- package/lib/module/models/VideoPlayerCompleteAction.js +1 -1
- package/lib/module/models/VideoPlayerCompleteAction.js.map +1 -1
- package/lib/module/models/VideoPlayerConfiguration.js +1 -1
- package/lib/module/models/VideoPlayerConfiguration.js.map +1 -1
- package/lib/module/models/VideoPlayerLivestreamCountdownTimerTheme.js +1 -1
- package/lib/module/models/VideoPlayerLivestreamCountdownTimerTheme.js.map +1 -1
- package/lib/module/models/VideoPlayerLogoConfiguration.js +1 -1
- package/lib/module/models/VideoPlayerLogoConfiguration.js.map +1 -1
- package/lib/module/models/VideoPlayerNativeConfiguration.js +1 -1
- package/lib/module/models/VideoPlayerNativeConfiguration.js.map +1 -1
- package/lib/module/models/VideoPlayerStyle.js +1 -1
- package/lib/module/models/VideoPlayerStyle.js.map +1 -1
- package/lib/module/modules/FWNavigatorModule.js +3 -2
- package/lib/module/modules/FWNavigatorModule.js.map +1 -1
- package/lib/module/modules/FireworkSDKModule.js +3 -2
- package/lib/module/modules/FireworkSDKModule.js.map +1 -1
- package/lib/module/modules/LiveStreamModule.js +3 -2
- package/lib/module/modules/LiveStreamModule.js.map +1 -1
- package/lib/module/modules/ShoppingModule.js +3 -2
- package/lib/module/modules/ShoppingModule.js.map +1 -1
- package/lib/module/package.json +1 -0
- package/lib/module/utils/FWGlobalState.js +3 -17
- package/lib/module/utils/FWGlobalState.js.map +1 -1
- package/lib/module/utils/FWJsonUtil.js +2 -6
- package/lib/module/utils/FWJsonUtil.js.map +1 -1
- package/lib/module/utils/FWLoggerUtil.js +2 -6
- package/lib/module/utils/FWLoggerUtil.js.map +1 -1
- package/lib/module/utils/VideoFeedUtil.js +16 -25
- package/lib/module/utils/VideoFeedUtil.js.map +1 -1
- package/lib/typescript/commonjs/package.json +1 -0
- package/lib/typescript/{FWNavigator.d.ts → commonjs/src/FWNavigator.d.ts} +3 -0
- package/lib/typescript/commonjs/src/FWNavigator.d.ts.map +1 -0
- package/lib/typescript/{FireworkSDK.d.ts → commonjs/src/FireworkSDK.d.ts} +1 -0
- package/lib/typescript/commonjs/src/FireworkSDK.d.ts.map +1 -0
- package/lib/typescript/{LiveStream.d.ts → commonjs/src/LiveStream.d.ts} +1 -0
- package/lib/typescript/commonjs/src/LiveStream.d.ts.map +1 -0
- package/lib/typescript/{VideoShopping.d.ts → commonjs/src/VideoShopping.d.ts} +1 -0
- package/lib/typescript/commonjs/src/VideoShopping.d.ts.map +1 -0
- package/lib/typescript/{components → commonjs/src/components}/FWStoryBlock.d.ts +1 -0
- package/lib/typescript/commonjs/src/components/FWStoryBlock.d.ts.map +1 -0
- package/lib/typescript/{components → commonjs/src/components}/FWVideoFeed.d.ts +1 -0
- package/lib/typescript/commonjs/src/components/FWVideoFeed.d.ts.map +1 -0
- package/lib/typescript/{components → commonjs/src/components}/StoryBlock.d.ts +3 -3
- package/lib/typescript/commonjs/src/components/StoryBlock.d.ts.map +1 -0
- package/lib/typescript/{components → commonjs/src/components}/VideoFeed.d.ts +3 -2
- package/lib/typescript/commonjs/src/components/VideoFeed.d.ts.map +1 -0
- package/lib/typescript/{constants → commonjs/src/constants}/FWErrorMessage.d.ts +1 -0
- package/lib/typescript/commonjs/src/constants/FWErrorMessage.d.ts.map +1 -0
- package/lib/typescript/{index.d.ts → commonjs/src/index.d.ts} +3 -1
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/AdBadgeConfiguration.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/AdBadgeConfiguration.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/AdConfiguration.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/AdConfiguration.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/AndroidFontInfo.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/AndroidFontInfo.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/ButtonInfo.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/ButtonInfo.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/CountdownTimerConfiguration.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/CountdownTimerConfiguration.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/DataTrackingLevel.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/DataTrackingLevel.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/FWComponentType.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/FWComponentType.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/FWError.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/FWError.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/FWEventName.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/FWEventName.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/FWEvents.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/FWEvents.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/FWNativeErrorAction.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/FWNativeErrorAction.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/FeedItemDetails.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/FeedItemDetails.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/GradientDrawable.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/GradientDrawable.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/IOSFontInfo.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/IOSFontInfo.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/LiveStreamChatEventName.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/LiveStreamChatEventName.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/LiveStreamEventDetails.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/LiveStreamEventDetails.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/LiveStreamEventName.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/LiveStreamEventName.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/LiveStreamMessageDetails.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/LiveStreamMessageDetails.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/LivestreamPlayerDesignVersion.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/LivestreamPlayerDesignVersion.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/MarkInitCalledOptions.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/MarkInitCalledOptions.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/OpenVideoPlayerConfiguration.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/OpenVideoPlayerConfiguration.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/Product.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/Product.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/ProductInfoViewConfiguration.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/ProductInfoViewConfiguration.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/ProductUnit.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/ProductUnit.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/PushRNContainerParams.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/PushRNContainerParams.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/ReplayBadgeConfiguration.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/ReplayBadgeConfiguration.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/SDKInitOptions.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/SDKInitOptions.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/ShoppingCTAResult.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/ShoppingCTAResult.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/StoryBlockConfiguration.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/StoryBlockConfiguration.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/StoryBlockNativeConfiguration.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/StoryBlockNativeConfiguration.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/StoryBlockSource.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/StoryBlockSource.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/TrackPurchaseParameters.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/TrackPurchaseParameters.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/VideoFeedConfiguration.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/VideoFeedConfiguration.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/VideoFeedSource.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/VideoFeedSource.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/VideoPlaybackDetails.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/VideoPlaybackDetails.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/VideoPlaybackEventName.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/VideoPlaybackEventName.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/VideoPlayerButtonConfiguration.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/VideoPlayerButtonConfiguration.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/VideoPlayerCTADelay.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/VideoPlayerCTADelay.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/VideoPlayerCTAStyle.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/VideoPlayerCTAStyle.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/VideoPlayerCTAWidth.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/VideoPlayerCTAWidth.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/VideoPlayerCompleteAction.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/VideoPlayerCompleteAction.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/VideoPlayerConfiguration.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/VideoPlayerConfiguration.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/VideoPlayerLivestreamCountdownTimerTheme.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/VideoPlayerLivestreamCountdownTimerTheme.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/VideoPlayerLogoConfiguration.d.ts +2 -1
- package/lib/typescript/commonjs/src/models/VideoPlayerLogoConfiguration.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/VideoPlayerNativeConfiguration.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/VideoPlayerNativeConfiguration.d.ts.map +1 -0
- package/lib/typescript/{models → commonjs/src/models}/VideoPlayerStyle.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/VideoPlayerStyle.d.ts.map +1 -0
- package/lib/typescript/{modules → commonjs/src/modules}/FWNavigatorModule.d.ts +2 -1
- package/lib/typescript/commonjs/src/modules/FWNavigatorModule.d.ts.map +1 -0
- package/lib/typescript/{modules → commonjs/src/modules}/FireworkSDKModule.d.ts +4 -3
- package/lib/typescript/commonjs/src/modules/FireworkSDKModule.d.ts.map +1 -0
- package/lib/typescript/{modules → commonjs/src/modules}/LiveStreamModule.d.ts +2 -1
- package/lib/typescript/commonjs/src/modules/LiveStreamModule.d.ts.map +1 -0
- package/lib/typescript/{modules → commonjs/src/modules}/ShoppingModule.d.ts +2 -1
- package/lib/typescript/commonjs/src/modules/ShoppingModule.d.ts.map +1 -0
- package/lib/typescript/{utils → commonjs/src/utils}/FWGlobalState.d.ts +2 -1
- package/lib/typescript/commonjs/src/utils/FWGlobalState.d.ts.map +1 -0
- package/lib/typescript/{utils → commonjs/src/utils}/FWJsonUtil.d.ts +1 -0
- package/lib/typescript/commonjs/src/utils/FWJsonUtil.d.ts.map +1 -0
- package/lib/typescript/{utils → commonjs/src/utils}/FWLoggerUtil.d.ts +1 -0
- package/lib/typescript/commonjs/src/utils/FWLoggerUtil.d.ts.map +1 -0
- package/lib/typescript/{utils → commonjs/src/utils}/VideoFeedUtil.d.ts +1 -0
- package/lib/typescript/commonjs/src/utils/VideoFeedUtil.d.ts.map +1 -0
- package/lib/typescript/module/package.json +1 -0
- package/lib/typescript/module/src/FWNavigator.d.ts +59 -0
- package/lib/typescript/module/src/FWNavigator.d.ts.map +1 -0
- package/lib/typescript/module/src/FireworkSDK.d.ts +143 -0
- package/lib/typescript/module/src/FireworkSDK.d.ts.map +1 -0
- package/lib/typescript/module/src/LiveStream.d.ts +22 -0
- package/lib/typescript/module/src/LiveStream.d.ts.map +1 -0
- package/lib/typescript/module/src/VideoShopping.d.ts +94 -0
- package/lib/typescript/module/src/VideoShopping.d.ts.map +1 -0
- package/lib/typescript/module/src/components/FWStoryBlock.d.ts +3 -0
- package/lib/typescript/module/src/components/FWStoryBlock.d.ts.map +1 -0
- package/lib/typescript/module/src/components/FWVideoFeed.d.ts +3 -0
- package/lib/typescript/module/src/components/FWVideoFeed.d.ts.map +1 -0
- package/lib/typescript/module/src/components/StoryBlock.d.ts +116 -0
- package/lib/typescript/module/src/components/StoryBlock.d.ts.map +1 -0
- package/lib/typescript/module/src/components/VideoFeed.d.ts +145 -0
- package/lib/typescript/module/src/components/VideoFeed.d.ts.map +1 -0
- package/lib/typescript/module/src/constants/FWErrorMessage.d.ts +3 -0
- package/lib/typescript/module/src/constants/FWErrorMessage.d.ts.map +1 -0
- package/lib/typescript/module/src/index.d.ts +68 -0
- package/lib/typescript/module/src/index.d.ts.map +1 -0
- package/lib/typescript/module/src/models/AdBadgeConfiguration.d.ts +26 -0
- package/lib/typescript/module/src/models/AdBadgeConfiguration.d.ts.map +1 -0
- package/lib/typescript/module/src/models/AdConfiguration.d.ts +23 -0
- package/lib/typescript/module/src/models/AdConfiguration.d.ts.map +1 -0
- package/lib/typescript/module/src/models/AndroidFontInfo.d.ts +15 -0
- package/lib/typescript/module/src/models/AndroidFontInfo.d.ts.map +1 -0
- package/lib/typescript/module/src/models/ButtonInfo.d.ts +18 -0
- package/lib/typescript/module/src/models/ButtonInfo.d.ts.map +1 -0
- package/lib/typescript/module/src/models/CountdownTimerConfiguration.d.ts +13 -0
- package/lib/typescript/module/src/models/CountdownTimerConfiguration.d.ts.map +1 -0
- package/lib/typescript/module/src/models/DataTrackingLevel.d.ts +2 -0
- package/lib/typescript/module/src/models/DataTrackingLevel.d.ts.map +1 -0
- package/lib/typescript/module/src/models/FWComponentType.d.ts +5 -0
- package/lib/typescript/module/src/models/FWComponentType.d.ts.map +1 -0
- package/lib/typescript/module/src/models/FWError.d.ts +11 -0
- package/lib/typescript/module/src/models/FWError.d.ts.map +1 -0
- package/lib/typescript/module/src/models/FWEventName.d.ts +25 -0
- package/lib/typescript/module/src/models/FWEventName.d.ts.map +1 -0
- package/lib/typescript/module/src/models/FWEvents.d.ts +168 -0
- package/lib/typescript/module/src/models/FWEvents.d.ts.map +1 -0
- package/lib/typescript/module/src/models/FWNativeErrorAction.d.ts +5 -0
- package/lib/typescript/module/src/models/FWNativeErrorAction.d.ts.map +1 -0
- package/lib/typescript/module/src/models/FeedItemDetails.d.ts +59 -0
- package/lib/typescript/module/src/models/FeedItemDetails.d.ts.map +1 -0
- package/lib/typescript/module/src/models/GradientDrawable.d.ts +6 -0
- package/lib/typescript/module/src/models/GradientDrawable.d.ts.map +1 -0
- package/lib/typescript/module/src/models/IOSFontInfo.d.ts +22 -0
- package/lib/typescript/module/src/models/IOSFontInfo.d.ts.map +1 -0
- package/lib/typescript/module/src/models/LiveStreamChatEventName.d.ts +8 -0
- package/lib/typescript/module/src/models/LiveStreamChatEventName.d.ts.map +1 -0
- package/lib/typescript/module/src/models/LiveStreamEventDetails.d.ts +5 -0
- package/lib/typescript/module/src/models/LiveStreamEventDetails.d.ts.map +1 -0
- package/lib/typescript/module/src/models/LiveStreamEventName.d.ts +16 -0
- package/lib/typescript/module/src/models/LiveStreamEventName.d.ts.map +1 -0
- package/lib/typescript/module/src/models/LiveStreamMessageDetails.d.ts +15 -0
- package/lib/typescript/module/src/models/LiveStreamMessageDetails.d.ts.map +1 -0
- package/lib/typescript/module/src/models/LivestreamPlayerDesignVersion.d.ts +6 -0
- package/lib/typescript/module/src/models/LivestreamPlayerDesignVersion.d.ts.map +1 -0
- package/lib/typescript/module/src/models/MarkInitCalledOptions.d.ts +7 -0
- package/lib/typescript/module/src/models/MarkInitCalledOptions.d.ts.map +1 -0
- package/lib/typescript/module/src/models/OpenVideoPlayerConfiguration.d.ts +8 -0
- package/lib/typescript/module/src/models/OpenVideoPlayerConfiguration.d.ts.map +1 -0
- package/lib/typescript/module/src/models/Product.d.ts +24 -0
- package/lib/typescript/module/src/models/Product.d.ts.map +1 -0
- package/lib/typescript/module/src/models/ProductInfoViewConfiguration.d.ts +175 -0
- package/lib/typescript/module/src/models/ProductInfoViewConfiguration.d.ts.map +1 -0
- package/lib/typescript/module/src/models/ProductUnit.d.ts +39 -0
- package/lib/typescript/module/src/models/ProductUnit.d.ts.map +1 -0
- package/lib/typescript/module/src/models/PushRNContainerParams.d.ts +9 -0
- package/lib/typescript/module/src/models/PushRNContainerParams.d.ts.map +1 -0
- package/lib/typescript/module/src/models/ReplayBadgeConfiguration.d.ts +8 -0
- package/lib/typescript/module/src/models/ReplayBadgeConfiguration.d.ts.map +1 -0
- package/lib/typescript/module/src/models/SDKInitOptions.d.ts +12 -0
- package/lib/typescript/module/src/models/SDKInitOptions.d.ts.map +1 -0
- package/lib/typescript/module/src/models/ShoppingCTAResult.d.ts +12 -0
- package/lib/typescript/module/src/models/ShoppingCTAResult.d.ts.map +1 -0
- package/lib/typescript/module/src/models/StoryBlockConfiguration.d.ts +82 -0
- package/lib/typescript/module/src/models/StoryBlockConfiguration.d.ts.map +1 -0
- package/lib/typescript/module/src/models/StoryBlockNativeConfiguration.d.ts +8 -0
- package/lib/typescript/module/src/models/StoryBlockNativeConfiguration.d.ts.map +1 -0
- package/lib/typescript/module/src/models/StoryBlockSource.d.ts +2 -0
- package/lib/typescript/module/src/models/StoryBlockSource.d.ts.map +1 -0
- package/lib/typescript/module/src/models/TrackPurchaseParameters.d.ts +27 -0
- package/lib/typescript/module/src/models/TrackPurchaseParameters.d.ts.map +1 -0
- package/lib/typescript/module/src/models/VideoFeedConfiguration.d.ts +162 -0
- package/lib/typescript/module/src/models/VideoFeedConfiguration.d.ts.map +1 -0
- package/lib/typescript/module/src/models/VideoFeedSource.d.ts +2 -0
- package/lib/typescript/module/src/models/VideoFeedSource.d.ts.map +1 -0
- package/lib/typescript/module/src/models/VideoPlaybackDetails.d.ts +48 -0
- package/lib/typescript/module/src/models/VideoPlaybackDetails.d.ts.map +1 -0
- package/lib/typescript/module/src/models/VideoPlaybackEventName.d.ts +52 -0
- package/lib/typescript/module/src/models/VideoPlaybackEventName.d.ts.map +1 -0
- package/lib/typescript/module/src/models/VideoPlayerButtonConfiguration.d.ts +34 -0
- package/lib/typescript/module/src/models/VideoPlayerButtonConfiguration.d.ts.map +1 -0
- package/lib/typescript/module/src/models/VideoPlayerCTADelay.d.ts +12 -0
- package/lib/typescript/module/src/models/VideoPlayerCTADelay.d.ts.map +1 -0
- package/lib/typescript/module/src/models/VideoPlayerCTAStyle.d.ts +28 -0
- package/lib/typescript/module/src/models/VideoPlayerCTAStyle.d.ts.map +1 -0
- package/lib/typescript/module/src/models/VideoPlayerCTAWidth.d.ts +2 -0
- package/lib/typescript/module/src/models/VideoPlayerCTAWidth.d.ts.map +1 -0
- package/lib/typescript/module/src/models/VideoPlayerCompleteAction.d.ts +2 -0
- package/lib/typescript/module/src/models/VideoPlayerCompleteAction.d.ts.map +1 -0
- package/lib/typescript/module/src/models/VideoPlayerConfiguration.d.ts +87 -0
- package/lib/typescript/module/src/models/VideoPlayerConfiguration.d.ts.map +1 -0
- package/lib/typescript/module/src/models/VideoPlayerLivestreamCountdownTimerTheme.d.ts +2 -0
- package/lib/typescript/module/src/models/VideoPlayerLivestreamCountdownTimerTheme.d.ts.map +1 -0
- package/lib/typescript/module/src/models/VideoPlayerLogoConfiguration.d.ts +22 -0
- package/lib/typescript/module/src/models/VideoPlayerLogoConfiguration.d.ts.map +1 -0
- package/lib/typescript/module/src/models/VideoPlayerNativeConfiguration.d.ts +8 -0
- package/lib/typescript/module/src/models/VideoPlayerNativeConfiguration.d.ts.map +1 -0
- package/lib/typescript/module/src/models/VideoPlayerStyle.d.ts +2 -0
- package/lib/typescript/module/src/models/VideoPlayerStyle.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/FWNavigatorModule.d.ts +17 -0
- package/lib/typescript/module/src/modules/FWNavigatorModule.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/FireworkSDKModule.d.ts +28 -0
- package/lib/typescript/module/src/modules/FireworkSDKModule.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/LiveStreamModule.d.ts +9 -0
- package/lib/typescript/module/src/modules/LiveStreamModule.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/ShoppingModule.d.ts +22 -0
- package/lib/typescript/module/src/modules/ShoppingModule.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/FWGlobalState.d.ts +13 -0
- package/lib/typescript/module/src/utils/FWGlobalState.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/FWJsonUtil.d.ts +3 -0
- package/lib/typescript/module/src/utils/FWJsonUtil.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/FWLoggerUtil.d.ts +7 -0
- package/lib/typescript/module/src/utils/FWLoggerUtil.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/VideoFeedUtil.d.ts +11 -0
- package/lib/typescript/module/src/utils/VideoFeedUtil.d.ts.map +1 -0
- package/package.json +71 -55
- package/react_native_firework_sdk.podspec +35 -0
- package/src/FWNavigator.ts +2 -0
- package/src/components/StoryBlock.tsx +45 -48
- package/src/components/VideoFeed.tsx +7 -6
- package/src/{index.ts → index.tsx} +14 -12
- package/src/models/VideoPlayerLogoConfiguration.ts +7 -7
- package/src/modules/FWNavigatorModule.ts +5 -1
- package/src/modules/FireworkSDKModule.ts +7 -3
- package/src/modules/LiveStreamModule.ts +5 -1
- package/src/modules/ShoppingModule.ts +5 -1
- package/src/utils/FWGlobalState.ts +1 -1
- package/android/.idea/codeStyles/Project.xml +0 -124
- package/android/.idea/codeStyles/codeStyleConfig.xml +0 -5
- package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/android/gradle/wrapper/gradle-wrapper.properties +0 -5
- package/android/gradlew +0 -185
- package/android/gradlew.bat +0 -89
- package/ios/FireworkSdk.xcodeproj/project.pbxproj +0 -603
- package/ios/Modules/FWNavigatorModule/RNSScreenStackView+Window.h +0 -20
- package/ios/Modules/FWNavigatorModule/RNSScreenStackView+Window.m +0 -84
- package/ios/Support/MultiHostStreaming/FWMultiHostStreaming.podspec +0 -22
- package/ios/Support/MultiHostStreaming/Sources/MultiHostStreamingSDK.swift +0 -17
- package/react-native-firework-sdk.podspec +0 -38
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare enum FWEventName {
|
|
2
|
+
SDKInit = "fw:sdk-init",
|
|
3
|
+
CustomCTAClick = "fw:custom-cta-click",
|
|
4
|
+
VideoPlayback = "fw:video-playback",
|
|
5
|
+
VideoFeedClick = "fw:video-feed-click",
|
|
6
|
+
AddToCart = "fw:shopping:add-to-cart",
|
|
7
|
+
ShoppingCTAButtonClick = "fw:shopping:cta-button-click",
|
|
8
|
+
ClickCartIcon = "fw:shopping:click-cart-icon",
|
|
9
|
+
UpdateProductDetails = "fw:shopping:update-product-details",
|
|
10
|
+
LiveStream = "fw:livestream",
|
|
11
|
+
LiveStreamChat = "fw:livestream-chat",
|
|
12
|
+
ShareBaseURLUpdated = "fw:share-base-url-updated",
|
|
13
|
+
VideoLaunchBehaviorUpdated = "fw:video-launch-behavior-updated",
|
|
14
|
+
AdBadgeConfigurationUpdated = "fw:ad-badge-configuration-updated",
|
|
15
|
+
AppLanguageUpdated = "fw:app-language-updated",
|
|
16
|
+
NativeAppLanguageUpdated = "fw:native-app-language-updated",
|
|
17
|
+
LogMessage = "fw:log-message",
|
|
18
|
+
CustomLinkButtonClick = "fw:shopping:custom-link-button-click",
|
|
19
|
+
CustomProductCardTap = "fw:shopping:custom-product-card-tap",
|
|
20
|
+
ProductInfoViewConfigurationUpdated = "fw:product-info-view-configuration-updated",
|
|
21
|
+
ProductClick = "fw:shopping:product-click",
|
|
22
|
+
LivestreamPlayerDesignVersionUpdated = "fw:livestream-player-design-version-updated",
|
|
23
|
+
DataTrackingLevelUpdated = "fw:data-tracking-level-updated"
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=FWEventName.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FWEventName.d.ts","sourceRoot":"","sources":["../../../../../src/models/FWEventName.ts"],"names":[],"mappings":"AAAA,oBAAY,WAAW;IACrB,OAAO,gBAAgB;IACvB,cAAc,wBAAwB;IACtC,aAAa,sBAAsB;IACnC,cAAc,wBAAwB;IACtC,SAAS,4BAA4B;IACrC,sBAAsB,iCAAiC;IACvD,aAAa,gCAAgC;IAC7C,oBAAoB,uCAAuC;IAC3D,UAAU,kBAAkB;IAC5B,cAAc,uBAAuB;IACrC,mBAAmB,8BAA8B;IACjD,0BAA0B,qCAAqC;IAC/D,2BAA2B,sCAAsC;IACjE,kBAAkB,4BAA4B;IAC9C,wBAAwB,mCAAmC;IAC3D,UAAU,mBAAmB;IAC7B,qBAAqB,yCAAyC;IAC9D,oBAAoB,wCAAwC;IAC5D,mCAAmC,+CAA+C;IAClF,YAAY,8BAA8B;IAC1C,oCAAoC,gDAAgD;IACpF,wBAAwB,mCAAmC;CAC5D"}
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import type VideoPlaybackDetails from './VideoPlaybackDetails';
|
|
2
|
+
import type FWError from './FWError';
|
|
3
|
+
import type VideoPlaybackEventName from './VideoPlaybackEventName';
|
|
4
|
+
import type FeedItemDetails from './FeedItemDetails';
|
|
5
|
+
import type LiveStreamMessageDetails from './LiveStreamMessageDetails';
|
|
6
|
+
import type LiveStreamChatEventName from './LiveStreamChatEventName';
|
|
7
|
+
import type LiveStreamEventDetails from './LiveStreamEventDetails';
|
|
8
|
+
import type LiveStreamEventName from './LiveStreamEventName';
|
|
9
|
+
export interface SDKInitEvent {
|
|
10
|
+
/**
|
|
11
|
+
* If error equals undefined/null, it means the initialization is successful.
|
|
12
|
+
*/
|
|
13
|
+
error?: FWError | null;
|
|
14
|
+
}
|
|
15
|
+
export interface PlayerHandler {
|
|
16
|
+
/**
|
|
17
|
+
* Pause The video playback associated with this CTA.
|
|
18
|
+
* Only supported on iOS
|
|
19
|
+
*/
|
|
20
|
+
pause: () => void;
|
|
21
|
+
/**
|
|
22
|
+
* Resume The video playback associated with this CTA.
|
|
23
|
+
* Only supported on iOS
|
|
24
|
+
*/
|
|
25
|
+
resume: () => void;
|
|
26
|
+
}
|
|
27
|
+
export interface CustomCTAClickEvent {
|
|
28
|
+
/**
|
|
29
|
+
* Action URL that is associated with this CTA
|
|
30
|
+
*/
|
|
31
|
+
url: string;
|
|
32
|
+
/**
|
|
33
|
+
* The video playback pause/resume handler for the video.
|
|
34
|
+
* Only supported on iOS
|
|
35
|
+
*/
|
|
36
|
+
playerHandler?: PlayerHandler;
|
|
37
|
+
/**
|
|
38
|
+
* The video playback details for the event.
|
|
39
|
+
*/
|
|
40
|
+
video: VideoPlaybackDetails;
|
|
41
|
+
}
|
|
42
|
+
export interface VideoPlaybackEvent {
|
|
43
|
+
eventName: VideoPlaybackEventName;
|
|
44
|
+
info: VideoPlaybackDetails;
|
|
45
|
+
}
|
|
46
|
+
export interface VideoFeedClickEvent {
|
|
47
|
+
info: FeedItemDetails;
|
|
48
|
+
}
|
|
49
|
+
export interface CustomCTA {
|
|
50
|
+
/**
|
|
51
|
+
* Action URL that is associated with this CTA
|
|
52
|
+
*/
|
|
53
|
+
url: string;
|
|
54
|
+
/**
|
|
55
|
+
* The title key of the CTA, such as buy_now.
|
|
56
|
+
*/
|
|
57
|
+
titleKey: string;
|
|
58
|
+
/**
|
|
59
|
+
* The title of the CTA, such as "Buy Now".
|
|
60
|
+
*/
|
|
61
|
+
title: string;
|
|
62
|
+
}
|
|
63
|
+
export interface ShoppingCTAEvent {
|
|
64
|
+
/**
|
|
65
|
+
* The url for the product unit
|
|
66
|
+
*/
|
|
67
|
+
url: string;
|
|
68
|
+
/**
|
|
69
|
+
* A unique identifier of the product.
|
|
70
|
+
*/
|
|
71
|
+
productId: string;
|
|
72
|
+
/**
|
|
73
|
+
* A unique identifier of the product unit.
|
|
74
|
+
*/
|
|
75
|
+
unitId: string;
|
|
76
|
+
/**
|
|
77
|
+
* The video playback details for the event.
|
|
78
|
+
*/
|
|
79
|
+
video: VideoPlaybackDetails;
|
|
80
|
+
/**
|
|
81
|
+
* This property only has value when configuring a custom product primary CTA in the business portal.
|
|
82
|
+
*/
|
|
83
|
+
customCTA?: CustomCTA;
|
|
84
|
+
}
|
|
85
|
+
export interface UpdateProductDetailsEvent {
|
|
86
|
+
/**
|
|
87
|
+
* A unique identifier list of the products.
|
|
88
|
+
*/
|
|
89
|
+
productIds: string[];
|
|
90
|
+
/**
|
|
91
|
+
* The video playback details for the event.
|
|
92
|
+
*/
|
|
93
|
+
video: VideoPlaybackDetails;
|
|
94
|
+
}
|
|
95
|
+
export interface CustomClickLinkButtonEvent {
|
|
96
|
+
/**
|
|
97
|
+
* The url for the product unit
|
|
98
|
+
*/
|
|
99
|
+
url: string;
|
|
100
|
+
/**
|
|
101
|
+
* A unique identifier of the product.
|
|
102
|
+
*/
|
|
103
|
+
productId: string;
|
|
104
|
+
/**
|
|
105
|
+
* A unique identifier of the product unit.
|
|
106
|
+
*/
|
|
107
|
+
unitId: string;
|
|
108
|
+
/**
|
|
109
|
+
* The video playback details for the event.
|
|
110
|
+
*/
|
|
111
|
+
video?: VideoPlaybackDetails;
|
|
112
|
+
}
|
|
113
|
+
export interface CustomTapProductCardEvent {
|
|
114
|
+
/**
|
|
115
|
+
* The url for the product unit
|
|
116
|
+
*/
|
|
117
|
+
url: string;
|
|
118
|
+
/**
|
|
119
|
+
* A unique identifier of the product.
|
|
120
|
+
*/
|
|
121
|
+
productId: string;
|
|
122
|
+
/**
|
|
123
|
+
* A unique identifier of the product unit.
|
|
124
|
+
*/
|
|
125
|
+
unitId: string;
|
|
126
|
+
/**
|
|
127
|
+
* The video playback details for the event.
|
|
128
|
+
*/
|
|
129
|
+
video: VideoPlaybackDetails;
|
|
130
|
+
/**
|
|
131
|
+
* The video playback pause/resume handler for the video.
|
|
132
|
+
*/
|
|
133
|
+
playerHandler?: PlayerHandler;
|
|
134
|
+
}
|
|
135
|
+
export interface ClickProductEvent {
|
|
136
|
+
/**
|
|
137
|
+
* The url for the product unit
|
|
138
|
+
*/
|
|
139
|
+
url: string;
|
|
140
|
+
/**
|
|
141
|
+
* A unique identifier of the product.
|
|
142
|
+
*/
|
|
143
|
+
productId: string;
|
|
144
|
+
/**
|
|
145
|
+
* A unique identifier of the product unit.
|
|
146
|
+
*/
|
|
147
|
+
unitId: string;
|
|
148
|
+
/**
|
|
149
|
+
* The video playback details for the event.
|
|
150
|
+
*/
|
|
151
|
+
video: VideoPlaybackDetails;
|
|
152
|
+
}
|
|
153
|
+
export interface LiveStreamEvent {
|
|
154
|
+
eventName: LiveStreamEventName;
|
|
155
|
+
info: LiveStreamEventDetails;
|
|
156
|
+
}
|
|
157
|
+
export interface LiveStreamChatEvent {
|
|
158
|
+
eventName: LiveStreamChatEventName;
|
|
159
|
+
message: LiveStreamMessageDetails;
|
|
160
|
+
liveStream: LiveStreamEventDetails;
|
|
161
|
+
}
|
|
162
|
+
export interface CustomClickCartIconEvent {
|
|
163
|
+
/**
|
|
164
|
+
* The video playback details for the event.
|
|
165
|
+
*/
|
|
166
|
+
video: VideoPlaybackDetails;
|
|
167
|
+
}
|
|
168
|
+
//# sourceMappingURL=FWEvents.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FWEvents.d.ts","sourceRoot":"","sources":["../../../../../src/models/FWEvents.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,oBAAoB,MAAM,wBAAwB,CAAC;AAC/D,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AACrC,OAAO,KAAK,sBAAsB,MAAM,0BAA0B,CAAC;AACnE,OAAO,KAAK,eAAe,MAAM,mBAAmB,CAAC;AACrD,OAAO,KAAK,wBAAwB,MAAM,4BAA4B,CAAC;AACvE,OAAO,KAAK,uBAAuB,MAAM,2BAA2B,CAAC;AACrE,OAAO,KAAK,sBAAsB,MAAM,0BAA0B,CAAC;AACnE,OAAO,KAAK,mBAAmB,MAAM,uBAAuB,CAAC;AAE7D,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;CACxB;AAED,MAAM,WAAW,aAAa;IAC5B;;;OAGG;IACH,KAAK,EAAE,MAAM,IAAI,CAAC;IAElB;;;OAGG;IACH,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;;OAGG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC;IAE9B;;OAEG;IACH,KAAK,EAAE,oBAAoB,CAAC;CAC7B;AAED,MAAM,WAAW,kBAAkB;IACjC,SAAS,EAAE,sBAAsB,CAAC;IAClC,IAAI,EAAE,oBAAoB,CAAC;CAC5B;AAED,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,eAAe,CAAC;CACvB;AAED,MAAM,WAAW,SAAS;IACxB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,KAAK,EAAE,oBAAoB,CAAC;IAE5B;;OAEG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB;;OAEG;IACH,KAAK,EAAE,oBAAoB,CAAC;CAC7B;AAED,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,KAAK,CAAC,EAAE,oBAAoB,CAAC;CAC9B;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,KAAK,EAAE,oBAAoB,CAAC;IAC5B;;OAEG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC;CAC/B;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,KAAK,EAAE,oBAAoB,CAAC;CAC7B;AAED,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,mBAAmB,CAAC;IAC/B,IAAI,EAAE,sBAAsB,CAAC;CAC9B;AAED,MAAM,WAAW,mBAAmB;IAClC,SAAS,EAAE,uBAAuB,CAAC;IACnC,OAAO,EAAE,wBAAwB,CAAC;IAClC,UAAU,EAAE,sBAAsB,CAAC;CACpC;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,KAAK,EAAE,oBAAoB,CAAC;CAC7B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FWNativeErrorAction.d.ts","sourceRoot":"","sources":["../../../../../src/models/FWNativeErrorAction.ts"],"names":[],"mappings":"AAAA,oBAAY,mBAAmB;IAC7B,gBAAgB,qBAAqB;IACrC,eAAe,oBAAoB;CACpC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { VideoFeedSource } from '../models/VideoFeedSource';
|
|
2
|
+
export default interface FeedItemDetails {
|
|
3
|
+
/**
|
|
4
|
+
* The index of the thumbnail tapped in the feed.
|
|
5
|
+
*/
|
|
6
|
+
index: number;
|
|
7
|
+
/**
|
|
8
|
+
* The unique id of the thumbnail.
|
|
9
|
+
* If the source is playlistGroup this value will represent the playlist's id; otherwise this value is the id of the selected video.
|
|
10
|
+
*/
|
|
11
|
+
id: string;
|
|
12
|
+
/**
|
|
13
|
+
* The total duration of the video.
|
|
14
|
+
* If the source is playlistGroup this value will always be 0.
|
|
15
|
+
* Otherwise this value is the duration of the selected video.
|
|
16
|
+
*/
|
|
17
|
+
duration: number;
|
|
18
|
+
/**
|
|
19
|
+
* The title of the feed item.
|
|
20
|
+
* Currently, the property doesn't have value on the Android side when the source is playlistGroup.
|
|
21
|
+
* But the property has value for other feed sources.
|
|
22
|
+
*/
|
|
23
|
+
title?: string | null;
|
|
24
|
+
/**
|
|
25
|
+
* The source of the feed.
|
|
26
|
+
*/
|
|
27
|
+
source: VideoFeedSource;
|
|
28
|
+
/**
|
|
29
|
+
* The channel id of the feed.
|
|
30
|
+
* The property has value when the source is channel or playlist or dynamicContent.
|
|
31
|
+
*/
|
|
32
|
+
channel?: string | null;
|
|
33
|
+
/**
|
|
34
|
+
* Playlist id of the feed. The property has value when the source is playlist.
|
|
35
|
+
*/
|
|
36
|
+
playlist?: string | null;
|
|
37
|
+
/**
|
|
38
|
+
* Playlist group id of the feed. The property has value when the source is playlistGroup.
|
|
39
|
+
*/
|
|
40
|
+
playlistGroup?: string | null;
|
|
41
|
+
/**
|
|
42
|
+
* The dynamic content parameters of the feed. The property has value when the source is dynamicContent.
|
|
43
|
+
*/
|
|
44
|
+
dynamicContentParameters?: {
|
|
45
|
+
[key: string]: string[];
|
|
46
|
+
} | null;
|
|
47
|
+
/**
|
|
48
|
+
* Hashtag filter expression is an s-expression used to provide feeds filtered by hashtags with specified criteria.
|
|
49
|
+
* Queries are specified with boolean predicates on what hashtags are there on the video.
|
|
50
|
+
* For instance, (and sport food) (or sport food) (and sport (or food comedy)) sport are all valid expressions.
|
|
51
|
+
* Non-UTF-8 characters are not allowed. If using boolean predicates, the expression needs to be wrapped with parenthesis.
|
|
52
|
+
*/
|
|
53
|
+
hashtagFilterExpression?: string | null;
|
|
54
|
+
/**
|
|
55
|
+
* The feed id for the item.
|
|
56
|
+
*/
|
|
57
|
+
feedId?: string | null;
|
|
58
|
+
}
|
|
59
|
+
//# sourceMappingURL=FeedItemDetails.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FeedItemDetails.d.ts","sourceRoot":"","sources":["../../../../../src/models/FeedItemDetails.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAEjE,MAAM,CAAC,OAAO,WAAW,eAAe;IACtC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB;;OAEG;IACH,MAAM,EAAE,eAAe,CAAC;IACxB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B;;OAEG;IACH,wBAAwB,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;KAAE,GAAG,IAAI,CAAC;IAC9D;;;;;OAKG;IACH,uBAAuB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAExC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export type GradientDrawableOrientation = 'TOP_BOTTOM' | 'TR_BL' | 'RIGHT_LEFT' | 'BR_TL' | 'BOTTOM_TOP' | 'BL_TR' | 'LEFT_RIGHT' | 'TL_BR';
|
|
2
|
+
export default interface GradientDrawable {
|
|
3
|
+
orientation?: GradientDrawableOrientation;
|
|
4
|
+
colors?: string[];
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=GradientDrawable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GradientDrawable.d.ts","sourceRoot":"","sources":["../../../../../src/models/GradientDrawable.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,2BAA2B,GACnC,YAAY,GACZ,OAAO,GACP,YAAY,GACZ,OAAO,GACP,YAAY,GACZ,OAAO,GACP,YAAY,GACZ,OAAO,CAAC;AAEZ,MAAM,CAAC,OAAO,WAAW,gBAAgB;IACvC,WAAW,CAAC,EAAE,2BAA2B,CAAC;IAC1C,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CACnB"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export type IOSSystemFontStyle = 'normal' | 'italic';
|
|
2
|
+
export type IOSSystemFontWeight = 'ultraLight' | 'thin' | 'light' | 'regular' | 'medium' | 'semibold' | 'bold' | 'heavy' | 'black';
|
|
3
|
+
export default interface IOSFontInfo {
|
|
4
|
+
/**
|
|
5
|
+
* The iOS font name, such as "Helvetica", "Helvetica-Bold".
|
|
6
|
+
* Only supported on iOS.
|
|
7
|
+
*/
|
|
8
|
+
fontName?: string;
|
|
9
|
+
/**
|
|
10
|
+
* The iOS system font style.
|
|
11
|
+
* The property is ignored when fontName is non-empty.
|
|
12
|
+
* Only supported on iOS.
|
|
13
|
+
*/
|
|
14
|
+
systemFontStyle?: IOSSystemFontStyle;
|
|
15
|
+
/**
|
|
16
|
+
* The iOS system font weight.
|
|
17
|
+
* The property is ignored when fontName is non-empty or systemFontStyle is italic.
|
|
18
|
+
* Only supported on iOS.
|
|
19
|
+
*/
|
|
20
|
+
systemFontWeight?: IOSSystemFontWeight;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=IOSFontInfo.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IOSFontInfo.d.ts","sourceRoot":"","sources":["../../../../../src/models/IOSFontInfo.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kBAAkB,GAAG,QAAQ,GAAG,QAAQ,CAAC;AACrD,MAAM,MAAM,mBAAmB,GAC3B,YAAY,GACZ,MAAM,GACN,OAAO,GACP,SAAS,GACT,QAAQ,GACR,UAAU,GACV,MAAM,GACN,OAAO,GACP,OAAO,CAAC;AAEZ,MAAM,CAAC,OAAO,WAAW,WAAW;IAClC;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,eAAe,CAAC,EAAE,kBAAkB,CAAC;IACrC;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,mBAAmB,CAAC;CACxC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LiveStreamChatEventName.d.ts","sourceRoot":"","sources":["../../../../../src/models/LiveStreamChatEventName.ts"],"names":[],"mappings":"AAAA,aAAK,uBAAuB;IAC1B;;OAEG;IACH,YAAY,iCAAiC;CAC9C;AAED,eAAe,uBAAuB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LiveStreamEventDetails.d.ts","sourceRoot":"","sources":["../../../../../src/models/LiveStreamEventDetails.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,WAAW,sBAAsB;IAE7C,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare enum LiveStreamEventName {
|
|
2
|
+
/**
|
|
3
|
+
* Called when a user joins an active live stream.
|
|
4
|
+
*/
|
|
5
|
+
userDidjoin = "fw:livestream:user-join",
|
|
6
|
+
/**
|
|
7
|
+
* Called when the user leaves an active live stream.
|
|
8
|
+
*/
|
|
9
|
+
userDidLeave = "fw:livestream:user-leave",
|
|
10
|
+
/**
|
|
11
|
+
* Called when a user sends a like to an active live stream.
|
|
12
|
+
*/
|
|
13
|
+
userSendLike = "fw:livestream:user-send-like"
|
|
14
|
+
}
|
|
15
|
+
export default LiveStreamEventName;
|
|
16
|
+
//# sourceMappingURL=LiveStreamEventName.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LiveStreamEventName.d.ts","sourceRoot":"","sources":["../../../../../src/models/LiveStreamEventName.ts"],"names":[],"mappings":"AAAA,aAAK,mBAAmB;IACtB;;OAEG;IACH,WAAW,4BAA4B;IACvC;;OAEG;IACH,YAAY,6BAA6B;IACzC;;OAEG;IACH,YAAY,iCAAiC;CAC9C;AAED,eAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export default interface LiveStreamMessageDetails {
|
|
2
|
+
/**
|
|
3
|
+
* A unique identifier of the message.
|
|
4
|
+
*/
|
|
5
|
+
messageId: string;
|
|
6
|
+
/**
|
|
7
|
+
* The username of the user.
|
|
8
|
+
*/
|
|
9
|
+
username?: string | null;
|
|
10
|
+
/**
|
|
11
|
+
* The text of the message.
|
|
12
|
+
*/
|
|
13
|
+
text?: string | null;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=LiveStreamMessageDetails.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LiveStreamMessageDetails.d.ts","sourceRoot":"","sources":["../../../../../src/models/LiveStreamMessageDetails.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,WAAW,wBAAwB;IAC/C;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LivestreamPlayerDesignVersion.d.ts","sourceRoot":"","sources":["../../../../../src/models/LivestreamPlayerDesignVersion.ts"],"names":[],"mappings":"AAAA,aAAK,6BAA6B;IAChC,EAAE,OAAO;IACT,EAAE,OAAO;CACV;AAED,eAAe,6BAA6B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MarkInitCalledOptions.d.ts","sourceRoot":"","sources":["../../../../../src/models/MarkInitCalledOptions.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,WAAW,qBAAqB;IAC5C;;OAEG;IACH,sBAAsB,EAAE,OAAO,CAAC;CACjC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type VideoPlayerConfiguration from './VideoPlayerConfiguration';
|
|
2
|
+
export default interface OpenVideoPlayerConfiguration extends VideoPlayerConfiguration {
|
|
3
|
+
/**
|
|
4
|
+
* Specifies if Picture in Picture is enabled.
|
|
5
|
+
*/
|
|
6
|
+
enablePictureInPicture?: boolean;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=OpenVideoPlayerConfiguration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OpenVideoPlayerConfiguration.d.ts","sourceRoot":"","sources":["../../../../../src/models/OpenVideoPlayerConfiguration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,wBAAwB,MAAM,4BAA4B,CAAC;AAEvE,MAAM,CAAC,OAAO,WAAW,4BACvB,SAAQ,wBAAwB;IAChC;;OAEG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;CAClC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type ProductUnit from './ProductUnit';
|
|
2
|
+
export default interface Product {
|
|
3
|
+
/**
|
|
4
|
+
* A unique identifier of the product.
|
|
5
|
+
*/
|
|
6
|
+
productId: string;
|
|
7
|
+
/**
|
|
8
|
+
* The name of the product.
|
|
9
|
+
*/
|
|
10
|
+
name?: string | null;
|
|
11
|
+
/**
|
|
12
|
+
* The description of the product.
|
|
13
|
+
*/
|
|
14
|
+
description?: string | null;
|
|
15
|
+
/**
|
|
16
|
+
* The availability of the product.
|
|
17
|
+
*/
|
|
18
|
+
isAvailable?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* The unit array of the product
|
|
21
|
+
*/
|
|
22
|
+
units?: ProductUnit[] | null;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=Product.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Product.d.ts","sourceRoot":"","sources":["../../../../../src/models/Product.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,WAAW,MAAM,eAAe,CAAC;AAE7C,MAAM,CAAC,OAAO,WAAW,OAAO;IAC9B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,KAAK,CAAC,EAAE,WAAW,EAAE,GAAG,IAAI,CAAC;CAC9B"}
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
import type IOSFontInfo from './IOSFontInfo';
|
|
2
|
+
export type ShoppingCTAButtonText = 'addToCart' | 'shopNow';
|
|
3
|
+
export interface ShoppingCTAButtonConfiguration {
|
|
4
|
+
/**
|
|
5
|
+
* The text of shopping CTA button.
|
|
6
|
+
*/
|
|
7
|
+
text?: ShoppingCTAButtonText;
|
|
8
|
+
/**
|
|
9
|
+
* The background color of CTA button.
|
|
10
|
+
*/
|
|
11
|
+
backgroundColor?: string;
|
|
12
|
+
/**
|
|
13
|
+
* The text color of CTA button.
|
|
14
|
+
*/
|
|
15
|
+
textColor?: string;
|
|
16
|
+
/**
|
|
17
|
+
* The font size of CTA button.
|
|
18
|
+
*/
|
|
19
|
+
fontSize?: number;
|
|
20
|
+
/**
|
|
21
|
+
* The iOS font info of "Add to cart" button.
|
|
22
|
+
* The property is ignored when fontSize is not set.
|
|
23
|
+
*/
|
|
24
|
+
iOSFontInfo?: IOSFontInfo;
|
|
25
|
+
}
|
|
26
|
+
export interface LinkButtonConfiguration {
|
|
27
|
+
isHidden?: boolean;
|
|
28
|
+
}
|
|
29
|
+
export type ProductCardCTAButtonText = 'shopNow' | 'buyNow';
|
|
30
|
+
export type ProductCardTheme = 'dark' | 'light';
|
|
31
|
+
export interface ProductCardPriceConfiguration {
|
|
32
|
+
/**
|
|
33
|
+
* Hide the price label or not.
|
|
34
|
+
* @deprecated This property has no effect on iOS.
|
|
35
|
+
*/
|
|
36
|
+
isHidden?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* The axis of price label.
|
|
39
|
+
* Default to 'horizontal'.
|
|
40
|
+
* Only supported on iOS.
|
|
41
|
+
*/
|
|
42
|
+
axis?: ProductCardPriceLabelAxis;
|
|
43
|
+
/**
|
|
44
|
+
* The label configuration of price.
|
|
45
|
+
* Only supported on iOS.
|
|
46
|
+
*/
|
|
47
|
+
priceLabel?: ProductCardLabelConfiguration;
|
|
48
|
+
/**
|
|
49
|
+
* The label configuration of original price.
|
|
50
|
+
* Only supported on iOS.
|
|
51
|
+
*/
|
|
52
|
+
originalPriceLabel?: ProductCardLabelConfiguration;
|
|
53
|
+
/**
|
|
54
|
+
* The default display order is [priceLabel, originalPriceLabel]. When the value is `true`, the order is reversed.
|
|
55
|
+
* Only supported on iOS.
|
|
56
|
+
*/
|
|
57
|
+
isPriceFirst?: boolean;
|
|
58
|
+
}
|
|
59
|
+
export type ProductCardPriceLabelAxis = 'horizontal' | 'vertical';
|
|
60
|
+
export interface ProductCardLabelConfiguration {
|
|
61
|
+
/**
|
|
62
|
+
* The text color of label.
|
|
63
|
+
* Only supported on iOS.
|
|
64
|
+
*/
|
|
65
|
+
textColor?: string;
|
|
66
|
+
/**
|
|
67
|
+
* The font size of label.
|
|
68
|
+
* Only supported on iOS.
|
|
69
|
+
*/
|
|
70
|
+
fontSize?: number;
|
|
71
|
+
/**
|
|
72
|
+
* Number of lines to show.
|
|
73
|
+
* Only supported on iOS.
|
|
74
|
+
* Default to 1.
|
|
75
|
+
*/
|
|
76
|
+
numberOfLines?: number;
|
|
77
|
+
/**
|
|
78
|
+
* The iOS font info.
|
|
79
|
+
* The property is ignored when fontSize is not set.
|
|
80
|
+
* Only supported on iOS.
|
|
81
|
+
*/
|
|
82
|
+
iOSFontInfo?: IOSFontInfo;
|
|
83
|
+
}
|
|
84
|
+
export interface ProductCardCTAButtonStyle {
|
|
85
|
+
/**
|
|
86
|
+
* The text color of CTA button.
|
|
87
|
+
* Only supported on iOS.
|
|
88
|
+
*/
|
|
89
|
+
textColor?: string;
|
|
90
|
+
/**
|
|
91
|
+
* The font size of CTA button.
|
|
92
|
+
* Only supported on iOS.
|
|
93
|
+
*/
|
|
94
|
+
fontSize?: number;
|
|
95
|
+
/**
|
|
96
|
+
* The iOS font info.
|
|
97
|
+
* The property is ignored when fontSize is not set.
|
|
98
|
+
* Only supported on iOS.
|
|
99
|
+
*/
|
|
100
|
+
iOSFontInfo?: IOSFontInfo;
|
|
101
|
+
}
|
|
102
|
+
export interface ProductCardIconConfiguration {
|
|
103
|
+
/**
|
|
104
|
+
* The corner radius of icon.
|
|
105
|
+
* Only supported on iOS.
|
|
106
|
+
*/
|
|
107
|
+
cornerRadius?: number;
|
|
108
|
+
}
|
|
109
|
+
export interface ProductCardConfiguration {
|
|
110
|
+
/**
|
|
111
|
+
* The theme of product card.
|
|
112
|
+
*/
|
|
113
|
+
theme?: ProductCardTheme;
|
|
114
|
+
/**
|
|
115
|
+
* The corner radius of product card.
|
|
116
|
+
*/
|
|
117
|
+
cornerRadius?: number;
|
|
118
|
+
/**
|
|
119
|
+
* CTA button is hidden or not.
|
|
120
|
+
*/
|
|
121
|
+
isCtaButtonHidden?: boolean;
|
|
122
|
+
/**
|
|
123
|
+
* The text of shopping CTA button.
|
|
124
|
+
*/
|
|
125
|
+
ctaButtonText?: ProductCardCTAButtonText;
|
|
126
|
+
/**
|
|
127
|
+
* The cta button style of product card.
|
|
128
|
+
* Only supported on iOS.
|
|
129
|
+
*/
|
|
130
|
+
ctaButtonStyle?: ProductCardCTAButtonStyle;
|
|
131
|
+
/**
|
|
132
|
+
* The price configuration of product card.
|
|
133
|
+
*/
|
|
134
|
+
priceConfiguration?: ProductCardPriceConfiguration;
|
|
135
|
+
/**
|
|
136
|
+
* The width of product card.
|
|
137
|
+
* Only supported on iOS.
|
|
138
|
+
*/
|
|
139
|
+
width?: number;
|
|
140
|
+
/**
|
|
141
|
+
* The height of product card.
|
|
142
|
+
* Only supported on iOS.
|
|
143
|
+
*/
|
|
144
|
+
height?: number;
|
|
145
|
+
/**
|
|
146
|
+
* The background color of product card.
|
|
147
|
+
* Only supported on iOS.
|
|
148
|
+
*/
|
|
149
|
+
backgroundColor?: string;
|
|
150
|
+
/**
|
|
151
|
+
* The icon configuration of product card.
|
|
152
|
+
* Only supported on iOS.
|
|
153
|
+
*/
|
|
154
|
+
iconConfiguration?: ProductCardIconConfiguration;
|
|
155
|
+
/**
|
|
156
|
+
* The label configuration of product card.
|
|
157
|
+
* Only supported on iOS.
|
|
158
|
+
*/
|
|
159
|
+
nameLabel?: ProductCardLabelConfiguration;
|
|
160
|
+
}
|
|
161
|
+
export default interface ProductInfoViewConfiguration {
|
|
162
|
+
/**
|
|
163
|
+
* Configuration of shopping CTA button.
|
|
164
|
+
*/
|
|
165
|
+
ctaButton?: ShoppingCTAButtonConfiguration;
|
|
166
|
+
/**
|
|
167
|
+
* Configuration of link button next to shopping CTA button.
|
|
168
|
+
*/
|
|
169
|
+
linkButton?: LinkButtonConfiguration;
|
|
170
|
+
/**
|
|
171
|
+
* Configuration of product card.
|
|
172
|
+
*/
|
|
173
|
+
productCard?: ProductCardConfiguration;
|
|
174
|
+
}
|
|
175
|
+
//# sourceMappingURL=ProductInfoViewConfiguration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProductInfoViewConfiguration.d.ts","sourceRoot":"","sources":["../../../../../src/models/ProductInfoViewConfiguration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,WAAW,MAAM,eAAe,CAAC;AAE7C,MAAM,MAAM,qBAAqB,GAAG,WAAW,GAAG,SAAS,CAAC;AAE5D,MAAM,WAAW,8BAA8B;IAC7C;;OAEG;IACH,IAAI,CAAC,EAAE,qBAAqB,CAAC;IAC7B;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B;AAED,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,MAAM,wBAAwB,GAAG,SAAS,GAAG,QAAQ,CAAC;AAE5D,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,OAAO,CAAC;AAEhD,MAAM,WAAW,6BAA6B;IAC5C;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,IAAI,CAAC,EAAE,yBAAyB,CAAC;IACjC;;;OAGG;IACH,UAAU,CAAC,EAAE,6BAA6B,CAAC;IAC3C;;;OAGG;IACH,kBAAkB,CAAC,EAAE,6BAA6B,CAAC;IACnD;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,MAAM,MAAM,yBAAyB,GAAG,YAAY,GAAG,UAAU,CAAC;AAElE,MAAM,WAAW,6BAA6B;IAC5C;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B;AAED,MAAM,WAAW,yBAAyB;IACxC;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B;AAED,MAAM,WAAW,4BAA4B;IAC3C;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,KAAK,CAAC,EAAE,gBAAgB,CAAC;IACzB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;OAEG;IACH,aAAa,CAAC,EAAE,wBAAwB,CAAC;IACzC;;;OAGG;IACH,cAAc,CAAC,EAAE,yBAAyB,CAAC;IAC3C;;OAEG;IACH,kBAAkB,CAAC,EAAE,6BAA6B,CAAC;IACnD;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,4BAA4B,CAAC;IACjD;;;OAGG;IACH,SAAS,CAAC,EAAE,6BAA6B,CAAC;CAC3C;AAED,MAAM,CAAC,OAAO,WAAW,4BAA4B;IACnD;;OAEG;IACH,SAAS,CAAC,EAAE,8BAA8B,CAAC;IAC3C;;OAEG;IACH,UAAU,CAAC,EAAE,uBAAuB,CAAC;IACrC;;OAEG;IACH,WAAW,CAAC,EAAE,wBAAwB,CAAC;CACxC"}
|