@0xsequence/marketplace-sdk 0.5.3 → 0.5.4

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 (57) hide show
  1. package/dist/{builder-types-wOwfTJpd.d.ts → builder-types-Jl3Ymws8.d.ts} +1 -1
  2. package/dist/{chunk-BZD2LDJJ.js → chunk-7C7ADZ2H.js} +2 -2
  3. package/dist/{chunk-H5YWG6WN.js → chunk-JWNONWD6.js} +136 -90
  4. package/dist/chunk-JWNONWD6.js.map +1 -0
  5. package/dist/{chunk-Y7YTLAO2.js → chunk-TLNRD4BQ.js} +3 -3
  6. package/dist/chunk-WGGZEQHL.js +56 -0
  7. package/dist/chunk-WGGZEQHL.js.map +1 -0
  8. package/dist/{chunk-MWDG7UTB.js → chunk-ZBLU3Q22.js} +1 -1
  9. package/dist/{chunk-BVXIRVEC.js → chunk-ZGVCOQ4I.js} +137 -47
  10. package/dist/chunk-ZGVCOQ4I.js.map +1 -0
  11. package/dist/{create-config-Bltg8Enl.d.ts → create-config-DOUq8Day.d.ts} +2 -2
  12. package/dist/index.d.ts +4 -3
  13. package/dist/index.js +2 -2
  14. package/dist/{sdk-config-B32_2bG3.d.ts → marketplace.gen-D0ADxbfH.d.ts} +1 -24
  15. package/dist/react/_internal/api/index.d.ts +3 -2
  16. package/dist/react/_internal/databeat/index.css +82 -0
  17. package/dist/react/_internal/databeat/index.css.map +1 -0
  18. package/dist/react/_internal/databeat/index.d.ts +68 -0
  19. package/dist/react/_internal/databeat/index.js +26 -0
  20. package/dist/react/_internal/databeat/index.js.map +1 -0
  21. package/dist/react/_internal/index.d.ts +6 -5
  22. package/dist/react/_internal/wagmi/index.d.ts +4 -3
  23. package/dist/react/hooks/index.d.ts +298 -5
  24. package/dist/react/hooks/index.js +7 -3
  25. package/dist/react/index.d.ts +7 -6
  26. package/dist/react/index.js +10 -5
  27. package/dist/react/ui/components/collectible-card/index.d.ts +4 -3
  28. package/dist/react/ui/components/collectible-card/index.js +6 -5
  29. package/dist/react/ui/components/marketplace-logos/index.js +1 -1
  30. package/dist/react/ui/index.d.ts +4 -3
  31. package/dist/react/ui/index.js +6 -5
  32. package/dist/react/ui/modals/_internal/components/actionModal/index.d.ts +4 -3
  33. package/dist/react/ui/modals/_internal/components/actionModal/index.js +4 -4
  34. package/dist/sdk-config-xWkdBdrL.d.ts +24 -0
  35. package/dist/{services-BRBVE0mm.d.ts → services-Dd2MoBTM.d.ts} +2 -1
  36. package/dist/types/index.d.ts +4 -3
  37. package/dist/{types-BY3husBh.d.ts → types-vOfhbBkR.d.ts} +3 -2
  38. package/dist/utils/index.d.ts +4 -3
  39. package/dist/utils/index.js +2 -2
  40. package/package.json +2 -1
  41. package/src/react/_internal/databeat/index.ts +63 -0
  42. package/src/react/_internal/databeat/types.ts +70 -0
  43. package/src/react/hooks/__tests__/useListCollectiblesPaginated.test.tsx +217 -0
  44. package/src/react/hooks/index.ts +1 -0
  45. package/src/react/hooks/useFilters.tsx +9 -3
  46. package/src/react/hooks/useListCollectiblesPaginated.tsx +78 -0
  47. package/src/react/ui/modals/CreateListingModal/hooks/useTransactionSteps.tsx +40 -4
  48. package/src/react/ui/modals/MakeOfferModal/hooks/useTransactionSteps.tsx +26 -2
  49. package/src/react/ui/modals/SellModal/Modal.tsx +3 -1
  50. package/src/react/ui/modals/SellModal/hooks/useSell.tsx +10 -7
  51. package/src/react/ui/modals/SellModal/hooks/useTransactionSteps.tsx +51 -13
  52. package/tsconfig.tsbuildinfo +1 -1
  53. package/dist/chunk-BVXIRVEC.js.map +0 -1
  54. package/dist/chunk-H5YWG6WN.js.map +0 -1
  55. /package/dist/{chunk-BZD2LDJJ.js.map → chunk-7C7ADZ2H.js.map} +0 -0
  56. /package/dist/{chunk-Y7YTLAO2.js.map → chunk-TLNRD4BQ.js.map} +0 -0
  57. /package/dist/{chunk-MWDG7UTB.js.map → chunk-ZBLU3Q22.js.map} +0 -0
