CoreFiles by mySites.guru
private-apis.min.js5 lines, 3,033 bytes, from wordpress-7.2-beta2.zip
Raw History Compare with 7.2-beta1
md5
fc585cafd7fd6bb8fe9f0ab963427950
sha1
7d88d9bb569f977207ba10c751d9acf48f980813
sha256
0b836fe0d7fcf71c930e43e00b5c0e9cfcb4e3dae6f6cd23a01465edaade4a83
/*! This file is auto-generated */
(function() {
"use strict";var wp;(wp||={}).privateApis=(()=>{var n=Object.defineProperty;var w=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var u=(r,e)=>{for(var o in e)n(r,o,{get:e[o],enumerable:!0})},c=(r,e,o,d)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of p(e))!l.call(r,s)&&s!==o&&n(r,s,{get:()=>e[s],enumerable:!(d=w(e,s))||d.enumerable});return r};var f=r=>c(n({},"__esModule",{value:!0}),r);var y={};u(y,{__dangerousOptInToUnstableAPIsOnlyForCoreModules:()=>i});var h=["@wordpress/admin-ui","@wordpress/api-fetch","@wordpress/block-directory","@wordpress/block-editor","@wordpress/block-library","@wordpress/blocks","@wordpress/boot","@wordpress/commands","@wordpress/compose","@wordpress/connectors","@wordpress/workflows","@wordpress/components","@wordpress/core-actions","@wordpress/core-commands","@wordpress/core-data","@wordpress/core-fields","@wordpress/customize-widgets","@wordpress/data","@wordpress/edit-post","@wordpress/edit-site","@wordpress/edit-widgets","@wordpress/editor","@wordpress/font-list-route","@wordpress/format-library","@wordpress/notices","@wordpress/patterns","@wordpress/preferences","@wordpress/rich-text","@wordpress/route","@wordpress/router","@wordpress/routes","@wordpress/storybook","@wordpress/theme","@wordpress/dataviews","@wordpress/sync","@wordpress/fields","@wordpress/lazy-editor","@wordpress/media-editor","@wordpress/media-utils","@wordpress/upload-media","@wordpress/global-styles-engine","@wordpress/global-styles-ui","@wordpress/ui","@wordpress/views","@wordpress/widget-dashboard"],b="I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.",i=(r,e)=>{if(!h.includes(e))throw new Error(`You tried to opt-in to unstable APIs as module "${e}". This feature is only for JavaScript modules shipped with WordPress core. Please do not use it in plugins and themes as the unstable APIs will be removed without a warning. If you ignore this error and depend on unstable features, your product will inevitably break on one of the next WordPress releases.`);if(r!==b)throw new Error("You tried to opt-in to unstable APIs without confirming you know the consequences. This feature is only for JavaScript modules shipped with WordPress core. Please do not use it in plugins and themes as the unstable APIs will removed without a warning. If you ignore this error and depend on unstable features, your product will inevitably break on the next WordPress release.");return{lock:m,unlock:g}};function m(r,e){if(!r)throw new Error("Cannot lock an undefined object.");let o=r;t in o||(o[t]={}),a.set(o[t],e)}function g(r){if(!r)throw new Error("Cannot unlock an undefined object.");let e=r;if(!(t in e))throw new Error("Cannot unlock an object that was not locked before. ");return a.get(e[t])}var a=new WeakMap,t=Symbol("Private API ID");return f(y);})();
(window.wp ||= {}).privateApis = wp.privateApis;
})();

The same content is in 8 releases, WordPress 7.2-beta1 to 7.2-RC3. See them all, or every version of this file.