@wix/cli-app 1.1.5 → 1.1.7

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.
Files changed (71) hide show
  1. package/build/CreateVersionCommand-G2MTCG42.js +4 -0
  2. package/build/{CreateVersionCommand-YILZNSV2.js.map → CreateVersionCommand-G2MTCG42.js.map} +1 -1
  3. package/build/DevCommand-NTEEUFAO.js +4 -0
  4. package/build/{DevCommand-7WWSASM4.js.map → DevCommand-NTEEUFAO.js.map} +1 -1
  5. package/build/GenerateCommand-2J7LTVTG.js +99 -0
  6. package/build/GenerateCommand-2J7LTVTG.js.map +1 -0
  7. package/build/PreviewCommand-2VOKA43B.js +4 -0
  8. package/build/ServeCommand-ANGVMF5F.js +4 -0
  9. package/build/{ServeCommand-652X4MDY.js.map → ServeCommand-ANGVMF5F.js.map} +1 -1
  10. package/build/build-STNIJWOD.js +4 -0
  11. package/build/{build-E3PBKXVD.js.map → build-STNIJWOD.js.map} +1 -1
  12. package/build/chunk-33JVSWRU.js +4 -0
  13. package/build/{chunk-WQL7FOMI.js.map → chunk-33JVSWRU.js.map} +1 -1
  14. package/build/chunk-4PJZNBLP.js +4 -0
  15. package/build/{chunk-RHFXR5Z6.js.map → chunk-4PJZNBLP.js.map} +1 -1
  16. package/build/chunk-6672YZIR.js +4 -0
  17. package/build/{chunk-4VUK4C6N.js.map → chunk-6672YZIR.js.map} +1 -1
  18. package/build/chunk-APTJGMVX.js +4 -0
  19. package/build/chunk-APTJGMVX.js.map +1 -0
  20. package/build/{chunk-OGNGTOSN.js → chunk-B7UI5BHA.js} +2 -2
  21. package/build/{chunk-O5L7CVLC.js → chunk-C364KT35.js} +2 -2
  22. package/build/{chunk-JPAMNQ3J.js → chunk-CQ24SN6G.js} +2 -2
  23. package/build/{chunk-5GEONXLW.js → chunk-DORVLTGQ.js} +2 -2
  24. package/build/chunk-F6VIPS74.js +4 -0
  25. package/build/chunk-F6VIPS74.js.map +1 -0
  26. package/build/chunk-KHABFHDG.js +27 -0
  27. package/build/chunk-KHABFHDG.js.map +1 -0
  28. package/build/{chunk-BR6YUJN2.js → chunk-LXG62LU6.js} +3 -3
  29. package/build/{chunk-BR6YUJN2.js.map → chunk-LXG62LU6.js.map} +1 -1
  30. package/build/{chunk-GZEP5TCY.js → chunk-R5N7KNVD.js} +2 -2
  31. package/build/{chunk-XWROUJPX.js → chunk-SBCE4SHA.js} +3 -3
  32. package/build/chunk-SBCE4SHA.js.map +1 -0
  33. package/build/{chunk-JV42HHTE.js → chunk-SQ7GXOTK.js} +10 -10
  34. package/build/chunk-SQ7GXOTK.js.map +1 -0
  35. package/build/{chunk-YDKXRG4E.js → chunk-VFXI25UM.js} +2 -2
  36. package/build/chunk-XW5ALZ42.js +87 -0
  37. package/build/chunk-XW5ALZ42.js.map +1 -0
  38. package/build/{chunk-62BB54RE.js → chunk-Y2UEVFKZ.js} +2 -2
  39. package/build/index.js +1 -1
  40. package/build/index.js.map +1 -1
  41. package/build/preview-YEEZWFF7.js +4 -0
  42. package/build/{preview-SP4YHT6Z.js.map → preview-YEEZWFF7.js.map} +1 -1
  43. package/build/render-command-G45FUN6A.js +4 -0
  44. package/build/{render-command-EGMZRC3N.js.map → render-command-G45FUN6A.js.map} +1 -1
  45. package/package.json +7 -5
  46. package/templates/dashboard-page/page.json +1 -0
  47. package/templates/dashboard-page/page.tsx.ejs +26 -0
  48. package/build/CreateVersionCommand-YILZNSV2.js +0 -4
  49. package/build/DevCommand-7WWSASM4.js +0 -4
  50. package/build/PreviewCommand-TTE3HAKG.js +0 -4
  51. package/build/ServeCommand-652X4MDY.js +0 -4
  52. package/build/build-E3PBKXVD.js +0 -4
  53. package/build/chunk-4VUK4C6N.js +0 -4
  54. package/build/chunk-67JGH5YG.js +0 -108
  55. package/build/chunk-67JGH5YG.js.map +0 -1
  56. package/build/chunk-IHHKEQZ4.js +0 -4
  57. package/build/chunk-IHHKEQZ4.js.map +0 -1
  58. package/build/chunk-JV42HHTE.js.map +0 -1
  59. package/build/chunk-RHFXR5Z6.js +0 -4
  60. package/build/chunk-WQL7FOMI.js +0 -4
  61. package/build/chunk-XWROUJPX.js.map +0 -1
  62. package/build/preview-SP4YHT6Z.js +0 -4
  63. package/build/render-command-EGMZRC3N.js +0 -4
  64. /package/build/{PreviewCommand-TTE3HAKG.js.map → PreviewCommand-2VOKA43B.js.map} +0 -0
  65. /package/build/{chunk-OGNGTOSN.js.map → chunk-B7UI5BHA.js.map} +0 -0
  66. /package/build/{chunk-O5L7CVLC.js.map → chunk-C364KT35.js.map} +0 -0
  67. /package/build/{chunk-JPAMNQ3J.js.map → chunk-CQ24SN6G.js.map} +0 -0
  68. /package/build/{chunk-5GEONXLW.js.map → chunk-DORVLTGQ.js.map} +0 -0
  69. /package/build/{chunk-GZEP5TCY.js.map → chunk-R5N7KNVD.js.map} +0 -0
  70. /package/build/{chunk-YDKXRG4E.js.map → chunk-VFXI25UM.js.map} +0 -0
  71. /package/build/{chunk-62BB54RE.js.map → chunk-Y2UEVFKZ.js.map} +0 -0
