@wix/cli-app 1.1.51 → 1.1.52
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-HVC5JTAL.js +4 -0
- package/build/{CreateVersionCommand-6QSWW7PH.js.map → CreateVersionCommand-HVC5JTAL.js.map} +1 -1
- package/build/DevCommand-RTZ66W3P.js +4 -0
- package/build/DevCommand-RTZ66W3P.js.map +1 -0
- package/build/GenerateCommand-J4FYPLSB.js +128 -0
- package/build/GenerateCommand-J4FYPLSB.js.map +1 -0
- package/build/{LogsCommand-5TTBMWFF.js → LogsCommand-J3PHRUGE.js} +2 -2
- package/build/PreviewCommand-JYIGS25E.js +4 -0
- package/build/{ServeCommand-BKLVSLW3.js → ServeCommand-LEJRJ2CR.js} +2 -2
- package/build/{build-OSBBPACR.js → build-YPC7VLOB.js} +2 -2
- package/build/{chunk-LYCV7HBR.js → chunk-2LPICRGU.js} +2 -2
- package/build/{chunk-IOW53RH7.js → chunk-2R6WOCA4.js} +2 -2
- package/build/{chunk-NYC4UPCI.js → chunk-2YXY5Y3Z.js} +2 -2
- package/build/{chunk-GF6CV6CZ.js → chunk-522ULCVX.js} +23 -23
- package/build/chunk-522ULCVX.js.map +1 -0
- package/build/{chunk-7YIQAWRD.js → chunk-6ZJVIMV7.js} +2 -2
- package/build/{chunk-MM7OD345.js → chunk-ATQCL6AZ.js} +5 -5
- package/build/{chunk-MM7OD345.js.map → chunk-ATQCL6AZ.js.map} +1 -1
- package/build/{chunk-V3QQTT5C.js → chunk-CMBEPCWL.js} +2 -2
- package/build/{chunk-M7777RXR.js → chunk-EWA6OFAF.js} +2 -2
- package/build/{chunk-ZWY7YSYP.js → chunk-FMTROGFZ.js} +2 -2
- package/build/{chunk-EUNKG7JY.js → chunk-KNH7RNAZ.js} +4 -4
- package/build/chunk-KNH7RNAZ.js.map +1 -0
- package/build/chunk-MXLCRTVZ.js +4 -0
- package/build/{chunk-5OKXHNO2.js → chunk-NEWE3FX5.js} +2 -2
- package/build/{chunk-YFYESJ2A.js → chunk-RWTMPGYF.js} +2 -2
- package/build/{chunk-VOW75NWO.js → chunk-UKELYG5A.js} +2 -2
- package/build/{chunk-YIQOAFCK.js → chunk-WLHVYK7Z.js} +2 -2
- package/build/{chunk-YXZSFVXG.js → chunk-WRYRVOZP.js} +2 -2
- package/build/{chunk-L2GYA6RW.js → chunk-X3ZYER2U.js} +15 -15
- package/build/chunk-X3ZYER2U.js.map +1 -0
- package/build/{chunk-VXMDSBPO.js → chunk-ZCIEKIRM.js} +2 -2
- package/build/cloudflare-runtime/entry.js +1 -1
- package/build/cloudflare-runtime/getRegisteredExtensions.js +1 -1
- package/build/index.js +2 -2
- package/build/platform-sdk/chunk-3TJ2D6DS.js +2 -0
- package/build/platform-sdk/chunk-3TJ2D6DS.js.map +1 -0
- package/build/platform-sdk/chunk-RE2R2PA6.js +2 -0
- package/build/platform-sdk/chunk-RE2R2PA6.js.map +1 -0
- package/build/platform-sdk/dashboard.js +1 -1
- package/build/platform-sdk/editor.js +6 -6
- package/build/platform-sdk/editor.js.map +1 -1
- package/build/platform-sdk/site.js +1 -1
- package/build/{preview-FY5YKH5Z.js → preview-VAP5AF4W.js} +2 -2
- package/build/{render-command-4BGZ4KYD.js → render-command-NE2QILSS.js} +2 -2
- package/package.json +3 -3
- package/templates/custom-element/dependencies.json +1 -1
- package/templates/dashboard-modal/files/modal.tsx.ejs +2 -2
- package/templates/dashboard-plugin/files/plugin.tsx.ejs +1 -1
- package/templates/site-plugin/dependencies.json +1 -1
- package/templates/site-plugin/files/plugin.tsx.ejs +1 -0
- package/build/CreateVersionCommand-6QSWW7PH.js +0 -4
- package/build/DevCommand-L3OC7OUZ.js +0 -4
- package/build/DevCommand-L3OC7OUZ.js.map +0 -1
- package/build/GenerateCommand-K5IS2QEG.js +0 -99
- package/build/GenerateCommand-K5IS2QEG.js.map +0 -1
- package/build/PreviewCommand-RCGDUERX.js +0 -4
- package/build/chunk-5UV5L6RZ.js +0 -4
- package/build/chunk-EUNKG7JY.js.map +0 -1
- package/build/chunk-GF6CV6CZ.js.map +0 -1
- package/build/chunk-L2GYA6RW.js.map +0 -1
- package/build/platform-sdk/chunk-DGX4CFXG.js +0 -2
- package/build/platform-sdk/chunk-DGX4CFXG.js.map +0 -1
- package/build/platform-sdk/chunk-KEIVYRQX.js +0 -2
- package/build/platform-sdk/chunk-KEIVYRQX.js.map +0 -1
- /package/build/{LogsCommand-5TTBMWFF.js.map → LogsCommand-J3PHRUGE.js.map} +0 -0
- /package/build/{PreviewCommand-RCGDUERX.js.map → PreviewCommand-JYIGS25E.js.map} +0 -0
- /package/build/{ServeCommand-BKLVSLW3.js.map → ServeCommand-LEJRJ2CR.js.map} +0 -0
- /package/build/{build-OSBBPACR.js.map → build-YPC7VLOB.js.map} +0 -0
- /package/build/{chunk-LYCV7HBR.js.map → chunk-2LPICRGU.js.map} +0 -0
- /package/build/{chunk-IOW53RH7.js.map → chunk-2R6WOCA4.js.map} +0 -0
- /package/build/{chunk-NYC4UPCI.js.map → chunk-2YXY5Y3Z.js.map} +0 -0
- /package/build/{chunk-7YIQAWRD.js.map → chunk-6ZJVIMV7.js.map} +0 -0
- /package/build/{chunk-V3QQTT5C.js.map → chunk-CMBEPCWL.js.map} +0 -0
- /package/build/{chunk-M7777RXR.js.map → chunk-EWA6OFAF.js.map} +0 -0
- /package/build/{chunk-ZWY7YSYP.js.map → chunk-FMTROGFZ.js.map} +0 -0
- /package/build/{chunk-5UV5L6RZ.js.map → chunk-MXLCRTVZ.js.map} +0 -0
- /package/build/{chunk-5OKXHNO2.js.map → chunk-NEWE3FX5.js.map} +0 -0
- /package/build/{chunk-YFYESJ2A.js.map → chunk-RWTMPGYF.js.map} +0 -0
- /package/build/{chunk-VOW75NWO.js.map → chunk-UKELYG5A.js.map} +0 -0
- /package/build/{chunk-YIQOAFCK.js.map → chunk-WLHVYK7Z.js.map} +0 -0
- /package/build/{chunk-YXZSFVXG.js.map → chunk-WRYRVOZP.js.map} +0 -0
- /package/build/{chunk-VXMDSBPO.js.map → chunk-ZCIEKIRM.js.map} +0 -0
- /package/build/{preview-FY5YKH5Z.js.map → preview-VAP5AF4W.js.map} +0 -0
- /package/build/{render-command-4BGZ4KYD.js.map → render-command-NE2QILSS.js.map} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { createRequire as _createRequire } from 'node:module';
|
|
2
2
|
const require = _createRequire(import.meta.url);
|
|
3
|
-
import{a as J}from"./chunk-
|
|
4
|
-
//# sourceMappingURL=LogsCommand-
|
|
3
|
+
import{a as J}from"./chunk-EWA6OFAF.js";import"./chunk-WJTPY35F.js";import{C as N,Sa as z,Ta as G,Ua as H,Za as q,_a as U,ub as V}from"./chunk-X3ZYER2U.js";import{A as f,O as D,R as F,V as A,W as R,b as k,c as _,e as h,f as x,m as r,x as u}from"./chunk-522ULCVX.js";import{e as L,h as g}from"./chunk-V4TR6DCM.js";g();g();var e=L(k(),1),E=L(_(),1);g();var l=L(k(),1);import{createServer as ie}from"node:http";var Y=L(_(),1);g();var y=L(_(),1),Z=r.any(),ee=r.enum(["info","error","warn","debug","log"]),oe=r.object({message:r.array(Z),level:ee,timestamp:r.number()}),re=r.object({stack:r.string(),name:r.string(),message:r.string(),timestamp:r.number()}),te=r.object({_type:r.literal("log"),exceptions:r.array(re),logs:r.array(oe)}).passthrough(),ne=r.object({_type:r.literal("session-timeout")}).passthrough(),se=r.discriminatedUnion("_type",[te,ne]),K=(0,y.variant)({Log:(0,y.fields)(),Exception:(0,y.fields)()}),B="/logs",$=(n,s)=>{let i,d;if(n.method==="POST"&&n.url===B){let m="";n.on("data",t=>{m+=t.toString()}),n.on("end",()=>{let t;try{t=se.parse(JSON.parse(m))}catch(o){return d(x.FailedToParseLog(),o,{body:m}),s.statusCode=400,s.end()}let p=[];t._type==="log"&&(p.push(...t.exceptions.map(o=>K.Exception(o))),p.push(...t.logs.map(o=>K.Log(o)))),(0,y.match)(t._type,{log:()=>{i(p)},"session-timeout":()=>{s.statusCode=200,s.end(),d(x.LogsConnectionTimeout(),{},{body:m})}}),s.statusCode=200,s.end()})}else s.statusCode=404,s.end("Not Found");let c={onLog:m=>(i=m,c),onError:m=>(d=m,c)};return c};var me=/([0-9a-f-]{36})/,Q=({onLog:n,version:s,appId:i})=>{let{reportError:d}=N(),{getAppByVersion:c}=H(),m=J(),t=G({type:"backoffice"}),p=(0,l.useRef)(),o=(0,l.useMemo)(()=>ie((a,w)=>{$(a,w).onLog(n).onError((I,M,v)=>{throw o.close(),new h({code:I,cause:M,info:v})})}),[n]),O=(0,l.useMemo)(()=>new Promise(a=>{p.current=a}),[]);(0,l.useEffect)(()=>(o.listen(0,async()=>{let a=o.address().port;p.current?.(a)}),()=>{o.listening&&o.close()}),[o]);let{status:S}=F(async()=>{let a=await O,{url:w}=await m(a),{data:I}=await c({appId:i,version:s}),M=I.components.find(b=>b.compType===z.TOPOLOGY),v=me.exec(M?.compData.topology.topology.backendApiUrl??"");if(!v?.[1])throw new h({code:x.FailedToGetLogsTopology()});let j=v[1],X={appId:i,deploymentId:j,destinationUrl:new URL(B,w).href};try{await t.request(q(X))}catch(b){throw o.close(),new h({code:x.FailedToConnectToLogsService(),cause:b})}return j},[]);return(0,l.useEffect)(()=>()=>{(0,Y.isType)(S,"Success")&&t.request(U({appId:i,deploymentId:S.result})).catch(d)},[]),S};g();var W=L(k(),1);var P=({message:n,level:s})=>{let i="unknown";return typeof n=="object"?i=JSON.stringify(n):i=String(n),W.default.createElement(f,{skin:s==="error"?"error":"standard"},i)};var pe=({version:n})=>{let{model:s}=V(),{t:i}=R(),[d,c]=(0,e.useState)([]),m=Q({appId:s.config.appId,version:n,onLog:(0,e.useCallback)(t=>{c(p=>[...p,...t])},[c])});return(0,E.match)(m,{Success:()=>e.default.createElement(u,{marginTop:1,marginBottom:1,flexDirection:"column"},e.default.createElement(u,{marginBottom:1,flexDirection:"column"},e.default.createElement(f,null,e.default.createElement(A,{i18nKey:"logs_command.listening_to_logs"})),e.default.createElement(f,null,e.default.createElement(A,{i18nKey:"logs_command.prod_env_logs",values:{version:n}}))),d.map((t,p)=>e.default.createElement(u,{key:p,flexDirection:"column"},e.default.createElement(u,{columnGap:1},e.default.createElement(u,{flexShrink:0},e.default.createElement(f,{skin:"secondary"},new Date(t.timestamp).toLocaleTimeString())),e.default.createElement(u,{columnGap:1},(0,E.match)(t,{Log:({message:o,level:O})=>o.map((S,a)=>e.default.createElement(P,{key:`${p}-${a}`,message:S,level:O})),Exception:({message:o})=>e.default.createElement(P,{key:p,message:o,level:"error"})}))),(0,E.match)(t,{Log:()=>null,Exception:({stack:o})=>e.default.createElement(f,{skin:"error"},o)})))),Loading:()=>e.default.createElement(D,{text:i("logs_command.connecting")}),Error:()=>null})};export{pe as LogsCommand};
|
|
4
|
+
//# sourceMappingURL=LogsCommand-J3PHRUGE.js.map
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createRequire as _createRequire } from 'node:module';
|
|
2
|
+
const require = _createRequire(import.meta.url);
|
|
3
|
+
import{a}from"./chunk-FMTROGFZ.js";import"./chunk-ZCIEKIRM.js";import"./chunk-WLHVYK7Z.js";import"./chunk-2R6WOCA4.js";import"./chunk-2YXY5Y3Z.js";import"./chunk-RWTMPGYF.js";import"./chunk-2LPICRGU.js";import"./chunk-EWA6OFAF.js";import"./chunk-WJTPY35F.js";import"./chunk-NEWE3FX5.js";import"./chunk-ATQCL6AZ.js";import"./chunk-UKELYG5A.js";import"./chunk-X3ZYER2U.js";import"./chunk-522ULCVX.js";import"./chunk-V4TR6DCM.js";export{a as PreviewCommand};
|
|
4
|
+
//# sourceMappingURL=PreviewCommand-JYIGS25E.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { createRequire as _createRequire } from 'node:module';
|
|
2
2
|
const require = _createRequire(import.meta.url);
|
|
3
|
-
import{a as W,b as q}from"./chunk-
|
|
4
|
-
//# sourceMappingURL=ServeCommand-
|
|
3
|
+
import{a as W,b as q}from"./chunk-ZCIEKIRM.js";import{c as L}from"./chunk-WLHVYK7Z.js";import{a as b}from"./chunk-CMBEPCWL.js";import{b as U}from"./chunk-2YXY5Y3Z.js";import{g as k,h as K,j as N,k as V,l as f,m as D}from"./chunk-RWTMPGYF.js";import"./chunk-2LPICRGU.js";import"./chunk-EWA6OFAF.js";import"./chunk-WJTPY35F.js";import"./chunk-NEWE3FX5.js";import{a as M,b as h,e as j}from"./chunk-ATQCL6AZ.js";import"./chunk-UKELYG5A.js";import{ub as u}from"./chunk-X3ZYER2U.js";import{A as I,B as y,C as B,E as T,N as _,O,R as A,V as c,W as F,b as a,c as ee,x as m}from"./chunk-522ULCVX.js";import{e as s,h as o}from"./chunk-V4TR6DCM.js";o();o();var g=s(a(),1);o();var n=s(a(),1),G=s(ee(),1);o();var i=s(a(),1);import{preview as re}from"vite";function z(){let t=(0,i.useRef)(),{model:r}=u();(0,i.useEffect)(()=>()=>{t.current?.httpServer.close()},[]);let v=(0,i.useMemo)(()=>b({timestamp:!0}),[]);return(0,i.useCallback)(async()=>{let p=await re(await h(r,{type:"build",customLogger:v}));return t.current=p,M(p)},[r,v])}var H=(0,n.createContext)(null),w=({children:t})=>{let{model:r}=u(),{t:v}=F(),{site:p}=f(),Q=k(),{createOverride:X}=N(),Y=z(),{status:Z}=A(async()=>{await W(r.projectFolder);let d=await Y(),x=await U(r.projectFolder),P=j(x,d),$=await Q.createAppRelease(P,r.config.projectId),E=V(r),{id:R}=E?await X({appId:r.config.appId,siteId:p.id,overrides:E}):await Promise.resolve({id:void 0});return{armTag:$,serverUrl:d,siteOverrideId:R}},[]);return(0,G.match)(Z,{Error:()=>null,Loading:()=>n.default.createElement(O,{text:v("serve_command.starting_serve_environment")}),Success:({result:{armTag:d,serverUrl:x,siteOverrideId:P}})=>n.default.createElement(H.Provider,{value:{serverUrl:x}},n.default.createElement(D,{siteOverrideId:P},n.default.createElement(K,{armTag:d},t)))})};function C(){let t=(0,n.useContext)(H);if(t===null)throw new Error("useServeEnvironment() cannot be used without an <ServeEnvironmentProvider>");return t}o();var e=s(a(),1);function J(){let{site:t}=f(),{serverUrl:r}=C();return e.default.createElement(m,{flexDirection:"column"},e.default.createElement(m,{gap:1},e.default.createElement(I,{skin:"success"},e.default.createElement(T,null)),e.default.createElement(c,{i18nKey:"serve_command.starting_serve_environment_success",components:[e.default.createElement(_,{url:r})]})),e.default.createElement(m,{gap:1},e.default.createElement(y,null),e.default.createElement(c,{i18nKey:"serve_command.production_build"})),e.default.createElement(m,{gap:1,paddingTop:1,paddingBottom:1},e.default.createElement(B,null),e.default.createElement(c,{i18nKey:"general.dev_site.current",values:{name:t.displayName}})),e.default.createElement(m,{paddingBottom:1,flexDirection:"column"},e.default.createElement(q,null)))}var oe=()=>g.default.createElement(L,null,g.default.createElement(w,null,g.default.createElement(J,null)));export{oe as ServeCommand,w as ServeEnvironmentProvider,C as useServeEnvironment};
|
|
4
|
+
//# sourceMappingURL=ServeCommand-LEJRJ2CR.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { createRequire as _createRequire } from 'node:module';
|
|
2
2
|
const require = _createRequire(import.meta.url);
|
|
3
|
-
import{a as w}from"./chunk-
|
|
4
|
-
//# sourceMappingURL=build-
|
|
3
|
+
import{a as w}from"./chunk-CMBEPCWL.js";import{a as s}from"./chunk-2YXY5Y3Z.js";import{b as d,c as l,h as u,j as f,k as g}from"./chunk-ATQCL6AZ.js";import"./chunk-UKELYG5A.js";import{Aa as r,ab as a,sb as m}from"./chunk-X3ZYER2U.js";import{c as h,e as t,f as i}from"./chunk-522ULCVX.js";import{e as A,h as c}from"./chunk-V4TR6DCM.js";c();import{cwd as y}from"node:process";import{build as C}from"vite";var n=A(h(),1);async function R(){let o=await m(y());if(o.components.length===0)throw new t({code:i.NoExtensionsFound()});u(o.components);let _=o.components.filter(e=>(0,n.isType)(e,r.Api)||(0,n.isType)(e,r.Event)||(0,n.isType)(e,r.ServicePlugin)),p=w(),B=_.length>0?await C(await l(o,{type:"build",customLogger:p},{appSecret:"__APP_SECRET__",webhookPublicKey:"__WEBHOOK_PUBLIC_KEY__"})).catch(e=>{throw new t({code:i.FailedToBuildApp({cause:e}),cause:e})}):void 0,E=await C(await d(o,{type:"build",customLogger:p},{baseBackendUrl:a})).catch(e=>{throw new t({code:i.FailedToBuildApp({cause:e}),cause:e})}),b=await f({appId:o.config.appId,components:o.components,sentryDSN:o.config.sentryDSN,componentSourceBuilder:g(o,{clientBuildOutput:E},{backendBuildOutput:B})});await s({projectFolder:o.projectFolder,manifest:b})}export{R as build};
|
|
4
|
+
//# sourceMappingURL=build-YPC7VLOB.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { createRequire as _createRequire } from 'node:module';
|
|
2
2
|
const require = _createRequire(import.meta.url);
|
|
3
|
-
import{Aa as r,ub as p}from"./chunk-
|
|
4
|
-
//# sourceMappingURL=chunk-
|
|
3
|
+
import{Aa as r,ub as p}from"./chunk-X3ZYER2U.js";import{b as v,c as f}from"./chunk-522ULCVX.js";import{e as m,h as c}from"./chunk-V4TR6DCM.js";c();var s=m(v(),1),i=m(f(),1);function k(){let{model:t}=p(),n=(0,s.useMemo)(()=>{let l=t.components.filter((0,i.isType)(r.Api)).sort((e,o)=>e.title.localeCompare(o.title)),a=t.components.filter((0,i.isType)(r.Event)).sort((e,o)=>e.title.localeCompare(o.title)),u=t.components.filter((0,i.isType)(r.ServicePlugin)).sort((e,o)=>e.servicePlugin.name.localeCompare(o.servicePlugin.name));return{Api:l,Event:a,ServicePlugin:u}},[t.components]);return{backendComponents:[...n.Api,...n.Event,...n.ServicePlugin],backendComponentsByType:n}}export{k as a};
|
|
4
|
+
//# sourceMappingURL=chunk-2LPICRGU.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { createRequire as _createRequire } from 'node:module';
|
|
2
2
|
const require = _createRequire(import.meta.url);
|
|
3
|
-
import{b as p}from"./chunk-
|
|
4
|
-
//# sourceMappingURL=chunk-
|
|
3
|
+
import{b as p}from"./chunk-2YXY5Y3Z.js";import{e as i,f as r,g as n}from"./chunk-ATQCL6AZ.js";import{h as e}from"./chunk-V4TR6DCM.js";e();var j=async({model:t,arm:a,serveUrl:m,backendServerUrl:o,topologyComponentId:s,monitoringData:d,monitoringComponentId:g})=>{let l=await p(t.projectFolder),c=r(n(i(l,m,o),{id:s,baseApiUrl:o}),{id:g,monitoring:d});return a.createAppRelease(c,t.config.projectId)};export{j as a};
|
|
4
|
+
//# sourceMappingURL=chunk-2R6WOCA4.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { createRequire as _createRequire } from 'node:module';
|
|
2
2
|
const require = _createRequire(import.meta.url);
|
|
3
|
-
import{d as r}from"./chunk-
|
|
4
|
-
//# sourceMappingURL=chunk-
|
|
3
|
+
import{d as r}from"./chunk-ATQCL6AZ.js";import{k as p,ma as i}from"./chunk-X3ZYER2U.js";import{h as n}from"./chunk-V4TR6DCM.js";n();async function A({projectFolder:t,manifest:e}){let a=i(t);return p(a,e)}async function M(t){let e=i(t);return r(e)}export{A as a,M as b};
|
|
4
|
+
//# sourceMappingURL=chunk-2YXY5Y3Z.js.map
|