@plone/volto 16.6.0 → 16.8.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/.changelog.draft CHANGED
@@ -1,18 +1,15 @@
1
- ## 16.6.0 (2022-12-23)
1
+ ## 16.8.0 (2023-01-18)
2
2
 
3
3
  ### Feature
4
4
 
5
- - Allow passing the `step` prop to NumberWidget @tiberiuichim [#4152](https://github.com/plone/volto/issues/4152)
5
+ - Autocomplete widget support for QueryStringWidget @sneridagh [#4177](https://github.com/plone/volto/issues/4177)
6
+ - Enhance the StyleWrapper classNames generator by adding look around classNames depending on the sorounding previous/next blocks. @sneridagh [#4260](https://github.com/plone/volto/issues/4260)
6
7
 
7
8
  ### Bugfix
8
9
 
9
- - Fix categorization list is not readable when there are longer values or filtering @iFlameing [#4113](https://github.com/plone/volto/issues/4113)
10
- - Add scroll into view settings @robgietema [#4140](https://github.com/plone/volto/issues/4140)
11
- - Remove searching capabilities of SortOn component of Search Block @iFlameing [#4162](https://github.com/plone/volto/issues/4162)
12
- - Fixed externalRoutes short version @pnicolli [#4182](https://github.com/plone/volto/issues/4182)
10
+ - Fix typo in 4260 @sneridagh [#4268](https://github.com/plone/volto/issues/4268)
13
11
 
14
12
  ### Documentation
15
13
 
16
- - Fix URLs to Plone 6 docs. @stevepiercy [#4143](https://github.com/plone/volto/issues/4143)
17
- - Fix Sphinx warning Document headings start at H2, not H1 [myst.header]. @stevepiercy [#4145](https://github.com/plone/volto/issues/4145)
14
+ - Update links to docs to use correct versions. [stevepiercy] [#4256](https://github.com/plone/volto/issues/4256)
18
15
 
Binary file
package/CHANGELOG.md CHANGED
@@ -8,6 +8,49 @@
8
8
 
9
9
  <!-- towncrier release notes start -->
10
10
 
11
+ ## 16.8.0 (2023-01-18)
12
+
13
+ ### Feature
14
+
15
+ - Autocomplete widget support for QueryStringWidget @sneridagh [#4177](https://github.com/plone/volto/issues/4177)
16
+ - Enhance the StyleWrapper classNames generator by adding look around classNames depending on the sorounding previous/next blocks. @sneridagh [#4260](https://github.com/plone/volto/issues/4260)
17
+
18
+ ### Bugfix
19
+
20
+ - Fix typo in 4260 @sneridagh [#4268](https://github.com/plone/volto/issues/4268)
21
+
22
+ ### Documentation
23
+
24
+ - Update links to docs to use correct versions. [stevepiercy] [#4256](https://github.com/plone/volto/issues/4256)
25
+
26
+
27
+ ## 16.7.0 (2023-01-11)
28
+
29
+ ### Feature
30
+
31
+ - Show project name and version in control panel @sneridagh [#4176](https://github.com/plone/volto/issues/4176)
32
+ - Enhance Cypress content creation command @sneridagh [#4210](https://github.com/plone/volto/issues/4210)
33
+
34
+ ### Bugfix
35
+
36
+ - Use Grid instead of Table in Diffview @erral
37
+ - Improve matching in keyboard slash menu. [davisagli] [#4187](https://github.com/plone/volto/issues/4187)
38
+ - (fix): sidebar is not displaying correctly when clicking on a lead image field. @dobri1408 [#4191](https://github.com/plone/volto/issues/4191)
39
+ - Cleanup `package.json` scripts section @sneridagh [#4193](https://github.com/plone/volto/issues/4193)
40
+ - Fixed condition to select without vocabulary @SaraBianchi [#4200](https://github.com/plone/volto/issues/4200)
41
+ - fix iframe covering the page due to a react-error-overlay bug @reebalazs [#4242](https://github.com/plone/volto/issues/4242)
42
+
43
+ ### Documentation
44
+
45
+ - Add description for different types of blocks. @MAX-786 [#3827](https://github.com/plone/volto/issues/3827)
46
+ - Update makefile to use Vale for spell, grammar, and style checking. Fix linkcheckbroken to return the correct exit code for broken links. Fix broken links. [stevepiercy] [#4181](https://github.com/plone/volto/issues/4181)
47
+ - Add todo regarding management of Plone's backend. Update versions. [stevepiercy] [#4198](https://github.com/plone/volto/issues/4198)
48
+ - Pin Sphinx<5,>=3 due to sphinx-book-theme 0.3.3 requirement. [stevepiercy] [#4199](https://github.com/plone/volto/issues/4199)
49
+ - Add message about the status of Volto and Plone 6 Installation docs, directing the reader to the main Plone 6 docs. [stevepiercy] [#4209](https://github.com/plone/volto/issues/4209)
50
+ - Clean up Glossary and integrate with main docs. See https://github.com/plone/documentation/issues/1415. [stevepiercy] [#4211](https://github.com/plone/volto/issues/4211)
51
+ - Add some instructions for dealing with untranspiled add-ons and a lazy loading example for functional components. [cguardia] [#4233](https://github.com/plone/volto/issues/4233)
52
+
53
+
11
54
  ## 16.6.0 (2022-12-23)
12
55
 
13
56
  ### Feature
@@ -84,7 +127,7 @@
84
127
 
85
128
  ### Feature
86
129
 
87
- - 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)
130
+ - 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)
88
131
  - 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)
89
132
  - Use the component registry for `Container` component in DefaultView @sneridagh [#4032](https://github.com/plone/volto/issues/4032)
90
133
  - Update missing german translations @steffenri
@@ -160,7 +203,7 @@
160
203
  - Staticize Poppins font to be compliant with EU privacy. Import from GoogleFont is disabled in site.variables. @giuliaghisini
161
204
  - Remove the `callout` button (the one with the megaphone icon) from the slate toolbar since it has the same styling as `blockquote`. If you need it anyway, you can bring it back in your addon. @sneridagh
162
205
  - Using volto-slate Headline / Subheadline buttons strips all elements in the selection @tiberiuichim
163
- - Use `Cypress` 10.3.0 (migrate from 9.x.x). Cypress 10 has some interesting goodies, being the native support of Apple Silicon Computers the main of it. See https://docs.voltocms.com/upgrade-guide/ for more information. @sneridagh
206
+ - Use `Cypress` 10.3.0 (migrate from 9.x.x). Cypress 10 has some interesting goodies, being the native support of Apple Silicon Computers the main of it. See https://6.docs.plone.org/volto/upgrade-guide/index.html for more information. @sneridagh
164
207
  - The complete configuration registry is passed to the add-ons and the project configuration pipeline @sneridagh
165
208
  - Refactor the component registry API in the configuration registry @sneridagh @tiberiuichim
166
209
  - change password-reset url to be consistent with Plone configuration @erral
@@ -460,8 +503,8 @@ See https://6.dev-docs.plone.org/volto/upgrade-guide/index.html for more informa
460
503
  - Improve English grammar and syntax in backend docs. @stevepiercy
461
504
  - Fix JSX syntax highlighting. Remove duplicate heading. @stevepiercy
462
505
  - fix make task `docs-linkcheckbroken` if grep has exit code 1 (no lines found)
463
- - Updated simple.md @MdSahil-oss
464
- - Fix indentation in nginx configuration in simple.md @stevepiercy
506
+ - Updated `simple.md` @MdSahil-oss
507
+ - Fix indentation in nginx configuration in `simple.md` @stevepiercy
465
508
  - Remove sphinx_sitemap configuration because Volto's docs are now imported into the main docs, making this setting unnecessary. @stevepiercy
466
509
  - Set the ogp_site_url to main docs, instead of training. @stevepiercy
467
510
  - `aria-*` attributes are now parsed correctly by jsx-lexer 2.0. @stevepiercy
@@ -1098,7 +1141,7 @@ See https://6.dev-docs.plone.org/volto/upgrade-guide/index.html for more informa
1098
1141
  ### Breaking
1099
1142
 
1100
1143
  - The complete configuration registry is passed to the add-ons and the project configuration pipeline
1101
- See https://docs.voltocms.com/upgrade-guide/ for more information. @sneridagh
1144
+ See https://6.docs.plone.org/volto/upgrade-guide/index.html for more information. @sneridagh
1102
1145
  - Refactor the component registry API in the configuration registry @sneridagh @tiberiuichim
1103
1146
 
1104
1147
  ### Bugfix
@@ -1123,7 +1166,7 @@ See https://6.dev-docs.plone.org/volto/upgrade-guide/index.html for more informa
1123
1166
 
1124
1167
  ### Breaking
1125
1168
 
1126
- - Use `Cypress` 10.3.0 (migrate from 9.x.x). Cypress 10 has some interesting goodies, being the native support of Apple Silicon Computers the main of it. See https://docs.voltocms.com/upgrade-guide/ for more information. @sneridagh
1169
+ - Use `Cypress` 10.3.0 (migrate from 9.x.x). Cypress 10 has some interesting goodies, being the native support of Apple Silicon Computers the main of it. See https://6.docs.plone.org/volto/upgrade-guide/index.html for more information. @sneridagh
1127
1170
 
1128
1171
  ### Bugfix
1129
1172
 
@@ -1387,8 +1430,8 @@ Use next release instead: https://github.com/plone/volto/releases/tag/16.0.0-alp
1387
1430
 
1388
1431
  ### Documentation
1389
1432
 
1390
- - Updated simple.md @MdSahil-oss
1391
- - Fix indentation in nginx configuration in simple.md @stevepiercy
1433
+ - Updated `simple.md` @MdSahil-oss
1434
+ - Fix indentation in nginx configuration in `simple.md` @stevepiercy
1392
1435
 
1393
1436
  ## 16.0.0-alpha.3 (2022-05-16)
1394
1437
 
@@ -1642,7 +1685,7 @@ Use next release instead: https://github.com/plone/volto/releases/tag/16.0.0-alp
1642
1685
 
1643
1686
  ### Documentation
1644
1687
 
1645
- - Updated README.md @ktsrivastava29
1688
+ - Updated `README.md` @ktsrivastava29
1646
1689
  - Added language to code-blocks in md files @ktsrivastava29
1647
1690
  - Added html_meta values and labels for Intersphinx cross-references from Trainings. @stevepiercy
1648
1691
  - Replaced `docs.voltocms.com` with MyST references. @stevepiercy
@@ -1858,7 +1901,7 @@ Use next release instead: https://github.com/plone/volto/releases/tag/16.0.0-alp
1858
1901
  ### Breaking
1859
1902
 
1860
1903
  - Lazyload draftjs library. See the upgrade guide on how that impacts you, in case you have extended the rich text editor configuration @tiberiuichim @kreafox
1861
- See https://docs.voltocms.com/upgrade-guide/ for more information.
1904
+ See https://6.docs.plone.org/volto/upgrade-guide/index.html for more information.
1862
1905
 
1863
1906
  ### Feature
1864
1907
 
@@ -1871,7 +1914,7 @@ Use next release instead: https://github.com/plone/volto/releases/tag/16.0.0-alp
1871
1914
  - Markup change in `LinkView` component.
1872
1915
  - Rename `core-sandbox` to `coresandbox` for sake of consistency @sneridagh
1873
1916
  - Extend the original intent and rename `RAZZLE_TESTING_ADDONS` to `ADDONS`. @sneridagh
1874
- See https://docs.voltocms.com/upgrade-guide/ for more information.
1917
+ See https://6.docs.plone.org/volto/upgrade-guide/index.html for more information.
1875
1918
 
1876
1919
  ### Internal
1877
1920
 
@@ -1917,7 +1960,7 @@ Use next release instead: https://github.com/plone/volto/releases/tag/16.0.0-alp
1917
1960
  ### Breaking
1918
1961
 
1919
1962
  - Upgrade `react-cookie` to latest version. @sneridagh @robgietema
1920
- See https://docs.voltocms.com/upgrade-guide/ for more information.
1963
+ See https://6.docs.plone.org/volto/upgrade-guide/index.html for more information.
1921
1964
 
1922
1965
  ## 14.10.0 (2022-02-08)
1923
1966
 
@@ -2046,7 +2089,7 @@ new users/evaluators. @fredvd
2046
2089
  ### Internal
2047
2090
 
2048
2091
  - Fix URL for Climate-Energy, a Volto website @tiberiuichim
2049
- - Fix quirky Cypress test in "DX control panel schema" (see https://github.com/plone/volto/runs/4803206906?check_suite_focus=true) @sneridagh
2092
+ - Fix quirky Cypress test in "DX control panel schema" (see https://github.com/plone/volto/actions/runs/1692689792/jobs/2306969715) @sneridagh
2050
2093
 
2051
2094
  ## 14.2.1 (2022-01-12)
2052
2095
 
@@ -2110,11 +2153,11 @@ new users/evaluators. @fredvd
2110
2153
 
2111
2154
  ### Breaking
2112
2155
 
2113
- - Remove compatibility for old configuration (based on imports) system. Migrate your configuration to the new configuration system for your project before upgrading to Volto 14. See https://docs.voltocms.com/upgrade-guide/#volto-configuration-registry @sneridagh
2156
+ - Remove compatibility for old configuration (based on imports) system. Migrate your configuration to the new configuration system for your project before upgrading to Volto 14. See https://6.docs.plone.org/volto/upgrade-guide/index.html#volto-configuration-registry @sneridagh
2114
2157
  - Content locking is not a breaking change, but it's worth noting that Volto 14 comes with locking support enabled by default. Latest `plone.restapi` version is required. @avoinea
2115
2158
  - Revisited, rethought and refactored Seamless mode @sneridagh
2116
2159
  For more information, please read the deploying guide
2117
- https://docs.voltocms.com/deploying/seamless-mode/
2160
+ https://6.docs.plone.org/volto/deploying/seamless-mode.html
2118
2161
  - Listing block no longer use `fullobjects` to retrieve backend data. It uses the catalog data instead. This improves the performance of the listing block. @plone/volto-team
2119
2162
  - Removed pagination in vocabularies widgets (SelectWidget, ArrayWidget, TokenWidget) and introduced subrequest to vocabulary action. @giuliaghisini
2120
2163
  - Use the block's title as the source of the translation instead of using the id of the block. See upgrade guide for more information @sneridagh
@@ -2126,14 +2169,14 @@ new users/evaluators. @fredvd
2126
2169
  - Use title instead of id as a source of translation in "Variation" field in block enhancers @sneridagh
2127
2170
  - Move `theme.js` import to top of the client code, so it take precedence over any other inline imported CSS. This is not an strict breaking change, but it's worth to mention it as might be important and kept in mind. @sneridagh
2128
2171
 
2129
- See https://docs.voltocms.com/upgrade-guide/ for more information about all the breaking changes.
2172
+ See https://6.docs.plone.org/volto/upgrade-guide/index.html for more information about all the breaking changes.
2130
2173
 
2131
2174
  ### Feature
2132
2175
 
2133
2176
  - Support Node 16 @timo
2134
2177
  - Content locking support for Plone (`plone.locking`) @avoinea
2135
2178
  - Add the new search block @tiberiuichim @kreafox @sneridagh
2136
- - Provide Server-Side Rendering capabilities for blocks with async-based content (such as the listing block). A block needs to provide its own `getAsyncData` implementation, which is similar to an `asyncConnect` wrapper promise. @tiberiuichim @sneridagh
2179
+ - Provide server-side rendering capabilities for blocks with async-based content (such as the listing block). A block needs to provide its own `getAsyncData` implementation, which is similar to an `asyncConnect` wrapper promise. @tiberiuichim @sneridagh
2137
2180
  - Defaults are observed in block data if `InlineForm` or `BlockDataForm` are used. @sneridagh @tiberiuichim
2138
2181
  - Apply form defaults from RenderBlocks and block Edit using a new helper, `applyBlockDefaults` @tiberiuichim
2139
2182
  - Now each block config object can declare a schema factory (a function that can produce a schema) and this will be used to derive the default data for the block @tiberiuichim
@@ -2486,7 +2529,7 @@ See https://docs.voltocms.com/upgrade-guide/ for more information about all the
2486
2529
 
2487
2530
  ### Feature
2488
2531
 
2489
- - Provide Server-Side Rendering capabilities for blocks with async-based content (such as the listing block). A block needs to provide its own `getAsyncData` implementation, which is similar to an `asyncConnect` wrapper promise. @tiberiuichim @sneridagh
2532
+ - Provide server-side rendering capabilities for blocks with async-based content (such as the listing block). A block needs to provide its own `getAsyncData` implementation, which is similar to an `asyncConnect` wrapper promise. @tiberiuichim @sneridagh
2490
2533
 
2491
2534
  ## 14.0.0-alpha.25 (2021-11-01)
2492
2535
 
@@ -2561,10 +2604,10 @@ See https://docs.voltocms.com/upgrade-guide/ for more information about all the
2561
2604
 
2562
2605
  - Revisited, rethought and refactored Seamless mode @sneridagh
2563
2606
  For more information, please read the deploying guide
2564
- https://docs.voltocms.com/deploying/seamless-mode/
2607
+ https://6.docs.plone.org/volto/deploying/seamless-mode.html
2565
2608
 
2566
- and the upgrade guide
2567
- https://docs.voltocms.com/upgrade-guide/
2609
+ and the upgrade guide
2610
+ https://6.docs.plone.org/volto/upgrade-guide/index.html
2568
2611
 
2569
2612
  ### Bugfix
2570
2613
 
@@ -2608,7 +2651,7 @@ https://docs.voltocms.com/upgrade-guide/
2608
2651
  - Adjusted main `Logo` component styling @sneridagh
2609
2652
 
2610
2653
  For more information, please read the upgrade guide
2611
- https://docs.voltocms.com/upgrade-guide/
2654
+ https://6.docs.plone.org/volto/upgrade-guide/index.html
2612
2655
 
2613
2656
  ### Feature
2614
2657
 
@@ -2619,7 +2662,7 @@ https://docs.voltocms.com/upgrade-guide/
2619
2662
  - Improved developer documentation. Proof read several chapters, most importantly the upgrade guide @ichim-david
2620
2663
  - Use Plone logo (Closes #2632) @ericof
2621
2664
  - Updated Brazilian Portuguese translations @ericof
2622
- - Footer: Point to plone.org instead of plone.com @ericof
2665
+ - Footer: Point to `plone.org` instead of `plone.com` @ericof
2623
2666
  - Fix "make start-frontend" @tisto
2624
2667
  - Update all the tests infrastructure for the new `volto-guillotina` addon @sneridagh
2625
2668
 
@@ -2752,8 +2795,8 @@ https://docs.voltocms.com/upgrade-guide/
2752
2795
 
2753
2796
  ### Breaking
2754
2797
 
2755
- - Remove compatibility for old configuration (based on imports) system. Migrate your configuration to the new configuration system for your project before upgrading to Volto 14. See https://docs.voltocms.com/upgrade-guide/#volto-configuration-registry @sneridagh
2756
- - Content locking is not a breaking change, but it's worth noting that Volto 14 comes with locking support enabled by default. Latest `plone.restapi` versions is required. See https://docs.voltocms.com/upgrade-guide/ for more information
2798
+ - Remove compatibility for old configuration (based on imports) system. Migrate your configuration to the new configuration system for your project before upgrading to Volto 14. See https://6.docs.plone.org/volto/upgrade-guide/index.html#volto-configuration-registry @sneridagh
2799
+ - Content locking is not a breaking change, but it's worth noting that Volto 14 comes with locking support enabled by default. Latest `plone.restapi` versions is required. See https://6.docs.plone.org/volto/upgrade-guide/index.html for more information
2757
2800
 
2758
2801
  ### Feature
2759
2802
 
@@ -2803,7 +2846,7 @@ https://docs.voltocms.com/upgrade-guide/
2803
2846
 
2804
2847
  - Disabled all the other configuration options when user did not choose any criteria in listing block @iFlameing
2805
2848
  - Updated Brazilian Portuguese translations @ericof
2806
- - Footer: Point to plone.org instead of plone.com @ericof
2849
+ - Footer: Point to `plone.org` instead of `plone.com` @ericof
2807
2850
  - Array and token widget available as named widget @nzambello
2808
2851
 
2809
2852
  ## 13.12.0 (2021-08-20)
@@ -3076,7 +3119,7 @@ https://docs.voltocms.com/upgrade-guide/
3076
3119
  - Refactored `Listing` block using the new `src/components/manage/Widgets/QuerystringWidget`. Introducing a new `showLinkMore` block option opt-in for the additional feature instead of always-in. Deprecated `ListingSidebar` and `src/components/manage/Blocks/Listing/QuerystringWidget` in favor of the new `src/components/manage/Widgets/QuerystringWidget` @sneridagh
3077
3120
 
3078
3121
  For a more information, please read the upgrade guide
3079
- https://docs.voltocms.com/upgrade-guide/
3122
+ https://6.docs.plone.org/volto/upgrade-guide/index.html
3080
3123
 
3081
3124
  ### Feature
3082
3125
 
@@ -3190,7 +3233,7 @@ https://docs.voltocms.com/upgrade-guide/
3190
3233
  - Refactored `Listing` block using the new `src/components/manage/Widgets/QuerystringWidget`. Introducing a new `showLinkMore` block option opt-in for the additional feature instead of always-in. Deprecated `ListingSidebar` and `src/components/manage/Blocks/Listing/QuerystringWidget` in favor of the new `src/components/manage/Widgets/QuerystringWidget` @sneridagh
3191
3234
 
3192
3235
  For a more information, please read the upgrade guide
3193
- https://docs.voltocms.com/upgrade-guide/
3236
+ https://6.docs.plone.org/volto/upgrade-guide/index.html
3194
3237
 
3195
3238
  ### Bugfix
3196
3239
 
@@ -3240,7 +3283,7 @@ https://docs.voltocms.com/upgrade-guide/
3240
3283
  - Get rid of the font icons in the control panels overview @sneridagh
3241
3284
 
3242
3285
  For a complete list of actions to follow, please read the upgrade guide
3243
- https://docs.voltocms.com/upgrade-guide/
3286
+ https://6.docs.plone.org/volto/upgrade-guide/index.html
3244
3287
 
3245
3288
  ### Feature
3246
3289
 
@@ -3391,7 +3434,7 @@ https://docs.voltocms.com/upgrade-guide/
3391
3434
 
3392
3435
  ### Internal
3393
3436
 
3394
- - Add Storybook to the main docs (docs.voltocms.com/storybook) build @sneridagh
3437
+ - Add Storybook to the main docs (https://6.docs.plone.org/storybook/) build @sneridagh
3395
3438
 
3396
3439
  ## 12.5.0 (2021-03-31)
3397
3440
 
@@ -3539,7 +3582,7 @@ https://docs.voltocms.com/upgrade-guide/
3539
3582
  ### Breaking
3540
3583
 
3541
3584
  - Introduction of the new Volto Configuration Registry @sneridagh @tiberiuichim
3542
- For more information about this breaking change: https://docs.voltocms.com/upgrade-guide/#upgrading-to-volto-12xx
3585
+ For more information about this breaking change: https://6.docs.plone.org/volto/upgrade-guide/index.html#upgrading-to-volto-12-x-x
3543
3586
 
3544
3587
  ### Feature
3545
3588
 
@@ -3554,7 +3597,7 @@ https://docs.voltocms.com/upgrade-guide/
3554
3597
  ### Breaking
3555
3598
 
3556
3599
  - Introduction of the new Volto Configuration Registry @sneridagh @tiberiuichim
3557
- For more information about this breaking change: https://docs.voltocms.com/upgrade-guide/#upgrading-to-volto-12xx
3600
+ For more information about this breaking change: https://6.docs.plone.org/volto/upgrade-guide/index.html#upgrading-to-volto-12-x-x
3558
3601
 
3559
3602
  ## 11.1.0 (2021-02-08)
3560
3603
 
@@ -3834,7 +3877,7 @@ https://docs.voltocms.com/upgrade-guide/
3834
3877
  ### Breaking
3835
3878
 
3836
3879
  - Removal of the Razzle patch that was introduced in 9.0.0 @sneridagh
3837
- See https://docs.voltocms.com/upgrade-guide/ for more details.
3880
+ See https://6.docs.plone.org/volto/upgrade-guide/index.html for more details.
3838
3881
  - Fetched content with `getContent` no longer includes fullobjects by default @tiberiuichim
3839
3882
 
3840
3883
  ### Bugfix
@@ -3854,7 +3897,7 @@ https://docs.voltocms.com/upgrade-guide/
3854
3897
  ## 9.2.0 (2020-11-24)
3855
3898
 
3856
3899
  **This is a brown bag release and should not be used, upgrade to Volto 10.x.x instead.**
3857
- See https://docs.voltocms.com/upgrade-guide/ for more information.
3900
+ See https://6.docs.plone.org/volto/upgrade-guide/index.html for more information.
3858
3901
 
3859
3902
  ### Feature
3860
3903
 
@@ -3915,7 +3958,7 @@ See https://docs.voltocms.com/upgrade-guide/ for more information.
3915
3958
  - @babel/plugin-proposal-function-sent
3916
3959
 
3917
3960
  For a complete list of actions to follow, please read the upgrade guide
3918
- https://docs.voltocms.com/upgrade-guide/
3961
+ https://6.docs.plone.org/volto/upgrade-guide/index.html
3919
3962
 
3920
3963
  ### Feature
3921
3964
 
@@ -4001,7 +4044,7 @@ https://docs.voltocms.com/upgrade-guide/
4001
4044
 
4002
4045
  ### Feature
4003
4046
 
4004
- - Add support for the new active LTS NodeJS version 14. NodeJS 10 eol will happen on 2021-04-30 and Volto will update accordingly. More information on https://nodejs.org/en/about/releases @sneridagh
4047
+ - Add support for the new active LTS NodeJS version 14. NodeJS 10 eol will happen on 2021-04-30 and Volto will update accordingly. More information on https://github.com/nodejs/release#release-schedule @sneridagh
4005
4048
 
4006
4049
  ## 8.7.1 (2020-10-29)
4007
4050
 
@@ -4525,7 +4568,7 @@ https://docs.voltocms.com/upgrade-guide/
4525
4568
 
4526
4569
  ### Feature
4527
4570
 
4528
- - Provide a new webpack alias, `volto-themes`, which points to Volto's theme folder. See details in the https://docs.voltocms.com/upgrade-guide/
4571
+ - Provide a new webpack alias, `volto-themes`, which points to Volto's theme folder. See details in the https://6.docs.plone.org/volto/upgrade-guide/index.html
4529
4572
 
4530
4573
  ### Internal
4531
4574
 
@@ -4674,7 +4717,7 @@ https://docs.voltocms.com/upgrade-guide/
4674
4717
  ### Breaking
4675
4718
 
4676
4719
  - Removed support for CSS modules, since Razzle 3.1.x do not support them @sneridagh
4677
- - Updated Volto dependencies - See https://docs.voltocms.com/upgrade-guide/ for more information @sneridagh
4720
+ - Updated Volto dependencies - See https://6.docs.plone.org/volto/upgrade-guide/index.html for more information @sneridagh
4678
4721
  - By adding `react-beautiful-dnd` in the block editor we are introducing new wrappers
4679
4722
  (belonging to the lib machinery) in the structure. The original structure and class
4680
4723
  names are still in there for maintain maximum backwards compatibility. Those might be
@@ -5144,7 +5187,7 @@ refer to all of them in https://github.com/plone/volto/releases
5144
5187
 
5145
5188
  ### Internal
5146
5189
 
5147
- - Added forest.eea.europa.eu as deployed Volto in production @tiberiuichim
5190
+ - Added `forest.eea.europa.eu` as deployed Volto in production @tiberiuichim
5148
5191
  - Add SemanticUI responsive variables to the responsive utils @sneridagh
5149
5192
  - Added `yarnhook` to the build @sneridagh
5150
5193
 
@@ -5191,7 +5234,7 @@ refer to all of them in https://github.com/plone/volto/releases
5191
5234
 
5192
5235
  ### Added
5193
5236
 
5194
- - Lead image behavior block @sneridagh sponsored by CMSCOM.jp @terapyon
5237
+ - Lead image behavior block @sneridagh sponsored by `CMSCOM.jp` @terapyon
5195
5238
 
5196
5239
  ### Changes
5197
5240
 
@@ -5503,7 +5546,7 @@ refer to all of them in https://github.com/plone/volto/releases
5503
5546
  ### Internal
5504
5547
 
5505
5548
  - Add complete husky config @sneridagh
5506
- - Add COC.md file @timo
5549
+ - Add `COC.md` file @timo
5507
5550
 
5508
5551
  ## 4.0.0-alpha.5 (2019-09-28)
5509
5552
 
package/README.md CHANGED
@@ -278,7 +278,7 @@ make start-backend-docker
278
278
 
279
279
  or running Plone on your machine (advanced), additional dependencies might be
280
280
  required, only for Plone experienced integrators/developers. Check the [Plone
281
- Installation Documentation](https://docs.plone.org/manage/installing/installation.html).
281
+ Installation Documentation](https://6.docs.plone.org/install/index.html).
282
282
 
283
283
  ```shell
284
284
  make build-backend
@@ -46,10 +46,12 @@ Cypress.Commands.add(
46
46
  contentType,
47
47
  contentId,
48
48
  contentTitle,
49
+ contentDescription,
49
50
  path = '',
50
51
  allow_discussion = false,
51
52
  transition = '',
52
53
  bodyModifier = (body) => body,
54
+ image = false,
53
55
  }) => {
54
56
  let api_url, auth;
55
57
  if (Cypress.env('API') === 'guillotina') {
@@ -62,40 +64,44 @@ Cypress.Commands.add(
62
64
  api_url = PLONE_API_URL;
63
65
  auth = ploneAuthObj;
64
66
  }
67
+
68
+ const defaultParams = {
69
+ method: 'POST',
70
+ url: `${api_url}/${path}`,
71
+ headers: {
72
+ Accept: 'application/json',
73
+ },
74
+ auth: auth,
75
+ body: {
76
+ '@type': contentType,
77
+ id: contentId,
78
+ title: contentTitle,
79
+ description: contentDescription,
80
+ allow_discussion: allow_discussion,
81
+ },
82
+ };
83
+
65
84
  if (contentType === 'File') {
66
- return cy.request({
67
- method: 'POST',
68
- url: `${api_url}/${path}`,
69
- headers: {
70
- Accept: 'application/json',
71
- },
72
- auth: auth,
85
+ const params = {
86
+ ...defaultParams,
73
87
  body: bodyModifier({
74
- '@type': contentType,
75
- id: contentId,
76
- title: contentTitle,
88
+ ...defaultParams.body,
77
89
  file: {
78
90
  data: 'dGVzdGZpbGUK',
79
91
  encoding: 'base64',
80
92
  filename: 'lorem.txt',
81
93
  'content-type': 'text/plain',
82
94
  },
83
- allow_discussion: allow_discussion,
84
95
  }),
85
- });
96
+ };
97
+
98
+ return cy.request(params);
86
99
  }
87
100
  if (contentType === 'Image') {
88
- return cy.request({
89
- method: 'POST',
90
- url: `${api_url}/${path}`,
91
- headers: {
92
- Accept: 'application/json',
93
- },
94
- auth: auth,
101
+ const params = {
102
+ ...defaultParams,
95
103
  body: bodyModifier({
96
- '@type': contentType,
97
- id: contentId,
98
- title: contentTitle,
104
+ ...defaultParams.body,
99
105
  image: {
100
106
  data:
101
107
  'iVBORw0KGgoAAAANSUhEUgAAANcAAAA4CAMAAABZsZ3QAAAAM1BMVEX29fK42OU+oMvn7u9drtIPisHI4OhstdWZyt4fkcXX5+sAg74umMhNp86p0eJ7vNiKw9v/UV4wAAAAAXRSTlMAQObYZgAABBxJREFUeF7tmuty4yAMhZG4X2zn/Z92J5tsBJwWXG/i3XR6frW2Y/SBLIRAfaQUDNt8E5tLUt9BycfcKfq3R6Mlfyimtx4rzp+K3dtibXkor99zsEqLYZltblTecciogoh+TXfY1Ve4dn07rCDGG9dHSEEOg/GmXl0U1XDxTKxNK5De7BxsyyBr6gGm2/vPxKJ8F6f7BXKfRMp1xIWK9A+5ks25alSb353dWnDJN1k35EL5f8dVGifTf/4tjUuuFq7u4srmXC60yAmldLXIWbg65RKU87lcGxJCFqUPv0IacW0PmSivOZFLE908inPToMmii/roG+MRV/O8FU88i8tFsxV3a06MFUw0Qu7RmAtdV5/HVVaOVMTWNOWSwMljLhzhcB6XIS7OK5V6AvRDNN7t5VJWQs1J40UmalbK56usBG/CuCHSYuc+rkUGeMCViNRARPrzW52N3oQLe6WifNliSuuGaH3czbVNudI9s7ZLUCLHVwWlyES522o1t14uvmbblmVTKqFjaZYJFSTPP4dLL1kU1z7p0lzdbRulmEWLxoQX+z9ce7A8GqEEucllLxePuZwdJl1Lezu0hoswvTPt61DrFcRuujV/2cmlxaGBC7Aw6cpovGANwRiSdOAWJ5AGy4gLL64dl0QhUEAuEUNws+XxV+OKGPdw/hESGYF9XEGaFC7sNLMSXWJjHsnanYi87VK428N2uxpOjOFANcagLM5l+7mSycM8KknZpKLcGi6jmzWGr/vLurZ/0g4u9AZuAoeb5r1ceQhyiTPY1E4wUR6u/F3H2ojSpXMMriBPT9cezTto8Cx+MsglHL4fv1Rxrb1LVw9yvyQpJ3AhFnLZfuRLH2QsOG3FGGD20X/th/u5bFAt16Bt308KjF+MNOXgl/SquIEySX3GhaZvc67KZbDxcCDORz2N8yCWPaY5lyQZO7lQ29fnZbt3Xu6qoge4+DjXl/MocySPOp9rlvdyznahRyHEYd77v3LhugOXDv4J65QXfl803BDAdaWBEDhfVx7nKofjoVCgxnUAqw/UAUDPn788BDvQuG4TDtdtUPvzjSlXAB8DvaDOhhrmhwbywylXAm8CvaouikJTL93gs3y7Yy4VYbIxOHrcMizPqWOjqO9l3Uz52kibQy4xxOgqhJvD+w5rvokOcAlGvNCfeqCv1ste1stzLm0f71Iq3ZfTrPfuE5nhPtF+LvQE2lffQC7pYtQy3tdzdrKvd5TLVVzDetScS3nEKmmwDyt1Cev1kX3YfbvzNK4fzrlw+cB6vm+uiUgf2zdXI62241LawCb7Pi5FXFPF8KpzDoF/Sw2lg+GrHNbno1mhPu+VCF/vfMnw06PnUl6j48dVHD3jHNHPua+fc3o/5yp/zsGi0vYtzi3Pz5mHd4T6BWMIlewacd63AAAAAElFTkSuQmCC',
@@ -104,37 +110,74 @@ Cypress.Commands.add(
104
110
  'content-type': 'image/png',
105
111
  },
106
112
  }),
107
- });
113
+ };
114
+
115
+ return cy.request(params);
108
116
  }
109
117
  if (
110
118
  ['Document', 'News Item', 'Folder', 'CMSFolder'].includes(contentType)
111
119
  ) {
112
- return cy
113
- .request({
114
- method: 'POST',
115
- url: `${api_url}/${path}`,
116
- headers: {
117
- Accept: 'application/json',
120
+ const params = {
121
+ ...defaultParams,
122
+ body: {
123
+ ...defaultParams.body,
124
+ blocks: {
125
+ 'd3f1c443-583f-4e8e-a682-3bf25752a300': { '@type': 'title' },
126
+ '7624cf59-05d0-4055-8f55-5fd6597d84b0': { '@type': 'slate' },
118
127
  },
119
- auth: auth,
128
+ blocks_layout: {
129
+ items: [
130
+ 'd3f1c443-583f-4e8e-a682-3bf25752a300',
131
+ '7624cf59-05d0-4055-8f55-5fd6597d84b0',
132
+ ],
133
+ },
134
+ },
135
+ };
136
+
137
+ if (image) {
138
+ let sourceFilename = 'cypress/fixtures/halfdome2022.jpg';
139
+ let imageObject = {
140
+ encoding: 'base64',
141
+ filename: 'image.jpg',
142
+ 'content-type': 'image/jpg',
143
+ };
144
+ if (typeof image === 'object') {
145
+ sourceFilename = image.sourceFilename;
146
+ imageObject = {
147
+ ...imageObject,
148
+ ...image,
149
+ };
150
+ }
151
+ cy.readFile(sourceFilename, 'base64').then((encodedImage) => {
152
+ const withImageParams = {
153
+ ...params,
154
+ body: bodyModifier({
155
+ ...params.body,
156
+ preview_image: {
157
+ ...imageObject,
158
+ data: encodedImage,
159
+ },
160
+ }),
161
+ };
162
+
163
+ return cy.request(withImageParams).then(() => {
164
+ if (transition) {
165
+ cy.setWorkflow({
166
+ path: path || contentId,
167
+ review_state: transition,
168
+ });
169
+ }
170
+ console.log(`${contentType} created`);
171
+ });
172
+ });
173
+ } else {
174
+ const documentParams = {
175
+ ...params,
120
176
  body: bodyModifier({
121
- '@type': contentType,
122
- id: contentId,
123
- title: contentTitle,
124
- blocks: {
125
- 'd3f1c443-583f-4e8e-a682-3bf25752a300': { '@type': 'title' },
126
- '7624cf59-05d0-4055-8f55-5fd6597d84b0': { '@type': 'slate' },
127
- },
128
- blocks_layout: {
129
- items: [
130
- 'd3f1c443-583f-4e8e-a682-3bf25752a300',
131
- '7624cf59-05d0-4055-8f55-5fd6597d84b0',
132
- ],
133
- },
134
- allow_discussion: allow_discussion,
177
+ ...params.body,
135
178
  }),
136
- })
137
- .then(() => {
179
+ };
180
+ return cy.request(documentParams).then(() => {
138
181
  if (transition) {
139
182
  cy.setWorkflow({
140
183
  path: path || contentId,
@@ -143,6 +186,7 @@ Cypress.Commands.add(
143
186
  }
144
187
  console.log(`${contentType} created`);
145
188
  });
189
+ }
146
190
  } else {
147
191
  return cy
148
192
  .request({
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  }
10
10
  ],
11
11
  "license": "MIT",
12
- "version": "16.6.0",
12
+ "version": "16.8.0",
13
13
  "repository": {
14
14
  "type": "git",
15
15
  "url": "git@github.com:plone/volto.git"
@@ -53,16 +53,12 @@
53
53
  "lint:fix": "./node_modules/eslint/bin/eslint.js --fix 'src/**/*.{js,jsx,json}'",
54
54
  "i18n": "rm -rf build/messages && NODE_ENV=production i18n",
55
55
  "i18n:ci": "yarn i18n && git diff -G'^[^\"POT]' --exit-code",
56
- "stylelint:patches": "patch -p0 -N node_modules/stylelint/lib/getPostcssResult.js < patches/fixstylelint.patch || true",
57
- "patches": "/bin/bash patches/patchit.sh > /dev/null 2>&1 ||true",
58
- "deduplicate": "yarn-deduplicate yarn.lock",
59
56
  "dry-release": "release-it --dry-run",
60
57
  "release": "release-it",
61
58
  "release-major-alpha": "release-it major --preRelease=alpha",
62
59
  "release-alpha": "release-it --preRelease=alpha",
63
60
  "storybook": "start-storybook -p 6006",
64
- "build-storybook": "build-storybook",
65
- "cypress:open": "NODE_ENV=production cypress open"
61
+ "build-storybook": "build-storybook"
66
62
  },
67
63
  "bundlewatch": {
68
64
  "files": [
@@ -412,6 +408,7 @@
412
408
  "identity-obj-proxy": "3.0.0",
413
409
  "jest": "26.6.3",
414
410
  "jest-environment-jsdom": "^26",
411
+ "react-error-overlay": "6.0.9",
415
412
  "react-is": "^16.13.1",
416
413
  "release-it": "^15.1.3",
417
414
  "tmp": "0.2.1",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plone/volto-slate",
3
- "version": "16.6.0",
3
+ "version": "16.8.0",
4
4
  "description": "Slate.js integration with Volto",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",