@gem-sdk/pages 2.5.9 → 2.5.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.
@@ -59,6 +59,8 @@ const getStaticPagePropsV2 = (fetcher, shopifyFetcher)=>async (slug)=>{
59
59
  const mobileOnly = dataBuilder.isMobile ?? false;
60
60
  const description = dataBuilder?.themePageDataSEO?.find((item)=>item?.key === 'global-meta-description')?.value;
61
61
  const thumbnail = parseJson.parseJson(dataBuilder?.themePageDataSEO?.find((item)=>item?.key === 'global-meta-thumbnail')?.value);
62
+ const noindex = dataBuilder?.metafields?.find((item)=>item?.key === 'noindex')?.value;
63
+ const nofollow = dataBuilder?.metafields?.find((item)=>item?.key === 'nofollow')?.value;
62
64
  const shopMeta = shopifyMeta.status === 'fulfilled' ? shopifyMeta.value : undefined;
63
65
  const shopData = storeProperty.status === 'fulfilled' ? storeProperty.value : undefined;
64
66
  const favicon = shopData?.storeProperty?.favicon ?? '';
@@ -75,6 +77,8 @@ const getStaticPagePropsV2 = (fetcher, shopifyFetcher)=>async (slug)=>{
75
77
  thumbnail
76
78
  ] : []
77
79
  },
80
+ noindex: noindex === 'true',
81
+ nofollow: nofollow === 'true',
78
82
  canonical: `https://${shopData?.storeProperty?.primaryDomain}/${slug}`,
79
83
  additionalMetaTags: [
80
84
  {
@@ -57,6 +57,8 @@ const getStaticPagePropsV2 = (fetcher, shopifyFetcher)=>async (slug)=>{
57
57
  const mobileOnly = dataBuilder.isMobile ?? false;
58
58
  const description = dataBuilder?.themePageDataSEO?.find((item)=>item?.key === 'global-meta-description')?.value;
59
59
  const thumbnail = parseJson(dataBuilder?.themePageDataSEO?.find((item)=>item?.key === 'global-meta-thumbnail')?.value);
60
+ const noindex = dataBuilder?.metafields?.find((item)=>item?.key === 'noindex')?.value;
61
+ const nofollow = dataBuilder?.metafields?.find((item)=>item?.key === 'nofollow')?.value;
60
62
  const shopMeta = shopifyMeta.status === 'fulfilled' ? shopifyMeta.value : undefined;
61
63
  const shopData = storeProperty.status === 'fulfilled' ? storeProperty.value : undefined;
62
64
  const favicon = shopData?.storeProperty?.favicon ?? '';
@@ -73,6 +75,8 @@ const getStaticPagePropsV2 = (fetcher, shopifyFetcher)=>async (slug)=>{
73
75
  thumbnail
74
76
  ] : []
75
77
  },
78
+ noindex: noindex === 'true',
79
+ nofollow: nofollow === 'true',
76
80
  canonical: `https://${shopData?.storeProperty?.primaryDomain}/${slug}`,
77
81
  additionalMetaTags: [
78
82
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/pages",
3
- "version": "2.5.9",
3
+ "version": "2.5.11",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",
@@ -26,7 +26,7 @@
26
26
  "next": "latest"
27
27
  },
28
28
  "devDependencies": {
29
- "@gem-sdk/core": "2.5.9",
29
+ "@gem-sdk/core": "2.5.11",
30
30
  "@gem-sdk/plugin-cookie-bar": "2.1.0",
31
31
  "@gem-sdk/plugin-quick-view": "2.1.0",
32
32
  "@gem-sdk/plugin-sticky-add-to-cart": "2.1.0"