@wix/cli-app 1.1.11 → 1.1.13

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 (84) hide show
  1. package/build/CreateVersionCommand-CK24NJUV.js +4 -0
  2. package/build/{CreateVersionCommand-RHTO3DA7.js.map → CreateVersionCommand-CK24NJUV.js.map} +1 -1
  3. package/build/DevCommand-6UWSEUWB.js +4 -0
  4. package/build/{DevCommand-OFSQSCJW.js.map → DevCommand-6UWSEUWB.js.map} +1 -1
  5. package/build/GenerateCommand-T2R7KVGJ.js +99 -0
  6. package/build/GenerateCommand-T2R7KVGJ.js.map +1 -0
  7. package/build/PreviewCommand-XYWJUYDK.js +4 -0
  8. package/build/ServeCommand-BS6RRGUI.js +4 -0
  9. package/build/{ServeCommand-R5SAKRKU.js.map → ServeCommand-BS6RRGUI.js.map} +1 -1
  10. package/build/{build-IS5AWEWP.js → build-7LN2ITR7.js} +2 -2
  11. package/build/chunk-2THRBU5N.js +4 -0
  12. package/build/chunk-2THRBU5N.js.map +1 -0
  13. package/build/chunk-56ZYKDIN.js +27 -0
  14. package/build/chunk-56ZYKDIN.js.map +1 -0
  15. package/build/{chunk-JWWXSIBF.js → chunk-7VK2AU65.js} +2 -2
  16. package/build/{chunk-JWWXSIBF.js.map → chunk-7VK2AU65.js.map} +1 -1
  17. package/build/chunk-AYMXRXYU.js +4 -0
  18. package/build/{chunk-RJ43KJ3G.js → chunk-FUYBCVPM.js} +2 -2
  19. package/build/{chunk-7BWMEPZ3.js → chunk-H4IGYD6F.js} +2 -2
  20. package/build/chunk-JOSBSGTD.js +75 -0
  21. package/build/chunk-JOSBSGTD.js.map +1 -0
  22. package/build/{chunk-UBWBH64V.js → chunk-KG7TIH37.js} +2 -2
  23. package/build/{chunk-7WZDL63V.js → chunk-MZHZLYT6.js} +2 -2
  24. package/build/chunk-N5VOUZJJ.js +4 -0
  25. package/build/chunk-N5VOUZJJ.js.map +1 -0
  26. package/build/chunk-NHQKXAPJ.js +4 -0
  27. package/build/chunk-NHQKXAPJ.js.map +1 -0
  28. package/build/chunk-PJ7ZZBC4.js +11 -0
  29. package/build/chunk-PJ7ZZBC4.js.map +1 -0
  30. package/build/{chunk-ZHEN7NIQ.js → chunk-RDQOWZ7Y.js} +2 -2
  31. package/build/{chunk-EQI25LY6.js → chunk-SXBS7JOX.js} +2 -2
  32. package/build/{chunk-EQI25LY6.js.map → chunk-SXBS7JOX.js.map} +1 -1
  33. package/build/{chunk-2BVF7R6U.js → chunk-TIPUVSQ4.js} +3 -3
  34. package/build/{chunk-QWDVUZEW.js → chunk-UBWYJ6D4.js} +2 -2
  35. package/build/{chunk-JCBTQBIR.js → chunk-VT2YTLS2.js} +2 -2
  36. package/build/{chunk-HNH75HDQ.js → chunk-XLSZSZ23.js} +2 -2
  37. package/build/chunk-YGW3TKSR.js +4 -0
  38. package/build/chunk-YGW3TKSR.js.map +1 -0
  39. package/build/{chunk-5IXE5FNR.js → chunk-YOJEXWG2.js} +2 -2
  40. package/build/index.js +1 -1
  41. package/build/index.js.map +1 -1
  42. package/build/{preview-6XHIXIDA.js → preview-BRNYCZMS.js} +2 -2
  43. package/build/{render-command-MG2TJRUD.js → render-command-7FYLXJG6.js} +2 -2
  44. package/package.json +2 -2
  45. package/templates/custom-element/element.json.ejs +4 -0
  46. package/templates/custom-element/element.tsx.ejs +13 -0
  47. package/templates/custom-element/panel.tsx.ejs +13 -0
  48. package/templates/dashboard-plugin/plugin.json.ejs +4 -0
  49. package/templates/{dashboard-page-plugin → dashboard-plugin}/plugin.tsx.ejs +4 -4
  50. package/build/CreateVersionCommand-RHTO3DA7.js +0 -4
  51. package/build/DevCommand-OFSQSCJW.js +0 -4
  52. package/build/GenerateCommand-43LJGGHV.js +0 -99
  53. package/build/GenerateCommand-43LJGGHV.js.map +0 -1
  54. package/build/PreviewCommand-CEE6NMDS.js +0 -4
  55. package/build/ServeCommand-R5SAKRKU.js +0 -4
  56. package/build/chunk-2MVU7B3I.js +0 -27
  57. package/build/chunk-2MVU7B3I.js.map +0 -1
  58. package/build/chunk-47TDKY2B.js +0 -4
  59. package/build/chunk-BPHZBR73.js +0 -4
  60. package/build/chunk-BPHZBR73.js.map +0 -1
  61. package/build/chunk-GNLLOWHY.js +0 -75
  62. package/build/chunk-GNLLOWHY.js.map +0 -1
  63. package/build/chunk-LW6L3WY3.js +0 -11
  64. package/build/chunk-LW6L3WY3.js.map +0 -1
  65. package/build/chunk-WV4KTPXI.js +0 -4
  66. package/build/chunk-WV4KTPXI.js.map +0 -1
  67. package/build/chunk-YHWDL3DF.js +0 -4
  68. package/build/chunk-YHWDL3DF.js.map +0 -1
  69. package/templates/dashboard-page-plugin/plugin.json.ejs +0 -4
  70. /package/build/{PreviewCommand-CEE6NMDS.js.map → PreviewCommand-XYWJUYDK.js.map} +0 -0
  71. /package/build/{build-IS5AWEWP.js.map → build-7LN2ITR7.js.map} +0 -0
  72. /package/build/{chunk-47TDKY2B.js.map → chunk-AYMXRXYU.js.map} +0 -0
  73. /package/build/{chunk-RJ43KJ3G.js.map → chunk-FUYBCVPM.js.map} +0 -0
  74. /package/build/{chunk-7BWMEPZ3.js.map → chunk-H4IGYD6F.js.map} +0 -0
  75. /package/build/{chunk-UBWBH64V.js.map → chunk-KG7TIH37.js.map} +0 -0
  76. /package/build/{chunk-7WZDL63V.js.map → chunk-MZHZLYT6.js.map} +0 -0
  77. /package/build/{chunk-ZHEN7NIQ.js.map → chunk-RDQOWZ7Y.js.map} +0 -0
  78. /package/build/{chunk-2BVF7R6U.js.map → chunk-TIPUVSQ4.js.map} +0 -0
  79. /package/build/{chunk-QWDVUZEW.js.map → chunk-UBWYJ6D4.js.map} +0 -0
  80. /package/build/{chunk-JCBTQBIR.js.map → chunk-VT2YTLS2.js.map} +0 -0
  81. /package/build/{chunk-HNH75HDQ.js.map → chunk-XLSZSZ23.js.map} +0 -0
  82. /package/build/{chunk-5IXE5FNR.js.map → chunk-YOJEXWG2.js.map} +0 -0
  83. /package/build/{preview-6XHIXIDA.js.map → preview-BRNYCZMS.js.map} +0 -0
  84. /package/build/{render-command-MG2TJRUD.js.map → render-command-7FYLXJG6.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
- var r="1.1.11";export{r as a};
4
- //# sourceMappingURL=chunk-JWWXSIBF.js.map
3
+ var r="1.1.13";export{r as a};
4
+ //# sourceMappingURL=chunk-7VK2AU65.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../package.json"],"sourcesContent":["{\n \"name\": \"@wix/cli-app\",\n \"description\": \"CLI tool for Wix apps\",\n \"version\": \"1.1.11\",\n \"author\": \"Amit Dahan\",\n \"dependencies\": {\n \"vite\": \"5.2.2\"\n },\n \"devDependencies\": {\n \"@commander-js/extra-typings\": \"^12.0.1\",\n \"@types/lodash\": \"^4.17.0\",\n \"@types/mustache\": \"^4.2.5\",\n \"@wix/ambassador-cli-site-override-service-v1-site-override\": \"^1.0.4\",\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.376\",\n \"@wix/arm-client\": \"workspace:*\",\n \"@wix/bi-logger-wix-cli\": \"^1.33.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/extensions-data-client\": \"workspace:*\",\n \"@wix/gena\": \"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\": \"^12.0.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.27\",\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 \"templates\"\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"],"mappings":";;AAGE,IAAAA,EAAW","names":["version"]}
1
+ {"version":3,"sources":["../package.json"],"sourcesContent":["{\n \"name\": \"@wix/cli-app\",\n \"description\": \"CLI tool for Wix apps\",\n \"version\": \"1.1.13\",\n \"author\": \"Amit Dahan\",\n \"dependencies\": {\n \"vite\": \"5.2.2\"\n },\n \"devDependencies\": {\n \"@commander-js/extra-typings\": \"^12.0.1\",\n \"@types/lodash\": \"^4.17.0\",\n \"@types/mustache\": \"^4.2.5\",\n \"@wix/ambassador-cli-site-override-service-v1-site-override\": \"^1.0.4\",\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.376\",\n \"@wix/arm-client\": \"workspace:*\",\n \"@wix/bi-logger-wix-cli\": \"^1.33.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/extensions-data-client\": \"workspace:*\",\n \"@wix/gena\": \"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\": \"^12.0.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.27\",\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 \"templates\"\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"],"mappings":";;AAGE,IAAAA,EAAW","names":["version"]}
@@ -0,0 +1,4 @@
1
+ import { createRequire as _createRequire } from 'node:module';
2
+ const require = _createRequire(import.meta.url);
3
+ import{a as n}from"./chunk-PJ7ZZBC4.js";import{C as t}from"./chunk-YOJEXWG2.js";import{h as r}from"./chunk-HFDLXX7R.js";r();function s(){let e=t(n);return e.t.bind(e)}export{s as a};
4
+ //# sourceMappingURL=chunk-AYMXRXYU.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 M,b as N}from"./chunk-7BWMEPZ3.js";import{c as h}from"./chunk-BPHZBR73.js";import{a as L}from"./chunk-2BVF7R6U.js";import{b}from"./chunk-ZHEN7NIQ.js";import{b as I,j as k,k as U,l as j}from"./chunk-YHWDL3DF.js";import{l as _}from"./chunk-2MVU7B3I.js";import{A as E,B as F,d as i,i as C,q as y,t as A,w as T,x as u}from"./chunk-5IXE5FNR.js";import{b as S}from"./chunk-QWDVUZEW.js";import{a as x,pa as B}from"./chunk-GNLLOWHY.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-RJ43KJ3G.js.map
3
+ import{a as M,b as N}from"./chunk-H4IGYD6F.js";import{c as h}from"./chunk-YGW3TKSR.js";import{a as L}from"./chunk-TIPUVSQ4.js";import{b}from"./chunk-RDQOWZ7Y.js";import{b as I,j as k,k as U,l as j}from"./chunk-NHQKXAPJ.js";import{l as E}from"./chunk-56ZYKDIN.js";import{A as F,B as _,d as i,i as C,q as y,t as A,w as T,x as u}from"./chunk-YOJEXWG2.js";import{b as S}from"./chunk-UBWYJ6D4.js";import{a as x,ma as B}from"./chunk-JOSBSGTD.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(F,{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}=_(),{model:a}=B(),K=k(),V=E(),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-FUYBCVPM.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 w}from"./chunk-BPHZBR73.js";import{m as E,n as y}from"./chunk-YHWDL3DF.js";import{A as p,B as h,d as i,g as x,j as f,s as P}from"./chunk-5IXE5FNR.js";import{O as b,R as B,T as t,c as d,d as g,n as m}from"./chunk-GNLLOWHY.js";import{h as s}from"./chunk-HFDLXX7R.js";s();async function _(o){let e=b(o),l=B(o);if(!await m(e)||!await m(l))throw new d({code:g.BuiltProjectNeeded()})}s();import r from"react";var a=({url:o,label:e,withPointer:l=!0})=>r.createElement(i,null,r.createElement(i,{marginRight:1},l&&r.createElement(f,null),r.createElement(i,{marginLeft:1},r.createElement(P,{url:o},e)))),O=()=>{let{t:o}=h(),{isPlatformExists:e,hasSinglePlatform:l}=w(),u=E(),n=C=>y({envConfig:u,platformType:C});return r.createElement(r.Fragment,null,l(t.Dashboard())?r.createElement(i,{flexDirection:"row"},r.createElement(p,{i18nKey:"general.open_preview.title_single"}),r.createElement(a,{withPointer:!1,url:n(t.Dashboard({route:"/"})),label:o("general.platform.dashboard")})):r.createElement(i,{flexDirection:"column"},r.createElement(p,{i18nKey:"general.open_preview.title_multiple"}),r.createElement(i,{paddingLeft:2,flexDirection:"column"},e(t.Site())&&(u.site.viewUrl?r.createElement(a,{url:n(t.Site()),label:o("general.platform.site")}):r.createElement(i,{marginRight:1},r.createElement(f,null),r.createElement(i,{marginLeft:1},r.createElement(x,{skin:"secondary",underline:!0},o("general.platform.unpublished_site"))))),e(t.Editor())&&r.createElement(a,{url:n(t.Editor()),label:o("general.platform.editor")}),e(t.Dashboard())&&r.createElement(a,{url:n(t.Dashboard({route:"/"})),label:o("general.platform.dashboard")}))))};export{O as a,_ as b};
4
- //# sourceMappingURL=chunk-7BWMEPZ3.js.map
3
+ import{a as w}from"./chunk-N5VOUZJJ.js";import{m as E,n as y}from"./chunk-NHQKXAPJ.js";import{A as p,B as h,d as i,g as x,j as f,s as P}from"./chunk-YOJEXWG2.js";import{I as b,L as B,N as t,c as d,d as g,n as m}from"./chunk-JOSBSGTD.js";import{h as s}from"./chunk-HFDLXX7R.js";s();async function _(o){let e=b(o),l=B(o);if(!await m(e)||!await m(l))throw new d({code:g.BuiltProjectNeeded()})}s();import r from"react";var a=({url:o,label:e,withPointer:l=!0})=>r.createElement(i,null,r.createElement(i,{marginRight:1},l&&r.createElement(f,null),r.createElement(i,{marginLeft:1},r.createElement(P,{url:o},e)))),O=()=>{let{t:o}=h(),{isPlatformExists:e,hasSinglePlatform:l}=w(),u=E(),n=C=>y({envConfig:u,platformType:C});return r.createElement(r.Fragment,null,l(t.Dashboard())?r.createElement(i,{flexDirection:"row"},r.createElement(p,{i18nKey:"general.open_preview.title_single"}),r.createElement(a,{withPointer:!1,url:n(t.Dashboard({route:"/"})),label:o("general.platform.dashboard")})):r.createElement(i,{flexDirection:"column"},r.createElement(p,{i18nKey:"general.open_preview.title_multiple"}),r.createElement(i,{paddingLeft:2,flexDirection:"column"},e(t.Site())&&(u.site.viewUrl?r.createElement(a,{url:n(t.Site()),label:o("general.platform.site")}):r.createElement(i,{marginRight:1},r.createElement(f,null),r.createElement(i,{marginLeft:1},r.createElement(x,{skin:"secondary",underline:!0},o("general.platform.unpublished_site"))))),e(t.Editor())&&r.createElement(a,{url:n(t.Editor()),label:o("general.platform.editor")}),e(t.Dashboard())&&r.createElement(a,{url:n(t.Dashboard({route:"/"})),label:o("general.platform.dashboard")}))))};export{O as a,_ as b};
4
+ //# sourceMappingURL=chunk-H4IGYD6F.js.map