WordPress/wp-includes/js/dist/blocks.min.js

2 lines
143 KiB
JavaScript
Raw Normal View History

this.wp=this.wp||{},this.wp.blocks=function(e){var t={};function r(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(n,a,function(t){return e[t]}.bind(null,a));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s="0ATp")}({"0ATp":function(e,t,r){"use strict";r.r(t),r.d(t,"createBlock",(function(){return _e})),r.d(t,"cloneBlock",(function(){return we})),r.d(t,"getPossibleBlockTransformations",(function(){return ke})),r.d(t,"switchToBlockType",(function(){return Oe})),r.d(t,"getBlockTransforms",(function(){return je})),r.d(t,"findTransform",(function(){return ye})),r.d(t,"parse",(function(){return Xt})),r.d(t,"getBlockAttributes",(function(){return Wt})),r.d(t,"parseWithAttributeSchema",(function(){return Gt})),r.d(t,"pasteHandler",(function(){return qr})),r.d(t,"rawHandler",(function(){return $r})),r.d(t,"getPhrasingContentSchema",(function(){return tr})),r.d(t,"serialize",(function(){return lt})),r.d(t,"getBlockContent",(function(){return it})),r.d(t,"getBlockDefaultClassName",(function(){return rt})),r.d(t,"getBlockMenuDefaultClassName",(function(){return nt})),r.d(t,"getSaveElement",(function(){return at})),r.d(t,"getSaveContent",(function(){return ot})),r.d(t,"isValidBlockContent",(function(){return Mt})),r.d(t,"getCategories",(function(){return Ur})),r.d(t,"setCategories",(function(){return Gr})),r.d(t,"updateCategory",(function(){return Kr})),r.d(t,"registerBlockType",(function(){return ee})),r.d(t,"unregisterBlockType",(function(){return te})),r.d(t,"setFreeformContentHandlerName",(function(){return re})),r.d(t,"getFreeformContentHandlerName",(function(){return ne})),r.d(t,"setUnregisteredTypeHandlerName",(function(){return ae})),r.d(t,"getUnregisteredTypeHandlerName",(function(){return oe})),r.d(t,"setDefaultBlockName",(function(){return ie})),r.d(t,"getDefaultBlockName",(function(){return se})),r.d(t,"getBlockType",(function(){return ce})),r.d(t,"getBlockTypes",(function(){return le})),r.d(t,"getBlockSupport",(function(){return ue})),r.d(t,"hasBlockSupport",(function(){return de})),r.d(t,"isReusableBlock",(function(){return fe})),r.d(t,"getChildBlockNames",(function(){return he})),r.d(t,"hasChildBlocks",(function(){return pe})),r.d(t,"hasChildBlocksWithInserterSupport",(function(){return ge})),r.d(t,"unstable__bootstrapServerSideBlockDefinitions",(function(){return J})),r.d(t,"registerBlockStyle",(function(){return me})),r.d(t,"unregisterBlockStyle",(function(){return be})),r.d(t,"isUnmodifiedDefaultBlock",(function(){return W})),r.d(t,"normalizeIconObject",(function(){return Y})),r.d(t,"isValidIcon",(function(){return Z})),r.d(t,"doBlocksMatchTemplate",(function(){return Wr})),r.d(t,"synchronizeBlocksWithTemplate",(function(){return Zr})),r.d(t,"children",(function(){return zt})),r.d(t,"node",(function(){return qt})),r.d(t,"withBlockContentContext",(function(){return et}));var n={};r.r(n),r.d(n,"getBlockTypes",(function(){return w})),r.d(n,"getBlockType",(function(){return v})),r.d(n,"getBlockStyles",(function(){return k})),r.d(n,"getCategories",(function(){return y})),r.d(n,"getDefaultBlockName",(function(){return j})),r.d(n,"getFreeformFallbackBlockName",(function(){return O})),r.d(n,"getUnregisteredFallbackBlockName",(function(){return x})),r.d(n,"getChildBlockNames",(function(){return C})),r.d(n,"getBlockSupport",(function(){return A})),r.d(n,"hasBlockSupport",(function(){return S})),r.
(function(){function a(e){"use strict";var t={omitExtraWLInCodeBlocks:{defaultValue:!1,describe:"Omit the default extra whiteline added to code blocks",type:"boolean"},noHeaderId:{defaultValue:!1,describe:"Turn on/off generated header id",type:"boolean"},prefixHeaderId:{defaultValue:!1,describe:"Add a prefix to the generated header ids. Passing a string will prefix that string to the header id. Setting to true will add a generic 'section-' prefix",type:"string"},rawPrefixHeaderId:{defaultValue:!1,describe:'Setting this option to true will prevent showdown from modifying the prefix. This might result in malformed IDs (if, for instance, the " char is used in the prefix)',type:"boolean"},ghCompatibleHeaderId:{defaultValue:!1,describe:"Generate header ids compatible with github style (spaces are replaced with dashes, a bunch of non alphanumeric chars are removed)",type:"boolean"},rawHeaderId:{defaultValue:!1,describe:"Remove only spaces, ' and \" from generated header ids (including prefixes), replacing them with dashes (-). WARNING: This might result in malformed ids",type:"boolean"},headerLevelStart:{defaultValue:!1,describe:"The header blocks level start",type:"integer"},parseImgDimensions:{defaultValue:!1,describe:"Turn on/off image dimension parsing",type:"boolean"},simplifiedAutoLink:{defaultValue:!1,describe:"Turn on/off GFM autolink style",type:"boolean"},excludeTrailingPunctuationFromURLs:{defaultValue:!1,describe:"Excludes trailing punctuation from links generated with autoLinking",type:"boolean"},literalMidWordUnderscores:{defaultValue:!1,describe:"Parse midword underscores as literal underscores",type:"boolean"},literalMidWordAsterisks:{defaultValue:!1,describe:"Parse midword asterisks as literal asterisks",type:"boolean"},strikethrough:{defaultValue:!1,describe:"Turn on/off strikethrough support",type:"boolean"},tables:{defaultValue:!1,describe:"Turn on/off tables support",type:"boolean"},tablesHeaderId:{defaultValue:!1,describe:"Add an id to table headers",type:"boolean"},ghCodeBlocks:{defaultValue:!0,describe:"Turn on/off GFM fenced code blocks support",type:"boolean"},tasklists:{defaultValue:!1,describe:"Turn on/off GFM tasklist support",type:"boolean"},smoothLivePreview:{defaultValue:!1,describe:"Prevents weird effects in live previews due to incomplete input",type:"boolean"},smartIndentationFix:{defaultValue:!1,description:"Tries to smartly fix indentation in es6 strings",type:"boolean"},disableForced4SpacesIndentedSublists:{defaultValue:!1,description:"Disables the requirement of indenting nested sublists by 4 spaces",type:"boolean"},simpleLineBreaks:{defaultValue:!1,description:"Parses simple line breaks as <br> (GFM Style)",type:"boolean"},requireSpaceBeforeHeadingText:{defaultValue:!1,description:"Makes adding a space between `#` and the header text mandatory (GFM Style)",type:"boolean"},ghMentions:{defaultValue:!1,description:"Enables github @mentions",type:"boolean"},ghMentionsLink:{defaultValue:"https://github.com/{u}",description:"Changes the link generated by @mentions. Only applies if ghMentions option is enabled.",type:"string"},encodeEmails:{defaultValue:!0,description:"Encode e-mail addresses through the use of Character Entities, transforming ASCII e-mail addresses into its equivalent decimal entities",type:"boolean"},openLinksInNewWindow:{defaultValue:!1,description:"Open all links in new windows",type:"boolean"},backslashEscapesHTMLTags:{defaultValue:!1,description:"Support for HTML Tag escaping. ex: <div>foo</div>",type:"boolean"},emoji:{defaultValue:!1,description:"Enable emoji support. Ex: `this is a :smile: emoji`",type:"boolean"},underline:{defaultValue:!1,description:"Enable support for underline. Syntax is double or triple underscores: `__underline word__`. With this option enabled, underscores no longer parses into `<em>` and `<strong>`",type:"boolean"},completeHTMLDocument:{defaultValue:!1,description:"Outputs a complete html document, including `<html>`, `<head>` and `<body>` tags",type:"boolean"},metadata:{defaultValue:!1,description:"Enable support for document metadata (defined