@0xsequence/marketplace-sdk 0.8.9 → 0.8.11
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.
- package/.changeset/fluffy-jokes-lay.md +5 -0
- package/.changeset/wise-bugs-boil.md +8 -0
- package/CHANGELOG.md +43 -0
- package/dist/{chunk-FMEEJFAF.js → chunk-5C6ZZ6WX.js} +1 -1
- package/dist/{chunk-YEGD7PWE.js → chunk-5O44EPXZ.js} +2 -2
- package/dist/chunk-6CTFVBKU.js +1 -0
- package/dist/{chunk-DWTLVJAW.js → chunk-6OPMUCGX.js} +1 -1
- package/dist/chunk-6OPMUCGX.js.map +1 -0
- package/dist/{chunk-O34GCB47.js → chunk-L6KWLCER.js} +4 -4
- package/dist/chunk-L6KWLCER.js.map +1 -0
- package/dist/{chunk-4XLXOEXQ.js → chunk-LAP2CKLN.js} +78 -4
- package/dist/chunk-LAP2CKLN.js.map +1 -0
- package/dist/{chunk-Y63BOO6M.js → chunk-LECCEZAO.js} +1 -1
- package/dist/{chunk-YALXP2PW.js → chunk-N7SQWS2R.js} +3 -3
- package/dist/{chunk-KGM2WLSP.js → chunk-OAOONM4S.js} +695 -440
- package/dist/chunk-OAOONM4S.js.map +1 -0
- package/dist/chunk-Q3ECVC4F.js +811 -0
- package/dist/chunk-Q3ECVC4F.js.map +1 -0
- package/dist/chunk-QY52UADF.js +107 -0
- package/dist/chunk-QY52UADF.js.map +1 -0
- package/dist/{chunk-I2BYHDFE.js → chunk-TNAR3XEF.js} +3898 -844
- package/dist/chunk-TNAR3XEF.js.map +1 -0
- package/dist/chunk-XABYNWXO.js +549 -0
- package/dist/chunk-XABYNWXO.js.map +1 -0
- package/dist/chunk-YB5UUF2G.js +11 -0
- package/dist/chunk-YB5UUF2G.js.map +1 -0
- package/dist/{chunk-35WWD5V6.js → chunk-YWGFI4PN.js} +88 -25
- package/dist/chunk-YWGFI4PN.js.map +1 -0
- package/dist/{create-config-DwrnzwpM.d.ts → create-config-DLMvMTkZ.d.ts} +2 -2
- package/dist/index.css +7 -7
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +8 -6
- package/dist/index.js +19 -14
- package/dist/{lowestListing-BQHIuvNF.d.ts → marketCurrencies-enNVYwBk.d.ts} +95 -3
- package/dist/{marketplace.gen-DQzWciwC.d.ts → marketplace.gen-D24veUQs.d.ts} +3 -2
- package/dist/marketplaceConfig-BwNAbLPw.d.ts +21 -0
- package/dist/new-marketplace-types-BCw19X9S.d.ts +102 -0
- package/dist/react/_internal/api/index.d.ts +4 -3
- package/dist/react/_internal/api/index.js +5 -1
- package/dist/react/_internal/databeat/index.css +2764 -0
- package/dist/react/_internal/databeat/index.css.map +1 -0
- package/dist/react/_internal/databeat/index.d.ts +1 -1
- package/dist/react/_internal/databeat/index.js +15 -14
- package/dist/react/_internal/index.d.ts +62 -9
- package/dist/react/_internal/index.js +7 -3
- package/dist/react/_internal/wagmi/index.d.ts +5 -6
- package/dist/react/_internal/wagmi/index.js +1 -1
- package/dist/react/hooks/index.css +2764 -0
- package/dist/react/hooks/index.css.map +1 -0
- package/dist/react/hooks/index.d.ts +74 -222
- package/dist/react/hooks/index.js +21 -22
- package/dist/react/hooks/options/index.d.ts +5 -4
- package/dist/react/hooks/options/index.js +9 -7
- package/dist/react/index.css +7 -7
- package/dist/react/index.css.map +1 -1
- package/dist/react/index.d.ts +12 -11
- package/dist/react/index.js +34 -37
- package/dist/react/queries/index.d.ts +4 -3
- package/dist/react/queries/index.js +19 -6
- package/dist/react/ssr/index.d.ts +3 -3
- package/dist/react/ssr/index.js +6 -5
- package/dist/react/ssr/index.js.map +1 -1
- package/dist/react/ui/components/collectible-card/index.css +7 -7
- package/dist/react/ui/components/collectible-card/index.css.map +1 -1
- package/dist/react/ui/components/collectible-card/index.d.ts +9 -6
- package/dist/react/ui/components/collectible-card/index.js +19 -23
- package/dist/react/ui/components/marketplace-logos/index.js +1 -1
- package/dist/react/ui/icons/index.js +9 -8
- package/dist/react/ui/index.css +7 -7
- package/dist/react/ui/index.css.map +1 -1
- package/dist/react/ui/index.d.ts +2 -2
- package/dist/react/ui/index.js +17 -21
- package/dist/react/ui/modals/_internal/components/actionModal/index.css +2764 -0
- package/dist/react/ui/modals/_internal/components/actionModal/index.css.map +1 -0
- package/dist/react/ui/modals/_internal/components/actionModal/index.js +15 -14
- package/dist/sdk-config-qorA0TgF.d.ts +165 -0
- package/dist/{services-BI_w8Eq4.d.ts → services-WrshxCqc.d.ts} +6 -3
- package/dist/types/index.d.ts +5 -4
- package/dist/types/index.js +7 -7
- package/dist/{index-DGsVBflk.d.ts → useCollection-YAdXfVO7.d.ts} +1 -2
- package/dist/utils/abi/index.d.ts +1 -0
- package/dist/utils/abi/index.js +7 -1
- package/dist/utils/abi/primary-sale/index.d.ts +1054 -0
- package/dist/utils/abi/primary-sale/index.js +9 -0
- package/dist/utils/index.d.ts +2 -1
- package/dist/utils/index.js +13 -6
- package/package.json +32 -32
- package/src/react/_internal/api/__mocks__/builder.msw.ts +157 -80
- package/src/react/_internal/api/builder-api.ts +2 -2
- package/src/react/_internal/api/builder.gen.ts +667 -112
- package/src/react/_internal/api/marketplace.gen.ts +1981 -1316
- package/src/react/_internal/api/services.ts +12 -1
- package/src/react/_internal/types.ts +1 -13
- package/src/react/_internal/wagmi/__tests__/create-config.test.ts +99 -84
- package/src/react/_internal/wagmi/create-config.ts +8 -4
- package/src/react/_internal/wagmi/get-connectors.ts +24 -19
- package/src/react/hooks/__tests__/__snapshots__/useListCollections.test.tsx.snap +114 -0
- package/src/react/hooks/__tests__/__snapshots__/useMarketplaceConfig.test.tsx.snap +85 -83
- package/src/react/hooks/__tests__/useFilters.test.tsx +0 -16
- package/src/react/hooks/__tests__/useInventory.test.tsx +16 -16
- package/src/react/hooks/__tests__/useListCollections.test.tsx +23 -56
- package/src/react/hooks/__tests__/{useCurrencies.test.tsx → useMarketCurrencies.test.tsx} +21 -15
- package/src/react/hooks/__tests__/useMarketplaceConfig.test.tsx +2 -59
- package/src/react/hooks/index.ts +3 -1
- package/src/react/hooks/useBalanceOfCollectible.tsx +5 -3
- package/src/react/hooks/useConvertPriceToUSD.tsx +1 -1
- package/src/react/hooks/useFilters.tsx +14 -22
- package/src/react/hooks/useGetTokenSuppliesMap.ts +28 -0
- package/src/react/hooks/useInventory.tsx +4 -3
- package/src/react/hooks/useList1155SaleSupplies.tsx +62 -0
- package/src/react/hooks/useListBalances.tsx +5 -3
- package/src/react/hooks/useListCollectibles.tsx +5 -3
- package/src/react/hooks/useListCollections.tsx +14 -76
- package/src/react/hooks/useListTokenMetadata.ts +19 -0
- package/src/react/hooks/useMarketCurrencies.tsx +8 -0
- package/src/react/hooks/useMarketplaceConfig.tsx +0 -2
- package/src/react/queries/index.ts +2 -0
- package/src/react/queries/inventory.ts +1 -1
- package/src/react/queries/listCollections.ts +118 -0
- package/src/react/queries/listTokenMetadata.ts +38 -0
- package/src/react/queries/marketCurrencies.ts +77 -0
- package/src/react/queries/marketplaceConfig.ts +83 -55
- package/src/react/ssr/__tests__/__snapshots__/create-ssr-client.test.ts.snap +85 -83
- package/src/react/ui/components/collectible-card/CollectibleCard.tsx +2 -2
- package/src/react/ui/components/collectible-card/__tests__/{CollectibleAsset.test.tsx → Media.test.tsx} +48 -14
- package/src/react/ui/components/collectible-card/index.ts +1 -1
- package/src/react/ui/components/collectible-card/media/Media.tsx +211 -0
- package/src/react/ui/components/collectible-card/{collectible-asset/CollectibleAssetSkeleton.tsx → media/MediaSkeleton.tsx} +2 -2
- package/src/react/ui/components/collectible-card/media/types.ts +18 -0
- package/src/react/ui/components/collectible-card/{collectible-asset → media}/utils.ts +8 -3
- package/src/react/ui/index.ts +1 -1
- package/src/react/ui/modals/BuyModal/ERC1155QuantityModal.tsx +9 -3
- package/src/react/ui/modals/BuyModal/hooks/__tests__/useFees.test.tsx +31 -21
- package/src/react/ui/modals/BuyModal/hooks/useFees.ts +3 -2
- package/src/react/ui/modals/BuyModal/hooks/usePaymentModalParams.ts +28 -3
- package/src/react/ui/modals/CreateListingModal/Modal.tsx +3 -5
- package/src/react/ui/modals/CreateListingModal/hooks/useCreateListing.tsx +5 -3
- package/src/react/ui/modals/CreateListingModal/hooks/useTransactionSteps.tsx +2 -2
- package/src/react/ui/modals/MakeOfferModal/Modal.tsx +2 -3
- package/src/react/ui/modals/MakeOfferModal/hooks/useMakeOffer.tsx +4 -3
- package/src/react/ui/modals/SellModal/Modal.tsx +0 -1
- package/src/react/ui/modals/SellModal/hooks/useTransactionSteps.tsx +2 -2
- package/src/react/ui/modals/TransferModal/_views/enterWalletAddress/_components/WalletAddressInput.tsx +1 -1
- package/src/react/ui/modals/TransferModal/_views/enterWalletAddress/index.tsx +0 -1
- package/src/react/ui/modals/TransferModal/index.tsx +0 -1
- package/src/react/ui/modals/_internal/components/currencyOptionsSelect/__tests__/index.test.tsx +2 -2
- package/src/react/ui/modals/_internal/components/currencyOptionsSelect/index.tsx +7 -6
- package/src/react/ui/modals/_internal/components/selectWaasFeeOptions/__tests__/SelectWaasFeeOptions.test.tsx +13 -7
- package/src/react/ui/modals/_internal/components/selectWaasFeeOptions/index.tsx +3 -5
- package/src/react/ui/modals/_internal/components/selectWaasFeeOptions/useWaasFeeOptionManager.tsx +5 -3
- package/src/react/ui/modals/_internal/components/transactionDetails/index.tsx +2 -2
- package/src/react/ui/modals/_internal/hooks/useSelectWaasFeeOptions.ts +2 -12
- package/src/types/index.ts +1 -6
- package/src/types/new-marketplace-types.ts +119 -0
- package/src/types/sdk-config.ts +19 -2
- package/src/types/types.ts +1 -0
- package/src/utils/abi/index.ts +1 -0
- package/src/utils/abi/primary-sale/index.ts +2 -0
- package/src/utils/abi/primary-sale/sequence-1155-sales-contract.ts +450 -0
- package/src/utils/abi/primary-sale/sequence-721-sales-contract.ts +352 -0
- package/src/utils/abi/token/sequence-erc1155-items.ts +454 -0
- package/src/utils/fetchContentType.ts +5 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/dist/chunk-35WWD5V6.js.map +0 -1
- package/dist/chunk-4XLXOEXQ.js.map +0 -1
- package/dist/chunk-D7RVSZAQ.js +0 -332
- package/dist/chunk-D7RVSZAQ.js.map +0 -1
- package/dist/chunk-DWTLVJAW.js.map +0 -1
- package/dist/chunk-EODKQL6Y.js +0 -76
- package/dist/chunk-EODKQL6Y.js.map +0 -1
- package/dist/chunk-G3447GIP.js +0 -2880
- package/dist/chunk-G3447GIP.js.map +0 -1
- package/dist/chunk-HHYNOPPI.js +0 -53
- package/dist/chunk-HHYNOPPI.js.map +0 -1
- package/dist/chunk-I2BYHDFE.js.map +0 -1
- package/dist/chunk-JKCF7HEA.js +0 -1
- package/dist/chunk-KGM2WLSP.js.map +0 -1
- package/dist/chunk-MAD64DLJ.js +0 -81
- package/dist/chunk-MAD64DLJ.js.map +0 -1
- package/dist/chunk-N7BPFK46.js +0 -1
- package/dist/chunk-O34GCB47.js.map +0 -1
- package/dist/chunk-UISBTKFF.js +0 -1
- package/dist/chunk-UISBTKFF.js.map +0 -1
- package/dist/chunk-YBOFRP65.js +0 -128
- package/dist/chunk-YBOFRP65.js.map +0 -1
- package/dist/marketplaceConfig-B4Fdsmxu.d.ts +0 -17
- package/dist/sdk-config-txlivEKe.d.ts +0 -133
- package/dist/types-isjvwapz.d.ts +0 -68
- package/src/react/hooks/useCurrencies.tsx +0 -77
- package/src/react/ui/components/collectible-card/collectible-asset/CollectibleAsset.tsx +0 -174
- /package/dist/{chunk-FMEEJFAF.js.map → chunk-5C6ZZ6WX.js.map} +0 -0
- /package/dist/{chunk-YEGD7PWE.js.map → chunk-5O44EPXZ.js.map} +0 -0
- /package/dist/{chunk-JKCF7HEA.js.map → chunk-6CTFVBKU.js.map} +0 -0
- /package/dist/{chunk-Y63BOO6M.js.map → chunk-LECCEZAO.js.map} +0 -0
- /package/dist/{chunk-YALXP2PW.js.map → chunk-N7SQWS2R.js.map} +0 -0
- /package/dist/{chunk-N7BPFK46.js.map → utils/abi/primary-sale/index.js.map} +0 -0
package/dist/react/index.js
CHANGED
|
@@ -1,23 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
|
-
CollectibleAsset,
|
|
3
2
|
CollectibleCard,
|
|
4
|
-
ModalProvider,
|
|
5
|
-
useBuyModal,
|
|
6
|
-
useCreateListingModal,
|
|
7
|
-
useMakeOfferModal,
|
|
8
|
-
useSellModal,
|
|
9
|
-
useSuccessfulPurchaseModal,
|
|
10
|
-
useTransferModal
|
|
11
|
-
} from "../chunk-I2BYHDFE.js";
|
|
12
|
-
import "../chunk-YBOFRP65.js";
|
|
13
|
-
import "../chunk-HHYNOPPI.js";
|
|
14
|
-
import "../chunk-JKCF7HEA.js";
|
|
15
|
-
import "../chunk-35WWD5V6.js";
|
|
16
|
-
import "../chunk-N7BPFK46.js";
|
|
17
|
-
import {
|
|
18
3
|
MarketplaceProvider,
|
|
19
4
|
MarketplaceQueryClientProvider,
|
|
20
5
|
MarketplaceSdkContext,
|
|
6
|
+
Media,
|
|
7
|
+
ModalProvider,
|
|
21
8
|
checkoutOptionsOptions,
|
|
22
9
|
collectibleOptions,
|
|
23
10
|
collectionBalanceDetailsOptions,
|
|
@@ -29,7 +16,6 @@ import {
|
|
|
29
16
|
countListingsForCollectibleOptions,
|
|
30
17
|
countOfCollectablesOptions,
|
|
31
18
|
countOffersForCollectibleOptions,
|
|
32
|
-
currenciesOptions,
|
|
33
19
|
currencyOptions,
|
|
34
20
|
fetchFilters,
|
|
35
21
|
filtersOptions,
|
|
@@ -41,11 +27,11 @@ import {
|
|
|
41
27
|
listCollectibleActivitiesOptions,
|
|
42
28
|
listCollectiblesPaginatedOptions,
|
|
43
29
|
listCollectionActivitiesOptions,
|
|
44
|
-
listCollectionsOptions,
|
|
45
30
|
listListingsForCollectibleOptions,
|
|
46
31
|
listOffersForCollectibleOptions,
|
|
47
32
|
useAutoSelectFeeOption,
|
|
48
33
|
useBalanceOfCollectible,
|
|
34
|
+
useBuyModal,
|
|
49
35
|
useCancelOrder,
|
|
50
36
|
useCheckoutOptions,
|
|
51
37
|
useCollectible,
|
|
@@ -59,7 +45,7 @@ import {
|
|
|
59
45
|
useCountListingsForCollectible,
|
|
60
46
|
useCountOfCollectables,
|
|
61
47
|
useCountOffersForCollectible,
|
|
62
|
-
|
|
48
|
+
useCreateListingModal,
|
|
63
49
|
useCurrency,
|
|
64
50
|
useFilterState,
|
|
65
51
|
useFilters,
|
|
@@ -69,6 +55,7 @@ import {
|
|
|
69
55
|
useGenerateListingTransaction,
|
|
70
56
|
useGenerateOfferTransaction,
|
|
71
57
|
useGenerateSellTransaction,
|
|
58
|
+
useGetTokenSuppliesMap,
|
|
72
59
|
useHighestOffer,
|
|
73
60
|
useInventory,
|
|
74
61
|
useListBalances,
|
|
@@ -79,42 +66,51 @@ import {
|
|
|
79
66
|
useListCollections,
|
|
80
67
|
useListListingsForCollectible,
|
|
81
68
|
useListOffersForCollectible,
|
|
69
|
+
useListTokenMetadata,
|
|
82
70
|
useLowestListing,
|
|
71
|
+
useMakeOfferModal,
|
|
72
|
+
useMarketCurrencies,
|
|
83
73
|
useMarketplaceConfig,
|
|
84
74
|
useRoyalty,
|
|
75
|
+
useSellModal,
|
|
76
|
+
useSuccessfulPurchaseModal,
|
|
77
|
+
useTransferModal,
|
|
85
78
|
useTransferTokens
|
|
86
|
-
} from "../chunk-
|
|
79
|
+
} from "../chunk-TNAR3XEF.js";
|
|
87
80
|
import {
|
|
88
81
|
collectionOptions,
|
|
89
82
|
fetchCollection
|
|
90
|
-
} from "../chunk-
|
|
91
|
-
import "../chunk-
|
|
92
|
-
import "../chunk-
|
|
93
|
-
import "../chunk-
|
|
94
|
-
import
|
|
95
|
-
|
|
83
|
+
} from "../chunk-N7SQWS2R.js";
|
|
84
|
+
import "../chunk-YWGFI4PN.js";
|
|
85
|
+
import "../chunk-LECCEZAO.js";
|
|
86
|
+
import "../chunk-LAP2CKLN.js";
|
|
87
|
+
import {
|
|
88
|
+
fetchMarketplaceConfig,
|
|
89
|
+
marketplaceConfigOptions
|
|
90
|
+
} from "../chunk-QY52UADF.js";
|
|
91
|
+
import "../chunk-L6KWLCER.js";
|
|
92
|
+
import "../chunk-5O44EPXZ.js";
|
|
93
|
+
import "../chunk-5C6ZZ6WX.js";
|
|
94
|
+
import "../chunk-6CTFVBKU.js";
|
|
96
95
|
import "../chunk-FUM4OGOQ.js";
|
|
96
|
+
import "../chunk-Q3ECVC4F.js";
|
|
97
97
|
import "../chunk-XX4EVWBF.js";
|
|
98
|
-
import "../chunk-4XLXOEXQ.js";
|
|
99
98
|
import "../chunk-2PSNAIAT.js";
|
|
100
|
-
import
|
|
101
|
-
|
|
102
|
-
} from "../chunk-MAD64DLJ.js";
|
|
103
|
-
import "../chunk-O34GCB47.js";
|
|
104
|
-
import "../chunk-DWTLVJAW.js";
|
|
99
|
+
import "../chunk-YB5UUF2G.js";
|
|
100
|
+
import "../chunk-6OPMUCGX.js";
|
|
105
101
|
import {
|
|
106
102
|
getQueryClient
|
|
107
|
-
} from "../chunk-
|
|
103
|
+
} from "../chunk-OAOONM4S.js";
|
|
108
104
|
import {
|
|
109
105
|
createWagmiConfig
|
|
110
|
-
} from "../chunk-
|
|
106
|
+
} from "../chunk-XABYNWXO.js";
|
|
111
107
|
import "../chunk-NX52D7NX.js";
|
|
112
108
|
export {
|
|
113
|
-
CollectibleAsset,
|
|
114
109
|
CollectibleCard,
|
|
115
110
|
MarketplaceProvider,
|
|
116
111
|
MarketplaceQueryClientProvider,
|
|
117
112
|
MarketplaceSdkContext,
|
|
113
|
+
Media,
|
|
118
114
|
ModalProvider,
|
|
119
115
|
checkoutOptionsOptions,
|
|
120
116
|
collectibleOptions,
|
|
@@ -129,10 +125,10 @@ export {
|
|
|
129
125
|
countOfCollectablesOptions,
|
|
130
126
|
countOffersForCollectibleOptions,
|
|
131
127
|
createWagmiConfig,
|
|
132
|
-
currenciesOptions,
|
|
133
128
|
currencyOptions,
|
|
134
129
|
fetchCollection,
|
|
135
130
|
fetchFilters,
|
|
131
|
+
fetchMarketplaceConfig,
|
|
136
132
|
filtersOptions,
|
|
137
133
|
floorOrderOptions,
|
|
138
134
|
generateCancelTransaction,
|
|
@@ -143,7 +139,6 @@ export {
|
|
|
143
139
|
listCollectibleActivitiesOptions,
|
|
144
140
|
listCollectiblesPaginatedOptions,
|
|
145
141
|
listCollectionActivitiesOptions,
|
|
146
|
-
listCollectionsOptions,
|
|
147
142
|
listListingsForCollectibleOptions,
|
|
148
143
|
listOffersForCollectibleOptions,
|
|
149
144
|
marketplaceConfigOptions,
|
|
@@ -164,7 +159,6 @@ export {
|
|
|
164
159
|
useCountOfCollectables,
|
|
165
160
|
useCountOffersForCollectible,
|
|
166
161
|
useCreateListingModal,
|
|
167
|
-
useCurrencies,
|
|
168
162
|
useCurrency,
|
|
169
163
|
useFilterState,
|
|
170
164
|
useFilters,
|
|
@@ -174,6 +168,7 @@ export {
|
|
|
174
168
|
useGenerateListingTransaction,
|
|
175
169
|
useGenerateOfferTransaction,
|
|
176
170
|
useGenerateSellTransaction,
|
|
171
|
+
useGetTokenSuppliesMap,
|
|
177
172
|
useHighestOffer,
|
|
178
173
|
useInventory,
|
|
179
174
|
useListBalances,
|
|
@@ -184,8 +179,10 @@ export {
|
|
|
184
179
|
useListCollections,
|
|
185
180
|
useListListingsForCollectible,
|
|
186
181
|
useListOffersForCollectible,
|
|
182
|
+
useListTokenMetadata,
|
|
187
183
|
useLowestListing,
|
|
188
184
|
useMakeOfferModal,
|
|
185
|
+
useMarketCurrencies,
|
|
189
186
|
useMarketplaceConfig,
|
|
190
187
|
useRoyalty,
|
|
191
188
|
useSellModal,
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
export { C as CollectiblesResponse, U as UseBalanceOfCollectibleArgs, g as UseHighestOfferArgs, a as UseInventoryArgs, k as UseListBalancesArgs, d as UseListCollectiblesArgs, o as UseLowestListingArgs, b as balanceOfCollectibleOptions, f as fetchBalanceOfCollectible, m as fetchBalances, e as fetchCollectibles, h as fetchHighestOffer, c as fetchInventory, p as fetchLowestListing, j as highestOfferOptions, i as inventoryOptions, n as listBalancesOptions, l as listCollectiblesOptions, q as lowestListingOptions } from '../../
|
|
1
|
+
export { C as CollectiblesResponse, F as FetchTokenMetadataArgs, U as UseBalanceOfCollectibleArgs, g as UseHighestOfferArgs, a as UseInventoryArgs, k as UseListBalancesArgs, d as UseListCollectiblesArgs, o as UseLowestListingArgs, r as UseMarketCurrenciesArgs, b as balanceOfCollectibleOptions, s as currenciesOptions, f as fetchBalanceOfCollectible, m as fetchBalances, e as fetchCollectibles, h as fetchHighestOffer, c as fetchInventory, p as fetchLowestListing, j as highestOfferOptions, i as inventoryOptions, n as listBalancesOptions, l as listCollectiblesOptions, q as lowestListingOptions, t as tokenMetadataOptions } from '../../marketCurrencies-enNVYwBk.js';
|
|
2
2
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
3
3
|
import * as _0xsequence_indexer from '@0xsequence/indexer';
|
|
4
|
-
import { S as SdkConfig } from '../../sdk-config-
|
|
4
|
+
import { S as SdkConfig } from '../../sdk-config-qorA0TgF.js';
|
|
5
5
|
import 'viem';
|
|
6
6
|
import 'wagmi/query';
|
|
7
|
-
import '../../marketplace.gen-
|
|
7
|
+
import '../../marketplace.gen-D24veUQs.js';
|
|
8
|
+
import '@0xsequence/metadata';
|
|
8
9
|
|
|
9
10
|
type UseGetTokenSuppliesArgs = {
|
|
10
11
|
chainId: number;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
balanceOfCollectibleOptions,
|
|
3
|
+
currenciesOptions,
|
|
3
4
|
fetchBalanceOfCollectible,
|
|
4
5
|
fetchBalances,
|
|
5
6
|
fetchCollectibles,
|
|
@@ -12,15 +13,26 @@ import {
|
|
|
12
13
|
inventoryOptions,
|
|
13
14
|
listBalancesOptions,
|
|
14
15
|
listCollectiblesOptions,
|
|
15
|
-
lowestListingOptions
|
|
16
|
-
|
|
16
|
+
lowestListingOptions,
|
|
17
|
+
tokenMetadataOptions
|
|
18
|
+
} from "../../chunk-LAP2CKLN.js";
|
|
19
|
+
import "../../chunk-QY52UADF.js";
|
|
20
|
+
import "../../chunk-L6KWLCER.js";
|
|
21
|
+
import "../../chunk-5O44EPXZ.js";
|
|
22
|
+
import "../../chunk-5C6ZZ6WX.js";
|
|
23
|
+
import "../../chunk-6CTFVBKU.js";
|
|
24
|
+
import "../../chunk-FUM4OGOQ.js";
|
|
25
|
+
import "../../chunk-Q3ECVC4F.js";
|
|
26
|
+
import "../../chunk-XX4EVWBF.js";
|
|
17
27
|
import "../../chunk-2PSNAIAT.js";
|
|
18
|
-
import "../../chunk-
|
|
19
|
-
import "../../chunk-
|
|
20
|
-
import "../../chunk-
|
|
28
|
+
import "../../chunk-YB5UUF2G.js";
|
|
29
|
+
import "../../chunk-6OPMUCGX.js";
|
|
30
|
+
import "../../chunk-OAOONM4S.js";
|
|
31
|
+
import "../../chunk-XABYNWXO.js";
|
|
21
32
|
import "../../chunk-NX52D7NX.js";
|
|
22
33
|
export {
|
|
23
34
|
balanceOfCollectibleOptions,
|
|
35
|
+
currenciesOptions,
|
|
24
36
|
fetchBalanceOfCollectible,
|
|
25
37
|
fetchBalances,
|
|
26
38
|
fetchCollectibles,
|
|
@@ -33,6 +45,7 @@ export {
|
|
|
33
45
|
inventoryOptions,
|
|
34
46
|
listBalancesOptions,
|
|
35
47
|
listCollectiblesOptions,
|
|
36
|
-
lowestListingOptions
|
|
48
|
+
lowestListingOptions,
|
|
49
|
+
tokenMetadataOptions
|
|
37
50
|
};
|
|
38
51
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { M as MarketplaceConfig } from '../../marketplaceConfig-B4Fdsmxu.js';
|
|
2
1
|
import { QueryClient } from '@tanstack/react-query';
|
|
2
|
+
import { S as SdkConfig } from '../../sdk-config-qorA0TgF.js';
|
|
3
3
|
import { State } from 'wagmi';
|
|
4
|
-
import {
|
|
5
|
-
import '../../marketplace.gen-
|
|
4
|
+
import { M as MarketplaceConfig } from '../../new-marketplace-types-BCw19X9S.js';
|
|
5
|
+
import '../../marketplace.gen-D24veUQs.js';
|
|
6
6
|
|
|
7
7
|
type InitSSRClientArgs = {
|
|
8
8
|
cookie: string;
|
package/dist/react/ssr/index.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
marketplaceConfigOptions
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-QY52UADF.js";
|
|
4
|
+
import "../../chunk-L6KWLCER.js";
|
|
5
|
+
import "../../chunk-YB5UUF2G.js";
|
|
6
|
+
import "../../chunk-6OPMUCGX.js";
|
|
7
|
+
import "../../chunk-OAOONM4S.js";
|
|
7
8
|
import {
|
|
8
9
|
createWagmiConfig
|
|
9
|
-
} from "../../chunk-
|
|
10
|
+
} from "../../chunk-XABYNWXO.js";
|
|
10
11
|
import "../../chunk-NX52D7NX.js";
|
|
11
12
|
|
|
12
13
|
// src/react/ssr/create-ssr-client.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/react/ssr/create-ssr-client.ts"],"sourcesContent":["import type { QueryClient } from '@tanstack/react-query';\nimport { type State, cookieToInitialState } from 'wagmi';\nimport type { SdkConfig } from '../../types/sdk-config';\nimport { createWagmiConfig } from '../_internal/wagmi/create-config';\nimport { marketplaceConfigOptions } from '../queries/marketplaceConfig';\n\ntype InitSSRClientArgs = {\n\tcookie: string;\n\tconfig: SdkConfig;\n\tqueryClient: QueryClient;\n};\n\ntype InitialState = { wagmi?: State };\n\nconst marketplaceConfig = async (\n\tconfig: SdkConfig,\n\tqueryClient: QueryClient,\n) => {\n\tconst configOptions = marketplaceConfigOptions(config);\n\treturn queryClient.fetchQuery(configOptions);\n};\n\nconst initialState = async (args: InitSSRClientArgs): Promise<InitialState> => {\n\tconst marketConfig = await marketplaceConfig(args.config, args.queryClient);\n\tconst wagmiConfig = createWagmiConfig(marketConfig, args.config, true);\n\treturn { wagmi: cookieToInitialState(wagmiConfig, args.cookie) };\n};\n\nexport const createSSRClient = (args: InitSSRClientArgs) => {\n\tconst getMarketplaceConfig = async () =>\n\t\tmarketplaceConfig(args.config, args.queryClient);\n\tconst getInitialState = async () => initialState(args);\n\tconst config = args.config;\n\treturn { getInitialState, getMarketplaceConfig, config };\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../src/react/ssr/create-ssr-client.ts"],"sourcesContent":["import type { QueryClient } from '@tanstack/react-query';\nimport { type State, cookieToInitialState } from 'wagmi';\nimport type { SdkConfig } from '../../types/sdk-config';\nimport { createWagmiConfig } from '../_internal/wagmi/create-config';\nimport { marketplaceConfigOptions } from '../queries/marketplaceConfig';\n\ntype InitSSRClientArgs = {\n\tcookie: string;\n\tconfig: SdkConfig;\n\tqueryClient: QueryClient;\n};\n\ntype InitialState = { wagmi?: State };\n\nconst marketplaceConfig = async (\n\tconfig: SdkConfig,\n\tqueryClient: QueryClient,\n) => {\n\tconst configOptions = marketplaceConfigOptions(config);\n\treturn queryClient.fetchQuery(configOptions);\n};\n\nconst initialState = async (args: InitSSRClientArgs): Promise<InitialState> => {\n\tconst marketConfig = await marketplaceConfig(args.config, args.queryClient);\n\tconst wagmiConfig = createWagmiConfig(marketConfig, args.config, true);\n\treturn { wagmi: cookieToInitialState(wagmiConfig, args.cookie) };\n};\n\nexport const createSSRClient = (args: InitSSRClientArgs) => {\n\tconst getMarketplaceConfig = async () =>\n\t\tmarketplaceConfig(args.config, args.queryClient);\n\tconst getInitialState = async () => initialState(args);\n\tconst config = args.config;\n\treturn { getInitialState, getMarketplaceConfig, config };\n};\n"],"mappings":";;;;;;;;;;;;;AACA,SAAqB,4BAA4B;AAajD,IAAM,oBAAoB,OACzB,QACA,gBACI;AACJ,QAAM,gBAAgB,yBAAyB,MAAM;AACrD,SAAO,YAAY,WAAW,aAAa;AAC5C;AAEA,IAAM,eAAe,OAAO,SAAmD;AAC9E,QAAM,eAAe,MAAM,kBAAkB,KAAK,QAAQ,KAAK,WAAW;AAC1E,QAAM,cAAc,kBAAkB,cAAc,KAAK,QAAQ,IAAI;AACrE,SAAO,EAAE,OAAO,qBAAqB,aAAa,KAAK,MAAM,EAAE;AAChE;AAEO,IAAM,kBAAkB,CAAC,SAA4B;AAC3D,QAAM,uBAAuB,YAC5B,kBAAkB,KAAK,QAAQ,KAAK,WAAW;AAChD,QAAM,kBAAkB,YAAY,aAAa,IAAI;AACrD,QAAM,SAAS,KAAK;AACpB,SAAO,EAAE,iBAAiB,sBAAsB,OAAO;AACxD;","names":[]}
|
|
@@ -2340,12 +2340,6 @@
|
|
|
2340
2340
|
overflow: hidden;
|
|
2341
2341
|
}
|
|
2342
2342
|
}
|
|
2343
|
-
.\[\&\>label\>div\>\>span\]\:text-sm {
|
|
2344
|
-
&>label>div>>span {
|
|
2345
|
-
font-size: var(--text-sm);
|
|
2346
|
-
line-height: var(--tw-leading, var(--text-sm--line-height));
|
|
2347
|
-
}
|
|
2348
|
-
}
|
|
2349
2343
|
.\[\&\>label\>div\>div\>\.rounded-xl\]\:h-9 {
|
|
2350
2344
|
& > label > div > div > .rounded-xl {
|
|
2351
2345
|
height: calc(var(--spacing) * 9);
|
|
@@ -2430,6 +2424,12 @@
|
|
|
2430
2424
|
color: var(--color-text-80);
|
|
2431
2425
|
}
|
|
2432
2426
|
}
|
|
2427
|
+
.\[\&\>label\>div\>span\]\:text-sm {
|
|
2428
|
+
& > label > div > span {
|
|
2429
|
+
font-size: var(--text-sm);
|
|
2430
|
+
line-height: var(--tw-leading, var(--text-sm--line-height));
|
|
2431
|
+
}
|
|
2432
|
+
}
|
|
2433
2433
|
.\[\&\>label\>div\>span\]\:text-text-80 {
|
|
2434
2434
|
& > label > div > span {
|
|
2435
2435
|
color: var(--color-text-80);
|
|
@@ -2760,5 +2760,5 @@ video::-webkit-media-controls {
|
|
|
2760
2760
|
}
|
|
2761
2761
|
}
|
|
2762
2762
|
}
|
|
2763
|
-
/*! tailwindcss v4.1.
|
|
2763
|
+
/*! tailwindcss v4.1.7 | MIT License | https://tailwindcss.com */
|
|
2764
2764
|
/*# sourceMappingURL=index.css.map */
|