@uuv/a11y 1.0.0-beta.4 → 1.0.0-beta.40

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 (60) hide show
  1. package/CHANGELOG.md +348 -0
  2. package/CONTRIBUTING.md +1 -1
  3. package/LICENSE +1 -1
  4. package/bundle/uuv-a11y.bundle.js +2 -2
  5. package/dist/CHANGELOG.md +348 -0
  6. package/dist/CONTRIBUTING.md +1 -1
  7. package/dist/lib/engine/engine.js +28 -16
  8. package/dist/lib/model/index.d.ts +1 -1
  9. package/dist/lib/model/index.js +1 -1
  10. package/dist/lib/model/reference.js +1 -1
  11. package/dist/lib/model/result.d.ts +2 -1
  12. package/dist/lib/model/result.js +1 -1
  13. package/dist/lib/model/rule.d.ts +0 -7
  14. package/dist/lib/model/rule.js +3 -5
  15. package/dist/lib/query/00-query.d.ts +6 -1
  16. package/dist/lib/query/00-query.js +10 -0
  17. package/dist/lib/query/accessible-name.query.d.ts +4 -2
  18. package/dist/lib/query/accessible-name.query.js +9 -3
  19. package/dist/lib/query/by-role.query.d.ts +4 -3
  20. package/dist/lib/query/by-role.query.js +22 -6
  21. package/dist/lib/query/by-sibling.query.d.ts +12 -0
  22. package/dist/lib/query/by-sibling.query.js +100 -0
  23. package/dist/lib/query/by-tag.query.d.ts +2 -2
  24. package/dist/lib/query/by-tag.query.js +2 -1
  25. package/dist/lib/query/compliant-attributes/attribut-specification.d.ts +34 -0
  26. package/dist/lib/query/compliant-attributes/attribut-specification.js +96 -0
  27. package/dist/lib/query/compliant-attributes/attribute-checker.d.ts +47 -0
  28. package/dist/lib/query/compliant-attributes/attribute-checker.js +73 -0
  29. package/dist/lib/query/compliant-attributes/compliant-attributes.query.d.ts +9 -0
  30. package/dist/lib/query/compliant-attributes/compliant-attributes.query.js +24 -0
  31. package/dist/lib/query/doctype.query.d.ts +2 -2
  32. package/dist/lib/query/doctype.query.js +2 -1
  33. package/dist/lib/query/form.query.d.ts +2 -2
  34. package/dist/lib/query/index.d.ts +7 -0
  35. package/dist/lib/query/index.js +7 -0
  36. package/dist/lib/query/operators/and-query.d.ts +8 -0
  37. package/dist/lib/query/operators/and-query.js +25 -0
  38. package/dist/lib/query/operators/operator-query.d.ts +8 -0
  39. package/dist/lib/query/operators/operator-query.js +14 -0
  40. package/dist/lib/query/operators/or-query.d.ts +8 -0
  41. package/dist/lib/query/operators/or-query.js +24 -0
  42. package/dist/lib/reference/rgaa/coverage/coverage-statement.json +56 -17
  43. package/dist/lib/reference/rgaa/rules/1-image.d.ts +0 -1
  44. package/dist/lib/reference/rgaa/rules/1-image.js +51 -77
  45. package/dist/lib/reference/rgaa/rules/11-form.d.ts +0 -1
  46. package/dist/lib/reference/rgaa/rules/11-form.js +0 -1
  47. package/dist/lib/reference/rgaa/rules/2-frame.d.ts +0 -1
  48. package/dist/lib/reference/rgaa/rules/2-frame.js +8 -7
  49. package/dist/lib/reference/rgaa/rules/3-color.d.ts +0 -1
  50. package/dist/lib/reference/rgaa/rules/3-color.js +0 -3
  51. package/dist/lib/reference/rgaa/rules/5-table.d.ts +12 -1
  52. package/dist/lib/reference/rgaa/rules/5-table.js +292 -1
  53. package/dist/lib/reference/rgaa/rules/6-link.d.ts +12 -1
  54. package/dist/lib/reference/rgaa/rules/6-link.js +147 -1
  55. package/dist/lib/reference/rgaa/rules/8-required-element.d.ts +0 -1
  56. package/dist/lib/reference/rgaa/rules/8-required-element.js +57 -9
  57. package/dist/lib/reference/rgaa/selector-helper.d.ts +40 -1
  58. package/dist/lib/reference/rgaa/selector-helper.js +82 -10
  59. package/dist/package.json +11 -7
  60. package/package.json +11 -7
