design-comuni-plone-theme 12.6.5 → 12.6.7
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/.github/workflows/check_publiccode.yml +1 -1
- package/.github/workflows/main.yml +1 -1
- package/.github/workflows/npm.yml +2 -2
- package/.github/workflows/prs.yml +4 -4
- package/.github/workflows/release.yml +4 -4
- package/.github/workflows/unit.yml +2 -2
- package/.yarn/cache/{volto-form-block-npm-3.13.1-9bd9750b11-0019794e60.zip → volto-form-block-npm-3.13.3-2f0cd40c78-d9e2ea552d.zip} +0 -0
- package/.yarn/install-state.gz +0 -0
- package/CHANGELOG.md +32 -0
- package/Makefile +1 -1
- package/RELEASE.md +9 -0
- package/package.json +3 -3
- package/publiccode.yml +2 -2
- package/src/customizations/volto/components/manage/UniversalLink/UniversalLink.jsx +1 -0
- package/src/customizations/volto-form-block/components/Field.jsx +2 -2
- package/src/customizations/volto-form-block/components/Sidebar.jsx +16 -3
- package/src/customizations/volto-form-block/fieldSchema.js +6 -4
- package/src/theme/ItaliaTheme/Blocks/_cardWithImage.scss +5 -0
- package/src/theme/ItaliaTheme/Blocks/_form.scss +4 -0
- package/src/theme/bootstrap-override/bootstrap-italia/_type.scss +6 -0
- package/.github/workflows/withnewsletter.yml +0 -47
|
@@ -16,7 +16,7 @@ jobs:
|
|
|
16
16
|
|
|
17
17
|
- uses: actions/setup-node@v4
|
|
18
18
|
with:
|
|
19
|
-
node-version: '
|
|
19
|
+
node-version: '20.x'
|
|
20
20
|
registry-url: 'https://registry.npmjs.org'
|
|
21
21
|
|
|
22
22
|
- run: npm install -g npm
|
|
@@ -36,7 +36,7 @@ jobs:
|
|
|
36
36
|
run: |
|
|
37
37
|
curl --fail --request POST \
|
|
38
38
|
--form token=${{ secrets.TOKEN }} \
|
|
39
|
-
--form ref=
|
|
39
|
+
--form ref=main \
|
|
40
40
|
--form "variables[ADDON_NAME]=design-comuni-plone-theme" \
|
|
41
41
|
--form "variables[ADDON_TAG]=${{ steps.get_version.outputs.VERSION }}" \
|
|
42
42
|
"https://gitlab.com/api/v4/projects/${{ secrets.PROJECT_ID }}/trigger/pipeline"
|
|
@@ -6,16 +6,16 @@ jobs:
|
|
|
6
6
|
build_pr:
|
|
7
7
|
runs-on: ubuntu-latest
|
|
8
8
|
steps:
|
|
9
|
-
- uses: actions/checkout@
|
|
9
|
+
- uses: actions/checkout@v4
|
|
10
10
|
|
|
11
11
|
# - name: Set up QEMU
|
|
12
12
|
# uses: docker/setup-qemu-action@v2
|
|
13
13
|
|
|
14
14
|
- name: Set up Docker Buildx
|
|
15
|
-
uses: docker/setup-buildx-action@
|
|
15
|
+
uses: docker/setup-buildx-action@v3
|
|
16
16
|
|
|
17
17
|
- name: Login to DockerHub
|
|
18
|
-
uses: docker/login-action@
|
|
18
|
+
uses: docker/login-action@v3
|
|
19
19
|
with:
|
|
20
20
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
21
21
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
@@ -34,4 +34,4 @@ jobs:
|
|
|
34
34
|
build-args: |
|
|
35
35
|
ADDON_NAME=design-comuni-plone-theme
|
|
36
36
|
ADDON_PATH=design-comuni-plone-theme
|
|
37
|
-
VOLTO_VERSION=17.
|
|
37
|
+
VOLTO_VERSION=17.22.3
|
|
@@ -7,13 +7,13 @@ jobs:
|
|
|
7
7
|
build_main:
|
|
8
8
|
runs-on: ubuntu-latest
|
|
9
9
|
steps:
|
|
10
|
-
- uses: actions/checkout@
|
|
10
|
+
- uses: actions/checkout@v4
|
|
11
11
|
|
|
12
12
|
- name: Set up Docker Buildx
|
|
13
|
-
uses: docker/setup-buildx-action@
|
|
13
|
+
uses: docker/setup-buildx-action@v3
|
|
14
14
|
|
|
15
15
|
- name: Login to DockerHub
|
|
16
|
-
uses: docker/login-action@
|
|
16
|
+
uses: docker/login-action@v3
|
|
17
17
|
with:
|
|
18
18
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
19
19
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
@@ -35,4 +35,4 @@ jobs:
|
|
|
35
35
|
build-args: |
|
|
36
36
|
ADDON_NAME=design-comuni-plone-theme
|
|
37
37
|
ADDON_PATH=design-comuni-plone-theme
|
|
38
|
-
VOLTO_VERSION=17.
|
|
38
|
+
VOLTO_VERSION=17.22.3
|
|
Binary file
|
package/.yarn/install-state.gz
CHANGED
|
Binary file
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,37 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [12.6.7](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v12.6.6...v12.6.7) (2025-11-07)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* values saved in volto form restored to 'required' and 'unique' key to avoid breaking existing forms ([#1037](https://github.com/RedTurtle/design-comuni-plone-theme/issues/1037)) ([6395e9a](https://github.com/RedTurtle/design-comuni-plone-theme/commit/6395e9a93cb73a2251f8c11a070b420412188d6a))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Maintenance
|
|
12
|
+
|
|
13
|
+
* updated ci and volto peer deps ([c28f986](https://github.com/RedTurtle/design-comuni-plone-theme/commit/c28f986d1597e7f27c833feb004f06101d366c22))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Documentation
|
|
17
|
+
|
|
18
|
+
* updated publiccode ([13c7147](https://github.com/RedTurtle/design-comuni-plone-theme/commit/13c7147e6be63d92ad1595b757a2a087ca142cfa))
|
|
19
|
+
|
|
20
|
+
## [12.6.6](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v12.6.5...v12.6.6) (2025-11-06)
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### Bug Fixes
|
|
24
|
+
|
|
25
|
+
* added unique field name to form block subfields ([#1036](https://github.com/RedTurtle/design-comuni-plone-theme/issues/1036)) ([a812269](https://github.com/RedTurtle/design-comuni-plone-theme/commit/a8122694d7596b52a09783ec2c009d40818f7329))
|
|
26
|
+
* color-contrast on p color in dark blockquote ([#1035](https://github.com/RedTurtle/design-comuni-plone-theme/issues/1035)) ([bae3c83](https://github.com/RedTurtle/design-comuni-plone-theme/commit/bae3c8381e34896d9dcb750944d0bb9cf8bd99da))
|
|
27
|
+
* external link card with image ([#1032](https://github.com/RedTurtle/design-comuni-plone-theme/issues/1032)) ([ed246b9](https://github.com/RedTurtle/design-comuni-plone-theme/commit/ed246b9cda61736bc96ea8b01b31adddf0b4c749))
|
|
28
|
+
* style for text wrapping in form block legend ([#1034](https://github.com/RedTurtle/design-comuni-plone-theme/issues/1034)) ([54bd721](https://github.com/RedTurtle/design-comuni-plone-theme/commit/54bd7211b5463184243a0bedb9ba0c098a2d6aa4))
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
### Documentation
|
|
32
|
+
|
|
33
|
+
* updated publiccode and release log ([a5c1ffe](https://github.com/RedTurtle/design-comuni-plone-theme/commit/a5c1ffe1b39d89076fa253a15a600c255dac26a9))
|
|
34
|
+
|
|
3
35
|
## [12.6.5](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v12.6.4...v12.6.5) (2025-11-04)
|
|
4
36
|
|
|
5
37
|
|
package/Makefile
CHANGED
|
@@ -27,7 +27,7 @@ CURRENT_DIR:=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
|
|
|
27
27
|
# ADDON ?= "design-comuni-plone-theme"
|
|
28
28
|
|
|
29
29
|
PLONE_VERSION=6
|
|
30
|
-
VOLTO_VERSION=17.
|
|
30
|
+
VOLTO_VERSION=17.22.3
|
|
31
31
|
|
|
32
32
|
ADDON_NAME='design-comuni-plone-theme'
|
|
33
33
|
ADDON_PATH='design-comuni-plone-theme'
|
package/RELEASE.md
CHANGED
|
@@ -41,6 +41,15 @@
|
|
|
41
41
|
- ...
|
|
42
42
|
-->
|
|
43
43
|
|
|
44
|
+
## Versione 12.6.6 (06/11/2025)
|
|
45
|
+
|
|
46
|
+
### Fix
|
|
47
|
+
|
|
48
|
+
- I campi "Obbligatorio" e "Univoco" per l'impostazione dei campi nel Blocco Form funzionano ora correttamente.
|
|
49
|
+
- Rimossa la visualizzazione dell'icona per i link esterni sulle immagine per il blocco card con immagine.
|
|
50
|
+
- L'etichetta dei campi nel blocco Form va a capo se troppo lunga.
|
|
51
|
+
- Lo stile di testo "blockquote" dell'editor in versione scura ha sempre un testo a contrasto garantendone la leggibilità.
|
|
52
|
+
|
|
44
53
|
## Versione 12.6.5 (04/11/2025)
|
|
45
54
|
|
|
46
55
|
### Fix
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "design-comuni-plone-theme",
|
|
3
3
|
"description": "Volto Theme for Italia design guidelines",
|
|
4
4
|
"license": "GPL-v3",
|
|
5
|
-
"version": "12.6.
|
|
5
|
+
"version": "12.6.7",
|
|
6
6
|
"main": "src/index.js",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
@@ -152,7 +152,7 @@
|
|
|
152
152
|
"volto-dropdownmenu": "4.1.3",
|
|
153
153
|
"volto-editablefooter": "5.1.7",
|
|
154
154
|
"volto-feedback": "0.7.2",
|
|
155
|
-
"volto-form-block": "3.13.
|
|
155
|
+
"volto-form-block": "3.13.3",
|
|
156
156
|
"volto-gdpr-privacy": "2.2.12",
|
|
157
157
|
"volto-google-analytics": "2.0.0",
|
|
158
158
|
"volto-multilingual-widget": "3.2.1",
|
|
@@ -202,7 +202,7 @@
|
|
|
202
202
|
"stylelint-prettier": "4.0.2"
|
|
203
203
|
},
|
|
204
204
|
"peerDependencies": {
|
|
205
|
-
"@plone/volto": "17.
|
|
205
|
+
"@plone/volto": "17.22.3"
|
|
206
206
|
},
|
|
207
207
|
"packageManager": "yarn@3.2.3"
|
|
208
208
|
}
|
package/publiccode.yml
CHANGED
|
@@ -227,9 +227,9 @@ maintenance:
|
|
|
227
227
|
name: io-Comune - Il sito AgID per Comuni ed Enti Pubblici
|
|
228
228
|
platforms:
|
|
229
229
|
- web
|
|
230
|
-
releaseDate: '2025-11-
|
|
230
|
+
releaseDate: '2025-11-07'
|
|
231
231
|
softwareType: standalone/web
|
|
232
|
-
softwareVersion: 12.6.
|
|
232
|
+
softwareVersion: 12.6.7
|
|
233
233
|
url: 'https://github.com/italia/design-comuni-plone-theme'
|
|
234
234
|
usedBy:
|
|
235
235
|
- ASP Comuni Modenesi Area Nord
|
|
@@ -58,8 +58,9 @@ const Field = ({
|
|
|
58
58
|
label,
|
|
59
59
|
description,
|
|
60
60
|
name,
|
|
61
|
-
field_type,
|
|
62
61
|
required,
|
|
62
|
+
field_type,
|
|
63
|
+
field_id,
|
|
63
64
|
input_values,
|
|
64
65
|
value,
|
|
65
66
|
onChange,
|
|
@@ -100,7 +101,6 @@ const Field = ({
|
|
|
100
101
|
static_text_value = fromHtml(value);
|
|
101
102
|
} //per retrocompatibilità con il vecchio widget che usava draftjs
|
|
102
103
|
}
|
|
103
|
-
|
|
104
104
|
return (
|
|
105
105
|
<div className="field">
|
|
106
106
|
{field_type === 'text' && (
|
|
@@ -102,8 +102,14 @@ const Sidebar = ({
|
|
|
102
102
|
<Accordion fluid styled className="form">
|
|
103
103
|
{data.subblocks &&
|
|
104
104
|
data.subblocks.map((subblock, index) => {
|
|
105
|
+
const subblockData = {
|
|
106
|
+
...subblock,
|
|
107
|
+
[`required-${subblock.field_id}`]: subblock.required,
|
|
108
|
+
[`unique-${subblock.field_id}`]: subblock.unique,
|
|
109
|
+
};
|
|
110
|
+
|
|
105
111
|
return (
|
|
106
|
-
<div key={'subblock' +
|
|
112
|
+
<div key={'subblock' + subblock.id}>
|
|
107
113
|
<Accordion.Title
|
|
108
114
|
active={selected === index}
|
|
109
115
|
index={index}
|
|
@@ -139,17 +145,24 @@ const Sidebar = ({
|
|
|
139
145
|
<BlockDataForm
|
|
140
146
|
schema={FieldSchema(subblock)}
|
|
141
147
|
onChangeField={(name, value) => {
|
|
148
|
+
let key = name;
|
|
142
149
|
const update_values = {};
|
|
143
150
|
if (subblock.field_type === 'static_text') {
|
|
144
151
|
update_values.required = false;
|
|
145
152
|
}
|
|
153
|
+
if (
|
|
154
|
+
name === `required-${subblock.field_id}` ||
|
|
155
|
+
name === `unique-${subblock.field_id}`
|
|
156
|
+
) {
|
|
157
|
+
key = name.split('-')[0];
|
|
158
|
+
}
|
|
146
159
|
onChangeSubBlock(index, {
|
|
147
160
|
...subblock,
|
|
148
|
-
[
|
|
161
|
+
[key]: value,
|
|
149
162
|
...update_values,
|
|
150
163
|
});
|
|
151
164
|
}}
|
|
152
|
-
formData={
|
|
165
|
+
formData={subblockData}
|
|
153
166
|
/>
|
|
154
167
|
</Accordion.Content>
|
|
155
168
|
</div>
|
|
@@ -456,8 +456,10 @@ export default (props) => {
|
|
|
456
456
|
props?.field_type !== 'static_text'
|
|
457
457
|
? ['autocomplete']
|
|
458
458
|
: []),
|
|
459
|
-
...(props?.field_type === 'static_text'
|
|
460
|
-
|
|
459
|
+
...(props?.field_type === 'static_text'
|
|
460
|
+
? []
|
|
461
|
+
: [`required-${props?.field_id}`]),
|
|
462
|
+
`unique-${props?.field_id}`,
|
|
461
463
|
'visibility_conditions',
|
|
462
464
|
],
|
|
463
465
|
},
|
|
@@ -501,13 +503,13 @@ export default (props) => {
|
|
|
501
503
|
),
|
|
502
504
|
choices: autocompleteValues,
|
|
503
505
|
},
|
|
504
|
-
required: {
|
|
506
|
+
[`required-${props?.field_id}`]: {
|
|
505
507
|
title: intl.formatMessage(messages.field_required),
|
|
506
508
|
type: 'boolean',
|
|
507
509
|
default: false,
|
|
508
510
|
description: intl.formatMessage(messages.field_required_info_text),
|
|
509
511
|
},
|
|
510
|
-
unique: {
|
|
512
|
+
[`unique-${props?.field_id}`]: {
|
|
511
513
|
title: intl.formatMessage(messages.field_unique_title),
|
|
512
514
|
description: intl.formatMessage(messages.field_unique_description),
|
|
513
515
|
type: 'boolean',
|
|
@@ -7,4 +7,10 @@ body.public-ui {
|
|
|
7
7
|
font-size: 18px;
|
|
8
8
|
line-height: 1.555;
|
|
9
9
|
}
|
|
10
|
+
|
|
11
|
+
blockquote.blockquote-card.dark p {
|
|
12
|
+
// unless there's a specific customization, .blockquote-card.dark is always bg $primary
|
|
13
|
+
// this ensures the text is always readable
|
|
14
|
+
color: color-contrast($primary);
|
|
15
|
+
}
|
|
10
16
|
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
name: Docker build for latest main version with newsletter add-on
|
|
2
|
-
on:
|
|
3
|
-
push:
|
|
4
|
-
branches: [main]
|
|
5
|
-
|
|
6
|
-
jobs:
|
|
7
|
-
build_develop:
|
|
8
|
-
runs-on: ubuntu-latest
|
|
9
|
-
steps:
|
|
10
|
-
- uses: actions/checkout@v4
|
|
11
|
-
|
|
12
|
-
- name: Set up Docker Buildx
|
|
13
|
-
uses: docker/setup-buildx-action@v3
|
|
14
|
-
|
|
15
|
-
- name: Login to DockerHub
|
|
16
|
-
uses: docker/login-action@v3
|
|
17
|
-
with:
|
|
18
|
-
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
19
|
-
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
20
|
-
|
|
21
|
-
- name: Build and push Docker images
|
|
22
|
-
uses: docker/build-push-action@v6
|
|
23
|
-
with:
|
|
24
|
-
context: .
|
|
25
|
-
file: ./dockerfiles/Dockerfile.withnewsletter
|
|
26
|
-
tags: redturtletech/io-comune-base:withnewsletter
|
|
27
|
-
pull: true
|
|
28
|
-
push: true
|
|
29
|
-
cache-from: type=registry,ref=redturtletech/io-comune-base:withnewsletter
|
|
30
|
-
cache-to: type=inline
|
|
31
|
-
build-args: |
|
|
32
|
-
ADDON_NAME=design-comuni-plone-theme
|
|
33
|
-
ADDON_PATH=design-comuni-plone-theme
|
|
34
|
-
VOLTO_VERSION=17.20.4
|
|
35
|
-
|
|
36
|
-
# - name: Deploy to rancher
|
|
37
|
-
# uses: redturtle/rancher-deploy-action@v0.2.0
|
|
38
|
-
# with:
|
|
39
|
-
# host: ${{ secrets.RANCHER_HOST }}
|
|
40
|
-
# api-username: ${{ secrets.RANCHER_API_USERNAME }}
|
|
41
|
-
# api-password: ${{ secrets.RANCHER_API_PASSWORD }}
|
|
42
|
-
# cluster-id: ${{ secrets.RANCHER_CLUSTER_ID }}
|
|
43
|
-
# project-id: ${{ secrets.RANCHER_PROJECT_ID }}
|
|
44
|
-
# namespace: ${{ secrets.RANCHER_NAMESPACE_DEVELOP }}
|
|
45
|
-
# workload: ${{ secrets.RANCHER_WORKLOAD_DEVELOP }}
|
|
46
|
-
# image: redturtletech/io-comune-base:withnewsletter
|
|
47
|
-
# slack-hook-url: ${{ secrets.RANCHER_SLACK_HOOK_URL }}
|