plugin updates
This commit is contained in:
@@ -10,4 +10,4 @@
|
||||
(0,Y.__)("Optimize your SEO content with %s","wordpress-seo"),"Yoast AI")),(0,t.createElement)("div",{className:"yst-mt-2 yst-text-slate-600 yst-text-sm"},(0,n.createInterpolateElement)((0,Y.sprintf)(/* translators: %1$s is a break tag; %2$s and %3$s are anchor tags; %4$s is the arrow icon. */
|
||||
(0,Y.__)("Make content editing a breeze! Optimize your SEO content with quick, actionable suggestions at the click of a button.%1$s%2$sLearn more%3$s%4$s","wordpress-seo"),"<br/>","<a>","<ArrowNarrowRightIcon />","</a>"),d))),(0,t.createElement)("div",{className:"yst-w-full yst-flex yst-mt-6"},(0,t.createElement)(l.Button,{as:"a",className:"yst-grow",size:"extra-large",variant:"upsell",href:a,target:"_blank",ref:c},(0,t.createElement)(D,{className:"yst--ml-1 yst-mr-2 yst-h-5 yst-w-5"}),i,(0,t.createElement)("span",{className:"yst-sr-only"},/* translators: Hidden accessibility text. */
|
||||
(0,Y.__)("(Opens in a new browser tab)","wordpress-seo")))),(0,t.createElement)(l.Button,{as:"a",className:"yst-mt-4",variant:"tertiary",onClick:o},(0,Y.__)("Close","wordpress-seo"))))};Ce.propTypes={learnMoreLink:V().string.isRequired,upsellLink:V().string.isRequired,thumbnail:V().shape({src:V().string.isRequired,width:V().string,height:V().string}).isRequired,wistiaEmbedPermission:V().shape({value:V().bool.isRequired,status:V().string.isRequired,set:V().func.isRequired}).isRequired,upsellLabel:V().string},Ce.defaultProps={upsellLabel:(0,Y.sprintf)(/* translators: %1$s expands to Yoast SEO Premium. */
|
||||
(0,Y.__)("Unlock with %1$s","wordpress-seo"),"Yoast SEO Premium")},t.forwardRef((function(e,s){return t.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},e),t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"}))})),V().bool.isRequired,V().func,V().string.isRequired,V().string.isRequired,V().func.isRequired,V().string.isRequired,V().string.isRequired;const qe="yoast-seo/introductions",$e=()=>{const e=(0,s.useSelect)((e=>e(qe).selectLink("https://yoa.st/ai-fix-assessments-upsell-learn-more")),[]),r=(0,s.useSelect)((e=>e(qe).selectLink("https://yoa.st/ai-fix-assessments-upsell")),[]),a=(0,s.useSelect)((e=>e(qe).selectImageLink("ai-fix-assessments-thumbnail.png")),[]),i=(0,n.useMemo)((()=>({src:a,width:"432",height:"244"})),[a]),l=(0,s.useSelect)((e=>e(qe).selectWistiaEmbedPermissionValue()),[]),o=(0,s.useSelect)((e=>e(qe).selectWistiaEmbedPermissionStatus()),[]),{setWistiaEmbedPermission:c}=(0,s.useDispatch)(qe),d=(0,n.useMemo)((()=>({value:l,status:o,set:c})),[l,o,c]);return(0,t.createElement)(Ce,{learnMoreLink:e,upsellLink:r,thumbnail:i,wistiaEmbedPermission:d})};window.YoastSEO=window.YoastSEO||{};const je=(0,n.createContext)({}),Ae=({children:e,initialComponents:r})=>{const[a,i]=(0,n.useState)(r),l=(0,s.useSelect)((e=>e(qe).selectIntroductions()),[]),c=(0,n.useCallback)(((e,t)=>{(0,o.find)(l,{id:e})?i((s=>({...s,[e]:t}))):console.error("Warning: Introductions received a registration for an unknown key:",e)}),[l,i]);return(0,n.useEffect)((()=>{window.YoastSEO._registerIntroductionComponent=c}),[c]),(0,t.createElement)(je.Provider,{value:a},e)};Ae.propTypes={children:V().node.isRequired,initialComponents:V().object.isRequired};const Me=()=>{const e=(0,s.useSelect)((e=>e(qe).selectCurrentIntroduction()),[]),r=(0,n.useContext)(je),a=(0,n.useMemo)((()=>null==r?void 0:r[null==e?void 0:e.id]),[e,r]);return a?(0,t.createElement)(a,null):null},Be=({children:e})=>{const[s,r]=(0,n.useState)(!0),a=(0,n.useRef)(null),i=(0,n.useCallback)((()=>r(!1)),[]);return(0,t.createElement)(l.Modal,{className:"yst-introduction-modal yst-h-[calc(100vh - 1rem)] sm:yst-h-[calc(100vh - 2rem)] md:yst-h-[calc(100vh - 5rem)]) yst-overflow-y-auto",isOpen:s,onClose:i,initialFocus:a},(0,t.createElement)(l.Modal.Panel,{className:"yst-max-w-lg yst-p-0 yst-rounded-3xl"},e))};Be.propTypes={children:V().node.isRequired};const ze="introductions",Te=(0,c.createEntityAdapter)({selectId:e=>e.id,sortComparer:(e,t)=>e.priority===t.priority?0:e.priority<t.priority?-1:1}),Ue=e=>({id:e.id||(0,c.nanoid)(),priority:e.priority||0}),Fe=(0,c.createSlice)({name:ze,initialState:Te.getInitialState({current:0}),reducers:{addIntroduction:{reducer:Te.addOne,prepare:e=>({payload:Ue(e)})},addIntroductions:{reducer:Te.addMany,prepare:e=>({payload:(0,o.map)(e,Ue)})},setIntroductions:{reducer:Te.setAll,prepare:e=>({payload:(0,o.map)(e,Ue)})}}}),We=Fe.getInitialState,Ye=Te.getSelectors((e=>(0,o.get)(e,ze,{}))),He={selectCurrentIntroductionIndex:e=>(0,o.get)(e,[ze,"current"],0),selectIntroduction:Ye.selectById,selectIntroductions:Ye.selectAll};He.selectCurrentIntroduction=(0,c.createSelector)([He.selectCurrentIntroductionIndex,He.selectIntroductions],((e,t)=>t[e]));const Ve=Fe.actions,De=Fe.reducer,Ze="wpseoIntroductions";a()((()=>{const e=(0,o.get)(window,`${Ze}.introductions`,[]);if((0,o.isEmpty)(e))return;((e={})=>{(0,s.register)((e=>(0,s.createReduxStore)(qe,{actions:{...Ve,...f,...k,...U},selectors:{...He,...h,...N,...T},initialState:(0,o.merge)({},{[ze]:We(),[p]:g(),[b]:_(),[M]:z()},e),reducer:(0,s.combineReducers)({[ze]:De,[p]:E,[b]:S,[M]:W}),controls:{...F}}))(e))})({[p]:(0,o.get)(window,`${Ze}.linkParams`,{}),[b]:(0,o.get)(window,`${Ze}.pluginUrl`,""),[M]:{value:"1"===(0,o.get)(window,`${Ze}.wistiaEmbedPermission`,!1)}}),(0,s.dispatch)(qe).setIntroductions(e);const r={isRtl:Boolean((0,o.get)(window,`${Ze}.isRtl`,!1))},a={"ai-fix-assessments-upsell":$e},c=document.createElement("div");c.id="wpseo-introductions",document.body.appendChild(c),(0,n.render)((0,t.createElement)(l.Root,{context:r},(0,t.createElement)(Ae,{initialComponents:a},(0,t.createElement)(Be,null,(0,t.createElement)(Me,null)))),c,(()=>{(0,i.doAction)("yoast.introductions.ready")}))}))})();
|
||||
(0,Y.__)("Unlock with %1$s","wordpress-seo"),"Yoast SEO Premium")},t.forwardRef((function(e,s){return t.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},e),t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"}))})),V().bool.isRequired,V().func,V().func,V().string.isRequired,V().string.isRequired,V().string.isRequired,V().string.isRequired;const qe="yoast-seo/introductions",$e=()=>{const e=(0,s.useSelect)((e=>e(qe).selectLink("https://yoa.st/ai-fix-assessments-upsell-learn-more")),[]),r=(0,s.useSelect)((e=>e(qe).selectLink("https://yoa.st/ai-fix-assessments-upsell")),[]),a=(0,s.useSelect)((e=>e(qe).selectImageLink("ai-fix-assessments-thumbnail.png")),[]),i=(0,n.useMemo)((()=>({src:a,width:"432",height:"244"})),[a]),l=(0,s.useSelect)((e=>e(qe).selectWistiaEmbedPermissionValue()),[]),o=(0,s.useSelect)((e=>e(qe).selectWistiaEmbedPermissionStatus()),[]),{setWistiaEmbedPermission:c}=(0,s.useDispatch)(qe),d=(0,n.useMemo)((()=>({value:l,status:o,set:c})),[l,o,c]);return(0,t.createElement)(Ce,{learnMoreLink:e,upsellLink:r,thumbnail:i,wistiaEmbedPermission:d})};window.YoastSEO=window.YoastSEO||{};const je=(0,n.createContext)({}),Ae=({children:e,initialComponents:r})=>{const[a,i]=(0,n.useState)(r),l=(0,s.useSelect)((e=>e(qe).selectIntroductions()),[]),c=(0,n.useCallback)(((e,t)=>{(0,o.find)(l,{id:e})?i((s=>({...s,[e]:t}))):console.error("Warning: Introductions received a registration for an unknown key:",e)}),[l,i]);return(0,n.useEffect)((()=>{window.YoastSEO._registerIntroductionComponent=c}),[c]),(0,t.createElement)(je.Provider,{value:a},e)};Ae.propTypes={children:V().node.isRequired,initialComponents:V().object.isRequired};const Me=()=>{const e=(0,s.useSelect)((e=>e(qe).selectCurrentIntroduction()),[]),r=(0,n.useContext)(je),a=(0,n.useMemo)((()=>null==r?void 0:r[null==e?void 0:e.id]),[e,r]);return a?(0,t.createElement)(a,null):null},Be=({children:e})=>{const[s,r]=(0,n.useState)(!0),a=(0,n.useRef)(null),i=(0,n.useCallback)((()=>r(!1)),[]);return(0,t.createElement)(l.Modal,{className:"yst-introduction-modal yst-h-[calc(100vh - 1rem)] sm:yst-h-[calc(100vh - 2rem)] md:yst-h-[calc(100vh - 5rem)]) yst-overflow-y-auto",isOpen:s,onClose:i,initialFocus:a},(0,t.createElement)(l.Modal.Panel,{className:"yst-max-w-lg yst-p-0 yst-rounded-3xl"},e))};Be.propTypes={children:V().node.isRequired};const ze="introductions",Te=(0,c.createEntityAdapter)({selectId:e=>e.id,sortComparer:(e,t)=>e.priority===t.priority?0:e.priority<t.priority?-1:1}),Ue=e=>({id:e.id||(0,c.nanoid)(),priority:e.priority||0}),Fe=(0,c.createSlice)({name:ze,initialState:Te.getInitialState({current:0}),reducers:{addIntroduction:{reducer:Te.addOne,prepare:e=>({payload:Ue(e)})},addIntroductions:{reducer:Te.addMany,prepare:e=>({payload:(0,o.map)(e,Ue)})},setIntroductions:{reducer:Te.setAll,prepare:e=>({payload:(0,o.map)(e,Ue)})}}}),We=Fe.getInitialState,Ye=Te.getSelectors((e=>(0,o.get)(e,ze,{}))),He={selectCurrentIntroductionIndex:e=>(0,o.get)(e,[ze,"current"],0),selectIntroduction:Ye.selectById,selectIntroductions:Ye.selectAll};He.selectCurrentIntroduction=(0,c.createSelector)([He.selectCurrentIntroductionIndex,He.selectIntroductions],((e,t)=>t[e]));const Ve=Fe.actions,De=Fe.reducer,Ze="wpseoIntroductions";a()((()=>{const e=(0,o.get)(window,`${Ze}.introductions`,[]);if((0,o.isEmpty)(e))return;((e={})=>{(0,s.register)((e=>(0,s.createReduxStore)(qe,{actions:{...Ve,...f,...k,...U},selectors:{...He,...h,...N,...T},initialState:(0,o.merge)({},{[ze]:We(),[p]:g(),[b]:_(),[M]:z()},e),reducer:(0,s.combineReducers)({[ze]:De,[p]:E,[b]:S,[M]:W}),controls:{...F}}))(e))})({[p]:(0,o.get)(window,`${Ze}.linkParams`,{}),[b]:(0,o.get)(window,`${Ze}.pluginUrl`,""),[M]:{value:"1"===(0,o.get)(window,`${Ze}.wistiaEmbedPermission`,!1)}}),(0,s.dispatch)(qe).setIntroductions(e);const r={isRtl:Boolean((0,o.get)(window,`${Ze}.isRtl`,!1))},a={"ai-fix-assessments-upsell":$e},c=document.createElement("div");c.id="wpseo-introductions",document.body.appendChild(c),(0,n.render)((0,t.createElement)(l.Root,{context:r},(0,t.createElement)(Ae,{initialComponents:a},(0,t.createElement)(Be,null,(0,t.createElement)(Me,null)))),c,(()=>{(0,i.doAction)("yoast.introductions.ready")}))}))})();
|
||||
Reference in New Issue
Block a user