@plone/volto 14.9.0 → 14.10.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.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Change Log
2
2
 
3
+ ## 14.10.0 (2022-02-08)
4
+
5
+ ### Feature
6
+
7
+ - Add Pluggable to toolbar user menu. @ksuess
8
+
3
9
  ## 14.9.0 (2022-02-08)
4
10
 
5
11
  ### Feature
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  }
10
10
  ],
11
11
  "license": "MIT",
12
- "version": "14.9.0",
12
+ "version": "14.10.0",
13
13
  "repository": {
14
14
  "type": "git",
15
15
  "url": "git@github.com:plone/volto.git"
@@ -11,6 +11,7 @@ import cx from 'classnames';
11
11
  import { FormattedMessage, injectIntl, defineMessages } from 'react-intl';
12
12
  import { Icon } from '@plone/volto/components';
13
13
  import { getUser } from '@plone/volto/actions';
14
+ import { Pluggable } from '@plone/volto/components/manage/Pluggable';
14
15
  import { userHasRoles } from '@plone/volto/helpers';
15
16
 
16
17
  import logoutSVG from '@plone/volto/icons/log-out.svg';
@@ -172,6 +173,7 @@ class PersonalTools extends Component {
172
173
  </Link>
173
174
  </li>
174
175
  )}
176
+ <Pluggable name="toolbar-user-menu" />
175
177
  </ul>
176
178
  </div>
177
179
  </div>
@@ -4,6 +4,7 @@ import configureStore from 'redux-mock-store';
4
4
  import { Provider } from 'react-intl-redux';
5
5
  import { MemoryRouter } from 'react-router-dom';
6
6
  import jwt from 'jsonwebtoken';
7
+ import { PluggablesProvider } from '@plone/volto/components/manage/Pluggable';
7
8
 
8
9
  import PersonalTools from './PersonalTools';
9
10
 
@@ -35,14 +36,16 @@ describe('Toolbar Personal Tools component', () => {
35
36
  });
36
37
  const component = renderer.create(
37
38
  <Provider store={store}>
38
- <MemoryRouter>
39
- <PersonalTools
40
- loadComponent={() => {}}
41
- theToolbar={{
42
- current: { getBoundingClientRect: () => ({ width: '320' }) },
43
- }}
44
- />
45
- </MemoryRouter>
39
+ <PluggablesProvider>
40
+ <MemoryRouter>
41
+ <PersonalTools
42
+ loadComponent={() => {}}
43
+ theToolbar={{
44
+ current: { getBoundingClientRect: () => ({ width: '320' }) },
45
+ }}
46
+ />
47
+ </MemoryRouter>
48
+ </PluggablesProvider>
46
49
  </Provider>,
47
50
  );
48
51
  const json = component.toJSON();
package/pyvenv.cfg DELETED
@@ -1,3 +0,0 @@
1
- home = /opt/homebrew/Cellar/python@3.8/3.8.12_1/bin
2
- include-system-site-packages = false
3
- version = 3.8.12