@wix/cli-app 1.1.73 → 1.1.75
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/{CreateVersionCommand-FCCW72OR.js → CreateVersionCommand-RQXPDP24.js} +14 -16
- package/build/{CreateVersionCommand-FCCW72OR.js.map → CreateVersionCommand-RQXPDP24.js.map} +1 -1
- package/build/{DevCommand-MEZJSQNF.js → DevCommand-S4Z3WJGP.js} +14 -16
- package/build/{DevCommand-MEZJSQNF.js.map → DevCommand-S4Z3WJGP.js.map} +1 -1
- package/build/{GenerateCommand-2LLGGJP3.js → GenerateCommand-KJFVXKF6.js} +575 -476
- package/build/GenerateCommand-KJFVXKF6.js.map +1 -0
- package/build/{LogsCommand-RX7XJGDW.js → LogsCommand-BIVRFRK5.js} +4 -4
- package/build/PreviewCommand-LVAVWK5X.js +21 -0
- package/build/{ReleaseCommand-I4QRSGS4.js → ReleaseCommand-D44TLKQN.js} +17 -19
- package/build/{ReleaseCommand-I4QRSGS4.js.map → ReleaseCommand-D44TLKQN.js.map} +1 -1
- package/build/{ServeCommand-ELSJTRIC.js → ServeCommand-7CZUCKDQ.js} +15 -17
- package/build/{ServeCommand-ELSJTRIC.js.map → ServeCommand-7CZUCKDQ.js.map} +1 -1
- package/build/{build-DS5D6JSR.js → build-QQOQLG6Q.js} +7 -7
- package/build/{chunk-QEW5QI3A.js → chunk-3R3L4Z4K.js} +3 -3
- package/build/{chunk-QQGP63OH.js → chunk-3T6MWKGJ.js} +3 -3
- package/build/{chunk-7DBU2MOT.js → chunk-3TGCMRM2.js} +3 -2
- package/build/chunk-3TGCMRM2.js.map +1 -0
- package/build/{chunk-CMCLHAKY.js → chunk-5MJT77SF.js} +529 -66
- package/build/{chunk-CMCLHAKY.js.map → chunk-5MJT77SF.js.map} +1 -1
- package/build/{chunk-4T3TWPYN.js → chunk-5V425DYH.js} +2 -2
- package/build/{chunk-7NMRLTE4.js → chunk-ABAJ2G2M.js} +3 -3
- package/build/{chunk-PXS7X4U5.js → chunk-ADIVS46Y.js} +4 -4
- package/build/{chunk-LARBBDM6.js → chunk-C64MJGM6.js} +3 -3
- package/build/{chunk-O333IOVL.js → chunk-FSYOQVCS.js} +60 -12
- package/build/chunk-FSYOQVCS.js.map +1 -0
- package/build/{chunk-FOUN6JMR.js → chunk-GB3SH2IE.js} +3 -3
- package/build/{chunk-2QGU64R5.js → chunk-I3NQFKY6.js} +33 -14
- package/build/{chunk-2QGU64R5.js.map → chunk-I3NQFKY6.js.map} +1 -1
- package/build/{chunk-TSO3L2US.js → chunk-O6IB7IRT.js} +73 -35
- package/build/chunk-O6IB7IRT.js.map +1 -0
- package/build/{chunk-PWHSKMWU.js → chunk-S7FXCJ5N.js} +3 -3
- package/build/{chunk-5SSFYBVB.js → chunk-TSZ32MNC.js} +629 -97
- package/build/chunk-TSZ32MNC.js.map +1 -0
- package/build/{chunk-RTSR3LLH.js → chunk-YEO2M3TJ.js} +5 -7
- package/build/{chunk-RTSR3LLH.js.map → chunk-YEO2M3TJ.js.map} +1 -1
- package/build/{chunk-YQF5FOXN.js → chunk-ZILFZBV3.js} +3 -3
- package/build/{devtools-YPSDP32D.js → devtools-JB2HYTEA.js} +101 -100
- package/build/devtools-JB2HYTEA.js.map +1 -0
- package/build/index.js +38 -30
- package/build/index.js.map +1 -1
- package/build/preview-Q2SJBMOD.js +101 -0
- package/build/preview-Q2SJBMOD.js.map +1 -0
- package/build/{render-command-MZQF2OKS.js → render-command-LPGQHYQY.js} +8 -8
- package/package.json +6 -6
- package/build/GenerateCommand-2LLGGJP3.js.map +0 -1
- package/build/PreviewCommand-R4CKNYGV.js +0 -23
- package/build/chunk-5SSFYBVB.js.map +0 -1
- package/build/chunk-7DBU2MOT.js.map +0 -1
- package/build/chunk-BHATQVOE.js +0 -60
- package/build/chunk-BHATQVOE.js.map +0 -1
- package/build/chunk-N6EVOU72.js +0 -579
- package/build/chunk-N6EVOU72.js.map +0 -1
- package/build/chunk-O333IOVL.js.map +0 -1
- package/build/chunk-TSO3L2US.js.map +0 -1
- package/build/devtools-YPSDP32D.js.map +0 -1
- package/build/preview-RYKMQKPO.js +0 -138
- package/build/preview-RYKMQKPO.js.map +0 -1
- /package/build/{LogsCommand-RX7XJGDW.js.map → LogsCommand-BIVRFRK5.js.map} +0 -0
- /package/build/{PreviewCommand-R4CKNYGV.js.map → PreviewCommand-LVAVWK5X.js.map} +0 -0
- /package/build/{build-DS5D6JSR.js.map → build-QQOQLG6Q.js.map} +0 -0
- /package/build/{chunk-QEW5QI3A.js.map → chunk-3R3L4Z4K.js.map} +0 -0
- /package/build/{chunk-QQGP63OH.js.map → chunk-3T6MWKGJ.js.map} +0 -0
- /package/build/{chunk-4T3TWPYN.js.map → chunk-5V425DYH.js.map} +0 -0
- /package/build/{chunk-7NMRLTE4.js.map → chunk-ABAJ2G2M.js.map} +0 -0
- /package/build/{chunk-PXS7X4U5.js.map → chunk-ADIVS46Y.js.map} +0 -0
- /package/build/{chunk-LARBBDM6.js.map → chunk-C64MJGM6.js.map} +0 -0
- /package/build/{chunk-FOUN6JMR.js.map → chunk-GB3SH2IE.js.map} +0 -0
- /package/build/{chunk-PWHSKMWU.js.map → chunk-S7FXCJ5N.js.map} +0 -0
- /package/build/{chunk-YQF5FOXN.js.map → chunk-ZILFZBV3.js.map} +0 -0
- /package/build/{render-command-MZQF2OKS.js.map → render-command-LPGQHYQY.js.map} +0 -0
|
@@ -11518,7 +11518,7 @@ var init_tslib_es6 = __esm({
|
|
|
11518
11518
|
});
|
|
11519
11519
|
|
|
11520
11520
|
// package.json
|
|
11521
|
-
var version = "1.1.
|
|
11521
|
+
var version = "1.1.75";
|
|
11522
11522
|
|
|
11523
11523
|
// ../cli-error/src/cli-error.ts
|
|
11524
11524
|
init_esm_shims();
|
|
@@ -14019,7 +14019,7 @@ var styles_default = styles2;
|
|
|
14019
14019
|
// ../../node_modules/ink/build/reconciler.js
|
|
14020
14020
|
if (process3.env["DEV"] === "true") {
|
|
14021
14021
|
try {
|
|
14022
|
-
await import("./devtools-
|
|
14022
|
+
await import("./devtools-JB2HYTEA.js");
|
|
14023
14023
|
} catch (error) {
|
|
14024
14024
|
if (error.code === "MODULE_NOT_FOUND") {
|
|
14025
14025
|
console.warn(`
|
|
@@ -20431,16 +20431,32 @@ ZodReadonly.create = (type, params) => {
|
|
|
20431
20431
|
...processCreateParams(params)
|
|
20432
20432
|
});
|
|
20433
20433
|
};
|
|
20434
|
-
function
|
|
20434
|
+
function cleanParams(params, data) {
|
|
20435
|
+
const p = typeof params === "function" ? params(data) : typeof params === "string" ? { message: params } : params;
|
|
20436
|
+
const p2 = typeof p === "string" ? { message: p } : p;
|
|
20437
|
+
return p2;
|
|
20438
|
+
}
|
|
20439
|
+
function custom(check, _params = {}, fatal) {
|
|
20435
20440
|
if (check)
|
|
20436
20441
|
return ZodAny.create().superRefine((data, ctx) => {
|
|
20437
20442
|
var _a2, _b;
|
|
20438
|
-
|
|
20439
|
-
|
|
20440
|
-
|
|
20441
|
-
|
|
20442
|
-
|
|
20443
|
+
const r2 = check(data);
|
|
20444
|
+
if (r2 instanceof Promise) {
|
|
20445
|
+
return r2.then((r3) => {
|
|
20446
|
+
var _a3, _b2;
|
|
20447
|
+
if (!r3) {
|
|
20448
|
+
const params = cleanParams(_params, data);
|
|
20449
|
+
const _fatal = (_b2 = (_a3 = params.fatal) !== null && _a3 !== void 0 ? _a3 : fatal) !== null && _b2 !== void 0 ? _b2 : true;
|
|
20450
|
+
ctx.addIssue({ code: "custom", ...params, fatal: _fatal });
|
|
20451
|
+
}
|
|
20452
|
+
});
|
|
20443
20453
|
}
|
|
20454
|
+
if (!r2) {
|
|
20455
|
+
const params = cleanParams(_params, data);
|
|
20456
|
+
const _fatal = (_b = (_a2 = params.fatal) !== null && _a2 !== void 0 ? _a2 : fatal) !== null && _b !== void 0 ? _b : true;
|
|
20457
|
+
ctx.addIssue({ code: "custom", ...params, fatal: _fatal });
|
|
20458
|
+
}
|
|
20459
|
+
return;
|
|
20444
20460
|
});
|
|
20445
20461
|
return ZodAny.create();
|
|
20446
20462
|
}
|
|
@@ -20771,11 +20787,15 @@ function createRendererToString({ stripAnsi: stripAnsi2 }) {
|
|
|
20771
20787
|
let instance2;
|
|
20772
20788
|
const stdout = new FakeStream({ stripAnsi: stripAnsi2 });
|
|
20773
20789
|
return {
|
|
20790
|
+
waitUntilExit: async () => {
|
|
20791
|
+
return instance2?.waitUntilExit();
|
|
20792
|
+
},
|
|
20774
20793
|
render: (tree) => {
|
|
20794
|
+
const wrappedTree = /* @__PURE__ */ import_react23.default.createElement(ErrorBoundaryWrapper, null, tree);
|
|
20775
20795
|
if (instance2) {
|
|
20776
|
-
instance2.rerender(
|
|
20796
|
+
instance2.rerender(wrappedTree);
|
|
20777
20797
|
} else {
|
|
20778
|
-
instance2 = render_default(
|
|
20798
|
+
instance2 = render_default(wrappedTree, {
|
|
20779
20799
|
stdout,
|
|
20780
20800
|
debug: true,
|
|
20781
20801
|
exitOnCtrlC: false,
|
|
@@ -23216,7 +23236,9 @@ var fixComponentProps = (component, index, translation) => {
|
|
|
23216
23236
|
function Componentized() {
|
|
23217
23237
|
return (0, import_react69.createElement)(import_react69.Fragment, null, comp);
|
|
23218
23238
|
}
|
|
23219
|
-
return (0, import_react69.createElement)(Componentized
|
|
23239
|
+
return (0, import_react69.createElement)(Componentized, {
|
|
23240
|
+
key: componentKey
|
|
23241
|
+
});
|
|
23220
23242
|
};
|
|
23221
23243
|
var generateArrayComponents = (components, translation) => components.map((c2, index) => fixComponentProps(c2, index, translation));
|
|
23222
23244
|
var generateObjectComponents = (components, translation) => {
|
|
@@ -27501,6 +27523,7 @@ var postProcessor = {
|
|
|
27501
27523
|
}
|
|
27502
27524
|
};
|
|
27503
27525
|
var checkedLoadedFor = {};
|
|
27526
|
+
var shouldHandleAsObject = (res) => !isString2(res) && typeof res !== "boolean" && typeof res !== "number";
|
|
27504
27527
|
var Translator = class _Translator extends EventEmitter2 {
|
|
27505
27528
|
constructor(services) {
|
|
27506
27529
|
let options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
@@ -27599,17 +27622,29 @@ var Translator = class _Translator extends EventEmitter2 {
|
|
|
27599
27622
|
let res = resolved?.res;
|
|
27600
27623
|
const resUsedKey = resolved?.usedKey || key;
|
|
27601
27624
|
const resExactUsedKey = resolved?.exactUsedKey || key;
|
|
27602
|
-
const resType = Object.prototype.toString.apply(res);
|
|
27603
27625
|
const noObject = ["[object Number]", "[object Function]", "[object RegExp]"];
|
|
27604
27626
|
const joinArrays = options.joinArrays !== void 0 ? options.joinArrays : this.options.joinArrays;
|
|
27605
27627
|
const handleAsObjectInI18nFormat = !this.i18nFormat || this.i18nFormat.handleAsObject;
|
|
27606
|
-
const
|
|
27607
|
-
|
|
27628
|
+
const needsPluralHandling = options.count !== void 0 && !isString2(options.count);
|
|
27629
|
+
const hasDefaultValue = _Translator.hasDefaultValue(options);
|
|
27630
|
+
const defaultValueSuffix = needsPluralHandling ? this.pluralResolver.getSuffix(lng, options.count, options) : "";
|
|
27631
|
+
const defaultValueSuffixOrdinalFallback = options.ordinal && needsPluralHandling ? this.pluralResolver.getSuffix(lng, options.count, {
|
|
27632
|
+
ordinal: false
|
|
27633
|
+
}) : "";
|
|
27634
|
+
const needsZeroSuffixLookup = needsPluralHandling && !options.ordinal && options.count === 0;
|
|
27635
|
+
const defaultValue = needsZeroSuffixLookup && options[`defaultValue${this.options.pluralSeparator}zero`] || options[`defaultValue${defaultValueSuffix}`] || options[`defaultValue${defaultValueSuffixOrdinalFallback}`] || options.defaultValue;
|
|
27636
|
+
let resForObjHndl = res;
|
|
27637
|
+
if (handleAsObjectInI18nFormat && !res && hasDefaultValue) {
|
|
27638
|
+
resForObjHndl = defaultValue;
|
|
27639
|
+
}
|
|
27640
|
+
const handleAsObject = shouldHandleAsObject(resForObjHndl);
|
|
27641
|
+
const resType = Object.prototype.toString.apply(resForObjHndl);
|
|
27642
|
+
if (handleAsObjectInI18nFormat && resForObjHndl && handleAsObject && noObject.indexOf(resType) < 0 && !(isString2(joinArrays) && Array.isArray(resForObjHndl))) {
|
|
27608
27643
|
if (!options.returnObjects && !this.options.returnObjects) {
|
|
27609
27644
|
if (!this.options.returnedObjectHandler) {
|
|
27610
27645
|
this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
27611
27646
|
}
|
|
27612
|
-
const r2 = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(resUsedKey,
|
|
27647
|
+
const r2 = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(resUsedKey, resForObjHndl, {
|
|
27613
27648
|
...options,
|
|
27614
27649
|
ns: namespaces
|
|
27615
27650
|
}) : `key '${key} (${this.language})' returned an object instead of string.`;
|
|
@@ -27621,20 +27656,31 @@ var Translator = class _Translator extends EventEmitter2 {
|
|
|
27621
27656
|
return r2;
|
|
27622
27657
|
}
|
|
27623
27658
|
if (keySeparator) {
|
|
27624
|
-
const resTypeIsArray = Array.isArray(
|
|
27659
|
+
const resTypeIsArray = Array.isArray(resForObjHndl);
|
|
27625
27660
|
const copy2 = resTypeIsArray ? [] : {};
|
|
27626
27661
|
const newKeyToUse = resTypeIsArray ? resExactUsedKey : resUsedKey;
|
|
27627
|
-
for (const m in
|
|
27628
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
27662
|
+
for (const m in resForObjHndl) {
|
|
27663
|
+
if (Object.prototype.hasOwnProperty.call(resForObjHndl, m)) {
|
|
27629
27664
|
const deepKey = `${newKeyToUse}${keySeparator}${m}`;
|
|
27630
|
-
|
|
27631
|
-
|
|
27632
|
-
|
|
27633
|
-
|
|
27634
|
-
|
|
27635
|
-
|
|
27636
|
-
|
|
27637
|
-
|
|
27665
|
+
if (hasDefaultValue && !res) {
|
|
27666
|
+
copy2[m] = this.translate(deepKey, {
|
|
27667
|
+
...options,
|
|
27668
|
+
defaultValue: shouldHandleAsObject(defaultValue) ? defaultValue[m] : void 0,
|
|
27669
|
+
...{
|
|
27670
|
+
joinArrays: false,
|
|
27671
|
+
ns: namespaces
|
|
27672
|
+
}
|
|
27673
|
+
});
|
|
27674
|
+
} else {
|
|
27675
|
+
copy2[m] = this.translate(deepKey, {
|
|
27676
|
+
...options,
|
|
27677
|
+
...{
|
|
27678
|
+
joinArrays: false,
|
|
27679
|
+
ns: namespaces
|
|
27680
|
+
}
|
|
27681
|
+
});
|
|
27682
|
+
}
|
|
27683
|
+
if (copy2[m] === deepKey) copy2[m] = resForObjHndl[m];
|
|
27638
27684
|
}
|
|
27639
27685
|
}
|
|
27640
27686
|
res = copy2;
|
|
@@ -27645,14 +27691,6 @@ var Translator = class _Translator extends EventEmitter2 {
|
|
|
27645
27691
|
} else {
|
|
27646
27692
|
let usedDefault = false;
|
|
27647
27693
|
let usedKey = false;
|
|
27648
|
-
const needsPluralHandling = options.count !== void 0 && !isString2(options.count);
|
|
27649
|
-
const hasDefaultValue = _Translator.hasDefaultValue(options);
|
|
27650
|
-
const defaultValueSuffix = needsPluralHandling ? this.pluralResolver.getSuffix(lng, options.count, options) : "";
|
|
27651
|
-
const defaultValueSuffixOrdinalFallback = options.ordinal && needsPluralHandling ? this.pluralResolver.getSuffix(lng, options.count, {
|
|
27652
|
-
ordinal: false
|
|
27653
|
-
}) : "";
|
|
27654
|
-
const needsZeroSuffixLookup = needsPluralHandling && !options.ordinal && options.count === 0;
|
|
27655
|
-
const defaultValue = needsZeroSuffixLookup && options[`defaultValue${this.options.pluralSeparator}zero`] || options[`defaultValue${defaultValueSuffix}`] || options[`defaultValue${defaultValueSuffixOrdinalFallback}`] || options.defaultValue;
|
|
27656
27694
|
if (!this.isValidLookup(res) && hasDefaultValue) {
|
|
27657
27695
|
usedDefault = true;
|
|
27658
27696
|
res = defaultValue;
|
|
@@ -29387,4 +29425,4 @@ react-reconciler/cjs/react-reconciler-constants.production.min.js:
|
|
|
29387
29425
|
* LICENSE file in the root directory of this source tree.
|
|
29388
29426
|
*)
|
|
29389
29427
|
*/
|
|
29390
|
-
//# sourceMappingURL=chunk-
|
|
29428
|
+
//# sourceMappingURL=chunk-O6IB7IRT.js.map
|