@paystack/inline-js 2.25.0-dev.2 → 2.25.0-dev.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.
- package/dist/inline.js +5 -2
- package/es/inline.js +5 -2
- package/lib/inline.js +5 -2
- package/package.json +1 -1
package/dist/inline.js
CHANGED
|
@@ -390,7 +390,7 @@ var PaystackPop = (function () {
|
|
|
390
390
|
return "\n #paystack-payment-request-inner-wrapper {\n display: flex;\n flex-direction: ".concat(isVertical ? 'column' : 'row', ";\n gap: 8px;\n width: 100%;\n max-width: 100%;\n ").concat(isVertical ? '' : "height: ".concat(PAYMENT_REQUEST_BUTTON_HEIGHT, ";"), "\n }\n\n #paystack-payment-request-inner-wrapper > * {\n flex: 1;\n min-width: 0;\n height: ").concat(isVertical ? PAYMENT_REQUEST_BUTTON_HEIGHT : '100%', ";\n }\n\n #paystack-payment-request-inner-wrapper > apple-pay-button,\n #paystack-payment-request-inner-wrapper > #apple-pay-button {\n order: 1;\n }\n #paystack-payment-request-inner-wrapper > #google-pay-button-container,\n #paystack-payment-request-inner-wrapper > #google-pay-loading-button {\n order: 2;\n }\n");
|
|
391
391
|
};
|
|
392
392
|
var generateGooglePayCSS = function generateGooglePayCSS() {
|
|
393
|
-
return "\n #google-pay-button-container {\n width: 100%;\n max-width: 100%;\n overflow: hidden;\n }\n #google-pay-button-container > div,\n #google-pay-button-container button,\n #google-pay-button-container iframe {\n width: 100%;\n min-width: 100%;\n max-width: 100%;\n height: 100%;\n }\n";
|
|
393
|
+
return "\n #google-pay-button-container {\n width: 100%;\n max-width: 100%;\n overflow: hidden;\n }\n #google-pay-button-container:empty {\n display: none;\n }\n #google-pay-button-container > div,\n #google-pay-button-container button,\n #google-pay-button-container iframe {\n width: 100%;\n min-width: 100%;\n max-width: 100%;\n height: 100%;\n }\n #google-pay-button-container button {\n outline: none !important;\n }\n";
|
|
394
394
|
};
|
|
395
395
|
var generateGooglePayLoadingCSS = function generateGooglePayLoadingCSS() {
|
|
396
396
|
var _ref3 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
@@ -941,7 +941,10 @@ var PaystackPop = (function () {
|
|
|
941
941
|
container.appendChild(buttonContainer);
|
|
942
942
|
var client = getGooglePayClient(resolveGooglePayEnvironment(transaction.response));
|
|
943
943
|
var button = client.createButton(_objectSpread2(_objectSpread2({
|
|
944
|
-
buttonColor: styles.theme === PAYMENT_REQUEST_BUTTON_THEME.LIGHT ? 'white' : 'black'
|
|
944
|
+
buttonColor: styles.theme === PAYMENT_REQUEST_BUTTON_THEME.LIGHT ? 'white' : 'black',
|
|
945
|
+
buttonType: 'pay',
|
|
946
|
+
buttonSizeMode: 'fill',
|
|
947
|
+
buttonRadius: GOOGLE_PAY_BUTTON_RADIUS
|
|
945
948
|
}, googlePayStyles), {}, {
|
|
946
949
|
onClick: onClick,
|
|
947
950
|
allowedPaymentMethods: [buildCardPaymentMethod(googlePayConfig, getSupportedAuthMethods(googlePayConfig))]
|
package/es/inline.js
CHANGED
|
@@ -387,7 +387,7 @@ var generatePaymentRequestInnerWrapperCSS = function generatePaymentRequestInner
|
|
|
387
387
|
return "\n #paystack-payment-request-inner-wrapper {\n display: flex;\n flex-direction: ".concat(isVertical ? 'column' : 'row', ";\n gap: 8px;\n width: 100%;\n max-width: 100%;\n ").concat(isVertical ? '' : "height: ".concat(PAYMENT_REQUEST_BUTTON_HEIGHT, ";"), "\n }\n\n #paystack-payment-request-inner-wrapper > * {\n flex: 1;\n min-width: 0;\n height: ").concat(isVertical ? PAYMENT_REQUEST_BUTTON_HEIGHT : '100%', ";\n }\n\n #paystack-payment-request-inner-wrapper > apple-pay-button,\n #paystack-payment-request-inner-wrapper > #apple-pay-button {\n order: 1;\n }\n #paystack-payment-request-inner-wrapper > #google-pay-button-container,\n #paystack-payment-request-inner-wrapper > #google-pay-loading-button {\n order: 2;\n }\n");
|
|
388
388
|
};
|
|
389
389
|
var generateGooglePayCSS = function generateGooglePayCSS() {
|
|
390
|
-
return "\n #google-pay-button-container {\n width: 100%;\n max-width: 100%;\n overflow: hidden;\n }\n #google-pay-button-container > div,\n #google-pay-button-container button,\n #google-pay-button-container iframe {\n width: 100%;\n min-width: 100%;\n max-width: 100%;\n height: 100%;\n }\n";
|
|
390
|
+
return "\n #google-pay-button-container {\n width: 100%;\n max-width: 100%;\n overflow: hidden;\n }\n #google-pay-button-container:empty {\n display: none;\n }\n #google-pay-button-container > div,\n #google-pay-button-container button,\n #google-pay-button-container iframe {\n width: 100%;\n min-width: 100%;\n max-width: 100%;\n height: 100%;\n }\n #google-pay-button-container button {\n outline: none !important;\n }\n";
|
|
391
391
|
};
|
|
392
392
|
var generateGooglePayLoadingCSS = function generateGooglePayLoadingCSS() {
|
|
393
393
|
var _ref3 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
@@ -938,7 +938,10 @@ function mountGooglePayButton(container, _ref3) {
|
|
|
938
938
|
container.appendChild(buttonContainer);
|
|
939
939
|
var client = getGooglePayClient(resolveGooglePayEnvironment(transaction.response));
|
|
940
940
|
var button = client.createButton(_objectSpread2(_objectSpread2({
|
|
941
|
-
buttonColor: styles.theme === PAYMENT_REQUEST_BUTTON_THEME.LIGHT ? 'white' : 'black'
|
|
941
|
+
buttonColor: styles.theme === PAYMENT_REQUEST_BUTTON_THEME.LIGHT ? 'white' : 'black',
|
|
942
|
+
buttonType: 'pay',
|
|
943
|
+
buttonSizeMode: 'fill',
|
|
944
|
+
buttonRadius: GOOGLE_PAY_BUTTON_RADIUS
|
|
942
945
|
}, googlePayStyles), {}, {
|
|
943
946
|
onClick: onClick,
|
|
944
947
|
allowedPaymentMethods: [buildCardPaymentMethod(googlePayConfig, getSupportedAuthMethods(googlePayConfig))]
|
package/lib/inline.js
CHANGED
|
@@ -389,7 +389,7 @@ var generatePaymentRequestInnerWrapperCSS = function generatePaymentRequestInner
|
|
|
389
389
|
return "\n #paystack-payment-request-inner-wrapper {\n display: flex;\n flex-direction: ".concat(isVertical ? 'column' : 'row', ";\n gap: 8px;\n width: 100%;\n max-width: 100%;\n ").concat(isVertical ? '' : "height: ".concat(PAYMENT_REQUEST_BUTTON_HEIGHT, ";"), "\n }\n\n #paystack-payment-request-inner-wrapper > * {\n flex: 1;\n min-width: 0;\n height: ").concat(isVertical ? PAYMENT_REQUEST_BUTTON_HEIGHT : '100%', ";\n }\n\n #paystack-payment-request-inner-wrapper > apple-pay-button,\n #paystack-payment-request-inner-wrapper > #apple-pay-button {\n order: 1;\n }\n #paystack-payment-request-inner-wrapper > #google-pay-button-container,\n #paystack-payment-request-inner-wrapper > #google-pay-loading-button {\n order: 2;\n }\n");
|
|
390
390
|
};
|
|
391
391
|
var generateGooglePayCSS = function generateGooglePayCSS() {
|
|
392
|
-
return "\n #google-pay-button-container {\n width: 100%;\n max-width: 100%;\n overflow: hidden;\n }\n #google-pay-button-container > div,\n #google-pay-button-container button,\n #google-pay-button-container iframe {\n width: 100%;\n min-width: 100%;\n max-width: 100%;\n height: 100%;\n }\n";
|
|
392
|
+
return "\n #google-pay-button-container {\n width: 100%;\n max-width: 100%;\n overflow: hidden;\n }\n #google-pay-button-container:empty {\n display: none;\n }\n #google-pay-button-container > div,\n #google-pay-button-container button,\n #google-pay-button-container iframe {\n width: 100%;\n min-width: 100%;\n max-width: 100%;\n height: 100%;\n }\n #google-pay-button-container button {\n outline: none !important;\n }\n";
|
|
393
393
|
};
|
|
394
394
|
var generateGooglePayLoadingCSS = function generateGooglePayLoadingCSS() {
|
|
395
395
|
var _ref3 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
@@ -940,7 +940,10 @@ function mountGooglePayButton(container, _ref3) {
|
|
|
940
940
|
container.appendChild(buttonContainer);
|
|
941
941
|
var client = getGooglePayClient(resolveGooglePayEnvironment(transaction.response));
|
|
942
942
|
var button = client.createButton(_objectSpread2(_objectSpread2({
|
|
943
|
-
buttonColor: styles.theme === PAYMENT_REQUEST_BUTTON_THEME.LIGHT ? 'white' : 'black'
|
|
943
|
+
buttonColor: styles.theme === PAYMENT_REQUEST_BUTTON_THEME.LIGHT ? 'white' : 'black',
|
|
944
|
+
buttonType: 'pay',
|
|
945
|
+
buttonSizeMode: 'fill',
|
|
946
|
+
buttonRadius: GOOGLE_PAY_BUTTON_RADIUS
|
|
944
947
|
}, googlePayStyles), {}, {
|
|
945
948
|
onClick: onClick,
|
|
946
949
|
allowedPaymentMethods: [buildCardPaymentMethod(googlePayConfig, getSupportedAuthMethods(googlePayConfig))]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paystack/inline-js",
|
|
3
|
-
"version": "2.25.0-dev.
|
|
3
|
+
"version": "2.25.0-dev.3",
|
|
4
4
|
"description": "Client-side library to load the Paystack checkout form",
|
|
5
5
|
"packageManager": "pnpm@10.33.4+sha512.1c67b3b359b2d408119ba1ed289f34b8fc3c6873412bec6fd264fbdc82489e510fcbecb9ce9d22dae7f3b76269d8441046014bdca53b9979cd7a561ad631b800",
|
|
6
6
|
"main": "lib/inline.js",
|