@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.
@@ -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?.description ? /*#__PURE__*/ jsxRuntime.jsx("div", {
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.description
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
- Home
9
+ ${helpers.getStaticLocale('Breadcrumb', 'home')}
9
10
  </a>`;
10
11
  };
11
12
 
@@ -44,7 +44,14 @@ const config = {
44
44
  }
45
45
  ]
46
46
  }
47
- ]
47
+ ],
48
+ locales: {
49
+ editor: {
50
+ en: {
51
+ home: 'Home'
52
+ }
53
+ }
54
+ }
48
55
  };
49
56
 
50
57
  exports.default = config;
@@ -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?.description ? /*#__PURE__*/ jsx("div", {
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.description
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
- Home
7
+ ${getStaticLocale('Breadcrumb', 'home')}
7
8
  </a>`;
8
9
  };
9
10
 
@@ -40,7 +40,14 @@ const config = {
40
40
  }
41
41
  ]
42
42
  }
43
- ]
43
+ ],
44
+ locales: {
45
+ editor: {
46
+ en: {
47
+ home: 'Home'
48
+ }
49
+ }
50
+ }
44
51
  };
45
52
 
46
53
  export { config as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "2.0.0-dev.741",
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.737",
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",