@gem-sdk/components 25.1.1 → 26.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/image/common/srcset.js +1 -1
- package/dist/cjs/product/components/product-bundle/ProductBundleDiscount.js +1 -1
- package/dist/cjs/product/components/product-bundle/ProductBundleDiscountWarning.js +2 -0
- package/dist/cjs/product/components/product-bundle/common/classes.js +1 -1
- package/dist/cjs/product/components/product-bundle/common/constants.js +1 -0
- package/dist/cjs/product/components/product-bundle/hooks/useProductBundleDataState.js +1 -83
- package/dist/cjs/product/components/product-button/common/helpers.js +1 -1
- package/dist/cjs/product/components/product-images-v3/components/gallery-carousel/GalleryCarousel.liquid.js +12 -12
- package/dist/cjs/product/components/product-price/hooks/useGpPrice.js +1 -1
- package/dist/cjs/product/helpers/product-bundle.js +1 -1
- package/dist/cjs/product/index.js +1 -1
- package/dist/esm/image/common/srcset.js +1 -1
- package/dist/esm/product/components/product-bundle/ProductBundleDiscount.js +1 -1
- package/dist/esm/product/components/product-bundle/ProductBundleDiscountWarning.js +2 -0
- package/dist/esm/product/components/product-bundle/common/classes.js +1 -1
- package/dist/esm/product/components/product-bundle/common/constants.js +1 -0
- package/dist/esm/product/components/product-bundle/hooks/useProductBundleDataState.js +1 -83
- package/dist/esm/product/components/product-button/common/helpers.js +1 -1
- package/dist/esm/product/components/product-images-v3/components/gallery-carousel/GalleryCarousel.liquid.js +12 -12
- package/dist/esm/product/components/product-price/hooks/useGpPrice.js +1 -1
- package/dist/esm/product/helpers/product-bundle.js +1 -1
- package/dist/esm/product/index.js +1 -1
- package/dist/types/index.d.ts +13 -2
- package/package.json +5 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useEditorMode as e,useQuantity as r,useCurrentVariant as t,useProductBundleDiscount as i,convertDecimalToNumber as c,useInteraction as
|
|
1
|
+
import{useEditorMode as e,useQuantity as r,useCurrentVariant as t,useProductBundleDiscount as i,convertDecimalToNumber as c,useInteraction as o,useProduct as a,useShopStore as p,useMoneyFormat as n,useFormatMoney as d}from"@gem-sdk/core";import{calculateBundleFixedDiscount as u,getMoneyFormatDecimals as l,parseBundleQuantity as m}from"../../../helpers/product-bundle.js";import{useTransition as s}from"../../product-variants/common/common.js";import{useRef as g,useMemo as h}from"react";let b=b=>{let{setting:v,builderProps:P}=b,f=g(null),w=e(),{quantity:y,hasUpdatePrice:k}=r(),C=t(),{useProductCompareAtPrice:j}=i(),q=b["bundle-item"],x=c(C?.price)??0,D=c(C?.salePrice)??0,E=v?.priceType==="compare",{trigger:I}=o(),N=a(),$=N?.baseID?.replace("gid://shopify/Product/",""),G=p(e=>e.showPriceCurrency),{moneyFormat:L}=n(),M=q?m(q.quantity):void 0,S=!q||void 0!==M,T=!!q?.discountValue,V=q?M??1:k&&y||1,z=h(()=>q&&S?u(x,{...q,quantity:V},l(L)):0,[q,S,x,V,L]),A=h(()=>T?j?(D||x)*V:x*V:D*V,[T,x,V,D,j]),B=h(()=>{let e=x*V;return E?A:z?Math.max(0,e-z):e},[x,V,z,A,E]),F=h(()=>!!E&&(!(D>x)||!(D>=0)),[E,D,x]),H=(e,r)=>{I({event:"price"===r?"gp:rollback:price-change":"gp:rollback:compare-price-change",selector:`[data-id="${P?.uid}"]`,element:f.current}),I({event:"price"===r?"gp:price-change":"gp:compare-price-change",data:e,selector:`[data-id="${P?.uid}"]`,element:f.current})};s(e=>{e!==x&&H(x,"price")},[x]),s(e=>{e!==D&&H(D,"compare")},[D]);let J=d(B??0,G||!1),K=E&&!B;return{elementRef:f,moneyFormatted:J,currentProductId:$,isNoComparePrice:K,isNoComparePriceILP:"edit"!==w&&K,emitNoDataSignal:()=>{if("edit"!==w)return;let e=new CustomEvent("editor:product-source-no-data-warning",{bubbles:!0,detail:{uid:P?.uid,value:!B&&E,tag:"ProductPrice"}});window.dispatchEvent(e)},shouldHiddenComparePrice:F}};export{b as useGpPrice};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{convertDecimalToNumber as t,formatMoney as
|
|
1
|
+
import{convertDecimalToNumber as t,formatMoney as e}from"@gem-sdk/core";import{DiscountType as o}from"../components/constants/product-bundle.js";let n=t=>({discountPercentAmount:0,discountAmount:e("0",t)}),r=t=>{let e=Number(t);return Number.isInteger(e)&&e>0?e:void 0},u=u=>{let{currentVariant:d,bundleItem:l,options:p}=u;if(!p?.useProductCompareAtPrice&&l?.discountType===o.NoDiscount||!l||!d?.price)return n(p?.moneyFormat||"${{amount}}");let y=t(d?.price)??0,F=t(d?.salePrice)??y,P=r(l.quantity);if(void 0===P)return n(p?.moneyFormat||"${{amount}}");let A=c(y,l,a(p?.moneyFormat)),f=s(A,P*y),g=y*P-A,M=F*P;return F<=y&&A<=0?n(p?.moneyFormat||"${{amount}}"):{discountPercentAmount:p?.useProductCompareAtPrice?i(g,M):f,discountAmount:p?.useProductCompareAtPrice?m(g,M,p?.moneyFormat):e(A.toString(),p?.moneyFormat)}},i=(t,e)=>Math.round((e-t)/e*100),m=(t,o,n)=>e((o-t).toString(),n),c=(t,e,n=2)=>{let u=Number(e?.discountValue);if(!Number.isFinite(u)||u<0)return 0;if(e?.discountType===o.Percentage){let o=r(e?.quantity);return void 0===o?0:d(t*(u/100),n)*o}return e?.discountType===o.FixedAmount?u:0},a=t=>t?.includes("amount_no_decimals")?0:2,d=(t,e=2)=>{let o=10**e;return Math.floor(Math.round(1e6*(t*o))/1e6)/o},s=(t,e)=>Math.round(t/e*100);export{u as applyBundleDiscountAmount,c as calculateBundleFixedDiscount,d as floorToMinorUnit,a as getMoneyFormatDecimals,r as parseBundleQuantity};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"react/jsx-runtime";import"react";import"@gem-sdk/core";import"./components/product-bundle/common/
|
|
1
|
+
import"react/jsx-runtime";import"react";import"@gem-sdk/core";import"./components/product-bundle/common/classes.js";import"./components/product-bundle/common/styles.js";import"@gem-sdk/system";import"next/link";import"./components/constants/product-bundle.js";import"../common/const.js";import"./components/product-variants/components/variants/index.js";import"../carousel-v3/components/swiper/Swiper.js";import"../image/common/listImageContext.js";import"../image/common/listContext.js";import"../video/components/Video.js";import"../modal/components/confirm.js";import"react-dom";import"@gem-sdk/keen-slider/react";export{default as ProductQuickView}from"./components/product-quick-view/QuickView.js";import"../notification/components/Notifications.js";import"../notification/components/Notice.js";import"./components/product-button/types.js";export{default as ProductListV3}from"./components/product-list-v3/ProductList.js";import"./components/product-badge/types.js";import"./components/product-badge/constants.js";import"./components/product-badge/utils/shape.js";export{default as ProductList}from"./components/product-list/ProductList.js";export{default as Product}from"./components/product-wrap/Product.js";import t from"./components/product-bundle/setting/ProductBundleDiscountItem.js";import o from"./components/product-bundle/setting/ProductBundleDiscount.js";import r from"./settings/product-image-v3/ProductImages.js";import s from"./settings/product-image-v2/ProductImages.js";import i from"./settings/ProductDescription.js";import e from"./settings/ProductProperties.js";import m from"./components/file-upload/settings/index.js";import c from"./settings/ProductViewMore.js";import n from"./settings/ProductVariants.js";import p from"./settings/ProductQuantity.js";import u from"./settings/DynamicCheckout.js";import d from"./settings/ProductListV3.js";import a from"./settings/ProductImages.js";import P from"./settings/ProductButton.js";import g from"./settings/ProductTitle.js";import j from"./settings/ProductPrice.js";import f from"./settings/ProductBadge.js";import l from"./settings/ProductList.js";import V from"./settings/ProductTag.js";import k from"./settings/Vendor.js";import x from"./settings/Product.js";import b from"./settings/Sku.js";let I={Product:x,ProductQuantity:p,ProductTitle:g,ProductButton:P,ProductPrice:j,ProductVariants:n,ProductImages:a,ProductImagesV2:s,ProductImagesV3:r,ProductDescription:i,ProductProperties:e,ProductTag:V,ProductListV3:d,ProductList:l,DynamicCheckout:u,ProductVendor:k,ProductSku:b,ProductBundleDiscount:o,ProductBundleDiscountItem:t,ProductViewMore:c,ProductBadge:f,FileUpload:m};export{I as productSetting};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -3661,11 +3661,21 @@ type QualityType = 'finest' | 'high' | 'medium' | 'custom';
|
|
|
3661
3661
|
type ProductImagesLayout = 'bottom-left' | 'bottom-center' | 'left' | 'right' | 'only-feature' | 'one-col' | 'two-col' | 'inside-bottom' | 'inside-left' | 'inside-right';
|
|
3662
3662
|
|
|
3663
3663
|
type bundleItem = {
|
|
3664
|
-
quantity: number;
|
|
3664
|
+
quantity: string | number;
|
|
3665
3665
|
discountValue: string;
|
|
3666
3666
|
discountType: 'percentage' | 'fixed_amount' | 'no_discount';
|
|
3667
3667
|
};
|
|
3668
3668
|
|
|
3669
|
+
declare const BUNDLE_DISCOUNT_STATUS: {
|
|
3670
|
+
readonly UNRESOLVED: "unresolved";
|
|
3671
|
+
readonly LOADING: "loading";
|
|
3672
|
+
readonly READY: "ready";
|
|
3673
|
+
readonly EMPTY: "empty";
|
|
3674
|
+
readonly ERROR: "error";
|
|
3675
|
+
readonly AMBIGUOUS: "ambiguous";
|
|
3676
|
+
};
|
|
3677
|
+
|
|
3678
|
+
type BundleDiscountStatus = (typeof BUNDLE_DISCOUNT_STATUS)[keyof typeof BUNDLE_DISCOUNT_STATUS];
|
|
3669
3679
|
type ProductBundleDiscountSettingProps = {
|
|
3670
3680
|
applyToInBetweenQuantities?: boolean;
|
|
3671
3681
|
enableDisplayCondition?: boolean;
|
|
@@ -3680,6 +3690,7 @@ type ProductBundleDiscountSettingProps = {
|
|
|
3680
3690
|
iconSize?: ObjectDevices<number>;
|
|
3681
3691
|
iconSpacing?: Property.Padding;
|
|
3682
3692
|
bundleItems?: bundleItem[];
|
|
3693
|
+
bundleDiscountStatus?: BundleDiscountStatus;
|
|
3683
3694
|
useProductCompareAtPrice?: boolean;
|
|
3684
3695
|
iconItemColor?: ColorValueType;
|
|
3685
3696
|
enableHoverEffect?: boolean;
|
|
@@ -8508,4 +8519,4 @@ declare namespace translate {
|
|
|
8508
8519
|
declare const TAGS_WITH_REPLACE_LINK_DATA: string[];
|
|
8509
8520
|
|
|
8510
8521
|
export { Accordion$2 as Accordion, AccordionItem$1 as AccordionItem, AftershipEmailMarketingsms$1 as AftershipEmailMarketingsms, AirProductReviewsAppUgc$1 as AirProductReviewsAppUgc, AliReviews$1 as AliReviews, AlsoBoughtCbb$1 as AlsoBoughtCbb, AovBundlesVolumeDiscounts$1 as AovBundlesVolumeDiscounts, AovFreeGiftBuyXGetYBogo$1 as AovFreeGiftBuyXGetYBogo, AppointmentBookingCowlendar$1 as AppointmentBookingCowlendar, AppstleBundlesDiscounts$1 as AppstleBundlesDiscounts, AppstleLoyaltyRewardProgram$1 as AppstleLoyaltyRewardProgram, AppstleSubscriptions$1 as AppstleSubscriptions, ArticleAuthor$1 as ArticleAuthor, ArticleCategory$1 as ArticleCategory, ArticleContent$1 as ArticleContent, ArticleDate$1 as ArticleDate, ArticleExcerpt$1 as ArticleExcerpt, ArticleImage$1 as ArticleImage, ArticleList$1 as ArticleList, ArticlePagination$2 as ArticlePagination, ArticleReadMore$2 as ArticleReadMore, ArticleTag$1 as ArticleTag, ArticleTitle$1 as ArticleTitle, BasicHeader, BestBuyFulfillment$1 as BestBuyFulfillment, BfSizeChartSizeGuide$1 as BfSizeChartSizeGuide, BirdChime$1 as BirdChime, BloyRewardsProgramLoyalty$1 as BloyRewardsProgramLoyalty, Bogos$1 as Bogos, BoldProductOptions$1 as BoldProductOptions, BoldSubscriptions$1 as BoldSubscriptions, BonLoyaltyRewardsReferrals$1 as BonLoyaltyRewardsReferrals, BonySubscriptionsApp$1 as BonySubscriptionsApp, BoostAISearchDiscovery$1 as BoostAISearchDiscovery, Breadcrumb$1 as Breadcrumb, Breadcrumb$1 as BreadcrumbProps, Bundler$1 as Bundler, Button$3 as Button, CONTINUE_SELLING_WHEN_OUT_OF_STOCK, CSSCode$2 as CSSCode, Carousel$2 as Carousel, CarouselItem$2 as CarouselItem, CarouselItem$3 as CarouselItemV3, Carousel$3 as CarouselV3, Cart, CartCheckout, CartDiscount, CartLineAttribute, CartLineImage, CartLinePrice, CartLineVariant, CartList, CartOrderNote, CartTotalItem, CartTotalPrice, CheckoutNow, CleanSizeCharts$1 as CleanSizeCharts, Column$1 as Col, CollectionBanner$1 as CollectionBanner, CollectionDescription$2 as CollectionDescription, CollectionPaginator$2 as CollectionPaginator, CollectionTitle$1 as CollectionTitle, CollectionToolbar$2 as CollectionToolbar, ContactForm$2 as ContactForm, Countdown$2 as Countdown, Coupon$2 as Coupon, CouponList, CrossSellCartUpsell$1 as CrossSellCartUpsell, CustomProductOptionsVariant$1 as CustomProductOptionsVariant, DEFAULT_FONT_SIZE, DEFAULT_HIGHLIGHT_TAG, DEFAULT_PROGRESS_BAR_HEIGHT, DEFAULT_QUANTITY_TEMPLATE, DEFAULT_RANGE_STEP, DEFAULT_REMAINING_PERCENT, DEFAULT_REMAINING_QUANTITY, DEFAULT_SCARCITY_THRESHOLD, DealeasyVolumeDiscounts$1 as DealeasyVolumeDiscounts, DesktopMenu, Dialog$2 as Dialog, DiscountInput, DiscountyBulkDiscountSales$1 as DiscountyBulkDiscountSales, DynamicCheckout$1 as DynamicCheckout, ELEMENT_Z_INDEX, EasifyProductOptions$1 as EasifyProductOptions, EasyBundleBuilderSkailama$1 as EasyBundleBuilderSkailama, EasySell as EasySellCOD, EcoboostifyShoppableReelUgc$1 as EcoboostifyShoppableReelUgc, EcomsendBackInStockAlert$1 as EcomsendBackInStockAlert, EssentPreorderBackInStock$1 as EssentPreorderBackInStock, EssentialAnnouncementBar$1 as EssentialAnnouncementBar, EssentialCountdownTimerBar$1 as EssentialCountdownTimerBar, EstimateDate$2 as EstimateDate, EstimatedDeliveryDatePlus$1 as EstimatedDeliveryDatePlus, FastBundleBundlesDiscounts$1 as FastBundleBundlesDiscounts, FeraReviews$1 as FeraReviews, FileUpload$2 as FileUpload, FirePush$1 as FirePush, FlyBundlesUpsellsFbt$1 as FlyBundlesUpsellsFbt, FordeerProductLabels$1 as FordeerProductLabels, FormCheckbox$1 as FormCheckbox, FormDropdown$2 as FormDropdown, FormEmail$2 as FormEmail, FormTextArea as FormTextarea, FrequentlyBoughtTogether$1 as FrequentlyBoughtTogether, GloColorSwatchvariantImage$1 as GloColorSwatchvariantImage, GloboProductOptionsVariant$1 as GloboProductOptionsVariant, GoogleReviewsByReputon$1 as GoogleReviewsByReputon, Growave$1 as Growave, GrowthSuiteDiscountCodes$1 as GrowthSuiteDiscountCodes, Header, Heading$2 as Heading, HeroBanner$2 as HeroBanner, HextomCountdownTimerBar$1 as HextomCountdownTimerBar, HextomFreeShippingBar$1 as HextomFreeShippingBar, HulkFormBuilder$1 as HulkFormBuilder, HulkProductOptions$1 as HulkProductOptions, Icon$1 as Icon, IconList$2 as IconList, IconListHoz$1 as IconListHoz, IconListItem$1 as IconListItem, IconListHozItem as IconListItemHoz, IconListV2$2 as IconListV2, Image$2 as Image, ImageComparison$2 as ImageComparison, InfiniteOptions$1 as InfiniteOptions, Input, Instafeed$1 as Instafeed, InstantJudgemeReviews, InstantKlaviyo, InstantLooxReviews, InstantYotpoLoyalty, InstasellShoppableInstagram$1 as InstasellShoppableInstagram, JudgemeReviews$1 as JudgemeReviews, JunipProductReviewsUgc$1 as JunipProductReviewsUgc, KachingBundles$1 as KachingBundles, KachingSubscriptionsApp$1 as KachingSubscriptionsApp, KingProductOptions$1 as KingProductOptions, KiteFreeGiftDiscount$1 as KiteFreeGiftDiscount, KlarnaMessaging$1 as KlarnaMessaging, Klaviyo$1 as Klaviyo, KoalaBundleQuantityDiscount$1 as KoalaBundleQuantityDiscount, LaiProductReviews$1 as LaiProductReviews, Line$2 as Line, Link$1 as Link, LoloyalLoyaltyReferrals$1 as LoloyalLoyaltyReferrals, LoopSubscriptions$1 as LoopSubscriptions, LooxReviews$1 as LooxReviews, MAX_PROGRESS_BAR_HEIGHT, MAX_REMAINING_PERCENT, MIN_PROGRESS_BAR_HEIGHT, MIN_REMAINING_PERCENT, MIN_REMAINING_QUANTITY, Marquee$1 as Marquee, _default$5 as MarqueeItem, MaxbundleProductBundles$1 as MaxbundleProductBundles, MbcBundleVolumeDiscount$1 as MbcBundleVolumeDiscount, Menu, MobileMenu, Modal, ModernHeader, MyappgurusProductReviews$1 as MyappgurusProductReviews, NO_PRODUCT_LEFT, Newsletter$2 as Newsletter, Notify as Notice, NotifyBackInStockPreOrder$1 as NotifyBackInStockPreOrder, OUT_OF_STOCK, OkendoReviewsLoyalty$1 as OkendoReviewsLoyalty, Omnisend$1 as Omnisend, Opinew$1 as Opinew, Pagination, ParcelPanel$1 as ParcelPanel, PickyStory$1 as PickyStory, PostPurchaseAcceptButton, PostPurchaseAdvancedList, PostPurchaseAdvancedListItem, Button$2 as PostPurchaseButton, BuyerConsent as PostPurchaseBuyerConsent, CalloutBox as PostPurchaseCalloutBox, CalloutText as PostPurchaseCalloutText, PostPurchaseCountdownTimer, PostPurchaseHeading, PostPurchaseImage, Line$1 as PostPurchaseLine, Link as PostPurchaseLink, PostPurchaseProductDescription, PostPurchaseProductDiscountTag, PostPurchaseProductImages, PostPurchaseProductOffer, PostPurchaseProductPrice, PostPurchaseProductPriceBreakdown, PostPurchaseProductQuantity, ProductSubscription as PostPurchaseProductSubscription, PostPurchaseProductTitle, PostPurchaseProductVariants, Text$3 as PostPurchaseText, PowerfulContactFormBuilder$1 as PowerfulContactFormBuilder, PreorderNowPreOrderPq$1 as PreorderNowPreOrderPq, PreorderNowWodPresale$1 as PreorderNowWodPresale, Product$1 as Product, ProductBadge$2 as ProductBadge, ProductBundleDiscount$1 as ProductBundleDiscount, ProductBundleDiscountItem$1 as ProductBundleDiscountItem, ProductButton$2 as ProductButton, ProductDescription$2 as ProductDescription, ProductImages$4 as ProductImages, ProductImagesV2, ProductImagesV3, ProductList$2 as ProductList, ProductList$3 as ProductListV3, ProductOptionsCustomizer$1 as ProductOptionsCustomizer, ProductOptionsVariantOption$1 as ProductOptionsVariantOption, ProductPrice$1 as ProductPrice, ProductProperties$2 as ProductPropertyInput, ProductQuantity$1 as ProductQuantity, QuickView as ProductQuickView, ProductReviews$1 as ProductReviews, ProductSku$1 as ProductSku, ProductTag$2 as ProductTag, ProductTitle$1 as ProductTitle, ProductVariants$1 as ProductVariants, ProductVendor$1 as ProductVendor, ProductViewMore$2 as ProductViewMore, PumperBundlesVolumeDiscount$1 as PumperBundlesVolumeDiscount, PushOwl$1 as PushOwl, QUANTITY_SOURCE, QikifyUpsell$1 as QikifyUpsell, REGEX_BARE_DOMAIN, REGEX_PAGE_TYPE, Radio, RapiBundleQuantityBreaks$1 as RapiBundleQuantityBreaks, RechargeSubscriptions$1 as RechargeSubscriptions, RecurpaySubscriptionApp$1 as RecurpaySubscriptionApp, Releasit$1 as Releasit, RequestQuoteHidePrice$1 as RequestQuoteHidePrice, ReviewxpoProductReviewsApp$1 as ReviewxpoProductReviewsApp, Rivyo$1 as Rivyo, Root$1 as Root, Row$2 as Row, Ryviu$1 as Ryviu, SealSubscriptions$1 as SealSubscriptions, Section$2 as Section, SegunoEmailMarketing$1 as SegunoEmailMarketing, Select, Selleasy$1 as Selleasy, SeoantTrustBadgesIcon$1 as SeoantTrustBadgesIcon, ShopPayButton$1 as ShopPayButton, ShopPayInstallments$1 as ShopPayInstallments, ShopifyForms$1 as ShopifyForms, ShopifySubscriptions$1 as ShopifySubscriptions, SimpleBundlesKits$1 as SimpleBundlesKits, SkioSubscriptionsYcS20$1 as SkioSubscriptionsYcS20, SmartSearchBarAndFilters$1 as SmartSearchBarAndFilters, SproutPlantTreesGrowSales$1 as SproutPlantTreesGrowSales, Stamped$1 as Stamped, StellarDeliveryDatePickup$1 as StellarDeliveryDatePickup, Sticky$2 as Sticky, StockCounter$2 as StockCounter, SubifySubscriptionsApp$1 as SubifySubscriptionsApp, SubmitButton$2 as SubmitButton, TAGS_WITH_REPLACE_LINK_DATA, TabItem$1 as TabItem, Tabs$2 as Tabs, TagembedSocialPostReview$1 as TagembedSocialPostReview, TagshopShoppableVideosUgc$1 as TagshopShoppableVideosUgc, TeeinblueProductPersonalizer$1 as TeeinblueProductPersonalizer, Text$2 as Text, TextField$2 as TextField, TextInput$2 as TextInput, TextArea as Textarea, ThirdPartySlot$1 as ThirdPartySlot, TrustBadgesBear$1 as TrustBadgesBear, TrustMe$1 as TrustMe, TrustedsiteTrustBadges$1 as TrustedsiteTrustBadges, Trustoo$1 as Trustoo, TrustreviewsProductReviews$1 as TrustreviewsProductReviews, TrustshopProductReviews$1 as TrustshopProductReviews, UltimateSalesBoost$1 as UltimateSalesBoost, UnlimitedBundlesDiscounts$1 as UnlimitedBundlesDiscounts, UppromoteAffiliateMarketing$1 as UppromoteAffiliateMarketing, Video$2 as Video, Vitals$1 as Vitals, WcWishlistBackInStock$1 as WcWishlistBackInStock, WhatmoreShoppableVideosreel$1 as WhatmoreShoppableVideosreel, WideBundle$1 as WideBundle, Wiser$1 as Wiser, WishlistKing$1 as WishlistKing, WishlistPlus$1 as WishlistPlus, YotpoLoyalty, YotpoReviews$1 as YotpoReviews, accordionSetting, articleListSetting, bannerSetting, breadcrumbSetting, _default$2 as builderComponent, buttonSetting, carouselSetting, carouselSettingV3, cartSetting, checkIsOpenPage, checkIsOpenPopup, checkIsScrollToTop, codeSetting, collectionSetting, _default$1 as componentSettings, contactFormSetting, convertSizeToWidth, convertUnitToNumber, countdownSetting, couponSetting, createSettingId, createTranslateKey, dialogSetting, estimateDeliverySetting, extractProductID, filterPageContext, filterTruthyObject, filterTruthyStyles, getAllHrefFromString, getBackgroundTranslated, getDisplayStyle, getDynamicSourceLocales, getInlineCss, getInsertLinkData, getLinkArticle, getLinkData, getLiquidInitData, getLiquidTextContent, getSeoTranslated, getSettingPreloadData, getStaticLocale, getTextDisplayData, gridSetting, handleClickLink, headerSetting, headingSetting, _default$3 as headlessComponents, iconListHozSetting, iconListSetting, iconListSettingV2, iconSetting, imageComparisonSetting, imageSetting, inputSetting, isEmptyObject, isHexTransparent, isLinkedToSalesPage, isShopifyDomain, isTransparentColor, isTransparentRGBA, lineSetting, linkSetting, index_liquid as liquidComponents, marqueeSetting, menuSetting, modalSetting, _default$4 as nextComponent, normalizeMailto, openConfirm, paginationSetting, postPurchaseAdvancedListSetting, postPurchaseButtonSetting, postPurchaseBuyerConsentSetting, postPurchaseCalloutBoxSetting, postPurchaseCountdownTimerSetting, postPurchaseImageSetting, postPurchaseLineSetting, postPurchaseLinkSetting, postPurchaseProduct1Col, postPurchaseProduct2Col, postPurchaseProductDefault, postPurchaseProductSetting, _default as postPurchaseSettings, postPurchaseTextSetting, productSetting, radioSetting, replaceAllHrefFromString, replaceLinkData, selectSetting, shopPayInstallmentSetting, stickySetting, stockCounterSetting, tabSetting, textSetting, textareaSetting, thirdPartyInstantSetting, thirdPartySetting, thirdPartySlotSetting, transformHighlighTag, transformNumberTag, translate as translateComponents, useNotification, videoSetting, youtubeShortsRegex };
|
|
8511
|
-
export type { AccordionItemProps, AccordionProps, AftershipEmailMarketingsmsProps, AirProductReviewsAppUgcProps, AliReviewsProps, AlsoBoughtCbbProps, AovBundlesVolumeDiscountsProps, AovFreeGiftBuyXGetYBogoProps, AppointmentBookingCowlendarProps, AppstleBundlesDiscountsProps, AppstleLoyaltyRewardProgramProps, AppstleSubscriptionsProps, BestBuyFulfillmentProps, BfSizeChartSizeGuideProps, BirdChimeProps, BloyRewardsProgramLoyaltyProps, BogosProps, BoldProductOptionsProps, BoldSubscriptionsProps, BonLoyaltyRewardsReferralsProps, BonySubscriptionsAppProps, BoostAISearchDiscoveryProps, BundlerProps, ButtonProps, CSSCodeProps, CalloutBoxProps, CalloutTextProps, CarouselItemProps, CarouselItemProps$1 as CarouselItemPropsV3, CarouselProps, CarouselProps$1 as CarouselPropsV3, CarouselSettingProps, CarouselSettingProps$1 as CarouselSettingPropsV3, CarouselStyleProps, CarouselStyleProps$1 as CarouselStylePropsV3, CartProps, CleanSizeChartsProps, ColProps, CollectionBannerProps, CollectionDescriptionProps, CollectionPaginatorProps, CollectionTitleProps, CollectionToolbarProps, CountdownProps, CouponProps, CrossSellCartUpsellProps, CustomProductOptionsVariantProps, DataVideoType, DealeasyVolumeDiscountsProps, DiscountyBulkDiscountSalesProps, DynamicCheckoutProps, EasifyProductOptionsProps, EasyBundleBuilderSkailamaProps, EasySellCODProps, EcoboostifyShoppableReelUgcProps, EcomsendBackInStockAlertProps, EssentPreorderBackInStockProps, EssentialAnnouncementBarProps, EssentialCountdownTimerBarProps, EstimateDateProps, EstimatedDeliveryDatePlusProps, FastBundleBundlesDiscountsProps, FeraReviewsProps, FileUploadProps, FirePushProps, FlyBundlesUpsellsFbtProps, FordeerProductLabelsProps, FormCheckboxProps, FormDropdownProps, FormEmailProps, FrequentlyBoughtTogetherProps, GloColorSwatchvariantImageProps, GloboProductOptionsVariantProps, GoogleReviewsByReputonProps, GrowaveProps, GrowthSuiteDiscountCodesProps, HeaderProps, HeadingProps, HeroBannerProps, HextomCountdownTimerBarProps, HextomFreeShippingBarProps, HulkFormBuilderProps, HulkProductOptionsProps, IconListHozProps, IconListItemProps$1 as IconListItemProps, IconListProps$1 as IconListProps, IconProps, ImageComparisonItem, ImageProps, ImgProps, InfiniteOptionsProps, InputProps, InstafeedProps, InstasellShoppableInstagramProps, JudgemeReviewsProps, JunipProductReviewsUgcProps, KachingBundlesProps, KachingSubscriptionsAppProps, KingProductOptionsProps, KiteFreeGiftDiscountProps, KlarnaMessagingProps, KlaviyoProps, KoalaBundleQuantityDiscountProps, LaiProductReviewsProps, LineProps, LinkProps, LoloyalLoyaltyReferralsProps, LoopSubscriptionsProps, LooxReviewsProps, MarqueeItemProps, MarqueeProps, MaxbundleProductBundlesProps, MbcBundleVolumeDiscountProps, MenuProps, MyappgurusProductReviewsProps, NewsletterProps, NotificationAPI, NotificationConfig, NotifyBackInStockPreOrderProps, ObjectFit$2 as ObjectFit, OkendoReviewsLoyaltyProps, OmnisendProps, OpinewProps, PaginationProps, ParcelPanelProps, PickyStoryProps, PostPurchaseAdvancedListProps, PostPurchaseButtonProps, PostPurchaseBuyerConsentProps, PostPurchaseCountdownTimerProps, PostPurchaseImageProps, PostPurchaseLineProps, PostPurchaseLinkProps, PostPurchaseProductDescriptionProps, PostPurchaseProductDiscountTagProps, PostPurchaseProductImagesProps, PostPurchaseProductOfferProps$1 as PostPurchaseProductOfferProps, PostPurchaseProductPriceBreakdownProps, PostPurchaseProductPriceProps, PostPurchaseProductQuantityProps, PostPurchaseProductSubscriptionProps, PostPurchaseProductTitleProps, PostPurchaseProductVariantsProps, PostPurchaseTextProps, PowerfulContactFormBuilderProps, PreorderNowPreOrderPqProps, PreorderNowWodPresaleProps, ProductBadgeProps, ProductBundleDiscountProps, ProductBundleItemDiscountProps, ProductButtonProps, ProductDescriptionProps, ProductImagesProps, ProductListProps, ProductListProps$1 as ProductListPropsV3, ProductOptionsCustomizerProps, ProductOptionsVariantOptionProps, ProductPriceProps, ProductPropertiesProps, ProductProps, ProductQuantityProps, ProductReviewsProps, ProductTagProps, ProductTitleProps, ProductVariantsProps, ProductViewMoreProps, PumperBundlesVolumeDiscountProps, PushOwlProps, QikifyUpsellProps, RapiBundleQuantityBreaksProps, RechargeSubscriptionsProps, RecurpaySubscriptionAppProps, ReleasitProps, RequestQuoteHidePriceProps, ReviewxpoProductReviewsAppProps, RivyoProps, RootProps$2 as RootProps, RowProps, RyviuProps, SealSubscriptionsProps, SegunoEmailMarketingProps, SelleasyProps, SeoantTrustBadgesIconProps, ShopPayButtonProps, ShopifyFormsProps, ShopifySubscriptionsProps, SimpleBundlesKitsProps, SkioSubscriptionsYcS20Props, SkuProps, SmartSearchBarAndFiltersProps, SproutPlantTreesGrowSalesProps, StampedProps, StellarDeliveryDatePickupProps, SubifySubscriptionsAppProps, SubmitButtonProps, TabItemProps, TabsProps, TagembedSocialPostReviewProps, TagshopShoppableVideosUgcProps, TeeinblueProductPersonalizerProps, TextAreaProps, TextFieldProps, TextInputProps, TextProps, TextareaProps, TrustBadgesBearProps, TrustMeProps, TrustedsiteTrustBadgesProps, TrustooProps, TrustreviewsProductReviewsProps, TrustshopProductReviewsProps, UltimateSalesBoostProps, UnlimitedBundlesDiscountsProps, UppromoteAffiliateMarketingProps, VendorProps, VitalsProps, WcWishlistBackInStockProps, WhatmoreShoppableVideosreelProps, WideBundleProps, WiserProps, WishlistKingProps, WishlistPlusProps, YotpoLoyaltyProps, YotpoReviewsProps };
|
|
8522
|
+
export type { AccordionItemProps, AccordionProps, AftershipEmailMarketingsmsProps, AirProductReviewsAppUgcProps, AliReviewsProps, AlsoBoughtCbbProps, AovBundlesVolumeDiscountsProps, AovFreeGiftBuyXGetYBogoProps, AppointmentBookingCowlendarProps, AppstleBundlesDiscountsProps, AppstleLoyaltyRewardProgramProps, AppstleSubscriptionsProps, BestBuyFulfillmentProps, BfSizeChartSizeGuideProps, BirdChimeProps, BloyRewardsProgramLoyaltyProps, BogosProps, BoldProductOptionsProps, BoldSubscriptionsProps, BonLoyaltyRewardsReferralsProps, BonySubscriptionsAppProps, BoostAISearchDiscoveryProps, BundleDiscountStatus, BundlerProps, ButtonProps, CSSCodeProps, CalloutBoxProps, CalloutTextProps, CarouselItemProps, CarouselItemProps$1 as CarouselItemPropsV3, CarouselProps, CarouselProps$1 as CarouselPropsV3, CarouselSettingProps, CarouselSettingProps$1 as CarouselSettingPropsV3, CarouselStyleProps, CarouselStyleProps$1 as CarouselStylePropsV3, CartProps, CleanSizeChartsProps, ColProps, CollectionBannerProps, CollectionDescriptionProps, CollectionPaginatorProps, CollectionTitleProps, CollectionToolbarProps, CountdownProps, CouponProps, CrossSellCartUpsellProps, CustomProductOptionsVariantProps, DataVideoType, DealeasyVolumeDiscountsProps, DiscountyBulkDiscountSalesProps, DynamicCheckoutProps, EasifyProductOptionsProps, EasyBundleBuilderSkailamaProps, EasySellCODProps, EcoboostifyShoppableReelUgcProps, EcomsendBackInStockAlertProps, EssentPreorderBackInStockProps, EssentialAnnouncementBarProps, EssentialCountdownTimerBarProps, EstimateDateProps, EstimatedDeliveryDatePlusProps, FastBundleBundlesDiscountsProps, FeraReviewsProps, FileUploadProps, FirePushProps, FlyBundlesUpsellsFbtProps, FordeerProductLabelsProps, FormCheckboxProps, FormDropdownProps, FormEmailProps, FrequentlyBoughtTogetherProps, GloColorSwatchvariantImageProps, GloboProductOptionsVariantProps, GoogleReviewsByReputonProps, GrowaveProps, GrowthSuiteDiscountCodesProps, HeaderProps, HeadingProps, HeroBannerProps, HextomCountdownTimerBarProps, HextomFreeShippingBarProps, HulkFormBuilderProps, HulkProductOptionsProps, IconListHozProps, IconListItemProps$1 as IconListItemProps, IconListProps$1 as IconListProps, IconProps, ImageComparisonItem, ImageProps, ImgProps, InfiniteOptionsProps, InputProps, InstafeedProps, InstasellShoppableInstagramProps, JudgemeReviewsProps, JunipProductReviewsUgcProps, KachingBundlesProps, KachingSubscriptionsAppProps, KingProductOptionsProps, KiteFreeGiftDiscountProps, KlarnaMessagingProps, KlaviyoProps, KoalaBundleQuantityDiscountProps, LaiProductReviewsProps, LineProps, LinkProps, LoloyalLoyaltyReferralsProps, LoopSubscriptionsProps, LooxReviewsProps, MarqueeItemProps, MarqueeProps, MaxbundleProductBundlesProps, MbcBundleVolumeDiscountProps, MenuProps, MyappgurusProductReviewsProps, NewsletterProps, NotificationAPI, NotificationConfig, NotifyBackInStockPreOrderProps, ObjectFit$2 as ObjectFit, OkendoReviewsLoyaltyProps, OmnisendProps, OpinewProps, PaginationProps, ParcelPanelProps, PickyStoryProps, PostPurchaseAdvancedListProps, PostPurchaseButtonProps, PostPurchaseBuyerConsentProps, PostPurchaseCountdownTimerProps, PostPurchaseImageProps, PostPurchaseLineProps, PostPurchaseLinkProps, PostPurchaseProductDescriptionProps, PostPurchaseProductDiscountTagProps, PostPurchaseProductImagesProps, PostPurchaseProductOfferProps$1 as PostPurchaseProductOfferProps, PostPurchaseProductPriceBreakdownProps, PostPurchaseProductPriceProps, PostPurchaseProductQuantityProps, PostPurchaseProductSubscriptionProps, PostPurchaseProductTitleProps, PostPurchaseProductVariantsProps, PostPurchaseTextProps, PowerfulContactFormBuilderProps, PreorderNowPreOrderPqProps, PreorderNowWodPresaleProps, ProductBadgeProps, ProductBundleDiscountProps, ProductBundleItemDiscountProps, ProductButtonProps, ProductDescriptionProps, ProductImagesProps, ProductListProps, ProductListProps$1 as ProductListPropsV3, ProductOptionsCustomizerProps, ProductOptionsVariantOptionProps, ProductPriceProps, ProductPropertiesProps, ProductProps, ProductQuantityProps, ProductReviewsProps, ProductTagProps, ProductTitleProps, ProductVariantsProps, ProductViewMoreProps, PumperBundlesVolumeDiscountProps, PushOwlProps, QikifyUpsellProps, RapiBundleQuantityBreaksProps, RechargeSubscriptionsProps, RecurpaySubscriptionAppProps, ReleasitProps, RequestQuoteHidePriceProps, ReviewxpoProductReviewsAppProps, RivyoProps, RootProps$2 as RootProps, RowProps, RyviuProps, SealSubscriptionsProps, SegunoEmailMarketingProps, SelleasyProps, SeoantTrustBadgesIconProps, ShopPayButtonProps, ShopifyFormsProps, ShopifySubscriptionsProps, SimpleBundlesKitsProps, SkioSubscriptionsYcS20Props, SkuProps, SmartSearchBarAndFiltersProps, SproutPlantTreesGrowSalesProps, StampedProps, StellarDeliveryDatePickupProps, SubifySubscriptionsAppProps, SubmitButtonProps, TabItemProps, TabsProps, TagembedSocialPostReviewProps, TagshopShoppableVideosUgcProps, TeeinblueProductPersonalizerProps, TextAreaProps, TextFieldProps, TextInputProps, TextProps, TextareaProps, TrustBadgesBearProps, TrustMeProps, TrustedsiteTrustBadgesProps, TrustooProps, TrustreviewsProductReviewsProps, TrustshopProductReviewsProps, UltimateSalesBoostProps, UnlimitedBundlesDiscountsProps, UppromoteAffiliateMarketingProps, VendorProps, VitalsProps, WcWishlistBackInStockProps, WhatmoreShoppableVideosreelProps, WideBundleProps, WiserProps, WishlistKingProps, WishlistPlusProps, YotpoLoyaltyProps, YotpoReviewsProps };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gem-sdk/components",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "26.1.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"post:publish": "node ./scripts/convert-publish.js",
|
|
20
20
|
"pre:publish": "node ./scripts/convert-publish.js -p",
|
|
21
21
|
"relationship": "rollup -c ./scripts/rollup.config.settings.mjs && node ./scripts/element-relationship/index.js",
|
|
22
|
-
"test": "jest -c ./../../helpers/jest.config.ts && yarn test:data",
|
|
22
|
+
"test": "jest -c ./../../helpers/jest.config.ts --testPathIgnorePatterns data.liquid.test && yarn test:data",
|
|
23
23
|
"test:data": "NODE_OPTIONS=--experimental-vm-modules GP_BASE_ASSET_URL=https://assets.gemcommerce.xyz jest -c ./../../helpers/jest.config.ts --testPathPatterns data.liquid.test",
|
|
24
24
|
"test:data:update": "yarn test:data -u",
|
|
25
25
|
"test:watch": "jest -c ./../../helpers/jest.config.ts --watch",
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
"react-youtube": "10.1.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@gem-sdk/core": "
|
|
38
|
-
"@gem-sdk/styles": "
|
|
39
|
-
"@gem-sdk/system": "
|
|
37
|
+
"@gem-sdk/core": "26.0.0",
|
|
38
|
+
"@gem-sdk/styles": "26.0.0",
|
|
39
|
+
"@gem-sdk/system": "26.0.0",
|
|
40
40
|
"@shopify/prettier-plugin-liquid": "^1.10.3",
|
|
41
41
|
"@thedutchcoder/postcss-rem-to-px": "0.0.2",
|
|
42
42
|
"@types/react-transition-group": "^4.4.12",
|