@reown/appkit-react-native 2.0.1 → 2.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (185) hide show
  1. package/lib/commonjs/AppKit.js +20 -6
  2. package/lib/commonjs/AppKit.js.map +1 -1
  3. package/lib/commonjs/hooks/useAccount.js +68 -5
  4. package/lib/commonjs/hooks/useAccount.js.map +1 -1
  5. package/lib/commonjs/hooks/useAppKit.js +41 -9
  6. package/lib/commonjs/hooks/useAppKit.js.map +1 -1
  7. package/lib/commonjs/hooks/useAppKitContext.js +46 -0
  8. package/lib/commonjs/hooks/useAppKitContext.js.map +1 -0
  9. package/lib/commonjs/hooks/useAppKitEvents.js +64 -4
  10. package/lib/commonjs/hooks/useAppKitEvents.js.map +1 -1
  11. package/lib/commonjs/hooks/useAppKitLogs.js +2 -8
  12. package/lib/commonjs/hooks/useAppKitLogs.js.map +1 -1
  13. package/lib/commonjs/hooks/useAppKitState.js +35 -2
  14. package/lib/commonjs/hooks/useAppKitState.js.map +1 -1
  15. package/lib/commonjs/hooks/useAppKitTheme.js +74 -0
  16. package/lib/commonjs/hooks/useAppKitTheme.js.map +1 -0
  17. package/lib/commonjs/hooks/useProvider.js +3 -4
  18. package/lib/commonjs/hooks/useProvider.js.map +1 -1
  19. package/lib/commonjs/hooks/useWalletInfo.js +33 -2
  20. package/lib/commonjs/hooks/useWalletInfo.js.map +1 -1
  21. package/lib/commonjs/index.js +7 -0
  22. package/lib/commonjs/index.js.map +1 -1
  23. package/lib/commonjs/modal/w3m-modal/index.js +7 -7
  24. package/lib/commonjs/modal/w3m-modal/index.js.map +1 -1
  25. package/lib/commonjs/modal/w3m-modal/styles.js +2 -1
  26. package/lib/commonjs/modal/w3m-modal/styles.js.map +1 -1
  27. package/lib/commonjs/partials/w3m-connecting-body/index.js +2 -0
  28. package/lib/commonjs/partials/w3m-connecting-body/index.js.map +1 -1
  29. package/lib/commonjs/partials/w3m-connecting-mobile/components/StoreLink.js +4 -0
  30. package/lib/commonjs/partials/w3m-connecting-mobile/components/StoreLink.js.map +1 -1
  31. package/lib/commonjs/partials/w3m-connecting-qrcode/index.js +5 -1
  32. package/lib/commonjs/partials/w3m-connecting-qrcode/index.js.map +1 -1
  33. package/lib/commonjs/partials/w3m-header/index.js +1 -0
  34. package/lib/commonjs/partials/w3m-header/index.js.map +1 -1
  35. package/lib/commonjs/partials/w3m-header/styles.js +3 -0
  36. package/lib/commonjs/partials/w3m-header/styles.js.map +1 -1
  37. package/lib/commonjs/partials/w3m-send-input-token/index.js +6 -3
  38. package/lib/commonjs/partials/w3m-send-input-token/index.js.map +1 -1
  39. package/lib/commonjs/partials/w3m-swap-input/index.js +6 -3
  40. package/lib/commonjs/partials/w3m-swap-input/index.js.map +1 -1
  41. package/lib/commonjs/views/w3m-account-default-view/index.js +2 -1
  42. package/lib/commonjs/views/w3m-account-default-view/index.js.map +1 -1
  43. package/lib/commonjs/views/w3m-connecting-external-view/index.js +4 -8
  44. package/lib/commonjs/views/w3m-connecting-external-view/index.js.map +1 -1
  45. package/lib/commonjs/views/w3m-connecting-view/index.js +18 -12
  46. package/lib/commonjs/views/w3m-connecting-view/index.js.map +1 -1
  47. package/lib/commonjs/views/w3m-onramp-settings-view/index.js +2 -0
  48. package/lib/commonjs/views/w3m-onramp-settings-view/index.js.map +1 -1
  49. package/lib/commonjs/views/w3m-onramp-view/index.js +3 -2
  50. package/lib/commonjs/views/w3m-onramp-view/index.js.map +1 -1
  51. package/lib/commonjs/views/w3m-swap-view/components/select-token-modal/index.js +2 -1
  52. package/lib/commonjs/views/w3m-swap-view/components/select-token-modal/index.js.map +1 -1
  53. package/lib/commonjs/views/w3m-swap-view/index.js +4 -2
  54. package/lib/commonjs/views/w3m-swap-view/index.js.map +1 -1
  55. package/lib/commonjs/views/w3m-wallet-send-view/index.js +2 -1
  56. package/lib/commonjs/views/w3m-wallet-send-view/index.js.map +1 -1
  57. package/lib/module/AppKit.js +20 -6
  58. package/lib/module/AppKit.js.map +1 -1
  59. package/lib/module/hooks/useAccount.js +69 -5
  60. package/lib/module/hooks/useAccount.js.map +1 -1
  61. package/lib/module/hooks/useAppKit.js +43 -10
  62. package/lib/module/hooks/useAppKit.js.map +1 -1
  63. package/lib/module/hooks/useAppKitContext.js +42 -0
  64. package/lib/module/hooks/useAppKitContext.js.map +1 -0
  65. package/lib/module/hooks/useAppKitEvents.js +65 -4
  66. package/lib/module/hooks/useAppKitEvents.js.map +1 -1
  67. package/lib/module/hooks/useAppKitLogs.js +3 -9
  68. package/lib/module/hooks/useAppKitLogs.js.map +1 -1
  69. package/lib/module/hooks/useAppKitState.js +36 -2
  70. package/lib/module/hooks/useAppKitState.js.map +1 -1
  71. package/lib/module/hooks/useAppKitTheme.js +71 -0
  72. package/lib/module/hooks/useAppKitTheme.js.map +1 -0
  73. package/lib/module/hooks/useProvider.js +3 -4
  74. package/lib/module/hooks/useProvider.js.map +1 -1
  75. package/lib/module/hooks/useWalletInfo.js +34 -2
  76. package/lib/module/hooks/useWalletInfo.js.map +1 -1
  77. package/lib/module/index.js +1 -0
  78. package/lib/module/index.js.map +1 -1
  79. package/lib/module/modal/w3m-modal/index.js +7 -7
  80. package/lib/module/modal/w3m-modal/index.js.map +1 -1
  81. package/lib/module/modal/w3m-modal/styles.js +2 -1
  82. package/lib/module/modal/w3m-modal/styles.js.map +1 -1
  83. package/lib/module/partials/w3m-connecting-body/index.js +2 -0
  84. package/lib/module/partials/w3m-connecting-body/index.js.map +1 -1
  85. package/lib/module/partials/w3m-connecting-mobile/components/StoreLink.js +4 -0
  86. package/lib/module/partials/w3m-connecting-mobile/components/StoreLink.js.map +1 -1
  87. package/lib/module/partials/w3m-connecting-qrcode/index.js +5 -1
  88. package/lib/module/partials/w3m-connecting-qrcode/index.js.map +1 -1
  89. package/lib/module/partials/w3m-header/index.js +1 -0
  90. package/lib/module/partials/w3m-header/index.js.map +1 -1
  91. package/lib/module/partials/w3m-header/styles.js +3 -0
  92. package/lib/module/partials/w3m-header/styles.js.map +1 -1
  93. package/lib/module/partials/w3m-send-input-token/index.js +6 -3
  94. package/lib/module/partials/w3m-send-input-token/index.js.map +1 -1
  95. package/lib/module/partials/w3m-swap-input/index.js +6 -3
  96. package/lib/module/partials/w3m-swap-input/index.js.map +1 -1
  97. package/lib/module/views/w3m-account-default-view/index.js +2 -1
  98. package/lib/module/views/w3m-account-default-view/index.js.map +1 -1
  99. package/lib/module/views/w3m-connecting-external-view/index.js +4 -8
  100. package/lib/module/views/w3m-connecting-external-view/index.js.map +1 -1
  101. package/lib/module/views/w3m-connecting-view/index.js +19 -13
  102. package/lib/module/views/w3m-connecting-view/index.js.map +1 -1
  103. package/lib/module/views/w3m-onramp-settings-view/index.js +2 -0
  104. package/lib/module/views/w3m-onramp-settings-view/index.js.map +1 -1
  105. package/lib/module/views/w3m-onramp-view/index.js +3 -2
  106. package/lib/module/views/w3m-onramp-view/index.js.map +1 -1
  107. package/lib/module/views/w3m-swap-view/components/select-token-modal/index.js +2 -1
  108. package/lib/module/views/w3m-swap-view/components/select-token-modal/index.js.map +1 -1
  109. package/lib/module/views/w3m-swap-view/index.js +4 -2
  110. package/lib/module/views/w3m-swap-view/index.js.map +1 -1
  111. package/lib/module/views/w3m-wallet-send-view/index.js +2 -1
  112. package/lib/module/views/w3m-wallet-send-view/index.js.map +1 -1
  113. package/lib/typescript/AppKit.d.ts +9 -2
  114. package/lib/typescript/AppKit.d.ts.map +1 -1
  115. package/lib/typescript/AppKitContext.d.ts +2 -2
  116. package/lib/typescript/AppKitContext.d.ts.map +1 -1
  117. package/lib/typescript/hooks/useAccount.d.ts +57 -33
  118. package/lib/typescript/hooks/useAccount.d.ts.map +1 -1
  119. package/lib/typescript/hooks/useAppKit.d.ts +42 -0
  120. package/lib/typescript/hooks/useAppKit.d.ts.map +1 -1
  121. package/lib/typescript/hooks/useAppKitContext.d.ts +27 -0
  122. package/lib/typescript/hooks/useAppKitContext.d.ts.map +1 -0
  123. package/lib/typescript/hooks/useAppKitEvents.d.ts +66 -0
  124. package/lib/typescript/hooks/useAppKitEvents.d.ts.map +1 -1
  125. package/lib/typescript/hooks/useAppKitLogs.d.ts.map +1 -1
  126. package/lib/typescript/hooks/useAppKitState.d.ts +32 -0
  127. package/lib/typescript/hooks/useAppKitState.d.ts.map +1 -1
  128. package/lib/typescript/hooks/useAppKitTheme.d.ts +59 -0
  129. package/lib/typescript/hooks/useAppKitTheme.d.ts.map +1 -0
  130. package/lib/typescript/hooks/useProvider.d.ts +1 -4
  131. package/lib/typescript/hooks/useProvider.d.ts.map +1 -1
  132. package/lib/typescript/hooks/useWalletInfo.d.ts +31 -0
  133. package/lib/typescript/hooks/useWalletInfo.d.ts.map +1 -1
  134. package/lib/typescript/index.d.ts +3 -2
  135. package/lib/typescript/index.d.ts.map +1 -1
  136. package/lib/typescript/modal/w3m-modal/index.d.ts +9 -1
  137. package/lib/typescript/modal/w3m-modal/index.d.ts.map +1 -1
  138. package/lib/typescript/modal/w3m-modal/styles.d.ts +1 -0
  139. package/lib/typescript/modal/w3m-modal/styles.d.ts.map +1 -1
  140. package/lib/typescript/partials/w3m-connecting-body/index.d.ts.map +1 -1
  141. package/lib/typescript/partials/w3m-connecting-qrcode/index.d.ts.map +1 -1
  142. package/lib/typescript/partials/w3m-header/index.d.ts.map +1 -1
  143. package/lib/typescript/partials/w3m-header/styles.d.ts +3 -0
  144. package/lib/typescript/partials/w3m-header/styles.d.ts.map +1 -1
  145. package/lib/typescript/partials/w3m-send-input-token/index.d.ts +2 -1
  146. package/lib/typescript/partials/w3m-send-input-token/index.d.ts.map +1 -1
  147. package/lib/typescript/partials/w3m-swap-input/index.d.ts +2 -1
  148. package/lib/typescript/partials/w3m-swap-input/index.d.ts.map +1 -1
  149. package/lib/typescript/views/w3m-account-default-view/index.d.ts.map +1 -1
  150. package/lib/typescript/views/w3m-connecting-external-view/index.d.ts.map +1 -1
  151. package/lib/typescript/views/w3m-connecting-view/index.d.ts.map +1 -1
  152. package/lib/typescript/views/w3m-onramp-settings-view/index.d.ts.map +1 -1
  153. package/lib/typescript/views/w3m-onramp-view/index.d.ts.map +1 -1
  154. package/lib/typescript/views/w3m-swap-view/index.d.ts.map +1 -1
  155. package/lib/typescript/views/w3m-wallet-send-view/index.d.ts.map +1 -1
  156. package/package.json +5 -4
  157. package/src/AppKit.ts +27 -7
  158. package/src/AppKitContext.tsx +1 -1
  159. package/src/hooks/useAccount.ts +93 -5
  160. package/src/hooks/useAppKit.ts +45 -12
  161. package/src/hooks/useAppKitContext.ts +43 -0
  162. package/src/hooks/useAppKitEvents.ts +63 -3
  163. package/src/hooks/useAppKitLogs.ts +3 -11
  164. package/src/hooks/useAppKitState.ts +35 -2
  165. package/src/hooks/useAppKitTheme.ts +82 -0
  166. package/src/hooks/useProvider.ts +3 -4
  167. package/src/hooks/useWalletInfo.ts +33 -2
  168. package/src/index.ts +8 -2
  169. package/src/modal/w3m-modal/index.tsx +16 -7
  170. package/src/modal/w3m-modal/styles.ts +2 -1
  171. package/src/partials/w3m-connecting-body/index.tsx +3 -1
  172. package/src/partials/w3m-connecting-mobile/components/StoreLink.tsx +4 -1
  173. package/src/partials/w3m-connecting-qrcode/index.tsx +10 -1
  174. package/src/partials/w3m-header/index.tsx +6 -1
  175. package/src/partials/w3m-header/styles.ts +3 -0
  176. package/src/partials/w3m-send-input-token/index.tsx +5 -1
  177. package/src/partials/w3m-swap-input/index.tsx +5 -1
  178. package/src/views/w3m-account-default-view/index.tsx +6 -1
  179. package/src/views/w3m-connecting-external-view/index.tsx +4 -8
  180. package/src/views/w3m-connecting-view/index.tsx +24 -14
  181. package/src/views/w3m-onramp-settings-view/index.tsx +7 -1
  182. package/src/views/w3m-onramp-view/index.tsx +3 -2
  183. package/src/views/w3m-swap-view/components/select-token-modal/index.tsx +1 -1
  184. package/src/views/w3m-swap-view/index.tsx +2 -0
  185. package/src/views/w3m-wallet-send-view/index.tsx +1 -0
