@windstream/react-shared-components 0.2.78 → 0.2.80
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 +29 -3
- package/dist/contentful/index.esm.js +2 -2
- package/dist/contentful/index.esm.js.map +1 -1
- package/dist/contentful/index.js +2 -2
- package/dist/contentful/index.js.map +1 -1
- package/dist/core.d.ts +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/src/contentful/blocks/cards/product-card/index.tsx +11 -3
- package/src/contentful/blocks/cards/product-card/types.ts +11 -0
- package/src/contentful/blocks/carousel/helper.tsx +1 -0
- package/src/contentful/blocks/carousel/index.tsx +8 -1
- package/src/contentful/blocks/carousel/types.ts +15 -0
- package/src/contentful/blocks/links-block/index.test.tsx +79 -0
- package/src/contentful/blocks/links-block/index.tsx +52 -0
- package/src/contentful/blocks/links-block/types.ts +24 -0
- package/src/contentful/index.ts +7 -0
|
@@ -4,8 +4,8 @@ import { AnimationType } from '@shared/components/animation-wrapper';
|
|
|
4
4
|
import { ResponsiveSize } from '@shared/components/brand-button/types';
|
|
5
5
|
import { Fill, Size } from '@shared/components/material-icon/types';
|
|
6
6
|
import { CheckPlansProps, Asset, Button as Button$1, ButtonGroup } from '@shared/types/micro-components';
|
|
7
|
-
import { VideoLinkProps, VideoAnalyticsHandler } from '@shared/components/video-link';
|
|
8
7
|
import { FieldProps } from '@shared/types/field-props';
|
|
8
|
+
import { VideoLinkProps, VideoAnalyticsHandler } from '@shared/components/video-link';
|
|
9
9
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
10
10
|
import { ButtonProps as ButtonProps$1 } from '@shared/contentful/blocks/button/types';
|
|
11
11
|
import { BlogCardImageProps as BlogCardImageProps$1 } from '@shared/contentful/blocks/cards/blog-card/types';
|
|
@@ -297,6 +297,10 @@ interface ProductCardFields {
|
|
|
297
297
|
url: string;
|
|
298
298
|
[key: string]: any;
|
|
299
299
|
};
|
|
300
|
+
/** Pre-computed per-field Inspector Mode / Live Preview DOM attributes for
|
|
301
|
+
* this item, supplied by the consumer and passed through to the rendered
|
|
302
|
+
* ProductCard unchanged. The library itself stays CMS-agnostic. */
|
|
303
|
+
fieldProps?: FieldProps<"planName" | "planSubtext" | "price" | "priceSuffixBottom" | "description" | "bestValueText" | "featuresTitle">;
|
|
300
304
|
}
|
|
301
305
|
interface CardFields {
|
|
302
306
|
__typename: "ComponentCard";
|
|
@@ -344,6 +348,8 @@ type CarouselProps = {
|
|
|
344
348
|
* map this onto their click analytics (e.g. Segment "Site Clicked"). */
|
|
345
349
|
onProductCardCtaClick?: (item: ProductCardFields, event: React__default.MouseEvent<HTMLElement>) => void;
|
|
346
350
|
enableBusinessSettings?: boolean;
|
|
351
|
+
/** Extra DOM attribute props, spread onto the respective rendered elements. */
|
|
352
|
+
fieldProps?: FieldProps<"title" | "subTitle" | "disclaimerText">;
|
|
347
353
|
};
|
|
348
354
|
|
|
349
355
|
declare const Carousel: React__default.FC<CarouselProps>;
|
|
@@ -537,6 +543,24 @@ declare const Text: React.FC<{
|
|
|
537
543
|
|
|
538
544
|
declare const Button: React__default.FC<ButtonProps>;
|
|
539
545
|
|
|
546
|
+
type LinksBlockButtonVariant = NonNullable<ButtonProps$1["buttonVariant"]>;
|
|
547
|
+
type LinksBlockLink = {
|
|
548
|
+
id: string;
|
|
549
|
+
title?: string;
|
|
550
|
+
href: string;
|
|
551
|
+
target?: "_self" | "_blank";
|
|
552
|
+
buttonVariant?: LinksBlockButtonVariant;
|
|
553
|
+
};
|
|
554
|
+
type LinksBlockProps = {
|
|
555
|
+
title?: string;
|
|
556
|
+
links?: LinksBlockLink[];
|
|
557
|
+
/** Fired when a link is clicked, e.g. to publish analytics events */
|
|
558
|
+
onLinkClick?: (link: LinksBlockLink, event: React__default.MouseEvent<HTMLAnchorElement | HTMLButtonElement>) => void;
|
|
559
|
+
className?: string;
|
|
560
|
+
};
|
|
561
|
+
|
|
562
|
+
declare const LinksBlock: React__default.FC<LinksBlockProps>;
|
|
563
|
+
|
|
540
564
|
type ModalProps = {
|
|
541
565
|
isOpen: boolean;
|
|
542
566
|
onRequestClose?: () => void;
|
|
@@ -669,6 +693,8 @@ interface ProductCardProps {
|
|
|
669
693
|
* sizes at every breakpoint. */
|
|
670
694
|
twoColumn?: boolean;
|
|
671
695
|
enableBusinessSettings?: boolean;
|
|
696
|
+
/** Extra DOM attribute props, spread onto the respective rendered elements. */
|
|
697
|
+
fieldProps?: FieldProps<"planName" | "planSubtext" | "price" | "priceSuffixBottom" | "description" | "bestValueText" | "featuresTitle">;
|
|
672
698
|
}
|
|
673
699
|
|
|
674
700
|
declare const ProductCard: React__default.FC<ProductCardProps>;
|
|
@@ -1259,5 +1285,5 @@ interface ProcessedChecklistItem {
|
|
|
1259
1285
|
}
|
|
1260
1286
|
declare function useProcessedChecklist<T extends boolean = false>(checklistData?: any, titlesOnly?: T, richTextOptions?: Options, richTextClassName?: string): T extends true ? string[] : ProcessedChecklistItem[];
|
|
1261
1287
|
|
|
1262
|
-
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 };
|
|
1263
|
-
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 };
|
|
1288
|
+
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, LinksBlock, Modal, Navigation, OrderedList, PrimaryHero, ProductCard, SearchBlock, ShapeBackgroundWrapper, SimpleCard, TestimonialCard, Text, constants as dynamicFormConstants, Regex as dynamicFormRegex, label1BoldOptions, renderContentfulRichText, renderContentfulRichTextTable, toDocument, useContentfulRichText, useProcessedChecklist };
|
|
1289
|
+
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, LinksBlockButtonVariant, LinksBlockLink, LinksBlockProps, ModalProps, NavigationProps, OrderedListProps, PrimaryHeroProps, ProcessedChecklistItem, ProductCardProps, ScheduledMessage, ScheduledMessageDay, SearchBlockProps, ShapeBackgroundWrapperProps, SimpleCardProps, SubmitContext, SubmitHandler, TestimonialCardProps, TextProps };
|