@svelte-vitals/core 0.50.1 → 0.51.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/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/internal.d.ts +34 -189
- package/dist/internal.js +2259 -25
- package/dist/{json-CcKHN-tx.d.ts → json-D26FMrh-.d.ts} +92 -150
- package/dist/{markdown-BBqqynv7.js → markdown-CD7sqanK.js} +563 -2702
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $ as Summary, Ct as defineConfig, X as formatMarkdownReport, Z as formatGithubReport, at as Category, bt as Value, ct as Fix, ft as Result, gt as RuleSettingObject, ht as RuleSetting, it as CATEGORIES, mt as RuleOverride, n as RuleEvidence, nt as hasFailureAtOrAbove, o as ScoreModel, ot as Config, pt as RuleOptions, rt as summarize, st as Detection, t as JsonReport, ut as Presence, vt as Severity, yt as TreatDynamicAs } from "./json-D26FMrh-.js";
|
|
2
2
|
export { CATEGORIES, type Category, type Config, type Detection, type Fix, type JsonReport, type Presence, type Result, type RuleEvidence, type RuleOptions, type RuleOverride, type RuleSetting, type RuleSettingObject, type ScoreModel, type Severity, type Summary, type TreatDynamicAs, type Value, defineConfig, formatGithubReport, formatMarkdownReport, hasFailureAtOrAbove, summarize };
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Cr as CATEGORIES, Er as defineConfig, br as summarize, c as formatGithubReport, t as formatMarkdownReport, yr as hasFailureAtOrAbove } from "./markdown-CD7sqanK.js";
|
|
2
2
|
export { CATEGORIES, defineConfig, formatGithubReport, formatMarkdownReport, hasFailureAtOrAbove, summarize };
|
package/dist/internal.d.ts
CHANGED
|
@@ -1,20 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as ASIDE_DEMOTING_TAGS, At as collectComponentFacts, B as resolveLandmark, C as selectRules, D as A11yOccurrenceInfo, Dt as OrphanEffectFact, E as KitModuleFacts, Et as EffectFact, F as ResolvedA11y, G as ImageInfo, H as stripTextDirective, I as SECTIONING_TAGS, J as ResolvedHead, K as ResolvedImages, L as decodeFragmentId, M as IDREF_ATTRS, Mt as Runtime, N as LandmarkInput, Nt as withReadLimit, O as A11ySkipCause, Ot as SourceSpan, P as NAMING_ATTRS, Q as Classification, R as foldOccurrences, S as formatFailedRuleWarning, St as defaultProject, T as withFailedRulesOff, Tt as EachBlockFact, U as HeadingInfo, V as splitTokens, W as ResolvedHeadings, X as formatMarkdownReport, Y as isClassicScriptType, Z as formatGithubReport, _ as resolveRuleOptions, _t as Scope, a as HealthResult, at as Category, b as CompiledOverride, bt as Value, c as ScoreResult, ct as Fix, d as Rule, dt as Project, et as classify, f as RuleContext, ft as Result, g as RuleOptionsSpec, h as RuleOptionSpec, i as formatJsonReport, j as BranchStep, jt as skippedFileWarnings, k as ANCESTRY_DEPENDENT_TAGS, kt as SuppressionDirective, l as computeHealth, lt as KitAlias, m as isPenalized, nt as hasFailureAtOrAbove, ot as Config, p as docsUrlFor, q as HeadTag, r as buildJsonReport, rt as summarize, s as ScoreOptions, t as JsonReport, tt as effectiveSeverity, u as computeScore, v as shouldSkipRangeCheck, vt as Severity, w as settingSeverity, wt as ComponentFacts, x as compileOverrides, xt as defaultConfig, y as validateRuleSetting, z as isTopFragment } from "./json-D26FMrh-.js";
|
|
2
2
|
import { AST } from "svelte/compiler";
|
|
3
|
-
//#region src/rules/a11y/aria-data.d.ts
|
|
4
|
-
/**
|
|
5
|
-
* The role a user agent applies: the first token naming a concrete role, or undefined when none
|
|
6
|
-
* does. Shared so the role rules cannot disagree about what a fallback list means.
|
|
7
|
-
*/
|
|
8
|
-
declare function resolveRole(tokens: readonly string[]): string | undefined;
|
|
9
|
-
//#endregion
|
|
10
3
|
//#region src/component-parse.d.ts
|
|
11
|
-
/**
|
|
12
|
-
* Inline `svelte-vitals-disable-next-line` directives (issue #92). A plain text scan, not an
|
|
13
|
-
* AST walk, so `<script>` (`//`) and template (`<!-- -->`) comments are covered uniformly. The
|
|
14
|
-
* directive must be the entire content of its line; the suppressed line is directive-line + 1.
|
|
15
|
-
* Shared with the Kit-module parser (the security kit-module rules).
|
|
16
|
-
*/
|
|
17
|
-
declare function collectSuppressions(source: string): SuppressionDirective[];
|
|
18
4
|
/** What the per-file parsers produce — `ComponentFacts` minus `file`, with `suppressions` always present. */
|
|
19
5
|
type ParsedFacts = Omit<ComponentFacts, 'file' | 'suppressions'> & {
|
|
20
6
|
suppressions: SuppressionDirective[];
|
|
@@ -26,24 +12,28 @@ type ParsedFacts = Omit<ComponentFacts, 'file' | 'suppressions'> & {
|
|
|
26
12
|
*/
|
|
27
13
|
declare function parseComponentFacts(source: string, filename: string): ParsedFacts;
|
|
28
14
|
//#endregion
|
|
15
|
+
//#region src/module-ast.d.ts
|
|
16
|
+
/**
|
|
17
|
+
* Inline `svelte-vitals-disable-next-line` directives (issue #92). A plain text scan, not an
|
|
18
|
+
* AST walk, so `<script>` (`//`) and template (`<!-- -->`) comments are covered uniformly. The
|
|
19
|
+
* directive must be the entire content of its line; the suppressed line is directive-line + 1.
|
|
20
|
+
* Shared with the Kit-module parser (the security kit-module rules).
|
|
21
|
+
*/
|
|
22
|
+
declare function collectSuppressions(source: string): SuppressionDirective[];
|
|
23
|
+
//#endregion
|
|
29
24
|
//#region src/inline-directives.d.ts
|
|
30
25
|
/** File-relative-path → the inline directives collected from that file. */
|
|
31
26
|
type DirectiveIndex = ReadonlyMap<string, readonly SuppressionDirective[]>;
|
|
32
27
|
/**
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
* Runs on the output of `applyOverrides(applyRuleSeverities(...))`, so a directive silences
|
|
38
|
-
* whatever survived config, and every consumer downstream — scoring, `--fail-on`, the suppressions
|
|
39
|
-
* file, the reporters — sees the same suppressed set. `fileRule` keeps its own earlier filter and
|
|
40
|
-
* is unaffected: a result it already suppressed never arrives here, and its PASS is not penalized.
|
|
41
|
-
*
|
|
42
|
-
* A rule+route whose every penalized result was suppressed gains one PASS, located at the first
|
|
43
|
-
* suppressed result in emission order — the anchor the rules themselves use. Its message is the
|
|
44
|
-
* rule's `passLabel` when it declares one, else its `title`.
|
|
28
|
+
* Enter every fact-carrying file into a directive index — components, Kit modules, and the Vite
|
|
29
|
+
* config when its minify flag was read. The one home for the union both pipelines apply, so a new
|
|
30
|
+
* fact family that carries suppressions is wired into inline directives in a single place.
|
|
45
31
|
*/
|
|
46
|
-
declare function
|
|
32
|
+
declare function addFactsDirectives(index: Map<string, readonly SuppressionDirective[]>, facts: {
|
|
33
|
+
components?: readonly ComponentFacts[];
|
|
34
|
+
kitModules?: readonly KitModuleFacts[];
|
|
35
|
+
viteMinifyDisabled?: Project['viteMinifyDisabled'];
|
|
36
|
+
}): void;
|
|
47
37
|
/**
|
|
48
38
|
* Directives naming a rule id that no rule declares. Unlike a directive that matches no finding —
|
|
49
39
|
* legitimate whenever the code was fixed, the rule turned off, or the run scoped — a misspelled id
|
|
@@ -54,23 +44,6 @@ declare function applyInlineDirectives(results: readonly Result[], index: Direct
|
|
|
54
44
|
*/
|
|
55
45
|
declare function unknownDirectiveIds(index: DirectiveIndex, rules: readonly Rule[]): string[];
|
|
56
46
|
//#endregion
|
|
57
|
-
//#region src/component-collect.d.ts
|
|
58
|
-
/**
|
|
59
|
-
* Fallback facts for a file that fails to read or parse (dev tooling must never
|
|
60
|
-
* throw). This is the single source of truth for the empty-facts shape — add new
|
|
61
|
-
* `ComponentFacts` fields HERE so TypeScript catches every call site that still
|
|
62
|
-
* needs updating.
|
|
63
|
-
*/
|
|
64
|
-
declare function emptyComponentFacts(file: string): ComponentFacts;
|
|
65
|
-
/**
|
|
66
|
-
* Scan every `.svelte` component and `.svelte.ts`/`.svelte.js` runes module under `src/`
|
|
67
|
-
* for Correctness/Security/Architecture/Bundle-Performance/Accessibility facts. Independent
|
|
68
|
-
* of route resolution — covers `$lib` and non-route components too. A file that fails to
|
|
69
|
-
* read or parse contributes empty facts instead of aborting the whole scan (dev tooling
|
|
70
|
-
* must never throw).
|
|
71
|
-
*/
|
|
72
|
-
declare function collectComponentFacts(rt: Runtime, cwd: string): Promise<ComponentFacts[]>;
|
|
73
|
-
//#endregion
|
|
74
47
|
//#region src/source-files.d.ts
|
|
75
48
|
/**
|
|
76
49
|
* Every file under `src/`, as project-relative paths, sorted. Paths only — nothing is
|
|
@@ -111,27 +84,8 @@ declare function collectSourceFiles(rt: Runtime, cwd: string): Promise<string[]>
|
|
|
111
84
|
* repo-local specifier resolution in the repo.
|
|
112
85
|
*/
|
|
113
86
|
declare function resolveRepoLocalPath(spec: string, importerFile: string, aliases?: readonly KitAlias[]): string | undefined;
|
|
114
|
-
/**
|
|
115
|
-
* Resolve an import specifier to a repo-relative `.svelte.ts`/`.svelte.js` path, or
|
|
116
|
-
* undefined when it cannot be a runes module: delegates to `resolveRepoLocalPath` with
|
|
117
|
-
* `aliases` (defaulting to `$lib` → `src/lib` when omitted), so a project's declared
|
|
118
|
-
* `kit.alias`/`kit.files.lib` resolve here exactly as they do at rule time; `./`/`../`
|
|
119
|
-
* resolve against the importing file's directory; bare packages, unmatched aliases, and
|
|
120
|
-
* a relative specifier whose `..` segments escape the repo root are skipped. An
|
|
121
|
-
* extensionless `…/x.svelte` specifier canonicalises to `….svelte.ts` (security/shared-state-import also
|
|
122
|
-
* tries the `.js` sibling when matching).
|
|
123
|
-
*/
|
|
124
|
-
declare function resolveRunesModuleSpecifier(spec: string, importerFile: string, aliases?: readonly KitAlias[]): string | undefined;
|
|
125
|
-
/**
|
|
126
|
-
* Parse one SvelteKit route/hooks file's SSR shared-state facts (the security kit-module rules). Uses
|
|
127
|
-
* the shared wrap parser (`parseModuleProgram`), so reported lines subtract the
|
|
128
|
-
* 1-line wrap prefix; suppressions are scanned on the unwrapped source.
|
|
129
|
-
*/
|
|
130
|
-
declare function parseKitModuleFacts(source: string, filename: string, aliases?: readonly KitAlias[]): Omit<KitModuleFacts, 'file' | 'kind'>;
|
|
131
87
|
//#endregion
|
|
132
88
|
//#region src/kit-module-collect.d.ts
|
|
133
|
-
/** Fallback facts for a Kit file that fails to read or parse (dev tooling must never throw). */
|
|
134
|
-
declare function emptyKitModuleFacts(file: string, kind: KitModuleFacts['kind']): KitModuleFacts;
|
|
135
89
|
/**
|
|
136
90
|
* Scan SvelteKit route/hooks files for SSR shared-state facts (the security kit-module rules): route
|
|
137
91
|
* `+page`/`+layout` server and universal modules, `+server` endpoints, and
|
|
@@ -155,49 +109,6 @@ declare function findMinifyDisabled(source: string): {
|
|
|
155
109
|
} | undefined;
|
|
156
110
|
//#endregion
|
|
157
111
|
//#region src/svelte-config-parse.d.ts
|
|
158
|
-
/** What a Vite config says about SvelteKit's own configuration. */
|
|
159
|
-
type ViteKitConfigResult =
|
|
160
|
-
/** No `sveltekit()` call, or one with no argument — `svelte.config` still applies. */
|
|
161
|
-
{
|
|
162
|
-
kind: 'no-plugin-config';
|
|
163
|
-
} |
|
|
164
|
-
/** `sveltekit(<something we can't resolve>)` — the effective config is unknowable AND
|
|
165
|
-
* `svelte.config` is provably ignored, so the caller must stay quiet. */
|
|
166
|
-
{
|
|
167
|
-
kind: 'unresolvable';
|
|
168
|
-
} |
|
|
169
|
-
/** `sveltekit({…})` resolved. `base` is unset when the config declares no non-empty base. */
|
|
170
|
-
{
|
|
171
|
-
kind: 'resolved';
|
|
172
|
-
base?: {
|
|
173
|
-
value?: string;
|
|
174
|
-
};
|
|
175
|
-
};
|
|
176
|
-
/** `kit.alias` and `kit.files.lib` as written, before Kit compiles them into ordered entries. */
|
|
177
|
-
type RawKitAliases = {
|
|
178
|
-
/**
|
|
179
|
-
* `kit.alias` entries in declaration order, `value: null` where the config's value is not a
|
|
180
|
-
* string literal. **Undefined means the key set is unknowable** — a spread or a computed key
|
|
181
|
-
* puts an unknown key at a known position, and an unknown key could shadow anything after it,
|
|
182
|
-
* with no `find` to record that with. The caller then discards every user entry.
|
|
183
|
-
*/
|
|
184
|
-
entries?: {
|
|
185
|
-
key: string;
|
|
186
|
-
value: string | null;
|
|
187
|
-
}[];
|
|
188
|
-
/**
|
|
189
|
-
* `kit.files.lib`, in three distinct states: **absent** (`undefined`) — there is no `lib`
|
|
190
|
-
* property, or `files` itself does not resolve to an object literal; a **literal** (the
|
|
191
|
-
* string) — `files.lib` is a string literal; **present but unreadable** (`null`) — the `lib`
|
|
192
|
-
* property exists but its value is not statically a string (e.g. a computed expression). The
|
|
193
|
-
* `null` state must not collapse into "absent": the caller cannot fall back to `src/lib`
|
|
194
|
-
* without risking a wrong answer, because the project may have moved `$lib` to something this
|
|
195
|
-
* parser simply couldn't read.
|
|
196
|
-
*/
|
|
197
|
-
filesLib?: string | null;
|
|
198
|
-
};
|
|
199
|
-
/** `kit.alias` and `kit.files.lib` from a `svelte.config.{js,ts}` source. */
|
|
200
|
-
declare function findKitAliasesInSvelteConfig(source: string): RawKitAliases;
|
|
201
112
|
/**
|
|
202
113
|
* The project's compiled alias list, following SvelteKit's config precedence: options passed to
|
|
203
114
|
* the `sveltekit()` Vite plugin make `svelte.config` irrelevant (Kit logs "svelte.config.js is
|
|
@@ -211,12 +122,6 @@ declare function resolveKitAliases(viteConfig: {
|
|
|
211
122
|
} | undefined, svelteConfig: {
|
|
212
123
|
source: string;
|
|
213
124
|
} | undefined): KitAlias[] | undefined;
|
|
214
|
-
/** `kit.paths.base` from a `svelte.config.{js,ts}` source. */
|
|
215
|
-
declare function findKitPathsBaseInSvelteConfig(source: string): {
|
|
216
|
-
value?: string;
|
|
217
|
-
} | undefined;
|
|
218
|
-
/** SvelteKit config passed to the `sveltekit()` plugin in a Vite config source (since Kit 2.62). */
|
|
219
|
-
declare function findKitPathsBaseInViteConfig(source: string): ViteKitConfigResult;
|
|
220
125
|
/**
|
|
221
126
|
* The project's effective `kit.paths.base`, following SvelteKit's precedence: the `sveltekit()`
|
|
222
127
|
* plugin config when it carries one, otherwise `svelte.config`. `file` is the config the base
|
|
@@ -310,6 +215,21 @@ declare function runRules(rules: Rule[], ctx: RuleContext): Promise<{
|
|
|
310
215
|
examined: Record<string, Record<string, number>>;
|
|
311
216
|
failedRules: FailedRule[];
|
|
312
217
|
}>;
|
|
218
|
+
/**
|
|
219
|
+
* Run rules and apply the correction sequence every pipeline owes its results: configured
|
|
220
|
+
* severities, overrides, inline directives, then the failed-rule weight correction — a failed
|
|
221
|
+
* rule examined nothing, so its weight must not stay in the Health denominator, and every
|
|
222
|
+
* downstream consumer must score against the returned `scoringConfig` so they agree.
|
|
223
|
+
* A caller with no directive sources passes an empty index, which makes the directive pass
|
|
224
|
+
* identity; the severity and override passes are config-governed and run regardless.
|
|
225
|
+
*/
|
|
226
|
+
declare function runAnalysis(rules: Rule[], ctx: RuleContext, directives: DirectiveIndex): Promise<{
|
|
227
|
+
results: Result[];
|
|
228
|
+
examined: Record<string, Record<string, number>>;
|
|
229
|
+
failedRules: FailedRule[];
|
|
230
|
+
failedRuleIds: string[];
|
|
231
|
+
scoringConfig: Config;
|
|
232
|
+
}>;
|
|
313
233
|
//#endregion
|
|
314
234
|
//#region src/rules/seo/title-presence.d.ts
|
|
315
235
|
/**
|
|
@@ -935,67 +855,6 @@ interface RuleInfo {
|
|
|
935
855
|
/** Look up a rule's static metadata, as `svelte-vitals explain` renders it (issue #24). Rule ids are matched exactly (case-sensitive, e.g. "seo/ssr-disabled"). */
|
|
936
856
|
declare function explainRule(id: string): RuleInfo | undefined;
|
|
937
857
|
//#endregion
|
|
938
|
-
//#region src/rules/seo/head-tag-rule.d.ts
|
|
939
|
-
interface HeadTagRuleOptions {
|
|
940
|
-
id: string;
|
|
941
|
-
title: string;
|
|
942
|
-
severity: Severity;
|
|
943
|
-
/** Identifies the tag this rule looks for. */
|
|
944
|
-
match: (tag: HeadTag) => boolean;
|
|
945
|
-
/** Short human label, e.g. 'description'. */
|
|
946
|
-
label: string;
|
|
947
|
-
recommendation: string;
|
|
948
|
-
/** Why this rule matters — surfaced by `svelte-vitals explain` (issue #24). */
|
|
949
|
-
rationale: string;
|
|
950
|
-
/** Agent-actionable remediation attached to every finding (issue #18). */
|
|
951
|
-
fix?: Fix;
|
|
952
|
-
/**
|
|
953
|
-
* When set, only heads for which this returns true are evaluated; others emit
|
|
954
|
-
* nothing. Use for tags whose canonical location is invisible to a given mode
|
|
955
|
-
* (e.g. viewport lives in app.html → only checkable in rendered mode), so the
|
|
956
|
-
* rule stays silent instead of false-flagging "missing".
|
|
957
|
-
*/
|
|
958
|
-
appliesTo?: (head: ResolvedHead) => boolean;
|
|
959
|
-
}
|
|
960
|
-
/** Build a route-scope rule asserting the presence of a single head tag (design §11). */
|
|
961
|
-
declare function headTagRule(opts: HeadTagRuleOptions): Rule;
|
|
962
|
-
//#endregion
|
|
963
|
-
//#region src/rules/perf/image-rule.d.ts
|
|
964
|
-
interface ImageRuleOptions {
|
|
965
|
-
id: string;
|
|
966
|
-
title: string;
|
|
967
|
-
severity: Severity;
|
|
968
|
-
/** Vitals category (default 'performance'); seo/image-alt (alt text) reports under 'seo'. */
|
|
969
|
-
category?: Category;
|
|
970
|
-
/** Noun phrase for messages, e.g. '<img> width/height'. */
|
|
971
|
-
label: string;
|
|
972
|
-
recommendation: string;
|
|
973
|
-
rationale: string;
|
|
974
|
-
fix?: Fix;
|
|
975
|
-
/** Returns true when the image satisfies the rule (passes). */
|
|
976
|
-
ok: (img: ImageInfo) => boolean;
|
|
977
|
-
}
|
|
978
|
-
/** Build a route-scoped <img> rule that checks each image against `ok` (issue #10). */
|
|
979
|
-
declare function imageRule(opts: ImageRuleOptions): Rule;
|
|
980
|
-
//#endregion
|
|
981
|
-
//#region src/rules/perf/link-rule.d.ts
|
|
982
|
-
interface LinkRuleOptions {
|
|
983
|
-
id: string;
|
|
984
|
-
title: string;
|
|
985
|
-
severity: Severity;
|
|
986
|
-
/** Noun phrase for messages, e.g. '`as` on a preloaded `<link>`'. */
|
|
987
|
-
label: string;
|
|
988
|
-
recommendation: string;
|
|
989
|
-
rationale: string;
|
|
990
|
-
fix?: Fix;
|
|
991
|
-
/** Which link tags this rule evaluates (e.g. rel === 'preload'). */
|
|
992
|
-
relevant: (tag: HeadTag) => boolean;
|
|
993
|
-
/** Returns true when a relevant link satisfies the rule (passes). */
|
|
994
|
-
ok: (tag: HeadTag) => boolean;
|
|
995
|
-
}
|
|
996
|
-
/** Build a route-scoped Performance rule that checks each relevant <link> in the effective head. */
|
|
997
|
-
declare function linkRule(opts: LinkRuleOptions): Rule;
|
|
998
|
-
//#endregion
|
|
999
858
|
//#region src/reporter/palette.d.ts
|
|
1000
859
|
/** String decorators for the console reporter. Injected so core stays pure/dep-free. */
|
|
1001
860
|
interface Palette {
|
|
@@ -1062,13 +921,6 @@ declare function formatSarifReport(results: Result[], config: Config, meta: {
|
|
|
1062
921
|
}): string;
|
|
1063
922
|
//#endregion
|
|
1064
923
|
//#region src/reporter/app-shell.d.ts
|
|
1065
|
-
type Band = 'good' | 'warn' | 'poor';
|
|
1066
|
-
declare const BAND_COLOR: {
|
|
1067
|
-
good: string;
|
|
1068
|
-
warn: string;
|
|
1069
|
-
poor: string;
|
|
1070
|
-
};
|
|
1071
|
-
declare function scoreBand(score: number): Band;
|
|
1072
924
|
declare function escapeHtml(s: string): string;
|
|
1073
925
|
/**
|
|
1074
926
|
* Return the URL only when it uses a safe http/https scheme, else null.
|
|
@@ -1095,13 +947,6 @@ interface AppSnapshot {
|
|
|
1095
947
|
coreVersion?: string;
|
|
1096
948
|
};
|
|
1097
949
|
}
|
|
1098
|
-
/**
|
|
1099
|
-
* Hand-authored CSS for the master/detail shell. Reuses the same design-token
|
|
1100
|
-
* names/values as the rest of the project, and adds a dark theme via
|
|
1101
|
-
* `:root[data-theme="dark"]` plus a `prefers-color-scheme` fallback for a
|
|
1102
|
-
* first-ever visit with no stored preference.
|
|
1103
|
-
*/
|
|
1104
|
-
declare const APP_STYLE: string;
|
|
1105
950
|
/**
|
|
1106
951
|
* Hand-authored client script for the shell — no bundler, no framework. Parses the
|
|
1107
952
|
* AppSnapshot embedded by renderAppShell, then owns all rendering: sidebar
|
|
@@ -1129,4 +974,4 @@ declare function formatHtmlReport(results: Result[], config: Config, meta: {
|
|
|
1129
974
|
coreVersion?: string;
|
|
1130
975
|
}): string;
|
|
1131
976
|
//#endregion
|
|
1132
|
-
export { type A11yOccurrenceInfo, type A11ySkipCause, APP_SCRIPT,
|
|
977
|
+
export { type A11yOccurrenceInfo, type A11ySkipCause, ANCESTRY_DEPENDENT_TAGS, APP_SCRIPT, ASIDE_DEMOTING_TAGS, type AppSnapshot, type BranchStep, CHILD_NODE_KEYS, type Classification, type CompiledOverride, type ComponentFacts, type ConsoleReportOptions, type DirectiveIndex, type EachBlockFact, type EffectFact, type FailedRule, type HeadTag, type HeadingInfo, type HealthResult, IDREF_ATTRS, type ImageInfo, type KitAlias, type KitModuleFacts, type LandmarkInput, NAMING_ATTRS, type OrphanEffectFact, type Palette, type Project, ROBOTS_SOURCE_PATHS, type ResolvedA11y, type ResolvedHead, type ResolvedHeadings, type ResolvedImages, type RouteBadge, type Rule, type RuleContext, RuleInfo, RuleOptionInfo, type RuleOptionSpec, type RuleOptionsSpec, type Runtime, SECTIONING_TAGS, SITEMAP_SOURCE_PATHS, SVELTE_CONFIG_FILES, type Scope, type ScoreOptions, type ScoreResult, type SourceSpan, type SuppressionDirective, VITE_CONFIG_FILES, a11yAbbrTitle, a11yAccessibleName, a11yAriaHiddenFocus, a11yDeprecatedAria, a11yDeprecatedAttr, a11yDeprecatedElement, a11yDisallowedAriaProps, a11yDisallowedElement, a11yDoctype, a11yDuplicateLandmark, a11yIdDuplication, a11yInteractiveNesting, a11yInvalidAriaValue, a11yInvalidRole, a11yLabelHasControl, a11yNoAccesskey, a11yNoAutofocus, a11yNoDuplicateDt, a11yNoMissingIdRef, a11yPatternTitle, a11yPermittedContents, a11yPlaceholderLabelOption, a11yPositiveTabindex, a11yRequireDatetime, a11yRequiredAriaProps, a11yRequiredElement, a11yTopLevelLandmark, a11yUnknownAriaAttribute, a11yUnverifiedIdRef, a11yUseList, addFactsDirectives, allRules, architectureComponentSize, architectureDirectoryNaming, architectureDocLinkTarget, architecturePrivateScopeImport, architecturePropCount, architectureReservedDirectoryNames, architectureReservedNamePlacement, architectureRouteComponentImport, architectureUnitEntryFile, attrText, attrTextOf, attrValue, attrValueOf, buildHtmlDocument, buildJsonReport, classify, collectComponentFacts, collectKitModuleFacts, collectSourceFiles, collectSuppressions, compileOverrides, computeHealth, computeScore, correctnessAutoplayMuted, correctnessBasePathNavigation, correctnessCheckableBindValue, correctnessEachIndexKey, correctnessEachKey, correctnessEffectAsDerived, correctnessEffectAsOnMount, correctnessInstanceBrowserGlobal, correctnessNonreactiveBuiltinState, correctnessOrphanEffect, correctnessOrphanLifecycle, correctnessPropMutation, correctnessServerBrowserGlobal, correctnessStalePropDerivation, correctnessUnmutatedState, decodeFragmentId, defaultConfig, defaultProject, docsUrlFor, effectiveSeverity, escapeHtml, explainRule, findAttr, findMinifyDisabled, foldOccurrences, formatAgentReport, formatConsoleReport, formatFailedRuleWarning, formatGithubReport, formatHtmlReport, formatJsonReport, formatMarkdownReport, formatSarifReport, hasFailureAtOrAbove, isClassicScriptType, isPenalized, isTopFragment, lineOf, noColorPalette, parseComponentFacts, parseSvelte, performanceFontPreloadCrossorigin, performanceHeavyImport, performanceIframeLoading, performanceImageDimensions, performanceImageLoadingHint, performanceLcpImage, performanceLoadWaterfall, performanceMinifyDisabled, performanceNamespaceImport, performancePreconnect, performancePreloadMissingAs, performanceRenderBlockingScript, performanceResponsiveImage, performanceSequentialAwaits, performanceStateRaw, renderAppShell, resolveKitAliases, resolveKitPathsBase, resolveLandmark, resolveRepoLocalPath, resolveRuleOptions, runAnalysis, runRules, safeHref, scoreColor, securityHandlerStateWrite, securityJavascriptUrl, securityRawHtml, securityServerModuleState, securitySharedStateImport, selectRules, seoCanonicalUrl, seoCharset, seoDescriptionLength, seoDescriptionPresence, seoDuplicateDescription, seoDuplicateTitle, seoHeadingLevelSkip, seoHreflang, seoHtmlLang, seoImageAlt, seoIndexability, seoJsonLd, seoJsonLdDateFormat, seoJsonLdDeprecatedType, seoJsonLdPlaceholder, seoJsonLdRelativeUrl, seoJsonLdRequiredProps, seoJsonLdValidity, seoOgDescription, seoOgImage, seoOgTitle, seoOgUrl, seoRobotsTxt, seoSingleH1, seoSitemapInRobots, seoSitemapXml, seoSsrDisabled, seoTitleLength, seoTitlePresence, seoTwitterCard, seoViewport, settingSeverity, shouldSkipRangeCheck, skippedFileWarnings, splitTokens, stripTextDirective, summarize, terminalSafe, textFromNodes, unknownDirectiveIds, validateRuleSetting, valueFromNodes, withFailedRulesOff, withReadLimit };
|