@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.
Files changed (81) hide show
  1. package/build/{CreateVersionCommand-HRPRVABQ.js → CreateVersionCommand-ZED4C5IK.js} +2 -2
  2. package/build/DevCommand-EOGURH5I.js +4 -0
  3. package/build/DevCommand-EOGURH5I.js.map +1 -0
  4. package/build/GenerateCommand-2GP5ZDIG.js +99 -0
  5. package/build/GenerateCommand-2GP5ZDIG.js.map +1 -0
  6. package/build/PreviewCommand-KR2XGCFF.js +4 -0
  7. package/build/{ServeCommand-2XBFLJAW.js → ServeCommand-UAJS2PA6.js} +2 -2
  8. package/build/{build-TCFCF3FL.js → build-3JHPJZJI.js} +2 -2
  9. package/build/{chunk-DGISEOUY.js → chunk-355OHM37.js} +2 -2
  10. package/build/{chunk-P5QI4AKT.js → chunk-3RXBIY4X.js} +2 -2
  11. package/build/{chunk-S4GPIPJ3.js → chunk-BASMMNVW.js} +2 -2
  12. package/build/{chunk-MZF5I7OU.js → chunk-BSEV5LHK.js} +2 -2
  13. package/build/{chunk-RDG3FN7Q.js → chunk-BYI27HUJ.js} +2 -2
  14. package/build/{chunk-YSG4RLTD.js → chunk-DYVKPZDH.js} +10 -10
  15. package/build/{chunk-YSG4RLTD.js.map → chunk-DYVKPZDH.js.map} +1 -1
  16. package/build/chunk-F35NSBUP.js +4 -0
  17. package/build/chunk-F35NSBUP.js.map +1 -0
  18. package/build/chunk-J3Q3DHMD.js +4 -0
  19. package/build/chunk-J3Q3DHMD.js.map +1 -0
  20. package/build/{chunk-KN6FMDRW.js → chunk-JBF5X4QY.js} +2 -2
  21. package/build/chunk-JCBXLFRW.js +4 -0
  22. package/build/chunk-JCBXLFRW.js.map +1 -0
  23. package/build/{chunk-UBUOOVV3.js → chunk-LIHTNDQX.js} +2 -2
  24. package/build/chunk-LIHTNDQX.js.map +1 -0
  25. package/build/{chunk-HUG7YXDC.js → chunk-LW6L3WY3.js} +3 -3
  26. package/build/chunk-LW6L3WY3.js.map +1 -0
  27. package/build/{chunk-X2ODJQS5.js → chunk-M4WZBOPY.js} +9 -11
  28. package/build/{chunk-X2ODJQS5.js.map → chunk-M4WZBOPY.js.map} +1 -1
  29. package/build/chunk-NXZW6FWB.js +27 -0
  30. package/build/chunk-NXZW6FWB.js.map +1 -0
  31. package/build/chunk-OTVLQNCK.js +4 -0
  32. package/build/chunk-OXEFT2HH.js +4 -0
  33. package/build/chunk-OXEFT2HH.js.map +1 -0
  34. package/build/{chunk-JBYJ7JWH.js → chunk-QE2ZMSXG.js} +2 -2
  35. package/build/chunk-T2HZ7OVC.js +4 -0
  36. package/build/chunk-T2HZ7OVC.js.map +1 -0
  37. package/build/{chunk-AQMCJTIA.js → chunk-WK54N4GD.js} +2 -2
  38. package/build/index.js +1 -1
  39. package/build/{preview-M6ZJKLI4.js → preview-EFIEGFXF.js} +2 -2
  40. package/build/{render-command-TZ27VUBD.js → render-command-UUN7DFLA.js} +2 -2
  41. package/package.json +4 -3
  42. package/templates/dashboard-menu-plugin/menu.json.ejs +4 -0
  43. package/templates/dashboard-modal/modal.json.ejs +4 -0
  44. package/templates/dashboard-modal/modal.tsx.ejs +39 -0
  45. package/templates/dashboard-page-plugin/plugin.json.ejs +4 -0
  46. package/templates/dashboard-page-plugin/plugin.tsx.ejs +44 -0
  47. package/build/DevCommand-VXSOOPGI.js +0 -4
  48. package/build/DevCommand-VXSOOPGI.js.map +0 -1
  49. package/build/GenerateCommand-LES5RWP7.js +0 -99
  50. package/build/GenerateCommand-LES5RWP7.js.map +0 -1
  51. package/build/PreviewCommand-7WGLANH2.js +0 -4
  52. package/build/chunk-4PMM4VH2.js +0 -4
  53. package/build/chunk-4PMM4VH2.js.map +0 -1
  54. package/build/chunk-AUZPEJRN.js +0 -4
  55. package/build/chunk-AUZPEJRN.js.map +0 -1
  56. package/build/chunk-HI6L2JY4.js +0 -4
  57. package/build/chunk-HI6L2JY4.js.map +0 -1
  58. package/build/chunk-HUG7YXDC.js.map +0 -1
  59. package/build/chunk-KQHAMVTM.js +0 -27
  60. package/build/chunk-KQHAMVTM.js.map +0 -1
  61. package/build/chunk-LULXOULI.js +0 -4
  62. package/build/chunk-LULXOULI.js.map +0 -1
  63. package/build/chunk-NR3APHWL.js +0 -4
  64. package/build/chunk-OU5SEGSI.js +0 -4
  65. package/build/chunk-OU5SEGSI.js.map +0 -1
  66. package/build/chunk-UBUOOVV3.js.map +0 -1
  67. /package/build/{CreateVersionCommand-HRPRVABQ.js.map → CreateVersionCommand-ZED4C5IK.js.map} +0 -0
  68. /package/build/{PreviewCommand-7WGLANH2.js.map → PreviewCommand-KR2XGCFF.js.map} +0 -0
  69. /package/build/{ServeCommand-2XBFLJAW.js.map → ServeCommand-UAJS2PA6.js.map} +0 -0
  70. /package/build/{build-TCFCF3FL.js.map → build-3JHPJZJI.js.map} +0 -0
  71. /package/build/{chunk-DGISEOUY.js.map → chunk-355OHM37.js.map} +0 -0
  72. /package/build/{chunk-P5QI4AKT.js.map → chunk-3RXBIY4X.js.map} +0 -0
  73. /package/build/{chunk-S4GPIPJ3.js.map → chunk-BASMMNVW.js.map} +0 -0
  74. /package/build/{chunk-MZF5I7OU.js.map → chunk-BSEV5LHK.js.map} +0 -0
  75. /package/build/{chunk-RDG3FN7Q.js.map → chunk-BYI27HUJ.js.map} +0 -0
  76. /package/build/{chunk-KN6FMDRW.js.map → chunk-JBF5X4QY.js.map} +0 -0
  77. /package/build/{chunk-NR3APHWL.js.map → chunk-OTVLQNCK.js.map} +0 -0
  78. /package/build/{chunk-JBYJ7JWH.js.map → chunk-QE2ZMSXG.js.map} +0 -0
  79. /package/build/{chunk-AQMCJTIA.js.map → chunk-WK54N4GD.js.map} +0 -0
  80. /package/build/{preview-M6ZJKLI4.js.map → preview-EFIEGFXF.js.map} +0 -0
  81. /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{h as v}from"./chunk-YSG4RLTD.js";import{a as $,c as E,e as he,h as m}from"./chunk-HFDLXX7R.js";var H=E(P=>{"use strict";m();var y=class extends Error{constructor(e,t,i){super(i),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=t,this.exitCode=e,this.nestedError=void 0}},k=class extends y{constructor(e){super(1,"commander.invalidArgument",e),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}};P.CommanderError=y;P.InvalidArgumentError=k});var V=E(F=>{"use strict";m();var{InvalidArgumentError:ue}=H(),q=class{constructor(e,t){switch(this.description=t||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,e[0]){case"<":this.required=!0,this._name=e.slice(1,-1);break;case"[":this.required=!1,this._name=e.slice(1,-1);break;default:this.required=!0,this._name=e;break}this._name.length>3&&this._name.slice(-3)==="..."&&(this.variadic=!0,this._name=this._name.slice(0,-3))}name(){return this._name}_concatValue(e,t){return t===this.defaultValue||!Array.isArray(t)?[e]:t.concat(e)}default(e,t){return this.defaultValue=e,this.defaultValueDescription=t,this}argParser(e){return this.parseArg=e,this}choices(e){return this.argChoices=e.slice(),this.parseArg=(t,i)=>{if(!this.argChoices.includes(t))throw new ue(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(t,i):t},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}};function le(h){let e=h.name()+(h.variadic===!0?"...":"");return h.required?"<"+e+">":"["+e+"]"}F.Argument=q;F.humanReadableArgName=le});var T=E(J=>{"use strict";m();var{humanReadableArgName:ce}=V(),I=class{constructor(){this.helpWidth=void 0,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}visibleCommands(e){let t=e.commands.filter(n=>!n._hidden),i=e._getHelpCommand();return i&&!i._hidden&&t.push(i),this.sortSubcommands&&t.sort((n,s)=>n.name().localeCompare(s.name())),t}compareOptions(e,t){let i=n=>n.short?n.short.replace(/^-/,""):n.long.replace(/^--/,"");return i(e).localeCompare(i(t))}visibleOptions(e){let t=e.options.filter(n=>!n.hidden),i=e._getHelpOption();if(i&&!i.hidden){let n=i.short&&e._findOption(i.short),s=i.long&&e._findOption(i.long);!n&&!s?t.push(i):i.long&&!s?t.push(e.createOption(i.long,i.description)):i.short&&!n&&t.push(e.createOption(i.short,i.description))}return this.sortOptions&&t.sort(this.compareOptions),t}visibleGlobalOptions(e){if(!this.showGlobalOptions)return[];let t=[];for(let i=e.parent;i;i=i.parent){let n=i.options.filter(s=>!s.hidden);t.push(...n)}return this.sortOptions&&t.sort(this.compareOptions),t}visibleArguments(e){return e._argsDescription&&e.registeredArguments.forEach(t=>{t.description=t.description||e._argsDescription[t.name()]||""}),e.registeredArguments.find(t=>t.description)?e.registeredArguments:[]}subcommandTerm(e){let t=e.registeredArguments.map(i=>ce(i)).join(" ");return e._name+(e._aliases[0]?"|"+e._aliases[0]:"")+(e.options.length?" [options]":"")+(t?" "+t:"")}optionTerm(e){return e.flags}argumentTerm(e){return e.name()}longestSubcommandTermLength(e,t){return t.visibleCommands(e).reduce((i,n)=>Math.max(i,t.subcommandTerm(n).length),0)}longestOptionTermLength(e,t){return t.visibleOptions(e).reduce((i,n)=>Math.max(i,t.optionTerm(n).length),0)}longestGlobalOptionTermLength(e,t){return t.visibleGlobalOptions(e).reduce((i,n)=>Math.max(i,t.optionTerm(n).length),0)}longestArgumentTermLength(e,t){return t.visibleArguments(e).reduce((i,n)=>Math.max(i,t.argumentTerm(n).length),0)}commandUsage(e){let t=e._name;e._aliases[0]&&(t=t+"|"+e._aliases[0]);let i="";for(let n=e.parent;n;n=n.parent)i=n.name()+" "+i;return i+t+" "+e.usage()}commandDescription(e){return e.description()}subcommandDescription(e){return e.summary()||e.description()}optionDescription(e){let t=[];return e.argChoices&&t.push(`choices: ${e.argChoices.map(i=>JSON.stringify(i)).join(", ")}`),e.defaultValue!==void 0&&(e.required||e.optional||e.isBoolean()&&typeof e.defaultValue=="boolean")&&t.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),e.presetArg!==void 0&&e.optional&&t.push(`preset: ${JSON.stringify(e.presetArg)}`),e.envVar!==void 0&&t.push(`env: ${e.envVar}`),t.length>0?`${e.description} (${t.join(", ")})`:e.description}argumentDescription(e){let t=[];if(e.argChoices&&t.push(`choices: ${e.argChoices.map(i=>JSON.stringify(i)).join(", ")}`),e.defaultValue!==void 0&&t.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),t.length>0){let i=`(${t.join(", ")})`;return e.description?`${e.description} ${i}`:i}return e.description}formatHelp(e,t){let i=t.padWidth(e,t),n=t.helpWidth||80,s=2,r=2;function a(p,w){if(w){let S=`${p.padEnd(i+r)}${w}`;return t.wrap(S,n-s,i+r)}return p}function o(p){return p.join(`
3
+ import{h as v}from"./chunk-DYVKPZDH.js";import{a as $,c as E,e as he,h as m}from"./chunk-HFDLXX7R.js";var H=E(P=>{"use strict";m();var y=class extends Error{constructor(e,t,i){super(i),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=t,this.exitCode=e,this.nestedError=void 0}},k=class extends y{constructor(e){super(1,"commander.invalidArgument",e),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}};P.CommanderError=y;P.InvalidArgumentError=k});var V=E(F=>{"use strict";m();var{InvalidArgumentError:ue}=H(),q=class{constructor(e,t){switch(this.description=t||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,e[0]){case"<":this.required=!0,this._name=e.slice(1,-1);break;case"[":this.required=!1,this._name=e.slice(1,-1);break;default:this.required=!0,this._name=e;break}this._name.length>3&&this._name.slice(-3)==="..."&&(this.variadic=!0,this._name=this._name.slice(0,-3))}name(){return this._name}_concatValue(e,t){return t===this.defaultValue||!Array.isArray(t)?[e]:t.concat(e)}default(e,t){return this.defaultValue=e,this.defaultValueDescription=t,this}argParser(e){return this.parseArg=e,this}choices(e){return this.argChoices=e.slice(),this.parseArg=(t,i)=>{if(!this.argChoices.includes(t))throw new ue(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(t,i):t},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}};function le(h){let e=h.name()+(h.variadic===!0?"...":"");return h.required?"<"+e+">":"["+e+"]"}F.Argument=q;F.humanReadableArgName=le});var T=E(J=>{"use strict";m();var{humanReadableArgName:ce}=V(),I=class{constructor(){this.helpWidth=void 0,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}visibleCommands(e){let t=e.commands.filter(n=>!n._hidden),i=e._getHelpCommand();return i&&!i._hidden&&t.push(i),this.sortSubcommands&&t.sort((n,s)=>n.name().localeCompare(s.name())),t}compareOptions(e,t){let i=n=>n.short?n.short.replace(/^-/,""):n.long.replace(/^--/,"");return i(e).localeCompare(i(t))}visibleOptions(e){let t=e.options.filter(n=>!n.hidden),i=e._getHelpOption();if(i&&!i.hidden){let n=i.short&&e._findOption(i.short),s=i.long&&e._findOption(i.long);!n&&!s?t.push(i):i.long&&!s?t.push(e.createOption(i.long,i.description)):i.short&&!n&&t.push(e.createOption(i.short,i.description))}return this.sortOptions&&t.sort(this.compareOptions),t}visibleGlobalOptions(e){if(!this.showGlobalOptions)return[];let t=[];for(let i=e.parent;i;i=i.parent){let n=i.options.filter(s=>!s.hidden);t.push(...n)}return this.sortOptions&&t.sort(this.compareOptions),t}visibleArguments(e){return e._argsDescription&&e.registeredArguments.forEach(t=>{t.description=t.description||e._argsDescription[t.name()]||""}),e.registeredArguments.find(t=>t.description)?e.registeredArguments:[]}subcommandTerm(e){let t=e.registeredArguments.map(i=>ce(i)).join(" ");return e._name+(e._aliases[0]?"|"+e._aliases[0]:"")+(e.options.length?" [options]":"")+(t?" "+t:"")}optionTerm(e){return e.flags}argumentTerm(e){return e.name()}longestSubcommandTermLength(e,t){return t.visibleCommands(e).reduce((i,n)=>Math.max(i,t.subcommandTerm(n).length),0)}longestOptionTermLength(e,t){return t.visibleOptions(e).reduce((i,n)=>Math.max(i,t.optionTerm(n).length),0)}longestGlobalOptionTermLength(e,t){return t.visibleGlobalOptions(e).reduce((i,n)=>Math.max(i,t.optionTerm(n).length),0)}longestArgumentTermLength(e,t){return t.visibleArguments(e).reduce((i,n)=>Math.max(i,t.argumentTerm(n).length),0)}commandUsage(e){let t=e._name;e._aliases[0]&&(t=t+"|"+e._aliases[0]);let i="";for(let n=e.parent;n;n=n.parent)i=n.name()+" "+i;return i+t+" "+e.usage()}commandDescription(e){return e.description()}subcommandDescription(e){return e.summary()||e.description()}optionDescription(e){let t=[];return e.argChoices&&t.push(`choices: ${e.argChoices.map(i=>JSON.stringify(i)).join(", ")}`),e.defaultValue!==void 0&&(e.required||e.optional||e.isBoolean()&&typeof e.defaultValue=="boolean")&&t.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),e.presetArg!==void 0&&e.optional&&t.push(`preset: ${JSON.stringify(e.presetArg)}`),e.envVar!==void 0&&t.push(`env: ${e.envVar}`),t.length>0?`${e.description} (${t.join(", ")})`:e.description}argumentDescription(e){let t=[];if(e.argChoices&&t.push(`choices: ${e.argChoices.map(i=>JSON.stringify(i)).join(", ")}`),e.defaultValue!==void 0&&t.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),t.length>0){let i=`(${t.join(", ")})`;return e.description?`${e.description} ${i}`:i}return e.description}formatHelp(e,t){let i=t.padWidth(e,t),n=t.helpWidth||80,s=2,r=2;function a(p,w){if(w){let S=`${p.padEnd(i+r)}${w}`;return t.wrap(S,n-s,i+r)}return p}function o(p){return p.join(`
4
4
  `).replace(/^/gm," ".repeat(s))}let u=[`Usage: ${t.commandUsage(e)}`,""],l=t.commandDescription(e);l.length>0&&(u=u.concat([t.wrap(l,n,0),""]));let c=t.visibleArguments(e).map(p=>a(t.argumentTerm(p),t.argumentDescription(p)));c.length>0&&(u=u.concat(["Arguments:",o(c),""]));let f=t.visibleOptions(e).map(p=>a(t.optionTerm(p),t.optionDescription(p)));if(f.length>0&&(u=u.concat(["Options:",o(f),""])),this.showGlobalOptions){let p=t.visibleGlobalOptions(e).map(w=>a(t.optionTerm(w),t.optionDescription(w)));p.length>0&&(u=u.concat(["Global Options:",o(p),""]))}let x=t.visibleCommands(e).map(p=>a(t.subcommandTerm(p),t.subcommandDescription(p)));return x.length>0&&(u=u.concat(["Commands:",o(x),""])),u.join(`
5
5
  `)}padWidth(e,t){return Math.max(t.longestOptionTermLength(e,t),t.longestGlobalOptionTermLength(e,t),t.longestSubcommandTermLength(e,t),t.longestArgumentTermLength(e,t))}wrap(e,t,i,n=40){let s=" \\f\\t\\v\xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF",r=new RegExp(`[\\n][${s}]+`);if(e.match(r))return e;let a=t-i;if(a<n)return e;let o=e.slice(0,i),u=e.slice(i).replace(`\r
6
6
  `,`
@@ -22,4 +22,4 @@ Expecting one of '${i.join("', '")}'`);return this._lifeCycleHooks[e]?this._life
22
22
  `),this._exit(0,"commander.version",e)}),this}description(e,t){return e===void 0&&t===void 0?this._description:(this._description=e,t&&(this._argsDescription=t),this)}summary(e){return e===void 0?this._summary:(this._summary=e,this)}alias(e){if(e===void 0)return this._aliases[0];let t=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler&&(t=this.commands[this.commands.length-1]),e===t._name)throw new Error("Command alias can't be the same as its name");let i=this.parent?._findCommand(e);if(i){let n=[i.name()].concat(i.aliases()).join("|");throw new Error(`cannot add alias '${e}' to command '${this.name()}' as already have command '${n}'`)}return t._aliases.push(e),this}aliases(e){return e===void 0?this._aliases:(e.forEach(t=>this.alias(t)),this)}usage(e){if(e===void 0){if(this._usage)return this._usage;let t=this.registeredArguments.map(i=>Ce(i));return[].concat(this.options.length||this._helpOption!==null?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?t:[]).join(" ")}return this._usage=e,this}name(e){return e===void 0?this._name:(this._name=e,this)}nameFromFilename(e){return this._name=b.basename(e,b.extname(e)),this}executableDir(e){return e===void 0?this._executableDir:(this._executableDir=e,this)}helpInformation(e){let t=this.createHelp();return t.helpWidth===void 0&&(t.helpWidth=e&&e.error?this._outputConfiguration.getErrHelpWidth():this._outputConfiguration.getOutHelpWidth()),t.formatHelp(this,t)}_getHelpContext(e){e=e||{};let t={error:!!e.error},i;return t.error?i=n=>this._outputConfiguration.writeErr(n):i=n=>this._outputConfiguration.writeOut(n),t.write=e.write||i,t.command=this,t}outputHelp(e){let t;typeof e=="function"&&(t=e,e=void 0);let i=this._getHelpContext(e);this._getCommandAndAncestors().reverse().forEach(s=>s.emit("beforeAllHelp",i)),this.emit("beforeHelp",i);let n=this.helpInformation(i);if(t&&(n=t(n),typeof n!="string"&&!Buffer.isBuffer(n)))throw new Error("outputHelp callback must return a string or a Buffer");i.write(n),this._getHelpOption()?.long&&this.emit(this._getHelpOption().long),this.emit("afterHelp",i),this._getCommandAndAncestors().forEach(s=>s.emit("afterAllHelp",i))}helpOption(e,t){return typeof e=="boolean"?(e?this._helpOption=this._helpOption??void 0:this._helpOption=null,this):(e=e??"-h, --help",t=t??"display help for command",this._helpOption=this.createOption(e,t),this)}_getHelpOption(){return this._helpOption===void 0&&this.helpOption(void 0,void 0),this._helpOption}addHelpOption(e){return this._helpOption=e,this}help(e){this.outputHelp(e);let t=d.exitCode||0;t===0&&e&&typeof e!="function"&&e.error&&(t=1),this._exit(t,"commander.help","(outputHelp)")}addHelpText(e,t){let i=["beforeAll","before","after","afterAll"];if(!i.includes(e))throw new Error(`Unexpected value for position to addHelpText.
23
23
  Expecting one of '${i.join("', '")}'`);let n=`${e}Help`;return this.on(n,s=>{let r;typeof t=="function"?r=t({error:s.error,command:s.command}):r=t,r&&s.write(`${r}
24
24
  `)}),this}_outputHelpIfRequested(e){let t=this._getHelpOption();t&&e.find(n=>t.is(n))&&(this.outputHelp(),this._exit(0,"commander.helpDisplayed","(outputHelp)"))}};function X(h){return h.map(e=>{if(!e.startsWith("--inspect"))return e;let t,i="127.0.0.1",n="9229",s;return(s=e.match(/^(--inspect(-brk)?)$/))!==null?t=s[1]:(s=e.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(t=s[1],/^\d+$/.test(s[3])?n=s[3]:i=s[3]):(s=e.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(t=s[1],i=s[3],n=s[4]),t&&n!=="0"?`${t}=${i}:${parseInt(n)+1}`:e})}Z.Command=G});var se=E(_=>{"use strict";m();var{Argument:te}=V(),{Command:R}=ee(),{CommanderError:we,InvalidArgumentError:ie}=H(),{Help:Ee}=T(),{Option:ne}=M();_.program=new R;_.createCommand=h=>new R(h);_.createOption=(h,e)=>new ne(h,e);_.createArgument=(h,e)=>new te(h,e);_.Command=R;_.Option=ne;_.Argument=te;_.Help=Ee;_.CommanderError=we;_.InvalidArgumentError=ie;_.InvalidOptionArgumentError=ie});var oe=E((g,re)=>{"use strict";m();var O=se();g=re.exports={};g.program=new O.Command;g.Argument=O.Argument;g.Command=O.Command;g.CommanderError=O.CommanderError;g.Help=O.Help;g.InvalidArgumentError=O.InvalidArgumentError;g.InvalidOptionArgumentError=O.InvalidArgumentError;g.Option=O.Option;g.createCommand=h=>new O.Command(h);g.createOption=(h,e)=>new O.Option(h,e);g.createArgument=(h,e)=>new O.Argument(h,e)});m();m();m();var ae=he(oe(),1),{program:je,createCommand:Ue,createArgument:Le,createOption:Ge,CommanderError:Re,InvalidArgumentError:B,InvalidOptionArgumentError:Be,Command:Je,Argument:Ke,Option:ze,Help:Ye}=ae.default;function xe(h){let e=v.union([v.string().uuid(),v.literal("current")]).transform(t=>t==="current"?void 0:t).safeParse(h);if(e.success)return e.data;throw new B('Value must be a valid GUID or "current"')}function $e(h){let e=v.string().url().safeParse(h);if(e.success)return e.data;throw new B("Value must be a valid URL")}export{Ue as a,B as b,ze as c,xe as d,$e as e};