@@ -1,4 +1,4 @@
1
- import { O as OrderbookKind } from './sdk-config-B32_2bG3.js';
1
+ import { O as OrderbookKind } from './marketplace.gen-D0ADxbfH.js';
2
2
 
3
3
  declare enum MarketplaceWallet {
4
4
  UNIVERSAL = "UNIVERSAL",
@@ -8,7 +8,7 @@ import {
8
8
  OpenSeaLogo,
9
9
  SequenceLogo,
10
10
  X2y2Logo
11
- } from "./chunk-MWDG7UTB.js";
11
+ } from "./chunk-ZBLU3Q22.js";
12
12
  import {
13
13
  MissingConfigError
14
14
  } from "./chunk-WM4RGBFQ.js";
@@ -171,4 +171,4 @@ export {
171
171
  calculatePriceDifferencePercentage,
172
172
  getMarketplaceDetails
173
173
  };
174
- //# sourceMappingURL=chunk-BZD2LDJJ.js.map
174
+ //# sourceMappingURL=chunk-7C7ADZ2H.js.map
@@ -18,7 +18,7 @@ import {
18
18
  compareAddress,
19
19
  getPresentableChainName,
20
20
  getPublicRpcClient
21
- } from "./chunk-BZD2LDJJ.js";
21
+ } from "./chunk-7C7ADZ2H.js";
22
22
  import {
23
23
  EIP2981_ABI
24
24
  } from "./chunk-3OHM45R3.js";
