@gem-sdk/components 2.0.0-staging.1008 → 2.0.0-staging.1009

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,4 +1,4 @@
1
- "use strict";const HeaderSettings=[{id:"setting",controls:[{id:"breakpoint",label:"Breakpoint",type:"select",hideOnMode:{mobileOnly:!0},options:[{label:"From desktop and smaller",subTitle:"Display menu icon for desktop, tablet and mobile",value:"desktop"},{label:"From tablet and smaller",subTitle:"Display menu icon for tablet and mobile",value:"tablet"},{label:"Only mobile",subTitle:"Display menu icon for only mobile",value:"mobile"}],default:"mobile"},{id:"itemEnableHoverEffect",type:"toggle",default:!0},{id:"enableDropdownHoverEffect",type:"toggle",default:!0},{id:"cardEnableHoverEffect",type:"toggle",default:!0},{id:"menu",label:"Menu",type:"menu",default:{ROOT:{id:"ROOT",title:"Root",childrens:["1","2","3"]},1:{id:"1",title:"Menu 1",link:"",childrens:["13","14"]},2:{id:"2",title:"Menu 2",link:"",childrens:["6","7","8"]},6:{id:"6",title:"Sub Menu 2.1",childrens:[]},7:{id:"7",title:"Sub Menu 2.2",childrens:["10","11"]},8:{id:"8",title:"Sub Menu 2.3",childrens:["12"]},9:{id:"9",title:"Sub Menu 2.4",childrens:[]},10:{id:"10",title:"Sub Menu 2.2.1",childrens:[]},11:{id:"11",title:"Sub Menu 2.2.2",childrens:[]},12:{id:"12",title:"Sub Menu 2.3.1",childrens:[]},3:{id:"3",title:"Menu 3",link:"",childrens:[]},13:{id:"13",title:"Sub Menu 1.1",link:"",childrens:[]},14:{id:"14",title:"Sub Menu 1.2",link:"",childrens:[]}}},{type:"group",label:"Logo",id:"logo-group",controls:[{id:"logo",label:"Logo",type:"image-select",devices:{desktop:{default:{src:"https://cdn.shopify.com/s/files/1/2005/9307/files/image_demo.jpg",width:800,height:533}}}},{id:"logoAspectRatio",type:"select",label:"Aspect Ratio",options:[{label:"Auto",value:"auto"},{label:"1:1",value:"1"},{label:"3:2",value:"3/2"},{label:"4:3",value:"4/3"},{label:"16:9",value:"16/9"},{label:"21:9",value:"21/9"},{label:"2:3",value:"2/3"},{label:"3:4",value:"3/4"},{label:"9:16",value:"9/16"},{label:"Custom",value:"custom"}],devices:{desktop:{default:"auto"}}},{id:"customAspectRadio",type:"ratio",min:1,devices:{desktop:{default:{width:"1",height:"1"}}},hide:!0},{id:"layout",type:"select",label:"Object Fit",options:[{label:"Fill",value:"fill"},{label:"Cover",value:"cover"},{label:"Contain",value:"contain"},{label:"None",value:"none"},{label:"Scale down",value:"scale-down"}],devices:{desktop:{default:"contain"}}},{id:"logoWidth",label:"Width",type:"input:unit",units:["px","%"],devices:{desktop:{default:"80px"}}}]},{id:"arrow",label:"Arrow Icon",type:"icon",default:`<svg data-name="chevron down" width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
1
+ "use strict";const HeaderSettings=[{id:"setting",controls:[{id:"breakpoint",label:"Breakpoint",type:"select",hideOnMode:{mobileOnly:!0},options:[{label:"From desktop and smaller",subTitle:"Display menu icon for desktop, tablet and mobile",value:"desktop"},{label:"From tablet and smaller",subTitle:"Display menu icon for tablet and mobile",value:"tablet"},{label:"Only mobile",subTitle:"Display menu icon for only mobile",value:"mobile"}],default:"mobile"},{id:"itemEnableHoverEffect",type:"toggle",default:!1},{id:"enableDropdownHoverEffect",type:"toggle",default:!1},{id:"cardEnableHoverEffect",type:"toggle",default:!1},{id:"menu",label:"Menu",type:"menu",default:{ROOT:{id:"ROOT",title:"Root",childrens:["1","2","3"]},1:{id:"1",title:"Menu 1",link:"",childrens:["13","14"]},2:{id:"2",title:"Menu 2",link:"",childrens:["6","7","8"]},6:{id:"6",title:"Sub Menu 2.1",childrens:[]},7:{id:"7",title:"Sub Menu 2.2",childrens:["10","11"]},8:{id:"8",title:"Sub Menu 2.3",childrens:["12"]},9:{id:"9",title:"Sub Menu 2.4",childrens:[]},10:{id:"10",title:"Sub Menu 2.2.1",childrens:[]},11:{id:"11",title:"Sub Menu 2.2.2",childrens:[]},12:{id:"12",title:"Sub Menu 2.3.1",childrens:[]},3:{id:"3",title:"Menu 3",link:"",childrens:[]},13:{id:"13",title:"Sub Menu 1.1",link:"",childrens:[]},14:{id:"14",title:"Sub Menu 1.2",link:"",childrens:[]}}},{type:"group",label:"Logo",id:"logo-group",controls:[{id:"logo",label:"Logo",type:"image-select",devices:{desktop:{default:{src:"https://cdn.shopify.com/s/files/1/2005/9307/files/image_demo.jpg",width:800,height:533}}}},{id:"logoAspectRatio",type:"select",label:"Aspect Ratio",options:[{label:"Auto",value:"auto"},{label:"1:1",value:"1"},{label:"3:2",value:"3/2"},{label:"4:3",value:"4/3"},{label:"16:9",value:"16/9"},{label:"21:9",value:"21/9"},{label:"2:3",value:"2/3"},{label:"3:4",value:"3/4"},{label:"9:16",value:"9/16"},{label:"Custom",value:"custom"}],devices:{desktop:{default:"auto"}}},{id:"customAspectRadio",type:"ratio",min:1,devices:{desktop:{default:{width:"1",height:"1"}}},hide:!0},{id:"layout",type:"select",label:"Object Fit",options:[{label:"Fill",value:"fill"},{label:"Cover",value:"cover"},{label:"Contain",value:"contain"},{label:"None",value:"none"},{label:"Scale down",value:"scale-down"}],devices:{desktop:{default:"contain"}}},{id:"logoWidth",label:"Width",type:"input:unit",units:["px","%"],devices:{desktop:{default:"80px"}}}]},{id:"arrow",label:"Arrow Icon",type:"icon",default:`<svg data-name="chevron down" width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
2
  <path fill-rule="evenodd" clip-rule="evenodd" d="M4.57576 6.77583C4.81007 6.54152 5.18997 6.54152 5.42429 6.77583L8.20002 9.55157L10.9758 6.77583C11.2101 6.54152 11.59 6.54152 11.8243 6.77583C12.0586 7.01015 12.0586 7.39005 11.8243 7.62436L8.62429 10.8244C8.38997 11.0587 8.01007 11.0587 7.77576 10.8244L4.57576 7.62436C4.34145 7.39005 4.34145 7.01015 4.57576 6.77583Z" fill="currentColor"/>
3
3
  </svg>
4
- `},{id:"cart-setting",type:"group",label:"Cart Setting",controls:[{id:"cartIcon",label:"Cart Icon",type:"icon",default:'<svg data-name="cart" width="16" height="16" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M3 3h2l.4 2M7 13h10l4-8H5.4M7 13L5.4 5M7 13l-2.293 2.293c-.63.63-.184 1.707.707 1.707H17m0 0a2 2 0 100 4 2 2 0 000-4zm-8 2a2 2 0 11-4 0 2 2 0 014 0z"></path></svg>'}]}]},{id:"style",controls:[{id:"height",label:"Height",type:"input:unit",units:["px"],devices:{desktop:{default:"60px"}}},{id:"typography",label:"Typography",type:"typography",default:{type:"paragraph-1"}},{id:"typo",label:"Text styles",type:"typography-v2",default:{type:"paragraph-1"},hiddenSetting:{textAlign:!0,textShadow:!0},ignoreReRender:!0},{id:"background-group",label:"Background",type:"group",controls:[{id:"headerBg",type:"color-picker-v2",label:"Header",devices:{desktop:{default:"#FFFFFF"}}},{id:"menuBg",type:"color-picker-v2",label:"Menu",info:"Dropdown and collapse menu background color",compoDefaultValue:{desktop:{default:"#FFFFFF"}},devices:{desktop:{default:"#FFFFFF"}}}]},{id:"color-state",type:"behavior-state",controls:[{id:"textColor",label:"Text Color",type:"color-picker-v2",state:{normal:!0,hover:!0},default:{normal:"text-1"},compoDefaultValue:{hover:"text-2"}},{id:"menuTextColor",label:"Menu Text Color",type:"color-picker-v2",state:{normal:!0,hover:!0},compoDefaultValue:{normal:"text-1",hover:"text-2"},default:{normal:"text-1"}},{id:"cartIconColor",type:"color-picker-v2",label:"Cart Icon Color",state:{normal:!0,hover:!0},default:{normal:"text-1"}}]}]}];exports.HeaderSettings=HeaderSettings;
4
+ `},{id:"cart-setting",type:"group",label:"Cart Setting",controls:[{id:"cartIcon",label:"Cart Icon",type:"icon",default:'<svg data-name="cart" width="16" height="16" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M3 3h2l.4 2M7 13h10l4-8H5.4M7 13L5.4 5M7 13l-2.293 2.293c-.63.63-.184 1.707.707 1.707H17m0 0a2 2 0 100 4 2 2 0 000-4zm-8 2a2 2 0 11-4 0 2 2 0 014 0z"></path></svg>'}]}]},{id:"style",controls:[{id:"height",label:"Height",type:"input:unit",units:["px"],devices:{desktop:{default:"60px"}}},{id:"typography",label:"Typography",type:"typography",default:{type:"paragraph-1"}},{id:"typo",label:"Text styles",type:"typography-v2",default:{type:"paragraph-1"},hiddenSetting:{textAlign:!0,textShadow:!0},ignoreReRender:!0},{id:"background-group",label:"Background",type:"group",controls:[{id:"headerBg",type:"color-picker-v2",label:"Header",devices:{desktop:{default:"#FFFFFF"}}},{id:"menuBg",type:"color-picker-v2",label:"Menu",info:"Dropdown and collapse menu background color",compoDefaultValue:{desktop:{default:"#FFFFFF"}},devices:{desktop:{default:"#FFFFFF"}}}]},{id:"color-state",type:"behavior-state",controls:[{id:"textColor",label:"Text Color",type:"color-picker-v2",state:{normal:!0,hover:!0},default:{normal:"text-1"},compoDefaultValue:{hover:"text-2"}},{id:"menuTextColor",label:"Menu Text Color",type:"color-picker-v2",state:{normal:!0,hover:!0},compoDefaultValue:{normal:"text-1",hover:"text-2"},default:{normal:"text-1"}},{id:"cartIconColor",type:"color-picker-v2",label:"Cart Icon Color",state:{normal:!0,hover:!0},default:{normal:"text-1"},compoDefaultValue:{hover:"text-2"}}]}]}];exports.HeaderSettings=HeaderSettings;
@@ -1,2 +1,2 @@
1
1
  'use client';
