@magento/peregrine 15.7.2-alpha2 → 15.7.2-alpha3

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.
@@ -7,6 +7,8 @@ export const CategoryFragment = gql`
7
7
  meta_title
8
8
  meta_keywords
9
9
  meta_description
10
+ url_path
11
+ url_key
10
12
  }
11
13
  `;
12
14
 
@@ -49,6 +49,7 @@ export const useCategory = props => {
49
49
  nextFetchPolicy: 'cache-first'
50
50
  });
51
51
  const pageSize = pageSizeData && pageSizeData.storeConfig.grid_per_page;
52
+ const storeConfig = pageSizeData && pageSizeData.storeConfig;
52
53
 
53
54
  const [paginationValues, paginationApi] = usePagination();
54
55
  const { currentPage, totalPages } = paginationValues;
@@ -222,6 +223,7 @@ export const useCategory = props => {
222
223
  pageControl,
223
224
  sortProps,
224
225
  pageSize,
225
- categoryNotFound
226
+ categoryNotFound,
227
+ storeConfig
226
228
  };
227
229
  };
@@ -8,6 +8,7 @@ export const GET_STORE_CONFIG_DATA = gql`
8
8
  storeConfig {
9
9
  store_code
10
10
  product_url_suffix
11
+ product_canonical_tag
11
12
  }
12
13
  }
13
14
  `;
@@ -115,6 +115,7 @@ export const useProduct = props => {
115
115
  return {
116
116
  error,
117
117
  loading,
118
- product
118
+ product,
119
+ storeConfig: storeConfigData?.storeConfig
119
120
  };
120
121
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@magento/peregrine",
3
- "version": "15.7.2-alpha2",
3
+ "version": "15.7.2-alpha3",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },