@eeacms/volto-eea-website-policy 0.2.1 → 0.2.2

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 CHANGED
@@ -4,8 +4,15 @@ All notable changes to this project will be documented in this file. Dates are d
4
4
 
5
5
  Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
6
6
 
7
+ #### [0.2.2](https://github.com/eea/volto-eea-website-policy/compare/0.2.1...0.2.2)
8
+
9
+ - Install callout and remove blockquote - refs #148688 [`53ba5a7`](https://github.com/eea/volto-eea-website-policy/commit/53ba5a7153e30f4f41221323393e41d53132fdae)
10
+
7
11
  #### [0.2.1](https://github.com/eea/volto-eea-website-policy/compare/0.2.0...0.2.1)
8
12
 
13
+ > 25 March 2022
14
+
15
+ - 137187 keycloak integration for plone6 (#3) [`#6`](https://github.com/eea/volto-eea-website-policy/pull/6)
9
16
  - 137187 keycloak integration for plone6 [`#3`](https://github.com/eea/volto-eea-website-policy/pull/3)
10
17
 
11
18
  #### [0.2.0](https://github.com/eea/volto-eea-website-policy/compare/0.1.1...0.2.0)
@@ -9,6 +9,7 @@ module.exports = {
9
9
  '@plone/volto/babel': '<rootDir>/node_modules/@plone/volto/babel',
10
10
  '@plone/volto/(.*)$': '<rootDir>/node_modules/@plone/volto/src/$1',
11
11
  '@package/(.*)$': '<rootDir>/src/$1',
12
+ '@root/(.*)$': '<rootDir>/src/$1',
12
13
  '@plone/volto-quanta/(.*)$': '<rootDir>/src/addons/volto-quanta/src/$1',
13
14
  '@eeacms/(.*?)/(.*)$': '<rootDir>/src/addons/$1/src/$2',
14
15
  'volto-slate/(.*)$': '<rootDir>/src/addons/volto-slate/src/$1',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-eea-website-policy",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "@eeacms/volto-eea-website-policy: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
@@ -16,8 +16,12 @@
16
16
  "type": "git",
17
17
  "url": "git@github.com:eea/volto-eea-website-policy.git"
18
18
  },
19
+ "addons": [
20
+ "volto-slate"
21
+ ],
19
22
  "dependencies": {
20
- "@plone/scripts": "*"
23
+ "@plone/scripts": "*",
24
+ "volto-slate": "*"
21
25
  },
22
26
  "devDependencies": {
23
27
  "@cypress/code-coverage": "^3.9.5",
package/src/index.js CHANGED
@@ -1,4 +1,5 @@
1
1
  import { runtimeConfig } from '@plone/volto/runtime_config';
2
+ import installCallout from 'volto-slate/editor/plugins/Callout';
2
3
 
3
4
  const applyConfig = (config) => {
4
5
  // if (process.env.NODE_ENV === 'production') {
@@ -8,6 +9,14 @@ const applyConfig = (config) => {
8
9
  // config.settings.layoutOnlySlateMetadataMentions = true;
9
10
  // }
10
11
 
12
+ // Callout slate button
13
+ config = installCallout(config);
14
+
15
+ // Remove blockquote slate button
16
+ config.settings.slate.toolbarButtons = config.settings.slate.toolbarButtons.filter(
17
+ (item) => item !== 'blockquote',
18
+ );
19
+
11
20
  // Disable tags on View
12
21
  config.settings.showTags = false;
13
22