@windstream/react-shared-components 0.2.79 → 0.2.81

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.
Files changed (30) hide show
  1. package/dist/contentful/index.d.ts +17 -1
  2. package/dist/contentful/index.esm.js +2 -2
  3. package/dist/contentful/index.esm.js.map +1 -1
  4. package/dist/contentful/index.js +2 -2
  5. package/dist/contentful/index.js.map +1 -1
  6. package/dist/core.d.ts +1 -1
  7. package/dist/index.d.ts +1 -1
  8. package/package.json +1 -1
  9. package/src/contentful/blocks/address-input-banner/index.test.tsx +13 -0
  10. package/src/contentful/blocks/address-input-banner/index.tsx +5 -1
  11. package/src/contentful/blocks/address-input-banner/types.ts +3 -0
  12. package/src/contentful/blocks/button/index.test.tsx +45 -2
  13. package/src/contentful/blocks/button/index.tsx +13 -1
  14. package/src/contentful/blocks/button/types.ts +2 -0
  15. package/src/contentful/blocks/cards/product-card/index.tsx +11 -3
  16. package/src/contentful/blocks/cards/product-card/types.ts +11 -0
  17. package/src/contentful/blocks/carousel/helper.tsx +1 -0
  18. package/src/contentful/blocks/carousel/index.tsx +8 -1
  19. package/src/contentful/blocks/carousel/types.ts +15 -0
  20. package/src/contentful/blocks/footer/index.test.tsx +65 -2
  21. package/src/contentful/blocks/footer/index.tsx +14 -4
  22. package/src/contentful/blocks/footer/types.ts +4 -0
  23. package/src/contentful/blocks/navigation/desktop-link-groups.tsx/index.test.tsx +26 -2
  24. package/src/contentful/blocks/navigation/desktop-link-groups.tsx/index.tsx +8 -2
  25. package/src/contentful/blocks/navigation/index.test.tsx +40 -2
  26. package/src/contentful/blocks/navigation/index.tsx +25 -5
  27. package/src/contentful/blocks/navigation/mobile-link-groups.tsx/index.test.tsx +14 -0
  28. package/src/contentful/blocks/navigation/mobile-link-groups.tsx/index.tsx +4 -1
  29. package/src/contentful/blocks/navigation/types.ts +5 -0
  30. package/src/types/micro-components.ts +6 -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';
@@ -94,6 +94,8 @@ type ButtonProps = {
94
94
  iconSize?: Size;
95
95
  disableAnimation?: boolean;
96
96
  animationType?: AnimationType | AnimationType[];
97
+ /** Extra DOM attribute props, spread onto the rendered link/button element. */
98
+ fieldProps?: Record<string, unknown>;
97
99
  };
98
100
 
99
101
  type CalloutCardType = "simple" | "blog" | "fullImage" | "floatingImage";
@@ -297,6 +299,10 @@ interface ProductCardFields {
297
299
  url: string;
298
300
  [key: string]: any;
299
301
  };
302
+ /** Pre-computed per-field Inspector Mode / Live Preview DOM attributes for
303
+ * this item, supplied by the consumer and passed through to the rendered
304
+ * ProductCard unchanged. The library itself stays CMS-agnostic. */
305
+ fieldProps?: FieldProps<"planName" | "planSubtext" | "price" | "priceSuffixBottom" | "description" | "bestValueText" | "featuresTitle">;
300
306
  }
301
307
  interface CardFields {
302
308
  __typename: "ComponentCard";
@@ -344,6 +350,8 @@ type CarouselProps = {
344
350
  * map this onto their click analytics (e.g. Segment "Site Clicked"). */
345
351
  onProductCardCtaClick?: (item: ProductCardFields, event: React__default.MouseEvent<HTMLElement>) => void;
346
352
  enableBusinessSettings?: boolean;
353
+ /** Extra DOM attribute props, spread onto the respective rendered elements. */
354
+ fieldProps?: FieldProps<"title" | "subTitle" | "disclaimerText">;
347
355
  };
348
356
 
349
357
  declare const Carousel: React__default.FC<CarouselProps>;
@@ -371,6 +379,8 @@ type FooterProps = {
371
379
  terms?: string;
372
380
  maxWidth?: boolean;
373
381
  onClick?: (event: React__default.MouseEvent<HTMLAnchorElement | HTMLButtonElement>) => void;
382
+ /** Extra DOM attribute props, spread onto the respective rendered elements. */
383
+ fieldProps?: FieldProps<"body" | "terms" | "copyrights">;
374
384
  };
375
385
 
376
386
  declare const Footer: React__default.FC<FooterProps>;
@@ -469,6 +479,8 @@ interface Navigation$1 {
469
479
  /** When true, renders the mobile hamburger navigation in the desktop
470
480
  * viewport and hides the inline desktop nav. Defaults to false. */
471
481
  enableHamburgerNavigationOnDesktop?: boolean;
482
+ /** Extra DOM attribute props, spread onto the respective rendered elements. */
483
+ fieldProps?: FieldProps<"logo" | "searchBarIcon" | "callNowCtaText" | "callNowCtaIcon">;
472
484
  }
473
485
  type NavigationProps = Navigation$1;
474
486
 
@@ -687,6 +699,8 @@ interface ProductCardProps {
687
699
  * sizes at every breakpoint. */
688
700
  twoColumn?: boolean;
689
701
  enableBusinessSettings?: boolean;
702
+ /** Extra DOM attribute props, spread onto the respective rendered elements. */
703
+ fieldProps?: FieldProps<"planName" | "planSubtext" | "price" | "priceSuffixBottom" | "description" | "bestValueText" | "featuresTitle">;
690
704
  }
691
705
 
692
706
  declare const ProductCard: React__default.FC<ProductCardProps>;
@@ -828,6 +842,8 @@ interface AddressInputBannerProps {
828
842
  navHeight?: number;
829
843
  isVisible?: boolean;
830
844
  renderCheckPlans?: (overrides?: CheckPlansProps) => React__default.ReactNode;
845
+ /** Extra DOM attribute props, spread onto the respective rendered elements. */
846
+ fieldProps?: FieldProps<"title">;
831
847
  }
832
848
 
833
849
  declare const AddressInputBanner: FC<AddressInputBannerProps>;