@weapp-core/schematics 6.0.1 → 6.0.2
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/README.md +45 -0
- package/dist/index.cjs +26 -26
- package/dist/index.d.cts +36 -0
- package/dist/index.d.ts +36 -0
- package/dist/index.js +26 -26
- package/package.json +1 -1
package/README.md
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# @weapp-core/schematics
|
|
2
|
+
|
|
3
|
+
## 简介
|
|
4
|
+
|
|
5
|
+
`@weapp-core/schematics` 提供小程序文件的生成能力与 JSON Schema 定义,供 weapp-vite 与相关工具进行模板生成、类型提示与校验。
|
|
6
|
+
|
|
7
|
+
## 特性
|
|
8
|
+
|
|
9
|
+
- 生成 JS / WXML / WXSS / JSON 模板
|
|
10
|
+
- 支持不同类型(app/page/component)
|
|
11
|
+
- 导出 JSON Schema 定义供编辑器插件使用
|
|
12
|
+
|
|
13
|
+
## 安装
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
pnpm add @weapp-core/schematics
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## 使用
|
|
20
|
+
|
|
21
|
+
```ts
|
|
22
|
+
import {
|
|
23
|
+
generateJs,
|
|
24
|
+
generateJson,
|
|
25
|
+
generateWxml,
|
|
26
|
+
generateWxss,
|
|
27
|
+
JSON_SCHEMA_DEFINITIONS,
|
|
28
|
+
} from '@weapp-core/schematics'
|
|
29
|
+
|
|
30
|
+
const jsCode = generateJs('page')
|
|
31
|
+
const wxmlCode = generateWxml('pages/index/index')
|
|
32
|
+
const wxssCode = generateWxss()
|
|
33
|
+
const jsonCode = generateJson('component', 'json')
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## 配置
|
|
37
|
+
|
|
38
|
+
`generateJson(type, ext)` 说明:
|
|
39
|
+
|
|
40
|
+
- `type`: `app` / `page` / `component`
|
|
41
|
+
- `ext`: `json` / `js` / `ts`
|
|
42
|
+
|
|
43
|
+
## 相关链接
|
|
44
|
+
|
|
45
|
+
- 仓库:https://github.com/weapp-vite/weapp-vite
|
package/dist/index.cjs
CHANGED
|
@@ -134,7 +134,7 @@ function generateWxss() {
|
|
|
134
134
|
return "";
|
|
135
135
|
}
|
|
136
136
|
|
|
137
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
137
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/core.js
|
|
138
138
|
var NEVER = Object.freeze({
|
|
139
139
|
status: "aborted"
|
|
140
140
|
});
|
|
@@ -208,7 +208,7 @@ function config(newConfig) {
|
|
|
208
208
|
return globalConfig;
|
|
209
209
|
}
|
|
210
210
|
|
|
211
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
211
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/util.js
|
|
212
212
|
var util_exports = {};
|
|
213
213
|
__export(util_exports, {
|
|
214
214
|
BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES,
|
|
@@ -887,7 +887,7 @@ var Class = class {
|
|
|
887
887
|
}
|
|
888
888
|
};
|
|
889
889
|
|
|
890
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
890
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/errors.js
|
|
891
891
|
var initializer = (inst, def) => {
|
|
892
892
|
inst.name = "$ZodError";
|
|
893
893
|
Object.defineProperty(inst, "_zod", {
|
|
@@ -953,7 +953,7 @@ function formatError(error2, mapper = (issue2) => issue2.message) {
|
|
|
953
953
|
return fieldErrors;
|
|
954
954
|
}
|
|
955
955
|
|
|
956
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
956
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/parse.js
|
|
957
957
|
var _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
958
958
|
const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
|
|
959
959
|
const result = schema._zod.run({ value, issues: [] }, ctx);
|
|
@@ -1033,7 +1033,7 @@ var _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
1033
1033
|
return _safeParseAsync(_Err)(schema, value, _ctx);
|
|
1034
1034
|
};
|
|
1035
1035
|
|
|
1036
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
1036
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/regexes.js
|
|
1037
1037
|
var regexes_exports = {};
|
|
1038
1038
|
__export(regexes_exports, {
|
|
1039
1039
|
base64: () => base64,
|
|
@@ -1190,7 +1190,7 @@ var sha512_hex = /^[0-9a-fA-F]{128}$/;
|
|
|
1190
1190
|
var sha512_base64 = /* @__PURE__ */ fixedBase64(86, "==");
|
|
1191
1191
|
var sha512_base64url = /* @__PURE__ */ fixedBase64url(86);
|
|
1192
1192
|
|
|
1193
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
1193
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/checks.js
|
|
1194
1194
|
var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
|
|
1195
1195
|
var _a2;
|
|
1196
1196
|
inst._zod ?? (inst._zod = {});
|
|
@@ -1738,7 +1738,7 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
|
|
|
1738
1738
|
};
|
|
1739
1739
|
});
|
|
1740
1740
|
|
|
1741
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
1741
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/doc.js
|
|
1742
1742
|
var Doc = class {
|
|
1743
1743
|
constructor(args = []) {
|
|
1744
1744
|
this.content = [];
|
|
@@ -1774,14 +1774,14 @@ var Doc = class {
|
|
|
1774
1774
|
}
|
|
1775
1775
|
};
|
|
1776
1776
|
|
|
1777
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
1777
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/versions.js
|
|
1778
1778
|
var version = {
|
|
1779
1779
|
major: 4,
|
|
1780
1780
|
minor: 3,
|
|
1781
|
-
patch:
|
|
1781
|
+
patch: 6
|
|
1782
1782
|
};
|
|
1783
1783
|
|
|
1784
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
1784
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/schemas.js
|
|
1785
1785
|
var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
1786
1786
|
var _a2;
|
|
1787
1787
|
inst ?? (inst = {});
|
|
@@ -3069,7 +3069,7 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
|
|
|
3069
3069
|
if (keyResult instanceof Promise) {
|
|
3070
3070
|
throw new Error("Async schemas not supported in object keys currently");
|
|
3071
3071
|
}
|
|
3072
|
-
const checkNumericKey = typeof key === "string" && number.test(key) && keyResult.issues.length
|
|
3072
|
+
const checkNumericKey = typeof key === "string" && number.test(key) && keyResult.issues.length;
|
|
3073
3073
|
if (checkNumericKey) {
|
|
3074
3074
|
const retryResult = def.keyType._zod.run({ value: Number(key), issues: [] }, ctx);
|
|
3075
3075
|
if (retryResult instanceof Promise) {
|
|
@@ -3752,7 +3752,7 @@ function handleRefineResult(result, payload, input, inst) {
|
|
|
3752
3752
|
}
|
|
3753
3753
|
}
|
|
3754
3754
|
|
|
3755
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
3755
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/en.js
|
|
3756
3756
|
var error = () => {
|
|
3757
3757
|
const Sizable = {
|
|
3758
3758
|
string: { unit: "characters", verb: "to have" },
|
|
@@ -3861,7 +3861,7 @@ function en_default() {
|
|
|
3861
3861
|
};
|
|
3862
3862
|
}
|
|
3863
3863
|
|
|
3864
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
3864
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/registries.js
|
|
3865
3865
|
var _a;
|
|
3866
3866
|
var $ZodRegistry = class {
|
|
3867
3867
|
constructor() {
|
|
@@ -3909,7 +3909,7 @@ function registry() {
|
|
|
3909
3909
|
(_a = globalThis).__zod_globalRegistry ?? (_a.__zod_globalRegistry = registry());
|
|
3910
3910
|
var globalRegistry = globalThis.__zod_globalRegistry;
|
|
3911
3911
|
|
|
3912
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
3912
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/api.js
|
|
3913
3913
|
// @__NO_SIDE_EFFECTS__
|
|
3914
3914
|
function _string(Class2, params) {
|
|
3915
3915
|
return new Class2({
|
|
@@ -4713,7 +4713,7 @@ function _stringFormat(Class2, format, fnOrRegex, _params = {}) {
|
|
|
4713
4713
|
return inst;
|
|
4714
4714
|
}
|
|
4715
4715
|
|
|
4716
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
4716
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/to-json-schema.js
|
|
4717
4717
|
function initializeContext(params) {
|
|
4718
4718
|
let target = params?.target ?? "draft-2020-12";
|
|
4719
4719
|
if (target === "draft-4")
|
|
@@ -4912,7 +4912,7 @@ function finalize(ctx, schema) {
|
|
|
4912
4912
|
}
|
|
4913
4913
|
}
|
|
4914
4914
|
}
|
|
4915
|
-
if (refSchema.$ref) {
|
|
4915
|
+
if (refSchema.$ref && refSeen.def) {
|
|
4916
4916
|
for (const key in schema2) {
|
|
4917
4917
|
if (key === "$ref" || key === "allOf")
|
|
4918
4918
|
continue;
|
|
@@ -5065,7 +5065,7 @@ var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) =
|
|
|
5065
5065
|
return finalize(ctx, schema);
|
|
5066
5066
|
};
|
|
5067
5067
|
|
|
5068
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
5068
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/json-schema-processors.js
|
|
5069
5069
|
var formatMap = {
|
|
5070
5070
|
guid: "uuid",
|
|
5071
5071
|
url: "uri",
|
|
@@ -5616,7 +5616,7 @@ function toJSONSchema(input, params) {
|
|
|
5616
5616
|
return finalize(ctx, input);
|
|
5617
5617
|
}
|
|
5618
5618
|
|
|
5619
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
5619
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/schemas.js
|
|
5620
5620
|
var schemas_exports2 = {};
|
|
5621
5621
|
__export(schemas_exports2, {
|
|
5622
5622
|
ZodAny: () => ZodAny,
|
|
@@ -5785,7 +5785,7 @@ __export(schemas_exports2, {
|
|
|
5785
5785
|
xor: () => xor
|
|
5786
5786
|
});
|
|
5787
5787
|
|
|
5788
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
5788
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/checks.js
|
|
5789
5789
|
var checks_exports2 = {};
|
|
5790
5790
|
__export(checks_exports2, {
|
|
5791
5791
|
endsWith: () => _endsWith,
|
|
@@ -5819,7 +5819,7 @@ __export(checks_exports2, {
|
|
|
5819
5819
|
uppercase: () => _uppercase
|
|
5820
5820
|
});
|
|
5821
5821
|
|
|
5822
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
5822
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/iso.js
|
|
5823
5823
|
var iso_exports = {};
|
|
5824
5824
|
__export(iso_exports, {
|
|
5825
5825
|
ZodISODate: () => ZodISODate,
|
|
@@ -5860,7 +5860,7 @@ function duration2(params) {
|
|
|
5860
5860
|
return _isoDuration(ZodISODuration, params);
|
|
5861
5861
|
}
|
|
5862
5862
|
|
|
5863
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
5863
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/errors.js
|
|
5864
5864
|
var initializer2 = (inst, issues) => {
|
|
5865
5865
|
$ZodError.init(inst, issues);
|
|
5866
5866
|
inst.name = "ZodError";
|
|
@@ -5900,7 +5900,7 @@ var ZodRealError = $constructor("ZodError", initializer2, {
|
|
|
5900
5900
|
Parent: Error
|
|
5901
5901
|
});
|
|
5902
5902
|
|
|
5903
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
5903
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/parse.js
|
|
5904
5904
|
var parse2 = /* @__PURE__ */ _parse(ZodRealError);
|
|
5905
5905
|
var parseAsync2 = /* @__PURE__ */ _parseAsync(ZodRealError);
|
|
5906
5906
|
var safeParse2 = /* @__PURE__ */ _safeParse(ZodRealError);
|
|
@@ -5914,7 +5914,7 @@ var safeDecode = /* @__PURE__ */ _safeDecode(ZodRealError);
|
|
|
5914
5914
|
var safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
|
|
5915
5915
|
var safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
|
|
5916
5916
|
|
|
5917
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
5917
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/schemas.js
|
|
5918
5918
|
var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
5919
5919
|
$ZodType.init(inst, def);
|
|
5920
5920
|
Object.assign(inst["~standard"], {
|
|
@@ -6993,19 +6993,19 @@ function preprocess(fn, schema) {
|
|
|
6993
6993
|
return pipe(transform(fn), schema);
|
|
6994
6994
|
}
|
|
6995
6995
|
|
|
6996
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
6996
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/compat.js
|
|
6997
6997
|
var ZodFirstPartyTypeKind;
|
|
6998
6998
|
/* @__PURE__ */ (function(ZodFirstPartyTypeKind2) {
|
|
6999
6999
|
})(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
|
|
7000
7000
|
|
|
7001
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
7001
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/from-json-schema.js
|
|
7002
7002
|
var z = {
|
|
7003
7003
|
...schemas_exports2,
|
|
7004
7004
|
...checks_exports2,
|
|
7005
7005
|
iso: iso_exports
|
|
7006
7006
|
};
|
|
7007
7007
|
|
|
7008
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
7008
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/external.js
|
|
7009
7009
|
config(en_default());
|
|
7010
7010
|
|
|
7011
7011
|
// scripts/json.ts
|
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description 生成模板的目标类型
|
|
3
|
+
*/
|
|
1
4
|
type GenerateType = 'app' | 'page' | 'component';
|
|
5
|
+
/**
|
|
6
|
+
* @description JSON 输出扩展名
|
|
7
|
+
*/
|
|
2
8
|
type JsonExt = 'json' | 'js' | 'ts' | (string & {});
|
|
3
9
|
|
|
4
10
|
/**
|
|
@@ -380,11 +386,29 @@ interface Plugin$1 {
|
|
|
380
386
|
[k: string]: unknown;
|
|
381
387
|
}
|
|
382
388
|
|
|
389
|
+
/**
|
|
390
|
+
* @description app.json 类型定义
|
|
391
|
+
*/
|
|
383
392
|
type App = App$1;
|
|
393
|
+
/**
|
|
394
|
+
* @description component.json 类型定义
|
|
395
|
+
*/
|
|
384
396
|
type Component = Component$1;
|
|
397
|
+
/**
|
|
398
|
+
* @description page.json 类型定义
|
|
399
|
+
*/
|
|
385
400
|
type Page = Page$1;
|
|
401
|
+
/**
|
|
402
|
+
* @description sitemap.json 类型定义
|
|
403
|
+
*/
|
|
386
404
|
type Sitemap = Sitemap$1;
|
|
405
|
+
/**
|
|
406
|
+
* @description theme.json 类型定义
|
|
407
|
+
*/
|
|
387
408
|
type Theme = Theme$1;
|
|
409
|
+
/**
|
|
410
|
+
* @description plugin.json 类型定义
|
|
411
|
+
*/
|
|
388
412
|
type Plugin = Plugin$1;
|
|
389
413
|
|
|
390
414
|
declare const JSON_SCHEMA_DEFINITIONS: readonly [{
|
|
@@ -413,9 +437,21 @@ declare const JSON_SCHEMA_DEFINITIONS: readonly [{
|
|
|
413
437
|
schema: unknown;
|
|
414
438
|
}];
|
|
415
439
|
|
|
440
|
+
/**
|
|
441
|
+
* @description 生成 JS 模板(app/page/component)
|
|
442
|
+
*/
|
|
416
443
|
declare function generateJs(type?: GenerateType): "App({})" | "Page({})" | "Component({})";
|
|
444
|
+
/**
|
|
445
|
+
* @description 生成 WXSS 模板
|
|
446
|
+
*/
|
|
417
447
|
declare function generateWxss(): string;
|
|
448
|
+
/**
|
|
449
|
+
* @description 生成 WXML 模板
|
|
450
|
+
*/
|
|
418
451
|
declare function generateWxml(filepath?: string): string;
|
|
452
|
+
/**
|
|
453
|
+
* @description 生成 JSON/JS/TS 模板
|
|
454
|
+
*/
|
|
419
455
|
declare function generateJson(type?: GenerateType, ext?: JsonExt): string;
|
|
420
456
|
|
|
421
457
|
export { type App, type Component, type GenerateType, JSON_SCHEMA_DEFINITIONS, type Page, type Plugin, type Sitemap, type Theme, generateJs, generateJson, generateWxml, generateWxss };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description 生成模板的目标类型
|
|
3
|
+
*/
|
|
1
4
|
type GenerateType = 'app' | 'page' | 'component';
|
|
5
|
+
/**
|
|
6
|
+
* @description JSON 输出扩展名
|
|
7
|
+
*/
|
|
2
8
|
type JsonExt = 'json' | 'js' | 'ts' | (string & {});
|
|
3
9
|
|
|
4
10
|
/**
|
|
@@ -380,11 +386,29 @@ interface Plugin$1 {
|
|
|
380
386
|
[k: string]: unknown;
|
|
381
387
|
}
|
|
382
388
|
|
|
389
|
+
/**
|
|
390
|
+
* @description app.json 类型定义
|
|
391
|
+
*/
|
|
383
392
|
type App = App$1;
|
|
393
|
+
/**
|
|
394
|
+
* @description component.json 类型定义
|
|
395
|
+
*/
|
|
384
396
|
type Component = Component$1;
|
|
397
|
+
/**
|
|
398
|
+
* @description page.json 类型定义
|
|
399
|
+
*/
|
|
385
400
|
type Page = Page$1;
|
|
401
|
+
/**
|
|
402
|
+
* @description sitemap.json 类型定义
|
|
403
|
+
*/
|
|
386
404
|
type Sitemap = Sitemap$1;
|
|
405
|
+
/**
|
|
406
|
+
* @description theme.json 类型定义
|
|
407
|
+
*/
|
|
387
408
|
type Theme = Theme$1;
|
|
409
|
+
/**
|
|
410
|
+
* @description plugin.json 类型定义
|
|
411
|
+
*/
|
|
388
412
|
type Plugin = Plugin$1;
|
|
389
413
|
|
|
390
414
|
declare const JSON_SCHEMA_DEFINITIONS: readonly [{
|
|
@@ -413,9 +437,21 @@ declare const JSON_SCHEMA_DEFINITIONS: readonly [{
|
|
|
413
437
|
schema: unknown;
|
|
414
438
|
}];
|
|
415
439
|
|
|
440
|
+
/**
|
|
441
|
+
* @description 生成 JS 模板(app/page/component)
|
|
442
|
+
*/
|
|
416
443
|
declare function generateJs(type?: GenerateType): "App({})" | "Page({})" | "Component({})";
|
|
444
|
+
/**
|
|
445
|
+
* @description 生成 WXSS 模板
|
|
446
|
+
*/
|
|
417
447
|
declare function generateWxss(): string;
|
|
448
|
+
/**
|
|
449
|
+
* @description 生成 WXML 模板
|
|
450
|
+
*/
|
|
418
451
|
declare function generateWxml(filepath?: string): string;
|
|
452
|
+
/**
|
|
453
|
+
* @description 生成 JSON/JS/TS 模板
|
|
454
|
+
*/
|
|
419
455
|
declare function generateJson(type?: GenerateType, ext?: JsonExt): string;
|
|
420
456
|
|
|
421
457
|
export { type App, type Component, type GenerateType, JSON_SCHEMA_DEFINITIONS, type Page, type Plugin, type Sitemap, type Theme, generateJs, generateJson, generateWxml, generateWxss };
|
package/dist/index.js
CHANGED
|
@@ -100,7 +100,7 @@ function generateWxss() {
|
|
|
100
100
|
return "";
|
|
101
101
|
}
|
|
102
102
|
|
|
103
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
103
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/core.js
|
|
104
104
|
var NEVER = Object.freeze({
|
|
105
105
|
status: "aborted"
|
|
106
106
|
});
|
|
@@ -174,7 +174,7 @@ function config(newConfig) {
|
|
|
174
174
|
return globalConfig;
|
|
175
175
|
}
|
|
176
176
|
|
|
177
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
177
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/util.js
|
|
178
178
|
var util_exports = {};
|
|
179
179
|
__export(util_exports, {
|
|
180
180
|
BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES,
|
|
@@ -853,7 +853,7 @@ var Class = class {
|
|
|
853
853
|
}
|
|
854
854
|
};
|
|
855
855
|
|
|
856
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
856
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/errors.js
|
|
857
857
|
var initializer = (inst, def) => {
|
|
858
858
|
inst.name = "$ZodError";
|
|
859
859
|
Object.defineProperty(inst, "_zod", {
|
|
@@ -919,7 +919,7 @@ function formatError(error2, mapper = (issue2) => issue2.message) {
|
|
|
919
919
|
return fieldErrors;
|
|
920
920
|
}
|
|
921
921
|
|
|
922
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
922
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/parse.js
|
|
923
923
|
var _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
924
924
|
const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
|
|
925
925
|
const result = schema._zod.run({ value, issues: [] }, ctx);
|
|
@@ -999,7 +999,7 @@ var _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
999
999
|
return _safeParseAsync(_Err)(schema, value, _ctx);
|
|
1000
1000
|
};
|
|
1001
1001
|
|
|
1002
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
1002
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/regexes.js
|
|
1003
1003
|
var regexes_exports = {};
|
|
1004
1004
|
__export(regexes_exports, {
|
|
1005
1005
|
base64: () => base64,
|
|
@@ -1156,7 +1156,7 @@ var sha512_hex = /^[0-9a-fA-F]{128}$/;
|
|
|
1156
1156
|
var sha512_base64 = /* @__PURE__ */ fixedBase64(86, "==");
|
|
1157
1157
|
var sha512_base64url = /* @__PURE__ */ fixedBase64url(86);
|
|
1158
1158
|
|
|
1159
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
1159
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/checks.js
|
|
1160
1160
|
var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
|
|
1161
1161
|
var _a2;
|
|
1162
1162
|
inst._zod ?? (inst._zod = {});
|
|
@@ -1704,7 +1704,7 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
|
|
|
1704
1704
|
};
|
|
1705
1705
|
});
|
|
1706
1706
|
|
|
1707
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
1707
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/doc.js
|
|
1708
1708
|
var Doc = class {
|
|
1709
1709
|
constructor(args = []) {
|
|
1710
1710
|
this.content = [];
|
|
@@ -1740,14 +1740,14 @@ var Doc = class {
|
|
|
1740
1740
|
}
|
|
1741
1741
|
};
|
|
1742
1742
|
|
|
1743
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
1743
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/versions.js
|
|
1744
1744
|
var version = {
|
|
1745
1745
|
major: 4,
|
|
1746
1746
|
minor: 3,
|
|
1747
|
-
patch:
|
|
1747
|
+
patch: 6
|
|
1748
1748
|
};
|
|
1749
1749
|
|
|
1750
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
1750
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/schemas.js
|
|
1751
1751
|
var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
1752
1752
|
var _a2;
|
|
1753
1753
|
inst ?? (inst = {});
|
|
@@ -3035,7 +3035,7 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
|
|
|
3035
3035
|
if (keyResult instanceof Promise) {
|
|
3036
3036
|
throw new Error("Async schemas not supported in object keys currently");
|
|
3037
3037
|
}
|
|
3038
|
-
const checkNumericKey = typeof key === "string" && number.test(key) && keyResult.issues.length
|
|
3038
|
+
const checkNumericKey = typeof key === "string" && number.test(key) && keyResult.issues.length;
|
|
3039
3039
|
if (checkNumericKey) {
|
|
3040
3040
|
const retryResult = def.keyType._zod.run({ value: Number(key), issues: [] }, ctx);
|
|
3041
3041
|
if (retryResult instanceof Promise) {
|
|
@@ -3718,7 +3718,7 @@ function handleRefineResult(result, payload, input, inst) {
|
|
|
3718
3718
|
}
|
|
3719
3719
|
}
|
|
3720
3720
|
|
|
3721
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
3721
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/en.js
|
|
3722
3722
|
var error = () => {
|
|
3723
3723
|
const Sizable = {
|
|
3724
3724
|
string: { unit: "characters", verb: "to have" },
|
|
@@ -3827,7 +3827,7 @@ function en_default() {
|
|
|
3827
3827
|
};
|
|
3828
3828
|
}
|
|
3829
3829
|
|
|
3830
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
3830
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/registries.js
|
|
3831
3831
|
var _a;
|
|
3832
3832
|
var $ZodRegistry = class {
|
|
3833
3833
|
constructor() {
|
|
@@ -3875,7 +3875,7 @@ function registry() {
|
|
|
3875
3875
|
(_a = globalThis).__zod_globalRegistry ?? (_a.__zod_globalRegistry = registry());
|
|
3876
3876
|
var globalRegistry = globalThis.__zod_globalRegistry;
|
|
3877
3877
|
|
|
3878
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
3878
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/api.js
|
|
3879
3879
|
// @__NO_SIDE_EFFECTS__
|
|
3880
3880
|
function _string(Class2, params) {
|
|
3881
3881
|
return new Class2({
|
|
@@ -4679,7 +4679,7 @@ function _stringFormat(Class2, format, fnOrRegex, _params = {}) {
|
|
|
4679
4679
|
return inst;
|
|
4680
4680
|
}
|
|
4681
4681
|
|
|
4682
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
4682
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/to-json-schema.js
|
|
4683
4683
|
function initializeContext(params) {
|
|
4684
4684
|
let target = params?.target ?? "draft-2020-12";
|
|
4685
4685
|
if (target === "draft-4")
|
|
@@ -4878,7 +4878,7 @@ function finalize(ctx, schema) {
|
|
|
4878
4878
|
}
|
|
4879
4879
|
}
|
|
4880
4880
|
}
|
|
4881
|
-
if (refSchema.$ref) {
|
|
4881
|
+
if (refSchema.$ref && refSeen.def) {
|
|
4882
4882
|
for (const key in schema2) {
|
|
4883
4883
|
if (key === "$ref" || key === "allOf")
|
|
4884
4884
|
continue;
|
|
@@ -5031,7 +5031,7 @@ var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) =
|
|
|
5031
5031
|
return finalize(ctx, schema);
|
|
5032
5032
|
};
|
|
5033
5033
|
|
|
5034
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
5034
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/json-schema-processors.js
|
|
5035
5035
|
var formatMap = {
|
|
5036
5036
|
guid: "uuid",
|
|
5037
5037
|
url: "uri",
|
|
@@ -5582,7 +5582,7 @@ function toJSONSchema(input, params) {
|
|
|
5582
5582
|
return finalize(ctx, input);
|
|
5583
5583
|
}
|
|
5584
5584
|
|
|
5585
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
5585
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/schemas.js
|
|
5586
5586
|
var schemas_exports2 = {};
|
|
5587
5587
|
__export(schemas_exports2, {
|
|
5588
5588
|
ZodAny: () => ZodAny,
|
|
@@ -5751,7 +5751,7 @@ __export(schemas_exports2, {
|
|
|
5751
5751
|
xor: () => xor
|
|
5752
5752
|
});
|
|
5753
5753
|
|
|
5754
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
5754
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/checks.js
|
|
5755
5755
|
var checks_exports2 = {};
|
|
5756
5756
|
__export(checks_exports2, {
|
|
5757
5757
|
endsWith: () => _endsWith,
|
|
@@ -5785,7 +5785,7 @@ __export(checks_exports2, {
|
|
|
5785
5785
|
uppercase: () => _uppercase
|
|
5786
5786
|
});
|
|
5787
5787
|
|
|
5788
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
5788
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/iso.js
|
|
5789
5789
|
var iso_exports = {};
|
|
5790
5790
|
__export(iso_exports, {
|
|
5791
5791
|
ZodISODate: () => ZodISODate,
|
|
@@ -5826,7 +5826,7 @@ function duration2(params) {
|
|
|
5826
5826
|
return _isoDuration(ZodISODuration, params);
|
|
5827
5827
|
}
|
|
5828
5828
|
|
|
5829
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
5829
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/errors.js
|
|
5830
5830
|
var initializer2 = (inst, issues) => {
|
|
5831
5831
|
$ZodError.init(inst, issues);
|
|
5832
5832
|
inst.name = "ZodError";
|
|
@@ -5866,7 +5866,7 @@ var ZodRealError = $constructor("ZodError", initializer2, {
|
|
|
5866
5866
|
Parent: Error
|
|
5867
5867
|
});
|
|
5868
5868
|
|
|
5869
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
5869
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/parse.js
|
|
5870
5870
|
var parse2 = /* @__PURE__ */ _parse(ZodRealError);
|
|
5871
5871
|
var parseAsync2 = /* @__PURE__ */ _parseAsync(ZodRealError);
|
|
5872
5872
|
var safeParse2 = /* @__PURE__ */ _safeParse(ZodRealError);
|
|
@@ -5880,7 +5880,7 @@ var safeDecode = /* @__PURE__ */ _safeDecode(ZodRealError);
|
|
|
5880
5880
|
var safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
|
|
5881
5881
|
var safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
|
|
5882
5882
|
|
|
5883
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
5883
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/schemas.js
|
|
5884
5884
|
var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
5885
5885
|
$ZodType.init(inst, def);
|
|
5886
5886
|
Object.assign(inst["~standard"], {
|
|
@@ -6959,19 +6959,19 @@ function preprocess(fn, schema) {
|
|
|
6959
6959
|
return pipe(transform(fn), schema);
|
|
6960
6960
|
}
|
|
6961
6961
|
|
|
6962
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
6962
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/compat.js
|
|
6963
6963
|
var ZodFirstPartyTypeKind;
|
|
6964
6964
|
/* @__PURE__ */ (function(ZodFirstPartyTypeKind2) {
|
|
6965
6965
|
})(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
|
|
6966
6966
|
|
|
6967
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
6967
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/from-json-schema.js
|
|
6968
6968
|
var z = {
|
|
6969
6969
|
...schemas_exports2,
|
|
6970
6970
|
...checks_exports2,
|
|
6971
6971
|
iso: iso_exports
|
|
6972
6972
|
};
|
|
6973
6973
|
|
|
6974
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
6974
|
+
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/external.js
|
|
6975
6975
|
config(en_default());
|
|
6976
6976
|
|
|
6977
6977
|
// scripts/json.ts
|