@tap-payments/auth-jsconnect 2.6.32-test → 2.6.33-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.
@@ -70,7 +70,6 @@ var BusinessCountryScreen = function (_a) {
70
70
  var defaultValue = React.useMemo(function () {
71
71
  var _a, _b;
72
72
  var value = ((_a = settingsData.businessCountry) === null || _a === void 0 ? void 0 : _a.iso2) || ((_b = settingsData.ipCountry) === null || _b === void 0 ? void 0 : _b.iso2);
73
- setListOpen(!!value);
74
73
  return value;
75
74
  }, [settingsData.businessCountry, settingsData.ipCountry]);
76
75
  var onSelectCountry = function (iso2) { return __awaiter(void 0, void 0, void 0, function () {
@@ -135,7 +135,7 @@ var ConnectExpress = memo(function (_a) {
135
135
  }
136
136
  }
137
137
  }, [data.isValidOperator, settingLoading]);
138
- return (_jsx(ThemeProvider, __assign({ theme: theme }, { children: _jsx(Background, __assign({ open: open, isTapOrigin: isTapOrigin, loading: settingLoading || customLoading }, { children: _jsx(AnimationFlow, __assign({ pointerEvents: loading ? 'none' : 'auto', isTapOrigin: isTapOrigin, loading: settingLoading || customLoading, error: error, open: open, screenId: activeScreen.name, merchantInfo: merchant, isMaturityExpress: true }, { children: _jsx(FeatureContainer, __assign({ isMaturityExpress: true }, { children: connectExpressFeatureScreens.map(function (_a, index) {
138
+ return (_jsx(ThemeProvider, __assign({ theme: theme }, { children: _jsx(Background, __assign({ open: open, isTapOrigin: isTapOrigin, loading: settingLoading || customLoading }, { children: _jsx(AnimationFlow, __assign({ pointerEvents: loading ? 'none' : 'auto', isTapOrigin: isTapOrigin, loading: settingLoading || customLoading, error: error, open: open, screenId: activeScreen.name, merchantInfo: merchant, isMaturityExpress: !isTapOrigin }, { children: _jsx(FeatureContainer, __assign({ isMaturityExpress: true }, { children: connectExpressFeatureScreens.map(function (_a, index) {
139
139
  var Element = _a.element, name = _a.name;
140
140
  var isActive = activeScreen.name === name;
141
141
  return (_jsx(Collapse, __assign({ in: isActive, timeout: { enter: 1000, exit: 800 } }, { children: _jsx(Element, {}) }), index));
@@ -70,7 +70,6 @@ var BusinessCountryScreen = function (_a) {
70
70
  var defaultValue = React.useMemo(function () {
71
71
  var _a, _b;
72
72
  var value = ((_a = settingsData.businessCountry) === null || _a === void 0 ? void 0 : _a.iso2) || ((_b = settingsData.ipCountry) === null || _b === void 0 ? void 0 : _b.iso2);
73
- setListOpen(!!value);
74
73
  return value;
75
74
  }, [settingsData.businessCountry, settingsData.ipCountry]);
76
75
  var onSelectCountry = function (iso2) { return __awaiter(void 0, void 0, void 0, function () {
@@ -9,6 +9,7 @@ interface BusinessCountryProps {
9
9
  defaultCountryIso2: string;
10
10
  onSelectCountry: (iso2: string) => void;
11
11
  sx?: SxProps<Theme>;
12
+ open?: boolean;
12
13
  }
13
- declare const BusinessCountry: ({ sx, onListOpen, onListClose, countries, loading, defaultCountryIso2, onSelectCountry }: BusinessCountryProps) => JSX.Element;
14
+ declare const BusinessCountry: ({ open: defaultOpen, sx, onListOpen, onListClose, countries, loading, defaultCountryIso2, onSelectCountry }: BusinessCountryProps) => JSX.Element;
14
15
  export default BusinessCountry;
@@ -96,9 +96,9 @@ var CountryListStyled = styled((SimpleList))(function () { return ({
96
96
  }); });
97
97
  var BusinessCountry = function (_a) {
98
98
  var _b, _c;
99
- var sx = _a.sx, onListOpen = _a.onListOpen, onListClose = _a.onListClose, countries = _a.countries, loading = _a.loading, defaultCountryIso2 = _a.defaultCountryIso2, onSelectCountry = _a.onSelectCountry;
99
+ var defaultOpen = _a.open, sx = _a.sx, onListOpen = _a.onListOpen, onListClose = _a.onListClose, countries = _a.countries, loading = _a.loading, defaultCountryIso2 = _a.defaultCountryIso2, onSelectCountry = _a.onSelectCountry;
100
100
  var _d = React.useState(countries || []), countryList = _d[0], setCountryList = _d[1];
101
- var _e = React.useState(!!defaultCountryIso2), open = _e[0], setOpen = _e[1];
101
+ var _e = React.useState(!!defaultOpen), open = _e[0], setOpen = _e[1];
102
102
  var _f = React.useState(''), subIndex = _f[0], setSubIndex = _f[1];
103
103
  var _g = React.useState(), selectedCountry = _g[0], setSelectedCountry = _g[1];
104
104
  var t = useTranslation().t;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tap-payments/auth-jsconnect",
3
- "version": "2.6.32-test",
3
+ "version": "2.6.33-test",
4
4
  "description": "connect library, auth",
5
5
  "private": false,
6
6
  "main": "build/index.js",