@wix/create-app 0.0.250 → 0.0.252
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-V6PDDX7X.js → chunk-7QKXO6Q5.js} +4 -2
- package/build/{chunk-V6PDDX7X.js.map → chunk-7QKXO6Q5.js.map} +1 -1
- package/build/{generator-233OYLKO.js → generator-G3PPR2ZE.js} +2 -2
- package/build/index.js +82 -5
- package/build/index.js.map +1 -1
- package/package.json +2 -2
- /package/build/{generator-233OYLKO.js.map → generator-G3PPR2ZE.js.map} +0 -0
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
require_is_git_url,
|
|
15
15
|
require_lib,
|
|
16
16
|
require_semver
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-7QKXO6Q5.js";
|
|
18
18
|
import {
|
|
19
19
|
__commonJS,
|
|
20
20
|
__require,
|
|
@@ -3986,4 +3986,4 @@ ejs/lib/ejs.js:
|
|
|
3986
3986
|
* @license {@link http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0}
|
|
3987
3987
|
*)
|
|
3988
3988
|
*/
|
|
3989
|
-
//# sourceMappingURL=generator-
|
|
3989
|
+
//# sourceMappingURL=generator-G3PPR2ZE.js.map
|
package/build/index.js
CHANGED
|
@@ -100,7 +100,7 @@ import {
|
|
|
100
100
|
setupTestEnv,
|
|
101
101
|
writeJson,
|
|
102
102
|
zod_default
|
|
103
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-7QKXO6Q5.js";
|
|
104
104
|
import {
|
|
105
105
|
__commonJS,
|
|
106
106
|
__dirname,
|
|
@@ -50755,6 +50755,18 @@ function getErrorComponent(code, cause) {
|
|
|
50755
50755
|
ConnectUnsupportedForProjectType: () => {
|
|
50756
50756
|
return () => /* @__PURE__ */ import_react78.default.createElement(ErrorMessage, { message: "The connect command is only available for Site projects." });
|
|
50757
50757
|
},
|
|
50758
|
+
GenerateExtensionUnsupportedForProjectType: ({
|
|
50759
|
+
extensionType,
|
|
50760
|
+
projectType
|
|
50761
|
+
}) => {
|
|
50762
|
+
return () => /* @__PURE__ */ import_react78.default.createElement(
|
|
50763
|
+
ErrorMessage,
|
|
50764
|
+
{
|
|
50765
|
+
message: `\`${extensionType}\` extensions can't be generated in ${projectType} projects.`,
|
|
50766
|
+
hint: "Run `wix generate` without `--type` to see the extension types available in this project."
|
|
50767
|
+
}
|
|
50768
|
+
);
|
|
50769
|
+
},
|
|
50758
50770
|
FailedToRenewAuthToken: () => {
|
|
50759
50771
|
return () => /* @__PURE__ */ import_react78.default.createElement(SystemErrorMessage, { message: "Failed to renew access token." });
|
|
50760
50772
|
},
|
|
@@ -52406,6 +52418,16 @@ ${errorMessage2}`
|
|
|
52406
52418
|
}
|
|
52407
52419
|
);
|
|
52408
52420
|
},
|
|
52421
|
+
PluginInvalidPlatformLinksResult: ({ pluginName, reason }) => {
|
|
52422
|
+
return () => /* @__PURE__ */ import_react78.default.createElement(
|
|
52423
|
+
ErrorMessage,
|
|
52424
|
+
{
|
|
52425
|
+
cause,
|
|
52426
|
+
message: `Plugin "${pluginName}" returned an invalid result from "platformLinks": ${reason}`,
|
|
52427
|
+
hint: `"platformLinks" must return an array of { platform: "site" | "dashboard" | "editor", label: string, url: string }, each platform at most once.`
|
|
52428
|
+
}
|
|
52429
|
+
);
|
|
52430
|
+
},
|
|
52409
52431
|
PluginHandlerFailed: ({
|
|
52410
52432
|
handlerName,
|
|
52411
52433
|
pluginName
|
|
@@ -57040,7 +57062,7 @@ init_esm_shims();
|
|
|
57040
57062
|
var package_default = {
|
|
57041
57063
|
name: "@wix/create-app",
|
|
57042
57064
|
description: "Create Wix apps",
|
|
57043
|
-
version: "0.0.
|
|
57065
|
+
version: "0.0.252",
|
|
57044
57066
|
author: "Ihor Machuzhak",
|
|
57045
57067
|
bin: "bin/index.cjs",
|
|
57046
57068
|
devDependencies: {
|
|
@@ -60284,6 +60306,8 @@ function getOrCreateCompanionApp(payload6) {
|
|
|
60284
60306
|
|
|
60285
60307
|
// ../../node_modules/@wix/ambassador-apps-v1-app-instance/es/build/http.impl.js
|
|
60286
60308
|
init_esm_shims();
|
|
60309
|
+
var _getInstalledAppsRequest = {};
|
|
60310
|
+
var _getInstalledAppsResponse = { appInstances: "_v1AppInstance" };
|
|
60287
60311
|
var _installAppRequest = { appInstance: "_v1AppInstance" };
|
|
60288
60312
|
var _installAppResponse = {
|
|
60289
60313
|
appInstance: "_v1AppInstance",
|
|
@@ -60401,6 +60425,46 @@ function installApp(payload6) {
|
|
|
60401
60425
|
__installApp.__isAmbassador = true;
|
|
60402
60426
|
return __installApp;
|
|
60403
60427
|
}
|
|
60428
|
+
function getInstalledApps(payload6) {
|
|
60429
|
+
var _a3 = serializer(_getInstalledAppsRequest, {}), toReq = _a3.toJSON, fromReq = _a3.fromJSON;
|
|
60430
|
+
var fromRes = serializer(_getInstalledAppsResponse, {
|
|
60431
|
+
_v1AppInstance
|
|
60432
|
+
}).fromJSON;
|
|
60433
|
+
function __getInstalledApps(_a4) {
|
|
60434
|
+
var host = _a4.host;
|
|
60435
|
+
var serializedData = toReq(payload6);
|
|
60436
|
+
var metadata = {
|
|
60437
|
+
entityFqdn: "wix.apps.v1.app_instance",
|
|
60438
|
+
method: "GET",
|
|
60439
|
+
methodFqn: "wix.devcenter.apps.installer.v1.AppsInstallerService.GetInstalledApps",
|
|
60440
|
+
migrationOptions: {
|
|
60441
|
+
optInTransformResponse: true
|
|
60442
|
+
},
|
|
60443
|
+
url: resolveWixDevcenterAppsInstallerV1AppsInstallerServiceUrl({
|
|
60444
|
+
protoPath: "/v1/app-instances",
|
|
60445
|
+
data: serializedData,
|
|
60446
|
+
host
|
|
60447
|
+
}),
|
|
60448
|
+
params: toURLSearchParams(serializedData),
|
|
60449
|
+
transformResponse: fromRes,
|
|
60450
|
+
fallback: [
|
|
60451
|
+
{
|
|
60452
|
+
method: "GET",
|
|
60453
|
+
url: resolveWixDevcenterAppsInstallerV1AppsInstallerServiceUrl({
|
|
60454
|
+
protoPath: "/v1/app-instances",
|
|
60455
|
+
data: serializedData,
|
|
60456
|
+
host
|
|
60457
|
+
}),
|
|
60458
|
+
params: toURLSearchParams(serializedData)
|
|
60459
|
+
}
|
|
60460
|
+
]
|
|
60461
|
+
};
|
|
60462
|
+
return metadata;
|
|
60463
|
+
}
|
|
60464
|
+
__getInstalledApps.fromReq = fromReq;
|
|
60465
|
+
__getInstalledApps.__isAmbassador = true;
|
|
60466
|
+
return __getInstalledApps;
|
|
60467
|
+
}
|
|
60404
60468
|
|
|
60405
60469
|
// ../../node_modules/@wix/ambassador-apps-v1-app-instance/es/build/types.impl.js
|
|
60406
60470
|
init_esm_shims();
|
|
@@ -66627,6 +66691,9 @@ var marketListingSchema = external_exports.object({
|
|
|
66627
66691
|
)
|
|
66628
66692
|
}).optional()
|
|
66629
66693
|
});
|
|
66694
|
+
var getInstalledAppsSchema = external_exports.object({
|
|
66695
|
+
appInstances: external_exports.array(external_exports.object({ appDefId: external_exports.string() })).default([])
|
|
66696
|
+
});
|
|
66630
66697
|
var managedAppsSchema = external_exports.object({
|
|
66631
66698
|
managedApps: external_exports.array(
|
|
66632
66699
|
external_exports.object({
|
|
@@ -67162,8 +67229,18 @@ var DevCenterClient = class {
|
|
|
67162
67229
|
}
|
|
67163
67230
|
};
|
|
67164
67231
|
isAppInstalled = async (appId) => {
|
|
67165
|
-
|
|
67166
|
-
|
|
67232
|
+
try {
|
|
67233
|
+
const { data } = await pRetry(
|
|
67234
|
+
() => this.httpClient.request(getInstalledApps({})),
|
|
67235
|
+
this.retryOptions
|
|
67236
|
+
);
|
|
67237
|
+
return getInstalledAppsSchema.parse(data).appInstances.some((app) => app.appDefId === appId);
|
|
67238
|
+
} catch (e2) {
|
|
67239
|
+
throw new CliError({
|
|
67240
|
+
code: CliErrorCode.FailedToGetAppInstallationDetails({ appId }),
|
|
67241
|
+
cause: e2
|
|
67242
|
+
});
|
|
67243
|
+
}
|
|
67167
67244
|
};
|
|
67168
67245
|
isAppInstalledInEditor = async (appId) => {
|
|
67169
67246
|
const installationDetails = await this.getAppInstallationDetails(appId);
|
|
@@ -68095,7 +68172,7 @@ function getTasks({
|
|
|
68095
68172
|
cause: e2
|
|
68096
68173
|
});
|
|
68097
68174
|
}
|
|
68098
|
-
const { generateApp } = await import("./generator-
|
|
68175
|
+
const { generateApp } = await import("./generator-G3PPR2ZE.js");
|
|
68099
68176
|
await generateApp({
|
|
68100
68177
|
packageName,
|
|
68101
68178
|
packageFolder,
|