@wistia/wistia-player-react 0.7.30 → 0.7.31
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/CHANGELOG.md +12 -0
- package/dist/cjs/WistiaPlayer.cjs +24 -20
- package/dist/mjs/WistiaPlayer.mjs +1 -1
- package/dist/mjs/{WistiaPlayerWrapper-SPMJHQUM.mjs → WistiaPlayerWrapper-D26PGA5B.mjs} +1 -1
- package/dist/mjs/{wistia-player-IGIIUYHO.mjs → wistia-player-7PFMT4CO.mjs} +24 -20
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @wistia/wistia-player-react
|
|
2
2
|
|
|
3
|
+
## 0.7.31
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- a1484dc: Fixed the settings menu showing blank "Speed", "Quality" and "Auto" labels in Safari Private Browsing on some pages. Translated player text is no longer decoded through a form control, which Safari's tracking protection can blank out.
|
|
8
|
+
- a6cb4eb: Updates hls.js to 1.7.4. Handing a video off to AirPlay from Safari no longer relies on a workaround in the player: hls.js now steps aside on its own while the receiver plays, and the player re-attaches it when playback returns to the device.
|
|
9
|
+
- 45ecceb: The published types now include the `wmode` embed option and the `disallowOriginalFilePlayback`, `forceInstantHls`, `forceOriginalFilePlayback` and `playerBackgroundColor` attributes. How the player applies poster, volume, background color and letterbox settings is unchanged.
|
|
10
|
+
- Updated dependencies [a1484dc]
|
|
11
|
+
- Updated dependencies [a6cb4eb]
|
|
12
|
+
- Updated dependencies [45ecceb]
|
|
13
|
+
- @wistia/wistia-player@0.7.31
|
|
14
|
+
|
|
3
15
|
## 0.7.30
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -5693,12 +5693,13 @@ var init_wistia_player = __esm({
|
|
|
5693
5693
|
/* harmony export */
|
|
5694
5694
|
});
|
|
5695
5695
|
var utilities_obj_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__3(731);
|
|
5696
|
-
var
|
|
5697
|
-
var
|
|
5698
|
-
|
|
5699
|
-
const
|
|
5700
|
-
|
|
5701
|
-
|
|
5696
|
+
var utilities_unescape_html_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__3(2428);
|
|
5697
|
+
var utilities_dynamicImport_ts__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__3(7157);
|
|
5698
|
+
var _wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_3__2 = __webpack_require__3(5509);
|
|
5699
|
+
const languages = _wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_3__2.s.languages = _wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_3__2.s.languages || {};
|
|
5700
|
+
const translations = _wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_3__2.s.translations = _wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_3__2.s.translations || {};
|
|
5701
|
+
if (!_wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_3__2.s._translationPromises) {
|
|
5702
|
+
_wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_3__2.s._translationPromises = {};
|
|
5702
5703
|
}
|
|
5703
5704
|
const supportedLanguages = ["ar", "de", "es", "en-US", "fr", "it", "ja", "ko", "pt", "ru", "zh-CN"];
|
|
5704
5705
|
const ietfLanguageTagToCode = {
|
|
@@ -5765,18 +5766,21 @@ var init_wistia_player = __esm({
|
|
|
5765
5766
|
}
|
|
5766
5767
|
return text;
|
|
5767
5768
|
};
|
|
5768
|
-
|
|
5769
|
-
const cachedDecodings = _wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_2__.s.cachedDecodings = _wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_2__.s.cachedDecodings || {};
|
|
5769
|
+
const cachedDecodings = _wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_3__2.s.cachedDecodings = _wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_3__2.s.cachedDecodings || {};
|
|
5770
5770
|
const decodeEntities = (text) => {
|
|
5771
|
-
if (!
|
|
5772
|
-
|
|
5771
|
+
if (typeof text !== "string" || !text.includes("&")) {
|
|
5772
|
+
return text;
|
|
5773
|
+
}
|
|
5774
|
+
const cached = cachedDecodings[text];
|
|
5775
|
+
if (cached) {
|
|
5776
|
+
return cached;
|
|
5773
5777
|
}
|
|
5774
|
-
|
|
5775
|
-
|
|
5778
|
+
const decoded = (0, utilities_unescape_html_js__WEBPACK_IMPORTED_MODULE_1__.U)(text);
|
|
5779
|
+
if (!decoded) {
|
|
5780
|
+
return text;
|
|
5776
5781
|
}
|
|
5777
|
-
|
|
5778
|
-
|
|
5779
|
-
return dummyTextArea.value;
|
|
5782
|
+
cachedDecodings[text] = decoded;
|
|
5783
|
+
return decoded;
|
|
5780
5784
|
};
|
|
5781
5785
|
const getTranslation = (code, key) => {
|
|
5782
5786
|
code = normalizeLanguageCode(code);
|
|
@@ -5797,11 +5801,11 @@ var init_wistia_player = __esm({
|
|
|
5797
5801
|
};
|
|
5798
5802
|
const getLanguagePreference = () => {
|
|
5799
5803
|
if (navigator.languages || navigator.language) {
|
|
5800
|
-
|
|
5804
|
+
_wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_3__2.s.languagePreference = navigator.languages || [navigator.language];
|
|
5801
5805
|
} else {
|
|
5802
|
-
|
|
5806
|
+
_wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_3__2.s.languagePreference = ["en-US"];
|
|
5803
5807
|
}
|
|
5804
|
-
return
|
|
5808
|
+
return _wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_3__2.s.languagePreference;
|
|
5805
5809
|
};
|
|
5806
5810
|
let defaultPromise = Promise.resolve({
|
|
5807
5811
|
code: "en-US",
|
|
@@ -7075,8 +7079,8 @@ var init_wistia_player = __esm({
|
|
|
7075
7079
|
const PROD_SSL_EMBED_HOST = "embed-ssl.wistia.com";
|
|
7076
7080
|
const PROD_FASTLY_SSL_HOST = "embed-fastly.wistia.com";
|
|
7077
7081
|
const SSL_EMBED_HOST = "embed-ssl.wistia.com";
|
|
7078
|
-
const TAGGED_VERSION = "0.7.
|
|
7079
|
-
const CURRENT_SHA = "
|
|
7082
|
+
const TAGGED_VERSION = "0.7.31";
|
|
7083
|
+
const CURRENT_SHA = "65b8997b69ccf6fecc2c118378433208e340851c";
|
|
7080
7084
|
const DEFAULT_PROTOCOL = (() => {
|
|
7081
7085
|
if (typeof window !== "undefined" && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z === window && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.location) {
|
|
7082
7086
|
return utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.location.protocol;
|
|
@@ -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-D26PGA5B.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-7PFMT4CO.mjs");
|
|
41
41
|
void customElements.whenDefined("wistia-player").then(() => {
|
|
42
42
|
setIsWistiaPlayerDefined(true);
|
|
43
43
|
});
|
|
@@ -5052,12 +5052,13 @@ var __webpack_modules__ = {
|
|
|
5052
5052
|
/* harmony export */
|
|
5053
5053
|
});
|
|
5054
5054
|
var utilities_obj_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__3(731);
|
|
5055
|
-
var
|
|
5056
|
-
var
|
|
5057
|
-
|
|
5058
|
-
const
|
|
5059
|
-
|
|
5060
|
-
|
|
5055
|
+
var utilities_unescape_html_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__3(2428);
|
|
5056
|
+
var utilities_dynamicImport_ts__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__3(7157);
|
|
5057
|
+
var _wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_3__2 = __webpack_require__3(5509);
|
|
5058
|
+
const languages = _wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_3__2.s.languages = _wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_3__2.s.languages || {};
|
|
5059
|
+
const translations = _wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_3__2.s.translations = _wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_3__2.s.translations || {};
|
|
5060
|
+
if (!_wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_3__2.s._translationPromises) {
|
|
5061
|
+
_wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_3__2.s._translationPromises = {};
|
|
5061
5062
|
}
|
|
5062
5063
|
const supportedLanguages = ["ar", "de", "es", "en-US", "fr", "it", "ja", "ko", "pt", "ru", "zh-CN"];
|
|
5063
5064
|
const ietfLanguageTagToCode = {
|
|
@@ -5124,18 +5125,21 @@ var __webpack_modules__ = {
|
|
|
5124
5125
|
}
|
|
5125
5126
|
return text;
|
|
5126
5127
|
};
|
|
5127
|
-
|
|
5128
|
-
const cachedDecodings = _wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_2__.s.cachedDecodings = _wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_2__.s.cachedDecodings || {};
|
|
5128
|
+
const cachedDecodings = _wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_3__2.s.cachedDecodings = _wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_3__2.s.cachedDecodings || {};
|
|
5129
5129
|
const decodeEntities = (text) => {
|
|
5130
|
-
if (!
|
|
5131
|
-
|
|
5130
|
+
if (typeof text !== "string" || !text.includes("&")) {
|
|
5131
|
+
return text;
|
|
5132
|
+
}
|
|
5133
|
+
const cached = cachedDecodings[text];
|
|
5134
|
+
if (cached) {
|
|
5135
|
+
return cached;
|
|
5132
5136
|
}
|
|
5133
|
-
|
|
5134
|
-
|
|
5137
|
+
const decoded = (0, utilities_unescape_html_js__WEBPACK_IMPORTED_MODULE_1__.U)(text);
|
|
5138
|
+
if (!decoded) {
|
|
5139
|
+
return text;
|
|
5135
5140
|
}
|
|
5136
|
-
|
|
5137
|
-
|
|
5138
|
-
return dummyTextArea.value;
|
|
5141
|
+
cachedDecodings[text] = decoded;
|
|
5142
|
+
return decoded;
|
|
5139
5143
|
};
|
|
5140
5144
|
const getTranslation = (code, key) => {
|
|
5141
5145
|
code = normalizeLanguageCode(code);
|
|
@@ -5156,11 +5160,11 @@ var __webpack_modules__ = {
|
|
|
5156
5160
|
};
|
|
5157
5161
|
const getLanguagePreference = () => {
|
|
5158
5162
|
if (navigator.languages || navigator.language) {
|
|
5159
|
-
|
|
5163
|
+
_wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_3__2.s.languagePreference = navigator.languages || [navigator.language];
|
|
5160
5164
|
} else {
|
|
5161
|
-
|
|
5165
|
+
_wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_3__2.s.languagePreference = ["en-US"];
|
|
5162
5166
|
}
|
|
5163
|
-
return
|
|
5167
|
+
return _wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_3__2.s.languagePreference;
|
|
5164
5168
|
};
|
|
5165
5169
|
let defaultPromise = Promise.resolve({
|
|
5166
5170
|
code: "en-US",
|
|
@@ -6434,8 +6438,8 @@ var __webpack_modules__ = {
|
|
|
6434
6438
|
const PROD_SSL_EMBED_HOST = "embed-ssl.wistia.com";
|
|
6435
6439
|
const PROD_FASTLY_SSL_HOST = "embed-fastly.wistia.com";
|
|
6436
6440
|
const SSL_EMBED_HOST = "embed-ssl.wistia.com";
|
|
6437
|
-
const TAGGED_VERSION = "0.7.
|
|
6438
|
-
const CURRENT_SHA = "
|
|
6441
|
+
const TAGGED_VERSION = "0.7.31";
|
|
6442
|
+
const CURRENT_SHA = "65b8997b69ccf6fecc2c118378433208e340851c";
|
|
6439
6443
|
const DEFAULT_PROTOCOL = (() => {
|
|
6440
6444
|
if (typeof window !== "undefined" && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z === window && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.location) {
|
|
6441
6445
|
return utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.location.protocol;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wistia/wistia-player-react",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.31",
|
|
4
4
|
"packageManager": "yarn@4.18.0",
|
|
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.7.
|
|
49
|
+
"@wistia/wistia-player": "0.7.31"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"react": ">=18.0.0 <20.0.0",
|