@wix/cli-app 1.1.2 → 1.1.3
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-ACZ3W4S4.js → CreateVersionCommand-PIV2LH7B.js} +2 -2
- package/build/{DevCommand-26MBVEGM.js → DevCommand-UIDNUWIP.js} +2 -2
- package/build/PreviewCommand-UKHGM3U7.js +4 -0
- package/build/{ServeCommand-LKGC43F2.js → ServeCommand-JX2AYHNK.js} +2 -2
- package/build/SiteIdProvider-UIS4BKVC.js +4 -0
- package/build/{build-K7HCLEXF.js → build-X5PQLJYY.js} +2 -2
- package/build/{chunk-DWQSXNK2.js → chunk-44TZXTHO.js} +2 -2
- package/build/{chunk-KZZTM2KZ.js → chunk-7PCCZH2Q.js} +2 -2
- package/build/{chunk-FBPBJN3V.js → chunk-7PDV5QDK.js} +2 -2
- package/build/{chunk-XCS5TRON.js → chunk-7T43YDHD.js} +2 -2
- package/build/{chunk-XTSD25NR.js → chunk-7XQUV5HO.js} +2 -2
- package/build/{chunk-SI3YQ623.js → chunk-BJOLH7YC.js} +2 -2
- package/build/{chunk-2DYAAR6J.js → chunk-BQW2QNTV.js} +2 -2
- package/build/{chunk-TUKI3OEQ.js → chunk-BXSRILE5.js} +2 -2
- package/build/{chunk-DLDSY2KE.js → chunk-EICHKHNE.js} +2 -2
- package/build/chunk-EICHKHNE.js.map +1 -0
- package/build/{chunk-3CWGDMDQ.js → chunk-GAEEULSA.js} +2 -2
- package/build/chunk-GXCVI5BG.js +75 -0
- package/build/chunk-GXCVI5BG.js.map +1 -0
- package/build/{chunk-LWF2UMZJ.js → chunk-HMJ5TWEC.js} +2 -2
- package/build/{chunk-NBPYX6UX.js → chunk-NQPO4DHF.js} +3 -3
- package/build/{chunk-NBPYX6UX.js.map → chunk-NQPO4DHF.js.map} +1 -1
- package/build/{chunk-EUINJR7Q.js → chunk-SGABAIB5.js} +2 -2
- package/build/{chunk-7L53MGM2.js → chunk-UFOJJCTK.js} +2 -2
- package/build/{chunk-BTGENTTK.js → chunk-UO6ED7UB.js} +2 -2
- package/build/{chunk-5CKAQAZK.js → chunk-XD45SKTN.js} +2 -2
- package/build/index.js +1 -1
- package/build/{preview-MTYF5TV5.js → preview-5ELYGXV7.js} +2 -2
- package/build/{render-command-VR53CY3H.js → render-command-VECNS26S.js} +2 -2
- package/package.json +2 -3
- package/build/PreviewCommand-MNP242P6.js +0 -4
- package/build/SiteIdProvider-KTD7B3MF.js +0 -4
- package/build/chunk-DLDSY2KE.js.map +0 -1
- package/build/chunk-YT3VC22W.js +0 -75
- package/build/chunk-YT3VC22W.js.map +0 -1
- /package/build/{CreateVersionCommand-ACZ3W4S4.js.map → CreateVersionCommand-PIV2LH7B.js.map} +0 -0
- /package/build/{DevCommand-26MBVEGM.js.map → DevCommand-UIDNUWIP.js.map} +0 -0
- /package/build/{PreviewCommand-MNP242P6.js.map → PreviewCommand-UKHGM3U7.js.map} +0 -0
- /package/build/{ServeCommand-LKGC43F2.js.map → ServeCommand-JX2AYHNK.js.map} +0 -0
- /package/build/{SiteIdProvider-KTD7B3MF.js.map → SiteIdProvider-UIS4BKVC.js.map} +0 -0
- /package/build/{build-K7HCLEXF.js.map → build-X5PQLJYY.js.map} +0 -0
- /package/build/{chunk-DWQSXNK2.js.map → chunk-44TZXTHO.js.map} +0 -0
- /package/build/{chunk-KZZTM2KZ.js.map → chunk-7PCCZH2Q.js.map} +0 -0
- /package/build/{chunk-FBPBJN3V.js.map → chunk-7PDV5QDK.js.map} +0 -0
- /package/build/{chunk-XCS5TRON.js.map → chunk-7T43YDHD.js.map} +0 -0
- /package/build/{chunk-XTSD25NR.js.map → chunk-7XQUV5HO.js.map} +0 -0
- /package/build/{chunk-SI3YQ623.js.map → chunk-BJOLH7YC.js.map} +0 -0
- /package/build/{chunk-2DYAAR6J.js.map → chunk-BQW2QNTV.js.map} +0 -0
- /package/build/{chunk-TUKI3OEQ.js.map → chunk-BXSRILE5.js.map} +0 -0
- /package/build/{chunk-3CWGDMDQ.js.map → chunk-GAEEULSA.js.map} +0 -0
- /package/build/{chunk-LWF2UMZJ.js.map → chunk-HMJ5TWEC.js.map} +0 -0
- /package/build/{chunk-EUINJR7Q.js.map → chunk-SGABAIB5.js.map} +0 -0
- /package/build/{chunk-7L53MGM2.js.map → chunk-UFOJJCTK.js.map} +0 -0
- /package/build/{chunk-BTGENTTK.js.map → chunk-UO6ED7UB.js.map} +0 -0
- /package/build/{chunk-5CKAQAZK.js.map → chunk-XD45SKTN.js.map} +0 -0
- /package/build/{preview-MTYF5TV5.js.map → preview-5ELYGXV7.js.map} +0 -0
- /package/build/{render-command-VR53CY3H.js.map → render-command-VECNS26S.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 h,h as e,u as a,v as m,w as p,x as s,y as g,z as d}from"./chunk-
|
|
4
|
-
//# sourceMappingURL=chunk-
|
|
3
|
+
import{A as h,h as e,u as a,v as m,w as p,x as s,y as g,z as d}from"./chunk-GXCVI5BG.js";import{h as b}from"./chunk-HFDLXX7R.js";b();import I from"node:fs/promises";var u=e.object({errorReporting:e.object({url:e.string().optional()}).optional()}),f=e.object({iframeUrl:e.string().optional(),scriptAsset:e.object({exportedName:e.string(),containerId:e.string(),url:e.string(),scriptType:e.string().optional()}).optional()}),T=e.object({hostingPlatform:e.string(),fullPage:e.boolean().nullish(),hideInSidebar:e.boolean().nullish(),priority:e.number().nullish(),routePath:e.string().nullish(),title:e.string(),pageCategoryId:e.string().nullish(),activeSidebarPageId:e.string().nullish(),requiredPermission:e.string().nullish(),previousRoutePaths:e.array(e.string()).nullish()}).merge(u).merge(f).passthrough(),N=e.object({width:e.number().nullish(),height:e.number().nullish()}).merge(f).passthrough(),C=e.object({appId:e.string(),componentId:e.string(),spec:e.string().min(1),variantValue:e.string()}).passthrough().optional(),O=e.object({compId:e.string(),compType:e.literal(a.BACK_OFFICE_PAGE),compData:e.object({backOfficePage:T}),compName:e.string().optional(),experiment:C}).passthrough(),A=e.object({compId:e.string(),compType:e.literal(a.BACK_OFFICE_EXTENSION),compData:e.object({backOfficeExtension:e.object({hostingPlatform:e.string(),extends:e.string(),title:e.string().nullish(),extensionType:e.literal(h.BACK_OFFICE_EXTENSION_WIDGET),requiredPermission:e.string().nullish(),widget:N}).merge(u).passthrough()}),compName:e.string().optional(),experiment:C}).passthrough(),D=e.object({compId:e.string(),compType:e.literal(a.BACK_OFFICE_SIDEBAR_CATEGORY),compData:e.object({backOfficeSidebarCategory:e.object({hostingPlatform:e.string(),title:e.string(),priority:e.number().nullish()})}),compName:e.string().optional()}).passthrough(),_=e.object({compId:e.string(),compType:e.literal(a.BACK_OFFICE_WIDGET),compName:e.string().optional()}).passthrough(),y=e.object({compId:e.string(),compType:e.literal(a.BACK_OFFICE_EXTENSION_CONTAINER),compName:e.string().optional()}).passthrough(),j=e.object({template:e.string(),name:e.string(),pages:e.enum([m.NONE_PAGES,m.ONCE,m.SPECIFIC_PAGES]),placement:e.enum([p.HEAD,p.BODY_START,p.BODY_END,p.NONE_PLACEMENT]),connectArticleUrl:e.string(),embedCategory:e.enum([s.UNKNOWN,s.FUNCTIONAL,s.ESSENTIAL,s.ANALYTICS,s.ADVERTISING]),loadOnce:e.boolean(),allowedForFreeSite:e.boolean()}),P=e.object({compId:e.string(),compType:e.literal(a.EMBEDDED_SCRIPT),compName:e.string().optional(),compData:e.object({embeddedScriptComponentData:j})}).passthrough(),v=e.object({tagName:e.string(),settingsUrl:e.string(),scriptTag:e.string(),scriptType:e.literal(d.MODULE),type:e.enum([g.WIDGET,g.PAGE]).optional(),slug:e.string().optional(),showPageInMenu:e.boolean().optional(),size:e.object({width:e.number().optional(),height:e.number().optional()}).optional(),installation:e.object({base:e.object({essential:e.boolean().optional(),autoAdd:e.boolean().optional(),maxInstances:e.number().optional()}).optional()}).optional()}).passthrough(),F=e.object({compId:e.string(),compType:e.literal(a.WEB),compData:e.object({webComponentData:v})}).passthrough(),w=e.object({appId:e.string(),components:e.array(e.discriminatedUnion("compType",[O,A,D,_,y,P,F]))});async function W(r){try{let t=await I.readFile(r,"utf-8");return w.parse(JSON.parse(t))}catch(t){let n=t instanceof Error?t.toString():JSON.stringify(t);throw new Error(`Failed to read App Manifest at ${r}: ${n}`)}}var l=(r,t)=>new URL(r,t).href,E=(r,t)=>{let{scriptAsset:n,iframeUrl:i}=r;return n?{scriptAsset:{...n,url:l(n.url,t)}}:i?{iframeUrl:l(i,t)}:r},B=(r,t)=>({template:r.template.replaceAll("__STATICS_BASE_URL_PLACEHOLDER__",t)}),K=(r,t)=>{let n=JSON.parse(JSON.stringify(r)),i=t.endsWith("/")?t:`${t}/`;return n.components.forEach(S=>{let{compData:o,compType:c}=S;c===a.BACK_OFFICE_PAGE&&(o.backOfficePage={...o.backOfficePage,...E(o.backOfficePage,i)}),c===a.BACK_OFFICE_EXTENSION&&(o.backOfficeExtension.widget={...o.backOfficeExtension.widget,...E(o.backOfficeExtension.widget,i)}),c===a.EMBEDDED_SCRIPT&&(o.embeddedScriptComponentData={...o.embeddedScriptComponentData,...B(o.embeddedScriptComponentData,i)}),c===a.WEB&&(o.webComponentData={...o.webComponentData,scriptTag:l(o.webComponentData.scriptTag,i),settingsUrl:l(o.webComponentData.settingsUrl,i)})}),n};export{W as a,K as b};
|
|
4
|
+
//# sourceMappingURL=chunk-SGABAIB5.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 k}from"./chunk-
|
|
4
|
-
//# sourceMappingURL=chunk-
|
|
3
|
+
import{a as k}from"./chunk-BQW2QNTV.js";import{c as b}from"./chunk-7XQUV5HO.js";import{a as T,b as F}from"./chunk-XD45SKTN.js";import{b as S}from"./chunk-7PDV5QDK.js";import{a as y}from"./chunk-BXSRILE5.js";import{B as C,C as m,F as x,G as P,K as A,w as f,y as v,z as w}from"./chunk-NQPO4DHF.js";import{a as g,ba as _}from"./chunk-GXCVI5BG.js";import{e as d,h as o}from"./chunk-HFDLXX7R.js";o();import B from"react";o();import i from"react";var j=d(g(),1);o();var U=d(g(),1);import h from"react";var p=({status:s,loadingText:e,successText:n})=>(0,U.match)(s,{NotRequested:()=>null,Loading:()=>h.createElement(w,{text:e}),Error:()=>null,Success:()=>h.createElement(f,{type:"success"},n)});var E=({onPreviewCreated:s,siteId:e,baseUrl:n})=>{let{model:r}=_(),{t}=P(),M=S(),q=A(),H=y({type:"backoffice"}),u=m(()=>F(r.config.appId,r.projectFolder,q,H)),l=m((a,c)=>T({model:r,siteId:e,arm:M,serveUrl:c})),{status:K}=C(async()=>{await k(r.projectFolder);let a=n??await u.execute(),{dashboardPageUrl:c,tag:N}=await l.execute(a);return s?.(N),c},[]);return i.createElement(i.Fragment,null,i.createElement(p,{status:u.status,loadingText:t("preview_command.uploading_files"),successText:t("preview_command.uploading_files_success")}),i.createElement(p,{status:l.status,loadingText:t("preview_command.creating_preview"),successText:t("preview_command.creating_preview_success")}),(0,j.match)(K,{Loading:()=>null,Error:()=>null,Success:({result:a})=>i.createElement(x,{i18nKey:"general.dashboard_page_text",components:[i.createElement(v,{url:a})]})}))};var at=({baseUrl:s,siteIdOverride:e,onPreviewCreated:n})=>{let r=t=>B.createElement(E,{baseUrl:s,siteId:t,onPreviewCreated:n});return e?r(e):B.createElement(b,null,({id:t})=>r(t))};export{at as a};
|
|
4
|
+
//# sourceMappingURL=chunk-UFOJJCTK.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{M as n,P as p,k as y}from"./chunk-
|
|
4
|
-
//# sourceMappingURL=chunk-
|
|
3
|
+
import{M as n,P as p,k as y}from"./chunk-NQPO4DHF.js";import{e as a,f as g}from"./chunk-GXCVI5BG.js";import{e as x,h as t}from"./chunk-HFDLXX7R.js";t();import{randomUUID as C}from"node:crypto";function E(r,e){r.updateDefaults(_(e))}function _(r){return r?{_client_id:r,_uuid:r,logged_user_id:r,logged_account_id:r,target_account_id:r}:{_client_id:C()}}t();import{uptime as L}from"node:process";t();var l=x(y(),1);import S from"node:os";import{platform as v,version as U}from"node:process";function c({cliVersion:r,flow:e}){return{...e?{flow:e}:{},cliVersion:r,isCI:l.default,nodeVersion:U,osName:k(),osVersion:S.release()}}function k(){switch(v){case"darwin":return"mac";case"win32":return"windows";default:return"linux"}}var d=()=>Math.round(L()*1e3);function V({biLogger:r,command:e,flow:f,cliVersion:u}){let i={command:e.name(),arguments:e.args.join(",")??"",flags:Object.keys(e.opts()).join(",")};return r.report(p({...c({cliVersion:u,flow:f}),...i,isValid:!0})),{succeed(){r.report(n({...i,duration:d(),isSuccess:!0,isValid:!0}))},failed(o){let w=a(o)?{errorType:g(o)?"SystemError":"UserError",errorName:o.name,errorMessage:o.message}:o instanceof Error?{errorType:"UnknownError",errorName:o.name,errorMessage:o.message}:{errorType:"UnknownError",errorMessage:JSON.stringify(o)};r.report(n({...i,...w,duration:d(),isSuccess:!1,isValid:!0}))}}}t();export{E as a,V as b};
|
|
4
|
+
//# sourceMappingURL=chunk-UO6ED7UB.js.map
|