@wistia/wistia-player-react 0.0.30 → 0.0.32

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.
@@ -4334,6 +4334,9 @@ var init_wistia_player = __esm({
4334
4334
  });
4335
4335
  };
4336
4336
  }
4337
+ if (_utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.Wistia.playlistMethods == null) {
4338
+ _utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.Wistia.playlistMethods = /* @__PURE__ */ new Map();
4339
+ }
4337
4340
  if (_utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.Wistia.PublicApi == null) {
4338
4341
  _utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.Wistia.PublicApi = null;
4339
4342
  }
@@ -4355,6 +4358,9 @@ var init_wistia_player = __esm({
4355
4358
  if (_utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.Wistia._mediaDataPromises == null) {
4356
4359
  _utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.Wistia._mediaDataPromises = {};
4357
4360
  }
4361
+ if (_utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.Wistia._liveStreamPollingPromises == null) {
4362
+ _utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.Wistia._liveStreamPollingPromises = {};
4363
+ }
4358
4364
  var Wistia2 = _utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.Wistia;
4359
4365
  }
4360
4366
  ),
@@ -9297,7 +9303,7 @@ var init_wistia_player = __esm({
9297
9303
  var PROD_SSL_EMBED_HOST = "embed-ssl.wistia.com";
9298
9304
  var PROD_FASTLY_SSL_HOST = "embed-fastly.wistia.com";
9299
9305
  var SSL_EMBED_HOST = "embed-ssl.wistia.com";
9300
- var TAGGED_VERSION = "0.0.30";
9306
+ var TAGGED_VERSION = "0.0.32";
9301
9307
  var DEFAULT_PROTOCOL = function() {
9302
9308
  if (typeof window !== "undefined" && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z === window && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.location) {
9303
9309
  return utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.location.protocol;
@@ -10451,14 +10457,6 @@ var init_wistia_player = __esm({
10451
10457
  }
10452
10458
  return ("string" === r ? String : Number)(t);
10453
10459
  }
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
10460
  var fetchMedia = function fetchMedia2(hashedId) {
10463
10461
  var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
10464
10462
  return new Promise(function(resolve, reject) {
@@ -13614,7 +13612,7 @@ var init_wistia_player = __esm({
13614
13612
  }
13615
13613
  /**
13616
13614
  * Getter. Returns all defined plugins.
13617
- * @returns {Plugin} returns object of defined plugins. Please note this may return an
13615
+ * @returns {PluginInstances} returns object of defined plugins. Please note this may return an
13618
13616
  * empty object if not plugins have yet been defined.
13619
13617
  */
13620
13618
  }, {
@@ -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-FF3VKF22.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-SLA762NQ.mjs").then(() => {
36
36
  setIsWistiaPlayerImported(true);
37
37
  });
38
38
  void customElements.whenDefined("wistia-player").then(() => {
@@ -3425,6 +3425,9 @@ var __webpack_modules__ = {
3425
3425
  });
3426
3426
  };
3427
3427
  }
3428
+ if (_utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.Wistia.playlistMethods == null) {
3429
+ _utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.Wistia.playlistMethods = /* @__PURE__ */ new Map();
3430
+ }
3428
3431
  if (_utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.Wistia.PublicApi == null) {
3429
3432
  _utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.Wistia.PublicApi = null;
3430
3433
  }
@@ -3446,6 +3449,9 @@ var __webpack_modules__ = {
3446
3449
  if (_utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.Wistia._mediaDataPromises == null) {
3447
3450
  _utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.Wistia._mediaDataPromises = {};
3448
3451
  }
3452
+ if (_utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.Wistia._liveStreamPollingPromises == null) {
3453
+ _utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.Wistia._liveStreamPollingPromises = {};
3454
+ }
3449
3455
  var Wistia2 = _utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.Wistia;
3450
3456
  }
3451
3457
  ),
@@ -8388,7 +8394,7 @@ var __webpack_modules__ = {
8388
8394
  var PROD_SSL_EMBED_HOST = "embed-ssl.wistia.com";
8389
8395
  var PROD_FASTLY_SSL_HOST = "embed-fastly.wistia.com";
8390
8396
  var SSL_EMBED_HOST = "embed-ssl.wistia.com";
8391
- var TAGGED_VERSION = "0.0.30";
8397
+ var TAGGED_VERSION = "0.0.32";
8392
8398
  var DEFAULT_PROTOCOL = function() {
8393
8399
  if (typeof window !== "undefined" && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z === window && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.location) {
8394
8400
  return utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.location.protocol;
@@ -9542,14 +9548,6 @@ var __webpack_modules__ = {
9542
9548
  }
9543
9549
  return ("string" === r ? String : Number)(t);
9544
9550
  }
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
9551
  var fetchMedia = function fetchMedia2(hashedId) {
9554
9552
  var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
9555
9553
  return new Promise(function(resolve, reject) {
@@ -13167,7 +13165,7 @@ var WistiaPlayer = /* @__PURE__ */ function(_HTMLElement) {
13167
13165
  }
13168
13166
  /**
13169
13167
  * Getter. Returns all defined plugins.
13170
- * @returns {Plugin} returns object of defined plugins. Please note this may return an
13168
+ * @returns {PluginInstances} returns object of defined plugins. Please note this may return an
13171
13169
  * empty object if not plugins have yet been defined.
13172
13170
  */
13173
13171
  }, {
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.32",
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.32"
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",