@gem-sdk/components 3.0.0-pre-production.12 → 3.0.0-pre-production.14

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.
@@ -44,7 +44,7 @@ const ArticleContent = ({ styles, builderProps })=>{
44
44
  id: `shopify-text-element-${builderProps?.uid}`,
45
45
  className: "gp-article-description",
46
46
  "data-article-id": article?.baseID?.replace('gid://shopify/OnlineStoreArticle/', ''),
47
- children: !article?.description ? /*#__PURE__*/ jsxRuntime.jsx("div", {
47
+ children: !article?.content.html ? /*#__PURE__*/ jsxRuntime.jsx("div", {
48
48
  children: /*#__PURE__*/ jsxRuntime.jsx("p", {
49
49
  className: "gp-p-2 gp-text-sm gp-font-semibold gp-text-gray-500",
50
50
  children: "This article does not have content."
@@ -67,7 +67,7 @@ const ArticleContent = ({ styles, builderProps })=>{
67
67
  ...appendTypoStyle
68
68
  },
69
69
  dangerouslySetInnerHTML: {
70
- __html: article.description
70
+ __html: article?.content.html
71
71
  }
72
72
  })
73
73
  ]
@@ -97,7 +97,7 @@ const HTML5Embed = (props)=>{
97
97
  </div>
98
98
  </gp-lite-html5-embed>
99
99
  ${core.RenderIf(core.isLocalEnv, `<script ${helpers.getSettingPreloadData('class="gps-link" delay', 'src')}="{{ 'gp-lite-html5-embed.js' | asset_url }}" defer="defer"></script>`, `<script ${helpers.getSettingPreloadData('class="gps-link" delay', 'src')}="${core.baseAssetURL}/assets-v2/gp-lite-html5-embed.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}" defer="defer"></script>`)}
100
- <script src="https://cdn.jsdelivr.net/npm/vanilla-lazyload@17.8.3/dist/lazyload.min.js"></script>
100
+ <script src="https://cdn.jsdelivr.net/npm/vanilla-lazyload@17.8.3/dist/lazyload.min.js" defer="defer"></script>
101
101
  <script>
102
102
  if(lazyLoadInstance){lazyLoadInstance.update()}else{var lazyLoadInstance = new LazyLoad()}
103
103
  </script>
@@ -40,7 +40,7 @@ const ArticleContent = ({ styles, builderProps })=>{
40
40
  id: `shopify-text-element-${builderProps?.uid}`,
41
41
  className: "gp-article-description",
42
42
  "data-article-id": article?.baseID?.replace('gid://shopify/OnlineStoreArticle/', ''),
43
- children: !article?.description ? /*#__PURE__*/ jsx("div", {
43
+ children: !article?.content.html ? /*#__PURE__*/ jsx("div", {
44
44
  children: /*#__PURE__*/ jsx("p", {
45
45
  className: "gp-p-2 gp-text-sm gp-font-semibold gp-text-gray-500",
46
46
  children: "This article does not have content."
@@ -63,7 +63,7 @@ const ArticleContent = ({ styles, builderProps })=>{
63
63
  ...appendTypoStyle
64
64
  },
65
65
  dangerouslySetInnerHTML: {
66
- __html: article.description
66
+ __html: article?.content.html
67
67
  }
68
68
  })
69
69
  ]
@@ -93,7 +93,7 @@ const HTML5Embed = (props)=>{
93
93
  </div>
94
94
  </gp-lite-html5-embed>
95
95
  ${RenderIf(isLocalEnv, `<script ${getSettingPreloadData('class="gps-link" delay', 'src')}="{{ 'gp-lite-html5-embed.js' | asset_url }}" defer="defer"></script>`, `<script ${getSettingPreloadData('class="gps-link" delay', 'src')}="${baseAssetURL}/assets-v2/gp-lite-html5-embed.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}" defer="defer"></script>`)}
96
- <script src="https://cdn.jsdelivr.net/npm/vanilla-lazyload@17.8.3/dist/lazyload.min.js"></script>
96
+ <script src="https://cdn.jsdelivr.net/npm/vanilla-lazyload@17.8.3/dist/lazyload.min.js" defer="defer"></script>
97
97
  <script>
98
98
  if(lazyLoadInstance){lazyLoadInstance.update()}else{var lazyLoadInstance = new LazyLoad()}
99
99
  </script>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "3.0.0-pre-production.12",
3
+ "version": "3.0.0-pre-production.14",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",
@@ -21,7 +21,7 @@
21
21
  "format": "prettier --write \"./src/**/*.{ts,tsx}\""
22
22
  },
23
23
  "devDependencies": {
24
- "@gem-sdk/core": "3.0.0-pre-production.8",
24
+ "@gem-sdk/core": "3.0.0-pre-production.14",
25
25
  "@gem-sdk/styles": "3.0.0-pre-production.1",
26
26
  "@types/react-transition-group": "^4.4.5"
27
27
  },