@gem-sdk/components 2.0.0-dev.714 → 2.0.0-dev.715
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.
|
@@ -88,7 +88,7 @@ const HeroBannerItem = (props)=>{
|
|
|
88
88
|
if (!common.showVideoType(background)) return;
|
|
89
89
|
if (dataVideo?.videoType === 'html5' && !dataVideo.videoHtml5) return null;
|
|
90
90
|
if (dataVideo?.videoType === 'youtube' && !dataVideo.video) return null;
|
|
91
|
-
if (dataVideo?.videoType === 'html5' && dataVideo?.videoHtml5) {
|
|
91
|
+
if (dataVideo?.type === 'video' && dataVideo?.videoType === 'html5' && dataVideo?.videoHtml5) {
|
|
92
92
|
return /*#__PURE__*/ jsxRuntime.jsx(HTML5Embed.default, {
|
|
93
93
|
muted: true,
|
|
94
94
|
loop: dataVideo?.loop,
|
|
@@ -104,7 +104,7 @@ const HeroBannerItem = (props)=>{
|
|
|
104
104
|
const videoId = common$1.getYoutubeVideoId(youtubeUrl);
|
|
105
105
|
const isLoop = dataVideo?.loop ? 1 : 0;
|
|
106
106
|
const params = `&loop=${isLoop}&playlist=${videoId}&showinfo=0&rel=0&fs=0&enablejsapi=1`;
|
|
107
|
-
if (dataVideo?.videoType === 'youtube' && videoId && common$1.youtubeVideoRegex.test(youtubeUrl)) {
|
|
107
|
+
if (dataVideo?.type === 'video' && dataVideo?.videoType === 'youtube' && videoId && common$1.youtubeVideoRegex.test(youtubeUrl)) {
|
|
108
108
|
return /*#__PURE__*/ jsxRuntime.jsx(LiteYouTubeEmbed.default, {
|
|
109
109
|
id: videoId,
|
|
110
110
|
isHeroBanner: true,
|
|
@@ -114,7 +114,7 @@ const HeroBannerItem = (props)=>{
|
|
|
114
114
|
const videoId = common$2.getYoutubeVideoId(youtubeUrl);
|
|
115
115
|
const isLoop = false;
|
|
116
116
|
const params = `&loop=${isLoop}&playlist=${videoId}&showinfo=0&rel=0&fs=0&enablejsapi=1`;
|
|
117
|
-
if (dataVideo?.videoType === 'youtube' && videoId && common$2.youtubeVideoRegex.test(youtubeUrl)) {
|
|
117
|
+
if (dataVideo?.type === 'video' && dataVideo?.videoType === 'youtube' && videoId && common$2.youtubeVideoRegex.test(youtubeUrl)) {
|
|
118
118
|
return LiteYouTubeEmbed_liquid.default({
|
|
119
119
|
uid: builderProps?.uid,
|
|
120
120
|
id: videoId,
|
|
@@ -84,7 +84,7 @@ const HeroBannerItem = (props)=>{
|
|
|
84
84
|
if (!showVideoType(background)) return;
|
|
85
85
|
if (dataVideo?.videoType === 'html5' && !dataVideo.videoHtml5) return null;
|
|
86
86
|
if (dataVideo?.videoType === 'youtube' && !dataVideo.video) return null;
|
|
87
|
-
if (dataVideo?.videoType === 'html5' && dataVideo?.videoHtml5) {
|
|
87
|
+
if (dataVideo?.type === 'video' && dataVideo?.videoType === 'html5' && dataVideo?.videoHtml5) {
|
|
88
88
|
return /*#__PURE__*/ jsx(HTML5Embed, {
|
|
89
89
|
muted: true,
|
|
90
90
|
loop: dataVideo?.loop,
|
|
@@ -100,7 +100,7 @@ const HeroBannerItem = (props)=>{
|
|
|
100
100
|
const videoId = getYoutubeVideoId(youtubeUrl);
|
|
101
101
|
const isLoop = dataVideo?.loop ? 1 : 0;
|
|
102
102
|
const params = `&loop=${isLoop}&playlist=${videoId}&showinfo=0&rel=0&fs=0&enablejsapi=1`;
|
|
103
|
-
if (dataVideo?.videoType === 'youtube' && videoId && youtubeVideoRegex.test(youtubeUrl)) {
|
|
103
|
+
if (dataVideo?.type === 'video' && dataVideo?.videoType === 'youtube' && videoId && youtubeVideoRegex.test(youtubeUrl)) {
|
|
104
104
|
return /*#__PURE__*/ jsx(LiteYouTubeEmbed, {
|
|
105
105
|
id: videoId,
|
|
106
106
|
isHeroBanner: true,
|
|
@@ -110,7 +110,7 @@ const HeroBannerItem = (props)=>{
|
|
|
110
110
|
const videoId = getYoutubeVideoId(youtubeUrl);
|
|
111
111
|
const isLoop = false;
|
|
112
112
|
const params = `&loop=${isLoop}&playlist=${videoId}&showinfo=0&rel=0&fs=0&enablejsapi=1`;
|
|
113
|
-
if (dataVideo?.videoType === 'youtube' && videoId && youtubeVideoRegex.test(youtubeUrl)) {
|
|
113
|
+
if (dataVideo?.type === 'video' && dataVideo?.videoType === 'youtube' && videoId && youtubeVideoRegex.test(youtubeUrl)) {
|
|
114
114
|
return LiteYouTubeEmbed({
|
|
115
115
|
uid: builderProps?.uid,
|
|
116
116
|
id: videoId,
|