@windstream/react-shared-components 0.2.71 → 0.2.72
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 +11 -1
- package/dist/contentful/index.esm.js +4 -4
- 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/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/select-plan-button/index.tsx +2 -2
- package/src/components/select-plan-button/types.ts +1 -1
- package/src/components/video-link/vimeo-embed.test.tsx +14 -0
- package/src/contentful/blocks/cards/product-card/index.test.tsx +48 -9
- package/src/contentful/blocks/cards/product-card/index.tsx +3 -1
- package/src/contentful/blocks/cards/product-card/types.ts +2 -1
- package/src/contentful/blocks/carousel/helper.test.tsx +43 -2
- package/src/contentful/blocks/carousel/helper.tsx +26 -3
- package/src/contentful/blocks/carousel/index.test.tsx +72 -2
- package/src/contentful/blocks/carousel/index.tsx +10 -1
- package/src/contentful/blocks/carousel/types.ts +12 -0
|
@@ -333,6 +333,15 @@ type CarouselProps = {
|
|
|
333
333
|
testimonialAutoScroll?: boolean;
|
|
334
334
|
onModalButtonClick?: (id?: string) => void;
|
|
335
335
|
renderCheckPlans?: (overrides?: CheckPlansProps) => React__default.ReactNode;
|
|
336
|
+
/** Ref attached to the product-card ("speeds list") container so consumers
|
|
337
|
+
* can observe its scroll visibility (e.g. to fire their own view-tracking
|
|
338
|
+
* analytics). Only product-card carousels expose a measurable element. */
|
|
339
|
+
productCardsRef?: React__default.Ref<HTMLDivElement>;
|
|
340
|
+
/** Fired when a product card's CTA ("Select plan") is clicked, with the
|
|
341
|
+
* Contentful product-card entry and the originating click event. Consumers
|
|
342
|
+
* map this onto their click analytics (e.g. Segment "Site Clicked"). */
|
|
343
|
+
onProductCardCtaClick?: (item: ProductCardFields, event: React__default.MouseEvent<HTMLElement>) => void;
|
|
344
|
+
enableBusinessSettings?: boolean;
|
|
336
345
|
};
|
|
337
346
|
|
|
338
347
|
declare const Carousel: React__default.FC<CarouselProps>;
|
|
@@ -647,7 +656,7 @@ interface ProductCardProps {
|
|
|
647
656
|
onToggleExpand?: () => void;
|
|
648
657
|
ctaText?: string;
|
|
649
658
|
cta?: ButtonProps$1;
|
|
650
|
-
onCtaClick: () => void;
|
|
659
|
+
onCtaClick: (event: React__default.MouseEvent<HTMLElement>) => void;
|
|
651
660
|
renderCheckPlans?: (overrides?: CheckPlansProps) => React__default.ReactNode;
|
|
652
661
|
/** True when any card in the set has a best-value badge, so non-badge cards
|
|
653
662
|
* reserve the banner height and stay vertically aligned. */
|
|
@@ -656,6 +665,7 @@ interface ProductCardProps {
|
|
|
656
665
|
* compact mobile typography below `md`. One-column stacks keep the standard
|
|
657
666
|
* sizes at every breakpoint. */
|
|
658
667
|
twoColumn?: boolean;
|
|
668
|
+
enableBusinessSettings?: boolean;
|
|
659
669
|
}
|
|
660
670
|
|
|
661
671
|
declare const ProductCard: React__default.FC<ProductCardProps>;
|