@gem-sdk/components 2.0.0-dev.741 → 2.0.0-dev.743
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/dist/cjs/article/components/ArticleContent.js +2 -2
- package/dist/cjs/breadcrumb/components/templates/home.js +2 -1
- package/dist/cjs/breadcrumb/settings/Breadcrumb.js +8 -1
- package/dist/esm/article/components/ArticleContent.js +2 -2
- package/dist/esm/breadcrumb/components/templates/home.js +2 -1
- package/dist/esm/breadcrumb/settings/Breadcrumb.js +8 -1
- package/package.json +2 -2
|
@@ -52,7 +52,7 @@ const ArticleContent = ({ styles, builderProps })=>{
|
|
|
52
52
|
id: `shopify-text-element-${builderProps?.uid}`,
|
|
53
53
|
className: "gp-article-description",
|
|
54
54
|
"data-article-id": article?.baseID?.replace('gid://shopify/OnlineStoreArticle/', ''),
|
|
55
|
-
children: !article?.
|
|
55
|
+
children: !article?.content.html ? /*#__PURE__*/ jsxRuntime.jsx("div", {
|
|
56
56
|
children: /*#__PURE__*/ jsxRuntime.jsx(NoDataState.default, {
|
|
57
57
|
elementType: "secondary",
|
|
58
58
|
description: "Inform and provide value to the audience with article content.",
|
|
@@ -90,7 +90,7 @@ const ArticleContent = ({ styles, builderProps })=>{
|
|
|
90
90
|
...appendTypoStyle
|
|
91
91
|
},
|
|
92
92
|
dangerouslySetInnerHTML: {
|
|
93
|
-
__html: article.
|
|
93
|
+
__html: article?.content.html
|
|
94
94
|
}
|
|
95
95
|
})
|
|
96
96
|
]
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var core = require('@gem-sdk/core');
|
|
4
|
+
var helpers = require('../../../helpers.js');
|
|
4
5
|
|
|
5
6
|
const BreadcrumbHomeTemplate = ({ composePageClasses, breadcrumbChildItemStyles })=>{
|
|
6
7
|
return core.template`
|
|
7
8
|
<a class="${composePageClasses}" style="${breadcrumbChildItemStyles}" href="{{ routes.root_url }}">
|
|
8
|
-
|
|
9
|
+
${helpers.getStaticLocale('Breadcrumb', 'home')}
|
|
9
10
|
</a>`;
|
|
10
11
|
};
|
|
11
12
|
|
|
@@ -48,7 +48,7 @@ const ArticleContent = ({ styles, builderProps })=>{
|
|
|
48
48
|
id: `shopify-text-element-${builderProps?.uid}`,
|
|
49
49
|
className: "gp-article-description",
|
|
50
50
|
"data-article-id": article?.baseID?.replace('gid://shopify/OnlineStoreArticle/', ''),
|
|
51
|
-
children: !article?.
|
|
51
|
+
children: !article?.content.html ? /*#__PURE__*/ jsx("div", {
|
|
52
52
|
children: /*#__PURE__*/ jsx(NoDataState, {
|
|
53
53
|
elementType: "secondary",
|
|
54
54
|
description: "Inform and provide value to the audience with article content.",
|
|
@@ -86,7 +86,7 @@ const ArticleContent = ({ styles, builderProps })=>{
|
|
|
86
86
|
...appendTypoStyle
|
|
87
87
|
},
|
|
88
88
|
dangerouslySetInnerHTML: {
|
|
89
|
-
__html: article.
|
|
89
|
+
__html: article?.content.html
|
|
90
90
|
}
|
|
91
91
|
})
|
|
92
92
|
]
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { template } from '@gem-sdk/core';
|
|
2
|
+
import { getStaticLocale } from '../../../helpers.js';
|
|
2
3
|
|
|
3
4
|
const BreadcrumbHomeTemplate = ({ composePageClasses, breadcrumbChildItemStyles })=>{
|
|
4
5
|
return template`
|
|
5
6
|
<a class="${composePageClasses}" style="${breadcrumbChildItemStyles}" href="{{ routes.root_url }}">
|
|
6
|
-
|
|
7
|
+
${getStaticLocale('Breadcrumb', 'home')}
|
|
7
8
|
</a>`;
|
|
8
9
|
};
|
|
9
10
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gem-sdk/components",
|
|
3
|
-
"version": "2.0.0-dev.
|
|
3
|
+
"version": "2.0.0-dev.743",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"scan-all-text": "rollup -c ./scripts/rollup.config.settings.mjs && node ./scripts/scan-all-text && node ./scripts/scan-all-text"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@gem-sdk/core": "2.0.0-dev.
|
|
28
|
+
"@gem-sdk/core": "2.0.0-dev.742",
|
|
29
29
|
"@gem-sdk/styles": "2.0.0-dev.703",
|
|
30
30
|
"@gem-sdk/system": "2.0.0-dev.695",
|
|
31
31
|
"@types/react-transition-group": "^4.4.5",
|