@windstream/react-shared-components 0.2.79 → 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.
@@ -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>;
@@ -687,6 +693,8 @@ interface ProductCardProps {
687
693
  * sizes at every breakpoint. */
688
694
  twoColumn?: boolean;
689
695
  enableBusinessSettings?: boolean;
696
+ /** Extra DOM attribute props, spread onto the respective rendered elements. */
697
+ fieldProps?: FieldProps<"planName" | "planSubtext" | "price" | "priceSuffixBottom" | "description" | "bestValueText" | "featuresTitle">;
690
698
  }
691
699
 
692
700
  declare const ProductCard: React__default.FC<ProductCardProps>;