@wistia/wistia-player-react 0.0.39 → 0.0.41
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.
- package/dist/cjs/WistiaPlayer.cjs +5 -4
- package/dist/cjs/types/src/WistiaPlayer.d.ts +2 -0
- package/dist/cjs/types/src/WistiaPlayer.d.ts.map +1 -1
- package/dist/mjs/WistiaPlayer.mjs +1 -1
- package/dist/mjs/{WistiaPlayerWrapper-K6D725IL.mjs → WistiaPlayerWrapper-2WYPMK2U.mjs} +1 -1
- package/dist/mjs/types/src/WistiaPlayer.d.ts +2 -0
- package/dist/mjs/types/src/WistiaPlayer.d.ts.map +1 -1
- package/dist/mjs/{wistia-player-OUPD574U.mjs → wistia-player-I6KOSIKG.mjs} +5 -4
- package/package.json +2 -2
|
@@ -9330,7 +9330,7 @@ var init_wistia_player = __esm({
|
|
|
9330
9330
|
var PROD_SSL_EMBED_HOST = "embed-ssl.wistia.com";
|
|
9331
9331
|
var PROD_FASTLY_SSL_HOST = "embed-fastly.wistia.com";
|
|
9332
9332
|
var SSL_EMBED_HOST = "embed-ssl.wistia.com";
|
|
9333
|
-
var TAGGED_VERSION = "0.0.
|
|
9333
|
+
var TAGGED_VERSION = "0.0.41";
|
|
9334
9334
|
var DEFAULT_PROTOCOL = function() {
|
|
9335
9335
|
if (typeof window !== "undefined" && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z === window && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.location) {
|
|
9336
9336
|
return utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.location.protocol;
|
|
@@ -14597,15 +14597,16 @@ var init_wistia_player = __esm({
|
|
|
14597
14597
|
value: function() {
|
|
14598
14598
|
var _requestFullscreen = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee17() {
|
|
14599
14599
|
var _this$api56, _this$api56$_impl, _this8 = this;
|
|
14600
|
-
var parent2, wrapper;
|
|
14600
|
+
var isMobile, parent2, wrapper;
|
|
14601
14601
|
return _regeneratorRuntime().wrap(function _callee17$(_context17) {
|
|
14602
14602
|
while (1) switch (_context17.prev = _context17.next) {
|
|
14603
14603
|
case 0:
|
|
14604
|
+
isMobile = (0, _utilities_detect_js__WEBPACK_IMPORTED_MODULE_6__.GS)();
|
|
14604
14605
|
if (this.useWebComponent && this.parentNode) {
|
|
14605
14606
|
parent2 = this.parentNode;
|
|
14606
14607
|
parent2.wistiaFullscreenContainer = true;
|
|
14607
14608
|
_classPrivateSetter(_WistiaPlayer_brand, _set_usingFullscreenContainer, this, true);
|
|
14608
|
-
} else if (this.parentNode) {
|
|
14609
|
+
} else if (this.parentNode && !isMobile) {
|
|
14609
14610
|
wrapper = document.createElement("div");
|
|
14610
14611
|
wrapper.wistiaFullscreenContainer = true;
|
|
14611
14612
|
_classPrivateSetter(_WistiaPlayer_brand, _set_usingFullscreenContainer, this, true);
|
|
@@ -14623,7 +14624,7 @@ var init_wistia_player = __esm({
|
|
|
14623
14624
|
_this8.api.chrome.style.width = "100%";
|
|
14624
14625
|
}
|
|
14625
14626
|
}));
|
|
14626
|
-
case
|
|
14627
|
+
case 5:
|
|
14627
14628
|
case "end":
|
|
14628
14629
|
return _context17.stop();
|
|
14629
14630
|
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type { FunctionComponent } from 'react';
|
|
2
|
+
import type { WistiaPlayer as WistiaPlayerWC } from '@wistia/wistia-player';
|
|
2
3
|
import type { WistiaPlayerProps } from '../types/index.ts';
|
|
4
|
+
export type WistiaPlayerElement = WistiaPlayerWC;
|
|
3
5
|
export declare const WistiaPlayer: FunctionComponent<WistiaPlayerProps>;
|
|
4
6
|
//# sourceMappingURL=WistiaPlayer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WistiaPlayer.d.ts","sourceRoot":"","sources":["../../../../src/WistiaPlayer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAO,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"WistiaPlayer.d.ts","sourceRoot":"","sources":["../../../../src/WistiaPlayer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAO,MAAM,OAAO,CAAC;AAEpD,OAAO,KAAK,EAAE,YAAY,IAAI,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAG5E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAE3D,MAAM,MAAM,mBAAmB,GAAG,cAAc,CAAC;AASjD,eAAO,MAAM,YAAY,EAoCpB,iBAAiB,CAAC,iBAAiB,CAAC,CAAC"}
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
import { forwardRef, Suspense, lazy } from "react";
|
|
8
8
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
var WistiaPlayerWrapper = lazy(
|
|
10
|
-
async () => import("./WistiaPlayerWrapper-
|
|
10
|
+
async () => import("./WistiaPlayerWrapper-2WYPMK2U.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-
|
|
25
|
+
void import("./wistia-player-I6KOSIKG.mjs");
|
|
26
26
|
void customElements.whenDefined("wistia-player").then(() => {
|
|
27
27
|
setIsWistiaPlayerDefined(true);
|
|
28
28
|
});
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type { FunctionComponent } from 'react';
|
|
2
|
+
import type { WistiaPlayer as WistiaPlayerWC } from '@wistia/wistia-player';
|
|
2
3
|
import type { WistiaPlayerProps } from '../types/index.ts';
|
|
4
|
+
export type WistiaPlayerElement = WistiaPlayerWC;
|
|
3
5
|
export declare const WistiaPlayer: FunctionComponent<WistiaPlayerProps>;
|
|
4
6
|
//# sourceMappingURL=WistiaPlayer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WistiaPlayer.d.ts","sourceRoot":"","sources":["../../../../src/WistiaPlayer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAO,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"WistiaPlayer.d.ts","sourceRoot":"","sources":["../../../../src/WistiaPlayer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAO,MAAM,OAAO,CAAC;AAEpD,OAAO,KAAK,EAAE,YAAY,IAAI,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAG5E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAE3D,MAAM,MAAM,mBAAmB,GAAG,cAAc,CAAC;AASjD,eAAO,MAAM,YAAY,EAoCpB,iBAAiB,CAAC,iBAAiB,CAAC,CAAC"}
|
|
@@ -8402,7 +8402,7 @@ var __webpack_modules__ = {
|
|
|
8402
8402
|
var PROD_SSL_EMBED_HOST = "embed-ssl.wistia.com";
|
|
8403
8403
|
var PROD_FASTLY_SSL_HOST = "embed-fastly.wistia.com";
|
|
8404
8404
|
var SSL_EMBED_HOST = "embed-ssl.wistia.com";
|
|
8405
|
-
var TAGGED_VERSION = "0.0.
|
|
8405
|
+
var TAGGED_VERSION = "0.0.41";
|
|
8406
8406
|
var DEFAULT_PROTOCOL = function() {
|
|
8407
8407
|
if (typeof window !== "undefined" && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z === window && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.location) {
|
|
8408
8408
|
return utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.location.protocol;
|
|
@@ -14131,15 +14131,16 @@ var WistiaPlayer = /* @__PURE__ */ function(_HTMLElement) {
|
|
|
14131
14131
|
value: function() {
|
|
14132
14132
|
var _requestFullscreen = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime().mark(function _callee17() {
|
|
14133
14133
|
var _this$api56, _this$api56$_impl, _this8 = this;
|
|
14134
|
-
var parent2, wrapper;
|
|
14134
|
+
var isMobile, parent2, wrapper;
|
|
14135
14135
|
return _regeneratorRuntime().wrap(function _callee17$(_context17) {
|
|
14136
14136
|
while (1) switch (_context17.prev = _context17.next) {
|
|
14137
14137
|
case 0:
|
|
14138
|
+
isMobile = (0, _utilities_detect_js__WEBPACK_IMPORTED_MODULE_6__.GS)();
|
|
14138
14139
|
if (this.useWebComponent && this.parentNode) {
|
|
14139
14140
|
parent2 = this.parentNode;
|
|
14140
14141
|
parent2.wistiaFullscreenContainer = true;
|
|
14141
14142
|
_classPrivateSetter(_WistiaPlayer_brand, _set_usingFullscreenContainer, this, true);
|
|
14142
|
-
} else if (this.parentNode) {
|
|
14143
|
+
} else if (this.parentNode && !isMobile) {
|
|
14143
14144
|
wrapper = document.createElement("div");
|
|
14144
14145
|
wrapper.wistiaFullscreenContainer = true;
|
|
14145
14146
|
_classPrivateSetter(_WistiaPlayer_brand, _set_usingFullscreenContainer, this, true);
|
|
@@ -14157,7 +14158,7 @@ var WistiaPlayer = /* @__PURE__ */ function(_HTMLElement) {
|
|
|
14157
14158
|
_this8.api.chrome.style.width = "100%";
|
|
14158
14159
|
}
|
|
14159
14160
|
}));
|
|
14160
|
-
case
|
|
14161
|
+
case 5:
|
|
14161
14162
|
case "end":
|
|
14162
14163
|
return _context17.stop();
|
|
14163
14164
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wistia/wistia-player-react",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.41",
|
|
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.
|
|
48
|
+
"@wistia/wistia-player": "0.0.41"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@babel/core": "^7.25.2",
|