@wix/cli-app 1.1.9 → 1.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/{CreateVersionCommand-HRPRVABQ.js → CreateVersionCommand-ZED4C5IK.js} +2 -2
- package/build/DevCommand-EOGURH5I.js +4 -0
- package/build/DevCommand-EOGURH5I.js.map +1 -0
- package/build/GenerateCommand-2GP5ZDIG.js +99 -0
- package/build/GenerateCommand-2GP5ZDIG.js.map +1 -0
- package/build/PreviewCommand-KR2XGCFF.js +4 -0
- package/build/{ServeCommand-2XBFLJAW.js → ServeCommand-UAJS2PA6.js} +2 -2
- package/build/{build-TCFCF3FL.js → build-3JHPJZJI.js} +2 -2
- package/build/{chunk-DGISEOUY.js → chunk-355OHM37.js} +2 -2
- package/build/{chunk-P5QI4AKT.js → chunk-3RXBIY4X.js} +2 -2
- package/build/{chunk-S4GPIPJ3.js → chunk-BASMMNVW.js} +2 -2
- package/build/{chunk-MZF5I7OU.js → chunk-BSEV5LHK.js} +2 -2
- package/build/{chunk-RDG3FN7Q.js → chunk-BYI27HUJ.js} +2 -2
- package/build/{chunk-YSG4RLTD.js → chunk-DYVKPZDH.js} +10 -10
- package/build/{chunk-YSG4RLTD.js.map → chunk-DYVKPZDH.js.map} +1 -1
- package/build/chunk-F35NSBUP.js +4 -0
- package/build/chunk-F35NSBUP.js.map +1 -0
- package/build/chunk-J3Q3DHMD.js +4 -0
- package/build/chunk-J3Q3DHMD.js.map +1 -0
- package/build/{chunk-KN6FMDRW.js → chunk-JBF5X4QY.js} +2 -2
- package/build/chunk-JCBXLFRW.js +4 -0
- package/build/chunk-JCBXLFRW.js.map +1 -0
- package/build/{chunk-UBUOOVV3.js → chunk-LIHTNDQX.js} +2 -2
- package/build/chunk-LIHTNDQX.js.map +1 -0
- package/build/{chunk-HUG7YXDC.js → chunk-LW6L3WY3.js} +3 -3
- package/build/chunk-LW6L3WY3.js.map +1 -0
- package/build/{chunk-X2ODJQS5.js → chunk-M4WZBOPY.js} +9 -11
- package/build/{chunk-X2ODJQS5.js.map → chunk-M4WZBOPY.js.map} +1 -1
- package/build/chunk-NXZW6FWB.js +27 -0
- package/build/chunk-NXZW6FWB.js.map +1 -0
- package/build/chunk-OTVLQNCK.js +4 -0
- package/build/chunk-OXEFT2HH.js +4 -0
- package/build/chunk-OXEFT2HH.js.map +1 -0
- package/build/{chunk-JBYJ7JWH.js → chunk-QE2ZMSXG.js} +2 -2
- package/build/chunk-T2HZ7OVC.js +4 -0
- package/build/chunk-T2HZ7OVC.js.map +1 -0
- package/build/{chunk-AQMCJTIA.js → chunk-WK54N4GD.js} +2 -2
- package/build/index.js +1 -1
- package/build/{preview-M6ZJKLI4.js → preview-EFIEGFXF.js} +2 -2
- package/build/{render-command-TZ27VUBD.js → render-command-UUN7DFLA.js} +2 -2
- package/package.json +4 -3
- package/templates/dashboard-menu-plugin/menu.json.ejs +4 -0
- package/templates/dashboard-modal/modal.json.ejs +4 -0
- package/templates/dashboard-modal/modal.tsx.ejs +39 -0
- package/templates/dashboard-page-plugin/plugin.json.ejs +4 -0
- package/templates/dashboard-page-plugin/plugin.tsx.ejs +44 -0
- package/build/DevCommand-VXSOOPGI.js +0 -4
- package/build/DevCommand-VXSOOPGI.js.map +0 -1
- package/build/GenerateCommand-LES5RWP7.js +0 -99
- package/build/GenerateCommand-LES5RWP7.js.map +0 -1
- package/build/PreviewCommand-7WGLANH2.js +0 -4
- package/build/chunk-4PMM4VH2.js +0 -4
- package/build/chunk-4PMM4VH2.js.map +0 -1
- package/build/chunk-AUZPEJRN.js +0 -4
- package/build/chunk-AUZPEJRN.js.map +0 -1
- package/build/chunk-HI6L2JY4.js +0 -4
- package/build/chunk-HI6L2JY4.js.map +0 -1
- package/build/chunk-HUG7YXDC.js.map +0 -1
- package/build/chunk-KQHAMVTM.js +0 -27
- package/build/chunk-KQHAMVTM.js.map +0 -1
- package/build/chunk-LULXOULI.js +0 -4
- package/build/chunk-LULXOULI.js.map +0 -1
- package/build/chunk-NR3APHWL.js +0 -4
- package/build/chunk-OU5SEGSI.js +0 -4
- package/build/chunk-OU5SEGSI.js.map +0 -1
- package/build/chunk-UBUOOVV3.js.map +0 -1
- /package/build/{CreateVersionCommand-HRPRVABQ.js.map → CreateVersionCommand-ZED4C5IK.js.map} +0 -0
- /package/build/{PreviewCommand-7WGLANH2.js.map → PreviewCommand-KR2XGCFF.js.map} +0 -0
- /package/build/{ServeCommand-2XBFLJAW.js.map → ServeCommand-UAJS2PA6.js.map} +0 -0
- /package/build/{build-TCFCF3FL.js.map → build-3JHPJZJI.js.map} +0 -0
- /package/build/{chunk-DGISEOUY.js.map → chunk-355OHM37.js.map} +0 -0
- /package/build/{chunk-P5QI4AKT.js.map → chunk-3RXBIY4X.js.map} +0 -0
- /package/build/{chunk-S4GPIPJ3.js.map → chunk-BASMMNVW.js.map} +0 -0
- /package/build/{chunk-MZF5I7OU.js.map → chunk-BSEV5LHK.js.map} +0 -0
- /package/build/{chunk-RDG3FN7Q.js.map → chunk-BYI27HUJ.js.map} +0 -0
- /package/build/{chunk-KN6FMDRW.js.map → chunk-JBF5X4QY.js.map} +0 -0
- /package/build/{chunk-NR3APHWL.js.map → chunk-OTVLQNCK.js.map} +0 -0
- /package/build/{chunk-JBYJ7JWH.js.map → chunk-QE2ZMSXG.js.map} +0 -0
- /package/build/{chunk-AQMCJTIA.js.map → chunk-WK54N4GD.js.map} +0 -0
- /package/build/{preview-M6ZJKLI4.js.map → preview-EFIEGFXF.js.map} +0 -0
- /package/build/{render-command-TZ27VUBD.js.map → render-command-UUN7DFLA.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createRequire as _createRequire } from 'node:module';
|
|
2
2
|
const require = _createRequire(import.meta.url);
|
|
3
|
-
import{a as Xs,b as $s}from"./chunk-
|
|
3
|
+
import{a as Xs,b as $s}from"./chunk-JBF5X4QY.js";import{$ as un,O as Zs,W as eo,Y as to,_ as yi,a as Ws,aa as mi,ba as ro,c as Gr,ca as io,d as jr,da as ao,fa as ln,ha as Ai,ia as Ci,ja as fn,ka as no,la as so}from"./chunk-DYVKPZDH.js";import{a as Le,c as F,e as ra,h as S}from"./chunk-HFDLXX7R.js";var Et=F(yn=>{"use strict";S();yn.fromCallback=function(e){return Object.defineProperty(function(...t){if(typeof t[t.length-1]=="function")e.apply(this,t);else return new Promise((i,r)=>{e.call(this,...t,(a,n)=>a!=null?r(a):i(n))})},"name",{value:e.name})};yn.fromPromise=function(e){return Object.defineProperty(function(...t){let i=t[t.length-1];if(typeof i!="function")return e.apply(this,t);e.apply(this,t.slice(0,-1)).then(r=>i(null,r),i)},"name",{value:e.name})}});var po=F((mA,ho)=>{"use strict";S();var hr=Le("constants"),ch=process.cwd,na=null,hh=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return na||(na=ch.call(process)),na};try{process.cwd()}catch{}typeof process.chdir=="function"&&(mn=process.chdir,process.chdir=function(e){na=null,mn.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,mn));var mn;ho.exports=ph;function ph(e){hr.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&t(e),e.lutimes||i(e),e.chown=n(e.chown),e.fchown=n(e.fchown),e.lchown=n(e.lchown),e.chmod=r(e.chmod),e.fchmod=r(e.fchmod),e.lchmod=r(e.lchmod),e.chownSync=s(e.chownSync),e.fchownSync=s(e.fchownSync),e.lchownSync=s(e.lchownSync),e.chmodSync=a(e.chmodSync),e.fchmodSync=a(e.fchmodSync),e.lchmodSync=a(e.lchmodSync),e.stat=o(e.stat),e.fstat=o(e.fstat),e.lstat=o(e.lstat),e.statSync=u(e.statSync),e.fstatSync=u(e.fstatSync),e.lstatSync=u(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(f,c,p){p&&process.nextTick(p)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(f,c,p,m){m&&process.nextTick(m)},e.lchownSync=function(){}),hh==="win32"&&(e.rename=typeof e.rename!="function"?e.rename:function(f){function c(p,m,v){var C=Date.now(),E=0;f(p,m,function B(w){if(w&&(w.code==="EACCES"||w.code==="EPERM"||w.code==="EBUSY")&&Date.now()-C<6e4){setTimeout(function(){e.stat(m,function(T,U){T&&T.code==="ENOENT"?f(p,m,B):v(w)})},E),E<100&&(E+=10);return}v&&v(w)})}return Object.setPrototypeOf&&Object.setPrototypeOf(c,f),c}(e.rename)),e.read=typeof e.read!="function"?e.read:function(f){function c(p,m,v,C,E,B){var w;if(B&&typeof B=="function"){var T=0;w=function(U,P,Q){if(U&&U.code==="EAGAIN"&&T<10)return T++,f.call(e,p,m,v,C,E,w);B.apply(this,arguments)}}return f.call(e,p,m,v,C,E,w)}return Object.setPrototypeOf&&Object.setPrototypeOf(c,f),c}(e.read),e.readSync=typeof e.readSync!="function"?e.readSync:function(f){return function(c,p,m,v,C){for(var E=0;;)try{return f.call(e,c,p,m,v,C)}catch(B){if(B.code==="EAGAIN"&&E<10){E++;continue}throw B}}}(e.readSync);function t(f){f.lchmod=function(c,p,m){f.open(c,hr.O_WRONLY|hr.O_SYMLINK,p,function(v,C){if(v){m&&m(v);return}f.fchmod(C,p,function(E){f.close(C,function(B){m&&m(E||B)})})})},f.lchmodSync=function(c,p){var m=f.openSync(c,hr.O_WRONLY|hr.O_SYMLINK,p),v=!0,C;try{C=f.fchmodSync(m,p),v=!1}finally{if(v)try{f.closeSync(m)}catch{}else f.closeSync(m)}return C}}function i(f){hr.hasOwnProperty("O_SYMLINK")&&f.futimes?(f.lutimes=function(c,p,m,v){f.open(c,hr.O_SYMLINK,function(C,E){if(C){v&&v(C);return}f.futimes(E,p,m,function(B){f.close(E,function(w){v&&v(B||w)})})})},f.lutimesSync=function(c,p,m){var v=f.openSync(c,hr.O_SYMLINK),C,E=!0;try{C=f.futimesSync(v,p,m),E=!1}finally{if(E)try{f.closeSync(v)}catch{}else f.closeSync(v)}return C}):f.futimes&&(f.lutimes=function(c,p,m,v){v&&process.nextTick(v)},f.lutimesSync=function(){})}function r(f){return f&&function(c,p,m){return f.call(e,c,p,function(v){l(v)&&(v=null),m&&m.apply(this,arguments)})}}function a(f){return f&&function(c,p){try{return f.call(e,c,p)}catch(m){if(!l(m))throw m}}}function n(f){return f&&function(c,p,m,v){return f.call(e,c,p,m,function(C){l(C)&&(C=null),v&&v.apply(this,arguments)})}}function s(f){return f&&function(c,p,m){try{return f.call(e,c,p,m)}catch(v){if(!l(v))throw v}}}function o(f){return f&&function(c,p,m){typeof p=="function"&&(m=p,p=null);function v(C,E){E&&(E.uid<0&&(E.uid+=4294967296),E.gid<0&&(E.gid+=4294967296)),m&&m.apply(this,arguments)}return p?f.call(e,c,p,v):f.call(e,c,v)}}function u(f){return f&&function(c,p){var m=p?f.call(e,c,p):f.call(e,c);return m&&(m.uid<0&&(m.uid+=4294967296),m.gid<0&&(m.gid+=4294967296)),m}}function l(f){if(!f||f.code==="ENOSYS")return!0;var c=!process.getuid||process.getuid()!==0;return!!(c&&(f.code==="EINVAL"||f.code==="EPERM"))}}});var yo=F((CA,vo)=>{"use strict";S();var go=Le("stream").Stream;vo.exports=dh;function dh(e){return{ReadStream:t,WriteStream:i};function t(r,a){if(!(this instanceof t))return new t(r,a);go.call(this);var n=this;this.path=r,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,a=a||{};for(var s=Object.keys(a),o=0,u=s.length;o<u;o++){var l=s[o];this[l]=a[l]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){n._read()});return}e.open(this.path,this.flags,this.mode,function(f,c){if(f){n.emit("error",f),n.readable=!1;return}n.fd=c,n.emit("open",c),n._read()})}function i(r,a){if(!(this instanceof i))return new i(r,a);go.call(this),this.path=r,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,a=a||{};for(var n=Object.keys(a),s=0,o=n.length;s<o;s++){var u=n[s];this[u]=a[u]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var Ao=F((xA,mo)=>{"use strict";S();mo.exports=vh;var gh=Object.getPrototypeOf||function(e){return e.__proto__};function vh(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var t={__proto__:gh(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(e,i))}),t}});var dt=F((IA,En)=>{"use strict";S();var Qe=Le("fs"),yh=po(),mh=yo(),Ah=Ao(),sa=Le("util"),Je,ua;typeof Symbol=="function"&&typeof Symbol.for=="function"?(Je=Symbol.for("graceful-fs.queue"),ua=Symbol.for("graceful-fs.previous")):(Je="___graceful-fs.queue",ua="___graceful-fs.previous");function Ch(){}function xo(e,t){Object.defineProperty(e,Je,{get:function(){return t}})}var Rr=Ch;sa.debuglog?Rr=sa.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Rr=function(){var e=sa.format.apply(sa,arguments);e="GFS4: "+e.split(/\n/).join(`
|
|
4
4
|
GFS4: `),console.error(e)});Qe[Je]||(Co=global[Je]||[],xo(Qe,Co),Qe.close=function(e){function t(i,r){return e.call(Qe,i,function(a){a||Eo(),typeof r=="function"&&r.apply(this,arguments)})}return Object.defineProperty(t,ua,{value:e}),t}(Qe.close),Qe.closeSync=function(e){function t(i){e.apply(Qe,arguments),Eo()}return Object.defineProperty(t,ua,{value:e}),t}(Qe.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Rr(Qe[Je]),Le("assert").equal(Qe[Je].length,0)}));var Co;global[Je]||xo(global,Qe[Je]);En.exports=An(Ah(Qe));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Qe.__patched&&(En.exports=An(Qe),Qe.__patched=!0);function An(e){yh(e),e.gracefulify=An,e.createReadStream=P,e.createWriteStream=Q;var t=e.readFile;e.readFile=i;function i(H,z,Y){return typeof z=="function"&&(Y=z,z=null),re(H,z,Y);function re(ye,Ee,$,ie){return t(ye,Ee,function(V){V&&(V.code==="EMFILE"||V.code==="ENFILE")?zr([re,[ye,Ee,$],V,ie||Date.now(),Date.now()]):typeof $=="function"&&$.apply(this,arguments)})}}var r=e.writeFile;e.writeFile=a;function a(H,z,Y,re){return typeof Y=="function"&&(re=Y,Y=null),ye(H,z,Y,re);function ye(Ee,$,ie,V,_e){return r(Ee,$,ie,function(xe){xe&&(xe.code==="EMFILE"||xe.code==="ENFILE")?zr([ye,[Ee,$,ie,V],xe,_e||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}var n=e.appendFile;n&&(e.appendFile=s);function s(H,z,Y,re){return typeof Y=="function"&&(re=Y,Y=null),ye(H,z,Y,re);function ye(Ee,$,ie,V,_e){return n(Ee,$,ie,function(xe){xe&&(xe.code==="EMFILE"||xe.code==="ENFILE")?zr([ye,[Ee,$,ie,V],xe,_e||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}var o=e.copyFile;o&&(e.copyFile=u);function u(H,z,Y,re){return typeof Y=="function"&&(re=Y,Y=0),ye(H,z,Y,re);function ye(Ee,$,ie,V,_e){return o(Ee,$,ie,function(xe){xe&&(xe.code==="EMFILE"||xe.code==="ENFILE")?zr([ye,[Ee,$,ie,V],xe,_e||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}var l=e.readdir;e.readdir=c;var f=/^v[0-5]\./;function c(H,z,Y){typeof z=="function"&&(Y=z,z=null);var re=f.test(process.version)?function($,ie,V,_e){return l($,ye($,ie,V,_e))}:function($,ie,V,_e){return l($,ie,ye($,ie,V,_e))};return re(H,z,Y);function ye(Ee,$,ie,V){return function(_e,xe){_e&&(_e.code==="EMFILE"||_e.code==="ENFILE")?zr([re,[Ee,$,ie],_e,V||Date.now(),Date.now()]):(xe&&xe.sort&&xe.sort(),typeof ie=="function"&&ie.call(this,_e,xe))}}}if(process.version.substr(0,4)==="v0.8"){var p=mh(e);B=p.ReadStream,T=p.WriteStream}var m=e.ReadStream;m&&(B.prototype=Object.create(m.prototype),B.prototype.open=w);var v=e.WriteStream;v&&(T.prototype=Object.create(v.prototype),T.prototype.open=U),Object.defineProperty(e,"ReadStream",{get:function(){return B},set:function(H){B=H},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return T},set:function(H){T=H},enumerable:!0,configurable:!0});var C=B;Object.defineProperty(e,"FileReadStream",{get:function(){return C},set:function(H){C=H},enumerable:!0,configurable:!0});var E=T;Object.defineProperty(e,"FileWriteStream",{get:function(){return E},set:function(H){E=H},enumerable:!0,configurable:!0});function B(H,z){return this instanceof B?(m.apply(this,arguments),this):B.apply(Object.create(B.prototype),arguments)}function w(){var H=this;ne(H.path,H.flags,H.mode,function(z,Y){z?(H.autoClose&&H.destroy(),H.emit("error",z)):(H.fd=Y,H.emit("open",Y),H.read())})}function T(H,z){return this instanceof T?(v.apply(this,arguments),this):T.apply(Object.create(T.prototype),arguments)}function U(){var H=this;ne(H.path,H.flags,H.mode,function(z,Y){z?(H.destroy(),H.emit("error",z)):(H.fd=Y,H.emit("open",Y))})}function P(H,z){return new e.ReadStream(H,z)}function Q(H,z){return new e.WriteStream(H,z)}var te=e.open;e.open=ne;function ne(H,z,Y,re){return typeof Y=="function"&&(re=Y,Y=null),ye(H,z,Y,re);function ye(Ee,$,ie,V,_e){return te(Ee,$,ie,function(xe,Oe){xe&&(xe.code==="EMFILE"||xe.code==="ENFILE")?zr([ye,[Ee,$,ie,V],xe,_e||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}return e}function zr(e){Rr("ENQUEUE",e[0].name,e[1]),Qe[Je].push(e),Cn()}var oa;function Eo(){for(var e=Date.now(),t=0;t<Qe[Je].length;++t)Qe[Je][t].length>2&&(Qe[Je][t][3]=e,Qe[Je][t][4]=e);Cn()}function Cn(){if(clearTimeout(oa),oa=void 0,Qe[Je].length!==0){var e=Qe[Je].shift(),t=e[0],i=e[1],r=e[2],a=e[3],n=e[4];if(a===void 0)Rr("RETRY",t.name,i),t.apply(null,i);else if(Date.now()-a>=6e4){Rr("TIMEOUT",t.name,i);var s=i.pop();typeof s=="function"&&s.call(null,r)}else{var o=Date.now()-n,u=Math.max(n-a,1),l=Math.min(u*1.2,100);o>=l?(Rr("RETRY",t.name,i),t.apply(null,i.concat([a]))):Qe[Je].push(e)}oa===void 0&&(oa=setTimeout(Cn,0))}}});var Dr=F(pr=>{"use strict";S();var So=Et().fromCallback,xt=dt(),Eh=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(e=>typeof xt[e]=="function");Object.assign(pr,xt);Eh.forEach(e=>{pr[e]=So(xt[e])});pr.exists=function(e,t){return typeof t=="function"?xt.exists(e,t):new Promise(i=>xt.exists(e,i))};pr.read=function(e,t,i,r,a,n){return typeof n=="function"?xt.read(e,t,i,r,a,n):new Promise((s,o)=>{xt.read(e,t,i,r,a,(u,l,f)=>{if(u)return o(u);s({bytesRead:l,buffer:f})})})};pr.write=function(e,t,...i){return typeof i[i.length-1]=="function"?xt.write(e,t,...i):new Promise((r,a)=>{xt.write(e,t,...i,(n,s,o)=>{if(n)return a(n);r({bytesWritten:s,buffer:o})})})};typeof xt.writev=="function"&&(pr.writev=function(e,t,...i){return typeof i[i.length-1]=="function"?xt.writev(e,t,...i):new Promise((r,a)=>{xt.writev(e,t,...i,(n,s,o)=>{if(n)return a(n);r({bytesWritten:s,buffers:o})})})});typeof xt.realpath.native=="function"?pr.realpath.native=So(xt.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")});var Bo=F((wA,Io)=>{"use strict";S();var xh=Le("path");Io.exports.checkPath=function(t){if(process.platform==="win32"&&/[<>:"|?*]/.test(t.replace(xh.parse(t).root,""))){let r=new Error(`Path contains invalid characters: ${t}`);throw r.code="EINVAL",r}}});var _o=F((NA,xn)=>{"use strict";S();var bo=Dr(),{checkPath:To}=Bo(),wo=e=>{let t={mode:511};return typeof e=="number"?e:{...t,...e}.mode};xn.exports.makeDir=async(e,t)=>(To(e),bo.mkdir(e,{mode:wo(t),recursive:!0}));xn.exports.makeDirSync=(e,t)=>(To(e),bo.mkdirSync(e,{mode:wo(t),recursive:!0}))});var Mt=F((LA,No)=>{"use strict";S();var Sh=Et().fromPromise,{makeDir:Ih,makeDirSync:Sn}=_o(),In=Sh(Ih);No.exports={mkdirs:In,mkdirsSync:Sn,mkdirp:In,mkdirpSync:Sn,ensureDir:In,ensureDirSync:Sn}});var dr=F((DA,Lo)=>{"use strict";S();var Bh=Et().fromPromise,ko=Dr();function bh(e){return ko.access(e).then(()=>!0).catch(()=>!1)}Lo.exports={pathExists:Bh(bh),pathExistsSync:ko.existsSync}});var Bn=F((QA,Ro)=>{"use strict";S();var Jr=dt();function Th(e,t,i,r){Jr.open(e,"r+",(a,n)=>{if(a)return r(a);Jr.futimes(n,t,i,s=>{Jr.close(n,o=>{r&&r(s||o)})})})}function wh(e,t,i){let r=Jr.openSync(e,"r+");return Jr.futimesSync(r,t,i),Jr.closeSync(r)}Ro.exports={utimesMillis:Th,utimesMillisSync:wh}});var Pr=F((OA,Qo)=>{"use strict";S();var Wr=Dr(),Ke=Le("path"),_h=Le("util");function Nh(e,t,i){let r=i.dereference?a=>Wr.stat(a,{bigint:!0}):a=>Wr.lstat(a,{bigint:!0});return Promise.all([r(e),r(t).catch(a=>{if(a.code==="ENOENT")return null;throw a})]).then(([a,n])=>({srcStat:a,destStat:n}))}function kh(e,t,i){let r,a=i.dereference?s=>Wr.statSync(s,{bigint:!0}):s=>Wr.lstatSync(s,{bigint:!0}),n=a(e);try{r=a(t)}catch(s){if(s.code==="ENOENT")return{srcStat:n,destStat:null};throw s}return{srcStat:n,destStat:r}}function Lh(e,t,i,r,a){_h.callbackify(Nh)(e,t,r,(n,s)=>{if(n)return a(n);let{srcStat:o,destStat:u}=s;if(u){if(Bi(o,u)){let l=Ke.basename(e),f=Ke.basename(t);return i==="move"&&l!==f&&l.toLowerCase()===f.toLowerCase()?a(null,{srcStat:o,destStat:u,isChangingCase:!0}):a(new Error("Source and destination must not be the same."))}if(o.isDirectory()&&!u.isDirectory())return a(new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`));if(!o.isDirectory()&&u.isDirectory())return a(new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`))}return o.isDirectory()&&bn(e,t)?a(new Error(la(e,t,i))):a(null,{srcStat:o,destStat:u})})}function Rh(e,t,i,r){let{srcStat:a,destStat:n}=kh(e,t,r);if(n){if(Bi(a,n)){let s=Ke.basename(e),o=Ke.basename(t);if(i==="move"&&s!==o&&s.toLowerCase()===o.toLowerCase())return{srcStat:a,destStat:n,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(a.isDirectory()&&!n.isDirectory())throw new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`);if(!a.isDirectory()&&n.isDirectory())throw new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`)}if(a.isDirectory()&&bn(e,t))throw new Error(la(e,t,i));return{srcStat:a,destStat:n}}function Do(e,t,i,r,a){let n=Ke.resolve(Ke.dirname(e)),s=Ke.resolve(Ke.dirname(i));if(s===n||s===Ke.parse(s).root)return a();Wr.stat(s,{bigint:!0},(o,u)=>o?o.code==="ENOENT"?a():a(o):Bi(t,u)?a(new Error(la(e,i,r))):Do(e,t,s,r,a))}function Po(e,t,i,r){let a=Ke.resolve(Ke.dirname(e)),n=Ke.resolve(Ke.dirname(i));if(n===a||n===Ke.parse(n).root)return;let s;try{s=Wr.statSync(n,{bigint:!0})}catch(o){if(o.code==="ENOENT")return;throw o}if(Bi(t,s))throw new Error(la(e,i,r));return Po(e,t,n,r)}function Bi(e,t){return t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev}function bn(e,t){let i=Ke.resolve(e).split(Ke.sep).filter(a=>a),r=Ke.resolve(t).split(Ke.sep).filter(a=>a);return i.reduce((a,n,s)=>a&&r[s]===n,!0)}function la(e,t,i){return`Cannot ${i} '${e}' to a subdirectory of itself, '${t}'.`}Qo.exports={checkPaths:Lh,checkPathsSync:Rh,checkParentPaths:Do,checkParentPathsSync:Po,isSrcSubdir:bn,areIdentical:Bi}});var Ho=F((FA,Ko)=>{"use strict";S();var St=dt(),bi=Le("path"),Dh=Mt().mkdirs,Ph=dr().pathExists,Qh=Bn().utimesMillis,Ti=Pr();function Uh(e,t,i,r){typeof i=="function"&&!r?(r=i,i={}):typeof i=="function"&&(i={filter:i}),r=r||function(){},i=i||{},i.clobber="clobber"in i?!!i.clobber:!0,i.overwrite="overwrite"in i?!!i.overwrite:i.clobber,i.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
|
|
5
5
|
|
|
6
6
|
see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0001"),Ti.checkPaths(e,t,"copy",i,(a,n)=>{if(a)return r(a);let{srcStat:s,destStat:o}=n;Ti.checkParentPaths(e,s,t,"copy",u=>u?r(u):i.filter?Vo(Uo,o,e,t,i,r):Uo(o,e,t,i,r))})}function Uo(e,t,i,r,a){let n=bi.dirname(i);Ph(n,(s,o)=>{if(s)return a(s);if(o)return fa(e,t,i,r,a);Dh(n,u=>u?a(u):fa(e,t,i,r,a))})}function Vo(e,t,i,r,a,n){Promise.resolve(a.filter(i,r)).then(s=>s?e(t,i,r,a,n):n(),s=>n(s))}function Oh(e,t,i,r,a){return r.filter?Vo(fa,e,t,i,r,a):fa(e,t,i,r,a)}function fa(e,t,i,r,a){(r.dereference?St.stat:St.lstat)(t,(s,o)=>s?a(s):o.isDirectory()?Gh(o,e,t,i,r,a):o.isFile()||o.isCharacterDevice()||o.isBlockDevice()?Vh(o,e,t,i,r,a):o.isSymbolicLink()?zh(e,t,i,r,a):o.isSocket()?a(new Error(`Cannot copy a socket file: ${t}`)):o.isFIFO()?a(new Error(`Cannot copy a FIFO pipe: ${t}`)):a(new Error(`Unknown file: ${t}`)))}function Vh(e,t,i,r,a,n){return t?Fh(e,i,r,a,n):Fo(e,i,r,a,n)}function Fh(e,t,i,r,a){if(r.overwrite)St.unlink(i,n=>n?a(n):Fo(e,t,i,r,a));else return r.errorOnExist?a(new Error(`'${i}' already exists`)):a()}function Fo(e,t,i,r,a){St.copyFile(t,i,n=>n?a(n):r.preserveTimestamps?Mh(e.mode,t,i,a):ca(i,e.mode,a))}function Mh(e,t,i,r){return qh(e)?Kh(i,e,a=>a?r(a):Oo(e,t,i,r)):Oo(e,t,i,r)}function qh(e){return(e&128)===0}function Kh(e,t,i){return ca(e,t|128,i)}function Oo(e,t,i,r){Hh(t,i,a=>a?r(a):ca(i,e,r))}function ca(e,t,i){return St.chmod(e,t,i)}function Hh(e,t,i){St.stat(e,(r,a)=>r?i(r):Qh(t,a.atime,a.mtime,i))}function Gh(e,t,i,r,a,n){return t?Mo(i,r,a,n):jh(e.mode,i,r,a,n)}function jh(e,t,i,r,a){St.mkdir(i,n=>{if(n)return a(n);Mo(t,i,r,s=>s?a(s):ca(i,e,a))})}function Mo(e,t,i,r){St.readdir(e,(a,n)=>a?r(a):qo(n,e,t,i,r))}function qo(e,t,i,r,a){let n=e.pop();return n?Yh(e,n,t,i,r,a):a()}function Yh(e,t,i,r,a,n){let s=bi.join(i,t),o=bi.join(r,t);Ti.checkPaths(s,o,"copy",a,(u,l)=>{if(u)return n(u);let{destStat:f}=l;Oh(f,s,o,a,c=>c?n(c):qo(e,i,r,a,n))})}function zh(e,t,i,r,a){St.readlink(t,(n,s)=>{if(n)return a(n);if(r.dereference&&(s=bi.resolve(process.cwd(),s)),e)St.readlink(i,(o,u)=>o?o.code==="EINVAL"||o.code==="UNKNOWN"?St.symlink(s,i,a):a(o):(r.dereference&&(u=bi.resolve(process.cwd(),u)),Ti.isSrcSubdir(s,u)?a(new Error(`Cannot copy '${s}' to a subdirectory of itself, '${u}'.`)):e.isDirectory()&&Ti.isSrcSubdir(u,s)?a(new Error(`Cannot overwrite '${u}' with '${s}'.`)):Jh(s,i,a)));else return St.symlink(s,i,a)})}function Jh(e,t,i){St.unlink(t,r=>r?i(r):St.symlink(e,t,i))}Ko.exports=Uh});var Jo=F((qA,zo)=>{"use strict";S();var pt=dt(),wi=Le("path"),Wh=Mt().mkdirsSync,Xh=Bn().utimesMillisSync,_i=Pr();function $h(e,t,i){typeof i=="function"&&(i={filter:i}),i=i||{},i.clobber="clobber"in i?!!i.clobber:!0,i.overwrite="overwrite"in i?!!i.overwrite:i.clobber,i.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
|
|
@@ -134,18 +134,16 @@ export default createComponentHmrWrapper(OriginalComponent, import.meta.hot.data
|
|
|
134
134
|
render(createElement(SettingsPanel), document.getElementById('root'));
|
|
135
135
|
</script>
|
|
136
136
|
</body>
|
|
137
|
-
</html>`}S();var Tf=ra(Ws(),1);var Bf=(e,t)=>`/${e}${t==="dev"?"?component-hmr":""}`,og=(e,t)
|
|
137
|
+
</html>`}S();var Tf=ra(Ws(),1);var Bf=(e,t)=>`/${e}${t==="dev"?"?component-hmr":""}`,og=(e,t,i)=>`${e?e.local[0]:"/"}${t}${i==="dev"?"?custom-element-hmr":""}`,ug=/[?#].*$/s,bf=e=>e.replace(ug,""),wf=({initialModel:e,type:t,projectModelWatcher:i})=>{let{appId:r}=e.config,a=mi(e),n=Ci(e),s=fn(e),o;return{name:"wix:moduleBundle",resolveId(u){let l=bf(u);return a.has(l)||n.has(l)||s.has(l)?l:null},configureServer(u){o=u,t==="dev"&&i.onChange(l=>{a=mi(l);for(let f of a.keys()){let c=u.moduleGraph.getModuleById(f);c&&u.moduleGraph.invalidateModule(c)}n=Ci(l);for(let f of n.keys()){let c=u.moduleGraph.getModuleById(f);c&&u.moduleGraph.invalidateModule(c)}s=fn(l);for(let f of s.keys()){let c=u.moduleGraph.getModuleById(f);c&&u.moduleGraph.invalidateModule(c)}})},load(u){let l=bf(u),f=a.get(l)??n.get(l)??s.get(l);if(!f)return null;let c=f.id;if((0,Tf.isType)(f,"CustomElement")){if(n.has(l))return`
|
|
138
138
|
(async function () {
|
|
139
139
|
if (!window['React']) {
|
|
140
|
-
await
|
|
141
|
-
|
|
142
|
-
import('https://unpkg.com/react-dom@16.14.0/umd/react-dom.production.min.js')
|
|
143
|
-
]);
|
|
140
|
+
await import('https://unpkg.com/react@16.14.0/umd/react.production.min.js');
|
|
141
|
+
await import('https://unpkg.com/react-dom@16.14.0/umd/react-dom.production.min.js');
|
|
144
142
|
}
|
|
145
|
-
const { default: customElement } = await import('${og(
|
|
146
|
-
customElements.define('${
|
|
143
|
+
const { default: customElement } = await import('${og(t==="dev"?o.resolvedUrls:null,f.relativePath,t)}');
|
|
144
|
+
customElements.define('${f.tagName}', customElement);
|
|
147
145
|
})();
|
|
148
|
-
`;if(s.has(
|
|
146
|
+
`;if(s.has(l))return`export { default } from '${Bf(f.relativePanelPath,t)}';`}return`
|
|
149
147
|
(function () {
|
|
150
148
|
const mfKey = '__module_federation__containers';
|
|
151
149
|
window[mfKey] = window[mfKey] || {};
|
|
@@ -160,7 +158,7 @@ export default createComponentHmrWrapper(OriginalComponent, import.meta.hot.data
|
|
|
160
158
|
},
|
|
161
159
|
};
|
|
162
160
|
|
|
163
|
-
window[mfKey]['${r}']['${
|
|
161
|
+
window[mfKey]['${r}']['${c}'] = () => import('${Bf(f.relativePath,t)}');
|
|
164
162
|
})();
|
|
165
163
|
`}}};S();var _f={global:"window"};function Nf(){return[{name:"fix-draft-js",apply:"serve",config:()=>({optimizeDeps:{esbuildOptions:{define:_f}}})},{name:"fix-draft-js",apply:"build",config:()=>({esbuild:{define:_f}})}]}S();S();var W0=ra(J0(),1);import{readFile as jm,writeFile as Ym,stat as zm}from"node:fs/promises";import Jm from"node:path";var Wm="wix-cli.pem",X0=30,Xm=[{name:"commonName",value:"localhost"},{name:"countryName",value:"US"},{shortName:"ST",value:"Virginia"},{name:"organizationName",value:"Dev"},{shortName:"OU",value:"Dev"}],$m=async()=>{let e=W0.default.generate(Xm,{days:X0});return e.private+e.cert},Zm=async e=>{let t=await zm(e).then(i=>i).catch(()=>null);return!t||Date.now()-t.ctime.valueOf()>X0*24*60*60*1e3},$0=async()=>{let e=Xs(),t=Jm.join(e,Wm);if(!await Zm(t)){let a=await jm(t,{encoding:"utf-8"});return{cert:a,key:a}}let r=await $m();return await $s(),await Ym(t,r,{encoding:"utf-8"}),{cert:r,key:r}};import{send as eA}from"vite";function Z0(){return{name:"wix:ssl",config:async e=>{try{let t=await $0();return{...e,server:{https:t},preview:{https:t}}}catch(t){throw new Gr({code:jr.FailedToGenerateSelfsignedCertificate(),cause:t})}},async configureServer(e){e.middlewares.use(async(t,i,r)=>t.url==="/"?eA(t,i,tA(),"html",{headers:e.config.server.headers}):r())}}}function tA(){return`<!DOCTYPE html>
|
|
166
164
|
<html>
|
|
@@ -173,4 +171,4 @@ export default createComponentHmrWrapper(OriginalComponent, import.meta.hot.data
|
|
|
173
171
|
You can close this browser tab and return to the terminal to continue working.
|
|
174
172
|
</body>
|
|
175
173
|
</html>`}S();var eh="__WIX_ORIGIN_PLACEHOLDER__";function th(){let e=null;return{name:"wix:auto-origin",apply:"serve",config:()=>({server:{origin:eh}}),configureServer:t=>{t.middlewares.use((i,r,a)=>{e=e??wa(t),a()})},transform:(t,i)=>{if(i.match(/.*\.(m?jsx?|tsx?)$/))return t;if(!e)throw new Gr({code:jr.FailedToResolveViteOrigin()});return t.replaceAll(eh,e)}}}S();import{dirname as rA,isAbsolute as iA,join as aA}from"node:path";import{URL as rh}from"node:url";function nA(e,t,i){let r=new rh(t,i).href;if(t.startsWith("/@vite"))return r;if(!iA(t)){let a=aA(rA(e),t);r=new rh(a,i).href}return r}function ih(){let e;return{name:"wix:absolute-html-url",apply:"serve",configureServer(t){e=t},transformIndexHtml:{order:"post",handler(t,{originalUrl:i}){if(!i)throw new Error("Cannot find asset URL.");let r=e.resolvedUrls?.local?.[0],a=(n,s,o,u)=>{let l=nA(i,o,r);return`${s}${l}${u}`};return t.replace(/(<script [^><]*src=["'])((?!http)[^"']+)(["'][^><]*>[\r\n]*<\/script>)/g,a).replace(/(<link [^><]*href=["'])((?!http)[^"']+)(["'][^><]*>)/g,a).replace(/(\r\n|\n|\r)/gm,"")}}}}async function _x(e,t){let{https:i}=t,r=[...yi(e)].map(([u,l])=>[`html-asset-${l.id}`,u]),a=[...mi(e)].map(([u,l])=>[`script-asset-${l.id}`,u]),n=e.components.filter((0,ah.isType)(eo.EmbeddedScript)).map(u=>[u.id,sA(e.projectFolder,u.relativePath)]),s=[...Ai(e)].map(([u,l])=>[`html-asset-${l.id}`,u]),o=[...Ci(e)].map(([u,l])=>[`script-asset-${l.id}`,u]);return{configFile:!1,root:e.projectFolder,customLogger:t.customLogger,clearScreen:!1,logLevel:"info",optimizeDeps:{entries:[ro,io,ao,no,so]},server:{},build:{sourcemap:!0,outDir:Zs(e.projectFolder),rollupOptions:{input:Object.fromEntries([...r,...a,...n,...s,...o])}},plugins:[Nf(),...i?[Z0()]:[],wf({initialModel:e,...t}),yf(),Af(),gf({react:"React","react-dom":"ReactDOM"}),Sf({initialModel:e,...t}),th(),ih()],experimental:{renderBuiltUrl(u,{hostType:l,hostId:f}){return l==="html"&&!f.includes("wix/html")?"__STATICS_BASE_URL_PLACEHOLDER__"+u:l!=="js"?{relative:!0}:{runtime:`import.meta.url.replace(${`"${f}"`}, ${`"${u}"`})`}}}}}export{wa as a,_x as b};
|
|
176
|
-
//# sourceMappingURL=chunk-
|
|
174
|
+
//# sourceMappingURL=chunk-M4WZBOPY.js.map
|