@wix/editor-react-components 1.2721.0 → 1.2723.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.
|
@@ -382,6 +382,7 @@ function initCustomElement(contextWindow, services) {
|
|
|
382
382
|
const actualWindow = contextWindow || window;
|
|
383
383
|
init(actualWindow, services);
|
|
384
384
|
}
|
|
385
|
+
const FALLBACK_POSTER_SRC = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
|
|
385
386
|
if (typeof window !== "undefined") {
|
|
386
387
|
if (document.readyState === "loading") {
|
|
387
388
|
document.addEventListener("DOMContentLoaded", () => {
|
|
@@ -427,7 +428,7 @@ const Video = (props) => {
|
|
|
427
428
|
focalPoint
|
|
428
429
|
});
|
|
429
430
|
}, [videoMedia, playbackRate, posterEffect, autoplay, qualityPolicy, focalPoint]);
|
|
430
|
-
const VideoPosterImage = videoMedia.poster
|
|
431
|
+
const VideoPosterImage = videoMedia.poster ? /* @__PURE__ */ React.createElement(Image, _extends({}, videoMedia.poster, {
|
|
431
432
|
focalPoint,
|
|
432
433
|
id: `videoPoster_${id}`,
|
|
433
434
|
displayMode: posterFittingType,
|
|
@@ -435,7 +436,12 @@ const Video = (props) => {
|
|
|
435
436
|
quality: videoMedia.poster.quality ? {
|
|
436
437
|
quality: videoMedia.poster.quality
|
|
437
438
|
} : void 0
|
|
438
|
-
}))
|
|
439
|
+
})) : /* @__PURE__ */ React.createElement("img", {
|
|
440
|
+
id: `videoPoster_${id}`,
|
|
441
|
+
src: FALLBACK_POSTER_SRC,
|
|
442
|
+
alt: "",
|
|
443
|
+
"aria-hidden": "true"
|
|
444
|
+
});
|
|
439
445
|
const handleVideoElementError = React.useCallback((event) => {
|
|
440
446
|
if (onError) {
|
|
441
447
|
var _videoElement$error;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/editor-react-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2723.0",
|
|
4
4
|
"description": "React components for the Wix Editor",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -85,8 +85,8 @@
|
|
|
85
85
|
"@wix/site-service-configuration": "^1.0.1",
|
|
86
86
|
"@wix/site-service-experiments": "^1.0.4",
|
|
87
87
|
"@wix/site-service-rendering-context": "^1.0.1",
|
|
88
|
-
"@wix/site-ui": "1.
|
|
89
|
-
"@wix/video": "^1.
|
|
88
|
+
"@wix/site-ui": "1.286.0",
|
|
89
|
+
"@wix/video": "^1.109.0",
|
|
90
90
|
"@wix/viewer-service-consent-policy": "^1.0.103",
|
|
91
91
|
"@wix/web-bi-logger": "^2.1.29",
|
|
92
92
|
"@wix/wix-ui-icons-common": "^3.173.0",
|
|
@@ -201,5 +201,5 @@
|
|
|
201
201
|
"registry": "https://registry.npmjs.org/",
|
|
202
202
|
"access": "public"
|
|
203
203
|
},
|
|
204
|
-
"falconPackageHash": "
|
|
204
|
+
"falconPackageHash": "46980f861958563ee3f1313b26a1fd21e41940b63e3c801a92c7fd6d"
|
|
205
205
|
}
|