@wistia/wistia-player-react 0.0.30 → 0.0.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.
@@ -4355,6 +4355,9 @@ var init_wistia_player = __esm({
4355
4355
  if (_utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.Wistia._mediaDataPromises == null) {
4356
4356
  _utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.Wistia._mediaDataPromises = {};
4357
4357
  }
4358
+ if (_utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.Wistia._liveStreamPollingPromises == null) {
4359
+ _utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.Wistia._liveStreamPollingPromises = {};
4360
+ }
4358
4361
  var Wistia2 = _utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.Wistia;
4359
4362
  }
4360
4363
  ),
@@ -9297,7 +9300,7 @@ var init_wistia_player = __esm({
9297
9300
  var PROD_SSL_EMBED_HOST = "embed-ssl.wistia.com";
9298
9301
  var PROD_FASTLY_SSL_HOST = "embed-fastly.wistia.com";
9299
9302
  var SSL_EMBED_HOST = "embed-ssl.wistia.com";
9300
- var TAGGED_VERSION = "0.0.30";
9303
+ var TAGGED_VERSION = "0.0.31";
9301
9304
  var DEFAULT_PROTOCOL = function() {
9302
9305
  if (typeof window !== "undefined" && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z === window && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.location) {
9303
9306
  return utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.location.protocol;
@@ -10451,14 +10454,6 @@ var init_wistia_player = __esm({
10451
10454
  }
10452
10455
  return ("string" === r ? String : Number)(t);
10453
10456
  }
10454
- var fetchFreshMediaDataJson = function fetchFreshMediaDataJson2(hashedId, options) {
10455
- var url = mediaDataUrl(hashedId, options);
10456
- return fetch(url).then(function(response) {
10457
- return response.json();
10458
- }).catch(function(e) {
10459
- wlog.error("error fetching mediaData", e);
10460
- });
10461
- };
10462
10457
  var fetchMedia = function fetchMedia2(hashedId) {
10463
10458
  var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
10464
10459
  return new Promise(function(resolve, reject) {
@@ -13614,7 +13609,7 @@ var init_wistia_player = __esm({
13614
13609
  }
13615
13610
  /**
13616
13611
  * Getter. Returns all defined plugins.
13617
- * @returns {Plugin} returns object of defined plugins. Please note this may return an
13612
+ * @returns {PluginInstances} returns object of defined plugins. Please note this may return an
13618
13613
  * empty object if not plugins have yet been defined.
13619
13614
  */
13620
13615
  }, {
@@ -7,7 +7,7 @@ import {
7
7
  import { forwardRef, Suspense, lazy } from "react";
8
8
  import { jsx } from "react/jsx-runtime";
9
9
  var WistiaPlayerWrapper = lazy(
10
- async () => import("./WistiaPlayerWrapper-BRTNPVHV.mjs").then((module) => ({
10
+ async () => import("./WistiaPlayerWrapper-BUHKJYDP.mjs").then((module) => ({
11
11
  default: module.WistiaPlayerWrapper
12
12
  }))
13
13
  );
@@ -32,7 +32,7 @@ var WistiaPlayerWrapper = forwardRef(
32
32
  setSwatchAspectRatio(ratio);
33
33
  });
34
34
  }
35
- void import("./wistia-player-65D6YLWN.mjs").then(() => {
35
+ void import("./wistia-player-GT7554PH.mjs").then(() => {
36
36
  setIsWistiaPlayerImported(true);
37
37
  });
38
38
  void customElements.whenDefined("wistia-player").then(() => {
@@ -3446,6 +3446,9 @@ var __webpack_modules__ = {
3446
3446
  if (_utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.Wistia._mediaDataPromises == null) {
3447
3447
  _utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.Wistia._mediaDataPromises = {};
3448
3448
  }
3449
+ if (_utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.Wistia._liveStreamPollingPromises == null) {
3450
+ _utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.Wistia._liveStreamPollingPromises = {};
3451
+ }
3449
3452
  var Wistia2 = _utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.Wistia;
3450
3453
  }
3451
3454
  ),
@@ -8388,7 +8391,7 @@ var __webpack_modules__ = {
8388
8391
  var PROD_SSL_EMBED_HOST = "embed-ssl.wistia.com";
8389
8392
  var PROD_FASTLY_SSL_HOST = "embed-fastly.wistia.com";
8390
8393
  var SSL_EMBED_HOST = "embed-ssl.wistia.com";
8391
- var TAGGED_VERSION = "0.0.30";
8394
+ var TAGGED_VERSION = "0.0.31";
8392
8395
  var DEFAULT_PROTOCOL = function() {
8393
8396
  if (typeof window !== "undefined" && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z === window && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.location) {
8394
8397
  return utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.location.protocol;
@@ -9542,14 +9545,6 @@ var __webpack_modules__ = {
9542
9545
  }
9543
9546
  return ("string" === r ? String : Number)(t);
9544
9547
  }
9545
- var fetchFreshMediaDataJson = function fetchFreshMediaDataJson2(hashedId, options) {
9546
- var url = mediaDataUrl(hashedId, options);
9547
- return fetch(url).then(function(response) {
9548
- return response.json();
9549
- }).catch(function(e) {
9550
- wlog.error("error fetching mediaData", e);
9551
- });
9552
- };
9553
9548
  var fetchMedia = function fetchMedia2(hashedId) {
9554
9549
  var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
9555
9550
  return new Promise(function(resolve, reject) {
@@ -13167,7 +13162,7 @@ var WistiaPlayer = /* @__PURE__ */ function(_HTMLElement) {
13167
13162
  }
13168
13163
  /**
13169
13164
  * Getter. Returns all defined plugins.
13170
- * @returns {Plugin} returns object of defined plugins. Please note this may return an
13165
+ * @returns {PluginInstances} returns object of defined plugins. Please note this may return an
13171
13166
  * empty object if not plugins have yet been defined.
13172
13167
  */
13173
13168
  }, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wistia/wistia-player-react",
3
- "version": "0.0.30",
3
+ "version": "0.0.31",
4
4
  "packageManager": "yarn@4.2.2",
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.0.30"
48
+ "@wistia/wistia-player": "0.0.31"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@babel/core": "^7.25.2",
@@ -54,7 +54,7 @@
54
54
  "@babel/preset-env": "^7.25.4",
55
55
  "@babel/preset-react": "^7.24.7",
56
56
  "@babel/preset-typescript": "^7.24.1",
57
- "@types/react": "^18.3.4",
57
+ "@types/react": "^18.3.8",
58
58
  "babel-plugin-transform-object-hasown": "^1.1.0",
59
59
  "esbuild": "^0.23.1",
60
60
  "npm-run-all": "^4.1.5",