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

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-STAHYDLY.js → chunk-AYBP3HRJ.js} +10 -10
  3. package/dist/chunk-AYBP3HRJ.js.map +1 -0
  4. package/dist/{chunk-BNMF2HMW.js → chunk-GOUUYOPZ.js} +1168 -796
  5. package/dist/chunk-GOUUYOPZ.js.map +1 -0
  6. package/dist/{chunk-KRA6EM2L.js → chunk-LBIFCRFP.js} +162 -186
  7. package/dist/chunk-LBIFCRFP.js.map +1 -0
  8. package/dist/chunk-MJ6YXZWH.js +22 -0
  9. package/dist/chunk-MJ6YXZWH.js.map +1 -0
  10. package/dist/client/index.d.ts +3042 -4221
  11. package/dist/client/index.js +8471 -5549
  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-Bzgi6FbG.d.ts} +2150 -2847
  17. package/dist/{token-registry-snapshot-C1NxdBmF.d.ts → token-registry-snapshot-BmjXOvvg.d.ts} +74 -42
  18. package/dist/universal/index.d.ts +64 -983
  19. package/dist/universal/index.js +36 -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,31 @@ 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,
47
37
  superstateSwapContractAddress,
48
38
  swapSpender
49
- } from "../chunk-KRA6EM2L.js";
39
+ } from "../chunk-LBIFCRFP.js";
40
+ import {
41
+ ClientCredentialsOAuth,
42
+ OAuthRefreshToken,
43
+ OAuthSession
44
+ } from "../chunk-MJ6YXZWH.js";
50
45
  import {
51
46
  AllowWalletResponse,
52
47
  Asset,
@@ -55,11 +50,20 @@ import {
55
50
  AssetIconUrl,
56
51
  AssetId,
57
52
  AssetSymbol,
53
+ AsyncOfferDetail,
58
54
  Blockchain,
59
55
  BlockchainAmount,
60
56
  Bps,
57
+ CentrifugeNamespaceImpl,
58
+ CentrifugeVaultBuyTransaction,
59
+ CentrifugeVaultClaimProceedsTransaction,
60
+ CentrifugeVaultClaimTransaction,
61
+ CentrifugeVaultLeg,
62
+ CentrifugeVaultLegId,
63
+ CentrifugeVaultPosition,
64
+ CentrifugeVaultRedeemPosition,
65
+ CentrifugeVaultStatus,
61
66
  Chain,
62
- ClientCredentialsOAuth,
63
67
  CoinListTokenSaleNamespaceImpl,
64
68
  ConnectExternalWalletParams,
65
69
  CreateParticipationParams,
@@ -67,7 +71,6 @@ import {
67
71
  Cursor,
68
72
  DecimalString,
69
73
  DocumentSubmission,
70
- ERC20_ABI,
71
74
  ETHEREUM_CHAINS,
72
75
  EpochMillis,
73
76
  Erc20NamespaceImpl,
@@ -94,8 +97,6 @@ import {
94
97
  NA_AMOUNT_ASSET_UI,
95
98
  NotAuthenticatedError,
96
99
  NotImplementedError,
97
- OAuthRefreshToken,
98
- OAuthSession,
99
100
  Offer,
100
101
  OfferDetail,
101
102
  OfferEditorial,
@@ -108,6 +109,7 @@ import {
108
109
  OfferSlug,
109
110
  OfferSwapContract,
110
111
  OfferToken,
112
+ OfferVaultContract,
111
113
  OndoBuyTransaction,
112
114
  OndoNamespaceImpl,
113
115
  OndoQuote,
@@ -128,13 +130,13 @@ import {
128
130
  RequirementsNamespaceImpl,
129
131
  SOLANA_CHAINS,
130
132
  STABLE_DECIMALS,
131
- SUPERSTATE_SWAP_ABI,
132
133
  Seconds,
133
134
  ShortenedWalletAddress,
134
135
  SolanaChain,
135
136
  StablecoinSymbol,
136
137
  SuperstateSwapNamespaceImpl,
137
138
  SwapPreview,
139
+ SwapQuote,
138
140
  SwapStatus,
139
141
  TermItem,
140
142
  Ticker,
@@ -152,7 +154,6 @@ import {
152
154
  assetAmount,
153
155
  blockchainAmountFromRawOrThrow,
154
156
  chainFromId,
155
- fetchAllPages,
156
157
  formatAmount,
157
158
  formatBpsAsPercent,
158
159
  formatCompactAmount,
@@ -170,7 +171,7 @@ import {
170
171
  txExplorerUrl,
171
172
  usdAmount,
172
173
  viemChain
173
- } from "../chunk-BNMF2HMW.js";
174
+ } from "../chunk-GOUUYOPZ.js";
174
175
  export {
175
176
  AllowWalletResponse,
176
177
  Asset,
@@ -179,11 +180,20 @@ export {
179
180
  AssetIconUrl,
180
181
  AssetId,
181
182
  AssetSymbol,
183
+ AsyncOfferDetail,
182
184
  AuthorizationCode,
183
- BPS_DENOM,
184
185
  Blockchain,
185
186
  BlockchainAmount,
186
187
  Bps,
188
+ CentrifugeNamespaceImpl,
189
+ CentrifugeVaultBuyTransaction,
190
+ CentrifugeVaultClaimProceedsTransaction,
191
+ CentrifugeVaultClaimTransaction,
192
+ CentrifugeVaultLeg,
193
+ CentrifugeVaultLegId,
194
+ CentrifugeVaultPosition,
195
+ CentrifugeVaultRedeemPosition,
196
+ CentrifugeVaultStatus,
187
197
  Chain,
188
198
  ClientCredentialsOAuth,
189
199
  ClientId,
@@ -196,12 +206,9 @@ export {
196
206
  CreateWalletOwnershipChallengeParams,
197
207
  Cursor,
198
208
  DEFAULT_AMOUNT_TO_COMPUTE_PRICE,
199
- DEFAULT_ONDO_AMOUNT_TO_COMPUTE_PRICE,
200
- DEFAULT_ONDO_SELL_TOKENS_TO_COMPUTE_PRICE,
201
209
  DEFAULT_SLIPPAGE_BPS,
202
210
  DecimalString,
203
211
  DocumentSubmission,
204
- ERC20_ABI,
205
212
  ETHEREUM_CHAINS,
206
213
  EpochMillis,
207
214
  Erc20NamespaceImpl,
@@ -230,10 +237,7 @@ export {
230
237
  NotImplementedError,
231
238
  OAuthRefreshToken,
232
239
  OAuthSession,
233
- ONDO_POLL_INTERVAL_MS,
234
- ONDO_QUOTE_MAX_TTL_MS,
235
- ONDO_SETTLEMENT_ASSET,
236
- ONDO_SUPPORTED_INPUT_ASSETS,
240
+ ONDO_NOT_TRADABLE_CODE,
237
241
  Offer,
238
242
  OfferDetail,
239
243
  OfferEditorial,
@@ -246,6 +250,7 @@ export {
246
250
  OfferSlug,
247
251
  OfferSwapContract,
248
252
  OfferToken,
253
+ OfferVaultContract,
249
254
  OffersNamespaceImpl,
250
255
  OndoBuyTransaction,
251
256
  OndoNamespaceImpl,
@@ -273,7 +278,6 @@ export {
273
278
  STABLE_DECIMALS,
274
279
  SUPERSTATE_ISSUER_NAME,
275
280
  SUPERSTATE_SUPPORTED_INPUT_ASSETS,
276
- SUPERSTATE_SWAP_ABI,
277
281
  SUPERSTATE_SWAP_CONTRACT_ADDRESS_SEPOLIA,
278
282
  SWAP_LEVEL,
279
283
  SWAP_POLL_INTERVAL_MS,
@@ -298,15 +302,12 @@ export {
298
302
  USDC_SYMBOL,
299
303
  USDT,
300
304
  USDT_SYMBOL,
301
- User,
302
- UserEmail,
303
- UserId,
304
305
  ValidationError,
305
306
  WalletAddress,
306
307
  WalletOwnershipChallenge,
308
+ WalletSelection,
307
309
  WalletsNamespaceImpl,
308
310
  apiErrorCode,
309
- applyBps,
310
311
  assertUint256,
311
312
  assetAmount,
312
313
  blockchainAmountFromRawOrThrow,
@@ -315,8 +316,6 @@ export {
315
316
  computeOndoSellPrice,
316
317
  computePrice,
317
318
  computeSlip,
318
- decodeSwappedOutputAmount,
319
- fetchAllPages,
320
319
  formatAmount,
321
320
  formatBpsAsPercent,
322
321
  formatCompactAmount,
@@ -330,6 +329,7 @@ export {
330
329
  isChain,
331
330
  isExpired,
332
331
  isOfferType,
332
+ isOndoNotTradableError,
333
333
  isSwapAvailable,
334
334
  offerDisplayTokens,
335
335
  ondoQuoteOfferDeadline,
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.4851c6a",
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",