@wix/create-app 0.0.135 → 0.0.137
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/README.md +1 -1
- package/build/index.js +56 -28
- package/build/index.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
package/build/index.js
CHANGED
|
@@ -15389,13 +15389,13 @@ var require_http_client = __commonJS({
|
|
|
15389
15389
|
static isHttpError(payload5) {
|
|
15390
15390
|
return !!(payload5 === null || payload5 === void 0 ? void 0 : payload5.isWixHttpError);
|
|
15391
15391
|
}
|
|
15392
|
-
async request(requestOptionsOrFactory,
|
|
15392
|
+
async request(requestOptionsOrFactory, overrides2) {
|
|
15393
15393
|
var _a3, _b;
|
|
15394
15394
|
const host = (0, utils_1.resolveHost)(this.opts);
|
|
15395
15395
|
const protocol = (0, utils_1.resolveProtocol)(this.opts);
|
|
15396
15396
|
const urlObject = { protocol, host };
|
|
15397
15397
|
const requestOptions = typeof requestOptionsOrFactory === "function" ? requestOptionsOrFactory({ isSSR: this.opts.isSSR, host }) : requestOptionsOrFactory;
|
|
15398
|
-
const signedInstance = (
|
|
15398
|
+
const signedInstance = (overrides2 === null || overrides2 === void 0 ? void 0 : overrides2.signedInstance) || await ((_b = (_a3 = this.opts).getAppToken) === null || _b === void 0 ? void 0 : _b.call(_a3)) || "";
|
|
15399
15399
|
const headers = this.getHeaders(requestOptions, signedInstance, urlObject);
|
|
15400
15400
|
const options = (0, options_1.buildOptions)({
|
|
15401
15401
|
requestOptions,
|
|
@@ -58188,7 +58188,8 @@ var CliUserErrorCode = (0, import_variant11.variant)({
|
|
|
58188
58188
|
ProjectIsNotLinkable: {},
|
|
58189
58189
|
MissingPresetCssForSiteComponent: (0, import_variant11.fields)(),
|
|
58190
58190
|
AppInstallerSiteNotFound: (0, import_variant11.fields)(),
|
|
58191
|
-
EAccessPermissionDenied: {}
|
|
58191
|
+
EAccessPermissionDenied: {},
|
|
58192
|
+
InvalidSiteComponentElementItem: (0, import_variant11.fields)()
|
|
58192
58193
|
});
|
|
58193
58194
|
var CliErrorCode = (0, import_variant11.variant)({
|
|
58194
58195
|
...CliSystemErrorCode,
|
|
@@ -68851,11 +68852,15 @@ ${errorMessage2}`
|
|
|
68851
68852
|
ProjectIsNotLinkable: () => {
|
|
68852
68853
|
return () => /* @__PURE__ */ import_react77.default.createElement(ErrorMessage, { message: "Only Astro projects can be linked to Wix. The current project is missing an Astro configuration file." });
|
|
68853
68854
|
},
|
|
68854
|
-
MissingPresetCssForSiteComponent: ({
|
|
68855
|
+
MissingPresetCssForSiteComponent: ({
|
|
68856
|
+
componentId,
|
|
68857
|
+
presetName,
|
|
68858
|
+
elementBasePath
|
|
68859
|
+
}) => {
|
|
68855
68860
|
return () => /* @__PURE__ */ import_react77.default.createElement(
|
|
68856
68861
|
ErrorMessage,
|
|
68857
68862
|
{
|
|
68858
|
-
message: `Site component "${componentId}" is missing preset CSS file for the preset key "${presetName}".`
|
|
68863
|
+
message: `Site component "${componentId}" is missing preset CSS file for the preset key "${presetName}"${elementBasePath ? ` in the element base path "${elementBasePath}".` : "."}`
|
|
68859
68864
|
}
|
|
68860
68865
|
);
|
|
68861
68866
|
},
|
|
@@ -68890,6 +68895,15 @@ ${errorMessage2}`
|
|
|
68890
68895
|
message: `The version "${version}" produced by the system does not conform to the expected semantic versioning format and could not be parsed.`
|
|
68891
68896
|
}
|
|
68892
68897
|
);
|
|
68898
|
+
},
|
|
68899
|
+
InvalidSiteComponentElementItem: ({ elementPath }) => {
|
|
68900
|
+
return () => /* @__PURE__ */ import_react77.default.createElement(
|
|
68901
|
+
ErrorMessage,
|
|
68902
|
+
{
|
|
68903
|
+
cause,
|
|
68904
|
+
message: `Site component element config is invalid at ${elementPath}`
|
|
68905
|
+
}
|
|
68906
|
+
);
|
|
68893
68907
|
}
|
|
68894
68908
|
});
|
|
68895
68909
|
}
|
|
@@ -73230,10 +73244,15 @@ async function readUserConfig() {
|
|
|
73230
73244
|
|
|
73231
73245
|
// ../cli-panorama/src/createPanorama.ts
|
|
73232
73246
|
var globalConfig = createGlobalConfig();
|
|
73247
|
+
var overrides = getTestOverrides();
|
|
73248
|
+
if (overrides.panoramaReporterUrl) {
|
|
73249
|
+
globalConfig.setReporter(
|
|
73250
|
+
nodeReporter(overrides.panoramaReporterUrl, { silent: true })
|
|
73251
|
+
);
|
|
73252
|
+
}
|
|
73233
73253
|
async function createPanorama(options) {
|
|
73234
73254
|
const { version, artifact, userId } = options;
|
|
73235
73255
|
const userConfig = await readUserConfig();
|
|
73236
|
-
const overrides = getTestOverrides();
|
|
73237
73256
|
const factory = panoramaClientFactory({
|
|
73238
73257
|
baseParams: {
|
|
73239
73258
|
platform: Platform.Standalone,
|
|
@@ -73247,29 +73266,8 @@ async function createPanorama(options) {
|
|
|
73247
73266
|
silent: true
|
|
73248
73267
|
}
|
|
73249
73268
|
}).withGlobalConfig(globalConfig).setMuted(!userConfig.telemetry);
|
|
73250
|
-
if (overrides.panoramaReporterUrl) {
|
|
73251
|
-
return factory.withReporter(nodeReporter2(overrides.panoramaReporterUrl));
|
|
73252
|
-
}
|
|
73253
73269
|
return factory;
|
|
73254
73270
|
}
|
|
73255
|
-
function nodeReporter2(url2) {
|
|
73256
|
-
let queue = Promise.resolve();
|
|
73257
|
-
const noop8 = () => {
|
|
73258
|
-
};
|
|
73259
|
-
return (logMessage) => {
|
|
73260
|
-
const body = JSON.stringify({ logMessage });
|
|
73261
|
-
queue = queue.then(() => {
|
|
73262
|
-
return fetch(url2, {
|
|
73263
|
-
method: "POST",
|
|
73264
|
-
body,
|
|
73265
|
-
headers: {
|
|
73266
|
-
"Content-Type": "application/json"
|
|
73267
|
-
}
|
|
73268
|
-
}).then(noop8).catch(noop8);
|
|
73269
|
-
});
|
|
73270
|
-
return true;
|
|
73271
|
-
};
|
|
73272
|
-
}
|
|
73273
73271
|
|
|
73274
73272
|
// src/bi/index.ts
|
|
73275
73273
|
init_esm_shims();
|
|
@@ -73547,7 +73545,7 @@ function reportCommandStartEvent({
|
|
|
73547
73545
|
var package_default = {
|
|
73548
73546
|
name: "@wix/create-app",
|
|
73549
73547
|
description: "Create Wix apps",
|
|
73550
|
-
version: "0.0.
|
|
73548
|
+
version: "0.0.137",
|
|
73551
73549
|
author: "Ihor Machuzhak",
|
|
73552
73550
|
bin: "bin/index.cjs",
|
|
73553
73551
|
devDependencies: {
|
|
@@ -78162,6 +78160,12 @@ function resolveComWixpressDevcenterAppmarketlistingMarketListingServiceUrl(opts
|
|
|
78162
78160
|
srcPath: "/v1/marketListings",
|
|
78163
78161
|
destPath: "/v1/marketListings"
|
|
78164
78162
|
}
|
|
78163
|
+
],
|
|
78164
|
+
"vibe._base_domain_": [
|
|
78165
|
+
{
|
|
78166
|
+
srcPath: "/_api/app-market-listing",
|
|
78167
|
+
destPath: ""
|
|
78168
|
+
}
|
|
78165
78169
|
]
|
|
78166
78170
|
};
|
|
78167
78171
|
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
@@ -79133,6 +79137,7 @@ var ComponentType;
|
|
|
79133
79137
|
ComponentType3["TAX_EXEMPT_GROUPS_PROVIDER"] = "TAX_EXEMPT_GROUPS_PROVIDER";
|
|
79134
79138
|
ComponentType3["BOOKING_AUTOMATIONS_CONFIGURATION"] = "BOOKING_AUTOMATIONS_CONFIGURATION";
|
|
79135
79139
|
ComponentType3["WIX_VIBE_COMPONENT"] = "WIX_VIBE_COMPONENT";
|
|
79140
|
+
ComponentType3["WIXEL"] = "WIXEL";
|
|
79136
79141
|
})(ComponentType || (ComponentType = {}));
|
|
79137
79142
|
var WidgetVertical;
|
|
79138
79143
|
(function(WidgetVertical3) {
|
|
@@ -81072,6 +81077,7 @@ var Archetype;
|
|
|
81072
81077
|
Archetype3["Cart"] = "Cart";
|
|
81073
81078
|
Archetype3["ContactForm"] = "ContactForm";
|
|
81074
81079
|
Archetype3["Frame"] = "Frame";
|
|
81080
|
+
Archetype3["Divider"] = "Divider";
|
|
81075
81081
|
})(Archetype || (Archetype = {}));
|
|
81076
81082
|
var NativeStateType;
|
|
81077
81083
|
(function(NativeStateType3) {
|
|
@@ -81338,6 +81344,16 @@ var VibeActionType;
|
|
|
81338
81344
|
VibeActionType3["OPEN_DASHBOARD"] = "OPEN_DASHBOARD";
|
|
81339
81345
|
VibeActionType3["OPEN_CUSTOM_PANEL"] = "OPEN_CUSTOM_PANEL";
|
|
81340
81346
|
})(VibeActionType || (VibeActionType = {}));
|
|
81347
|
+
var AssetType;
|
|
81348
|
+
(function(AssetType3) {
|
|
81349
|
+
AssetType3["UNKNOWN"] = "UNKNOWN";
|
|
81350
|
+
AssetType3["IMAGE"] = "IMAGE";
|
|
81351
|
+
AssetType3["VIDEO"] = "VIDEO";
|
|
81352
|
+
AssetType3["LOGO"] = "LOGO";
|
|
81353
|
+
AssetType3["EVENT"] = "EVENT";
|
|
81354
|
+
AssetType3["FORM"] = "FORM";
|
|
81355
|
+
AssetType3["PDF"] = "PDF";
|
|
81356
|
+
})(AssetType || (AssetType = {}));
|
|
81341
81357
|
var SaleType;
|
|
81342
81358
|
(function(SaleType2) {
|
|
81343
81359
|
SaleType2["UNKNOWN_SALE_TYPE"] = "UNKNOWN_SALE_TYPE";
|
|
@@ -81764,6 +81780,7 @@ var ComponentType2;
|
|
|
81764
81780
|
ComponentType3["TAX_EXEMPT_GROUPS_PROVIDER"] = "TAX_EXEMPT_GROUPS_PROVIDER";
|
|
81765
81781
|
ComponentType3["BOOKING_AUTOMATIONS_CONFIGURATION"] = "BOOKING_AUTOMATIONS_CONFIGURATION";
|
|
81766
81782
|
ComponentType3["WIX_VIBE_COMPONENT"] = "WIX_VIBE_COMPONENT";
|
|
81783
|
+
ComponentType3["WIXEL"] = "WIXEL";
|
|
81767
81784
|
})(ComponentType2 || (ComponentType2 = {}));
|
|
81768
81785
|
var WidgetVertical2;
|
|
81769
81786
|
(function(WidgetVertical3) {
|
|
@@ -83703,6 +83720,7 @@ var Archetype2;
|
|
|
83703
83720
|
Archetype3["Cart"] = "Cart";
|
|
83704
83721
|
Archetype3["ContactForm"] = "ContactForm";
|
|
83705
83722
|
Archetype3["Frame"] = "Frame";
|
|
83723
|
+
Archetype3["Divider"] = "Divider";
|
|
83706
83724
|
})(Archetype2 || (Archetype2 = {}));
|
|
83707
83725
|
var NativeStateType2;
|
|
83708
83726
|
(function(NativeStateType3) {
|
|
@@ -83969,6 +83987,16 @@ var VibeActionType2;
|
|
|
83969
83987
|
VibeActionType3["OPEN_DASHBOARD"] = "OPEN_DASHBOARD";
|
|
83970
83988
|
VibeActionType3["OPEN_CUSTOM_PANEL"] = "OPEN_CUSTOM_PANEL";
|
|
83971
83989
|
})(VibeActionType2 || (VibeActionType2 = {}));
|
|
83990
|
+
var AssetType2;
|
|
83991
|
+
(function(AssetType3) {
|
|
83992
|
+
AssetType3["UNKNOWN"] = "UNKNOWN";
|
|
83993
|
+
AssetType3["IMAGE"] = "IMAGE";
|
|
83994
|
+
AssetType3["VIDEO"] = "VIDEO";
|
|
83995
|
+
AssetType3["LOGO"] = "LOGO";
|
|
83996
|
+
AssetType3["EVENT"] = "EVENT";
|
|
83997
|
+
AssetType3["FORM"] = "FORM";
|
|
83998
|
+
AssetType3["PDF"] = "PDF";
|
|
83999
|
+
})(AssetType2 || (AssetType2 = {}));
|
|
83972
84000
|
var OpenConsentIn2;
|
|
83973
84001
|
(function(OpenConsentIn3) {
|
|
83974
84002
|
OpenConsentIn3["NONE_VALUE"] = "NONE_VALUE";
|