FTP/PemFTP Library: Fix some PHP notices.

ftp_base::glob() used each(), which is deprecated as of PHP 7.2.
ftp_base::fget() was missing the decleration of its third parameter, $rest.

Props itowhid06, pento.
Merges [43848] to trunk.
Fixes #44489.

Built from https://develop.svn.wordpress.org/trunk@44184


git-svn-id: http://core.svn.wordpress.org/trunk@44014 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
atimmer 2018-12-15 11:00:40 +00:00
parent 96b2a4677c
commit 7616bf91af
25 changed files with 1423 additions and 749 deletions

View File

@ -524,7 +524,7 @@ class ftp_base {
return $exists; return $exists;
} }
function fget($fp, $remotefile,$rest=0) { function fget($fp, $remotefile, $rest=0) {
if($this->_can_restore and $rest!=0) fseek($fp, $rest); if($this->_can_restore and $rest!=0) fseek($fp, $rest);
$pi=pathinfo($remotefile); $pi=pathinfo($remotefile);
if($this->_type==FTP_ASCII or ($this->_type==FTP_AUTOASCII and in_array(strtoupper($pi["extension"]), $this->AutoAsciiExt))) $mode=FTP_ASCII; if($this->_type==FTP_ASCII or ($this->_type==FTP_AUTOASCII and in_array(strtoupper($pi["extension"]), $this->AutoAsciiExt))) $mode=FTP_ASCII;
@ -583,7 +583,7 @@ class ftp_base {
return $out; return $out;
} }
function fput($remotefile, $fp) { function fput($remotefile, $fp, $rest=0) {
if($this->_can_restore and $rest!=0) fseek($fp, $rest); if($this->_can_restore and $rest!=0) fseek($fp, $rest);
$pi=pathinfo($remotefile); $pi=pathinfo($remotefile);
if($this->_type==FTP_ASCII or ($this->_type==FTP_AUTOASCII and in_array(strtoupper($pi["extension"]), $this->AutoAsciiExt))) $mode=FTP_ASCII; if($this->_type==FTP_ASCII or ($this->_type==FTP_AUTOASCII and in_array(strtoupper($pi["extension"]), $this->AutoAsciiExt))) $mode=FTP_ASCII;
@ -775,7 +775,7 @@ class ftp_base {
$pattern=substr($pattern,$lastpos); $pattern=substr($pattern,$lastpos);
} else $path=getcwd(); } else $path=getcwd();
if(is_array($handle) and !empty($handle)) { if(is_array($handle) and !empty($handle)) {
while($dir=each($handle)) { foreach($handle as $dir) {
if($this->glob_pattern_match($pattern,$dir)) if($this->glob_pattern_match($pattern,$dir))
$output[]=$dir; $output[]=$dir;
} }

View File

@ -341,6 +341,10 @@ function apiFetch(options) {
var parseResponse = function parseResponse(response) { var parseResponse = function parseResponse(response) {
if (parse) { if (parse) {
if (response.status === 204) {
return null;
}
return response.json ? response.json() : Promise.reject(response); return response.json ? response.json() : Promise.reject(response);
} }

File diff suppressed because one or more lines are too long

View File

@ -697,7 +697,7 @@ __webpack_require__.r(__webpack_exports__);
var name = 'core/archives'; var name = 'core/archives';
var settings = { var settings = {
title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Archives'), title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Archives'),
description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Display a monthly archive of your sites Posts.'), description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Display a monthly archive of your posts.'),
icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__["SVG"], { icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__["SVG"], {
viewBox: "0 0 24 24", viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg" xmlns: "http://www.w3.org/2000/svg"
@ -1044,7 +1044,7 @@ __webpack_require__.r(__webpack_exports__);
var name = 'core/audio'; var name = 'core/audio';
var settings = { var settings = {
title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Audio'), title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Audio'),
description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed an audio file and a simple audio player.'), description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed a simple audio player.'),
icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__["SVG"], { icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__["SVG"], {
viewBox: "0 0 24 24", viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg" xmlns: "http://www.w3.org/2000/svg"
@ -1506,9 +1506,9 @@ function (_Component) {
/* harmony default export */ __webpack_exports__["default"] = (Object(_wordpress_compose__WEBPACK_IMPORTED_MODULE_14__["compose"])([Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_11__["withSelect"])(function (select, ownProps) { /* harmony default export */ __webpack_exports__["default"] = (Object(_wordpress_compose__WEBPACK_IMPORTED_MODULE_14__["compose"])([Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_11__["withSelect"])(function (select, ownProps) {
var _select = select('core/editor'), var _select = select('core/editor'),
getReusableBlock = _select.getReusableBlock, getReusableBlock = _select.__experimentalGetReusableBlock,
isFetchingReusableBlock = _select.isFetchingReusableBlock, isFetchingReusableBlock = _select.__experimentalIsFetchingReusableBlock,
isSavingReusableBlock = _select.isSavingReusableBlock, isSavingReusableBlock = _select.__experimentalIsSavingReusableBlock,
getBlock = _select.getBlock; getBlock = _select.getBlock;
var ref = ownProps.attributes.ref; var ref = ownProps.attributes.ref;
@ -1521,10 +1521,10 @@ function (_Component) {
}; };
}), Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_11__["withDispatch"])(function (dispatch, ownProps) { }), Object(_wordpress_data__WEBPACK_IMPORTED_MODULE_11__["withDispatch"])(function (dispatch, ownProps) {
var _dispatch = dispatch('core/editor'), var _dispatch = dispatch('core/editor'),
fetchReusableBlocks = _dispatch.fetchReusableBlocks, fetchReusableBlocks = _dispatch.__experimentalFetchReusableBlocks,
updateBlockAttributes = _dispatch.updateBlockAttributes, updateBlockAttributes = _dispatch.updateBlockAttributes,
updateReusableBlockTitle = _dispatch.updateReusableBlockTitle, updateReusableBlockTitle = _dispatch.__experimentalUpdateReusableBlockTitle,
saveReusableBlock = _dispatch.saveReusableBlock; saveReusableBlock = _dispatch.__experimentalSaveReusableBlock;
var ref = ownProps.attributes.ref; var ref = ownProps.attributes.ref;
return { return {
@ -1894,7 +1894,7 @@ var colorsMigration = function colorsMigration(attributes) {
var settings = { var settings = {
title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__["__"])('Button'), title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__["__"])('Button'),
description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__["__"])('Want visitors to click to subscribe, buy, or read more? Get their attention with a button.'), description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__["__"])('Prompt visitors to take action with a custom button.'),
icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__["SVG"], { icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__["SVG"], {
viewBox: "0 0 24 24", viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg" xmlns: "http://www.w3.org/2000/svg"
@ -2345,7 +2345,7 @@ __webpack_require__.r(__webpack_exports__);
var name = 'core/categories'; var name = 'core/categories';
var settings = { var settings = {
title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Categories'), title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Categories'),
description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Display a list of all your sites categories.'), description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Display a list of all categories.'),
icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__["SVG"], { icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__["SVG"], {
viewBox: "0 0 24 24", viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg" xmlns: "http://www.w3.org/2000/svg"
@ -2686,7 +2686,7 @@ __webpack_require__.r(__webpack_exports__);
var name = 'core/freeform'; var name = 'core/freeform';
var settings = { var settings = {
title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["_x"])('Classic', 'block title'), title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["_x"])('Classic', 'block title'),
description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Its the classic WordPress editor and its a block! Drop the editor right in.'), description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Use the classic WordPress editor.'),
icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__["SVG"], { icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__["SVG"], {
viewBox: "0 0 24 24", viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg" xmlns: "http://www.w3.org/2000/svg"
@ -2857,7 +2857,7 @@ __webpack_require__.r(__webpack_exports__);
var name = 'core/code'; var name = 'core/code';
var settings = { var settings = {
title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Code'), title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Code'),
description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Add text that respects your spacing and tabs -- perfect for displaying code.'), description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Display code snippets that respect your spacing and tabs.'),
icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__["SVG"], { icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__["SVG"], {
viewBox: "0 0 24 24", viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg" xmlns: "http://www.w3.org/2000/svg"
@ -3292,7 +3292,7 @@ var IMAGE_BACKGROUND_TYPE = 'image';
var VIDEO_BACKGROUND_TYPE = 'video'; var VIDEO_BACKGROUND_TYPE = 'video';
var settings = { var settings = {
title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__["__"])('Cover'), title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__["__"])('Cover'),
description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__["__"])('Add a full-width image or video, and layer text over it — great for headers.'), description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__["__"])('Add an image or video with a text overlay — great for headers.'),
icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__["SVG"], { icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__["SVG"], {
xmlns: "http://www.w3.org/2000/svg", xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 24 24" viewBox: "0 0 24 24"
@ -3776,7 +3776,8 @@ var common = [{
settings: { settings: {
title: 'Twitter', title: 'Twitter',
icon: _icons__WEBPACK_IMPORTED_MODULE_0__["embedTwitterIcon"], icon: _icons__WEBPACK_IMPORTED_MODULE_0__["embedTwitterIcon"],
keywords: ['tweet'] keywords: ['tweet'],
description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed a tweet')
}, },
patterns: [/^https?:\/\/(www\.)?twitter\.com\/.+/i] patterns: [/^https?:\/\/(www\.)?twitter\.com\/.+/i]
}, { }, {
@ -3784,14 +3785,16 @@ var common = [{
settings: { settings: {
title: 'YouTube', title: 'YouTube',
icon: _icons__WEBPACK_IMPORTED_MODULE_0__["embedYouTubeIcon"], icon: _icons__WEBPACK_IMPORTED_MODULE_0__["embedYouTubeIcon"],
keywords: [Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('music'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('video')] keywords: [Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('music'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('video')],
description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed a YouTube video')
}, },
patterns: [/^https?:\/\/((m|www)\.)?youtube\.com\/.+/i, /^https?:\/\/youtu\.be\/.+/i] patterns: [/^https?:\/\/((m|www)\.)?youtube\.com\/.+/i, /^https?:\/\/youtu\.be\/.+/i]
}, { }, {
name: 'core-embed/facebook', name: 'core-embed/facebook',
settings: { settings: {
title: 'Facebook', title: 'Facebook',
icon: _icons__WEBPACK_IMPORTED_MODULE_0__["embedFacebookIcon"] icon: _icons__WEBPACK_IMPORTED_MODULE_0__["embedFacebookIcon"],
description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed a Facebook post')
}, },
patterns: [/^https?:\/\/www\.facebook.com\/.+/i] patterns: [/^https?:\/\/www\.facebook.com\/.+/i]
}, { }, {
@ -3799,7 +3802,8 @@ var common = [{
settings: { settings: {
title: 'Instagram', title: 'Instagram',
icon: _icons__WEBPACK_IMPORTED_MODULE_0__["embedInstagramIcon"], icon: _icons__WEBPACK_IMPORTED_MODULE_0__["embedInstagramIcon"],
keywords: [Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('image')] keywords: [Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('image')],
description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed an Instagram post')
}, },
patterns: [/^https?:\/\/(www\.)?instagr(\.am|am\.com)\/.+/i] patterns: [/^https?:\/\/(www\.)?instagr(\.am|am\.com)\/.+/i]
}, { }, {
@ -3808,14 +3812,16 @@ var common = [{
title: 'WordPress', title: 'WordPress',
icon: _icons__WEBPACK_IMPORTED_MODULE_0__["embedWordPressIcon"], icon: _icons__WEBPACK_IMPORTED_MODULE_0__["embedWordPressIcon"],
keywords: [Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('post'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('blog')], keywords: [Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('post'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('blog')],
responsive: false responsive: false,
description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed a WordPress post')
} }
}, { }, {
name: 'core-embed/soundcloud', name: 'core-embed/soundcloud',
settings: { settings: {
title: 'SoundCloud', title: 'SoundCloud',
icon: _icons__WEBPACK_IMPORTED_MODULE_0__["embedAudioIcon"], icon: _icons__WEBPACK_IMPORTED_MODULE_0__["embedAudioIcon"],
keywords: [Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('music'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('audio')] keywords: [Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('music'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('audio')],
description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed SoundCloud content')
}, },
patterns: [/^https?:\/\/(www\.)?soundcloud\.com\/.+/i] patterns: [/^https?:\/\/(www\.)?soundcloud\.com\/.+/i]
}, { }, {
@ -3823,7 +3829,8 @@ var common = [{
settings: { settings: {
title: 'Spotify', title: 'Spotify',
icon: _icons__WEBPACK_IMPORTED_MODULE_0__["embedSpotifyIcon"], icon: _icons__WEBPACK_IMPORTED_MODULE_0__["embedSpotifyIcon"],
keywords: [Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('music'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('audio')] keywords: [Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('music'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('audio')],
description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed Spotify content')
}, },
patterns: [/^https?:\/\/(open|play)\.spotify\.com\/.+/i] patterns: [/^https?:\/\/(open|play)\.spotify\.com\/.+/i]
}, { }, {
@ -3831,7 +3838,8 @@ var common = [{
settings: { settings: {
title: 'Flickr', title: 'Flickr',
icon: _icons__WEBPACK_IMPORTED_MODULE_0__["embedFlickrIcon"], icon: _icons__WEBPACK_IMPORTED_MODULE_0__["embedFlickrIcon"],
keywords: [Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('image')] keywords: [Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('image')],
description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed Flickr content')
}, },
patterns: [/^https?:\/\/(www\.)?flickr\.com\/.+/i, /^https?:\/\/flic\.kr\/.+/i] patterns: [/^https?:\/\/(www\.)?flickr\.com\/.+/i, /^https?:\/\/flic\.kr\/.+/i]
}, { }, {
@ -3839,7 +3847,8 @@ var common = [{
settings: { settings: {
title: 'Vimeo', title: 'Vimeo',
icon: _icons__WEBPACK_IMPORTED_MODULE_0__["embedVimeoIcon"], icon: _icons__WEBPACK_IMPORTED_MODULE_0__["embedVimeoIcon"],
keywords: [Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('video')] keywords: [Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('video')],
description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed a Vimeo video')
}, },
patterns: [/^https?:\/\/(www\.)?vimeo\.com\/.+/i] patterns: [/^https?:\/\/(www\.)?vimeo\.com\/.+/i]
}]; }];
@ -3847,70 +3856,80 @@ var others = [{
name: 'core-embed/animoto', name: 'core-embed/animoto',
settings: { settings: {
title: 'Animoto', title: 'Animoto',
icon: _icons__WEBPACK_IMPORTED_MODULE_0__["embedVideoIcon"] icon: _icons__WEBPACK_IMPORTED_MODULE_0__["embedVideoIcon"],
description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed an Animoto video')
}, },
patterns: [/^https?:\/\/(www\.)?(animoto|video214)\.com\/.+/i] patterns: [/^https?:\/\/(www\.)?(animoto|video214)\.com\/.+/i]
}, { }, {
name: 'core-embed/cloudup', name: 'core-embed/cloudup',
settings: { settings: {
title: 'Cloudup', title: 'Cloudup',
icon: _icons__WEBPACK_IMPORTED_MODULE_0__["embedContentIcon"] icon: _icons__WEBPACK_IMPORTED_MODULE_0__["embedContentIcon"],
description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed Cloudup content')
}, },
patterns: [/^https?:\/\/cloudup\.com\/.+/i] patterns: [/^https?:\/\/cloudup\.com\/.+/i]
}, { }, {
name: 'core-embed/collegehumor', name: 'core-embed/collegehumor',
settings: { settings: {
title: 'CollegeHumor', title: 'CollegeHumor',
icon: _icons__WEBPACK_IMPORTED_MODULE_0__["embedVideoIcon"] icon: _icons__WEBPACK_IMPORTED_MODULE_0__["embedVideoIcon"],
description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed CollegeHumor content')
}, },
patterns: [/^https?:\/\/(www\.)?collegehumor\.com\/.+/i] patterns: [/^https?:\/\/(www\.)?collegehumor\.com\/.+/i]
}, { }, {
name: 'core-embed/dailymotion', name: 'core-embed/dailymotion',
settings: { settings: {
title: 'Dailymotion', title: 'Dailymotion',
icon: _icons__WEBPACK_IMPORTED_MODULE_0__["embedVideoIcon"] icon: _icons__WEBPACK_IMPORTED_MODULE_0__["embedVideoIcon"],
description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed a Dailymotion video')
}, },
patterns: [/^https?:\/\/(www\.)?dailymotion\.com\/.+/i] patterns: [/^https?:\/\/(www\.)?dailymotion\.com\/.+/i]
}, { }, {
name: 'core-embed/funnyordie', name: 'core-embed/funnyordie',
settings: { settings: {
title: 'Funny or Die', title: 'Funny or Die',
icon: _icons__WEBPACK_IMPORTED_MODULE_0__["embedVideoIcon"] icon: _icons__WEBPACK_IMPORTED_MODULE_0__["embedVideoIcon"],
description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed Funny or Die content')
}, },
patterns: [/^https?:\/\/(www\.)?funnyordie\.com\/.+/i] patterns: [/^https?:\/\/(www\.)?funnyordie\.com\/.+/i]
}, { }, {
name: 'core-embed/hulu', name: 'core-embed/hulu',
settings: { settings: {
title: 'Hulu', title: 'Hulu',
icon: _icons__WEBPACK_IMPORTED_MODULE_0__["embedVideoIcon"] icon: _icons__WEBPACK_IMPORTED_MODULE_0__["embedVideoIcon"],
description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed Hulu content')
}, },
patterns: [/^https?:\/\/(www\.)?hulu\.com\/.+/i] patterns: [/^https?:\/\/(www\.)?hulu\.com\/.+/i]
}, { }, {
name: 'core-embed/imgur', name: 'core-embed/imgur',
settings: { settings: {
title: 'Imgur', title: 'Imgur',
icon: _icons__WEBPACK_IMPORTED_MODULE_0__["embedPhotoIcon"] icon: _icons__WEBPACK_IMPORTED_MODULE_0__["embedPhotoIcon"],
description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed Imgur content')
}, },
patterns: [/^https?:\/\/(.+\.)?imgur\.com\/.+/i] patterns: [/^https?:\/\/(.+\.)?imgur\.com\/.+/i]
}, { }, {
name: 'core-embed/issuu', name: 'core-embed/issuu',
settings: { settings: {
title: 'Issuu', title: 'Issuu',
icon: _icons__WEBPACK_IMPORTED_MODULE_0__["embedContentIcon"] icon: _icons__WEBPACK_IMPORTED_MODULE_0__["embedContentIcon"],
description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed Issuu content')
}, },
patterns: [/^https?:\/\/(www\.)?issuu\.com\/.+/i] patterns: [/^https?:\/\/(www\.)?issuu\.com\/.+/i]
}, { }, {
name: 'core-embed/kickstarter', name: 'core-embed/kickstarter',
settings: { settings: {
title: 'Kickstarter', title: 'Kickstarter',
icon: _icons__WEBPACK_IMPORTED_MODULE_0__["embedContentIcon"] icon: _icons__WEBPACK_IMPORTED_MODULE_0__["embedContentIcon"],
description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed Kickstarter content')
}, },
patterns: [/^https?:\/\/(www\.)?kickstarter\.com\/.+/i, /^https?:\/\/kck\.st\/.+/i] patterns: [/^https?:\/\/(www\.)?kickstarter\.com\/.+/i, /^https?:\/\/kck\.st\/.+/i]
}, { }, {
name: 'core-embed/meetup-com', name: 'core-embed/meetup-com',
settings: { settings: {
title: 'Meetup.com', title: 'Meetup.com',
icon: _icons__WEBPACK_IMPORTED_MODULE_0__["embedContentIcon"] icon: _icons__WEBPACK_IMPORTED_MODULE_0__["embedContentIcon"],
description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed Meetup.com content')
}, },
patterns: [/^https?:\/\/(www\.)?meetu(\.ps|p\.com)\/.+/i] patterns: [/^https?:\/\/(www\.)?meetu(\.ps|p\.com)\/.+/i]
}, { }, {
@ -3918,63 +3937,72 @@ var others = [{
settings: { settings: {
title: 'Mixcloud', title: 'Mixcloud',
icon: _icons__WEBPACK_IMPORTED_MODULE_0__["embedAudioIcon"], icon: _icons__WEBPACK_IMPORTED_MODULE_0__["embedAudioIcon"],
keywords: [Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('music'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('audio')] keywords: [Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('music'), Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('audio')],
description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed Mixcloud content')
}, },
patterns: [/^https?:\/\/(www\.)?mixcloud\.com\/.+/i] patterns: [/^https?:\/\/(www\.)?mixcloud\.com\/.+/i]
}, { }, {
name: 'core-embed/photobucket', name: 'core-embed/photobucket',
settings: { settings: {
title: 'Photobucket', title: 'Photobucket',
icon: _icons__WEBPACK_IMPORTED_MODULE_0__["embedPhotoIcon"] icon: _icons__WEBPACK_IMPORTED_MODULE_0__["embedPhotoIcon"],
description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed a Photobucket image')
}, },
patterns: [/^http:\/\/g?i*\.photobucket\.com\/.+/i] patterns: [/^http:\/\/g?i*\.photobucket\.com\/.+/i]
}, { }, {
name: 'core-embed/polldaddy', name: 'core-embed/polldaddy',
settings: { settings: {
title: 'Polldaddy', title: 'Polldaddy',
icon: _icons__WEBPACK_IMPORTED_MODULE_0__["embedContentIcon"] icon: _icons__WEBPACK_IMPORTED_MODULE_0__["embedContentIcon"],
description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed Polldaddy content')
}, },
patterns: [/^https?:\/\/(www\.)?polldaddy\.com\/.+/i] patterns: [/^https?:\/\/(www\.)?polldaddy\.com\/.+/i]
}, { }, {
name: 'core-embed/reddit', name: 'core-embed/reddit',
settings: { settings: {
title: 'Reddit', title: 'Reddit',
icon: _icons__WEBPACK_IMPORTED_MODULE_0__["embedRedditIcon"] icon: _icons__WEBPACK_IMPORTED_MODULE_0__["embedRedditIcon"],
description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed a Reddit thread')
}, },
patterns: [/^https?:\/\/(www\.)?reddit\.com\/.+/i] patterns: [/^https?:\/\/(www\.)?reddit\.com\/.+/i]
}, { }, {
name: 'core-embed/reverbnation', name: 'core-embed/reverbnation',
settings: { settings: {
title: 'ReverbNation', title: 'ReverbNation',
icon: _icons__WEBPACK_IMPORTED_MODULE_0__["embedAudioIcon"] icon: _icons__WEBPACK_IMPORTED_MODULE_0__["embedAudioIcon"],
description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed ReverbNation content')
}, },
patterns: [/^https?:\/\/(www\.)?reverbnation\.com\/.+/i] patterns: [/^https?:\/\/(www\.)?reverbnation\.com\/.+/i]
}, { }, {
name: 'core-embed/screencast', name: 'core-embed/screencast',
settings: { settings: {
title: 'Screencast', title: 'Screencast',
icon: _icons__WEBPACK_IMPORTED_MODULE_0__["embedVideoIcon"] icon: _icons__WEBPACK_IMPORTED_MODULE_0__["embedVideoIcon"],
description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed Screencast content')
}, },
patterns: [/^https?:\/\/(www\.)?screencast\.com\/.+/i] patterns: [/^https?:\/\/(www\.)?screencast\.com\/.+/i]
}, { }, {
name: 'core-embed/scribd', name: 'core-embed/scribd',
settings: { settings: {
title: 'Scribd', title: 'Scribd',
icon: _icons__WEBPACK_IMPORTED_MODULE_0__["embedContentIcon"] icon: _icons__WEBPACK_IMPORTED_MODULE_0__["embedContentIcon"],
description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed Scribd content')
}, },
patterns: [/^https?:\/\/(www\.)?scribd\.com\/.+/i] patterns: [/^https?:\/\/(www\.)?scribd\.com\/.+/i]
}, { }, {
name: 'core-embed/slideshare', name: 'core-embed/slideshare',
settings: { settings: {
title: 'Slideshare', title: 'Slideshare',
icon: _icons__WEBPACK_IMPORTED_MODULE_0__["embedContentIcon"] icon: _icons__WEBPACK_IMPORTED_MODULE_0__["embedContentIcon"],
description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed Slideshare content')
}, },
patterns: [/^https?:\/\/(.+?\.)?slideshare\.net\/.+/i] patterns: [/^https?:\/\/(.+?\.)?slideshare\.net\/.+/i]
}, { }, {
name: 'core-embed/smugmug', name: 'core-embed/smugmug',
settings: { settings: {
title: 'SmugMug', title: 'SmugMug',
icon: _icons__WEBPACK_IMPORTED_MODULE_0__["embedPhotoIcon"] icon: _icons__WEBPACK_IMPORTED_MODULE_0__["embedPhotoIcon"],
description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed SmugMug content')
}, },
patterns: [/^https?:\/\/(www\.)?smugmug\.com\/.+/i] patterns: [/^https?:\/\/(www\.)?smugmug\.com\/.+/i]
}, { }, {
@ -4001,21 +4029,24 @@ var others = [{
content: content content: content
}); });
} }
}] }],
description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed Speaker Deck content')
}, },
patterns: [/^https?:\/\/(www\.)?speakerdeck\.com\/.+/i] patterns: [/^https?:\/\/(www\.)?speakerdeck\.com\/.+/i]
}, { }, {
name: 'core-embed/ted', name: 'core-embed/ted',
settings: { settings: {
title: 'TED', title: 'TED',
icon: _icons__WEBPACK_IMPORTED_MODULE_0__["embedVideoIcon"] icon: _icons__WEBPACK_IMPORTED_MODULE_0__["embedVideoIcon"],
description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed a TED video')
}, },
patterns: [/^https?:\/\/(www\.|embed\.)?ted\.com\/.+/i] patterns: [/^https?:\/\/(www\.|embed\.)?ted\.com\/.+/i]
}, { }, {
name: 'core-embed/tumblr', name: 'core-embed/tumblr',
settings: { settings: {
title: 'Tumblr', title: 'Tumblr',
icon: _icons__WEBPACK_IMPORTED_MODULE_0__["embedTumbrIcon"] icon: _icons__WEBPACK_IMPORTED_MODULE_0__["embedTumbrIcon"],
description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed a Tumblr post')
}, },
patterns: [/^https?:\/\/(www\.)?tumblr\.com\/.+/i] patterns: [/^https?:\/\/(www\.)?tumblr\.com\/.+/i]
}, { }, {
@ -4023,14 +4054,16 @@ var others = [{
settings: { settings: {
title: 'VideoPress', title: 'VideoPress',
icon: _icons__WEBPACK_IMPORTED_MODULE_0__["embedVideoIcon"], icon: _icons__WEBPACK_IMPORTED_MODULE_0__["embedVideoIcon"],
keywords: [Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('video')] keywords: [Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('video')],
description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed a VideoPress video')
}, },
patterns: [/^https?:\/\/videopress\.com\/.+/i] patterns: [/^https?:\/\/videopress\.com\/.+/i]
}, { }, {
name: 'core-embed/wordpress-tv', name: 'core-embed/wordpress-tv',
settings: { settings: {
title: 'WordPress.tv', title: 'WordPress.tv',
icon: _icons__WEBPACK_IMPORTED_MODULE_0__["embedVideoIcon"] icon: _icons__WEBPACK_IMPORTED_MODULE_0__["embedVideoIcon"],
description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed a WordPress.tv video')
}, },
patterns: [/^https?:\/\/wordpress\.tv\/.+/i] patterns: [/^https?:\/\/wordpress\.tv\/.+/i]
}]; }];
@ -4688,7 +4721,7 @@ __webpack_require__.r(__webpack_exports__);
var name = 'core/embed'; var name = 'core/embed';
var settings = Object(_settings__WEBPACK_IMPORTED_MODULE_3__["getEmbedBlockSettings"])({ var settings = Object(_settings__WEBPACK_IMPORTED_MODULE_3__["getEmbedBlockSettings"])({
title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__["_x"])('Embed', 'block title'), title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__["_x"])('Embed', 'block title'),
description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__["__"])('The Embed block allows you to easily add videos, images, tweets, audio, and other content to your post or page.'), description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__["__"])('Embed videos, images, tweets, audio, and other content from external sources.'),
icon: _icons__WEBPACK_IMPORTED_MODULE_2__["embedContentIcon"], icon: _icons__WEBPACK_IMPORTED_MODULE_2__["embedContentIcon"],
// Unknown embeds should not be responsive by default. // Unknown embeds should not be responsive by default.
responsive: false, responsive: false,
@ -5324,7 +5357,7 @@ __webpack_require__.r(__webpack_exports__);
var name = 'core/file'; var name = 'core/file';
var settings = { var settings = {
title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('File'), title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('File'),
description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('Add a link to a file that visitors can download.'), description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('Add a link to a downloadable file.'),
icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_7__["SVG"], { icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_7__["SVG"], {
viewBox: "0 0 24 24", viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg" xmlns: "http://www.w3.org/2000/svg"
@ -6270,7 +6303,7 @@ var blockAttributes = {
var name = 'core/gallery'; var name = 'core/gallery';
var settings = { var settings = {
title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__["__"])('Gallery'), title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__["__"])('Gallery'),
description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__["__"])('Display multiple images in an elegantly organized tiled layout.'), description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__["__"])('Display multiple images in a rich gallery.'),
icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_7__["SVG"], { icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_7__["SVG"], {
viewBox: "0 0 24 24", viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg" xmlns: "http://www.w3.org/2000/svg"
@ -6835,7 +6868,7 @@ var schema = {
var name = 'core/heading'; var name = 'core/heading';
var settings = { var settings = {
title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__["__"])('Heading'), title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__["__"])('Heading'),
description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__["__"])('Introduce topics and help visitors (and search engines!) understand how your content is organized.'), description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__["__"])('Introduce new sections and organize content to help visitors (and search engines) understand the structure of your content.'),
icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_7__["SVG"], { icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_7__["SVG"], {
xmlns: "http://www.w3.org/2000/svg", xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 24 24" viewBox: "0 0 24 24"
@ -7006,7 +7039,7 @@ __webpack_require__.r(__webpack_exports__);
var name = 'core/html'; var name = 'core/html';
var settings = { var settings = {
title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Custom HTML'), title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Custom HTML'),
description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Add your own HTML (and view it right here as you edit!).'), description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Add custom HTML code and preview it as you edit.'),
icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__["SVG"], { icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__["SVG"], {
viewBox: "0 0 24 24", viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg" xmlns: "http://www.w3.org/2000/svg"
@ -8027,7 +8060,7 @@ var schema = {
}; };
var settings = { var settings = {
title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__["__"])('Image'), title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__["__"])('Image'),
description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__["__"])('Theyre worth 1,000 words! Insert a single image.'), description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__["__"])('Insert an image to make a visual statement.'),
icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_9__["SVG"], { icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_9__["SVG"], {
viewBox: "0 0 24 24", viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg" xmlns: "http://www.w3.org/2000/svg"
@ -8601,7 +8634,7 @@ __webpack_require__.r(__webpack_exports__);
var name = 'core/latest-comments'; var name = 'core/latest-comments';
var settings = { var settings = {
title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Latest Comments'), title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Latest Comments'),
description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Show a list of your sites most recent comments.'), description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Display a list of your most recent comments.'),
icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__["SVG"], { icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__["SVG"], {
viewBox: "0 0 24 24", viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg" xmlns: "http://www.w3.org/2000/svg"
@ -9071,7 +9104,7 @@ var schema = {
var name = 'core/list'; var name = 'core/list';
var settings = { var settings = {
title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_10__["__"])('List'), title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_10__["__"])('List'),
description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_10__["__"])('Numbers, bullets, up to you. Add a list of items.'), description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_10__["__"])('Create a bulleted or numbered list.'),
icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_14__["SVG"], { icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_8__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_14__["SVG"], {
viewBox: "0 0 24 24", viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg" xmlns: "http://www.w3.org/2000/svg"
@ -9089,12 +9122,15 @@ var settings = {
blocks: ['core/paragraph'], blocks: ['core/paragraph'],
transform: function transform(blockAttributes) { transform: function transform(blockAttributes) {
return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_11__["createBlock"])('core/list', { return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_11__["createBlock"])('core/list', {
values: Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_13__["toHTMLString"])(Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_13__["join"])(blockAttributes.map(function (_ref) { values: Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_13__["toHTMLString"])({
var content = _ref.content; value: Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_13__["join"])(blockAttributes.map(function (_ref) {
return Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_13__["replace"])(Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_13__["create"])({ var content = _ref.content;
html: content return Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_13__["replace"])(Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_13__["create"])({
}), /\n/g, "\u2028"); html: content
}), "\u2028"), 'li') }), /\n/g, _wordpress_rich_text__WEBPACK_IMPORTED_MODULE_13__["LINE_SEPARATOR"]);
}), _wordpress_rich_text__WEBPACK_IMPORTED_MODULE_13__["LINE_SEPARATOR"]),
multilineTag: 'li'
})
}); });
} }
}, { }, {
@ -9103,10 +9139,13 @@ var settings = {
transform: function transform(_ref2) { transform: function transform(_ref2) {
var value = _ref2.value; var value = _ref2.value;
return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_11__["createBlock"])('core/list', { return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_11__["createBlock"])('core/list', {
values: Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_13__["toHTMLString"])(Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_13__["create"])({ values: Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_13__["toHTMLString"])({
html: value, value: Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_13__["create"])({
multilineTag: 'p' html: value,
}), 'li') multilineTag: 'p'
}),
multilineTag: 'li'
})
}); });
} }
}, { }, {
@ -9148,10 +9187,13 @@ var settings = {
var values = _ref5.values; var values = _ref5.values;
return Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_13__["split"])(Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_13__["create"])({ return Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_13__["split"])(Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_13__["create"])({
html: values, html: values,
multilineTag: 'li' multilineTag: 'li',
}), "\u2028").map(function (piece) { multilineWrapperTags: ['ul', 'ol']
}), _wordpress_rich_text__WEBPACK_IMPORTED_MODULE_13__["LINE_SEPARATOR"]).map(function (piece) {
return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_11__["createBlock"])('core/paragraph', { return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_11__["createBlock"])('core/paragraph', {
content: Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_13__["toHTMLString"])(piece) content: Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_13__["toHTMLString"])({
value: piece
})
}); });
}); });
} }
@ -9161,10 +9203,14 @@ var settings = {
transform: function transform(_ref6) { transform: function transform(_ref6) {
var values = _ref6.values; var values = _ref6.values;
return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_11__["createBlock"])('core/quote', { return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_11__["createBlock"])('core/quote', {
value: Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_13__["toHTMLString"])(Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_13__["create"])({ value: Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_13__["toHTMLString"])({
html: values, value: Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_13__["create"])({
multilineTag: 'li' html: values,
}), 'p') multilineTag: 'li',
multilineWrapperTags: ['ul', 'ol']
}),
multilineTag: 'p'
})
}); });
} }
}] }]
@ -9689,6 +9735,7 @@ var DEFAULT_MEDIA_WIDTH = 50;
var name = 'core/media-text'; var name = 'core/media-text';
var settings = { var settings = {
title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__["__"])('Media & Text'), title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__["__"])('Media & Text'),
description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__["__"])('Set media and words side-by-side media for a richer layout.'),
icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__["SVG"], { icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__["SVG"], {
xmlns: "http://www.w3.org/2000/svg", xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 24 24" viewBox: "0 0 24 24"
@ -10255,7 +10302,7 @@ __webpack_require__.r(__webpack_exports__);
var name = 'core/more'; var name = 'core/more';
var settings = { var settings = {
title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["_x"])('More', 'block name'), title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["_x"])('More', 'block name'),
description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('Want to show only part of this post on your blogs home page? Insert a "More" block where you want the split.'), description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('Want to show only an excerpt of this post on your home page? Use this block to define where you want the separation.'),
icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__["SVG"], { icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__["SVG"], {
viewBox: "0 0 24 24", viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg" xmlns: "http://www.w3.org/2000/svg"
@ -10323,6 +10370,35 @@ var settings = {
}; };
/***/ }),
/***/ "./node_modules/@wordpress/block-library/build-module/nextpage/edit.js":
/*!*****************************************************************************!*\
!*** ./node_modules/@wordpress/block-library/build-module/nextpage/edit.js ***!
\*****************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return NextPageEdit; });
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__);
/**
* WordPress dependencies
*/
function NextPageEdit() {
return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("div", {
className: "wp-block-nextpage"
}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("span", null, Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Page break')));
}
/***/ }), /***/ }),
/***/ "./node_modules/@wordpress/block-library/build-module/nextpage/index.js": /***/ "./node_modules/@wordpress/block-library/build-module/nextpage/index.js":
@ -10344,6 +10420,7 @@ __webpack_require__.r(__webpack_exports__);
/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components"); /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components");
/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./edit */ "./node_modules/@wordpress/block-library/build-module/nextpage/edit.js");
/** /**
@ -10353,10 +10430,11 @@ __webpack_require__.r(__webpack_exports__);
var name = 'core/nextpage'; var name = 'core/nextpage';
var settings = { var settings = {
title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Page break'), title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Page break'),
description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('This block allows you to set break points on your post. Visitors of your blog are then presented with content split into multiple pages.'), description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Separate your content into a multi-page experience.'),
icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__["SVG"], { icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__["SVG"], {
xmlns: "http://www.w3.org/2000/svg", xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 24 24" viewBox: "0 0 24 24"
@ -10387,11 +10465,7 @@ var settings = {
} }
}] }]
}, },
edit: function edit() { edit: _edit__WEBPACK_IMPORTED_MODULE_4__["default"],
return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("div", {
className: "wp-block-nextpage"
}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("span", null, Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Page break')));
},
save: function save() { save: function save() {
return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["RawHTML"], null, '<!--nextpage-->'); return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["RawHTML"], null, '<!--nextpage-->');
} }
@ -10798,7 +10872,7 @@ var schema = {
var name = 'core/paragraph'; var name = 'core/paragraph';
var settings = { var settings = {
title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__["__"])('Paragraph'), title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__["__"])('Paragraph'),
description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__["__"])('Add some basic text.'), description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__["__"])('Start with the building block of all narrative.'),
icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_8__["SVG"], { icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_8__["SVG"], {
xmlns: "http://www.w3.org/2000/svg", xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 24 24" viewBox: "0 0 24 24"
@ -11358,7 +11432,7 @@ var blockAttributes = {
var name = 'core/pullquote'; var name = 'core/pullquote';
var settings = { var settings = {
title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__["__"])('Pullquote'), title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__["__"])('Pullquote'),
description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__["__"])('Highlight a quote from your post or page by displaying it as a graphic element.'), description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__["__"])('Give special visual emphasis to a quote from your text.'),
icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_8__["SVG"], { icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_8__["SVG"], {
viewBox: "0 0 24 24", viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg" xmlns: "http://www.w3.org/2000/svg"
@ -11554,7 +11628,7 @@ var blockAttributes = {
var name = 'core/quote'; var name = 'core/quote';
var settings = { var settings = {
title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__["__"])('Quote'), title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__["__"])('Quote'),
description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__["__"])('Maybe someone else said it better -- add some quoted text.'), description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__["__"])('Give quoted text visual emphasis. "In quoting others, we cite ourselves." — Julio Cortázar'),
icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_9__["SVG"], { icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_9__["SVG"], {
viewBox: "0 0 24 24", viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg" xmlns: "http://www.w3.org/2000/svg"
@ -11582,12 +11656,15 @@ var settings = {
blocks: ['core/paragraph'], blocks: ['core/paragraph'],
transform: function transform(attributes) { transform: function transform(attributes) {
return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_6__["createBlock"])('core/quote', { return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_6__["createBlock"])('core/quote', {
value: Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_8__["toHTMLString"])(Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_8__["join"])(attributes.map(function (_ref) { value: Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_8__["toHTMLString"])({
var content = _ref.content; value: Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_8__["join"])(attributes.map(function (_ref) {
return Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_8__["create"])({ var content = _ref.content;
html: content return Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_8__["create"])({
}); html: content
}), "\u2028"), 'p') });
}), "\u2028"),
multilineTag: 'p'
})
}); });
} }
}, { }, {
@ -11640,18 +11717,20 @@ var settings = {
citation = _ref5.citation; citation = _ref5.citation;
var paragraphs = []; var paragraphs = [];
if (value) { if (value && value !== '<p></p>') {
paragraphs.push.apply(paragraphs, Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__["default"])(Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_8__["split"])(Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_8__["create"])({ paragraphs.push.apply(paragraphs, Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__["default"])(Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_8__["split"])(Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_8__["create"])({
html: value, html: value,
multilineTag: 'p' multilineTag: 'p'
}), "\u2028").map(function (piece) { }), "\u2028").map(function (piece) {
return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_6__["createBlock"])('core/paragraph', { return Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_6__["createBlock"])('core/paragraph', {
content: Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_8__["toHTMLString"])(piece) content: Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_8__["toHTMLString"])({
value: piece
})
}); });
}))); })));
} }
if (citation) { if (citation && citation !== '<p></p>') {
paragraphs.push(Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_6__["createBlock"])('core/paragraph', { paragraphs.push(Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_6__["createBlock"])('core/paragraph', {
content: citation content: citation
})); }));
@ -11688,10 +11767,15 @@ var settings = {
}), "\u2028"); }), "\u2028");
var quotePieces = pieces.slice(1); var quotePieces = pieces.slice(1);
return [Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_6__["createBlock"])('core/heading', { return [Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_6__["createBlock"])('core/heading', {
content: Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_8__["toHTMLString"])(pieces[0]) content: Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_8__["toHTMLString"])({
value: pieces[0]
})
}), Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_6__["createBlock"])('core/quote', Object(_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__["default"])({}, attrs, { }), Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_6__["createBlock"])('core/quote', Object(_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__["default"])({}, attrs, {
citation: citation, citation: citation,
value: Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_8__["toHTMLString"])(quotePieces.length ? Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_8__["join"])(pieces.slice(1), "\u2028") : Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_8__["create"])(), 'p') value: Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_8__["toHTMLString"])({
value: quotePieces.length ? Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_8__["join"])(pieces.slice(1), "\u2028") : Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_8__["create"])(),
multilineTag: 'p'
})
}))]; }))];
} }
}, { }, {
@ -11896,7 +11980,7 @@ __webpack_require__.r(__webpack_exports__);
var name = 'core/separator'; var name = 'core/separator';
var settings = { var settings = {
title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Separator'), title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Separator'),
description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Insert a horizontal line where you want to create a break between ideas.'), description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Create a break between ideas or sections with a horizontal separator.'),
icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__["SVG"], { icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__["SVG"], {
viewBox: "0 0 24 24", viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg" xmlns: "http://www.w3.org/2000/svg"
@ -11986,7 +12070,7 @@ __webpack_require__.r(__webpack_exports__);
var name = 'core/shortcode'; var name = 'core/shortcode';
var settings = { var settings = {
title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('Shortcode'), title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('Shortcode'),
description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('Add a shortcode -- a WordPress-specific snippet of code written between square brackets.'), description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('Insert additional custom elements with a WordPress shortcode.'),
icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__["SVG"], { icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__["SVG"], {
viewBox: "0 0 24 24", viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg" xmlns: "http://www.w3.org/2000/svg"
@ -12101,7 +12185,7 @@ __webpack_require__.r(__webpack_exports__);
var name = 'core/spacer'; var name = 'core/spacer';
var settings = { var settings = {
title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('Spacer'), title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('Spacer'),
description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('Add an element with empty space and custom height.'), description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('Add white space between blocks and customize its height.'),
icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__["SVG"], { icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__["SVG"], {
viewBox: "0 0 24 24", viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg" xmlns: "http://www.w3.org/2000/svg"
@ -12926,7 +13010,7 @@ function getTableSectionAttributeSchema(section) {
var name = 'core/table'; var name = 'core/table';
var settings = { var settings = {
title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('Table'), title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('Table'),
description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('Insert a table -- perfect for sharing charts and data.'), description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__["__"])('Insert a table perfect for sharing charts and data.'),
icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__["SVG"], { icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__["SVG"], {
viewBox: "0 0 24 24", viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg" xmlns: "http://www.w3.org/2000/svg"
@ -13470,7 +13554,7 @@ __webpack_require__.r(__webpack_exports__);
var name = 'core/verse'; var name = 'core/verse';
var settings = { var settings = {
title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Verse'), title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Verse'),
description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('A block for haiku? Why not? Blocks for all the things! (See what we did here?)'), description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Insert poetry. Use special spacing formats. Or quote song lyrics.'),
icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__["SVG"], { icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__["SVG"], {
viewBox: "0 0 24 24", viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg" xmlns: "http://www.w3.org/2000/svg"
@ -13930,7 +14014,7 @@ __webpack_require__.r(__webpack_exports__);
var name = 'core/video'; var name = 'core/video';
var settings = { var settings = {
title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Video'), title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Video'),
description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed a video file and a simple video player.'), description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Embed a video from your media library or upload a new one.'),
icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__["SVG"], { icon: Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__["SVG"], {
viewBox: "0 0 24 24", viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg" xmlns: "http://www.w3.org/2000/svg"

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -987,9 +987,9 @@ __webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "registerSelectors", function() { return registerSelectors; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "registerSelectors", function() { return registerSelectors; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "registerResolvers", function() { return registerResolvers; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "registerResolvers", function() { return registerResolvers; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "use", function() { return use; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "use", function() { return use; });
/* harmony import */ var redux__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! redux */ "./node_modules/redux/es/redux.js"); /* harmony import */ var turbo_combine_reducers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! turbo-combine-reducers */ "./node_modules/turbo-combine-reducers/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "combineReducers", function() { return redux__WEBPACK_IMPORTED_MODULE_0__["combineReducers"]; }); /* harmony import */ var turbo_combine_reducers__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(turbo_combine_reducers__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (default from non-harmony) */ __webpack_require__.d(__webpack_exports__, "combineReducers", function() { return turbo_combine_reducers__WEBPACK_IMPORTED_MODULE_0___default.a; });
/* harmony import */ var _default_registry__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./default-registry */ "./node_modules/@wordpress/data/build-module/default-registry.js"); /* harmony import */ var _default_registry__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./default-registry */ "./node_modules/@wordpress/data/build-module/default-registry.js");
/* harmony import */ var _plugins__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./plugins */ "./node_modules/@wordpress/data/build-module/plugins/index.js"); /* harmony import */ var _plugins__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./plugins */ "./node_modules/@wordpress/data/build-module/plugins/index.js");
/* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "plugins", function() { return _plugins__WEBPACK_IMPORTED_MODULE_2__; }); /* harmony reexport (module object) */ __webpack_require__.d(__webpack_exports__, "plugins", function() { return _plugins__WEBPACK_IMPORTED_MODULE_2__; });
@ -3312,6 +3312,69 @@ function symbolObservablePonyfill(root) {
}; };
/***/ }),
/***/ "./node_modules/turbo-combine-reducers/index.js":
/*!******************************************************!*\
!*** ./node_modules/turbo-combine-reducers/index.js ***!
\******************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
function combineReducers( reducers ) {
var keys = Object.keys( reducers ),
getNextState;
getNextState = ( function() {
var fn, i, key;
fn = 'return {';
for ( i = 0; i < keys.length; i++ ) {
// Rely on Quoted escaping of JSON.stringify with guarantee that
// each member of Object.keys is a string.
//
// "If Type(value) is String, then return the result of calling the
// abstract operation Quote with argument value. [...] The abstract
// operation Quote(value) wraps a String value in double quotes and
// escapes characters within it."
//
// https://www.ecma-international.org/ecma-262/5.1/#sec-15.12.3
key = JSON.stringify( keys[ i ] );
fn += key + ':r[' + key + '](s[' + key + '],a),';
}
fn += '}';
return new Function( 'r,s,a', fn );
} )();
return function combinedReducer( state, action ) {
var nextState, i, key;
// Assumed changed if initial state.
if ( state === undefined ) {
return getNextState( reducers, {}, action );
}
nextState = getNextState( reducers, state, action );
// Determine whether state has changed.
i = keys.length;
while ( i-- ) {
key = keys[ i ];
if ( state[ key ] !== nextState[ key ] ) {
// Return immediately if a changed value is encountered.
return nextState;
}
}
return state;
};
}
module.exports = combineReducers;
/***/ }), /***/ }),
/***/ "./node_modules/webpack/buildin/global.js": /***/ "./node_modules/webpack/buildin/global.js":

