@gem-sdk/components 2.0.0-staging.145 → 2.0.0-staging.146

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.
@@ -257,7 +257,7 @@ const HeroBanner = ({ builderAttrs, builderProps, setting, styles, style, childr
257
257
  </div>
258
258
  `;
259
259
  };
260
- helpers.getInsertLinkData('', link);
260
+ const { urlData } = helpers.getInsertLinkData('', link);
261
261
  return core.template`
262
262
  <div class="${core.cls('gp-flex gp-w-full', common.getClassJustify(alignBannerData))}" style="${{
263
263
  ...styleHeight,
@@ -266,6 +266,8 @@ const HeroBanner = ({ builderAttrs, builderProps, setting, styles, style, childr
266
266
  }}">
267
267
  <gp-hero-banner
268
268
  gp-data='${core.dataStringify({
269
+ href: urlData?.href ?? '',
270
+ target: urlData?.target ?? '_blank',
269
271
  background: backgroundResponsive,
270
272
  uid: builderProps?.uid,
271
273
  enableParallax,
@@ -290,7 +292,6 @@ const HeroBanner = ({ builderAttrs, builderProps, setting, styles, style, childr
290
292
  }}"
291
293
  data-id="${builderProps?.uid}"
292
294
  >
293
-
294
295
  ${core.RenderIf(!link?.link, renderInnerHeroBanner())}
295
296
  ${core.RenderIf(!!link?.link, core.template /* liquid */ `
296
297
  <div
@@ -253,7 +253,7 @@ const HeroBanner = ({ builderAttrs, builderProps, setting, styles, style, childr
253
253
  </div>
254
254
  `;
255
255
  };
256
- getInsertLinkData('', link);
256
+ const { urlData } = getInsertLinkData('', link);
257
257
  return template`
258
258
  <div class="${cls('gp-flex gp-w-full', getClassJustify(alignBannerData))}" style="${{
259
259
  ...styleHeight,
@@ -262,6 +262,8 @@ const HeroBanner = ({ builderAttrs, builderProps, setting, styles, style, childr
262
262
  }}">
263
263
  <gp-hero-banner
264
264
  gp-data='${dataStringify({
265
+ href: urlData?.href ?? '',
266
+ target: urlData?.target ?? '_blank',
265
267
  background: backgroundResponsive,
266
268
  uid: builderProps?.uid,
267
269
  enableParallax,
@@ -286,7 +288,6 @@ const HeroBanner = ({ builderAttrs, builderProps, setting, styles, style, childr
286
288
  }}"
287
289
  data-id="${builderProps?.uid}"
288
290
  >
289
-
290
291
  ${RenderIf(!link?.link, renderInnerHeroBanner())}
291
292
  ${RenderIf(!!link?.link, template /* liquid */ `
292
293
  <div
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "2.0.0-staging.145",
3
+ "version": "2.0.0-staging.146",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",