@opensite/ui 3.1.1 → 3.1.3

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 (45) hide show
  1. package/dist/cta-video-background-hero.cjs +16 -6
  2. package/dist/cta-video-background-hero.d.cts +12 -4
  3. package/dist/cta-video-background-hero.d.ts +12 -4
  4. package/dist/cta-video-background-hero.js +16 -6
  5. package/dist/hero-conversion-video-play.cjs +8 -3
  6. package/dist/hero-conversion-video-play.d.cts +8 -4
  7. package/dist/hero-conversion-video-play.d.ts +8 -4
  8. package/dist/hero-conversion-video-play.js +8 -3
  9. package/dist/hero-creative-studio-stacked.cjs +10 -4
  10. package/dist/hero-creative-studio-stacked.d.cts +12 -4
  11. package/dist/hero-creative-studio-stacked.d.ts +12 -4
  12. package/dist/hero-creative-studio-stacked.js +10 -4
  13. package/dist/hero-mentorship-video-split.cjs +13 -6
  14. package/dist/hero-mentorship-video-split.d.cts +12 -8
  15. package/dist/hero-mentorship-video-split.d.ts +12 -8
  16. package/dist/hero-mentorship-video-split.js +13 -6
  17. package/dist/hero-presentation-platform-video.cjs +8 -3
  18. package/dist/hero-presentation-platform-video.d.cts +11 -6
  19. package/dist/hero-presentation-platform-video.d.ts +11 -6
  20. package/dist/hero-presentation-platform-video.js +8 -3
  21. package/dist/hero-productivity-launcher-video.cjs +8 -3
  22. package/dist/hero-productivity-launcher-video.d.cts +11 -6
  23. package/dist/hero-productivity-launcher-video.d.ts +11 -6
  24. package/dist/hero-productivity-launcher-video.js +8 -3
  25. package/dist/hero-software-growth-video-dialog.cjs +10 -4
  26. package/dist/hero-software-growth-video-dialog.d.cts +14 -3
  27. package/dist/hero-software-growth-video-dialog.d.ts +14 -3
  28. package/dist/hero-software-growth-video-dialog.js +10 -4
  29. package/dist/hero-video-background-dark.cjs +8 -3
  30. package/dist/hero-video-background-dark.d.cts +9 -5
  31. package/dist/hero-video-background-dark.d.ts +9 -5
  32. package/dist/hero-video-background-dark.js +8 -3
  33. package/dist/{hero-video-dialog-gradient-CLamMYZP.d.ts → hero-video-dialog-gradient-DBQ2Iqe3.d.ts} +14 -3
  34. package/dist/{hero-video-dialog-gradient-DOlgSdif.d.cts → hero-video-dialog-gradient-z-muf_Dc.d.cts} +14 -3
  35. package/dist/hero-video-dialog-gradient.cjs +10 -4
  36. package/dist/hero-video-dialog-gradient.d.cts +1 -1
  37. package/dist/hero-video-dialog-gradient.d.ts +1 -1
  38. package/dist/hero-video-dialog-gradient.js +10 -4
  39. package/dist/hero-video-overlay-stars.cjs +8 -3
  40. package/dist/hero-video-overlay-stars.d.cts +9 -5
  41. package/dist/hero-video-overlay-stars.d.ts +9 -5
  42. package/dist/hero-video-overlay-stars.js +8 -3
  43. package/dist/registry.cjs +99 -39
  44. package/dist/registry.js +99 -39
  45. package/package.json +2 -2
