@wix/create-app 0.0.103 → 0.0.104
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/index.js +93 -145
- package/build/index.js.map +1 -1
- package/package.json +3 -3
package/build/index.js
CHANGED
|
@@ -11042,9 +11042,9 @@ var require_verror = __commonJS({
|
|
|
11042
11042
|
}
|
|
11043
11043
|
});
|
|
11044
11044
|
|
|
11045
|
-
// ../../node_modules/
|
|
11045
|
+
// ../../node_modules/retry/lib/retry_operation.js
|
|
11046
11046
|
var require_retry_operation = __commonJS({
|
|
11047
|
-
"../../node_modules/
|
|
11047
|
+
"../../node_modules/retry/lib/retry_operation.js"(exports, module2) {
|
|
11048
11048
|
"use strict";
|
|
11049
11049
|
init_esm_shims();
|
|
11050
11050
|
function RetryOperation(timeouts, options) {
|
|
@@ -11179,9 +11179,9 @@ var require_retry_operation = __commonJS({
|
|
|
11179
11179
|
}
|
|
11180
11180
|
});
|
|
11181
11181
|
|
|
11182
|
-
// ../../node_modules/
|
|
11182
|
+
// ../../node_modules/retry/lib/retry.js
|
|
11183
11183
|
var require_retry = __commonJS({
|
|
11184
|
-
"../../node_modules/
|
|
11184
|
+
"../../node_modules/retry/lib/retry.js"(exports) {
|
|
11185
11185
|
"use strict";
|
|
11186
11186
|
init_esm_shims();
|
|
11187
11187
|
var RetryOperation = require_retry_operation();
|
|
@@ -11267,9 +11267,9 @@ var require_retry = __commonJS({
|
|
|
11267
11267
|
}
|
|
11268
11268
|
});
|
|
11269
11269
|
|
|
11270
|
-
// ../../node_modules/
|
|
11270
|
+
// ../../node_modules/retry/index.js
|
|
11271
11271
|
var require_retry2 = __commonJS({
|
|
11272
|
-
"../../node_modules/
|
|
11272
|
+
"../../node_modules/retry/index.js"(exports, module2) {
|
|
11273
11273
|
"use strict";
|
|
11274
11274
|
init_esm_shims();
|
|
11275
11275
|
module2.exports = require_retry();
|
|
@@ -51727,6 +51727,7 @@ var ConfirmInput = ({
|
|
|
51727
51727
|
label,
|
|
51728
51728
|
info,
|
|
51729
51729
|
initialValue = true,
|
|
51730
|
+
isActive,
|
|
51730
51731
|
onSubmit
|
|
51731
51732
|
}) => {
|
|
51732
51733
|
const [inputState, setInputState] = (0, import_react40.useState)(
|
|
@@ -51739,6 +51740,11 @@ var ConfirmInput = ({
|
|
|
51739
51740
|
},
|
|
51740
51741
|
[onSubmit]
|
|
51741
51742
|
);
|
|
51743
|
+
(0, import_react40.useEffect)(() => {
|
|
51744
|
+
if (isActive) {
|
|
51745
|
+
setInputState(InputState.NotSubmitted(inputState.value));
|
|
51746
|
+
}
|
|
51747
|
+
}, [isActive]);
|
|
51742
51748
|
return /* @__PURE__ */ import_react40.default.createElement(Text2, null, /* @__PURE__ */ import_react40.default.createElement(InputLabel, null, label), " ", info && (0, import_variant3.isType)(inputState, InputState.NotSubmitted) && /* @__PURE__ */ import_react40.default.createElement(Text2, { skin: "secondary" }, info, " "), /* @__PURE__ */ import_react40.default.createElement(Placeholder, { inputState }), (0, import_variant3.isType)(inputState, InputState.NotSubmitted) && /* @__PURE__ */ import_react40.default.createElement(Input, { initialValue, onSubmit: handleSubmit }));
|
|
51743
51749
|
};
|
|
51744
51750
|
|
|
@@ -52205,6 +52211,7 @@ function SelectInput2({
|
|
|
52205
52211
|
label,
|
|
52206
52212
|
info,
|
|
52207
52213
|
options,
|
|
52214
|
+
isActive,
|
|
52208
52215
|
onSubmit,
|
|
52209
52216
|
limit = 10,
|
|
52210
52217
|
initialIndex
|
|
@@ -52238,6 +52245,11 @@ function SelectInput2({
|
|
|
52238
52245
|
})),
|
|
52239
52246
|
[options]
|
|
52240
52247
|
);
|
|
52248
|
+
(0, import_react47.useEffect)(() => {
|
|
52249
|
+
if (isActive) {
|
|
52250
|
+
setInputState(InputState.NotSubmitted(inputState.value));
|
|
52251
|
+
}
|
|
52252
|
+
}, [isActive]);
|
|
52241
52253
|
return /* @__PURE__ */ import_react47.default.createElement(import_react47.default.Fragment, null, /* @__PURE__ */ import_react47.default.createElement(Box_default, { marginLeft: -2, marginBottom: 1 }, /* @__PURE__ */ import_react47.default.createElement(Text2, null, /* @__PURE__ */ import_react47.default.createElement(InputLabel, null, label), " ", info && (0, import_variant7.isType)(inputState, InputState.NotSubmitted) && /* @__PURE__ */ import_react47.default.createElement(Text2, { skin: "secondary" }, info))), /* @__PURE__ */ import_react47.default.createElement(Placeholder2, { inputState }), (0, import_variant7.isType)(inputState, InputState.NotSubmitted) && /* @__PURE__ */ import_react47.default.createElement(Box_default, null, /* @__PURE__ */ import_react47.default.createElement(
|
|
52242
52254
|
SelectInput_default,
|
|
52243
52255
|
{
|
|
@@ -52292,6 +52304,7 @@ var import_react49 = __toESM(require_react(), 1);
|
|
|
52292
52304
|
var import_variant8 = __toESM(require_lib(), 1);
|
|
52293
52305
|
var TextInput2 = ({
|
|
52294
52306
|
label,
|
|
52307
|
+
isActive,
|
|
52295
52308
|
placeholder,
|
|
52296
52309
|
onSubmit,
|
|
52297
52310
|
validate: validate3 = () => true,
|
|
@@ -52317,6 +52330,11 @@ var TextInput2 = ({
|
|
|
52317
52330
|
[onSubmit, validate3]
|
|
52318
52331
|
);
|
|
52319
52332
|
const afterValidationError = Boolean(validationError && !isDirty2);
|
|
52333
|
+
(0, import_react49.useEffect)(() => {
|
|
52334
|
+
if (isActive) {
|
|
52335
|
+
setInputState(InputState.NotSubmitted(inputState.value));
|
|
52336
|
+
}
|
|
52337
|
+
}, [isActive]);
|
|
52320
52338
|
return /* @__PURE__ */ import_react49.default.createElement(import_react49.default.Fragment, null, /* @__PURE__ */ import_react49.default.createElement(Box_default, { marginBottom: 1, marginLeft: inCreateFlow ? -2 : 0 }, /* @__PURE__ */ import_react49.default.createElement(Text2, null, /* @__PURE__ */ import_react49.default.createElement(
|
|
52321
52339
|
InputLabel,
|
|
52322
52340
|
{
|
|
@@ -57078,7 +57096,6 @@ var CliSystemErrorCode = (0, import_variant11.variant)({
|
|
|
57078
57096
|
FailedToGetDeveloperApps: {},
|
|
57079
57097
|
FailedToUpdateTelemetryConfig: {},
|
|
57080
57098
|
FailedToSyncToRevision: (0, import_variant11.fields)(),
|
|
57081
|
-
FailedToCreateVersion: {},
|
|
57082
57099
|
FailedToReadCache: (0, import_variant11.fields)(),
|
|
57083
57100
|
FailedToWriteCache: (0, import_variant11.fields)(),
|
|
57084
57101
|
UploadApplicationFailed: {},
|
|
@@ -57104,7 +57121,6 @@ var CliSystemErrorCode = (0, import_variant11.variant)({
|
|
|
57104
57121
|
ViteFileNotFoundInOutput: (0, import_variant11.fields)(),
|
|
57105
57122
|
FailedToCreateBackendDeployment: {},
|
|
57106
57123
|
FailedToUpdateBackendDeployment: {},
|
|
57107
|
-
InvalidDeploymentUrl: (0, import_variant11.fields)(),
|
|
57108
57124
|
FailedToGetBackendDeployment: {},
|
|
57109
57125
|
FailedToDeployBackend: {},
|
|
57110
57126
|
FailedToGetUserInfo: {},
|
|
@@ -57116,13 +57132,11 @@ var CliSystemErrorCode = (0, import_variant11.variant)({
|
|
|
57116
57132
|
FailedToQueryApps: {},
|
|
57117
57133
|
FailedToGetMarketListing: {},
|
|
57118
57134
|
FailedToAddRequiredApp: {},
|
|
57119
|
-
FailedToGetAppValidity: {},
|
|
57120
57135
|
FailedToQuerySites: {},
|
|
57121
57136
|
FailedToGetSite: {},
|
|
57122
57137
|
FailedToDeploySite: {},
|
|
57123
57138
|
FailedToDeploySitePreview: {},
|
|
57124
57139
|
FailedToPublishDeployment: {},
|
|
57125
|
-
FailedToMarkDeploymentAsPermanent: {},
|
|
57126
57140
|
FailedToGetAppInstallationDetails: (0, import_variant11.fields)(),
|
|
57127
57141
|
TypeErrorInvalidUrl: {},
|
|
57128
57142
|
FailedToGenerateSelfSignedCertificate: {},
|
|
@@ -57210,7 +57224,6 @@ var CliUserErrorCode = (0, import_variant11.variant)({
|
|
|
57210
57224
|
PermissionDenied: {},
|
|
57211
57225
|
SiteSelectorTimedout: {},
|
|
57212
57226
|
FailedToReadProjectFiles: {},
|
|
57213
|
-
FailedToCreateVersionForSubmittedApp: {},
|
|
57214
57227
|
GridAppFilesMaxLengthExceeded: (0, import_variant11.fields)(),
|
|
57215
57228
|
DeviceCodeTimedOut: {},
|
|
57216
57229
|
DuplicateComponentIdsError: (0, import_variant11.fields)(),
|
|
@@ -57267,7 +57280,8 @@ var CliUserErrorCode = (0, import_variant11.variant)({
|
|
|
57267
57280
|
WebMethodOutsideOfProjectDirectory: (0, import_variant11.fields)(),
|
|
57268
57281
|
FailedToEvalBackendExtension: (0, import_variant11.fields)(),
|
|
57269
57282
|
DeploymentPipelineFailed: (0, import_variant11.fields)(),
|
|
57270
|
-
InsufficientNonInterractiveReleaseParameters: {}
|
|
57283
|
+
InsufficientNonInterractiveReleaseParameters: {},
|
|
57284
|
+
CannotReleaseMinorInNoninteractive: {}
|
|
57271
57285
|
});
|
|
57272
57286
|
var CliErrorCode = (0, import_variant11.variant)({
|
|
57273
57287
|
...CliSystemErrorCode,
|
|
@@ -66468,7 +66482,7 @@ var OutdatedVersionMessage = ({
|
|
|
66468
66482
|
init_esm_shims();
|
|
66469
66483
|
var import_react76 = __toESM(require_react(), 1);
|
|
66470
66484
|
var CreateVersionDeprecationMessage = ({ packageManagerRunCmd }) => {
|
|
66471
|
-
return /* @__PURE__ */ import_react76.default.createElement(Box_default, { rowGap: 1, paddingBottom: 1, flexDirection: "column" }, /* @__PURE__ */ import_react76.default.createElement(Alert, { type: "error" }, "Deprecation Notice"), /* @__PURE__ */ import_react76.default.createElement(Text2, null, /* @__PURE__ */ import_react76.default.createElement(Text2, { skin: "info" }, "create-version"), " command is being replaced by", " ", /* @__PURE__ */ import_react76.default.createElement(Text2, { skin: "info" }, "release"), " command."), packageManagerRunCmd ? /* @__PURE__ */ import_react76.default.createElement(Text2, null, "With ", /* @__PURE__ */ import_react76.default.createElement(Text2, { skin: "info" }, packageManagerRunCmd, " release"), " you can:") : /* @__PURE__ */ import_react76.default.createElement(Text2, null, "With the ", /* @__PURE__ */ import_react76.default.createElement(Text2, { skin: "info" }, "release"), " command you can:"), /* @__PURE__ */ import_react76.default.createElement(UnorderedList, { paddingLeft: 2 }, /* @__PURE__ */ import_react76.default.createElement(UnorderedList.Item, null, /* @__PURE__ */ import_react76.default.createElement(Text2, null, "Add comments for each version you release.")), /* @__PURE__ */ import_react76.default.createElement(UnorderedList.Item, null, /* @__PURE__ */ import_react76.default.createElement(Text2, null, "Release new versions instantly without submitting for review.")), /* @__PURE__ */ import_react76.default.createElement(UnorderedList.Item, null, /* @__PURE__ */ import_react76.default.createElement(Text2, null, "Explore different ways to distribute your app."))));
|
|
66485
|
+
return /* @__PURE__ */ import_react76.default.createElement(Box_default, { rowGap: 1, paddingBottom: 1, flexDirection: "column" }, /* @__PURE__ */ import_react76.default.createElement(Alert, { type: "error" }, "Deprecation Notice"), /* @__PURE__ */ import_react76.default.createElement(Text2, null, /* @__PURE__ */ import_react76.default.createElement(Text2, { skin: "info" }, "create-version"), " command is being replaced by", " ", /* @__PURE__ */ import_react76.default.createElement(Text2, { skin: "info" }, "release"), " command."), packageManagerRunCmd ? /* @__PURE__ */ import_react76.default.createElement(Text2, null, "With ", /* @__PURE__ */ import_react76.default.createElement(Text2, { skin: "info" }, packageManagerRunCmd, " wix app release"), " ", "you can:") : /* @__PURE__ */ import_react76.default.createElement(Text2, null, "With the ", /* @__PURE__ */ import_react76.default.createElement(Text2, { skin: "info" }, "release"), " command you can:"), /* @__PURE__ */ import_react76.default.createElement(UnorderedList, { paddingLeft: 2 }, /* @__PURE__ */ import_react76.default.createElement(UnorderedList.Item, null, /* @__PURE__ */ import_react76.default.createElement(Text2, null, "Add comments for each version you release.")), /* @__PURE__ */ import_react76.default.createElement(UnorderedList.Item, null, /* @__PURE__ */ import_react76.default.createElement(Text2, null, "Release new versions instantly without submitting for review.")), /* @__PURE__ */ import_react76.default.createElement(UnorderedList.Item, null, /* @__PURE__ */ import_react76.default.createElement(Text2, null, "Explore different ways to distribute your app."))));
|
|
66472
66486
|
};
|
|
66473
66487
|
|
|
66474
66488
|
// ../cli-error-reporting/src/get-error-component.tsx
|
|
@@ -66678,9 +66692,6 @@ function getErrorComponent(code, cause) {
|
|
|
66678
66692
|
}
|
|
66679
66693
|
);
|
|
66680
66694
|
},
|
|
66681
|
-
FailedToCreateVersion: () => {
|
|
66682
|
-
return () => /* @__PURE__ */ import_react77.default.createElement(ErrorMessage, { message: "Wix CLI failed to create version for your app" });
|
|
66683
|
-
},
|
|
66684
66695
|
FailedToReadCache: ({ path: path8 }) => {
|
|
66685
66696
|
return () => /* @__PURE__ */ import_react77.default.createElement(ErrorMessage, { message: `Failed to read cache file at ${path8}.` });
|
|
66686
66697
|
},
|
|
@@ -66895,15 +66906,6 @@ function getErrorComponent(code, cause) {
|
|
|
66895
66906
|
}
|
|
66896
66907
|
);
|
|
66897
66908
|
},
|
|
66898
|
-
FailedToCreateVersionForSubmittedApp: () => {
|
|
66899
|
-
return () => /* @__PURE__ */ import_react77.default.createElement(
|
|
66900
|
-
ErrorMessage,
|
|
66901
|
-
{
|
|
66902
|
-
message: "Cannot create a new application version because the app has an active marketplace submission",
|
|
66903
|
-
hint: "You will be able continue creating versions when your submission is approved or retracted"
|
|
66904
|
-
}
|
|
66905
|
-
);
|
|
66906
|
-
},
|
|
66907
66909
|
GridAppFilesMaxLengthExceeded: ({ maxSizeViolationsData, filePaths }) => {
|
|
66908
66910
|
let errorMessage = "Found one or more project files that are bigger than the allowed limit";
|
|
66909
66911
|
if (maxSizeViolationsData?.files.length) {
|
|
@@ -67002,23 +67004,12 @@ function getErrorComponent(code, cause) {
|
|
|
67002
67004
|
FailedToUpdateBackendDeployment: () => {
|
|
67003
67005
|
return () => /* @__PURE__ */ import_react77.default.createElement(ErrorMessage, { message: "Failed to update backend deployment" });
|
|
67004
67006
|
},
|
|
67005
|
-
InvalidDeploymentUrl: ({ deploymentUrl }) => {
|
|
67006
|
-
return () => /* @__PURE__ */ import_react77.default.createElement(
|
|
67007
|
-
ErrorMessage,
|
|
67008
|
-
{
|
|
67009
|
-
message: `Invalid deployment URL: \`${deploymentUrl}\``
|
|
67010
|
-
}
|
|
67011
|
-
);
|
|
67012
|
-
},
|
|
67013
67007
|
FailedToGetBackendDeployment: () => {
|
|
67014
67008
|
return () => /* @__PURE__ */ import_react77.default.createElement(ErrorMessage, { message: "Failed to get backend deployment" });
|
|
67015
67009
|
},
|
|
67016
67010
|
FailedToDeployBackend: () => {
|
|
67017
67011
|
return () => /* @__PURE__ */ import_react77.default.createElement(ErrorMessage, { message: "Failed to deploy backend" });
|
|
67018
67012
|
},
|
|
67019
|
-
FailedToMarkDeploymentAsPermanent: () => {
|
|
67020
|
-
return () => /* @__PURE__ */ import_react77.default.createElement(ErrorMessage, { message: "Failed to make backend deployment permanent" });
|
|
67021
|
-
},
|
|
67022
67013
|
FailedToGetUserInfo: () => {
|
|
67023
67014
|
return () => /* @__PURE__ */ import_react77.default.createElement(ErrorMessage, { message: "Failed to get user information." });
|
|
67024
67015
|
},
|
|
@@ -67236,9 +67227,6 @@ function getErrorComponent(code, cause) {
|
|
|
67236
67227
|
}
|
|
67237
67228
|
);
|
|
67238
67229
|
},
|
|
67239
|
-
FailedToGetAppValidity: () => {
|
|
67240
|
-
return () => /* @__PURE__ */ import_react77.default.createElement(SystemErrorMessage, { message: "Failed to get validation status for app version" });
|
|
67241
|
-
},
|
|
67242
67230
|
InvalidDashboardPageRoute: ({ route, errorMessage }) => {
|
|
67243
67231
|
return () => /* @__PURE__ */ import_react77.default.createElement(
|
|
67244
67232
|
ErrorMessage,
|
|
@@ -67664,7 +67652,7 @@ ${errorMessage}`
|
|
|
67664
67652
|
return () => /* @__PURE__ */ import_react77.default.createElement(
|
|
67665
67653
|
ErrorMessage,
|
|
67666
67654
|
{
|
|
67667
|
-
message: `Release command in non-interactive mode requires following
|
|
67655
|
+
message: `Release command in non-interactive mode requires following parameter: --version-type`
|
|
67668
67656
|
}
|
|
67669
67657
|
);
|
|
67670
67658
|
},
|
|
@@ -67696,6 +67684,15 @@ ${errorMessage}`
|
|
|
67696
67684
|
},
|
|
67697
67685
|
FailedToFetchWixLockFile: () => {
|
|
67698
67686
|
return () => /* @__PURE__ */ import_react77.default.createElement(SystemErrorMessage, { message: `Failed to fetch "wix.lock" file.` });
|
|
67687
|
+
},
|
|
67688
|
+
CannotReleaseMinorInNoninteractive: () => {
|
|
67689
|
+
return () => /* @__PURE__ */ import_react77.default.createElement(
|
|
67690
|
+
ErrorMessage,
|
|
67691
|
+
{
|
|
67692
|
+
message: `Minor version release is not allowed.`,
|
|
67693
|
+
hint: `Please release major version.`
|
|
67694
|
+
}
|
|
67695
|
+
);
|
|
67699
67696
|
}
|
|
67700
67697
|
});
|
|
67701
67698
|
}
|
|
@@ -71189,7 +71186,7 @@ function reportCommandStartEvent({
|
|
|
71189
71186
|
var package_default = {
|
|
71190
71187
|
name: "@wix/create-app",
|
|
71191
71188
|
description: "Create Wix apps",
|
|
71192
|
-
version: "0.0.
|
|
71189
|
+
version: "0.0.104",
|
|
71193
71190
|
author: "Ihor Machuzhak",
|
|
71194
71191
|
bin: "bin/index.cjs",
|
|
71195
71192
|
devDependencies: {
|
|
@@ -71199,7 +71196,7 @@ var package_default = {
|
|
|
71199
71196
|
"@types/react": "^18.3.3",
|
|
71200
71197
|
"@types/semver": "^7.5.8",
|
|
71201
71198
|
"@types/validate-npm-package-name": "^4.0.2",
|
|
71202
|
-
"@wix/bi-logger-dev-tools-data": "^1.
|
|
71199
|
+
"@wix/bi-logger-dev-tools-data": "^1.97.0",
|
|
71203
71200
|
"@wix/cli-auth": "workspace:*",
|
|
71204
71201
|
"@wix/cli-error": "workspace:*",
|
|
71205
71202
|
"@wix/cli-error-reporting": "workspace:*",
|
|
@@ -75630,76 +75627,6 @@ function queryMarketListing(payload5) {
|
|
|
75630
75627
|
return __queryMarketListing;
|
|
75631
75628
|
}
|
|
75632
75629
|
|
|
75633
|
-
// ../../node_modules/@wix/ambassador-devcenter-app-assessment-v1-validation/build/es/http.impl.js
|
|
75634
|
-
init_esm_shims();
|
|
75635
|
-
var _getAppValidationReportRequest = {};
|
|
75636
|
-
var _getAppValidationReportResponse = {};
|
|
75637
|
-
function resolveComWixDevcenterAppValidationServiceUrl(opts) {
|
|
75638
|
-
var domainToMappings = {
|
|
75639
|
-
"bo._base_domain_": [
|
|
75640
|
-
{
|
|
75641
|
-
srcPath: "/_api/app-assessment",
|
|
75642
|
-
destPath: ""
|
|
75643
|
-
}
|
|
75644
|
-
],
|
|
75645
|
-
"wixbo.ai": [
|
|
75646
|
-
{
|
|
75647
|
-
srcPath: "/_api/app-assessment",
|
|
75648
|
-
destPath: ""
|
|
75649
|
-
}
|
|
75650
|
-
],
|
|
75651
|
-
"wix-bo.com": [
|
|
75652
|
-
{
|
|
75653
|
-
srcPath: "/_api/app-assessment",
|
|
75654
|
-
destPath: ""
|
|
75655
|
-
}
|
|
75656
|
-
],
|
|
75657
|
-
_api_base_domain_: [
|
|
75658
|
-
{
|
|
75659
|
-
srcPath: "/_api/app-assessment-service",
|
|
75660
|
-
destPath: ""
|
|
75661
|
-
}
|
|
75662
|
-
],
|
|
75663
|
-
"dev._base_domain_": [
|
|
75664
|
-
{
|
|
75665
|
-
srcPath: "/_api/app-assessment",
|
|
75666
|
-
destPath: ""
|
|
75667
|
-
}
|
|
75668
|
-
],
|
|
75669
|
-
"manage._base_domain_": [
|
|
75670
|
-
{
|
|
75671
|
-
srcPath: "/_api/app-assessment",
|
|
75672
|
-
destPath: ""
|
|
75673
|
-
}
|
|
75674
|
-
]
|
|
75675
|
-
};
|
|
75676
|
-
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
75677
|
-
}
|
|
75678
|
-
function getAppValidationReport(payload5) {
|
|
75679
|
-
var _a3 = serializer(_getAppValidationReportRequest, {}), toReq = _a3.toJSON, fromReq = _a3.fromJSON;
|
|
75680
|
-
var fromRes = serializer(_getAppValidationReportResponse, {}).fromJSON;
|
|
75681
|
-
function __getAppValidationReport(_a4) {
|
|
75682
|
-
var host = _a4.host;
|
|
75683
|
-
var serializedData = toReq(payload5);
|
|
75684
|
-
var metadata = {
|
|
75685
|
-
entityFqdn: "wix.devcenter.app_assessment.v1.validation",
|
|
75686
|
-
method: "GET",
|
|
75687
|
-
methodFqn: "com.wix.devcenter.AppValidationService.GetAppValidationReport",
|
|
75688
|
-
url: resolveComWixDevcenterAppValidationServiceUrl({
|
|
75689
|
-
protoPath: "/v1/get-app-validation-report/{appId}/{version}",
|
|
75690
|
-
data: serializedData,
|
|
75691
|
-
host
|
|
75692
|
-
}),
|
|
75693
|
-
params: toURLSearchParams(serializedData),
|
|
75694
|
-
transformResponse: fromRes
|
|
75695
|
-
};
|
|
75696
|
-
return metadata;
|
|
75697
|
-
}
|
|
75698
|
-
__getAppValidationReport.fromReq = fromReq;
|
|
75699
|
-
__getAppValidationReport.__isAmbassador = true;
|
|
75700
|
-
return __getAppValidationReport;
|
|
75701
|
-
}
|
|
75702
|
-
|
|
75703
75630
|
// ../../node_modules/@wix/ambassador-devcenter-apps-v1-app-template/build/es/http.impl.js
|
|
75704
75631
|
init_esm_shims();
|
|
75705
75632
|
var _app = {
|
|
@@ -75889,6 +75816,7 @@ var _devCenterTestingComponentData2 = {
|
|
|
75889
75816
|
nonTranslatableRichContent: "_richContent",
|
|
75890
75817
|
richContentMap: "Map#_richContent"
|
|
75891
75818
|
};
|
|
75819
|
+
var _discount = { saleInfo: "_saleInfo" };
|
|
75892
75820
|
var _displayField2 = { richContentOptions: "_richContentOptions" };
|
|
75893
75821
|
var _donationInput2 = { description: "_richContent" };
|
|
75894
75822
|
var _dropdown2 = { description: "_richContent" };
|
|
@@ -75937,7 +75865,11 @@ var _inputFieldMultilineAddress2 = {
|
|
|
75937
75865
|
var _item2 = { image: "_itemImage", video: "_video" };
|
|
75938
75866
|
var _itemImage2 = { media: "_media" };
|
|
75939
75867
|
var _itemStyle2 = { ratio: "google.protobuf.DoubleValue" };
|
|
75940
|
-
var _managedApp = {
|
|
75868
|
+
var _managedApp = {
|
|
75869
|
+
premiumInfo: "_premiumInfo",
|
|
75870
|
+
components: "_component",
|
|
75871
|
+
pricingDetails: "_pricingDetails"
|
|
75872
|
+
};
|
|
75941
75873
|
var _managedAppsRequest = {};
|
|
75942
75874
|
var _managedAppsResponse = { managedApps: "_managedApp" };
|
|
75943
75875
|
var _mapData2 = { mapSettings: "_mapSettings" };
|
|
@@ -75999,6 +75931,7 @@ var _predefinedExpectedInputConfiguration2 = {
|
|
|
75999
75931
|
};
|
|
76000
75932
|
var _premiumInfo = { freeTrialData: "_freeTrialData" };
|
|
76001
75933
|
var _presetEditorPresence2 = { wixMediaThumbnail: "_commonImage" };
|
|
75934
|
+
var _pricingDetails = { discount: "_discount" };
|
|
76002
75935
|
var _productCheckboxGroup2 = {
|
|
76003
75936
|
description: "_richContent",
|
|
76004
75937
|
options: "_productCheckboxGroupOption"
|
|
@@ -76012,6 +75945,10 @@ var _radioGroup2 = { description: "_richContent" };
|
|
|
76012
75945
|
var _ratingInput2 = { description: "_richContent" };
|
|
76013
75946
|
var _richContent2 = { nodes: "_node", metadata: "_v1Metadata" };
|
|
76014
75947
|
var _richContentOptions2 = { richContent: "_richContent" };
|
|
75948
|
+
var _saleInfo = {
|
|
75949
|
+
startDate: "google.protobuf.Timestamp",
|
|
75950
|
+
endDate: "google.protobuf.Timestamp"
|
|
75951
|
+
};
|
|
76015
75952
|
var _schema2 = {
|
|
76016
75953
|
createdDate: "google.protobuf.Timestamp",
|
|
76017
75954
|
updatedDate: "google.protobuf.Timestamp",
|
|
@@ -76149,6 +76086,7 @@ function managedApps(payload5) {
|
|
|
76149
76086
|
_description: _description2,
|
|
76150
76087
|
_design: _design2,
|
|
76151
76088
|
_devCenterTestingComponentData: _devCenterTestingComponentData2,
|
|
76089
|
+
_discount,
|
|
76152
76090
|
_displayField: _displayField2,
|
|
76153
76091
|
_donationInput: _donationInput2,
|
|
76154
76092
|
_dropdown: _dropdown2,
|
|
@@ -76201,6 +76139,7 @@ function managedApps(payload5) {
|
|
|
76201
76139
|
_predefinedExpectedInputConfiguration: _predefinedExpectedInputConfiguration2,
|
|
76202
76140
|
_premiumInfo,
|
|
76203
76141
|
_presetEditorPresence: _presetEditorPresence2,
|
|
76142
|
+
_pricingDetails,
|
|
76204
76143
|
_productCheckboxGroup: _productCheckboxGroup2,
|
|
76205
76144
|
_productCheckboxGroupOption: _productCheckboxGroupOption2,
|
|
76206
76145
|
_propertiesType: _propertiesType2,
|
|
@@ -76208,6 +76147,7 @@ function managedApps(payload5) {
|
|
|
76208
76147
|
_ratingInput: _ratingInput2,
|
|
76209
76148
|
_richContent: _richContent2,
|
|
76210
76149
|
_richContentOptions: _richContentOptions2,
|
|
76150
|
+
_saleInfo,
|
|
76211
76151
|
_schema: _schema2,
|
|
76212
76152
|
_schemaGroup: _schemaGroup2,
|
|
76213
76153
|
_shippingLabelCarrierSpiConfig: _shippingLabelCarrierSpiConfig2,
|
|
@@ -76473,6 +76413,7 @@ var ComponentType;
|
|
|
76473
76413
|
ComponentType3["LOYALTY_CUSTOM_REWARDS_V2"] = "LOYALTY_CUSTOM_REWARDS_V2";
|
|
76474
76414
|
ComponentType3["STORES_PRODUCT_RESTRICTIONS"] = "STORES_PRODUCT_RESTRICTIONS";
|
|
76475
76415
|
ComponentType3["FORM_SUBMISSION_MODERATION"] = "FORM_SUBMISSION_MODERATION";
|
|
76416
|
+
ComponentType3["EVENTS_EVENT_BADGES"] = "EVENTS_EVENT_BADGES";
|
|
76476
76417
|
})(ComponentType || (ComponentType = {}));
|
|
76477
76418
|
var WidgetVertical;
|
|
76478
76419
|
(function(WidgetVertical3) {
|
|
@@ -76770,6 +76711,7 @@ var BackOfficeHostingPlatforms;
|
|
|
76770
76711
|
BackOfficeHostingPlatforms3["AI_SCHEDULING_ASSISTANT_DASHBOARD"] = "AI_SCHEDULING_ASSISTANT_DASHBOARD";
|
|
76771
76712
|
BackOfficeHostingPlatforms3["GETTING_PAID"] = "GETTING_PAID";
|
|
76772
76713
|
BackOfficeHostingPlatforms3["DATA"] = "DATA";
|
|
76714
|
+
BackOfficeHostingPlatforms3["LITE_DASHBOARD"] = "LITE_DASHBOARD";
|
|
76773
76715
|
})(BackOfficeHostingPlatforms || (BackOfficeHostingPlatforms = {}));
|
|
76774
76716
|
var DtsDefinitionType;
|
|
76775
76717
|
(function(DtsDefinitionType3) {
|
|
@@ -76876,10 +76818,10 @@ var FilterOptionsType;
|
|
|
76876
76818
|
FilterOptionsType3["PROVIDER"] = "PROVIDER";
|
|
76877
76819
|
})(FilterOptionsType || (FilterOptionsType = {}));
|
|
76878
76820
|
var PaginationMode;
|
|
76879
|
-
(function(
|
|
76880
|
-
|
|
76881
|
-
|
|
76882
|
-
|
|
76821
|
+
(function(PaginationMode3) {
|
|
76822
|
+
PaginationMode3["UNKNOWN_PAGINATION_MODE"] = "UNKNOWN_PAGINATION_MODE";
|
|
76823
|
+
PaginationMode3["CURSOR"] = "CURSOR";
|
|
76824
|
+
PaginationMode3["OFFSET"] = "OFFSET";
|
|
76883
76825
|
})(PaginationMode || (PaginationMode = {}));
|
|
76884
76826
|
var ChannelType;
|
|
76885
76827
|
(function(ChannelType3) {
|
|
@@ -77060,6 +77002,13 @@ var Source;
|
|
|
77060
77002
|
Source3["HTML"] = "HTML";
|
|
77061
77003
|
Source3["ADSENSE"] = "ADSENSE";
|
|
77062
77004
|
})(Source || (Source = {}));
|
|
77005
|
+
var StylesPosition;
|
|
77006
|
+
(function(StylesPosition3) {
|
|
77007
|
+
StylesPosition3["START"] = "START";
|
|
77008
|
+
StylesPosition3["END"] = "END";
|
|
77009
|
+
StylesPosition3["TOP"] = "TOP";
|
|
77010
|
+
StylesPosition3["HIDDEN"] = "HIDDEN";
|
|
77011
|
+
})(StylesPosition || (StylesPosition = {}));
|
|
77063
77012
|
var MapType;
|
|
77064
77013
|
(function(MapType3) {
|
|
77065
77014
|
MapType3["ROADMAP"] = "ROADMAP";
|
|
@@ -78321,6 +78270,7 @@ var ComponentType2;
|
|
|
78321
78270
|
ComponentType3["LOYALTY_CUSTOM_REWARDS_V2"] = "LOYALTY_CUSTOM_REWARDS_V2";
|
|
78322
78271
|
ComponentType3["STORES_PRODUCT_RESTRICTIONS"] = "STORES_PRODUCT_RESTRICTIONS";
|
|
78323
78272
|
ComponentType3["FORM_SUBMISSION_MODERATION"] = "FORM_SUBMISSION_MODERATION";
|
|
78273
|
+
ComponentType3["EVENTS_EVENT_BADGES"] = "EVENTS_EVENT_BADGES";
|
|
78324
78274
|
})(ComponentType2 || (ComponentType2 = {}));
|
|
78325
78275
|
var WidgetVertical2;
|
|
78326
78276
|
(function(WidgetVertical3) {
|
|
@@ -78618,6 +78568,7 @@ var BackOfficeHostingPlatforms2;
|
|
|
78618
78568
|
BackOfficeHostingPlatforms3["AI_SCHEDULING_ASSISTANT_DASHBOARD"] = "AI_SCHEDULING_ASSISTANT_DASHBOARD";
|
|
78619
78569
|
BackOfficeHostingPlatforms3["GETTING_PAID"] = "GETTING_PAID";
|
|
78620
78570
|
BackOfficeHostingPlatforms3["DATA"] = "DATA";
|
|
78571
|
+
BackOfficeHostingPlatforms3["LITE_DASHBOARD"] = "LITE_DASHBOARD";
|
|
78621
78572
|
})(BackOfficeHostingPlatforms2 || (BackOfficeHostingPlatforms2 = {}));
|
|
78622
78573
|
var DtsDefinitionType2;
|
|
78623
78574
|
(function(DtsDefinitionType3) {
|
|
@@ -78723,6 +78674,12 @@ var FilterOptionsType2;
|
|
|
78723
78674
|
FilterOptionsType3["STATIC"] = "STATIC";
|
|
78724
78675
|
FilterOptionsType3["PROVIDER"] = "PROVIDER";
|
|
78725
78676
|
})(FilterOptionsType2 || (FilterOptionsType2 = {}));
|
|
78677
|
+
var PaginationMode2;
|
|
78678
|
+
(function(PaginationMode3) {
|
|
78679
|
+
PaginationMode3["UNKNOWN_PAGINATION_MODE"] = "UNKNOWN_PAGINATION_MODE";
|
|
78680
|
+
PaginationMode3["CURSOR"] = "CURSOR";
|
|
78681
|
+
PaginationMode3["OFFSET"] = "OFFSET";
|
|
78682
|
+
})(PaginationMode2 || (PaginationMode2 = {}));
|
|
78726
78683
|
var ChannelType2;
|
|
78727
78684
|
(function(ChannelType3) {
|
|
78728
78685
|
ChannelType3["UNKNOWN_CHANNEL_TYPE"] = "UNKNOWN_CHANNEL_TYPE";
|
|
@@ -78902,6 +78859,13 @@ var Source2;
|
|
|
78902
78859
|
Source3["HTML"] = "HTML";
|
|
78903
78860
|
Source3["ADSENSE"] = "ADSENSE";
|
|
78904
78861
|
})(Source2 || (Source2 = {}));
|
|
78862
|
+
var StylesPosition2;
|
|
78863
|
+
(function(StylesPosition3) {
|
|
78864
|
+
StylesPosition3["START"] = "START";
|
|
78865
|
+
StylesPosition3["END"] = "END";
|
|
78866
|
+
StylesPosition3["TOP"] = "TOP";
|
|
78867
|
+
StylesPosition3["HIDDEN"] = "HIDDEN";
|
|
78868
|
+
})(StylesPosition2 || (StylesPosition2 = {}));
|
|
78905
78869
|
var MapType2;
|
|
78906
78870
|
(function(MapType3) {
|
|
78907
78871
|
MapType3["ROADMAP"] = "ROADMAP";
|
|
@@ -80021,13 +79985,6 @@ var developerAppSchema = z.object({
|
|
|
80021
79985
|
var getDeveloperAppsSchema = z.object({
|
|
80022
79986
|
myApps: z.array(developerAppSchema)
|
|
80023
79987
|
});
|
|
80024
|
-
var getAppPropertiesValiditySchema = z.object({
|
|
80025
|
-
appPropertiesValidity: z.array(
|
|
80026
|
-
z.object({
|
|
80027
|
-
failures: z.array(z.string())
|
|
80028
|
-
})
|
|
80029
|
-
)
|
|
80030
|
-
});
|
|
80031
79988
|
var requiredApp = z.object({ id: z.string(), name: z.string() });
|
|
80032
79989
|
var queryAppSchema = z.object({
|
|
80033
79990
|
apps: z.array(requiredApp)
|
|
@@ -80355,23 +80312,6 @@ var DevCenterClient = class {
|
|
|
80355
80312
|
});
|
|
80356
80313
|
}
|
|
80357
80314
|
};
|
|
80358
|
-
getAppValidationFailuresCount = async (appId, version) => {
|
|
80359
|
-
try {
|
|
80360
|
-
const { data } = await this.httpClient.request(
|
|
80361
|
-
getAppValidationReport({ appId, version })
|
|
80362
|
-
);
|
|
80363
|
-
const result = getAppPropertiesValiditySchema.parse(data);
|
|
80364
|
-
const numOfFailingProperties = result.appPropertiesValidity.filter(
|
|
80365
|
-
(appProperty) => appProperty.failures.length > 0
|
|
80366
|
-
).length;
|
|
80367
|
-
return numOfFailingProperties;
|
|
80368
|
-
} catch (e2) {
|
|
80369
|
-
throw new CliError({
|
|
80370
|
-
code: CliErrorCode.FailedToGetAppValidity(),
|
|
80371
|
-
cause: e2
|
|
80372
|
-
});
|
|
80373
|
-
}
|
|
80374
|
-
};
|
|
80375
80315
|
queryCliAppTemplates = async () => {
|
|
80376
80316
|
try {
|
|
80377
80317
|
const { data } = await pRetry(
|
|
@@ -81442,7 +81382,8 @@ function getTasks({
|
|
|
81442
81382
|
template,
|
|
81443
81383
|
templateParams,
|
|
81444
81384
|
targetParentFolder: targetParentFolder2,
|
|
81445
|
-
skipInstall
|
|
81385
|
+
skipInstall,
|
|
81386
|
+
skipGit
|
|
81446
81387
|
}, t3) {
|
|
81447
81388
|
const packageFolder = join12(targetParentFolder2, packageName);
|
|
81448
81389
|
const generateProject = async () => {
|
|
@@ -81524,9 +81465,9 @@ function getTasks({
|
|
|
81524
81465
|
return (0, import_variant39.match)(repoType, {
|
|
81525
81466
|
None: () => [
|
|
81526
81467
|
generateProjectTask,
|
|
81527
|
-
initializeGitTask,
|
|
81468
|
+
...skipGit ? [] : [initializeGitTask],
|
|
81528
81469
|
...optionalInstallTask,
|
|
81529
|
-
commitToGitTask
|
|
81470
|
+
...skipGit ? [] : [commitToGitTask]
|
|
81530
81471
|
],
|
|
81531
81472
|
Polyrepo: () => [generateProjectTask, ...optionalInstallTask],
|
|
81532
81473
|
Monorepo: () => [generateProjectTask, ...optionalInstallTask]
|
|
@@ -81709,6 +81650,7 @@ var CreateAppCommand = ({ userInfo: userInfo2, targetParentFolder: targetParentF
|
|
|
81709
81650
|
packageManager,
|
|
81710
81651
|
targetParentFolder: targetParentFolder2,
|
|
81711
81652
|
skipInstall: commandOptions.skipInstall,
|
|
81653
|
+
skipGit: commandOptions.skipGit,
|
|
81712
81654
|
templateParams: commandOptions.templateParams
|
|
81713
81655
|
})
|
|
81714
81656
|
}
|
|
@@ -81825,6 +81767,11 @@ var program2 = new Command().name(package_default.name).description("Create Wix
|
|
|
81825
81767
|
"--skip-install",
|
|
81826
81768
|
"Skip automatic dependency installation"
|
|
81827
81769
|
).hideHelp()
|
|
81770
|
+
).addOption(
|
|
81771
|
+
new Option(
|
|
81772
|
+
"--skip-git",
|
|
81773
|
+
"Prevent the application from automatically initializing a Git repository during setup"
|
|
81774
|
+
).hideHelp()
|
|
81828
81775
|
).addOption(
|
|
81829
81776
|
new Option(
|
|
81830
81777
|
"--template-params <template-params>",
|
|
@@ -81842,7 +81789,8 @@ var program2 = new Command().name(package_default.name).description("Create Wix
|
|
|
81842
81789
|
const commandStatus = reportCommandStartEvent2(command);
|
|
81843
81790
|
const commandOptions = {
|
|
81844
81791
|
...options,
|
|
81845
|
-
skipInstall: options.skipInstall ?? false
|
|
81792
|
+
skipInstall: options.skipInstall ?? false,
|
|
81793
|
+
skipGit: options.skipGit ?? false
|
|
81846
81794
|
};
|
|
81847
81795
|
try {
|
|
81848
81796
|
await render2(
|