2
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var jsxRuntime=require("react/jsx-runtime"),Link=require("next/link");const CustomLink=({children:e,...t})=>jsxRuntime.jsx(Link,{title:t?.title,...t,children:e});exports.default=CustomLink;
2
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var jsxRuntime=require("react/jsx-runtime"),Link=require("next/link");const CustomLink=({children:e,...t})=>jsxRuntime.jsx(Link,{title:t?.title,"data-id":t?.dataId,...t,children:e});exports.default=CustomLink;
@@ -1,2 +1,2 @@
1
1
  'use client';
2
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var jsxRuntime=require("react/jsx-runtime"),React=require("react"),CustomLink=require("./CustomLink.js"),ProductLink=require("./ProductLink.js");const Link=({setting:e,className:t,style:r,children:u,title:i})=>{let o=React.useMemo(()=>e?.type==="product"?ProductLink.default:CustomLink.default,[e?.type]),l={};return o==CustomLink.default&&(l.title=i),jsxRuntime.jsx(o,{...l,target:e?.target,rel:e?.noFollow?"nofollow":void 0,"aria-label":e?.label,href:e?.href,className:t,style:r,children:u})};exports.default=Link;
2
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var jsxRuntime=require("react/jsx-runtime"),React=require("react"),CustomLink=require("./CustomLink.js"),ProductLink=require("./ProductLink.js");const Link=({setting:e,className:t,style:r,children:u,title:i,dataId:o})=>{let a=React.useMemo(()=>e?.type==="product"?ProductLink.default:CustomLink.default,[e?.type]),l={};return a==CustomLink.default&&(l.title=i,l.dataId=o),jsxRuntime.jsx(a,{...l,target:e?.target,rel:e?.noFollow?"nofollow":void 0,"aria-label":e?.label,href:e?.href,className:t,style:r,children:u})};exports.default=Link;
@@ -1 +1 @@
1
- "use strict";const DeclineButtonSettings=[{id:"setting",controls:[{id:"text",label:"Content",type:"select",options:[{value:"No thanks",label:"No thanks"},{value:"Decline offer",label:"Decline offer"}],default:"No thanks"},{id:"buttonType",type:"layout-selector",label:"Style",popoverLabel:{en:"Style"},iconViewBox:"0 0 80 48",enableItemBackground:!0,itemPerRow:2,itemSpacing:"large",default:"secondary",options:[{label:"Outline",value:"secondary",type:"post-purchase-button",iconName:"gp-secondary-button"},{label:"Text link",value:"link",type:"post-purchase-button",iconName:"gp-link-button"}]}]},{id:"style",controls:[{id:"width",type:"dropdown:input",label:"Width",inputType:"number",units:["px","%"],hideUnit:!1,devices:{desktop:{default:"100%"},tablet:{default:"100%"},mobile:{default:"100%"}},displayOptions:[{label:"Fit content",value:"Auto",showValue:!0},{label:"Full",value:"100%",showValue:!0},{label:"Default",value:"default",showValue:!0}]},{id:"typo",label:"Label",type:"typography-post-purchase",default:{fontSize:"medium",fontWeight:"bold",textTransform:"none"},hiddenSetting:["textColor","fontWeight"]},{id:"align",label:"Alignment",type:"option:value",options:[{label:"Left",value:"start",type:"align",tooltip:"Align left",iconName:"gp-align-left"},{label:"Center",value:"center",type:"align",tooltip:"Align center",iconName:"gp-align-center"},{label:"Right",value:"end",type:"align",tooltip:"Align right",iconName:"gp-align-right"}],default:"start"},{id:"direction",label:"Direction",type:"option:value",options:[{label:"LTR",value:"ltr"},{label:"RTL",value:"rtl"}],default:"ltr"}]}];exports.DeclineButtonSettings=DeclineButtonSettings;
1
+ "use strict";const DeclineButtonSettings=[{id:"setting",controls:[{id:"text",label:"Content",type:"select",options:[{value:"No thanks",label:"No thanks"},{value:"Decline offer",label:"Decline offer"}],default:"No thanks"},{id:"buttonType",type:"layout-selector",label:"Style",popoverLabel:{en:"Style"},iconViewBox:"0 0 80 48",enableItemBackground:!0,itemPerRow:2,itemSpacing:"large",default:"secondary",options:[{label:"Outline",value:"secondary",type:"post-purchase-button",iconName:"gp-secondary-button"},{label:"Text link",value:"link",type:"post-purchase-button",iconName:"gp-link-button"}]}]},{id:"style",controls:[{id:"width",type:"dropdown:input",label:"Width",inputType:"number",units:["px","%"],hideUnit:!1,devices:{desktop:{default:"100%"},tablet:{default:"100%"},mobile:{default:"100%"}},displayOptions:[{label:"Fit content",value:"Auto",showValue:!0},{label:"Full",value:"100%",showValue:!0}]},{id:"typo",label:"Label",type:"typography-post-purchase",default:{fontSize:"medium",fontWeight:"bold",textTransform:"none"},hiddenSetting:["textColor","fontWeight"]},{id:"align",label:"Alignment",type:"option:value",options:[{label:"Left",value:"start",type:"align",tooltip:"Align left",iconName:"gp-align-left"},{label:"Center",value:"center",type:"align",tooltip:"Align center",iconName:"gp-align-center"},{label:"Right",value:"end",type:"align",tooltip:"Align right",iconName:"gp-align-right"}],default:"start"},{id:"direction",label:"Direction",type:"option:value",options:[{label:"LTR",value:"ltr"},{label:"RTL",value:"rtl"}],default:"ltr"}]}];exports.DeclineButtonSettings=DeclineButtonSettings;
@@ -8,4 +8,4 @@
8
8
  <circle cx="37" cy="17" r="3" fill="#D6D6D6"/>
