@emulsify/core 2.6.1 → 2.7.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/.storybook/preview.js +18 -11
- package/package.json +35 -35
package/.storybook/preview.js
CHANGED
|
@@ -13,14 +13,29 @@ function enableRulesByTag(tags = []) {
|
|
|
13
13
|
);
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
const
|
|
16
|
+
const enabledTags = [
|
|
17
17
|
"wcag2a",
|
|
18
18
|
"wcag2aa",
|
|
19
19
|
"wcag21a",
|
|
20
20
|
"wcag21aa",
|
|
21
21
|
"wcag22aa",
|
|
22
22
|
"best-practice",
|
|
23
|
-
]
|
|
23
|
+
];
|
|
24
|
+
|
|
25
|
+
const enabledRules: Rule[] = getRules(enabledTags).map((ruleMetadata) => ({
|
|
26
|
+
id: ruleMetadata.ruleId,
|
|
27
|
+
enabled: true,
|
|
28
|
+
}));
|
|
29
|
+
|
|
30
|
+
const a11y: A11yParameters = {
|
|
31
|
+
config: {
|
|
32
|
+
detailedReport: true,
|
|
33
|
+
detailedReportOptions: {
|
|
34
|
+
html: true,
|
|
35
|
+
},
|
|
36
|
+
rules: enabledRules,
|
|
37
|
+
},
|
|
38
|
+
};
|
|
24
39
|
|
|
25
40
|
export const decorators = [
|
|
26
41
|
(Story, { args }) => {
|
|
@@ -39,13 +54,5 @@ fetchCSSFiles();
|
|
|
39
54
|
|
|
40
55
|
export const parameters = {
|
|
41
56
|
actions: { argTypesRegex: '^on[A-Z].*' },
|
|
42
|
-
a11y
|
|
43
|
-
config: {
|
|
44
|
-
detailedReport: true,
|
|
45
|
-
detailedReportOptions: {
|
|
46
|
-
html: true,
|
|
47
|
-
},
|
|
48
|
-
rules: AxeRules,
|
|
49
|
-
},
|
|
50
|
-
},
|
|
57
|
+
a11y,
|
|
51
58
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@emulsify/core",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.7.0",
|
|
4
4
|
"description": "Bundled tooling for Storybook development + Webpack Build",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"component library",
|
|
@@ -46,47 +46,47 @@
|
|
|
46
46
|
"twatch": "jest --no-coverage --watch --verbose"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@babel/core": "^7.
|
|
50
|
-
"@babel/eslint-parser": "^7.
|
|
51
|
-
"@babel/preset-env": "^7.
|
|
49
|
+
"@babel/core": "^7.26.10",
|
|
50
|
+
"@babel/eslint-parser": "^7.27.0",
|
|
51
|
+
"@babel/preset-env": "^7.26.9",
|
|
52
52
|
"@emulsify/cli": "^1.11.4",
|
|
53
|
-
"@storybook/addon-a11y": "^8.
|
|
54
|
-
"@storybook/addon-actions": "^8.
|
|
55
|
-
"@storybook/addon-essentials": "^8.
|
|
56
|
-
"@storybook/addon-links": "^8.
|
|
53
|
+
"@storybook/addon-a11y": "^8.6.12",
|
|
54
|
+
"@storybook/addon-actions": "^8.6.12",
|
|
55
|
+
"@storybook/addon-essentials": "^8.6.12",
|
|
56
|
+
"@storybook/addon-links": "^8.6.12",
|
|
57
57
|
"@storybook/addon-styling-webpack": "^1.0.1",
|
|
58
|
-
"@storybook/addon-themes": "^8.
|
|
59
|
-
"@storybook/html": "^8.
|
|
60
|
-
"@storybook/html-webpack5": "^8.
|
|
61
|
-
"@storybook/manager-api": "^8.
|
|
62
|
-
"@storybook/preview-api": "^8.
|
|
63
|
-
"@storybook/theming": "^8.
|
|
58
|
+
"@storybook/addon-themes": "^8.6.12",
|
|
59
|
+
"@storybook/html": "^8.6.12",
|
|
60
|
+
"@storybook/html-webpack5": "^8.6.12",
|
|
61
|
+
"@storybook/manager-api": "^8.6.12",
|
|
62
|
+
"@storybook/preview-api": "^8.6.12",
|
|
63
|
+
"@storybook/theming": "^8.6.12",
|
|
64
64
|
"add-attributes-twig-extension": "^0.1.0",
|
|
65
|
-
"autoprefixer": "^10.4.
|
|
66
|
-
"babel-loader": "^
|
|
65
|
+
"autoprefixer": "^10.4.21",
|
|
66
|
+
"babel-loader": "^10.0.0",
|
|
67
67
|
"babel-preset-minify": "^0.5.2",
|
|
68
68
|
"bem-twig-extension": "^0.1.1",
|
|
69
69
|
"breakpoint-sass": "^3.0.0",
|
|
70
70
|
"chalk": "^5.4.1",
|
|
71
71
|
"clean-webpack-plugin": "^4.0.0",
|
|
72
72
|
"concurrently": "^9.1.2",
|
|
73
|
-
"copy-webpack-plugin": "^
|
|
73
|
+
"copy-webpack-plugin": "^13.0.0",
|
|
74
74
|
"css-loader": "^7.1.1",
|
|
75
75
|
"eslint": "^8.57.0",
|
|
76
76
|
"eslint-config-prettier": "^9.1.0",
|
|
77
77
|
"eslint-plugin-import": "^2.31.0",
|
|
78
78
|
"eslint-plugin-jest": "^28.11.0",
|
|
79
|
-
"eslint-plugin-prettier": "^5.2.
|
|
79
|
+
"eslint-plugin-prettier": "^5.2.6",
|
|
80
80
|
"eslint-plugin-security": "^3.0.1",
|
|
81
|
-
"eslint-plugin-storybook": "^0.
|
|
81
|
+
"eslint-plugin-storybook": "^0.12.0",
|
|
82
82
|
"eslint-webpack-plugin": "^4.1.0",
|
|
83
83
|
"file-loader": "^6.2.0",
|
|
84
84
|
"fs-extra": "^11.3.0",
|
|
85
|
-
"glob": "^11.0.
|
|
85
|
+
"glob": "^11.0.2",
|
|
86
86
|
"graceful-fs": "^4.2.11",
|
|
87
87
|
"html-webpack-plugin": "^5.6.3",
|
|
88
88
|
"image-minimizer-webpack-plugin": "^4.1.3",
|
|
89
|
-
"imagemin": "^9.0.
|
|
89
|
+
"imagemin": "^9.0.1",
|
|
90
90
|
"imagemin-gifsicle": "^7.0.0",
|
|
91
91
|
"imagemin-jpegtran": "^8.0.0",
|
|
92
92
|
"imagemin-optipng": "^8.0.0",
|
|
@@ -103,16 +103,16 @@
|
|
|
103
103
|
"postcss-loader": "^8.1.1",
|
|
104
104
|
"postcss-scss": "^4.0.9",
|
|
105
105
|
"ramda": "^0.30.1",
|
|
106
|
-
"react": "^19.
|
|
107
|
-
"react-dom": "^19.
|
|
106
|
+
"react": "^19.1.0",
|
|
107
|
+
"react-dom": "^19.1.0",
|
|
108
108
|
"regenerator-runtime": "^0.14.1",
|
|
109
|
-
"sass": "^1.
|
|
110
|
-
"sass-loader": "^16.0.
|
|
109
|
+
"sass": "^1.87.0",
|
|
110
|
+
"sass-loader": "^16.0.5",
|
|
111
111
|
"storybook": "^8.4.7",
|
|
112
|
-
"style-dictionary": "^4.
|
|
113
|
-
"stylelint": "^16.
|
|
112
|
+
"style-dictionary": "^4.4.0",
|
|
113
|
+
"stylelint": "^16.19.1",
|
|
114
114
|
"stylelint-config-standard-scss": "^14.0.0",
|
|
115
|
-
"stylelint-prettier": "^5.0.
|
|
115
|
+
"stylelint-prettier": "^5.0.3",
|
|
116
116
|
"stylelint-selector-bem-pattern": "^4.0.1",
|
|
117
117
|
"stylelint-webpack-plugin": "^5.0.1",
|
|
118
118
|
"svg-sprite-loader": "^6.0.11",
|
|
@@ -120,22 +120,22 @@
|
|
|
120
120
|
"twig-drupal-filters": "^3.2.0",
|
|
121
121
|
"twig-testing-library": "^1.2.0",
|
|
122
122
|
"twigjs-loader": "^1.0.3",
|
|
123
|
-
"webpack": "^5.
|
|
123
|
+
"webpack": "^5.99.1",
|
|
124
124
|
"webpack-cli": "^6.0.1",
|
|
125
125
|
"webpack-merge": "^6.0.1",
|
|
126
|
-
"yaml": "^2.7.
|
|
126
|
+
"yaml": "^2.7.1"
|
|
127
127
|
},
|
|
128
128
|
"devDependencies": {
|
|
129
|
-
"@commitlint/cli": "^19.
|
|
130
|
-
"@commitlint/config-conventional": "^19.
|
|
129
|
+
"@commitlint/cli": "^19.8.0",
|
|
130
|
+
"@commitlint/config-conventional": "^19.8.0",
|
|
131
131
|
"@semantic-release/changelog": "^6.0.2",
|
|
132
132
|
"@semantic-release/commit-analyzer": "^13.0.1",
|
|
133
133
|
"@semantic-release/git": "^10.0.1",
|
|
134
|
-
"@semantic-release/github": "^11.0.
|
|
134
|
+
"@semantic-release/github": "^11.0.2",
|
|
135
135
|
"@semantic-release/release-notes-generator": "^14.0.3",
|
|
136
136
|
"husky": "^9.1.7",
|
|
137
|
-
"lint-staged": "^15.
|
|
138
|
-
"semantic-release": "^24.2.
|
|
137
|
+
"lint-staged": "^15.5.1",
|
|
138
|
+
"semantic-release": "^24.2.3"
|
|
139
139
|
},
|
|
140
140
|
"overrides": {
|
|
141
141
|
"graceful-fs": "^4.2.11"
|