@windstream/react-shared-components 0.2.61 → 0.2.63
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 +22 -2
- package/dist/contentful/index.esm.js +5 -5
- package/dist/contentful/index.esm.js.map +1 -1
- package/dist/contentful/index.js +4 -4
- package/dist/contentful/index.js.map +1 -1
- package/dist/core.d.ts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/utils/index.d.ts +1 -1
- 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/components/video-link/index.tsx +28 -8
- package/src/components/video-link/vimeo-embed.tsx +19 -10
- package/src/components/video-link/youtube-embed.test.tsx +11 -7
- package/src/components/video-link/youtube-embed.tsx +58 -58
- package/src/contentful/blocks/anchored-bottom-banner/index.test.tsx +248 -0
- package/src/contentful/blocks/anchored-bottom-banner/index.tsx +197 -29
- package/src/contentful/blocks/anchored-bottom-banner/types.ts +46 -0
- package/src/contentful/blocks/cards/product-card/index.tsx +7 -2
- package/src/contentful/blocks/image-promo-bar/index.tsx +2 -2
- package/src/contentful/index.ts +5 -1
- package/src/hooks/contentful/use-contentful-rich-text.test.tsx +12 -0
- package/src/hooks/contentful/use-contentful-rich-text.tsx +17 -2
|
@@ -813,6 +813,20 @@ interface DynamicTabsT {
|
|
|
813
813
|
|
|
814
814
|
declare function DynamicTabs(props: DynamicTabsT): react_jsx_runtime.JSX.Element;
|
|
815
815
|
|
|
816
|
+
type ScheduledMessageDay = "ALL" | "SUNDAY" | "MONDAY" | "TUESDAY" | "WEDNESDAY" | "THURSDAY" | "FRIDAY" | "SATURDAY" | "SUN" | "MON" | "TUE" | "WED" | "THU" | "FRI" | "SAT";
|
|
817
|
+
interface ScheduledMessage {
|
|
818
|
+
id?: string;
|
|
819
|
+
scheduledStart?: string;
|
|
820
|
+
scheduleEnd?: string;
|
|
821
|
+
daysToShow?: ScheduledMessageDay[];
|
|
822
|
+
countdownStartDateTime?: string;
|
|
823
|
+
countdownEndDateTime?: string;
|
|
824
|
+
iconName?: string;
|
|
825
|
+
ctaButtonLabel?: string;
|
|
826
|
+
ctaSuffixText?: string;
|
|
827
|
+
ctaButtonLink?: string;
|
|
828
|
+
ctaButtonTarget?: string;
|
|
829
|
+
}
|
|
816
830
|
interface AnchoredBottomBannerProps {
|
|
817
831
|
ctaSuffixText?: string;
|
|
818
832
|
backgroundColor?: "navy" | "yellow" | "green" | "purple" | "blue" | "white";
|
|
@@ -825,6 +839,12 @@ interface AnchoredBottomBannerProps {
|
|
|
825
839
|
enableCountdownTimer?: boolean;
|
|
826
840
|
countdownStartDateTime?: string;
|
|
827
841
|
countdownEndDateTime?: string;
|
|
842
|
+
scheduledMessages?: ScheduledMessage[];
|
|
843
|
+
onResolved?: (result: {
|
|
844
|
+
hasActiveMessage: boolean;
|
|
845
|
+
activeMessage?: ScheduledMessage;
|
|
846
|
+
applicableWeekday: string;
|
|
847
|
+
}) => void;
|
|
828
848
|
}
|
|
829
849
|
|
|
830
850
|
declare const AnchoredBottomBanner: React__default.FC<AnchoredBottomBannerProps>;
|
|
@@ -1173,7 +1193,7 @@ declare const toDocument: (v: unknown | null | undefined) => Document | null;
|
|
|
1173
1193
|
* Utility function to render Contentful Rich Text.
|
|
1174
1194
|
* Safe to use inside .map() loops.
|
|
1175
1195
|
*/
|
|
1176
|
-
declare function renderContentfulRichText(doc: Document | null | undefined, target?: boolean, className?: string, linkClassName?: string, options?: Options, links?: any): ReactNode | null;
|
|
1196
|
+
declare function renderContentfulRichText(doc: Document | null | undefined, target?: boolean, className?: string, linkClassName?: string, options?: Options, links?: any, listLinkClassName?: string): ReactNode | null;
|
|
1177
1197
|
declare function useContentfulRichText(doc: Document | null | undefined, options?: Options, config?: {
|
|
1178
1198
|
boldClassName?: string;
|
|
1179
1199
|
links?: any;
|
|
@@ -1195,4 +1215,4 @@ interface ProcessedChecklistItem {
|
|
|
1195
1215
|
declare function useProcessedChecklist<T extends boolean = false>(checklistData?: any, titlesOnly?: T, richTextOptions?: Options, richTextClassName?: string): T extends true ? string[] : ProcessedChecklistItem[];
|
|
1196
1216
|
|
|
1197
1217
|
export { Accordion, AddressInputBanner, AnchoredBottomBanner, AwardMarquee, BlogCard, BlogGrid, BlogGridBase, BreadcrumbNavigation, Button, Callout, Cards, Carousel, CartRetentionBanner, ComparisonTable, CookieBanner, CtaCallout, DynamicForm, DynamicTabs, EmailInputBlock, FindKinetic, FloatingBanner, Footer, IframeEmbed, ImagePromoBar, Modal, Navigation, OrderedList, PrimaryHero, ProductCard, SearchBlock, ShapeBackgroundWrapper, SimpleCard, TestimonialCard, Text, constants as dynamicFormConstants, Regex as dynamicFormRegex, label1BoldOptions, renderContentfulRichText, renderContentfulRichTextTable, toDocument, useContentfulRichText, useProcessedChecklist };
|
|
1198
|
-
export type { AccordionProps, AddressInputBannerProps, AnchoredBottomBannerProps, AwardMarqueeBackground, AwardMarqueeItem, AwardMarqueeProps, AwardMarqueeSpeed, BlogCardProps$2 as BlogCardProps, BlogGridBaseProps, BlogGridProps, BreadcrumbNavigationProps, ButtonProps, CalloutProps, CardsProps, CarouselProps, CartRetentionBannerBackgroundColor, CartRetentionBannerImageAccentColor, CartRetentionBannerImagePosition, TypeCartRetentionBannerFields as CartRetentionBannerProps, ComparisonTableProps, ConditionalFieldConfig, TypeComponentRichTextFields as CookieBannerProps, CtaCalloutProps, DynamicFormFieldConfig, DynamicFormFieldOption, DynamicFormFieldType, DynamicFormItem, DynamicFormPayload, DynamicFormProps, DynamicTabsT, EmailInputBlockProps, ExistingDataSourceResolver, FieldRenderProps, FindKineticProps, FloatingBannerProps, FooterProps, FormAction, IframeEmbedProps, ImagePromoBarProps, ModalProps, NavigationProps, OrderedListProps, PrimaryHeroProps, ProcessedChecklistItem, ProductCardProps, SearchBlockProps, ShapeBackgroundWrapperProps, SimpleCardProps, SubmitContext, SubmitHandler, TestimonialCardProps, TextProps };
|
|
1218
|
+
export type { AccordionProps, AddressInputBannerProps, AnchoredBottomBannerProps, AwardMarqueeBackground, AwardMarqueeItem, AwardMarqueeProps, AwardMarqueeSpeed, BlogCardProps$2 as BlogCardProps, BlogGridBaseProps, BlogGridProps, BreadcrumbNavigationProps, ButtonProps, CalloutProps, CardsProps, CarouselProps, CartRetentionBannerBackgroundColor, CartRetentionBannerImageAccentColor, CartRetentionBannerImagePosition, TypeCartRetentionBannerFields as CartRetentionBannerProps, ComparisonTableProps, ConditionalFieldConfig, TypeComponentRichTextFields as CookieBannerProps, CtaCalloutProps, DynamicFormFieldConfig, DynamicFormFieldOption, DynamicFormFieldType, DynamicFormItem, DynamicFormPayload, DynamicFormProps, DynamicTabsT, EmailInputBlockProps, ExistingDataSourceResolver, FieldRenderProps, FindKineticProps, FloatingBannerProps, FooterProps, FormAction, IframeEmbedProps, ImagePromoBarProps, ModalProps, NavigationProps, OrderedListProps, PrimaryHeroProps, ProcessedChecklistItem, ProductCardProps, ScheduledMessage, ScheduledMessageDay, SearchBlockProps, ShapeBackgroundWrapperProps, SimpleCardProps, SubmitContext, SubmitHandler, TestimonialCardProps, TextProps };
|