9
9
  <path d="M32.42 30.9518L37.1407 25.1338C37.3005 24.9364 37.498 24.7768 37.7203 24.6653C37.9427 24.5538 38.1848 24.4929 38.431 24.4866C38.6772 24.4803 38.9218 24.5287 39.149 24.6287C39.3762 24.7288 39.5809 24.8781 39.7496 25.0671L41.957 27.5361L50.5857 16.6629C50.7546 16.4499 50.967 16.2797 51.2069 16.165C51.4469 16.0503 51.7083 15.9941 51.9718 16.0005C52.2352 16.0069 52.4939 16.0758 52.7285 16.202C52.9632 16.3283 53.1679 16.5086 53.3273 16.7297L63.6435 31.0236C63.8408 31.2976 63.9615 31.6242 63.9922 31.9666C64.0229 32.3089 63.9623 32.6535 63.8173 32.9616C63.6723 33.2697 63.4485 33.529 63.1712 33.7105C62.8939 33.8919 62.5741 33.9883 62.2476 33.9887L33.7537 34C33.4185 33.9999 33.0904 33.8986 32.8082 33.7082C32.526 33.5177 32.3014 33.2461 32.1611 32.9255C32.0208 32.6048 31.9706 32.2485 32.0165 31.8988C32.0624 31.549 32.2024 31.2204 32.42 30.9518Z" fill="#D6D6D6"/>
10
10
  </svg>
11
- `},components:[{tag:"PostPurchaseImage",advanced:{blockPadding:"none",inlinePadding:"none"}}],rootOverride:{styles:{width:{desktop:"500px"}}}}]};exports.default=config;
11
+ `},components:[{tag:"PostPurchaseImage",advanced:{blockPadding:"none",inlinePadding:"none"}}],rootOverride:{styles:{width:{desktop:"500px"},align:"center"}}}]};exports.default=config;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const SettingUIV2=[{controls:[{setting:{id:"install"},layout:"vertical"}]},{controls:[{label:{en:"Fera Version"},setting:{id:"feraVersion"}}]},{conditionDisplay:"feraVersion == 'V2'",controls:[{label:{en:"Choose widget"},setting:{id:"widgetType"}}]},{conditionDisplay:"feraVersion == 'V3'",controls:[{label:{en:"Choose widget"},setting:{id:"widgetTypeV3"}}]},{conditionDisplay:"widgetType == 'allReviews' && feraVersion == 'V2'",controls:[{type:"combo",label:{en:"Container ID"},iconName:"polaris-text-block",getValueFromSettingID:"allReviewsCode",isHideClear:!0,popoverLabel:{en:"Container ID"},controls:[{label:{en:"Content"},options:{fullWidth:!0},layout:"vertical",setting:{id:"allReviewsCode"}}]}]},{conditionDisplay:"widgetType == 'productReviews' && feraVersion == 'V2'",controls:[{type:"combo",label:{en:"Container ID"},iconName:"polaris-text-block",getValueFromSettingID:"productReviewsCode",isHideClear:!0,popoverLabel:{en:"Container ID"},controls:[{label:{en:"Content"},options:{fullWidth:!0},layout:"vertical",setting:{id:"productReviewsCode"}}]}]},{conditionDisplay:"widgetType == 'testimonialCarousel' && feraVersion == 'V2'",controls:[{type:"combo",label:{en:"Container ID"},iconName:"polaris-text-block",getValueFromSettingID:"testimonialCarouselCode",isHideClear:!0,popoverLabel:{en:"Container ID"},controls:[{label:{en:"Content"},options:{fullWidth:!0},layout:"vertical",setting:{id:"testimonialCarouselCode"}}]}]},{conditionDisplay:"widgetType == 'averageStoreRatingBadge' && feraVersion == 'V2'",controls:[{type:"combo",label:{en:"Container ID"},iconName:"polaris-text-block",getValueFromSettingID:"averageStoreRatingBadgeCode",isHideClear:!0,popoverLabel:{en:"Container ID"},controls:[{label:{en:"Content"},options:{fullWidth:!0},layout:"vertical",setting:{id:"averageStoreRatingBadgeCode"}}]}]},{conditionDisplay:"widgetType == 'inStoreMedia' && feraVersion == 'V2'",controls:[{type:"combo",label:{en:"Container ID"},iconName:"polaris-text-block",getValueFromSettingID:"inStoreMediaCode",isHideClear:!0,popoverLabel:{en:"Container ID"},controls:[{label:{en:"Content"},options:{fullWidth:!0},layout:"vertical",setting:{id:"inStoreMediaCode"}}]}]},{conditionDisplay:"widgetType == 'averageRatingBadge' && feraVersion == 'V2'",controls:[{type:"combo",label:{en:"Container ID"},iconName:"polaris-text-block",getValueFromSettingID:"averageRatingBadgeCode",isHideClear:!0,popoverLabel:{en:"Container ID"},controls:[{label:{en:"Content"},options:{fullWidth:!0},layout:"vertical",setting:{id:"averageRatingBadgeCode"}}]}]},{conditionDisplay:"widgetType == 'productPageMedia' && feraVersion == 'V2'",controls:[{type:"combo",label:{en:"Container ID"},iconName:"polaris-text-block",getValueFromSettingID:"productPageMediaCode",isHideClear:!0,popoverLabel:{en:"Container ID"},controls:[{label:{en:"Content"},options:{fullWidth:!0},layout:"vertical",setting:{id:"productPageMediaCode"}}]}]},{conditionDisplay:"widgetTypeV3 == 'otherWidget' && feraVersion == 'V3'",controls:[{type:"combo",label:{en:"Container ID"},iconName:"polaris-text-block",getValueFromSettingID:"otherWidgetCode",isHideClear:!0,popoverLabel:{en:"Container ID"},controls:[{label:{en:"Content"},options:{fullWidth:!0},layout:"vertical",setting:{id:"otherWidgetCode"}}]}]},{controls:[{setting:{id:"openApp"},layout:"vertical"}]},{controls:[{label:{en:"Align"},setting:{id:"align"}}]}];exports.default=SettingUIV2;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const SettingUIV2=[{controls:[{layout:"vertical",setting:{id:"install"}}]},{controls:[{label:{en:"Fera Version"},setting:{id:"feraVersion"}}]},{conditionDisplay:"feraVersion == 'V2'",controls:[{label:{en:"Choose widget"},setting:{id:"widgetType"}}]},{conditionDisplay:"feraVersion == 'V3'",controls:[{label:{en:"Choose widget"},setting:{id:"widgetTypeV3"}}]},{conditionDisplay:"widgetType == 'allReviews' && feraVersion == 'V2'",controls:[{type:"combo",label:{en:"Container ID"},iconName:"polaris-text-block",getValueFromSettingID:"allReviewsCode",isHideClear:!0,popoverLabel:{en:"Container ID"},controls:[{label:{en:"Content"},options:{fullWidth:!0},layout:"vertical",setting:{id:"allReviewsCode"}}]}]},{conditionDisplay:"widgetType == 'productReviews' && feraVersion == 'V2'",controls:[{type:"combo",label:{en:"Container ID"},iconName:"polaris-text-block",getValueFromSettingID:"productReviewsCode",isHideClear:!0,popoverLabel:{en:"Container ID"},controls:[{label:{en:"Content"},options:{fullWidth:!0},layout:"vertical",setting:{id:"productReviewsCode"}}]}]},{conditionDisplay:"widgetType == 'testimonialCarousel' && feraVersion == 'V2'",controls:[{type:"combo",label:{en:"Container ID"},iconName:"polaris-text-block",getValueFromSettingID:"testimonialCarouselCode",isHideClear:!0,popoverLabel:{en:"Container ID"},controls:[{label:{en:"Content"},options:{fullWidth:!0},layout:"vertical",setting:{id:"testimonialCarouselCode"}}]}]},{conditionDisplay:"widgetType == 'averageStoreRatingBadge' && feraVersion == 'V2'",controls:[{type:"combo",label:{en:"Container ID"},iconName:"polaris-text-block",getValueFromSettingID:"averageStoreRatingBadgeCode",isHideClear:!0,popoverLabel:{en:"Container ID"},controls:[{label:{en:"Content"},options:{fullWidth:!0},layout:"vertical",setting:{id:"averageStoreRatingBadgeCode"}}]}]},{conditionDisplay:"widgetType == 'inStoreMedia' && feraVersion == 'V2'",controls:[{type:"combo",label:{en:"Container ID"},iconName:"polaris-text-block",getValueFromSettingID:"inStoreMediaCode",isHideClear:!0,popoverLabel:{en:"Container ID"},controls:[{label:{en:"Content"},options:{fullWidth:!0},layout:"vertical",setting:{id:"inStoreMediaCode"}}]}]},{conditionDisplay:"widgetType == 'averageRatingBadge' && feraVersion == 'V2'",controls:[{type:"combo",label:{en:"Container ID"},iconName:"polaris-text-block",getValueFromSettingID:"averageRatingBadgeCode",isHideClear:!0,popoverLabel:{en:"Container ID"},controls:[{label:{en:"Content"},options:{fullWidth:!0},layout:"vertical",setting:{id:"averageRatingBadgeCode"}}]}]},{conditionDisplay:"widgetType == 'productPageMedia' && feraVersion == 'V2'",controls:[{type:"combo",label:{en:"Container ID"},iconName:"polaris-text-block",getValueFromSettingID:"productPageMediaCode",isHideClear:!0,popoverLabel:{en:"Container ID"},controls:[{label:{en:"Content"},options:{fullWidth:!0},layout:"vertical",setting:{id:"productPageMediaCode"}}]}]},{conditionDisplay:"widgetTypeV3 == 'otherWidget' && feraVersion == 'V3'",controls:[{type:"combo",label:{en:"Container ID"},iconName:"polaris-text-block",getValueFromSettingID:"otherWidgetCode",isHideClear:!0,popoverLabel:{en:"Container ID"},controls:[{label:{en:"Content"},options:{fullWidth:!0},layout:"vertical",setting:{id:"otherWidgetCode"}}]}]},{controls:[{setting:{id:"openApp"},layout:"vertical"}]},{controls:[{label:{en:"Align"},setting:{id:"align"}}]}];exports.default=SettingUIV2;
@@ -3,4 +3,4 @@
3
3
  <img class="w-24 border border-dark-200 rounded-medium" src="${LaiProductReviews.default.logoUrl}?width=22&height=22">
