vize 0.691.0 → 0.692.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-0r1o1XM5.d.mts → config-DVHgD3ba.d.mts} +2 -2
- package/dist/{config-0r1o1XM5.d.mts.map → config-DVHgD3ba.d.mts.map} +1 -1
- package/dist/config.d.mts +1 -1
- package/dist/index.d.mts +1 -1
- package/generated/content-mapper-types.d.ts +23 -6
- package/package.json +4 -2
- package/src/config/.npmignore +5 -0
- package/src/types/rules.ts +10 -0
- package/virtual-ts-checker.d.ts +0 -3
- package/virtual-ts-emit-overloads.d.ts +88 -0
- package/virtual-ts-emits.d.ts +54 -0
- package/virtual-ts-globals.d.ts +22 -61
- package/virtual-ts.d.cts +4 -20
- package/virtual-ts.d.mts +4 -20
- package/virtual-ts.d.ts +4 -20
|
@@ -860,7 +860,7 @@ interface VizeConfigEntry {
|
|
|
860
860
|
}
|
|
861
861
|
//#endregion
|
|
862
862
|
//#region src/types/rules.d.ts
|
|
863
|
-
declare const LINT_RULE_NAMES: readonly ["a11y/alt-text", "a11y/anchor-has-content", "a11y/anchor-is-valid", "a11y/aria-props", "a11y/aria-role", "a11y/aria-unsupported-elements", "a11y/click-events-have-key-events", "a11y/form-control-has-label", "a11y/heading-has-content", "a11y/heading-levels", "a11y/iframe-has-title", "a11y/img-alt", "a11y/interactive-supports-focus", "a11y/label-has-for", "a11y/landmark-roles", "a11y/media-has-caption", "a11y/mouse-events-have-key-events", "a11y/no-access-key", "a11y/no-aria-hidden-on-focusable", "a11y/no-autofocus", "a11y/no-distracting-elements", "a11y/no-i-for-icon", "a11y/no-redundant-roles", "a11y/no-refer-to-non-existent-id", "a11y/no-role-presentation-on-focusable", "a11y/no-static-element-interactions", "a11y/placeholder-label-option", "a11y/role-has-required-aria-props", "a11y/tabindex-no-positive", "a11y/use-list", "css/no-display-none", "css/no-hardcoded-values", "css/no-id-selectors", "css/no-important", "css/no-utility-classes", "css/no-v-bind-performance", "css/prefer-logical-properties", "css/prefer-nested-selectors", "css/prefer-slotted", "css/require-font-display", "ecosystem/nuxt-prefer-nuxt-link", "ecosystem/pinia-prefer-store-to-refs", "ecosystem/router-link-require-to", "ecosystem/void-link-require-href", "ecosystem/void-link-valid-method", "ecosystem/vue-i18n-no-missing-key", "ecosystem/vue-router-prefer-named-link", "ecosystem/vue-router-prefer-named-push", "ecosystem/vue-test-utils-no-html-snapshot", "html/deprecated-attr", "html/deprecated-element", "html/id-duplication", "html/no-consecutive-br", "html/no-dupe-style-properties", "html/no-duplicate-class", "html/no-duplicate-dt", "html/no-empty-palpable-content", "html/require-datetime", "musea/no-empty-variant", "musea/prefer-design-tokens", "musea/require-component", "musea/require-title", "musea/unique-variant-names", "musea/valid-variant", "nuxt/no-nuxt-config-test-key", "nuxt/no-page-meta-runtime-values", "nuxt/nuxt-config-keys-order", "nuxt/prefer-import-meta", "petite-vue/no-unsupported-directive", "petite-vue/valid-v-effect", "petite-vue/valid-v-scope", "script/component-options-name-casing", "script/custom-event-name-casing", "script/define-emits-declaration", "script/define-macros-order", "script/define-props-declaration", "script/define-props-destructuring", "script/no-arrow-functions-in-watch", "script/no-async-in-computed", "script/no-boolean-default", "script/no-computed-properties-in-data", "script/no-deep-destructure-in-props", "script/no-deprecated-data-object-declaration", "script/no-deprecated-delete-set", "script/no-deprecated-destroyed-lifecycle", "script/no-deprecated-dollar-listeners-api", "script/no-deprecated-dollar-scopedslots-api", "script/no-deprecated-events-api", "script/no-deprecated-model-definition", "script/no-deprecated-props-default-this", "script/no-deprecated-vue-config-keycodes", "script/no-dupe-keys", "script/no-duplicate-attr-inheritance", "script/no-export-in-script-setup", "script/no-expose-after-await", "script/no-get-current-instance", "script/no-import-compiler-macros", "script/no-internal-imports", "script/no-lifecycle-after-await", "script/no-multiple-slot-args", "script/no-next-tick", "script/no-options-api", "script/no-potential-component-option-typo", "script/no-reactive-destructure", "script/no-ref-as-operand", "script/no-required-prop-with-default", "script/no-reserved-identifiers", "script/no-reserved-keys", "script/no-reserved-props", "script/no-restricted-globals", "script/no-restricted-members", "script/no-side-effects-in-computed-properties", "script/no-top-level-ref-in-script", "script/no-unstable-nested-components", "script/no-unused-emit-declarations", "script/no-use-computed-property-like-method", "script/no-watch-after-await", "script/no-with-defaults", "script/one-component-per-file", "script/order-in-components", "script/prefer-computed", "script/prefer-define-emits-binding", "script/prefer-define-options", "script/prefer-import-from-vue", "script/prefer-ref-over-reactive", "script/prefer-use-attrs", "script/prefer-use-id", "script/prefer-use-slots", "script/prefer-use-template-ref", "script/require-default-prop", "script/require-explicit-emits", "script/require-explicit-slots", "script/require-function-return-type", "script/require-prop-type-constructor", "script/require-prop-types", "script/require-render-return", "script/require-slots-as-functions", "script/require-symbol-provide", "script/require-typed-object-prop", "script/require-typed-ref", "script/require-valid-default-prop", "script/return-in-computed-property", "script/return-in-emits-validator", "script/valid-define-emits", "script/valid-define-options", "script/valid-define-props", "script/valid-next-tick", "ssr/no-browser-globals-in-ssr", "ssr/no-hydration-mismatch", "type/no-floating-promises", "type/no-reactivity-loss", "type/no-unsafe-template-binding", "type/require-typed-emits", "type/require-typed-props", "type/strict-boolean-expressions", "vapor/no-inline-template", "vapor/no-vue-lifecycle-events", "vapor/prefer-static-class", "vapor/require-vapor-attribute", "vue/a11y-img-alt", "vue/attribute-hyphenation", "vue/attribute-order", "vue/comment-directive", "vue/component-definition-name-casing", "vue/component-name-in-template-casing", "vue/html-button-has-type", "vue/html-end-tags", "vue/html-quotes", "vue/html-self-closing", "vue/max-template-complexity", "vue/multi-word-component-names", "vue/mustache-interpolation-spacing", "vue/no-array-index-key", "vue/no-bare-strings-in-template", "vue/no-boolean-attr-value", "vue/no-child-content", "vue/no-deprecated-filter", "vue/no-deprecated-functional-template", "vue/no-deprecated-html-element-is", "vue/no-deprecated-inline-template", "vue/no-deprecated-router-link-tag-prop", "vue/no-deprecated-scope-attribute", "vue/no-deprecated-slot-attribute", "vue/no-deprecated-slot-scope-attribute", "vue/no-deprecated-v-bind-sync", "vue/no-deprecated-v-is", "vue/no-deprecated-v-on-native-modifier", "vue/no-deprecated-v-on-number-modifiers", "vue/no-dupe-v-else-if", "vue/no-duplicate-attributes", "vue/no-empty-component-block", "vue/no-inline-style", "vue/no-invalid-html-attribute", "vue/no-lone-template", "vue/no-multi-spaces", "vue/no-multiple-objects-in-class", "vue/no-multiple-template-root", "vue/no-mutating-props", "vue/no-negated-v-if-condition", "vue/no-non-component-keep-alive-child", "vue/no-preprocessor-lang", "vue/no-reserved-component-names", "vue/no-root-v-if", "vue/no-script-non-standard-lang", "vue/no-src-attribute", "vue/no-static-inline-styles", "vue/no-template-key", "vue/no-template-lang", "vue/no-template-shadow", "vue/no-template-target-blank", "vue/no-textarea-mustache", "vue/no-undefined-refs", "vue/no-unsafe-url", "vue/no-unsandboxed-iframe", "vue/no-unused-components", "vue/no-unused-properties", "vue/no-unused-refs", "vue/no-unused-setup-bindings", "vue/no-unused-vars", "vue/no-use-v-else-with-v-for", "vue/no-use-v-if-with-v-for", "vue/no-useless-mustaches", "vue/no-useless-template-attributes", "vue/no-useless-v-bind", "vue/no-v-for-template-key-on-child", "vue/no-v-html", "vue/no-v-text", "vue/no-v-text-v-html-on-component", "vue/permitted-contents", "vue/prefer-props-shorthand", "vue/prefer-true-attribute-shorthand", "vue/prop-name-casing", "vue/require-component-is", "vue/require-component-registration", "vue/require-scoped-style", "vue/require-toggle-inside-transition", "vue/require-v-for-key", "vue/scoped-event-names", "vue/sfc-element-order", "vue/single-style-block", "vue/slot-name-casing", "vue/this-in-template", "vue/use-unique-element-ids", "vue/use-v-on-exact", "vue/v-bind-style", "vue/v-on-event-hyphenation", "vue/v-on-handler-style", "vue/v-on-style", "vue/v-slot-style", "vue/valid-attribute-name", "vue/valid-template-root", "vue/valid-v-bind", "vue/valid-v-cloak", "vue/valid-v-else", "vue/valid-v-else-if", "vue/valid-v-for", "vue/valid-v-html", "vue/valid-v-if", "vue/valid-v-is", "vue/valid-v-memo", "vue/valid-v-model", "vue/valid-v-on", "vue/valid-v-once", "vue/valid-v-pre", "vue/valid-v-show", "vue/valid-v-slot", "vue/valid-v-text", "vue/warn-custom-block", "vue/warn-custom-directive"];
|
|
863
|
+
declare const LINT_RULE_NAMES: readonly ["a11y/alt-text", "a11y/anchor-has-content", "a11y/anchor-is-valid", "a11y/aria-props", "a11y/aria-role", "a11y/aria-unsupported-elements", "a11y/click-events-have-key-events", "a11y/form-control-has-label", "a11y/heading-has-content", "a11y/heading-levels", "a11y/iframe-has-title", "a11y/img-alt", "a11y/interactive-supports-focus", "a11y/label-has-for", "a11y/landmark-roles", "a11y/media-has-caption", "a11y/mouse-events-have-key-events", "a11y/no-access-key", "a11y/no-aria-hidden-on-focusable", "a11y/no-autofocus", "a11y/no-distracting-elements", "a11y/no-i-for-icon", "a11y/no-redundant-roles", "a11y/no-refer-to-non-existent-id", "a11y/no-role-presentation-on-focusable", "a11y/no-static-element-interactions", "a11y/placeholder-label-option", "a11y/role-has-required-aria-props", "a11y/tabindex-no-positive", "a11y/use-list", "css/no-display-none", "css/no-hardcoded-values", "css/no-id-selectors", "css/no-important", "css/no-utility-classes", "css/no-v-bind-performance", "css/prefer-logical-properties", "css/prefer-nested-selectors", "css/prefer-slotted", "css/require-font-display", "ecosystem/nuxt-prefer-nuxt-link", "ecosystem/pinia-prefer-store-to-refs", "ecosystem/router-link-require-to", "ecosystem/void-link-require-href", "ecosystem/void-link-valid-method", "ecosystem/vue-i18n-no-missing-key", "ecosystem/vue-router-prefer-named-link", "ecosystem/vue-router-prefer-named-push", "ecosystem/vue-test-utils-no-html-snapshot", "html/deprecated-attr", "html/deprecated-element", "html/id-duplication", "html/no-consecutive-br", "html/no-dupe-style-properties", "html/no-duplicate-class", "html/no-duplicate-dt", "html/no-empty-palpable-content", "html/require-datetime", "musea/no-empty-variant", "musea/prefer-design-tokens", "musea/require-component", "musea/require-title", "musea/unique-variant-names", "musea/valid-variant", "nuxt/no-nuxt-config-test-key", "nuxt/no-page-meta-runtime-values", "nuxt/nuxt-config-keys-order", "nuxt/prefer-import-meta", "petite-vue/no-unsupported-directive", "petite-vue/valid-v-effect", "petite-vue/valid-v-scope", "script/component-options-name-casing", "script/custom-event-name-casing", "script/define-emits-declaration", "script/define-macros-order", "script/define-props-declaration", "script/define-props-destructuring", "script/no-arrow-functions-in-watch", "script/no-async-in-computed", "script/no-boolean-default", "script/no-computed-properties-in-data", "script/no-deep-destructure-in-props", "script/no-deprecated-data-object-declaration", "script/no-deprecated-delete-set", "script/no-deprecated-destroyed-lifecycle", "script/no-deprecated-dollar-listeners-api", "script/no-deprecated-dollar-scopedslots-api", "script/no-deprecated-events-api", "script/no-deprecated-model-definition", "script/no-deprecated-props-default-this", "script/no-deprecated-vue-config-keycodes", "script/no-dupe-keys", "script/no-duplicate-attr-inheritance", "script/no-export-in-script-setup", "script/no-expose-after-await", "script/no-get-current-instance", "script/no-import-compiler-macros", "script/no-internal-imports", "script/no-lifecycle-after-await", "script/no-multiple-slot-args", "script/no-next-tick", "script/no-options-api", "script/no-potential-component-option-typo", "script/no-reactive-destructure", "script/no-ref-as-operand", "script/no-required-prop-with-default", "script/no-reserved-identifiers", "script/no-reserved-keys", "script/no-reserved-props", "script/no-restricted-globals", "script/no-restricted-members", "script/no-side-effects-in-computed-properties", "script/no-top-level-ref-in-script", "script/no-unstable-nested-components", "script/no-unused-emit-declarations", "script/no-use-computed-property-like-method", "script/no-watch-after-await", "script/no-with-defaults", "script/one-component-per-file", "script/order-in-components", "script/prefer-computed", "script/prefer-define-emits-binding", "script/prefer-define-options", "script/prefer-import-from-vue", "script/prefer-ref-over-reactive", "script/prefer-use-attrs", "script/prefer-use-id", "script/prefer-use-slots", "script/prefer-use-template-ref", "script/require-default-prop", "script/require-explicit-emits", "script/require-explicit-slots", "script/require-function-return-type", "script/require-prop-type-constructor", "script/require-prop-types", "script/require-render-return", "script/require-slots-as-functions", "script/require-symbol-provide", "script/require-typed-object-prop", "script/require-typed-ref", "script/require-valid-default-prop", "script/return-in-computed-property", "script/return-in-emits-validator", "script/valid-define-emits", "script/valid-define-options", "script/valid-define-props", "script/valid-next-tick", "ssr/no-browser-globals-in-ssr", "ssr/no-hydration-mismatch", "type/no-floating-promises", "type/no-reactivity-loss", "type/no-unsafe-template-binding", "type/require-typed-emits", "type/require-typed-props", "type/strict-boolean-expressions", "vapor/no-inline-template", "vapor/no-vue-lifecycle-events", "vapor/prefer-static-class", "vapor/require-vapor-attribute", "vue/a11y-img-alt", "vue/attribute-hyphenation", "vue/attribute-order", "vue/comment-directive", "vue/component-definition-name-casing", "vue/component-name-in-template-casing", "vue/html-button-has-type", "vue/html-end-tags", "vue/html-quotes", "vue/html-self-closing", "vue/jsx-uses-vars", "vue/match-component-file-name", "vue/max-template-complexity", "vue/multi-word-component-names", "vue/mustache-interpolation-spacing", "vue/no-array-index-key", "vue/no-bare-strings-in-template", "vue/no-boolean-attr-value", "vue/no-child-content", "vue/no-custom-modifiers-on-v-model", "vue/no-deprecated-filter", "vue/no-deprecated-functional-template", "vue/no-deprecated-html-element-is", "vue/no-deprecated-inline-template", "vue/no-deprecated-router-link-tag-prop", "vue/no-deprecated-scope-attribute", "vue/no-deprecated-slot-attribute", "vue/no-deprecated-slot-scope-attribute", "vue/no-deprecated-v-bind-sync", "vue/no-deprecated-v-is", "vue/no-deprecated-v-on-native-modifier", "vue/no-deprecated-v-on-number-modifiers", "vue/no-dupe-v-else-if", "vue/no-duplicate-attributes", "vue/no-empty-component-block", "vue/no-inline-style", "vue/no-invalid-html-attribute", "vue/no-lone-template", "vue/no-multi-spaces", "vue/no-multiple-objects-in-class", "vue/no-multiple-template-root", "vue/no-mutating-props", "vue/no-negated-v-if-condition", "vue/no-non-component-keep-alive-child", "vue/no-preprocessor-lang", "vue/no-ref-object-reactivity-loss", "vue/no-reserved-component-names", "vue/no-root-v-if", "vue/no-script-non-standard-lang", "vue/no-setup-props-reactivity-loss", "vue/no-src-attribute", "vue/no-static-inline-styles", "vue/no-template-key", "vue/no-template-lang", "vue/no-template-shadow", "vue/no-template-target-blank", "vue/no-textarea-mustache", "vue/no-this-in-before-route-enter", "vue/no-undefined-refs", "vue/no-unsafe-url", "vue/no-unsandboxed-iframe", "vue/no-unused-components", "vue/no-unused-properties", "vue/no-unused-refs", "vue/no-unused-setup-bindings", "vue/no-unused-vars", "vue/no-use-v-else-with-v-for", "vue/no-use-v-if-with-v-for", "vue/no-useless-mustaches", "vue/no-useless-template-attributes", "vue/no-useless-v-bind", "vue/no-v-for-template-key", "vue/no-v-for-template-key-on-child", "vue/no-v-html", "vue/no-v-text", "vue/no-v-text-v-html-on-component", "vue/permitted-contents", "vue/prefer-prop-type-boolean-first", "vue/prefer-props-shorthand", "vue/prefer-true-attribute-shorthand", "vue/prop-name-casing", "vue/require-component-is", "vue/require-component-registration", "vue/require-expose", "vue/require-scoped-style", "vue/require-toggle-inside-transition", "vue/require-v-for-key", "vue/scoped-event-names", "vue/sfc-element-order", "vue/single-style-block", "vue/slot-name-casing", "vue/this-in-template", "vue/use-unique-element-ids", "vue/use-v-on-exact", "vue/v-bind-style", "vue/v-on-event-hyphenation", "vue/v-on-handler-style", "vue/v-on-style", "vue/v-slot-style", "vue/valid-attribute-name", "vue/valid-model-definition", "vue/valid-template-root", "vue/valid-v-bind", "vue/valid-v-cloak", "vue/valid-v-else", "vue/valid-v-else-if", "vue/valid-v-for", "vue/valid-v-html", "vue/valid-v-if", "vue/valid-v-is", "vue/valid-v-memo", "vue/valid-v-model", "vue/valid-v-on", "vue/valid-v-once", "vue/valid-v-pre", "vue/valid-v-show", "vue/valid-v-slot", "vue/valid-v-text", "vue/warn-custom-block", "vue/warn-custom-directive"];
|
|
864
864
|
type LintRuleName = (typeof LINT_RULE_NAMES)[number];
|
|
865
865
|
type LintRulesConfig = Partial<Record<LintRuleName, RuleSeverity>>;
|
|
866
866
|
//#endregion
|
|
@@ -993,4 +993,4 @@ declare function resolveConfigExport(exported: UserConfigExport, env?: ConfigEnv
|
|
|
993
993
|
declare function normalizeGlobalTypes(config: GlobalTypesConfig): Record<string, GlobalTypeDeclaration>;
|
|
994
994
|
//#endregion
|
|
995
995
|
export { LibConfig as A, VitePluginConfig as B, LintRulesConfig as C, GlobalTypeDeclaration as D, FormatterConfig as E, MuseaConfig as F, VizeConfigEntry as H, MuseaVrtConfig as I, RuleCategory as L, LinterConfig as M, MuseaA11yConfig as N, GlobalTypesConfig as O, MuseaAutogenConfig as P, RuleSeverity as R, LintRuleName as S, CompilerConfig as T, VueVersion as U, VizeConfig as V, UserConfigExport as _, loadConfig as a, VueOptions as b, resolveViteConfigExport as c, ConfigEnv as d, LoadConfigOptions as f, UserConfigEntry as g, UserConfig as h, defineConfig as i, LintPreset as j, LanguageServerConfig as k, VITE_CONFIG_FILE_NAMES as l, ResolvedVizeConfig as m, VIZE_CONFIG_JSON_SCHEMA_PATH as n, normalizeGlobalTypes as o, MaybePromise as p, VIZE_CONFIG_PKL_SCHEMA_PATH as r, resolveConfigExport as s, CONFIG_FILE_NAMES as t, LspConfig as u, UserConfigInput as v, CompilerCompatibilityConfig as w, VueOptionsEntry as x, VueConfig as y, TypeCheckerConfig as z };
|
|
996
|
-
//# sourceMappingURL=config-
|
|
996
|
+
//# sourceMappingURL=config-DVHgD3ba.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-
|
|
1
|
+
{"version":3,"file":"config-DVHgD3ba.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;E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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-DVHgD3ba.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-DVHgD3ba.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 };
|
|
@@ -201,12 +201,7 @@ type $ExtraInputKeys<
|
|
|
201
201
|
Declared,
|
|
202
202
|
Authored,
|
|
203
203
|
Allowed,
|
|
204
|
-
K extends keyof Authored = Exclude<
|
|
205
|
-
Exclude<keyof Authored, keyof Allowed>,
|
|
206
|
-
typeof globalThis extends { __VLS_PROPS_FALLBACK: infer P; __vizeTemplateChecker?: never }
|
|
207
|
-
? keyof P
|
|
208
|
-
: never
|
|
209
|
-
>,
|
|
204
|
+
K extends keyof Authored = Exclude<keyof Authored, keyof Allowed>,
|
|
210
205
|
> = K extends unknown
|
|
211
206
|
? $RelaxedDynamicUnionExtra<T, Declared, Authored, K> extends true
|
|
212
207
|
? never
|
|
@@ -247,6 +242,27 @@ type $ComponentInput<T, Declared, Authored> =
|
|
|
247
242
|
? $ComponentInputFor<T, Declared, Authored, $ComponentInputProps<T, Declared>>
|
|
248
243
|
: never;
|
|
249
244
|
type $AuthoredKeyWitness<T> = { [K in keyof T]: unknown };
|
|
245
|
+
// Constructor arguments (templates, `new`) bind `Authored`; TSX binds `Jsx` through `$props` (#11629).
|
|
246
|
+
type $ComponentInstanceFor<I, T, Declared, Authored, Jsx> =
|
|
247
|
+
$IsAny<Authored> extends true
|
|
248
|
+
? I
|
|
249
|
+
: $IsUnknown<Authored> extends true
|
|
250
|
+
? $UsePublicInstance<Jsx> extends true
|
|
251
|
+
? I
|
|
252
|
+
: $ReplaceComponentProps<
|
|
253
|
+
I,
|
|
254
|
+
Pick<
|
|
255
|
+
$AuthoredKeyWitness<Jsx>,
|
|
256
|
+
keyof Jsx & $ComponentMetadataKeys<$ComponentInputProps<T, Declared>>
|
|
257
|
+
> &
|
|
258
|
+
(T extends unknown
|
|
259
|
+
? $ComponentInputProps<T, Declared> & $ComponentInputGuard<T, Declared, Jsx>
|
|
260
|
+
: never)
|
|
261
|
+
>
|
|
262
|
+
: $ReplaceComponentProps<
|
|
263
|
+
I,
|
|
264
|
+
$ComponentInputProps<T, Declared> & $ComponentMissingInputGuard<T, Authored>
|
|
265
|
+
>;
|
|
250
266
|
type $IsUnknown<T> = unknown extends T ? ([keyof T] extends [never] ? true : false) : false;
|
|
251
267
|
type $UsePublicInstance<T> = $IsAny<T> extends true ? true : $IsUnknown<T>;
|
|
252
268
|
type $LiteralKeys<T> = keyof {
|
|
@@ -331,6 +347,7 @@ export type {
|
|
|
331
347
|
$ComponentInputFor,
|
|
332
348
|
$ComponentInput,
|
|
333
349
|
$AuthoredKeyWitness,
|
|
350
|
+
$ComponentInstanceFor,
|
|
334
351
|
$IsUnknown,
|
|
335
352
|
$UsePublicInstance,
|
|
336
353
|
$LiteralKeys,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vize",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.692.0",
|
|
4
4
|
"description": "Vize - High-performance Vue.js toolchain in Rust",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -32,9 +32,11 @@
|
|
|
32
32
|
"content-mapper-helpers.d.ts",
|
|
33
33
|
"generated/content-mapper-types.d.ts",
|
|
34
34
|
"virtual-ts-checker.d.ts",
|
|
35
|
+
"virtual-ts-emit-overloads.d.ts",
|
|
35
36
|
"virtual-ts-globals.d.ts",
|
|
36
37
|
"virtual-ts-patterns.d.ts",
|
|
37
38
|
"virtual-ts-slots.d.ts",
|
|
39
|
+
"virtual-ts-emits.d.ts",
|
|
38
40
|
"virtual-ts.d.ts",
|
|
39
41
|
"virtual-ts.d.mts",
|
|
40
42
|
"virtual-ts.d.cts",
|
|
@@ -85,7 +87,7 @@
|
|
|
85
87
|
"access": "public"
|
|
86
88
|
},
|
|
87
89
|
"dependencies": {
|
|
88
|
-
"@vizejs/native": "0.
|
|
90
|
+
"@vizejs/native": "0.692.0",
|
|
89
91
|
"oxc-transform": "0.144.0"
|
|
90
92
|
},
|
|
91
93
|
"devDependencies": {
|
package/src/types/rules.ts
CHANGED
|
@@ -173,6 +173,8 @@ export const LINT_RULE_NAMES = [
|
|
|
173
173
|
"vue/html-end-tags",
|
|
174
174
|
"vue/html-quotes",
|
|
175
175
|
"vue/html-self-closing",
|
|
176
|
+
"vue/jsx-uses-vars",
|
|
177
|
+
"vue/match-component-file-name",
|
|
176
178
|
"vue/max-template-complexity",
|
|
177
179
|
"vue/multi-word-component-names",
|
|
178
180
|
"vue/mustache-interpolation-spacing",
|
|
@@ -180,6 +182,7 @@ export const LINT_RULE_NAMES = [
|
|
|
180
182
|
"vue/no-bare-strings-in-template",
|
|
181
183
|
"vue/no-boolean-attr-value",
|
|
182
184
|
"vue/no-child-content",
|
|
185
|
+
"vue/no-custom-modifiers-on-v-model",
|
|
183
186
|
"vue/no-deprecated-filter",
|
|
184
187
|
"vue/no-deprecated-functional-template",
|
|
185
188
|
"vue/no-deprecated-html-element-is",
|
|
@@ -205,9 +208,11 @@ export const LINT_RULE_NAMES = [
|
|
|
205
208
|
"vue/no-negated-v-if-condition",
|
|
206
209
|
"vue/no-non-component-keep-alive-child",
|
|
207
210
|
"vue/no-preprocessor-lang",
|
|
211
|
+
"vue/no-ref-object-reactivity-loss",
|
|
208
212
|
"vue/no-reserved-component-names",
|
|
209
213
|
"vue/no-root-v-if",
|
|
210
214
|
"vue/no-script-non-standard-lang",
|
|
215
|
+
"vue/no-setup-props-reactivity-loss",
|
|
211
216
|
"vue/no-src-attribute",
|
|
212
217
|
"vue/no-static-inline-styles",
|
|
213
218
|
"vue/no-template-key",
|
|
@@ -215,6 +220,7 @@ export const LINT_RULE_NAMES = [
|
|
|
215
220
|
"vue/no-template-shadow",
|
|
216
221
|
"vue/no-template-target-blank",
|
|
217
222
|
"vue/no-textarea-mustache",
|
|
223
|
+
"vue/no-this-in-before-route-enter",
|
|
218
224
|
"vue/no-undefined-refs",
|
|
219
225
|
"vue/no-unsafe-url",
|
|
220
226
|
"vue/no-unsandboxed-iframe",
|
|
@@ -228,16 +234,19 @@ export const LINT_RULE_NAMES = [
|
|
|
228
234
|
"vue/no-useless-mustaches",
|
|
229
235
|
"vue/no-useless-template-attributes",
|
|
230
236
|
"vue/no-useless-v-bind",
|
|
237
|
+
"vue/no-v-for-template-key",
|
|
231
238
|
"vue/no-v-for-template-key-on-child",
|
|
232
239
|
"vue/no-v-html",
|
|
233
240
|
"vue/no-v-text",
|
|
234
241
|
"vue/no-v-text-v-html-on-component",
|
|
235
242
|
"vue/permitted-contents",
|
|
243
|
+
"vue/prefer-prop-type-boolean-first",
|
|
236
244
|
"vue/prefer-props-shorthand",
|
|
237
245
|
"vue/prefer-true-attribute-shorthand",
|
|
238
246
|
"vue/prop-name-casing",
|
|
239
247
|
"vue/require-component-is",
|
|
240
248
|
"vue/require-component-registration",
|
|
249
|
+
"vue/require-expose",
|
|
241
250
|
"vue/require-scoped-style",
|
|
242
251
|
"vue/require-toggle-inside-transition",
|
|
243
252
|
"vue/require-v-for-key",
|
|
@@ -254,6 +263,7 @@ export const LINT_RULE_NAMES = [
|
|
|
254
263
|
"vue/v-on-style",
|
|
255
264
|
"vue/v-slot-style",
|
|
256
265
|
"vue/valid-attribute-name",
|
|
266
|
+
"vue/valid-model-definition",
|
|
257
267
|
"vue/valid-template-root",
|
|
258
268
|
"vue/valid-v-bind",
|
|
259
269
|
"vue/valid-v-cloak",
|
package/virtual-ts-checker.d.ts
CHANGED
|
@@ -21,9 +21,6 @@ declare global {
|
|
|
21
21
|
// vue-tsc generic library components accept unknown attrs through this
|
|
22
22
|
// fallback, which vue-tsc itself declares unless `checkUnknownProps` is set.
|
|
23
23
|
var __VLS_PROPS_FALLBACK: Record<string, unknown>;
|
|
24
|
-
// vize checks these templates itself, so component input guards serve only
|
|
25
|
-
// TS and TSX callers and keep extra keys exact.
|
|
26
|
-
var __vizeTemplateChecker: true;
|
|
27
24
|
}
|
|
28
25
|
|
|
29
26
|
export {};
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
// Generated from the canonical emit-overload helpers. Do not edit.
|
|
2
|
+
declare global {
|
|
3
|
+
type $OverloadProps<TOverload> = Pick<TOverload, keyof TOverload>;
|
|
4
|
+
type $OverloadUnionRecursive<
|
|
5
|
+
TOverload,
|
|
6
|
+
TPartialOverload = unknown,
|
|
7
|
+
TDepth extends unknown[] = [],
|
|
8
|
+
TAccumulated = never,
|
|
9
|
+
> = TDepth["length"] extends 120
|
|
10
|
+
? TAccumulated
|
|
11
|
+
: TOverload extends unknown
|
|
12
|
+
? TPartialOverload extends TOverload
|
|
13
|
+
? TAccumulated
|
|
14
|
+
: TPartialOverload & TOverload extends {
|
|
15
|
+
(...args: infer A0): infer R0;
|
|
16
|
+
(...args: infer A1): infer R1;
|
|
17
|
+
(...args: infer A2): infer R2;
|
|
18
|
+
(...args: infer A3): infer R3;
|
|
19
|
+
(...args: infer A4): infer R4;
|
|
20
|
+
(...args: infer A5): infer R5;
|
|
21
|
+
(...args: infer A6): infer R6;
|
|
22
|
+
(...args: infer A7): infer R7;
|
|
23
|
+
}
|
|
24
|
+
? (<G>() => G extends TAccumulated ? 1 : 2) extends <G>() => G extends
|
|
25
|
+
| TAccumulated
|
|
26
|
+
| ((...args: A0) => R0)
|
|
27
|
+
| ((...args: A1) => R1)
|
|
28
|
+
| ((...args: A2) => R2)
|
|
29
|
+
| ((...args: A3) => R3)
|
|
30
|
+
| ((...args: A4) => R4)
|
|
31
|
+
| ((...args: A5) => R5)
|
|
32
|
+
| ((...args: A6) => R6)
|
|
33
|
+
| ((...args: A7) => R7)
|
|
34
|
+
? 1
|
|
35
|
+
: 2
|
|
36
|
+
? TAccumulated
|
|
37
|
+
: $OverloadUnionRecursive<
|
|
38
|
+
TOverload,
|
|
39
|
+
TPartialOverload &
|
|
40
|
+
((...args: A0) => R0) &
|
|
41
|
+
((...args: A1) => R1) &
|
|
42
|
+
((...args: A2) => R2) &
|
|
43
|
+
((...args: A3) => R3) &
|
|
44
|
+
((...args: A4) => R4) &
|
|
45
|
+
((...args: A5) => R5) &
|
|
46
|
+
((...args: A6) => R6) &
|
|
47
|
+
((...args: A7) => R7) &
|
|
48
|
+
$OverloadProps<TOverload>,
|
|
49
|
+
[...TDepth, unknown],
|
|
50
|
+
| TAccumulated
|
|
51
|
+
| ((...args: A0) => R0)
|
|
52
|
+
| ((...args: A1) => R1)
|
|
53
|
+
| ((...args: A2) => R2)
|
|
54
|
+
| ((...args: A3) => R3)
|
|
55
|
+
| ((...args: A4) => R4)
|
|
56
|
+
| ((...args: A5) => R5)
|
|
57
|
+
| ((...args: A6) => R6)
|
|
58
|
+
| ((...args: A7) => R7)
|
|
59
|
+
>
|
|
60
|
+
: TAccumulated
|
|
61
|
+
: never;
|
|
62
|
+
type $OverloadUnion<TOverload extends (...args: any[]) => any> = Exclude<
|
|
63
|
+
$OverloadUnionRecursive<(() => never) & TOverload>,
|
|
64
|
+
TOverload extends () => never ? never : () => never
|
|
65
|
+
>;
|
|
66
|
+
type $OverloadParameters<T extends (...args: any[]) => any> = Parameters<$OverloadUnion<T>>;
|
|
67
|
+
type $IsStringLiteral<T> = T extends string ? (string extends T ? false : true) : false;
|
|
68
|
+
type $ParametersToFns<T extends any[]> = string extends T[0]
|
|
69
|
+
? { [K in string]: (...args: T extends [e: any, ...args: infer P] ? P : any[]) => any }
|
|
70
|
+
: {
|
|
71
|
+
[K in T[0]]: $IsStringLiteral<K> extends true
|
|
72
|
+
? (
|
|
73
|
+
...args: T extends [e: infer E, ...args: infer P] ? (K extends E ? P : never) : never
|
|
74
|
+
) => any
|
|
75
|
+
: never;
|
|
76
|
+
};
|
|
77
|
+
type __EmitOptions<T, S = __EmitShape<T>> = {
|
|
78
|
+
[K in keyof S as K extends string ? K : never]: (...args: __EmitArgs<S, K>) => any;
|
|
79
|
+
} & (__EmitShape<T> extends (...args: any[]) => any
|
|
80
|
+
? $ParametersToFns<$OverloadParameters<__EmitShape<T>>>
|
|
81
|
+
: {});
|
|
82
|
+
type $Camelize<S extends string> = S extends `${infer Head}-${infer Tail}`
|
|
83
|
+
? `${Head}${Capitalize<$Camelize<Tail>>}`
|
|
84
|
+
: S;
|
|
85
|
+
type $HandlerKey<K extends string> = `on${Capitalize<$Camelize<K>>}`;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export {};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
// Generated from the canonical emit-inference helpers. Do not edit.
|
|
2
|
+
import type {
|
|
3
|
+
IsAny as $IsAny,
|
|
4
|
+
$ConstructorEmitPropsFactory,
|
|
5
|
+
$EmitOwnedKeys,
|
|
6
|
+
__EmitProps,
|
|
7
|
+
} from "./virtual-ts.js" with { "resolution-mode": "import" };
|
|
8
|
+
type $LooseEmitProps = { readonly __vizeLooseListener: [] };
|
|
9
|
+
type $DeferredEmitProps<E, P = __EmitProps<E>> = `on${Capitalize<string>}` extends keyof P
|
|
10
|
+
? $EmitIsWide<new () => { $emit: E }> extends true
|
|
11
|
+
? $LooseEmitProps
|
|
12
|
+
: P
|
|
13
|
+
: P;
|
|
14
|
+
type $LooseEmitPropsFactory<C> = C extends (props: infer P, ...args: any[]) => any
|
|
15
|
+
? $IsAny<P> extends true
|
|
16
|
+
? (component: C) => (props: {}) => $LooseEmitProps
|
|
17
|
+
: (component: C) => (props: P) => {}
|
|
18
|
+
: (component: C) => (props: {}) => $LooseEmitProps;
|
|
19
|
+
type $EmitIsWide<C> = C extends new (...args: any[]) => { $emit: infer E }
|
|
20
|
+
? $IsAny<E> extends true
|
|
21
|
+
? true
|
|
22
|
+
: E extends (...args: infer A) => any
|
|
23
|
+
? string extends A[0]
|
|
24
|
+
? true
|
|
25
|
+
: [A] extends [any[]]
|
|
26
|
+
? any[] extends A
|
|
27
|
+
? true
|
|
28
|
+
: false
|
|
29
|
+
: false
|
|
30
|
+
: false
|
|
31
|
+
: false;
|
|
32
|
+
type $NativeEmitPropsFactory<C> = C extends new (...args: any[]) => { $emit: any }
|
|
33
|
+
? C extends { readonly __vizeComponentMarker: true }
|
|
34
|
+
? $ConstructorEmitPropsFactory<
|
|
35
|
+
C extends { readonly __vizeFallthroughProps?: infer F } ? F : {},
|
|
36
|
+
$EmitOwnedKeys<C>
|
|
37
|
+
>
|
|
38
|
+
: <P, E>(
|
|
39
|
+
component: new (props: P, ...args: any[]) => { $emit: E },
|
|
40
|
+
) => (props: P) => $DeferredEmitProps<E>
|
|
41
|
+
: $LooseEmitPropsFactory<C>;
|
|
42
|
+
type $EmitPropsFactory<C> =
|
|
43
|
+
$IsAny<C> extends true
|
|
44
|
+
? (component: C) => (props: {}) => $LooseEmitProps
|
|
45
|
+
: C extends { __vizeResolveEmitProps?: infer F }
|
|
46
|
+
? F extends (...args: any[]) => any
|
|
47
|
+
? (component: C) => F
|
|
48
|
+
: $NativeEmitPropsFactory<C>
|
|
49
|
+
: C extends { __vizeResolveProps?: infer F }
|
|
50
|
+
? F extends (...args: any[]) => any
|
|
51
|
+
? (component: C) => F
|
|
52
|
+
: $NativeEmitPropsFactory<C>
|
|
53
|
+
: $NativeEmitPropsFactory<C>;
|
|
54
|
+
export type { $NativeEmitPropsFactory, $EmitPropsFactory };
|
package/virtual-ts-globals.d.ts
CHANGED
|
@@ -208,12 +208,7 @@ declare global {
|
|
|
208
208
|
Declared,
|
|
209
209
|
Authored,
|
|
210
210
|
Allowed,
|
|
211
|
-
K extends keyof Authored = Exclude<
|
|
212
|
-
Exclude<keyof Authored, keyof Allowed>,
|
|
213
|
-
typeof globalThis extends { __VLS_PROPS_FALLBACK: infer P; __vizeTemplateChecker?: never }
|
|
214
|
-
? keyof P
|
|
215
|
-
: never
|
|
216
|
-
>,
|
|
211
|
+
K extends keyof Authored = Exclude<keyof Authored, keyof Allowed>,
|
|
217
212
|
> = K extends unknown
|
|
218
213
|
? $RelaxedDynamicUnionExtra<T, Declared, Authored, K> extends true
|
|
219
214
|
? never
|
|
@@ -254,6 +249,27 @@ declare global {
|
|
|
254
249
|
? $ComponentInputFor<T, Declared, Authored, $ComponentInputProps<T, Declared>>
|
|
255
250
|
: never;
|
|
256
251
|
type $AuthoredKeyWitness<T> = { [K in keyof T]: unknown };
|
|
252
|
+
// Constructor arguments (templates, `new`) bind `Authored`; TSX binds `Jsx` through `$props` (#11629).
|
|
253
|
+
type $ComponentInstanceFor<I, T, Declared, Authored, Jsx> =
|
|
254
|
+
$IsAny<Authored> extends true
|
|
255
|
+
? I
|
|
256
|
+
: $IsUnknown<Authored> extends true
|
|
257
|
+
? $UsePublicInstance<Jsx> extends true
|
|
258
|
+
? I
|
|
259
|
+
: $ReplaceComponentProps<
|
|
260
|
+
I,
|
|
261
|
+
Pick<
|
|
262
|
+
$AuthoredKeyWitness<Jsx>,
|
|
263
|
+
keyof Jsx & $ComponentMetadataKeys<$ComponentInputProps<T, Declared>>
|
|
264
|
+
> &
|
|
265
|
+
(T extends unknown
|
|
266
|
+
? $ComponentInputProps<T, Declared> & $ComponentInputGuard<T, Declared, Jsx>
|
|
267
|
+
: never)
|
|
268
|
+
>
|
|
269
|
+
: $ReplaceComponentProps<
|
|
270
|
+
I,
|
|
271
|
+
$ComponentInputProps<T, Declared> & $ComponentMissingInputGuard<T, Authored>
|
|
272
|
+
>;
|
|
257
273
|
type $IsUnknown<T> = unknown extends T ? ([keyof T] extends [never] ? true : false) : false;
|
|
258
274
|
type $UsePublicInstance<T> = $IsAny<T> extends true ? true : $IsUnknown<T>;
|
|
259
275
|
type $LiteralKeys<T> = keyof {
|
|
@@ -394,61 +410,6 @@ declare global {
|
|
|
394
410
|
? [never]
|
|
395
411
|
: [];
|
|
396
412
|
|
|
397
|
-
// Emit-overload helpers (consumed by the per-file __EmitProps alias)
|
|
398
|
-
|
|
399
|
-
type $OverloadProps<TOverload> = Pick<TOverload, keyof TOverload>;
|
|
400
|
-
// One inference per step; repeating one means a generic overload is stuck.
|
|
401
|
-
type $OverloadUnionRecursive<
|
|
402
|
-
TOverload,
|
|
403
|
-
TPartialOverload = unknown,
|
|
404
|
-
TDepth extends unknown[] = [],
|
|
405
|
-
TAccumulated = never,
|
|
406
|
-
TLast = never,
|
|
407
|
-
> = TDepth["length"] extends 900
|
|
408
|
-
? TAccumulated
|
|
409
|
-
: TOverload extends (...args: infer TArgs) => infer TReturn
|
|
410
|
-
? TPartialOverload extends TOverload
|
|
411
|
-
? TAccumulated
|
|
412
|
-
: (<G>() => G extends (...args: TArgs) => TReturn ? 1 : 2) extends <G>() => G extends TLast
|
|
413
|
-
? 1
|
|
414
|
-
: 2
|
|
415
|
-
? TAccumulated
|
|
416
|
-
: $OverloadUnionRecursive<
|
|
417
|
-
TPartialOverload &
|
|
418
|
-
((...args: TArgs) => TReturn) &
|
|
419
|
-
$OverloadProps<TOverload> &
|
|
420
|
-
TOverload,
|
|
421
|
-
TPartialOverload & ((...args: TArgs) => TReturn) & $OverloadProps<TOverload>,
|
|
422
|
-
[...TDepth, unknown],
|
|
423
|
-
TAccumulated | ((...args: TArgs) => TReturn),
|
|
424
|
-
(...args: TArgs) => TReturn
|
|
425
|
-
>
|
|
426
|
-
: TAccumulated;
|
|
427
|
-
type $OverloadUnion<TOverload extends (...args: any[]) => any> = Exclude<
|
|
428
|
-
$OverloadUnionRecursive<(() => never) & TOverload>,
|
|
429
|
-
TOverload extends () => never ? never : () => never
|
|
430
|
-
>;
|
|
431
|
-
type $OverloadParameters<T extends (...args: any[]) => any> = Parameters<$OverloadUnion<T>>;
|
|
432
|
-
type $IsStringLiteral<T> = T extends string ? (string extends T ? false : true) : false;
|
|
433
|
-
type $ParametersToFns<T extends any[]> = string extends T[0]
|
|
434
|
-
? { [K in string]: (...args: T extends [e: any, ...args: infer P] ? P : any[]) => any }
|
|
435
|
-
: {
|
|
436
|
-
[K in T[0]]: $IsStringLiteral<K> extends true
|
|
437
|
-
? (
|
|
438
|
-
...args: T extends [e: infer E, ...args: infer P] ? (K extends E ? P : never) : never
|
|
439
|
-
) => any
|
|
440
|
-
: never;
|
|
441
|
-
};
|
|
442
|
-
type __EmitOptions<T, S = __EmitShape<T>> = {
|
|
443
|
-
[K in keyof S as K extends string ? K : never]: (...args: __EmitArgs<S, K>) => any;
|
|
444
|
-
} & (__EmitShape<T> extends (...args: any[]) => any
|
|
445
|
-
? $ParametersToFns<$OverloadParameters<__EmitShape<T>>>
|
|
446
|
-
: {});
|
|
447
|
-
type $Camelize<S extends string> = S extends `${infer Head}-${infer Tail}`
|
|
448
|
-
? `${Head}${Capitalize<$Camelize<Tail>>}`
|
|
449
|
-
: S;
|
|
450
|
-
type $HandlerKey<K extends string> = `on${Capitalize<$Camelize<K>>}`;
|
|
451
|
-
|
|
452
413
|
// Compiler-macro signatures (aliased inside each module's __setup() scope)
|
|
453
414
|
function __vize_defineProps<_T = unknown>(): __DefineProps<
|
|
454
415
|
__LooseRequired<_T>,
|
package/virtual-ts.d.cts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
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
|
+
import type {} from "./virtual-ts-emit-overloads.js" with { "resolution-mode": "import" };
|
|
3
4
|
// Generated from the shared virtual TypeScript helpers. Do not edit.
|
|
4
5
|
// One module for every content-mapper virtual file.
|
|
5
6
|
// Template-ref widening. Hoisted-only, deliberately absent from the per-file
|
|
@@ -136,26 +137,9 @@ declare function __vizeConstructorEmitProps<P, E>(
|
|
|
136
137
|
type $ConstructorEmitPropsFactory<F, O extends PropertyKey> = <P, E>(
|
|
137
138
|
component: new (props: P, ...args: any[]) => { $emit: E },
|
|
138
139
|
) => <A>(props: $EmitInput<P, $EmitFallthrough<F>, O, A>) => __EmitProps<E>;
|
|
139
|
-
type
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
C extends { readonly __vizeFallthroughProps?: infer F } ? F : {},
|
|
143
|
-
$EmitOwnedKeys<C>
|
|
144
|
-
>
|
|
145
|
-
: typeof __vizeConstructorEmitProps
|
|
146
|
-
: (component: C) => (props: any) => {};
|
|
147
|
-
export type $EmitPropsFactory<C> =
|
|
148
|
-
$IsAny<C> extends true
|
|
149
|
-
? (component: C) => (props: any) => {}
|
|
150
|
-
: C extends { __vizeResolveEmitProps?: infer F }
|
|
151
|
-
? F extends (...args: any[]) => any
|
|
152
|
-
? (component: C) => F
|
|
153
|
-
: $NativeEmitPropsFactory<C>
|
|
154
|
-
: C extends { __vizeResolveProps?: infer F }
|
|
155
|
-
? F extends (...args: any[]) => any
|
|
156
|
-
? (component: C) => F
|
|
157
|
-
: $NativeEmitPropsFactory<C>
|
|
158
|
-
: $NativeEmitPropsFactory<C>;
|
|
140
|
+
import type * as __vizeEmitTypes from "./virtual-ts-emits.js" with { "resolution-mode": "import" };
|
|
141
|
+
type $NativeEmitPropsFactory<C> = __vizeEmitTypes.$NativeEmitPropsFactory<C>;
|
|
142
|
+
export type $EmitPropsFactory<C> = __vizeEmitTypes.$EmitPropsFactory<C>;
|
|
159
143
|
|
|
160
144
|
// Component usage helpers shared by every generated module in a batch project.
|
|
161
145
|
export type IsAny<T> = $IsAny<T>;
|
package/virtual-ts.d.mts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
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
|
+
import type {} from "./virtual-ts-emit-overloads.js" with { "resolution-mode": "import" };
|
|
3
4
|
// Generated from the shared virtual TypeScript helpers. Do not edit.
|
|
4
5
|
// One module for every content-mapper virtual file.
|
|
5
6
|
// Template-ref widening. Hoisted-only, deliberately absent from the per-file
|
|
@@ -136,26 +137,9 @@ declare function __vizeConstructorEmitProps<P, E>(
|
|
|
136
137
|
type $ConstructorEmitPropsFactory<F, O extends PropertyKey> = <P, E>(
|
|
137
138
|
component: new (props: P, ...args: any[]) => { $emit: E },
|
|
138
139
|
) => <A>(props: $EmitInput<P, $EmitFallthrough<F>, O, A>) => __EmitProps<E>;
|
|
139
|
-
type
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
C extends { readonly __vizeFallthroughProps?: infer F } ? F : {},
|
|
143
|
-
$EmitOwnedKeys<C>
|
|
144
|
-
>
|
|
145
|
-
: typeof __vizeConstructorEmitProps
|
|
146
|
-
: (component: C) => (props: any) => {};
|
|
147
|
-
export type $EmitPropsFactory<C> =
|
|
148
|
-
$IsAny<C> extends true
|
|
149
|
-
? (component: C) => (props: any) => {}
|
|
150
|
-
: C extends { __vizeResolveEmitProps?: infer F }
|
|
151
|
-
? F extends (...args: any[]) => any
|
|
152
|
-
? (component: C) => F
|
|
153
|
-
: $NativeEmitPropsFactory<C>
|
|
154
|
-
: C extends { __vizeResolveProps?: infer F }
|
|
155
|
-
? F extends (...args: any[]) => any
|
|
156
|
-
? (component: C) => F
|
|
157
|
-
: $NativeEmitPropsFactory<C>
|
|
158
|
-
: $NativeEmitPropsFactory<C>;
|
|
140
|
+
import type * as __vizeEmitTypes from "./virtual-ts-emits.js" with { "resolution-mode": "import" };
|
|
141
|
+
type $NativeEmitPropsFactory<C> = __vizeEmitTypes.$NativeEmitPropsFactory<C>;
|
|
142
|
+
export type $EmitPropsFactory<C> = __vizeEmitTypes.$EmitPropsFactory<C>;
|
|
159
143
|
|
|
160
144
|
// Component usage helpers shared by every generated module in a batch project.
|
|
161
145
|
export type IsAny<T> = $IsAny<T>;
|
package/virtual-ts.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
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
|
+
import type {} from "./virtual-ts-emit-overloads.js" with { "resolution-mode": "import" };
|
|
3
4
|
// Generated from the shared virtual TypeScript helpers. Do not edit.
|
|
4
5
|
// One module for every content-mapper virtual file.
|
|
5
6
|
// Template-ref widening. Hoisted-only, deliberately absent from the per-file
|
|
@@ -136,26 +137,9 @@ declare function __vizeConstructorEmitProps<P, E>(
|
|
|
136
137
|
type $ConstructorEmitPropsFactory<F, O extends PropertyKey> = <P, E>(
|
|
137
138
|
component: new (props: P, ...args: any[]) => { $emit: E },
|
|
138
139
|
) => <A>(props: $EmitInput<P, $EmitFallthrough<F>, O, A>) => __EmitProps<E>;
|
|
139
|
-
type
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
C extends { readonly __vizeFallthroughProps?: infer F } ? F : {},
|
|
143
|
-
$EmitOwnedKeys<C>
|
|
144
|
-
>
|
|
145
|
-
: typeof __vizeConstructorEmitProps
|
|
146
|
-
: (component: C) => (props: any) => {};
|
|
147
|
-
export type $EmitPropsFactory<C> =
|
|
148
|
-
$IsAny<C> extends true
|
|
149
|
-
? (component: C) => (props: any) => {}
|
|
150
|
-
: C extends { __vizeResolveEmitProps?: infer F }
|
|
151
|
-
? F extends (...args: any[]) => any
|
|
152
|
-
? (component: C) => F
|
|
153
|
-
: $NativeEmitPropsFactory<C>
|
|
154
|
-
: C extends { __vizeResolveProps?: infer F }
|
|
155
|
-
? F extends (...args: any[]) => any
|
|
156
|
-
? (component: C) => F
|
|
157
|
-
: $NativeEmitPropsFactory<C>
|
|
158
|
-
: $NativeEmitPropsFactory<C>;
|
|
140
|
+
import type * as __vizeEmitTypes from "./virtual-ts-emits.js" with { "resolution-mode": "import" };
|
|
141
|
+
type $NativeEmitPropsFactory<C> = __vizeEmitTypes.$NativeEmitPropsFactory<C>;
|
|
142
|
+
export type $EmitPropsFactory<C> = __vizeEmitTypes.$EmitPropsFactory<C>;
|
|
159
143
|
|
|
160
144
|
// Component usage helpers shared by every generated module in a batch project.
|
|
161
145
|
export type IsAny<T> = $IsAny<T>;
|