wp/wp-includes/js/dist/autop.js
changeset 19 3d72ae0968f4
parent 18 be944660c56a
child 21 48c4eec2b7e6
--- a/wp/wp-includes/js/dist/autop.js	Wed Sep 21 18:19:35 2022 +0200
+++ b/wp/wp-includes/js/dist/autop.js	Tue Sep 27 16:37:53 2022 +0200
@@ -1,99 +1,44 @@
-this["wp"] = this["wp"] || {}; this["wp"]["autop"] =
-/******/ (function(modules) { // webpackBootstrap
-/******/ 	// The module cache
-/******/ 	var installedModules = {};
-/******/
-/******/ 	// The require function
-/******/ 	function __webpack_require__(moduleId) {
-/******/
-/******/ 		// Check if module is in cache
-/******/ 		if(installedModules[moduleId]) {
-/******/ 			return installedModules[moduleId].exports;
-/******/ 		}
-/******/ 		// Create a new module (and put it into the cache)
-/******/ 		var module = installedModules[moduleId] = {
-/******/ 			i: moduleId,
-/******/ 			l: false,
-/******/ 			exports: {}
+/******/ (function() { // webpackBootstrap
+/******/ 	"use strict";
+/******/ 	// The require scope
+/******/ 	var __webpack_require__ = {};
+/******/ 	
+/************************************************************************/
+/******/ 	/* webpack/runtime/define property getters */
+/******/ 	!function() {
+/******/ 		// define getter functions for harmony exports
+/******/ 		__webpack_require__.d = function(exports, definition) {
+/******/ 			for(var key in definition) {
+/******/ 				if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
+/******/ 					Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
+/******/ 				}
+/******/ 			}
 /******/ 		};
-/******/
-/******/ 		// Execute the module function
-/******/ 		modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
-/******/
-/******/ 		// Flag the module as loaded
-/******/ 		module.l = true;
-/******/
-/******/ 		// Return the exports of the module
-/******/ 		return module.exports;
-/******/ 	}
-/******/
-/******/
-/******/ 	// expose the modules object (__webpack_modules__)
-/******/ 	__webpack_require__.m = modules;
-/******/
-/******/ 	// expose the module cache
-/******/ 	__webpack_require__.c = installedModules;
-/******/
-/******/ 	// define getter function for harmony exports
-/******/ 	__webpack_require__.d = function(exports, name, getter) {
-/******/ 		if(!__webpack_require__.o(exports, name)) {
-/******/ 			Object.defineProperty(exports, name, { enumerable: true, get: getter });
-/******/ 		}
-/******/ 	};
-/******/
-/******/ 	// define __esModule on exports
-/******/ 	__webpack_require__.r = function(exports) {
-/******/ 		if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
-/******/ 			Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
-/******/ 		}
-/******/ 		Object.defineProperty(exports, '__esModule', { value: true });
-/******/ 	};
-/******/
-/******/ 	// create a fake namespace object
-/******/ 	// mode & 1: value is a module id, require it
-/******/ 	// mode & 2: merge all properties of value into the ns
-/******/ 	// mode & 4: return value when already ns object
-/******/ 	// mode & 8|1: behave like require
-/******/ 	__webpack_require__.t = function(value, mode) {
-/******/ 		if(mode & 1) value = __webpack_require__(value);
-/******/ 		if(mode & 8) return value;
-/******/ 		if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
-/******/ 		var ns = Object.create(null);
-/******/ 		__webpack_require__.r(ns);
-/******/ 		Object.defineProperty(ns, 'default', { enumerable: true, value: value });
-/******/ 		if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
-/******/ 		return ns;
-/******/ 	};
-/******/
-/******/ 	// getDefaultExport function for compatibility with non-harmony modules
-/******/ 	__webpack_require__.n = function(module) {
-/******/ 		var getter = module && module.__esModule ?
-/******/ 			function getDefault() { return module['default']; } :
-/******/ 			function getModuleExports() { return module; };
-/******/ 		__webpack_require__.d(getter, 'a', getter);
-/******/ 		return getter;
-/******/ 	};
-/******/
-/******/ 	// Object.prototype.hasOwnProperty.call
-/******/ 	__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
-/******/
-/******/ 	// __webpack_public_path__
-/******/ 	__webpack_require__.p = "";
-/******/
-/******/
-/******/ 	// Load entry module and return exports
-/******/ 	return __webpack_require__(__webpack_require__.s = "zbAn");
-/******/ })
+/******/ 	}();
+/******/ 	
+/******/ 	/* webpack/runtime/hasOwnProperty shorthand */
+/******/ 	!function() {
+/******/ 		__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
+/******/ 	}();
+/******/ 	
+/******/ 	/* webpack/runtime/make namespace object */
+/******/ 	!function() {
+/******/ 		// define __esModule on exports
+/******/ 		__webpack_require__.r = function(exports) {
+/******/ 			if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
+/******/ 				Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
+/******/ 			}
+/******/ 			Object.defineProperty(exports, '__esModule', { value: true });
+/******/ 		};
+/******/ 	}();
+/******/ 	
 /************************************************************************/
