@gem-sdk/components 2.0.0-staging.861 → 2.0.0-staging.863
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.
- package/dist/cjs/image/common/attrs.js +1 -1
- package/dist/cjs/sticky/common/styles.js +1 -1
- package/dist/cjs/sticky/components/Sticky.js +1 -1
- package/dist/esm/image/common/attrs.js +1 -1
- package/dist/esm/sticky/common/styles.js +1 -1
- package/dist/esm/sticky/components/Sticky.js +1 -1
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var constant=require("../../constant.js"),helpers=require("./helpers.js"),system=require("@gem-sdk/system");const getContainerAttrs=(e,t)=>({...e,...t&&{"data-id":t}}),getLinkWrapperAttrs=({urlData:e,imageLink:t,title:r,isLiquid:s=!1})=>{let a=s?{...e,...t?.noFollow&&{rel:"nofollow"},title:r}:{setting:e,title:r};return t?.type!=="go-to-sales-page"?t?.link?a:{}:s?{href:constant.HREF_TO_SALES_PAGE,target:"_self"}:{setting:{href:constant.HREF_TO_SALES_PAGE,target:"_self"}}},getImageLiquidAttrs=({pageContext:e,enableLazyLoadImage:t=!1})=>({...e&&{pageContext:e},...t&&{enableLazyLoadImage:t}}),getAdaptiveImageAttrs=({styles:e,setting:t})=>{let{alt:r,srcSet:s,priority:a}=t??{},g=helpers.getAspectRatio({styles:e,setting:t});return{pictureClass:"gp-contents",...r&&{alt:r},...s&&{srcSet:s},...a&&{priority:a},...e?.objectFit&&{layout:e.objectFit},aspectRatio:g}},getNextImageAttrs=({styles:e,setting:t})=>{let{objectFit:r}=e??{},{vw:s,alt:a,title:g,quality:i,priority:
|
|
1
|
+
"use strict";var constant=require("../../constant.js"),helpers=require("./helpers.js"),system=require("@gem-sdk/system");const getContainerAttrs=(e,t)=>({...e,...t&&{"data-id":t}}),getLinkWrapperAttrs=({urlData:e,imageLink:t,title:r,isLiquid:s=!1})=>{let a=s?{...e,...t?.noFollow&&{rel:"nofollow"},title:r}:{setting:e,title:r};return t?.type!=="go-to-sales-page"?t?.link?a:{}:s?{href:constant.HREF_TO_SALES_PAGE,target:"_self"}:{setting:{href:constant.HREF_TO_SALES_PAGE,target:"_self"}}},getImageLiquidAttrs=({pageContext:e,enableLazyLoadImage:t=!1})=>({...e&&{pageContext:e},...t&&{enableLazyLoadImage:t}}),getAdaptiveImageAttrs=({styles:e,setting:t})=>{let{alt:r,srcSet:s,priority:a}=t??{},g=helpers.getAspectRatio({styles:e,setting:t});return{pictureClass:"gp-contents",...r&&{alt:r},...s&&{srcSet:s},...a&&{priority:a},...e?.objectFit&&{layout:e.objectFit},aspectRatio:g}},getNextImageAttrs=({styles:e,setting:t})=>{let{objectFit:r}=e??{},{vw:s,alt:a,title:g,quality:i,priority:l,isNotLazyload:A,qualityType:p,qualityPercent:n}=t??{},o=helpers.getAspectRatio({styles:e,setting:t});return{...t?.image,...s&&{vw:s},...a&&{alt:a},...g&&{title:g},...i&&{quality:i},...l&&{priority:l},isNotLazyload:A,setting:{aspectRatio:o,layout:r,qualityType:p,qualityPercent:n}}},getNextImageLiquidAttrs=e=>{let{srcset:t,setting:r,storage:s,baseSrc:a,priority:g,customAttrs:i,width:l=2237,height:A=1678,isNotLazyload:p,backupFileKey:n,backupFilePath:o,srcIsLiquidCode:E,enableLazyLoadImage:I,alt:c,title:_,src:u=helpers.NEXT_IMAGE_CONFIG.DEFAULT_SRC,sizes:h=helpers.NEXT_IMAGE_CONFIG.DEFAULT_SIZES}=e,L=!p&&I&&!g,N=()=>{let{qualityPercent:e,qualityType:g}=r??{},i=n?helpers.getNewBackupFileKey(n??"",u):"",l=E?a:helpers.getImageSrc({src:u,backupFileKey:i,backupFilePath:o,storage:s}),A=E?u:helpers.getSrcSet(i??"",s??"THEME",u),p={sizes:"100vw",src:helpers.IMAGE_PLACEHOLDER,...a?{"base-src":a}:{},...l?{"data-src":l}:{},...A?{"data-srcset":A}:{}},I={sizes:h,src:l||"",fetchpriority:"high",isNotLazyload:"true",srcset:t||""};return{"data-sizes":"auto","quality-type":helpers.safeStringify(g),"quality-percent":helpers.safeStringify(e),...L?p:I}},m=()=>({...c&&{alt:c},..._&&{title:_},width:l,height:A,draggable:"false"});return system.createAttr({...i,...m(),...N()})},getNextImageReactAttrs=e=>{let{width:t=helpers.NEXT_IMAGE_CONFIG.DEFAULT_WIDTH_PROPS,height:r=helpers.NEXT_IMAGE_CONFIG.DEFAULT_HEIGHT_PROPS,quality:s,priority:a,isNotLazyload:g,enableLazyLoadImage:i,base64:l=helpers.IMAGE_PLACEHOLDER,alt:A=helpers.NEXT_IMAGE_CONFIG.DEFAULT_ALT,src:p=helpers.NEXT_IMAGE_CONFIG.DEFAULT_SRC}=e,n=!g&&i&&!a,o=()=>{let e={loading:"lazy",placeholder:"blur",...l&&{blurDataURL:l}},t={loading:"eager",fetchpriority:"high"};return{...n?e:t}},E=()=>({src:p,alt:A,width:t,height:r,quality:s}),I=E(),c=system.createAttr(o());return{...I,...c}};exports.getAdaptiveImageAttrs=getAdaptiveImageAttrs,exports.getContainerAttrs=getContainerAttrs,exports.getImageLiquidAttrs=getImageLiquidAttrs,exports.getLinkWrapperAttrs=getLinkWrapperAttrs,exports.getNextImageAttrs=getNextImageAttrs,exports.getNextImageLiquidAttrs=getNextImageLiquidAttrs,exports.getNextImageReactAttrs=getNextImageReactAttrs;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var core=require("@gem-sdk/core");require("react/jsx-runtime"),require("react");var _const=require("../../common/const.js");const getCSSPosition=
|
|
1
|
+
"use strict";var core=require("@gem-sdk/core");require("react/jsx-runtime"),require("react");var _const=require("../../common/const.js");const getCSSPosition=t=>"top"==t?"sticky":"fixed",getDisplayStyle=(t,e,l)=>{let o={[`--top${t}`]:"auto",[`--${l+t}`]:"0",[`--pos${t}`]:getCSSPosition(l)};return"after-first-cart-button"===e&&(o[`--d${t}`]="none"),o},displayConditionStyle=(t,e)=>({...getDisplayStyle("",t?.desktop,e?.desktop),...getDisplayStyle("-tablet",t?.tablet??t?.desktop,e?.tablet??e?.desktop),...getDisplayStyle("-mobile",t?.mobile??t?.tablet??t?.desktop,e?.mobile??e?.tablet??e?.desktop)}),getCSSAlignByDevice=(t,e)=>({[`--left${e}`]:"top"==t?"0":"50%",[`--t${e}`]:"top"==t?"unset":"translateX(-50%)"}),getCSSAlign=t=>({...getCSSAlignByDevice(t?.desktop,""),...getCSSAlignByDevice(t?.tablet??t?.desktop,"-tablet"),...getCSSAlignByDevice(t?.mobile??t?.tablet??t?.desktop,"-mobile")}),getContainerStyles=t=>{let{position:e,display:l,width:o}=t;return{margin:"0 auto",...core.makeStyleResponsive("w",o),...getCSSAlign(e),...displayConditionStyle(l,e),"z-index":_const.ELEMENT_Z_INDEX.STICKY}},getContentStyles=t=>{let{style:e,background:l}=t;return{...core.makeStyle({m:"0 auto"}),...getStylePadding(e),...filterStyles(e),...core.getStyleBackgroundByDevice(l),...core.getGradientBgrStyleByDevice(l)}},getStylePadding=t=>{let e=["--pt","--pb","--pr","--pl","--pt-mobile","--pb-mobile","--pr-mobile","--pl-mobile","--pt-tablet","--pb-tablet","--pr-tablet","--pl-tablet"],l={};return e.forEach(e=>{t?.[e]&&(l[e]=t[e])}),l},filterStyles=t=>{let e={...t},l=["--pt","--pb","--pr","--pl","--pt-mobile","--pb-mobile","--pr-mobile","--pl-mobile","--pt-tablet","--pb-tablet","--pr-tablet","--pl-tablet"];return l.forEach(t=>{delete e?.[t]}),e};exports.displayConditionStyle=displayConditionStyle,exports.filterStyles=filterStyles,exports.getContainerStyles=getContainerStyles,exports.getContentStyles=getContentStyles,exports.getDisplayStyle=getDisplayStyle,exports.getStylePadding=getStylePadding;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var jsxRuntime=require("react/jsx-runtime"),core=require("@gem-sdk/core"),Head=require("next/head"),ChildrenDroppable=require("../../grid/components/ChildrenDroppable.js");require("react");var _const=require("../../common/const.js"),useSticky=require("../hooks/useSticky.js"),system=require("@gem-sdk/system"),styles=require("../common/styles.js"),classes=require("../common/classes.js");const Sticky=({children:e,builderAttrs:s,setting:r,style:t,builderProps:i,advanced:a})=>{let l=core.useEditorMode(),{background:n,preloadBgImage:c,width:m,isScrollToTop:d}=r??{},{positionStyle:u,displayStyle:o,makeDisplaySettingStyles:j,getCSSAlign:x}=useSticky.default(r),
|
|
2
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var jsxRuntime=require("react/jsx-runtime"),core=require("@gem-sdk/core"),Head=require("next/head"),ChildrenDroppable=require("../../grid/components/ChildrenDroppable.js");require("react");var _const=require("../../common/const.js"),useSticky=require("../hooks/useSticky.js"),system=require("@gem-sdk/system"),styles=require("../common/styles.js"),classes=require("../common/classes.js");const Sticky=({children:e,builderAttrs:s,setting:r,style:t,builderProps:i,advanced:a})=>{let l=core.useEditorMode(),{background:n,preloadBgImage:c,width:m,isScrollToTop:d}=r??{},{positionStyle:u,displayStyle:o,makeDisplaySettingStyles:j,getCSSAlign:x,w:y}=useSticky.default(r),g=system.createStyle({margin:"0 auto",...o,...x,...u,zIndex:_const.ELEMENT_Z_INDEX.STICKY,..."edit"!==l&&j}),p=system.createStyle(styles.getContentStyles({width:m,style:t,background:n})),h=system.createClass(classes.getContainerClasses({uid:i?.uid,isScrollToTop:d,cssClass:a?.cssClass,isLiquid:!1}));return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[!!c&&jsxRuntime.jsxs(Head,{children:[!!n?.desktop?.image?.src&&jsxRuntime.jsx("link",{rel:"preload",href:n.desktop.image.src,as:"image"}),!!n?.tablet?.image?.src&&jsxRuntime.jsx("link",{rel:"preload",href:n.tablet.image.src,as:"image"}),!!n?.mobile?.image?.src&&jsxRuntime.jsx("link",{rel:"preload",href:n.mobile.image.src,as:"image"})]}),jsxRuntime.jsx("div",{className:h,id:i?.uid,style:{...y,...g},children:jsxRuntime.jsx("div",{...s,"data-id":i?.uid,style:p,children:core.isEmptyChildren(e)?jsxRuntime.jsx(ChildrenDroppable.default,{}):e})})]})};exports.default=Sticky;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{HREF_TO_SALES_PAGE as t}from"../../constant.js";import{getAspectRatio as e,NEXT_IMAGE_CONFIG as r,getNewBackupFileKey as a,getImageSrc as s,getSrcSet as g,safeStringify as i,IMAGE_PLACEHOLDER as l}from"./helpers.js";import{createAttr as o}from"@gem-sdk/system";let getContainerAttrs=(t,e)=>({...t,...e&&{"data-id":e}}),getLinkWrapperAttrs=({urlData:e,imageLink:r,title:a,isLiquid:s=!1})=>{let g=s?{...e,...r?.noFollow&&{rel:"nofollow"},title:a}:{setting:e,title:a};return r?.type!=="go-to-sales-page"?r?.link?g:{}:s?{href:t,target:"_self"}:{setting:{href:t,target:"_self"}}},getImageLiquidAttrs=({pageContext:t,enableLazyLoadImage:e=!1})=>({...t&&{pageContext:t},...e&&{enableLazyLoadImage:e}}),getAdaptiveImageAttrs=({styles:t,setting:r})=>{let{alt:a,srcSet:s,priority:g}=r??{},i=e({styles:t,setting:r});return{pictureClass:"gp-contents",...a&&{alt:a},...s&&{srcSet:s},...g&&{priority:g},...t?.objectFit&&{layout:t.objectFit},aspectRatio:i}},getNextImageAttrs=({styles:t,setting:r})=>{let{objectFit:a}=t??{},{vw:s,alt:g,title:i,quality:l,priority:o,isNotLazyload:n,qualityType:A,qualityPercent:p}=r??{},u=e({styles:t,setting:r});return{...r?.image,...s&&{vw:s},...g&&{alt:g},...i&&{title:i},...l&&{quality:l},...o&&{priority:o},isNotLazyload:n,setting:{aspectRatio:u,layout:a,qualityType:A,qualityPercent:p}}},getNextImageLiquidAttrs=t=>{let{srcset:e,setting:n,storage:A,baseSrc:p,priority:u,customAttrs:m,width:c=2237,height:d=1678,isNotLazyload:L,backupFileKey:I,backupFilePath:y,srcIsLiquidCode:
|
|
1
|
+
import{HREF_TO_SALES_PAGE as t}from"../../constant.js";import{getAspectRatio as e,NEXT_IMAGE_CONFIG as r,getNewBackupFileKey as a,getImageSrc as s,getSrcSet as g,safeStringify as i,IMAGE_PLACEHOLDER as l}from"./helpers.js";import{createAttr as o}from"@gem-sdk/system";let getContainerAttrs=(t,e)=>({...t,...e&&{"data-id":e}}),getLinkWrapperAttrs=({urlData:e,imageLink:r,title:a,isLiquid:s=!1})=>{let g=s?{...e,...r?.noFollow&&{rel:"nofollow"},title:a}:{setting:e,title:a};return r?.type!=="go-to-sales-page"?r?.link?g:{}:s?{href:t,target:"_self"}:{setting:{href:t,target:"_self"}}},getImageLiquidAttrs=({pageContext:t,enableLazyLoadImage:e=!1})=>({...t&&{pageContext:t},...e&&{enableLazyLoadImage:e}}),getAdaptiveImageAttrs=({styles:t,setting:r})=>{let{alt:a,srcSet:s,priority:g}=r??{},i=e({styles:t,setting:r});return{pictureClass:"gp-contents",...a&&{alt:a},...s&&{srcSet:s},...g&&{priority:g},...t?.objectFit&&{layout:t.objectFit},aspectRatio:i}},getNextImageAttrs=({styles:t,setting:r})=>{let{objectFit:a}=t??{},{vw:s,alt:g,title:i,quality:l,priority:o,isNotLazyload:n,qualityType:A,qualityPercent:p}=r??{},u=e({styles:t,setting:r});return{...r?.image,...s&&{vw:s},...g&&{alt:g},...i&&{title:i},...l&&{quality:l},...o&&{priority:o},isNotLazyload:n,setting:{aspectRatio:u,layout:a,qualityType:A,qualityPercent:p}}},getNextImageLiquidAttrs=t=>{let{srcset:e,setting:n,storage:A,baseSrc:p,priority:u,customAttrs:m,width:c=2237,height:d=1678,isNotLazyload:L,backupFileKey:I,backupFilePath:y,srcIsLiquidCode:f,enableLazyLoadImage:h,alt:E,title:F,src:T=r.DEFAULT_SRC,sizes:_=r.DEFAULT_SIZES}=t,D=!L&&h&&!u,b=()=>{let{qualityPercent:t,qualityType:r}=n??{},o=I?a(I??"",T):"",u=f?p:s({src:T,backupFileKey:o,backupFilePath:y,storage:A}),m=f?T:g(o??"",A??"THEME",T),c={sizes:"100vw",src:l,...p?{"base-src":p}:{},...u?{"data-src":u}:{},...m?{"data-srcset":m}:{}},d={sizes:_,src:u||"",fetchpriority:"high",isNotLazyload:"true",srcset:e||""};return{"data-sizes":"auto","quality-type":i(r),"quality-percent":i(t),...D?c:d}},x=()=>({...E&&{alt:E},...F&&{title:F},width:c,height:d,draggable:"false"});return o({...m,...x(),...b()})},getNextImageReactAttrs=t=>{let{width:e=r.DEFAULT_WIDTH_PROPS,height:a=r.DEFAULT_HEIGHT_PROPS,quality:s,priority:g,isNotLazyload:i,enableLazyLoadImage:n,base64:A=l,alt:p=r.DEFAULT_ALT,src:u=r.DEFAULT_SRC}=t,m=!i&&n&&!g,c=()=>{let t={loading:"lazy",placeholder:"blur",...A&&{blurDataURL:A}},e={loading:"eager",fetchpriority:"high"};return{...m?t:e}},d=()=>({src:u,alt:p,width:e,height:a,quality:s}),L=d(),I=o(c());return{...L,...I}};export{getAdaptiveImageAttrs,getContainerAttrs,getImageLiquidAttrs,getLinkWrapperAttrs,getNextImageAttrs,getNextImageLiquidAttrs,getNextImageReactAttrs};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{makeStyleResponsive as t,makeStyle as e,getStyleBackgroundByDevice as l,getGradientBgrStyleByDevice as i}from"@gem-sdk/core";import"react/jsx-runtime";import"react";import{ELEMENT_Z_INDEX as o}from"../../common/const.js";let getCSSPosition=t=>"top"==t?"sticky":"fixed",getDisplayStyle=(t,e,l)=>{let i={[`--top${t}`]:"auto",[`--${l+t}`]:"0",[`--pos${t}`]:getCSSPosition(l)};return"after-first-cart-button"===e&&(i[`--d${t}`]="none"),i},displayConditionStyle=(t,e)=>({...getDisplayStyle("",t?.desktop,e?.desktop),...getDisplayStyle("-tablet",t?.tablet??t?.desktop,e?.tablet??e?.desktop),...getDisplayStyle("-mobile",t?.mobile??t?.tablet??t?.desktop,e?.mobile??e?.tablet??e?.desktop)}),getCSSAlignByDevice=(t,e)=>({[`--left${e}`]:"top"==t?"0":"50%",[`--t${e}`]:"top"==t?"unset":"translateX(-50%)"}),getCSSAlign=t=>({...getCSSAlignByDevice(t?.desktop,""),...getCSSAlignByDevice(t?.tablet??t?.desktop,"-tablet"),...getCSSAlignByDevice(t?.mobile??t?.tablet??t?.desktop,"-mobile")}),getContainerStyles=e=>{let{position:l,display:i,width:p}=e;return{margin:"0 auto",...t("w",p),...getCSSAlign(l),...displayConditionStyle(i,l),"z-index":o.STICKY}},getContentStyles=
|
|
1
|
+
import{makeStyleResponsive as t,makeStyle as e,getStyleBackgroundByDevice as l,getGradientBgrStyleByDevice as i}from"@gem-sdk/core";import"react/jsx-runtime";import"react";import{ELEMENT_Z_INDEX as o}from"../../common/const.js";let getCSSPosition=t=>"top"==t?"sticky":"fixed",getDisplayStyle=(t,e,l)=>{let i={[`--top${t}`]:"auto",[`--${l+t}`]:"0",[`--pos${t}`]:getCSSPosition(l)};return"after-first-cart-button"===e&&(i[`--d${t}`]="none"),i},displayConditionStyle=(t,e)=>({...getDisplayStyle("",t?.desktop,e?.desktop),...getDisplayStyle("-tablet",t?.tablet??t?.desktop,e?.tablet??e?.desktop),...getDisplayStyle("-mobile",t?.mobile??t?.tablet??t?.desktop,e?.mobile??e?.tablet??e?.desktop)}),getCSSAlignByDevice=(t,e)=>({[`--left${e}`]:"top"==t?"0":"50%",[`--t${e}`]:"top"==t?"unset":"translateX(-50%)"}),getCSSAlign=t=>({...getCSSAlignByDevice(t?.desktop,""),...getCSSAlignByDevice(t?.tablet??t?.desktop,"-tablet"),...getCSSAlignByDevice(t?.mobile??t?.tablet??t?.desktop,"-mobile")}),getContainerStyles=e=>{let{position:l,display:i,width:p}=e;return{margin:"0 auto",...t("w",p),...getCSSAlign(l),...displayConditionStyle(i,l),"z-index":o.STICKY}},getContentStyles=t=>{let{style:o,background:p}=t;return{...e({m:"0 auto"}),...getStylePadding(o),...filterStyles(o),...l(p),...i(p)}},getStylePadding=t=>{let e=["--pt","--pb","--pr","--pl","--pt-mobile","--pb-mobile","--pr-mobile","--pl-mobile","--pt-tablet","--pb-tablet","--pr-tablet","--pl-tablet"],l={};return e.forEach(e=>{t?.[e]&&(l[e]=t[e])}),l},filterStyles=t=>{let e={...t},l=["--pt","--pb","--pr","--pl","--pt-mobile","--pb-mobile","--pr-mobile","--pl-mobile","--pt-tablet","--pb-tablet","--pr-tablet","--pl-tablet"];return l.forEach(t=>{delete e?.[t]}),e};export{displayConditionStyle,filterStyles,getContainerStyles,getContentStyles,getDisplayStyle,getStylePadding};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import{jsxs as e,Fragment as r,jsx as i}from"react/jsx-runtime";import{useEditorMode as s,isEmptyChildren as m}from"@gem-sdk/core";import o from"next/head";import t from"../../grid/components/ChildrenDroppable.js";import"react";import{ELEMENT_Z_INDEX as a}from"../../common/const.js";import l from"../hooks/useSticky.js";import{createStyle as d,createClass as c}from"@gem-sdk/system";import{getContentStyles as n}from"../common/styles.js";import{getContainerClasses as p}from"../common/classes.js";let Sticky=({children:f,builderAttrs:g,setting:k,style:h,builderProps:u,advanced:y})=>{let j=s(),{background:b,preloadBgImage:x,width:C,isScrollToTop:S}=k??{},{positionStyle:v,displayStyle:I,makeDisplaySettingStyles:q,getCSSAlign:z}=l(k),
|
|
2
|
+
import{jsxs as e,Fragment as r,jsx as i}from"react/jsx-runtime";import{useEditorMode as s,isEmptyChildren as m}from"@gem-sdk/core";import o from"next/head";import t from"../../grid/components/ChildrenDroppable.js";import"react";import{ELEMENT_Z_INDEX as a}from"../../common/const.js";import l from"../hooks/useSticky.js";import{createStyle as d,createClass as c}from"@gem-sdk/system";import{getContentStyles as n}from"../common/styles.js";import{getContainerClasses as p}from"../common/classes.js";let Sticky=({children:f,builderAttrs:g,setting:k,style:h,builderProps:u,advanced:y})=>{let j=s(),{background:b,preloadBgImage:x,width:C,isScrollToTop:S}=k??{},{positionStyle:v,displayStyle:I,makeDisplaySettingStyles:q,getCSSAlign:z,w:D}=l(k),K=d({margin:"0 auto",...I,...z,...v,zIndex:a.STICKY,..."edit"!==j&&q}),L=d(n({width:C,style:h,background:b})),N=c(p({uid:u?.uid,isScrollToTop:S,cssClass:y?.cssClass,isLiquid:!1}));return e(r,{children:[!!x&&e(o,{children:[!!b?.desktop?.image?.src&&i("link",{rel:"preload",href:b.desktop.image.src,as:"image"}),!!b?.tablet?.image?.src&&i("link",{rel:"preload",href:b.tablet.image.src,as:"image"}),!!b?.mobile?.image?.src&&i("link",{rel:"preload",href:b.mobile.image.src,as:"image"})]}),i("div",{className:N,id:u?.uid,style:{...D,...K},children:i("div",{...g,"data-id":u?.uid,style:L,children:m(f)?i(t,{}):f})})]})};export{Sticky as default};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gem-sdk/components",
|
|
3
|
-
"version": "2.0.0-staging.
|
|
3
|
+
"version": "2.0.0-staging.863",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"pre:publish": "node ./scripts/convert-publish.js -p",
|
|
14
14
|
"post:publish": "node ./scripts/convert-publish.js",
|
|
15
15
|
"watch": "rollup -c ./scripts/rollup.config.mjs -w",
|
|
16
|
-
"build": "rollup -c ./scripts/rollup.config.mjs --environment NODE_ENV:production && tsup src/index.ts --dts-only --outDir dist/types
|
|
16
|
+
"build": "rollup -c ./scripts/rollup.config.mjs --environment NODE_ENV:production && tsup src/index.ts --dts-only --outDir dist/types",
|
|
17
17
|
"lint": "eslint ./src --ext .tsx,.ts",
|
|
18
18
|
"test": "jest -c ./../../helpers/jest.config.ts",
|
|
19
19
|
"test:watch": "jest -c ./../../helpers/jest.config.ts --watch",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"react-youtube": "^10.1.0"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"next": ">=
|
|
42
|
+
"next": ">=14"
|
|
43
43
|
},
|
|
44
44
|
"module": "dist/esm/index.js",
|
|
45
45
|
"types": "dist/types/index.d.ts",
|