Releases: MyTonSwap/widget
2.0.10
What's Changed
- added code example for html, react and vue by @Ho3einWave in #1
- added code example link to README by @Ho3einWave in #2
- Develop by @Ho3einWave in #3
- update styles to match design by @Ho3einWave in #4
- 2.0.10 by @Ho3einWave in #5
New Contributors
- @Ho3einWave made their first contribution in #1
Full Changelog: 2.0.9...2.0.10
2.0.9
Changelog
Version 2.0.9 - 2024-11-16
Styles:
- Updated Color Variables:
- Refined the list of CSS color variables in the README for better clarity and improved design consistency.
- This update provides developers with a clearer guide for customizing the widget's appearance.
Release Note
Version 2.0.9 focuses on documentation improvements, specifically enhancing the color variable section in the README. This change aims to provide better guidance for users customizing the widget's theme.
Full Changelog: 2.0.8...2.0.9
2.0.8
Changelog
Version 2.0.8 - 2024-11-16
Styles:
- Global Design Enhancements:
- Updated the global font to Plus Jakarta Sans, providing a modern and consistent look across components.
- Refined border-radius settings for loading indicators, enhancing visual aesthetics.
- Improved color variables for better design consistency throughout the widget.
- Component Styling Improvements:
- Enhanced
SettingPopoverandSlippageSettingcomponents for better usability and layout. - Updated input colors in
SlippageSettingfor increased visibility. - Adjusted layout and spacing in
SwapCard,Token, andCardDialogcomponents for a more polished user interface. - Enhanced modal and button styles, focusing on layout improvements and overall design consistency.
- Enhanced
Fixes:
- Confirmation Modal State Handling:
- Resolved an issue where the modal state was not reset on close, ensuring proper state management.
- Balance Calculation:
- Updated token balance calculation in
SwapCardto handle numeric types correctly, preventing potential display errors.
- Updated token balance calculation in
- Asset Sorting Utility:
- Fixed the asset price reference in the
sortAssetsutility function to ensure accurate sorting.
- Fixed the asset price reference in the
Features:
- Utility Function Addition:
- Added a new
toFixedDecimalutility function for precise token balance formatting inSwapCard.
- Added a new
Release Note
Version 2.0.8 brings significant visual and usability improvements with an updated global font and enhanced component styling. The update also includes fixes for modal state handling and token balance calculations, alongside improved testing for slippage input. These changes aim to offer a more consistent and user-friendly experience.
Full Changelog: 2.0.7...2.0.8
2.0.7
Changelog
Version 2.0.7 - 2024-11-12
Styles:
- README and CSS Variables Update:
- Enhanced the README with updated CSS variable documentation for better customization of the Swap component.
- Refined CSS variables, improving flexibility for theming and component styling.
- Responsive Design Improvements:
- Enhanced responsive design across components to provide a better user experience on various screen sizes.
- Updated overall component styling for a more polished look and feel.
Refactor:
- Header and Swap Component Enhancements:
- Refactored Header and Swap components to streamline styling and enhance icon usage for a more consistent appearance.
Release Note
This update focuses on improving the customization capabilities of the Swap component through updated CSS variables and enhanced responsive design. The Header and Swap components have been refactored for better styling and icon integration. Additionally, the README has been updated to reflect these changes, providing clearer guidance on customization options.
Full Changelog: 2.0.4...2.0.7
2.0.4
Changelog
Version 2.0.4 - 2024-11-11
Features:
- CardButton and SwapCard Disabled State:
- Added a disabled state to the CardButton and SwapCard components, allowing for better control over component interactivity based on user actions or conditions.
Tests:
- Refresh Button Visibility:
- Added tests for checking the visibility of the Refresh button to ensure it behaves as expected across different scenarios.
- Locked Input Tests:
- Added tests for locked inputs in the Pay and Receive buttons, ensuring that these buttons function correctly when locked.
Fix:
- README Example Formatting:
- Corrected the formatting of example links in the README for improved clarity and navigation.
Release Note
This release introduces a disabled state for the CardButton and SwapCard components, enhancing the user experience by controlling component interactivity. It also includes tests for the Refresh button visibility and locked inputs, ensuring a more stable user interface. Additionally, the README has been updated with new examples and improved formatting.
Full Changelog: 2.0.3...2.0.4
2.0.3
Changelog
Version 2.0.3 - 2024-11-10
Features:
- Enhanced Documentation:
- Updated the README file to include details about available CSS variables for widget customization. This provides clear guidance for developers on how to modify the appearance of the widget using custom styles.
- Improved Swap Component Integration:
- Refactored the Swap component for smoother integration into various projects, improving compatibility and reducing potential conflicts.
Release Note
This release focuses on improving the developer experience by updating the documentation with detailed customization options and enhancing the integration process for the Swap component.
Full Changelog: 2.0.2...2.0.3
2.0.2
Changelog
Version 2.0.2 - 2024-11-10
Features:
- Swap Component Style Update:
- Updated styles for the Swap component by using
mts-prefixed classes. This change ensures consistent and scoped styling across the widget, preventing potential conflicts with existing styles.
- Updated styles for the Swap component by using
- CDN Build Configuration:
- Added a build configuration for CDN distribution, making it easier to integrate the widget via a script tag without needing to install dependencies.
- Exposed global
swapandwalletProfilefunctions for direct use in web applications, providing more flexibility for developers integrating the widget via CDN.
- SwapButton Style Enhancement:
- Removed hardcoded colors from the SwapButton component and replaced them with CSS variables, allowing for easier theming and customization.
Release Note
This release introduces improved styling with consistent class naming, enhances the SwapButton component with CSS variables, and adds a CDN build configuration. Developers can now use the widget more easily via a script tag and have access to globally exposed functions for direct interaction.
Full Changelog: 2.0.1...2.0.2
2.0.1
Changelog
Version 2.0.1 - 2024-11-09
Features:
- Refactored Language Handling:
- Exported the
i18ninstance directly for improved flexibility in language customization. - Removed the
setLangfunction, simplifying the language configuration process and allowing developers to handle localization directly through the exportedi18ninstance.
- Exported the
Release Note
This release streamlines the language management by exporting the i18n instance and removing the need for a separate setLang function. It provides developers with more control over localization and makes the integration process simpler.
Full Changelog: 2.0.0...2.0.1
2.0.0
Changelog
Version 2.0.0 - 2024-11-09
Breaking Changes:
- Theming Overhaul:
- Introduced CSS variables for theming, allowing consistent and flexible styling across all components.
- This update improves maintainability and enables easier customization for both light and dark themes, as well as any user-defined color schemes.
Features:
- Enhanced Styling:
- All components now use CSS variables, providing a centralized and consistent approach for theme customization.
Release Note
This major update revamps the theming system with CSS variables, paving the way for more cohesive styling and easier theme adjustments. Users can now fine-tune the look and feel of the widget with greater ease and precision.
Full Changelog: 1.2.4...2.0.0
1.2.4
Changelog
Version 1.2.4 - 2024-11-07
Features:
- Theme Management:
- Enhanced the
setThemefunction to directly apply colors and user-defined themes in the theme store. This allows for more streamlined theme updates and customization flexibility within the widget.
- Enhanced the
Release Note
This release refines theme management by enabling direct updates to colors and user themes, simplifying customization for users and developers alike.
Full Changelog: 1.2.3...1.2.4