@wix/create-app 0.0.94 → 0.0.96
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 +145 -21
- package/build/index.js.map +1 -1
- package/package.json +2 -2
package/build/index.js
CHANGED
|
@@ -56909,6 +56909,7 @@ var testOverridesSchema = z.object({
|
|
|
56909
56909
|
inkDebug: z.boolean().optional(),
|
|
56910
56910
|
minRetryTimeout: z.number().optional(),
|
|
56911
56911
|
pollInterval: z.number().optional(),
|
|
56912
|
+
pollTimeout: z.number().optional(),
|
|
56912
56913
|
debounceQueueWait: z.number().optional(),
|
|
56913
56914
|
sentryDsn: z.string().optional(),
|
|
56914
56915
|
userBrowserTestEndpoint: z.string().url().optional(),
|
|
@@ -57076,7 +57077,8 @@ var CliSystemErrorCode = (0, import_variant11.variant)({
|
|
|
57076
57077
|
WaitForEditorInstallationStateFailure: {},
|
|
57077
57078
|
EditorPendingInstallationCheckTimedout: {},
|
|
57078
57079
|
FailedToParseLatestVersion: (0, import_variant11.fields)(),
|
|
57079
|
-
FailedToGetMonitoringLoaderScript: (0, import_variant11.fields)()
|
|
57080
|
+
FailedToGetMonitoringLoaderScript: (0, import_variant11.fields)(),
|
|
57081
|
+
FailedToFetchWixLockFile: {}
|
|
57080
57082
|
});
|
|
57081
57083
|
var CliUserErrorCode = (0, import_variant11.variant)({
|
|
57082
57084
|
LatestVersionOfCreateAppRequired: (0, import_variant11.fields)(),
|
|
@@ -57111,6 +57113,8 @@ var CliUserErrorCode = (0, import_variant11.variant)({
|
|
|
57111
57113
|
DashboardMenuPluginConfigNotFound: (0, import_variant11.fields)(),
|
|
57112
57114
|
ServicePluginConfigNotFound: (0, import_variant11.fields)(),
|
|
57113
57115
|
DashboardModalConfigNotFound: (0, import_variant11.fields)(),
|
|
57116
|
+
TSConfigNotFound: (0, import_variant11.fields)(),
|
|
57117
|
+
InvalidTSConfigError: (0, import_variant11.fields)(),
|
|
57114
57118
|
InvalidConfigSchemaError: (0, import_variant11.fields)(),
|
|
57115
57119
|
InvalidParamsOverrideSchemaError: (0, import_variant11.fields)(),
|
|
57116
57120
|
PermissionDenied: {},
|
|
@@ -66262,11 +66266,18 @@ if (typeof module !== "undefined") {
|
|
|
66262
66266
|
// ../cli-error-reporting/src/components/ErrorMessage.tsx
|
|
66263
66267
|
init_esm_shims();
|
|
66264
66268
|
var import_react74 = __toESM(require_react(), 1);
|
|
66269
|
+
function getOriginalCause(error) {
|
|
66270
|
+
if (isCliError(error)) {
|
|
66271
|
+
return getOriginalCause(error.cause());
|
|
66272
|
+
}
|
|
66273
|
+
return error;
|
|
66274
|
+
}
|
|
66265
66275
|
var ErrorMessage = ({ message, cause, explanation, hint }) => {
|
|
66276
|
+
const originalCause = getOriginalCause(cause);
|
|
66266
66277
|
return /* @__PURE__ */ import_react74.default.createElement(
|
|
66267
66278
|
ErrorDetails,
|
|
66268
66279
|
{
|
|
66269
|
-
message:
|
|
66280
|
+
message: originalCause ? /* @__PURE__ */ import_react74.default.createElement(import_react74.default.Fragment, null, message, " Cause: ", originalCause.message) : message,
|
|
66270
66281
|
hint,
|
|
66271
66282
|
explanation
|
|
66272
66283
|
}
|
|
@@ -66447,7 +66458,7 @@ function getErrorComponent(code, cause) {
|
|
|
66447
66458
|
return () => /* @__PURE__ */ import_react77.default.createElement(
|
|
66448
66459
|
ErrorMessage,
|
|
66449
66460
|
{
|
|
66450
|
-
message: `
|
|
66461
|
+
message: `Unsupported package manager detected. Please use a supported one.`,
|
|
66451
66462
|
hint: `Expected Yarn or NPM but ${packageManagerName ? `got ${packageManagerName}` : `failed to detect a package manager`}`
|
|
66452
66463
|
}
|
|
66453
66464
|
);
|
|
@@ -66700,6 +66711,23 @@ function getErrorComponent(code, cause) {
|
|
|
66700
66711
|
}
|
|
66701
66712
|
);
|
|
66702
66713
|
},
|
|
66714
|
+
TSConfigNotFound: ({ configPath }) => {
|
|
66715
|
+
return () => /* @__PURE__ */ import_react77.default.createElement(
|
|
66716
|
+
ErrorMessage,
|
|
66717
|
+
{
|
|
66718
|
+
message: `TypeScript config not found at \`${configPath}\``
|
|
66719
|
+
}
|
|
66720
|
+
);
|
|
66721
|
+
},
|
|
66722
|
+
InvalidTSConfigError: ({ configPath }) => {
|
|
66723
|
+
return () => /* @__PURE__ */ import_react77.default.createElement(
|
|
66724
|
+
ErrorMessage,
|
|
66725
|
+
{
|
|
66726
|
+
message: defaultOutdent`
|
|
66727
|
+
Invalid TypeScript configuration found at \`${configPath}\``
|
|
66728
|
+
}
|
|
66729
|
+
);
|
|
66730
|
+
},
|
|
66703
66731
|
InvalidConfigSchemaError: ({ configPath, zodError }) => {
|
|
66704
66732
|
return () => /* @__PURE__ */ import_react77.default.createElement(
|
|
66705
66733
|
ErrorMessage,
|
|
@@ -67078,7 +67106,7 @@ function getErrorComponent(code, cause) {
|
|
|
67078
67106
|
return () => /* @__PURE__ */ import_react77.default.createElement(SystemErrorMessage, { message: "Failed to fetch cli package details." });
|
|
67079
67107
|
},
|
|
67080
67108
|
FailedToGetResolveNpmDependenciesResult: () => {
|
|
67081
|
-
return () => /* @__PURE__ */ import_react77.default.createElement(SystemErrorMessage, { message:
|
|
67109
|
+
return () => /* @__PURE__ */ import_react77.default.createElement(SystemErrorMessage, { message: `Failed to resolve "wix.lock" file.` });
|
|
67082
67110
|
},
|
|
67083
67111
|
CliAppVersionMismatch: ({ cliVersion, cliAppVersion }) => {
|
|
67084
67112
|
return () => /* @__PURE__ */ import_react77.default.createElement(
|
|
@@ -67511,6 +67539,9 @@ ${errorMessage}`
|
|
|
67511
67539
|
message: `The version "${version2}" produced by the system does not conform to the expected semantic versioning format and could not be parsed.`
|
|
67512
67540
|
}
|
|
67513
67541
|
);
|
|
67542
|
+
},
|
|
67543
|
+
FailedToFetchWixLockFile: () => {
|
|
67544
|
+
return () => /* @__PURE__ */ import_react77.default.createElement(SystemErrorMessage, { message: `Failed to fetch "wix.lock" file.` });
|
|
67514
67545
|
}
|
|
67515
67546
|
});
|
|
67516
67547
|
}
|
|
@@ -71001,7 +71032,7 @@ function reportCommandStartEvent({
|
|
|
71001
71032
|
}
|
|
71002
71033
|
|
|
71003
71034
|
// package.json
|
|
71004
|
-
var version = "0.0.
|
|
71035
|
+
var version = "0.0.96";
|
|
71005
71036
|
var package_default = {
|
|
71006
71037
|
name: "@wix/create-app",
|
|
71007
71038
|
description: "Create Wix apps",
|
|
@@ -72870,14 +72901,6 @@ async function isUsingWorkspaces(rootDir) {
|
|
|
72870
72901
|
var NPM = class {
|
|
72871
72902
|
constructor(repoType) {
|
|
72872
72903
|
this.repoType = repoType;
|
|
72873
|
-
if ((0, import_variant26.isType)(repoType, RepoType.Monorepo)) {
|
|
72874
|
-
throw new CliError({
|
|
72875
|
-
code: CliErrorCode.UnsupportedPackageManagerWorkspaces({
|
|
72876
|
-
packageManagerName: this.name
|
|
72877
|
-
}),
|
|
72878
|
-
cause: null
|
|
72879
|
-
});
|
|
72880
|
-
}
|
|
72881
72904
|
}
|
|
72882
72905
|
name = "npm";
|
|
72883
72906
|
getUsage(name) {
|
|
@@ -72890,9 +72913,47 @@ var NPM = class {
|
|
|
72890
72913
|
return "npm run";
|
|
72891
72914
|
}
|
|
72892
72915
|
async setup(_cwd) {
|
|
72916
|
+
if ((0, import_variant26.isType)(this.repoType, RepoType.Monorepo)) {
|
|
72917
|
+
throw new CliError({
|
|
72918
|
+
code: CliErrorCode.UnsupportedPackageManagerWorkspaces({
|
|
72919
|
+
packageManagerName: this.name
|
|
72920
|
+
}),
|
|
72921
|
+
cause: null
|
|
72922
|
+
});
|
|
72923
|
+
}
|
|
72893
72924
|
}
|
|
72894
72925
|
async runInstall(cwd3) {
|
|
72895
|
-
|
|
72926
|
+
try {
|
|
72927
|
+
await runCommand(this.getInstallCmd(), { cwd: cwd3 });
|
|
72928
|
+
} catch (e2) {
|
|
72929
|
+
throw new CliError({
|
|
72930
|
+
code: CliErrorCode.FailedToInstallPackages(),
|
|
72931
|
+
info: { packageManager: this.name },
|
|
72932
|
+
cause: e2
|
|
72933
|
+
});
|
|
72934
|
+
}
|
|
72935
|
+
}
|
|
72936
|
+
async runInstallPackage(cwd3, packageName) {
|
|
72937
|
+
try {
|
|
72938
|
+
await runCommand(`npm install ${packageName}`, { cwd: cwd3 });
|
|
72939
|
+
} catch (e2) {
|
|
72940
|
+
throw new CliError({
|
|
72941
|
+
code: CliErrorCode.FailedToInstallPackage({ packageName }),
|
|
72942
|
+
info: { packageManager: this.name },
|
|
72943
|
+
cause: e2
|
|
72944
|
+
});
|
|
72945
|
+
}
|
|
72946
|
+
}
|
|
72947
|
+
async runUninstallPackage(cwd3, packageName) {
|
|
72948
|
+
try {
|
|
72949
|
+
await runCommand(`npm uninstall ${packageName}`, { cwd: cwd3 });
|
|
72950
|
+
} catch (e2) {
|
|
72951
|
+
throw new CliError({
|
|
72952
|
+
code: CliErrorCode.FailedToUninstallPackage({ packageName }),
|
|
72953
|
+
info: { packageManager: this.name },
|
|
72954
|
+
cause: e2
|
|
72955
|
+
});
|
|
72956
|
+
}
|
|
72896
72957
|
}
|
|
72897
72958
|
};
|
|
72898
72959
|
|
|
@@ -72941,7 +73002,37 @@ var Yarn = class {
|
|
|
72941
73002
|
}).complete();
|
|
72942
73003
|
}
|
|
72943
73004
|
async runInstall(cwd3) {
|
|
72944
|
-
|
|
73005
|
+
try {
|
|
73006
|
+
await runCommand(this.getInstallCmd(), { cwd: cwd3 });
|
|
73007
|
+
} catch (e2) {
|
|
73008
|
+
throw new CliError({
|
|
73009
|
+
code: CliErrorCode.FailedToInstallPackages(),
|
|
73010
|
+
info: { packageManager: this.name },
|
|
73011
|
+
cause: e2
|
|
73012
|
+
});
|
|
73013
|
+
}
|
|
73014
|
+
}
|
|
73015
|
+
async runInstallPackage(cwd3, packageName) {
|
|
73016
|
+
try {
|
|
73017
|
+
await runCommand(`yarn add ${packageName}`, { cwd: cwd3 });
|
|
73018
|
+
} catch (e2) {
|
|
73019
|
+
throw new CliError({
|
|
73020
|
+
code: CliErrorCode.FailedToInstallPackage({ packageName }),
|
|
73021
|
+
info: { packageManager: this.name },
|
|
73022
|
+
cause: e2
|
|
73023
|
+
});
|
|
73024
|
+
}
|
|
73025
|
+
}
|
|
73026
|
+
async runUninstallPackage(cwd3, packageName) {
|
|
73027
|
+
try {
|
|
73028
|
+
await runCommand(`yarn remove ${packageName}`, { cwd: cwd3 });
|
|
73029
|
+
} catch (e2) {
|
|
73030
|
+
throw new CliError({
|
|
73031
|
+
code: CliErrorCode.FailedToUninstallPackage({ packageName }),
|
|
73032
|
+
info: { packageManager: this.name },
|
|
73033
|
+
cause: e2
|
|
73034
|
+
});
|
|
73035
|
+
}
|
|
72945
73036
|
}
|
|
72946
73037
|
};
|
|
72947
73038
|
async function getPackagesRelativePaths(rootDir, yarnVersion) {
|
|
@@ -74482,7 +74573,10 @@ var _node = {
|
|
|
74482
74573
|
audioData: "_audioData",
|
|
74483
74574
|
nodes: "_node"
|
|
74484
74575
|
};
|
|
74485
|
-
var _numberInput = {
|
|
74576
|
+
var _numberInput = {
|
|
74577
|
+
default: "google.protobuf.DoubleValue",
|
|
74578
|
+
description: "_richContent"
|
|
74579
|
+
};
|
|
74486
74580
|
var _numberType = {
|
|
74487
74581
|
maximum: "google.protobuf.DoubleValue",
|
|
74488
74582
|
minimum: "google.protobuf.DoubleValue",
|
|
@@ -77843,13 +77937,17 @@ var ComponentType2;
|
|
|
77843
77937
|
ComponentType3["APPLICATION_PROFILE"] = "APPLICATION_PROFILE";
|
|
77844
77938
|
ComponentType3["TEXT_TO_SPEECH_ACTION_MESSAGE"] = "TEXT_TO_SPEECH_ACTION_MESSAGE";
|
|
77845
77939
|
ComponentType3["AUDIENCE_PROVIDER"] = "AUDIENCE_PROVIDER";
|
|
77846
|
-
ComponentType3["
|
|
77940
|
+
ComponentType3["PRICING_PLANS_PRICE"] = "PRICING_PLANS_PRICE";
|
|
77847
77941
|
ComponentType3["PRICING_PLAN_CUSTOMER_START_DATE_LIMIT"] = "PRICING_PLAN_CUSTOMER_START_DATE_LIMIT";
|
|
77848
77942
|
ComponentType3["PRICING_PLAN_START_DATE_POLICY"] = "PRICING_PLAN_START_DATE_POLICY";
|
|
77849
77943
|
ComponentType3["EVENTS_TICKET_RESERVATIONS"] = "EVENTS_TICKET_RESERVATIONS";
|
|
77850
77944
|
ComponentType3["PAYMENTS_DISPUTE_SERVICE_PLUGIN"] = "PAYMENTS_DISPUTE_SERVICE_PLUGIN";
|
|
77851
77945
|
ComponentType3["PRICING_PLANS_FEES"] = "PRICING_PLANS_FEES";
|
|
77852
77946
|
ComponentType3["EDITOR_REACT_COMPONENT"] = "EDITOR_REACT_COMPONENT";
|
|
77947
|
+
ComponentType3["SUPPLIERS_HUB_MARKETPLACE"] = "SUPPLIERS_HUB_MARKETPLACE";
|
|
77948
|
+
ComponentType3["FORM_SCHEMA_DYNAMIC_VALUES"] = "FORM_SCHEMA_DYNAMIC_VALUES";
|
|
77949
|
+
ComponentType3["BLOG_PAYWALL_PROVIDER"] = "BLOG_PAYWALL_PROVIDER";
|
|
77950
|
+
ComponentType3["LOYALTY_CUSTOM_REWARDS_V2"] = "LOYALTY_CUSTOM_REWARDS_V2";
|
|
77853
77951
|
})(ComponentType2 || (ComponentType2 = {}));
|
|
77854
77952
|
var WidgetVertical2;
|
|
77855
77953
|
(function(WidgetVertical3) {
|
|
@@ -78416,6 +78514,11 @@ var ThumbnailsAlignment2;
|
|
|
78416
78514
|
ThumbnailsAlignment3["LEFT"] = "LEFT";
|
|
78417
78515
|
ThumbnailsAlignment3["NONE"] = "NONE";
|
|
78418
78516
|
})(ThumbnailsAlignment2 || (ThumbnailsAlignment2 = {}));
|
|
78517
|
+
var GIFType;
|
|
78518
|
+
(function(GIFType2) {
|
|
78519
|
+
GIFType2["GIF"] = "GIF";
|
|
78520
|
+
GIFType2["STICKER"] = "STICKER";
|
|
78521
|
+
})(GIFType || (GIFType = {}));
|
|
78419
78522
|
var Source2;
|
|
78420
78523
|
(function(Source3) {
|
|
78421
78524
|
Source3["HTML"] = "HTML";
|
|
@@ -78569,6 +78672,12 @@ var NotificationTopicType2;
|
|
|
78569
78672
|
NotificationTopicType3["PROMOTIONAL"] = "PROMOTIONAL";
|
|
78570
78673
|
NotificationTopicType3["TRANSACTIONAL"] = "TRANSACTIONAL";
|
|
78571
78674
|
})(NotificationTopicType2 || (NotificationTopicType2 = {}));
|
|
78675
|
+
var RecipientType;
|
|
78676
|
+
(function(RecipientType2) {
|
|
78677
|
+
RecipientType2["UNKNOWN_RECIPIENT_TYPE"] = "UNKNOWN_RECIPIENT_TYPE";
|
|
78678
|
+
RecipientType2["WIX_USER"] = "WIX_USER";
|
|
78679
|
+
RecipientType2["CONTACT"] = "CONTACT";
|
|
78680
|
+
})(RecipientType || (RecipientType = {}));
|
|
78572
78681
|
var PlanFormPricingOption2;
|
|
78573
78682
|
(function(PlanFormPricingOption3) {
|
|
78574
78683
|
PlanFormPricingOption3["UNKNOWN_OPTION"] = "UNKNOWN_OPTION";
|
|
@@ -78751,6 +78860,7 @@ var StringComponentType2;
|
|
|
78751
78860
|
var NumberOfColumns2;
|
|
78752
78861
|
(function(NumberOfColumns3) {
|
|
78753
78862
|
NumberOfColumns3["UNKNOWN"] = "UNKNOWN";
|
|
78863
|
+
NumberOfColumns3["ZERO"] = "ZERO";
|
|
78754
78864
|
NumberOfColumns3["ONE"] = "ONE";
|
|
78755
78865
|
NumberOfColumns3["TWO"] = "TWO";
|
|
78756
78866
|
NumberOfColumns3["THREE"] = "THREE";
|
|
@@ -78984,6 +79094,7 @@ var WixCodePublishTaskName2;
|
|
|
78984
79094
|
WixCodePublishTaskName3["IMPORTED_NAMESPACES_ANALYSIS"] = "IMPORTED_NAMESPACES_ANALYSIS";
|
|
78985
79095
|
WixCodePublishTaskName3["PAGE_DETAILS_ANALYSIS"] = "PAGE_DETAILS_ANALYSIS";
|
|
78986
79096
|
WixCodePublishTaskName3["USER_CODE_VALIDATION"] = "USER_CODE_VALIDATION";
|
|
79097
|
+
WixCodePublishTaskName3["CODE_PACKAGES_REGISTRATION"] = "CODE_PACKAGES_REGISTRATION";
|
|
78987
79098
|
})(WixCodePublishTaskName2 || (WixCodePublishTaskName2 = {}));
|
|
78988
79099
|
var ChannelConfigurationChannelType2;
|
|
78989
79100
|
(function(ChannelConfigurationChannelType3) {
|
|
@@ -79082,7 +79193,20 @@ var ParticipantType2;
|
|
|
79082
79193
|
ParticipantType3["UNKNOWN_TYPE"] = "UNKNOWN_TYPE";
|
|
79083
79194
|
ParticipantType3["WIX_USER"] = "WIX_USER";
|
|
79084
79195
|
ParticipantType3["CONTACT"] = "CONTACT";
|
|
79196
|
+
ParticipantType3["ANONYMOUS"] = "ANONYMOUS";
|
|
79085
79197
|
})(ParticipantType2 || (ParticipantType2 = {}));
|
|
79198
|
+
var InterfaceConfigurationType;
|
|
79199
|
+
(function(InterfaceConfigurationType2) {
|
|
79200
|
+
InterfaceConfigurationType2["UNKNOWN_TYPE"] = "UNKNOWN_TYPE";
|
|
79201
|
+
InterfaceConfigurationType2["WIDGET_COMPONENT"] = "WIDGET_COMPONENT";
|
|
79202
|
+
InterfaceConfigurationType2["ITEM_SELECTION"] = "ITEM_SELECTION";
|
|
79203
|
+
})(InterfaceConfigurationType || (InterfaceConfigurationType = {}));
|
|
79204
|
+
var Scope2;
|
|
79205
|
+
(function(Scope3) {
|
|
79206
|
+
Scope3["UNKNOWN_SCOPE"] = "UNKNOWN_SCOPE";
|
|
79207
|
+
Scope3["SPECIFIC_SITE"] = "SPECIFIC_SITE";
|
|
79208
|
+
Scope3["NON_SPECIFIC_SITE"] = "NON_SPECIFIC_SITE";
|
|
79209
|
+
})(Scope2 || (Scope2 = {}));
|
|
79086
79210
|
var CssPropertyType2;
|
|
79087
79211
|
(function(CssPropertyType3) {
|
|
79088
79212
|
CssPropertyType3["UNKNOWN_CssPropertyType"] = "UNKNOWN_CssPropertyType";
|
|
@@ -79477,7 +79601,7 @@ var marketListingSchema = z.object({
|
|
|
79477
79601
|
slug: z.string()
|
|
79478
79602
|
})
|
|
79479
79603
|
)
|
|
79480
|
-
})
|
|
79604
|
+
}).optional()
|
|
79481
79605
|
});
|
|
79482
79606
|
var managedAppsSchema = z.object({
|
|
79483
79607
|
managedApps: z.array(
|
|
@@ -79684,7 +79808,7 @@ var DevCenterClient = class {
|
|
|
79684
79808
|
getRequiredAppIds = async (appId) => {
|
|
79685
79809
|
try {
|
|
79686
79810
|
const marketListing = await this.getMarketListing(appId);
|
|
79687
|
-
return marketListing?.installationRequirement
|
|
79811
|
+
return marketListing?.installationRequirement?.requiredApps.map(
|
|
79688
79812
|
({ id }) => id
|
|
79689
79813
|
) ?? [];
|
|
79690
79814
|
} catch (e2) {
|
|
@@ -79728,12 +79852,12 @@ var DevCenterClient = class {
|
|
|
79728
79852
|
}) => {
|
|
79729
79853
|
try {
|
|
79730
79854
|
const marketListing = await this.getMarketListing(appId);
|
|
79731
|
-
const appAlreadyRequired = marketListing?.installationRequirement
|
|
79855
|
+
const appAlreadyRequired = marketListing?.installationRequirement?.requiredApps.some(
|
|
79732
79856
|
(requiredApp2) => requiredApp2.id === appIdToRequire
|
|
79733
79857
|
);
|
|
79734
79858
|
if (marketListing && !appAlreadyRequired) {
|
|
79735
79859
|
const newRequiredApps = [
|
|
79736
|
-
...marketListing.installationRequirement
|
|
79860
|
+
...marketListing.installationRequirement?.requiredApps ?? [],
|
|
79737
79861
|
{
|
|
79738
79862
|
id: appIdToRequire,
|
|
79739
79863
|
slug: appIdToRequire
|