WordPress/wp-includes/js/dist/rich-text.min.js

2 lines
33 KiB
JavaScript
Raw Normal View History

/*! This file is auto-generated */
Block Editor: Updated the WordPress packages from Gutenberg 10.7.0 RC. This also includes: - The removal of the Post Author block. - Renaming build_query_vars_from_query_block function. - Update the block supports. Props gziolo. See #52991. -This line, and those below, will be ignored-- M package-lock.json M package.json M src/wp-includes/assets/script-loader-packages.php M src/wp-includes/block-supports/colors.php AM src/wp-includes/block-supports/elements.php D src/wp-includes/block-supports/padding.php AM src/wp-includes/block-supports/spacing.php M src/wp-includes/block-supports/typography.php M src/wp-includes/blocks/column/block.json M src/wp-includes/blocks/index.php D src/wp-includes/blocks/post-author D src/wp-includes/blocks/post-author.php M src/wp-includes/blocks/post-content.php M src/wp-includes/blocks/post-featured-image.php M src/wp-includes/blocks/query/block.json M src/wp-includes/blocks/query-loop/block.json M src/wp-includes/blocks/query-loop.php M src/wp-includes/blocks/query-pagination/block.json M src/wp-includes/blocks/query-pagination-next.php M src/wp-includes/blocks/query-pagination-numbers.php M src/wp-includes/blocks/site-tagline/block.json M src/wp-includes/blocks/site-title/block.json M src/wp-includes/blocks.php M src/wp-settings.php M tests/phpunit/tests/blocks/block.php M tools/webpack/packages.js Built from https://develop.svn.wordpress.org/trunk@50945 git-svn-id: http://core.svn.wordpress.org/trunk@50554 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-05-21 12:14:23 +02:00
this.wp=this.wp||{},this.wp.richText=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="./node_modules/@wordpress/rich-text/build-module/index.js")}({"./node_modules/@wordpress/rich-text/build-module/index.js":function(e,t,n){"use strict";n.r(t),n.d(t,"store",(function(){return g})),n.d(t,"applyFormat",(function(){return y})),n.d(t,"concat",(function(){return D})),n.d(t,"create",(function(){return w})),n.d(t,"getActiveFormat",(function(){return k})),n.d(t,"getActiveObject",(function(){return M})),n.d(t,"getTextContent",(function(){return $})),n.d(t,"__unstableIsListRootSelected",(function(){return I})),n.d(t,"__unstableIsActiveListType",(function(){return V})),n.d(t,"isCollapsed",(function(){return B})),n.d(t,"isEmpty",(function(){return H})),n.d(t,"__unstableIsEmptyLine",(function(){return K})),n.d(t,"join",(function(){return z})),n.d(t,"registerFormatType",(function(){return q})),n.d(t,"removeFormat",(function(){return U})),n.d(t,"remove",(function(){return G})),n.d(t,"replace",(function(){return Z})),n.d(t,"insert",(function(){return Y})),n.d(t,"__unstableInsertLineSeparator",(function(){return J})),n.d(t,"__unstableRemoveLineSeparator",(function(){return Q})),n.d(t,"insertObject",(function(){return ee})),n.d(t,"slice",(function(){return te})),n.d(t,"split",(function(){return ne})),n.d(t,"__unstableToDom",(function(){return he})),n.d(t,"toHTMLString",(function(){return ye})),n.d(t,"toggleFormat",(function(){return Le})),n.d(t,"__UNSTABLE_LINE_SEPARATOR",(function(){return x})),n.d(t,"unregisterFormatType",(function(){return Ne})),n.d(t,"__unstableCanIndentListItems",(function(){return Re})),n.d(t,"__unstableCanOutdentListItems",(function(){return Ae})),n.d(t,"__unstableIndentListItems",(function(){return Se})),n.d(t,"__unstableOutdentListItems",(function(){return We})),n.d(t,"__unstableChangeListType",(function(){return ke})),n.d(t,"__unstableCreateElement",(function(){return T})),n.d(t,"useAnchorRef",(function(){return $e})),n.d(t,"__experimentalRichText",(function(){return Je})),n.d(t,"__unstableUseRichText",(function(){return Ze})),n.d(t,"__unstableFormatEdit",(function(){return Qe}));var r={};n.r(r),n.d(r,"getFormatTypes",(function(){return u})),n.d(r,"getFormatType",(function(){return l})),n.d(r,"getFormatTypeForBareElement",(function(){return f})),n.d(r,"getFormatTypeForClassName",(function(){return d}));var o={};n.r(o),n.d(o,"addFormatTypes",(function(){return m})),n.d(o,"removeFormatTypes",(function(){return p}));var a=n("@wordpress/data"),s=n("lodash");var c=Object(a.combineReducers)({formatTypes:function(e={},t){switch(t.type){case"ADD_FORMAT_TYPES":return{...e,...Object(s.keyBy)(t.formatTypes,"name")};case"REMOVE_FORMAT_TYPES":return Object(s.omit)(e,t.names)}return e}}),i=n("./node_modules/rememo/es/rememo.js");const u=Object(i.a)(e=>Object.values(e.formatTypes),e=>[e.formatTypes]);function l(e,t){return e.formatTypes[t]}function f(e,t){return Object(s.find)(u(e),({className:e,tagName:n})=>null===e&&t===n)}function d(e,t){return Object(s.find)(u(e),({className:e})=>null!==e&&` ${t} `.indexOf(` ${e} `)>=0)}function m(e){return{type:"ADD_FORMAT_TYPES",formatTypes:Object(s.castArray)(e)}}function p(e){return{type:"REMOVE_FORMAT_TYPES",names:Object(s.castArray)(e