@coinlist-co/react 0.10.0 → 0.11.0

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 (41) hide show
  1. package/README.md +32 -0
  2. package/dist/{chunk-GSSAB4K5.js → chunk-B2HCVPCQ.js} +225 -247
  3. package/dist/chunk-B2HCVPCQ.js.map +1 -0
  4. package/dist/chunk-KDGNDAHA.js +146 -0
  5. package/dist/chunk-KDGNDAHA.js.map +1 -0
  6. package/dist/chunk-UIIXXLA7.js +1863 -0
  7. package/dist/chunk-UIIXXLA7.js.map +1 -0
  8. package/dist/client/index.cjs +10559 -3442
  9. package/dist/client/index.cjs.map +1 -1
  10. package/dist/client/index.d.cts +4219 -862
  11. package/dist/client/index.d.ts +4219 -862
  12. package/dist/client/index.js +8729 -2370
  13. package/dist/client/index.js.map +1 -1
  14. package/dist/collections-BhDkYmzV.d.cts +65 -0
  15. package/dist/collections-CZhHoQHr.d.ts +65 -0
  16. package/dist/config-B5mwS_2l.d.cts +1926 -0
  17. package/dist/config-B5mwS_2l.d.ts +1926 -0
  18. package/dist/server/index.cjs +981 -464
  19. package/dist/server/index.cjs.map +1 -1
  20. package/dist/server/index.d.cts +190 -163
  21. package/dist/server/index.d.ts +190 -163
  22. package/dist/server/index.js +151 -156
  23. package/dist/server/index.js.map +1 -1
  24. package/dist/shared/index.cjs +1810 -907
  25. package/dist/shared/index.cjs.map +1 -1
  26. package/dist/shared/index.d.cts +243 -132
  27. package/dist/shared/index.d.ts +243 -132
  28. package/dist/shared/index.js +102 -114
  29. package/dist/shared/index.js.map +1 -1
  30. package/package.json +10 -7
  31. package/dist/chunk-7BJ2HAG7.js +0 -442
  32. package/dist/chunk-7BJ2HAG7.js.map +0 -1
  33. package/dist/chunk-AAER5LOL.js +0 -22
  34. package/dist/chunk-AAER5LOL.js.map +0 -1
  35. package/dist/chunk-GSSAB4K5.js.map +0 -1
  36. package/dist/chunk-TUZKKFNW.js +0 -836
  37. package/dist/chunk-TUZKKFNW.js.map +0 -1
  38. package/dist/collections-CJ24dOda.d.cts +0 -28
  39. package/dist/collections-ZYLKp8JB.d.ts +0 -28
  40. package/dist/requirement-CDi5NJI8.d.cts +0 -1036
  41. package/dist/requirement-CDi5NJI8.d.ts +0 -1036
