@wix/cli-app 1.1.58 → 1.1.59
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-NNN5WEDG.js → CreateVersionCommand-6HJGN4WS.js} +16 -16
- package/build/{DevCommand-DTV4QLZX.js → DevCommand-U7PV4HW6.js} +15 -15
- package/build/DevCommand-U7PV4HW6.js.map +1 -0
- package/build/{GenerateCommand-3EILY6GU.js → GenerateCommand-M3T6OD4B.js} +295 -181
- package/build/GenerateCommand-M3T6OD4B.js.map +1 -0
- package/build/{LogsCommand-GBLWWXA4.js → LogsCommand-ECPZQ3LE.js} +4 -4
- package/build/PreviewCommand-ZQ3OUOKW.js +23 -0
- package/build/ReleaseCommand-KLZWNOVY.js +91 -0
- package/build/ReleaseCommand-KLZWNOVY.js.map +1 -0
- package/build/{ServeCommand-HBKGVBCD.js → ServeCommand-I65XXTLM.js} +13 -13
- package/build/{build-NYCCEFPM.js → build-HZ5LVFAS.js} +10 -9
- package/build/build-HZ5LVFAS.js.map +1 -0
- package/build/{chunk-XRPBC4UX.js → chunk-4JDHJDA5.js} +3 -3
- package/build/{chunk-NTTJJSCK.js → chunk-ACN6EZGH.js} +3 -3
- package/build/{chunk-IWJPJJEU.js → chunk-AQKGIDJO.js} +1969 -342
- package/build/chunk-AQKGIDJO.js.map +1 -0
- package/build/{chunk-RFDDKVTR.js → chunk-BNROT2BN.js} +5 -5
- package/build/{chunk-2ROHQF53.js → chunk-DXNFLVQP.js} +477 -484
- package/build/chunk-DXNFLVQP.js.map +1 -0
- package/build/{chunk-PUIMS4NQ.js → chunk-EZLVJJON.js} +3 -3
- package/build/{chunk-DKKXEKW7.js → chunk-FHMCCDCY.js} +3 -3
- package/build/{chunk-P5P6YINI.js → chunk-FMM24YL4.js} +2018 -886
- package/build/chunk-FMM24YL4.js.map +1 -0
- package/build/{chunk-CDB46GX7.js → chunk-IDWDZWLM.js} +2 -2
- package/build/{chunk-MVNY3M6D.js → chunk-OCC6MO6R.js} +5 -5
- package/build/{chunk-UGZFZOEU.js → chunk-PAWIUC26.js} +8 -8
- package/build/{chunk-SE6QML7T.js → chunk-QVGYU6D4.js} +17 -7
- package/build/chunk-QVGYU6D4.js.map +1 -0
- package/build/{chunk-FQ554CIC.js → chunk-QW4WBWJK.js} +3 -3
- package/build/{chunk-ZDKKDXHS.js → chunk-U72IPCQR.js} +3 -3
- package/build/{chunk-TQB6XTPS.js → chunk-UQBZVJDQ.js} +6 -3
- package/build/chunk-UQBZVJDQ.js.map +1 -0
- package/build/{chunk-JSDDG7MC.js → chunk-W4HI7DI3.js} +2 -2
- package/build/{chunk-QVLKHYBX.js → chunk-ZJYRE4BT.js} +3 -3
- package/build/{chunk-XIKZ45R2.js → chunk-ZXHKA32C.js} +56 -12
- package/build/chunk-ZXHKA32C.js.map +1 -0
- package/build/cloudflare-runtime/entry.js +306 -252
- package/build/cloudflare-runtime/getRegisteredExtensions.js +21 -273
- package/build/index.js +444 -134
- package/build/index.js.map +1 -1
- package/build/platform-sdk/chunk-7EYXEF6M.js +2 -0
- package/build/platform-sdk/chunk-7EYXEF6M.js.map +1 -0
- package/build/platform-sdk/chunk-EVF6HSFE.js +2 -0
- package/build/platform-sdk/chunk-EVF6HSFE.js.map +1 -0
- package/build/platform-sdk/chunk-LO6MZPZE.js +2 -0
- package/build/platform-sdk/chunk-LO6MZPZE.js.map +1 -0
- package/build/platform-sdk/dashboard.js +1 -1
- package/build/platform-sdk/dashboard.js.map +1 -1
- package/build/platform-sdk/editor.js +4 -4
- package/build/platform-sdk/editor.js.map +1 -1
- package/build/platform-sdk/site.js +1 -1
- package/build/platform-sdk/site.js.map +1 -1
- package/build/platform-sdk/web-methods.js +2 -0
- package/build/platform-sdk/web-methods.js.map +1 -0
- package/build/{preview-CCEFGOHW.js → preview-FI6WYZUP.js} +13 -13
- package/build/preview-FI6WYZUP.js.map +1 -0
- package/build/{render-command-T2HCJX3F.js → render-command-UKYXN7C7.js} +6 -6
- package/package.json +13 -10
- package/templates/web-method/files/placeholder.ts.ejs +17 -0
- package/build/DevCommand-DTV4QLZX.js.map +0 -1
- package/build/GenerateCommand-3EILY6GU.js.map +0 -1
- package/build/PreviewCommand-A2C52TVM.js +0 -23
- package/build/build-NYCCEFPM.js.map +0 -1
- package/build/chunk-2ROHQF53.js.map +0 -1
- package/build/chunk-IWJPJJEU.js.map +0 -1
- package/build/chunk-P5P6YINI.js.map +0 -1
- package/build/chunk-SE6QML7T.js.map +0 -1
- package/build/chunk-TQB6XTPS.js.map +0 -1
- package/build/chunk-XIKZ45R2.js.map +0 -1
- package/build/platform-sdk/chunk-DGX4CFXG.js +0 -2
- package/build/platform-sdk/chunk-DGX4CFXG.js.map +0 -1
- package/build/platform-sdk/chunk-TN6HYRXL.js +0 -2
- package/build/platform-sdk/chunk-TN6HYRXL.js.map +0 -1
- package/build/preview-CCEFGOHW.js.map +0 -1
- /package/build/{CreateVersionCommand-NNN5WEDG.js.map → CreateVersionCommand-6HJGN4WS.js.map} +0 -0
- /package/build/{LogsCommand-GBLWWXA4.js.map → LogsCommand-ECPZQ3LE.js.map} +0 -0
- /package/build/{PreviewCommand-A2C52TVM.js.map → PreviewCommand-ZQ3OUOKW.js.map} +0 -0
- /package/build/{ServeCommand-HBKGVBCD.js.map → ServeCommand-I65XXTLM.js.map} +0 -0
- /package/build/{chunk-XRPBC4UX.js.map → chunk-4JDHJDA5.js.map} +0 -0
- /package/build/{chunk-NTTJJSCK.js.map → chunk-ACN6EZGH.js.map} +0 -0
- /package/build/{chunk-RFDDKVTR.js.map → chunk-BNROT2BN.js.map} +0 -0
- /package/build/{chunk-PUIMS4NQ.js.map → chunk-EZLVJJON.js.map} +0 -0
- /package/build/{chunk-DKKXEKW7.js.map → chunk-FHMCCDCY.js.map} +0 -0
- /package/build/{chunk-CDB46GX7.js.map → chunk-IDWDZWLM.js.map} +0 -0
- /package/build/{chunk-MVNY3M6D.js.map → chunk-OCC6MO6R.js.map} +0 -0
- /package/build/{chunk-UGZFZOEU.js.map → chunk-PAWIUC26.js.map} +0 -0
- /package/build/{chunk-FQ554CIC.js.map → chunk-QW4WBWJK.js.map} +0 -0
- /package/build/{chunk-ZDKKDXHS.js.map → chunk-U72IPCQR.js.map} +0 -0
- /package/build/{chunk-JSDDG7MC.js.map → chunk-W4HI7DI3.js.map} +0 -0
- /package/build/{chunk-QVLKHYBX.js.map → chunk-ZJYRE4BT.js.map} +0 -0
- /package/build/{render-command-T2HCJX3F.js.map → render-command-UKYXN7C7.js.map} +0 -0
|
@@ -2,20 +2,20 @@ import { createRequire as _createRequire } from 'node:module';
|
|
|
2
2
|
const require = _createRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
createI18nT
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-4JDHJDA5.js";
|
|
6
|
+
import "./chunk-QVGYU6D4.js";
|
|
7
7
|
import {
|
|
8
8
|
useWixCliAppBi
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-EZLVJJON.js";
|
|
10
10
|
import {
|
|
11
11
|
useBackendComponents
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-UQBZVJDQ.js";
|
|
13
13
|
import {
|
|
14
14
|
execaCommand
|
|
15
15
|
} from "./chunk-QZOQAFHK.js";
|
|
16
16
|
import {
|
|
17
17
|
require_baseUniq
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-W4HI7DI3.js";
|
|
19
19
|
import {
|
|
20
20
|
ComponentType,
|
|
21
21
|
DASHBOARD_MENU_PLUGINS_DIR,
|
|
@@ -28,6 +28,7 @@ import {
|
|
|
28
28
|
SITE_PLUGINS_DIR,
|
|
29
29
|
SITE_WIDGETS_DIR,
|
|
30
30
|
ServicePluginTypeToFolderName,
|
|
31
|
+
WEB_METHOD_DIR,
|
|
31
32
|
composeValidations,
|
|
32
33
|
createDashboardRouteValidation,
|
|
33
34
|
createEmbeddedScriptFolderValidation,
|
|
@@ -66,7 +67,7 @@ import {
|
|
|
66
67
|
uuidValidation,
|
|
67
68
|
writeJson,
|
|
68
69
|
writePackageJson
|
|
69
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-FMM24YL4.js";
|
|
70
71
|
import {
|
|
71
72
|
AsyncCallbackStatus,
|
|
72
73
|
Box_default,
|
|
@@ -90,7 +91,7 @@ import {
|
|
|
90
91
|
useAsyncCallback,
|
|
91
92
|
useTranslation,
|
|
92
93
|
z
|
|
93
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-DXNFLVQP.js";
|
|
94
95
|
import {
|
|
95
96
|
__commonJS,
|
|
96
97
|
__dirname,
|
|
@@ -1431,11 +1432,11 @@ var require_lodash = __commonJS({
|
|
|
1431
1432
|
return isFunction(object[key]);
|
|
1432
1433
|
});
|
|
1433
1434
|
}
|
|
1434
|
-
function baseGet(object,
|
|
1435
|
-
|
|
1436
|
-
var index = 0, length =
|
|
1435
|
+
function baseGet(object, path14) {
|
|
1436
|
+
path14 = castPath(path14, object);
|
|
1437
|
+
var index = 0, length = path14.length;
|
|
1437
1438
|
while (object != null && index < length) {
|
|
1438
|
-
object = object[toKey(
|
|
1439
|
+
object = object[toKey(path14[index++])];
|
|
1439
1440
|
}
|
|
1440
1441
|
return index && index == length ? object : undefined2;
|
|
1441
1442
|
}
|
|
@@ -1499,10 +1500,10 @@ var require_lodash = __commonJS({
|
|
|
1499
1500
|
});
|
|
1500
1501
|
return accumulator;
|
|
1501
1502
|
}
|
|
1502
|
-
function baseInvoke(object,
|
|
1503
|
-
|
|
1504
|
-
object = parent(object,
|
|
1505
|
-
var func = object == null ? object : object[toKey(last(
|
|
1503
|
+
function baseInvoke(object, path14, args) {
|
|
1504
|
+
path14 = castPath(path14, object);
|
|
1505
|
+
object = parent(object, path14);
|
|
1506
|
+
var func = object == null ? object : object[toKey(last(path14))];
|
|
1506
1507
|
return func == null ? undefined2 : apply(func, object, args);
|
|
1507
1508
|
}
|
|
1508
1509
|
function baseIsArguments(value) {
|
|
@@ -1658,13 +1659,13 @@ var require_lodash = __commonJS({
|
|
|
1658
1659
|
return object === source || baseIsMatch(object, source, matchData);
|
|
1659
1660
|
};
|
|
1660
1661
|
}
|
|
1661
|
-
function baseMatchesProperty(
|
|
1662
|
-
if (isKey(
|
|
1663
|
-
return matchesStrictComparable(toKey(
|
|
1662
|
+
function baseMatchesProperty(path14, srcValue) {
|
|
1663
|
+
if (isKey(path14) && isStrictComparable(srcValue)) {
|
|
1664
|
+
return matchesStrictComparable(toKey(path14), srcValue);
|
|
1664
1665
|
}
|
|
1665
1666
|
return function(object) {
|
|
1666
|
-
var objValue = get(object,
|
|
1667
|
-
return objValue === undefined2 && objValue === srcValue ? hasIn(object,
|
|
1667
|
+
var objValue = get(object, path14);
|
|
1668
|
+
return objValue === undefined2 && objValue === srcValue ? hasIn(object, path14) : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
|
|
1668
1669
|
};
|
|
1669
1670
|
}
|
|
1670
1671
|
function baseMerge(object, source, srcIndex, customizer, stack) {
|
|
@@ -1761,23 +1762,23 @@ var require_lodash = __commonJS({
|
|
|
1761
1762
|
});
|
|
1762
1763
|
}
|
|
1763
1764
|
function basePick(object, paths) {
|
|
1764
|
-
return basePickBy(object, paths, function(value,
|
|
1765
|
-
return hasIn(object,
|
|
1765
|
+
return basePickBy(object, paths, function(value, path14) {
|
|
1766
|
+
return hasIn(object, path14);
|
|
1766
1767
|
});
|
|
1767
1768
|
}
|
|
1768
1769
|
function basePickBy(object, paths, predicate) {
|
|
1769
1770
|
var index = -1, length = paths.length, result2 = {};
|
|
1770
1771
|
while (++index < length) {
|
|
1771
|
-
var
|
|
1772
|
-
if (predicate(value,
|
|
1773
|
-
baseSet(result2, castPath(
|
|
1772
|
+
var path14 = paths[index], value = baseGet(object, path14);
|
|
1773
|
+
if (predicate(value, path14)) {
|
|
1774
|
+
baseSet(result2, castPath(path14, object), value);
|
|
1774
1775
|
}
|
|
1775
1776
|
}
|
|
1776
1777
|
return result2;
|
|
1777
1778
|
}
|
|
1778
|
-
function basePropertyDeep(
|
|
1779
|
+
function basePropertyDeep(path14) {
|
|
1779
1780
|
return function(object) {
|
|
1780
|
-
return baseGet(object,
|
|
1781
|
+
return baseGet(object, path14);
|
|
1781
1782
|
};
|
|
1782
1783
|
}
|
|
1783
1784
|
function basePullAll(array, values2, iteratee2, comparator) {
|
|
@@ -1851,14 +1852,14 @@ var require_lodash = __commonJS({
|
|
|
1851
1852
|
var array = values(collection);
|
|
1852
1853
|
return shuffleSelf(array, baseClamp(n, 0, array.length));
|
|
1853
1854
|
}
|
|
1854
|
-
function baseSet(object,
|
|
1855
|
+
function baseSet(object, path14, value, customizer) {
|
|
1855
1856
|
if (!isObject(object)) {
|
|
1856
1857
|
return object;
|
|
1857
1858
|
}
|
|
1858
|
-
|
|
1859
|
-
var index = -1, length =
|
|
1859
|
+
path14 = castPath(path14, object);
|
|
1860
|
+
var index = -1, length = path14.length, lastIndex = length - 1, nested = object;
|
|
1860
1861
|
while (nested != null && ++index < length) {
|
|
1861
|
-
var key = toKey(
|
|
1862
|
+
var key = toKey(path14[index]), newValue = value;
|
|
1862
1863
|
if (key === "__proto__" || key === "constructor" || key === "prototype") {
|
|
1863
1864
|
return object;
|
|
1864
1865
|
}
|
|
@@ -1866,7 +1867,7 @@ var require_lodash = __commonJS({
|
|
|
1866
1867
|
var objValue = nested[key];
|
|
1867
1868
|
newValue = customizer ? customizer(objValue, key, nested) : undefined2;
|
|
1868
1869
|
if (newValue === undefined2) {
|
|
1869
|
-
newValue = isObject(objValue) ? objValue : isIndex(
|
|
1870
|
+
newValue = isObject(objValue) ? objValue : isIndex(path14[index + 1]) ? [] : {};
|
|
1870
1871
|
}
|
|
1871
1872
|
}
|
|
1872
1873
|
assignValue(nested, key, newValue);
|
|
@@ -2032,13 +2033,13 @@ var require_lodash = __commonJS({
|
|
|
2032
2033
|
}
|
|
2033
2034
|
return result2;
|
|
2034
2035
|
}
|
|
2035
|
-
function baseUnset(object,
|
|
2036
|
-
|
|
2037
|
-
object = parent(object,
|
|
2038
|
-
return object == null || delete object[toKey(last(
|
|
2036
|
+
function baseUnset(object, path14) {
|
|
2037
|
+
path14 = castPath(path14, object);
|
|
2038
|
+
object = parent(object, path14);
|
|
2039
|
+
return object == null || delete object[toKey(last(path14))];
|
|
2039
2040
|
}
|
|
2040
|
-
function baseUpdate(object,
|
|
2041
|
-
return baseSet(object,
|
|
2041
|
+
function baseUpdate(object, path14, updater, customizer) {
|
|
2042
|
+
return baseSet(object, path14, updater(baseGet(object, path14)), customizer);
|
|
2042
2043
|
}
|
|
2043
2044
|
function baseWhile(array, predicate, isDrop, fromRight) {
|
|
2044
2045
|
var length = array.length, index = fromRight ? length : -1;
|
|
@@ -2918,14 +2919,14 @@ var require_lodash = __commonJS({
|
|
|
2918
2919
|
return { "start": start, "end": end };
|
|
2919
2920
|
}
|
|
2920
2921
|
function getWrapDetails(source) {
|
|
2921
|
-
var
|
|
2922
|
-
return
|
|
2922
|
+
var match24 = source.match(reWrapDetails);
|
|
2923
|
+
return match24 ? match24[1].split(reSplitDetails) : [];
|
|
2923
2924
|
}
|
|
2924
|
-
function hasPath(object,
|
|
2925
|
-
|
|
2926
|
-
var index = -1, length =
|
|
2925
|
+
function hasPath(object, path14, hasFunc) {
|
|
2926
|
+
path14 = castPath(path14, object);
|
|
2927
|
+
var index = -1, length = path14.length, result2 = false;
|
|
2927
2928
|
while (++index < length) {
|
|
2928
|
-
var key = toKey(
|
|
2929
|
+
var key = toKey(path14[index]);
|
|
2929
2930
|
if (!(result2 = object != null && hasFunc(object, key))) {
|
|
2930
2931
|
break;
|
|
2931
2932
|
}
|
|
@@ -3127,8 +3128,8 @@ var require_lodash = __commonJS({
|
|
|
3127
3128
|
return apply(func, this, otherArgs);
|
|
3128
3129
|
};
|
|
3129
3130
|
}
|
|
3130
|
-
function parent(object,
|
|
3131
|
-
return
|
|
3131
|
+
function parent(object, path14) {
|
|
3132
|
+
return path14.length < 2 ? object : baseGet(object, baseSlice(path14, 0, -1));
|
|
3132
3133
|
}
|
|
3133
3134
|
function reorder(array, indexes) {
|
|
3134
3135
|
var arrLength = array.length, length = nativeMin(indexes.length, arrLength), oldArray = copyArray(array);
|
|
@@ -3187,8 +3188,8 @@ var require_lodash = __commonJS({
|
|
|
3187
3188
|
if (string.charCodeAt(0) === 46) {
|
|
3188
3189
|
result2.push("");
|
|
3189
3190
|
}
|
|
3190
|
-
string.replace(rePropName, function(
|
|
3191
|
-
result2.push(quote ? subString.replace(reEscapeChar, "$1") : number ||
|
|
3191
|
+
string.replace(rePropName, function(match24, number, quote, subString) {
|
|
3192
|
+
result2.push(quote ? subString.replace(reEscapeChar, "$1") : number || match24);
|
|
3192
3193
|
});
|
|
3193
3194
|
return result2;
|
|
3194
3195
|
});
|
|
@@ -3405,7 +3406,7 @@ var require_lodash = __commonJS({
|
|
|
3405
3406
|
}
|
|
3406
3407
|
return mapped.length && mapped[0] === arrays[0] ? baseIntersection(mapped, undefined2, comparator) : [];
|
|
3407
3408
|
});
|
|
3408
|
-
function
|
|
3409
|
+
function join8(array, separator) {
|
|
3409
3410
|
return array == null ? "" : nativeJoin.call(array, separator);
|
|
3410
3411
|
}
|
|
3411
3412
|
function last(array) {
|
|
@@ -3763,10 +3764,10 @@ var require_lodash = __commonJS({
|
|
|
3763
3764
|
}
|
|
3764
3765
|
return isString(collection) ? fromIndex <= length && collection.indexOf(value, fromIndex) > -1 : !!length && baseIndexOf(collection, value, fromIndex) > -1;
|
|
3765
3766
|
}
|
|
3766
|
-
var invokeMap = baseRest(function(collection,
|
|
3767
|
-
var index = -1, isFunc = typeof
|
|
3767
|
+
var invokeMap = baseRest(function(collection, path14, args) {
|
|
3768
|
+
var index = -1, isFunc = typeof path14 == "function", result2 = isArrayLike(collection) ? Array2(collection.length) : [];
|
|
3768
3769
|
baseEach(collection, function(value) {
|
|
3769
|
-
result2[++index] = isFunc ? apply(
|
|
3770
|
+
result2[++index] = isFunc ? apply(path14, value, args) : baseInvoke(value, path14, args);
|
|
3770
3771
|
});
|
|
3771
3772
|
return result2;
|
|
3772
3773
|
});
|
|
@@ -4418,15 +4419,15 @@ var require_lodash = __commonJS({
|
|
|
4418
4419
|
function functionsIn(object) {
|
|
4419
4420
|
return object == null ? [] : baseFunctions(object, keysIn(object));
|
|
4420
4421
|
}
|
|
4421
|
-
function get(object,
|
|
4422
|
-
var result2 = object == null ? undefined2 : baseGet(object,
|
|
4422
|
+
function get(object, path14, defaultValue) {
|
|
4423
|
+
var result2 = object == null ? undefined2 : baseGet(object, path14);
|
|
4423
4424
|
return result2 === undefined2 ? defaultValue : result2;
|
|
4424
4425
|
}
|
|
4425
|
-
function has(object,
|
|
4426
|
-
return object != null && hasPath(object,
|
|
4426
|
+
function has(object, path14) {
|
|
4427
|
+
return object != null && hasPath(object, path14, baseHas);
|
|
4427
4428
|
}
|
|
4428
|
-
function hasIn(object,
|
|
4429
|
-
return object != null && hasPath(object,
|
|
4429
|
+
function hasIn(object, path14) {
|
|
4430
|
+
return object != null && hasPath(object, path14, baseHasIn);
|
|
4430
4431
|
}
|
|
4431
4432
|
var invert = createInverter(function(result2, value, key) {
|
|
4432
4433
|
if (value != null && typeof value.toString != "function") {
|
|
@@ -4479,10 +4480,10 @@ var require_lodash = __commonJS({
|
|
|
4479
4480
|
return result2;
|
|
4480
4481
|
}
|
|
4481
4482
|
var isDeep = false;
|
|
4482
|
-
paths = arrayMap(paths, function(
|
|
4483
|
-
|
|
4484
|
-
isDeep || (isDeep =
|
|
4485
|
-
return
|
|
4483
|
+
paths = arrayMap(paths, function(path14) {
|
|
4484
|
+
path14 = castPath(path14, object);
|
|
4485
|
+
isDeep || (isDeep = path14.length > 1);
|
|
4486
|
+
return path14;
|
|
4486
4487
|
});
|
|
4487
4488
|
copyObject(object, getAllKeysIn(object), result2);
|
|
4488
4489
|
if (isDeep) {
|
|
@@ -4508,19 +4509,19 @@ var require_lodash = __commonJS({
|
|
|
4508
4509
|
return [prop];
|
|
4509
4510
|
});
|
|
4510
4511
|
predicate = getIteratee(predicate);
|
|
4511
|
-
return basePickBy(object, props, function(value,
|
|
4512
|
-
return predicate(value,
|
|
4512
|
+
return basePickBy(object, props, function(value, path14) {
|
|
4513
|
+
return predicate(value, path14[0]);
|
|
4513
4514
|
});
|
|
4514
4515
|
}
|
|
4515
|
-
function result(object,
|
|
4516
|
-
|
|
4517
|
-
var index = -1, length =
|
|
4516
|
+
function result(object, path14, defaultValue) {
|
|
4517
|
+
path14 = castPath(path14, object);
|
|
4518
|
+
var index = -1, length = path14.length;
|
|
4518
4519
|
if (!length) {
|
|
4519
4520
|
length = 1;
|
|
4520
4521
|
object = undefined2;
|
|
4521
4522
|
}
|
|
4522
4523
|
while (++index < length) {
|
|
4523
|
-
var value = object == null ? undefined2 : object[toKey(
|
|
4524
|
+
var value = object == null ? undefined2 : object[toKey(path14[index])];
|
|
4524
4525
|
if (value === undefined2) {
|
|
4525
4526
|
index = length;
|
|
4526
4527
|
value = defaultValue;
|
|
@@ -4529,12 +4530,12 @@ var require_lodash = __commonJS({
|
|
|
4529
4530
|
}
|
|
4530
4531
|
return object;
|
|
4531
4532
|
}
|
|
4532
|
-
function set(object,
|
|
4533
|
-
return object == null ? object : baseSet(object,
|
|
4533
|
+
function set(object, path14, value) {
|
|
4534
|
+
return object == null ? object : baseSet(object, path14, value);
|
|
4534
4535
|
}
|
|
4535
|
-
function setWith(object,
|
|
4536
|
+
function setWith(object, path14, value, customizer) {
|
|
4536
4537
|
customizer = typeof customizer == "function" ? customizer : undefined2;
|
|
4537
|
-
return object == null ? object : baseSet(object,
|
|
4538
|
+
return object == null ? object : baseSet(object, path14, value, customizer);
|
|
4538
4539
|
}
|
|
4539
4540
|
var toPairs = createToPairs(keys);
|
|
4540
4541
|
var toPairsIn = createToPairs(keysIn);
|
|
@@ -4556,15 +4557,15 @@ var require_lodash = __commonJS({
|
|
|
4556
4557
|
});
|
|
4557
4558
|
return accumulator;
|
|
4558
4559
|
}
|
|
4559
|
-
function unset(object,
|
|
4560
|
-
return object == null ? true : baseUnset(object,
|
|
4560
|
+
function unset(object, path14) {
|
|
4561
|
+
return object == null ? true : baseUnset(object, path14);
|
|
4561
4562
|
}
|
|
4562
|
-
function update(object,
|
|
4563
|
-
return object == null ? object : baseUpdate(object,
|
|
4563
|
+
function update(object, path14, updater) {
|
|
4564
|
+
return object == null ? object : baseUpdate(object, path14, castFunction(updater));
|
|
4564
4565
|
}
|
|
4565
|
-
function updateWith(object,
|
|
4566
|
+
function updateWith(object, path14, updater, customizer) {
|
|
4566
4567
|
customizer = typeof customizer == "function" ? customizer : undefined2;
|
|
4567
|
-
return object == null ? object : baseUpdate(object,
|
|
4568
|
+
return object == null ? object : baseUpdate(object, path14, castFunction(updater), customizer);
|
|
4568
4569
|
}
|
|
4569
4570
|
function values(object) {
|
|
4570
4571
|
return object == null ? [] : baseValues(object, keys(object));
|
|
@@ -4754,7 +4755,7 @@ var require_lodash = __commonJS({
|
|
|
4754
4755
|
"g"
|
|
4755
4756
|
);
|
|
4756
4757
|
var sourceURL = "//# sourceURL=" + (hasOwnProperty.call(options, "sourceURL") ? (options.sourceURL + "").replace(/\s/g, " ") : "lodash.templateSources[" + ++templateCounter + "]") + "\n";
|
|
4757
|
-
string.replace(reDelimiters, function(
|
|
4758
|
+
string.replace(reDelimiters, function(match24, escapeValue, interpolateValue, esTemplateValue, evaluateValue, offset) {
|
|
4758
4759
|
interpolateValue || (interpolateValue = esTemplateValue);
|
|
4759
4760
|
source += string.slice(index, offset).replace(reUnescapedString, escapeStringChar);
|
|
4760
4761
|
if (escapeValue) {
|
|
@@ -4768,8 +4769,8 @@ var require_lodash = __commonJS({
|
|
|
4768
4769
|
if (interpolateValue) {
|
|
4769
4770
|
source += "' +\n((__t = (" + interpolateValue + ")) == null ? '' : __t) +\n'";
|
|
4770
4771
|
}
|
|
4771
|
-
index = offset +
|
|
4772
|
-
return
|
|
4772
|
+
index = offset + match24.length;
|
|
4773
|
+
return match24;
|
|
4773
4774
|
});
|
|
4774
4775
|
source += "';\n";
|
|
4775
4776
|
var variable = hasOwnProperty.call(options, "variable") && options.variable;
|
|
@@ -4857,13 +4858,13 @@ var require_lodash = __commonJS({
|
|
|
4857
4858
|
}
|
|
4858
4859
|
if (isRegExp(separator)) {
|
|
4859
4860
|
if (string.slice(end).search(separator)) {
|
|
4860
|
-
var
|
|
4861
|
+
var match24, substring = result2;
|
|
4861
4862
|
if (!separator.global) {
|
|
4862
4863
|
separator = RegExp2(separator.source, toString(reFlags.exec(separator)) + "g");
|
|
4863
4864
|
}
|
|
4864
4865
|
separator.lastIndex = 0;
|
|
4865
|
-
while (
|
|
4866
|
-
var newEnd =
|
|
4866
|
+
while (match24 = separator.exec(substring)) {
|
|
4867
|
+
var newEnd = match24.index;
|
|
4867
4868
|
}
|
|
4868
4869
|
result2 = result2.slice(0, newEnd === undefined2 ? end : newEnd);
|
|
4869
4870
|
}
|
|
@@ -4945,17 +4946,17 @@ var require_lodash = __commonJS({
|
|
|
4945
4946
|
function matches(source) {
|
|
4946
4947
|
return baseMatches(baseClone(source, CLONE_DEEP_FLAG));
|
|
4947
4948
|
}
|
|
4948
|
-
function matchesProperty(
|
|
4949
|
-
return baseMatchesProperty(
|
|
4949
|
+
function matchesProperty(path14, srcValue) {
|
|
4950
|
+
return baseMatchesProperty(path14, baseClone(srcValue, CLONE_DEEP_FLAG));
|
|
4950
4951
|
}
|
|
4951
|
-
var method = baseRest(function(
|
|
4952
|
+
var method = baseRest(function(path14, args) {
|
|
4952
4953
|
return function(object) {
|
|
4953
|
-
return baseInvoke(object,
|
|
4954
|
+
return baseInvoke(object, path14, args);
|
|
4954
4955
|
};
|
|
4955
4956
|
});
|
|
4956
4957
|
var methodOf = baseRest(function(object, args) {
|
|
4957
|
-
return function(
|
|
4958
|
-
return baseInvoke(object,
|
|
4958
|
+
return function(path14) {
|
|
4959
|
+
return baseInvoke(object, path14, args);
|
|
4959
4960
|
};
|
|
4960
4961
|
});
|
|
4961
4962
|
function mixin(object, source, options) {
|
|
@@ -5002,12 +5003,12 @@ var require_lodash = __commonJS({
|
|
|
5002
5003
|
var over = createOver(arrayMap);
|
|
5003
5004
|
var overEvery = createOver(arrayEvery);
|
|
5004
5005
|
var overSome = createOver(arraySome);
|
|
5005
|
-
function property(
|
|
5006
|
-
return isKey(
|
|
5006
|
+
function property(path14) {
|
|
5007
|
+
return isKey(path14) ? baseProperty(toKey(path14)) : basePropertyDeep(path14);
|
|
5007
5008
|
}
|
|
5008
5009
|
function propertyOf(object) {
|
|
5009
|
-
return function(
|
|
5010
|
-
return object == null ? undefined2 : baseGet(object,
|
|
5010
|
+
return function(path14) {
|
|
5011
|
+
return object == null ? undefined2 : baseGet(object, path14);
|
|
5011
5012
|
};
|
|
5012
5013
|
}
|
|
5013
5014
|
var range = createRange();
|
|
@@ -5324,7 +5325,7 @@ var require_lodash = __commonJS({
|
|
|
5324
5325
|
lodash.isUndefined = isUndefined;
|
|
5325
5326
|
lodash.isWeakMap = isWeakMap;
|
|
5326
5327
|
lodash.isWeakSet = isWeakSet;
|
|
5327
|
-
lodash.join =
|
|
5328
|
+
lodash.join = join8;
|
|
5328
5329
|
lodash.kebabCase = kebabCase8;
|
|
5329
5330
|
lodash.last = last;
|
|
5330
5331
|
lodash.lastIndexOf = lastIndexOf;
|
|
@@ -5460,12 +5461,12 @@ var require_lodash = __commonJS({
|
|
|
5460
5461
|
LazyWrapper.prototype.findLast = function(predicate) {
|
|
5461
5462
|
return this.reverse().find(predicate);
|
|
5462
5463
|
};
|
|
5463
|
-
LazyWrapper.prototype.invokeMap = baseRest(function(
|
|
5464
|
-
if (typeof
|
|
5464
|
+
LazyWrapper.prototype.invokeMap = baseRest(function(path14, args) {
|
|
5465
|
+
if (typeof path14 == "function") {
|
|
5465
5466
|
return new LazyWrapper(this);
|
|
5466
5467
|
}
|
|
5467
5468
|
return this.map(function(value) {
|
|
5468
|
-
return baseInvoke(value,
|
|
5469
|
+
return baseInvoke(value, path14, args);
|
|
5469
5470
|
});
|
|
5470
5471
|
});
|
|
5471
5472
|
LazyWrapper.prototype.reject = function(predicate) {
|
|
@@ -5685,8 +5686,8 @@ function encode_char(c) {
|
|
|
5685
5686
|
}
|
|
5686
5687
|
};
|
|
5687
5688
|
exports.hyphenToCamel = function(str) {
|
|
5688
|
-
return str.replace(/-[a-z]/g, function(
|
|
5689
|
-
return
|
|
5689
|
+
return str.replace(/-[a-z]/g, function(match24) {
|
|
5690
|
+
return match24[1].toUpperCase();
|
|
5690
5691
|
});
|
|
5691
5692
|
};
|
|
5692
5693
|
exports.createNullProtoObjWherePossible = function() {
|
|
@@ -5770,7 +5771,7 @@ var require_ejs = __commonJS({
|
|
|
5770
5771
|
"use strict";
|
|
5771
5772
|
init_esm_shims();
|
|
5772
5773
|
var fs = __require("fs");
|
|
5773
|
-
var
|
|
5774
|
+
var path14 = __require("path");
|
|
5774
5775
|
var utils = require_utils();
|
|
5775
5776
|
var scopeOptionWarned = false;
|
|
5776
5777
|
var _VERSION_STRING = require_package().version;
|
|
@@ -5801,9 +5802,9 @@ var require_ejs = __commonJS({
|
|
|
5801
5802
|
exports.localsName = _DEFAULT_LOCALS_NAME;
|
|
5802
5803
|
exports.promiseImpl = new Function("return this;")().Promise;
|
|
5803
5804
|
exports.resolveInclude = function(name, filename, isDir) {
|
|
5804
|
-
var dirname =
|
|
5805
|
-
var extname =
|
|
5806
|
-
var resolve3 =
|
|
5805
|
+
var dirname = path14.dirname;
|
|
5806
|
+
var extname = path14.extname;
|
|
5807
|
+
var resolve3 = path14.resolve;
|
|
5807
5808
|
var includePath = resolve3(isDir ? filename : dirname(filename), name);
|
|
5808
5809
|
var ext = extname(name);
|
|
5809
5810
|
if (!ext) {
|
|
@@ -5820,30 +5821,30 @@ var require_ejs = __commonJS({
|
|
|
5820
5821
|
return filePath;
|
|
5821
5822
|
}
|
|
5822
5823
|
}
|
|
5823
|
-
function getIncludePath(
|
|
5824
|
+
function getIncludePath(path15, options) {
|
|
5824
5825
|
var includePath;
|
|
5825
5826
|
var filePath;
|
|
5826
5827
|
var views = options.views;
|
|
5827
|
-
var
|
|
5828
|
-
if (
|
|
5829
|
-
|
|
5828
|
+
var match24 = /^[A-Za-z]+:\\|^\//.exec(path15);
|
|
5829
|
+
if (match24 && match24.length) {
|
|
5830
|
+
path15 = path15.replace(/^\/*/, "");
|
|
5830
5831
|
if (Array.isArray(options.root)) {
|
|
5831
|
-
includePath = resolvePaths(
|
|
5832
|
+
includePath = resolvePaths(path15, options.root);
|
|
5832
5833
|
} else {
|
|
5833
|
-
includePath = exports.resolveInclude(
|
|
5834
|
+
includePath = exports.resolveInclude(path15, options.root || "/", true);
|
|
5834
5835
|
}
|
|
5835
5836
|
} else {
|
|
5836
5837
|
if (options.filename) {
|
|
5837
|
-
filePath = exports.resolveInclude(
|
|
5838
|
+
filePath = exports.resolveInclude(path15, options.filename);
|
|
5838
5839
|
if (fs.existsSync(filePath)) {
|
|
5839
5840
|
includePath = filePath;
|
|
5840
5841
|
}
|
|
5841
5842
|
}
|
|
5842
5843
|
if (!includePath && Array.isArray(views)) {
|
|
5843
|
-
includePath = resolvePaths(
|
|
5844
|
+
includePath = resolvePaths(path15, views);
|
|
5844
5845
|
}
|
|
5845
5846
|
if (!includePath && typeof options.includer !== "function") {
|
|
5846
|
-
throw new Error('Could not find the include file "' + options.escapeFunction(
|
|
5847
|
+
throw new Error('Could not find the include file "' + options.escapeFunction(path15) + '"');
|
|
5847
5848
|
}
|
|
5848
5849
|
}
|
|
5849
5850
|
return includePath;
|
|
@@ -5902,11 +5903,11 @@ var require_ejs = __commonJS({
|
|
|
5902
5903
|
function fileLoader(filePath) {
|
|
5903
5904
|
return exports.fileLoader(filePath);
|
|
5904
5905
|
}
|
|
5905
|
-
function includeFile(
|
|
5906
|
+
function includeFile(path15, options) {
|
|
5906
5907
|
var opts = utils.shallowCopy(utils.createNullProtoObjWherePossible(), options);
|
|
5907
|
-
opts.filename = getIncludePath(
|
|
5908
|
+
opts.filename = getIncludePath(path15, opts);
|
|
5908
5909
|
if (typeof options.includer === "function") {
|
|
5909
|
-
var includerResult = options.includer(
|
|
5910
|
+
var includerResult = options.includer(path15, opts.filename);
|
|
5910
5911
|
if (includerResult) {
|
|
5911
5912
|
if (includerResult.filename) {
|
|
5912
5913
|
opts.filename = includerResult.filename;
|
|
@@ -6141,12 +6142,12 @@ var require_ejs = __commonJS({
|
|
|
6141
6142
|
throw e;
|
|
6142
6143
|
}
|
|
6143
6144
|
var returnedFn = opts.client ? fn : function anonymous(data) {
|
|
6144
|
-
var include = function(
|
|
6145
|
+
var include = function(path15, includeData) {
|
|
6145
6146
|
var d = utils.shallowCopy(utils.createNullProtoObjWherePossible(), data);
|
|
6146
6147
|
if (includeData) {
|
|
6147
6148
|
d = utils.shallowCopy(d, includeData);
|
|
6148
6149
|
}
|
|
6149
|
-
return includeFile(
|
|
6150
|
+
return includeFile(path15, opts)(d);
|
|
6150
6151
|
};
|
|
6151
6152
|
return fn.apply(
|
|
6152
6153
|
opts.context,
|
|
@@ -6155,7 +6156,7 @@ var require_ejs = __commonJS({
|
|
|
6155
6156
|
};
|
|
6156
6157
|
if (opts.filename && typeof Object.defineProperty === "function") {
|
|
6157
6158
|
var filename = opts.filename;
|
|
6158
|
-
var basename2 =
|
|
6159
|
+
var basename2 = path14.basename(filename, path14.extname(filename));
|
|
6159
6160
|
try {
|
|
6160
6161
|
Object.defineProperty(returnedFn, "name", {
|
|
6161
6162
|
value: basename2,
|
|
@@ -7019,31 +7020,31 @@ var require_timestamp = __commonJS({
|
|
|
7019
7020
|
return false;
|
|
7020
7021
|
}
|
|
7021
7022
|
function constructYamlTimestamp(data) {
|
|
7022
|
-
var
|
|
7023
|
-
|
|
7024
|
-
if (
|
|
7025
|
-
if (
|
|
7026
|
-
year = +
|
|
7027
|
-
month = +
|
|
7028
|
-
day = +
|
|
7029
|
-
if (!
|
|
7023
|
+
var match24, year, month, day, hour, minute, second, fraction = 0, delta = null, tz_hour, tz_minute, date;
|
|
7024
|
+
match24 = YAML_DATE_REGEXP.exec(data);
|
|
7025
|
+
if (match24 === null) match24 = YAML_TIMESTAMP_REGEXP.exec(data);
|
|
7026
|
+
if (match24 === null) throw new Error("Date resolve error");
|
|
7027
|
+
year = +match24[1];
|
|
7028
|
+
month = +match24[2] - 1;
|
|
7029
|
+
day = +match24[3];
|
|
7030
|
+
if (!match24[4]) {
|
|
7030
7031
|
return new Date(Date.UTC(year, month, day));
|
|
7031
7032
|
}
|
|
7032
|
-
hour = +
|
|
7033
|
-
minute = +
|
|
7034
|
-
second = +
|
|
7035
|
-
if (
|
|
7036
|
-
fraction =
|
|
7033
|
+
hour = +match24[4];
|
|
7034
|
+
minute = +match24[5];
|
|
7035
|
+
second = +match24[6];
|
|
7036
|
+
if (match24[7]) {
|
|
7037
|
+
fraction = match24[7].slice(0, 3);
|
|
7037
7038
|
while (fraction.length < 3) {
|
|
7038
7039
|
fraction += "0";
|
|
7039
7040
|
}
|
|
7040
7041
|
fraction = +fraction;
|
|
7041
7042
|
}
|
|
7042
|
-
if (
|
|
7043
|
-
tz_hour = +
|
|
7044
|
-
tz_minute = +(
|
|
7043
|
+
if (match24[9]) {
|
|
7044
|
+
tz_hour = +match24[10];
|
|
7045
|
+
tz_minute = +(match24[11] || 0);
|
|
7045
7046
|
delta = (tz_hour * 60 + tz_minute) * 6e4;
|
|
7046
|
-
if (
|
|
7047
|
+
if (match24[9] === "-") delta = -delta;
|
|
7047
7048
|
}
|
|
7048
7049
|
date = new Date(Date.UTC(year, month, day, hour, minute, second, fraction));
|
|
7049
7050
|
if (delta) date.setTime(date.getTime() - delta);
|
|
@@ -7568,19 +7569,19 @@ var require_loader = __commonJS({
|
|
|
7568
7569
|
}
|
|
7569
7570
|
var directiveHandlers = {
|
|
7570
7571
|
YAML: function handleYamlDirective(state, name, args) {
|
|
7571
|
-
var
|
|
7572
|
+
var match24, major, minor;
|
|
7572
7573
|
if (state.version !== null) {
|
|
7573
7574
|
throwError(state, "duplication of %YAML directive");
|
|
7574
7575
|
}
|
|
7575
7576
|
if (args.length !== 1) {
|
|
7576
7577
|
throwError(state, "YAML directive accepts exactly one argument");
|
|
7577
7578
|
}
|
|
7578
|
-
|
|
7579
|
-
if (
|
|
7579
|
+
match24 = /^([0-9]+)\.([0-9]+)$/.exec(args[0]);
|
|
7580
|
+
if (match24 === null) {
|
|
7580
7581
|
throwError(state, "ill-formed argument of the YAML directive");
|
|
7581
7582
|
}
|
|
7582
|
-
major = parseInt(
|
|
7583
|
-
minor = parseInt(
|
|
7583
|
+
major = parseInt(match24[1], 10);
|
|
7584
|
+
minor = parseInt(match24[2], 10);
|
|
7584
7585
|
if (major !== 1) {
|
|
7585
7586
|
throwError(state, "unacceptable YAML version of the document");
|
|
7586
7587
|
}
|
|
@@ -8827,9 +8828,9 @@ var require_dumper = __commonJS({
|
|
|
8827
8828
|
}();
|
|
8828
8829
|
var prevMoreIndented = string[0] === "\n" || string[0] === " ";
|
|
8829
8830
|
var moreIndented;
|
|
8830
|
-
var
|
|
8831
|
-
while (
|
|
8832
|
-
var prefix =
|
|
8831
|
+
var match24;
|
|
8832
|
+
while (match24 = lineRe.exec(string)) {
|
|
8833
|
+
var prefix = match24[1], line = match24[2];
|
|
8833
8834
|
moreIndented = line[0] === " ";
|
|
8834
8835
|
result += prefix + (!prevMoreIndented && !moreIndented && line !== "" ? "\n" : "") + foldLine(line, width);
|
|
8835
8836
|
prevMoreIndented = moreIndented;
|
|
@@ -8839,11 +8840,11 @@ var require_dumper = __commonJS({
|
|
|
8839
8840
|
function foldLine(line, width) {
|
|
8840
8841
|
if (line === "" || line[0] === " ") return line;
|
|
8841
8842
|
var breakRe = / [^ ]/g;
|
|
8842
|
-
var
|
|
8843
|
+
var match24;
|
|
8843
8844
|
var start = 0, end, curr = 0, next = 0;
|
|
8844
8845
|
var result = "";
|
|
8845
|
-
while (
|
|
8846
|
-
next =
|
|
8846
|
+
while (match24 = breakRe.exec(line)) {
|
|
8847
|
+
next = match24.index;
|
|
8847
8848
|
if (next - start > width) {
|
|
8848
8849
|
end = curr > start ? curr : next;
|
|
8849
8850
|
result += "\n" + line.slice(start, end);
|
|
@@ -9180,10 +9181,10 @@ var require_front_matter = __commonJS({
|
|
|
9180
9181
|
};
|
|
9181
9182
|
}
|
|
9182
9183
|
}
|
|
9183
|
-
function computeLocation(
|
|
9184
|
+
function computeLocation(match24, body) {
|
|
9184
9185
|
var line = 1;
|
|
9185
9186
|
var pos = body.indexOf("\n");
|
|
9186
|
-
var offset =
|
|
9187
|
+
var offset = match24.index + match24[0].length;
|
|
9187
9188
|
while (pos !== -1) {
|
|
9188
9189
|
if (pos >= offset) {
|
|
9189
9190
|
return line;
|
|
@@ -9194,8 +9195,8 @@ var require_front_matter = __commonJS({
|
|
|
9194
9195
|
return line;
|
|
9195
9196
|
}
|
|
9196
9197
|
function parse(string, allowUnsafe) {
|
|
9197
|
-
var
|
|
9198
|
-
if (!
|
|
9198
|
+
var match24 = regex.exec(string);
|
|
9199
|
+
if (!match24) {
|
|
9199
9200
|
return {
|
|
9200
9201
|
attributes: {},
|
|
9201
9202
|
body: string,
|
|
@@ -9203,10 +9204,10 @@ var require_front_matter = __commonJS({
|
|
|
9203
9204
|
};
|
|
9204
9205
|
}
|
|
9205
9206
|
var loader = allowUnsafe ? parser.load : parser.safeLoad;
|
|
9206
|
-
var yaml =
|
|
9207
|
+
var yaml = match24[match24.length - 1].replace(/^\s+|\s+$/g, "");
|
|
9207
9208
|
var attributes = loader(yaml) || {};
|
|
9208
|
-
var body = string.replace(
|
|
9209
|
-
var line = computeLocation(
|
|
9209
|
+
var body = string.replace(match24[0], "");
|
|
9210
|
+
var line = computeLocation(match24, string);
|
|
9210
9211
|
return {
|
|
9211
9212
|
attributes,
|
|
9212
9213
|
body,
|
|
@@ -9240,8 +9241,8 @@ init_esm_shims();
|
|
|
9240
9241
|
|
|
9241
9242
|
// src/components/GenerateCommand/GenerateCommand.tsx
|
|
9242
9243
|
init_esm_shims();
|
|
9243
|
-
var
|
|
9244
|
-
var
|
|
9244
|
+
var import_react25 = __toESM(require_react(), 1);
|
|
9245
|
+
var import_variant27 = __toESM(require_lib(), 1);
|
|
9245
9246
|
|
|
9246
9247
|
// src/components/GenerateCommand/dashboad-page/DashboardPage.tsx
|
|
9247
9248
|
init_esm_shims();
|
|
@@ -9317,7 +9318,7 @@ function createServicePluginValidation(servicePlugins, servicePluginType) {
|
|
|
9317
9318
|
"Plugin name must be unique"
|
|
9318
9319
|
],
|
|
9319
9320
|
[
|
|
9320
|
-
(
|
|
9321
|
+
(path14) => path14.length < 20,
|
|
9321
9322
|
"Plugin name must be shorter than 20 characters"
|
|
9322
9323
|
],
|
|
9323
9324
|
[
|
|
@@ -9355,8 +9356,8 @@ async function generator(opts) {
|
|
|
9355
9356
|
const templates = await getFiles(templateRoot);
|
|
9356
9357
|
await Promise.all(
|
|
9357
9358
|
templates.map(async (template) => {
|
|
9358
|
-
const
|
|
9359
|
-
const raw = await readFile(
|
|
9359
|
+
const path14 = resolve(templateRoot, template);
|
|
9360
|
+
const raw = await readFile(path14, "utf8");
|
|
9360
9361
|
const content = (0, import_ejs.render)(raw, data);
|
|
9361
9362
|
const { attributes, body } = fm(content);
|
|
9362
9363
|
if (attributes.skip_if === true) {
|
|
@@ -9448,9 +9449,9 @@ async function assetsGenerator(opts) {
|
|
|
9448
9449
|
const publicFiles = await getFiles(assets);
|
|
9449
9450
|
await Promise.all(
|
|
9450
9451
|
publicFiles.map(async (file) => {
|
|
9451
|
-
const
|
|
9452
|
-
const raw = await readFile2(
|
|
9453
|
-
await outputFile(resolve2(publicDir, basename(
|
|
9452
|
+
const path14 = resolve2(assets, file);
|
|
9453
|
+
const raw = await readFile2(path14, "utf8");
|
|
9454
|
+
await outputFile(resolve2(publicDir, basename(path14)), raw);
|
|
9454
9455
|
})
|
|
9455
9456
|
);
|
|
9456
9457
|
}
|
|
@@ -12254,13 +12255,120 @@ var GenerateEvent = () => {
|
|
|
12254
12255
|
)));
|
|
12255
12256
|
};
|
|
12256
12257
|
|
|
12258
|
+
// src/components/GenerateCommand/web-method-module/WebMethod.tsx
|
|
12259
|
+
init_esm_shims();
|
|
12260
|
+
var import_react24 = __toESM(require_react(), 1);
|
|
12261
|
+
var import_variant26 = __toESM(require_lib(), 1);
|
|
12262
|
+
import { join as join7 } from "node:path";
|
|
12263
|
+
|
|
12264
|
+
// src/components/GenerateCommand/web-method-module/generate.ts
|
|
12265
|
+
init_esm_shims();
|
|
12266
|
+
import path13, { join as join6 } from "node:path";
|
|
12267
|
+
var WEB_METHOD_TEMPLATE = path13.resolve(__dirname, "../templates/web-method");
|
|
12268
|
+
async function generateWebMethod(projectFolder, folderPath) {
|
|
12269
|
+
const filePath = join6(WEB_METHOD_DIR, folderPath);
|
|
12270
|
+
await componentGenerator({
|
|
12271
|
+
template: WEB_METHOD_TEMPLATE,
|
|
12272
|
+
cwd: projectFolder,
|
|
12273
|
+
projectFolder,
|
|
12274
|
+
data: {
|
|
12275
|
+
filePath
|
|
12276
|
+
}
|
|
12277
|
+
});
|
|
12278
|
+
}
|
|
12279
|
+
|
|
12280
|
+
// src/components/GenerateCommand/web-method-module/WebMethod.tsx
|
|
12281
|
+
var GenerateWebMethod = () => {
|
|
12282
|
+
const { t: t2 } = useTranslation();
|
|
12283
|
+
const { model } = useProjectModel();
|
|
12284
|
+
const { cliFlowStepAnswered } = useWixCliAppBi();
|
|
12285
|
+
const [webMethodFolder, setWebMethodFolder] = (0, import_react24.useState)();
|
|
12286
|
+
const { backendComponentsByType } = useBackendComponents();
|
|
12287
|
+
const [finishedInstallation, setFinishedInstallation] = (0, import_react24.useState)(false);
|
|
12288
|
+
const webMethods = backendComponentsByType.WebMethod;
|
|
12289
|
+
const extensionType = t2(
|
|
12290
|
+
"generate_command.flow.web_method.title"
|
|
12291
|
+
).toLowerCase();
|
|
12292
|
+
const validateWebMethodFolder = useValidation(
|
|
12293
|
+
composeValidations([
|
|
12294
|
+
[
|
|
12295
|
+
(filePath) => {
|
|
12296
|
+
const resolvedFolderPath = `${join7(WEB_METHOD_DIR, filePath)}.web.ts`;
|
|
12297
|
+
return pathValidation(filePath) && webMethods.every(
|
|
12298
|
+
(webMethod) => webMethod.relativePath !== resolvedFolderPath
|
|
12299
|
+
);
|
|
12300
|
+
},
|
|
12301
|
+
t2("generate_command.web_method.choose_filename.error")
|
|
12302
|
+
]
|
|
12303
|
+
])
|
|
12304
|
+
);
|
|
12305
|
+
const generationTask = useGenerationTask(async () => {
|
|
12306
|
+
if (webMethodFolder) {
|
|
12307
|
+
return generateWebMethod(model.projectFolder, webMethodFolder);
|
|
12308
|
+
}
|
|
12309
|
+
}, [model.projectFolder, webMethodFolder]);
|
|
12310
|
+
return /* @__PURE__ */ import_react24.default.createElement(import_react24.default.Fragment, null, /* @__PURE__ */ import_react24.default.createElement(
|
|
12311
|
+
TextInput,
|
|
12312
|
+
{
|
|
12313
|
+
label: t2("generate_command.web_method.choose_filename"),
|
|
12314
|
+
placeholder: t2(
|
|
12315
|
+
"generate_command.web_method.choose_filename.placeholder"
|
|
12316
|
+
),
|
|
12317
|
+
onSubmit: (folderPath) => {
|
|
12318
|
+
cliFlowStepAnswered({
|
|
12319
|
+
question: t2("generate_command.web_method.choose_filename"),
|
|
12320
|
+
questionKey: "generate_command.web_method.choose_filename",
|
|
12321
|
+
answer: folderPath
|
|
12322
|
+
});
|
|
12323
|
+
setWebMethodFolder(folderPath);
|
|
12324
|
+
},
|
|
12325
|
+
validate: validateWebMethodFolder
|
|
12326
|
+
}
|
|
12327
|
+
), (0, import_react24.useMemo)(
|
|
12328
|
+
() => (0, import_variant26.match)(generationTask, {
|
|
12329
|
+
Success: ({ hasUpdatedDependencies }) => {
|
|
12330
|
+
if (hasUpdatedDependencies) {
|
|
12331
|
+
return /* @__PURE__ */ import_react24.default.createElement(
|
|
12332
|
+
InstallDependencies,
|
|
12333
|
+
{
|
|
12334
|
+
onFinish: () => setFinishedInstallation(true)
|
|
12335
|
+
}
|
|
12336
|
+
);
|
|
12337
|
+
}
|
|
12338
|
+
setFinishedInstallation(true);
|
|
12339
|
+
return null;
|
|
12340
|
+
},
|
|
12341
|
+
Loading: () => /* @__PURE__ */ import_react24.default.createElement(
|
|
12342
|
+
Spinner,
|
|
12343
|
+
{
|
|
12344
|
+
text: t2("generate_command.generation.loading", {
|
|
12345
|
+
subject: extensionType
|
|
12346
|
+
})
|
|
12347
|
+
}
|
|
12348
|
+
),
|
|
12349
|
+
Error: () => null,
|
|
12350
|
+
NotRequested: () => null
|
|
12351
|
+
}),
|
|
12352
|
+
[generationTask, setFinishedInstallation, t2, extensionType]
|
|
12353
|
+
), finishedInstallation && /* @__PURE__ */ import_react24.default.createElement(Box_default, { flexDirection: "column" }, /* @__PURE__ */ import_react24.default.createElement(Text, null, t2("generate_command.generation.done", {
|
|
12354
|
+
extensionType
|
|
12355
|
+
})), /* @__PURE__ */ import_react24.default.createElement(
|
|
12356
|
+
Trans,
|
|
12357
|
+
{
|
|
12358
|
+
i18nKey: "generate_command.generation.learn_more",
|
|
12359
|
+
values: { extensionType },
|
|
12360
|
+
components: [/* @__PURE__ */ import_react24.default.createElement(Link, { url: "https://wix.to/BEkD5a1" })]
|
|
12361
|
+
}
|
|
12362
|
+
)));
|
|
12363
|
+
};
|
|
12364
|
+
|
|
12257
12365
|
// src/components/GenerateCommand/GenerateCommand.tsx
|
|
12258
|
-
var DevCenterGenerateFlow = (0,
|
|
12366
|
+
var DevCenterGenerateFlow = (0, import_variant27.variant)((0, import_variant27.types)(DevCenterComponent));
|
|
12259
12367
|
var GenerateCommand = () => {
|
|
12260
12368
|
const { t: t2 } = useTranslation();
|
|
12261
12369
|
const bi = useWixCliAppBi();
|
|
12262
|
-
const [generateFlow, setGenerateFlow] = (0,
|
|
12263
|
-
const generateFlows = (0,
|
|
12370
|
+
const [generateFlow, setGenerateFlow] = (0, import_react25.useState)();
|
|
12371
|
+
const generateFlows = (0, import_react25.useMemo)(
|
|
12264
12372
|
() => [
|
|
12265
12373
|
{
|
|
12266
12374
|
title: t2("generate_command.flow.dashboard_category"),
|
|
@@ -12321,6 +12429,11 @@ var GenerateCommand = () => {
|
|
|
12321
12429
|
title: t2("generate_command.flow.api.title"),
|
|
12322
12430
|
value: DevCenterGenerateFlow.Api()
|
|
12323
12431
|
},
|
|
12432
|
+
// {
|
|
12433
|
+
// key: 'web-method-module',
|
|
12434
|
+
// title: t('generate_command.flow.web_method.title'),
|
|
12435
|
+
// value: DevCenterGenerateFlow.WebMethod(),
|
|
12436
|
+
// },
|
|
12324
12437
|
{
|
|
12325
12438
|
key: "event",
|
|
12326
12439
|
title: t2("generate_command.flow.event"),
|
|
@@ -12336,7 +12449,7 @@ var GenerateCommand = () => {
|
|
|
12336
12449
|
],
|
|
12337
12450
|
[t2]
|
|
12338
12451
|
);
|
|
12339
|
-
const selectFlow = (0,
|
|
12452
|
+
const selectFlow = (0, import_react25.useCallback)(
|
|
12340
12453
|
(selectedType) => {
|
|
12341
12454
|
bi.cliFlowStepAnswered({
|
|
12342
12455
|
question: t2("generate_command.flow.choose_flow"),
|
|
@@ -12347,7 +12460,7 @@ var GenerateCommand = () => {
|
|
|
12347
12460
|
},
|
|
12348
12461
|
[bi, t2]
|
|
12349
12462
|
);
|
|
12350
|
-
return /* @__PURE__ */
|
|
12463
|
+
return /* @__PURE__ */ import_react25.default.createElement(Box_default, { flexDirection: "column", paddingTop: 1 }, /* @__PURE__ */ import_react25.default.createElement(
|
|
12351
12464
|
SelectGroupsInput,
|
|
12352
12465
|
{
|
|
12353
12466
|
label: t2("generate_command.flow.choose_flow"),
|
|
@@ -12355,20 +12468,21 @@ var GenerateCommand = () => {
|
|
|
12355
12468
|
onSubmit: selectFlow,
|
|
12356
12469
|
maxHeight: 14
|
|
12357
12470
|
}
|
|
12358
|
-
), generateFlow && (0,
|
|
12471
|
+
), generateFlow && (0, import_variant27.match)(
|
|
12359
12472
|
generateFlow,
|
|
12360
|
-
(0,
|
|
12361
|
-
DashboardPage: () => /* @__PURE__ */
|
|
12362
|
-
DashboardSidebarCategory: () => /* @__PURE__ */
|
|
12363
|
-
EmbeddedScript: () => /* @__PURE__ */
|
|
12364
|
-
CustomElement: () => /* @__PURE__ */
|
|
12365
|
-
SitePlugin: () => /* @__PURE__ */
|
|
12366
|
-
DashboardModal: () => /* @__PURE__ */
|
|
12367
|
-
DashboardPlugin: () => /* @__PURE__ */
|
|
12368
|
-
DashboardMenuPlugin: () => /* @__PURE__ */
|
|
12369
|
-
ServicePlugin: () => /* @__PURE__ */
|
|
12370
|
-
Api: () => /* @__PURE__ */
|
|
12371
|
-
|
|
12473
|
+
(0, import_variant27.partial)({
|
|
12474
|
+
DashboardPage: () => /* @__PURE__ */ import_react25.default.createElement(GenerateDashboardPage, null),
|
|
12475
|
+
DashboardSidebarCategory: () => /* @__PURE__ */ import_react25.default.createElement(GenerateSidebarCategory, null),
|
|
12476
|
+
EmbeddedScript: () => /* @__PURE__ */ import_react25.default.createElement(GenerateEmbeddedScript, null),
|
|
12477
|
+
CustomElement: () => /* @__PURE__ */ import_react25.default.createElement(GenerateCustomElement, null),
|
|
12478
|
+
SitePlugin: () => /* @__PURE__ */ import_react25.default.createElement(GenerateSitePlugin, null),
|
|
12479
|
+
DashboardModal: () => /* @__PURE__ */ import_react25.default.createElement(GenerateDashboardModal, null),
|
|
12480
|
+
DashboardPlugin: () => /* @__PURE__ */ import_react25.default.createElement(DashboardPlugin, null),
|
|
12481
|
+
DashboardMenuPlugin: () => /* @__PURE__ */ import_react25.default.createElement(DashboardMenuPlugin, null),
|
|
12482
|
+
ServicePlugin: () => /* @__PURE__ */ import_react25.default.createElement(GenerateServicePlugin, null),
|
|
12483
|
+
Api: () => /* @__PURE__ */ import_react25.default.createElement(GenerateApi, null),
|
|
12484
|
+
WebMethod: () => /* @__PURE__ */ import_react25.default.createElement(GenerateWebMethod, null),
|
|
12485
|
+
Event: () => /* @__PURE__ */ import_react25.default.createElement(GenerateEvent, null),
|
|
12372
12486
|
default: () => null
|
|
12373
12487
|
})
|
|
12374
12488
|
));
|
|
@@ -12397,4 +12511,4 @@ ejs/lib/ejs.js:
|
|
|
12397
12511
|
* @license {@link http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0}
|
|
12398
12512
|
*)
|
|
12399
12513
|
*/
|
|
12400
|
-
//# sourceMappingURL=GenerateCommand-
|
|
12514
|
+
//# sourceMappingURL=GenerateCommand-M3T6OD4B.js.map
|