25
- //# sourceMappingURL=chunk-P5QI4AKT.js.map
25
+ //# sourceMappingURL=chunk-3RXBIY4X.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 r}from"./chunk-LULXOULI.js";import{M as i,l as p}from"./chunk-YSG4RLTD.js";import{h as n}from"./chunk-HFDLXX7R.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-S4GPIPJ3.js.map
3
+ import{a as r}from"./chunk-F35NSBUP.js";import{R as i,l as p}from"./chunk-DYVKPZDH.js";import{h as n}from"./chunk-HFDLXX7R.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-BASMMNVW.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-4PMM4VH2.js";import{c as h,d as U,e as j}from"./chunk-AUZPEJRN.js";import{a as L}from"./chunk-DGISEOUY.js";import{b}from"./chunk-S4GPIPJ3.js";import{b as I,i as k}from"./chunk-OU5SEGSI.js";import{l as _}from"./chunk-KQHAMVTM.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-JBYJ7JWH.js";import{b as S}from"./chunk-LULXOULI.js";import{a as x,ka as B}from"./chunk-YSG4RLTD.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-MZF5I7OU.js.map
3
+ import{a as M,b as N}from"./chunk-OXEFT2HH.js";import{c as h}from"./chunk-JCBXLFRW.js";import{a as L}from"./chunk-355OHM37.js";import{b}from"./chunk-BASMMNVW.js";import{b as I,j as k,k as U,l as j}from"./chunk-J3Q3DHMD.js";import{l as _}from"./chunk-NXZW6FWB.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-QE2ZMSXG.js";import{b as S}from"./chunk-F35NSBUP.js";import{a as x,pa as B}from"./chunk-DYVKPZDH.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-BSEV5LHK.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{n,q as l}from"./chunk-KQHAMVTM.js";import{c as C}from"./chunk-JBYJ7JWH.js";import{e as g,f as p}from"./chunk-YSG4RLTD.js";import{e as y,h as t}from"./chunk-HFDLXX7R.js";t();import{randomUUID as E}from"node:crypto";function _(r,e){r.updateDefaults(S(e))}function S(r){return r?{_client_id:r,_uuid:r,logged_user_id:r,logged_account_id:r,target_account_id:r}:{_client_id:E()}}t();import{uptime as V}from"node:process";t();var c=y(C(),1);import v from"node:os";import{platform as U,version as k}from"node:process";function d({cliVersion:r,flow:e}){return{...e?{flow:e}:{},cliVersion:r,isCI:c.default,nodeVersion:k,osName:L(),osVersion:v.release()}}function L(){switch(U){case"darwin":return"mac";case"win32":return"windows";default:return"linux"}}var f=()=>Math.round(V()*1e3);function B({biLogger:r,command:e,flow:u,cliVersion:w,projectId:a}){let i={command:e.name(),arguments:e.args.join(",")??"",flags:Object.keys(e.opts()).join(",")};return r.report(l({...d({cliVersion:w,flow:u}),...i,...a?{projectId:a}:{},isValid:!0})),{succeed(){r.report(n({...i,duration:f(),isSuccess:!0,isValid:!0}))},failed(o){let x=g(o)?{errorType:p(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,...x,duration:f(),isSuccess:!1,isValid:!0}))}}}t();export{_ as a,B as b};
4
- //# sourceMappingURL=chunk-RDG3FN7Q.js.map
3
+ import{n,q as l}from"./chunk-NXZW6FWB.js";import{c as C}from"./chunk-QE2ZMSXG.js";import{e as g,f as p}from"./chunk-DYVKPZDH.js";import{e as y,h as t}from"./chunk-HFDLXX7R.js";t();import{randomUUID as E}from"node:crypto";function _(r,e){r.updateDefaults(S(e))}function S(r){return r?{_client_id:r,_uuid:r,logged_user_id:r,logged_account_id:r,target_account_id:r}:{_client_id:E()}}t();import{uptime as V}from"node:process";t();var c=y(C(),1);import v from"node:os";import{platform as U,version as k}from"node:process";function d({cliVersion:r,flow:e}){return{...e?{flow:e}:{},cliVersion:r,isCI:c.default,nodeVersion:k,osName:L(),osVersion:v.release()}}function L(){switch(U){case"darwin":return"mac";case"win32":return"windows";default:return"linux"}}var f=()=>Math.round(V()*1e3);function B({biLogger:r,command:e,flow:u,cliVersion:w,projectId:a}){let i={command:e.name(),arguments:e.args.join(",")??"",flags:Object.keys(e.opts()).join(",")};return r.report(l({...d({cliVersion:w,flow:u}),...i,...a?{projectId:a}:{},isValid:!0})),{succeed(){r.report(n({...i,duration:f(),isSuccess:!0,isValid:!0}))},failed(o){let x=g(o)?{errorType:p(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,...x,duration:f(),isSuccess:!1,isValid:!0}))}}}t();export{_ as a,B as b};
4
+ //# sourceMappingURL=chunk-BYI27HUJ.js.map