@wistia/wistia-player-react 0.7.6 → 0.7.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.
@@ -4139,6 +4139,9 @@ var init_wistia_player = __esm({
4139
4139
  if (productType === "mediaPlayback") {
4140
4140
  return 1e-3;
4141
4141
  }
4142
+ if (productType === "hlsPlayback") {
4143
+ return 0.01;
4144
+ }
4142
4145
  return 1;
4143
4146
  };
4144
4147
  var IS_DEV_ENV = false;
@@ -9198,8 +9201,8 @@ var init_wistia_player = __esm({
9198
9201
  var PROD_SSL_EMBED_HOST = "embed-ssl.wistia.com";
9199
9202
  var PROD_FASTLY_SSL_HOST = "embed-fastly.wistia.com";
9200
9203
  var SSL_EMBED_HOST = "embed-ssl.wistia.com";
9201
- var TAGGED_VERSION = "0.7.6";
9202
- var CURRENT_SHA = "d17a7f2fb96b0add1ebf115f18abea8875108342";
9204
+ var TAGGED_VERSION = "0.7.8";
9205
+ var CURRENT_SHA = "fedb4eec00711078f3d81f791782716ff305719b";
9203
9206
  var DEFAULT_PROTOCOL = (function() {
9204
9207
  if (typeof window !== "undefined" && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z === window && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.location) {
9205
9208
  return utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.location.protocol;
@@ -11985,6 +11988,15 @@ var init_wistia_player = __esm({
11985
11988
  }
11986
11989
  return false;
11987
11990
  };
11991
+ var getDeepActiveElement = function getDeepActiveElement2() {
11992
+ var root2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : document;
11993
+ var active = root2.activeElement;
11994
+ while ((_active = active) !== null && _active !== void 0 && (_active$shadowRoot = _active.shadowRoot) !== null && _active$shadowRoot !== void 0 && _active$shadowRoot.activeElement) {
11995
+ var _active, _active$shadowRoot;
11996
+ active = active.shadowRoot.activeElement;
11997
+ }
11998
+ return active;
11999
+ };
11988
12000
  var elemIsDescendantOf = function elemIsDescendantOf2(elem, target) {
11989
12001
  var ancestors = elemAncestors(elem);
11990
12002
  for (var i2 = 0; i2 < ancestors.length; i2++) {
@@ -12208,6 +12220,11 @@ var init_wistia_player = __esm({
12208
12220
  wlog.notice(errorMessage);
12209
12221
  return Promise.reject(new Error(errorMessage));
12210
12222
  }
12223
+ if (elem.webkitSupportsFullscreen === false) {
12224
+ var _errorMessage = "webkitEnterFullscreen is not currently supported for this element";
12225
+ wlog.notice(_errorMessage);
12226
+ return Promise.reject(new Error(_errorMessage));
12227
+ }
12211
12228
  elem.webkitEnterFullscreen();
12212
12229
  return Promise.resolve();
12213
12230
  }
@@ -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-2OUTDKXW.mjs").then((module) => ({
11
+ async () => import("./WistiaPlayerWrapper-QAY6Q74X.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-CXLJ2JGZ.mjs");
40
+ void import("./wistia-player-V5FKQFJA.mjs");
41
41
  void customElements.whenDefined("wistia-player").then(() => {
42
42
  setIsWistiaPlayerDefined(true);
43
43
  });
@@ -3237,6 +3237,9 @@ var __webpack_modules__ = {
3237
3237
  if (productType === "mediaPlayback") {
3238
3238
  return 1e-3;
3239
3239
  }
3240
+ if (productType === "hlsPlayback") {
3241
+ return 0.01;
3242
+ }
3240
3243
  return 1;
3241
3244
  };
3242
3245
  var IS_DEV_ENV = false;
@@ -8296,8 +8299,8 @@ var __webpack_modules__ = {
8296
8299
  var PROD_SSL_EMBED_HOST = "embed-ssl.wistia.com";
8297
8300
  var PROD_FASTLY_SSL_HOST = "embed-fastly.wistia.com";
8298
8301
  var SSL_EMBED_HOST = "embed-ssl.wistia.com";
8299
- var TAGGED_VERSION = "0.7.6";
8300
- var CURRENT_SHA = "d17a7f2fb96b0add1ebf115f18abea8875108342";
8302
+ var TAGGED_VERSION = "0.7.8";
8303
+ var CURRENT_SHA = "fedb4eec00711078f3d81f791782716ff305719b";
8301
8304
  var DEFAULT_PROTOCOL = (function() {
8302
8305
  if (typeof window !== "undefined" && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z === window && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.location) {
8303
8306
  return utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.location.protocol;
@@ -11083,6 +11086,15 @@ var __webpack_modules__ = {
11083
11086
  }
11084
11087
  return false;
11085
11088
  };
11089
+ var getDeepActiveElement = function getDeepActiveElement2() {
11090
+ var root2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : document;
11091
+ var active = root2.activeElement;
11092
+ while ((_active = active) !== null && _active !== void 0 && (_active$shadowRoot = _active.shadowRoot) !== null && _active$shadowRoot !== void 0 && _active$shadowRoot.activeElement) {
11093
+ var _active, _active$shadowRoot;
11094
+ active = active.shadowRoot.activeElement;
11095
+ }
11096
+ return active;
11097
+ };
11086
11098
  var elemIsDescendantOf = function elemIsDescendantOf2(elem, target) {
11087
11099
  var ancestors = elemAncestors(elem);
11088
11100
  for (var i2 = 0; i2 < ancestors.length; i2++) {
@@ -11306,6 +11318,11 @@ var __webpack_modules__ = {
11306
11318
  wlog.notice(errorMessage);
11307
11319
  return Promise.reject(new Error(errorMessage));
11308
11320
  }
11321
+ if (elem.webkitSupportsFullscreen === false) {
11322
+ var _errorMessage = "webkitEnterFullscreen is not currently supported for this element";
11323
+ wlog.notice(_errorMessage);
11324
+ return Promise.reject(new Error(_errorMessage));
11325
+ }
11309
11326
  elem.webkitEnterFullscreen();
11310
11327
  return Promise.resolve();
11311
11328
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wistia/wistia-player-react",
3
- "version": "0.7.6",
3
+ "version": "0.7.8",
4
4
  "packageManager": "yarn@4.13.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.6"
49
+ "@wistia/wistia-player": "0.7.8"
50
50
  },
51
51
  "peerDependencies": {
52
52
  "react": ">=18.0.0 <20.0.0",