@ton/appkit-react 0.0.1 → 0.0.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/dist/esm/components/block/block.js +7 -0
- package/dist/esm/components/block/block.js.map +1 -0
- package/dist/{components → esm/components}/block/block.module.css +1 -1
- package/dist/esm/components/block/index.js +9 -0
- package/dist/esm/components/block/index.js.map +1 -0
- package/dist/esm/components/button/button.js +7 -0
- package/dist/esm/components/button/button.js.map +1 -0
- package/dist/{components → esm/components}/button/button.module.css +7 -2
- package/dist/esm/components/button/index.js +9 -0
- package/dist/esm/components/button/index.js.map +1 -0
- package/dist/esm/components/circle-icon/circle-icon.js +8 -0
- package/dist/esm/components/circle-icon/circle-icon.js.map +1 -0
- package/dist/esm/components/circle-icon/circle-icon.module.css +32 -0
- package/dist/esm/components/circle-icon/index.js +9 -0
- package/dist/esm/components/circle-icon/index.js.map +1 -0
- package/dist/esm/components/ton-icon/index.js +9 -0
- package/dist/esm/components/ton-icon/index.js.map +1 -0
- package/dist/esm/components/ton-icon/ton-icon.js +8 -0
- package/dist/esm/components/ton-icon/ton-icon.js.map +1 -0
- package/dist/esm/features/balances/components/balance-badge/balance-badge.js +33 -0
- package/dist/esm/features/balances/components/balance-badge/balance-badge.js.map +1 -0
- package/dist/{features → esm/features}/balances/components/balance-badge/balance-badge.module.css +3 -1
- package/dist/esm/features/balances/components/balance-badge/index.js +9 -0
- package/dist/esm/features/balances/components/balance-badge/index.js.map +1 -0
- package/dist/esm/features/balances/components/currency-item/currency-item.js +8 -0
- package/dist/esm/features/balances/components/currency-item/currency-item.js.map +1 -0
- package/dist/esm/features/balances/components/currency-item/currency-item.module.css +80 -0
- package/dist/esm/features/balances/components/currency-item/index.js +9 -0
- package/dist/esm/features/balances/components/currency-item/index.js.map +1 -0
- package/dist/esm/features/balances/components/send-jetton-button/index.js +9 -0
- package/dist/esm/features/balances/components/send-jetton-button/index.js.map +1 -0
- package/dist/esm/features/balances/components/send-jetton-button/send-jetton-button.js +43 -0
- package/dist/esm/features/balances/components/send-jetton-button/send-jetton-button.js.map +1 -0
- package/dist/esm/features/balances/components/send-ton-button/index.js +9 -0
- package/dist/esm/features/balances/components/send-ton-button/index.js.map +1 -0
- package/dist/esm/features/balances/components/send-ton-button/send-ton-button.js +26 -0
- package/dist/esm/features/balances/components/send-ton-button/send-ton-button.js.map +1 -0
- package/dist/esm/features/balances/hooks/use-balance-by-address.js +18 -0
- package/dist/esm/features/balances/hooks/use-balance-by-address.js.map +1 -0
- package/dist/esm/features/balances/hooks/use-balance.js +17 -0
- package/dist/esm/features/balances/hooks/use-balance.js.map +1 -0
- package/dist/esm/features/balances/index.js +14 -0
- package/dist/esm/features/balances/index.js.map +1 -0
- package/dist/esm/features/jettons/hooks/use-jetton-balance-by-address.js +18 -0
- package/dist/esm/features/jettons/hooks/use-jetton-balance-by-address.js.map +1 -0
- package/dist/esm/features/jettons/hooks/use-jetton-info.js +18 -0
- package/dist/esm/features/jettons/hooks/use-jetton-info.js.map +1 -0
- package/dist/esm/features/jettons/hooks/use-jetton-wallet-address.js +18 -0
- package/dist/esm/features/jettons/hooks/use-jetton-wallet-address.js.map +1 -0
- package/dist/esm/features/jettons/hooks/use-jettons-by-address.js +18 -0
- package/dist/esm/features/jettons/hooks/use-jettons-by-address.js.map +1 -0
- package/dist/esm/features/jettons/hooks/use-jettons.js +17 -0
- package/dist/esm/features/jettons/hooks/use-jettons.js.map +1 -0
- package/dist/esm/features/jettons/hooks/use-transfer-jetton.js +16 -0
- package/dist/esm/features/jettons/hooks/use-transfer-jetton.js.map +1 -0
- package/dist/esm/features/jettons/index.js +14 -0
- package/dist/esm/features/jettons/index.js.map +1 -0
- package/dist/esm/features/network/hooks/use-network.js +17 -0
- package/dist/esm/features/network/hooks/use-network.js.map +1 -0
- package/dist/esm/features/network/hooks/use-networks.js +24 -0
- package/dist/esm/features/network/hooks/use-networks.js.map +1 -0
- package/dist/esm/features/network/index.js +11 -0
- package/dist/esm/features/network/index.js.map +1 -0
- package/dist/esm/features/nft/components/nft-item/index.js +9 -0
- package/dist/esm/features/nft/components/nft-item/index.js.map +1 -0
- package/dist/esm/features/nft/components/nft-item/nft-item.js +15 -0
- package/dist/esm/features/nft/components/nft-item/nft-item.js.map +1 -0
- package/dist/esm/features/nft/components/nft-item/nft-item.module.css +74 -0
- package/dist/esm/features/nft/hooks/use-nft.js +18 -0
- package/dist/esm/features/nft/hooks/use-nft.js.map +1 -0
- package/dist/esm/features/nft/hooks/use-nfts-by-address.js +18 -0
- package/dist/esm/features/nft/hooks/use-nfts-by-address.js.map +1 -0
- package/dist/esm/features/nft/hooks/use-nfts.js +17 -0
- package/dist/esm/features/nft/hooks/use-nfts.js.map +1 -0
- package/dist/esm/features/nft/hooks/use-transfer-nft.js +16 -0
- package/dist/esm/features/nft/hooks/use-transfer-nft.js.map +1 -0
- package/dist/esm/features/nft/index.js +13 -0
- package/dist/esm/features/nft/index.js.map +1 -0
- package/dist/esm/features/signing/hooks/use-sign-binary.js +27 -0
- package/dist/esm/features/signing/hooks/use-sign-binary.js.map +1 -0
- package/dist/esm/features/signing/hooks/use-sign-cell.js +28 -0
- package/dist/esm/features/signing/hooks/use-sign-cell.js.map +1 -0
- package/dist/esm/features/signing/hooks/use-sign-text.js +27 -0
- package/dist/esm/features/signing/hooks/use-sign-text.js.map +1 -0
- package/dist/esm/features/signing/index.js +11 -0
- package/dist/esm/features/signing/index.js.map +1 -0
- package/dist/esm/features/swap/hooks/use-build-swap-transaction.js +16 -0
- package/dist/esm/features/swap/hooks/use-build-swap-transaction.js.map +1 -0
- package/dist/esm/features/swap/hooks/use-swap-quote.js +16 -0
- package/dist/esm/features/swap/hooks/use-swap-quote.js.map +1 -0
- package/dist/esm/features/swap/index.js +10 -0
- package/dist/esm/features/swap/index.js.map +1 -0
- package/dist/esm/features/transaction/components/transaction/index.js +9 -0
- package/dist/esm/features/transaction/components/transaction/index.js.map +1 -0
- package/dist/esm/features/transaction/components/transaction/transaction.js +41 -0
- package/dist/esm/features/transaction/components/transaction/transaction.js.map +1 -0
- package/dist/esm/features/transaction/components/transaction-progress/index.js +10 -0
- package/dist/esm/features/transaction/components/transaction-progress/index.js.map +1 -0
- package/dist/esm/features/transaction/components/transaction-progress/transaction-progress-icons.js +14 -0
- package/dist/esm/features/transaction/components/transaction-progress/transaction-progress-icons.js.map +1 -0
- package/dist/esm/features/transaction/components/transaction-progress/transaction-progress-provider.js +42 -0
- package/dist/esm/features/transaction/components/transaction-progress/transaction-progress-provider.js.map +1 -0
- package/dist/esm/features/transaction/components/transaction-progress/transaction-progress.js +44 -0
- package/dist/esm/features/transaction/components/transaction-progress/transaction-progress.js.map +1 -0
- package/dist/esm/features/transaction/components/transaction-progress/transaction-progress.module.css +44 -0
- package/dist/esm/features/transaction/components/transaction-provider/index.js +9 -0
- package/dist/esm/features/transaction/components/transaction-provider/index.js.map +1 -0
- package/dist/esm/features/transaction/components/transaction-provider/transaction-provider.js +64 -0
- package/dist/esm/features/transaction/components/transaction-provider/transaction-provider.js.map +1 -0
- package/dist/esm/features/transaction/hooks/use-send-transaction.js +16 -0
- package/dist/esm/features/transaction/hooks/use-send-transaction.js.map +1 -0
- package/dist/esm/features/transaction/hooks/use-transaction-status.js +35 -0
- package/dist/esm/features/transaction/hooks/use-transaction-status.js.map +1 -0
- package/dist/esm/features/transaction/hooks/use-transfer-ton.js +16 -0
- package/dist/esm/features/transaction/hooks/use-transfer-ton.js.map +1 -0
- package/dist/esm/features/transaction/index.js +13 -0
- package/dist/esm/features/transaction/index.js.map +1 -0
- package/dist/esm/features/wallets/components/connect-button/index.js +9 -0
- package/dist/esm/features/wallets/components/connect-button/index.js.map +1 -0
- package/dist/esm/features/wallets/hooks/use-address.js +17 -0
- package/dist/esm/features/wallets/hooks/use-address.js.map +1 -0
- package/dist/esm/features/wallets/hooks/use-connect.js +15 -0
- package/dist/esm/features/wallets/hooks/use-connect.js.map +1 -0
- package/dist/esm/features/wallets/hooks/use-connected-wallets.js +21 -0
- package/dist/esm/features/wallets/hooks/use-connected-wallets.js.map +1 -0
- package/dist/esm/features/wallets/hooks/use-connector-by-id.js +21 -0
- package/dist/esm/features/wallets/hooks/use-connector-by-id.js.map +1 -0
- package/dist/esm/features/wallets/hooks/use-connectors.js +21 -0
- package/dist/esm/features/wallets/hooks/use-connectors.js.map +1 -0
- package/dist/esm/features/wallets/hooks/use-disconnect.js +16 -0
- package/dist/esm/features/wallets/hooks/use-disconnect.js.map +1 -0
- package/dist/esm/features/wallets/hooks/use-selected-wallet.js +28 -0
- package/dist/esm/features/wallets/hooks/use-selected-wallet.js.map +1 -0
- package/dist/esm/features/wallets/index.js +16 -0
- package/dist/esm/features/wallets/index.js.map +1 -0
- package/dist/esm/hooks/use-app-kit-theme.js +17 -0
- package/dist/esm/hooks/use-app-kit-theme.js.map +1 -0
- package/dist/esm/hooks/use-app-kit.js +17 -0
- package/dist/esm/hooks/use-app-kit.js.map +1 -0
- package/dist/esm/hooks/use-i18n.js +17 -0
- package/dist/esm/hooks/use-i18n.js.map +1 -0
- package/dist/esm/index.js +26 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/libs/i18n.js +14 -0
- package/dist/esm/libs/i18n.js.map +1 -0
- package/dist/esm/libs/query.js +18 -0
- package/dist/esm/libs/query.js.map +1 -0
- package/dist/esm/locales/en.js +37 -0
- package/dist/esm/locales/en.js.map +1 -0
- package/dist/esm/providers/app-kit-provider.js +9 -0
- package/dist/esm/providers/app-kit-provider.js.map +1 -0
- package/dist/esm/providers/i18n-provider.js +51 -0
- package/dist/esm/providers/i18n-provider.js.map +1 -0
- package/dist/{styles → esm/styles}/index.css +27 -11
- package/dist/{styles → esm/styles}/typography.module.css +14 -1
- package/dist/esm/tonconnect/tonconnect-bridge.js +27 -0
- package/dist/esm/tonconnect/tonconnect-bridge.js.map +1 -0
- package/dist/esm/tsconfig.build.tsbuildinfo +1 -0
- package/dist/types/components/block/block.d.ts.map +1 -0
- package/dist/types/components/block/index.d.ts.map +1 -0
- package/dist/types/components/button/button.d.ts.map +1 -0
- package/dist/types/components/button/index.d.ts.map +1 -0
- package/dist/types/components/circle-icon/circle-icon.d.ts.map +1 -0
- package/dist/types/components/circle-icon/index.d.ts.map +1 -0
- package/dist/types/components/ton-icon/index.d.ts.map +1 -0
- package/dist/types/components/ton-icon/ton-icon.d.ts.map +1 -0
- package/dist/types/features/balances/components/balance-badge/balance-badge.d.ts.map +1 -0
- package/dist/types/features/balances/components/balance-badge/index.d.ts.map +1 -0
- package/dist/types/features/balances/components/currency-item/currency-item.d.ts.map +1 -0
- package/dist/types/features/balances/components/currency-item/index.d.ts.map +1 -0
- package/dist/types/features/balances/components/send-jetton-button/index.d.ts.map +1 -0
- package/dist/types/features/balances/components/send-jetton-button/send-jetton-button.d.ts.map +1 -0
- package/dist/types/features/balances/components/send-ton-button/index.d.ts.map +1 -0
- package/dist/types/features/balances/components/send-ton-button/send-ton-button.d.ts.map +1 -0
- package/dist/types/features/balances/hooks/use-balance-by-address.d.ts.map +1 -0
- package/dist/types/features/balances/hooks/use-balance.d.ts.map +1 -0
- package/dist/types/features/balances/index.d.ts.map +1 -0
- package/dist/types/features/jettons/hooks/use-jetton-balance-by-address.d.ts.map +1 -0
- package/dist/types/features/jettons/hooks/use-jetton-info.d.ts.map +1 -0
- package/dist/types/features/jettons/hooks/use-jetton-wallet-address.d.ts.map +1 -0
- package/dist/types/features/jettons/hooks/use-jettons-by-address.d.ts.map +1 -0
- package/dist/types/features/jettons/hooks/use-jettons.d.ts.map +1 -0
- package/dist/types/features/jettons/hooks/use-transfer-jetton.d.ts.map +1 -0
- package/dist/types/features/jettons/index.d.ts.map +1 -0
- package/dist/types/features/network/hooks/use-network.d.ts.map +1 -0
- package/dist/types/features/network/hooks/use-networks.d.ts.map +1 -0
- package/dist/types/features/network/index.d.ts.map +1 -0
- package/dist/types/features/nft/components/nft-item/index.d.ts.map +1 -0
- package/dist/types/features/nft/components/nft-item/nft-item.d.ts.map +1 -0
- package/dist/types/features/nft/hooks/use-nft.d.ts.map +1 -0
- package/dist/types/features/nft/hooks/use-nfts-by-address.d.ts.map +1 -0
- package/dist/types/features/nft/hooks/use-nfts.d.ts.map +1 -0
- package/dist/types/features/nft/hooks/use-transfer-nft.d.ts.map +1 -0
- package/dist/types/features/nft/index.d.ts.map +1 -0
- package/dist/types/features/signing/hooks/use-sign-binary.d.ts.map +1 -0
- package/dist/types/features/signing/hooks/use-sign-cell.d.ts.map +1 -0
- package/dist/types/features/signing/hooks/use-sign-text.d.ts.map +1 -0
- package/dist/types/features/signing/index.d.ts.map +1 -0
- package/dist/types/features/swap/hooks/use-build-swap-transaction.d.ts.map +1 -0
- package/dist/types/features/swap/hooks/use-swap-quote.d.ts.map +1 -0
- package/dist/types/features/swap/index.d.ts.map +1 -0
- package/dist/types/features/transaction/components/transaction/index.d.ts.map +1 -0
- package/dist/types/features/transaction/components/transaction/transaction.d.ts.map +1 -0
- package/dist/types/features/transaction/components/transaction-progress/index.d.ts +10 -0
- package/dist/types/features/transaction/components/transaction-progress/index.d.ts.map +1 -0
- package/dist/types/features/transaction/components/transaction-progress/transaction-progress-icons.d.ts +15 -0
- package/dist/types/features/transaction/components/transaction-progress/transaction-progress-icons.d.ts.map +1 -0
- package/dist/types/features/transaction/components/transaction-progress/transaction-progress-provider.d.ts +23 -0
- package/dist/types/features/transaction/components/transaction-progress/transaction-progress-provider.d.ts.map +1 -0
- package/dist/types/features/transaction/components/transaction-progress/transaction-progress.d.ts +32 -0
- package/dist/types/features/transaction/components/transaction-progress/transaction-progress.d.ts.map +1 -0
- package/dist/types/features/transaction/components/transaction-provider/index.d.ts.map +1 -0
- package/dist/types/features/transaction/components/transaction-provider/transaction-provider.d.ts.map +1 -0
- package/dist/types/features/transaction/hooks/use-send-transaction.d.ts.map +1 -0
- package/dist/types/features/transaction/hooks/use-transaction-status.d.ts +33 -0
- package/dist/types/features/transaction/hooks/use-transaction-status.d.ts.map +1 -0
- package/dist/types/features/transaction/hooks/use-transfer-ton.d.ts.map +1 -0
- package/dist/types/features/transaction/index.d.ts +13 -0
- package/dist/types/features/transaction/index.d.ts.map +1 -0
- package/dist/types/features/wallets/components/connect-button/index.d.ts.map +1 -0
- package/dist/types/features/wallets/hooks/use-address.d.ts.map +1 -0
- package/dist/types/features/wallets/hooks/use-connect.d.ts.map +1 -0
- package/dist/types/features/wallets/hooks/use-connected-wallets.d.ts.map +1 -0
- package/dist/types/features/wallets/hooks/use-connector-by-id.d.ts.map +1 -0
- package/dist/types/features/wallets/hooks/use-connectors.d.ts.map +1 -0
- package/dist/types/features/wallets/hooks/use-disconnect.d.ts.map +1 -0
- package/dist/types/features/wallets/hooks/use-selected-wallet.d.ts.map +1 -0
- package/dist/types/features/wallets/index.d.ts.map +1 -0
- package/dist/types/hooks/use-app-kit-theme.d.ts.map +1 -0
- package/dist/types/hooks/use-app-kit.d.ts.map +1 -0
- package/dist/types/hooks/use-i18n.d.ts.map +1 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/{libs → types/libs}/i18n.d.ts +5 -0
- package/dist/types/libs/i18n.d.ts.map +1 -0
- package/dist/types/libs/query.d.ts.map +1 -0
- package/dist/{locales → types/locales}/en.d.ts +5 -0
- package/dist/types/locales/en.d.ts.map +1 -0
- package/dist/types/providers/app-kit-provider.d.ts.map +1 -0
- package/dist/types/providers/i18n-provider.d.ts.map +1 -0
- package/dist/types/tonconnect/tonconnect-bridge.d.ts.map +1 -0
- package/package.json +28 -14
- package/src/components/block/block.tsx +20 -0
- package/src/components/block/index.ts +9 -0
- package/src/components/button/button.tsx +16 -0
- package/src/components/button/index.ts +9 -0
- package/src/components/circle-icon/circle-icon.tsx +34 -0
- package/src/components/circle-icon/index.ts +9 -0
- package/src/components/ton-icon/index.ts +9 -0
- package/src/components/ton-icon/ton-icon.tsx +46 -0
- package/src/features/balances/components/balance-badge/balance-badge.tsx +47 -0
- package/src/features/balances/components/balance-badge/index.ts +9 -0
- package/src/features/balances/components/currency-item/currency-item.tsx +59 -0
- package/src/features/balances/components/currency-item/index.ts +9 -0
- package/src/features/balances/components/send-jetton-button/index.ts +9 -0
- package/src/features/balances/components/send-jetton-button/send-jetton-button.tsx +76 -0
- package/src/features/balances/components/send-ton-button/index.ts +9 -0
- package/src/features/balances/components/send-ton-button/send-ton-button.tsx +44 -0
- package/src/features/balances/hooks/use-balance-by-address.ts +33 -0
- package/src/features/balances/hooks/use-balance.ts +28 -0
- package/{dist/features/balances/index.mjs → src/features/balances/index.ts} +9 -2
- package/src/features/jettons/hooks/use-jetton-balance-by-address.ts +37 -0
- package/src/features/jettons/hooks/use-jetton-info.ts +32 -0
- package/src/features/jettons/hooks/use-jetton-wallet-address.ts +37 -0
- package/src/features/jettons/hooks/use-jettons-by-address.ts +33 -0
- package/src/features/jettons/hooks/use-jettons.ts +28 -0
- package/src/features/jettons/hooks/use-transfer-jetton.ts +44 -0
- package/{dist/features/jettons/index.mjs → src/features/jettons/index.ts} +8 -2
- package/src/features/network/hooks/use-network.ts +23 -0
- package/src/features/network/hooks/use-networks.ts +35 -0
- package/src/features/network/index.ts +11 -0
- package/src/features/nft/components/nft-item/index.ts +9 -0
- package/src/features/nft/components/nft-item/nft-item.tsx +57 -0
- package/src/features/nft/hooks/use-nft.ts +29 -0
- package/src/features/nft/hooks/use-nfts-by-address.ts +29 -0
- package/src/features/nft/hooks/use-nfts.ts +28 -0
- package/src/features/nft/hooks/use-transfer-nft.ts +44 -0
- package/{dist/features/nft/index.mjs → src/features/nft/index.ts} +9 -2
- package/src/features/signing/hooks/use-sign-binary.ts +43 -0
- package/src/features/signing/hooks/use-sign-cell.ts +44 -0
- package/src/features/signing/hooks/use-sign-text.ts +43 -0
- package/src/features/signing/index.ts +11 -0
- package/src/features/swap/hooks/use-build-swap-transaction.ts +38 -0
- package/src/features/swap/hooks/use-swap-quote.ts +31 -0
- package/src/features/swap/index.ts +10 -0
- package/src/features/transaction/components/transaction/index.ts +10 -0
- package/src/features/transaction/components/transaction/transaction.tsx +105 -0
- package/src/features/transaction/components/transaction-progress/index.ts +10 -0
- package/src/features/transaction/components/transaction-progress/transaction-progress-icons.tsx +80 -0
- package/src/features/transaction/components/transaction-progress/transaction-progress-provider.tsx +60 -0
- package/src/features/transaction/components/transaction-progress/transaction-progress.tsx +97 -0
- package/src/features/transaction/components/transaction-provider/index.ts +10 -0
- package/src/features/transaction/components/transaction-provider/transaction-provider.tsx +114 -0
- package/src/features/transaction/hooks/use-send-transaction.ts +44 -0
- package/src/features/transaction/hooks/use-transaction-status.ts +55 -0
- package/src/features/transaction/hooks/use-transfer-ton.ts +44 -0
- package/{dist/features/transaction/index.d.ts → src/features/transaction/index.ts} +4 -1
- package/src/features/wallets/components/connect-button/index.ts +9 -0
- package/src/features/wallets/hooks/use-address.ts +22 -0
- package/src/features/wallets/hooks/use-connect.ts +37 -0
- package/src/features/wallets/hooks/use-connected-wallets.ts +32 -0
- package/src/features/wallets/hooks/use-connector-by-id.ts +30 -0
- package/src/features/wallets/hooks/use-connectors.ts +32 -0
- package/src/features/wallets/hooks/use-disconnect.ts +39 -0
- package/src/features/wallets/hooks/use-selected-wallet.ts +44 -0
- package/{dist/features/wallets/index.mjs → src/features/wallets/index.ts} +10 -2
- package/src/global.d.ts +12 -0
- package/src/hooks/use-app-kit-theme.ts +22 -0
- package/src/hooks/use-app-kit.ts +21 -0
- package/src/hooks/use-i18n.ts +21 -0
- package/{dist/index.mjs → src/index.ts} +11 -2
- package/src/libs/i18n.ts +20 -0
- package/src/libs/query.ts +69 -0
- package/src/locales/en.ts +40 -0
- package/src/providers/app-kit-provider.tsx +30 -0
- package/src/providers/i18n-provider.tsx +83 -0
- package/src/tonconnect/tonconnect-bridge.tsx +39 -0
- package/dist/components/block/block.d.ts.map +0 -1
- package/dist/components/block/block.js +0 -18
- package/dist/components/block/block.js.map +0 -1
- package/dist/components/block/block.mjs +0 -11
- package/dist/components/block/block.mjs.map +0 -1
- package/dist/components/block/block.module.css.map +0 -1
- package/dist/components/block/block.stories.d.ts +0 -15
- package/dist/components/block/block.stories.d.ts.map +0 -1
- package/dist/components/block/block.stories.js +0 -45
- package/dist/components/block/block.stories.js.map +0 -1
- package/dist/components/block/block.stories.mjs +0 -39
- package/dist/components/block/block.stories.mjs.map +0 -1
- package/dist/components/block/index.d.ts.map +0 -1
- package/dist/components/block/index.js +0 -14
- package/dist/components/block/index.js.map +0 -1
- package/dist/components/block/index.mjs +0 -3
- package/dist/components/block/index.mjs.map +0 -1
- package/dist/components/button/button.d.ts.map +0 -1
- package/dist/components/button/button.js +0 -18
- package/dist/components/button/button.js.map +0 -1
- package/dist/components/button/button.mjs +0 -11
- package/dist/components/button/button.mjs.map +0 -1
- package/dist/components/button/button.module.css.map +0 -1
- package/dist/components/button/button.stories.d.ts +0 -16
- package/dist/components/button/button.stories.d.ts.map +0 -1
- package/dist/components/button/button.stories.js +0 -53
- package/dist/components/button/button.stories.js.map +0 -1
- package/dist/components/button/button.stories.mjs +0 -46
- package/dist/components/button/button.stories.mjs.map +0 -1
- package/dist/components/button/index.d.ts.map +0 -1
- package/dist/components/button/index.js +0 -12
- package/dist/components/button/index.js.map +0 -1
- package/dist/components/button/index.mjs +0 -3
- package/dist/components/button/index.mjs.map +0 -1
- package/dist/components/circle-icon/circle-icon.d.ts.map +0 -1
- package/dist/components/circle-icon/circle-icon.js +0 -22
- package/dist/components/circle-icon/circle-icon.js.map +0 -1
- package/dist/components/circle-icon/circle-icon.mjs +0 -15
- package/dist/components/circle-icon/circle-icon.mjs.map +0 -1
- package/dist/components/circle-icon/circle-icon.module.css +0 -31
- package/dist/components/circle-icon/circle-icon.module.css.map +0 -1
- package/dist/components/circle-icon/circle-icon.stories.d.ts +0 -18
- package/dist/components/circle-icon/circle-icon.stories.d.ts.map +0 -1
- package/dist/components/circle-icon/circle-icon.stories.js +0 -62
- package/dist/components/circle-icon/circle-icon.stories.js.map +0 -1
- package/dist/components/circle-icon/circle-icon.stories.mjs +0 -53
- package/dist/components/circle-icon/circle-icon.stories.mjs.map +0 -1
- package/dist/components/circle-icon/index.d.ts.map +0 -1
- package/dist/components/circle-icon/index.js +0 -14
- package/dist/components/circle-icon/index.js.map +0 -1
- package/dist/components/circle-icon/index.mjs +0 -3
- package/dist/components/circle-icon/index.mjs.map +0 -1
- package/dist/components/ton-icon/index.d.ts.map +0 -1
- package/dist/components/ton-icon/index.js +0 -16
- package/dist/components/ton-icon/index.js.map +0 -1
- package/dist/components/ton-icon/index.mjs +0 -3
- package/dist/components/ton-icon/index.mjs.map +0 -1
- package/dist/components/ton-icon/ton-icon.d.ts.map +0 -1
- package/dist/components/ton-icon/ton-icon.js +0 -39
- package/dist/components/ton-icon/ton-icon.js.map +0 -1
- package/dist/components/ton-icon/ton-icon.mjs +0 -36
- package/dist/components/ton-icon/ton-icon.mjs.map +0 -1
- package/dist/components/ton-icon/ton-icon.stories.d.ts +0 -20
- package/dist/components/ton-icon/ton-icon.stories.d.ts.map +0 -1
- package/dist/components/ton-icon/ton-icon.stories.js +0 -71
- package/dist/components/ton-icon/ton-icon.stories.js.map +0 -1
- package/dist/components/ton-icon/ton-icon.stories.mjs +0 -60
- package/dist/components/ton-icon/ton-icon.stories.mjs.map +0 -1
- package/dist/features/balances/components/balance-badge/balance-badge.d.ts.map +0 -1
- package/dist/features/balances/components/balance-badge/balance-badge.js +0 -41
- package/dist/features/balances/components/balance-badge/balance-badge.js.map +0 -1
- package/dist/features/balances/components/balance-badge/balance-badge.mjs +0 -34
- package/dist/features/balances/components/balance-badge/balance-badge.mjs.map +0 -1
- package/dist/features/balances/components/balance-badge/balance-badge.module.css.map +0 -1
- package/dist/features/balances/components/balance-badge/balance-badge.stories.d.ts +0 -16
- package/dist/features/balances/components/balance-badge/balance-badge.stories.d.ts.map +0 -1
- package/dist/features/balances/components/balance-badge/balance-badge.stories.js +0 -59
- package/dist/features/balances/components/balance-badge/balance-badge.stories.js.map +0 -1
- package/dist/features/balances/components/balance-badge/balance-badge.stories.mjs +0 -51
- package/dist/features/balances/components/balance-badge/balance-badge.stories.mjs.map +0 -1
- package/dist/features/balances/components/balance-badge/index.d.ts.map +0 -1
- package/dist/features/balances/components/balance-badge/index.js +0 -12
- package/dist/features/balances/components/balance-badge/index.js.map +0 -1
- package/dist/features/balances/components/balance-badge/index.mjs +0 -3
- package/dist/features/balances/components/balance-badge/index.mjs.map +0 -1
- package/dist/features/balances/components/currency-item/currency-item.d.ts.map +0 -1
- package/dist/features/balances/components/currency-item/currency-item.js +0 -44
- package/dist/features/balances/components/currency-item/currency-item.js.map +0 -1
- package/dist/features/balances/components/currency-item/currency-item.mjs +0 -37
- package/dist/features/balances/components/currency-item/currency-item.mjs.map +0 -1
- package/dist/features/balances/components/currency-item/currency-item.module.css +0 -69
- package/dist/features/balances/components/currency-item/currency-item.module.css.map +0 -1
- package/dist/features/balances/components/currency-item/currency-item.stories.d.ts +0 -19
- package/dist/features/balances/components/currency-item/currency-item.stories.d.ts.map +0 -1
- package/dist/features/balances/components/currency-item/currency-item.stories.js +0 -89
- package/dist/features/balances/components/currency-item/currency-item.stories.js.map +0 -1
- package/dist/features/balances/components/currency-item/currency-item.stories.mjs +0 -79
- package/dist/features/balances/components/currency-item/currency-item.stories.mjs.map +0 -1
- package/dist/features/balances/components/currency-item/index.d.ts.map +0 -1
- package/dist/features/balances/components/currency-item/index.js +0 -14
- package/dist/features/balances/components/currency-item/index.js.map +0 -1
- package/dist/features/balances/components/currency-item/index.mjs +0 -3
- package/dist/features/balances/components/currency-item/index.mjs.map +0 -1
- package/dist/features/balances/components/send-jetton-button/index.d.ts.map +0 -1
- package/dist/features/balances/components/send-jetton-button/index.js +0 -14
- package/dist/features/balances/components/send-jetton-button/index.js.map +0 -1
- package/dist/features/balances/components/send-jetton-button/index.mjs +0 -3
- package/dist/features/balances/components/send-jetton-button/index.mjs.map +0 -1
- package/dist/features/balances/components/send-jetton-button/send-jetton-button.d.ts.map +0 -1
- package/dist/features/balances/components/send-jetton-button/send-jetton-button.js +0 -56
- package/dist/features/balances/components/send-jetton-button/send-jetton-button.js.map +0 -1
- package/dist/features/balances/components/send-jetton-button/send-jetton-button.mjs +0 -54
- package/dist/features/balances/components/send-jetton-button/send-jetton-button.mjs.map +0 -1
- package/dist/features/balances/components/send-jetton-button/send-jetton-button.stories.d.ts +0 -22
- package/dist/features/balances/components/send-jetton-button/send-jetton-button.stories.d.ts.map +0 -1
- package/dist/features/balances/components/send-jetton-button/send-jetton-button.stories.js +0 -58
- package/dist/features/balances/components/send-jetton-button/send-jetton-button.stories.js.map +0 -1
- package/dist/features/balances/components/send-jetton-button/send-jetton-button.stories.mjs +0 -49
- package/dist/features/balances/components/send-jetton-button/send-jetton-button.stories.mjs.map +0 -1
- package/dist/features/balances/components/send-ton-button/index.d.ts.map +0 -1
- package/dist/features/balances/components/send-ton-button/index.js +0 -14
- package/dist/features/balances/components/send-ton-button/index.js.map +0 -1
- package/dist/features/balances/components/send-ton-button/index.mjs +0 -3
- package/dist/features/balances/components/send-ton-button/index.mjs.map +0 -1
- package/dist/features/balances/components/send-ton-button/send-ton-button.d.ts.map +0 -1
- package/dist/features/balances/components/send-ton-button/send-ton-button.js +0 -33
- package/dist/features/balances/components/send-ton-button/send-ton-button.js.map +0 -1
- package/dist/features/balances/components/send-ton-button/send-ton-button.mjs +0 -31
- package/dist/features/balances/components/send-ton-button/send-ton-button.mjs.map +0 -1
- package/dist/features/balances/components/send-ton-button/send-ton-button.stories.d.ts +0 -21
- package/dist/features/balances/components/send-ton-button/send-ton-button.stories.d.ts.map +0 -1
- package/dist/features/balances/components/send-ton-button/send-ton-button.stories.js +0 -52
- package/dist/features/balances/components/send-ton-button/send-ton-button.stories.js.map +0 -1
- package/dist/features/balances/components/send-ton-button/send-ton-button.stories.mjs +0 -44
- package/dist/features/balances/components/send-ton-button/send-ton-button.stories.mjs.map +0 -1
- package/dist/features/balances/hooks/use-balance-by-address.d.ts.map +0 -1
- package/dist/features/balances/hooks/use-balance-by-address.js +0 -14
- package/dist/features/balances/hooks/use-balance-by-address.js.map +0 -1
- package/dist/features/balances/hooks/use-balance-by-address.mjs +0 -12
- package/dist/features/balances/hooks/use-balance-by-address.mjs.map +0 -1
- package/dist/features/balances/hooks/use-balance.d.ts.map +0 -1
- package/dist/features/balances/hooks/use-balance.js +0 -13
- package/dist/features/balances/hooks/use-balance.js.map +0 -1
- package/dist/features/balances/hooks/use-balance.mjs +0 -11
- package/dist/features/balances/hooks/use-balance.mjs.map +0 -1
- package/dist/features/balances/index.d.ts.map +0 -1
- package/dist/features/balances/index.js +0 -49
- package/dist/features/balances/index.js.map +0 -1
- package/dist/features/balances/index.mjs.map +0 -1
- package/dist/features/jettons/hooks/use-jetton-balance-by-address.d.ts.map +0 -1
- package/dist/features/jettons/hooks/use-jetton-balance-by-address.js +0 -14
- package/dist/features/jettons/hooks/use-jetton-balance-by-address.js.map +0 -1
- package/dist/features/jettons/hooks/use-jetton-balance-by-address.mjs +0 -12
- package/dist/features/jettons/hooks/use-jetton-balance-by-address.mjs.map +0 -1
- package/dist/features/jettons/hooks/use-jetton-info.d.ts.map +0 -1
- package/dist/features/jettons/hooks/use-jetton-info.js +0 -14
- package/dist/features/jettons/hooks/use-jetton-info.js.map +0 -1
- package/dist/features/jettons/hooks/use-jetton-info.mjs +0 -12
- package/dist/features/jettons/hooks/use-jetton-info.mjs.map +0 -1
- package/dist/features/jettons/hooks/use-jetton-wallet-address.d.ts.map +0 -1
- package/dist/features/jettons/hooks/use-jetton-wallet-address.js +0 -14
- package/dist/features/jettons/hooks/use-jetton-wallet-address.js.map +0 -1
- package/dist/features/jettons/hooks/use-jetton-wallet-address.mjs +0 -12
- package/dist/features/jettons/hooks/use-jetton-wallet-address.mjs.map +0 -1
- package/dist/features/jettons/hooks/use-jettons-by-address.d.ts.map +0 -1
- package/dist/features/jettons/hooks/use-jettons-by-address.js +0 -14
- package/dist/features/jettons/hooks/use-jettons-by-address.js.map +0 -1
- package/dist/features/jettons/hooks/use-jettons-by-address.mjs +0 -12
- package/dist/features/jettons/hooks/use-jettons-by-address.mjs.map +0 -1
- package/dist/features/jettons/hooks/use-jettons.d.ts.map +0 -1
- package/dist/features/jettons/hooks/use-jettons.js +0 -13
- package/dist/features/jettons/hooks/use-jettons.js.map +0 -1
- package/dist/features/jettons/hooks/use-jettons.mjs +0 -11
- package/dist/features/jettons/hooks/use-jettons.mjs.map +0 -1
- package/dist/features/jettons/hooks/use-transfer-jetton.d.ts.map +0 -1
- package/dist/features/jettons/hooks/use-transfer-jetton.js +0 -14
- package/dist/features/jettons/hooks/use-transfer-jetton.js.map +0 -1
- package/dist/features/jettons/hooks/use-transfer-jetton.mjs +0 -12
- package/dist/features/jettons/hooks/use-transfer-jetton.mjs.map +0 -1
- package/dist/features/jettons/index.d.ts.map +0 -1
- package/dist/features/jettons/index.js +0 -49
- package/dist/features/jettons/index.js.map +0 -1
- package/dist/features/jettons/index.mjs.map +0 -1
- package/dist/features/network/hooks/use-network.d.ts.map +0 -1
- package/dist/features/network/hooks/use-network.js +0 -13
- package/dist/features/network/hooks/use-network.js.map +0 -1
- package/dist/features/network/hooks/use-network.mjs +0 -11
- package/dist/features/network/hooks/use-network.mjs.map +0 -1
- package/dist/features/network/hooks/use-networks.d.ts.map +0 -1
- package/dist/features/network/hooks/use-networks.js +0 -23
- package/dist/features/network/hooks/use-networks.js.map +0 -1
- package/dist/features/network/hooks/use-networks.mjs +0 -21
- package/dist/features/network/hooks/use-networks.mjs.map +0 -1
- package/dist/features/network/index.d.ts.map +0 -1
- package/dist/features/network/index.js +0 -17
- package/dist/features/network/index.js.map +0 -1
- package/dist/features/network/index.mjs +0 -4
- package/dist/features/network/index.mjs.map +0 -1
- package/dist/features/nft/components/nft-item/index.d.ts.map +0 -1
- package/dist/features/nft/components/nft-item/index.js +0 -14
- package/dist/features/nft/components/nft-item/index.js.map +0 -1
- package/dist/features/nft/components/nft-item/index.mjs +0 -3
- package/dist/features/nft/components/nft-item/index.mjs.map +0 -1
- package/dist/features/nft/components/nft-item/nft-item.d.ts.map +0 -1
- package/dist/features/nft/components/nft-item/nft-item.js +0 -43
- package/dist/features/nft/components/nft-item/nft-item.js.map +0 -1
- package/dist/features/nft/components/nft-item/nft-item.mjs +0 -36
- package/dist/features/nft/components/nft-item/nft-item.mjs.map +0 -1
- package/dist/features/nft/components/nft-item/nft-item.module.css +0 -65
- package/dist/features/nft/components/nft-item/nft-item.module.css.map +0 -1
- package/dist/features/nft/components/nft-item/nft-item.stories.d.ts +0 -25
- package/dist/features/nft/components/nft-item/nft-item.stories.d.ts.map +0 -1
- package/dist/features/nft/components/nft-item/nft-item.stories.js +0 -124
- package/dist/features/nft/components/nft-item/nft-item.stories.js.map +0 -1
- package/dist/features/nft/components/nft-item/nft-item.stories.mjs +0 -110
- package/dist/features/nft/components/nft-item/nft-item.stories.mjs.map +0 -1
- package/dist/features/nft/hooks/use-nft.d.ts.map +0 -1
- package/dist/features/nft/hooks/use-nft.js +0 -14
- package/dist/features/nft/hooks/use-nft.js.map +0 -1
- package/dist/features/nft/hooks/use-nft.mjs +0 -12
- package/dist/features/nft/hooks/use-nft.mjs.map +0 -1
- package/dist/features/nft/hooks/use-nfts-by-address.d.ts.map +0 -1
- package/dist/features/nft/hooks/use-nfts-by-address.js +0 -14
- package/dist/features/nft/hooks/use-nfts-by-address.js.map +0 -1
- package/dist/features/nft/hooks/use-nfts-by-address.mjs +0 -12
- package/dist/features/nft/hooks/use-nfts-by-address.mjs.map +0 -1
- package/dist/features/nft/hooks/use-nfts.d.ts.map +0 -1
- package/dist/features/nft/hooks/use-nfts.js +0 -13
- package/dist/features/nft/hooks/use-nfts.js.map +0 -1
- package/dist/features/nft/hooks/use-nfts.mjs +0 -11
- package/dist/features/nft/hooks/use-nfts.mjs.map +0 -1
- package/dist/features/nft/hooks/use-transfer-nft.d.ts.map +0 -1
- package/dist/features/nft/hooks/use-transfer-nft.js +0 -14
- package/dist/features/nft/hooks/use-transfer-nft.js.map +0 -1
- package/dist/features/nft/hooks/use-transfer-nft.mjs +0 -12
- package/dist/features/nft/hooks/use-transfer-nft.mjs.map +0 -1
- package/dist/features/nft/index.d.ts.map +0 -1
- package/dist/features/nft/index.js +0 -42
- package/dist/features/nft/index.js.map +0 -1
- package/dist/features/nft/index.mjs.map +0 -1
- package/dist/features/signing/hooks/use-sign-binary.d.ts.map +0 -1
- package/dist/features/signing/hooks/use-sign-binary.js +0 -14
- package/dist/features/signing/hooks/use-sign-binary.js.map +0 -1
- package/dist/features/signing/hooks/use-sign-binary.mjs +0 -12
- package/dist/features/signing/hooks/use-sign-binary.mjs.map +0 -1
- package/dist/features/signing/hooks/use-sign-cell.d.ts.map +0 -1
- package/dist/features/signing/hooks/use-sign-cell.js +0 -14
- package/dist/features/signing/hooks/use-sign-cell.js.map +0 -1
- package/dist/features/signing/hooks/use-sign-cell.mjs +0 -12
- package/dist/features/signing/hooks/use-sign-cell.mjs.map +0 -1
- package/dist/features/signing/hooks/use-sign-text.d.ts.map +0 -1
- package/dist/features/signing/hooks/use-sign-text.js +0 -14
- package/dist/features/signing/hooks/use-sign-text.js.map +0 -1
- package/dist/features/signing/hooks/use-sign-text.mjs +0 -12
- package/dist/features/signing/hooks/use-sign-text.mjs.map +0 -1
- package/dist/features/signing/index.d.ts.map +0 -1
- package/dist/features/signing/index.js +0 -28
- package/dist/features/signing/index.js.map +0 -1
- package/dist/features/signing/index.mjs +0 -5
- package/dist/features/signing/index.mjs.map +0 -1
- package/dist/features/swap/hooks/use-build-swap-transaction.d.ts.map +0 -1
- package/dist/features/swap/hooks/use-build-swap-transaction.js +0 -14
- package/dist/features/swap/hooks/use-build-swap-transaction.js.map +0 -1
- package/dist/features/swap/hooks/use-build-swap-transaction.mjs +0 -12
- package/dist/features/swap/hooks/use-build-swap-transaction.mjs.map +0 -1
- package/dist/features/swap/hooks/use-swap-quote.d.ts.map +0 -1
- package/dist/features/swap/hooks/use-swap-quote.js +0 -14
- package/dist/features/swap/hooks/use-swap-quote.js.map +0 -1
- package/dist/features/swap/hooks/use-swap-quote.mjs +0 -12
- package/dist/features/swap/hooks/use-swap-quote.mjs.map +0 -1
- package/dist/features/swap/index.d.ts.map +0 -1
- package/dist/features/swap/index.js +0 -21
- package/dist/features/swap/index.js.map +0 -1
- package/dist/features/swap/index.mjs +0 -4
- package/dist/features/swap/index.mjs.map +0 -1
- package/dist/features/transaction/components/transaction/index.d.ts.map +0 -1
- package/dist/features/transaction/components/transaction/index.js +0 -12
- package/dist/features/transaction/components/transaction/index.js.map +0 -1
- package/dist/features/transaction/components/transaction/index.mjs +0 -3
- package/dist/features/transaction/components/transaction/index.mjs.map +0 -1
- package/dist/features/transaction/components/transaction/transaction.d.ts.map +0 -1
- package/dist/features/transaction/components/transaction/transaction.js +0 -49
- package/dist/features/transaction/components/transaction/transaction.js.map +0 -1
- package/dist/features/transaction/components/transaction/transaction.mjs +0 -47
- package/dist/features/transaction/components/transaction/transaction.mjs.map +0 -1
- package/dist/features/transaction/components/transaction/transaction.stories.d.ts +0 -23
- package/dist/features/transaction/components/transaction/transaction.stories.d.ts.map +0 -1
- package/dist/features/transaction/components/transaction/transaction.stories.js +0 -64
- package/dist/features/transaction/components/transaction/transaction.stories.js.map +0 -1
- package/dist/features/transaction/components/transaction/transaction.stories.mjs +0 -54
- package/dist/features/transaction/components/transaction/transaction.stories.mjs.map +0 -1
- package/dist/features/transaction/components/transaction-provider/index.d.ts.map +0 -1
- package/dist/features/transaction/components/transaction-provider/index.js +0 -20
- package/dist/features/transaction/components/transaction-provider/index.js.map +0 -1
- package/dist/features/transaction/components/transaction-provider/index.mjs +0 -3
- package/dist/features/transaction/components/transaction-provider/index.mjs.map +0 -1
- package/dist/features/transaction/components/transaction-provider/transaction-provider.d.ts.map +0 -1
- package/dist/features/transaction/components/transaction-provider/transaction-provider.js +0 -76
- package/dist/features/transaction/components/transaction-provider/transaction-provider.js.map +0 -1
- package/dist/features/transaction/components/transaction-provider/transaction-provider.mjs +0 -72
- package/dist/features/transaction/components/transaction-provider/transaction-provider.mjs.map +0 -1
- package/dist/features/transaction/hooks/use-send-transaction.d.ts.map +0 -1
- package/dist/features/transaction/hooks/use-send-transaction.js +0 -14
- package/dist/features/transaction/hooks/use-send-transaction.js.map +0 -1
- package/dist/features/transaction/hooks/use-send-transaction.mjs +0 -12
- package/dist/features/transaction/hooks/use-send-transaction.mjs.map +0 -1
- package/dist/features/transaction/hooks/use-transfer-ton.d.ts.map +0 -1
- package/dist/features/transaction/hooks/use-transfer-ton.js +0 -14
- package/dist/features/transaction/hooks/use-transfer-ton.js.map +0 -1
- package/dist/features/transaction/hooks/use-transfer-ton.mjs +0 -12
- package/dist/features/transaction/hooks/use-transfer-ton.mjs.map +0 -1
- package/dist/features/transaction/index.d.ts.map +0 -1
- package/dist/features/transaction/index.js +0 -28
- package/dist/features/transaction/index.js.map +0 -1
- package/dist/features/transaction/index.mjs +0 -5
- package/dist/features/transaction/index.mjs.map +0 -1
- package/dist/features/wallets/components/connect-button/index.d.ts.map +0 -1
- package/dist/features/wallets/components/connect-button/index.js +0 -12
- package/dist/features/wallets/components/connect-button/index.js.map +0 -1
- package/dist/features/wallets/components/connect-button/index.mjs +0 -3
- package/dist/features/wallets/components/connect-button/index.mjs.map +0 -1
- package/dist/features/wallets/hooks/use-address.d.ts.map +0 -1
- package/dist/features/wallets/hooks/use-address.js +0 -13
- package/dist/features/wallets/hooks/use-address.js.map +0 -1
- package/dist/features/wallets/hooks/use-address.mjs +0 -11
- package/dist/features/wallets/hooks/use-address.mjs.map +0 -1
- package/dist/features/wallets/hooks/use-connect.d.ts.map +0 -1
- package/dist/features/wallets/hooks/use-connect.js +0 -14
- package/dist/features/wallets/hooks/use-connect.js.map +0 -1
- package/dist/features/wallets/hooks/use-connect.mjs +0 -12
- package/dist/features/wallets/hooks/use-connect.mjs.map +0 -1
- package/dist/features/wallets/hooks/use-connected-wallets.d.ts.map +0 -1
- package/dist/features/wallets/hooks/use-connected-wallets.js +0 -23
- package/dist/features/wallets/hooks/use-connected-wallets.js.map +0 -1
- package/dist/features/wallets/hooks/use-connected-wallets.mjs +0 -21
- package/dist/features/wallets/hooks/use-connected-wallets.mjs.map +0 -1
- package/dist/features/wallets/hooks/use-connector-by-id.d.ts.map +0 -1
- package/dist/features/wallets/hooks/use-connector-by-id.js +0 -23
- package/dist/features/wallets/hooks/use-connector-by-id.js.map +0 -1
- package/dist/features/wallets/hooks/use-connector-by-id.mjs +0 -21
- package/dist/features/wallets/hooks/use-connector-by-id.mjs.map +0 -1
- package/dist/features/wallets/hooks/use-connectors.d.ts.map +0 -1
- package/dist/features/wallets/hooks/use-connectors.js +0 -23
- package/dist/features/wallets/hooks/use-connectors.js.map +0 -1
- package/dist/features/wallets/hooks/use-connectors.mjs +0 -21
- package/dist/features/wallets/hooks/use-connectors.mjs.map +0 -1
- package/dist/features/wallets/hooks/use-disconnect.d.ts.map +0 -1
- package/dist/features/wallets/hooks/use-disconnect.js +0 -14
- package/dist/features/wallets/hooks/use-disconnect.js.map +0 -1
- package/dist/features/wallets/hooks/use-disconnect.mjs +0 -12
- package/dist/features/wallets/hooks/use-disconnect.mjs.map +0 -1
- package/dist/features/wallets/hooks/use-selected-wallet.d.ts.map +0 -1
- package/dist/features/wallets/hooks/use-selected-wallet.js +0 -30
- package/dist/features/wallets/hooks/use-selected-wallet.js.map +0 -1
- package/dist/features/wallets/hooks/use-selected-wallet.mjs +0 -28
- package/dist/features/wallets/hooks/use-selected-wallet.mjs.map +0 -1
- package/dist/features/wallets/index.d.ts.map +0 -1
- package/dist/features/wallets/index.js +0 -63
- package/dist/features/wallets/index.js.map +0 -1
- package/dist/features/wallets/index.mjs.map +0 -1
- package/dist/global.d.js +0 -4
- package/dist/global.d.js.map +0 -1
- package/dist/global.d.mjs +0 -3
- package/dist/global.d.mjs.map +0 -1
- package/dist/hooks/use-app-kit-theme.d.ts.map +0 -1
- package/dist/hooks/use-app-kit-theme.js +0 -16
- package/dist/hooks/use-app-kit-theme.js.map +0 -1
- package/dist/hooks/use-app-kit-theme.mjs +0 -14
- package/dist/hooks/use-app-kit-theme.mjs.map +0 -1
- package/dist/hooks/use-app-kit.d.ts.map +0 -1
- package/dist/hooks/use-app-kit.js +0 -16
- package/dist/hooks/use-app-kit.js.map +0 -1
- package/dist/hooks/use-app-kit.mjs +0 -14
- package/dist/hooks/use-app-kit.mjs.map +0 -1
- package/dist/hooks/use-i18n.d.ts.map +0 -1
- package/dist/hooks/use-i18n.js +0 -16
- package/dist/hooks/use-i18n.js.map +0 -1
- package/dist/hooks/use-i18n.mjs +0 -14
- package/dist/hooks/use-i18n.mjs.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -123
- package/dist/index.js.map +0 -1
- package/dist/index.mjs.map +0 -1
- package/dist/libs/i18n.d.ts.map +0 -1
- package/dist/libs/i18n.js +0 -22
- package/dist/libs/i18n.js.map +0 -1
- package/dist/libs/i18n.mjs +0 -11
- package/dist/libs/i18n.mjs.map +0 -1
- package/dist/libs/query.d.ts.map +0 -1
- package/dist/libs/query.js +0 -20
- package/dist/libs/query.js.map +0 -1
- package/dist/libs/query.mjs +0 -15
- package/dist/libs/query.mjs.map +0 -1
- package/dist/locales/en.d.ts.map +0 -1
- package/dist/locales/en.js +0 -30
- package/dist/locales/en.js.map +0 -1
- package/dist/locales/en.mjs +0 -28
- package/dist/locales/en.mjs.map +0 -1
- package/dist/providers/app-kit-provider.d.ts.map +0 -1
- package/dist/providers/app-kit-provider.js +0 -16
- package/dist/providers/app-kit-provider.js.map +0 -1
- package/dist/providers/app-kit-provider.mjs +0 -13
- package/dist/providers/app-kit-provider.mjs.map +0 -1
- package/dist/providers/i18n-provider.d.ts.map +0 -1
- package/dist/providers/i18n-provider.js +0 -55
- package/dist/providers/i18n-provider.js.map +0 -1
- package/dist/providers/i18n-provider.mjs +0 -52
- package/dist/providers/i18n-provider.mjs.map +0 -1
- package/dist/styles/index.css.map +0 -1
- package/dist/styles/typography.module.css.map +0 -1
- package/dist/tonconnect/tonconnect-bridge.d.ts.map +0 -1
- package/dist/tonconnect/tonconnect-bridge.js +0 -23
- package/dist/tonconnect/tonconnect-bridge.js.map +0 -1
- package/dist/tonconnect/tonconnect-bridge.mjs +0 -21
- package/dist/tonconnect/tonconnect-bridge.mjs.map +0 -1
- /package/dist/{components → types/components}/block/block.d.ts +0 -0
- /package/dist/{components → types/components}/block/index.d.ts +0 -0
- /package/dist/{components → types/components}/button/button.d.ts +0 -0
- /package/dist/{components → types/components}/button/index.d.ts +0 -0
- /package/dist/{components → types/components}/circle-icon/circle-icon.d.ts +0 -0
- /package/dist/{components → types/components}/circle-icon/index.d.ts +0 -0
- /package/dist/{components → types/components}/ton-icon/index.d.ts +0 -0
- /package/dist/{components → types/components}/ton-icon/ton-icon.d.ts +0 -0
- /package/dist/{features → types/features}/balances/components/balance-badge/balance-badge.d.ts +0 -0
- /package/dist/{features → types/features}/balances/components/balance-badge/index.d.ts +0 -0
- /package/dist/{features → types/features}/balances/components/currency-item/currency-item.d.ts +0 -0
- /package/dist/{features → types/features}/balances/components/currency-item/index.d.ts +0 -0
- /package/dist/{features → types/features}/balances/components/send-jetton-button/index.d.ts +0 -0
- /package/dist/{features → types/features}/balances/components/send-jetton-button/send-jetton-button.d.ts +0 -0
- /package/dist/{features → types/features}/balances/components/send-ton-button/index.d.ts +0 -0
- /package/dist/{features → types/features}/balances/components/send-ton-button/send-ton-button.d.ts +0 -0
- /package/dist/{features → types/features}/balances/hooks/use-balance-by-address.d.ts +0 -0
- /package/dist/{features → types/features}/balances/hooks/use-balance.d.ts +0 -0
- /package/dist/{features → types/features}/balances/index.d.ts +0 -0
- /package/dist/{features → types/features}/jettons/hooks/use-jetton-balance-by-address.d.ts +0 -0
- /package/dist/{features → types/features}/jettons/hooks/use-jetton-info.d.ts +0 -0
- /package/dist/{features → types/features}/jettons/hooks/use-jetton-wallet-address.d.ts +0 -0
- /package/dist/{features → types/features}/jettons/hooks/use-jettons-by-address.d.ts +0 -0
- /package/dist/{features → types/features}/jettons/hooks/use-jettons.d.ts +0 -0
- /package/dist/{features → types/features}/jettons/hooks/use-transfer-jetton.d.ts +0 -0
- /package/dist/{features → types/features}/jettons/index.d.ts +0 -0
- /package/dist/{features → types/features}/network/hooks/use-network.d.ts +0 -0
- /package/dist/{features → types/features}/network/hooks/use-networks.d.ts +0 -0
- /package/dist/{features → types/features}/network/index.d.ts +0 -0
- /package/dist/{features → types/features}/nft/components/nft-item/index.d.ts +0 -0
- /package/dist/{features → types/features}/nft/components/nft-item/nft-item.d.ts +0 -0
- /package/dist/{features → types/features}/nft/hooks/use-nft.d.ts +0 -0
- /package/dist/{features → types/features}/nft/hooks/use-nfts-by-address.d.ts +0 -0
- /package/dist/{features → types/features}/nft/hooks/use-nfts.d.ts +0 -0
- /package/dist/{features → types/features}/nft/hooks/use-transfer-nft.d.ts +0 -0
- /package/dist/{features → types/features}/nft/index.d.ts +0 -0
- /package/dist/{features → types/features}/signing/hooks/use-sign-binary.d.ts +0 -0
- /package/dist/{features → types/features}/signing/hooks/use-sign-cell.d.ts +0 -0
- /package/dist/{features → types/features}/signing/hooks/use-sign-text.d.ts +0 -0
- /package/dist/{features → types/features}/signing/index.d.ts +0 -0
- /package/dist/{features → types/features}/swap/hooks/use-build-swap-transaction.d.ts +0 -0
- /package/dist/{features → types/features}/swap/hooks/use-swap-quote.d.ts +0 -0
- /package/dist/{features → types/features}/swap/index.d.ts +0 -0
- /package/dist/{features → types/features}/transaction/components/transaction/index.d.ts +0 -0
- /package/dist/{features → types/features}/transaction/components/transaction/transaction.d.ts +0 -0
- /package/dist/{features → types/features}/transaction/components/transaction-provider/index.d.ts +0 -0
- /package/dist/{features → types/features}/transaction/components/transaction-provider/transaction-provider.d.ts +0 -0
- /package/dist/{features → types/features}/transaction/hooks/use-send-transaction.d.ts +0 -0
- /package/dist/{features → types/features}/transaction/hooks/use-transfer-ton.d.ts +0 -0
- /package/dist/{features → types/features}/wallets/components/connect-button/index.d.ts +0 -0
- /package/dist/{features → types/features}/wallets/hooks/use-address.d.ts +0 -0
- /package/dist/{features → types/features}/wallets/hooks/use-connect.d.ts +0 -0
- /package/dist/{features → types/features}/wallets/hooks/use-connected-wallets.d.ts +0 -0
- /package/dist/{features → types/features}/wallets/hooks/use-connector-by-id.d.ts +0 -0
- /package/dist/{features → types/features}/wallets/hooks/use-connectors.d.ts +0 -0
- /package/dist/{features → types/features}/wallets/hooks/use-disconnect.d.ts +0 -0
- /package/dist/{features → types/features}/wallets/hooks/use-selected-wallet.d.ts +0 -0
- /package/dist/{features → types/features}/wallets/index.d.ts +0 -0
- /package/dist/{hooks → types/hooks}/use-app-kit-theme.d.ts +0 -0
- /package/dist/{hooks → types/hooks}/use-app-kit.d.ts +0 -0
- /package/dist/{hooks → types/hooks}/use-i18n.d.ts +0 -0
- /package/dist/{index.d.ts → types/index.d.ts} +0 -0
- /package/dist/{libs → types/libs}/query.d.ts +0 -0
- /package/dist/{providers → types/providers}/app-kit-provider.d.ts +0 -0
- /package/dist/{providers → types/providers}/i18n-provider.d.ts +0 -0
- /package/dist/{tonconnect → types/tonconnect}/tonconnect-bridge.d.ts +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/features/transaction/components/transaction/transaction.stories.tsx"],"names":[],"mappings":";;;AAaA,MAAM,2BAA2B,CAAC;AAAA,EAC9B,IAAA,GAAO,kBAAA;AAAA,EACP,SAAA,GAAY,KAAA;AAAA,EACZ,QAAA,GAAW;AACf,CAAA,KAIM;AACF,EAAA,2BAAQ,MAAA,EAAA,EAAO,QAAA,EAAU,YAAY,SAAA,EAAY,QAAA,EAAA,SAAA,GAAY,kBAAkB,IAAA,EAAK,CAAA;AACxF,CAAA;AAEA,MAAM,IAAA,GAA8C;AAAA,EAChD,KAAA,EAAO,yCAAA;AAAA,EACP,SAAA,EAAW,wBAAA;AAAA,EACX,IAAA,EAAM,CAAC,UAAU,CAAA;AAAA,EACjB,UAAA,EAAY;AAAA,IACR,MAAA,EAAQ;AAAA;AAEhB,CAAA;AAEA,IAAO,2BAAA,GAAQ;AAIR,MAAM,OAAA,GAAiB;AAAA,EAC1B,IAAA,EAAM;AAAA,IACF,IAAA,EAAM;AAAA;AAEd;AAEO,MAAM,UAAA,GAAoB;AAAA,EAC7B,IAAA,EAAM;AAAA,IACF,IAAA,EAAM;AAAA;AAEd;AAEO,MAAM,OAAA,GAAiB;AAAA,EAC1B,IAAA,EAAM;AAAA,IACF,SAAA,EAAW;AAAA;AAEnB;AAEO,MAAM,QAAA,GAAkB;AAAA,EAC3B,IAAA,EAAM;AAAA,IACF,IAAA,EAAM,kBAAA;AAAA,IACN,QAAA,EAAU;AAAA;AAElB;AAEO,MAAM,aAAA,GAAuB;AAAA,EAChC,IAAA,EAAM;AAAA,IACF,IAAA,EAAM;AAAA;AAEd;AAEO,MAAM,gBAAA,GAA0B;AAAA,EACnC,IAAA,EAAM;AAAA,IACF,IAAA,EAAM;AAAA;AAEd","file":"transaction.stories.mjs","sourcesContent":["/**\n * Copyright (c) TonTech.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport type { Meta, StoryObj } from '@storybook/react';\n\nimport { Button } from '../../../../components/button';\n\n// Create a preview component that doesn't depend on context\nconst TransactionButtonPreview = ({\n text = 'Send Transaction',\n isLoading = false,\n disabled = false,\n}: {\n text?: string;\n isLoading?: boolean;\n disabled?: boolean;\n}) => {\n return <Button disabled={disabled || isLoading}>{isLoading ? 'Processing...' : text}</Button>;\n};\n\nconst meta: Meta<typeof TransactionButtonPreview> = {\n title: 'Public/Features/Transaction/Transaction',\n component: TransactionButtonPreview,\n tags: ['autodocs'],\n parameters: {\n layout: 'centered',\n },\n};\n\nexport default meta;\n\ntype Story = StoryObj<typeof TransactionButtonPreview>;\n\nexport const Default: Story = {\n args: {\n text: 'Send Transaction',\n },\n};\n\nexport const CustomText: Story = {\n args: {\n text: 'Send 1.5 TON',\n },\n};\n\nexport const Loading: Story = {\n args: {\n isLoading: true,\n },\n};\n\nexport const Disabled: Story = {\n args: {\n text: 'Send Transaction',\n disabled: true,\n },\n};\n\nexport const SendTonButton: Story = {\n args: {\n text: 'Send 10 TON',\n },\n};\n\nexport const SendJettonButton: Story = {\n args: {\n text: 'Send 100 USDT',\n },\n};\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/transaction/components/transaction-provider/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AACxG,YAAY,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var transactionProvider = require('./transaction-provider');
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
Object.defineProperty(exports, "TransactionContext", {
|
|
8
|
-
enumerable: true,
|
|
9
|
-
get: function () { return transactionProvider.TransactionContext; }
|
|
10
|
-
});
|
|
11
|
-
Object.defineProperty(exports, "TransactionProvider", {
|
|
12
|
-
enumerable: true,
|
|
13
|
-
get: function () { return transactionProvider.TransactionProvider; }
|
|
14
|
-
});
|
|
15
|
-
Object.defineProperty(exports, "useTransactionContext", {
|
|
16
|
-
enumerable: true,
|
|
17
|
-
get: function () { return transactionProvider.useTransactionContext; }
|
|
18
|
-
});
|
|
19
|
-
//# sourceMappingURL=index.js.map
|
|
20
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js","sourcesContent":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.mjs","sourcesContent":[]}
|
package/dist/features/transaction/components/transaction-provider/transaction-provider.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"transaction-provider.d.ts","sourceRoot":"","sources":["../../../../../src/features/transaction/components/transaction-provider/transaction-provider.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EAAE,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AAG7D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAErE,MAAM,WAAW,sBAAsB;IACnC,yCAAyC;IACzC,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,mDAAmD;IACnD,SAAS,EAAE,OAAO,CAAC;IACnB,iDAAiD;IACjD,KAAK,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;IACrB,gDAAgD;IAChD,OAAO,CAAC,EAAE,yBAAyB,GAAG,IAAI,CAAC;IAC3C,qCAAqC;IACrC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,eAAO,MAAM,kBAAkB,iDAK7B,CAAC;AAEH,wBAAgB,qBAAqB,2BAIpC;AAED,MAAM,WAAW,wBAAyB,SAAQ,iBAAiB;IAC/D,yCAAyC;IACzC,OAAO,EAAE,kBAAkB,CAAC;IAC5B,oCAAoC;IACpC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC,kDAAkD;IAClD,SAAS,CAAC,EAAE,CAAC,QAAQ,EAAE,yBAAyB,KAAK,IAAI,CAAC;IAC1D,qCAAqC;IACrC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,eAAO,MAAM,mBAAmB,EAAE,EAAE,CAAC,wBAAwB,CA6D5D,CAAC"}
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
-
var react = require('react');
|
|
5
|
-
var useSendTransaction = require('../../hooks/use-send-transaction');
|
|
6
|
-
|
|
7
|
-
const TransactionContext = react.createContext({
|
|
8
|
-
onSubmit: () => {
|
|
9
|
-
throw new Error("onSubmit is not defined");
|
|
10
|
-
},
|
|
11
|
-
isLoading: false
|
|
12
|
-
});
|
|
13
|
-
function useTransactionContext() {
|
|
14
|
-
const context = react.useContext(TransactionContext);
|
|
15
|
-
return context;
|
|
16
|
-
}
|
|
17
|
-
const TransactionProvider = ({
|
|
18
|
-
children,
|
|
19
|
-
request,
|
|
20
|
-
onError,
|
|
21
|
-
onSuccess,
|
|
22
|
-
disabled = false
|
|
23
|
-
}) => {
|
|
24
|
-
const [receipt, setReceipt] = react.useState(null);
|
|
25
|
-
const [isPreparing, setIsPreparing] = react.useState(false);
|
|
26
|
-
const {
|
|
27
|
-
mutateAsync: sendTransaction,
|
|
28
|
-
isPending,
|
|
29
|
-
error: mutationError
|
|
30
|
-
} = useSendTransaction.useSendTransaction({
|
|
31
|
-
mutation: {
|
|
32
|
-
onSuccess: (data) => {
|
|
33
|
-
setReceipt(data);
|
|
34
|
-
onSuccess?.(data);
|
|
35
|
-
},
|
|
36
|
-
onError: (err) => {
|
|
37
|
-
onError?.(err);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
});
|
|
41
|
-
const handleSubmit = react.useCallback(async () => {
|
|
42
|
-
if (disabled || isPreparing || isPending) {
|
|
43
|
-
return;
|
|
44
|
-
}
|
|
45
|
-
setIsPreparing(true);
|
|
46
|
-
try {
|
|
47
|
-
const transactionRequest = typeof request === "function" ? await request() : await request;
|
|
48
|
-
if (!transactionRequest) {
|
|
49
|
-
return;
|
|
50
|
-
}
|
|
51
|
-
await sendTransaction(transactionRequest);
|
|
52
|
-
} catch (e) {
|
|
53
|
-
const error = e instanceof Error ? e : new Error(String(e));
|
|
54
|
-
onError?.(error);
|
|
55
|
-
} finally {
|
|
56
|
-
setIsPreparing(false);
|
|
57
|
-
}
|
|
58
|
-
}, [sendTransaction, request, disabled, isPreparing, isPending, onError]);
|
|
59
|
-
const value = react.useMemo(
|
|
60
|
-
() => ({
|
|
61
|
-
error: mutationError,
|
|
62
|
-
isLoading: isPreparing || isPending,
|
|
63
|
-
onSubmit: handleSubmit,
|
|
64
|
-
receipt,
|
|
65
|
-
disabled
|
|
66
|
-
}),
|
|
67
|
-
[mutationError, isPreparing, isPending, handleSubmit, receipt, disabled]
|
|
68
|
-
);
|
|
69
|
-
return /* @__PURE__ */ jsxRuntime.jsx(TransactionContext.Provider, { value, children });
|
|
70
|
-
};
|
|
71
|
-
|
|
72
|
-
exports.TransactionContext = TransactionContext;
|
|
73
|
-
exports.TransactionProvider = TransactionProvider;
|
|
74
|
-
exports.useTransactionContext = useTransactionContext;
|
|
75
|
-
//# sourceMappingURL=transaction-provider.js.map
|
|
76
|
-
//# sourceMappingURL=transaction-provider.js.map
|
package/dist/features/transaction/components/transaction-provider/transaction-provider.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/features/transaction/components/transaction-provider/transaction-provider.tsx"],"names":["createContext","useContext","useState","useSendTransaction","useCallback","useMemo","jsx"],"mappings":";;;;;;AA4BO,MAAM,qBAAqBA,mBAAA,CAAsC;AAAA,EACpE,UAAU,MAAM;AACZ,IAAA,MAAM,IAAI,MAAM,yBAAyB,CAAA;AAAA,EAC7C,CAAA;AAAA,EACA,SAAA,EAAW;AACf,CAAC;AAEM,SAAS,qBAAA,GAAwB;AACpC,EAAA,MAAM,OAAA,GAAUC,iBAAW,kBAAkB,CAAA;AAE7C,EAAA,OAAO,OAAA;AACX;AAaO,MAAM,sBAAoD,CAAC;AAAA,EAC9D,QAAA;AAAA,EACA,OAAA;AAAA,EACA,OAAA;AAAA,EACA,SAAA;AAAA,EACA,QAAA,GAAW;AACf,CAAA,KAAM;AACF,EAAA,MAAM,CAAC,OAAA,EAAS,UAAU,CAAA,GAAIC,eAA2C,IAAI,CAAA;AAC7E,EAAA,MAAM,CAAC,WAAA,EAAa,cAAc,CAAA,GAAIA,eAAS,KAAK,CAAA;AAEpD,EAAA,MAAM;AAAA,IACF,WAAA,EAAa,eAAA;AAAA,IACb,SAAA;AAAA,IACA,KAAA,EAAO;AAAA,MACPC,qCAAA,CAAmB;AAAA,IACnB,QAAA,EAAU;AAAA,MACN,SAAA,EAAW,CAAC,IAAA,KAAS;AACjB,QAAA,UAAA,CAAW,IAAI,CAAA;AACf,QAAA,SAAA,GAAY,IAAI,CAAA;AAAA,MACpB,CAAA;AAAA,MACA,OAAA,EAAS,CAAC,GAAA,KAAQ;AACd,QAAA,OAAA,GAAU,GAAG,CAAA;AAAA,MACjB;AAAA;AACJ,GACH,CAAA;AAED,EAAA,MAAM,YAAA,GAAeC,kBAAY,YAAY;AACzC,IAAA,IAAI,QAAA,IAAY,eAAe,SAAA,EAAW;AACtC,MAAA;AAAA,IACJ;AAEA,IAAA,cAAA,CAAe,IAAI,CAAA;AAEnB,IAAA,IAAI;AACA,MAAA,MAAM,qBAAqB,OAAO,OAAA,KAAY,aAAa,MAAM,OAAA,KAAY,MAAM,OAAA;AAEnF,MAAA,IAAI,CAAC,kBAAA,EAAoB;AACrB,QAAA;AAAA,MACJ;AAEA,MAAA,MAAM,gBAAgB,kBAAkB,CAAA;AAAA,IAC5C,SAAS,CAAA,EAAG;AACR,MAAA,MAAM,KAAA,GAAQ,aAAa,KAAA,GAAQ,CAAA,GAAI,IAAI,KAAA,CAAM,MAAA,CAAO,CAAC,CAAC,CAAA;AAC1D,MAAA,OAAA,GAAU,KAAK,CAAA;AAAA,IACnB,CAAA,SAAE;AACE,MAAA,cAAA,CAAe,KAAK,CAAA;AAAA,IACxB;AAAA,EACJ,CAAA,EAAG,CAAC,eAAA,EAAiB,OAAA,EAAS,UAAU,WAAA,EAAa,SAAA,EAAW,OAAO,CAAC,CAAA;AAExE,EAAA,MAAM,KAAA,GAAQC,aAAA;AAAA,IACV,OAAO;AAAA,MACH,KAAA,EAAO,aAAA;AAAA,MACP,WAAW,WAAA,IAAe,SAAA;AAAA,MAC1B,QAAA,EAAU,YAAA;AAAA,MACV,OAAA;AAAA,MACA;AAAA,KACJ,CAAA;AAAA,IACA,CAAC,aAAA,EAAe,WAAA,EAAa,SAAA,EAAW,YAAA,EAAc,SAAS,QAAQ;AAAA,GAC3E;AAEA,EAAA,uBAAOC,cAAA,CAAC,kBAAA,CAAmB,QAAA,EAAnB,EAA4B,OAAe,QAAA,EAAS,CAAA;AAChE","file":"transaction-provider.js","sourcesContent":["/**\n * Copyright (c) TonTech.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport { createContext, useCallback, useContext, useMemo, useState } from 'react';\nimport type { FC, PropsWithChildren } from 'react';\nimport type { SendTransactionReturnType } from '@ton/appkit';\n\nimport { useSendTransaction } from '../../hooks/use-send-transaction';\nimport type { TransactionRequest } from '../transaction/transaction';\n\nexport interface TransactionContextType {\n /** Function to submit the transaction */\n onSubmit: () => void;\n /** Whether the transaction is currently loading */\n isLoading: boolean;\n /** The error object if the transaction failed */\n error?: Error | null;\n /** The receipt of the successful transaction */\n receipt?: SendTransactionReturnType | null;\n /** Disable the button/interaction */\n disabled?: boolean;\n}\n\nexport const TransactionContext = createContext<TransactionContextType>({\n onSubmit: () => {\n throw new Error('onSubmit is not defined');\n },\n isLoading: false,\n});\n\nexport function useTransactionContext() {\n const context = useContext(TransactionContext);\n\n return context;\n}\n\nexport interface TransactionProviderProps extends PropsWithChildren {\n /** The transaction request parameters */\n request: TransactionRequest;\n /** Callback when an error occurs */\n onError?: (error: Error) => void;\n /** Callback when the transaction is successful */\n onSuccess?: (response: SendTransactionReturnType) => void;\n /** Disable the button/interaction */\n disabled?: boolean;\n}\n\nexport const TransactionProvider: FC<TransactionProviderProps> = ({\n children,\n request,\n onError,\n onSuccess,\n disabled = false,\n}) => {\n const [receipt, setReceipt] = useState<SendTransactionReturnType | null>(null);\n const [isPreparing, setIsPreparing] = useState(false);\n\n const {\n mutateAsync: sendTransaction,\n isPending,\n error: mutationError,\n } = useSendTransaction({\n mutation: {\n onSuccess: (data) => {\n setReceipt(data);\n onSuccess?.(data);\n },\n onError: (err) => {\n onError?.(err);\n },\n },\n });\n\n const handleSubmit = useCallback(async () => {\n if (disabled || isPreparing || isPending) {\n return;\n }\n\n setIsPreparing(true);\n\n try {\n const transactionRequest = typeof request === 'function' ? await request() : await request;\n\n if (!transactionRequest) {\n return;\n }\n\n await sendTransaction(transactionRequest);\n } catch (e) {\n const error = e instanceof Error ? e : new Error(String(e));\n onError?.(error);\n } finally {\n setIsPreparing(false);\n }\n }, [sendTransaction, request, disabled, isPreparing, isPending, onError]);\n\n const value = useMemo(\n () => ({\n error: mutationError,\n isLoading: isPreparing || isPending,\n onSubmit: handleSubmit,\n receipt,\n disabled,\n }),\n [mutationError, isPreparing, isPending, handleSubmit, receipt, disabled],\n );\n\n return <TransactionContext.Provider value={value}>{children}</TransactionContext.Provider>;\n};\n"]}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { createContext, useContext, useState, useCallback, useMemo } from 'react';
|
|
3
|
-
import { useSendTransaction } from '../../hooks/use-send-transaction';
|
|
4
|
-
|
|
5
|
-
const TransactionContext = createContext({
|
|
6
|
-
onSubmit: () => {
|
|
7
|
-
throw new Error("onSubmit is not defined");
|
|
8
|
-
},
|
|
9
|
-
isLoading: false
|
|
10
|
-
});
|
|
11
|
-
function useTransactionContext() {
|
|
12
|
-
const context = useContext(TransactionContext);
|
|
13
|
-
return context;
|
|
14
|
-
}
|
|
15
|
-
const TransactionProvider = ({
|
|
16
|
-
children,
|
|
17
|
-
request,
|
|
18
|
-
onError,
|
|
19
|
-
onSuccess,
|
|
20
|
-
disabled = false
|
|
21
|
-
}) => {
|
|
22
|
-
const [receipt, setReceipt] = useState(null);
|
|
23
|
-
const [isPreparing, setIsPreparing] = useState(false);
|
|
24
|
-
const {
|
|
25
|
-
mutateAsync: sendTransaction,
|
|
26
|
-
isPending,
|
|
27
|
-
error: mutationError
|
|
28
|
-
} = useSendTransaction({
|
|
29
|
-
mutation: {
|
|
30
|
-
onSuccess: (data) => {
|
|
31
|
-
setReceipt(data);
|
|
32
|
-
onSuccess?.(data);
|
|
33
|
-
},
|
|
34
|
-
onError: (err) => {
|
|
35
|
-
onError?.(err);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
});
|
|
39
|
-
const handleSubmit = useCallback(async () => {
|
|
40
|
-
if (disabled || isPreparing || isPending) {
|
|
41
|
-
return;
|
|
42
|
-
}
|
|
43
|
-
setIsPreparing(true);
|
|
44
|
-
try {
|
|
45
|
-
const transactionRequest = typeof request === "function" ? await request() : await request;
|
|
46
|
-
if (!transactionRequest) {
|
|
47
|
-
return;
|
|
48
|
-
}
|
|
49
|
-
await sendTransaction(transactionRequest);
|
|
50
|
-
} catch (e) {
|
|
51
|
-
const error = e instanceof Error ? e : new Error(String(e));
|
|
52
|
-
onError?.(error);
|
|
53
|
-
} finally {
|
|
54
|
-
setIsPreparing(false);
|
|
55
|
-
}
|
|
56
|
-
}, [sendTransaction, request, disabled, isPreparing, isPending, onError]);
|
|
57
|
-
const value = useMemo(
|
|
58
|
-
() => ({
|
|
59
|
-
error: mutationError,
|
|
60
|
-
isLoading: isPreparing || isPending,
|
|
61
|
-
onSubmit: handleSubmit,
|
|
62
|
-
receipt,
|
|
63
|
-
disabled
|
|
64
|
-
}),
|
|
65
|
-
[mutationError, isPreparing, isPending, handleSubmit, receipt, disabled]
|
|
66
|
-
);
|
|
67
|
-
return /* @__PURE__ */ jsx(TransactionContext.Provider, { value, children });
|
|
68
|
-
};
|
|
69
|
-
|
|
70
|
-
export { TransactionContext, TransactionProvider, useTransactionContext };
|
|
71
|
-
//# sourceMappingURL=transaction-provider.mjs.map
|
|
72
|
-
//# sourceMappingURL=transaction-provider.mjs.map
|
package/dist/features/transaction/components/transaction-provider/transaction-provider.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/features/transaction/components/transaction-provider/transaction-provider.tsx"],"names":[],"mappings":";;;;AA4BO,MAAM,qBAAqB,aAAA,CAAsC;AAAA,EACpE,UAAU,MAAM;AACZ,IAAA,MAAM,IAAI,MAAM,yBAAyB,CAAA;AAAA,EAC7C,CAAA;AAAA,EACA,SAAA,EAAW;AACf,CAAC;AAEM,SAAS,qBAAA,GAAwB;AACpC,EAAA,MAAM,OAAA,GAAU,WAAW,kBAAkB,CAAA;AAE7C,EAAA,OAAO,OAAA;AACX;AAaO,MAAM,sBAAoD,CAAC;AAAA,EAC9D,QAAA;AAAA,EACA,OAAA;AAAA,EACA,OAAA;AAAA,EACA,SAAA;AAAA,EACA,QAAA,GAAW;AACf,CAAA,KAAM;AACF,EAAA,MAAM,CAAC,OAAA,EAAS,UAAU,CAAA,GAAI,SAA2C,IAAI,CAAA;AAC7E,EAAA,MAAM,CAAC,WAAA,EAAa,cAAc,CAAA,GAAI,SAAS,KAAK,CAAA;AAEpD,EAAA,MAAM;AAAA,IACF,WAAA,EAAa,eAAA;AAAA,IACb,SAAA;AAAA,IACA,KAAA,EAAO;AAAA,MACP,kBAAA,CAAmB;AAAA,IACnB,QAAA,EAAU;AAAA,MACN,SAAA,EAAW,CAAC,IAAA,KAAS;AACjB,QAAA,UAAA,CAAW,IAAI,CAAA;AACf,QAAA,SAAA,GAAY,IAAI,CAAA;AAAA,MACpB,CAAA;AAAA,MACA,OAAA,EAAS,CAAC,GAAA,KAAQ;AACd,QAAA,OAAA,GAAU,GAAG,CAAA;AAAA,MACjB;AAAA;AACJ,GACH,CAAA;AAED,EAAA,MAAM,YAAA,GAAe,YAAY,YAAY;AACzC,IAAA,IAAI,QAAA,IAAY,eAAe,SAAA,EAAW;AACtC,MAAA;AAAA,IACJ;AAEA,IAAA,cAAA,CAAe,IAAI,CAAA;AAEnB,IAAA,IAAI;AACA,MAAA,MAAM,qBAAqB,OAAO,OAAA,KAAY,aAAa,MAAM,OAAA,KAAY,MAAM,OAAA;AAEnF,MAAA,IAAI,CAAC,kBAAA,EAAoB;AACrB,QAAA;AAAA,MACJ;AAEA,MAAA,MAAM,gBAAgB,kBAAkB,CAAA;AAAA,IAC5C,SAAS,CAAA,EAAG;AACR,MAAA,MAAM,KAAA,GAAQ,aAAa,KAAA,GAAQ,CAAA,GAAI,IAAI,KAAA,CAAM,MAAA,CAAO,CAAC,CAAC,CAAA;AAC1D,MAAA,OAAA,GAAU,KAAK,CAAA;AAAA,IACnB,CAAA,SAAE;AACE,MAAA,cAAA,CAAe,KAAK,CAAA;AAAA,IACxB;AAAA,EACJ,CAAA,EAAG,CAAC,eAAA,EAAiB,OAAA,EAAS,UAAU,WAAA,EAAa,SAAA,EAAW,OAAO,CAAC,CAAA;AAExE,EAAA,MAAM,KAAA,GAAQ,OAAA;AAAA,IACV,OAAO;AAAA,MACH,KAAA,EAAO,aAAA;AAAA,MACP,WAAW,WAAA,IAAe,SAAA;AAAA,MAC1B,QAAA,EAAU,YAAA;AAAA,MACV,OAAA;AAAA,MACA;AAAA,KACJ,CAAA;AAAA,IACA,CAAC,aAAA,EAAe,WAAA,EAAa,SAAA,EAAW,YAAA,EAAc,SAAS,QAAQ;AAAA,GAC3E;AAEA,EAAA,uBAAO,GAAA,CAAC,kBAAA,CAAmB,QAAA,EAAnB,EAA4B,OAAe,QAAA,EAAS,CAAA;AAChE","file":"transaction-provider.mjs","sourcesContent":["/**\n * Copyright (c) TonTech.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport { createContext, useCallback, useContext, useMemo, useState } from 'react';\nimport type { FC, PropsWithChildren } from 'react';\nimport type { SendTransactionReturnType } from '@ton/appkit';\n\nimport { useSendTransaction } from '../../hooks/use-send-transaction';\nimport type { TransactionRequest } from '../transaction/transaction';\n\nexport interface TransactionContextType {\n /** Function to submit the transaction */\n onSubmit: () => void;\n /** Whether the transaction is currently loading */\n isLoading: boolean;\n /** The error object if the transaction failed */\n error?: Error | null;\n /** The receipt of the successful transaction */\n receipt?: SendTransactionReturnType | null;\n /** Disable the button/interaction */\n disabled?: boolean;\n}\n\nexport const TransactionContext = createContext<TransactionContextType>({\n onSubmit: () => {\n throw new Error('onSubmit is not defined');\n },\n isLoading: false,\n});\n\nexport function useTransactionContext() {\n const context = useContext(TransactionContext);\n\n return context;\n}\n\nexport interface TransactionProviderProps extends PropsWithChildren {\n /** The transaction request parameters */\n request: TransactionRequest;\n /** Callback when an error occurs */\n onError?: (error: Error) => void;\n /** Callback when the transaction is successful */\n onSuccess?: (response: SendTransactionReturnType) => void;\n /** Disable the button/interaction */\n disabled?: boolean;\n}\n\nexport const TransactionProvider: FC<TransactionProviderProps> = ({\n children,\n request,\n onError,\n onSuccess,\n disabled = false,\n}) => {\n const [receipt, setReceipt] = useState<SendTransactionReturnType | null>(null);\n const [isPreparing, setIsPreparing] = useState(false);\n\n const {\n mutateAsync: sendTransaction,\n isPending,\n error: mutationError,\n } = useSendTransaction({\n mutation: {\n onSuccess: (data) => {\n setReceipt(data);\n onSuccess?.(data);\n },\n onError: (err) => {\n onError?.(err);\n },\n },\n });\n\n const handleSubmit = useCallback(async () => {\n if (disabled || isPreparing || isPending) {\n return;\n }\n\n setIsPreparing(true);\n\n try {\n const transactionRequest = typeof request === 'function' ? await request() : await request;\n\n if (!transactionRequest) {\n return;\n }\n\n await sendTransaction(transactionRequest);\n } catch (e) {\n const error = e instanceof Error ? e : new Error(String(e));\n onError?.(error);\n } finally {\n setIsPreparing(false);\n }\n }, [sendTransaction, request, disabled, isPreparing, isPending, onError]);\n\n const value = useMemo(\n () => ({\n error: mutationError,\n isLoading: isPreparing || isPending,\n onSubmit: handleSubmit,\n receipt,\n disabled,\n }),\n [mutationError, isPreparing, isPending, handleSubmit, receipt, disabled],\n );\n\n return <TransactionContext.Provider value={value}>{children}</TransactionContext.Provider>;\n};\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-send-transaction.d.ts","sourceRoot":"","sources":["../../../../src/features/transaction/hooks/use-send-transaction.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3E,OAAO,KAAK,EACR,mBAAmB,EACnB,wBAAwB,EACxB,sBAAsB,EACtB,wBAAwB,EAC3B,MAAM,qBAAqB,CAAC;AAI7B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAGjE,MAAM,MAAM,4BAA4B,CAAC,OAAO,GAAG,OAAO,IAAI,sBAAsB,CAAC,OAAO,CAAC,CAAC;AAE9F,MAAM,MAAM,4BAA4B,CAAC,OAAO,GAAG,OAAO,IAAI,qBAAqB,CAC/E,mBAAmB,EACnB,wBAAwB,EACxB,wBAAwB,EACxB,OAAO,EACP,CACI,SAAS,EAAE,wBAAwB,EACnC,OAAO,CAAC,EAAE,aAAa,CAAC,mBAAmB,EAAE,wBAAwB,EAAE,wBAAwB,EAAE,OAAO,CAAC,KACxG,IAAI,EACT,cAAc,CAAC,mBAAmB,EAAE,wBAAwB,EAAE,wBAAwB,EAAE,OAAO,CAAC,CACnG,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,OAAO,GAAG,OAAO,EAChD,aAAY,4BAA4B,CAAC,OAAO,CAAM,KACvD,4BAA4B,CAAC,OAAO,CAItC,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var queries = require('@ton/appkit/queries');
|
|
4
|
-
var query = require('../../../libs/query');
|
|
5
|
-
var useAppKit = require('../../../hooks/use-app-kit');
|
|
6
|
-
|
|
7
|
-
const useSendTransaction = (parameters = {}) => {
|
|
8
|
-
const appKit = useAppKit.useAppKit();
|
|
9
|
-
return query.useMutation(queries.sendTransactionMutationOptions(appKit, parameters));
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
exports.useSendTransaction = useSendTransaction;
|
|
13
|
-
//# sourceMappingURL=use-send-transaction.js.map
|
|
14
|
-
//# sourceMappingURL=use-send-transaction.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/features/transaction/hooks/use-send-transaction.ts"],"names":["useAppKit","useMutation","sendTransactionMutationOptions"],"mappings":";;;;;;AAqCO,MAAM,kBAAA,GAAqB,CAC9B,UAAA,GAAoD,EAAC,KACb;AACxC,EAAA,MAAM,SAASA,mBAAA,EAAU;AAEzB,EAAA,OAAOC,iBAAA,CAAYC,sCAAA,CAA+B,MAAA,EAAQ,UAAU,CAAC,CAAA;AACzE","file":"use-send-transaction.js","sourcesContent":["/**\n * Copyright (c) TonTech.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\n'use client';\n\nimport type { MutateFunction, MutateOptions } from '@tanstack/react-query';\nimport type {\n SendTransactionData,\n SendTransactionErrorType,\n SendTransactionOptions,\n SendTransactionVariables,\n} from '@ton/appkit/queries';\nimport { sendTransactionMutationOptions } from '@ton/appkit/queries';\n\nimport { useMutation } from '../../../libs/query';\nimport type { UseMutationReturnType } from '../../../libs/query';\nimport { useAppKit } from '../../../hooks/use-app-kit';\n\nexport type UseSendTransactionParameters<context = unknown> = SendTransactionOptions<context>;\n\nexport type UseSendTransactionReturnType<context = unknown> = UseMutationReturnType<\n SendTransactionData,\n SendTransactionErrorType,\n SendTransactionVariables,\n context,\n (\n variables: SendTransactionVariables,\n options?: MutateOptions<SendTransactionData, SendTransactionErrorType, SendTransactionVariables, context>,\n ) => void,\n MutateFunction<SendTransactionData, SendTransactionErrorType, SendTransactionVariables, context>\n>;\n\nexport const useSendTransaction = <context = unknown>(\n parameters: UseSendTransactionParameters<context> = {},\n): UseSendTransactionReturnType<context> => {\n const appKit = useAppKit();\n\n return useMutation(sendTransactionMutationOptions(appKit, parameters));\n};\n"]}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { sendTransactionMutationOptions } from '@ton/appkit/queries';
|
|
2
|
-
import { useMutation } from '../../../libs/query';
|
|
3
|
-
import { useAppKit } from '../../../hooks/use-app-kit';
|
|
4
|
-
|
|
5
|
-
const useSendTransaction = (parameters = {}) => {
|
|
6
|
-
const appKit = useAppKit();
|
|
7
|
-
return useMutation(sendTransactionMutationOptions(appKit, parameters));
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
export { useSendTransaction };
|
|
11
|
-
//# sourceMappingURL=use-send-transaction.mjs.map
|
|
12
|
-
//# sourceMappingURL=use-send-transaction.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/features/transaction/hooks/use-send-transaction.ts"],"names":[],"mappings":";;;;AAqCO,MAAM,kBAAA,GAAqB,CAC9B,UAAA,GAAoD,EAAC,KACb;AACxC,EAAA,MAAM,SAAS,SAAA,EAAU;AAEzB,EAAA,OAAO,WAAA,CAAY,8BAAA,CAA+B,MAAA,EAAQ,UAAU,CAAC,CAAA;AACzE","file":"use-send-transaction.mjs","sourcesContent":["/**\n * Copyright (c) TonTech.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\n'use client';\n\nimport type { MutateFunction, MutateOptions } from '@tanstack/react-query';\nimport type {\n SendTransactionData,\n SendTransactionErrorType,\n SendTransactionOptions,\n SendTransactionVariables,\n} from '@ton/appkit/queries';\nimport { sendTransactionMutationOptions } from '@ton/appkit/queries';\n\nimport { useMutation } from '../../../libs/query';\nimport type { UseMutationReturnType } from '../../../libs/query';\nimport { useAppKit } from '../../../hooks/use-app-kit';\n\nexport type UseSendTransactionParameters<context = unknown> = SendTransactionOptions<context>;\n\nexport type UseSendTransactionReturnType<context = unknown> = UseMutationReturnType<\n SendTransactionData,\n SendTransactionErrorType,\n SendTransactionVariables,\n context,\n (\n variables: SendTransactionVariables,\n options?: MutateOptions<SendTransactionData, SendTransactionErrorType, SendTransactionVariables, context>,\n ) => void,\n MutateFunction<SendTransactionData, SendTransactionErrorType, SendTransactionVariables, context>\n>;\n\nexport const useSendTransaction = <context = unknown>(\n parameters: UseSendTransactionParameters<context> = {},\n): UseSendTransactionReturnType<context> => {\n const appKit = useAppKit();\n\n return useMutation(sendTransactionMutationOptions(appKit, parameters));\n};\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-transfer-ton.d.ts","sourceRoot":"","sources":["../../../../src/features/transaction/hooks/use-transfer-ton.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3E,OAAO,KAAK,EACR,eAAe,EACf,oBAAoB,EACpB,kBAAkB,EAClB,oBAAoB,EACvB,MAAM,qBAAqB,CAAC;AAI7B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAGjE,MAAM,MAAM,wBAAwB,CAAC,OAAO,GAAG,OAAO,IAAI,kBAAkB,CAAC,OAAO,CAAC,CAAC;AAEtF,MAAM,MAAM,wBAAwB,CAAC,OAAO,GAAG,OAAO,IAAI,qBAAqB,CAC3E,eAAe,EACf,oBAAoB,EACpB,oBAAoB,EACpB,OAAO,EACP,CACI,SAAS,EAAE,oBAAoB,EAC/B,OAAO,CAAC,EAAE,aAAa,CAAC,eAAe,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,OAAO,CAAC,KAC5F,IAAI,EACT,cAAc,CAAC,eAAe,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,OAAO,CAAC,CACvF,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,OAAO,GAAG,OAAO,EAC5C,aAAY,wBAAwB,CAAC,OAAO,CAAM,KACnD,wBAAwB,CAAC,OAAO,CAIlC,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var queries = require('@ton/appkit/queries');
|
|
4
|
-
var query = require('../../../libs/query');
|
|
5
|
-
var useAppKit = require('../../../hooks/use-app-kit');
|
|
6
|
-
|
|
7
|
-
const useTransferTon = (parameters = {}) => {
|
|
8
|
-
const appKit = useAppKit.useAppKit();
|
|
9
|
-
return query.useMutation(queries.transferTonMutationOptions(appKit, parameters));
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
exports.useTransferTon = useTransferTon;
|
|
13
|
-
//# sourceMappingURL=use-transfer-ton.js.map
|
|
14
|
-
//# sourceMappingURL=use-transfer-ton.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/features/transaction/hooks/use-transfer-ton.ts"],"names":["useAppKit","useMutation","transferTonMutationOptions"],"mappings":";;;;;;AAqCO,MAAM,cAAA,GAAiB,CAC1B,UAAA,GAAgD,EAAC,KACb;AACpC,EAAA,MAAM,SAASA,mBAAA,EAAU;AAEzB,EAAA,OAAOC,iBAAA,CAAYC,kCAAA,CAA2B,MAAA,EAAQ,UAAU,CAAC,CAAA;AACrE","file":"use-transfer-ton.js","sourcesContent":["/**\n * Copyright (c) TonTech.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\n'use client';\n\nimport type { MutateFunction, MutateOptions } from '@tanstack/react-query';\nimport type {\n TransferTonData,\n TransferTonErrorType,\n TransferTonOptions,\n TransferTonVariables,\n} from '@ton/appkit/queries';\nimport { transferTonMutationOptions } from '@ton/appkit/queries';\n\nimport { useMutation } from '../../../libs/query';\nimport type { UseMutationReturnType } from '../../../libs/query';\nimport { useAppKit } from '../../../hooks/use-app-kit';\n\nexport type UseTransferTonParameters<context = unknown> = TransferTonOptions<context>;\n\nexport type UseTransferTonReturnType<context = unknown> = UseMutationReturnType<\n TransferTonData,\n TransferTonErrorType,\n TransferTonVariables,\n context,\n (\n variables: TransferTonVariables,\n options?: MutateOptions<TransferTonData, TransferTonErrorType, TransferTonVariables, context>,\n ) => void,\n MutateFunction<TransferTonData, TransferTonErrorType, TransferTonVariables, context>\n>;\n\nexport const useTransferTon = <context = unknown>(\n parameters: UseTransferTonParameters<context> = {},\n): UseTransferTonReturnType<context> => {\n const appKit = useAppKit();\n\n return useMutation(transferTonMutationOptions(appKit, parameters));\n};\n"]}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { transferTonMutationOptions } from '@ton/appkit/queries';
|
|
2
|
-
import { useMutation } from '../../../libs/query';
|
|
3
|
-
import { useAppKit } from '../../../hooks/use-app-kit';
|
|
4
|
-
|
|
5
|
-
const useTransferTon = (parameters = {}) => {
|
|
6
|
-
const appKit = useAppKit();
|
|
7
|
-
return useMutation(transferTonMutationOptions(appKit, parameters));
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
export { useTransferTon };
|
|
11
|
-
//# sourceMappingURL=use-transfer-ton.mjs.map
|
|
12
|
-
//# sourceMappingURL=use-transfer-ton.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/features/transaction/hooks/use-transfer-ton.ts"],"names":[],"mappings":";;;;AAqCO,MAAM,cAAA,GAAiB,CAC1B,UAAA,GAAgD,EAAC,KACb;AACpC,EAAA,MAAM,SAAS,SAAA,EAAU;AAEzB,EAAA,OAAO,WAAA,CAAY,0BAAA,CAA2B,MAAA,EAAQ,UAAU,CAAC,CAAA;AACrE","file":"use-transfer-ton.mjs","sourcesContent":["/**\n * Copyright (c) TonTech.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\n'use client';\n\nimport type { MutateFunction, MutateOptions } from '@tanstack/react-query';\nimport type {\n TransferTonData,\n TransferTonErrorType,\n TransferTonOptions,\n TransferTonVariables,\n} from '@ton/appkit/queries';\nimport { transferTonMutationOptions } from '@ton/appkit/queries';\n\nimport { useMutation } from '../../../libs/query';\nimport type { UseMutationReturnType } from '../../../libs/query';\nimport { useAppKit } from '../../../hooks/use-app-kit';\n\nexport type UseTransferTonParameters<context = unknown> = TransferTonOptions<context>;\n\nexport type UseTransferTonReturnType<context = unknown> = UseMutationReturnType<\n TransferTonData,\n TransferTonErrorType,\n TransferTonVariables,\n context,\n (\n variables: TransferTonVariables,\n options?: MutateOptions<TransferTonData, TransferTonErrorType, TransferTonVariables, context>,\n ) => void,\n MutateFunction<TransferTonData, TransferTonErrorType, TransferTonVariables, context>\n>;\n\nexport const useTransferTon = <context = unknown>(\n parameters: UseTransferTonParameters<context> = {},\n): UseTransferTonReturnType<context> => {\n const appKit = useAppKit();\n\n return useMutation(transferTonMutationOptions(appKit, parameters));\n};\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/features/transaction/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,8BAA8B,CAAC;AAC7C,cAAc,0BAA0B,CAAC;AAEzC,cAAc,0BAA0B,CAAC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var useSendTransaction = require('./hooks/use-send-transaction');
|
|
4
|
-
var useTransferTon = require('./hooks/use-transfer-ton');
|
|
5
|
-
var transaction = require('./components/transaction');
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
Object.keys(useSendTransaction).forEach(function (k) {
|
|
10
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
11
|
-
enumerable: true,
|
|
12
|
-
get: function () { return useSendTransaction[k]; }
|
|
13
|
-
});
|
|
14
|
-
});
|
|
15
|
-
Object.keys(useTransferTon).forEach(function (k) {
|
|
16
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
17
|
-
enumerable: true,
|
|
18
|
-
get: function () { return useTransferTon[k]; }
|
|
19
|
-
});
|
|
20
|
-
});
|
|
21
|
-
Object.keys(transaction).forEach(function (k) {
|
|
22
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
23
|
-
enumerable: true,
|
|
24
|
-
get: function () { return transaction[k]; }
|
|
25
|
-
});
|
|
26
|
-
});
|
|
27
|
-
//# sourceMappingURL=index.js.map
|
|
28
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js","sourcesContent":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.mjs","sourcesContent":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/wallets/components/connect-button/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var uiReact = require('@tonconnect/ui-react');
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
Object.defineProperty(exports, "TonConnectButton", {
|
|
8
|
-
enumerable: true,
|
|
9
|
-
get: function () { return uiReact.TonConnectButton; }
|
|
10
|
-
});
|
|
11
|
-
//# sourceMappingURL=index.js.map
|
|
12
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js","sourcesContent":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.mjs","sourcesContent":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-address.d.ts","sourceRoot":"","sources":["../../../../src/features/wallets/hooks/use-address.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,MAAM,MAAM,oBAAoB,GAAG,MAAM,GAAG,SAAS,CAAC;AAEtD;;GAEG;AACH,eAAO,MAAM,UAAU,QAAO,oBAI7B,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var react = require('react');
|
|
4
|
-
var useSelectedWallet = require('./use-selected-wallet');
|
|
5
|
-
|
|
6
|
-
const useAddress = () => {
|
|
7
|
-
const [wallet] = useSelectedWallet.useSelectedWallet();
|
|
8
|
-
return react.useMemo(() => wallet?.getAddress(), [wallet]);
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
exports.useAddress = useAddress;
|
|
12
|
-
//# sourceMappingURL=use-address.js.map
|
|
13
|
-
//# sourceMappingURL=use-address.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/features/wallets/hooks/use-address.ts"],"names":["useSelectedWallet","useMemo"],"mappings":";;;;;AAiBO,MAAM,aAAa,MAA4B;AAClD,EAAA,MAAM,CAAC,MAAM,CAAA,GAAIA,mCAAA,EAAkB;AAEnC,EAAA,OAAOC,cAAQ,MAAM,MAAA,EAAQ,YAAW,EAAG,CAAC,MAAM,CAAC,CAAA;AACvD","file":"use-address.js","sourcesContent":["/**\n * Copyright (c) TonTech.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport { useMemo } from 'react';\n\nimport { useSelectedWallet } from './use-selected-wallet';\n\nexport type UseAddressReturnType = string | undefined;\n\n/**\n * Hook to get current wallet address\n */\nexport const useAddress = (): UseAddressReturnType => {\n const [wallet] = useSelectedWallet();\n\n return useMemo(() => wallet?.getAddress(), [wallet]);\n};\n"]}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { useMemo } from 'react';
|
|
2
|
-
import { useSelectedWallet } from './use-selected-wallet';
|
|
3
|
-
|
|
4
|
-
const useAddress = () => {
|
|
5
|
-
const [wallet] = useSelectedWallet();
|
|
6
|
-
return useMemo(() => wallet?.getAddress(), [wallet]);
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
export { useAddress };
|
|
10
|
-
//# sourceMappingURL=use-address.mjs.map
|
|
11
|
-
//# sourceMappingURL=use-address.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/features/wallets/hooks/use-address.ts"],"names":[],"mappings":";;;AAiBO,MAAM,aAAa,MAA4B;AAClD,EAAA,MAAM,CAAC,MAAM,CAAA,GAAI,iBAAA,EAAkB;AAEnC,EAAA,OAAO,QAAQ,MAAM,MAAA,EAAQ,YAAW,EAAG,CAAC,MAAM,CAAC,CAAA;AACvD","file":"use-address.mjs","sourcesContent":["/**\n * Copyright (c) TonTech.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport { useMemo } from 'react';\n\nimport { useSelectedWallet } from './use-selected-wallet';\n\nexport type UseAddressReturnType = string | undefined;\n\n/**\n * Hook to get current wallet address\n */\nexport const useAddress = (): UseAddressReturnType => {\n const [wallet] = useSelectedWallet();\n\n return useMemo(() => wallet?.getAddress(), [wallet]);\n};\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-connect.d.ts","sourceRoot":"","sources":["../../../../src/features/wallets/hooks/use-connect.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAE3E,OAAO,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAG3G,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAGjE,MAAM,MAAM,oBAAoB,CAAC,OAAO,GAAG,OAAO,IAAI,cAAc,CAAC,OAAO,CAAC,CAAC;AAE9E,MAAM,MAAM,oBAAoB,CAAC,OAAO,GAAG,OAAO,IAAI,qBAAqB,CACvE,WAAW,EACX,gBAAgB,EAChB,gBAAgB,EAChB,OAAO,EACP,CACI,SAAS,EAAE,gBAAgB,EAC3B,OAAO,CAAC,EAAE,aAAa,CAAC,WAAW,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,OAAO,CAAC,KAChF,IAAI,EACT,cAAc,CAAC,WAAW,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,OAAO,CAAC,CAC3E,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,OAAO,GAAG,OAAO,EACxC,aAAY,oBAAoB,CAAC,OAAO,CAAM,KAC/C,oBAAoB,CAAC,OAAO,CAI9B,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var queries = require('@ton/appkit/queries');
|
|
4
|
-
var query = require('../../../libs/query');
|
|
5
|
-
var useAppKit = require('../../../hooks/use-app-kit');
|
|
6
|
-
|
|
7
|
-
const useConnect = (parameters = {}) => {
|
|
8
|
-
const appKit = useAppKit.useAppKit();
|
|
9
|
-
return query.useMutation(queries.connectMutationOptions(appKit, parameters));
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
exports.useConnect = useConnect;
|
|
13
|
-
//# sourceMappingURL=use-connect.js.map
|
|
14
|
-
//# sourceMappingURL=use-connect.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/features/wallets/hooks/use-connect.ts"],"names":["useAppKit","useMutation","connectMutationOptions"],"mappings":";;;;;;AA8BO,MAAM,UAAA,GAAa,CACtB,UAAA,GAA4C,EAAC,KACb;AAChC,EAAA,MAAM,SAASA,mBAAA,EAAU;AAEzB,EAAA,OAAOC,iBAAA,CAAYC,8BAAA,CAAuB,MAAA,EAAQ,UAAU,CAAC,CAAA;AACjE","file":"use-connect.js","sourcesContent":["/**\n * Copyright (c) TonTech.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport type { MutateFunction, MutateOptions } from '@tanstack/react-query';\nimport { connectMutationOptions } from '@ton/appkit/queries';\nimport type { ConnectData, ConnectErrorType, ConnectOptions, ConnectVariables } from '@ton/appkit/queries';\n\nimport { useMutation } from '../../../libs/query';\nimport type { UseMutationReturnType } from '../../../libs/query';\nimport { useAppKit } from '../../../hooks/use-app-kit';\n\nexport type UseConnectParameters<context = unknown> = ConnectOptions<context>;\n\nexport type UseConnectReturnType<context = unknown> = UseMutationReturnType<\n ConnectData,\n ConnectErrorType,\n ConnectVariables,\n context,\n (\n variables: ConnectVariables,\n options?: MutateOptions<ConnectData, ConnectErrorType, ConnectVariables, context>,\n ) => void,\n MutateFunction<ConnectData, ConnectErrorType, ConnectVariables, context>\n>;\n\nexport const useConnect = <context = unknown>(\n parameters: UseConnectParameters<context> = {},\n): UseConnectReturnType<context> => {\n const appKit = useAppKit();\n\n return useMutation(connectMutationOptions(appKit, parameters));\n};\n"]}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { connectMutationOptions } from '@ton/appkit/queries';
|
|
2
|
-
import { useMutation } from '../../../libs/query';
|
|
3
|
-
import { useAppKit } from '../../../hooks/use-app-kit';
|
|
4
|
-
|
|
5
|
-
const useConnect = (parameters = {}) => {
|
|
6
|
-
const appKit = useAppKit();
|
|
7
|
-
return useMutation(connectMutationOptions(appKit, parameters));
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
export { useConnect };
|
|
11
|
-
//# sourceMappingURL=use-connect.mjs.map
|
|
12
|
-
//# sourceMappingURL=use-connect.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/features/wallets/hooks/use-connect.ts"],"names":[],"mappings":";;;;AA8BO,MAAM,UAAA,GAAa,CACtB,UAAA,GAA4C,EAAC,KACb;AAChC,EAAA,MAAM,SAAS,SAAA,EAAU;AAEzB,EAAA,OAAO,WAAA,CAAY,sBAAA,CAAuB,MAAA,EAAQ,UAAU,CAAC,CAAA;AACjE","file":"use-connect.mjs","sourcesContent":["/**\n * Copyright (c) TonTech.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport type { MutateFunction, MutateOptions } from '@tanstack/react-query';\nimport { connectMutationOptions } from '@ton/appkit/queries';\nimport type { ConnectData, ConnectErrorType, ConnectOptions, ConnectVariables } from '@ton/appkit/queries';\n\nimport { useMutation } from '../../../libs/query';\nimport type { UseMutationReturnType } from '../../../libs/query';\nimport { useAppKit } from '../../../hooks/use-app-kit';\n\nexport type UseConnectParameters<context = unknown> = ConnectOptions<context>;\n\nexport type UseConnectReturnType<context = unknown> = UseMutationReturnType<\n ConnectData,\n ConnectErrorType,\n ConnectVariables,\n context,\n (\n variables: ConnectVariables,\n options?: MutateOptions<ConnectData, ConnectErrorType, ConnectVariables, context>,\n ) => void,\n MutateFunction<ConnectData, ConnectErrorType, ConnectVariables, context>\n>;\n\nexport const useConnect = <context = unknown>(\n parameters: UseConnectParameters<context> = {},\n): UseConnectReturnType<context> => {\n const appKit = useAppKit();\n\n return useMutation(connectMutationOptions(appKit, parameters));\n};\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-connected-wallets.d.ts","sourceRoot":"","sources":["../../../../src/features/wallets/hooks/use-connected-wallets.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,aAAa,CAAC;AAIjE,MAAM,MAAM,6BAA6B,GAAG,6BAA6B,CAAC;AAE1E,eAAO,MAAM,mBAAmB,QAAO,6BAetC,CAAC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var react = require('react');
|
|
4
|
-
var appkit = require('@ton/appkit');
|
|
5
|
-
var useAppKit = require('../../../hooks/use-app-kit');
|
|
6
|
-
|
|
7
|
-
const useConnectedWallets = () => {
|
|
8
|
-
const appKit = useAppKit.useAppKit();
|
|
9
|
-
const subscribe = react.useCallback(
|
|
10
|
-
(onChange) => {
|
|
11
|
-
return appkit.watchConnectedWallets(appKit, { onChange });
|
|
12
|
-
},
|
|
13
|
-
[appKit]
|
|
14
|
-
);
|
|
15
|
-
const getSnapshot = react.useCallback(() => {
|
|
16
|
-
return appkit.getConnectedWallets(appKit);
|
|
17
|
-
}, [appKit]);
|
|
18
|
-
return react.useSyncExternalStore(subscribe, getSnapshot, () => []);
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
exports.useConnectedWallets = useConnectedWallets;
|
|
22
|
-
//# sourceMappingURL=use-connected-wallets.js.map
|
|
23
|
-
//# sourceMappingURL=use-connected-wallets.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/features/wallets/hooks/use-connected-wallets.ts"],"names":["useAppKit","useCallback","watchConnectedWallets","getConnectedWallets","useSyncExternalStore"],"mappings":";;;;;;AAgBO,MAAM,sBAAsB,MAAqC;AACpE,EAAA,MAAM,SAASA,mBAAA,EAAU;AAEzB,EAAA,MAAM,SAAA,GAAYC,iBAAA;AAAA,IACd,CAAC,QAAA,KAAyB;AACtB,MAAA,OAAOC,4BAAA,CAAsB,MAAA,EAAQ,EAAE,QAAA,EAAU,CAAA;AAAA,IACrD,CAAA;AAAA,IACA,CAAC,MAAM;AAAA,GACX;AAEA,EAAA,MAAM,WAAA,GAAcD,kBAAY,MAAM;AAClC,IAAA,OAAOE,2BAAoB,MAAM,CAAA;AAAA,EACrC,CAAA,EAAG,CAAC,MAAM,CAAC,CAAA;AAEX,EAAA,OAAOC,0BAAA,CAAqB,SAAA,EAAW,WAAA,EAAa,MAAM,EAAE,CAAA;AAChE","file":"use-connected-wallets.js","sourcesContent":["/**\n * Copyright (c) TonTech.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport { useSyncExternalStore, useCallback } from 'react';\nimport { getConnectedWallets, watchConnectedWallets } from '@ton/appkit';\nimport type { GetConnectedWalletsReturnType } from '@ton/appkit';\n\nimport { useAppKit } from '../../../hooks/use-app-kit';\n\nexport type UseConnectedWalletsReturnType = GetConnectedWalletsReturnType;\n\nexport const useConnectedWallets = (): UseConnectedWalletsReturnType => {\n const appKit = useAppKit();\n\n const subscribe = useCallback(\n (onChange: () => void) => {\n return watchConnectedWallets(appKit, { onChange });\n },\n [appKit],\n );\n\n const getSnapshot = useCallback(() => {\n return getConnectedWallets(appKit);\n }, [appKit]);\n\n return useSyncExternalStore(subscribe, getSnapshot, () => []);\n};\n"]}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { useCallback, useSyncExternalStore } from 'react';
|
|
2
|
-
import { watchConnectedWallets, getConnectedWallets } from '@ton/appkit';
|
|
3
|
-
import { useAppKit } from '../../../hooks/use-app-kit';
|
|
4
|
-
|
|
5
|
-
const useConnectedWallets = () => {
|
|
6
|
-
const appKit = useAppKit();
|
|
7
|
-
const subscribe = useCallback(
|
|
8
|
-
(onChange) => {
|
|
9
|
-
return watchConnectedWallets(appKit, { onChange });
|
|
10
|
-
},
|
|
11
|
-
[appKit]
|
|
12
|
-
);
|
|
13
|
-
const getSnapshot = useCallback(() => {
|
|
14
|
-
return getConnectedWallets(appKit);
|
|
15
|
-
}, [appKit]);
|
|
16
|
-
return useSyncExternalStore(subscribe, getSnapshot, () => []);
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
export { useConnectedWallets };
|
|
20
|
-
//# sourceMappingURL=use-connected-wallets.mjs.map
|
|
21
|
-
//# sourceMappingURL=use-connected-wallets.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/features/wallets/hooks/use-connected-wallets.ts"],"names":[],"mappings":";;;;AAgBO,MAAM,sBAAsB,MAAqC;AACpE,EAAA,MAAM,SAAS,SAAA,EAAU;AAEzB,EAAA,MAAM,SAAA,GAAY,WAAA;AAAA,IACd,CAAC,QAAA,KAAyB;AACtB,MAAA,OAAO,qBAAA,CAAsB,MAAA,EAAQ,EAAE,QAAA,EAAU,CAAA;AAAA,IACrD,CAAA;AAAA,IACA,CAAC,MAAM;AAAA,GACX;AAEA,EAAA,MAAM,WAAA,GAAc,YAAY,MAAM;AAClC,IAAA,OAAO,oBAAoB,MAAM,CAAA;AAAA,EACrC,CAAA,EAAG,CAAC,MAAM,CAAC,CAAA;AAEX,EAAA,OAAO,oBAAA,CAAqB,SAAA,EAAW,WAAA,EAAa,MAAM,EAAE,CAAA;AAChE","file":"use-connected-wallets.mjs","sourcesContent":["/**\n * Copyright (c) TonTech.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport { useSyncExternalStore, useCallback } from 'react';\nimport { getConnectedWallets, watchConnectedWallets } from '@ton/appkit';\nimport type { GetConnectedWalletsReturnType } from '@ton/appkit';\n\nimport { useAppKit } from '../../../hooks/use-app-kit';\n\nexport type UseConnectedWalletsReturnType = GetConnectedWalletsReturnType;\n\nexport const useConnectedWallets = (): UseConnectedWalletsReturnType => {\n const appKit = useAppKit();\n\n const subscribe = useCallback(\n (onChange: () => void) => {\n return watchConnectedWallets(appKit, { onChange });\n },\n [appKit],\n );\n\n const getSnapshot = useCallback(() => {\n return getConnectedWallets(appKit);\n }, [appKit]);\n\n return useSyncExternalStore(subscribe, getSnapshot, () => []);\n};\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-connector-by-id.d.ts","sourceRoot":"","sources":["../../../../src/features/wallets/hooks/use-connector-by-id.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAI7C,eAAO,MAAM,gBAAgB,GAAI,IAAI,MAAM,KAAG,SAAS,GAAG,SAezD,CAAC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var react = require('react');
|
|
4
|
-
var appkit = require('@ton/appkit');
|
|
5
|
-
var useAppKit = require('../../../hooks/use-app-kit');
|
|
6
|
-
|
|
7
|
-
const useConnectorById = (id) => {
|
|
8
|
-
const appKit = useAppKit.useAppKit();
|
|
9
|
-
const subscribe = react.useCallback(
|
|
10
|
-
(onChange) => {
|
|
11
|
-
return appkit.watchConnectorById(appKit, { id, onChange });
|
|
12
|
-
},
|
|
13
|
-
[appKit, id]
|
|
14
|
-
);
|
|
15
|
-
const getSnapshot = react.useCallback(() => {
|
|
16
|
-
return appkit.getConnectorById(appKit, { id });
|
|
17
|
-
}, [appKit, id]);
|
|
18
|
-
return react.useSyncExternalStore(subscribe, getSnapshot, () => void 0);
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
exports.useConnectorById = useConnectorById;
|
|
22
|
-
//# sourceMappingURL=use-connector-by-id.js.map
|
|
23
|
-
//# sourceMappingURL=use-connector-by-id.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/features/wallets/hooks/use-connector-by-id.ts"],"names":["useAppKit","useCallback","watchConnectorById","getConnectorById","useSyncExternalStore"],"mappings":";;;;;;AAcO,MAAM,gBAAA,GAAmB,CAAC,EAAA,KAAsC;AACnE,EAAA,MAAM,SAASA,mBAAA,EAAU;AAEzB,EAAA,MAAM,SAAA,GAAYC,iBAAA;AAAA,IACd,CAAC,QAAA,KAAyB;AACtB,MAAA,OAAOC,yBAAA,CAAmB,MAAA,EAAQ,EAAE,EAAA,EAAI,UAAU,CAAA;AAAA,IACtD,CAAA;AAAA,IACA,CAAC,QAAQ,EAAE;AAAA,GACf;AAEA,EAAA,MAAM,WAAA,GAAcD,kBAAY,MAAM;AAClC,IAAA,OAAOE,uBAAA,CAAiB,MAAA,EAAQ,EAAE,EAAA,EAAI,CAAA;AAAA,EAC1C,CAAA,EAAG,CAAC,MAAA,EAAQ,EAAE,CAAC,CAAA;AAEf,EAAA,OAAOC,0BAAA,CAAqB,SAAA,EAAW,WAAA,EAAa,MAAM,MAAS,CAAA;AACvE","file":"use-connector-by-id.js","sourcesContent":["/**\n * Copyright (c) TonTech.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport { useSyncExternalStore, useCallback } from 'react';\nimport { getConnectorById, watchConnectorById } from '@ton/appkit';\nimport type { Connector } from '@ton/appkit';\n\nimport { useAppKit } from '../../../hooks/use-app-kit';\n\nexport const useConnectorById = (id: string): Connector | undefined => {\n const appKit = useAppKit();\n\n const subscribe = useCallback(\n (onChange: () => void) => {\n return watchConnectorById(appKit, { id, onChange });\n },\n [appKit, id],\n );\n\n const getSnapshot = useCallback(() => {\n return getConnectorById(appKit, { id });\n }, [appKit, id]);\n\n return useSyncExternalStore(subscribe, getSnapshot, () => undefined);\n};\n"]}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { useCallback, useSyncExternalStore } from 'react';
|
|
2
|
-
import { watchConnectorById, getConnectorById } from '@ton/appkit';
|
|
3
|
-
import { useAppKit } from '../../../hooks/use-app-kit';
|
|
4
|
-
|
|
5
|
-
const useConnectorById = (id) => {
|
|
6
|
-
const appKit = useAppKit();
|
|
7
|
-
const subscribe = useCallback(
|
|
8
|
-
(onChange) => {
|
|
9
|
-
return watchConnectorById(appKit, { id, onChange });
|
|
10
|
-
},
|
|
11
|
-
[appKit, id]
|
|
12
|
-
);
|
|
13
|
-
const getSnapshot = useCallback(() => {
|
|
14
|
-
return getConnectorById(appKit, { id });
|
|
15
|
-
}, [appKit, id]);
|
|
16
|
-
return useSyncExternalStore(subscribe, getSnapshot, () => void 0);
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
export { useConnectorById };
|
|
20
|
-
//# sourceMappingURL=use-connector-by-id.mjs.map
|
|
21
|
-
//# sourceMappingURL=use-connector-by-id.mjs.map
|