@modern-js/ssg-generator 3.1.17 → 3.1.18
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/dist/index.js +116 -152
- package/package.json +10 -10
package/dist/index.js
CHANGED
@@ -113745,6 +113745,8 @@ var require_chainId = __commonJS({
|
|
113745
113745
|
BOTTOM_TEMPLATE: "bottom-template",
|
113746
113746
|
/** HtmlCrossOriginPlugin */
|
113747
113747
|
HTML_CROSS_ORIGIN: "html-cross-origin",
|
113748
|
+
/** HtmlNoncePlugin */
|
113749
|
+
HTML_NONCE: "html-nonce",
|
113748
113750
|
/** MiniCssExtractPlugin */
|
113749
113751
|
MINI_CSS_EXTRACT: "mini-css-extract",
|
113750
113752
|
/** ReactFastRefreshPlugin */
|
@@ -115976,11 +115978,11 @@ var mime = Import.lazy("../compiled/mime-types", require);
|
|
115976
115978
|
var chokidar = Import.lazy("../compiled/chokidar", require);
|
115977
115979
|
var inquirer = Import.lazy("../compiled/inquirer", require);
|
115978
115980
|
|
115979
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
115981
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/index.js
|
115980
115982
|
var import_lodash6 = __toESM(require_lodash2());
|
115981
115983
|
var import_comment_json = __toESM(require_src2());
|
115982
115984
|
|
115983
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.2.
|
115985
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.2.3/node_modules/@modern-js/codesmith-api-npm/dist/esm/utils/env.js
|
115984
115986
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
115985
115987
|
try {
|
115986
115988
|
var info = gen[key](arg);
|
@@ -116288,7 +116290,7 @@ function _canUsePnpm() {
|
|
116288
116290
|
return _canUsePnpm.apply(this, arguments);
|
116289
116291
|
}
|
116290
116292
|
|
116291
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.2.
|
116293
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.2.3/node_modules/@modern-js/codesmith-api-npm/dist/esm/utils/install.js
|
116292
116294
|
function asyncGeneratorStep2(gen, resolve, reject, _next, _throw, key, arg) {
|
116293
116295
|
try {
|
116294
116296
|
var info = gen[key](arg);
|
@@ -116655,7 +116657,7 @@ function _pnpmInstall() {
|
|
116655
116657
|
return _pnpmInstall.apply(this, arguments);
|
116656
116658
|
}
|
116657
116659
|
|
116658
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.2.
|
116660
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.2.3/node_modules/@modern-js/codesmith-api-npm/dist/esm/index.js
|
116659
116661
|
function _class_call_check(instance, Constructor) {
|
116660
116662
|
if (!(instance instanceof Constructor)) {
|
116661
116663
|
throw new TypeError("Cannot call a class as a function");
|
@@ -116736,7 +116738,7 @@ var NpmAPI = /* @__PURE__ */ function() {
|
|
116736
116738
|
return NpmAPI2;
|
116737
116739
|
}();
|
116738
116740
|
|
116739
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.2.
|
116741
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.2.3_@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith-api-git/dist/esm/utils/index.js
|
116740
116742
|
function asyncGeneratorStep3(gen, resolve, reject, _next, _throw, key, arg) {
|
116741
116743
|
try {
|
116742
116744
|
var info = gen[key](arg);
|
@@ -117078,7 +117080,7 @@ function _gitCommit() {
|
|
117078
117080
|
return _gitCommit.apply(this, arguments);
|
117079
117081
|
}
|
117080
117082
|
|
117081
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.2.
|
117083
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.2.3_@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith-api-git/dist/esm/index.js
|
117082
117084
|
function asyncGeneratorStep4(gen, resolve, reject, _next, _throw, key, arg) {
|
117083
117085
|
try {
|
117084
117086
|
var info = gen[key](arg);
|
@@ -117409,11 +117411,11 @@ var GitAPI = /* @__PURE__ */ function() {
|
|
117409
117411
|
return GitAPI2;
|
117410
117412
|
}();
|
117411
117413
|
|
117412
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.
|
117414
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith/dist/esm/materials/FsResource.js
|
117413
117415
|
var import_path = __toESM(require("path"));
|
117414
117416
|
var FS_RESOURCE = "_codesmith_core_fs_resource";
|
117415
117417
|
|
117416
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.
|
117418
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith/dist/esm/utils/fsExists.js
|
117417
117419
|
function asyncGeneratorStep5(gen, resolve, reject, _next, _throw, key, arg) {
|
117418
117420
|
try {
|
117419
117421
|
var info = gen[key](arg);
|
@@ -117586,7 +117588,7 @@ function _fsExists() {
|
|
117586
117588
|
return _fsExists.apply(this, arguments);
|
117587
117589
|
}
|
117588
117590
|
|
117589
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.2.
|
117591
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.2.3_@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith-api-handlebars/dist/esm/utils/renderString.js
|
117590
117592
|
var import_handlebars = __toESM(require_lib());
|
117591
117593
|
function _define_property4(obj, key, value) {
|
117592
117594
|
if (key in obj) {
|
@@ -117628,7 +117630,7 @@ function renderString(template, fullData, registers) {
|
|
117628
117630
|
return import_handlebars.default.compile(template)(fullData) || "";
|
117629
117631
|
}
|
117630
117632
|
|
117631
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.2.
|
117633
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.2.3_@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith-api-handlebars/dist/esm/index.js
|
117632
117634
|
function asyncGeneratorStep6(gen, resolve, reject, _next, _throw, key, arg) {
|
117633
117635
|
try {
|
117634
117636
|
var info = gen[key](arg);
|
@@ -117946,13 +117948,13 @@ var HandlebarsAPI = /* @__PURE__ */ function() {
|
|
117946
117948
|
return HandlebarsAPI2;
|
117947
117949
|
}();
|
117948
117950
|
|
117949
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.2.
|
117951
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.2.3_@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith-api-ejs/dist/esm/utils/renderString.js
|
117950
117952
|
var import_ejs = __toESM(require_ejs());
|
117951
117953
|
function renderString2(template, fullData) {
|
117952
117954
|
return import_ejs.default.render(template, fullData) || "";
|
117953
117955
|
}
|
117954
117956
|
|
117955
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.2.
|
117957
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.2.3_@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith-api-ejs/dist/esm/index.js
|
117956
117958
|
function asyncGeneratorStep7(gen, resolve, reject, _next, _throw, key, arg) {
|
117957
117959
|
try {
|
117958
117960
|
var info = gen[key](arg);
|
@@ -118222,24 +118224,8 @@ var EjsAPI = /* @__PURE__ */ function() {
|
|
118222
118224
|
return EjsAPI2;
|
118223
118225
|
}();
|
118224
118226
|
|
118225
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.2.
|
118227
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.2.3_@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith-api-fs/dist/esm/index.js
|
118226
118228
|
var import_path2 = __toESM(require("path"));
|
118227
|
-
|
118228
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.2.0_@modern-js+codesmith@2.2.0/node_modules/@modern-js/codesmith-api-fs/dist/esm/constant.js
|
118229
|
-
var imageExtNameList = [
|
118230
|
-
".jpg",
|
118231
|
-
".jpeg",
|
118232
|
-
".png",
|
118233
|
-
".gif",
|
118234
|
-
".bmp",
|
118235
|
-
".ico",
|
118236
|
-
".icon",
|
118237
|
-
".mpt",
|
118238
|
-
".psd",
|
118239
|
-
".wmf"
|
118240
|
-
];
|
118241
|
-
|
118242
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.2.0_@modern-js+codesmith@2.2.0/node_modules/@modern-js/codesmith-api-fs/dist/esm/index.js
|
118243
118229
|
function asyncGeneratorStep8(gen, resolve, reject, _next, _throw, key, arg) {
|
118244
118230
|
try {
|
118245
118231
|
var info = gen[key](arg);
|
@@ -118419,48 +118405,26 @@ var FsAPI = /* @__PURE__ */ function() {
|
|
118419
118405
|
value: function renderFile(resource, target) {
|
118420
118406
|
var _this = this;
|
118421
118407
|
return _async_to_generator8(function() {
|
118422
|
-
var
|
118408
|
+
var filePath;
|
118423
118409
|
return __generator8(this, function(_state) {
|
118424
118410
|
switch (_state.label) {
|
118425
118411
|
case 0:
|
118426
118412
|
if (resource._type !== FS_RESOURCE) {
|
118427
118413
|
throw new Error("resource not match");
|
118428
118414
|
}
|
118415
|
+
filePath = import_path2.default.resolve(_this.generatorCore.outputPath, target.toString());
|
118429
118416
|
return [
|
118430
118417
|
4,
|
118431
|
-
|
118418
|
+
import_fs_extra.default.mkdirp(import_path2.default.dirname(filePath))
|
118432
118419
|
];
|
118433
118420
|
case 1:
|
118434
|
-
resourceValue = _state.sent();
|
118435
|
-
resourceFileExt = import_path2.default.extname(resource.filePath);
|
118436
|
-
if (!imageExtNameList.includes(resourceFileExt))
|
118437
|
-
return [
|
118438
|
-
3,
|
118439
|
-
3
|
118440
|
-
];
|
118441
|
-
return [
|
118442
|
-
4,
|
118443
|
-
_this.generatorCore.output.fs(target, resourceValue.content, {
|
118444
|
-
encoding: "binary"
|
118445
|
-
})
|
118446
|
-
];
|
118447
|
-
case 2:
|
118448
118421
|
_state.sent();
|
118449
|
-
return [
|
118450
|
-
3,
|
118451
|
-
5
|
118452
|
-
];
|
118453
|
-
case 3:
|
118454
118422
|
return [
|
118455
118423
|
4,
|
118456
|
-
|
118457
|
-
encoding: "utf-8"
|
118458
|
-
})
|
118424
|
+
import_fs_extra.default.copyFile(resource.filePath, filePath)
|
118459
118425
|
];
|
118460
|
-
case
|
118426
|
+
case 2:
|
118461
118427
|
_state.sent();
|
118462
|
-
_state.label = 5;
|
118463
|
-
case 5:
|
118464
118428
|
return [
|
118465
118429
|
2
|
118466
118430
|
];
|
@@ -118523,7 +118487,7 @@ var FsAPI = /* @__PURE__ */ function() {
|
|
118523
118487
|
return FsAPI2;
|
118524
118488
|
}();
|
118525
118489
|
|
118526
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
118490
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/checkers.js
|
118527
118491
|
var toString = Object.prototype.toString;
|
118528
118492
|
var isType = function(type) {
|
118529
118493
|
return function(obj) {
|
@@ -118549,7 +118513,7 @@ var isObj = function(val) {
|
|
118549
118513
|
};
|
118550
118514
|
var isRegExp = isType("RegExp");
|
118551
118515
|
|
118552
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
118516
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/array.js
|
118553
118517
|
var toArr = function(val) {
|
118554
118518
|
return isArr(val) ? val : val ? [val] : [];
|
118555
118519
|
};
|
@@ -118600,7 +118564,7 @@ function reduce(val, iterator, accumulator, revert) {
|
|
118600
118564
|
return result;
|
118601
118565
|
}
|
118602
118566
|
|
118603
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
118567
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/global.js
|
118604
118568
|
function globalSelf() {
|
118605
118569
|
try {
|
118606
118570
|
if (typeof self !== "undefined") {
|
@@ -118624,7 +118588,7 @@ function globalSelf() {
|
|
118624
118588
|
}
|
118625
118589
|
var globalThisPolyfill = globalSelf();
|
118626
118590
|
|
118627
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
118591
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/instanceof.js
|
118628
118592
|
var instOf = function(value, cls) {
|
118629
118593
|
if (isFn(cls))
|
118630
118594
|
return value instanceof cls;
|
@@ -118633,7 +118597,7 @@ var instOf = function(value, cls) {
|
|
118633
118597
|
return false;
|
118634
118598
|
};
|
118635
118599
|
|
118636
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
118600
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/compare.js
|
118637
118601
|
var isArray = isArr;
|
118638
118602
|
var keyList = Object.keys;
|
118639
118603
|
var hasProp = Object.prototype.hasOwnProperty;
|
@@ -118740,7 +118704,7 @@ var isEqual = function exportedEqual(a, b) {
|
|
118740
118704
|
}
|
118741
118705
|
};
|
118742
118706
|
|
118743
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
118707
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/clone.js
|
118744
118708
|
var clone = function(values) {
|
118745
118709
|
if (Array.isArray(values)) {
|
118746
118710
|
var res_1 = [];
|
@@ -118776,7 +118740,7 @@ var clone = function(values) {
|
|
118776
118740
|
}
|
118777
118741
|
};
|
118778
118742
|
|
118779
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
118743
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/isEmpty.js
|
118780
118744
|
var has = Object.prototype.hasOwnProperty;
|
118781
118745
|
var toString2 = Object.prototype.toString;
|
118782
118746
|
var isUndef = function(val) {
|
@@ -118904,7 +118868,7 @@ function pascalCase(input, options) {
|
|
118904
118868
|
return noCase(input, __assign({ delimiter: "", transform: pascalCaseTransform }, options));
|
118905
118869
|
}
|
118906
118870
|
|
118907
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
118871
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/string.js
|
118908
118872
|
var ansiRegex = function() {
|
118909
118873
|
var pattern = [
|
118910
118874
|
"[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[a-zA-Z\\d]*)*)?\\u0007)",
|
@@ -118923,7 +118887,7 @@ var stringLength = function(input) {
|
|
118923
118887
|
return stripAnsi(input).replace(astralRegex(), " ").length;
|
118924
118888
|
};
|
118925
118889
|
|
118926
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
118890
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/contexts.js
|
118927
118891
|
var __assign2 = function() {
|
118928
118892
|
__assign2 = Object.assign || function(t) {
|
118929
118893
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
@@ -118946,7 +118910,7 @@ var parenContext = ContextType("()");
|
|
118946
118910
|
var braceContext = ContextType("{}");
|
118947
118911
|
var destructorContext = ContextType("{x}");
|
118948
118912
|
|
118949
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
118913
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/tokens.js
|
118950
118914
|
var __assign3 = function() {
|
118951
118915
|
__assign3 = Object.assign || function(t) {
|
118952
118916
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
@@ -119114,7 +119078,7 @@ var expandTok = TokenType("expandTok", {
|
|
119114
119078
|
});
|
119115
119079
|
var eofTok = TokenType("eof");
|
119116
119080
|
|
119117
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
119081
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/tokenizer.js
|
119118
119082
|
var nonASCIIWhitespace = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/;
|
119119
119083
|
var fullCharCodeAtPos = function(input, pos) {
|
119120
119084
|
if (String.fromCharCode)
|
@@ -119366,7 +119330,7 @@ var Tokenizer = (
|
|
119366
119330
|
}()
|
119367
119331
|
);
|
119368
119332
|
|
119369
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
119333
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/types.js
|
119370
119334
|
var isType2 = function(type) {
|
119371
119335
|
return function(obj) {
|
119372
119336
|
return obj && obj.type === type;
|
@@ -119384,7 +119348,7 @@ var isObjectPattern = isType2("ObjectPattern");
|
|
119384
119348
|
var isObjectPatternProperty = isType2("ObjectPatternProperty");
|
119385
119349
|
var isArrayPattern = isType2("ArrayPattern");
|
119386
119350
|
|
119387
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
119351
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/shared.js
|
119388
119352
|
var toString3 = Object.prototype.toString;
|
119389
119353
|
var isType3 = function(type) {
|
119390
119354
|
return function(obj) {
|
@@ -119461,7 +119425,7 @@ var isSegmentEqual = function(a, b) {
|
|
119461
119425
|
return a === b;
|
119462
119426
|
};
|
119463
119427
|
|
119464
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
119428
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/destructor.js
|
119465
119429
|
var DestructorCache = /* @__PURE__ */ new Map();
|
119466
119430
|
var isValid2 = function(val) {
|
119467
119431
|
return val !== void 0 && val !== null;
|
@@ -119579,7 +119543,7 @@ var existInByDestructor = function(source, rules, start, mutators) {
|
|
119579
119543
|
});
|
119580
119544
|
};
|
119581
119545
|
|
119582
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
119546
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/parser.js
|
119583
119547
|
var __extends = function() {
|
119584
119548
|
var extendStatics = function(d, b) {
|
119585
119549
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
@@ -119970,7 +119934,7 @@ var Parser = (
|
|
119970
119934
|
}(Tokenizer)
|
119971
119935
|
);
|
119972
119936
|
|
119973
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
119937
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/matcher.js
|
119974
119938
|
var Matcher = (
|
119975
119939
|
/** @class */
|
119976
119940
|
function() {
|
@@ -120152,7 +120116,7 @@ var Matcher = (
|
|
120152
120116
|
}()
|
120153
120117
|
);
|
120154
120118
|
|
120155
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
120119
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/index.js
|
120156
120120
|
var __read = function(o, n) {
|
120157
120121
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
120158
120122
|
if (!m)
|
@@ -120706,7 +120670,7 @@ var Path = (
|
|
120706
120670
|
}()
|
120707
120671
|
);
|
120708
120672
|
|
120709
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
120673
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/subscribable.js
|
120710
120674
|
var Subscribable = (
|
120711
120675
|
/** @class */
|
120712
120676
|
function() {
|
@@ -120758,7 +120722,7 @@ var Subscribable = (
|
|
120758
120722
|
}()
|
120759
120723
|
);
|
120760
120724
|
|
120761
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
120725
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/merge.js
|
120762
120726
|
function defaultIsMergeableObject(value) {
|
120763
120727
|
return isNonNullObject(value) && !isSpecial(value);
|
120764
120728
|
}
|
@@ -120951,7 +120915,7 @@ var lazyMerge = function(target) {
|
|
120951
120915
|
};
|
120952
120916
|
var merge = deepmerge;
|
120953
120917
|
|
120954
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
120918
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/uid.js
|
120955
120919
|
var IDX = 36;
|
120956
120920
|
var HEX = "";
|
120957
120921
|
while (IDX--)
|
@@ -120963,7 +120927,7 @@ function uid(len) {
|
|
120963
120927
|
return str;
|
120964
120928
|
}
|
120965
120929
|
|
120966
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
120930
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/checkers.js
|
120967
120931
|
var toString4 = Object.prototype.toString;
|
120968
120932
|
var isMap = function(val) {
|
120969
120933
|
return val && val instanceof Map;
|
@@ -120994,7 +120958,7 @@ var isNormalType = function(target) {
|
|
120994
120958
|
return isPlainObj3(target) || isArr3(target);
|
120995
120959
|
};
|
120996
120960
|
|
120997
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
120961
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/array.js
|
120998
120962
|
var toArray = function(value) {
|
120999
120963
|
return Array.isArray(value) ? value : value !== void 0 && value !== null ? [value] : [];
|
121000
120964
|
};
|
@@ -121058,7 +121022,7 @@ var ArraySet = (
|
|
121058
121022
|
}()
|
121059
121023
|
);
|
121060
121024
|
|
121061
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
121025
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/environment.js
|
121062
121026
|
var ProxyRaw = /* @__PURE__ */ new WeakMap();
|
121063
121027
|
var RawProxy = /* @__PURE__ */ new WeakMap();
|
121064
121028
|
var RawShallowProxy = /* @__PURE__ */ new WeakMap();
|
@@ -121077,7 +121041,7 @@ var MakeObModelSymbol = Symbol("MakeObModelSymbol");
|
|
121077
121041
|
var ObModelSymbol = Symbol("ObModelSymbol");
|
121078
121042
|
var ObModelNodeSymbol = Symbol("ObModelNodeSymbol");
|
121079
121043
|
|
121080
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
121044
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/reaction.js
|
121081
121045
|
var ITERATION_KEY = Symbol("iteration key");
|
121082
121046
|
var addRawReactionsMap = function(target, key, reaction2) {
|
121083
121047
|
var reactionsMap = RawReactionsMap.get(target);
|
@@ -121307,7 +121271,7 @@ var disposeEffects = function(reaction2) {
|
|
121307
121271
|
}
|
121308
121272
|
};
|
121309
121273
|
|
121310
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
121274
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/tree.js
|
121311
121275
|
var DataChange = (
|
121312
121276
|
/** @class */
|
121313
121277
|
function() {
|
@@ -121403,7 +121367,7 @@ var buildDataTree = function(target, key, value) {
|
|
121403
121367
|
setDataNode(raw2, new DataNode(target, key, value));
|
121404
121368
|
};
|
121405
121369
|
|
121406
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
121370
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/externals.js
|
121407
121371
|
var RAW_TYPE = Symbol("RAW_TYPE");
|
121408
121372
|
var OBSERVABLE_TYPE = Symbol("OBSERVABLE_TYPE");
|
121409
121373
|
var hasOwnProperty2 = Object.prototype.hasOwnProperty;
|
@@ -121505,7 +121469,7 @@ var hasCollected = function(callback) {
|
|
121505
121469
|
return DependencyCollected.value;
|
121506
121470
|
};
|
121507
121471
|
|
121508
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
121472
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/handlers.js
|
121509
121473
|
var __read2 = function(o, n) {
|
121510
121474
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
121511
121475
|
if (!m)
|
@@ -121761,7 +121725,7 @@ var baseHandlers = {
|
|
121761
121725
|
}
|
121762
121726
|
};
|
121763
121727
|
|
121764
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
121728
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/internals.js
|
121765
121729
|
var createNormalProxy = function(target, shallow2) {
|
121766
121730
|
var proxy = new Proxy(target, baseHandlers);
|
121767
121731
|
ProxyRaw.set(proxy, target);
|
@@ -121876,7 +121840,7 @@ var createBoundaryAnnotation = function(start, end) {
|
|
121876
121840
|
return boundary;
|
121877
121841
|
};
|
121878
121842
|
|
121879
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
121843
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/batch.js
|
121880
121844
|
var batch = createBoundaryAnnotation(batchStart, batchEnd);
|
121881
121845
|
batch.scope = createBoundaryAnnotation(batchScopeStart, batchScopeEnd);
|
121882
121846
|
batch.endpoint = function(callback) {
|
@@ -121889,7 +121853,7 @@ batch.endpoint = function(callback) {
|
|
121889
121853
|
}
|
121890
121854
|
};
|
121891
121855
|
|
121892
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
121856
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/action.js
|
121893
121857
|
var action = createBoundaryAnnotation(function() {
|
121894
121858
|
batchStart();
|
121895
121859
|
untrackStart();
|
@@ -121905,10 +121869,10 @@ action.scope = createBoundaryAnnotation(function() {
|
|
121905
121869
|
batchScopeEnd();
|
121906
121870
|
});
|
121907
121871
|
|
121908
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
121872
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/untracked.js
|
121909
121873
|
var untracked = createBoundaryFunction(untrackStart, untrackEnd);
|
121910
121874
|
|
121911
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
121875
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/annotations/observable.js
|
121912
121876
|
var observable = createAnnotation(function(_a2) {
|
121913
121877
|
var target = _a2.target, key = _a2.key, value = _a2.value;
|
121914
121878
|
var store = {
|
@@ -121948,7 +121912,7 @@ var observable = createAnnotation(function(_a2) {
|
|
121948
121912
|
return store.value;
|
121949
121913
|
});
|
121950
121914
|
|
121951
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
121915
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/annotations/box.js
|
121952
121916
|
var box = createAnnotation(function(_a2) {
|
121953
121917
|
var target = _a2.target, key = _a2.key, value = _a2.value;
|
121954
121918
|
var store = {
|
@@ -121994,7 +121958,7 @@ var box = createAnnotation(function(_a2) {
|
|
121994
121958
|
return proxy;
|
121995
121959
|
});
|
121996
121960
|
|
121997
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
121961
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/annotations/ref.js
|
121998
121962
|
var ref = createAnnotation(function(_a2) {
|
121999
121963
|
var target = _a2.target, key = _a2.key, value = _a2.value;
|
122000
121964
|
var store = {
|
@@ -122042,7 +122006,7 @@ var ref = createAnnotation(function(_a2) {
|
|
122042
122006
|
return proxy;
|
122043
122007
|
});
|
122044
122008
|
|
122045
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
122009
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/annotations/shallow.js
|
122046
122010
|
var shallow = createAnnotation(function(_a2) {
|
122047
122011
|
var target = _a2.target, key = _a2.key, value = _a2.value;
|
122048
122012
|
var store = {
|
@@ -122082,7 +122046,7 @@ var shallow = createAnnotation(function(_a2) {
|
|
122082
122046
|
return store.value;
|
122083
122047
|
});
|
122084
122048
|
|
122085
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
122049
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/annotations/computed.js
|
122086
122050
|
var getDescriptor = Object.getOwnPropertyDescriptor;
|
122087
122051
|
var getProto = Object.getPrototypeOf;
|
122088
122052
|
var ClassDescriptorSymbol = Symbol("ClassDescriptorSymbol");
|
@@ -122203,7 +122167,7 @@ var computed = createAnnotation(function(_a2) {
|
|
122203
122167
|
return proxy;
|
122204
122168
|
});
|
122205
122169
|
|
122206
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
122170
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/observable.js
|
122207
122171
|
function observable2(target) {
|
122208
122172
|
return createObservable(null, null, target);
|
122209
122173
|
}
|
@@ -122214,7 +122178,7 @@ observable2.shallow = shallow;
|
|
122214
122178
|
observable2.computed = computed;
|
122215
122179
|
observable2[MakeObModelSymbol] = observable;
|
122216
122180
|
|
122217
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
122181
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/model.js
|
122218
122182
|
function define2(target, annotations) {
|
122219
122183
|
if (isObservable(target))
|
122220
122184
|
return target;
|
@@ -122234,7 +122198,7 @@ function define2(target, annotations) {
|
|
122234
122198
|
return target;
|
122235
122199
|
}
|
122236
122200
|
|
122237
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
122201
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/autorun.js
|
122238
122202
|
var __assign4 = function() {
|
122239
122203
|
__assign4 = Object.assign || function(t) {
|
122240
122204
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
@@ -122380,7 +122344,7 @@ var reaction = function(tracker, subscriber, options) {
|
|
122380
122344
|
};
|
122381
122345
|
};
|
122382
122346
|
|
122383
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
122347
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/tracker.js
|
122384
122348
|
var Tracker = (
|
122385
122349
|
/** @class */
|
122386
122350
|
function() {
|
@@ -122425,7 +122389,7 @@ var Tracker = (
|
|
122425
122389
|
}()
|
122426
122390
|
);
|
122427
122391
|
|
122428
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
122392
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/observe.js
|
122429
122393
|
var observe = function(target, observer, deep) {
|
122430
122394
|
if (deep === void 0) {
|
122431
122395
|
deep = true;
|
@@ -122458,7 +122422,7 @@ var observe = function(target, observer, deep) {
|
|
122458
122422
|
return addListener(target);
|
122459
122423
|
};
|
122460
122424
|
|
122461
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.
|
122425
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.0.4/node_modules/@formily/json-schema/esm/shared.js
|
122462
122426
|
var REVA_ACTIONS_KEY = Symbol.for("__REVA_ACTIONS");
|
122463
122427
|
var SchemaNestedMap = {
|
122464
122428
|
parent: true,
|
@@ -122645,7 +122609,7 @@ var patchStateFormSchema = function(targetState, pattern, compiled) {
|
|
122645
122609
|
});
|
122646
122610
|
};
|
122647
122611
|
|
122648
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.
|
122612
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.0.4/node_modules/@formily/json-schema/esm/compiler.js
|
122649
122613
|
var ExpRE = /^\s*\{\{([\s\S]*)\}\}\s*$/;
|
122650
122614
|
var Registry = {
|
122651
122615
|
silent: false,
|
@@ -122749,7 +122713,7 @@ var patchSchemaCompile = function(targetState, sourceSchema, scope, demand) {
|
|
122749
122713
|
});
|
122750
122714
|
};
|
122751
122715
|
|
122752
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
122716
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/LifeCycle.js
|
122753
122717
|
var LifeCycle = (
|
122754
122718
|
/** @class */
|
122755
122719
|
function() {
|
@@ -122795,7 +122759,7 @@ var LifeCycle = (
|
|
122795
122759
|
}()
|
122796
122760
|
);
|
122797
122761
|
|
122798
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
122762
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/Heart.js
|
122799
122763
|
var __extends2 = function() {
|
122800
122764
|
var extendStatics = function(d, b) {
|
122801
122765
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
@@ -122891,7 +122855,7 @@ var Heart = (
|
|
122891
122855
|
}(Subscribable)
|
122892
122856
|
);
|
122893
122857
|
|
122894
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
122858
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/shared/checkers.js
|
122895
122859
|
var isForm = function(node) {
|
122896
122860
|
return node instanceof Form;
|
122897
122861
|
};
|
@@ -122937,7 +122901,7 @@ var isQuery = function(query) {
|
|
122937
122901
|
return query && query instanceof Query;
|
122938
122902
|
};
|
122939
122903
|
|
122940
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
122904
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/Graph.js
|
122941
122905
|
var Graph = (
|
122942
122906
|
/** @class */
|
122943
122907
|
function() {
|
@@ -122989,12 +122953,12 @@ var Graph = (
|
|
122989
122953
|
}()
|
122990
122954
|
);
|
122991
122955
|
|
122992
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
122956
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/types.js
|
122993
122957
|
var isValidateResult = function(obj) {
|
122994
122958
|
return !!obj["type"] && !!obj["message"];
|
122995
122959
|
};
|
122996
122960
|
|
122997
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
122961
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/registry.js
|
122998
122962
|
var getIn2 = Path.getIn;
|
122999
122963
|
var self2 = globalThisPolyfill;
|
123000
122964
|
var defaultLanguage = "en";
|
@@ -123065,7 +123029,7 @@ var registerValidateFormats = function(formats) {
|
|
123065
123029
|
});
|
123066
123030
|
};
|
123067
123031
|
|
123068
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
123032
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/template.js
|
123069
123033
|
var render = function(result, rules) {
|
123070
123034
|
var message = result.message;
|
123071
123035
|
if (isStr(result.message)) {
|
@@ -123080,7 +123044,7 @@ var render = function(result, rules) {
|
|
123080
123044
|
return result;
|
123081
123045
|
};
|
123082
123046
|
|
123083
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
123047
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/parser.js
|
123084
123048
|
var __assign5 = function() {
|
123085
123049
|
__assign5 = Object.assign || function(t) {
|
123086
123050
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
@@ -123331,7 +123295,7 @@ var parseValidator = function(validator, options) {
|
|
123331
123295
|
}, []);
|
123332
123296
|
};
|
123333
123297
|
|
123334
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
123298
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/locale.js
|
123335
123299
|
var locale_default = {
|
123336
123300
|
en: {
|
123337
123301
|
pattern: "This field is invalid",
|
@@ -123551,7 +123515,7 @@ var locale_default = {
|
|
123551
123515
|
}
|
123552
123516
|
};
|
123553
123517
|
|
123554
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
123518
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/formats.js
|
123555
123519
|
var formats_default = {
|
123556
123520
|
url: new RegExp(
|
123557
123521
|
// protocol identifier
|
@@ -123571,7 +123535,7 @@ var formats_default = {
|
|
123571
123535
|
zip: /^[0-9]{6}$/
|
123572
123536
|
};
|
123573
123537
|
|
123574
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
123538
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/rules.js
|
123575
123539
|
var __assign6 = function() {
|
123576
123540
|
__assign6 = Object.assign || function(t) {
|
123577
123541
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
@@ -123886,7 +123850,7 @@ extendSameRules(RULES, {
|
|
123886
123850
|
});
|
123887
123851
|
var rules_default = RULES;
|
123888
123852
|
|
123889
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
123853
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/validator.js
|
123890
123854
|
var __awaiter3 = function(thisArg, _arguments, P, generator) {
|
123891
123855
|
function adopt(value) {
|
123892
123856
|
return value instanceof P ? value : new P(function(resolve) {
|
@@ -124031,7 +123995,7 @@ var validate = function(value, validator, options) {
|
|
124031
123995
|
});
|
124032
123996
|
};
|
124033
123997
|
|
124034
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
123998
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/types.js
|
124035
123999
|
var LifeCycleTypes;
|
124036
124000
|
(function(LifeCycleTypes2) {
|
124037
124001
|
LifeCycleTypes2["ON_FORM_INIT"] = "onFormInit";
|
@@ -124083,7 +124047,7 @@ var LifeCycleTypes;
|
|
124083
124047
|
LifeCycleTypes2["ON_FIELD_UNMOUNT"] = "onFieldUnmount";
|
124084
124048
|
})(LifeCycleTypes || (LifeCycleTypes = {}));
|
124085
124049
|
|
124086
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
124050
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/shared/constants.js
|
124087
124051
|
var ReservedProperties = {
|
124088
124052
|
form: true,
|
124089
124053
|
parent: true,
|
@@ -124135,7 +124099,7 @@ var GlobalState = {
|
|
124135
124099
|
};
|
124136
124100
|
var NumberIndexReg = /^\.(\d+)/;
|
124137
124101
|
|
124138
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
124102
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/shared/internals.js
|
124139
124103
|
var __assign7 = function() {
|
124140
124104
|
__assign7 = Object.assign || function(t) {
|
124141
124105
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
@@ -125242,7 +125206,7 @@ var getObjectParent = function(field) {
|
|
125242
125206
|
}
|
125243
125207
|
};
|
125244
125208
|
|
125245
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
125209
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/Query.js
|
125246
125210
|
var output = function(field, taker) {
|
125247
125211
|
if (!field)
|
125248
125212
|
return;
|
@@ -125325,7 +125289,7 @@ var Query = (
|
|
125325
125289
|
}()
|
125326
125290
|
);
|
125327
125291
|
|
125328
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
125292
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/BaseField.js
|
125329
125293
|
var __read4 = function(o, n) {
|
125330
125294
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
125331
125295
|
if (!m)
|
@@ -125705,7 +125669,7 @@ var BaseField = (
|
|
125705
125669
|
}()
|
125706
125670
|
);
|
125707
125671
|
|
125708
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
125672
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/Field.js
|
125709
125673
|
var __extends3 = function() {
|
125710
125674
|
var extendStatics = function(d, b) {
|
125711
125675
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
@@ -126346,7 +126310,7 @@ var Field = (
|
|
126346
126310
|
}(BaseField)
|
126347
126311
|
);
|
126348
126312
|
|
126349
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
126313
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/shared/effective.js
|
126350
126314
|
var __read5 = function(o, n) {
|
126351
126315
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
126352
126316
|
if (!m)
|
@@ -126440,7 +126404,7 @@ var runEffects = function(context) {
|
|
126440
126404
|
return GlobalState.lifecycles;
|
126441
126405
|
};
|
126442
126406
|
|
126443
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
126407
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/ArrayField.js
|
126444
126408
|
var __extends4 = function() {
|
126445
126409
|
var extendStatics = function(d, b) {
|
126446
126410
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
@@ -126630,7 +126594,7 @@ var ArrayField = (
|
|
126630
126594
|
}(Field)
|
126631
126595
|
);
|
126632
126596
|
|
126633
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
126597
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/ObjectField.js
|
126634
126598
|
var __extends5 = function() {
|
126635
126599
|
var extendStatics = function(d, b) {
|
126636
126600
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
@@ -126691,7 +126655,7 @@ var ObjectField = (
|
|
126691
126655
|
}(Field)
|
126692
126656
|
);
|
126693
126657
|
|
126694
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
126658
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/VoidField.js
|
126695
126659
|
var __extends6 = function() {
|
126696
126660
|
var extendStatics = function(d, b) {
|
126697
126661
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
@@ -126806,7 +126770,7 @@ var VoidField = (
|
|
126806
126770
|
}(BaseField)
|
126807
126771
|
);
|
126808
126772
|
|
126809
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
126773
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/Form.js
|
126810
126774
|
var __assign8 = function() {
|
126811
126775
|
__assign8 = Object.assign || function(t) {
|
126812
126776
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
@@ -127334,7 +127298,7 @@ var Form = (
|
|
127334
127298
|
}()
|
127335
127299
|
);
|
127336
127300
|
|
127337
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
127301
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/effects/onFormEffects.js
|
127338
127302
|
function createFormEffect(type) {
|
127339
127303
|
return createEffectHook(type, function(form) {
|
127340
127304
|
return function(callback) {
|
@@ -127367,7 +127331,7 @@ var onFormValidateEnd = createFormEffect(LifeCycleTypes.ON_FORM_VALIDATE_END);
|
|
127367
127331
|
var onFormGraphChange = createFormEffect(LifeCycleTypes.ON_FORM_GRAPH_CHANGE);
|
127368
127332
|
var onFormLoading = createFormEffect(LifeCycleTypes.ON_FORM_LOADING);
|
127369
127333
|
|
127370
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
127334
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/effects/onFieldEffects.js
|
127371
127335
|
function createFieldEffect(type) {
|
127372
127336
|
return createEffectHook(type, function(field, form) {
|
127373
127337
|
return function(pattern, callback) {
|
@@ -127412,7 +127376,7 @@ function onFieldInit(pattern, callback) {
|
|
127412
127376
|
}
|
127413
127377
|
}
|
127414
127378
|
|
127415
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.
|
127379
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.0.4/node_modules/@formily/json-schema/esm/transformer.js
|
127416
127380
|
var __read7 = function(o, n) {
|
127417
127381
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
127418
127382
|
if (!m)
|
@@ -127637,7 +127601,7 @@ var transformFieldProps = function(schema, options) {
|
|
127637
127601
|
};
|
127638
127602
|
};
|
127639
127603
|
|
127640
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.
|
127604
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.0.4/node_modules/@formily/json-schema/esm/patches.js
|
127641
127605
|
var __assign9 = function() {
|
127642
127606
|
__assign9 = Object.assign || function(t) {
|
127643
127607
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
@@ -127686,7 +127650,7 @@ var enablePolyfills = function(versions) {
|
|
127686
127650
|
}
|
127687
127651
|
};
|
127688
127652
|
|
127689
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.
|
127653
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.0.4/node_modules/@formily/json-schema/esm/polyfills/SPECIFICATION_1_0.js
|
127690
127654
|
var __assign10 = function() {
|
127691
127655
|
__assign10 = Object.assign || function(t) {
|
127692
127656
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
@@ -127843,7 +127807,7 @@ var registerTypeDefaultComponents = function(maps) {
|
|
127843
127807
|
Object.assign(TYPE_DEFAULT_COMPONENTS, maps);
|
127844
127808
|
};
|
127845
127809
|
|
127846
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.
|
127810
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.0.4/node_modules/@formily/json-schema/esm/schema.js
|
127847
127811
|
var Schema = (
|
127848
127812
|
/** @class */
|
127849
127813
|
function() {
|
@@ -128079,10 +128043,10 @@ var Schema = (
|
|
128079
128043
|
}()
|
128080
128044
|
);
|
128081
128045
|
|
128082
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.
|
128046
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-formily/dist/esm/prompt.js
|
128083
128047
|
var import_inquirer = __toESM(require_inquirer());
|
128084
128048
|
|
128085
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.
|
128049
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-formily/dist/esm/transform.js
|
128086
128050
|
var import_lodash2 = __toESM(require_lodash2());
|
128087
128051
|
function asyncGeneratorStep9(gen, resolve, reject, _next, _throw, key, arg) {
|
128088
128052
|
try {
|
@@ -128429,7 +128393,7 @@ function transformForm(schema) {
|
|
128429
128393
|
return getQuestionFromSchema(schema, configValue, validateMap, initValue);
|
128430
128394
|
}
|
128431
128395
|
|
128432
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.
|
128396
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-formily/dist/esm/prompt.js
|
128433
128397
|
function asyncGeneratorStep10(gen, resolve, reject, _next, _throw, key, arg) {
|
128434
128398
|
try {
|
128435
128399
|
var info = gen[key](arg);
|
@@ -128953,7 +128917,7 @@ function _prompt() {
|
|
128953
128917
|
return _prompt.apply(this, arguments);
|
128954
128918
|
}
|
128955
128919
|
|
128956
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.
|
128920
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-formily/dist/esm/inquirer.js
|
128957
128921
|
function asyncGeneratorStep11(gen, resolve, reject, _next, _throw, key, arg) {
|
128958
128922
|
try {
|
128959
128923
|
var info = gen[key](arg);
|
@@ -129193,7 +129157,7 @@ var CLIReader = /* @__PURE__ */ function() {
|
|
129193
129157
|
return CLIReader2;
|
129194
129158
|
}();
|
129195
129159
|
|
129196
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
129160
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/index.js
|
129197
129161
|
var import_inquirer2 = __toESM(require_inquirer2());
|
129198
129162
|
|
129199
129163
|
// ../../../../node_modules/.pnpm/@modern-js+plugin-i18n@2.18.0/node_modules/@modern-js/plugin-i18n/dist/esm-node/index.js
|
@@ -129272,7 +129236,7 @@ var I18n = class {
|
|
129272
129236
|
}
|
129273
129237
|
};
|
129274
129238
|
|
129275
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
129239
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/locale/zh.js
|
129276
129240
|
var ZH_LOCALE = {
|
129277
129241
|
environment: {
|
129278
129242
|
node_version: "请升级 Node 版本至 LIS",
|
@@ -129299,7 +129263,7 @@ var ZH_LOCALE = {
|
|
129299
129263
|
}
|
129300
129264
|
};
|
129301
129265
|
|
129302
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
129266
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/locale/en.js
|
129303
129267
|
var EN_LOCALE = {
|
129304
129268
|
environment: {
|
129305
129269
|
node_version: "please upgrade node to lts version",
|
@@ -129326,14 +129290,14 @@ var EN_LOCALE = {
|
|
129326
129290
|
}
|
129327
129291
|
};
|
129328
129292
|
|
129329
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
129293
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/locale/index.js
|
129330
129294
|
var i18n = new I18n();
|
129331
129295
|
var localeKeys = i18n.init("zh", {
|
129332
129296
|
zh: ZH_LOCALE,
|
129333
129297
|
en: EN_LOCALE
|
129334
129298
|
});
|
129335
129299
|
|
129336
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
129300
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/utils/transform.js
|
129337
129301
|
var import_lodash5 = __toESM(require_lodash2());
|
129338
129302
|
function asyncGeneratorStep12(gen, resolve, reject, _next, _throw, key, arg) {
|
129339
129303
|
try {
|
@@ -129542,7 +129506,7 @@ function transformInquirerSchema(questions) {
|
|
129542
129506
|
return questions;
|
129543
129507
|
}
|
129544
129508
|
|
129545
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
129509
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/utils/checkUseNvm.js
|
129546
129510
|
var import_path4 = __toESM(require("path"));
|
129547
129511
|
function asyncGeneratorStep13(gen, resolve, reject, _next, _throw, key, arg) {
|
129548
129512
|
try {
|
@@ -129806,7 +129770,7 @@ function _checkUseNvm() {
|
|
129806
129770
|
return _checkUseNvm.apply(this, arguments);
|
129807
129771
|
}
|
129808
129772
|
|
129809
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
129773
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/index.js
|
129810
129774
|
function _array_like_to_array(arr, len) {
|
129811
129775
|
if (len == null || len > arr.length)
|
129812
129776
|
len = arr.length;
|
@@ -130387,7 +130351,7 @@ var AppAPI = /* @__PURE__ */ function() {
|
|
130387
130351
|
switch (_state2.label) {
|
130388
130352
|
case 0:
|
130389
130353
|
_this.generatorCore.logger.debug("[renderDir] resourceKey=".concat(resourceKey));
|
130390
|
-
target = rename ? rename(resourceKey) : resourceKey.replace("templates/", "").replace(".handlebars", "");
|
130354
|
+
target = rename ? rename(resourceKey) : resourceKey.replace("templates/", "").replace(".handlebars", "").replace(".ejs", "");
|
130391
130355
|
return [
|
130392
130356
|
4,
|
130393
130357
|
api.renderTemplate(material.get(resourceKey), target, _object_spread7({}, _this.generatorContext.data || {}, parameters || {}))
|
@@ -130738,7 +130702,7 @@ var AppAPI = /* @__PURE__ */ function() {
|
|
130738
130702
|
|
130739
130703
|
// ../../generator-utils/dist/esm/index.js
|
130740
130704
|
var import_path5 = __toESM(require("path"));
|
130741
|
-
var
|
130705
|
+
var import_utils15 = __toESM(require_cjs2());
|
130742
130706
|
|
130743
130707
|
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.1/node_modules/@swc/helpers/esm/_define_property.js
|
130744
130708
|
function _define_property13(obj, key, value) {
|
@@ -131062,11 +131026,11 @@ var SubSolutionGenerator = {
|
|
131062
131026
|
var DependenceGenerator = "@modern-js/dependence-generator";
|
131063
131027
|
|
131064
131028
|
// ../../generator-utils/dist/esm/utils/fsExist.js
|
131065
|
-
var
|
131029
|
+
var import_utils14 = __toESM(require_cjs2());
|
131066
131030
|
function fileExist(filePath) {
|
131067
131031
|
return __async(this, null, function* () {
|
131068
131032
|
try {
|
131069
|
-
const stat = yield
|
131033
|
+
const stat = yield import_utils14.fs.stat(filePath);
|
131070
131034
|
if (stat.isFile()) {
|
131071
131035
|
return true;
|
131072
131036
|
}
|
@@ -131078,9 +131042,9 @@ function fileExist(filePath) {
|
|
131078
131042
|
}
|
131079
131043
|
|
131080
131044
|
// ../../generator-utils/dist/esm/index.js
|
131081
|
-
var
|
131045
|
+
var import_utils16 = __toESM(require_cjs2());
|
131082
131046
|
function isTsProject(appDir) {
|
131083
|
-
return
|
131047
|
+
return import_utils15.fs.existsSync(import_path5.default.join(appDir, "tsconfig.json"));
|
131084
131048
|
}
|
131085
131049
|
function getModernConfigFile(appDir) {
|
131086
131050
|
return __async(this, null, function* () {
|
@@ -131150,15 +131114,15 @@ var src_default = (context, generator) => __async(void 0, null, function* () {
|
|
131150
131114
|
const isTS = configFile.endsWith("ts");
|
131151
131115
|
const { pluginName, pluginDependence } = context.config;
|
131152
131116
|
console.info(
|
131153
|
-
|
131117
|
+
import_utils16.chalk.green(`
|
131154
131118
|
[INFO]`),
|
131155
131119
|
`${i18n3.t(localeKeys3.success)}`,
|
131156
|
-
|
131120
|
+
import_utils16.chalk.yellow.bold(`${configFile}`),
|
131157
131121
|
":",
|
131158
131122
|
"\n"
|
131159
131123
|
);
|
131160
131124
|
console.info(
|
131161
|
-
|
131125
|
+
import_utils16.chalk.yellow.bold(`import ${pluginName} from '${pluginDependence}';`)
|
131162
131126
|
);
|
131163
131127
|
if (isTS) {
|
131164
131128
|
console.info(`
|
@@ -131166,9 +131130,9 @@ export default defineConfig({
|
|
131166
131130
|
...,
|
131167
131131
|
output: {
|
131168
131132
|
...,
|
131169
|
-
${
|
131133
|
+
${import_utils16.chalk.yellow.bold(`ssg: true`)},
|
131170
131134
|
},
|
131171
|
-
plugins: [..., ${
|
131135
|
+
plugins: [..., ${import_utils16.chalk.yellow.bold(`${pluginName}()`)}],
|
131172
131136
|
});
|
131173
131137
|
`);
|
131174
131138
|
} else {
|
@@ -131177,9 +131141,9 @@ module.exports = {
|
|
131177
131141
|
...,
|
131178
131142
|
output: {
|
131179
131143
|
...,
|
131180
|
-
${
|
131144
|
+
${import_utils16.chalk.yellow.bold(`ssg: true`)},
|
131181
131145
|
},
|
131182
|
-
plugins: [..., ${
|
131146
|
+
plugins: [..., ${import_utils16.chalk.yellow.bold(`${pluginName}()`)}],
|
131183
131147
|
};
|
131184
131148
|
`);
|
131185
131149
|
}
|
package/package.json
CHANGED
@@ -15,7 +15,7 @@
|
|
15
15
|
"modern",
|
16
16
|
"modern.js"
|
17
17
|
],
|
18
|
-
"version": "3.1.
|
18
|
+
"version": "3.1.18",
|
19
19
|
"jsnext:source": "./src/index.ts",
|
20
20
|
"main": "./dist/index.js",
|
21
21
|
"files": [
|
@@ -23,18 +23,18 @@
|
|
23
23
|
"/dist/index.js"
|
24
24
|
],
|
25
25
|
"devDependencies": {
|
26
|
-
"@modern-js/codesmith": "2.2.
|
27
|
-
"@modern-js/codesmith-api-app": "2.2.
|
26
|
+
"@modern-js/codesmith": "2.2.3",
|
27
|
+
"@modern-js/codesmith-api-app": "2.2.3",
|
28
28
|
"@types/jest": "^29",
|
29
29
|
"@types/node": "^14",
|
30
30
|
"jest": "^29",
|
31
|
-
"typescript": "^
|
32
|
-
"@modern-js/
|
33
|
-
"@modern-js/generator
|
34
|
-
"@modern-js/generator-common": "3.1.
|
35
|
-
"@modern-js/
|
36
|
-
"@scripts/build": "2.
|
37
|
-
"@scripts/jest-config": "2.
|
31
|
+
"typescript": "^5",
|
32
|
+
"@modern-js/plugin-i18n": "2.21.0",
|
33
|
+
"@modern-js/dependence-generator": "3.1.18",
|
34
|
+
"@modern-js/generator-common": "3.1.18",
|
35
|
+
"@modern-js/generator-utils": "3.1.18",
|
36
|
+
"@scripts/build": "2.21.0",
|
37
|
+
"@scripts/jest-config": "2.21.0"
|
38
38
|
},
|
39
39
|
"sideEffects": false,
|
40
40
|
"publishConfig": {
|