@gem-sdk/components 2.0.0-staging.126 → 2.0.0-staging.128

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.
@@ -36,6 +36,7 @@ const Column = ({ children, className, style, builderAttrs, builderProps, advanc
36
36
  ...core.makeStyleResponsive('o', orderRender)
37
37
  },
38
38
  className: core.cls(className, builderProps?.uid, 'gp-relative gp-flex gp-flex-col', styles?.fullWidth ? 'gp-w-full' : ''),
39
+ "data-same-height-display-contents": !!setting?.allowSameHeight,
39
40
  children: core.isEmptyChildren(children) ? /*#__PURE__*/ jsxRuntime.jsx(ChildrenDroppable.default, {}) : children
40
41
  });
41
42
  };
@@ -32,6 +32,7 @@ const Column = ({ children, className, style, builderAttrs, builderProps, advanc
32
32
  ...core.makeStyleResponsive('d', children ? styles?.display : displayByBreakpointIfChildrenEmpty)
33
33
  }}"
34
34
  class="${core.cls(className, builderProps?.uid, advanced?.cssClass, 'gp-relative gp-flex gp-flex-col', styles?.fullWidth ? 'gp-w-full' : '')}"
35
+ data-same-height-display-contents="${!!setting?.allowSameHeight}"
35
36
  >
36
37
  ${children ?? ''}
37
38
  </div>`;
@@ -161,6 +161,7 @@ const Row = ({ className, children, setting, builderAttrs, builderProps, styles,
161
161
  }),
162
162
  /*#__PURE__*/ jsxRuntime.jsx(Element, {
163
163
  className: "gp-max-w-full [&_*]:gp-max-w-full",
164
+ "data-same-height-display-contents": !!setting?.allowSameHeight,
164
165
  style: {
165
166
  ...wrapStyle,
166
167
  ...core.makeStyleResponsive('pl', styleObject.padding),
@@ -59,8 +59,10 @@ const Row = ({ className, children, setting, builderAttrs, builderProps, styles,
59
59
  return core.template`
60
60
  ${core.RenderIf(!!styles?.preloadBgImage, `${core.RenderIf(!!background?.desktop?.image?.src, `<link rel="preload" href="${background?.desktop?.image?.src}" as="image" />`)}${core.RenderIf(!!background?.tablet?.image?.src, `<link rel="preload" href="${background?.tablet?.image?.src}" as="image" />`)}${core.RenderIf(!!background?.mobile?.image?.src, `<link rel="preload" href="${background?.mobile?.image?.src}" as="image" />`)}`)}
