@wix/create-app 0.0.124 → 0.0.126
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/index.js +874 -354
- package/build/index.js.map +1 -1
- package/package.json +2 -2
- package/templates/app/.cursor/mcp.json.ejs +16 -0
- package/templates/app/.vscode/mcp.json.ejs +16 -0
package/build/index.js
CHANGED
|
@@ -6815,21 +6815,21 @@ var require_stack_utils = __commonJS({
|
|
|
6815
6815
|
return res;
|
|
6816
6816
|
}
|
|
6817
6817
|
parseLine(line) {
|
|
6818
|
-
const
|
|
6819
|
-
if (!
|
|
6818
|
+
const match23 = line && line.match(re);
|
|
6819
|
+
if (!match23) {
|
|
6820
6820
|
return null;
|
|
6821
6821
|
}
|
|
6822
|
-
const ctor =
|
|
6823
|
-
let fname =
|
|
6824
|
-
const evalOrigin =
|
|
6825
|
-
const evalFile =
|
|
6826
|
-
const evalLine = Number(
|
|
6827
|
-
const evalCol = Number(
|
|
6828
|
-
let file =
|
|
6829
|
-
const lnum =
|
|
6830
|
-
const col =
|
|
6831
|
-
const native =
|
|
6832
|
-
const closeParen =
|
|
6822
|
+
const ctor = match23[1] === "new";
|
|
6823
|
+
let fname = match23[2];
|
|
6824
|
+
const evalOrigin = match23[3];
|
|
6825
|
+
const evalFile = match23[4];
|
|
6826
|
+
const evalLine = Number(match23[5]);
|
|
6827
|
+
const evalCol = Number(match23[6]);
|
|
6828
|
+
let file = match23[7];
|
|
6829
|
+
const lnum = match23[8];
|
|
6830
|
+
const col = match23[9];
|
|
6831
|
+
const native = match23[10] === "native";
|
|
6832
|
+
const closeParen = match23[11] === ")";
|
|
6833
6833
|
let method;
|
|
6834
6834
|
const res = {};
|
|
6835
6835
|
if (lnum) {
|
|
@@ -7033,14 +7033,14 @@ var require_variant = __commonJS({
|
|
|
7033
7033
|
return Object.assign(Object.assign({}, result), { [creator.output.type]: creator });
|
|
7034
7034
|
}, {});
|
|
7035
7035
|
}
|
|
7036
|
-
function
|
|
7036
|
+
function variant16(template) {
|
|
7037
7037
|
if (Array.isArray(template)) {
|
|
7038
7038
|
return variantList(template);
|
|
7039
7039
|
} else {
|
|
7040
7040
|
return variantModule(template);
|
|
7041
7041
|
}
|
|
7042
7042
|
}
|
|
7043
|
-
return { descope, scoped: scope, variant:
|
|
7043
|
+
return { descope, scoped: scope, variant: variant16, variantList, variantModule, variation };
|
|
7044
7044
|
}
|
|
7045
7045
|
exports.variantImpl = variantImpl;
|
|
7046
7046
|
}
|
|
@@ -7067,12 +7067,12 @@ var require_match = __commonJS({
|
|
|
7067
7067
|
var variant_1 = require_variant();
|
|
7068
7068
|
var precepts_1 = require_precepts();
|
|
7069
7069
|
function matchImpl(key) {
|
|
7070
|
-
const prematch = (_2) => (handler) => (instance2) =>
|
|
7071
|
-
function
|
|
7070
|
+
const prematch = (_2) => (handler) => (instance2) => match23(instance2, handler);
|
|
7071
|
+
function match23(...args) {
|
|
7072
7072
|
var _a3, _b;
|
|
7073
7073
|
if (args.length === 1) {
|
|
7074
7074
|
const [handler] = args;
|
|
7075
|
-
return (instance2) =>
|
|
7075
|
+
return (instance2) => match23(instance2, handler);
|
|
7076
7076
|
} else if (args.length === 2) {
|
|
7077
7077
|
const [instanceOrTypeOrCreator, handlerParam] = args;
|
|
7078
7078
|
const instanceOrCreator = typeof instanceOrTypeOrCreator === "string" ? ofLiteral(instanceOrTypeOrCreator) : instanceOrTypeOrCreator;
|
|
@@ -7092,7 +7092,7 @@ var require_match = __commonJS({
|
|
|
7092
7092
|
[key]: instance2
|
|
7093
7093
|
};
|
|
7094
7094
|
}
|
|
7095
|
-
function
|
|
7095
|
+
function lookup3(handler) {
|
|
7096
7096
|
const handlerWithFuncs = Object.keys(handler).reduce((acc, cur) => {
|
|
7097
7097
|
return Object.assign(Object.assign({}, acc), { [cur]: () => handler[cur] });
|
|
7098
7098
|
}, {});
|
|
@@ -7104,7 +7104,7 @@ var require_match = __commonJS({
|
|
|
7104
7104
|
function withFallback(handler, fallback) {
|
|
7105
7105
|
return (_2) => Object.assign(Object.assign({}, handler), { default: fallback });
|
|
7106
7106
|
}
|
|
7107
|
-
return { match:
|
|
7107
|
+
return { match: match23, ofLiteral, onLiteral, otherwise, partial: partial2, prematch, lookup: lookup3, withFallback };
|
|
7108
7108
|
}
|
|
7109
7109
|
exports.matchImpl = matchImpl;
|
|
7110
7110
|
}
|
|
@@ -7170,11 +7170,11 @@ var require_isOfVariant = __commonJS({
|
|
|
7170
7170
|
function isOfVariantImpl(key) {
|
|
7171
7171
|
function isOfVariant3(...args) {
|
|
7172
7172
|
if (args.length === 1) {
|
|
7173
|
-
const [
|
|
7174
|
-
return (instance2) => instance2 != void 0 && Object.values(
|
|
7173
|
+
const [variant16] = args;
|
|
7174
|
+
return (instance2) => instance2 != void 0 && Object.values(variant16).some((vc) => vc.output.type === instance2[key]);
|
|
7175
7175
|
} else if (args.length === 2) {
|
|
7176
|
-
const [instance2,
|
|
7177
|
-
return instance2 != void 0 && Object.values(
|
|
7176
|
+
const [instance2, variant16] = args;
|
|
7177
|
+
return instance2 != void 0 && Object.values(variant16).some((vc) => vc.output.type === instance2[key]);
|
|
7178
7178
|
}
|
|
7179
7179
|
return false;
|
|
7180
7180
|
}
|
|
@@ -7202,7 +7202,7 @@ var require_remote = __commonJS({
|
|
|
7202
7202
|
})(CompareResult = exports.CompareResult || (exports.CompareResult = {}));
|
|
7203
7203
|
function remoteImpl(key) {
|
|
7204
7204
|
const { isType: isType16 } = (0, isType_1.isTypeImpl)(key);
|
|
7205
|
-
const { match:
|
|
7205
|
+
const { match: match23 } = (0, match_1.matchImpl)(key);
|
|
7206
7206
|
const { variantList } = (0, variant_1.variantImpl)(key);
|
|
7207
7207
|
function isFunctions(vmod) {
|
|
7208
7208
|
const keys = Object.keys(vmod);
|
|
@@ -7215,7 +7215,7 @@ var require_remote = __commonJS({
|
|
|
7215
7215
|
key,
|
|
7216
7216
|
is: isFunctions(vmod),
|
|
7217
7217
|
new: vmod,
|
|
7218
|
-
match:
|
|
7218
|
+
match: match23
|
|
7219
7219
|
};
|
|
7220
7220
|
}
|
|
7221
7221
|
;
|
|
@@ -7611,15 +7611,15 @@ var require_typeCatalog = __commonJS({
|
|
|
7611
7611
|
init_esm_shims();
|
|
7612
7612
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7613
7613
|
exports.typeMap = exports.typeCatalog = void 0;
|
|
7614
|
-
function typeCatalog(
|
|
7615
|
-
return Object.values(
|
|
7614
|
+
function typeCatalog(variant16) {
|
|
7615
|
+
return Object.values(variant16).reduce((result, vc) => {
|
|
7616
7616
|
return Object.assign(Object.assign({}, result), { [vc.output.type]: vc.output.type });
|
|
7617
7617
|
}, {});
|
|
7618
7618
|
}
|
|
7619
7619
|
exports.typeCatalog = typeCatalog;
|
|
7620
|
-
function typeMap(
|
|
7621
|
-
return Object.keys(
|
|
7622
|
-
return Object.assign(Object.assign({}, result), { [key]:
|
|
7620
|
+
function typeMap(variant16) {
|
|
7621
|
+
return Object.keys(variant16).reduce((result, key) => {
|
|
7622
|
+
return Object.assign(Object.assign({}, result), { [key]: variant16[key].output.type });
|
|
7623
7623
|
}, {});
|
|
7624
7624
|
}
|
|
7625
7625
|
exports.typeMap = typeMap;
|
|
@@ -7668,13 +7668,13 @@ var require_variant_tools = __commonJS({
|
|
|
7668
7668
|
init_esm_shims();
|
|
7669
7669
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7670
7670
|
exports.nil = exports.payload = exports.fields = void 0;
|
|
7671
|
-
function
|
|
7671
|
+
function fields10(defaults2 = {}) {
|
|
7672
7672
|
return (...args) => {
|
|
7673
7673
|
const [arg] = args;
|
|
7674
7674
|
return Object.assign(Object.assign({}, defaults2), arg);
|
|
7675
7675
|
};
|
|
7676
7676
|
}
|
|
7677
|
-
exports.fields =
|
|
7677
|
+
exports.fields = fields10;
|
|
7678
7678
|
function payload5(_example) {
|
|
7679
7679
|
return (payload6) => ({ payload: payload6 });
|
|
7680
7680
|
}
|
|
@@ -10577,7 +10577,7 @@ var require_extsprintf = __commonJS({
|
|
|
10577
10577
|
var args = Array.prototype.slice.call(arguments, 1);
|
|
10578
10578
|
var fmt = ofmt;
|
|
10579
10579
|
var flags, width, precision, conversion;
|
|
10580
|
-
var left, pad, sign, arg,
|
|
10580
|
+
var left, pad, sign, arg, match23;
|
|
10581
10581
|
var ret = "";
|
|
10582
10582
|
var argn = 1;
|
|
10583
10583
|
var posn = 0;
|
|
@@ -10588,16 +10588,16 @@ var require_extsprintf = __commonJS({
|
|
|
10588
10588
|
typeof fmt,
|
|
10589
10589
|
"first argument must be a format string"
|
|
10590
10590
|
);
|
|
10591
|
-
while ((
|
|
10592
|
-
ret +=
|
|
10593
|
-
fmt = fmt.substring(
|
|
10594
|
-
curconv =
|
|
10595
|
-
convposn = posn +
|
|
10596
|
-
posn +=
|
|
10597
|
-
flags =
|
|
10598
|
-
width =
|
|
10599
|
-
precision =
|
|
10600
|
-
conversion =
|
|
10591
|
+
while ((match23 = re.exec(fmt)) !== null) {
|
|
10592
|
+
ret += match23[1];
|
|
10593
|
+
fmt = fmt.substring(match23[0].length);
|
|
10594
|
+
curconv = match23[0].substring(match23[1].length);
|
|
10595
|
+
convposn = posn + match23[1].length + 1;
|
|
10596
|
+
posn += match23[0].length;
|
|
10597
|
+
flags = match23[2] || "";
|
|
10598
|
+
width = match23[3] || 0;
|
|
10599
|
+
precision = match23[4] || "";
|
|
10600
|
+
conversion = match23[6];
|
|
10601
10601
|
left = false;
|
|
10602
10602
|
sign = false;
|
|
10603
10603
|
pad = " ";
|
|
@@ -12845,14 +12845,14 @@ var require_ms = __commonJS({
|
|
|
12845
12845
|
if (str.length > 100) {
|
|
12846
12846
|
return;
|
|
12847
12847
|
}
|
|
12848
|
-
var
|
|
12848
|
+
var match23 = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(
|
|
12849
12849
|
str
|
|
12850
12850
|
);
|
|
12851
|
-
if (!
|
|
12851
|
+
if (!match23) {
|
|
12852
12852
|
return;
|
|
12853
12853
|
}
|
|
12854
|
-
var n2 = parseFloat(
|
|
12855
|
-
var type = (
|
|
12854
|
+
var n2 = parseFloat(match23[1]);
|
|
12855
|
+
var type = (match23[2] || "ms").toLowerCase();
|
|
12856
12856
|
switch (type) {
|
|
12857
12857
|
case "years":
|
|
12858
12858
|
case "year":
|
|
@@ -12985,19 +12985,19 @@ var require_common = __commonJS({
|
|
|
12985
12985
|
args.unshift("%O");
|
|
12986
12986
|
}
|
|
12987
12987
|
let index = 0;
|
|
12988
|
-
args[0] = args[0].replace(/%([a-zA-Z%])/g, (
|
|
12989
|
-
if (
|
|
12988
|
+
args[0] = args[0].replace(/%([a-zA-Z%])/g, (match23, format2) => {
|
|
12989
|
+
if (match23 === "%%") {
|
|
12990
12990
|
return "%";
|
|
12991
12991
|
}
|
|
12992
12992
|
index++;
|
|
12993
12993
|
const formatter = createDebug.formatters[format2];
|
|
12994
12994
|
if (typeof formatter === "function") {
|
|
12995
12995
|
const val = args[index];
|
|
12996
|
-
|
|
12996
|
+
match23 = formatter.call(self2, val);
|
|
12997
12997
|
args.splice(index, 1);
|
|
12998
12998
|
index--;
|
|
12999
12999
|
}
|
|
13000
|
-
return
|
|
13000
|
+
return match23;
|
|
13001
13001
|
});
|
|
13002
13002
|
createDebug.formatArgs.call(self2, args);
|
|
13003
13003
|
const logFn = self2.log || createDebug.log;
|
|
@@ -13234,12 +13234,12 @@ var require_browser = __commonJS({
|
|
|
13234
13234
|
args.splice(1, 0, c2, "color: inherit");
|
|
13235
13235
|
let index = 0;
|
|
13236
13236
|
let lastC = 0;
|
|
13237
|
-
args[0].replace(/%[a-zA-Z%]/g, (
|
|
13238
|
-
if (
|
|
13237
|
+
args[0].replace(/%[a-zA-Z%]/g, (match23) => {
|
|
13238
|
+
if (match23 === "%%") {
|
|
13239
13239
|
return;
|
|
13240
13240
|
}
|
|
13241
13241
|
index++;
|
|
13242
|
-
if (
|
|
13242
|
+
if (match23 === "%c") {
|
|
13243
13243
|
lastC = index;
|
|
13244
13244
|
}
|
|
13245
13245
|
});
|
|
@@ -14425,8 +14425,8 @@ var require_cookies = __commonJS({
|
|
|
14425
14425
|
document.cookie = cookie.join("; ");
|
|
14426
14426
|
},
|
|
14427
14427
|
read: function read(name) {
|
|
14428
|
-
var
|
|
14429
|
-
return
|
|
14428
|
+
var match23 = document.cookie.match(new RegExp("(^|;\\s*)(" + name + ")=([^;]*)"));
|
|
14429
|
+
return match23 ? decodeURIComponent(match23[3]) : null;
|
|
14430
14430
|
},
|
|
14431
14431
|
remove: function remove(name) {
|
|
14432
14432
|
this.write(name, "", Date.now() - 864e5);
|
|
@@ -15739,10 +15739,10 @@ var require_main = __commonJS({
|
|
|
15739
15739
|
const obj = {};
|
|
15740
15740
|
let lines = src.toString();
|
|
15741
15741
|
lines = lines.replace(/\r\n?/mg, "\n");
|
|
15742
|
-
let
|
|
15743
|
-
while ((
|
|
15744
|
-
const key =
|
|
15745
|
-
let value2 =
|
|
15742
|
+
let match23;
|
|
15743
|
+
while ((match23 = LINE.exec(lines)) != null) {
|
|
15744
|
+
const key = match23[1];
|
|
15745
|
+
let value2 = match23[2] || "";
|
|
15746
15746
|
value2 = value2.trim();
|
|
15747
15747
|
const maybeQuote = value2[0];
|
|
15748
15748
|
value2 = value2.replace(/^(['"`])([\s\S]*)\1$/mg, "$2");
|
|
@@ -17071,15 +17071,15 @@ var init_TraceState = __esm({
|
|
|
17071
17071
|
|
|
17072
17072
|
// ../../node_modules/@opentelemetry/core/build/esm/trace/W3CTraceContextPropagator.js
|
|
17073
17073
|
function parseTraceParent(traceParent) {
|
|
17074
|
-
var
|
|
17075
|
-
if (!
|
|
17074
|
+
var match23 = TRACE_PARENT_REGEX.exec(traceParent);
|
|
17075
|
+
if (!match23)
|
|
17076
17076
|
return null;
|
|
17077
|
-
if (
|
|
17077
|
+
if (match23[1] === "00" && match23[5])
|
|
17078
17078
|
return null;
|
|
17079
17079
|
return {
|
|
17080
|
-
traceId:
|
|
17081
|
-
spanId:
|
|
17082
|
-
traceFlags: parseInt(
|
|
17080
|
+
traceId: match23[2],
|
|
17081
|
+
spanId: match23[3],
|
|
17082
|
+
traceFlags: parseInt(match23[4], 16)
|
|
17083
17083
|
};
|
|
17084
17084
|
}
|
|
17085
17085
|
var TRACE_PARENT_HEADER, TRACE_STATE_HEADER, VERSION2, VERSION_PART, TRACE_ID_PART, PARENT_ID_PART, FLAGS_PART, TRACE_PARENT_REGEX, W3CTraceContextPropagator;
|
|
@@ -18181,8 +18181,8 @@ var require_semver = __commonJS({
|
|
|
18181
18181
|
}
|
|
18182
18182
|
if (identifier) {
|
|
18183
18183
|
const r2 = new RegExp(`^${this.options.loose ? src[t3.PRERELEASELOOSE] : src[t3.PRERELEASE]}$`);
|
|
18184
|
-
const
|
|
18185
|
-
if (!
|
|
18184
|
+
const match23 = `-${identifier}`.match(r2);
|
|
18185
|
+
if (!match23 || match23[1] !== identifier) {
|
|
18186
18186
|
throw new Error(`invalid identifier: ${identifier}`);
|
|
18187
18187
|
}
|
|
18188
18188
|
}
|
|
@@ -18665,28 +18665,28 @@ var require_coerce = __commonJS({
|
|
|
18665
18665
|
return null;
|
|
18666
18666
|
}
|
|
18667
18667
|
options = options || {};
|
|
18668
|
-
let
|
|
18668
|
+
let match23 = null;
|
|
18669
18669
|
if (!options.rtl) {
|
|
18670
|
-
|
|
18670
|
+
match23 = version.match(options.includePrerelease ? re[t3.COERCEFULL] : re[t3.COERCE]);
|
|
18671
18671
|
} else {
|
|
18672
18672
|
const coerceRtlRegex = options.includePrerelease ? re[t3.COERCERTLFULL] : re[t3.COERCERTL];
|
|
18673
18673
|
let next;
|
|
18674
|
-
while ((next = coerceRtlRegex.exec(version)) && (!
|
|
18675
|
-
if (!
|
|
18676
|
-
|
|
18674
|
+
while ((next = coerceRtlRegex.exec(version)) && (!match23 || match23.index + match23[0].length !== version.length)) {
|
|
18675
|
+
if (!match23 || next.index + next[0].length !== match23.index + match23[0].length) {
|
|
18676
|
+
match23 = next;
|
|
18677
18677
|
}
|
|
18678
18678
|
coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length;
|
|
18679
18679
|
}
|
|
18680
18680
|
coerceRtlRegex.lastIndex = -1;
|
|
18681
18681
|
}
|
|
18682
|
-
if (
|
|
18682
|
+
if (match23 === null) {
|
|
18683
18683
|
return null;
|
|
18684
18684
|
}
|
|
18685
|
-
const major =
|
|
18686
|
-
const minor =
|
|
18687
|
-
const patch =
|
|
18688
|
-
const prerelease = options.includePrerelease &&
|
|
18689
|
-
const build = options.includePrerelease &&
|
|
18685
|
+
const major = match23[2];
|
|
18686
|
+
const minor = match23[3] || "0";
|
|
18687
|
+
const patch = match23[4] || "0";
|
|
18688
|
+
const prerelease = options.includePrerelease && match23[5] ? `-${match23[5]}` : "";
|
|
18689
|
+
const build = options.includePrerelease && match23[6] ? `+${match23[6]}` : "";
|
|
18690
18690
|
return parse2(`${major}.${minor}.${patch}${prerelease}${build}`, options);
|
|
18691
18691
|
};
|
|
18692
18692
|
module2.exports = coerce2;
|
|
@@ -24687,10 +24687,10 @@ var require_utils6 = __commonJS({
|
|
|
24687
24687
|
if (!type || typeof type.getFields !== "function" || type[symbols_1.OTEL_PATCHED_SYMBOL]) {
|
|
24688
24688
|
return;
|
|
24689
24689
|
}
|
|
24690
|
-
const
|
|
24690
|
+
const fields10 = type.getFields();
|
|
24691
24691
|
type[symbols_1.OTEL_PATCHED_SYMBOL] = true;
|
|
24692
|
-
Object.keys(
|
|
24693
|
-
const field =
|
|
24692
|
+
Object.keys(fields10).forEach((key) => {
|
|
24693
|
+
const field = fields10[key];
|
|
24694
24694
|
if (!field) {
|
|
24695
24695
|
return;
|
|
24696
24696
|
}
|
|
@@ -26391,7 +26391,7 @@ var require_instrumentation5 = __commonJS({
|
|
|
26391
26391
|
}
|
|
26392
26392
|
_patchCallbackQuery(span, parentContext) {
|
|
26393
26393
|
return (originalCallback) => {
|
|
26394
|
-
return function(err, results,
|
|
26394
|
+
return function(err, results, fields10) {
|
|
26395
26395
|
if (err) {
|
|
26396
26396
|
span.setStatus({
|
|
26397
26397
|
code: api_1.SpanStatusCode.ERROR,
|
|
@@ -26704,7 +26704,7 @@ var require_instrumentation6 = __commonJS({
|
|
|
26704
26704
|
}
|
|
26705
26705
|
_patchCallbackQuery(endSpan) {
|
|
26706
26706
|
return (originalCallback) => {
|
|
26707
|
-
return function(err, results,
|
|
26707
|
+
return function(err, results, fields10) {
|
|
26708
26708
|
endSpan(err, results);
|
|
26709
26709
|
return originalCallback(...arguments);
|
|
26710
26710
|
};
|
|
@@ -32751,20 +32751,20 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
32751
32751
|
let debugOption;
|
|
32752
32752
|
let debugHost = "127.0.0.1";
|
|
32753
32753
|
let debugPort = "9229";
|
|
32754
|
-
let
|
|
32755
|
-
if ((
|
|
32756
|
-
debugOption =
|
|
32757
|
-
} else if ((
|
|
32758
|
-
debugOption =
|
|
32759
|
-
if (/^\d+$/.test(
|
|
32760
|
-
debugPort =
|
|
32754
|
+
let match23;
|
|
32755
|
+
if ((match23 = arg.match(/^(--inspect(-brk)?)$/)) !== null) {
|
|
32756
|
+
debugOption = match23[1];
|
|
32757
|
+
} else if ((match23 = arg.match(/^(--inspect(-brk|-port)?)=([^:]+)$/)) !== null) {
|
|
32758
|
+
debugOption = match23[1];
|
|
32759
|
+
if (/^\d+$/.test(match23[3])) {
|
|
32760
|
+
debugPort = match23[3];
|
|
32761
32761
|
} else {
|
|
32762
|
-
debugHost =
|
|
32762
|
+
debugHost = match23[3];
|
|
32763
32763
|
}
|
|
32764
|
-
} else if ((
|
|
32765
|
-
debugOption =
|
|
32766
|
-
debugHost =
|
|
32767
|
-
debugPort =
|
|
32764
|
+
} else if ((match23 = arg.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/)) !== null) {
|
|
32765
|
+
debugOption = match23[1];
|
|
32766
|
+
debugHost = match23[3];
|
|
32767
|
+
debugPort = match23[4];
|
|
32768
32768
|
}
|
|
32769
32769
|
if (debugOption && debugPort !== "0") {
|
|
32770
32770
|
return `${debugOption}=${debugHost}:${parseInt(debugPort) + 1}`;
|
|
@@ -33129,7 +33129,7 @@ var require_batch_queue = __commonJS({
|
|
|
33129
33129
|
var fieldCounts = {};
|
|
33130
33130
|
var batchLen = batch.e.length;
|
|
33131
33131
|
var events = batch.e.map(function(event) {
|
|
33132
|
-
var
|
|
33132
|
+
var fields10 = Object.keys(event.f).map(function(field) {
|
|
33133
33133
|
var value2 = event.f[field];
|
|
33134
33134
|
var key = field + "|" + value2;
|
|
33135
33135
|
fieldCounts[key] = fieldCounts[key] || 0;
|
|
@@ -33137,12 +33137,12 @@ var require_batch_queue = __commonJS({
|
|
|
33137
33137
|
return [field, value2, key];
|
|
33138
33138
|
});
|
|
33139
33139
|
return _extends2({}, event, {
|
|
33140
|
-
f:
|
|
33140
|
+
f: fields10
|
|
33141
33141
|
});
|
|
33142
33142
|
});
|
|
33143
33143
|
var globalFields = {};
|
|
33144
33144
|
events = events.map(function(event) {
|
|
33145
|
-
var
|
|
33145
|
+
var fields10 = event.f.reduce(function(res, _ref) {
|
|
33146
33146
|
var _ref2 = _slicedToArray(_ref, 3), field = _ref2[0], value2 = _ref2[1], key = _ref2[2];
|
|
33147
33147
|
if (fieldCounts[key] === batchLen) {
|
|
33148
33148
|
globalFields[field] = value2;
|
|
@@ -33152,7 +33152,7 @@ var require_batch_queue = __commonJS({
|
|
|
33152
33152
|
return res;
|
|
33153
33153
|
}, {});
|
|
33154
33154
|
return _extends2({}, event, {
|
|
33155
|
-
f:
|
|
33155
|
+
f: fields10
|
|
33156
33156
|
});
|
|
33157
33157
|
});
|
|
33158
33158
|
return _extends2({}, batch, {
|
|
@@ -34217,11 +34217,11 @@ var require_shebang_command = __commonJS({
|
|
|
34217
34217
|
init_esm_shims();
|
|
34218
34218
|
var shebangRegex = require_shebang_regex();
|
|
34219
34219
|
module2.exports = (string = "") => {
|
|
34220
|
-
const
|
|
34221
|
-
if (!
|
|
34220
|
+
const match23 = string.match(shebangRegex);
|
|
34221
|
+
if (!match23) {
|
|
34222
34222
|
return null;
|
|
34223
34223
|
}
|
|
34224
|
-
const [path8, argument] =
|
|
34224
|
+
const [path8, argument] = match23[0].replace(/#! ?/, "").split(" ");
|
|
34225
34225
|
const binary = path8.split("/").pop();
|
|
34226
34226
|
if (binary === "env") {
|
|
34227
34227
|
return argument;
|
|
@@ -34568,10 +34568,10 @@ var require_is_extglob = __commonJS({
|
|
|
34568
34568
|
if (typeof str !== "string" || str === "") {
|
|
34569
34569
|
return false;
|
|
34570
34570
|
}
|
|
34571
|
-
var
|
|
34572
|
-
while (
|
|
34573
|
-
if (
|
|
34574
|
-
str = str.slice(
|
|
34571
|
+
var match23;
|
|
34572
|
+
while (match23 = /(\\).|([@?!+*]\(.*\))/g.exec(str)) {
|
|
34573
|
+
if (match23[2]) return true;
|
|
34574
|
+
str = str.slice(match23.index + match23[0].length);
|
|
34575
34575
|
}
|
|
34576
34576
|
return false;
|
|
34577
34577
|
};
|
|
@@ -36050,8 +36050,8 @@ var require_utils17 = __commonJS({
|
|
|
36050
36050
|
exports.escapeRegex = (str) => str.replace(REGEX_SPECIAL_CHARS_GLOBAL, "\\$1");
|
|
36051
36051
|
exports.toPosixSlashes = (str) => str.replace(REGEX_BACKSLASH, "/");
|
|
36052
36052
|
exports.removeBackslashes = (str) => {
|
|
36053
|
-
return str.replace(REGEX_REMOVE_BACKSLASH, (
|
|
36054
|
-
return
|
|
36053
|
+
return str.replace(REGEX_REMOVE_BACKSLASH, (match23) => {
|
|
36054
|
+
return match23 === "\\" ? "" : match23;
|
|
36055
36055
|
});
|
|
36056
36056
|
};
|
|
36057
36057
|
exports.supportsLookbehinds = () => {
|
|
@@ -36674,10 +36674,10 @@ var require_parse4 = __commonJS({
|
|
|
36674
36674
|
push({ type: "text", value: value2 });
|
|
36675
36675
|
continue;
|
|
36676
36676
|
}
|
|
36677
|
-
const
|
|
36677
|
+
const match23 = /^\\+/.exec(remaining());
|
|
36678
36678
|
let slashes = 0;
|
|
36679
|
-
if (
|
|
36680
|
-
slashes =
|
|
36679
|
+
if (match23 && match23[0].length > 2) {
|
|
36680
|
+
slashes = match23[0].length;
|
|
36681
36681
|
state.index += slashes;
|
|
36682
36682
|
if (slashes % 2 !== 0) {
|
|
36683
36683
|
value2 += "\\";
|
|
@@ -36965,10 +36965,10 @@ var require_parse4 = __commonJS({
|
|
|
36965
36965
|
if (value2 === "$" || value2 === "^") {
|
|
36966
36966
|
value2 = `\\${value2}`;
|
|
36967
36967
|
}
|
|
36968
|
-
const
|
|
36969
|
-
if (
|
|
36970
|
-
value2 +=
|
|
36971
|
-
state.index +=
|
|
36968
|
+
const match23 = REGEX_NON_SPECIAL_CHARS.exec(remaining());
|
|
36969
|
+
if (match23) {
|
|
36970
|
+
value2 += match23[0];
|
|
36971
|
+
state.index += match23[0].length;
|
|
36972
36972
|
}
|
|
36973
36973
|
push({ type: "text", value: value2 });
|
|
36974
36974
|
continue;
|
|
@@ -37179,11 +37179,11 @@ var require_parse4 = __commonJS({
|
|
|
37179
37179
|
case "**/.*":
|
|
37180
37180
|
return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL})?${DOT_LITERAL}${ONE_CHAR}${star}`;
|
|
37181
37181
|
default: {
|
|
37182
|
-
const
|
|
37183
|
-
if (!
|
|
37184
|
-
const source2 = create3(
|
|
37182
|
+
const match23 = /^(.*?)\.(\w+)$/.exec(str);
|
|
37183
|
+
if (!match23) return;
|
|
37184
|
+
const source2 = create3(match23[1]);
|
|
37185
37185
|
if (!source2) return;
|
|
37186
|
-
return source2 + DOT_LITERAL +
|
|
37186
|
+
return source2 + DOT_LITERAL + match23[2];
|
|
37187
37187
|
}
|
|
37188
37188
|
}
|
|
37189
37189
|
};
|
|
@@ -37236,8 +37236,8 @@ var require_picomatch = __commonJS({
|
|
|
37236
37236
|
isIgnored = picomatch(opts.ignore, ignoreOpts, returnState);
|
|
37237
37237
|
}
|
|
37238
37238
|
const matcher3 = (input, returnObject = false) => {
|
|
37239
|
-
const { isMatch, match:
|
|
37240
|
-
const result = { glob, state, regex: regex2, posix: posix2, input, output, match:
|
|
37239
|
+
const { isMatch, match: match23, output } = picomatch.test(input, regex2, options, { glob, posix: posix2 });
|
|
37240
|
+
const result = { glob, state, regex: regex2, posix: posix2, input, output, match: match23, isMatch };
|
|
37241
37241
|
if (typeof opts.onResult === "function") {
|
|
37242
37242
|
opts.onResult(result);
|
|
37243
37243
|
}
|
|
@@ -37271,20 +37271,20 @@ var require_picomatch = __commonJS({
|
|
|
37271
37271
|
}
|
|
37272
37272
|
const opts = options || {};
|
|
37273
37273
|
const format2 = opts.format || (posix2 ? utils.toPosixSlashes : null);
|
|
37274
|
-
let
|
|
37275
|
-
let output =
|
|
37276
|
-
if (
|
|
37274
|
+
let match23 = input === glob;
|
|
37275
|
+
let output = match23 && format2 ? format2(input) : input;
|
|
37276
|
+
if (match23 === false) {
|
|
37277
37277
|
output = format2 ? format2(input) : input;
|
|
37278
|
-
|
|
37278
|
+
match23 = output === glob;
|
|
37279
37279
|
}
|
|
37280
|
-
if (
|
|
37280
|
+
if (match23 === false || opts.capture === true) {
|
|
37281
37281
|
if (opts.matchBase === true || opts.basename === true) {
|
|
37282
|
-
|
|
37282
|
+
match23 = picomatch.matchBase(input, regex2, options, posix2);
|
|
37283
37283
|
} else {
|
|
37284
|
-
|
|
37284
|
+
match23 = regex2.exec(output);
|
|
37285
37285
|
}
|
|
37286
37286
|
}
|
|
37287
|
-
return { isMatch: Boolean(
|
|
37287
|
+
return { isMatch: Boolean(match23), match: match23, output };
|
|
37288
37288
|
};
|
|
37289
37289
|
picomatch.matchBase = (input, glob, options, posix2 = utils.isWindows(options)) => {
|
|
37290
37290
|
const regex2 = glob instanceof RegExp ? glob : picomatch.makeRe(glob, options);
|
|
@@ -37382,8 +37382,8 @@ var require_micromatch = __commonJS({
|
|
|
37382
37382
|
if (negated) negatives++;
|
|
37383
37383
|
for (let item of list) {
|
|
37384
37384
|
let matched = isMatch(item, true);
|
|
37385
|
-
let
|
|
37386
|
-
if (!
|
|
37385
|
+
let match23 = negated ? !matched.isMatch : matched.isMatch;
|
|
37386
|
+
if (!match23) continue;
|
|
37387
37387
|
if (negated) {
|
|
37388
37388
|
omit2.add(matched.output);
|
|
37389
37389
|
} else {
|
|
@@ -37479,9 +37479,9 @@ var require_micromatch = __commonJS({
|
|
|
37479
37479
|
micromatch.capture = (glob, input, options) => {
|
|
37480
37480
|
let posix2 = utils.isWindows(options);
|
|
37481
37481
|
let regex2 = picomatch.makeRe(String(glob), { ...options, capture: true });
|
|
37482
|
-
let
|
|
37483
|
-
if (
|
|
37484
|
-
return
|
|
37482
|
+
let match23 = regex2.exec(posix2 ? utils.toPosixSlashes(input) : input);
|
|
37483
|
+
if (match23) {
|
|
37484
|
+
return match23.slice(1).map((v) => v === void 0 ? "" : v);
|
|
37485
37485
|
}
|
|
37486
37486
|
};
|
|
37487
37487
|
micromatch.makeRe = (...args) => picomatch.makeRe(...args);
|
|
@@ -39410,7 +39410,7 @@ var require_partial = __commonJS({
|
|
|
39410
39410
|
if (!pattern.complete && levels > section.length) {
|
|
39411
39411
|
return true;
|
|
39412
39412
|
}
|
|
39413
|
-
const
|
|
39413
|
+
const match23 = parts.every((part, index) => {
|
|
39414
39414
|
const segment = pattern.segments[index];
|
|
39415
39415
|
if (segment.dynamic && segment.patternRe.test(part)) {
|
|
39416
39416
|
return true;
|
|
@@ -39420,7 +39420,7 @@ var require_partial = __commonJS({
|
|
|
39420
39420
|
}
|
|
39421
39421
|
return false;
|
|
39422
39422
|
});
|
|
39423
|
-
if (
|
|
39423
|
+
if (match23) {
|
|
39424
39424
|
return true;
|
|
39425
39425
|
}
|
|
39426
39426
|
}
|
|
@@ -40036,7 +40036,7 @@ var require_ignore = __commonJS({
|
|
|
40036
40036
|
var RETURN_FALSE = () => false;
|
|
40037
40037
|
var sanitizeRange = (range) => range.replace(
|
|
40038
40038
|
REGEX_REGEXP_RANGE,
|
|
40039
|
-
(
|
|
40039
|
+
(match23, from, to) => from.charCodeAt(0) <= to.charCodeAt(0) ? match23 : EMPTY
|
|
40040
40040
|
);
|
|
40041
40041
|
var cleanRangeBackSlash = (slashes) => {
|
|
40042
40042
|
const { length } = slashes;
|
|
@@ -40088,7 +40088,7 @@ var require_ignore = __commonJS({
|
|
|
40088
40088
|
// > These special characters are often called "metacharacters".
|
|
40089
40089
|
[
|
|
40090
40090
|
/[\\$.|*+(){^]/g,
|
|
40091
|
-
(
|
|
40091
|
+
(match23) => `\\${match23}`
|
|
40092
40092
|
],
|
|
40093
40093
|
[
|
|
40094
40094
|
// > a question mark (?) matches a single character
|
|
@@ -40170,7 +40170,7 @@ var require_ignore = __commonJS({
|
|
|
40170
40170
|
// > can be used to match one of the characters in a range.
|
|
40171
40171
|
// `\` is escaped by step 3
|
|
40172
40172
|
/(\\)?\[([^\]/]*?)(\\*)($|\])/g,
|
|
40173
|
-
(
|
|
40173
|
+
(match23, leadEscape, range, endEscape, close2) => leadEscape === ESCAPE ? `\\[${range}${cleanRangeBackSlash(endEscape)}${close2}` : close2 === "]" ? endEscape.length % 2 === 0 ? `[${sanitizeRange(range)}${endEscape}]` : "[]" : "[]"
|
|
40174
40174
|
],
|
|
40175
40175
|
// ending
|
|
40176
40176
|
[
|
|
@@ -40187,7 +40187,7 @@ var require_ignore = __commonJS({
|
|
|
40187
40187
|
// 'js*' will not match 'a.js'
|
|
40188
40188
|
// 'js/' will not match 'a.js'
|
|
40189
40189
|
// 'js' will match 'a.js' and 'a.js/'
|
|
40190
|
-
(
|
|
40190
|
+
(match23) => /\/$/.test(match23) ? `${match23}$` : `${match23}(?=$|\\/$)`
|
|
40191
40191
|
]
|
|
40192
40192
|
];
|
|
40193
40193
|
var REGEX_REPLACE_TRAILING_WILDCARD = /(^|\\\/)?\\\*$/;
|
|
@@ -40533,11 +40533,11 @@ var require_ini = __commonJS({
|
|
|
40533
40533
|
lines.forEach(function(line, _2, __) {
|
|
40534
40534
|
if (!line || line.match(/^\s*[;#]/))
|
|
40535
40535
|
return;
|
|
40536
|
-
var
|
|
40537
|
-
if (!
|
|
40536
|
+
var match23 = line.match(re);
|
|
40537
|
+
if (!match23)
|
|
40538
40538
|
return;
|
|
40539
|
-
if (
|
|
40540
|
-
section = unsafe(
|
|
40539
|
+
if (match23[1] !== void 0) {
|
|
40540
|
+
section = unsafe(match23[1]);
|
|
40541
40541
|
if (section === "__proto__") {
|
|
40542
40542
|
p = {};
|
|
40543
40543
|
return;
|
|
@@ -40545,10 +40545,10 @@ var require_ini = __commonJS({
|
|
|
40545
40545
|
p = out[section] = out[section] || {};
|
|
40546
40546
|
return;
|
|
40547
40547
|
}
|
|
40548
|
-
var key = unsafe(
|
|
40548
|
+
var key = unsafe(match23[2]);
|
|
40549
40549
|
if (key === "__proto__")
|
|
40550
40550
|
return;
|
|
40551
|
-
var value2 =
|
|
40551
|
+
var value2 = match23[3] ? unsafe(match23[4]) : true;
|
|
40552
40552
|
switch (value2) {
|
|
40553
40553
|
case "true":
|
|
40554
40554
|
case "false":
|
|
@@ -41089,7 +41089,7 @@ var require_rc = __commonJS({
|
|
|
41089
41089
|
"use strict";
|
|
41090
41090
|
init_esm_shims();
|
|
41091
41091
|
var cc = require_utils20();
|
|
41092
|
-
var
|
|
41092
|
+
var join15 = __require("path").join;
|
|
41093
41093
|
var deepExtend2 = require_deep_extend();
|
|
41094
41094
|
var etc = "/etc";
|
|
41095
41095
|
var win = process.platform === "win32";
|
|
@@ -41114,15 +41114,15 @@ var require_rc = __commonJS({
|
|
|
41114
41114
|
}
|
|
41115
41115
|
if (!win)
|
|
41116
41116
|
[
|
|
41117
|
-
|
|
41118
|
-
|
|
41117
|
+
join15(etc, name, "config"),
|
|
41118
|
+
join15(etc, name + "rc")
|
|
41119
41119
|
].forEach(addConfigFile);
|
|
41120
41120
|
if (home)
|
|
41121
41121
|
[
|
|
41122
|
-
|
|
41123
|
-
|
|
41124
|
-
|
|
41125
|
-
|
|
41122
|
+
join15(home, ".config", name, "config"),
|
|
41123
|
+
join15(home, ".config", name),
|
|
41124
|
+
join15(home, "." + name, "config"),
|
|
41125
|
+
join15(home, "." + name + "rc")
|
|
41126
41126
|
].forEach(addConfigFile);
|
|
41127
41127
|
addConfigFile(cc.find("." + name + "rc"));
|
|
41128
41128
|
if (env3.config) addConfigFile(env3.config);
|
|
@@ -43798,8 +43798,8 @@ function encode_char(c) {
|
|
|
43798
43798
|
}
|
|
43799
43799
|
};
|
|
43800
43800
|
exports.hyphenToCamel = function(str) {
|
|
43801
|
-
return str.replace(/-[a-z]/g, function(
|
|
43802
|
-
return
|
|
43801
|
+
return str.replace(/-[a-z]/g, function(match23) {
|
|
43802
|
+
return match23[1].toUpperCase();
|
|
43803
43803
|
});
|
|
43804
43804
|
};
|
|
43805
43805
|
exports.createNullProtoObjWherePossible = function() {
|
|
@@ -43937,8 +43937,8 @@ var require_ejs = __commonJS({
|
|
|
43937
43937
|
var includePath;
|
|
43938
43938
|
var filePath;
|
|
43939
43939
|
var views = options.views;
|
|
43940
|
-
var
|
|
43941
|
-
if (
|
|
43940
|
+
var match23 = /^[A-Za-z]+:\\|^\//.exec(path9);
|
|
43941
|
+
if (match23 && match23.length) {
|
|
43942
43942
|
path9 = path9.replace(/^\/*/, "");
|
|
43943
43943
|
if (Array.isArray(options.root)) {
|
|
43944
43944
|
includePath = resolvePaths(path9, options.root);
|
|
@@ -45136,31 +45136,31 @@ var require_timestamp = __commonJS({
|
|
|
45136
45136
|
return false;
|
|
45137
45137
|
}
|
|
45138
45138
|
function constructYamlTimestamp(data) {
|
|
45139
|
-
var
|
|
45140
|
-
|
|
45141
|
-
if (
|
|
45142
|
-
if (
|
|
45143
|
-
year = +
|
|
45144
|
-
month = +
|
|
45145
|
-
day = +
|
|
45146
|
-
if (!
|
|
45139
|
+
var match23, year, month, day, hour, minute, second, fraction = 0, delta = null, tz_hour, tz_minute, date;
|
|
45140
|
+
match23 = YAML_DATE_REGEXP.exec(data);
|
|
45141
|
+
if (match23 === null) match23 = YAML_TIMESTAMP_REGEXP.exec(data);
|
|
45142
|
+
if (match23 === null) throw new Error("Date resolve error");
|
|
45143
|
+
year = +match23[1];
|
|
45144
|
+
month = +match23[2] - 1;
|
|
45145
|
+
day = +match23[3];
|
|
45146
|
+
if (!match23[4]) {
|
|
45147
45147
|
return new Date(Date.UTC(year, month, day));
|
|
45148
45148
|
}
|
|
45149
|
-
hour = +
|
|
45150
|
-
minute = +
|
|
45151
|
-
second = +
|
|
45152
|
-
if (
|
|
45153
|
-
fraction =
|
|
45149
|
+
hour = +match23[4];
|
|
45150
|
+
minute = +match23[5];
|
|
45151
|
+
second = +match23[6];
|
|
45152
|
+
if (match23[7]) {
|
|
45153
|
+
fraction = match23[7].slice(0, 3);
|
|
45154
45154
|
while (fraction.length < 3) {
|
|
45155
45155
|
fraction += "0";
|
|
45156
45156
|
}
|
|
45157
45157
|
fraction = +fraction;
|
|
45158
45158
|
}
|
|
45159
|
-
if (
|
|
45160
|
-
tz_hour = +
|
|
45161
|
-
tz_minute = +(
|
|
45159
|
+
if (match23[9]) {
|
|
45160
|
+
tz_hour = +match23[10];
|
|
45161
|
+
tz_minute = +(match23[11] || 0);
|
|
45162
45162
|
delta = (tz_hour * 60 + tz_minute) * 6e4;
|
|
45163
|
-
if (
|
|
45163
|
+
if (match23[9] === "-") delta = -delta;
|
|
45164
45164
|
}
|
|
45165
45165
|
date = new Date(Date.UTC(year, month, day, hour, minute, second, fraction));
|
|
45166
45166
|
if (delta) date.setTime(date.getTime() - delta);
|
|
@@ -45685,19 +45685,19 @@ var require_loader = __commonJS({
|
|
|
45685
45685
|
}
|
|
45686
45686
|
var directiveHandlers = {
|
|
45687
45687
|
YAML: function handleYamlDirective(state, name, args) {
|
|
45688
|
-
var
|
|
45688
|
+
var match23, major, minor;
|
|
45689
45689
|
if (state.version !== null) {
|
|
45690
45690
|
throwError(state, "duplication of %YAML directive");
|
|
45691
45691
|
}
|
|
45692
45692
|
if (args.length !== 1) {
|
|
45693
45693
|
throwError(state, "YAML directive accepts exactly one argument");
|
|
45694
45694
|
}
|
|
45695
|
-
|
|
45696
|
-
if (
|
|
45695
|
+
match23 = /^([0-9]+)\.([0-9]+)$/.exec(args[0]);
|
|
45696
|
+
if (match23 === null) {
|
|
45697
45697
|
throwError(state, "ill-formed argument of the YAML directive");
|
|
45698
45698
|
}
|
|
45699
|
-
major = parseInt(
|
|
45700
|
-
minor = parseInt(
|
|
45699
|
+
major = parseInt(match23[1], 10);
|
|
45700
|
+
minor = parseInt(match23[2], 10);
|
|
45701
45701
|
if (major !== 1) {
|
|
45702
45702
|
throwError(state, "unacceptable YAML version of the document");
|
|
45703
45703
|
}
|
|
@@ -46944,9 +46944,9 @@ var require_dumper = __commonJS({
|
|
|
46944
46944
|
}();
|
|
46945
46945
|
var prevMoreIndented = string[0] === "\n" || string[0] === " ";
|
|
46946
46946
|
var moreIndented;
|
|
46947
|
-
var
|
|
46948
|
-
while (
|
|
46949
|
-
var prefix =
|
|
46947
|
+
var match23;
|
|
46948
|
+
while (match23 = lineRe.exec(string)) {
|
|
46949
|
+
var prefix = match23[1], line = match23[2];
|
|
46950
46950
|
moreIndented = line[0] === " ";
|
|
46951
46951
|
result += prefix + (!prevMoreIndented && !moreIndented && line !== "" ? "\n" : "") + foldLine(line, width);
|
|
46952
46952
|
prevMoreIndented = moreIndented;
|
|
@@ -46956,11 +46956,11 @@ var require_dumper = __commonJS({
|
|
|
46956
46956
|
function foldLine(line, width) {
|
|
46957
46957
|
if (line === "" || line[0] === " ") return line;
|
|
46958
46958
|
var breakRe = / [^ ]/g;
|
|
46959
|
-
var
|
|
46959
|
+
var match23;
|
|
46960
46960
|
var start = 0, end, curr = 0, next = 0;
|
|
46961
46961
|
var result = "";
|
|
46962
|
-
while (
|
|
46963
|
-
next =
|
|
46962
|
+
while (match23 = breakRe.exec(line)) {
|
|
46963
|
+
next = match23.index;
|
|
46964
46964
|
if (next - start > width) {
|
|
46965
46965
|
end = curr > start ? curr : next;
|
|
46966
46966
|
result += "\n" + line.slice(start, end);
|
|
@@ -47297,10 +47297,10 @@ var require_front_matter = __commonJS({
|
|
|
47297
47297
|
};
|
|
47298
47298
|
}
|
|
47299
47299
|
}
|
|
47300
|
-
function computeLocation(
|
|
47300
|
+
function computeLocation(match23, body) {
|
|
47301
47301
|
var line = 1;
|
|
47302
47302
|
var pos = body.indexOf("\n");
|
|
47303
|
-
var offset =
|
|
47303
|
+
var offset = match23.index + match23[0].length;
|
|
47304
47304
|
while (pos !== -1) {
|
|
47305
47305
|
if (pos >= offset) {
|
|
47306
47306
|
return line;
|
|
@@ -47311,8 +47311,8 @@ var require_front_matter = __commonJS({
|
|
|
47311
47311
|
return line;
|
|
47312
47312
|
}
|
|
47313
47313
|
function parse2(string, allowUnsafe) {
|
|
47314
|
-
var
|
|
47315
|
-
if (!
|
|
47314
|
+
var match23 = regex2.exec(string);
|
|
47315
|
+
if (!match23) {
|
|
47316
47316
|
return {
|
|
47317
47317
|
attributes: {},
|
|
47318
47318
|
body: string,
|
|
@@ -47320,10 +47320,10 @@ var require_front_matter = __commonJS({
|
|
|
47320
47320
|
};
|
|
47321
47321
|
}
|
|
47322
47322
|
var loader = allowUnsafe ? parser.load : parser.safeLoad;
|
|
47323
|
-
var yaml =
|
|
47323
|
+
var yaml = match23[match23.length - 1].replace(/^\s+|\s+$/g, "");
|
|
47324
47324
|
var attributes = loader(yaml) || {};
|
|
47325
|
-
var body = string.replace(
|
|
47326
|
-
var line = computeLocation(
|
|
47325
|
+
var body = string.replace(match23[0], "");
|
|
47326
|
+
var line = computeLocation(match23, string);
|
|
47327
47327
|
return {
|
|
47328
47328
|
attributes,
|
|
47329
47329
|
body,
|
|
@@ -47340,7 +47340,7 @@ var require_front_matter = __commonJS({
|
|
|
47340
47340
|
|
|
47341
47341
|
// src/index.tsx
|
|
47342
47342
|
init_esm_shims();
|
|
47343
|
-
var
|
|
47343
|
+
var import_react117 = __toESM(require_react(), 1);
|
|
47344
47344
|
import { cwd as cwd2 } from "node:process";
|
|
47345
47345
|
|
|
47346
47346
|
// ../cli-telemetry-react/src/index.ts
|
|
@@ -47520,12 +47520,12 @@ var getAllProperties = (object) => {
|
|
|
47520
47520
|
};
|
|
47521
47521
|
function autoBind(self2, { include, exclude } = {}) {
|
|
47522
47522
|
const filter = (key) => {
|
|
47523
|
-
const
|
|
47523
|
+
const match23 = (pattern) => typeof pattern === "string" ? key === pattern : pattern.test(key);
|
|
47524
47524
|
if (include) {
|
|
47525
|
-
return include.some(
|
|
47525
|
+
return include.some(match23);
|
|
47526
47526
|
}
|
|
47527
47527
|
if (exclude) {
|
|
47528
|
-
return !exclude.some(
|
|
47528
|
+
return !exclude.some(match23);
|
|
47529
47529
|
}
|
|
47530
47530
|
return true;
|
|
47531
47531
|
};
|
|
@@ -57998,6 +57998,7 @@ var CliSystemErrorCode = (0, import_variant11.variant)({
|
|
|
57998
57998
|
FailedCreatingAppProject: {},
|
|
57999
57999
|
FailedCreatingAppDeployment: {},
|
|
58000
58000
|
FailedFinalizingAppDeployment: {},
|
|
58001
|
+
FailedCreatingNewFunnelProject: {},
|
|
58001
58002
|
FailedToFindAstroConfig: {}
|
|
58002
58003
|
});
|
|
58003
58004
|
var CliUserErrorCode = (0, import_variant11.variant)({
|
|
@@ -58111,7 +58112,8 @@ var CliUserErrorCode = (0, import_variant11.variant)({
|
|
|
58111
58112
|
AppReleaseConfigViolations: (0, import_variant11.fields)(),
|
|
58112
58113
|
ProjectIsAlreadyLinked: {},
|
|
58113
58114
|
ProjectIsNotLinkable: {},
|
|
58114
|
-
MissingPresetCssForSiteComponent: (0, import_variant11.fields)()
|
|
58115
|
+
MissingPresetCssForSiteComponent: (0, import_variant11.fields)(),
|
|
58116
|
+
AppInstallerSiteNotFound: (0, import_variant11.fields)()
|
|
58115
58117
|
});
|
|
58116
58118
|
var CliErrorCode = (0, import_variant11.variant)({
|
|
58117
58119
|
...CliSystemErrorCode,
|
|
@@ -61041,9 +61043,9 @@ init_esm_shims();
|
|
|
61041
61043
|
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;
|
|
61042
61044
|
function parseDateTimeSkeleton(skeleton) {
|
|
61043
61045
|
var result = {};
|
|
61044
|
-
skeleton.replace(DATE_TIME_REGEX, function(
|
|
61045
|
-
var len =
|
|
61046
|
-
switch (
|
|
61046
|
+
skeleton.replace(DATE_TIME_REGEX, function(match23) {
|
|
61047
|
+
var len = match23.length;
|
|
61048
|
+
switch (match23[0]) {
|
|
61047
61049
|
// Era
|
|
61048
61050
|
case "G":
|
|
61049
61051
|
result.era = len === 4 ? "long" : len === 5 ? "narrow" : "short";
|
|
@@ -63053,21 +63055,21 @@ if (REGEX_SUPPORTS_U_AND_Y) {
|
|
|
63053
63055
|
matchIdentifierAtIndex = function matchIdentifierAtIndex2(s2, index) {
|
|
63054
63056
|
var _a3;
|
|
63055
63057
|
IDENTIFIER_PREFIX_RE_1.lastIndex = index;
|
|
63056
|
-
var
|
|
63057
|
-
return (_a3 =
|
|
63058
|
+
var match23 = IDENTIFIER_PREFIX_RE_1.exec(s2);
|
|
63059
|
+
return (_a3 = match23[1]) !== null && _a3 !== void 0 ? _a3 : "";
|
|
63058
63060
|
};
|
|
63059
63061
|
} else {
|
|
63060
63062
|
matchIdentifierAtIndex = function matchIdentifierAtIndex2(s2, index) {
|
|
63061
|
-
var
|
|
63063
|
+
var match23 = [];
|
|
63062
63064
|
while (true) {
|
|
63063
63065
|
var c2 = codePointAt(s2, index);
|
|
63064
63066
|
if (c2 === void 0 || _isWhiteSpace(c2) || _isPatternSyntax(c2)) {
|
|
63065
63067
|
break;
|
|
63066
63068
|
}
|
|
63067
|
-
|
|
63069
|
+
match23.push(c2);
|
|
63068
63070
|
index += c2 >= 65536 ? 2 : 1;
|
|
63069
63071
|
}
|
|
63070
|
-
return fromCodePoint.apply(void 0,
|
|
63072
|
+
return fromCodePoint.apply(void 0, match23);
|
|
63071
63073
|
};
|
|
63072
63074
|
}
|
|
63073
63075
|
var IDENTIFIER_PREFIX_RE_1;
|
|
@@ -65490,7 +65492,7 @@ var Interpolator = class {
|
|
|
65490
65492
|
this.nestingRegexp = getOrResetRegExp(this.nestingRegexp, `${this.nestingPrefix}(.+?)${this.nestingSuffix}`);
|
|
65491
65493
|
}
|
|
65492
65494
|
interpolate(str, data, lng, options) {
|
|
65493
|
-
let
|
|
65495
|
+
let match23;
|
|
65494
65496
|
let value2;
|
|
65495
65497
|
let replaces;
|
|
65496
65498
|
const defaultData = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {};
|
|
@@ -65524,17 +65526,17 @@ var Interpolator = class {
|
|
|
65524
65526
|
}];
|
|
65525
65527
|
todos.forEach((todo) => {
|
|
65526
65528
|
replaces = 0;
|
|
65527
|
-
while (
|
|
65528
|
-
const matchedVar =
|
|
65529
|
+
while (match23 = todo.regex.exec(str)) {
|
|
65530
|
+
const matchedVar = match23[1].trim();
|
|
65529
65531
|
value2 = handleFormat(matchedVar);
|
|
65530
65532
|
if (value2 === void 0) {
|
|
65531
65533
|
if (typeof missingInterpolationHandler === "function") {
|
|
65532
|
-
const temp = missingInterpolationHandler(str,
|
|
65534
|
+
const temp = missingInterpolationHandler(str, match23, options);
|
|
65533
65535
|
value2 = isString2(temp) ? temp : "";
|
|
65534
65536
|
} else if (options && Object.prototype.hasOwnProperty.call(options, matchedVar)) {
|
|
65535
65537
|
value2 = "";
|
|
65536
65538
|
} else if (skipOnVariables) {
|
|
65537
|
-
value2 =
|
|
65539
|
+
value2 = match23[0];
|
|
65538
65540
|
continue;
|
|
65539
65541
|
} else {
|
|
65540
65542
|
this.logger.warn(`missed to pass in variable ${matchedVar} for interpolating ${str}`);
|
|
@@ -65544,10 +65546,10 @@ var Interpolator = class {
|
|
|
65544
65546
|
value2 = makeString(value2);
|
|
65545
65547
|
}
|
|
65546
65548
|
const safeValue = todo.safeValue(value2);
|
|
65547
|
-
str = str.replace(
|
|
65549
|
+
str = str.replace(match23[0], safeValue);
|
|
65548
65550
|
if (skipOnVariables) {
|
|
65549
65551
|
todo.regex.lastIndex += value2.length;
|
|
65550
|
-
todo.regex.lastIndex -=
|
|
65552
|
+
todo.regex.lastIndex -= match23[0].length;
|
|
65551
65553
|
} else {
|
|
65552
65554
|
todo.regex.lastIndex = 0;
|
|
65553
65555
|
}
|
|
@@ -65561,7 +65563,7 @@ var Interpolator = class {
|
|
|
65561
65563
|
}
|
|
65562
65564
|
nest(str, fc) {
|
|
65563
65565
|
let options = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
65564
|
-
let
|
|
65566
|
+
let match23;
|
|
65565
65567
|
let value2;
|
|
65566
65568
|
let clonedOptions;
|
|
65567
65569
|
const handleHasOptions = (key, inheritedOptions) => {
|
|
@@ -65589,7 +65591,7 @@ var Interpolator = class {
|
|
|
65589
65591
|
if (clonedOptions.defaultValue && clonedOptions.defaultValue.indexOf(this.prefix) > -1) delete clonedOptions.defaultValue;
|
|
65590
65592
|
return key;
|
|
65591
65593
|
};
|
|
65592
|
-
while (
|
|
65594
|
+
while (match23 = this.nestingRegexp.exec(str)) {
|
|
65593
65595
|
let formatters = [];
|
|
65594
65596
|
clonedOptions = {
|
|
65595
65597
|
...options
|
|
@@ -65598,26 +65600,26 @@ var Interpolator = class {
|
|
|
65598
65600
|
clonedOptions.applyPostProcessor = false;
|
|
65599
65601
|
delete clonedOptions.defaultValue;
|
|
65600
65602
|
let doReduce = false;
|
|
65601
|
-
if (
|
|
65602
|
-
const r2 =
|
|
65603
|
-
|
|
65603
|
+
if (match23[0].indexOf(this.formatSeparator) !== -1 && !/{.*}/.test(match23[1])) {
|
|
65604
|
+
const r2 = match23[1].split(this.formatSeparator).map((elem) => elem.trim());
|
|
65605
|
+
match23[1] = r2.shift();
|
|
65604
65606
|
formatters = r2;
|
|
65605
65607
|
doReduce = true;
|
|
65606
65608
|
}
|
|
65607
|
-
value2 = fc(handleHasOptions.call(this,
|
|
65608
|
-
if (value2 &&
|
|
65609
|
+
value2 = fc(handleHasOptions.call(this, match23[1].trim(), clonedOptions), clonedOptions);
|
|
65610
|
+
if (value2 && match23[0] === str && !isString2(value2)) return value2;
|
|
65609
65611
|
if (!isString2(value2)) value2 = makeString(value2);
|
|
65610
65612
|
if (!value2) {
|
|
65611
|
-
this.logger.warn(`missed to resolve ${
|
|
65613
|
+
this.logger.warn(`missed to resolve ${match23[1]} for nesting ${str}`);
|
|
65612
65614
|
value2 = "";
|
|
65613
65615
|
}
|
|
65614
65616
|
if (doReduce) {
|
|
65615
65617
|
value2 = formatters.reduce((v, f) => this.format(v, f, options.lng, {
|
|
65616
65618
|
...options,
|
|
65617
|
-
interpolationkey:
|
|
65619
|
+
interpolationkey: match23[1].trim()
|
|
65618
65620
|
}), value2.trim());
|
|
65619
65621
|
}
|
|
65620
|
-
str = str.replace(
|
|
65622
|
+
str = str.replace(match23[0], value2);
|
|
65621
65623
|
this.regexp.lastIndex = 0;
|
|
65622
65624
|
}
|
|
65623
65625
|
return str;
|
|
@@ -66740,8 +66742,8 @@ async function defaultBrowserId() {
|
|
|
66740
66742
|
throw new Error("macOS only");
|
|
66741
66743
|
}
|
|
66742
66744
|
const { stdout } = await execFileAsync("defaults", ["read", "com.apple.LaunchServices/com.apple.launchservices.secure", "LSHandlers"]);
|
|
66743
|
-
const
|
|
66744
|
-
return
|
|
66745
|
+
const match23 = /LSHandlerRoleAll = "(?!-)(?<id>[^"]+?)";\s+?LSHandlerURLScheme = (?:http|https);/.exec(stdout);
|
|
66746
|
+
return match23?.groups.id ?? "com.apple.Safari";
|
|
66745
66747
|
}
|
|
66746
66748
|
|
|
66747
66749
|
// ../../node_modules/bundle-name/index.js
|
|
@@ -66795,11 +66797,11 @@ async function defaultBrowser(_execFileAsync = execFileAsync3) {
|
|
|
66795
66797
|
"/v",
|
|
66796
66798
|
"ProgId"
|
|
66797
66799
|
]);
|
|
66798
|
-
const
|
|
66799
|
-
if (!
|
|
66800
|
+
const match23 = /ProgId\s*REG_SZ\s*(?<id>\S+)/.exec(stdout);
|
|
66801
|
+
if (!match23) {
|
|
66800
66802
|
throw new UnknownBrowserError(`Cannot find Windows browser in stdout: ${JSON.stringify(stdout)}`);
|
|
66801
66803
|
}
|
|
66802
|
-
const { id } =
|
|
66804
|
+
const { id } = match23.groups;
|
|
66803
66805
|
const browser = windowsBrowserProgIds[id];
|
|
66804
66806
|
if (!browser) {
|
|
66805
66807
|
throw new UnknownBrowserError(`Unknown browser ID: ${id}`);
|
|
@@ -67206,9 +67208,9 @@ var reDetectIndentation = /(?:\r\n|\r|\n)([ \t]*)(?:[^ \t\r\n]|$)/;
|
|
|
67206
67208
|
var reOnlyWhitespaceWithAtLeastOneNewline = /^[ \t]*[\r\n][ \t\r\n]*$/;
|
|
67207
67209
|
function _outdentArray(strings, firstInterpolatedValueSetsIndentationLevel, options) {
|
|
67208
67210
|
var indentationLevel = 0;
|
|
67209
|
-
var
|
|
67210
|
-
if (
|
|
67211
|
-
indentationLevel =
|
|
67211
|
+
var match23 = strings[0].match(reDetectIndentation);
|
|
67212
|
+
if (match23) {
|
|
67213
|
+
indentationLevel = match23[1].length;
|
|
67212
67214
|
}
|
|
67213
67215
|
var reSource = "(\\r\\n|\\r|\\n).{0," + indentationLevel + "}";
|
|
67214
67216
|
var reMatchIndent = new RegExp(reSource, "g");
|
|
@@ -68695,6 +68697,9 @@ ${errorMessage2}`
|
|
|
68695
68697
|
FailedFinalizingAppDeployment: () => {
|
|
68696
68698
|
return () => /* @__PURE__ */ import_react77.default.createElement(SystemErrorMessage, { message: "An error occoured while completing app deployment." });
|
|
68697
68699
|
},
|
|
68700
|
+
FailedCreatingNewFunnelProject: () => {
|
|
68701
|
+
return () => /* @__PURE__ */ import_react77.default.createElement(SystemErrorMessage, { message: "An error occurred while creating a new business." });
|
|
68702
|
+
},
|
|
68698
68703
|
BuildOutputMissing: ({ reason }) => {
|
|
68699
68704
|
return () => /* @__PURE__ */ import_react77.default.createElement(
|
|
68700
68705
|
ErrorMessage,
|
|
@@ -68731,6 +68736,15 @@ ${errorMessage2}`
|
|
|
68731
68736
|
message: `Site component "${componentId}" is missing preset CSS file for the preset key "${presetName}".`
|
|
68732
68737
|
}
|
|
68733
68738
|
);
|
|
68739
|
+
},
|
|
68740
|
+
AppInstallerSiteNotFound: ({ siteId }) => {
|
|
68741
|
+
return () => /* @__PURE__ */ import_react77.default.createElement(
|
|
68742
|
+
ErrorMessage,
|
|
68743
|
+
{
|
|
68744
|
+
message: `Site with ID "${siteId}" not found.`,
|
|
68745
|
+
hint: "Please make sure the site exists and you have access to it."
|
|
68746
|
+
}
|
|
68747
|
+
);
|
|
68734
68748
|
}
|
|
68735
68749
|
});
|
|
68736
68750
|
}
|
|
@@ -69380,8 +69394,8 @@ var LINUX_VERSIONS = {
|
|
|
69380
69394
|
ubuntu: (content) => matchFirst(/distrib_release=(.*)/, content)
|
|
69381
69395
|
};
|
|
69382
69396
|
function matchFirst(regex2, text) {
|
|
69383
|
-
const
|
|
69384
|
-
return
|
|
69397
|
+
const match23 = regex2.exec(text);
|
|
69398
|
+
return match23 ? match23[1] : void 0;
|
|
69385
69399
|
}
|
|
69386
69400
|
async function getDarwinInfo() {
|
|
69387
69401
|
const darwinInfo = {
|
|
@@ -72266,7 +72280,7 @@ function reportCommandStartEvent({
|
|
|
72266
72280
|
var package_default = {
|
|
72267
72281
|
name: "@wix/create-app",
|
|
72268
72282
|
description: "Create Wix apps",
|
|
72269
|
-
version: "0.0.
|
|
72283
|
+
version: "0.0.126",
|
|
72270
72284
|
author: "Ihor Machuzhak",
|
|
72271
72285
|
bin: "bin/index.cjs",
|
|
72272
72286
|
devDependencies: {
|
|
@@ -72395,8 +72409,8 @@ var createBiLogger2 = async (errorReporter2, userId) => {
|
|
|
72395
72409
|
|
|
72396
72410
|
// src/components/CreateAppCommand.tsx
|
|
72397
72411
|
init_esm_shims();
|
|
72398
|
-
var
|
|
72399
|
-
var
|
|
72412
|
+
var import_react116 = __toESM(require_react(), 1);
|
|
72413
|
+
var import_variant43 = __toESM(require_lib(), 1);
|
|
72400
72414
|
|
|
72401
72415
|
// ../package-manager/src/index.ts
|
|
72402
72416
|
init_esm_shims();
|
|
@@ -75674,8 +75688,8 @@ var AuthProvider = ({ userInfo: userInfo2, children }) => {
|
|
|
75674
75688
|
|
|
75675
75689
|
// src/components/Questions/Questions.tsx
|
|
75676
75690
|
init_esm_shims();
|
|
75677
|
-
var
|
|
75678
|
-
var
|
|
75691
|
+
var import_react111 = __toESM(require_react(), 1);
|
|
75692
|
+
var import_variant39 = __toESM(require_lib(), 1);
|
|
75679
75693
|
|
|
75680
75694
|
// ../dev-center-client/src/index.ts
|
|
75681
75695
|
init_esm_shims();
|
|
@@ -75731,6 +75745,10 @@ var _billing = {
|
|
|
75731
75745
|
oneTimePrice: "DOUBLE",
|
|
75732
75746
|
meteredBilling: "_meteredBilling"
|
|
75733
75747
|
};
|
|
75748
|
+
var _breakpointPresetStyleOverrides = {
|
|
75749
|
+
default: "_presetStyleOverrides",
|
|
75750
|
+
small: "_presetStyleOverrides"
|
|
75751
|
+
};
|
|
75734
75752
|
var _checkbox = { label: "_richContent" };
|
|
75735
75753
|
var _checkboxGroup = {
|
|
75736
75754
|
description: "_richContent",
|
|
@@ -75794,6 +75812,7 @@ var _elementItem = {
|
|
|
75794
75812
|
refElement: "_refElement"
|
|
75795
75813
|
};
|
|
75796
75814
|
var _elementStyleDefaults = { elements: "Map#_elementStyleDefaults" };
|
|
75815
|
+
var _elementStyleOverrides = { elements: "Map#_elementStyleOverrides" };
|
|
75797
75816
|
var _expectedInputs = {
|
|
75798
75817
|
expectedStartInputs: "_predefinedExpectedInput",
|
|
75799
75818
|
expectedVerifyInputs: "_predefinedExpectedInput"
|
|
@@ -75909,7 +75928,12 @@ var _predefinedExpectedInputConfiguration = {
|
|
|
75909
75928
|
textInput: "_adminConfigurableTextInput"
|
|
75910
75929
|
};
|
|
75911
75930
|
var _presetEditorPresence = { wixMediaThumbnail: "_wixCommonImage" };
|
|
75912
|
-
var _presetItem = {
|
|
75931
|
+
var _presetItem = {
|
|
75932
|
+
styleDefaults: "_presetStyleDefaults",
|
|
75933
|
+
styleOverrides: "_breakpointPresetStyleOverrides"
|
|
75934
|
+
};
|
|
75935
|
+
var _presetStyleDefaults = { elements: "Map#_elementStyleDefaults" };
|
|
75936
|
+
var _presetStyleOverrides = { elements: "Map#_elementStyleOverrides" };
|
|
75913
75937
|
var _pricingModel = { plans: "_plan" };
|
|
75914
75938
|
var _productCheckboxGroup = {
|
|
75915
75939
|
description: "_richContent",
|
|
@@ -75924,8 +75948,11 @@ var _radioGroup = { description: "_richContent" };
|
|
|
75924
75948
|
var _ratingInput = { description: "_richContent" };
|
|
75925
75949
|
var _refElement = {
|
|
75926
75950
|
resolvedElement: "_inlineElement",
|
|
75927
|
-
elementsDefaults: "Map#_refInnerElementDefaults"
|
|
75951
|
+
elementsDefaults: "Map#_refInnerElementDefaults",
|
|
75952
|
+
elements: "Map#_refInnerElementDefaults",
|
|
75953
|
+
styleOverrides: "_refElementStyleOverrides"
|
|
75928
75954
|
};
|
|
75955
|
+
var _refElementStyleOverrides = { elements: "Map#_refElementStyleOverrides" };
|
|
75929
75956
|
var _refInnerElementDefaults = { elements: "Map#_refInnerElementDefaults" };
|
|
75930
75957
|
var _richContent = { nodes: "_node", metadata: "_v1Metadata" };
|
|
75931
75958
|
var _richContentOptions = { richContent: "_richContent" };
|
|
@@ -76104,6 +76131,7 @@ function getAppByVersion(payload5) {
|
|
|
76104
76131
|
_authenticatorConfig,
|
|
76105
76132
|
_background,
|
|
76106
76133
|
_billing,
|
|
76134
|
+
_breakpointPresetStyleOverrides,
|
|
76107
76135
|
_checkbox,
|
|
76108
76136
|
_checkboxGroup,
|
|
76109
76137
|
_checkboxGroupOption,
|
|
@@ -76129,6 +76157,7 @@ function getAppByVersion(payload5) {
|
|
|
76129
76157
|
_editorReactComponent,
|
|
76130
76158
|
_elementItem,
|
|
76131
76159
|
_elementStyleDefaults,
|
|
76160
|
+
_elementStyleOverrides,
|
|
76132
76161
|
_expectedInputs,
|
|
76133
76162
|
_field,
|
|
76134
76163
|
_fileUpload,
|
|
@@ -76172,6 +76201,8 @@ function getAppByVersion(payload5) {
|
|
|
76172
76201
|
_predefinedExpectedInputConfiguration,
|
|
76173
76202
|
_presetEditorPresence,
|
|
76174
76203
|
_presetItem,
|
|
76204
|
+
_presetStyleDefaults,
|
|
76205
|
+
_presetStyleOverrides,
|
|
76175
76206
|
_pricingModel,
|
|
76176
76207
|
_productCheckboxGroup,
|
|
76177
76208
|
_productCheckboxGroupOption,
|
|
@@ -76179,6 +76210,7 @@ function getAppByVersion(payload5) {
|
|
|
76179
76210
|
_radioGroup,
|
|
76180
76211
|
_ratingInput,
|
|
76181
76212
|
_refElement,
|
|
76213
|
+
_refElementStyleOverrides,
|
|
76182
76214
|
_refInnerElementDefaults,
|
|
76183
76215
|
_richContent,
|
|
76184
76216
|
_richContentOptions,
|
|
@@ -78262,6 +78294,7 @@ var Tag;
|
|
|
78262
78294
|
Tag3["ADD_TO_CATEGORY"] = "ADD_TO_CATEGORY";
|
|
78263
78295
|
Tag3["MY_BUSINESS"] = "MY_BUSINESS";
|
|
78264
78296
|
Tag3["PIPELINE_LINKED_ENTITY"] = "PIPELINE_LINKED_ENTITY";
|
|
78297
|
+
Tag3["GET_PAID"] = "GET_PAID";
|
|
78265
78298
|
})(Tag || (Tag = {}));
|
|
78266
78299
|
var FilterSelectionType;
|
|
78267
78300
|
(function(FilterSelectionType3) {
|
|
@@ -79329,6 +79362,124 @@ var CssDataType;
|
|
|
79329
79362
|
CssDataType3["string"] = "string";
|
|
79330
79363
|
CssDataType3["time"] = "time";
|
|
79331
79364
|
})(CssDataType || (CssDataType = {}));
|
|
79365
|
+
var StyleType;
|
|
79366
|
+
(function(StyleType3) {
|
|
79367
|
+
StyleType3["UNKNOWN_StyleType"] = "UNKNOWN_StyleType";
|
|
79368
|
+
StyleType3["number"] = "number";
|
|
79369
|
+
StyleType3["string"] = "string";
|
|
79370
|
+
StyleType3["angle"] = "angle";
|
|
79371
|
+
StyleType3["length"] = "length";
|
|
79372
|
+
StyleType3["percentage"] = "percentage";
|
|
79373
|
+
StyleType3["lengthPercentage"] = "lengthPercentage";
|
|
79374
|
+
StyleType3["blendMode"] = "blendMode";
|
|
79375
|
+
StyleType3["customEnum"] = "customEnum";
|
|
79376
|
+
StyleType3["time"] = "time";
|
|
79377
|
+
StyleType3["background"] = "background";
|
|
79378
|
+
StyleType3["backgroundSize"] = "backgroundSize";
|
|
79379
|
+
StyleType3["backgroundColor"] = "backgroundColor";
|
|
79380
|
+
StyleType3["backgroundImage"] = "backgroundImage";
|
|
79381
|
+
StyleType3["backgroundClip"] = "backgroundClip";
|
|
79382
|
+
StyleType3["backgroundOrigin"] = "backgroundOrigin";
|
|
79383
|
+
StyleType3["backgroundPosition"] = "backgroundPosition";
|
|
79384
|
+
StyleType3["backgroundRepeat"] = "backgroundRepeat";
|
|
79385
|
+
StyleType3["backgroundAttachment"] = "backgroundAttachment";
|
|
79386
|
+
StyleType3["margin"] = "margin";
|
|
79387
|
+
StyleType3["marginTop"] = "marginTop";
|
|
79388
|
+
StyleType3["marginRight"] = "marginRight";
|
|
79389
|
+
StyleType3["marginBottom"] = "marginBottom";
|
|
79390
|
+
StyleType3["marginLeft"] = "marginLeft";
|
|
79391
|
+
StyleType3["marginInlineStart"] = "marginInlineStart";
|
|
79392
|
+
StyleType3["marginInlineEnd"] = "marginInlineEnd";
|
|
79393
|
+
StyleType3["padding"] = "padding";
|
|
79394
|
+
StyleType3["paddingTop"] = "paddingTop";
|
|
79395
|
+
StyleType3["paddingRight"] = "paddingRight";
|
|
79396
|
+
StyleType3["paddingBottom"] = "paddingBottom";
|
|
79397
|
+
StyleType3["paddingLeft"] = "paddingLeft";
|
|
79398
|
+
StyleType3["paddingInlineStart"] = "paddingInlineStart";
|
|
79399
|
+
StyleType3["paddingInlineEnd"] = "paddingInlineEnd";
|
|
79400
|
+
StyleType3["border"] = "border";
|
|
79401
|
+
StyleType3["borderWidth"] = "borderWidth";
|
|
79402
|
+
StyleType3["borderStyle"] = "borderStyle";
|
|
79403
|
+
StyleType3["borderColor"] = "borderColor";
|
|
79404
|
+
StyleType3["borderTop"] = "borderTop";
|
|
79405
|
+
StyleType3["borderTopColor"] = "borderTopColor";
|
|
79406
|
+
StyleType3["borderTopWidth"] = "borderTopWidth";
|
|
79407
|
+
StyleType3["borderTopStyle"] = "borderTopStyle";
|
|
79408
|
+
StyleType3["borderRight"] = "borderRight";
|
|
79409
|
+
StyleType3["borderRightColor"] = "borderRightColor";
|
|
79410
|
+
StyleType3["borderRightWidth"] = "borderRightWidth";
|
|
79411
|
+
StyleType3["borderRightStyle"] = "borderRightStyle";
|
|
79412
|
+
StyleType3["borderBottom"] = "borderBottom";
|
|
79413
|
+
StyleType3["borderBottomColor"] = "borderBottomColor";
|
|
79414
|
+
StyleType3["borderBottomWidth"] = "borderBottomWidth";
|
|
79415
|
+
StyleType3["borderBottomStyle"] = "borderBottomStyle";
|
|
79416
|
+
StyleType3["borderLeft"] = "borderLeft";
|
|
79417
|
+
StyleType3["borderLeftColor"] = "borderLeftColor";
|
|
79418
|
+
StyleType3["borderLeftWidth"] = "borderLeftWidth";
|
|
79419
|
+
StyleType3["borderLeftStyle"] = "borderLeftStyle";
|
|
79420
|
+
StyleType3["borderInlineStart"] = "borderInlineStart";
|
|
79421
|
+
StyleType3["borderInlineStartColor"] = "borderInlineStartColor";
|
|
79422
|
+
StyleType3["borderInlineStartWidth"] = "borderInlineStartWidth";
|
|
79423
|
+
StyleType3["borderInlineStartStyle"] = "borderInlineStartStyle";
|
|
79424
|
+
StyleType3["borderInlineEnd"] = "borderInlineEnd";
|
|
79425
|
+
StyleType3["borderInlineEndColor"] = "borderInlineEndColor";
|
|
79426
|
+
StyleType3["borderInlineEndWidth"] = "borderInlineEndWidth";
|
|
79427
|
+
StyleType3["borderInlineEndStyle"] = "borderInlineEndStyle";
|
|
79428
|
+
StyleType3["borderRadius"] = "borderRadius";
|
|
79429
|
+
StyleType3["borderTopLeftRadius"] = "borderTopLeftRadius";
|
|
79430
|
+
StyleType3["borderTopRightRadius"] = "borderTopRightRadius";
|
|
79431
|
+
StyleType3["borderBottomRightRadius"] = "borderBottomRightRadius";
|
|
79432
|
+
StyleType3["borderBottomLeftRadius"] = "borderBottomLeftRadius";
|
|
79433
|
+
StyleType3["borderStartStartRadius"] = "borderStartStartRadius";
|
|
79434
|
+
StyleType3["borderStartEndRadius"] = "borderStartEndRadius";
|
|
79435
|
+
StyleType3["borderEndStartRadius"] = "borderEndStartRadius";
|
|
79436
|
+
StyleType3["borderEndEndRadius"] = "borderEndEndRadius";
|
|
79437
|
+
StyleType3["font"] = "font";
|
|
79438
|
+
StyleType3["fontFamily"] = "fontFamily";
|
|
79439
|
+
StyleType3["fontSize"] = "fontSize";
|
|
79440
|
+
StyleType3["fontStretch"] = "fontStretch";
|
|
79441
|
+
StyleType3["fontStyle"] = "fontStyle";
|
|
79442
|
+
StyleType3["fontVariant"] = "fontVariant";
|
|
79443
|
+
StyleType3["fontWeight"] = "fontWeight";
|
|
79444
|
+
StyleType3["lineHeight"] = "lineHeight";
|
|
79445
|
+
StyleType3["color"] = "color";
|
|
79446
|
+
StyleType3["letterSpacing"] = "letterSpacing";
|
|
79447
|
+
StyleType3["writingMode"] = "writingMode";
|
|
79448
|
+
StyleType3["textAlign"] = "textAlign";
|
|
79449
|
+
StyleType3["textTransform"] = "textTransform";
|
|
79450
|
+
StyleType3["textShadow"] = "textShadow";
|
|
79451
|
+
StyleType3["textOverflow"] = "textOverflow";
|
|
79452
|
+
StyleType3["textIndent"] = "textIndent";
|
|
79453
|
+
StyleType3["textDecoration"] = "textDecoration";
|
|
79454
|
+
StyleType3["textDecorationColor"] = "textDecorationColor";
|
|
79455
|
+
StyleType3["textDecorationLine"] = "textDecorationLine";
|
|
79456
|
+
StyleType3["textDecorationStyle"] = "textDecorationStyle";
|
|
79457
|
+
StyleType3["textDecorationThickness"] = "textDecorationThickness";
|
|
79458
|
+
StyleType3["boxShadow"] = "boxShadow";
|
|
79459
|
+
StyleType3["opacity"] = "opacity";
|
|
79460
|
+
StyleType3["overflow"] = "overflow";
|
|
79461
|
+
StyleType3["display"] = "display";
|
|
79462
|
+
StyleType3["alignSelf"] = "alignSelf";
|
|
79463
|
+
StyleType3["justifyContent"] = "justifyContent";
|
|
79464
|
+
StyleType3["alignItems"] = "alignItems";
|
|
79465
|
+
StyleType3["flexDirection"] = "flexDirection";
|
|
79466
|
+
StyleType3["height"] = "height";
|
|
79467
|
+
StyleType3["width"] = "width";
|
|
79468
|
+
StyleType3["gap"] = "gap";
|
|
79469
|
+
StyleType3["columnGap"] = "columnGap";
|
|
79470
|
+
StyleType3["rowGap"] = "rowGap";
|
|
79471
|
+
StyleType3["filter"] = "filter";
|
|
79472
|
+
StyleType3["backdropFilter"] = "backdropFilter";
|
|
79473
|
+
StyleType3["objectFit"] = "objectFit";
|
|
79474
|
+
StyleType3["objectPosition"] = "objectPosition";
|
|
79475
|
+
StyleType3["mixBlendMode"] = "mixBlendMode";
|
|
79476
|
+
StyleType3["isolation"] = "isolation";
|
|
79477
|
+
StyleType3["stroke"] = "stroke";
|
|
79478
|
+
StyleType3["strokeWidth"] = "strokeWidth";
|
|
79479
|
+
StyleType3["strokeOpacity"] = "strokeOpacity";
|
|
79480
|
+
StyleType3["fill"] = "fill";
|
|
79481
|
+
StyleType3["fillOpacity"] = "fillOpacity";
|
|
79482
|
+
})(StyleType || (StyleType = {}));
|
|
79332
79483
|
var FilterFunction;
|
|
79333
79484
|
(function(FilterFunction3) {
|
|
79334
79485
|
FilterFunction3["UNKNOWN_FilterFunctions"] = "UNKNOWN_FilterFunctions";
|
|
@@ -79375,6 +79526,20 @@ var BackgroundModeEnum;
|
|
|
79375
79526
|
BackgroundModeEnum3["UNKNOWN_BackgroundModeEnum"] = "UNKNOWN_BackgroundModeEnum";
|
|
79376
79527
|
BackgroundModeEnum3["shapeDividerSvg"] = "shapeDividerSvg";
|
|
79377
79528
|
})(BackgroundModeEnum || (BackgroundModeEnum = {}));
|
|
79529
|
+
var CssDataTypeEnumCssDataType;
|
|
79530
|
+
(function(CssDataTypeEnumCssDataType3) {
|
|
79531
|
+
CssDataTypeEnumCssDataType3["UNKNOWN_CssDataType"] = "UNKNOWN_CssDataType";
|
|
79532
|
+
CssDataTypeEnumCssDataType3["number"] = "number";
|
|
79533
|
+
CssDataTypeEnumCssDataType3["string"] = "string";
|
|
79534
|
+
CssDataTypeEnumCssDataType3["angle"] = "angle";
|
|
79535
|
+
CssDataTypeEnumCssDataType3["color"] = "color";
|
|
79536
|
+
CssDataTypeEnumCssDataType3["length"] = "length";
|
|
79537
|
+
CssDataTypeEnumCssDataType3["percentage"] = "percentage";
|
|
79538
|
+
CssDataTypeEnumCssDataType3["lengthPercentage"] = "lengthPercentage";
|
|
79539
|
+
CssDataTypeEnumCssDataType3["blendMode"] = "blendMode";
|
|
79540
|
+
CssDataTypeEnumCssDataType3["customEnum"] = "customEnum";
|
|
79541
|
+
CssDataTypeEnumCssDataType3["time"] = "time";
|
|
79542
|
+
})(CssDataTypeEnumCssDataType || (CssDataTypeEnumCssDataType = {}));
|
|
79378
79543
|
var DataType;
|
|
79379
79544
|
(function(DataType3) {
|
|
79380
79545
|
DataType3["UNKNOWN_DataType"] = "UNKNOWN_DataType";
|
|
@@ -79480,6 +79645,7 @@ var ActionType;
|
|
|
79480
79645
|
ActionType3["panel"] = "panel";
|
|
79481
79646
|
ActionType3["forward"] = "forward";
|
|
79482
79647
|
ActionType3["style"] = "style";
|
|
79648
|
+
ActionType3["displayGroup"] = "displayGroup";
|
|
79483
79649
|
})(ActionType || (ActionType = {}));
|
|
79484
79650
|
var PanelType;
|
|
79485
79651
|
(function(PanelType3) {
|
|
@@ -79496,6 +79662,7 @@ var ActionName;
|
|
|
79496
79662
|
ActionName3["manageItems"] = "manageItems";
|
|
79497
79663
|
ActionName3["dashboard"] = "dashboard";
|
|
79498
79664
|
ActionName3["custom"] = "custom";
|
|
79665
|
+
ActionName3["manageMenu"] = "manageMenu";
|
|
79499
79666
|
})(ActionName || (ActionName = {}));
|
|
79500
79667
|
var SizingType;
|
|
79501
79668
|
(function(SizingType3) {
|
|
@@ -79553,6 +79720,26 @@ var NativeStateType;
|
|
|
79553
79720
|
NativeStateType3["disabled"] = "disabled";
|
|
79554
79721
|
NativeStateType3["invalid"] = "invalid";
|
|
79555
79722
|
})(NativeStateType || (NativeStateType = {}));
|
|
79723
|
+
var GroupType;
|
|
79724
|
+
(function(GroupType3) {
|
|
79725
|
+
GroupType3["UNKNOWN_GroupType"] = "UNKNOWN_GroupType";
|
|
79726
|
+
GroupType3["cssDataTypeItems"] = "cssDataTypeItems";
|
|
79727
|
+
GroupType3["dataItems"] = "dataItems";
|
|
79728
|
+
GroupType3["background"] = "background";
|
|
79729
|
+
GroupType3["margin"] = "margin";
|
|
79730
|
+
GroupType3["padding"] = "padding";
|
|
79731
|
+
GroupType3["border"] = "border";
|
|
79732
|
+
GroupType3["borderTop"] = "borderTop";
|
|
79733
|
+
GroupType3["borderRight"] = "borderRight";
|
|
79734
|
+
GroupType3["borderBottom"] = "borderBottom";
|
|
79735
|
+
GroupType3["borderLeft"] = "borderLeft";
|
|
79736
|
+
GroupType3["borderRadius"] = "borderRadius";
|
|
79737
|
+
GroupType3["borderInlineStart"] = "borderInlineStart";
|
|
79738
|
+
GroupType3["borderInlineEnd"] = "borderInlineEnd";
|
|
79739
|
+
GroupType3["font"] = "font";
|
|
79740
|
+
GroupType3["textDecoration"] = "textDecoration";
|
|
79741
|
+
GroupType3["gap"] = "gap";
|
|
79742
|
+
})(GroupType || (GroupType = {}));
|
|
79556
79743
|
var ContentResizeDirection;
|
|
79557
79744
|
(function(ContentResizeDirection3) {
|
|
79558
79745
|
ContentResizeDirection3["UNKNOWN_ContentResizeDirection"] = "UNKNOWN_ContentResizeDirection";
|
|
@@ -80370,6 +80557,8 @@ var Tag2;
|
|
|
80370
80557
|
Tag3["ADD_TO_CATEGORY"] = "ADD_TO_CATEGORY";
|
|
80371
80558
|
Tag3["MY_BUSINESS"] = "MY_BUSINESS";
|
|
80372
80559
|
Tag3["PIPELINE_LINKED_ENTITY"] = "PIPELINE_LINKED_ENTITY";
|
|
80560
|
+
Tag3["GET_PAID"] = "GET_PAID";
|
|
80561
|
+
Tag3["PIPELINE_CARD_CATALOG_ITEM"] = "PIPELINE_CARD_CATALOG_ITEM";
|
|
80373
80562
|
})(Tag2 || (Tag2 = {}));
|
|
80374
80563
|
var FilterSelectionType2;
|
|
80375
80564
|
(function(FilterSelectionType3) {
|
|
@@ -81437,6 +81626,124 @@ var CssDataType2;
|
|
|
81437
81626
|
CssDataType3["string"] = "string";
|
|
81438
81627
|
CssDataType3["time"] = "time";
|
|
81439
81628
|
})(CssDataType2 || (CssDataType2 = {}));
|
|
81629
|
+
var StyleType2;
|
|
81630
|
+
(function(StyleType3) {
|
|
81631
|
+
StyleType3["UNKNOWN_StyleType"] = "UNKNOWN_StyleType";
|
|
81632
|
+
StyleType3["number"] = "number";
|
|
81633
|
+
StyleType3["string"] = "string";
|
|
81634
|
+
StyleType3["angle"] = "angle";
|
|
81635
|
+
StyleType3["length"] = "length";
|
|
81636
|
+
StyleType3["percentage"] = "percentage";
|
|
81637
|
+
StyleType3["lengthPercentage"] = "lengthPercentage";
|
|
81638
|
+
StyleType3["blendMode"] = "blendMode";
|
|
81639
|
+
StyleType3["customEnum"] = "customEnum";
|
|
81640
|
+
StyleType3["time"] = "time";
|
|
81641
|
+
StyleType3["background"] = "background";
|
|
81642
|
+
StyleType3["backgroundSize"] = "backgroundSize";
|
|
81643
|
+
StyleType3["backgroundColor"] = "backgroundColor";
|
|
81644
|
+
StyleType3["backgroundImage"] = "backgroundImage";
|
|
81645
|
+
StyleType3["backgroundClip"] = "backgroundClip";
|
|
81646
|
+
StyleType3["backgroundOrigin"] = "backgroundOrigin";
|
|
81647
|
+
StyleType3["backgroundPosition"] = "backgroundPosition";
|
|
81648
|
+
StyleType3["backgroundRepeat"] = "backgroundRepeat";
|
|
81649
|
+
StyleType3["backgroundAttachment"] = "backgroundAttachment";
|
|
81650
|
+
StyleType3["margin"] = "margin";
|
|
81651
|
+
StyleType3["marginTop"] = "marginTop";
|
|
81652
|
+
StyleType3["marginRight"] = "marginRight";
|
|
81653
|
+
StyleType3["marginBottom"] = "marginBottom";
|
|
81654
|
+
StyleType3["marginLeft"] = "marginLeft";
|
|
81655
|
+
StyleType3["marginInlineStart"] = "marginInlineStart";
|
|
81656
|
+
StyleType3["marginInlineEnd"] = "marginInlineEnd";
|
|
81657
|
+
StyleType3["padding"] = "padding";
|
|
81658
|
+
StyleType3["paddingTop"] = "paddingTop";
|
|
81659
|
+
StyleType3["paddingRight"] = "paddingRight";
|
|
81660
|
+
StyleType3["paddingBottom"] = "paddingBottom";
|
|
81661
|
+
StyleType3["paddingLeft"] = "paddingLeft";
|
|
81662
|
+
StyleType3["paddingInlineStart"] = "paddingInlineStart";
|
|
81663
|
+
StyleType3["paddingInlineEnd"] = "paddingInlineEnd";
|
|
81664
|
+
StyleType3["border"] = "border";
|
|
81665
|
+
StyleType3["borderWidth"] = "borderWidth";
|
|
81666
|
+
StyleType3["borderStyle"] = "borderStyle";
|
|
81667
|
+
StyleType3["borderColor"] = "borderColor";
|
|
81668
|
+
StyleType3["borderTop"] = "borderTop";
|
|
81669
|
+
StyleType3["borderTopColor"] = "borderTopColor";
|
|
81670
|
+
StyleType3["borderTopWidth"] = "borderTopWidth";
|
|
81671
|
+
StyleType3["borderTopStyle"] = "borderTopStyle";
|
|
81672
|
+
StyleType3["borderRight"] = "borderRight";
|
|
81673
|
+
StyleType3["borderRightColor"] = "borderRightColor";
|
|
81674
|
+
StyleType3["borderRightWidth"] = "borderRightWidth";
|
|
81675
|
+
StyleType3["borderRightStyle"] = "borderRightStyle";
|
|
81676
|
+
StyleType3["borderBottom"] = "borderBottom";
|
|
81677
|
+
StyleType3["borderBottomColor"] = "borderBottomColor";
|
|
81678
|
+
StyleType3["borderBottomWidth"] = "borderBottomWidth";
|
|
81679
|
+
StyleType3["borderBottomStyle"] = "borderBottomStyle";
|
|
81680
|
+
StyleType3["borderLeft"] = "borderLeft";
|
|
81681
|
+
StyleType3["borderLeftColor"] = "borderLeftColor";
|
|
81682
|
+
StyleType3["borderLeftWidth"] = "borderLeftWidth";
|
|
81683
|
+
StyleType3["borderLeftStyle"] = "borderLeftStyle";
|
|
81684
|
+
StyleType3["borderInlineStart"] = "borderInlineStart";
|
|
81685
|
+
StyleType3["borderInlineStartColor"] = "borderInlineStartColor";
|
|
81686
|
+
StyleType3["borderInlineStartWidth"] = "borderInlineStartWidth";
|
|
81687
|
+
StyleType3["borderInlineStartStyle"] = "borderInlineStartStyle";
|
|
81688
|
+
StyleType3["borderInlineEnd"] = "borderInlineEnd";
|
|
81689
|
+
StyleType3["borderInlineEndColor"] = "borderInlineEndColor";
|
|
81690
|
+
StyleType3["borderInlineEndWidth"] = "borderInlineEndWidth";
|
|
81691
|
+
StyleType3["borderInlineEndStyle"] = "borderInlineEndStyle";
|
|
81692
|
+
StyleType3["borderRadius"] = "borderRadius";
|
|
81693
|
+
StyleType3["borderTopLeftRadius"] = "borderTopLeftRadius";
|
|
81694
|
+
StyleType3["borderTopRightRadius"] = "borderTopRightRadius";
|
|
81695
|
+
StyleType3["borderBottomRightRadius"] = "borderBottomRightRadius";
|
|
81696
|
+
StyleType3["borderBottomLeftRadius"] = "borderBottomLeftRadius";
|
|
81697
|
+
StyleType3["borderStartStartRadius"] = "borderStartStartRadius";
|
|
81698
|
+
StyleType3["borderStartEndRadius"] = "borderStartEndRadius";
|
|
81699
|
+
StyleType3["borderEndStartRadius"] = "borderEndStartRadius";
|
|
81700
|
+
StyleType3["borderEndEndRadius"] = "borderEndEndRadius";
|
|
81701
|
+
StyleType3["font"] = "font";
|
|
81702
|
+
StyleType3["fontFamily"] = "fontFamily";
|
|
81703
|
+
StyleType3["fontSize"] = "fontSize";
|
|
81704
|
+
StyleType3["fontStretch"] = "fontStretch";
|
|
81705
|
+
StyleType3["fontStyle"] = "fontStyle";
|
|
81706
|
+
StyleType3["fontVariant"] = "fontVariant";
|
|
81707
|
+
StyleType3["fontWeight"] = "fontWeight";
|
|
81708
|
+
StyleType3["lineHeight"] = "lineHeight";
|
|
81709
|
+
StyleType3["color"] = "color";
|
|
81710
|
+
StyleType3["letterSpacing"] = "letterSpacing";
|
|
81711
|
+
StyleType3["writingMode"] = "writingMode";
|
|
81712
|
+
StyleType3["textAlign"] = "textAlign";
|
|
81713
|
+
StyleType3["textTransform"] = "textTransform";
|
|
81714
|
+
StyleType3["textShadow"] = "textShadow";
|
|
81715
|
+
StyleType3["textOverflow"] = "textOverflow";
|
|
81716
|
+
StyleType3["textIndent"] = "textIndent";
|
|
81717
|
+
StyleType3["textDecoration"] = "textDecoration";
|
|
81718
|
+
StyleType3["textDecorationColor"] = "textDecorationColor";
|
|
81719
|
+
StyleType3["textDecorationLine"] = "textDecorationLine";
|
|
81720
|
+
StyleType3["textDecorationStyle"] = "textDecorationStyle";
|
|
81721
|
+
StyleType3["textDecorationThickness"] = "textDecorationThickness";
|
|
81722
|
+
StyleType3["boxShadow"] = "boxShadow";
|
|
81723
|
+
StyleType3["opacity"] = "opacity";
|
|
81724
|
+
StyleType3["overflow"] = "overflow";
|
|
81725
|
+
StyleType3["display"] = "display";
|
|
81726
|
+
StyleType3["alignSelf"] = "alignSelf";
|
|
81727
|
+
StyleType3["justifyContent"] = "justifyContent";
|
|
81728
|
+
StyleType3["alignItems"] = "alignItems";
|
|
81729
|
+
StyleType3["flexDirection"] = "flexDirection";
|
|
81730
|
+
StyleType3["height"] = "height";
|
|
81731
|
+
StyleType3["width"] = "width";
|
|
81732
|
+
StyleType3["gap"] = "gap";
|
|
81733
|
+
StyleType3["columnGap"] = "columnGap";
|
|
81734
|
+
StyleType3["rowGap"] = "rowGap";
|
|
81735
|
+
StyleType3["filter"] = "filter";
|
|
81736
|
+
StyleType3["backdropFilter"] = "backdropFilter";
|
|
81737
|
+
StyleType3["objectFit"] = "objectFit";
|
|
81738
|
+
StyleType3["objectPosition"] = "objectPosition";
|
|
81739
|
+
StyleType3["mixBlendMode"] = "mixBlendMode";
|
|
81740
|
+
StyleType3["isolation"] = "isolation";
|
|
81741
|
+
StyleType3["stroke"] = "stroke";
|
|
81742
|
+
StyleType3["strokeWidth"] = "strokeWidth";
|
|
81743
|
+
StyleType3["strokeOpacity"] = "strokeOpacity";
|
|
81744
|
+
StyleType3["fill"] = "fill";
|
|
81745
|
+
StyleType3["fillOpacity"] = "fillOpacity";
|
|
81746
|
+
})(StyleType2 || (StyleType2 = {}));
|
|
81440
81747
|
var FilterFunction2;
|
|
81441
81748
|
(function(FilterFunction3) {
|
|
81442
81749
|
FilterFunction3["UNKNOWN_FilterFunctions"] = "UNKNOWN_FilterFunctions";
|
|
@@ -81483,6 +81790,20 @@ var BackgroundModeEnum2;
|
|
|
81483
81790
|
BackgroundModeEnum3["UNKNOWN_BackgroundModeEnum"] = "UNKNOWN_BackgroundModeEnum";
|
|
81484
81791
|
BackgroundModeEnum3["shapeDividerSvg"] = "shapeDividerSvg";
|
|
81485
81792
|
})(BackgroundModeEnum2 || (BackgroundModeEnum2 = {}));
|
|
81793
|
+
var CssDataTypeEnumCssDataType2;
|
|
81794
|
+
(function(CssDataTypeEnumCssDataType3) {
|
|
81795
|
+
CssDataTypeEnumCssDataType3["UNKNOWN_CssDataType"] = "UNKNOWN_CssDataType";
|
|
81796
|
+
CssDataTypeEnumCssDataType3["number"] = "number";
|
|
81797
|
+
CssDataTypeEnumCssDataType3["string"] = "string";
|
|
81798
|
+
CssDataTypeEnumCssDataType3["angle"] = "angle";
|
|
81799
|
+
CssDataTypeEnumCssDataType3["color"] = "color";
|
|
81800
|
+
CssDataTypeEnumCssDataType3["length"] = "length";
|
|
81801
|
+
CssDataTypeEnumCssDataType3["percentage"] = "percentage";
|
|
81802
|
+
CssDataTypeEnumCssDataType3["lengthPercentage"] = "lengthPercentage";
|
|
81803
|
+
CssDataTypeEnumCssDataType3["blendMode"] = "blendMode";
|
|
81804
|
+
CssDataTypeEnumCssDataType3["customEnum"] = "customEnum";
|
|
81805
|
+
CssDataTypeEnumCssDataType3["time"] = "time";
|
|
81806
|
+
})(CssDataTypeEnumCssDataType2 || (CssDataTypeEnumCssDataType2 = {}));
|
|
81486
81807
|
var DataType2;
|
|
81487
81808
|
(function(DataType3) {
|
|
81488
81809
|
DataType3["UNKNOWN_DataType"] = "UNKNOWN_DataType";
|
|
@@ -81588,6 +81909,7 @@ var ActionType2;
|
|
|
81588
81909
|
ActionType3["panel"] = "panel";
|
|
81589
81910
|
ActionType3["forward"] = "forward";
|
|
81590
81911
|
ActionType3["style"] = "style";
|
|
81912
|
+
ActionType3["displayGroup"] = "displayGroup";
|
|
81591
81913
|
})(ActionType2 || (ActionType2 = {}));
|
|
81592
81914
|
var PanelType2;
|
|
81593
81915
|
(function(PanelType3) {
|
|
@@ -81613,6 +81935,20 @@ var SizingType2;
|
|
|
81613
81935
|
SizingType3["stretched"] = "stretched";
|
|
81614
81936
|
SizingType3["pixels"] = "pixels";
|
|
81615
81937
|
})(SizingType2 || (SizingType2 = {}));
|
|
81938
|
+
var BreakpointEnumBreakpoint;
|
|
81939
|
+
(function(BreakpointEnumBreakpoint2) {
|
|
81940
|
+
BreakpointEnumBreakpoint2["UNKNOWN_Breakpoint"] = "UNKNOWN_Breakpoint";
|
|
81941
|
+
BreakpointEnumBreakpoint2["small"] = "small";
|
|
81942
|
+
BreakpointEnumBreakpoint2["large"] = "large";
|
|
81943
|
+
})(BreakpointEnumBreakpoint || (BreakpointEnumBreakpoint = {}));
|
|
81944
|
+
var ContentResizeDirection2;
|
|
81945
|
+
(function(ContentResizeDirection3) {
|
|
81946
|
+
ContentResizeDirection3["UNKNOWN_ContentResizeDirection"] = "UNKNOWN_ContentResizeDirection";
|
|
81947
|
+
ContentResizeDirection3["horizontal"] = "horizontal";
|
|
81948
|
+
ContentResizeDirection3["vertical"] = "vertical";
|
|
81949
|
+
ContentResizeDirection3["horizontalAndVertical"] = "horizontalAndVertical";
|
|
81950
|
+
ContentResizeDirection3["none"] = "none";
|
|
81951
|
+
})(ContentResizeDirection2 || (ContentResizeDirection2 = {}));
|
|
81616
81952
|
var Archetype2;
|
|
81617
81953
|
(function(Archetype3) {
|
|
81618
81954
|
Archetype3["UNKNOWN_Archetype"] = "UNKNOWN_Archetype";
|
|
@@ -81662,14 +81998,26 @@ var NativeStateType2;
|
|
|
81662
81998
|
NativeStateType3["disabled"] = "disabled";
|
|
81663
81999
|
NativeStateType3["invalid"] = "invalid";
|
|
81664
82000
|
})(NativeStateType2 || (NativeStateType2 = {}));
|
|
81665
|
-
var
|
|
81666
|
-
(function(
|
|
81667
|
-
|
|
81668
|
-
|
|
81669
|
-
|
|
81670
|
-
|
|
81671
|
-
|
|
81672
|
-
|
|
82001
|
+
var GroupType2;
|
|
82002
|
+
(function(GroupType3) {
|
|
82003
|
+
GroupType3["UNKNOWN_GroupType"] = "UNKNOWN_GroupType";
|
|
82004
|
+
GroupType3["cssDataTypeItems"] = "cssDataTypeItems";
|
|
82005
|
+
GroupType3["dataItems"] = "dataItems";
|
|
82006
|
+
GroupType3["background"] = "background";
|
|
82007
|
+
GroupType3["margin"] = "margin";
|
|
82008
|
+
GroupType3["padding"] = "padding";
|
|
82009
|
+
GroupType3["border"] = "border";
|
|
82010
|
+
GroupType3["borderTop"] = "borderTop";
|
|
82011
|
+
GroupType3["borderRight"] = "borderRight";
|
|
82012
|
+
GroupType3["borderBottom"] = "borderBottom";
|
|
82013
|
+
GroupType3["borderLeft"] = "borderLeft";
|
|
82014
|
+
GroupType3["borderRadius"] = "borderRadius";
|
|
82015
|
+
GroupType3["borderInlineStart"] = "borderInlineStart";
|
|
82016
|
+
GroupType3["borderInlineEnd"] = "borderInlineEnd";
|
|
82017
|
+
GroupType3["font"] = "font";
|
|
82018
|
+
GroupType3["textDecoration"] = "textDecoration";
|
|
82019
|
+
GroupType3["gap"] = "gap";
|
|
82020
|
+
})(GroupType2 || (GroupType2 = {}));
|
|
81673
82021
|
var InteractionsTrigger2;
|
|
81674
82022
|
(function(InteractionsTrigger3) {
|
|
81675
82023
|
InteractionsTrigger3["UNKNOWN_TRIGGER"] = "UNKNOWN_TRIGGER";
|
|
@@ -81957,14 +82305,19 @@ var appSchema = z.object({
|
|
|
81957
82305
|
appSecrets: appSecretsSchema
|
|
81958
82306
|
})
|
|
81959
82307
|
});
|
|
82308
|
+
var developmentSiteSchema = z.object({
|
|
82309
|
+
id: z.string(),
|
|
82310
|
+
siteName: z.string()
|
|
82311
|
+
}).transform(({ id, siteName }) => ({
|
|
82312
|
+
id,
|
|
82313
|
+
displayName: siteName.replaceAll("-", " "),
|
|
82314
|
+
viewUrl: ""
|
|
82315
|
+
}));
|
|
81960
82316
|
var createDevelopmentSiteSchema = z.object({
|
|
81961
|
-
developmentSite:
|
|
81962
|
-
id: z.string(),
|
|
81963
|
-
siteName: z.string()
|
|
81964
|
-
})
|
|
82317
|
+
developmentSite: developmentSiteSchema
|
|
81965
82318
|
});
|
|
81966
82319
|
var getDevelopmentSitesSchema = z.object({
|
|
81967
|
-
developmentSites: z.array(
|
|
82320
|
+
developmentSites: z.array(developmentSiteSchema)
|
|
81968
82321
|
});
|
|
81969
82322
|
var getDevelopmentSitesLimitSchema = z.object({
|
|
81970
82323
|
limit: z.number()
|
|
@@ -82217,13 +82570,7 @@ var DevCenterClient = class {
|
|
|
82217
82570
|
),
|
|
82218
82571
|
this.retryOptions
|
|
82219
82572
|
);
|
|
82220
|
-
|
|
82221
|
-
const site = {
|
|
82222
|
-
id,
|
|
82223
|
-
displayName: siteName.replaceAll("-", " "),
|
|
82224
|
-
viewUrl: ""
|
|
82225
|
-
};
|
|
82226
|
-
return site;
|
|
82573
|
+
return createDevelopmentSiteSchema.parse(data).developmentSite;
|
|
82227
82574
|
} catch (e2) {
|
|
82228
82575
|
throw new CliError({
|
|
82229
82576
|
code: CliErrorCode.FailedToCreateDevelopmentSite(),
|
|
@@ -82231,13 +82578,13 @@ var DevCenterClient = class {
|
|
|
82231
82578
|
});
|
|
82232
82579
|
}
|
|
82233
82580
|
};
|
|
82234
|
-
|
|
82581
|
+
getDevSites = async () => {
|
|
82235
82582
|
try {
|
|
82236
82583
|
const { data } = await pRetry(
|
|
82237
82584
|
() => this.httpClient.request(getDevelopmentSites({})),
|
|
82238
82585
|
this.retryOptions
|
|
82239
82586
|
);
|
|
82240
|
-
return getDevelopmentSitesSchema.parse(data).developmentSites
|
|
82587
|
+
return getDevelopmentSitesSchema.parse(data).developmentSites;
|
|
82241
82588
|
} catch (e2) {
|
|
82242
82589
|
throw new CliError({
|
|
82243
82590
|
code: CliErrorCode.FailedToGetDevelopmentSites(),
|
|
@@ -82245,6 +82592,14 @@ var DevCenterClient = class {
|
|
|
82245
82592
|
});
|
|
82246
82593
|
}
|
|
82247
82594
|
};
|
|
82595
|
+
getDevSitesCount = async () => {
|
|
82596
|
+
const developmentSites = await this.getDevSites();
|
|
82597
|
+
return developmentSites.length;
|
|
82598
|
+
};
|
|
82599
|
+
getDevSite = async (id) => {
|
|
82600
|
+
const developmentSites = await this.getDevSites();
|
|
82601
|
+
return developmentSites.find((site) => site.id === id) ?? null;
|
|
82602
|
+
};
|
|
82248
82603
|
getDeveloperApps = async () => {
|
|
82249
82604
|
try {
|
|
82250
82605
|
const { data } = await pRetry(
|
|
@@ -82624,8 +82979,8 @@ var CreateAppOrExtendExisting = ({
|
|
|
82624
82979
|
|
|
82625
82980
|
// src/components/Questions/NewAppFlow.tsx
|
|
82626
82981
|
init_esm_shims();
|
|
82627
|
-
var
|
|
82628
|
-
var
|
|
82982
|
+
var import_react107 = __toESM(require_react(), 1);
|
|
82983
|
+
var import_variant37 = __toESM(require_lib(), 1);
|
|
82629
82984
|
|
|
82630
82985
|
// src/components/ChooseAppName.tsx
|
|
82631
82986
|
init_esm_shims();
|
|
@@ -82669,7 +83024,7 @@ var ConfirmPackagePath = ({
|
|
|
82669
83024
|
const { t: t3 } = useTranslation();
|
|
82670
83025
|
const { cliFlowStepAnswered } = useCreateAppBi();
|
|
82671
83026
|
const [cancelled, setCancelled] = (0, import_react99.useState)(false);
|
|
82672
|
-
return /* @__PURE__ */ import_react99.default.createElement(import_react99.default.Fragment, null, /* @__PURE__ */ import_react99.default.createElement(Box_default, { marginLeft: -2 }, /* @__PURE__ */ import_react99.default.createElement(
|
|
83027
|
+
return /* @__PURE__ */ import_react99.default.createElement(import_react99.default.Fragment, null, /* @__PURE__ */ import_react99.default.createElement(Box_default, { marginLeft: -2, marginBottom: 1 }, /* @__PURE__ */ import_react99.default.createElement(
|
|
82673
83028
|
ConfirmInput,
|
|
82674
83029
|
{
|
|
82675
83030
|
label: t3("create_app.confirm_path_message", {
|
|
@@ -82688,7 +83043,7 @@ var ConfirmPackagePath = ({
|
|
|
82688
83043
|
}
|
|
82689
83044
|
}
|
|
82690
83045
|
}
|
|
82691
|
-
)), cancelled && /* @__PURE__ */ import_react99.default.createElement(Box_default, {
|
|
83046
|
+
)), cancelled && /* @__PURE__ */ import_react99.default.createElement(Box_default, { marginBottom: 1 }, /* @__PURE__ */ import_react99.default.createElement(Text2, null, t3("create_app.confirm_path_exit_message"))));
|
|
82692
83047
|
};
|
|
82693
83048
|
|
|
82694
83049
|
// src/components/ChoosePackageName.tsx
|
|
@@ -82895,7 +83250,7 @@ var RegisteringApp = () => {
|
|
|
82895
83250
|
init_esm_shims();
|
|
82896
83251
|
var import_react105 = __toESM(require_react(), 1);
|
|
82897
83252
|
var AppRegistered = ({ appName }) => {
|
|
82898
|
-
return /* @__PURE__ */ import_react105.default.createElement(Box_default, { marginLeft: -2
|
|
83253
|
+
return /* @__PURE__ */ import_react105.default.createElement(Box_default, { marginLeft: -2 }, /* @__PURE__ */ import_react105.default.createElement(Alert, { type: "success" }, /* @__PURE__ */ import_react105.default.createElement(Badge, { skin: "success" }, /* @__PURE__ */ import_react105.default.createElement(Trans2, { i18nKey: "create_app.success" })), " ", /* @__PURE__ */ import_react105.default.createElement(
|
|
82899
83254
|
Trans2,
|
|
82900
83255
|
{
|
|
82901
83256
|
i18nKey: "create_app.create_new.app_registered_successfully",
|
|
@@ -82905,6 +83260,104 @@ var AppRegistered = ({ appName }) => {
|
|
|
82905
83260
|
)));
|
|
82906
83261
|
};
|
|
82907
83262
|
|
|
83263
|
+
// src/components/mcp/ConfigMcp.tsx
|
|
83264
|
+
init_esm_shims();
|
|
83265
|
+
var import_react106 = __toESM(require_react(), 1);
|
|
83266
|
+
var import_variant35 = __toESM(require_lib(), 1);
|
|
83267
|
+
var IdeForMcp = (0, import_variant35.variant)({
|
|
83268
|
+
VsCode: {},
|
|
83269
|
+
Cursor: {}
|
|
83270
|
+
});
|
|
83271
|
+
var ConfigMcp = ({ onSelected }) => {
|
|
83272
|
+
const { t: t3 } = useTranslation();
|
|
83273
|
+
const { cliFlowStepAnswered } = useCreateAppBi();
|
|
83274
|
+
return /* @__PURE__ */ import_react106.default.createElement(
|
|
83275
|
+
SelectInput2,
|
|
83276
|
+
{
|
|
83277
|
+
label: t3("create_app.choose_ide_for_mcp.question"),
|
|
83278
|
+
info: /* @__PURE__ */ import_react106.default.createElement(
|
|
83279
|
+
Trans2,
|
|
83280
|
+
{
|
|
83281
|
+
i18nKey: "create_app.choose_ide_for_mcp.description",
|
|
83282
|
+
components: [
|
|
83283
|
+
/* @__PURE__ */ import_react106.default.createElement(Link, { url: "https://www.wix.com/studio/developers/mcp-server" })
|
|
83284
|
+
]
|
|
83285
|
+
}
|
|
83286
|
+
),
|
|
83287
|
+
options: [
|
|
83288
|
+
{
|
|
83289
|
+
title: t3("create_app.choose_ide_for_mcp.answer.cursor"),
|
|
83290
|
+
key: "cursor",
|
|
83291
|
+
value: IdeForMcp.Cursor()
|
|
83292
|
+
},
|
|
83293
|
+
{
|
|
83294
|
+
title: t3("create_app.choose_ide_for_mcp.answer.vscode"),
|
|
83295
|
+
key: "vscode",
|
|
83296
|
+
value: IdeForMcp.VsCode()
|
|
83297
|
+
},
|
|
83298
|
+
{
|
|
83299
|
+
title: t3("create_app.choose_ide_for_mcp.answer.no"),
|
|
83300
|
+
key: "no",
|
|
83301
|
+
value: void 0
|
|
83302
|
+
}
|
|
83303
|
+
],
|
|
83304
|
+
onSubmit: ({ value: value2 }) => {
|
|
83305
|
+
cliFlowStepAnswered({
|
|
83306
|
+
question: t3("create_app.choose_ide_for_mcp.question"),
|
|
83307
|
+
questionKey: "create_app.choose_ide_for_mcp.question",
|
|
83308
|
+
answer: value2?.type ?? "No"
|
|
83309
|
+
});
|
|
83310
|
+
onSelected(value2);
|
|
83311
|
+
}
|
|
83312
|
+
}
|
|
83313
|
+
);
|
|
83314
|
+
};
|
|
83315
|
+
|
|
83316
|
+
// src/components/mcp/getMcpResult.ts
|
|
83317
|
+
init_esm_shims();
|
|
83318
|
+
var import_variant36 = __toESM(require_lib(), 1);
|
|
83319
|
+
import { join as join12 } from "node:path";
|
|
83320
|
+
var McpConfigResult = (0, import_variant36.variant)({
|
|
83321
|
+
Created: (0, import_variant36.fields)(),
|
|
83322
|
+
Canceled: {}
|
|
83323
|
+
});
|
|
83324
|
+
var getMcpData = ({
|
|
83325
|
+
ideForMcp,
|
|
83326
|
+
packageFolder
|
|
83327
|
+
}) => {
|
|
83328
|
+
const configFolderName = (0, import_variant36.match)(
|
|
83329
|
+
ideForMcp,
|
|
83330
|
+
(0, import_variant36.lookup)({
|
|
83331
|
+
Cursor: ".cursor",
|
|
83332
|
+
VsCode: ".vscode"
|
|
83333
|
+
})
|
|
83334
|
+
);
|
|
83335
|
+
const configFolderPath = join12(packageFolder, configFolderName);
|
|
83336
|
+
const mcpPath = join12(configFolderPath, "mcp.json");
|
|
83337
|
+
return McpConfigResult.Created({
|
|
83338
|
+
mcpPath,
|
|
83339
|
+
ideForMcp,
|
|
83340
|
+
docsUrl: (0, import_variant36.match)(
|
|
83341
|
+
ideForMcp,
|
|
83342
|
+
(0, import_variant36.lookup)({
|
|
83343
|
+
Cursor: "https://docs.cursor.com/context/model-context-protocol",
|
|
83344
|
+
VsCode: "https://code.visualstudio.com/docs/copilot/chat/mcp-servers"
|
|
83345
|
+
})
|
|
83346
|
+
)
|
|
83347
|
+
});
|
|
83348
|
+
};
|
|
83349
|
+
var getMcpResult = ({
|
|
83350
|
+
ideForMcp,
|
|
83351
|
+
targetParentFolder: targetParentFolder2,
|
|
83352
|
+
packageName
|
|
83353
|
+
}) => {
|
|
83354
|
+
const packageFolder = join12(targetParentFolder2, packageName);
|
|
83355
|
+
return ideForMcp ? getMcpData({
|
|
83356
|
+
ideForMcp,
|
|
83357
|
+
packageFolder
|
|
83358
|
+
}) : McpConfigResult.Canceled();
|
|
83359
|
+
};
|
|
83360
|
+
|
|
82908
83361
|
// src/components/Questions/NewAppFlow.tsx
|
|
82909
83362
|
var NewAppFlow = ({
|
|
82910
83363
|
onSubmit,
|
|
@@ -82915,15 +83368,16 @@ var NewAppFlow = ({
|
|
|
82915
83368
|
}) => {
|
|
82916
83369
|
const devCenterClient = useDevCenterClient();
|
|
82917
83370
|
const biLogger = useBiLogger();
|
|
82918
|
-
const [templateData, setTemplateData] = (0,
|
|
83371
|
+
const [templateData, setTemplateData] = (0, import_react107.useState)(
|
|
82919
83372
|
templateFromOptions
|
|
82920
83373
|
);
|
|
82921
|
-
const [appName, setAppName] = (0,
|
|
83374
|
+
const [appName, setAppName] = (0, import_react107.useState)();
|
|
83375
|
+
const [packageName, setPackageName] = (0, import_react107.useState)();
|
|
82922
83376
|
const createAppCallback = useAsyncCallback3(
|
|
82923
|
-
async (_2, { appName: appName2, packageName, template }) => {
|
|
82924
|
-
const { id: appId } = await (0,
|
|
83377
|
+
async (_2, { appName: appName2, packageName: packageName2, template, mcpConfigResult }) => {
|
|
83378
|
+
const { id: appId } = await (0, import_variant37.match)(
|
|
82925
83379
|
template,
|
|
82926
|
-
(0,
|
|
83380
|
+
(0, import_variant37.partial)({
|
|
82927
83381
|
App: ({ payload: payload5 }) => devCenterClient.createAppFromTemplate(
|
|
82928
83382
|
{
|
|
82929
83383
|
name: appName2,
|
|
@@ -82940,7 +83394,8 @@ var NewAppFlow = ({
|
|
|
82940
83394
|
onSubmit({
|
|
82941
83395
|
template,
|
|
82942
83396
|
appData: { appName: appName2, appId },
|
|
82943
|
-
packageName
|
|
83397
|
+
packageName: packageName2,
|
|
83398
|
+
mcpConfigResult
|
|
82944
83399
|
});
|
|
82945
83400
|
return {
|
|
82946
83401
|
appId,
|
|
@@ -82948,52 +83403,74 @@ var NewAppFlow = ({
|
|
|
82948
83403
|
};
|
|
82949
83404
|
}
|
|
82950
83405
|
);
|
|
82951
|
-
const autoCreateApp = (0,
|
|
83406
|
+
const autoCreateApp = (0, import_variant37.isType)(appNameFromOptions, "Provided") && !!templateFromOptions;
|
|
82952
83407
|
useAsync2(async () => {
|
|
82953
83408
|
if (autoCreateApp) {
|
|
82954
83409
|
return createAppCallback.execute({
|
|
82955
83410
|
appName: appNameFromOptions.appName,
|
|
82956
83411
|
packageName: appNameFromOptions.packageName,
|
|
82957
|
-
template: templateFromOptions
|
|
83412
|
+
template: templateFromOptions,
|
|
83413
|
+
mcpConfigResult: McpConfigResult.Canceled()
|
|
82958
83414
|
});
|
|
82959
83415
|
}
|
|
82960
83416
|
}, []);
|
|
82961
|
-
return /* @__PURE__ */
|
|
83417
|
+
return /* @__PURE__ */ import_react107.default.createElement(import_react107.default.Fragment, null, !templateFromOptions && /* @__PURE__ */ import_react107.default.createElement(ChooseTemplateFlow, { onTemplateChoose: setTemplateData }), templateData && !autoCreateApp && /* @__PURE__ */ import_react107.default.createElement(ChooseAppName, { onSubmit: setAppName }), appName && templateData && !autoCreateApp && /* @__PURE__ */ import_react107.default.createElement(
|
|
82962
83418
|
ChoosePackageName,
|
|
82963
83419
|
{
|
|
82964
83420
|
appName,
|
|
82965
83421
|
targetParentFolder: targetParentFolder2,
|
|
82966
83422
|
repoType,
|
|
82967
|
-
onSelected: (
|
|
83423
|
+
onSelected: (userPackageName) => {
|
|
83424
|
+
if ((0, import_variant37.isType)(repoType, RepoType.Monorepo)) {
|
|
83425
|
+
void createAppCallback.execute({
|
|
83426
|
+
appName,
|
|
83427
|
+
packageName: userPackageName,
|
|
83428
|
+
template: templateData,
|
|
83429
|
+
mcpConfigResult: McpConfigResult.Canceled()
|
|
83430
|
+
});
|
|
83431
|
+
} else {
|
|
83432
|
+
setPackageName(userPackageName);
|
|
83433
|
+
}
|
|
83434
|
+
}
|
|
83435
|
+
}
|
|
83436
|
+
), appName && packageName && templateData && !autoCreateApp && /* @__PURE__ */ import_react107.default.createElement(import_react107.default.Fragment, null, /* @__PURE__ */ import_react107.default.createElement(
|
|
83437
|
+
ConfigMcp,
|
|
83438
|
+
{
|
|
83439
|
+
onSelected: (ideForMcp) => {
|
|
82968
83440
|
void createAppCallback.execute({
|
|
82969
83441
|
appName,
|
|
82970
83442
|
packageName,
|
|
82971
|
-
template: templateData
|
|
83443
|
+
template: templateData,
|
|
83444
|
+
mcpConfigResult: getMcpResult({
|
|
83445
|
+
ideForMcp,
|
|
83446
|
+
targetParentFolder: targetParentFolder2,
|
|
83447
|
+
packageName
|
|
83448
|
+
})
|
|
82972
83449
|
});
|
|
82973
83450
|
}
|
|
82974
83451
|
}
|
|
82975
|
-
), (0,
|
|
83452
|
+
)), (0, import_variant37.match)(createAppCallback.status, {
|
|
82976
83453
|
Error: () => null,
|
|
82977
|
-
Loading: () => /* @__PURE__ */
|
|
82978
|
-
Success: ({ result }) => /* @__PURE__ */
|
|
83454
|
+
Loading: () => /* @__PURE__ */ import_react107.default.createElement(RegisteringApp, null),
|
|
83455
|
+
Success: ({ result }) => /* @__PURE__ */ import_react107.default.createElement(AppRegistered, { ...result }),
|
|
82979
83456
|
NotRequested: () => null
|
|
82980
83457
|
}));
|
|
82981
83458
|
};
|
|
82982
83459
|
|
|
82983
83460
|
// src/components/Questions/ExistingAppFlow.tsx
|
|
82984
83461
|
init_esm_shims();
|
|
82985
|
-
var
|
|
83462
|
+
var import_react109 = __toESM(require_react(), 1);
|
|
82986
83463
|
|
|
82987
83464
|
// src/components/ExtendExistingApp.tsx
|
|
82988
83465
|
init_esm_shims();
|
|
82989
|
-
var
|
|
83466
|
+
var import_react108 = __toESM(require_react(), 1);
|
|
82990
83467
|
var ExtendExistingApp = ({
|
|
82991
83468
|
developerApps,
|
|
82992
83469
|
onSelected
|
|
82993
83470
|
}) => {
|
|
82994
83471
|
const { t: t3 } = useTranslation();
|
|
82995
83472
|
const { cliFlowStepAnswered } = useCreateAppBi();
|
|
82996
|
-
return /* @__PURE__ */
|
|
83473
|
+
return /* @__PURE__ */ import_react108.default.createElement(
|
|
82997
83474
|
SelectInput2,
|
|
82998
83475
|
{
|
|
82999
83476
|
label: t3("create_app.extend_existing.select_app.label"),
|
|
@@ -83028,8 +83505,8 @@ var ExistingAppFlow = ({
|
|
|
83028
83505
|
repoType
|
|
83029
83506
|
}) => {
|
|
83030
83507
|
const biLogger = useBiLogger();
|
|
83031
|
-
const [appData, setAppData] = (0,
|
|
83032
|
-
return /* @__PURE__ */
|
|
83508
|
+
const [appData, setAppData] = (0, import_react109.useState)();
|
|
83509
|
+
return /* @__PURE__ */ import_react109.default.createElement(import_react109.default.Fragment, null, /* @__PURE__ */ import_react109.default.createElement(
|
|
83033
83510
|
ExtendExistingApp,
|
|
83034
83511
|
{
|
|
83035
83512
|
developerApps,
|
|
@@ -83040,7 +83517,7 @@ var ExistingAppFlow = ({
|
|
|
83040
83517
|
setAppData(appData2);
|
|
83041
83518
|
}
|
|
83042
83519
|
}
|
|
83043
|
-
), appData && /* @__PURE__ */
|
|
83520
|
+
), appData && /* @__PURE__ */ import_react109.default.createElement(
|
|
83044
83521
|
ChoosePackageName,
|
|
83045
83522
|
{
|
|
83046
83523
|
appName: appData.appName,
|
|
@@ -83050,7 +83527,8 @@ var ExistingAppFlow = ({
|
|
|
83050
83527
|
onSubmit({
|
|
83051
83528
|
appData,
|
|
83052
83529
|
packageName,
|
|
83053
|
-
template: TemplateSource.Default()
|
|
83530
|
+
template: TemplateSource.Default(),
|
|
83531
|
+
mcpConfigResult: McpConfigResult.Canceled()
|
|
83054
83532
|
});
|
|
83055
83533
|
}
|
|
83056
83534
|
}
|
|
@@ -83059,45 +83537,45 @@ var ExistingAppFlow = ({
|
|
|
83059
83537
|
|
|
83060
83538
|
// src/components/StartFromTemplateMessage.tsx
|
|
83061
83539
|
init_esm_shims();
|
|
83062
|
-
var
|
|
83063
|
-
var
|
|
83540
|
+
var import_react110 = __toESM(require_react(), 1);
|
|
83541
|
+
var import_variant38 = __toESM(require_lib(), 1);
|
|
83064
83542
|
var StartFromTemplateMessage = ({
|
|
83065
83543
|
template
|
|
83066
83544
|
}) => {
|
|
83067
|
-
const messageComponent = (0,
|
|
83068
|
-
App: ({ payload: payload5 }) => /* @__PURE__ */
|
|
83545
|
+
const messageComponent = (0, import_variant38.match)(template, {
|
|
83546
|
+
App: ({ payload: payload5 }) => /* @__PURE__ */ import_react110.default.createElement(
|
|
83069
83547
|
Trans2,
|
|
83070
83548
|
{
|
|
83071
83549
|
i18nKey: "create_app.template_is_set_from_options.template_id",
|
|
83072
83550
|
values: {
|
|
83073
83551
|
templateName: payload5.title
|
|
83074
83552
|
},
|
|
83075
|
-
components: [/* @__PURE__ */
|
|
83553
|
+
components: [/* @__PURE__ */ import_react110.default.createElement(Text2, { bold: true })]
|
|
83076
83554
|
}
|
|
83077
83555
|
),
|
|
83078
|
-
GitRepo: ({ url: url2 }) => /* @__PURE__ */
|
|
83556
|
+
GitRepo: ({ url: url2 }) => /* @__PURE__ */ import_react110.default.createElement(
|
|
83079
83557
|
Trans2,
|
|
83080
83558
|
{
|
|
83081
83559
|
i18nKey: "create_app.template_is_set_from_options.git_repository",
|
|
83082
83560
|
values: {
|
|
83083
83561
|
templateRepoUrl: url2
|
|
83084
83562
|
},
|
|
83085
|
-
components: [/* @__PURE__ */
|
|
83563
|
+
components: [/* @__PURE__ */ import_react110.default.createElement(Text2, { bold: true })]
|
|
83086
83564
|
}
|
|
83087
83565
|
),
|
|
83088
|
-
Local: ({ path: path8 }) => /* @__PURE__ */
|
|
83566
|
+
Local: ({ path: path8 }) => /* @__PURE__ */ import_react110.default.createElement(
|
|
83089
83567
|
Trans2,
|
|
83090
83568
|
{
|
|
83091
83569
|
i18nKey: "create_app.template_is_set_from_options.local",
|
|
83092
83570
|
values: {
|
|
83093
83571
|
templatePath: path8
|
|
83094
83572
|
},
|
|
83095
|
-
components: [/* @__PURE__ */
|
|
83573
|
+
components: [/* @__PURE__ */ import_react110.default.createElement(Text2, { bold: true })]
|
|
83096
83574
|
}
|
|
83097
83575
|
),
|
|
83098
83576
|
Default: () => null
|
|
83099
83577
|
});
|
|
83100
|
-
return /* @__PURE__ */
|
|
83578
|
+
return /* @__PURE__ */ import_react110.default.createElement(Box_default, { marginBottom: 1 }, messageComponent);
|
|
83101
83579
|
};
|
|
83102
83580
|
|
|
83103
83581
|
// src/components/Questions/Questions.tsx
|
|
@@ -83111,7 +83589,7 @@ var Questions = ({
|
|
|
83111
83589
|
const devCenterClient = useDevCenterClient();
|
|
83112
83590
|
const { reportError: reportError2 } = useErrorReporter();
|
|
83113
83591
|
const { getDeveloperApps } = useDevCenterClient();
|
|
83114
|
-
const [appCreationFlow, setAppCreationFlow] = (0,
|
|
83592
|
+
const [appCreationFlow, setAppCreationFlow] = (0, import_react111.useState)();
|
|
83115
83593
|
const { status } = useAsync2(async () => {
|
|
83116
83594
|
const { template, appName } = await parseCommandOptions(
|
|
83117
83595
|
targetParentFolder2,
|
|
@@ -83142,14 +83620,14 @@ var Questions = ({
|
|
|
83142
83620
|
};
|
|
83143
83621
|
}
|
|
83144
83622
|
}, []);
|
|
83145
|
-
return (0,
|
|
83623
|
+
return (0, import_variant39.match)(status, {
|
|
83146
83624
|
Error: () => null,
|
|
83147
|
-
Loading: () => /* @__PURE__ */
|
|
83625
|
+
Loading: () => /* @__PURE__ */ import_react111.default.createElement(Spinner2, { text: t3("general.loading") }),
|
|
83148
83626
|
Success: ({
|
|
83149
83627
|
result: { template, appName, developerApps, developerAppsStatus }
|
|
83150
83628
|
}) => {
|
|
83151
83629
|
if (template) {
|
|
83152
|
-
return /* @__PURE__ */
|
|
83630
|
+
return /* @__PURE__ */ import_react111.default.createElement(import_react111.default.Fragment, null, /* @__PURE__ */ import_react111.default.createElement(StartFromTemplateMessage, { template }), /* @__PURE__ */ import_react111.default.createElement(
|
|
83153
83631
|
NewAppFlow,
|
|
83154
83632
|
{
|
|
83155
83633
|
onSubmit,
|
|
@@ -83160,8 +83638,8 @@ var Questions = ({
|
|
|
83160
83638
|
}
|
|
83161
83639
|
));
|
|
83162
83640
|
}
|
|
83163
|
-
if ((0,
|
|
83164
|
-
return /* @__PURE__ */
|
|
83641
|
+
if ((0, import_variant39.isType)(developerAppsStatus, "NoApps")) {
|
|
83642
|
+
return /* @__PURE__ */ import_react111.default.createElement(
|
|
83165
83643
|
NewAppFlow,
|
|
83166
83644
|
{
|
|
83167
83645
|
onSubmit,
|
|
@@ -83170,20 +83648,20 @@ var Questions = ({
|
|
|
83170
83648
|
}
|
|
83171
83649
|
);
|
|
83172
83650
|
}
|
|
83173
|
-
return /* @__PURE__ */
|
|
83651
|
+
return /* @__PURE__ */ import_react111.default.createElement(import_react111.default.Fragment, null, /* @__PURE__ */ import_react111.default.createElement(
|
|
83174
83652
|
CreateAppOrExtendExisting,
|
|
83175
83653
|
{
|
|
83176
83654
|
developerAppsStatus,
|
|
83177
83655
|
onStartCreationFlow: setAppCreationFlow
|
|
83178
83656
|
}
|
|
83179
|
-
), appCreationFlow === "new" && /* @__PURE__ */
|
|
83657
|
+
), appCreationFlow === "new" && /* @__PURE__ */ import_react111.default.createElement(
|
|
83180
83658
|
NewAppFlow,
|
|
83181
83659
|
{
|
|
83182
83660
|
onSubmit,
|
|
83183
83661
|
targetParentFolder: targetParentFolder2,
|
|
83184
83662
|
repoType
|
|
83185
83663
|
}
|
|
83186
|
-
), appCreationFlow === "existing" && /* @__PURE__ */
|
|
83664
|
+
), appCreationFlow === "existing" && /* @__PURE__ */ import_react111.default.createElement(
|
|
83187
83665
|
ExistingAppFlow,
|
|
83188
83666
|
{
|
|
83189
83667
|
developerApps,
|
|
@@ -83198,16 +83676,16 @@ var Questions = ({
|
|
|
83198
83676
|
|
|
83199
83677
|
// src/tasks.ts
|
|
83200
83678
|
init_esm_shims();
|
|
83201
|
-
var
|
|
83679
|
+
var import_variant41 = __toESM(require_lib(), 1);
|
|
83202
83680
|
import { mkdir as mkdir2 } from "node:fs/promises";
|
|
83203
|
-
import { join as
|
|
83681
|
+
import { join as join14 } from "node:path";
|
|
83204
83682
|
|
|
83205
83683
|
// src/services/generator/index.ts
|
|
83206
83684
|
init_esm_shims();
|
|
83207
83685
|
|
|
83208
83686
|
// src/services/generator/generator-service.ts
|
|
83209
83687
|
init_esm_shims();
|
|
83210
|
-
var
|
|
83688
|
+
var import_variant40 = __toESM(require_lib(), 1);
|
|
83211
83689
|
import { randomUUID as randomUUID3 } from "node:crypto";
|
|
83212
83690
|
|
|
83213
83691
|
// ../gena/src/index.ts
|
|
@@ -83281,7 +83759,7 @@ init_esm_shims();
|
|
|
83281
83759
|
|
|
83282
83760
|
// src/services/generator/template-fetcher.ts
|
|
83283
83761
|
init_esm_shims();
|
|
83284
|
-
import { join as
|
|
83762
|
+
import { join as join13 } from "node:path";
|
|
83285
83763
|
import { rm as rm2 } from "node:fs/promises";
|
|
83286
83764
|
|
|
83287
83765
|
// ../../node_modules/tempy/index.js
|
|
@@ -83437,7 +83915,7 @@ async function downloadAndExtractRepo(url2) {
|
|
|
83437
83915
|
const repoDir = temporaryDirectory2({ prefix: "wix-create-app" });
|
|
83438
83916
|
try {
|
|
83439
83917
|
await gitClone(url2, repoDir);
|
|
83440
|
-
await rm2(
|
|
83918
|
+
await rm2(join13(repoDir, ".git"), { recursive: true, force: true });
|
|
83441
83919
|
return repoDir;
|
|
83442
83920
|
} catch (e2) {
|
|
83443
83921
|
throw new CliError({
|
|
@@ -83455,7 +83933,7 @@ async function fetchTemplate(url2, path8 = ".") {
|
|
|
83455
83933
|
});
|
|
83456
83934
|
}
|
|
83457
83935
|
const repoDir = await downloadAndExtractRepo(url2);
|
|
83458
|
-
const templateDirInRepo =
|
|
83936
|
+
const templateDirInRepo = join13(repoDir, path8);
|
|
83459
83937
|
if (!await pathExists(templateDirInRepo)) {
|
|
83460
83938
|
throw new CliError({
|
|
83461
83939
|
code: CliErrorCode.TemplatePathNotFound({ templatePath: path8 }),
|
|
@@ -83475,7 +83953,8 @@ async function generateApp({
|
|
|
83475
83953
|
packageManager,
|
|
83476
83954
|
repoType,
|
|
83477
83955
|
template,
|
|
83478
|
-
templateParams
|
|
83956
|
+
templateParams,
|
|
83957
|
+
ideForMcp
|
|
83479
83958
|
}) {
|
|
83480
83959
|
const model = {
|
|
83481
83960
|
packageName,
|
|
@@ -83489,11 +83968,12 @@ async function generateApp({
|
|
|
83489
83968
|
installCmd: packageManager.getInstallCmd(),
|
|
83490
83969
|
runCmd: packageManager.getRunCmd()
|
|
83491
83970
|
},
|
|
83492
|
-
isMonorepo: (0,
|
|
83971
|
+
isMonorepo: (0, import_variant40.isType)(repoType, RepoType.Monorepo),
|
|
83493
83972
|
templateParams,
|
|
83494
|
-
generatePageID: () => randomUUID3()
|
|
83973
|
+
generatePageID: () => randomUUID3(),
|
|
83974
|
+
ideForMcpType: ideForMcp?.type
|
|
83495
83975
|
};
|
|
83496
|
-
const templateFolder = await (0,
|
|
83976
|
+
const templateFolder = await (0, import_variant40.match)(template, {
|
|
83497
83977
|
App: ({ payload: { cliCloneData } }) => fetchTemplate(cliCloneData.repositoryUrl, cliCloneData.pathInRepository),
|
|
83498
83978
|
GitRepo: ({ url: url2, path: path8 }) => fetchTemplate(url2, path8),
|
|
83499
83979
|
Local: ({ path: path8 }) => path8,
|
|
@@ -83516,9 +83996,10 @@ function getTasks({
|
|
|
83516
83996
|
templateParams,
|
|
83517
83997
|
targetParentFolder: targetParentFolder2,
|
|
83518
83998
|
skipInstall,
|
|
83519
|
-
skipGit
|
|
83999
|
+
skipGit,
|
|
84000
|
+
mcpConfigResult
|
|
83520
84001
|
}, t3) {
|
|
83521
|
-
const packageFolder =
|
|
84002
|
+
const packageFolder = join14(targetParentFolder2, packageName);
|
|
83522
84003
|
const generateProject = async () => {
|
|
83523
84004
|
try {
|
|
83524
84005
|
await mkdir2(packageFolder, { recursive: true });
|
|
@@ -83535,7 +84016,12 @@ function getTasks({
|
|
|
83535
84016
|
packageManager,
|
|
83536
84017
|
repoType,
|
|
83537
84018
|
template,
|
|
83538
|
-
templateParams
|
|
84019
|
+
templateParams,
|
|
84020
|
+
ideForMcp: (0, import_variant41.match)(mcpConfigResult, {
|
|
84021
|
+
Created: ({ ideForMcp }) => ideForMcp,
|
|
84022
|
+
Canceled: () => {
|
|
84023
|
+
}
|
|
84024
|
+
})
|
|
83539
84025
|
});
|
|
83540
84026
|
await packageManager.setup(packageFolder);
|
|
83541
84027
|
};
|
|
@@ -83595,7 +84081,7 @@ function getTasks({
|
|
|
83595
84081
|
successText: t3("create_app.generate_project.git_commit.done")
|
|
83596
84082
|
};
|
|
83597
84083
|
const optionalInstallTask = skipInstall ? [] : [installDependenciesTask];
|
|
83598
|
-
return (0,
|
|
84084
|
+
return (0, import_variant41.match)(repoType, {
|
|
83599
84085
|
None: () => [
|
|
83600
84086
|
generateProjectTask,
|
|
83601
84087
|
...skipGit ? [] : [initializeGitTask],
|
|
@@ -83609,10 +84095,10 @@ function getTasks({
|
|
|
83609
84095
|
|
|
83610
84096
|
// src/components/FinishedSuccessfullyMessage.tsx
|
|
83611
84097
|
init_esm_shims();
|
|
83612
|
-
var
|
|
84098
|
+
var import_react112 = __toESM(require_react(), 1);
|
|
83613
84099
|
var FinishedSuccessfullyMessage = ({ packageName, appData: { appName, appId }, packageManager }) => {
|
|
83614
84100
|
const { t: t3 } = useTranslation();
|
|
83615
|
-
return /* @__PURE__ */
|
|
84101
|
+
return /* @__PURE__ */ import_react112.default.createElement(
|
|
83616
84102
|
Box_default,
|
|
83617
84103
|
{
|
|
83618
84104
|
borderColor: "blue",
|
|
@@ -83622,25 +84108,24 @@ var FinishedSuccessfullyMessage = ({ packageName, appData: { appName, appId }, p
|
|
|
83622
84108
|
paddingX: 3,
|
|
83623
84109
|
gap: 1,
|
|
83624
84110
|
marginLeft: -2,
|
|
83625
|
-
marginTop: 1,
|
|
83626
84111
|
marginBottom: 1
|
|
83627
84112
|
},
|
|
83628
|
-
/* @__PURE__ */
|
|
83629
|
-
/* @__PURE__ */
|
|
84113
|
+
/* @__PURE__ */ import_react112.default.createElement(Box_default, { marginTop: -2, marginLeft: -4 }, /* @__PURE__ */ import_react112.default.createElement(Text2, { skin: "question", bold: true }, t3("create_app.results"), " ")),
|
|
84114
|
+
/* @__PURE__ */ import_react112.default.createElement(Text2, null, /* @__PURE__ */ import_react112.default.createElement(
|
|
83630
84115
|
Trans2,
|
|
83631
84116
|
{
|
|
83632
84117
|
i18nKey: "create_app.generate_project.finished.ready_to_start",
|
|
83633
|
-
components: [/* @__PURE__ */
|
|
84118
|
+
components: [/* @__PURE__ */ import_react112.default.createElement(Text2, { bold: true })],
|
|
83634
84119
|
values: { appName }
|
|
83635
84120
|
}
|
|
83636
84121
|
)),
|
|
83637
|
-
/* @__PURE__ */
|
|
83638
|
-
/* @__PURE__ */
|
|
84122
|
+
/* @__PURE__ */ import_react112.default.createElement(Text2, { bold: true }, t3("create_app.generate_project.finished.next_steps")),
|
|
84123
|
+
/* @__PURE__ */ import_react112.default.createElement(UnorderedList, { gap: 1 }, /* @__PURE__ */ import_react112.default.createElement(UnorderedList.Item, { marker: "\u{1F45F}" }, /* @__PURE__ */ import_react112.default.createElement(Text2, null, t3("create_app.generate_project.finished.run_local_development")), /* @__PURE__ */ import_react112.default.createElement(Text2, { skin: "info" }, `cd ${packageName}`), /* @__PURE__ */ import_react112.default.createElement(Text2, { skin: "info" }, `${packageManager.getRunCmd()} dev`)), /* @__PURE__ */ import_react112.default.createElement(UnorderedList.Item, { marker: "\u{1F3AF}" }, /* @__PURE__ */ import_react112.default.createElement(Text2, null, t3("create_app.generate_project.finished.generate_extensions")), /* @__PURE__ */ import_react112.default.createElement(Text2, { skin: "info" }, `${packageManager.getRunCmd()} generate`)), /* @__PURE__ */ import_react112.default.createElement(UnorderedList.Item, { marker: "\u{1F91D}" }, /* @__PURE__ */ import_react112.default.createElement(
|
|
83639
84124
|
Trans2,
|
|
83640
84125
|
{
|
|
83641
84126
|
i18nKey: "create_app.create_new.app_on_dev_center",
|
|
83642
84127
|
components: [
|
|
83643
|
-
/* @__PURE__ */
|
|
84128
|
+
/* @__PURE__ */ import_react112.default.createElement(
|
|
83644
84129
|
Link,
|
|
83645
84130
|
{
|
|
83646
84131
|
skin: "info",
|
|
@@ -83649,12 +84134,12 @@ var FinishedSuccessfullyMessage = ({ packageName, appData: { appName, appId }, p
|
|
|
83649
84134
|
)
|
|
83650
84135
|
]
|
|
83651
84136
|
}
|
|
83652
|
-
)), /* @__PURE__ */
|
|
84137
|
+
)), /* @__PURE__ */ import_react112.default.createElement(UnorderedList.Item, { marker: /* @__PURE__ */ import_react112.default.createElement(Learn, null) }, /* @__PURE__ */ import_react112.default.createElement(
|
|
83653
84138
|
Trans2,
|
|
83654
84139
|
{
|
|
83655
84140
|
i18nKey: "create_app.generate_project.finished.visit_docs",
|
|
83656
84141
|
components: [
|
|
83657
|
-
/* @__PURE__ */
|
|
84142
|
+
/* @__PURE__ */ import_react112.default.createElement(
|
|
83658
84143
|
Link,
|
|
83659
84144
|
{
|
|
83660
84145
|
skin: "info",
|
|
@@ -83663,12 +84148,12 @@ var FinishedSuccessfullyMessage = ({ packageName, appData: { appName, appId }, p
|
|
|
83663
84148
|
)
|
|
83664
84149
|
]
|
|
83665
84150
|
}
|
|
83666
|
-
)), /* @__PURE__ */
|
|
84151
|
+
)), /* @__PURE__ */ import_react112.default.createElement(UnorderedList.Item, { marker: "\u{1F4AC}" }, /* @__PURE__ */ import_react112.default.createElement(
|
|
83667
84152
|
Trans2,
|
|
83668
84153
|
{
|
|
83669
84154
|
i18nKey: "create_app.generate_project.finished.join_community",
|
|
83670
84155
|
components: [
|
|
83671
|
-
/* @__PURE__ */
|
|
84156
|
+
/* @__PURE__ */ import_react112.default.createElement(Link, { skin: "info", url: "https://discord.gg/wixstudio" })
|
|
83672
84157
|
]
|
|
83673
84158
|
}
|
|
83674
84159
|
)))
|
|
@@ -83677,23 +84162,23 @@ var FinishedSuccessfullyMessage = ({ packageName, appData: { appName, appId }, p
|
|
|
83677
84162
|
|
|
83678
84163
|
// src/components/TaskList.tsx
|
|
83679
84164
|
init_esm_shims();
|
|
83680
|
-
var
|
|
84165
|
+
var import_react113 = __toESM(require_react(), 1);
|
|
83681
84166
|
var TaskList = ({ tasks, totalTaskCount }) => {
|
|
83682
|
-
return /* @__PURE__ */
|
|
84167
|
+
return /* @__PURE__ */ import_react113.default.createElement(import_react113.default.Fragment, null, tasks.map((task, index) => {
|
|
83683
84168
|
const stepper = `[${index + 1}/${totalTaskCount}]`;
|
|
83684
84169
|
const fullText = `${stepper} ${task.text}`;
|
|
83685
84170
|
if (task.status === "running") {
|
|
83686
|
-
return /* @__PURE__ */
|
|
84171
|
+
return /* @__PURE__ */ import_react113.default.createElement(Spinner2, { key: index, text: fullText });
|
|
83687
84172
|
}
|
|
83688
|
-
return /* @__PURE__ */
|
|
84173
|
+
return /* @__PURE__ */ import_react113.default.createElement(Alert, { key: index, type: "success" }, fullText);
|
|
83689
84174
|
}));
|
|
83690
84175
|
};
|
|
83691
84176
|
|
|
83692
84177
|
// src/task-runner.ts
|
|
83693
84178
|
init_esm_shims();
|
|
83694
|
-
var
|
|
83695
|
-
var
|
|
83696
|
-
var TaskRunnerStatus = (0,
|
|
84179
|
+
var import_react114 = __toESM(require_react(), 1);
|
|
84180
|
+
var import_variant42 = __toESM(require_lib(), 1);
|
|
84181
|
+
var TaskRunnerStatus = (0, import_variant42.variant)({
|
|
83697
84182
|
Idle: {},
|
|
83698
84183
|
Running: (runningTasks, totalTaskCount) => {
|
|
83699
84184
|
const taskStatuses = runningTasks.map((task, index) => {
|
|
@@ -83717,7 +84202,7 @@ var TaskRunnerStatus = (0, import_variant40.variant)({
|
|
|
83717
84202
|
}
|
|
83718
84203
|
});
|
|
83719
84204
|
function useTaskRunner() {
|
|
83720
|
-
const [status, setStatus] = (0,
|
|
84205
|
+
const [status, setStatus] = (0, import_react114.useState)(
|
|
83721
84206
|
TaskRunnerStatus.Idle()
|
|
83722
84207
|
);
|
|
83723
84208
|
const { execute } = useAsyncCallback3(async (_2, tasks) => {
|
|
@@ -83735,15 +84220,38 @@ function useTaskRunner() {
|
|
|
83735
84220
|
};
|
|
83736
84221
|
}
|
|
83737
84222
|
|
|
84223
|
+
// src/components/mcp/McpConfigCreated.tsx
|
|
84224
|
+
init_esm_shims();
|
|
84225
|
+
var import_react115 = __toESM(require_react(), 1);
|
|
84226
|
+
var McpConfigCreated = ({
|
|
84227
|
+
mcpPath,
|
|
84228
|
+
docsUrl
|
|
84229
|
+
}) => {
|
|
84230
|
+
return /* @__PURE__ */ import_react115.default.createElement(Box_default, { flexDirection: "column", marginBottom: 1 }, /* @__PURE__ */ import_react115.default.createElement(Box_default, { marginLeft: -2 }, /* @__PURE__ */ import_react115.default.createElement(Alert, { type: "success" }, /* @__PURE__ */ import_react115.default.createElement(Badge, { skin: "success" }, /* @__PURE__ */ import_react115.default.createElement(Trans2, { i18nKey: "create_app.mcp_config_created_badge" })), " ")), /* @__PURE__ */ import_react115.default.createElement(Box_default, { marginTop: 1, flexDirection: "column" }, /* @__PURE__ */ import_react115.default.createElement(Text2, null, /* @__PURE__ */ import_react115.default.createElement(
|
|
84231
|
+
Trans2,
|
|
84232
|
+
{
|
|
84233
|
+
i18nKey: "create_app.mcp_config_created_1",
|
|
84234
|
+
components: [/* @__PURE__ */ import_react115.default.createElement(Text2, { bold: true })],
|
|
84235
|
+
values: { mcpPath }
|
|
84236
|
+
}
|
|
84237
|
+
)), /* @__PURE__ */ import_react115.default.createElement(Text2, null, /* @__PURE__ */ import_react115.default.createElement(Trans2, { i18nKey: "create_app.mcp_config_created_2" })), /* @__PURE__ */ import_react115.default.createElement(Text2, null, /* @__PURE__ */ import_react115.default.createElement(
|
|
84238
|
+
Trans2,
|
|
84239
|
+
{
|
|
84240
|
+
i18nKey: "create_app.mcp_config_created_3",
|
|
84241
|
+
components: [/* @__PURE__ */ import_react115.default.createElement(Link, { skin: "info", url: docsUrl })]
|
|
84242
|
+
}
|
|
84243
|
+
))));
|
|
84244
|
+
};
|
|
84245
|
+
|
|
83738
84246
|
// src/components/CreateAppCommand.tsx
|
|
83739
84247
|
var GenerationProgress = ({ tasks, totalTaskCount }) => {
|
|
83740
84248
|
const { t: t3 } = useTranslation();
|
|
83741
|
-
return /* @__PURE__ */
|
|
84249
|
+
return /* @__PURE__ */ import_react116.default.createElement(import_react116.default.Fragment, null, /* @__PURE__ */ import_react116.default.createElement(Box_default, { marginBottom: 1, marginTop: 1 }, /* @__PURE__ */ import_react116.default.createElement(Text2, null, t3("create_app.generate_project.generating_project"))), /* @__PURE__ */ import_react116.default.createElement(Box_default, { marginBottom: 1, flexDirection: "column" }, /* @__PURE__ */ import_react116.default.createElement(TaskList, { tasks, totalTaskCount })));
|
|
83742
84250
|
};
|
|
83743
84251
|
var CreateAppCommand = ({ userInfo: userInfo2, targetParentFolder: targetParentFolder2, commandOptions }) => {
|
|
83744
84252
|
const { t: t3 } = useTranslation();
|
|
83745
84253
|
const { execute: executeTaskRunner, status: taskRunnerStatus } = useTaskRunner();
|
|
83746
|
-
const [generationData, setGenerationData] = (0,
|
|
84254
|
+
const [generationData, setGenerationData] = (0, import_react116.useState)();
|
|
83747
84255
|
const { status } = useAsync2(async () => {
|
|
83748
84256
|
const repoType = await getRepoType(targetParentFolder2);
|
|
83749
84257
|
const packageManager = await createPackageManager(repoType);
|
|
@@ -83755,11 +84263,11 @@ var CreateAppCommand = ({ userInfo: userInfo2, targetParentFolder: targetParentF
|
|
|
83755
84263
|
const tasks = getTasks(data, t3);
|
|
83756
84264
|
await executeTaskRunner(tasks);
|
|
83757
84265
|
}
|
|
83758
|
-
return (0,
|
|
84266
|
+
return (0, import_variant43.match)(status, {
|
|
83759
84267
|
Error: () => null,
|
|
83760
|
-
Loading: () => /* @__PURE__ */
|
|
84268
|
+
Loading: () => /* @__PURE__ */ import_react116.default.createElement(Spinner2, { text: t3("general.loading") }),
|
|
83761
84269
|
Success: ({ result: { repoType, packageManager } }) => {
|
|
83762
|
-
return /* @__PURE__ */
|
|
84270
|
+
return /* @__PURE__ */ import_react116.default.createElement(
|
|
83763
84271
|
Box_default,
|
|
83764
84272
|
{
|
|
83765
84273
|
flexDirection: "column",
|
|
@@ -83770,8 +84278,8 @@ var CreateAppCommand = ({ userInfo: userInfo2, targetParentFolder: targetParentF
|
|
|
83770
84278
|
borderTop: false,
|
|
83771
84279
|
paddingLeft: 1
|
|
83772
84280
|
},
|
|
83773
|
-
/* @__PURE__ */
|
|
83774
|
-
/* @__PURE__ */
|
|
84281
|
+
/* @__PURE__ */ import_react116.default.createElement(WelcomeMessage, null),
|
|
84282
|
+
/* @__PURE__ */ import_react116.default.createElement(AuthProvider, { userInfo: userInfo2 }, /* @__PURE__ */ import_react116.default.createElement(
|
|
83775
84283
|
Questions,
|
|
83776
84284
|
{
|
|
83777
84285
|
repoType,
|
|
@@ -83788,10 +84296,13 @@ var CreateAppCommand = ({ userInfo: userInfo2, targetParentFolder: targetParentF
|
|
|
83788
84296
|
})
|
|
83789
84297
|
}
|
|
83790
84298
|
)),
|
|
83791
|
-
generationData && (0,
|
|
84299
|
+
generationData && (0, import_variant43.match)(taskRunnerStatus, {
|
|
83792
84300
|
Idle: () => null,
|
|
83793
|
-
Running: (status2) => /* @__PURE__ */
|
|
83794
|
-
Done: (status2) => /* @__PURE__ */
|
|
84301
|
+
Running: (status2) => /* @__PURE__ */ import_react116.default.createElement(GenerationProgress, { ...status2 }),
|
|
84302
|
+
Done: (status2) => /* @__PURE__ */ import_react116.default.createElement(import_react116.default.Fragment, null, /* @__PURE__ */ import_react116.default.createElement(GenerationProgress, { ...status2 }), (0, import_variant43.match)(generationData.mcpConfigResult, {
|
|
84303
|
+
Created: ({ mcpPath, docsUrl }) => /* @__PURE__ */ import_react116.default.createElement(McpConfigCreated, { mcpPath, docsUrl }),
|
|
84304
|
+
Canceled: () => null
|
|
84305
|
+
}), /* @__PURE__ */ import_react116.default.createElement(
|
|
83795
84306
|
FinishedSuccessfullyMessage,
|
|
83796
84307
|
{
|
|
83797
84308
|
packageName: generationData.packageName,
|
|
@@ -83827,6 +84338,15 @@ var messages_default3 = {
|
|
|
83827
84338
|
"create_app.choose_app_creation_source.basic_app.description": "Generate a simple app with a dashboard page",
|
|
83828
84339
|
"create_app.choose_app_creation_source.template.title": "Start from a template",
|
|
83829
84340
|
"create_app.choose_app_creation_source.template.description": "Start with one of our pre-built templates",
|
|
84341
|
+
"create_app.choose_ide_for_mcp.question": "Would you like to configure Wix MCP for your IDE?",
|
|
84342
|
+
"create_app.choose_ide_for_mcp.description": "(<0>read more</0>)",
|
|
84343
|
+
"create_app.choose_ide_for_mcp.answer.vscode": "VS Code",
|
|
84344
|
+
"create_app.choose_ide_for_mcp.answer.cursor": "Cursor",
|
|
84345
|
+
"create_app.choose_ide_for_mcp.answer.no": "No (You always can do it later)",
|
|
84346
|
+
"create_app.mcp_config_created_badge": "MCP Config",
|
|
84347
|
+
"create_app.mcp_config_created_1": "MCP configuration created at <0>{mcpPath}</0>",
|
|
84348
|
+
"create_app.mcp_config_created_2": "Next steps: Activate MCP in your IDE and try Agent mode.",
|
|
84349
|
+
"create_app.mcp_config_created_3": "<0>Read here on how to activate MCP in your IDE</0>",
|
|
83830
84350
|
"create_app.choose_template.title": "Choose the template you want to start with",
|
|
83831
84351
|
"create_app.choose_template.see_templates": "\u{1F4A1} To see how the templates look, and for more information, check out the <0>CLI app templates</0>",
|
|
83832
84352
|
"create_app.create_new.name_of_app.label": "Enter a name for your app",
|
|
@@ -83931,7 +84451,7 @@ var program2 = new Command().name(package_default.name).description("Create Wix
|
|
|
83931
84451
|
};
|
|
83932
84452
|
try {
|
|
83933
84453
|
await render2(
|
|
83934
|
-
/* @__PURE__ */
|
|
84454
|
+
/* @__PURE__ */ import_react117.default.createElement(BiProvider, { value: biLogger }, /* @__PURE__ */ import_react117.default.createElement(ErrorReporterProvider, { value: errorReporter }, /* @__PURE__ */ import_react117.default.createElement(I18nProvider, { messages: messages_default3 }, /* @__PURE__ */ import_react117.default.createElement(
|
|
83935
84455
|
CreateAppCommand,
|
|
83936
84456
|
{
|
|
83937
84457
|
userInfo,
|