tf-checkout-react-native 1.0.5 → 1.0.8
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/README.md +378 -31
- package/lib/api/ApiClient.d.ts +1 -1
- package/lib/api/ApiClient.js +10 -9
- package/lib/api/ApiClient.js.map +1 -1
- package/lib/components/button/Button.d.ts +2 -1
- package/lib/components/button/Button.js +6 -5
- package/lib/components/button/Button.js.map +1 -1
- package/lib/components/formField/FormField.d.ts +1 -1
- package/lib/components/formField/FormField.js +1 -1
- package/lib/components/formField/FormField.js.map +1 -1
- package/lib/components/index.d.ts +0 -1
- package/lib/components/index.js +0 -1
- package/lib/components/index.js.map +1 -1
- package/lib/components/input/Input.js +2 -1
- package/lib/components/input/Input.js.map +1 -1
- package/lib/components/login/Login.d.ts +1 -1
- package/lib/components/login/Login.js +2 -2
- package/lib/components/login/Login.js.map +1 -1
- package/lib/components/login/LoginView.d.ts +1 -1
- package/lib/components/login/LoginView.js +16 -13
- package/lib/components/login/LoginView.js.map +1 -1
- package/lib/components/login/types.d.ts +19 -3
- package/lib/containers/billingInfo/Billing.js +93 -46
- package/lib/containers/billingInfo/Billing.js.map +1 -1
- package/lib/containers/billingInfo/types.d.ts +26 -2
- package/lib/containers/myOrders/MyOrders.js +39 -19
- package/lib/containers/myOrders/MyOrders.js.map +1 -1
- package/lib/containers/myOrders/MyOrdersView.d.ts +1 -1
- package/lib/containers/myOrders/MyOrdersView.js +20 -15
- package/lib/containers/myOrders/MyOrdersView.js.map +1 -1
- package/lib/containers/myOrders/styles.d.ts +1 -3
- package/lib/containers/myOrders/styles.js +1 -1
- package/lib/containers/myOrders/styles.js.map +1 -1
- package/lib/containers/myOrders/types.d.ts +6 -0
- package/lib/containers/tickets/Tickets.d.ts +1 -1
- package/lib/containers/tickets/Tickets.js +2 -4
- package/lib/containers/tickets/Tickets.js.map +1 -1
- package/lib/containers/tickets/types.d.ts +0 -2
- package/lib/helpers/Config.d.ts +0 -1
- package/lib/helpers/Config.js +3 -3
- package/lib/helpers/Config.js.map +1 -1
- package/lib/index.d.ts +4 -1
- package/lib/index.js +3 -1
- package/lib/index.js.map +1 -1
- package/package.json +14 -11
- package/lib/components/wrapper/Wrapper.d.ts +0 -8
- package/lib/components/wrapper/Wrapper.js +0 -29
- package/lib/components/wrapper/Wrapper.js.map +0 -1
- package/src/index.tsx +0 -35
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tf-checkout-react-native",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
4
4
|
"description": "TheTicketFairy ReactNative Checkout library",
|
|
5
5
|
"homepage": "https://github.com/theticketfairy/tf-checkout-react-native",
|
|
6
|
-
"main": "
|
|
6
|
+
"main": "lib/index.js",
|
|
7
7
|
"types": "lib/index.d.ts",
|
|
8
8
|
"author": "TheTicketFairy <dev.jorgtz@gmail.com>",
|
|
9
9
|
"license": "MIT",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"eslint": "7.14.0",
|
|
53
53
|
"eslint-plugin-simple-import-sort": "7.0.0",
|
|
54
54
|
"jest": "27.3.1",
|
|
55
|
-
"jwt-decode": "
|
|
55
|
+
"jwt-decode": "3.1.2",
|
|
56
56
|
"lodash": "4.17.21",
|
|
57
57
|
"metro-react-native-babel-preset": "0.66.2",
|
|
58
58
|
"react": "17.0.2",
|
|
@@ -65,14 +65,17 @@
|
|
|
65
65
|
"typescript": "4.5.2"
|
|
66
66
|
},
|
|
67
67
|
"peerDependencies": {
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
|
|
71
|
-
"react": "
|
|
72
|
-
"react-native": "
|
|
73
|
-
"react-native
|
|
74
|
-
"react-native-
|
|
75
|
-
"
|
|
68
|
+
"react": "17.0.2",
|
|
69
|
+
"react-native": "0.66.3",
|
|
70
|
+
|
|
71
|
+
"@react-native-async-storage/async-storage": "1.15.14",
|
|
72
|
+
"@react-native-clipboard/clipboard": "1.8.5",
|
|
73
|
+
"@stripe/stripe-react-native": "0.2.3",
|
|
74
|
+
"react-native-fs": "2.18.0",
|
|
75
|
+
"axios-retry": "3.2.4",
|
|
76
|
+
"@react-native-community/datetimepicker": "5.0.2",
|
|
77
|
+
"react-native-modal-datetime-picker": "13.0.0",
|
|
78
|
+
"rn-material-ui-textfield": "1.0.5"
|
|
76
79
|
},
|
|
77
80
|
"jest": {
|
|
78
81
|
"preset": "react-native",
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { IConfig } from '../../helpers/Config';
|
|
3
|
-
export interface IWrapperProps {
|
|
4
|
-
children: ReactNode;
|
|
5
|
-
config: IConfig;
|
|
6
|
-
}
|
|
7
|
-
declare const Wrapper: ({ config, children }: IWrapperProps) => JSX.Element;
|
|
8
|
-
export default Wrapper;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import React, { useEffect, useState } from 'react';
|
|
2
|
-
import { Alert, StyleSheet, View } from 'react-native';
|
|
3
|
-
import { setConfig } from '../../helpers/Config';
|
|
4
|
-
const styles = StyleSheet.create({
|
|
5
|
-
container: {
|
|
6
|
-
flex: 1,
|
|
7
|
-
},
|
|
8
|
-
});
|
|
9
|
-
const Wrapper = ({ config, children }) => {
|
|
10
|
-
const [isConfigFinished, setIsConfigFinished] = useState(false);
|
|
11
|
-
const { container } = styles;
|
|
12
|
-
const handleConfig = () => {
|
|
13
|
-
const configResult = setConfig(config);
|
|
14
|
-
if (configResult) {
|
|
15
|
-
Alert.alert('Missing configuration', `${configResult}\nPlease check your config object`);
|
|
16
|
-
return setIsConfigFinished(false);
|
|
17
|
-
}
|
|
18
|
-
else {
|
|
19
|
-
setIsConfigFinished(true);
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
useEffect(() => {
|
|
23
|
-
handleConfig();
|
|
24
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
25
|
-
}, []);
|
|
26
|
-
return React.createElement(View, { style: container }, isConfigFinished && children);
|
|
27
|
-
};
|
|
28
|
-
export default Wrapper;
|
|
29
|
-
//# sourceMappingURL=Wrapper.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Wrapper.js","sourceRoot":"","sources":["../../../src/components/wrapper/Wrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAa,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAC7D,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AAEtD,OAAO,EAAW,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAOzD,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,SAAS,EAAE;QACT,IAAI,EAAE,CAAC;KACR;CACF,CAAC,CAAA;AAEF,MAAM,OAAO,GAAG,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAiB,EAAE,EAAE;IACtD,MAAM,CAAC,gBAAgB,EAAE,mBAAmB,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAA;IAC/D,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAAA;IAC5B,MAAM,YAAY,GAAG,GAAG,EAAE;QACxB,MAAM,YAAY,GAAG,SAAS,CAAC,MAAM,CAAC,CAAA;QAEtC,IAAI,YAAY,EAAE;YAChB,KAAK,CAAC,KAAK,CACT,uBAAuB,EACvB,GAAG,YAAY,mCAAmC,CACnD,CAAA;YACD,OAAO,mBAAmB,CAAC,KAAK,CAAC,CAAA;SAClC;aAAM;YACL,mBAAmB,CAAC,IAAI,CAAC,CAAA;SAC1B;IACH,CAAC,CAAA;IAED,SAAS,CAAC,GAAG,EAAE;QACb,YAAY,EAAE,CAAA;QACd,uDAAuD;IACzD,CAAC,EAAE,EAAE,CAAC,CAAA;IAEN,OAAO,oBAAC,IAAI,IAAC,KAAK,EAAE,SAAS,IAAG,gBAAgB,IAAI,QAAQ,CAAQ,CAAA;AACtE,CAAC,CAAA;AAED,eAAe,OAAO,CAAA"}
|
package/src/index.tsx
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
2
|
-
import * as React from 'react' //Needed to render
|
|
3
|
-
import { LogBox, NativeModules } from 'react-native'
|
|
4
|
-
|
|
5
|
-
import { IMyOrderDetailsResponse, IMyOrdersOrder } from './api/types'
|
|
6
|
-
import {
|
|
7
|
-
BillingInfo,
|
|
8
|
-
Checkout,
|
|
9
|
-
MyOrderDetails,
|
|
10
|
-
MyOrders,
|
|
11
|
-
PurchaseConfirmation,
|
|
12
|
-
Tickets,
|
|
13
|
-
} from './containers'
|
|
14
|
-
import { IOnCheckoutSuccess } from './containers/billingInfo/types'
|
|
15
|
-
import { IAddToCartSuccess, ITicketsProps } from './containers/tickets/types'
|
|
16
|
-
|
|
17
|
-
LogBox.ignoreAllLogs()
|
|
18
|
-
// @ts-ignore
|
|
19
|
-
console.reportErrorsAsExceptions = false
|
|
20
|
-
|
|
21
|
-
export {
|
|
22
|
-
BillingInfo,
|
|
23
|
-
Checkout,
|
|
24
|
-
IAddToCartSuccess,
|
|
25
|
-
IMyOrderDetailsResponse,
|
|
26
|
-
IMyOrdersOrder,
|
|
27
|
-
IOnCheckoutSuccess,
|
|
28
|
-
ITicketsProps,
|
|
29
|
-
MyOrderDetails,
|
|
30
|
-
MyOrders,
|
|
31
|
-
PurchaseConfirmation,
|
|
32
|
-
Tickets,
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export default NativeModules.TFCheckoutRNModule
|