@wistia/wistia-player-react 0.0.79 → 0.0.81

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.
@@ -4569,7 +4569,7 @@ var init_wistia_player = __esm({
4569
4569
  if (!queue || queue.length === 0) {
4570
4570
  return;
4571
4571
  }
4572
- queue.slice(0).forEach(function(item, index) {
4572
+ queue.slice(0).forEach(function(item) {
4573
4573
  if (typeof item === "function") {
4574
4574
  item(_wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_0__.s);
4575
4575
  queue.splice(queue.indexOf(item), 1);
@@ -9664,7 +9664,7 @@ var init_wistia_player = __esm({
9664
9664
  var PROD_SSL_EMBED_HOST = "embed-ssl.wistia.com";
9665
9665
  var PROD_FASTLY_SSL_HOST = "embed-fastly.wistia.com";
9666
9666
  var SSL_EMBED_HOST = "embed-ssl.wistia.com";
9667
- var TAGGED_VERSION = "0.0.79";
9667
+ var TAGGED_VERSION = "0.0.81";
9668
9668
  var DEFAULT_PROTOCOL = function() {
9669
9669
  if (typeof window !== "undefined" && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z === window && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.location) {
9670
9670
  return utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.location.protocol;
@@ -9764,6 +9764,9 @@ var init_wistia_player = __esm({
9764
9764
  }
9765
9765
  return eV1HostWithPort();
9766
9766
  };
9767
+ var isEmbedOnACustomerPage = function isEmbedOnACustomerPage2() {
9768
+ return window.location.href.match(/^http(s)?:\/\/(\S)*.wistia.(io|test|st|com)/gi) === null;
9769
+ };
9767
9770
  }
9768
9771
  ),
9769
9772
  /***/
@@ -7,7 +7,7 @@ import {
7
7
  import { forwardRef, Suspense, lazy, Fragment } from "react";
8
8
  import { jsx, jsxs } from "react/jsx-runtime";
9
9
  var WistiaPlayerWrapper = lazy(
10
- async () => import("./WistiaPlayerWrapper-2YEOIM7T.mjs").then((module) => ({
10
+ async () => import("./WistiaPlayerWrapper-7KQ7MNSV.mjs").then((module) => ({
11
11
  default: module.WistiaPlayerWrapper
12
12
  }))
13
13
  );
@@ -22,7 +22,7 @@ var WistiaPlayerWrapper = forwardRef(
22
22
  setSwatchAspectRatio(ratio);
23
23
  });
24
24
  }
25
- void import("./wistia-player-TD3UGOUY.mjs");
25
+ void import("./wistia-player-X63CUF5C.mjs");
26
26
  void customElements.whenDefined("wistia-player").then(() => {
27
27
  setIsWistiaPlayerDefined(true);
28
28
  });
@@ -3644,7 +3644,7 @@ var __webpack_modules__ = {
3644
3644
  if (!queue || queue.length === 0) {
3645
3645
  return;
3646
3646
  }
3647
- queue.slice(0).forEach(function(item, index) {
3647
+ queue.slice(0).forEach(function(item) {
3648
3648
  if (typeof item === "function") {
3649
3649
  item(_wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_0__.s);
3650
3650
  queue.splice(queue.indexOf(item), 1);
@@ -8739,7 +8739,7 @@ var __webpack_modules__ = {
8739
8739
  var PROD_SSL_EMBED_HOST = "embed-ssl.wistia.com";
8740
8740
  var PROD_FASTLY_SSL_HOST = "embed-fastly.wistia.com";
8741
8741
  var SSL_EMBED_HOST = "embed-ssl.wistia.com";
8742
- var TAGGED_VERSION = "0.0.79";
8742
+ var TAGGED_VERSION = "0.0.81";
8743
8743
  var DEFAULT_PROTOCOL = function() {
8744
8744
  if (typeof window !== "undefined" && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z === window && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.location) {
8745
8745
  return utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.location.protocol;
@@ -8839,6 +8839,9 @@ var __webpack_modules__ = {
8839
8839
  }
8840
8840
  return eV1HostWithPort();
8841
8841
  };
8842
+ var isEmbedOnACustomerPage = function isEmbedOnACustomerPage2() {
8843
+ return window.location.href.match(/^http(s)?:\/\/(\S)*.wistia.(io|test|st|com)/gi) === null;
8844
+ };
8842
8845
  }
8843
8846
  ),
8844
8847
  /***/
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wistia/wistia-player-react",
3
- "version": "0.0.79",
3
+ "version": "0.0.81",
4
4
  "packageManager": "yarn@4.5.3",
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,10 +45,10 @@
45
45
  "start:dev:yalc": "run build:react:dev --watch --yalc"
46
46
  },
47
47
  "dependencies": {
48
- "@wistia/wistia-player": "0.0.79"
48
+ "@wistia/wistia-player": "0.0.81"
49
49
  },
50
50
  "devDependencies": {
51
- "@babel/core": "^7.25.2",
51
+ "@babel/core": "^7.26.0",
52
52
  "@babel/plugin-proposal-class-properties": "^7.18.6",
53
53
  "@babel/plugin-proposal-optional-chaining": "^7.21.0",
54
54
  "@babel/preset-env": "^7.26.0",