@seaverse/payment-sdk 0.9.6 → 0.9.8
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 +7 -2
- package/dist/index.browser.js +14 -13
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +14 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.js +14 -13
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1887,6 +1887,9 @@ class PaymentModal {
|
|
|
1887
1887
|
onClose: options.onClose ?? (() => { }),
|
|
1888
1888
|
className: options.className ?? '',
|
|
1889
1889
|
maxWidth: options.maxWidth ?? '480px',
|
|
1890
|
+
background: options.background ?? '#ffffff',
|
|
1891
|
+
border: options.border ?? '1px solid rgba(0, 0, 0, 0.1)',
|
|
1892
|
+
borderRadius: options.borderRadius ?? '16px',
|
|
1890
1893
|
};
|
|
1891
1894
|
}
|
|
1892
1895
|
/**
|
|
@@ -2013,9 +2016,9 @@ class PaymentModal {
|
|
|
2013
2016
|
width: 100%;
|
|
2014
2017
|
max-width: ${this.options.maxWidth};
|
|
2015
2018
|
overflow-y: auto;
|
|
2016
|
-
border-radius:
|
|
2017
|
-
border:
|
|
2018
|
-
background:
|
|
2019
|
+
border-radius: ${this.options.borderRadius};
|
|
2020
|
+
border: ${this.options.border};
|
|
2021
|
+
background: ${this.options.background};
|
|
2019
2022
|
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
|
|
2020
2023
|
transform: translateY(20px);
|
|
2021
2024
|
opacity: 0;
|
|
@@ -2864,8 +2867,8 @@ const ENVIRONMENT_CONFIGS = {
|
|
|
2864
2867
|
production: {
|
|
2865
2868
|
scriptUrl: 'https://seaart-publish.sc-api.saconsole.com/payment-component/client.js',
|
|
2866
2869
|
clientId: 'XF11ik3u5AJ16IyDI3hebq5',
|
|
2867
|
-
orderApiUrl: 'https://payment.seaverse.
|
|
2868
|
-
walletApiUrl: 'https://wallet.seaverse.
|
|
2870
|
+
orderApiUrl: 'https://payment.seaverse.ai',
|
|
2871
|
+
walletApiUrl: 'https://wallet.seaverse.ai',
|
|
2869
2872
|
cssUrl: 'https://seaart-publish.sc-api.saconsole.com/payment-component/public/style.css',
|
|
2870
2873
|
},
|
|
2871
2874
|
};
|
|
@@ -8306,6 +8309,9 @@ class CreditPackageModal extends BasePackageModal {
|
|
|
8306
8309
|
closeOnOverlayClick: false, // Disable click overlay to close
|
|
8307
8310
|
closeOnEsc: false, // Disable ESC key to close
|
|
8308
8311
|
maxWidth: '1200px',
|
|
8312
|
+
background: '#0a0a0f',
|
|
8313
|
+
border: '1px solid rgba(255, 255, 255, 0.1)',
|
|
8314
|
+
borderRadius: '24px',
|
|
8309
8315
|
onClose: () => {
|
|
8310
8316
|
this.cleanup();
|
|
8311
8317
|
this.options.onClose?.();
|
|
@@ -8477,13 +8483,8 @@ class CreditPackageModal extends BasePackageModal {
|
|
|
8477
8483
|
* Apply modal styling (hook method override)
|
|
8478
8484
|
*/
|
|
8479
8485
|
applyModalStyling() {
|
|
8480
|
-
//
|
|
8481
|
-
|
|
8482
|
-
if (modalElement) {
|
|
8483
|
-
modalElement.style.background = '#0a0a0f';
|
|
8484
|
-
modalElement.style.border = '1px solid rgba(255, 255, 255, 0.1)';
|
|
8485
|
-
modalElement.style.borderRadius = '24px';
|
|
8486
|
-
}
|
|
8486
|
+
// Modal background, border, and borderRadius are now configured
|
|
8487
|
+
// via PaymentModal constructor options in createModal()
|
|
8487
8488
|
// Modify title style
|
|
8488
8489
|
const titleElement = document.querySelector('.payment-modal-title');
|
|
8489
8490
|
if (titleElement) {
|
|
@@ -9185,7 +9186,7 @@ class GenericPackageModal extends BasePackageModal {
|
|
|
9185
9186
|
/**
|
|
9186
9187
|
* SDK version
|
|
9187
9188
|
*/
|
|
9188
|
-
const VERSION$2 = '0.9.
|
|
9189
|
+
const VERSION$2 = '0.9.7';
|
|
9189
9190
|
|
|
9190
9191
|
var __defProp = Object.defineProperty;
|
|
9191
9192
|
var __defProps = Object.defineProperties;
|