@riosst100/pwa-marketplace 2.5.3 → 2.5.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/intercept.js +6 -6
- package/src/overwrites/pagebuilder/lib/ContentTypes/Products/Carousel/useCarousel.js +2 -1
- package/src/overwrites/peregrine/lib/talons/Breadcrumbs/useBreadcrumbs.js +2 -1
- package/src/overwrites/peregrine/lib/talons/FilterSidebar/useFilterSidebar.js +11 -9
- package/src/overwrites/peregrine/lib/talons/MegaMenu/useMegaMenu.js +2 -1
- package/src/overwrites/peregrine/lib/talons/RootComponents/Category/categoryFragments.gql.js +0 -41
- package/src/overwrites/peregrine/lib/talons/RootComponents/Category/useCategoryContent.js +2 -1
- package/src/talons/AttributesBlock/useAttributesBlock.js +2 -1
- package/src/talons/CustomFilters/useCustomFilters.js +2 -1
- package/src/talons/SellerMegaMenu/useSellerMegaMenu.js +2 -1
- package/src/talons/SellerProducts/useProductContent.js +2 -1
- package/src/talons/SubCategory/useCustomSubCategory.js +2 -1
- package/src/talons/SubCategory/useSubCategory.js +2 -1
package/package.json
CHANGED
package/src/intercept.js
CHANGED
|
@@ -221,12 +221,12 @@ module.exports = targets => {
|
|
|
221
221
|
return routesArray;
|
|
222
222
|
});
|
|
223
223
|
|
|
224
|
-
targets.of('@magento/venia-ui').checkoutPagePaymentTypes.tap(checkoutPagePaymentTypes =>
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
);
|
|
224
|
+
// targets.of('@magento/venia-ui').checkoutPagePaymentTypes.tap(checkoutPagePaymentTypes =>
|
|
225
|
+
// checkoutPagePaymentTypes.add({
|
|
226
|
+
// paymentCode: 'xendit',
|
|
227
|
+
// importPath: '@riosst100/pwa-marketplace/src/components/Xendit/xendit.js'
|
|
228
|
+
// })
|
|
229
|
+
// );
|
|
230
230
|
|
|
231
231
|
// targets.of('@magento/venia-ui').summaryPagePaymentTypes.tap(summaryPagePaymentTypes =>
|
|
232
232
|
// summaryPagePaymentTypes.add({
|
|
@@ -14,7 +14,8 @@ export const useCarousel = (props = {}) => {
|
|
|
14
14
|
useCustomerWishlistSkus();
|
|
15
15
|
|
|
16
16
|
const { data: storeConfigData } = useQuery(operations.getStoreConfigQuery, {
|
|
17
|
-
fetchPolicy: 'cache-and-network'
|
|
17
|
+
fetchPolicy: 'cache-and-network',
|
|
18
|
+
nextFetchPolicy: 'cache-first'
|
|
18
19
|
});
|
|
19
20
|
|
|
20
21
|
const storeConfig = storeConfigData ? storeConfigData.storeConfig : null;
|
|
@@ -48,7 +48,8 @@ export const useBreadcrumbs = props => {
|
|
|
48
48
|
});
|
|
49
49
|
|
|
50
50
|
const { data: storeConfigData } = useQuery(getStoreConfigQuery, {
|
|
51
|
-
fetchPolicy: 'cache-and-network'
|
|
51
|
+
fetchPolicy: 'cache-and-network',
|
|
52
|
+
nextFetchPolicy: 'cache-first'
|
|
52
53
|
});
|
|
53
54
|
|
|
54
55
|
const categoryUrlSuffix = useMemo(() => {
|
|
@@ -36,15 +36,17 @@ export const useFilterSidebar = props => {
|
|
|
36
36
|
|
|
37
37
|
const { data: introspectionData } = useQuery(getFilterInputsQuery);
|
|
38
38
|
|
|
39
|
-
const
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
39
|
+
const subFilterItems = [];
|
|
40
|
+
|
|
41
|
+
// const {
|
|
42
|
+
// called: subFilterItemsCalled,
|
|
43
|
+
// data: subFilterItems,
|
|
44
|
+
// loading: subFilterItemsLoading
|
|
45
|
+
// } = useQuery(getSubFiltersQuery,
|
|
46
|
+
// {
|
|
47
|
+
// fetchPolicy: 'cache-and-network',
|
|
48
|
+
// nextFetchPolicy: 'cache-first'
|
|
49
|
+
// });
|
|
48
50
|
|
|
49
51
|
const attributeCodes = useMemo(
|
|
50
52
|
() => filters.map(({ attribute_code }) => attribute_code),
|
|
@@ -27,7 +27,8 @@ export const useMegaMenu = (props = {}) => {
|
|
|
27
27
|
const [disableFocus, setDisableFocus] = useState(false);
|
|
28
28
|
|
|
29
29
|
const { data: storeConfigData } = useQuery(getStoreConfigQuery, {
|
|
30
|
-
fetchPolicy: 'cache-and-network'
|
|
30
|
+
fetchPolicy: 'cache-and-network',
|
|
31
|
+
nextFetchPolicy: 'cache-first'
|
|
31
32
|
});
|
|
32
33
|
|
|
33
34
|
const { data } = useQuery(getMegaMenuQuery, {
|
package/src/overwrites/peregrine/lib/talons/RootComponents/Category/categoryFragments.gql.js
CHANGED
|
@@ -16,48 +16,9 @@ export const ProductsFragment = gql`
|
|
|
16
16
|
id
|
|
17
17
|
uid
|
|
18
18
|
name
|
|
19
|
-
preorder {
|
|
20
|
-
is_preorder
|
|
21
|
-
preorder_notes
|
|
22
|
-
preorder_availability
|
|
23
|
-
}
|
|
24
|
-
auction_data {
|
|
25
|
-
is_auction
|
|
26
|
-
}
|
|
27
19
|
seller {
|
|
28
20
|
name
|
|
29
21
|
}
|
|
30
|
-
custom_attributes {
|
|
31
|
-
selected_attribute_options {
|
|
32
|
-
attribute_option {
|
|
33
|
-
uid
|
|
34
|
-
label
|
|
35
|
-
is_default
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
entered_attribute_value {
|
|
39
|
-
value
|
|
40
|
-
}
|
|
41
|
-
attribute_metadata {
|
|
42
|
-
uid
|
|
43
|
-
code
|
|
44
|
-
label
|
|
45
|
-
attribute_labels {
|
|
46
|
-
store_code
|
|
47
|
-
label
|
|
48
|
-
}
|
|
49
|
-
data_type
|
|
50
|
-
is_system
|
|
51
|
-
entity_type
|
|
52
|
-
ui_input {
|
|
53
|
-
ui_input_type
|
|
54
|
-
is_html_allowed
|
|
55
|
-
}
|
|
56
|
-
... on ProductAttributeMetadata {
|
|
57
|
-
used_in_components
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
22
|
price_range {
|
|
62
23
|
maximum_price {
|
|
63
24
|
final_price {
|
|
@@ -90,8 +51,6 @@ export const ProductsFragment = gql`
|
|
|
90
51
|
small_image {
|
|
91
52
|
url
|
|
92
53
|
}
|
|
93
|
-
stock_status
|
|
94
|
-
rating_summary
|
|
95
54
|
__typename
|
|
96
55
|
url_key
|
|
97
56
|
}
|
|
@@ -39,7 +39,8 @@ export const useCategoryContent = props => {
|
|
|
39
39
|
const placeholderItems = Array.from({ length: pageSize }).fill(null);
|
|
40
40
|
|
|
41
41
|
const { data: storeConfigData } = useQuery(getStoreConfigQuery, {
|
|
42
|
-
fetchPolicy: 'cache-and-network'
|
|
42
|
+
fetchPolicy: 'cache-and-network',
|
|
43
|
+
nextFetchPolicy: 'cache-first'
|
|
43
44
|
});
|
|
44
45
|
|
|
45
46
|
const virtualCategoryFilters = useMemo(() => {
|
|
@@ -21,7 +21,8 @@ export const useAttributesBlock = props => {
|
|
|
21
21
|
const { getStoreConfigQuery } = operations;
|
|
22
22
|
|
|
23
23
|
const { data: storeConfigData } = useQuery(getStoreConfigQuery, {
|
|
24
|
-
fetchPolicy: 'cache-and-network'
|
|
24
|
+
fetchPolicy: 'cache-and-network',
|
|
25
|
+
nextFetchPolicy: 'cache-first'
|
|
25
26
|
});
|
|
26
27
|
|
|
27
28
|
const categoryUrlSuffix = useMemo(() => {
|
|
@@ -35,7 +35,8 @@ export const useCustomFilters = props => {
|
|
|
35
35
|
const { getCustomFilters, getFilterInputsQuery, getStoreConfigQuery } = operations;
|
|
36
36
|
|
|
37
37
|
const { data: storeConfigData } = useQuery(getStoreConfigQuery, {
|
|
38
|
-
fetchPolicy: 'cache-and-network'
|
|
38
|
+
fetchPolicy: 'cache-and-network',
|
|
39
|
+
nextFetchPolicy: 'cache-first'
|
|
39
40
|
});
|
|
40
41
|
|
|
41
42
|
const [runQuery, queryResponse] = useLazyQuery(getCustomFilters, {
|
|
@@ -27,7 +27,8 @@ export const useSellerMegaMenu = (props = {}) => {
|
|
|
27
27
|
const [disableFocus, setDisableFocus] = useState(false);
|
|
28
28
|
|
|
29
29
|
const { data: storeConfigData } = useQuery(getStoreConfigQuery, {
|
|
30
|
-
fetchPolicy: 'cache-and-network'
|
|
30
|
+
fetchPolicy: 'cache-and-network',
|
|
31
|
+
nextFetchPolicy: 'cache-first'
|
|
31
32
|
});
|
|
32
33
|
|
|
33
34
|
const { data } = useQuery(getMegaMenuQuery, {
|
|
@@ -26,7 +26,8 @@ export const useProductContent = props => {
|
|
|
26
26
|
// console.log(getStoreConfigQuery)
|
|
27
27
|
|
|
28
28
|
const { data: storeConfigData } = useQuery(getStoreConfigQuery, {
|
|
29
|
-
fetchPolicy: 'cache-and-network'
|
|
29
|
+
fetchPolicy: 'cache-and-network',
|
|
30
|
+
nextFetchPolicy: 'cache-first'
|
|
30
31
|
});
|
|
31
32
|
|
|
32
33
|
// return '';
|
|
@@ -21,7 +21,8 @@ export const useCustomSubCategory = props => {
|
|
|
21
21
|
const { getStoreConfigQuery } = operations;
|
|
22
22
|
|
|
23
23
|
const { data: storeConfigData } = useQuery(getStoreConfigQuery, {
|
|
24
|
-
fetchPolicy: 'cache-and-network'
|
|
24
|
+
fetchPolicy: 'cache-and-network',
|
|
25
|
+
nextFetchPolicy: 'cache-first'
|
|
25
26
|
});
|
|
26
27
|
|
|
27
28
|
const categoryUrlSuffix = useMemo(() => {
|
|
@@ -21,7 +21,8 @@ export const useSubCategory = props => {
|
|
|
21
21
|
const { getStoreConfigQuery } = operations;
|
|
22
22
|
|
|
23
23
|
const { data: storeConfigData } = useQuery(getStoreConfigQuery, {
|
|
24
|
-
fetchPolicy: 'cache-and-network'
|
|
24
|
+
fetchPolicy: 'cache-and-network',
|
|
25
|
+
nextFetchPolicy: 'cache-first'
|
|
25
26
|
});
|
|
26
27
|
|
|
27
28
|
const categoryUrlSuffix = useMemo(() => {
|