@windstream/react-shared-components 0.2.70 → 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 +14 -1
- package/dist/contentful/index.esm.js +1 -1
- 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 +2 -2
- 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
- package/src/contentful/blocks/primary-hero/index.tsx +51 -18
- package/src/contentful/blocks/primary-hero/types.ts +17 -0
- package/src/types/field-props.ts +9 -0
|
@@ -5,6 +5,7 @@ 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
7
|
import { VideoLinkProps, VideoAnalyticsHandler } from '@shared/components/video-link';
|
|
8
|
+
import { FieldProps } from '@shared/types/field-props';
|
|
8
9
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
9
10
|
import { ButtonProps as ButtonProps$1 } from '@shared/contentful/blocks/button/types';
|
|
10
11
|
import { BlogCardImageProps as BlogCardImageProps$1 } from '@shared/contentful/blocks/cards/blog-card/types';
|
|
@@ -332,6 +333,15 @@ type CarouselProps = {
|
|
|
332
333
|
testimonialAutoScroll?: boolean;
|
|
333
334
|
onModalButtonClick?: (id?: string) => void;
|
|
334
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;
|
|
335
345
|
};
|
|
336
346
|
|
|
337
347
|
declare const Carousel: React__default.FC<CarouselProps>;
|
|
@@ -501,6 +511,8 @@ type PrimaryHeroProps = {
|
|
|
501
511
|
renderCheckPlans?: (overrides?: CheckPlansProps) => React__default.ReactNode;
|
|
502
512
|
onModalButtonClick?: (id?: string) => void;
|
|
503
513
|
onImageClick?: () => void;
|
|
514
|
+
/** Extra DOM attribute props, spread onto the respective rendered elements. */
|
|
515
|
+
fieldProps?: FieldProps<"title" | "subTitle" | "price" | "priceSuffix" | "priceCallout" | "pricingDescription" | "pricingDescriptionDisclaimer" | "secondaryCtaPrefix" | "checklist" | "logoLockup" | "badgeImage" | "heroImage" | "heroVideo">;
|
|
504
516
|
};
|
|
505
517
|
|
|
506
518
|
declare const PrimaryHero: React__default.FC<PrimaryHeroProps>;
|
|
@@ -644,7 +656,7 @@ interface ProductCardProps {
|
|
|
644
656
|
onToggleExpand?: () => void;
|
|
645
657
|
ctaText?: string;
|
|
646
658
|
cta?: ButtonProps$1;
|
|
647
|
-
onCtaClick: () => void;
|
|
659
|
+
onCtaClick: (event: React__default.MouseEvent<HTMLElement>) => void;
|
|
648
660
|
renderCheckPlans?: (overrides?: CheckPlansProps) => React__default.ReactNode;
|
|
649
661
|
/** True when any card in the set has a best-value badge, so non-badge cards
|
|
650
662
|
* reserve the banner height and stay vertically aligned. */
|
|
@@ -653,6 +665,7 @@ interface ProductCardProps {
|
|
|
653
665
|
* compact mobile typography below `md`. One-column stacks keep the standard
|
|
654
666
|
* sizes at every breakpoint. */
|
|
655
667
|
twoColumn?: boolean;
|
|
668
|
+
enableBusinessSettings?: boolean;
|
|
656
669
|
}
|
|
657
670
|
|
|
658
671
|
declare const ProductCard: React__default.FC<ProductCardProps>;
|