@plone/volto 16.3.0 → 16.4.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.
Files changed (41) hide show
  1. package/.changelog.draft +15 -19
  2. package/.storybook/static/previewImage.svg +48 -0
  3. package/.yarn/install-state.gz +0 -0
  4. package/CHANGELOG.md +34 -1
  5. package/addon-registry.js +18 -4
  6. package/cypress/support/commands.js +9 -8
  7. package/docker-compose.yml +2 -2
  8. package/locales/ca/LC_MESSAGES/volto.po +2 -2
  9. package/locales/de/LC_MESSAGES/volto.po +169 -169
  10. package/locales/de.json +1 -1
  11. package/locales/en/LC_MESSAGES/volto.po +2 -2
  12. package/locales/en.json +1 -1
  13. package/locales/es/LC_MESSAGES/volto.po +2 -2
  14. package/locales/eu/LC_MESSAGES/volto.po +2 -2
  15. package/locales/fi/LC_MESSAGES/volto.po +4575 -0
  16. package/locales/fi.json +1 -0
  17. package/locales/fr/LC_MESSAGES/volto.po +454 -454
  18. package/locales/fr.json +1 -1
  19. package/locales/it/LC_MESSAGES/volto.po +2 -2
  20. package/locales/ja/LC_MESSAGES/volto.po +2 -2
  21. package/locales/nl/LC_MESSAGES/volto.po +2 -2
  22. package/locales/pt/LC_MESSAGES/volto.po +2 -2
  23. package/locales/pt_BR/LC_MESSAGES/volto.po +2 -2
  24. package/locales/ro/LC_MESSAGES/volto.po +2 -2
  25. package/locales/volto.pot +3 -3
  26. package/locales/zh_CN/LC_MESSAGES/volto.po +4570 -0
  27. package/locales/zh_CN.json +1 -0
  28. package/news/4051.bug +1 -0
  29. package/package.json +16 -5
  30. package/packages/volto-slate/package.json +1 -1
  31. package/packages/volto-slate/src/editor/deserialize.js +37 -24
  32. package/packages/volto-slate/src/widgets/HtmlSlateWidget.jsx +1 -1
  33. package/src/components/manage/Blocks/Block/DefaultView.jsx +1 -1
  34. package/src/components/manage/Contents/Contents.jsx +1 -1
  35. package/src/components/manage/Form/Form.jsx +10 -1
  36. package/src/components/manage/Widgets/ArrayWidget.jsx +3 -0
  37. package/src/components/manage/Widgets/RecurrenceWidget/Occurences.jsx +1 -1
  38. package/src/components/theme/Logo/Logo.stories.jsx +27 -0
  39. package/src/components/theme/SearchWidget/SearchWidget.jsx +4 -0
  40. package/theme/theme.config +3 -3
  41. package/.storybook/static/previewImage.png +0 -0
package/.changelog.draft CHANGED
@@ -1,32 +1,28 @@
1
- ## 16.3.0 (2022-12-05)
1
+ ## 16.4.0 (2022-12-12)
2
2
 
3
3
  ### Feature
4
4
 