@@ -553,6 +553,7 @@ function HeroVideoBackgroundDark({
553
553
  actions,
554
554
  actionsSlot,
555
555
  actionsClassName,
556
+ backgroundVideo,
556
557
  videoSrc,
557
558
  videoSlot,
558
559
  background,
@@ -573,18 +574,22 @@ function HeroVideoBackgroundDark({
573
574
  /* @__PURE__ */ jsx(
574
575
  Video,
575
576
  {
576
- src: videoSrc,
577
+ src: backgroundVideo?.video?.src || videoSrc,
578
+ masterPlaylistUrl: backgroundVideo?.video?.masterPlaylistUrl,
579
+ fallbackSrc: backgroundVideo?.video?.fallbackSrc,
580
+ poster: backgroundVideo?.video?.poster || backgroundVideo?.image?.src,
577
581
  loop: true,
578
582
  playsInline: true,
579
583
  autoPlay: true,
580
584
  muted: true,
581
585
  controls: false,
582
- className: "absolute top-0 left-0 size-full object-cover"
586
+ className: "absolute top-0 left-0 size-full object-cover",
587
+ ...backgroundVideo?.video
583
588
  }
584
589
  ),
585
590
  /* @__PURE__ */ jsx(GradientOverlay, { intensity: videoOverlayIntensity })
586
591
  ] });
587
- }, [videoSlot, videoSrc, videoOverlayIntensity]);
592
+ }, [videoSlot, backgroundVideo, videoSrc, videoOverlayIntensity]);
588
593
  return /* @__PURE__ */ jsx(
589
594
  Section,
590
595
  {
@@ -1,7 +1,10 @@
1
1
  import * as React from 'react';
2
2
  import { S as SectionBackground, s as SectionSpacing, t as PatternName } from './community-initiatives--8cXayNa.js';
3
- import { A as ActionConfig, I as ImageItem, O as OptixFlowConfig } from './blocks-DCvdF54D.js';
3
+ import { A as ActionConfig, I as ImageItem, M as MediaItem, O as OptixFlowConfig } from './blocks-DCvdF54D.js';
4
4
 
5
+ /**
6
+ * @deprecated Use modalVideo prop with MediaItem type instead
7
+ */
5
8
  interface VideoDialogConfig {
6
9
  /**
7
10
  * Dialog title
@@ -38,7 +41,15 @@ interface HeroVideoDialogGradientProps {
38
41
  */
39
42
  imageSlot?: React.ReactNode;
40
43
  /**
41
- * Video dialog configuration
44
+ * Video configuration for modal/dialog
45
+ */
46
+ modalVideo?: MediaItem;
47
+ /**
48
+ * Video dialog title
49
+ */
50
+ videoDialogTitle?: string;
51
+ /**
52
+ * @deprecated Use modalVideo instead
42
53
  */
43
54
  videoDialog?: VideoDialogConfig;
44
55
  /**
@@ -94,6 +105,6 @@ interface HeroVideoDialogGradientProps {
94
105
  */
95
106
  actionsClassName?: string;
96
107
  }
97
- declare function HeroVideoDialogGradient({ videoAspectRatio, heading, description, actions, videoAction, image, imageSlot, videoDialog, background, containerClassName, spacing, pattern, onVideoClick, patternOpacity, actionsClassName, className, headingClassName, descriptionClassName, imageClassName, optixFlowConfig, }: HeroVideoDialogGradientProps): React.JSX.Element;
108
+ declare function HeroVideoDialogGradient({ videoAspectRatio, heading, description, actions, videoAction, image, imageSlot, modalVideo, videoDialogTitle, videoDialog, background, containerClassName, spacing, pattern, onVideoClick, patternOpacity, actionsClassName, className, headingClassName, descriptionClassName, imageClassName, optixFlowConfig, }: HeroVideoDialogGradientProps): React.JSX.Element;
98
109
 
99
110
  export { HeroVideoDialogGradient as H, type VideoDialogConfig as V, type HeroVideoDialogGradientProps as a };
@@ -1,7 +1,10 @@
1
1
  import * as React from 'react';
2
2
  import { S as SectionBackground, s as SectionSpacing, t as PatternName } from './community-initiatives-B4p2JldF.cjs';
3
- import { A as ActionConfig, I as ImageItem, O as OptixFlowConfig } from './blocks-DCvdF54D.cjs';
3
+ import { A as ActionConfig, I as ImageItem, M as MediaItem, O as OptixFlowConfig } from './blocks-DCvdF54D.cjs';
4
4
 
5
+ /**
6
+ * @deprecated Use modalVideo prop with MediaItem type instead
7
+ */
5
8
  interface VideoDialogConfig {
6
9
  /**
7
10
  * Dialog title
@@ -38,7 +41,15 @@ interface HeroVideoDialogGradientProps {
38
41
  */
39
42
  imageSlot?: React.ReactNode;
40
43
  /**
41
- * Video dialog configuration
44
+ * Video configuration for modal/dialog
45
+ */
46
+ modalVideo?: MediaItem;
47
+ /**
48
+ * Video dialog title
49
+ */
50
+ videoDialogTitle?: string;
51
+ /**
52
+ * @deprecated Use modalVideo instead
42
53
  */
43
54
  videoDialog?: VideoDialogConfig;
44
55
  /**
@@ -94,6 +105,6 @@ interface HeroVideoDialogGradientProps {
94
105
  */
95
106
  actionsClassName?: string;
96
107
  }
97
- declare function HeroVideoDialogGradient({ videoAspectRatio, heading, description, actions, videoAction, image, imageSlot, videoDialog, background, containerClassName, spacing, pattern, onVideoClick, patternOpacity, actionsClassName, className, headingClassName, descriptionClassName, imageClassName, optixFlowConfig, }: HeroVideoDialogGradientProps): React.JSX.Element;
108
+ declare function HeroVideoDialogGradient({ videoAspectRatio, heading, description, actions, videoAction, image, imageSlot, modalVideo, videoDialogTitle, videoDialog, background, containerClassName, spacing, pattern, onVideoClick, patternOpacity, actionsClassName, className, headingClassName, descriptionClassName, imageClassName, optixFlowConfig, }: HeroVideoDialogGradientProps): React.JSX.Element;
98
109
 
99
110
  export { HeroVideoDialogGradient as H, type VideoDialogConfig as V, type HeroVideoDialogGradientProps as a };
@@ -547,6 +547,8 @@ function HeroVideoDialogGradient({
547
547
  videoAction,
548
548
  image,
549
549
  imageSlot,
550
+ modalVideo,
551
+ videoDialogTitle,
550
552
  videoDialog,
551
553
  background,
552
554
  containerClassName = "px-6 sm:px-6 md:px-8 lg:px-8",
@@ -636,7 +638,7 @@ function HeroVideoDialogGradient({
636
638
  actionsClassName
637
639
  ),
638
640
  children: [
639
- videoAction && videoDialog?.videoUrl ? /* @__PURE__ */ jsxRuntime.jsx(
641
+ videoAction && (modalVideo || videoDialog?.videoUrl) ? /* @__PURE__ */ jsxRuntime.jsx(
640
642
  ActionComponent,
641
643
  {
642
644
  action: {
@@ -661,7 +663,7 @@ function HeroVideoDialogGradient({
661
663
  videoAspectRatio === "vertical" ? "sm:max-w-100" : "sm:max-w-200"
662
664
  ),
663
665
  children: [
664
- /* @__PURE__ */ jsxRuntime.jsx(DialogHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(DialogTitle, { children: videoDialog?.title }) }),
666
+ /* @__PURE__ */ jsxRuntime.jsx(DialogHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(DialogTitle, { children: videoDialogTitle || videoDialog?.title }) }),
665
667
  /* @__PURE__ */ jsxRuntime.jsx(
666
668
  "div",
667
669
  {
@@ -669,12 +671,16 @@ function HeroVideoDialogGradient({
669
671
  children: /* @__PURE__ */ jsxRuntime.jsx(
670
672
  video.Video,
671
673
  {
672
- src: videoDialog?.videoUrl,
674
+ src: modalVideo?.video?.src || videoDialog?.videoUrl,
675
+ masterPlaylistUrl: modalVideo?.video?.masterPlaylistUrl,
676
+ fallbackSrc: modalVideo?.video?.fallbackSrc,
677
+ poster: modalVideo?.video?.poster || modalVideo?.image?.src,
673
678
  controls: true,
674
679
  autoPlay: true,
675
680
  skinClasses: skinClasses || void 0,
676
681
  skinStyle: skinStyle || void 0,
677
- className: "h-full w-full rounded-lg"
682
+ className: "h-full w-full rounded-lg",
683
+ ...modalVideo?.video
678
684
  }
679
685
  )
680
686
  }
@@ -1,4 +1,4 @@
1
- export { H as HeroVideoDialogGradient, a as HeroVideoDialogGradientProps } from './hero-video-dialog-gradient-DOlgSdif.cjs';
1
+ export { H as HeroVideoDialogGradient, a as HeroVideoDialogGradientProps } from './hero-video-dialog-gradient-z-muf_Dc.cjs';
2
2
  import 'react';
3
3
  import './community-initiatives-B4p2JldF.cjs';
4
4
  import './blocks-DCvdF54D.cjs';
@@ -1,4 +1,4 @@
1
- export { H as HeroVideoDialogGradient, a as HeroVideoDialogGradientProps } from './hero-video-dialog-gradient-CLamMYZP.js';
1
+ export { H as HeroVideoDialogGradient, a as HeroVideoDialogGradientProps } from './hero-video-dialog-gradient-DBQ2Iqe3.js';
2
2
  import 'react';
3
3
  import './community-initiatives--8cXayNa.js';
4
4
  import './blocks-DCvdF54D.js';
@@ -524,6 +524,8 @@ function HeroVideoDialogGradient({
524
524
  videoAction,
525
525
  image,
526
526
  imageSlot,
527
+ modalVideo,
528
+ videoDialogTitle,
527
529
  videoDialog,
528
530
  background,
529
531
  containerClassName = "px-6 sm:px-6 md:px-8 lg:px-8",
@@ -613,7 +615,7 @@ function HeroVideoDialogGradient({
613
615
  actionsClassName
614
616
  ),
615
617
  children: [
616
- videoAction && videoDialog?.videoUrl ? /* @__PURE__ */ jsx(
618
+ videoAction && (modalVideo || videoDialog?.videoUrl) ? /* @__PURE__ */ jsx(
617
619
  ActionComponent,
618
620
  {
619
621
  action: {
@@ -638,7 +640,7 @@ function HeroVideoDialogGradient({
638
640
  videoAspectRatio === "vertical" ? "sm:max-w-100" : "sm:max-w-200"
639
641
  ),
640
642
  children: [
641
- /* @__PURE__ */ jsx(DialogHeader, { children: /* @__PURE__ */ jsx(DialogTitle, { children: videoDialog?.title }) }),
643
+ /* @__PURE__ */ jsx(DialogHeader, { children: /* @__PURE__ */ jsx(DialogTitle, { children: videoDialogTitle || videoDialog?.title }) }),
642
644
  /* @__PURE__ */ jsx(
643
645
  "div",
644
646
  {
@@ -646,12 +648,16 @@ function HeroVideoDialogGradient({
646
648
  children: /* @__PURE__ */ jsx(
647
649
  Video,
648
650
  {
649
- src: videoDialog?.videoUrl,
651
+ src: modalVideo?.video?.src || videoDialog?.videoUrl,
652
+ masterPlaylistUrl: modalVideo?.video?.masterPlaylistUrl,
653
+ fallbackSrc: modalVideo?.video?.fallbackSrc,
654
+ poster: modalVideo?.video?.poster || modalVideo?.image?.src,
650
655
  controls: true,
651
656
  autoPlay: true,
652
657
  skinClasses: skinClasses || void 0,
653
658
  skinStyle: skinStyle || void 0,
654
- className: "h-full w-full rounded-lg"
659
+ className: "h-full w-full rounded-lg",
660
+ ...modalVideo?.video
655
661
  }
656
662
  )
657
663
  }
@@ -499,6 +499,7 @@ function HeroVideoOverlayStars({
499
499
  contentClassName,
500
500
  className,
501
501
  headingClassName,
502
+ backgroundVideo,
502
503
  videoSrc,
503
504
  videoSlot
504
505
  }) {
@@ -516,16 +517,20 @@ function HeroVideoOverlayStars({
516
517
  return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 size-full before:absolute brightness-50", children: /* @__PURE__ */ jsxRuntime.jsx(
517
518
  video.Video,
518
519
  {
519
- src: videoSrc,
520
+ src: backgroundVideo?.video?.src || videoSrc,
521
+ masterPlaylistUrl: backgroundVideo?.video?.masterPlaylistUrl,
522
+ fallbackSrc: backgroundVideo?.video?.fallbackSrc,
523
+ poster: backgroundVideo?.video?.poster || backgroundVideo?.image?.src,
520
524
  muted: true,
521
525
  autoPlay: true,
522
526
  loop: true,
523
527
  playsInline: true,
524
528
  controls: false,
525
- className: "size-full object-cover object-center"
529
+ className: "size-full object-cover object-center",
530
+ ...backgroundVideo?.video
526
531
  }
527
532
  ) });
528
- }, [videoSlot, videoSrc]);
533
+ }, [videoSlot, backgroundVideo, videoSrc]);
529
534
  return /* @__PURE__ */ jsxRuntime.jsxs(
530
535
  Section,
531
536
  {
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { S as SectionBackground, s as SectionSpacing, t as PatternName } from './community-initiatives-B4p2JldF.cjs';
3
- import { A as ActionConfig } from './blocks-DCvdF54D.cjs';
3
+ import { A as ActionConfig, M as MediaItem } from './blocks-DCvdF54D.cjs';
4
4
  import 'react/jsx-runtime';
5
5
  import 'class-variance-authority';
6
6
  import '@page-speed/pressable';
@@ -73,13 +73,17 @@ interface HeroVideoOverlayStarsProps {
73
73
  */
74
74
  headingClassName?: string;
75
75
  /**
76
- * Video source URL
76
+ * Background video configuration
77
77
  */
78
- videoSrc?: string;
78
+ backgroundVideo?: MediaItem;
79
79
  /**
80
- * Custom slot for video background (overrides videoSrc)
80
+ * Custom slot for video background (overrides backgroundVideo)
81
81
  */
82
82
  videoSlot?: React.ReactNode;
83
+ /**
84
+ * @deprecated Use backgroundVideo instead
85
+ */
86
+ videoSrc?: string;
83
87
  /**
84
88
  * Additional CSS classes for the actions container
85
89
  */
@@ -99,6 +103,6 @@ interface HeroVideoOverlayStarsProps {
99
103
  * HeroVideoOverlayStars - A full-screen hero with video background, gradient text heading,
100
104
  * prominent CTA button, and star rating trust indicator. Ideal for product launches.
101
105
  */
102
- declare function HeroVideoOverlayStars({ sectionId, heading, actions, actionsSlot, actionsClassName, description, descriptionClassName, trust, trustSlot, background, spacing, pattern, patternOpacity, containerClassName, contentClassName, className, headingClassName, videoSrc, videoSlot, }: HeroVideoOverlayStarsProps): React.JSX.Element;
106
+ declare function HeroVideoOverlayStars({ sectionId, heading, actions, actionsSlot, actionsClassName, description, descriptionClassName, trust, trustSlot, background, spacing, pattern, patternOpacity, containerClassName, contentClassName, className, headingClassName, backgroundVideo, videoSrc, videoSlot, }: HeroVideoOverlayStarsProps): React.JSX.Element;
103
107
 
104
108
  export { HeroVideoOverlayStars, type HeroVideoOverlayStarsProps };
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { S as SectionBackground, s as SectionSpacing, t as PatternName } from './community-initiatives--8cXayNa.js';
3
- import { A as ActionConfig } from './blocks-DCvdF54D.js';
3
+ import { A as ActionConfig, M as MediaItem } from './blocks-DCvdF54D.js';
4
4
  import 'react/jsx-runtime';
5
5
  import 'class-variance-authority';
6
6
  import '@page-speed/pressable';
@@ -73,13 +73,17 @@ interface HeroVideoOverlayStarsProps {
73
73
  */
74
74
  headingClassName?: string;
75
75
  /**
76
- * Video source URL
76
+ * Background video configuration
77
77
  */
78
- videoSrc?: string;
78
+ backgroundVideo?: MediaItem;
79
79
  /**
80
- * Custom slot for video background (overrides videoSrc)
80
+ * Custom slot for video background (overrides backgroundVideo)
81
81
  */
82
82
  videoSlot?: React.ReactNode;
83
+ /**
84
+ * @deprecated Use backgroundVideo instead
85
+ */
86
+ videoSrc?: string;
83
87
  /**
84
88
  * Additional CSS classes for the actions container
85
89
  */
@@ -99,6 +103,6 @@ interface HeroVideoOverlayStarsProps {
99
103
  * HeroVideoOverlayStars - A full-screen hero with video background, gradient text heading,
100
104
  * prominent CTA button, and star rating trust indicator. Ideal for product launches.
101
105
  */
102
- declare function HeroVideoOverlayStars({ sectionId, heading, actions, actionsSlot, actionsClassName, description, descriptionClassName, trust, trustSlot, background, spacing, pattern, patternOpacity, containerClassName, contentClassName, className, headingClassName, videoSrc, videoSlot, }: HeroVideoOverlayStarsProps): React.JSX.Element;
106
+ declare function HeroVideoOverlayStars({ sectionId, heading, actions, actionsSlot, actionsClassName, description, descriptionClassName, trust, trustSlot, background, spacing, pattern, patternOpacity, containerClassName, contentClassName, className, headingClassName, backgroundVideo, videoSrc, videoSlot, }: HeroVideoOverlayStarsProps): React.JSX.Element;
103
107
 
104
108
  export { HeroVideoOverlayStars, type HeroVideoOverlayStarsProps };
@@ -478,6 +478,7 @@ function HeroVideoOverlayStars({
478
478
  contentClassName,
479
479
  className,
480
480
  headingClassName,
481
+ backgroundVideo,
481
482
  videoSrc,
482
483
  videoSlot
483
484
  }) {
@@ -495,16 +496,20 @@ function HeroVideoOverlayStars({
495
496
  return /* @__PURE__ */ jsx("div", { className: "absolute inset-0 size-full before:absolute brightness-50", children: /* @__PURE__ */ jsx(
496
497
  Video,
497
498
  {
498
- src: videoSrc,
499
+ src: backgroundVideo?.video?.src || videoSrc,
500
+ masterPlaylistUrl: backgroundVideo?.video?.masterPlaylistUrl,
501
+ fallbackSrc: backgroundVideo?.video?.fallbackSrc,
502
+ poster: backgroundVideo?.video?.poster || backgroundVideo?.image?.src,
499
503
  muted: true,
500
504
  autoPlay: true,
501
505
  loop: true,
502
506
  playsInline: true,
503
507
  controls: false,
504
- className: "size-full object-cover object-center"
508
+ className: "size-full object-cover object-center",
509
+ ...backgroundVideo?.video
505
510
  }
506
511
  ) });
507
- }, [videoSlot, videoSrc]);
512
+ }, [videoSlot, backgroundVideo, videoSrc]);
508
513
  return /* @__PURE__ */ jsxs(
509
514
  Section,
510
515
  {