1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-05 02:39:46 +02:00

Update npm

This commit is contained in:
Daniel Neto 2024-04-03 15:54:35 -03:00
parent 8341712d58
commit 1bd85100b9
5320 changed files with 58396 additions and 344722 deletions

View file

@ -1,5 +1,5 @@
/**
* TinyMCE version 6.8.3 (2024-02-08)
* TinyMCE version 7.0.0 (2024-03-20)
*/
(function () {
@ -1621,6 +1621,18 @@
};
}
});
const buildClassList = classList => {
if (!classList.length) {
return Optional.none();
}
return Optional.some(buildListItems([
{
text: 'Select...',
value: 'mce-no-match'
},
...classList
]));
};
const buildMenuItems = (editor, items, format, onAction) => map(items, item => {
const text = item.text || item.title;
if (isListGroup(item)) {
@ -1682,29 +1694,18 @@
editor.execCommand('mceTableColType', false, { type: newType });
};
const getClassList$1 = editor => {
const classes = buildListItems(getCellClassList(editor));
if (classes.length > 0) {
return Optional.some({
name: 'class',
type: 'listbox',
label: 'Class',
items: classes
});
}
return Optional.none();
};
const getClassList$1 = editor => buildClassList(getCellClassList(editor)).map(items => ({
name: 'class',
type: 'listbox',
label: 'Class',
items
}));
const children = [
{
name: 'width',
type: 'input',
label: 'Width'
},
{
name: 'height',
type: 'input',
label: 'Height'
},
{
name: 'celltype',
type: 'listbox',
@ -2040,7 +2041,7 @@
const comparisonValue = baseData[key];
if (comparisonValue !== '' && key === itemKey) {
if (comparisonValue !== itemValue) {
baseData[key] = '';
baseData[key] = key === 'class' ? 'mce-no-match' : '';
}
}
});
@ -2146,7 +2147,6 @@
const getStyle = (element, style) => dom.getStyle(element, style) || dom.getAttrib(element, style);
return {
width: getStyle(colElm, 'width'),
height: getStyle(cell, 'height'),
scope: dom.getAttrib(cell, 'scope'),
celltype: getNodeName(cell),
class: dom.getAttrib(cell, 'class', ''),
@ -2169,12 +2169,9 @@
if (shouldUpdate('scope')) {
modifier.setAttrib('scope', data.scope);
}
if (shouldUpdate('class')) {
if (shouldUpdate('class') && data.class !== 'mce-no-match') {
modifier.setAttrib('class', data.class);
}
if (shouldUpdate('height')) {
modifier.setStyle('height', addPxSuffix(data.height));
}
if (shouldUpdate('width')) {
colModifier.setStyle('width', addPxSuffix(data.width));
}
@ -2297,18 +2294,12 @@
});
};
const getClassList = editor => {
const classes = buildListItems(getRowClassList(editor));
if (classes.length > 0) {
return Optional.some({
name: 'class',
type: 'listbox',
label: 'Class',
items: classes
});
}
return Optional.none();
};
const getClassList = editor => buildClassList(getRowClassList(editor)).map(items => ({
name: 'class',
type: 'listbox',
label: 'Class',
items
}));
const formChildren = [
{
type: 'listbox',
@ -2361,7 +2352,7 @@
const getItems$1 = editor => formChildren.concat(getClassList(editor).toArray());
const updateSimpleProps = (modifier, data, shouldUpdate) => {
if (shouldUpdate('class')) {
if (shouldUpdate('class') && data.class !== 'mce-no-match') {
modifier.setAttrib('class', data.class);
}
if (shouldUpdate('height')) {
@ -2383,11 +2374,17 @@
const isSingleRow = rows.length === 1;
const shouldOverrideCurrentValue = isSingleRow ? always : wasChanged;
each(rows, rowElm => {
const rowCells = children$1(SugarElement.fromDom(rowElm), 'td,th');
const modifier = DomModifier.normal(editor, rowElm);
updateSimpleProps(modifier, data, shouldOverrideCurrentValue);
if (hasAdvancedRowTab(editor)) {
updateAdvancedProps(modifier, data, shouldOverrideCurrentValue);
}
if (wasChanged('height')) {
each(rowCells, cell => {
editor.dom.setStyle(cell.dom, 'height', null);
});
}
if (wasChanged('align')) {
setAlign(editor, rowElm, data.align);
}
@ -2551,8 +2548,8 @@
]
}];
const classListItem = classes.length > 0 ? [{
type: 'listbox',
name: 'class',
type: 'listbox',
label: 'Class',
items: classes
}] : [];
@ -2580,7 +2577,8 @@
const styles = {};
const shouldStyleWithCss$1 = shouldStyleWithCss(editor);
const hasAdvancedTableTab$1 = hasAdvancedTableTab(editor);
if (!isUndefined(data.class)) {
const borderIsZero = parseFloat(data.border) === 0;
if (!isUndefined(data.class) && data.class !== 'mce-no-match') {
attrs.class = data.class;
}
styles.height = addPxSuffix(data.height);
@ -2590,16 +2588,24 @@
attrs.width = removePxSuffix(data.width);
}
if (shouldStyleWithCss$1) {
styles['border-width'] = addPxSuffix(data.border);
if (borderIsZero) {
attrs.border = 0;
styles['border-width'] = '';
} else {
styles['border-width'] = addPxSuffix(data.border);
attrs.border = 1;
}
styles['border-spacing'] = addPxSuffix(data.cellspacing);
} else {
attrs.border = data.border;
attrs.border = borderIsZero ? 0 : data.border;
attrs.cellpadding = data.cellpadding;
attrs.cellspacing = data.cellspacing;
}
if (shouldStyleWithCss$1 && tableElm.children) {
const cellStyles = {};
if (shouldApplyOnCell.border) {
if (borderIsZero) {
cellStyles['border-width'] = '';
} else if (shouldApplyOnCell.border) {
cellStyles['border-width'] = addPxSuffix(data.border);
}
if (shouldApplyOnCell.cellpadding) {
@ -2634,9 +2640,6 @@
const data = api.getData();
const modifiedData = filter$1(data, (value, key) => oldData[key] !== value);
api.close();
if (data.class === '') {
delete data.class;
}
editor.undoManager.transact(() => {
if (!tableElm) {
const cols = toInt(data.cols).getOr(1);
@ -2696,8 +2699,8 @@
}
}
}
const classes = buildListItems(getTableClassList(editor));
if (classes.length > 0) {
const classes = buildClassList(getTableClassList(editor));
if (classes.isSome()) {
if (data.class) {
data.class = data.class.replace(/\s*mce\-item\-table\s*/g, '');
}
@ -2705,7 +2708,7 @@
const generalPanel = {
type: 'grid',
columns: 2,
items: getItems(editor, classes, insertNewTable)
items: getItems(editor, classes.getOr([]), insertNewTable)
};
const nonAdvancedForm = () => ({
type: 'panel',

File diff suppressed because one or more lines are too long