5
- - Add towncrier support. Create RELEASING.md and move and update Releasing section from README.md into it. @sneridagh @stevepiercy [#3985](https://github.com/plone/volto/issues/3985)
6
- - Translation of roles in user and group control panel. Fix https://github.com/plone/volto/issues/4002 @wesleybl [#4002](https://github.com/plone/volto/issues/4002)
7
- - Use the component registry for `Container` component in DefaultView @sneridagh [#4032](https://github.com/plone/volto/issues/4032)
5
+ - Update Traefik version and make volume mount (docker-compose) read-only [#4067](https://github.com/plone/volto/issues/4067)
6
+ - Allow addons to provide an `eslint.extend.js` file that customizez eslint configuration @tiberiuichim [#4072](https://github.com/plone/volto/issues/4072)
8
7
 
9
8
  ### Bugfix
10
9
 
11
- - Fix GitHub release notes in new Towncrier release config @sneridagh [#3989](https://github.com/plone/volto/issues/3989)
12
- - Clear error message when canceling user add. Fix https://github.com/plone/volto/issues/4006 @wesleybl [#4006](https://github.com/plone/volto/issues/4006)
13
- - Fix subscript and supscript active at same time. @iFlameing [#4011](https://github.com/plone/volto/issues/4011)
14
- - Complete eu translation
15
- [erral] [#4015](https://github.com/plone/volto/issues/4015)
16
- - Complete es translation
17
- [erral] [#4016](https://github.com/plone/volto/issues/4016)
18
- - Add `cypress.config.js` to generator templates @sneridagh [#4021](https://github.com/plone/volto/issues/4021)
19
- - Bump Volto core packages with the current Volto version on Volto release @sneridagh [#4025](https://github.com/plone/volto/issues/4025)
10
+ - Update Chinese translation @adam139 [#4009](https://github.com/plone/volto/issues/4009)
11
+ - Reset value of search field after submit. [@MAX-786] [#4028](https://github.com/plone/volto/issues/4028)
12
+ - Don't crash the view page when dealing with unknown blocks @tiberiuichim [#4070](https://github.com/plone/volto/issues/4070)
13
+ - Bump version for plone-backend version used in Makefile @tiberiuichim [#4071](https://github.com/plone/volto/issues/4071)
14
+ - Properly handle whitespace in HTML (richtext) slate-based widget @tiberiuichim [#4082](https://github.com/plone/volto/issues/4082)
15
+ - Add Finnish translation (contributed by @rioksane)
16
+ [erral] [#4084](https://github.com/plone/volto/issues/4084)
17
+ - Fix typo in english translation and add missing french translation
18
+ [mpeeters, jchandelle] [#4085](https://github.com/plone/volto/issues/4085)
20
19
 
21
20
  ### Internal
22
21
 
23
- - Remove unused dangling root appExtras from configuration registry @sneridagh [#4024](https://github.com/plone/volto/issues/4024)
22
+ - Make Volto compatible with pnpm as package manager [#4023](https://github.com/plone/volto/issues/4023)
24
23
 
25
24
  ### Documentation
26
25
 
27
- - Rewrite "Upgraded core to use Cypress 11" section. @stevepiercy [#3979](https://github.com/plone/volto/issues/3979)
28
- - Include `CHANGELOG.md` at the correct path, depending on context of entire Plone 6 documentation or only Volto documentation. @stevepiercy [#3992](https://github.com/plone/volto/issues/3992)
29
- - Close the open Glossary list. @stevepiercy [#3995](https://github.com/plone/volto/issues/3995)
30
- - Added docs for proper usage of draftjs for richtext widgets. @pnicolli [#4001](https://github.com/plone/volto/issues/4001)
31
- - Document how to change the base font and the font for headings. Describe how to host the font. @ksuess [#4013](https://github.com/plone/volto/issues/4013)
26
+ - Add content for user-manual of Volto, Plone 6 frontend. [@MAX-786] [#3827](https://github.com/plone/volto/issues/3827)
27
+ - Remove duplicate `H1`-level page title, and inherit from Volto's `CHANGELOG.md`. @stevepiercy [#4048](https://github.com/plone/volto/issues/4048)
32
28
 
@@ -0,0 +1,48 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!-- Generator: Adobe Illustrator 13.0.1, SVG Export Plug-In . SVG Version: 6.00 Build 14948) -->
3
+ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
4
+ <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
5
+ width="158.253px" height="40.686px" viewBox="0 0 158.253 40.686" enable-background="new 0 0 158.253 40.686"
6
+ xml:space="preserve">
7
+ <g>
8
+ <path fill="#0095D3" d="M65.327,23.208h-6.589v11.388h-4.393V5.638h10.981c5.653,0,9.271,3.742,9.271,8.785
9
+ S70.979,23.208,65.327,23.208z M65.082,9.583h-6.345v9.639h6.345c3.05,0,5.124-1.749,5.124-4.799
10
+ C70.206,11.372,68.132,9.583,65.082,9.583z"/>
11
+ <path fill="#0095D3" d="M83.969,34.596c-3.904,0-5.652-2.644-5.652-5.693V5.638h4.148v23.021c0,1.587,0.567,2.399,2.235,2.399h1.83
12
+ v3.538H83.969z"/>
13
+ <path fill="#0095D3" d="M104.762,32.399c-1.344,1.384-3.377,2.44-6.184,2.44c-2.805,0-4.799-1.058-6.141-2.44
14
+ c-1.951-2.032-2.439-4.637-2.439-8.134c0-3.457,0.488-6.061,2.439-8.094c1.342-1.383,3.336-2.44,6.141-2.44
15
+ c2.807,0,4.84,1.059,6.184,2.44c1.951,2.033,2.439,4.637,2.439,8.094C107.203,27.763,106.713,30.366,104.762,32.399z
16
+ M101.629,18.613c-0.773-0.773-1.83-1.181-3.051-1.181c-1.219,0-2.236,0.406-3.01,1.181c-1.26,1.261-1.422,3.416-1.422,5.652
17
+ s0.162,4.393,1.422,5.653c0.773,0.771,1.791,1.22,3.01,1.22c1.221,0,2.277-0.447,3.051-1.22c1.262-1.262,1.424-3.417,1.424-5.653
18
+ S102.891,19.873,101.629,18.613z"/>
19
+ <path fill="#0095D3" d="M123.643,34.596V22.029c0-3.214-1.83-4.597-4.147-4.597s-4.271,1.423-4.271,4.597v12.566h-4.147v-20.62
20
+ h4.065v2.074c1.425-1.546,3.416-2.318,5.49-2.318c2.115,0,3.865,0.691,5.084,1.871c1.586,1.545,2.074,3.497,2.074,5.815v13.178
21
+ L123.643,34.596L123.643,34.596z"/>
22
+ <path fill="#0095D3" d="M135.772,25.486c0,3.537,1.871,5.774,5.246,5.774c2.317,0,3.539-0.649,5.004-2.115l2.643,2.481
23
+ c-2.115,2.114-4.107,3.213-7.727,3.213c-5.166,0-9.273-2.725-9.273-10.574c0-6.671,3.457-10.534,8.744-10.534
24
+ c5.531,0,8.744,4.067,8.744,9.925v1.83H135.772z M144.475,19.791c-0.65-1.545-2.113-2.604-4.066-2.604
25
+ c-1.951,0-3.457,1.059-4.107,2.604c-0.406,0.936-0.488,1.546-0.529,2.807h9.273C145.003,21.337,144.883,20.726,144.475,19.791z"/>
26
+ <circle fill="#0095D3" cx="17.815" cy="11.516" r="4.402"/>
27
+ <path fill="#0095D3" d="M31.167,20.311c0,2.433-1.969,4.401-4.403,4.401c-2.427,0-4.401-1.97-4.401-4.401
28
+ c0-2.433,1.975-4.401,4.401-4.401C29.2,15.909,31.167,17.879,31.167,20.311z"/>
29
+ <circle fill="#0095D3" cx="17.801" cy="29.131" r="4.402"/>
30
+ <g>
31
+ <path fill="#0095D3" d="M20.441-0.045C9.207-0.044,0.1,9.063,0.099,20.298C0.1,31.532,9.207,40.639,20.441,40.641
32
+ c11.235-0.002,20.341-9.107,20.343-20.343C40.783,9.063,31.677-0.044,20.441-0.045z M31.891,31.747
33
+ c-2.937,2.934-6.972,4.742-11.45,4.743c-4.478-0.001-8.513-1.811-11.45-4.743C6.058,28.81,4.25,24.775,4.249,20.298
34
+ c0.001-4.478,1.809-8.513,4.743-11.45c2.937-2.934,6.972-4.742,11.45-4.743c4.478,0.001,8.513,1.81,11.45,4.743
35
+ c2.934,2.938,4.742,6.973,4.743,11.45C36.633,24.775,34.825,28.81,31.891,31.747z"/>
36
+ </g>
37
+ <g>
38
+ <path fill="#0095D3" d="M153.985,9.95c-1.195,0-2.164,0.971-2.164,2.168c0.002,1.197,0.969,2.168,2.164,2.168
39
+ c1.199,0,2.172-0.971,2.172-2.168S155.184,9.95,153.985,9.95z M153.985,13.968c-1.021-0.002-1.846-0.827-1.846-1.85
40
+ c0.002-1.021,0.825-1.849,1.846-1.851c1.023,0.002,1.852,0.828,1.854,1.851C155.836,13.141,155.008,13.966,153.985,13.968z"/>
41
+ </g>
42
+ <g>
43
+ <path fill="#0095D3" d="M154.507,13.409l-0.54-1.08h-0.486v1.08h-0.389v-2.564h0.994c0.484,0,0.796,0.313,0.796,0.75
44
+ c0,0.367-0.224,0.602-0.513,0.68l0.592,1.136L154.507,13.409L154.507,13.409z M154.056,11.195h-0.575v0.803h0.575
45
+ c0.261,0,0.437-0.147,0.437-0.399S154.317,11.195,154.056,11.195z"/>
46
+ </g>
47
+ </g>
48
+ </svg>
Binary file
package/CHANGELOG.md CHANGED
@@ -1,4 +1,4 @@
1
- # Change Log
1
+ # Volto Release Notes
2
2
 
3
3
  <!-- You should *NOT* be adding new change log entries to this file.
4
4
  You should create a file in the news directory instead.
@@ -8,6 +8,35 @@
8
8
 
9
9
  <!-- towncrier release notes start -->
10
10
 
11
+ ## 16.4.0 (2022-12-12)
12
+
13
+ ### Feature
14
+
15
+ - Update Traefik version and make volume mount (docker-compose) read-only [#4067](https://github.com/plone/volto/issues/4067)
16
+ - Allow addons to provide an `eslint.extend.js` file that customizez eslint configuration @tiberiuichim [#4072](https://github.com/plone/volto/issues/4072)
17
+
18
+ ### Bugfix
19
+
20
+ - Update Chinese translation @adam139 [#4009](https://github.com/plone/volto/issues/4009)
21
+ - Reset value of search field after submit. [@MAX-786] [#4028](https://github.com/plone/volto/issues/4028)
22
+ - Don't crash the view page when dealing with unknown blocks @tiberiuichim [#4070](https://github.com/plone/volto/issues/4070)
23
+ - Bump version for plone-backend version used in Makefile @tiberiuichim [#4071](https://github.com/plone/volto/issues/4071)
24
+ - Properly handle whitespace in HTML (richtext) slate-based widget @tiberiuichim [#4082](https://github.com/plone/volto/issues/4082)
25
+ - Add Finnish translation (contributed by @rioksane)
26
+ [erral] [#4084](https://github.com/plone/volto/issues/4084)
27
+ - Fix typo in english translation and add missing french translation
28
+ [mpeeters, jchandelle] [#4085](https://github.com/plone/volto/issues/4085)
29
+
30
+ ### Internal
31
+
32
+ - Make Volto compatible with pnpm as package manager [#4023](https://github.com/plone/volto/issues/4023)
33
+
34
+ ### Documentation
35
+
36
+ - Add content for user-manual of Volto, Plone 6 frontend. [@MAX-786] [#3827](https://github.com/plone/volto/issues/3827)
37
+ - Remove duplicate `H1`-level page title, and inherit from Volto's `CHANGELOG.md`. @stevepiercy [#4048](https://github.com/plone/volto/issues/4048)
38
+
39
+
11
40
  ## 16.3.0 (2022-12-05)
12
41
 
13
42
  ### Feature
@@ -15,6 +44,7 @@
15
44
  - Add towncrier support. Create RELEASING.md and move and update Releasing section from README.md into it. @sneridagh @stevepiercy [#3985](https://github.com/plone/volto/issues/3985)
16
45
  - Translation of roles in user and group control panel. Fix https://github.com/plone/volto/issues/4002 @wesleybl [#4002](https://github.com/plone/volto/issues/4002)
17
46
  - Use the component registry for `Container` component in DefaultView @sneridagh [#4032](https://github.com/plone/volto/issues/4032)
47
+ - Update missing german translations @steffenri
18
48
 
19
49
  ### Bugfix
20
50
 
@@ -54,6 +84,7 @@
54
84
  - Improve collapsing of whitespace when pasting to slate text block @tiberiuichim
55
85
  - Avoid warning for missing value in NumberWidget @tiberiuichim
56
86
  - Fix crash in Slate link editing in a dexterity field @tiberiuichim
87
+ - Fix select widget loosing focus when the value has changed @reebalazs
57
88
 
58
89
  ## 16.1.0 (2022-11-23)
59
90
 
@@ -455,6 +486,8 @@ See https://6.dev-docs.plone.org/volto/upgrade-guide/index.html for more informa
455
486
  - Remove `sentryOptions` from settings reference. Clean up `deploying/sentry.md`. @stevepiercy
456
487
  - Tidy up `upgrade-guide/index.md`. @stevepiercy
457
488
  - Fix some MyST syntax and English grammar. @stevepiercy
489
+ - Add contributing branch policy information @sneridagh @stevepiercy
490
+ - Add component to storybook @danalvrz
458
491
 
459
492
  ## 16.0.0-rc.1 (2022-11-18)
460
493
 
package/addon-registry.js CHANGED
@@ -148,7 +148,7 @@ class AddonConfigurationRegistry {
148
148
  },
149
149
  );
150
150
 
151
- this.initRazzleExtenders();
151
+ this.initAddonExtenders();
152
152
  }
153
153
 
154
154
  /**
@@ -310,18 +310,26 @@ class AddonConfigurationRegistry {
310
310
  }
311
311
 
312
312
  /**
313
- * Allow addons to provide razzle.config extenders. These extenders
314
- * modules (named razzle.extend.js) need to provide two functions:
313
+ * Allow addons to provide various extenders.
314
+ *
315
+ * The razzle.extend.js modules (named razzle.extend.js) needs to provide
316
+ * two functions:
315
317
  * `plugins(defaultPlugins) => plugins` and
316
318
  * `modify(...) => config`
319
+ *
320
+ * The eslint.extend.js
317
321
  */
318
- initRazzleExtenders() {
322
+ initAddonExtenders() {
319
323
  this.getAddons().forEach((addon) => {
320
324
  const base = path.dirname(addon.packageJson);
321
325
  const razzlePath = path.resolve(`${base}/razzle.extend.js`);
322
326
  if (fs.existsSync(razzlePath)) {
323
327
  addon.razzleExtender = razzlePath;
324
328
  }
329
+ const eslintPath = path.resolve(`${base}/eslint.extend.js`);
330
+ if (fs.existsSync(eslintPath)) {
331
+ addon.eslintExtender = eslintPath;
332
+ }
325
333
  });
326
334
  }
327
335
 
@@ -340,6 +348,12 @@ class AddonConfigurationRegistry {
340
348
  .filter((e) => e);
341
349
  }
342
350
 
351
+ getEslintExtenders() {
352
+ return this.getAddons()
353
+ .map((o) => o.eslintExtender)
354
+ .filter((e) => e);
355
+ }
356
+
343
357
  /**
344
358
  * Returns a mapping name:diskpath to be uses in webpack's resolve aliases
345
359
  */
@@ -49,6 +49,7 @@ Cypress.Commands.add(
49
49
  path = '',
50
50
  allow_discussion = false,
51
51
  transition = '',
52
+ bodyModifier = (body) => body,
52
53
  }) => {
53
54
  let api_url, auth;
54
55
  if (Cypress.env('API') === 'guillotina') {
@@ -69,7 +70,7 @@ Cypress.Commands.add(
69
70
  Accept: 'application/json',
70
71
  },
71
72
  auth: auth,
72
- body: {
73
+ body: bodyModifier({
73
74
  '@type': contentType,
74
75
  id: contentId,
75
76
  title: contentTitle,
@@ -80,7 +81,7 @@ Cypress.Commands.add(
80
81
  'content-type': 'text/plain',
81
82
  },
82
83
  allow_discussion: allow_discussion,
83
- },
84
+ }),
84
85
  });
85
86
  }
86
87
  if (contentType === 'Image') {
@@ -91,7 +92,7 @@ Cypress.Commands.add(
91
92
  Accept: 'application/json',
92
93
  },
93
94
  auth: auth,
94
- body: {
95
+ body: bodyModifier({
95
96
  '@type': contentType,
96
97
  id: contentId,
97
98
  title: contentTitle,
@@ -102,7 +103,7 @@ Cypress.Commands.add(
102
103
  filename: 'image.png',
103
104
  'content-type': 'image/png',
104
105
  },
105
- },
106
+ }),
106
107
  });
107
108
  }
108
109
  if (
@@ -116,7 +117,7 @@ Cypress.Commands.add(
116
117
  Accept: 'application/json',
117
118
  },
118
119
  auth: auth,
119
- body: {
120
+ body: bodyModifier({
120
121
  '@type': contentType,
121
122
  id: contentId,
122
123
  title: contentTitle,
@@ -131,7 +132,7 @@ Cypress.Commands.add(
131
132
  ],
132
133
  },
133
134
  allow_discussion: allow_discussion,
134
- },
135
+ }),
135
136
  })
136
137
  .then(() => {
137
138
  if (transition) {
@@ -151,12 +152,12 @@ Cypress.Commands.add(
151
152
  Accept: 'application/json',
152
153
  },
153
154
  auth: auth,
154
- body: {
155
+ body: bodyModifier({
155
156
  '@type': contentType,
156
157
  id: contentId,
157
158
  title: contentTitle,
158
159
  allow_discussion: allow_discussion,
159
- },
160
+ }),
160
161
  })
161
162
  .then(() => {
162
163
  if (transition) {
@@ -47,7 +47,7 @@ services:
47
47
 
48
48
  reverse-proxy:
49
49
  # The official v2 Traefik docker image
50
- image: traefik:v2.8
50
+ image: traefik:v2.9
51
51
  # Enables the web UI and tells Traefik to listen to docker
52
52
  command: --api.insecure=true --providers.docker
53
53
  ports:
@@ -57,7 +57,7 @@ services:
57
57
  - "8888:8080"
58
58
  volumes:
59
59
  # So that Traefik can listen to the Docker events
60
- - /var/run/docker.sock:/var/run/docker.sock
60
+ - /var/run/docker.sock:/var/run/docker.sock:ro
61
61
  labels:
62
62
  - traefik.http.middlewares.gzip.compress=true
63
63
  - traefik.http.middlewares.gzip.compress.excludedcontenttypes=image/png, image/jpeg, font/woff2
@@ -1639,7 +1639,7 @@ msgid "Image view"
1639
1639
  msgstr "Imatge"
1640
1640
 
1641
1641
  #: components/manage/Widgets/RecurrenceWidget/Occurences
1642
- # defaultMessage: Include this occurence
1642
+ # defaultMessage: Include this occurrence
1643
1643
  msgid "Include this occurence"
1644
1644
  msgstr "Incloeu aquesta ocurrència"
1645
1645
 
@@ -1738,7 +1738,7 @@ msgid "Item batch size"
1738
1738
  msgstr "Mida del lot d'articles"
1739
1739
 
1740
1740
  #: components/manage/Contents/Contents
1741
- # defaultMessage: Item succesfully moved.
1741
+ # defaultMessage: Item successfully moved.
1742
1742
  msgid "Item succesfully moved."
1743
1743
  msgstr "L'element s'ha mogut correctament."
1744
1744