accented 1.2.5 → 1.3.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.
Files changed (49) hide show
  1. package/dist/constants.d.ts +12 -0
  2. package/dist/constants.d.ts.map +1 -1
  3. package/dist/constants.js +32 -0
  4. package/dist/constants.js.map +1 -1
  5. package/dist/elements/accented-dialog.d.ts +1 -367
  6. package/dist/elements/accented-dialog.d.ts.map +1 -1
  7. package/dist/elements/accented-dialog.js.map +1 -1
  8. package/dist/elements/accented-trigger.d.ts +1 -366
  9. package/dist/elements/accented-trigger.d.ts.map +1 -1
  10. package/dist/elements/accented-trigger.js.map +1 -1
  11. package/dist/logger.d.ts.map +1 -1
  12. package/dist/scanner.d.ts.map +1 -1
  13. package/dist/scanner.js +79 -41
  14. package/dist/scanner.js.map +1 -1
  15. package/dist/utils/create-extended-element-with-issues.d.ts +3 -0
  16. package/dist/utils/create-extended-element-with-issues.d.ts.map +1 -0
  17. package/dist/utils/create-extended-element-with-issues.js +56 -0
  18. package/dist/utils/create-extended-element-with-issues.js.map +1 -0
  19. package/dist/utils/css-transforms.d.ts.map +1 -1
  20. package/dist/utils/css-transforms.js +0 -2
  21. package/dist/utils/css-transforms.js.map +1 -1
  22. package/dist/utils/get-all-rules-from-axe-options.d.ts +3 -0
  23. package/dist/utils/get-all-rules-from-axe-options.d.ts.map +1 -0
  24. package/dist/utils/get-all-rules-from-axe-options.js +51 -0
  25. package/dist/utils/get-all-rules-from-axe-options.js.map +1 -0
  26. package/dist/utils/shadow-dom-aware-mutation-observer.d.ts +1 -9
  27. package/dist/utils/shadow-dom-aware-mutation-observer.d.ts.map +1 -1
  28. package/dist/utils/shadow-dom-aware-mutation-observer.js.map +1 -1
  29. package/dist/utils/transform-violations.d.ts.map +1 -1
  30. package/dist/utils/transform-violations.js +2 -13
  31. package/dist/utils/transform-violations.js.map +1 -1
  32. package/dist/utils/update-elements-with-issues.d.ts +4 -3
  33. package/dist/utils/update-elements-with-issues.d.ts.map +1 -1
  34. package/dist/utils/update-elements-with-issues.js +36 -80
  35. package/dist/utils/update-elements-with-issues.js.map +1 -1
  36. package/package.json +5 -5
  37. package/src/constants.ts +34 -0
  38. package/src/elements/accented-dialog.ts +1 -1
  39. package/src/elements/accented-trigger.ts +1 -1
  40. package/src/logger.ts +1 -1
  41. package/src/scanner.ts +91 -45
  42. package/src/utils/create-extended-element-with-issues.ts +67 -0
  43. package/src/utils/css-transforms.ts +0 -2
  44. package/src/utils/get-all-rules-from-axe-options.test.ts +169 -0
  45. package/src/utils/get-all-rules-from-axe-options.ts +54 -0
  46. package/src/utils/shadow-dom-aware-mutation-observer.ts +4 -1
  47. package/src/utils/transform-violations.ts +2 -14
  48. package/src/utils/update-elements-with-issues.test.ts +223 -139
  49. package/src/utils/update-elements-with-issues.ts +76 -107
@@ -7,370 +7,5 @@ export interface AccentedTrigger extends HTMLElement {
7
7
  position: Signal<Position> | undefined;
8
8
  visible: Signal<boolean> | undefined;
9
9
  }
