Commit Graph
15 Commits
Author SHA1 Message Date
odiinnn ef785f9c29 1.0.7 2025-09-30 18:39:03 +03:00
odiinnn 158eb100fa Add closeAppOnActions option to InjectionConfig and Wallet class
- Introduced closeAppOnActions property in InjectionConfig to control app closure behavior.
- Updated defaultInjectionConfig to set closeAppOnActions to true.
- Modified Wallet class to utilize closeAppOnActions when handling actions, ensuring the app closes as intended based on this configuration.
2025-09-30 18:38:11 +03:00
odiinnn f46a4418c9 Add disconnect functionality to App component
- Introduced a disconnect button that removes the wallet from localStorage and reloads the page when clicked.
- Updated the rendering logic to conditionally display the connect and disconnect buttons based on the connection state.
2025-09-30 18:34:31 +03:00
odiinnn 8d69cd3d3f 1.0.6 2025-09-23 20:38:15 +03:00
odiinnn b2d3679f87 Initialize example project with React, TypeScript, and Vite
- Added example directory with a minimal setup for a React application using Vite.
- Included essential configuration files: tsconfig.json, tsconfig.app.json, tsconfig.node.json, and vite.config.ts.
- Implemented basic components and styles in src/ directory, including App.tsx and App.css.
- Created README.md for documentation on project setup and usage.
- Introduced .gitignore and ESLint configuration for better development practices.
2025-09-23 20:36:21 +03:00
odiinnn 8f003baee2 1.0.5 2025-09-17 12:40:07 +03:00
odiinnn e2c815caca Remove isDev property from InjectionConfig and defaultInjectionConfig, simplifying wallet configuration. Update Wallet class to reflect these changes, ensuring consistent handling of callbackUrl and connectTimeout. 2025-09-17 12:40:02 +03:00
odiinnn 42bbb746a1 1.0.4 2025-09-01 10:48:55 +03:00
odiinnn 38574daace Refactor wallet storage and subscription handling
- Updated WalletStore to manage localStorage and handle storage events more effectively.
- Introduced mockAccountsSubscribe in constants for better account subscription handling.
- Removed unnecessary storage subscription from InjectionConfig.
- Enhanced Wallet class to utilize new account and metadata management methods.
2025-09-01 10:42:55 +03:00
odiinnn 1966988769 1.0.3 2025-09-01 09:43:01 +03:00
odiinnn 267d56cee1 Refactor callback URL handling in injectVaranWallet function
- Changed callbackUrl in defaultInjectionConfig to an empty string.
- Updated injectVaranWallet to throw an error if callbackUrl is not provided in the config, ensuring proper error handling.
2025-09-01 09:42:54 +03:00
odiinnn 06f4b5c82f 1.0.2 2025-08-28 13:20:38 +03:00
odiinnn f622b17b69 Update prepublishOnly script in package.json to remove test command 2025-08-28 13:20:28 +03:00
odiinnn 117936353c 1.0.1 2025-08-28 13:19:07 +03:00
odiinnn a21ea39c36 Initialize TypeScript library for Telegram Web App wallet integration
- Added configuration files: .eslintrc.js, .gitignore, .npmrc, .prettierrc, and multiple tsconfig files for different module systems.
- Created package.json with dependencies and scripts for building, testing, and publishing.
- Implemented core functionality in src/ directory, including wallet management, encryption, and storage handling.
- Added README.md for documentation on installation, usage, and development setup.
- Introduced initial types and constants for better type safety and code organization.
2025-08-28 13:13:57 +03:00