accessibility-checker 3.1.53 → 3.1.55

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.
@@ -0,0 +1,166 @@
1
+ /******************************************************************************
2
+ Copyright:: 2020- IBM, Inc
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+ *****************************************************************************/
16
+ import { eRuleLevel } from "../config/IConfig";
17
+ export declare enum eRuleConfidence {
18
+ PASS = "PASS",
19
+ FAIL = "FAIL",
20
+ POTENTIAL = "POTENTIAL",
21
+ MANUAL = "MANUAL"
22
+ }
23
+ export declare enum eRulePolicy {
24
+ VIOLATION = "VIOLATION",
25
+ RECOMMENDATION = "RECOMMENDATION",
26
+ INFORMATION = "INFORMATION"
27
+ }
28
+ export declare enum eToolkitLevel {
29
+ LEVEL_ONE = "1",
30
+ LEVEL_TWO = "2",
31
+ LEVEL_THREE = "3",
32
+ LEVEL_FOUR = "4"
33
+ }
34
+ export declare enum eRuleCategory {
35
+ ACCESSIBILITY = "Accessibility",
36
+ DESIGN = "Design",
37
+ OTHER = "Other"
38
+ }
39
+ export declare enum eRulesetType {
40
+ DEFAULT = "default",
41
+ EXTENSION = "extension"
42
+ }
43
+ export interface Bounds {
44
+ left: number;
45
+ top: number;
46
+ width: number;
47
+ height: number;
48
+ }
49
+ export interface IRuleset {
50
+ id: string;
51
+ name: string;
52
+ category: eRuleCategory;
53
+ description: string;
54
+ type?: eRulesetType;
55
+ checkpoints: Array<{
56
+ num: string;
57
+ scId?: string;
58
+ name: string;
59
+ wcagLevel: string;
60
+ summary: string;
61
+ rules?: Array<{
62
+ id: string;
63
+ level: eRulePolicy;
64
+ toolkitLevel: eToolkitLevel;
65
+ }>;
66
+ }>;
67
+ }
68
+ export interface IEngineReport {
69
+ results: IEngineResult[];
70
+ numExecuted: number;
71
+ ruleTime: number;
72
+ totalTime?: number;
73
+ screenshot?: string;
74
+ nls?: {
75
+ [ruleId: string]: {
76
+ [reasonId: string]: string;
77
+ };
78
+ };
79
+ }
80
+ export interface IEngineResult {
81
+ category?: eRuleCategory;
82
+ ruleId: string;
83
+ value: [eRulePolicy, eRuleConfidence];
84
+ reasonId?: number | string;
85
+ messageArgs?: string[];
86
+ apiArgs?: any[];
87
+ node?: Node;
88
+ path: {
89
+ [ns: string]: string;
90
+ };
91
+ ruleTime: number;
92
+ message: string;
93
+ bounds?: Bounds;
94
+ snippet: string;
95
+ help?: string;
96
+ }
97
+ export interface IBaselineResult extends IEngineResult {
98
+ ignored: boolean;
99
+ help: string;
100
+ level: eRuleLevel;
101
+ }
102
+ export interface IBaselineReport {
103
+ results: IBaselineResult[];
104
+ numExecuted: number;
105
+ nls: {
106
+ [ruleId: string]: {
107
+ [reasonId: string]: string;
108
+ };
109
+ };
110
+ summary: {
111
+ counts: {
112
+ violation: number;
113
+ potentialviolation: number;
114
+ recommendation: number;
115
+ potentialrecommendation: number;
116
+ manual: number;
117
+ pass: number;
118
+ ignored: number;
119
+ elements: number;
120
+ elementsViolation: number;
121
+ elementsViolationReview: number;
122
+ };
123
+ scanTime: number;
124
+ ruleArchive: string;
125
+ policies: string[];
126
+ reportLevels: string[];
127
+ startScan: number;
128
+ URL: string;
129
+ };
130
+ scanID: string;
131
+ toolID: string;
132
+ label: string;
133
+ }
134
+ export type CompressedReport = [
135
+ number,
136
+ string,
137
+ string,
138
+ string,
139
+ string,
140
+ number,
141
+ number,
142
+ string,
143
+ string[],
144
+ string[],
145
+ CompressedIssue[]
146
+ ];
147
+ export type CompressedIssue = [
148
+ // results
149
+ eRuleCategory | undefined,
150
+ string,
151
+ [
152
+ eRulePolicy,
153
+ eRuleConfidence
154
+ ],
155
+ // value
156
+ number | string | undefined,
157
+ string[],
158
+ {
159
+ [ns: string]: string;
160
+ },
161
+ number,
162
+ string,
163
+ string,
164
+ boolean,
165
+ string
166
+ ];
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ /******************************************************************************
3
+ Copyright:: 2020- IBM, Inc
4
+
5
+ Licensed under the Apache License, Version 2.0 (the "License");
6
+ you may not use this file except in compliance with the License.
7
+ You may obtain a copy of the License at
8
+
9
+ http://www.apache.org/licenses/LICENSE-2.0
10
+
11
+ Unless required by applicable law or agreed to in writing, software
12
+ distributed under the License is distributed on an "AS IS" BASIS,
13
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ See the License for the specific language governing permissions and
15
+ limitations under the License.
16
+ *****************************************************************************/
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.eRulesetType = exports.eRuleCategory = exports.eToolkitLevel = exports.eRulePolicy = exports.eRuleConfidence = void 0;
19
+ var eRuleConfidence;
20
+ (function (eRuleConfidence) {
21
+ eRuleConfidence["PASS"] = "PASS";
22
+ eRuleConfidence["FAIL"] = "FAIL";
23
+ eRuleConfidence["POTENTIAL"] = "POTENTIAL";
24
+ eRuleConfidence["MANUAL"] = "MANUAL";
25
+ })(eRuleConfidence || (exports.eRuleConfidence = eRuleConfidence = {}));
26
+ var eRulePolicy;
27
+ (function (eRulePolicy) {
28
+ eRulePolicy["VIOLATION"] = "VIOLATION";
29
+ eRulePolicy["RECOMMENDATION"] = "RECOMMENDATION";
30
+ eRulePolicy["INFORMATION"] = "INFORMATION";
31
+ })(eRulePolicy || (exports.eRulePolicy = eRulePolicy = {}));
32
+ var eToolkitLevel;
33
+ (function (eToolkitLevel) {
34
+ eToolkitLevel["LEVEL_ONE"] = "1";
35
+ eToolkitLevel["LEVEL_TWO"] = "2";
36
+ eToolkitLevel["LEVEL_THREE"] = "3";
37
+ eToolkitLevel["LEVEL_FOUR"] = "4";
38
+ })(eToolkitLevel || (exports.eToolkitLevel = eToolkitLevel = {}));
39
+ var eRuleCategory;
40
+ (function (eRuleCategory) {
41
+ eRuleCategory["ACCESSIBILITY"] = "Accessibility";
42
+ eRuleCategory["DESIGN"] = "Design";
43
+ eRuleCategory["OTHER"] = "Other";
44
+ })(eRuleCategory || (exports.eRuleCategory = eRuleCategory = {}));
45
+ var eRulesetType;
46
+ (function (eRulesetType) {
47
+ eRulesetType["DEFAULT"] = "default";
48
+ eRulesetType["EXTENSION"] = "extension";
49
+ })(eRulesetType || (exports.eRulesetType = eRulesetType = {}));
50
+ //# sourceMappingURL=IReport.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IReport.js","sourceRoot":"","sources":["../../../../src-ts/lib/common/engine/IReport.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;+EAc+E;;;AAK/E,IAAY,eAKX;AALD,WAAY,eAAe;IACvB,gCAAa,CAAA;IACb,gCAAa,CAAA;IACb,0CAAuB,CAAA;IACvB,oCAAiB,CAAA;AACrB,CAAC,EALW,eAAe,+BAAf,eAAe,QAK1B;AAED,IAAY,WAIX;AAJD,WAAY,WAAW;IACnB,sCAAuB,CAAA;IACvB,gDAAiC,CAAA;IACjC,0CAA2B,CAAA;AAC/B,CAAC,EAJW,WAAW,2BAAX,WAAW,QAItB;AAED,IAAY,aAKX;AALD,WAAY,aAAa;IACrB,gCAAe,CAAA;IACf,gCAAe,CAAA;IACf,kCAAiB,CAAA;IACjB,iCAAgB,CAAA;AACpB,CAAC,EALW,aAAa,6BAAb,aAAa,QAKxB;AAED,IAAY,aAIX;AAJD,WAAY,aAAa;IACrB,gDAA+B,CAAA;IAC/B,kCAAiB,CAAA;IACjB,gCAAe,CAAA;AACnB,CAAC,EAJW,aAAa,6BAAb,aAAa,QAIxB;AAED,IAAY,YAGX;AAHD,WAAY,YAAY;IACpB,mCAAmB,CAAA;IACnB,uCAAuB,CAAA;AAC3B,CAAC,EAHW,YAAY,4BAAZ,YAAY,QAGvB"}
@@ -0,0 +1,35 @@
1
+ /******************************************************************************
2
+ Copyright:: 2023- IBM, Inc
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+ *****************************************************************************/
16
+ import { eRuleCategory, eRulePolicy, eRulesetType, eToolkitLevel } from "./IReport";
17
+ export interface IRuleset {
18
+ id: string;
19
+ name: string;
20
+ category: eRuleCategory;
21
+ description: string;
22
+ type?: eRulesetType;
23
+ checkpoints: Array<{
24
+ num: string;
25
+ scId?: string;
26
+ name: string;
27
+ wcagLevel: string;
28
+ summary: string;
29
+ rules?: Array<{
30
+ id: string;
31
+ level: eRulePolicy;
32
+ toolkitLevel: eToolkitLevel;
33
+ }>;
34
+ }>;
35
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ /******************************************************************************
3
+ Copyright:: 2023- IBM, Inc
4
+
5
+ Licensed under the Apache License, Version 2.0 (the "License");
6
+ you may not use this file except in compliance with the License.
7
+ You may obtain a copy of the License at
8
+
9
+ http://www.apache.org/licenses/LICENSE-2.0
10
+
11
+ Unless required by applicable law or agreed to in writing, software
12
+ distributed under the License is distributed on an "AS IS" BASIS,
13
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ See the License for the specific language governing permissions and
15
+ limitations under the License.
16
+ *****************************************************************************/
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ //# sourceMappingURL=IRuleset.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IRuleset.js","sourceRoot":"","sources":["../../../../src-ts/lib/common/engine/IRuleset.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;8EAc8E"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "accessibility-checker",
3
- "version": "3.1.53",
3
+ "version": "3.1.55",
4
4
  "description": "An automated testing tools for accessibility testing using Puppeteer, Selenium, or Zombie",
5
5
  "main": "index.js",
6
6
  "scripts": {