@windstream/react-shared-components 0.2.50 → 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 +2 -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 +2 -0
- 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/image-promo-bar/index.test.tsx +2 -2
- package/src/contentful/blocks/image-promo-bar/index.tsx +2 -0
- package/src/contentful/blocks/image-promo-bar/types.ts +5 -1
- 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
package/dist/core.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
7
7
|
import { InputFieldProps as InputFieldProps$1 } from '@shared/components/input';
|
|
8
8
|
import { ImageProps as ImageProps$1 } from '@shared/components/image/types';
|
|
9
9
|
import { ImageProps as ImageProps$2 } from 'next/image';
|
|
10
|
+
import { VideoAnalyticsHandler } from '@shared/hooks/use-video-analytics';
|
|
10
11
|
import { CallButtonProps } from '@shared/components/call-button/types';
|
|
11
12
|
export { CallButtonProps } from '@shared/components/call-button/types';
|
|
12
13
|
import { Props } from 'react-modal';
|
|
@@ -283,6 +284,7 @@ type VideoLinkComponentProps = {
|
|
|
283
284
|
imageHeight?: number;
|
|
284
285
|
useOriginalImageAspectRatio?: boolean;
|
|
285
286
|
isAboveTheFold?: boolean;
|
|
287
|
+
onVideoEvent?: VideoAnalyticsHandler;
|
|
286
288
|
};
|
|
287
289
|
|
|
288
290
|
declare const VideoLink: React__default.FC<VideoLinkComponentProps>;
|
package/dist/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
7
7
|
import { InputFieldProps as InputFieldProps$1 } from '@shared/components/input';
|
|
8
8
|
import { ImageProps as ImageProps$1 } from '@shared/components/image/types';
|
|
9
9
|
import { ImageProps as ImageProps$2 } from 'next/image';
|
|
10
|
+
import { VideoAnalyticsHandler } from '@shared/hooks/use-video-analytics';
|
|
10
11
|
import { CallButtonProps } from '@shared/components/call-button/types';
|
|
11
12
|
export { CallButtonProps } from '@shared/components/call-button/types';
|
|
12
13
|
import { Props } from 'react-modal';
|
|
@@ -65,8 +66,8 @@ type InputFieldProps = Omit<InputHTMLAttributes<HTMLInputElement>, "size"> & {
|
|
|
65
66
|
|
|
66
67
|
declare const InputField: ForwardRefRenderFunction<HTMLInputElement, InputFieldProps>;
|
|
67
68
|
declare const Input: React$1.ForwardRefExoticComponent<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "size"> & {
|
|
68
|
-
state?: "
|
|
69
|
-
size?: "
|
|
69
|
+
state?: "default" | "focus" | "active" | "hover" | "filled" | "error" | undefined;
|
|
70
|
+
size?: "slim" | "medium" | "large" | undefined;
|
|
70
71
|
label?: string | undefined;
|
|
71
72
|
errorText?: string | undefined;
|
|
72
73
|
prefixIconName?: "search" | "location_on" | undefined;
|
|
@@ -283,6 +284,7 @@ type VideoLinkComponentProps = {
|
|
|
283
284
|
imageHeight?: number;
|
|
284
285
|
useOriginalImageAspectRatio?: boolean;
|
|
285
286
|
isAboveTheFold?: boolean;
|
|
287
|
+
onVideoEvent?: VideoAnalyticsHandler;
|
|
286
288
|
};
|
|
287
289
|
|
|
288
290
|
declare const VideoLink: React__default.FC<VideoLinkComponentProps>;
|