@tap-payments/auth-jsconnect 2.0.0 → 2.0.3

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 (49) hide show
  1. package/build/@types/app.d.ts +2 -2
  2. package/build/api/auth.d.ts +2 -0
  3. package/build/api/axios.d.ts +2 -0
  4. package/build/api/axios.js +65 -0
  5. package/build/api/country.d.ts +1 -2
  6. package/build/api/country.js +7 -8
  7. package/build/api/firebase.d.ts +1 -1
  8. package/build/api/firebase.js +5 -2
  9. package/build/api/index.d.ts +4 -5
  10. package/build/api/ip.d.ts +1 -1
  11. package/build/api/ip.js +5 -2
  12. package/build/api/lead.d.ts +2 -0
  13. package/build/api/operator.d.ts +1 -1
  14. package/build/api/operator.js +60 -4
  15. package/build/app/settings.d.ts +9 -12
  16. package/build/app/settings.js +87 -111
  17. package/build/components/AnimationFlow/Loader.js +1 -1
  18. package/build/components/DatePicker/customStyle.css +86 -86
  19. package/build/constants/app.d.ts +1 -0
  20. package/build/constants/app.js +1 -0
  21. package/build/features/app/bank/bankStore.js +2 -2
  22. package/build/features/app/business/businessStore.d.ts +1 -7
  23. package/build/features/app/business/businessStore.js +4 -41
  24. package/build/features/app/connect/connectStore.d.ts +1 -7
  25. package/build/features/app/connect/connectStore.js +11 -45
  26. package/build/features/app/individual/individualStore.d.ts +1 -6
  27. package/build/features/app/individual/individualStore.js +15 -46
  28. package/build/features/app/password/passwordStore.js +2 -2
  29. package/build/features/app/tax/taxStore.js +2 -2
  30. package/build/features/bank/Bank.js +3 -3
  31. package/build/features/business/Business.js +4 -7
  32. package/build/features/connect/Connect.js +3 -7
  33. package/build/features/connect/screens/Merchant/BrandName.js +3 -2
  34. package/build/features/connect/screens/Mobile/Mobile.js +1 -1
  35. package/build/features/individual/Individual.js +4 -7
  36. package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.js +4 -2
  37. package/build/features/password/Password.js +3 -3
  38. package/build/features/shared/Background/Background.js +3 -2
  39. package/build/features/shared/Background/LogoBackground.d.ts +1 -4
  40. package/build/features/shared/Background/LogoBackground.js +4 -32
  41. package/build/features/shared/Button/FlowsButtons.js +3 -2
  42. package/build/features/shared/Footer/Footer.js +2 -3
  43. package/build/features/tax/Tax.js +3 -3
  44. package/build/hooks/useAppConfig.d.ts +1 -4
  45. package/build/hooks/useAppConfig.js +13 -110
  46. package/build/index.css +135 -135
  47. package/build/utils/array.d.ts +3 -0
  48. package/build/utils/array.js +10 -0
  49. package/package.json +1 -1
