@ton/appkit-react 0.0.1 → 0.0.2
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/block.stories.js +27 -0
- package/dist/esm/components/block/block.stories.js.map +1 -0
- 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/button.stories.js +30 -0
- package/dist/esm/components/button/button.stories.js.map +1 -0
- 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/circle-icon.stories.js +56 -0
- package/dist/esm/components/circle-icon/circle-icon.stories.js.map +1 -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/components/ton-icon/ton-icon.stories.js +56 -0
- package/dist/esm/components/ton-icon/ton-icon.stories.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/balance-badge.stories.js +23 -0
- package/dist/esm/features/balances/components/balance-badge/balance-badge.stories.js.map +1 -0
- 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/currency-item.stories.js +61 -0
- package/dist/esm/features/balances/components/currency-item/currency-item.stories.js.map +1 -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-jetton-button/send-jetton-button.stories.js +41 -0
- package/dist/esm/features/balances/components/send-jetton-button/send-jetton-button.stories.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/components/send-ton-button/send-ton-button.stories.js +36 -0
- package/dist/esm/features/balances/components/send-ton-button/send-ton-button.stories.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/components/nft-item/nft-item.stories.js +52 -0
- package/dist/esm/features/nft/components/nft-item/nft-item.stories.js.map +1 -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/transaction.stories.js +47 -0
- package/dist/esm/features/transaction/components/transaction/transaction.stories.js.map +1 -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-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 +11 -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 +32 -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 +26 -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/block.stories.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/button.stories.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/circle-icon.stories.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/components/ton-icon/ton-icon.stories.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/balance-badge.stories.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/currency-item.stories.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-jetton-button/send-jetton-button.stories.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/components/send-ton-button/send-ton-button.stories.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/components/nft-item/nft-item.stories.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/transaction.stories.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-transfer-ton.d.ts.map +1 -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/types/libs/i18n.d.ts.map +1 -0
- package/dist/types/libs/query.d.ts.map +1 -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 +18 -11
- 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-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-transfer-ton.ts +44 -0
- package/src/features/transaction/index.ts +12 -0
- 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 +35 -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.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.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.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.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.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.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.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.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.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.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/block.stories.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/button.stories.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/circle-icon.stories.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/{components → types/components}/ton-icon/ton-icon.stories.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/balance-badge.stories.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/currency-item.stories.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-jetton-button/send-jetton-button.stories.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/components/send-ton-button/send-ton-button.stories.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/components/nft-item/nft-item.stories.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/transaction.stories.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}/transaction/index.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}/i18n.d.ts +0 -0
- /package/dist/{libs → types/libs}/query.d.ts +0 -0
- /package/dist/{locales → types/locales}/en.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,"file":"use-sign-cell.d.ts","sourceRoot":"","sources":["../../../../src/features/signing/hooks/use-sign-cell.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE/D,OAAO,KAAK,EAAE,YAAY,EAAE,iBAAiB,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAK/G,MAAM,MAAM,qBAAqB,CAAC,OAAO,GAAG,OAAO,IAAI,eAAe,CAAC,OAAO,CAAC,CAAC;AAEhF,MAAM,MAAM,qBAAqB,CAAC,OAAO,GAAG,OAAO,IAAI,iBAAiB,CACpE,YAAY,EACZ,iBAAiB,EACjB,iBAAiB,EACjB,OAAO,CACV,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,WAAW,GAAI,OAAO,GAAG,OAAO,EACzC,aAAa,qBAAqB,CAAC,OAAO,CAAC,KAC5C,qBAAqB,CAAC,OAAO,CAI/B,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var queries = require('@ton/appkit/queries');
|
|
4
|
-
var useAppKit = require('../../../hooks/use-app-kit');
|
|
5
|
-
var query = require('../../../libs/query');
|
|
6
|
-
|
|
7
|
-
const useSignCell = (parameters) => {
|
|
8
|
-
const appKit = useAppKit.useAppKit();
|
|
9
|
-
return query.useMutation(queries.signCellMutationOptions(appKit, parameters));
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
exports.useSignCell = useSignCell;
|
|
13
|
-
//# sourceMappingURL=use-sign-cell.js.map
|
|
14
|
-
//# sourceMappingURL=use-sign-cell.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/features/signing/hooks/use-sign-cell.ts"],"names":["useAppKit","useMutation","signCellMutationOptions"],"mappings":";;;;;;AAqCO,MAAM,WAAA,GAAc,CACvB,UAAA,KACiC;AACjC,EAAA,MAAM,SAASA,mBAAA,EAAU;AAEzB,EAAA,OAAOC,iBAAA,CAAYC,+BAAA,CAAwB,MAAA,EAAQ,UAAU,CAAC,CAAA;AAClE","file":"use-sign-cell.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 { UseMutationResult } from '@tanstack/react-query';\nimport { signCellMutationOptions } from '@ton/appkit/queries';\nimport type { SignCellData, SignCellErrorType, SignCellOptions, SignCellVariables } from '@ton/appkit/queries';\n\nimport { useAppKit } from '../../../hooks/use-app-kit';\nimport { useMutation } from '../../../libs/query';\n\nexport type UseSignCellParameters<context = unknown> = SignCellOptions<context>;\n\nexport type UseSignCellReturnType<context = unknown> = UseMutationResult<\n SignCellData,\n SignCellErrorType,\n SignCellVariables,\n context\n>;\n\n/**\n * Hook to sign TON Cell data with the connected wallet.\n * Used for on-chain signature verification.\n *\n * @example\n * ```tsx\n * const { mutate: signCell, isPending } = useSignCell();\n *\n * const handleSign = () => {\n * signCell({ cell: bocBase64, schema: \"transfer#abc amount:uint64 = Transfer\" });\n * };\n * ```\n */\nexport const useSignCell = <context = unknown>(\n parameters?: UseSignCellParameters<context>,\n): UseSignCellReturnType<context> => {\n const appKit = useAppKit();\n\n return useMutation(signCellMutationOptions(appKit, parameters));\n};\n"]}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { signCellMutationOptions } from '@ton/appkit/queries';
|
|
2
|
-
import { useAppKit } from '../../../hooks/use-app-kit';
|
|
3
|
-
import { useMutation } from '../../../libs/query';
|
|
4
|
-
|
|
5
|
-
const useSignCell = (parameters) => {
|
|
6
|
-
const appKit = useAppKit();
|
|
7
|
-
return useMutation(signCellMutationOptions(appKit, parameters));
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
export { useSignCell };
|
|
11
|
-
//# sourceMappingURL=use-sign-cell.mjs.map
|
|
12
|
-
//# sourceMappingURL=use-sign-cell.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/features/signing/hooks/use-sign-cell.ts"],"names":[],"mappings":";;;;AAqCO,MAAM,WAAA,GAAc,CACvB,UAAA,KACiC;AACjC,EAAA,MAAM,SAAS,SAAA,EAAU;AAEzB,EAAA,OAAO,WAAA,CAAY,uBAAA,CAAwB,MAAA,EAAQ,UAAU,CAAC,CAAA;AAClE","file":"use-sign-cell.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 { UseMutationResult } from '@tanstack/react-query';\nimport { signCellMutationOptions } from '@ton/appkit/queries';\nimport type { SignCellData, SignCellErrorType, SignCellOptions, SignCellVariables } from '@ton/appkit/queries';\n\nimport { useAppKit } from '../../../hooks/use-app-kit';\nimport { useMutation } from '../../../libs/query';\n\nexport type UseSignCellParameters<context = unknown> = SignCellOptions<context>;\n\nexport type UseSignCellReturnType<context = unknown> = UseMutationResult<\n SignCellData,\n SignCellErrorType,\n SignCellVariables,\n context\n>;\n\n/**\n * Hook to sign TON Cell data with the connected wallet.\n * Used for on-chain signature verification.\n *\n * @example\n * ```tsx\n * const { mutate: signCell, isPending } = useSignCell();\n *\n * const handleSign = () => {\n * signCell({ cell: bocBase64, schema: \"transfer#abc amount:uint64 = Transfer\" });\n * };\n * ```\n */\nexport const useSignCell = <context = unknown>(\n parameters?: UseSignCellParameters<context>,\n): UseSignCellReturnType<context> => {\n const appKit = useAppKit();\n\n return useMutation(signCellMutationOptions(appKit, parameters));\n};\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-sign-text.d.ts","sourceRoot":"","sources":["../../../../src/features/signing/hooks/use-sign-text.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE/D,OAAO,KAAK,EAAE,YAAY,EAAE,iBAAiB,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAK/G,MAAM,MAAM,qBAAqB,CAAC,OAAO,GAAG,OAAO,IAAI,eAAe,CAAC,OAAO,CAAC,CAAC;AAEhF,MAAM,MAAM,qBAAqB,CAAC,OAAO,GAAG,OAAO,IAAI,iBAAiB,CACpE,YAAY,EACZ,iBAAiB,EACjB,iBAAiB,EACjB,OAAO,CACV,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,WAAW,GAAI,OAAO,GAAG,OAAO,EACzC,aAAY,qBAAqB,CAAC,OAAO,CAAM,KAChD,qBAAqB,CAAC,OAAO,CAI/B,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var queries = require('@ton/appkit/queries');
|
|
4
|
-
var useAppKit = require('../../../hooks/use-app-kit');
|
|
5
|
-
var query = require('../../../libs/query');
|
|
6
|
-
|
|
7
|
-
const useSignText = (parameters = {}) => {
|
|
8
|
-
const appKit = useAppKit.useAppKit();
|
|
9
|
-
return query.useMutation(queries.signTextMutationOptions(appKit, parameters));
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
exports.useSignText = useSignText;
|
|
13
|
-
//# sourceMappingURL=use-sign-text.js.map
|
|
14
|
-
//# sourceMappingURL=use-sign-text.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/features/signing/hooks/use-sign-text.ts"],"names":["useAppKit","useMutation","signTextMutationOptions"],"mappings":";;;;;;AAoCO,MAAM,WAAA,GAAc,CACvB,UAAA,GAA6C,EAAC,KACb;AACjC,EAAA,MAAM,SAASA,mBAAA,EAAU;AAEzB,EAAA,OAAOC,iBAAA,CAAYC,+BAAA,CAAwB,MAAA,EAAQ,UAAU,CAAC,CAAA;AAClE","file":"use-sign-text.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 { UseMutationResult } from '@tanstack/react-query';\nimport { signTextMutationOptions } from '@ton/appkit/queries';\nimport type { SignTextData, SignTextErrorType, SignTextOptions, SignTextVariables } from '@ton/appkit/queries';\n\nimport { useAppKit } from '../../../hooks/use-app-kit';\nimport { useMutation } from '../../../libs/query';\n\nexport type UseSignTextParameters<context = unknown> = SignTextOptions<context>;\n\nexport type UseSignTextReturnType<context = unknown> = UseMutationResult<\n SignTextData,\n SignTextErrorType,\n SignTextVariables,\n context\n>;\n\n/**\n * Hook to sign text messages with the connected wallet.\n *\n * @example\n * ```tsx\n * const { mutate: signText, isPending } = useSignText();\n *\n * const handleSign = () => {\n * signText({ text: \"Hello World\" });\n * };\n * ```\n */\nexport const useSignText = <context = unknown>(\n parameters: UseSignTextParameters<context> = {},\n): UseSignTextReturnType<context> => {\n const appKit = useAppKit();\n\n return useMutation(signTextMutationOptions(appKit, parameters));\n};\n"]}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { signTextMutationOptions } from '@ton/appkit/queries';
|
|
2
|
-
import { useAppKit } from '../../../hooks/use-app-kit';
|
|
3
|
-
import { useMutation } from '../../../libs/query';
|
|
4
|
-
|
|
5
|
-
const useSignText = (parameters = {}) => {
|
|
6
|
-
const appKit = useAppKit();
|
|
7
|
-
return useMutation(signTextMutationOptions(appKit, parameters));
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
export { useSignText };
|
|
11
|
-
//# sourceMappingURL=use-sign-text.mjs.map
|
|
12
|
-
//# sourceMappingURL=use-sign-text.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/features/signing/hooks/use-sign-text.ts"],"names":[],"mappings":";;;;AAoCO,MAAM,WAAA,GAAc,CACvB,UAAA,GAA6C,EAAC,KACb;AACjC,EAAA,MAAM,SAAS,SAAA,EAAU;AAEzB,EAAA,OAAO,WAAA,CAAY,uBAAA,CAAwB,MAAA,EAAQ,UAAU,CAAC,CAAA;AAClE","file":"use-sign-text.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 { UseMutationResult } from '@tanstack/react-query';\nimport { signTextMutationOptions } from '@ton/appkit/queries';\nimport type { SignTextData, SignTextErrorType, SignTextOptions, SignTextVariables } from '@ton/appkit/queries';\n\nimport { useAppKit } from '../../../hooks/use-app-kit';\nimport { useMutation } from '../../../libs/query';\n\nexport type UseSignTextParameters<context = unknown> = SignTextOptions<context>;\n\nexport type UseSignTextReturnType<context = unknown> = UseMutationResult<\n SignTextData,\n SignTextErrorType,\n SignTextVariables,\n context\n>;\n\n/**\n * Hook to sign text messages with the connected wallet.\n *\n * @example\n * ```tsx\n * const { mutate: signText, isPending } = useSignText();\n *\n * const handleSign = () => {\n * signText({ text: \"Hello World\" });\n * };\n * ```\n */\nexport const useSignText = <context = unknown>(\n parameters: UseSignTextParameters<context> = {},\n): UseSignTextReturnType<context> => {\n const appKit = useAppKit();\n\n return useMutation(signTextMutationOptions(appKit, parameters));\n};\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/features/signing/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var useSignText = require('./hooks/use-sign-text');
|
|
4
|
-
var useSignBinary = require('./hooks/use-sign-binary');
|
|
5
|
-
var useSignCell = require('./hooks/use-sign-cell');
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
Object.keys(useSignText).forEach(function (k) {
|
|
10
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
11
|
-
enumerable: true,
|
|
12
|
-
get: function () { return useSignText[k]; }
|
|
13
|
-
});
|
|
14
|
-
});
|
|
15
|
-
Object.keys(useSignBinary).forEach(function (k) {
|
|
16
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
17
|
-
enumerable: true,
|
|
18
|
-
get: function () { return useSignBinary[k]; }
|
|
19
|
-
});
|
|
20
|
-
});
|
|
21
|
-
Object.keys(useSignCell).forEach(function (k) {
|
|
22
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
23
|
-
enumerable: true,
|
|
24
|
-
get: function () { return useSignCell[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":"use-build-swap-transaction.d.ts","sourceRoot":"","sources":["../../../../src/features/swap/hooks/use-build-swap-transaction.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE/D,OAAO,KAAK,EACR,wBAAwB,EACxB,6BAA6B,EAC7B,mCAAmC,EACnC,6BAA6B,EAChC,MAAM,qBAAqB,CAAC;AAK7B,MAAM,MAAM,iCAAiC,CAAC,OAAO,GAAG,OAAO,IAAI,mCAAmC,CAAC,OAAO,CAAC,CAAC;AAEhH,MAAM,MAAM,iCAAiC,CAAC,OAAO,GAAG,OAAO,IAAI,iBAAiB,CAChF,wBAAwB,EACxB,6BAA6B,EAC7B,6BAA6B,EAC7B,OAAO,CACV,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,OAAO,GAAG,OAAO,EACrD,aAAa,iCAAiC,CAAC,OAAO,CAAC,KACxD,iCAAiC,CAAC,OAAO,CAI3C,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var queries = require('@ton/appkit/queries');
|
|
4
|
-
var useAppKit = require('../../../hooks/use-app-kit');
|
|
5
|
-
var query = require('../../../libs/query');
|
|
6
|
-
|
|
7
|
-
const useBuildSwapTransaction = (parameters) => {
|
|
8
|
-
const appKit = useAppKit.useAppKit();
|
|
9
|
-
return query.useMutation(queries.buildSwapTransactionMutationOptions(appKit, parameters));
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
exports.useBuildSwapTransaction = useBuildSwapTransaction;
|
|
13
|
-
//# sourceMappingURL=use-build-swap-transaction.js.map
|
|
14
|
-
//# sourceMappingURL=use-build-swap-transaction.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/features/swap/hooks/use-build-swap-transaction.ts"],"names":["useAppKit","useMutation","buildSwapTransactionMutationOptions"],"mappings":";;;;;;AA+BO,MAAM,uBAAA,GAA0B,CACnC,UAAA,KAC6C;AAC7C,EAAA,MAAM,SAASA,mBAAA,EAAU;AAEzB,EAAA,OAAOC,iBAAA,CAAYC,2CAAA,CAAoC,MAAA,EAAQ,UAAU,CAAC,CAAA;AAC9E","file":"use-build-swap-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 { UseMutationResult } from '@tanstack/react-query';\nimport { buildSwapTransactionMutationOptions } from '@ton/appkit/queries';\nimport type {\n BuildSwapTransactionData,\n BuildSwapTransactionErrorType,\n BuildSwapTransactionMutationOptions,\n BuildSwapTransactionVariables,\n} from '@ton/appkit/queries';\n\nimport { useAppKit } from '../../../hooks/use-app-kit';\nimport { useMutation } from '../../../libs/query';\n\nexport type UseBuildSwapTransactionParameters<context = unknown> = BuildSwapTransactionMutationOptions<context>;\n\nexport type UseBuildSwapTransactionReturnType<context = unknown> = UseMutationResult<\n BuildSwapTransactionData,\n BuildSwapTransactionErrorType,\n BuildSwapTransactionVariables,\n context\n>;\n\nexport const useBuildSwapTransaction = <context = unknown>(\n parameters?: UseBuildSwapTransactionParameters<context>,\n): UseBuildSwapTransactionReturnType<context> => {\n const appKit = useAppKit();\n\n return useMutation(buildSwapTransactionMutationOptions(appKit, parameters));\n};\n"]}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { buildSwapTransactionMutationOptions } from '@ton/appkit/queries';
|
|
2
|
-
import { useAppKit } from '../../../hooks/use-app-kit';
|
|
3
|
-
import { useMutation } from '../../../libs/query';
|
|
4
|
-
|
|
5
|
-
const useBuildSwapTransaction = (parameters) => {
|
|
6
|
-
const appKit = useAppKit();
|
|
7
|
-
return useMutation(buildSwapTransactionMutationOptions(appKit, parameters));
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
export { useBuildSwapTransaction };
|
|
11
|
-
//# sourceMappingURL=use-build-swap-transaction.mjs.map
|
|
12
|
-
//# sourceMappingURL=use-build-swap-transaction.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/features/swap/hooks/use-build-swap-transaction.ts"],"names":[],"mappings":";;;;AA+BO,MAAM,uBAAA,GAA0B,CACnC,UAAA,KAC6C;AAC7C,EAAA,MAAM,SAAS,SAAA,EAAU;AAEzB,EAAA,OAAO,WAAA,CAAY,mCAAA,CAAoC,MAAA,EAAQ,UAAU,CAAC,CAAA;AAC9E","file":"use-build-swap-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 { UseMutationResult } from '@tanstack/react-query';\nimport { buildSwapTransactionMutationOptions } from '@ton/appkit/queries';\nimport type {\n BuildSwapTransactionData,\n BuildSwapTransactionErrorType,\n BuildSwapTransactionMutationOptions,\n BuildSwapTransactionVariables,\n} from '@ton/appkit/queries';\n\nimport { useAppKit } from '../../../hooks/use-app-kit';\nimport { useMutation } from '../../../libs/query';\n\nexport type UseBuildSwapTransactionParameters<context = unknown> = BuildSwapTransactionMutationOptions<context>;\n\nexport type UseBuildSwapTransactionReturnType<context = unknown> = UseMutationResult<\n BuildSwapTransactionData,\n BuildSwapTransactionErrorType,\n BuildSwapTransactionVariables,\n context\n>;\n\nexport const useBuildSwapTransaction = <context = unknown>(\n parameters?: UseBuildSwapTransactionParameters<context>,\n): UseBuildSwapTransactionReturnType<context> => {\n const appKit = useAppKit();\n\n return useMutation(buildSwapTransactionMutationOptions(appKit, parameters));\n};\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-swap-quote.d.ts","sourceRoot":"","sources":["../../../../src/features/swap/hooks/use-swap-quote.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAKH,OAAO,KAAK,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAI5G,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAE9D,MAAM,MAAM,sBAAsB,CAAC,UAAU,GAAG,gBAAgB,IAAI,uBAAuB,CAAC,UAAU,CAAC,CAAC;AAExG,MAAM,MAAM,sBAAsB,CAAC,UAAU,GAAG,gBAAgB,IAAI,kBAAkB,CAClF,UAAU,EACV,qBAAqB,CACxB,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,UAAU,GAAG,gBAAgB,EACtD,aAAY,sBAAsB,CAAC,UAAU,CAAM,KACpD,sBAAsB,CAAC,UAAU,CAInC,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var queries = require('@ton/appkit/queries');
|
|
4
|
-
var useAppKit = require('../../../hooks/use-app-kit');
|
|
5
|
-
var query = require('../../../libs/query');
|
|
6
|
-
|
|
7
|
-
const useSwapQuote = (parameters = {}) => {
|
|
8
|
-
const appKit = useAppKit.useAppKit();
|
|
9
|
-
return query.useQuery(queries.getSwapQuoteQueryOptions(appKit, parameters));
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
exports.useSwapQuote = useSwapQuote;
|
|
13
|
-
//# sourceMappingURL=use-swap-quote.js.map
|
|
14
|
-
//# sourceMappingURL=use-swap-quote.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/features/swap/hooks/use-swap-quote.ts"],"names":["useAppKit","useQuery","getSwapQuoteQueryOptions"],"mappings":";;;;;;AAwBO,MAAM,YAAA,GAAe,CACxB,UAAA,GAAiD,EAAC,KACb;AACrC,EAAA,MAAM,SAASA,mBAAA,EAAU;AAEzB,EAAA,OAAOC,cAAA,CAASC,gCAAA,CAAyB,MAAA,EAAQ,UAAU,CAAC,CAAA;AAChE","file":"use-swap-quote.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 { getSwapQuoteQueryOptions } from '@ton/appkit/queries';\nimport type { GetSwapQuoteData, GetSwapQuoteErrorType, GetSwapQuoteQueryConfig } from '@ton/appkit/queries';\n\nimport { useAppKit } from '../../../hooks/use-app-kit';\nimport { useQuery } from '../../../libs/query';\nimport type { UseQueryReturnType } from '../../../libs/query';\n\nexport type UseSwapQuoteParameters<selectData = GetSwapQuoteData> = GetSwapQuoteQueryConfig<selectData>;\n\nexport type UseSwapQuoteReturnType<selectData = GetSwapQuoteData> = UseQueryReturnType<\n selectData,\n GetSwapQuoteErrorType\n>;\n\nexport const useSwapQuote = <selectData = GetSwapQuoteData>(\n parameters: UseSwapQuoteParameters<selectData> = {},\n): UseSwapQuoteReturnType<selectData> => {\n const appKit = useAppKit();\n\n return useQuery(getSwapQuoteQueryOptions(appKit, parameters));\n};\n"]}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { getSwapQuoteQueryOptions } from '@ton/appkit/queries';
|
|
2
|
-
import { useAppKit } from '../../../hooks/use-app-kit';
|
|
3
|
-
import { useQuery } from '../../../libs/query';
|
|
4
|
-
|
|
5
|
-
const useSwapQuote = (parameters = {}) => {
|
|
6
|
-
const appKit = useAppKit();
|
|
7
|
-
return useQuery(getSwapQuoteQueryOptions(appKit, parameters));
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
export { useSwapQuote };
|
|
11
|
-
//# sourceMappingURL=use-swap-quote.mjs.map
|
|
12
|
-
//# sourceMappingURL=use-swap-quote.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/features/swap/hooks/use-swap-quote.ts"],"names":[],"mappings":";;;;AAwBO,MAAM,YAAA,GAAe,CACxB,UAAA,GAAiD,EAAC,KACb;AACrC,EAAA,MAAM,SAAS,SAAA,EAAU;AAEzB,EAAA,OAAO,QAAA,CAAS,wBAAA,CAAyB,MAAA,EAAQ,UAAU,CAAC,CAAA;AAChE","file":"use-swap-quote.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 { getSwapQuoteQueryOptions } from '@ton/appkit/queries';\nimport type { GetSwapQuoteData, GetSwapQuoteErrorType, GetSwapQuoteQueryConfig } from '@ton/appkit/queries';\n\nimport { useAppKit } from '../../../hooks/use-app-kit';\nimport { useQuery } from '../../../libs/query';\nimport type { UseQueryReturnType } from '../../../libs/query';\n\nexport type UseSwapQuoteParameters<selectData = GetSwapQuoteData> = GetSwapQuoteQueryConfig<selectData>;\n\nexport type UseSwapQuoteReturnType<selectData = GetSwapQuoteData> = UseQueryReturnType<\n selectData,\n GetSwapQuoteErrorType\n>;\n\nexport const useSwapQuote = <selectData = GetSwapQuoteData>(\n parameters: UseSwapQuoteParameters<selectData> = {},\n): UseSwapQuoteReturnType<selectData> => {\n const appKit = useAppKit();\n\n return useQuery(getSwapQuoteQueryOptions(appKit, parameters));\n};\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/features/swap/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,wBAAwB,CAAC;AACvC,cAAc,oCAAoC,CAAC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var useSwapQuote = require('./hooks/use-swap-quote');
|
|
4
|
-
var useBuildSwapTransaction = require('./hooks/use-build-swap-transaction');
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Object.keys(useSwapQuote).forEach(function (k) {
|
|
9
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
10
|
-
enumerable: true,
|
|
11
|
-
get: function () { return useSwapQuote[k]; }
|
|
12
|
-
});
|
|
13
|
-
});
|
|
14
|
-
Object.keys(useBuildSwapTransaction).forEach(function (k) {
|
|
15
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
16
|
-
enumerable: true,
|
|
17
|
-
get: function () { return useBuildSwapTransaction[k]; }
|
|
18
|
-
});
|
|
19
|
-
});
|
|
20
|
-
//# sourceMappingURL=index.js.map
|
|
21
|
-
//# 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/transaction/components/transaction/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,YAAY,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var transaction = require('./transaction');
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
Object.defineProperty(exports, "Transaction", {
|
|
8
|
-
enumerable: true,
|
|
9
|
-
get: function () { return transaction.Transaction; }
|
|
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":"transaction.d.ts","sourceRoot":"","sources":["../../../../../src/features/transaction/components/transaction/transaction.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC3D,OAAO,KAAK,EAAE,yBAAyB,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AAMxF,MAAM,WAAW,sBAAsB;IACnC,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,SAAS,CAAC;CACnB;AAED,MAAM,MAAM,kBAAkB,GACxB,yBAAyB,GACzB,OAAO,CAAC,yBAAyB,CAAC,GAClC,CAAC,MAAM,yBAAyB,CAAC,GACjC,CAAC,MAAM,OAAO,CAAC,yBAAyB,CAAC,CAAC,CAAC;AAEjD,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;IAC5F,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,yBAAyB;IACzB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,6BAA6B;IAC7B,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,sBAAsB,KAAK,SAAS,CAAC;CAC3D;AA+CD,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CAiB5C,CAAC"}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
-
var react = require('react');
|
|
5
|
-
var transactionProvider = require('../transaction-provider');
|
|
6
|
-
var useI18n = require('../../../../hooks/use-i18n');
|
|
7
|
-
var button = require('../../../../components/button');
|
|
8
|
-
|
|
9
|
-
const TransactionContent = ({ text, children, ...props }) => {
|
|
10
|
-
const { isLoading, onSubmit, disabled } = transactionProvider.useTransactionContext();
|
|
11
|
-
const { t } = useI18n.useI18n();
|
|
12
|
-
const isDisabled = disabled || isLoading;
|
|
13
|
-
const handleSubmit = react.useCallback(() => {
|
|
14
|
-
if (!isDisabled) {
|
|
15
|
-
onSubmit();
|
|
16
|
-
}
|
|
17
|
-
}, [isDisabled, onSubmit]);
|
|
18
|
-
const buttonText = react.useMemo(() => {
|
|
19
|
-
if (isLoading) {
|
|
20
|
-
return t("transaction.processing");
|
|
21
|
-
}
|
|
22
|
-
return text ?? t("transaction.sendTransaction");
|
|
23
|
-
}, [isLoading, text, t]);
|
|
24
|
-
if (children) {
|
|
25
|
-
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: children({
|
|
26
|
-
isLoading,
|
|
27
|
-
onSubmit: handleSubmit,
|
|
28
|
-
disabled: isDisabled,
|
|
29
|
-
text: buttonText
|
|
30
|
-
}) });
|
|
31
|
-
}
|
|
32
|
-
return /* @__PURE__ */ jsxRuntime.jsx(button.Button, { onClick: handleSubmit, disabled: isDisabled, ...props, children: buttonText });
|
|
33
|
-
};
|
|
34
|
-
const Transaction = ({
|
|
35
|
-
request,
|
|
36
|
-
children,
|
|
37
|
-
className,
|
|
38
|
-
onError,
|
|
39
|
-
onSuccess,
|
|
40
|
-
disabled = false,
|
|
41
|
-
text,
|
|
42
|
-
...props
|
|
43
|
-
}) => {
|
|
44
|
-
return /* @__PURE__ */ jsxRuntime.jsx(transactionProvider.TransactionProvider, { request, onError, onSuccess, disabled, children: /* @__PURE__ */ jsxRuntime.jsx(TransactionContent, { className, text, ...props, children }) });
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
exports.Transaction = Transaction;
|
|
48
|
-
//# sourceMappingURL=transaction.js.map
|
|
49
|
-
//# sourceMappingURL=transaction.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/features/transaction/components/transaction/transaction.tsx"],"names":["useTransactionContext","useI18n","useCallback","useMemo","jsx","Button","TransactionProvider"],"mappings":";;;;;;;;AA+CA,MAAM,qBAAkD,CAAC,EAAE,MAAM,QAAA,EAAU,GAAG,OAAM,KAAM;AACtF,EAAA,MAAM,EAAE,SAAA,EAAW,QAAA,EAAU,QAAA,KAAaA,yCAAA,EAAsB;AAChE,EAAA,MAAM,EAAE,CAAA,EAAE,GAAIC,eAAA,EAAQ;AAEtB,EAAA,MAAM,aAAa,QAAA,IAAY,SAAA;AAE/B,EAAA,MAAM,YAAA,GAAeC,kBAAY,MAAM;AACnC,IAAA,IAAI,CAAC,UAAA,EAAY;AACb,MAAA,QAAA,EAAS;AAAA,IACb;AAAA,EACJ,CAAA,EAAG,CAAC,UAAA,EAAY,QAAQ,CAAC,CAAA;AAEzB,EAAA,MAAM,UAAA,GAAaC,cAAQ,MAAM;AAC7B,IAAA,IAAI,SAAA,EAAW;AACX,MAAA,OAAO,EAAE,wBAAwB,CAAA;AAAA,IACrC;AAEA,IAAA,OAAO,IAAA,IAAQ,EAAE,6BAA6B,CAAA;AAAA,EAClD,CAAA,EAAG,CAAC,SAAA,EAAW,IAAA,EAAM,CAAC,CAAC,CAAA;AAEvB,EAAA,IAAI,QAAA,EAAU;AACV,IAAA,6DAES,QAAA,EAAA,QAAA,CAAS;AAAA,MACN,SAAA;AAAA,MACA,QAAA,EAAU,YAAA;AAAA,MACV,QAAA,EAAU,UAAA;AAAA,MACV,IAAA,EAAM;AAAA,KACT,CAAA,EACL,CAAA;AAAA,EAER;AAEA,EAAA,uBACIC,cAAA,CAACC,iBAAO,OAAA,EAAS,YAAA,EAAc,UAAU,UAAA,EAAa,GAAG,OACpD,QAAA,EAAA,UAAA,EACL,CAAA;AAER,CAAA;AAEO,MAAM,cAAoC,CAAC;AAAA,EAC9C,OAAA;AAAA,EACA,QAAA;AAAA,EACA,SAAA;AAAA,EACA,OAAA;AAAA,EACA,SAAA;AAAA,EACA,QAAA,GAAW,KAAA;AAAA,EACX,IAAA;AAAA,EACA,GAAG;AACP,CAAA,KAAM;AACF,EAAA,uBACID,cAAA,CAACE,uCAAA,EAAA,EAAoB,OAAA,EAAkB,OAAA,EAAkB,SAAA,EAAsB,QAAA,EAC3E,QAAA,kBAAAF,cAAA,CAAC,kBAAA,EAAA,EAAmB,SAAA,EAAsB,IAAA,EAAa,GAAG,KAAA,EACrD,UACL,CAAA,EACJ,CAAA;AAER","file":"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\nimport { useCallback, useMemo } from 'react';\nimport type { FC, ReactNode, ComponentProps } from 'react';\nimport type { SendTransactionParameters, SendTransactionReturnType } from '@ton/appkit';\n\nimport { TransactionProvider, useTransactionContext } from '../transaction-provider';\nimport { useI18n } from '../../../../hooks/use-i18n';\nimport { Button } from '../../../../components/button';\n\nexport interface TransactionRenderProps {\n isLoading: boolean;\n onSubmit: () => void;\n disabled: boolean;\n text: ReactNode;\n}\n\nexport type TransactionRequest =\n | SendTransactionParameters\n | Promise<SendTransactionParameters>\n | (() => SendTransactionParameters)\n | (() => Promise<SendTransactionParameters>);\n\nexport interface TransactionProps extends Omit<ComponentProps<'button'>, 'children' | 'onError'> {\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 /** Custom button text */\n text?: ReactNode;\n /** Custom render function */\n children?: (props: TransactionRenderProps) => ReactNode;\n}\n\ninterface TransactionContentProps extends Omit<ComponentProps<'button'>, 'children'> {\n text?: ReactNode;\n children?: (props: TransactionRenderProps) => ReactNode;\n}\n\nconst TransactionContent: FC<TransactionContentProps> = ({ text, children, ...props }) => {\n const { isLoading, onSubmit, disabled } = useTransactionContext();\n const { t } = useI18n();\n\n const isDisabled = disabled || isLoading;\n\n const handleSubmit = useCallback(() => {\n if (!isDisabled) {\n onSubmit();\n }\n }, [isDisabled, onSubmit]);\n\n const buttonText = useMemo(() => {\n if (isLoading) {\n return t('transaction.processing');\n }\n\n return text ?? t('transaction.sendTransaction');\n }, [isLoading, text, t]);\n\n if (children) {\n return (\n <>\n {children({\n isLoading,\n onSubmit: handleSubmit,\n disabled: isDisabled,\n text: buttonText,\n })}\n </>\n );\n }\n\n return (\n <Button onClick={handleSubmit} disabled={isDisabled} {...props}>\n {buttonText}\n </Button>\n );\n};\n\nexport const Transaction: FC<TransactionProps> = ({\n request,\n children,\n className,\n onError,\n onSuccess,\n disabled = false,\n text,\n ...props\n}) => {\n return (\n <TransactionProvider request={request} onError={onError} onSuccess={onSuccess} disabled={disabled}>\n <TransactionContent className={className} text={text} {...props}>\n {children}\n </TransactionContent>\n </TransactionProvider>\n );\n};\n"]}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { jsx, Fragment } from 'react/jsx-runtime';
|
|
2
|
-
import { useCallback, useMemo } from 'react';
|
|
3
|
-
import { TransactionProvider, useTransactionContext } from '../transaction-provider';
|
|
4
|
-
import { useI18n } from '../../../../hooks/use-i18n';
|
|
5
|
-
import { Button } from '../../../../components/button';
|
|
6
|
-
|
|
7
|
-
const TransactionContent = ({ text, children, ...props }) => {
|
|
8
|
-
const { isLoading, onSubmit, disabled } = useTransactionContext();
|
|
9
|
-
const { t } = useI18n();
|
|
10
|
-
const isDisabled = disabled || isLoading;
|
|
11
|
-
const handleSubmit = useCallback(() => {
|
|
12
|
-
if (!isDisabled) {
|
|
13
|
-
onSubmit();
|
|
14
|
-
}
|
|
15
|
-
}, [isDisabled, onSubmit]);
|
|
16
|
-
const buttonText = useMemo(() => {
|
|
17
|
-
if (isLoading) {
|
|
18
|
-
return t("transaction.processing");
|
|
19
|
-
}
|
|
20
|
-
return text ?? t("transaction.sendTransaction");
|
|
21
|
-
}, [isLoading, text, t]);
|
|
22
|
-
if (children) {
|
|
23
|
-
return /* @__PURE__ */ jsx(Fragment, { children: children({
|
|
24
|
-
isLoading,
|
|
25
|
-
onSubmit: handleSubmit,
|
|
26
|
-
disabled: isDisabled,
|
|
27
|
-
text: buttonText
|
|
28
|
-
}) });
|
|
29
|
-
}
|
|
30
|
-
return /* @__PURE__ */ jsx(Button, { onClick: handleSubmit, disabled: isDisabled, ...props, children: buttonText });
|
|
31
|
-
};
|
|
32
|
-
const Transaction = ({
|
|
33
|
-
request,
|
|
34
|
-
children,
|
|
35
|
-
className,
|
|
36
|
-
onError,
|
|
37
|
-
onSuccess,
|
|
38
|
-
disabled = false,
|
|
39
|
-
text,
|
|
40
|
-
...props
|
|
41
|
-
}) => {
|
|
42
|
-
return /* @__PURE__ */ jsx(TransactionProvider, { request, onError, onSuccess, disabled, children: /* @__PURE__ */ jsx(TransactionContent, { className, text, ...props, children }) });
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
export { Transaction };
|
|
46
|
-
//# sourceMappingURL=transaction.mjs.map
|
|
47
|
-
//# sourceMappingURL=transaction.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/features/transaction/components/transaction/transaction.tsx"],"names":[],"mappings":";;;;;;AA+CA,MAAM,qBAAkD,CAAC,EAAE,MAAM,QAAA,EAAU,GAAG,OAAM,KAAM;AACtF,EAAA,MAAM,EAAE,SAAA,EAAW,QAAA,EAAU,QAAA,KAAa,qBAAA,EAAsB;AAChE,EAAA,MAAM,EAAE,CAAA,EAAE,GAAI,OAAA,EAAQ;AAEtB,EAAA,MAAM,aAAa,QAAA,IAAY,SAAA;AAE/B,EAAA,MAAM,YAAA,GAAe,YAAY,MAAM;AACnC,IAAA,IAAI,CAAC,UAAA,EAAY;AACb,MAAA,QAAA,EAAS;AAAA,IACb;AAAA,EACJ,CAAA,EAAG,CAAC,UAAA,EAAY,QAAQ,CAAC,CAAA;AAEzB,EAAA,MAAM,UAAA,GAAa,QAAQ,MAAM;AAC7B,IAAA,IAAI,SAAA,EAAW;AACX,MAAA,OAAO,EAAE,wBAAwB,CAAA;AAAA,IACrC;AAEA,IAAA,OAAO,IAAA,IAAQ,EAAE,6BAA6B,CAAA;AAAA,EAClD,CAAA,EAAG,CAAC,SAAA,EAAW,IAAA,EAAM,CAAC,CAAC,CAAA;AAEvB,EAAA,IAAI,QAAA,EAAU;AACV,IAAA,uCAES,QAAA,EAAA,QAAA,CAAS;AAAA,MACN,SAAA;AAAA,MACA,QAAA,EAAU,YAAA;AAAA,MACV,QAAA,EAAU,UAAA;AAAA,MACV,IAAA,EAAM;AAAA,KACT,CAAA,EACL,CAAA;AAAA,EAER;AAEA,EAAA,uBACI,GAAA,CAAC,UAAO,OAAA,EAAS,YAAA,EAAc,UAAU,UAAA,EAAa,GAAG,OACpD,QAAA,EAAA,UAAA,EACL,CAAA;AAER,CAAA;AAEO,MAAM,cAAoC,CAAC;AAAA,EAC9C,OAAA;AAAA,EACA,QAAA;AAAA,EACA,SAAA;AAAA,EACA,OAAA;AAAA,EACA,SAAA;AAAA,EACA,QAAA,GAAW,KAAA;AAAA,EACX,IAAA;AAAA,EACA,GAAG;AACP,CAAA,KAAM;AACF,EAAA,uBACI,GAAA,CAAC,mBAAA,EAAA,EAAoB,OAAA,EAAkB,OAAA,EAAkB,SAAA,EAAsB,QAAA,EAC3E,QAAA,kBAAA,GAAA,CAAC,kBAAA,EAAA,EAAmB,SAAA,EAAsB,IAAA,EAAa,GAAG,KAAA,EACrD,UACL,CAAA,EACJ,CAAA;AAER","file":"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\nimport { useCallback, useMemo } from 'react';\nimport type { FC, ReactNode, ComponentProps } from 'react';\nimport type { SendTransactionParameters, SendTransactionReturnType } from '@ton/appkit';\n\nimport { TransactionProvider, useTransactionContext } from '../transaction-provider';\nimport { useI18n } from '../../../../hooks/use-i18n';\nimport { Button } from '../../../../components/button';\n\nexport interface TransactionRenderProps {\n isLoading: boolean;\n onSubmit: () => void;\n disabled: boolean;\n text: ReactNode;\n}\n\nexport type TransactionRequest =\n | SendTransactionParameters\n | Promise<SendTransactionParameters>\n | (() => SendTransactionParameters)\n | (() => Promise<SendTransactionParameters>);\n\nexport interface TransactionProps extends Omit<ComponentProps<'button'>, 'children' | 'onError'> {\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 /** Custom button text */\n text?: ReactNode;\n /** Custom render function */\n children?: (props: TransactionRenderProps) => ReactNode;\n}\n\ninterface TransactionContentProps extends Omit<ComponentProps<'button'>, 'children'> {\n text?: ReactNode;\n children?: (props: TransactionRenderProps) => ReactNode;\n}\n\nconst TransactionContent: FC<TransactionContentProps> = ({ text, children, ...props }) => {\n const { isLoading, onSubmit, disabled } = useTransactionContext();\n const { t } = useI18n();\n\n const isDisabled = disabled || isLoading;\n\n const handleSubmit = useCallback(() => {\n if (!isDisabled) {\n onSubmit();\n }\n }, [isDisabled, onSubmit]);\n\n const buttonText = useMemo(() => {\n if (isLoading) {\n return t('transaction.processing');\n }\n\n return text ?? t('transaction.sendTransaction');\n }, [isLoading, text, t]);\n\n if (children) {\n return (\n <>\n {children({\n isLoading,\n onSubmit: handleSubmit,\n disabled: isDisabled,\n text: buttonText,\n })}\n </>\n );\n }\n\n return (\n <Button onClick={handleSubmit} disabled={isDisabled} {...props}>\n {buttonText}\n </Button>\n );\n};\n\nexport const Transaction: FC<TransactionProps> = ({\n request,\n children,\n className,\n onError,\n onSuccess,\n disabled = false,\n text,\n ...props\n}) => {\n return (\n <TransactionProvider request={request} onError={onError} onSuccess={onSuccess} disabled={disabled}>\n <TransactionContent className={className} text={text} {...props}>\n {children}\n </TransactionContent>\n </TransactionProvider>\n );\n};\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"transaction.stories.d.ts","sourceRoot":"","sources":["../../../../../src/features/transaction/components/transaction/transaction.stories.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAKvD,QAAA,MAAM,wBAAwB,GAAI,gCAI/B;IACC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB,4CAEA,CAAC;AAEF,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,wBAAwB,CAO/C,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAEvD,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAIxB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAKtB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAI3B,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,KAI9B,CAAC"}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
-
var button = require('../../../../components/button');
|
|
7
|
-
|
|
8
|
-
const TransactionButtonPreview = ({
|
|
9
|
-
text = "Send Transaction",
|
|
10
|
-
isLoading = false,
|
|
11
|
-
disabled = false
|
|
12
|
-
}) => {
|
|
13
|
-
return /* @__PURE__ */ jsxRuntime.jsx(button.Button, { disabled: disabled || isLoading, children: isLoading ? "Processing..." : text });
|
|
14
|
-
};
|
|
15
|
-
const meta = {
|
|
16
|
-
title: "Public/Features/Transaction/Transaction",
|
|
17
|
-
component: TransactionButtonPreview,
|
|
18
|
-
tags: ["autodocs"],
|
|
19
|
-
parameters: {
|
|
20
|
-
layout: "centered"
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
var transaction_stories_default = meta;
|
|
24
|
-
const Default = {
|
|
25
|
-
args: {
|
|
26
|
-
text: "Send Transaction"
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
const CustomText = {
|
|
30
|
-
args: {
|
|
31
|
-
text: "Send 1.5 TON"
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
const Loading = {
|
|
35
|
-
args: {
|
|
36
|
-
isLoading: true
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
const Disabled = {
|
|
40
|
-
args: {
|
|
41
|
-
text: "Send Transaction",
|
|
42
|
-
disabled: true
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
const SendTonButton = {
|
|
46
|
-
args: {
|
|
47
|
-
text: "Send 10 TON"
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
const SendJettonButton = {
|
|
51
|
-
args: {
|
|
52
|
-
text: "Send 100 USDT"
|
|
53
|
-
}
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
exports.CustomText = CustomText;
|
|
57
|
-
exports.Default = Default;
|
|
58
|
-
exports.Disabled = Disabled;
|
|
59
|
-
exports.Loading = Loading;
|
|
60
|
-
exports.SendJettonButton = SendJettonButton;
|
|
61
|
-
exports.SendTonButton = SendTonButton;
|
|
62
|
-
exports.default = transaction_stories_default;
|
|
63
|
-
//# sourceMappingURL=transaction.stories.js.map
|
|
64
|
-
//# sourceMappingURL=transaction.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/features/transaction/components/transaction/transaction.stories.tsx"],"names":["Button"],"mappings":";;;;;;;AAaA,MAAM,2BAA2B,CAAC;AAAA,EAC9B,IAAA,GAAO,kBAAA;AAAA,EACP,SAAA,GAAY,KAAA;AAAA,EACZ,QAAA,GAAW;AACf,CAAA,KAIM;AACF,EAAA,sCAAQA,aAAA,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.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 { 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,54 +0,0 @@
|
|
|
1
|
-
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { Button } from '../../../../components/button';
|
|
3
|
-
|
|
4
|
-
const TransactionButtonPreview = ({
|
|
5
|
-
text = "Send Transaction",
|
|
6
|
-
isLoading = false,
|
|
7
|
-
disabled = false
|
|
8
|
-
}) => {
|
|
9
|
-
return /* @__PURE__ */ jsx(Button, { disabled: disabled || isLoading, children: isLoading ? "Processing..." : text });
|
|
10
|
-
};
|
|
11
|
-
const meta = {
|
|
12
|
-
title: "Public/Features/Transaction/Transaction",
|
|
13
|
-
component: TransactionButtonPreview,
|
|
14
|
-
tags: ["autodocs"],
|
|
15
|
-
parameters: {
|
|
16
|
-
layout: "centered"
|
|
17
|
-
}
|
|
18
|
-
};
|
|
19
|
-
var transaction_stories_default = meta;
|
|
20
|
-
const Default = {
|
|
21
|
-
args: {
|
|
22
|
-
text: "Send Transaction"
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
const CustomText = {
|
|
26
|
-
args: {
|
|
27
|
-
text: "Send 1.5 TON"
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
const Loading = {
|
|
31
|
-
args: {
|
|
32
|
-
isLoading: true
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
const Disabled = {
|
|
36
|
-
args: {
|
|
37
|
-
text: "Send Transaction",
|
|
38
|
-
disabled: true
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
const SendTonButton = {
|
|
42
|
-
args: {
|
|
43
|
-
text: "Send 10 TON"
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
const SendJettonButton = {
|
|
47
|
-
args: {
|
|
48
|
-
text: "Send 100 USDT"
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
export { CustomText, Default, Disabled, Loading, SendJettonButton, SendTonButton, transaction_stories_default as default };
|
|
53
|
-
//# sourceMappingURL=transaction.stories.mjs.map
|
|
54
|
-
//# sourceMappingURL=transaction.stories.mjs.map
|
|
@@ -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"}
|