@accesslint/core 0.3.15 → 0.5.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/i18n/en.d.ts +3 -0
- package/dist/i18n/en.d.ts.map +1 -0
- package/dist/i18n/es.d.ts +3 -0
- package/dist/i18n/es.d.ts.map +1 -0
- package/dist/i18n/registry.d.ts +6 -0
- package/dist/i18n/registry.d.ts.map +1 -0
- package/dist/i18n/types.d.ts +9 -0
- package/dist/i18n/types.d.ts.map +1 -0
- package/dist/index.cjs +5 -5
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.iife.js +5 -5
- package/dist/index.js +1622 -1380
- package/dist/rules/index.d.ts +3 -0
- package/dist/rules/index.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/rules/index.d.ts
CHANGED
|
@@ -11,11 +11,14 @@ export interface ConfigureOptions {
|
|
|
11
11
|
additionalRules?: Rule[];
|
|
12
12
|
/** Rule IDs to disable */
|
|
13
13
|
disabledRules?: string[];
|
|
14
|
+
/** Locale for translated rule descriptions/guidance (e.g. 'en', 'es') */
|
|
15
|
+
locale?: string;
|
|
14
16
|
}
|
|
15
17
|
export declare function configureRules(options: ConfigureOptions): void;
|
|
16
18
|
/**
|
|
17
19
|
* Return the full set of active rules: bundled (minus disabled) plus
|
|
18
20
|
* any additional rules added via configureRules().
|
|
21
|
+
* When a locale is active, returns shallow-cloned rules with translated fields.
|
|
19
22
|
*/
|
|
20
23
|
export declare function getActiveRules(): Rule[];
|
|
21
24
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/rules/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/rules/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAgG5D,eAAO,MAAM,KAAK,EAAE,IAAI,EA6GvB,CAAC;AAGF,MAAM,WAAW,YAAY;IAC3B,2EAA2E;IAC3E,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;IACxC,8CAA8C;IAC9C,aAAa,IAAI,SAAS,EAAE,CAAC;CAC9B;AASD,MAAM,WAAW,gBAAgB;IAC/B,oEAAoE;IACpE,eAAe,CAAC,EAAE,IAAI,EAAE,CAAC;IACzB,0BAA0B;IAC1B,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB,yEAAyE;IACzE,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,wBAAgB,cAAc,CAAC,OAAO,EAAE,gBAAgB,GAAG,IAAI,CAW9D;AAED;;;;GAIG;AACH,wBAAgB,cAAc,IAAI,IAAI,EAAE,CAYvC;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,QAAQ,GAAG,YAAY,CAwB9D;AAED,wBAAgB,cAAc,IAAI,IAAI,CAOrC;AAED,wBAAgB,QAAQ,CAAC,GAAG,EAAE,QAAQ,GAAG,WAAW,CAkBnD;AAID,wBAAgB,WAAW,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAQxD"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@accesslint/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Pure accessibility rule engine — WCAG audit with zero browser dependencies",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"dist"
|
|
19
19
|
],
|
|
20
20
|
"scripts": {
|
|
21
|
-
"build": "vite build --config vite.lib.config.ts && tsc -p tsconfig.lib.json",
|
|
21
|
+
"build": "vite build --config vite.lib.config.ts && vite build --config vite.iife.config.ts && tsc -p tsconfig.lib.json",
|
|
22
22
|
"test": "vitest run",
|
|
23
23
|
"bench": "vitest bench",
|
|
24
24
|
"test:memory": "vitest run --config vite.memory.config.ts",
|