eea / volto-eea-kitkat

EEA Volto Add-ons bundle: A known good set of Volto addons to be used within all EEA projects
MIT License
5 stars 2 forks source link

HTML block becomes unavailable when volto-eea-kitkat is added #81

Closed kenmanheimer closed 1 year ago

kenmanheimer commented 1 year ago

The HTML block became unavailable for inclusion on a page in recent builds that include volto-eea-kitkat.

Strangely, the HTML block is available if I include all the addons that kitkat contains, but not the kitkat collection itself.

Here is the Plone+frontend build versions:

Volto 16.3.0
Plone 6.0.0rc2
plone.restapi 8.32.4
CMF 2.6.0
Zope 5.7
Python 3.10.8 (main, Nov 15 2022, 21:06:05) [GCC 10.2.1 20210110]
PIL 9.3.0 (Pillow)

Here are the addons that are included with kitkat, but don't inhibit availability of the html block if I add them specifying each rather than via kitkat:

@plone/volto-slate 16.3.0
@eeacms/volto-corsproxy 3.0.1
@eeacms/volto-object-widget 5.0.1
@eeacms/volto-widgets-view 4.0.1
@eeacms/volto-widget-toggle 3.0.1
@eeacms/volto-slate-metadata-mentions 6.0.1
@eeacms/volto-slate-footnote 6.0.2
@eeacms/volto-accordion-block 6.0.0
@eeacms/volto-block-divider 5.0.0
@eeacms/volto-listing-block 2.2.0
@eeacms/volto-metadata-block 5.0.1
@eeacms/volto-group-block 5.0.1
@eeacms/volto-columns-block 5.1.0
@eeacms/volto-resize-helper 1.0.1
@eeacms/volto-block-style 4.1.2
@eeacms/volto-tabs-block 3.0.1
@eeacms/volto-block-image-cards 1.0.1
@eeacms/volto-banner 3.0.1
@eeacms/volto-slate-label 0.4.4
@eeacms/volto-call-to-action-block 2.0.0
@eeacms/volto-description-block 1.0.1
@eeacms/volto-hero-block 2.0.0
@eeacms/volto-quote-block 1.0.1
@eeacms/volto-statistic-block 1.0.1
@eeacms/volto-tags-block 1.0.1
@eeacms/volto-timeline-block 1.0.1
@kitconcept/volto-blocks-grid 5.2.0
@eeacms/volto-matomo 3.0.1
@eeacms/volto-sentry-rancher-config 3.0.1
@eeacms/volto-depiction 1.0.1
@eeacms/volto-taxonomy 3.0.1
@eeacms/volto-widget-geolocation 5.0.1
@eeacms/volto-slate-zotero 5.0.2
@eeacms/volto-widget-dataprovenance 0.2.1
@plone-collective/volto-sentry 0.3.0
@eeacms/volto-widget-temporal-coverage 5.0.1
kenmanheimer commented 1 year ago

I should add that I've tested and affirmed that the unavailability of the HTML block happens whenever I build with the kitkat frontend addon, with any of the following conditions:

avoinea commented 1 year ago

@kenmanheimer HTML block is indeed disabled with volto-eea-kitkat add-on due to GDPR. See:

https://github.com/eea/volto-eea-kitkat/blob/78e95d02fa959234e943aad4c4be0859b2dc343d/src/index.js#L11-L14

You can re-enable them via your policy add-on or directly within your project:

src/addons/volto-custom-policy-addon/src/index.js

const applyConfig = (config) => {

  // Re-enable non-GDPR compliant blocks
  config.blocks.blocksConfig.video.restricted = false;
  config.blocks.blocksConfig.maps.restricted = false;
  config.blocks.blocksConfig.html.restricted = false;
};

export default applyConfig;
kenmanheimer commented 1 year ago

Ah, I see!

Thanks!