61
61
  ${core.template`
62
+ ${core.RenderIf(!!isSection, `{% assign locationOrigin = request.origin | append: routes.root_url | split: '/' | join: '/' %}`)}
62
63
  <${elementTag}
63
64
  class="gp-max-w-full ${isSection ? helpers.getSettingPreloadData('gps-lazy') : ''}"
65
+ data-same-height-display-contents="${!!setting?.allowSameHeight}"
64
66
  style="${{
65
67
  ...wrapStyle,
66
68
  ...core.makeStyleResponsive('pl', styleObject.padding),
@@ -72,7 +72,11 @@ const getInsertLinkData = (defaultWrap, setting, htmlType)=>{
72
72
  const isShopifyDomain = isHyperlink && !regexHttp.test(urlHref) && regexPageType.test(urlHref);
73
73
  const isDomain = isHyperlink && regexHttp.test(urlHref);
74
74
  if (isShopifyDomain || isHomePageHref) {
75
- urlHref = "{{ request.origin }}{{ routes.root_url | split: '/' | join: '/' }}" + urlHref;
75
+ if (setting?.isTranslate) {
76
+ urlHref = '$locationOrigin' + urlHref;
77
+ } else {
78
+ urlHref = "{{ request.origin }}{{ routes.root_url | split: '/' | join: '/' }}" + urlHref;
79
+ }
76
80
  }
77
81
  const isLink = ()=>{
78
82
  if (URL_START_WITH.find((el)=>urlHref.startsWith(el))) return true;
@@ -97,6 +101,25 @@ const getInsertLinkData = (defaultWrap, setting, htmlType)=>{
97
101
  shouldRenderLink
98
102
  };
99
103
  };
104
+ const replaceLinkData = (text)=>{
105
+ const regex = /<a\s[^>]*>.*?<\/a>/;
106
+ if (text && regex.test(text)) {
107
+ const regex = // eslint-disable-next-line regexp/no-super-linear-backtracking, regexp/no-unused-capturing-group
108
+ /<a\s+(?:[^>]*?\s+)?href=["']([^"']*)["'](?:\s+[^>]*?)?(?:target=["']([^"']*)["'])?.*?>.*?<\/a>/gi;
109
+ let newText = text.toString();
110
+ let match;
111
+ while((match = regex.exec(newText)) !== null){
112
+ const href = match[1];
113
+ const { urlData } = getInsertLinkData('', {
114
+ link: href,
115
+ isTranslate: true
116
+ });
117
+ newText = newText.replace(match[0], match[0].replace(/(href=['"])([^'"]*)(['"])/i, `$1${urlData.href}$3`));
118
+ }
119
+ return newText;
120
+ }
121
+ return text;
122
+ };
100
123
 
101
124
  exports.getDynamicSourceLocales = getDynamicSourceLocales;
102
125
  exports.getInsertLinkData = getInsertLinkData;
@@ -105,4 +128,5 @@ exports.getStaticLocale = getStaticLocale;
105
128
  exports.isHexTransparent = isHexTransparent;
106
129
  exports.isTransparentColor = isTransparentColor;
107
130
  exports.isTransparentRGBA = isTransparentRGBA;
131
+ exports.replaceLinkData = replaceLinkData;
108
132
  exports.youtubeShortsRegex = youtubeShortsRegex;
package/dist/cjs/index.js CHANGED
@@ -302,6 +302,7 @@ require('react/jsx-runtime');
302
302
  require('@gem-sdk/core');
303
303
  require('react');
304
304
  var _const = require('./common/const.js');
305
+ var helpers = require('./helpers.js');
305
306
  var index$N = require('./post-purchase/text/setting/index.js');
306
307
  var Text$1 = require('./post-purchase/text/Text.js');
307
308
 
@@ -606,5 +607,14 @@ exports.liquidComponents = index_liquid;
606
607
  exports.builderComponent = builder.default;
607
608
  exports.componentSettings = setting.default;
608
609
  exports.ELEMENT_Z_INDEX = _const.ELEMENT_Z_INDEX;
610
+ exports.getDynamicSourceLocales = helpers.getDynamicSourceLocales;
611
+ exports.getInsertLinkData = helpers.getInsertLinkData;
612
+ exports.getSettingPreloadData = helpers.getSettingPreloadData;
613
+ exports.getStaticLocale = helpers.getStaticLocale;
614
+ exports.isHexTransparent = helpers.isHexTransparent;
615
+ exports.isTransparentColor = helpers.isTransparentColor;
616
+ exports.isTransparentRGBA = helpers.isTransparentRGBA;
617
+ exports.replaceLinkData = helpers.replaceLinkData;
618
+ exports.youtubeShortsRegex = helpers.youtubeShortsRegex;
609
619
  exports.postPurchaseTextSetting = index$N.default;
610
620
  exports.PostPurchaseText = Text$1.default;
@@ -334,7 +334,7 @@ const ProductList = ({ children, className, setting, styles, builderProps })=>{
334
334
  'data-component-no-setting': true,
335
335
  'data-product-id': product?.baseID?.replace('gid://shopify/Product/', '')
336
336
  } : {},
337
- className: core.cls(setting?.sameHeight ? `gp-contents [&>div]:gp-grid [&>div]:gp-grid-rows-[subgrid] [&>div]:gp-gap-y-0 [&>div]:gp-grid-col-[subgrid] ${mode === 'edit' ? '[&>*>div[data-component-tag="Col"]]:gp-contents' : '[&>*>div]:gp-contents'}` : '', `gp-child-item-${builderProps?.uid}`),
337
+ className: core.cls(setting?.sameHeight ? `gp-contents [&_*[data-same-height-display-contents="true"]]:gp-contents [&_*[data-component-label="Row"]]:gp-grid [&_*[data-component-label="Row"]]:gp-grid-rows-[subgrid] [&_*[data-component-label="Row"]]:gp-gap-y-0 [&_*[data-component-label="Row"]]:gp-grid-col-[subgrid]` : '', `gp-child-item-${builderProps?.uid}`),
338
338
  style: {
339
339
  '--grchild': setting?.sameHeight ? generateGridRowArray[index]?.gridRow : undefined,
340
340
  '--mbchild': generateGridRowArray[index]?.marginBottom
@@ -141,7 +141,7 @@ const ProductList = ({ setting, builderProps, styles, className, children, advan
141
141
  gp-context='{"variantSelected": {{ variant | json | escape }}, "quantity": 1 , "formId": "{{ product_form_id }}"}'
142
142
  gp-data='{"variantSelected": {{ variant | json | escape }}, "quantity": 1, "productUrl":{{ product.url | json | escape }}, "productHandle":{{ product.handle | json | escape }}, "collectionUrl": {{ collection.url | json | escape }}, "collectionHandle": {{ collection.handle | json | escape }},"pageContext" : ${JSON.stringify(pageContext)}}'
143
143
  >
144
- {%- form 'product', product, id: product_form_id, class: 'form contents ${setting?.sameHeight ? ' gp-contents [&>div]:gp-grid [&>div]:gp-grid-rows-[subgrid] [&>div]:gp-gap-y-0 [&>div]:gp-grid-col-[subgrid] [&>*>div:nth-child(1)]:gp-contents' : ''}', data-type: 'add-to-cart-form', autocomplete: 'off' -%}
144
+ {%- form 'product', product, id: product_form_id, class: 'form contents ${setting?.sameHeight ? ' gp-contents [&_*[data-same-height-display-contents="true"]]:gp-contents [&_*[parenttag="ProductList"]]:gp-grid [&_*[parenttag="ProductList"]]:gp-grid-rows-[subgrid] [&_*[parenttag="ProductList"]]:gp-gap-y-0 [&_*[parenttag="ProductList"]]:gp-grid-col-[subgrid]' : ''}', data-type: 'add-to-cart-form', autocomplete: 'off' -%}
145
145
  <input type="hidden" name="id" value="{{ variant.id }}" />
146
146
  <input type="hidden" min="1" name="quantity" value="{{ quantity }}" />
147
147
  <button type="submit" onclick="return false;" style="display:none;"></button>
@@ -932,7 +932,8 @@ const config = {
932
932
  ],
933
933
  display: 'fill'
934
934
  }
935
- }
935
+ },
936
+ allowSameHeight: true
936
937
  },
937
938
  styles: {
938
939
  verticalGutter: {
@@ -977,7 +978,8 @@ const config = {
977
978
  tag: 'Col',
978
979
  label: 'Block',
979
980
  settings: {
980
- fullHeight: true
981
+ fullHeight: true,
982
+ allowSameHeight: true
981
983
  },
982
984
  styles: {
983
985
  justifyContent: {
@@ -18,23 +18,13 @@ const Text = ({ styles, builderAttrs, style, setting, advanced, builderProps, cl
18
18
  return classList;
19
19
  };
20
20
  let displayText = '';
21
- let renderText = '';
22
- const regexCheckHasTagLink = /<a\s[^>]*>.*?<\/a>/;
23
- if (text && regexCheckHasTagLink.test(text)) {
24
- const regex = // eslint-disable-next-line regexp/no-super-linear-backtracking, regexp/no-unused-capturing-group
25
- /<a\s+(?:[^>]*?\s+)?href=["']([^"']*)["'](?:\s+[^>]*?)?(?:target=["']([^"']*)["'])?.*?>.*?<\/a>/gi;
26
- let newText = text.toString();
27
- let match;
28
- while((match = regex.exec(newText)) !== null){
29
- const href = match[1];
30
- const { urlData } = helpers.getInsertLinkData('', {
31
- link: href
32
- });
33
- newText = newText.replace(match[0], match[0].replace(/(href=['"])([^'"]*)(['"])/i, `$1${urlData.href}$3`));
34
- }
35
- renderText = newText;
36
- } else {
37
- renderText = text;
21
+ const isHeadingOrTextComponent = [
22
+ 'Heading',
23
+ 'Text'
24
+ ].includes(builderProps?.builderData?.tag ?? '');
25
+ let renderText = text;
26
+ if (isHeadingOrTextComponent) {
27
+ renderText = helpers.replaceLinkData(text?.toString());
38
28
  }
39
29
  if (isForceValue) {
40
30
  displayText = renderText;
@@ -45,8 +35,12 @@ const Text = ({ styles, builderAttrs, style, setting, advanced, builderProps, cl
45
35
  settingId: setting?.translate,
46
36
  pageContext,
47
37
  isCapitalize: styles?.typo?.attrs?.transform === 'capitalize',
48
- translate: setting.translate
38
+ translate: setting.translate,
39
+ isLiquid: isHeadingOrTextComponent
49
40
  });
41
+ if (isHeadingOrTextComponent) {
42
+ displayText = `{{ ${displayText} | replace: '$locationOrigin', locationOrigin }}`;
43
+ }
50
44
  } else {
51
45
  displayText = styles?.typo?.attrs?.transform === 'capitalize' ? renderText?.toString().toLocaleLowerCase() : renderText;
52
46
  }
@@ -1,5 +1,5 @@
1
1
  import { template, cls, RenderIf, isLocalEnv, baseAssetURL } from '@gem-sdk/core';
2
- import { getDynamicSourceLocales, getInsertLinkData, getSettingPreloadData, getStaticLocale } from '../../../helpers.js';
2
+ import { getDynamicSourceLocales, getStaticLocale, getInsertLinkData, getSettingPreloadData } from '../../../helpers.js';
3
3
 
4
4
  const Newsletter = ({ builderProps, setting, children, style, formType, advanced, pageContext })=>{
5
5
  const errorMessage = getDynamicSourceLocales({
@@ -32,6 +32,7 @@ const Column = ({ children, className, style, builderAttrs, builderProps, advanc
32
32
  ...makeStyleResponsive('o', orderRender)
33
33
  },
34
34
  className: cls(className, builderProps?.uid, 'gp-relative gp-flex gp-flex-col', styles?.fullWidth ? 'gp-w-full' : ''),
35
+ "data-same-height-display-contents": !!setting?.allowSameHeight,
35
36
  children: isEmptyChildren(children) ? /*#__PURE__*/ jsx(ChildrenDroppable, {}) : children
36
37
  });
37
38
  };
@@ -28,6 +28,7 @@ const Column = ({ children, className, style, builderAttrs, builderProps, advanc
28
28
  ...makeStyleResponsive('d', children ? styles?.display : displayByBreakpointIfChildrenEmpty)
29
29
  }}"
30
30
  class="${cls(className, builderProps?.uid, advanced?.cssClass, 'gp-relative gp-flex gp-flex-col', styles?.fullWidth ? 'gp-w-full' : '')}"
31
+ data-same-height-display-contents="${!!setting?.allowSameHeight}"
31
32
  >
32
33
  ${children ?? ''}
33
34
  </div>`;
@@ -157,6 +157,7 @@ const Row = ({ className, children, setting, builderAttrs, builderProps, styles,
157
157
  }),
158
158
  /*#__PURE__*/ jsx(Element, {
159
159
  className: "gp-max-w-full [&_*]:gp-max-w-full",
160
+ "data-same-height-display-contents": !!setting?.allowSameHeight,
160
161
  style: {
161
162
  ...wrapStyle,
162
163
  ...makeStyleResponsive('pl', styleObject.padding),
@@ -55,8 +55,10 @@ const Row = ({ className, children, setting, builderAttrs, builderProps, styles,
55
55
  return template`
56
56
  ${RenderIf(!!styles?.preloadBgImage, `${RenderIf(!!background?.desktop?.image?.src, `<link rel="preload" href="${background?.desktop?.image?.src}" as="image" />`)}${RenderIf(!!background?.tablet?.image?.src, `<link rel="preload" href="${background?.tablet?.image?.src}" as="image" />`)}${RenderIf(!!background?.mobile?.image?.src, `<link rel="preload" href="${background?.mobile?.image?.src}" as="image" />`)}`)}
57
57
  ${template`
58
+ ${RenderIf(!!isSection, `{% assign locationOrigin = request.origin | append: routes.root_url | split: '/' | join: '/' %}`)}
58
59
  <${elementTag}
59
60
  class="gp-max-w-full ${isSection ? getSettingPreloadData('gps-lazy') : ''}"
61
+ data-same-height-display-contents="${!!setting?.allowSameHeight}"
60
62
  style="${{
61
63
  ...wrapStyle,
62
64
  ...makeStyleResponsive('pl', styleObject.padding),
@@ -70,7 +70,11 @@ const getInsertLinkData = (defaultWrap, setting, htmlType)=>{
70
70
  const isShopifyDomain = isHyperlink && !regexHttp.test(urlHref) && regexPageType.test(urlHref);
71
71
  const isDomain = isHyperlink && regexHttp.test(urlHref);
72
72
  if (isShopifyDomain || isHomePageHref) {
73
- urlHref = "{{ request.origin }}{{ routes.root_url | split: '/' | join: '/' }}" + urlHref;
73
+ if (setting?.isTranslate) {
74
+ urlHref = '$locationOrigin' + urlHref;
75
+ } else {
76
+ urlHref = "{{ request.origin }}{{ routes.root_url | split: '/' | join: '/' }}" + urlHref;
77
+ }
74
78
  }
75
79
  const isLink = ()=>{
76
80
  if (URL_START_WITH.find((el)=>urlHref.startsWith(el))) return true;
@@ -95,5 +99,24 @@ const getInsertLinkData = (defaultWrap, setting, htmlType)=>{
95
99
  shouldRenderLink
96
100
  };
97
101
  };
102
+ const replaceLinkData = (text)=>{
103
+ const regex = /<a\s[^>]*>.*?<\/a>/;
104
+ if (text && regex.test(text)) {
105
+ const regex = // eslint-disable-next-line regexp/no-super-linear-backtracking, regexp/no-unused-capturing-group
106
+ /<a\s+(?:[^>]*?\s+)?href=["']([^"']*)["'](?:\s+[^>]*?)?(?:target=["']([^"']*)["'])?.*?>.*?<\/a>/gi;
107
+ let newText = text.toString();
108
+ let match;
109
+ while((match = regex.exec(newText)) !== null){
110
+ const href = match[1];
111
+ const { urlData } = getInsertLinkData('', {
112
+ link: href,
113
+ isTranslate: true
114
+ });
115
+ newText = newText.replace(match[0], match[0].replace(/(href=['"])([^'"]*)(['"])/i, `$1${urlData.href}$3`));
116
+ }
117
+ return newText;
118
+ }
119
+ return text;
120
+ };
98
121
 
99
- export { getDynamicSourceLocales, getInsertLinkData, getSettingPreloadData, getStaticLocale, isHexTransparent, isTransparentColor, isTransparentRGBA, youtubeShortsRegex };
122
+ export { getDynamicSourceLocales, getInsertLinkData, getSettingPreloadData, getStaticLocale, isHexTransparent, isTransparentColor, isTransparentRGBA, replaceLinkData, youtubeShortsRegex };
package/dist/esm/index.js CHANGED
@@ -301,5 +301,6 @@ import 'react/jsx-runtime';
301
301
  import '@gem-sdk/core';
302
302
  import 'react';
303
303
  export { ELEMENT_Z_INDEX } from './common/const.js';
304
+ export { getDynamicSourceLocales, getInsertLinkData, getSettingPreloadData, getStaticLocale, isHexTransparent, isTransparentColor, isTransparentRGBA, replaceLinkData, youtubeShortsRegex } from './helpers.js';
304
305
  export { default as postPurchaseTextSetting } from './post-purchase/text/setting/index.js';
305
306
  export { default as PostPurchaseText } from './post-purchase/text/Text.js';
@@ -330,7 +330,7 @@ const ProductList = ({ children, className, setting, styles, builderProps })=>{
330
330
  'data-component-no-setting': true,
331
331
  'data-product-id': product?.baseID?.replace('gid://shopify/Product/', '')
332
332
  } : {},
333
- className: cls(setting?.sameHeight ? `gp-contents [&>div]:gp-grid [&>div]:gp-grid-rows-[subgrid] [&>div]:gp-gap-y-0 [&>div]:gp-grid-col-[subgrid] ${mode === 'edit' ? '[&>*>div[data-component-tag="Col"]]:gp-contents' : '[&>*>div]:gp-contents'}` : '', `gp-child-item-${builderProps?.uid}`),
333
+ className: cls(setting?.sameHeight ? `gp-contents [&_*[data-same-height-display-contents="true"]]:gp-contents [&_*[data-component-label="Row"]]:gp-grid [&_*[data-component-label="Row"]]:gp-grid-rows-[subgrid] [&_*[data-component-label="Row"]]:gp-gap-y-0 [&_*[data-component-label="Row"]]:gp-grid-col-[subgrid]` : '', `gp-child-item-${builderProps?.uid}`),
334
334
  style: {
335
335
  '--grchild': setting?.sameHeight ? generateGridRowArray[index]?.gridRow : undefined,
336
336
  '--mbchild': generateGridRowArray[index]?.marginBottom
@@ -137,7 +137,7 @@ const ProductList = ({ setting, builderProps, styles, className, children, advan
137
137
  gp-context='{"variantSelected": {{ variant | json | escape }}, "quantity": 1 , "formId": "{{ product_form_id }}"}'
138
138
  gp-data='{"variantSelected": {{ variant | json | escape }}, "quantity": 1, "productUrl":{{ product.url | json | escape }}, "productHandle":{{ product.handle | json | escape }}, "collectionUrl": {{ collection.url | json | escape }}, "collectionHandle": {{ collection.handle | json | escape }},"pageContext" : ${JSON.stringify(pageContext)}}'
139
139
  >
140
- {%- form 'product', product, id: product_form_id, class: 'form contents ${setting?.sameHeight ? ' gp-contents [&>div]:gp-grid [&>div]:gp-grid-rows-[subgrid] [&>div]:gp-gap-y-0 [&>div]:gp-grid-col-[subgrid] [&>*>div:nth-child(1)]:gp-contents' : ''}', data-type: 'add-to-cart-form', autocomplete: 'off' -%}
140
+ {%- form 'product', product, id: product_form_id, class: 'form contents ${setting?.sameHeight ? ' gp-contents [&_*[data-same-height-display-contents="true"]]:gp-contents [&_*[parenttag="ProductList"]]:gp-grid [&_*[parenttag="ProductList"]]:gp-grid-rows-[subgrid] [&_*[parenttag="ProductList"]]:gp-gap-y-0 [&_*[parenttag="ProductList"]]:gp-grid-col-[subgrid]' : ''}', data-type: 'add-to-cart-form', autocomplete: 'off' -%}
141
141
  <input type="hidden" name="id" value="{{ variant.id }}" />
142
142
  <input type="hidden" min="1" name="quantity" value="{{ quantity }}" />
143
143
  <button type="submit" onclick="return false;" style="display:none;"></button>
@@ -928,7 +928,8 @@ const config = {
928
928
  ],
929
929
  display: 'fill'
930
930
  }
931
- }
931
+ },
932
+ allowSameHeight: true
932
933
  },
933
934
  styles: {
934
935
  verticalGutter: {
@@ -973,7 +974,8 @@ const config = {
973
974
  tag: 'Col',
974
975
  label: 'Block',
975
976
  settings: {
976
- fullHeight: true
977
+ fullHeight: true,
978
+ allowSameHeight: true
977
979
  },
978
980
  styles: {
979
981
  justifyContent: {
@@ -1,5 +1,5 @@
1
1
  import { makeGlobalSize, composeTypographyClassName, composeTypographyStyle, template, makeStyle, makeStyleResponsive, cls, getGlobalColorClass, getGlobalColorStateClass, getStyleShadowState, getStyleShadow, makeLineClamp, getGlobalColorStyle, getGlobalColorStateStyle, getStyleBackgroundByDevice, getGradientBgrStyleByDevice, getCornerStyle } from '@gem-sdk/core';
2
- import { getInsertLinkData, getDynamicSourceLocales } from '../../helpers.js';
2
+ import { replaceLinkData, getDynamicSourceLocales } from '../../helpers.js';
3
3
 
4
4
  const Text = ({ styles, builderAttrs, style, setting, advanced, builderProps, className, isText, pageContext, elementAttrs, ...props })=>{
5
5
  const { text, htmlTag: Element = 'div', tagWidth, excludeFlex, isForceValue } = setting ?? {};
@@ -14,23 +14,13 @@ const Text = ({ styles, builderAttrs, style, setting, advanced, builderProps, cl
14
14
  return classList;
15
15
  };
16
16
  let displayText = '';
17
- let renderText = '';
18
- const regexCheckHasTagLink = /<a\s[^>]*>.*?<\/a>/;
19
- if (text && regexCheckHasTagLink.test(text)) {
20
- const regex = // eslint-disable-next-line regexp/no-super-linear-backtracking, regexp/no-unused-capturing-group
21
- /<a\s+(?:[^>]*?\s+)?href=["']([^"']*)["'](?:\s+[^>]*?)?(?:target=["']([^"']*)["'])?.*?>.*?<\/a>/gi;
22
- let newText = text.toString();
23
- let match;
24
- while((match = regex.exec(newText)) !== null){
25
- const href = match[1];
26
- const { urlData } = getInsertLinkData('', {
27
- link: href
28
- });
29
- newText = newText.replace(match[0], match[0].replace(/(href=['"])([^'"]*)(['"])/i, `$1${urlData.href}$3`));
30
- }
31
- renderText = newText;
32
- } else {
33
- renderText = text;
17
+ const isHeadingOrTextComponent = [
18
+ 'Heading',
19
+ 'Text'
20
+ ].includes(builderProps?.builderData?.tag ?? '');
21
+ let renderText = text;
22
+ if (isHeadingOrTextComponent) {
23
+ renderText = replaceLinkData(text?.toString());
34
24
  }
35
25
  if (isForceValue) {
36
26
  displayText = renderText;
@@ -41,8 +31,12 @@ const Text = ({ styles, builderAttrs, style, setting, advanced, builderProps, cl
41
31
  settingId: setting?.translate,
42
32
  pageContext,
43
33
  isCapitalize: styles?.typo?.attrs?.transform === 'capitalize',
44
- translate: setting.translate
34
+ translate: setting.translate,
35
+ isLiquid: isHeadingOrTextComponent
45
36
  });
37
+ if (isHeadingOrTextComponent) {
38
+ displayText = `{{ ${displayText} | replace: '$locationOrigin', locationOrigin }}`;
39
+ }
46
40
  } else {
47
41
  displayText = styles?.typo?.attrs?.transform === 'capitalize' ? renderText?.toString().toLocaleLowerCase() : renderText;
48
42
  }
@@ -517,7 +517,9 @@ declare const _default$O: {
517
517
  Row: _gem_sdk_core.ComponentSetting<RowProps$1>;
518
518
  };
519
519
 
520
- type ColProps$1 = BasePropsWrap<unknown, {
520
+ type ColProps$1 = BasePropsWrap<{
521
+ allowSameHeight?: boolean;
522
+ }, {
521
523
  order?: ObjectDevices<number>;
522
524
  gap?: ObjectDevices<string>;
523
525
  alignItem?: ObjectDevices<Property.AlignItems>;
@@ -537,6 +539,7 @@ type RowProps$1 = BaseProps<{
537
539
  order?: ObjectDevices<number>;
538
540
  inlineAlignment?: 'start' | 'end' | 'center';
539
541
  blockAlignment?: 'start' | 'end' | 'center';
542
+ allowSameHeight?: boolean;
540
543
  }, {
541
544
  fullWidth?: ObjectDevices<boolean>;
542
545
  width?: ObjectDevices<string>;
@@ -5320,7 +5323,9 @@ declare const Coupon: ({ setting, builderProps, builderAttrs, style, styles, adv
5320
5323
  pageContext?: PageContext | undefined;
5321
5324
  }) => string;
5322
5325
 
5323
- type ColProps = BasePropsWrap<unknown, {
5326
+ type ColProps = BasePropsWrap<{
5327
+ allowSameHeight?: boolean;
5328
+ }, {
5324
5329
  order?: ObjectDevices<number>;
5325
5330
  gap?: ObjectDevices<string>;
5326
5331
  alignItem?: ObjectDevices<Property.AlignItems>;
@@ -5345,6 +5350,7 @@ type RowProps = BaseProps<{
5345
5350
  verticalAlign?: ObjectDevices<string>;
5346
5351
  horizontalAlign?: ObjectDevices<string>;
5347
5352
  order?: ObjectDevices<number>;
5353
+ allowSameHeight?: boolean;
5348
5354
  }, {
5349
5355
  fullWidth?: ObjectDevices<boolean>;
5350
5356
  width?: ObjectDevices<string>;
@@ -5478,6 +5484,7 @@ declare const Product: ({ children, setting, styles, style, builderProps, rawChi
5478
5484
  order?: Partial<Record<_gem_sdk_core.NameDevices, number>> | undefined;
5479
5485
  inlineAlignment?: "center" | "end" | "start" | undefined;
5480
5486
  blockAlignment?: "center" | "end" | "start" | undefined;
5487
+ allowSameHeight?: boolean | undefined;
5481
5488
  } & {
5482
5489
  isSection?: boolean | undefined;
5483
5490
  lazy?: boolean | undefined;
@@ -6220,6 +6227,7 @@ declare const HeroBanner: ({ builderAttrs, builderProps, setting, styles, style,
6220
6227
  order?: Partial<Record<NameDevices, number>> | undefined;
6221
6228
  inlineAlignment?: "center" | "end" | "start" | undefined;
6222
6229
  blockAlignment?: "center" | "end" | "start" | undefined;
6230
+ allowSameHeight?: boolean | undefined;
6223
6231
  } & {
6224
6232
  isSection?: boolean | undefined;
6225
6233
  lazy?: boolean | undefined;
@@ -6477,6 +6485,7 @@ declare const CollectionBanner: ({ builderAttrs, builderProps, setting, style, c
6477
6485
  order?: Partial<Record<_gem_sdk_core.NameDevices, number>> | undefined;
6478
6486
  inlineAlignment?: "center" | "end" | "start" | undefined;
6479
6487
  blockAlignment?: "center" | "end" | "start" | undefined;
6488
+ allowSameHeight?: boolean | undefined;
6480
6489
  } & {
6481
6490
  isSection?: boolean | undefined;
6482
6491
  lazy?: boolean | undefined;
@@ -7790,4 +7799,32 @@ declare const ELEMENT_Z_INDEX: {
7790
7799
  CART_DRAWER_CONFIRM_MODAL: number;
7791
7800
  };
7792
7801
 
7793
- export { Accordion$1 as Accordion, AccordionItem$1 as AccordionItem, AccordionItemProps, AccordionProps, AftershipEmailMarketingsms$1 as AftershipEmailMarketingsms, AftershipEmailMarketingsmsProps, AirProductReviewsAppUgc$1 as AirProductReviewsAppUgc, AirProductReviewsAppUgcProps, AliReviews$1 as AliReviews, AliReviewsProps, AppointmentBookingCowlendar$1 as AppointmentBookingCowlendar, AppointmentBookingCowlendarProps, AppstleSubscriptions$1 as AppstleSubscriptions, AppstleSubscriptionsProps, ArticleAuthor$1 as ArticleAuthor, ArticleCategory$1 as ArticleCategory, ArticleContent$1 as ArticleContent, ArticleDate$1 as ArticleDate, ArticleExcerpt$1 as ArticleExcerpt, ArticleImage$1 as ArticleImage, ArticleList$1 as ArticleList, ArticlePagination$1 as ArticlePagination, ArticleReadMore$1 as ArticleReadMore, ArticleTag$1 as ArticleTag, ArticleTitle$1 as ArticleTitle, BgImage as BackgroundImage, BackgroundImageProps, BasicHeader, BestBuyFulfillment$1 as BestBuyFulfillment, BestBuyFulfillmentProps, BirdChime$1 as BirdChime, BirdChimeProps, Bogos$1 as Bogos, BogosProps, BoldProductOptions$1 as BoldProductOptions, BoldProductOptionsProps, BoldSubscriptions$1 as BoldSubscriptions, BoldSubscriptionsProps, BonLoyaltyRewardsReferrals$1 as BonLoyaltyRewardsReferrals, BonLoyaltyRewardsReferralsProps, BoostAISearchDiscovery$1 as BoostAISearchDiscovery, BoostAISearchDiscoveryProps, Breadcrumb$1 as Breadcrumb, Breadcrumb$1 as BreadcrumbProps, Bundler$1 as Bundler, BundlerProps, Button$2 as Button, ButtonProps, CSSCode$1 as CSSCode, CSSCodeProps, Carousel$1 as Carousel, CarouselItem$1 as CarouselItem, CarouselItemProps, CarouselProps, CarouselSettings, CarouselStyles, Cart, CartCheckout, CartDiscount, CartLineAttribute, CartLineImage, CartLinePrice, CartLineVariant, CartList, CartOrderNote, CartProps, CartTotalItem, CartTotalPrice, CheckoutNow, CleanSizeChartProps, CleanSizeCharts$1 as CleanSizeCharts, Column$1 as Col, ColProps$1 as ColProps, CollectionBanner$1 as CollectionBanner, CollectionBannerProps, CollectionDescription$1 as CollectionDescription, CollectionDescriptionProps, CollectionPaginator$1 as CollectionPaginator, CollectionPaginatorProps, CollectionTitle$1 as CollectionTitle, CollectionTitleProps, CollectionToolbar$1 as CollectionToolbar, CollectionToolbarProps, ContactForm$1 as ContactForm, Countdown$1 as Countdown, CountdownProps, Coupon$1 as Coupon, CouponList, CouponProps, CrossSellCartUpsell$1 as CrossSellCartUpsell, CrossSellCartUpsellProps, CustomProductOptionsVariant$1 as CustomProductOptionsVariant, CustomProductOptionsVariantProps, DataVideoType, DesktopMenu, Dialog$1 as Dialog, DiscountInput, DiscountyBulkDiscountSales$1 as DiscountyBulkDiscountSales, DiscountyBulkDiscountSalesProps, DynamicCheckout$1 as DynamicCheckout, DynamicCheckoutProps, ELEMENT_Z_INDEX, EasifyProductOptions$1 as EasifyProductOptions, EasifyProductOptionsProps, EasyBundleBuilderSkailama$1 as EasyBundleBuilderSkailama, EasyBundleBuilderSkailamaProps, EasySell as EasySellCOD, EasySellProps, EstimateDate$1 as EstimateDate, EstimateDateProps, FastBundleBundlesDiscounts$1 as FastBundleBundlesDiscounts, FastBundleBundlesDiscountsProps, FeraReviews$1 as FeraReviews, FeraReviewsProps, FileUpload$1 as FileUpload, FileUploadProps, FirePush$1 as FirePush, FirePushProps, FlyBundlesUpsellsFbt$1 as FlyBundlesUpsellsFbt, FlyBundlesUpsellsFbtProps, FordeerProductLabels$1 as FordeerProductLabels, FordeerProductLabelsProps, FormCheckbox, FormCheckboxProps, FormDropdown$1 as FormDropdown, FormDropdownProps, FormEmail$1 as FormEmail, FormEmailProps, FormTextArea as FormTextarea, FrequentlyBoughtTogether$1 as FrequentlyBoughtTogether, FrequentlyBoughtTogetherProps, GloboProductOptionsVariant$1 as GloboProductOptionsVariant, GloboProductOptionsVariantProps, GoogleReviewsByReputon$1 as GoogleReviewsByReputon, GoogleReviewsByReputonProps, Growave$1 as Growave, GrowaveProps, Header, HeaderProps, Heading$1 as Heading, HeadingProps, HeroBanner$1 as HeroBanner, HeroBannerProps, HulkFormBuilder$1 as HulkFormBuilder, HulkFormBuilderProps, HulkProductOptions$1 as HulkProductOptions, HulkProductOptionsProps, Icon$1 as Icon, IconList$1 as IconList, IconListHoz$1 as IconListHoz, IconListHozItem, IconListHozProps, IconListItem$1 as IconListItem, IconListItemProps$3 as IconListItemProps, IconListProps$2 as IconListProps, IconListV2$1 as IconListV2, IconProps$1 as IconProps, Image$1 as Image, ImageComparison$1 as ImageComparison, ImageDetection, ImageDetectionProps, ImageProps, InfiniteOptions$1 as InfiniteOptions, InfiniteOptionsProps, Input, InputProps, Instafeed$1 as Instafeed, InstafeedProps, InstantJudgemeReviews, InstantJudgemeReviewsProps, InstantKlaviyo, InstantKlaviyoProps, InstantLooxReviews, InstantLooxReviewsProps, InstantYotpoLoyalty, InstantYotpoLoyaltyProps, InstasellShoppableInstagram$1 as InstasellShoppableInstagram, InstasellShoppableInstagramProps, JudgemeReviews$1 as JudgemeReviews, JudgemeReviewsProps, JunipProductReviewsUgc$1 as JunipProductReviewsUgc, JunipProductReviewsUgcProps, KachingBundles$1 as KachingBundles, KachingBundlesProps, KingProductOptions$1 as KingProductOptions, KingProductOptionsProps, KiteFreeGiftDiscount$1 as KiteFreeGiftDiscount, KiteFreeGiftDiscountProps, KlarnaMessaging$1 as KlarnaMessaging, KlarnaMessagingProps, Klaviyo$1 as Klaviyo, KlaviyoProps, KoalaBundleQuantityDiscount$1 as KoalaBundleQuantityDiscount, KoalaBundleQuantityDiscountProps, LaiProductReviews$1 as LaiProductReviews, LaiProductReviewsProps, Line$2 as Line, LineProps$1 as LineProps, Link$1 as Link, LinkProps$1 as LinkProps, LoloyalLoyaltyReferrals$1 as LoloyalLoyaltyReferrals, LoloyalLoyaltyReferralsProps, LoopSubscriptions$1 as LoopSubscriptions, LoopSubscriptionsProps, LooxReviews$1 as LooxReviews, LooxReviewsProps, Marquee$1 as Marquee, _default$3 as MarqueeItem, MarqueeItemProps, MarqueeProps, MaxbundleProductBundles$1 as MaxbundleProductBundles, MaxbundleProductBundlesProps, MbcBundleVolumeDiscount$1 as MbcBundleVolumeDiscount, MbcBundleVolumeDiscountProps, Menu, MenuProps, MobileMenu, Modal, ModernHeader, MyappgurusProductReviews$1 as MyappgurusProductReviews, MyappgurusProductReviewsProps, Newsletter$1 as Newsletter, NewsletterProps, Notify as Notice, NotificationAPI, NotificationConfig, NotifyBackInStockPreOrder$1 as NotifyBackInStockPreOrder, NotifyBackInStockPreOrderProps, Omnisend$1 as Omnisend, OmnisendProps, Opinew$1 as Opinew, OpinewProps, Pagination, PaginationProps, ParcelPanel$1 as ParcelPanel, ParcelPanelProps, PickyStory$1 as PickyStory, PickyStoryProps, PostPurchaseAcceptButton, PostPurchaseAcceptButtonProps, PostPurchaseAdvancedList, PostPurchaseAdvancedListItem, PostPurchaseAdvancedListProps, Button$1 as PostPurchaseButton, PostPurchaseButtonProps, CalloutBox as PostPurchaseCalloutBox, CalloutText as PostPurchaseCalloutText, PostPurchaseCountdownTimer, PostPurchaseHeading, PostPurchaseImage, PostPurchaseImageProps, Line$1 as PostPurchaseLine, PostPurchaseLineProps, Link as PostPurchaseLink, PostPurchaseLinkProps, PostPurchaseProductDescription, PostPurchaseProductDescriptionProps, PostPurchaseProductDiscountTag, PostPurchaseProductDiscountTagProps, PostPurchaseProductImages, PostPurchaseProductImagesProps, PostPurchaseProductOffer, PostPurchaseProductOfferProps, PostPurchaseProductPrice, PostPurchaseProductPriceBreakdown, PostPurchaseProductPriceBreakdownProps, PostPurchaseProductPriceProps, PostPurchaseProductQuantity, PostPurchaseProductQuantityProps, PostPurchaseProductTitle, PostPurchaseProductTitleProps, PostPurchaseProductVariants, PostPurchaseProductVariantsProps, Text$1 as PostPurchaseText, PostPurchaseTextProps, PowerfulContactFormBuilder$1 as PowerfulContactFormBuilder, PowerfulContactFormBuilderProps, PreorderNowPreOrderPq$1 as PreorderNowPreOrderPq, PreorderNowPreOrderPqProps, PreorderNowWodPresale$1 as PreorderNowWodPresale, PreorderNowWodPresaleProps, Product$1 as Product, ProductBadge$1 as ProductBadge, ProductBadgeProps, ProductBundleDiscount$1 as ProductBundleDiscount, ProductBundleDiscountItem$1 as ProductBundleDiscountItem, ProductButton$1 as ProductButton, ProductButtonProps, ProductDescription$1 as ProductDescription, ProductDescriptionProps$1 as ProductDescriptionProps, ProductImages$2 as ProductImages, ProductImagesProps, ProductImagesV2, ProductList$1 as ProductList, ProductList$1 as ProductListProps, ProductOptionsCustomizer$1 as ProductOptionsCustomizer, ProductOptionsCustomizerProps, ProductOptionsVariantOption$1 as ProductOptionsVariantOption, ProductOptionsVariantOptionProps, ProductPrice$1 as ProductPrice, ProductPriceProps, ProductPropertiesProps, ProductProperties$1 as ProductPropertyInput, ProductProps, ProductQuantity$1 as ProductQuantity, ProductQuantityBreakItemProps, ProductQuantityBreakProps, ProductQuantityProps, QuickView as ProductQuickView, ProductReviews$1 as ProductReviews, ProductReviewsProps, ProductSku$1 as ProductSku, ProductTag$1 as ProductTag, ProductTagProps, ProductTitle$1 as ProductTitle, ProductTitleProps, ProductVariants$1 as ProductVariants, ProductVariantsProps, ProductVendor$1 as ProductVendor, ProductViewMore$1 as ProductViewMore, ProductViewMoreProps, PumperBundlesVolumeDiscount$1 as PumperBundlesVolumeDiscount, PumperBundlesVolumeDiscountProps, PushOwl$1 as PushOwl, PushOwlProps, QikifyUpsell$1 as QikifyUpsell, QikifyUpsellProps, Radio, RadioProps, RapiBundleQuantityBreaks$1 as RapiBundleQuantityBreaks, RapiBundleQuantityBreaksProps, RechargeSubscriptions$1 as RechargeSubscriptions, RechargeSubscriptionsProps, RecurpaySubscriptionApp$1 as RecurpaySubscriptionApp, RecurpaySubscriptionAppProps, Releasit$1 as Releasit, ReleasitProps, RequestQuoteHidePrice$1 as RequestQuoteHidePrice, RequestQuoteHidePriceProps, ReviewxpoProductReviewsApp$1 as ReviewxpoProductReviewsApp, ReviewxpoProductReviewsAppProps, Rivyo$1 as Rivyo, RivyoProps, Root$1 as Root, RootProps$1 as RootProps, Row$1 as Row, RowProps$1 as RowProps, Ryviu$1 as Ryviu, RyviuProps, SealSubscriptions$1 as SealSubscriptions, SealSubscriptionsProps, Section$1 as Section, SegunoEmailMarketing$1 as SegunoEmailMarketing, SegunoEmailMarketingProps, Select, SelectProps, Selleasy$1 as Selleasy, SelleasyProps, SeoantTrustBadgesIcon$1 as SeoantTrustBadgesIcon, SeoantTrustBadgesIconProps, ShopPayButton$1 as ShopPayButton, ShopPayButtonProps, ShopPayInstallments$1 as ShopPayInstallments, ShopifyForms$1 as ShopifyForms, ShopifyFormsProps, ShopifySubscriptions$1 as ShopifySubscriptions, ShopifySubscriptionsProps, SimpleBundlesKits$1 as SimpleBundlesKits, SimpleBundlesKitsProps, SkioSubscriptionsYcS20$1 as SkioSubscriptionsYcS20, SkioSubscriptionsYcS20Props, SkuProps, SmartSearchBarAndFilters$1 as SmartSearchBarAndFilters, SmartSearchBarAndFiltersProps, SproutPlantTreesGrowSales$1 as SproutPlantTreesGrowSales, SproutPlantTreesGrowSalesProps, Stamped$1 as Stamped, StampedProps, Sticky$1 as Sticky, StickyProps, StockCounter$1 as StockCounter, StockCounterProps$1 as StockCounterProps, SubifySubscriptionsApp$1 as SubifySubscriptionsApp, SubifySubscriptionsAppProps, SubmitButton$1 as SubmitButton, SubmitButtonProps, TabItem$1 as TabItem, TabItemProps, Tabs$1 as Tabs, TabsProps, TagembedSocialPostReview$1 as TagembedSocialPostReview, TagembedSocialPostReviewProps, TagshopShoppableVideosUgc$1 as TagshopShoppableVideosUgc, TagshopShoppableVideosUgcProps, TeeinblueProductPersonalizer$1 as TeeinblueProductPersonalizer, TeeinblueProductPersonalizerProps, Text$2 as Text, TextAreaProps, TextField$1 as TextField, TextFieldProps, TextProps$1 as TextProps, TextArea as Textarea, TextareaProps, ThirdPartySlot$1 as ThirdPartySlot, TrustMe$1 as TrustMe, TrustMeProps, Trustoo$1 as Trustoo, TrustooProps, TrustreviewsProductReviews$1 as TrustreviewsProductReviews, TrustreviewsProductReviewsProps, TrustshopProductReviews$1 as TrustshopProductReviews, TrustshopProductReviewsProps, UltimateSalesBoost$1 as UltimateSalesBoost, UltimateSalesBoostProps, UnlimitedBundlesDiscounts$1 as UnlimitedBundlesDiscounts, UnlimitedBundlesDiscountsProps, VendorProps, Video$1 as Video, Vitals$1 as Vitals, VitalsProps, WhatmoreShoppableVideosreel$1 as WhatmoreShoppableVideosreel, WhatmoreShoppableVideosreelProps, WideBundle$1 as WideBundle, WideBundleProps, Wiser$1 as Wiser, WiserProps, WishlistKing$1 as WishlistKing, WishlistKingProps, WishlistPlus$1 as WishlistPlus, WishlistPlusProps, YotpoLoyalty, YotpoLoyaltyProps, YotpoReviews$1 as YotpoReviews, YotpoReviewsProps, _default$U as accordionSetting, _default$5 as articleListSetting, _default$s as bannerSetting, _default$T as breadcrumbSetting, _default$1 as builderComponent, _default$S as buttonSetting, _default$Q as carouselSetting, _default$N as cartSetting, _default$q as codeSetting, _default$M as collectionSetting, _default as componentSettings, _default$m as contactFormSetting, _default$L as countdownSetting, _default$R as couponSetting, _default$n as dialogSetting, _default$6 as estimateDeliverySetting, _default$O as gridSetting, _default$J as headerSetting, _default$K as headingSetting, _default$p as iconListHozSetting, _default$r as iconListSetting, _default$g as iconListSettingV2, _default$I as iconSetting, _default$k as imageComparisonSetting, _default$l as imageDetectionSetting, _default$P as imageSetting, _default$H as inputSetting, _default$G as lineSetting, _default$F as linkSetting, index_liquid as liquidComponents, _default$4 as marqueeSetting, _default$v as menuSetting, _default$E as modalSetting, _default$2 as nextComponent, openConfirm, _default$D as paginationSetting, _default$9 as postPurchaseAdvancedListSetting, _default$d as postPurchaseButtonSetting, _default$b as postPurchaseCalloutBoxSetting, _default$8 as postPurchaseCountdownTimerSetting, _default$e as postPurchaseImageSetting, _default$a as postPurchaseLineSetting, _default$7 as postPurchaseLinkSetting, postPurchaseProduct1Col, postPurchaseProduct2Col, postPurchaseProductDefault, _default$c as postPurchaseProductSetting, _default$f as postPurchaseTextSetting, _default$C as productSetting, _default$A as radioSetting, _default$z as selectSetting, _default$i as shopPayInstallmentSetting, _default$h as stickySetting, _default$o as stockCounterSetting, _default$y as tabSetting, _default$B as textSetting, _default$x as textareaSetting, _default$t as thirdPartyInstantSetting, _default$u as thirdPartySetting, _default$j as thirdPartySlotSetting, useInView, useNotification, _default$w as videoSetting };
7802
+ type DynamicSource = {
7803
+ val: React.ReactNode;
7804
+ uid?: string;
7805
+ settingId: string;
7806
+ isLiquid?: boolean;
7807
+ pageContext?: PageContext;
7808
+ isCapitalize?: boolean;
7809
+ defaultVal?: string;
7810
+ translate?: string;
7811
+ };
7812
+ declare const isTransparentColor: (str?: string) => boolean;
7813
+ declare const isTransparentRGBA: (rgbStr: string) => boolean;
7814
+ declare const isHexTransparent: (hex: string) => boolean;
7815
+ declare const youtubeShortsRegex: RegExp;
7816
+ declare const getDynamicSourceLocales: ({ val, uid, settingId, isLiquid, pageContext, isCapitalize, defaultVal, translate, }: DynamicSource) => string | number | boolean | React.ReactElement<any, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode>;
7817
+ declare const getStaticLocale: (tag: string, key: string) => string;
7818
+ declare const getSettingPreloadData: (disabledValue: string, enabledValue?: string) => string;
7819
+ declare const getInsertLinkData: (defaultWrap: string, setting?: {
7820
+ link?: string;
7821
+ target?: string;
7822
+ isTranslate?: boolean;
7823
+ }, htmlType?: React.ButtonHTMLAttributes<HTMLButtonElement>['type'] | 'link') => {
7824
+ Wrap: string;
7825
+ urlData: Record<string, any>;
7826
+ shouldRenderLink: boolean;
7827
+ };
7828
+ declare const replaceLinkData: (text?: string) => string | undefined;
7829
+
7830
+ export { Accordion$1 as Accordion, AccordionItem$1 as AccordionItem, AccordionItemProps, AccordionProps, AftershipEmailMarketingsms$1 as AftershipEmailMarketingsms, AftershipEmailMarketingsmsProps, AirProductReviewsAppUgc$1 as AirProductReviewsAppUgc, AirProductReviewsAppUgcProps, AliReviews$1 as AliReviews, AliReviewsProps, AppointmentBookingCowlendar$1 as AppointmentBookingCowlendar, AppointmentBookingCowlendarProps, AppstleSubscriptions$1 as AppstleSubscriptions, AppstleSubscriptionsProps, ArticleAuthor$1 as ArticleAuthor, ArticleCategory$1 as ArticleCategory, ArticleContent$1 as ArticleContent, ArticleDate$1 as ArticleDate, ArticleExcerpt$1 as ArticleExcerpt, ArticleImage$1 as ArticleImage, ArticleList$1 as ArticleList, ArticlePagination$1 as ArticlePagination, ArticleReadMore$1 as ArticleReadMore, ArticleTag$1 as ArticleTag, ArticleTitle$1 as ArticleTitle, BgImage as BackgroundImage, BackgroundImageProps, BasicHeader, BestBuyFulfillment$1 as BestBuyFulfillment, BestBuyFulfillmentProps, BirdChime$1 as BirdChime, BirdChimeProps, Bogos$1 as Bogos, BogosProps, BoldProductOptions$1 as BoldProductOptions, BoldProductOptionsProps, BoldSubscriptions$1 as BoldSubscriptions, BoldSubscriptionsProps, BonLoyaltyRewardsReferrals$1 as BonLoyaltyRewardsReferrals, BonLoyaltyRewardsReferralsProps, BoostAISearchDiscovery$1 as BoostAISearchDiscovery, BoostAISearchDiscoveryProps, Breadcrumb$1 as Breadcrumb, Breadcrumb$1 as BreadcrumbProps, Bundler$1 as Bundler, BundlerProps, Button$2 as Button, ButtonProps, CSSCode$1 as CSSCode, CSSCodeProps, Carousel$1 as Carousel, CarouselItem$1 as CarouselItem, CarouselItemProps, CarouselProps, CarouselSettings, CarouselStyles, Cart, CartCheckout, CartDiscount, CartLineAttribute, CartLineImage, CartLinePrice, CartLineVariant, CartList, CartOrderNote, CartProps, CartTotalItem, CartTotalPrice, CheckoutNow, CleanSizeChartProps, CleanSizeCharts$1 as CleanSizeCharts, Column$1 as Col, ColProps$1 as ColProps, CollectionBanner$1 as CollectionBanner, CollectionBannerProps, CollectionDescription$1 as CollectionDescription, CollectionDescriptionProps, CollectionPaginator$1 as CollectionPaginator, CollectionPaginatorProps, CollectionTitle$1 as CollectionTitle, CollectionTitleProps, CollectionToolbar$1 as CollectionToolbar, CollectionToolbarProps, ContactForm$1 as ContactForm, Countdown$1 as Countdown, CountdownProps, Coupon$1 as Coupon, CouponList, CouponProps, CrossSellCartUpsell$1 as CrossSellCartUpsell, CrossSellCartUpsellProps, CustomProductOptionsVariant$1 as CustomProductOptionsVariant, CustomProductOptionsVariantProps, DataVideoType, DesktopMenu, Dialog$1 as Dialog, DiscountInput, DiscountyBulkDiscountSales$1 as DiscountyBulkDiscountSales, DiscountyBulkDiscountSalesProps, DynamicCheckout$1 as DynamicCheckout, DynamicCheckoutProps, ELEMENT_Z_INDEX, EasifyProductOptions$1 as EasifyProductOptions, EasifyProductOptionsProps, EasyBundleBuilderSkailama$1 as EasyBundleBuilderSkailama, EasyBundleBuilderSkailamaProps, EasySell as EasySellCOD, EasySellProps, EstimateDate$1 as EstimateDate, EstimateDateProps, FastBundleBundlesDiscounts$1 as FastBundleBundlesDiscounts, FastBundleBundlesDiscountsProps, FeraReviews$1 as FeraReviews, FeraReviewsProps, FileUpload$1 as FileUpload, FileUploadProps, FirePush$1 as FirePush, FirePushProps, FlyBundlesUpsellsFbt$1 as FlyBundlesUpsellsFbt, FlyBundlesUpsellsFbtProps, FordeerProductLabels$1 as FordeerProductLabels, FordeerProductLabelsProps, FormCheckbox, FormCheckboxProps, FormDropdown$1 as FormDropdown, FormDropdownProps, FormEmail$1 as FormEmail, FormEmailProps, FormTextArea as FormTextarea, FrequentlyBoughtTogether$1 as FrequentlyBoughtTogether, FrequentlyBoughtTogetherProps, GloboProductOptionsVariant$1 as GloboProductOptionsVariant, GloboProductOptionsVariantProps, GoogleReviewsByReputon$1 as GoogleReviewsByReputon, GoogleReviewsByReputonProps, Growave$1 as Growave, GrowaveProps, Header, HeaderProps, Heading$1 as Heading, HeadingProps, HeroBanner$1 as HeroBanner, HeroBannerProps, HulkFormBuilder$1 as HulkFormBuilder, HulkFormBuilderProps, HulkProductOptions$1 as HulkProductOptions, HulkProductOptionsProps, Icon$1 as Icon, IconList$1 as IconList, IconListHoz$1 as IconListHoz, IconListHozItem, IconListHozProps, IconListItem$1 as IconListItem, IconListItemProps$3 as IconListItemProps, IconListProps$2 as IconListProps, IconListV2$1 as IconListV2, IconProps$1 as IconProps, Image$1 as Image, ImageComparison$1 as ImageComparison, ImageDetection, ImageDetectionProps, ImageProps, InfiniteOptions$1 as InfiniteOptions, InfiniteOptionsProps, Input, InputProps, Instafeed$1 as Instafeed, InstafeedProps, InstantJudgemeReviews, InstantJudgemeReviewsProps, InstantKlaviyo, InstantKlaviyoProps, InstantLooxReviews, InstantLooxReviewsProps, InstantYotpoLoyalty, InstantYotpoLoyaltyProps, InstasellShoppableInstagram$1 as InstasellShoppableInstagram, InstasellShoppableInstagramProps, JudgemeReviews$1 as JudgemeReviews, JudgemeReviewsProps, JunipProductReviewsUgc$1 as JunipProductReviewsUgc, JunipProductReviewsUgcProps, KachingBundles$1 as KachingBundles, KachingBundlesProps, KingProductOptions$1 as KingProductOptions, KingProductOptionsProps, KiteFreeGiftDiscount$1 as KiteFreeGiftDiscount, KiteFreeGiftDiscountProps, KlarnaMessaging$1 as KlarnaMessaging, KlarnaMessagingProps, Klaviyo$1 as Klaviyo, KlaviyoProps, KoalaBundleQuantityDiscount$1 as KoalaBundleQuantityDiscount, KoalaBundleQuantityDiscountProps, LaiProductReviews$1 as LaiProductReviews, LaiProductReviewsProps, Line$2 as Line, LineProps$1 as LineProps, Link$1 as Link, LinkProps$1 as LinkProps, LoloyalLoyaltyReferrals$1 as LoloyalLoyaltyReferrals, LoloyalLoyaltyReferralsProps, LoopSubscriptions$1 as LoopSubscriptions, LoopSubscriptionsProps, LooxReviews$1 as LooxReviews, LooxReviewsProps, Marquee$1 as Marquee, _default$3 as MarqueeItem, MarqueeItemProps, MarqueeProps, MaxbundleProductBundles$1 as MaxbundleProductBundles, MaxbundleProductBundlesProps, MbcBundleVolumeDiscount$1 as MbcBundleVolumeDiscount, MbcBundleVolumeDiscountProps, Menu, MenuProps, MobileMenu, Modal, ModernHeader, MyappgurusProductReviews$1 as MyappgurusProductReviews, MyappgurusProductReviewsProps, Newsletter$1 as Newsletter, NewsletterProps, Notify as Notice, NotificationAPI, NotificationConfig, NotifyBackInStockPreOrder$1 as NotifyBackInStockPreOrder, NotifyBackInStockPreOrderProps, Omnisend$1 as Omnisend, OmnisendProps, Opinew$1 as Opinew, OpinewProps, Pagination, PaginationProps, ParcelPanel$1 as ParcelPanel, ParcelPanelProps, PickyStory$1 as PickyStory, PickyStoryProps, PostPurchaseAcceptButton, PostPurchaseAcceptButtonProps, PostPurchaseAdvancedList, PostPurchaseAdvancedListItem, PostPurchaseAdvancedListProps, Button$1 as PostPurchaseButton, PostPurchaseButtonProps, CalloutBox as PostPurchaseCalloutBox, CalloutText as PostPurchaseCalloutText, PostPurchaseCountdownTimer, PostPurchaseHeading, PostPurchaseImage, PostPurchaseImageProps, Line$1 as PostPurchaseLine, PostPurchaseLineProps, Link as PostPurchaseLink, PostPurchaseLinkProps, PostPurchaseProductDescription, PostPurchaseProductDescriptionProps, PostPurchaseProductDiscountTag, PostPurchaseProductDiscountTagProps, PostPurchaseProductImages, PostPurchaseProductImagesProps, PostPurchaseProductOffer, PostPurchaseProductOfferProps, PostPurchaseProductPrice, PostPurchaseProductPriceBreakdown, PostPurchaseProductPriceBreakdownProps, PostPurchaseProductPriceProps, PostPurchaseProductQuantity, PostPurchaseProductQuantityProps, PostPurchaseProductTitle, PostPurchaseProductTitleProps, PostPurchaseProductVariants, PostPurchaseProductVariantsProps, Text$1 as PostPurchaseText, PostPurchaseTextProps, PowerfulContactFormBuilder$1 as PowerfulContactFormBuilder, PowerfulContactFormBuilderProps, PreorderNowPreOrderPq$1 as PreorderNowPreOrderPq, PreorderNowPreOrderPqProps, PreorderNowWodPresale$1 as PreorderNowWodPresale, PreorderNowWodPresaleProps, Product$1 as Product, ProductBadge$1 as ProductBadge, ProductBadgeProps, ProductBundleDiscount$1 as ProductBundleDiscount, ProductBundleDiscountItem$1 as ProductBundleDiscountItem, ProductButton$1 as ProductButton, ProductButtonProps, ProductDescription$1 as ProductDescription, ProductDescriptionProps$1 as ProductDescriptionProps, ProductImages$2 as ProductImages, ProductImagesProps, ProductImagesV2, ProductList$1 as ProductList, ProductList$1 as ProductListProps, ProductOptionsCustomizer$1 as ProductOptionsCustomizer, ProductOptionsCustomizerProps, ProductOptionsVariantOption$1 as ProductOptionsVariantOption, ProductOptionsVariantOptionProps, ProductPrice$1 as ProductPrice, ProductPriceProps, ProductPropertiesProps, ProductProperties$1 as ProductPropertyInput, ProductProps, ProductQuantity$1 as ProductQuantity, ProductQuantityBreakItemProps, ProductQuantityBreakProps, ProductQuantityProps, QuickView as ProductQuickView, ProductReviews$1 as ProductReviews, ProductReviewsProps, ProductSku$1 as ProductSku, ProductTag$1 as ProductTag, ProductTagProps, ProductTitle$1 as ProductTitle, ProductTitleProps, ProductVariants$1 as ProductVariants, ProductVariantsProps, ProductVendor$1 as ProductVendor, ProductViewMore$1 as ProductViewMore, ProductViewMoreProps, PumperBundlesVolumeDiscount$1 as PumperBundlesVolumeDiscount, PumperBundlesVolumeDiscountProps, PushOwl$1 as PushOwl, PushOwlProps, QikifyUpsell$1 as QikifyUpsell, QikifyUpsellProps, Radio, RadioProps, RapiBundleQuantityBreaks$1 as RapiBundleQuantityBreaks, RapiBundleQuantityBreaksProps, RechargeSubscriptions$1 as RechargeSubscriptions, RechargeSubscriptionsProps, RecurpaySubscriptionApp$1 as RecurpaySubscriptionApp, RecurpaySubscriptionAppProps, Releasit$1 as Releasit, ReleasitProps, RequestQuoteHidePrice$1 as RequestQuoteHidePrice, RequestQuoteHidePriceProps, ReviewxpoProductReviewsApp$1 as ReviewxpoProductReviewsApp, ReviewxpoProductReviewsAppProps, Rivyo$1 as Rivyo, RivyoProps, Root$1 as Root, RootProps$1 as RootProps, Row$1 as Row, RowProps$1 as RowProps, Ryviu$1 as Ryviu, RyviuProps, SealSubscriptions$1 as SealSubscriptions, SealSubscriptionsProps, Section$1 as Section, SegunoEmailMarketing$1 as SegunoEmailMarketing, SegunoEmailMarketingProps, Select, SelectProps, Selleasy$1 as Selleasy, SelleasyProps, SeoantTrustBadgesIcon$1 as SeoantTrustBadgesIcon, SeoantTrustBadgesIconProps, ShopPayButton$1 as ShopPayButton, ShopPayButtonProps, ShopPayInstallments$1 as ShopPayInstallments, ShopifyForms$1 as ShopifyForms, ShopifyFormsProps, ShopifySubscriptions$1 as ShopifySubscriptions, ShopifySubscriptionsProps, SimpleBundlesKits$1 as SimpleBundlesKits, SimpleBundlesKitsProps, SkioSubscriptionsYcS20$1 as SkioSubscriptionsYcS20, SkioSubscriptionsYcS20Props, SkuProps, SmartSearchBarAndFilters$1 as SmartSearchBarAndFilters, SmartSearchBarAndFiltersProps, SproutPlantTreesGrowSales$1 as SproutPlantTreesGrowSales, SproutPlantTreesGrowSalesProps, Stamped$1 as Stamped, StampedProps, Sticky$1 as Sticky, StickyProps, StockCounter$1 as StockCounter, StockCounterProps$1 as StockCounterProps, SubifySubscriptionsApp$1 as SubifySubscriptionsApp, SubifySubscriptionsAppProps, SubmitButton$1 as SubmitButton, SubmitButtonProps, TabItem$1 as TabItem, TabItemProps, Tabs$1 as Tabs, TabsProps, TagembedSocialPostReview$1 as TagembedSocialPostReview, TagembedSocialPostReviewProps, TagshopShoppableVideosUgc$1 as TagshopShoppableVideosUgc, TagshopShoppableVideosUgcProps, TeeinblueProductPersonalizer$1 as TeeinblueProductPersonalizer, TeeinblueProductPersonalizerProps, Text$2 as Text, TextAreaProps, TextField$1 as TextField, TextFieldProps, TextProps$1 as TextProps, TextArea as Textarea, TextareaProps, ThirdPartySlot$1 as ThirdPartySlot, TrustMe$1 as TrustMe, TrustMeProps, Trustoo$1 as Trustoo, TrustooProps, TrustreviewsProductReviews$1 as TrustreviewsProductReviews, TrustreviewsProductReviewsProps, TrustshopProductReviews$1 as TrustshopProductReviews, TrustshopProductReviewsProps, UltimateSalesBoost$1 as UltimateSalesBoost, UltimateSalesBoostProps, UnlimitedBundlesDiscounts$1 as UnlimitedBundlesDiscounts, UnlimitedBundlesDiscountsProps, VendorProps, Video$1 as Video, Vitals$1 as Vitals, VitalsProps, WhatmoreShoppableVideosreel$1 as WhatmoreShoppableVideosreel, WhatmoreShoppableVideosreelProps, WideBundle$1 as WideBundle, WideBundleProps, Wiser$1 as Wiser, WiserProps, WishlistKing$1 as WishlistKing, WishlistKingProps, WishlistPlus$1 as WishlistPlus, WishlistPlusProps, YotpoLoyalty, YotpoLoyaltyProps, YotpoReviews$1 as YotpoReviews, YotpoReviewsProps, _default$U as accordionSetting, _default$5 as articleListSetting, _default$s as bannerSetting, _default$T as breadcrumbSetting, _default$1 as builderComponent, _default$S as buttonSetting, _default$Q as carouselSetting, _default$N as cartSetting, _default$q as codeSetting, _default$M as collectionSetting, _default as componentSettings, _default$m as contactFormSetting, _default$L as countdownSetting, _default$R as couponSetting, _default$n as dialogSetting, _default$6 as estimateDeliverySetting, getDynamicSourceLocales, getInsertLinkData, getSettingPreloadData, getStaticLocale, _default$O as gridSetting, _default$J as headerSetting, _default$K as headingSetting, _default$p as iconListHozSetting, _default$r as iconListSetting, _default$g as iconListSettingV2, _default$I as iconSetting, _default$k as imageComparisonSetting, _default$l as imageDetectionSetting, _default$P as imageSetting, _default$H as inputSetting, isHexTransparent, isTransparentColor, isTransparentRGBA, _default$G as lineSetting, _default$F as linkSetting, index_liquid as liquidComponents, _default$4 as marqueeSetting, _default$v as menuSetting, _default$E as modalSetting, _default$2 as nextComponent, openConfirm, _default$D as paginationSetting, _default$9 as postPurchaseAdvancedListSetting, _default$d as postPurchaseButtonSetting, _default$b as postPurchaseCalloutBoxSetting, _default$8 as postPurchaseCountdownTimerSetting, _default$e as postPurchaseImageSetting, _default$a as postPurchaseLineSetting, _default$7 as postPurchaseLinkSetting, postPurchaseProduct1Col, postPurchaseProduct2Col, postPurchaseProductDefault, _default$c as postPurchaseProductSetting, _default$f as postPurchaseTextSetting, _default$C as productSetting, _default$A as radioSetting, replaceLinkData, _default$z as selectSetting, _default$i as shopPayInstallmentSetting, _default$h as stickySetting, _default$o as stockCounterSetting, _default$y as tabSetting, _default$B as textSetting, _default$x as textareaSetting, _default$t as thirdPartyInstantSetting, _default$u as thirdPartySetting, _default$j as thirdPartySlotSetting, useInView, useNotification, _default$w as videoSetting, youtubeShortsRegex };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "2.0.0-staging.126",
3
+ "version": "2.0.0-staging.128",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",
@@ -23,7 +23,7 @@
23
23
  },
24
24
  "devDependencies": {
25
25
  "@gem-sdk/core": "2.0.0-staging.117",
26
- "@gem-sdk/styles": "2.0.0-staging.117",
26
+ "@gem-sdk/styles": "2.0.0-staging.127",
27
27
  "@types/react-transition-group": "^4.4.5"
28
28
  },
29
29
  "dependencies": {