mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-05 02:39:46 +02:00
Update dependabot
This commit is contained in:
parent
56a24d4781
commit
024b79d882
142 changed files with 15927 additions and 1513 deletions
162
node_modules/video.js/core.es.js
generated
vendored
162
node_modules/video.js/core.es.js
generated
vendored
|
@ -1,6 +1,6 @@
|
|||
/**
|
||||
* @license
|
||||
* Video.js 8.17.3 <http://videojs.com/>
|
||||
* Video.js 8.17.4 <http://videojs.com/>
|
||||
* Copyright Brightcove, Inc. <https://www.brightcove.com/>
|
||||
* Available under Apache License Version 2.0
|
||||
* <https://github.com/videojs/video.js/blob/main/LICENSE>
|
||||
|
@ -12,11 +12,10 @@
|
|||
|
||||
import window from 'global/window';
|
||||
import document$1 from 'global/document';
|
||||
import safeParseTuple from 'safe-json-parse/tuple';
|
||||
import XHR from '@videojs/xhr';
|
||||
import vtt from 'videojs-vtt.js';
|
||||
|
||||
var version = "8.17.3";
|
||||
var version = "8.17.4";
|
||||
|
||||
/**
|
||||
* An Object that contains lifecycle hooks as keys which point to an array
|
||||
|
@ -1169,7 +1168,7 @@ function removeClass(element, ...classesToRemove) {
|
|||
/**
|
||||
* The callback definition for toggleClass.
|
||||
*
|
||||
* @callback module:dom~PredicateCallback
|
||||
* @callback PredicateCallback
|
||||
* @param {Element} element
|
||||
* The DOM element of the Component.
|
||||
*
|
||||
|
@ -1178,8 +1177,9 @@ function removeClass(element, ...classesToRemove) {
|
|||
*
|
||||
* @return {boolean|undefined}
|
||||
* If `true` is returned, the `classToToggle` will be added to the
|
||||
* `element`. If `false`, the `classToToggle` will be removed from
|
||||
* the `element`. If `undefined`, the callback will be ignored.
|
||||
* `element`, but not removed. If `false`, the `classToToggle` will be removed from
|
||||
* the `element`, but not added. If `undefined`, the callback will be ignored.
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -1192,7 +1192,7 @@ function removeClass(element, ...classesToRemove) {
|
|||
* @param {string} classToToggle
|
||||
* The class that should be toggled.
|
||||
*
|
||||
* @param {boolean|module:dom~PredicateCallback} [predicate]
|
||||
* @param {boolean|PredicateCallback} [predicate]
|
||||
* See the return value for {@link module:dom~PredicateCallback}
|
||||
*
|
||||
* @return {Element}
|
||||
|
@ -3618,7 +3618,6 @@ class Component {
|
|||
* @param {Function} fn
|
||||
* The function to call with `EventTarget`s
|
||||
*/
|
||||
on(type, fn) {}
|
||||
|
||||
/**
|
||||
* Removes an `event listener` for a specific event from an instance of `EventTarget`.
|
||||
|
@ -3631,7 +3630,6 @@ class Component {
|
|||
* @param {Function} [fn]
|
||||
* The function to remove. If not specified, all listeners managed by Video.js will be removed.
|
||||
*/
|
||||
off(type, fn) {}
|
||||
|
||||
/**
|
||||
* This function will add an `event listener` that gets triggered only once. After the
|
||||
|
@ -3644,7 +3642,6 @@ class Component {
|
|||
* @param {Function} fn
|
||||
* The function to be called once for each event name.
|
||||
*/
|
||||
one(type, fn) {}
|
||||
|
||||
/**
|
||||
* This function will add an `event listener` that gets triggered only once and is
|
||||
|
@ -3658,7 +3655,6 @@ class Component {
|
|||
* @param {Function} fn
|
||||
* The function to be called once for each event name.
|
||||
*/
|
||||
any(type, fn) {}
|
||||
|
||||
/**
|
||||
* This function causes an event to happen. This will then cause any `event listeners`
|
||||
|
@ -3679,7 +3675,6 @@ class Component {
|
|||
* @param {Object} [hash]
|
||||
* Optionally extra argument to pass through to an event listener
|
||||
*/
|
||||
trigger(event, hash) {}
|
||||
|
||||
/**
|
||||
* Dispose of the `Component` and all child components.
|
||||
|
@ -4391,10 +4386,10 @@ class Component {
|
|||
* - `classToToggle` gets removed when {@link Component#hasClass} would return true.
|
||||
*
|
||||
* @param {string} classToToggle
|
||||
* The class to add or remove based on (@link Component#hasClass}
|
||||
* The class to add or remove. Passed to DOMTokenList's toggle()
|
||||
*
|
||||
* @param {boolean|Dom~predicate} [predicate]
|
||||
* An {@link Dom~predicate} function or a boolean
|
||||
* @param {boolean|Dom.PredicateCallback} [predicate]
|
||||
* A boolean or function that returns a boolean. Passed to DOMTokenList's toggle().
|
||||
*/
|
||||
toggleClass(classToToggle, predicate) {
|
||||
toggleClass(this.el_, classToToggle, predicate);
|
||||
|
@ -5101,7 +5096,7 @@ class Component {
|
|||
*/
|
||||
requestNamedAnimationFrame(name, fn) {
|
||||
if (this.namedRafs_.has(name)) {
|
||||
return;
|
||||
this.cancelNamedAnimationFrame(name);
|
||||
}
|
||||
this.clearTimersOnDispose_();
|
||||
fn = bind_(this, fn);
|
||||
|
@ -10084,24 +10079,26 @@ class SpatialNavigation extends EventTarget {
|
|||
this.player_.on('focusin', this.handlePlayerFocus_.bind(this));
|
||||
this.player_.on('focusout', this.handlePlayerBlur_.bind(this));
|
||||
this.isListening_ = true;
|
||||
this.player_.errorDisplay.on('aftermodalfill', () => {
|
||||
this.updateFocusableComponents();
|
||||
if (this.focusableComponents.length) {
|
||||
// The modal has focusable components:
|
||||
if (this.player_.errorDisplay) {
|
||||
this.player_.errorDisplay.on('aftermodalfill', () => {
|
||||
this.updateFocusableComponents();
|
||||
if (this.focusableComponents.length) {
|
||||
// The modal has focusable components:
|
||||
|
||||
if (this.focusableComponents.length > 1) {
|
||||
// The modal has close button + some additional buttons.
|
||||
// Focusing first additional button:
|
||||
if (this.focusableComponents.length > 1) {
|
||||
// The modal has close button + some additional buttons.
|
||||
// Focusing first additional button:
|
||||
|
||||
this.focusableComponents[1].focus();
|
||||
} else {
|
||||
// The modal has only close button,
|
||||
// Focusing it:
|
||||
this.focusableComponents[1].focus();
|
||||
} else {
|
||||
// The modal has only close button,
|
||||
// Focusing it:
|
||||
|
||||
this.focusableComponents[0].focus();
|
||||
this.focusableComponents[0].focus();
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -11405,6 +11402,45 @@ class TextTrackDisplay extends Component {
|
|||
}
|
||||
this.updateForTrack(descriptionsTrack);
|
||||
}
|
||||
if (!window.CSS.supports('inset', '10px')) {
|
||||
const textTrackDisplay = this.el_;
|
||||
const vjsTextTrackCues = textTrackDisplay.querySelectorAll('.vjs-text-track-cue');
|
||||
const controlBarHeight = this.player_.controlBar.el_.getBoundingClientRect().height;
|
||||
const playerHeight = this.player_.el_.getBoundingClientRect().height;
|
||||
|
||||
// Clear inline style before getting actual height of textTrackDisplay
|
||||
textTrackDisplay.style = '';
|
||||
|
||||
// textrack style updates, this styles are required to be inline
|
||||
tryUpdateStyle(textTrackDisplay, 'position', 'relative');
|
||||
tryUpdateStyle(textTrackDisplay, 'height', playerHeight - controlBarHeight + 'px');
|
||||
tryUpdateStyle(textTrackDisplay, 'top', 'unset');
|
||||
if (IS_SMART_TV) {
|
||||
tryUpdateStyle(textTrackDisplay, 'bottom', playerHeight + 'px');
|
||||
} else {
|
||||
tryUpdateStyle(textTrackDisplay, 'bottom', '0px');
|
||||
}
|
||||
|
||||
// vjsTextTrackCue style updates
|
||||
if (vjsTextTrackCues.length > 0) {
|
||||
vjsTextTrackCues.forEach(vjsTextTrackCue => {
|
||||
// verify if inset styles are inline
|
||||
if (vjsTextTrackCue.style.inset) {
|
||||
const insetStyles = vjsTextTrackCue.style.inset.split(' ');
|
||||
|
||||
// expected value is always 3
|
||||
if (insetStyles.length === 3) {
|
||||
Object.assign(vjsTextTrackCue.style, {
|
||||
top: insetStyles[0],
|
||||
right: insetStyles[1],
|
||||
bottom: insetStyles[2],
|
||||
left: 'unset'
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -26295,12 +26331,12 @@ class Player extends Component {
|
|||
// Check if data-setup attr exists.
|
||||
if (dataSetup !== null) {
|
||||
// Parse options JSON
|
||||
// If empty string, make it a parsable json object.
|
||||
const [err, data] = safeParseTuple(dataSetup || '{}');
|
||||
if (err) {
|
||||
log.error(err);
|
||||
try {
|
||||
// If empty string, make it a parsable json object.
|
||||
Object.assign(tagOptions, JSON.parse(dataSetup || '{}'));
|
||||
} catch (e) {
|
||||
log.error('data-setup', e);
|
||||
}
|
||||
Object.assign(tagOptions, data);
|
||||
}
|
||||
Object.assign(baseOptions, tagOptions);
|
||||
|
||||
|
@ -26382,6 +26418,34 @@ class Player extends Component {
|
|||
*/
|
||||
this.trigger('playbackrateschange');
|
||||
}
|
||||
|
||||
/**
|
||||
* Reports whether or not a player has a plugin available.
|
||||
*
|
||||
* This does not report whether or not the plugin has ever been initialized
|
||||
* on this player. For that, [usingPlugin]{@link Player#usingPlugin}.
|
||||
*
|
||||
* @method hasPlugin
|
||||
* @param {string} name
|
||||
* The name of a plugin.
|
||||
*
|
||||
* @return {boolean}
|
||||
* Whether or not this player has the requested plugin available.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Reports whether or not a player is using a plugin by name.
|
||||
*
|
||||
* For basic plugins, this only reports whether the plugin has _ever_ been
|
||||
* initialized on this player.
|
||||
*
|
||||
* @method Player#usingPlugin
|
||||
* @param {string} name
|
||||
* The name of a plugin.
|
||||
*
|
||||
* @return {boolean}
|
||||
* Whether or not this player is using the requested plugin.
|
||||
*/
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -26558,34 +26622,6 @@ TECH_EVENTS_RETRIGGER.forEach(function (event) {
|
|||
* @type {Event}
|
||||
*/
|
||||
|
||||
/**
|
||||
* Reports whether or not a player has a plugin available.
|
||||
*
|
||||
* This does not report whether or not the plugin has ever been initialized
|
||||
* on this player. For that, [usingPlugin]{@link Player#usingPlugin}.
|
||||
*
|
||||
* @method Player#hasPlugin
|
||||
* @param {string} name
|
||||
* The name of a plugin.
|
||||
*
|
||||
* @return {boolean}
|
||||
* Whether or not this player has the requested plugin available.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Reports whether or not a player is using a plugin by name.
|
||||
*
|
||||
* For basic plugins, this only reports whether the plugin has _ever_ been
|
||||
* initialized on this player.
|
||||
*
|
||||
* @method Player#usingPlugin
|
||||
* @param {string} name
|
||||
* The name of a plugin.
|
||||
*
|
||||
* @return {boolean}
|
||||
* Whether or not this player is using the requested plugin.
|
||||
*/
|
||||
|
||||
Component.registerComponent('Player', Player);
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue