@wistia/wistia-player-react 0.6.7 → 0.6.8
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.
|
@@ -742,10 +742,21 @@ function _renderPreloadThumbnail() {
|
|
|
742
742
|
return;
|
|
743
743
|
}
|
|
744
744
|
var thumbnailAssets = (0, _utilities_assets_js__WEBPACK_IMPORTED_MODULE_9__.Q0)(assets, {});
|
|
745
|
+
var shouldRenderThumbnail = (!this.wistiaPopover || _assertClassBrand(_WistiaPlayer_brand, this, _isPopoverWithThumbnail).call(this)) && mediaType !== "Audio" && thumbnailAssets.length > 0;
|
|
746
|
+
if (!shouldRenderThumbnail) {
|
|
747
|
+
return;
|
|
748
|
+
}
|
|
745
749
|
var willAutoplay = this.autoplay || autoPlay;
|
|
746
750
|
var hasVideoThumbnail = (plugin === null || plugin === void 0 ? void 0 : plugin.videoThumbnail) !== void 0;
|
|
747
|
-
var
|
|
748
|
-
if (
|
|
751
|
+
var shouldRenderPlaceholder = willAutoplay === true || hasVideoThumbnail;
|
|
752
|
+
if (shouldRenderPlaceholder) {
|
|
753
|
+
var height = this.offsetWidth / this.aspect;
|
|
754
|
+
(0, preact__WEBPACK_IMPORTED_MODULE_0__.render)((0, preact__WEBPACK_IMPORTED_MODULE_0__.h)("div", {
|
|
755
|
+
style: {
|
|
756
|
+
width: "100%",
|
|
757
|
+
height: "".concat(height, "px")
|
|
758
|
+
}
|
|
759
|
+
}), _classPrivateFieldGet(_preloadThumbnailRoot, this));
|
|
749
760
|
return;
|
|
750
761
|
}
|
|
751
762
|
(0, preact__WEBPACK_IMPORTED_MODULE_0__.render)((0, preact__WEBPACK_IMPORTED_MODULE_0__.h)(_hooks_usePlayerData_tsx__WEBPACK_IMPORTED_MODULE_5__.z, {
|
|
@@ -9010,7 +9021,7 @@ var init_wistia_player = __esm({
|
|
|
9010
9021
|
var PROD_SSL_EMBED_HOST = "embed-ssl.wistia.com";
|
|
9011
9022
|
var PROD_FASTLY_SSL_HOST = "embed-fastly.wistia.com";
|
|
9012
9023
|
var SSL_EMBED_HOST = "embed-ssl.wistia.com";
|
|
9013
|
-
var TAGGED_VERSION2 = "0.6.
|
|
9024
|
+
var TAGGED_VERSION2 = "0.6.8";
|
|
9014
9025
|
var CURRENT_SHA2 = (
|
|
9015
9026
|
/* unused pure expression or super */
|
|
9016
9027
|
null
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
import { forwardRef, Suspense, lazy, Fragment } from "react";
|
|
9
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
var WistiaPlayerWrapper = lazy(
|
|
11
|
-
async () => import("./WistiaPlayerWrapper-
|
|
11
|
+
async () => import("./WistiaPlayerWrapper-ULUDIDMO.mjs").then((module) => ({
|
|
12
12
|
default: module.WistiaPlayerWrapper
|
|
13
13
|
}))
|
|
14
14
|
);
|
|
@@ -37,7 +37,7 @@ var WistiaPlayerWrapper = forwardRef(
|
|
|
37
37
|
setSwatchAspectRatio(ratio);
|
|
38
38
|
});
|
|
39
39
|
}
|
|
40
|
-
void import("./wistia-player-
|
|
40
|
+
void import("./wistia-player-R2B7ZCFG.mjs");
|
|
41
41
|
void customElements.whenDefined("wistia-player").then(() => {
|
|
42
42
|
setIsWistiaPlayerDefined(true);
|
|
43
43
|
});
|
|
@@ -8144,7 +8144,7 @@ var __webpack_modules__ = {
|
|
|
8144
8144
|
var PROD_SSL_EMBED_HOST = "embed-ssl.wistia.com";
|
|
8145
8145
|
var PROD_FASTLY_SSL_HOST = "embed-fastly.wistia.com";
|
|
8146
8146
|
var SSL_EMBED_HOST = "embed-ssl.wistia.com";
|
|
8147
|
-
var TAGGED_VERSION2 = "0.6.
|
|
8147
|
+
var TAGGED_VERSION2 = "0.6.8";
|
|
8148
8148
|
var CURRENT_SHA2 = (
|
|
8149
8149
|
/* unused pure expression or super */
|
|
8150
8150
|
null
|
|
@@ -16337,10 +16337,21 @@ function _renderPreloadThumbnail() {
|
|
|
16337
16337
|
return;
|
|
16338
16338
|
}
|
|
16339
16339
|
var thumbnailAssets = (0, _utilities_assets_js__WEBPACK_IMPORTED_MODULE_9__.Q0)(assets, {});
|
|
16340
|
+
var shouldRenderThumbnail = (!this.wistiaPopover || _assertClassBrand(_WistiaPlayer_brand, this, _isPopoverWithThumbnail).call(this)) && mediaType !== "Audio" && thumbnailAssets.length > 0;
|
|
16341
|
+
if (!shouldRenderThumbnail) {
|
|
16342
|
+
return;
|
|
16343
|
+
}
|
|
16340
16344
|
var willAutoplay = this.autoplay || autoPlay;
|
|
16341
16345
|
var hasVideoThumbnail = (plugin === null || plugin === void 0 ? void 0 : plugin.videoThumbnail) !== void 0;
|
|
16342
|
-
var
|
|
16343
|
-
if (
|
|
16346
|
+
var shouldRenderPlaceholder = willAutoplay === true || hasVideoThumbnail;
|
|
16347
|
+
if (shouldRenderPlaceholder) {
|
|
16348
|
+
var height = this.offsetWidth / this.aspect;
|
|
16349
|
+
(0, preact__WEBPACK_IMPORTED_MODULE_0__.render)((0, preact__WEBPACK_IMPORTED_MODULE_0__.h)("div", {
|
|
16350
|
+
style: {
|
|
16351
|
+
width: "100%",
|
|
16352
|
+
height: "".concat(height, "px")
|
|
16353
|
+
}
|
|
16354
|
+
}), _classPrivateFieldGet(_preloadThumbnailRoot, this));
|
|
16344
16355
|
return;
|
|
16345
16356
|
}
|
|
16346
16357
|
(0, preact__WEBPACK_IMPORTED_MODULE_0__.render)((0, preact__WEBPACK_IMPORTED_MODULE_0__.h)(_hooks_usePlayerData_tsx__WEBPACK_IMPORTED_MODULE_5__.z, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wistia/wistia-player-react",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.8",
|
|
4
4
|
"packageManager": "yarn@4.5.3",
|
|
5
5
|
"description": "An embeddable wistia-player web component and React wrapper to add responsive, lightweight, and SEO-friendly videos to your site.",
|
|
6
6
|
"keywords": [
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@wistia/type-guards": "^0.9.3",
|
|
49
|
-
"@wistia/wistia-player": "0.6.
|
|
49
|
+
"@wistia/wistia-player": "0.6.8"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"react": ">=18.0.0 <20.0.0",
|