CoreFiles by mySites.guru
index.min.js1 lines, 3,840 bytes, from wordpress-7.0-beta4.zip
Raw History Compare with 7.0-beta3
md5
62aa0d4e2ec2a8f5d99378ecab85e458
sha1
3b9962319e0722b3c854a743c24a9736ae018905
sha256
a5658f5546cc8ed52772958faafb8b80ecc34d1f4d67fb29f46cd9ee1431f9d2
var Y=Object.create;var y=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 c of W(r))!X.call(e,c)&&c!==i&&y(e,c,{get:()=>r[c],enumerable:!(s=V(r,c))||s.enumerable});return e};var l=(e,r,i)=>(i=e!=null?Y(J(e)):{},q(r||!e||!e.__esModule?y(i,"default",{value:e,enumerable:!0}):i,e));var _=m((ne,E)=>{E.exports=window.wp.data});var A=m((se,I)=>{I.exports=window.wp.privateApis});var D=m((me,P)=>{P.exports=window.wp.components});var L=m((fe,N)=>{N.exports=window.wp.element});var j=m((de,O)=>{O.exports=window.wp.i18n});var B=m((ge,z)=>{z.exports=window.ReactJSXRuntime});var b=l(_(),1);var g=l(_(),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(L(),1),n=l(j(),1),o=l(B(),1);function re({className:e,icon:r,name:i,description:s,actionArea:c,children:a}){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})]})}),c]}),a]})})}function te({onSave:e,onRemove:r,initialValue:i="",helpUrl:s,helpLabel:c,readOnly:a=!1}){let[x,G]=(0,u.useState)(i),[v,k]=(0,u.useState)(!1),[S,h]=(0,u.useState)(null),C=c||s?.replace(/^https?:\/\//,""),H=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,K=()=>a?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}):H,M=async()=>{h(null),k(!0);try{await e?.(x)}catch(d){h(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:a?{"--wp-components-color-background":"#f0f0f0"}:void 0,children:[(0,o.jsx)(t.TextControl,{__next40pxDefaultSize:!0,label:(0,n.__)("API Key"),value:x,onChange:d=>{a||(h(null),G(d))},placeholder:(0,n.__)("Enter your API key"),disabled:a||v,help:K()}),a?(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||v,accessibleWhenDisabled:!0,isBusy:v,onClick:M,children:(0,n.__)("Save")})})]})}var F={};T(F,{store:p,STORE_NAME:w});export{re as __experimentalConnectorItem,te as __experimentalDefaultConnectorSettings,ee as __experimentalRegisterConnector,F as privateApis};

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