axe-core 4.10.3-canary.512ede2 → 4.10.3-canary.5351231
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/README.md +4 -4
- package/axe.d.ts +19 -0
- package/axe.js +9058 -8949
- package/axe.min.js +2 -2
- package/locales/_template.json +3 -3
- package/locales/de.json +5 -1
- package/package.json +5 -5
- package/sri-history.json +3 -3
package/README.md
CHANGED
|
@@ -138,21 +138,21 @@ axe.configure({
|
|
|
138
138
|
Axe-core supports the following locales. Do note that since locales are contributed by our community, they are not guaranteed to include all translations needed in a release.
|
|
139
139
|
|
|
140
140
|
- Basque
|
|
141
|
+
- Chinese (Simplified)
|
|
142
|
+
- Chinese (Traditional)
|
|
141
143
|
- Danish
|
|
142
144
|
- Dutch
|
|
143
145
|
- French
|
|
144
146
|
- German
|
|
147
|
+
- Greek
|
|
145
148
|
- Hebrew
|
|
149
|
+
- Italian
|
|
146
150
|
- Japanese
|
|
147
151
|
- Korean
|
|
148
152
|
- Norwegian (Bokmål)
|
|
149
153
|
- Polish
|
|
150
154
|
- Portuguese (Brazilian)
|
|
151
155
|
- Spanish
|
|
152
|
-
- Greek
|
|
153
|
-
- Italian
|
|
154
|
-
- Simplified Chinese
|
|
155
|
-
- Traditional Chinese
|
|
156
156
|
|
|
157
157
|
## Updates & Security
|
|
158
158
|
|
package/axe.d.ts
CHANGED
|
@@ -408,6 +408,24 @@ declare namespace axe {
|
|
|
408
408
|
boundingClientRect: DOMRect;
|
|
409
409
|
}
|
|
410
410
|
|
|
411
|
+
type GridCell = VirtualNode[];
|
|
412
|
+
|
|
413
|
+
interface Grid {
|
|
414
|
+
container: VirtualNode | null;
|
|
415
|
+
cells: unknown; // opaque implementation detail
|
|
416
|
+
boundaries?: DOMRect;
|
|
417
|
+
toGridIndex(num: number): number;
|
|
418
|
+
getCellFromPoint(point: { x: number; y: number }): GridCell;
|
|
419
|
+
loopGridPosition(
|
|
420
|
+
gridPosition: DOMRect,
|
|
421
|
+
callback: (gridCell: GridCell, pos: { row: number; col: number }) => void
|
|
422
|
+
): void;
|
|
423
|
+
getGridPositionOfRect(
|
|
424
|
+
rect: { top: number; right: number; bottom: number; left: number },
|
|
425
|
+
margin?: number
|
|
426
|
+
): DOMRect;
|
|
427
|
+
}
|
|
428
|
+
|
|
411
429
|
interface CustomNodeSerializer<T = SerialDqElement> {
|
|
412
430
|
toSpec: (dqElm: DqElement) => T;
|
|
413
431
|
mergeSpecs: (nodeSpec: T, parentFrameSpec: T) => T;
|
|
@@ -460,6 +478,7 @@ declare namespace axe {
|
|
|
460
478
|
interface Dom {
|
|
461
479
|
isFocusable: (node: Element | VirtualNode) => boolean;
|
|
462
480
|
isNativelyFocusable: (node: Element | VirtualNode) => boolean;
|
|
481
|
+
getNodeGrid: (node: Node | VirtualNode) => Grid;
|
|
463
482
|
}
|
|
464
483
|
|
|
465
484
|
type AccessibleTextOptions = {
|