4
4
  <span class="preset-item-title">${LaiProductReviews.default.label}</span>
5
5
  </div>
6
- `},components:[{tag:LaiProductReviews.default.tag}]}],settings:[{id:"setting",controls:[{id:"install",type:"open-link",target:"_blank",linkType:"install",href:"https://apps.shopify.com/lai-reviews?utm_source=gempages",appName:LaiProductReviews.default.label},{id:"openApp",type:"open-link",target:"_blank",linkType:"openApp",href:"https://admin.shopify.com/?redirect=/apps/smart-aliexpress-reviews",appName:LaiProductReviews.default.label},{id:"widgetType",label:"Choose widget",type:"select",default:"star_ratings",options:[{label:"Star Ratings",value:"star_ratings",hideOnPage:["GP_ARTICLE","GP_BLOG","GP_STATIC","GP_INDEX"],flowTag:["Product","ProductList"],condition:"or"},{label:"Product Review Sections",value:"reviews_widget",hideOnPage:["GP_ARTICLE","GP_BLOG","GP_STATIC","GP_INDEX"],flowTag:["Product","ProductList"],condition:"or"},{label:"Advanced Widget",value:"advanced_widget"},{label:"Hom Page Reviews",value:"homepage_reviews",hideOnPage:["GP_ARTICLE","GP_BLOG","GP_STATIC","GP_INDEX","GP_COLLECTION","GP_PRODUCT"]},{label:"Happy Customer Reviews",value:"happy_customer_reviews",hideOnPage:["GP_ARTICLE","GP_BLOG","GP_STATIC","GP_INDEX","GP_COLLECTION","GP_PRODUCT"]},{label:"Star Ratings in the List",value:"star_ratings_in_list",hideOnPage:["GP_ARTICLE","GP_BLOG","GP_STATIC","GP_INDEX","GP_COLLECTION","GP_PRODUCT"]}]},{id:"advancedWidgetType",label:"Choose widget",type:"select",default:"mediaGallery",options:[{label:"Media Gallery",value:"mediaGallery"},{label:"Testimonial Garousel",value:"testimonialCarousel"},{label:"Card Carousel",value:"cardCarousel"},{label:"Card Grid",value:"cardGrid"}]},{id:"align",label:"Alignment",type:"segment",options:[{label:"Left",value:"left",type:"align"},{label:"Center",value:"center",type:"align"},{label:"Right",value:"right",type:"align"}],devices:{desktop:{default:"left"}}}]}],ui:uiV1.default,uiV2:uiV2.default};exports.default=config;
6
+ `},components:[{tag:LaiProductReviews.default.tag}]}],settings:[{id:"setting",controls:[{id:"install",type:"open-link",target:"_blank",linkType:"install",href:"https://apps.shopify.com/lai-reviews?utm_source=gempages",appName:LaiProductReviews.default.label},{id:"openApp",type:"open-link",target:"_blank",linkType:"openApp",href:"https://admin.shopify.com/?redirect=/apps/smart-aliexpress-reviews",appName:LaiProductReviews.default.label},{id:"widgetType",label:"Choose widget",type:"select",default:"advanced_widget",options:[{label:"Star Ratings",value:"star_ratings",hideOnPage:["GP_ARTICLE","GP_BLOG","GP_STATIC","GP_INDEX"],flowTag:["Product","ProductList"],condition:"or"},{label:"Product Review Sections",value:"reviews_widget",hideOnPage:["GP_ARTICLE","GP_BLOG","GP_STATIC","GP_INDEX"],flowTag:["Product","ProductList"],condition:"or"},{label:"Advanced Widget",value:"advanced_widget"},{label:"Hom Page Reviews",value:"homepage_reviews",hideOnPage:["GP_ARTICLE","GP_BLOG","GP_STATIC","GP_INDEX","GP_COLLECTION","GP_PRODUCT"]},{label:"Happy Customer Reviews",value:"happy_customer_reviews",hideOnPage:["GP_ARTICLE","GP_BLOG","GP_STATIC","GP_INDEX","GP_COLLECTION","GP_PRODUCT"]},{label:"Star Ratings in the List",value:"star_ratings_in_list",hideOnPage:["GP_ARTICLE","GP_BLOG","GP_STATIC","GP_INDEX","GP_COLLECTION","GP_PRODUCT"]}]},{id:"advancedWidgetType",label:"Choose widget",type:"select",default:"mediaGallery",options:[{label:"Media Gallery",value:"mediaGallery"},{label:"Testimonial Garousel",value:"testimonialCarousel"},{label:"Card Carousel",value:"cardCarousel"},{label:"Card Grid",value:"cardGrid"}]},{id:"align",label:"Alignment",type:"segment",options:[{label:"Left",value:"left",type:"align"},{label:"Center",value:"center",type:"align"},{label:"Right",value:"right",type:"align"}],devices:{desktop:{default:"left"}}}]}],ui:uiV1.default,uiV2:uiV2.default};exports.default=config;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const SettingUIV2=[{controls:[{setting:{id:"install"},layout:"vertical"}]},{controls:[{label:{en:"Choose widget"},setting:{id:"widgetType"}}]},{conditionDisplay:"widgetType === 'advanced_widget'",controls:[{label:{en:"Widget Type"},setting:{id:"advancedWidgetType"}}]},{controls:[{setting:{id:"openApp"},layout:"vertical"}]},{controls:[{label:{en:"Align"},setting:{id:"align"}}]}];exports.default=SettingUIV2;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const SettingUIV2=[{controls:[{setting:{id:"install"},layout:"vertical"}]},{controls:[{label:{en:"Choose widget"},setting:{id:"widgetType"}}]},{controls:[{label:{en:"Widget Type"},setting:{id:"advancedWidgetType"},conditionDisplay:'widgetType === "advanced_widget"'}]},{controls:[{setting:{id:"openApp"},layout:"vertical"}]},{controls:[{label:{en:"Align"},setting:{id:"align"}}]}];exports.default=SettingUIV2;
@@ -1,4 +1,4 @@
1
- let HeaderSettings=[{id:"setting",controls:[{id:"breakpoint",label:"Breakpoint",type:"select",hideOnMode:{mobileOnly:!0},options:[{label:"From desktop and smaller",subTitle:"Display menu icon for desktop, tablet and mobile",value:"desktop"},{label:"From tablet and smaller",subTitle:"Display menu icon for tablet and mobile",value:"tablet"},{label:"Only mobile",subTitle:"Display menu icon for only mobile",value:"mobile"}],default:"mobile"},{id:"itemEnableHoverEffect",type:"toggle",default:!0},{id:"enableDropdownHoverEffect",type:"toggle",default:!0},{id:"cardEnableHoverEffect",type:"toggle",default:!0},{id:"menu",label:"Menu",type:"menu",default:{ROOT:{id:"ROOT",title:"Root",childrens:["1","2","3"]},1:{id:"1",title:"Menu 1",link:"",childrens:["13","14"]},2:{id:"2",title:"Menu 2",link:"",childrens:["6","7","8"]},6:{id:"6",title:"Sub Menu 2.1",childrens:[]},7:{id:"7",title:"Sub Menu 2.2",childrens:["10","11"]},8:{id:"8",title:"Sub Menu 2.3",childrens:["12"]},9:{id:"9",title:"Sub Menu 2.4",childrens:[]},10:{id:"10",title:"Sub Menu 2.2.1",childrens:[]},11:{id:"11",title:"Sub Menu 2.2.2",childrens:[]},12:{id:"12",title:"Sub Menu 2.3.1",childrens:[]},3:{id:"3",title:"Menu 3",link:"",childrens:[]},13:{id:"13",title:"Sub Menu 1.1",link:"",childrens:[]},14:{id:"14",title:"Sub Menu 1.2",link:"",childrens:[]}}},{type:"group",label:"Logo",id:"logo-group",controls:[{id:"logo",label:"Logo",type:"image-select",devices:{desktop:{default:{src:"https://cdn.shopify.com/s/files/1/2005/9307/files/image_demo.jpg",width:800,height:533}}}},{id:"logoAspectRatio",type:"select",label:"Aspect Ratio",options:[{label:"Auto",value:"auto"},{label:"1:1",value:"1"},{label:"3:2",value:"3/2"},{label:"4:3",value:"4/3"},{label:"16:9",value:"16/9"},{label:"21:9",value:"21/9"},{label:"2:3",value:"2/3"},{label:"3:4",value:"3/4"},{label:"9:16",value:"9/16"},{label:"Custom",value:"custom"}],devices:{desktop:{default:"auto"}}},{id:"customAspectRadio",type:"ratio",min:1,devices:{desktop:{default:{width:"1",height:"1"}}},hide:!0},{id:"layout",type:"select",label:"Object Fit",options:[{label:"Fill",value:"fill"},{label:"Cover",value:"cover"},{label:"Contain",value:"contain"},{label:"None",value:"none"},{label:"Scale down",value:"scale-down"}],devices:{desktop:{default:"contain"}}},{id:"logoWidth",label:"Width",type:"input:unit",units:["px","%"],devices:{desktop:{default:"80px"}}}]},{id:"arrow",label:"Arrow Icon",type:"icon",default:`<svg data-name="chevron down" width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
1
+ let HeaderSettings=[{id:"setting",controls:[{id:"breakpoint",label:"Breakpoint",type:"select",hideOnMode:{mobileOnly:!0},options:[{label:"From desktop and smaller",subTitle:"Display menu icon for desktop, tablet and mobile",value:"desktop"},{label:"From tablet and smaller",subTitle:"Display menu icon for tablet and mobile",value:"tablet"},{label:"Only mobile",subTitle:"Display menu icon for only mobile",value:"mobile"}],default:"mobile"},{id:"itemEnableHoverEffect",type:"toggle",default:!1},{id:"enableDropdownHoverEffect",type:"toggle",default:!1},{id:"cardEnableHoverEffect",type:"toggle",default:!1},{id:"menu",label:"Menu",type:"menu",default:{ROOT:{id:"ROOT",title:"Root",childrens:["1","2","3"]},1:{id:"1",title:"Menu 1",link:"",childrens:["13","14"]},2:{id:"2",title:"Menu 2",link:"",childrens:["6","7","8"]},6:{id:"6",title:"Sub Menu 2.1",childrens:[]},7:{id:"7",title:"Sub Menu 2.2",childrens:["10","11"]},8:{id:"8",title:"Sub Menu 2.3",childrens:["12"]},9:{id:"9",title:"Sub Menu 2.4",childrens:[]},10:{id:"10",title:"Sub Menu 2.2.1",childrens:[]},11:{id:"11",title:"Sub Menu 2.2.2",childrens:[]},12:{id:"12",title:"Sub Menu 2.3.1",childrens:[]},3:{id:"3",title:"Menu 3",link:"",childrens:[]},13:{id:"13",title:"Sub Menu 1.1",link:"",childrens:[]},14:{id:"14",title:"Sub Menu 1.2",link:"",childrens:[]}}},{type:"group",label:"Logo",id:"logo-group",controls:[{id:"logo",label:"Logo",type:"image-select",devices:{desktop:{default:{src:"https://cdn.shopify.com/s/files/1/2005/9307/files/image_demo.jpg",width:800,height:533}}}},{id:"logoAspectRatio",type:"select",label:"Aspect Ratio",options:[{label:"Auto",value:"auto"},{label:"1:1",value:"1"},{label:"3:2",value:"3/2"},{label:"4:3",value:"4/3"},{label:"16:9",value:"16/9"},{label:"21:9",value:"21/9"},{label:"2:3",value:"2/3"},{label:"3:4",value:"3/4"},{label:"9:16",value:"9/16"},{label:"Custom",value:"custom"}],devices:{desktop:{default:"auto"}}},{id:"customAspectRadio",type:"ratio",min:1,devices:{desktop:{default:{width:"1",height:"1"}}},hide:!0},{id:"layout",type:"select",label:"Object Fit",options:[{label:"Fill",value:"fill"},{label:"Cover",value:"cover"},{label:"Contain",value:"contain"},{label:"None",value:"none"},{label:"Scale down",value:"scale-down"}],devices:{desktop:{default:"contain"}}},{id:"logoWidth",label:"Width",type:"input:unit",units:["px","%"],devices:{desktop:{default:"80px"}}}]},{id:"arrow",label:"Arrow Icon",type:"icon",default:`<svg data-name="chevron down" width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
2
  <path fill-rule="evenodd" clip-rule="evenodd" d="M4.57576 6.77583C4.81007 6.54152 5.18997 6.54152 5.42429 6.77583L8.20002 9.55157L10.9758 6.77583C11.2101 6.54152 11.59 6.54152 11.8243 6.77583C12.0586 7.01015 12.0586 7.39005 11.8243 7.62436L8.62429 10.8244C8.38997 11.0587 8.01007 11.0587 7.77576 10.8244L4.57576 7.62436C4.34145 7.39005 4.34145 7.01015 4.57576 6.77583Z" fill="currentColor"/>
3
3
  </svg>
4
- `},{id:"cart-setting",type:"group",label:"Cart Setting",controls:[{id:"cartIcon",label:"Cart Icon",type:"icon",default:'<svg data-name="cart" width="16" height="16" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M3 3h2l.4 2M7 13h10l4-8H5.4M7 13L5.4 5M7 13l-2.293 2.293c-.63.63-.184 1.707.707 1.707H17m0 0a2 2 0 100 4 2 2 0 000-4zm-8 2a2 2 0 11-4 0 2 2 0 014 0z"></path></svg>'}]}]},{id:"style",controls:[{id:"height",label:"Height",type:"input:unit",units:["px"],devices:{desktop:{default:"60px"}}},{id:"typography",label:"Typography",type:"typography",default:{type:"paragraph-1"}},{id:"typo",label:"Text styles",type:"typography-v2",default:{type:"paragraph-1"},hiddenSetting:{textAlign:!0,textShadow:!0},ignoreReRender:!0},{id:"background-group",label:"Background",type:"group",controls:[{id:"headerBg",type:"color-picker-v2",label:"Header",devices:{desktop:{default:"#FFFFFF"}}},{id:"menuBg",type:"color-picker-v2",label:"Menu",info:"Dropdown and collapse menu background color",compoDefaultValue:{desktop:{default:"#FFFFFF"}},devices:{desktop:{default:"#FFFFFF"}}}]},{id:"color-state",type:"behavior-state",controls:[{id:"textColor",label:"Text Color",type:"color-picker-v2",state:{normal:!0,hover:!0},default:{normal:"text-1"},compoDefaultValue:{hover:"text-2"}},{id:"menuTextColor",label:"Menu Text Color",type:"color-picker-v2",state:{normal:!0,hover:!0},compoDefaultValue:{normal:"text-1",hover:"text-2"},default:{normal:"text-1"}},{id:"cartIconColor",type:"color-picker-v2",label:"Cart Icon Color",state:{normal:!0,hover:!0},default:{normal:"text-1"}}]}]}];export{HeaderSettings};
4
+ `},{id:"cart-setting",type:"group",label:"Cart Setting",controls:[{id:"cartIcon",label:"Cart Icon",type:"icon",default:'<svg data-name="cart" width="16" height="16" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M3 3h2l.4 2M7 13h10l4-8H5.4M7 13L5.4 5M7 13l-2.293 2.293c-.63.63-.184 1.707.707 1.707H17m0 0a2 2 0 100 4 2 2 0 000-4zm-8 2a2 2 0 11-4 0 2 2 0 014 0z"></path></svg>'}]}]},{id:"style",controls:[{id:"height",label:"Height",type:"input:unit",units:["px"],devices:{desktop:{default:"60px"}}},{id:"typography",label:"Typography",type:"typography",default:{type:"paragraph-1"}},{id:"typo",label:"Text styles",type:"typography-v2",default:{type:"paragraph-1"},hiddenSetting:{textAlign:!0,textShadow:!0},ignoreReRender:!0},{id:"background-group",label:"Background",type:"group",controls:[{id:"headerBg",type:"color-picker-v2",label:"Header",devices:{desktop:{default:"#FFFFFF"}}},{id:"menuBg",type:"color-picker-v2",label:"Menu",info:"Dropdown and collapse menu background color",compoDefaultValue:{desktop:{default:"#FFFFFF"}},devices:{desktop:{default:"#FFFFFF"}}}]},{id:"color-state",type:"behavior-state",controls:[{id:"textColor",label:"Text Color",type:"color-picker-v2",state:{normal:!0,hover:!0},default:{normal:"text-1"},compoDefaultValue:{hover:"text-2"}},{id:"menuTextColor",label:"Menu Text Color",type:"color-picker-v2",state:{normal:!0,hover:!0},compoDefaultValue:{normal:"text-1",hover:"text-2"},default:{normal:"text-1"}},{id:"cartIconColor",type:"color-picker-v2",label:"Cart Icon Color",state:{normal:!0,hover:!0},default:{normal:"text-1"},compoDefaultValue:{hover:"text-2"}}]}]}];export{HeaderSettings};
@@ -1,2 +1,2 @@
1
1
  'use client';
