volto-dropdownmenu 4.1.3 → 4.1.4
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 +7 -0
- package/package.json +1 -1
- package/src/components/DropdownMenu.jsx +5 -6
- package/src/customizations/components/theme/Navigation/Navigation.jsx +1 -1
- package/src/widget/MenuConfigurationForm.jsx +3 -3
- package/src/widget/MenuConfigurationWidget.jsx +2 -1
- package/src/widget/RadioWidget.jsx +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,9 +4,16 @@ 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
|
+
#### [v4.1.4](https://github.com/collective/volto-dropdownmenu/compare/v4.1.3...v4.1.4)
|
|
8
|
+
|
|
9
|
+
- chore: removed volto imports from barrel files [`356f77a`](https://github.com/collective/volto-dropdownmenu/commit/356f77a8d285eb0b855130b0db0b8432ad6245d8)
|
|
10
|
+
|
|
7
11
|
#### [v4.1.3](https://github.com/collective/volto-dropdownmenu/compare/v4.1.2...v4.1.3)
|
|
8
12
|
|
|
13
|
+
> 7 June 2024
|
|
14
|
+
|
|
9
15
|
- fix: match path [`#32`](https://github.com/collective/volto-dropdownmenu/pull/32)
|
|
16
|
+
- Release 4.1.3 [`dee3818`](https://github.com/collective/volto-dropdownmenu/commit/dee3818f3e2b18f7f28598899868c8ff1c4ee739)
|
|
10
17
|
|
|
11
18
|
#### [v4.1.2](https://github.com/collective/volto-dropdownmenu/compare/v4.1.1...v4.1.2)
|
|
12
19
|
|
package/package.json
CHANGED
|
@@ -4,14 +4,13 @@ import { defineMessages, useIntl } from 'react-intl';
|
|
|
4
4
|
import { Segment, Container, Icon, Grid, Button } from 'semantic-ui-react';
|
|
5
5
|
import { map } from 'lodash';
|
|
6
6
|
import cx from 'classnames';
|
|
7
|
-
import
|
|
7
|
+
import ConditionalLink from '@plone/volto/components/manage/ConditionalLink/ConditionalLink';
|
|
8
8
|
import {
|
|
9
|
-
flattenToAppURL,
|
|
10
9
|
getBlocksFieldname,
|
|
11
10
|
getBlocksLayoutFieldname,
|
|
12
11
|
hasBlocksData,
|
|
13
|
-
|
|
14
|
-
} from '@plone/volto/helpers';
|
|
12
|
+
} from '@plone/volto/helpers/Blocks/Blocks';
|
|
13
|
+
import { flattenToAppURL, getBaseUrl } from '@plone/volto/helpers/Url/Url';
|
|
15
14
|
import config from '@plone/volto/registry';
|
|
16
15
|
|
|
17
16
|
import './dropdownmenu.css';
|
|
@@ -38,8 +37,8 @@ const DropdownMenu = ({ menu, open = false, closeMenu }) => {
|
|
|
38
37
|
menu.navigationRoot?.length === 1
|
|
39
38
|
? 8
|
|
40
39
|
: menu.navigationRoot?.length > 2 || menu.navigationRoot?.length === 0
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
? 12
|
|
41
|
+
: 6;
|
|
43
42
|
let hasBlocks = hasBlocksData(menu);
|
|
44
43
|
if (menu?.blocks && Object.keys(menu.blocks).length === 1) {
|
|
45
44
|
let b = menu.blocks[Object.keys(menu.blocks)[0]];
|
|
@@ -12,7 +12,7 @@ import cx from 'classnames';
|
|
|
12
12
|
import OutsideClickHandler from 'react-outside-click-handler';
|
|
13
13
|
import config from '@plone/volto/registry';
|
|
14
14
|
|
|
15
|
-
import { flattenToAppURL } from '@plone/volto/helpers';
|
|
15
|
+
import { flattenToAppURL } from '@plone/volto/helpers/Url/Url';
|
|
16
16
|
|
|
17
17
|
import DropdownMenu from '../../../../components/DropdownMenu';
|
|
18
18
|
import { getDropdownMenuNavitems } from '../../../../actions';
|
|
@@ -3,13 +3,13 @@ import { defineMessages, useIntl } from 'react-intl';
|
|
|
3
3
|
import { v4 as uuid } from 'uuid';
|
|
4
4
|
import { isEmpty } from 'lodash';
|
|
5
5
|
import { Form as UIForm, Grid, Button } from 'semantic-ui-react';
|
|
6
|
+
import Sidebar from '@plone/volto/components/manage/Sidebar/Sidebar';
|
|
7
|
+
import { Form } from '@plone/volto/components/manage/Form';
|
|
6
8
|
import {
|
|
7
|
-
Form,
|
|
8
9
|
TextWidget,
|
|
9
10
|
CheckboxWidget,
|
|
10
11
|
ObjectBrowserWidget,
|
|
11
|
-
|
|
12
|
-
} from '@plone/volto/components';
|
|
12
|
+
} from '@plone/volto/components/manage/Widgets';
|
|
13
13
|
|
|
14
14
|
import { RadioWidget } from 'volto-dropdownmenu/widget';
|
|
15
15
|
import { Portal } from 'react-portal';
|
|
@@ -9,7 +9,8 @@ import {
|
|
|
9
9
|
Segment,
|
|
10
10
|
Header,
|
|
11
11
|
} from 'semantic-ui-react';
|
|
12
|
-
import
|
|
12
|
+
import Component from '@plone/volto/components/theme/Component/Component';
|
|
13
|
+
import { TextWidget } from '@plone/volto/components/manage/Widgets';
|
|
13
14
|
import { flattenToAppURL } from '@plone/volto/helpers/Url/Url';
|
|
14
15
|
|
|
15
16
|
import './menu_configuration.css';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Button } from 'semantic-ui-react';
|
|
3
|
-
import { FormFieldWrapper } from '@plone/volto/components';
|
|
3
|
+
import { FormFieldWrapper } from '@plone/volto/components/manage/Widgets';
|
|
4
4
|
import cx from 'classnames';
|
|
5
5
|
import './radio_widget.css';
|
|
6
6
|
|