@gem-sdk/pages 2.0.0-dev.661 → 2.0.0-dev.695
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.
|
@@ -8,6 +8,7 @@ exports.PublishedThemePageMetafields = void 0;
|
|
|
8
8
|
PublishedThemePageMetafields["ANALYTICS_FB_PIXEL_ID"] = 'analytics_fb_pixel_id';
|
|
9
9
|
PublishedThemePageMetafields["ANALYTICS_TIKTOK_PIXEL_ID"] = 'analytics_tiktok_pixel_id';
|
|
10
10
|
PublishedThemePageMetafields["GLOBAL_META_DESCRIPTION"] = 'global-meta-description';
|
|
11
|
+
PublishedThemePageMetafields["GLOBAL_META_TITLE"] = 'global-meta-title';
|
|
11
12
|
PublishedThemePageMetafields["GLOBAL_META_THUMBNAIL"] = 'global-meta-thumbnail';
|
|
12
13
|
PublishedThemePageMetafields["NOINDEX_KEY"] = 'noindex';
|
|
13
14
|
PublishedThemePageMetafields["NOFOLLOW_KEY"] = 'nofollow';
|
|
@@ -61,6 +61,7 @@ const getStaticPagePropsV2 = (fetcher, shopifyFetcher)=>async (slug)=>{
|
|
|
61
61
|
]);
|
|
62
62
|
const mobileOnly = dataBuilder.isMobile ?? false;
|
|
63
63
|
const description = getMetafield.getPublishedThemePageMetafieldByKey(index.PublishedThemePageMetafields.GLOBAL_META_DESCRIPTION, dataBuilder?.metafields) || publishedShopMetaValue?.publishedShopMetas?.find((item)=>item?.key === index.PublishedThemePageMetafields.GLOBAL_META_DESCRIPTION)?.value;
|
|
64
|
+
const title = getMetafield.getPublishedThemePageMetafieldByKey(index.PublishedThemePageMetafields.GLOBAL_META_TITLE, dataBuilder?.metafields) || publishedShopMetaValue?.publishedShopMetas?.find((item)=>item?.key === index.PublishedThemePageMetafields.GLOBAL_META_TITLE)?.value;
|
|
64
65
|
const thumbnail = parseJson.parseJson(getMetafield.getPublishedThemePageMetafieldByKey(index.PublishedThemePageMetafields.GLOBAL_META_THUMBNAIL, dataBuilder?.metafields) || publishedShopMetaValue?.publishedShopMetas?.find((item)=>item?.key === index.PublishedThemePageMetafields.GLOBAL_META_THUMBNAIL)?.value);
|
|
65
66
|
const noindex = getMetafield.getPublishedThemePageMetafieldByKey(index.PublishedThemePageMetafields.NOINDEX_KEY, dataBuilder?.metafields) || publishedShopMetaValue?.publishedShopMetas?.find((item)=>item?.key === index.PublishedThemePageMetafields.NOINDEX_KEY)?.value;
|
|
66
67
|
const nofollow = getMetafield.getPublishedThemePageMetafieldByKey(index.PublishedThemePageMetafields.NOFOLLOW_KEY, dataBuilder?.metafields) || publishedShopMetaValue?.publishedShopMetas?.find((item)=>item?.key === index.PublishedThemePageMetafields.NOFOLLOW_KEY)?.value;
|
|
@@ -69,12 +70,12 @@ const getStaticPagePropsV2 = (fetcher, shopifyFetcher)=>async (slug)=>{
|
|
|
69
70
|
const favicon = shopData?.storeProperty?.favicon ?? '/favicon/favicon-32x32.png';
|
|
70
71
|
const seo = {
|
|
71
72
|
defaultTitle: shopMeta?.shop.name,
|
|
72
|
-
title: dataBuilder?.name,
|
|
73
|
+
title: title || dataBuilder?.name,
|
|
73
74
|
description: description ?? shopMeta?.shop.description,
|
|
74
75
|
openGraph: {
|
|
75
76
|
site_name: shopMeta?.shop.name,
|
|
76
77
|
locale: shopMeta?.localization.country.isoCode,
|
|
77
|
-
title: dataBuilder?.name ?? shopMeta?.shop.name,
|
|
78
|
+
title: (title || dataBuilder?.name) ?? shopMeta?.shop.name,
|
|
78
79
|
description: description ?? shopMeta?.shop.description,
|
|
79
80
|
images: thumbnail ? [
|
|
80
81
|
thumbnail
|
|
@@ -6,6 +6,7 @@ var PublishedThemePageMetafields;
|
|
|
6
6
|
PublishedThemePageMetafields["ANALYTICS_FB_PIXEL_ID"] = 'analytics_fb_pixel_id';
|
|
7
7
|
PublishedThemePageMetafields["ANALYTICS_TIKTOK_PIXEL_ID"] = 'analytics_tiktok_pixel_id';
|
|
8
8
|
PublishedThemePageMetafields["GLOBAL_META_DESCRIPTION"] = 'global-meta-description';
|
|
9
|
+
PublishedThemePageMetafields["GLOBAL_META_TITLE"] = 'global-meta-title';
|
|
9
10
|
PublishedThemePageMetafields["GLOBAL_META_THUMBNAIL"] = 'global-meta-thumbnail';
|
|
10
11
|
PublishedThemePageMetafields["NOINDEX_KEY"] = 'noindex';
|
|
11
12
|
PublishedThemePageMetafields["NOFOLLOW_KEY"] = 'nofollow';
|
|
@@ -59,6 +59,7 @@ const getStaticPagePropsV2 = (fetcher, shopifyFetcher)=>async (slug)=>{
|
|
|
59
59
|
]);
|
|
60
60
|
const mobileOnly = dataBuilder.isMobile ?? false;
|
|
61
61
|
const description = getPublishedThemePageMetafieldByKey(PublishedThemePageMetafields.GLOBAL_META_DESCRIPTION, dataBuilder?.metafields) || publishedShopMetaValue?.publishedShopMetas?.find((item)=>item?.key === PublishedThemePageMetafields.GLOBAL_META_DESCRIPTION)?.value;
|
|
62
|
+
const title = getPublishedThemePageMetafieldByKey(PublishedThemePageMetafields.GLOBAL_META_TITLE, dataBuilder?.metafields) || publishedShopMetaValue?.publishedShopMetas?.find((item)=>item?.key === PublishedThemePageMetafields.GLOBAL_META_TITLE)?.value;
|
|
62
63
|
const thumbnail = parseJson(getPublishedThemePageMetafieldByKey(PublishedThemePageMetafields.GLOBAL_META_THUMBNAIL, dataBuilder?.metafields) || publishedShopMetaValue?.publishedShopMetas?.find((item)=>item?.key === PublishedThemePageMetafields.GLOBAL_META_THUMBNAIL)?.value);
|
|
63
64
|
const noindex = getPublishedThemePageMetafieldByKey(PublishedThemePageMetafields.NOINDEX_KEY, dataBuilder?.metafields) || publishedShopMetaValue?.publishedShopMetas?.find((item)=>item?.key === PublishedThemePageMetafields.NOINDEX_KEY)?.value;
|
|
64
65
|
const nofollow = getPublishedThemePageMetafieldByKey(PublishedThemePageMetafields.NOFOLLOW_KEY, dataBuilder?.metafields) || publishedShopMetaValue?.publishedShopMetas?.find((item)=>item?.key === PublishedThemePageMetafields.NOFOLLOW_KEY)?.value;
|
|
@@ -67,12 +68,12 @@ const getStaticPagePropsV2 = (fetcher, shopifyFetcher)=>async (slug)=>{
|
|
|
67
68
|
const favicon = shopData?.storeProperty?.favicon ?? '/favicon/favicon-32x32.png';
|
|
68
69
|
const seo = {
|
|
69
70
|
defaultTitle: shopMeta?.shop.name,
|
|
70
|
-
title: dataBuilder?.name,
|
|
71
|
+
title: title || dataBuilder?.name,
|
|
71
72
|
description: description ?? shopMeta?.shop.description,
|
|
72
73
|
openGraph: {
|
|
73
74
|
site_name: shopMeta?.shop.name,
|
|
74
75
|
locale: shopMeta?.localization.country.isoCode,
|
|
75
|
-
title: dataBuilder?.name ?? shopMeta?.shop.name,
|
|
76
|
+
title: (title || dataBuilder?.name) ?? shopMeta?.shop.name,
|
|
76
77
|
description: description ?? shopMeta?.shop.description,
|
|
77
78
|
images: thumbnail ? [
|
|
78
79
|
thumbnail
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gem-sdk/pages",
|
|
3
|
-
"version": "2.0.0-dev.
|
|
3
|
+
"version": "2.0.0-dev.695",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
"next": "14.2.20"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@gem-sdk/core": "2.0.0-dev.
|
|
30
|
-
"@gem-sdk/plugin-cookie-bar": "2.0.0-dev.
|
|
31
|
-
"@gem-sdk/plugin-quick-view": "2.0.0-dev.
|
|
32
|
-
"@gem-sdk/plugin-sticky-add-to-cart": "2.0.0-dev.
|
|
29
|
+
"@gem-sdk/core": "2.0.0-dev.695",
|
|
30
|
+
"@gem-sdk/plugin-cookie-bar": "2.0.0-dev.695",
|
|
31
|
+
"@gem-sdk/plugin-quick-view": "2.0.0-dev.695",
|
|
32
|
+
"@gem-sdk/plugin-sticky-add-to-cart": "2.0.0-dev.695"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
35
|
"next": ">=13"
|