@wix/create-new 0.0.64 → 0.0.65
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-6IGZ75IY.js → chunk-6R4YJJNX.js} +6 -2
- package/build/{chunk-6IGZ75IY.js.map → chunk-6R4YJJNX.js.map} +1 -1
- package/build/{generator-7ZJRN5BW.js → generator-SD43RRXK.js} +2 -2
- package/build/index.js +447 -128
- package/build/index.js.map +1 -1
- package/package.json +2 -2
- /package/build/{generator-7ZJRN5BW.js.map → generator-SD43RRXK.js.map} +0 -0
package/build/index.js
CHANGED
|
@@ -80,6 +80,7 @@ import {
|
|
|
80
80
|
CliSystemErrorCode,
|
|
81
81
|
RepoType,
|
|
82
82
|
USER_CONFIG_FILENAME,
|
|
83
|
+
WIX_CONFIG_FILENAME,
|
|
83
84
|
createPackageManager,
|
|
84
85
|
execa,
|
|
85
86
|
external_exports,
|
|
@@ -116,7 +117,7 @@ import {
|
|
|
116
117
|
writeJson,
|
|
117
118
|
writePackageJson,
|
|
118
119
|
zod_default
|
|
119
|
-
} from "./chunk-
|
|
120
|
+
} from "./chunk-6R4YJJNX.js";
|
|
120
121
|
import {
|
|
121
122
|
__commonJS,
|
|
122
123
|
__dirname,
|
|
@@ -3378,20 +3379,20 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
3378
3379
|
let debugOption;
|
|
3379
3380
|
let debugHost = "127.0.0.1";
|
|
3380
3381
|
let debugPort = "9229";
|
|
3381
|
-
let
|
|
3382
|
-
if ((
|
|
3383
|
-
debugOption =
|
|
3384
|
-
} else if ((
|
|
3385
|
-
debugOption =
|
|
3386
|
-
if (/^\d+$/.test(
|
|
3387
|
-
debugPort =
|
|
3382
|
+
let match39;
|
|
3383
|
+
if ((match39 = arg.match(/^(--inspect(-brk)?)$/)) !== null) {
|
|
3384
|
+
debugOption = match39[1];
|
|
3385
|
+
} else if ((match39 = arg.match(/^(--inspect(-brk|-port)?)=([^:]+)$/)) !== null) {
|
|
3386
|
+
debugOption = match39[1];
|
|
3387
|
+
if (/^\d+$/.test(match39[3])) {
|
|
3388
|
+
debugPort = match39[3];
|
|
3388
3389
|
} else {
|
|
3389
|
-
debugHost =
|
|
3390
|
+
debugHost = match39[3];
|
|
3390
3391
|
}
|
|
3391
|
-
} else if ((
|
|
3392
|
-
debugOption =
|
|
3393
|
-
debugHost =
|
|
3394
|
-
debugPort =
|
|
3392
|
+
} else if ((match39 = arg.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/)) !== null) {
|
|
3393
|
+
debugOption = match39[1];
|
|
3394
|
+
debugHost = match39[3];
|
|
3395
|
+
debugPort = match39[4];
|
|
3395
3396
|
}
|
|
3396
3397
|
if (debugOption && debugPort !== "0") {
|
|
3397
3398
|
return `${debugOption}=${debugHost}:${parseInt(debugPort) + 1}`;
|
|
@@ -5258,14 +5259,14 @@ var require_ms = __commonJS({
|
|
|
5258
5259
|
if (str.length > 100) {
|
|
5259
5260
|
return;
|
|
5260
5261
|
}
|
|
5261
|
-
var
|
|
5262
|
+
var match39 = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(
|
|
5262
5263
|
str
|
|
5263
5264
|
);
|
|
5264
|
-
if (!
|
|
5265
|
+
if (!match39) {
|
|
5265
5266
|
return;
|
|
5266
5267
|
}
|
|
5267
|
-
var n3 = parseFloat(
|
|
5268
|
-
var type = (
|
|
5268
|
+
var n3 = parseFloat(match39[1]);
|
|
5269
|
+
var type = (match39[2] || "ms").toLowerCase();
|
|
5269
5270
|
switch (type) {
|
|
5270
5271
|
case "years":
|
|
5271
5272
|
case "year":
|
|
@@ -5398,19 +5399,19 @@ var require_common = __commonJS({
|
|
|
5398
5399
|
args.unshift("%O");
|
|
5399
5400
|
}
|
|
5400
5401
|
let index = 0;
|
|
5401
|
-
args[0] = args[0].replace(/%([a-zA-Z%])/g, (
|
|
5402
|
-
if (
|
|
5402
|
+
args[0] = args[0].replace(/%([a-zA-Z%])/g, (match39, format2) => {
|
|
5403
|
+
if (match39 === "%%") {
|
|
5403
5404
|
return "%";
|
|
5404
5405
|
}
|
|
5405
5406
|
index++;
|
|
5406
5407
|
const formatter = createDebug.formatters[format2];
|
|
5407
5408
|
if (typeof formatter === "function") {
|
|
5408
5409
|
const val = args[index];
|
|
5409
|
-
|
|
5410
|
+
match39 = formatter.call(self2, val);
|
|
5410
5411
|
args.splice(index, 1);
|
|
5411
5412
|
index--;
|
|
5412
5413
|
}
|
|
5413
|
-
return
|
|
5414
|
+
return match39;
|
|
5414
5415
|
});
|
|
5415
5416
|
createDebug.formatArgs.call(self2, args);
|
|
5416
5417
|
const logFn = self2.log || createDebug.log;
|
|
@@ -5647,12 +5648,12 @@ var require_browser = __commonJS({
|
|
|
5647
5648
|
args.splice(1, 0, c2, "color: inherit");
|
|
5648
5649
|
let index = 0;
|
|
5649
5650
|
let lastC = 0;
|
|
5650
|
-
args[0].replace(/%[a-zA-Z%]/g, (
|
|
5651
|
-
if (
|
|
5651
|
+
args[0].replace(/%[a-zA-Z%]/g, (match39) => {
|
|
5652
|
+
if (match39 === "%%") {
|
|
5652
5653
|
return;
|
|
5653
5654
|
}
|
|
5654
5655
|
index++;
|
|
5655
|
-
if (
|
|
5656
|
+
if (match39 === "%c") {
|
|
5656
5657
|
lastC = index;
|
|
5657
5658
|
}
|
|
5658
5659
|
});
|
|
@@ -6955,8 +6956,8 @@ var require_cookies = __commonJS({
|
|
|
6955
6956
|
document.cookie = cookie.join("; ");
|
|
6956
6957
|
},
|
|
6957
6958
|
read: function read(name) {
|
|
6958
|
-
var
|
|
6959
|
-
return
|
|
6959
|
+
var match39 = document.cookie.match(new RegExp("(^|;\\s*)(" + name + ")=([^;]*)"));
|
|
6960
|
+
return match39 ? decodeURIComponent(match39[3]) : null;
|
|
6960
6961
|
},
|
|
6961
6962
|
remove: function remove(name) {
|
|
6962
6963
|
this.write(name, "", Date.now() - 864e5);
|
|
@@ -14915,21 +14916,21 @@ var require_stack_utils = __commonJS({
|
|
|
14915
14916
|
return res;
|
|
14916
14917
|
}
|
|
14917
14918
|
parseLine(line) {
|
|
14918
|
-
const
|
|
14919
|
-
if (!
|
|
14919
|
+
const match39 = line && line.match(re);
|
|
14920
|
+
if (!match39) {
|
|
14920
14921
|
return null;
|
|
14921
14922
|
}
|
|
14922
|
-
const ctor =
|
|
14923
|
-
let fname =
|
|
14924
|
-
const evalOrigin =
|
|
14925
|
-
const evalFile =
|
|
14926
|
-
const evalLine = Number(
|
|
14927
|
-
const evalCol = Number(
|
|
14928
|
-
let file =
|
|
14929
|
-
const lnum =
|
|
14930
|
-
const col =
|
|
14931
|
-
const native =
|
|
14932
|
-
const closeParen =
|
|
14923
|
+
const ctor = match39[1] === "new";
|
|
14924
|
+
let fname = match39[2];
|
|
14925
|
+
const evalOrigin = match39[3];
|
|
14926
|
+
const evalFile = match39[4];
|
|
14927
|
+
const evalLine = Number(match39[5]);
|
|
14928
|
+
const evalCol = Number(match39[6]);
|
|
14929
|
+
let file = match39[7];
|
|
14930
|
+
const lnum = match39[8];
|
|
14931
|
+
const col = match39[9];
|
|
14932
|
+
const native = match39[10] === "native";
|
|
14933
|
+
const closeParen = match39[11] === ")";
|
|
14933
14934
|
let method;
|
|
14934
14935
|
const res = {};
|
|
14935
14936
|
if (lnum) {
|
|
@@ -18894,15 +18895,15 @@ var init_TraceState = __esm({
|
|
|
18894
18895
|
|
|
18895
18896
|
// ../../node_modules/@opentelemetry/core/build/esm/trace/W3CTraceContextPropagator.js
|
|
18896
18897
|
function parseTraceParent(traceParent) {
|
|
18897
|
-
var
|
|
18898
|
-
if (!
|
|
18898
|
+
var match39 = TRACE_PARENT_REGEX.exec(traceParent);
|
|
18899
|
+
if (!match39)
|
|
18899
18900
|
return null;
|
|
18900
|
-
if (
|
|
18901
|
+
if (match39[1] === "00" && match39[5])
|
|
18901
18902
|
return null;
|
|
18902
18903
|
return {
|
|
18903
|
-
traceId:
|
|
18904
|
-
spanId:
|
|
18905
|
-
traceFlags: parseInt(
|
|
18904
|
+
traceId: match39[2],
|
|
18905
|
+
spanId: match39[3],
|
|
18906
|
+
traceFlags: parseInt(match39[4], 16)
|
|
18906
18907
|
};
|
|
18907
18908
|
}
|
|
18908
18909
|
var TRACE_PARENT_HEADER, TRACE_STATE_HEADER, VERSION2, VERSION_PART, TRACE_ID_PART, PARENT_ID_PART, FLAGS_PART, TRACE_PARENT_REGEX, W3CTraceContextPropagator;
|
|
@@ -20004,8 +20005,8 @@ var require_semver = __commonJS({
|
|
|
20004
20005
|
}
|
|
20005
20006
|
if (identifier) {
|
|
20006
20007
|
const r2 = new RegExp(`^${this.options.loose ? src[t3.PRERELEASELOOSE] : src[t3.PRERELEASE]}$`);
|
|
20007
|
-
const
|
|
20008
|
-
if (!
|
|
20008
|
+
const match39 = `-${identifier}`.match(r2);
|
|
20009
|
+
if (!match39 || match39[1] !== identifier) {
|
|
20009
20010
|
throw new Error(`invalid identifier: ${identifier}`);
|
|
20010
20011
|
}
|
|
20011
20012
|
}
|
|
@@ -20488,28 +20489,28 @@ var require_coerce = __commonJS({
|
|
|
20488
20489
|
return null;
|
|
20489
20490
|
}
|
|
20490
20491
|
options = options || {};
|
|
20491
|
-
let
|
|
20492
|
+
let match39 = null;
|
|
20492
20493
|
if (!options.rtl) {
|
|
20493
|
-
|
|
20494
|
+
match39 = version.match(options.includePrerelease ? re[t3.COERCEFULL] : re[t3.COERCE]);
|
|
20494
20495
|
} else {
|
|
20495
20496
|
const coerceRtlRegex = options.includePrerelease ? re[t3.COERCERTLFULL] : re[t3.COERCERTL];
|
|
20496
20497
|
let next;
|
|
20497
|
-
while ((next = coerceRtlRegex.exec(version)) && (!
|
|
20498
|
-
if (!
|
|
20499
|
-
|
|
20498
|
+
while ((next = coerceRtlRegex.exec(version)) && (!match39 || match39.index + match39[0].length !== version.length)) {
|
|
20499
|
+
if (!match39 || next.index + next[0].length !== match39.index + match39[0].length) {
|
|
20500
|
+
match39 = next;
|
|
20500
20501
|
}
|
|
20501
20502
|
coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length;
|
|
20502
20503
|
}
|
|
20503
20504
|
coerceRtlRegex.lastIndex = -1;
|
|
20504
20505
|
}
|
|
20505
|
-
if (
|
|
20506
|
+
if (match39 === null) {
|
|
20506
20507
|
return null;
|
|
20507
20508
|
}
|
|
20508
|
-
const major =
|
|
20509
|
-
const minor =
|
|
20510
|
-
const patch =
|
|
20511
|
-
const prerelease = options.includePrerelease &&
|
|
20512
|
-
const build = options.includePrerelease &&
|
|
20509
|
+
const major = match39[2];
|
|
20510
|
+
const minor = match39[3] || "0";
|
|
20511
|
+
const patch = match39[4] || "0";
|
|
20512
|
+
const prerelease = options.includePrerelease && match39[5] ? `-${match39[5]}` : "";
|
|
20513
|
+
const build = options.includePrerelease && match39[6] ? `+${match39[6]}` : "";
|
|
20513
20514
|
return parse4(`${major}.${minor}.${patch}${prerelease}${build}`, options);
|
|
20514
20515
|
};
|
|
20515
20516
|
module2.exports = coerce;
|
|
@@ -32693,16 +32694,16 @@ var require_util = __commonJS({
|
|
|
32693
32694
|
var urlRegexp = /^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/;
|
|
32694
32695
|
var dataUrlRegexp = /^data:.+\,.+$/;
|
|
32695
32696
|
function urlParse(aUrl) {
|
|
32696
|
-
var
|
|
32697
|
-
if (!
|
|
32697
|
+
var match39 = aUrl.match(urlRegexp);
|
|
32698
|
+
if (!match39) {
|
|
32698
32699
|
return null;
|
|
32699
32700
|
}
|
|
32700
32701
|
return {
|
|
32701
|
-
scheme:
|
|
32702
|
-
auth:
|
|
32703
|
-
host:
|
|
32704
|
-
port:
|
|
32705
|
-
path:
|
|
32702
|
+
scheme: match39[1],
|
|
32703
|
+
auth: match39[2],
|
|
32704
|
+
host: match39[3],
|
|
32705
|
+
port: match39[4],
|
|
32706
|
+
path: match39[5]
|
|
32706
32707
|
};
|
|
32707
32708
|
}
|
|
32708
32709
|
exports.urlParse = urlParse;
|
|
@@ -40017,8 +40018,8 @@ var require_lib3 = __commonJS({
|
|
|
40017
40018
|
default:
|
|
40018
40019
|
if (ch >= 48 && ch <= 55) {
|
|
40019
40020
|
const startPos = pos - 1;
|
|
40020
|
-
const
|
|
40021
|
-
let octalStr =
|
|
40021
|
+
const match39 = /^[0-7]+/.exec(input.slice(startPos, pos + 2));
|
|
40022
|
+
let octalStr = match39[0];
|
|
40022
40023
|
let octal = parseInt(octalStr, 8);
|
|
40023
40024
|
if (octal > 255) {
|
|
40024
40025
|
octalStr = octalStr.slice(0, -1);
|
|
@@ -49139,6 +49140,173 @@ var require_lib3 = __commonJS({
|
|
|
49139
49140
|
}
|
|
49140
49141
|
});
|
|
49141
49142
|
|
|
49143
|
+
// ../../node_modules/lodash/_baseSlice.js
|
|
49144
|
+
var require_baseSlice = __commonJS({
|
|
49145
|
+
"../../node_modules/lodash/_baseSlice.js"(exports, module2) {
|
|
49146
|
+
"use strict";
|
|
49147
|
+
init_esm_shims();
|
|
49148
|
+
function baseSlice(array, start, end) {
|
|
49149
|
+
var index = -1, length = array.length;
|
|
49150
|
+
if (start < 0) {
|
|
49151
|
+
start = -start > length ? 0 : length + start;
|
|
49152
|
+
}
|
|
49153
|
+
end = end > length ? length : end;
|
|
49154
|
+
if (end < 0) {
|
|
49155
|
+
end += length;
|
|
49156
|
+
}
|
|
49157
|
+
length = start > end ? 0 : end - start >>> 0;
|
|
49158
|
+
start >>>= 0;
|
|
49159
|
+
var result = Array(length);
|
|
49160
|
+
while (++index < length) {
|
|
49161
|
+
result[index] = array[index + start];
|
|
49162
|
+
}
|
|
49163
|
+
return result;
|
|
49164
|
+
}
|
|
49165
|
+
module2.exports = baseSlice;
|
|
49166
|
+
}
|
|
49167
|
+
});
|
|
49168
|
+
|
|
49169
|
+
// ../../node_modules/lodash/_castSlice.js
|
|
49170
|
+
var require_castSlice = __commonJS({
|
|
49171
|
+
"../../node_modules/lodash/_castSlice.js"(exports, module2) {
|
|
49172
|
+
"use strict";
|
|
49173
|
+
init_esm_shims();
|
|
49174
|
+
var baseSlice = require_baseSlice();
|
|
49175
|
+
function castSlice(array, start, end) {
|
|
49176
|
+
var length = array.length;
|
|
49177
|
+
end = end === void 0 ? length : end;
|
|
49178
|
+
return !start && end >= length ? array : baseSlice(array, start, end);
|
|
49179
|
+
}
|
|
49180
|
+
module2.exports = castSlice;
|
|
49181
|
+
}
|
|
49182
|
+
});
|
|
49183
|
+
|
|
49184
|
+
// ../../node_modules/lodash/_hasUnicode.js
|
|
49185
|
+
var require_hasUnicode = __commonJS({
|
|
49186
|
+
"../../node_modules/lodash/_hasUnicode.js"(exports, module2) {
|
|
49187
|
+
"use strict";
|
|
49188
|
+
init_esm_shims();
|
|
49189
|
+
var rsAstralRange = "\\ud800-\\udfff";
|
|
49190
|
+
var rsComboMarksRange = "\\u0300-\\u036f";
|
|
49191
|
+
var reComboHalfMarksRange = "\\ufe20-\\ufe2f";
|
|
49192
|
+
var rsComboSymbolsRange = "\\u20d0-\\u20ff";
|
|
49193
|
+
var rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange;
|
|
49194
|
+
var rsVarRange = "\\ufe0e\\ufe0f";
|
|
49195
|
+
var rsZWJ = "\\u200d";
|
|
49196
|
+
var reHasUnicode = RegExp("[" + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + "]");
|
|
49197
|
+
function hasUnicode(string) {
|
|
49198
|
+
return reHasUnicode.test(string);
|
|
49199
|
+
}
|
|
49200
|
+
module2.exports = hasUnicode;
|
|
49201
|
+
}
|
|
49202
|
+
});
|
|
49203
|
+
|
|
49204
|
+
// ../../node_modules/lodash/_asciiToArray.js
|
|
49205
|
+
var require_asciiToArray = __commonJS({
|
|
49206
|
+
"../../node_modules/lodash/_asciiToArray.js"(exports, module2) {
|
|
49207
|
+
"use strict";
|
|
49208
|
+
init_esm_shims();
|
|
49209
|
+
function asciiToArray(string) {
|
|
49210
|
+
return string.split("");
|
|
49211
|
+
}
|
|
49212
|
+
module2.exports = asciiToArray;
|
|
49213
|
+
}
|
|
49214
|
+
});
|
|
49215
|
+
|
|
49216
|
+
// ../../node_modules/lodash/_unicodeToArray.js
|
|
49217
|
+
var require_unicodeToArray = __commonJS({
|
|
49218
|
+
"../../node_modules/lodash/_unicodeToArray.js"(exports, module2) {
|
|
49219
|
+
"use strict";
|
|
49220
|
+
init_esm_shims();
|
|
49221
|
+
var rsAstralRange = "\\ud800-\\udfff";
|
|
49222
|
+
var rsComboMarksRange = "\\u0300-\\u036f";
|
|
49223
|
+
var reComboHalfMarksRange = "\\ufe20-\\ufe2f";
|
|
49224
|
+
var rsComboSymbolsRange = "\\u20d0-\\u20ff";
|
|
49225
|
+
var rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange;
|
|
49226
|
+
var rsVarRange = "\\ufe0e\\ufe0f";
|
|
49227
|
+
var rsAstral = "[" + rsAstralRange + "]";
|
|
49228
|
+
var rsCombo = "[" + rsComboRange + "]";
|
|
49229
|
+
var rsFitz = "\\ud83c[\\udffb-\\udfff]";
|
|
49230
|
+
var rsModifier = "(?:" + rsCombo + "|" + rsFitz + ")";
|
|
49231
|
+
var rsNonAstral = "[^" + rsAstralRange + "]";
|
|
49232
|
+
var rsRegional = "(?:\\ud83c[\\udde6-\\uddff]){2}";
|
|
49233
|
+
var rsSurrPair = "[\\ud800-\\udbff][\\udc00-\\udfff]";
|
|
49234
|
+
var rsZWJ = "\\u200d";
|
|
49235
|
+
var reOptMod = rsModifier + "?";
|
|
49236
|
+
var rsOptVar = "[" + rsVarRange + "]?";
|
|
49237
|
+
var rsOptJoin = "(?:" + rsZWJ + "(?:" + [rsNonAstral, rsRegional, rsSurrPair].join("|") + ")" + rsOptVar + reOptMod + ")*";
|
|
49238
|
+
var rsSeq = rsOptVar + reOptMod + rsOptJoin;
|
|
49239
|
+
var rsSymbol = "(?:" + [rsNonAstral + rsCombo + "?", rsCombo, rsRegional, rsSurrPair, rsAstral].join("|") + ")";
|
|
49240
|
+
var reUnicode = RegExp(rsFitz + "(?=" + rsFitz + ")|" + rsSymbol + rsSeq, "g");
|
|
49241
|
+
function unicodeToArray(string) {
|
|
49242
|
+
return string.match(reUnicode) || [];
|
|
49243
|
+
}
|
|
49244
|
+
module2.exports = unicodeToArray;
|
|
49245
|
+
}
|
|
49246
|
+
});
|
|
49247
|
+
|
|
49248
|
+
// ../../node_modules/lodash/_stringToArray.js
|
|
49249
|
+
var require_stringToArray = __commonJS({
|
|
49250
|
+
"../../node_modules/lodash/_stringToArray.js"(exports, module2) {
|
|
49251
|
+
"use strict";
|
|
49252
|
+
init_esm_shims();
|
|
49253
|
+
var asciiToArray = require_asciiToArray();
|
|
49254
|
+
var hasUnicode = require_hasUnicode();
|
|
49255
|
+
var unicodeToArray = require_unicodeToArray();
|
|
49256
|
+
function stringToArray(string) {
|
|
49257
|
+
return hasUnicode(string) ? unicodeToArray(string) : asciiToArray(string);
|
|
49258
|
+
}
|
|
49259
|
+
module2.exports = stringToArray;
|
|
49260
|
+
}
|
|
49261
|
+
});
|
|
49262
|
+
|
|
49263
|
+
// ../../node_modules/lodash/_createCaseFirst.js
|
|
49264
|
+
var require_createCaseFirst = __commonJS({
|
|
49265
|
+
"../../node_modules/lodash/_createCaseFirst.js"(exports, module2) {
|
|
49266
|
+
"use strict";
|
|
49267
|
+
init_esm_shims();
|
|
49268
|
+
var castSlice = require_castSlice();
|
|
49269
|
+
var hasUnicode = require_hasUnicode();
|
|
49270
|
+
var stringToArray = require_stringToArray();
|
|
49271
|
+
var toString = require_toString();
|
|
49272
|
+
function createCaseFirst(methodName) {
|
|
49273
|
+
return function(string) {
|
|
49274
|
+
string = toString(string);
|
|
49275
|
+
var strSymbols = hasUnicode(string) ? stringToArray(string) : void 0;
|
|
49276
|
+
var chr = strSymbols ? strSymbols[0] : string.charAt(0);
|
|
49277
|
+
var trailing = strSymbols ? castSlice(strSymbols, 1).join("") : string.slice(1);
|
|
49278
|
+
return chr[methodName]() + trailing;
|
|
49279
|
+
};
|
|
49280
|
+
}
|
|
49281
|
+
module2.exports = createCaseFirst;
|
|
49282
|
+
}
|
|
49283
|
+
});
|
|
49284
|
+
|
|
49285
|
+
// ../../node_modules/lodash/upperFirst.js
|
|
49286
|
+
var require_upperFirst = __commonJS({
|
|
49287
|
+
"../../node_modules/lodash/upperFirst.js"(exports, module2) {
|
|
49288
|
+
"use strict";
|
|
49289
|
+
init_esm_shims();
|
|
49290
|
+
var createCaseFirst = require_createCaseFirst();
|
|
49291
|
+
var upperFirst = createCaseFirst("toUpperCase");
|
|
49292
|
+
module2.exports = upperFirst;
|
|
49293
|
+
}
|
|
49294
|
+
});
|
|
49295
|
+
|
|
49296
|
+
// ../../node_modules/lodash/startCase.js
|
|
49297
|
+
var require_startCase = __commonJS({
|
|
49298
|
+
"../../node_modules/lodash/startCase.js"(exports, module2) {
|
|
49299
|
+
"use strict";
|
|
49300
|
+
init_esm_shims();
|
|
49301
|
+
var createCompounder = require_createCompounder();
|
|
49302
|
+
var upperFirst = require_upperFirst();
|
|
49303
|
+
var startCase2 = createCompounder(function(result, word, index) {
|
|
49304
|
+
return result + (index ? " " : "") + upperFirst(word);
|
|
49305
|
+
});
|
|
49306
|
+
module2.exports = startCase2;
|
|
49307
|
+
}
|
|
49308
|
+
});
|
|
49309
|
+
|
|
49142
49310
|
// ../../node_modules/@vercel/detect-agent/dist/index.js
|
|
49143
49311
|
var require_dist2 = __commonJS({
|
|
49144
49312
|
"../../node_modules/@vercel/detect-agent/dist/index.js"(exports, module2) {
|
|
@@ -51580,12 +51748,12 @@ var getAllProperties = (object) => {
|
|
|
51580
51748
|
};
|
|
51581
51749
|
function autoBind(self2, { include, exclude } = {}) {
|
|
51582
51750
|
const filter = (key) => {
|
|
51583
|
-
const
|
|
51751
|
+
const match39 = (pattern) => typeof pattern === "string" ? key === pattern : pattern.test(key);
|
|
51584
51752
|
if (include) {
|
|
51585
|
-
return include.some(
|
|
51753
|
+
return include.some(match39);
|
|
51586
51754
|
}
|
|
51587
51755
|
if (exclude) {
|
|
51588
|
-
return !exclude.some(
|
|
51756
|
+
return !exclude.some(match39);
|
|
51589
51757
|
}
|
|
51590
51758
|
return true;
|
|
51591
51759
|
};
|
|
@@ -57343,9 +57511,9 @@ var Highlighter = ({ pattern, text }) => {
|
|
|
57343
57511
|
}
|
|
57344
57512
|
const matches = text.matchAll(pattern);
|
|
57345
57513
|
const hightlightMap = new Array(text.length).fill(0);
|
|
57346
|
-
for (const
|
|
57347
|
-
const start =
|
|
57348
|
-
const end =
|
|
57514
|
+
for (const match39 of matches) {
|
|
57515
|
+
const start = match39.index;
|
|
57516
|
+
const end = match39.index + match39[0].length;
|
|
57349
57517
|
for (let i2 = start; i2 < end; i2++) {
|
|
57350
57518
|
hightlightMap[i2] = 1;
|
|
57351
57519
|
}
|
|
@@ -58128,11 +58296,11 @@ function hasFlag3(flag, argv = process18.argv) {
|
|
|
58128
58296
|
// ../../node_modules/supports-hyperlinks/index.js
|
|
58129
58297
|
function parseVersion(versionString = "") {
|
|
58130
58298
|
if (/^\d{3,4}$/.test(versionString)) {
|
|
58131
|
-
const
|
|
58299
|
+
const match39 = /(\d{1,2})(\d{2})/.exec(versionString) ?? [];
|
|
58132
58300
|
return {
|
|
58133
58301
|
major: 0,
|
|
58134
|
-
minor: Number.parseInt(
|
|
58135
|
-
patch: Number.parseInt(
|
|
58302
|
+
minor: Number.parseInt(match39[1], 10),
|
|
58303
|
+
patch: Number.parseInt(match39[2], 10)
|
|
58136
58304
|
};
|
|
58137
58305
|
}
|
|
58138
58306
|
const versions = (versionString ?? "").split(".").map((n3) => Number.parseInt(n3, 10));
|
|
@@ -59692,9 +59860,9 @@ init_esm_shims();
|
|
|
59692
59860
|
var DATE_TIME_REGEX = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
|
|
59693
59861
|
function parseDateTimeSkeleton(skeleton) {
|
|
59694
59862
|
var result = {};
|
|
59695
|
-
skeleton.replace(DATE_TIME_REGEX, function(
|
|
59696
|
-
var len =
|
|
59697
|
-
switch (
|
|
59863
|
+
skeleton.replace(DATE_TIME_REGEX, function(match39) {
|
|
59864
|
+
var len = match39.length;
|
|
59865
|
+
switch (match39[0]) {
|
|
59698
59866
|
// Era
|
|
59699
59867
|
case "G":
|
|
59700
59868
|
result.era = len === 4 ? "long" : len === 5 ? "narrow" : "short";
|
|
@@ -61704,21 +61872,21 @@ if (REGEX_SUPPORTS_U_AND_Y) {
|
|
|
61704
61872
|
matchIdentifierAtIndex = function matchIdentifierAtIndex2(s2, index) {
|
|
61705
61873
|
var _a3;
|
|
61706
61874
|
IDENTIFIER_PREFIX_RE_1.lastIndex = index;
|
|
61707
|
-
var
|
|
61708
|
-
return (_a3 =
|
|
61875
|
+
var match39 = IDENTIFIER_PREFIX_RE_1.exec(s2);
|
|
61876
|
+
return (_a3 = match39[1]) !== null && _a3 !== void 0 ? _a3 : "";
|
|
61709
61877
|
};
|
|
61710
61878
|
} else {
|
|
61711
61879
|
matchIdentifierAtIndex = function matchIdentifierAtIndex2(s2, index) {
|
|
61712
|
-
var
|
|
61880
|
+
var match39 = [];
|
|
61713
61881
|
while (true) {
|
|
61714
61882
|
var c2 = codePointAt(s2, index);
|
|
61715
61883
|
if (c2 === void 0 || _isWhiteSpace(c2) || _isPatternSyntax(c2)) {
|
|
61716
61884
|
break;
|
|
61717
61885
|
}
|
|
61718
|
-
|
|
61886
|
+
match39.push(c2);
|
|
61719
61887
|
index += c2 >= 65536 ? 2 : 1;
|
|
61720
61888
|
}
|
|
61721
|
-
return fromCodePoint.apply(void 0,
|
|
61889
|
+
return fromCodePoint.apply(void 0, match39);
|
|
61722
61890
|
};
|
|
61723
61891
|
}
|
|
61724
61892
|
var IDENTIFIER_PREFIX_RE_1;
|
|
@@ -64141,7 +64309,7 @@ var Interpolator = class {
|
|
|
64141
64309
|
this.nestingRegexp = getOrResetRegExp(this.nestingRegexp, `${this.nestingPrefix}(.+?)${this.nestingSuffix}`);
|
|
64142
64310
|
}
|
|
64143
64311
|
interpolate(str, data, lng, options) {
|
|
64144
|
-
let
|
|
64312
|
+
let match39;
|
|
64145
64313
|
let value2;
|
|
64146
64314
|
let replaces;
|
|
64147
64315
|
const defaultData = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {};
|
|
@@ -64175,17 +64343,17 @@ var Interpolator = class {
|
|
|
64175
64343
|
}];
|
|
64176
64344
|
todos.forEach((todo) => {
|
|
64177
64345
|
replaces = 0;
|
|
64178
|
-
while (
|
|
64179
|
-
const matchedVar =
|
|
64346
|
+
while (match39 = todo.regex.exec(str)) {
|
|
64347
|
+
const matchedVar = match39[1].trim();
|
|
64180
64348
|
value2 = handleFormat(matchedVar);
|
|
64181
64349
|
if (value2 === void 0) {
|
|
64182
64350
|
if (typeof missingInterpolationHandler === "function") {
|
|
64183
|
-
const temp = missingInterpolationHandler(str,
|
|
64351
|
+
const temp = missingInterpolationHandler(str, match39, options);
|
|
64184
64352
|
value2 = isString2(temp) ? temp : "";
|
|
64185
64353
|
} else if (options && Object.prototype.hasOwnProperty.call(options, matchedVar)) {
|
|
64186
64354
|
value2 = "";
|
|
64187
64355
|
} else if (skipOnVariables) {
|
|
64188
|
-
value2 =
|
|
64356
|
+
value2 = match39[0];
|
|
64189
64357
|
continue;
|
|
64190
64358
|
} else {
|
|
64191
64359
|
this.logger.warn(`missed to pass in variable ${matchedVar} for interpolating ${str}`);
|
|
@@ -64195,10 +64363,10 @@ var Interpolator = class {
|
|
|
64195
64363
|
value2 = makeString(value2);
|
|
64196
64364
|
}
|
|
64197
64365
|
const safeValue = todo.safeValue(value2);
|
|
64198
|
-
str = str.replace(
|
|
64366
|
+
str = str.replace(match39[0], safeValue);
|
|
64199
64367
|
if (skipOnVariables) {
|
|
64200
64368
|
todo.regex.lastIndex += value2.length;
|
|
64201
|
-
todo.regex.lastIndex -=
|
|
64369
|
+
todo.regex.lastIndex -= match39[0].length;
|
|
64202
64370
|
} else {
|
|
64203
64371
|
todo.regex.lastIndex = 0;
|
|
64204
64372
|
}
|
|
@@ -64212,7 +64380,7 @@ var Interpolator = class {
|
|
|
64212
64380
|
}
|
|
64213
64381
|
nest(str, fc) {
|
|
64214
64382
|
let options = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
64215
|
-
let
|
|
64383
|
+
let match39;
|
|
64216
64384
|
let value2;
|
|
64217
64385
|
let clonedOptions;
|
|
64218
64386
|
const handleHasOptions = (key, inheritedOptions) => {
|
|
@@ -64240,7 +64408,7 @@ var Interpolator = class {
|
|
|
64240
64408
|
if (clonedOptions.defaultValue && clonedOptions.defaultValue.indexOf(this.prefix) > -1) delete clonedOptions.defaultValue;
|
|
64241
64409
|
return key;
|
|
64242
64410
|
};
|
|
64243
|
-
while (
|
|
64411
|
+
while (match39 = this.nestingRegexp.exec(str)) {
|
|
64244
64412
|
let formatters = [];
|
|
64245
64413
|
clonedOptions = {
|
|
64246
64414
|
...options
|
|
@@ -64249,26 +64417,26 @@ var Interpolator = class {
|
|
|
64249
64417
|
clonedOptions.applyPostProcessor = false;
|
|
64250
64418
|
delete clonedOptions.defaultValue;
|
|
64251
64419
|
let doReduce = false;
|
|
64252
|
-
if (
|
|
64253
|
-
const r2 =
|
|
64254
|
-
|
|
64420
|
+
if (match39[0].indexOf(this.formatSeparator) !== -1 && !/{.*}/.test(match39[1])) {
|
|
64421
|
+
const r2 = match39[1].split(this.formatSeparator).map((elem) => elem.trim());
|
|
64422
|
+
match39[1] = r2.shift();
|
|
64255
64423
|
formatters = r2;
|
|
64256
64424
|
doReduce = true;
|
|
64257
64425
|
}
|
|
64258
|
-
value2 = fc(handleHasOptions.call(this,
|
|
64259
|
-
if (value2 &&
|
|
64426
|
+
value2 = fc(handleHasOptions.call(this, match39[1].trim(), clonedOptions), clonedOptions);
|
|
64427
|
+
if (value2 && match39[0] === str && !isString2(value2)) return value2;
|
|
64260
64428
|
if (!isString2(value2)) value2 = makeString(value2);
|
|
64261
64429
|
if (!value2) {
|
|
64262
|
-
this.logger.warn(`missed to resolve ${
|
|
64430
|
+
this.logger.warn(`missed to resolve ${match39[1]} for nesting ${str}`);
|
|
64263
64431
|
value2 = "";
|
|
64264
64432
|
}
|
|
64265
64433
|
if (doReduce) {
|
|
64266
64434
|
value2 = formatters.reduce((v, f) => this.format(v, f, options.lng, {
|
|
64267
64435
|
...options,
|
|
64268
|
-
interpolationkey:
|
|
64436
|
+
interpolationkey: match39[1].trim()
|
|
64269
64437
|
}), value2.trim());
|
|
64270
64438
|
}
|
|
64271
|
-
str = str.replace(
|
|
64439
|
+
str = str.replace(match39[0], value2);
|
|
64272
64440
|
this.regexp.lastIndex = 0;
|
|
64273
64441
|
}
|
|
64274
64442
|
return str;
|
|
@@ -65391,8 +65559,8 @@ async function defaultBrowserId() {
|
|
|
65391
65559
|
throw new Error("macOS only");
|
|
65392
65560
|
}
|
|
65393
65561
|
const { stdout } = await execFileAsync("defaults", ["read", "com.apple.LaunchServices/com.apple.launchservices.secure", "LSHandlers"]);
|
|
65394
|
-
const
|
|
65395
|
-
return
|
|
65562
|
+
const match39 = /LSHandlerRoleAll = "(?!-)(?<id>[^"]+?)";\s+?LSHandlerURLScheme = (?:http|https);/.exec(stdout);
|
|
65563
|
+
return match39?.groups.id ?? "com.apple.Safari";
|
|
65396
65564
|
}
|
|
65397
65565
|
|
|
65398
65566
|
// ../../node_modules/bundle-name/index.js
|
|
@@ -65446,11 +65614,11 @@ async function defaultBrowser(_execFileAsync = execFileAsync3) {
|
|
|
65446
65614
|
"/v",
|
|
65447
65615
|
"ProgId"
|
|
65448
65616
|
]);
|
|
65449
|
-
const
|
|
65450
|
-
if (!
|
|
65617
|
+
const match39 = /ProgId\s*REG_SZ\s*(?<id>\S+)/.exec(stdout);
|
|
65618
|
+
if (!match39) {
|
|
65451
65619
|
throw new UnknownBrowserError(`Cannot find Windows browser in stdout: ${JSON.stringify(stdout)}`);
|
|
65452
65620
|
}
|
|
65453
|
-
const { id } =
|
|
65621
|
+
const { id } = match39.groups;
|
|
65454
65622
|
const browser = windowsBrowserProgIds[id];
|
|
65455
65623
|
if (!browser) {
|
|
65456
65624
|
throw new UnknownBrowserError(`Unknown browser ID: ${id}`);
|
|
@@ -65885,9 +66053,9 @@ var reDetectIndentation = /(?:\r\n|\r|\n)([ \t]*)(?:[^ \t\r\n]|$)/;
|
|
|
65885
66053
|
var reOnlyWhitespaceWithAtLeastOneNewline = /^[ \t]*[\r\n][ \t\r\n]*$/;
|
|
65886
66054
|
function _outdentArray(strings, firstInterpolatedValueSetsIndentationLevel, options) {
|
|
65887
66055
|
var indentationLevel = 0;
|
|
65888
|
-
var
|
|
65889
|
-
if (
|
|
65890
|
-
indentationLevel =
|
|
66056
|
+
var match39 = strings[0].match(reDetectIndentation);
|
|
66057
|
+
if (match39) {
|
|
66058
|
+
indentationLevel = match39[1].length;
|
|
65891
66059
|
}
|
|
65892
66060
|
var reSource = "(\\r\\n|\\r|\\n).{0," + indentationLevel + "}";
|
|
65893
66061
|
var reMatchIndent = new RegExp(reSource, "g");
|
|
@@ -68351,8 +68519,8 @@ var LINUX_VERSIONS = {
|
|
|
68351
68519
|
ubuntu: (content) => matchFirst(/distrib_release=(.*)/, content)
|
|
68352
68520
|
};
|
|
68353
68521
|
function matchFirst(regex2, text) {
|
|
68354
|
-
const
|
|
68355
|
-
return
|
|
68522
|
+
const match39 = regex2.exec(text);
|
|
68523
|
+
return match39 ? match39[1] : void 0;
|
|
68356
68524
|
}
|
|
68357
68525
|
async function getDarwinInfo() {
|
|
68358
68526
|
const darwinInfo = {
|
|
@@ -83581,7 +83749,7 @@ function getTasks({
|
|
|
83581
83749
|
cause: e2
|
|
83582
83750
|
});
|
|
83583
83751
|
}
|
|
83584
|
-
const { generateApp } = await import("./generator-
|
|
83752
|
+
const { generateApp } = await import("./generator-SD43RRXK.js");
|
|
83585
83753
|
await generateApp({
|
|
83586
83754
|
packageName,
|
|
83587
83755
|
packageFolder,
|
|
@@ -84124,7 +84292,7 @@ var getAppCommand = ({
|
|
|
84124
84292
|
|
|
84125
84293
|
// ../create-new-packages/headless-command/src/index.tsx
|
|
84126
84294
|
init_esm_shims();
|
|
84127
|
-
var
|
|
84295
|
+
var import_react159 = __toESM(require_react(), 1);
|
|
84128
84296
|
import process26 from "node:process";
|
|
84129
84297
|
|
|
84130
84298
|
// ../create-new-packages/headless-command/src/validations/validate-business-name.ts
|
|
@@ -84190,11 +84358,10 @@ init_esm_shims();
|
|
|
84190
84358
|
var import_react138 = __toESM(require_react(), 1);
|
|
84191
84359
|
var import_variant46 = __toESM(require_lib(), 1);
|
|
84192
84360
|
|
|
84193
|
-
// ../
|
|
84361
|
+
// ../funnel-projects-client/src/index.ts
|
|
84194
84362
|
init_esm_shims();
|
|
84195
|
-
var import_react137 = __toESM(require_react(), 1);
|
|
84196
84363
|
|
|
84197
|
-
// ../
|
|
84364
|
+
// ../funnel-projects-client/src/funnel-projects-client.ts
|
|
84198
84365
|
init_esm_shims();
|
|
84199
84366
|
|
|
84200
84367
|
// ../../node_modules/@wix/ambassador-funnel-projects-v1-project/build/es/http.impl.js
|
|
@@ -84263,7 +84430,7 @@ var Type3;
|
|
|
84263
84430
|
Type5["VIBE"] = "VIBE";
|
|
84264
84431
|
})(Type3 || (Type3 = {}));
|
|
84265
84432
|
|
|
84266
|
-
// ../
|
|
84433
|
+
// ../funnel-projects-client/src/schemas.ts
|
|
84267
84434
|
init_esm_shims();
|
|
84268
84435
|
var CreateProjectResponseSchema = external_exports.object({
|
|
84269
84436
|
project: external_exports.object({
|
|
@@ -84271,7 +84438,7 @@ var CreateProjectResponseSchema = external_exports.object({
|
|
|
84271
84438
|
})
|
|
84272
84439
|
});
|
|
84273
84440
|
|
|
84274
|
-
// ../
|
|
84441
|
+
// ../funnel-projects-client/src/funnel-projects-client.ts
|
|
84275
84442
|
var FunnelProjectsClient = class {
|
|
84276
84443
|
constructor(httpClient) {
|
|
84277
84444
|
this.httpClient = httpClient;
|
|
@@ -84295,7 +84462,9 @@ var FunnelProjectsClient = class {
|
|
|
84295
84462
|
};
|
|
84296
84463
|
};
|
|
84297
84464
|
|
|
84298
|
-
// ../
|
|
84465
|
+
// ../funnel-projects-client/src/useFunnelProjectsClient.ts
|
|
84466
|
+
init_esm_shims();
|
|
84467
|
+
var import_react137 = __toESM(require_react(), 1);
|
|
84299
84468
|
function useFunnelProjectsClient() {
|
|
84300
84469
|
const httpClient = useHttpClient({ type: "api" });
|
|
84301
84470
|
const client2 = (0, import_react137.useMemo)(
|
|
@@ -93202,12 +93371,12 @@ function detectCodeFormat(code, userStyles = {}) {
|
|
|
93202
93371
|
}
|
|
93203
93372
|
if (detect.quote || detect.arrowParens) {
|
|
93204
93373
|
const matches = trimmitedLine.matchAll(syntaxDetectRegex);
|
|
93205
|
-
for (const
|
|
93206
|
-
if (!
|
|
93374
|
+
for (const match39 of matches) {
|
|
93375
|
+
if (!match39.groups) {
|
|
93207
93376
|
continue;
|
|
93208
93377
|
}
|
|
93209
93378
|
for (const key in syntaxUsages) {
|
|
93210
|
-
if (
|
|
93379
|
+
if (match39.groups[key]) {
|
|
93211
93380
|
syntaxUsages[key]++;
|
|
93212
93381
|
}
|
|
93213
93382
|
}
|
|
@@ -93943,16 +94112,16 @@ async function parseCommandOptions2(targetParentFolder2, options) {
|
|
|
93943
94112
|
// ../create-new-packages/headless-command/src/validations/site-template.ts
|
|
93944
94113
|
function validateSiteTemplate(value2) {
|
|
93945
94114
|
const normalized = value2.trim().toLowerCase();
|
|
93946
|
-
const
|
|
94115
|
+
const match39 = pureHeadlessTemplates.find(
|
|
93947
94116
|
(template) => template.name === normalized
|
|
93948
94117
|
);
|
|
93949
|
-
if (!
|
|
94118
|
+
if (!match39) {
|
|
93950
94119
|
const available = pureHeadlessTemplates.map((template) => template.name).join(", ");
|
|
93951
94120
|
throw new InvalidArgumentError(
|
|
93952
94121
|
`Unknown template "${value2}". Available templates: ${available}`
|
|
93953
94122
|
);
|
|
93954
94123
|
}
|
|
93955
|
-
return
|
|
94124
|
+
return match39.name;
|
|
93956
94125
|
}
|
|
93957
94126
|
|
|
93958
94127
|
// ../create-new-packages/headless-command/src/validations/git-url.ts
|
|
@@ -95681,6 +95850,144 @@ function validateDirectoryExists(path4) {
|
|
|
95681
95850
|
return path4;
|
|
95682
95851
|
}
|
|
95683
95852
|
|
|
95853
|
+
// ../create-new-packages/headless-command/src/get-headless-init-command.tsx
|
|
95854
|
+
init_esm_shims();
|
|
95855
|
+
var import_react158 = __toESM(require_react(), 1);
|
|
95856
|
+
|
|
95857
|
+
// ../create-new-packages/headless-command/src/components/InitHeadlessSiteCommand.tsx
|
|
95858
|
+
init_esm_shims();
|
|
95859
|
+
var import_react157 = __toESM(require_react(), 1);
|
|
95860
|
+
import { basename } from "node:path";
|
|
95861
|
+
var import_variant62 = __toESM(require_lib(), 1);
|
|
95862
|
+
var import_startCase = __toESM(require_startCase(), 1);
|
|
95863
|
+
|
|
95864
|
+
// ../create-new-packages/headless-command/src/components/WriteConfig.tsx
|
|
95865
|
+
init_esm_shims();
|
|
95866
|
+
var import_react156 = __toESM(require_react(), 1);
|
|
95867
|
+
var import_variant61 = __toESM(require_lib(), 1);
|
|
95868
|
+
var WriteConfig = ({ businessId, projectData, targetParentFolder: targetParentFolder2 }) => {
|
|
95869
|
+
const { status } = useAsync2(async () => {
|
|
95870
|
+
await writeJson(
|
|
95871
|
+
getWixConfigFilePath(targetParentFolder2),
|
|
95872
|
+
{
|
|
95873
|
+
projectType: "Site",
|
|
95874
|
+
appId: projectData.projectId,
|
|
95875
|
+
siteId: businessId,
|
|
95876
|
+
site: {
|
|
95877
|
+
outputDirectory: "./dist"
|
|
95878
|
+
}
|
|
95879
|
+
},
|
|
95880
|
+
{ spaces: 2 }
|
|
95881
|
+
);
|
|
95882
|
+
}, []);
|
|
95883
|
+
return /* @__PURE__ */ import_react156.default.createElement(import_react156.default.Fragment, null, (0, import_variant61.match)(status, {
|
|
95884
|
+
Error: () => null,
|
|
95885
|
+
Loading: () => /* @__PURE__ */ import_react156.default.createElement(Box_default, { marginBottom: 1 }, /* @__PURE__ */ import_react156.default.createElement(Spinner2, { text: "Saving settings..." })),
|
|
95886
|
+
Success: () => /* @__PURE__ */ import_react156.default.createElement(Box_default, { marginLeft: -2, marginBottom: 1 }, /* @__PURE__ */ import_react156.default.createElement(Alert, { type: "success" }, /* @__PURE__ */ import_react156.default.createElement(Badge, { skin: "success" }, "Success"), " ", /* @__PURE__ */ import_react156.default.createElement(Text2, null, "Settings saved to `", WIX_CONFIG_FILENAME, "`."))),
|
|
95887
|
+
NotRequested: () => null
|
|
95888
|
+
}));
|
|
95889
|
+
};
|
|
95890
|
+
|
|
95891
|
+
// ../create-new-packages/headless-command/src/components/InitHeadlessSiteCommand.tsx
|
|
95892
|
+
var BLANK_PROJECT_TEMPLATE_ID2 = "212b41cb-0da6-4401-9c72-7c579e6477a2";
|
|
95893
|
+
var InitHeadlessSiteCommand = ({ targetParentFolder: targetParentFolder2 }) => {
|
|
95894
|
+
const [businessId, setBusinessId] = (0, import_react157.useState)();
|
|
95895
|
+
const [projectData, setProjectData] = (0, import_react157.useState)();
|
|
95896
|
+
const { status } = useAsync2(async () => {
|
|
95897
|
+
if (await pathExists(getWixConfigFilePath(targetParentFolder2))) {
|
|
95898
|
+
throw new CliError({
|
|
95899
|
+
code: CliErrorCode.ProjectIsAlreadyLinked(),
|
|
95900
|
+
cause: null
|
|
95901
|
+
});
|
|
95902
|
+
}
|
|
95903
|
+
const name = basename(targetParentFolder2).trim();
|
|
95904
|
+
return { businessName: (0, import_startCase.default)(name).slice(0, 255) };
|
|
95905
|
+
}, []);
|
|
95906
|
+
return (0, import_variant62.match)(status, {
|
|
95907
|
+
Error: () => null,
|
|
95908
|
+
Loading: () => /* @__PURE__ */ import_react157.default.createElement(Spinner2, { text: "Loading..." }),
|
|
95909
|
+
Success: ({ result: { businessName } }) => /* @__PURE__ */ import_react157.default.createElement(
|
|
95910
|
+
Box_default,
|
|
95911
|
+
{
|
|
95912
|
+
flexDirection: "column",
|
|
95913
|
+
borderStyle: "single",
|
|
95914
|
+
borderColor: "gray",
|
|
95915
|
+
borderBottom: false,
|
|
95916
|
+
borderRight: false,
|
|
95917
|
+
borderTop: false,
|
|
95918
|
+
paddingLeft: 1
|
|
95919
|
+
},
|
|
95920
|
+
/* @__PURE__ */ import_react157.default.createElement(AuthProvider, null, /* @__PURE__ */ import_react157.default.createElement(
|
|
95921
|
+
CreateBusiness,
|
|
95922
|
+
{
|
|
95923
|
+
businessName,
|
|
95924
|
+
businessTemplateId: BLANK_PROJECT_TEMPLATE_ID2,
|
|
95925
|
+
onDone: ({ businessId: businessId2 }) => setBusinessId(businessId2)
|
|
95926
|
+
}
|
|
95927
|
+
)),
|
|
95928
|
+
businessId && /* @__PURE__ */ import_react157.default.createElement(SiteAuthProvider, { siteId: businessId }, /* @__PURE__ */ import_react157.default.createElement(
|
|
95929
|
+
CreateProject,
|
|
95930
|
+
{
|
|
95931
|
+
businessId,
|
|
95932
|
+
projectName: businessName,
|
|
95933
|
+
onSubmit: (data) => setProjectData(data)
|
|
95934
|
+
}
|
|
95935
|
+
)),
|
|
95936
|
+
businessId && projectData && /* @__PURE__ */ import_react157.default.createElement(
|
|
95937
|
+
WriteConfig,
|
|
95938
|
+
{
|
|
95939
|
+
businessId,
|
|
95940
|
+
projectData,
|
|
95941
|
+
targetParentFolder: targetParentFolder2
|
|
95942
|
+
}
|
|
95943
|
+
)
|
|
95944
|
+
)
|
|
95945
|
+
});
|
|
95946
|
+
};
|
|
95947
|
+
|
|
95948
|
+
// ../create-new-packages/headless-command/src/get-headless-init-command.tsx
|
|
95949
|
+
var getHeadlessInitCommand = ({
|
|
95950
|
+
errorReporter: errorReporter2,
|
|
95951
|
+
userInfo: userInfo2,
|
|
95952
|
+
panorama: panorama2,
|
|
95953
|
+
cliVersion,
|
|
95954
|
+
cliSessionId: cliSessionId2,
|
|
95955
|
+
targetParentFolder: targetParentFolder2,
|
|
95956
|
+
aiAgentName: aiAgentName2
|
|
95957
|
+
}) => {
|
|
95958
|
+
return createCommand("init").description("Create a Wix headless site without scaffolding").action(async (_2, command) => {
|
|
95959
|
+
errorReporter2.setContext("Command Info", {
|
|
95960
|
+
Arguments: command.args,
|
|
95961
|
+
Options: command.opts()
|
|
95962
|
+
});
|
|
95963
|
+
const { biLogger, reportCommandStartEvent: reportCommandStartEvent2 } = await createBiLogger3({
|
|
95964
|
+
errorReporter: errorReporter2,
|
|
95965
|
+
cliVersion,
|
|
95966
|
+
cliSessionId: cliSessionId2,
|
|
95967
|
+
userId: userInfo2?.userId,
|
|
95968
|
+
aiAgentName: aiAgentName2
|
|
95969
|
+
});
|
|
95970
|
+
const commandStatus = reportCommandStartEvent2(command);
|
|
95971
|
+
const transaction = createCommandTransaction(panorama2, command);
|
|
95972
|
+
try {
|
|
95973
|
+
transaction.start();
|
|
95974
|
+
await render2(
|
|
95975
|
+
/* @__PURE__ */ import_react158.default.createElement(BiProvider, { value: biLogger }, /* @__PURE__ */ import_react158.default.createElement(ErrorReporterProvider, { value: errorReporter2 }, /* @__PURE__ */ import_react158.default.createElement(PanoramaProvider, { value: panorama2 }, /* @__PURE__ */ import_react158.default.createElement(
|
|
95976
|
+
InitHeadlessSiteCommand,
|
|
95977
|
+
{
|
|
95978
|
+
targetParentFolder: targetParentFolder2
|
|
95979
|
+
}
|
|
95980
|
+
))))
|
|
95981
|
+
);
|
|
95982
|
+
transaction.finish();
|
|
95983
|
+
commandStatus.succeed();
|
|
95984
|
+
} catch (e2) {
|
|
95985
|
+
commandStatus.failed(e2);
|
|
95986
|
+
throw e2;
|
|
95987
|
+
}
|
|
95988
|
+
});
|
|
95989
|
+
};
|
|
95990
|
+
|
|
95684
95991
|
// ../create-new-packages/headless-command/src/index.tsx
|
|
95685
95992
|
function assertInteractiveTerminalIfNeeded(hasRequiredFlagsForNonInteractive) {
|
|
95686
95993
|
if (!process26.stdin.isTTY && !hasRequiredFlagsForNonInteractive) {
|
|
@@ -95730,7 +96037,7 @@ var getHeadlessCommand = ({
|
|
|
95730
96037
|
try {
|
|
95731
96038
|
transaction.start();
|
|
95732
96039
|
await render2(
|
|
95733
|
-
/* @__PURE__ */
|
|
96040
|
+
/* @__PURE__ */ import_react159.default.createElement(BiProvider, { value: biLogger }, /* @__PURE__ */ import_react159.default.createElement(ErrorReporterProvider, { value: errorReporter2 }, /* @__PURE__ */ import_react159.default.createElement(PanoramaProvider, { value: panorama2 }, /* @__PURE__ */ import_react159.default.createElement(
|
|
95734
96041
|
LinkCommand,
|
|
95735
96042
|
{
|
|
95736
96043
|
projectName: options.projectName,
|
|
@@ -95822,7 +96129,7 @@ var getHeadlessCommand = ({
|
|
|
95822
96129
|
try {
|
|
95823
96130
|
transaction.start();
|
|
95824
96131
|
await render2(
|
|
95825
|
-
/* @__PURE__ */
|
|
96132
|
+
/* @__PURE__ */ import_react159.default.createElement(BiProvider, { value: biLogger }, /* @__PURE__ */ import_react159.default.createElement(ErrorReporterProvider, { value: errorReporter2 }, /* @__PURE__ */ import_react159.default.createElement(PanoramaProvider, { value: panorama2 }, /* @__PURE__ */ import_react159.default.createElement(
|
|
95826
96133
|
ProcessCommand,
|
|
95827
96134
|
{
|
|
95828
96135
|
targetParentFolder: targetParentFolder2,
|
|
@@ -95848,7 +96155,7 @@ import { randomUUID as randomUUID3 } from "node:crypto";
|
|
|
95848
96155
|
var package_default = {
|
|
95849
96156
|
name: "@wix/create-new",
|
|
95850
96157
|
description: "General entry point for creating Wix projects",
|
|
95851
|
-
version: "0.0.
|
|
96158
|
+
version: "0.0.65",
|
|
95852
96159
|
bin: "bin/index.cjs",
|
|
95853
96160
|
devDependencies: {
|
|
95854
96161
|
"@commander-js/extra-typings": "^13.0.0",
|
|
@@ -95961,6 +96268,18 @@ program2.addCommand(
|
|
|
95961
96268
|
aiAgentName
|
|
95962
96269
|
})
|
|
95963
96270
|
);
|
|
96271
|
+
program2.addCommand(
|
|
96272
|
+
getHeadlessInitCommand({
|
|
96273
|
+
errorReporter,
|
|
96274
|
+
userInfo,
|
|
96275
|
+
panorama,
|
|
96276
|
+
cliVersion: package_default.version,
|
|
96277
|
+
cliSessionId,
|
|
96278
|
+
targetParentFolder,
|
|
96279
|
+
aiAgentName
|
|
96280
|
+
}),
|
|
96281
|
+
{ hidden: true }
|
|
96282
|
+
);
|
|
95964
96283
|
try {
|
|
95965
96284
|
await program2.parseAsync();
|
|
95966
96285
|
} catch (error) {
|