@windstream/react-shared-components 0.2.69 → 0.2.71
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 +3 -0
- 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 +33 -4
- package/dist/index.d.ts +32 -3
- package/dist/index.esm.js +8 -8
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +8 -8
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/utils/index.esm.js +1 -1
- package/dist/utils/index.esm.js.map +1 -1
- package/dist/utils/index.js +1 -1
- package/dist/utils/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/rich-text-basic/index.test.tsx +172 -0
- package/src/components/rich-text-basic/index.tsx +102 -0
- package/src/components/rich-text-basic/types.ts +34 -0
- package/src/components/video-link/index.tsx +2 -2
- package/src/contentful/blocks/primary-hero/index.tsx +51 -18
- package/src/contentful/blocks/primary-hero/types.ts +17 -0
- package/src/hooks/contentful/use-contentful-rich-text.tsx +39 -2
- package/src/index.ts +7 -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';
|
|
@@ -501,6 +502,8 @@ type PrimaryHeroProps = {
|
|
|
501
502
|
renderCheckPlans?: (overrides?: CheckPlansProps) => React__default.ReactNode;
|
|
502
503
|
onModalButtonClick?: (id?: string) => void;
|
|
503
504
|
onImageClick?: () => void;
|
|
505
|
+
/** Extra DOM attribute props, spread onto the respective rendered elements. */
|
|
506
|
+
fieldProps?: FieldProps<"title" | "subTitle" | "price" | "priceSuffix" | "priceCallout" | "pricingDescription" | "pricingDescriptionDisclaimer" | "secondaryCtaPrefix" | "checklist" | "logoLockup" | "badgeImage" | "heroImage" | "heroVideo">;
|
|
504
507
|
};
|
|
505
508
|
|
|
506
509
|
declare const PrimaryHero: React__default.FC<PrimaryHeroProps>;
|