@plone/volto 16.6.0 → 16.7.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 +15 -8
- package/.yarn/install-state.gz +0 -0
- package/CHANGELOG.md +67 -41
- package/cypress/support/commands.js +90 -46
- package/news/4160.bug +2 -0
- package/package.json +3 -6
- package/packages/volto-slate/package.json +1 -1
- package/packages/volto-slate/src/blocks/Text/SlashMenu.jsx +42 -13
- package/src/components/manage/Blocks/LeadImage/Edit.jsx +5 -1
- package/src/components/manage/Controlpanels/VersionOverview.jsx +14 -1
- package/src/components/manage/Diff/DiffField.jsx +64 -67
- package/src/components/manage/Widgets/ArrayWidget.jsx +2 -1
package/.changelog.draft
CHANGED
|
@@ -1,18 +1,25 @@
|
|
|
1
|
-
## 16.
|
|
1
|
+
## 16.7.0 (2023-01-11)
|
|
2
2
|
|
|
3
3
|
### Feature
|
|
4
4
|
|
|
5
|
-
-
|
|
5
|
+
- Show project name and version in control panel @sneridagh [#4176](https://github.com/plone/volto/issues/4176)
|
|
6
|
+
- Enhance Cypress content creation command @sneridagh [#4210](https://github.com/plone/volto/issues/4210)
|
|
6
7
|
|
|
7
8
|
### Bugfix
|
|
8
9
|
|
|
9
|
-
-
|
|
10
|
-
-
|
|
11
|
-
-
|
|
12
|
-
- Fixed
|
|
10
|
+
- Improve matching in keyboard slash menu. [davisagli] [#4187](https://github.com/plone/volto/issues/4187)
|
|
11
|
+
- (fix): sidebar is not displaying correctly when clicking on a lead image field. @dobri1408 [#4191](https://github.com/plone/volto/issues/4191)
|
|
12
|
+
- Cleanup `package.json` scripts section @sneridagh [#4193](https://github.com/plone/volto/issues/4193)
|
|
13
|
+
- Fixed condition to select without vocabulary @SaraBianchi [#4200](https://github.com/plone/volto/issues/4200)
|
|
14
|
+
- fix iframe covering the page due to a react-error-overlay bug @reebalazs [#4242](https://github.com/plone/volto/issues/4242)
|
|
13
15
|
|
|
14
16
|
### Documentation
|
|
15
17
|
|
|
16
|
-
-
|
|
17
|
-
-
|
|
18
|
+
- Add description for different types of blocks. @MAX-786 [#3827](https://github.com/plone/volto/issues/3827)
|
|
19
|
+
- 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)
|
|
20
|
+
- Add todo regarding management of Plone's backend. Update versions. [stevepiercy] [#4198](https://github.com/plone/volto/issues/4198)
|
|
21
|
+
- Pin Sphinx<5,>=3 due to sphinx-book-theme 0.3.3 requirement. [stevepiercy] [#4199](https://github.com/plone/volto/issues/4199)
|
|
22
|
+
- 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)
|
|
23
|
+
- 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)
|
|
24
|
+
- 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)
|
|
18
25
|
|
package/.yarn/install-state.gz
CHANGED
|
Binary file
|
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,32 @@
|
|
|
8
8
|
|
|
9
9
|
<!-- towncrier release notes start -->
|
|
10
10
|
|
|
11
|
+
## 16.7.0 (2023-01-11)
|
|
12
|
+
|
|
13
|
+
### Feature
|
|
14
|
+
|
|
15
|
+
- Show project name and version in control panel @sneridagh [#4176](https://github.com/plone/volto/issues/4176)
|
|
16
|
+
- Enhance Cypress content creation command @sneridagh [#4210](https://github.com/plone/volto/issues/4210)
|
|
17
|
+
|
|
18
|
+
### Bugfix
|
|
19
|
+
|
|
20
|
+
- Improve matching in keyboard slash menu. [davisagli] [#4187](https://github.com/plone/volto/issues/4187)
|
|
21
|
+
- (fix): sidebar is not displaying correctly when clicking on a lead image field. @dobri1408 [#4191](https://github.com/plone/volto/issues/4191)
|
|
22
|
+
- Cleanup `package.json` scripts section @sneridagh [#4193](https://github.com/plone/volto/issues/4193)
|
|
23
|
+
- Fixed condition to select without vocabulary @SaraBianchi [#4200](https://github.com/plone/volto/issues/4200)
|
|
24
|
+
- fix iframe covering the page due to a react-error-overlay bug @reebalazs [#4242](https://github.com/plone/volto/issues/4242)
|
|
25
|
+
|
|
26
|
+
### Documentation
|
|
27
|
+
|
|
28
|
+
- Add description for different types of blocks. @MAX-786 [#3827](https://github.com/plone/volto/issues/3827)
|
|
29
|
+
- 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)
|
|
30
|
+
- Add todo regarding management of Plone's backend. Update versions. [stevepiercy] [#4198](https://github.com/plone/volto/issues/4198)
|
|
31
|
+
- Pin Sphinx<5,>=3 due to sphinx-book-theme 0.3.3 requirement. [stevepiercy] [#4199](https://github.com/plone/volto/issues/4199)
|
|
32
|
+
- 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)
|
|
33
|
+
- 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)
|
|
34
|
+
- 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)
|
|
35
|
+
|
|
36
|
+
|
|
11
37
|
## 16.6.0 (2022-12-23)
|
|
12
38
|
|
|
13
39
|
### Feature
|
|
@@ -84,7 +110,7 @@
|
|
|
84
110
|
|
|
85
111
|
### Feature
|
|
86
112
|
|
|
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)
|
|
113
|
+
- 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
114
|
- 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
115
|
- Use the component registry for `Container` component in DefaultView @sneridagh [#4032](https://github.com/plone/volto/issues/4032)
|
|
90
116
|
- Update missing german translations @steffenri
|
|
@@ -160,7 +186,7 @@
|
|
|
160
186
|
- Staticize Poppins font to be compliant with EU privacy. Import from GoogleFont is disabled in site.variables. @giuliaghisini
|
|
161
187
|
- 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
188
|
- 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.
|
|
189
|
+
- 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
190
|
- The complete configuration registry is passed to the add-ons and the project configuration pipeline @sneridagh
|
|
165
191
|
- Refactor the component registry API in the configuration registry @sneridagh @tiberiuichim
|
|
166
192
|
- change password-reset url to be consistent with Plone configuration @erral
|
|
@@ -460,8 +486,8 @@ See https://6.dev-docs.plone.org/volto/upgrade-guide/index.html for more informa
|
|
|
460
486
|
- Improve English grammar and syntax in backend docs. @stevepiercy
|
|
461
487
|
- Fix JSX syntax highlighting. Remove duplicate heading. @stevepiercy
|
|
462
488
|
- 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
|
|
489
|
+
- Updated `simple.md` @MdSahil-oss
|
|
490
|
+
- Fix indentation in nginx configuration in `simple.md` @stevepiercy
|
|
465
491
|
- Remove sphinx_sitemap configuration because Volto's docs are now imported into the main docs, making this setting unnecessary. @stevepiercy
|
|
466
492
|
- Set the ogp_site_url to main docs, instead of training. @stevepiercy
|
|
467
493
|
- `aria-*` attributes are now parsed correctly by jsx-lexer 2.0. @stevepiercy
|
|
@@ -1098,7 +1124,7 @@ See https://6.dev-docs.plone.org/volto/upgrade-guide/index.html for more informa
|
|
|
1098
1124
|
### Breaking
|
|
1099
1125
|
|
|
1100
1126
|
- The complete configuration registry is passed to the add-ons and the project configuration pipeline
|
|
1101
|
-
See https://docs.
|
|
1127
|
+
See https://6.docs.plone.org/volto/upgrade-guide/index.html for more information. @sneridagh
|
|
1102
1128
|
- Refactor the component registry API in the configuration registry @sneridagh @tiberiuichim
|
|
1103
1129
|
|
|
1104
1130
|
### Bugfix
|
|
@@ -1123,7 +1149,7 @@ See https://6.dev-docs.plone.org/volto/upgrade-guide/index.html for more informa
|
|
|
1123
1149
|
|
|
1124
1150
|
### Breaking
|
|
1125
1151
|
|
|
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.
|
|
1152
|
+
- 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
1153
|
|
|
1128
1154
|
### Bugfix
|
|
1129
1155
|
|
|
@@ -1387,8 +1413,8 @@ Use next release instead: https://github.com/plone/volto/releases/tag/16.0.0-alp
|
|
|
1387
1413
|
|
|
1388
1414
|
### Documentation
|
|
1389
1415
|
|
|
1390
|
-
- Updated simple.md @MdSahil-oss
|
|
1391
|
-
- Fix indentation in nginx configuration in simple.md @stevepiercy
|
|
1416
|
+
- Updated `simple.md` @MdSahil-oss
|
|
1417
|
+
- Fix indentation in nginx configuration in `simple.md` @stevepiercy
|
|
1392
1418
|
|
|
1393
1419
|
## 16.0.0-alpha.3 (2022-05-16)
|
|
1394
1420
|
|
|
@@ -1642,7 +1668,7 @@ Use next release instead: https://github.com/plone/volto/releases/tag/16.0.0-alp
|
|
|
1642
1668
|
|
|
1643
1669
|
### Documentation
|
|
1644
1670
|
|
|
1645
|
-
- Updated README.md @ktsrivastava29
|
|
1671
|
+
- Updated `README.md` @ktsrivastava29
|
|
1646
1672
|
- Added language to code-blocks in md files @ktsrivastava29
|
|
1647
1673
|
- Added html_meta values and labels for Intersphinx cross-references from Trainings. @stevepiercy
|
|
1648
1674
|
- Replaced `docs.voltocms.com` with MyST references. @stevepiercy
|
|
@@ -1858,7 +1884,7 @@ Use next release instead: https://github.com/plone/volto/releases/tag/16.0.0-alp
|
|
|
1858
1884
|
### Breaking
|
|
1859
1885
|
|
|
1860
1886
|
- 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.
|
|
1887
|
+
See https://6.docs.plone.org/volto/upgrade-guide/index.html for more information.
|
|
1862
1888
|
|
|
1863
1889
|
### Feature
|
|
1864
1890
|
|
|
@@ -1871,7 +1897,7 @@ Use next release instead: https://github.com/plone/volto/releases/tag/16.0.0-alp
|
|
|
1871
1897
|
- Markup change in `LinkView` component.
|
|
1872
1898
|
- Rename `core-sandbox` to `coresandbox` for sake of consistency @sneridagh
|
|
1873
1899
|
- Extend the original intent and rename `RAZZLE_TESTING_ADDONS` to `ADDONS`. @sneridagh
|
|
1874
|
-
See https://docs.
|
|
1900
|
+
See https://6.docs.plone.org/volto/upgrade-guide/index.html for more information.
|
|
1875
1901
|
|
|
1876
1902
|
### Internal
|
|
1877
1903
|
|
|
@@ -1917,7 +1943,7 @@ Use next release instead: https://github.com/plone/volto/releases/tag/16.0.0-alp
|
|
|
1917
1943
|
### Breaking
|
|
1918
1944
|
|
|
1919
1945
|
- Upgrade `react-cookie` to latest version. @sneridagh @robgietema
|
|
1920
|
-
See https://docs.
|
|
1946
|
+
See https://6.docs.plone.org/volto/upgrade-guide/index.html for more information.
|
|
1921
1947
|
|
|
1922
1948
|
## 14.10.0 (2022-02-08)
|
|
1923
1949
|
|
|
@@ -2046,7 +2072,7 @@ new users/evaluators. @fredvd
|
|
|
2046
2072
|
### Internal
|
|
2047
2073
|
|
|
2048
2074
|
- 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/
|
|
2075
|
+
- Fix quirky Cypress test in "DX control panel schema" (see https://github.com/plone/volto/actions/runs/1692689792/jobs/2306969715) @sneridagh
|
|
2050
2076
|
|
|
2051
2077
|
## 14.2.1 (2022-01-12)
|
|
2052
2078
|
|
|
@@ -2110,11 +2136,11 @@ new users/evaluators. @fredvd
|
|
|
2110
2136
|
|
|
2111
2137
|
### Breaking
|
|
2112
2138
|
|
|
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.
|
|
2139
|
+
- 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
2140
|
- 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
2141
|
- Revisited, rethought and refactored Seamless mode @sneridagh
|
|
2116
2142
|
For more information, please read the deploying guide
|
|
2117
|
-
https://docs.
|
|
2143
|
+
https://6.docs.plone.org/volto/deploying/seamless-mode.html
|
|
2118
2144
|
- 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
2145
|
- Removed pagination in vocabularies widgets (SelectWidget, ArrayWidget, TokenWidget) and introduced subrequest to vocabulary action. @giuliaghisini
|
|
2120
2146
|
- 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 +2152,14 @@ new users/evaluators. @fredvd
|
|
|
2126
2152
|
- Use title instead of id as a source of translation in "Variation" field in block enhancers @sneridagh
|
|
2127
2153
|
- 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
2154
|
|
|
2129
|
-
See https://docs.
|
|
2155
|
+
See https://6.docs.plone.org/volto/upgrade-guide/index.html for more information about all the breaking changes.
|
|
2130
2156
|
|
|
2131
2157
|
### Feature
|
|
2132
2158
|
|
|
2133
2159
|
- Support Node 16 @timo
|
|
2134
2160
|
- Content locking support for Plone (`plone.locking`) @avoinea
|
|
2135
2161
|
- Add the new search block @tiberiuichim @kreafox @sneridagh
|
|
2136
|
-
- Provide
|
|
2162
|
+
- 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
2163
|
- Defaults are observed in block data if `InlineForm` or `BlockDataForm` are used. @sneridagh @tiberiuichim
|
|
2138
2164
|
- Apply form defaults from RenderBlocks and block Edit using a new helper, `applyBlockDefaults` @tiberiuichim
|
|
2139
2165
|
- 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 +2512,7 @@ See https://docs.voltocms.com/upgrade-guide/ for more information about all the
|
|
|
2486
2512
|
|
|
2487
2513
|
### Feature
|
|
2488
2514
|
|
|
2489
|
-
- Provide
|
|
2515
|
+
- 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
2516
|
|
|
2491
2517
|
## 14.0.0-alpha.25 (2021-11-01)
|
|
2492
2518
|
|
|
@@ -2561,10 +2587,10 @@ See https://docs.voltocms.com/upgrade-guide/ for more information about all the
|
|
|
2561
2587
|
|
|
2562
2588
|
- Revisited, rethought and refactored Seamless mode @sneridagh
|
|
2563
2589
|
For more information, please read the deploying guide
|
|
2564
|
-
https://docs.
|
|
2590
|
+
https://6.docs.plone.org/volto/deploying/seamless-mode.html
|
|
2565
2591
|
|
|
2566
|
-
and the upgrade guide
|
|
2567
|
-
https://docs.
|
|
2592
|
+
and the upgrade guide
|
|
2593
|
+
https://6.docs.plone.org/volto/upgrade-guide/index.html
|
|
2568
2594
|
|
|
2569
2595
|
### Bugfix
|
|
2570
2596
|
|
|
@@ -2608,7 +2634,7 @@ https://docs.voltocms.com/upgrade-guide/
|
|
|
2608
2634
|
- Adjusted main `Logo` component styling @sneridagh
|
|
2609
2635
|
|
|
2610
2636
|
For more information, please read the upgrade guide
|
|
2611
|
-
https://docs.
|
|
2637
|
+
https://6.docs.plone.org/volto/upgrade-guide/index.html
|
|
2612
2638
|
|
|
2613
2639
|
### Feature
|
|
2614
2640
|
|
|
@@ -2619,7 +2645,7 @@ https://docs.voltocms.com/upgrade-guide/
|
|
|
2619
2645
|
- Improved developer documentation. Proof read several chapters, most importantly the upgrade guide @ichim-david
|
|
2620
2646
|
- Use Plone logo (Closes #2632) @ericof
|
|
2621
2647
|
- Updated Brazilian Portuguese translations @ericof
|
|
2622
|
-
- Footer: Point to plone.org instead of plone.com @ericof
|
|
2648
|
+
- Footer: Point to `plone.org` instead of `plone.com` @ericof
|
|
2623
2649
|
- Fix "make start-frontend" @tisto
|
|
2624
2650
|
- Update all the tests infrastructure for the new `volto-guillotina` addon @sneridagh
|
|
2625
2651
|
|
|
@@ -2752,8 +2778,8 @@ https://docs.voltocms.com/upgrade-guide/
|
|
|
2752
2778
|
|
|
2753
2779
|
### Breaking
|
|
2754
2780
|
|
|
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.
|
|
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.
|
|
2781
|
+
- 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
|
|
2782
|
+
- 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
2783
|
|
|
2758
2784
|
### Feature
|
|
2759
2785
|
|
|
@@ -2803,7 +2829,7 @@ https://docs.voltocms.com/upgrade-guide/
|
|
|
2803
2829
|
|
|
2804
2830
|
- Disabled all the other configuration options when user did not choose any criteria in listing block @iFlameing
|
|
2805
2831
|
- Updated Brazilian Portuguese translations @ericof
|
|
2806
|
-
- Footer: Point to plone.org instead of plone.com @ericof
|
|
2832
|
+
- Footer: Point to `plone.org` instead of `plone.com` @ericof
|
|
2807
2833
|
- Array and token widget available as named widget @nzambello
|
|
2808
2834
|
|
|
2809
2835
|
## 13.12.0 (2021-08-20)
|
|
@@ -3076,7 +3102,7 @@ https://docs.voltocms.com/upgrade-guide/
|
|
|
3076
3102
|
- 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
3103
|
|
|
3078
3104
|
For a more information, please read the upgrade guide
|
|
3079
|
-
https://docs.
|
|
3105
|
+
https://6.docs.plone.org/volto/upgrade-guide/index.html
|
|
3080
3106
|
|
|
3081
3107
|
### Feature
|
|
3082
3108
|
|
|
@@ -3190,7 +3216,7 @@ https://docs.voltocms.com/upgrade-guide/
|
|
|
3190
3216
|
- 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
3217
|
|
|
3192
3218
|
For a more information, please read the upgrade guide
|
|
3193
|
-
https://docs.
|
|
3219
|
+
https://6.docs.plone.org/volto/upgrade-guide/index.html
|
|
3194
3220
|
|
|
3195
3221
|
### Bugfix
|
|
3196
3222
|
|
|
@@ -3240,7 +3266,7 @@ https://docs.voltocms.com/upgrade-guide/
|
|
|
3240
3266
|
- Get rid of the font icons in the control panels overview @sneridagh
|
|
3241
3267
|
|
|
3242
3268
|
For a complete list of actions to follow, please read the upgrade guide
|
|
3243
|
-
https://docs.
|
|
3269
|
+
https://6.docs.plone.org/volto/upgrade-guide/index.html
|
|
3244
3270
|
|
|
3245
3271
|
### Feature
|
|
3246
3272
|
|
|
@@ -3391,7 +3417,7 @@ https://docs.voltocms.com/upgrade-guide/
|
|
|
3391
3417
|
|
|
3392
3418
|
### Internal
|
|
3393
3419
|
|
|
3394
|
-
- Add Storybook to the main docs (docs.
|
|
3420
|
+
- Add Storybook to the main docs (https://6.docs.plone.org/storybook/) build @sneridagh
|
|
3395
3421
|
|
|
3396
3422
|
## 12.5.0 (2021-03-31)
|
|
3397
3423
|
|
|
@@ -3539,7 +3565,7 @@ https://docs.voltocms.com/upgrade-guide/
|
|
|
3539
3565
|
### Breaking
|
|
3540
3566
|
|
|
3541
3567
|
- Introduction of the new Volto Configuration Registry @sneridagh @tiberiuichim
|
|
3542
|
-
For more information about this breaking change: https://docs.
|
|
3568
|
+
For more information about this breaking change: https://6.docs.plone.org/volto/upgrade-guide/index.html#upgrading-to-volto-12-x-x
|
|
3543
3569
|
|
|
3544
3570
|
### Feature
|
|
3545
3571
|
|
|
@@ -3554,7 +3580,7 @@ https://docs.voltocms.com/upgrade-guide/
|
|
|
3554
3580
|
### Breaking
|
|
3555
3581
|
|
|
3556
3582
|
- Introduction of the new Volto Configuration Registry @sneridagh @tiberiuichim
|
|
3557
|
-
For more information about this breaking change: https://docs.
|
|
3583
|
+
For more information about this breaking change: https://6.docs.plone.org/volto/upgrade-guide/index.html#upgrading-to-volto-12-x-x
|
|
3558
3584
|
|
|
3559
3585
|
## 11.1.0 (2021-02-08)
|
|
3560
3586
|
|
|
@@ -3834,7 +3860,7 @@ https://docs.voltocms.com/upgrade-guide/
|
|
|
3834
3860
|
### Breaking
|
|
3835
3861
|
|
|
3836
3862
|
- Removal of the Razzle patch that was introduced in 9.0.0 @sneridagh
|
|
3837
|
-
See https://docs.
|
|
3863
|
+
See https://6.docs.plone.org/volto/upgrade-guide/index.html for more details.
|
|
3838
3864
|
- Fetched content with `getContent` no longer includes fullobjects by default @tiberiuichim
|
|
3839
3865
|
|
|
3840
3866
|
### Bugfix
|
|
@@ -3854,7 +3880,7 @@ https://docs.voltocms.com/upgrade-guide/
|
|
|
3854
3880
|
## 9.2.0 (2020-11-24)
|
|
3855
3881
|
|
|
3856
3882
|
**This is a brown bag release and should not be used, upgrade to Volto 10.x.x instead.**
|
|
3857
|
-
See https://docs.
|
|
3883
|
+
See https://6.docs.plone.org/volto/upgrade-guide/index.html for more information.
|
|
3858
3884
|
|
|
3859
3885
|
### Feature
|
|
3860
3886
|
|
|
@@ -3915,7 +3941,7 @@ See https://docs.voltocms.com/upgrade-guide/ for more information.
|
|
|
3915
3941
|
- @babel/plugin-proposal-function-sent
|
|
3916
3942
|
|
|
3917
3943
|
For a complete list of actions to follow, please read the upgrade guide
|
|
3918
|
-
https://docs.
|
|
3944
|
+
https://6.docs.plone.org/volto/upgrade-guide/index.html
|
|
3919
3945
|
|
|
3920
3946
|
### Feature
|
|
3921
3947
|
|
|
@@ -4001,7 +4027,7 @@ https://docs.voltocms.com/upgrade-guide/
|
|
|
4001
4027
|
|
|
4002
4028
|
### Feature
|
|
4003
4029
|
|
|
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://
|
|
4030
|
+
- 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
4031
|
|
|
4006
4032
|
## 8.7.1 (2020-10-29)
|
|
4007
4033
|
|
|
@@ -4525,7 +4551,7 @@ https://docs.voltocms.com/upgrade-guide/
|
|
|
4525
4551
|
|
|
4526
4552
|
### Feature
|
|
4527
4553
|
|
|
4528
|
-
- Provide a new webpack alias, `volto-themes`, which points to Volto's theme folder. See details in the https://docs.
|
|
4554
|
+
- 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
4555
|
|
|
4530
4556
|
### Internal
|
|
4531
4557
|
|
|
@@ -4674,7 +4700,7 @@ https://docs.voltocms.com/upgrade-guide/
|
|
|
4674
4700
|
### Breaking
|
|
4675
4701
|
|
|
4676
4702
|
- Removed support for CSS modules, since Razzle 3.1.x do not support them @sneridagh
|
|
4677
|
-
- Updated Volto dependencies - See https://docs.
|
|
4703
|
+
- Updated Volto dependencies - See https://6.docs.plone.org/volto/upgrade-guide/index.html for more information @sneridagh
|
|
4678
4704
|
- By adding `react-beautiful-dnd` in the block editor we are introducing new wrappers
|
|
4679
4705
|
(belonging to the lib machinery) in the structure. The original structure and class
|
|
4680
4706
|
names are still in there for maintain maximum backwards compatibility. Those might be
|
|
@@ -5144,7 +5170,7 @@ refer to all of them in https://github.com/plone/volto/releases
|
|
|
5144
5170
|
|
|
5145
5171
|
### Internal
|
|
5146
5172
|
|
|
5147
|
-
- Added forest.eea.europa.eu as deployed Volto in production @tiberiuichim
|
|
5173
|
+
- Added `forest.eea.europa.eu` as deployed Volto in production @tiberiuichim
|
|
5148
5174
|
- Add SemanticUI responsive variables to the responsive utils @sneridagh
|
|
5149
5175
|
- Added `yarnhook` to the build @sneridagh
|
|
5150
5176
|
|
|
@@ -5191,7 +5217,7 @@ refer to all of them in https://github.com/plone/volto/releases
|
|
|
5191
5217
|
|
|
5192
5218
|
### Added
|
|
5193
5219
|
|
|
5194
|
-
- Lead image behavior block @sneridagh sponsored by CMSCOM.jp @terapyon
|
|
5220
|
+
- Lead image behavior block @sneridagh sponsored by `CMSCOM.jp` @terapyon
|
|
5195
5221
|
|
|
5196
5222
|
### Changes
|
|
5197
5223
|
|
|
@@ -5503,7 +5529,7 @@ refer to all of them in https://github.com/plone/volto/releases
|
|
|
5503
5529
|
### Internal
|
|
5504
5530
|
|
|
5505
5531
|
- Add complete husky config @sneridagh
|
|
5506
|
-
- Add COC.md file @timo
|
|
5532
|
+
- Add `COC.md` file @timo
|
|
5507
5533
|
|
|
5508
5534
|
## 4.0.0-alpha.5 (2019-09-28)
|
|
5509
5535
|
|
|
@@ -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
|
-
|
|
67
|
-
|
|
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
|
-
|
|
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
|
-
|
|
89
|
-
|
|
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
|
-
|
|
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
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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/news/4160.bug
ADDED
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
}
|
|
10
10
|
],
|
|
11
11
|
"license": "MIT",
|
|
12
|
-
"version": "16.
|
|
12
|
+
"version": "16.7.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",
|
|
@@ -35,15 +35,11 @@ const SlashMenu = ({
|
|
|
35
35
|
availableBlocks,
|
|
36
36
|
}) => {
|
|
37
37
|
const intl = useIntl();
|
|
38
|
-
// Filter out slate block
|
|
39
|
-
const filteredAvailableBlocks = availableBlocks.filter(
|
|
40
|
-
(block) => block.id !== 'slate',
|
|
41
|
-
);
|
|
42
38
|
|
|
43
39
|
return (
|
|
44
40
|
<div className="power-user-menu">
|
|
45
41
|
<Menu vertical fluid borderless>
|
|
46
|
-
{
|
|
42
|
+
{availableBlocks.map((block, index) => (
|
|
47
43
|
<Menu.Item
|
|
48
44
|
key={block.id}
|
|
49
45
|
className={block.id}
|
|
@@ -61,7 +57,7 @@ const SlashMenu = ({
|
|
|
61
57
|
})}
|
|
62
58
|
</Menu.Item>
|
|
63
59
|
))}
|
|
64
|
-
{
|
|
60
|
+
{availableBlocks.length === 0 && (
|
|
65
61
|
<Menu.Item>
|
|
66
62
|
<FormattedMessage
|
|
67
63
|
id="No matching blocks"
|
|
@@ -81,11 +77,25 @@ SlashMenu.propTypes = {
|
|
|
81
77
|
blocksConfig: PropTypes.arrayOf(PropTypes.any),
|
|
82
78
|
};
|
|
83
79
|
|
|
80
|
+
const translateBlockTitle = (block, intl) =>
|
|
81
|
+
intl.formatMessage({
|
|
82
|
+
id: block.title,
|
|
83
|
+
defaultMessage: block.title,
|
|
84
|
+
});
|
|
85
|
+
const scoreBlock = (block, slashCommand, intl) => {
|
|
86
|
+
if (!slashCommand) return 0;
|
|
87
|
+
const title = translateBlockTitle(block, intl).toLowerCase();
|
|
88
|
+
// prefer initial title matches, then title substring matches
|
|
89
|
+
if (title.indexOf(slashCommand[1]) === 0) return 2;
|
|
90
|
+
if (title.indexOf(slashCommand[1]) !== -1) return 1;
|
|
91
|
+
};
|
|
92
|
+
|
|
84
93
|
/**
|
|
85
94
|
* A SlashMenu wrapper implemented as a volto-slate PersistentHelper.
|
|
86
95
|
*/
|
|
87
96
|
const PersistentSlashMenu = ({ editor }) => {
|
|
88
97
|
const props = editor.getBlockProps();
|
|
98
|
+
const intl = useIntl();
|
|
89
99
|
const {
|
|
90
100
|
block,
|
|
91
101
|
blocksConfig,
|
|
@@ -115,14 +125,33 @@ const PersistentSlashMenu = ({ editor }) => {
|
|
|
115
125
|
? !item.restricted({ properties, block: item })
|
|
116
126
|
: !item.restricted,
|
|
117
127
|
)
|
|
118
|
-
.filter(
|
|
119
|
-
|
|
128
|
+
.filter((block) => {
|
|
129
|
+
// typed text is a substring of the title or id
|
|
130
|
+
const title = translateBlockTitle(block, intl).toLowerCase();
|
|
131
|
+
return (
|
|
132
|
+
block.id !== 'slate' &&
|
|
120
133
|
slashCommand &&
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
)
|
|
124
|
-
.sort((a, b) =>
|
|
125
|
-
|
|
134
|
+
title.indexOf(slashCommand[1]) !== -1
|
|
135
|
+
);
|
|
136
|
+
})
|
|
137
|
+
.sort((a, b) => {
|
|
138
|
+
const scoreDiff =
|
|
139
|
+
scoreBlock(b, slashCommand, intl) -
|
|
140
|
+
scoreBlock(a, slashCommand, intl);
|
|
141
|
+
if (scoreDiff) return scoreDiff;
|
|
142
|
+
// sort equally scored blocks by title
|
|
143
|
+
return translateBlockTitle(a, intl).localeCompare(
|
|
144
|
+
translateBlockTitle(b, intl),
|
|
145
|
+
);
|
|
146
|
+
}),
|
|
147
|
+
[
|
|
148
|
+
allowedBlocks,
|
|
149
|
+
blocksConfig,
|
|
150
|
+
intl,
|
|
151
|
+
properties,
|
|
152
|
+
slashCommand,
|
|
153
|
+
useAllowedBlocks,
|
|
154
|
+
],
|
|
126
155
|
);
|
|
127
156
|
|
|
128
157
|
const slashMenuSize = availableBlocks.length;
|
|
@@ -64,7 +64,11 @@ class Edit extends Component {
|
|
|
64
64
|
* @memberof Edit
|
|
65
65
|
*/
|
|
66
66
|
shouldComponentUpdate(nextProps) {
|
|
67
|
-
return
|
|
67
|
+
return (
|
|
68
|
+
this.props.selected ||
|
|
69
|
+
nextProps.selected ||
|
|
70
|
+
!isEqual(this.props.data, nextProps.data)
|
|
71
|
+
);
|
|
68
72
|
}
|
|
69
73
|
|
|
70
74
|
node = React.createRef();
|
|
@@ -7,7 +7,14 @@ import React from 'react';
|
|
|
7
7
|
import { FormattedMessage } from 'react-intl';
|
|
8
8
|
import { isEmpty } from 'lodash';
|
|
9
9
|
|
|
10
|
-
import {
|
|
10
|
+
import {
|
|
11
|
+
version as voltoVersion,
|
|
12
|
+
name as voltoName,
|
|
13
|
+
} from '../../../../package.json';
|
|
14
|
+
import {
|
|
15
|
+
version as projectVersion,
|
|
16
|
+
name as projectName,
|
|
17
|
+
} from '@root/../package.json';
|
|
11
18
|
|
|
12
19
|
import { defineMessages, useIntl } from 'react-intl';
|
|
13
20
|
import config from '@plone/volto/registry';
|
|
@@ -30,6 +37,7 @@ const VersionOverview = ({
|
|
|
30
37
|
}) => {
|
|
31
38
|
const intl = useIntl();
|
|
32
39
|
const { addonsInfo } = config.settings;
|
|
40
|
+
const isProject = voltoName !== projectName;
|
|
33
41
|
|
|
34
42
|
return (
|
|
35
43
|
<>
|
|
@@ -40,6 +48,11 @@ const VersionOverview = ({
|
|
|
40
48
|
paddingLeft: '1rem',
|
|
41
49
|
}}
|
|
42
50
|
>
|
|
51
|
+
{isProject ? (
|
|
52
|
+
<li>
|
|
53
|
+
{projectName} {projectVersion}
|
|
54
|
+
</li>
|
|
55
|
+
) : null}
|
|
43
56
|
{voltoVersion && <li>Volto {voltoVersion}</li>}
|
|
44
57
|
<li>Plone {plone_version}</li>
|
|
45
58
|
<li>plone.restapi {plone_restapi_version}</li>
|
|
@@ -7,7 +7,7 @@ import React from 'react';
|
|
|
7
7
|
// import { diffWords as dWords } from 'diff';
|
|
8
8
|
import { join, map } from 'lodash';
|
|
9
9
|
import PropTypes from 'prop-types';
|
|
10
|
-
import {
|
|
10
|
+
import { Grid } from 'semantic-ui-react';
|
|
11
11
|
import ReactDOMServer from 'react-dom/server';
|
|
12
12
|
import { Provider } from 'react-intl-redux';
|
|
13
13
|
import { createBrowserHistory } from 'history';
|
|
@@ -105,75 +105,72 @@ const DiffField = ({
|
|
|
105
105
|
parts = diffWords(one?.title || one, two?.title || two);
|
|
106
106
|
}
|
|
107
107
|
return (
|
|
108
|
-
<
|
|
109
|
-
<
|
|
110
|
-
<
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
(!part.added && `<span>${part.value}</span>`) ||
|
|
127
|
-
'',
|
|
128
|
-
),
|
|
129
|
-
'',
|
|
108
|
+
<Grid data-testid="DiffField">
|
|
109
|
+
<Grid.Row>
|
|
110
|
+
<Grid.Column width={12}>{schema.title}</Grid.Column>
|
|
111
|
+
</Grid.Row>
|
|
112
|
+
|
|
113
|
+
{view === 'split' && (
|
|
114
|
+
<Grid.Row>
|
|
115
|
+
<Grid.Column width={6} verticalAlign="top">
|
|
116
|
+
<span
|
|
117
|
+
dangerouslySetInnerHTML={{
|
|
118
|
+
__html: join(
|
|
119
|
+
map(
|
|
120
|
+
parts,
|
|
121
|
+
(part) =>
|
|
122
|
+
(part.removed &&
|
|
123
|
+
`<span class="deletion">${part.value}</span>`) ||
|
|
124
|
+
(!part.added && `<span>${part.value}</span>`) ||
|
|
125
|
+
'',
|
|
130
126
|
),
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
127
|
+
'',
|
|
128
|
+
),
|
|
129
|
+
}}
|
|
130
|
+
/>
|
|
131
|
+
</Grid.Column>
|
|
132
|
+
<Grid.Column width={6} verticalAlign="top">
|
|
133
|
+
<span
|
|
134
|
+
dangerouslySetInnerHTML={{
|
|
135
|
+
__html: join(
|
|
136
|
+
map(
|
|
137
|
+
parts,
|
|
138
|
+
(part) =>
|
|
139
|
+
(part.added &&
|
|
140
|
+
`<span class="addition">${part.value}</span>`) ||
|
|
141
|
+
(!part.removed && `<span>${part.value}</span>`) ||
|
|
142
|
+
'',
|
|
147
143
|
),
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
144
|
+
'',
|
|
145
|
+
),
|
|
146
|
+
}}
|
|
147
|
+
/>
|
|
148
|
+
</Grid.Column>
|
|
149
|
+
</Grid.Row>
|
|
150
|
+
)}
|
|
151
|
+
{view === 'unified' && (
|
|
152
|
+
<Grid.Row>
|
|
153
|
+
<Grid.Column width={16} verticalAlign="top">
|
|
154
|
+
<span
|
|
155
|
+
dangerouslySetInnerHTML={{
|
|
156
|
+
__html: join(
|
|
157
|
+
map(
|
|
158
|
+
parts,
|
|
159
|
+
(part) =>
|
|
160
|
+
(part.removed &&
|
|
161
|
+
`<span class="deletion">${part.value}</span>`) ||
|
|
162
|
+
(part.added &&
|
|
163
|
+
`<span class="addition">${part.value}</span>`) ||
|
|
164
|
+
(!part.added && `<span>${part.value}</span>`),
|
|
169
165
|
),
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
166
|
+
'',
|
|
167
|
+
),
|
|
168
|
+
}}
|
|
169
|
+
/>
|
|
170
|
+
</Grid.Column>
|
|
171
|
+
</Grid.Row>
|
|
172
|
+
)}
|
|
173
|
+
</Grid>
|
|
177
174
|
);
|
|
178
175
|
};
|
|
179
176
|
|
|
@@ -236,7 +236,8 @@ class ArrayWidget extends Component {
|
|
|
236
236
|
!this.props.items?.choices?.length &&
|
|
237
237
|
!this.props.choices?.length &&
|
|
238
238
|
this.props.vocabLoading === undefined &&
|
|
239
|
-
!this.props.vocabLoaded
|
|
239
|
+
!this.props.vocabLoaded &&
|
|
240
|
+
this.props.vocabBaseUrl
|
|
240
241
|
) {
|
|
241
242
|
this.props.getVocabulary({
|
|
242
243
|
vocabNameOrURL: this.props.vocabBaseUrl,
|