@riosst100/pwa-marketplace 3.0.4 → 3.0.5
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/package.json +1 -1
- package/src/components/CrossSeller/item.js +3 -4
- package/src/components/LinkToOtherStores/index.js +4 -4
- package/src/components/ProductListTab/productListTab.js +1 -1
- package/src/components/commons/Select/index.js +8 -4
- package/src/overwrites/peregrine/lib/talons/CartPage/PriceSummary/priceSummaryFragments.gql.js +3 -0
- package/src/overwrites/peregrine/lib/talons/CartPage/ProductListing/productListingFragments.gql.js +4 -0
- package/src/overwrites/peregrine/lib/talons/CheckoutPage/checkoutPage.extended.gql.js +20 -1
- package/src/overwrites/peregrine/lib/talons/FilterSidebar/useFilterSidebar.js +3 -3
- package/src/overwrites/peregrine/lib/talons/ProductFullDetail/useProductFullDetail.js +7 -8
- package/src/overwrites/peregrine/lib/talons/RootComponents/Product/productDetailFragment.gql.js +5 -0
- package/src/overwrites/venia-ui/lib/components/Breadcrumbs/breadcrumbs.js +20 -1
- package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/product.js +41 -1
- package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/product.module.css +1 -1
- package/src/overwrites/venia-ui/lib/components/CartPage/ProductListingBySeller/productListingBySeller.js +41 -8
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/ItemsReview/item.js +43 -2
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/ItemsReview/item.module.css +36 -0
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/ItemsReview/itemsReview.js +8 -2
- package/src/overwrites/venia-ui/lib/components/CheckoutPage/checkoutPage.js +7 -2
- package/src/overwrites/venia-ui/lib/components/FilterModal/CurrentFilters/currentFilters.js +1 -1
- package/src/overwrites/venia-ui/lib/components/FilterSidebar/filterSidebar.js +1 -1
- package/src/overwrites/venia-ui/lib/components/Gallery/item.js +2 -10
- package/src/overwrites/venia-ui/lib/components/Gallery/item.module.css +5 -4
- package/src/overwrites/venia-ui/lib/components/ProductFullDetail/CustomAttributes/customAttributes.js +10 -2
- package/src/overwrites/venia-ui/lib/components/ProductFullDetail/components/preOrderDetail.js +195 -37
- package/src/overwrites/venia-ui/lib/components/ProductFullDetail/productFullDetail.js +194 -63
- package/src/talons/ProductContent/productContent.gql.js +11 -1
- package/src/talons/ProductContent/useProductContent.js +14 -2
|
@@ -27,7 +27,8 @@ export const useProductContent = props => {
|
|
|
27
27
|
getCategoryContentQuery,
|
|
28
28
|
getProductFiltersByCategoryQuery,
|
|
29
29
|
getCategoryAvailableSortMethodsQuery,
|
|
30
|
-
getStoreConfigQuery
|
|
30
|
+
getStoreConfigQuery,
|
|
31
|
+
getPaymentTypesQuery
|
|
31
32
|
} = operations;
|
|
32
33
|
|
|
33
34
|
const placeholderItems = Array.from({ length: pageSize }).fill(null);
|
|
@@ -36,6 +37,13 @@ export const useProductContent = props => {
|
|
|
36
37
|
fetchPolicy: 'cache-and-network'
|
|
37
38
|
});
|
|
38
39
|
|
|
40
|
+
const { data: paymentTypeData, loading: paymentTypeLoading } = useQuery(
|
|
41
|
+
getPaymentTypesQuery,
|
|
42
|
+
{
|
|
43
|
+
fetchPolicy: 'cache-and-network'
|
|
44
|
+
}
|
|
45
|
+
);
|
|
46
|
+
|
|
39
47
|
const virtualCategoryFilters = useMemo(() => {
|
|
40
48
|
if (storeConfigData) {
|
|
41
49
|
const data = storeConfigData.storeConfig.custommarketplace_plp_filters_virtualcategory;
|
|
@@ -161,6 +169,8 @@ export const useProductContent = props => {
|
|
|
161
169
|
? sortData.products.sort_fields.options
|
|
162
170
|
: null;
|
|
163
171
|
|
|
172
|
+
const paymentTypeOptions = paymentTypeData?.getPaymentType || [];
|
|
173
|
+
|
|
164
174
|
useEffect(() => {
|
|
165
175
|
if (!categoryLoading && categoryData.categories.items.length > 0) {
|
|
166
176
|
dispatch({
|
|
@@ -187,6 +197,8 @@ export const useProductContent = props => {
|
|
|
187
197
|
parent,
|
|
188
198
|
attributesBlock,
|
|
189
199
|
category,
|
|
190
|
-
virtualCategoryFilters
|
|
200
|
+
virtualCategoryFilters,
|
|
201
|
+
paymentTypeOptions,
|
|
202
|
+
paymentTypeLoading
|
|
191
203
|
};
|
|
192
204
|
};
|