@windstream/react-shared-components 0.2.49 → 0.2.51
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 +12 -1
- package/dist/contentful/index.esm.js +3 -3
- package/dist/contentful/index.esm.js.map +1 -1
- package/dist/contentful/index.js +3 -3
- package/dist/contentful/index.js.map +1 -1
- package/dist/core.d.ts +3 -1
- package/dist/index.d.ts +4 -2
- package/dist/index.esm.js +6 -6
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/next/index.esm.js +2 -2
- package/dist/next/index.esm.js.map +1 -1
- package/dist/next/index.js +2 -2
- package/dist/next/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +2 -1
- package/src/components/next-image/index.tsx +10 -1
- package/src/components/video-link/contentful-video-embed.tsx +17 -1
- package/src/components/video-link/index.test.tsx +196 -24
- package/src/components/video-link/index.tsx +84 -15
- package/src/components/video-link/types.ts +15 -1
- package/src/components/video-link/vimeo-embed.tsx +51 -2
- package/src/components/video-link/youtube-embed.test.tsx +81 -54
- package/src/components/video-link/youtube-embed.tsx +97 -16
- package/src/components/video-link/youtube-iframe-api-loader.ts +45 -0
- package/src/contentful/blocks/callout/index.test.tsx +2 -2
- package/src/contentful/blocks/callout/index.tsx +1 -0
- package/src/contentful/blocks/cards/blog-card/index.tsx +9 -2
- package/src/contentful/blocks/cards/blog-card/types.ts +4 -0
- package/src/contentful/blocks/cards/floating-image-card/index.tsx +20 -6
- package/src/contentful/blocks/cards/floating-image-card/types.ts +4 -0
- package/src/contentful/blocks/cards/full-image-card/index.tsx +2 -1
- package/src/contentful/blocks/cards/full-image-card/types.ts +4 -0
- package/src/contentful/blocks/cards/simple-card/index.tsx +2 -2
- package/src/contentful/blocks/cards/simple-card/types.ts +4 -0
- package/src/contentful/blocks/find-kinetic/index.tsx +20 -7
- package/src/contentful/blocks/find-kinetic/types.ts +1 -0
- package/src/contentful/blocks/image-promo-bar/index.test.tsx +2 -2
- package/src/contentful/blocks/image-promo-bar/index.tsx +4 -1
- package/src/contentful/blocks/image-promo-bar/types.ts +6 -1
- package/src/contentful/blocks/primary-hero/index.tsx +6 -6
- package/src/hooks/contentful/use-contentful-rich-text.test.tsx +6 -6
- package/src/hooks/use-fullscreen-toggle.ts +23 -0
- package/src/hooks/use-video-analytics.ts +126 -0
- package/src/types/vimeo-player.d.ts +11 -0
|
@@ -4,7 +4,7 @@ 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 } from '@shared/components/video-link';
|
|
7
|
+
import { VideoLinkProps, VideoAnalyticsHandler } from '@shared/components/video-link';
|
|
8
8
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
9
9
|
import { ButtonProps as ButtonProps$1 } from '@shared/contentful/blocks/button/types';
|
|
10
10
|
import { BlogCardImageProps as BlogCardImageProps$1 } from '@shared/contentful/blocks/cards/blog-card/types';
|
|
@@ -149,6 +149,10 @@ type Item = {
|
|
|
149
149
|
title?: string;
|
|
150
150
|
image?: string;
|
|
151
151
|
imageAlt?: string;
|
|
152
|
+
/** Explicit image alt text; takes priority over the description fallback. */
|
|
153
|
+
imageAltText?: string;
|
|
154
|
+
/** Contentful asset description — used as the alt-text fallback. */
|
|
155
|
+
imageDescription?: string;
|
|
152
156
|
imageWidth?: number;
|
|
153
157
|
imageHeight?: number;
|
|
154
158
|
imageAlignment?: "left" | "right" | "center";
|
|
@@ -342,6 +346,7 @@ type ImagePromoBarProps = {
|
|
|
342
346
|
title: string;
|
|
343
347
|
subTitle: string;
|
|
344
348
|
image: string;
|
|
349
|
+
imageAltText?: string;
|
|
345
350
|
imageWidth: number;
|
|
346
351
|
imageHeight: number;
|
|
347
352
|
useOriginalImageAspectRatio?: boolean;
|
|
@@ -362,6 +367,7 @@ type ImagePromoBarProps = {
|
|
|
362
367
|
maxWidth?: boolean;
|
|
363
368
|
color: "light" | "dark";
|
|
364
369
|
enableAnimation?: boolean;
|
|
370
|
+
onVideoEvent?: VideoAnalyticsHandler;
|
|
365
371
|
onModalButtonClick?: (id?: string) => void;
|
|
366
372
|
onClick?: (event: React__default.MouseEvent, source: "primary" | "secondary") => void;
|
|
367
373
|
renderCheckPlans?: (overrides?: CheckPlansProps) => React__default.ReactNode;
|
|
@@ -547,6 +553,7 @@ type FindKineticProps = {
|
|
|
547
553
|
localPathPrefix?: string;
|
|
548
554
|
background?: "blue" | "green" | "navy" | "purple" | "white" | "yellow";
|
|
549
555
|
image?: string;
|
|
556
|
+
imageAltText?: string;
|
|
550
557
|
list?: {
|
|
551
558
|
name: string;
|
|
552
559
|
code: string;
|
|
@@ -633,9 +640,13 @@ interface BlogCardProps$2 {
|
|
|
633
640
|
image?: {
|
|
634
641
|
src: string;
|
|
635
642
|
alt: string;
|
|
643
|
+
/** Contentful asset description — used as the alt-text fallback. */
|
|
644
|
+
description?: string;
|
|
636
645
|
width: number;
|
|
637
646
|
height: number;
|
|
638
647
|
};
|
|
648
|
+
/** Explicit image alt text; falls back to the image description then alt. */
|
|
649
|
+
imageAltText?: string;
|
|
639
650
|
/** Pass next/image's Image component here to enable image optimization */
|
|
640
651
|
imageComponent?: React__default.ComponentType<BlogCardImageProps>;
|
|
641
652
|
asGrid?: boolean;
|