@gem-sdk/core 17.0.0-staging.42 → 17.0.0-staging.46

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.
@@ -1,2 +1,2 @@
1
1
  'use client';
2
- "use strict";var e=require("react/jsx-runtime");const i="https://www.google.com/";exports.SectionErrorBanner=({errorSectionInfo:t,onDismiss:s})=>t.isDismissed?null:e.jsx("div",{"data-toolbar-error-banner":!0,className:"gp-flex gp-items-center gp-px-2 gp-top-0 gp-w-full gp-absolute gp-bg-[#FEE4E3] gp-border-t gp-border-t-[#C3362B] gp-text-xs gp-text-[#C3362B] gp-leading-5",children:e.jsxs("div",{className:"gp-flex gp-gap-1.5 gp-w-full",children:[e.jsxs("svg",{className:"gp-flex-shrink-0 gp-mt-2.5",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"M11 13.5C11 14.0523 10.5523 14.5 10 14.5C9.44772 14.5 9 14.0523 9 13.5C9 12.9477 9.44772 12.5 10 12.5C10.5523 12.5 11 12.9477 11 13.5Z",fill:"#C3362B"}),e.jsx("path",{d:"M10.75 6.25001C10.75 5.8358 10.4142 5.50001 10 5.5C9.5858 5.49999 9.25001 5.83578 9.25 6.24999L9.24994 10.75C9.24993 11.1642 9.58572 11.5 9.99993 11.5C10.4141 11.5 10.7499 11.1642 10.7499 10.75L10.75 6.25001Z",fill:"#C3362B"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 17C13.866 17 17 13.866 17 10C17 6.13401 13.866 3 10 3C6.13401 3 3 6.13401 3 10C3 13.866 6.13401 17 10 17ZM10 15.5C13.0376 15.5 15.5 13.0376 15.5 10C15.5 6.96243 13.0376 4.5 10 4.5C6.96243 4.5 4.5 6.96243 4.5 10C4.5 13.0376 6.96243 15.5 10 15.5Z",fill:"#C3362B"})]}),e.jsxs("div",{className:"gp-w-full gp-py-2.5",children:["LIQUID_SYNTAX_ERROR"===t.type&&"This section contains a syntax error in the code. Please review and fix it, then try verifying again.","SECTION_SIZE_EXCEED_256KB"===t.type&&e.jsxs("div",{children:["This section is over Shopify's 256KB limit. Please follow ",e.jsx("a",{target:"_blank",href:i,className:"gp-underline gp-cursor-pointer",onClick:e=>{e.preventDefault(),e.stopPropagation(),window.open(i,"_blank")},rel:"noreferrer",children:"our guide"})," ","to optimize, then try verifying again."]}),"MISSING_SECTION_IN_THEME"===t.type&&"This section was deleted from your live theme. Please delete it from this page, or restore all sections by Force publish."]}),e.jsx("button",{className:"gp-p-1.5 gp-flex-shrink-0 gp-mt-1 gp-h-7",onClick:s,type:"button",children:e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:e.jsx("path",{d:"M11.1755 12.0243C11.4099 12.2586 11.7898 12.2586 12.0241 12.0243C12.2584 11.79 12.2584 11.4101 12.0241 11.1758L8.84833 8.00005L12.0241 4.82431C12.2584 4.59 12.2584 4.2101 12.0241 3.97579C11.7898 3.74147 11.4099 3.74147 11.1755 3.97579L7.9998 7.15152L4.82407 3.97578C4.58975 3.74147 4.20986 3.74147 3.97554 3.97578C3.74123 4.2101 3.74123 4.59 3.97554 4.82431L7.15128 8.00005L3.97554 11.1758C3.74123 11.4101 3.74123 11.79 3.97554 12.0243C4.20986 12.2586 4.58975 12.2586 4.82407 12.0243L7.9998 8.84858L11.1755 12.0243Z",fill:"#212121"})})})]})});
2
+ "use strict";var e=require("react/jsx-runtime");const i="https://help.gempages.net/articles/section-limit#maximum-limit-of-elements-per-section";exports.SectionErrorBanner=({errorSectionInfo:t,onDismiss:s})=>t.isDismissed?null:e.jsx("div",{"data-toolbar-error-banner":!0,className:"gp-flex gp-items-center gp-px-2 gp-top-0 gp-w-full gp-absolute gp-bg-[#FEE4E3] gp-border-t gp-border-t-[#C3362B] gp-text-xs gp-text-[#C3362B] gp-leading-5",children:e.jsxs("div",{className:"gp-flex gp-gap-1.5 gp-w-full",children:[e.jsxs("svg",{className:"gp-flex-shrink-0 gp-mt-2.5",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"M11 13.5C11 14.0523 10.5523 14.5 10 14.5C9.44772 14.5 9 14.0523 9 13.5C9 12.9477 9.44772 12.5 10 12.5C10.5523 12.5 11 12.9477 11 13.5Z",fill:"#C3362B"}),e.jsx("path",{d:"M10.75 6.25001C10.75 5.8358 10.4142 5.50001 10 5.5C9.5858 5.49999 9.25001 5.83578 9.25 6.24999L9.24994 10.75C9.24993 11.1642 9.58572 11.5 9.99993 11.5C10.4141 11.5 10.7499 11.1642 10.7499 10.75L10.75 6.25001Z",fill:"#C3362B"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 17C13.866 17 17 13.866 17 10C17 6.13401 13.866 3 10 3C6.13401 3 3 6.13401 3 10C3 13.866 6.13401 17 10 17ZM10 15.5C13.0376 15.5 15.5 13.0376 15.5 10C15.5 6.96243 13.0376 4.5 10 4.5C6.96243 4.5 4.5 6.96243 4.5 10C4.5 13.0376 6.96243 15.5 10 15.5Z",fill:"#C3362B"})]}),e.jsxs("div",{className:"gp-w-full gp-py-2.5",children:["LIQUID_SYNTAX_ERROR"===t.type&&"This section contains a syntax error in the code. Please review and fix it, then try verifying again.","SECTION_SIZE_EXCEED_256KB"===t.type&&e.jsxs("div",{children:["This section is over Shopify's 256KB limit. Please follow ",e.jsx("a",{target:"_blank",href:i,className:"gp-underline gp-cursor-pointer",onClick:e=>{e.preventDefault(),e.stopPropagation(),window.open(i,"_blank")},rel:"noreferrer",children:"our guide"})," ","to optimize, then try verifying again."]}),"MISSING_SECTION_IN_THEME"===t.type&&"This section was deleted from your live theme. Please delete it from this page, or restore all sections by Force publish."]}),e.jsx("button",{className:"gp-p-1.5 gp-flex-shrink-0 gp-mt-1 gp-h-7",onClick:s,type:"button",children:e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:e.jsx("path",{d:"M11.1755 12.0243C11.4099 12.2586 11.7898 12.2586 12.0241 12.0243C12.2584 11.79 12.2584 11.4101 12.0241 11.1758L8.84833 8.00005L12.0241 4.82431C12.2584 4.59 12.2584 4.2101 12.0241 3.97579C11.7898 3.74147 11.4099 3.74147 11.1755 3.97579L7.9998 7.15152L4.82407 3.97578C4.58975 3.74147 4.20986 3.74147 3.97554 3.97578C3.74123 4.2101 3.74123 4.59 3.97554 4.82431L7.15128 8.00005L3.97554 11.1758C3.74123 11.4101 3.74123 11.79 3.97554 12.0243C4.20986 12.2586 4.58975 12.2586 4.82407 12.0243L7.9998 8.84858L11.1755 12.0243Z",fill:"#212121"})})})]})});
@@ -1 +1 @@
1
- "use strict";const e=e=>!("object"!=typeof e||Array.isArray(e))&&null!==e,t=(e,...t)=>{let r=t[0],o=[];for(let e in r)if(Object.hasOwnProperty.call(r,e)){let t=r[e];["symbol","object","function"].includes(typeof t)||(t?o.push(`${e}="${t}"`):o.push(`${e}`))}return o.join(" ")},r=/^(.+)-(tablet|mobile)$/,o=e=>null==e||""===e||!1===e||"undefined"===e||"string"==typeof e&&e?.includes("undefined"),l=["--","--hvr-","--focus-"],n=["","-tablet","-mobile"],s=[{shorthand:"radius",parts:["btlr","btrr","bbrr","bblr"]},{shorthand:"p",parts:["pt","pr","pb","pl"]},{shorthand:"m",parts:["mt","mr","mb","ml"]}],i=e=>{let t={...e};for(let e of l)for(let r of n)for(let l of s){let n=`${e}${l.shorthand}${r}`;if(n in t&&!o(t[n]))continue;let s=l.parts.map(t=>`${e}${t}${r}`);if(s.every(e=>!o(t[e])))for(let e of(t[n]=s.map(e=>t[e]).join(" "),s))delete t[e]}return t},f=(e,...t)=>{let l=t[0];if(!l)return"";let n=i(l),s=[],f={},p={},a=[];for(let e in n){if(!Object.hasOwnProperty.call(n,e))continue;let t=n[e];if(o(e)||o(t))continue;let l=r.exec(e),s=l?.[1],i=l?.[2];s&&i?"tablet"===i&&(p[s]=t):f[e]=t,a.push({token:e,value:t,baseAttr:s,deviceSuffix:i})}for(let{token:e,value:t,baseAttr:r,deviceSuffix:o}of a){if(r&&"tablet"===o){if(f[r]===t)continue}else if(r&&"mobile"===o){let e=r in p?p[r]:f[r];if(e===t)continue}s.push(`${e}:${t}`)}return s.join(";")};exports.RenderIf=(e,t,r)=>e?"string"==typeof t?t:t():("string"==typeof r?r:r?.())??"",exports.composeMemo=(e,t)=>e(),exports.dataStringify=e=>JSON.stringify(e).replace(/\\"/g,'"'),exports.props=t,exports.removeUndefinedValuesFromObject=e=>(Object.keys(e).forEach(t=>e?.[t]===void 0&&delete e[t]),e),exports.sanitizeLiquid=function(e){return e.replace(/\{\{\s*(.*?)\s*\}\}/g,(e,t)=>{let r=t.trim(),o=/^([a-zA-Z_][a-zA-Z0-9_-]*)(\.[a-zA-Z0-9_-]+)*$/i.test(r);return o?`{{ ${r} }}`:r})},exports.styles=f,exports.template=(r,...o)=>{let l="";return r.forEach((r,n)=>{l+=r,void 0!==o[n]&&(e(o[n])?/style=["|']/.test(r)?l+=f`${o[n]}`:l+=t`${o[n]}`:l+=o[n])}),l=(l=l.replaceAll('style=""',"")).replaceAll('class=""',"")};
1
+ "use strict";const e=e=>!("object"!=typeof e||Array.isArray(e))&&null!==e,t=(e,...t)=>{let r=t[0],s=[];for(let e in r)if(Object.hasOwnProperty.call(r,e)){let t=r[e];["symbol","object","function"].includes(typeof t)||(t?s.push(`${e}="${t}"`):s.push(`${e}`))}return s.join(" ")},r=e=>null==e||""===e||!1===e||"undefined"===e||"string"==typeof e&&e?.includes("undefined"),s=(e,...t)=>{let s=t[0];if(!s)return"";let n=[];for(let e in s){if(!Object.hasOwnProperty.call(s,e))continue;let t=s[e];r(e)||r(t)||n.push(`${e}:${t}`)}return n.join(";")};exports.RenderIf=(e,t,r)=>e?"string"==typeof t?t:t():("string"==typeof r?r:r?.())??"",exports.composeMemo=(e,t)=>e(),exports.dataStringify=e=>JSON.stringify(e).replace(/\\"/g,'"'),exports.props=t,exports.removeUndefinedValuesFromObject=e=>(Object.keys(e).forEach(t=>e?.[t]===void 0&&delete e[t]),e),exports.sanitizeLiquid=function(e){return e.replace(/\{\{\s*(.*?)\s*\}\}/g,(e,t)=>{let r=t.trim(),s=/^([a-zA-Z_][a-zA-Z0-9_-]*)(\.[a-zA-Z0-9_-]+)*$/i.test(r);return s?`{{ ${r} }}`:r})},exports.styles=s,exports.template=(r,...n)=>{let o="";return r.forEach((r,l)=>{o+=r,void 0!==n[l]&&(e(n[l])?/style=["|']/.test(r)?o+=s`${n[l]}`:o+=t`${n[l]}`:o+=n[l])}),o=(o=o.replaceAll('style=""',"")).replaceAll('class=""',"")};
@@ -1,2 +1,2 @@
1
1
  'use client';
2
- import{jsx as e,jsxs as i}from"react/jsx-runtime";let l="https://www.google.com/",t=({errorSectionInfo:t,onDismiss:r})=>t.isDismissed?null:e("div",{"data-toolbar-error-banner":!0,className:"gp-flex gp-items-center gp-px-2 gp-top-0 gp-w-full gp-absolute gp-bg-[#FEE4E3] gp-border-t gp-border-t-[#C3362B] gp-text-xs gp-text-[#C3362B] gp-leading-5",children:i("div",{className:"gp-flex gp-gap-1.5 gp-w-full",children:[i("svg",{className:"gp-flex-shrink-0 gp-mt-2.5",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e("path",{d:"M11 13.5C11 14.0523 10.5523 14.5 10 14.5C9.44772 14.5 9 14.0523 9 13.5C9 12.9477 9.44772 12.5 10 12.5C10.5523 12.5 11 12.9477 11 13.5Z",fill:"#C3362B"}),e("path",{d:"M10.75 6.25001C10.75 5.8358 10.4142 5.50001 10 5.5C9.5858 5.49999 9.25001 5.83578 9.25 6.24999L9.24994 10.75C9.24993 11.1642 9.58572 11.5 9.99993 11.5C10.4141 11.5 10.7499 11.1642 10.7499 10.75L10.75 6.25001Z",fill:"#C3362B"}),e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 17C13.866 17 17 13.866 17 10C17 6.13401 13.866 3 10 3C6.13401 3 3 6.13401 3 10C3 13.866 6.13401 17 10 17ZM10 15.5C13.0376 15.5 15.5 13.0376 15.5 10C15.5 6.96243 13.0376 4.5 10 4.5C6.96243 4.5 4.5 6.96243 4.5 10C4.5 13.0376 6.96243 15.5 10 15.5Z",fill:"#C3362B"})]}),i("div",{className:"gp-w-full gp-py-2.5",children:["LIQUID_SYNTAX_ERROR"===t.type&&"This section contains a syntax error in the code. Please review and fix it, then try verifying again.","SECTION_SIZE_EXCEED_256KB"===t.type&&i("div",{children:["This section is over Shopify's 256KB limit. Please follow ",e("a",{target:"_blank",href:l,className:"gp-underline gp-cursor-pointer",onClick:e=>{e.preventDefault(),e.stopPropagation(),window.open(l,"_blank")},rel:"noreferrer",children:"our guide"})," ","to optimize, then try verifying again."]}),"MISSING_SECTION_IN_THEME"===t.type&&"This section was deleted from your live theme. Please delete it from this page, or restore all sections by Force publish."]}),e("button",{className:"gp-p-1.5 gp-flex-shrink-0 gp-mt-1 gp-h-7",onClick:r,type:"button",children:e("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:e("path",{d:"M11.1755 12.0243C11.4099 12.2586 11.7898 12.2586 12.0241 12.0243C12.2584 11.79 12.2584 11.4101 12.0241 11.1758L8.84833 8.00005L12.0241 4.82431C12.2584 4.59 12.2584 4.2101 12.0241 3.97579C11.7898 3.74147 11.4099 3.74147 11.1755 3.97579L7.9998 7.15152L4.82407 3.97578C4.58975 3.74147 4.20986 3.74147 3.97554 3.97578C3.74123 4.2101 3.74123 4.59 3.97554 4.82431L7.15128 8.00005L3.97554 11.1758C3.74123 11.4101 3.74123 11.79 3.97554 12.0243C4.20986 12.2586 4.58975 12.2586 4.82407 12.0243L7.9998 8.84858L11.1755 12.0243Z",fill:"#212121"})})})]})});export{t as SectionErrorBanner};
2
+ import{jsx as e,jsxs as i}from"react/jsx-runtime";let t="https://help.gempages.net/articles/section-limit#maximum-limit-of-elements-per-section",l=({errorSectionInfo:l,onDismiss:r})=>l.isDismissed?null:e("div",{"data-toolbar-error-banner":!0,className:"gp-flex gp-items-center gp-px-2 gp-top-0 gp-w-full gp-absolute gp-bg-[#FEE4E3] gp-border-t gp-border-t-[#C3362B] gp-text-xs gp-text-[#C3362B] gp-leading-5",children:i("div",{className:"gp-flex gp-gap-1.5 gp-w-full",children:[i("svg",{className:"gp-flex-shrink-0 gp-mt-2.5",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e("path",{d:"M11 13.5C11 14.0523 10.5523 14.5 10 14.5C9.44772 14.5 9 14.0523 9 13.5C9 12.9477 9.44772 12.5 10 12.5C10.5523 12.5 11 12.9477 11 13.5Z",fill:"#C3362B"}),e("path",{d:"M10.75 6.25001C10.75 5.8358 10.4142 5.50001 10 5.5C9.5858 5.49999 9.25001 5.83578 9.25 6.24999L9.24994 10.75C9.24993 11.1642 9.58572 11.5 9.99993 11.5C10.4141 11.5 10.7499 11.1642 10.7499 10.75L10.75 6.25001Z",fill:"#C3362B"}),e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 17C13.866 17 17 13.866 17 10C17 6.13401 13.866 3 10 3C6.13401 3 3 6.13401 3 10C3 13.866 6.13401 17 10 17ZM10 15.5C13.0376 15.5 15.5 13.0376 15.5 10C15.5 6.96243 13.0376 4.5 10 4.5C6.96243 4.5 4.5 6.96243 4.5 10C4.5 13.0376 6.96243 15.5 10 15.5Z",fill:"#C3362B"})]}),i("div",{className:"gp-w-full gp-py-2.5",children:["LIQUID_SYNTAX_ERROR"===l.type&&"This section contains a syntax error in the code. Please review and fix it, then try verifying again.","SECTION_SIZE_EXCEED_256KB"===l.type&&i("div",{children:["This section is over Shopify's 256KB limit. Please follow ",e("a",{target:"_blank",href:t,className:"gp-underline gp-cursor-pointer",onClick:e=>{e.preventDefault(),e.stopPropagation(),window.open(t,"_blank")},rel:"noreferrer",children:"our guide"})," ","to optimize, then try verifying again."]}),"MISSING_SECTION_IN_THEME"===l.type&&"This section was deleted from your live theme. Please delete it from this page, or restore all sections by Force publish."]}),e("button",{className:"gp-p-1.5 gp-flex-shrink-0 gp-mt-1 gp-h-7",onClick:r,type:"button",children:e("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:e("path",{d:"M11.1755 12.0243C11.4099 12.2586 11.7898 12.2586 12.0241 12.0243C12.2584 11.79 12.2584 11.4101 12.0241 11.1758L8.84833 8.00005L12.0241 4.82431C12.2584 4.59 12.2584 4.2101 12.0241 3.97579C11.7898 3.74147 11.4099 3.74147 11.1755 3.97579L7.9998 7.15152L4.82407 3.97578C4.58975 3.74147 4.20986 3.74147 3.97554 3.97578C3.74123 4.2101 3.74123 4.59 3.97554 4.82431L7.15128 8.00005L3.97554 11.1758C3.74123 11.4101 3.74123 11.79 3.97554 12.0243C4.20986 12.2586 4.58975 12.2586 4.82407 12.0243L7.9998 8.84858L11.1755 12.0243Z",fill:"#212121"})})})]})});export{l as SectionErrorBanner};
@@ -1 +1 @@
1
- let e=(e,t,r)=>e?"string"==typeof t?t:t():("string"==typeof r?r:r?.())??"",t=e=>!("object"!=typeof e||Array.isArray(e))&&null!==e,r=(e,...t)=>{let r=t[0],l=[];for(let e in r)if(Object.hasOwnProperty.call(r,e)){let t=r[e];["symbol","object","function"].includes(typeof t)||(t?l.push(`${e}="${t}"`):l.push(`${e}`))}return l.join(" ")},l=/^(.+)-(tablet|mobile)$/,n=e=>null==e||""===e||!1===e||"undefined"===e||"string"==typeof e&&e?.includes("undefined"),o=["--","--hvr-","--focus-"],i=["","-tablet","-mobile"],s=[{shorthand:"radius",parts:["btlr","btrr","bbrr","bblr"]},{shorthand:"p",parts:["pt","pr","pb","pl"]},{shorthand:"m",parts:["mt","mr","mb","ml"]}],f=e=>{let t={...e};for(let e of o)for(let r of i)for(let l of s){let o=`${e}${l.shorthand}${r}`;if(o in t&&!n(t[o]))continue;let i=l.parts.map(t=>`${e}${t}${r}`);if(i.every(e=>!n(t[e])))for(let e of(t[o]=i.map(e=>t[e]).join(" "),i))delete t[e]}return t},a=(e,...t)=>{let r=t[0];if(!r)return"";let o=f(r),i=[],s={},a={},p=[];for(let e in o){if(!Object.hasOwnProperty.call(o,e))continue;let t=o[e];if(n(e)||n(t))continue;let r=l.exec(e),i=r?.[1],f=r?.[2];i&&f?"tablet"===f&&(a[i]=t):s[e]=t,p.push({token:e,value:t,baseAttr:i,deviceSuffix:f})}for(let{token:e,value:t,baseAttr:r,deviceSuffix:l}of p){if(r&&"tablet"===l){if(s[r]===t)continue}else if(r&&"mobile"===l){let e=r in a?a[r]:s[r];if(e===t)continue}i.push(`${e}:${t}`)}return i.join(";")},p=e=>JSON.stringify(e).replace(/\\"/g,'"'),u=(e,...l)=>{let n="";return e.forEach((e,o)=>{n+=e,void 0!==l[o]&&(t(l[o])?/style=["|']/.test(e)?n+=a`${l[o]}`:n+=r`${l[o]}`:n+=l[o])}),n=(n=n.replaceAll('style=""',"")).replaceAll('class=""',"")},c=(e,t)=>e(),b=e=>(Object.keys(e).forEach(t=>e?.[t]===void 0&&delete e[t]),e);function d(e){return e.replace(/\{\{\s*(.*?)\s*\}\}/g,(e,t)=>{let r=t.trim(),l=/^([a-zA-Z_][a-zA-Z0-9_-]*)(\.[a-zA-Z0-9_-]+)*$/i.test(r);return l?`{{ ${r} }}`:r})}export{e as RenderIf,c as composeMemo,p as dataStringify,r as props,b as removeUndefinedValuesFromObject,d as sanitizeLiquid,a as styles,u as template};
1
+ let e=(e,t,r)=>e?"string"==typeof t?t:t():("string"==typeof r?r:r?.())??"",t=e=>!("object"!=typeof e||Array.isArray(e))&&null!==e,r=(e,...t)=>{let r=t[0],l=[];for(let e in r)if(Object.hasOwnProperty.call(r,e)){let t=r[e];["symbol","object","function"].includes(typeof t)||(t?l.push(`${e}="${t}"`):l.push(`${e}`))}return l.join(" ")},l=e=>null==e||""===e||!1===e||"undefined"===e||"string"==typeof e&&e?.includes("undefined"),n=(e,...t)=>{let r=t[0];if(!r)return"";let n=[];for(let e in r){if(!Object.hasOwnProperty.call(r,e))continue;let t=r[e];l(e)||l(t)||n.push(`${e}:${t}`)}return n.join(";")},i=e=>JSON.stringify(e).replace(/\\"/g,'"'),o=(e,...l)=>{let i="";return e.forEach((e,o)=>{i+=e,void 0!==l[o]&&(t(l[o])?/style=["|']/.test(e)?i+=n`${l[o]}`:i+=r`${l[o]}`:i+=l[o])}),i=(i=i.replaceAll('style=""',"")).replaceAll('class=""',"")},s=(e,t)=>e(),a=e=>(Object.keys(e).forEach(t=>e?.[t]===void 0&&delete e[t]),e);function c(e){return e.replace(/\{\{\s*(.*?)\s*\}\}/g,(e,t)=>{let r=t.trim(),l=/^([a-zA-Z_][a-zA-Z0-9_-]*)(\.[a-zA-Z0-9_-]+)*$/i.test(r);return l?`{{ ${r} }}`:r})}export{e as RenderIf,s as composeMemo,i as dataStringify,r as props,a as removeUndefinedValuesFromObject,c as sanitizeLiquid,n as styles,o as template};
@@ -42716,9 +42716,9 @@ type AddonProviderProps = Pick<AddonContextProps, 'components'> & {
42716
42716
 
42717
42717
  declare const AddonProvider: React.FC<AddonProviderProps>;
42718
42718
  declare const useAddons: () => Record<string, React.ComponentType<any>>;
42719
- declare const useAddon: (id?: string) => React.ComponentType<any> | React.FC<BaseProps & {
42719
+ declare const useAddon: (id?: string) => React.FC<BaseProps & {
42720
42720
  children?: React.ReactNode;
42721
- }>;
42721
+ }> | React.ComponentType<any>;
42722
42722
 
42723
42723
  type BuilderComponentProps = {
42724
42724
  components: Record<string, React.ComponentType<any>>;
@@ -42730,9 +42730,9 @@ type BuilderComponentProviderProps = Pick<BuilderComponentProps, 'components'> &
42730
42730
  };
42731
42731
 
42732
42732
  declare const BuilderComponentProvider: React.FC<BuilderComponentProviderProps>;
42733
- declare const useBuilderComponent: (id?: string) => React.FC<BaseProps & {
42733
+ declare const useBuilderComponent: (id?: string) => React.ComponentType<BaseProps> | React.FC<BaseProps & {
42734
42734
  children?: React.ReactNode;
42735
- }> | React.ComponentType<BaseProps>;
42735
+ }>;
42736
42736
 
42737
42737
  type BuilderContextProps = {
42738
42738
  state: BuilderState | SectionData;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/core",
3
- "version": "17.0.0-staging.42",
3
+ "version": "17.0.0-staging.46",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",
@@ -29,7 +29,7 @@
29
29
  },
30
30
  "devDependencies": {
31
31
  "@gem-sdk/adapter-shopify": "17.0.0-staging.26",
32
- "@gem-sdk/styles": "17.0.0-staging.40",
32
+ "@gem-sdk/styles": "17.0.0-staging.44",
33
33
  "@types/classnames": "^2.3.1"
34
34
  },
35
35
  "dependencies": {