@coinlist-co/react 0.12.2-rc.0fda52c → 0.12.2-rc.0ff2d03

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 (36) hide show
  1. package/README.md +10 -0
  2. package/dist/chunk-MJ6YXZWH.js +22 -0
  3. package/dist/chunk-MJ6YXZWH.js.map +1 -0
  4. package/dist/{chunk-KRA6EM2L.js → chunk-PWGUKS4Q.js} +199 -186
  5. package/dist/chunk-PWGUKS4Q.js.map +1 -0
  6. package/dist/{chunk-STAHYDLY.js → chunk-QTBEDN7C.js} +10 -10
  7. package/dist/chunk-QTBEDN7C.js.map +1 -0
  8. package/dist/{chunk-BNMF2HMW.js → chunk-SVPFFLIT.js} +1210 -802
  9. package/dist/chunk-SVPFFLIT.js.map +1 -0
  10. package/dist/client/index.d.ts +3316 -4554
  11. package/dist/client/index.js +7235 -4340
  12. package/dist/client/index.js.map +1 -1
  13. package/dist/server/index.d.ts +7 -33
  14. package/dist/server/index.js +8 -4
  15. package/dist/server/index.js.map +1 -1
  16. package/dist/{tokens-namespace-BJfFeowE.d.cts → time-BDzqB806.d.ts} +2083 -2725
  17. package/dist/{token-registry-snapshot-C1NxdBmF.d.ts → token-registry-snapshot-cvLsnMo_.d.ts} +74 -42
  18. package/dist/universal/index.d.ts +83 -1002
  19. package/dist/universal/index.js +42 -36
  20. package/package.json +18 -14
  21. package/dist/chunk-BNMF2HMW.js.map +0 -1
  22. package/dist/chunk-KRA6EM2L.js.map +0 -1
  23. package/dist/chunk-STAHYDLY.js.map +0 -1
  24. package/dist/client/index.cjs +0 -17035
  25. package/dist/client/index.cjs.map +0 -1
  26. package/dist/client/index.d.cts +0 -6608
  27. package/dist/server/index.cjs +0 -4240
  28. package/dist/server/index.cjs.map +0 -1
  29. package/dist/server/index.d.cts +0 -378
  30. package/dist/time-B5YOQxuh.d.ts +0 -50
  31. package/dist/time-BY3apBpc.d.cts +0 -50
  32. package/dist/token-registry-snapshot-DyjrA32p.d.cts +0 -179
  33. package/dist/tokens-namespace-BJfFeowE.d.ts +0 -3353
  34. package/dist/universal/index.cjs +0 -4125
  35. package/dist/universal/index.cjs.map +0 -1
  36. package/dist/universal/index.d.cts +0 -1294
