From cf8313570b8982ab281f149376977130192642e4 Mon Sep 17 00:00:00 2001 From: Jean-Christophe Gueriaud Date: Fri, 1 Dec 2023 16:12:21 +0200 Subject: [PATCH] Update the version for the types to 3.1.64 --- .../addons/accessibility/AccessibilityCheckerPlugin.java | 4 ++-- .../accessibility-checker/accessibility-checker-types.ts | 4 ++-- .../accessibility-checker/accessibility-checker.ts | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/accessibility-checker-for-vaadin/src/main/java/org/vaadin/addons/accessibility/AccessibilityCheckerPlugin.java b/accessibility-checker-for-vaadin/src/main/java/org/vaadin/addons/accessibility/AccessibilityCheckerPlugin.java index 2e9b1ff..d0dbb89 100644 --- a/accessibility-checker-for-vaadin/src/main/java/org/vaadin/addons/accessibility/AccessibilityCheckerPlugin.java +++ b/accessibility-checker-for-vaadin/src/main/java/org/vaadin/addons/accessibility/AccessibilityCheckerPlugin.java @@ -42,8 +42,8 @@ /** * @author jcgueriaud */ -@NpmPackage(value = "accessibility-checker", version = "3.1.49") -@NpmPackage(value = "accessibility-checker-engine", version = "3.1.49") +@NpmPackage(value = "accessibility-checker", version = "3.1.64") +@NpmPackage(value = "accessibility-checker-engine", version = "3.1.64") @JsModule(value = "./accessibility-checker/accessibility-checker.ts", developmentOnly = true) public class AccessibilityCheckerPlugin implements DevToolsMessageHandler { diff --git a/accessibility-checker-for-vaadin/src/main/resources/META-INF/resources/frontend/accessibility-checker/accessibility-checker-types.ts b/accessibility-checker-for-vaadin/src/main/resources/META-INF/resources/frontend/accessibility-checker/accessibility-checker-types.ts index 2eecf80..c7601cd 100644 --- a/accessibility-checker-for-vaadin/src/main/resources/META-INF/resources/frontend/accessibility-checker/accessibility-checker-types.ts +++ b/accessibility-checker-for-vaadin/src/main/resources/META-INF/resources/frontend/accessibility-checker/accessibility-checker-types.ts @@ -1,5 +1,5 @@ -import { RuleDetails } from "accessibility-checker/lib/api/IEngine"; +import {IEngineResult} from "accessibility-checker/lib/common/engine/IReport"; export enum ACRuleCategory { VIOLATION = "VIOLATION", @@ -7,7 +7,7 @@ export enum ACRuleCategory { NEED_REVIEW = "NEED_REVIEW" } -export type ACRuleDetails = RuleDetails & { +export type ACRuleDetails = IEngineResult & { tagName: string; ruleCategory: ACRuleCategory; solved: boolean; diff --git a/accessibility-checker-for-vaadin/src/main/resources/META-INF/resources/frontend/accessibility-checker/accessibility-checker.ts b/accessibility-checker-for-vaadin/src/main/resources/META-INF/resources/frontend/accessibility-checker/accessibility-checker.ts index d283d97..679968b 100644 --- a/accessibility-checker-for-vaadin/src/main/resources/META-INF/resources/frontend/accessibility-checker/accessibility-checker.ts +++ b/accessibility-checker-for-vaadin/src/main/resources/META-INF/resources/frontend/accessibility-checker/accessibility-checker.ts @@ -1,7 +1,7 @@ import {html, css, LitElement, nothing, PropertyValues} from 'lit'; import {customElement, property, state} from 'lit/decorators.js'; -import {RuleDetails} from "accessibility-checker/lib/api/IEngine"; +import {IEngineResult} from "accessibility-checker/lib/common/engine/IReport"; // @ts-ignore import {runAccessibilityCheck} from "./accessibility-checker-lib.js"; import {ComponentReference} from "./copy-component-util"; @@ -89,10 +89,10 @@ export class AccessibilityChecker extends LitElement implements MessageHandler { const start = new Date().getTime() // Remove passing issues this.report = accessibilityCheckResult.results.filter( - (issue: RuleDetails) => { + (issue: IEngineResult) => { return this.validateRuleDetails(issue); } - ).map((ruleDetail: RuleDetails) => ({ + ).map((ruleDetail: IEngineResult) => ({ ...ruleDetail, tagName: getTagName(ruleDetail), ruleCategory: getRuleCategory(ruleDetail.value[0], ruleDetail.value[1]), @@ -631,7 +631,7 @@ export class AccessibilityChecker extends LitElement implements MessageHandler { * @param issue * @private */ - private validateRuleDetails(issue: RuleDetails) { + private validateRuleDetails(issue: IEngineResult) { if (issue.value[1] == "PASS") { return false; }