@wistia/wistia-player-react 0.7.13 → 0.7.14

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.
@@ -4590,6 +4590,7 @@ var init_wistia_player = __esm({
4590
4590
  this._hasRenderedVisible = true;
4591
4591
  }
4592
4592
  const sharedProps = {
4593
+ ariaHidden: this.props.ariaHidden,
4593
4594
  backgroundColor: this.props.backgroundColor,
4594
4595
  fitStrategy: this.props.fitStrategy,
4595
4596
  isVisible: this.props.isVisible,
@@ -6189,9 +6190,19 @@ var init_wistia_player = __esm({
6189
6190
  const isPrivacyModeEnabled = apis.some((api) => {
6190
6191
  const data = api._mediaData || api._galleryData || {};
6191
6192
  return data.privacyMode === true;
6192
- });
6193
+ }) || hasRegisteredPrivacyModeSource();
6193
6194
  return !isPrivacyModeEnabled;
6194
6195
  };
6196
+ const registerPrivacyModeSource = (key, privacyMode) => {
6197
+ Wistia._privacyModeSources ??= {};
6198
+ Wistia._privacyModeSources[key] = privacyMode === true;
6199
+ };
6200
+ const unregisterPrivacyModeSource = (key) => {
6201
+ if (Wistia._privacyModeSources) {
6202
+ delete Wistia._privacyModeSources[key];
6203
+ }
6204
+ };
6205
+ const hasRegisteredPrivacyModeSource = () => Object.values(_wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_3__2.s._privacyModeSources || {}).some(Boolean);
6195
6206
  },
6196
6207
  /***/
6197
6208
  4989(__unused_webpack_module, __webpack_exports__3, __webpack_require__3) {
@@ -7601,8 +7612,8 @@ var init_wistia_player = __esm({
7601
7612
  const PROD_SSL_EMBED_HOST = "embed-ssl.wistia.com";
7602
7613
  const PROD_FASTLY_SSL_HOST = "embed-fastly.wistia.com";
7603
7614
  const SSL_EMBED_HOST = "embed-ssl.wistia.com";
7604
- const TAGGED_VERSION = "0.7.13";
7605
- const CURRENT_SHA = "7a72da90e6251423490a96cd1da5bb1a47651431";
7615
+ const TAGGED_VERSION = "0.7.14";
7616
+ const CURRENT_SHA = "1c2685bd7575dcd821c00f9c4b0c0ab78c57426c";
7606
7617
  const DEFAULT_PROTOCOL = (() => {
7607
7618
  if (typeof window !== "undefined" && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z === window && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.location) {
7608
7619
  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-SEY6FKGD.mjs").then((module) => ({
11
+ async () => import("./WistiaPlayerWrapper-YILNMBWL.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-YVDMFZVS.mjs");
40
+ void import("./wistia-player-UTJMZ76D.mjs");
41
41
  void customElements.whenDefined("wistia-player").then(() => {
42
42
  setIsWistiaPlayerDefined(true);
43
43
  });
@@ -3975,6 +3975,7 @@ var __webpack_modules__ = {
3975
3975
  this._hasRenderedVisible = true;
3976
3976
  }
3977
3977
  const sharedProps = {
3978
+ ariaHidden: this.props.ariaHidden,
3978
3979
  backgroundColor: this.props.backgroundColor,
3979
3980
  fitStrategy: this.props.fitStrategy,
3980
3981
  isVisible: this.props.isVisible,
@@ -5574,9 +5575,19 @@ var __webpack_modules__ = {
5574
5575
  const isPrivacyModeEnabled = apis.some((api) => {
5575
5576
  const data = api._mediaData || api._galleryData || {};
5576
5577
  return data.privacyMode === true;
5577
- });
5578
+ }) || hasRegisteredPrivacyModeSource();
5578
5579
  return !isPrivacyModeEnabled;
5579
5580
  };
5581
+ const registerPrivacyModeSource = (key, privacyMode) => {
5582
+ Wistia._privacyModeSources ??= {};
5583
+ Wistia._privacyModeSources[key] = privacyMode === true;
5584
+ };
5585
+ const unregisterPrivacyModeSource = (key) => {
5586
+ if (Wistia._privacyModeSources) {
5587
+ delete Wistia._privacyModeSources[key];
5588
+ }
5589
+ };
5590
+ const hasRegisteredPrivacyModeSource = () => Object.values(_wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_3__2.s._privacyModeSources || {}).some(Boolean);
5580
5591
  },
5581
5592
  /***/
5582
5593
  4989(__unused_webpack_module, __webpack_exports__3, __webpack_require__3) {
@@ -6986,8 +6997,8 @@ var __webpack_modules__ = {
6986
6997
  const PROD_SSL_EMBED_HOST = "embed-ssl.wistia.com";
6987
6998
  const PROD_FASTLY_SSL_HOST = "embed-fastly.wistia.com";
6988
6999
  const SSL_EMBED_HOST = "embed-ssl.wistia.com";
6989
- const TAGGED_VERSION = "0.7.13";
6990
- const CURRENT_SHA = "7a72da90e6251423490a96cd1da5bb1a47651431";
7000
+ const TAGGED_VERSION = "0.7.14";
7001
+ const CURRENT_SHA = "1c2685bd7575dcd821c00f9c4b0c0ab78c57426c";
6991
7002
  const DEFAULT_PROTOCOL = (() => {
6992
7003
  if (typeof window !== "undefined" && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z === window && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.location) {
6993
7004
  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.13",
3
+ "version": "0.7.14",
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.13"
49
+ "@wistia/wistia-player": "0.7.14"
50
50
  },
51
51
  "peerDependencies": {
52
52
  "react": ">=18.0.0 <20.0.0",