@uuv/a11y 1.0.0-beta.97 → 1.0.0-beta.99

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/CHANGELOG.md CHANGED
@@ -1,3 +1,25 @@
1
+ # [1.0.0-beta.98](https://github.com/e2e-test-quest/uuv/compare/a11y-v1.0.0-beta.97...a11y-v1.0.0-beta.98) (2026-03-15)
2
+
3
+
4
+ ### Features
5
+
6
+ * **a11y:** add context parameter for wcag checker ([8d5fd08](https://github.com/e2e-test-quest/uuv/commit/8d5fd08b218d3641f404a00d518912a63ee17e28))
7
+ * **runner-cypress:** replace webpack by esbuild ([1a690ec](https://github.com/e2e-test-quest/uuv/commit/1a690ec7db65b62200405370c7b072620aaa9dfd))
8
+
9
+ # [1.0.0-beta.97](https://github.com/e2e-test-quest/uuv/compare/a11y-v1.0.0-beta.96...a11y-v1.0.0-beta.97) (2026-03-08)
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * **runner-playwright:** update dependency chokidar to v4.0.3 ([ff51aab](https://github.com/e2e-test-quest/uuv/commit/ff51aabadce6d0dc5e1b054472a43d1a14142ec3))
15
+ * **runner-playwright:** update dependency chokidar to v4.0.3 ([330ce8f](https://github.com/e2e-test-quest/uuv/commit/330ce8f99c8c84699cc5251159e980cb4318a277))
16
+ * **runner-playwright:** update dependency webpack to v5.105.4 ([ba8a2cf](https://github.com/e2e-test-quest/uuv/commit/ba8a2cfe2114e7e36301125b0d76a2ab1d63002d))
17
+
18
+
19
+ ### Features
20
+
21
+ * **assistant-ai:** initialize @uuv/assistant-ai, [#1222](https://github.com/e2e-test-quest/uuv/issues/1222) ([60a0090](https://github.com/e2e-test-quest/uuv/commit/60a0090ad865f5e667614b84582c1808b49137ea))
22
+
1
23
  # [1.0.0-beta.96](https://github.com/e2e-test-quest/uuv/compare/a11y-v1.0.0-beta.95...a11y-v1.0.0-beta.96) (2026-03-02)
2
24
 
3
25
 
@@ -1,14 +1,18 @@
1
1
  import { Observable } from "rxjs";
2
2
  import { A11yChecker, A11yResultStatus } from "../../model";
3
3
  import { AccessibilityIssue, UuvA11yResultUsecase, UuvA11yResultUsecaseLocation } from "../../model/uuv-a11y-result";
4
- import axe from "axe-core";
5
- export type WcagCheckerOptions = axe.RunOptions & {
4
+ import axe, { ElementContext } from "axe-core";
5
+ export type WcagCheckerAxeCoreOptions = axe.RunOptions & {
6
6
  includedImpacts?: string[];
7
7
  };
8
+ export type WcagCheckerConfig = axe.RunOptions & {
9
+ context?: ElementContext;
10
+ options: WcagCheckerAxeCoreOptions;
11
+ };
8
12
  export declare class WcagChecker implements A11yChecker {
9
13
  readonly url: string;
10
- readonly options?: WcagCheckerOptions | undefined;
11
- protected constructor(url: string, options?: WcagCheckerOptions | undefined);
14
+ readonly config: WcagCheckerConfig;
15
+ protected constructor(url: string, config?: WcagCheckerConfig);
12
16
  validate(name: string, script: string, location: UuvA11yResultUsecaseLocation): Observable<UuvA11yResultUsecase>;
13
17
  computeStatus(issues: AccessibilityIssue[]): A11yResultStatus;
14
18
  }
@@ -44,18 +44,19 @@ const axe_core_1 = __importDefault(require("axe-core"));
44
44
  const WcagHelper = __importStar(require("./wcag-helper"));
45
45
  class WcagChecker {
46
46
  url;
47
- options;
48
- constructor(url, options) {
47
+ config;
48
+ constructor(url, config = { options: {} }) {
49
49
  this.url = url;
50
- this.options = options;
50
+ this.config = config;
51
51
  }
52
52
  validate(name, script, location) {
53
- return (0, rxjs_1.from)(axe_core_1.default.run({
54
- ...this.options
55
- }))
53
+ const execution = this.config?.context ?
54
+ axe_core_1.default.run(this.config.context, this.config.options) :
55
+ axe_core_1.default.run(this.config.options);
56
+ return (0, rxjs_1.from)(execution)
56
57
  .pipe((0, rxjs_1.map)(axeResult => {
57
- const violations = this.options?.includedImpacts ?
58
- axeResult.violations.filter(issue => issue?.impact && this.options?.includedImpacts?.includes(issue.impact)) :
58
+ const violations = this.config?.options?.includedImpacts ?
59
+ axeResult.violations.filter(issue => issue?.impact && this.config?.options?.includedImpacts?.includes(issue.impact)) :
59
60
  axeResult.violations;
60
61
  let issues = [];
61
62
  [
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uuv/a11y",
3
- "version": "1.0.0-beta.96",
3
+ "version": "1.0.0-beta.98",
4
4
  "type": "commonjs",
5
5
  "author": "Louis Fredice NJAKO MOLOM (https://github.com/luifr10) & Stanley SERVICAL (https://github.com/stanlee974)",
6
6
  "description": "A javascript lib for running a11y validation based on multiple reference(RGAA, etc)",
@@ -68,9 +68,9 @@
68
68
  ],
69
69
  "exports": {
70
70
  ".": {
71
+ "types": "./dist/index.d.ts",
71
72
  "import": "./dist/index.js",
72
- "require": "./dist/index.js",
73
- "types": "./dist/index.d.ts"
73
+ "require": "./dist/index.js"
74
74
  },
75
75
  "./bundle": "./bundle/uuv-a11y.bundle.js"
76
76
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uuv/a11y",
3
- "version": "1.0.0-beta.97",
3
+ "version": "1.0.0-beta.99",
4
4
  "type": "commonjs",
5
5
  "author": "Louis Fredice NJAKO MOLOM (https://github.com/luifr10) & Stanley SERVICAL (https://github.com/stanlee974)",
6
6
  "description": "A javascript lib for running a11y validation based on multiple reference(RGAA, etc)",
@@ -68,9 +68,9 @@
68
68
  ],
69
69
  "exports": {
70
70
  ".": {
71
+ "types": "./dist/index.d.ts",
71
72
  "import": "./dist/index.js",
72
- "require": "./dist/index.js",
73
- "types": "./dist/index.d.ts"
73
+ "require": "./dist/index.js"
74
74
  },
75
75
  "./bundle": "./bundle/uuv-a11y.bundle.js"
76
76
  },