@a11ied/support-data 0.0.0-stage → 0.1.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 (48) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/LICENSE +21 -0
  3. package/NOTICE.md +13 -0
  4. package/README.md +13 -2
  5. package/data/aria-at/plans/apg-accordion.json +8543 -0
  6. package/data/aria-at/plans/apg-alert.json +659 -0
  7. package/data/aria-at/plans/apg-checkbox.json +4500 -0
  8. package/data/aria-at/plans/apg-command-button.json +2184 -0
  9. package/data/aria-at/plans/apg-disclosure-faq.json +4155 -0
  10. package/data/aria-at/plans/apg-disclosure-navigation.json +13217 -0
  11. package/data/aria-at/plans/apg-horizontal-slider.json +6310 -0
  12. package/data/aria-at/plans/apg-link-css.json +2062 -0
  13. package/data/aria-at/plans/apg-link-img-alt.json +1952 -0
  14. package/data/aria-at/plans/apg-link-span-text.json +1638 -0
  15. package/data/aria-at/plans/apg-menu-button-actions-active-descendant.json +9267 -0
  16. package/data/aria-at/plans/apg-menu-button-actions.json +7156 -0
  17. package/data/aria-at/plans/apg-menu-button-navigation.json +6971 -0
  18. package/data/aria-at/plans/apg-minimal-data-grid.json +4768 -0
  19. package/data/aria-at/plans/apg-modal-dialog.json +5124 -0
  20. package/data/aria-at/plans/apg-quantity-spin-button.json +3719 -0
  21. package/data/aria-at/plans/apg-radiogroup-aria-activedescendant.json +12665 -0
  22. package/data/aria-at/plans/apg-radiogroup-roving-tabindex.json +16098 -0
  23. package/data/aria-at/plans/apg-rating-radio-group.json +9074 -0
  24. package/data/aria-at/plans/apg-seek-slider.json +4818 -0
  25. package/data/aria-at/plans/apg-switch-button.json +5306 -0
  26. package/data/aria-at/plans/apg-switch-checkbox.json +4462 -0
  27. package/data/aria-at/plans/apg-switch.json +4408 -0
  28. package/data/aria-at/plans/apg-tabs-manual-activation.json +7024 -0
  29. package/data/aria-at/plans/apg-toggle-button.json +5998 -0
  30. package/data/aria-at/plans/apg-vertical-temperature-slider.json +6642 -0
  31. package/data/aria-at/plans/html-button.json +1336 -0
  32. package/data/aria-at/summary.json +1189 -0
  33. package/data/results/android-13-chrome-talkback.json +2617 -0
  34. package/data/results/android-13-firefox-talkback.json +22 -0
  35. package/data/results/android-13-webview-talkback.json +2617 -0
  36. package/data/results/ios-safari-voiceover.json +22 -0
  37. package/data/results/ios-wkwebview-voiceover.json +22 -0
  38. package/data/results/macos-26.3.1-chrome-157.0.8103.79-voiceover.json +2770 -0
  39. package/data/results/macos-26.3.1-firefox-156.0.1-voiceover.json +2769 -0
  40. package/data/results/macos-26.3.1-safari-26.3.1-voiceover.json +2749 -0
  41. package/data/results/macos-26.3.1-wkwebview-21623-voiceover.json +2761 -0
  42. package/data/results/virtual-chromium-0.32.1.json +3212 -0
  43. package/dist/chunk-FGZPBJAW.js +127 -0
  44. package/dist/index.d.ts +212 -0
  45. package/dist/index.js +1607 -0
  46. package/dist/types.d.ts +185 -0
  47. package/dist/types.js +16 -0
  48. package/package.json +52 -5
