@wix/cli-app 1.1.73 → 1.1.74
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-6PXETRX5.js} +14 -14
- package/build/{DevCommand-MEZJSQNF.js → DevCommand-575K76BZ.js} +12 -12
- package/build/{GenerateCommand-2LLGGJP3.js → GenerateCommand-NKJI6L6F.js} +7 -7
- package/build/{LogsCommand-RX7XJGDW.js → LogsCommand-LDVXIJRM.js} +4 -4
- package/build/PreviewCommand-PMZTMXBO.js +23 -0
- package/build/{ReleaseCommand-I4QRSGS4.js → ReleaseCommand-3KMQAZC2.js} +15 -15
- package/build/{ServeCommand-ELSJTRIC.js → ServeCommand-JVEHGEQJ.js} +13 -13
- package/build/{build-DS5D6JSR.js → build-LGA2RNYK.js} +7 -7
- package/build/{chunk-4T3TWPYN.js → chunk-2I5H2XRH.js} +2 -2
- package/build/{chunk-FOUN6JMR.js → chunk-4AUIUNWR.js} +3 -3
- package/build/{chunk-7NMRLTE4.js → chunk-5CXN5MQU.js} +3 -3
- package/build/{chunk-QQGP63OH.js → chunk-A2RC7C33.js} +2 -2
- package/build/{chunk-PXS7X4U5.js → chunk-C2J6X76S.js} +4 -4
- package/build/{chunk-5SSFYBVB.js → chunk-D4K6HLR5.js} +7 -7
- package/build/{chunk-RTSR3LLH.js → chunk-ETZUKD7Z.js} +5 -5
- package/build/{chunk-2QGU64R5.js → chunk-HBC2QGBW.js} +3 -3
- package/build/{chunk-CMCLHAKY.js → chunk-KFXL2D65.js} +527 -64
- package/build/{chunk-CMCLHAKY.js.map → chunk-KFXL2D65.js.map} +1 -1
- package/build/{chunk-PWHSKMWU.js → chunk-MGWDHTIY.js} +3 -3
- package/build/{chunk-LARBBDM6.js → chunk-OBKGCJPS.js} +3 -3
- package/build/{chunk-TSO3L2US.js → chunk-UEWHA4N4.js} +42 -26
- package/build/chunk-UEWHA4N4.js.map +1 -0
- package/build/{chunk-QEW5QI3A.js → chunk-UR2P6KAA.js} +3 -3
- package/build/{chunk-YQF5FOXN.js → chunk-XL6K6NL2.js} +3 -3
- package/build/{chunk-N6EVOU72.js → chunk-YJ5YN5VN.js} +5 -5
- package/build/{chunk-BHATQVOE.js → chunk-YLAUVJYG.js} +4 -4
- package/build/{chunk-O333IOVL.js → chunk-YX3VV7BD.js} +14 -9
- package/build/chunk-YX3VV7BD.js.map +1 -0
- package/build/{devtools-YPSDP32D.js → devtools-JB2HYTEA.js} +101 -100
- package/build/devtools-JB2HYTEA.js.map +1 -0
- package/build/index.js +19 -19
- package/build/{preview-RYKMQKPO.js → preview-S2TF6RDS.js} +12 -12
- package/build/{render-command-MZQF2OKS.js → render-command-RYGIULDT.js} +5 -5
- package/package.json +4 -4
- package/build/PreviewCommand-R4CKNYGV.js +0 -23
- 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/{CreateVersionCommand-FCCW72OR.js.map → CreateVersionCommand-6PXETRX5.js.map} +0 -0
- /package/build/{DevCommand-MEZJSQNF.js.map → DevCommand-575K76BZ.js.map} +0 -0
- /package/build/{GenerateCommand-2LLGGJP3.js.map → GenerateCommand-NKJI6L6F.js.map} +0 -0
- /package/build/{LogsCommand-RX7XJGDW.js.map → LogsCommand-LDVXIJRM.js.map} +0 -0
- /package/build/{PreviewCommand-R4CKNYGV.js.map → PreviewCommand-PMZTMXBO.js.map} +0 -0
- /package/build/{ReleaseCommand-I4QRSGS4.js.map → ReleaseCommand-3KMQAZC2.js.map} +0 -0
- /package/build/{ServeCommand-ELSJTRIC.js.map → ServeCommand-JVEHGEQJ.js.map} +0 -0
- /package/build/{build-DS5D6JSR.js.map → build-LGA2RNYK.js.map} +0 -0
- /package/build/{chunk-4T3TWPYN.js.map → chunk-2I5H2XRH.js.map} +0 -0
- /package/build/{chunk-FOUN6JMR.js.map → chunk-4AUIUNWR.js.map} +0 -0
- /package/build/{chunk-7NMRLTE4.js.map → chunk-5CXN5MQU.js.map} +0 -0
- /package/build/{chunk-QQGP63OH.js.map → chunk-A2RC7C33.js.map} +0 -0
- /package/build/{chunk-PXS7X4U5.js.map → chunk-C2J6X76S.js.map} +0 -0
- /package/build/{chunk-5SSFYBVB.js.map → chunk-D4K6HLR5.js.map} +0 -0
- /package/build/{chunk-RTSR3LLH.js.map → chunk-ETZUKD7Z.js.map} +0 -0
- /package/build/{chunk-2QGU64R5.js.map → chunk-HBC2QGBW.js.map} +0 -0
- /package/build/{chunk-PWHSKMWU.js.map → chunk-MGWDHTIY.js.map} +0 -0
- /package/build/{chunk-LARBBDM6.js.map → chunk-OBKGCJPS.js.map} +0 -0
- /package/build/{chunk-QEW5QI3A.js.map → chunk-UR2P6KAA.js.map} +0 -0
- /package/build/{chunk-YQF5FOXN.js.map → chunk-XL6K6NL2.js.map} +0 -0
- /package/build/{chunk-N6EVOU72.js.map → chunk-YJ5YN5VN.js.map} +0 -0
- /package/build/{chunk-BHATQVOE.js.map → chunk-YLAUVJYG.js.map} +0 -0
- /package/build/{preview-RYKMQKPO.js.map → preview-S2TF6RDS.js.map} +0 -0
- /package/build/{render-command-MZQF2OKS.js.map → render-command-RYGIULDT.js.map} +0 -0
|
@@ -12,14 +12,14 @@ import {
|
|
|
12
12
|
useBiLogger,
|
|
13
13
|
useHttpClient,
|
|
14
14
|
wixCliAppsFlowTunnelCreationStatusSrc11Evid5233
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-KFXL2D65.js";
|
|
16
16
|
import {
|
|
17
17
|
CliError,
|
|
18
18
|
CliErrorCode,
|
|
19
19
|
getTestOverrides,
|
|
20
20
|
require_react,
|
|
21
21
|
z
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-UEWHA4N4.js";
|
|
23
23
|
import {
|
|
24
24
|
__commonJS,
|
|
25
25
|
__dirname,
|
|
@@ -894,4 +894,4 @@ init_esm_shims();
|
|
|
894
894
|
export {
|
|
895
895
|
useTunnel
|
|
896
896
|
};
|
|
897
|
-
//# sourceMappingURL=chunk-
|
|
897
|
+
//# sourceMappingURL=chunk-MGWDHTIY.js.map
|
|
@@ -3,12 +3,12 @@ const require = _createRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
wixCliCliCommand,
|
|
5
5
|
wixCliCliCommandStatus
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-KFXL2D65.js";
|
|
7
7
|
import {
|
|
8
8
|
isCliError,
|
|
9
9
|
isCliSystemError,
|
|
10
10
|
require_is_ci
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-UEWHA4N4.js";
|
|
12
12
|
import {
|
|
13
13
|
__toESM,
|
|
14
14
|
init_esm_shims
|
|
@@ -148,4 +148,4 @@ export {
|
|
|
148
148
|
addUserFields,
|
|
149
149
|
reportCommandStartEvent
|
|
150
150
|
};
|
|
151
|
-
//# sourceMappingURL=chunk-
|
|
151
|
+
//# sourceMappingURL=chunk-OBKGCJPS.js.map
|
|
@@ -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.74";
|
|
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(`
|
|
@@ -27501,6 +27501,7 @@ var postProcessor = {
|
|
|
27501
27501
|
}
|
|
27502
27502
|
};
|
|
27503
27503
|
var checkedLoadedFor = {};
|
|
27504
|
+
var shouldHandleAsObject = (res) => !isString2(res) && typeof res !== "boolean" && typeof res !== "number";
|
|
27504
27505
|
var Translator = class _Translator extends EventEmitter2 {
|
|
27505
27506
|
constructor(services) {
|
|
27506
27507
|
let options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
@@ -27599,17 +27600,29 @@ var Translator = class _Translator extends EventEmitter2 {
|
|
|
27599
27600
|
let res = resolved?.res;
|
|
27600
27601
|
const resUsedKey = resolved?.usedKey || key;
|
|
27601
27602
|
const resExactUsedKey = resolved?.exactUsedKey || key;
|
|
27602
|
-
const resType = Object.prototype.toString.apply(res);
|
|
27603
27603
|
const noObject = ["[object Number]", "[object Function]", "[object RegExp]"];
|
|
27604
27604
|
const joinArrays = options.joinArrays !== void 0 ? options.joinArrays : this.options.joinArrays;
|
|
27605
27605
|
const handleAsObjectInI18nFormat = !this.i18nFormat || this.i18nFormat.handleAsObject;
|
|
27606
|
-
const
|
|
27607
|
-
|
|
27606
|
+
const needsPluralHandling = options.count !== void 0 && !isString2(options.count);
|
|
27607
|
+
const hasDefaultValue = _Translator.hasDefaultValue(options);
|
|
27608
|
+
const defaultValueSuffix = needsPluralHandling ? this.pluralResolver.getSuffix(lng, options.count, options) : "";
|
|
27609
|
+
const defaultValueSuffixOrdinalFallback = options.ordinal && needsPluralHandling ? this.pluralResolver.getSuffix(lng, options.count, {
|
|
27610
|
+
ordinal: false
|
|
27611
|
+
}) : "";
|
|
27612
|
+
const needsZeroSuffixLookup = needsPluralHandling && !options.ordinal && options.count === 0;
|
|
27613
|
+
const defaultValue = needsZeroSuffixLookup && options[`defaultValue${this.options.pluralSeparator}zero`] || options[`defaultValue${defaultValueSuffix}`] || options[`defaultValue${defaultValueSuffixOrdinalFallback}`] || options.defaultValue;
|
|
27614
|
+
let resForObjHndl = res;
|
|
27615
|
+
if (handleAsObjectInI18nFormat && !res && hasDefaultValue) {
|
|
27616
|
+
resForObjHndl = defaultValue;
|
|
27617
|
+
}
|
|
27618
|
+
const handleAsObject = shouldHandleAsObject(resForObjHndl);
|
|
27619
|
+
const resType = Object.prototype.toString.apply(resForObjHndl);
|
|
27620
|
+
if (handleAsObjectInI18nFormat && resForObjHndl && handleAsObject && noObject.indexOf(resType) < 0 && !(isString2(joinArrays) && Array.isArray(resForObjHndl))) {
|
|
27608
27621
|
if (!options.returnObjects && !this.options.returnObjects) {
|
|
27609
27622
|
if (!this.options.returnedObjectHandler) {
|
|
27610
27623
|
this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
27611
27624
|
}
|
|
27612
|
-
const r2 = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(resUsedKey,
|
|
27625
|
+
const r2 = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(resUsedKey, resForObjHndl, {
|
|
27613
27626
|
...options,
|
|
27614
27627
|
ns: namespaces
|
|
27615
27628
|
}) : `key '${key} (${this.language})' returned an object instead of string.`;
|
|
@@ -27621,20 +27634,31 @@ var Translator = class _Translator extends EventEmitter2 {
|
|
|
27621
27634
|
return r2;
|
|
27622
27635
|
}
|
|
27623
27636
|
if (keySeparator) {
|
|
27624
|
-
const resTypeIsArray = Array.isArray(
|
|
27637
|
+
const resTypeIsArray = Array.isArray(resForObjHndl);
|
|
27625
27638
|
const copy2 = resTypeIsArray ? [] : {};
|
|
27626
27639
|
const newKeyToUse = resTypeIsArray ? resExactUsedKey : resUsedKey;
|
|
27627
|
-
for (const m in
|
|
27628
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
27640
|
+
for (const m in resForObjHndl) {
|
|
27641
|
+
if (Object.prototype.hasOwnProperty.call(resForObjHndl, m)) {
|
|
27629
27642
|
const deepKey = `${newKeyToUse}${keySeparator}${m}`;
|
|
27630
|
-
|
|
27631
|
-
|
|
27632
|
-
|
|
27633
|
-
|
|
27634
|
-
|
|
27635
|
-
|
|
27636
|
-
|
|
27637
|
-
|
|
27643
|
+
if (hasDefaultValue && !res) {
|
|
27644
|
+
copy2[m] = this.translate(deepKey, {
|
|
27645
|
+
...options,
|
|
27646
|
+
defaultValue: shouldHandleAsObject(defaultValue) ? defaultValue[m] : void 0,
|
|
27647
|
+
...{
|
|
27648
|
+
joinArrays: false,
|
|
27649
|
+
ns: namespaces
|
|
27650
|
+
}
|
|
27651
|
+
});
|
|
27652
|
+
} else {
|
|
27653
|
+
copy2[m] = this.translate(deepKey, {
|
|
27654
|
+
...options,
|
|
27655
|
+
...{
|
|
27656
|
+
joinArrays: false,
|
|
27657
|
+
ns: namespaces
|
|
27658
|
+
}
|
|
27659
|
+
});
|
|
27660
|
+
}
|
|
27661
|
+
if (copy2[m] === deepKey) copy2[m] = resForObjHndl[m];
|
|
27638
27662
|
}
|
|
27639
27663
|
}
|
|
27640
27664
|
res = copy2;
|
|
@@ -27645,14 +27669,6 @@ var Translator = class _Translator extends EventEmitter2 {
|
|
|
27645
27669
|
} else {
|
|
27646
27670
|
let usedDefault = false;
|
|
27647
27671
|
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
27672
|
if (!this.isValidLookup(res) && hasDefaultValue) {
|
|
27657
27673
|
usedDefault = true;
|
|
27658
27674
|
res = defaultValue;
|
|
@@ -29387,4 +29403,4 @@ react-reconciler/cjs/react-reconciler-constants.production.min.js:
|
|
|
29387
29403
|
* LICENSE file in the root directory of this source tree.
|
|
29388
29404
|
*)
|
|
29389
29405
|
*/
|
|
29390
|
-
//# sourceMappingURL=chunk-
|
|
29406
|
+
//# sourceMappingURL=chunk-UEWHA4N4.js.map
|