@wistia/wistia-player-react 0.1.11 → 0.1.12

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.
@@ -3421,22 +3421,10 @@ var init_wistia_player = __esm({
3421
3421
  var _wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__3(5509);
3422
3422
  var _hosts_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__3(5857);
3423
3423
  var getSampleRatesByProductType = function getSampleRatesByProductType2(productType) {
3424
- switch (productType) {
3425
- case "carousel":
3426
- case "playlist":
3427
- return 1;
3428
- case "channel":
3429
- case "form":
3430
- case "transcript":
3431
- return 1;
3432
- case "mediaPlayback":
3433
- return 1e-3;
3434
- case "globalListener":
3435
- case "other":
3436
- case "player":
3437
- default:
3438
- return 1;
3424
+ if (productType === "mediaPlayback") {
3425
+ return 1e-3;
3439
3426
  }
3427
+ return 1;
3440
3428
  };
3441
3429
  var IS_DEV_ENV = (
3442
3430
  /* unused pure expression or super */
@@ -8292,7 +8280,7 @@ var init_wistia_player = __esm({
8292
8280
  var PROD_SSL_EMBED_HOST = "embed-ssl.wistia.com";
8293
8281
  var PROD_FASTLY_SSL_HOST = "embed-fastly.wistia.com";
8294
8282
  var SSL_EMBED_HOST = "embed-ssl.wistia.com";
8295
- var TAGGED_VERSION2 = "0.1.11";
8283
+ var TAGGED_VERSION2 = "0.1.12";
8296
8284
  var CURRENT_SHA2 = (
8297
8285
  /* unused pure expression or super */
8298
8286
  null
@@ -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-F4HVRU5W.mjs").then((module) => ({
11
+ async () => import("./WistiaPlayerWrapper-YQ7NHCL3.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-FWHMS5NN.mjs");
40
+ void import("./wistia-player-KIC2AKM5.mjs");
41
41
  void customElements.whenDefined("wistia-player").then(() => {
42
42
  setIsWistiaPlayerDefined(true);
43
43
  });
@@ -2568,22 +2568,10 @@ var __webpack_modules__ = {
2568
2568
  var _wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__3(5509);
2569
2569
  var _hosts_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__3(5857);
2570
2570
  var getSampleRatesByProductType = function getSampleRatesByProductType2(productType) {
2571
- switch (productType) {
2572
- case "carousel":
2573
- case "playlist":
2574
- return 1;
2575
- case "channel":
2576
- case "form":
2577
- case "transcript":
2578
- return 1;
2579
- case "mediaPlayback":
2580
- return 1e-3;
2581
- case "globalListener":
2582
- case "other":
2583
- case "player":
2584
- default:
2585
- return 1;
2571
+ if (productType === "mediaPlayback") {
2572
+ return 1e-3;
2586
2573
  }
2574
+ return 1;
2587
2575
  };
2588
2576
  var IS_DEV_ENV = (
2589
2577
  /* unused pure expression or super */
@@ -7439,7 +7427,7 @@ var __webpack_modules__ = {
7439
7427
  var PROD_SSL_EMBED_HOST = "embed-ssl.wistia.com";
7440
7428
  var PROD_FASTLY_SSL_HOST = "embed-fastly.wistia.com";
7441
7429
  var SSL_EMBED_HOST = "embed-ssl.wistia.com";
7442
- var TAGGED_VERSION2 = "0.1.11";
7430
+ var TAGGED_VERSION2 = "0.1.12";
7443
7431
  var CURRENT_SHA2 = (
7444
7432
  /* unused pure expression or super */
7445
7433
  null
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wistia/wistia-player-react",
3
- "version": "0.1.11",
3
+ "version": "0.1.12",
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": [
@@ -46,7 +46,7 @@
46
46
  },
47
47
  "dependencies": {
48
48
  "@wistia/type-guards": "^0.9.1",
49
- "@wistia/wistia-player": "0.1.11"
49
+ "@wistia/wistia-player": "0.1.12"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@babel/core": "^7.27.4",