@kitconcept/volto-light-theme 7.6.1 → 7.6.3
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/.changelog.draft +4 -4
- package/CHANGELOG.md +19 -0
- package/package.json +3 -3
- package/src/components/Header/Header.tsx +1 -1
- package/src/internalChecks.test.ts +94 -0
- package/src/theme/_header.scss +4 -0
- package/src/theme/blocks/_accordion.scss +1 -0
- package/src/theme/notfound.scss +1 -0
- package/src/theme/sticky-menu.scss +6 -3
package/.changelog.draft
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
## 7.6.
|
|
1
|
+
## 7.6.3 (2025-12-01)
|
|
2
2
|
|
|
3
|
-
###
|
|
3
|
+
### Bugfix
|
|
4
4
|
|
|
5
|
-
-
|
|
6
|
-
|
|
5
|
+
- Fix css of unauthorized Page @iRohitSingh [#736](https://github.com/kitconcept/volto-light-theme/pull/736)
|
|
6
|
+
- Hide complementary logo in mobile devices @Tishasoumya-02
|
|
7
7
|
|
|
8
8
|
|
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,25 @@
|
|
|
8
8
|
|
|
9
9
|
<!-- towncrier release notes start -->
|
|
10
10
|
|
|
11
|
+
## 7.6.3 (2025-12-01)
|
|
12
|
+
|
|
13
|
+
### Bugfix
|
|
14
|
+
|
|
15
|
+
- Fix css of unauthorized Page @iRohitSingh [#736](https://github.com/kitconcept/volto-light-theme/pull/736)
|
|
16
|
+
- Hide complementary logo in mobile devices @Tishasoumya-02
|
|
17
|
+
|
|
18
|
+
## 7.6.2 (2025-11-17)
|
|
19
|
+
|
|
20
|
+
### Bugfix
|
|
21
|
+
|
|
22
|
+
- Fixed Accordion arrow/buttons no longer shrink when the title text becomes too long. @jnptk
|
|
23
|
+
- Fixes text in the sticky menu if the text was long enough to wrap. @jnptk
|
|
24
|
+
- Identify intranet header with a className in `header header-intranet` div. @sneridagh
|
|
25
|
+
|
|
26
|
+
### Internal
|
|
27
|
+
|
|
28
|
+
- Use `volto-carousel-block` latest version. @sneridagh
|
|
29
|
+
|
|
11
30
|
## 7.6.1 (2025-11-05)
|
|
12
31
|
|
|
13
32
|
### Internal
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kitconcept/volto-light-theme",
|
|
3
|
-
"version": "7.6.
|
|
3
|
+
"version": "7.6.3",
|
|
4
4
|
"description": "Volto Light Theme by kitconcept",
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"types": "src/index.ts",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"@kitconcept/volto-banner-block": "^1.1.0",
|
|
65
65
|
"@kitconcept/volto-bm3-compat": "^1.0.0-alpha.1",
|
|
66
66
|
"@kitconcept/volto-button-block": "^4.0.0",
|
|
67
|
-
"@kitconcept/volto-carousel-block": "^2.0.0
|
|
67
|
+
"@kitconcept/volto-carousel-block": "^2.0.0",
|
|
68
68
|
"@kitconcept/volto-dsgvo-banner": "^3.0.1",
|
|
69
69
|
"@kitconcept/volto-heading-block": "^2.5.0",
|
|
70
70
|
"@kitconcept/volto-highlight-block": "^4.5.0",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"@kitconcept/volto-logos-block": "^3.0.0",
|
|
73
73
|
"@kitconcept/volto-separator-block": "^4.2.1",
|
|
74
74
|
"@kitconcept/volto-slider-block": "^6.4.1",
|
|
75
|
-
"@plonegovbr/volto-social-media": "^2.0.0
|
|
75
|
+
"@plonegovbr/volto-social-media": "^2.0.0",
|
|
76
76
|
"classnames": "^2.2.6",
|
|
77
77
|
"lodash": "4.17.21",
|
|
78
78
|
"react": "18.2.0",
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import fs from 'node:fs';
|
|
2
|
+
import path from 'node:path';
|
|
3
|
+
import { fileURLToPath } from 'node:url';
|
|
4
|
+
import { describe, expect, it } from 'vitest';
|
|
5
|
+
|
|
6
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
7
|
+
const __dirname = path.dirname(__filename);
|
|
8
|
+
|
|
9
|
+
const recommendedAddonsPath = path.resolve(
|
|
10
|
+
__dirname,
|
|
11
|
+
'../../../..',
|
|
12
|
+
'recommendedAddons.json',
|
|
13
|
+
);
|
|
14
|
+
const mrsDeveloperPath = path.resolve(
|
|
15
|
+
__dirname,
|
|
16
|
+
'../../..',
|
|
17
|
+
'mrs.developer.json',
|
|
18
|
+
);
|
|
19
|
+
|
|
20
|
+
const readJSON = <T>(filePath: string): T =>
|
|
21
|
+
JSON.parse(fs.readFileSync(filePath, 'utf-8'));
|
|
22
|
+
|
|
23
|
+
const normalizeVersion = (version: unknown) =>
|
|
24
|
+
typeof version === 'string' ? version.replace(/^[\\^~]/, '') : version;
|
|
25
|
+
|
|
26
|
+
const excludedPackages = new Set(['@eeacms/volto-accordion-block']);
|
|
27
|
+
|
|
28
|
+
describe('internal checks', () => {
|
|
29
|
+
it('keeps recommended add-ons in sync with mrs.developer.json', () => {
|
|
30
|
+
const recommendedAddons = readJSON<Record<string, string>>(
|
|
31
|
+
recommendedAddonsPath,
|
|
32
|
+
);
|
|
33
|
+
const mrsDeveloper = readJSON<Record<string, unknown>>(mrsDeveloperPath);
|
|
34
|
+
|
|
35
|
+
const mrsByPackage = Object.entries(mrsDeveloper).reduce<
|
|
36
|
+
Record<string, Record<string, unknown> & { configKey: string }>
|
|
37
|
+
>((acc, [configKey, configValue]) => {
|
|
38
|
+
if (
|
|
39
|
+
configValue &&
|
|
40
|
+
typeof configValue === 'object' &&
|
|
41
|
+
'package' in configValue
|
|
42
|
+
) {
|
|
43
|
+
acc[String((configValue as Record<string, unknown>).package)] = {
|
|
44
|
+
...(configValue as Record<string, unknown>),
|
|
45
|
+
configKey,
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
return acc;
|
|
49
|
+
}, {});
|
|
50
|
+
|
|
51
|
+
const issues: string[] = [];
|
|
52
|
+
|
|
53
|
+
Object.entries(recommendedAddons).forEach(
|
|
54
|
+
([packageName, recommendedVersion]) => {
|
|
55
|
+
if (excludedPackages.has(packageName)) return;
|
|
56
|
+
|
|
57
|
+
const mrsEntry = mrsByPackage[packageName];
|
|
58
|
+
|
|
59
|
+
if (!mrsEntry) {
|
|
60
|
+
issues.push(
|
|
61
|
+
`${packageName} is listed in recommendedAddons.json but missing from frontend/mrs.developer.json.`,
|
|
62
|
+
);
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
const mrsVersion =
|
|
67
|
+
(mrsEntry.tag as string | undefined) ||
|
|
68
|
+
(mrsEntry.branch as string | undefined) ||
|
|
69
|
+
(mrsEntry.version as string | undefined);
|
|
70
|
+
|
|
71
|
+
if (!mrsVersion) {
|
|
72
|
+
issues.push(
|
|
73
|
+
`${packageName} (${mrsEntry.configKey}) has no tag, branch, or version specified in frontend/mrs.developer.json.`,
|
|
74
|
+
);
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
const normalizedRecommended = normalizeVersion(recommendedVersion);
|
|
79
|
+
const normalizedMrsVersion = normalizeVersion(mrsVersion);
|
|
80
|
+
|
|
81
|
+
if (
|
|
82
|
+
recommendedVersion !== mrsVersion &&
|
|
83
|
+
normalizedRecommended !== normalizedMrsVersion
|
|
84
|
+
) {
|
|
85
|
+
issues.push(
|
|
86
|
+
`${packageName} differs: recommendedAddons.json=${recommendedVersion} vs frontend/mrs.developer.json(${mrsEntry.configKey})=${mrsVersion}.`,
|
|
87
|
+
);
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
);
|
|
91
|
+
|
|
92
|
+
expect(issues).toEqual([]);
|
|
93
|
+
});
|
|
94
|
+
});
|
package/src/theme/_header.scss
CHANGED
package/src/theme/notfound.scss
CHANGED
|
@@ -21,7 +21,9 @@ body.cms-ui .sticky-menu {
|
|
|
21
21
|
flex-direction: column;
|
|
22
22
|
padding: 0;
|
|
23
23
|
margin: 0;
|
|
24
|
+
gap: 1px;
|
|
24
25
|
list-style: none;
|
|
26
|
+
text-align: center;
|
|
25
27
|
|
|
26
28
|
li a {
|
|
27
29
|
display: flex;
|
|
@@ -34,16 +36,17 @@ body.cms-ui .sticky-menu {
|
|
|
34
36
|
font-size: 10px;
|
|
35
37
|
font-style: normal;
|
|
36
38
|
font-weight: 700;
|
|
37
|
-
line-height:
|
|
39
|
+
line-height: 12px;
|
|
38
40
|
text-transform: capitalize;
|
|
39
41
|
}
|
|
40
42
|
|
|
41
43
|
li {
|
|
42
44
|
display: flex;
|
|
43
|
-
height:
|
|
45
|
+
min-height: 97px;
|
|
44
46
|
flex-direction: column;
|
|
45
47
|
align-items: center;
|
|
46
48
|
justify-content: center;
|
|
49
|
+
padding: 5px 10px;
|
|
47
50
|
margin-bottom: 2px;
|
|
48
51
|
background: var(--sticky-menu-color, #555);
|
|
49
52
|
color: var(--sticky-menu-foreground-color, #fff);
|
|
@@ -51,7 +54,7 @@ body.cms-ui .sticky-menu {
|
|
|
51
54
|
font-size: 10px;
|
|
52
55
|
font-style: normal;
|
|
53
56
|
font-weight: 700;
|
|
54
|
-
line-height:
|
|
57
|
+
line-height: 12px;
|
|
55
58
|
text-transform: capitalize;
|
|
56
59
|
}
|
|
57
60
|
|