@tap-payments/auth-jsconnect 2.6.30-test → 2.6.32-test

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 CHANGED
@@ -158,10 +158,10 @@ const App = () => {
158
158
  | publicKey `required` - `string` | merchant public key |
159
159
  | appInfo `required` | it's an object from type `AppInfo` |
160
160
  | businessCountryCode `required` - `string` | merchant country code and it should be the ISO2 of the country |
161
+ | scope `required` - `string` | it's an string |
161
162
  | language `required` - `string` | it can be `en`or `ar` |
162
163
  | onError `required` - `function` | callback function will call in case of any error happened |
163
164
  | onFlowCompleted `required` - `function` | callback function will called after completing the flow |
164
165
  | onReady `required` - `function` | callback function will call after loading library configuration |
165
166
  | onStepError `required` - `function` | callback function will call in case if any error happened in the screen |
166
167
  | onStepStarted `required` - `function` | callback function will call in the begging of each step |
167
- | scope `required` - `string` | it's an string |
@@ -15,7 +15,7 @@ export var MAX_FILE_SIZE = 5000000;
15
15
  export var MAX_FILE_SIZE_FOUR_MB = 4000000;
16
16
  export var VALID_FILE_FORMATS = ['image/jpeg', 'image/png', 'image/jpg', 'application/pdf'];
17
17
  export var VALID_FILE_FORMATS_FOR_IMAGE = ['image/jpeg', 'image/png', 'image/jpg'];
18
- export var REGEX_FULL_NAME = /^([a-zA-Z]{2,}\s{1}[a-zA-Z]{1,}|[a-zA-Z]+\s{1}[a-zA-Z.-]{1,}\s{1}[a-zA-Z.-]{1,}\s{1}[a-zA-Z]{1,}|[a-zA-Z]+\s{1}[a-zA-Z.-]{1,}\s{1}[a-zA-Z]{1,})$/g;
18
+ export var REGEX_FULL_NAME = /^(?:\w{3,}\s)+\w{3,}$/g;
19
19
  export var REGEX_WEBSITE = /^[a-zA-Z0-9]+([\-\.]{1}[a-zA-Z0-9]+)*\.[a-zA-Z]{2,63}(:[0-9]{1,5})?(\/.*)?$/;
20
20
  export var REGEX_BENEFICIARY_NAME = /^([\u0600-\u065F\u066A-\u06EF\u06FA-\u06FFa-zA-Z()\s])*$/g;
21
21
  export var REGEX_ALPHANUMERIC = /^[a-zA-Z0-9!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/? ]*$/g;
@@ -52,12 +52,11 @@ var Board = memo(function (_a) {
52
52
  }, []);
53
53
  React.useEffect(function () {
54
54
  if (data.isValidOperator && props.open && !settingLoading) {
55
- console.log('data', data);
56
55
  dispatch(createVerifyTokenBy(boardId));
57
56
  }
58
57
  }, [data.isValidOperator, settingLoading]);
59
58
  var initialLoading = settingLoading || customLoading;
60
- return (_jsx(ThemeProvider, __assign({ theme: theme }, { children: _jsx(Background, __assign({ open: open, isTapOrigin: isTapOrigin, loading: initialLoading }, { children: _jsx(AnimationFlow, __assign({ pointerEvents: loading ? 'none' : 'auto', isTapOrigin: isTapOrigin, loading: initialLoading, error: error, open: open, breakpoint: 'sm', screenId: activeScreen.name, merchantInfo: merchant, isMaturityExpress: isMaturityExpress }, { children: _jsx(FeatureContainer, __assign({ isMaturityExpress: isMaturityExpress }, { children: boardFeatureScreens.map(function (_a, index) {
59
+ return (_jsx(ThemeProvider, __assign({ theme: theme }, { children: _jsx(Background, __assign({ open: open, isTapOrigin: isTapOrigin, loading: initialLoading }, { children: _jsx(AnimationFlow, __assign({ pointerEvents: loading ? 'none' : 'auto', isTapOrigin: isTapOrigin, loading: initialLoading, error: error, open: open, breakpoint: 'sm', screenId: activeScreen.name, merchantInfo: merchant, isMaturityExpress: !isTapOrigin }, { children: _jsx(FeatureContainer, __assign({ isMaturityExpress: isMaturityExpress }, { children: boardFeatureScreens.map(function (_a, index) {
61
60
  var Element = _a.element, name = _a.name;
62
61
  var isActive = activeScreen.name === name;
63
62
  return (_jsx(Collapse, __assign({ in: isActive, timeout: { enter: 1000, exit: 800 } }, { children: _jsx(Element, {}) }), index));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tap-payments/auth-jsconnect",
3
- "version": "2.6.30-test",
3
+ "version": "2.6.32-test",
4
4
  "description": "connect library, auth",
5
5
  "private": false,
6
6
  "main": "build/index.js",