@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.
@@ -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>;