react-nomba-checkout-sdk 2.0.1 → 2.0.5
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/dist/apis/useNombaCheckout.d.ts +3 -0
- package/dist/index.esm.js +2 -10
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +2 -10
- package/dist/index.js.map +1 -1
- package/package.json +75 -74
- package/src/apis/useNombaCheckout.ts +59 -55
- package/src/components/NombaCheckoutModal.tsx +3 -0
package/dist/index.js
CHANGED
|
@@ -4044,6 +4044,7 @@ var useNombaCheckout = function (payload) { return __awaiter(undefined, undefine
|
|
|
4044
4044
|
switch (_d.label) {
|
|
4045
4045
|
case 0:
|
|
4046
4046
|
_d.trys.push([0, 2, , 3]);
|
|
4047
|
+
console.log('🔗 Using LOCAL SDK version!', payload.order.orderMetaData);
|
|
4047
4048
|
return [4 /*yield*/, handleNombaApiCall('/checkout/order', 'POST', {
|
|
4048
4049
|
order: __assign(__assign({}, payload.order), { accountId: payload.accountId }),
|
|
4049
4050
|
tokenizeCard: payload.tokenizeCard,
|
|
@@ -4159,16 +4160,7 @@ var modalStyles = {
|
|
|
4159
4160
|
alignItems: 'center',
|
|
4160
4161
|
zIndex: 9999,
|
|
4161
4162
|
},
|
|
4162
|
-
modal: {
|
|
4163
|
-
backgroundColor: 'white',
|
|
4164
|
-
width: '100%',
|
|
4165
|
-
maxWidth: '60vw',
|
|
4166
|
-
borderRadius: '8px',
|
|
4167
|
-
boxShadow: '0 4px 8px rgba(0, 0, 0, 0.1)',
|
|
4168
|
-
position: 'relative',
|
|
4169
|
-
height: '600px',
|
|
4170
|
-
maxHeight: '95vh',
|
|
4171
|
-
},
|
|
4163
|
+
modal: __assign({ backgroundColor: 'white', width: '100%', maxWidth: '60vw', borderRadius: '8px', boxShadow: '0 4px 8px rgba(0, 0, 0, 0.1)', position: 'relative', height: '600px', maxHeight: '95vh' }, (window.innerWidth <= 768 ? { width: '98vw', maxWidth: '98vw' } : {})),
|
|
4172
4164
|
header: {
|
|
4173
4165
|
position: 'relative',
|
|
4174
4166
|
display: 'flex',
|