@tap-payments/auth-jsconnect 2.8.55-sandbox → 2.8.57-development
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/build/@types/app.d.ts +1 -0
- package/build/@types/app.js +1 -0
- package/build/components/AnimationFlow/BottomSheet.js +1 -1
- package/build/components/Footer/Footer.js +2 -1
- package/build/components/Providers/ThemeProvider.js +3 -3
- package/build/constants/app.d.ts +0 -1
- package/build/constants/app.js +0 -1
- package/build/features/auth/Auth.d.ts +5 -1
- package/build/features/auth/Auth.js +13 -6
- package/build/features/auth/screens/AuthenticationList/EntityLicenseType.d.ts +26 -4
- package/build/features/bank/screens/BankDetails/BankDetails.js +1 -1
- package/build/features/brand/screens/BrandActivities/ActivitiesList.d.ts +35 -8
- package/build/features/brand/screens/BrandActivities/CustomerBase.d.ts +3 -3
- package/build/features/brand/screens/BrandActivities/RefundPolicy.d.ts +18 -5
- package/build/features/brand/screens/BrandActivities/TAC.d.ts +7 -2
- package/build/features/business/screens/Activities/ActivitiesList.d.ts +2 -2
- package/build/features/business/screens/Activities/OperationStartDate.d.ts +1 -1
- package/build/features/business/screens/BrandDetails/SalesChannel.d.ts +1 -1
- package/build/features/business/screens/BusinessType/LicenseType.d.ts +26 -4
- package/build/features/business/screens/Customers/CustomerLocations.d.ts +36 -9
- package/build/features/business/screens/Customers/RefundPolicy.d.ts +18 -5
- package/build/features/connect/Connect.js +4 -4
- package/build/features/connectExpress/ConnectExpress.d.ts +5 -1
- package/build/features/connectExpress/ConnectExpress.js +13 -5
- package/build/features/connectExpress/screens/AuthenticationList/EntityLicenseType.d.ts +26 -4
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseType.d.ts +26 -4
- package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.d.ts +7 -2
- package/build/features/connectExpress/screens/NID/TAC.d.ts +7 -2
- package/build/features/entity/screens/EntityCapital/ActivityList.d.ts +2 -2
- package/build/features/entity/screens/EntityName/EntityTypeList.d.ts +35 -8
- package/build/features/entity/screens/EntityName/ExpiryDate.d.ts +1 -1
- package/build/features/entity/screens/EntityName/IssuingDate.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/IsAuthorizedSwitch.d.ts +26 -4
- package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.d.ts +26 -4
- package/build/features/individual/screens/IndividualList/IndividualList.d.ts +2 -2
- package/build/features/individual/screens/IndividualPersonalInfo/Gender.d.ts +26 -4
- package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.d.ts +1 -1
- package/build/features/shared/Address/CountryList.d.ts +23 -7
- package/build/features/shared/Address/InputSelect.d.ts +23 -7
- package/build/features/shared/Background/Background.js +1 -1
- package/build/features/shared/BusinessCountry/BusinessCountry.js +1 -1
- package/build/features/shared/Button/Button.js +3 -1
- package/build/features/shared/Button/EmailProvidersButtons.js +2 -0
- package/build/features/shared/Input/Input.d.ts +2 -2
- package/build/features/shared/UploadFile/FileUpload.d.ts +7 -2
- package/build/features/shared/UploadFile/UploadFile.d.ts +7 -2
- package/build/features/shared/UploadFile/UploadWrapper.d.ts +7 -2
- package/build/features/shared/UploadMultipleFile/UploadFile.d.ts +7 -2
- package/build/features/shared/UploadMultipleFile/UploadMultipleFile.d.ts +7 -2
- package/build/index.css +340 -120
- package/build/theme/components.js +7 -0
- package/build/utils/array.js +2 -2
- package/build/utils/common.js +3 -3
- package/package.json +2 -2
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export declare const InputContainerStyled: import("@emotion/styled").StyledComponent<import("@mui/system").
|
|
2
|
+
export declare const InputContainerStyled: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material/styles").Theme> & {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
component?: React.ElementType<any> | undefined;
|
|
5
|
+
ref?: React.Ref<unknown> | undefined;
|
|
6
|
+
sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
|
|
7
|
+
} & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3
8
|
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
4
|
-
},
|
|
9
|
+
}, ("border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform") | "children" | "component" | "ref" | "sx"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
5
10
|
interface UploadFileProps {
|
|
6
11
|
label: string;
|
|
7
12
|
required?: boolean;
|
|
@@ -2,9 +2,14 @@ import React from 'react';
|
|
|
2
2
|
import { Control, FieldValues } from 'react-hook-form';
|
|
3
3
|
import { FileDetails } from '../../../@types';
|
|
4
4
|
import { FileRemoveType } from '../../../constants';
|
|
5
|
-
export declare const InputContainerStyled: import("@emotion/styled").StyledComponent<import("@mui/system").
|
|
5
|
+
export declare const InputContainerStyled: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material/styles").Theme> & {
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
component?: React.ElementType<any> | undefined;
|
|
8
|
+
ref?: React.Ref<unknown> | undefined;
|
|
9
|
+
sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
|
|
10
|
+
} & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
6
11
|
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
7
|
-
},
|
|
12
|
+
}, ("border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform") | "children" | "component" | "ref" | "sx"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
8
13
|
interface UploadWrapperProps {
|
|
9
14
|
id: string;
|
|
10
15
|
control: Control<FieldValues, any>;
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { SxProps, Theme } from '@mui/material/styles';
|
|
3
3
|
import { FileInfo, FileType } from '../../../constants';
|
|
4
|
-
export declare const InputContainerStyled: import("@emotion/styled").StyledComponent<import("@mui/system").
|
|
4
|
+
export declare const InputContainerStyled: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<Theme> & {
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
component?: React.ElementType<any> | undefined;
|
|
7
|
+
ref?: React.Ref<unknown> | undefined;
|
|
8
|
+
sx?: SxProps<Theme> | undefined;
|
|
9
|
+
} & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
5
10
|
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
6
|
-
},
|
|
11
|
+
}, ("border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform") | "children" | "component" | "ref" | "sx"> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
|
|
7
12
|
export type UploadFileProps = {
|
|
8
13
|
index: number;
|
|
9
14
|
purpose: string;
|
|
@@ -2,9 +2,14 @@ import React from 'react';
|
|
|
2
2
|
import { Control, FieldValues } from 'react-hook-form';
|
|
3
3
|
import { FileDetails } from '../../../@types';
|
|
4
4
|
import { FileType } from '../../../constants';
|
|
5
|
-
export declare const InputContainerStyled: import("@emotion/styled").StyledComponent<import("@mui/system").
|
|
5
|
+
export declare const InputContainerStyled: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material/styles").Theme> & {
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
component?: React.ElementType<any> | undefined;
|
|
8
|
+
ref?: React.Ref<unknown> | undefined;
|
|
9
|
+
sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
|
|
10
|
+
} & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
6
11
|
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
7
|
-
},
|
|
12
|
+
}, ("border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform") | "children" | "component" | "ref" | "sx"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
8
13
|
interface UploadMultipleFileProps {
|
|
9
14
|
id: string;
|
|
10
15
|
control: Control<FieldValues, any>;
|
package/build/index.css
CHANGED
|
@@ -3,138 +3,358 @@
|
|
|
3
3
|
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');
|
|
4
4
|
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300&display=swap');
|
|
5
5
|
@import url('https://fonts.googleapis.com/css?family=Tajawal&display=swap');
|
|
6
|
+
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
|
|
7
|
+
|
|
8
|
+
/* Document
|
|
9
|
+
========================================================================== */
|
|
10
|
+
* {
|
|
11
|
+
word-break: normal;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* 1. Correct the line height in all browsers.
|
|
16
|
+
* 2. Prevent adjustments of font size after orientation changes in iOS.
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
html {
|
|
20
|
+
line-height: 1.15; /* 1 */
|
|
21
|
+
-webkit-text-size-adjust: 100%; /* 2 */
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/* Sections
|
|
25
|
+
========================================================================== */
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Remove the margin in all browsers.
|
|
29
|
+
*/
|
|
30
|
+
|
|
31
|
+
body {
|
|
32
|
+
margin: 0;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Render the `main` element consistently in IE.
|
|
37
|
+
*/
|
|
38
|
+
|
|
39
|
+
main {
|
|
40
|
+
display: block;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Correct the font size and margin on `h1` elements within `section` and
|
|
45
|
+
* `article` contexts in Chrome, Firefox, and Safari.
|
|
46
|
+
*/
|
|
47
|
+
|
|
48
|
+
h1 {
|
|
49
|
+
font-size: 2em;
|
|
50
|
+
margin: 0.67em 0;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/* Grouping content
|
|
54
|
+
========================================================================== */
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* 1. Add the correct box sizing in Firefox.
|
|
58
|
+
* 2. Show the overflow in Edge and IE.
|
|
59
|
+
*/
|
|
60
|
+
|
|
61
|
+
hr {
|
|
62
|
+
box-sizing: content-box; /* 1 */
|
|
63
|
+
height: 0; /* 1 */
|
|
64
|
+
overflow: visible; /* 2 */
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* 1. Correct the inheritance and scaling of font size in all browsers.
|
|
69
|
+
* 2. Correct the odd `em` font sizing in all browsers.
|
|
70
|
+
*/
|
|
71
|
+
|
|
72
|
+
pre {
|
|
73
|
+
font-family: monospace, monospace; /* 1 */
|
|
74
|
+
font-size: 1em; /* 2 */
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/* Text-level semantics
|
|
78
|
+
========================================================================== */
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Remove the gray background on active links in IE 10.
|
|
82
|
+
*/
|
|
83
|
+
|
|
84
|
+
a {
|
|
85
|
+
background-color: transparent;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* 1. Remove the bottom border in Chrome 57-
|
|
90
|
+
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
|
|
91
|
+
*/
|
|
92
|
+
|
|
93
|
+
abbr[title] {
|
|
94
|
+
border-bottom: none; /* 1 */
|
|
95
|
+
text-decoration: underline; /* 2 */
|
|
96
|
+
text-decoration: underline dotted; /* 2 */
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Add the correct font weight in Chrome, Edge, and Safari.
|
|
101
|
+
*/
|
|
102
|
+
|
|
103
|
+
b,
|
|
104
|
+
strong {
|
|
105
|
+
font-weight: bolder;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* 1. Correct the inheritance and scaling of font size in all browsers.
|
|
110
|
+
* 2. Correct the odd `em` font sizing in all browsers.
|
|
111
|
+
*/
|
|
6
112
|
|
|
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
113
|
code,
|
|
35
|
-
del,
|
|
36
|
-
dfn,
|
|
37
|
-
em,
|
|
38
|
-
img,
|
|
39
|
-
ins,
|
|
40
114
|
kbd,
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
115
|
+
samp {
|
|
116
|
+
font-family: monospace, monospace; /* 1 */
|
|
117
|
+
font-size: 1em; /* 2 */
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Add the correct font size in all browsers.
|
|
122
|
+
*/
|
|
123
|
+
|
|
124
|
+
small {
|
|
125
|
+
font-size: 80%;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Prevent `sub` and `sup` elements from affecting the line height in
|
|
130
|
+
* all browsers.
|
|
131
|
+
*/
|
|
132
|
+
|
|
47
133
|
sub,
|
|
48
|
-
sup
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
134
|
+
sup {
|
|
135
|
+
font-size: 75%;
|
|
136
|
+
line-height: 0;
|
|
137
|
+
position: relative;
|
|
138
|
+
vertical-align: baseline;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
sub {
|
|
142
|
+
bottom: -0.25em;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
sup {
|
|
146
|
+
top: -0.5em;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/* Embedded content
|
|
150
|
+
========================================================================== */
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Remove the border on images inside links in IE 10.
|
|
154
|
+
*/
|
|
155
|
+
|
|
156
|
+
img {
|
|
157
|
+
border-style: none;
|
|
158
|
+
object-fit: unset;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
/* Forms
|
|
162
|
+
========================================================================== */
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* 1. Change the font styles in all browsers.
|
|
166
|
+
* 2. Remove the margin in Firefox and Safari.
|
|
167
|
+
*/
|
|
168
|
+
|
|
169
|
+
button,
|
|
170
|
+
input,
|
|
171
|
+
optgroup,
|
|
172
|
+
select,
|
|
173
|
+
textarea {
|
|
174
|
+
font-family: inherit; /* 1 */
|
|
175
|
+
font-size: 100%; /* 1 */
|
|
176
|
+
line-height: 1.15; /* 1 */
|
|
177
|
+
margin: 0; /* 2 */
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* Show the overflow in IE.
|
|
182
|
+
* 1. Show the overflow in Edge.
|
|
183
|
+
*/
|
|
184
|
+
|
|
185
|
+
button,
|
|
186
|
+
input {
|
|
187
|
+
/* 1 */
|
|
188
|
+
overflow: visible;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* Remove the inheritance of text transform in Edge, Firefox, and IE.
|
|
193
|
+
* 1. Remove the inheritance of text transform in Firefox.
|
|
194
|
+
*/
|
|
195
|
+
|
|
196
|
+
button,
|
|
197
|
+
select {
|
|
198
|
+
/* 1 */
|
|
199
|
+
text-transform: none;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* Correct the inability to style clickable types in iOS and Safari.
|
|
204
|
+
*/
|
|
205
|
+
|
|
206
|
+
button,
|
|
207
|
+
[type='button'],
|
|
208
|
+
[type='reset'],
|
|
209
|
+
[type='submit'] {
|
|
210
|
+
-webkit-appearance: button;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* Remove the inner border and padding in Firefox.
|
|
215
|
+
*/
|
|
216
|
+
|
|
217
|
+
button::-moz-focus-inner,
|
|
218
|
+
[type='button']::-moz-focus-inner,
|
|
219
|
+
[type='reset']::-moz-focus-inner,
|
|
220
|
+
[type='submit']::-moz-focus-inner {
|
|
221
|
+
border-style: none;
|
|
94
222
|
padding: 0;
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* Restore the focus styles unset by the previous rule.
|
|
227
|
+
*/
|
|
228
|
+
|
|
229
|
+
button:-moz-focusring,
|
|
230
|
+
[type='button']:-moz-focusring,
|
|
231
|
+
[type='reset']:-moz-focusring,
|
|
232
|
+
[type='submit']:-moz-focusring {
|
|
233
|
+
outline: 1px dotted ButtonText;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* Correct the padding in Firefox.
|
|
238
|
+
*/
|
|
239
|
+
|
|
240
|
+
fieldset {
|
|
241
|
+
padding: 0.35em 0.75em 0.625em;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* 1. Correct the text wrapping in Edge and IE.
|
|
246
|
+
* 2. Correct the color inheritance from `fieldset` elements in IE.
|
|
247
|
+
* 3. Remove the padding so developers are not caught out when they zero out
|
|
248
|
+
* `fieldset` elements in all browsers.
|
|
249
|
+
*/
|
|
250
|
+
|
|
251
|
+
legend {
|
|
252
|
+
box-sizing: border-box; /* 1 */
|
|
253
|
+
color: inherit; /* 2 */
|
|
254
|
+
display: table; /* 1 */
|
|
255
|
+
max-width: 100%; /* 1 */
|
|
256
|
+
padding: 0; /* 3 */
|
|
257
|
+
white-space: normal; /* 1 */
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
/**
|
|
261
|
+
* Add the correct vertical alignment in Chrome, Firefox, and Opera.
|
|
262
|
+
*/
|
|
263
|
+
|
|
264
|
+
progress {
|
|
98
265
|
vertical-align: baseline;
|
|
99
266
|
}
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
header,
|
|
108
|
-
hgroup,
|
|
109
|
-
menu,
|
|
110
|
-
nav,
|
|
111
|
-
section {
|
|
112
|
-
display: block;
|
|
267
|
+
|
|
268
|
+
/**
|
|
269
|
+
* Remove the default vertical scrollbar in IE 10+.
|
|
270
|
+
*/
|
|
271
|
+
|
|
272
|
+
textarea {
|
|
273
|
+
overflow: auto;
|
|
113
274
|
}
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* 1. Add the correct box sizing in IE 10.
|
|
278
|
+
* 2. Remove the padding in IE 10.
|
|
279
|
+
*/
|
|
280
|
+
|
|
281
|
+
[type='checkbox'],
|
|
282
|
+
[type='radio'] {
|
|
283
|
+
box-sizing: border-box; /* 1 */
|
|
284
|
+
padding: 0; /* 2 */
|
|
117
285
|
}
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
* Correct the cursor style of increment and decrement buttons in Chrome.
|
|
289
|
+
*/
|
|
290
|
+
|
|
291
|
+
[type='number']::-webkit-inner-spin-button,
|
|
292
|
+
[type='number']::-webkit-outer-spin-button {
|
|
293
|
+
height: auto;
|
|
121
294
|
}
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* 1. Correct the odd appearance in Chrome and Safari.
|
|
298
|
+
* 2. Correct the outline style in Safari.
|
|
299
|
+
*/
|
|
300
|
+
|
|
301
|
+
[type='search'] {
|
|
302
|
+
-webkit-appearance: textfield; /* 1 */
|
|
303
|
+
outline-offset: -2px; /* 2 */
|
|
125
304
|
}
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
305
|
+
|
|
306
|
+
/**
|
|
307
|
+
* Remove the inner padding in Chrome and Safari on macOS.
|
|
308
|
+
*/
|
|
309
|
+
|
|
310
|
+
[type='search']::-webkit-search-decoration {
|
|
311
|
+
-webkit-appearance: none;
|
|
132
312
|
}
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
313
|
+
|
|
314
|
+
/**
|
|
315
|
+
* 1. Correct the inability to style clickable types in iOS and Safari.
|
|
316
|
+
* 2. Change font properties to `inherit` in Safari.
|
|
317
|
+
*/
|
|
318
|
+
|
|
319
|
+
::-webkit-file-upload-button {
|
|
320
|
+
-webkit-appearance: button; /* 1 */
|
|
321
|
+
font: inherit; /* 2 */
|
|
136
322
|
}
|
|
137
323
|
|
|
138
|
-
|
|
139
|
-
|
|
324
|
+
/* Interactive
|
|
325
|
+
========================================================================== */
|
|
326
|
+
|
|
327
|
+
/*
|
|
328
|
+
* Add the correct display in Edge, IE 10+, and Firefox.
|
|
329
|
+
*/
|
|
330
|
+
|
|
331
|
+
details {
|
|
332
|
+
display: block;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
/*
|
|
336
|
+
* Add the correct display in all browsers.
|
|
337
|
+
*/
|
|
338
|
+
|
|
339
|
+
summary {
|
|
340
|
+
display: list-item;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
/* Misc
|
|
344
|
+
========================================================================== */
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* Add the correct display in IE 10+.
|
|
348
|
+
*/
|
|
349
|
+
|
|
350
|
+
template {
|
|
351
|
+
display: none;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
/**
|
|
355
|
+
* Add the correct display in IE 10.
|
|
356
|
+
*/
|
|
357
|
+
|
|
358
|
+
[hidden] {
|
|
359
|
+
display: none;
|
|
140
360
|
}
|
package/build/utils/array.js
CHANGED
|
@@ -192,7 +192,7 @@ export var getFileDetailsFromDocument = function (documents, purpose) {
|
|
|
192
192
|
if ((documents || []).length === 0)
|
|
193
193
|
return [];
|
|
194
194
|
return documents.reduce(function (acc, document) {
|
|
195
|
-
var fileDetails = (document.file_details || []).filter(function (file) { return file.purpose
|
|
195
|
+
var fileDetails = (document.file_details || []).filter(function (file) { return purpose.includes(file.purpose); });
|
|
196
196
|
return acc.concat(fileDetails.map(function (f) { return (__assign(__assign({}, f), { docId: document.id })); }));
|
|
197
197
|
}, []);
|
|
198
198
|
};
|
|
@@ -200,7 +200,7 @@ export var getRecentDocumentBasedOnPurpose = function (documents, purpose) {
|
|
|
200
200
|
if ((documents || []).length === 0)
|
|
201
201
|
return [];
|
|
202
202
|
var filteredByPurpose = documents.filter(function (doc) {
|
|
203
|
-
return doc.type
|
|
203
|
+
return purpose.includes(doc.type);
|
|
204
204
|
});
|
|
205
205
|
if ((filteredByPurpose || []).length > 0) {
|
|
206
206
|
return filteredByPurpose.sort(function (a, b) { return b.created - a.created; })[0];
|
package/build/utils/common.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { axiosInstance } from '../api';
|
|
2
|
-
import { ENDPOINT_PATHS,
|
|
2
|
+
import { ENDPOINT_PATHS, CONNECT_DEV_URL, CONNECT_PROD_URL } from '../constants';
|
|
3
3
|
export var sleep = function (milliseconds) {
|
|
4
4
|
if (milliseconds === void 0) { milliseconds = 1000; }
|
|
5
5
|
return new Promise(function (resolve) { return setTimeout(resolve, milliseconds); });
|
|
@@ -16,7 +16,7 @@ export var setBaseUrl = function (publicKey) {
|
|
|
16
16
|
axiosInstance.defaults.baseURL = ENDPOINT_PATHS.PRODUCTION_BASE_URL;
|
|
17
17
|
return;
|
|
18
18
|
}
|
|
19
|
-
axiosInstance.defaults.baseURL = ENDPOINT_PATHS.
|
|
19
|
+
axiosInstance.defaults.baseURL = ENDPOINT_PATHS.DEV_BASE_URL;
|
|
20
20
|
};
|
|
21
21
|
export var updateLocationUrlWithCountry = function (countryIso2) {
|
|
22
22
|
var country = countryIso2.toLowerCase();
|
|
@@ -35,7 +35,7 @@ export var updateLocationUrlWithCountry = function (countryIso2) {
|
|
|
35
35
|
window.history.replaceState({}, '', newUrl);
|
|
36
36
|
};
|
|
37
37
|
export var openConnect = function (pk, countryCode) {
|
|
38
|
-
var newUrl = new URL(pk.includes('pk_live') ? CONNECT_PROD_URL :
|
|
38
|
+
var newUrl = new URL(pk.includes('pk_live') ? CONNECT_PROD_URL : CONNECT_DEV_URL);
|
|
39
39
|
if (countryCode) {
|
|
40
40
|
newUrl.pathname = "/".concat(countryCode.toLowerCase());
|
|
41
41
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tap-payments/auth-jsconnect",
|
|
3
|
-
"version": "2.8.
|
|
3
|
+
"version": "2.8.57-development",
|
|
4
4
|
"description": "connect library, auth",
|
|
5
5
|
"private": false,
|
|
6
6
|
"main": "build/index.js",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"copy:files": "copyfiles -u 1 src/**/*.css build/",
|
|
22
22
|
"tsc:alias": "tsc-alias -p tsconfig.json",
|
|
23
23
|
"ts:build": "rm -rf build && tsc -p tsconfig.json && tsc-alias -p tsconfig.json && yarn copy:files",
|
|
24
|
-
"push": "npm publish --access public --tag
|
|
24
|
+
"push": "npm publish --access public --tag development"
|
|
25
25
|
},
|
|
26
26
|
"keywords": [],
|
|
27
27
|
"author": {
|