@@ -0,0 +1,185 @@
1
+ type TestCategory = 'aria' | 'html' | 'css' | 'js';
2
+ type FeatureType = TestCategory;
3
+ type TestOutcome = 'pass' | 'partial' | 'fail' | 'not-applicable' | 'untested';
4
+ type PlatformGroup = 'macos-voiceover' | 'ios-voiceover' | 'android-talkback' | 'virtual';
5
+ type TestInteractionMode = 'walk' | 'interact';
6
+ type AssertionPriority = 'MUST' | 'SHOULD' | 'MAY';
7
+ type AssertionVerdict = 'pass' | 'fail' | 'untestable' | 'unsupported';
8
+ type SideEffectImpact = 'SEVERE' | 'MODERATE';
9
+ type SpecAssertionRule = {
10
+ readonly kind: 'convey-phrase';
11
+ readonly phrase: string;
12
+ readonly scope?: 'target' | 'any' | 'pre-action' | 'post-action';
13
+ readonly minCount?: number;
14
+ } | {
15
+ readonly kind: 'omit-phrase';
16
+ readonly phrase: string;
17
+ readonly scope?: 'target' | 'any' | 'post-action';
18
+ } | {
19
+ readonly kind: 'max-occurrences';
20
+ readonly phrase: string;
21
+ readonly max: number;
22
+ } | {
23
+ readonly kind: 'convey-role';
24
+ readonly roleHint: string;
25
+ } | {
26
+ readonly kind: 'convey-state';
27
+ readonly stateTerm: string;
28
+ readonly scope?: 'target' | 'post-action';
29
+ } | {
30
+ readonly kind: 'no-side-effects';
31
+ };
32
+ interface SpecAssertion {
33
+ readonly id: string;
34
+ readonly priority: AssertionPriority;
35
+ readonly statement: string;
36
+ readonly featureRef: string;
37
+ readonly rule: SpecAssertionRule;
38
+ }
39
+ interface AssertionBugRef {
40
+ readonly title: string;
41
+ readonly url: string;
42
+ }
43
+ interface FeatureRefEntry {
44
+ readonly refId: string;
45
+ readonly type: 'aria' | 'html';
46
+ }
47
+ interface AssertionResultRecord {
48
+ readonly id: string;
49
+ readonly priority: AssertionPriority;
50
+ readonly statement: string;
51
+ readonly featureRef?: string;
52
+ readonly featureType?: 'aria' | 'html';
53
+ readonly featureRefs?: readonly FeatureRefEntry[];
54
+ readonly verdict: AssertionVerdict;
55
+ readonly evidence?: string;
56
+ readonly notes?: string;
57
+ readonly bugs?: readonly AssertionBugRef[];
58
+ }
59
+ interface PriorityCounts {
60
+ readonly passed: number;
61
+ readonly failed: number;
62
+ readonly untestable: number;
63
+ readonly unsupported: number;
64
+ readonly total: number;
65
+ }
66
+ interface AssertionSummary {
67
+ readonly must: PriorityCounts;
68
+ readonly should: PriorityCounts;
69
+ readonly may: PriorityCounts;
70
+ readonly severeSideEffects: number;
71
+ readonly moderateSideEffects: number;
72
+ }
73
+ interface SideEffectRecord {
74
+ readonly text: string;
75
+ readonly impact: SideEffectImpact;
76
+ readonly details?: string;
77
+ readonly bugs?: readonly AssertionBugRef[];
78
+ }
79
+ interface SpecReference {
80
+ readonly title: string;
81
+ readonly url: string;
82
+ readonly section?: string;
83
+ }
84
+ /**
85
+ * Uniquely identifies an execution environment across all 7 dimensions that can alter
86
+ * screen reader announcements: device, OS, OS version, browser, browser version, screen
87
+ * reader software, and screen reader software version.
88
+ */
89
+ interface TestEnvironment {
90
+ readonly id: string;
91
+ readonly label: string;
92
+ readonly shortLabel: string;
93
+ readonly platformGroup: PlatformGroup;
94
+ readonly device: string;
95
+ readonly os: string;
96
+ readonly osVersion: string;
97
+ readonly browser: string;
98
+ readonly browserVersion: string;
99
+ readonly browserType?: 'browser' | 'webview';
100
+ readonly usageOrder?: number;
101
+ readonly screenReader: string;
102
+ readonly screenReaderVersion: string;
103
+ readonly notes?: string;
104
+ }
105
+ interface TranscriptEntry {
106
+ readonly step: number;
107
+ readonly command?: string;
108
+ readonly phrase: string;
109
+ readonly itemText?: string;
110
+ readonly role?: string;
111
+ readonly name?: string;
112
+ }
113
+ interface TestRunRecord {
114
+ readonly testSlug: string;
115
+ readonly environmentKey: string;
116
+ readonly environment: TestEnvironment;
117
+ readonly runAt: string;
118
+ readonly driver: string;
119
+ readonly outcome: TestOutcome;
120
+ readonly keyAnnouncement: string;
121
+ readonly notes: string;
122
+ readonly transcript: readonly TranscriptEntry[];
123
+ readonly assertionResults?: readonly AssertionResultRecord[];
124
+ readonly assertionSummary?: AssertionSummary;
125
+ }
126
+ interface EnvironmentResultFile {
127
+ readonly schemaVersion: 1;
128
+ readonly environmentKey: string;
129
+ readonly environment: TestEnvironment;
130
+ readonly status: 'tested' | 'untested';
131
+ readonly statusNote?: string;
132
+ readonly runs: readonly TestRunRecord[];
133
+ }
134
+ interface TestEvaluationRule {
135
+ readonly mode: TestInteractionMode;
136
+ /** Role substring or keyword used to identify the target line in transcripts. */
137
+ readonly targetRoleHint?: string;
138
+ /** Label used to locate/activate a control during `interact` tests. */
139
+ readonly activateButtonText?: string;
140
+ /**
141
+ * Case-insensitive phrases expected on the target element (or post-action for
142
+ * interact).
143
+ */
144
+ readonly expectedPhrases: readonly string[];
145
+ /** Case-insensitive phrases that indicate the spec rule was violated on the target. */
146
+ readonly forbiddenPhrases?: readonly string[];
147
+ /** Optional state/role terms expected alongside `expectedPhrases` (partial if missing). */
148
+ readonly expectedStateTerms?: readonly string[];
149
+ /** Optional phrases expected BEFORE interaction when mode === 'interact'. */
150
+ readonly preActionExpectedPhrases?: readonly string[];
151
+ /** Minimum number of times an expected phrase should appear (e.g., heading + button). */
152
+ readonly minimumOccurrences?: number;
153
+ /**
154
+ * Maximum allowed occurrences for a non-target phrase (e.g., prohibited generic
155
+ * override).
156
+ */
157
+ readonly maxPhraseOccurrences?: Readonly<Record<string, number>>;
158
+ readonly maxSteps?: number;
159
+ }
160
+ interface ScreenReaderTestCase {
161
+ readonly slug: string;
162
+ readonly title: string;
163
+ readonly isolatedTitle: string;
164
+ readonly category: TestCategory;
165
+ readonly featureGroup: string;
166
+ readonly attribute: string;
167
+ readonly tags: readonly string[];
168
+ readonly summary: string;
169
+ readonly expectedBehavior: string;
170
+ readonly specReferences: readonly SpecReference[];
171
+ readonly html: string;
172
+ readonly css?: string;
173
+ readonly js?: string;
174
+ readonly evaluation: TestEvaluationRule;
175
+ readonly assertions?: readonly SpecAssertion[];
176
+ }
177
+ /** Builds the canonical unique environment key from all 7 required environment fields. */
178
+ declare function buildEnvironmentKey(environment: Pick<TestEnvironment, 'device' | 'os' | 'osVersion' | 'browser' | 'browserVersion' | 'screenReader' | 'screenReaderVersion'>): string;
179
+ declare function formatOutcomeLabel(outcome: TestOutcome): string;
180
+ declare function formatCategoryLabel(category: TestCategory): string;
181
+ declare function createEmptyPriorityCounts(): PriorityCounts;
182
+ declare function summarizeAssertions(results: readonly Pick<AssertionResultRecord, 'priority' | 'verdict'>[], sideEffects?: readonly Pick<SideEffectRecord, 'impact'>[]): AssertionSummary;
183
+ declare function deriveOutcomeFromSummary(summary: AssertionSummary): TestOutcome;
184
+
185
+ export { type AssertionBugRef, type AssertionPriority, type AssertionResultRecord, type AssertionSummary, type AssertionVerdict, type EnvironmentResultFile, type FeatureRefEntry, type FeatureType, type PlatformGroup, type PriorityCounts, type ScreenReaderTestCase, type SideEffectImpact, type SideEffectRecord, type SpecAssertion, type SpecAssertionRule, type SpecReference, type TestCategory, type TestEnvironment, type TestEvaluationRule, type TestInteractionMode, type TestOutcome, type TestRunRecord, type TranscriptEntry, buildEnvironmentKey, createEmptyPriorityCounts, deriveOutcomeFromSummary, formatCategoryLabel, formatOutcomeLabel, summarizeAssertions };
package/dist/types.js ADDED
@@ -0,0 +1,16 @@
1
+ import {
2
+ buildEnvironmentKey,
3
+ createEmptyPriorityCounts,
4
+ deriveOutcomeFromSummary,
5
+ formatCategoryLabel,
6
+ formatOutcomeLabel,
7
+ summarizeAssertions
8
+ } from "./chunk-FGZPBJAW.js";
9
+ export {
10
+ buildEnvironmentKey,
11
+ createEmptyPriorityCounts,
12
+ deriveOutcomeFromSummary,
13
+ formatCategoryLabel,
14
+ formatOutcomeLabel,
15
+ summarizeAssertions
16
+ };
package/package.json CHANGED
@@ -1,6 +1,53 @@
1
1
  {
2
- "name": "@a11ied/support-data",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
2
+ "name": "@a11ied/support-data",
3
+ "version": "0.1.0",
4
+ "description": "Versioned screen reader and assistive technology compatibility dataset, test cases, and W3C ARIA-AT reports.",
5
+ "keywords": [
6
+ "a11y",
7
+ "accessibility",
8
+ "aria-at",
9
+ "compatibility",
10
+ "screen-reader"
11
+ ],
12
+ "homepage": "https://hypothesi.github.io/a11ied/compatibility/",
13
+ "bugs": {
14
+ "url": "https://github.com/hypothesi/a11ied/issues"
15
+ },
16
+ "license": "MIT",
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "git+https://github.com/hypothesi/a11ied.git",
20
+ "directory": "packages/support-data"
21
+ },
22
+ "files": [
23
+ "dist",
24
+ "data",
25
+ "NOTICE.md",
26
+ "CHANGELOG.md"
27
+ ],
28
+ "type": "module",
29
+ "main": "./dist/index.js",
30
+ "types": "./dist/index.d.ts",
31
+ "exports": {
32
+ ".": {
33
+ "types": "./dist/index.d.ts",
34
+ "import": "./dist/index.js"
35
+ },
36
+ "./types": {
37
+ "types": "./dist/types.d.ts",
38
+ "import": "./dist/types.js"
39
+ },
40
+ "./package.json": "./package.json"
41
+ },
42
+ "publishConfig": {
43
+ "access": "public"
44
+ },
45
+ "scripts": {
46
+ "build": "tsup src/index.ts src/types.ts --format esm --dts --clean",
47
+ "prepack": "npm run build",
48
+ "typecheck": "tsc -p tsconfig.json --noEmit"
49
+ },
50
+ "engines": {
51
+ "node": ">=24"
52
+ }
53
+ }