@eeacms/volto-marine-policy 2.0.3 → 2.0.5
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.md +43 -0
- package/jest-addon.config.js +4 -4
- package/package.json +6 -4
- package/src/components/Blocks/DemoSitesExplorer/DemoSitesExplorerEdit.js +5 -0
- package/src/components/Blocks/DemoSitesExplorer/DemoSitesExplorerView.js +94 -0
- package/src/components/Blocks/DemoSitesExplorer/DemoSitesFilters.jsx +406 -0
- package/src/components/Blocks/DemoSitesExplorer/DemoSitesFilters.test.jsxZ +91 -0
- package/src/components/Blocks/DemoSitesExplorer/DemoSitesListing.jsx +378 -0
- package/src/components/Blocks/DemoSitesExplorer/DemoSitesMap.jsx +221 -0
- package/src/components/Blocks/DemoSitesExplorer/FeatureDisplay.jsx +97 -0
- package/src/components/Blocks/DemoSitesExplorer/FeatureDisplay.test.jsxZ +48 -0
- package/src/components/Blocks/DemoSitesExplorer/FeatureInteraction.jsx +95 -0
- package/src/components/Blocks/DemoSitesExplorer/InfoOverlay.jsx +79 -0
- package/src/components/Blocks/DemoSitesExplorer/hooks.js +20 -0
- package/src/components/Blocks/DemoSitesExplorer/images/icon-depth.png +0 -0
- package/src/components/Blocks/DemoSitesExplorer/images/icon-light.png +0 -0
- package/src/components/Blocks/DemoSitesExplorer/images/search.svg +3 -0
- package/src/components/Blocks/DemoSitesExplorer/index.js +16 -0
- package/src/components/Blocks/DemoSitesExplorer/mockJsdom.js +8 -0
- package/src/components/Blocks/DemoSitesExplorer/styles.less +376 -0
- package/src/components/Blocks/DemoSitesExplorer/utils.js +211 -0
- package/src/components/Blocks/DemoSitesExplorer/utils.test.jsZ +63 -0
- package/src/components/index.js +1 -0
- package/src/express-middleware.js +37 -0
- package/src/index.js +11 -5
package/src/index.js
CHANGED
|
@@ -28,7 +28,7 @@ import { linkDeserializer } from '@plone/volto-slate/editor/plugins/AdvancedLink
|
|
|
28
28
|
import LinkEditSchema from '@plone/volto-slate/editor/plugins/AdvancedLink/schema';
|
|
29
29
|
import { getBlocks } from '@plone/volto/helpers';
|
|
30
30
|
import { defineMessages } from 'react-intl'; // , defineMessages
|
|
31
|
-
|
|
31
|
+
import installDemoSitesExplorer from './components/Blocks/DemoSitesExplorer';
|
|
32
32
|
import marineLogo from '@eeacms/volto-marine-policy/../theme/assets/images/Header/wise-marine-logo.svg';
|
|
33
33
|
import marineLogoWhite from '@eeacms/volto-marine-policy/../theme/assets/images/Header/wise-marine-logo-white.svg';
|
|
34
34
|
import eeaWhiteLogo from '@eeacms/volto-eea-design-system/../theme/themes/eea/assets/logo/eea-logo-white.svg';
|
|
@@ -109,6 +109,11 @@ const applyConfig = (config) => {
|
|
|
109
109
|
localnavigation,
|
|
110
110
|
};
|
|
111
111
|
|
|
112
|
+
if (__SERVER__) {
|
|
113
|
+
const installExpressMiddleware = require('./express-middleware').default;
|
|
114
|
+
config = installExpressMiddleware(config);
|
|
115
|
+
}
|
|
116
|
+
|
|
112
117
|
config.widgets.widget.text_align = TextAlignWidget;
|
|
113
118
|
// check if it breaks the 'theme' field in volto-tabs-block in the 'horizontal carousel' layout
|
|
114
119
|
// We have a 'theme' field in the wise catalogue metadata (CatalogueMetadata)
|
|
@@ -512,10 +517,11 @@ const applyConfig = (config) => {
|
|
|
512
517
|
const [installLinkEditor] = makeInlineElementPlugin(opts);
|
|
513
518
|
config = installLinkEditor(config);
|
|
514
519
|
|
|
515
|
-
const final = [
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
520
|
+
const final = [
|
|
521
|
+
installMsfdDataExplorerBlock,
|
|
522
|
+
installSearchEngine,
|
|
523
|
+
installDemoSitesExplorer,
|
|
524
|
+
].reduce((acc, apply) => apply(acc), config);
|
|
519
525
|
|
|
520
526
|
return final;
|
|
521
527
|
};
|