@surea11y/pack-raweb 0.0.0-stage → 1.1.0
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/LICENSE +373 -0
- package/README.md +52 -2
- package/data/README.md +43 -0
- package/data/en/LICENSE.md +58 -0
- package/data/en/criteres.json +5170 -0
- package/data/en/glossaire.json +576 -0
- package/data/en/methodologies.json +306 -0
- package/data/en/themes.json +57 -0
- package/data/fr/LICENSE.md +58 -0
- package/data/fr/criteres.json +5557 -0
- package/data/fr/glossaire.json +576 -0
- package/data/fr/methodologies.json +306 -0
- package/data/fr/themes.json +57 -0
- package/docs/RGAA_COMPARISON.md +687 -0
- package/docs/RULE_MAP_REVIEW.md +145 -0
- package/glossary.js +1510 -0
- package/index.js +40 -0
- package/map.js +12221 -0
- package/package.json +68 -4
- package/standard-data.js +408 -0
package/index.js
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/* SPDX-License-Identifier: MPL-2.0 */
|
|
2
|
+
|
|
3
|
+
'use strict';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* RAWeb 1.1, Luxembourg's framework for assessing the accessibility of
|
|
7
|
+
* websites, as a pack for @surea11y/core. Passed to a scan in
|
|
8
|
+
* engineOptions.packs with @surea11y/pack-rgaa, which it builds on, it brings
|
|
9
|
+
* the standard (RAWeb's criteria and tests, in its own French and English,
|
|
10
|
+
* standard-data.js), one rollup per criterion, the raweb-1.1 profile and the
|
|
11
|
+
* law it is used for, and RAWeb's methodology as the procedures a person
|
|
12
|
+
* follows.
|
|
13
|
+
*
|
|
14
|
+
* RAWeb is an adaptation of RGAA 4.1.2: the pack takes pack-rgaa's data and
|
|
15
|
+
* rule map (core's deriveStandard) and runs pack-rgaa's rules (uses), with
|
|
16
|
+
* the changes RAWeb's wording requires (docs/RULE_MAP_REVIEW.md). It has no
|
|
17
|
+
* rules of its own.
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
const { definePack, standardFromData } = require('@surea11y/core/pack');
|
|
21
|
+
const rgaa = require('@surea11y/pack-rgaa');
|
|
22
|
+
const { name, version } = require('./package.json');
|
|
23
|
+
const { STANDARD_DATA } = require('./standard-data');
|
|
24
|
+
|
|
25
|
+
const standard = standardFromData(STANDARD_DATA, {
|
|
26
|
+
report: { titleLang: 'fr' }
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
module.exports = definePack({
|
|
30
|
+
name,
|
|
31
|
+
version,
|
|
32
|
+
namespace: 'raweb',
|
|
33
|
+
// The pack uses other packs (uses), experimental in core until 1.19.0: a
|
|
34
|
+
// later minor may change it, so the range takes none.
|
|
35
|
+
core: '~1.18.0',
|
|
36
|
+
description: 'RAWeb 1.1, the Luxembourg accessibility framework',
|
|
37
|
+
uses: [rgaa],
|
|
38
|
+
rules: [],
|
|
39
|
+
standard
|
|
40
|
+
});
|