vize 0.744.0 → 0.745.0
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/{config-MdiOtnz9.mjs → config-CtyVnTG0.mjs} +2 -2
- package/dist/config-CtyVnTG0.mjs.map +1 -0
- package/dist/{config-D4HR1IDj.d.mts → config-V1_fhsm2.d.mts} +13 -2
- package/dist/config-V1_fhsm2.d.mts.map +1 -0
- package/dist/config.d.mts +1 -1
- package/dist/config.mjs +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +1 -1
- package/generated/content-mapper-types.d.ts +8 -5
- package/package.json +3 -2
- package/pkl/LinterConfig.pkl +17 -0
- package/pkl/jsonschema/LintRuleOptionsSchemaDefinitions.pkl +30 -0
- package/pkl/vize.pkl +17 -0
- package/schemas/vize.config.schema.json +45 -0
- package/src/types/generated.ts +13 -0
- package/src/types/rules.ts +2 -0
- package/virtual-ts-globals.d.ts +8 -8
- package/virtual-ts-listeners.d.ts +81 -0
- package/virtual-ts-refs.d.ts +40 -0
- package/virtual-ts.d.cts +23 -29
- package/virtual-ts.d.mts +23 -29
- package/virtual-ts.d.ts +23 -29
- package/dist/config-D4HR1IDj.d.mts.map +0 -1
- package/dist/config-MdiOtnz9.mjs.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-V1_fhsm2.d.mts","names":["mode","command","isSsrBuild","isPreview","filePath","typeChecker","jsxTypecheck","T","vue","source","base","own","ConfigEnv","env","configDir","Promise","exported"],"sources":["../src/types/generated.ts","../src/types/rules.ts","../src/types/runtime.ts","../src/types/index.ts","../../../crates/vize_carton/src/config/loader/vite-runtime.d.mts","../src/config.ts"],"mappings":";;AAOA;;;;KAAY,UAAA,GAAa,WAAW,CAAC,YAAA;AAAA,KAEzB,YAAA;AAAA,KAEA,YAAA;;;AAFY;KAOZ,UAAA;;;;UAKK,UAAA;EALL;;;EASV,IAAA;EAToB;AAKtB;;EAQE,QAAA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BxD,sBAAA;;;;cC6BA,iBAAA;;cAaA,4BAAA;ALlCb;AAAA,cKyCa,2BAAA;;;ALzCW;AAExB;iBK6CgB,YAAA,CAAa,MAAA,EAAQ,gBAAA,GAAmB,gBAAgB;;iBAKlD,uBAAA,CACpB,QAAA,WACA,GAAA,GAAM,SAAA,EACN,SAAA,YACC,OAAA,CAAQ,kBAAA;ALtDa;AAKxB;;AALwB,iBK6DF,UAAA,CACpB,IAAA,UACA,OAAA,GAAS,iBAAA,GACR,OAAA,CAAQ,kBAAA;;iBAyHW,mBAAA,CACpB,QAAA,EAAU,gBAAA,EACV,GAAA,GAAM,SAAA,GACL,OAAA,CAAQ,kBAAA;ALlLX;;;AAAA,iBKsSgB,oBAAA,CACd,MAAA,EAAQ,iBAAA,GACP,MAAA,SAAe,qBAAA"}
|
package/dist/config.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as loadConfig, c as resolveViteConfigExport, i as defineConfig, l as VITE_CONFIG_FILE_NAMES, n as VIZE_CONFIG_JSON_SCHEMA_PATH, o as normalizeGlobalTypes, r as VIZE_CONFIG_PKL_SCHEMA_PATH, s as resolveConfigExport, t as CONFIG_FILE_NAMES } from "./config-
|
|
1
|
+
import { a as loadConfig, c as resolveViteConfigExport, i as defineConfig, l as VITE_CONFIG_FILE_NAMES, n as VIZE_CONFIG_JSON_SCHEMA_PATH, o as normalizeGlobalTypes, r as VIZE_CONFIG_PKL_SCHEMA_PATH, s as resolveConfigExport, t as CONFIG_FILE_NAMES } from "./config-V1_fhsm2.mjs";
|
|
2
2
|
export { CONFIG_FILE_NAMES, VITE_CONFIG_FILE_NAMES, VIZE_CONFIG_JSON_SCHEMA_PATH, VIZE_CONFIG_PKL_SCHEMA_PATH, defineConfig, loadConfig, normalizeGlobalTypes, resolveConfigExport, resolveViteConfigExport };
|
package/dist/config.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as loadConfig, c as resolveViteConfigExport, i as defineConfig, l as VITE_CONFIG_FILE_NAMES, n as VIZE_CONFIG_JSON_SCHEMA_PATH, o as normalizeGlobalTypes, r as VIZE_CONFIG_PKL_SCHEMA_PATH, s as resolveConfigExport, t as CONFIG_FILE_NAMES } from "./config-
|
|
1
|
+
import { a as loadConfig, c as resolveViteConfigExport, i as defineConfig, l as VITE_CONFIG_FILE_NAMES, n as VIZE_CONFIG_JSON_SCHEMA_PATH, o as normalizeGlobalTypes, r as VIZE_CONFIG_PKL_SCHEMA_PATH, s as resolveConfigExport, t as CONFIG_FILE_NAMES } from "./config-CtyVnTG0.mjs";
|
|
2
2
|
export { CONFIG_FILE_NAMES, VITE_CONFIG_FILE_NAMES, VIZE_CONFIG_JSON_SCHEMA_PATH, VIZE_CONFIG_PKL_SCHEMA_PATH, defineConfig, loadConfig, normalizeGlobalTypes, resolveConfigExport, resolveViteConfigExport };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as LibConfig, B as VitePluginConfig, C as LintRulesConfig, D as GlobalTypeDeclaration, E as FormatterConfig, F as MuseaConfig, H as VizeConfigEntry, I as MuseaVrtConfig, L as RuleCategory, M as LinterConfig, N as MuseaA11yConfig, O as GlobalTypesConfig, P as MuseaAutogenConfig, R as RuleSeverity, S as LintRuleName, T as CompilerConfig, U as VueVersion, V as VizeConfig, _ as UserConfigExport, a as loadConfig, b as VueOptions, c as resolveViteConfigExport, d as ConfigEnv, f as LoadConfigOptions, g as UserConfigEntry, h as UserConfig, i as defineConfig, j as LintPreset, k as LanguageServerConfig, l as VITE_CONFIG_FILE_NAMES, m as ResolvedVizeConfig, n as VIZE_CONFIG_JSON_SCHEMA_PATH, o as normalizeGlobalTypes, p as MaybePromise, r as VIZE_CONFIG_PKL_SCHEMA_PATH, s as resolveConfigExport, t as CONFIG_FILE_NAMES, u as LspConfig, v as UserConfigInput, w as CompilerCompatibilityConfig, x as VueOptionsEntry, y as VueConfig, z as TypeCheckerConfig } from "./config-
|
|
1
|
+
import { A as LibConfig, B as VitePluginConfig, C as LintRulesConfig, D as GlobalTypeDeclaration, E as FormatterConfig, F as MuseaConfig, H as VizeConfigEntry, I as MuseaVrtConfig, L as RuleCategory, M as LinterConfig, N as MuseaA11yConfig, O as GlobalTypesConfig, P as MuseaAutogenConfig, R as RuleSeverity, S as LintRuleName, T as CompilerConfig, U as VueVersion, V as VizeConfig, _ as UserConfigExport, a as loadConfig, b as VueOptions, c as resolveViteConfigExport, d as ConfigEnv, f as LoadConfigOptions, g as UserConfigEntry, h as UserConfig, i as defineConfig, j as LintPreset, k as LanguageServerConfig, l as VITE_CONFIG_FILE_NAMES, m as ResolvedVizeConfig, n as VIZE_CONFIG_JSON_SCHEMA_PATH, o as normalizeGlobalTypes, p as MaybePromise, r as VIZE_CONFIG_PKL_SCHEMA_PATH, s as resolveConfigExport, t as CONFIG_FILE_NAMES, u as LspConfig, v as UserConfigInput, w as CompilerCompatibilityConfig, x as VueOptionsEntry, y as VueConfig, z as TypeCheckerConfig } from "./config-V1_fhsm2.mjs";
|
|
2
2
|
export { CONFIG_FILE_NAMES, type CompilerCompatibilityConfig, type CompilerConfig, type ConfigEnv, type FormatterConfig, type GlobalTypeDeclaration, type GlobalTypesConfig, type LanguageServerConfig, type LibConfig, type LintPreset, type LintRuleName, type LintRulesConfig, type LinterConfig, type LoadConfigOptions, type LspConfig, type MaybePromise, type MuseaA11yConfig, type MuseaAutogenConfig, type MuseaConfig, type MuseaVrtConfig, type ResolvedVizeConfig, type RuleCategory, type RuleSeverity, type TypeCheckerConfig, type UserConfig, type UserConfigEntry, type UserConfigExport, type UserConfigInput, VITE_CONFIG_FILE_NAMES, VIZE_CONFIG_JSON_SCHEMA_PATH, VIZE_CONFIG_PKL_SCHEMA_PATH, type VitePluginConfig, type VizeConfig, type VizeConfigEntry, type VueConfig, type VueOptions, type VueOptionsEntry, type VueVersion, defineConfig, loadConfig, normalizeGlobalTypes, resolveConfigExport, resolveViteConfigExport };
|
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as loadConfig, c as resolveViteConfigExport, i as defineConfig, l as VITE_CONFIG_FILE_NAMES, n as VIZE_CONFIG_JSON_SCHEMA_PATH, o as normalizeGlobalTypes, r as VIZE_CONFIG_PKL_SCHEMA_PATH, s as resolveConfigExport, t as CONFIG_FILE_NAMES } from "./config-
|
|
1
|
+
import { a as loadConfig, c as resolveViteConfigExport, i as defineConfig, l as VITE_CONFIG_FILE_NAMES, n as VIZE_CONFIG_JSON_SCHEMA_PATH, o as normalizeGlobalTypes, r as VIZE_CONFIG_PKL_SCHEMA_PATH, s as resolveConfigExport, t as CONFIG_FILE_NAMES } from "./config-CtyVnTG0.mjs";
|
|
2
2
|
export { CONFIG_FILE_NAMES, VITE_CONFIG_FILE_NAMES, VIZE_CONFIG_JSON_SCHEMA_PATH, VIZE_CONFIG_PKL_SCHEMA_PATH, defineConfig, loadConfig, normalizeGlobalTypes, resolveConfigExport, resolveViteConfigExport };
|
|
@@ -107,11 +107,14 @@ type __WithDefaultsResult<T, D, __BKeys extends keyof T = never> = T extends unk
|
|
|
107
107
|
type __Ref<T> = import("vue").Ref<T>;
|
|
108
108
|
type __ShallowRef<T> = import("vue").ShallowRef<T>;
|
|
109
109
|
|
|
110
|
-
type $KebabCase<S extends string, Acc extends string = ""> =
|
|
111
|
-
|
|
112
|
-
?
|
|
113
|
-
:
|
|
114
|
-
|
|
110
|
+
type $KebabCase<S extends string, Acc extends string = ""> =
|
|
111
|
+
S extends Lowercase<S>
|
|
112
|
+
? `${Acc}${S}`
|
|
113
|
+
: S extends `${infer Head}${infer Tail}`
|
|
114
|
+
? Head extends Lowercase<Head>
|
|
115
|
+
? $KebabCase<Tail, `${Acc}${Head}`>
|
|
116
|
+
: $KebabCase<Tail, `${Acc}-${Lowercase<Head>}`>
|
|
117
|
+
: `${Acc}${S}`;
|
|
115
118
|
type $KebabProps<T> = { [K in keyof T & string as $KebabCase<K>]: T[K] };
|
|
116
119
|
type $RequiredKeys<T> = { [K in keyof T]-?: {} extends Pick<T, K> ? never : K }[keyof T];
|
|
117
120
|
type $DomListenerProps = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vize",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.745.0",
|
|
4
4
|
"description": "Vize - High-performance Vue.js toolchain in Rust",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
"virtual-ts-listeners.d.ts",
|
|
39
39
|
"virtual-ts-patterns.d.ts",
|
|
40
40
|
"virtual-ts-slots.d.ts",
|
|
41
|
+
"virtual-ts-refs.d.ts",
|
|
41
42
|
"virtual-ts-emits.d.ts",
|
|
42
43
|
"virtual-ts.d.ts",
|
|
43
44
|
"virtual-ts.d.mts",
|
|
@@ -92,7 +93,7 @@
|
|
|
92
93
|
"access": "public"
|
|
93
94
|
},
|
|
94
95
|
"dependencies": {
|
|
95
|
-
"@vizejs/native": "0.
|
|
96
|
+
"@vizejs/native": "0.745.0",
|
|
96
97
|
"oxc-transform": "0.157.0"
|
|
97
98
|
},
|
|
98
99
|
"devDependencies": {
|
package/pkl/LinterConfig.pkl
CHANGED
|
@@ -225,6 +225,21 @@ class BlockLangOptions {
|
|
|
225
225
|
style: BlockLangBlock? = null
|
|
226
226
|
}
|
|
227
227
|
|
|
228
|
+
class MaxLinesObject {
|
|
229
|
+
max: Int? = null
|
|
230
|
+
skipComments: Boolean? = null
|
|
231
|
+
skipBlankLines: Boolean? = null
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
typealias MaxLinesOptions = Int | MaxLinesObject
|
|
235
|
+
|
|
236
|
+
class MaxLinesPerBlockOptions {
|
|
237
|
+
style: Int? = null
|
|
238
|
+
template: Int? = null
|
|
239
|
+
script: Int? = null
|
|
240
|
+
skipBlankLines: Boolean? = null
|
|
241
|
+
}
|
|
242
|
+
|
|
228
243
|
class RestrictedSyntaxSelector {
|
|
229
244
|
/// esquery selector from the supported subset (see the rule options docs).
|
|
230
245
|
selector: String
|
|
@@ -261,6 +276,8 @@ class LintRuleOptions {
|
|
|
261
276
|
`a11y/anchor-has-content`: AnchorHasContentOptions? = null
|
|
262
277
|
`a11y/label-has-for`: LabelHasForOptions? = null
|
|
263
278
|
`vue/block-lang`: BlockLangOptions? = null
|
|
279
|
+
`max-lines`: MaxLinesOptions? = null
|
|
280
|
+
`vue/max-lines-per-block`: MaxLinesPerBlockOptions? = null
|
|
264
281
|
`vue/enforce-style-attribute`: EnforceStyleAttributeOptions? = null
|
|
265
282
|
`vue/no-restricted-syntax`: (Listing<RestrictedSyntaxEntry> | NoRestrictedSyntaxOptions)? = null
|
|
266
283
|
`vue/quote-props`: "as-needed"? = null
|
|
@@ -51,6 +51,34 @@ blockLangBlockDef: JsonSchema = new JsonSchema {
|
|
|
51
51
|
additionalProperties = false
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
+
maxLinesObjectDef: JsonSchema = new JsonSchema {
|
|
55
|
+
type = "object"
|
|
56
|
+
properties {
|
|
57
|
+
["max"] = new JsonSchema { type = "integer"; minimum = 0 }
|
|
58
|
+
["skipComments"] = new JsonSchema { type = "boolean" }
|
|
59
|
+
["skipBlankLines"] = new JsonSchema { type = "boolean" }
|
|
60
|
+
}
|
|
61
|
+
additionalProperties = false
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
maxLinesDef: JsonSchema = new JsonSchema {
|
|
65
|
+
oneOf = new Listing {
|
|
66
|
+
new JsonSchema { type = "integer"; minimum = 0 }
|
|
67
|
+
maxLinesObjectDef
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
maxLinesPerBlockDef: JsonSchema = new JsonSchema {
|
|
72
|
+
type = "object"
|
|
73
|
+
properties {
|
|
74
|
+
["style"] = new JsonSchema { type = "integer"; minimum = 1 }
|
|
75
|
+
["template"] = new JsonSchema { type = "integer"; minimum = 1 }
|
|
76
|
+
["script"] = new JsonSchema { type = "integer"; minimum = 1 }
|
|
77
|
+
["skipBlankLines"] = new JsonSchema { type = "boolean" }
|
|
78
|
+
}
|
|
79
|
+
additionalProperties = false
|
|
80
|
+
}
|
|
81
|
+
|
|
54
82
|
lintRuleOptionsDef: JsonSchema = new JsonSchema {
|
|
55
83
|
type = "object"
|
|
56
84
|
properties {
|
|
@@ -152,6 +180,8 @@ lintRuleOptionsDef: JsonSchema = new JsonSchema {
|
|
|
152
180
|
}
|
|
153
181
|
additionalProperties = false
|
|
154
182
|
}
|
|
183
|
+
["max-lines"] = maxLinesDef
|
|
184
|
+
["vue/max-lines-per-block"] = maxLinesPerBlockDef
|
|
155
185
|
["vue/enforce-style-attribute"] = new JsonSchema {
|
|
156
186
|
type = "object"
|
|
157
187
|
properties {
|
package/pkl/vize.pkl
CHANGED
|
@@ -256,6 +256,21 @@ class BlockLangOptions {
|
|
|
256
256
|
style: BlockLangBlock? = null
|
|
257
257
|
}
|
|
258
258
|
|
|
259
|
+
class MaxLinesObject {
|
|
260
|
+
max: Int? = null
|
|
261
|
+
skipComments: Boolean? = null
|
|
262
|
+
skipBlankLines: Boolean? = null
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
typealias MaxLinesOptions = Int | MaxLinesObject
|
|
266
|
+
|
|
267
|
+
class MaxLinesPerBlockOptions {
|
|
268
|
+
style: Int? = null
|
|
269
|
+
template: Int? = null
|
|
270
|
+
script: Int? = null
|
|
271
|
+
skipBlankLines: Boolean? = null
|
|
272
|
+
}
|
|
273
|
+
|
|
259
274
|
class SortKeysOptions {
|
|
260
275
|
order: "asc" | "desc" = "asc"
|
|
261
276
|
caseSensitive: Boolean = true
|
|
@@ -279,6 +294,8 @@ class LintRuleOptions {
|
|
|
279
294
|
`a11y/anchor-has-content`: AnchorHasContentOptions? = null
|
|
280
295
|
`a11y/label-has-for`: LabelHasForOptions? = null
|
|
281
296
|
`vue/block-lang`: BlockLangOptions? = null
|
|
297
|
+
`max-lines`: MaxLinesOptions? = null
|
|
298
|
+
`vue/max-lines-per-block`: MaxLinesPerBlockOptions? = null
|
|
282
299
|
`vue/enforce-style-attribute`: EnforceStyleAttributeOptions? = null
|
|
283
300
|
`vue/no-restricted-syntax`: (Listing<RestrictedSyntaxEntry> | NoRestrictedSyntaxOptions)? = null
|
|
284
301
|
`vue/quote-props`: "as-needed"? = null
|
|
@@ -769,6 +769,51 @@
|
|
|
769
769
|
},
|
|
770
770
|
"additionalProperties": false
|
|
771
771
|
},
|
|
772
|
+
"max-lines": {
|
|
773
|
+
"oneOf": [
|
|
774
|
+
{
|
|
775
|
+
"type": "integer",
|
|
776
|
+
"minimum": 0
|
|
777
|
+
},
|
|
778
|
+
{
|
|
779
|
+
"type": "object",
|
|
780
|
+
"properties": {
|
|
781
|
+
"max": {
|
|
782
|
+
"type": "integer",
|
|
783
|
+
"minimum": 0
|
|
784
|
+
},
|
|
785
|
+
"skipComments": {
|
|
786
|
+
"type": "boolean"
|
|
787
|
+
},
|
|
788
|
+
"skipBlankLines": {
|
|
789
|
+
"type": "boolean"
|
|
790
|
+
}
|
|
791
|
+
},
|
|
792
|
+
"additionalProperties": false
|
|
793
|
+
}
|
|
794
|
+
]
|
|
795
|
+
},
|
|
796
|
+
"vue/max-lines-per-block": {
|
|
797
|
+
"type": "object",
|
|
798
|
+
"properties": {
|
|
799
|
+
"style": {
|
|
800
|
+
"type": "integer",
|
|
801
|
+
"minimum": 1
|
|
802
|
+
},
|
|
803
|
+
"template": {
|
|
804
|
+
"type": "integer",
|
|
805
|
+
"minimum": 1
|
|
806
|
+
},
|
|
807
|
+
"script": {
|
|
808
|
+
"type": "integer",
|
|
809
|
+
"minimum": 1
|
|
810
|
+
},
|
|
811
|
+
"skipBlankLines": {
|
|
812
|
+
"type": "boolean"
|
|
813
|
+
}
|
|
814
|
+
},
|
|
815
|
+
"additionalProperties": false
|
|
816
|
+
},
|
|
772
817
|
"vue/enforce-style-attribute": {
|
|
773
818
|
"type": "object",
|
|
774
819
|
"properties": {
|
package/src/types/generated.ts
CHANGED
|
@@ -329,6 +329,19 @@ export interface LintRuleOptions {
|
|
|
329
329
|
required?: boolean;
|
|
330
330
|
};
|
|
331
331
|
};
|
|
332
|
+
"max-lines"?:
|
|
333
|
+
| number
|
|
334
|
+
| {
|
|
335
|
+
max?: number;
|
|
336
|
+
skipComments?: boolean;
|
|
337
|
+
skipBlankLines?: boolean;
|
|
338
|
+
};
|
|
339
|
+
"vue/max-lines-per-block"?: {
|
|
340
|
+
style?: number;
|
|
341
|
+
template?: number;
|
|
342
|
+
script?: number;
|
|
343
|
+
skipBlankLines?: boolean;
|
|
344
|
+
};
|
|
332
345
|
"vue/enforce-style-attribute"?: {
|
|
333
346
|
allow?: ("plain" | "scoped" | "module")[];
|
|
334
347
|
};
|
package/src/types/rules.ts
CHANGED
|
@@ -62,6 +62,7 @@ export const LINT_RULE_NAMES = [
|
|
|
62
62
|
"html/no-duplicate-dt",
|
|
63
63
|
"html/no-empty-palpable-content",
|
|
64
64
|
"html/require-datetime",
|
|
65
|
+
"max-lines",
|
|
65
66
|
"musea/no-empty-variant",
|
|
66
67
|
"musea/prefer-design-tokens",
|
|
67
68
|
"musea/require-component",
|
|
@@ -182,6 +183,7 @@ export const LINT_RULE_NAMES = [
|
|
|
182
183
|
"vue/html-self-closing",
|
|
183
184
|
"vue/jsx-uses-vars",
|
|
184
185
|
"vue/match-component-file-name",
|
|
186
|
+
"vue/max-lines-per-block",
|
|
185
187
|
"vue/max-template-complexity",
|
|
186
188
|
"vue/multi-word-component-names",
|
|
187
189
|
"vue/mustache-interpolation-spacing",
|
package/virtual-ts-globals.d.ts
CHANGED
|
@@ -109,14 +109,14 @@ declare global {
|
|
|
109
109
|
: never;
|
|
110
110
|
type __Ref<T> = import("vue").Ref<T>;
|
|
111
111
|
type __ShallowRef<T> = import("vue").ShallowRef<T>;
|
|
112
|
-
type $KebabCase<
|
|
113
|
-
S extends
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
112
|
+
type $KebabCase<S extends string, Acc extends string = ""> =
|
|
113
|
+
S extends Lowercase<S>
|
|
114
|
+
? `${Acc}${S}`
|
|
115
|
+
: S extends `${infer Head}${infer Tail}`
|
|
116
|
+
? Head extends Lowercase<Head>
|
|
117
|
+
? $KebabCase<Tail, `${Acc}${Head}`>
|
|
118
|
+
: $KebabCase<Tail, `${Acc}-${Lowercase<Head>}`>
|
|
119
|
+
: `${Acc}${S}`;
|
|
120
120
|
type $KebabProps<T> = { [K in keyof T & string as $KebabCase<K>]: T[K] };
|
|
121
121
|
type $RequiredKeys<T> = { [K in keyof T]-?: {} extends Pick<T, K> ? never : K }[keyof T];
|
|
122
122
|
type $DomListenerProps = {
|
|
@@ -170,3 +170,84 @@ export type $ClosedEmit<C, A = C> = [C] extends [never]
|
|
|
170
170
|
: [E]
|
|
171
171
|
: false
|
|
172
172
|
: false;
|
|
173
|
+
// Per-usage listener boxes over `typeof Component`; `NoInfer<C>` keeps them non-distributive.
|
|
174
|
+
export type $UsageLibrary<C> =
|
|
175
|
+
NoInfer<C> extends { __vizeCheck: any } | { readonly __vizeComponentMarker: true }
|
|
176
|
+
? false
|
|
177
|
+
: NoInfer<C> extends (...args: any[]) => infer __R
|
|
178
|
+
? 0 extends 1 & __R
|
|
179
|
+
? false
|
|
180
|
+
: "__ctx" extends keyof __R
|
|
181
|
+
? true
|
|
182
|
+
: false
|
|
183
|
+
: false;
|
|
184
|
+
export type $UsagePropsBox<C> =
|
|
185
|
+
NoInfer<C> extends { new (...args: any[]): { $props: infer __P } }
|
|
186
|
+
? [__P]
|
|
187
|
+
: NoInfer<C> extends (props: infer __P, ...args: any[]) => any
|
|
188
|
+
? [__P]
|
|
189
|
+
: [];
|
|
190
|
+
export type $UsageEmitPropsBox<C> =
|
|
191
|
+
NoInfer<C> extends { __vizeEmitProps?: infer __EP } ? [__EP] : [];
|
|
192
|
+
// A component whose raw fallthrough source admits `{}` has no required fallthrough key: removing owned keys adds none.
|
|
193
|
+
type $FallthroughSourceMember<C> = C extends {
|
|
194
|
+
readonly __vizeHasFallthroughProps: true;
|
|
195
|
+
readonly __vizeFallthroughSource?: infer __S;
|
|
196
|
+
}
|
|
197
|
+
? unknown extends __S
|
|
198
|
+
? false
|
|
199
|
+
: [
|
|
200
|
+
NonNullable<__S> extends infer __N
|
|
201
|
+
? __N extends unknown
|
|
202
|
+
? {} extends __N
|
|
203
|
+
? never
|
|
204
|
+
: __N
|
|
205
|
+
: never
|
|
206
|
+
: never,
|
|
207
|
+
] extends [never]
|
|
208
|
+
? true
|
|
209
|
+
: false
|
|
210
|
+
: false;
|
|
211
|
+
export type $FallthroughSourceAdmitsEmpty<C> = [C] extends [never]
|
|
212
|
+
? false
|
|
213
|
+
: [$FallthroughSourceMember<C>] extends [true]
|
|
214
|
+
? true
|
|
215
|
+
: false;
|
|
216
|
+
// The per-module emit gate input, shared so each component resolves it once per program.
|
|
217
|
+
type $EmitGateNativeInput<C> = C extends new (...args: any[]) => any
|
|
218
|
+
? C extends { readonly __vizeComponentMarker: true }
|
|
219
|
+
? false
|
|
220
|
+
: true
|
|
221
|
+
: false;
|
|
222
|
+
type $EmitGateInputOf<L, C, F, R = F extends (...args: any) => infer T ? T : any, U = R> = [
|
|
223
|
+
L,
|
|
224
|
+
] extends [true]
|
|
225
|
+
? F
|
|
226
|
+
: $ClosedEmit<C> extends [unknown]
|
|
227
|
+
? F
|
|
228
|
+
: true extends (
|
|
229
|
+
0 extends 1 & C
|
|
230
|
+
? false
|
|
231
|
+
: C extends { __vizeResolveEmitProps?: infer X }
|
|
232
|
+
? X extends (...args: any[]) => any
|
|
233
|
+
? true
|
|
234
|
+
: $EmitGateNativeInput<C>
|
|
235
|
+
: C extends { __vizeResolveProps?: infer X }
|
|
236
|
+
? X extends (...args: any[]) => any
|
|
237
|
+
? true
|
|
238
|
+
: $EmitGateNativeInput<C>
|
|
239
|
+
: $EmitGateNativeInput<C>
|
|
240
|
+
)
|
|
241
|
+
? F
|
|
242
|
+
: [R] extends [never]
|
|
243
|
+
? F
|
|
244
|
+
: [
|
|
245
|
+
R extends unknown
|
|
246
|
+
? (<G>() => G extends R ? 1 : 2) extends <G>() => G extends U ? 1 : 2
|
|
247
|
+
? true
|
|
248
|
+
: false
|
|
249
|
+
: false,
|
|
250
|
+
] extends [true]
|
|
251
|
+
? (props: any) => R
|
|
252
|
+
: F;
|
|
253
|
+
export type $EmitGateInput<L, C, F> = $EmitGateInputOf<L, C, F>;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// Generated from the canonical template-ref registry helpers. Do not edit.
|
|
2
|
+
// Template-ref registry targets, shared so each instantiation is cached once per program.
|
|
3
|
+
export type $DomElement<_Tag extends string, _Svg extends boolean = false> = _Svg extends true
|
|
4
|
+
? _Tag extends keyof SVGElementTagNameMap
|
|
5
|
+
? SVGElementTagNameMap[_Tag]
|
|
6
|
+
: Element
|
|
7
|
+
: _Tag extends keyof HTMLElementTagNameMap
|
|
8
|
+
? HTMLElementTagNameMap[_Tag]
|
|
9
|
+
: Element;
|
|
10
|
+
export type $TemplateComponentRef<_C> = _C extends string
|
|
11
|
+
? _C extends keyof HTMLElementTagNameMap
|
|
12
|
+
? HTMLElementTagNameMap[_C]
|
|
13
|
+
: _C extends keyof SVGElementTagNameMap
|
|
14
|
+
? SVGElementTagNameMap[_C]
|
|
15
|
+
: Element
|
|
16
|
+
: _C extends abstract new (...args: any[]) => infer _I
|
|
17
|
+
? _I
|
|
18
|
+
: _C extends (props: any, ctx: any, expose: (exposed: infer _E) => any, ...args: any[]) => any
|
|
19
|
+
? NonNullable<_E>
|
|
20
|
+
: any;
|
|
21
|
+
export type $RefInstanceFactory<_C> = 0 extends 1 & _C
|
|
22
|
+
? (component: _C) => (props: any) => undefined
|
|
23
|
+
: _C extends { __vizeResolveRef?: infer _F }
|
|
24
|
+
? _F extends (...args: any[]) => any
|
|
25
|
+
? (component: _C) => _F
|
|
26
|
+
: (component: _C) => (props: any) => undefined
|
|
27
|
+
: _C extends (props: any, ctx?: any, expose?: any, ...args: any[]) => any
|
|
28
|
+
? (component: _C) => _C
|
|
29
|
+
: (component: _C) => (props: any) => undefined;
|
|
30
|
+
export type $TemplateRefInstance<_T, _K extends keyof _T, _C> = 0 extends 1 & _C
|
|
31
|
+
? $TemplateComponentRef<_C>
|
|
32
|
+
: _C extends (props: any, ctx?: any, expose?: any, ...args: any[]) => any
|
|
33
|
+
? _T[_K] extends () => infer _R
|
|
34
|
+
? _R extends { __ctx?: infer _X }
|
|
35
|
+
? NonNullable<_X> extends { expose: (exposed: infer _E) => any }
|
|
36
|
+
? NonNullable<_E>
|
|
37
|
+
: $TemplateComponentRef<_C>
|
|
38
|
+
: $TemplateComponentRef<_C>
|
|
39
|
+
: $TemplateComponentRef<_C>
|
|
40
|
+
: $TemplateComponentRef<_C>;
|
package/virtual-ts.d.cts
CHANGED
|
@@ -2,10 +2,7 @@ import type {} from "./virtual-ts-globals.js" with { "resolution-mode": "import"
|
|
|
2
2
|
import type {} from "./virtual-ts-patterns.js" with { "resolution-mode": "import" };
|
|
3
3
|
import type {} from "./virtual-ts-emit-overloads.js" with { "resolution-mode": "import" };
|
|
4
4
|
// Generated from the shared virtual TypeScript helpers. Do not edit.
|
|
5
|
-
//
|
|
6
|
-
// Template-ref widening. Hoisted-only, deliberately absent from the per-file
|
|
7
|
-
// preamble: a module-scope copy is dead code (TS6196) in every component whose
|
|
8
|
-
// template scope emits no __U, and only generated template scopes use it.
|
|
5
|
+
// Template-ref helpers, hoisted-only and shared so each instantiation is cached once per program.
|
|
9
6
|
type $IsUnion<T, __U = T> = T extends unknown ? ([__U] extends [T] ? false : true) : false;
|
|
10
7
|
export type $WidenTemplateRef<T> =
|
|
11
8
|
$IsAny<T> extends true
|
|
@@ -25,7 +22,6 @@ export type $WidenTemplateRef<T> =
|
|
|
25
22
|
? boolean
|
|
26
23
|
: T
|
|
27
24
|
: T;
|
|
28
|
-
// Template ref unwrap, shared so each instantiation is cached once per program.
|
|
29
25
|
export type $TemplateRefUnwrap<T> = T extends { value: unknown }
|
|
30
26
|
? T extends import("vue").Ref
|
|
31
27
|
? $WidenTemplateRef<T["value"]>
|
|
@@ -36,7 +32,11 @@ export type $TemplateRefUnwrapNarrowed<T> = [T] extends [import("vue").Ref]
|
|
|
36
32
|
: [Extract<T, import("vue").Ref>] extends [never]
|
|
37
33
|
? $TemplateRefUnwrap<T>
|
|
38
34
|
: (NonNullable<T> & import("vue").Ref<unknown> & { value: $TemplateRefUnwrap<T> })["value"];
|
|
39
|
-
|
|
35
|
+
import type * as __vizeRef from "./virtual-ts-refs.js" with { "resolution-mode": "import" };
|
|
36
|
+
export type $DomElement<T extends string, S extends boolean = false> = __vizeRef.$DomElement<T, S>;
|
|
37
|
+
export type $TemplateComponentRef<C> = __vizeRef.$TemplateComponentRef<C>;
|
|
38
|
+
export type $RefInstanceFactory<C> = __vizeRef.$RefInstanceFactory<C>;
|
|
39
|
+
export type $TemplateRefInstance<T, K extends keyof T, C> = __vizeRef.$TemplateRefInstance<T, K, C>;
|
|
40
40
|
import type * as __vizeSlotTypes from "./virtual-ts-slots.js" with { "resolution-mode": "import" };
|
|
41
41
|
export type $SlotHostSlots<C> = __vizeSlotTypes.$SlotHostSlots<C>;
|
|
42
42
|
declare function __vizeFunctionalSlots<P, C, R>(
|
|
@@ -273,29 +273,13 @@ export type $UsageProps<C> =
|
|
|
273
273
|
: Record<string, unknown>
|
|
274
274
|
: $ComponentRawProps<C>;
|
|
275
275
|
export type $UsageRequiredFallthrough<C> =
|
|
276
|
-
$
|
|
277
|
-
?
|
|
278
|
-
|
|
279
|
-
:
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
? false
|
|
284
|
-
: NoInfer<C> extends (...args: any[]) => infer __R
|
|
285
|
-
? 0 extends 1 & __R
|
|
286
|
-
? false
|
|
287
|
-
: "__ctx" extends keyof __R
|
|
288
|
-
? true
|
|
289
|
-
: false
|
|
290
|
-
: false;
|
|
291
|
-
export type $UsagePropsBox<C> =
|
|
292
|
-
NoInfer<C> extends { new (...args: any[]): { $props: infer __P } }
|
|
293
|
-
? [__P]
|
|
294
|
-
: NoInfer<C> extends (props: infer __P, ...args: any[]) => any
|
|
295
|
-
? [__P]
|
|
296
|
-
: [];
|
|
297
|
-
export type $UsageEmitPropsBox<C> =
|
|
298
|
-
NoInfer<C> extends { __vizeEmitProps?: infer __EP } ? [__EP] : [];
|
|
276
|
+
$FallthroughSourceAdmitsEmpty<C> extends true
|
|
277
|
+
? {}
|
|
278
|
+
: $FallthroughProps<C> extends infer __F
|
|
279
|
+
? [__F extends unknown ? ({} extends __F ? never : __F) : never] extends [never]
|
|
280
|
+
? $RequiredFallthroughProps<C, __F, never>
|
|
281
|
+
: $RequiredFallthroughProps<C, __F>
|
|
282
|
+
: never;
|
|
299
283
|
export type $UsageNativeFallthroughBox<C> =
|
|
300
284
|
NoInfer<C> extends {
|
|
301
285
|
readonly __vizeNativeFallthroughRoot: true;
|
|
@@ -337,6 +321,11 @@ export type $PropValueOr<
|
|
|
337
321
|
__V = P extends unknown ? (K extends keyof P ? P[K] : never) : never,
|
|
338
322
|
> = [__V] extends [never] ? $FallthroughValue<C, FK> : __V;
|
|
339
323
|
export type $ClosedEmitFactory<E> = (component: unknown) => (props: any) => __EmitProps<E>;
|
|
324
|
+
export type $EmitGateResolver<L, C> = [L] extends [true]
|
|
325
|
+
? (component: C) => C
|
|
326
|
+
: $ClosedEmit<C> extends [infer E]
|
|
327
|
+
? $ClosedEmitFactory<E>
|
|
328
|
+
: $EmitPropsFactory<C>;
|
|
340
329
|
type $InvalidFallthroughSpreadKeys<P, F, A> = {
|
|
341
330
|
[K in keyof A]-?: K extends keyof P | keyof $KebabProps<P>
|
|
342
331
|
? never
|
|
@@ -498,3 +487,8 @@ export type $ListenerContract<
|
|
|
498
487
|
__Loose,
|
|
499
488
|
> = __vizeListenerTypes.$ListenerContract<__L, __PB, __EB, __FB, __K, __Raw, __Inferred, __Loose>;
|
|
500
489
|
export type $ClosedEmit<C, A = C> = __vizeListenerTypes.$ClosedEmit<C, A>;
|
|
490
|
+
export type $UsageLibrary<C> = __vizeListenerTypes.$UsageLibrary<C>;
|
|
491
|
+
export type $UsagePropsBox<C> = __vizeListenerTypes.$UsagePropsBox<C>;
|
|
492
|
+
export type $UsageEmitPropsBox<C> = __vizeListenerTypes.$UsageEmitPropsBox<C>;
|
|
493
|
+
export type $FallthroughSourceAdmitsEmpty<C> = __vizeListenerTypes.$FallthroughSourceAdmitsEmpty<C>;
|
|
494
|
+
export type $EmitGateInput<L, C, F> = __vizeListenerTypes.$EmitGateInput<L, C, F>;
|
package/virtual-ts.d.mts
CHANGED
|
@@ -2,10 +2,7 @@ import type {} from "./virtual-ts-globals.js" with { "resolution-mode": "import"
|
|
|
2
2
|
import type {} from "./virtual-ts-patterns.js" with { "resolution-mode": "import" };
|
|
3
3
|
import type {} from "./virtual-ts-emit-overloads.js" with { "resolution-mode": "import" };
|
|
4
4
|
// Generated from the shared virtual TypeScript helpers. Do not edit.
|
|
5
|
-
//
|
|
6
|
-
// Template-ref widening. Hoisted-only, deliberately absent from the per-file
|
|
7
|
-
// preamble: a module-scope copy is dead code (TS6196) in every component whose
|
|
8
|
-
// template scope emits no __U, and only generated template scopes use it.
|
|
5
|
+
// Template-ref helpers, hoisted-only and shared so each instantiation is cached once per program.
|
|
9
6
|
type $IsUnion<T, __U = T> = T extends unknown ? ([__U] extends [T] ? false : true) : false;
|
|
10
7
|
export type $WidenTemplateRef<T> =
|
|
11
8
|
$IsAny<T> extends true
|
|
@@ -25,7 +22,6 @@ export type $WidenTemplateRef<T> =
|
|
|
25
22
|
? boolean
|
|
26
23
|
: T
|
|
27
24
|
: T;
|
|
28
|
-
// Template ref unwrap, shared so each instantiation is cached once per program.
|
|
29
25
|
export type $TemplateRefUnwrap<T> = T extends { value: unknown }
|
|
30
26
|
? T extends import("vue").Ref
|
|
31
27
|
? $WidenTemplateRef<T["value"]>
|
|
@@ -36,7 +32,11 @@ export type $TemplateRefUnwrapNarrowed<T> = [T] extends [import("vue").Ref]
|
|
|
36
32
|
: [Extract<T, import("vue").Ref>] extends [never]
|
|
37
33
|
? $TemplateRefUnwrap<T>
|
|
38
34
|
: (NonNullable<T> & import("vue").Ref<unknown> & { value: $TemplateRefUnwrap<T> })["value"];
|
|
39
|
-
|
|
35
|
+
import type * as __vizeRef from "./virtual-ts-refs.js" with { "resolution-mode": "import" };
|
|
36
|
+
export type $DomElement<T extends string, S extends boolean = false> = __vizeRef.$DomElement<T, S>;
|
|
37
|
+
export type $TemplateComponentRef<C> = __vizeRef.$TemplateComponentRef<C>;
|
|
38
|
+
export type $RefInstanceFactory<C> = __vizeRef.$RefInstanceFactory<C>;
|
|
39
|
+
export type $TemplateRefInstance<T, K extends keyof T, C> = __vizeRef.$TemplateRefInstance<T, K, C>;
|
|
40
40
|
import type * as __vizeSlotTypes from "./virtual-ts-slots.js" with { "resolution-mode": "import" };
|
|
41
41
|
export type $SlotHostSlots<C> = __vizeSlotTypes.$SlotHostSlots<C>;
|
|
42
42
|
declare function __vizeFunctionalSlots<P, C, R>(
|
|
@@ -273,29 +273,13 @@ export type $UsageProps<C> =
|
|
|
273
273
|
: Record<string, unknown>
|
|
274
274
|
: $ComponentRawProps<C>;
|
|
275
275
|
export type $UsageRequiredFallthrough<C> =
|
|
276
|
-
$
|
|
277
|
-
?
|
|
278
|
-
|
|
279
|
-
:
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
? false
|
|
284
|
-
: NoInfer<C> extends (...args: any[]) => infer __R
|
|
285
|
-
? 0 extends 1 & __R
|
|
286
|
-
? false
|
|
287
|
-
: "__ctx" extends keyof __R
|
|
288
|
-
? true
|
|
289
|
-
: false
|
|
290
|
-
: false;
|
|
291
|
-
export type $UsagePropsBox<C> =
|
|
292
|
-
NoInfer<C> extends { new (...args: any[]): { $props: infer __P } }
|
|
293
|
-
? [__P]
|
|
294
|
-
: NoInfer<C> extends (props: infer __P, ...args: any[]) => any
|
|
295
|
-
? [__P]
|
|
296
|
-
: [];
|
|
297
|
-
export type $UsageEmitPropsBox<C> =
|
|
298
|
-
NoInfer<C> extends { __vizeEmitProps?: infer __EP } ? [__EP] : [];
|
|
276
|
+
$FallthroughSourceAdmitsEmpty<C> extends true
|
|
277
|
+
? {}
|
|
278
|
+
: $FallthroughProps<C> extends infer __F
|
|
279
|
+
? [__F extends unknown ? ({} extends __F ? never : __F) : never] extends [never]
|
|
280
|
+
? $RequiredFallthroughProps<C, __F, never>
|
|
281
|
+
: $RequiredFallthroughProps<C, __F>
|
|
282
|
+
: never;
|
|
299
283
|
export type $UsageNativeFallthroughBox<C> =
|
|
300
284
|
NoInfer<C> extends {
|
|
301
285
|
readonly __vizeNativeFallthroughRoot: true;
|
|
@@ -337,6 +321,11 @@ export type $PropValueOr<
|
|
|
337
321
|
__V = P extends unknown ? (K extends keyof P ? P[K] : never) : never,
|
|
338
322
|
> = [__V] extends [never] ? $FallthroughValue<C, FK> : __V;
|
|
339
323
|
export type $ClosedEmitFactory<E> = (component: unknown) => (props: any) => __EmitProps<E>;
|
|
324
|
+
export type $EmitGateResolver<L, C> = [L] extends [true]
|
|
325
|
+
? (component: C) => C
|
|
326
|
+
: $ClosedEmit<C> extends [infer E]
|
|
327
|
+
? $ClosedEmitFactory<E>
|
|
328
|
+
: $EmitPropsFactory<C>;
|
|
340
329
|
type $InvalidFallthroughSpreadKeys<P, F, A> = {
|
|
341
330
|
[K in keyof A]-?: K extends keyof P | keyof $KebabProps<P>
|
|
342
331
|
? never
|
|
@@ -498,3 +487,8 @@ export type $ListenerContract<
|
|
|
498
487
|
__Loose,
|
|
499
488
|
> = __vizeListenerTypes.$ListenerContract<__L, __PB, __EB, __FB, __K, __Raw, __Inferred, __Loose>;
|
|
500
489
|
export type $ClosedEmit<C, A = C> = __vizeListenerTypes.$ClosedEmit<C, A>;
|
|
490
|
+
export type $UsageLibrary<C> = __vizeListenerTypes.$UsageLibrary<C>;
|
|
491
|
+
export type $UsagePropsBox<C> = __vizeListenerTypes.$UsagePropsBox<C>;
|
|
492
|
+
export type $UsageEmitPropsBox<C> = __vizeListenerTypes.$UsageEmitPropsBox<C>;
|
|
493
|
+
export type $FallthroughSourceAdmitsEmpty<C> = __vizeListenerTypes.$FallthroughSourceAdmitsEmpty<C>;
|
|
494
|
+
export type $EmitGateInput<L, C, F> = __vizeListenerTypes.$EmitGateInput<L, C, F>;
|