tf-checkout-react-native 1.0.6 → 1.0.9

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.
Files changed (50) hide show
  1. package/README.md +377 -31
  2. package/lib/api/ApiClient.d.ts +1 -1
  3. package/lib/api/ApiClient.js +10 -7
  4. package/lib/api/ApiClient.js.map +1 -1
  5. package/lib/components/button/Button.d.ts +2 -1
  6. package/lib/components/button/Button.js +6 -5
  7. package/lib/components/button/Button.js.map +1 -1
  8. package/lib/components/formField/FormField.d.ts +1 -1
  9. package/lib/components/formField/FormField.js +1 -1
  10. package/lib/components/formField/FormField.js.map +1 -1
  11. package/lib/components/index.d.ts +0 -1
  12. package/lib/components/index.js +0 -1
  13. package/lib/components/index.js.map +1 -1
  14. package/lib/components/input/Input.js +2 -1
  15. package/lib/components/input/Input.js.map +1 -1
  16. package/lib/components/login/Login.d.ts +1 -1
  17. package/lib/components/login/Login.js +2 -2
  18. package/lib/components/login/Login.js.map +1 -1
  19. package/lib/components/login/LoginView.d.ts +1 -1
  20. package/lib/components/login/LoginView.js +16 -13
  21. package/lib/components/login/LoginView.js.map +1 -1
  22. package/lib/components/login/types.d.ts +19 -3
  23. package/lib/containers/billingInfo/Billing.js +93 -46
  24. package/lib/containers/billingInfo/Billing.js.map +1 -1
  25. package/lib/containers/billingInfo/types.d.ts +26 -2
  26. package/lib/containers/checkout/CheckoutView.js +1 -1
  27. package/lib/containers/checkout/CheckoutView.js.map +1 -1
  28. package/lib/containers/myOrders/MyOrders.js +39 -19
  29. package/lib/containers/myOrders/MyOrders.js.map +1 -1
  30. package/lib/containers/myOrders/MyOrdersView.d.ts +1 -1
  31. package/lib/containers/myOrders/MyOrdersView.js +20 -15
  32. package/lib/containers/myOrders/MyOrdersView.js.map +1 -1
  33. package/lib/containers/myOrders/styles.d.ts +1 -3
  34. package/lib/containers/myOrders/styles.js +1 -1
  35. package/lib/containers/myOrders/styles.js.map +1 -1
  36. package/lib/containers/myOrders/types.d.ts +6 -0
  37. package/lib/containers/tickets/Tickets.d.ts +1 -1
  38. package/lib/containers/tickets/Tickets.js +2 -4
  39. package/lib/containers/tickets/Tickets.js.map +1 -1
  40. package/lib/containers/tickets/types.d.ts +0 -2
  41. package/lib/helpers/Config.d.ts +0 -1
  42. package/lib/helpers/Config.js +3 -3
  43. package/lib/helpers/Config.js.map +1 -1
  44. package/lib/index.d.ts +4 -1
  45. package/lib/index.js +3 -1
  46. package/lib/index.js.map +1 -1
  47. package/package.json +13 -10
  48. package/lib/components/wrapper/Wrapper.d.ts +0 -8
  49. package/lib/components/wrapper/Wrapper.js +0 -29
  50. package/lib/components/wrapper/Wrapper.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tf-checkout-react-native",
3
- "version": "1.0.6",
3
+ "version": "1.0.9",
4
4
  "description": "TheTicketFairy ReactNative Checkout library",
5
5
  "homepage": "https://github.com/theticketfairy/tf-checkout-react-native",
6
6
  "main": "lib/index.js",
@@ -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": "^3.1.2",
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
- "@react-native-async-storage/async-storage": "*",
69
- "@react-native-clipboard/clipboard": "*",
70
- "@stripe/stripe-react-native": "*",
71
- "react": "*",
72
- "react-native": "*",
73
- "react-native-fs": "*",
74
- "react-native-modal-datetime-picker": "*",
75
- "@react-native-community/datetimepicker": "*"
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"}