@ngbracket/a11y-devtools 0.1.0 → 0.1.1
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 +6 -6
- package/dist/index.js +6 -6
- package/dist/overlay.d.ts +1 -1
- package/dist/provider.d.ts +1 -1
- package/dist/provider.js +2 -2
- package/dist/report.d.ts +1 -1
- package/dist/runner.d.ts +2 -2
- package/dist/runner.js +2 -2
- package/dist/scan.js +2 -2
- package/package.json +4 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { provideA11yDevtools, type A11yDevtoolsOptions } from './provider';
|
|
2
|
-
export { runA11yScan, type RunOptions } from './runner';
|
|
3
|
-
export { scan, type A11yFinding, type Impact } from './scan';
|
|
4
|
-
export { logFindings, type Logger } from './report';
|
|
5
|
-
export { resolveOwningComponentName, ngDebug, type NgDebugGlobal } from './attribution';
|
|
6
|
-
export { createOverlay, OVERLAY_ATTR, OVERLAY_EXCLUDE_SELECTOR, type A11yOverlay, type OverlayOptions, } from './overlay';
|
|
1
|
+
export { provideA11yDevtools, type A11yDevtoolsOptions } from './provider.js';
|
|
2
|
+
export { runA11yScan, type RunOptions } from './runner.js';
|
|
3
|
+
export { scan, type A11yFinding, type Impact } from './scan.js';
|
|
4
|
+
export { logFindings, type Logger } from './report.js';
|
|
5
|
+
export { resolveOwningComponentName, ngDebug, type NgDebugGlobal } from './attribution.js';
|
|
6
|
+
export { createOverlay, OVERLAY_ATTR, OVERLAY_EXCLUDE_SELECTOR, type A11yOverlay, type OverlayOptions, } from './overlay.js';
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { provideA11yDevtools } from './provider';
|
|
2
|
-
export { runA11yScan } from './runner';
|
|
3
|
-
export { scan } from './scan';
|
|
4
|
-
export { logFindings } from './report';
|
|
5
|
-
export { resolveOwningComponentName, ngDebug } from './attribution';
|
|
6
|
-
export { createOverlay, OVERLAY_ATTR, OVERLAY_EXCLUDE_SELECTOR, } from './overlay';
|
|
1
|
+
export { provideA11yDevtools } from './provider.js';
|
|
2
|
+
export { runA11yScan } from './runner.js';
|
|
3
|
+
export { scan } from './scan.js';
|
|
4
|
+
export { logFindings } from './report.js';
|
|
5
|
+
export { resolveOwningComponentName, ngDebug } from './attribution.js';
|
|
6
|
+
export { createOverlay, OVERLAY_ATTR, OVERLAY_EXCLUDE_SELECTOR, } from './overlay.js';
|
package/dist/overlay.d.ts
CHANGED
package/dist/provider.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type EnvironmentProviders } from '@angular/core';
|
|
2
|
-
import type { Logger } from './report';
|
|
2
|
+
import type { Logger } from './report.js';
|
|
3
3
|
export interface A11yDevtoolsOptions {
|
|
4
4
|
/** Element/Document to scan. Defaults to `document`. */
|
|
5
5
|
root?: () => Element | Document;
|
package/dist/provider.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ApplicationRef, DestroyRef, inject, isDevMode, makeEnvironmentProviders, provideEnvironmentInitializer, } from '@angular/core';
|
|
2
2
|
import { debounceTime, filter } from 'rxjs';
|
|
3
|
-
import { runA11yScan } from './runner';
|
|
4
|
-
import { createOverlay } from './overlay';
|
|
3
|
+
import { runA11yScan } from './runner.js';
|
|
4
|
+
import { createOverlay } from './overlay.js';
|
|
5
5
|
/**
|
|
6
6
|
* Dev-only in-app accessibility auditing. Rescans whenever the application
|
|
7
7
|
* settles (zoneless-aware, via `ApplicationRef.isStable`) and reports each
|
package/dist/report.d.ts
CHANGED
package/dist/runner.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type A11yFinding } from './scan';
|
|
2
|
-
import { type Logger } from './report';
|
|
1
|
+
import { type A11yFinding } from './scan.js';
|
|
2
|
+
import { type Logger } from './report.js';
|
|
3
3
|
export interface RunOptions {
|
|
4
4
|
/** Log grouped findings to the console. Default true. */
|
|
5
5
|
log?: boolean;
|
package/dist/runner.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { scan } from './scan';
|
|
2
|
-
import { logFindings } from './report';
|
|
1
|
+
import { scan } from './scan.js';
|
|
2
|
+
import { logFindings } from './report.js';
|
|
3
3
|
/** Scan `root`, optionally report, and return the findings. */
|
|
4
4
|
export async function runA11yScan(root, options = {}) {
|
|
5
5
|
const findings = await scan(root ?? document);
|
package/dist/scan.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { resolveOwningComponentName } from './attribution';
|
|
2
|
-
import { OVERLAY_EXCLUDE_SELECTOR } from './overlay';
|
|
1
|
+
import { resolveOwningComponentName } from './attribution.js';
|
|
2
|
+
import { OVERLAY_EXCLUDE_SELECTOR } from './overlay.js';
|
|
3
3
|
// axe-core is a singleton and throws if a run starts while another is in flight.
|
|
4
4
|
// Chain runs so overlapping callers (e.g. rapid rescans) serialize safely.
|
|
5
5
|
let runChain = Promise.resolve();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ngbracket/a11y-devtools",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Dev-only in-app accessibility auditing for Angular that maps each axe violation back to the component that rendered it — the attribution React overlay tools can't do.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Duncan Faulkner",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"homepage": "https://ngbracket.com",
|
|
11
11
|
"repository": {
|
|
12
12
|
"type": "git",
|
|
13
|
-
"url": "https://github.com/ngbracket/a11y-devtools"
|
|
13
|
+
"url": "git+https://github.com/ngbracket/a11y-devtools.git"
|
|
14
14
|
},
|
|
15
15
|
"keywords": [
|
|
16
16
|
"angular",
|
|
@@ -29,7 +29,8 @@
|
|
|
29
29
|
".": {
|
|
30
30
|
"types": "./dist/index.d.ts",
|
|
31
31
|
"import": "./dist/index.js"
|
|
32
|
-
}
|
|
32
|
+
},
|
|
33
|
+
"./package.json": "./package.json"
|
|
33
34
|
},
|
|
34
35
|
"files": [
|
|
35
36
|
"dist"
|