@seaverse/payment-sdk 0.9.3 → 0.9.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/README.md +35 -3
- package/dist/index.browser.js +239 -221
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +239 -221
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +8 -11
- package/dist/index.js +239 -221
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @seaverse/payment-sdk
|
|
2
2
|
|
|
3
|
-
> **Version**: 0.9.
|
|
3
|
+
> **Version**: 0.9.5 | **Language**: English
|
|
4
4
|
|
|
5
5
|
A comprehensive payment solution for SeaVerse platform, providing credit management, payment checkout, subscription management, and order tracking.
|
|
6
6
|
|
|
@@ -928,6 +928,38 @@ import type {
|
|
|
928
928
|
|
|
929
929
|
## 📄 Changelog
|
|
930
930
|
|
|
931
|
+
### v0.9.5 (2026-02-08) - CreditPackCard UI Refinement & Modal Fix
|
|
932
|
+
|
|
933
|
+
**🎨 CreditPackCard UI Overhaul**:
|
|
934
|
+
- **1:1 Design Restoration**: Rebuilt CreditPackCard to pixel-match reference design across all dimensions.
|
|
935
|
+
- Card: `246x252` → `228x auto`, `border-radius: 16px`, compact padding `28px 20px 16px`.
|
|
936
|
+
- Number: `36px` → `32px`, italic weight `600`, tighter letter-spacing.
|
|
937
|
+
- Credits text: `16px` at `0.45` opacity, 8px margin below.
|
|
938
|
+
- Bonus tag: `16px` bold green `#00E699`, `6px` border-radius, compact padding.
|
|
939
|
+
- Button: `48px` height, `14px` border-radius, `18px` font, fixed `16px` margin-top.
|
|
940
|
+
- **Color System Update**: Unified to `#00E699` green palette across glow, bonus text, button gradient, and borders.
|
|
941
|
+
- **Badge Refinement**: Reduced to `72px`, repositioned `top: -16px, right: -12px`, `12deg` rotation, italic "Double" text.
|
|
942
|
+
- **Spacing Optimization**: Eliminated excessive gaps between bonus tag and button; content flows naturally without `flex: 1` or `margin-top: auto` stretch.
|
|
943
|
+
|
|
944
|
+
**🔧 GenericPackageModal Fix**:
|
|
945
|
+
- **Fixed White Background Layer**: Resolved issue where `.payment-modal` white background (`#ffffff`) was visible behind dark-themed cards.
|
|
946
|
+
- Added `backgroundColor: transparent`, `boxShadow: none`, `borderRadius: 0` overrides.
|
|
947
|
+
- Cleared `.payment-modal-content` background to transparent.
|
|
948
|
+
- **SeaartPaymentSDK**: Now uses environment config `clientId` instead of user-provided one for correct payment gateway routing.
|
|
949
|
+
|
|
950
|
+
### v0.9.4 (2026-02-07) - Mobile Responsiveness & SDK Refinement
|
|
951
|
+
|
|
952
|
+
**📱 Mobile & Responsive Enhancements**:
|
|
953
|
+
- **Full Responsive Support**: Added comprehensive media queries to `CreditPackageModal` for seamless display on Mobile, Tablet, and Desktop.
|
|
954
|
+
- **Dynamic Layouts**: Implemented adaptive grid columns, font sizes, and paddings based on screen width.
|
|
955
|
+
- **Improved Mobile UI**: Optimized card sizes and modal dimensions for small screens (max-width: 768px).
|
|
956
|
+
|
|
957
|
+
**🔧 SDK & Configuration Refinements**:
|
|
958
|
+
- **Environment-based Initialization**: Refactored `SeaartPaymentSDK` to automatically load configurations based on the environment (`development`/`production`).
|
|
959
|
+
- **Updated Production Config**: Updated production `clientId` for the official payment gateway.
|
|
960
|
+
- **Enhanced Type Safety**: Unified `LocaleCode` usage across the SDK and demo projects.
|
|
961
|
+
- **Better Locale Support**: Improved `isZh` logic to support both Simplified (`zh`) and Traditional (`zh-TW`) Chinese.
|
|
962
|
+
|
|
931
963
|
### v0.9.3 (2026-02-07) - UI/UX Overhaul & Design Restoration
|
|
932
964
|
|
|
933
965
|
**🎨 Major UI Overhaul**:
|
|
@@ -1009,5 +1041,5 @@ Issues and Pull Requests are welcome!
|
|
|
1009
1041
|
|
|
1010
1042
|
---
|
|
1011
1043
|
|
|
1012
|
-
**Last Updated**: 2026-02-
|
|
1013
|
-
**SDK Version**: 0.9.
|
|
1044
|
+
**Last Updated**: 2026-02-08
|
|
1045
|
+
**SDK Version**: 0.9.5
|