File diff suppressed because one or more lines are too long

View File

@ -1944,6 +1944,7 @@ var primary = _wordpress_keycodes__WEBPACK_IMPORTED_MODULE_0__["displayShortcutL
secondary = _wordpress_keycodes__WEBPACK_IMPORTED_MODULE_0__["displayShortcutList"].secondary, secondary = _wordpress_keycodes__WEBPACK_IMPORTED_MODULE_0__["displayShortcutList"].secondary,
access = _wordpress_keycodes__WEBPACK_IMPORTED_MODULE_0__["displayShortcutList"].access, access = _wordpress_keycodes__WEBPACK_IMPORTED_MODULE_0__["displayShortcutList"].access,
ctrl = _wordpress_keycodes__WEBPACK_IMPORTED_MODULE_0__["displayShortcutList"].ctrl, ctrl = _wordpress_keycodes__WEBPACK_IMPORTED_MODULE_0__["displayShortcutList"].ctrl,
alt = _wordpress_keycodes__WEBPACK_IMPORTED_MODULE_0__["displayShortcutList"].alt,
ctrlShift = _wordpress_keycodes__WEBPACK_IMPORTED_MODULE_0__["displayShortcutList"].ctrlShift, ctrlShift = _wordpress_keycodes__WEBPACK_IMPORTED_MODULE_0__["displayShortcutList"].ctrlShift,
shiftAlt = _wordpress_keycodes__WEBPACK_IMPORTED_MODULE_0__["displayShortcutList"].shiftAlt; shiftAlt = _wordpress_keycodes__WEBPACK_IMPORTED_MODULE_0__["displayShortcutList"].shiftAlt;
var globalShortcuts = { var globalShortcuts = {
@ -1981,6 +1982,9 @@ var globalShortcuts = {
}, { }, {
keyCombination: shiftAlt('p'), keyCombination: shiftAlt('p'),
description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Navigate to the previous part of the editor (alternative).') description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Navigate to the previous part of the editor (alternative).')
}, {
keyCombination: alt('F10'),
description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Navigate to the nearest toolbar.')
}, { }, {
keyCombination: secondary('m'), keyCombination: secondary('m'),
description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Switch between Visual Editor and Code Editor.') description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Switch between Visual Editor and Code Editor.')

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -937,10 +937,21 @@ __webpack_require__.r(__webpack_exports__);
var stopKeyPropagation = function stopKeyPropagation(event) { var stopKeyPropagation = function stopKeyPropagation(event) {
return event.stopPropagation(); return event.stopPropagation();
}; };
/**
* Generates the format object that will be applied to the link text.
*
* @param {string} url The href of the link.
* @param {boolean} opensInNewWindow Whether this link will open in a new window.
* @param {Object} text The text that is being hyperlinked.
*
* @return {Object} The final format object.
*/
function createLinkFormat(_ref) { function createLinkFormat(_ref) {
var url = _ref.url, var url = _ref.url,
opensInNewWindow = _ref.opensInNewWindow; opensInNewWindow = _ref.opensInNewWindow,
text = _ref.text;
var format = { var format = {
type: 'core/link', type: 'core/link',
attributes: { attributes: {
@ -949,8 +960,11 @@ function createLinkFormat(_ref) {
}; };
if (opensInNewWindow) { if (opensInNewWindow) {
// translators: accessibility label for external links, where the argument is the link text
var label = Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_7__["sprintf"])(Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_7__["__"])('%s (opens in a new tab)'), text).trim();
format.attributes.target = '_blank'; format.attributes.target = '_blank';
format.attributes.rel = 'noreferrer noopener'; format.attributes.rel = 'noreferrer noopener';
format.attributes['aria-label'] = label;
} }
return format; return format;
@ -1067,7 +1081,8 @@ function (_Component) {
if (!isShowingInput(this.props, this.state)) { if (!isShowingInput(this.props, this.state)) {
onChange(Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_11__["applyFormat"])(value, createLinkFormat({ onChange(Object(_wordpress_rich_text__WEBPACK_IMPORTED_MODULE_11__["applyFormat"])(value, createLinkFormat({
url: url, url: url,
opensInNewWindow: opensInNewWindow opensInNewWindow: opensInNewWindow,
text: value.text
}))); })));
} }
} }
@ -1093,7 +1108,8 @@ function (_Component) {
var url = Object(_wordpress_url__WEBPACK_IMPORTED_MODULE_10__["prependHTTP"])(inputValue); var url = Object(_wordpress_url__WEBPACK_IMPORTED_MODULE_10__["prependHTTP"])(inputValue);
var format = createLinkFormat({ var format = createLinkFormat({
url: url, url: url,
opensInNewWindow: opensInNewWindow opensInNewWindow: opensInNewWindow,
text: value.text
}); });
event.preventDefault(); event.preventDefault();

File diff suppressed because one or more lines are too long

View File

@ -289,6 +289,9 @@ var modifiers = {
ctrl: function ctrl() { ctrl: function ctrl() {
return [CTRL]; return [CTRL];
}, },
alt: function alt() {
return [ALT];
},
ctrlShift: function ctrlShift() { ctrlShift: function ctrlShift() {
return [CTRL, SHIFT]; return [CTRL, SHIFT];
}, },

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -13,7 +13,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '5.1-alpha-44182'; $wp_version = '5.1-alpha-44184';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.