@@ -1,4 +0,0 @@
1
- import { createRequire as _createRequire } from 'node:module';
2
- const require = _createRequire(import.meta.url);
3
- import{a as M,b as N}from"./chunk-YDKXRG4E.js";import{c as h,d as U,e as j}from"./chunk-IHHKEQZ4.js";import{a as L}from"./chunk-GZEP5TCY.js";import{b}from"./chunk-62BB54RE.js";import{b as I,i as k}from"./chunk-4VUK4C6N.js";import{B as T,C as u,F as E,G as F,K as _,l as i,q as C,w as y,z as A}from"./chunk-67JGH5YG.js";import{b as S}from"./chunk-OGNGTOSN.js";import{a as x,da as B}from"./chunk-JV42HHTE.js";import{e as P,h as r}from"./chunk-HFDLXX7R.js";r();import f from"react";r();import n from"react";var D=()=>{let{site:e}=j();return n.createElement(i,{rowGap:1,marginTop:1,marginBottom:1,flexDirection:"column"},n.createElement(i,{gap:1},n.createElement(C,null),n.createElement(E,{i18nKey:"general.dev_site.current",values:{name:e.displayName}})),n.createElement(i,{rowGap:1},n.createElement(M,null)))};r();var q=P(x(),1);import t,{createContext as X,useContext as cr}from"react";r();var O=P(x(),1);import G from"react";var v=({status:e,loadingText:s,successText:m})=>(0,O.match)(e,{NotRequested:()=>null,Loading:()=>G.createElement(A,{text:s}),Error:()=>null,Success:()=>G.createElement(y,{type:"success"},m)});var Y=X(null),H=({children:e,baseUrl:s,onPreviewCreated:m})=>{let{t:c}=F(),{model:a}=B(),K=k(),V=_(),W=I({type:"backoffice"}),g=u(()=>L(a.config.appId,a.projectFolder,V,W)),w=u(async(p,o)=>{let J=await b(a.projectFolder),Q=S(J,o);return await K.createAppRelease(Q,a.config.projectId)}),z=T(async()=>{await N(a.projectFolder);let p=s??await g.execute(),o=await w.execute(p);return m?.(o),{armTag:o,serverUrl:p}},[]);return t.createElement(t.Fragment,null,t.createElement(i,{flexDirection:"column"},t.createElement(v,{status:g.status,loadingText:c("preview_command.uploading_files"),successText:c("preview_command.uploading_files_success")}),t.createElement(v,{status:w.status,loadingText:c("preview_command.creating_preview"),successText:c("preview_command.creating_preview_success")})),(0,q.match)(z.status,{Error:()=>null,Loading:()=>null,Success:({result:{armTag:p,serverUrl:o}})=>t.createElement(Y.Provider,{value:{serverUrl:o}},t.createElement(U,{armTag:p},e))}))};var br=({baseUrl:e,siteIdOverride:s,onPreviewCreated:m})=>f.createElement(h,{siteId:s},f.createElement(H,{baseUrl:e,onPreviewCreated:m},f.createElement(D,null)));export{br as a};
4
- //# sourceMappingURL=chunk-RHFXR5Z6.js.map
@@ -1,4 +0,0 @@
1
- import { createRequire as _createRequire } from 'node:module';
2
- const require = _createRequire(import.meta.url);
3
- import{M as n,P as p,k as y}from"./chunk-67JGH5YG.js";import{e as a,f as g}from"./chunk-JV42HHTE.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-WQL7FOMI.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../package.json","../src/messages.json"],"sourcesContent":["{\n \"name\": \"@wix/cli-app\",\n \"description\": \"CLI tool for Wix apps\",\n \"version\": \"1.1.5\",\n \"author\": \"Amit Dahan\",\n \"dependencies\": {\n \"vite\": \"5.0.2\"\n },\n \"devDependencies\": {\n \"@commander-js/extra-typings\": \"^11.1.0\",\n \"@types/lodash\": \"^4.14.202\",\n \"@types/mustache\": \"^4.2.5\",\n \"@wix/ambassador-cli-site-override-service-v1-site-override\": \"^1.0.3\",\n \"@wix/ambassador-ctp-app-cloud-deployer-service-v1-app-cloud-deployer\": \"^1.0.17\",\n \"@wix/ambassador-ctp-gradual-rollout-v1-app-config\": \"^1.0.64\",\n \"@wix/ambassador-devcenter-components-v1-component\": \"^1.0.367\",\n \"@wix/arm-client\": \"workspace:*\",\n \"@wix/bi-logger-wix-cli\": \"^1.31.0\",\n \"@wix/cli-app-definitions\": \"workspace:*\",\n \"@wix/cli-app-manifest\": \"workspace:*\",\n \"@wix/cli-auth\": \"workspace:*\",\n \"@wix/cli-command-contract\": \"workspace:*\",\n \"@wix/cli-core-definitions\": \"workspace:*\",\n \"@wix/cli-debug-log\": \"workspace:*\",\n \"@wix/cli-error\": \"workspace:*\",\n \"@wix/cli-error-reporting\": \"workspace:*\",\n \"@wix/cli-fs\": \"workspace:*\",\n \"@wix/cli-http-client\": \"workspace:*\",\n \"@wix/cli-http-client-react\": \"workspace:*\",\n \"@wix/cli-i18n\": \"workspace:*\",\n \"@wix/cli-logger\": \"workspace:*\",\n \"@wix/cli-site-selector\": \"workspace:*\",\n \"@wix/cli-ssl\": \"workspace:*\",\n \"@wix/cli-telemetry\": \"workspace:*\",\n \"@wix/cli-telemetry-react\": \"workspace:*\",\n \"@wix/cli-test-overrides\": \"workspace:*\",\n \"@wix/cli-ui-kit\": \"workspace:*\",\n \"@wix/dev-center-client\": \"workspace:*\",\n \"@wix/site-list-client\": \"workspace:*\",\n \"@wix/site-override-client\": \"workspace:*\",\n \"@wix/tsup-configs\": \"workspace:*\",\n \"@wix/user-browser\": \"workspace:*\",\n \"chalk\": \"^5.3.0\",\n \"chokidar\": \"^3.6.0\",\n \"commander\": \"^11.1.0\",\n \"fast-equals\": \"^5.0.1\",\n \"form-data\": \"^4.0.0\",\n \"globby\": \"^13.2.2\",\n \"lodash\": \"^4.17.21\",\n \"mustache\": \"^4.2.0\",\n \"p-retry\": \"^5.1.2\",\n \"p-wait-for\": \"^5.0.2\",\n \"prompts\": \"^2.4.2\",\n \"semver\": \"^7.6.0\",\n \"tempy\": \"^3.1.0\",\n \"typed-emitter\": \"^2.1.0\",\n \"variant\": \"^3.0.0-dev.26\",\n \"vite-plugin-externals\": \"^0.6.2\",\n \"zod\": \"^3.22.4\"\n },\n \"engines\": {\n \"node\": \">= 18.16\"\n },\n \"exports\": {\n \".\": \"./build/index.js\",\n \"./client\": {\n \"types\": \"./client.d.ts\"\n },\n \"./internal/component-hmr-wrapper\": \"./internal/component-hmr-wrapper.tsx\",\n \"./tsconfig.app.json\": \"./tsconfig.app.json\",\n \"./package.json\": \"./package.json\"\n },\n \"files\": [\n \"build\",\n \"tsconfig.app.json\",\n \"client.d.ts\",\n \"internal\"\n ],\n \"peerDependencies\": {\n \"react\": \"^16.14 || ^17 || ^18\",\n \"react-dom\": \"^16.14 || ^17 || ^18\"\n },\n \"peerDependenciesMeta\": {\n \"react-dom\": {\n \"optional\": true\n }\n },\n \"perfer\": {\n \"bundleSize\": {\n \"files\": [\n {\n \"glob\": \"./build/index.js\",\n \"maxSize\": \"460kb\"\n }\n ]\n }\n },\n \"publishConfig\": {\n \"registry\": \"https://registry.npmjs.org/\",\n \"access\": \"public\",\n \"versionBumpStrategy\": \"manual\",\n \"logLevel\": \"verbose\"\n },\n \"scripts\": {\n \"build\": \"run -T tsup\",\n \"build:watch\": \"run build --watch\",\n \"lint\": \"run -T lint-package\",\n \"test\": \"yarn workspace @wix/cli-app-spec run test\",\n \"test:watch\": \"yarn workspace @wix/cli-app-spec run test:watch\",\n \"typecheck\": \"run -T tsc --noEmit\"\n },\n \"sideEffects\": false,\n \"type\": \"module\",\n \"wix\": {\n \"artifact\": {\n \"groupId\": \"com.wixpress.npm\",\n \"artifactId\": \"wix-cli-app\"\n },\n \"validations\": {\n \"postBuild\": [\n \"typecheck\",\n \"lint\"\n ]\n }\n }\n}\n","{\n \"create_version_command_def.option.version_type\": \"The type of version you would like to create\",\n \"create_version_command_def.option.approve_preview\": \"Approve preview automatically\",\n \"create_version_command_def.option.base_url\": \"The base url for when static files have been uploaded to an external cdn\",\n \"dev_command_def.option.https\": \"Start local dev server on https\",\n \"app_preview_command_def.option.site\": \"The site id to use for Application Preview urls, defaults to the current selected development site\",\n \"app_preview_command_def.option.base_url\": \"The base url for when static files have been uploaded to an external cdn\",\n \"app_preview_command_def.option.no_input\": \"Disable command interactivity\",\n \"general.loading\": \"Loading...\",\n \"general.no_site_id_configured\": \"You don't have a Development Site currently configured\",\n \"general.site_id_not_found\": \"Your currently configured Development Site was not found ({id})\\nThis may happen because the site was deleted or your access has been revoked.\\n\\nPlease select another Development Site to continue\",\n \"general.dashboard_page_text\": \"<0>Click here</0> to open your application in the Wix Dashboard\",\n \"general.dashboard_page_click_here\": \"Click here\",\n \"general.close_screen\": \"Press <0/> to close\",\n \"general.write_dev_log_failure.message\": \"Can not write logs to <0>{path}</0>\",\n \"general.write_dev_log_failure.hint\": \"Make sure the file has proper permissions and is accessible\",\n \"general.open_page_error\": \"Failed to open the browser for <0>{title}</0>, use the following URL to open it in your browser:\",\n \"general.dashboard_pages_viewer.title\": \"Press a number key to open a dashboard page:\",\n \"general.dashboard_pages_viewer.show_more\": \"View more...\",\n \"general.platform.site\": \"Site\",\n \"general.platform.unpublished_site\": \"Site (publish the site to enable site preview)\",\n \"general.platform.editor\": \"Editor\",\n \"general.platform.dashboard\": \"Dashboard\",\n \"general.platform.none\": \"Your project doesn't seem to have any extensions.\\n\\nExtensions are the building blocks of your app.\\nMake sure it is configured properly, or read our <0>documentation</0> to start developing your first extension.\",\n \"general.dev_site.current\": \"Current Development Site: {name}\",\n \"general.view_changes\": \"View your local changes: <0>(Press a key to open)</0>\",\n \"general.open_preview.title_single\": \"Open the preview on the\",\n \"general.open_preview.title_multiple\": \"Open the preview on:\",\n \"preview_command.creating_preview\": \"Creating a preview...\",\n \"preview_command.creating_preview_success\": \"Preview created successfully!\",\n \"preview_command.uploading_files\": \"Uploading your application files...\",\n \"preview_command.uploading_files_success\": \"Uploaded successfully!\",\n \"dev_command.dev_environment.loading\": \"Starting dev environment...\",\n \"dev_command.dev_environment.started\": \"Local development environment ready.\",\n \"dev_command.dev_environment.url\": \"Application served on <0/>\",\n \"dev_command.dev_environment.https_url.open_info\": \"Press <0/> to open & approve dev server\",\n \"dev_command.dev_environment.https_url.failed_to_open\": \"Unable to open <0/> for approving selfsigned certificate. Please manually access the link.\",\n \"dev_command.dev_site.change\": \"Press <0/> to change your current Development Site\",\n \"dev_command.site_selector.error\": \"Failed to change Development Site!\",\n \"dev_command.dashboard_pages_screen.select_label\": \"Select a dashboard page to open\",\n \"dev_command.dev_env_logs.title\": \"Dev Environment Logs: <0>(full logs at {path})</0>\",\n \"dev_command.dev_env_logs.empty\": \"No logs to show\",\n \"dev_command.config_change\": \"Loading App Manifest changes...\",\n \"dev_command.config_update\": \"App Manifest updated. Refresh existing browser tabs to view the latest changes.\",\n \"dev_command.config_didnt_update\": \"No App Manifest update occurred\",\n \"serve_command.starting_serve_environment\": \"Starting serve environment...\",\n \"serve_command.starting_serve_environment_success\": \"Serve environment started! <0/>\",\n \"serve_command.production_build\": \"Application is using a production build\",\n \"create_version_command.creating_version\": \"Creating a version...\",\n \"create_version_command.creating_version_success\": \"Successfully created v{version}\",\n \"create_version_command.current_version\": \"Your current version is: v{version}\",\n \"create_version_command.confirm_version_creation\": \"Continue with creating the new version?\",\n \"create_version_command.confirm_version_creation_aborted\": \"Version creation aborted\",\n \"create_version_command.version_type_question\": \"What type of version would you like to create?\",\n \"create_version_command.version_type_question_minor\": \"Minor (v{version})\",\n \"create_version_command.version_type_question_major\": \"Major (v{version})\",\n \"create_version_command.check_preview_before_version_release\": \"Before creating a new version, let's create a preview of your app\",\n \"create_version_command.checking_validation_status\": \"Checking if this version can be submitted…\",\n \"create_version_command.version_validation_ok\": \"This version can be submitted for review in the <0>Dev Center<0/>\",\n \"create_version_command.version_validation_has_failures\": \"This version has blockers preventing it from being submitted for review.\\nPlease fix them and submit your app in the <0>Dev Center<0/>.\"\n}\n"],"mappings":";;AAGE,IAAAA,EAAW,QCHb,IAAAC,EAAA,CACE,iDAAkD,+CAClD,oDAAqD,gCACrD,6CAA8C,2EAC9C,+BAAgC,kCAChC,sCAAuC,qGACvC,0CAA2C,2EAC3C,0CAA2C,gCAC3C,kBAAmB,aACnB,gCAAiC,yDACjC,4BAA6B;AAAA;AAAA;AAAA,oDAC7B,8BAA+B,kEAC/B,oCAAqC,aACrC,uBAAwB,sBACxB,wCAAyC,sCACzC,qCAAsC,8DACtC,0BAA2B,mGAC3B,uCAAwC,+CACxC,2CAA4C,eAC5C,wBAAyB,OACzB,oCAAqC,iDACrC,0BAA2B,SAC3B,6BAA8B,YAC9B,wBAAyB;AAAA;AAAA;AAAA,iHACzB,2BAA4B,mCAC5B,uBAAwB,wDACxB,oCAAqC,0BACrC,sCAAuC,uBACvC,mCAAoC,wBACpC,2CAA4C,gCAC5C,kCAAmC,sCACnC,0CAA2C,yBAC3C,sCAAuC,8BACvC,sCAAuC,uCACvC,kCAAmC,6BACnC,kDAAmD,0CACnD,uDAAwD,6FACxD,8BAA+B,qDAC/B,kCAAmC,qCACnC,kDAAmD,kCACnD,iCAAkC,qDAClC,iCAAkC,kBAClC,4BAA6B,kCAC7B,4BAA6B,kFAC7B,kCAAmC,kCACnC,2CAA4C,gCAC5C,mDAAoD,kCACpD,iCAAkC,0CAClC,0CAA2C,wBAC3C,kDAAmD,kCACnD,yCAA0C,sCAC1C,kDAAmD,0CACnD,0DAA2D,2BAC3D,+CAAgD,iDAChD,qDAAsD,qBACtD,qDAAsD,qBACtD,8DAA+D,oEAC/D,oDAAqD,kDACrD,+CAAgD,oEAChD,yDAA0D;AAAA,8DAC5D","names":["version","messages_default"]}
@@ -1,4 +0,0 @@
1
- import { createRequire as _createRequire } from 'node:module';
2
- const require = _createRequire(import.meta.url);
3
- import{a as C}from"./chunk-WQL7FOMI.js";import{a as U}from"./chunk-GZEP5TCY.js";import{b as I}from"./chunk-62BB54RE.js";import{a as j,g as A,h as M,j as S}from"./chunk-4VUK4C6N.js";import{V as w,h as u}from"./chunk-67JGH5YG.js";import{b as y}from"./chunk-OGNGTOSN.js";import{K as v,L as P,a as g,ba as h,c as a,d as m}from"./chunk-JV42HHTE.js";import{e as f,h as o}from"./chunk-HFDLXX7R.js";o();o();import{cwd as D}from"node:process";o();var b=f(g(),1);var x=async({model:e,site:i,arm:t,serveUrl:r})=>{let n=await I(e.projectFolder),p=y(n,r),s=await t.createAppRelease(p,e.config.projectId),[d]=e.components.filter((0,b.isType)(P.DashboardPage));return{tag:s,dashboardPageUrl:S({envConfig:{appId:e.config.appId,site:i,tag:s},platformType:v.Dashboard({route:d.route})})}};o();var R=f(g(),1);async function T(e,i,t){let r=new j(i),n=await A({siteId:t,projectFolder:e.projectFolder,siteListClient:r});return(0,R.match)(n,{NotConfigured:()=>{throw new a({code:m.SiteConfiguredRequired()})},NotFound:()=>{throw new a({code:m.SiteConfiguredRequired()})},Resolved:({site:p})=>p})}o();function F(e){console.log(e)}async function E(e,i){let t=await h(D()),r=await w();if(!r)throw new a({code:m.AuthenticationRequired()});i.errorReporter.setUser({id:r.userInfo.userId}),C(i.biLogger,r.userInfo.userId);let n=u({type:"backoffice",getAppToken:()=>r.getAccessToken()}),p=await T(t,n,e.siteId),s=e.baseUrl??await U(t.config.appId,t.projectFolder,i.biLogger,n),d=new M(n),{dashboardPageUrl:L}=await x({model:t,site:p,arm:d,serveUrl:s});F(L)}export{E as nonInteractivePreview};
4
- //# sourceMappingURL=preview-SP4YHT6Z.js.map
@@ -1,4 +0,0 @@
1
- import { createRequire as _createRequire } from 'node:module';
2
- const require = _createRequire(import.meta.url);
3
- import{a as p,b as j}from"./chunk-XWROUJPX.js";import{a as u}from"./chunk-5GEONXLW.js";import{a as w,b as I}from"./chunk-WQL7FOMI.js";import{D as l,I as g,J as v,S as P,U as h}from"./chunk-67JGH5YG.js";import{ba as d,c as s,ca as y,d as f,t as C}from"./chunk-JV42HHTE.js";import{h as c}from"./chunk-HFDLXX7R.js";c();import{cwd as E}from"node:process";import e from"react";async function L({biLogger:t,errorReporter:r}){let o=await d(E());r.setContext("app info",{appId:o.config.appId,...o.config.projectId?{projectId:o.config.projectId}:{}}),t.updateDefaults({_appId:o.config.appId})}async function K(t,{biLogger:r,errorReporter:o},i,n){await S(t,{biLogger:r,errorReporter:o},async()=>{let m=await d(E());if(m.components.length===0)throw new s({code:f.NoExtensionsFound()});let F=C(m.projectFolder);await l(e.createElement(v,{value:r},e.createElement(P,{value:o},e.createElement(h,{onLogin:a=>{o.setUser({id:a.userId}),w(r,a.userId)}},e.createElement(g,{messages:j},e.createElement(u,{filePath:F},e.createElement(y,{value:m,watchForChanges:n?.watchForModelChanges},i)))))))})}async function S(t,r,o){await L(r);let i=I({biLogger:r.biLogger,command:t,cliVersion:p,flow:"Apps"});try{await o(),i.succeed()}catch(n){throw i.failed(n),n}}export{K as renderCommand,S as runCommand};
4
- //# sourceMappingURL=render-command-EGMZRC3N.js.map