@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.
- package/dist/cta-video-background-hero.cjs +16 -6
- package/dist/cta-video-background-hero.d.cts +12 -4
- package/dist/cta-video-background-hero.d.ts +12 -4
- package/dist/cta-video-background-hero.js +16 -6
- package/dist/hero-conversion-video-play.cjs +8 -3
- package/dist/hero-conversion-video-play.d.cts +8 -4
- package/dist/hero-conversion-video-play.d.ts +8 -4
- package/dist/hero-conversion-video-play.js +8 -3
- package/dist/hero-creative-studio-stacked.cjs +10 -4
- package/dist/hero-creative-studio-stacked.d.cts +12 -4
- package/dist/hero-creative-studio-stacked.d.ts +12 -4
- package/dist/hero-creative-studio-stacked.js +10 -4
- package/dist/hero-mentorship-video-split.cjs +13 -6
- package/dist/hero-mentorship-video-split.d.cts +12 -8
- package/dist/hero-mentorship-video-split.d.ts +12 -8
- package/dist/hero-mentorship-video-split.js +13 -6
- package/dist/hero-presentation-platform-video.cjs +8 -3
- package/dist/hero-presentation-platform-video.d.cts +11 -6
- package/dist/hero-presentation-platform-video.d.ts +11 -6
- package/dist/hero-presentation-platform-video.js +8 -3
- package/dist/hero-productivity-launcher-video.cjs +8 -3
- package/dist/hero-productivity-launcher-video.d.cts +11 -6
- package/dist/hero-productivity-launcher-video.d.ts +11 -6
- package/dist/hero-productivity-launcher-video.js +8 -3
- package/dist/hero-software-growth-video-dialog.cjs +10 -4
- package/dist/hero-software-growth-video-dialog.d.cts +14 -3
- package/dist/hero-software-growth-video-dialog.d.ts +14 -3
- package/dist/hero-software-growth-video-dialog.js +10 -4
- package/dist/hero-video-background-dark.cjs +8 -3
- package/dist/hero-video-background-dark.d.cts +9 -5
- package/dist/hero-video-background-dark.d.ts +9 -5
- package/dist/hero-video-background-dark.js +8 -3
- package/dist/{hero-video-dialog-gradient-CLamMYZP.d.ts → hero-video-dialog-gradient-DBQ2Iqe3.d.ts} +14 -3
- package/dist/{hero-video-dialog-gradient-DOlgSdif.d.cts → hero-video-dialog-gradient-z-muf_Dc.d.cts} +14 -3
- package/dist/hero-video-dialog-gradient.cjs +10 -4
- package/dist/hero-video-dialog-gradient.d.cts +1 -1
- package/dist/hero-video-dialog-gradient.d.ts +1 -1
- package/dist/hero-video-dialog-gradient.js +10 -4
- package/dist/hero-video-overlay-stars.cjs +8 -3
- package/dist/hero-video-overlay-stars.d.cts +9 -5
- package/dist/hero-video-overlay-stars.d.ts +9 -5
- package/dist/hero-video-overlay-stars.js +8 -3
- package/dist/registry.cjs +99 -39
- package/dist/registry.js +99 -39
- package/package.json +2 -2
|
@@ -496,6 +496,7 @@ function HeroMentorshipVideoSplit({
|
|
|
496
496
|
action,
|
|
497
497
|
actionSlot,
|
|
498
498
|
videoLabel,
|
|
499
|
+
modalVideo,
|
|
499
500
|
videoThumbnail,
|
|
500
501
|
videoUrl,
|
|
501
502
|
videoTitle,
|
|
@@ -542,7 +543,8 @@ function HeroMentorshipVideoSplit({
|
|
|
542
543
|
}, [actionSlot, action]);
|
|
543
544
|
const renderVideoSection = useMemo(() => {
|
|
544
545
|
if (videoSlot) return videoSlot;
|
|
545
|
-
|
|
546
|
+
const thumbnail = modalVideo?.image || videoThumbnail;
|
|
547
|
+
if (!thumbnail) return null;
|
|
546
548
|
const aspectRatio = videoAspectRatio === "vertical" ? 9 / 16 : 16 / 9;
|
|
547
549
|
return /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-4", children: [
|
|
548
550
|
videoLabel && (typeof videoLabel === "string" ? /* @__PURE__ */ jsx("p", { className: "text-xs font-semibold uppercase opacity-75", children: videoLabel }) : videoLabel),
|
|
@@ -560,11 +562,11 @@ function HeroMentorshipVideoSplit({
|
|
|
560
562
|
/* @__PURE__ */ jsx(
|
|
561
563
|
Img,
|
|
562
564
|
{
|
|
563
|
-
src:
|
|
564
|
-
alt:
|
|
565
|
+
src: thumbnail.src,
|
|
566
|
+
alt: thumbnail.alt,
|
|
565
567
|
className: cn(
|
|
566
568
|
"absolute inset-0 h-full w-full object-cover",
|
|
567
|
-
|
|
569
|
+
thumbnail.className
|
|
568
570
|
),
|
|
569
571
|
optixFlowConfig
|
|
570
572
|
}
|
|
@@ -583,6 +585,7 @@ function HeroMentorshipVideoSplit({
|
|
|
583
585
|
] });
|
|
584
586
|
}, [
|
|
585
587
|
videoSlot,
|
|
588
|
+
modalVideo,
|
|
586
589
|
videoThumbnail,
|
|
587
590
|
videoLabel,
|
|
588
591
|
videoAspectRatio,
|
|
@@ -680,12 +683,16 @@ function HeroMentorshipVideoSplit({
|
|
|
680
683
|
children: /* @__PURE__ */ jsx(
|
|
681
684
|
Video,
|
|
682
685
|
{
|
|
683
|
-
src: videoUrl,
|
|
686
|
+
src: modalVideo?.video?.src || videoUrl,
|
|
687
|
+
masterPlaylistUrl: modalVideo?.video?.masterPlaylistUrl,
|
|
688
|
+
fallbackSrc: modalVideo?.video?.fallbackSrc,
|
|
689
|
+
poster: modalVideo?.video?.poster || modalVideo?.image?.src,
|
|
684
690
|
controls: true,
|
|
685
691
|
autoPlay: true,
|
|
686
692
|
skinClasses: skinClasses || void 0,
|
|
687
693
|
skinStyle: skinStyle || void 0,
|
|
688
|
-
className: "h-full w-full rounded-lg"
|
|
694
|
+
className: "h-full w-full rounded-lg",
|
|
695
|
+
...modalVideo?.video
|
|
689
696
|
}
|
|
690
697
|
)
|
|
691
698
|
}
|
|
@@ -512,6 +512,7 @@ function HeroPresentationPlatformVideo({
|
|
|
512
512
|
actions,
|
|
513
513
|
actionsSlot,
|
|
514
514
|
actionsClassName,
|
|
515
|
+
backgroundVideo,
|
|
515
516
|
videoSrc,
|
|
516
517
|
videoSlot,
|
|
517
518
|
background,
|
|
@@ -580,7 +581,10 @@ function HeroPresentationPlatformVideo({
|
|
|
580
581
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
581
582
|
video.Video,
|
|
582
583
|
{
|
|
583
|
-
src: videoSrc,
|
|
584
|
+
src: backgroundVideo?.video?.src || videoSrc,
|
|
585
|
+
masterPlaylistUrl: backgroundVideo?.video?.masterPlaylistUrl,
|
|
586
|
+
fallbackSrc: backgroundVideo?.video?.fallbackSrc,
|
|
587
|
+
poster: backgroundVideo?.video?.poster || backgroundVideo?.image?.src,
|
|
584
588
|
autoPlay: true,
|
|
585
589
|
loop: true,
|
|
586
590
|
muted: true,
|
|
@@ -588,12 +592,13 @@ function HeroPresentationPlatformVideo({
|
|
|
588
592
|
controls: false,
|
|
589
593
|
"data-wf-ignore": "true",
|
|
590
594
|
"data-object-fit": "cover",
|
|
591
|
-
className: "h-full w-full rounded-tl-xl object-cover"
|
|
595
|
+
className: "h-full w-full rounded-tl-xl object-cover",
|
|
596
|
+
...backgroundVideo?.video
|
|
592
597
|
}
|
|
593
598
|
)
|
|
594
599
|
}
|
|
595
600
|
);
|
|
596
|
-
}, [videoSlot, videoSrc, videoClassName]);
|
|
601
|
+
}, [videoSlot, backgroundVideo, videoSrc, videoClassName]);
|
|
597
602
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
598
603
|
Section,
|
|
599
604
|
{
|
|
@@ -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';
|
|
@@ -28,13 +28,18 @@ interface HeroPresentationPlatformVideoProps {
|
|
|
28
28
|
*/
|
|
29
29
|
actionsSlot?: React.ReactNode;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Background video configuration
|
|
32
32
|
*/
|
|
33
|
-
|
|
33
|
+
backgroundVideo?: MediaItem;
|
|
34
|
+
/**
|
|
35
|
+
* Custom slot for video (overrides backgroundVideo prop)
|
|
36
|
+
*/
|
|
37
|
+
videoSlot?: React.ReactNode;
|
|
34
38
|
/**
|
|
35
|
-
*
|
|
39
|
+
* @deprecated Use backgroundVideo instead
|
|
36
40
|
*/
|
|
37
|
-
|
|
41
|
+
videoSrc?: string;
|
|
42
|
+
/**
|
|
38
43
|
* Background style for the section
|
|
39
44
|
*/
|
|
40
45
|
background?: SectionBackground;
|
|
@@ -81,6 +86,6 @@ interface HeroPresentationPlatformVideoProps {
|
|
|
81
86
|
/** Optional Section ID */
|
|
82
87
|
sectionId?: string;
|
|
83
88
|
}
|
|
84
|
-
declare function HeroPresentationPlatformVideo({ sectionId, subtitle, heading, description, actions, actionsSlot, actionsClassName, videoSrc, videoSlot, background, spacing, pattern, patternOpacity, className, containerClassName, contentClassName, headingClassName, descriptionClassName, videoClassName, }: HeroPresentationPlatformVideoProps): React.JSX.Element;
|
|
89
|
+
declare function HeroPresentationPlatformVideo({ sectionId, subtitle, heading, description, actions, actionsSlot, actionsClassName, backgroundVideo, videoSrc, videoSlot, background, spacing, pattern, patternOpacity, className, containerClassName, contentClassName, headingClassName, descriptionClassName, videoClassName, }: HeroPresentationPlatformVideoProps): React.JSX.Element;
|
|
85
90
|
|
|
86
91
|
export { HeroPresentationPlatformVideo, type HeroPresentationPlatformVideoProps };
|
|
@@ -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';
|
|
@@ -28,13 +28,18 @@ interface HeroPresentationPlatformVideoProps {
|
|
|
28
28
|
*/
|
|
29
29
|
actionsSlot?: React.ReactNode;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Background video configuration
|
|
32
32
|
*/
|
|
33
|
-
|
|
33
|
+
backgroundVideo?: MediaItem;
|
|
34
|
+
/**
|
|
35
|
+
* Custom slot for video (overrides backgroundVideo prop)
|
|
36
|
+
*/
|
|
37
|
+
videoSlot?: React.ReactNode;
|
|
34
38
|
/**
|
|
35
|
-
*
|
|
39
|
+
* @deprecated Use backgroundVideo instead
|
|
36
40
|
*/
|
|
37
|
-
|
|
41
|
+
videoSrc?: string;
|
|
42
|
+
/**
|
|
38
43
|
* Background style for the section
|
|
39
44
|
*/
|
|
40
45
|
background?: SectionBackground;
|
|
@@ -81,6 +86,6 @@ interface HeroPresentationPlatformVideoProps {
|
|
|
81
86
|
/** Optional Section ID */
|
|
82
87
|
sectionId?: string;
|
|
83
88
|
}
|
|
84
|
-
declare function HeroPresentationPlatformVideo({ sectionId, subtitle, heading, description, actions, actionsSlot, actionsClassName, videoSrc, videoSlot, background, spacing, pattern, patternOpacity, className, containerClassName, contentClassName, headingClassName, descriptionClassName, videoClassName, }: HeroPresentationPlatformVideoProps): React.JSX.Element;
|
|
89
|
+
declare function HeroPresentationPlatformVideo({ sectionId, subtitle, heading, description, actions, actionsSlot, actionsClassName, backgroundVideo, videoSrc, videoSlot, background, spacing, pattern, patternOpacity, className, containerClassName, contentClassName, headingClassName, descriptionClassName, videoClassName, }: HeroPresentationPlatformVideoProps): React.JSX.Element;
|
|
85
90
|
|
|
86
91
|
export { HeroPresentationPlatformVideo, type HeroPresentationPlatformVideoProps };
|
|
@@ -491,6 +491,7 @@ function HeroPresentationPlatformVideo({
|
|
|
491
491
|
actions,
|
|
492
492
|
actionsSlot,
|
|
493
493
|
actionsClassName,
|
|
494
|
+
backgroundVideo,
|
|
494
495
|
videoSrc,
|
|
495
496
|
videoSlot,
|
|
496
497
|
background,
|
|
@@ -559,7 +560,10 @@ function HeroPresentationPlatformVideo({
|
|
|
559
560
|
children: /* @__PURE__ */ jsx(
|
|
560
561
|
Video,
|
|
561
562
|
{
|
|
562
|
-
src: videoSrc,
|
|
563
|
+
src: backgroundVideo?.video?.src || videoSrc,
|
|
564
|
+
masterPlaylistUrl: backgroundVideo?.video?.masterPlaylistUrl,
|
|
565
|
+
fallbackSrc: backgroundVideo?.video?.fallbackSrc,
|
|
566
|
+
poster: backgroundVideo?.video?.poster || backgroundVideo?.image?.src,
|
|
563
567
|
autoPlay: true,
|
|
564
568
|
loop: true,
|
|
565
569
|
muted: true,
|
|
@@ -567,12 +571,13 @@ function HeroPresentationPlatformVideo({
|
|
|
567
571
|
controls: false,
|
|
568
572
|
"data-wf-ignore": "true",
|
|
569
573
|
"data-object-fit": "cover",
|
|
570
|
-
className: "h-full w-full rounded-tl-xl object-cover"
|
|
574
|
+
className: "h-full w-full rounded-tl-xl object-cover",
|
|
575
|
+
...backgroundVideo?.video
|
|
571
576
|
}
|
|
572
577
|
)
|
|
573
578
|
}
|
|
574
579
|
);
|
|
575
|
-
}, [videoSlot, videoSrc, videoClassName]);
|
|
580
|
+
}, [videoSlot, backgroundVideo, videoSrc, videoClassName]);
|
|
576
581
|
return /* @__PURE__ */ jsx(
|
|
577
582
|
Section,
|
|
578
583
|
{
|
|
@@ -400,6 +400,7 @@ function HeroProductivityLauncherVideo({
|
|
|
400
400
|
actionsSlot,
|
|
401
401
|
versionInfo,
|
|
402
402
|
versionInfoSlot,
|
|
403
|
+
backgroundVideo,
|
|
403
404
|
videoSrc,
|
|
404
405
|
videoSlot,
|
|
405
406
|
background,
|
|
@@ -454,16 +455,20 @@ function HeroProductivityLauncherVideo({
|
|
|
454
455
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute top-0 z-10 h-full w-full inset-0", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
455
456
|
video.Video,
|
|
456
457
|
{
|
|
457
|
-
src: videoSrc,
|
|
458
|
+
src: backgroundVideo?.video?.src || videoSrc,
|
|
459
|
+
masterPlaylistUrl: backgroundVideo?.video?.masterPlaylistUrl,
|
|
460
|
+
fallbackSrc: backgroundVideo?.video?.fallbackSrc,
|
|
461
|
+
poster: backgroundVideo?.video?.poster || backgroundVideo?.image?.src,
|
|
458
462
|
loop: true,
|
|
459
463
|
muted: true,
|
|
460
464
|
autoPlay: true,
|
|
461
465
|
playsInline: true,
|
|
462
466
|
controls: false,
|
|
463
|
-
className: "block size-full object-cover object-center brightness-50"
|
|
467
|
+
className: "block size-full object-cover object-center brightness-50",
|
|
468
|
+
...backgroundVideo?.video
|
|
464
469
|
}
|
|
465
470
|
) });
|
|
466
|
-
}, [videoSlot, videoSrc]);
|
|
471
|
+
}, [videoSlot, backgroundVideo, videoSrc]);
|
|
467
472
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
468
473
|
Section,
|
|
469
474
|
{
|
|
@@ -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';
|
|
@@ -50,13 +50,18 @@ interface HeroProductivityLauncherVideoProps {
|
|
|
50
50
|
*/
|
|
51
51
|
versionInfoSlot?: React.ReactNode;
|
|
52
52
|
/**
|
|
53
|
-
*
|
|
53
|
+
* Background video configuration
|
|
54
54
|
*/
|
|
55
|
-
|
|
55
|
+
backgroundVideo?: MediaItem;
|
|
56
|
+
/**
|
|
57
|
+
* Custom slot for video (overrides backgroundVideo prop)
|
|
58
|
+
*/
|
|
59
|
+
videoSlot?: React.ReactNode;
|
|
56
60
|
/**
|
|
57
|
-
*
|
|
61
|
+
* @deprecated Use backgroundVideo instead
|
|
58
62
|
*/
|
|
59
|
-
|
|
63
|
+
videoSrc?: string;
|
|
64
|
+
/**
|
|
60
65
|
* Background style for the section
|
|
61
66
|
*/
|
|
62
67
|
background?: SectionBackground;
|
|
@@ -95,6 +100,6 @@ interface HeroProductivityLauncherVideoProps {
|
|
|
95
100
|
/** Optional Section ID */
|
|
96
101
|
sectionId?: string;
|
|
97
102
|
}
|
|
98
|
-
declare function HeroProductivityLauncherVideo({ sectionId, heading, description, actions, actionsSlot, versionInfo, versionInfoSlot, videoSrc, videoSlot, background, spacing, containerClassName, pattern, patternOpacity, className, contentClassName, headingClassName, descriptionClassName, }: HeroProductivityLauncherVideoProps): React.JSX.Element;
|
|
103
|
+
declare function HeroProductivityLauncherVideo({ sectionId, heading, description, actions, actionsSlot, versionInfo, versionInfoSlot, backgroundVideo, videoSrc, videoSlot, background, spacing, containerClassName, pattern, patternOpacity, className, contentClassName, headingClassName, descriptionClassName, }: HeroProductivityLauncherVideoProps): React.JSX.Element;
|
|
99
104
|
|
|
100
105
|
export { HeroProductivityLauncherVideo, type HeroProductivityLauncherVideoProps };
|
|
@@ -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';
|
|
@@ -50,13 +50,18 @@ interface HeroProductivityLauncherVideoProps {
|
|
|
50
50
|
*/
|
|
51
51
|
versionInfoSlot?: React.ReactNode;
|
|
52
52
|
/**
|
|
53
|
-
*
|
|
53
|
+
* Background video configuration
|
|
54
54
|
*/
|
|
55
|
-
|
|
55
|
+
backgroundVideo?: MediaItem;
|
|
56
|
+
/**
|
|
57
|
+
* Custom slot for video (overrides backgroundVideo prop)
|
|
58
|
+
*/
|
|
59
|
+
videoSlot?: React.ReactNode;
|
|
56
60
|
/**
|
|
57
|
-
*
|
|
61
|
+
* @deprecated Use backgroundVideo instead
|
|
58
62
|
*/
|
|
59
|
-
|
|
63
|
+
videoSrc?: string;
|
|
64
|
+
/**
|
|
60
65
|
* Background style for the section
|
|
61
66
|
*/
|
|
62
67
|
background?: SectionBackground;
|
|
@@ -95,6 +100,6 @@ interface HeroProductivityLauncherVideoProps {
|
|
|
95
100
|
/** Optional Section ID */
|
|
96
101
|
sectionId?: string;
|
|
97
102
|
}
|
|
98
|
-
declare function HeroProductivityLauncherVideo({ sectionId, heading, description, actions, actionsSlot, versionInfo, versionInfoSlot, videoSrc, videoSlot, background, spacing, containerClassName, pattern, patternOpacity, className, contentClassName, headingClassName, descriptionClassName, }: HeroProductivityLauncherVideoProps): React.JSX.Element;
|
|
103
|
+
declare function HeroProductivityLauncherVideo({ sectionId, heading, description, actions, actionsSlot, versionInfo, versionInfoSlot, backgroundVideo, videoSrc, videoSlot, background, spacing, containerClassName, pattern, patternOpacity, className, contentClassName, headingClassName, descriptionClassName, }: HeroProductivityLauncherVideoProps): React.JSX.Element;
|
|
99
104
|
|
|
100
105
|
export { HeroProductivityLauncherVideo, type HeroProductivityLauncherVideoProps };
|
|
@@ -394,6 +394,7 @@ function HeroProductivityLauncherVideo({
|
|
|
394
394
|
actionsSlot,
|
|
395
395
|
versionInfo,
|
|
396
396
|
versionInfoSlot,
|
|
397
|
+
backgroundVideo,
|
|
397
398
|
videoSrc,
|
|
398
399
|
videoSlot,
|
|
399
400
|
background,
|
|
@@ -448,16 +449,20 @@ function HeroProductivityLauncherVideo({
|
|
|
448
449
|
return /* @__PURE__ */ jsx("div", { className: "absolute top-0 z-10 h-full w-full inset-0", children: /* @__PURE__ */ jsx(
|
|
449
450
|
Video,
|
|
450
451
|
{
|
|
451
|
-
src: videoSrc,
|
|
452
|
+
src: backgroundVideo?.video?.src || videoSrc,
|
|
453
|
+
masterPlaylistUrl: backgroundVideo?.video?.masterPlaylistUrl,
|
|
454
|
+
fallbackSrc: backgroundVideo?.video?.fallbackSrc,
|
|
455
|
+
poster: backgroundVideo?.video?.poster || backgroundVideo?.image?.src,
|
|
452
456
|
loop: true,
|
|
453
457
|
muted: true,
|
|
454
458
|
autoPlay: true,
|
|
455
459
|
playsInline: true,
|
|
456
460
|
controls: false,
|
|
457
|
-
className: "block size-full object-cover object-center brightness-50"
|
|
461
|
+
className: "block size-full object-cover object-center brightness-50",
|
|
462
|
+
...backgroundVideo?.video
|
|
458
463
|
}
|
|
459
464
|
) });
|
|
460
|
-
}, [videoSlot, videoSrc]);
|
|
465
|
+
}, [videoSlot, backgroundVideo, videoSrc]);
|
|
461
466
|
return /* @__PURE__ */ jsxs(
|
|
462
467
|
Section,
|
|
463
468
|
{
|
|
@@ -547,6 +547,8 @@ function HeroSoftwareGrowthVideoDialog({
|
|
|
547
547
|
actions,
|
|
548
548
|
showcaseImages,
|
|
549
549
|
showcaseImagesSlot,
|
|
550
|
+
modalVideo,
|
|
551
|
+
videoDialogTitle,
|
|
550
552
|
videoDialog,
|
|
551
553
|
onVideoClick,
|
|
552
554
|
background,
|
|
@@ -664,7 +666,7 @@ function HeroSoftwareGrowthVideoDialog({
|
|
|
664
666
|
}
|
|
665
667
|
) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: descriptionClassName, children: description })),
|
|
666
668
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col md:flex-row flex-wrap gap-4", children: [
|
|
667
|
-
videoAction && videoDialog?.videoUrl ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
669
|
+
videoAction && (modalVideo || videoDialog?.videoUrl) ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
668
670
|
ActionComponent,
|
|
669
671
|
{
|
|
670
672
|
action: {
|
|
@@ -687,7 +689,7 @@ function HeroSoftwareGrowthVideoDialog({
|
|
|
687
689
|
videoAspectRatio === "vertical" ? "sm:max-w-100" : "sm:max-w-200"
|
|
688
690
|
),
|
|
689
691
|
children: [
|
|
690
|
-
/* @__PURE__ */ jsxRuntime.jsx(DialogHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(DialogTitle, { children: videoDialog?.title }) }),
|
|
692
|
+
/* @__PURE__ */ jsxRuntime.jsx(DialogHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(DialogTitle, { children: videoDialogTitle || videoDialog?.title }) }),
|
|
691
693
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
692
694
|
"div",
|
|
693
695
|
{
|
|
@@ -695,12 +697,16 @@ function HeroSoftwareGrowthVideoDialog({
|
|
|
695
697
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
696
698
|
video.Video,
|
|
697
699
|
{
|
|
698
|
-
src: videoDialog?.videoUrl,
|
|
700
|
+
src: modalVideo?.video?.src || videoDialog?.videoUrl,
|
|
701
|
+
masterPlaylistUrl: modalVideo?.video?.masterPlaylistUrl,
|
|
702
|
+
fallbackSrc: modalVideo?.video?.fallbackSrc,
|
|
703
|
+
poster: modalVideo?.video?.poster || modalVideo?.image?.src,
|
|
699
704
|
controls: true,
|
|
700
705
|
autoPlay: true,
|
|
701
706
|
skinClasses: skinClasses || void 0,
|
|
702
707
|
skinStyle: skinStyle || void 0,
|
|
703
|
-
className: "h-full w-full rounded-lg"
|
|
708
|
+
className: "h-full w-full rounded-lg",
|
|
709
|
+
...modalVideo?.video
|
|
704
710
|
}
|
|
705
711
|
)
|
|
706
712
|
}
|
|
@@ -1,11 +1,14 @@
|
|
|
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
|
import 'react/jsx-runtime';
|
|
5
5
|
import 'class-variance-authority';
|
|
6
6
|
import '@page-speed/pressable';
|
|
7
7
|
import '@opensite/hooks/usePlatformFromUrl';
|
|
8
8
|
|
|
9
|
+
/**
|
|
10
|
+
* @deprecated Use modalVideo prop with MediaItem type instead
|
|
11
|
+
*/
|
|
9
12
|
interface VideoDialogConfig {
|
|
10
13
|
/**
|
|
11
14
|
* Dialog title
|
|
@@ -42,7 +45,15 @@ interface HeroSoftwareGrowthVideoDialogProps {
|
|
|
42
45
|
*/
|
|
43
46
|
showcaseImagesSlot?: React.ReactNode;
|
|
44
47
|
/**
|
|
45
|
-
* Video dialog
|
|
48
|
+
* Video configuration for modal/dialog
|
|
49
|
+
*/
|
|
50
|
+
modalVideo?: MediaItem;
|
|
51
|
+
/**
|
|
52
|
+
* Video dialog title
|
|
53
|
+
*/
|
|
54
|
+
videoDialogTitle?: string;
|
|
55
|
+
/**
|
|
56
|
+
* @deprecated Use modalVideo instead
|
|
46
57
|
*/
|
|
47
58
|
videoDialog?: VideoDialogConfig;
|
|
48
59
|
/**
|
|
@@ -94,6 +105,6 @@ interface HeroSoftwareGrowthVideoDialogProps {
|
|
|
94
105
|
*/
|
|
95
106
|
videoAspectRatio?: "horizontal" | "vertical";
|
|
96
107
|
}
|
|
97
|
-
declare function HeroSoftwareGrowthVideoDialog({ videoAspectRatio, heading, description, videoAction, actions, showcaseImages, showcaseImagesSlot, videoDialog, onVideoClick, background, spacing, pattern, patternOpacity, className, containerClassName, headingClassName, descriptionClassName, showcaseClassName, optixFlowConfig, }: HeroSoftwareGrowthVideoDialogProps): React.JSX.Element;
|
|
108
|
+
declare function HeroSoftwareGrowthVideoDialog({ videoAspectRatio, heading, description, videoAction, actions, showcaseImages, showcaseImagesSlot, modalVideo, videoDialogTitle, videoDialog, onVideoClick, background, spacing, pattern, patternOpacity, className, containerClassName, headingClassName, descriptionClassName, showcaseClassName, optixFlowConfig, }: HeroSoftwareGrowthVideoDialogProps): React.JSX.Element;
|
|
98
109
|
|
|
99
110
|
export { HeroSoftwareGrowthVideoDialog, type HeroSoftwareGrowthVideoDialogProps };
|
|
@@ -1,11 +1,14 @@
|
|
|
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
|
import 'react/jsx-runtime';
|
|
5
5
|
import 'class-variance-authority';
|
|
6
6
|
import '@page-speed/pressable';
|
|
7
7
|
import '@opensite/hooks/usePlatformFromUrl';
|
|
8
8
|
|
|
9
|
+
/**
|
|
10
|
+
* @deprecated Use modalVideo prop with MediaItem type instead
|
|
11
|
+
*/
|
|
9
12
|
interface VideoDialogConfig {
|
|
10
13
|
/**
|
|
11
14
|
* Dialog title
|
|
@@ -42,7 +45,15 @@ interface HeroSoftwareGrowthVideoDialogProps {
|
|
|
42
45
|
*/
|
|
43
46
|
showcaseImagesSlot?: React.ReactNode;
|
|
44
47
|
/**
|
|
45
|
-
* Video dialog
|
|
48
|
+
* Video configuration for modal/dialog
|
|
49
|
+
*/
|
|
50
|
+
modalVideo?: MediaItem;
|
|
51
|
+
/**
|
|
52
|
+
* Video dialog title
|
|
53
|
+
*/
|
|
54
|
+
videoDialogTitle?: string;
|
|
55
|
+
/**
|
|
56
|
+
* @deprecated Use modalVideo instead
|
|
46
57
|
*/
|
|
47
58
|
videoDialog?: VideoDialogConfig;
|
|
48
59
|
/**
|
|
@@ -94,6 +105,6 @@ interface HeroSoftwareGrowthVideoDialogProps {
|
|
|
94
105
|
*/
|
|
95
106
|
videoAspectRatio?: "horizontal" | "vertical";
|
|
96
107
|
}
|
|
97
|
-
declare function HeroSoftwareGrowthVideoDialog({ videoAspectRatio, heading, description, videoAction, actions, showcaseImages, showcaseImagesSlot, videoDialog, onVideoClick, background, spacing, pattern, patternOpacity, className, containerClassName, headingClassName, descriptionClassName, showcaseClassName, optixFlowConfig, }: HeroSoftwareGrowthVideoDialogProps): React.JSX.Element;
|
|
108
|
+
declare function HeroSoftwareGrowthVideoDialog({ videoAspectRatio, heading, description, videoAction, actions, showcaseImages, showcaseImagesSlot, modalVideo, videoDialogTitle, videoDialog, onVideoClick, background, spacing, pattern, patternOpacity, className, containerClassName, headingClassName, descriptionClassName, showcaseClassName, optixFlowConfig, }: HeroSoftwareGrowthVideoDialogProps): React.JSX.Element;
|
|
98
109
|
|
|
99
110
|
export { HeroSoftwareGrowthVideoDialog, type HeroSoftwareGrowthVideoDialogProps };
|
|
@@ -524,6 +524,8 @@ function HeroSoftwareGrowthVideoDialog({
|
|
|
524
524
|
actions,
|
|
525
525
|
showcaseImages,
|
|
526
526
|
showcaseImagesSlot,
|
|
527
|
+
modalVideo,
|
|
528
|
+
videoDialogTitle,
|
|
527
529
|
videoDialog,
|
|
528
530
|
onVideoClick,
|
|
529
531
|
background,
|
|
@@ -641,7 +643,7 @@ function HeroSoftwareGrowthVideoDialog({
|
|
|
641
643
|
}
|
|
642
644
|
) : /* @__PURE__ */ jsx("div", { className: descriptionClassName, children: description })),
|
|
643
645
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col md:flex-row flex-wrap gap-4", children: [
|
|
644
|
-
videoAction && videoDialog?.videoUrl ? /* @__PURE__ */ jsx(
|
|
646
|
+
videoAction && (modalVideo || videoDialog?.videoUrl) ? /* @__PURE__ */ jsx(
|
|
645
647
|
ActionComponent,
|
|
646
648
|
{
|
|
647
649
|
action: {
|
|
@@ -664,7 +666,7 @@ function HeroSoftwareGrowthVideoDialog({
|
|
|
664
666
|
videoAspectRatio === "vertical" ? "sm:max-w-100" : "sm:max-w-200"
|
|
665
667
|
),
|
|
666
668
|
children: [
|
|
667
|
-
/* @__PURE__ */ jsx(DialogHeader, { children: /* @__PURE__ */ jsx(DialogTitle, { children: videoDialog?.title }) }),
|
|
669
|
+
/* @__PURE__ */ jsx(DialogHeader, { children: /* @__PURE__ */ jsx(DialogTitle, { children: videoDialogTitle || videoDialog?.title }) }),
|
|
668
670
|
/* @__PURE__ */ jsx(
|
|
669
671
|
"div",
|
|
670
672
|
{
|
|
@@ -672,12 +674,16 @@ function HeroSoftwareGrowthVideoDialog({
|
|
|
672
674
|
children: /* @__PURE__ */ jsx(
|
|
673
675
|
Video,
|
|
674
676
|
{
|
|
675
|
-
src: videoDialog?.videoUrl,
|
|
677
|
+
src: modalVideo?.video?.src || videoDialog?.videoUrl,
|
|
678
|
+
masterPlaylistUrl: modalVideo?.video?.masterPlaylistUrl,
|
|
679
|
+
fallbackSrc: modalVideo?.video?.fallbackSrc,
|
|
680
|
+
poster: modalVideo?.video?.poster || modalVideo?.image?.src,
|
|
676
681
|
controls: true,
|
|
677
682
|
autoPlay: true,
|
|
678
683
|
skinClasses: skinClasses || void 0,
|
|
679
684
|
skinStyle: skinStyle || void 0,
|
|
680
|
-
className: "h-full w-full rounded-lg"
|
|
685
|
+
className: "h-full w-full rounded-lg",
|
|
686
|
+
...modalVideo?.video
|
|
681
687
|
}
|
|
682
688
|
)
|
|
683
689
|
}
|
|
@@ -559,6 +559,7 @@ function HeroVideoBackgroundDark({
|
|
|
559
559
|
actions,
|
|
560
560
|
actionsSlot,
|
|
561
561
|
actionsClassName,
|
|
562
|
+
backgroundVideo,
|
|
562
563
|
videoSrc,
|
|
563
564
|
videoSlot,
|
|
564
565
|
background,
|
|
@@ -579,18 +580,22 @@ function HeroVideoBackgroundDark({
|
|
|
579
580
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
580
581
|
video.Video,
|
|
581
582
|
{
|
|
582
|
-
src: videoSrc,
|
|
583
|
+
src: backgroundVideo?.video?.src || videoSrc,
|
|
584
|
+
masterPlaylistUrl: backgroundVideo?.video?.masterPlaylistUrl,
|
|
585
|
+
fallbackSrc: backgroundVideo?.video?.fallbackSrc,
|
|
586
|
+
poster: backgroundVideo?.video?.poster || backgroundVideo?.image?.src,
|
|
583
587
|
loop: true,
|
|
584
588
|
playsInline: true,
|
|
585
589
|
autoPlay: true,
|
|
586
590
|
muted: true,
|
|
587
591
|
controls: false,
|
|
588
|
-
className: "absolute top-0 left-0 size-full object-cover"
|
|
592
|
+
className: "absolute top-0 left-0 size-full object-cover",
|
|
593
|
+
...backgroundVideo?.video
|
|
589
594
|
}
|
|
590
595
|
),
|
|
591
596
|
/* @__PURE__ */ jsxRuntime.jsx(GradientOverlay, { intensity: videoOverlayIntensity })
|
|
592
597
|
] });
|
|
593
|
-
}, [videoSlot, videoSrc, videoOverlayIntensity]);
|
|
598
|
+
}, [videoSlot, backgroundVideo, videoSrc, videoOverlayIntensity]);
|
|
594
599
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
595
600
|
Section,
|
|
596
601
|
{
|
|
@@ -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';
|
|
@@ -32,13 +32,17 @@ interface HeroVideoBackgroundDarkProps {
|
|
|
32
32
|
*/
|
|
33
33
|
actionsClassName?: string;
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* Background video configuration
|
|
36
36
|
*/
|
|
37
|
-
|
|
37
|
+
backgroundVideo?: MediaItem;
|
|
38
38
|
/**
|
|
39
|
-
* Custom slot for video (overrides
|
|
39
|
+
* Custom slot for video (overrides backgroundVideo prop)
|
|
40
40
|
*/
|
|
41
41
|
videoSlot?: React.ReactNode;
|
|
42
|
+
/**
|
|
43
|
+
* @deprecated Use backgroundVideo instead
|
|
44
|
+
*/
|
|
45
|
+
videoSrc?: string;
|
|
42
46
|
/**
|
|
43
47
|
* Intensity of the gradient overlay on the video
|
|
44
48
|
* @default "high"
|
|
@@ -88,6 +92,6 @@ interface HeroVideoBackgroundDarkProps {
|
|
|
88
92
|
/** Optional Section ID */
|
|
89
93
|
sectionId?: string;
|
|
90
94
|
}
|
|
91
|
-
declare function HeroVideoBackgroundDark({ sectionId, badgeText, heading, description, actions, actionsSlot, actionsClassName, videoSrc, videoSlot, background, videoBrightness, videoOverlayIntensity, spacing, pattern, patternOpacity, className, containerClassName, contentClassName, headingClassName, descriptionClassName, }: HeroVideoBackgroundDarkProps): React.JSX.Element;
|
|
95
|
+
declare function HeroVideoBackgroundDark({ sectionId, badgeText, heading, description, actions, actionsSlot, actionsClassName, backgroundVideo, videoSrc, videoSlot, background, videoBrightness, videoOverlayIntensity, spacing, pattern, patternOpacity, className, containerClassName, contentClassName, headingClassName, descriptionClassName, }: HeroVideoBackgroundDarkProps): React.JSX.Element;
|
|
92
96
|
|
|
93
97
|
export { HeroVideoBackgroundDark, type HeroVideoBackgroundDarkProps };
|
|
@@ -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';
|
|
@@ -32,13 +32,17 @@ interface HeroVideoBackgroundDarkProps {
|
|
|
32
32
|
*/
|
|
33
33
|
actionsClassName?: string;
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* Background video configuration
|
|
36
36
|
*/
|
|
37
|
-
|
|
37
|
+
backgroundVideo?: MediaItem;
|
|
38
38
|
/**
|
|
39
|
-
* Custom slot for video (overrides
|
|
39
|
+
* Custom slot for video (overrides backgroundVideo prop)
|
|
40
40
|
*/
|
|
41
41
|
videoSlot?: React.ReactNode;
|
|
42
|
+
/**
|
|
43
|
+
* @deprecated Use backgroundVideo instead
|
|
44
|
+
*/
|
|
45
|
+
videoSrc?: string;
|
|
42
46
|
/**
|
|
43
47
|
* Intensity of the gradient overlay on the video
|
|
44
48
|
* @default "high"
|
|
@@ -88,6 +92,6 @@ interface HeroVideoBackgroundDarkProps {
|
|
|
88
92
|
/** Optional Section ID */
|
|
89
93
|
sectionId?: string;
|
|
90
94
|
}
|
|
91
|
-
declare function HeroVideoBackgroundDark({ sectionId, badgeText, heading, description, actions, actionsSlot, actionsClassName, videoSrc, videoSlot, background, videoBrightness, videoOverlayIntensity, spacing, pattern, patternOpacity, className, containerClassName, contentClassName, headingClassName, descriptionClassName, }: HeroVideoBackgroundDarkProps): React.JSX.Element;
|
|
95
|
+
declare function HeroVideoBackgroundDark({ sectionId, badgeText, heading, description, actions, actionsSlot, actionsClassName, backgroundVideo, videoSrc, videoSlot, background, videoBrightness, videoOverlayIntensity, spacing, pattern, patternOpacity, className, containerClassName, contentClassName, headingClassName, descriptionClassName, }: HeroVideoBackgroundDarkProps): React.JSX.Element;
|
|
92
96
|
|
|
93
97
|
export { HeroVideoBackgroundDark, type HeroVideoBackgroundDarkProps };
|