Plugin Updates
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+3
-3
@@ -1,8 +1,8 @@
|
||||
(()=>{"use strict";var e={n:t=>{var i=t&&t.__esModule?()=>t.default:()=>t;return e.d(i,{a:i}),i},d:(t,i)=>{for(var o in i)e.o(i,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:i[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{FACEBOOK_IMAGE_SIZES:()=>b,SocialMetadataPreviewForm:()=>W,TWITTER_IMAGE_SIZES:()=>I,actions:()=>i,determineFacebookImageMode:()=>v,selectorsFactory:()=>E,socialReducer:()=>R});var i={};e.r(i),e.d(i,{CLEAR_SOCIAL_IMAGE:()=>c,SET_SOCIAL_DESCRIPTION:()=>r,SET_SOCIAL_IMAGE:()=>l,SET_SOCIAL_IMAGE_ID:()=>s,SET_SOCIAL_IMAGE_TYPE:()=>a,SET_SOCIAL_IMAGE_URL:()=>n,SET_SOCIAL_TITLE:()=>o,clearSocialPreviewImage:()=>S,setSocialPreviewDescription:()=>p,setSocialPreviewImage:()=>h,setSocialPreviewImageId:()=>u,setSocialPreviewImageType:()=>g,setSocialPreviewImageUrl:()=>m,setSocialPreviewTitle:()=>d});const o="SET_SOCIAL_TITLE",r="SET_SOCIAL_DESCRIPTION",n="SET_SOCIAL_IMAGE_URL",a="SET_SOCIAL_IMAGE_TYPE",s="SET_SOCIAL_IMAGE_ID",l="SET_SOCIAL_IMAGE",c="CLEAR_SOCIAL_IMAGE",d=(e,t)=>({type:o,platform:t,title:e}),p=(e,t)=>({type:r,platform:t,description:e}),m=(e,t)=>({type:n,platform:t,imageUrl:e}),g=(e,t)=>({type:a,platform:t,imageType:e}),u=(e,t)=>({type:s,platform:t,imageId:e}),h=(e,t)=>({type:l,platform:t,image:e}),S=e=>({type:c,platform:e}),w=window.lodash,E=e=>{const t={getFacebookData:t=>(0,w.get)(t,`${e}.facebook`,{}),getFacebookTitle:e=>t.getFacebookData(e).title,getFacebookDescription:e=>t.getFacebookData(e).description,getFacebookImageUrl:e=>t.getFacebookData(e).image.url,getFacebookImageType:e=>t.getFacebookData(e).image.type,getTwitterData:t=>(0,w.get)(t,`${e}.twitter`,{}),getTwitterTitle:e=>t.getTwitterData(e).title,getTwitterDescription:e=>t.getTwitterData(e).description,getTwitterImageUrl:e=>t.getTwitterData(e).image.url,getTwitterImageType:e=>t.getTwitterData(e).image.type};return t},I={squareWidth:125,squareHeight:125,landscapeWidth:506,landscapeHeight:265,aspectRatio:50.2},b={squareWidth:158,squareHeight:158,landscapeWidth:527,landscapeHeight:273,portraitWidth:158,portraitHeight:237,aspectRatio:52.2,largeThreshold:{width:446,height:233}},v=function(e){const{largeThreshold:t}=b;return e.height>e.width?"portrait":e.width<t.width||e.height<t.height||e.height===e.width?"square":"landscape"},T=window.yoast.redux,f={title:"",description:"",warnings:[],image:{bytes:null,type:null,height:null,width:null,url:"",id:null,alt:""}};function _(e=f,t){switch(t.type){case o:return{...e,title:t.title};case r:return{...e,description:t.description};case l:return{...e,image:{...t.image}};case n:return{...e,image:{...e.image,url:t.imageUrl}};case a:return{...e,image:{...e.image,type:t.imageType}};case s:return{...e,image:{...e.image,id:t.imageId}};case c:return{...e,image:{bytes:null,type:null,height:null,width:null,url:"",id:null,alt:""}};default:return e}}function y(e,t){return(i,o)=>{const{platform:r}=o;return void 0===i?f:r!==t?i:e(i,o)}}const R=(0,T.combineReducers)({facebook:y(_,"facebook"),twitter:y(_,"twitter")}),A=window.React,C=window.wp.i18n,P=window.yoast.helpers,M=window.yoast.replacementVariableEditor,D=window.yoast.styleGuide,L=window.yoast.propTypes;var O=e.n(L);const k=window.yoast.styledComponents;var F=e.n(k);const H=window.yoast.componentsNew,x=e=>e?D.colors.$color_snippet_focus:D.colors.$color_snippet_hover,V=F().div`
|
||||
(()=>{"use strict";var e={n:t=>{var i=t&&t.__esModule?()=>t.default:()=>t;return e.d(i,{a:i}),i},d:(t,i)=>{for(var o in i)e.o(i,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:i[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{FACEBOOK_IMAGE_SIZES:()=>I,SocialMetadataPreviewForm:()=>W,TWITTER_IMAGE_SIZES:()=>w,actions:()=>i,determineFacebookImageMode:()=>b,selectorsFactory:()=>T,socialReducer:()=>R});var i={};e.r(i),e.d(i,{CLEAR_SOCIAL_IMAGE:()=>c,SET_SOCIAL_DESCRIPTION:()=>r,SET_SOCIAL_IMAGE:()=>l,SET_SOCIAL_IMAGE_ID:()=>s,SET_SOCIAL_IMAGE_TYPE:()=>a,SET_SOCIAL_IMAGE_URL:()=>n,SET_SOCIAL_TITLE:()=>o,clearSocialPreviewImage:()=>E,setSocialPreviewDescription:()=>p,setSocialPreviewImage:()=>h,setSocialPreviewImageId:()=>u,setSocialPreviewImageType:()=>g,setSocialPreviewImageUrl:()=>m,setSocialPreviewTitle:()=>d});const o="SET_SOCIAL_TITLE",r="SET_SOCIAL_DESCRIPTION",n="SET_SOCIAL_IMAGE_URL",a="SET_SOCIAL_IMAGE_TYPE",s="SET_SOCIAL_IMAGE_ID",l="SET_SOCIAL_IMAGE",c="CLEAR_SOCIAL_IMAGE",d=(e,t)=>({type:o,platform:t,title:e}),p=(e,t)=>({type:r,platform:t,description:e}),m=(e,t)=>({type:n,platform:t,imageUrl:e}),g=(e,t)=>({type:a,platform:t,imageType:e}),u=(e,t)=>({type:s,platform:t,imageId:e}),h=(e,t)=>({type:l,platform:t,image:e}),E=e=>({type:c,platform:e}),S=window.lodash,T=e=>{const t={getFacebookData:t=>(0,S.get)(t,`${e}.facebook`,{}),getFacebookTitle:e=>t.getFacebookData(e).title,getFacebookDescription:e=>t.getFacebookData(e).description,getFacebookImageUrl:e=>t.getFacebookData(e).image.url,getFacebookImageType:e=>t.getFacebookData(e).image.type,getTwitterData:t=>(0,S.get)(t,`${e}.twitter`,{}),getTwitterTitle:e=>t.getTwitterData(e).title,getTwitterDescription:e=>t.getTwitterData(e).description,getTwitterImageUrl:e=>t.getTwitterData(e).image.url,getTwitterImageType:e=>t.getTwitterData(e).image.type};return t},w={squareWidth:125,squareHeight:125,landscapeWidth:506,landscapeHeight:265,aspectRatio:50.2},I={squareWidth:158,squareHeight:158,landscapeWidth:527,landscapeHeight:273,portraitWidth:158,portraitHeight:237,aspectRatio:52.2,largeThreshold:{width:446,height:233}},b=function(e){const{largeThreshold:t}=I;return e.height>e.width?"portrait":e.width<t.width||e.height<t.height||e.height===e.width?"square":"landscape"},v=window.yoast.redux,_={title:"",description:"",warnings:[],image:{bytes:null,type:null,height:null,width:null,url:"",id:null,alt:""}};function f(e=_,t){switch(t.type){case o:return{...e,title:t.title};case r:return{...e,description:t.description};case l:return{...e,image:{...t.image}};case n:return{...e,image:{...e.image,url:t.imageUrl}};case a:return{...e,image:{...e.image,type:t.imageType}};case s:return{...e,image:{...e.image,id:t.imageId}};case c:return{...e,image:{bytes:null,type:null,height:null,width:null,url:"",id:null,alt:""}};default:return e}}function y(e,t){return(i,o)=>{const{platform:r}=o;return void 0===i?_:r!==t?i:e(i,o)}}const R=(0,v.combineReducers)({facebook:y(f,"facebook"),twitter:y(f,"twitter")}),A=window.React,C=window.wp.i18n,P=window.yoast.helpers,M=window.yoast.replacementVariableEditor,D=window.yoast.styleGuide,L=window.yoast.propTypes;var F=e.n(L);const O=window.yoast.styledComponents;var k=e.n(O);const H=window.yoast.componentsNew,x=e=>e?D.colors.$color_snippet_focus:D.colors.$color_snippet_hover,V=k().div`
|
||||
position: relative;
|
||||
|
||||
${e=>!e.isPremium&&"\n\t\t.yoast-image-select__preview {\n\t\t\twidth: 130px;\n\t\t\tmin-height: 72px;\n\t\t\tmax-height: 130px;\n\t\t}\n\t"};
|
||||
`;V.propTypes={isPremium:O().bool},V.defaultProps={isPremium:!1};const q=F().div`
|
||||
`;V.propTypes={isPremium:F().bool},V.defaultProps={isPremium:!1};const q=k().div`
|
||||
display: ${e=>e.isActive||e.isHovered?"block":"none"};
|
||||
|
||||
::before {
|
||||
@@ -20,4 +20,4 @@
|
||||
background-position: center;
|
||||
content: "";
|
||||
}
|
||||
`;q.propTypes={isActive:O().bool,isHovered:O().bool},q.defaultProps={isActive:!1,isHovered:!1};const G=(U=H.ImageSelect,function e(t){e.propTypes={isActive:O().bool.isRequired,isHovered:O().bool.isRequired,isPremium:O().bool};const{isActive:i,isHovered:o,isPremium:r,...n}=t;return(0,A.createElement)(V,{isPremium:r},(0,A.createElement)(q,{isActive:i,isHovered:o}),(0,A.createElement)(U,{...n}))});var U;class j extends A.Component{constructor(e){super(e),this.onImageEnter=e.onMouseHover.bind(this,"image"),this.onTitleEnter=e.onMouseHover.bind(this,"title"),this.onDescriptionEnter=e.onMouseHover.bind(this,"description"),this.onLeave=e.onMouseHover.bind(this,""),this.onImageSelectBlur=e.onSelect.bind(this,""),this.onSelectTitleEditor=this.onSelectEditor.bind(this,"title"),this.onSelectDescriptionEditor=this.onSelectEditor.bind(this,"description"),this.onDeselectEditor=this.onSelectEditor.bind(this,""),this.onTitleEditorRef=this.onSetEditorRef.bind(this,"title"),this.onDescriptionEditorRef=this.onSetEditorRef.bind(this,"description")}onSelectEditor(e){this.props.onSelect(e)}onSetEditorRef(e,t){this.props.setEditorRef(e,t)}render(){const{socialMediumName:e,onSelectImageClick:t,onRemoveImageClick:i,title:o,titleInputPlaceholder:r,description:n,descriptionInputPlaceholder:a,onTitleChange:s,onDescriptionChange:l,onReplacementVariableSearchChange:c,hoveredField:d,activeField:p,isPremium:m,replacementVariables:g,recommendedReplacementVariables:u,imageWarnings:h,imageUrl:S,imageAltText:w,idSuffix:E}=this.props,I=!!S,b="Twitter"===e?(0,C.__)("Twitter image","wordpress-seo"):(0,C.__)("Social image","wordpress-seo"),v="Twitter"===e?(0,C.__)("Twitter title","wordpress-seo"):(0,C.__)("Social title","wordpress-seo"),T="Twitter"===e?(0,C.__)("Twitter description","wordpress-seo"):(0,C.__)("Social description","wordpress-seo"),f=e.toLowerCase();return(0,A.createElement)(A.Fragment,null,(0,A.createElement)(G,{label:b,onClick:t,onRemoveImageClick:i,warnings:h,imageSelected:I,onMouseEnter:this.onImageEnter,onMouseLeave:this.onLeave,isActive:"image"===p,isHovered:"image"===d,imageUrl:S,imageAltText:w,hasPreview:!m,imageUrlInputId:(0,P.join)([f,"url-input",E]),selectImageButtonId:(0,P.join)([f,"select-button",E]),replaceImageButtonId:(0,P.join)([f,"replace-button",E]),removeImageButtonId:(0,P.join)([f,"remove-button",E]),isPremium:m}),(0,A.createElement)(M.ReplacementVariableEditor,{onChange:s,content:o,placeholder:r,replacementVariables:g,recommendedReplacementVariables:u,type:"title",fieldId:(0,P.join)([f,"title-input",E]),label:v,onMouseEnter:this.onTitleEnter,onMouseLeave:this.onLeave,onSearchChange:c,isActive:"title"===p,isHovered:"title"===d,withCaret:!0,onFocus:this.onSelectTitleEditor,onBlur:this.onDeselectEditor,editorRef:this.onTitleEditorRef}),(0,A.createElement)(M.ReplacementVariableEditor,{onChange:l,content:n,placeholder:a,replacementVariables:g,recommendedReplacementVariables:u,type:"description",fieldId:(0,P.join)([f,"description-input",E]),label:T,onMouseEnter:this.onDescriptionEnter,onMouseLeave:this.onLeave,onSearchChange:c,isActive:"description"===p,isHovered:"description"===d,withCaret:!0,onFocus:this.onSelectDescriptionEditor,onBlur:this.onDeselectEditor,editorRef:this.onDescriptionEditorRef}))}}j.propTypes={socialMediumName:O().oneOf(["Twitter","Social"]).isRequired,onSelectImageClick:O().func.isRequired,onRemoveImageClick:O().func.isRequired,title:O().string.isRequired,description:O().string.isRequired,onTitleChange:O().func.isRequired,onDescriptionChange:O().func.isRequired,onReplacementVariableSearchChange:O().func,isPremium:O().bool,hoveredField:O().string,activeField:O().string,onSelect:O().func,replacementVariables:M.replacementVariablesShape,recommendedReplacementVariables:O().arrayOf(O().string),imageWarnings:O().array,imageUrl:O().string,imageAltText:O().string,titleInputPlaceholder:O().string,descriptionInputPlaceholder:O().string,setEditorRef:O().func,onMouseHover:O().func,idSuffix:O().string},j.defaultProps={replacementVariables:[],recommendedReplacementVariables:[],imageWarnings:[],hoveredField:"",activeField:"",onSelect:()=>{},onReplacementVariableSearchChange:null,imageUrl:"",imageAltText:"",titleInputPlaceholder:"",descriptionInputPlaceholder:"",isPremium:!1,setEditorRef:()=>{},onMouseHover:()=>{},idSuffix:""};const W=j;(window.yoast=window.yoast||{}).socialMetadataForms=t})();
|
||||
`;q.propTypes={isActive:F().bool,isHovered:F().bool},q.defaultProps={isActive:!1,isHovered:!1};const G=(U=H.ImageSelect,function e(t){e.propTypes={isActive:F().bool.isRequired,isHovered:F().bool.isRequired,isPremium:F().bool};const{isActive:i,isHovered:o,isPremium:r,...n}=t;return(0,A.createElement)(V,{isPremium:r},(0,A.createElement)(q,{isActive:i,isHovered:o}),(0,A.createElement)(U,{...n}))});var U;class j extends A.Component{constructor(e){super(e),this.onImageEnter=e.onMouseHover.bind(this,"image"),this.onTitleEnter=e.onMouseHover.bind(this,"title"),this.onDescriptionEnter=e.onMouseHover.bind(this,"description"),this.onLeave=e.onMouseHover.bind(this,""),this.onImageSelectBlur=e.onSelect.bind(this,""),this.onSelectTitleEditor=this.onSelectEditor.bind(this,"title"),this.onSelectDescriptionEditor=this.onSelectEditor.bind(this,"description"),this.onDeselectEditor=this.onSelectEditor.bind(this,""),this.onTitleEditorRef=this.onSetEditorRef.bind(this,"title"),this.onDescriptionEditorRef=this.onSetEditorRef.bind(this,"description")}onSelectEditor(e){this.props.onSelect(e)}onSetEditorRef(e,t){this.props.setEditorRef(e,t)}getFieldsTitles(e){return"Twitter"===e?{imageSelectTitle:(0,C.__)("Twitter image","wordpress-seo"),titleEditorTitle:(0,C.__)("Twitter title","wordpress-seo"),descEditorTitle:(0,C.__)("Twitter description","wordpress-seo")}:"X"===e?{imageSelectTitle:(0,C.__)("X image","wordpress-seo"),titleEditorTitle:(0,C.__)("X title","wordpress-seo"),descEditorTitle:(0,C.__)("X description","wordpress-seo")}:{imageSelectTitle:(0,C.__)("Social image","wordpress-seo"),titleEditorTitle:(0,C.__)("Social title","wordpress-seo"),descEditorTitle:(0,C.__)("Social description","wordpress-seo")}}render(){const{socialMediumName:e,onSelectImageClick:t,onRemoveImageClick:i,title:o,titleInputPlaceholder:r,description:n,descriptionInputPlaceholder:a,onTitleChange:s,onDescriptionChange:l,onReplacementVariableSearchChange:c,hoveredField:d,activeField:p,isPremium:m,replacementVariables:g,recommendedReplacementVariables:u,imageWarnings:h,imageUrl:E,imageAltText:S,idSuffix:T}=this.props,w=this.getFieldsTitles(e),I=!!E,b=w.imageSelectTitle,v=w.titleEditorTitle,_=w.descEditorTitle,f=e.toLowerCase();return(0,A.createElement)(A.Fragment,null,(0,A.createElement)(G,{label:b,onClick:t,onRemoveImageClick:i,warnings:h,imageSelected:I,onMouseEnter:this.onImageEnter,onMouseLeave:this.onLeave,isActive:"image"===p,isHovered:"image"===d,imageUrl:E,imageAltText:S,hasPreview:!m,imageUrlInputId:(0,P.join)([f,"url-input",T]),selectImageButtonId:(0,P.join)([f,"select-button",T]),replaceImageButtonId:(0,P.join)([f,"replace-button",T]),removeImageButtonId:(0,P.join)([f,"remove-button",T]),isPremium:m}),(0,A.createElement)(M.ReplacementVariableEditor,{onChange:s,content:o,placeholder:r,replacementVariables:g,recommendedReplacementVariables:u,type:"title",fieldId:(0,P.join)([f,"title-input",T]),label:v,onMouseEnter:this.onTitleEnter,onMouseLeave:this.onLeave,onSearchChange:c,isActive:"title"===p,isHovered:"title"===d,withCaret:!0,onFocus:this.onSelectTitleEditor,onBlur:this.onDeselectEditor,editorRef:this.onTitleEditorRef}),(0,A.createElement)(M.ReplacementVariableEditor,{onChange:l,content:n,placeholder:a,replacementVariables:g,recommendedReplacementVariables:u,type:"description",fieldId:(0,P.join)([f,"description-input",T]),label:_,onMouseEnter:this.onDescriptionEnter,onMouseLeave:this.onLeave,onSearchChange:c,isActive:"description"===p,isHovered:"description"===d,withCaret:!0,onFocus:this.onSelectDescriptionEditor,onBlur:this.onDeselectEditor,editorRef:this.onDescriptionEditorRef}))}}j.propTypes={socialMediumName:F().oneOf(["Twitter","X","Social"]).isRequired,onSelectImageClick:F().func.isRequired,onRemoveImageClick:F().func.isRequired,title:F().string.isRequired,description:F().string.isRequired,onTitleChange:F().func.isRequired,onDescriptionChange:F().func.isRequired,onReplacementVariableSearchChange:F().func,isPremium:F().bool,hoveredField:F().string,activeField:F().string,onSelect:F().func,replacementVariables:M.replacementVariablesShape,recommendedReplacementVariables:F().arrayOf(F().string),imageWarnings:F().array,imageUrl:F().string,imageAltText:F().string,titleInputPlaceholder:F().string,descriptionInputPlaceholder:F().string,setEditorRef:F().func,onMouseHover:F().func,idSuffix:F().string},j.defaultProps={replacementVariables:[],recommendedReplacementVariables:[],imageWarnings:[],hoveredField:"",activeField:"",onSelect:()=>{},onReplacementVariableSearchChange:null,imageUrl:"",imageAltText:"",titleInputPlaceholder:"",descriptionInputPlaceholder:"",isPremium:!1,setEditorRef:()=>{},onMouseHover:()=>{},idSuffix:""};const W=j;(window.yoast=window.yoast||{}).socialMetadataForms=t})();
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+23
-23
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+3
-3
@@ -1,8 +1,8 @@
|
||||
(()=>{var e={4530:(e,t)=>{var s;!function(){"use strict";var r={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var s=arguments[t];if(s){var n=typeof s;if("string"===n||"number"===n)e.push(s);else if(Array.isArray(s)){if(s.length){var l=a.apply(null,s);l&&e.push(l)}}else if("object"===n){if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]")){e.push(s.toString());continue}for(var o in s)r.call(s,o)&&s[o]&&e.push(o)}}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(s=function(){return a}.apply(t,[]))||(e.exports=s)}()}},t={};function s(r){var a=t[r];if(void 0!==a)return a.exports;var n=t[r]={exports:{}};return e[r](n,n.exports,s),n.exports}s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var r in t)s.o(t,r)&&!s.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=window.React,t=window.wp.components,r=window.wp.data,a=window.wp.domReady;var n=s.n(a);const l=window.wp.element,o=window.yoast.uiLibrary,i=window.lodash,c=window.yoast.reduxJsToolkit,m=window.wp.url,d="linkParams",p=(0,c.createSlice)({name:d,initialState:{},reducers:{setLinkParams:(e,{payload:t})=>t}}),u=p.getInitialState,y={selectLinkParam:(e,t,s={})=>(0,i.get)(e,`${d}.${t}`,s),selectLinkParams:e=>(0,i.get)(e,d,{})};y.selectLink=(0,c.createSelector)([y.selectLinkParams,(e,t)=>t,(e,t,s={})=>s],((e,t,s)=>(0,m.addQueryArgs)(t,{...e,...s})));const g=p.actions,f=p.reducer,w=(0,c.createSlice)({name:"notifications",initialState:{},reducers:{addNotification:{reducer:(e,{payload:t})=>{e[t.id]={id:t.id,variant:t.variant,size:t.size,title:t.title,description:t.description}},prepare:({id:e,variant:t="info",size:s="default",title:r,description:a})=>({payload:{id:e||(0,c.nanoid)(),variant:t,size:s,title:r||"",description:a}})},removeNotification:(e,{payload:t})=>(0,i.omit)(e,t)}}),h=(w.getInitialState,w.actions,w.reducer,"pluginUrl"),E=(0,c.createSlice)({name:h,initialState:"",reducers:{setPluginUrl:(e,{payload:t})=>t}}),v=(E.getInitialState,{selectPluginUrl:e=>(0,i.get)(e,h,"")});v.selectImageLink=(0,c.createSelector)([v.selectPluginUrl,(e,t,s="images")=>s,(e,t)=>t],((e,t,s)=>[(0,i.trimEnd)(e,"/"),(0,i.trim)(t,"/"),(0,i.trimStart)(s,"/")].join("/"))),E.actions,E.reducer,window.wp.apiFetch;const b="loading",x="showPlay",_="askPermission",k="isPlaying",N="wistiaEmbedPermission",S=(0,c.createSlice)({name:N,initialState:{value:!1,status:"idle",error:{}},reducers:{setWistiaEmbedPermissionValue:(e,{payload:t})=>{e.value=Boolean(t)}},extraReducers:e=>{e.addCase(`${N}/request`,(e=>{e.status=b})),e.addCase(`${N}/success`,((e,{payload:t})=>{e.status="success",e.value=Boolean(t&&t.value)})),e.addCase(`${N}/error`,((e,{payload:t})=>{e.status="error",e.value=Boolean(t&&t.value),e.error={code:(0,i.get)(t,"error.code",500),message:(0,i.get)(t,"error.message","Unknown")}}))}});S.getInitialState,S.actions,S.reducer;const P=e.forwardRef((function(t,s){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:s},t),e.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17 8l4 4m0 0l-4 4m4-4H3"}))})),L=window.wp.i18n;var R=s(4530),O=s.n(R);const q=window.yoast.propTypes;var $=s.n(q);const I=({link:t})=>{const s=(0,l.useMemo)((()=>(0,l.createInterpolateElement)((0,L.sprintf)(/* translators: %1$s expands to "Yoast SEO" academy, which is a clickable link. */
|
||||
(0,L.__)("Want to learn SEO from Team Yoast? Check out our %1$s!","wordpress-seo"),"<link/>"),{link:(0,e.createElement)("a",{href:t,target:"_blank",rel:"noopener"},"Yoast SEO academy")})),[]);return(0,e.createElement)(o.Paper,{as:"div",className:"yst-p-6 yst-space-y-3"},(0,e.createElement)(o.Title,{as:"h2",size:"4",className:"yst-text-base yst-text-primary-500"},(0,L.__)("Learn SEO","wordpress-seo")),(0,e.createElement)("p",null,s,(0,e.createElement)("br",null),(0,L.__)("We have both free and premium online courses to learn everything you need to know about SEO.","wordpress-seo")),(0,e.createElement)(o.Link,{href:t,className:"yst-block",target:"_blank",rel:"noopener"},(0,L.sprintf)(/* translators: %1$s expands to "Yoast SEO academy". */
|
||||
(0,L.__)("Check out %1$s","wordpress-seo"),"Yoast SEO academy")))};I.propTypes={link:$().string.isRequired};const C=e.forwardRef((function(t,s){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:s},t),e.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 11V7a4 4 0 118 0m-4 8v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2z"}))})),j=e.forwardRef((function(t,s){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:s},t),e.createElement("path",{fillRule:"evenodd",d:"M12.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-2.293-2.293a1 1 0 010-1.414z",clipRule:"evenodd"}))})),T=({learnMoreLink:t,thumbnail:s,wistiaEmbedPermission:r,upsellLink:a,isProductCopy:n,title:i,upsellLabel:c,newToText:m,bundleNote:d})=>{const{onClose:p,initialFocus:u}=(0,o.useModalContext)(),y={a:(0,e.createElement)(F,{href:t,className:"yst-inline-flex yst-items-center yst-gap-1 yst-no-underline yst-font-medium",variant:"primary"}),ArrowNarrowRightIcon:(0,e.createElement)(j,{className:"yst-w-4 yst-h-4 rtl:yst-rotate-180"})};return(0,e.createElement)("div",{className:"yst-flex yst-flex-col yst-items-center yst-p-10"},(0,e.createElement)("div",{className:"yst-relative yst-w-full"},(0,e.createElement)(me,{videoId:"vmrahpfjxp",thumbnail:s,wistiaEmbedPermission:r}),(0,e.createElement)(o.Badge,{className:"yst-absolute yst-top-0 yst-right-2 yst-mt-2 yst-ml-2",variant:"info"},"Beta")),(0,e.createElement)("div",{className:"yst-mt-6 yst-text-xs yst-font-medium"},(0,e.createElement)("span",{className:"yst-introduction-modal-uppercase"},m)),(0,e.createElement)("div",{className:"yst-mt-4 yst-mx-1.5 yst-text-center"},(0,e.createElement)("h3",{className:"yst-text-slate-900 yst-text-lg yst-font-medium"},i),(0,e.createElement)("div",{className:"yst-mt-2 yst-text-slate-600 yst-text-sm"},n?(0,l.createInterpolateElement)((0,L.sprintf)(/* translators: %1$s and %2$s are anchor tag; %3$s is the arrow icon. */
|
||||
(0,L.__)("Let AI do some of the thinking for you and help you save time. Get high-quality suggestions for product titles and meta descriptions to make your pages rank high and make you look good on social media. %1$sLearn more%2$s%3$s","wordpress-seo"),"<a>","<ArrowNarrowRightIcon />","</a>"),y):(0,l.createInterpolateElement)((0,L.sprintf)(/* translators: %1$s and %2$s are anchor tag; %3$s is the arrow icon. */
|
||||
(0,L.__)("Let AI do some of the thinking for you and help you save time. Get high-quality suggestions for titles and meta descriptions to make your pages rank high and make you look good on social media. %1$sLearn more%2$s%3$s","wordpress-seo"),"<a>","<ArrowNarrowRightIcon />","</a>"),y))),(0,e.createElement)("div",{className:"yst-w-full yst-flex yst-mt-10"},(0,e.createElement)(o.Button,{as:"a",className:"yst-grow",size:"large",variant:"upsell",href:a,target:"_blank",ref:u},(0,e.createElement)(C,{className:"yst--ml-1 yst-mr-2 yst-h-5 yst-w-5"}),c,(0,e.createElement)("span",{className:"yst-sr-only"},/* translators: Hidden accessibility text. */
|
||||
(0,L.__)("Check out %1$s","wordpress-seo"),"Yoast SEO academy")))};I.propTypes={link:$().string.isRequired};const C=e.forwardRef((function(t,s){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:s},t),e.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 11V7a4 4 0 118 0m-4 8v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2z"}))})),j=e.forwardRef((function(t,s){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:s},t),e.createElement("path",{fillRule:"evenodd",d:"M12.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-2.293-2.293a1 1 0 010-1.414z",clipRule:"evenodd"}))})),T=({learnMoreLink:t,thumbnail:s,wistiaEmbedPermission:r,upsellLink:a,isProductCopy:n,title:i,upsellLabel:c,newToText:m,bundleNote:d})=>{const{onClose:p,initialFocus:u}=(0,o.useModalContext)(),y={a:(0,e.createElement)(F,{href:t,className:"yst-inline-flex yst-items-center yst-gap-1 yst-no-underline yst-font-medium",variant:"primary"}),ArrowNarrowRightIcon:(0,e.createElement)(j,{className:"yst-w-4 yst-h-4 rtl:yst-rotate-180"})};return(0,e.createElement)("div",{className:"yst-flex yst-flex-col yst-items-center yst-p-10"},(0,e.createElement)("div",{className:"yst-relative yst-w-full"},(0,e.createElement)(me,{videoId:"vmrahpfjxp",thumbnail:s,wistiaEmbedPermission:r}),(0,e.createElement)(o.Badge,{className:"yst-absolute yst-top-0 yst-right-2 yst-mt-2 yst-ml-2",variant:"info"},"Beta")),(0,e.createElement)("div",{className:"yst-mt-6 yst-text-xs yst-font-medium"},(0,e.createElement)("span",{className:"yst-introduction-modal-uppercase"},m)),(0,e.createElement)("div",{className:"yst-mt-4 yst-mx-1.5 yst-text-center"},(0,e.createElement)("h3",{className:"yst-text-slate-900 yst-text-lg yst-font-medium"},i),(0,e.createElement)("div",{className:"yst-mt-2 yst-text-slate-600 yst-text-sm"},n?(0,l.createInterpolateElement)((0,L.sprintf)(/* translators: %1$s and %2$s are anchor tags; %3$s is the arrow icon. */
|
||||
(0,L.__)("Let AI do some of the thinking for you and help you save time. Get high-quality suggestions for product titles and meta descriptions to make your content rank high and look good on social media. %1$sLearn more%2$s%3$s","wordpress-seo"),"<a>","<ArrowNarrowRightIcon />","</a>"),y):(0,l.createInterpolateElement)((0,L.sprintf)(/* translators: %1$s and %2$s are anchor tags; %3$s is the arrow icon. */
|
||||
(0,L.__)("Let AI do some of the thinking for you and help you save time. Get high-quality suggestions for titles and meta descriptions to make your content rank high and look good on social media. %1$sLearn more%2$s%3$s","wordpress-seo"),"<a>","<ArrowNarrowRightIcon />","</a>"),y))),(0,e.createElement)("div",{className:"yst-w-full yst-flex yst-mt-10"},(0,e.createElement)(o.Button,{as:"a",className:"yst-grow",size:"extra-large",variant:"upsell",href:a,target:"_blank",ref:u},(0,e.createElement)(C,{className:"yst--ml-1 yst-mr-2 yst-h-5 yst-w-5"}),c,(0,e.createElement)("span",{className:"yst-sr-only"},/* translators: Hidden accessibility text. */
|
||||
(0,L.__)("(Opens in a new browser tab)","wordpress-seo")))),d,(0,e.createElement)(o.Button,{as:"a",className:"yst-mt-4",variant:"tertiary",onClick:p},(0,L.__)("Close","wordpress-seo")))};T.propTypes={learnMoreLink:$().string.isRequired,upsellLink:$().string.isRequired,thumbnail:$().shape({src:$().string.isRequired,width:$().string,height:$().string}).isRequired,wistiaEmbedPermission:$().shape({value:$().bool.isRequired,status:$().string.isRequired,set:$().func.isRequired}).isRequired,title:$().string,upsellLabel:$().string,newToText:$().string,isProductCopy:$().bool,bundleNote:$().oneOfType([$().string,$().element])},T.defaultProps={title:(0,L.__)("Use AI to write your titles & meta descriptions!","wordpress-seo"),upsellLabel:(0,L.sprintf)(/* translators: %1$s expands to Yoast SEO Premium. */
|
||||
(0,L.__)("Unlock with %1$s","wordpress-seo"),"Yoast SEO Premium"),newToText:(0,L.sprintf)(/* translators: %1$s expands to Yoast SEO Premium. */
|
||||
(0,L.__)("New in %1$s","wordpress-seo"),"Yoast SEO Premium"),isProductCopy:!1,bundleNote:""};const H={variant:{lg:{grid:"yst-grid lg:yst-grid-cols-3 lg:yst-gap-12",col1:"yst-col-span-1",col2:"lg:yst-mt-0 lg:yst-col-span-2"},xl:{grid:"yst-grid xl:yst-grid-cols-3 xl:yst-gap-12",col1:"yst-col-span-1",col2:"xl:yst-mt-0 xl:yst-col-span-2"},"2xl":{grid:"yst-grid 2xl:yst-grid-cols-3 2xl:yst-gap-12",col1:"yst-col-span-1",col2:"2xl:yst-mt-0 2xl:yst-col-span-2"}}},A=({id:t,children:s,title:r,description:a=null,variant:n="2xl"})=>(0,e.createElement)("section",{id:t,className:H.variant[n].grid},(0,e.createElement)("div",{className:H.variant[n].col1},(0,e.createElement)("div",{className:"yst-max-w-screen-sm"},(0,e.createElement)(o.Title,{as:"h2",size:"4"},r),a&&(0,e.createElement)("p",{className:"yst-mt-2"},a))),(0,e.createElement)("fieldset",{className:`yst-min-w-0 yst-mt-8 ${H.variant[n].col2}`},(0,e.createElement)("legend",{className:"yst-sr-only"},r),(0,e.createElement)("div",{className:"yst-space-y-8"},s)));var B;function z(){return z=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},z.apply(this,arguments)}A.propTypes={id:$().string,children:$().node.isRequired,title:$().node.isRequired,description:$().node,variant:$().oneOf(Object.keys(H.variant))};const M=t=>e.createElement("svg",z({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 1000 1000"},t),B||(B=e.createElement("path",{fill:"#fff",d:"M500 0C223.9 0 0 223.9 0 500s223.9 500 500 500 500-223.9 500-500S776.1 0 500 0Zm87.2 412.4c0-21.9 4.3-40.2 13.1-54.4s24-27.1 45.9-38.2l10.1-4.9c17.8-9 22.4-16.7 22.4-26 0-11.1-9.5-19.1-25-19.1-18.3 0-32.2 9.5-41.8 28.9l-24.7-24.8c5.4-11.6 14.1-20.9 25.8-28.1a70.8 70.8 0 0 1 38.9-11.1c17.8 0 33.3 4.6 45.9 14.2s19.4 22.7 19.4 39.4c0 26.6-15 42.9-43.1 57.3l-15.7 8c-16.8 8.5-25.1 16-27.4 29.4h85.4v35.4H587.2Zm-82.1 373.3c-157.8 0-285.7-127.9-285.7-285.7s127.9-285.7 285.7-285.7a286.4 286.4 0 0 1 55.9 5.5l-55.9 116.9c-90 0-163.3 73.3-163.3 163.3s73.3 163.3 163.3 163.3a162.8 162.8 0 0 0 106.4-39.6l61.8 107.2a283.9 283.9 0 0 1-168.2 54.8ZM705 704.1l-70.7-122.5H492.9l70.7-122.4H705l70.7 122.4Z"}))),F=({href:t,children:s,...r})=>(0,e.createElement)(o.Link,{target:"_blank",rel:"noopener noreferrer",...r,href:t},s,(0,e.createElement)("span",{className:"yst-sr-only"},/* translators: Hidden accessibility text. */
|
||||
|
||||
+14
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user