@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
@@ -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';
@@ -367,6 +367,7 @@ type ImagePromoBarProps = {
367
367
  maxWidth?: boolean;
368
368
  color: "light" | "dark";
369
369
  enableAnimation?: boolean;
370
+ onVideoEvent?: VideoAnalyticsHandler;
370
371
  onModalButtonClick?: (id?: string) => void;
371
372
  onClick?: (event: React__default.MouseEvent, source: "primary" | "secondary") => void;
372
373
  renderCheckPlans?: (overrides?: CheckPlansProps) => React__default.ReactNode;
@@ -430,6 +431,9 @@ interface Navigation$1 {
430
431
  * (the one next to the cart icon and hamburger). The drawer
431
432
  * still renders the CallButton. Defaults to false. */
432
433
  hideMobileCallButton?: boolean;
434
+ /** When true, renders the mobile hamburger navigation in the desktop
435
+ * viewport and hides the inline desktop nav. Defaults to false. */
436
+ enableHamburgerNavigationOnDesktop?: boolean;
433
437
  }
434
438
  type NavigationProps = Navigation$1;
435
439