diff --git a/bootstrap.php b/bootstrap.php index 95369494f..57147a0fc 100644 --- a/bootstrap.php +++ b/bootstrap.php @@ -24,7 +24,7 @@ function nfd_wp_module_onboarding_register() { // Set Global Constants if ( ! defined( 'NFD_ONBOARDING_VERSION' ) ) { - define( 'NFD_ONBOARDING_VERSION', '2.3.2' ); + define( 'NFD_ONBOARDING_VERSION', '2.3.3' ); } if ( ! defined( 'NFD_ONBOARDING_DIR' ) ) { define( 'NFD_ONBOARDING_DIR', __DIR__ ); diff --git a/build/2.3.2/377.js b/build/2.3.2/377.js deleted file mode 100644 index f708a6ce2..000000000 --- a/build/2.3.2/377.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[377],{5706:(e,t)=>{(()=>{var e={537:(e,t)=>{!function(){"use strict";var e={d:function(t,n){for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};e.r(n),e.d(n,{NewfoldRuntime:function(){return a}});var o=window.wp.url;const a={hasCapability:e=>!0===window.NewfoldRuntime?.capabilities[e],adminUrl:e=>window.NewfoldRuntime?.admin_url+e,createApiUrl:(e,t={})=>(0,o.addQueryArgs)(window.NewfoldRuntime?.base_url,{rest_route:e,...t}),get siteDetails(){return window.NewfoldRuntime?.site},get sdk(){return window.NewfoldRuntime?.sdk},get isWoo(){return window.NewfoldRuntime?.isWoocommerceActive},get ecommerce(){return window.NewfoldRuntime?.ecommerce},get plugin(){return window.NewfoldRuntime?.plugin},get wpversion(){return window.NewfoldRuntime?.wpversion},get siteTitle(){return window.NewfoldRuntime?.siteTitle}};var r=t;for(var i in n)r[i]=n[i];n.__esModule&&Object.defineProperty(r,"__esModule",{value:!0})}()},967:(e,t)=>{var n;!function(){"use strict";var o={}.hasOwnProperty;function a(){for(var e="",t=0;t{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};(()=>{"use strict";o.r(a),o.d(a,{FacebookConnectButton:()=>p,FacebookConnectPluginView:()=>f,facebookConnectHelper:()=>m,getFacebookUserProfileDetails:()=>l});const e=window.React,t=window.wp.components,n=window.wp.apiFetch;var r=o.n(n),i=o(537);const c={facebook_module:{base_url:"https://graph.facebook.com/v18.0",debug_token:"/debug_token",token_phrase:"secret_token_phrase"},wordpress:{access:i.NewfoldRuntime.createApiUrl("/newfold-facebook/v1/facebook/hiive"),fb_token:i.NewfoldRuntime.createApiUrl("/newfold-facebook/v1/facebook/get-token"),post_token:i.NewfoldRuntime.createApiUrl("/newfold-facebook/v1/facebook/post-token"),facebook_details:i.NewfoldRuntime.createApiUrl("/newfold-facebook/v1/facebook/details"),facebook_logout:i.NewfoldRuntime.createApiUrl("/newfold-facebook/v1/facebook/logout")},cf_worker:{login_screen:"https://hiive.cloud/workers/facebook-connect/",get_token:"https://hiive.cloud/workers/facebook-connect/get/token?hiive_token=",delete_token:"https://hiive.cloud/workers/facebook-connect/delete/token?hiive_token="}},l=()=>r()({url:c.wordpress.facebook_details}).then((e=>{if(e?.details?.error)throw{message:"failed to load the data",error:e?.details?.error};return e?.details})).catch((e=>{throw{message:"failed to load the data",errorMsg:e}})),s=window.wp.i18n;var d=o(967),u=o.n(d);const p=({className:n,children:o,showData:a,onConnect:i,onDisconnect:d,onFailure:p,onClick:f})=>{const[m,w]=(0,e.useState)(""),[b,g]=(0,e.useState)(!1),[_,h]=(0,e.useState)([]),[k,v]=(0,e.useState)(!1);function y(e){var t;e.origin.search("https://hiive.cloud")<0||(v(!0),window.removeEventListener("message",y),(t=e.data,r()({url:`${c.wordpress.fb_token}`,data:t,method:"POST"})).then((e=>{E()})).catch((()=>v(!1))))}const E=()=>{l().then((e=>{"token not found!"!==e&&(g(!0),h(e),v(!1),"function"==typeof i&&i(e))})).catch((()=>r()({url:c.wordpress.access}).then((e=>{l().then((e=>{"token not found!"!==e&&(g(!0),h(e),"function"==typeof i&&i(e)),v(!1)})).catch((e=>{v(!1),"function"==typeof p&&p(e),console.error(e)})),w(e.token)})).catch((e=>{v(!1),"function"==typeof p&&p(e),console.error(e)}))))};return(0,e.useEffect)((()=>{!m&&r()({url:c.wordpress.access}).then((e=>{e.token&&w(e.token)})),E()}),[]),(0,e.createElement)("div",null,b?(0,e.createElement)("div",null,(0,e.createElement)(t.Button,{className:u()("nfd-facebook-button--connected",`${n}--connected`)},(0,s.__)("Connected","wp-module-facebook")),a&&(0,e.createElement)("div",null,_?.map((t=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)("ul",{style:{paddingTop:"20px"}},(0,e.createElement)("li",null,(0,e.createElement)("p",null,"Facebook ID: ",t?.User?.profile?.id)),(0,e.createElement)("li",null,(0,e.createElement)("p",null,"User Name: ",t?.User?.profile?.name)),(0,e.createElement)("li",null,(0,e.createElement)("p",null,"User Email: ",t?.User?.profile?.email)),(0,e.createElement)("li",null,(0,e.createElement)("p",null,"Profile pic:",t?.User?.profile?.picture?.data?.url))),(0,e.createElement)("img",{src:`https://graph.facebook.com/${t?.id}/picture?type=small`,height:t?.picture?.height,width:t?.picture?.width})))))):(0,e.createElement)(t.Button,{type:"submit",disabled:k,className:u()("nfd-facebook-button--connect",`${n}--connect`),onClick:()=>(window.open(`${c.cf_worker.login_screen}?token_hiive=${m}&redirect=${window.location.href}`,"ModalPopUp",`toolbar=no,scrollbars=no,location=no,width=${window.innerWidth/2+200},height=${window.innerHeight/2+200},top=200,left=200`),window.addEventListener("message",y,!1),void("function"==typeof f&&f()))},o,(0,s.__)("Connect Facebook","wp-module-facebook"),k&&(0,e.createElement)(t.Spinner,null)))},f=({fbLogin:n,loginInfo:o,getFbDetails:a})=>{const[i,l]=(0,e.useState)(!1);return(0,e.useEffect)((()=>l(!1)),[]),n&&(0,e.createElement)("div",{style:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingTop:"20px"}},(0,e.createElement)("div",{style:{display:"flex",flexDirection:"row",alignItems:"center"}},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",height:"30px",width:"30px",fill:"#405795",viewBox:"0 0 24 24",style:{marginRight:"10px"}},(0,e.createElement)("path",{d:"M22.675 0h-21.35c-.732 0-1.325.593-1.325 1.325v21.351c0 .731.593 1.324 1.325 1.324h11.495v-9.294h-3.128v-3.622h3.128v-2.671c0-3.1 1.893-4.788 4.659-4.788 1.325 0 2.463.099 2.795.143v3.24l-1.918.001c-1.504 0-1.795.715-1.795 1.763v2.313h3.587l-.467 3.622h-3.12v9.293h6.116c.73 0 1.323-.593 1.323-1.325v-21.35c0-.732-.593-1.325-1.325-1.325z"})),(0,e.createElement)("p",{style:{fontSize:"0.9rem",fontWeight:"600",paddingLeft:"15px"}},"Facebook -",(0,e.createElement)("span",{style:{fontWeight:"normal"}},o?.user?.profile?.email))),i?(0,e.createElement)(t.Spinner,null):(0,e.createElement)("button",{style:{color:"#286BDE"},onClick:()=>(async()=>{l(!0),await r()({url:c.wordpress.facebook_logout}).then((e=>e)).catch((e=>{throw{message:"failed to load the data",errorMsg:e}})).then((()=>{a()})),l(!1)})()},"Disconnect"))},m=async e=>{let t="",n=null,o=[];const a=()=>r()({url:c.wordpress.access}).then((e=>{r()({url:`${c.wordpress.fb_token}`,headers:{method:"GET","content-type":"application/json","Accept-Encoding":"gzip, deflate, br","Access-Control-Allow-Origin":"*"}}).then((e=>{var t;e.token&&(t=e.token,r()({url:c.wordpress.settings,method:"post",data:{fb_token:t}}).then((e=>e)).catch((e=>{console.error(e)})),n=e.token)})).catch((e=>{console.error(e)})),t=e.token})).catch((e=>{console.error(e)}));await a(),await r()({url:c.wordpress.fb_token}).then((async r=>{if(r?.fb_token)await l().then((e=>(n=r.fb_token,o=[e],o)));else{const n=window.open(`${c.cf_worker.login_screen}?token_hiive=${t}&redirect=${window.location.href}`,"ModalPopUp",`toolbar=no,scrollbars=no,location=no,width=${window.innerWidth/2+200},height=${window.innerHeight/2+200},top=200,left=200`),o=setInterval((async function(){n?.closed&&(clearInterval(o),await a(),e())}),1e3)}}))}})();var r=t;for(var i in a)r[i]=a[i];a.__esModule&&Object.defineProperty(r,"__esModule",{value:!0})})()},6999:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var o=n(1609),a=n(6942),r=n.n(a),i=n(148),c=n(7143),l=n(6427),s=n(7677),d=n(6655),u=n(7675);const p=({text:e,className:t,callback:n=null,disabled:a=!1,showChevronRight:p=!0})=>{const f=(0,i.Zp)(),{nextStep:m}=(0,c.useSelect)((e=>({nextStep:e(u.M).getNextStep()})));return(0,o.createElement)(l.Button,{className:r()("nfd-onboarding-button--site-gen-next",{"nfd-onboarding-button--site-gen-next--disabled":a},t),onClick:()=>{a||(n&&"function"==typeof n&&n(),m&&f(m.path))}},(0,o.createElement)("p",{className:"nfd-onboarding-button--site-gen-next--text"},e),p&&(0,o.createElement)(s.A,{className:"nfd-onboarding-button--site-gen-next--icon",icon:d.A}))}},513:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(1609),a=n(8468),r=n(7673);const i=(0,a.memo)((({title:e})=>(0,o.createElement)("div",{className:"ai-heading"},(0,o.createElement)(r.A,{height:"40px"}),(0,o.createElement)("div",{className:"ai-heading--title"},e))))},2607:(e,t,n)=>{"use strict";n.d(t,{A:()=>g});var o=n(1609),a=n(7723),r=n(8468),i=n(6427),c=n(7143),l=n(148),s=n(4371),d=n(6079),u=n(7675),p=n(2014),f=n(8969),m=n(2202),w=n(6942),b=n.n(w);const g=(0,r.memo)((({callback:e=!1,className:t,text:n})=>{const r=(0,l.Zp)(),w=(0,l.zy)(),{nextStep:g,currentData:_,socialData:h}=(0,c.useSelect)((e=>({nextStep:e(u.M).getNextStep(),currentData:e(u.M).getCurrentOnboardingData(),socialData:e(u.M).getOnboardingSocialData()})),[]),k=null===g||!1===g,{setOnboardingSocialData:v}=(0,c.useDispatch)(u.M);return(0,o.createElement)(i.Button,{className:b()("skip-button",t),onClick:k?()=>async function(e){if(_){if(_.isComplete=(new Date).getTime(),e?.includes("basic-info")){const e=await async function(){const e=await(0,p.mt)(),t=await(0,p.oc)(h);return null!==t?.error?e?.body:t?.body}();e&&v(e),await s.y.dispatchEvents(m.XJ)}(0,d.V1)(_)}window.location.replace(f.R0)}(w.pathname):()=>("function"==typeof e&&e(),void r(g.path))},n||(0,a.__)("Skip this Step","wp-module-onboarding"))}))},5377:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>k});var o=n(1609),a=n(7143),r=n(8468),i=n(9491),c=n(148),l=n(5706),s=n(7723);var d=n(1056),u=n(3988),p=n(513),f=n(6999),m=n(2607),w=n(1032),b=n(7675),g=n(8969),_=n(2202),h=n(8744);const k=(0,r.memo)((()=>{const[e,t]=(0,r.useState)(!1),[n,k]=(0,r.useState)(!1),v=(0,i.useViewportMatch)("small"),y=(0,c.Zp)(),{nextStep:E}=(0,a.useSelect)((e=>({nextStep:e(b.M).getNextStep()}))),{setIsHeaderEnabled:S,setSidebarActiveView:x,setHeaderActiveView:N,setDrawerActiveView:A,setIsFooterNavAllowed:C,updateSiteGenErrorStatus:D,setIsHeaderNavigationEnabled:M}=(0,a.useDispatch)(b.M);(0,r.useEffect)((()=>{S(!0),x(!1),N(g.Ix),A(!1),M(!0)})),(0,r.useEffect)((()=>{C(e),n&&e&&y(E.path)}),[n,e]);const O={heading:(0,s.__)("Do you want to include any content from Facebook?","wp-module-onboarding"),facebookTitle:(0,s.__)("Connect a Facebook Account","wp-module-onboarding"),facebookDesc:(0,s.__)("By connecting a Facebook profile, we can fetch relevant data to increase the accuracy of your AI generated site.","wp-module-onboarding"),facebookButton:(0,s.__)("Connect Facebook","wp-module-onboarding"),buttons:{skip:(0,s.__)("Skip for now","wp-module-onboarding"),next:(0,s.__)("Next","wp-module-onboarding")}};return(0,o.createElement)(w.tR,null,(0,o.createElement)(u.A,{isCentered:!0,className:"nfd-onboarding-step--site-gen__social-media"},(0,o.createElement)("div",{className:"nfd-onboarding-step--site-gen__social-media__container"},(0,o.createElement)(p.A,{title:O.heading}),(0,o.createElement)("div",{className:"nfd-onboarding-step--site-gen__social-media__contain "},(0,o.createElement)("div",{className:"nfd-onboarding-step--site-gen__social-media__contain__containleft "},(0,o.createElement)("span",null,O.facebookTitle),(0,o.createElement)("p",null,O.facebookDesc)),(0,o.createElement)("div",{className:"nfd-onboarding-step--site-gen__social-media__contain__containright "},(0,o.createElement)(l.FacebookConnectButton,{className:"nfd-onboarding-step--site-gen__social-media__contain__containright__button",onConnect:()=>{(0,d.v)(new d.iC(_.$2,"facebook",{source:h.d0})),t(!0)},onClick:()=>k(!0),onFailure:()=>{D(!0)}},(0,o.createElement)("i",{className:"nfd-onboarding-step--site-gen__social-media__contain__containright__button__icon"})))),(0,o.createElement)("div",{className:"nfd-onboarding-step--site-gen__social-media__container__buttons"},(0,o.createElement)(m.A,{callback:()=>{(0,d.v)(new d.iC(_.$x,void 0,{source:h.d0}))},className:"nfd-onboarding-step--site-gen__social-media__container__buttons__skip",text:O.buttons.skip}),v&&(0,o.createElement)(f.A,{text:O.buttons.next,disabled:!e})))))}))}}]); \ No newline at end of file diff --git a/build/2.3.2/866.js b/build/2.3.2/866.js deleted file mode 100644 index bbd175fc8..000000000 --- a/build/2.3.2/866.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[866],{90:(e,n,t)=>{t.d(n,{A:()=>d});var o=t(1609),i=t(6942),a=t.n(i),r=t(8468),s=t(8969),l=t(9269);const d=({title:e,subtitle:n})=>{const t=(0,r.useContext)(l.D),i=t?.theme||!1;return(0,o.createElement)("div",{className:"nfd-onboarding-step__heading"},(0,o.createElement)("h2",{className:"nfd-onboarding-step__heading__title"},e),n&&(0,o.createElement)("div",{className:"nfd-onboarding-step__heading__subtitle"},n,(0,o.createElement)("div",{className:a()("nfd-onboarding-step__heading__icon",i===s.Vw?"nfd-onboarding-step__heading__icon--light":null)})))}},3866:(e,n,t)=>{t.r(n),t.d(n,{default:()=>v});var o=t(1609),i=t(8468),a=t(7143),r=t(148),s=t(7723);var l=t(2940),d=t(7835),g=t(1056),u=t(8744),c=t(7675),p=t(2202);const _=(0,i.memo)((({questionnaire:e,oldFlow:n,options:t})=>{const i=(0,r.Zp)(),{brandConfig:s,hireProUrl:_,currentData:b}=(0,a.useSelect)((e=>({brandConfig:e(c.M).getNewfoldBrandConfig(),hireProUrl:e(c.M).getfullServiceCreativeTeamUrl(),currentData:e(c.M).getCurrentOnboardingData()}))),{updateAllSteps:w,updateTopSteps:m,updateRoutes:f,updateDesignRoutes:h,updateInitialize:v,setCurrentOnboardingData:E}=(0,a.useDispatch)(c.M),C=e=>{if(!(0,l.nC)(s,e))return!1;const n=window.nfdOnboarding.currentFlow,t=(0,d.Sg)(e)();w(t.steps),m(t?.topSteps),f(t.routes),h(t?.designRoutes),u.d0!==n&&(window.nfdOnboarding.oldFlow=n),window.nfdOnboarding.currentFlow=e,b.activeFlow=e,b.continueWithoutAi=!1,E(b),u.d0!==e&&v(!0),i(t.steps[1].path)},S=e=>{let t=!1;switch(e){case"sitebuild":t="DIY",C(n);break;case"sitegen":t="AI",C(u.d0);break;case"hirepro":t="PRO",window.open(_,"_blank")}t&&(0,g.v)(new g.iC(p.Qh,t))};return(0,o.createElement)("div",{className:""},(0,o.createElement)("p",{className:"nfd-onboarding-sitegen-options__questionnaire"},e),(0,o.createElement)("div",{className:"nfd-onboarding-sitegen-options__container"},t.map(((e,n)=>!(e.flow===u.d0&&!(0,l.nC)(s,e.flow))&&(0,o.createElement)("div",{className:"nfd-onboarding-sitegen-options__container__options",key:n,role:"button",tabIndex:0,onClick:()=>{S(e.flow)},onKeyDown:()=>{S(e.flow)},"data-flow":e.flow},(0,o.createElement)("h3",{className:"nfd-onboarding-sitegen-options__container__heading__title"},e.span&&(0,o.createElement)("span",{className:"nfd-onboarding-sitegen-options__container__options__span"},e.span),e.title),(0,o.createElement)("p",{className:"nfd-onboarding-sitegen-options__container__heading__subtitle"},e.subtitle))))))}));var b=t(3988),w=t(90),m=t(3731),f=t(9034),h=t(8969);const v=()=>{const{migrationUrl:e,canMigrateSite:n,allSteps:t}=(0,a.useSelect)((e=>({migrationUrl:e(c.M).getMigrationUrl(),canMigrateSite:e(c.M).canMigrateSite(),allSteps:e(c.M).getAllSteps(),currentStep:e(c.M).getCurrentStep(),routes:e(c.M).getRoutes()}))),{setIsHeaderEnabled:d,setSidebarActiveView:v,setHeaderActiveView:E,setDrawerActiveView:C,setIsHeaderNavigationEnabled:S,setFooterActiveView:k,setHideFooterNav:A,updateAllSteps:N}=(0,a.useDispatch)(c.M);(0,i.useEffect)((()=>{A(!0),d(!1),v(!1),S(!1),E(h.Ix),C(!1),k(h.Sr)}));const M=window.nfdOnboarding?.oldFlow?window.nfdOnboarding.oldFlow:u.rA,I=()=>{(0,g.SV)(new g.iC(p.Qh,"TUTORIAL")),window.location.replace(h.R0)},y={heading:(0,s.__)("Welcome to WordPress","wp-module-onboarding"),subheading:(0,s.__)("powered by ","wp-module-onboarding"),questionnaire:(0,s.__)("Where would you like to start?","wp-module-onboarding"),options:[{title:(0,s.__)(" Website Creator","wp-module-onboarding"),subtitle:(0,s.__)("Unique AI generated content & design curated for you.","wp-module-onboarding"),span:(0,s.__)("AI","wp-module-onboarding"),flow:"sitegen"},{title:(0,s.__)("Guided Configuration","wp-module-onboarding"),subtitle:(0,s.__)("Robust configuration guide to help you build your site","wp-module-onboarding"),flow:"sitebuild"},{title:(0,s.__)("Hire a Pro","wp-module-onboarding"),subtitle:(0,s.__)("Leave it to our WordPress experts.","wp-module-onboarding"),flow:"hirepro"}],importtext:(0,s.__)("Already have a WordPress site you want to import?","wp-module-onboarding"),importlink:(0,s.__)("https://my.bluehost.com/cgi/services/migration","wp-module-onboarding"),exitToWordPress:(0,s.__)("I’m following a tutorial","wp-module-onboarding")},O=(0,r.Zp)(),D=()=>{if(n){const e=(0,l.gK)(t,f.O);N(e.allSteps),O(m.O.path)}else window.open(e,"_blank");(0,g.v)(new g.iC(p.Qh,"MIGRATE"))};return(0,o.createElement)(b.A,{isCentered:!0,className:"nfd-onboarding-step--site-gen__fork"},(0,o.createElement)(w.A,{title:y.heading,subtitle:y.subheading}),(0,o.createElement)(_,{questionnaire:y.questionnaire,oldFlow:M,options:y.options}),(0,o.createElement)("br",null),(0,o.createElement)("br",null),(n||e)&&(0,o.createElement)("div",{className:"nfd-onboarding-step--site-gen__fork__importsite",onClick:()=>{D()},onKeyUp:e=>{"Enter"===e.key&&D()},tabIndex:0,role:"button","aria-label":"Trigger site migration"},y.importtext),(0,o.createElement)("span",{role:"button",tabIndex:0,className:"nfd-onboarding-step--site-gen__fork__exit",onClick:()=>I(),onKeyDown:()=>I()},y.exitToWordPress))}}}]); \ No newline at end of file diff --git a/build/2.3.2/sitegen-theme-marker.css.asset.php b/build/2.3.2/sitegen-theme-marker.css.asset.php deleted file mode 100644 index e96293bd0..000000000 --- a/build/2.3.2/sitegen-theme-marker.css.asset.php +++ /dev/null @@ -1 +0,0 @@ - array(), 'version' => '4dae71e189c795a5c447'); diff --git a/build/2.3.2/sitegen-theme-marker.css.css b/build/2.3.2/sitegen-theme-marker.css.css deleted file mode 100644 index cf62b7225..000000000 --- a/build/2.3.2/sitegen-theme-marker.css.css +++ /dev/null @@ -1 +0,0 @@ -.theme-name{align-items:center;display:flex;flex-direction:row;svg{margin-left:8px}}.nfd-onboarding-sitegen-theme-marker-filled{fill:#1d2327}.theme.active{.nfd-onboarding-sitegen-theme-marker-filled{fill:none}}.nfd-onboarding-sitegen-theme-marker-title{margin-left:8px;overflow:hidden;text-overflow:ellipsis;width:120px} diff --git a/build/2.3.2/100.css b/build/2.3.3/100.css similarity index 100% rename from build/2.3.2/100.css rename to build/2.3.3/100.css diff --git a/build/2.3.2/100.js b/build/2.3.3/100.js similarity index 100% rename from build/2.3.2/100.js rename to build/2.3.3/100.js diff --git a/build/2.3.2/202.js b/build/2.3.3/202.js similarity index 100% rename from build/2.3.2/202.js rename to build/2.3.3/202.js diff --git a/build/2.3.2/206.js b/build/2.3.3/206.js similarity index 100% rename from build/2.3.2/206.js rename to build/2.3.3/206.js diff --git a/build/2.3.2/218.js b/build/2.3.3/218.js similarity index 100% rename from build/2.3.2/218.js rename to build/2.3.3/218.js diff --git a/build/2.3.2/270.js b/build/2.3.3/270.js similarity index 100% rename from build/2.3.2/270.js rename to build/2.3.3/270.js diff --git a/build/2.3.2/287.js b/build/2.3.3/287.js similarity index 100% rename from build/2.3.2/287.js rename to build/2.3.3/287.js diff --git a/build/2.3.2/325.js b/build/2.3.3/325.js similarity index 100% rename from build/2.3.2/325.js rename to build/2.3.3/325.js diff --git a/build/2.3.2/328.js b/build/2.3.3/328.js similarity index 100% rename from build/2.3.2/328.js rename to build/2.3.3/328.js diff --git a/build/2.3.2/340.js b/build/2.3.3/340.js similarity index 100% rename from build/2.3.2/340.js rename to build/2.3.3/340.js diff --git a/build/2.3.2/356.js b/build/2.3.3/356.js similarity index 100% rename from build/2.3.2/356.js rename to build/2.3.3/356.js diff --git a/build/2.3.2/366.js b/build/2.3.3/366.js similarity index 100% rename from build/2.3.2/366.js rename to build/2.3.3/366.js diff --git a/build/2.3.2/367.js b/build/2.3.3/367.js similarity index 100% rename from build/2.3.2/367.js rename to build/2.3.3/367.js diff --git a/build/2.3.3/377.js b/build/2.3.3/377.js new file mode 100644 index 000000000..07497359b --- /dev/null +++ b/build/2.3.3/377.js @@ -0,0 +1 @@ +(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[377],{5706:(e,t)=>{(()=>{var e={537:(e,t)=>{!function(){"use strict";var e={d:function(t,n){for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};e.r(n),e.d(n,{NewfoldRuntime:function(){return a}});var o=window.wp.url;const a={hasCapability:e=>!0===window.NewfoldRuntime?.capabilities[e],adminUrl:e=>window.NewfoldRuntime?.admin_url+e,createApiUrl:(e,t={})=>(0,o.addQueryArgs)(window.NewfoldRuntime?.base_url,{rest_route:e,...t}),get siteDetails(){return window.NewfoldRuntime?.site},get sdk(){return window.NewfoldRuntime?.sdk},get isWoo(){return window.NewfoldRuntime?.isWoocommerceActive},get ecommerce(){return window.NewfoldRuntime?.ecommerce},get plugin(){return window.NewfoldRuntime?.plugin},get wpversion(){return window.NewfoldRuntime?.wpversion},get siteTitle(){return window.NewfoldRuntime?.siteTitle}};var r=t;for(var i in n)r[i]=n[i];n.__esModule&&Object.defineProperty(r,"__esModule",{value:!0})}()},967:(e,t)=>{var n;!function(){"use strict";var o={}.hasOwnProperty;function a(){for(var e="",t=0;t{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};(()=>{"use strict";o.r(a),o.d(a,{FacebookConnectButton:()=>p,FacebookConnectPluginView:()=>f,facebookConnectHelper:()=>m,getFacebookUserProfileDetails:()=>l});const e=window.React,t=window.wp.components,n=window.wp.apiFetch;var r=o.n(n),i=o(537);const c={facebook_module:{base_url:"https://graph.facebook.com/v18.0",debug_token:"/debug_token",token_phrase:"secret_token_phrase"},wordpress:{access:i.NewfoldRuntime.createApiUrl("/newfold-facebook/v1/facebook/hiive"),fb_token:i.NewfoldRuntime.createApiUrl("/newfold-facebook/v1/facebook/get-token"),post_token:i.NewfoldRuntime.createApiUrl("/newfold-facebook/v1/facebook/post-token"),facebook_details:i.NewfoldRuntime.createApiUrl("/newfold-facebook/v1/facebook/details"),facebook_logout:i.NewfoldRuntime.createApiUrl("/newfold-facebook/v1/facebook/logout")},cf_worker:{login_screen:"https://hiive.cloud/workers/facebook-connect/",get_token:"https://hiive.cloud/workers/facebook-connect/get/token?hiive_token=",delete_token:"https://hiive.cloud/workers/facebook-connect/delete/token?hiive_token="}},l=()=>r()({url:c.wordpress.facebook_details}).then((e=>{if(e?.details?.error)throw{message:"failed to load the data",error:e?.details?.error};return e?.details})).catch((e=>{throw e})),s=window.wp.i18n;var d=o(967),u=o.n(d);const p=({className:n,children:o,showData:a,onConnect:i,onDisconnect:d,onFailure:p,onClick:f})=>{const[m,w]=(0,e.useState)(""),[b,g]=(0,e.useState)(!1),[_,h]=(0,e.useState)([]),[k,v]=(0,e.useState)(!1);function y(e){var t;e.origin.search("https://hiive.cloud")<0||(v(!0),window.removeEventListener("message",y),(t=e.data,r()({url:`${c.wordpress.fb_token}`,data:t,method:"POST"})).then((e=>{E()})).catch((()=>v(!1))))}const E=()=>{l().then((e=>{"token not found!"!==e&&(g(!0),h(e),v(!1),"function"==typeof i&&i(e))})).catch((()=>r()({url:c.wordpress.access}).then((e=>{l().then((e=>{"token not found!"!==e&&(g(!0),h(e),"function"==typeof i&&i(e)),v(!1)})).catch((e=>{v(!1),"function"==typeof p&&p(e)})),w(e.token)})).catch((e=>{v(!1),"function"==typeof p&&p(e)}))))};return(0,e.useEffect)((()=>{!m&&r()({url:c.wordpress.access}).then((e=>{e.token&&w(e.token)})),E()}),[]),(0,e.createElement)("div",null,b?(0,e.createElement)("div",null,(0,e.createElement)(t.Button,{className:u()("nfd-facebook-button--connected",`${n}--connected`)},(0,s.__)("Connected","wp-module-facebook")),a&&(0,e.createElement)("div",null,_?.map((t=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)("ul",{style:{paddingTop:"20px"}},(0,e.createElement)("li",null,(0,e.createElement)("p",null,"Facebook ID: ",t?.User?.profile?.id)),(0,e.createElement)("li",null,(0,e.createElement)("p",null,"User Name: ",t?.User?.profile?.name)),(0,e.createElement)("li",null,(0,e.createElement)("p",null,"User Email: ",t?.User?.profile?.email)),(0,e.createElement)("li",null,(0,e.createElement)("p",null,"Profile pic:",t?.User?.profile?.picture?.data?.url))),(0,e.createElement)("img",{src:`https://graph.facebook.com/${t?.id}/picture?type=small`,height:t?.picture?.height,width:t?.picture?.width})))))):(0,e.createElement)(t.Button,{type:"submit",disabled:k,className:u()("nfd-facebook-button--connect",`${n}--connect`),onClick:()=>(window.open(`${c.cf_worker.login_screen}?token_hiive=${m}&redirect=${window.location.href}`,"ModalPopUp",`toolbar=no,scrollbars=no,location=no,width=${window.innerWidth/2+200},height=${window.innerHeight/2+200},top=200,left=200`),window.addEventListener("message",y,!1),void("function"==typeof f&&f()))},o,(0,s.__)("Connect Facebook","wp-module-facebook"),k&&(0,e.createElement)(t.Spinner,null)))},f=({fbLogin:n,loginInfo:o,getFbDetails:a})=>{const[i,l]=(0,e.useState)(!1);return(0,e.useEffect)((()=>l(!1)),[]),n&&(0,e.createElement)("div",{style:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingTop:"20px"}},(0,e.createElement)("div",{style:{display:"flex",flexDirection:"row",alignItems:"center"}},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",height:"30px",width:"30px",fill:"#405795",viewBox:"0 0 24 24",style:{marginRight:"10px"}},(0,e.createElement)("path",{d:"M22.675 0h-21.35c-.732 0-1.325.593-1.325 1.325v21.351c0 .731.593 1.324 1.325 1.324h11.495v-9.294h-3.128v-3.622h3.128v-2.671c0-3.1 1.893-4.788 4.659-4.788 1.325 0 2.463.099 2.795.143v3.24l-1.918.001c-1.504 0-1.795.715-1.795 1.763v2.313h3.587l-.467 3.622h-3.12v9.293h6.116c.73 0 1.323-.593 1.323-1.325v-21.35c0-.732-.593-1.325-1.325-1.325z"})),(0,e.createElement)("p",{style:{fontSize:"0.9rem",fontWeight:"600",paddingLeft:"15px"}},"Facebook -",(0,e.createElement)("span",{style:{fontWeight:"normal"}},o?.user?.profile?.email))),i?(0,e.createElement)(t.Spinner,null):(0,e.createElement)("button",{style:{color:"#286BDE"},onClick:()=>(async()=>{l(!0),await r()({url:c.wordpress.facebook_logout}).then((e=>e)).catch((e=>{throw{message:"failed to load the data",errorMsg:e}})).then((()=>{a()})),l(!1)})()},"Disconnect"))},m=async e=>{let t="",n=null,o=[];const a=()=>r()({url:c.wordpress.access}).then((e=>{r()({url:`${c.wordpress.fb_token}`,headers:{method:"GET","content-type":"application/json","Accept-Encoding":"gzip, deflate, br","Access-Control-Allow-Origin":"*"}}).then((e=>{var t;e.token&&(t=e.token,r()({url:c.wordpress.settings,method:"post",data:{fb_token:t}}).then((e=>e)).catch((e=>{console.error(e)})),n=e.token)})).catch((e=>{console.error(e)})),t=e.token})).catch((e=>{console.error(e)}));await a(),await r()({url:c.wordpress.fb_token}).then((async r=>{if(r?.fb_token)await l().then((e=>(n=r.fb_token,o=[e],o)));else{const n=window.open(`${c.cf_worker.login_screen}?token_hiive=${t}&redirect=${window.location.href}`,"ModalPopUp",`toolbar=no,scrollbars=no,location=no,width=${window.innerWidth/2+200},height=${window.innerHeight/2+200},top=200,left=200`),o=setInterval((async function(){n?.closed&&(clearInterval(o),await a(),e())}),1e3)}}))}})();var r=t;for(var i in a)r[i]=a[i];a.__esModule&&Object.defineProperty(r,"__esModule",{value:!0})})()},6999:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var o=n(1609),a=n(6942),r=n.n(a),i=n(148),c=n(7143),l=n(6427),s=n(7677),d=n(6655),u=n(7675);const p=({text:e,className:t,callback:n=null,disabled:a=!1,showChevronRight:p=!0})=>{const f=(0,i.Zp)(),{nextStep:m}=(0,c.useSelect)((e=>({nextStep:e(u.M).getNextStep()})));return(0,o.createElement)(l.Button,{className:r()("nfd-onboarding-button--site-gen-next",{"nfd-onboarding-button--site-gen-next--disabled":a},t),onClick:()=>{a||(n&&"function"==typeof n&&n(),m&&f(m.path))}},(0,o.createElement)("p",{className:"nfd-onboarding-button--site-gen-next--text"},e),p&&(0,o.createElement)(s.A,{className:"nfd-onboarding-button--site-gen-next--icon",icon:d.A}))}},513:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(1609),a=n(8468),r=n(7673);const i=(0,a.memo)((({title:e})=>(0,o.createElement)("div",{className:"ai-heading"},(0,o.createElement)(r.A,{height:"40px"}),(0,o.createElement)("div",{className:"ai-heading--title"},e))))},2607:(e,t,n)=>{"use strict";n.d(t,{A:()=>g});var o=n(1609),a=n(7723),r=n(8468),i=n(6427),c=n(7143),l=n(148),s=n(4371),d=n(6079),u=n(7675),p=n(2014),f=n(8969),m=n(2202),w=n(6942),b=n.n(w);const g=(0,r.memo)((({callback:e=!1,className:t,text:n})=>{const r=(0,l.Zp)(),w=(0,l.zy)(),{nextStep:g,currentData:_,socialData:h}=(0,c.useSelect)((e=>({nextStep:e(u.M).getNextStep(),currentData:e(u.M).getCurrentOnboardingData(),socialData:e(u.M).getOnboardingSocialData()})),[]),k=null===g||!1===g,{setOnboardingSocialData:v}=(0,c.useDispatch)(u.M);return(0,o.createElement)(i.Button,{className:b()("skip-button",t),onClick:k?()=>async function(e){if(_){if(_.isComplete=(new Date).getTime(),e?.includes("basic-info")){const e=await async function(){const e=await(0,p.mt)(),t=await(0,p.oc)(h);return null!==t?.error?e?.body:t?.body}();e&&v(e),await s.y.dispatchEvents(m.XJ)}(0,d.V1)(_)}window.location.replace(f.R0)}(w.pathname):()=>("function"==typeof e&&e(),void r(g.path))},n||(0,a.__)("Skip this Step","wp-module-onboarding"))}))},5377:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>k});var o=n(1609),a=n(7143),r=n(8468),i=n(9491),c=n(148),l=n(5706),s=n(7723);var d=n(1056),u=n(3988),p=n(513),f=n(6999),m=n(2607),w=n(1032),b=n(7675),g=n(8969),_=n(2202),h=n(8744);const k=(0,r.memo)((()=>{const[e,t]=(0,r.useState)(!1),[n,k]=(0,r.useState)(!1),v=(0,i.useViewportMatch)("small"),y=(0,c.Zp)(),{nextStep:E}=(0,a.useSelect)((e=>({nextStep:e(b.M).getNextStep()}))),{setIsHeaderEnabled:S,setSidebarActiveView:x,setHeaderActiveView:N,setDrawerActiveView:A,setIsFooterNavAllowed:C,updateSiteGenErrorStatus:D,setIsHeaderNavigationEnabled:M}=(0,a.useDispatch)(b.M);(0,r.useEffect)((()=>{S(!0),x(!1),N(g.Ix),A(!1),M(!0)})),(0,r.useEffect)((()=>{C(e),n&&e&&y(E.path)}),[n,e]);const O={heading:(0,s.__)("Do you want to include any content from Facebook?","wp-module-onboarding"),facebookTitle:(0,s.__)("Connect a Facebook Account","wp-module-onboarding"),facebookDesc:(0,s.__)("By connecting a Facebook profile, we can fetch relevant data to increase the accuracy of your AI generated site.","wp-module-onboarding"),facebookButton:(0,s.__)("Connect Facebook","wp-module-onboarding"),buttons:{skip:(0,s.__)("Skip for now","wp-module-onboarding"),next:(0,s.__)("Next","wp-module-onboarding")}};return(0,o.createElement)(w.tR,null,(0,o.createElement)(u.A,{isCentered:!0,className:"nfd-onboarding-step--site-gen__social-media"},(0,o.createElement)("div",{className:"nfd-onboarding-step--site-gen__social-media__container"},(0,o.createElement)(p.A,{title:O.heading}),(0,o.createElement)("div",{className:"nfd-onboarding-step--site-gen__social-media__contain "},(0,o.createElement)("div",{className:"nfd-onboarding-step--site-gen__social-media__contain__containleft "},(0,o.createElement)("span",null,O.facebookTitle),(0,o.createElement)("p",null,O.facebookDesc)),(0,o.createElement)("div",{className:"nfd-onboarding-step--site-gen__social-media__contain__containright "},(0,o.createElement)(l.FacebookConnectButton,{className:"nfd-onboarding-step--site-gen__social-media__contain__containright__button",onConnect:()=>{(0,d.v)(new d.iC(_.$2,"facebook",{source:h.d0})),t(!0)},onClick:()=>k(!0),onFailure:e=>{404!==e?.data?.status&&D(!0)}},(0,o.createElement)("i",{className:"nfd-onboarding-step--site-gen__social-media__contain__containright__button__icon"})))),(0,o.createElement)("div",{className:"nfd-onboarding-step--site-gen__social-media__container__buttons"},(0,o.createElement)(m.A,{callback:()=>{(0,d.v)(new d.iC(_.$x,void 0,{source:h.d0}))},className:"nfd-onboarding-step--site-gen__social-media__container__buttons__skip",text:O.buttons.skip}),v&&(0,o.createElement)(f.A,{text:O.buttons.next,disabled:!e})))))}))}}]); \ No newline at end of file diff --git a/build/2.3.2/396.css b/build/2.3.3/396.css similarity index 100% rename from build/2.3.2/396.css rename to build/2.3.3/396.css diff --git a/build/2.3.2/396.js b/build/2.3.3/396.js similarity index 100% rename from build/2.3.2/396.js rename to build/2.3.3/396.js diff --git a/build/2.3.2/40.js b/build/2.3.3/40.js similarity index 100% rename from build/2.3.2/40.js rename to build/2.3.3/40.js diff --git a/build/2.3.2/403.js b/build/2.3.3/403.js similarity index 100% rename from build/2.3.2/403.js rename to build/2.3.3/403.js diff --git a/build/2.3.2/426.js b/build/2.3.3/426.js similarity index 100% rename from build/2.3.2/426.js rename to build/2.3.3/426.js diff --git a/build/2.3.2/508.js b/build/2.3.3/508.js similarity index 100% rename from build/2.3.2/508.js rename to build/2.3.3/508.js diff --git a/build/2.3.2/51.js b/build/2.3.3/51.js similarity index 100% rename from build/2.3.2/51.js rename to build/2.3.3/51.js diff --git a/build/2.3.2/546.js b/build/2.3.3/546.js similarity index 100% rename from build/2.3.2/546.js rename to build/2.3.3/546.js diff --git a/build/2.3.2/560.js b/build/2.3.3/560.js similarity index 100% rename from build/2.3.2/560.js rename to build/2.3.3/560.js diff --git a/build/2.3.2/585.js b/build/2.3.3/585.js similarity index 100% rename from build/2.3.2/585.js rename to build/2.3.3/585.js diff --git a/build/2.3.2/595.js b/build/2.3.3/595.js similarity index 100% rename from build/2.3.2/595.js rename to build/2.3.3/595.js diff --git a/build/2.3.2/619.js b/build/2.3.3/619.js similarity index 100% rename from build/2.3.2/619.js rename to build/2.3.3/619.js diff --git a/build/2.3.2/622.js b/build/2.3.3/622.js similarity index 100% rename from build/2.3.2/622.js rename to build/2.3.3/622.js diff --git a/build/2.3.2/627.js b/build/2.3.3/627.js similarity index 100% rename from build/2.3.2/627.js rename to build/2.3.3/627.js diff --git a/build/2.3.2/672.js b/build/2.3.3/672.js similarity index 100% rename from build/2.3.2/672.js rename to build/2.3.3/672.js diff --git a/build/2.3.2/705.js b/build/2.3.3/705.js similarity index 100% rename from build/2.3.2/705.js rename to build/2.3.3/705.js diff --git a/build/2.3.2/74.js b/build/2.3.3/74.js similarity index 100% rename from build/2.3.2/74.js rename to build/2.3.3/74.js diff --git a/build/2.3.2/761.js b/build/2.3.3/761.js similarity index 100% rename from build/2.3.2/761.js rename to build/2.3.3/761.js diff --git a/build/2.3.2/796.js b/build/2.3.3/796.js similarity index 100% rename from build/2.3.2/796.js rename to build/2.3.3/796.js diff --git a/build/2.3.2/803.js b/build/2.3.3/803.js similarity index 100% rename from build/2.3.2/803.js rename to build/2.3.3/803.js diff --git a/build/2.3.2/859.js b/build/2.3.3/859.js similarity index 100% rename from build/2.3.2/859.js rename to build/2.3.3/859.js diff --git a/build/2.3.3/866.js b/build/2.3.3/866.js new file mode 100644 index 000000000..7c34c9286 --- /dev/null +++ b/build/2.3.3/866.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[866],{90:(e,n,t)=>{t.d(n,{A:()=>d});var o=t(1609),i=t(6942),a=t.n(i),r=t(8468),s=t(8969),l=t(9269);const d=({title:e,subtitle:n})=>{const t=(0,r.useContext)(l.D),i=t?.theme||!1;return(0,o.createElement)("div",{className:"nfd-onboarding-step__heading"},(0,o.createElement)("h2",{className:"nfd-onboarding-step__heading__title"},e),n&&(0,o.createElement)("div",{className:"nfd-onboarding-step__heading__subtitle"},n,(0,o.createElement)("div",{className:a()("nfd-onboarding-step__heading__icon",i===s.Vw?"nfd-onboarding-step__heading__icon--light":null)})))}},3866:(e,n,t)=>{t.r(n),t.d(n,{default:()=>E});var o=t(1609),i=t(8468),a=t(7143),r=t(148),s=t(7723);var l=t(2940),d=t(8559),g=t(7835),u=t(1056),p=t(8744),c=t(7675),_=t(2202);const b=(0,i.memo)((({questionnaire:e,oldFlow:n,options:t})=>{const i=(0,r.Zp)(),{brandConfig:s,hireProUrl:d,currentData:b}=(0,a.useSelect)((e=>({brandConfig:e(c.M).getNewfoldBrandConfig(),hireProUrl:e(c.M).getfullServiceCreativeTeamUrl(),currentData:e(c.M).getCurrentOnboardingData()}))),{updateAllSteps:w,updateTopSteps:m,updateRoutes:f,updateDesignRoutes:h,updateInitialize:v,setCurrentOnboardingData:E}=(0,a.useDispatch)(c.M),C=e=>{if(!(0,l.nC)(s,e))return!1;const n=window.nfdOnboarding.currentFlow,t=(0,g.Sg)(e)();w(t.steps),m(t?.topSteps),f(t.routes),h(t?.designRoutes),p.d0!==n&&(window.nfdOnboarding.oldFlow=n),window.nfdOnboarding.currentFlow=e,b.activeFlow=e,b.continueWithoutAi=!1,E(b),p.d0!==e&&v(!0),i(t.steps[1].path)},S=e=>{let t=!1;switch(e){case"sitebuild":t="DIY",C(n);break;case"sitegen":t="AI",C(p.d0);break;case"hirepro":t="PRO",window.open(d,"_blank")}t&&(0,u.v)(new u.iC(_.Qh,t))};return(0,o.createElement)("div",{className:""},(0,o.createElement)("p",{className:"nfd-onboarding-sitegen-options__questionnaire"},e),(0,o.createElement)("div",{className:"nfd-onboarding-sitegen-options__container"},t.map(((e,n)=>!(e.flow===p.d0&&!(0,l.nC)(s,e.flow))&&(0,o.createElement)("div",{className:"nfd-onboarding-sitegen-options__container__options",key:n,role:"button",tabIndex:0,onClick:()=>{S(e.flow)},onKeyDown:()=>{S(e.flow)},"data-flow":e.flow},(0,o.createElement)("h3",{className:"nfd-onboarding-sitegen-options__container__heading__title"},e.span&&(0,o.createElement)("span",{className:"nfd-onboarding-sitegen-options__container__options__span"},e.span),e.title),(0,o.createElement)("p",{className:"nfd-onboarding-sitegen-options__container__heading__subtitle"},e.subtitle))))))}));var w=t(3988),m=t(90),f=t(3731),h=t(9034),v=t(8969);const E=()=>{const{migrationUrl:e,canMigrateSite:n,allSteps:t,pluginInstallHash:g}=(0,a.useSelect)((e=>({migrationUrl:e(c.M).getMigrationUrl(),canMigrateSite:e(c.M).canMigrateSite(),allSteps:e(c.M).getAllSteps(),currentStep:e(c.M).getCurrentStep(),routes:e(c.M).getRoutes(),pluginInstallHash:e(c.M).getPluginInstallHash()}))),{setIsHeaderEnabled:E,setSidebarActiveView:C,setHeaderActiveView:S,setDrawerActiveView:k,setIsHeaderNavigationEnabled:A,setFooterActiveView:I,setHideFooterNav:N,updateAllSteps:M}=(0,a.useDispatch)(c.M);(0,i.useEffect)((()=>{N(!0),E(!1),C(!1),A(!1),S(v.Ix),k(!1),I(v.Sr),(0,d.Ts)(g)}));const y=window.nfdOnboarding?.oldFlow?window.nfdOnboarding.oldFlow:p.rA,O=()=>{(0,u.SV)(new u.iC(_.Qh,"TUTORIAL")),window.location.replace(v.R0)},D={heading:(0,s.__)("Welcome to WordPress","wp-module-onboarding"),subheading:(0,s.__)("powered by ","wp-module-onboarding"),questionnaire:(0,s.__)("Where would you like to start?","wp-module-onboarding"),options:[{title:(0,s.__)(" Website Creator","wp-module-onboarding"),subtitle:(0,s.__)("Unique AI generated content & design curated for you.","wp-module-onboarding"),span:(0,s.__)("AI","wp-module-onboarding"),flow:"sitegen"},{title:(0,s.__)("Guided Configuration","wp-module-onboarding"),subtitle:(0,s.__)("Robust configuration guide to help you build your site","wp-module-onboarding"),flow:"sitebuild"},{title:(0,s.__)("Hire a Pro","wp-module-onboarding"),subtitle:(0,s.__)("Leave it to our WordPress experts.","wp-module-onboarding"),flow:"hirepro"}],importtext:(0,s.__)("Already have a WordPress site you want to import?","wp-module-onboarding"),importlink:(0,s.__)("https://my.bluehost.com/cgi/services/migration","wp-module-onboarding"),exitToWordPress:(0,s.__)("I’m following a tutorial","wp-module-onboarding")},x=(0,r.Zp)(),T=()=>{if(n){const e=(0,l.gK)(t,h.O);M(e.allSteps),x(f.O.path)}else window.open(e,"_blank");(0,u.v)(new u.iC(_.Qh,"MIGRATE"))};return(0,o.createElement)(w.A,{isCentered:!0,className:"nfd-onboarding-step--site-gen__fork"},(0,o.createElement)(m.A,{title:D.heading,subtitle:D.subheading}),(0,o.createElement)(b,{questionnaire:D.questionnaire,oldFlow:y,options:D.options}),(0,o.createElement)("br",null),(0,o.createElement)("br",null),(n||e)&&(0,o.createElement)("div",{className:"nfd-onboarding-step--site-gen__fork__importsite",onClick:()=>{T()},onKeyUp:e=>{"Enter"===e.key&&T()},tabIndex:0,role:"button","aria-label":"Trigger site migration"},D.importtext),(0,o.createElement)("span",{role:"button",tabIndex:0,className:"nfd-onboarding-step--site-gen__fork__exit",onClick:()=>O(),onKeyDown:()=>O()},D.exitToWordPress))}}}]); \ No newline at end of file diff --git a/build/2.3.2/871.js b/build/2.3.3/871.js similarity index 100% rename from build/2.3.2/871.js rename to build/2.3.3/871.js diff --git a/build/2.3.2/910.js b/build/2.3.3/910.js similarity index 100% rename from build/2.3.2/910.js rename to build/2.3.3/910.js diff --git a/build/2.3.2/97.js b/build/2.3.3/97.js similarity index 100% rename from build/2.3.2/97.js rename to build/2.3.3/97.js diff --git a/build/2.3.2/971.js b/build/2.3.3/971.js similarity index 100% rename from build/2.3.2/971.js rename to build/2.3.3/971.js diff --git a/build/2.3.2/978.js b/build/2.3.3/978.js similarity index 100% rename from build/2.3.2/978.js rename to build/2.3.3/978.js diff --git a/build/2.3.2/993.js b/build/2.3.3/993.js similarity index 100% rename from build/2.3.2/993.js rename to build/2.3.3/993.js diff --git a/build/2.3.2/994.js b/build/2.3.3/994.js similarity index 100% rename from build/2.3.2/994.js rename to build/2.3.3/994.js diff --git a/build/2.3.2/996.js b/build/2.3.3/996.js similarity index 100% rename from build/2.3.2/996.js rename to build/2.3.3/996.js diff --git a/build/2.3.2/images/ai_bg.55900f2d.png b/build/2.3.3/images/ai_bg.55900f2d.png similarity index 100% rename from build/2.3.2/images/ai_bg.55900f2d.png rename to build/2.3.3/images/ai_bg.55900f2d.png diff --git a/build/2.3.2/images/ai_bg_low.d8292556.png b/build/2.3.3/images/ai_bg_low.d8292556.png similarity index 100% rename from build/2.3.2/images/ai_bg_low.d8292556.png rename to build/2.3.3/images/ai_bg_low.d8292556.png diff --git a/build/2.3.2/images/bluesky.733ebcbf.png b/build/2.3.3/images/bluesky.733ebcbf.png similarity index 100% rename from build/2.3.2/images/bluesky.733ebcbf.png rename to build/2.3.3/images/bluesky.733ebcbf.png diff --git a/build/2.3.2/images/content.fb050ea1.png b/build/2.3.3/images/content.fb050ea1.png similarity index 100% rename from build/2.3.2/images/content.fb050ea1.png rename to build/2.3.3/images/content.fb050ea1.png diff --git a/build/2.3.2/images/design.cc6a697f.png b/build/2.3.3/images/design.cc6a697f.png similarity index 100% rename from build/2.3.2/images/design.cc6a697f.png rename to build/2.3.3/images/design.cc6a697f.png diff --git a/build/2.3.2/images/features.593fb09c.png b/build/2.3.3/images/features.593fb09c.png similarity index 100% rename from build/2.3.2/images/features.593fb09c.png rename to build/2.3.3/images/features.593fb09c.png diff --git a/build/2.3.2/images/full-service.7f58f410.png b/build/2.3.3/images/full-service.7f58f410.png similarity index 100% rename from build/2.3.2/images/full-service.7f58f410.png rename to build/2.3.3/images/full-service.7f58f410.png diff --git a/build/2.3.2/images/full-service.adb3abd6.png b/build/2.3.3/images/full-service.adb3abd6.png similarity index 100% rename from build/2.3.2/images/full-service.adb3abd6.png rename to build/2.3.3/images/full-service.adb3abd6.png diff --git a/build/2.3.2/images/help.19cc7e75.png b/build/2.3.3/images/help.19cc7e75.png similarity index 100% rename from build/2.3.2/images/help.19cc7e75.png rename to build/2.3.3/images/help.19cc7e75.png diff --git a/build/2.3.2/images/step-interstitial.00b15f9e.png b/build/2.3.3/images/step-interstitial.00b15f9e.png similarity index 100% rename from build/2.3.2/images/step-interstitial.00b15f9e.png rename to build/2.3.3/images/step-interstitial.00b15f9e.png diff --git a/build/2.3.2/images/toggle-light-mode.8d7afd07.png b/build/2.3.3/images/toggle-light-mode.8d7afd07.png similarity index 100% rename from build/2.3.2/images/toggle-light-mode.8d7afd07.png rename to build/2.3.3/images/toggle-light-mode.8d7afd07.png diff --git a/build/2.3.2/images/wp-admin.2908b886.png b/build/2.3.3/images/wp-admin.2908b886.png similarity index 100% rename from build/2.3.2/images/wp-admin.2908b886.png rename to build/2.3.3/images/wp-admin.2908b886.png diff --git a/build/2.3.2/images/wp-admin.6c8af0b4.png b/build/2.3.3/images/wp-admin.6c8af0b4.png similarity index 100% rename from build/2.3.2/images/wp-admin.6c8af0b4.png rename to build/2.3.3/images/wp-admin.6c8af0b4.png diff --git a/build/2.3.2/images/wp-admin.d8650899.png b/build/2.3.3/images/wp-admin.d8650899.png similarity index 100% rename from build/2.3.2/images/wp-admin.d8650899.png rename to build/2.3.3/images/wp-admin.d8650899.png diff --git a/build/2.3.2/onboarding.asset.php b/build/2.3.3/onboarding.asset.php similarity index 80% rename from build/2.3.2/onboarding.asset.php rename to build/2.3.3/onboarding.asset.php index d95adc978..57043c7e3 100644 --- a/build/2.3.2/onboarding.asset.php +++ b/build/2.3.3/onboarding.asset.php @@ -1 +1 @@ - array('lodash', 'react', 'react-dom', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-dom-ready', 'wp-element', 'wp-i18n', 'wp-keycodes', 'wp-preferences', 'wp-primitives', 'wp-style-engine', 'wp-url'), 'version' => '43ce726360d3025368ec'); + array('lodash', 'react', 'react-dom', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-dom-ready', 'wp-element', 'wp-i18n', 'wp-keycodes', 'wp-preferences', 'wp-primitives', 'wp-style-engine', 'wp-url'), 'version' => 'a3473fc1263d3662ce73'); diff --git a/build/2.3.2/onboarding.css b/build/2.3.3/onboarding.css similarity index 100% rename from build/2.3.2/onboarding.css rename to build/2.3.3/onboarding.css diff --git a/build/2.3.2/onboarding.js b/build/2.3.3/onboarding.js similarity index 97% rename from build/2.3.2/onboarding.js rename to build/2.3.3/onboarding.js index 7a4a8c62c..24d4ea6d6 100644 --- a/build/2.3.2/onboarding.js +++ b/build/2.3.3/onboarding.js @@ -31,7 +31,7 @@ (0,m.__)("You can continue from your %s home page in the Next steps list.","wp-module-onboarding"),e),redirectMessage:(0,m.__)("Taking you to WordPress in…","wp-module-onboarding")},buttons:{button1:{text:(0,m.__)("Enter WordPress","wp-module-onboarding")},button2:{text:(0,m.__)("Continue Setup","wp-module-onboarding")}}}))(C);return(0,r.createElement)(u.A,{isBgPrimary:!0,isCentered:!0},(0,r.createElement)(p.A,{className:"chapter-interstitial"},(0,r.createElement)(d.A,{heading:T.heading,subHeading:T.subheading}),(0,r.createElement)("div",{className:"chapter-interstitial__content"},(0,r.createElement)("div",{className:"chapter-interstitial__content__column-left"},(0,r.createElement)("h2",{className:"chapter-interstitial__content__column-left__heading"},T.content.heading),(0,r.createElement)("p",{className:"chapter-interstitial__content__column-left__question1"},T.content.question1),(0,r.createElement)("p",{className:"chapter-interstitial__content__column-left__question2"},T.content.question2),(0,r.createElement)("h2",{className:"chapter-interstitial__content__column-left__heading"},T.content.redirectMessage,(0,r.createElement)("br",null)," ",e)),(0,r.createElement)("div",{className:"chapter-interstitial__content__column-right"},(0,r.createElement)("div",{className:"chapter-interstitial__content__column-right__img"}))),(0,r.createElement)("div",{className:"chapter-interstitial__buttons"},(0,r.createElement)(g.default,{onClick:()=>k(),text:T.buttons.button1.text,className:"chapter-interstitial__buttons--blue"}),(0,r.createElement)(f.default,{onClick:()=>n(N.path),text:(0,r.createElement)(r.Fragment,null,(0,r.createElement)("b",{className:"chapter-interstitial__buttons--white__text"},T.buttons.button2.text),(0,r.createElement)(s.A,{className:"chapter-interstitial__buttons--white__icon",icon:l.A})),className:"chapter-interstitial__buttons--white"}))))}},6478:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(1609),a=n(6942),i=n.n(a);const o=({className:e})=>(0,r.createElement)("div",{className:i()("nfd-onboarding-loader--spinner",e)})},212:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(1609),a=n(3988),i=n(4639),o=n(9889);const s=({title:e,subtitle:t})=>(0,r.createElement)(a.A,{className:"step-loader",isVerticallyCentered:!0},(0,r.createElement)(i.A,{title:e,subtitle:t}),(0,r.createElement)("div",{className:"step-loader__logo-container"},(0,r.createElement)("div",{className:"step-loader__logo"})),(0,r.createElement)(o.A,null))},518:(e,t,n)=>{"use strict";n.d(t,{c:()=>o,S:()=>r.A});var r=n(212),a=n(1609),i=n(431);const o=()=>(0,a.createElement)("div",{className:"image-upload-loader--loading-box"},(0,a.createElement)(i.A,{type:"load",className:"image-upload-loader--loading-box__loader"}))},9889:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(1609),a=n(7675),i=n(7143),o=n(7723);const s=({question:e=(0,o.__)("Need Help?","wp-module-onboarding"),urlLabel:t=(0,o.__)("Hire our Experts","wp-module-onboarding")})=>{const n=(0,i.select)(a.M).getHireExpertsUrl();return n&&(0,r.createElement)("div",{className:"nfd-card-need-help-tag"},e,(0,r.createElement)("a",{href:n,target:"_blank",rel:"noreferrer"},t))}},5842:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(1609),a=n(6942),i=n.n(a);const o=({className:e="",children:t})=>(0,r.createElement)("div",{className:i()("nfd-onboarding-large-card",e)},(0,r.createElement)("div",{className:"nfd-onboarding-large-card__logo"}),t)},7673:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(1609),a=n(8468);const i=({height:e="80px"})=>{const t={"--wnd-ai-logo-size":e,height:`var(--wnd-ai-logo-size, ${e})`};return(0,a.useEffect)((()=>{document.querySelectorAll("[data-wnd-ai-logo]").forEach((function(e){let t=!1,n=null;const r=()=>{t?document.body.classList.add("wnd-ai-logo-keydown"):document.body.classList.remove("wnd-ai-logo-keydown"),n=null};e.addEventListener("keydown",(function(){t||(t=!0,n||(n=window.requestAnimationFrame(r)))})),e.addEventListener("keyup",(function(){t=!1,n||(n=window.requestAnimationFrame(r))}))}))}),[]),(0,r.createElement)("span",{className:"wnd-ai-logo",style:t},(0,r.createElement)("span",{className:"wnd-ai-logo__circle wnd-ai-logo__circle--bg"}),(0,r.createElement)("span",{className:"wnd-ai-logo__circle wnd-ai-logo__circle--1"}),(0,r.createElement)("span",{className:"wnd-ai-logo__circle wnd-ai-logo__circle--2"}),(0,r.createElement)("span",{className:"wnd-ai-logo__circle wnd-ai-logo__circle--3"}),(0,r.createElement)("span",{className:"wnd-ai-logo__circle wnd-ai-logo__circle--4"}),(0,r.createElement)("span",{className:"wnd-ai-logo__circle wnd-ai-logo__circle--5"}),(0,r.createElement)("span",{className:"wnd-ai-logo__circle wnd-ai-logo__circle--6"}),(0,r.createElement)("span",{className:"wnd-ai-logo__spinner"}))}},2538:(e,t,n)=>{"use strict";n.d(t,{L:()=>a,Z:()=>o});var r=n(6087);const a={NONE:"none",AD_LINK_ERROR:"ad-link-error",INVALID_LINK_ERROR:"invalid-link-error"},i={facebook_site:"facebook",twitter_site:"twitter",instagram_url:"instagram",youtube_url:"youtube",linkedin_url:"linkedin",yelp_url:"yelp",tiktok_url:"tiktok"},o=e=>(0,r.transform)(i,((t,n,r)=>{const a=e?.[r]||e?.other_social_urls?.[r];a&&(t[n]=a)}))},1032:(e,t,n)=>{"use strict";n.d(t,{UX:()=>g,Iy:()=>Oe,tR:()=>Re});var r=n(1609),a=n(7143),i=n(8468),o=n(9491),s=n(518),l=n(7675),c=n(7517),d=n(8969),u=n(5677),p=n(7723);var m=n(5748),h=n(6079);const g=({children:e,navigationStateCallback:t=!1,refresh:n=!0,render:g=!0})=>{const f=(0,o.useViewportMatch)("medium"),{storedThemeStatus:w,brandName:b,isFreshInstallation:_,currentData:v}=(0,a.useSelect)((e=>({storedThemeStatus:e(l.M).getThemeStatus(),brandName:e(l.M).getNewfoldBrandName(),isFreshInstallation:e(l.M).getIsFreshInstallation(),currentData:e(l.M).getCurrentOnboardingData()})),[]),E=(e=>({loader:{title:(0,p.sprintf)(/* translators: %s: Brand */ /* translators: %s: Brand */ (0,p.__)("Preparing your %s design studio","wp-module-onboarding"),e),subtitle:(0,p.__)("Hang tight while we show you some of the best WordPress has to offer!","wp-module-onboarding")},errorState:{title:(0,p.sprintf)(/* translators: %s: Brand */ /* translators: %s: Brand */ (0,p.__)("Preparing your %s design studio","wp-module-onboarding"),e),subtitle:(0,p.__)("Hang tight while we show you some of the best WordPress has to offer!","wp-module-onboarding"),error:(0,p.__)("Uh-oh, something went wrong. Please contact support.","wp-module-onboarding")},exitModal:{title:(0,p.__)("It looks like you may have an existing website","wp-module-onboarding"),description:(0,p.__)("Going through this setup will change your active theme, WordPress settings, add content – would you like to continue?","wp-module-onboarding"),buttonText:(0,p.__)("Exit to WordPress","wp-module-onboarding")}}))(b),{updateThemeStatus:y,setIsDrawerOpened:S,setIsDrawerSuppressed:k,setIsHeaderNavigationEnabled:C,setCurrentOnboardingData:N}=(0,a.useDispatch)(l.M),x=()=>{switch(w){case d.SQ:case d.Er:return(()=>{if("function"==typeof t)return t();f&&S(!0),k(!1),C(!0)})();default:S(!1),k(!0),C(!1)}};(0,i.useEffect)((()=>{x(),(!0!==g||_||!1!==v.data.siteOverrideConsent)&&w===d.So&&(async()=>{const e=await(async()=>{const e=await(0,c.qv)(d.f1);return e?.error?d.mp:e.body.status})();switch(e){case d.fO:(async()=>{(await(0,c.xN)(d.f1)).error||!0!==n?T():window.location.reload()})();break;case d.Er:!0===n&&window.location.reload();break;case d.mp:T();break;default:y(e)}})()}),[w,_,v]);const T=async()=>{if(y(d.fO),(await(0,c.ai)(d.f1,!0,!1)).error)return y(d.SQ);!0===n&&window.location.reload()},A=()=>{v.data.siteOverrideConsent=!0,N(v),(0,h.V1)(v)};return(0,r.createElement)(i.Fragment,null,g?(()=>{if(!_&&!1===v.data.siteOverrideConsent)return(0,r.createElement)(m.A,{showButton:!1,isModalOpen:!0,modalTitle:E.exitModal.title,modalText:E.exitModal.description,modalOnClose:A,modalExitButtonText:E.exitModal.buttonText});switch(w){case d.SQ:return(0,r.createElement)(u.W,{title:E.errorState.title,subtitle:E.errorState.subtitle,error:E.errorState.error});case d.Er:return e;default:return(0,r.createElement)(s.S,{title:E.loader.title,subtitle:E.loader.subtitle})}})():e)};var f=n(3832),w=n(148),b=n(4371),_=n(3272),v=n(2940),E=n(7835),y=n(212),S=n(3474);const k=()=>{const{brandName:e}=(0,a.useSelect)((e=>({brandName:e(l.M).getNewfoldBrandName()})),[]),t=(e=>({title:(0,p.sprintf)(/* translators: 1: Brand 2: Site or Store */ /* translators: 1: Brand 2: Site or Store */ -(0,p.__)("Making the keys to your %1$s Online %2$s","wp-module-onboarding"),e,(0,S.P)("Site")),subtitle:(0,p.__)("We’re installing WooCommerce for you to fill with your amazing products & services!","wp-module-onboarding")}))(e);return(0,r.createElement)(y.A,{title:t.title,subtitle:t.subtitle})};var C=n(6942),N=n.n(C),x=n(6087),T=n(6427),A=n(4487),D=n(8744);const P=()=>{const{headers:e,headerActiveView:t,isHeaderEnabled:n,currentStep:o}=(0,a.useSelect)((e=>({currentStep:e(l.M).getCurrentStep(),headers:e(l.M).getHeaders(),headerActiveView:e(l.M).getHeaderActiveView(),isHeaderEnabled:e(l.M).isHeaderEnabled()}))),s=o===A.b,c=window.nfdOnboarding.currentFlow===D.d0;return(0,r.createElement)(i.Fragment,null,(0,r.createElement)(i.Suspense,{fallback:(0,r.createElement)(i.Fragment,null)},e.map((e=>(0,r.createElement)(i.Fragment,{key:e.id},(0,r.createElement)(e.header,null))))),(0,r.createElement)(T.Slot,{name:`${t}/${d.KK}`}),n&&(0,r.createElement)("div",{className:N()("nfd-onboarding-header",{"nfd-onboarding-header--dark":s},{"nfd-onboarding-header--sitegen":c})},(0,r.createElement)("div",{className:"nfd-onboarding-header__start"},(0,r.createElement)(T.Slot,{name:`${t}/${d.nK}`})),(0,r.createElement)("div",{className:"nfd-onboarding-header__center"},(0,r.createElement)(T.Slot,{name:`${t}/${d.me}`})),(0,r.createElement)("div",{className:"nfd-onboarding-header__end"},(0,r.createElement)(T.Slot,{name:`${t}/${d.KZ}`}))))},O=(0,i.memo)((()=>{const{routes:e}=(0,a.useSelect)((e=>({routes:e(l.M).getRoutes()}))),t=(0,i.useCallback)((()=>e?.map((e=>(0,r.createElement)(w.qh,{key:e.path,path:e.path,end:!0,element:(0,r.createElement)(e.Component,null)})))),[e]);return(0,r.createElement)("main",{className:"nfd-onboard-content"},(0,r.createElement)(i.Suspense,{fallback:(0,r.createElement)(i.Fragment,null)},(0,r.createElement)(w.BV,null,t(e))))}));var I=n(431),M=n(1056),L=n(7225);function R(e){if(e){const t={};return e?.forEach((e=>{t[e.slug]=e.color})),t}}function z(e){if(e){const t=[];for(const n in e)t.push({slug:n,name:n?.charAt(0).toUpperCase()+n?.slice(1),color:e[n]});return t}}var V=n(3957),F=n(2202);const $=()=>{const e=(0,i.useRef)(null),[t,n]=(0,i.useState)(),[o,s]=(0,i.useState)(),[u,m]=(0,i.useState)(),[h,g]=(0,i.useState)(),[f,w]=(0,i.useState)(""),[b,v]=(0,i.useState)(!1),[E,y]=(0,i.useState)(!0),[S,k]=(0,i.useState)(),{storedPreviewSettings:C,currentData:x,themeStatus:A}=(0,a.useSelect)((e=>({storedPreviewSettings:e(l.M).getPreviewSettings(),currentData:e(l.M).getCurrentOnboardingData(),themeStatus:e(l.M).getThemeStatus()})),[]),{updatePreviewSettings:D,setCurrentOnboardingData:P,updateThemeStatus:O}=(0,a.useDispatch)(l.M);(0,i.useEffect)((()=>{d.Er===A&&($(),"custom"===x?.data?.colorStyle&&(y(!1),e?.current?.scrollIntoView({behavior:"smooth",block:"end"})))}),[A]);const $=async()=>{const[e,t]=await Promise.all([(0,c.w6)(),(0,c.kt)()]);if(t?.error)return O(d.So);if(e?.error)return O(d.So);let r;var a;n(t?.body.tailored),s(t?.body["custom-picker-grouping"]),""!==x?.data?.colorStyle?(r=null!==(a=C?.settings?.color?.palette)&&void 0!==a?a:e.body[0]?.settings?.color?.palette,"custom"===x?.data?.colorStyle&&(m(R(r)),g(R(r))),m(R(r))):H()};async function H(){const e=await(0,c.w6)(!0);let t;x?.data?.theme?.variation?t=e.body.filter((e=>e.title===x.data.theme.variation))[0]:0===e.body[0]?.id&&(t=e.body[0]),D((0,L.AN)(t,C)),g();const n=t.settings.color.palette;x.data.colorStyle="",P(x),m(R(n))}const W=e=>{g(),async function(e){const n=C;let r=C?.settings?.color?.palette;t&&e&&r&&(r=r.map((n=>(t?.[e]?.[n.slug]&&(n.color=t[e][n.slug]),n))),n.settings.color.palette=r,D((0,L.AN)(n,C)))}(e),m(t[e]),z(t[e]),x.data.colorStyle=e,P(x),(0,M.v)(new M.iC(F.Ep,e,{colors:(0,_.g2)(t[e])}))},U=async e=>{const t={...u};if(t[f]=e,o){const n=o[f];n&&n.forEach((n=>{t[n]=e}))}!async function(){const e=C,t=e?.settings?.color?.palette;if(t){for(let e=0;e{h&&void 0!==h[f]&&(t[function(e,t,n){const r=n.findIndex((({slug:t})=>t===e));return-1===r?n.findIndex((({slug:e})=>e===t)):r}(e,f,C?.settings?.color?.palette)].color=h[f])}))}e.settings.color.palette=t,D((0,L.AN)(e,C))}}(),z(t),x.data.colorStyle="custom",P(x),m(t),clearTimeout(S),k(setTimeout((()=>{(0,M.v)(new M.iC(F.Ep,"custom",{colors:(0,_.g2)(t)}))}),1e3)),g(t)},B=e=>{v(!b),w(b?"":e)};return t&&(0,r.createElement)("div",{className:"theme-colors--drawer"},(0,r.createElement)("h2",null,(0,p.__)("Color Palettes","wp-module-onboarding")),Object.keys(t).map(((e,n)=>(0,r.createElement)("div",{key:e,className:N()("color-palette drawer-palette--button",{"color-palette-selected drawer-palette--button--selected":e===x?.data?.colorStyle}),role:"button",tabIndex:n+1,onClick:()=>W(e),onKeyDown:()=>W(e)},(0,r.createElement)("div",{className:"color-palette__colors"},(0,r.createElement)("div",{className:"color-palette__colors--tertiary",style:{backgroundColor:`${t[e]?.["header-background"]}`}}),(0,r.createElement)("div",{className:"color-palette__colors--secondary",style:{backgroundColor:`${t[e]?.secondary}`}}),(0,r.createElement)("div",{className:"color-palette__colors--primary",style:{backgroundColor:`${t[e]?.primary}`}})),(0,r.createElement)("div",{className:"color-palette__name drawer-palette--button__text"},t[e]?.name)))),function(){var t,n,a,i;const o="#fff",s=h&&""!==h?.primary?h.primary:null!==(t=u?.primary)&&void 0!==t?t:o,l=h&&""!==h?.secondary?h.secondary:null!==(n=u?.secondary)&&void 0!==n?n:o,c=h&&""!==h?.["header-background"]?h["header-background"]:null!==(a=u?.["header-background"])&&void 0!==a?a:o;return(0,r.createElement)("div",{className:"custom-palette"},(0,r.createElement)("div",{className:"custom-palette__top",role:"button",tabIndex:0,onClick:()=>y(!E),onKeyDown:()=>y(!E)},(0,r.createElement)("div",{className:"custom-palette__top-text"},(0,p.__)("SELECT CUSTOM COLORS","wp-module-onboarding")),E?(0,r.createElement)("div",{className:"custom-palette__top-icon"},"+"):(0,r.createElement)("div",{className:"custom-palette__top-icon"},"-")),(0,r.createElement)(I.A,{type:"fade-in",duration:"300ms",timingFunction:"ease-in-out",className:"custom-palette__below "+(E?"custom-palette_acc_closed":"custom-palette_acc_opened")},(0,r.createElement)(V.A,{isColorSelected:h,color:null!==(i=h?.base)&&void 0!==i?i:o,slug:"base",name:(0,p.__)("Background","wp-module-onboarding"),callback:B}),(0,r.createElement)(V.A,{isColorSelected:h,color:s,slug:"primary",name:(0,p.__)("Primary","wp-module-onboarding"),callback:B}),(0,r.createElement)(V.A,{isColorSelected:h,color:l,slug:"secondary",name:(0,p.__)("Secondary","wp-module-onboarding"),callback:B}),(0,r.createElement)(V.A,{isColorSelected:h,color:c,slug:"tertiary",name:(0,p.__)("Tertiary","wp-module-onboarding"),callback:B})),h&&(0,r.createElement)(I.A,{type:"fade-in",duration:"300ms"},(0,r.createElement)("div",{ref:e,className:"theme-colors--drawer--reset",role:"button",tabIndex:0,onClick:H,onKeyDown:H},(0,r.createElement)("div",null,(0,p.__)("Reset","wp-module-onboarding")))),b&&(0,r.createElement)(T.Popover,null,(0,r.createElement)("div",{role:"button",tabIndex:0,className:"custom-palette__picker__close-icon",onClick:()=>v(!1),onKeyDown:()=>v(!1)},"X"),(0,r.createElement)(T.ColorPicker,{onChange:U})))}())};var H=n(8520),W=n(7044);const U=()=>{const[e,t]=(0,i.useState)(),[n,o]=(0,i.useState)(),[s,c]=(0,i.useState)(""),u=(0,w.zy)(),{currentStep:p,currentData:m,themeStatus:g,storedPreviewSettings:f}=(0,a.useSelect)((e=>({currentStep:e(l.M).getStepFromPath(u.pathname),currentData:e(l.M).getCurrentOnboardingData(),themeStatus:e(l.M).getThemeStatus(),storedPreviewSettings:e(l.M).getStepPreviewData()})),[]),{setCurrentOnboardingData:b,updateThemeStatus:_,setHeaderMenuData:v}=(0,a.useDispatch)(l.M);return(0,i.useEffect)((()=>{g===d.Er&&(async()=>{const e=await(0,H.O)(p?.data?.patternId);if(e?.error)return _(d.So);const n=e?.body.pageHeaders,r=e?.body.pageFooter,a=e?.body.pageBody;m.data.partHeader&&""!==m.data.partHeader||(m.data.partHeader=n[0].slug,b(m)),m.data?.partFooter&&""!==m.data?.partFooter||(m.data.partFooter=r.slug,b(m)),c(m.data.partHeader),o(e.body),t(n);let[i,s]=["",""];n.forEach((e=>{e.slug===m.data.partHeader&&(i=e.content)})),s=i+a,v(s)})()}),[g]),(0,r.createElement)(W._Z,{count:f[p?.data?.patternId]?.previewCount,watch:e,callback:()=>e?.map(((t,a)=>(0,r.createElement)(W.ph,{key:a,className:"theme-header-menu-preview--drawer__list__item",selected:t.slug===s,blockGrammer:t.content,viewportWidth:900,styling:"custom",overlay:!1,onClick:()=>(async t=>{document.getElementsByClassName("nfd-onboard-content")&&document.getElementsByClassName("nfd-onboard-content")[0].scrollIntoView({behavior:"smooth"});const r=e[t];if(r.slug===s)return!0;c(r.slug),m.data.partHeader=r.slug,b(m);const a=r.content+n.pageBody;v(a);const i=await(0,h.V1)(m);null===i?.error&&b(m),(0,M.v)(new M.iC(F.r2,r.slug))})(a)}))),className:"theme-header-menu-preview--drawer__list__item",viewportWidth:900})},B=()=>(0,r.createElement)("div",{style:{padding:"0 16px"}},(0,r.createElement)("h2",null,(0,p.__)("Pick a Homepage Design","wp-module-onboarding")),(0,r.createElement)("p",null,(0,p.__)("Panel will show a few Homepage Patterns.","wp-module-onboarding"))),G=()=>(0,r.createElement)("div",{style:{padding:"0 16px"}},(0,r.createElement)("h2",null,(0,p.__)("Pick a Theme Style","wp-module-onboarding")),(0,r.createElement)("h4",null,(0,p.__)("No Style Selected","wp-module-onboarding")),(0,r.createElement)("p",null,(0,p.__)("Panel will show Theme details","wp-module-onboarding")),(0,r.createElement)("h4",null,(0,p.__)("With Style Selected","wp-module-onboarding")),(0,r.createElement)("p",null,(0,p.__)("Panel will show single-column of other Styles.","wp-module-onboarding"))),q=()=>{const[e,t]=(0,i.useState)(),[n,o]=(0,i.useState)(),[s,u]=(0,i.useState)(""),{currentStep:p,currentData:m,storedPreviewSettings:h,themeStatus:g,themeVariations:f}=(0,a.useSelect)((e=>({currentStep:e(l.M).getCurrentStep(),currentData:e(l.M).getCurrentOnboardingData(),storedPreviewSettings:e(l.M).getPreviewSettings(),themeStatus:e(l.M).getThemeStatus(),themeVariations:e(l.M).getStepPreviewData()})),[]),{updatePreviewSettings:w,setCurrentOnboardingData:b,updateThemeStatus:_}=(0,a.useDispatch)(l.M);return(0,i.useEffect)((()=>{g===d.Er&&(async()=>{const e=await(0,c.w6)(!0);if(e?.error)return _(d.So);let n;m.data.theme.variation?n=m.data.theme.variation:(n=e.body[0].title,m.data.theme.variation=n,b(m)),u(n);const r=await(0,H.O)(p?.data?.patternId,!0);if(r?.error)return _(d.So);t(r?.body),o(e?.body),document.getElementsByClassName("theme-styles-preview--drawer__list__item__title-bar--selected")&&document.getElementsByClassName("theme-styles-preview--drawer__list__item__title-bar--selected")[0]&&document.getElementsByClassName("theme-styles-preview--drawer__list__item__title-bar--selected")[0].scrollIntoView({behavior:"smooth",block:"center"})})()}),[g]),(0,r.createElement)("div",{className:"theme-styles-preview--drawer"},(0,r.createElement)("div",{className:"theme-styles-preview--drawer__list"},(0,r.createElement)(W._Z,{className:"theme-styles-preview--drawer__list__item",watch:n&&e,count:f[p?.data?.patternId]?.previewCount,callback:()=>n?.map(((t,a)=>(0,r.createElement)(W.ph,{key:a,className:"theme-styles-preview--drawer__list__item",selected:t.title===s,blockGrammer:e,viewportWidth:900,styling:"custom",previewSettings:t,overlay:!1,onClick:()=>(e=>{const t=n[e];if(s===t.title)return!0;w((0,L.AN)(t,h)),u(t.title),m.data.theme.variation=t.title,b(m),(0,M.v)(new M.iC(F.hi,t.title))})(a)}))),viewportWidth:900})))},j=()=>(0,r.createElement)("div",{style:{padding:"0 16px"}},(0,r.createElement)("h2",null,(0,p.__)("Pick a Theme","wp-module-onboarding")),(0,r.createElement)("h4",null,(0,p.__)("No Theme Selected","wp-module-onboarding")),(0,r.createElement)("p",null,(0,p.__)("Panel will show contextual help","wp-module-onboarding")),(0,r.createElement)("h4",null,(0,p.__)("With Theme Selected","wp-module-onboarding")),(0,r.createElement)("p",null,(0,p.__)("Panel will show single-column of other Themes.","wp-module-onboarding"))),Q=()=>{const e=(0,i.useRef)(),[t,n]=(0,i.useState)(!1),[o,s]=(0,i.useState)(),[u,m]=(0,i.useState)(),{storedPreviewSettings:h,currentData:g,themeStatus:f}=(0,a.useSelect)((e=>({storedPreviewSettings:e(l.M).getPreviewSettings(),currentData:e(l.M).getCurrentOnboardingData(),themeStatus:e(l.M).getThemeStatus()})),[]),{updatePreviewSettings:w,setCurrentOnboardingData:b,updateThemeStatus:_}=(0,a.useDispatch)(l.M);(0,i.useEffect)((()=>{""!==g?.data?.fontStyle&&void 0!==u&&(s(g?.data?.fontStyle),v(g?.data?.fontStyle))}),[u,h]),(0,i.useEffect)((()=>{t||d.Er!==f||(async()=>{const t=await(0,c._t)();if(t?.error)return _(d.So);m(t?.body);const r=h?.settings?.styles[0]?.css;if(r){const t=/--wp--preset--font-family.*;/;e.current.setAttribute("style",r.match(t))}n(!0)})()}),[t,f]);const v=async(e,t="click")=>{if(o===e)return!0;s(e);const n=h,r=u;n?.styles?.typography?.fontFamily&&n?.styles?.blocks["core/heading"]&&(n.styles.typography.fontFamily=r[e]?.styles?.typography?.fontFamily,n.styles.blocks["core/heading"]={...n.styles.blocks["core/heading"],typography:r[e]?.styles.blocks["core/heading"].typography}),n.styles?.blocks["core/site-title"]?.typography?.fontFamily&&(n.styles.blocks["core/site-title"].typography.fontFamily=r[e]?.styles.blocks["core/heading"].typography.fontFamily),n.styles?.blocks["core/site-tagline"]?.typography?.fontFamily&&(n.styles.blocks["core/site-tagline"].typography.fontFamily=r[e]?.styles.blocks["core/heading"].typography.fontFamily),g.data.fontStyle=e,w((0,L.AN)(n,h)),b(g),"click"===t&&(0,M.v)(new M.iC(F.ce,e))};return(0,r.createElement)("div",{ref:e,className:"theme-fonts--drawer"},(0,r.createElement)("h2",null,(0,p.__)("Font Palettes","wp-module-onboarding")),u&&Object.keys(u).map(((e,t)=>{var n;const a=u[e]?.label.split("&",2);return 0===a.length?null:(0,r.createElement)("div",{key:e,role:"button",tabIndex:t+1,className:N()("font-palette drawer-palette--button",{"font-palette-selected drawer-palette--button--selected":o===e}),onClick:()=>v(e),onKeyDown:()=>v(e)},(0,r.createElement)("div",{className:"font-palette__icon drawer-palette--button__text",style:{fontFamily:u[e]?.styles?.typography?.fontFamily}},/* translators: text in each font selection pill representing the respective font */ /* translators: text in each font selection pill representing the respective font */ +(0,p.__)("Making the keys to your %1$s Online %2$s","wp-module-onboarding"),e,(0,S.P)("Site")),subtitle:(0,p.__)("We’re installing WooCommerce for you to fill with your amazing products & services!","wp-module-onboarding")}))(e);return(0,r.createElement)(y.A,{title:t.title,subtitle:t.subtitle})};var C=n(6942),N=n.n(C),x=n(6087),T=n(6427),A=n(4487),D=n(8744);const P=()=>{const{headers:e,headerActiveView:t,isHeaderEnabled:n,currentStep:o}=(0,a.useSelect)((e=>({currentStep:e(l.M).getCurrentStep(),headers:e(l.M).getHeaders(),headerActiveView:e(l.M).getHeaderActiveView(),isHeaderEnabled:e(l.M).isHeaderEnabled()}))),s=o===A.b,c=window.nfdOnboarding.currentFlow===D.d0;return(0,r.createElement)(i.Fragment,null,(0,r.createElement)(i.Suspense,{fallback:(0,r.createElement)(i.Fragment,null)},e.map((e=>(0,r.createElement)(i.Fragment,{key:e.id},(0,r.createElement)(e.header,null))))),(0,r.createElement)(T.Slot,{name:`${t}/${d.KK}`}),n&&(0,r.createElement)("div",{className:N()("nfd-onboarding-header",{"nfd-onboarding-header--dark":s},{"nfd-onboarding-header--sitegen":c})},(0,r.createElement)("div",{className:"nfd-onboarding-header__start"},(0,r.createElement)(T.Slot,{name:`${t}/${d.nK}`})),(0,r.createElement)("div",{className:"nfd-onboarding-header__center"},(0,r.createElement)(T.Slot,{name:`${t}/${d.me}`})),(0,r.createElement)("div",{className:"nfd-onboarding-header__end"},(0,r.createElement)(T.Slot,{name:`${t}/${d.KZ}`}))))},O=(0,i.memo)((()=>{const{routes:e}=(0,a.useSelect)((e=>({routes:e(l.M).getRoutes()}))),t=(0,i.useCallback)((()=>e?.map((e=>(0,r.createElement)(w.qh,{key:e.path,path:e.path,end:!0,element:(0,r.createElement)(e.Component,null)})))),[e]);return(0,r.createElement)("main",{className:"nfd-onboard-content"},(0,r.createElement)(i.Suspense,{fallback:(0,r.createElement)(i.Fragment,null)},(0,r.createElement)(w.BV,null,t(e))))}));var I=n(431),M=n(1056),L=n(7225);function R(e){if(e){const t={};return e?.forEach((e=>{t[e.slug]=e.color})),t}}function z(e){if(e){const t=[];for(const n in e)t.push({slug:n,name:n?.charAt(0).toUpperCase()+n?.slice(1),color:e[n]});return t}}var V=n(3957),F=n(2202);const $=()=>{const e=(0,i.useRef)(null),[t,n]=(0,i.useState)(),[o,s]=(0,i.useState)(),[u,m]=(0,i.useState)(),[h,g]=(0,i.useState)(),[f,w]=(0,i.useState)(""),[b,v]=(0,i.useState)(!1),[E,y]=(0,i.useState)(!0),[S,k]=(0,i.useState)(),{storedPreviewSettings:C,currentData:x,themeStatus:A}=(0,a.useSelect)((e=>({storedPreviewSettings:e(l.M).getPreviewSettings(),currentData:e(l.M).getCurrentOnboardingData(),themeStatus:e(l.M).getThemeStatus()})),[]),{updatePreviewSettings:D,setCurrentOnboardingData:P,updateThemeStatus:O}=(0,a.useDispatch)(l.M);(0,i.useEffect)((()=>{d.Er===A&&($(),"custom"===x?.data?.colorStyle&&(y(!1),e?.current?.scrollIntoView({behavior:"smooth",block:"end"})))}),[A]);const $=async()=>{const[e,t]=await Promise.all([(0,c.w6)(),(0,c.kt)()]);if(t?.error)return O(d.So);if(e?.error)return O(d.So);let r;var a;n(t?.body.tailored),s(t?.body["custom-picker-grouping"]),""!==x?.data?.colorStyle?(r=null!==(a=C?.settings?.color?.palette)&&void 0!==a?a:e.body[0]?.settings?.color?.palette,"custom"===x?.data?.colorStyle&&(m(R(r)),g(R(r))),m(R(r))):H()};async function H(){const e=await(0,c.w6)(!0);let t;x?.data?.theme?.variation?t=e.body.filter((e=>e.title===x.data.theme.variation))[0]:0===e.body[0]?.id&&(t=e.body[0]),D((0,L.AN)(t,C)),g();const n=t.settings.color.palette;x.data.colorStyle="",P(x),m(R(n))}const W=e=>{g(),async function(e){const n=C;let r=C?.settings?.color?.palette;t&&e&&r&&(r=r.map((n=>(t?.[e]?.[n.slug]&&(n.color=t[e][n.slug]),n))),n.settings.color.palette=r,D((0,L.AN)(n,C)))}(e),m(t[e]),z(t[e]),x.data.colorStyle=e,P(x),(0,M.v)(new M.iC(F.Ep,e,{colors:(0,_.g2)(t[e])}))},U=async e=>{const t={...u};if(t[f]=e,o){const n=o[f];n&&n.forEach((n=>{t[n]=e}))}!async function(){const e=C,t=e?.settings?.color?.palette;if(t){for(let e=0;e{h&&void 0!==h[f]&&(t[function(e,t,n){const r=n.findIndex((({slug:t})=>t===e));return-1===r?n.findIndex((({slug:e})=>e===t)):r}(e,f,C?.settings?.color?.palette)].color=h[f])}))}e.settings.color.palette=t,D((0,L.AN)(e,C))}}(),z(t),x.data.colorStyle="custom",P(x),m(t),clearTimeout(S),k(setTimeout((()=>{(0,M.v)(new M.iC(F.Ep,"custom",{colors:(0,_.g2)(t)}))}),1e3)),g(t)},B=e=>{v(!b),w(b?"":e)};return t&&(0,r.createElement)("div",{className:"theme-colors--drawer"},(0,r.createElement)("h2",null,(0,p.__)("Color Palettes","wp-module-onboarding")),Object.keys(t).map(((e,n)=>(0,r.createElement)("div",{key:e,className:N()("color-palette drawer-palette--button",{"color-palette-selected drawer-palette--button--selected":e===x?.data?.colorStyle}),role:"button",tabIndex:n+1,onClick:()=>W(e),onKeyDown:()=>W(e)},(0,r.createElement)("div",{className:"color-palette__colors"},(0,r.createElement)("div",{className:"color-palette__colors--tertiary",style:{backgroundColor:`${t[e]?.["header-background"]}`}}),(0,r.createElement)("div",{className:"color-palette__colors--secondary",style:{backgroundColor:`${t[e]?.secondary}`}}),(0,r.createElement)("div",{className:"color-palette__colors--primary",style:{backgroundColor:`${t[e]?.primary}`}})),(0,r.createElement)("div",{className:"color-palette__name drawer-palette--button__text"},t[e]?.name)))),function(){var t,n,a,i;const o="#fff",s=h&&""!==h?.primary?h.primary:null!==(t=u?.primary)&&void 0!==t?t:o,l=h&&""!==h?.secondary?h.secondary:null!==(n=u?.secondary)&&void 0!==n?n:o,c=h&&""!==h?.["header-background"]?h["header-background"]:null!==(a=u?.["header-background"])&&void 0!==a?a:o;return(0,r.createElement)("div",{className:"custom-palette"},(0,r.createElement)("div",{className:"custom-palette__top",role:"button",tabIndex:0,onClick:()=>y(!E),onKeyDown:()=>y(!E)},(0,r.createElement)("div",{className:"custom-palette__top-text"},(0,p.__)("SELECT CUSTOM COLORS","wp-module-onboarding")),E?(0,r.createElement)("div",{className:"custom-palette__top-icon"},"+"):(0,r.createElement)("div",{className:"custom-palette__top-icon"},"-")),(0,r.createElement)(I.A,{type:"fade-in",duration:"300ms",timingFunction:"ease-in-out",className:"custom-palette__below "+(E?"custom-palette_acc_closed":"custom-palette_acc_opened")},(0,r.createElement)(V.A,{isColorSelected:h,color:null!==(i=h?.base)&&void 0!==i?i:o,slug:"base",name:(0,p.__)("Background","wp-module-onboarding"),callback:B}),(0,r.createElement)(V.A,{isColorSelected:h,color:s,slug:"primary",name:(0,p.__)("Primary","wp-module-onboarding"),callback:B}),(0,r.createElement)(V.A,{isColorSelected:h,color:l,slug:"secondary",name:(0,p.__)("Secondary","wp-module-onboarding"),callback:B}),(0,r.createElement)(V.A,{isColorSelected:h,color:c,slug:"tertiary",name:(0,p.__)("Tertiary","wp-module-onboarding"),callback:B})),h&&(0,r.createElement)(I.A,{type:"fade-in",duration:"300ms"},(0,r.createElement)("div",{ref:e,className:"theme-colors--drawer--reset",role:"button",tabIndex:0,onClick:H,onKeyDown:H},(0,r.createElement)("div",null,(0,p.__)("Reset","wp-module-onboarding")))),b&&(0,r.createElement)(T.Popover,null,(0,r.createElement)("div",{role:"button",tabIndex:0,className:"custom-palette__picker__close-icon",onClick:()=>v(!1),onKeyDown:()=>v(!1)},"X"),(0,r.createElement)(T.ColorPicker,{onChange:U})))}())};var H=n(8520),W=n(7044);const U=()=>{const[e,t]=(0,i.useState)(),[n,o]=(0,i.useState)(),[s,c]=(0,i.useState)(""),u=(0,w.zy)(),{currentStep:p,currentData:m,themeStatus:g,storedPreviewSettings:f}=(0,a.useSelect)((e=>({currentStep:e(l.M).getStepFromPath(u.pathname),currentData:e(l.M).getCurrentOnboardingData(),themeStatus:e(l.M).getThemeStatus(),storedPreviewSettings:e(l.M).getStepPreviewData()})),[]),{setCurrentOnboardingData:b,updateThemeStatus:_,setHeaderMenuData:v}=(0,a.useDispatch)(l.M);return(0,i.useEffect)((()=>{g===d.Er&&(async()=>{const e=await(0,H.O)(p?.data?.patternId);if(e?.error)return _(d.So);const n=e?.body.pageHeaders,r=e?.body.pageFooter,a=e?.body.pageBody;(!m.data.partHeader||""===m.data.partHeader)&&n?.length>0&&(m.data.partHeader=n[0].slug,b(m)),m.data?.partFooter&&""!==m.data?.partFooter||(m.data.partFooter=r.slug,b(m)),c(m.data.partHeader),o(e.body),t(n);let[i,s]=["",""];n?.forEach((e=>{e.slug===m.data.partHeader&&(i=e.content)})),s=i+a,v(s)})()}),[g]),(0,r.createElement)(W._Z,{count:f[p?.data?.patternId]?.previewCount,watch:e,callback:()=>e?.map(((t,a)=>(0,r.createElement)(W.ph,{key:a,className:"theme-header-menu-preview--drawer__list__item",selected:t.slug===s,blockGrammer:t.content,viewportWidth:900,styling:"custom",overlay:!1,onClick:()=>(async t=>{document.getElementsByClassName("nfd-onboard-content")&&document.getElementsByClassName("nfd-onboard-content")[0].scrollIntoView({behavior:"smooth"});const r=e[t];if(r.slug===s)return!0;c(r.slug),m.data.partHeader=r.slug,b(m);const a=r.content+n.pageBody;v(a);const i=await(0,h.V1)(m);null===i?.error&&b(m),(0,M.v)(new M.iC(F.r2,r.slug))})(a)}))),className:"theme-header-menu-preview--drawer__list__item",viewportWidth:900})},B=()=>(0,r.createElement)("div",{style:{padding:"0 16px"}},(0,r.createElement)("h2",null,(0,p.__)("Pick a Homepage Design","wp-module-onboarding")),(0,r.createElement)("p",null,(0,p.__)("Panel will show a few Homepage Patterns.","wp-module-onboarding"))),G=()=>(0,r.createElement)("div",{style:{padding:"0 16px"}},(0,r.createElement)("h2",null,(0,p.__)("Pick a Theme Style","wp-module-onboarding")),(0,r.createElement)("h4",null,(0,p.__)("No Style Selected","wp-module-onboarding")),(0,r.createElement)("p",null,(0,p.__)("Panel will show Theme details","wp-module-onboarding")),(0,r.createElement)("h4",null,(0,p.__)("With Style Selected","wp-module-onboarding")),(0,r.createElement)("p",null,(0,p.__)("Panel will show single-column of other Styles.","wp-module-onboarding"))),q=()=>{const[e,t]=(0,i.useState)(),[n,o]=(0,i.useState)(),[s,u]=(0,i.useState)(""),{currentStep:p,currentData:m,storedPreviewSettings:h,themeStatus:g,themeVariations:f}=(0,a.useSelect)((e=>({currentStep:e(l.M).getCurrentStep(),currentData:e(l.M).getCurrentOnboardingData(),storedPreviewSettings:e(l.M).getPreviewSettings(),themeStatus:e(l.M).getThemeStatus(),themeVariations:e(l.M).getStepPreviewData()})),[]),{updatePreviewSettings:w,setCurrentOnboardingData:b,updateThemeStatus:_}=(0,a.useDispatch)(l.M);return(0,i.useEffect)((()=>{g===d.Er&&(async()=>{const e=await(0,c.w6)(!0);if(e?.error)return _(d.So);let n;m.data.theme.variation?n=m.data.theme.variation:(n=e.body[0].title,m.data.theme.variation=n,b(m)),u(n);const r=await(0,H.O)(p?.data?.patternId,!0);if(r?.error)return _(d.So);t(r?.body),o(e?.body),document.getElementsByClassName("theme-styles-preview--drawer__list__item__title-bar--selected")&&document.getElementsByClassName("theme-styles-preview--drawer__list__item__title-bar--selected")[0]&&document.getElementsByClassName("theme-styles-preview--drawer__list__item__title-bar--selected")[0].scrollIntoView({behavior:"smooth",block:"center"})})()}),[g]),(0,r.createElement)("div",{className:"theme-styles-preview--drawer"},(0,r.createElement)("div",{className:"theme-styles-preview--drawer__list"},(0,r.createElement)(W._Z,{className:"theme-styles-preview--drawer__list__item",watch:n&&e,count:f[p?.data?.patternId]?.previewCount,callback:()=>n?.map(((t,a)=>(0,r.createElement)(W.ph,{key:a,className:"theme-styles-preview--drawer__list__item",selected:t.title===s,blockGrammer:e,viewportWidth:900,styling:"custom",previewSettings:t,overlay:!1,onClick:()=>(e=>{const t=n[e];if(s===t.title)return!0;w((0,L.AN)(t,h)),u(t.title),m.data.theme.variation=t.title,b(m),(0,M.v)(new M.iC(F.hi,t.title))})(a)}))),viewportWidth:900})))},j=()=>(0,r.createElement)("div",{style:{padding:"0 16px"}},(0,r.createElement)("h2",null,(0,p.__)("Pick a Theme","wp-module-onboarding")),(0,r.createElement)("h4",null,(0,p.__)("No Theme Selected","wp-module-onboarding")),(0,r.createElement)("p",null,(0,p.__)("Panel will show contextual help","wp-module-onboarding")),(0,r.createElement)("h4",null,(0,p.__)("With Theme Selected","wp-module-onboarding")),(0,r.createElement)("p",null,(0,p.__)("Panel will show single-column of other Themes.","wp-module-onboarding"))),Q=()=>{const e=(0,i.useRef)(),[t,n]=(0,i.useState)(!1),[o,s]=(0,i.useState)(),[u,m]=(0,i.useState)(),{storedPreviewSettings:h,currentData:g,themeStatus:f}=(0,a.useSelect)((e=>({storedPreviewSettings:e(l.M).getPreviewSettings(),currentData:e(l.M).getCurrentOnboardingData(),themeStatus:e(l.M).getThemeStatus()})),[]),{updatePreviewSettings:w,setCurrentOnboardingData:b,updateThemeStatus:_}=(0,a.useDispatch)(l.M);(0,i.useEffect)((()=>{""!==g?.data?.fontStyle&&void 0!==u&&(s(g?.data?.fontStyle),v(g?.data?.fontStyle))}),[u,h]),(0,i.useEffect)((()=>{t||d.Er!==f||(async()=>{const t=await(0,c._t)();if(t?.error)return _(d.So);m(t?.body);const r=h?.settings?.styles[0]?.css;if(r){const t=/--wp--preset--font-family.*;/;e.current.setAttribute("style",r.match(t))}n(!0)})()}),[t,f]);const v=async(e,t="click")=>{if(o===e)return!0;s(e);const n=h,r=u;n?.styles?.typography?.fontFamily&&n?.styles?.blocks["core/heading"]&&(n.styles.typography.fontFamily=r[e]?.styles?.typography?.fontFamily,n.styles.blocks["core/heading"]={...n.styles.blocks["core/heading"],typography:r[e]?.styles.blocks["core/heading"].typography}),n.styles?.blocks["core/site-title"]?.typography?.fontFamily&&(n.styles.blocks["core/site-title"].typography.fontFamily=r[e]?.styles.blocks["core/heading"].typography.fontFamily),n.styles?.blocks["core/site-tagline"]?.typography?.fontFamily&&(n.styles.blocks["core/site-tagline"].typography.fontFamily=r[e]?.styles.blocks["core/heading"].typography.fontFamily),g.data.fontStyle=e,w((0,L.AN)(n,h)),b(g),"click"===t&&(0,M.v)(new M.iC(F.ce,e))};return(0,r.createElement)("div",{ref:e,className:"theme-fonts--drawer"},(0,r.createElement)("h2",null,(0,p.__)("Font Palettes","wp-module-onboarding")),u&&Object.keys(u).map(((e,t)=>{var n;const a=u[e]?.label.split("&",2);return 0===a.length?null:(0,r.createElement)("div",{key:e,role:"button",tabIndex:t+1,className:N()("font-palette drawer-palette--button",{"font-palette-selected drawer-palette--button--selected":o===e}),onClick:()=>v(e),onKeyDown:()=>v(e)},(0,r.createElement)("div",{className:"font-palette__icon drawer-palette--button__text",style:{fontFamily:u[e]?.styles?.typography?.fontFamily}},/* translators: text in each font selection pill representing the respective font */ /* translators: text in each font selection pill representing the respective font */ (0,p.__)("Aa","wp-module-onboarding")),(0,r.createElement)("div",{className:"font-palette__name drawer-palette--button__text"},(0,r.createElement)("span",{style:{fontFamily:u[e]?.styles.blocks["core/heading"].typography.fontFamily}},a[0]),a[1]?"&":"",(0,r.createElement)("span",{style:{fontFamily:u[e]?.styles?.typography?.fontFamily}},null!==(n=a[1])&&void 0!==n?n:"")))})))};var K=n(8558),Z=n(1607),Y=n(7677),J=n(1003);const X=()=>{const{designRoutes:e}=(0,a.useSelect)((e=>({designRoutes:e(l.M).getDesignRoutes()})),[]),{setDrawerActiveView:t}=(0,a.useDispatch)(l.M),n=(0,w.zy)();return(0,r.createElement)(I.A,{type:"fade-in",duration:"100ms",timingFunction:"ease-in"},(0,r.createElement)(T.Button,{className:"nfd-onboarding-drawer__panel-back",variant:"tertiary",icon:Z.A,onClick:()=>t(d.vO)},(0,p.__)("Onboarding Menu","wp-module-onboarding")),(0,r.createElement)("div",{className:"nfd-onboarding-drawer__panel-menu"},(0,r.createElement)("ul",{className:"nfd-onboarding-drawer__panel-routes"},e.map((e=>(0,r.createElement)("li",{key:e.path,className:"nfd-onboarding-drawer__panel-menu-item"},(0,r.createElement)(J.k2,{to:e.path,className:N()("nfd-onboarding-drawer__panel-menu-link",{active:n.pathname===e.path||n.pathname.includes(e?.data?.designDrawerActiveLinkIncludes)}),state:{origin:"drawer-nav"},onClick:()=>t(e.drawerView)},(0,r.createElement)(Y.A,{icon:e.icon}),(0,r.createElement)("span",null,e.title))))))))};var ee=n(2895);const te=()=>{const e=ee._.steps,{setDrawerActiveView:t}=(0,a.useDispatch)(l.M);return(0,r.createElement)(I.A,{type:"fade-in",duration:"100ms",timingFunction:"ease-in"},(0,r.createElement)(T.Button,{className:"nfd-onboarding-drawer__panel-back",variant:"tertiary",icon:Z.A,onClick:()=>t(d.vO)},(0,p.__)("Onboarding Menu","wp-module-onboarding")),(0,r.createElement)("div",{className:"nfd-onboarding-drawer__panel-menu"},(0,r.createElement)("ul",{className:"nfd-onboarding-drawer__panel-routes"},e.map((e=>(0,r.createElement)("li",{key:e.path,className:"nfd-onboarding-drawer__panel-menu-item"},(0,r.createElement)(J.k2,{to:e.path,className:"nfd-onboarding-drawer__panel-menu-link",state:{origin:"drawer-nav"},onClick:()=>t(e.drawerView)},(0,r.createElement)(Y.A,{icon:e.icon}),(0,r.createElement)("span",null,e.title))))))))},ne=()=>{const{setDrawerActiveView:e}=(0,a.useDispatch)(l.M);return(0,r.createElement)(I.A,{type:"fade-in",duration:"100ms",timingFunction:"ease-in"},(0,r.createElement)(T.Button,{className:"nfd-onboarding-drawer__panel-back",variant:"tertiary",icon:Z.A,onClick:()=>e(d.vO)},(0,p.__)("Resume Onboarding","wp-module-onboarding")))},re=()=>{const e=(0,w.zy)(),{topSteps:t}=(0,a.useSelect)((e=>({topSteps:e(l.M).getTopSteps()})),[]),{setDrawerActiveView:n}=(0,a.useDispatch)(l.M);return(0,r.createElement)(I.A,{type:"fade-in",duration:"100ms",timingFunction:"ease-in"},(0,r.createElement)(m.A,{buttonClassName:"nfd-onboarding-drawer__panel-back",buttonVariant:"tertiary",origin:"drawer-panel"}),(0,r.createElement)("div",{className:"nfd-onboarding-drawer__panel-menu"},(0,r.createElement)("ul",{className:"nfd-onboarding-drawer__panel-routes"},t.map((t=>!1!==t.drawerNavigation&&(0,r.createElement)(T.Tooltip,{key:t.path,text:t.data?.tooltipText},(0,r.createElement)("li",{className:"nfd-onboarding-drawer__panel-menu-item"},(0,r.createElement)(J.k2,{to:e.pathname===t.path||e.pathname.includes(t?.data?.primaryDrawerActiveLinkIncludes)?e.pathname:t.path,className:N()("nfd-onboarding-drawer__panel-menu-link",{active:e.pathname===t.path||e.pathname.includes(t?.data?.primaryDrawerActiveLinkIncludes)}),state:{origin:"drawer-nav"},onClick:()=>t?.drawerView&&n(t.drawerView)},(0,r.createElement)(Y.A,{icon:t.icon}),(0,r.createElement)("span",null,t.title)))))))))};var ae=n(19);const ie=()=>{const e=ae.E.steps,{setDrawerActiveView:t}=(0,a.useDispatch)(l.M);return(0,r.createElement)(I.A,{type:"fade-in",duration:"100ms",timingFunction:"ease-in"},(0,r.createElement)(T.Button,{className:"nfd-onboarding-drawer__panel-back",variant:"tertiary",icon:Z.A,onClick:()=>t(d.vO)},(0,p.__)("Onboarding Menu","wp-module-onboarding")),(0,r.createElement)("div",{className:"nfd-onboarding-drawer__panel-menu"},(0,r.createElement)("ul",{className:"nfd-onboarding-drawer__panel-routes"},e.map((e=>(0,r.createElement)("li",{key:e.path,className:"nfd-onboarding-drawer__panel-menu-item"},(0,r.createElement)(J.k2,{to:e.path,className:"nfd-onboarding-drawer__panel-menu-link",state:{origin:"drawer-nav"},onClick:()=>t(e.drawerView)},(0,r.createElement)(Y.A,{icon:e.icon}),(0,r.createElement)("span",null,e.title))))))))},oe=({children:e})=>{const{setDrawerActiveView:t}=(0,a.useDispatch)(l.M);return(0,r.createElement)(I.A,{type:"fade-in",duration:"100ms",timingFunction:"ease-in"},(0,r.createElement)(T.Button,{className:"nfd-onboarding-drawer__panel-back",variant:"tertiary",icon:Z.A,onClick:()=>t(d.VG)},(0,p.__)("Design","wp-module-onboarding")),e)},se=()=>{const{isDrawerOpen:e,drawerView:t}=(0,a.useSelect)((e=>{const{isDrawerOpened:t,getActiveDrawerView:n}=e(l.M);return{isDrawerOpen:t(),drawerView:n()}}),[]),{setIsDrawerOpened:n}=(0,a.useDispatch)(l.M);return(0,r.createElement)("div",{className:N()("nfd-onboarding-drawer__panel",{"is-open":e}),role:"button",tabIndex:"0",onKeyDown:e=>{e.keyCode!==K.ESCAPE||e.defaultPrevented||(e.preventDefault(),n(!1))}},(0,r.createElement)("div",{className:"nfd-onboarding-drawer__panel-inner"},(0,r.createElement)("div",{className:"nfd-onboarding-drawer__panel-site-title-container"},(0,r.createElement)("div",{className:"nfd-onboarding-drawer__panel-site-title"},(0,p.__)("WordPress Onboarding","wp-module-onboarding"))),(0,r.createElement)("div",{className:"nfd-onboarding-drawer__panel-scroll-container"},(0,r.createElement)("div",{className:"nfd-onboarding-drawer__panel-inside"},d.vO===t&&(0,r.createElement)(re,null),d.VG===t&&(0,r.createElement)(X,null),d.lf===t&&(0,r.createElement)(te,null),d.eY===t&&(0,r.createElement)(ie,null),d.yY===t&&(0,r.createElement)(ne,null),d.KJ===t&&(0,r.createElement)(oe,null,(0,r.createElement)(j,null)),d.Cx===t&&(0,r.createElement)(oe,null,(0,r.createElement)(G,null)),d.PE===t&&(0,r.createElement)(oe,null,(0,r.createElement)(q,null)),d.iQ===t&&(0,r.createElement)(oe,null,(0,r.createElement)($,null)),d.SJ===t&&(0,r.createElement)(oe,null,(0,r.createElement)(Q,null)),d.HJ===t&&(0,r.createElement)(oe,null,(0,r.createElement)(U,null)),d.CL===t&&(0,r.createElement)(oe,null,(0,r.createElement)(B,null))))))},le=({isOpen:e})=>{const{isDrawerOpen:t,isDrawerSuppressed:n,activeDrawerView:o}=(0,a.useSelect)((e=>({isDrawerOpen:e(l.M).isDrawerOpened(),isDrawerSuppressed:e(l.M).isDrawerSuppressed(),activeDrawerView:e(l.M).getActiveDrawerView()})),[]),{setIsDrawerOpened:s}=(0,a.useDispatch)(l.M),c=(0,i.useRef)();return(0,i.useEffect)((()=>{t||c?.current?.focus()}),[t]),o&&(0,r.createElement)(T.__unstableMotion.div,{className:N()("nfd-onboarding-drawer__toggle",{"is-open":t}),whileHover:"expand"},(0,r.createElement)(T.Button,{className:`nfd-onboarding-drawer__toggle-button has-icon ${!n||"is-suppressed"}`,label:(0,p.__)("Toggle Navigation","wp-module-onboarding"),ref:c,"aria-pressed":e,onClick:()=>{n||s(!t)}},(0,r.createElement)("div",{style:{width:"36px",height:"36px",backgroundImage:"var(--nfd-onboarding-icon)",backgroundSize:"contain"}})))},ce=(0,i.memo)((({isDefaultOpen:e=!1})=>{const t=(0,o.useViewportMatch)("medium"),{setIsDrawerOpened:n}=(0,a.useDispatch)(l.M);return(0,i.useEffect)((()=>{n(e&&t)}),[e,t,n]),(0,r.createElement)(i.Fragment,null,(0,r.createElement)(le,null),(0,r.createElement)(se,null))})),de=()=>{const{isSidebarOpened:e,sideBarView:t,sidebars:n}=(0,a.useSelect)((e=>({isSidebarOpened:e(l.M).isSidebarOpened(),sideBarView:e(l.M).getSidebarView(),sidebars:e(l.M).getSidebars()})));return(0,r.createElement)(i.Fragment,null,(0,r.createElement)(i.Suspense,{fallback:(0,r.createElement)(i.Fragment,null)},n.map((e=>(0,r.createElement)(i.Fragment,{key:e.id},e?.sidebar&&(0,r.createElement)(e.sidebar,null),e?.menu&&(0,r.createElement)(e.menu,null))))),(0,r.createElement)("div",{className:N()("nfd-onboarding-sidebar__panel",{"is-open":e&&t})},(0,r.createElement)("div",{className:"nfd-onboarding-sidebar__panel-inner"},e&&t&&(0,r.createElement)(T.Slot,{name:`${d.St}/${t}`}))))},ue=()=>{const{footers:e,footerActiveView:t}=(0,a.useSelect)((e=>({footers:e(l.M).getFooters(),footerActiveView:e(l.M).getFooterActiveView()})));return(0,r.createElement)("div",{className:"nfd-onboarding-footer"},(0,r.createElement)(i.Suspense,{fallback:(0,r.createElement)(i.Fragment,null)},e.map((e=>(0,r.createElement)(i.Fragment,{key:e.id},(0,r.createElement)(e.footer,null))))),(0,r.createElement)("div",{className:"nfd-onboarding-footer__start"},(0,r.createElement)(T.Slot,{name:`${t}/${d.vd}`})),(0,r.createElement)("div",{className:"nfd-onboarding-footer__end"},(0,r.createElement)(T.Slot,{name:`${t}/${d.gb}`})))},pe=n.p+"images/ai_bg.55900f2d.png";var me=n(9269);const he=(0,i.forwardRef)((function({footer:e,header:t,sidebar:n,secondarySidebar:a,notices:s,content:l,drawer:c,actions:u,labels:m,className:h,shortcuts:g,interactionDisabled:f},w){const b=(0,T.__unstableUseNavigateRegions)(g);if("sitegen"===window.nfdOnboarding.currentFlow){const{theme:e}=(0,i.useContext)(me.D);!function(e,t){(0,i.useEffect)((()=>{const n=new Image;n.src=pe,n.onload=()=>{document.querySelector(".nfd-onboarding-skeleton--sitegen")&&(document.querySelector(".nfd-onboarding-skeleton--sitegen").style.background=t?`url('${pe}')`:"#ededed")};const r=document&&document.querySelector(`html:not(.${e})`);if(r)return r.classList.toggle(e),()=>{r.classList.toggle(e)}}),[e,t])}("nfd-interface-interface-skeleton__html-container",e===d.fS)}const _={ /* translators: accessibility text for the nav bar landmark region. */ drawer:(0,p.__)("Drawer","wp-module-onboarding"), diff --git a/build/2.3.2/sitegen-theme-marker.asset.php b/build/2.3.3/sitegen-theme-marker.asset.php similarity index 100% rename from build/2.3.2/sitegen-theme-marker.asset.php rename to build/2.3.3/sitegen-theme-marker.asset.php diff --git a/build/2.3.3/sitegen-theme-marker.css.asset.php b/build/2.3.3/sitegen-theme-marker.css.asset.php new file mode 100644 index 000000000..fa489f26a --- /dev/null +++ b/build/2.3.3/sitegen-theme-marker.css.asset.php @@ -0,0 +1 @@ + array(), 'version' => '1c5e915c67b4a469a99f'); diff --git a/build/2.3.3/sitegen-theme-marker.css.css b/build/2.3.3/sitegen-theme-marker.css.css new file mode 100644 index 000000000..cfedf7f00 --- /dev/null +++ b/build/2.3.3/sitegen-theme-marker.css.css @@ -0,0 +1 @@ +.theme-name{align-items:center;display:flex;flex-direction:row}.theme-name svg{margin-left:8px}.nfd-onboarding-sitegen-theme-marker-filled{fill:#1d2327}.theme.active .nfd-onboarding-sitegen-theme-marker-filled{fill:none}.nfd-onboarding-sitegen-theme-marker-title{margin-left:8px;overflow:hidden;text-overflow:ellipsis;width:120px} diff --git a/build/2.3.2/sitegen-theme-marker.css.js b/build/2.3.3/sitegen-theme-marker.css.js similarity index 100% rename from build/2.3.2/sitegen-theme-marker.css.js rename to build/2.3.3/sitegen-theme-marker.css.js diff --git a/build/2.3.2/sitegen-theme-marker.js b/build/2.3.3/sitegen-theme-marker.js similarity index 100% rename from build/2.3.2/sitegen-theme-marker.js rename to build/2.3.3/sitegen-theme-marker.js diff --git a/composer.lock b/composer.lock index 68792d5ed..ef670e978 100644 --- a/composer.lock +++ b/composer.lock @@ -285,16 +285,16 @@ }, { "name": "newfold-labs/wp-module-coming-soon", - "version": "1.2.3", + "version": "1.2.4", "source": { "type": "git", "url": "https://github.com/newfold-labs/wp-module-coming-soon.git", - "reference": "335bfe833ebdc072de55ed54cd6eebe0a210e43f" + "reference": "05112a5908bb08ca0aa3aa7d7e7c508d44401b28" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/newfold-labs/wp-module-coming-soon/zipball/335bfe833ebdc072de55ed54cd6eebe0a210e43f", - "reference": "335bfe833ebdc072de55ed54cd6eebe0a210e43f", + "url": "https://api.github.com/repos/newfold-labs/wp-module-coming-soon/zipball/05112a5908bb08ca0aa3aa7d7e7c508d44401b28", + "reference": "05112a5908bb08ca0aa3aa7d7e7c508d44401b28", "shasum": "" }, "require": { @@ -332,10 +332,10 @@ ], "description": "Coming Soon module for WordPress sites.", "support": { - "source": "https://github.com/newfold-labs/wp-module-coming-soon/tree/1.2.3", + "source": "https://github.com/newfold-labs/wp-module-coming-soon/tree/1.2.4", "issues": "https://github.com/newfold-labs/wp-module-coming-soon/issues" }, - "time": "2024-02-29T19:54:02+00:00" + "time": "2024-05-31T16:22:17+00:00" }, { "name": "newfold-labs/wp-module-context", @@ -393,19 +393,20 @@ }, { "name": "newfold-labs/wp-module-data", - "version": "2.5.0", + "version": "2.5.2", "source": { "type": "git", "url": "https://github.com/newfold-labs/wp-module-data.git", - "reference": "42bdfdece373e194b405f6b9a9e2a9e07154dfb9" + "reference": "bd9642c155735fac8f114ea1eb237da4a72eb267" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/newfold-labs/wp-module-data/zipball/42bdfdece373e194b405f6b9a9e2a9e07154dfb9", - "reference": "42bdfdece373e194b405f6b9a9e2a9e07154dfb9", + "url": "https://api.github.com/repos/newfold-labs/wp-module-data/zipball/bd9642c155735fac8f114ea1eb237da4a72eb267", + "reference": "bd9642c155735fac8f114ea1eb237da4a72eb267", "shasum": "" }, "require": { + "ext-json": "*", "newfold-labs/wp-module-loader": "^1.0", "wp-forge/helpers": "^2.0", "wp-forge/wp-query-builder": "^1.0", @@ -435,6 +436,9 @@ "fix": [ "vendor/bin/phpcbf . --standard=phpcs.xml" ], + "cs-changes": [ + "updated_files=$( git status | grep '\\(new file\\|modified\\):\\s.*.php$' | cut -c14- | awk '{ printf(\"%s \", $0) }' ); echo \"\\nChecking\"$(git status | grep '\\(new file\\|modified\\):\\s.*.php$' | tail -n+2 | wc -l)\" files\"; phpcbf $(echo $updated_files); phpcs $(echo $updated_files);" + ], "lint": [ "vendor/bin/phpcs . --standard=phpcs.xml -s" ] @@ -444,23 +448,23 @@ ], "description": "Newfold Data Module", "support": { - "source": "https://github.com/newfold-labs/wp-module-data/tree/2.5.0", + "source": "https://github.com/newfold-labs/wp-module-data/tree/2.5.2", "issues": "https://github.com/newfold-labs/wp-module-data/issues" }, - "time": "2024-05-15T00:31:16+00:00" + "time": "2024-05-30T18:45:12+00:00" }, { "name": "newfold-labs/wp-module-facebook", - "version": "v1.0.7", + "version": "v1.0.9", "source": { "type": "git", "url": "https://github.com/newfold-labs/wp-module-facebook.git", - "reference": "77a433621894590b3d38c511d880d830fb3b4b64" + "reference": "5526497969f6a3fc4d4b2fa728ee1c9c52d132b8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/newfold-labs/wp-module-facebook/zipball/77a433621894590b3d38c511d880d830fb3b4b64", - "reference": "77a433621894590b3d38c511d880d830fb3b4b64", + "url": "https://api.github.com/repos/newfold-labs/wp-module-facebook/zipball/5526497969f6a3fc4d4b2fa728ee1c9c52d132b8", + "reference": "5526497969f6a3fc4d4b2fa728ee1c9c52d132b8", "shasum": "" }, "require": { @@ -486,10 +490,10 @@ } ], "support": { - "source": "https://github.com/newfold-labs/wp-module-facebook/tree/v1.0.7", + "source": "https://github.com/newfold-labs/wp-module-facebook/tree/v1.0.9", "issues": "https://github.com/newfold-labs/wp-module-facebook/issues" }, - "time": "2024-05-03T10:09:41+00:00" + "time": "2024-06-05T11:02:38+00:00" }, { "name": "newfold-labs/wp-module-install-checker", @@ -674,16 +678,16 @@ }, { "name": "newfold-labs/wp-module-onboarding-data", - "version": "1.1.10", + "version": "1.1.11", "source": { "type": "git", "url": "https://github.com/newfold-labs/wp-module-onboarding-data.git", - "reference": "32963151eda0eb2f93a77a9a0fa55d1ec8c9aed5" + "reference": "16b522291f29fad9d3067da1634a7362ad889953" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/newfold-labs/wp-module-onboarding-data/zipball/32963151eda0eb2f93a77a9a0fa55d1ec8c9aed5", - "reference": "32963151eda0eb2f93a77a9a0fa55d1ec8c9aed5", + "url": "https://api.github.com/repos/newfold-labs/wp-module-onboarding-data/zipball/16b522291f29fad9d3067da1634a7362ad889953", + "reference": "16b522291f29fad9d3067da1634a7362ad889953", "shasum": "" }, "require": { @@ -718,10 +722,10 @@ ], "description": "A non-toggleable module containing a standardized interface for interacting with Onboarding data.", "support": { - "source": "https://github.com/newfold-labs/wp-module-onboarding-data/tree/1.1.10", + "source": "https://github.com/newfold-labs/wp-module-onboarding-data/tree/1.1.11", "issues": "https://github.com/newfold-labs/wp-module-onboarding-data/issues" }, - "time": "2024-05-27T09:30:23+00:00" + "time": "2024-06-05T08:28:57+00:00" }, { "name": "newfold-labs/wp-module-patterns", @@ -1258,6 +1262,76 @@ }, "time": "2023-01-05T11:28:13+00:00" }, + { + "name": "doctrine/instantiator", + "version": "1.5.0", + "source": { + "type": "git", + "url": "https://github.com/doctrine/instantiator.git", + "reference": "0a0fa9780f5d4e507415a065172d26a98d02047b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/instantiator/zipball/0a0fa9780f5d4e507415a065172d26a98d02047b", + "reference": "0a0fa9780f5d4e507415a065172d26a98d02047b", + "shasum": "" + }, + "require": { + "php": "^7.1 || ^8.0" + }, + "require-dev": { + "doctrine/coding-standard": "^9 || ^11", + "ext-pdo": "*", + "ext-phar": "*", + "phpbench/phpbench": "^0.16 || ^1", + "phpstan/phpstan": "^1.4", + "phpstan/phpstan-phpunit": "^1", + "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", + "vimeo/psalm": "^4.30 || ^5.4" + }, + "type": "library", + "autoload": { + "psr-4": { + "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Marco Pivetta", + "email": "ocramius@gmail.com", + "homepage": "https://ocramius.github.io/" + } + ], + "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors", + "homepage": "https://www.doctrine-project.org/projects/instantiator.html", + "keywords": [ + "constructor", + "instantiate" + ], + "support": { + "issues": "https://github.com/doctrine/instantiator/issues", + "source": "https://github.com/doctrine/instantiator/tree/1.5.0" + }, + "funding": [ + { + "url": "https://www.doctrine-project.org/sponsorship.html", + "type": "custom" + }, + { + "url": "https://www.patreon.com/phpdoctrine", + "type": "patreon" + }, + { + "url": "https://tidelift.com/funding/github/packagist/doctrine%2Finstantiator", + "type": "tidelift" + } + ], + "time": "2022-12-30T00:15:36+00:00" + }, { "name": "eftec/bladeone", "version": "3.52", @@ -2164,16 +2238,16 @@ }, { "name": "phpunit/php-code-coverage", - "version": "10.1.14", + "version": "9.2.31", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-code-coverage.git", - "reference": "e3f51450ebffe8e0efdf7346ae966a656f7d5e5b" + "reference": "48c34b5d8d983006bd2adc2d0de92963b9155965" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/e3f51450ebffe8e0efdf7346ae966a656f7d5e5b", - "reference": "e3f51450ebffe8e0efdf7346ae966a656f7d5e5b", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/48c34b5d8d983006bd2adc2d0de92963b9155965", + "reference": "48c34b5d8d983006bd2adc2d0de92963b9155965", "shasum": "" }, "require": { @@ -2181,18 +2255,18 @@ "ext-libxml": "*", "ext-xmlwriter": "*", "nikic/php-parser": "^4.18 || ^5.0", - "php": ">=8.1", - "phpunit/php-file-iterator": "^4.0", - "phpunit/php-text-template": "^3.0", - "sebastian/code-unit-reverse-lookup": "^3.0", - "sebastian/complexity": "^3.0", - "sebastian/environment": "^6.0", - "sebastian/lines-of-code": "^2.0", - "sebastian/version": "^4.0", + "php": ">=7.3", + "phpunit/php-file-iterator": "^3.0.3", + "phpunit/php-text-template": "^2.0.2", + "sebastian/code-unit-reverse-lookup": "^2.0.2", + "sebastian/complexity": "^2.0", + "sebastian/environment": "^5.1.2", + "sebastian/lines-of-code": "^1.0.3", + "sebastian/version": "^3.0.1", "theseer/tokenizer": "^1.2.0" }, "require-dev": { - "phpunit/phpunit": "^10.1" + "phpunit/phpunit": "^9.3" }, "suggest": { "ext-pcov": "PHP extension that provides line coverage", @@ -2201,7 +2275,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "10.1-dev" + "dev-master": "9.2-dev" } }, "autoload": { @@ -2230,7 +2304,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues", "security": "https://github.com/sebastianbergmann/php-code-coverage/security/policy", - "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/10.1.14" + "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.31" }, "funding": [ { @@ -2238,32 +2312,32 @@ "type": "github" } ], - "time": "2024-03-12T15:33:41+00:00" + "time": "2024-03-02T06:37:42+00:00" }, { "name": "phpunit/php-file-iterator", - "version": "4.1.0", + "version": "3.0.6", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-file-iterator.git", - "reference": "a95037b6d9e608ba092da1b23931e537cadc3c3c" + "reference": "cf1c2e7c203ac650e352f4cc675a7021e7d1b3cf" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/a95037b6d9e608ba092da1b23931e537cadc3c3c", - "reference": "a95037b6d9e608ba092da1b23931e537cadc3c3c", + "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/cf1c2e7c203ac650e352f4cc675a7021e7d1b3cf", + "reference": "cf1c2e7c203ac650e352f4cc675a7021e7d1b3cf", "shasum": "" }, "require": { - "php": ">=8.1" + "php": ">=7.3" }, "require-dev": { - "phpunit/phpunit": "^10.0" + "phpunit/phpunit": "^9.3" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "4.0-dev" + "dev-master": "3.0-dev" } }, "autoload": { @@ -2290,8 +2364,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/php-file-iterator/issues", - "security": "https://github.com/sebastianbergmann/php-file-iterator/security/policy", - "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/4.1.0" + "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/3.0.6" }, "funding": [ { @@ -2299,28 +2372,28 @@ "type": "github" } ], - "time": "2023-08-31T06:24:48+00:00" + "time": "2021-12-02T12:48:52+00:00" }, { "name": "phpunit/php-invoker", - "version": "4.0.0", + "version": "3.1.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-invoker.git", - "reference": "f5e568ba02fa5ba0ddd0f618391d5a9ea50b06d7" + "reference": "5a10147d0aaf65b58940a0b72f71c9ac0423cc67" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-invoker/zipball/f5e568ba02fa5ba0ddd0f618391d5a9ea50b06d7", - "reference": "f5e568ba02fa5ba0ddd0f618391d5a9ea50b06d7", + "url": "https://api.github.com/repos/sebastianbergmann/php-invoker/zipball/5a10147d0aaf65b58940a0b72f71c9ac0423cc67", + "reference": "5a10147d0aaf65b58940a0b72f71c9ac0423cc67", "shasum": "" }, "require": { - "php": ">=8.1" + "php": ">=7.3" }, "require-dev": { "ext-pcntl": "*", - "phpunit/phpunit": "^10.0" + "phpunit/phpunit": "^9.3" }, "suggest": { "ext-pcntl": "*" @@ -2328,7 +2401,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "4.0-dev" + "dev-master": "3.1-dev" } }, "autoload": { @@ -2354,7 +2427,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/php-invoker/issues", - "source": "https://github.com/sebastianbergmann/php-invoker/tree/4.0.0" + "source": "https://github.com/sebastianbergmann/php-invoker/tree/3.1.1" }, "funding": [ { @@ -2362,32 +2435,32 @@ "type": "github" } ], - "time": "2023-02-03T06:56:09+00:00" + "time": "2020-09-28T05:58:55+00:00" }, { "name": "phpunit/php-text-template", - "version": "3.0.1", + "version": "2.0.4", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-text-template.git", - "reference": "0c7b06ff49e3d5072f057eb1fa59258bf287a748" + "reference": "5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/0c7b06ff49e3d5072f057eb1fa59258bf287a748", - "reference": "0c7b06ff49e3d5072f057eb1fa59258bf287a748", + "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28", + "reference": "5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28", "shasum": "" }, "require": { - "php": ">=8.1" + "php": ">=7.3" }, "require-dev": { - "phpunit/phpunit": "^10.0" + "phpunit/phpunit": "^9.3" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "3.0-dev" + "dev-master": "2.0-dev" } }, "autoload": { @@ -2413,8 +2486,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/php-text-template/issues", - "security": "https://github.com/sebastianbergmann/php-text-template/security/policy", - "source": "https://github.com/sebastianbergmann/php-text-template/tree/3.0.1" + "source": "https://github.com/sebastianbergmann/php-text-template/tree/2.0.4" }, "funding": [ { @@ -2422,32 +2494,32 @@ "type": "github" } ], - "time": "2023-08-31T14:07:24+00:00" + "time": "2020-10-26T05:33:50+00:00" }, { "name": "phpunit/php-timer", - "version": "6.0.0", + "version": "5.0.3", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-timer.git", - "reference": "e2a2d67966e740530f4a3343fe2e030ffdc1161d" + "reference": "5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/e2a2d67966e740530f4a3343fe2e030ffdc1161d", - "reference": "e2a2d67966e740530f4a3343fe2e030ffdc1161d", + "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2", + "reference": "5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2", "shasum": "" }, "require": { - "php": ">=8.1" + "php": ">=7.3" }, "require-dev": { - "phpunit/phpunit": "^10.0" + "phpunit/phpunit": "^9.3" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "6.0-dev" + "dev-master": "5.0-dev" } }, "autoload": { @@ -2473,7 +2545,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/php-timer/issues", - "source": "https://github.com/sebastianbergmann/php-timer/tree/6.0.0" + "source": "https://github.com/sebastianbergmann/php-timer/tree/5.0.3" }, "funding": [ { @@ -2481,23 +2553,24 @@ "type": "github" } ], - "time": "2023-02-03T06:57:52+00:00" + "time": "2020-10-26T13:16:10+00:00" }, { "name": "phpunit/phpunit", - "version": "10.5.20", + "version": "9.6.19", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "547d314dc24ec1e177720d45c6263fb226cc2ae3" + "reference": "a1a54a473501ef4cdeaae4e06891674114d79db8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/547d314dc24ec1e177720d45c6263fb226cc2ae3", - "reference": "547d314dc24ec1e177720d45c6263fb226cc2ae3", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/a1a54a473501ef4cdeaae4e06891674114d79db8", + "reference": "a1a54a473501ef4cdeaae4e06891674114d79db8", "shasum": "" }, "require": { + "doctrine/instantiator": "^1.3.1 || ^2", "ext-dom": "*", "ext-json": "*", "ext-libxml": "*", @@ -2507,26 +2580,27 @@ "myclabs/deep-copy": "^1.10.1", "phar-io/manifest": "^2.0.3", "phar-io/version": "^3.0.2", - "php": ">=8.1", - "phpunit/php-code-coverage": "^10.1.5", - "phpunit/php-file-iterator": "^4.0", - "phpunit/php-invoker": "^4.0", - "phpunit/php-text-template": "^3.0", - "phpunit/php-timer": "^6.0", - "sebastian/cli-parser": "^2.0", - "sebastian/code-unit": "^2.0", - "sebastian/comparator": "^5.0", - "sebastian/diff": "^5.0", - "sebastian/environment": "^6.0", - "sebastian/exporter": "^5.1", - "sebastian/global-state": "^6.0.1", - "sebastian/object-enumerator": "^5.0", - "sebastian/recursion-context": "^5.0", - "sebastian/type": "^4.0", - "sebastian/version": "^4.0" + "php": ">=7.3", + "phpunit/php-code-coverage": "^9.2.28", + "phpunit/php-file-iterator": "^3.0.5", + "phpunit/php-invoker": "^3.1.1", + "phpunit/php-text-template": "^2.0.3", + "phpunit/php-timer": "^5.0.2", + "sebastian/cli-parser": "^1.0.1", + "sebastian/code-unit": "^1.0.6", + "sebastian/comparator": "^4.0.8", + "sebastian/diff": "^4.0.3", + "sebastian/environment": "^5.1.3", + "sebastian/exporter": "^4.0.5", + "sebastian/global-state": "^5.0.1", + "sebastian/object-enumerator": "^4.0.3", + "sebastian/resource-operations": "^3.0.3", + "sebastian/type": "^3.2", + "sebastian/version": "^3.0.2" }, "suggest": { - "ext-soap": "To be able to generate mocks based on WSDL files" + "ext-soap": "To be able to generate mocks based on WSDL files", + "ext-xdebug": "PHP extension that provides line coverage as well as branch and path coverage" }, "bin": [ "phpunit" @@ -2534,7 +2608,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "10.5-dev" + "dev-master": "9.6-dev" } }, "autoload": { @@ -2566,7 +2640,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/phpunit/issues", "security": "https://github.com/sebastianbergmann/phpunit/security/policy", - "source": "https://github.com/sebastianbergmann/phpunit/tree/10.5.20" + "source": "https://github.com/sebastianbergmann/phpunit/tree/9.6.19" }, "funding": [ { @@ -2582,32 +2656,32 @@ "type": "tidelift" } ], - "time": "2024-04-24T06:32:35+00:00" + "time": "2024-04-05T04:35:58+00:00" }, { "name": "sebastian/cli-parser", - "version": "2.0.1", + "version": "1.0.2", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/cli-parser.git", - "reference": "c34583b87e7b7a8055bf6c450c2c77ce32a24084" + "reference": "2b56bea83a09de3ac06bb18b92f068e60cc6f50b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/cli-parser/zipball/c34583b87e7b7a8055bf6c450c2c77ce32a24084", - "reference": "c34583b87e7b7a8055bf6c450c2c77ce32a24084", + "url": "https://api.github.com/repos/sebastianbergmann/cli-parser/zipball/2b56bea83a09de3ac06bb18b92f068e60cc6f50b", + "reference": "2b56bea83a09de3ac06bb18b92f068e60cc6f50b", "shasum": "" }, "require": { - "php": ">=8.1" + "php": ">=7.3" }, "require-dev": { - "phpunit/phpunit": "^10.0" + "phpunit/phpunit": "^9.3" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "2.0-dev" + "dev-master": "1.0-dev" } }, "autoload": { @@ -2630,8 +2704,7 @@ "homepage": "https://github.com/sebastianbergmann/cli-parser", "support": { "issues": "https://github.com/sebastianbergmann/cli-parser/issues", - "security": "https://github.com/sebastianbergmann/cli-parser/security/policy", - "source": "https://github.com/sebastianbergmann/cli-parser/tree/2.0.1" + "source": "https://github.com/sebastianbergmann/cli-parser/tree/1.0.2" }, "funding": [ { @@ -2639,32 +2712,32 @@ "type": "github" } ], - "time": "2024-03-02T07:12:49+00:00" + "time": "2024-03-02T06:27:43+00:00" }, { "name": "sebastian/code-unit", - "version": "2.0.0", + "version": "1.0.8", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/code-unit.git", - "reference": "a81fee9eef0b7a76af11d121767abc44c104e503" + "reference": "1fc9f64c0927627ef78ba436c9b17d967e68e120" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/code-unit/zipball/a81fee9eef0b7a76af11d121767abc44c104e503", - "reference": "a81fee9eef0b7a76af11d121767abc44c104e503", + "url": "https://api.github.com/repos/sebastianbergmann/code-unit/zipball/1fc9f64c0927627ef78ba436c9b17d967e68e120", + "reference": "1fc9f64c0927627ef78ba436c9b17d967e68e120", "shasum": "" }, "require": { - "php": ">=8.1" + "php": ">=7.3" }, "require-dev": { - "phpunit/phpunit": "^10.0" + "phpunit/phpunit": "^9.3" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "2.0-dev" + "dev-master": "1.0-dev" } }, "autoload": { @@ -2687,7 +2760,7 @@ "homepage": "https://github.com/sebastianbergmann/code-unit", "support": { "issues": "https://github.com/sebastianbergmann/code-unit/issues", - "source": "https://github.com/sebastianbergmann/code-unit/tree/2.0.0" + "source": "https://github.com/sebastianbergmann/code-unit/tree/1.0.8" }, "funding": [ { @@ -2695,32 +2768,32 @@ "type": "github" } ], - "time": "2023-02-03T06:58:43+00:00" + "time": "2020-10-26T13:08:54+00:00" }, { "name": "sebastian/code-unit-reverse-lookup", - "version": "3.0.0", + "version": "2.0.3", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git", - "reference": "5e3a687f7d8ae33fb362c5c0743794bbb2420a1d" + "reference": "ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/5e3a687f7d8ae33fb362c5c0743794bbb2420a1d", - "reference": "5e3a687f7d8ae33fb362c5c0743794bbb2420a1d", + "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5", + "reference": "ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5", "shasum": "" }, "require": { - "php": ">=8.1" + "php": ">=7.3" }, "require-dev": { - "phpunit/phpunit": "^10.0" + "phpunit/phpunit": "^9.3" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "3.0-dev" + "dev-master": "2.0-dev" } }, "autoload": { @@ -2742,7 +2815,7 @@ "homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/", "support": { "issues": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/issues", - "source": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/tree/3.0.0" + "source": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/tree/2.0.3" }, "funding": [ { @@ -2750,36 +2823,34 @@ "type": "github" } ], - "time": "2023-02-03T06:59:15+00:00" + "time": "2020-09-28T05:30:19+00:00" }, { "name": "sebastian/comparator", - "version": "5.0.1", + "version": "4.0.8", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/comparator.git", - "reference": "2db5010a484d53ebf536087a70b4a5423c102372" + "reference": "fa0f136dd2334583309d32b62544682ee972b51a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/2db5010a484d53ebf536087a70b4a5423c102372", - "reference": "2db5010a484d53ebf536087a70b4a5423c102372", + "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/fa0f136dd2334583309d32b62544682ee972b51a", + "reference": "fa0f136dd2334583309d32b62544682ee972b51a", "shasum": "" }, "require": { - "ext-dom": "*", - "ext-mbstring": "*", - "php": ">=8.1", - "sebastian/diff": "^5.0", - "sebastian/exporter": "^5.0" + "php": ">=7.3", + "sebastian/diff": "^4.0", + "sebastian/exporter": "^4.0" }, "require-dev": { - "phpunit/phpunit": "^10.3" + "phpunit/phpunit": "^9.3" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "5.0-dev" + "dev-master": "4.0-dev" } }, "autoload": { @@ -2818,8 +2889,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/comparator/issues", - "security": "https://github.com/sebastianbergmann/comparator/security/policy", - "source": "https://github.com/sebastianbergmann/comparator/tree/5.0.1" + "source": "https://github.com/sebastianbergmann/comparator/tree/4.0.8" }, "funding": [ { @@ -2827,33 +2897,33 @@ "type": "github" } ], - "time": "2023-08-14T13:18:12+00:00" + "time": "2022-09-14T12:41:17+00:00" }, { "name": "sebastian/complexity", - "version": "3.2.0", + "version": "2.0.3", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/complexity.git", - "reference": "68ff824baeae169ec9f2137158ee529584553799" + "reference": "25f207c40d62b8b7aa32f5ab026c53561964053a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/complexity/zipball/68ff824baeae169ec9f2137158ee529584553799", - "reference": "68ff824baeae169ec9f2137158ee529584553799", + "url": "https://api.github.com/repos/sebastianbergmann/complexity/zipball/25f207c40d62b8b7aa32f5ab026c53561964053a", + "reference": "25f207c40d62b8b7aa32f5ab026c53561964053a", "shasum": "" }, "require": { "nikic/php-parser": "^4.18 || ^5.0", - "php": ">=8.1" + "php": ">=7.3" }, "require-dev": { - "phpunit/phpunit": "^10.0" + "phpunit/phpunit": "^9.3" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "3.2-dev" + "dev-master": "2.0-dev" } }, "autoload": { @@ -2876,8 +2946,7 @@ "homepage": "https://github.com/sebastianbergmann/complexity", "support": { "issues": "https://github.com/sebastianbergmann/complexity/issues", - "security": "https://github.com/sebastianbergmann/complexity/security/policy", - "source": "https://github.com/sebastianbergmann/complexity/tree/3.2.0" + "source": "https://github.com/sebastianbergmann/complexity/tree/2.0.3" }, "funding": [ { @@ -2885,33 +2954,33 @@ "type": "github" } ], - "time": "2023-12-21T08:37:17+00:00" + "time": "2023-12-22T06:19:30+00:00" }, { "name": "sebastian/diff", - "version": "5.1.1", + "version": "4.0.6", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/diff.git", - "reference": "c41e007b4b62af48218231d6c2275e4c9b975b2e" + "reference": "ba01945089c3a293b01ba9badc29ad55b106b0bc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/c41e007b4b62af48218231d6c2275e4c9b975b2e", - "reference": "c41e007b4b62af48218231d6c2275e4c9b975b2e", + "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/ba01945089c3a293b01ba9badc29ad55b106b0bc", + "reference": "ba01945089c3a293b01ba9badc29ad55b106b0bc", "shasum": "" }, "require": { - "php": ">=8.1" + "php": ">=7.3" }, "require-dev": { - "phpunit/phpunit": "^10.0", - "symfony/process": "^6.4" + "phpunit/phpunit": "^9.3", + "symfony/process": "^4.2 || ^5" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "5.1-dev" + "dev-master": "4.0-dev" } }, "autoload": { @@ -2943,8 +3012,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/diff/issues", - "security": "https://github.com/sebastianbergmann/diff/security/policy", - "source": "https://github.com/sebastianbergmann/diff/tree/5.1.1" + "source": "https://github.com/sebastianbergmann/diff/tree/4.0.6" }, "funding": [ { @@ -2952,27 +3020,27 @@ "type": "github" } ], - "time": "2024-03-02T07:15:17+00:00" + "time": "2024-03-02T06:30:58+00:00" }, { "name": "sebastian/environment", - "version": "6.1.0", + "version": "5.1.5", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/environment.git", - "reference": "8074dbcd93529b357029f5cc5058fd3e43666984" + "reference": "830c43a844f1f8d5b7a1f6d6076b784454d8b7ed" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/8074dbcd93529b357029f5cc5058fd3e43666984", - "reference": "8074dbcd93529b357029f5cc5058fd3e43666984", + "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/830c43a844f1f8d5b7a1f6d6076b784454d8b7ed", + "reference": "830c43a844f1f8d5b7a1f6d6076b784454d8b7ed", "shasum": "" }, "require": { - "php": ">=8.1" + "php": ">=7.3" }, "require-dev": { - "phpunit/phpunit": "^10.0" + "phpunit/phpunit": "^9.3" }, "suggest": { "ext-posix": "*" @@ -2980,7 +3048,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "6.1-dev" + "dev-master": "5.1-dev" } }, "autoload": { @@ -2999,7 +3067,7 @@ } ], "description": "Provides functionality to handle HHVM/PHP environments", - "homepage": "https://github.com/sebastianbergmann/environment", + "homepage": "http://www.github.com/sebastianbergmann/environment", "keywords": [ "Xdebug", "environment", @@ -3007,8 +3075,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/environment/issues", - "security": "https://github.com/sebastianbergmann/environment/security/policy", - "source": "https://github.com/sebastianbergmann/environment/tree/6.1.0" + "source": "https://github.com/sebastianbergmann/environment/tree/5.1.5" }, "funding": [ { @@ -3016,34 +3083,34 @@ "type": "github" } ], - "time": "2024-03-23T08:47:14+00:00" + "time": "2023-02-03T06:03:51+00:00" }, { "name": "sebastian/exporter", - "version": "5.1.2", + "version": "4.0.6", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/exporter.git", - "reference": "955288482d97c19a372d3f31006ab3f37da47adf" + "reference": "78c00df8f170e02473b682df15bfcdacc3d32d72" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/955288482d97c19a372d3f31006ab3f37da47adf", - "reference": "955288482d97c19a372d3f31006ab3f37da47adf", + "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/78c00df8f170e02473b682df15bfcdacc3d32d72", + "reference": "78c00df8f170e02473b682df15bfcdacc3d32d72", "shasum": "" }, "require": { - "ext-mbstring": "*", - "php": ">=8.1", - "sebastian/recursion-context": "^5.0" + "php": ">=7.3", + "sebastian/recursion-context": "^4.0" }, "require-dev": { - "phpunit/phpunit": "^10.0" + "ext-mbstring": "*", + "phpunit/phpunit": "^9.3" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "5.1-dev" + "dev-master": "4.0-dev" } }, "autoload": { @@ -3085,8 +3152,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/exporter/issues", - "security": "https://github.com/sebastianbergmann/exporter/security/policy", - "source": "https://github.com/sebastianbergmann/exporter/tree/5.1.2" + "source": "https://github.com/sebastianbergmann/exporter/tree/4.0.6" }, "funding": [ { @@ -3094,35 +3160,38 @@ "type": "github" } ], - "time": "2024-03-02T07:17:12+00:00" + "time": "2024-03-02T06:33:00+00:00" }, { "name": "sebastian/global-state", - "version": "6.0.2", + "version": "5.0.7", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/global-state.git", - "reference": "987bafff24ecc4c9ac418cab1145b96dd6e9cbd9" + "reference": "bca7df1f32ee6fe93b4d4a9abbf69e13a4ada2c9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/987bafff24ecc4c9ac418cab1145b96dd6e9cbd9", - "reference": "987bafff24ecc4c9ac418cab1145b96dd6e9cbd9", + "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/bca7df1f32ee6fe93b4d4a9abbf69e13a4ada2c9", + "reference": "bca7df1f32ee6fe93b4d4a9abbf69e13a4ada2c9", "shasum": "" }, "require": { - "php": ">=8.1", - "sebastian/object-reflector": "^3.0", - "sebastian/recursion-context": "^5.0" + "php": ">=7.3", + "sebastian/object-reflector": "^2.0", + "sebastian/recursion-context": "^4.0" }, "require-dev": { "ext-dom": "*", - "phpunit/phpunit": "^10.0" + "phpunit/phpunit": "^9.3" + }, + "suggest": { + "ext-uopz": "*" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "6.0-dev" + "dev-master": "5.0-dev" } }, "autoload": { @@ -3141,14 +3210,13 @@ } ], "description": "Snapshotting of global state", - "homepage": "https://www.github.com/sebastianbergmann/global-state", + "homepage": "http://www.github.com/sebastianbergmann/global-state", "keywords": [ "global state" ], "support": { "issues": "https://github.com/sebastianbergmann/global-state/issues", - "security": "https://github.com/sebastianbergmann/global-state/security/policy", - "source": "https://github.com/sebastianbergmann/global-state/tree/6.0.2" + "source": "https://github.com/sebastianbergmann/global-state/tree/5.0.7" }, "funding": [ { @@ -3156,33 +3224,33 @@ "type": "github" } ], - "time": "2024-03-02T07:19:19+00:00" + "time": "2024-03-02T06:35:11+00:00" }, { "name": "sebastian/lines-of-code", - "version": "2.0.2", + "version": "1.0.4", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/lines-of-code.git", - "reference": "856e7f6a75a84e339195d48c556f23be2ebf75d0" + "reference": "e1e4a170560925c26d424b6a03aed157e7dcc5c5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/lines-of-code/zipball/856e7f6a75a84e339195d48c556f23be2ebf75d0", - "reference": "856e7f6a75a84e339195d48c556f23be2ebf75d0", + "url": "https://api.github.com/repos/sebastianbergmann/lines-of-code/zipball/e1e4a170560925c26d424b6a03aed157e7dcc5c5", + "reference": "e1e4a170560925c26d424b6a03aed157e7dcc5c5", "shasum": "" }, "require": { "nikic/php-parser": "^4.18 || ^5.0", - "php": ">=8.1" + "php": ">=7.3" }, "require-dev": { - "phpunit/phpunit": "^10.0" + "phpunit/phpunit": "^9.3" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "2.0-dev" + "dev-master": "1.0-dev" } }, "autoload": { @@ -3205,8 +3273,7 @@ "homepage": "https://github.com/sebastianbergmann/lines-of-code", "support": { "issues": "https://github.com/sebastianbergmann/lines-of-code/issues", - "security": "https://github.com/sebastianbergmann/lines-of-code/security/policy", - "source": "https://github.com/sebastianbergmann/lines-of-code/tree/2.0.2" + "source": "https://github.com/sebastianbergmann/lines-of-code/tree/1.0.4" }, "funding": [ { @@ -3214,34 +3281,34 @@ "type": "github" } ], - "time": "2023-12-21T08:38:20+00:00" + "time": "2023-12-22T06:20:34+00:00" }, { "name": "sebastian/object-enumerator", - "version": "5.0.0", + "version": "4.0.4", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/object-enumerator.git", - "reference": "202d0e344a580d7f7d04b3fafce6933e59dae906" + "reference": "5c9eeac41b290a3712d88851518825ad78f45c71" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/202d0e344a580d7f7d04b3fafce6933e59dae906", - "reference": "202d0e344a580d7f7d04b3fafce6933e59dae906", + "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/5c9eeac41b290a3712d88851518825ad78f45c71", + "reference": "5c9eeac41b290a3712d88851518825ad78f45c71", "shasum": "" }, "require": { - "php": ">=8.1", - "sebastian/object-reflector": "^3.0", - "sebastian/recursion-context": "^5.0" + "php": ">=7.3", + "sebastian/object-reflector": "^2.0", + "sebastian/recursion-context": "^4.0" }, "require-dev": { - "phpunit/phpunit": "^10.0" + "phpunit/phpunit": "^9.3" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "5.0-dev" + "dev-master": "4.0-dev" } }, "autoload": { @@ -3263,7 +3330,7 @@ "homepage": "https://github.com/sebastianbergmann/object-enumerator/", "support": { "issues": "https://github.com/sebastianbergmann/object-enumerator/issues", - "source": "https://github.com/sebastianbergmann/object-enumerator/tree/5.0.0" + "source": "https://github.com/sebastianbergmann/object-enumerator/tree/4.0.4" }, "funding": [ { @@ -3271,32 +3338,32 @@ "type": "github" } ], - "time": "2023-02-03T07:08:32+00:00" + "time": "2020-10-26T13:12:34+00:00" }, { "name": "sebastian/object-reflector", - "version": "3.0.0", + "version": "2.0.4", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/object-reflector.git", - "reference": "24ed13d98130f0e7122df55d06c5c4942a577957" + "reference": "b4f479ebdbf63ac605d183ece17d8d7fe49c15c7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/24ed13d98130f0e7122df55d06c5c4942a577957", - "reference": "24ed13d98130f0e7122df55d06c5c4942a577957", + "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/b4f479ebdbf63ac605d183ece17d8d7fe49c15c7", + "reference": "b4f479ebdbf63ac605d183ece17d8d7fe49c15c7", "shasum": "" }, "require": { - "php": ">=8.1" + "php": ">=7.3" }, "require-dev": { - "phpunit/phpunit": "^10.0" + "phpunit/phpunit": "^9.3" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "3.0-dev" + "dev-master": "2.0-dev" } }, "autoload": { @@ -3318,7 +3385,7 @@ "homepage": "https://github.com/sebastianbergmann/object-reflector/", "support": { "issues": "https://github.com/sebastianbergmann/object-reflector/issues", - "source": "https://github.com/sebastianbergmann/object-reflector/tree/3.0.0" + "source": "https://github.com/sebastianbergmann/object-reflector/tree/2.0.4" }, "funding": [ { @@ -3326,32 +3393,32 @@ "type": "github" } ], - "time": "2023-02-03T07:06:18+00:00" + "time": "2020-10-26T13:14:26+00:00" }, { "name": "sebastian/recursion-context", - "version": "5.0.0", + "version": "4.0.5", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/recursion-context.git", - "reference": "05909fb5bc7df4c52992396d0116aed689f93712" + "reference": "e75bd0f07204fec2a0af9b0f3cfe97d05f92efc1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/05909fb5bc7df4c52992396d0116aed689f93712", - "reference": "05909fb5bc7df4c52992396d0116aed689f93712", + "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/e75bd0f07204fec2a0af9b0f3cfe97d05f92efc1", + "reference": "e75bd0f07204fec2a0af9b0f3cfe97d05f92efc1", "shasum": "" }, "require": { - "php": ">=8.1" + "php": ">=7.3" }, "require-dev": { - "phpunit/phpunit": "^10.0" + "phpunit/phpunit": "^9.3" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "5.0-dev" + "dev-master": "4.0-dev" } }, "autoload": { @@ -3381,7 +3448,61 @@ "homepage": "https://github.com/sebastianbergmann/recursion-context", "support": { "issues": "https://github.com/sebastianbergmann/recursion-context/issues", - "source": "https://github.com/sebastianbergmann/recursion-context/tree/5.0.0" + "source": "https://github.com/sebastianbergmann/recursion-context/tree/4.0.5" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2023-02-03T06:07:39+00:00" + }, + { + "name": "sebastian/resource-operations", + "version": "3.0.4", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/resource-operations.git", + "reference": "05d5692a7993ecccd56a03e40cd7e5b09b1d404e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/05d5692a7993ecccd56a03e40cd7e5b09b1d404e", + "reference": "05d5692a7993ecccd56a03e40cd7e5b09b1d404e", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Provides a list of PHP built-in functions that operate on resources", + "homepage": "https://www.github.com/sebastianbergmann/resource-operations", + "support": { + "source": "https://github.com/sebastianbergmann/resource-operations/tree/3.0.4" }, "funding": [ { @@ -3389,32 +3510,32 @@ "type": "github" } ], - "time": "2023-02-03T07:05:40+00:00" + "time": "2024-03-14T16:00:52+00:00" }, { "name": "sebastian/type", - "version": "4.0.0", + "version": "3.2.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/type.git", - "reference": "462699a16464c3944eefc02ebdd77882bd3925bf" + "reference": "75e2c2a32f5e0b3aef905b9ed0b179b953b3d7c7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/462699a16464c3944eefc02ebdd77882bd3925bf", - "reference": "462699a16464c3944eefc02ebdd77882bd3925bf", + "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/75e2c2a32f5e0b3aef905b9ed0b179b953b3d7c7", + "reference": "75e2c2a32f5e0b3aef905b9ed0b179b953b3d7c7", "shasum": "" }, "require": { - "php": ">=8.1" + "php": ">=7.3" }, "require-dev": { - "phpunit/phpunit": "^10.0" + "phpunit/phpunit": "^9.5" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "4.0-dev" + "dev-master": "3.2-dev" } }, "autoload": { @@ -3437,7 +3558,7 @@ "homepage": "https://github.com/sebastianbergmann/type", "support": { "issues": "https://github.com/sebastianbergmann/type/issues", - "source": "https://github.com/sebastianbergmann/type/tree/4.0.0" + "source": "https://github.com/sebastianbergmann/type/tree/3.2.1" }, "funding": [ { @@ -3445,29 +3566,29 @@ "type": "github" } ], - "time": "2023-02-03T07:10:45+00:00" + "time": "2023-02-03T06:13:03+00:00" }, { "name": "sebastian/version", - "version": "4.0.1", + "version": "3.0.2", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/version.git", - "reference": "c51fa83a5d8f43f1402e3f32a005e6262244ef17" + "reference": "c6c1022351a901512170118436c764e473f6de8c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/c51fa83a5d8f43f1402e3f32a005e6262244ef17", - "reference": "c51fa83a5d8f43f1402e3f32a005e6262244ef17", + "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/c6c1022351a901512170118436c764e473f6de8c", + "reference": "c6c1022351a901512170118436c764e473f6de8c", "shasum": "" }, "require": { - "php": ">=8.1" + "php": ">=7.3" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "4.0-dev" + "dev-master": "3.0-dev" } }, "autoload": { @@ -3490,7 +3611,7 @@ "homepage": "https://github.com/sebastianbergmann/version", "support": { "issues": "https://github.com/sebastianbergmann/version/issues", - "source": "https://github.com/sebastianbergmann/version/tree/4.0.1" + "source": "https://github.com/sebastianbergmann/version/tree/3.0.2" }, "funding": [ { @@ -3498,7 +3619,7 @@ "type": "github" } ], - "time": "2023-02-07T11:34:05+00:00" + "time": "2020-09-28T06:39:44+00:00" }, { "name": "squizlabs/php_codesniffer", @@ -3580,25 +3701,91 @@ ], "time": "2024-05-22T21:24:41+00:00" }, + { + "name": "symfony/deprecation-contracts", + "version": "v2.5.3", + "source": { + "type": "git", + "url": "https://github.com/symfony/deprecation-contracts.git", + "reference": "80d075412b557d41002320b96a096ca65aa2c98d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/80d075412b557d41002320b96a096ca65aa2c98d", + "reference": "80d075412b557d41002320b96a096ca65aa2c98d", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "2.5-dev" + }, + "thanks": { + "name": "symfony/contracts", + "url": "https://github.com/symfony/contracts" + } + }, + "autoload": { + "files": [ + "function.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "A generic function and convention to trigger deprecation notices", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/deprecation-contracts/tree/v2.5.3" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2023-01-24T14:02:46+00:00" + }, { "name": "symfony/finder", - "version": "v6.4.7", + "version": "v5.4.40", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "511c48990be17358c23bf45c5d71ab85d40fb764" + "reference": "f51cff4687547641c7d8180d74932ab40b2205ce" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/511c48990be17358c23bf45c5d71ab85d40fb764", - "reference": "511c48990be17358c23bf45c5d71ab85d40fb764", + "url": "https://api.github.com/repos/symfony/finder/zipball/f51cff4687547641c7d8180d74932ab40b2205ce", + "reference": "f51cff4687547641c7d8180d74932ab40b2205ce", "shasum": "" }, "require": { - "php": ">=8.1" - }, - "require-dev": { - "symfony/filesystem": "^6.0|^7.0" + "php": ">=7.2.5", + "symfony/deprecation-contracts": "^2.1|^3", + "symfony/polyfill-php80": "^1.16" }, "type": "library", "autoload": { @@ -3626,7 +3813,87 @@ "description": "Finds files and directories via an intuitive fluent interface", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/finder/tree/v6.4.7" + "source": "https://github.com/symfony/finder/tree/v5.4.40" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-05-31T14:33:22+00:00" + }, + { + "name": "symfony/polyfill-php80", + "version": "v1.29.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php80.git", + "reference": "87b68208d5c1188808dd7839ee1e6c8ec3b02f1b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/87b68208d5c1188808dd7839ee1e6c8ec3b02f1b", + "reference": "87b68208d5c1188808dd7839ee1e6c8ec3b02f1b", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "type": "library", + "extra": { + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Php80\\": "" + }, + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ion Bazan", + "email": "ion.bazan@gmail.com" + }, + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-php80/tree/v1.29.0" }, "funding": [ { @@ -3642,7 +3909,7 @@ "type": "tidelift" } ], - "time": "2024-04-23T10:36:43+00:00" + "time": "2024-01-29T20:11:03+00:00" }, { "name": "theseer/tokenizer", diff --git a/package-lock.json b/package-lock.json index 2979bcb9b..82d3d9b56 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,16 +1,16 @@ { "name": "@newfold-labs/wp-module-onboarding", - "version": "2.3.2", + "version": "2.3.3", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@newfold-labs/wp-module-onboarding", - "version": "2.3.2", + "version": "2.3.3", "license": "GPL-2.0-or-later", "dependencies": { "@newfold-labs/js-utility-ui-analytics": "1.2.0", - "@newfold-labs/wp-module-facebook": "^1.0.7", + "@newfold-labs/wp-module-facebook": "^1.0.9", "@wordpress/interface": "^5.25.0", "@wordpress/style-engine": "^0.11.0", "bytes": "^3.1.2", @@ -3135,9 +3135,9 @@ } }, "node_modules/@newfold-labs/wp-module-facebook": { - "version": "1.0.7", - "resolved": "https://npm.pkg.github.com/download/@newfold-labs/wp-module-facebook/1.0.7/47dab055e53ab8134c19943d7a60b677b9c940b6", - "integrity": "sha512-XILcb7QA8VkKcPDbMRQs/Q/SwIU/pt9u+br8F1E+CmSYZg51GkO0zL+D496hz1NcFULlVgwslXnDYBZzQd+Jyg==", + "version": "1.0.9", + "resolved": "https://npm.pkg.github.com/download/@newfold-labs/wp-module-facebook/1.0.9/c04ff0df31ea018f728d252284d52ba5ee675cc2", + "integrity": "sha512-o4x0rv8v1Fo1ueBgPM10WHuP/mjrDfWqzYbpHB/CzRFuhbkWUsGwNx/37Er26t81ZJxYJOjNH1/oNlSL3orILg==", "license": "GPL-2.0-or-later", "dependencies": { "@newfold-labs/wp-module-runtime": "^1.0.0", @@ -24413,9 +24413,9 @@ } }, "@newfold-labs/wp-module-facebook": { - "version": "1.0.7", - "resolved": "https://npm.pkg.github.com/download/@newfold-labs/wp-module-facebook/1.0.7/47dab055e53ab8134c19943d7a60b677b9c940b6", - "integrity": "sha512-XILcb7QA8VkKcPDbMRQs/Q/SwIU/pt9u+br8F1E+CmSYZg51GkO0zL+D496hz1NcFULlVgwslXnDYBZzQd+Jyg==", + "version": "1.0.9", + "resolved": "https://npm.pkg.github.com/download/@newfold-labs/wp-module-facebook/1.0.9/c04ff0df31ea018f728d252284d52ba5ee675cc2", + "integrity": "sha512-o4x0rv8v1Fo1ueBgPM10WHuP/mjrDfWqzYbpHB/CzRFuhbkWUsGwNx/37Er26t81ZJxYJOjNH1/oNlSL3orILg==", "requires": { "@newfold-labs/wp-module-runtime": "^1.0.0", "@wordpress/api-fetch": "^6.42.0", diff --git a/package.json b/package.json index 9d17431c9..7cfeac0ca 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@newfold-labs/wp-module-onboarding", - "version": "2.3.2", + "version": "2.3.3", "description": "Next-generation WordPress Onboarding for WordPress sites at Newfold Digital.", "license": "GPL-2.0-or-later", "private": true, @@ -30,7 +30,7 @@ }, "dependencies": { "@newfold-labs/js-utility-ui-analytics": "1.2.0", - "@newfold-labs/wp-module-facebook": "^1.0.7", + "@newfold-labs/wp-module-facebook": "^1.0.9", "@wordpress/interface": "^5.25.0", "@wordpress/style-engine": "^0.11.0", "bytes": "^3.1.2",