@gem-sdk/core 1.44.0 → 1.44.1

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.
@@ -112,6 +112,7 @@ const PickProduct = (props)=>{
112
112
  }, [
113
113
  sectionProduct
114
114
  ]);
115
+ const NO_IMAGE_SRC = 'https://cdn.shopify.com/s/assets/no-image-2048-5e88c1b20e087fb7bbe9a3771824e743c244f437e4f8ba93bbf7b11b53f7824c_large.gif';
115
116
  return /*#__PURE__*/ jsxRuntime.jsxs("div", {
116
117
  className: "gp-flex gp-flex-col gp-gap-2",
117
118
  children: [
@@ -130,7 +131,7 @@ const PickProduct = (props)=>{
130
131
  children: [
131
132
  /*#__PURE__*/ jsxRuntime.jsx("img", {
132
133
  className: "gp-rounded-lg gp-w-10 gp-h-10",
133
- src: activeProduct?.image,
134
+ src: activeProduct?.image || NO_IMAGE_SRC,
134
135
  alt: "product_image"
135
136
  }),
136
137
  /*#__PURE__*/ jsxRuntime.jsx("span", {
@@ -189,7 +190,7 @@ const PickProduct = (props)=>{
189
190
  children: [
190
191
  /*#__PURE__*/ jsxRuntime.jsx("img", {
191
192
  className: "gp-rounded-lg gp-w-10 gp-h-10",
192
- src: item.node?.featuredImage?.src,
193
+ src: item.node?.featuredImage?.src || NO_IMAGE_SRC,
193
194
  alt: "product_image"
194
195
  }),
195
196
  /*#__PURE__*/ jsxRuntime.jsx("span", {
@@ -110,6 +110,7 @@ const PickProduct = (props)=>{
110
110
  }, [
111
111
  sectionProduct
112
112
  ]);
113
+ const NO_IMAGE_SRC = 'https://cdn.shopify.com/s/assets/no-image-2048-5e88c1b20e087fb7bbe9a3771824e743c244f437e4f8ba93bbf7b11b53f7824c_large.gif';
113
114
  return /*#__PURE__*/ jsxs("div", {
114
115
  className: "gp-flex gp-flex-col gp-gap-2",
115
116
  children: [
@@ -128,7 +129,7 @@ const PickProduct = (props)=>{
128
129
  children: [
129
130
  /*#__PURE__*/ jsx("img", {
130
131
  className: "gp-rounded-lg gp-w-10 gp-h-10",
131
- src: activeProduct?.image,
132
+ src: activeProduct?.image || NO_IMAGE_SRC,
132
133
  alt: "product_image"
133
134
  }),
134
135
  /*#__PURE__*/ jsx("span", {
@@ -187,7 +188,7 @@ const PickProduct = (props)=>{
187
188
  children: [
188
189
  /*#__PURE__*/ jsx("img", {
189
190
  className: "gp-rounded-lg gp-w-10 gp-h-10",
190
- src: item.node?.featuredImage?.src,
191
+ src: item.node?.featuredImage?.src || NO_IMAGE_SRC,
191
192
  alt: "product_image"
192
193
  }),
193
194
  /*#__PURE__*/ jsx("span", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/core",
3
- "version": "1.44.0",
3
+ "version": "1.44.1",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",