@wix/editor-react-components 1.2496.0 → 1.2497.0
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/site/components/Image3/component.js +479 -6
- package/dist/site/components/Logo/component.js +156 -1
- package/dist/site/components/Logo/css.css +15 -16
- package/dist/site/components/TransparentVideo/TransparentVideo.types.d.ts +2 -2
- package/dist/site/components/TransparentVideo/component.js +8 -7
- package/dist/site/components/TransparentVideo/css.css +5 -21
- package/dist/site/components/TransparentVideo/useTransparentVideo.d.ts +1 -1
- package/dist/site/components/VideoUpload/css.css +5 -13
- package/dist/site/components/chunks/Video.js +651 -12
- package/dist/site/components/chunks/fastdom.js +166 -0
- package/dist/site/components/chunks/index5.js +8 -4
- package/package.json +4 -4
- package/dist/site/components/chunks/Image.js +0 -159
- package/dist/site/components/chunks/customElementInit.js +0 -644
|
@@ -1,4 +1,18 @@
|
|
|
1
|
-
.
|
|
1
|
+
.image__WopE9 {
|
|
2
|
+
display: block;
|
|
3
|
+
width: 100%;
|
|
4
|
+
height: 100%;
|
|
5
|
+
}
|
|
6
|
+
.image__WopE9 img {
|
|
7
|
+
max-width: var(--wix-img-max-width, 100%);
|
|
8
|
+
}
|
|
9
|
+
.image__WopE9[data-animate-blur] img {
|
|
10
|
+
filter: blur(9px);
|
|
11
|
+
transition: filter 0.8s ease-in;
|
|
12
|
+
}
|
|
13
|
+
.image__WopE9[data-animate-blur] img[data-load-done] {
|
|
14
|
+
filter: none;
|
|
15
|
+
}.logo__Y9w6a {
|
|
2
16
|
display: flex;
|
|
3
17
|
align-items: center;
|
|
4
18
|
justify-content: center;
|
|
@@ -28,19 +42,4 @@
|
|
|
28
42
|
width: 100%;
|
|
29
43
|
height: 100%;
|
|
30
44
|
display: block;
|
|
31
|
-
}
|
|
32
|
-
.image__WopE9 {
|
|
33
|
-
display: block;
|
|
34
|
-
width: 100%;
|
|
35
|
-
height: 100%;
|
|
36
|
-
}
|
|
37
|
-
.image__WopE9 img {
|
|
38
|
-
max-width: var(--wix-img-max-width, 100%);
|
|
39
|
-
}
|
|
40
|
-
.image__WopE9[data-animate-blur] img {
|
|
41
|
-
filter: blur(9px);
|
|
42
|
-
transition: filter 0.8s ease-in;
|
|
43
|
-
}
|
|
44
|
-
.image__WopE9[data-animate-blur] img[data-load-done] {
|
|
45
|
-
filter: none;
|
|
46
45
|
}
|
|
@@ -21,13 +21,13 @@ export type TransparentVideoFilterEffect = {
|
|
|
21
21
|
invert?: boolean;
|
|
22
22
|
};
|
|
23
23
|
export interface TransparentVideoProps extends VideoUploadProps {
|
|
24
|
-
|
|
24
|
+
hideCanvas: boolean;
|
|
25
25
|
videoStartType: VideoStartType;
|
|
26
26
|
videoEndType: VideoEndType;
|
|
27
27
|
filterEffect?: TransparentVideoFilterEffect;
|
|
28
28
|
}
|
|
29
29
|
export interface TransparentVideoBuilderProps extends TransparentVideoFilterEffect, VideoUploadProps {
|
|
30
|
-
|
|
30
|
+
hideCanvas: boolean;
|
|
31
31
|
videoStartType: VideoStartType;
|
|
32
32
|
videoEndType: VideoEndType;
|
|
33
33
|
filterEffectRecolorVideo?: boolean;
|
|
@@ -3292,7 +3292,7 @@ function useTransparentVideo(props) {
|
|
|
3292
3292
|
video,
|
|
3293
3293
|
videoStartType = VideoStartType.auto,
|
|
3294
3294
|
videoEndType = VideoEndType.loop,
|
|
3295
|
-
|
|
3295
|
+
hideCanvas = false,
|
|
3296
3296
|
mute = true
|
|
3297
3297
|
} = props;
|
|
3298
3298
|
const playerRef = useRef(null);
|
|
@@ -3360,8 +3360,8 @@ function useTransparentVideo(props) {
|
|
|
3360
3360
|
const isPlaying = playingState === VideoPlayingState.playing;
|
|
3361
3361
|
const shouldAutoplay = videoStartType === VideoStartType.auto;
|
|
3362
3362
|
const shouldReplay = videoEndType !== VideoEndType.stop;
|
|
3363
|
-
const
|
|
3364
|
-
const shouldMuteVideo = isMuted || mute ||
|
|
3363
|
+
const shouldHideCanvas = hideCanvas || !isPlaying && playingState !== VideoPlayingState.paused;
|
|
3364
|
+
const shouldMuteVideo = isMuted || mute || shouldHideCanvas;
|
|
3365
3365
|
const shouldDisplayAudioToggle = !!(video && video.hasAudio && !mute);
|
|
3366
3366
|
const shouldDisplayPlayButton = !!video && !(playingState === VideoPlayingState.ended && !shouldReplay);
|
|
3367
3367
|
const posterFilterId = useMemo(
|
|
@@ -3438,7 +3438,7 @@ function useTransparentVideo(props) {
|
|
|
3438
3438
|
shouldAutoplay,
|
|
3439
3439
|
playbackRate,
|
|
3440
3440
|
playerRef,
|
|
3441
|
-
|
|
3441
|
+
shouldHideCanvas,
|
|
3442
3442
|
video,
|
|
3443
3443
|
videoEndType,
|
|
3444
3444
|
videoRef,
|
|
@@ -3541,7 +3541,7 @@ function TransparentVideo(props) {
|
|
|
3541
3541
|
shouldAutoplay,
|
|
3542
3542
|
playbackRate,
|
|
3543
3543
|
playerRef,
|
|
3544
|
-
|
|
3544
|
+
shouldHideCanvas,
|
|
3545
3545
|
video,
|
|
3546
3546
|
videoEndType,
|
|
3547
3547
|
videoRef,
|
|
@@ -3585,7 +3585,8 @@ function TransparentVideo(props) {
|
|
|
3585
3585
|
muted: shouldMuteVideo,
|
|
3586
3586
|
loop: videoEndType === VideoEndType.loop,
|
|
3587
3587
|
autoplay: shouldAutoplay,
|
|
3588
|
-
qualityPolicy: "
|
|
3588
|
+
qualityPolicy: "proportional",
|
|
3589
|
+
posterFittingType: "fit",
|
|
3589
3590
|
playbackRate
|
|
3590
3591
|
}
|
|
3591
3592
|
)
|
|
@@ -3600,7 +3601,7 @@ function TransparentVideo(props) {
|
|
|
3600
3601
|
className: clsx(
|
|
3601
3602
|
styles.canvas,
|
|
3602
3603
|
"webglcanvas",
|
|
3603
|
-
|
|
3604
|
+
shouldHideCanvas && styles.hidden
|
|
3604
3605
|
),
|
|
3605
3606
|
"aria-label": (a11y == null ? void 0 : a11y.ariaLabel) || "",
|
|
3606
3607
|
role: "presentation",
|
|
@@ -39,14 +39,6 @@
|
|
|
39
39
|
height: 0;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
.poster__d1pI5 {
|
|
43
|
-
object-fit: contain;
|
|
44
|
-
width: 100%;
|
|
45
|
-
height: 100%;
|
|
46
|
-
position: relative;
|
|
47
|
-
background: transparent;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
42
|
.playWrapper__yH3ix {
|
|
51
43
|
position: absolute;
|
|
52
44
|
top: 50%;
|
|
@@ -77,7 +69,7 @@
|
|
|
77
69
|
height: 0;
|
|
78
70
|
width: 0;
|
|
79
71
|
}
|
|
80
|
-
.
|
|
72
|
+
.videoContainer__Eyxxe {
|
|
81
73
|
width: 100%;
|
|
82
74
|
height: 100%;
|
|
83
75
|
display: block;
|
|
@@ -85,13 +77,6 @@
|
|
|
85
77
|
container-type: size;
|
|
86
78
|
}
|
|
87
79
|
|
|
88
|
-
.video-poster-img__bHEFW {
|
|
89
|
-
width: 100%;
|
|
90
|
-
height: 100%;
|
|
91
|
-
object-fit: var(--poster-fit, cover);
|
|
92
|
-
object-position: var(--poster-align, center);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
80
|
.video__YuKrH {
|
|
96
81
|
height: 100%;
|
|
97
82
|
width: 100%;
|
|
@@ -103,19 +88,18 @@
|
|
|
103
88
|
--position-left: calc(50cqw - 1cqh * var(--focal-x, 50) * var(--aspect-ratio, 1));
|
|
104
89
|
--position-top: calc(50cqh - 1cqw * var(--focal-y, 50) / var(--aspect-ratio, 1));
|
|
105
90
|
object-position: var(--video-position, clamp(100%, var(--position-left), 0%) clamp(100%, var(--position-top), 0%));
|
|
106
|
-
}
|
|
107
|
-
.image__WopE9 {
|
|
91
|
+
}.image__OIbFL {
|
|
108
92
|
display: block;
|
|
109
93
|
width: 100%;
|
|
110
94
|
height: 100%;
|
|
111
95
|
}
|
|
112
|
-
.
|
|
96
|
+
.image__OIbFL img {
|
|
113
97
|
max-width: var(--wix-img-max-width, 100%);
|
|
114
98
|
}
|
|
115
|
-
.
|
|
99
|
+
.image__OIbFL[data-animate-blur] img {
|
|
116
100
|
filter: blur(9px);
|
|
117
101
|
transition: filter 0.8s ease-in;
|
|
118
102
|
}
|
|
119
|
-
.
|
|
103
|
+
.image__OIbFL[data-animate-blur] img[data-load-done] {
|
|
120
104
|
filter: none;
|
|
121
105
|
}
|
|
@@ -17,7 +17,7 @@ export declare function useTransparentVideo(props: TransparentVideoProps): {
|
|
|
17
17
|
shouldAutoplay: boolean;
|
|
18
18
|
playbackRate: number;
|
|
19
19
|
playerRef: import('react').RefObject<HTMLDivElement>;
|
|
20
|
-
|
|
20
|
+
shouldHideCanvas: boolean;
|
|
21
21
|
video: import('@wix/video').VideoMedia | undefined;
|
|
22
22
|
videoEndType: VideoEndType;
|
|
23
23
|
videoRef: import('react').RefObject<HTMLVideoElement>;
|
|
@@ -448,7 +448,7 @@
|
|
|
448
448
|
.playButton__FDp-e {
|
|
449
449
|
cursor: pointer;
|
|
450
450
|
}
|
|
451
|
-
.
|
|
451
|
+
.videoContainer__Eyxxe {
|
|
452
452
|
width: 100%;
|
|
453
453
|
height: 100%;
|
|
454
454
|
display: block;
|
|
@@ -456,13 +456,6 @@
|
|
|
456
456
|
container-type: size;
|
|
457
457
|
}
|
|
458
458
|
|
|
459
|
-
.video-poster-img__bHEFW {
|
|
460
|
-
width: 100%;
|
|
461
|
-
height: 100%;
|
|
462
|
-
object-fit: var(--poster-fit, cover);
|
|
463
|
-
object-position: var(--poster-align, center);
|
|
464
|
-
}
|
|
465
|
-
|
|
466
459
|
.video__YuKrH {
|
|
467
460
|
height: 100%;
|
|
468
461
|
width: 100%;
|
|
@@ -474,19 +467,18 @@
|
|
|
474
467
|
--position-left: calc(50cqw - 1cqh * var(--focal-x, 50) * var(--aspect-ratio, 1));
|
|
475
468
|
--position-top: calc(50cqh - 1cqw * var(--focal-y, 50) / var(--aspect-ratio, 1));
|
|
476
469
|
object-position: var(--video-position, clamp(100%, var(--position-left), 0%) clamp(100%, var(--position-top), 0%));
|
|
477
|
-
}
|
|
478
|
-
.image__WopE9 {
|
|
470
|
+
}.image__OIbFL {
|
|
479
471
|
display: block;
|
|
480
472
|
width: 100%;
|
|
481
473
|
height: 100%;
|
|
482
474
|
}
|
|
483
|
-
.
|
|
475
|
+
.image__OIbFL img {
|
|
484
476
|
max-width: var(--wix-img-max-width, 100%);
|
|
485
477
|
}
|
|
486
|
-
.
|
|
478
|
+
.image__OIbFL[data-animate-blur] img {
|
|
487
479
|
filter: blur(9px);
|
|
488
480
|
transition: filter 0.8s ease-in;
|
|
489
481
|
}
|
|
490
|
-
.
|
|
482
|
+
.image__OIbFL[data-animate-blur] img[data-load-done] {
|
|
491
483
|
filter: none;
|
|
492
484
|
}
|