@wistia/wistia-player-react 0.7.27 → 0.7.28
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/CHANGELOG.md +11 -0
- package/dist/cjs/WistiaPlayer.cjs +17 -3
- package/dist/mjs/WistiaPlayer.mjs +1 -1
- package/dist/mjs/{WistiaPlayerWrapper-GL6S24UA.mjs → WistiaPlayerWrapper-XPOTTKXB.mjs} +1 -1
- package/dist/mjs/{wistia-player-XFJRZXHQ.mjs → wistia-player-3ARLNU4R.mjs} +17 -3
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @wistia/wistia-player-react
|
|
2
2
|
|
|
3
|
+
## 0.7.28
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 7073c21: Viewer problem reports now include the player build sha, which Wistia scripts are on the page, the embed type, native fetch/XHR checks, CSP violations, consent state, a timeline of recent player events, recent hls.js errors, and the ids of errors already sent to Sentry. The report form no longer re-sends while a send is in flight.
|
|
8
|
+
- c86e4dd: Adding `?wistia_report` to a page URL shows a Wistia support diagnostics bar at the bottom of the page. Choosing Send files a page-wide problem report covering every Wistia embed on the page, including ones that never initialized, and shows a short reference to include when replying to Wistia support.
|
|
9
|
+
- Updated dependencies [c6b37dc]
|
|
10
|
+
- Updated dependencies [7073c21]
|
|
11
|
+
- Updated dependencies [c86e4dd]
|
|
12
|
+
- @wistia/wistia-player@0.7.28
|
|
13
|
+
|
|
3
14
|
## 0.7.27
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
|
@@ -3709,6 +3709,20 @@ var init_wistia_player = __esm({
|
|
|
3709
3709
|
const onGlobal = _globalBindAndTrigger_js__WEBPACK_IMPORTED_MODULE_1__.tJ;
|
|
3710
3710
|
const errorsCapturedBeforeSentryClientInit = [];
|
|
3711
3711
|
const MAX_PENDING_ERRORS = 50;
|
|
3712
|
+
const MAX_REMEMBERED_EVENT_IDS = 10;
|
|
3713
|
+
const recentSentryEventIds = [];
|
|
3714
|
+
const getRecentSentryEventIds = () => {
|
|
3715
|
+
return recentSentryEventIds.slice();
|
|
3716
|
+
};
|
|
3717
|
+
const rememberSentryEventId = (eventId) => {
|
|
3718
|
+
if (typeof eventId !== "string" || eventId === "") {
|
|
3719
|
+
return;
|
|
3720
|
+
}
|
|
3721
|
+
recentSentryEventIds.push(eventId);
|
|
3722
|
+
if (recentSentryEventIds.length > MAX_REMEMBERED_EVENT_IDS) {
|
|
3723
|
+
recentSentryEventIds.shift();
|
|
3724
|
+
}
|
|
3725
|
+
};
|
|
3712
3726
|
const configureSentry = () => {
|
|
3713
3727
|
if ((0, _wistia_type_guards__WEBPACK_IMPORTED_MODULE_0__.gD)(window.Sentry) || (0, _wistia_type_guards__WEBPACK_IMPORTED_MODULE_0__.gD)(window.Sentry.BrowserClient) || (0, _wistia_type_guards__WEBPACK_IMPORTED_MODULE_0__.gD)(window.Sentry.makeFetchTransport) || (0, _wistia_type_guards__WEBPACK_IMPORTED_MODULE_0__.gD)(window.Sentry.defaultStackParser) || (0, _wistia_type_guards__WEBPACK_IMPORTED_MODULE_0__.gD)(window.Sentry.Scope)) {
|
|
3714
3728
|
return;
|
|
@@ -3806,7 +3820,7 @@ var init_wistia_player = __esm({
|
|
|
3806
3820
|
_wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_3__2.s._sentryScope.setTags(details);
|
|
3807
3821
|
}
|
|
3808
3822
|
_wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_3__2.s._sentryScope.setTag("url", window.location.href);
|
|
3809
|
-
_wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_3__2.s._sentryScope.captureException(error);
|
|
3823
|
+
rememberSentryEventId(_wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_3__2.s._sentryScope.captureException(error));
|
|
3810
3824
|
}
|
|
3811
3825
|
} catch (err) {
|
|
3812
3826
|
console.error(err);
|
|
@@ -7805,8 +7819,8 @@ var init_wistia_player = __esm({
|
|
|
7805
7819
|
const PROD_SSL_EMBED_HOST = "embed-ssl.wistia.com";
|
|
7806
7820
|
const PROD_FASTLY_SSL_HOST = "embed-fastly.wistia.com";
|
|
7807
7821
|
const SSL_EMBED_HOST = "embed-ssl.wistia.com";
|
|
7808
|
-
const TAGGED_VERSION = "0.7.
|
|
7809
|
-
const CURRENT_SHA = "
|
|
7822
|
+
const TAGGED_VERSION = "0.7.28";
|
|
7823
|
+
const CURRENT_SHA = "987326165f6b8d582037859d9f76ba214d7595ff";
|
|
7810
7824
|
const DEFAULT_PROTOCOL = (() => {
|
|
7811
7825
|
if (typeof window !== "undefined" && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z === window && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.location) {
|
|
7812
7826
|
return utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.location.protocol;
|
|
@@ -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-
|
|
11
|
+
async () => import("./WistiaPlayerWrapper-XPOTTKXB.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-
|
|
40
|
+
void import("./wistia-player-3ARLNU4R.mjs");
|
|
41
41
|
void customElements.whenDefined("wistia-player").then(() => {
|
|
42
42
|
setIsWistiaPlayerDefined(true);
|
|
43
43
|
});
|
|
@@ -3068,6 +3068,20 @@ var __webpack_modules__ = {
|
|
|
3068
3068
|
const onGlobal = _globalBindAndTrigger_js__WEBPACK_IMPORTED_MODULE_1__.tJ;
|
|
3069
3069
|
const errorsCapturedBeforeSentryClientInit = [];
|
|
3070
3070
|
const MAX_PENDING_ERRORS = 50;
|
|
3071
|
+
const MAX_REMEMBERED_EVENT_IDS = 10;
|
|
3072
|
+
const recentSentryEventIds = [];
|
|
3073
|
+
const getRecentSentryEventIds = () => {
|
|
3074
|
+
return recentSentryEventIds.slice();
|
|
3075
|
+
};
|
|
3076
|
+
const rememberSentryEventId = (eventId) => {
|
|
3077
|
+
if (typeof eventId !== "string" || eventId === "") {
|
|
3078
|
+
return;
|
|
3079
|
+
}
|
|
3080
|
+
recentSentryEventIds.push(eventId);
|
|
3081
|
+
if (recentSentryEventIds.length > MAX_REMEMBERED_EVENT_IDS) {
|
|
3082
|
+
recentSentryEventIds.shift();
|
|
3083
|
+
}
|
|
3084
|
+
};
|
|
3071
3085
|
const configureSentry = () => {
|
|
3072
3086
|
if ((0, _wistia_type_guards__WEBPACK_IMPORTED_MODULE_0__.gD)(window.Sentry) || (0, _wistia_type_guards__WEBPACK_IMPORTED_MODULE_0__.gD)(window.Sentry.BrowserClient) || (0, _wistia_type_guards__WEBPACK_IMPORTED_MODULE_0__.gD)(window.Sentry.makeFetchTransport) || (0, _wistia_type_guards__WEBPACK_IMPORTED_MODULE_0__.gD)(window.Sentry.defaultStackParser) || (0, _wistia_type_guards__WEBPACK_IMPORTED_MODULE_0__.gD)(window.Sentry.Scope)) {
|
|
3073
3087
|
return;
|
|
@@ -3165,7 +3179,7 @@ var __webpack_modules__ = {
|
|
|
3165
3179
|
_wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_3__2.s._sentryScope.setTags(details);
|
|
3166
3180
|
}
|
|
3167
3181
|
_wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_3__2.s._sentryScope.setTag("url", window.location.href);
|
|
3168
|
-
_wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_3__2.s._sentryScope.captureException(error);
|
|
3182
|
+
rememberSentryEventId(_wistia_namespace_ts__WEBPACK_IMPORTED_MODULE_3__2.s._sentryScope.captureException(error));
|
|
3169
3183
|
}
|
|
3170
3184
|
} catch (err) {
|
|
3171
3185
|
console.error(err);
|
|
@@ -7164,8 +7178,8 @@ var __webpack_modules__ = {
|
|
|
7164
7178
|
const PROD_SSL_EMBED_HOST = "embed-ssl.wistia.com";
|
|
7165
7179
|
const PROD_FASTLY_SSL_HOST = "embed-fastly.wistia.com";
|
|
7166
7180
|
const SSL_EMBED_HOST = "embed-ssl.wistia.com";
|
|
7167
|
-
const TAGGED_VERSION = "0.7.
|
|
7168
|
-
const CURRENT_SHA = "
|
|
7181
|
+
const TAGGED_VERSION = "0.7.28";
|
|
7182
|
+
const CURRENT_SHA = "987326165f6b8d582037859d9f76ba214d7595ff";
|
|
7169
7183
|
const DEFAULT_PROTOCOL = (() => {
|
|
7170
7184
|
if (typeof window !== "undefined" && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z === window && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.location) {
|
|
7171
7185
|
return utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.location.protocol;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wistia/wistia-player-react",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.28",
|
|
4
4
|
"packageManager": "yarn@4.18.0",
|
|
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.3",
|
|
49
|
-
"@wistia/wistia-player": "0.7.
|
|
49
|
+
"@wistia/wistia-player": "0.7.28"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"react": ">=18.0.0 <20.0.0",
|
|
@@ -54,14 +54,14 @@
|
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@babel/core": "^8.0.1",
|
|
57
|
-
"@babel/preset-env": "^8.0.
|
|
57
|
+
"@babel/preset-env": "^8.0.7",
|
|
58
58
|
"@babel/preset-react": "^8.0.1",
|
|
59
59
|
"@babel/preset-typescript": "^8.0.1",
|
|
60
60
|
"@types/react": "^19.3.0",
|
|
61
61
|
"babel-plugin-transform-object-hasown": "^1.1.0",
|
|
62
62
|
"esbuild": "^0.28.1",
|
|
63
63
|
"npm-run-all": "^4.1.5",
|
|
64
|
-
"react": "^19.3.
|
|
64
|
+
"react": "^19.3.1",
|
|
65
65
|
"read-package-json": "^7.0.1",
|
|
66
66
|
"typescript": "5.9.3",
|
|
67
67
|
"zx": "^8.8.5"
|