2
- import{jsx as t}from"react/jsx-runtime";import e from"next/link";let CustomLink=({children:i,...r})=>t(e,{title:r?.title,...r,children:i});export{CustomLink as default};
2
+ import{jsx as t}from"react/jsx-runtime";import i from"next/link";let CustomLink=({children:e,...r})=>t(i,{title:r?.title,"data-id":r?.dataId,...r,children:e});export{CustomLink as default};
@@ -1,2 +1,2 @@
1
1
  'use client';
2
- import{jsx as t}from"react/jsx-runtime";import{useMemo as r}from"react";import e from"./CustomLink.js";import o from"./ProductLink.js";let Link=({setting:l,className:i,style:a,children:m,title:n})=>{let f=r(()=>l?.type==="product"?o:e,[l?.type]),p={};return f==e&&(p.title=n),t(f,{...p,target:l?.target,rel:l?.noFollow?"nofollow":void 0,"aria-label":l?.label,href:l?.href,className:i,style:a,children:m})};export{Link as default};
2
+ import{jsx as t}from"react/jsx-runtime";import{useMemo as r}from"react";import e from"./CustomLink.js";import o from"./ProductLink.js";let Link=({setting:l,className:a,style:i,children:m,title:n,dataId:f})=>{let p=r(()=>l?.type==="product"?o:e,[l?.type]),s={};return p==e&&(s.title=n,s.dataId=f),t(p,{...s,target:l?.target,rel:l?.noFollow?"nofollow":void 0,"aria-label":l?.label,href:l?.href,className:a,style:i,children:m})};export{Link as default};
@@ -1 +1 @@
1
- let DeclineButtonSettings=[{id:"setting",controls:[{id:"text",label:"Content",type:"select",options:[{value:"No thanks",label:"No thanks"},{value:"Decline offer",label:"Decline offer"}],default:"No thanks"},{id:"buttonType",type:"layout-selector",label:"Style",popoverLabel:{en:"Style"},iconViewBox:"0 0 80 48",enableItemBackground:!0,itemPerRow:2,itemSpacing:"large",default:"secondary",options:[{label:"Outline",value:"secondary",type:"post-purchase-button",iconName:"gp-secondary-button"},{label:"Text link",value:"link",type:"post-purchase-button",iconName:"gp-link-button"}]}]},{id:"style",controls:[{id:"width",type:"dropdown:input",label:"Width",inputType:"number",units:["px","%"],hideUnit:!1,devices:{desktop:{default:"100%"},tablet:{default:"100%"},mobile:{default:"100%"}},displayOptions:[{label:"Fit content",value:"Auto",showValue:!0},{label:"Full",value:"100%",showValue:!0},{label:"Default",value:"default",showValue:!0}]},{id:"typo",label:"Label",type:"typography-post-purchase",default:{fontSize:"medium",fontWeight:"bold",textTransform:"none"},hiddenSetting:["textColor","fontWeight"]},{id:"align",label:"Alignment",type:"option:value",options:[{label:"Left",value:"start",type:"align",tooltip:"Align left",iconName:"gp-align-left"},{label:"Center",value:"center",type:"align",tooltip:"Align center",iconName:"gp-align-center"},{label:"Right",value:"end",type:"align",tooltip:"Align right",iconName:"gp-align-right"}],default:"start"},{id:"direction",label:"Direction",type:"option:value",options:[{label:"LTR",value:"ltr"},{label:"RTL",value:"rtl"}],default:"ltr"}]}];export{DeclineButtonSettings};
1
+ let DeclineButtonSettings=[{id:"setting",controls:[{id:"text",label:"Content",type:"select",options:[{value:"No thanks",label:"No thanks"},{value:"Decline offer",label:"Decline offer"}],default:"No thanks"},{id:"buttonType",type:"layout-selector",label:"Style",popoverLabel:{en:"Style"},iconViewBox:"0 0 80 48",enableItemBackground:!0,itemPerRow:2,itemSpacing:"large",default:"secondary",options:[{label:"Outline",value:"secondary",type:"post-purchase-button",iconName:"gp-secondary-button"},{label:"Text link",value:"link",type:"post-purchase-button",iconName:"gp-link-button"}]}]},{id:"style",controls:[{id:"width",type:"dropdown:input",label:"Width",inputType:"number",units:["px","%"],hideUnit:!1,devices:{desktop:{default:"100%"},tablet:{default:"100%"},mobile:{default:"100%"}},displayOptions:[{label:"Fit content",value:"Auto",showValue:!0},{label:"Full",value:"100%",showValue:!0}]},{id:"typo",label:"Label",type:"typography-post-purchase",default:{fontSize:"medium",fontWeight:"bold",textTransform:"none"},hiddenSetting:["textColor","fontWeight"]},{id:"align",label:"Alignment",type:"option:value",options:[{label:"Left",value:"start",type:"align",tooltip:"Align left",iconName:"gp-align-left"},{label:"Center",value:"center",type:"align",tooltip:"Align center",iconName:"gp-align-center"},{label:"Right",value:"end",type:"align",tooltip:"Align right",iconName:"gp-align-right"}],default:"start"},{id:"direction",label:"Direction",type:"option:value",options:[{label:"LTR",value:"ltr"},{label:"RTL",value:"rtl"}],default:"ltr"}]}];export{DeclineButtonSettings};
@@ -8,4 +8,4 @@ import{SettingUIV2 as e}from"./configs/ui-v2.js";import{ImagePostPurchaseSetting
8
8
  <circle cx="37" cy="17" r="3" fill="#D6D6D6"/>
9
9
  <path d="M32.42 30.9518L37.1407 25.1338C37.3005 24.9364 37.498 24.7768 37.7203 24.6653C37.9427 24.5538 38.1848 24.4929 38.431 24.4866C38.6772 24.4803 38.9218 24.5287 39.149 24.6287C39.3762 24.7288 39.5809 24.8781 39.7496 25.0671L41.957 27.5361L50.5857 16.6629C50.7546 16.4499 50.967 16.2797 51.2069 16.165C51.4469 16.0503 51.7083 15.9941 51.9718 16.0005C52.2352 16.0069 52.4939 16.0758 52.7285 16.202C52.9632 16.3283 53.1679 16.5086 53.3273 16.7297L63.6435 31.0236C63.8408 31.2976 63.9615 31.6242 63.9922 31.9666C64.0229 32.3089 63.9623 32.6535 63.8173 32.9616C63.6723 33.2697 63.4485 33.529 63.1712 33.7105C62.8939 33.8919 62.5741 33.9883 62.2476 33.9887L33.7537 34C33.4185 33.9999 33.0904 33.8986 32.8082 33.7082C32.526 33.5177 32.3014 33.2461 32.1611 32.9255C32.0208 32.6048 31.9706 32.2485 32.0165 31.8988C32.0624 31.549 32.2024 31.2204 32.42 30.9518Z" fill="#D6D6D6"/>
10
10
  </svg>
11
- `},components:[{tag:"PostPurchaseImage",advanced:{blockPadding:"none",inlinePadding:"none"}}],rootOverride:{styles:{width:{desktop:"500px"}}}}]};export{config as default};
11
+ `},components:[{tag:"PostPurchaseImage",advanced:{blockPadding:"none",inlinePadding:"none"}}],rootOverride:{styles:{width:{desktop:"500px"},align:"center"}}}]};export{config as default};
@@ -1 +1 @@
1
- let SettingUIV2=[{controls:[{setting:{id:"install"},layout:"vertical"}]},{controls:[{label:{en:"Fera Version"},setting:{id:"feraVersion"}}]},{conditionDisplay:"feraVersion == 'V2'",controls:[{label:{en:"Choose widget"},setting:{id:"widgetType"}}]},{conditionDisplay:"feraVersion == 'V3'",controls:[{label:{en:"Choose widget"},setting:{id:"widgetTypeV3"}}]},{conditionDisplay:"widgetType == 'allReviews' && feraVersion == 'V2'",controls:[{type:"combo",label:{en:"Container ID"},iconName:"polaris-text-block",getValueFromSettingID:"allReviewsCode",isHideClear:!0,popoverLabel:{en:"Container ID"},controls:[{label:{en:"Content"},options:{fullWidth:!0},layout:"vertical",setting:{id:"allReviewsCode"}}]}]},{conditionDisplay:"widgetType == 'productReviews' && feraVersion == 'V2'",controls:[{type:"combo",label:{en:"Container ID"},iconName:"polaris-text-block",getValueFromSettingID:"productReviewsCode",isHideClear:!0,popoverLabel:{en:"Container ID"},controls:[{label:{en:"Content"},options:{fullWidth:!0},layout:"vertical",setting:{id:"productReviewsCode"}}]}]},{conditionDisplay:"widgetType == 'testimonialCarousel' && feraVersion == 'V2'",controls:[{type:"combo",label:{en:"Container ID"},iconName:"polaris-text-block",getValueFromSettingID:"testimonialCarouselCode",isHideClear:!0,popoverLabel:{en:"Container ID"},controls:[{label:{en:"Content"},options:{fullWidth:!0},layout:"vertical",setting:{id:"testimonialCarouselCode"}}]}]},{conditionDisplay:"widgetType == 'averageStoreRatingBadge' && feraVersion == 'V2'",controls:[{type:"combo",label:{en:"Container ID"},iconName:"polaris-text-block",getValueFromSettingID:"averageStoreRatingBadgeCode",isHideClear:!0,popoverLabel:{en:"Container ID"},controls:[{label:{en:"Content"},options:{fullWidth:!0},layout:"vertical",setting:{id:"averageStoreRatingBadgeCode"}}]}]},{conditionDisplay:"widgetType == 'inStoreMedia' && feraVersion == 'V2'",controls:[{type:"combo",label:{en:"Container ID"},iconName:"polaris-text-block",getValueFromSettingID:"inStoreMediaCode",isHideClear:!0,popoverLabel:{en:"Container ID"},controls:[{label:{en:"Content"},options:{fullWidth:!0},layout:"vertical",setting:{id:"inStoreMediaCode"}}]}]},{conditionDisplay:"widgetType == 'averageRatingBadge' && feraVersion == 'V2'",controls:[{type:"combo",label:{en:"Container ID"},iconName:"polaris-text-block",getValueFromSettingID:"averageRatingBadgeCode",isHideClear:!0,popoverLabel:{en:"Container ID"},controls:[{label:{en:"Content"},options:{fullWidth:!0},layout:"vertical",setting:{id:"averageRatingBadgeCode"}}]}]},{conditionDisplay:"widgetType == 'productPageMedia' && feraVersion == 'V2'",controls:[{type:"combo",label:{en:"Container ID"},iconName:"polaris-text-block",getValueFromSettingID:"productPageMediaCode",isHideClear:!0,popoverLabel:{en:"Container ID"},controls:[{label:{en:"Content"},options:{fullWidth:!0},layout:"vertical",setting:{id:"productPageMediaCode"}}]}]},{conditionDisplay:"widgetTypeV3 == 'otherWidget' && feraVersion == 'V3'",controls:[{type:"combo",label:{en:"Container ID"},iconName:"polaris-text-block",getValueFromSettingID:"otherWidgetCode",isHideClear:!0,popoverLabel:{en:"Container ID"},controls:[{label:{en:"Content"},options:{fullWidth:!0},layout:"vertical",setting:{id:"otherWidgetCode"}}]}]},{controls:[{setting:{id:"openApp"},layout:"vertical"}]},{controls:[{label:{en:"Align"},setting:{id:"align"}}]}];export{SettingUIV2 as default};
1
+ let SettingUIV2=[{controls:[{layout:"vertical",setting:{id:"install"}}]},{controls:[{label:{en:"Fera Version"},setting:{id:"feraVersion"}}]},{conditionDisplay:"feraVersion == 'V2'",controls:[{label:{en:"Choose widget"},setting:{id:"widgetType"}}]},{conditionDisplay:"feraVersion == 'V3'",controls:[{label:{en:"Choose widget"},setting:{id:"widgetTypeV3"}}]},{conditionDisplay:"widgetType == 'allReviews' && feraVersion == 'V2'",controls:[{type:"combo",label:{en:"Container ID"},iconName:"polaris-text-block",getValueFromSettingID:"allReviewsCode",isHideClear:!0,popoverLabel:{en:"Container ID"},controls:[{label:{en:"Content"},options:{fullWidth:!0},layout:"vertical",setting:{id:"allReviewsCode"}}]}]},{conditionDisplay:"widgetType == 'productReviews' && feraVersion == 'V2'",controls:[{type:"combo",label:{en:"Container ID"},iconName:"polaris-text-block",getValueFromSettingID:"productReviewsCode",isHideClear:!0,popoverLabel:{en:"Container ID"},controls:[{label:{en:"Content"},options:{fullWidth:!0},layout:"vertical",setting:{id:"productReviewsCode"}}]}]},{conditionDisplay:"widgetType == 'testimonialCarousel' && feraVersion == 'V2'",controls:[{type:"combo",label:{en:"Container ID"},iconName:"polaris-text-block",getValueFromSettingID:"testimonialCarouselCode",isHideClear:!0,popoverLabel:{en:"Container ID"},controls:[{label:{en:"Content"},options:{fullWidth:!0},layout:"vertical",setting:{id:"testimonialCarouselCode"}}]}]},{conditionDisplay:"widgetType == 'averageStoreRatingBadge' && feraVersion == 'V2'",controls:[{type:"combo",label:{en:"Container ID"},iconName:"polaris-text-block",getValueFromSettingID:"averageStoreRatingBadgeCode",isHideClear:!0,popoverLabel:{en:"Container ID"},controls:[{label:{en:"Content"},options:{fullWidth:!0},layout:"vertical",setting:{id:"averageStoreRatingBadgeCode"}}]}]},{conditionDisplay:"widgetType == 'inStoreMedia' && feraVersion == 'V2'",controls:[{type:"combo",label:{en:"Container ID"},iconName:"polaris-text-block",getValueFromSettingID:"inStoreMediaCode",isHideClear:!0,popoverLabel:{en:"Container ID"},controls:[{label:{en:"Content"},options:{fullWidth:!0},layout:"vertical",setting:{id:"inStoreMediaCode"}}]}]},{conditionDisplay:"widgetType == 'averageRatingBadge' && feraVersion == 'V2'",controls:[{type:"combo",label:{en:"Container ID"},iconName:"polaris-text-block",getValueFromSettingID:"averageRatingBadgeCode",isHideClear:!0,popoverLabel:{en:"Container ID"},controls:[{label:{en:"Content"},options:{fullWidth:!0},layout:"vertical",setting:{id:"averageRatingBadgeCode"}}]}]},{conditionDisplay:"widgetType == 'productPageMedia' && feraVersion == 'V2'",controls:[{type:"combo",label:{en:"Container ID"},iconName:"polaris-text-block",getValueFromSettingID:"productPageMediaCode",isHideClear:!0,popoverLabel:{en:"Container ID"},controls:[{label:{en:"Content"},options:{fullWidth:!0},layout:"vertical",setting:{id:"productPageMediaCode"}}]}]},{conditionDisplay:"widgetTypeV3 == 'otherWidget' && feraVersion == 'V3'",controls:[{type:"combo",label:{en:"Container ID"},iconName:"polaris-text-block",getValueFromSettingID:"otherWidgetCode",isHideClear:!0,popoverLabel:{en:"Container ID"},controls:[{label:{en:"Content"},options:{fullWidth:!0},layout:"vertical",setting:{id:"otherWidgetCode"}}]}]},{controls:[{setting:{id:"openApp"},layout:"vertical"}]},{controls:[{label:{en:"Align"},setting:{id:"align"}}]}];export{SettingUIV2 as default};
@@ -3,4 +3,4 @@ import e from"../../configs/LaiProductReviews.js";import a from"./uiV1.js";impor
3
3
  <img class="w-24 border border-dark-200 rounded-medium" src="${e.logoUrl}?width=22&height=22">