-/******/ ({
-
-/***/ "zbAn":
-/***/ (function(module, __webpack_exports__, __webpack_require__) {
-
-"use strict";
+var __webpack_exports__ = {};
 __webpack_require__.r(__webpack_exports__);
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "autop", function() { return autop; });
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "removep", function() { return removep; });
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */   "autop": function() { return /* binding */ autop; },
+/* harmony export */   "removep": function() { return /* binding */ removep; }
+/* harmony export */ });
 /**
  * The regular expression for an HTML element.
  *
@@ -132,8 +77,9 @@
 /**
  * Separate HTML elements and comments from the text.
  *
- * @param  {string} input The text which has to be formatted.
- * @return {string[]}        The formatted text.
+ * @param {string} input The text which has to be formatted.
+ *
+ * @return {string[]} The formatted text.
  */
 
 
@@ -164,9 +110,10 @@
 /**
  * Replace characters or phrases within HTML elements only.
  *
- * @param  {string}                haystack     The text which has to be formatted.
- * @param  {Record<string,string>} replacePairs In the form {from: 'to', …}.
- * @return {string}                             The formatted text.
+ * @param {string}                haystack     The text which has to be formatted.
+ * @param {Record<string,string>} replacePairs In the form {from: 'to', …}.
+ *
+ * @return {string} The formatted text.
  */
 
 
@@ -203,9 +150,9 @@
  * replace double line-breaks with HTML paragraph tags. The remaining line-
  * breaks after conversion become `<br />` tags, unless br is set to 'false'.
  *
- * @param  {string}    text The text which has to be formatted.
- * @param  {boolean}   br   Optional. If set, will convert all remaining line-
- *                          breaks after paragraphing. Default true.
+ * @param {string}  text The text which has to be formatted.
+ * @param {boolean} br   Optional. If set, will convert all remaining line-
+ *                       breaks after paragraphing. Default true.
  *
  * @example
  *```js
@@ -213,11 +160,12 @@
  * autop( 'my text' ); // "<p>my text</p>"
  * ```
  *
- * @return {string}         Text which has been converted into paragraph tags.
+ * @return {string} Text which has been converted into paragraph tags.
  */
 
 
-function autop(text, br = true) {
+function autop(text) {
+  let br = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
   const preTags = [];
 
   if (text.trim() === '') {
@@ -360,7 +308,7 @@
  * Replaces `<p>` tags with two line breaks except where the `<p>` has attributes.
  * Unifies whitespace. Indents `<li>`, `<dt>` and `<dd>` for better readability.
  *
- * @param  {string} html The content from the editor.
+ * @param {string} html The content from the editor.
  *
  * @example
  * ```js
@@ -368,7 +316,7 @@
  * removep( '<p>my text</p>' ); // "my text"
  * ```
  *
- * @return {string}      The content with stripped paragraph tags.
+ * @return {string} The content with stripped paragraph tags.
  */
 
 function removep(html) {
@@ -489,7 +437,6 @@
   return html;
 }
 
-
-/***/ })
-
-/******/ });
\ No newline at end of file
+(window.wp = window.wp || {}).autop = __webpack_exports__;
+/******/ })()
+;
\ No newline at end of file