@wix/create-new 0.0.111 → 0.0.113
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-JNEPCJPC.js → chunk-CZYDQZ35.js} +4 -2
- package/build/{chunk-JNEPCJPC.js.map → chunk-CZYDQZ35.js.map} +1 -1
- package/build/{generator-244YLYSZ.js → generator-LKZYBZZH.js} +2 -2
- package/build/index.js +82 -5
- package/build/index.js.map +1 -1
- package/package.json +2 -2
- /package/build/{generator-244YLYSZ.js.map → generator-LKZYBZZH.js.map} +0 -0
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
require_lib,
|
|
14
14
|
temporaryDirectory,
|
|
15
15
|
updateEnvFile
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-CZYDQZ35.js";
|
|
17
17
|
import {
|
|
18
18
|
__toESM,
|
|
19
19
|
init_esm_shims
|
|
@@ -115,4 +115,4 @@ async function generateApp({
|
|
|
115
115
|
export {
|
|
116
116
|
generateApp
|
|
117
117
|
};
|
|
118
|
-
//# sourceMappingURL=generator-
|
|
118
|
+
//# sourceMappingURL=generator-LKZYBZZH.js.map
|
package/build/index.js
CHANGED
|
@@ -119,7 +119,7 @@ import {
|
|
|
119
119
|
writeJson,
|
|
120
120
|
writePackageJson,
|
|
121
121
|
zod_default
|
|
122
|
-
} from "./chunk-
|
|
122
|
+
} from "./chunk-CZYDQZ35.js";
|
|
123
123
|
import {
|
|
124
124
|
__commonJS,
|
|
125
125
|
__dirname,
|
|
@@ -65496,6 +65496,18 @@ function getErrorComponent(code, cause) {
|
|
|
65496
65496
|
ConnectUnsupportedForProjectType: () => {
|
|
65497
65497
|
return () => /* @__PURE__ */ import_react84.default.createElement(ErrorMessage, { message: "The connect command is only available for Site projects." });
|
|
65498
65498
|
},
|
|
65499
|
+
GenerateExtensionUnsupportedForProjectType: ({
|
|
65500
|
+
extensionType,
|
|
65501
|
+
projectType
|
|
65502
|
+
}) => {
|
|
65503
|
+
return () => /* @__PURE__ */ import_react84.default.createElement(
|
|
65504
|
+
ErrorMessage,
|
|
65505
|
+
{
|
|
65506
|
+
message: `\`${extensionType}\` extensions can't be generated in ${projectType} projects.`,
|
|
65507
|
+
hint: "Run `wix generate` without `--type` to see the extension types available in this project."
|
|
65508
|
+
}
|
|
65509
|
+
);
|
|
65510
|
+
},
|
|
65499
65511
|
FailedToRenewAuthToken: () => {
|
|
65500
65512
|
return () => /* @__PURE__ */ import_react84.default.createElement(SystemErrorMessage, { message: "Failed to renew access token." });
|
|
65501
65513
|
},
|
|
@@ -67147,6 +67159,16 @@ ${errorMessage2}`
|
|
|
67147
67159
|
}
|
|
67148
67160
|
);
|
|
67149
67161
|
},
|
|
67162
|
+
PluginInvalidPlatformLinksResult: ({ pluginName, reason }) => {
|
|
67163
|
+
return () => /* @__PURE__ */ import_react84.default.createElement(
|
|
67164
|
+
ErrorMessage,
|
|
67165
|
+
{
|
|
67166
|
+
cause,
|
|
67167
|
+
message: `Plugin "${pluginName}" returned an invalid result from "platformLinks": ${reason}`,
|
|
67168
|
+
hint: `"platformLinks" must return an array of { platform: "site" | "dashboard" | "editor", label: string, url: string }, each platform at most once.`
|
|
67169
|
+
}
|
|
67170
|
+
);
|
|
67171
|
+
},
|
|
67150
67172
|
PluginHandlerFailed: ({
|
|
67151
67173
|
handlerName,
|
|
67152
67174
|
pluginName
|
|
@@ -74213,6 +74235,8 @@ function getOrCreateCompanionApp(payload7) {
|
|
|
74213
74235
|
|
|
74214
74236
|
// ../../node_modules/@wix/ambassador-apps-v1-app-instance/es/build/http.impl.js
|
|
74215
74237
|
init_esm_shims();
|
|
74238
|
+
var _getInstalledAppsRequest = {};
|
|
74239
|
+
var _getInstalledAppsResponse = { appInstances: "_v1AppInstance" };
|
|
74216
74240
|
var _installAppRequest = { appInstance: "_v1AppInstance" };
|
|
74217
74241
|
var _installAppResponse = {
|
|
74218
74242
|
appInstance: "_v1AppInstance",
|
|
@@ -74330,6 +74354,46 @@ function installApp(payload7) {
|
|
|
74330
74354
|
__installApp.__isAmbassador = true;
|
|
74331
74355
|
return __installApp;
|
|
74332
74356
|
}
|
|
74357
|
+
function getInstalledApps(payload7) {
|
|
74358
|
+
var _a3 = serializer(_getInstalledAppsRequest, {}), toReq = _a3.toJSON, fromReq = _a3.fromJSON;
|
|
74359
|
+
var fromRes = serializer(_getInstalledAppsResponse, {
|
|
74360
|
+
_v1AppInstance
|
|
74361
|
+
}).fromJSON;
|
|
74362
|
+
function __getInstalledApps(_a4) {
|
|
74363
|
+
var host = _a4.host;
|
|
74364
|
+
var serializedData = toReq(payload7);
|
|
74365
|
+
var metadata = {
|
|
74366
|
+
entityFqdn: "wix.apps.v1.app_instance",
|
|
74367
|
+
method: "GET",
|
|
74368
|
+
methodFqn: "wix.devcenter.apps.installer.v1.AppsInstallerService.GetInstalledApps",
|
|
74369
|
+
migrationOptions: {
|
|
74370
|
+
optInTransformResponse: true
|
|
74371
|
+
},
|
|
74372
|
+
url: resolveWixDevcenterAppsInstallerV1AppsInstallerServiceUrl({
|
|
74373
|
+
protoPath: "/v1/app-instances",
|
|
74374
|
+
data: serializedData,
|
|
74375
|
+
host
|
|
74376
|
+
}),
|
|
74377
|
+
params: toURLSearchParams(serializedData),
|
|
74378
|
+
transformResponse: fromRes,
|
|
74379
|
+
fallback: [
|
|
74380
|
+
{
|
|
74381
|
+
method: "GET",
|
|
74382
|
+
url: resolveWixDevcenterAppsInstallerV1AppsInstallerServiceUrl({
|
|
74383
|
+
protoPath: "/v1/app-instances",
|
|
74384
|
+
data: serializedData,
|
|
74385
|
+
host
|
|
74386
|
+
}),
|
|
74387
|
+
params: toURLSearchParams(serializedData)
|
|
74388
|
+
}
|
|
74389
|
+
]
|
|
74390
|
+
};
|
|
74391
|
+
return metadata;
|
|
74392
|
+
}
|
|
74393
|
+
__getInstalledApps.fromReq = fromReq;
|
|
74394
|
+
__getInstalledApps.__isAmbassador = true;
|
|
74395
|
+
return __getInstalledApps;
|
|
74396
|
+
}
|
|
74333
74397
|
|
|
74334
74398
|
// ../../node_modules/@wix/ambassador-apps-v1-app-instance/es/build/types.impl.js
|
|
74335
74399
|
init_esm_shims();
|
|
@@ -80556,6 +80620,9 @@ var marketListingSchema = external_exports.object({
|
|
|
80556
80620
|
)
|
|
80557
80621
|
}).optional()
|
|
80558
80622
|
});
|
|
80623
|
+
var getInstalledAppsSchema = external_exports.object({
|
|
80624
|
+
appInstances: external_exports.array(external_exports.object({ appDefId: external_exports.string() })).default([])
|
|
80625
|
+
});
|
|
80559
80626
|
var managedAppsSchema = external_exports.object({
|
|
80560
80627
|
managedApps: external_exports.array(
|
|
80561
80628
|
external_exports.object({
|
|
@@ -81091,8 +81158,18 @@ var DevCenterClient = class {
|
|
|
81091
81158
|
}
|
|
81092
81159
|
};
|
|
81093
81160
|
isAppInstalled = async (appId) => {
|
|
81094
|
-
|
|
81095
|
-
|
|
81161
|
+
try {
|
|
81162
|
+
const { data } = await pRetry(
|
|
81163
|
+
() => this.httpClient.request(getInstalledApps({})),
|
|
81164
|
+
this.retryOptions
|
|
81165
|
+
);
|
|
81166
|
+
return getInstalledAppsSchema.parse(data).appInstances.some((app) => app.appDefId === appId);
|
|
81167
|
+
} catch (e2) {
|
|
81168
|
+
throw new CliError({
|
|
81169
|
+
code: CliErrorCode.FailedToGetAppInstallationDetails({ appId }),
|
|
81170
|
+
cause: e2
|
|
81171
|
+
});
|
|
81172
|
+
}
|
|
81096
81173
|
};
|
|
81097
81174
|
isAppInstalledInEditor = async (appId) => {
|
|
81098
81175
|
const installationDetails = await this.getAppInstallationDetails(appId);
|
|
@@ -83196,7 +83273,7 @@ function getTasks({
|
|
|
83196
83273
|
cause: e2
|
|
83197
83274
|
});
|
|
83198
83275
|
}
|
|
83199
|
-
const { generateApp } = await import("./generator-
|
|
83276
|
+
const { generateApp } = await import("./generator-LKZYBZZH.js");
|
|
83200
83277
|
await generateApp({
|
|
83201
83278
|
packageName,
|
|
83202
83279
|
packageFolder,
|
|
@@ -95562,7 +95639,7 @@ import { randomUUID as randomUUID3 } from "node:crypto";
|
|
|
95562
95639
|
var package_default = {
|
|
95563
95640
|
name: "@wix/create-new",
|
|
95564
95641
|
description: "General entry point for creating Wix projects",
|
|
95565
|
-
version: "0.0.
|
|
95642
|
+
version: "0.0.113",
|
|
95566
95643
|
bin: "bin/index.cjs",
|
|
95567
95644
|
devDependencies: {
|
|
95568
95645
|
"@commander-js/extra-typings": "^13.0.0",
|