@wix/create-app 0.0.176 → 0.0.178
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/{chunk-YJZMSH2X.js → chunk-WQQ7N27K.js} +1 -2
- package/build/{chunk-YJZMSH2X.js.map → chunk-WQQ7N27K.js.map} +1 -1
- package/build/{generator-WYU6PW63.js → generator-BDJKUNKO.js} +2 -2
- package/build/index.js +79 -75
- package/build/index.js.map +1 -1
- package/package.json +2 -2
- /package/build/{generator-WYU6PW63.js.map → generator-BDJKUNKO.js.map} +0 -0
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
pathExists,
|
|
14
14
|
require_is_git_url,
|
|
15
15
|
require_lib
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-WQQ7N27K.js";
|
|
17
17
|
import {
|
|
18
18
|
__commonJS,
|
|
19
19
|
__require,
|
|
@@ -3984,4 +3984,4 @@ ejs/lib/ejs.js:
|
|
|
3984
3984
|
* @license {@link http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0}
|
|
3985
3985
|
*)
|
|
3986
3986
|
*/
|
|
3987
|
-
//# sourceMappingURL=generator-
|
|
3987
|
+
//# sourceMappingURL=generator-BDJKUNKO.js.map
|
package/build/index.js
CHANGED
|
@@ -99,7 +99,7 @@ import {
|
|
|
99
99
|
setupTestEnv,
|
|
100
100
|
writeJson,
|
|
101
101
|
zod_default
|
|
102
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-WQQ7N27K.js";
|
|
103
103
|
import {
|
|
104
104
|
__commonJS,
|
|
105
105
|
__dirname,
|
|
@@ -7279,12 +7279,12 @@ var require_lodash = __commonJS({
|
|
|
7279
7279
|
Stack.prototype.has = stackHas;
|
|
7280
7280
|
Stack.prototype.set = stackSet;
|
|
7281
7281
|
function arrayLikeKeys(value2, inherited) {
|
|
7282
|
-
var isArr = isArray2(value2), isArg = !isArr && isArguments(value2), isBuff = !isArr && !isArg && isBuffer(value2),
|
|
7282
|
+
var isArr = isArray2(value2), isArg = !isArr && isArguments(value2), isBuff = !isArr && !isArg && isBuffer(value2), isType16 = !isArr && !isArg && !isBuff && isTypedArray(value2), skipIndexes = isArr || isArg || isBuff || isType16, result = skipIndexes ? baseTimes(value2.length, String) : [], length = result.length;
|
|
7283
7283
|
for (var key in value2) {
|
|
7284
7284
|
if ((inherited || hasOwnProperty2.call(value2, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
7285
7285
|
(key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
7286
7286
|
isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
7287
|
-
|
|
7287
|
+
isType16 && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
|
|
7288
7288
|
isIndex(key, length)))) {
|
|
7289
7289
|
result.push(key);
|
|
7290
7290
|
}
|
|
@@ -52579,15 +52579,6 @@ ${errorMessage2}`
|
|
|
52579
52579
|
}
|
|
52580
52580
|
);
|
|
52581
52581
|
},
|
|
52582
|
-
AppInstallerSiteNotFound: ({ siteId }) => {
|
|
52583
|
-
return () => /* @__PURE__ */ import_react77.default.createElement(
|
|
52584
|
-
ErrorMessage,
|
|
52585
|
-
{
|
|
52586
|
-
message: `Site with ID "${siteId}" not found.`,
|
|
52587
|
-
hint: "Please make sure the site exists and you have access to it."
|
|
52588
|
-
}
|
|
52589
|
-
);
|
|
52590
|
-
},
|
|
52591
52582
|
EAccessPermissionDenied: () => {
|
|
52592
52583
|
return () => /* @__PURE__ */ import_react77.default.createElement(
|
|
52593
52584
|
ErrorMessage,
|
|
@@ -56118,6 +56109,8 @@ function usePanoramaMethodLogger(target) {
|
|
|
56118
56109
|
|
|
56119
56110
|
// ../cli-panorama/src/createPanorama.ts
|
|
56120
56111
|
init_esm_shims();
|
|
56112
|
+
var import_verror5 = __toESM(require_verror(), 1);
|
|
56113
|
+
var import_variant24 = __toESM(require_lib(), 1);
|
|
56121
56114
|
|
|
56122
56115
|
// ../../node_modules/@wix/panorama-client-node/dist/esm/index.js
|
|
56123
56116
|
init_esm_shims();
|
|
@@ -57160,14 +57153,25 @@ async function createPanorama(options) {
|
|
|
57160
57153
|
}).withGlobalConfig(globalConfig).setMuted(!userConfig.telemetry);
|
|
57161
57154
|
const panorama = createPanoramaWrapper(factory);
|
|
57162
57155
|
if (errorReporter2) {
|
|
57163
|
-
errorReporter2.on("errorReported", (
|
|
57156
|
+
errorReporter2.on("errorReported", (cliError) => {
|
|
57164
57157
|
const panoramaClient2 = panorama.client({
|
|
57165
57158
|
baseParams: {
|
|
57166
57159
|
componentId: "error-reporter"
|
|
57167
57160
|
}
|
|
57168
57161
|
});
|
|
57169
57162
|
const errorMonitor = panoramaClient2.errorMonitor();
|
|
57170
|
-
|
|
57163
|
+
const error = (0, import_variant24.isType)(cliError.cliCode, CliSystemErrorCode.UnknownFailure) && cliError.cliCode.error instanceof Error ? cliError.cliCode.error : cliError;
|
|
57164
|
+
const errorToReport = new Error(error.message);
|
|
57165
|
+
errorToReport.name = error.name;
|
|
57166
|
+
errorToReport.stack = import_verror5.default.fullStack(error);
|
|
57167
|
+
const httpError = extractHttpError(cliError);
|
|
57168
|
+
if (httpError) {
|
|
57169
|
+
errorToReport.cause = httpError;
|
|
57170
|
+
}
|
|
57171
|
+
errorMonitor.reportError(errorToReport, {
|
|
57172
|
+
// panorama by default uses constructor.name for errorName
|
|
57173
|
+
errorName: cliError.name
|
|
57174
|
+
});
|
|
57171
57175
|
});
|
|
57172
57176
|
}
|
|
57173
57177
|
return panorama;
|
|
@@ -57177,17 +57181,17 @@ async function createPanorama(options) {
|
|
|
57177
57181
|
init_esm_shims();
|
|
57178
57182
|
var import_kebabCase = __toESM(require_kebabCase(), 1);
|
|
57179
57183
|
function createCommandTransaction(panorama, command) {
|
|
57180
|
-
const commandFullName = getFullCommandName(command);
|
|
57184
|
+
const commandFullName = (0, import_kebabCase.default)(getFullCommandName(command));
|
|
57185
|
+
panorama.setDefaultClientData({
|
|
57186
|
+
commandName: command.name(),
|
|
57187
|
+
commandFullName
|
|
57188
|
+
});
|
|
57181
57189
|
const client2 = panorama.client({
|
|
57182
57190
|
baseParams: {
|
|
57183
57191
|
componentId: "command"
|
|
57184
|
-
},
|
|
57185
|
-
data: {
|
|
57186
|
-
commandName: command.name(),
|
|
57187
|
-
commandFullName
|
|
57188
57192
|
}
|
|
57189
57193
|
});
|
|
57190
|
-
return client2.transaction(
|
|
57194
|
+
return client2.transaction(commandFullName);
|
|
57191
57195
|
}
|
|
57192
57196
|
function getFullCommandName(command) {
|
|
57193
57197
|
if (command.parent) {
|
|
@@ -57460,7 +57464,7 @@ function reportCommandStartEvent({
|
|
|
57460
57464
|
var package_default = {
|
|
57461
57465
|
name: "@wix/create-app",
|
|
57462
57466
|
description: "Create Wix apps",
|
|
57463
|
-
version: "0.0.
|
|
57467
|
+
version: "0.0.178",
|
|
57464
57468
|
author: "Ihor Machuzhak",
|
|
57465
57469
|
bin: "bin/index.cjs",
|
|
57466
57470
|
devDependencies: {
|
|
@@ -57596,7 +57600,7 @@ var createBiLogger2 = async ({
|
|
|
57596
57600
|
// src/components/CreateAppCommand.tsx
|
|
57597
57601
|
init_esm_shims();
|
|
57598
57602
|
var import_react120 = __toESM(require_react(), 1);
|
|
57599
|
-
var
|
|
57603
|
+
var import_variant38 = __toESM(require_lib(), 1);
|
|
57600
57604
|
|
|
57601
57605
|
// src/components/WelcomeMessage.tsx
|
|
57602
57606
|
init_esm_shims();
|
|
@@ -58270,11 +58274,11 @@ var import_validate_npm_package_name = __toESM(require_lib2(), 1);
|
|
|
58270
58274
|
|
|
58271
58275
|
// src/validations/result.ts
|
|
58272
58276
|
init_esm_shims();
|
|
58273
|
-
var
|
|
58274
|
-
var Result = (0,
|
|
58275
|
-
(0,
|
|
58276
|
-
Error: (0,
|
|
58277
|
-
Ok:
|
|
58277
|
+
var import_variant25 = __toESM(require_lib(), 1);
|
|
58278
|
+
var Result = (0, import_variant25.variant)(
|
|
58279
|
+
(0, import_variant25.onTerms)(({ T }) => ({
|
|
58280
|
+
Error: (0, import_variant25.payload)(T),
|
|
58281
|
+
Ok: import_variant25.nil
|
|
58278
58282
|
}))
|
|
58279
58283
|
);
|
|
58280
58284
|
|
|
@@ -58364,7 +58368,7 @@ var AuthProvider2 = ({ userInfo: userInfo2, children }) => {
|
|
|
58364
58368
|
// src/components/Questions/Questions.tsx
|
|
58365
58369
|
init_esm_shims();
|
|
58366
58370
|
var import_react115 = __toESM(require_react(), 1);
|
|
58367
|
-
var
|
|
58371
|
+
var import_variant35 = __toESM(require_lib(), 1);
|
|
58368
58372
|
|
|
58369
58373
|
// ../dev-center-client/src/index.ts
|
|
58370
58374
|
init_esm_shims();
|
|
@@ -66766,14 +66770,14 @@ function useDevCenterClient({
|
|
|
66766
66770
|
|
|
66767
66771
|
// src/parse-command-options.ts
|
|
66768
66772
|
init_esm_shims();
|
|
66769
|
-
var
|
|
66773
|
+
var import_variant26 = __toESM(require_lib(), 1);
|
|
66770
66774
|
var import_kebabCase2 = __toESM(require_kebabCase(), 1);
|
|
66771
66775
|
import { join as join6, resolve as resolve3 } from "node:path";
|
|
66772
|
-
var TemplateSource = (0,
|
|
66773
|
-
App: (0,
|
|
66774
|
-
GitRepo: (0,
|
|
66775
|
-
Local: (0,
|
|
66776
|
-
Default: (0,
|
|
66776
|
+
var TemplateSource = (0, import_variant26.variant)({
|
|
66777
|
+
App: (0, import_variant26.payload)(),
|
|
66778
|
+
GitRepo: (0, import_variant26.fields)(),
|
|
66779
|
+
Local: (0, import_variant26.fields)(),
|
|
66780
|
+
Default: (0, import_variant26.constant)({ path: resolve3(__dirname, "../templates/app") })
|
|
66777
66781
|
});
|
|
66778
66782
|
async function parseTemplateOptions(options, { devCenterClient }) {
|
|
66779
66783
|
if (options.template) {
|
|
@@ -66806,8 +66810,8 @@ async function parseTemplateOptions(options, { devCenterClient }) {
|
|
|
66806
66810
|
return TemplateSource.Local({ path: options.templatePath });
|
|
66807
66811
|
}
|
|
66808
66812
|
}
|
|
66809
|
-
var AppNameOptions = (0,
|
|
66810
|
-
Provided: (0,
|
|
66813
|
+
var AppNameOptions = (0, import_variant26.variant)({
|
|
66814
|
+
Provided: (0, import_variant26.fields)(),
|
|
66811
66815
|
Missing: {}
|
|
66812
66816
|
});
|
|
66813
66817
|
async function parseAppNameOptions(targetParentFolder2, options) {
|
|
@@ -66823,7 +66827,7 @@ async function parseAppNameOptions(targetParentFolder2, options) {
|
|
|
66823
66827
|
});
|
|
66824
66828
|
}
|
|
66825
66829
|
const npmValidationErrors = await validatePackageName(packageName);
|
|
66826
|
-
if ((0,
|
|
66830
|
+
if ((0, import_variant26.isType)(npmValidationErrors, "Error")) {
|
|
66827
66831
|
throw new CliError({
|
|
66828
66832
|
code: CliErrorCode.AppNameArgumentIsInvalid({
|
|
66829
66833
|
errorMessage: `Invalid package name "${packageName}". Please fix the following issues: ${npmValidationErrors.payload.join(", ")}`
|
|
@@ -66838,7 +66842,7 @@ async function parseAppNameOptions(targetParentFolder2, options) {
|
|
|
66838
66842
|
async function parseCommandOptions(targetParentFolder2, options, clients) {
|
|
66839
66843
|
const template = await parseTemplateOptions(options, clients);
|
|
66840
66844
|
const appNameOptions = await parseAppNameOptions(targetParentFolder2, options);
|
|
66841
|
-
if ((0,
|
|
66845
|
+
if ((0, import_variant26.isType)(appNameOptions, "Provided") && !template) {
|
|
66842
66846
|
throw new CliError({
|
|
66843
66847
|
code: CliErrorCode.AppNameArgumentIsInvalid({
|
|
66844
66848
|
errorMessage: "An application name was provided, but no template was specified. Please specify a template when defining the application name."
|
|
@@ -66851,8 +66855,8 @@ async function parseCommandOptions(targetParentFolder2, options, clients) {
|
|
|
66851
66855
|
|
|
66852
66856
|
// src/types.ts
|
|
66853
66857
|
init_esm_shims();
|
|
66854
|
-
var
|
|
66855
|
-
var DeveloperAppsStatus = (0,
|
|
66858
|
+
var import_variant27 = __toESM(require_lib(), 1);
|
|
66859
|
+
var DeveloperAppsStatus = (0, import_variant27.variant)({
|
|
66856
66860
|
NoApps: {},
|
|
66857
66861
|
FailedLoadingApps: {},
|
|
66858
66862
|
Available: {}
|
|
@@ -66861,16 +66865,16 @@ var DeveloperAppsStatus = (0, import_variant26.variant)({
|
|
|
66861
66865
|
// src/components/CreateAppOrExtendExisting.tsx
|
|
66862
66866
|
init_esm_shims();
|
|
66863
66867
|
var import_react101 = __toESM(require_react(), 1);
|
|
66864
|
-
var
|
|
66868
|
+
var import_variant28 = __toESM(require_lib(), 1);
|
|
66865
66869
|
var CreateAppOrExtendExisting = ({
|
|
66866
66870
|
developerAppsStatus,
|
|
66867
66871
|
onStartCreationFlow
|
|
66868
66872
|
}) => {
|
|
66869
66873
|
const { t: t3 } = useTranslation();
|
|
66870
66874
|
const { cliFlowStepAnswered } = useCreateAppBi();
|
|
66871
|
-
const exisitingAvailabilty = (0,
|
|
66875
|
+
const exisitingAvailabilty = (0, import_variant28.match)(
|
|
66872
66876
|
developerAppsStatus,
|
|
66873
|
-
(0,
|
|
66877
|
+
(0, import_variant28.lookup)({
|
|
66874
66878
|
FailedLoadingApps: SelectOptionAvailability.Disabled({
|
|
66875
66879
|
reason: t3("create_app.create_new_or_extend.failed_fetching_apps")
|
|
66876
66880
|
}),
|
|
@@ -66911,7 +66915,7 @@ var CreateAppOrExtendExisting = ({
|
|
|
66911
66915
|
// src/components/Questions/NewAppFlow.tsx
|
|
66912
66916
|
init_esm_shims();
|
|
66913
66917
|
var import_react111 = __toESM(require_react(), 1);
|
|
66914
|
-
var
|
|
66918
|
+
var import_variant33 = __toESM(require_lib(), 1);
|
|
66915
66919
|
|
|
66916
66920
|
// src/components/ChooseAppName.tsx
|
|
66917
66921
|
init_esm_shims();
|
|
@@ -66941,7 +66945,7 @@ var ChooseAppName = ({ onSubmit }) => {
|
|
|
66941
66945
|
// src/components/ChoosePackageName.tsx
|
|
66942
66946
|
init_esm_shims();
|
|
66943
66947
|
var import_react104 = __toESM(require_react(), 1);
|
|
66944
|
-
var
|
|
66948
|
+
var import_variant29 = __toESM(require_lib(), 1);
|
|
66945
66949
|
import { join as join7, relative } from "node:path";
|
|
66946
66950
|
var import_kebabCase3 = __toESM(require_kebabCase(), 1);
|
|
66947
66951
|
|
|
@@ -66990,13 +66994,13 @@ var ChoosePackageName = ({
|
|
|
66990
66994
|
const defaultPackageName = (0, import_react104.useMemo)(() => {
|
|
66991
66995
|
return (0, import_kebabCase3.default)(appName);
|
|
66992
66996
|
}, [appName]);
|
|
66993
|
-
const isMonorepo = (0,
|
|
66997
|
+
const isMonorepo = (0, import_variant29.isType)(repoType, RepoType.Monorepo);
|
|
66994
66998
|
async function validate3(packageName2) {
|
|
66995
66999
|
if (!await validateDirectory(join7(targetParentFolder2, packageName2))) {
|
|
66996
67000
|
return t3("validation_errors.invalid_directory");
|
|
66997
67001
|
}
|
|
66998
67002
|
const npmValidationErrors = await validatePackageName(packageName2);
|
|
66999
|
-
return (0,
|
|
67003
|
+
return (0, import_variant29.match)(npmValidationErrors, {
|
|
67000
67004
|
Ok: () => true,
|
|
67001
67005
|
Error: ({ payload: payload6 }) => t3("validation_errors.invalid_package_name", {
|
|
67002
67006
|
errors: payload6.join(", ")
|
|
@@ -67094,7 +67098,7 @@ var ChooseAppCreationSource = ({
|
|
|
67094
67098
|
// src/components/ChooseTemplate.tsx
|
|
67095
67099
|
init_esm_shims();
|
|
67096
67100
|
var import_react106 = __toESM(require_react(), 1);
|
|
67097
|
-
var
|
|
67101
|
+
var import_variant30 = __toESM(require_lib(), 1);
|
|
67098
67102
|
var ChooseTemplate = ({ onSelected }) => {
|
|
67099
67103
|
const { t: t3 } = useTranslation();
|
|
67100
67104
|
const { cliFlowStepAnswered } = useCreateAppBi();
|
|
@@ -67113,7 +67117,7 @@ var ChooseTemplate = ({ onSelected }) => {
|
|
|
67113
67117
|
})
|
|
67114
67118
|
};
|
|
67115
67119
|
}, []);
|
|
67116
|
-
return /* @__PURE__ */ import_react106.default.createElement(import_react106.default.Fragment, null, (0,
|
|
67120
|
+
return /* @__PURE__ */ import_react106.default.createElement(import_react106.default.Fragment, null, (0, import_variant30.match)(status, {
|
|
67117
67121
|
Error: () => null,
|
|
67118
67122
|
Loading: () => /* @__PURE__ */ import_react106.default.createElement(Spinner2, null),
|
|
67119
67123
|
Success: ({ result: { appTemplatesOptions } }) => /* @__PURE__ */ import_react106.default.createElement(import_react106.default.Fragment, null, /* @__PURE__ */ import_react106.default.createElement(
|
|
@@ -67194,8 +67198,8 @@ var AppRegistered = ({ appName }) => {
|
|
|
67194
67198
|
// src/components/mcp/ConfigMcp.tsx
|
|
67195
67199
|
init_esm_shims();
|
|
67196
67200
|
var import_react110 = __toESM(require_react(), 1);
|
|
67197
|
-
var
|
|
67198
|
-
var IdeForMcp = (0,
|
|
67201
|
+
var import_variant31 = __toESM(require_lib(), 1);
|
|
67202
|
+
var IdeForMcp = (0, import_variant31.variant)({
|
|
67199
67203
|
VsCode: {},
|
|
67200
67204
|
Cursor: {},
|
|
67201
67205
|
ClaudeCode: {}
|
|
@@ -67252,17 +67256,17 @@ var ConfigMcp = ({ onSelected }) => {
|
|
|
67252
67256
|
|
|
67253
67257
|
// src/components/mcp/getMcpResult.ts
|
|
67254
67258
|
init_esm_shims();
|
|
67255
|
-
var
|
|
67259
|
+
var import_variant32 = __toESM(require_lib(), 1);
|
|
67256
67260
|
import { join as join8 } from "node:path";
|
|
67257
|
-
var McpConfigResult = (0,
|
|
67258
|
-
Created: (0,
|
|
67261
|
+
var McpConfigResult = (0, import_variant32.variant)({
|
|
67262
|
+
Created: (0, import_variant32.fields)(),
|
|
67259
67263
|
Canceled: {}
|
|
67260
67264
|
});
|
|
67261
67265
|
var getMcpData = ({
|
|
67262
67266
|
ideForMcp,
|
|
67263
67267
|
packageFolder
|
|
67264
67268
|
}) => {
|
|
67265
|
-
const mcpPath = (0,
|
|
67269
|
+
const mcpPath = (0, import_variant32.match)(ideForMcp, {
|
|
67266
67270
|
Cursor: () => join8(packageFolder, ".cursor", "mcp.json"),
|
|
67267
67271
|
VsCode: () => join8(packageFolder, ".vscode", "mcp.json"),
|
|
67268
67272
|
ClaudeCode: () => join8(packageFolder, ".mcp.json")
|
|
@@ -67270,9 +67274,9 @@ var getMcpData = ({
|
|
|
67270
67274
|
return McpConfigResult.Created({
|
|
67271
67275
|
mcpPath,
|
|
67272
67276
|
ideForMcp,
|
|
67273
|
-
docsUrl: (0,
|
|
67277
|
+
docsUrl: (0, import_variant32.match)(
|
|
67274
67278
|
ideForMcp,
|
|
67275
|
-
(0,
|
|
67279
|
+
(0, import_variant32.lookup)({
|
|
67276
67280
|
Cursor: "https://cursor.com/docs/context/mcp",
|
|
67277
67281
|
VsCode: "https://code.visualstudio.com/docs/copilot/chat/mcp-servers",
|
|
67278
67282
|
ClaudeCode: "https://docs.anthropic.com/en/docs/claude-code/mcp"
|
|
@@ -67309,9 +67313,9 @@ var NewAppFlow = ({
|
|
|
67309
67313
|
const [packageName, setPackageName] = (0, import_react111.useState)();
|
|
67310
67314
|
const createAppCallback = useAsyncCallback3(
|
|
67311
67315
|
async (_2, { appName: appName2, packageName: packageName2, template, mcpConfigResult }) => {
|
|
67312
|
-
const { id: appId } = await (0,
|
|
67316
|
+
const { id: appId } = await (0, import_variant33.match)(
|
|
67313
67317
|
template,
|
|
67314
|
-
(0,
|
|
67318
|
+
(0, import_variant33.partial)({
|
|
67315
67319
|
App: ({ payload: payload6 }) => devCenterClient.createAppFromTemplate(
|
|
67316
67320
|
{
|
|
67317
67321
|
name: appName2,
|
|
@@ -67337,7 +67341,7 @@ var NewAppFlow = ({
|
|
|
67337
67341
|
};
|
|
67338
67342
|
}
|
|
67339
67343
|
);
|
|
67340
|
-
const autoCreateApp = (0,
|
|
67344
|
+
const autoCreateApp = (0, import_variant33.isType)(appNameFromOptions, "Provided") && !!templateFromOptions;
|
|
67341
67345
|
useAsync2(async () => {
|
|
67342
67346
|
if (autoCreateApp) {
|
|
67343
67347
|
return createAppCallback.execute({
|
|
@@ -67355,7 +67359,7 @@ var NewAppFlow = ({
|
|
|
67355
67359
|
targetParentFolder: targetParentFolder2,
|
|
67356
67360
|
repoType,
|
|
67357
67361
|
onSelected: (userPackageName) => {
|
|
67358
|
-
if ((0,
|
|
67362
|
+
if ((0, import_variant33.isType)(repoType, RepoType.Monorepo)) {
|
|
67359
67363
|
void createAppCallback.execute({
|
|
67360
67364
|
appName,
|
|
67361
67365
|
packageName: userPackageName,
|
|
@@ -67383,7 +67387,7 @@ var NewAppFlow = ({
|
|
|
67383
67387
|
});
|
|
67384
67388
|
}
|
|
67385
67389
|
}
|
|
67386
|
-
)), (0,
|
|
67390
|
+
)), (0, import_variant33.match)(createAppCallback.status, {
|
|
67387
67391
|
Error: () => null,
|
|
67388
67392
|
Loading: () => /* @__PURE__ */ import_react111.default.createElement(RegisteringApp, null),
|
|
67389
67393
|
Success: ({ result }) => /* @__PURE__ */ import_react111.default.createElement(AppRegistered, { ...result }),
|
|
@@ -67472,11 +67476,11 @@ var ExistingAppFlow = ({
|
|
|
67472
67476
|
// src/components/StartFromTemplateMessage.tsx
|
|
67473
67477
|
init_esm_shims();
|
|
67474
67478
|
var import_react114 = __toESM(require_react(), 1);
|
|
67475
|
-
var
|
|
67479
|
+
var import_variant34 = __toESM(require_lib(), 1);
|
|
67476
67480
|
var StartFromTemplateMessage = ({
|
|
67477
67481
|
template
|
|
67478
67482
|
}) => {
|
|
67479
|
-
const messageComponent = (0,
|
|
67483
|
+
const messageComponent = (0, import_variant34.match)(template, {
|
|
67480
67484
|
App: ({ payload: payload6 }) => /* @__PURE__ */ import_react114.default.createElement(
|
|
67481
67485
|
Trans2,
|
|
67482
67486
|
{
|
|
@@ -67554,7 +67558,7 @@ var Questions = ({
|
|
|
67554
67558
|
};
|
|
67555
67559
|
}
|
|
67556
67560
|
}, []);
|
|
67557
|
-
return (0,
|
|
67561
|
+
return (0, import_variant35.match)(status, {
|
|
67558
67562
|
Error: () => null,
|
|
67559
67563
|
Loading: () => /* @__PURE__ */ import_react115.default.createElement(Spinner2, { text: t3("general.loading") }),
|
|
67560
67564
|
Success: ({
|
|
@@ -67572,7 +67576,7 @@ var Questions = ({
|
|
|
67572
67576
|
}
|
|
67573
67577
|
));
|
|
67574
67578
|
}
|
|
67575
|
-
if ((0,
|
|
67579
|
+
if ((0, import_variant35.isType)(developerAppsStatus, "NoApps")) {
|
|
67576
67580
|
return /* @__PURE__ */ import_react115.default.createElement(
|
|
67577
67581
|
NewAppFlow,
|
|
67578
67582
|
{
|
|
@@ -67610,7 +67614,7 @@ var Questions = ({
|
|
|
67610
67614
|
|
|
67611
67615
|
// src/tasks.ts
|
|
67612
67616
|
init_esm_shims();
|
|
67613
|
-
var
|
|
67617
|
+
var import_variant36 = __toESM(require_lib(), 1);
|
|
67614
67618
|
import { mkdir } from "node:fs/promises";
|
|
67615
67619
|
import { join as join9 } from "node:path";
|
|
67616
67620
|
function getTasks({
|
|
@@ -67635,7 +67639,7 @@ function getTasks({
|
|
|
67635
67639
|
cause: e2
|
|
67636
67640
|
});
|
|
67637
67641
|
}
|
|
67638
|
-
const { generateApp } = await import("./generator-
|
|
67642
|
+
const { generateApp } = await import("./generator-BDJKUNKO.js");
|
|
67639
67643
|
await generateApp({
|
|
67640
67644
|
packageName,
|
|
67641
67645
|
packageFolder,
|
|
@@ -67644,7 +67648,7 @@ function getTasks({
|
|
|
67644
67648
|
repoType,
|
|
67645
67649
|
template,
|
|
67646
67650
|
templateParams,
|
|
67647
|
-
ideForMcp: (0,
|
|
67651
|
+
ideForMcp: (0, import_variant36.match)(mcpConfigResult, {
|
|
67648
67652
|
Created: ({ ideForMcp }) => ideForMcp,
|
|
67649
67653
|
Canceled: () => {
|
|
67650
67654
|
}
|
|
@@ -67737,7 +67741,7 @@ function getTasks({
|
|
|
67737
67741
|
successText: t3("create_app.generate_project.git_commit.done")
|
|
67738
67742
|
};
|
|
67739
67743
|
const optionalInstallTask = skipInstall ? [] : [installDependenciesTask, addWixSkillsTask];
|
|
67740
|
-
return (0,
|
|
67744
|
+
return (0, import_variant36.match)(repoType, {
|
|
67741
67745
|
None: () => [
|
|
67742
67746
|
generateProjectTask,
|
|
67743
67747
|
...skipGit ? [] : [initializeGitTask],
|
|
@@ -67833,8 +67837,8 @@ var TaskList = ({ tasks, totalTaskCount }) => {
|
|
|
67833
67837
|
// src/task-runner.ts
|
|
67834
67838
|
init_esm_shims();
|
|
67835
67839
|
var import_react118 = __toESM(require_react(), 1);
|
|
67836
|
-
var
|
|
67837
|
-
var TaskRunnerStatus = (0,
|
|
67840
|
+
var import_variant37 = __toESM(require_lib(), 1);
|
|
67841
|
+
var TaskRunnerStatus = (0, import_variant37.variant)({
|
|
67838
67842
|
Idle: {},
|
|
67839
67843
|
Running: (runningTasks, totalTaskCount) => {
|
|
67840
67844
|
const taskStatuses = runningTasks.map((task, index) => {
|
|
@@ -67919,7 +67923,7 @@ var CreateAppCommand = ({ userInfo: userInfo2, targetParentFolder: targetParentF
|
|
|
67919
67923
|
const tasks = getTasks(data, t3);
|
|
67920
67924
|
await executeTaskRunner(tasks);
|
|
67921
67925
|
}
|
|
67922
|
-
return (0,
|
|
67926
|
+
return (0, import_variant38.match)(status, {
|
|
67923
67927
|
Error: () => null,
|
|
67924
67928
|
Loading: () => /* @__PURE__ */ import_react120.default.createElement(Spinner2, { text: t3("general.loading") }),
|
|
67925
67929
|
Success: ({ result: { repoType, packageManager } }) => {
|
|
@@ -67952,10 +67956,10 @@ var CreateAppCommand = ({ userInfo: userInfo2, targetParentFolder: targetParentF
|
|
|
67952
67956
|
})
|
|
67953
67957
|
}
|
|
67954
67958
|
)),
|
|
67955
|
-
generationData && (0,
|
|
67959
|
+
generationData && (0, import_variant38.match)(taskRunnerStatus, {
|
|
67956
67960
|
Idle: () => null,
|
|
67957
67961
|
Running: (status2) => /* @__PURE__ */ import_react120.default.createElement(GenerationProgress, { ...status2 }),
|
|
67958
|
-
Done: (status2) => /* @__PURE__ */ import_react120.default.createElement(import_react120.default.Fragment, null, /* @__PURE__ */ import_react120.default.createElement(GenerationProgress, { ...status2 }), (0,
|
|
67962
|
+
Done: (status2) => /* @__PURE__ */ import_react120.default.createElement(import_react120.default.Fragment, null, /* @__PURE__ */ import_react120.default.createElement(GenerationProgress, { ...status2 }), (0, import_variant38.match)(generationData.mcpConfigResult, {
|
|
67959
67963
|
Created: ({ mcpPath, docsUrl }) => /* @__PURE__ */ import_react120.default.createElement(McpConfigCreated, { mcpPath, docsUrl }),
|
|
67960
67964
|
Canceled: () => null
|
|
67961
67965
|
}), /* @__PURE__ */ import_react120.default.createElement(
|