@reown/appkit-react-native 2.0.0-alpha.3 → 2.0.0-alpha.4
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/lib/commonjs/AppKit.js +89 -21
- package/lib/commonjs/AppKit.js.map +1 -1
- package/lib/commonjs/connectors/WalletConnectConnector.js +4 -5
- package/lib/commonjs/connectors/WalletConnectConnector.js.map +1 -1
- package/lib/commonjs/hooks/useRouteTransition.js +10 -4
- package/lib/commonjs/hooks/useRouteTransition.js.map +1 -1
- package/lib/commonjs/modal/w3m-modal/index.js +15 -24
- package/lib/commonjs/modal/w3m-modal/index.js.map +1 -1
- package/lib/commonjs/modal/w3m-modal/styles.js +1 -2
- package/lib/commonjs/modal/w3m-modal/styles.js.map +1 -1
- package/lib/commonjs/partials/w3m-account-wallet-features/index.js +2 -5
- package/lib/commonjs/partials/w3m-account-wallet-features/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-all-wallets-list/components/Loading.js +113 -0
- package/lib/commonjs/partials/w3m-all-wallets-list/components/Loading.js.map +1 -0
- package/lib/commonjs/partials/w3m-all-wallets-list/components/WalletItem.js +47 -0
- package/lib/commonjs/partials/w3m-all-wallets-list/components/WalletItem.js.map +1 -0
- package/lib/commonjs/partials/w3m-all-wallets-list/index.js +24 -55
- package/lib/commonjs/partials/w3m-all-wallets-list/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-all-wallets-list/styles.js +3 -5
- package/lib/commonjs/partials/w3m-all-wallets-list/styles.js.map +1 -1
- package/lib/commonjs/partials/w3m-all-wallets-search/index.js +24 -46
- package/lib/commonjs/partials/w3m-all-wallets-search/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-all-wallets-search/styles.js +2 -5
- package/lib/commonjs/partials/w3m-all-wallets-search/styles.js.map +1 -1
- package/lib/commonjs/partials/w3m-connecting-mobile/index.js +5 -3
- package/lib/commonjs/partials/w3m-connecting-mobile/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-connecting-qrcode/components/ReownButton.js +36 -0
- package/lib/commonjs/partials/w3m-connecting-qrcode/components/ReownButton.js.map +1 -0
- package/lib/commonjs/partials/w3m-connecting-qrcode/index.js +7 -25
- package/lib/commonjs/partials/w3m-connecting-qrcode/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-connecting-qrcode/styles.js +3 -0
- package/lib/commonjs/partials/w3m-connecting-qrcode/styles.js.map +1 -1
- package/lib/commonjs/partials/w3m-connecting-web/index.js +4 -1
- package/lib/commonjs/partials/w3m-connecting-web/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-header/index.js +1 -1
- package/lib/commonjs/partials/w3m-header/index.js.map +1 -1
- package/lib/commonjs/utils/HelpersUtil.js +20 -0
- package/lib/commonjs/utils/HelpersUtil.js.map +1 -1
- package/lib/commonjs/utils/NetworkUtil.js +2 -2
- package/lib/commonjs/utils/NetworkUtil.js.map +1 -1
- package/lib/commonjs/utils/UiUtil.js +4 -0
- package/lib/commonjs/utils/UiUtil.js.map +1 -1
- package/lib/commonjs/views/w3m-account-default-view/index.js +1 -2
- package/lib/commonjs/views/w3m-account-default-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-account-view/index.js +2 -18
- package/lib/commonjs/views/w3m-account-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-all-wallets-view/index.js +16 -7
- package/lib/commonjs/views/w3m-all-wallets-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-connect-socials-view/index.js +1 -2
- package/lib/commonjs/views/w3m-connect-socials-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-connect-view/components/all-wallet-list.js +4 -1
- package/lib/commonjs/views/w3m-connect-view/components/all-wallet-list.js.map +1 -1
- package/lib/commonjs/views/w3m-connect-view/components/custom-wallet-list.js +8 -2
- package/lib/commonjs/views/w3m-connect-view/components/custom-wallet-list.js.map +1 -1
- package/lib/commonjs/views/w3m-connect-view/components/recent-wallet-list.js +4 -1
- package/lib/commonjs/views/w3m-connect-view/components/recent-wallet-list.js.map +1 -1
- package/lib/commonjs/views/w3m-connect-view/index.js +3 -4
- package/lib/commonjs/views/w3m-connect-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-connecting-external-view/index.js +27 -11
- package/lib/commonjs/views/w3m-connecting-external-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-connecting-social-view/index.js +2 -3
- package/lib/commonjs/views/w3m-connecting-social-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-connecting-view/index.js +2 -4
- package/lib/commonjs/views/w3m-connecting-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-get-wallet-view/index.js +6 -3
- package/lib/commonjs/views/w3m-get-wallet-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-networks-view/index.js +4 -4
- package/lib/commonjs/views/w3m-networks-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-onramp-loading-view/index.js +1 -2
- package/lib/commonjs/views/w3m-onramp-loading-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-swap-preview-view/index.js +1 -2
- package/lib/commonjs/views/w3m-swap-preview-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-swap-view/components/select-token-view/index.js +1 -2
- package/lib/commonjs/views/w3m-swap-view/components/select-token-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-swap-view/index.js +1 -2
- package/lib/commonjs/views/w3m-swap-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-wallet-compatible-networks-view/index.js +1 -2
- package/lib/commonjs/views/w3m-wallet-compatible-networks-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-wallet-receive-view/index.js +1 -2
- package/lib/commonjs/views/w3m-wallet-receive-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-wallet-send-preview-view/index.js +1 -2
- package/lib/commonjs/views/w3m-wallet-send-preview-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-wallet-send-select-token-view/index.js +1 -2
- package/lib/commonjs/views/w3m-wallet-send-select-token-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-wallet-send-view/index.js +1 -2
- package/lib/commonjs/views/w3m-wallet-send-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-what-is-a-network-view/index.js +1 -2
- package/lib/commonjs/views/w3m-what-is-a-network-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-what-is-a-wallet-view/index.js +1 -2
- package/lib/commonjs/views/w3m-what-is-a-wallet-view/index.js.map +1 -1
- package/lib/module/AppKit.js +90 -22
- package/lib/module/AppKit.js.map +1 -1
- package/lib/module/connectors/WalletConnectConnector.js +4 -5
- package/lib/module/connectors/WalletConnectConnector.js.map +1 -1
- package/lib/module/hooks/useRouteTransition.js +10 -4
- package/lib/module/hooks/useRouteTransition.js.map +1 -1
- package/lib/module/modal/w3m-modal/index.js +16 -25
- package/lib/module/modal/w3m-modal/index.js.map +1 -1
- package/lib/module/modal/w3m-modal/styles.js +1 -2
- package/lib/module/modal/w3m-modal/styles.js.map +1 -1
- package/lib/module/partials/w3m-account-wallet-features/index.js +2 -5
- package/lib/module/partials/w3m-account-wallet-features/index.js.map +1 -1
- package/lib/module/partials/w3m-all-wallets-list/components/Loading.js +109 -0
- package/lib/module/partials/w3m-all-wallets-list/components/Loading.js.map +1 -0
- package/lib/module/partials/w3m-all-wallets-list/components/WalletItem.js +42 -0
- package/lib/module/partials/w3m-all-wallets-list/components/WalletItem.js.map +1 -0
- package/lib/module/partials/w3m-all-wallets-list/index.js +26 -57
- package/lib/module/partials/w3m-all-wallets-list/index.js.map +1 -1
- package/lib/module/partials/w3m-all-wallets-list/styles.js +3 -5
- package/lib/module/partials/w3m-all-wallets-list/styles.js.map +1 -1
- package/lib/module/partials/w3m-all-wallets-search/index.js +26 -48
- package/lib/module/partials/w3m-all-wallets-search/index.js.map +1 -1
- package/lib/module/partials/w3m-all-wallets-search/styles.js +2 -5
- package/lib/module/partials/w3m-all-wallets-search/styles.js.map +1 -1
- package/lib/module/partials/w3m-connecting-mobile/index.js +6 -4
- package/lib/module/partials/w3m-connecting-mobile/index.js.map +1 -1
- package/lib/module/partials/w3m-connecting-qrcode/components/ReownButton.js +32 -0
- package/lib/module/partials/w3m-connecting-qrcode/components/ReownButton.js.map +1 -0
- package/lib/module/partials/w3m-connecting-qrcode/index.js +7 -25
- package/lib/module/partials/w3m-connecting-qrcode/index.js.map +1 -1
- package/lib/module/partials/w3m-connecting-qrcode/styles.js +3 -0
- package/lib/module/partials/w3m-connecting-qrcode/styles.js.map +1 -1
- package/lib/module/partials/w3m-connecting-web/index.js +5 -2
- package/lib/module/partials/w3m-connecting-web/index.js.map +1 -1
- package/lib/module/partials/w3m-header/index.js +1 -1
- package/lib/module/partials/w3m-header/index.js.map +1 -1
- package/lib/module/utils/HelpersUtil.js +21 -1
- package/lib/module/utils/HelpersUtil.js.map +1 -1
- package/lib/module/utils/NetworkUtil.js +2 -2
- package/lib/module/utils/NetworkUtil.js.map +1 -1
- package/lib/module/utils/UiUtil.js +4 -0
- package/lib/module/utils/UiUtil.js.map +1 -1
- package/lib/module/views/w3m-account-default-view/index.js +1 -2
- package/lib/module/views/w3m-account-default-view/index.js.map +1 -1
- package/lib/module/views/w3m-account-view/index.js +3 -19
- package/lib/module/views/w3m-account-view/index.js.map +1 -1
- package/lib/module/views/w3m-all-wallets-view/index.js +16 -7
- package/lib/module/views/w3m-all-wallets-view/index.js.map +1 -1
- package/lib/module/views/w3m-connect-socials-view/index.js +1 -2
- package/lib/module/views/w3m-connect-socials-view/index.js.map +1 -1
- package/lib/module/views/w3m-connect-view/components/all-wallet-list.js +5 -2
- package/lib/module/views/w3m-connect-view/components/all-wallet-list.js.map +1 -1
- package/lib/module/views/w3m-connect-view/components/custom-wallet-list.js +9 -3
- package/lib/module/views/w3m-connect-view/components/custom-wallet-list.js.map +1 -1
- package/lib/module/views/w3m-connect-view/components/recent-wallet-list.js +5 -2
- package/lib/module/views/w3m-connect-view/components/recent-wallet-list.js.map +1 -1
- package/lib/module/views/w3m-connect-view/index.js +3 -4
- package/lib/module/views/w3m-connect-view/index.js.map +1 -1
- package/lib/module/views/w3m-connecting-external-view/index.js +29 -13
- package/lib/module/views/w3m-connecting-external-view/index.js.map +1 -1
- package/lib/module/views/w3m-connecting-social-view/index.js +2 -3
- package/lib/module/views/w3m-connecting-social-view/index.js.map +1 -1
- package/lib/module/views/w3m-connecting-view/index.js +2 -4
- package/lib/module/views/w3m-connecting-view/index.js.map +1 -1
- package/lib/module/views/w3m-get-wallet-view/index.js +7 -4
- package/lib/module/views/w3m-get-wallet-view/index.js.map +1 -1
- package/lib/module/views/w3m-networks-view/index.js +4 -4
- package/lib/module/views/w3m-networks-view/index.js.map +1 -1
- package/lib/module/views/w3m-onramp-loading-view/index.js +1 -2
- package/lib/module/views/w3m-onramp-loading-view/index.js.map +1 -1
- package/lib/module/views/w3m-swap-preview-view/index.js +1 -2
- package/lib/module/views/w3m-swap-preview-view/index.js.map +1 -1
- package/lib/module/views/w3m-swap-view/components/select-token-view/index.js +1 -2
- package/lib/module/views/w3m-swap-view/components/select-token-view/index.js.map +1 -1
- package/lib/module/views/w3m-swap-view/index.js +1 -2
- package/lib/module/views/w3m-swap-view/index.js.map +1 -1
- package/lib/module/views/w3m-wallet-compatible-networks-view/index.js +1 -2
- package/lib/module/views/w3m-wallet-compatible-networks-view/index.js.map +1 -1
- package/lib/module/views/w3m-wallet-receive-view/index.js +1 -2
- package/lib/module/views/w3m-wallet-receive-view/index.js.map +1 -1
- package/lib/module/views/w3m-wallet-send-preview-view/index.js +1 -2
- package/lib/module/views/w3m-wallet-send-preview-view/index.js.map +1 -1
- package/lib/module/views/w3m-wallet-send-select-token-view/index.js +1 -2
- package/lib/module/views/w3m-wallet-send-select-token-view/index.js.map +1 -1
- package/lib/module/views/w3m-wallet-send-view/index.js +1 -2
- package/lib/module/views/w3m-wallet-send-view/index.js.map +1 -1
- package/lib/module/views/w3m-what-is-a-network-view/index.js +1 -2
- package/lib/module/views/w3m-what-is-a-network-view/index.js.map +1 -1
- package/lib/module/views/w3m-what-is-a-wallet-view/index.js +1 -2
- package/lib/module/views/w3m-what-is-a-wallet-view/index.js.map +1 -1
- package/lib/typescript/AppKit.d.ts +8 -3
- package/lib/typescript/AppKit.d.ts.map +1 -1
- package/lib/typescript/AppKitContext.d.ts +1 -1
- package/lib/typescript/hooks/useRouteTransition.d.ts.map +1 -1
- package/lib/typescript/modal/w3m-modal/index.d.ts.map +1 -1
- package/lib/typescript/modal/w3m-modal/styles.d.ts +0 -1
- package/lib/typescript/modal/w3m-modal/styles.d.ts.map +1 -1
- package/lib/typescript/partials/w3m-account-wallet-features/index.d.ts +1 -4
- package/lib/typescript/partials/w3m-account-wallet-features/index.d.ts.map +1 -1
- package/lib/typescript/partials/w3m-all-wallets-list/components/Loading.d.ts +10 -0
- package/lib/typescript/partials/w3m-all-wallets-list/components/Loading.d.ts.map +1 -0
- package/lib/typescript/partials/w3m-all-wallets-list/components/WalletItem.d.ts +15 -0
- package/lib/typescript/partials/w3m-all-wallets-list/components/WalletItem.d.ts.map +1 -0
- package/lib/typescript/partials/w3m-all-wallets-list/index.d.ts +2 -1
- package/lib/typescript/partials/w3m-all-wallets-list/index.d.ts.map +1 -1
- package/lib/typescript/partials/w3m-all-wallets-list/styles.d.ts +2 -4
- package/lib/typescript/partials/w3m-all-wallets-list/styles.d.ts.map +1 -1
- package/lib/typescript/partials/w3m-all-wallets-search/index.d.ts +2 -1
- package/lib/typescript/partials/w3m-all-wallets-search/index.d.ts.map +1 -1
- package/lib/typescript/partials/w3m-all-wallets-search/styles.d.ts +1 -4
- package/lib/typescript/partials/w3m-all-wallets-search/styles.d.ts.map +1 -1
- package/lib/typescript/partials/w3m-connecting-mobile/index.d.ts.map +1 -1
- package/lib/typescript/partials/w3m-connecting-qrcode/components/ReownButton.d.ts +7 -0
- package/lib/typescript/partials/w3m-connecting-qrcode/components/ReownButton.d.ts.map +1 -0
- package/lib/typescript/partials/w3m-connecting-qrcode/index.d.ts.map +1 -1
- package/lib/typescript/partials/w3m-connecting-qrcode/styles.d.ts +3 -0
- package/lib/typescript/partials/w3m-connecting-qrcode/styles.d.ts.map +1 -1
- package/lib/typescript/partials/w3m-connecting-web/index.d.ts.map +1 -1
- package/lib/typescript/utils/HelpersUtil.d.ts +3 -1
- package/lib/typescript/utils/HelpersUtil.d.ts.map +1 -1
- package/lib/typescript/utils/NetworkUtil.d.ts +1 -1
- package/lib/typescript/utils/UiUtil.d.ts.map +1 -1
- package/lib/typescript/views/w3m-account-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-all-wallets-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-connect-socials-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-connect-view/components/all-wallet-list.d.ts.map +1 -1
- package/lib/typescript/views/w3m-connect-view/components/custom-wallet-list.d.ts.map +1 -1
- package/lib/typescript/views/w3m-connect-view/components/recent-wallet-list.d.ts.map +1 -1
- package/lib/typescript/views/w3m-connect-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-connecting-external-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-connecting-social-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-connecting-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-get-wallet-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-networks-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-onramp-loading-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-swap-preview-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-swap-view/components/select-token-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-swap-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-wallet-compatible-networks-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-wallet-send-preview-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-wallet-send-select-token-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-wallet-send-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-what-is-a-network-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-what-is-a-wallet-view/index.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/AppKit.ts +119 -23
- package/src/connectors/WalletConnectConnector.ts +5 -5
- package/src/hooks/useRouteTransition.ts +11 -4
- package/src/modal/w3m-modal/index.tsx +16 -25
- package/src/modal/w3m-modal/styles.ts +1 -2
- package/src/partials/w3m-account-wallet-features/index.tsx +2 -8
- package/src/partials/w3m-all-wallets-list/components/Loading.tsx +47 -0
- package/src/partials/w3m-all-wallets-list/components/WalletItem.tsx +47 -0
- package/src/partials/w3m-all-wallets-list/index.tsx +29 -61
- package/src/partials/w3m-all-wallets-list/styles.ts +3 -5
- package/src/partials/w3m-all-wallets-search/index.tsx +27 -53
- package/src/partials/w3m-all-wallets-search/styles.ts +2 -5
- package/src/partials/w3m-connecting-mobile/index.tsx +6 -4
- package/src/partials/w3m-connecting-qrcode/components/ReownButton.tsx +20 -0
- package/src/partials/w3m-connecting-qrcode/index.tsx +12 -14
- package/src/partials/w3m-connecting-qrcode/styles.ts +3 -0
- package/src/partials/w3m-connecting-web/index.tsx +4 -2
- package/src/partials/w3m-header/index.tsx +1 -1
- package/src/utils/HelpersUtil.ts +30 -0
- package/src/utils/NetworkUtil.ts +3 -3
- package/src/utils/UiUtil.ts +4 -0
- package/src/views/w3m-account-default-view/index.tsx +2 -2
- package/src/views/w3m-account-view/index.tsx +4 -20
- package/src/views/w3m-all-wallets-view/index.tsx +27 -8
- package/src/views/w3m-connect-socials-view/index.tsx +1 -2
- package/src/views/w3m-connect-view/components/all-wallet-list.tsx +3 -1
- package/src/views/w3m-connect-view/components/custom-wallet-list.tsx +11 -3
- package/src/views/w3m-connect-view/components/recent-wallet-list.tsx +8 -2
- package/src/views/w3m-connect-view/index.tsx +11 -6
- package/src/views/w3m-connecting-external-view/index.tsx +24 -10
- package/src/views/w3m-connecting-social-view/index.tsx +9 -3
- package/src/views/w3m-connecting-view/index.tsx +2 -4
- package/src/views/w3m-get-wallet-view/index.tsx +5 -4
- package/src/views/w3m-networks-view/index.tsx +8 -4
- package/src/views/w3m-onramp-loading-view/index.tsx +8 -2
- package/src/views/w3m-swap-preview-view/index.tsx +9 -2
- package/src/views/w3m-swap-view/components/select-token-view/index.tsx +2 -2
- package/src/views/w3m-swap-view/index.tsx +7 -2
- package/src/views/w3m-wallet-compatible-networks-view/index.tsx +7 -2
- package/src/views/w3m-wallet-receive-view/index.tsx +2 -2
- package/src/views/w3m-wallet-send-preview-view/index.tsx +10 -2
- package/src/views/w3m-wallet-send-select-token-view/index.tsx +7 -2
- package/src/views/w3m-wallet-send-view/index.tsx +1 -2
- package/src/views/w3m-what-is-a-network-view/index.tsx +1 -2
- package/src/views/w3m-what-is-a-wallet-view/index.tsx +1 -2
- package/lib/commonjs/hooks/useCustomDimensions.js +0 -33
- package/lib/commonjs/hooks/useCustomDimensions.js.map +0 -1
- package/lib/module/hooks/useCustomDimensions.js +0 -30
- package/lib/module/hooks/useCustomDimensions.js.map +0 -1
- package/lib/typescript/hooks/useCustomDimensions.d.ts +0 -11
- package/lib/typescript/hooks/useCustomDimensions.d.ts.map +0 -1
- package/src/hooks/useCustomDimensions.ts +0 -21
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/partials/w3m-all-wallets-search/index.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,mCAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/partials/w3m-all-wallets-search/index.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,mCAAmC,CAAC;AAQlE,MAAM,WAAW,qBAAqB;IACpC,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,CAAC,MAAM,EAAE,QAAQ,KAAK,IAAI,CAAC;IACxC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAID,wBAAgB,gBAAgB,CAAC,EAC/B,WAAW,EACX,OAAO,EACP,SAAS,EACT,WAAW,EACX,YAAgB,EACjB,EAAE,qBAAqB,2CAyFvB"}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
container: {
|
|
3
|
-
height: "100%";
|
|
4
|
-
};
|
|
5
2
|
contentContainer: {
|
|
6
3
|
paddingBottom: number;
|
|
7
4
|
};
|
|
@@ -19,7 +16,7 @@ declare const _default: {
|
|
|
19
16
|
itemContainer: {
|
|
20
17
|
alignItems: "center";
|
|
21
18
|
justifyContent: "center";
|
|
22
|
-
|
|
19
|
+
margin: number;
|
|
23
20
|
};
|
|
24
21
|
text: {
|
|
25
22
|
marginTop: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/partials/w3m-all-wallets-search/styles.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/partials/w3m-all-wallets-search/styles.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAGA,wBAuBG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/partials/w3m-connecting-mobile/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/partials/w3m-connecting-mobile/index.tsx"],"names":[],"mappings":"AA4BA,UAAU,KAAK;IACb,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,EAAE,CAAC,GAAG,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,wBAAgB,gBAAgB,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,EAAE,KAAK,2CA4H1E"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type StyleProp, type ViewStyle } from 'react-native';
|
|
2
|
+
interface Props {
|
|
3
|
+
style?: StyleProp<ViewStyle>;
|
|
4
|
+
}
|
|
5
|
+
export declare function ReownButton({ style }: Props): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=ReownButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReownButton.d.ts","sourceRoot":"","sources":["../../../../../src/partials/w3m-connecting-qrcode/components/ReownButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAW,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAIvE,UAAU,KAAK;IACb,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAED,wBAAgB,WAAW,CAAC,EAAE,KAAK,EAAE,EAAE,KAAK,2CAW3C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/partials/w3m-connecting-qrcode/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/partials/w3m-connecting-qrcode/index.tsx"],"names":[],"mappings":"AAmBA,wBAAgB,gBAAgB,4CAyD/B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/partials/w3m-connecting-qrcode/styles.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/partials/w3m-connecting-qrcode/styles.ts"],"names":[],"mappings":";;;;;;;;AAGA,wBAOG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/partials/w3m-connecting-web/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/partials/w3m-connecting-web/index.tsx"],"names":[],"mappings":"AAyBA,UAAU,kBAAkB;IAC1B,SAAS,EAAE,CAAC,GAAG,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC;AAED,wBAAgB,aAAa,CAAC,EAAE,SAAS,EAAE,EAAE,kBAAkB,2CAiF9D"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Namespace, NamespaceConfig } from '@walletconnect/universal-provider';
|
|
2
|
-
import { type AppKitNetwork, type ChainNamespace, type UniversalProviderConfigOverride } from '@reown/appkit-common-react-native';
|
|
2
|
+
import { type AppKitNetwork, type ChainNamespace, type UniversalProviderConfigOverride, type WcWallet } from '@reown/appkit-common-react-native';
|
|
3
3
|
export declare const DEFAULT_METHODS: {
|
|
4
4
|
solana: string[];
|
|
5
5
|
eip155: string[];
|
|
@@ -10,6 +10,8 @@ export declare const WcHelpersUtil: {
|
|
|
10
10
|
createDefaultNamespace(chainNamespace: ChainNamespace): Namespace;
|
|
11
11
|
applyNamespaceOverrides(baseNamespaces: NamespaceConfig, overrides?: UniversalProviderConfigOverride): NamespaceConfig;
|
|
12
12
|
createNamespaces(caipNetworks: AppKitNetwork[], configOverride?: UniversalProviderConfigOverride): NamespaceConfig;
|
|
13
|
+
isExternalWallet(wallet?: WcWallet): boolean;
|
|
14
|
+
getConnectorTypeByWallet(wallet?: WcWallet): "walletconnect" | "coinbase" | "phantom" | "solflare";
|
|
13
15
|
};
|
|
14
16
|
export declare namespace WcHelpersUtil {
|
|
15
17
|
type SessionEventData = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HelpersUtil.d.ts","sourceRoot":"","sources":["../../../src/utils/HelpersUtil.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpF,OAAO,EACL,KAAK,aAAa,EAElB,KAAK,cAAc,
|
|
1
|
+
{"version":3,"file":"HelpersUtil.d.ts","sourceRoot":"","sources":["../../../src/utils/HelpersUtil.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpF,OAAO,EACL,KAAK,aAAa,EAElB,KAAK,cAAc,EAEnB,KAAK,+BAA+B,EACpC,KAAK,QAAQ,EAGd,MAAM,mCAAmC,CAAC;AAE3C,eAAO,MAAM,eAAe;;;;CAuC3B,CAAC;AAEF,eAAO,MAAM,aAAa;+CACmB,cAAc,GAAG,MAAM,EAAE;2CAI7B,cAAc,GAAG,SAAS;4CAU/C,eAAe,cACnB,+BAA+B,GAC1C,eAAe;mCA8FF,aAAa,EAAE,mBACZ,+BAA+B,GAC/C,eAAe;8BAwCQ,QAAQ;sCAYA,QAAQ;CAe3C,CAAC;AAEF,yBAAiB,aAAa,CAAC;IAC7B,KAAY,gBAAgB,GAAG;QAC7B,EAAE,EAAE,MAAM,CAAC;QACX,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE;YAAE,OAAO,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE;gBAAE,IAAI,EAAE,OAAO,CAAC;gBAAC,IAAI,EAAE,MAAM,CAAA;aAAE,CAAA;SAAE,CAAC;KACrE,CAAC;CACH"}
|
|
@@ -3,6 +3,6 @@ export declare const NetworkUtil: {
|
|
|
3
3
|
formatNetwork(network: Network, projectId: string): AppKitNetwork;
|
|
4
4
|
formatNetworks(networks: Network[], projectId: string): AppKitNetwork[];
|
|
5
5
|
getBlockchainApiRpcUrl(caipNetworkId: CaipNetworkId, projectId: string): string;
|
|
6
|
-
|
|
6
|
+
getDefaultNetwork(namespaces: CaipNamespaces, defaultNetwork?: AppKitNetwork): AppKitNetwork | undefined;
|
|
7
7
|
};
|
|
8
8
|
//# sourceMappingURL=NetworkUtil.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UiUtil.d.ts","sourceRoot":"","sources":["../../../src/utils/UiUtil.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,MAAM;;mDAIW,SAAS,GAAG,UAAU,GAAG,MAAM,KAAK,QAAQ,IAAI,CAAC;;
|
|
1
|
+
{"version":3,"file":"UiUtil.d.ts","sourceRoot":"","sources":["../../../src/utils/UiUtil.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,MAAM;;mDAIW,SAAS,GAAG,UAAU,GAAG,MAAM,KAAK,QAAQ,IAAI,CAAC;;CAe9E,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-account-view/index.tsx"],"names":[],"mappings":"AA2BA,wBAAgB,WAAW,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-account-view/index.tsx"],"names":[],"mappings":"AA2BA,wBAAgB,WAAW,4CAwD1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-all-wallets-view/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-all-wallets-view/index.tsx"],"names":[],"mappings":"AAmBA,wBAAgB,cAAc,4CAuG7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-connect-socials-view/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-connect-socials-view/index.tsx"],"names":[],"mappings":"AAYA,wBAAgB,kBAAkB,4CAiCjC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"all-wallet-list.d.ts","sourceRoot":"","sources":["../../../../../src/views/w3m-connect-view/components/all-wallet-list.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"all-wallet-list.d.ts","sourceRoot":"","sources":["../../../../../src/views/w3m-connect-view/components/all-wallet-list.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAS9D,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,mCAAmC,CAAC;AAKlE,UAAU,KAAK;IACb,SAAS,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAChC,aAAa,EAAE,CAAC,MAAM,EAAE,QAAQ,KAAK,IAAI,CAAC;CAC3C;AAED,wBAAgB,aAAa,CAAC,EAAE,SAAS,EAAE,aAAa,EAAE,EAAE,KAAK,8FAyChE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom-wallet-list.d.ts","sourceRoot":"","sources":["../../../../../src/views/w3m-connect-view/components/custom-wallet-list.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"custom-wallet-list.d.ts","sourceRoot":"","sources":["../../../../../src/views/w3m-connect-view/components/custom-wallet-list.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAUzD,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,mCAAmC,CAAC;AAItE,UAAU,KAAK;IACb,SAAS,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAChC,aAAa,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,IAAI,CAAC;CAC/C;AAED,wBAAgB,gBAAgB,CAAC,EAAE,SAAS,EAAE,aAAa,EAAE,EAAE,KAAK,oDA8BnE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recent-wallet-list.d.ts","sourceRoot":"","sources":["../../../../../src/views/w3m-connect-view/components/recent-wallet-list.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"recent-wallet-list.d.ts","sourceRoot":"","sources":["../../../../../src/views/w3m-connect-view/components/recent-wallet-list.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,mCAAmC,CAAC;AAElE,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzD,UAAU,KAAK;IACb,SAAS,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAChC,aAAa,EAAE,CAAC,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;CAC/D;AAED,wBAAgB,gBAAgB,CAAC,EAAE,SAAS,EAAE,aAAa,EAAE,EAAE,KAAK,oDA4BnE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-connect-view/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-connect-view/index.tsx"],"names":[],"mappings":"AA2BA,wBAAgB,WAAW,4CA+E1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-connecting-external-view/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-connecting-external-view/index.tsx"],"names":[],"mappings":"AA2BA,wBAAgB,sBAAsB,4CA6GrC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-connecting-social-view/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-connecting-social-view/index.tsx"],"names":[],"mappings":"AAsBA,wBAAgB,oBAAoB,4CAkFnC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-connecting-view/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-connecting-view/index.tsx"],"names":[],"mappings":"AAmBA,wBAAgB,cAAc,4CAyH7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-get-wallet-view/index.tsx"],"names":[],"mappings":"AAOA,wBAAgB,aAAa,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-get-wallet-view/index.tsx"],"names":[],"mappings":"AAOA,wBAAgB,aAAa,4CA4C5B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-networks-view/index.tsx"],"names":[],"mappings":"AAyBA,wBAAgB,YAAY,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-networks-view/index.tsx"],"names":[],"mappings":"AAyBA,wBAAgB,YAAY,4CA2F3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-onramp-loading-view/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-onramp-loading-view/index.tsx"],"names":[],"mappings":"AAsBA,wBAAgB,iBAAiB,4CA4IhC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-swap-preview-view/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-swap-preview-view/index.tsx"],"names":[],"mappings":"AAiBA,wBAAgB,eAAe,4CAuH9B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/views/w3m-swap-view/components/select-token-view/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAKL,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/views/w3m-swap-view/components/select-token-view/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAKL,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAsBtB,OAAO,EAAE,KAAK,eAAe,EAA6B,MAAM,mCAAmC,CAAC;AAMpG,UAAU,KAAK;IACb,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAED,wBAAgB,mBAAmB,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,KAAK,2CAoIlE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-swap-view/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-swap-view/index.tsx"],"names":[],"mappings":"AA0BA,wBAAgB,QAAQ,4CA6LvB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-wallet-compatible-networks-view/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-wallet-compatible-networks-view/index.tsx"],"names":[],"mappings":"AAiBA,wBAAgB,wBAAwB,4CAuCvC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-wallet-send-preview-view/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-wallet-send-preview-view/index.tsx"],"names":[],"mappings":"AAsBA,wBAAgB,qBAAqB,4CAgHpC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-wallet-send-select-token-view/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-wallet-send-select-token-view/index.tsx"],"names":[],"mappings":"AAsBA,wBAAgB,yBAAyB,4CA+DxC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-wallet-send-view/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-wallet-send-view/index.tsx"],"names":[],"mappings":"AAeA,wBAAgB,cAAc,4CAwG7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-what-is-a-network-view/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-what-is-a-network-view/index.tsx"],"names":[],"mappings":"AAIA,wBAAgB,kBAAkB,4CA2CjC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-what-is-a-wallet-view/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-what-is-a-wallet-view/index.tsx"],"names":[],"mappings":"AAKA,wBAAgB,iBAAiB,4CA6DhC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reown/appkit-react-native",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.4",
|
|
4
4
|
"main": "lib/commonjs/index.js",
|
|
5
5
|
"types": "lib/typescript/index.d.ts",
|
|
6
6
|
"module": "lib/module/index.js",
|
|
@@ -38,10 +38,10 @@
|
|
|
38
38
|
"access": "public"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@reown/appkit-common-react-native": "2.0.0-alpha.
|
|
42
|
-
"@reown/appkit-core-react-native": "2.0.0-alpha.
|
|
43
|
-
"@reown/appkit-siwe-react-native": "2.0.0-alpha.
|
|
44
|
-
"@reown/appkit-ui-react-native": "2.0.0-alpha.
|
|
41
|
+
"@reown/appkit-common-react-native": "2.0.0-alpha.4",
|
|
42
|
+
"@reown/appkit-core-react-native": "2.0.0-alpha.4",
|
|
43
|
+
"@reown/appkit-siwe-react-native": "2.0.0-alpha.4",
|
|
44
|
+
"@reown/appkit-ui-react-native": "2.0.0-alpha.4",
|
|
45
45
|
"@walletconnect/universal-provider": "2.21.5",
|
|
46
46
|
"valtio": "2.1.5"
|
|
47
47
|
},
|
package/src/AppKit.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { subscribeKey } from 'valtio/utils';
|
|
1
2
|
import {
|
|
2
3
|
EventsController,
|
|
3
4
|
ModalController,
|
|
@@ -12,7 +13,8 @@ import {
|
|
|
12
13
|
OnRampController,
|
|
13
14
|
CoreHelperUtil,
|
|
14
15
|
SendController,
|
|
15
|
-
BlockchainApiController
|
|
16
|
+
BlockchainApiController,
|
|
17
|
+
WalletUtil
|
|
16
18
|
} from '@reown/appkit-core-react-native';
|
|
17
19
|
|
|
18
20
|
import {
|
|
@@ -31,7 +33,8 @@ import {
|
|
|
31
33
|
type AccountType,
|
|
32
34
|
type AppKitOpenOptions,
|
|
33
35
|
ConstantsUtil,
|
|
34
|
-
type Connection
|
|
36
|
+
type Connection,
|
|
37
|
+
type WcWallet
|
|
35
38
|
} from '@reown/appkit-common-react-native';
|
|
36
39
|
import { SIWEController } from '@reown/appkit-siwe-react-native';
|
|
37
40
|
|
|
@@ -49,6 +52,7 @@ export class AppKit {
|
|
|
49
52
|
private config: AppKitConfig;
|
|
50
53
|
private extraConnectors: WalletConnector[];
|
|
51
54
|
private walletConnectConnector?: WalletConnector;
|
|
55
|
+
private balanceIntervalId?: ReturnType<typeof setInterval>;
|
|
52
56
|
|
|
53
57
|
constructor(config: AppKitConfig) {
|
|
54
58
|
this.projectId = config.projectId;
|
|
@@ -94,6 +98,7 @@ export class AppKit {
|
|
|
94
98
|
|
|
95
99
|
this.initControllers(config);
|
|
96
100
|
this.initConnectors();
|
|
101
|
+
this.watchBalance();
|
|
97
102
|
}
|
|
98
103
|
|
|
99
104
|
/**
|
|
@@ -101,19 +106,31 @@ export class AppKit {
|
|
|
101
106
|
* @param type - The type of connector to use.
|
|
102
107
|
* @param options - Optional connection options.
|
|
103
108
|
*/
|
|
104
|
-
async connect(
|
|
109
|
+
async connect(options?: AppKitConnectOptions): Promise<void> {
|
|
105
110
|
try {
|
|
106
|
-
const {
|
|
107
|
-
const connector = await this.createConnector(type);
|
|
111
|
+
const { wallet, walletId } = options ?? {};
|
|
108
112
|
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
113
|
+
let targetWallet: WcWallet | undefined;
|
|
114
|
+
|
|
115
|
+
if (walletId) {
|
|
116
|
+
targetWallet = WalletUtil.getWallet(walletId);
|
|
117
|
+
} else if (wallet) {
|
|
118
|
+
targetWallet = wallet;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
const connectorType = WcHelpersUtil.getConnectorTypeByWallet(targetWallet);
|
|
122
|
+
|
|
123
|
+
const connector = await this.createConnector(connectorType);
|
|
124
|
+
|
|
125
|
+
const chain = NetworkUtil.getDefaultNetwork(
|
|
126
|
+
this.namespaces,
|
|
127
|
+
OptionsController.state.defaultNetwork
|
|
128
|
+
);
|
|
112
129
|
|
|
113
130
|
const approvedNamespaces = await connector.connect({
|
|
114
|
-
namespaces:
|
|
115
|
-
|
|
116
|
-
universalLink,
|
|
131
|
+
namespaces: this.namespaces,
|
|
132
|
+
defaultNetwork: chain,
|
|
133
|
+
universalLink: targetWallet?.link_mode ?? undefined,
|
|
117
134
|
siweConfig: this.config?.siweConfig
|
|
118
135
|
});
|
|
119
136
|
|
|
@@ -321,7 +338,7 @@ export class AppKit {
|
|
|
321
338
|
ConnectionsController.fetchBalance();
|
|
322
339
|
|
|
323
340
|
// Sync balances from adapter
|
|
324
|
-
this.
|
|
341
|
+
this.syncNativeBalance(adapter, network);
|
|
325
342
|
|
|
326
343
|
EventsController.sendEvent({
|
|
327
344
|
type: 'track',
|
|
@@ -434,12 +451,12 @@ export class AppKit {
|
|
|
434
451
|
n => n.id?.toString() === connection?.caipNetwork?.split(':')[1]
|
|
435
452
|
);
|
|
436
453
|
|
|
437
|
-
this.
|
|
454
|
+
this.syncNativeBalance(adapter, network);
|
|
438
455
|
this.syncIdentity(namespace, connection);
|
|
439
456
|
});
|
|
440
457
|
}
|
|
441
458
|
|
|
442
|
-
private
|
|
459
|
+
private syncNativeBalance(adapter: BlockchainAdapter, network?: AppKitNetwork) {
|
|
443
460
|
if (adapter && network) {
|
|
444
461
|
const accounts = adapter.getAccounts();
|
|
445
462
|
if (accounts && accounts.length > 0) {
|
|
@@ -488,6 +505,58 @@ export class AppKit {
|
|
|
488
505
|
}
|
|
489
506
|
}
|
|
490
507
|
|
|
508
|
+
private async refreshBalance(fetchAllBalances: boolean = false) {
|
|
509
|
+
try {
|
|
510
|
+
if (fetchAllBalances) {
|
|
511
|
+
ConnectionsController.fetchBalance();
|
|
512
|
+
}
|
|
513
|
+
const ns = ConnectionsController.state.activeNamespace;
|
|
514
|
+
const network = ConnectionsController.state.activeNetwork;
|
|
515
|
+
if (ns && network) {
|
|
516
|
+
const adapter = this.getAdapterByNamespace(ns);
|
|
517
|
+
if (adapter) {
|
|
518
|
+
this.syncNativeBalance(adapter, network);
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
} catch {
|
|
522
|
+
// ignore
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
private startBalancePolling(fetchAllBalances: boolean = false) {
|
|
527
|
+
if (this.balanceIntervalId) return;
|
|
528
|
+
// immediate fetch
|
|
529
|
+
this.refreshBalance(fetchAllBalances);
|
|
530
|
+
this.balanceIntervalId = setInterval(() => this.refreshBalance(fetchAllBalances), 10000);
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
private stopBalancePolling() {
|
|
534
|
+
if (this.balanceIntervalId) {
|
|
535
|
+
clearInterval(this.balanceIntervalId);
|
|
536
|
+
this.balanceIntervalId = undefined;
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
private watchBalance() {
|
|
541
|
+
// watch balance when user is on account or account default view
|
|
542
|
+
const recomputePolling = () => {
|
|
543
|
+
const open = ModalController.state.open;
|
|
544
|
+
const view = RouterController.state.view;
|
|
545
|
+
|
|
546
|
+
if (open && (view === 'Account' || view === 'AccountDefault')) {
|
|
547
|
+
// fetch all balances when user is using embedded wallet
|
|
548
|
+
this.startBalancePolling(view === 'Account');
|
|
549
|
+
} else {
|
|
550
|
+
this.stopBalancePolling();
|
|
551
|
+
}
|
|
552
|
+
};
|
|
553
|
+
|
|
554
|
+
recomputePolling();
|
|
555
|
+
|
|
556
|
+
subscribeKey(RouterController.state, 'view', () => recomputePolling());
|
|
557
|
+
subscribeKey(ModalController.state, 'open', () => recomputePolling());
|
|
558
|
+
}
|
|
559
|
+
|
|
491
560
|
private setConnection(
|
|
492
561
|
adapters: BlockchainAdapter[],
|
|
493
562
|
approvedNamespaces: Namespaces,
|
|
@@ -538,22 +607,34 @@ export class AppKit {
|
|
|
538
607
|
});
|
|
539
608
|
|
|
540
609
|
adapter.on('chainChanged', ({ chainId }) => {
|
|
541
|
-
//eslint-disable-next-line no-console
|
|
542
|
-
console.log('chainChanged', chainId);
|
|
543
610
|
const namespace = adapter.getSupportedNamespace();
|
|
544
611
|
const chain = `${namespace}:${chainId}` as CaipNetworkId;
|
|
545
612
|
ConnectionsController.setActiveNetwork(namespace, chain);
|
|
546
613
|
const connection = ConnectionsController.state.connections.get(namespace);
|
|
547
614
|
const isAuth = !!connection?.properties?.provider;
|
|
548
615
|
|
|
616
|
+
const activeNamespace = ConnectionsController.state.activeNamespace;
|
|
617
|
+
|
|
549
618
|
const network = this.networks.find(n => n.id?.toString() === chainId);
|
|
550
|
-
this.
|
|
619
|
+
this.syncNativeBalance(adapter, network);
|
|
551
620
|
SendController.resetState();
|
|
552
621
|
|
|
622
|
+
// Refresh balance for embedded wallets
|
|
553
623
|
if (isAuth) {
|
|
554
624
|
ConnectionsController.fetchBalance();
|
|
555
625
|
}
|
|
556
626
|
|
|
627
|
+
// Refresh transactions only when the active network changes
|
|
628
|
+
if (namespace === activeNamespace) {
|
|
629
|
+
const address = connection?.accounts?.find(account =>
|
|
630
|
+
account.startsWith(`${namespace}:${chainId}`)
|
|
631
|
+
);
|
|
632
|
+
if (address) {
|
|
633
|
+
TransactionsController.fetchTransactions(address, true);
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
// Check if user needs to sign in again
|
|
557
638
|
if (namespace === 'eip155') {
|
|
558
639
|
this.handleSiweChange({ isNetworkChange: true });
|
|
559
640
|
}
|
|
@@ -565,8 +646,6 @@ export class AppKit {
|
|
|
565
646
|
});
|
|
566
647
|
|
|
567
648
|
adapter.on('balanceChanged', ({ address, balance }) => {
|
|
568
|
-
//eslint-disable-next-line no-console
|
|
569
|
-
console.log('balanceChanged', address, balance);
|
|
570
649
|
const namespace = adapter.getSupportedNamespace();
|
|
571
650
|
ConnectionsController.updateBalance(namespace, address, balance);
|
|
572
651
|
});
|
|
@@ -584,6 +663,7 @@ export class AppKit {
|
|
|
584
663
|
OptionsController.setEnableAnalytics(options.enableAnalytics);
|
|
585
664
|
OptionsController.setDebug(options.debug);
|
|
586
665
|
OptionsController.setFeatures(options.features);
|
|
666
|
+
OptionsController.setRequestedNetworks(this.networks);
|
|
587
667
|
|
|
588
668
|
if (options.defaultNetwork) {
|
|
589
669
|
const network = NetworkUtil.formatNetwork(options.defaultNetwork, this.projectId);
|
|
@@ -630,14 +710,17 @@ export class AppKit {
|
|
|
630
710
|
const wallets = await StorageUtil.getRecentWallets();
|
|
631
711
|
const filteredWallets = wallets.filter(wallet => {
|
|
632
712
|
const { includeWalletIds, excludeWalletIds } = options;
|
|
633
|
-
|
|
713
|
+
|
|
714
|
+
if (includeWalletIds?.length) {
|
|
634
715
|
return includeWalletIds.includes(wallet.id);
|
|
635
716
|
}
|
|
636
|
-
if (excludeWalletIds) {
|
|
717
|
+
if (excludeWalletIds?.length) {
|
|
637
718
|
return !excludeWalletIds.includes(wallet.id);
|
|
638
719
|
}
|
|
639
720
|
|
|
640
|
-
return
|
|
721
|
+
return this.networks.some(
|
|
722
|
+
network => wallet.chains?.some(chain => network.caipNetworkId === chain)
|
|
723
|
+
);
|
|
641
724
|
});
|
|
642
725
|
|
|
643
726
|
WcController.setRecentWallets(filteredWallets);
|
|
@@ -661,8 +744,12 @@ export class AppKit {
|
|
|
661
744
|
|
|
662
745
|
const customList = [...(customWallets ?? [])];
|
|
663
746
|
|
|
664
|
-
const
|
|
747
|
+
const isSolanaEnabled =
|
|
665
748
|
adapters.some(adapter => adapter.getSupportedNamespace() === 'solana') &&
|
|
749
|
+
this.networks.some(network => network.chainNamespace === 'solana');
|
|
750
|
+
|
|
751
|
+
const addPhantom =
|
|
752
|
+
isSolanaEnabled &&
|
|
666
753
|
extraConnectors?.some(connector => connector.type.toLowerCase() === 'phantom') &&
|
|
667
754
|
!customList.some(wallet => wallet.id === ConstantsUtil.PHANTOM_CUSTOM_WALLET.id);
|
|
668
755
|
|
|
@@ -670,6 +757,15 @@ export class AppKit {
|
|
|
670
757
|
customList.push(ConstantsUtil.PHANTOM_CUSTOM_WALLET);
|
|
671
758
|
}
|
|
672
759
|
|
|
760
|
+
const addSolflare =
|
|
761
|
+
isSolanaEnabled &&
|
|
762
|
+
extraConnectors?.some(connector => connector.type.toLowerCase() === 'solflare') &&
|
|
763
|
+
!customList.some(wallet => wallet.id === ConstantsUtil.SOLFLARE_CUSTOM_WALLET.id);
|
|
764
|
+
|
|
765
|
+
if (addSolflare) {
|
|
766
|
+
customList.push(ConstantsUtil.SOLFLARE_CUSTOM_WALLET);
|
|
767
|
+
}
|
|
768
|
+
|
|
673
769
|
OptionsController.setCustomWallets(customList);
|
|
674
770
|
}
|
|
675
771
|
|
|
@@ -94,7 +94,7 @@ export class WalletConnectConnector extends WalletConnector {
|
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
override async connect(opts: ConnectOptions) {
|
|
97
|
-
const { siweConfig, namespaces,
|
|
97
|
+
const { siweConfig, namespaces, defaultNetwork, universalLink } = opts;
|
|
98
98
|
function onUri(uri: string) {
|
|
99
99
|
WcController.setWcUri(uri);
|
|
100
100
|
}
|
|
@@ -181,8 +181,8 @@ export class WalletConnectConnector extends WalletConnector {
|
|
|
181
181
|
this.wallet = undefined;
|
|
182
182
|
}
|
|
183
183
|
|
|
184
|
-
if (
|
|
185
|
-
(this.provider as IUniversalProvider).setDefaultChain(
|
|
184
|
+
if (defaultNetwork?.caipNetworkId) {
|
|
185
|
+
(this.provider as IUniversalProvider).setDefaultChain(defaultNetwork.caipNetworkId);
|
|
186
186
|
}
|
|
187
187
|
|
|
188
188
|
if (session?.sessionProperties) {
|
|
@@ -210,12 +210,12 @@ export class WalletConnectConnector extends WalletConnector {
|
|
|
210
210
|
const provider = this.provider as IUniversalProvider;
|
|
211
211
|
|
|
212
212
|
if (namespace) {
|
|
213
|
-
const _chainId = this.getChainId(namespace);
|
|
214
|
-
|
|
215
213
|
// @ts-ignore
|
|
216
214
|
return {
|
|
217
215
|
...provider,
|
|
218
216
|
request: (args: RequestArguments, chainId?: CaipNetworkId) => {
|
|
217
|
+
const _chainId = this.getChainId(namespace);
|
|
218
|
+
|
|
219
219
|
return provider.request(args, chainId || _chainId);
|
|
220
220
|
}
|
|
221
221
|
};
|
|
@@ -55,11 +55,18 @@ export function useRouteTransition(config: RouteTransitionConfig = {}) {
|
|
|
55
55
|
currentAnimation.current = animation;
|
|
56
56
|
|
|
57
57
|
animation.start(({ finished }) => {
|
|
58
|
-
if
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
58
|
+
// Always clean up and resolve, even if the animation was interrupted
|
|
59
|
+
// Android often reports finished=false when interrupted, which otherwise
|
|
60
|
+
// would leave the view stuck at opacity 0 and block future animations.
|
|
61
|
+
if (!finished) {
|
|
62
|
+
// Ensure we end in the expected target state
|
|
63
|
+
fadeAnim.setValue(1);
|
|
64
|
+
slideAnim.setValue(0);
|
|
62
65
|
}
|
|
66
|
+
|
|
67
|
+
isAnimating.current = false;
|
|
68
|
+
currentAnimation.current = null;
|
|
69
|
+
resolve();
|
|
63
70
|
});
|
|
64
71
|
});
|
|
65
72
|
},
|