package/dist/CHANGELOG.md CHANGED
@@ -1,3 +1,351 @@
1
+ # [1.0.0-beta.39](https://github.com/Orange-OpenSource/uuv/compare/a11y-v1.0.0-beta.38...a11y-v1.0.0-beta.39) (2024-08-11)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **assistant:** update dependency antd to v5.20.1 ([5c3abf7](https://github.com/Orange-OpenSource/uuv/commit/5c3abf7872455038ac038dd6abdf81f024a3c14f))
7
+ * **runner-cypress:** update dependency @badeball/cypress-cucumber-preprocessor to v20.1.2 ([7dcb27d](https://github.com/Orange-OpenSource/uuv/commit/7dcb27dec15293aacaad90684bd9eeb290c66e45))
8
+
9
+
10
+ ### Features
11
+
12
+ * **assistant:** update dependency @uiw/react-codemirror to v4.23.0 ([8b3b8c7](https://github.com/Orange-OpenSource/uuv/commit/8b3b8c77d8bc6fa30e7077f57575b8d2914eb3a6))
13
+ * **runner-playwright:** update dependency axe-core to v4.10.0 ([a2c7883](https://github.com/Orange-OpenSource/uuv/commit/a2c78835c97cec52f0c9d45116da987ce5a5445b))
14
+
15
+ # [1.0.0-beta.38](https://github.com/Orange-OpenSource/uuv/compare/a11y-v1.0.0-beta.37...a11y-v1.0.0-beta.38) (2024-08-05)
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * **runner-cypress:** update dependency cypress to v13.13.2 ([7b0044e](https://github.com/Orange-OpenSource/uuv/commit/7b0044efdf2448c6883029e9cefcae05927d5264))
21
+
22
+
23
+ ### Features
24
+
25
+ * **assistant:** update dependency antd to v5.20.0 ([709fdd3](https://github.com/Orange-OpenSource/uuv/commit/709fdd3b222b2b9ff4a6fcc0649e704ad81327b1))
26
+
27
+ # [1.0.0-beta.37](https://github.com/Orange-OpenSource/uuv/compare/a11y-v1.0.0-beta.36...a11y-v1.0.0-beta.37) (2024-07-28)
28
+
29
+
30
+ ### Bug Fixes
31
+
32
+ * **deps:** update dependency @easyops-cn/docusaurus-search-local to v0.44.4 ([fa8cb8f](https://github.com/Orange-OpenSource/uuv/commit/fa8cb8fb5addee1915d733c601bf04b4494afb5f))
33
+ * **runner-cypress:** update dependency @badeball/cypress-cucumber-preprocessor to v20.1.1 ([645c9f0](https://github.com/Orange-OpenSource/uuv/commit/645c9f0dd38a92258d311adfcbda9b58ab37929e))
34
+ * **runner-playwright:** update playwright monorepo to v1.45.3 ([44402e0](https://github.com/Orange-OpenSource/uuv/commit/44402e032cdf996ec6a5ea14f4e3eda7615fc13f))
35
+
36
+
37
+ ### Features
38
+
39
+ * **deps:** update dependency @cucumber/messages to v25 ([01c669e](https://github.com/Orange-OpenSource/uuv/commit/01c669e386869658227d92ee5f0b5ebd3fdcda3e))
40
+
41
+ # [1.0.0-beta.36](https://github.com/Orange-OpenSource/uuv/compare/a11y-v1.0.0-beta.35...a11y-v1.0.0-beta.36) (2024-07-21)
42
+
43
+
44
+ ### Bug Fixes
45
+
46
+ * **assistant:** update dependency antd to v5.19.2 ([5407d03](https://github.com/Orange-OpenSource/uuv/commit/5407d0317107bab2dfeae396d13186f9ec941f8f))
47
+ * **assistant:** update dependency antd to v5.19.3 ([9db1dce](https://github.com/Orange-OpenSource/uuv/commit/9db1dce802e44b7e5c4399dd9e059b9506b87929))
48
+ * **runner-cypress:** update dependency cypress to v13.13.1 ([3212aa5](https://github.com/Orange-OpenSource/uuv/commit/3212aa58f4d71f6ca45d1b6a66c2e7132f8ad505))
49
+ * **runner-playwright:** update playwright monorepo to v1.45.2 ([b6a9018](https://github.com/Orange-OpenSource/uuv/commit/b6a901858453418aa2b10db43878bbe18d45fafd))
50
+
51
+
52
+ ### Features
53
+
54
+ * **deps:** update dependency @easyops-cn/docusaurus-search-local to v0.44.3 ([377b9b9](https://github.com/Orange-OpenSource/uuv/commit/377b9b9779aeed86c5752c33768f26190a1385e1))
55
+ * **runner-cypress:** update dependency @badeball/cypress-cucumber-preprocessor to v20.1.0 ([ba0f0d9](https://github.com/Orange-OpenSource/uuv/commit/ba0f0d91d845c638fcbc7581fdf54c525ce20f93))
56
+ * **runner-playwright:** update dependency multiple-cucumber-html-reporter to v3.7.0 ([5850b13](https://github.com/Orange-OpenSource/uuv/commit/5850b1362bf8d3c319b3907cae07c8f86ad67820))
57
+
58
+ # [1.0.0-beta.35](https://github.com/Orange-OpenSource/uuv/compare/a11y-v1.0.0-beta.34...a11y-v1.0.0-beta.35) (2024-07-14)
59
+
60
+
61
+ ### Bug Fixes
62
+
63
+ * **deps:** update dependency tslib to v2.6.3 ([5f1bd19](https://github.com/Orange-OpenSource/uuv/commit/5f1bd190dce41dd51bbe2cad652fe39a09ff132d))
64
+
65
+
66
+ ### Features
67
+
68
+ * **assistant:** update dependency antd to v5.19.1 ([18a90bf](https://github.com/Orange-OpenSource/uuv/commit/18a90bf2d8e0918c8c3f5c10f17eb32a53df5d0e))
69
+ * **runner-cypress:** update dependency cypress-real-events to v1.13.0 ([e3b8dc0](https://github.com/Orange-OpenSource/uuv/commit/e3b8dc06ff6f9fb7cfee89e858676f17e1933af8))
70
+ * **runner-playwright:** update playwright monorepo to v1.45.1 ([6be42dc](https://github.com/Orange-OpenSource/uuv/commit/6be42dc9604f4d786db6c32499319bccda504e29))
71
+
72
+ # [1.0.0-beta.34](https://github.com/Orange-OpenSource/uuv/compare/a11y-v1.0.0-beta.33...a11y-v1.0.0-beta.34) (2024-07-08)
73
+
74
+
75
+ ### Bug Fixes
76
+
77
+ * add lib path for event classes, [#679](https://github.com/Orange-OpenSource/uuv/issues/679) ([e8e521b](https://github.com/Orange-OpenSource/uuv/commit/e8e521ba4f3f5762cc69cdbb165ea151103d4087))
78
+
79
+ # [1.0.0-beta.33](https://github.com/Orange-OpenSource/uuv/compare/a11y-v1.0.0-beta.32...a11y-v1.0.0-beta.33) (2024-07-07)
80
+
81
+
82
+ ### Bug Fixes
83
+
84
+ * **assistant:** remove not required cucumber dependency ([da9f7b0](https://github.com/Orange-OpenSource/uuv/commit/da9f7b0089aeffc63604a306a799230fbcd70d3f))
85
+
86
+
87
+ ### Features
88
+
89
+ * **assistant:** update dependency @codemirror/view to v6.28.4 ([62aa840](https://github.com/Orange-OpenSource/uuv/commit/62aa8407bef7f2c953d1b7fe5a0b9fc8eb02812c))
90
+ * **assistant:** update dependency @uiw/codemirror-theme-github to v4.23.0 ([ca8e6b8](https://github.com/Orange-OpenSource/uuv/commit/ca8e6b83fac8b14ac0108ba263b968a2f9706528))
91
+ * **runner-cypress:** update dependency cypress to v13.13.0 ([78a9cfc](https://github.com/Orange-OpenSource/uuv/commit/78a9cfc4b0de465c527db65618bd9b4bd70704f6))
92
+ * **runner-playwright:** update dependency playwright-bdd to v6.6.0 ([f30b4d5](https://github.com/Orange-OpenSource/uuv/commit/f30b4d5ae5177e5a4281ee742debf0c3c73b47ac))
93
+
94
+ # [1.0.0-beta.32](https://github.com/Orange-OpenSource/uuv/compare/a11y-v1.0.0-beta.31...a11y-v1.0.0-beta.32) (2024-07-02)
95
+
96
+
97
+ ### Features
98
+
99
+ * introduce ipc-server to send uuv event, [#664](https://github.com/Orange-OpenSource/uuv/issues/664) ([270ac38](https://github.com/Orange-OpenSource/uuv/commit/270ac388a7abf17b0c296d029d6e12bd66a4f521))
100
+
101
+ # [1.0.0-beta.31](https://github.com/Orange-OpenSource/uuv/compare/a11y-v1.0.0-beta.30...a11y-v1.0.0-beta.31) (2024-06-27)
102
+
103
+
104
+ ### Bug Fixes
105
+
106
+ * **runner-cypress:** update testing-library monorepo ([bcedb57](https://github.com/Orange-OpenSource/uuv/commit/bcedb5749fd5f062cfb283bedabfe8ad87668c67))
107
+
108
+ # [1.0.0-beta.30](https://github.com/Orange-OpenSource/uuv/compare/a11y-v1.0.0-beta.29...a11y-v1.0.0-beta.30) (2024-06-16)
109
+
110
+
111
+ ### Bug Fixes
112
+
113
+ * **runner-cypress:** update dependency @badeball/cypress-cucumber-preprocessor to v20.0.7 ([8295ae2](https://github.com/Orange-OpenSource/uuv/commit/8295ae2a4bc40e9f4a8fe02ae440253a7e55c2ea))
114
+ * **runner-cypress:** update dependency @cypress/webpack-preprocessor to v6.0.2 ([1b097a0](https://github.com/Orange-OpenSource/uuv/commit/1b097a094faaa1d70b2df44b56e0073334c3135c))
115
+
116
+ # [1.0.0-beta.29](https://github.com/Orange-OpenSource/uuv/compare/a11y-v1.0.0-beta.28...a11y-v1.0.0-beta.29) (2024-06-03)
117
+
118
+
119
+ ### Bug Fixes
120
+
121
+ * **runner-cypress:** use badeball depency to generate cucumber json report, [#643](https://github.com/Orange-OpenSource/uuv/issues/643) ([caf36a3](https://github.com/Orange-OpenSource/uuv/commit/caf36a3269ab23a0c9163b45baf49b3a07bba5a6))
122
+
123
+ # [1.0.0-beta.28](https://github.com/Orange-OpenSource/uuv/compare/a11y-v1.0.0-beta.27...a11y-v1.0.0-beta.28) (2024-05-31)
124
+
125
+
126
+ ### Features
127
+
128
+ * **assistant:** redesign assistant and implement keyboard navigation, [#592](https://github.com/Orange-OpenSource/uuv/issues/592), closes [#623](https://github.com/Orange-OpenSource/uuv/issues/623) ([761bfae](https://github.com/Orange-OpenSource/uuv/commit/761bfae4cb6bf5b1bd1c018e93068ded70463821))
129
+
130
+ # [1.0.0-beta.27](https://github.com/Orange-OpenSource/uuv/compare/a11y-v1.0.0-beta.26...a11y-v1.0.0-beta.27) (2024-05-24)
131
+
132
+
133
+ ### Bug Fixes
134
+
135
+ * **runner-playwright:** update playwright monorepo to v1.44.1 ([f2a5cb2](https://github.com/Orange-OpenSource/uuv/commit/f2a5cb26c12af3030b09e2b2bd7de02d6b6504b4))
136
+
137
+
138
+ ### Features
139
+
140
+ * **deps:** update dependency clsx to v2 ([d455fb5](https://github.com/Orange-OpenSource/uuv/commit/d455fb504839be771357589434afeed8f64ce1d9))
141
+ * **runner-cypress:** update dependency cypress to v13 ([d21c332](https://github.com/Orange-OpenSource/uuv/commit/d21c332b0de83b4adc77db72fc7e1865f7b6c997))
142
+
143
+ # [1.0.0-beta.26](https://github.com/Orange-OpenSource/uuv/compare/a11y-v1.0.0-beta.25...a11y-v1.0.0-beta.26) (2024-05-14)
144
+
145
+
146
+ ### Features
147
+
148
+ * **runner-cypress:** update dependency @badeball/cypress-cucumber-preprocessor to v20 ([e3e8e7c](https://github.com/Orange-OpenSource/uuv/commit/e3e8e7c6bea1a776d3e9dd1c225206b785bc390f))
149
+ * **runner-cypress:** update steps definitions for @badeball/cypress-cucumber-preprocessor v20 ([9ec1e82](https://github.com/Orange-OpenSource/uuv/commit/9ec1e826868632fff6443adadaf398ad7b6e2ec5))
150
+ * **runner-playwright:** update playwright monorepo to v1.44.0 ([bbd0518](https://github.com/Orange-OpenSource/uuv/commit/bbd051862e6020b8aa51bc850b5ac65a4361a4e4))
151
+
152
+ # [1.0.0-beta.25](https://github.com/Orange-OpenSource/uuv/compare/a11y-v1.0.0-beta.24...a11y-v1.0.0-beta.25) (2024-05-10)
153
+
154
+
155
+ ### Bug Fixes
156
+
157
+ * **runner-playwright:** update dependency axe-core to v4.9.1 ([770cd9f](https://github.com/Orange-OpenSource/uuv/commit/770cd9f8e4d87d64c2875dd9e629b3e6c6ad1931))
158
+
159
+
160
+ ### Features
161
+
162
+ * **runner-cypress:** update dependency junit-report-merger to v7 ([7a9e310](https://github.com/Orange-OpenSource/uuv/commit/7a9e310dc192081c5feec543f2dca94468b34230))
163
+
164
+ # [1.0.0-beta.24](https://github.com/Orange-OpenSource/uuv/compare/a11y-v1.0.0-beta.23...a11y-v1.0.0-beta.24) (2024-05-02)
165
+
166
+
167
+ ### Features
168
+
169
+ * update package-lock for update dependency typescript to v5 ([f058481](https://github.com/Orange-OpenSource/uuv/commit/f058481e2ae75ba91e708a5c4dd8ce16c0f1a04f))
170
+
171
+ # [1.0.0-beta.23](https://github.com/Orange-OpenSource/uuv/compare/a11y-v1.0.0-beta.22...a11y-v1.0.0-beta.23) (2024-04-22)
172
+
173
+
174
+ ### Features
175
+
176
+ * (refactor) introduce uuv-cli engine from runner-commons, [#576](https://github.com/Orange-OpenSource/uuv/issues/576) ([6de2feb](https://github.com/Orange-OpenSource/uuv/commit/6de2feb2b2d74eddf1244694dfb7d697af28baf8))
177
+ * add unit tests for uuv-cli implementations, [#576](https://github.com/Orange-OpenSource/uuv/issues/576) ([7e67f13](https://github.com/Orange-OpenSource/uuv/commit/7e67f13b9929577162bce84c5e8b5c08a4396a09))
178
+
179
+ # [1.0.0-beta.22](https://github.com/Orange-OpenSource/uuv/compare/a11y-v1.0.0-beta.21...a11y-v1.0.0-beta.22) (2024-04-14)
180
+
181
+
182
+ ### Bug Fixes
183
+
184
+ * **runner-cypress:** update dependency is-admin to v4 ([768819f](https://github.com/Orange-OpenSource/uuv/commit/768819f114dcba0a8a92412cfd877544e187a289))
185
+ * **runner-playwright:** update dependency axe-core to v4.9.0 ([59a4a6f](https://github.com/Orange-OpenSource/uuv/commit/59a4a6f3d07cddad33a9596253ab8b0fbc85c7c3))
186
+ * **runner-playwright:** update playwright monorepo to v1.43.1 ([bf431d5](https://github.com/Orange-OpenSource/uuv/commit/bf431d5d3ec6cfc26845a44fb38251960546d27e))
187
+
188
+ # [1.0.0-beta.21](https://github.com/Orange-OpenSource/uuv/compare/a11y-v1.0.0-beta.20...a11y-v1.0.0-beta.21) (2024-04-04)
189
+
190
+
191
+ ### Bug Fixes
192
+
193
+ * update nx to version 18.2.1, fixes [#562](https://github.com/Orange-OpenSource/uuv/issues/562) ([669a363](https://github.com/Orange-OpenSource/uuv/commit/669a36307b02d8aa5b41609a08e794eae335b4ed))
194
+
195
+ # [1.0.0-beta.20](https://github.com/Orange-OpenSource/uuv/compare/a11y-v1.0.0-beta.19...a11y-v1.0.0-beta.20) (2024-03-28)
196
+
197
+
198
+ ### Features
199
+
200
+ * **deps:** update node.js to v20 ([f771f22](https://github.com/Orange-OpenSource/uuv/commit/f771f22197d7efc32bba6f8a345b5f6b2f3dd114))
201
+
202
+ # [1.0.0-beta.19](https://github.com/Orange-OpenSource/uuv/compare/a11y-v1.0.0-beta.18...a11y-v1.0.0-beta.19) (2024-03-15)
203
+
204
+
205
+ ### Bug Fixes
206
+
207
+ * **runner-cypress:** update dependency @cypress/webpack-preprocessor to v6 ([2e9a52b](https://github.com/Orange-OpenSource/uuv/commit/2e9a52b2cc1bfb05e96c212cdec0fd644f41d02b))
208
+
209
+ # [1.0.0-beta.18](https://github.com/Orange-OpenSource/uuv/compare/a11y-v1.0.0-beta.17...a11y-v1.0.0-beta.18) (2024-03-10)
210
+
211
+
212
+ ### Bug Fixes
213
+
214
+ * **runner-cypress:** update dependency @testing-library/cypress to v10 ([8ef11bf](https://github.com/Orange-OpenSource/uuv/commit/8ef11bfde65efb9ace5942113a03c06c6f8c3b6e))
215
+ * **runner-playwright:** update dependency axe-playwright to v2 ([7e3f1f4](https://github.com/Orange-OpenSource/uuv/commit/7e3f1f4793f89c9d826c341bb73f59d698c3dfa0))
216
+
217
+ # [1.0.0-beta.17](https://github.com/Orange-OpenSource/uuv/compare/a11y-v1.0.0-beta.16...a11y-v1.0.0-beta.17) (2024-03-07)
218
+
219
+
220
+ ### Bug Fixes
221
+
222
+ * fix husky migration to v9, [#530](https://github.com/Orange-OpenSource/uuv/issues/530) ([dbce11e](https://github.com/Orange-OpenSource/uuv/commit/dbce11e2c8edb8e759538eb9731fbe0ecfb06552))
223
+
224
+
225
+ ### Features
226
+
227
+ * **flutter-finder-usercentric:** initialize flutter usercentric finder, [#423](https://github.com/Orange-OpenSource/uuv/issues/423) ([cedcc3a](https://github.com/Orange-OpenSource/uuv/commit/cedcc3a8803b07a21a9fa3ca18c86d7359743ebc))
228
+ * **runner-flutter:** initialize uuv_flutter e2e cucumber library, [#423](https://github.com/Orange-OpenSource/uuv/issues/423) ([bace2f6](https://github.com/Orange-OpenSource/uuv/commit/bace2f6a6e12b48d99fb69b84e7ce930b0292d4a))
229
+
230
+ # [1.0.0-beta.16](https://github.com/Orange-OpenSource/uuv/compare/a11y-v1.0.0-beta.15...a11y-v1.0.0-beta.16) (2024-03-04)
231
+
232
+
233
+ ### Bug Fixes
234
+
235
+ * **assistant:** update dependency @ant-design/icons to v5.3.1 ([a428304](https://github.com/Orange-OpenSource/uuv/commit/a428304f37759003424e79d93dc1d5582ef34626))
236
+ * **assistant:** update dependency antd to v5.15.0 ([cb516bc](https://github.com/Orange-OpenSource/uuv/commit/cb516bcd7bb6993c6d7de8ec3f24c7d0ce4dd8b7))
237
+ * fix semantic release ([aef0c23](https://github.com/Orange-OpenSource/uuv/commit/aef0c234009fa8eb6e6a1b63c158af7c407f318a))
238
+ * **runner-playwright:** update playwright monorepo to v1.42.1 ([d0e78f6](https://github.com/Orange-OpenSource/uuv/commit/d0e78f6c73be178e7c00bf4e88d57aef3b537a70))
239
+
240
+ ## [1.0.0-beta.15](https://github.com/Orange-OpenSource/uuv/compare/a11y-v1.0.0-beta.14...a11y-v1.0.0-beta.15) (2024-02-26)
241
+
242
+
243
+ ### Features
244
+
245
+ * **a11y:** add rgaa criteria 8.*, [#476](https://github.com/Orange-OpenSource/uuv/issues/476) ([426184b](https://github.com/Orange-OpenSource/uuv/commit/426184b56bec5648f85dd86d54a733e445e7fdcd))
246
+
247
+
248
+ ### Bug Fixes
249
+
250
+ * **runner-playwright:** update playwright monorepo to v1.41.2 ([8791934](https://github.com/Orange-OpenSource/uuv/commit/87919348646fb4e5fefed2dc8a16a86e61e7dfc2))
251
+
252
+ ## [1.0.0-beta.14](https://github.com/Orange-OpenSource/uuv/compare/a11y-v1.0.0-beta.13...a11y-v1.0.0-beta.14) (2024-02-25)
253
+
254
+
255
+ ### Features
256
+
257
+ * add junit xml report option, [#491](https://github.com/Orange-OpenSource/uuv/issues/491) ([b64b0b2](https://github.com/Orange-OpenSource/uuv/commit/b64b0b2a60200269f558bcf7e0c75d8a74ffc226))
258
+
259
+
260
+ ### Bug Fixes
261
+
262
+ * **runner-playwright:** update dependency @cucumber/tag-expressions to v6.1.0 ([47fb579](https://github.com/Orange-OpenSource/uuv/commit/47fb579ee50c26ed67af6390f4e678f8206b7226))
263
+
264
+ ## [1.0.0-beta.13](https://github.com/Orange-OpenSource/uuv/compare/a11y-v1.0.0-beta.12...a11y-v1.0.0-beta.13) (2024-02-24)
265
+
266
+
267
+ ### Bug Fixes
268
+
269
+ * **assistant:** update dependency antd to v5.14.2 ([1335df6](https://github.com/Orange-OpenSource/uuv/commit/1335df676dd4641a4bda7b7f36d29d8216de0da4))
270
+ * **runner-cypress:** update dependency cypress-real-events to v1.12.0 ([55794fd](https://github.com/Orange-OpenSource/uuv/commit/55794fd04362ad2ece397d108ba400c50b152d59))
271
+
272
+ ## [1.0.0-beta.12](https://github.com/Orange-OpenSource/uuv/compare/a11y-v1.0.0-beta.11...a11y-v1.0.0-beta.12) (2024-02-23)
273
+
274
+
275
+ ### Features
276
+
277
+ * **a11y:** add rgaa topic 6, [#457](https://github.com/Orange-OpenSource/uuv/issues/457) ([ae59c46](https://github.com/Orange-OpenSource/uuv/commit/ae59c46a8973ba4ad24d2d7479362c3f9a5b0b0b))
278
+
279
+
280
+ ### Bug Fixes
281
+
282
+ * **a11y:** fix topic 5 typo in warning message, [#451](https://github.com/Orange-OpenSource/uuv/issues/451) ([ac503f0](https://github.com/Orange-OpenSource/uuv/commit/ac503f0641574c05222967eff0babc95bbc3f5fc))
283
+ * **assistant:** update dependency @ant-design/icons to v5.3.0 ([b4b2782](https://github.com/Orange-OpenSource/uuv/commit/b4b2782cfa93290a2e3cece937c02c1b00aec938))
284
+
285
+ ## [1.0.0-beta.11](https://github.com/Orange-OpenSource/uuv/compare/a11y-v1.0.0-beta.10...a11y-v1.0.0-beta.11) (2024-02-21)
286
+
287
+
288
+ ### Bug Fixes
289
+
290
+ * **deps:** update dependency @mdx-js/react to v3.0.1 ([e4ba234](https://github.com/Orange-OpenSource/uuv/commit/e4ba234ec2883f93e6003a7c27843a35f119281b))
291
+
292
+ ## [1.0.0-beta.10](https://github.com/Orange-OpenSource/uuv/compare/a11y-v1.0.0-beta.9...a11y-v1.0.0-beta.10) (2024-02-15)
293
+
294
+
295
+ ### Bug Fixes
296
+
297
+ * **runner-playwright:** update dependency axe-core to v4.8.4 ([1db34e2](https://github.com/Orange-OpenSource/uuv/commit/1db34e26b498bfc83d47cfd98064faa1aa65f558))
298
+
299
+ ## [1.0.0-beta.9](https://github.com/Orange-OpenSource/uuv/compare/a11y-v1.0.0-beta.8...a11y-v1.0.0-beta.9) (2024-02-13)
300
+
301
+
302
+ ### Bug Fixes
303
+
304
+ * update dependency multiple-cucumber-html-reporter to v3.6.2 ([95d85c3](https://github.com/Orange-OpenSource/uuv/commit/95d85c3f29ff261232f75c83175d795b63766a89))
305
+
306
+ ## [1.0.0-beta.8](https://github.com/Orange-OpenSource/uuv/compare/a11y-v1.0.0-beta.7...a11y-v1.0.0-beta.8) (2024-02-13)
307
+
308
+
309
+ ### Features
310
+
311
+ * **a11y:** add rgaa criteria 5.1 to 5.5, [#451](https://github.com/Orange-OpenSource/uuv/issues/451) ([fa3b369](https://github.com/Orange-OpenSource/uuv/commit/fa3b3693e102b54e1d72321aba573e66c864f4e3))
312
+ * **a11y:** add rgaa criteria 5.6 to 5.8, [#451](https://github.com/Orange-OpenSource/uuv/issues/451) ([9cdf4ad](https://github.com/Orange-OpenSource/uuv/commit/9cdf4ad0e5ba16d7b8ddb90e014d96fc741acc17))
313
+
314
+ ## [1.0.0-beta.7](https://github.com/Orange-OpenSource/uuv/compare/a11y-v1.0.0-beta.6...a11y-v1.0.0-beta.7) (2024-01-24)
315
+
316
+
317
+ ### Features
318
+
319
+ * **a11y:** add rgaa topic 2, [#432](https://github.com/Orange-OpenSource/uuv/issues/432) ([#450](https://github.com/Orange-OpenSource/uuv/issues/450)) ([231d95b](https://github.com/Orange-OpenSource/uuv/commit/231d95b48ecfbeb0c86f44d0de0ca8c68df7b9f1))
320
+
321
+ ## [1.0.0-beta.6](https://github.com/Orange-OpenSource/uuv/compare/a11y-v1.0.0-beta.5...a11y-v1.0.0-beta.6) (2024-01-23)
322
+
323
+
324
+ ### Features
325
+
326
+ * **a11y:** add RGAA 1.1.6 and 1.1.3, [#429](https://github.com/Orange-OpenSource/uuv/issues/429) ([0e65889](https://github.com/Orange-OpenSource/uuv/commit/0e65889b479651c27e16c29fdb8e5123fe689f03))
327
+
328
+
329
+ ### Bug Fixes
330
+
331
+ * **runner-playwright:** update dependency axe-core to v4.8.3 ([4623485](https://github.com/Orange-OpenSource/uuv/commit/46234851677cf0e5f0479fe30bc786ae2a607f1e))
332
+
333
+ ## [1.0.0-beta.5](https://github.com/Orange-OpenSource/uuv/compare/a11y-v1.0.0-beta.4...a11y-v1.0.0-beta.5) (2024-01-21)
334
+
335
+
336
+ ### Bug Fixes
337
+
338
+ * **a11y:** update dependency @testing-library/dom to v9.3.4 ([368b6b4](https://github.com/Orange-OpenSource/uuv/commit/368b6b4210f83d2da7695a0bfedd8ac593df171a))
339
+ * **assistant:** fix assistant and enable uuv test for assistant, [#437](https://github.com/Orange-OpenSource/uuv/issues/437) ([da82e1b](https://github.com/Orange-OpenSource/uuv/commit/da82e1b588a391eb24573ac8c3f2db18cfdbf5a5))
340
+ * **deps:** update dependency @easyops-cn/docusaurus-search-local to v0.40.1 ([d5ed3d7](https://github.com/Orange-OpenSource/uuv/commit/d5ed3d75f44e2b83af81fcd7227521dea00371e6))
341
+
342
+ ## [1.0.0-beta.4](https://github.com/Orange-OpenSource/uuv/compare/a11y-v1.0.0-beta.3...a11y-v1.0.0-beta.4) (2024-01-11)
343
+
344
+
345
+ ### Features
346
+
347
+ * **a11y:** add a contains sentence for a11y rgaa, [#424](https://github.com/Orange-OpenSource/uuv/issues/424) ([297cc33](https://github.com/Orange-OpenSource/uuv/commit/297cc3378798d1eb9c973a2038423ae6f874f70f))
348
+
1
349
  ## [1.0.0-beta.3](https://github.com/Orange-OpenSource/uuv/compare/a11y-v1.0.0-beta.2...a11y-v1.0.0-beta.3) (2024-01-08)
2
350
 
3
351
 
@@ -40,7 +40,7 @@ For example :
40
40
  help: "adapt these attributes to be relevant"
41
41
  })
42
42
  ```
43
- **Adding a new rule may require you to create a new query, in which case remember to write the corresponding automated tests in the `a11y/test/query/**` directory.**
43
+ **Adding a new rule may require you to create a new query, in which case remember to write the corresponding automated tests in the `a11y/test/query/**` directory and export it `index.ts` of same directory.**
44
44
 
45
45
 
46
46
  4. Create or enhance the automated topic test file in the directory `a11y/test/checker/**`.
@@ -18,13 +18,14 @@ class Engine {
18
18
  observer.complete();
19
19
  });
20
20
  }
21
- getRuleResult(rule, foundElements) {
21
+ getRuleResult(rule, queryResults) {
22
22
  if (rule.check === model_1.RuleCheckEnum.MANUAL) {
23
- return this.buildResultForManualCheck(rule, foundElements);
23
+ return this.buildResultForManualCheck(rule, queryResults);
24
24
  }
25
25
  else {
26
26
  // Then we are considering rule as RuleCheckEnum.AUTO
27
- return this.buildResultForAutoCheck(rule, foundElements);
27
+ const domNodes = queryResults.map((element) => element.domNode);
28
+ return this.buildResultForAutoCheck(rule, domNodes);
28
29
  }
29
30
  }
30
31
  buildResultForAutoCheck(rule, $el) {
@@ -62,30 +63,41 @@ class Engine {
62
63
  }
63
64
  return a11YRuleresult;
64
65
  }
65
- buildResultForManualCheck(rule, $el) {
66
- const a11YRuleresult = new model_1.A11yRuleResult(this.targetUrl, rule);
67
- const validation = a11YRuleresult.getOrAddValidation(rule.criterion);
66
+ buildResultForManualCheck(rule, queryResults) {
67
+ const a11YRuleResult = new model_1.A11yRuleResult(this.targetUrl, rule);
68
+ const validation = a11YRuleResult.getOrAddValidation(rule.criterion);
68
69
  validation.status = model_1.A11yResultStatus.SUCCESS;
69
- for (let i = 0; i < $el.length; i++) {
70
- const selector = this.getSelector($el[i]);
70
+ for (const element of queryResults) {
71
+ const domNode = element.domNode;
72
+ const selector = this.getSelector(domNode);
71
73
  const attributesToCheck = [];
72
74
  rule.attributes.forEach((attribute) => {
73
- const attributeFilledWithInformation = $el[i].getAttribute(attribute);
74
- if (attributeFilledWithInformation) {
75
- attributesToCheck.push(` ${attribute}=${attributeFilledWithInformation}`);
75
+ const childData = attribute.split(":");
76
+ if (childData.length > 1) {
77
+ domNode.childNodes.forEach((childNode) => {
78
+ if (childNode.nodeName === childData[1]) {
79
+ attributesToCheck.push(`${attribute}=${childNode.textContent}`);
80
+ }
81
+ });
82
+ }
83
+ else {
84
+ const attributeFilledWithInformation = domNode.getAttribute(attribute);
85
+ if (attributeFilledWithInformation) {
86
+ attributesToCheck.push(`${attribute}=${attributeFilledWithInformation}`);
87
+ }
76
88
  }
77
89
  });
78
- const manualValidation = a11YRuleresult.getOrAddValidation(rule.criterion);
90
+ const manualValidation = a11YRuleResult.getOrAddValidation(rule.criterion);
79
91
  manualValidation.status = model_1.A11yResultStatus.MANUAL;
80
92
  manualValidation.nodesToCheckManually.push({
81
- node: $el[i],
93
+ node: element,
82
94
  selector: selector,
83
- attributes: attributesToCheck.toString(),
84
- html: $el[i].outerHTML,
95
+ attributes: attributesToCheck.join(", "),
96
+ html: domNode.outerHTML,
85
97
  help: rule.id ? `${this.reference.getRuleUrl(rule.id)}` : ""
86
98
  });
87
99
  }
88
- return a11YRuleresult;
100
+ return a11YRuleResult;
89
101
  }
90
102
  getSelector(element) {
91
103
  const path = [];
@@ -1,4 +1,4 @@
1
- export * from "./checker";
2
1
  export * from "./reference";
2
+ export * from "./checker";
3
3
  export * from "./result";
4
4
  export * from "./rule";
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./checker"), exports);
18
17
  __exportStar(require("./reference"), exports);
18
+ __exportStar(require("./checker"), exports);
19
19
  __exportStar(require("./result"), exports);
20
20
  __exportStar(require("./rule"), exports);
@@ -7,7 +7,7 @@ var A11yReferenceEnum;
7
7
  A11yReferenceEnum["WCAG_WEB"] = "WCAG-WEB";
8
8
  A11yReferenceEnum["WCAG_ANDROID"] = "WCAG-ANDROID";
9
9
  A11yReferenceEnum["WCAG_IOS"] = "WCAG-IOS";
10
- })(A11yReferenceEnum = exports.A11yReferenceEnum || (exports.A11yReferenceEnum = {}));
10
+ })(A11yReferenceEnum || (exports.A11yReferenceEnum = A11yReferenceEnum = {}));
11
11
  class Comments {
12
12
  info;
13
13
  warning;
@@ -1,5 +1,6 @@
1
1
  import { A11yRule } from "./rule";
2
2
  import { A11yReference } from "./reference";
3
+ import { QueryResult } from "../query";
3
4
  export declare enum A11yResultStatus {
4
5
  UNKNOWN = "unknown",
5
6
  SUCCESS = "success",
@@ -12,7 +13,7 @@ export interface NonCompliantNode {
12
13
  html?: string;
13
14
  }
14
15
  export interface NodeToCheckManually {
15
- node: HTMLElement;
16
+ node: QueryResult;
16
17
  selector: string;
17
18
  attributes: string;
18
19
  html: string;
@@ -7,7 +7,7 @@ var A11yResultStatus;
7
7
  A11yResultStatus["SUCCESS"] = "success";
8
8
  A11yResultStatus["MANUAL"] = "manual";
9
9
  A11yResultStatus["ERROR"] = "error";
10
- })(A11yResultStatus = exports.A11yResultStatus || (exports.A11yResultStatus = {}));
10
+ })(A11yResultStatus || (exports.A11yResultStatus = A11yResultStatus = {}));
11
11
  class A11yRuleValidationResult {
12
12
  criteria;
13
13
  status = A11yResultStatus.UNKNOWN;
@@ -1,7 +1,6 @@
1
1
  import { Query } from "../query/00-query";
2
2
  export interface A11yRule {
3
3
  attributes: string[];
4
- reference: string;
5
4
  check: RuleCheckEnum;
6
5
  criterion: string;
7
6
  wcag: string;
@@ -14,7 +13,6 @@ export interface A11yRule {
14
13
  }
15
14
  export declare class AutoCheckA11yRule implements A11yRule {
16
15
  attributes: string[];
17
- reference: string;
18
16
  check: RuleCheckEnum;
19
17
  criterion: string;
20
18
  wcag: string;
@@ -26,7 +24,6 @@ export declare class AutoCheckA11yRule implements A11yRule {
26
24
  shouldNotExist: boolean;
27
25
  static from(input: {
28
26
  attributes?: string[];
29
- reference: string;
30
27
  criterion: string;
31
28
  wcag: string;
32
29
  id: string;
@@ -37,7 +34,6 @@ export declare class AutoCheckA11yRule implements A11yRule {
37
34
  shouldNotExist?: boolean;
38
35
  }): AutoCheckA11yRule & {
39
36
  attributes?: string[] | undefined;
40
- reference: string;
41
37
  criterion: string;
42
38
  wcag: string;
43
39
  id: string;
@@ -50,7 +46,6 @@ export declare class AutoCheckA11yRule implements A11yRule {
50
46
  }
51
47
  export declare class ManualCheckA11yRule implements A11yRule {
52
48
  attributes: string[];
53
- reference: string;
54
49
  check: RuleCheckEnum;
55
50
  criterion: string;
56
51
  wcag: string;
@@ -62,7 +57,6 @@ export declare class ManualCheckA11yRule implements A11yRule {
62
57
  shouldNotExist: boolean;
63
58
  static from(input: {
64
59
  attributes?: string[];
65
- reference: string;
66
60
  criterion: string;
67
61
  wcag: string;
68
62
  id: string;
@@ -73,7 +67,6 @@ export declare class ManualCheckA11yRule implements A11yRule {
73
67
  shouldNotExist?: boolean;
74
68
  }): ManualCheckA11yRule & {
75
69
  attributes?: string[] | undefined;
76
- reference: string;
77
70
  criterion: string;
78
71
  wcag: string;
79
72
  id: string;
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.RuleTypeEnum = exports.CustomFilter = exports.RuleCheckEnum = exports.ManualCheckA11yRule = exports.AutoCheckA11yRule = void 0;
4
4
  class AutoCheckA11yRule {
5
5
  attributes;
6
- reference;
7
6
  check = RuleCheckEnum.AUTO;
8
7
  criterion;
9
8
  wcag;
@@ -20,7 +19,6 @@ class AutoCheckA11yRule {
20
19
  exports.AutoCheckA11yRule = AutoCheckA11yRule;
21
20
  class ManualCheckA11yRule {
22
21
  attributes = [];
23
- reference;
24
22
  check = RuleCheckEnum.MANUAL;
25
23
  criterion;
26
24
  wcag;
@@ -39,15 +37,15 @@ var RuleCheckEnum;
39
37
  (function (RuleCheckEnum) {
40
38
  RuleCheckEnum["MANUAL"] = "MANUAL";
41
39
  RuleCheckEnum["AUTO"] = "AUTO";
42
- })(RuleCheckEnum = exports.RuleCheckEnum || (exports.RuleCheckEnum = {}));
40
+ })(RuleCheckEnum || (exports.RuleCheckEnum = RuleCheckEnum = {}));
43
41
  var CustomFilter;
44
42
  (function (CustomFilter) {
45
43
  CustomFilter["DOCTYPE"] = "$DOCTYPE";
46
44
  CustomFilter["FORM_FIELD"] = "$FORMFIELD";
47
- })(CustomFilter = exports.CustomFilter || (exports.CustomFilter = {}));
45
+ })(CustomFilter || (exports.CustomFilter = CustomFilter = {}));
48
46
  var RuleTypeEnum;
49
47
  (function (RuleTypeEnum) {
50
48
  RuleTypeEnum["TAG"] = "TAG";
51
49
  RuleTypeEnum["ROLE"] = "ROLE";
52
50
  RuleTypeEnum["COLOR"] = "COLOR";
53
- })(RuleTypeEnum = exports.RuleTypeEnum || (exports.RuleTypeEnum = {}));
51
+ })(RuleTypeEnum || (exports.RuleTypeEnum = RuleTypeEnum = {}));
@@ -1,4 +1,9 @@
1
1
  export interface Query {
2
- execute(): HTMLElement[];
2
+ execute(): QueryResult[];
3
3
  getSelector(): string;
4
4
  }
5
+ export declare class QueryResult {
6
+ readonly domNode: HTMLElement;
7
+ readonly linkedNodes: HTMLElement[];
8
+ constructor(domNode: HTMLElement, linkedNodes?: HTMLElement[]);
9
+ }
@@ -1,2 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.QueryResult = void 0;
4
+ class QueryResult {
5
+ domNode;
6
+ linkedNodes;
7
+ constructor(domNode, linkedNodes = []) {
8
+ this.domNode = domNode;
9
+ this.linkedNodes = linkedNodes;
10
+ }
11
+ }
12
+ exports.QueryResult = QueryResult;
@@ -1,8 +1,10 @@
1
- import { Query } from "./00-query";
1
+ import { Query, QueryResult } from "./00-query";
2
2
  export declare class AccessibleNameQuery implements Query {
3
3
  readonly subQuery: Query;
4
4
  readonly shouldBeEmpty: boolean;
5
5
  constructor(subQuery: Query, shouldBeEmpty: boolean);
6
- execute(): HTMLElement[];
6
+ execute(): QueryResult[];
7
+ private isNullOrEmpty;
8
+ private isNotNullAndNotEmpty;
7
9
  getSelector(): string;
8
10
  }
@@ -12,11 +12,11 @@ class AccessibleNameQuery {
12
12
  }
13
13
  execute() {
14
14
  return this.subQuery.execute().filter(element => {
15
- const accessibleName = (0, dom_accessibility_api_1.computeAccessibleName)(element);
16
- if (this.shouldBeEmpty && (0, lodash_1.isEmpty)(accessibleName)) {
15
+ const accessibleName = (0, dom_accessibility_api_1.computeAccessibleName)(element.domNode);
16
+ if (this.shouldBeEmpty && this.isNullOrEmpty(accessibleName)) {
17
17
  return true;
18
18
  }
19
- else if (!this.shouldBeEmpty && !(0, lodash_1.isEmpty)(accessibleName)) {
19
+ else if (!this.shouldBeEmpty && this.isNotNullAndNotEmpty(accessibleName)) {
20
20
  return true;
21
21
  }
22
22
  else {
@@ -24,6 +24,12 @@ class AccessibleNameQuery {
24
24
  }
25
25
  });
26
26
  }
27
+ isNullOrEmpty(accessibleName) {
28
+ return (0, lodash_1.isNull)(accessibleName) || (0, lodash_1.isEmpty)(accessibleName);
29
+ }
30
+ isNotNullAndNotEmpty(accessibleName) {
31
+ return !(0, lodash_1.isNull)(accessibleName) && !(0, lodash_1.isEmpty)(accessibleName);
32
+ }
27
33
  getSelector() {
28
34
  return `AccessibleName: ${this.subQuery.getSelector()}`;
29
35
  }