react-native-firework-sdk 1.2.0-beta.7 → 1.2.0
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 +1 -1
- package/android/src/main/AndroidManifest.xml +0 -8
- package/android/src/main/java/com/fireworksdk/bridge/components/videofeed/FWVideoFeed.kt +2 -2
- package/android/src/main/java/com/fireworksdk/bridge/models/FWVideoFeedConfigModel.kt +2 -1
- package/android/src/main/java/com/fireworksdk/bridge/reactnative/models/FWNavigatorInterface.kt +2 -1
- package/android/src/main/java/com/fireworksdk/bridge/reactnative/models/FWVideoShoppingInterface.kt +2 -2
- package/android/src/main/java/com/fireworksdk/bridge/reactnative/models/FireworkSDKInterface.kt +2 -1
- package/android/src/main/java/com/fireworksdk/bridge/reactnative/module/FWNavigatorModule.kt +7 -22
- package/android/src/main/java/com/fireworksdk/bridge/reactnative/module/FWVideoShoppingModule.kt +4 -19
- package/android/src/main/java/com/fireworksdk/bridge/reactnative/module/FireworkSDKModule.kt +28 -9
- package/android/src/main/java/com/fireworksdk/bridge/reactnative/pages/FWContainerActivity.kt +22 -10
- package/android/src/main/java/com/fireworksdk/bridge/reactnative/utils/FWDataUtils.kt +119 -0
- package/android/src/main/java/com/fireworksdk/bridge/reactnative/utils/FWEventUtils.kt +44 -6
- package/android/src/main/java/com/fireworksdk/bridge/utils/FWBundleUtils.kt +86 -0
- package/android/src/main/java/com/fireworksdk/bridge/utils/FWVideoPlayerUtils.kt +12 -3
- package/ios/FireworkSdk.xcodeproj/project.pbxproj +0 -4
- package/ios/Modules/FWNavigatorModule/FWNavigatorContainerViewController.swift +3 -11
- package/ios/Modules/FWNavigatorModule/FWNavigatorModule.m +2 -2
- package/ios/Modules/FWNavigatorModule/FWNavigatorModule.swift +32 -10
- package/ios/Modules/FWNavigatorModule/FWNavigatorProtocol.swift +2 -2
- package/ios/Modules/FireworkSDKModule/FireworkSDKModule+CTA.swift +16 -6
- package/ios/Modules/FireworkSDKModule/FireworkSDKModule.m +2 -1
- package/ios/Modules/FireworkSDKModule/FireworkSDKModule.swift +12 -4
- package/ios/Modules/Shopping/CartViewController.swift +6 -1
- package/ios/Modules/Shopping/ShoppingModule.m +1 -2
- package/ios/Modules/Shopping/ShoppingModule.swift +10 -12
- package/lib/commonjs/FWNavigator.js +7 -13
- package/lib/commonjs/FWNavigator.js.map +1 -1
- package/lib/commonjs/FireworkSDK.js +24 -12
- package/lib/commonjs/FireworkSDK.js.map +1 -1
- package/lib/commonjs/VideoShopping.js +3 -16
- package/lib/commonjs/VideoShopping.js.map +1 -1
- package/lib/commonjs/components/VideoFeed.js +3 -1
- package/lib/commonjs/components/VideoFeed.js.map +1 -1
- package/lib/commonjs/index.js +0 -14
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/models/NewNativeContainerProps.js +2 -0
- package/lib/commonjs/models/NewNativeContainerProps.js.map +1 -0
- package/lib/commonjs/modules/FWNavigatorModule.js.map +1 -1
- package/lib/commonjs/modules/FireworkSDKModule.js.map +1 -1
- package/lib/commonjs/modules/ShoppingModule.js.map +1 -1
- package/lib/commonjs/utils/FWLoggerUtil.js +6 -2
- package/lib/commonjs/utils/FWLoggerUtil.js.map +1 -1
- package/lib/module/FWNavigator.js +8 -14
- package/lib/module/FWNavigator.js.map +1 -1
- package/lib/module/FireworkSDK.js +23 -11
- package/lib/module/FireworkSDK.js.map +1 -1
- package/lib/module/VideoShopping.js +3 -16
- package/lib/module/VideoShopping.js.map +1 -1
- package/lib/module/components/VideoFeed.js +3 -1
- package/lib/module/components/VideoFeed.js.map +1 -1
- package/lib/module/index.js +0 -7
- package/lib/module/index.js.map +1 -1
- package/lib/module/models/NewNativeContainerProps.js +2 -0
- package/lib/module/models/NewNativeContainerProps.js.map +1 -0
- package/lib/module/modules/FWNavigatorModule.js.map +1 -1
- package/lib/module/modules/FireworkSDKModule.js.map +1 -1
- package/lib/module/modules/ShoppingModule.js.map +1 -1
- package/lib/module/utils/FWLoggerUtil.js +6 -2
- package/lib/module/utils/FWLoggerUtil.js.map +1 -1
- package/lib/typescript/FWNavigator.d.ts +8 -7
- package/lib/typescript/FireworkSDK.d.ts +11 -6
- package/lib/typescript/VideoShopping.d.ts +2 -9
- package/lib/typescript/index.d.ts +2 -1
- package/lib/typescript/models/NewNativeContainerProps.d.ts +6 -0
- package/lib/typescript/models/VideoFeedConfiguration.d.ts +4 -0
- package/lib/typescript/modules/FWNavigatorModule.d.ts +3 -1
- package/lib/typescript/modules/FireworkSDKModule.d.ts +2 -1
- package/lib/typescript/modules/ShoppingModule.d.ts +2 -2
- package/lib/typescript/utils/FWLoggerUtil.d.ts +1 -0
- package/package.json +1 -1
- package/src/FWNavigator.tsx +12 -11
- package/src/FireworkSDK.ts +24 -20
- package/src/VideoShopping.ts +5 -17
- package/src/components/VideoFeed.tsx +2 -0
- package/src/index.tsx +2 -15
- package/src/models/NewNativeContainerProps.ts +4 -0
- package/src/models/VideoFeedConfiguration.ts +4 -0
- package/src/modules/FWNavigatorModule.ts +1 -1
- package/src/modules/FireworkSDKModule.ts +2 -1
- package/src/modules/ShoppingModule.ts +5 -2
- package/src/utils/FWLoggerUtil.ts +3 -2
- package/android/src/main/java/com/fireworksdk/bridge/reactnative/pages/FWCustomCTALinkContentContainerActivity.kt +0 -55
- package/android/src/main/java/com/fireworksdk/bridge/reactnative/pages/FWVideoShoppingCartActivity.kt +0 -43
- package/ios/Modules/FireworkSDKModule/FWCustomCTALinkContentContainerViewController.swift +0 -31
- package/lib/commonjs/components/CartContainer.js +0 -35
- package/lib/commonjs/components/CartContainer.js.map +0 -1
- package/lib/commonjs/components/CustomCTALinkContentContainer.js +0 -43
- package/lib/commonjs/components/CustomCTALinkContentContainer.js.map +0 -1
- package/lib/commonjs/components/NavigationContainer.js +0 -40
- package/lib/commonjs/components/NavigationContainer.js.map +0 -1
- package/lib/module/components/CartContainer.js +0 -18
- package/lib/module/components/CartContainer.js.map +0 -1
- package/lib/module/components/CustomCTALinkContentContainer.js +0 -26
- package/lib/module/components/CustomCTALinkContentContainer.js.map +0 -1
- package/lib/module/components/NavigationContainer.js +0 -23
- package/lib/module/components/NavigationContainer.js.map +0 -1
- package/lib/typescript/components/CartContainer.d.ts +0 -3
- package/lib/typescript/components/CustomCTALinkContentContainer.d.ts +0 -6
- package/lib/typescript/components/NavigationContainer.d.ts +0 -6
- package/src/components/CartContainer.tsx +0 -20
- package/src/components/CustomCTALinkContentContainer.tsx +0 -28
- package/src/components/NavigationContainer.tsx +0 -24
|
@@ -13,7 +13,7 @@ const FWNavigatorModule = NativeModules.FWNavigatorModule
|
|
|
13
13
|
}
|
|
14
14
|
);
|
|
15
15
|
interface IFWNavigatorModule extends NativeModule {
|
|
16
|
-
pushNativeContainer(
|
|
16
|
+
pushNativeContainer(props: { [key: string]: any }): Promise<boolean>;
|
|
17
17
|
popNativeContainer(): Promise<boolean>;
|
|
18
18
|
}
|
|
19
19
|
|
|
@@ -20,10 +20,11 @@ interface IFireworkSDKModule extends NativeModule {
|
|
|
20
20
|
init(userId?: string): void;
|
|
21
21
|
openVideoPlayer(url: string, config?: VideoPlayerConfiguration): void;
|
|
22
22
|
setCustomCTAClickEnabled(enabled: boolean): void;
|
|
23
|
-
|
|
23
|
+
setCustomCTALinkContentPageRouteName(name?: string): Promise<any>;
|
|
24
24
|
setShareBaseURL(url?: string): Promise<any>;
|
|
25
25
|
setVideoPlaybackEventEnabled(enabled: boolean): void;
|
|
26
26
|
setAdBadgeConfiguration(config?: AdBadgeConfiguration): Promise<any>;
|
|
27
|
+
setAppComponentName(name?: string): Promise<any>;
|
|
27
28
|
}
|
|
28
29
|
|
|
29
30
|
const FireworkSDKModuleEventEmitter = new NativeEventEmitter(FireworkSDKModule);
|
|
@@ -2,6 +2,7 @@ import { NativeEventEmitter, NativeModule, NativeModules } from 'react-native';
|
|
|
2
2
|
import type Product from '../models/Product';
|
|
3
3
|
import type ProductInfoViewConfiguration from '../models/ProductInfoViewConfiguration';
|
|
4
4
|
import { LINKING_ERROR } from '../constants/FWErrorMessage';
|
|
5
|
+
import type { NewNativeContainerProps } from 'src/models/NewNativeContainerProps';
|
|
5
6
|
|
|
6
7
|
const ShoppingModule = NativeModules.ShoppingModule
|
|
7
8
|
? NativeModules.ShoppingModule
|
|
@@ -26,8 +27,10 @@ interface IShoppingModule extends NativeModule {
|
|
|
26
27
|
tips: string,
|
|
27
28
|
callbackId: number | string
|
|
28
29
|
): void;
|
|
29
|
-
jumpToCartPage(
|
|
30
|
-
|
|
30
|
+
jumpToCartPage(
|
|
31
|
+
callbackId: number | string,
|
|
32
|
+
props: NewNativeContainerProps
|
|
33
|
+
): void;
|
|
31
34
|
setCartIconVisible(visible: boolean): void;
|
|
32
35
|
setCartItemCount(count: number): void;
|
|
33
36
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export default class FWLoggerUtil {
|
|
2
|
+
static enabled: boolean = false;
|
|
2
3
|
static log(message: string) {
|
|
3
|
-
if (process.env.NODE_ENV === 'development') {
|
|
4
|
+
if (FWLoggerUtil.enabled && process.env.NODE_ENV === 'development') {
|
|
4
5
|
const currentDate = new Date();
|
|
5
6
|
|
|
6
7
|
console.log(
|
|
@@ -11,7 +12,7 @@ export default class FWLoggerUtil {
|
|
|
11
12
|
}
|
|
12
13
|
|
|
13
14
|
static logNativeMessage(nativeMessage: string) {
|
|
14
|
-
if (process.env.NODE_ENV === 'development') {
|
|
15
|
+
if (FWLoggerUtil.enabled && process.env.NODE_ENV === 'development') {
|
|
15
16
|
console.log('[react-native-firework-sdk] [native]', nativeMessage);
|
|
16
17
|
}
|
|
17
18
|
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
package com.fireworksdk.bridge.reactnative.pages
|
|
2
|
-
|
|
3
|
-
import android.app.Activity
|
|
4
|
-
import android.content.Intent
|
|
5
|
-
import android.os.Bundle
|
|
6
|
-
import androidx.appcompat.app.AppCompatActivity
|
|
7
|
-
import androidx.fragment.app.Fragment
|
|
8
|
-
import com.facebook.react.ReactFragment
|
|
9
|
-
import com.facebook.react.modules.core.DefaultHardwareBackBtnHandler
|
|
10
|
-
import com.fireworksdk.bridge.R
|
|
11
|
-
|
|
12
|
-
class FWCustomCTALinkContentContainerActivity : AppCompatActivity(), DefaultHardwareBackBtnHandler {
|
|
13
|
-
|
|
14
|
-
override fun onCreate(savedInstanceState: Bundle?) {
|
|
15
|
-
super.onCreate(savedInstanceState)
|
|
16
|
-
setContentView(R.layout.fw_bridge_fragment_container)
|
|
17
|
-
|
|
18
|
-
val url = intent.getStringExtra(KEY_URL)
|
|
19
|
-
|
|
20
|
-
val reactNativeFragment: Fragment = ReactFragment.Builder()
|
|
21
|
-
.setComponentName(COMPONENT_NAME)
|
|
22
|
-
.setLaunchOptions(getLaunchOptions(url))
|
|
23
|
-
.build()
|
|
24
|
-
|
|
25
|
-
supportFragmentManager
|
|
26
|
-
.beginTransaction()
|
|
27
|
-
.add(R.id.fw_bridge_container, reactNativeFragment)
|
|
28
|
-
.commit()
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
private fun getLaunchOptions(url: String?) = Bundle().apply {
|
|
32
|
-
if (!url.isNullOrEmpty()) {
|
|
33
|
-
putString(KEY_URL, url)
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
companion object {
|
|
38
|
-
|
|
39
|
-
private const val KEY_URL = "url"
|
|
40
|
-
private const val COMPONENT_NAME = "FWCustomCTALinkContentContainer"
|
|
41
|
-
|
|
42
|
-
fun createIntent(activity: Activity, url: String?): Intent {
|
|
43
|
-
val intent = Intent(activity, FWCustomCTALinkContentContainerActivity::class.java)
|
|
44
|
-
intent.putExtra(KEY_URL, url)
|
|
45
|
-
intent.flags = Intent.FLAG_ACTIVITY_NO_ANIMATION
|
|
46
|
-
activity.overridePendingTransition(0, 0)
|
|
47
|
-
return intent
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
override fun invokeDefaultOnBackPressed() {
|
|
52
|
-
super.onBackPressed();
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
package com.fireworksdk.bridge.reactnative.pages
|
|
2
|
-
|
|
3
|
-
import android.app.Activity
|
|
4
|
-
import android.content.Intent
|
|
5
|
-
import android.os.Bundle
|
|
6
|
-
import androidx.appcompat.app.AppCompatActivity
|
|
7
|
-
import androidx.fragment.app.Fragment
|
|
8
|
-
import com.fireworksdk.bridge.R
|
|
9
|
-
import com.facebook.react.ReactFragment
|
|
10
|
-
import com.facebook.react.modules.core.DefaultHardwareBackBtnHandler
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
class FWVideoShoppingCartActivity : AppCompatActivity(), DefaultHardwareBackBtnHandler {
|
|
14
|
-
|
|
15
|
-
override fun onCreate(savedInstanceState: Bundle?) {
|
|
16
|
-
super.onCreate(savedInstanceState)
|
|
17
|
-
setContentView(R.layout.fw_bridge_fragment_shoppingcart)
|
|
18
|
-
|
|
19
|
-
val reactNativeFragment: Fragment = ReactFragment.Builder()
|
|
20
|
-
.setComponentName("FWShoppingCartPage")
|
|
21
|
-
.setLaunchOptions(null)
|
|
22
|
-
.build()
|
|
23
|
-
|
|
24
|
-
supportFragmentManager
|
|
25
|
-
.beginTransaction()
|
|
26
|
-
.add(R.id.fw_bridge_shopping_cart_container, reactNativeFragment)
|
|
27
|
-
.commit()
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
companion object {
|
|
31
|
-
|
|
32
|
-
fun createIntent(activity: Activity): Intent {
|
|
33
|
-
val intent = Intent(activity, FWVideoShoppingCartActivity::class.java)
|
|
34
|
-
intent.flags = Intent.FLAG_ACTIVITY_NO_ANIMATION
|
|
35
|
-
activity.overridePendingTransition(0, 0)
|
|
36
|
-
return intent
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
override fun invokeDefaultOnBackPressed() {
|
|
41
|
-
super.onBackPressed();
|
|
42
|
-
}
|
|
43
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// FWCustomCTALinkContentContainerViewController.swift
|
|
3
|
-
// FireworkSdk
|
|
4
|
-
//
|
|
5
|
-
// Created by linjie jiang on 2022/5/19.
|
|
6
|
-
// Copyright © 2022 Facebook. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
import UIKit
|
|
10
|
-
|
|
11
|
-
class FWCustomCTALinkContentContainerViewController: UIViewController {
|
|
12
|
-
var url: String?
|
|
13
|
-
|
|
14
|
-
override func viewDidLoad() {
|
|
15
|
-
super.viewDidLoad()
|
|
16
|
-
loadContent()
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
private func loadContent() {
|
|
20
|
-
let rctRootView = RCTRootView.init(bridge: RCTBridge.current(), moduleName: "FWCustomCTALinkContentContainer", initialProperties: ["url": url ?? ""])
|
|
21
|
-
view.addSubview(rctRootView)
|
|
22
|
-
rctRootView.translatesAutoresizingMaskIntoConstraints = false
|
|
23
|
-
|
|
24
|
-
NSLayoutConstraint.activate([
|
|
25
|
-
rctRootView.leftAnchor.constraint(equalTo: view.leftAnchor),
|
|
26
|
-
rctRootView.topAnchor.constraint(equalTo: view.topAnchor),
|
|
27
|
-
rctRootView.rightAnchor.constraint(equalTo: view.rightAnchor),
|
|
28
|
-
rctRootView.bottomAnchor.constraint(equalTo: view.bottomAnchor)
|
|
29
|
-
])
|
|
30
|
-
}
|
|
31
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
-
|
|
10
|
-
var _reactNative = require("react-native");
|
|
11
|
-
|
|
12
|
-
var _VideoShopping = _interopRequireDefault(require("../VideoShopping"));
|
|
13
|
-
|
|
14
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
-
|
|
16
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
17
|
-
|
|
18
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
19
|
-
|
|
20
|
-
const CartContainer = () => {
|
|
21
|
-
const [cartPage] = (0, _react.useState)(_VideoShopping.default.getInstance().currentCartPage);
|
|
22
|
-
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
23
|
-
style: styles.container
|
|
24
|
-
}, cartPage);
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
const styles = _reactNative.StyleSheet.create({
|
|
28
|
-
container: {
|
|
29
|
-
flex: 1
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
|
-
|
|
33
|
-
var _default = CartContainer;
|
|
34
|
-
exports.default = _default;
|
|
35
|
-
//# sourceMappingURL=CartContainer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["CartContainer.tsx"],"names":["CartContainer","cartPage","VideoShopping","getInstance","currentCartPage","styles","container","StyleSheet","create","flex"],"mappings":";;;;;;;AAAA;;AAEA;;AAEA;;;;;;;;AAEA,MAAMA,aAAa,GAAG,MAAM;AAC1B,QAAM,CAACC,QAAD,IAAa,qBACjBC,uBAAcC,WAAd,GAA4BC,eADX,CAAnB;AAGA,sBAAO,6BAAC,iBAAD;AAAM,IAAA,KAAK,EAAEC,MAAM,CAACC;AAApB,KAAgCL,QAAhC,CAAP;AACD,CALD;;AAOA,MAAMI,MAAM,GAAGE,wBAAWC,MAAX,CAAkB;AAC/BF,EAAAA,SAAS,EAAE;AACTG,IAAAA,IAAI,EAAE;AADG;AADoB,CAAlB,CAAf;;eAMeT,a","sourcesContent":["import React, { useState } from 'react';\n\nimport { StyleSheet, View } from 'react-native';\n\nimport VideoShopping from '../VideoShopping';\n\nconst CartContainer = () => {\n const [cartPage] = useState<React.ReactNode>(\n VideoShopping.getInstance().currentCartPage\n );\n return <View style={styles.container}>{cartPage}</View>;\n};\n\nconst styles = StyleSheet.create({\n container: {\n flex: 1,\n },\n});\n\nexport default CartContainer;\n"]}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
|
-
var _reactNative = require("react-native");
|
|
11
|
-
|
|
12
|
-
var _FWLoggerUtil = _interopRequireDefault(require("../utils/FWLoggerUtil"));
|
|
13
|
-
|
|
14
|
-
var _FireworkSDK = _interopRequireDefault(require("../FireworkSDK"));
|
|
15
|
-
|
|
16
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
|
-
|
|
18
|
-
const CustomCTALinkContentContainer = _ref => {
|
|
19
|
-
let {
|
|
20
|
-
url = ''
|
|
21
|
-
} = _ref;
|
|
22
|
-
|
|
23
|
-
_FWLoggerUtil.default.log(`CustomCTALinkContentContainer url: ${url}`);
|
|
24
|
-
|
|
25
|
-
const customCTALinkContentRender = _FireworkSDK.default.getInstance().customCTALinkContentRender;
|
|
26
|
-
|
|
27
|
-
let content = customCTALinkContentRender === null || customCTALinkContentRender === void 0 ? void 0 : customCTALinkContentRender({
|
|
28
|
-
url
|
|
29
|
-
});
|
|
30
|
-
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
31
|
-
style: styles.container
|
|
32
|
-
}, content);
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
var _default = CustomCTALinkContentContainer;
|
|
36
|
-
exports.default = _default;
|
|
37
|
-
|
|
38
|
-
const styles = _reactNative.StyleSheet.create({
|
|
39
|
-
container: {
|
|
40
|
-
flex: 1
|
|
41
|
-
}
|
|
42
|
-
});
|
|
43
|
-
//# sourceMappingURL=CustomCTALinkContentContainer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["CustomCTALinkContentContainer.tsx"],"names":["CustomCTALinkContentContainer","url","FWLoggerUtil","log","customCTALinkContentRender","FireworkSDK","getInstance","content","styles","container","StyleSheet","create","flex"],"mappings":";;;;;;;AAAA;;AAEA;;AACA;;AAEA;;;;AAMA,MAAMA,6BAA6B,GAAG,QAEK;AAAA,MAFJ;AACrCC,IAAAA,GAAG,GAAG;AAD+B,GAEI;;AACzCC,wBAAaC,GAAb,CAAkB,sCAAqCF,GAAI,EAA3D;;AACA,QAAMG,0BAA0B,GAC9BC,qBAAYC,WAAZ,GAA0BF,0BAD5B;;AAEA,MAAIG,OAAO,GAAGH,0BAAH,aAAGA,0BAAH,uBAAGA,0BAA0B,CAAG;AAAEH,IAAAA;AAAF,GAAH,CAAxC;AACA,sBAAO,6BAAC,iBAAD;AAAM,IAAA,KAAK,EAAEO,MAAM,CAACC;AAApB,KAAgCF,OAAhC,CAAP;AACD,CARD;;eAUeP,6B;;;AAEf,MAAMQ,MAAM,GAAGE,wBAAWC,MAAX,CAAkB;AAC/BF,EAAAA,SAAS,EAAE;AACTG,IAAAA,IAAI,EAAE;AADG;AADoB,CAAlB,CAAf","sourcesContent":["import React from 'react';\n\nimport { StyleSheet, View } from 'react-native';\nimport FWLoggerUtil from '../utils/FWLoggerUtil';\n\nimport FireworkSDK from '../FireworkSDK';\n\nexport interface ICustomCTALinkContentContainerProps {\n url?: string;\n}\n\nconst CustomCTALinkContentContainer = ({\n url = '',\n}: ICustomCTALinkContentContainerProps) => {\n FWLoggerUtil.log(`CustomCTALinkContentContainer url: ${url}`);\n const customCTALinkContentRender =\n FireworkSDK.getInstance().customCTALinkContentRender;\n let content = customCTALinkContentRender?.({ url });\n return <View style={styles.container}>{content}</View>;\n};\n\nexport default CustomCTALinkContentContainer;\n\nconst styles = StyleSheet.create({\n container: {\n flex: 1,\n },\n});\n"]}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
|
-
var _reactNative = require("react-native");
|
|
11
|
-
|
|
12
|
-
var _FWNavigator = _interopRequireDefault(require("../FWNavigator"));
|
|
13
|
-
|
|
14
|
-
var _FWLoggerUtil = _interopRequireDefault(require("../utils/FWLoggerUtil"));
|
|
15
|
-
|
|
16
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
|
-
|
|
18
|
-
const NavigationContainer = _ref => {
|
|
19
|
-
let {
|
|
20
|
-
callbackId
|
|
21
|
-
} = _ref;
|
|
22
|
-
|
|
23
|
-
_FWLoggerUtil.default.log('Render NavigationContainer');
|
|
24
|
-
|
|
25
|
-
const page = _FWNavigator.default.getInstance().navigatorPages.get(callbackId !== null && callbackId !== void 0 ? callbackId : '');
|
|
26
|
-
|
|
27
|
-
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
28
|
-
style: styles.container
|
|
29
|
-
}, page);
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
const styles = _reactNative.StyleSheet.create({
|
|
33
|
-
container: {
|
|
34
|
-
flex: 1
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
|
|
38
|
-
var _default = NavigationContainer;
|
|
39
|
-
exports.default = _default;
|
|
40
|
-
//# sourceMappingURL=NavigationContainer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["NavigationContainer.tsx"],"names":["NavigationContainer","callbackId","FWLoggerUtil","log","page","FWNavigator","getInstance","navigatorPages","get","styles","container","StyleSheet","create","flex"],"mappings":";;;;;;;AAAA;;AAEA;;AAEA;;AACA;;;;AAMA,MAAMA,mBAAmB,GAAG,QAA+C;AAAA,MAA9C;AAAEC,IAAAA;AAAF,GAA8C;;AACzEC,wBAAaC,GAAb,CAAiB,4BAAjB;;AACA,QAAMC,IAAI,GAAGC,qBAAYC,WAAZ,GAA0BC,cAA1B,CAAyCC,GAAzC,CAA6CP,UAA7C,aAA6CA,UAA7C,cAA6CA,UAA7C,GAA2D,EAA3D,CAAb;;AACA,sBAAO,6BAAC,iBAAD;AAAM,IAAA,KAAK,EAAEQ,MAAM,CAACC;AAApB,KAAgCN,IAAhC,CAAP;AACD,CAJD;;AAMA,MAAMK,MAAM,GAAGE,wBAAWC,MAAX,CAAkB;AAC/BF,EAAAA,SAAS,EAAE;AACTG,IAAAA,IAAI,EAAE;AADG;AADoB,CAAlB,CAAf;;eAMeb,mB","sourcesContent":["import React from 'react';\n\nimport { StyleSheet, View } from 'react-native';\n\nimport FWNavigator from '../FWNavigator';\nimport FWLoggerUtil from '../utils/FWLoggerUtil';\n\nexport interface INavigationContainerProps {\n callbackId?: string;\n}\n\nconst NavigationContainer = ({ callbackId }: INavigationContainerProps) => {\n FWLoggerUtil.log('Render NavigationContainer');\n const page = FWNavigator.getInstance().navigatorPages.get(callbackId ?? '');\n return <View style={styles.container}>{page}</View>;\n};\n\nconst styles = StyleSheet.create({\n container: {\n flex: 1,\n },\n});\n\nexport default NavigationContainer;\n"]}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React, { useState } from 'react';
|
|
2
|
-
import { StyleSheet, View } from 'react-native';
|
|
3
|
-
import VideoShopping from '../VideoShopping';
|
|
4
|
-
|
|
5
|
-
const CartContainer = () => {
|
|
6
|
-
const [cartPage] = useState(VideoShopping.getInstance().currentCartPage);
|
|
7
|
-
return /*#__PURE__*/React.createElement(View, {
|
|
8
|
-
style: styles.container
|
|
9
|
-
}, cartPage);
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
const styles = StyleSheet.create({
|
|
13
|
-
container: {
|
|
14
|
-
flex: 1
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
export default CartContainer;
|
|
18
|
-
//# sourceMappingURL=CartContainer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["CartContainer.tsx"],"names":["React","useState","StyleSheet","View","VideoShopping","CartContainer","cartPage","getInstance","currentCartPage","styles","container","create","flex"],"mappings":"AAAA,OAAOA,KAAP,IAAgBC,QAAhB,QAAgC,OAAhC;AAEA,SAASC,UAAT,EAAqBC,IAArB,QAAiC,cAAjC;AAEA,OAAOC,aAAP,MAA0B,kBAA1B;;AAEA,MAAMC,aAAa,GAAG,MAAM;AAC1B,QAAM,CAACC,QAAD,IAAaL,QAAQ,CACzBG,aAAa,CAACG,WAAd,GAA4BC,eADH,CAA3B;AAGA,sBAAO,oBAAC,IAAD;AAAM,IAAA,KAAK,EAAEC,MAAM,CAACC;AAApB,KAAgCJ,QAAhC,CAAP;AACD,CALD;;AAOA,MAAMG,MAAM,GAAGP,UAAU,CAACS,MAAX,CAAkB;AAC/BD,EAAAA,SAAS,EAAE;AACTE,IAAAA,IAAI,EAAE;AADG;AADoB,CAAlB,CAAf;AAMA,eAAeP,aAAf","sourcesContent":["import React, { useState } from 'react';\n\nimport { StyleSheet, View } from 'react-native';\n\nimport VideoShopping from '../VideoShopping';\n\nconst CartContainer = () => {\n const [cartPage] = useState<React.ReactNode>(\n VideoShopping.getInstance().currentCartPage\n );\n return <View style={styles.container}>{cartPage}</View>;\n};\n\nconst styles = StyleSheet.create({\n container: {\n flex: 1,\n },\n});\n\nexport default CartContainer;\n"]}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { StyleSheet, View } from 'react-native';
|
|
3
|
-
import FWLoggerUtil from '../utils/FWLoggerUtil';
|
|
4
|
-
import FireworkSDK from '../FireworkSDK';
|
|
5
|
-
|
|
6
|
-
const CustomCTALinkContentContainer = _ref => {
|
|
7
|
-
let {
|
|
8
|
-
url = ''
|
|
9
|
-
} = _ref;
|
|
10
|
-
FWLoggerUtil.log(`CustomCTALinkContentContainer url: ${url}`);
|
|
11
|
-
const customCTALinkContentRender = FireworkSDK.getInstance().customCTALinkContentRender;
|
|
12
|
-
let content = customCTALinkContentRender === null || customCTALinkContentRender === void 0 ? void 0 : customCTALinkContentRender({
|
|
13
|
-
url
|
|
14
|
-
});
|
|
15
|
-
return /*#__PURE__*/React.createElement(View, {
|
|
16
|
-
style: styles.container
|
|
17
|
-
}, content);
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
export default CustomCTALinkContentContainer;
|
|
21
|
-
const styles = StyleSheet.create({
|
|
22
|
-
container: {
|
|
23
|
-
flex: 1
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
|
-
//# sourceMappingURL=CustomCTALinkContentContainer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["CustomCTALinkContentContainer.tsx"],"names":["React","StyleSheet","View","FWLoggerUtil","FireworkSDK","CustomCTALinkContentContainer","url","log","customCTALinkContentRender","getInstance","content","styles","container","create","flex"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAEA,SAASC,UAAT,EAAqBC,IAArB,QAAiC,cAAjC;AACA,OAAOC,YAAP,MAAyB,uBAAzB;AAEA,OAAOC,WAAP,MAAwB,gBAAxB;;AAMA,MAAMC,6BAA6B,GAAG,QAEK;AAAA,MAFJ;AACrCC,IAAAA,GAAG,GAAG;AAD+B,GAEI;AACzCH,EAAAA,YAAY,CAACI,GAAb,CAAkB,sCAAqCD,GAAI,EAA3D;AACA,QAAME,0BAA0B,GAC9BJ,WAAW,CAACK,WAAZ,GAA0BD,0BAD5B;AAEA,MAAIE,OAAO,GAAGF,0BAAH,aAAGA,0BAAH,uBAAGA,0BAA0B,CAAG;AAAEF,IAAAA;AAAF,GAAH,CAAxC;AACA,sBAAO,oBAAC,IAAD;AAAM,IAAA,KAAK,EAAEK,MAAM,CAACC;AAApB,KAAgCF,OAAhC,CAAP;AACD,CARD;;AAUA,eAAeL,6BAAf;AAEA,MAAMM,MAAM,GAAGV,UAAU,CAACY,MAAX,CAAkB;AAC/BD,EAAAA,SAAS,EAAE;AACTE,IAAAA,IAAI,EAAE;AADG;AADoB,CAAlB,CAAf","sourcesContent":["import React from 'react';\n\nimport { StyleSheet, View } from 'react-native';\nimport FWLoggerUtil from '../utils/FWLoggerUtil';\n\nimport FireworkSDK from '../FireworkSDK';\n\nexport interface ICustomCTALinkContentContainerProps {\n url?: string;\n}\n\nconst CustomCTALinkContentContainer = ({\n url = '',\n}: ICustomCTALinkContentContainerProps) => {\n FWLoggerUtil.log(`CustomCTALinkContentContainer url: ${url}`);\n const customCTALinkContentRender =\n FireworkSDK.getInstance().customCTALinkContentRender;\n let content = customCTALinkContentRender?.({ url });\n return <View style={styles.container}>{content}</View>;\n};\n\nexport default CustomCTALinkContentContainer;\n\nconst styles = StyleSheet.create({\n container: {\n flex: 1,\n },\n});\n"]}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { StyleSheet, View } from 'react-native';
|
|
3
|
-
import FWNavigator from '../FWNavigator';
|
|
4
|
-
import FWLoggerUtil from '../utils/FWLoggerUtil';
|
|
5
|
-
|
|
6
|
-
const NavigationContainer = _ref => {
|
|
7
|
-
let {
|
|
8
|
-
callbackId
|
|
9
|
-
} = _ref;
|
|
10
|
-
FWLoggerUtil.log('Render NavigationContainer');
|
|
11
|
-
const page = FWNavigator.getInstance().navigatorPages.get(callbackId !== null && callbackId !== void 0 ? callbackId : '');
|
|
12
|
-
return /*#__PURE__*/React.createElement(View, {
|
|
13
|
-
style: styles.container
|
|
14
|
-
}, page);
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
const styles = StyleSheet.create({
|
|
18
|
-
container: {
|
|
19
|
-
flex: 1
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
export default NavigationContainer;
|
|
23
|
-
//# sourceMappingURL=NavigationContainer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["NavigationContainer.tsx"],"names":["React","StyleSheet","View","FWNavigator","FWLoggerUtil","NavigationContainer","callbackId","log","page","getInstance","navigatorPages","get","styles","container","create","flex"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAEA,SAASC,UAAT,EAAqBC,IAArB,QAAiC,cAAjC;AAEA,OAAOC,WAAP,MAAwB,gBAAxB;AACA,OAAOC,YAAP,MAAyB,uBAAzB;;AAMA,MAAMC,mBAAmB,GAAG,QAA+C;AAAA,MAA9C;AAAEC,IAAAA;AAAF,GAA8C;AACzEF,EAAAA,YAAY,CAACG,GAAb,CAAiB,4BAAjB;AACA,QAAMC,IAAI,GAAGL,WAAW,CAACM,WAAZ,GAA0BC,cAA1B,CAAyCC,GAAzC,CAA6CL,UAA7C,aAA6CA,UAA7C,cAA6CA,UAA7C,GAA2D,EAA3D,CAAb;AACA,sBAAO,oBAAC,IAAD;AAAM,IAAA,KAAK,EAAEM,MAAM,CAACC;AAApB,KAAgCL,IAAhC,CAAP;AACD,CAJD;;AAMA,MAAMI,MAAM,GAAGX,UAAU,CAACa,MAAX,CAAkB;AAC/BD,EAAAA,SAAS,EAAE;AACTE,IAAAA,IAAI,EAAE;AADG;AADoB,CAAlB,CAAf;AAMA,eAAeV,mBAAf","sourcesContent":["import React from 'react';\n\nimport { StyleSheet, View } from 'react-native';\n\nimport FWNavigator from '../FWNavigator';\nimport FWLoggerUtil from '../utils/FWLoggerUtil';\n\nexport interface INavigationContainerProps {\n callbackId?: string;\n}\n\nconst NavigationContainer = ({ callbackId }: INavigationContainerProps) => {\n FWLoggerUtil.log('Render NavigationContainer');\n const page = FWNavigator.getInstance().navigatorPages.get(callbackId ?? '');\n return <View style={styles.container}>{page}</View>;\n};\n\nconst styles = StyleSheet.create({\n container: {\n flex: 1,\n },\n});\n\nexport default NavigationContainer;\n"]}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import React, { useState } from 'react';
|
|
2
|
-
|
|
3
|
-
import { StyleSheet, View } from 'react-native';
|
|
4
|
-
|
|
5
|
-
import VideoShopping from '../VideoShopping';
|
|
6
|
-
|
|
7
|
-
const CartContainer = () => {
|
|
8
|
-
const [cartPage] = useState<React.ReactNode>(
|
|
9
|
-
VideoShopping.getInstance().currentCartPage
|
|
10
|
-
);
|
|
11
|
-
return <View style={styles.container}>{cartPage}</View>;
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
const styles = StyleSheet.create({
|
|
15
|
-
container: {
|
|
16
|
-
flex: 1,
|
|
17
|
-
},
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
export default CartContainer;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
|
-
import { StyleSheet, View } from 'react-native';
|
|
4
|
-
import FWLoggerUtil from '../utils/FWLoggerUtil';
|
|
5
|
-
|
|
6
|
-
import FireworkSDK from '../FireworkSDK';
|
|
7
|
-
|
|
8
|
-
export interface ICustomCTALinkContentContainerProps {
|
|
9
|
-
url?: string;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
const CustomCTALinkContentContainer = ({
|
|
13
|
-
url = '',
|
|
14
|
-
}: ICustomCTALinkContentContainerProps) => {
|
|
15
|
-
FWLoggerUtil.log(`CustomCTALinkContentContainer url: ${url}`);
|
|
16
|
-
const customCTALinkContentRender =
|
|
17
|
-
FireworkSDK.getInstance().customCTALinkContentRender;
|
|
18
|
-
let content = customCTALinkContentRender?.({ url });
|
|
19
|
-
return <View style={styles.container}>{content}</View>;
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
export default CustomCTALinkContentContainer;
|
|
23
|
-
|
|
24
|
-
const styles = StyleSheet.create({
|
|
25
|
-
container: {
|
|
26
|
-
flex: 1,
|
|
27
|
-
},
|
|
28
|
-
});
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
|
-
import { StyleSheet, View } from 'react-native';
|
|
4
|
-
|
|
5
|
-
import FWNavigator from '../FWNavigator';
|
|
6
|
-
import FWLoggerUtil from '../utils/FWLoggerUtil';
|
|
7
|
-
|
|
8
|
-
export interface INavigationContainerProps {
|
|
9
|
-
callbackId?: string;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
const NavigationContainer = ({ callbackId }: INavigationContainerProps) => {
|
|
13
|
-
FWLoggerUtil.log('Render NavigationContainer');
|
|
14
|
-
const page = FWNavigator.getInstance().navigatorPages.get(callbackId ?? '');
|
|
15
|
-
return <View style={styles.container}>{page}</View>;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
const styles = StyleSheet.create({
|
|
19
|
-
container: {
|
|
20
|
-
flex: 1,
|
|
21
|
-
},
|
|
22
|
-
});
|
|
23
|
-
|
|
24
|
-
export default NavigationContainer;
|