design-comuni-plone-theme 12.6.6 → 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.2-7b659e4dc8-2dfcac2574.zip → volto-form-block-npm-3.13.3-2f0cd40c78-d9e2ea552d.zip} +0 -0
- package/.yarn/install-state.gz +0 -0
- package/CHANGELOG.md +17 -0
- package/Makefile +1 -1
- package/package.json +3 -3
- package/publiccode.yml +2 -2
- package/src/customizations/volto-form-block/components/Field.jsx +1 -2
- package/src/customizations/volto-form-block/components/Sidebar.jsx +15 -2
- 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,22 @@
|
|
|
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
|
+
|
|
3
20
|
## [12.6.6](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v12.6.5...v12.6.6) (2025-11-06)
|
|
4
21
|
|
|
5
22
|
|
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/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,6 +58,7 @@ const Field = ({
|
|
|
58
58
|
label,
|
|
59
59
|
description,
|
|
60
60
|
name,
|
|
61
|
+
required,
|
|
61
62
|
field_type,
|
|
62
63
|
field_id,
|
|
63
64
|
input_values,
|
|
@@ -71,9 +72,7 @@ const Field = ({
|
|
|
71
72
|
id,
|
|
72
73
|
reactSelect,
|
|
73
74
|
autocomplete,
|
|
74
|
-
...props
|
|
75
75
|
}) => {
|
|
76
|
-
const required = props[`required-${field_id}`];
|
|
77
76
|
const intl = useIntl();
|
|
78
77
|
const Select = reactSelect.default;
|
|
79
78
|
|
|
@@ -102,6 +102,12 @@ 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
112
|
<div key={'subblock' + subblock.id}>
|
|
107
113
|
<Accordion.Title
|
|
@@ -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>
|
|
@@ -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 }}
|