@wix/create-app 0.0.249 → 0.0.251
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-UN7PDR6G.js} +3 -2
- package/build/{chunk-V6PDDX7X.js.map → chunk-UN7PDR6G.js.map} +1 -1
- package/build/{generator-233OYLKO.js → generator-VWEWJKQB.js} +2 -2
- package/build/index.js +70 -5
- package/build/index.js.map +1 -1
- package/package.json +2 -2
- /package/build/{generator-233OYLKO.js.map → generator-VWEWJKQB.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-UN7PDR6G.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-VWEWJKQB.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-UN7PDR6G.js";
|
|
104
104
|
import {
|
|
105
105
|
__commonJS,
|
|
106
106
|
__dirname,
|
|
@@ -52406,6 +52406,16 @@ ${errorMessage2}`
|
|
|
52406
52406
|
}
|
|
52407
52407
|
);
|
|
52408
52408
|
},
|
|
52409
|
+
PluginInvalidPlatformLinksResult: ({ pluginName, reason }) => {
|
|
52410
|
+
return () => /* @__PURE__ */ import_react78.default.createElement(
|
|
52411
|
+
ErrorMessage,
|
|
52412
|
+
{
|
|
52413
|
+
cause,
|
|
52414
|
+
message: `Plugin "${pluginName}" returned an invalid result from "platformLinks": ${reason}`,
|
|
52415
|
+
hint: `"platformLinks" must return an array of { platform: "site" | "dashboard" | "editor", label: string, url: string }, each platform at most once.`
|
|
52416
|
+
}
|
|
52417
|
+
);
|
|
52418
|
+
},
|
|
52409
52419
|
PluginHandlerFailed: ({
|
|
52410
52420
|
handlerName,
|
|
52411
52421
|
pluginName
|
|
@@ -57040,7 +57050,7 @@ init_esm_shims();
|
|
|
57040
57050
|
var package_default = {
|
|
57041
57051
|
name: "@wix/create-app",
|
|
57042
57052
|
description: "Create Wix apps",
|
|
57043
|
-
version: "0.0.
|
|
57053
|
+
version: "0.0.251",
|
|
57044
57054
|
author: "Ihor Machuzhak",
|
|
57045
57055
|
bin: "bin/index.cjs",
|
|
57046
57056
|
devDependencies: {
|
|
@@ -60284,6 +60294,8 @@ function getOrCreateCompanionApp(payload6) {
|
|
|
60284
60294
|
|
|
60285
60295
|
// ../../node_modules/@wix/ambassador-apps-v1-app-instance/es/build/http.impl.js
|
|
60286
60296
|
init_esm_shims();
|
|
60297
|
+
var _getInstalledAppsRequest = {};
|
|
60298
|
+
var _getInstalledAppsResponse = { appInstances: "_v1AppInstance" };
|
|
60287
60299
|
var _installAppRequest = { appInstance: "_v1AppInstance" };
|
|
60288
60300
|
var _installAppResponse = {
|
|
60289
60301
|
appInstance: "_v1AppInstance",
|
|
@@ -60401,6 +60413,46 @@ function installApp(payload6) {
|
|
|
60401
60413
|
__installApp.__isAmbassador = true;
|
|
60402
60414
|
return __installApp;
|
|
60403
60415
|
}
|
|
60416
|
+
function getInstalledApps(payload6) {
|
|
60417
|
+
var _a3 = serializer(_getInstalledAppsRequest, {}), toReq = _a3.toJSON, fromReq = _a3.fromJSON;
|
|
60418
|
+
var fromRes = serializer(_getInstalledAppsResponse, {
|
|
60419
|
+
_v1AppInstance
|
|
60420
|
+
}).fromJSON;
|
|
60421
|
+
function __getInstalledApps(_a4) {
|
|
60422
|
+
var host = _a4.host;
|
|
60423
|
+
var serializedData = toReq(payload6);
|
|
60424
|
+
var metadata = {
|
|
60425
|
+
entityFqdn: "wix.apps.v1.app_instance",
|
|
60426
|
+
method: "GET",
|
|
60427
|
+
methodFqn: "wix.devcenter.apps.installer.v1.AppsInstallerService.GetInstalledApps",
|
|
60428
|
+
migrationOptions: {
|
|
60429
|
+
optInTransformResponse: true
|
|
60430
|
+
},
|
|
60431
|
+
url: resolveWixDevcenterAppsInstallerV1AppsInstallerServiceUrl({
|
|
60432
|
+
protoPath: "/v1/app-instances",
|
|
60433
|
+
data: serializedData,
|
|
60434
|
+
host
|
|
60435
|
+
}),
|
|
60436
|
+
params: toURLSearchParams(serializedData),
|
|
60437
|
+
transformResponse: fromRes,
|
|
60438
|
+
fallback: [
|
|
60439
|
+
{
|
|
60440
|
+
method: "GET",
|
|
60441
|
+
url: resolveWixDevcenterAppsInstallerV1AppsInstallerServiceUrl({
|
|
60442
|
+
protoPath: "/v1/app-instances",
|
|
60443
|
+
data: serializedData,
|
|
60444
|
+
host
|
|
60445
|
+
}),
|
|
60446
|
+
params: toURLSearchParams(serializedData)
|
|
60447
|
+
}
|
|
60448
|
+
]
|
|
60449
|
+
};
|
|
60450
|
+
return metadata;
|
|
60451
|
+
}
|
|
60452
|
+
__getInstalledApps.fromReq = fromReq;
|
|
60453
|
+
__getInstalledApps.__isAmbassador = true;
|
|
60454
|
+
return __getInstalledApps;
|
|
60455
|
+
}
|
|
60404
60456
|
|
|
60405
60457
|
// ../../node_modules/@wix/ambassador-apps-v1-app-instance/es/build/types.impl.js
|
|
60406
60458
|
init_esm_shims();
|
|
@@ -66627,6 +66679,9 @@ var marketListingSchema = external_exports.object({
|
|
|
66627
66679
|
)
|
|
66628
66680
|
}).optional()
|
|
66629
66681
|
});
|
|
66682
|
+
var getInstalledAppsSchema = external_exports.object({
|
|
66683
|
+
appInstances: external_exports.array(external_exports.object({ appDefId: external_exports.string() })).default([])
|
|
66684
|
+
});
|
|
66630
66685
|
var managedAppsSchema = external_exports.object({
|
|
66631
66686
|
managedApps: external_exports.array(
|
|
66632
66687
|
external_exports.object({
|
|
@@ -67162,8 +67217,18 @@ var DevCenterClient = class {
|
|
|
67162
67217
|
}
|
|
67163
67218
|
};
|
|
67164
67219
|
isAppInstalled = async (appId) => {
|
|
67165
|
-
|
|
67166
|
-
|
|
67220
|
+
try {
|
|
67221
|
+
const { data } = await pRetry(
|
|
67222
|
+
() => this.httpClient.request(getInstalledApps({})),
|
|
67223
|
+
this.retryOptions
|
|
67224
|
+
);
|
|
67225
|
+
return getInstalledAppsSchema.parse(data).appInstances.some((app) => app.appDefId === appId);
|
|
67226
|
+
} catch (e2) {
|
|
67227
|
+
throw new CliError({
|
|
67228
|
+
code: CliErrorCode.FailedToGetAppInstallationDetails({ appId }),
|
|
67229
|
+
cause: e2
|
|
67230
|
+
});
|
|
67231
|
+
}
|
|
67167
67232
|
};
|
|
67168
67233
|
isAppInstalledInEditor = async (appId) => {
|
|
67169
67234
|
const installationDetails = await this.getAppInstallationDetails(appId);
|
|
@@ -68095,7 +68160,7 @@ function getTasks({
|
|
|
68095
68160
|
cause: e2
|
|
68096
68161
|
});
|
|
68097
68162
|
}
|
|
68098
|
-
const { generateApp } = await import("./generator-
|
|
68163
|
+
const { generateApp } = await import("./generator-VWEWJKQB.js");
|
|
68099
68164
|
await generateApp({
|
|
68100
68165
|
packageName,
|
|
68101
68166
|
packageFolder,
|