package/build/index.css CHANGED
@@ -1,135 +1,135 @@
1
- @import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');
2
- @import url('https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap');
3
- @import url('https://fonts.googleapis.com/icon?family=Material+Icons');
4
- @import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300&display=swap');
5
- @import url('https://fonts.googleapis.com/css?family=Tajawal&display=swap');
6
-
7
- /* http://meyerweb.com/eric/tools/css/reset/
8
- v2.0 | 20110126
9
- License: none (public domain)
10
- */
11
-
12
- html,
13
- body,
14
- div,
15
- span,
16
- applet,
17
- object,
18
- iframe,
19
- h1,
20
- h2,
21
- h3,
22
- h4,
23
- h5,
24
- h6,
25
- p,
26
- blockquote,
27
- pre,
28
- a,
29
- abbr,
30
- acronym,
31
- address,
32
- big,
33
- cite,
34
- code,
35
- del,
36
- dfn,
37
- em,
38
- img,
39
- ins,
40
- kbd,
41
- q,
42
- s,
43
- samp,
44
- small,
45
- strike,
46
- strong,
47
- sub,
48
- sup,
49
- tt,
50
- var,
51
- b,
52
- u,
53
- i,
54
- center,
55
- dl,
56
- dt,
57
- dd,
58
- ol,
59
- ul,
60
- li,
61
- fieldset,
62
- form,
63
- label,
64
- legend,
65
- table,
66
- caption,
67
- tbody,
68
- tfoot,
69
- thead,
70
- tr,
71
- th,
72
- td,
73
- article,
74
- aside,
75
- canvas,
76
- details,
77
- embed,
78
- figure,
79
- figcaption,
80
- footer,
81
- header,
82
- hgroup,
83
- menu,
84
- nav,
85
- output,
86
- ruby,
87
- section,
88
- summary,
89
- time,
90
- mark,
91
- audio,
92
- video {
93
- margin: 0;
94
- padding: 0;
95
- border: 0;
96
- font-size: 100%;
97
- font: inherit;
98
- vertical-align: baseline;
99
- }
100
- /* HTML5 display-role reset for older browsers */
101
- article,
102
- aside,
103
- details,
104
- figcaption,
105
- figure,
106
- footer,
107
- header,
108
- hgroup,
109
- menu,
110
- nav,
111
- section {
112
- display: block;
113
- }
114
- body {
115
- line-height: 1;
116
- }
117
- ol,
118
- ul {
119
- list-style: none;
120
- }
121
- blockquote,
122
- q {
123
- quotes: none;
124
- }
125
- blockquote:before,
126
- blockquote:after,
127
- q:before,
128
- q:after {
129
- content: '';
130
- content: none;
131
- }
132
- table {
133
- border-collapse: collapse;
134
- border-spacing: 0;
135
- }
1
+ @import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');
2
+ @import url('https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap');
3
+ @import url('https://fonts.googleapis.com/icon?family=Material+Icons');
4
+ @import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300&display=swap');
5
+ @import url('https://fonts.googleapis.com/css?family=Tajawal&display=swap');
6
+
7
+ /* http://meyerweb.com/eric/tools/css/reset/
8
+ v2.0 | 20110126
9
+ License: none (public domain)
10
+ */
11
+
12
+ html,
13
+ body,
14
+ div,
15
+ span,
16
+ applet,
17
+ object,
18
+ iframe,
19
+ h1,
20
+ h2,
21
+ h3,
22
+ h4,
23
+ h5,
24
+ h6,
25
+ p,
26
+ blockquote,
27
+ pre,
28
+ a,
29
+ abbr,
30
+ acronym,
31
+ address,
32
+ big,
33
+ cite,
34
+ code,
35
+ del,
36
+ dfn,
37
+ em,
38
+ img,
39
+ ins,
40
+ kbd,
41
+ q,
42
+ s,
43
+ samp,
44
+ small,
45
+ strike,
46
+ strong,
47
+ sub,
48
+ sup,
49
+ tt,
50
+ var,
51
+ b,
52
+ u,
53
+ i,
54
+ center,
55
+ dl,
56
+ dt,
57
+ dd,
58
+ ol,
59
+ ul,
60
+ li,
61
+ fieldset,
62
+ form,
63
+ label,
64
+ legend,
65
+ table,
66
+ caption,
67
+ tbody,
68
+ tfoot,
69
+ thead,
70
+ tr,
71
+ th,
72
+ td,
73
+ article,
74
+ aside,
75
+ canvas,
76
+ details,
77
+ embed,
78
+ figure,
79
+ figcaption,
80
+ footer,
81
+ header,
82
+ hgroup,
83
+ menu,
84
+ nav,
85
+ output,
86
+ ruby,
87
+ section,
88
+ summary,
89
+ time,
90
+ mark,
91
+ audio,
92
+ video {
93
+ margin: 0;
94
+ padding: 0;
95
+ border: 0;
96
+ font-size: 100%;
97
+ font: inherit;
98
+ vertical-align: baseline;
99
+ }
100
+ /* HTML5 display-role reset for older browsers */
101
+ article,
102
+ aside,
103
+ details,
104
+ figcaption,
105
+ figure,
106
+ footer,
107
+ header,
108
+ hgroup,
109
+ menu,
110
+ nav,
111
+ section {
112
+ display: block;
113
+ }
114
+ body {
115
+ line-height: 1;
116
+ }
117
+ ol,
118
+ ul {
119
+ list-style: none;
120
+ }
121
+ blockquote,
122
+ q {
123
+ quotes: none;
124
+ }
125
+ blockquote:before,
126
+ blockquote:after,
127
+ q:before,
128
+ q:after {
129
+ content: '';
130
+ content: none;
131
+ }
132
+ table {
133
+ border-collapse: collapse;
134
+ border-spacing: 0;
135
+ }
@@ -1,3 +1,4 @@
1
+ import { CountryCode } from '../@types';
1
2
  export declare const isArray: (value: any) => value is any[];
2
3
  export declare const joinArray: (items: Array<any>, joiner?: string) => string;
3
4
  export declare const replaceStringArrayItems: (items: Array<string>, include: string, withThis: string) => string[];
@@ -8,3 +9,5 @@ export declare const isInclude: (items: Array<string | number>, item: any) => bo
8
9
  export declare const findItem: (items: Array<string | number>, key: any) => string | number | undefined;
9
10
  export declare const isExist: (items: Array<any>, id: string) => any;
10
11
  export declare const allAreTruthy: (items: Array<any>, condition: boolean | string, key: string, exclude?: string) => boolean;
12
+ export declare const sortCountries: (countries: Array<CountryCode>) => CountryCode[];
13
+ export declare const findCountryByIso2: (countries: Array<CountryCode>, iso2: string) => CountryCode | undefined;
@@ -53,3 +53,13 @@ export var allAreTruthy = function (items, condition, key, exclude) {
53
53
  return item[key] === condition;
54
54
  });
55
55
  };
56
+ export var sortCountries = function (countries) {
57
+ return (countries || []).sort(function (cOne, cTwo) {
58
+ return cOne.name.english.localeCompare(cTwo.name.english);
59
+ });
60
+ };
61
+ export var findCountryByIso2 = function (countries, iso2) {
62
+ if (!iso2)
63
+ throw new Error('iso2 is required');
64
+ return countries.find(function (country) { return country.iso2.toLowerCase() === iso2.toLowerCase(); });
65
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tap-payments/auth-jsconnect",
3
- "version": "2.0.0",
3
+ "version": "2.0.3",
4
4
  "description": "connect library, auth",
5
5
  "private": false,
6
6
  "main": "build/index.js",