@@ -1,5 +1,4 @@
1
1
  import {
2
- AssetIconUrl,
3
2
  AuthorizationCode,
4
3
  BPS_DENOM,
5
4
  ClientId,
@@ -7,76 +6,84 @@ import {
7
6
  CodeChallenge,
8
7
  CodeVerifier,
9
8
  DEFAULT_AMOUNT_TO_COMPUTE_PRICE,
9
+ DEFAULT_ONDO_AMOUNT_TO_COMPUTE_PRICE,
10
10
  DEFAULT_SLIPPAGE_BPS,
11
11
  ERC20_ABI,
12
- FormattedAmountAssetUi,
13
- FormattedAmountUi,
14
- FormattedPercentUi,
15
- NA_AMOUNT_ASSET_UI,
12
+ ONDO_POLL_INTERVAL_MS,
13
+ ONDO_QUOTE_EXPIRY_THRESHOLD_MS,
14
+ ONDO_SUPPORTED_INPUT_ASSETS,
15
+ OffersNamespaceImpl,
16
16
  PKCEState,
17
17
  RedirectUri,
18
18
  SLIPPAGE_OPTIONS_BPS,
19
+ SUPERSTATE_ISSUER_NAME,
20
+ SUPERSTATE_SUPPORTED_INPUT_ASSETS,
19
21
  SUPERSTATE_SWAP_ABI,
20
22
  SUPERSTATE_SWAP_CONTRACT_ADDRESS_SEPOLIA,
21
- SUPERSTATE_TOS_URL,
22
23
  SWAP_POLL_INTERVAL_MS,
23
- ShortenedWalletAddress,
24
24
  SwapQuote,
25
25
  TOKEN_REGISTRY,
26
- TxExplorerUrl,
27
26
  USDC,
28
27
  USDC_SYMBOL,
29
28
  USDT,
30
29
  USDT_SYMBOL,
30
+ User,
31
+ UserEmail,
32
+ UserId,
31
33
  applyBps,
32
- assetAmount,
34
+ computeOndoPrice,
33
35
  computePrice,
34
36
  computeSlip,
35
37
  decodeSwappedOutputAmount,
36
- formatAmount,
37
- formatBpsAsPercent,
38
- formatCompactAmount,
39
- formatRawAmount,
40
38
  formattedPricePerShare,
41
- formattedUsdPrice,
42
39
  generatePKCEParams,
43
40
  isStopped,
44
- shortenAddress,
45
- usdAmount
46
- } from "../chunk-GSSAB4K5.js";
47
- import {
48
- ClientCredentialsOAuth,
49
- OAuthRefreshToken,
50
- OAuthSession
51
- } from "../chunk-AAER5LOL.js";
41
+ ondoSwapContractAddress,
42
+ superstateSwapContractAddress
43
+ } from "../chunk-B2HCVPCQ.js";
52
44
  import {
53
45
  AllowWalletResponse,
54
46
  Asset,
55
47
  AssetCode,
56
48
  AssetDecimals,
49
+ AssetIconUrl,
57
50
  AssetId,
58
51
  AssetSymbol,
59
52
  Blockchain,
60
53
  BlockchainAmount,
61
54
  Bps,
55
+ Chain,
56
+ ClientCredentialsOAuth,
57
+ CoinListTokenSaleNamespaceImpl,
62
58
  ConnectExternalWalletParams,
63
59
  CreateParticipationParams,
64
60
  CreateWalletOwnershipChallengeParams,
65
61
  Cursor,
62
+ DecimalString,
66
63
  DocumentSubmission,
64
+ ETHEREUM_CHAINS,
67
65
  Erc20NamespaceImpl,
66
+ EthereumChain,
68
67
  EvmContractAddress,
69
68
  EvmWalletAddress,
70
69
  FaqItem,
70
+ FormattedAmountAssetUi,
71
+ FormattedAmountUi,
72
+ FormattedPercentUi,
71
73
  HexEncodedTransactionData,
74
+ HttpError,
72
75
  Iso2CountryCode,
73
76
  KnownAssetSymbol,
74
77
  KycToken,
75
78
  Link,
79
+ MAX_ASSET_DECIMALS,
76
80
  MAX_UINT_256,
77
81
  Milestone,
82
+ NA_AMOUNT_ASSET_UI,
78
83
  NotAuthenticatedError,
79
84
  NotImplementedError,
85
+ OAuthRefreshToken,
86
+ OAuthSession,
80
87
  Offer,
81
88
  OfferDetail,
82
89
  OfferId,
@@ -86,6 +93,11 @@ import {
86
93
  OfferOptionId,
87
94
  OfferOptionSlug,
88
95
  OfferSlug,
96
+ OfferToken,
97
+ OndoNamespaceImpl,
98
+ OndoQuote,
99
+ OndoSwapTransaction,
100
+ OndoTradingStatus,
89
101
  PaginatedResponse,
90
102
  PaginationParams,
91
103
  Participation,
@@ -97,105 +109,47 @@ import {
97
109
  Requirement,
98
110
  RequirementId,
99
111
  RequirementStatusInfo,
112
+ RequirementsNamespaceImpl,
113
+ SOLANA_CHAINS,
114
+ STABLE_DECIMALS,
115
+ ShortenedWalletAddress,
116
+ SolanaChain,
100
117
  StablecoinSymbol,
118
+ SuperstateSwapNamespaceImpl,
101
119
  SwapAuthorization,
102
- SwapNamespaceImpl,
103
120
  SwapPreview,
104
121
  SwapStatus,
105
122
  TermItem,
123
+ Ticker,
106
124
  TokenAllowance,
107
125
  TokenBalance,
108
- TokenSaleNamespaceImpl,
126
+ TokenLogo,
127
+ TokenLogoUrl,
128
+ TokenMetadata,
129
+ TokensNamespaceImpl,
130
+ TxExplorerUrl,
131
+ ValidationError,
109
132
  WalletAddress,
110
133
  WalletOwnershipChallenge,
134
+ WalletsNamespaceImpl,
135
+ apiErrorCode,
111
136
  assertUint256,
112
- fetchAllPages
113
- } from "../chunk-TUZKKFNW.js";
114
-
115
- // src/shared/core/blockchain/chain.ts
116
- function getChainId(chain) {
117
- switch (chain) {
118
- case "ethereum_mainnet":
119
- return 1;
120
- case "ethereum_sepolia":
121
- return 11155111;
122
- default: {
123
- const _exhaustive = chain;
124
- return _exhaustive;
125
- }
126
- }
127
- }
128
- function getNetworkName(chain) {
129
- switch (chain) {
130
- case "ethereum_mainnet":
131
- return "Ethereum";
132
- case "ethereum_sepolia":
133
- return "Ethereum Sepolia";
134
- default: {
135
- const _exhaustive = chain;
136
- return _exhaustive;
137
- }
138
- }
139
- }
140
- function txExplorerUrl(chain, txHash) {
141
- return TxExplorerUrl(`${explorerBaseUrl(chain)}/tx/${txHash}`);
142
- }
143
- function explorerBaseUrl(chain) {
144
- switch (chain) {
145
- case "ethereum_mainnet":
146
- return "https://etherscan.io";
147
- case "ethereum_sepolia":
148
- return "https://sepolia.etherscan.io";
149
- default: {
150
- const _exhaustive = chain;
151
- return _exhaustive;
152
- }
153
- }
154
- }
155
-
156
- // src/shared/core/blockchain/math.ts
157
- import { parseUnits } from "viem";
158
- function parseBlockchainAmount(amount, decimals) {
159
- const trimmed = amount.trim();
160
- if (trimmed === "") return { valid: false, reason: { type: "empty" } };
161
- if (trimmed.startsWith("-")) {
162
- return { valid: false, reason: { type: "negative" } };
163
- }
164
- if (/[eE]/.test(trimmed)) {
165
- return { valid: false, reason: { type: "invalid-format" } };
166
- }
167
- if (!/^\d+(\.\d+)?$/.test(trimmed)) {
168
- return { valid: false, reason: { type: "invalid-format" } };
169
- }
170
- const [, fraction = ""] = trimmed.split(".");
171
- if (fraction.length > decimals) {
172
- return {
173
- valid: false,
174
- reason: { type: "too-many-decimals", maxDecimals: decimals }
175
- };
176
- }
177
- try {
178
- return {
179
- valid: true,
180
- amount: BlockchainAmount({
181
- raw: parseUnits(trimmed, decimals),
182
- decimals
183
- })
184
- };
185
- } catch {
186
- return { valid: false, reason: { type: "invalid-format" } };
187
- }
188
- }
189
-
190
- // src/shared/types/user.ts
191
- var UserId = (value) => value;
192
- var UserEmail = (value) => value;
193
- var User = {
194
- fromDto: (dto) => ({
195
- id: UserId(dto.id),
196
- email: UserEmail(dto.email)
197
- })
198
- };
137
+ assetAmount,
138
+ blockchainAmountFromRawOrThrow,
139
+ chainFromId,
140
+ fetchAllPages,
141
+ formatAmount,
142
+ formatBpsAsPercent,
143
+ formatCompactAmount,
144
+ formatRawAmount,
145
+ formattedUsdPrice,
146
+ getChainId,
147
+ getNetworkName,
148
+ parseBlockchainAmount,
149
+ shortenAddress,
150
+ txExplorerUrl,
151
+ usdAmount
152
+ } from "../chunk-UIIXXLA7.js";
199
153
  export {
200
154
  AllowWalletResponse,
201
155
  Asset,
@@ -209,20 +163,26 @@ export {
209
163
  Blockchain,
210
164
  BlockchainAmount,
211
165
  Bps,
166
+ Chain,
212
167
  ClientCredentialsOAuth,
213
168
  ClientId,
214
169
  ClientSecret,
215
170
  CodeChallenge,
216
171
  CodeVerifier,
172
+ CoinListTokenSaleNamespaceImpl,
217
173
  ConnectExternalWalletParams,
218
174
  CreateParticipationParams,
219
175
  CreateWalletOwnershipChallengeParams,
220
176
  Cursor,
221
177
  DEFAULT_AMOUNT_TO_COMPUTE_PRICE,
178
+ DEFAULT_ONDO_AMOUNT_TO_COMPUTE_PRICE,
222
179
  DEFAULT_SLIPPAGE_BPS,
180
+ DecimalString,
223
181
  DocumentSubmission,
224
182
  ERC20_ABI,
183
+ ETHEREUM_CHAINS,
225
184
  Erc20NamespaceImpl,
185
+ EthereumChain,
226
186
  EvmContractAddress,
227
187
  EvmWalletAddress,
228
188
  FaqItem,
@@ -230,10 +190,12 @@ export {
230
190
  FormattedAmountUi,
231
191
  FormattedPercentUi,
232
192
  HexEncodedTransactionData,
193
+ HttpError,
233
194
  Iso2CountryCode,
234
195
  KnownAssetSymbol,
235
196
  KycToken,
236
197
  Link,
198
+ MAX_ASSET_DECIMALS,
237
199
  MAX_UINT_256,
238
200
  Milestone,
239
201
  NA_AMOUNT_ASSET_UI,
@@ -241,6 +203,9 @@ export {
241
203
  NotImplementedError,
242
204
  OAuthRefreshToken,
243
205
  OAuthSession,
206
+ ONDO_POLL_INTERVAL_MS,
207
+ ONDO_QUOTE_EXPIRY_THRESHOLD_MS,
208
+ ONDO_SUPPORTED_INPUT_ASSETS,
244
209
  Offer,
245
210
  OfferDetail,
246
211
  OfferId,
@@ -250,6 +215,12 @@ export {
250
215
  OfferOptionId,
251
216
  OfferOptionSlug,
252
217
  OfferSlug,
218
+ OfferToken,
219
+ OffersNamespaceImpl,
220
+ OndoNamespaceImpl,
221
+ OndoQuote,
222
+ OndoSwapTransaction,
223
+ OndoTradingStatus,
253
224
  PKCEState,
254
225
  PaginatedResponse,
255
226
  PaginationParams,
@@ -263,23 +234,32 @@ export {
263
234
  Requirement,
264
235
  RequirementId,
265
236
  RequirementStatusInfo,
237
+ RequirementsNamespaceImpl,
266
238
  SLIPPAGE_OPTIONS_BPS,
239
+ SOLANA_CHAINS,
240
+ STABLE_DECIMALS,
241
+ SUPERSTATE_ISSUER_NAME,
242
+ SUPERSTATE_SUPPORTED_INPUT_ASSETS,
267
243
  SUPERSTATE_SWAP_ABI,
268
244
  SUPERSTATE_SWAP_CONTRACT_ADDRESS_SEPOLIA,
269
- SUPERSTATE_TOS_URL,
270
245
  SWAP_POLL_INTERVAL_MS,
271
246
  ShortenedWalletAddress,
247
+ SolanaChain,
272
248
  StablecoinSymbol,
249
+ SuperstateSwapNamespaceImpl,
273
250
  SwapAuthorization,
274
- SwapNamespaceImpl,
275
251
  SwapPreview,
276
252
  SwapQuote,
277
253
  SwapStatus,
278
254
  TOKEN_REGISTRY,
279
255
  TermItem,
256
+ Ticker,
280
257
  TokenAllowance,
281
258
  TokenBalance,
282
- TokenSaleNamespaceImpl,
259
+ TokenLogo,
260
+ TokenLogoUrl,
261
+ TokenMetadata,
262
+ TokensNamespaceImpl,
283
263
  TxExplorerUrl,
284
264
  USDC,
285
265
  USDC_SYMBOL,
@@ -288,11 +268,17 @@ export {
288
268
  User,
289
269
  UserEmail,
290
270
  UserId,
271
+ ValidationError,
291
272
  WalletAddress,
292
273
  WalletOwnershipChallenge,
274
+ WalletsNamespaceImpl,
275
+ apiErrorCode,
293
276
  applyBps,
294
277
  assertUint256,
295
278
  assetAmount,
279
+ blockchainAmountFromRawOrThrow,
280
+ chainFromId,
281
+ computeOndoPrice,
296
282
  computePrice,
297
283
  computeSlip,
298
284
  decodeSwappedOutputAmount,
@@ -307,8 +293,10 @@ export {
307
293
  getChainId,
308
294
  getNetworkName,
309
295
  isStopped,
296
+ ondoSwapContractAddress,
310
297
  parseBlockchainAmount,
311
298
  shortenAddress,
299
+ superstateSwapContractAddress,
312
300
  txExplorerUrl,
313
301
  usdAmount
314
302
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/shared/core/blockchain/chain.ts","../../src/shared/core/blockchain/math.ts","../../src/shared/types/user.ts"],"sourcesContent":["import type { Hash } from 'viem';\nimport type { EthereumChain } from '@/shared/types/blockchain/core';\nimport { TxExplorerUrl } from '@/shared/types/blockchain/ui';\n\nexport function getChainId(chain: EthereumChain): number {\n switch (chain) {\n case 'ethereum_mainnet':\n return 1;\n case 'ethereum_sepolia':\n return 11155111;\n default: {\n const _exhaustive: never = chain;\n return _exhaustive;\n }\n }\n}\n\nexport function getNetworkName(chain: EthereumChain): string {\n switch (chain) {\n case 'ethereum_mainnet':\n return 'Ethereum';\n case 'ethereum_sepolia':\n return 'Ethereum Sepolia';\n default: {\n const _exhaustive: never = chain;\n return _exhaustive;\n }\n }\n}\n\nexport function txExplorerUrl(\n chain: EthereumChain,\n txHash: Hash\n): TxExplorerUrl {\n return TxExplorerUrl(`${explorerBaseUrl(chain)}/tx/${txHash}`);\n}\n\nfunction explorerBaseUrl(chain: EthereumChain): string {\n switch (chain) {\n case 'ethereum_mainnet':\n return 'https://etherscan.io';\n case 'ethereum_sepolia':\n return 'https://sepolia.etherscan.io';\n default: {\n const _exhaustive: never = chain;\n return _exhaustive;\n }\n }\n}\n","import { parseUnits } from 'viem';\nimport {\n type AssetDecimals,\n BlockchainAmount,\n} from '@/shared/types/blockchain/core';\n\n/** A typed, i18n-agnostic reason a raw amount string failed to parse. */\nexport type AmountParseErrorReason =\n | { type: 'empty' }\n | { type: 'negative' }\n | { type: 'invalid-format' }\n | { type: 'too-many-decimals'; maxDecimals: AssetDecimals };\n\nexport type AmountParseResult =\n | { valid: true; amount: BlockchainAmount }\n | { valid: false; reason: AmountParseErrorReason };\n\n/**\n * Parses a user-entered decimal string into a {@link BlockchainAmount} at the\n * given token decimals. Rejects scientific notation, negatives, malformed\n * input, and more fractional digits than the token supports — surfacing a\n * typed {@link AmountParseErrorReason} so callers own the display copy.\n */\nexport function parseBlockchainAmount(\n amount: string,\n decimals: AssetDecimals\n): AmountParseResult {\n const trimmed = amount.trim();\n if (trimmed === '') return { valid: false, reason: { type: 'empty' } };\n if (trimmed.startsWith('-')) {\n return { valid: false, reason: { type: 'negative' } };\n }\n // viem accepts \"1e18\" as scientific notation — reject it explicitly\n if (/[eE]/.test(trimmed)) {\n return { valid: false, reason: { type: 'invalid-format' } };\n }\n // reject bare decimal point or missing digits on either side\n if (!/^\\d+(\\.\\d+)?$/.test(trimmed)) {\n return { valid: false, reason: { type: 'invalid-format' } };\n }\n const [, fraction = ''] = trimmed.split('.');\n if (fraction.length > decimals) {\n return {\n valid: false,\n reason: { type: 'too-many-decimals', maxDecimals: decimals },\n };\n }\n try {\n return {\n valid: true,\n amount: BlockchainAmount({\n raw: parseUnits(trimmed, decimals),\n decimals,\n }),\n };\n } catch {\n return { valid: false, reason: { type: 'invalid-format' } };\n }\n}\n","import type { UserDto } from '@/shared/types/dto/user';\nimport type { Newtype } from '@/shared/types/newtype';\n\nexport type UserId = Newtype<string, 'UserId'>;\nexport const UserId = (value: string) => value as UserId;\nexport type UserEmail = Newtype<string, 'UserEmail'>;\nexport const UserEmail = (value: string) => value as UserEmail;\n\nexport type User = {\n id: UserId;\n email: UserEmail;\n};\n\nexport const User = {\n fromDto: (dto: UserDto): User => ({\n id: UserId(dto.id),\n email: UserEmail(dto.email),\n }),\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIO,SAAS,WAAW,OAA8B;AACvD,UAAQ,OAAO;AAAA,IACb,KAAK;AACH,aAAO;AAAA,IACT,KAAK;AACH,aAAO;AAAA,IACT,SAAS;AACP,YAAM,cAAqB;AAC3B,aAAO;AAAA,IACT;AAAA,EACF;AACF;AAEO,SAAS,eAAe,OAA8B;AAC3D,UAAQ,OAAO;AAAA,IACb,KAAK;AACH,aAAO;AAAA,IACT,KAAK;AACH,aAAO;AAAA,IACT,SAAS;AACP,YAAM,cAAqB;AAC3B,aAAO;AAAA,IACT;AAAA,EACF;AACF;AAEO,SAAS,cACd,OACA,QACe;AACf,SAAO,cAAc,GAAG,gBAAgB,KAAK,CAAC,OAAO,MAAM,EAAE;AAC/D;AAEA,SAAS,gBAAgB,OAA8B;AACrD,UAAQ,OAAO;AAAA,IACb,KAAK;AACH,aAAO;AAAA,IACT,KAAK;AACH,aAAO;AAAA,IACT,SAAS;AACP,YAAM,cAAqB;AAC3B,aAAO;AAAA,IACT;AAAA,EACF;AACF;;;AChDA,SAAS,kBAAkB;AAuBpB,SAAS,sBACd,QACA,UACmB;AACnB,QAAM,UAAU,OAAO,KAAK;AAC5B,MAAI,YAAY,GAAI,QAAO,EAAE,OAAO,OAAO,QAAQ,EAAE,MAAM,QAAQ,EAAE;AACrE,MAAI,QAAQ,WAAW,GAAG,GAAG;AAC3B,WAAO,EAAE,OAAO,OAAO,QAAQ,EAAE,MAAM,WAAW,EAAE;AAAA,EACtD;AAEA,MAAI,OAAO,KAAK,OAAO,GAAG;AACxB,WAAO,EAAE,OAAO,OAAO,QAAQ,EAAE,MAAM,iBAAiB,EAAE;AAAA,EAC5D;AAEA,MAAI,CAAC,gBAAgB,KAAK,OAAO,GAAG;AAClC,WAAO,EAAE,OAAO,OAAO,QAAQ,EAAE,MAAM,iBAAiB,EAAE;AAAA,EAC5D;AACA,QAAM,CAAC,EAAE,WAAW,EAAE,IAAI,QAAQ,MAAM,GAAG;AAC3C,MAAI,SAAS,SAAS,UAAU;AAC9B,WAAO;AAAA,MACL,OAAO;AAAA,MACP,QAAQ,EAAE,MAAM,qBAAqB,aAAa,SAAS;AAAA,IAC7D;AAAA,EACF;AACA,MAAI;AACF,WAAO;AAAA,MACL,OAAO;AAAA,MACP,QAAQ,iBAAiB;AAAA,QACvB,KAAK,WAAW,SAAS,QAAQ;AAAA,QACjC;AAAA,MACF,CAAC;AAAA,IACH;AAAA,EACF,QAAQ;AACN,WAAO,EAAE,OAAO,OAAO,QAAQ,EAAE,MAAM,iBAAiB,EAAE;AAAA,EAC5D;AACF;;;ACtDO,IAAM,SAAS,CAAC,UAAkB;AAElC,IAAM,YAAY,CAAC,UAAkB;AAOrC,IAAM,OAAO;AAAA,EAClB,SAAS,CAAC,SAAwB;AAAA,IAChC,IAAI,OAAO,IAAI,EAAE;AAAA,IACjB,OAAO,UAAU,IAAI,KAAK;AAAA,EAC5B;AACF;","names":[]}
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coinlist-co/react",
3
- "version": "0.10.0",
3
+ "version": "0.11.0",
4
4
  "description": "CoinList Partner SDK",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -9,7 +9,8 @@
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
- "pack": "npm run clean:tarballs && npm run build && npm pack",
12
+ "verify:pack": "node ./scripts/check-pack.mjs",
13
+ "pack": "npm run clean:tarballs && npm run build && npm run verify:pack && npm pack",
13
14
  "dev": "tsup --watch",
14
15
  "test": "vitest run",
15
16
  "test:ci": "vitest run --coverage",
@@ -20,10 +21,11 @@
20
21
  "storybook:build": "npm run build:css && storybook build",
21
22
  "typecheck": "tsc --noEmit",
22
23
  "biome:check": "biome check .",
23
- "deslop": "deslop --check",
24
+ "deslop": "deslop check .",
25
+ "deslop:baseline": "deslop baseline .",
24
26
  "lint": "npm run biome:check && npm run deslop",
25
- "lint:fix": "deslop && biome check . --write --unsafe",
26
- "check": "npm run typecheck && npm run lint && npm run build && npm run storybook:build && npm run test && npm run test:e2e && npm run test:e2e:browser",
27
+ "lint:fix": "deslop fix . && biome check . --write --unsafe",
28
+ "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",
27
29
  "fix": "npm run lint:fix"
28
30
  },
29
31
  "main": "./dist/client/index.cjs",
@@ -48,7 +50,7 @@
48
50
  },
49
51
  "files": [
50
52
  "dist",
51
- "README.MD"
53
+ "README.md"
52
54
  ],
53
55
  "sideEffects": false,
54
56
  "peerDependencies": {
@@ -58,7 +60,8 @@
58
60
  },
59
61
  "devDependencies": {
60
62
  "@biomejs/biome": "^2.4.4",
61
- "@ivy-apps/deslop": "^0.6.1",
63
+ "@fast-check/vitest": "^0.4.1",
64
+ "@ivy-apps/deslop": "^0.10.0",
62
65
  "@storybook/addon-docs": "^10.2.15",
63
66
  "@storybook/addon-themes": "^10.2.15",
64
67
  "@storybook/react": "^10.2.15",