Skip to content

Commit

Permalink
Merge branch 'master' into api-plone-526
Browse files Browse the repository at this point in the history
  • Loading branch information
sneridagh authored Dec 1, 2021
2 parents e337dd2 + a12ee63 commit 26d15f4
Show file tree
Hide file tree
Showing 110 changed files with 2,377 additions and 683 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ include
pip-selfcheck.json
pyvenv.cfg
share
/api/lib64

# locales
locales/*.json
Expand Down
92 changes: 91 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,96 @@

### Internal

## 14.0.0-alpha.40 (2021-12-01)

### Bugfix

- In search block, read SearchableText search param, to use it as search text input
@tiberiuichim
- Fix missing translation in link content type @iRohitSingh
- Fixed drag-and-drop list placeholder issues @reebalazs

## 14.0.0-alpha.39 (2021-11-30)

### Bugfix

- QuerystringWidget more resilient on old schemas @nzambello

## 14.0.0-alpha.38 (2021-11-30)

### Bugfix

- Use subrequest in hero block to not lost locking token. @cekk
- Always add lang attr in html @nzambello
- Fix time widget position on 24h format @nzambello

### Internal

- Remove getNavigation from Login.jsx @iRohitSingh
- Allow listing block to be used in non-content pages (when used in a slot it
shouldn't crash on add/edit pages) @tiberiuichim
- Fix typo "toolbalWidth" @iRohitSingh

## 14.0.0-alpha.37 (2021-11-26)

### Bugfix

- Fixed object browser selected items number. @giuliaghisini
- Fix action vocabularies call avoiding regex look behind @nzambello

### Internal

- Fix select family widgets stories in storybook @sneridagh

## 14.0.0-alpha.36 (2021-11-25)

### Bugfix

- Fix regression in actions vocabularies calls because the change to use contextual schemas @sneridagh
- Include block schema enhancers (main block schema enhancer + variation schema enhancer) when calculating block default data @tiberiuichim

### Internal

- Fix references to old configuration style in apiExpanders documentation @tiberiuichim
- Add `applySchemaDefaults`, in addition to `applyBlockDefaults`, to allow reuse in object widgets and other advanced scenarios @tiberiuichim

## 14.0.0-alpha.35 (2021-11-24)

### Bugfix

- Fix `isInternalURL` when `settings.internalApiPath` is empty @tiberiuichim
- Fix external link not supported by Navigation component #2853. @ericof
- Get Add/Edit schema contextually #2852 @ericof

### Internal

- Upgrade p.restapi to 8.15.2 @sneridagh

## 14.0.0-alpha.34 (2021-11-20)

### Feature

- Apply form defaults from RenderBlocks and block Edit using a new helper, `applyBlockDefaults` @tiberiuichim
- 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

## 14.0.0-alpha.33 (2021-11-20)

### Bugfix

- Fix downloadableObjects default value @giuliaghisini
- Folder contents table header and breadcrumbs dropdown now appear only from the
bottom, fixing an issue where the breadcrumb dropdown content was clipped
by the header area @ichim-david
- Folder contents sort dropdown is now also simple as the other dropdowns
ensuring we have the same behavior between adjecent dropdown @ichim-david
- Fix documention on block extensions, replace `render` with `template` to match Listing block @tiberiuichim

### Internal

- Upgrade stylelint to v14 (vscode-stylelint requires it now) @sneridagh
- Add several more stories for Storybook @tiberiuichim
- Add 2 new Volto websites by Eau de web for EEA @tiberiuichim

## 14.0.0-alpha.32 (2021-11-09)

### Breaking
Expand All @@ -32,7 +122,7 @@
- Fix the selection of Maps Block @iRohitSingh
- UniversalLink: handle direct download for content-type File if user is not logged. @giuliaghisini
- Fixed ObjectBrowserWidget when is multiple or maximumSelectionSize is not set @giuliaghisini
- Fix full-width image overlaps the drag handle @iRohitSingh
- Fix full-width image overlaps the drag handle @iRohitSingh
- Fix move item to top of the folder when clicking on move to top action button @iRohitSingh

### Internal
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -120,15 +120,15 @@ stop-backend-docker-guillotina:

.PHONY: test-acceptance-server
test-acceptance-server:
docker run -i --rm -e ZSERVER_HOST=0.0.0.0 -e ZSERVER_PORT=55001 -p 55001:55001 -e VERSIONS="plone.restapi=8.13.0 plone.rest=2.0.0a1" -e APPLY_PROFILES=plone.app.contenttypes:plone-content,plone.restapi:default,plone.volto:default-homepage -e CONFIGURE_PACKAGES=plone.app.contenttypes,plone.restapi,plone.volto,plone.volto.cors -e ADDONS='plone.app.robotframework plone.app.contenttypes plone.restapi plone.volto' plone ./bin/robot-server plone.app.robotframework.testing.PLONE_ROBOT_TESTING
docker run -i --rm -e ZSERVER_HOST=0.0.0.0 -e ZSERVER_PORT=55001 -p 55001:55001 -e VERSIONS="plone.restapi=8.15.2 plone.rest=2.0.0a1" -e APPLY_PROFILES=plone.app.contenttypes:plone-content,plone.restapi:default,plone.volto:default-homepage -e CONFIGURE_PACKAGES=plone.app.contenttypes,plone.restapi,plone.volto,plone.volto.cors -e ADDONS='plone.app.robotframework plone.app.contenttypes plone.restapi plone.volto' plone ./bin/robot-server plone.app.robotframework.testing.PLONE_ROBOT_TESTING

.PHONY: test-acceptance-server-multilingual
test-acceptance-server-multilingual:
docker run -i --rm -e ZSERVER_HOST=0.0.0.0 -e ZSERVER_PORT=55001 -p 55001:55001 -e VERSIONS="plone.restapi=8.13.0 plone.rest=2.0.0a1" -e APPLY_PROFILES=plone.app.contenttypes:plone-content,plone.restapi:default,plone.volto:multilingual -e CONFIGURE_PACKAGES=plone.app.contenttypes,plone.restapi,plone.volto,plone.volto.cors -e ADDONS='plone.app.robotframework plone.app.contenttypes plone.restapi plone.volto' plone ./bin/robot-server plone.app.robotframework.testing.PLONE_ROBOT_TESTING
docker run -i --rm -e ZSERVER_HOST=0.0.0.0 -e ZSERVER_PORT=55001 -p 55001:55001 -e VERSIONS="plone.restapi=8.15.2 plone.rest=2.0.0a1" -e APPLY_PROFILES=plone.app.contenttypes:plone-content,plone.restapi:default,plone.volto:multilingual -e CONFIGURE_PACKAGES=plone.app.contenttypes,plone.restapi,plone.volto,plone.volto.cors -e ADDONS='plone.app.robotframework plone.app.contenttypes plone.restapi plone.volto' plone ./bin/robot-server plone.app.robotframework.testing.PLONE_ROBOT_TESTING

.PHONY: test-acceptance-server-workingcopy
test-acceptance-server-workingcopy:
docker run -i --rm -e ZSERVER_HOST=0.0.0.0 -e ZSERVER_PORT=55001 -p 55001:55001 -e VERSIONS="plone.restapi=8.13.0 plone.app.iterate=4.0.2 plone.rest=2.0.0a1" -e APPLY_PROFILES=plone.app.contenttypes:plone-content,plone.restapi:default,plone.app.iterate:default,plone.volto:default-homepage -e CONFIGURE_PACKAGES=plone.app.contenttypes,plone.restapi,plone.volto,plone.volto.cors -e ADDONS='plone.app.robotframework plone.app.contenttypes plone.restapi plone.app.iterate plone.volto' plone ./bin/robot-server plone.app.robotframework.testing.PLONE_ROBOT_TESTING
docker run -i --rm -e ZSERVER_HOST=0.0.0.0 -e ZSERVER_PORT=55001 -p 55001:55001 -e VERSIONS="plone.restapi=8.15.2 plone.app.iterate=4.0.2 plone.rest=2.0.0a1" -e APPLY_PROFILES=plone.app.contenttypes:plone-content,plone.restapi:default,plone.app.iterate:default,plone.volto:default-homepage -e CONFIGURE_PACKAGES=plone.app.contenttypes,plone.restapi,plone.volto,plone.volto.cors -e ADDONS='plone.app.robotframework plone.app.contenttypes plone.restapi plone.app.iterate plone.volto' plone ./bin/robot-server plone.app.robotframework.testing.PLONE_ROBOT_TESTING
# ZSERVER_PORT=55001 CONFIGURE_PACKAGES=plone.app.contenttypes,plone.restapi,plone.app.iterate,plone.volto,plone.volto.cors APPLY_PROFILES=plone.app.contenttypes:plone-content,plone.restapi:default,plone.app.iterate:default,plone.volto:default-homepage ./api/bin/robot-server plone.app.robotframework.testing.PLONE_ROBOT_TESTING

.PHONY: test-acceptance-server-old
Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,10 @@ Volto is actively developed since 2017 and used in production since 2018 on the
- [Biblioteche Pianura Est](https://bibest.it) (Website of the Associated libraries of eastern plain. Developed by [RedTurtle](https://redturtle.it), 2021)
- [Camera di Commercio di Reggio Emilia](https://www.re.camcom.gov.it/) (Website Chamber of Commerce of Reggio Emilia. Developed by [RedTurtle](https://redturtle.it), 2021)
- [RawMaterial](https://rawmaterial.it/en) (Company's website. Developed by [RawMaterial](https://rawmaterial.it/en), 2021)
- Please create a new [issue](https://github.com/plone/volto/issues/new) or [pull request](https://github.com/plone/volto/pulls) to add your Volto-site here!
- [WISE-Freshwater](https://water.europa.eu/freshwater) (WISE-Freshwater, the Freshwater Information System for Europe. Developed by [Eau de web](https://eaudeweb.ro) for the European Environmental Agency, 2021)
- [EEA-IMSv4](https://www.eea.europa.eu/ims) (EEA Indicator Management System v4. Developed by [Eau de web](https://eaudeweb.ro) for the European Environmental Agency, 2021)

Please create a new [issue](https://github.com/plone/volto/issues/new) or [pull request](https://github.com/plone/volto/pulls) to add your Volto-site here!

## Documentation

Expand Down
1 change: 1 addition & 0 deletions api/buildout.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ eggs = ${instance:eggs}
setuptools =
zc.buildout =
plone.restapi = 8.14.0
plone.restapi = 8.15.2
plone.rest = 2.0.0a1


Expand Down
10 changes: 5 additions & 5 deletions docs/source/blocks/extensions.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ export default (config) => {
id: 'default',
title: 'Default',
isDefault: true,
render: SimpleTeaserView
template: SimpleTeaserView
},
{
id: 'card',
label: 'Card',
render: CardTeaserView,
template: CardTeaserView,
schemaEnhancer: ({schema, formData, intl}) => {
schema.properties.cardSize = '...'; // fill in your implementation
return schema;
Expand Down Expand Up @@ -110,17 +110,17 @@ export default (config) => {
id: 'default',
title: 'Default',
isDefault: true,
render: DefaultColumnRenderer
template: DefaultColumnRenderer
},
{
id: 'number',
title: 'Number',
render: NumberColumnRenderer,
template: NumberColumnRenderer,
},
{
id: 'colored',
title: 'Colored',
renderer: ColoredColumnRenderer,
template: ColoredColumnRenderer,
schemaEnhancer: ({formData, schema, intl}) => {
schema.properties.color = {
widget: 'color',
Expand Down
28 changes: 16 additions & 12 deletions docs/source/configuration/expanders.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,24 @@

You can configure the API expanders Volto uses using the `settings.apiExpanders` like this:

```js
import config from '@plone/volto/registry';
```jsx
import { GET_CONTENT } from '@plone/volto/constants/ActionTypes';

config.settings.apiExpanders = [
{
match: '',
GET_CONTENT: ['mycustomexpander'],
},
{
match: '/de',
GET_CONTENT: ['myothercustomexpander'],
}
]
export default function applyConfig (config) {
config.settings.apiExpanders = [
...config.settings.apiExpanders,
{
match: '',
GET_CONTENT: ['mycustomexpander'],
},
{
match: '/de',
GET_CONTENT: ['myothercustomexpander'],
}
];

return config;
}
```

The config accepts a list of matchers with the ability to filter by request path and action type, for maximum flexibility.
17 changes: 17 additions & 0 deletions docs/source/getting-started/others.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,26 @@
# Other learning resources

## Plone Trainings

On the [Plone Trainings Website](https://training.plone.org) you'll find
Volto-dedicated open training materials plus React and other
Javascript-centered trainings.

- [Volto](https://training.plone.org/5/volto/index.html)
- [Volto Hands-On](https://training.plone.org/5/voltohandson/index.html)
- [Volto Add-ons Development](https://training.plone.org/5/voltoaddons/index.html)
- [Plone Deployment](https://training.plone.org/5/plone-deployment/index.html)
- [React](https://training.plone.org/5/react/index.html)
- [JavaScript For Plone Developers](https://training.plone.org/5/javascript/index.html)

## PloneConf 2021

[Playlist on YouTube](https://www.youtube.com/playlist?list=PLGN9BI-OAQkQDLQinBwdEXpebDTQCwdGi)

## PloneConf 2020

[Playlist on YouTube](https://www.youtube.com/playlist?list=PLGN9BI-OAQkTJPayNdKIZ8lLDm5RVOLV3)

## PloneConf 2019

PloneConf 2019 had several Volto-relevant presentations.
Expand Down
5 changes: 5 additions & 0 deletions locales/de/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -2581,6 +2581,11 @@ msgstr "Der Button deaktiviert die Live-Suche, die Suchanfrage wird abgeschickt
msgid "The item could not be deleted."
msgstr "Das Objekt kann nicht gelöscht werden."

#: components/theme/View/LinkView
# defaultMessage: The link address is:
msgid "The link address is:"
msgstr ""

#: components/theme/Register/Register
# defaultMessage: The registration process has been successful. Please check your e-mail inbox for information on how activate your account.
msgid "The registration process has been successful. Please check your e-mail inbox for information on how activate your account."
Expand Down
5 changes: 5 additions & 0 deletions locales/en/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -2566,6 +2566,11 @@ msgstr ""
msgid "The item could not be deleted."
msgstr ""

#: components/theme/View/LinkView
# defaultMessage: The link address is:
msgid "The link address is:"
msgstr ""

#: components/theme/Register/Register
# defaultMessage: The registration process has been successful. Please check your e-mail inbox for information on how activate your account.
msgid "The registration process has been successful. Please check your e-mail inbox for information on how activate your account."
Expand Down
5 changes: 5 additions & 0 deletions locales/es/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -2576,6 +2576,11 @@ msgstr ""
msgid "The item could not be deleted."
msgstr ""

#: components/theme/View/LinkView
# defaultMessage: The link address is:
msgid "The link address is:"
msgstr ""

#: components/theme/Register/Register
# defaultMessage: The registration process has been successful. Please check your e-mail inbox for information on how activate your account.
msgid "The registration process has been successful. Please check your e-mail inbox for information on how activate your account."
Expand Down
5 changes: 5 additions & 0 deletions locales/eu/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -2573,6 +2573,11 @@ msgstr ""
msgid "The item could not be deleted."
msgstr ""

#: components/theme/View/LinkView
# defaultMessage: The link address is:
msgid "The link address is:"
msgstr ""

#: components/theme/Register/Register
# defaultMessage: The registration process has been successful. Please check your e-mail inbox for information on how activate your account.
msgid "The registration process has been successful. Please check your e-mail inbox for information on how activate your account."
Expand Down
5 changes: 5 additions & 0 deletions locales/fr/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -2583,6 +2583,11 @@ msgstr ""
msgid "The item could not be deleted."
msgstr ""

#: components/theme/View/LinkView
# defaultMessage: The link address is:
msgid "The link address is:"
msgstr ""

#: components/theme/Register/Register
# defaultMessage: The registration process has been successful. Please check your e-mail inbox for information on how activate your account.
msgid "The registration process has been successful. Please check your e-mail inbox for information on how activate your account."
Expand Down
5 changes: 5 additions & 0 deletions locales/it/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -2566,6 +2566,11 @@ msgstr "La presenza del bottone disabilita la ricerca al volo, la ricerca verrà
msgid "The item could not be deleted."
msgstr "L'elemento non può essere eliminato."

#: components/theme/View/LinkView
# defaultMessage: The link address is:
msgid "The link address is:"
msgstr ""

#: components/theme/Register/Register
# defaultMessage: The registration process has been successful. Please check your e-mail inbox for information on how activate your account.
msgid "The registration process has been successful. Please check your e-mail inbox for information on how activate your account."
Expand Down
5 changes: 5 additions & 0 deletions locales/ja/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -2574,6 +2574,11 @@ msgstr ""
msgid "The item could not be deleted."
msgstr ""

#: components/theme/View/LinkView
# defaultMessage: The link address is:
msgid "The link address is:"
msgstr ""

#: components/theme/Register/Register
# defaultMessage: The registration process has been successful. Please check your e-mail inbox for information on how activate your account.
msgid "The registration process has been successful. Please check your e-mail inbox for information on how activate your account."
Expand Down
5 changes: 5 additions & 0 deletions locales/nl/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -2585,6 +2585,11 @@ msgstr ""
msgid "The item could not be deleted."
msgstr ""

#: components/theme/View/LinkView
# defaultMessage: The link address is:
msgid "The link address is:"
msgstr ""

#: components/theme/Register/Register
# defaultMessage: The registration process has been successful. Please check your e-mail inbox for information on how activate your account.
msgid "The registration process has been successful. Please check your e-mail inbox for information on how activate your account."
Expand Down
5 changes: 5 additions & 0 deletions locales/pt/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -2574,6 +2574,11 @@ msgstr ""
msgid "The item could not be deleted."
msgstr ""

#: components/theme/View/LinkView
# defaultMessage: The link address is:
msgid "The link address is:"
msgstr ""

#: components/theme/Register/Register
# defaultMessage: The registration process has been successful. Please check your e-mail inbox for information on how activate your account.
msgid "The registration process has been successful. Please check your e-mail inbox for information on how activate your account."
Expand Down
5 changes: 5 additions & 0 deletions locales/pt_BR/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -2576,6 +2576,11 @@ msgstr ""
msgid "The item could not be deleted."
msgstr "O item não pôde ser excluído."

#: components/theme/View/LinkView
# defaultMessage: The link address is:
msgid "The link address is:"
msgstr ""

#: components/theme/Register/Register
# defaultMessage: The registration process has been successful. Please check your e-mail inbox for information on how activate your account.
msgid "The registration process has been successful. Please check your e-mail inbox for information on how activate your account."
Expand Down
5 changes: 5 additions & 0 deletions locales/ro/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -2566,6 +2566,11 @@ msgstr ""
msgid "The item could not be deleted."
msgstr ""

#: components/theme/View/LinkView
# defaultMessage: The link address is:
msgid "The link address is:"
msgstr ""

#: components/theme/Register/Register
# defaultMessage: The registration process has been successful. Please check your e-mail inbox for information on how activate your account.
msgid "The registration process has been successful. Please check your e-mail inbox for information on how activate your account."
Expand Down
Loading

0 comments on commit 26d15f4

Please sign in to comment.