10
- export declare const getAccentedTrigger: (name: string) => {
11
- new (): {
12
- "__#private@#abortController": AbortController | undefined;
13
- "__#private@#dialogCloseAbortController": AbortController | undefined;
14
- "__#private@#disposeOfPositionEffect": (() => void) | undefined;
15
- "__#private@#disposeOfVisibilityEffect": (() => void) | undefined;
16
- "__#private@#elementMutationObserver": MutationObserver | undefined;
17
- element: Element | undefined;
18
- dialog: AccentedDialog | undefined;
19
- position: Signal<Position> | undefined;
20
- visible: Signal<boolean> | undefined;
21
- connectedCallback(): void;
22
- disconnectedCallback(): void;
23
- "__#private@#setTransform"(): void;
24
- accessKey: string;
25
- readonly accessKeyLabel: string;
26
- autocapitalize: string;
27
- autocorrect: boolean;
28
- dir: string;
29
- draggable: boolean;
30
- hidden: boolean;
31
- inert: boolean;
32
- innerText: string;
33
- lang: string;
34
- readonly offsetHeight: number;
35
- readonly offsetLeft: number;
36
- readonly offsetParent: Element | null;
37
- readonly offsetTop: number;
38
- readonly offsetWidth: number;
39
- outerText: string;
40
- popover: string | null;
41
- spellcheck: boolean;
42
- title: string;
43
- translate: boolean;
44
- writingSuggestions: string;
45
- attachInternals(): ElementInternals;
46
- click(): void;
47
- hidePopover(): void;
48
- showPopover(): void;
49
- togglePopover(options?: boolean): boolean;
50
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
51
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
52
- removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
53
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
54
- readonly attributes: NamedNodeMap;
55
- get classList(): DOMTokenList;
56
- set classList(value: string);
57
- className: string;
58
- readonly clientHeight: number;
59
- readonly clientLeft: number;
60
- readonly clientTop: number;
61
- readonly clientWidth: number;
62
- readonly currentCSSZoom: number;
63
- id: string;
64
- innerHTML: string;
65
- readonly localName: string;
66
- readonly namespaceURI: string | null;
67
- onfullscreenchange: ((this: Element, ev: Event) => any) | null;
68
- onfullscreenerror: ((this: Element, ev: Event) => any) | null;
69
- outerHTML: string;
70
- readonly ownerDocument: Document;
71
- get part(): DOMTokenList;
72
- set part(value: string);
73
- readonly prefix: string | null;
74
- readonly scrollHeight: number;
75
- scrollLeft: number;
76
- scrollTop: number;
77
- readonly scrollWidth: number;
78
- readonly shadowRoot: ShadowRoot | null;
79
- slot: string;
80
- readonly tagName: string;
81
- attachShadow(init: ShadowRootInit): ShadowRoot;
82
- checkVisibility(options?: CheckVisibilityOptions): boolean;
83
- closest<K extends keyof HTMLElementTagNameMap>(selector: K): HTMLElementTagNameMap[K] | null;
84
- closest<K extends keyof SVGElementTagNameMap>(selector: K): SVGElementTagNameMap[K] | null;
85
- closest<K extends keyof MathMLElementTagNameMap>(selector: K): MathMLElementTagNameMap[K] | null;
86
- closest<E extends Element = Element>(selectors: string): E | null;
87
- computedStyleMap(): StylePropertyMapReadOnly;
88
- getAttribute(qualifiedName: string): string | null;
89
- getAttributeNS(namespace: string | null, localName: string): string | null;
90
- getAttributeNames(): string[];
91
- getAttributeNode(qualifiedName: string): Attr | null;
92
- getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;
93
- getBoundingClientRect(): DOMRect;
94
- getClientRects(): DOMRectList;
95
- getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
96
- getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;
97
- getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;
98
- getElementsByTagName<K extends keyof MathMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<MathMLElementTagNameMap[K]>;
99
- getElementsByTagName<K extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>;
100
- getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
101
- getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
102
- getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
103
- getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
104
- getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
105
- getHTML(options?: GetHTMLOptions): string;
106
- hasAttribute(qualifiedName: string): boolean;
107
- hasAttributeNS(namespace: string | null, localName: string): boolean;
108
- hasAttributes(): boolean;
109
- hasPointerCapture(pointerId: number): boolean;
110
- insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
111
- insertAdjacentHTML(position: InsertPosition, string: string): void;
112
- insertAdjacentText(where: InsertPosition, data: string): void;
113
- matches(selectors: string): boolean;
114
- releasePointerCapture(pointerId: number): void;
115
- removeAttribute(qualifiedName: string): void;
116
- removeAttributeNS(namespace: string | null, localName: string): void;
117
- removeAttributeNode(attr: Attr): Attr;
118
- requestFullscreen(options?: FullscreenOptions): Promise<void>;
119
- requestPointerLock(options?: PointerLockOptions): Promise<void>;
120
- scroll(options?: ScrollToOptions): void;
121
- scroll(x: number, y: number): void;
122
- scrollBy(options?: ScrollToOptions): void;
123
- scrollBy(x: number, y: number): void;
124
- scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
125
- scrollTo(options?: ScrollToOptions): void;
126
- scrollTo(x: number, y: number): void;
127
- setAttribute(qualifiedName: string, value: string): void;
128
- setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
129
- setAttributeNode(attr: Attr): Attr | null;
130
- setAttributeNodeNS(attr: Attr): Attr | null;
131
- setHTMLUnsafe(html: string): void;
132
- setPointerCapture(pointerId: number): void;
133
- toggleAttribute(qualifiedName: string, force?: boolean): boolean;
134
- webkitMatchesSelector(selectors: string): boolean;
135
- get textContent(): string;
136
- set textContent(value: string | null);
137
- readonly baseURI: string;
138
- readonly childNodes: NodeListOf<ChildNode>;
139
- readonly firstChild: ChildNode | null;
140
- readonly isConnected: boolean;
141
- readonly lastChild: ChildNode | null;
142
- readonly nextSibling: ChildNode | null;
143
- readonly nodeName: string;
144
- readonly nodeType: number;
145
- nodeValue: string | null;
146
- readonly parentElement: HTMLElement | null;
147
- readonly parentNode: ParentNode | null;
148
- readonly previousSibling: ChildNode | null;
149
- appendChild<T extends Node>(node: T): T;
150
- cloneNode(subtree?: boolean): Node;
151
- compareDocumentPosition(other: Node): number;
152
- contains(other: Node | null): boolean;
153
- getRootNode(options?: GetRootNodeOptions): Node;
154
- hasChildNodes(): boolean;
155
- insertBefore<T extends Node>(node: T, child: Node | null): T;
156
- isDefaultNamespace(namespace: string | null): boolean;
157
- isEqualNode(otherNode: Node | null): boolean;
158
- isSameNode(otherNode: Node | null): boolean;
159
- lookupNamespaceURI(prefix: string | null): string | null;
160
- lookupPrefix(namespace: string | null): string | null;
161
- normalize(): void;
162
- removeChild<T extends Node>(child: T): T;
163
- replaceChild<T extends Node>(node: Node, child: T): T;
164
- readonly ELEMENT_NODE: 1;
165
- readonly ATTRIBUTE_NODE: 2;
166
- readonly TEXT_NODE: 3;
167
- readonly CDATA_SECTION_NODE: 4;
168
- readonly ENTITY_REFERENCE_NODE: 5;
169
- readonly ENTITY_NODE: 6;
170
- readonly PROCESSING_INSTRUCTION_NODE: 7;
171
- readonly COMMENT_NODE: 8;
172
- readonly DOCUMENT_NODE: 9;
173
- readonly DOCUMENT_TYPE_NODE: 10;
174
- readonly DOCUMENT_FRAGMENT_NODE: 11;
175
- readonly NOTATION_NODE: 12;
176
- readonly DOCUMENT_POSITION_DISCONNECTED: 1;
177
- readonly DOCUMENT_POSITION_PRECEDING: 2;
178
- readonly DOCUMENT_POSITION_FOLLOWING: 4;
179
- readonly DOCUMENT_POSITION_CONTAINS: 8;
180
- readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
181
- readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
182
- dispatchEvent(event: Event): boolean;
183
- ariaActiveDescendantElement: Element | null;
184
- ariaAtomic: string | null;
185
- ariaAutoComplete: string | null;
186
- ariaBrailleLabel: string | null;
187
- ariaBrailleRoleDescription: string | null;
188
- ariaBusy: string | null;
189
- ariaChecked: string | null;
190
- ariaColCount: string | null;
191
- ariaColIndex: string | null;
192
- ariaColIndexText: string | null;
193
- ariaColSpan: string | null;
194
- ariaControlsElements: ReadonlyArray<Element> | null;
195
- ariaCurrent: string | null;
196
- ariaDescribedByElements: ReadonlyArray<Element> | null;
197
- ariaDescription: string | null;
198
- ariaDetailsElements: ReadonlyArray<Element> | null;
199
- ariaDisabled: string | null;
200
- ariaErrorMessageElements: ReadonlyArray<Element> | null;
201
- ariaExpanded: string | null;
202
- ariaFlowToElements: ReadonlyArray<Element> | null;
203
- ariaHasPopup: string | null;
204
- ariaHidden: string | null;
205
- ariaInvalid: string | null;
206
- ariaKeyShortcuts: string | null;
207
- ariaLabel: string | null;
208
- ariaLabelledByElements: ReadonlyArray<Element> | null;
209
- ariaLevel: string | null;
210
- ariaLive: string | null;
211
- ariaModal: string | null;
212
- ariaMultiLine: string | null;
213
- ariaMultiSelectable: string | null;
214
- ariaOrientation: string | null;
215
- ariaOwnsElements: ReadonlyArray<Element> | null;
216
- ariaPlaceholder: string | null;
217
- ariaPosInSet: string | null;
218
- ariaPressed: string | null;
219
- ariaReadOnly: string | null;
220
- ariaRelevant: string | null;
221
- ariaRequired: string | null;
222
- ariaRoleDescription: string | null;
223
- ariaRowCount: string | null;
224
- ariaRowIndex: string | null;
225
- ariaRowIndexText: string | null;
226
- ariaRowSpan: string | null;
227
- ariaSelected: string | null;
228
- ariaSetSize: string | null;
229
- ariaSort: string | null;
230
- ariaValueMax: string | null;
231
- ariaValueMin: string | null;
232
- ariaValueNow: string | null;
233
- ariaValueText: string | null;
234
- role: string | null;
235
- animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation;
236
- getAnimations(options?: GetAnimationsOptions): Animation[];
237
- after(...nodes: (Node | string)[]): void;
238
- before(...nodes: (Node | string)[]): void;
239
- remove(): void;
240
- replaceWith(...nodes: (Node | string)[]): void;
241
- readonly nextElementSibling: Element | null;
242
- readonly previousElementSibling: Element | null;
243
- readonly childElementCount: number;
244
- readonly children: HTMLCollection;
245
- readonly firstElementChild: Element | null;
246
- readonly lastElementChild: Element | null;
247
- append(...nodes: (Node | string)[]): void;
248
- prepend(...nodes: (Node | string)[]): void;
249
- querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;
250
- querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null;
251
- querySelector<K extends keyof MathMLElementTagNameMap>(selectors: K): MathMLElementTagNameMap[K] | null;
252
- querySelector<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): HTMLElementDeprecatedTagNameMap[K] | null;
253
- querySelector<E extends Element = Element>(selectors: string): E | null;
254
- querySelectorAll<K extends keyof HTMLElementTagNameMap>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>;
255
- querySelectorAll<K extends keyof SVGElementTagNameMap>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>;
256
- querySelectorAll<K extends keyof MathMLElementTagNameMap>(selectors: K): NodeListOf<MathMLElementTagNameMap[K]>;
257
- querySelectorAll<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): NodeListOf<HTMLElementDeprecatedTagNameMap[K]>;
258
- querySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E>;
259
- replaceChildren(...nodes: (Node | string)[]): void;
260
- readonly assignedSlot: HTMLSlotElement | null;
261
- readonly attributeStyleMap: StylePropertyMap;
262
- get style(): CSSStyleDeclaration;
263
- set style(cssText: string);
264
- contentEditable: string;
265
- enterKeyHint: string;
266
- inputMode: string;
267
- readonly isContentEditable: boolean;
268
- onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
269
- onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
270
- onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
271
- onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
272
- onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
273
- onauxclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
274
- onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
275
- onbeforematch: ((this: GlobalEventHandlers, ev: Event) => any) | null;
276
- onbeforetoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
277
- onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
278
- oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
279
- oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
280
- oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
281
- onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
282
- onclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
283
- onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
284
- oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null;
285
- oncontextmenu: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
286
- oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => any) | null;
287
- oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
288
- oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
289
- oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
290
- ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
291
- ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
292
- ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
293
- ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
294
- ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
295
- ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
296
- ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
297
- ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
298
- ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
299
- onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;
300
- onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;
301
- onerror: OnErrorEventHandler;
302
- onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
303
- onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
304
- ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
305
- oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;
306
- oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
307
- onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
308
- onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
309
- onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
310
- onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;
311
- onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
312
- onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
313
- onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
314
- onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
315
- onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
316
- onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
317
- onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
318
- onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
319
- onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
320
- onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
321
- onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
322
- onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
323
- onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;
324
- onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
325
- onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;
326
- onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
327
- onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
328
- onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
329
- onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
330
- onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
331
- onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
332
- onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
333
- onpointerrawupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
334
- onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
335
- onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;
336
- onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
337
- onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
338
- onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
339
- onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
340
- onscrollend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
341
- onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
342
- onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;
343
- onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;
344
- onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
345
- onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
346
- onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
347
- onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
348
- onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;
349
- onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
350
- onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
351
- ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
352
- ontoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
353
- ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
354
- ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
355
- ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
356
- ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
357
- ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
358
- ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
359
- ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
360
- ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
361
- onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
362
- onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;
363
- onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
364
- onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;
365
- onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
366
- onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
367
- onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
368
- autofocus: boolean;
369
- readonly dataset: DOMStringMap;
370
- nonce?: string;
371
- tabIndex: number;
372
- blur(): void;
373
- focus(options?: FocusOptions): void;
374
- };
375
- };
10
+ export declare const getAccentedTrigger: (name: string) => CustomElementConstructor;
376
11
  //# sourceMappingURL=accented-trigger.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"accented-trigger.d.ts","sourceRoot":"","sources":["../../src/elements/accented-trigger.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAInD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAG5C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAE3D,MAAM,WAAW,eAAgB,SAAQ,WAAW;IAClD,OAAO,EAAE,OAAO,GAAG,SAAS,CAAC;IAC7B,MAAM,EAAE,cAAc,GAAG,SAAS,CAAC;IACnC,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC;IACvC,OAAO,EAAE,MAAM,CAAC,O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AClC,IAAI,CAAC,0BAA0B,GAAG,SAAS,CAAC;gBAC9C,CAAC;gBACD,IAAI,IAAI,CAAC,wBAAwB,EAAE,CAAC;oBAClC,IAAI,CAAC,wBAAwB,CAAC,UAAU,EAAE,CAAC;gBAC7C,CAAC;YACH,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,aAAa,CAAC,KAAK,CAAC,CAAC;YACvB,CAAC;QACH,CAAC;QAED,aAAa;YACX,IAAI,oCAAoC,EAAE,EAAE,CAAC;gBAC3C,OAAO;YACT,CAAC;YACD,mFAAmF;YACnF,MAAM,CAAC,qBAAqB,CAAC,GAAG,EAAE;gBAChC,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;oBACjB,MAAM,SAAS,GAAG,MAAM,CAAC,gBAAgB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,gBAAgB,CAAC,WAAW,CAAC,CAAC;oBACtF,IAAI,SAAS,KAAK,MAAM,EAAE,CAAC;wBACzB,MAAM,CAAC,qBAAqB,CAAC,GAAG,EAAE;4BAChC,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,WAAW,EAAE,SAAS,EAAE,WAAW,CAAC,CAAC;wBAC9D,CAAC,CAAC,CAAC;oBACL,CAAC;gBACH,CAAC;YACH,CAAC,CAAC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../src/logger.ts"],"names":[],"mappings":"AAqRA,wBAAgB,YAAY,eAY3B"}