@@ -1155,7 +1155,8 @@ var fetchFilters = async (args, config) => {
1155
1155
  const collectionFilters = marketplaceConfig.collections.find(
1156
1156
  (c) => compareAddress(c.address, parsedArgs.collectionAddress)
1157
1157
  )?.filterSettings;
1158
- if (!collectionFilters) return filters;
1158
+ if (!collectionFilters?.exclusions || collectionFilters.exclusions.length === 0 || !collectionFilters.filterOrder || collectionFilters.filterOrder.length === 0)
1159
+ return filters;
1159
1160
  const { filterOrder, exclusions } = collectionFilters;
1160
1161
  const sortedFilters = filters.toSorted((a, b) => {
1161
1162
  const aIndex = filterOrder.indexOf(a.name) > -1 ? filterOrder.indexOf(a.name) : filterOrder.length;
@@ -1369,8 +1370,51 @@ var useListCollectibles = (args) => {
1369
1370
  return useInfiniteQuery2(listCollectiblesOptions(args, config));
1370
1371
  };
1371
1372
 
1372
- // src/react/hooks/useListCollectionActivities.tsx
1373
+ // src/react/hooks/useListCollectiblesPaginated.tsx
1373
1374
  import { queryOptions as queryOptions13, useQuery as useQuery13 } from "@tanstack/react-query";
1375
+ import { z as z14 } from "zod";
1376
+ var UseListCollectiblesPaginatedArgsSchema = listCollectiblesArgsSchema.omit({
1377
+ contractAddress: true
1378
+ }).extend({
1379
+ collectionAddress: AddressSchema,
1380
+ chainId: ChainIdSchema.pipe(z14.coerce.string()),
1381
+ query: z14.object({
1382
+ enabled: z14.boolean().optional(),
1383
+ page: z14.number().optional().default(1),
1384
+ pageSize: z14.number().optional().default(30)
1385
+ }).optional().default({})
1386
+ });
1387
+ var fetchCollectiblesPaginated = async (args, marketplaceClient) => {
1388
+ const parsedArgs = UseListCollectiblesPaginatedArgsSchema.parse(args);
1389
+ const page = {
1390
+ page: parsedArgs.query?.page ?? 1,
1391
+ pageSize: parsedArgs.query?.pageSize ?? 30
1392
+ };
1393
+ const arg = {
1394
+ ...parsedArgs,
1395
+ contractAddress: parsedArgs.collectionAddress,
1396
+ page
1397
+ };
1398
+ return marketplaceClient.listCollectibles(arg);
1399
+ };
1400
+ var listCollectiblesPaginatedOptions = (args, config) => {
1401
+ const marketplaceClient = getMarketplaceClient(
1402
+ args.chainId,
1403
+ config
1404
+ );
1405
+ return queryOptions13({
1406
+ queryKey: [...collectableKeys.lists, "paginated", args],
1407
+ queryFn: () => fetchCollectiblesPaginated(args, marketplaceClient),
1408
+ enabled: args.query?.enabled ?? true
1409
+ });
1410
+ };
1411
+ var useListCollectiblesPaginated = (args) => {
1412
+ const config = useConfig();
1413
+ return useQuery13(listCollectiblesPaginatedOptions(args, config));
1414
+ };
1415
+
1416
+ // src/react/hooks/useListCollectionActivities.tsx
1417
+ import { queryOptions as queryOptions14, useQuery as useQuery14 } from "@tanstack/react-query";
1374
1418
  var fetchListCollectionActivities = async (args, config) => {
1375
1419
  const marketplaceClient = getMarketplaceClient(args.chainId, config);
1376
1420
  return marketplaceClient.listCollectionActivities({
@@ -1386,7 +1430,7 @@ var fetchListCollectionActivities = async (args, config) => {
1386
1430
  }));
1387
1431
  };
1388
1432
  var listCollectionActivitiesOptions = (args, config) => {
1389
- return queryOptions13({
1433
+ return queryOptions14({
1390
1434
  queryKey: [...collectionKeys.collectionActivities, args, config],
1391
1435
  queryFn: () => fetchListCollectionActivities(args, config),
1392
1436
  enabled: args.query?.enabled ?? true
@@ -1394,16 +1438,16 @@ var listCollectionActivitiesOptions = (args, config) => {
1394
1438
  };
1395
1439
  var useListCollectionActivities = (args) => {
1396
1440
  const config = useConfig();
1397
- return useQuery13(listCollectionActivitiesOptions(args, config));
1441
+ return useQuery14(listCollectionActivitiesOptions(args, config));
1398
1442
  };
1399
1443
 
1400
1444
  // src/react/hooks/useListOffersForCollectible.tsx
1401
- import { queryOptions as queryOptions14, useQuery as useQuery14 } from "@tanstack/react-query";
1402
- import { z as z14 } from "zod";
1445
+ import { queryOptions as queryOptions15, useQuery as useQuery15 } from "@tanstack/react-query";
1446
+ import { z as z15 } from "zod";
1403
1447
  var UseListOffersForCollectibleArgsSchema = listOffersForCollectibleArgsSchema.extend({
1404
- chainId: ChainIdSchema.pipe(z14.coerce.string()),
1405
- collectionAddress: z14.string(),
1406
- collectibleId: z14.string()
1448
+ chainId: ChainIdSchema.pipe(z15.coerce.string()),
1449
+ collectionAddress: z15.string(),
1450
+ collectibleId: z15.string()
1407
1451
  }).omit({ contractAddress: true, tokenId: true });
1408
1452
  var fetchListOffersForCollectible = async (config, args) => {
1409
1453
  const arg = {
@@ -1416,26 +1460,26 @@ var fetchListOffersForCollectible = async (config, args) => {
1416
1460
  return marketplaceClient.listCollectibleOffers(arg);
1417
1461
  };
1418
1462
  var listOffersForCollectibleOptions = (args, config) => {
1419
- return queryOptions14({
1463
+ return queryOptions15({
1420
1464
  queryKey: [...collectableKeys.offers, args, config],
1421
1465
  queryFn: () => fetchListOffersForCollectible(config, args)
1422
1466
  });
1423
1467
  };
1424
1468
  var useListOffersForCollectible = (args) => {
1425
1469
  const config = useConfig();
1426
- return useQuery14(listOffersForCollectibleOptions(args, config));
1470
+ return useQuery15(listOffersForCollectibleOptions(args, config));
1427
1471
  };
1428
1472
 
1429
1473
  // src/react/hooks/useCountOffersForCollectible.tsx
1430
- import { queryOptions as queryOptions15, useQuery as useQuery15 } from "@tanstack/react-query";
1431
- import { z as z15 } from "zod";
1474
+ import { queryOptions as queryOptions16, useQuery as useQuery16 } from "@tanstack/react-query";
1475
+ import { z as z16 } from "zod";
1432
1476
  var UseCountOffersForCollectibleArgsSchema = countOffersForCollectibleArgsSchema.omit({
1433
1477
  contractAddress: true,
1434
1478
  tokenId: true
1435
1479
  }).extend({
1436
1480
  collectionAddress: AddressSchema,
1437
- collectibleId: z15.string(),
1438
- chainId: ChainIdSchema.pipe(z15.coerce.string()),
1481
+ collectibleId: z16.string(),
1482
+ chainId: ChainIdSchema.pipe(z16.coerce.string()),
1439
1483
  query: QueryArgSchema
1440
1484
  });
1441
1485
  var fetchCountOffersForCollectible = async (args, config) => {
@@ -1448,7 +1492,7 @@ var fetchCountOffersForCollectible = async (args, config) => {
1448
1492
  });
1449
1493
  };
1450
1494
  var countOffersForCollectibleOptions = (args, config) => {
1451
- return queryOptions15({
1495
+ return queryOptions16({
1452
1496
  ...args.query,
1453
1497
  queryKey: [...collectableKeys.offersCount, args, config],
1454
1498
  queryFn: () => fetchCountOffersForCollectible(args, config)
@@ -1456,16 +1500,16 @@ var countOffersForCollectibleOptions = (args, config) => {
1456
1500
  };
1457
1501
  var useCountOffersForCollectible = (args) => {
1458
1502
  const config = useConfig();
1459
- return useQuery15(countOffersForCollectibleOptions(args, config));
1503
+ return useQuery16(countOffersForCollectibleOptions(args, config));
1460
1504
  };
1461
1505
 
1462
1506
  // src/react/hooks/useListListingsForCollectible.tsx
1463
- import { queryOptions as queryOptions16, useQuery as useQuery16 } from "@tanstack/react-query";
1464
- import { z as z16 } from "zod";
1507
+ import { queryOptions as queryOptions17, useQuery as useQuery17 } from "@tanstack/react-query";
1508
+ import { z as z17 } from "zod";
1465
1509
  var UseListListingsForCollectibleArgsSchema = listListingsForCollectibleArgsSchema.extend({
1466
- chainId: ChainIdSchema.pipe(z16.coerce.string()),
1467
- collectionAddress: z16.string(),
1468
- collectibleId: z16.string()
1510
+ chainId: ChainIdSchema.pipe(z17.coerce.string()),
1511
+ collectionAddress: z17.string(),
1512
+ collectibleId: z17.string()
1469
1513
  }).omit({ contractAddress: true, tokenId: true });
1470
1514
  var fetchListListingsForCollectible = async (config, args) => {
1471
1515
  const arg = {
@@ -1478,26 +1522,26 @@ var fetchListListingsForCollectible = async (config, args) => {
1478
1522
  return marketplaceClient.listCollectibleListings(arg);
1479
1523
  };
1480
1524
  var listListingsForCollectibleOptions = (args, config) => {
1481
- return queryOptions16({
1525
+ return queryOptions17({
1482
1526
  queryKey: [...collectableKeys.listings, args, config],
1483
1527
  queryFn: () => fetchListListingsForCollectible(config, args)
1484
1528
  });
1485
1529
  };
1486
1530
  var useListListingsForCollectible = (args) => {
1487
1531
  const config = useConfig();
1488
- return useQuery16(listListingsForCollectibleOptions(args, config));
1532
+ return useQuery17(listListingsForCollectibleOptions(args, config));
1489
1533
  };
1490
1534
 
1491
1535
  // src/react/hooks/useCountListingsForCollectible.tsx
1492
- import { queryOptions as queryOptions17, useQuery as useQuery17 } from "@tanstack/react-query";
1493
- import { z as z17 } from "zod";
1536
+ import { queryOptions as queryOptions18, useQuery as useQuery18 } from "@tanstack/react-query";
1537
+ import { z as z18 } from "zod";
1494
1538
  var UseCountListingsForCollectibleArgsSchema = countListingsForCollectibleArgsSchema.omit({
1495
1539
  contractAddress: true,
1496
1540
  tokenId: true
1497
1541
  }).extend({
1498
1542
  collectionAddress: AddressSchema,
1499
- collectibleId: z17.string(),
1500
- chainId: ChainIdSchema.pipe(z17.coerce.string()),
1543
+ collectibleId: z18.string(),
1544
+ chainId: ChainIdSchema.pipe(z18.coerce.string()),
1501
1545
  query: QueryArgSchema
1502
1546
  });
1503
1547
  var fetchCountListingsForCollectible = async (args, config) => {
@@ -1510,7 +1554,7 @@ var fetchCountListingsForCollectible = async (args, config) => {
1510
1554
  });
1511
1555
  };
1512
1556
  var countListingsForCollectibleOptions = (args, config) => {
1513
- return queryOptions17({
1557
+ return queryOptions18({
1514
1558
  ...args.query,
1515
1559
  queryKey: [...collectableKeys.listingsCount, args, config],
1516
1560
  queryFn: () => fetchCountListingsForCollectible(args, config)
@@ -1518,17 +1562,17 @@ var countListingsForCollectibleOptions = (args, config) => {
1518
1562
  };
1519
1563
  var useCountListingsForCollectible = (args) => {
1520
1564
  const config = useConfig();
1521
- return useQuery17(countListingsForCollectibleOptions(args, config));
1565
+ return useQuery18(countListingsForCollectibleOptions(args, config));
1522
1566
  };
1523
1567
 
1524
1568
  // src/react/hooks/useLowestListing.tsx
1525
- import { queryOptions as queryOptions18, useQuery as useQuery18 } from "@tanstack/react-query";
1526
- import { z as z18 } from "zod";
1569
+ import { queryOptions as queryOptions19, useQuery as useQuery19 } from "@tanstack/react-query";
1570
+ import { z as z19 } from "zod";
1527
1571
  var UseLowestListingSchema = getCollectibleLowestListingArgsSchema.omit({
1528
1572
  contractAddress: true
1529
1573
  }).extend({
1530
1574
  collectionAddress: AddressSchema,
1531
- chainId: ChainIdSchema.pipe(z18.coerce.string()),
1575
+ chainId: ChainIdSchema.pipe(z19.coerce.string()),
1532
1576
  query: QueryArgSchema
1533
1577
  });
1534
1578
  var fetchLowestListing = async (args, config) => {
@@ -1540,7 +1584,7 @@ var fetchLowestListing = async (args, config) => {
1540
1584
  });
1541
1585
  };
1542
1586
  var lowestListingOptions = (args, config) => {
1543
- return queryOptions18({
1587
+ return queryOptions19({
1544
1588
  ...args.query,
1545
1589
  queryKey: [...collectableKeys.lowestListings, args, config],
1546
1590
  queryFn: () => fetchLowestListing(args, config)
@@ -1548,17 +1592,17 @@ var lowestListingOptions = (args, config) => {
1548
1592
  };
1549
1593
  var useLowestListing = (args) => {
1550
1594
  const config = useConfig();
1551
- return useQuery18(lowestListingOptions(args, config));
1595
+ return useQuery19(lowestListingOptions(args, config));
1552
1596
  };
1553
1597
 
1554
1598
  // src/react/hooks/useRoyaltyPercentage.tsx
1555
- import { queryOptions as queryOptions19, useQuery as useQuery19 } from "@tanstack/react-query";
1599
+ import { queryOptions as queryOptions20, useQuery as useQuery20 } from "@tanstack/react-query";
1556
1600
  import { getContract } from "viem";
1557
- import { z as z19 } from "zod";
1558
- var UseRoyaletyPercentageSchema = z19.object({
1559
- chainId: ChainIdSchema.pipe(z19.coerce.string()),
1601
+ import { z as z20 } from "zod";
1602
+ var UseRoyaletyPercentageSchema = z20.object({
1603
+ chainId: ChainIdSchema.pipe(z20.coerce.string()),
1560
1604
  collectionAddress: AddressSchema,
1561
- collectibleId: z19.string(),
1605
+ collectibleId: z20.string(),
1562
1606
  query: QueryArgSchema
1563
1607
  });
1564
1608
  var fetchRoyaletyPercentage = async (args) => {
@@ -1579,13 +1623,13 @@ var fetchRoyaletyPercentage = async (args) => {
1579
1623
  return 0n;
1580
1624
  }
1581
1625
  };
1582
- var royaletyPercentageOptions = (args) => queryOptions19({
1626
+ var royaletyPercentageOptions = (args) => queryOptions20({
1583
1627
  ...args.query,
1584
1628
  queryKey: [...collectableKeys.royaltyPercentage, args],
1585
1629
  queryFn: () => fetchRoyaletyPercentage(args)
1586
1630
  });
1587
1631
  var useRoyaltyPercentage = (args) => {
1588
- return useQuery19(royaletyPercentageOptions(args));
1632
+ return useQuery20(royaletyPercentageOptions(args));
1589
1633
  };
1590
1634
 
1591
1635
  // src/react/hooks/useGenerateListingTransaction.tsx
@@ -1644,13 +1688,13 @@ var useGenerateOfferTransaction = (params) => {
1644
1688
 
1645
1689
  // src/react/hooks/useGenerateSellTransaction.tsx
1646
1690
  import { useMutation as useMutation3 } from "@tanstack/react-query";
1647
- import { z as z20 } from "zod";
1648
- var UserGeneratSellTransactionArgsSchema = z20.object({
1649
- chainId: ChainIdSchema.pipe(z20.coerce.string()),
1650
- onSuccess: z20.function().args(stepSchema.array().optional()).optional()
1691
+ import { z as z21 } from "zod";
1692
+ var UserGeneratSellTransactionArgsSchema = z21.object({
1693
+ chainId: ChainIdSchema.pipe(z21.coerce.string()),
1694
+ onSuccess: z21.function().args(stepSchema.array().optional()).optional()
1651
1695
  });
1652
1696
  var generateSellTransaction = async (args, config, chainId) => {
1653
- const parsedChainId = ChainIdSchema.pipe(z20.coerce.string()).parse(chainId);
1697
+ const parsedChainId = ChainIdSchema.pipe(z21.coerce.string()).parse(chainId);
1654
1698
  const marketplaceClient = getMarketplaceClient(parsedChainId, config);
1655
1699
  return marketplaceClient.generateSellTransaction(args).then((data) => data.steps);
1656
1700
  };
@@ -1669,13 +1713,13 @@ var useGenerateSellTransaction = (params) => {
1669
1713
 
1670
1714
  // src/react/hooks/useGenerateCancelTransaction.tsx
1671
1715
  import { useMutation as useMutation4 } from "@tanstack/react-query";
1672
- import { z as z21 } from "zod";
1673
- var UserGenerateCancelTransactionArgsSchema = z21.object({
1674
- chainId: ChainIdSchema.pipe(z21.coerce.string()),
1675
- onSuccess: z21.function().args(stepSchema.array().optional()).optional()
1716
+ import { z as z22 } from "zod";
1717
+ var UserGenerateCancelTransactionArgsSchema = z22.object({
1718
+ chainId: ChainIdSchema.pipe(z22.coerce.string()),
1719
+ onSuccess: z22.function().args(stepSchema.array().optional()).optional()
1676
1720
  });
1677
1721
  var generateCancelTransaction = async (args, config, chainId) => {
1678
- const parsedChainId = ChainIdSchema.pipe(z21.coerce.string()).parse(chainId);
1722
+ const parsedChainId = ChainIdSchema.pipe(z22.coerce.string()).parse(chainId);
1679
1723
  const marketplaceClient = getMarketplaceClient(parsedChainId, config);
1680
1724
  return marketplaceClient.generateCancelTransaction(args).then((data) => data.steps);
1681
1725
  };
@@ -1748,16 +1792,16 @@ var useTransferTokens = () => {
1748
1792
  };
1749
1793
 
1750
1794
  // src/react/hooks/useCheckoutOptions.tsx
1751
- import { queryOptions as queryOptions20, useQuery as useQuery20 } from "@tanstack/react-query";
1795
+ import { queryOptions as queryOptions21, useQuery as useQuery21 } from "@tanstack/react-query";
1752
1796
  import { useAccount as useAccount3 } from "wagmi";
1753
- import { z as z22 } from "zod";
1754
- var UseCheckoutOptionsSchema = z22.object({
1755
- chainId: ChainIdSchema.pipe(z22.coerce.string()),
1756
- orders: z22.array(
1757
- z22.object({
1797
+ import { z as z23 } from "zod";
1798
+ var UseCheckoutOptionsSchema = z23.object({
1799
+ chainId: ChainIdSchema.pipe(z23.coerce.string()),
1800
+ orders: z23.array(
1801
+ z23.object({
1758
1802
  collectionAddress: AddressSchema,
1759
- orderId: z22.string(),
1760
- marketplace: z22.nativeEnum(MarketplaceKind)
1803
+ orderId: z23.string(),
1804
+ marketplace: z23.nativeEnum(MarketplaceKind)
1761
1805
  })
1762
1806
  ),
1763
1807
  query: QueryArgSchema
@@ -1776,7 +1820,7 @@ var fetchCheckoutOptions = async (args, config) => {
1776
1820
  });
1777
1821
  };
1778
1822
  var checkoutOptionsOptions = (args, config) => {
1779
- return queryOptions20({
1823
+ return queryOptions21({
1780
1824
  queryKey: ["checkoutOptions", args],
1781
1825
  queryFn: () => fetchCheckoutOptions(args, config)
1782
1826
  });
@@ -1784,16 +1828,16 @@ var checkoutOptionsOptions = (args, config) => {
1784
1828
  var useCheckoutOptions = (args) => {
1785
1829
  const { address } = useAccount3();
1786
1830
  const config = useConfig();
1787
- return useQuery20(
1831
+ return useQuery21(
1788
1832
  // biome-ignore lint/style/noNonNullAssertion: <explanation>
1789
1833
  checkoutOptionsOptions({ walletAddress: address, ...args }, config)
1790
1834
  );
1791
1835
  };
1792
1836
 
1793
1837
  // src/react/hooks/useListCollections.tsx
1794
- import { queryOptions as queryOptions21, useQuery as useQuery21 } from "@tanstack/react-query";
1795
- import { z as z23 } from "zod";
1796
- var UseListCollectionsSchema = z23.object({
1838
+ import { queryOptions as queryOptions22, useQuery as useQuery22 } from "@tanstack/react-query";
1839
+ import { z as z24 } from "zod";
1840
+ var UseListCollectionsSchema = z24.object({
1797
1841
  query: QueryArgSchema.optional().default({})
1798
1842
  });
1799
1843
  var fetchListCollections = async ({ marketplaceConfig }, config) => {
@@ -1819,7 +1863,7 @@ var fetchListCollections = async ({ marketplaceConfig }, config) => {
1819
1863
  return results.flat();
1820
1864
  };
1821
1865
  var listCollectionsOptions = (args, config) => {
1822
- return queryOptions21({
1866
+ return queryOptions22({
1823
1867
  ...args.query,
1824
1868
  queryKey: [...collectionKeys.list],
1825
1869
  queryFn: () => fetchListCollections(args, config)
@@ -1828,7 +1872,7 @@ var listCollectionsOptions = (args, config) => {
1828
1872
  var useListCollections = (args = {}) => {
1829
1873
  const config = useConfig();
1830
1874
  const { data: marketplaceConfig, isLoading: isLoadingConfig } = useMarketplaceConfig();
1831
- return useQuery21({
1875
+ return useQuery22({
1832
1876
  ...listCollectionsOptions(
1833
1877
  // biome-ignore lint/style/noNonNullAssertion: <explanation>
1834
1878
  { marketplaceConfig, query: args.query },
@@ -1839,21 +1883,21 @@ var useListCollections = (args = {}) => {
1839
1883
  };
1840
1884
 
1841
1885
  // src/react/hooks/useGenerateBuyTransaction.tsx
1842
- import { queryOptions as queryOptions22, skipToken as skipToken2, useQuery as useQuery22 } from "@tanstack/react-query";
1886
+ import { queryOptions as queryOptions23, skipToken as skipToken2, useQuery as useQuery23 } from "@tanstack/react-query";
1843
1887
  import { useAccount as useAccount4 } from "wagmi";
1844
- import { z as z24 } from "zod";
1845
- var UseGenerateBuyTransactionArgsSchema = z24.object({
1846
- chainId: ChainIdSchema.pipe(z24.coerce.string()),
1888
+ import { z as z25 } from "zod";
1889
+ var UseGenerateBuyTransactionArgsSchema = z25.object({
1890
+ chainId: ChainIdSchema.pipe(z25.coerce.string()),
1847
1891
  collectionAddress: AddressSchema,
1848
- marketplace: z24.nativeEnum(MarketplaceKind),
1849
- ordersData: z24.array(
1850
- z24.object({
1851
- orderId: z24.string(),
1852
- quantity: z24.string(),
1853
- marketplace: z24.string()
1892
+ marketplace: z25.nativeEnum(MarketplaceKind),
1893
+ ordersData: z25.array(
1894
+ z25.object({
1895
+ orderId: z25.string(),
1896
+ quantity: z25.string(),
1897
+ marketplace: z25.string()
1854
1898
  })
1855
1899
  ),
1856
- walletType: z24.nativeEnum(WalletKind).optional(),
1900
+ walletType: z25.nativeEnum(WalletKind).optional(),
1857
1901
  query: QueryArgSchema
1858
1902
  });
1859
1903
  var fetchGenerateBuyTransaction = async (args, config) => {
@@ -1867,7 +1911,7 @@ var fetchGenerateBuyTransaction = async (args, config) => {
1867
1911
  }).then((data) => data.steps);
1868
1912
  };
1869
1913
  var generateBuyTransactionOptions = (args, config) => {
1870
- return queryOptions22({
1914
+ return queryOptions23({
1871
1915
  queryKey: ["generateBuyTransaction", args],
1872
1916
  queryFn: () => fetchGenerateBuyTransaction(args, config),
1873
1917
  ...args.query
@@ -1876,7 +1920,7 @@ var generateBuyTransactionOptions = (args, config) => {
1876
1920
  var useGenerateBuyTransaction = (args) => {
1877
1921
  const { address } = useAccount4();
1878
1922
  const config = useConfig();
1879
- return useQuery22({
1923
+ return useQuery23({
1880
1924
  queryKey: ["generateBuyTransaction", args],
1881
1925
  queryFn: address ? () => {
1882
1926
  return fetchGenerateBuyTransaction(
@@ -1892,7 +1936,7 @@ import { useState, useEffect } from "react";
1892
1936
 
1893
1937
  // src/react/_internal/wallet/useWallet.ts
1894
1938
  import { useAccount as useAccount5, useChainId, useSwitchChain, useWalletClient } from "wagmi";
1895
- import { useQuery as useQuery23 } from "@tanstack/react-query";
1939
+ import { useQuery as useQuery24 } from "@tanstack/react-query";
1896
1940
 
1897
1941
  // src/react/_internal/wallet/wallet.ts
1898
1942
  import {
@@ -2152,7 +2196,7 @@ var useWallet = () => {
2152
2196
  const { connector, isConnected, isConnecting } = useAccount5();
2153
2197
  const sdkConfig = useConfig();
2154
2198
  const chainId = useChainId();
2155
- const { data, isLoading, isError } = useQuery23({
2199
+ const { data, isLoading, isError } = useQuery24({
2156
2200
  queryKey: ["wallet", chainId, connector?.uid],
2157
2201
  queryFn: () => {
2158
2202
  if (!walletClient || !connector || !isConnected) {
@@ -2547,7 +2591,7 @@ var useCancelOrder = ({
2547
2591
  };
2548
2592
 
2549
2593
  // src/react/hooks/useCollectionDetails.tsx
2550
- import { queryOptions as queryOptions23, useQuery as useQuery24 } from "@tanstack/react-query";
2594
+ import { queryOptions as queryOptions24, useQuery as useQuery25 } from "@tanstack/react-query";
2551
2595
  var fetchCollectionDetails = async (args, marketplaceClient) => {
2552
2596
  const { collection } = await marketplaceClient.getCollectionDetail({
2553
2597
  contractAddress: args.collectionAddress
@@ -2556,18 +2600,18 @@ var fetchCollectionDetails = async (args, marketplaceClient) => {
2556
2600
  };
2557
2601
  var collectionDetailsOptions = (args, config) => {
2558
2602
  const marketplaceClient = getMarketplaceClient(args.chainId, config);
2559
- return queryOptions23({
2603
+ return queryOptions24({
2560
2604
  queryKey: ["collectionDetails", args],
2561
2605
  queryFn: () => fetchCollectionDetails(args, marketplaceClient)
2562
2606
  });
2563
2607
  };
2564
2608
  var useCollectionDetails = (args) => {
2565
2609
  const config = useConfig();
2566
- return useQuery24(collectionDetailsOptions(args, config));
2610
+ return useQuery25(collectionDetailsOptions(args, config));
2567
2611
  };
2568
2612
 
2569
2613
  // src/react/hooks/useCollectionDetailsPolling.tsx
2570
- import { queryOptions as queryOptions24, useQuery as useQuery25 } from "@tanstack/react-query";
2614
+ import { queryOptions as queryOptions25, useQuery as useQuery26 } from "@tanstack/react-query";
2571
2615
  var INITIAL_POLLING_INTERVAL = 2e3;
2572
2616
  var MAX_POLLING_INTERVAL = 3e4;
2573
2617
  var MAX_ATTEMPTS = 30;
@@ -2580,7 +2624,7 @@ var isTerminalState = (status) => {
2580
2624
  ].includes(status);
2581
2625
  };
2582
2626
  var collectionDetailsPollingOptions = (args, config) => {
2583
- return queryOptions24({
2627
+ return queryOptions25({
2584
2628
  ...collectionDetailsOptions(args, config),
2585
2629
  refetchInterval: (query) => {
2586
2630
  const data = query.state.data;
@@ -2603,7 +2647,7 @@ var collectionDetailsPollingOptions = (args, config) => {
2603
2647
  };
2604
2648
  var useCollectionDetailsPolling = (args) => {
2605
2649
  const config = useConfig();
2606
- return useQuery25(collectionDetailsPollingOptions(args, config));
2650
+ return useQuery26(collectionDetailsPollingOptions(args, config));
2607
2651
  };
2608
2652
 
2609
2653
  export {
@@ -2642,6 +2686,8 @@ export {
2642
2686
  useListCollectibleActivities,
2643
2687
  listCollectiblesOptions,
2644
2688
  useListCollectibles,
2689
+ listCollectiblesPaginatedOptions,
2690
+ useListCollectiblesPaginated,
2645
2691
  listCollectionActivitiesOptions,
2646
2692
  useListCollectionActivities,
2647
2693
  listOffersForCollectibleOptions,
@@ -2684,4 +2730,4 @@ export {
2684
2730
  collectionDetailsPollingOptions,
2685
2731
  useCollectionDetailsPolling
2686
2732
  };
2687
- //# sourceMappingURL=chunk-H5YWG6WN.js.map
2733
+ //# sourceMappingURL=chunk-JWNONWD6.js.map