@gem-sdk/core 4.0.20 → 4.1.0
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/components/ComponentToolbarPreview.js +1 -1
- package/dist/cjs/components/ComponentWrapper.js +1 -1
- package/dist/cjs/components/ComponentWrapperPreview.js +1 -1
- package/dist/cjs/components/InteractionSuffix.js +1 -1
- package/dist/cjs/components/Render.js +1 -1
- package/dist/cjs/components/Render.liquid.js +9 -9
- package/dist/cjs/components/RenderCustomCode.js +1 -1
- package/dist/cjs/components/ai-generator/AIContentGenerator.js +1 -1
- package/dist/cjs/components/ai-generator/components/PickProduct.js +1 -1
- package/dist/cjs/components/animation/AnimationWrapper.js +1 -0
- package/dist/cjs/components/resize/Spacing.js +1 -1
- package/dist/cjs/components/theme-section/CreateThemeSection.js +1 -1
- package/dist/cjs/contexts/ProductContext.js +1 -1
- package/dist/cjs/helpers/create-store-front-fetcher.js +1 -0
- package/dist/cjs/helpers/interaction/index.js +1 -1
- package/dist/cjs/helpers/third-party/appConfig.js +1 -1
- package/dist/cjs/helpers/third-party/appSetting.js +1 -1
- package/dist/cjs/helpers/third-party/constant.js +1 -1
- package/dist/cjs/helpers/tracking/gtag.js +1 -1
- package/dist/cjs/helpers/verify-external-link.js +1 -0
- package/dist/cjs/hooks/animation/animations.js +2 -0
- package/dist/cjs/hooks/animation/useApplyAnimation.js +1 -1
- package/dist/cjs/hooks/animation/useLivePageAnimation.js +2 -0
- package/dist/cjs/hooks/articles/useArticlesQuery.js +1 -1
- package/dist/cjs/hooks/shop/use-collection-query.js +1 -1
- package/dist/cjs/hooks/shop/use-products-query.js +1 -1
- package/dist/cjs/hooks/useAnimations.js +1 -1
- package/dist/cjs/hooks/useInitialSwatchesOptions.js +1 -1
- package/dist/cjs/hooks/usePreviewSharePage.js +1 -0
- package/dist/cjs/hooks/useProduct.js +1 -1
- package/dist/cjs/hooks/useRenderMode.js +1 -0
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/types/builder.js +1 -0
- package/dist/esm/components/ComponentToolbarPreview.js +1 -1
- package/dist/esm/components/ComponentWrapper.js +1 -1
- package/dist/esm/components/ComponentWrapperPreview.js +1 -1
- package/dist/esm/components/InteractionSuffix.js +1 -1
- package/dist/esm/components/Render.js +1 -1
- package/dist/esm/components/Render.liquid.js +1 -1
- package/dist/esm/components/RenderCustomCode.js +2 -2
- package/dist/esm/components/ai-generator/AIContentGenerator.js +1 -1
- package/dist/esm/components/ai-generator/components/PickProduct.js +1 -1
- package/dist/esm/components/animation/AnimationWrapper.js +1 -0
- package/dist/esm/components/resize/Spacing.js +1 -1
- package/dist/esm/components/theme-section/CreateThemeSection.js +1 -1
- package/dist/esm/contexts/ProductContext.js +1 -1
- package/dist/esm/helpers/create-store-front-fetcher.js +1 -0
- package/dist/esm/helpers/interaction/index.js +1 -1
- package/dist/esm/helpers/third-party/appConfig.js +1 -1
- package/dist/esm/helpers/third-party/appSetting.js +1 -1
- package/dist/esm/helpers/third-party/constant.js +1 -1
- package/dist/esm/helpers/tracking/gtag.js +1 -1
- package/dist/esm/helpers/verify-external-link.js +1 -0
- package/dist/esm/hooks/animation/animations.js +2 -0
- package/dist/esm/hooks/animation/useApplyAnimation.js +1 -1
- package/dist/esm/hooks/animation/useLivePageAnimation.js +2 -0
- package/dist/esm/hooks/articles/useArticlesQuery.js +1 -1
- package/dist/esm/hooks/shop/use-collection-query.js +1 -1
- package/dist/esm/hooks/shop/use-products-query.js +1 -1
- package/dist/esm/hooks/useAnimations.js +1 -1
- package/dist/esm/hooks/useInitialSwatchesOptions.js +1 -1
- package/dist/esm/hooks/usePreviewSharePage.js +1 -0
- package/dist/esm/hooks/useProduct.js +1 -1
- package/dist/esm/hooks/useRenderMode.js +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/types/builder.js +1 -0
- package/dist/types/index.d.ts +35 -5
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
let RechargeSubscriptions={RechargeSubscriptions:{"subscription-widget":{product:"{{ product }}"},"subscription-widget-v2":{default_selection:"subscription",first_selection_option:"subscription",display_mode:"normal",brand_color:"#121212",brand_contrast_color:"#FFFFFF",selected_bg_color:"#FFFFFF",selected_text_color:"#121212",text_color:"#121212",border_radius:"soft",subscription_with_discount_label:"Subscribe & save",subscription_without_discount_label:"Subscribe",onetime_label:"One-time",frequency_label:"Deliver every:",frequency_display_type:"buttonGroup",frequency_display_content:"interval",badge_text:"Save up to {maxDiscount}",badge_text_color:"#FFFFFF",badge_bg_color:"#0F866A",benefits:"<ul><li>You save {discount}</li><li>Skip, delay or cancel any time</li><li>Free shipping in the US</li><li>Renew on your timeframe</li></ul>",onetime_drawbacks:"",learn_more_text:"Learn more",learn_more_content:'<style>rc-learn-more-modal h1 { font-size: 40px; line-height: 48px; font-weight: 600; text-align: center; padding-bottom: 32px; margin: 0;}rc-learn-more-modal h2 { padding: 0; margin: 0; font-size: 20px; line-height: 28px; font-weight: 600;}rc-learn-more-modal p { margin: 0; padding: 0; font-size: 16px; line-height: 24px;}rc-learn-more-modal .learn-more-content { padding: 0 20px 20px;}rc-learn-more-modal .learn-more-footer button { background-color: var(--rc-widget-brand-color); color: var(--rc-widget-brand-contrast-color); border: none; border-radius: var(--rc-widget-button-radius); padding: 12px; min-width: 335px; font-size: 16px; font-weight: 600; line-height: 24px; cursor: pointer; transition: background-color 0.1s ease;}rc-learn-more-modal .learn-more-footer button:hover { background-color: var(--rc-widget-brand-color-80);}rc-learn-more-modal .learn-more-footer { display: flex; justify-content: center;}rc-learn-more-modal .learn-more-group { display: flex; flex-direction: column; gap: 24px; margin-bottom: 24px;}rc-learn-more-modal .learn-more-group-item { display: flex; gap: 32px; align-items: center;}rc-learn-more-modal .learn-more-group-icon-container { display: flex; padding: 32px; background-color: #f6f8f9; border-radius: var(--rc-widget-card-radius);}rc-learn-more-modal svg, rc-learn-more-modal img { height: 40px; width: 40px;}@media (max-width: 560px) { rc-learn-more-modal h1 { font-size: 26px; line-height: 32px; padding-bottom: 16px; }rc-learn-more-modal h2 { font-size: 16px; line-height: 24px;}rc-learn-more-modal p { font-size: 14px; line-height: 20px;}rc-learn-more-modal .learn-more-content { padding: 0;}rc-learn-more-modal svg, rc-learn-more-modal img { height: 32px; width: 32px;}rc-learn-more-modal .learn-more-group-item { gap: 16px;}rc-learn-more-modal .learn-more-group-icon-container { padding: 20px;} }</style><div class="learn-more-content">\n<h1 class="learn-more-header">Great reasons to subscribe</h1> <div class="learn-more-group"> <div class="learn-more-group-item"> <div class="learn-more-group-icon-container"><span rc-calendar-icon></span></div> <div> <h2 style="margin:0;">Flexible frequency</h2> <p style="margin:0;"> Not sure how much of something you need, or how often? Adjust quantities and frequencies any time. </p> </div> </div> <div class="learn-more-group-item"> <div class="learn-more-group-icon-container"> <span rc-bell-icon></span> </div> <div> <h2>Order reminders</h2> <p> We\'ll let you know before each shipment. Delay, reschedule or cancel if you need to - we’ll only bill you when your order ships. </p> </div> </div> <div class="learn-more-group-item"> <div class="learn-more-group-icon-container"> <span rc-phone-icon></span> </div> <div> <h2>You\'re in control</h2> <p> Add or remove subscriptions, cancel orders, and edit frequencies and quantities through our user-friendly customer portal. </p> </div> </div> </div>\n</div><div class="learn-more-footer"><button data-dismiss-modal>Got it</button></div>',frequency_display_translations:'{\n "days": "{interval} days", \n "day": "{interval} day", \n "weeks": "{interval} weeks", \n "week": "{interval} week", \n "months": "{interval} months", \n "month": "{interval} month", \n "save": "Save {discount}"\n}'}}},LoyaltyRewardsReferrals={BonLoyaltyRewardsReferrals:{"loyalty-page-block":null,"loyalty-page-earning-block":null,"loyalty-page-header-block":null,"loyalty-page-profile-block":null,"loyalty-page-redeem-block":null,"loyalty-page-referral-block":null,"loyalty-page-tier-block":null,"product-point-preview":null}},SubifySubscriptions={SubifySubscriptionsApp:{"app-block":{product:"{{product}}",use_app_block_wording:!1,widget_label:"Purchase options",one_time_purchase_text:"One-Time Purchase",subscription_text:"Subscribe and save",delivery_frequency_text:"Delivery frequency",prepaid_subscription_text:"Subscription with prepaid",skin1_priceSuffix:"each",skin1_save:"Save(skin1)",skin1_prepaid_payment_title:"prepaid",skin1_normal_payment_title:"pay as you go",skin2_discountSuffix:"Save",skin3_fullPrice:"Full price",skin3_priceSuffix:"each",skin3_discountSuffix:"Off",skin4_justOnce:"Just once",skin4_discountSuffix:"Off",skin4_priceSuffix:"each",skin4_fullPrice:"(Full price)",skin4_sellingPlansTitle:"Renews every:",from:"from",max_discount_badge_title:"UP To",pay:"Pay",price_save_up_to:"save up to"}}},SelleasyWidget={Selleasy:{"lb-upsell-widget-bl":null,"lb-upsell-widget-pal":null}},LoopSubscriptions={LoopSubscriptions:{star_rating:{product:"{{product}}"}}},SkioSubscriptionsYcS20={SkioSubscriptionsYcS20:{"app-block":null}},ShopifyForms={ShopifyForms:{inline:{form_id:null}}},overrideSettings=(e,o,t)=>{switch(e){case"ShopifyForms":return{...o,form_id:t.formId};case"FlyBundlesUpsellsFbt":return{...o,bundle_id:t?.customBundleId};case"PumperBundlesVolumeDiscount":case"TrustshopProductReviews":return{...o,selected_product:t?.productHandle||"{{ product }}"};case"WhatmoreShoppableVideosreel":return{...o,"show-views":t?.showViews,heading:t?.heading,"template-type":t?.templateType,"title-font-size":parseFloat(t?.titleFontSize),"landscape-padding":parseFloat(t?.landscapePadding),"top-bottom-padding":parseFloat(t?.topBottomPadding),"scroll-video-tile-size":parseFloat(t?.scrollVideoTitleSize),"scroll-video-tile-size-portrait":parseFloat(t?.scrollVideoTitleSizePortrait)};case"KachingBundles":case"YotpoReviews":case"OkendoReviewsLoyalty":case"ShopifySubscriptions":case"QikifyUpsell":case"Releasit":case"SubifySubscriptionsApp":case"RechargeSubscriptions":case"KoalaBundleQuantityDiscount":return{...o,product:t?.productHandle||"{{ product }}"};case"PowerfulContactFormBuilder":return{...o,shortcode:t?.shortcode};case"AftershipEmailMarketingsms":return{...o,embedded_form_id:t?.formId};case"SeoantTrustBadgesIcon":return{...o,badge_id:t?.BadgeId};case"Stamped":return{...o,feed_type:t.visualGalleryType,auto_play:t.autoSlide,color_star:t.starColor,color_hover:t.hoverColor,color_hover_opacity:t.hoverOpacity,review_ids:t.reviewIds,product_ids:t.productIds,category:t.productType,product_brand:t.productVendor,tags:t.tags,min_rating:t.minimumRating,fill_empty:t.fillEmpty,random:t.random,with_photos:t.withPhotos,color_link:t.linkColor,product_image:t.showProductImage,take:t.limitResults,color_verified:t.verifiedColor,color_text:t.textColor,title:t.carouselTitle,color_title:t.titleColor,api_key:t.publicKey,store_hash:t.storeHash,label1:t.labelFront,label2:t.labelBack,width:t.imageWidth,height:t.imageHeight,product_id:t.productId,animation:t.mainWidgetAnimation,tags_exclude:t.excludeTags,tags_include:t.includeTags,search:t.search,linkify:t.linkify};case"BoostAISearchDiscovery":return{...o,widgetId:t?.widgetID};case"EssentialCountdownTimerBar":return{...o,id:t?.timerId};case"EssentialAnnouncementBar":return{...o,id:t?.announcementId};case"TrustedsiteTrustBadges":return{...o,"tm-type":t?.trustId};case"EcoboostifyShoppableReelUgc":return{...o,playlist_id:t?.playlistId};default:return o}},ReviewxpoProductReviewsApp={ReviewxpoProductReviewsApp:{"five-star-badge-widget":null,"allreviews-widget":null,"carousel-widget":null,"gallery-widget":null,"badge-widget":null,"testimonial-widget":null,"star-widget":null,"revews-widget":null}},PumperBundlesVolumeDiscount={PumperBundlesVolumeDiscount:{"app-block-qb":{selected_product:"{{ product }}",using_page_builder:!1}}},UnlimitedBundlesDiscounts={UnlimitedBundlesDiscounts:{"product-page-placeholder":null}},KiteFreeGiftDiscount={KiteFreeGiftDiscount:{"app-block":null}},FastBundleBundlesDiscounts={FastBundleBundlesDiscounts:{all_bundles:null,fbt_position:null,product_bundles:null,product_bundle_with_ids:null,volume_position:null}},SimpleBundlesKits={SimpleBundlesKits:{"infinite-options-selector":null}},EasyBundleBuilderSkailama={EasyBundleBuilderSkailama:{"app-block-bundlePage":null}},PreorderNowPreOrderPq={PreorderNowPreOrderPq:{"app-block-notifyapp-block-notify":null,"app-block-partial":null,"app-block-timer":null,"app-block":null}},FlyBundlesUpsellsFbt={FlyBundlesUpsellsFbt:{"app-block-volume":null,"app-block-upsell-block":null,"app-block-fbt":null,"app-block-custom":{bundle_id:""}}},JunipProductReviewsUgc={JunipProductReviewsUgc:{"junip-review-carousel":{reviewsType:"product_reviews",showSummary:!0,title:"Reviews",paddingTop:48,paddingBottom:48,containerClass:""},"junip-ugc-gallery":{layout:"scroll",title:"",paddingTop:48,paddingBottom:48,containerClass:""},"junip-product-review":{product:"{{product}}"},"junip-product-summary":{product:"{{product}}"},"junip-reviews":{layout:"list",reviewsType:"all",showSummary:!0,reviewsCount:10,containerClass:""}}},PreorderNowWodPresale={PreorderNowWodPresale:{"app-block":null,"popups-block":null}},YotpoReviews={YotpoReviews:{reviews:{product:"{{ product }}"},"star-rating":{product:"{{ product }}"}}},WhatmoreShoppableVideosreel={WhatmoreShoppableVideosreel:{"app-block":{heading:"Watch and Buy","template-type":"template-f","show-views":"show","ui-theme":"round","color-primary":"#343434","color-secondary":"#343434","title-font":"poppins_n4","primary-font":"poppins_n4","title-font-size":40,"title-font-size-portrait":24,"landscape-padding":40,"top-bottom-padding":20,"scroll-video-tile-size":80,"scroll-video-tile-size-portrait":80,"min-height":380},"app-block-banner":{"template-type":"template-banner-a","ui-theme":"round","banner-video-tile-size":80},"app-block-collections":{collectionHeading:"W","template-type":"template-collections-b","ui-theme":"round","color-secondary":"#343434","primary-font":"poppins_n4","tile-size":60,"tile-size-portrait":60,"min-height":250},"app-block-stories":{"template-type":"template-stories-a","ui-theme":"round","color-primary":"#343434","color-secondary":"#343434","primary-font":"poppins_n4","stories-top-bottom-padding":0,"story-tile-size":40,"story-tile-size-desktop":40}}},ProductOptionsCustomizer={ProductOptionsCustomizer:{"product-page-customizer":{pc_container_size:100,pc_show_options_total:"initial",pc_customizations_total_text:"Customizations Total:",pc_show_preloader:"hide",pc_preloader_color:"",pc_ignore_redirect_command:!0,pc_basic_label_text_color:"#000000",pc_basic_label_font_size:14,pc_basic_label_bolden:"unset",pc_basic_label_space_above:0,pc_basic_option_background_color:"#FFFFFF",pc_basic_option_text_color:"#000000",pc_basic_option_border_color:"#000000",pc_basic_option_border_style:"solid",pc_basic_option_border_width:1,pc_basic_option_curve_the_corners:"none",pc_basic_option_font_size:14,pc_basic_option_bolden:"none",pc_basic_option_width:100,pc_basic_option_space_above:0,pc_basic_option_space_below:0,pc_basic_option_space_inside:10,pc_advanced_custom_css:"",pc_advanced_custom_js:"",pc_show_image_swatch_preview:!1}}},AppointmentBookingCowlendar={AppointmentBookingCowlendar:{"app-section":{section_title:"Services list",section_type:"services-list"}}},BoldSubscriptions={BoldSubscriptions:{"bsub-widget-block":{default_subscribe:!0,primary_color:"#3b63ff",secondary_color:"#7dba63",background_color:"#f8f9f9",border_radius:4,header_text:"Purchase Options",one_time_text:"One-time Purchase",recurring_text:"Subscribe and Save",prepaid_recurring_text:"Prepaid Subscribe and Save",discount_summary_text:"(Save {discount})",discount_summary_plural_text:"(Save up to {discount})",frequency_header:"Delivery Frequency",frequency_text:"delivery",prepaid_checkbox_label_text:"Prepay for subscription",billing_frequency_header:"Billing Frequency",billing_frequency_text:"{count} Orders",delivery_frequency_discount_text:"({discount} off)",billing_frequency_discount_text:"({discount} off)",prepaid_total_text:"Billed {price} today",prepaid_continue_as_prepaid_text:"Prepaid order will auto-renew after {count} orders",prepaid_continue_as_standard_text:"Becomes a regular subscription after {count} orders",convertible_header:"Converts to",eligible_for_subscription_header:"Eligible for Subscription",initial_dynamic_discount_text:"Save {initial_percent_discount}% ({initial_fixed_discount})",subsequent_dynamic_discounts_text:"{subsequent_percent_discount}% ({subsequent_fixed_discount}) after {order_count} order(s)"}}},SproutPlantTreesGrowSales={SproutPlantTreesGrowSales:{badge:null,"impact-banner":null}},InstasellShoppableInstagram={InstasellShoppableInstagram:{"app-block":{heading:"InstaSell: Instagram Gallery+",description:"Showcase your Instagram Feed on your Shopify Storefront"}}},Growave={Growave:{"block.product.faveButton":{option_button_class:""},"block.product.reviewWidget":null,"block.product.reviewAvgProfile":null,"v2.product.reviewsMiniSlider":null}},LoloyalSettingCommon={title_font_size:30,subtitle_font_size:13,name_font_size:20,details_font_size:14,corner_radius:8,btn_radius:8,top_padding:32,bottom_padding:32,icon_color:"",title_color:"#000000",subtitle_color:"#000000",name_color:"#000000",details_color:"#000000",card_bg_color:"#FFFFFF",background_color:"#ffffff",border_color:"#ececec",primary_button_color:"#000000",primary_button_text_color:"#FFFFFF",secondary_button_color:"#FFFFFF",secondary_button_text_color:"#000000",hover_btn:"#000000",hover_text_color:"#FFFFFF",custom_css:"/* Add your custom styles here */"},LoloyalLoyaltyReferrals={LoloyalLoyaltyReferrals:{"app-banner":{img_opacity:0,bg_color:"#F6F6F6",banner_height:"400",content_position:"ll-middle-left",content_alignment:"left",title_font_size:40,subtitle_font_size:13,title_color:"#000000",subtitle_color:"#000000",btn_radius:30,primary_button_color:"#000000",primary_button_text_color:"#FFFFFF",secondary_button_color:"#FFFFFF",secondary_button_text_color:"#000000",hover_btn:"#000000",hover_text_color:"#FFFFFF",custom_css:"/* Add your custom styles here */"},"app-ways-to-earn":LoloyalSettingCommon,"app-ways-to-redeem":LoloyalSettingCommon,"app-referrals":LoloyalSettingCommon}},PowerfulContactFormBuilder={PowerfulContactFormBuilder:{"app-block":{shortcode:""}}},KachingBundles={KachingBundles:{"app-block":{product:"{{product}}"}}},WishlistKing={WishlistKing:{"wishlist-button-block":null}},GloboProductOptionsVariant={GloboProductOptionsVariant:{"app-block":null}},BestBuyFulfillment={BestBuyFulfillment:{"pickup-selector":null}},AftershipEmailMarketingsms={AftershipEmailMarketingsms:{embeded_form:{embedded_form_id:""}}},SegunoEmailMarketing={SegunoEmailMarketing:{back_in_stock:{heading:"<h3>Get notified when this is back in stock</h3>",label_email:"Email",placeholder_email:"",show_permission_checkbox:!0,label_permission:"<p>Also, sign up to receive newsletters</p>",label_notify:"Notify me",label_success:"<p>Thanks! You will be notified once the product is back in stock.</p>",product_exclusion_tag:"back-in-stock-excluded",default_variant:"available",padding:0,form_gap:16,button_alignment:"stretch",font_size:16,input_font_size:16,button_font_size:16,background_color:"#ffffff",text_color:"#121212",button_background_color:"#121212",button_border_color:"#121212",button_text_color:"#ffffff",input_background_color:"#ffffff",input_border_color:"#121212",input_text_color:"#121212",custom_css:""},newsletter_form:{heading:"Subscribe to our newsletter",subheading:"<p>Be the first to know about new collections and exclusive offers.</p>",show_first_name:!1,show_last_name:!1,show_permission_checkbox:!1,tags:"newsletter",return_to:"",label_first_name:"First name",placeholder_first_name:"",label_last_name:"Last name",placeholder_last_name:"",label_email:"Email",placeholder_email:"",label_permission:"<p>I agree to receive marketing emails</p>",label_subscribe:"Subscribe",success_message:"Thanks for subscribing",background_color:"#ffffff",text_color:"#1a1b18",button_background_color:"#445958",button_text_color:"#ffffff"}}},Trustoo={Trustoo:{"barrage-carousel":null,"review-widget":null,"photo-carousel":null,"star-rating-widget":{star_size:20,font_size:16,block_aligment:"flex-start"},"text-carousel":null,"card-carousel":null}},LooxReviews={LooxReviews:{"loox-card-carousel-section":{maxWidth:1100,borderRadius:8,itemsPerView:4,mobileItemsPerView:1,maxNumberOfCharacters:100,imageRatio:"0.72",reviewerNameColor:"#000000",textColor:"#000000",itemBackgroundColor:"#ffffff",starsColor:"",starsBackgroundColor:"#ffffff",arrows_backgroundColor:"#FFFFFF",arrows_iconColor:"#9A9A9A",shadow:"offset-dark",border_active:!1,border_width:2,border_color:"#000000",productIds:""},"loox-gallery-carousel-section":{maxWidth:1100,borderRadius:60,itemsPerView:5,mobileItemsPerView:1,imageRatio:"1",reviewerNameColor:"#ffffff",starsColor:"#ffffff",arrows_backgroundColor:"#FFFFFF",arrows_iconColor:"#9A9A9A",shadow:"none",border_active:!1,border_width:2,border_color:"#000000",productIds:""},"loox-referrals-section":{max_width:1100,layout:"with-photo",primary_color:"",text_color:"#000000",text_field_border_color:"#C9CDD4",background:""},"loox-dynamic-section":{only_photos:!1,aggregated:!1,limit:20,hide_thumbnails:!1,maxwidth:1080,is_sample:!0},"loox-snippets-widget":{alignment:"left","max-width":"","color-scheme":"default",shadow:"","show-rating":!0,"show-image":!0,"hide-arrows-mobile":!1,"font-size":14,"show-border":!1,"border-radius":16,"background-color":"","text-color":"","name-color":"","rating-icon-color":"","border-color":"","shadow-color":"","reviews-limit":10},"loox-rating":{contentSize:16,pattern:"",hideText:!1,alignment:"",layout:"",textColor:"",starColor:"",showAllReviews:!1,looxOpenFloatingWidget:!1,emptyRatingWidget:!1},"loox-testimonial-carousel-section":{maxWidth:1100,desktopFontSize:32,mobileFontSize:20,maxNumberOfCharacters:100,quoteMarkIcon:"style-1",reviewerNameColor:"#000000",textColor:"#000000",starsColor:"",quotesIconColor:"#EAEAEA",arrows_iconColor:"#000000",arrows_hideOnMobile:!0,pagination_active:!0,pagination_selectedDotColor:"#000000",pagination_dotColor:"#000000",autoplay_active:!1,autoplay_duration:2,productIds:""},"loox-trust-badge":{layout:"horizontal",alignment:"left","scheme-type":"default","review-title":"reviews","rating-icon":!0,"average-rating":!0,"loox-branding":!0,"review-count":!0,"open-reviews":!0,"show-border":!0,"border-radius":8,"font-size":20,"background-color":"","secondary-background-color":"","text-color":"","rating-icon-color":"","border-color":""},"loox-video-slider":{"show-by-tag":!1,layout:"spotlight",shadow:"","show-rating":!0,"show-reviewer-name":!0,"hide-arrows-mobile":!0,"auto-play":!0,"show-border":!1,"border-width":1,"border-radius":16,"text-color":"","rating-icon-color":"","border-color":"","play-button-color":"","shadow-color":"","product-id":""}}},SeoantTrustBadgesIcon={SeoantTrustBadgesIcon:{star_rating:{badge_id:null}}},TrustreviewsProductReviews={TrustreviewsProductReviews:{questions_widget:{product:"{{ product }}"},"review-carousel":null,reviews_text_widget:null,reviews_widget:{product:"{{ product }}"},shop_reviews_widget:null,star_rating:{product:"{{product}}",hide_on_no_reviews:!1,enable_jsonld:!1,starsize:16,addtional_text:""},"reviews-testimonials":null,all_reviews_widget:null,"review-cards":null,"review-gallery":null,medals:null}},MyappgurusProductReviews={MyappgurusProductReviews:{allReviews:{Show_by_label:""},allReviewsCounter:{out_of_label:"",stars_based_on_label:"",reviews_label:""},form:{block_heading:"",no_rating:"",subtitle2:"",review_btn:"",see_all_reviews_label:"",form_heading:"",name_label:"",email_label:"",review_title_label:"",review_description_label:"",ratings_label:"",delivery_ratings_label:"",payment_ratings_label:"",price_ratings_label:"",review_image_label:"",submit_btn_label:"",cancel_btn_label:"",sort_label:"",sort1_label:"",sort2_label:"",sort3_label:"",showing_label:"",to_label:"",of_label:"",results_label:""},star:null}},HulkProductOptions={HulkProductOptions:{option_block:null}},TrustshopProductReviews={TrustshopProductReviews:{"widget-product-rating":{selected_product:"{{ product }}"},"all-reviews":null,"widget-box":null,"review-testimonial":null}},Stamped={Stamped:{"main-widget":{animation:!0,tags_exclude:"",tags_include:"",search:"",linkify:!0,use_metafields:!1,sku_tagtype:"sku"},"product-rating-image":{api_key:"",store_hash:"",product_id:"",width:"",height:""},"badge-double-image":{api_key:"",store_hash:"",label1:"",label2:"",width:"",height:""},"badge-single-image":{api_key:"",store_hash:"",label1:"",label2:"",width:"",height:""},carousel:{title:"Real Reviews from Real Customers",auto_play:!1,take:30,color_title:"",color_star:"",color_text:"",color_link:"",review_ids:"",product_ids:"",category:"",product_brand:"",tags:"",min_rating:"none",fill_empty:!1,random:!1,with_photos:!1},"checkout-comments":{product_ids:"",style:"box",title:"",timeago:!1,style_color_text:"",style_color_link:""},"full-page":{product_image:!0,take:30,label_substitute:"",color_star:"",color_verified:"",color_text:"",color_link:"",review_ids:"",product_ids:"",category:"",product_brand:"",tags:"",min_rating:"none",fill_empty:!1,random:!1,with_photos:!1},"instagram-feed":{feed_type:"carousel",color_hover:"",hover_text:"",shop_button_text:"",auto_play:!1,review_ids:"",product_ids:"",category:"",product_brand:"",tags:"",min_rating:"none",fill_empty:!1,random:!1,with_photos:!1},"single-highlight":{review_ids:"",product_ids:"",category:"",product_brand:"",tags:""},"site-badge":{badge_type:"badge",color_outer:"",color_inner:"",color_ribbon:"",color_text:"",color_stars:"",title_size:12,title:"Verified Reviews"},"star-rating-badge":{use_metafields:!1,sku_tagtype:"sku",is_featured_product:!1,featured_product_handle:""},"top-rated":{color_star:"",color_link:""},"visual-gallery":{feed_type:"feed",auto_play:!1,color_star:"",color_hover:"",color_hover_opacity:50,review_ids:"",product_ids:"",category:"",product_brand:"",tags:"",min_rating:"none",fill_empty:!1,random:!1,with_photos:!1},"wall-photos":{feed_type:"feed",auto_play:!1,color_star:"",color_hover:"",color_hover_opacity:50,review_ids:"",product_ids:"",category:"",product_brand:"",tags:"",min_rating:"none",fill_empty:!1,random:!1,with_photos:!1}}},BoostAISearchDiscovery={BoostAISearchDiscovery:{"filter-product-list-ssr":null,"recommendation-ssr":{widgetId:"",additional_classes:"",custom_css:""}}},EssentialCountdownTimerBar={EssentialCountdownTimerBar:{"app-block":{id:""}}},EssentialAnnouncementBar={EssentialAnnouncementBar:{"app-block":{id:""}}},OkendoReviewsLoyalty={OkendoReviewsLoyalty:{"reviews-widget":{product:"{{product}}",widget_type:"reviews_widget"},"reviews-badge":{horizontal_alignment:"center"},"media-carousel":{product:"{{product}}"},"media-grid":{product:"{{product}}"},"reviews-carousel":{show_heading:!1,heading:"",badge_link:"",product:"{{product}}"},"star-rating":{product:"{{product}}"},"questions-widget":{product:"{{product}}"}}},EstimatedDeliveryDatePlus={EstimatedDeliveryDatePlus:{delivery_coder_theme:null}},HextomCountdownTimerBar={HextomCountdownTimerBar:{"fsb-custom-placement":null}},TrustBadgesBear={TrustBadgesBear:{widget:null}},TrustedsiteTrustBadges={TrustedsiteTrustBadges:{engagement:{"tm-type":"202","tm-size":"120"}}},GloColorSwatchvariantImage={GloColorSwatchvariantImage:{"product-bundles-quantity-breaks":null,"product-swatches-detail":null,"product-bundles-combo":null,"product-groups-detail":null}},BfSizeChartSizeGuide={BfSizeChartSizeGuide:{block:null}},HextomFreeShippingBar={HextomFreeShippingBar:{"fsb-custom-placement":null}},ShopifySubscriptions={ShopifySubscriptions:{"app-block":{color_text_title:"#6D7175",color_text_body:"#6D7175",dividers_color:"#8F8D8D",bacgkround_color:"#FFFFFF",border_thickness:1,border_radius:0,supporting_text_title:"Purchase options",subscription_policy_url:"",product:"{{product}}"}}},QikifyUpsell={QikifyUpsell:{bogo_offer:{product:"{{product}}"},free_gift:{product:"{{product}}"},bundle_offer:{product:"{{product}}"},promotion_badge:{product:"{{product}}"},"order-goal":null,upsurge_offer:{product:"{{product}}"},volume_offer:{product:"{{product}}"}}},EcoboostifyShoppableReelUgc={EcoboostifyShoppableReelUgc:{"reel-playlist":{playlist_id:""}}},Releasit={Releasit:{"button-app-block":{product:"{{product}}"},"form-app-block":{product:"{{product}}"}}},EcomsendBackInStockAlert={EcomsendBackInStockAlert:{"product-restore-email":null}},AppstleBundlesDiscounts={AppstleBundlesDiscounts:{"appstle-classic-bundle":null,"appstle-bundle-product-page-build-a-box":null}},AovFreeGiftBuyXGetYBogo={AovFreeGiftBuyXGetYBogo:{"avada-promotion-card":null,"avada-volume-discount":null}},ParcelPanelOrderTracking={ParcelPanel:{app:null,edd:null}},KoalaBundleDiscountConfig={KoalaBundleQuantityDiscount:{"deals-block":{product:"{{product}}"}}},composeSettingsByWidgetType={...KoalaBundleDiscountConfig,...ParcelPanelOrderTracking,...AovFreeGiftBuyXGetYBogo,...EcomsendBackInStockAlert,...AppstleBundlesDiscounts,...HextomCountdownTimerBar,...EstimatedDeliveryDatePlus,...OkendoReviewsLoyalty,...EssentialAnnouncementBar,...EssentialCountdownTimerBar,...BoostAISearchDiscovery,...Stamped,...TrustshopProductReviews,...HulkProductOptions,...MyappgurusProductReviews,...TrustreviewsProductReviews,...SeoantTrustBadgesIcon,...SegunoEmailMarketing,...AftershipEmailMarketingsms,...BestBuyFulfillment,...GloboProductOptionsVariant,...WishlistKing,...LoloyalLoyaltyReferrals,...PowerfulContactFormBuilder,...InstasellShoppableInstagram,...SproutPlantTreesGrowSales,...AppointmentBookingCowlendar,...ProductOptionsCustomizer,...WhatmoreShoppableVideosreel,...JunipProductReviewsUgc,...FlyBundlesUpsellsFbt,...PreorderNowWodPresale,...PreorderNowPreOrderPq,...EasyBundleBuilderSkailama,...FastBundleBundlesDiscounts,...KiteFreeGiftDiscount,...UnlimitedBundlesDiscounts,...SimpleBundlesKits,...PumperBundlesVolumeDiscount,...ReviewxpoProductReviewsApp,...ShopifyForms,...SkioSubscriptionsYcS20,...LoopSubscriptions,...RechargeSubscriptions,...LoyaltyRewardsReferrals,...SubifySubscriptions,...SelleasyWidget,...YotpoReviews,...BoldSubscriptions,...Growave,...KachingBundles,...Trustoo,...LooxReviews,...TrustBadgesBear,...TrustedsiteTrustBadges,...GloColorSwatchvariantImage,...BfSizeChartSizeGuide,...HextomFreeShippingBar,...ShopifySubscriptions,...QikifyUpsell,...EcoboostifyShoppableReelUgc,...Releasit};export{composeSettingsByWidgetType,overrideSettings};
|
|
1
|
+
let RechargeSubscriptions={RechargeSubscriptions:{"subscription-widget":{product:"{{ product }}"},"subscription-widget-v2":{default_selection:"subscription",first_selection_option:"subscription",display_mode:"normal",brand_color:"#121212",brand_contrast_color:"#FFFFFF",selected_bg_color:"#FFFFFF",selected_text_color:"#121212",text_color:"#121212",border_radius:"soft",subscription_with_discount_label:"Subscribe & save",subscription_without_discount_label:"Subscribe",onetime_label:"One-time",frequency_label:"Deliver every:",frequency_display_type:"buttonGroup",frequency_display_content:"interval",badge_text:"Save up to {maxDiscount}",badge_text_color:"#FFFFFF",badge_bg_color:"#0F866A",benefits:"<ul><li>You save {discount}</li><li>Skip, delay or cancel any time</li><li>Free shipping in the US</li><li>Renew on your timeframe</li></ul>",onetime_drawbacks:"",learn_more_text:"Learn more",learn_more_content:'<style>rc-learn-more-modal h1 { font-size: 40px; line-height: 48px; font-weight: 600; text-align: center; padding-bottom: 32px; margin: 0;}rc-learn-more-modal h2 { padding: 0; margin: 0; font-size: 20px; line-height: 28px; font-weight: 600;}rc-learn-more-modal p { margin: 0; padding: 0; font-size: 16px; line-height: 24px;}rc-learn-more-modal .learn-more-content { padding: 0 20px 20px;}rc-learn-more-modal .learn-more-footer button { background-color: var(--rc-widget-brand-color); color: var(--rc-widget-brand-contrast-color); border: none; border-radius: var(--rc-widget-button-radius); padding: 12px; min-width: 335px; font-size: 16px; font-weight: 600; line-height: 24px; cursor: pointer; transition: background-color 0.1s ease;}rc-learn-more-modal .learn-more-footer button:hover { background-color: var(--rc-widget-brand-color-80);}rc-learn-more-modal .learn-more-footer { display: flex; justify-content: center;}rc-learn-more-modal .learn-more-group { display: flex; flex-direction: column; gap: 24px; margin-bottom: 24px;}rc-learn-more-modal .learn-more-group-item { display: flex; gap: 32px; align-items: center;}rc-learn-more-modal .learn-more-group-icon-container { display: flex; padding: 32px; background-color: #f6f8f9; border-radius: var(--rc-widget-card-radius);}rc-learn-more-modal svg, rc-learn-more-modal img { height: 40px; width: 40px;}@media (max-width: 560px) { rc-learn-more-modal h1 { font-size: 26px; line-height: 32px; padding-bottom: 16px; }rc-learn-more-modal h2 { font-size: 16px; line-height: 24px;}rc-learn-more-modal p { font-size: 14px; line-height: 20px;}rc-learn-more-modal .learn-more-content { padding: 0;}rc-learn-more-modal svg, rc-learn-more-modal img { height: 32px; width: 32px;}rc-learn-more-modal .learn-more-group-item { gap: 16px;}rc-learn-more-modal .learn-more-group-icon-container { padding: 20px;} }</style><div class="learn-more-content">\n<h1 class="learn-more-header">Great reasons to subscribe</h1> <div class="learn-more-group"> <div class="learn-more-group-item"> <div class="learn-more-group-icon-container"><span rc-calendar-icon></span></div> <div> <h2 style="margin:0;">Flexible frequency</h2> <p style="margin:0;"> Not sure how much of something you need, or how often? Adjust quantities and frequencies any time. </p> </div> </div> <div class="learn-more-group-item"> <div class="learn-more-group-icon-container"> <span rc-bell-icon></span> </div> <div> <h2>Order reminders</h2> <p> We\'ll let you know before each shipment. Delay, reschedule or cancel if you need to - we’ll only bill you when your order ships. </p> </div> </div> <div class="learn-more-group-item"> <div class="learn-more-group-icon-container"> <span rc-phone-icon></span> </div> <div> <h2>You\'re in control</h2> <p> Add or remove subscriptions, cancel orders, and edit frequencies and quantities through our user-friendly customer portal. </p> </div> </div> </div>\n</div><div class="learn-more-footer"><button data-dismiss-modal>Got it</button></div>',frequency_display_translations:'{\n "days": "{interval} days", \n "day": "{interval} day", \n "weeks": "{interval} weeks", \n "week": "{interval} week", \n "months": "{interval} months", \n "month": "{interval} month", \n "save": "Save {discount}"\n}'}}},LoyaltyRewardsReferrals={BonLoyaltyRewardsReferrals:{"loyalty-page-block":null,"loyalty-page-earning-block":null,"loyalty-page-header-block":null,"loyalty-page-profile-block":null,"loyalty-page-redeem-block":null,"loyalty-page-referral-block":null,"loyalty-page-tier-block":null,"product-point-preview":null}},SubifySubscriptions={SubifySubscriptionsApp:{"app-block":{product:"{{product}}",use_app_block_wording:!1,widget_label:"Purchase options",one_time_purchase_text:"One-Time Purchase",subscription_text:"Subscribe and save",delivery_frequency_text:"Delivery frequency",prepaid_subscription_text:"Subscription with prepaid",skin1_priceSuffix:"each",skin1_save:"Save(skin1)",skin1_prepaid_payment_title:"prepaid",skin1_normal_payment_title:"pay as you go",skin2_discountSuffix:"Save",skin3_fullPrice:"Full price",skin3_priceSuffix:"each",skin3_discountSuffix:"Off",skin4_justOnce:"Just once",skin4_discountSuffix:"Off",skin4_priceSuffix:"each",skin4_fullPrice:"(Full price)",skin4_sellingPlansTitle:"Renews every:",from:"from",max_discount_badge_title:"UP To",pay:"Pay",price_save_up_to:"save up to"}}},SelleasyWidget={Selleasy:{"lb-upsell-widget-bl":null,"lb-upsell-widget-pal":null}},LoopSubscriptions={LoopSubscriptions:{star_rating:{product:"{{product}}"}}},SkioSubscriptionsYcS20={SkioSubscriptionsYcS20:{"app-block":{form_id:"product-form-{{section.id}}",start_onetime:"true",onetime_first:"true",default_subscription:"",group_border_radius:5,group_border_shadow:!0,group_border_selected_color:"#000",onetime_title:"One Time",subscription_title:"Subscribe",prepaid_title:"Prepaid",discount_format:"percent",discount_style:"bubble",discount_prefix:"Save",discount_suffix:"",discount_color:"#0fa573"}}},ShopifyForms={ShopifyForms:{inline:{form_id:null}}},overrideSettings=(e,o,t)=>{switch(e){case"ShopifyForms":return{...o,form_id:t.formId};case"FlyBundlesUpsellsFbt":return{...o,bundle_id:t?.customBundleId};case"PumperBundlesVolumeDiscount":case"TrustshopProductReviews":return{...o,selected_product:t?.productHandle||"{{ product }}"};case"WhatmoreShoppableVideosreel":return{...o,"show-views":t?.showViews,heading:t?.heading,"template-type":t?.templateType,"title-font-size":parseFloat(t?.titleFontSize),"landscape-padding":parseFloat(t?.landscapePadding),"top-bottom-padding":parseFloat(t?.topBottomPadding),"scroll-video-tile-size":parseFloat(t?.scrollVideoTitleSize),"scroll-video-tile-size-portrait":parseFloat(t?.scrollVideoTitleSizePortrait)};case"KachingBundles":case"YotpoReviews":case"OkendoReviewsLoyalty":case"ShopifySubscriptions":case"QikifyUpsell":case"Releasit":case"SubifySubscriptionsApp":case"RechargeSubscriptions":case"KoalaBundleQuantityDiscount":return{...o,product:t?.productHandle||"{{ product }}"};case"PowerfulContactFormBuilder":return{...o,shortcode:t?.shortcode};case"AftershipEmailMarketingsms":return{...o,embedded_form_id:t?.formId};case"SeoantTrustBadgesIcon":return{...o,badge_id:t?.BadgeId};case"Stamped":return{...o,feed_type:t.visualGalleryType,auto_play:t.autoSlide,color_star:t.starColor,color_hover:t.hoverColor,color_hover_opacity:t.hoverOpacity,review_ids:t.reviewIds,product_ids:t.productIds,category:t.productType,product_brand:t.productVendor,tags:t.tags,min_rating:t.minimumRating,fill_empty:t.fillEmpty,random:t.random,with_photos:t.withPhotos,color_link:t.linkColor,product_image:t.showProductImage,take:t.limitResults,color_verified:t.verifiedColor,color_text:t.textColor,title:t.carouselTitle,color_title:t.titleColor,api_key:t.publicKey,store_hash:t.storeHash,label1:t.labelFront,label2:t.labelBack,width:t.imageWidth,height:t.imageHeight,product_id:t.productId,animation:t.mainWidgetAnimation,tags_exclude:t.excludeTags,tags_include:t.includeTags,search:t.search,linkify:t.linkify};case"BoostAISearchDiscovery":return{...o,widgetId:t?.widgetID};case"EssentialCountdownTimerBar":return{...o,id:t?.timerId};case"EssentialAnnouncementBar":return{...o,id:t?.announcementId};case"TrustedsiteTrustBadges":return{...o,"tm-type":t?.trustId};case"EcoboostifyShoppableReelUgc":return{...o,playlist_id:t?.playlistId};default:return o}},ReviewxpoProductReviewsApp={ReviewxpoProductReviewsApp:{"five-star-badge-widget":null,"allreviews-widget":null,"carousel-widget":null,"gallery-widget":null,"badge-widget":null,"testimonial-widget":null,"star-widget":null,"revews-widget":null}},PumperBundlesVolumeDiscount={PumperBundlesVolumeDiscount:{"app-block-qb":{selected_product:"{{ product }}",using_page_builder:!1}}},UnlimitedBundlesDiscounts={UnlimitedBundlesDiscounts:{"product-page-placeholder":null}},KiteFreeGiftDiscount={KiteFreeGiftDiscount:{"app-block":null}},FastBundleBundlesDiscounts={FastBundleBundlesDiscounts:{all_bundles:null,fbt_position:null,product_bundles:null,product_bundle_with_ids:null,volume_position:null}},SimpleBundlesKits={SimpleBundlesKits:{"infinite-options-selector":null}},EasyBundleBuilderSkailama={EasyBundleBuilderSkailama:{"app-block-bundlePage":null}},PreorderNowPreOrderPq={PreorderNowPreOrderPq:{"app-block-notifyapp-block-notify":null,"app-block-partial":null,"app-block-timer":null,"app-block":null}},FlyBundlesUpsellsFbt={FlyBundlesUpsellsFbt:{"app-block-volume":null,"app-block-upsell-block":null,"app-block-fbt":null,"app-block-custom":{bundle_id:""}}},JunipProductReviewsUgc={JunipProductReviewsUgc:{"junip-review-carousel":{reviewsType:"product_reviews",showSummary:!0,title:"Reviews",paddingTop:48,paddingBottom:48,containerClass:""},"junip-ugc-gallery":{layout:"scroll",title:"",paddingTop:48,paddingBottom:48,containerClass:""},"junip-product-review":{product:"{{product}}"},"junip-product-summary":{product:"{{product}}"},"junip-reviews":{layout:"list",reviewsType:"all",showSummary:!0,reviewsCount:10,containerClass:""}}},PreorderNowWodPresale={PreorderNowWodPresale:{"app-block":null,"popups-block":null}},YotpoReviews={YotpoReviews:{reviews:{product:"{{ product }}"},"star-rating":{product:"{{ product }}"}}},WhatmoreShoppableVideosreel={WhatmoreShoppableVideosreel:{"app-block":{heading:"Watch and Buy","template-type":"template-f","show-views":"show","ui-theme":"round","color-primary":"#343434","color-secondary":"#343434","title-font":"poppins_n4","primary-font":"poppins_n4","title-font-size":40,"title-font-size-portrait":24,"landscape-padding":40,"top-bottom-padding":20,"scroll-video-tile-size":80,"scroll-video-tile-size-portrait":80,"min-height":380},"app-block-banner":{"template-type":"template-banner-a","ui-theme":"round","banner-video-tile-size":80},"app-block-collections":{collectionHeading:"W","template-type":"template-collections-b","ui-theme":"round","color-secondary":"#343434","primary-font":"poppins_n4","tile-size":60,"tile-size-portrait":60,"min-height":250},"app-block-stories":{"template-type":"template-stories-a","ui-theme":"round","color-primary":"#343434","color-secondary":"#343434","primary-font":"poppins_n4","stories-top-bottom-padding":0,"story-tile-size":40,"story-tile-size-desktop":40}}},ProductOptionsCustomizer={ProductOptionsCustomizer:{"product-page-customizer":{pc_container_size:100,pc_show_options_total:"initial",pc_customizations_total_text:"Customizations Total:",pc_show_preloader:"hide",pc_preloader_color:"",pc_ignore_redirect_command:!0,pc_basic_label_text_color:"#000000",pc_basic_label_font_size:14,pc_basic_label_bolden:"unset",pc_basic_label_space_above:0,pc_basic_option_background_color:"#FFFFFF",pc_basic_option_text_color:"#000000",pc_basic_option_border_color:"#000000",pc_basic_option_border_style:"solid",pc_basic_option_border_width:1,pc_basic_option_curve_the_corners:"none",pc_basic_option_font_size:14,pc_basic_option_bolden:"none",pc_basic_option_width:100,pc_basic_option_space_above:0,pc_basic_option_space_below:0,pc_basic_option_space_inside:10,pc_advanced_custom_css:"",pc_advanced_custom_js:"",pc_show_image_swatch_preview:!1}}},AppointmentBookingCowlendar={AppointmentBookingCowlendar:{"app-section":{section_title:"Services list",section_type:"services-list"}}},BoldSubscriptions={BoldSubscriptions:{"bsub-widget-block":{default_subscribe:!0,primary_color:"#3b63ff",secondary_color:"#7dba63",background_color:"#f8f9f9",border_radius:4,header_text:"Purchase Options",one_time_text:"One-time Purchase",recurring_text:"Subscribe and Save",prepaid_recurring_text:"Prepaid Subscribe and Save",discount_summary_text:"(Save {discount})",discount_summary_plural_text:"(Save up to {discount})",frequency_header:"Delivery Frequency",frequency_text:"delivery",prepaid_checkbox_label_text:"Prepay for subscription",billing_frequency_header:"Billing Frequency",billing_frequency_text:"{count} Orders",delivery_frequency_discount_text:"({discount} off)",billing_frequency_discount_text:"({discount} off)",prepaid_total_text:"Billed {price} today",prepaid_continue_as_prepaid_text:"Prepaid order will auto-renew after {count} orders",prepaid_continue_as_standard_text:"Becomes a regular subscription after {count} orders",convertible_header:"Converts to",eligible_for_subscription_header:"Eligible for Subscription",initial_dynamic_discount_text:"Save {initial_percent_discount}% ({initial_fixed_discount})",subsequent_dynamic_discounts_text:"{subsequent_percent_discount}% ({subsequent_fixed_discount}) after {order_count} order(s)"}}},SproutPlantTreesGrowSales={SproutPlantTreesGrowSales:{badge:null,"impact-banner":null}},InstasellShoppableInstagram={InstasellShoppableInstagram:{"app-block":{heading:"InstaSell: Instagram Gallery+",description:"Showcase your Instagram Feed on your Shopify Storefront"}}},Growave={Growave:{"block.product.faveButton":{option_button_class:""},"block.product.reviewWidget":null,"block.product.reviewAvgProfile":null,"v2.product.reviewsMiniSlider":null}},LoloyalSettingCommon={title_font_size:30,subtitle_font_size:13,name_font_size:20,details_font_size:14,corner_radius:8,btn_radius:8,top_padding:32,bottom_padding:32,icon_color:"",title_color:"#000000",subtitle_color:"#000000",name_color:"#000000",details_color:"#000000",card_bg_color:"#FFFFFF",background_color:"#ffffff",border_color:"#ececec",primary_button_color:"#000000",primary_button_text_color:"#FFFFFF",secondary_button_color:"#FFFFFF",secondary_button_text_color:"#000000",hover_btn:"#000000",hover_text_color:"#FFFFFF",custom_css:"/* Add your custom styles here */"},LoloyalLoyaltyReferrals={LoloyalLoyaltyReferrals:{"app-banner":{img_opacity:0,bg_color:"#F6F6F6",banner_height:"400",content_position:"ll-middle-left",content_alignment:"left",title_font_size:40,subtitle_font_size:13,title_color:"#000000",subtitle_color:"#000000",btn_radius:30,primary_button_color:"#000000",primary_button_text_color:"#FFFFFF",secondary_button_color:"#FFFFFF",secondary_button_text_color:"#000000",hover_btn:"#000000",hover_text_color:"#FFFFFF",custom_css:"/* Add your custom styles here */"},"app-ways-to-earn":LoloyalSettingCommon,"app-ways-to-redeem":LoloyalSettingCommon,"app-referrals":LoloyalSettingCommon}},PowerfulContactFormBuilder={PowerfulContactFormBuilder:{"app-block":{shortcode:""}}},KachingBundles={KachingBundles:{"app-block":{product:"{{product}}"}}},WishlistKing={WishlistKing:{"wishlist-button-block":null}},GloboProductOptionsVariant={GloboProductOptionsVariant:{"app-block":null}},BestBuyFulfillment={BestBuyFulfillment:{"pickup-selector":null}},AftershipEmailMarketingsms={AftershipEmailMarketingsms:{embeded_form:{embedded_form_id:""}}},SegunoEmailMarketing={SegunoEmailMarketing:{back_in_stock:{heading:"<h3>Get notified when this is back in stock</h3>",label_email:"Email",placeholder_email:"",show_permission_checkbox:!0,label_permission:"<p>Also, sign up to receive newsletters</p>",label_notify:"Notify me",label_success:"<p>Thanks! You will be notified once the product is back in stock.</p>",product_exclusion_tag:"back-in-stock-excluded",default_variant:"available",padding:0,form_gap:16,button_alignment:"stretch",font_size:16,input_font_size:16,button_font_size:16,background_color:"#ffffff",text_color:"#121212",button_background_color:"#121212",button_border_color:"#121212",button_text_color:"#ffffff",input_background_color:"#ffffff",input_border_color:"#121212",input_text_color:"#121212",custom_css:""},newsletter_form:{heading:"Subscribe to our newsletter",subheading:"<p>Be the first to know about new collections and exclusive offers.</p>",show_first_name:!1,show_last_name:!1,show_permission_checkbox:!1,tags:"newsletter",return_to:"",label_first_name:"First name",placeholder_first_name:"",label_last_name:"Last name",placeholder_last_name:"",label_email:"Email",placeholder_email:"",label_permission:"<p>I agree to receive marketing emails</p>",label_subscribe:"Subscribe",success_message:"Thanks for subscribing",background_color:"#ffffff",text_color:"#1a1b18",button_background_color:"#445958",button_text_color:"#ffffff"}}},Trustoo={Trustoo:{"barrage-carousel":null,"review-widget":null,"photo-carousel":null,"star-rating-widget":{star_size:20,font_size:16,block_aligment:"flex-start"},"text-carousel":null,"card-carousel":null}},LooxReviews={LooxReviews:{"loox-card-carousel-section":{maxWidth:1100,borderRadius:8,itemsPerView:4,mobileItemsPerView:1,maxNumberOfCharacters:100,imageRatio:"0.72",reviewerNameColor:"#000000",textColor:"#000000",itemBackgroundColor:"#ffffff",starsColor:"",starsBackgroundColor:"#ffffff",arrows_backgroundColor:"#FFFFFF",arrows_iconColor:"#9A9A9A",shadow:"offset-dark",border_active:!1,border_width:2,border_color:"#000000",productIds:""},"loox-gallery-carousel-section":{maxWidth:1100,borderRadius:60,itemsPerView:5,mobileItemsPerView:1,imageRatio:"1",reviewerNameColor:"#ffffff",starsColor:"#ffffff",arrows_backgroundColor:"#FFFFFF",arrows_iconColor:"#9A9A9A",shadow:"none",border_active:!1,border_width:2,border_color:"#000000",productIds:""},"loox-referrals-section":{max_width:1100,layout:"with-photo",primary_color:"",text_color:"#000000",text_field_border_color:"#C9CDD4",background:""},"loox-dynamic-section":{only_photos:!1,aggregated:!1,limit:20,hide_thumbnails:!1,maxwidth:1080,is_sample:!0},"loox-snippets-widget":{alignment:"left","max-width":"","color-scheme":"default",shadow:"","show-rating":!0,"show-image":!0,"hide-arrows-mobile":!1,"font-size":14,"show-border":!1,"border-radius":16,"background-color":"","text-color":"","name-color":"","rating-icon-color":"","border-color":"","shadow-color":"","reviews-limit":10},"loox-rating":{contentSize:16,pattern:"",hideText:!1,alignment:"",layout:"",textColor:"",starColor:"",showAllReviews:!1,looxOpenFloatingWidget:!1,emptyRatingWidget:!1},"loox-testimonial-carousel-section":{maxWidth:1100,desktopFontSize:32,mobileFontSize:20,maxNumberOfCharacters:100,quoteMarkIcon:"style-1",reviewerNameColor:"#000000",textColor:"#000000",starsColor:"",quotesIconColor:"#EAEAEA",arrows_iconColor:"#000000",arrows_hideOnMobile:!0,pagination_active:!0,pagination_selectedDotColor:"#000000",pagination_dotColor:"#000000",autoplay_active:!1,autoplay_duration:2,productIds:""},"loox-trust-badge":{layout:"horizontal",alignment:"left","scheme-type":"default","review-title":"reviews","rating-icon":!0,"average-rating":!0,"loox-branding":!0,"review-count":!0,"open-reviews":!0,"show-border":!0,"border-radius":8,"font-size":20,"background-color":"","secondary-background-color":"","text-color":"","rating-icon-color":"","border-color":""},"loox-video-slider":{"show-by-tag":!1,layout:"spotlight",shadow:"","show-rating":!0,"show-reviewer-name":!0,"hide-arrows-mobile":!0,"auto-play":!0,"show-border":!1,"border-width":1,"border-radius":16,"text-color":"","rating-icon-color":"","border-color":"","play-button-color":"","shadow-color":"","product-id":""}}},SeoantTrustBadgesIcon={SeoantTrustBadgesIcon:{star_rating:{badge_id:null}}},TrustreviewsProductReviews={TrustreviewsProductReviews:{questions_widget:{product:"{{ product }}"},"review-carousel":null,reviews_text_widget:null,reviews_widget:{product:"{{ product }}"},shop_reviews_widget:null,star_rating:{product:"{{product}}",hide_on_no_reviews:!1,enable_jsonld:!1,starsize:16,addtional_text:""},"reviews-testimonials":null,all_reviews_widget:null,"review-cards":null,"review-gallery":null,medals:null}},MyappgurusProductReviews={MyappgurusProductReviews:{allReviews:{Show_by_label:""},allReviewsCounter:{out_of_label:"",stars_based_on_label:"",reviews_label:""},form:{block_heading:"",no_rating:"",subtitle2:"",review_btn:"",see_all_reviews_label:"",form_heading:"",name_label:"",email_label:"",review_title_label:"",review_description_label:"",ratings_label:"",delivery_ratings_label:"",payment_ratings_label:"",price_ratings_label:"",review_image_label:"",submit_btn_label:"",cancel_btn_label:"",sort_label:"",sort1_label:"",sort2_label:"",sort3_label:"",showing_label:"",to_label:"",of_label:"",results_label:""},star:null}},HulkProductOptions={HulkProductOptions:{option_block:null}},TrustshopProductReviews={TrustshopProductReviews:{"widget-product-rating":{selected_product:"{{ product }}"},"all-reviews":null,"widget-box":null,"review-testimonial":null}},Stamped={Stamped:{"main-widget":{animation:!0,tags_exclude:"",tags_include:"",search:"",linkify:!0,use_metafields:!1,sku_tagtype:"sku"},"product-rating-image":{api_key:"",store_hash:"",product_id:"",width:"",height:""},"badge-double-image":{api_key:"",store_hash:"",label1:"",label2:"",width:"",height:""},"badge-single-image":{api_key:"",store_hash:"",label1:"",label2:"",width:"",height:""},carousel:{title:"Real Reviews from Real Customers",auto_play:!1,take:30,color_title:"",color_star:"",color_text:"",color_link:"",review_ids:"",product_ids:"",category:"",product_brand:"",tags:"",min_rating:"none",fill_empty:!1,random:!1,with_photos:!1},"checkout-comments":{product_ids:"",style:"box",title:"",timeago:!1,style_color_text:"",style_color_link:""},"full-page":{product_image:!0,take:30,label_substitute:"",color_star:"",color_verified:"",color_text:"",color_link:"",review_ids:"",product_ids:"",category:"",product_brand:"",tags:"",min_rating:"none",fill_empty:!1,random:!1,with_photos:!1},"instagram-feed":{feed_type:"carousel",color_hover:"",hover_text:"",shop_button_text:"",auto_play:!1,review_ids:"",product_ids:"",category:"",product_brand:"",tags:"",min_rating:"none",fill_empty:!1,random:!1,with_photos:!1},"single-highlight":{review_ids:"",product_ids:"",category:"",product_brand:"",tags:""},"site-badge":{badge_type:"badge",color_outer:"",color_inner:"",color_ribbon:"",color_text:"",color_stars:"",title_size:12,title:"Verified Reviews"},"star-rating-badge":{use_metafields:!1,sku_tagtype:"sku",is_featured_product:!1,featured_product_handle:""},"top-rated":{color_star:"",color_link:""},"visual-gallery":{feed_type:"feed",auto_play:!1,color_star:"",color_hover:"",color_hover_opacity:50,review_ids:"",product_ids:"",category:"",product_brand:"",tags:"",min_rating:"none",fill_empty:!1,random:!1,with_photos:!1},"wall-photos":{feed_type:"feed",auto_play:!1,color_star:"",color_hover:"",color_hover_opacity:50,review_ids:"",product_ids:"",category:"",product_brand:"",tags:"",min_rating:"none",fill_empty:!1,random:!1,with_photos:!1}}},BoostAISearchDiscovery={BoostAISearchDiscovery:{"filter-product-list-ssr":null,"recommendation-ssr":{widgetId:"",additional_classes:"",custom_css:""}}},EssentialCountdownTimerBar={EssentialCountdownTimerBar:{"app-block":{id:""}}},EssentialAnnouncementBar={EssentialAnnouncementBar:{"app-block":{id:""}}},OkendoReviewsLoyalty={OkendoReviewsLoyalty:{"reviews-widget":{product:"{{product}}",widget_type:"reviews_widget"},"reviews-badge":{horizontal_alignment:"center"},"media-carousel":{product:"{{product}}"},"media-grid":{product:"{{product}}"},"reviews-carousel":{show_heading:!1,heading:"",badge_link:"",product:"{{product}}"},"star-rating":{product:"{{product}}"},"questions-widget":{product:"{{product}}"}}},EstimatedDeliveryDatePlus={EstimatedDeliveryDatePlus:{delivery_coder_theme:null}},HextomCountdownTimerBar={HextomCountdownTimerBar:{"fsb-custom-placement":null}},TrustBadgesBear={TrustBadgesBear:{widget:null}},TrustedsiteTrustBadges={TrustedsiteTrustBadges:{engagement:{"tm-type":"202","tm-size":"120"}}},GloColorSwatchvariantImage={GloColorSwatchvariantImage:{"product-bundles-quantity-breaks":null,"product-swatches-detail":null,"product-bundles-combo":null,"product-groups-detail":null}},BfSizeChartSizeGuide={BfSizeChartSizeGuide:{block:null}},HextomFreeShippingBar={HextomFreeShippingBar:{"fsb-custom-placement":null}},ShopifySubscriptions={ShopifySubscriptions:{"app-block":{color_text_title:"#6D7175",color_text_body:"#6D7175",dividers_color:"#8F8D8D",bacgkround_color:"#FFFFFF",border_thickness:1,border_radius:0,supporting_text_title:"Purchase options",subscription_policy_url:"",product:"{{product}}"}}},QikifyUpsell={QikifyUpsell:{bogo_offer:{product:"{{product}}"},free_gift:{product:"{{product}}"},bundle_offer:{product:"{{product}}"},promotion_badge:{product:"{{product}}"},"order-goal":null,upsurge_offer:{product:"{{product}}"},volume_offer:{product:"{{product}}"}}},EcoboostifyShoppableReelUgc={EcoboostifyShoppableReelUgc:{"reel-playlist":{playlist_id:""}}},Releasit={Releasit:{"button-app-block":{product:"{{product}}"},"form-app-block":{product:"{{product}}"}}},EcomsendBackInStockAlert={EcomsendBackInStockAlert:{"product-restore-email":null}},AppstleBundlesDiscounts={AppstleBundlesDiscounts:{"appstle-classic-bundle":null,"appstle-bundle-product-page-build-a-box":null}},AovFreeGiftBuyXGetYBogo={AovFreeGiftBuyXGetYBogo:{"avada-promotion-card":null,"avada-volume-discount":null}},ParcelPanelOrderTracking={ParcelPanel:{app:null,edd:null}},KoalaBundleDiscountConfig={KoalaBundleQuantityDiscount:{"deals-block":{product:"{{product}}"}}},AovBundlesVolumeDiscounts={AovBundlesVolumeDiscounts:{"offer-bundle-builder":null,"offer-fixed":null,"offer-inline":null,"mix-match-offer-inline":null,"offer-volume":null}},UppromoteAffiliateMarketing={UppromoteAffiliateMarketing:{"customer-referral-landing":{section_corners:0,section_top_margin:20,section_bottom_margin:20}}},composeSettingsByWidgetType={...UppromoteAffiliateMarketing,...AovBundlesVolumeDiscounts,...KoalaBundleDiscountConfig,...ParcelPanelOrderTracking,...AovFreeGiftBuyXGetYBogo,...EcomsendBackInStockAlert,...AppstleBundlesDiscounts,...HextomCountdownTimerBar,...EstimatedDeliveryDatePlus,...OkendoReviewsLoyalty,...EssentialAnnouncementBar,...EssentialCountdownTimerBar,...BoostAISearchDiscovery,...Stamped,...TrustshopProductReviews,...HulkProductOptions,...MyappgurusProductReviews,...TrustreviewsProductReviews,...SeoantTrustBadgesIcon,...SegunoEmailMarketing,...AftershipEmailMarketingsms,...BestBuyFulfillment,...GloboProductOptionsVariant,...WishlistKing,...LoloyalLoyaltyReferrals,...PowerfulContactFormBuilder,...InstasellShoppableInstagram,...SproutPlantTreesGrowSales,...AppointmentBookingCowlendar,...ProductOptionsCustomizer,...WhatmoreShoppableVideosreel,...JunipProductReviewsUgc,...FlyBundlesUpsellsFbt,...PreorderNowWodPresale,...PreorderNowPreOrderPq,...EasyBundleBuilderSkailama,...FastBundleBundlesDiscounts,...KiteFreeGiftDiscount,...UnlimitedBundlesDiscounts,...SimpleBundlesKits,...PumperBundlesVolumeDiscount,...ReviewxpoProductReviewsApp,...ShopifyForms,...SkioSubscriptionsYcS20,...LoopSubscriptions,...RechargeSubscriptions,...LoyaltyRewardsReferrals,...SubifySubscriptions,...SelleasyWidget,...YotpoReviews,...BoldSubscriptions,...Growave,...KachingBundles,...Trustoo,...LooxReviews,...TrustBadgesBear,...TrustedsiteTrustBadges,...GloColorSwatchvariantImage,...BfSizeChartSizeGuide,...HextomFreeShippingBar,...ShopifySubscriptions,...QikifyUpsell,...EcoboostifyShoppableReelUgc,...Releasit};export{composeSettingsByWidgetType,overrideSettings};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{RechargeSubscriptionsConfig as p,BonLoyaltyRewardsReferralsConfig as _,SubifySubscriptionsConfig as P,SelleasyConfig as a,LoopSubscriptionsConfig as o,SkioSubscriptionsYcS20Config as A,ShopifyFormsConfig as I,ReviewxpoProductReviewsAppConfig as R,PumperBundlesVolumeDiscountConfig as t,UnlimitedBundlesDiscountsConfig as e,KiteFreeGiftDiscountConfig as f,FastBundleBundlesDiscountsConfig as i,SimpleBundlesKitsConfig as m,EasyBundleBuilderSkailamaConfig as D,PreorderNowPreOrderPqConfig as T,FlyBundlesUpsellsFbtConfig as r,JunipProductReviewsUgcConfig as C,PreorderNowWodPresaleConfig as g,YotpoReviewsV3UgcConfig as h,WhatmoreShoppableVideosreelConfig as y,ProductOptionsCustomizerConfig as B,AppointmentBookingCowlendarConfig as E,BoldSubscriptionsConfig as F,SproutPlantTreesGrowSalesConfig as H,InstasellShoppableInstagramConfig as K,GrowaveConfig as L,LoloyalLoyaltyReferralsConfig as M,PowerfulContactFormBuilderConfig as O,WishlistKingConfig as S,GloboProductOptionsVariantConfig as X,KachingBundlesConfig as Y,BestBuyFulfillmentConfig as j,AftershipEmailMarketingsmsConfig as l,SegunoEmailMarketingConfig as n,TrustooConfig as s,LooxReviewsConfig as x,SeoantTrustBadgesIconConfig as b,TrustreviewsProductReviewsConfig as c,MyappgurusProductReviewsConfig as d,HulkProductOptionsConfig as k,TrustshopProductReviewsConfig as q,StampedConfig as u,BoostAISearchDiscoveryConfig as v,EssentialCountdownTimerBarConfig as w,EssentialAnnouncementBarConfig as z,OkendoReviewsLoyaltyConfig as G,EstimatedDeliveryDatePlusConfig as J,HextomCountdownTimerBarConfig as N,TrustBadgesBearConfig as Q,TrustedsiteTrustBadgesConfig as U,GloColorSwatchvariantImageConfig as V,BfSizeChartSizeGuideConfig as W,HextomFreeShippingBarConfig as Z,ShopifySubscriptionsConfig as $,QikifyUpsellConfig as pp,EcoboostifyShoppableReelUgcConfig as p_,AppstleBundlesDiscountsConfig as pP,ReleasitConfig as pa,AovFreeGiftBuyXGetYBogoConfig as po,ParcelPanelOrderTrackingConfig as pA,KoalaBundleDiscountConfig as pI}from"./appConfig.js";let mapShopifyAppMeta={...p,..._,...P,...a,...o,...A,...I,...R,...t,...e,...f,...i,...m,...D,...T,...r,...C,...g,...h,...y,...B,...E,...F,...H,...K,...L,...M,...O,...S,...X,...Y,...j,...l,...n,...s,...x,...b,...c,...d,...k,...q,...u,...v,...w,...z,...G,...J,...N,...Q,...U,...V,...W,...Z,...$,...pp,...p_,...pP,...pa,...po,...pA,...pI},THIRD_PARTY_APP_BLOCK_ID_PREFIX="gp_app";export{THIRD_PARTY_APP_BLOCK_ID_PREFIX,mapShopifyAppMeta};
|
|
1
|
+
import{RechargeSubscriptionsConfig as p,BonLoyaltyRewardsReferralsConfig as _,SubifySubscriptionsConfig as P,SelleasyConfig as a,LoopSubscriptionsConfig as o,SkioSubscriptionsYcS20Config as A,ShopifyFormsConfig as I,ReviewxpoProductReviewsAppConfig as R,PumperBundlesVolumeDiscountConfig as t,UnlimitedBundlesDiscountsConfig as e,KiteFreeGiftDiscountConfig as f,FastBundleBundlesDiscountsConfig as i,SimpleBundlesKitsConfig as m,EasyBundleBuilderSkailamaConfig as D,PreorderNowPreOrderPqConfig as T,FlyBundlesUpsellsFbtConfig as r,JunipProductReviewsUgcConfig as C,PreorderNowWodPresaleConfig as g,YotpoReviewsV3UgcConfig as h,WhatmoreShoppableVideosreelConfig as y,ProductOptionsCustomizerConfig as B,AppointmentBookingCowlendarConfig as E,BoldSubscriptionsConfig as F,SproutPlantTreesGrowSalesConfig as H,InstasellShoppableInstagramConfig as K,GrowaveConfig as L,LoloyalLoyaltyReferralsConfig as M,PowerfulContactFormBuilderConfig as O,WishlistKingConfig as S,GloboProductOptionsVariantConfig as X,KachingBundlesConfig as Y,BestBuyFulfillmentConfig as j,AftershipEmailMarketingsmsConfig as l,SegunoEmailMarketingConfig as n,TrustooConfig as s,LooxReviewsConfig as x,SeoantTrustBadgesIconConfig as b,TrustreviewsProductReviewsConfig as c,MyappgurusProductReviewsConfig as d,HulkProductOptionsConfig as k,TrustshopProductReviewsConfig as q,StampedConfig as u,BoostAISearchDiscoveryConfig as v,EssentialCountdownTimerBarConfig as w,EssentialAnnouncementBarConfig as z,OkendoReviewsLoyaltyConfig as G,EstimatedDeliveryDatePlusConfig as J,HextomCountdownTimerBarConfig as N,TrustBadgesBearConfig as Q,TrustedsiteTrustBadgesConfig as U,GloColorSwatchvariantImageConfig as V,BfSizeChartSizeGuideConfig as W,HextomFreeShippingBarConfig as Z,ShopifySubscriptionsConfig as $,QikifyUpsellConfig as pp,EcoboostifyShoppableReelUgcConfig as p_,AppstleBundlesDiscountsConfig as pP,ReleasitConfig as pa,AovFreeGiftBuyXGetYBogoConfig as po,ParcelPanelOrderTrackingConfig as pA,KoalaBundleDiscountConfig as pI,AovBundlesVolumeDiscountsConfig as pR,UppromoteAffiliateMarketingConfig as pt}from"./appConfig.js";let mapShopifyAppMeta={...p,..._,...P,...a,...o,...A,...I,...R,...t,...e,...f,...i,...m,...D,...T,...r,...C,...g,...h,...y,...B,...E,...F,...H,...K,...L,...M,...O,...S,...X,...Y,...j,...l,...n,...s,...x,...b,...c,...d,...k,...q,...u,...v,...w,...z,...G,...J,...N,...Q,...U,...V,...W,...Z,...$,...pp,...p_,...pP,...pa,...po,...pA,...pI,...pR,...pt},THIRD_PARTY_APP_BLOCK_ID_PREFIX="gp_app";export{THIRD_PARTY_APP_BLOCK_ID_PREFIX,mapShopifyAppMeta};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
let pageview=(e,a)=>{window.gtag&&a&&window.gtag("config",a,{page_path:e}),window.ga&&window.ga("send","pageview",e)},addToCart=e=>{window.ga&&e&&(window.ga("ec:addProduct",{...e,id:e.sku,name:"Default Title"===e.variant?e.name:`${e.name} - ${e.variant}`,variant:"Default Title"===e.variant?e.name:e.variant}),window.ga("ec:setAction","add"),window.ga("send","event",{eventCategory:"EnhancedEcommerce",eventAction:"Added Product",nonInteraction:!0}))},productClick=e=>{window.ga&&(ga("ec:addProduct",{id:e.id,name:e.name,category:e.category,brand:e.brand,variant:e.variant}),ga("ec:setAction","click"),ga("send","event",{eventAction:"Click",eventCategory:"Product"}))},productDetail=e=>{e&&window.ga&&(ga("ec:addProduct",{brand:e.brand,category:e.category,id:e.id,name:e.name,variant:e.variant}),ga("ec:setAction","detail"),ga("send","event",{eventAction:"Detail",eventCategory:"Ecommerce",nonInteraction:1}))},removeFromCart=(e,a)=>{e&&window.ga&&(ga("ec:addProduct",{id:e.id,name:e.name,price:a}),ga("ec:setAction","remove"),ga("send","event",{eventAction:"Click",eventCategory:"Remove from cart"}))};export{addToCart,pageview,productClick,productDetail,removeFromCart};
|
|
1
|
+
let pageview=(e,a)=>{window.gtag&&a&&window.gtag("config",a,{page_path:e}),window.ga&&window.ga("send","pageview",e)},addToCart=e=>{window.ga&&e&&(window.ga("ec:addProduct",{...e,id:e.sku,name:"Default Title"===e.variant?e.name:`${e.name} - ${e.variant}`,variant:"Default Title"===e.variant?e.name:e.variant}),window.ga("ec:setAction","add"),window.ga("send","event",{eventCategory:"EnhancedEcommerce",eventAction:"Added Product",nonInteraction:!0}))},productClick=e=>{window.ga&&(ga("ec:addProduct",{id:e.id,name:e.name,category:e.category,brand:e.brand,variant:e.variant}),ga("ec:setAction","click"),ga("send","event",{eventAction:"Click",eventCategory:"Product"}))},productDetail=e=>{e&&window.ga&&(ga("ec:addProduct",{brand:e.brand,category:e.category,id:e.id,name:e.name,variant:e.variant}),ga("ec:setAction","detail"),ga("send","event",{eventAction:"Detail",eventCategory:"Ecommerce",nonInteraction:1}))},removeFromCart=(e,a)=>{e&&window.ga&&(ga("ec:addProduct",{id:e.id,name:e.name,price:a}),ga("ec:setAction","remove"),ga("send","event",{eventAction:"Click",eventCategory:"Remove from cart"}))},sharePageView=(e,a,t)=>{window.gtag&&a&&window.gtag("event","share_page_view",{page_path:e,...t})};export{addToCart,pageview,productClick,productDetail,removeFromCart,sharePageView};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function isExternalLink(t){return!!t&&/^(https?:\/\/|\/\/|\/)/i.test(t)}export{isExternalLink};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
let EASING={ease:"cubic-bezier(0.46,0.03,0.52,0.96)","ease-in":"cubic-bezier(0.55,0.08,0.68,0.53)","ease-out":"cubic-bezier(0.46,0.03,0.52,0.96)",linear:"linear"},animations=()=>{let t=t=>{let e=JSON.parse(JSON.stringify(t)),r=["delay","speed","scale","intensity"];return r.forEach(t=>{if(!e?.[t])return;if("scale"===t){if(!e?.zoomDirection)throw TypeError("zoomDirection not found on zoom preset");let[r,a]=e?.scale?.in??[1,1],[n,o]=e?.scale?.out??[1,1];e[t]={in:[Number(r)/100,Number(a)/100],out:[Number(n)/100,Number(o)/100]};return}let r=Number(e?.[t]);if("delay"===t?e[t]=1e3*r:e[t]=r,!isFinite(r))throw TypeError(`${t} must be a number`)}),e},e=(e,r)=>{let n=t(r),{direction:l,distance:s}=n,p=["left","right"].includes(l??"")?"X":"Y",u=["left","down"].includes(l??"")?"-":"",f=o(e),y=[{display:f,opacity:0,transform:`translate${p}(${u}${s??50}%)`},{display:f,opacity:i(e),transform:`translate${p}(0)`}];return c(e,y,{...a(n,500),fill:"forwards"})},r=(e,r)=>{let n=t(r),o=[{opacity:0},{opacity:i(e)}];return c(e,o,{...a(n,500)})},a=(t,e)=>{let r=t=>t?1.5/t*1e3:e,{loop:a,delay:n,speed:o,easing:i}=t??{},l=r(o),s=n??0,c=a?l+s:l;return{iterations:a?1/0:1,duration:c,delay:s,easing:EASING[i??"linear"]}},n=(e,r)=>{let n=t(r),{scale:l,zoomDirection:s,isFade:p}=n,[u,f]=l.in,[y,m]=l.out,d=o(e),b=i(e),$=[{display:d,transform:`scale(${u}, ${u})`,opacity:p?0:1},{display:d,transform:`scale(${f??1.2}, ${f??1.2})`,opacity:b}],w=[{display:d,transform:`scale(${y}, ${y})`,opacity:p?0:1},{display:d,transform:`scale(${m??.8}, ${m??.8})`,opacity:b}],x="in"===s?$:w;return c(e,x,{...a(n,700),fill:"forwards"})},o=t=>{let e="inline"===window.getComputedStyle(t,null).getPropertyValue("display");return e?"block":void 0},i=t=>window.getComputedStyle(t,null).getPropertyValue("opacity"),l=(t,e,r)=>{if(!e)return t;let a=e/r,n=[...t].pop();return[...t,{...n,offset:1-a}]},s=(e,r)=>{let n=t(r),{intensity:l}=n??{},s=o(e),p=i(e),u=[{transform:"translate3d(0, 0, 0)",opacity:p,display:s}],f=[{transform:"translate3d(4px, 0, 0)",opacity:p,display:s},{transform:"translate3d(-4px, 0, 0)",opacity:p,display:s},{transform:"translate3d(4px, 0, 0)",opacity:p,display:s}],y=[];Array.from(Array(l??1).keys()).forEach(()=>{y=[...y,...f]});let m=[{transform:"translate3d(-1px, 0, 0)",opacity:p,display:s},{transform:"translate3d(2px, 0, 0)",opacity:p,display:s},{transform:"translate3d(-4px, 0, 0)",opacity:p,display:s},...y,{transform:"translate3d(-4px, 0, 0)",opacity:p,display:s},{transform:"translate3d(2px, 0, 0)",opacity:p,display:s},{transform:"translate3d(-1px, 0, 0)",opacity:p,display:s}];return c(e,l?m:u,{...a(n??{},820)})},c=(t,e,r)=>{let a=new KeyframeEffect(t,r.iterations&&1===r.iterations?e:l(e,r?.delay??0,r?.duration??0),{...r});return new Animation(a,document.timeline)};return{zoom:n,shake:s,fade:r,slide:e}};export{animations};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import{useCallback as t,useEffect as i}from"react";import{useAnimations as e}from"../useAnimations.js";import{useAnimationTarget as n}from"./useAnimationTarget.js";import{useAnimationConfig as o}from"./useAnimationConfig.js";import{useAnimationActions as r}from"./useAnimationActions.js";import{useAnimationPreview as m}from"./useAnimationPreview.js";import"../../types/custom.js";import{AnimationType as a}from"../../types/animations.js";import{DIALOG as s}from"../../helpers/const.js";let useApplyAnimation=({props:p})=>{let{uid:u}=p,
|
|
2
|
+
import{useCallback as t,useEffect as i}from"react";import{useAnimations as e}from"../useAnimations.js";import{useAnimationTarget as n}from"./useAnimationTarget.js";import{useAnimationConfig as o}from"./useAnimationConfig.js";import{useAnimationActions as r}from"./useAnimationActions.js";import{useAnimationPreview as m}from"./useAnimationPreview.js";import"../../types/builder.js";import"../../types/custom.js";import{AnimationType as a}from"../../types/animations.js";import{DIALOG as s}from"../../helpers/const.js";let useApplyAnimation=({props:p})=>{let{uid:u}=p,d=e(),{initListOfTargets:f,targetObjects:l,setToolbarActive:w}=n(p),{isEnabledAnimation:A,getAnimationConfig:j}=o(p),{setAnimation:v,cancelAnimation:g,playAnimation:c,setAnimationOnFinish:y}=r(),E=()=>{p.tag===s&&(f(),b()),c()},{previewAnimation:L}=m({props:p,playAnimation:E,cancelAnimation:g,setAnimationOnFinish:y,setToolbarActive:w}),h=t(({target:t,setting:i,type:e,reverse:n})=>d[e](t,i,n),[d]),b=t(()=>{let{type:t,setting:i,reverse:e}=j();if(!t||t===a.None||!l.current.length){g();return}let n=l.current.map(n=>h({type:t,setting:i,target:n.target,reverse:e}));g(),v(n)},[j,l,g,v,h]);i(()=>(A?(f(),b()):g(),()=>{g()}),[u,b,g,A,f]),i(()=>(window.addEventListener("preview-animation",L),()=>{window.removeEventListener("preview-animation",L)}),[L]),i(()=>(window.addEventListener("init-animation-target",f),()=>{window.removeEventListener("init-animation-target",f)}),[f])};export{useApplyAnimation as default};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import{useState as e,useRef as r,useCallback as t,useEffect as n}from"react";import{animations as u}from"./animations.js";let TAGS_SELECTOR={Button:".gp-button-base",ProductButton:".gp-button-base",Sticky:"gp-sticky",Dialog:"div[role=dialog]",Icon:"div div",ProductTag:"div div div"},useLivePageAnimation=(c,o,i)=>{let a=u(),[l,s]=e(!1),d=r(void 0),p=r(void 0),m=r(null),v=r("none"),g=r("none"),b=r(null),f=r(null),y=r(null),h=r("animation-wrapper-"),k=t(e=>{b.current&&(b.current.playbackRate=e??1,b.current.play())},[b]),E=t(e=>{f.current&&(f.current.playbackRate=e??1,f.current.play())},[f]),S=t(()=>{c.current&&(c.current.style.opacity="1"),m.current&&(m.current.style.opacity="1")},[c]),L=t(()=>{c.current&&(c.current.style.opacity="1"),m.current&&(m.current.style.opacity="0")},[c]),T=t(e=>{e&&e.stopPropagation(),"shake"!==v.current&&L(),b.current&&(f.current?.cancel(),k(),b.current.finished.then(()=>{m.current&&S()}),m.current&&d?.current?.unobserve(m.current))},[L,k,S]),R=t(()=>{S(),b.current&&b.current.cancel()},[S,b]),C=t(e=>{e&&e.stopPropagation(),f.current&&(R(),E())},[f,R,E]),P=t(()=>{if(f.current){if("zoom"===g.current){if(E(-1),!l)return;f.current.finished.then(()=>{clearTimeout(p.current),p.current=setTimeout(()=>{T()},100)});return}f.current.cancel(),l&&T()}},[E,l,T]),w=t(()=>{if("desktop"===y.current);else if("tablet"===y.current)return o?.tablet??o?.desktop;else if("mobile"===y.current)return o?.mobile??o?.tablet??o?.desktop;return o?.desktop},[o?.desktop,o?.mobile,o?.tablet]),A=(e,r)=>e?.triggerConfig?.[r]?.animation??"none",O=t(e=>{if("none"===v.current)return;let r=e?.triggerConfig?.appear?.setting?.[v.current];s(r.loop),b.current=a?.[v.current]?.(m.current,r)},[a]),q=t(e=>{if("none"===g.current)return;let r=e?.triggerConfig?.hover?.setting?.[g.current];f.current=a?.[g.current]?.(m.current,r)},[a]),B=t(()=>{b.current&&(b.current=null,m.current&&d.current?.unobserve(m.current)),f&&(f.current=null,m.current&&(m.current.removeEventListener("mouseenter",C),m.current.removeEventListener("mouseleave",P)))},[P,C]),$=t(e=>{if(B(),m.current){if(!e?.enabled){S();return}v.current=A(e,"appear"),g.current=A(e,"hover"),"none"===v.current&&S(),"none"!==g.current&&"desktop"===y.current&&(q(e),m.current.addEventListener("mouseenter",C),m.current.addEventListener("mouseleave",P)),"none"!==v.current?(O(e),d.current=new IntersectionObserver(e=>{e.forEach(e=>{e.intersectionRatio>.1&&T()})},{root:null,rootMargin:"0px",threshold:[.1]}),d.current.observe(m.current)):S()}},[P,O,q,T,C,S,B]),x=t(()=>{let e=document.querySelector("html");if(!m.current||!e)return;let r=new ResizeObserver(([e])=>{let r;let t=e?.target.getBoundingClientRect().width??0;r=t>=1024?"desktop":t>=768?"tablet":"mobile",y.current!==r&&(y.current=r,$(w()))});return r.observe(e),()=>r.disconnect()},[w,$]);return n(()=>{setTimeout(()=>{if(!o||!c.current)return;h.current=`animation-wrapper-${Math.random().toString(36).substr(2,5)}`,c.current.setAttribute("data-animationid",h.current);let e=document.body.querySelector("#storefront");return e&&(m.current=e.querySelector(`[data-animationid='${h.current}'] ${TAGS_SELECTOR?.[i]??"div"}`)),x()},100)},[x,o,i,c]),{initAnimation:$}};export{useLivePageAnimation};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import{ArticlesDocument as e}from"../../graphql/queries/articles.generated.js";import{useFetchHandle as r}from"../useFetchHandle.js";import
|
|
2
|
+
import{ArticlesDocument as e}from"../../graphql/queries/articles.generated.js";import{useFetchHandle as r}from"../useFetchHandle.js";import t from"swr";import{BlogsDocument as o}from"../../graphql/queries/blogs.generated.js";import{hasPublicStoreFrontData as s,createStoreFrontFetcher as l}from"../../helpers/create-store-front-fetcher.js";import{useMemo as u}from"react";import{usePageStore as i}from"../../contexts/PageContext.js";let useArticlesQuery=(o,a)=>{let m=r(),p=i(e=>e.publicStoreFrontData),n=u(()=>s(p)?l(p):m,[p]),c=()=>n([e,o??{}]);return t(o?["query/articles",o]:null,c,a)},useBlogsQuery=(e,a)=>{let m=r(),p=i(e=>e.publicStoreFrontData),n=u(()=>s(p)?l(p):m,[p]),c=()=>n([o,e??{}]);return t(e?["query/blogs",e]:null,c,a)};export{useArticlesQuery,useBlogsQuery};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import e from"swr";import{getCollection as r}from"../../helpers/queries/get-collection.js";import{useIsSampleProduct as o,useIsStorefrontProduct as t}from"../shop.js";import{useFetchHandle as
|
|
2
|
+
import e from"swr";import{getCollection as r}from"../../helpers/queries/get-collection.js";import{useIsSampleProduct as o,useIsStorefrontProduct as t}from"../shop.js";import{useFetchHandle as s}from"../useFetchHandle.js";import{generateCollectionQueryKey as m}from"../../helpers/query.js";import{usePageStore as l}from"../../contexts/PageContext.js";import{hasPublicStoreFrontData as p,createStoreFrontFetcher as i}from"../../helpers/create-store-front-fetcher.js";import{useMemo as c}from"react";let useCollectionQuery=(f,n)=>{let u=s(),a=l(e=>e.publicStoreFrontData),h=c(()=>p(a)?i(a):u,[a]),j=o(),x=t();return e(f?m({...f,isSample:j,isStorefront:x}):null,([,e])=>r(h,e),n)};export{useCollectionQuery};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import e from"swr";import r from"swr/infinite";import{getProducts as t,getProductQueryAll as u,getListProductByVariables as
|
|
2
|
+
import e from"swr";import r from"swr/infinite";import{getProducts as t,getProductQueryAll as u,getListProductByVariables as o}from"../../helpers/queries/get-products.js";import{generateProductsQueryKey as s}from"../../helpers/query.js";import{useIsSampleProduct as l,useIsStorefrontProduct as c}from"../shop.js";import{useFetchHandle as p}from"../useFetchHandle.js";import{useMemo as n}from"react";import{usePageStore as a}from"../../contexts/PageContext.js";import{hasPublicStoreFrontData as d,createStoreFrontFetcher as f}from"../../helpers/create-store-front-fetcher.js";let useProductsQuery=(r,u,o)=>{let m=p(),i=a(e=>e.publicStoreFrontData),y=n(()=>d(i)?f(i):m,[i]),P=l(),h=c();return e(r?s({ids:r,isSample:P,isStorefront:h,defaultSelectedProductCount:o?.defaultSelectedProductCount,allStatus:o?.allStatus}):null,async([,e])=>t(o?.fetcher||y,e),u)},getKey=e=>(r,t)=>e&&(!t||t.products?.pageInfo?.hasNextPage)?0===r?["query/products",e]:["query/products",{...e,after:t.products?.pageInfo?.endCursor}]:null,useListProductQuery=(e,t)=>{let u=p(),s=r(getKey(e),async([,e])=>o(u,e),t);return s},useProductsQueryAll=(r,t,o)=>{let s=p();return e(r?["query/products",r]:null,async([,e])=>u(o||s,e),t)};export{useListProductQuery,useProductsQuery,useProductsQueryAll};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import{animations as t}from"../helpers/animations.js";import"react";import"react/jsx-runtime";import"zustand";import"swr";import"@gem-sdk/adapter-shopify";import"swr/mutation";import"swr/infinite";import"vanilla-lazyload";import"./useCartUI.js";import"./useStickyStore.js";import"react-transition-group";import"@gem-sdk/core";import"classnames";import"dayjs";import"../helpers/convert.js";let useAnimations=()=>{let{zoom:r,shake:i,fade:o,slide:s}=t();return{zoom:r,shake:i,fade:o,slide:s}};export{useAnimations};
|
|
2
|
+
import{animations as t}from"../helpers/animations.js";import"react";import"react/jsx-runtime";import"zustand";import"swr";import"@gem-sdk/adapter-shopify";import"swr/mutation";import"swr/infinite";import"vanilla-lazyload";import"./useCartUI.js";import"./useStickyStore.js";import"../types/builder.js";import"../types/custom.js";import"../types/animations.js";import"react-transition-group";import"@gem-sdk/core";import"classnames";import"dayjs";import"../helpers/convert.js";let useAnimations=()=>{let{zoom:r,shake:i,fade:o,slide:s}=t();return{zoom:r,shake:i,fade:o,slide:s}};export{useAnimations};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import e from"swr";import{ProductOptionNameDocument as t}from"../graphql/queries/product-value-label.generated.js";import{colorPreset as o}from"../components/src/product/helpers/variant-presets.js";import{useSwatches as a}from"./shop.js";import{useFetchHandle as r}from"./useFetchHandle.js";import{useShopStore as s}from"../contexts/ShopContext.js";import"react";import"react/jsx-runtime";import"zustand";import"@gem-sdk/adapter-shopify";import"swr/mutation";import"swr/infinite";import"vanilla-lazyload";import"./useCartUI.js";import"./useStickyStore.js";import"react-transition-group";import"@gem-sdk/core";import"classnames";import"dayjs";import l from"../helpers/is-browser.js";import"../helpers/convert.js";let swatchChange=!1,colorChange=!1,useInitialSwatchesOptions=t=>{let o=r(),i=s(e=>e.changeSwatches),{swatches:
|
|
2
|
+
import e from"swr";import{ProductOptionNameDocument as t}from"../graphql/queries/product-value-label.generated.js";import{colorPreset as o}from"../components/src/product/helpers/variant-presets.js";import{useSwatches as a}from"./shop.js";import{useFetchHandle as r}from"./useFetchHandle.js";import{useShopStore as s}from"../contexts/ShopContext.js";import"react";import"react/jsx-runtime";import"zustand";import"@gem-sdk/adapter-shopify";import"swr/mutation";import"swr/infinite";import"vanilla-lazyload";import"./useCartUI.js";import"./useStickyStore.js";import"../types/builder.js";import"../types/custom.js";import"../types/animations.js";import"react-transition-group";import"@gem-sdk/core";import"classnames";import"dayjs";import l from"../helpers/is-browser.js";import"../helpers/convert.js";let swatchChange=!1,colorChange=!1,useInitialSwatchesOptions=t=>{let o=r(),i=s(e=>e.changeSwatches),{swatches:p}=a(),{data:n}=e(["/query/productOptionName",{}],async()=>fetchProductValueLabel(o),{revalidateOnMount:!0}),c=[];if(p?.forEach(e=>{c.push(e.optionTitle)}),n?.productOptionName?.forEach(e=>{c.includes(e)||(swatchChange=!0,p?.push({optionTitle:e,optionType:"rectangle_list",optionValues:[]}))}),!t)return[];setDefaultSwatches(p,t),l()&&p?.length&&(swatchChange||colorChange)&&(window?.parent?.postMessage?.(JSON.stringify({type:"update-swatches",swatches:p}),"*"),i(p)),swatchChange=!1},getColorDefault=(e,t)=>{let a=e?o[e.toLocaleLowerCase()]:void 0,r=a?[a]:[],s=t?.[0];return!s&&r.length&&(colorChange=!0),s?[s]:r},getProductOptionsLabelByName=(e,t)=>{let o=[],a=e.find(e=>e.name===t);return a?.values.forEach(e=>{e.label&&!o.includes(e.label)&&o.push(e.label)}),o},getSwatchesOptionsLabel=e=>{let t=[];return e.forEach(e=>{e.label&&!t.includes(e.label)&&t.push(e.label)}),t},setDefaultSwatches=(e,t)=>(e&&e?.map(e=>{let o=getProductOptionsLabelByName(t,e.optionTitle),a=getSwatchesOptionsLabel(e.optionValues);o.forEach(t=>{a.includes(t)||e.optionValues.push({label:t,colors:getColorDefault(t),imageUrl:""})}),e.optionValues=e.optionValues.map(e=>(void 0===e.imageUrl&&(swatchChange=!0),{label:e.label??"",colors:getColorDefault(e.label,e.colors),imageUrl:e.imageUrl??""}))}),e),fetchProductValueLabel=async e=>{let o={},a=async o=>{let a=await e([t,o]);return a};return a(o)};export{useInitialSwatchesOptions as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{isExternalLink as e}from"../helpers/verify-external-link.js";let DOM_QUERY_DELAY_MS=500,usePreviewSharePage=()=>{let t=()=>{setTimeout(()=>{let t=document.querySelectorAll("a[href]");t.forEach(t=>{t.addEventListener("click",r=>{let a=t.getAttribute("href")??"",l="_blank"===t.getAttribute("target");(e(a)||l)&&(r.preventDefault(),r.stopPropagation())})})},500)};return{disableExternalLinks:t}};export{usePreviewSharePage};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import{useCallback as e,useEffect as t,useMemo as r}from"react";import{useProductStore as s}from"../contexts/ProductContext.js";import"react/jsx-runtime";import"zustand";import{usePageStore as o}from"../contexts/PageContext.js";import"swr";import"@gem-sdk/adapter-shopify";import"swr/mutation";import"swr/infinite";import"vanilla-lazyload";import"./useCartUI.js";import"./useStickyStore.js";import{checkInStock as u}from"../helpers/variant.js";import{useShopifyLink as
|
|
2
|
+
import{useCallback as e,useEffect as t,useMemo as r}from"react";import{useProductStore as s}from"../contexts/ProductContext.js";import"react/jsx-runtime";import"zustand";import{usePageStore as o}from"../contexts/PageContext.js";import"swr";import"@gem-sdk/adapter-shopify";import"swr/mutation";import"swr/infinite";import"vanilla-lazyload";import"./useCartUI.js";import"./useStickyStore.js";import{checkInStock as u}from"../helpers/variant.js";import{useShopifyLink as i}from"./shop/useShopifyLink.js";import"../types/builder.js";import"../types/custom.js";import"../types/animations.js";import"react-transition-group";import"@gem-sdk/core";import"classnames";import"dayjs";import{flattenConnection as n}from"../helpers/flatten-connection.js";import"../helpers/convert.js";import{getSelectedVariant as a}from"../helpers/product.js";let useUniqProductID=()=>s(e=>e.uiqueId),useProduct=()=>s(e=>e.product),useFeaturedImageGlobal=()=>s(e=>e.featuredImageGlobal),useProductProperties=()=>s(e=>e.properties),useIsSyncProduct=()=>s(e=>e.isSyncProduct),useProductBundleDiscount=()=>{let e=s(e=>e.useProductCompareAtPrice),t=s(e=>e.setUseProductCompareAtPrice);return{useProductCompareAtPrice:e,seUseProductCompareAtPrice:t}},useProductShopifyEditLink=()=>{let e=s(e=>e.product),t=e?.baseID?.replace("gid://shopify/Product/",""),{linkEditProduct:r}=i({productId:t}),o=()=>{r&&window.open(r,"_blank")};return{linkEditProduct:r,redirectProductShopifyLink:o}},useQuantity=()=>{let o=s(e=>e.quantity),u=s(e=>e.updatePrice),i=s(e=>e.decrementQuantity),n=s(e=>e.incrementQuantity),a=s(e=>e.setQuantity),c=s(e=>e.setHasUpdatePriceFollowQuantity),d=s(e=>e.isSyncProduct),l=s(e=>e.product),p=l?.id,m=e(()=>{a(1)},[a]);return t(()=>{if(d){let e=new CustomEvent("set-product-quantity",{bubbles:!0,cancelable:!0,composed:!0,detail:{quantity:o,productId:p}});window.dispatchEvent(e)}},[o,d,p]),r(()=>({quantity:o,hasUpdatePrice:u,increment:n,decrement:i,reset:m,setQuantity:a,setUpdatePrice:c}),[i,n,o,m,a,c,u])},useHasPreSelected=()=>{let e=s(e=>e.hasPreSelected),t=s(e=>e.setHasPreSelected);return r(()=>({hasPreSelected:e,setHasPreSelected:t}),[e,t])},useSelectedOption=()=>{let t=s(e=>e.setSelectedOption),o=s(e=>e.selectedOptions),u=s(e=>e.forceSelectedOption),i=s(e=>e.isSyncProduct),n=s(e=>e.isChangeSelectedOption),a=s(e=>e.setIsChangeSelectedOption),c=e((e,r,s,o)=>{if(!o&&i){let t=new CustomEvent("set-selected-option",{bubbles:!0,cancelable:!0,composed:!0,detail:{optionId:e,optionValue:r,productId:s,isManualChange:!0}});window.dispatchEvent(t)}t(e,r),a(!0)},[i,t,a]),d=e((e,t,r,s)=>{if(!r&&i){let r=new CustomEvent("force-selected-option",{bubbles:!0,cancelable:!0,composed:!0,detail:{selectedOption:e,productId:t,isManualChange:s}});window.dispatchEvent(r)}u(e)},[u,i]);return r(()=>({isChangeSelectedOption:n,selectedOptions:o,setSelectedOption:c,forceSelectedOption:d}),[o,c,d])},useVariants=()=>{let e=s(e=>e.product?.variants);return n(e)},useVariant=e=>{let t=useVariants();return r(()=>t?.find(t=>t?.id===e),[e,t])},useCurrentVariant=()=>{let{selectedOptions:e}=useSelectedOption(),t=useVariants();return r(()=>a(t,e),[e,t])},useCurrentVariantInStock=()=>{let e=useCurrentVariant(),t=useProduct();return u(e,t)},useVariantOutStock=(e,t,r)=>{let{selectedOptions:s}=useSelectedOption(),o=useVariants(),i=r.optionNumber-1;if(r.position<i)return o.some(r=>{if(r){let{selectedOptions:s}=r,o=s?.some(r=>r?.name===e&&r.value===t),i=u(r);return o&&i}});let n=a(o,{...s,[e]:t});return u(n)},useCheckAvailableVariantInStock=(e,t)=>{let r=useVariants();return!!r&&r.some(r=>{if(r){let{selectedOptions:s}=r,o=s?.some(r=>r?.name===e&&r.value===t),i=u(r);return o&&i}return!1})},useProductOfferDiscount=()=>{let e=o(e=>e.productOffers),t=useProduct(),r=useCurrentVariant(),s=e?.find(e=>e?.node?.objectBaseID===t?.baseID)?.node;if(!s||!s.isEnabled)return 0;let u=s?.value;if(s&&"PERCENTAGE"===s.valueType&&u){let e=r?.price||0;u=u*e/100}return u||0};export{useCheckAvailableVariantInStock,useCurrentVariant,useCurrentVariantInStock,useFeaturedImageGlobal,useHasPreSelected,useIsSyncProduct,useProduct,useProductBundleDiscount,useProductOfferDiscount,useProductProperties,useProductShopifyEditLink,useQuantity,useSelectedOption,useUniqProductID,useVariant,useVariantOutStock,useVariants};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{RenderModeEnv as e}from"../types/builder.js";import"../types/custom.js";import"../types/animations.js";import{useEditorMode as t}from"./shop.js";let useRenderMode=()=>{let o=t(),r=o===e.EDIT,s=o===e.PREVIEW,E=o===e.PREVIEW_SHARE_PAGE,p=o===e.PREVIEW_POST_PURCHASE;return{isEditMode:r,isPreviewMode:s,isPreviewSharePageMode:E,isPreviewPostPurchaseMode:p}};export{useRenderMode};
|
package/dist/esm/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{default as AddOn}from"./components/AddOn.js";export{default as Render}from"./components/Render.js";export{default as RenderPreview}from"./components/RenderPreview.js";export{RenderChildren,default as RenderLiquid,WrapRenderChildren}from"./components/Render.liquid.js";export{AddonProvider,useAddon,useAddons}from"./contexts/AddonContext.js";export{BuilderComponentProvider,useBuilderComponent}from"./contexts/BuilderComponent.js";export{BuilderProvider,useBuilderStore}from"./contexts/BuilderContext.js";export{BuilderPreviewProvider,useBuilderPreviewStore}from"./contexts/BuilderPreviewContext.js";export{CartLineProvider,useCartLineStore}from"./contexts/CartLineContext.js";export{ProductListProvider,useProductListStore}from"./contexts/ProductListContext.js";export{ProductProvider,useProductStore}from"./contexts/ProductContext.js";export{SectionProvider,useSection,useSectionStore}from"./contexts/SectionContext.js";export{ShopProvider,useShopStore}from"./contexts/ShopContext.js";export{PageProvider,usePageStore}from"./contexts/PageContext.js";export{CollectionProvider,useCollectionStore}from"./contexts/CollectionContext.js";export{ModalProvider,useModalStore}from"./contexts/ModalContext.js";export{ArticleListProvider,useArticleListStore}from"./contexts/ArticleListContext.js";export{ArticleProvider,useArticleStore}from"./contexts/ArticleContext.js";export{I18nProvider,useI18nStore}from"./contexts/I18nContext.js";export{PageViewUpDocument}from"./graphql/mutations/page-view-up.generated.js";export{CollectionDetailFilterDocument}from"./graphql/queries/collection-detail-filter.generated.js";export{CollectionDocument}from"./graphql/queries/collection.generated.js";export{CollectionsDocument}from"./graphql/queries/collections.generated.js";export{PublishedThemePagesDocument}from"./graphql/queries/published-theme-pages.generated.js";export{ProductsDocument}from"./graphql/queries/products.generated.js";export{StorePropertyDocument}from"./graphql/queries/store-property.generated.js";export{PreviewThemePageDocument}from"./graphql/queries/preview-page.generated.js";export{PublishedShopMetasDocument}from"./graphql/queries/published-shop-metas.generated.js";export{ShopShopifyDocument}from"./graphql/queries/shop-shopify.generated.js";export{ArticlesDocument}from"./graphql/queries/articles.generated.js";export{BlogsDocument}from"./graphql/queries/blogs.generated.js";export{LibraryTemplateDocument}from"./graphql-app-api/queries/LibraryTemplate.generated.js";export{ThemePageDocument}from"./graphql-app-api/queries/ThemePage.generated.js";export{SaleFunnelDiscountsDocument}from"./graphql-app-api/queries/SaleFunnelDiscounts.generated.js";export{LibrarySaleFunnelDocument}from"./graphql-app-api/queries/LibrarySaleFunnelDiscount.generated.js";export{ShopLibraryPageDocument}from"./graphql-app-api/queries/ShopLibraryPage.generated.js";export{SaleFunnelOfferDocument}from"./graphql-app-api/queries/SaleFunnelOffer.generated.js";export{composeBorderCss,composeBorderResponsive,getBorderRadiusStyle,getBorderStyle,handleConvertBorderColor,handleConvertBorderStyle,handleConvertBorderWidth,handleConvertClassColor,handleConvertClassColorDynamicBtn,handleConvertInputBorderColor}from"./helpers/borders.js";export{getCarouselContainerHeight,makeContainerWidthOrHeight,makeDotGapToCarouselStyle}from"./helpers/carousel.js";export{cls}from"./helpers/cls.js";export{animations}from"./helpers/animations.js";export{filterToolbarPreview}from"./helpers/filter-toolbar-preview.js";export{flattenConnection}from"./helpers/flatten-connection.js";export{getResponsiveStateValue,getResponsiveValue,getResponsiveValueByScreen,isColumnDirectionExist}from"./helpers/get-resonsive-value.js";export{getShortName}from"./helpers/get-shortname.js";export{default as globalEvent}from"./helpers/GlobalEvent.js";export{default as isBrowser}from"./helpers/is-browser.js";export{isEmptyChildren}from"./helpers/is-empty-children.js";export{default as isSafari}from"./helpers/is-safari.js";export{normalizeBuilderData}from"./helpers/normalize-builder-data.js";export{prefetchQueries}from"./helpers/prefetch-queries.js";export{validateEmail}from"./helpers/email.js";export{loadScript}from"./helpers/load-script.js";export{composeSpacing,getSpacingVariable}from"./helpers/spacing.js";export{genVariable}from"./helpers/css-variable.js";import*as e from"./helpers/tracking/fpixel.js";import*as o from"./helpers/tracking/gtag.js";import*as t from"./helpers/tracking/tiktokpixel.js";export{GRADIENT_BGR_KEY,composeBackgroundCss,getBgByDevice,getBgImageByDevice,getBgVideoByDevice,getColor,getCombinedBackgroundImage,getGradientBgrStyleByDevice,getGradientBgrStyleForButton,getGradientImageBgrStyleByDevice,getStyleBackgroundByDevice,getStyleBgColor,makeFixedBgAttachment}from"./helpers/background.js";export{composeBackgroundImageCss,getBgImageSourceByDevice,getStyleBackgroundImage,getStyleBgImageSource}from"./helpers/backgroundImage.js";export{composeTextColorCss,getGlobalColorCSSProp,getGlobalColorClass,getGlobalColorResponsiveClass,getGlobalColorResponsiveStyle,getGlobalColorStateClass,getGlobalColorStateClassDynamicBtn,getGlobalColorStateResponsiveClass,getGlobalColorStateResponsiveClassDynamicBtn,getGlobalColorStateResponsiveStyle,getGlobalColorStateStyle,getGlobalColorStyle,getSingleColorVariable,isColor}from"./helpers/colors.js";export{composeAdvanceStyle,composeAdvanceStyleForPostPurchase,convertBoxShadowV1ToV2,filterAttrInStyle,getCornerStyle,removeAttrInStyle,removePaddingYInStyle,splitStyle}from"./helpers/compose-advance-style.js";export{composeClasses}from"./helpers/composeClasses.js";export{baseAssetURL,isLocalEnv}from"./helpers/convert.js";export{convertHTML}from"./helpers/covert-entities-html.js";export{composePositionLineHeight,composePostionIconList}from"./helpers/icon-list.js";export{isDefined}from"./helpers/is-defined.js";export{composeGridLayout,convertOldLayout,getLayoutClasses,gridToArrayRegex,optionLayoutStyle}from"./helpers/layout.js";export{makeAspectRatio,makeGlobalSizeHeightResponsive,makeGlobalSizeWidthResponsive,makeHeight,makeLineClamp,makeStyle,makeStyleKey,makeStyleResponsive,makeStyleResponsiveByScreen,makeStyleResponsiveState,makeStyleResponsiveWidth,makeStyleResponsiveWidthWithoutAuto,makeStyleState,makeWidth,removeNullUndefined}from"./helpers/make-style.js";export{convertTextAlignToJustify,getAlignmentClasses}from"./helpers/align.js";export{filterHoverVariables,filterTruthyStyles}from"./helpers/filter-styles.js";export{checkInStock}from"./helpers/variant.js";export{checkAvailableVariantInStock,getSelectedVariant,parseSelectedOption}from"./helpers/product.js";export{generateCollectionQueryKey,generateProductQueryKey,generateProductsQueryKey}from"./helpers/query.js";export{composeCornerCss,composeRadius,composeRadiusResponsive,getCornerCSSFromGlobal,getCustomRadius,getRadiusCSSFromGlobal,getRadiusStyleActiveState}from"./helpers/radius.js";export{RenderIf,composeMemo,dataStringify,props,removeUndefinedValuesFromObject,sanitizeLiquid,styles,template}from"./helpers/render.js";export{composeShadow,composeShadowCss,getResponsiveStyleShadow,getResponsiveStyleShadowWithoutState,getStyleShadow,getStyleShadowState,parseValueWithUnit}from"./helpers/shadow.js";export{composeSize,composeSizeCss,genSizeClass,getAspectRatioGlobalSize,getFlexGrowClassByShapeGlobalSize,getGlobalSizeGap,getHeightByShapeGlobalSize,getPaddingGlobalSize,getPaddingStyleByDevice,getResponsiveStylePadding,getValueByDevice,getWidthByShapeGlobalSize,getWidthHeightGlobalSize,makeGlobalSize,makeGlobalSizeIcon,makeStyleWithDefault}from"./helpers/size.js";export{composeFallbackTypographyStyle,composeFontFamilyTypographyV2,composeTextHoverColorCss,composeTypography,composeTypographyAttr,composeTypographyClassName,composeTypographyCss,composeTypographyStyle,composeTypographyV2,composeTypographyV2Css,genTypoClass}from"./helpers/typography.js";export{useArticlesQuery,useBlogsQuery}from"./hooks/articles/useArticlesQuery.js";export{useAddToCart}from"./hooks/cart/use-add-to-cart.js";export{useCartData}from"./hooks/cart/use-cart-data.js";export{useCartDiscountCodesUpdate}from"./hooks/cart/use-cart-discount-codes-update.js";export{useCartNoteUpdate}from"./hooks/cart/use-cart-note-update.js";export{useCreateCart}from"./hooks/cart/use-create-cart.js";export{useRemoveCartItem}from"./hooks/cart/use-remove-cart-item.js";export{useUpdateCartItem}from"./hooks/cart/use-update-cart-item.js";export{useCheckoutUrl,useConnectedShopify,useCurrency,useEditorMode,useIsSampleProduct,useIsStorefrontProduct,useLocale,useMatchMutate,useMobileOnly,useMoneyFormat,usePageType,usePluginEnable,useStoreFront,useSwatches,useTimezone}from"./hooks/shop.js";export{useCollectionQuery}from"./hooks/shop/use-collection-query.js";export{useCollectionsQuery}from"./hooks/shop/use-collections-query.js";export{useProductQuery}from"./hooks/shop/use-product-query.js";export{useProductsQuery,useProductsQueryAll}from"./hooks/shop/use-products-query.js";export{useCurrentDevice}from"./hooks/use-current-device.js";export{useLazyVideo}from"./hooks/use-lazy-video.js";export{default as useCartId}from"./hooks/useCartId.js";export{default as useCartLine}from"./hooks/useCartLine.js";export{default as useCartUI}from"./hooks/useCartUI.js";export{useCollection}from"./hooks/useCollection.js";export{formatMoney,shopifyPriceRounding,useFormatMoney}from"./hooks/useFormatMoney.js";export{useId}from"react";export{default as useInitialSwatchesOptions}from"./hooks/useInitialSwatchesOptions.js";export{default as useIsomorphicLayoutEffect}from"./hooks/useIsomorphicLayoutEffect.js";export{default as useLoadScript}from"./hooks/useLoadScript.js";export{default as useMoney}from"./hooks/useMoney.js";export{usePrevious}from"./hooks/usePrevious.js";export{useI18n}from"./hooks/useI18n.js";export{useStickyStore}from"./hooks/useStickyStore.js";export{useCheckAvailableVariantInStock,useCurrentVariant,useCurrentVariantInStock,useFeaturedImageGlobal,useHasPreSelected,useIsSyncProduct,useProduct,useProductBundleDiscount,useProductOfferDiscount,useProductProperties,useProductShopifyEditLink,useQuantity,useSelectedOption,useUniqProductID,useVariant,useVariantOutStock,useVariants}from"./hooks/useProduct.js";export{useShopifyLink}from"./hooks/shop/useShopifyLink.js";export{useProductList,useProductListProducts,useProductListSettings,useProductListStyles}from"./hooks/useProductList.js";export{default as useSuspenseFetch}from"./hooks/useSuspenseFetch.js";export{default as useSwatchesOptions}from"./hooks/useSwatchesOptions.js";export{InteractionTargetEvent,InteractionTriggerEvent}from"./types/custom.js";import*as r from"./types/shop.js";import*as s from"./types/appAPI.js";export{OptionNormalStyle,OptionSpecialStyle}from"./types/global-style.js";export{AnimationDirectionType,AnimationEasingType,AnimationSetting,AnimationTriggerType,AnimationType,AnimationZoomDirectionType}from"./types/animations.js";export{calculateFirstProduct,getCollection}from"./helpers/queries/get-collection.js";export{fetchMedias,fetchVariants,getProduct}from"./helpers/queries/get-product.js";export{getProductBySlug}from"./helpers/queries/get-product-by-slug.js";export{getAppBlocks}from"./helpers/third-party/getAppBlocks.js";export{addAppBlockId}from"./helpers/third-party/addAppBlockId.js";export{useInteraction}from"./helpers/interaction/index.js";export{DEVICES,EMPTY_DEVICE_VALUE}from"./constants/device.js";export{e as fpixel,o as gtag,t as tiktokpixel,r as ShopType,s as AppAPIType};
|
|
1
|
+
export{default as AddOn}from"./components/AddOn.js";export{default as Render}from"./components/Render.js";export{default as RenderPreview}from"./components/RenderPreview.js";export{RenderChildren,default as RenderLiquid,WrapRenderChildren}from"./components/Render.liquid.js";export{AddonProvider,useAddon,useAddons}from"./contexts/AddonContext.js";export{BuilderComponentProvider,useBuilderComponent}from"./contexts/BuilderComponent.js";export{BuilderProvider,useBuilderStore}from"./contexts/BuilderContext.js";export{BuilderPreviewProvider,useBuilderPreviewStore}from"./contexts/BuilderPreviewContext.js";export{CartLineProvider,useCartLineStore}from"./contexts/CartLineContext.js";export{ProductListProvider,useProductListStore}from"./contexts/ProductListContext.js";export{ProductProvider,useProductStore}from"./contexts/ProductContext.js";export{SectionProvider,useSection,useSectionStore}from"./contexts/SectionContext.js";export{ShopProvider,useShopStore}from"./contexts/ShopContext.js";export{PageProvider,usePageStore}from"./contexts/PageContext.js";export{CollectionProvider,useCollectionStore}from"./contexts/CollectionContext.js";export{ModalProvider,useModalStore}from"./contexts/ModalContext.js";export{ArticleListProvider,useArticleListStore}from"./contexts/ArticleListContext.js";export{ArticleProvider,useArticleStore}from"./contexts/ArticleContext.js";export{I18nProvider,useI18nStore}from"./contexts/I18nContext.js";export{PageViewUpDocument}from"./graphql/mutations/page-view-up.generated.js";export{CollectionDetailFilterDocument}from"./graphql/queries/collection-detail-filter.generated.js";export{CollectionDocument}from"./graphql/queries/collection.generated.js";export{CollectionsDocument}from"./graphql/queries/collections.generated.js";export{PublishedThemePagesDocument}from"./graphql/queries/published-theme-pages.generated.js";export{ProductsDocument}from"./graphql/queries/products.generated.js";export{StorePropertyDocument}from"./graphql/queries/store-property.generated.js";export{PreviewThemePageDocument}from"./graphql/queries/preview-page.generated.js";export{PublishedShopMetasDocument}from"./graphql/queries/published-shop-metas.generated.js";export{ShopShopifyDocument}from"./graphql/queries/shop-shopify.generated.js";export{ArticlesDocument}from"./graphql/queries/articles.generated.js";export{BlogsDocument}from"./graphql/queries/blogs.generated.js";export{LibraryTemplateDocument}from"./graphql-app-api/queries/LibraryTemplate.generated.js";export{ThemePageDocument}from"./graphql-app-api/queries/ThemePage.generated.js";export{SaleFunnelDiscountsDocument}from"./graphql-app-api/queries/SaleFunnelDiscounts.generated.js";export{LibrarySaleFunnelDocument}from"./graphql-app-api/queries/LibrarySaleFunnelDiscount.generated.js";export{ShopLibraryPageDocument}from"./graphql-app-api/queries/ShopLibraryPage.generated.js";export{SaleFunnelOfferDocument}from"./graphql-app-api/queries/SaleFunnelOffer.generated.js";export{composeBorderCss,composeBorderResponsive,getBorderRadiusStyle,getBorderStyle,handleConvertBorderColor,handleConvertBorderStyle,handleConvertBorderWidth,handleConvertClassColor,handleConvertClassColorDynamicBtn,handleConvertInputBorderColor}from"./helpers/borders.js";export{getCarouselContainerHeight,makeContainerWidthOrHeight,makeDotGapToCarouselStyle}from"./helpers/carousel.js";export{cls}from"./helpers/cls.js";export{animations}from"./helpers/animations.js";export{filterToolbarPreview}from"./helpers/filter-toolbar-preview.js";export{flattenConnection}from"./helpers/flatten-connection.js";export{getResponsiveStateValue,getResponsiveValue,getResponsiveValueByScreen,isColumnDirectionExist}from"./helpers/get-resonsive-value.js";export{getShortName}from"./helpers/get-shortname.js";export{default as globalEvent}from"./helpers/GlobalEvent.js";export{default as isBrowser}from"./helpers/is-browser.js";export{isEmptyChildren}from"./helpers/is-empty-children.js";export{default as isSafari}from"./helpers/is-safari.js";export{normalizeBuilderData}from"./helpers/normalize-builder-data.js";export{prefetchQueries}from"./helpers/prefetch-queries.js";export{validateEmail}from"./helpers/email.js";export{loadScript}from"./helpers/load-script.js";export{composeSpacing,getSpacingVariable}from"./helpers/spacing.js";export{genVariable}from"./helpers/css-variable.js";import*as e from"./helpers/tracking/fpixel.js";import*as o from"./helpers/tracking/gtag.js";import*as t from"./helpers/tracking/tiktokpixel.js";export{GRADIENT_BGR_KEY,composeBackgroundCss,getBgByDevice,getBgImageByDevice,getBgVideoByDevice,getColor,getCombinedBackgroundImage,getGradientBgrStyleByDevice,getGradientBgrStyleForButton,getGradientImageBgrStyleByDevice,getStyleBackgroundByDevice,getStyleBgColor,makeFixedBgAttachment}from"./helpers/background.js";export{composeBackgroundImageCss,getBgImageSourceByDevice,getStyleBackgroundImage,getStyleBgImageSource}from"./helpers/backgroundImage.js";export{composeTextColorCss,getGlobalColorCSSProp,getGlobalColorClass,getGlobalColorResponsiveClass,getGlobalColorResponsiveStyle,getGlobalColorStateClass,getGlobalColorStateClassDynamicBtn,getGlobalColorStateResponsiveClass,getGlobalColorStateResponsiveClassDynamicBtn,getGlobalColorStateResponsiveStyle,getGlobalColorStateStyle,getGlobalColorStyle,getSingleColorVariable,isColor}from"./helpers/colors.js";export{composeAdvanceStyle,composeAdvanceStyleForPostPurchase,convertBoxShadowV1ToV2,filterAttrInStyle,getCornerStyle,removeAttrInStyle,removePaddingYInStyle,splitStyle}from"./helpers/compose-advance-style.js";export{composeClasses}from"./helpers/composeClasses.js";export{baseAssetURL,isLocalEnv}from"./helpers/convert.js";export{convertHTML}from"./helpers/covert-entities-html.js";export{composePositionLineHeight,composePostionIconList}from"./helpers/icon-list.js";export{isDefined}from"./helpers/is-defined.js";export{composeGridLayout,convertOldLayout,getLayoutClasses,gridToArrayRegex,optionLayoutStyle}from"./helpers/layout.js";export{makeAspectRatio,makeGlobalSizeHeightResponsive,makeGlobalSizeWidthResponsive,makeHeight,makeLineClamp,makeStyle,makeStyleKey,makeStyleResponsive,makeStyleResponsiveByScreen,makeStyleResponsiveState,makeStyleResponsiveWidth,makeStyleResponsiveWidthWithoutAuto,makeStyleState,makeWidth,removeNullUndefined}from"./helpers/make-style.js";export{convertTextAlignToJustify,getAlignmentClasses}from"./helpers/align.js";export{filterHoverVariables,filterTruthyStyles}from"./helpers/filter-styles.js";export{checkInStock}from"./helpers/variant.js";export{checkAvailableVariantInStock,getSelectedVariant,parseSelectedOption}from"./helpers/product.js";export{generateCollectionQueryKey,generateProductQueryKey,generateProductsQueryKey}from"./helpers/query.js";export{composeCornerCss,composeRadius,composeRadiusResponsive,getCornerCSSFromGlobal,getCustomRadius,getRadiusCSSFromGlobal,getRadiusStyleActiveState}from"./helpers/radius.js";export{RenderIf,composeMemo,dataStringify,props,removeUndefinedValuesFromObject,sanitizeLiquid,styles,template}from"./helpers/render.js";export{composeShadow,composeShadowCss,getResponsiveStyleShadow,getResponsiveStyleShadowWithoutState,getStyleShadow,getStyleShadowState,parseValueWithUnit}from"./helpers/shadow.js";export{composeSize,composeSizeCss,genSizeClass,getAspectRatioGlobalSize,getFlexGrowClassByShapeGlobalSize,getGlobalSizeGap,getHeightByShapeGlobalSize,getPaddingGlobalSize,getPaddingStyleByDevice,getResponsiveStylePadding,getValueByDevice,getWidthByShapeGlobalSize,getWidthHeightGlobalSize,makeGlobalSize,makeGlobalSizeIcon,makeStyleWithDefault}from"./helpers/size.js";export{composeFallbackTypographyStyle,composeFontFamilyTypographyV2,composeTextHoverColorCss,composeTypography,composeTypographyAttr,composeTypographyClassName,composeTypographyCss,composeTypographyStyle,composeTypographyV2,composeTypographyV2Css,genTypoClass}from"./helpers/typography.js";export{useArticlesQuery,useBlogsQuery}from"./hooks/articles/useArticlesQuery.js";export{useAddToCart}from"./hooks/cart/use-add-to-cart.js";export{useCartData}from"./hooks/cart/use-cart-data.js";export{useCartDiscountCodesUpdate}from"./hooks/cart/use-cart-discount-codes-update.js";export{useCartNoteUpdate}from"./hooks/cart/use-cart-note-update.js";export{useCreateCart}from"./hooks/cart/use-create-cart.js";export{useRemoveCartItem}from"./hooks/cart/use-remove-cart-item.js";export{useUpdateCartItem}from"./hooks/cart/use-update-cart-item.js";export{useCheckoutUrl,useConnectedShopify,useCurrency,useEditorMode,useIsSampleProduct,useIsStorefrontProduct,useLocale,useMatchMutate,useMobileOnly,useMoneyFormat,usePageType,usePluginEnable,useStoreFront,useSwatches,useTimezone}from"./hooks/shop.js";export{useCollectionQuery}from"./hooks/shop/use-collection-query.js";export{useCollectionsQuery}from"./hooks/shop/use-collections-query.js";export{useProductQuery}from"./hooks/shop/use-product-query.js";export{useFetchHandle}from"./hooks/useFetchHandle.js";export{useProductsQuery,useProductsQueryAll}from"./hooks/shop/use-products-query.js";export{useCurrentDevice}from"./hooks/use-current-device.js";export{useLazyVideo}from"./hooks/use-lazy-video.js";export{default as useCartId}from"./hooks/useCartId.js";export{default as useCartLine}from"./hooks/useCartLine.js";export{default as useCartUI}from"./hooks/useCartUI.js";export{useCollection}from"./hooks/useCollection.js";export{formatMoney,shopifyPriceRounding,useFormatMoney}from"./hooks/useFormatMoney.js";export{useId}from"react";export{default as useInitialSwatchesOptions}from"./hooks/useInitialSwatchesOptions.js";export{default as useIsomorphicLayoutEffect}from"./hooks/useIsomorphicLayoutEffect.js";export{default as useLoadScript}from"./hooks/useLoadScript.js";export{default as useMoney}from"./hooks/useMoney.js";export{usePrevious}from"./hooks/usePrevious.js";export{useI18n}from"./hooks/useI18n.js";export{useStickyStore}from"./hooks/useStickyStore.js";export{useCheckAvailableVariantInStock,useCurrentVariant,useCurrentVariantInStock,useFeaturedImageGlobal,useHasPreSelected,useIsSyncProduct,useProduct,useProductBundleDiscount,useProductOfferDiscount,useProductProperties,useProductShopifyEditLink,useQuantity,useSelectedOption,useUniqProductID,useVariant,useVariantOutStock,useVariants}from"./hooks/useProduct.js";export{useShopifyLink}from"./hooks/shop/useShopifyLink.js";export{useProductList,useProductListProducts,useProductListSettings,useProductListStyles}from"./hooks/useProductList.js";export{default as useSuspenseFetch}from"./hooks/useSuspenseFetch.js";export{default as useSwatchesOptions}from"./hooks/useSwatchesOptions.js";export{useRenderMode}from"./hooks/useRenderMode.js";export{usePreviewSharePage}from"./hooks/usePreviewSharePage.js";export{RenderModeEnv}from"./types/builder.js";export{InteractionTargetEvent,InteractionTriggerEvent}from"./types/custom.js";import*as r from"./types/shop.js";import*as s from"./types/appAPI.js";export{OptionNormalStyle,OptionSpecialStyle}from"./types/global-style.js";export{AnimationDirectionType,AnimationEasingType,AnimationSetting,AnimationTriggerType,AnimationType,AnimationZoomDirectionType}from"./types/animations.js";export{calculateFirstProduct,getCollection}from"./helpers/queries/get-collection.js";export{fetchMedias,fetchVariants,getProduct}from"./helpers/queries/get-product.js";export{getProductBySlug}from"./helpers/queries/get-product-by-slug.js";export{getAppBlocks}from"./helpers/third-party/getAppBlocks.js";export{addAppBlockId}from"./helpers/third-party/addAppBlockId.js";export{useInteraction}from"./helpers/interaction/index.js";export{createStoreFrontFetcher,hasPublicStoreFrontData}from"./helpers/create-store-front-fetcher.js";export{DEVICES,EMPTY_DEVICE_VALUE}from"./constants/device.js";export{e as fpixel,o as gtag,t as tiktokpixel,r as ShopType,s as AppAPIType};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var RenderModeEnv;!function(e){e.EDIT="edit",e.PREVIEW="preview",e.PREVIEW_POST_PURCHASE="preview-post-purchase",e.PREVIEW_SHARE_PAGE="preview-share-page"}(RenderModeEnv||(RenderModeEnv={}));export{RenderModeEnv};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -7329,7 +7329,13 @@ type BuilderState = {
|
|
|
7329
7329
|
ROOT: BlockEntity;
|
|
7330
7330
|
} & SectionData;
|
|
7331
7331
|
type SectionData = Record<string, BuilderEntity>;
|
|
7332
|
-
|
|
7332
|
+
declare enum RenderModeEnv {
|
|
7333
|
+
EDIT = "edit",
|
|
7334
|
+
PREVIEW = "preview",
|
|
7335
|
+
PREVIEW_POST_PURCHASE = "preview-post-purchase",
|
|
7336
|
+
PREVIEW_SHARE_PAGE = "preview-share-page"
|
|
7337
|
+
}
|
|
7338
|
+
type RenderMode = RenderModeEnv;
|
|
7333
7339
|
type DynamicProduct = {
|
|
7334
7340
|
productId?: string;
|
|
7335
7341
|
productHandle?: string;
|
|
@@ -34242,7 +34248,7 @@ type StampedWidgetTypeV2 = 'main-widget' | 'product-rating-image' | 'badge-doubl
|
|
|
34242
34248
|
type LaiProductReviewsWidgetType = 'reviews_widget' | 'star_ratings' | 'homepage_reviews' | 'happy_customer_reviews' | 'star_ratings_in_list' | 'advanced_widget';
|
|
34243
34249
|
type LaiProductReviewsAdvancedWidgetType = 'cardCarousel' | 'testimonialCarousel' | 'mediaGallery' | 'cardGrid';
|
|
34244
34250
|
type YotpoReviewsWidgetType = 'reviews' | 'star-rating' | 'reviewHighlights';
|
|
34245
|
-
type BogosWidgetType = 'icon' | 'thumnail' | 'slider' | 'message' | 'classic-bundle' | 'quantity-break' | 'mix-match' | 'classic-bundle' | 'fbt'
|
|
34251
|
+
type BogosWidgetType = 'icon' | 'thumnail' | 'slider' | 'message' | 'classic-bundle' | 'quantity-break' | 'mix-match' | 'classic-bundle' | 'fbt';
|
|
34246
34252
|
type PreOrderNowWodWidgetType = 'app-block' | 'popups-block';
|
|
34247
34253
|
type TagShopWidgetType = 'homeLandingGalleries' | 'productGalleries' | 'tagGalleries';
|
|
34248
34254
|
type AirProductReview = 'review_box' | 'star_rating' | 'review_carousel';
|
|
@@ -35509,11 +35515,16 @@ declare const productDetail: (product: ProductInputAnalytic) => void;
|
|
|
35509
35515
|
* https://developers.google.com/analytics/devguides/collection/analyticsjs/enhanced-ecommerce#add-remove-cart
|
|
35510
35516
|
*/
|
|
35511
35517
|
declare const removeFromCart: (product: ProductInputAnalytic, price: number) => void;
|
|
35518
|
+
declare const sharePageView: (url: string, trackingId?: string | null, params?: {
|
|
35519
|
+
page_id?: string;
|
|
35520
|
+
source_shop_id?: string;
|
|
35521
|
+
}) => void;
|
|
35512
35522
|
|
|
35513
35523
|
declare const gtag_pageview: typeof pageview;
|
|
35514
35524
|
declare const gtag_productClick: typeof productClick;
|
|
35515
35525
|
declare const gtag_productDetail: typeof productDetail;
|
|
35516
35526
|
declare const gtag_removeFromCart: typeof removeFromCart;
|
|
35527
|
+
declare const gtag_sharePageView: typeof sharePageView;
|
|
35517
35528
|
declare namespace gtag {
|
|
35518
35529
|
export {
|
|
35519
35530
|
addToCart$1 as addToCart,
|
|
@@ -35521,6 +35532,7 @@ declare namespace gtag {
|
|
|
35521
35532
|
gtag_productClick as productClick,
|
|
35522
35533
|
gtag_productDetail as productDetail,
|
|
35523
35534
|
gtag_removeFromCart as removeFromCart,
|
|
35535
|
+
gtag_sharePageView as sharePageView,
|
|
35524
35536
|
};
|
|
35525
35537
|
}
|
|
35526
35538
|
|
|
@@ -35891,6 +35903,8 @@ type InputUnitControlType<T> = SharedControlType<T> & {
|
|
|
35891
35903
|
isNumber?: boolean;
|
|
35892
35904
|
fallbackValue?: string | number;
|
|
35893
35905
|
hasSpaceBeforeUnit?: boolean;
|
|
35906
|
+
inputType?: string;
|
|
35907
|
+
disableAutoValue?: boolean;
|
|
35894
35908
|
};
|
|
35895
35909
|
|
|
35896
35910
|
type MarginControlType<T> = SharedControlType<T> & {
|
|
@@ -47825,7 +47839,7 @@ declare const useStoreFront: () => {
|
|
|
47825
47839
|
storefrontUrl: string | undefined;
|
|
47826
47840
|
};
|
|
47827
47841
|
declare const usePluginEnable: () => string[] | undefined;
|
|
47828
|
-
declare const useEditorMode: () =>
|
|
47842
|
+
declare const useEditorMode: () => RenderModeEnv | undefined;
|
|
47829
47843
|
declare const useMobileOnly: () => boolean | undefined;
|
|
47830
47844
|
declare const useMatchMutate: () => <T = any>(matcher: RegExp, opts?: boolean | MutatorOptions<T> | undefined) => Promise<(T | undefined)[][]>;
|
|
47831
47845
|
declare function useConnectedShopify(): boolean;
|
|
@@ -47846,12 +47860,14 @@ declare const useCollectionsQuery: (variable: CollectionsQueryVariables, options
|
|
|
47846
47860
|
|
|
47847
47861
|
declare const useProductQuery: (productId?: string, options?: SWRConfiguration<ProductSelectFragment>, customFetcher?: FetchFunc) => swr__internal.SWRResponse<ProductSelectFragment, any, Partial<swr__internal.PublicConfiguration<ProductSelectFragment, any, (arg: ["query/product", FetchProductParams]) => swr__internal.FetcherResponse<ProductSelectFragment>>> | undefined>;
|
|
47848
47862
|
|
|
47863
|
+
declare const useFetchHandle: () => FetchFunc;
|
|
47864
|
+
|
|
47849
47865
|
declare const useProductsQuery: (ids?: string[], options?: SWRConfiguration<ProductsQueryResponse>, params?: {
|
|
47850
47866
|
defaultSelectedProductCount?: number;
|
|
47851
47867
|
allStatus?: boolean;
|
|
47852
47868
|
fetcher?: FetchFunc;
|
|
47853
47869
|
}) => swr__internal.SWRResponse<ProductsQueryResponse, any, Partial<swr__internal.PublicConfiguration<ProductsQueryResponse, any, (arg: ["query/products", FetchProductsParams]) => swr__internal.FetcherResponse<ProductsQueryResponse>>> | undefined>;
|
|
47854
|
-
declare const useProductsQueryAll: (variable?: VariableRelatedStyles | undefined, options?: SWRConfiguration<ProductsQueryResponse
|
|
47870
|
+
declare const useProductsQueryAll: (variable?: VariableRelatedStyles | undefined, options?: SWRConfiguration<ProductsQueryResponse>, customFetcher?: FetchFunc) => swr__internal.SWRResponse<ProductsQueryResponse, any, Partial<swr__internal.PublicConfiguration<ProductsQueryResponse, any, (arg: ["query/products", any]) => swr__internal.FetcherResponse<ProductsQueryResponse>>> | undefined>;
|
|
47855
47871
|
|
|
47856
47872
|
declare const useCurrentDevice: () => NameDevices;
|
|
47857
47873
|
|
|
@@ -48037,6 +48053,17 @@ declare const useSuspenseFetch: <T>(key: string | any[], promise: () => Promise<
|
|
|
48037
48053
|
|
|
48038
48054
|
declare const useSwatchesOptions: (options?: ProductOption$1[]) => ProductOption$1[];
|
|
48039
48055
|
|
|
48056
|
+
declare const useRenderMode: () => {
|
|
48057
|
+
isEditMode: boolean;
|
|
48058
|
+
isPreviewMode: boolean;
|
|
48059
|
+
isPreviewSharePageMode: boolean;
|
|
48060
|
+
isPreviewPostPurchaseMode: boolean;
|
|
48061
|
+
};
|
|
48062
|
+
|
|
48063
|
+
declare const usePreviewSharePage: () => {
|
|
48064
|
+
disableExternalLinks: () => void;
|
|
48065
|
+
};
|
|
48066
|
+
|
|
48040
48067
|
type PublishedThemePageSelectFragment = Pick<PublishedThemePage$1, 'id' | 'name' | 'handle' | 'isMobile' | 'sectionPosition'> & {
|
|
48041
48068
|
themePageCustomSections?: Maybe$1<Array<Maybe$1<Pick<PublishedCustomSection$1, 'cid' | 'component' | 'id' | 'type'>>>>;
|
|
48042
48069
|
pageSections?: Maybe$1<Array<Maybe$1<Pick<PublishedPageSection$1, 'cid' | 'component' | 'id'>>>>;
|
|
@@ -48093,7 +48120,10 @@ declare const useInteraction: () => {
|
|
|
48093
48120
|
interactionListenerLoaded: (callback: () => void) => void;
|
|
48094
48121
|
};
|
|
48095
48122
|
|
|
48123
|
+
declare const createStoreFrontFetcher: (publicStoreFrontData: PublicStoreFrontData) => (args: any[]) => Promise<any>;
|
|
48124
|
+
declare const hasPublicStoreFrontData: (publicStoreFrontData: PublicStoreFrontData | null | undefined) => publicStoreFrontData is PublicStoreFrontData;
|
|
48125
|
+
|
|
48096
48126
|
declare const DEVICES: NameDevices[];
|
|
48097
48127
|
declare const EMPTY_DEVICE_VALUE: undefined;
|
|
48098
48128
|
|
|
48099
|
-
export { AddOn, AddonProvider, AddonProviderProps, AdvancedType, AirProductReview, AliReviewsWidgetType, AlignItemProp, AlignProp, AnimationBaseSetting, AnimationConfig, AnimationDirectionType, AnimationEasingType, AnimationFadeSettingType, AnimationSetting, AnimationSettingType, AnimationShakeSettingType, AnimationSlideSettingType, AnimationTrigger, AnimationTriggerType, AnimationType, AnimationZoomDirectionType, AnimationZoomSettingType, appAPI as AppAPIType, ArticleListProvider, ArticleListProviderProps, ArticleProvider, ArticleProviderProps, ArticlesDocument, ArticlesQueryResponse, ArticlesQueryVariables, Background, BackgroundImageValue, BackgroundMedia, BackgroundVideoValue, BaseProps, BasePropsWrap, BlockEntity, BlogsDocument, BlogsQueryResponse, BlogsQueryVariables, BogosWidgetType, BoldSubscriptionsWidgetType, Border, BorderStyle, BuilderComponentProvider, BuilderComponentProviderProps, BuilderEntity, BuilderEntityNested, BuilderPreviewProvider, BuilderPreviewProviderProps, BuilderProvider, BuilderProviderProps, BuilderState, Builtin, CSSStateKey, CartLineProvider, CartLineProviderProps, CollectionDetailFilterDocument, CollectionDetailFilterQueryResponse, CollectionDetailFilterQueryVariables, CollectionDocument, CollectionProvider, CollectionProviderProps, CollectionQueryResponse, CollectionQueryVariables, CollectionSelectFragment, CollectionsDocument, CollectionsQueryResponse, CollectionsQueryVariables, ColorKey, ColorType$1 as ColorType, ColorValueType, Component, ComponentPreset, ComponentSetting, ContainerProp, ControlProp, ControlTriggerAction, ControlUI, CornerRadius, CornerRadiusType, CustomComponentConfig, DEVICES, DeepPartial, DotStyle, Dropdown, DynamicCollection, DynamicProduct, EMPTY_DEVICE_VALUE, ExtractState, FastBundleWidgetType, FeraReviewsV3WidgetType, FeraReviewsWidgetType, FetchCollectionArgs, FetchFunc, FetchProductParams, FlexDirectionProp, FontName, GRADIENT_BGR_KEY, GlobalStyleConfig, GlobalStyleResponsiveConfig, GlobalSwatchesData, GraphQLConnection, GroupPropType, GrowaveWidgetTypeV1, GrowaveWidgetTypeV2, HSLAColorType, HSLColorType, HexColorType, I18nProvider, I18nProviderProps, ImageShape$1 as ImageShape, InitComponentType, InstantJudgeMeReviewsWidgetType, InstantKlaviyoWidgetType, InstantLooxReviewsWidgetType, Interaction, InteractionCondition, InteractionElement, InteractionTarget, InteractionTargetEvent, InteractionTargetEventObject, InteractionTriggerEvent, JudgeMeReviewsWidgetType, KlaviyoWidgetType, LaiProductReviewsAdvancedWidgetType, LaiProductReviewsWidgetType, LibrarySaleFunnelDocument, LibrarySaleFunnelQueryResponse, LibrarySaleFunnelQueryVariables, LibraryTemplateDocument, LibraryTemplateQueryResponse, LibraryTemplateQueryVariables, LooxReviewsWidgetType, LooxReviewsWidgetTypeV2, MediaSelectFragment, ModalProvider, ModalProviderProps, NameDevices, NestedKeys, ObjectDeviceGlobalType, ObjectDevices, ObjectLayoutValue, OmnisendWidgetType, OnlyOne, OpinewDesignWidgetType, OpinewWidgetType, Option$4 as Option, OptionNormalStyle, OptionSpecialStyle, Options$1 as Options, PaddingType, PageContext, PageProvider, PageProviderProps, PageType, PageViewUpDocument, PageViewUpMutationResponse, PageViewUpMutationVariables, PickyStoryWidgetType, PostPurchaseTypo, PreOrderNowWodWidgetType, PreviewThemePageDocument, PreviewThemePageQueryResponse, PreviewThemePageQueryVariables, Primitive, ProductInputAnalytic, ProductListProvider, ProductListProviderProps, ProductOffer, ProductProvider, ProductProviderProps, ProductReviewsWidgetType, ProductSelectFragment, ProductsDocument, ProductsQueryResponse, ProductsQueryVariables, PublicStoreFrontData, PublishedShopMetasDocument, PublishedShopMetasQueryResponse, PublishedShopMetasQueryVariables, PublishedThemePageSelectFragment, PublishedThemePagesDocument, PublishedThemePagesQueryResponse, PublishedThemePagesQueryVariables, RGBAColorType, RGBColorType, Ratio$1 as Ratio, RawChild, RenderMemo as Render, RenderChildren, RenderIf, Render as RenderLiquid, RenderMode, RenderPreviewMemo as RenderPreview, RequiredCursorEdge, ResponsiveKey, ResponsiveStateProp, RivyoWidgetType, RoundedSize, RyviuWidgetType, SaleFunnelDiscount$1 as SaleFunnelDiscount, SaleFunnelDiscountEdge$1 as SaleFunnelDiscountEdge, SaleFunnelDiscountObjectType$1 as SaleFunnelDiscountObjectType, SaleFunnelDiscountType$1 as SaleFunnelDiscountType, SaleFunnelDiscountValueType$1 as SaleFunnelDiscountValueType, SaleFunnelDiscountsDocument, SaleFunnelDiscountsQueryResponse, SaleFunnelDiscountsQueryVariables, SaleFunnelOfferDocument, SaleFunnelOfferQueryResponse, SaleFunnelOfferQueryVariables, Scalars$1 as Scalars, ScaleByDirection, SectionData, SectionEntity, SectionProvider, SectionProviderProps, Setting, SettingByAnimationType, SettingByAnimationValues, SettingUIControl, SettingUIGroup, ShadowProps, ShadowStyle, ShadowStyleApplied, ShadowType, ShopLibraryPageDocument, ShopLibraryPageQueryResponse, ShopLibraryPageQueryVariables, ShopProvider, ShopProviderProps, ShopShopifyDocument, ShopShopifyQueryResponse, ShopShopifyQueryVariables, shop as ShopType, SizeProps, SizeSetting$1 as SizeSetting, SizeSettingGlobal, SizeType, SpacingType, StampedWidgetType, StampedWidgetTypeV2, StateProp, StateSelector, StateType, StoreConfig, StorePropertyDocument, StorePropertyQueryResponse, StorePropertyQueryVariables, SwatchesOptionType, SwatchesOptionValue, TagShopWidgetType, ThemePageDocument, ThemePageQueryResponse, ThemePageQueryVariables, ThemeSectionStatus$1 as ThemeSectionStatus, TransformProp, TriggerConfig, TrustooWidgetType, TypographyProps, TypographySetting, TypographySettingV2, TypographyType, TypographyV2Attrs, TypographyV2Family, TypographyV2FontFamilyType, TypographyV2Props, UltimateSalesBoostWidgetType, ValidateType, VariableRelatedStyles, VariantSelectFragment, VitalsWidgetType, WiserV2WidgetType, WiserWidgetType, WrapRenderChildren, YotpoReviewsWidgetType, addAppBlockId, animations, baseAssetURL, calculateFirstProduct, checkAvailableVariantInStock, checkInStock, cls, composeAdvanceStyle, composeAdvanceStyleForPostPurchase, composeBackgroundCss, composeBackgroundImageCss, composeBorderCss, composeBorderResponsive, composeClasses, composeCornerCss, composeFallbackTypographyStyle, composeFontFamilyTypographyV2, composeGridLayout, composeMemo, composePositionLineHeight, composePostionIconList, composeRadius, composeRadiusResponsive, composeShadow, composeShadowCss, composeSize, composeSizeCss, composeSpacing, composeTextColorCss, composeTextHoverColorCss, composeTypography, composeTypographyAttr, composeTypographyClassName, composeTypographyCss, composeTypographyStyle, composeTypographyV2, composeTypographyV2Css, convertBoxShadowV1ToV2, convertHTML, convertOldLayout, convertTextAlignToJustify, dataStringify, fetchMedias, fetchVariants, filterAttrInStyle, filterHoverVariables, filterToolbarPreview, filterTruthyStyles, flattenConnection, formatMoney, fpixel, genSizeClass, genTypoClass, genVariable, generateCollectionQueryKey, generateProductQueryKey, generateProductsQueryKey, getAlignmentClasses, getAppBlocks, getAspectRatioGlobalSize, getBgByDevice, getBgImageByDevice, getBgImageSourceByDevice, getBgVideoByDevice, getBorderRadiusStyle, getBorderStyle, getCarouselContainerHeight, getCollection, getColor, getCombinedBackgroundImage, getCornerCSSFromGlobal, getCornerStyle, getCustomRadius, getFlexGrowClassByShapeGlobalSize, getGlobalColorCSSProp, getGlobalColorClass, getGlobalColorResponsiveClass, getGlobalColorResponsiveStyle, getGlobalColorStateClass, getGlobalColorStateClassDynamicBtn, getGlobalColorStateResponsiveClass, getGlobalColorStateResponsiveClassDynamicBtn, getGlobalColorStateResponsiveStyle, getGlobalColorStateStyle, getGlobalColorStyle, getGlobalSizeGap, getGradientBgrStyleByDevice, getGradientBgrStyleForButton, getGradientImageBgrStyleByDevice, getHeightByShapeGlobalSize, getLayoutClasses, getPaddingGlobalSize, getPaddingStyleByDevice, getProduct, getProductBySlug, getRadiusCSSFromGlobal, getRadiusStyleActiveState, getResponsiveStateValue, getResponsiveStylePadding, getResponsiveStyleShadow, getResponsiveStyleShadowWithoutState, getResponsiveValue, getResponsiveValueByScreen, getSelectedVariant, getShortName, getSingleColorVariable, getSpacingVariable, getStyleBackgroundByDevice, getStyleBackgroundImage, getStyleBgColor, getStyleBgImageSource, getStyleShadow, getStyleShadowState, getValueByDevice, getWidthByShapeGlobalSize, getWidthHeightGlobalSize, globalEvent, gridToArrayRegex, gtag, handleConvertBorderColor, handleConvertBorderStyle, handleConvertBorderWidth, handleConvertClassColor, handleConvertClassColorDynamicBtn, handleConvertInputBorderColor, isBrowser, isColor, isColumnDirectionExist, isDefined, isEmptyChildren, isLocalEnv, isSafari, loadScript, makeAspectRatio, makeContainerWidthOrHeight, makeDotGapToCarouselStyle, makeFixedBgAttachment, makeGlobalSize, makeGlobalSizeHeightResponsive, makeGlobalSizeIcon, makeGlobalSizeWidthResponsive, makeHeight, makeLineClamp, makeStyle, makeStyleKey, makeStyleResponsive, makeStyleResponsiveByScreen, makeStyleResponsiveState, makeStyleResponsiveWidth, makeStyleResponsiveWidthWithoutAuto, makeStyleState, makeStyleWithDefault, makeWidth, normalizeBuilderData, optionLayoutStyle, parseSelectedOption, parseValueWithUnit, prefetchQueries, props, removeAttrInStyle, removeNullUndefined, removePaddingYInStyle, removeUndefinedValuesFromObject, sanitizeLiquid, shopifyPriceRounding, splitStyle, styles, template, tiktokpixel, useAddToCart, useAddon, useAddons, useArticleListStore, useArticleStore, useArticlesQuery, useBlogsQuery, useBuilderComponent, useBuilderPreviewStore, useBuilderStore, useCartData, useCartDiscountCodesUpdate, useCartId, useCartLine, useCartLineStore, useCartNoteUpdate, useCartUI, useCheckAvailableVariantInStock, useCheckoutUrl, useCollection, useCollectionQuery, useCollectionStore, useCollectionsQuery, useConnectedShopify, useCreateCart, useCurrency, useCurrentDevice, useCurrentVariant, useCurrentVariantInStock, useEditorMode, useFeaturedImageGlobal, useFormatMoney, useHasPreSelected, useI18n, useI18nStore, useInitialSwatchesOptions, useInteraction, useIsSampleProduct, useIsStorefrontProduct, useIsSyncProduct, useIsomorphicLayoutEffect, useLazyVideo, useLoadScript, useLocale, useMatchMutate, useMobileOnly, useModalStore, useMoney, useMoneyFormat, usePageStore, usePageType, usePluginEnable, usePrevious, useProduct, useProductBundleDiscount, useProductList, useProductListProducts, useProductListSettings, useProductListStore, useProductListStyles, useProductOfferDiscount, useProductProperties, useProductQuery, useProductShopifyEditLink, useProductStore, useProductsQuery, useProductsQueryAll, useQuantity, useRemoveCartItem, useSection, useSectionStore, useSelectedOption, useShopStore, useShopifyLink, useStickyStore, useStoreFront, useSuspenseFetch, useSwatches, useSwatchesOptions, useTimezone, useUniqProductID, useUpdateCartItem, useVariant, useVariantOutStock, useVariants, validateEmail };
|
|
48129
|
+
export { AddOn, AddonProvider, AddonProviderProps, AdvancedType, AirProductReview, AliReviewsWidgetType, AlignItemProp, AlignProp, AnimationBaseSetting, AnimationConfig, AnimationDirectionType, AnimationEasingType, AnimationFadeSettingType, AnimationSetting, AnimationSettingType, AnimationShakeSettingType, AnimationSlideSettingType, AnimationTrigger, AnimationTriggerType, AnimationType, AnimationZoomDirectionType, AnimationZoomSettingType, appAPI as AppAPIType, ArticleListProvider, ArticleListProviderProps, ArticleProvider, ArticleProviderProps, ArticlesDocument, ArticlesQueryResponse, ArticlesQueryVariables, Background, BackgroundImageValue, BackgroundMedia, BackgroundVideoValue, BaseProps, BasePropsWrap, BlockEntity, BlogsDocument, BlogsQueryResponse, BlogsQueryVariables, BogosWidgetType, BoldSubscriptionsWidgetType, Border, BorderStyle, BuilderComponentProvider, BuilderComponentProviderProps, BuilderEntity, BuilderEntityNested, BuilderPreviewProvider, BuilderPreviewProviderProps, BuilderProvider, BuilderProviderProps, BuilderState, Builtin, CSSStateKey, CartLineProvider, CartLineProviderProps, CollectionDetailFilterDocument, CollectionDetailFilterQueryResponse, CollectionDetailFilterQueryVariables, CollectionDocument, CollectionProvider, CollectionProviderProps, CollectionQueryResponse, CollectionQueryVariables, CollectionSelectFragment, CollectionsDocument, CollectionsQueryResponse, CollectionsQueryVariables, ColorKey, ColorType$1 as ColorType, ColorValueType, Component, ComponentPreset, ComponentSetting, ContainerProp, ControlProp, ControlTriggerAction, ControlUI, CornerRadius, CornerRadiusType, CustomComponentConfig, DEVICES, DeepPartial, DotStyle, Dropdown, DynamicCollection, DynamicProduct, EMPTY_DEVICE_VALUE, ExtractState, FastBundleWidgetType, FeraReviewsV3WidgetType, FeraReviewsWidgetType, FetchCollectionArgs, FetchFunc, FetchProductParams, FlexDirectionProp, FontName, GRADIENT_BGR_KEY, GlobalStyleConfig, GlobalStyleResponsiveConfig, GlobalSwatchesData, GraphQLConnection, GroupPropType, GrowaveWidgetTypeV1, GrowaveWidgetTypeV2, HSLAColorType, HSLColorType, HexColorType, I18nProvider, I18nProviderProps, ImageShape$1 as ImageShape, InitComponentType, InstantJudgeMeReviewsWidgetType, InstantKlaviyoWidgetType, InstantLooxReviewsWidgetType, Interaction, InteractionCondition, InteractionElement, InteractionTarget, InteractionTargetEvent, InteractionTargetEventObject, InteractionTriggerEvent, JudgeMeReviewsWidgetType, KlaviyoWidgetType, LaiProductReviewsAdvancedWidgetType, LaiProductReviewsWidgetType, LibrarySaleFunnelDocument, LibrarySaleFunnelQueryResponse, LibrarySaleFunnelQueryVariables, LibraryTemplateDocument, LibraryTemplateQueryResponse, LibraryTemplateQueryVariables, LooxReviewsWidgetType, LooxReviewsWidgetTypeV2, MediaSelectFragment, ModalProvider, ModalProviderProps, NameDevices, NestedKeys, ObjectDeviceGlobalType, ObjectDevices, ObjectLayoutValue, OmnisendWidgetType, OnlyOne, OpinewDesignWidgetType, OpinewWidgetType, Option$4 as Option, OptionNormalStyle, OptionSpecialStyle, Options$1 as Options, PaddingType, PageContext, PageProvider, PageProviderProps, PageType, PageViewUpDocument, PageViewUpMutationResponse, PageViewUpMutationVariables, PickyStoryWidgetType, PostPurchaseTypo, PreOrderNowWodWidgetType, PreviewThemePageDocument, PreviewThemePageQueryResponse, PreviewThemePageQueryVariables, Primitive, ProductInputAnalytic, ProductListProvider, ProductListProviderProps, ProductOffer, ProductProvider, ProductProviderProps, ProductReviewsWidgetType, ProductSelectFragment, ProductsDocument, ProductsQueryResponse, ProductsQueryVariables, PublicStoreFrontData, PublishedShopMetasDocument, PublishedShopMetasQueryResponse, PublishedShopMetasQueryVariables, PublishedThemePageSelectFragment, PublishedThemePagesDocument, PublishedThemePagesQueryResponse, PublishedThemePagesQueryVariables, RGBAColorType, RGBColorType, Ratio$1 as Ratio, RawChild, RenderMemo as Render, RenderChildren, RenderIf, Render as RenderLiquid, RenderMode, RenderModeEnv, RenderPreviewMemo as RenderPreview, RequiredCursorEdge, ResponsiveKey, ResponsiveStateProp, RivyoWidgetType, RoundedSize, RyviuWidgetType, SaleFunnelDiscount$1 as SaleFunnelDiscount, SaleFunnelDiscountEdge$1 as SaleFunnelDiscountEdge, SaleFunnelDiscountObjectType$1 as SaleFunnelDiscountObjectType, SaleFunnelDiscountType$1 as SaleFunnelDiscountType, SaleFunnelDiscountValueType$1 as SaleFunnelDiscountValueType, SaleFunnelDiscountsDocument, SaleFunnelDiscountsQueryResponse, SaleFunnelDiscountsQueryVariables, SaleFunnelOfferDocument, SaleFunnelOfferQueryResponse, SaleFunnelOfferQueryVariables, Scalars$1 as Scalars, ScaleByDirection, SectionData, SectionEntity, SectionProvider, SectionProviderProps, Setting, SettingByAnimationType, SettingByAnimationValues, SettingUIControl, SettingUIGroup, ShadowProps, ShadowStyle, ShadowStyleApplied, ShadowType, ShopLibraryPageDocument, ShopLibraryPageQueryResponse, ShopLibraryPageQueryVariables, ShopProvider, ShopProviderProps, ShopShopifyDocument, ShopShopifyQueryResponse, ShopShopifyQueryVariables, shop as ShopType, SizeProps, SizeSetting$1 as SizeSetting, SizeSettingGlobal, SizeType, SpacingType, StampedWidgetType, StampedWidgetTypeV2, StateProp, StateSelector, StateType, StoreConfig, StorePropertyDocument, StorePropertyQueryResponse, StorePropertyQueryVariables, SwatchesOptionType, SwatchesOptionValue, TagShopWidgetType, ThemePageDocument, ThemePageQueryResponse, ThemePageQueryVariables, ThemeSectionStatus$1 as ThemeSectionStatus, TransformProp, TriggerConfig, TrustooWidgetType, TypographyProps, TypographySetting, TypographySettingV2, TypographyType, TypographyV2Attrs, TypographyV2Family, TypographyV2FontFamilyType, TypographyV2Props, UltimateSalesBoostWidgetType, ValidateType, VariableRelatedStyles, VariantSelectFragment, VitalsWidgetType, WiserV2WidgetType, WiserWidgetType, WrapRenderChildren, YotpoReviewsWidgetType, addAppBlockId, animations, baseAssetURL, calculateFirstProduct, checkAvailableVariantInStock, checkInStock, cls, composeAdvanceStyle, composeAdvanceStyleForPostPurchase, composeBackgroundCss, composeBackgroundImageCss, composeBorderCss, composeBorderResponsive, composeClasses, composeCornerCss, composeFallbackTypographyStyle, composeFontFamilyTypographyV2, composeGridLayout, composeMemo, composePositionLineHeight, composePostionIconList, composeRadius, composeRadiusResponsive, composeShadow, composeShadowCss, composeSize, composeSizeCss, composeSpacing, composeTextColorCss, composeTextHoverColorCss, composeTypography, composeTypographyAttr, composeTypographyClassName, composeTypographyCss, composeTypographyStyle, composeTypographyV2, composeTypographyV2Css, convertBoxShadowV1ToV2, convertHTML, convertOldLayout, convertTextAlignToJustify, createStoreFrontFetcher, dataStringify, fetchMedias, fetchVariants, filterAttrInStyle, filterHoverVariables, filterToolbarPreview, filterTruthyStyles, flattenConnection, formatMoney, fpixel, genSizeClass, genTypoClass, genVariable, generateCollectionQueryKey, generateProductQueryKey, generateProductsQueryKey, getAlignmentClasses, getAppBlocks, getAspectRatioGlobalSize, getBgByDevice, getBgImageByDevice, getBgImageSourceByDevice, getBgVideoByDevice, getBorderRadiusStyle, getBorderStyle, getCarouselContainerHeight, getCollection, getColor, getCombinedBackgroundImage, getCornerCSSFromGlobal, getCornerStyle, getCustomRadius, getFlexGrowClassByShapeGlobalSize, getGlobalColorCSSProp, getGlobalColorClass, getGlobalColorResponsiveClass, getGlobalColorResponsiveStyle, getGlobalColorStateClass, getGlobalColorStateClassDynamicBtn, getGlobalColorStateResponsiveClass, getGlobalColorStateResponsiveClassDynamicBtn, getGlobalColorStateResponsiveStyle, getGlobalColorStateStyle, getGlobalColorStyle, getGlobalSizeGap, getGradientBgrStyleByDevice, getGradientBgrStyleForButton, getGradientImageBgrStyleByDevice, getHeightByShapeGlobalSize, getLayoutClasses, getPaddingGlobalSize, getPaddingStyleByDevice, getProduct, getProductBySlug, getRadiusCSSFromGlobal, getRadiusStyleActiveState, getResponsiveStateValue, getResponsiveStylePadding, getResponsiveStyleShadow, getResponsiveStyleShadowWithoutState, getResponsiveValue, getResponsiveValueByScreen, getSelectedVariant, getShortName, getSingleColorVariable, getSpacingVariable, getStyleBackgroundByDevice, getStyleBackgroundImage, getStyleBgColor, getStyleBgImageSource, getStyleShadow, getStyleShadowState, getValueByDevice, getWidthByShapeGlobalSize, getWidthHeightGlobalSize, globalEvent, gridToArrayRegex, gtag, handleConvertBorderColor, handleConvertBorderStyle, handleConvertBorderWidth, handleConvertClassColor, handleConvertClassColorDynamicBtn, handleConvertInputBorderColor, hasPublicStoreFrontData, isBrowser, isColor, isColumnDirectionExist, isDefined, isEmptyChildren, isLocalEnv, isSafari, loadScript, makeAspectRatio, makeContainerWidthOrHeight, makeDotGapToCarouselStyle, makeFixedBgAttachment, makeGlobalSize, makeGlobalSizeHeightResponsive, makeGlobalSizeIcon, makeGlobalSizeWidthResponsive, makeHeight, makeLineClamp, makeStyle, makeStyleKey, makeStyleResponsive, makeStyleResponsiveByScreen, makeStyleResponsiveState, makeStyleResponsiveWidth, makeStyleResponsiveWidthWithoutAuto, makeStyleState, makeStyleWithDefault, makeWidth, normalizeBuilderData, optionLayoutStyle, parseSelectedOption, parseValueWithUnit, prefetchQueries, props, removeAttrInStyle, removeNullUndefined, removePaddingYInStyle, removeUndefinedValuesFromObject, sanitizeLiquid, shopifyPriceRounding, splitStyle, styles, template, tiktokpixel, useAddToCart, useAddon, useAddons, useArticleListStore, useArticleStore, useArticlesQuery, useBlogsQuery, useBuilderComponent, useBuilderPreviewStore, useBuilderStore, useCartData, useCartDiscountCodesUpdate, useCartId, useCartLine, useCartLineStore, useCartNoteUpdate, useCartUI, useCheckAvailableVariantInStock, useCheckoutUrl, useCollection, useCollectionQuery, useCollectionStore, useCollectionsQuery, useConnectedShopify, useCreateCart, useCurrency, useCurrentDevice, useCurrentVariant, useCurrentVariantInStock, useEditorMode, useFeaturedImageGlobal, useFetchHandle, useFormatMoney, useHasPreSelected, useI18n, useI18nStore, useInitialSwatchesOptions, useInteraction, useIsSampleProduct, useIsStorefrontProduct, useIsSyncProduct, useIsomorphicLayoutEffect, useLazyVideo, useLoadScript, useLocale, useMatchMutate, useMobileOnly, useModalStore, useMoney, useMoneyFormat, usePageStore, usePageType, usePluginEnable, usePreviewSharePage, usePrevious, useProduct, useProductBundleDiscount, useProductList, useProductListProducts, useProductListSettings, useProductListStore, useProductListStyles, useProductOfferDiscount, useProductProperties, useProductQuery, useProductShopifyEditLink, useProductStore, useProductsQuery, useProductsQueryAll, useQuantity, useRemoveCartItem, useRenderMode, useSection, useSectionStore, useSelectedOption, useShopStore, useShopifyLink, useStickyStore, useStoreFront, useSuspenseFetch, useSwatches, useSwatchesOptions, useTimezone, useUniqProductID, useUpdateCartItem, useVariant, useVariantOutStock, useVariants, validateEmail };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gem-sdk/core",
|
|
3
|
-
"version": "4.0
|
|
3
|
+
"version": "4.1.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"type-check": "yarn tsc --noEmit"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@gem-sdk/adapter-shopify": "
|
|
31
|
-
"@gem-sdk/styles": "
|
|
30
|
+
"@gem-sdk/adapter-shopify": "4.1.0",
|
|
31
|
+
"@gem-sdk/styles": "4.1.0",
|
|
32
32
|
"@types/classnames": "^2.3.1"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|