mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 17:59:55 +02:00
Update node modules
This commit is contained in:
parent
52a013772f
commit
09d8558456
858 changed files with 5466 additions and 544833 deletions
106
node_modules/video.js/core.js
generated
vendored
106
node_modules/video.js/core.js
generated
vendored
|
@ -1,6 +1,6 @@
|
|||
/**
|
||||
* @license
|
||||
* Video.js 8.17.1 <http://videojs.com/>
|
||||
* Video.js 8.17.3 <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>
|
||||
|
@ -26,7 +26,7 @@ var safeParseTuple__default = /*#__PURE__*/_interopDefaultLegacy(safeParseTuple)
|
|||
var XHR__default = /*#__PURE__*/_interopDefaultLegacy(XHR);
|
||||
var vtt__default = /*#__PURE__*/_interopDefaultLegacy(vtt);
|
||||
|
||||
var version = "8.17.1";
|
||||
var version = "8.17.3";
|
||||
|
||||
/**
|
||||
* An Object that contains lifecycle hooks as keys which point to an array
|
||||
|
@ -2181,7 +2181,6 @@ function fixEvent(event) {
|
|||
/* eslint-enable */
|
||||
}
|
||||
}
|
||||
|
||||
event.fixed_ = true;
|
||||
// Returns fixed-up instance
|
||||
return event;
|
||||
|
@ -2995,7 +2994,12 @@ const normalizeListenArgs = (self, args, fnName) => {
|
|||
}
|
||||
[type, listener] = args;
|
||||
} else {
|
||||
[target, type, listener] = args;
|
||||
// This was `[target, type, listener] = args;` but this block needs more than
|
||||
// one statement to produce minified output compatible with Chrome 53.
|
||||
// See https://github.com/videojs/video.js/pull/8810
|
||||
target = args[0];
|
||||
type = args[1];
|
||||
listener = args[2];
|
||||
}
|
||||
validateTarget(target, self, fnName);
|
||||
validateEventType(type, self, fnName);
|
||||
|
@ -6387,6 +6391,14 @@ class ModalDialog extends Component {
|
|||
if (closeButton) {
|
||||
parentEl.appendChild(closeButton.el_);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fired after `ModalDialog` is re-filled with content & close button is appended.
|
||||
*
|
||||
* @event ModalDialog#aftermodalfill
|
||||
* @type {Event}
|
||||
*/
|
||||
this.trigger('aftermodalfill');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -10082,6 +10094,24 @@ 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.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[0].focus();
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -10210,7 +10240,7 @@ class SpatialNavigation extends EventTarget {
|
|||
}
|
||||
}
|
||||
if (!event.currentTarget.contains(event.relatedTarget) && !isChildrenOfPlayer || !nextFocusedElement) {
|
||||
if (currentComponent.name() === 'CloseButton') {
|
||||
if (currentComponent && currentComponent.name() === 'CloseButton') {
|
||||
this.refocusComponent();
|
||||
} else {
|
||||
this.pause();
|
||||
|
@ -10280,6 +10310,58 @@ class SpatialNavigation extends EventTarget {
|
|||
focusableComponents.push(value);
|
||||
}
|
||||
}
|
||||
|
||||
// TODO - Refactor the following logic after refactor of videojs-errors elements to be components is done.
|
||||
if (value.name_ === 'ErrorDisplay' && value.opened_) {
|
||||
const buttonContainer = value.el_.querySelector('.vjs-errors-ok-button-container');
|
||||
if (buttonContainer) {
|
||||
const modalButtons = buttonContainer.querySelectorAll('button');
|
||||
modalButtons.forEach((element, index) => {
|
||||
// Add elements as objects to be handled by the spatial navigation
|
||||
focusableComponents.push({
|
||||
name: () => {
|
||||
return 'ModalButton' + (index + 1);
|
||||
},
|
||||
el: () => element,
|
||||
getPositions: () => {
|
||||
const rect = element.getBoundingClientRect();
|
||||
|
||||
// Creating objects that mirror DOMRectReadOnly for boundingClientRect and center
|
||||
const boundingClientRect = {
|
||||
x: rect.x,
|
||||
y: rect.y,
|
||||
width: rect.width,
|
||||
height: rect.height,
|
||||
top: rect.top,
|
||||
right: rect.right,
|
||||
bottom: rect.bottom,
|
||||
left: rect.left
|
||||
};
|
||||
|
||||
// Calculating the center position
|
||||
const center = {
|
||||
x: rect.left + rect.width / 2,
|
||||
y: rect.top + rect.height / 2,
|
||||
width: 0,
|
||||
height: 0,
|
||||
top: rect.top + rect.height / 2,
|
||||
right: rect.left + rect.width / 2,
|
||||
bottom: rect.top + rect.height / 2,
|
||||
left: rect.left + rect.width / 2
|
||||
};
|
||||
return {
|
||||
boundingClientRect,
|
||||
center
|
||||
};
|
||||
},
|
||||
// Asume that the following are always focusable
|
||||
getIsAvailableToBeFocused: () => true,
|
||||
getIsFocusable: el => true,
|
||||
focus: () => element.focus()
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
this.focusableComponents = focusableComponents;
|
||||
return this.focusableComponents;
|
||||
|
@ -10315,7 +10397,10 @@ class SpatialNavigation extends EventTarget {
|
|||
}
|
||||
return null;
|
||||
}
|
||||
return searchForSuitableChild(component.el());
|
||||
if (component.el()) {
|
||||
return searchForSuitableChild(component.el());
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -10474,7 +10559,7 @@ class SpatialNavigation extends EventTarget {
|
|||
*/
|
||||
refocusComponent() {
|
||||
if (this.lastFocusedComponent_) {
|
||||
// If use is not active, set it to active.
|
||||
// If user is not active, set it to active.
|
||||
if (!this.player_.userActive()) {
|
||||
this.player_.userActive(true);
|
||||
}
|
||||
|
@ -10501,6 +10586,9 @@ class SpatialNavigation extends EventTarget {
|
|||
* @param {Component} component - The component to be focused.
|
||||
*/
|
||||
focus(component) {
|
||||
if (typeof component !== 'object') {
|
||||
return;
|
||||
}
|
||||
if (component.getIsAvailableToBeFocused(component.el())) {
|
||||
component.focus();
|
||||
} else if (this.findSuitableDOMChild(component)) {
|
||||
|
@ -18356,11 +18444,11 @@ class TextTrackSettings extends ModalDialog {
|
|||
this.addChild(trackSettingsControls);
|
||||
}
|
||||
bindFunctionsToSelectsAndButtons() {
|
||||
this.on(this.$('.vjs-done-button'), 'click', () => {
|
||||
this.on(this.$('.vjs-done-button'), ['click', 'tap'], () => {
|
||||
this.saveSettings();
|
||||
this.close();
|
||||
});
|
||||
this.on(this.$('.vjs-default-button'), 'click', () => {
|
||||
this.on(this.$('.vjs-default-button'), ['click', 'tap'], () => {
|
||||
this.setDefaults();
|
||||
this.updateDisplay();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue