@coinlist-co/react 0.12.2-rc.bc20f5b → 0.12.2-rc.e1f6c82

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 (33) hide show
  1. package/dist/{chunk-3WW5FLT7.js → chunk-EKLUJZ7T.js} +10 -10
  2. package/dist/chunk-EKLUJZ7T.js.map +1 -0
  3. package/dist/{chunk-C6GF7MDF.js → chunk-GIE4UWB3.js} +680 -619
  4. package/dist/chunk-GIE4UWB3.js.map +1 -0
  5. package/dist/chunk-MJ6YXZWH.js +22 -0
  6. package/dist/chunk-MJ6YXZWH.js.map +1 -0
  7. package/dist/{chunk-IZJ4JSSC.js → chunk-PIOQA6HW.js} +173 -234
  8. package/dist/chunk-PIOQA6HW.js.map +1 -0
  9. package/dist/client/index.d.ts +2414 -5239
  10. package/dist/client/index.js +683 -788
  11. package/dist/client/index.js.map +1 -1
  12. package/dist/server/index.d.ts +2 -32
  13. package/dist/server/index.js +6 -4
  14. package/dist/server/index.js.map +1 -1
  15. package/dist/{time-CVZpAkGY.d.cts → time-Bbqlt2x7.d.ts} +1907 -3183
  16. package/dist/{token-registry-snapshot-BkwA8KmD.d.ts → token-registry-snapshot-DttZXGvY.d.ts} +7 -41
  17. package/dist/universal/index.d.ts +57 -1044
  18. package/dist/universal/index.js +16 -42
  19. package/package.json +18 -14
  20. package/dist/chunk-3WW5FLT7.js.map +0 -1
  21. package/dist/chunk-C6GF7MDF.js.map +0 -1
  22. package/dist/chunk-IZJ4JSSC.js.map +0 -1
  23. package/dist/client/index.cjs +0 -20460
  24. package/dist/client/index.cjs.map +0 -1
  25. package/dist/client/index.d.cts +0 -8195
  26. package/dist/server/index.cjs +0 -4525
  27. package/dist/server/index.cjs.map +0 -1
  28. package/dist/server/index.d.cts +0 -382
  29. package/dist/time-CVZpAkGY.d.ts +0 -3987
  30. package/dist/token-registry-snapshot-bR14QehS.d.cts +0 -245
  31. package/dist/universal/index.cjs +0 -4562
  32. package/dist/universal/index.cjs.map +0 -1
  33. package/dist/universal/index.d.cts +0 -1362
@@ -1,26 +1,6 @@
1
- import { b5 as ClientId, bX as RedirectUri, b6 as CodeChallenge, bL as PKCEState, C as CodeVerifier, v as EvmWalletAddress, a as EthereumChain, cc as Tx, B as BlockchainAmount, c5 as SwapPreview, a9 as AssetDecimals, aQ as Newtype, J as TokenMetadata, b4 as Chain, b as EvmContractAddress, aL as OfferToken } from './time-CVZpAkGY.js';
1
+ import { q as EvmWalletAddress, E as EthereumChain, c3 as Tx, bo as Newtype, N as TokenMetadata, aM as Chain, b as EvmContractAddress, bw as OfferToken } from './time-Bbqlt2x7.js';
2
2
  import { Hex, Abi, Hash, TransactionReceipt } from 'viem';
3
3
 
