CoreFiles by mySites.guru
index.min.js1 lines, 3,850 bytes, from wordpress-7.0-beta3.zip
Raw History Compare with 7.0-beta2
md5
91d85dfd0a3b69589acc4abd4c46b73d
sha1
6235361014ce0539ab723734fcd9622d088e1fad
sha256
7021015a629513ee6831c4d6e0894389f78630ef7101e4e935399394ebd35668
var G=Object.create;var E=Object.defineProperty;var V=Object.getOwnPropertyDescriptor;var W=Object.getOwnPropertyNames;var J=Object.getPrototypeOf,X=Object.prototype.hasOwnProperty;var m=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var q=(e,r,i,s)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of W(r))!X.call(e,a)&&a!==i&&E(e,a,{get:()=>r[a],enumerable:!(s=V(r,a))||s.enumerable});return e};var l=(e,r,i)=>(i=e!=null?G(J(e)):{},q(r||!e||!e.__esModule?E(i,"default",{value:e,enumerable:!0}):i,e));var h=m((ne,I)=>{I.exports=window.wp.data});var A=m((se,y)=>{y.exports=window.wp.privateApis});var D=m((me,P)=>{P.exports=window.wp.components});var O=m((fe,N)=>{N.exports=window.wp.element});var Y=m((de,L)=>{L.exports=window.wp.i18n});var z=m((ge,j)=>{j.exports=window.ReactJSXRuntime});var b=l(h(),1);var g=l(h(),1);var R=l(A(),1),{lock:T,unlock:f}=(0,R.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/connectors");var w="core/connectors",Q={connectors:{}},Z={registerConnector(e,r){return{type:"REGISTER_CONNECTOR",slug:e,config:r}}};function $(e=Q,r){return r.type==="REGISTER_CONNECTOR"?{...e,connectors:{...e.connectors,[r.slug]:{slug:r.slug,...r.config}}}:e}var U={getConnectors(e){return Object.values(e.connectors)},getConnector(e,r){return e.connectors[r]}},p=(0,g.createReduxStore)(w,{reducer:$});(0,g.register)(p);f(p).registerPrivateActions(Z);f(p).registerPrivateSelectors(U);function ee(e,r){f((0,b.dispatch)(p)).registerConnector(e,r)}var t=l(D(),1),u=l(O(),1),n=l(Y(),1),o=l(z(),1);function re({className:e,icon:r,name:i,description:s,actionArea:a,children:c}){return(0,o.jsx)(t.__experimentalItem,{className:e,children:(0,o.jsxs)(t.__experimentalVStack,{spacing:4,children:[(0,o.jsxs)(t.__experimentalHStack,{alignment:"center",spacing:4,wrap:!0,children:[r,(0,o.jsx)(t.FlexBlock,{children:(0,o.jsxs)(t.__experimentalVStack,{spacing:0,children:[(0,o.jsx)(t.__experimentalText,{weight:600,size:15,children:i}),(0,o.jsx)(t.__experimentalText,{variant:"muted",size:12,children:s})]})}),a]}),c]})})}function te({onSave:e,onRemove:r,initialValue:i="",helpUrl:s,helpLabel:a,readOnly:c=!1}){let[x,H]=(0,u.useState)(i),[_,k]=(0,u.useState)(!1),[S,v]=(0,u.useState)(null),C=a||s?.replace(/^https?:\/\//,""),K=s?(0,u.createInterpolateElement)((0,n.sprintf)((0,n.__)("Get your API key at %s"),"<a></a>"),{a:(0,o.jsx)(t.ExternalLink,{href:s,children:C})}):void 0,M=()=>c?s?(0,u.createInterpolateElement)((0,n.sprintf)((0,n.__)("Your API key is stored securely. You can reset it at %s"),"<a></a>"),{a:(0,o.jsx)(t.ExternalLink,{href:s,children:C})}):(0,n.__)("Your API key is stored securely."):S?(0,o.jsx)("span",{style:{color:"#cc1818"},children:S}):K,F=async()=>{v(null),k(!0);try{await e?.(x)}catch(d){v(d instanceof Error?d.message:(0,n.__)("It was not possible to connect to the provider using this key."))}finally{k(!1)}};return(0,o.jsxs)(t.__experimentalVStack,{spacing:4,className:"connector-settings",style:c?{"--wp-components-color-background":"#f0f0f0"}:void 0,children:[(0,o.jsx)(t.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,n.__)("API Key"),value:x,onChange:d=>{c||(v(null),H(d))},placeholder:"YOUR_API_KEY",disabled:c||_,help:M()}),c?(0,o.jsx)(t.Button,{variant:"link",isDestructive:!0,onClick:r,children:(0,n.__)("Remove and replace")}):(0,o.jsx)(t.__experimentalHStack,{justify:"flex-start",children:(0,o.jsx)(t.Button,{__next40pxDefaultSize:!0,variant:"primary",disabled:!x||_,accessibleWhenDisabled:!0,isBusy:_,onClick:F,children:(0,n.__)("Save")})})]})}var B={};T(B,{store:p,STORE_NAME:w});export{re as __experimentalConnectorItem,te as __experimentalDefaultConnectorSettings,ee as __experimentalRegisterConnector,B as privateApis};

No other release has this exact content. See every version of this file.