@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
package/package.json
CHANGED
|
@@ -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
|
-
<
|
|
39
|
-
<
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
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