Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Commit

Permalink
Merge pull request #46 from /issues/41
Browse files Browse the repository at this point in the history
Update the version for the types to 3.1.64
  • Loading branch information
jcgueriaud1 authored Dec 1, 2023
2 parents d69e181 + cf83135 commit 85eaaa6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@

import { RuleDetails } from "accessibility-checker/lib/api/IEngine";
import {IEngineResult} from "accessibility-checker/lib/common/engine/IReport";

export enum ACRuleCategory {
VIOLATION = "VIOLATION",
RECOMMENDATION = "RECOMMENDATION",
NEED_REVIEW = "NEED_REVIEW"
}

export type ACRuleDetails = RuleDetails & {
export type ACRuleDetails = IEngineResult & {
tagName: string;
ruleCategory: ACRuleCategory;
solved: boolean;
Expand Down
Original file line number Diff line number Diff line change
@@ -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";
Expand Down Expand Up @@ -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]),
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 85eaaa6

Please sign in to comment.