@@ -1,18 +1,12 @@
1
1
  import {
2
2
  AuthorizationCode,
3
- BPS_DENOM,
4
3
  ClientId,
5
4
  ClientSecret,
6
5
  CodeChallenge,
7
6
  CodeVerifier,
8
7
  DEFAULT_AMOUNT_TO_COMPUTE_PRICE,
9
- DEFAULT_ONDO_AMOUNT_TO_COMPUTE_PRICE,
10
- DEFAULT_ONDO_SELL_TOKENS_TO_COMPUTE_PRICE,
11
8
  DEFAULT_SLIPPAGE_BPS,
12
- ONDO_POLL_INTERVAL_MS,
13
- ONDO_QUOTE_MAX_TTL_MS,
14
- ONDO_SETTLEMENT_ASSET,
15
- ONDO_SUPPORTED_INPUT_ASSETS,
9
+ ONDO_NOT_TRADABLE_CODE,
16
10
  OffersNamespaceImpl,
17
11
  PKCEState,
18
12
  RedactedWalletError,
@@ -23,30 +17,32 @@ import {
23
17
  SUPERSTATE_SWAP_CONTRACT_ADDRESS_SEPOLIA,
24
18
  SWAP_LEVEL,
25
19
  SWAP_POLL_INTERVAL_MS,
26
- SwapQuote,
27
20
  TOKEN_REGISTRY,
28
21
  TokenRegistrySnapshot,
29
22
  USDC,
30
23
  USDC_SYMBOL,
31
24
  USDT,
32
25
  USDT_SYMBOL,
33
- User,
34
- UserEmail,
35
- UserId,
36
- applyBps,
26
+ WalletSelection,
37
27
  computeOndoBuyPrice,
38
28
  computeOndoSellPrice,
39
29
  computePrice,
40
30
  computeSlip,
41
- decodeSwappedOutputAmount,
42
31
  formattedPricePerShare,
43
32
  generatePKCEParams,
33
+ isOndoNotTradableError,
44
34
  isSwapAvailable,
45
35
  offerDisplayTokens,
46
36
  ondoQuoteOfferDeadline,
37
+ resolveCentrifugeVaults,
47
38
  superstateSwapContractAddress,
48
39
  swapSpender
49
- } from "../chunk-KRA6EM2L.js";
40
+ } from "../chunk-PWGUKS4Q.js";
41
+ import {
42
+ ClientCredentialsOAuth,
43
+ OAuthRefreshToken,
44
+ OAuthSession
45
+ } from "../chunk-MJ6YXZWH.js";
50
46
  import {
51
47
  AllowWalletResponse,
52
48
  Asset,
@@ -55,11 +51,22 @@ import {
55
51
  AssetIconUrl,
56
52
  AssetId,
57
53
  AssetSymbol,
54
+ AsyncOfferDetail,
58
55
  Blockchain,
59
56
  BlockchainAmount,
60
57
  Bps,
58
+ CentrifugeAssets,
59
+ CentrifugeDepositPosition,
60
+ CentrifugeNamespaceImpl,
61
+ CentrifugeRedeemPosition,
62
+ CentrifugeShares,
63
+ CentrifugeVaultBuyTransaction,
64
+ CentrifugeVaultClaimProceedsTransaction,
65
+ CentrifugeVaultClaimTransaction,
66
+ CentrifugeVaultLeg,
67
+ CentrifugeVaultLegId,
68
+ CentrifugeVaultStatus,
61
69
  Chain,
62
- ClientCredentialsOAuth,
63
70
  CoinListTokenSaleNamespaceImpl,
64
71
  ConnectExternalWalletParams,
65
72
  CreateParticipationParams,
@@ -67,7 +74,6 @@ import {
67
74
  Cursor,
68
75
  DecimalString,
69
76
  DocumentSubmission,
70
- ERC20_ABI,
71
77
  ETHEREUM_CHAINS,
72
78
  EpochMillis,
73
79
  Erc20NamespaceImpl,
@@ -94,8 +100,6 @@ import {
94
100
  NA_AMOUNT_ASSET_UI,
95
101
  NotAuthenticatedError,
96
102
  NotImplementedError,
97
- OAuthRefreshToken,
98
- OAuthSession,
99
103
  Offer,
100
104
  OfferDetail,
101
105
  OfferEditorial,
@@ -108,6 +112,7 @@ import {
108
112
  OfferSlug,
109
113
  OfferSwapContract,
110
114
  OfferToken,
115
+ OfferVaultContract,
111
116
  OndoBuyTransaction,
112
117
  OndoNamespaceImpl,
113
118
  OndoQuote,
@@ -128,13 +133,13 @@ import {
128
133
  RequirementsNamespaceImpl,
129
134
  SOLANA_CHAINS,
130
135
  STABLE_DECIMALS,
131
- SUPERSTATE_SWAP_ABI,
132
136
  Seconds,
133
137
  ShortenedWalletAddress,
134
138
  SolanaChain,
135
139
  StablecoinSymbol,
136
140
  SuperstateSwapNamespaceImpl,
137
141
  SwapPreview,
142
+ SwapQuote,
138
143
  SwapStatus,
139
144
  TermItem,
140
145
  Ticker,
@@ -152,7 +157,6 @@ import {
152
157
  assetAmount,
153
158
  blockchainAmountFromRawOrThrow,
154
159
  chainFromId,
155
- fetchAllPages,
156
160
  formatAmount,
157
161
  formatBpsAsPercent,
158
162
  formatCompactAmount,
@@ -170,7 +174,7 @@ import {
170
174
  txExplorerUrl,
171
175
  usdAmount,
172
176
  viemChain
173
- } from "../chunk-BNMF2HMW.js";
177
+ } from "../chunk-SVPFFLIT.js";
174
178
  export {
175
179
  AllowWalletResponse,
176
180
  Asset,
@@ -179,11 +183,22 @@ export {
179
183
  AssetIconUrl,
180
184
  AssetId,
181
185
  AssetSymbol,
186
+ AsyncOfferDetail,
182
187
  AuthorizationCode,
183
- BPS_DENOM,
184
188
  Blockchain,
185
189
  BlockchainAmount,
186
190
  Bps,
191
+ CentrifugeAssets,
192
+ CentrifugeDepositPosition,
193
+ CentrifugeNamespaceImpl,
194
+ CentrifugeRedeemPosition,
195
+ CentrifugeShares,
196
+ CentrifugeVaultBuyTransaction,
197
+ CentrifugeVaultClaimProceedsTransaction,
198
+ CentrifugeVaultClaimTransaction,
199
+ CentrifugeVaultLeg,
200
+ CentrifugeVaultLegId,
201
+ CentrifugeVaultStatus,
187
202
  Chain,
188
203
  ClientCredentialsOAuth,
189
204
  ClientId,
@@ -196,12 +211,9 @@ export {
196
211
  CreateWalletOwnershipChallengeParams,
197
212
  Cursor,
198
213
  DEFAULT_AMOUNT_TO_COMPUTE_PRICE,
199
- DEFAULT_ONDO_AMOUNT_TO_COMPUTE_PRICE,
200
- DEFAULT_ONDO_SELL_TOKENS_TO_COMPUTE_PRICE,
201
214
  DEFAULT_SLIPPAGE_BPS,
202
215
  DecimalString,
203
216
  DocumentSubmission,
204
- ERC20_ABI,
205
217
  ETHEREUM_CHAINS,
206
218
  EpochMillis,
207
219
  Erc20NamespaceImpl,
@@ -230,10 +242,7 @@ export {
230
242
  NotImplementedError,
231
243
  OAuthRefreshToken,
232
244
  OAuthSession,
233
- ONDO_POLL_INTERVAL_MS,
234
- ONDO_QUOTE_MAX_TTL_MS,
235
- ONDO_SETTLEMENT_ASSET,
236
- ONDO_SUPPORTED_INPUT_ASSETS,
245
+ ONDO_NOT_TRADABLE_CODE,
237
246
  Offer,
238
247
  OfferDetail,
239
248
  OfferEditorial,
@@ -246,6 +255,7 @@ export {
246
255
  OfferSlug,
247
256
  OfferSwapContract,
248
257
  OfferToken,
258
+ OfferVaultContract,
249
259
  OffersNamespaceImpl,
250
260
  OndoBuyTransaction,
251
261
  OndoNamespaceImpl,
@@ -273,7 +283,6 @@ export {
273
283
  STABLE_DECIMALS,
274
284
  SUPERSTATE_ISSUER_NAME,
275
285
  SUPERSTATE_SUPPORTED_INPUT_ASSETS,
276
- SUPERSTATE_SWAP_ABI,
277
286
  SUPERSTATE_SWAP_CONTRACT_ADDRESS_SEPOLIA,
278
287
  SWAP_LEVEL,
279
288
  SWAP_POLL_INTERVAL_MS,
@@ -298,15 +307,12 @@ export {
298
307
  USDC_SYMBOL,
299
308
  USDT,
300
309
  USDT_SYMBOL,
301
- User,
302
- UserEmail,
303
- UserId,
304
310
  ValidationError,
305
311
  WalletAddress,
306
312
  WalletOwnershipChallenge,
313
+ WalletSelection,
307
314
  WalletsNamespaceImpl,
308
315
  apiErrorCode,
309
- applyBps,
310
316
  assertUint256,
311
317
  assetAmount,
312
318
  blockchainAmountFromRawOrThrow,
@@ -315,8 +321,6 @@ export {
315
321
  computeOndoSellPrice,
316
322
  computePrice,
317
323
  computeSlip,
318
- decodeSwappedOutputAmount,
319
- fetchAllPages,
320
324
  formatAmount,
321
325
  formatBpsAsPercent,
322
326
  formatCompactAmount,
@@ -330,11 +334,13 @@ export {
330
334
  isChain,
331
335
  isExpired,
332
336
  isOfferType,
337
+ isOndoNotTradableError,
333
338
  isSwapAvailable,
334
339
  offerDisplayTokens,
335
340
  ondoQuoteOfferDeadline,
336
341
  parseBlockchainAmount,
337
342
  parseUint256,
343
+ resolveCentrifugeVaults,
338
344
  shortenAddress,
339
345
  superstateSwapContractAddress,
340
346
  swapSpender,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coinlist-co/react",
3
- "version": "0.12.2-rc.0fda52c",
3
+ "version": "0.12.2-rc.0ff2d03",
4
4
  "description": "CoinList Partner SDK",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -9,7 +9,9 @@
9
9
  "build:css": "node ./scripts/build-css.mjs",
10
10
  "build:js": "tsup",
11
11
  "clean:tarballs": "rm -f ./coinlist-react-*.tgz ./coinlist-co-react-*.tgz",
12
- "verify:pack": "node ./scripts/check-pack.mjs",
12
+ "verify:pack": "node ./scripts/check-pack.mjs && node ./scripts/check-types.mjs && publint --strict && attw --pack . --profile esm-only",
13
+ "api:check": "npm run build && node ./scripts/api-report.mjs",
14
+ "api:update": "npm run build && node ./scripts/api-report.mjs --local",
13
15
  "verify:release-pr": "node ./scripts/check-release-pr.mjs",
14
16
  "pack": "npm run clean:tarballs && npm run build && npm run verify:pack && npm pack",
15
17
  "dev": "tsup --watch",
@@ -26,43 +28,44 @@
26
28
  "deslop:baseline": "deslop baseline .",
27
29
  "lint": "npm run biome:check && npm run deslop",
28
30
  "lint:fix": "deslop fix . && biome check . --write --unsafe",
29
- "check": "npm run typecheck && npm run lint && npm run build && npm run verify:pack && npm run storybook:build && npm run test && npm run test:e2e && npm run test:e2e:browser",
31
+ "check": "npm run typecheck && npm run lint && npm run api:check && npm run verify:pack && npm run storybook:build && npm run test && npm run test:e2e && npm run test:e2e:browser",
30
32
  "fix": "npm run lint:fix"
31
33
  },
32
- "main": "./dist/client/index.cjs",
33
- "module": "./dist/client/index.js",
34
34
  "types": "./dist/client/index.d.ts",
35
35
  "exports": {
36
36
  ".": {
37
37
  "types": "./dist/client/index.d.ts",
38
- "import": "./dist/client/index.js",
39
- "require": "./dist/client/index.cjs"
38
+ "default": "./dist/client/index.js"
40
39
  },
41
40
  "./server": {
42
41
  "types": "./dist/server/index.d.ts",
43
- "import": "./dist/server/index.js",
44
- "require": "./dist/server/index.cjs"
42
+ "default": "./dist/server/index.js"
45
43
  },
46
44
  "./universal": {
47
45
  "types": "./dist/universal/index.d.ts",
48
- "import": "./dist/universal/index.js",
49
- "require": "./dist/universal/index.cjs"
50
- }
46
+ "default": "./dist/universal/index.js"
47
+ },
48
+ "./package.json": "./package.json"
51
49
  },
52
50
  "files": [
53
51
  "dist",
54
52
  "README.md"
55
53
  ],
56
54
  "sideEffects": false,
55
+ "engines": {
56
+ "node": "^20.19.0 || >=22.12.0"
57
+ },
57
58
  "peerDependencies": {
58
- "react": ">=18.0.0",
59
- "react-dom": ">=18.0.0",
59
+ "react": "^18.0.0 || ^19.0.0",
60
+ "react-dom": "^18.0.0 || ^19.0.0",
60
61
  "viem": "^2.0.0"
61
62
  },
62
63
  "devDependencies": {
64
+ "@arethetypeswrong/cli": "^0.18.5",
63
65
  "@biomejs/biome": "^2.5.13",
64
66
  "@fast-check/vitest": "^0.5.0",
65
67
  "@ivy-apps/deslop": "^0.11.1",
68
+ "@microsoft/api-extractor": "^7.59.4",
66
69
  "@storybook/addon-docs": "^10.2.15",
67
70
  "@storybook/addon-themes": "^10.2.15",
68
71
  "@storybook/react": "^10.2.15",
@@ -80,6 +83,7 @@
80
83
  "jsdom": "^30.0.1",
81
84
  "msw": "^2.12.10",
82
85
  "playwright": "1.63.0",
86
+ "publint": "^0.3.25",
83
87
  "react": "^19.0.0",
84
88
  "react-dom": "^19.0.0",
85
89
  "storybook": "^10.2.15",