@wistia/wistia-player 0.7.6 → 0.7.8
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type SentryProductType = 'carousel' | 'channel' | 'dynamicImport' | 'form' | 'globalListener' | 'mediaPlayback' | 'other' | 'player' | 'playlist' | 'relatedMedia' | 'transcript';
|
|
1
|
+
export type SentryProductType = 'carousel' | 'channel' | 'dynamicImport' | 'form' | 'globalListener' | 'hlsPlayback' | 'mediaPlayback' | 'other' | 'player' | 'playlist' | 'relatedMedia' | 'transcript';
|
|
2
2
|
export declare const initializeSentry: () => void;
|
|
3
3
|
type ReportErrorDetails = Record<string, string> & {
|
|
4
4
|
url?: never;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sentryUtils.d.ts","sourceRoot":"","sources":["../../../../../src/utilities/sentryUtils.ts"],"names":[],"mappings":"AAOA,MAAM,MAAM,iBAAiB,GACzB,UAAU,GACV,SAAS,GACT,eAAe,GACf,MAAM,GACN,gBAAgB,GAChB,eAAe,GACf,OAAO,GACP,QAAQ,GACR,UAAU,GACV,cAAc,GACd,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"sentryUtils.d.ts","sourceRoot":"","sources":["../../../../../src/utilities/sentryUtils.ts"],"names":[],"mappings":"AAOA,MAAM,MAAM,iBAAiB,GACzB,UAAU,GACV,SAAS,GACT,eAAe,GACf,MAAM,GACN,gBAAgB,GAChB,aAAa,GACb,eAAe,GACf,OAAO,GACP,QAAQ,GACR,UAAU,GACV,cAAc,GACd,YAAY,CAAC;AA2FjB,eAAO,MAAM,gBAAgB,QAAO,IAyBnC,CAAC;AAEF,KAAK,kBAAkB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG;IACjD,GAAG,CAAC,EAAE,KAAK,CAAC;CACb,CAAC;AAEF,eAAO,MAAM,WAAW,GACtB,SAAS,iBAAiB,EAC1B,OAAO,KAAK,EACZ,UAAU,kBAAkB,KAC3B,IA4DF,CAAC;AAgCF,eAAO,MAAM,qBAAqB,QAAO,IAKxC,CAAC;AAEF,eAAO,MAAM,kCAAkC,QAAO,IAKrD,CAAC"}
|
package/dist/wistia-player.js
CHANGED
|
@@ -2851,6 +2851,14 @@ var getSampleRatesByProductType = function getSampleRatesByProductType(productTy
|
|
|
2851
2851
|
// eslint-disable-next-line @typescript-eslint/no-magic-numbers
|
|
2852
2852
|
return 0.001;
|
|
2853
2853
|
}
|
|
2854
|
+
if (productType === 'hlsPlayback') {
|
|
2855
|
+
// HLS fatals were previously lumped into the heavily-sampled mediaPlayback
|
|
2856
|
+
// bucket, so we saw far fewer than expected. I expect we'll have a lot of these,
|
|
2857
|
+
// so lets sample them heavily but not quite as much as `mediaPlayback`
|
|
2858
|
+
//
|
|
2859
|
+
// eslint-disable-next-line @typescript-eslint/no-magic-numbers
|
|
2860
|
+
return 0.01;
|
|
2861
|
+
}
|
|
2854
2862
|
return 1;
|
|
2855
2863
|
};
|
|
2856
2864
|
var IS_DEV_ENV = "production" === 'development';
|
|
@@ -7329,8 +7337,8 @@ var PROD_EMBED_HOST = 'embed.wistia.com';
|
|
|
7329
7337
|
var PROD_SSL_EMBED_HOST = 'embed-ssl.wistia.com';
|
|
7330
7338
|
var PROD_FASTLY_SSL_HOST = 'embed-fastly.wistia.com';
|
|
7331
7339
|
var SSL_EMBED_HOST = "embed-ssl.wistia.com";
|
|
7332
|
-
var TAGGED_VERSION = "0.7.
|
|
7333
|
-
var CURRENT_SHA = "
|
|
7340
|
+
var TAGGED_VERSION = "0.7.8" || 0;
|
|
7341
|
+
var CURRENT_SHA = "fedb4eec00711078f3d81f791782716ff305719b" || 0;
|
|
7334
7342
|
var DEFAULT_PROTOCOL = function () {
|
|
7335
7343
|
if (typeof window !== 'undefined' && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__/* .root */ .z === window && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__/* .root */ .z.location) {
|
|
7336
7344
|
return utilities_root_js__WEBPACK_IMPORTED_MODULE_0__/* .root */ .z.location.protocol;
|
|
@@ -9711,7 +9719,7 @@ var setViewerPreference = function setViewerPreference(preference, value) {
|
|
|
9711
9719
|
/* harmony export */ cG: () => (/* binding */ elemWidth),
|
|
9712
9720
|
/* harmony export */ lj: () => (/* binding */ elemInDom)
|
|
9713
9721
|
/* harmony export */ });
|
|
9714
|
-
/* unused harmony exports elemHtml, getCssTags, execCssTags, removeCssTags, elemFromObject, elemToObject, elemClone, elemAppend, elemPrepend, elemBefore, elemAfter, elemRemove, elemRemoveClass, elemAddClass, elemHasClass, elemClasses, elemStyle, propsWithVendorPrefixes, getComputedStyle, elemHeight, elemContainsOffset, elemScrollOffset, elemIsHidden, elemIsDescendantOf, elemAncestorWithClass, elemAncestorHasClass, elemAncestors, elemIsInside, elemAnimate, elemBind, elemUnbind, elemUnbindAll, elemUnbindAllInside, elemBindKey, elemRebind, elemBindOnce, elemTrigger, fullscreenElement, elemRequestFullscreen, elemCancelFullscreen, elemStripEventAttributes, elemMutationObserver, docScrollTop, docScrollLeft, safeRequestAnimationFrame, formInputIsFocused, currentEventSource, inUserEventContext, getLastActiveEventAt */
|
|
9722
|
+
/* unused harmony exports elemHtml, getCssTags, execCssTags, removeCssTags, elemFromObject, elemToObject, elemClone, elemAppend, elemPrepend, elemBefore, elemAfter, elemRemove, elemRemoveClass, elemAddClass, elemHasClass, elemClasses, elemStyle, propsWithVendorPrefixes, getComputedStyle, elemHeight, elemContainsOffset, elemScrollOffset, elemIsHidden, getDeepActiveElement, elemIsDescendantOf, elemAncestorWithClass, elemAncestorHasClass, elemAncestors, elemIsInside, elemAnimate, elemBind, elemUnbind, elemUnbindAll, elemUnbindAllInside, elemBindKey, elemRebind, elemBindOnce, elemTrigger, fullscreenElement, elemRequestFullscreen, elemCancelFullscreen, elemStripEventAttributes, elemMutationObserver, docScrollTop, docScrollLeft, safeRequestAnimationFrame, formInputIsFocused, currentEventSource, inUserEventContext, getLastActiveEventAt */
|
|
9715
9723
|
/* harmony import */ var utilities_obj_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(731);
|
|
9716
9724
|
/* harmony import */ var utilities_pageLoaded_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9562);
|
|
9717
9725
|
/* harmony import */ var utilities_detect_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7231);
|
|
@@ -10252,6 +10260,22 @@ var elemInDom = function elemInDom(elem) {
|
|
|
10252
10260
|
}
|
|
10253
10261
|
return false;
|
|
10254
10262
|
};
|
|
10263
|
+
|
|
10264
|
+
// Returns the truly focused element, descending through any number of nested
|
|
10265
|
+
// shadow roots. document.activeElement only reports the active element within
|
|
10266
|
+
// its own tree scope; when focus lives inside a (possibly nested) shadow DOM —
|
|
10267
|
+
// e.g. a <wistia-player> nested inside another web component — it reports the
|
|
10268
|
+
// outermost host. Walking activeElement through each shadowRoot gives us the
|
|
10269
|
+
// real leaf element so containment checks work regardless of nesting depth.
|
|
10270
|
+
var getDeepActiveElement = function getDeepActiveElement() {
|
|
10271
|
+
var root = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : document;
|
|
10272
|
+
var active = root.activeElement;
|
|
10273
|
+
while ((_active = active) !== null && _active !== void 0 && (_active$shadowRoot = _active.shadowRoot) !== null && _active$shadowRoot !== void 0 && _active$shadowRoot.activeElement) {
|
|
10274
|
+
var _active, _active$shadowRoot;
|
|
10275
|
+
active = active.shadowRoot.activeElement;
|
|
10276
|
+
}
|
|
10277
|
+
return active;
|
|
10278
|
+
};
|
|
10255
10279
|
var elemIsDescendantOf = function elemIsDescendantOf(elem, target) {
|
|
10256
10280
|
var ancestors = elemAncestors(elem);
|
|
10257
10281
|
for (var i = 0; i < ancestors.length; i++) {
|
|
@@ -10492,6 +10516,16 @@ var elemRequestFullscreen = function elemRequestFullscreen(elem) {
|
|
|
10492
10516
|
wlog.notice(errorMessage);
|
|
10493
10517
|
return Promise.reject(new Error(errorMessage));
|
|
10494
10518
|
}
|
|
10519
|
+
// WebKit throws InvalidStateError if fullscreen isn't currently
|
|
10520
|
+
// possible (no video track, fullscreen restrictions, expired user
|
|
10521
|
+
// gesture), even when metadata has loaded. webkitSupportsFullscreen
|
|
10522
|
+
// reflects that exact internal check. It's undefined on non-video
|
|
10523
|
+
// elements, so only an explicit false blocks the call.
|
|
10524
|
+
if (elem.webkitSupportsFullscreen === false) {
|
|
10525
|
+
var _errorMessage = 'webkitEnterFullscreen is not currently supported for this element';
|
|
10526
|
+
wlog.notice(_errorMessage);
|
|
10527
|
+
return Promise.reject(new Error(_errorMessage));
|
|
10528
|
+
}
|
|
10495
10529
|
elem.webkitEnterFullscreen();
|
|
10496
10530
|
return Promise.resolve();
|
|
10497
10531
|
}
|