@@ -1,39 +1,63 @@
1
+ import type { AccountType, AppKitNetwork } from '@reown/appkit-common-react-native';
2
+ /**
3
+ * Represents a blockchain account with its associated metadata
4
+ */
5
+ export interface Account {
6
+ /** The blockchain address of the account */
7
+ address: string;
8
+ /** The blockchain namespace (e.g., 'eip155' for Ethereum, 'solana' for Solana) */
9
+ namespace: string;
10
+ /** The chain ID where this account is active */
11
+ chainId: string;
12
+ /** Optional account type (e.g. 'eoa' or 'smartAccount') */
13
+ type?: AccountType;
14
+ }
15
+ /**
16
+ * Hook to access the current account state and connection information
17
+ *
18
+ * @remarks
19
+ * This hook provides access to all connected accounts, the currently active account,
20
+ * connection status, and active chain information. It automatically subscribes to
21
+ * connection state changes via valtio.
22
+ *
23
+ * The hook parses account data from CAIP-10 format (namespace:chainId:address)
24
+ * and provides a normalized structure.
25
+ *
26
+ * @returns An object containing:
27
+ * - `allAccounts` - Array of all connected accounts across all connections
28
+ * - `address` - The plain address of the currently active account (without namespace or chain prefix)
29
+ * - `isConnected` - Boolean indicating if a wallet is currently connected
30
+ * - `chainId` - The ID of the currently active chain
31
+ * - `chain` - The full chain/network object of the currently active chain
32
+ * - `namespace` - The namespace of the currently active account (e.g. 'eip155', 'solana' or 'bip122')
33
+ *
34
+ * @example
35
+ * ```tsx
36
+ * function MyComponent() {
37
+ * const { address, isConnected, chainId, allAccounts } = useAccount();
38
+ *
39
+ * if (!isConnected) {
40
+ * return <Text>Not connected</Text>;
41
+ * }
42
+ *
43
+ * return (
44
+ * <View>
45
+ * <Text>Connected: {address}</Text>
46
+ * <Text>Chain: {chainId}</Text>
47
+ * <Text>Total accounts: {allAccounts.length}</Text>
48
+ * </View>
49
+ * );
50
+ * }
51
+ * ```
52
+ *
53
+ * @throws Will log errors via LogController if account parsing fails
54
+ */
1
55
  export declare function useAccount(): {
56
+ allAccounts: Account[];
2
57
  address: string | undefined;
3
58
  isConnected: boolean;
4
- chainId: string | number | undefined;
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;
59
+ chainId: string | undefined;
60
+ chain: AppKitNetwork | undefined;
37
61
  namespace: import("@reown/appkit-common-react-native").ChainNamespace | undefined;
38
62
  };
