plugin updates

This commit is contained in:
Tony Volpe
2024-06-17 14:48:11 -04:00
parent ecc5fbf831
commit 3751a5a1a6
1318 changed files with 91130 additions and 52250 deletions
@@ -0,0 +1 @@
"use strict";(globalThis.webpackChunk_wcAdmin_webpackJsonp=globalThis.webpackChunk_wcAdmin_webpackJsonp||[]).push([[1090],{11090:(e,o,t)=>{t.r(o),t.d(o,{default:()=>_});var r=t(69307),s=t(65736),n=t(86020),c=t(51393),i=t(14599),l=t(40182),d=t(16686);const a=({shouldTourBeShown:e,dismissModal:o})=>{const{isNewUser:t,loadingPublishedProductsCount:a}=(0,d.E)();(0,r.useEffect)((()=>{e&&(0,i.recordEvent)("block_product_editor_spotlight_view")}),[e]);const[u,p]=(0,r.useState)(!1),{maybeShowFeedbackBar:m}=(0,c.__experimentalUseFeedbackBar)();if(a)return null;if(u)return(0,r.createElement)(l.Z,{isNewUser:t,onCloseGuide:(e,t)=>{o(),"finish"===t?(0,i.recordEvent)("block_product_editor_spotlight_tell_me_more_click"):(0,i.recordEvent)("block_product_editor_spotlight_dismissed",{current_page:e+1}),p(!1),m()}});if(e){const{heading:e,description:c}={heading:t?(0,s.__)("Meet the product editing form","woocommerce"):(0,s.__)("Welcome to the new product form!","woocommerce"),description:t?(0,s.__)("Discover the product form's unique features with a quick overview of what's included.","woocommerce"):(0,s.__)("Discover its new features and improvements with a quick overview of what's included.","woocommerce")};return(0,r.createElement)(n.TourKit,{config:{steps:[{meta:{name:"woocommerce-block-editor-tour",primaryButton:{text:(0,s.__)("View highlights","woocommerce")},descriptions:{desktop:c},heading:(0,r.createElement)(r.Fragment,null,(0,r.createElement)("span",null,e),(0,r.createElement)(n.Pill,null,(0,s.__)("Beta","woocommerce")))},referenceElements:{desktop:"#adminmenuback"}}],closeHandler:(e,t,r)=>{"done-btn"===r?((0,i.recordEvent)("block_product_editor_spotlight_view_highlights"),p(!0)):(o(),(0,i.recordEvent)("block_product_editor_spotlight_dismissed",{current_page:0}),m())},options:{effects:{arrowIndicator:!1,overlay:!1,liveResize:{rootElementSelector:"#adminmenuback",resize:!0}},portalParentElement:document.getElementById("wpbody"),popperModifiers:[{name:"bottom-left",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.top="auto",e.styles.popper.left="auto",e.styles.popper.bottom="10px",e.styles.popper.transform="translate3d(10px, 0px, 0px)"}}],classNames:"woocommerce-block-editor-tourkit"}}})}return null};var u=t(67221),p=t(9818);const m="woocommerce_block_product_tour_shown",_=()=>{const e=(()=>{const{updateOptions:e}=(0,p.useDispatch)(u.OPTIONS_STORE_NAME),{shouldTourBeShown:o}=(0,p.useSelect)((e=>{const{getOption:o,hasFinishedResolution:t}=e(u.OPTIONS_STORE_NAME);return{shouldTourBeShown:!("yes"===o(m)||!t("getOption",[m]))}}));return{dismissModal:()=>{e({[m]:"yes"})},shouldTourBeShown:o}})();return(0,r.createElement)(a,e)}}}]);
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,6 @@
/*!
* Reconnecting WebSocket
* by Pedro Ladaria <pedro.ladaria@gmail.com>
* https://github.com/pladaria/reconnecting-websocket
* License MIT
*/
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
"use strict";(globalThis.webpackChunk_wcAdmin_webpackJsonp=globalThis.webpackChunk_wcAdmin_webpackJsonp||[]).push([[7844],{33235:(e,a,s)=>{s.r(a),s.d(a,{SetupTasksPanel:()=>t,default:()=>l});var c=s(69307),n=s(15856);const t=({query:e})=>(0,c.createElement)("div",{className:"woocommerce-setup-panel"},(0,c.createElement)(n.TaskLists,{query:e})),l=t}}]);
"use strict";(globalThis.webpackChunk_wcAdmin_webpackJsonp=globalThis.webpackChunk_wcAdmin_webpackJsonp||[]).push([[7844],{33235:(e,a,s)=>{s.r(a),s.d(a,{SetupTasksPanel:()=>t,default:()=>l});var c=s(69307),n=s(47529);const t=({query:e})=>(0,c.createElement)("div",{className:"woocommerce-setup-panel"},(0,c.createElement)(n.TaskLists,{query:e})),l=t}}]);
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
"use strict";(globalThis.webpackChunk_wcAdmin_webpackJsonp=globalThis.webpackChunk_wcAdmin_webpackJsonp||[]).push([[7387],{38485:(e,t,o)=>{o.r(t),o.d(t,{default:()=>g});var r=o(69307),n=o(51393),c=o(14599),s=o(98817),i=o(85597),l=o(46530),d=o(9818),u=o(65736),a=o(86020),p=o(40182),m=o(16686);const _=({shouldTourBeShown:e,dismissModal:t})=>{const{isNewUser:o,loadingPublishedProductsCount:s}=(0,m.E)();(0,r.useEffect)((()=>{e&&(0,c.recordEvent)("block_product_editor_spotlight_view")}),[e]);const[i,l]=(0,r.useState)(!1),{maybeShowFeedbackBar:d}=(0,n.__experimentalUseFeedbackBar)();if(s)return null;if(i)return(0,r.createElement)(p.Z,{isNewUser:o,onCloseGuide:(e,o)=>{t(),"finish"===o?(0,c.recordEvent)("block_product_editor_spotlight_tell_me_more_click"):(0,c.recordEvent)("block_product_editor_spotlight_dismissed",{current_page:e+1}),l(!1),d()}});if(e){const{heading:e,description:n}={heading:o?(0,u.__)("Meet the product editing form","woocommerce"):(0,u.__)("Welcome to the new product form!","woocommerce"),description:o?(0,u.__)("Discover the product form's unique features with a quick overview of what's included.","woocommerce"):(0,u.__)("Discover its new features and improvements with a quick overview of what's included.","woocommerce")};return(0,r.createElement)(a.TourKit,{config:{steps:[{meta:{name:"woocommerce-block-editor-tour",primaryButton:{text:(0,u.__)("View highlights","woocommerce")},descriptions:{desktop:n},heading:(0,r.createElement)(r.Fragment,null,(0,r.createElement)("span",null,e),(0,r.createElement)(a.Pill,null,(0,u.__)("Beta","woocommerce")))},referenceElements:{desktop:"#adminmenuback"}}],closeHandler:(e,o,r)=>{"done-btn"===r?((0,c.recordEvent)("block_product_editor_spotlight_view_highlights"),l(!0)):(t(),(0,c.recordEvent)("block_product_editor_spotlight_dismissed",{current_page:0}),d())},options:{effects:{arrowIndicator:!1,overlay:!1,liveResize:{rootElementSelector:"#adminmenuback",resize:!0}},portalParentElement:document.getElementById("wpbody"),popperModifiers:[{name:"bottom-left",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.top="auto",e.styles.popper.left="auto",e.styles.popper.bottom="10px",e.styles.popper.transform="translate3d(10px, 0px, 0px)"}}],classNames:"woocommerce-block-editor-tourkit"}}})}return null};var h=o(67221);const E="woocommerce_block_product_tour_shown",w=()=>{const e=(()=>{const{updateOptions:e}=(0,d.useDispatch)(h.OPTIONS_STORE_NAME),{shouldTourBeShown:t}=(0,d.useSelect)((e=>{const{getOption:t,hasFinishedResolution:o}=e(h.OPTIONS_STORE_NAME);return{shouldTourBeShown:!("yes"===t(E)||!o("getOption",[E]))}}));return{dismissModal:()=>{e({[E]:"yes"})},shouldTourBeShown:t}})();return(0,r.createElement)(_,e)};var f=o(69220);function g(){const{productId:e}=(0,i.UO)(),t=function(e){const{saveEntityRecord:t}=(0,d.useDispatch)("core"),[o,c]=(0,r.useState)(void 0);return(0,r.useEffect)((()=>{(e?(0,d.resolveSelect)("core").getEntityRecord("postType","product",Number.parseInt(e,10)):t("postType","product",{title:n.AUTO_DRAFT_NAME,status:"auto-draft"})).then((e=>{c(e)})).catch((e=>{throw c(void 0),e}))}),[e]),o}(e);return(0,r.useEffect)((()=>{(0,s.registerPlugin)("wc-admin-product-editor",{scope:"woocommerce-product-block-editor",render:()=>(0,r.useContext)(n.__experimentalEditorLoadingContext)?null:(0,r.createElement)(r.Fragment,null,(0,r.createElement)(n.__experimentalWooProductMoreMenuItem,null,(({onClose:e})=>(0,r.createElement)(f.e,{onClose:e}))),(0,r.createElement)(l.WooFooterItem,null,(0,r.createElement)(r.Fragment,null,(0,r.createElement)(n.__experimentalProductMVPCESFooter,{productType:"product"}),(0,r.createElement)(n.__experimentalProductMVPFeedbackModalContainer,{productId:e?parseInt(e,10):void 0}))),(0,r.createElement)(w,null))});const t=(0,n.__experimentalInitBlocks)();return()=>{(0,s.unregisterPlugin)("wc-admin-more-menu"),t()}}),[e]),(0,r.useEffect)((function(){e?(0,c.recordEvent)("product_edit_view",{source:n.TRACKS_SOURCE,product_id:e}):(0,c.recordEvent)("product_add_view",{source:n.TRACKS_SOURCE})}),[e]),(0,r.createElement)(r.Fragment,null,(0,r.createElement)(n.__experimentalEditor,{product:t}))}(0,n.productApiFetchMiddleware)()}}]);
"use strict";(globalThis.webpackChunk_wcAdmin_webpackJsonp=globalThis.webpackChunk_wcAdmin_webpackJsonp||[]).push([[7387],{71845:(e,t,r)=>{r.r(t),r.d(t,{default:()=>_});var n=r(69307),o=r(51393),c=r(86020),l=r(14599),d=r(99196),a=r(98817),u=r(85597),i=r(46530),s=r(9818),p=r(69220);(0,o.productEditorHeaderApiFetchMiddleware)(),(0,o.productApiFetchMiddleware)();const m=(0,d.lazy)((()=>r.e(1090).then(r.bind(r,11090)))),E=(0,d.lazy)((()=>Promise.resolve().then(r.t.bind(r,51393,23)).then((e=>({default:e.__experimentalProductMVPFeedbackModalContainer})))));function _(){const{productId:e}=(0,u.UO)(),t=function(e){const{saveEntityRecord:t}=(0,s.useDispatch)("core"),[r,c]=(0,n.useState)(void 0);return(0,n.useEffect)((()=>{(e?(0,s.resolveSelect)("core").getEntityRecord("postType","product",Number.parseInt(e,10)):t("postType","product",{title:o.AUTO_DRAFT_NAME,status:"auto-draft"})).then((e=>{c(e)})).catch((e=>{throw c(void 0),e}))}),[e]),r}(e);return(0,d.useEffect)((()=>{document.body.classList.add("is-product-editor"),(0,a.registerPlugin)("wc-admin-product-editor",{scope:"woocommerce-product-block-editor",render:()=>(0,d.useContext)(o.__experimentalEditorLoadingContext)?null:(0,n.createElement)(n.Fragment,null,(0,n.createElement)(o.__experimentalWooProductMoreMenuItem,null,(({onClose:e})=>(0,n.createElement)(p.e,{onClose:e}))),(0,n.createElement)(i.WooFooterItem,null,(0,n.createElement)(n.Fragment,null,(0,n.createElement)(o.__experimentalProductMVPCESFooter,{productType:"product"}),(0,n.createElement)(d.Suspense,{fallback:(0,n.createElement)(c.Spinner,null)},(0,n.createElement)(E,{productId:e?parseInt(e,10):void 0})))),(0,n.createElement)(d.Suspense,{fallback:(0,n.createElement)(c.Spinner,null)},(0,n.createElement)(m,null)))});const t=(0,o.__experimentalInitBlocks)();return()=>{document.body.classList.remove("is-product-editor"),(0,a.unregisterPlugin)("wc-admin-more-menu"),t()}}),[e]),(0,d.useEffect)((function(){e?(0,l.recordEvent)("product_edit_view",{source:o.TRACKS_SOURCE,product_id:e}):(0,l.recordEvent)("product_add_view",{source:o.TRACKS_SOURCE})}),[e]),(0,n.createElement)(n.Fragment,null,(0,n.createElement)(o.__experimentalEditor,{product:t}))}}}]);
File diff suppressed because one or more lines are too long