4
4
  <span class="preset-item-title">${e.label}</span>
5
5
  </div>
6
- `},components:[{tag:e.tag}]}],settings:[{id:"setting",controls:[{id:"install",type:"open-link",target:"_blank",linkType:"install",href:"https://apps.shopify.com/lai-reviews?utm_source=gempages",appName:e.label},{id:"openApp",type:"open-link",target:"_blank",linkType:"openApp",href:"https://admin.shopify.com/?redirect=/apps/smart-aliexpress-reviews",appName:e.label},{id:"widgetType",label:"Choose widget",type:"select",default:"star_ratings",options:[{label:"Star Ratings",value:"star_ratings",hideOnPage:["GP_ARTICLE","GP_BLOG","GP_STATIC","GP_INDEX"],flowTag:["Product","ProductList"],condition:"or"},{label:"Product Review Sections",value:"reviews_widget",hideOnPage:["GP_ARTICLE","GP_BLOG","GP_STATIC","GP_INDEX"],flowTag:["Product","ProductList"],condition:"or"},{label:"Advanced Widget",value:"advanced_widget"},{label:"Hom Page Reviews",value:"homepage_reviews",hideOnPage:["GP_ARTICLE","GP_BLOG","GP_STATIC","GP_INDEX","GP_COLLECTION","GP_PRODUCT"]},{label:"Happy Customer Reviews",value:"happy_customer_reviews",hideOnPage:["GP_ARTICLE","GP_BLOG","GP_STATIC","GP_INDEX","GP_COLLECTION","GP_PRODUCT"]},{label:"Star Ratings in the List",value:"star_ratings_in_list",hideOnPage:["GP_ARTICLE","GP_BLOG","GP_STATIC","GP_INDEX","GP_COLLECTION","GP_PRODUCT"]}]},{id:"advancedWidgetType",label:"Choose widget",type:"select",default:"mediaGallery",options:[{label:"Media Gallery",value:"mediaGallery"},{label:"Testimonial Garousel",value:"testimonialCarousel"},{label:"Card Carousel",value:"cardCarousel"},{label:"Card Grid",value:"cardGrid"}]},{id:"align",label:"Alignment",type:"segment",options:[{label:"Left",value:"left",type:"align"},{label:"Center",value:"center",type:"align"},{label:"Right",value:"right",type:"align"}],devices:{desktop:{default:"left"}}}]}],ui:a,uiV2:l};export{config as default};
6
+ `},components:[{tag:e.tag}]}],settings:[{id:"setting",controls:[{id:"install",type:"open-link",target:"_blank",linkType:"install",href:"https://apps.shopify.com/lai-reviews?utm_source=gempages",appName:e.label},{id:"openApp",type:"open-link",target:"_blank",linkType:"openApp",href:"https://admin.shopify.com/?redirect=/apps/smart-aliexpress-reviews",appName:e.label},{id:"widgetType",label:"Choose widget",type:"select",default:"advanced_widget",options:[{label:"Star Ratings",value:"star_ratings",hideOnPage:["GP_ARTICLE","GP_BLOG","GP_STATIC","GP_INDEX"],flowTag:["Product","ProductList"],condition:"or"},{label:"Product Review Sections",value:"reviews_widget",hideOnPage:["GP_ARTICLE","GP_BLOG","GP_STATIC","GP_INDEX"],flowTag:["Product","ProductList"],condition:"or"},{label:"Advanced Widget",value:"advanced_widget"},{label:"Hom Page Reviews",value:"homepage_reviews",hideOnPage:["GP_ARTICLE","GP_BLOG","GP_STATIC","GP_INDEX","GP_COLLECTION","GP_PRODUCT"]},{label:"Happy Customer Reviews",value:"happy_customer_reviews",hideOnPage:["GP_ARTICLE","GP_BLOG","GP_STATIC","GP_INDEX","GP_COLLECTION","GP_PRODUCT"]},{label:"Star Ratings in the List",value:"star_ratings_in_list",hideOnPage:["GP_ARTICLE","GP_BLOG","GP_STATIC","GP_INDEX","GP_COLLECTION","GP_PRODUCT"]}]},{id:"advancedWidgetType",label:"Choose widget",type:"select",default:"mediaGallery",options:[{label:"Media Gallery",value:"mediaGallery"},{label:"Testimonial Garousel",value:"testimonialCarousel"},{label:"Card Carousel",value:"cardCarousel"},{label:"Card Grid",value:"cardGrid"}]},{id:"align",label:"Alignment",type:"segment",options:[{label:"Left",value:"left",type:"align"},{label:"Center",value:"center",type:"align"},{label:"Right",value:"right",type:"align"}],devices:{desktop:{default:"left"}}}]}],ui:a,uiV2:l};export{config as default};
@@ -1 +1 @@
1
- let SettingUIV2=[{controls:[{setting:{id:"install"},layout:"vertical"}]},{controls:[{label:{en:"Choose widget"},setting:{id:"widgetType"}}]},{conditionDisplay:"widgetType === 'advanced_widget'",controls:[{label:{en:"Widget Type"},setting:{id:"advancedWidgetType"}}]},{controls:[{setting:{id:"openApp"},layout:"vertical"}]},{controls:[{label:{en:"Align"},setting:{id:"align"}}]}];export{SettingUIV2 as default};
1
+ let SettingUIV2=[{controls:[{setting:{id:"install"},layout:"vertical"}]},{controls:[{label:{en:"Choose widget"},setting:{id:"widgetType"}}]},{controls:[{label:{en:"Widget Type"},setting:{id:"advancedWidgetType"},conditionDisplay:'widgetType === "advanced_widget"'}]},{controls:[{setting:{id:"openApp"},layout:"vertical"}]},{controls:[{label:{en:"Align"},setting:{id:"align"}}]}];export{SettingUIV2 as default};
@@ -2091,6 +2091,7 @@ type LinkProps = BaseProps<LinkSettingProps> & {
2091
2091
  style?: React.CSSProperties;
2092
2092
  children?: React.ReactNode;
2093
2093
  title?: string;
2094
+ dataId?: string;
2094
2095
  };
2095
2096
  type MixedNextProps = BaseProps<{
2096
2097
  type?: 'auto' | 'product' | 'collection' | 'custom';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "2.0.0-staging.1008",
3
+ "version": "2.0.0-staging.1009",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",