4
- type PKCEParams = {
5
- clientId: ClientId;
6
- responseType: 'code';
7
- redirectUri: RedirectUri;
8
- codeChallenge: CodeChallenge;
9
- codeChallengeMethod: 'S256';
10
- state: PKCEState;
11
- codeVerifier: CodeVerifier;
12
- };
13
- type PKCEConfig = {
14
- clientId: ClientId;
15
- redirectUri: RedirectUri;
16
- };
17
- /**
18
- * Generates PKCE parameters for an OAuth2 authorization code flow.
19
- * Pure crypto — no React, no DOM beyond Web Crypto API. Safe to use
20
- * in server-side code and Next.js middleware.
21
- */
22
- declare function generatePKCEParams(config: PKCEConfig): Promise<PKCEParams>;
23
-
24
4
  type WriteContractParams = {
25
5
  abi: Abi;
26
6
  address: `0x${string}`;
@@ -95,25 +75,6 @@ type ExternalWalletAdapter = {
95
75
  disconnect: () => Promise<void>;
96
76
  };
97
77
 
98
- /**
99
- * A read-only quote for a swap as domain amounts: how much goes in, the
100
- * protocol fee, and how much would come out. Derived from the raw
101
- * {@link SwapPreview} the swap contract returns.
102
- */
103
- type SwapQuote = {
104
- inputTokenAmount: BlockchainAmount;
105
- fee: BlockchainAmount;
106
- outputTokenAmount: BlockchainAmount;
107
- };
108
- declare const SwapQuote: {
109
- /**
110
- * Assembles a {@link SwapQuote} from a raw contract {@link SwapPreview}. The
111
- * input and fee are denominated in the input token; the output in the output
112
- * token.
113
- */
114
- fromPreview: (preview: SwapPreview, inputDecimals: AssetDecimals, outputDecimals: AssetDecimals) => SwapQuote;
115
- };
116
-
117
78
  type FormattedAmountUi = Newtype<string, 'FormattedAmountUi'>;
118
79
  declare const FormattedAmountUi: (value: string) => FormattedAmountUi;
119
80
  type FormattedPercentUi = Newtype<string, 'FormattedPercentUi'>;
@@ -139,6 +100,8 @@ declare const AssetIconUrl: (value: string) => AssetIconUrl;
139
100
  * adapter for connecting an external one when it supports that. Every wallet
140
101
  * here is one that can sign for itself, so a screen can broadcast from the
141
102
  * wallet that holds a position.
103
+ *
104
+ * @alpha
142
105
  */
143
106
  type WalletSelection = {
144
107
  /**
@@ -156,6 +119,7 @@ type WalletSelection = {
156
119
  */
157
120
  externalAdapter: ExternalWalletAdapter | null;
158
121
  };
122
+ /** @alpha */
159
123
  declare const WalletSelection: {
160
124
  /**
161
125
  * Every wallet in display order - embedded first, then the external one -
@@ -168,6 +132,8 @@ declare const WalletSelection: {
168
132
  * Names a wallet for display, e.g. `'CoinList Wallet'` for the user's
169
133
  * embedded one. `null` means it has no name, and the screen shows its
170
134
  * shortened address instead.
135
+ *
136
+ * @alpha
171
137
  */
172
138
  type WalletLabelResolver = (address: EvmWalletAddress) => string | null;
173
139
 
@@ -242,4 +208,4 @@ declare function offerDisplayTokens(offer: {
242
208
  tokens: readonly OfferToken[];
243
209
  }): OfferToken[];
244
210
 
245
- export { AssetIconUrl as A, type BroadcastTxParams as B, type ConnectWallet as C, type EvmWallet as E, FormattedAmountAssetUi as F, type NonEmptyArray as N, type PKCEConfig as P, SwapQuote as S, TxExplorerUrl as T, WalletSelection as W, ShortenedWalletAddress as a, FormattedPercentUi as b, type WalletLabelResolver as c, TokenRegistrySnapshot as d, type EvmSigner as e, type ExternalWalletAdapter as f, type WriteContractParams as g, FormattedAmountUi as h, type PKCEParams as i, generatePKCEParams as j, offerDisplayTokens as o };
211
+ export { AssetIconUrl as A, type BroadcastTxParams as B, type ConnectWallet as C, type EvmWallet as E, FormattedAmountAssetUi as F, type NonEmptyArray as N, ShortenedWalletAddress as S, TxExplorerUrl as T, WalletSelection as W, type WalletLabelResolver as a, FormattedPercentUi as b, TokenRegistrySnapshot as c, FormattedAmountUi as d, type EvmSigner as e, type ExternalWalletAdapter as f, type TokenKey as g, type WriteContractParams as h, offerDisplayTokens as o };