@windstream/react-shared-components 0.1.46 → 0.1.48
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/contentful/index.d.ts +27 -4
- package/dist/contentful/index.esm.js +27 -4
- package/dist/contentful/index.esm.js.map +1 -1
- package/dist/contentful/index.js +27 -4
- package/dist/contentful/index.js.map +1 -1
- package/dist/index.esm.js +12 -6
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +12 -6
- package/dist/index.js.map +1 -1
- package/dist/next/index.esm.js +1 -3
- package/dist/next/index.esm.js.map +1 -1
- package/dist/next/index.js +1 -3
- package/dist/next/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/utils/index.d.ts +2 -3
- package/dist/utils/index.esm.js +1 -1
- package/dist/utils/index.esm.js.map +1 -1
- package/dist/utils/index.js +1 -1
- package/dist/utils/index.js.map +1 -1
- package/package.json +1 -1
- package/src/contentful/blocks/cart-retention-banner/index.tsx +99 -0
- package/src/contentful/blocks/cart-retention-banner/types.ts +11 -0
- package/src/contentful/index.ts +4 -0
|
@@ -632,6 +632,29 @@ interface EmailInputFormValues {
|
|
|
632
632
|
|
|
633
633
|
declare const EmailInputBlock: React__default.FC<EmailInputBlockProps>;
|
|
634
634
|
|
|
635
|
+
interface TypeCartRetentionBannerFields {
|
|
636
|
+
entryTitle?: string;
|
|
637
|
+
anchorId?: string;
|
|
638
|
+
mainHeading?: string;
|
|
639
|
+
description?: {
|
|
640
|
+
json: any;
|
|
641
|
+
};
|
|
642
|
+
cta?: {
|
|
643
|
+
buttonLabel?: string;
|
|
644
|
+
[key: string]: any;
|
|
645
|
+
};
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
declare const CartRetentionBanner: React.FC<{
|
|
649
|
+
fields: TypeCartRetentionBannerFields;
|
|
650
|
+
sys?: any;
|
|
651
|
+
isInPopupContainer?: boolean;
|
|
652
|
+
onClose?: () => void;
|
|
653
|
+
onContinueCheckout?: () => void;
|
|
654
|
+
checkShouldShowBanner?: () => boolean;
|
|
655
|
+
onBannerShown?: () => void;
|
|
656
|
+
}>;
|
|
657
|
+
|
|
635
658
|
declare const toDocument: (v: unknown | null | undefined) => Document | null;
|
|
636
659
|
|
|
637
660
|
/**
|
|
@@ -640,11 +663,11 @@ declare const toDocument: (v: unknown | null | undefined) => Document | null;
|
|
|
640
663
|
*/
|
|
641
664
|
declare function renderContentfulRichText(doc: Document | null | undefined, target?: boolean, className?: string, linkClassName?: string, options?: Options): ReactNode | null;
|
|
642
665
|
declare function useContentfulRichText(doc: Document | null | undefined, options?: Options): ReactNode | null;
|
|
643
|
-
declare function renderContentfulRichTextTable(doc: Document | null | undefined, links?: any):
|
|
666
|
+
declare function renderContentfulRichTextTable(doc: Document | null | undefined, links?: any): any;
|
|
644
667
|
|
|
645
668
|
declare const label1BoldOptions: {
|
|
646
669
|
renderMark: {
|
|
647
|
-
|
|
670
|
+
[x: number]: (text: ReactNode) => React$1.DetailedReactHTMLElement<{
|
|
648
671
|
className: string;
|
|
649
672
|
}, HTMLElement>;
|
|
650
673
|
};
|
|
@@ -656,5 +679,5 @@ interface ProcessedChecklistItem {
|
|
|
656
679
|
}
|
|
657
680
|
declare function useProcessedChecklist<T extends boolean = false>(checklistData?: any, titlesOnly?: T, richTextOptions?: Options, richTextClassName?: string): T extends true ? string[] : ProcessedChecklistItem[];
|
|
658
681
|
|
|
659
|
-
export { Accordion, AddressInputBanner, AnchoredBottomBanner, BlogCard, BlogGrid, BreadcrumbNavigation, Button, Callout, Cards, Carousel, ComparisonTable, CookieBanner, CtaCallout, DynamicTabs, EmailInputBlock, FindKinetic, FloatingBanner, Footer, ImagePromoBar, Modal, Navigation, PrimaryHero, ProductCard, SearchBlock, ShapeBackgroundWrapper, SimpleCard, TestimonialCard, Text, label1BoldOptions, renderContentfulRichText, renderContentfulRichTextTable, toDocument, useContentfulRichText, useProcessedChecklist };
|
|
660
|
-
export type { AccordionProps, AddressInputBannerProps, AnchoredBottomBannerProps, BlogCardProps$1 as BlogCardProps, BlogGridProps, BreadcrumbNavigationProps, ButtonProps, CalloutProps, CardsProps, CarouselProps, ComparisonTableProps, TypeComponentRichTextFields as CookieBannerProps, CtaCalloutProps, DynamicTabsT, EmailInputBlockProps, FindKineticProps, FloatingBannerProps, FooterProps, ImagePromoBarProps, ModalProps, NavigationProps, PrimaryHeroProps, ProcessedChecklistItem, ProductCardProps, SearchBlockProps, ShapeBackgroundWrapperProps, SimpleCardProps, TestimonialCardProps, TextProps };
|
|
682
|
+
export { Accordion, AddressInputBanner, AnchoredBottomBanner, BlogCard, BlogGrid, BreadcrumbNavigation, Button, Callout, Cards, Carousel, CartRetentionBanner, ComparisonTable, CookieBanner, CtaCallout, DynamicTabs, EmailInputBlock, FindKinetic, FloatingBanner, Footer, ImagePromoBar, Modal, Navigation, PrimaryHero, ProductCard, SearchBlock, ShapeBackgroundWrapper, SimpleCard, TestimonialCard, Text, label1BoldOptions, renderContentfulRichText, renderContentfulRichTextTable, toDocument, useContentfulRichText, useProcessedChecklist };
|
|
683
|
+
export type { AccordionProps, AddressInputBannerProps, AnchoredBottomBannerProps, BlogCardProps$1 as BlogCardProps, BlogGridProps, BreadcrumbNavigationProps, ButtonProps, CalloutProps, CardsProps, CarouselProps, TypeCartRetentionBannerFields as CartRetentionBannerProps, ComparisonTableProps, TypeComponentRichTextFields as CookieBannerProps, CtaCalloutProps, DynamicTabsT, EmailInputBlockProps, FindKineticProps, FloatingBannerProps, FooterProps, ImagePromoBarProps, ModalProps, NavigationProps, PrimaryHeroProps, ProcessedChecklistItem, ProductCardProps, SearchBlockProps, ShapeBackgroundWrapperProps, SimpleCardProps, TestimonialCardProps, TextProps };
|