@wistia/wistia-player-react 0.1.3 → 0.1.5
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.
|
@@ -605,7 +605,7 @@ function _defaultLocalization() {
|
|
|
605
605
|
};
|
|
606
606
|
}
|
|
607
607
|
function _deferMediaDataFetchingToCarouselEmbed() {
|
|
608
|
-
return !!document.querySelector('wistia-carousel[player-dom-id="'.concat(this.id, '"]:not([is-inside-playlist-embed="true"][channel-id])'));
|
|
608
|
+
return !!document.querySelector('wistia-channel-carousel[player-dom-id="'.concat(this.id, '"]:not([is-inside-playlist-embed="true"][channel-id])'));
|
|
609
609
|
}
|
|
610
610
|
function _findLocalizationByLanguage(language) {
|
|
611
611
|
var _classPrivateFieldGet111;
|
|
@@ -6553,6 +6553,14 @@ var init_wistia_player = __esm({
|
|
|
6553
6553
|
}
|
|
6554
6554
|
return decodeEntities(withFallbackText(text));
|
|
6555
6555
|
};
|
|
6556
|
+
var getTranslations = function getTranslations2(code) {
|
|
6557
|
+
var keys = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
6558
|
+
var translations2 = {};
|
|
6559
|
+
keys.forEach(function(key) {
|
|
6560
|
+
translations2[key] = getTranslation(code, key);
|
|
6561
|
+
});
|
|
6562
|
+
return translations2;
|
|
6563
|
+
};
|
|
6556
6564
|
var getLanguagePreference = function getLanguagePreference2() {
|
|
6557
6565
|
if (navigator.languages || navigator.language) {
|
|
6558
6566
|
_wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_2__2.s.languagePreference = navigator.languages || [navigator.language];
|
|
@@ -8762,7 +8770,7 @@ var init_wistia_player = __esm({
|
|
|
8762
8770
|
var PROD_SSL_EMBED_HOST = "embed-ssl.wistia.com";
|
|
8763
8771
|
var PROD_FASTLY_SSL_HOST = "embed-fastly.wistia.com";
|
|
8764
8772
|
var SSL_EMBED_HOST = "embed-ssl.wistia.com";
|
|
8765
|
-
var TAGGED_VERSION2 = "0.1.
|
|
8773
|
+
var TAGGED_VERSION2 = "0.1.5";
|
|
8766
8774
|
var CURRENT_SHA2 = (
|
|
8767
8775
|
/* unused pure expression or super */
|
|
8768
8776
|
null
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
import { forwardRef, Suspense, lazy, Fragment } from "react";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
var WistiaPlayerWrapper = lazy(
|
|
10
|
-
async () => import("./WistiaPlayerWrapper-
|
|
10
|
+
async () => import("./WistiaPlayerWrapper-DUCLJBK3.mjs").then((module) => ({
|
|
11
11
|
default: module.WistiaPlayerWrapper
|
|
12
12
|
}))
|
|
13
13
|
);
|
|
@@ -22,7 +22,7 @@ var WistiaPlayerWrapper = forwardRef(
|
|
|
22
22
|
setSwatchAspectRatio(ratio);
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
|
-
void import("./wistia-player-
|
|
25
|
+
void import("./wistia-player-HIFG7JJV.mjs");
|
|
26
26
|
void customElements.whenDefined("wistia-player").then(() => {
|
|
27
27
|
setIsWistiaPlayerDefined(true);
|
|
28
28
|
});
|
|
@@ -5555,6 +5555,14 @@ var __webpack_modules__ = {
|
|
|
5555
5555
|
}
|
|
5556
5556
|
return decodeEntities(withFallbackText(text));
|
|
5557
5557
|
};
|
|
5558
|
+
var getTranslations = function getTranslations2(code) {
|
|
5559
|
+
var keys = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
5560
|
+
var translations2 = {};
|
|
5561
|
+
keys.forEach(function(key) {
|
|
5562
|
+
translations2[key] = getTranslation(code, key);
|
|
5563
|
+
});
|
|
5564
|
+
return translations2;
|
|
5565
|
+
};
|
|
5558
5566
|
var getLanguagePreference = function getLanguagePreference2() {
|
|
5559
5567
|
if (navigator.languages || navigator.language) {
|
|
5560
5568
|
_wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_2__2.s.languagePreference = navigator.languages || [navigator.language];
|
|
@@ -7764,7 +7772,7 @@ var __webpack_modules__ = {
|
|
|
7764
7772
|
var PROD_SSL_EMBED_HOST = "embed-ssl.wistia.com";
|
|
7765
7773
|
var PROD_FASTLY_SSL_HOST = "embed-fastly.wistia.com";
|
|
7766
7774
|
var SSL_EMBED_HOST = "embed-ssl.wistia.com";
|
|
7767
|
-
var TAGGED_VERSION2 = "0.1.
|
|
7775
|
+
var TAGGED_VERSION2 = "0.1.5";
|
|
7768
7776
|
var CURRENT_SHA2 = (
|
|
7769
7777
|
/* unused pure expression or super */
|
|
7770
7778
|
null
|
|
@@ -15964,7 +15972,7 @@ function _defaultLocalization() {
|
|
|
15964
15972
|
};
|
|
15965
15973
|
}
|
|
15966
15974
|
function _deferMediaDataFetchingToCarouselEmbed() {
|
|
15967
|
-
return !!document.querySelector('wistia-carousel[player-dom-id="'.concat(this.id, '"]:not([is-inside-playlist-embed="true"][channel-id])'));
|
|
15975
|
+
return !!document.querySelector('wistia-channel-carousel[player-dom-id="'.concat(this.id, '"]:not([is-inside-playlist-embed="true"][channel-id])'));
|
|
15968
15976
|
}
|
|
15969
15977
|
function _findLocalizationByLanguage(language) {
|
|
15970
15978
|
var _classPrivateFieldGet111;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wistia/wistia-player-react",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
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": [
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"start:dev:yalc": "run build:react:dev --watch --yalc"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@wistia/wistia-player": "0.1.
|
|
48
|
+
"@wistia/wistia-player": "0.1.5"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@babel/core": "^7.26.9",
|