mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-12 13:44:21 +01:00
Editor: Update @wordpress npm packages
Update @wordpress npm packages to the latest published versions. This includes block editor bug fixes for WordPress 5.7 beta 2. Fixes #52467. Built from https://develop.svn.wordpress.org/trunk@50235 git-svn-id: http://core.svn.wordpress.org/trunk@49896 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b88325dbc6
commit
d5fd2d8ea7
File diff suppressed because one or more lines are too long
@ -9,6 +9,7 @@
|
||||
*
|
||||
* Please use variables from this sheet to ensure consistency across the UI.
|
||||
* Don't add to this sheet unless you're pretty sure the value will be reused in many places.
|
||||
* For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
|
||||
*/
|
||||
/**
|
||||
* Colors
|
||||
|
@ -9,6 +9,7 @@
|
||||
*
|
||||
* Please use variables from this sheet to ensure consistency across the UI.
|
||||
* Don't add to this sheet unless you're pretty sure the value will be reused in many places.
|
||||
* For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
|
||||
*/
|
||||
/**
|
||||
* Colors
|
||||
|
@ -10,6 +10,7 @@
|
||||
*
|
||||
* Please use variables from this sheet to ensure consistency across the UI.
|
||||
* Don't add to this sheet unless you're pretty sure the value will be reused in many places.
|
||||
* For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
|
||||
*/
|
||||
/**
|
||||
* Colors
|
||||
|
1
wp-includes/css/dist/block-editor/style.css
vendored
1
wp-includes/css/dist/block-editor/style.css
vendored
@ -10,6 +10,7 @@
|
||||
*
|
||||
* Please use variables from this sheet to ensure consistency across the UI.
|
||||
* Don't add to this sheet unless you're pretty sure the value will be reused in many places.
|
||||
* For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
|
||||
*/
|
||||
/**
|
||||
* Colors
|
||||
|
@ -9,6 +9,7 @@
|
||||
*
|
||||
* Please use variables from this sheet to ensure consistency across the UI.
|
||||
* Don't add to this sheet unless you're pretty sure the value will be reused in many places.
|
||||
* For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
|
||||
*/
|
||||
/**
|
||||
* Colors
|
||||
|
@ -9,6 +9,7 @@
|
||||
*
|
||||
* Please use variables from this sheet to ensure consistency across the UI.
|
||||
* Don't add to this sheet unless you're pretty sure the value will be reused in many places.
|
||||
* For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
|
||||
*/
|
||||
/**
|
||||
* Colors
|
||||
|
@ -9,6 +9,7 @@
|
||||
*
|
||||
* Please use variables from this sheet to ensure consistency across the UI.
|
||||
* Don't add to this sheet unless you're pretty sure the value will be reused in many places.
|
||||
* For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
|
||||
*/
|
||||
/**
|
||||
* Colors
|
||||
@ -170,6 +171,7 @@ div[data-type="core/button"] {
|
||||
.wp-block-buttons > .wp-block {
|
||||
margin-right: 0;
|
||||
margin-top: 0.5em;
|
||||
margin-left: 0.5em;
|
||||
}
|
||||
.wp-block-buttons > .block-list-appender {
|
||||
display: inline-flex;
|
||||
|
File diff suppressed because one or more lines are too long
@ -9,6 +9,7 @@
|
||||
*
|
||||
* Please use variables from this sheet to ensure consistency across the UI.
|
||||
* Don't add to this sheet unless you're pretty sure the value will be reused in many places.
|
||||
* For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
|
||||
*/
|
||||
/**
|
||||
* Colors
|
||||
@ -171,6 +172,7 @@ div[data-type="core/button"] {
|
||||
.wp-block-buttons > .wp-block {
|
||||
margin-left: 0;
|
||||
margin-top: 0.5em;
|
||||
margin-right: 0.5em;
|
||||
}
|
||||
.wp-block-buttons > .block-list-appender {
|
||||
display: inline-flex;
|
||||
|
File diff suppressed because one or more lines are too long
@ -10,6 +10,7 @@
|
||||
*
|
||||
* Please use variables from this sheet to ensure consistency across the UI.
|
||||
* Don't add to this sheet unless you're pretty sure the value will be reused in many places.
|
||||
* For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
|
||||
*/
|
||||
/**
|
||||
* Colors
|
||||
@ -169,6 +170,7 @@
|
||||
}
|
||||
.wp-block-buttons > .wp-block-button {
|
||||
display: inline-block;
|
||||
margin-left: 0;
|
||||
margin-right: 0.5em;
|
||||
margin-bottom: 0.5em;
|
||||
}
|
||||
@ -654,6 +656,11 @@ section.wp-block-cover-image > h2,
|
||||
min-width: 280px;
|
||||
}
|
||||
|
||||
.wp-block-cover .wp-block-embed {
|
||||
min-width: 320px;
|
||||
min-height: 240px;
|
||||
}
|
||||
|
||||
.wp-block-embed {
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
|
File diff suppressed because one or more lines are too long
8
wp-includes/css/dist/block-library/style.css
vendored
8
wp-includes/css/dist/block-library/style.css
vendored
@ -10,6 +10,7 @@
|
||||
*
|
||||
* Please use variables from this sheet to ensure consistency across the UI.
|
||||
* Don't add to this sheet unless you're pretty sure the value will be reused in many places.
|
||||
* For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
|
||||
*/
|
||||
/**
|
||||
* Colors
|
||||
@ -172,6 +173,8 @@
|
||||
.wp-block-buttons > .wp-block-button {
|
||||
display: inline-block;
|
||||
/*rtl:ignore*/
|
||||
margin-left: 0;
|
||||
/*rtl:ignore*/
|
||||
margin-right: 0.5em;
|
||||
margin-bottom: 0.5em;
|
||||
}
|
||||
@ -669,6 +672,11 @@ section.wp-block-cover-image > h2,
|
||||
min-width: 280px;
|
||||
}
|
||||
|
||||
.wp-block-cover .wp-block-embed {
|
||||
min-width: 320px;
|
||||
min-height: 240px;
|
||||
}
|
||||
|
||||
.wp-block-embed {
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
|
File diff suppressed because one or more lines are too long
@ -9,6 +9,7 @@
|
||||
*
|
||||
* Please use variables from this sheet to ensure consistency across the UI.
|
||||
* Don't add to this sheet unless you're pretty sure the value will be reused in many places.
|
||||
* For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
|
||||
*/
|
||||
/**
|
||||
* Colors
|
||||
|
1
wp-includes/css/dist/block-library/theme.css
vendored
1
wp-includes/css/dist/block-library/theme.css
vendored
@ -9,6 +9,7 @@
|
||||
*
|
||||
* Please use variables from this sheet to ensure consistency across the UI.
|
||||
* Don't add to this sheet unless you're pretty sure the value will be reused in many places.
|
||||
* For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
|
||||
*/
|
||||
/**
|
||||
* Colors
|
||||
|
@ -10,6 +10,7 @@
|
||||
*
|
||||
* Please use variables from this sheet to ensure consistency across the UI.
|
||||
* Don't add to this sheet unless you're pretty sure the value will be reused in many places.
|
||||
* For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
|
||||
*/
|
||||
/**
|
||||
* Colors
|
||||
|
1
wp-includes/css/dist/components/style.css
vendored
1
wp-includes/css/dist/components/style.css
vendored
@ -10,6 +10,7 @@
|
||||
*
|
||||
* Please use variables from this sheet to ensure consistency across the UI.
|
||||
* Don't add to this sheet unless you're pretty sure the value will be reused in many places.
|
||||
* For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
|
||||
*/
|
||||
/**
|
||||
* Colors
|
||||
|
1
wp-includes/css/dist/edit-post/style-rtl.css
vendored
1
wp-includes/css/dist/edit-post/style-rtl.css
vendored
@ -9,6 +9,7 @@
|
||||
*
|
||||
* Please use variables from this sheet to ensure consistency across the UI.
|
||||
* Don't add to this sheet unless you're pretty sure the value will be reused in many places.
|
||||
* For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
|
||||
*/
|
||||
/**
|
||||
* Colors
|
||||
|
1
wp-includes/css/dist/edit-post/style.css
vendored
1
wp-includes/css/dist/edit-post/style.css
vendored
@ -9,6 +9,7 @@
|
||||
*
|
||||
* Please use variables from this sheet to ensure consistency across the UI.
|
||||
* Don't add to this sheet unless you're pretty sure the value will be reused in many places.
|
||||
* For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
|
||||
*/
|
||||
/**
|
||||
* Colors
|
||||
|
@ -9,6 +9,7 @@
|
||||
*
|
||||
* Please use variables from this sheet to ensure consistency across the UI.
|
||||
* Don't add to this sheet unless you're pretty sure the value will be reused in many places.
|
||||
* For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
|
||||
*/
|
||||
/**
|
||||
* Colors
|
||||
|
@ -9,6 +9,7 @@
|
||||
*
|
||||
* Please use variables from this sheet to ensure consistency across the UI.
|
||||
* Don't add to this sheet unless you're pretty sure the value will be reused in many places.
|
||||
* For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
|
||||
*/
|
||||
/**
|
||||
* Colors
|
||||
|
1
wp-includes/css/dist/editor/style-rtl.css
vendored
1
wp-includes/css/dist/editor/style-rtl.css
vendored
@ -10,6 +10,7 @@
|
||||
*
|
||||
* Please use variables from this sheet to ensure consistency across the UI.
|
||||
* Don't add to this sheet unless you're pretty sure the value will be reused in many places.
|
||||
* For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
|
||||
*/
|
||||
/**
|
||||
* Colors
|
||||
|
1
wp-includes/css/dist/editor/style.css
vendored
1
wp-includes/css/dist/editor/style.css
vendored
@ -10,6 +10,7 @@
|
||||
*
|
||||
* Please use variables from this sheet to ensure consistency across the UI.
|
||||
* Don't add to this sheet unless you're pretty sure the value will be reused in many places.
|
||||
* For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
|
||||
*/
|
||||
/**
|
||||
* Colors
|
||||
|
@ -9,6 +9,7 @@
|
||||
*
|
||||
* Please use variables from this sheet to ensure consistency across the UI.
|
||||
* Don't add to this sheet unless you're pretty sure the value will be reused in many places.
|
||||
* For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
|
||||
*/
|
||||
/**
|
||||
* Colors
|
||||
|
@ -9,6 +9,7 @@
|
||||
*
|
||||
* Please use variables from this sheet to ensure consistency across the UI.
|
||||
* Don't add to this sheet unless you're pretty sure the value will be reused in many places.
|
||||
* For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
|
||||
*/
|
||||
/**
|
||||
* Colors
|
||||
|
@ -9,6 +9,7 @@
|
||||
*
|
||||
* Please use variables from this sheet to ensure consistency across the UI.
|
||||
* Don't add to this sheet unless you're pretty sure the value will be reused in many places.
|
||||
* For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
|
||||
*/
|
||||
/**
|
||||
* Colors
|
||||
|
@ -9,6 +9,7 @@
|
||||
*
|
||||
* Please use variables from this sheet to ensure consistency across the UI.
|
||||
* Don't add to this sheet unless you're pretty sure the value will be reused in many places.
|
||||
* For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
|
||||
*/
|
||||
/**
|
||||
* Colors
|
||||
|
1
wp-includes/css/dist/nux/style-rtl.css
vendored
1
wp-includes/css/dist/nux/style-rtl.css
vendored
@ -9,6 +9,7 @@
|
||||
*
|
||||
* Please use variables from this sheet to ensure consistency across the UI.
|
||||
* Don't add to this sheet unless you're pretty sure the value will be reused in many places.
|
||||
* For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
|
||||
*/
|
||||
/**
|
||||
* Colors
|
||||
|
1
wp-includes/css/dist/nux/style.css
vendored
1
wp-includes/css/dist/nux/style.css
vendored
@ -9,6 +9,7 @@
|
||||
*
|
||||
* Please use variables from this sheet to ensure consistency across the UI.
|
||||
* Don't add to this sheet unless you're pretty sure the value will be reused in many places.
|
||||
* For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
|
||||
*/
|
||||
/**
|
||||
* Colors
|
||||
|
120
wp-includes/js/dist/block-editor.js
vendored
120
wp-includes/js/dist/block-editor.js
vendored
@ -10009,6 +10009,60 @@ function useIsTypographyDisabled() {
|
||||
return configs.filter(Boolean).length === configs.length;
|
||||
}
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/unit-control/index.js
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* WordPress dependencies
|
||||
*/
|
||||
|
||||
/**
|
||||
* Internal dependencies
|
||||
*/
|
||||
|
||||
|
||||
function UnitControl(_ref) {
|
||||
var unitsProp = _ref.units,
|
||||
props = Object(objectWithoutProperties["a" /* default */])(_ref, ["units"]);
|
||||
|
||||
var units = useCustomUnits(unitsProp);
|
||||
return Object(external_wp_element_["createElement"])(external_wp_components_["__experimentalUnitControl"], Object(esm_extends["a" /* default */])({
|
||||
units: units
|
||||
}, props));
|
||||
}
|
||||
/**
|
||||
* Filters available units based on values defined by settings.
|
||||
*
|
||||
* @param {Array} settings Collection of preferred units.
|
||||
* @param {Array} units Collection of available units.
|
||||
*
|
||||
* @return {Array} Filtered units based on settings.
|
||||
*/
|
||||
|
||||
function filterUnitsWithSettings() {
|
||||
var settings = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
||||
var units = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
||||
return units.filter(function (unit) {
|
||||
return settings.includes(unit.value);
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Custom hook to retrieve and consolidate units setting from add_theme_support().
|
||||
*
|
||||
* @param {Array} units Collection of available units.
|
||||
*
|
||||
* @return {Array} Filtered units based on settings.
|
||||
*/
|
||||
|
||||
|
||||
function useCustomUnits(units) {
|
||||
var availableUnits = useEditorFeature('spacing.units');
|
||||
var usedUnits = filterUnitsWithSettings(!availableUnits ? [] : availableUnits, units);
|
||||
return usedUnits.length === 0 ? false : usedUnits;
|
||||
}
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/hooks/padding.js
|
||||
|
||||
|
||||
@ -10037,11 +10091,11 @@ var padding_hasPaddingSupport = function hasPaddingSupport(blockName) {
|
||||
return spacingSupport && spacingSupport.padding !== false;
|
||||
};
|
||||
/**
|
||||
* Inspector control panel containing the line height related configuration
|
||||
* Inspector control panel containing the padding related configuration
|
||||
*
|
||||
* @param {Object} props
|
||||
*
|
||||
* @return {WPElement} Line height edit element.
|
||||
* @return {WPElement} Padding edit element.
|
||||
*/
|
||||
|
||||
|
||||
@ -10051,13 +10105,7 @@ function PaddingEdit(props) {
|
||||
var blockName = props.name,
|
||||
style = props.attributes.style,
|
||||
setAttributes = props.setAttributes;
|
||||
var customUnits = useEditorFeature('spacing.units');
|
||||
var units = customUnits === null || customUnits === void 0 ? void 0 : customUnits.map(function (unit) {
|
||||
return {
|
||||
value: unit,
|
||||
label: unit
|
||||
};
|
||||
});
|
||||
var units = useCustomUnits();
|
||||
|
||||
if (!padding_hasPaddingSupport(blockName)) {
|
||||
return null;
|
||||
@ -33148,60 +33196,6 @@ function ToolSelector(props, ref) {
|
||||
|
||||
/* harmony default export */ var tool_selector = (Object(external_wp_element_["forwardRef"])(ToolSelector));
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/unit-control/index.js
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* WordPress dependencies
|
||||
*/
|
||||
|
||||
/**
|
||||
* Internal dependencies
|
||||
*/
|
||||
|
||||
|
||||
function UnitControl(_ref) {
|
||||
var unitsProp = _ref.units,
|
||||
props = Object(objectWithoutProperties["a" /* default */])(_ref, ["units"]);
|
||||
|
||||
var units = useCustomUnits(unitsProp);
|
||||
return Object(external_wp_element_["createElement"])(external_wp_components_["__experimentalUnitControl"], Object(esm_extends["a" /* default */])({
|
||||
units: units
|
||||
}, props));
|
||||
}
|
||||
/**
|
||||
* Filters available units based on values defined by settings.
|
||||
*
|
||||
* @param {Array} settings Collection of preferred units.
|
||||
* @param {Array} units Collection of available units.
|
||||
*
|
||||
* @return {Array} Filtered units based on settings.
|
||||
*/
|
||||
|
||||
function filterUnitsWithSettings() {
|
||||
var settings = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
||||
var units = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
||||
return units.filter(function (unit) {
|
||||
return settings.includes(unit.value);
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Custom hook to retrieve and consolidate units setting from add_theme_support().
|
||||
*
|
||||
* @param {Array} units Collection of available units.
|
||||
*
|
||||
* @return {Array} Filtered units based on settings.
|
||||
*/
|
||||
|
||||
|
||||
function useCustomUnits(units) {
|
||||
var availableUnits = useEditorFeature('spacing.units');
|
||||
var usedUnits = filterUnitsWithSettings(!availableUnits ? [] : availableUnits, units);
|
||||
return usedUnits.length === 0 ? false : usedUnits;
|
||||
}
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/link.js
|
||||
var library_link = __webpack_require__(192);
|
||||
|
||||
|
2
wp-includes/js/dist/block-editor.min.js
vendored
2
wp-includes/js/dist/block-editor.min.js
vendored
File diff suppressed because one or more lines are too long
5
wp-includes/js/dist/block-library.js
vendored
5
wp-includes/js/dist/block-library.js
vendored
@ -14036,6 +14036,9 @@ var cover_deprecated_deprecated = [{
|
||||
minHeight: {
|
||||
type: 'number'
|
||||
},
|
||||
minHeightUnit: {
|
||||
type: 'string'
|
||||
},
|
||||
gradient: {
|
||||
type: 'string'
|
||||
},
|
||||
@ -19309,7 +19312,7 @@ function LatestPostsEdit(_ref) {
|
||||
|
||||
var dateFormat = Object(external_wp_date_["__experimentalGetSettings"])().formats.date;
|
||||
|
||||
return Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, inspectorControls, Object(external_wp_element_["createElement"])(external_wp_blockEditor_["BlockControls"], null, Object(external_wp_element_["createElement"])(external_wp_components_["ToolbarGroup"], {
|
||||
return Object(external_wp_element_["createElement"])("div", null, inspectorControls, Object(external_wp_element_["createElement"])(external_wp_blockEditor_["BlockControls"], null, Object(external_wp_element_["createElement"])(external_wp_components_["ToolbarGroup"], {
|
||||
controls: layoutControls
|
||||
})), Object(external_wp_element_["createElement"])("ul", blockProps, displayPosts.map(function (post, i) {
|
||||
var titleTrimmed = Object(external_lodash_["invoke"])(post, ['title', 'rendered', 'trim']);
|
||||
|
2
wp-includes/js/dist/block-library.min.js
vendored
2
wp-includes/js/dist/block-library.min.js
vendored
File diff suppressed because one or more lines are too long
232
wp-includes/js/dist/blocks.js
vendored
232
wp-includes/js/dist/blocks.js
vendored
@ -8482,6 +8482,208 @@ var EventedTokenizer = /** @class */ (function () {
|
||||
this.transitionTo("commentStart" /* commentStart */);
|
||||
this.delegate.beginComment();
|
||||
}
|
||||
else {
|
||||
var maybeDoctype = char.toUpperCase() + this.input.substring(this.index, this.index + 6).toUpperCase();
|
||||
if (maybeDoctype === 'DOCTYPE') {
|
||||
this.consume();
|
||||
this.consume();
|
||||
this.consume();
|
||||
this.consume();
|
||||
this.consume();
|
||||
this.consume();
|
||||
this.transitionTo("doctype" /* doctype */);
|
||||
if (this.delegate.beginDoctype)
|
||||
this.delegate.beginDoctype();
|
||||
}
|
||||
}
|
||||
},
|
||||
doctype: function () {
|
||||
var char = this.consume();
|
||||
if (isSpace(char)) {
|
||||
this.transitionTo("beforeDoctypeName" /* beforeDoctypeName */);
|
||||
}
|
||||
},
|
||||
beforeDoctypeName: function () {
|
||||
var char = this.consume();
|
||||
if (isSpace(char)) {
|
||||
return;
|
||||
}
|
||||
else {
|
||||
this.transitionTo("doctypeName" /* doctypeName */);
|
||||
if (this.delegate.appendToDoctypeName)
|
||||
this.delegate.appendToDoctypeName(char.toLowerCase());
|
||||
}
|
||||
},
|
||||
doctypeName: function () {
|
||||
var char = this.consume();
|
||||
if (isSpace(char)) {
|
||||
this.transitionTo("afterDoctypeName" /* afterDoctypeName */);
|
||||
}
|
||||
else if (char === '>') {
|
||||
if (this.delegate.endDoctype)
|
||||
this.delegate.endDoctype();
|
||||
this.transitionTo("beforeData" /* beforeData */);
|
||||
}
|
||||
else {
|
||||
if (this.delegate.appendToDoctypeName)
|
||||
this.delegate.appendToDoctypeName(char.toLowerCase());
|
||||
}
|
||||
},
|
||||
afterDoctypeName: function () {
|
||||
var char = this.consume();
|
||||
if (isSpace(char)) {
|
||||
return;
|
||||
}
|
||||
else if (char === '>') {
|
||||
if (this.delegate.endDoctype)
|
||||
this.delegate.endDoctype();
|
||||
this.transitionTo("beforeData" /* beforeData */);
|
||||
}
|
||||
else {
|
||||
var nextSixChars = char.toUpperCase() + this.input.substring(this.index, this.index + 5).toUpperCase();
|
||||
var isPublic = nextSixChars.toUpperCase() === 'PUBLIC';
|
||||
var isSystem = nextSixChars.toUpperCase() === 'SYSTEM';
|
||||
if (isPublic || isSystem) {
|
||||
this.consume();
|
||||
this.consume();
|
||||
this.consume();
|
||||
this.consume();
|
||||
this.consume();
|
||||
this.consume();
|
||||
}
|
||||
if (isPublic) {
|
||||
this.transitionTo("afterDoctypePublicKeyword" /* afterDoctypePublicKeyword */);
|
||||
}
|
||||
else if (isSystem) {
|
||||
this.transitionTo("afterDoctypeSystemKeyword" /* afterDoctypeSystemKeyword */);
|
||||
}
|
||||
}
|
||||
},
|
||||
afterDoctypePublicKeyword: function () {
|
||||
var char = this.peek();
|
||||
if (isSpace(char)) {
|
||||
this.transitionTo("beforeDoctypePublicIdentifier" /* beforeDoctypePublicIdentifier */);
|
||||
this.consume();
|
||||
}
|
||||
else if (char === '"') {
|
||||
this.transitionTo("doctypePublicIdentifierDoubleQuoted" /* doctypePublicIdentifierDoubleQuoted */);
|
||||
this.consume();
|
||||
}
|
||||
else if (char === "'") {
|
||||
this.transitionTo("doctypePublicIdentifierSingleQuoted" /* doctypePublicIdentifierSingleQuoted */);
|
||||
this.consume();
|
||||
}
|
||||
else if (char === '>') {
|
||||
this.consume();
|
||||
if (this.delegate.endDoctype)
|
||||
this.delegate.endDoctype();
|
||||
this.transitionTo("beforeData" /* beforeData */);
|
||||
}
|
||||
},
|
||||
doctypePublicIdentifierDoubleQuoted: function () {
|
||||
var char = this.consume();
|
||||
if (char === '"') {
|
||||
this.transitionTo("afterDoctypePublicIdentifier" /* afterDoctypePublicIdentifier */);
|
||||
}
|
||||
else if (char === '>') {
|
||||
if (this.delegate.endDoctype)
|
||||
this.delegate.endDoctype();
|
||||
this.transitionTo("beforeData" /* beforeData */);
|
||||
}
|
||||
else {
|
||||
if (this.delegate.appendToDoctypePublicIdentifier)
|
||||
this.delegate.appendToDoctypePublicIdentifier(char);
|
||||
}
|
||||
},
|
||||
doctypePublicIdentifierSingleQuoted: function () {
|
||||
var char = this.consume();
|
||||
if (char === "'") {
|
||||
this.transitionTo("afterDoctypePublicIdentifier" /* afterDoctypePublicIdentifier */);
|
||||
}
|
||||
else if (char === '>') {
|
||||
if (this.delegate.endDoctype)
|
||||
this.delegate.endDoctype();
|
||||
this.transitionTo("beforeData" /* beforeData */);
|
||||
}
|
||||
else {
|
||||
if (this.delegate.appendToDoctypePublicIdentifier)
|
||||
this.delegate.appendToDoctypePublicIdentifier(char);
|
||||
}
|
||||
},
|
||||
afterDoctypePublicIdentifier: function () {
|
||||
var char = this.consume();
|
||||
if (isSpace(char)) {
|
||||
this.transitionTo("betweenDoctypePublicAndSystemIdentifiers" /* betweenDoctypePublicAndSystemIdentifiers */);
|
||||
}
|
||||
else if (char === '>') {
|
||||
if (this.delegate.endDoctype)
|
||||
this.delegate.endDoctype();
|
||||
this.transitionTo("beforeData" /* beforeData */);
|
||||
}
|
||||
else if (char === '"') {
|
||||
this.transitionTo("doctypeSystemIdentifierDoubleQuoted" /* doctypeSystemIdentifierDoubleQuoted */);
|
||||
}
|
||||
else if (char === "'") {
|
||||
this.transitionTo("doctypeSystemIdentifierSingleQuoted" /* doctypeSystemIdentifierSingleQuoted */);
|
||||
}
|
||||
},
|
||||
betweenDoctypePublicAndSystemIdentifiers: function () {
|
||||
var char = this.consume();
|
||||
if (isSpace(char)) {
|
||||
return;
|
||||
}
|
||||
else if (char === '>') {
|
||||
if (this.delegate.endDoctype)
|
||||
this.delegate.endDoctype();
|
||||
this.transitionTo("beforeData" /* beforeData */);
|
||||
}
|
||||
else if (char === '"') {
|
||||
this.transitionTo("doctypeSystemIdentifierDoubleQuoted" /* doctypeSystemIdentifierDoubleQuoted */);
|
||||
}
|
||||
else if (char === "'") {
|
||||
this.transitionTo("doctypeSystemIdentifierSingleQuoted" /* doctypeSystemIdentifierSingleQuoted */);
|
||||
}
|
||||
},
|
||||
doctypeSystemIdentifierDoubleQuoted: function () {
|
||||
var char = this.consume();
|
||||
if (char === '"') {
|
||||
this.transitionTo("afterDoctypeSystemIdentifier" /* afterDoctypeSystemIdentifier */);
|
||||
}
|
||||
else if (char === '>') {
|
||||
if (this.delegate.endDoctype)
|
||||
this.delegate.endDoctype();
|
||||
this.transitionTo("beforeData" /* beforeData */);
|
||||
}
|
||||
else {
|
||||
if (this.delegate.appendToDoctypeSystemIdentifier)
|
||||
this.delegate.appendToDoctypeSystemIdentifier(char);
|
||||
}
|
||||
},
|
||||
doctypeSystemIdentifierSingleQuoted: function () {
|
||||
var char = this.consume();
|
||||
if (char === "'") {
|
||||
this.transitionTo("afterDoctypeSystemIdentifier" /* afterDoctypeSystemIdentifier */);
|
||||
}
|
||||
else if (char === '>') {
|
||||
if (this.delegate.endDoctype)
|
||||
this.delegate.endDoctype();
|
||||
this.transitionTo("beforeData" /* beforeData */);
|
||||
}
|
||||
else {
|
||||
if (this.delegate.appendToDoctypeSystemIdentifier)
|
||||
this.delegate.appendToDoctypeSystemIdentifier(char);
|
||||
}
|
||||
},
|
||||
afterDoctypeSystemIdentifier: function () {
|
||||
var char = this.consume();
|
||||
if (isSpace(char)) {
|
||||
return;
|
||||
}
|
||||
else if (char === '>') {
|
||||
if (this.delegate.endDoctype)
|
||||
this.delegate.endDoctype();
|
||||
this.transitionTo("beforeData" /* beforeData */);
|
||||
}
|
||||
},
|
||||
commentStart: function () {
|
||||
var char = this.consume();
|
||||
@ -8951,6 +9153,36 @@ var Tokenizer = /** @class */ (function () {
|
||||
this.startColumn = this.tokenizer.column;
|
||||
};
|
||||
// Data
|
||||
Tokenizer.prototype.beginDoctype = function () {
|
||||
this.push({
|
||||
type: "Doctype" /* Doctype */,
|
||||
name: '',
|
||||
});
|
||||
};
|
||||
Tokenizer.prototype.appendToDoctypeName = function (char) {
|
||||
this.current("Doctype" /* Doctype */).name += char;
|
||||
};
|
||||
Tokenizer.prototype.appendToDoctypePublicIdentifier = function (char) {
|
||||
var doctype = this.current("Doctype" /* Doctype */);
|
||||
if (doctype.publicIdentifier === undefined) {
|
||||
doctype.publicIdentifier = char;
|
||||
}
|
||||
else {
|
||||
doctype.publicIdentifier += char;
|
||||
}
|
||||
};
|
||||
Tokenizer.prototype.appendToDoctypeSystemIdentifier = function (char) {
|
||||
var doctype = this.current("Doctype" /* Doctype */);
|
||||
if (doctype.systemIdentifier === undefined) {
|
||||
doctype.systemIdentifier = char;
|
||||
}
|
||||
else {
|
||||
doctype.systemIdentifier += char;
|
||||
}
|
||||
};
|
||||
Tokenizer.prototype.endDoctype = function () {
|
||||
this.addLocInfo();
|
||||
};
|
||||
Tokenizer.prototype.beginData = function () {
|
||||
this.push({
|
||||
type: "Chars" /* Chars */,
|
||||
|
4
wp-includes/js/dist/blocks.min.js
vendored
4
wp-includes/js/dist/blocks.min.js
vendored
File diff suppressed because one or more lines are too long
11
wp-includes/js/dist/data.js
vendored
11
wp-includes/js/dist/data.js
vendored
@ -3399,15 +3399,20 @@ function persistencePlugin(registry, pluginOptions) {
|
||||
|
||||
|
||||
persistencePlugin.__unstableMigrate = function (pluginOptions) {
|
||||
var _state$coreEditor, _state$coreEditor$pre;
|
||||
|
||||
var persistence = createPersistenceInterface(pluginOptions);
|
||||
var state = persistence.get(); // Migrate 'insertUsage' from 'core/editor' to 'core/block-editor'
|
||||
|
||||
var insertUsage = Object(external_lodash_["get"])(state, ['core/editor', 'preferences', 'insertUsage']);
|
||||
var editorInsertUsage = (_state$coreEditor = state['core/editor']) === null || _state$coreEditor === void 0 ? void 0 : (_state$coreEditor$pre = _state$coreEditor.preferences) === null || _state$coreEditor$pre === void 0 ? void 0 : _state$coreEditor$pre.insertUsage;
|
||||
|
||||
if (insertUsage) {
|
||||
if (editorInsertUsage) {
|
||||
var _state$coreBlockEdi, _state$coreBlockEdi$p;
|
||||
|
||||
var blockEditorInsertUsage = (_state$coreBlockEdi = state['core/block-editor']) === null || _state$coreBlockEdi === void 0 ? void 0 : (_state$coreBlockEdi$p = _state$coreBlockEdi.preferences) === null || _state$coreBlockEdi$p === void 0 ? void 0 : _state$coreBlockEdi$p.insertUsage;
|
||||
persistence.set('core/block-editor', {
|
||||
preferences: {
|
||||
insertUsage: insertUsage
|
||||
insertUsage: persistence_objectSpread(persistence_objectSpread({}, editorInsertUsage), blockEditorInsertUsage)
|
||||
}
|
||||
});
|
||||
}
|
||||
|
2
wp-includes/js/dist/data.min.js
vendored
2
wp-includes/js/dist/data.min.js
vendored
File diff suppressed because one or more lines are too long
@ -13,7 +13,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.7-beta1-50234';
|
||||
$wp_version = '5.7-beta1-50235';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user