@windstream/react-shared-components 0.2.50 → 0.2.52

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 (35) hide show
  1. package/dist/contentful/index.d.ts +5 -1
  2. package/dist/contentful/index.esm.js +15 -3
  3. package/dist/contentful/index.esm.js.map +1 -1
  4. package/dist/contentful/index.js +15 -3
  5. package/dist/contentful/index.js.map +1 -1
  6. package/dist/core.d.ts +4 -2
  7. package/dist/index.d.ts +2 -0
  8. package/dist/index.esm.js +18 -6
  9. package/dist/index.esm.js.map +1 -1
  10. package/dist/index.js +18 -6
  11. package/dist/index.js.map +1 -1
  12. package/dist/next/index.esm.js +16 -2
  13. package/dist/next/index.esm.js.map +1 -1
  14. package/dist/next/index.js +16 -2
  15. package/dist/next/index.js.map +1 -1
  16. package/dist/styles.css +1 -1
  17. package/package.json +2 -1
  18. package/src/components/next-image/index.tsx +10 -1
  19. package/src/components/video-link/contentful-video-embed.tsx +17 -1
  20. package/src/components/video-link/index.test.tsx +196 -24
  21. package/src/components/video-link/index.tsx +84 -15
  22. package/src/components/video-link/types.ts +15 -1
  23. package/src/components/video-link/vimeo-embed.tsx +51 -2
  24. package/src/components/video-link/youtube-embed.test.tsx +81 -54
  25. package/src/components/video-link/youtube-embed.tsx +97 -16
  26. package/src/components/video-link/youtube-iframe-api-loader.ts +45 -0
  27. package/src/contentful/blocks/image-promo-bar/index.test.tsx +2 -2
  28. package/src/contentful/blocks/image-promo-bar/index.tsx +2 -0
  29. package/src/contentful/blocks/image-promo-bar/types.ts +5 -1
  30. package/src/contentful/blocks/navigation/index.test.tsx +34 -0
  31. package/src/contentful/blocks/navigation/index.tsx +33 -4
  32. package/src/contentful/blocks/navigation/types.ts +3 -0
  33. package/src/hooks/use-fullscreen-toggle.ts +23 -0
  34. package/src/hooks/use-video-analytics.ts +126 -0
  35. 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';
@@ -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?: "error" | "default" | "focus" | "active" | "hover" | "filled" | undefined;
69
- size?: "medium" | "slim" | "large" | undefined;
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>;
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';
@@ -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>;