1
+ {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../src/logger.ts"],"names":[],"mappings":"AAqRA,wBAAgB,YAAY,IAAI,MAAM,IAAI,CAYzC"}
@@ -1 +1 @@
1
- {"version":3,"file":"scanner.d.ts","sourceRoot":"","sources":["../src/scanner.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAQ1E,wBAAgB,aAAa,CAC3B,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,UAAU,EACtB,QAAQ,EAAE,QAAQ,CAAC,QAAQ,CAAC,EAC5B,QAAQ,EAAE,QAAQ,cA+KnB"}
1
+ {"version":3,"file":"scanner.d.ts","sourceRoot":"","sources":["../src/scanner.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAS1E,wBAAgB,aAAa,CAC3B,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,UAAU,EACtB,QAAQ,EAAE,QAAQ,CAAC,QAAQ,CAAC,EAC5B,QAAQ,EAAE,QAAQ,cA4NnB"}
package/dist/scanner.js CHANGED
@@ -1,8 +1,9 @@
1
1
  import axe from 'axe-core';
2
- import { getAccentedElementNames, issuesUrl } from './constants.js';
2
+ import { descendantDependentRules, getAccentedElementNames, issuesUrl } from './constants.js';
3
3
  import { logAndRethrow } from './log-and-rethrow.js';
4
4
  import { elementsWithIssues, enabled, extendedElementsWithIssues } from './state.js';
5
5
  import { TaskQueue } from './task-queue.js';
6
+ import { getAllRulesFromAxeOptions } from './utils/get-all-rules-from-axe-options.js';
6
7
  import { getScanContext } from './utils/get-scan-context.js';
7
8
  import { recalculatePositions } from './utils/recalculate-positions.js';
8
9
  import { recalculateScrollableAncestors } from './utils/recalculate-scrollable-ancestors.js';
@@ -10,10 +11,59 @@ import { createShadowDOMAwareMutationObserver } from './utils/shadow-dom-aware-m
10
11
  import { supportsAnchorPositioning } from './utils/supports-anchor-positioning.js';
11
12
  import { updateElementsWithIssues } from './utils/update-elements-with-issues.js';
12
13
  export function createScanner(name, context, axeOptions, throttle, callback) {
14
+ const allRules = getAllRulesFromAxeOptions(axeOptions);
15
+ /**
16
+ * Rules that only look at the element itself — safe to run
17
+ * against only the nodes affected by the current mutation.
18
+ */
19
+ const limitedContextRules = new Set([...allRules].filter((rule) => !descendantDependentRules.has(rule)));
20
+ /**
21
+ * Rules whose pass/fail depends on descendants anywhere in the subtree.
22
+ * A mutation deep inside an element can change the outcome for the ancestor,
23
+ * so these must always run against the full scan context.
24
+ */
25
+ const fullContextRules = new Set([...allRules].filter((rule) => descendantDependentRules.has(rule)));
26
+ /**
27
+ * Options shared by both axe.run() calls. The user's runOnly and rules are
28
+ * consumed by getAllRulesFromAxeOptions above and replaced by explicit rule
29
+ * sets, so they are not forwarded here.
30
+ */
31
+ const baseAxeOptions = {
32
+ /**
33
+ * By default, axe-core doesn't include element refs
34
+ * in the violations array,
35
+ * and we need those element refs.
36
+ */
37
+ elementRef: true,
38
+ /**
39
+ * Although axe-core can perform iframe scanning, I haven't succeeded in it,
40
+ * and the docs suggest that the axe-core script should be explicitly included
41
+ * in each of the iframed documents anyway.
42
+ * It seems preferable to disallow iframe scanning and not report issues in elements within iframes
43
+ * in the case that such issues are for some reason reported by axe-core.
44
+ * A consumer of Accented can instead scan the iframed document by calling Accented initialization from that document.
45
+ */
46
+ iframes: false,
47
+ /**
48
+ * The `preload` docs are not clear to me,
49
+ * but when it's set to `true` by default,
50
+ * axe-core tries to fetch cross-origin CSS,
51
+ * which fails in the absence of CORS headers.
52
+ * I'm not sure why axe-core needs to preload
53
+ * those resources in the first place,
54
+ * so disabling it seems to be the safe option.
55
+ */
56
+ preload: false,
57
+ /**
58
+ * We're only interested in violations,
59
+ * not in passes or incomplete results.
60
+ */
61
+ resultTypes: ['violations'],
62
+ };
13
63
  const axeRunningWindowProp = `__${name}_axe_running__`;
14
64
  const win = window;
15
65
  const taskQueue = new TaskQueue(async (nodes) => {
16
- // We may see errors coming from axe-core when Accented is toggled off and on in qiuck succession,
66
+ // We may see errors coming from axe-core when Accented is toggled off and on in quick succession,
17
67
  // which I've seen happen with hot reloading of a React application.
18
68
  // This window property serves as a circuit breaker for that particular case.
19
69
  if (win[axeRunningWindowProp]) {
@@ -22,42 +72,29 @@ export function createScanner(name, context, axeOptions, throttle, callback) {
22
72
  try {
23
73
  performance.mark('scan-start');
24
74
  win[axeRunningWindowProp] = true;
25
- const scanContext = getScanContext(nodes, context);
26
- let result;
75
+ const limitedContext = getScanContext(nodes, context);
76
+ let limitedContextResult;
77
+ let fullContextResult;
27
78
  try {
28
- result = await axe.run(scanContext, {
29
- /**
30
- * By default, axe-core doesn't include element refs
31
- * in the violations array,
32
- * and we need those element refs.
33
- */
34
- elementRef: true,
35
- /**
36
- * Although axe-core can perform iframe scanning, I haven't succeeded in it,
37
- * and the docs suggest that the axe-core script should be explicitly included
38
- * in each of the iframed documents anyway.
39
- * It seems preferable to disallow iframe scanning and not report issues in elements within iframes
40
- * in the case that such issues are for some reason reported by axe-core.
41
- * A consumer of Accented can instead scan the iframed document by calling Accented initialization from that document.
42
- */
43
- iframes: false,
44
- /**
45
- * The `preload` docs are not clear to me,
46
- * but when it's set to `true` by default,
47
- * axe-core tries to fetch cross-origin CSS,
48
- * which fails in the absence of CORS headers.
49
- * I'm not sure why axe-core needs to preload
50
- * those resources in the first place,
51
- * so disabling it seems to be the safe option.
52
- */
53
- preload: false,
54
- /**
55
- * We're only interested in violations,
56
- * not in passes or incomplete results.
57
- */
58
- resultTypes: ['violations'],
59
- ...axeOptions,
60
- });
79
+ // Run the scan against the limited context (only the mutated
80
+ // nodes, filtered to those within the user-provided context). Skip if no
81
+ // limited-context rules are active.
82
+ limitedContextResult =
83
+ limitedContextRules.size > 0
84
+ ? await axe.run(limitedContext, {
85
+ ...baseAxeOptions,
86
+ runOnly: { type: 'rule', values: [...limitedContextRules] },
87
+ })
88
+ : undefined;
89
+ // Run the supplemental scan against the full context so that ancestor-
90
+ // dependent rules always see the complete DOM. Skip if none are active.
91
+ fullContextResult =
92
+ fullContextRules.size > 0
93
+ ? await axe.run(context, {
94
+ ...baseAxeOptions,
95
+ runOnly: { type: 'rule', values: [...fullContextRules] },
96
+ })
97
+ : undefined;
61
98
  }
62
99
  catch (error) {
63
100
  console.error(`Accented: axe-core (the accessibility testing engine) threw an error. Check the \`axeOptions\` property (https://accented.dev/api#axeoptions) that you’re passing to Accented. If you still think it’s a bug in Accented, file an issue at ${issuesUrl}.\n`, error);
@@ -65,14 +102,15 @@ export function createScanner(name, context, axeOptions, throttle, callback) {
65
102
  win[axeRunningWindowProp] = false;
66
103
  const scanMeasure = performance.measure('scan', 'scan-start');
67
104
  const scanDuration = Math.round(scanMeasure.duration);
68
- if (!enabled.value || !result) {
105
+ if (!enabled.value || (!limitedContextResult && !fullContextResult)) {
69
106
  return;
70
107
  }
71
108
  performance.mark('dom-update-start');
72
109
  updateElementsWithIssues({
73
110
  extendedElementsWithIssues,
74
- scanContext,
75
- violations: result.violations,
111
+ limitedContext,
112
+ limitedContextViolations: limitedContextResult?.violations ?? [],
113
+ fullContextViolations: fullContextResult?.violations ?? [],
76
114
  name,
77
115
  });
78
116
  const domUpdateMeasure = performance.measure('dom-update', 'dom-update-start');
@@ -81,7 +119,7 @@ export function createScanner(name, context, axeOptions, throttle, callback) {
81
119
  // Assuming that the {include, exclude} shape of the context object will be used less often
82
120
  // than other variants, we'll output just the `include` array in case nothing is excluded
83
121
  // in the scan.
84
- scanContext: scanContext.exclude.length > 0 ? scanContext : scanContext.include,
122
+ scanContext: limitedContext.exclude.length > 0 ? limitedContext : limitedContext.include,
85
123
  elementsWithIssues: elementsWithIssues.value,
86
124
  performance: {
87
125
  totalBlockingTime: scanDuration + domUpdateDuration,
@@ -1 +1 @@
1
- {"version":3,"file":"scanner.js","sourceRoot":"","sources":["../src/scanner.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,OAAO,EAAE,uBAAuB,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,OAAO,EAAE,0BAA0B,EAAE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;QAChB,aAAa,EAAE,IAAI;KACpB,CAAC,CAAC;IAEH,OAAO,GAAG,EAAE;QACV,gBAAgB,CAAC,UAAU,EAAE,CAAC;IAChC,CAAC,CAAC;AACJ,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { ElementWithIssues, ExtendedElementWithIssues } from '../types.ts';
2
+ export declare function createExtendedElementWithIssues(elementWithIssues: ElementWithIssues, name: string): ExtendedElementWithIssues;
3
+ //# sourceMappingURL=create-extended-element-with-issues.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-extended-element-with-issues.d.ts","sourceRoot":"","sources":["../../src/utils/create-extended-element-with-issues.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AAyBhF,wBAAgB,+BAA+B,CAC7C,iBAAiB,EAAE,iBAAiB,EACpC,IAAI,EAAE,MAAM,GACX,yBAAyB,CAmC3B"}