@0xsequence/marketplace-sdk 0.8.10 → 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 +16 -3
- 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-Y2HJO2VY.js → chunk-LAP2CKLN.js} +56 -3
- package/dist/chunk-LAP2CKLN.js.map +1 -0
- package/dist/{chunk-Y63BOO6M.js → chunk-LECCEZAO.js} +1 -1
- package/dist/{chunk-WH5BZC7W.js → chunk-N7SQWS2R.js} +3 -3
- package/dist/{chunk-7F27CJZW.js → chunk-OAOONM4S.js} +682 -439
- package/dist/chunk-OAOONM4S.js.map +1 -0
- package/dist/chunk-QY52UADF.js +107 -0
- package/dist/chunk-QY52UADF.js.map +1 -0
- package/dist/{chunk-UJSF7PSC.js → chunk-TNAR3XEF.js} +3766 -765
- 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-M6NJ73Y5.js → chunk-YWGFI4PN.js} +87 -24
- package/dist/chunk-YWGFI4PN.js.map +1 -0
- package/dist/{create-config-CAQcvjl6.d.ts → create-config-DLMvMTkZ.d.ts} +2 -2
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +7 -6
- package/dist/index.js +14 -15
- package/dist/{listTokenMetadata-DO4ChDjn.d.ts → marketCurrencies-enNVYwBk.d.ts} +77 -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 +3 -3
- package/dist/react/_internal/api/index.js +1 -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 +12 -12
- package/dist/react/_internal/index.d.ts +61 -9
- package/dist/react/_internal/index.js +3 -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 +71 -222
- package/dist/react/hooks/index.js +16 -20
- package/dist/react/hooks/options/index.d.ts +5 -4
- package/dist/react/hooks/options/index.js +9 -7
- package/dist/react/index.css +1 -1
- package/dist/react/index.css.map +1 -1
- package/dist/react/index.d.ts +9 -9
- package/dist/react/index.js +28 -34
- package/dist/react/queries/index.d.ts +3 -3
- package/dist/react/queries/index.js +15 -4
- 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 +1 -1
- package/dist/react/ui/components/collectible-card/index.css.map +1 -1
- package/dist/react/ui/components/collectible-card/index.d.ts +3 -2
- package/dist/react/ui/components/collectible-card/index.js +12 -17
- package/dist/react/ui/icons/index.js +6 -6
- package/dist/react/ui/index.css +1 -1
- package/dist/react/ui/index.css.map +1 -1
- package/dist/react/ui/index.d.ts +1 -1
- package/dist/react/ui/index.js +12 -17
- 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 +12 -12
- package/dist/sdk-config-qorA0TgF.d.ts +165 -0
- package/dist/{services-CMSb9ipU.d.ts → services-WrshxCqc.d.ts} +2 -2
- package/dist/types/index.d.ts +5 -4
- package/dist/types/index.js +7 -7
- package/dist/{index-MlUK9AQE.d.ts → useCollection-YAdXfVO7.d.ts} +1 -2
- package/dist/utils/abi/index.js +4 -4
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.js +8 -7
- package/package.json +15 -15
- 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/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 +2 -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/useListBalances.tsx +5 -3
- package/src/react/hooks/useListCollectibles.tsx +5 -3
- package/src/react/hooks/useListCollections.tsx +14 -76
- package/src/react/hooks/useMarketCurrencies.tsx +8 -0
- package/src/react/hooks/useMarketplaceConfig.tsx +0 -2
- package/src/react/queries/index.ts +1 -0
- package/src/react/queries/inventory.ts +1 -1
- package/src/react/queries/listCollections.ts +118 -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/__tests__/Media.test.tsx +41 -1
- package/src/react/ui/components/collectible-card/media/Media.tsx +11 -6
- package/src/react/ui/components/collectible-card/media/MediaSkeleton.tsx +1 -1
- package/src/react/ui/components/collectible-card/media/types.ts +1 -0
- 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/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/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 +18 -2
- package/src/types/types.ts +1 -0
- package/tsconfig.tsbuildinfo +1 -1
- package/dist/chunk-7F27CJZW.js.map +0 -1
- package/dist/chunk-A7BVFBWB.js +0 -81
- package/dist/chunk-A7BVFBWB.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-FGM57QUU.js +0 -128
- package/dist/chunk-FGM57QUU.js.map +0 -1
- package/dist/chunk-JKCF7HEA.js +0 -1
- package/dist/chunk-JKCF7HEA.js.map +0 -1
- package/dist/chunk-KTST7ORH.js +0 -53
- package/dist/chunk-KTST7ORH.js.map +0 -1
- package/dist/chunk-M6NJ73Y5.js.map +0 -1
- package/dist/chunk-N7BPFK46.js +0 -1
- package/dist/chunk-N7BPFK46.js.map +0 -1
- package/dist/chunk-O34GCB47.js.map +0 -1
- package/dist/chunk-RVIUUJTP.js +0 -76
- package/dist/chunk-RVIUUJTP.js.map +0 -1
- package/dist/chunk-SXVUTSMT.js +0 -2895
- package/dist/chunk-SXVUTSMT.js.map +0 -1
- package/dist/chunk-UJSF7PSC.js.map +0 -1
- package/dist/chunk-Y2HJO2VY.js.map +0 -1
- package/dist/marketplaceConfig-D0MXemEl.d.ts +0 -17
- package/dist/sdk-config-onSPBxJj.d.ts +0 -134
- package/dist/types-B8xzPEKX.d.ts +0 -68
- package/src/react/hooks/useCurrencies.tsx +0 -77
- /package/dist/{chunk-Y63BOO6M.js.map → chunk-LECCEZAO.js.map} +0 -0
- /package/dist/{chunk-WH5BZC7W.js.map → chunk-N7SQWS2R.js.map} +0 -0
|
@@ -10,7 +10,6 @@ import {
|
|
|
10
10
|
countListingsForCollectibleOptions,
|
|
11
11
|
countOfCollectablesOptions,
|
|
12
12
|
countOffersForCollectibleOptions,
|
|
13
|
-
currenciesOptions,
|
|
14
13
|
currencyOptions,
|
|
15
14
|
fetchFilters,
|
|
16
15
|
filtersOptions,
|
|
@@ -22,7 +21,6 @@ import {
|
|
|
22
21
|
listCollectibleActivitiesOptions,
|
|
23
22
|
listCollectiblesPaginatedOptions,
|
|
24
23
|
listCollectionActivitiesOptions,
|
|
25
|
-
listCollectionsOptions,
|
|
26
24
|
listListingsForCollectibleOptions,
|
|
27
25
|
listOffersForCollectibleOptions,
|
|
28
26
|
useAutoSelectFeeOption,
|
|
@@ -40,7 +38,6 @@ import {
|
|
|
40
38
|
useCountListingsForCollectible,
|
|
41
39
|
useCountOfCollectables,
|
|
42
40
|
useCountOffersForCollectible,
|
|
43
|
-
useCurrencies,
|
|
44
41
|
useCurrency,
|
|
45
42
|
useFilterState,
|
|
46
43
|
useFilters,
|
|
@@ -50,6 +47,7 @@ import {
|
|
|
50
47
|
useGenerateListingTransaction,
|
|
51
48
|
useGenerateOfferTransaction,
|
|
52
49
|
useGenerateSellTransaction,
|
|
50
|
+
useGetTokenSuppliesMap,
|
|
53
51
|
useHighestOffer,
|
|
54
52
|
useInventory,
|
|
55
53
|
useListBalances,
|
|
@@ -62,28 +60,28 @@ import {
|
|
|
62
60
|
useListOffersForCollectible,
|
|
63
61
|
useListTokenMetadata,
|
|
64
62
|
useLowestListing,
|
|
63
|
+
useMarketCurrencies,
|
|
65
64
|
useMarketplaceConfig,
|
|
66
65
|
useRoyalty,
|
|
67
66
|
useTransferTokens
|
|
68
|
-
} from "../../chunk-
|
|
69
|
-
import "../../chunk-
|
|
70
|
-
import "../../chunk-
|
|
71
|
-
import "../../chunk-
|
|
67
|
+
} from "../../chunk-TNAR3XEF.js";
|
|
68
|
+
import "../../chunk-N7SQWS2R.js";
|
|
69
|
+
import "../../chunk-YWGFI4PN.js";
|
|
70
|
+
import "../../chunk-LECCEZAO.js";
|
|
71
|
+
import "../../chunk-LAP2CKLN.js";
|
|
72
|
+
import "../../chunk-QY52UADF.js";
|
|
73
|
+
import "../../chunk-L6KWLCER.js";
|
|
72
74
|
import "../../chunk-5O44EPXZ.js";
|
|
73
75
|
import "../../chunk-5C6ZZ6WX.js";
|
|
74
76
|
import "../../chunk-6CTFVBKU.js";
|
|
75
|
-
import "../../chunk-Q3ECVC4F.js";
|
|
76
77
|
import "../../chunk-FUM4OGOQ.js";
|
|
78
|
+
import "../../chunk-Q3ECVC4F.js";
|
|
77
79
|
import "../../chunk-XX4EVWBF.js";
|
|
78
|
-
import "../../chunk-Y2HJO2VY.js";
|
|
79
80
|
import "../../chunk-2PSNAIAT.js";
|
|
80
|
-
import
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
import "../../chunk-
|
|
84
|
-
import "../../chunk-DWTLVJAW.js";
|
|
85
|
-
import "../../chunk-7F27CJZW.js";
|
|
86
|
-
import "../../chunk-D7RVSZAQ.js";
|
|
81
|
+
import "../../chunk-YB5UUF2G.js";
|
|
82
|
+
import "../../chunk-6OPMUCGX.js";
|
|
83
|
+
import "../../chunk-OAOONM4S.js";
|
|
84
|
+
import "../../chunk-XABYNWXO.js";
|
|
87
85
|
import "../../chunk-NX52D7NX.js";
|
|
88
86
|
export {
|
|
89
87
|
checkoutOptionsOptions,
|
|
@@ -97,7 +95,6 @@ export {
|
|
|
97
95
|
countListingsForCollectibleOptions,
|
|
98
96
|
countOfCollectablesOptions,
|
|
99
97
|
countOffersForCollectibleOptions,
|
|
100
|
-
currenciesOptions,
|
|
101
98
|
currencyOptions,
|
|
102
99
|
fetchFilters,
|
|
103
100
|
filtersOptions,
|
|
@@ -109,10 +106,8 @@ export {
|
|
|
109
106
|
listCollectibleActivitiesOptions,
|
|
110
107
|
listCollectiblesPaginatedOptions,
|
|
111
108
|
listCollectionActivitiesOptions,
|
|
112
|
-
listCollectionsOptions,
|
|
113
109
|
listListingsForCollectibleOptions,
|
|
114
110
|
listOffersForCollectibleOptions,
|
|
115
|
-
marketplaceConfigOptions,
|
|
116
111
|
useAutoSelectFeeOption,
|
|
117
112
|
useBalanceOfCollectible,
|
|
118
113
|
useCancelOrder,
|
|
@@ -128,7 +123,6 @@ export {
|
|
|
128
123
|
useCountListingsForCollectible,
|
|
129
124
|
useCountOfCollectables,
|
|
130
125
|
useCountOffersForCollectible,
|
|
131
|
-
useCurrencies,
|
|
132
126
|
useCurrency,
|
|
133
127
|
useFilterState,
|
|
134
128
|
useFilters,
|
|
@@ -138,6 +132,7 @@ export {
|
|
|
138
132
|
useGenerateListingTransaction,
|
|
139
133
|
useGenerateOfferTransaction,
|
|
140
134
|
useGenerateSellTransaction,
|
|
135
|
+
useGetTokenSuppliesMap,
|
|
141
136
|
useHighestOffer,
|
|
142
137
|
useInventory,
|
|
143
138
|
useListBalances,
|
|
@@ -150,6 +145,7 @@ export {
|
|
|
150
145
|
useListOffersForCollectible,
|
|
151
146
|
useListTokenMetadata,
|
|
152
147
|
useLowestListing,
|
|
148
|
+
useMarketCurrencies,
|
|
153
149
|
useMarketplaceConfig,
|
|
154
150
|
useRoyalty,
|
|
155
151
|
useTransferTokens
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
export { c as collectionOptions, f as fetchCollection } from '../../../
|
|
2
|
-
export {
|
|
1
|
+
export { c as collectionOptions, f as fetchCollection } from '../../../useCollection-YAdXfVO7.js';
|
|
2
|
+
export { f as fetchMarketplaceConfig, m as marketplaceConfigOptions } from '../../../marketplaceConfig-BwNAbLPw.js';
|
|
3
3
|
import '@tanstack/react-query';
|
|
4
4
|
import '@0xsequence/metadata';
|
|
5
5
|
import 'zod';
|
|
6
|
-
import '../../../sdk-config-
|
|
7
|
-
import '../../../marketplace.gen-
|
|
6
|
+
import '../../../sdk-config-qorA0TgF.js';
|
|
7
|
+
import '../../../marketplace.gen-D24veUQs.js';
|
|
8
|
+
import '../../../new-marketplace-types-BCw19X9S.js';
|
|
@@ -1,19 +1,21 @@
|
|
|
1
|
-
import "../../../chunk-JKCF7HEA.js";
|
|
2
1
|
import {
|
|
3
2
|
collectionOptions,
|
|
4
3
|
fetchCollection
|
|
5
|
-
} from "../../../chunk-
|
|
4
|
+
} from "../../../chunk-N7SQWS2R.js";
|
|
6
5
|
import {
|
|
6
|
+
fetchMarketplaceConfig,
|
|
7
7
|
marketplaceConfigOptions
|
|
8
|
-
} from "../../../chunk-
|
|
9
|
-
import "../../../chunk-
|
|
10
|
-
import "../../../chunk-
|
|
11
|
-
import "../../../chunk-
|
|
12
|
-
import "../../../chunk-
|
|
8
|
+
} from "../../../chunk-QY52UADF.js";
|
|
9
|
+
import "../../../chunk-L6KWLCER.js";
|
|
10
|
+
import "../../../chunk-YB5UUF2G.js";
|
|
11
|
+
import "../../../chunk-6OPMUCGX.js";
|
|
12
|
+
import "../../../chunk-OAOONM4S.js";
|
|
13
|
+
import "../../../chunk-XABYNWXO.js";
|
|
13
14
|
import "../../../chunk-NX52D7NX.js";
|
|
14
15
|
export {
|
|
15
16
|
collectionOptions,
|
|
16
17
|
fetchCollection,
|
|
18
|
+
fetchMarketplaceConfig,
|
|
17
19
|
marketplaceConfigOptions
|
|
18
20
|
};
|
|
19
21
|
//# sourceMappingURL=index.js.map
|
package/dist/react/index.css
CHANGED