@seaverse/payment-sdk 0.9.1 → 0.9.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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @seaverse/payment-sdk
2
2
 
3
- > **Version**: 0.9.1 | **Language**: English
3
+ > **Version**: 0.9.3 | **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
 
@@ -83,6 +83,10 @@ const modal = new GenericPackageModal({
83
83
  onPaymentSuccess: (orderId, transactionId, pkg) => {
84
84
  console.log(`${pkg.name} purchased!`, orderId);
85
85
  },
86
+
87
+ onClose: () => {
88
+ console.log('Modal closed');
89
+ },
86
90
  });
87
91
 
88
92
  modal.open();
@@ -127,6 +131,25 @@ modal.open();
127
131
 
128
132
  ## 🏗️ Architecture
129
133
 
134
+ ### Version 0.9.2 - Enhancement
135
+
136
+ **Improvements in this release**:
137
+
138
+ 1. **Enhanced GenericPackageModal** 🎯
139
+ - Added `onClose` callback support for custom package modals
140
+ - Callback is now triggered when modal is closed via the close button
141
+ - Enables better integration with parent component lifecycle
142
+ - Example usage:
143
+ ```typescript
144
+ const modal = new GenericPackageModal({
145
+ packages: [...],
146
+ onClose: () => {
147
+ console.log('Modal closed by user');
148
+ // Perform cleanup or refresh actions
149
+ },
150
+ });
151
+ ```
152
+
130
153
  ### Version 0.9.0 - Critical Bug Fixes
131
154
 
132
155
  **Major fixes in this release**:
@@ -905,6 +928,26 @@ import type {
905
928
 
906
929
  ## 📄 Changelog
907
930
 
931
+ ### v0.9.3 (2026-02-07) - UI/UX Overhaul & Design Restoration
932
+
933
+ **🎨 Major UI Overhaul**:
934
+ - **Unified Modal Design**: Redesigned `PurchaseSuccessModal`, `PaymentFailedModal`, `PaymentVerificationModal`, and `RetentionModal` to match the new dark design system.
935
+ - New tokens: Background `#121212`, border `rgba(44,44,46,0.6)`, and brand green `#10B981`.
936
+ - Improved typography and spacing for better readability.
937
+ - **GenericPackageModal 1:1 Restoration**: Completely rebuilt the custom package cards to match `Credits.html` design.
938
+ - Added ambient glow effects and hover animations.
939
+ - New "Value Badge" (+N% EXTRA VALUE) with golden theme.
940
+ - Redesigned CTA buttons with integrated price blocks and hover shine effects.
941
+
942
+ **🔧 Fixes & Improvements**:
943
+ - **Fixed Locale Support**: Updated `isZh` checks to correctly handle both Simplified Chinese (`zh`) and Traditional Chinese (`zh-TW`).
944
+ - **Enhanced Interactions**: Added scale feedback and glowing effects to all primary buttons.
945
+ - **Refined Layouts**: Optimized border radii and paddings across all payment-related modals.
946
+
947
+ ### v0.9.2 (2026-02-07) - Enhancement
948
+ - **Enhanced GenericPackageModal**: Added `onClose` callback support for custom package modals.
949
+ - **Improved Integration**: Better lifecycle management for parent components.
950
+
908
951
  ### v0.9.0 (2026-02-07) - Critical Bug Fixes
909
952
 
910
953
  **🔧 Critical Fixes**:
@@ -967,4 +1010,4 @@ Issues and Pull Requests are welcome!
967
1010
  ---
968
1011
 
969
1012
  **Last Updated**: 2026-02-07
970
- **SDK Version**: 0.9.0
1013
+ **SDK Version**: 0.9.3