39
63
  //# sourceMappingURL=useAccount.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useAccount.d.ts","sourceRoot":"","sources":["../../../src/hooks/useAccount.ts"],"names":[],"mappings":"AAMA,wBAAgB,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyBzB"}
1
+ {"version":3,"file":"useAccount.d.ts","sourceRoot":"","sources":["../../../src/hooks/useAccount.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAGpF;;GAEG;AACH,MAAM,WAAW,OAAO;IACtB,4CAA4C;IAC5C,OAAO,EAAE,MAAM,CAAC;IAChB,kFAAkF;IAClF,SAAS,EAAE,MAAM,CAAC;IAClB,gDAAgD;IAChD,OAAO,EAAE,MAAM,CAAC;IAChB,2DAA2D;IAC3D,IAAI,CAAC,EAAE,WAAW,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,wBAAgB,UAAU;;;;;;;EAsDzB"}
@@ -1,11 +1,53 @@
1
1
  import type { ChainNamespace } from '@reown/appkit-common-react-native';
2
2
  import type { AppKit } from '../AppKit';
3
+ /**
4
+ * Interface representing the return value of the useAppKit hook
5
+ */
3
6
  interface UseAppKitReturn {
7
+ /** Function to open the AppKit modal with optional view configuration */
4
8
  open: AppKit['open'];
9
+ /** Function to close the AppKit modal */
5
10
  close: AppKit['close'];
11
+ /** Function to disconnect the wallet, optionally scoped to a specific namespace */
6
12
  disconnect: (namespace?: ChainNamespace) => void;
13
+ /** Function to switch to a different network */
7
14
  switchNetwork: AppKit['switchNetwork'];
8
15
  }
16
+ /**
17
+ * Hook to access core AppKit functionality for controlling the modal
18
+ *
19
+ * @remarks
20
+ * This hook provides access to the main AppKit instance methods for opening/closing
21
+ * the modal, disconnecting wallets, and switching networks. All functions are memoized
22
+ * and properly bound to ensure stable references across renders.
23
+ *
24
+ * @returns {UseAppKitReturn} An object containing:
25
+ * - `open`: Opens the AppKit modal, optionally with a specific view
26
+ * - `close`: Closes the AppKit modal
27
+ * - `disconnect`: Disconnects the current wallet connection (optionally for a specific namespace)
28
+ * - `switchNetwork`: Switches to a different blockchain network
29
+ *
30
+ * @throws {Error} If used outside of an AppKitProvider
31
+ * @throws {Error} If AppKit instance is not available in context
32
+ *
33
+ * @example
34
+ * ```tsx
35
+ * function MyComponent() {
36
+ * const { open, close, disconnect, switchNetwork } = useAppKit();
37
+ *
38
+ * return (
39
+ * <View>
40
+ * <Button onPress={() => open()} title="Connect Wallet" />
41
+ * <Button onPress={() => disconnect()} title="Disconnect" />
42
+ * <Button
43
+ * onPress={() => switchNetwork('eip155:1')}
44
+ * title="Switch to Ethereum"
45
+ * />
46
+ * </View>
47
+ * );
48
+ * }
49
+ * ```
50
+ */
9
51
  export declare const useAppKit: () => UseAppKitReturn;
10
52
  export {};
11
53
  //# sourceMappingURL=useAppKit.d.ts.map
@@ -1 +1 @@
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"}
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;;GAEG;AACH,UAAU,eAAe;IACvB,yEAAyE;IACzE,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;IACrB,yCAAyC;IACzC,KAAK,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;IACvB,mFAAmF;IACnF,UAAU,EAAE,CAAC,SAAS,CAAC,EAAE,cAAc,KAAK,IAAI,CAAC;IACjD,gDAAgD;IAChD,aAAa,EAAE,MAAM,CAAC,eAAe,CAAC,CAAC;CACxC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,eAAO,MAAM,SAAS,QAAO,eAkB5B,CAAC"}
@@ -0,0 +1,27 @@
1
+ import { type AppKitContextType } from '../AppKitContext';
2
+ /**
3
+ * Hook to access the AppKit context
4
+ *
5
+ * @remarks
6
+ * This is an internal hook used by other AppKit hooks to ensure they're used within
7
+ * the AppKitProvider. You typically don't need to use this hook directly - use the
8
+ * higher-level hooks like `useAppKit`, `useAccount`, `useAppKitTheme`, etc. instead.
9
+ *
10
+ * @returns {AppKitContextType} The AppKit context containing the AppKit instance
11
+ *
12
+ * @throws {Error} If used outside of an AppKitProvider
13
+ * @throws {Error} If the AppKit instance is not yet available in context
14
+ *
15
+ * @internal
16
+ *
17
+ * @example
18
+ * ```tsx
19
+ * // This is typically used internally by other hooks
20
+ * function MyCustomHook() {
21
+ * const context = useAppKitContext();
22
+ * // Use context.appKit...
23
+ * }
24
+ * ```
25
+ */
26
+ export declare const useAppKitContext: () => AppKitContextType;
27
+ //# sourceMappingURL=useAppKitContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useAppKitContext.d.ts","sourceRoot":"","sources":["../../../src/hooks/useAppKitContext.ts"],"names":[],"mappings":"AAEA,OAAO,EAAiB,KAAK,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAEzE;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,eAAO,MAAM,gBAAgB,QAAO,iBAanC,CAAC"}
@@ -1,5 +1,37 @@
1
1
  import { type EventsControllerState } from '@reown/appkit-core-react-native';
2
2
  import { type EventName } from '@reown/appkit-common-react-native';
3
+ /**
4
+ * Hook to subscribe to all AppKit events
5
+ *
6
+ * @remarks
7
+ * This hook provides reactive access to AppKit's event system, allowing you to
8
+ * monitor all events that occur within the AppKit lifecycle (connections, disconnections,
9
+ * network changes, etc.). The callback is invoked whenever a new event is emitted.
10
+ *
11
+ * @param callback - Optional callback function invoked when any event occurs
12
+ *
13
+ * @returns An object containing:
14
+ * - `data`: The most recent event data
15
+ * - `timestamp`: The timestamp of the most recent event
16
+ *
17
+ * @throws {Error} If used outside of an AppKitProvider
18
+ *
19
+ * @example
20
+ * ```tsx
21
+ * function MyComponent() {
22
+ * const { data, timestamp } = useAppKitEvents((event) => {
23
+ * console.log('Event occurred:', event.data.event);
24
+ * });
25
+ *
26
+ * return (
27
+ * <View>
28
+ * <Text>Last event: {data?.event}</Text>
29
+ * <Text>Time: {timestamp}</Text>
30
+ * </View>
31
+ * );
32
+ * }
33
+ * ```
34
+ */
3
35
  export declare function useAppKitEvents(callback?: (newEvent: EventsControllerState) => void): {
4
36
  data: {
5
37
  readonly type: "track";
@@ -92,6 +124,13 @@ export declare function useAppKitEvents(callback?: (newEvent: EventsControllerSt
92
124
  readonly properties: {
93
125
  readonly message: string;
94
126
  };
127
+ } | {
128
+ readonly type: "track";
129
+ readonly address?: string | undefined;
130
+ readonly event: "USER_REJECTED";
131
+ readonly properties: {
132
+ readonly message: string;
133
+ };
95
134
  } | {
96
135
  readonly type: "track";
97
136
  readonly event: "DISCONNECT_SUCCESS";
@@ -371,5 +410,32 @@ export declare function useAppKitEvents(callback?: (newEvent: EventsControllerSt
371
410
  };
372
411
  timestamp: number;
373
412
  };
413
+ /**
414
+ * Hook to subscribe to a specific AppKit event
415
+ *
416
+ * @remarks
417
+ * This hook allows you to listen for a specific event type rather than all events.
418
+ * It's more efficient than `useAppKitEvents` when you only care about a particular event.
419
+ *
420
+ * @param event - The specific event name to subscribe to (e.g., 'MODAL_OPEN', 'CONNECT_SUCCESS')
421
+ * @param callback - Callback function invoked when the specified event occurs
422
+ *
423
+ * @throws {Error} If used outside of an AppKitProvider
424
+ *
425
+ * @example
426
+ * ```tsx
427
+ * function MyComponent() {
428
+ * useAppKitEventSubscription('CONNECT_SUCCESS', (event) => {
429
+ * console.log('Wallet connected!', event.data);
430
+ * });
431
+ *
432
+ * useAppKitEventSubscription('DISCONNECT_SUCCESS', (event) => {
433
+ * console.log('Wallet disconnected!', event.data);
434
+ * });
435
+ *
436
+ * return <View>{/ Your component /}</View>;
437
+ * }
438
+ * ```
439
+ */
374
440
  export declare function useAppKitEventSubscription(event: EventName, callback: (newEvent: EventsControllerState) => void): void;
375
441
  //# sourceMappingURL=useAppKitEvents.d.ts.map
@@ -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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AoBG;AACH,eAAO,MAAM,aAAa,QAAO,mBA8DhC,CAAC"}
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,mBAsDhC,CAAC"}
@@ -1,3 +1,35 @@
1
+ /**
2
+ * Hook to access the overall state of the AppKit modal and connection
3
+ *
4
+ * @remarks
5
+ * This hook provides a high-level view of the AppKit's current state, including
6
+ * whether the modal is open, if it's loading, connection status, and the active chain.
7
+ * It's useful for coordinating UI elements with the AppKit's state.
8
+ *
9
+ * @returns An object containing:
10
+ * - `isOpen`: Whether the AppKit modal is currently open
11
+ * - `isLoading`: Whether the AppKit is in a loading state
12
+ * - `isConnected`: Whether a wallet is currently connected
13
+ * - `chain`: The currently active blockchain network
14
+ *
15
+ * @throws {Error} If used outside of an AppKitProvider
16
+ *
17
+ * @example
18
+ * ```tsx
19
+ * function MyComponent() {
20
+ * const { isOpen, isLoading, isConnected, chain } = useAppKitState();
21
+ *
22
+ * return (
23
+ * <View>
24
+ * <Text>Modal: {isOpen ? 'Open' : 'Closed'}</Text>
25
+ * <Text>Loading: {isLoading ? 'Yes' : 'No'}</Text>
26
+ * <Text>Connected: {isConnected ? 'Yes' : 'No'}</Text>
27
+ * {chain && <Text>Chain: {chain.name}</Text>}
28
+ * </View>
29
+ * );
30
+ * }
31
+ * ```
32
+ */
1
33
  export declare function useAppKitState(): {
2
34
  isOpen: boolean;
3
35
  isLoading: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"useAppKitState.d.ts","sourceRoot":"","sources":["../../../src/hooks/useAppKitState.ts"],"names":[],"mappings":"AAMA,wBAAgB,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmB7B"}
1
+ {"version":3,"file":"useAppKitState.d.ts","sourceRoot":"","sources":["../../../src/hooks/useAppKitState.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH,wBAAgB,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmB7B"}
@@ -0,0 +1,59 @@
1
+ import type { ThemeMode, ThemeVariables } from '@reown/appkit-common-react-native';
2
+ /**
3
+ * Interface representing the result of the useAppKitTheme hook
4
+ */
5
+ export interface UseAppKitThemeReturn {
6
+ /** The current theme mode ('dark' or 'light') */
7
+ themeMode: ThemeMode;
8
+ /** The current theme variables, currently only supports 'accent' color */
9
+ themeVariables: ThemeVariables;
10
+ /** Function to set the theme mode */
11
+ setThemeMode: (themeMode: ThemeMode | undefined) => void;
12
+ /** Function to set theme variables */
13
+ setThemeVariables: (themeVariables: ThemeVariables | undefined) => void;
14
+ }
15
+ /**
16
+ * Hook to control the visual appearance of the AppKit modal
17
+ *
18
+ * @remarks
19
+ * This hook provides access to the theme mode and theme variables, allowing you to
20
+ * customize the modal's appearance. Use this hook when you need to implement dark/light
21
+ * mode or match the modal's appearance with your application's theme.
22
+ *
23
+ * Currently, the only supported theme variable is `accent`, which controls the primary
24
+ * accent color used throughout the modal interface.
25
+ *
26
+ * @returns {UseAppKitThemeReturn} An object containing:
27
+ * - `themeMode`: The current theme mode ('dark' or 'light')
28
+ * - `themeVariables`: The current theme variables (only 'accent' is supported)
29
+ * - `setThemeMode`: Function to change the theme mode
30
+ * - `setThemeVariables`: Function to update theme variables
31
+ *
32
+ * @throws {Error} If used outside of an AppKitProvider
33
+ *
34
+ * @example
35
+ * ```typescript
36
+ * import { useAppKitTheme } from '@reown/appkit-react-native';
37
+ *
38
+ * function MyComponent() {
39
+ * const { themeMode, themeVariables, setThemeMode, setThemeVariables } = useAppKitTheme();
40
+ *
41
+ * // Set theme to dark mode
42
+ * setThemeMode('dark');
43
+ *
44
+ * // Customize the accent color
45
+ * setThemeVariables({
46
+ * accent: '#00BB7F'
47
+ * });
48
+ *
49
+ * return (
50
+ * <View>
51
+ * <Text>Current theme: {themeMode}</Text>
52
+ * <Text>Accent color: {themeVariables?.accent}</Text>
53
+ * </View>
54
+ * );
55
+ * }
56
+ * ```
57
+ */
58
+ export declare function useAppKitTheme(): UseAppKitThemeReturn;
59
+ //# sourceMappingURL=useAppKitTheme.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useAppKitTheme.d.ts","sourceRoot":"","sources":["../../../src/hooks/useAppKitTheme.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AAInF;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,iDAAiD;IACjD,SAAS,EAAE,SAAS,CAAC;IACrB,0EAA0E;IAC1E,cAAc,EAAE,cAAc,CAAC;IAC/B,qCAAqC;IACrC,YAAY,EAAE,CAAC,SAAS,EAAE,SAAS,GAAG,SAAS,KAAK,IAAI,CAAC;IACzD,sCAAsC;IACtC,iBAAiB,EAAE,CAAC,cAAc,EAAE,cAAc,GAAG,SAAS,KAAK,IAAI,CAAC;CACzE;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,wBAAgB,cAAc,IAAI,oBAAoB,CAkBrD"}
@@ -23,10 +23,7 @@ interface ProviderResult {
23
23
  *
24
24
  * if (provider) {
25
25
  * // Use the provider for blockchain operations
26
- * const balance = await provider.request({
27
- * method: 'eth_getBalance',
28
- * params: [address, 'latest']
29
- * });
26
+ * const balance = await provider.request({...});
30
27
  * }
31
28
  * ```
32
29
  */
@@ -1 +1 @@
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,CAsB5C"}
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;AAGlF;;GAEG;AACH,UAAU,cAAc;IACtB,8CAA8C;IAC9C,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,oDAAoD;IACpD,YAAY,CAAC,EAAE,cAAc,CAAC;CAC/B;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,WAAW,IAAI,cAAc,CAuB5C"}
@@ -1,3 +1,34 @@
1
+ /**
2
+ * Hook to access information about the currently connected wallet
3
+ *
4
+ * @remarks
5
+ * This hook provides access to metadata about the connected wallet, such as its name,
6
+ * icon, and other identifying information. It automatically subscribes to wallet info
7
+ * changes via valtio.
8
+ *
9
+ * @returns An object containing:
10
+ * - `walletInfo`: Metadata about the currently connected wallet (name, icon, etc.)
11
+ *
12
+ * @example
13
+ * ```tsx
14
+ * function MyComponent() {
15
+ * const { walletInfo } = useWalletInfo();
16
+ *
17
+ * return (
18
+ * <View>
19
+ * {walletInfo && (
20
+ * <>
21
+ * <Image source={{ uri: walletInfo.icon }} />
22
+ * <Text>{walletInfo.name}</Text>
23
+ * </>
24
+ * )}
25
+ * </View>
26
+ * );
27
+ * }
28
+ * ```
29
+ *
30
+ * @throws {Error} If used outside of an AppKitProvider
31
+ */
1
32
  export declare function useWalletInfo(): {
2
33
  walletInfo: {
3
34
  readonly [x: string]: unknown;
@@ -1 +1 @@
1
- {"version":3,"file":"useWalletInfo.d.ts","sourceRoot":"","sources":["../../../src/hooks/useWalletInfo.ts"],"names":[],"mappings":"AAKA,wBAAgB,aAAa;;;;;;;;;;;;;;;EAO5B"}
1
+ {"version":3,"file":"useWalletInfo.d.ts","sourceRoot":"","sources":["../../../src/hooks/useWalletInfo.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAAgB,aAAa;;;;;;;;;;;;;;;EAO5B"}
@@ -4,7 +4,7 @@ export { AccountButton as AccountButton, type AccountButtonProps } from './modal
4
4
  export { AppKitButton, type AppKitButtonProps } from './modal/w3m-button';
5
5
  export { ConnectButton as ConnectButton, type ConnectButtonProps as ConnectButtonProps } from './modal/w3m-connect-button';
6
6
  export { NetworkButton as NetworkButton, type NetworkButtonProps as NetworkButtonProps } from './modal/w3m-network-button';
7
- export { AppKit } from './modal/w3m-modal';
7
+ export { AppKit, type AppKitProps, type AppKitModalContentWrapperComponent, type AppKitModalContentWrapperProps } from './modal/w3m-modal';
8
8
  /********** Types **********/
9
9
  export type * from '@reown/appkit-core-react-native';
10
10
  export type { AppKitNetwork, Storage } from '@reown/appkit-common-react-native';
@@ -13,7 +13,8 @@ export type { AppKitConfig } from './types';
13
13
  /****** Hooks *******/
14
14
  export { useAppKit } from './hooks/useAppKit';
15
15
  export { useProvider } from './hooks/useProvider';
16
- export { useAccount } from './hooks/useAccount';
16
+ export { useAccount, type Account as UseAccountReturn } from './hooks/useAccount';
17
+ export { useAppKitTheme, type UseAppKitThemeReturn } from './hooks/useAppKitTheme';
17
18
  export { useWalletInfo } from './hooks/useWalletInfo';
18
19
  export { useAppKitEvents, useAppKitEventSubscription } from './hooks/useAppKitEvents';
19
20
  export { useAppKitState } from './hooks/useAppKitState';
@@ -1 +1 @@
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;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,mBAAmB,CAAC;AAE3B,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,KAAK,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAClF,OAAO,EAAE,cAAc,EAAE,KAAK,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACnF,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,2 +1,10 @@
1
- export declare function AppKit(): import("react/jsx-runtime").JSX.Element;
1
+ import { type ComponentType, type ReactNode } from 'react';
2
+ export interface AppKitModalContentWrapperProps {
3
+ children: ReactNode;
4
+ }
5
+ export type AppKitModalContentWrapperComponent = ComponentType<AppKitModalContentWrapperProps>;
6
+ export interface AppKitProps {
7
+ modalContentWrapper?: AppKitModalContentWrapperComponent;
8
+ }
9
+ export declare function AppKit({ modalContentWrapper }: AppKitProps): import("react/jsx-runtime").JSX.Element;
2
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modal/w3m-modal/index.tsx"],"names":[],"mappings":"AAoBA,wBAAgB,MAAM,4CAqDrB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modal/w3m-modal/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAA0B,KAAK,aAAa,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAmBnF,MAAM,WAAW,8BAA8B;IAC7C,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,MAAM,MAAM,kCAAkC,GAAG,aAAa,CAAC,8BAA8B,CAAC,CAAC;AAE/F,MAAM,WAAW,WAAW;IAC1B,mBAAmB,CAAC,EAAE,kCAAkC,CAAC;CAC1D;AAED,wBAAgB,MAAM,CAAC,EAAE,mBAAmB,EAAE,EAAE,WAAW,2CAoD1D"}
@@ -2,6 +2,7 @@ declare const _default: {
2
2
  card: {
3
3
  borderBottomLeftRadius: number;
4
4
  borderBottomRightRadius: number;
5
+ borderWidth: number;
5
6
  };
6
7
  };
7
8
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/modal/w3m-modal/styles.ts"],"names":[],"mappings":";;;;;;AAEA,wBAKG"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/modal/w3m-modal/styles.ts"],"names":[],"mappings":";;;;;;;AAEA,wBAMG"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/partials/w3m-connecting-body/index.tsx"],"names":[],"mappings":"AAGA,cAAc,SAAS,CAAC;AAExB,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,wBAAgB,cAAc,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,EAAE,mBAAmB,2CAWzE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/partials/w3m-connecting-body/index.tsx"],"names":[],"mappings":"AAGA,cAAc,SAAS,CAAC;AAExB,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,wBAAgB,cAAc,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,EAAE,mBAAmB,2CAazE"}
@@ -1 +1 @@
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
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/partials/w3m-connecting-qrcode/index.tsx"],"names":[],"mappings":"AAyBA,wBAAgB,gBAAgB,4CAqE/B"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/partials/w3m-header/index.tsx"],"names":[],"mappings":"AAYA,wBAAgB,MAAM,mDAoGrB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/partials/w3m-header/index.tsx"],"names":[],"mappings":"AAYA,wBAAgB,MAAM,mDAyGrB"}
@@ -3,6 +3,9 @@ declare const _default: {
3
3
  height: number;
4
4
  width: number;
5
5
  };
6
+ headerText: {
7
+ flexShrink: number;
8
+ };
6
9
  };
7
10
  export default _default;
8
11
  //# sourceMappingURL=styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/partials/w3m-header/styles.ts"],"names":[],"mappings":";;;;;;AAEA,wBAKG"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/partials/w3m-header/styles.ts"],"names":[],"mappings":";;;;;;;;;AAEA,wBAQG"}
@@ -6,6 +6,7 @@ export interface SendInputTokenProps {
6
6
  style?: StyleProp<ViewStyle>;
7
7
  onTokenPress?: () => void;
8
8
  loading?: boolean;
9
+ testID?: string;
9
10
  }
10
- export declare function SendInputToken({ token, sendTokenAmount, style, onTokenPress, loading }: SendInputTokenProps): import("react/jsx-runtime").JSX.Element;
11
+ export declare function SendInputToken({ token, sendTokenAmount, style, onTokenPress, loading, testID }: SendInputTokenProps): import("react/jsx-runtime").JSX.Element;
11
12
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/partials/w3m-send-input-token/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAa,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AASzE,OAAO,EAAc,KAAK,OAAO,EAAE,MAAM,mCAAmC,CAAC;AAM7E,MAAM,WAAW,mBAAmB;IAClC,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,wBAAgB,cAAc,CAAC,EAC7B,KAAK,EACL,eAAe,EACf,KAAK,EACL,YAAY,EACZ,OAAO,EACR,EAAE,mBAAmB,2CAsFrB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/partials/w3m-send-input-token/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAa,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AASzE,OAAO,EAAc,KAAK,OAAO,EAAE,MAAM,mCAAmC,CAAC;AAM7E,MAAM,WAAW,mBAAmB;IAClC,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,wBAAgB,cAAc,CAAC,EAC7B,KAAK,EACL,eAAe,EACf,KAAK,EACL,YAAY,EACZ,OAAO,EACP,MAAM,EACP,EAAE,mBAAmB,2CAwFrB"}
@@ -15,6 +15,7 @@ export interface SwapInputProps {
15
15
  marketValue?: number;
16
16
  editable?: boolean;
17
17
  autoFocus?: boolean;
18
+ testID?: string;
18
19
  }
19
- export declare function SwapInput({ token, value, style, loading, loadingValues, onTokenPress, onMaxPress, onChange, marketValue, editable, autoFocus }: SwapInputProps): import("react/jsx-runtime").JSX.Element;
20
+ export declare function SwapInput({ token, value, style, loading, loadingValues, onTokenPress, onMaxPress, onChange, marketValue, editable, autoFocus, testID }: SwapInputProps): import("react/jsx-runtime").JSX.Element;
20
21
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/partials/w3m-swap-input/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,SAAS,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAa,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAYzE,OAAO,EAAc,KAAK,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAE1F,MAAM,WAAW,cAAc;IAC7B,KAAK,CAAC,EAAE,oBAAoB,CAAC;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,SAA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AE,MAAM,KAAK,IAAI,CAAC;IACnC,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAID,wBAAgB,SAAS,CAAC,EACxB,KAAK,EACL,KAAK,EACL,KAAK,EACL,OAAO,EACP,aAAa,EACb,YAAY,EACZ,UAAU,EACV,QAAQ,EACR,WAAW,EACX,QAAQ,EACR,SAAS,EACT,MAAM,EACP,EAAE,cAAc,2CAqHhB"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-account-default-view/index.tsx"],"names":[],"mappings":"AAqCA,wBAAgB,kBAAkB,4CA6TjC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-account-default-view/index.tsx"],"names":[],"mappings":"AAqCA,wBAAgB,kBAAkB,4CAkUjC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-connecting-external-view/index.tsx"],"names":[],"mappings":"AA6BA,wBAAgB,sBAAsB,4CAiIrC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-connecting-external-view/index.tsx"],"names":[],"mappings":"AA8BA,wBAAgB,sBAAsB,4CA4HrC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-connecting-view/index.tsx"],"names":[],"mappings":"AAoBA,wBAAgB,cAAc,4CAuG7B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-connecting-view/index.tsx"],"names":[],"mappings":"AAoBA,wBAAgB,cAAc,4CAiH7B"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-onramp-settings-view/index.tsx"],"names":[],"mappings":"AA0BA,wBAAgB,kBAAkB,4CA+HjC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-onramp-settings-view/index.tsx"],"names":[],"mappings":"AA0BA,wBAAgB,kBAAkB,4CAqIjC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-onramp-view/index.tsx"],"names":[],"mappings":"AAuCA,wBAAgB,UAAU,4CAsOzB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-onramp-view/index.tsx"],"names":[],"mappings":"AAuCA,wBAAgB,UAAU,4CAuOzB"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-swap-view/index.tsx"],"names":[],"mappings":"AA0BA,wBAAgB,QAAQ,4CA8LvB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-swap-view/index.tsx"],"names":[],"mappings":"AA0BA,wBAAgB,QAAQ,4CAgMvB"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-wallet-send-view/index.tsx"],"names":[],"mappings":"AAeA,wBAAgB,cAAc,4CAyG7B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/w3m-wallet-send-view/index.tsx"],"names":[],"mappings":"AAeA,wBAAgB,cAAc,4CA0G7B"}