@reown/appkit-react-native 0.0.0-chore-spring-effect-20250909214820 → 0.0.0-chore-added-import-20251002170458
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 +133 -88
- package/lib/commonjs/AppKit.js.map +1 -1
- package/lib/commonjs/AppKitContext.js +16 -10
- package/lib/commonjs/AppKitContext.js.map +1 -1
- package/lib/commonjs/connectors/WalletConnectConnector.js +24 -57
- package/lib/commonjs/connectors/WalletConnectConnector.js.map +1 -1
- package/lib/commonjs/hooks/useAccount.js +4 -3
- package/lib/commonjs/hooks/useAccount.js.map +1 -1
- package/lib/commonjs/hooks/useAppKit.js +12 -12
- package/lib/commonjs/hooks/useAppKit.js.map +1 -1
- package/lib/commonjs/hooks/useAppKitLogs.js +88 -0
- package/lib/commonjs/hooks/useAppKitLogs.js.map +1 -0
- package/lib/commonjs/hooks/useAppKitState.js +32 -0
- package/lib/commonjs/hooks/useAppKitState.js.map +1 -0
- package/lib/commonjs/hooks/useProvider.js +14 -8
- package/lib/commonjs/hooks/useProvider.js.map +1 -1
- package/lib/commonjs/hooks/useWalletInfo.js +6 -4
- package/lib/commonjs/hooks/useWalletInfo.js.map +1 -1
- package/lib/commonjs/index.js +22 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/modal/w3m-modal/index.js +9 -1
- package/lib/commonjs/modal/w3m-modal/index.js.map +1 -1
- package/lib/commonjs/modal/w3m-router/index.js +19 -21
- package/lib/commonjs/modal/w3m-router/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-account-wallet-features/index.js +1 -1
- package/lib/commonjs/partials/w3m-account-wallet-features/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-all-wallets-list/components/WalletItem.js +6 -3
- package/lib/commonjs/partials/w3m-all-wallets-list/components/WalletItem.js.map +1 -1
- package/lib/commonjs/partials/w3m-all-wallets-list/components/WalletList.js +9 -2
- package/lib/commonjs/partials/w3m-all-wallets-list/components/WalletList.js.map +1 -1
- package/lib/commonjs/partials/w3m-all-wallets-list/index.js +1 -0
- package/lib/commonjs/partials/w3m-all-wallets-list/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-all-wallets-search/index.js +3 -1
- package/lib/commonjs/partials/w3m-all-wallets-search/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-connecting-mobile/index.js +21 -1
- package/lib/commonjs/partials/w3m-connecting-mobile/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-connecting-qrcode/index.js +5 -1
- package/lib/commonjs/partials/w3m-connecting-qrcode/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-connecting-web/index.js +8 -2
- package/lib/commonjs/partials/w3m-connecting-web/index.js.map +1 -1
- package/lib/commonjs/partials/w3m-header/index.js +4 -4
- package/lib/commonjs/partials/w3m-header/index.js.map +1 -1
- package/lib/commonjs/utils/SIWXUtil.js +278 -0
- package/lib/commonjs/utils/SIWXUtil.js.map +1 -0
- package/lib/commonjs/views/w3m-account-default-view/index.js +3 -2
- package/lib/commonjs/views/w3m-account-default-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-all-wallets-view/index.js +7 -4
- package/lib/commonjs/views/w3m-all-wallets-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-connect-view/components/all-wallet-list.js +5 -3
- package/lib/commonjs/views/w3m-connect-view/components/all-wallet-list.js.map +1 -1
- package/lib/commonjs/views/w3m-connect-view/index.js +6 -3
- package/lib/commonjs/views/w3m-connect-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-connecting-external-view/index.js +21 -1
- package/lib/commonjs/views/w3m-connecting-external-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-connecting-social-view/index.js +1 -0
- package/lib/commonjs/views/w3m-connecting-social-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-connecting-view/index.js +12 -31
- package/lib/commonjs/views/w3m-connecting-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-network-switch-view/index.js +1 -0
- package/lib/commonjs/views/w3m-network-switch-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-onramp-settings-view/components/Country.js +3 -1
- package/lib/commonjs/views/w3m-onramp-settings-view/components/Country.js.map +1 -1
- package/lib/commonjs/views/w3m-onramp-settings-view/index.js +2 -1
- package/lib/commonjs/views/w3m-onramp-settings-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-onramp-view/components/LoadingView.js +1 -1
- package/lib/commonjs/views/w3m-onramp-view/components/LoadingView.js.map +1 -1
- package/lib/commonjs/views/{w3m-connecting-siwe-view → w3m-siwx-sign-view}/index.js +7 -43
- package/lib/commonjs/views/w3m-siwx-sign-view/index.js.map +1 -0
- package/lib/commonjs/views/w3m-siwx-sign-view/styles.js.map +1 -0
- package/lib/commonjs/views/w3m-swap-view/index.js +1 -1
- package/lib/commonjs/views/w3m-swap-view/index.js.map +1 -1
- package/lib/commonjs/views/w3m-what-is-a-wallet-view/index.js +1 -1
- package/lib/commonjs/views/w3m-what-is-a-wallet-view/index.js.map +1 -1
- package/lib/module/AppKit.js +133 -88
- package/lib/module/AppKit.js.map +1 -1
- package/lib/module/AppKitContext.js +17 -11
- package/lib/module/AppKitContext.js.map +1 -1
- package/lib/module/connectors/WalletConnectConnector.js +22 -56
- package/lib/module/connectors/WalletConnectConnector.js.map +1 -1
- package/lib/module/hooks/useAccount.js +3 -3
- package/lib/module/hooks/useAccount.js.map +1 -1
- package/lib/module/hooks/useAppKit.js +13 -13
- package/lib/module/hooks/useAppKit.js.map +1 -1
- package/lib/module/hooks/useAppKitLogs.js +83 -0
- package/lib/module/hooks/useAppKitLogs.js.map +1 -0
- package/lib/module/hooks/useAppKitState.js +27 -0
- package/lib/module/hooks/useAppKitState.js.map +1 -0
- package/lib/module/hooks/useProvider.js +13 -8
- package/lib/module/hooks/useProvider.js.map +1 -1
- package/lib/module/hooks/useWalletInfo.js +6 -4
- package/lib/module/hooks/useWalletInfo.js.map +1 -1
- package/lib/module/index.js +7 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/modal/w3m-modal/index.js +9 -1
- package/lib/module/modal/w3m-modal/index.js.map +1 -1
- package/lib/module/modal/w3m-router/index.js +20 -22
- package/lib/module/modal/w3m-router/index.js.map +1 -1
- package/lib/module/partials/w3m-account-wallet-features/index.js +1 -1
- package/lib/module/partials/w3m-account-wallet-features/index.js.map +1 -1
- package/lib/module/partials/w3m-all-wallets-list/components/WalletItem.js +6 -3
- package/lib/module/partials/w3m-all-wallets-list/components/WalletItem.js.map +1 -1
- package/lib/module/partials/w3m-all-wallets-list/components/WalletList.js +9 -2
- package/lib/module/partials/w3m-all-wallets-list/components/WalletList.js.map +1 -1
- package/lib/module/partials/w3m-all-wallets-list/index.js +2 -1
- package/lib/module/partials/w3m-all-wallets-list/index.js.map +1 -1
- package/lib/module/partials/w3m-all-wallets-search/index.js +4 -2
- package/lib/module/partials/w3m-all-wallets-search/index.js.map +1 -1
- package/lib/module/partials/w3m-connecting-mobile/index.js +22 -2
- package/lib/module/partials/w3m-connecting-mobile/index.js.map +1 -1
- package/lib/module/partials/w3m-connecting-qrcode/index.js +6 -2
- package/lib/module/partials/w3m-connecting-qrcode/index.js.map +1 -1
- package/lib/module/partials/w3m-connecting-web/index.js +9 -3
- package/lib/module/partials/w3m-connecting-web/index.js.map +1 -1
- package/lib/module/partials/w3m-header/index.js +4 -4
- package/lib/module/partials/w3m-header/index.js.map +1 -1
- package/lib/module/utils/SIWXUtil.js +275 -0
- package/lib/module/utils/SIWXUtil.js.map +1 -0
- package/lib/module/views/w3m-account-default-view/index.js +4 -3
- package/lib/module/views/w3m-account-default-view/index.js.map +1 -1
- package/lib/module/views/w3m-all-wallets-view/index.js +7 -4
- package/lib/module/views/w3m-all-wallets-view/index.js.map +1 -1
- package/lib/module/views/w3m-connect-view/components/all-wallet-list.js +5 -3
- package/lib/module/views/w3m-connect-view/components/all-wallet-list.js.map +1 -1
- package/lib/module/views/w3m-connect-view/index.js +6 -3
- package/lib/module/views/w3m-connect-view/index.js.map +1 -1
- package/lib/module/views/w3m-connecting-external-view/index.js +22 -2
- package/lib/module/views/w3m-connecting-external-view/index.js.map +1 -1
- package/lib/module/views/w3m-connecting-social-view/index.js +2 -1
- package/lib/module/views/w3m-connecting-social-view/index.js.map +1 -1
- package/lib/module/views/w3m-connecting-view/index.js +14 -33
- package/lib/module/views/w3m-connecting-view/index.js.map +1 -1
- package/lib/module/views/w3m-network-switch-view/index.js +2 -1
- package/lib/module/views/w3m-network-switch-view/index.js.map +1 -1
- package/lib/module/views/w3m-onramp-settings-view/components/Country.js +3 -1
- package/lib/module/views/w3m-onramp-settings-view/components/Country.js.map +1 -1
- package/lib/module/views/w3m-onramp-settings-view/index.js +2 -1
- package/lib/module/views/w3m-onramp-settings-view/index.js.map +1 -1
- package/lib/module/views/w3m-onramp-view/components/LoadingView.js +1 -1
- package/lib/module/views/w3m-onramp-view/components/LoadingView.js.map +1 -1
- package/lib/module/views/{w3m-connecting-siwe-view → w3m-siwx-sign-view}/index.js +7 -43
- package/lib/module/views/w3m-siwx-sign-view/index.js.map +1 -0
- package/lib/module/views/w3m-siwx-sign-view/styles.js.map +1 -0
- package/lib/module/views/w3m-swap-view/index.js +1 -1
- package/lib/module/views/w3m-swap-view/index.js.map +1 -1
- package/lib/module/views/w3m-what-is-a-wallet-view/index.js +1 -1
- package/lib/module/views/w3m-what-is-a-wallet-view/index.js.map +1 -1
- package/lib/typescript/AppKit.d.ts +12 -3
- package/lib/typescript/AppKit.d.ts.map +1 -1
- package/lib/typescript/AppKitContext.d.ts +1 -1
- package/lib/typescript/AppKitContext.d.ts.map +1 -1
- package/lib/typescript/connectors/WalletConnectConnector.d.ts.map +1 -1
- package/lib/typescript/hooks/useAccount.d.ts +1 -1
- package/lib/typescript/hooks/useAccount.d.ts.map +1 -1
- package/lib/typescript/hooks/useAppKit.d.ts +2 -2
- package/lib/typescript/hooks/useAppKit.d.ts.map +1 -1
- package/lib/typescript/hooks/useAppKitEvents.d.ts +75 -21
- package/lib/typescript/hooks/useAppKitEvents.d.ts.map +1 -1
- package/lib/typescript/hooks/useAppKitLogs.d.ts +57 -0
- package/lib/typescript/hooks/useAppKitLogs.d.ts.map +1 -0
- package/lib/typescript/hooks/useAppKitState.d.ts +38 -0
- package/lib/typescript/hooks/useAppKitState.d.ts.map +1 -0
- package/lib/typescript/hooks/useProvider.d.ts.map +1 -1
- package/lib/typescript/hooks/useWalletInfo.d.ts +1 -0
- package/lib/typescript/hooks/useWalletInfo.d.ts.map +1 -1
- package/lib/typescript/index.d.ts +6 -0
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/modal/w3m-modal/index.d.ts.map +1 -1
- package/lib/typescript/modal/w3m-router/index.d.ts.map +1 -1
- package/lib/typescript/partials/w3m-all-wallets-list/components/WalletItem.d.ts +4 -2
- package/lib/typescript/partials/w3m-all-wallets-list/components/WalletItem.d.ts.map +1 -1
- package/lib/typescript/partials/w3m-all-wallets-list/components/WalletList.d.ts +3 -2
- package/lib/typescript/partials/w3m-all-wallets-list/components/WalletList.d.ts.map +1 -1
- package/lib/typescript/partials/w3m-all-wallets-list/index.d.ts +1 -1
- package/lib/typescript/partials/w3m-all-wallets-list/index.d.ts.map +1 -1
- package/lib/typescript/partials/w3m-all-wallets-search/index.d.ts +1 -1
- package/lib/typescript/partials/w3m-all-wallets-search/index.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/index.d.ts.map +1 -1
- package/lib/typescript/partials/w3m-connecting-web/index.d.ts.map +1 -1
- package/lib/typescript/types.d.ts +6 -7
- package/lib/typescript/types.d.ts.map +1 -1
- package/lib/typescript/utils/SIWXUtil.d.ts +34 -0
- package/lib/typescript/utils/SIWXUtil.d.ts.map +1 -0
- package/lib/typescript/views/w3m-account-default-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-view/components/all-wallet-list.d.ts +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/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-network-switch-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-onramp-settings-view/components/Country.d.ts +2 -1
- package/lib/typescript/views/w3m-onramp-settings-view/components/Country.d.ts.map +1 -1
- package/lib/typescript/views/w3m-onramp-settings-view/index.d.ts.map +1 -1
- package/lib/typescript/views/w3m-siwx-sign-view/index.d.ts +2 -0
- package/lib/typescript/views/w3m-siwx-sign-view/index.d.ts.map +1 -0
- package/lib/typescript/views/w3m-siwx-sign-view/styles.d.ts.map +1 -0
- package/package.json +9 -9
- package/src/AppKit.ts +145 -96
- package/src/AppKitContext.tsx +19 -11
- package/src/connectors/WalletConnectConnector.ts +33 -69
- package/src/hooks/useAccount.ts +9 -4
- package/src/hooks/useAppKit.ts +19 -13
- package/src/hooks/useAppKitLogs.ts +129 -0
- package/src/hooks/useAppKitState.ts +26 -0
- package/src/hooks/useProvider.ts +11 -5
- package/src/hooks/useWalletInfo.ts +5 -2
- package/src/index.ts +14 -0
- package/src/modal/w3m-modal/index.tsx +9 -1
- package/src/modal/w3m-router/index.tsx +15 -18
- package/src/partials/w3m-account-wallet-features/index.tsx +1 -1
- package/src/partials/w3m-all-wallets-list/components/WalletItem.tsx +13 -3
- package/src/partials/w3m-all-wallets-list/components/WalletList.tsx +9 -2
- package/src/partials/w3m-all-wallets-list/index.tsx +3 -1
- package/src/partials/w3m-all-wallets-search/index.tsx +9 -3
- package/src/partials/w3m-connecting-mobile/index.tsx +24 -2
- package/src/partials/w3m-connecting-qrcode/index.tsx +8 -2
- package/src/partials/w3m-connecting-web/index.tsx +11 -3
- package/src/partials/w3m-header/index.tsx +4 -4
- package/src/types.ts +7 -8
- package/src/utils/SIWXUtil.ts +359 -0
- package/src/views/w3m-account-default-view/index.tsx +5 -3
- package/src/views/w3m-all-wallets-view/index.tsx +11 -4
- package/src/views/w3m-connect-view/components/all-wallet-list.tsx +6 -4
- package/src/views/w3m-connect-view/index.tsx +6 -3
- package/src/views/w3m-connecting-external-view/index.tsx +24 -2
- package/src/views/w3m-connecting-social-view/index.tsx +3 -1
- package/src/views/w3m-connecting-view/index.tsx +16 -33
- package/src/views/w3m-network-switch-view/index.tsx +2 -0
- package/src/views/w3m-onramp-settings-view/components/Country.tsx +3 -1
- package/src/views/w3m-onramp-settings-view/index.tsx +1 -0
- package/src/views/w3m-onramp-view/components/LoadingView.tsx +1 -1
- package/src/views/{w3m-connecting-siwe-view → w3m-siwx-sign-view}/index.tsx +7 -37
- package/src/views/w3m-swap-view/index.tsx +1 -1
- package/src/views/w3m-what-is-a-wallet-view/index.tsx +1 -1
- package/lib/commonjs/views/w3m-connecting-siwe-view/index.js.map +0 -1
- package/lib/commonjs/views/w3m-connecting-siwe-view/styles.js.map +0 -1
- package/lib/module/views/w3m-connecting-siwe-view/index.js.map +0 -1
- package/lib/module/views/w3m-connecting-siwe-view/styles.js.map +0 -1
- package/lib/typescript/views/w3m-connecting-siwe-view/index.d.ts +0 -2
- package/lib/typescript/views/w3m-connecting-siwe-view/index.d.ts.map +0 -1
- package/lib/typescript/views/w3m-connecting-siwe-view/styles.d.ts.map +0 -1
- /package/lib/commonjs/views/{w3m-connecting-siwe-view → w3m-siwx-sign-view}/styles.js +0 -0
- /package/lib/module/views/{w3m-connecting-siwe-view → w3m-siwx-sign-view}/styles.js +0 -0
- /package/lib/typescript/views/{w3m-connecting-siwe-view → w3m-siwx-sign-view}/styles.d.ts +0 -0
- /package/src/views/{w3m-connecting-siwe-view → w3m-siwx-sign-view}/styles.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WalletConnectConnector.d.ts","sourceRoot":"","sources":["../../../src/connectors/WalletConnectConnector.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,eAAe,EACf,KAAK,aAAa,EAClB,KAAK,UAAU,EACf,KAAK,QAAQ,EACb,KAAK,UAAU,EACf,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,oBAAoB,EAEzB,KAAK,oBAAoB,EAE1B,MAAM,mCAAmC,CAAC;AAG3C,UAAU,4BAA4B;IACpC,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,qBAAa,sBAAuB,SAAQ,eAAe;IACzD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA+B;gBAE1C,MAAM,EAAE,4BAA4B;IAKjC,IAAI,CAAC,GAAG,EAAE,oBAAoB;IAa9B,cAAc,IAAI,OAAO,CAAC,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"WalletConnectConnector.d.ts","sourceRoot":"","sources":["../../../src/connectors/WalletConnectConnector.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,eAAe,EACf,KAAK,aAAa,EAClB,KAAK,UAAU,EACf,KAAK,QAAQ,EACb,KAAK,UAAU,EACf,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,oBAAoB,EAEzB,KAAK,oBAAoB,EAE1B,MAAM,mCAAmC,CAAC;AAG3C,UAAU,4BAA4B;IACpC,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,qBAAa,sBAAuB,SAAQ,eAAe;IACzD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA+B;gBAE1C,MAAM,EAAE,4BAA4B;IAKjC,IAAI,CAAC,GAAG,EAAE,oBAAoB;IAa9B,cAAc,IAAI,OAAO,CAAC,OAAO,CAAC;YAwCnC,oBAAoB;IAkBnB,OAAO,CAAC,IAAI,EAAE,cAAc;IAmElC,WAAW,CAAC,SAAS,CAAC,EAAE,cAAc,GAAG,QAAQ;IAyBjD,aAAa,IAAI,UAAU;IAQ3B,aAAa,IAAI,oBAAoB,GAAG,SAAS;IAIjD,aAAa,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC;IAUpD,aAAa,IAAI,UAAU,GAAG,SAAS;IAIvC,UAAU,CAAC,SAAS,EAAE,cAAc,GAAG,aAAa,GAAG,SAAS;CAgB1E"}
|
|
@@ -28,7 +28,7 @@ export declare function useAccount(): {
|
|
|
28
28
|
readonly url: string;
|
|
29
29
|
};
|
|
30
30
|
} | undefined;
|
|
31
|
-
readonly chainNamespace: "eip155" | "solana" | "
|
|
31
|
+
readonly chainNamespace: "eip155" | "solana" | "bip122";
|
|
32
32
|
readonly caipNetworkId: `${string}:${string}`;
|
|
33
33
|
readonly testnet?: boolean | undefined;
|
|
34
34
|
readonly deprecatedCaipNetworkId?: `${string}:${string}` | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAccount.d.ts","sourceRoot":"","sources":["../../../src/hooks/useAccount.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useAccount.d.ts","sourceRoot":"","sources":["../../../src/hooks/useAccount.ts"],"names":[],"mappings":"AAMA,wBAAgB,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyBzB"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import type { ChainNamespace } from '@reown/appkit-common-react-native';
|
|
1
2
|
import type { AppKit } from '../AppKit';
|
|
2
3
|
interface UseAppKitReturn {
|
|
3
4
|
open: AppKit['open'];
|
|
4
5
|
close: AppKit['close'];
|
|
5
|
-
disconnect: (namespace?:
|
|
6
|
+
disconnect: (namespace?: ChainNamespace) => void;
|
|
6
7
|
switchNetwork: AppKit['switchNetwork'];
|
|
7
|
-
isOpen: boolean;
|
|
8
8
|
}
|
|
9
9
|
export declare const useAppKit: () => UseAppKitReturn;
|
|
10
10
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAppKit.d.ts","sourceRoot":"","sources":["../../../src/hooks/useAppKit.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useAppKit.d.ts","sourceRoot":"","sources":["../../../src/hooks/useAppKit.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AAExE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAGxC,UAAU,eAAe;IACvB,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;IACvB,UAAU,EAAE,CAAC,SAAS,CAAC,EAAE,cAAc,KAAK,IAAI,CAAC;IACjD,aAAa,EAAE,MAAM,CAAC,eAAe,CAAC,CAAC;CACxC;AAED,eAAO,MAAM,SAAS,QAAO,eA2B5B,CAAC"}
|
|
@@ -13,6 +13,39 @@ export declare function useAppKitEvents(callback?: (newEvent: EventsControllerSt
|
|
|
13
13
|
readonly properties: {
|
|
14
14
|
readonly connected: boolean;
|
|
15
15
|
};
|
|
16
|
+
} | {
|
|
17
|
+
readonly type: "track";
|
|
18
|
+
readonly event: "INITIALIZE";
|
|
19
|
+
readonly properties: {
|
|
20
|
+
readonly showWallets?: boolean | undefined;
|
|
21
|
+
readonly themeMode?: import("@reown/appkit-common-react-native").ThemeMode | undefined;
|
|
22
|
+
readonly themeVariables?: {
|
|
23
|
+
readonly accent?: string | undefined;
|
|
24
|
+
} | undefined;
|
|
25
|
+
readonly networks: readonly `${string}:${string}`[];
|
|
26
|
+
readonly defaultNetwork?: `${string}:${string}` | undefined;
|
|
27
|
+
readonly metadata?: {
|
|
28
|
+
readonly name: string;
|
|
29
|
+
readonly description: string;
|
|
30
|
+
readonly url: string;
|
|
31
|
+
readonly icons: readonly string[];
|
|
32
|
+
readonly redirect?: {
|
|
33
|
+
readonly native?: string | undefined;
|
|
34
|
+
readonly universal?: string | undefined;
|
|
35
|
+
readonly linkMode?: boolean | undefined;
|
|
36
|
+
} | undefined;
|
|
37
|
+
} | undefined;
|
|
38
|
+
readonly enableAnalytics?: boolean | undefined;
|
|
39
|
+
readonly features?: {
|
|
40
|
+
readonly swaps?: boolean | undefined;
|
|
41
|
+
readonly onramp?: boolean | undefined;
|
|
42
|
+
readonly showWallets?: boolean | undefined;
|
|
43
|
+
readonly socials?: false | readonly import("@reown/appkit-common-react-native").SocialProvider[] | undefined;
|
|
44
|
+
} | undefined;
|
|
45
|
+
readonly adapters?: readonly string[] | undefined;
|
|
46
|
+
readonly extraConnectors?: readonly string[] | undefined;
|
|
47
|
+
readonly siwx?: boolean | undefined;
|
|
48
|
+
};
|
|
16
49
|
} | {
|
|
17
50
|
readonly type: "track";
|
|
18
51
|
readonly event: "MODAL_CLOSE";
|
|
@@ -29,7 +62,7 @@ export declare function useAppKitEvents(callback?: (newEvent: EventsControllerSt
|
|
|
29
62
|
readonly type: "track";
|
|
30
63
|
readonly event: "SWITCH_NETWORK";
|
|
31
64
|
readonly properties: {
|
|
32
|
-
readonly network: string
|
|
65
|
+
readonly network: `${string}:${string}`;
|
|
33
66
|
};
|
|
34
67
|
} | {
|
|
35
68
|
readonly type: "track";
|
|
@@ -37,15 +70,21 @@ export declare function useAppKitEvents(callback?: (newEvent: EventsControllerSt
|
|
|
37
70
|
readonly properties: {
|
|
38
71
|
readonly name: string;
|
|
39
72
|
readonly platform?: import("@reown/appkit-common-react-native").Platform | undefined;
|
|
40
|
-
readonly
|
|
73
|
+
readonly explorerId?: string | undefined;
|
|
74
|
+
readonly walletRank?: number | undefined;
|
|
75
|
+
readonly displayIndex?: number | undefined;
|
|
76
|
+
readonly view?: "AllWallets" | "Connect" | undefined;
|
|
41
77
|
};
|
|
42
78
|
} | {
|
|
43
79
|
readonly type: "track";
|
|
44
80
|
readonly event: "CONNECT_SUCCESS";
|
|
81
|
+
readonly address?: string | undefined;
|
|
45
82
|
readonly properties: {
|
|
46
83
|
readonly name: string;
|
|
47
|
-
readonly
|
|
48
|
-
readonly
|
|
84
|
+
readonly caipNetworkId?: `${string}:${string}` | undefined;
|
|
85
|
+
readonly method?: import("@reown/appkit-common-react-native").Platform | undefined;
|
|
86
|
+
readonly explorerId?: string | undefined;
|
|
87
|
+
readonly reconnect?: boolean | undefined;
|
|
49
88
|
};
|
|
50
89
|
} | {
|
|
51
90
|
readonly type: "track";
|
|
@@ -56,6 +95,9 @@ export declare function useAppKitEvents(callback?: (newEvent: EventsControllerSt
|
|
|
56
95
|
} | {
|
|
57
96
|
readonly type: "track";
|
|
58
97
|
readonly event: "DISCONNECT_SUCCESS";
|
|
98
|
+
readonly properties: {
|
|
99
|
+
readonly namespace?: import("@reown/appkit-common-react-native").ChainNamespace | undefined;
|
|
100
|
+
};
|
|
59
101
|
} | {
|
|
60
102
|
readonly type: "track";
|
|
61
103
|
readonly event: "DISCONNECT_ERROR";
|
|
@@ -67,7 +109,17 @@ export declare function useAppKitEvents(callback?: (newEvent: EventsControllerSt
|
|
|
67
109
|
readonly event: "CLICK_NETWORK_HELP";
|
|
68
110
|
} | {
|
|
69
111
|
readonly type: "track";
|
|
70
|
-
readonly event: "
|
|
112
|
+
readonly event: "CLICK_GET_WALLET_HELP";
|
|
113
|
+
} | {
|
|
114
|
+
readonly type: "track";
|
|
115
|
+
readonly event: "GET_WALLET";
|
|
116
|
+
readonly properties: {
|
|
117
|
+
readonly name: string;
|
|
118
|
+
readonly explorerId?: string | undefined;
|
|
119
|
+
readonly link?: string | undefined;
|
|
120
|
+
readonly linkType?: "appstore" | "playstore" | undefined;
|
|
121
|
+
readonly walletRank?: number | undefined;
|
|
122
|
+
};
|
|
71
123
|
} | {
|
|
72
124
|
readonly type: "track";
|
|
73
125
|
readonly event: "EMAIL_LOGIN_SELECTED";
|
|
@@ -88,31 +140,33 @@ export declare function useAppKitEvents(callback?: (newEvent: EventsControllerSt
|
|
|
88
140
|
readonly event: "EMAIL_UPGRADE_FROM_MODAL";
|
|
89
141
|
} | {
|
|
90
142
|
readonly type: "track";
|
|
91
|
-
readonly
|
|
143
|
+
readonly address?: string | undefined;
|
|
144
|
+
readonly event: "CLICK_SIGN_SIWX_MESSAGE";
|
|
92
145
|
readonly properties: {
|
|
93
|
-
readonly network
|
|
146
|
+
readonly network?: `${string}:${string}` | undefined;
|
|
94
147
|
readonly isSmartAccount: boolean;
|
|
95
148
|
};
|
|
96
149
|
} | {
|
|
97
150
|
readonly type: "track";
|
|
98
|
-
readonly event: "
|
|
151
|
+
readonly event: "CLICK_CANCEL_SIWX";
|
|
99
152
|
readonly properties: {
|
|
100
|
-
readonly network
|
|
153
|
+
readonly network?: `${string}:${string}` | undefined;
|
|
101
154
|
readonly isSmartAccount: boolean;
|
|
102
155
|
};
|
|
103
156
|
} | {
|
|
104
157
|
readonly type: "track";
|
|
105
|
-
readonly event: "
|
|
158
|
+
readonly event: "SIWX_AUTH_SUCCESS";
|
|
106
159
|
readonly properties: {
|
|
107
|
-
readonly network
|
|
160
|
+
readonly network?: `${string}:${string}` | undefined;
|
|
108
161
|
readonly isSmartAccount: boolean;
|
|
109
162
|
};
|
|
110
163
|
} | {
|
|
111
164
|
readonly type: "track";
|
|
112
|
-
readonly event: "
|
|
165
|
+
readonly event: "SIWX_AUTH_ERROR";
|
|
113
166
|
readonly properties: {
|
|
114
|
-
readonly network
|
|
167
|
+
readonly network?: `${string}:${string}` | undefined;
|
|
115
168
|
readonly isSmartAccount: boolean;
|
|
169
|
+
readonly message?: string | undefined;
|
|
116
170
|
};
|
|
117
171
|
} | {
|
|
118
172
|
readonly type: "track";
|
|
@@ -143,21 +197,21 @@ export declare function useAppKitEvents(callback?: (newEvent: EventsControllerSt
|
|
|
143
197
|
readonly event: "OPEN_SEND";
|
|
144
198
|
readonly properties: {
|
|
145
199
|
readonly isSmartAccount: boolean;
|
|
146
|
-
readonly network
|
|
200
|
+
readonly network?: `${string}:${string}` | undefined;
|
|
147
201
|
};
|
|
148
202
|
} | {
|
|
149
203
|
readonly type: "track";
|
|
150
204
|
readonly event: "OPEN_SWAP";
|
|
151
205
|
readonly properties: {
|
|
152
206
|
readonly isSmartAccount: boolean;
|
|
153
|
-
readonly network
|
|
207
|
+
readonly network?: `${string}:${string}` | undefined;
|
|
154
208
|
};
|
|
155
209
|
} | {
|
|
156
210
|
readonly type: "track";
|
|
157
211
|
readonly event: "INITIATE_SWAP";
|
|
158
212
|
readonly properties: {
|
|
159
213
|
readonly isSmartAccount: boolean;
|
|
160
|
-
readonly network
|
|
214
|
+
readonly network?: `${string}:${string}` | undefined;
|
|
161
215
|
readonly swapFromToken: string;
|
|
162
216
|
readonly swapToToken: string;
|
|
163
217
|
readonly swapFromAmount: string;
|
|
@@ -168,7 +222,7 @@ export declare function useAppKitEvents(callback?: (newEvent: EventsControllerSt
|
|
|
168
222
|
readonly event: "SWAP_SUCCESS";
|
|
169
223
|
readonly properties: {
|
|
170
224
|
readonly isSmartAccount: boolean;
|
|
171
|
-
readonly network
|
|
225
|
+
readonly network?: `${string}:${string}` | undefined;
|
|
172
226
|
readonly swapFromToken: string;
|
|
173
227
|
readonly swapToToken: string;
|
|
174
228
|
readonly swapFromAmount: string;
|
|
@@ -179,7 +233,7 @@ export declare function useAppKitEvents(callback?: (newEvent: EventsControllerSt
|
|
|
179
233
|
readonly event: "SWAP_ERROR";
|
|
180
234
|
readonly properties: {
|
|
181
235
|
readonly isSmartAccount: boolean;
|
|
182
|
-
readonly network
|
|
236
|
+
readonly network?: `${string}:${string}` | undefined;
|
|
183
237
|
readonly swapFromToken: string;
|
|
184
238
|
readonly swapToToken: string;
|
|
185
239
|
readonly swapFromAmount: string;
|
|
@@ -191,7 +245,7 @@ export declare function useAppKitEvents(callback?: (newEvent: EventsControllerSt
|
|
|
191
245
|
readonly event: "SEND_INITIATED";
|
|
192
246
|
readonly properties: {
|
|
193
247
|
readonly isSmartAccount: boolean;
|
|
194
|
-
readonly network
|
|
248
|
+
readonly network?: `${string}:${string}` | undefined;
|
|
195
249
|
readonly token: string;
|
|
196
250
|
readonly amount: number;
|
|
197
251
|
};
|
|
@@ -200,7 +254,7 @@ export declare function useAppKitEvents(callback?: (newEvent: EventsControllerSt
|
|
|
200
254
|
readonly event: "SEND_SUCCESS";
|
|
201
255
|
readonly properties: {
|
|
202
256
|
readonly isSmartAccount: boolean;
|
|
203
|
-
readonly network
|
|
257
|
+
readonly network?: `${string}:${string}` | undefined;
|
|
204
258
|
readonly token: string;
|
|
205
259
|
readonly amount: number;
|
|
206
260
|
};
|
|
@@ -209,7 +263,7 @@ export declare function useAppKitEvents(callback?: (newEvent: EventsControllerSt
|
|
|
209
263
|
readonly event: "SEND_ERROR";
|
|
210
264
|
readonly properties: {
|
|
211
265
|
readonly isSmartAccount: boolean;
|
|
212
|
-
readonly network
|
|
266
|
+
readonly network?: `${string}:${string}` | undefined;
|
|
213
267
|
readonly token: string;
|
|
214
268
|
readonly amount: number;
|
|
215
269
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAppKitEvents.d.ts","sourceRoot":"","sources":["../../../src/hooks/useAppKitEvents.ts"],"names":[],"mappings":"AAEA,OAAO,EAAoB,KAAK,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAC/F,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAGnE,wBAAgB,eAAe,CAAC,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,qBAAqB,KAAK,IAAI
|
|
1
|
+
{"version":3,"file":"useAppKitEvents.d.ts","sourceRoot":"","sources":["../../../src/hooks/useAppKitEvents.ts"],"names":[],"mappings":"AAEA,OAAO,EAAoB,KAAK,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAC/F,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAGnE,wBAAgB,eAAe,CAAC,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,qBAAqB,KAAK,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAenF;AAED,wBAAgB,0BAA0B,CACxC,KAAK,EAAE,SAAS,EAChB,QAAQ,EAAE,CAAC,QAAQ,EAAE,qBAAqB,KAAK,IAAI,QAWpD"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { type LogEntry, type LogLevel } from '@reown/appkit-core-react-native';
|
|
2
|
+
export interface UseAppKitLogsReturn {
|
|
3
|
+
/**
|
|
4
|
+
* All logs from AppKit
|
|
5
|
+
*/
|
|
6
|
+
logs: LogEntry[];
|
|
7
|
+
/**
|
|
8
|
+
* Get logs filtered by level
|
|
9
|
+
*/
|
|
10
|
+
getLogsByLevel: (level: LogLevel) => LogEntry[];
|
|
11
|
+
/**
|
|
12
|
+
* Get recent logs (default: 100)
|
|
13
|
+
*/
|
|
14
|
+
getRecentLogs: (count?: number) => LogEntry[];
|
|
15
|
+
/**
|
|
16
|
+
* Export all logs as JSON string
|
|
17
|
+
*/
|
|
18
|
+
exportLogs: () => string;
|
|
19
|
+
/**
|
|
20
|
+
* Get logging statistics by level
|
|
21
|
+
*/
|
|
22
|
+
getLogsStats: () => Record<LogLevel, number>;
|
|
23
|
+
/**
|
|
24
|
+
* Clear all logs
|
|
25
|
+
*/
|
|
26
|
+
clearLogs: () => void;
|
|
27
|
+
/**
|
|
28
|
+
* Convenience getters for different log levels (regular arrays, safe for console.log)
|
|
29
|
+
*/
|
|
30
|
+
errorLogs: LogEntry[];
|
|
31
|
+
warningLogs: LogEntry[];
|
|
32
|
+
infoLogs: LogEntry[];
|
|
33
|
+
debugLogs: LogEntry[];
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* React hook for accessing AppKit logs
|
|
37
|
+
*
|
|
38
|
+
* This hook provides reactive access to AppKit's internal logging system.
|
|
39
|
+
* It automatically updates when new logs are added or when logs are cleaned up.
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* ```typescript
|
|
43
|
+
* function MyComponent() {
|
|
44
|
+
* const { logs, errorLogs, exportLogs, clearLogs } = useAppKitLogs();
|
|
45
|
+
*
|
|
46
|
+
* return (
|
|
47
|
+
* <View>
|
|
48
|
+
* <Text>Total logs: {logs.length}</Text>
|
|
49
|
+
* <Text>Error logs: {errorLogs.length}</Text>
|
|
50
|
+
* <Button onPress={clearLogs} title="Clear Logs" />
|
|
51
|
+
* </View>
|
|
52
|
+
* );
|
|
53
|
+
* }
|
|
54
|
+
* ```
|
|
55
|
+
*/
|
|
56
|
+
export declare const useAppKitLogs: () => UseAppKitLogsReturn;
|
|
57
|
+
//# sourceMappingURL=useAppKitLogs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAppKitLogs.d.ts","sourceRoot":"","sources":["../../../src/hooks/useAppKitLogs.ts"],"names":[],"mappings":"AAEA,OAAO,EAAiB,KAAK,QAAQ,EAAE,KAAK,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAG9F,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,IAAI,EAAE,QAAQ,EAAE,CAAC;IAEjB;;OAEG;IACH,cAAc,EAAE,CAAC,KAAK,EAAE,QAAQ,KAAK,QAAQ,EAAE,CAAC;IAEhD;;OAEG;IACH,aAAa,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,KAAK,QAAQ,EAAE,CAAC;IAE9C;;OAEG;IACH,UAAU,EAAE,MAAM,MAAM,CAAC;IAEzB;;OAEG;IACH,YAAY,EAAE,MAAM,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;IAE7C;;OAEG;IACH,SAAS,EAAE,MAAM,IAAI,CAAC;IAEtB;;OAEG;IACH,SAAS,EAAE,QAAQ,EAAE,CAAC;IACtB,WAAW,EAAE,QAAQ,EAAE,CAAC;IACxB,QAAQ,EAAE,QAAQ,EAAE,CAAC;IACrB,SAAS,EAAE,QAAQ,EAAE,CAAC;CACvB;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,aAAa,QAAO,mBA8DhC,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export declare function useAppKitState(): {
|
|
2
|
+
isOpen: boolean;
|
|
3
|
+
isLoading: boolean;
|
|
4
|
+
isConnected: boolean;
|
|
5
|
+
chain: {
|
|
6
|
+
readonly id: string | number;
|
|
7
|
+
readonly name: string;
|
|
8
|
+
readonly nativeCurrency: {
|
|
9
|
+
readonly name: string;
|
|
10
|
+
readonly symbol: string;
|
|
11
|
+
readonly decimals: number;
|
|
12
|
+
};
|
|
13
|
+
readonly rpcUrls: {
|
|
14
|
+
readonly [x: string]: {
|
|
15
|
+
readonly http: readonly string[];
|
|
16
|
+
} | undefined;
|
|
17
|
+
readonly default: {
|
|
18
|
+
readonly http: readonly string[];
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
readonly blockExplorers?: {
|
|
22
|
+
readonly [x: string]: {
|
|
23
|
+
readonly name: string;
|
|
24
|
+
readonly url: string;
|
|
25
|
+
} | undefined;
|
|
26
|
+
readonly default: {
|
|
27
|
+
readonly name: string;
|
|
28
|
+
readonly url: string;
|
|
29
|
+
};
|
|
30
|
+
} | undefined;
|
|
31
|
+
readonly chainNamespace: "eip155" | "solana" | "bip122";
|
|
32
|
+
readonly caipNetworkId: `${string}:${string}`;
|
|
33
|
+
readonly testnet?: boolean | undefined;
|
|
34
|
+
readonly deprecatedCaipNetworkId?: `${string}:${string}` | undefined;
|
|
35
|
+
readonly imageUrl?: string | undefined;
|
|
36
|
+
} | undefined;
|
|
37
|
+
};
|
|
38
|
+
//# sourceMappingURL=useAppKitState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAppKitState.d.ts","sourceRoot":"","sources":["../../../src/hooks/useAppKitState.ts"],"names":[],"mappings":"AAMA,wBAAgB,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmB7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useProvider.d.ts","sourceRoot":"","sources":["../../../src/hooks/useProvider.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useProvider.d.ts","sourceRoot":"","sources":["../../../src/hooks/useProvider.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AAElF;;GAEG;AACH,UAAU,cAAc;IACtB,8CAA8C;IAC9C,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,oDAAoD;IACpD,YAAY,CAAC,EAAE,cAAc,CAAC;CAC/B;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,WAAW,IAAI,cAAc,CAa5C"}
|
|
@@ -11,6 +11,7 @@ export declare function useWalletInfo(): {
|
|
|
11
11
|
readonly universal?: string | undefined;
|
|
12
12
|
readonly linkMode?: boolean | undefined;
|
|
13
13
|
} | undefined;
|
|
14
|
+
readonly type?: "walletconnect" | "external" | "unknown" | undefined;
|
|
14
15
|
} | undefined;
|
|
15
16
|
};
|
|
16
17
|
//# sourceMappingURL=useWalletInfo.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useWalletInfo.d.ts","sourceRoot":"","sources":["../../../src/hooks/useWalletInfo.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useWalletInfo.d.ts","sourceRoot":"","sources":["../../../src/hooks/useWalletInfo.ts"],"names":[],"mappings":"AAKA,wBAAgB,aAAa;;;;;;;;;;;;;;;EAO5B"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import '@walletconnect/react-native-compat';
|
|
1
2
|
/********** Components **********/
|
|
2
3
|
export { AccountButton as AccountButton, type AccountButtonProps } from './modal/w3m-account-button';
|
|
3
4
|
export { AppKitButton, type AppKitButtonProps } from './modal/w3m-button';
|
|
@@ -7,6 +8,7 @@ export { AppKit } from './modal/w3m-modal';
|
|
|
7
8
|
/********** Types **********/
|
|
8
9
|
export type * from '@reown/appkit-core-react-native';
|
|
9
10
|
export type { AppKitNetwork, Storage } from '@reown/appkit-common-react-native';
|
|
11
|
+
export type { SIWXConfig, SIWXMessage, SIWXSession, SIWXStorage, SIWXVerifier } from '@reown/appkit-common-react-native';
|
|
10
12
|
export type { AppKitConfig } from './types';
|
|
11
13
|
/****** Hooks *******/
|
|
12
14
|
export { useAppKit } from './hooks/useAppKit';
|
|
@@ -14,9 +16,13 @@ export { useProvider } from './hooks/useProvider';
|
|
|
14
16
|
export { useAccount } from './hooks/useAccount';
|
|
15
17
|
export { useWalletInfo } from './hooks/useWalletInfo';
|
|
16
18
|
export { useAppKitEvents, useAppKitEventSubscription } from './hooks/useAppKitEvents';
|
|
19
|
+
export { useAppKitState } from './hooks/useAppKitState';
|
|
20
|
+
export { useAppKitLogs, type UseAppKitLogsReturn } from './hooks/useAppKitLogs';
|
|
17
21
|
/********** Networks **********/
|
|
18
22
|
export { solana, solanaDevnet, solanaTestnet } from '@reown/appkit-common-react-native';
|
|
19
23
|
export { bitcoin, bitcoinTestnet } from '@reown/appkit-common-react-native';
|
|
24
|
+
/********** SIWX **********/
|
|
25
|
+
export { ReownAuthentication } from '@reown/appkit-core-react-native';
|
|
20
26
|
/********** Main **********/
|
|
21
27
|
export { createAppKit } from './AppKit';
|
|
22
28
|
export { AppKitProvider } from './AppKitContext';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,kCAAkC;AAClC,OAAO,EACL,aAAa,IAAI,aAAa,EAC9B,KAAK,kBAAkB,EACxB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,YAAY,EAAE,KAAK,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAC1E,OAAO,EACL,aAAa,IAAI,aAAa,EAC9B,KAAK,kBAAkB,IAAI,kBAAkB,EAC9C,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,aAAa,IAAI,aAAa,EAC9B,KAAK,kBAAkB,IAAI,kBAAkB,EAC9C,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAE3C,6BAA6B;AAC7B,mBAAmB,iCAAiC,CAAC;AACrD,YAAY,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,mCAAmC,CAAC;AAChF,YAAY,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C,sBAAsB;AACtB,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,oCAAoC,CAAC;AAE5C,kCAAkC;AAClC,OAAO,EACL,aAAa,IAAI,aAAa,EAC9B,KAAK,kBAAkB,EACxB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,YAAY,EAAE,KAAK,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAC1E,OAAO,EACL,aAAa,IAAI,aAAa,EAC9B,KAAK,kBAAkB,IAAI,kBAAkB,EAC9C,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,aAAa,IAAI,aAAa,EAC9B,KAAK,kBAAkB,IAAI,kBAAkB,EAC9C,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAE3C,6BAA6B;AAC7B,mBAAmB,iCAAiC,CAAC;AACrD,YAAY,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,mCAAmC,CAAC;AAChF,YAAY,EACV,UAAU,EACV,WAAW,EACX,WAAW,EACX,WAAW,EACX,YAAY,EACb,MAAM,mCAAmC,CAAC;AAC3C,YAAY,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C,sBAAsB;AACtB,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAC;AACtF,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,KAAK,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAEhF,gCAAgC;AAChC,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AACxF,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AAE5E,4BAA4B;AAC5B,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAEtE,4BAA4B;AAC5B,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modal/w3m-modal/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modal/w3m-modal/index.tsx"],"names":[],"mappings":"AAoBA,wBAAgB,MAAM,4CAqDrB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modal/w3m-router/index.tsx"],"names":[],"mappings":"AAuCA,wBAAgB,YAAY,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modal/w3m-router/index.tsx"],"names":[],"mappings":"AAuCA,wBAAgB,YAAY,4CAmF3B"}
|
|
@@ -3,11 +3,13 @@ import type { WcWallet } from '@reown/appkit-common-react-native';
|
|
|
3
3
|
import type { StyleProp, ViewStyle } from 'react-native';
|
|
4
4
|
interface WalletItemProps {
|
|
5
5
|
item: WcWallet;
|
|
6
|
+
displayIndex: number;
|
|
6
7
|
imageHeaders?: Record<string, string>;
|
|
7
|
-
onItemPress: (wallet: WcWallet) => void;
|
|
8
|
+
onItemPress: (wallet: WcWallet, displayIndex: number) => void;
|
|
8
9
|
style?: StyleProp<ViewStyle>;
|
|
10
|
+
testID?: string;
|
|
9
11
|
}
|
|
10
|
-
export declare function WalletItem({ item, imageHeaders, onItemPress, style }: WalletItemProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare function WalletItem({ item, displayIndex, imageHeaders, onItemPress, style, testID }: WalletItemProps): import("react/jsx-runtime").JSX.Element;
|
|
11
13
|
export declare const MemoizedWalletItem: import("react").MemoExoticComponent<typeof WalletItem>;
|
|
12
14
|
export {};
|
|
13
15
|
//# sourceMappingURL=WalletItem.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WalletItem.d.ts","sourceRoot":"","sources":["../../../../../src/partials/w3m-all-wallets-list/components/WalletItem.tsx"],"names":[],"mappings":";AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAGzD,UAAU,eAAe;IACvB,IAAI,EAAE,QAAQ,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACtC,WAAW,EAAE,CAAC,MAAM,EAAE,QAAQ,KAAK,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"WalletItem.d.ts","sourceRoot":"","sources":["../../../../../src/partials/w3m-all-wallets-list/components/WalletItem.tsx"],"names":[],"mappings":";AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAGzD,UAAU,eAAe;IACvB,IAAI,EAAE,QAAQ,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACtC,WAAW,EAAE,CAAC,MAAM,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9D,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,wBAAgB,UAAU,CAAC,EACzB,IAAI,EACJ,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,KAAK,EACL,MAAM,EACP,EAAE,eAAe,2CAoBjB;AAED,eAAO,MAAM,kBAAkB,wDAE7B,CAAC"}
|
|
@@ -2,13 +2,14 @@ import { type StyleProp, type ViewStyle } from 'react-native';
|
|
|
2
2
|
import type { WcWallet } from '@reown/appkit-common-react-native';
|
|
3
3
|
interface Props {
|
|
4
4
|
data: WcWallet[];
|
|
5
|
-
onItemPress: (wallet: WcWallet) => void;
|
|
5
|
+
onItemPress: (wallet: WcWallet, displayIndex: number) => void;
|
|
6
6
|
onEndReached?: () => void;
|
|
7
7
|
onEndReachedThreshold?: number;
|
|
8
8
|
isLoading?: boolean;
|
|
9
9
|
loadingItems?: number;
|
|
10
10
|
style?: StyleProp<ViewStyle>;
|
|
11
|
+
testIDKey?: string;
|
|
11
12
|
}
|
|
12
|
-
export declare function WalletList({ data, onItemPress, onEndReached, onEndReachedThreshold, isLoading, loadingItems, style }: Props): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare function WalletList({ data, onItemPress, onEndReached, onEndReachedThreshold, isLoading, loadingItems, testIDKey, style }: Props): import("react/jsx-runtime").JSX.Element;
|
|
13
14
|
export {};
|
|
14
15
|
//# sourceMappingURL=WalletList.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WalletList.d.ts","sourceRoot":"","sources":["../../../../../src/partials/w3m-all-wallets-list/components/WalletList.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAwB,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAUpF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAC;AAQlE,UAAU,KAAK;IACb,IAAI,EAAE,QAAQ,EAAE,CAAC;IACjB,WAAW,EAAE,CAAC,MAAM,EAAE,QAAQ,KAAK,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"WalletList.d.ts","sourceRoot":"","sources":["../../../../../src/partials/w3m-all-wallets-list/components/WalletList.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAwB,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAUpF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAC;AAQlE,UAAU,KAAK;IACb,IAAI,EAAE,QAAQ,EAAE,CAAC;IACjB,WAAW,EAAE,CAAC,MAAM,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9D,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,UAAU,CAAC,EACzB,IAAI,EACJ,WAAW,EACX,YAAY,EACZ,qBAAqB,EACrB,SAAiB,EACjB,YAAiB,EACjB,SAAS,EACT,KAAK,EACN,EAAE,KAAK,2CA8CP"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type WcWallet } from '@reown/appkit-common-react-native';
|
|
2
2
|
interface AllWalletsListProps {
|
|
3
|
-
onItemPress: (wallet: WcWallet) => void;
|
|
3
|
+
onItemPress: (wallet: WcWallet, displayIndex: number) => void;
|
|
4
4
|
headerHeight?: number;
|
|
5
5
|
}
|
|
6
6
|
export declare function AllWalletsList({ onItemPress }: AllWalletsListProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/partials/w3m-all-wallets-list/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/partials/w3m-all-wallets-list/index.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,mCAAmC,CAAC;AAOlE,UAAU,mBAAmB;IAC3B,WAAW,EAAE,CAAC,MAAM,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9D,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,wBAAgB,cAAc,CAAC,EAAE,WAAW,EAAE,EAAE,mBAAmB,2CAqGlE"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type WcWallet } from '@reown/appkit-common-react-native';
|
|
2
2
|
export interface AllWalletsSearchProps {
|
|
3
|
-
onItemPress: (wallet: WcWallet) => void;
|
|
3
|
+
onItemPress: (wallet: WcWallet, displayIndex: number) => void;
|
|
4
4
|
searchQuery?: string;
|
|
5
5
|
}
|
|
6
6
|
export declare function AllWalletsSearch({ searchQuery, onItemPress }: AllWalletsSearchProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/partials/w3m-all-wallets-search/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/partials/w3m-all-wallets-search/index.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,mCAAmC,CAAC;AAQlE,MAAM,WAAW,qBAAqB;IACpC,WAAW,EAAE,CAAC,MAAM,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9D,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,wBAAgB,gBAAgB,CAAC,EAAE,WAAW,EAAE,WAAW,EAAE,EAAE,qBAAqB,2CAkEnF"}
|
|
@@ -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":"AA8BA,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,2CAgJ1E"}
|
|
@@ -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":"AAsBA,wBAAgB,gBAAgB,4CA+D/B"}
|
|
@@ -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":"AA2BA,UAAU,kBAAkB;IAC1B,SAAS,EAAE,CAAC,GAAG,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC;AAED,wBAAgB,aAAa,CAAC,EAAE,SAAS,EAAE,EAAE,kBAAkB,2CAuF9D"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type OptionsControllerState } from '@reown/appkit-core-react-native';
|
|
2
|
-
import { type Features, type UniversalProviderConfigOverride, type WalletConnector, type BlockchainAdapter, type Metadata, type Network, type Storage, type
|
|
2
|
+
import { type Features, type UniversalProviderConfigOverride, type WalletConnector, type BlockchainAdapter, type Metadata, type Network, type Storage, type ThemeMode, type ThemeVariables, type Tokens, type SIWXConfig } from '@reown/appkit-common-react-native';
|
|
3
3
|
/**
|
|
4
4
|
* Configuration interface for initializing the AppKit instance.
|
|
5
5
|
* This interface defines all the required and optional parameters needed to set up
|
|
@@ -103,6 +103,7 @@ export interface AppKitConfig {
|
|
|
103
103
|
/**
|
|
104
104
|
* Optional flag to enable debug mode.
|
|
105
105
|
* When enabled, additional logging and debugging information will be output.
|
|
106
|
+
* Only enabled in development mode.
|
|
106
107
|
*
|
|
107
108
|
* @see {@link https://docs.reown.com/appkit/react-native/core/options#debug | Debug Documentation}
|
|
108
109
|
* @default false
|
|
@@ -125,13 +126,11 @@ export interface AppKitConfig {
|
|
|
125
126
|
*/
|
|
126
127
|
themeVariables?: ThemeVariables;
|
|
127
128
|
/**
|
|
128
|
-
*
|
|
129
|
-
*
|
|
130
|
-
*
|
|
131
|
-
*
|
|
132
|
-
* @see {@link https://docs.reown.com/appkit/react-native/core/siwe | SIWE Documentation}
|
|
129
|
+
* @experimental - This feature is not production ready.
|
|
130
|
+
* Enable Sign In With X (SIWX) feature.
|
|
131
|
+
* @default undefined
|
|
133
132
|
*/
|
|
134
|
-
|
|
133
|
+
siwx?: SIWXConfig;
|
|
135
134
|
/**
|
|
136
135
|
* Optional default network to use when no specific network is selected.
|
|
137
136
|
* This network will be used as the initial active network.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AAC9E,OAAO,EACL,KAAK,QAAQ,EACb,KAAK,+BAA+B,EACpC,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,QAAQ,EACb,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AAC9E,OAAO,EACL,KAAK,QAAQ,EACb,KAAK,+BAA+B,EACpC,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,QAAQ,EACb,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,SAAS,EACd,KAAK,cAAc,EACnB,KAAK,MAAM,EACX,KAAK,UAAU,EAChB,MAAM,mCAAmC,CAAC;AAE3C;;;;;;GAMG;AACH,MAAM,WAAW,YAAY;IAC3B;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;;;;OAKG;IACH,QAAQ,EAAE,QAAQ,CAAC;IAEnB;;;;;;OAMG;IACH,QAAQ,EAAE,iBAAiB,EAAE,CAAC;IAE9B;;;;;OAKG;IACH,QAAQ,EAAE,OAAO,EAAE,CAAC;IAEpB;;;OAGG;IACH,OAAO,EAAE,OAAO,CAAC;IAEjB;;;;OAIG;IACH,eAAe,CAAC,EAAE,eAAe,EAAE,CAAC;IAEpC;;;;;OAKG;IACH,eAAe,CAAC,EAAE,sBAAsB,CAAC,iBAAiB,CAAC,CAAC;IAE5D;;;;;;OAMG;IACH,gBAAgB,CAAC,EAAE,sBAAsB,CAAC,kBAAkB,CAAC,CAAC;IAE9D;;;;;;OAMG;IACH,gBAAgB,CAAC,EAAE,sBAAsB,CAAC,kBAAkB,CAAC,CAAC;IAE9D;;;;;;OAMG;IACH,iBAAiB,CAAC,EAAE,sBAAsB,CAAC,mBAAmB,CAAC,CAAC;IAEhE;;;;;OAKG;IACH,aAAa,CAAC,EAAE,sBAAsB,CAAC,eAAe,CAAC,CAAC;IAExD;;;;;OAKG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;;;;OAMG;IACH,eAAe,CAAC,EAAE,sBAAsB,CAAC,iBAAiB,CAAC,CAAC;IAE5D;;;;;;;OAOG;IACH,KAAK,CAAC,EAAE,sBAAsB,CAAC,OAAO,CAAC,CAAC;IAExC;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IAEtB;;;;;;OAMG;IACH,cAAc,CAAC,EAAE,cAAc,CAAC;IAEhC;;;;OAIG;IACH,IAAI,CAAC,EAAE,UAAU,CAAC;IAElB;;;;;OAKG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,QAAQ,CAAC;IAEpB;;;OAGG;IACH,+BAA+B,CAAC,EAAE,+BAA+B,CAAC;CACnE"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import UniversalProvider from '@walletconnect/universal-provider';
|
|
2
|
+
import { type CaipNetworkId, type SIWXSession } from '@reown/appkit-common-react-native';
|
|
3
|
+
/**
|
|
4
|
+
* SIWXUtil holds the methods to interact with the SIWX plugin and must be called internally on AppKit.
|
|
5
|
+
*/
|
|
6
|
+
export declare const SIWXUtil: {
|
|
7
|
+
getSIWX(): import("@reown/appkit-common-react-native").SIWXConfig | undefined;
|
|
8
|
+
initializeIfEnabled({ onDisconnect, caipAddress, closeModal }: {
|
|
9
|
+
onDisconnect: () => Promise<void>;
|
|
10
|
+
caipAddress?: string | undefined;
|
|
11
|
+
closeModal?: boolean | undefined;
|
|
12
|
+
}): Promise<void>;
|
|
13
|
+
requestSignMessage(): Promise<void>;
|
|
14
|
+
cancelSignMessage(onDisconnect: () => Promise<void>): Promise<void>;
|
|
15
|
+
getAllSessions(): Promise<SIWXSession[]>;
|
|
16
|
+
getSessions(args?: {
|
|
17
|
+
address?: string;
|
|
18
|
+
caipNetworkId?: CaipNetworkId;
|
|
19
|
+
}): Promise<SIWXSession[]>;
|
|
20
|
+
isSIWXCloseDisabled(): Promise<boolean | undefined>;
|
|
21
|
+
universalProviderAuthenticate({ universalProvider, chains, methods, universalLink }: {
|
|
22
|
+
universalProvider: UniversalProvider;
|
|
23
|
+
chains: CaipNetworkId[];
|
|
24
|
+
methods: string[];
|
|
25
|
+
universalLink?: string | undefined;
|
|
26
|
+
}): Promise<import("@walletconnect/types").SessionTypes.Struct | undefined>;
|
|
27
|
+
getSIWXEventProperties(error?: unknown): {
|
|
28
|
+
network: `${string}:${string}` | undefined;
|
|
29
|
+
isSmartAccount: boolean;
|
|
30
|
+
message: string | undefined;
|
|
31
|
+
};
|
|
32
|
+
clearSessions(): Promise<void>;
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=SIWXUtil.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SIWXUtil.d.ts","sourceRoot":"","sources":["../../../src/utils/SIWXUtil.ts"],"names":[],"mappings":"AAAA,OAAO,iBAAiB,MAAM,mCAAmC,CAAC;AAElE,OAAO,EACL,KAAK,aAAa,EAElB,KAAK,WAAW,EACjB,MAAM,mCAAmC,CAAC;AAa3C;;GAEG;AAEH,eAAO,MAAM,QAAQ;;;sBAUH,MAAM,QAAQ,IAAI,CAAC;;;;;oCAqIG,MAAM,QAAQ,IAAI,CAAC;;uBAsChC;QAAE,OAAO,CAAC,EAAE,MAAM,CAAC;QAAC,aAAa,CAAC,EAAE,aAAa,CAAA;KAAE;;;2BAwCvD,iBAAiB;gBAC5B,aAAa,EAAE;iBACd,MAAM,EAAE;;;mCAkGY,OAAO;;;;;;CAcvC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-account-default-view/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-account-default-view/index.tsx"],"names":[],"mappings":"AAqCA,wBAAgB,kBAAkB,4CA6TjC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-all-wallets-view/index.tsx"],"names":[],"mappings":"AAiBA,wBAAgB,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-all-wallets-view/index.tsx"],"names":[],"mappings":"AAiBA,wBAAgB,cAAc,4CAyF7B"}
|