@plone/volto 18.0.0-alpha.27 → 18.0.0-alpha.29
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 +29 -0
- package/cypress/support/commands.js +1 -4
- package/cypress/support/e2e.js +9 -0
- package/locales/pt_BR/LC_MESSAGES/volto.po +1 -1
- package/locales/pt_BR.json +1 -1
- package/package.json +19 -17
- package/src/components/index.js +104 -73
- package/src/components/manage/Actions/Actions.jsx +2 -1
- package/src/components/manage/Actions/Actions.test.jsx +1 -3
- package/src/components/manage/Add/Add.jsx +1 -1
- package/src/components/manage/Blocks/Block/DefaultEdit.jsx +1 -1
- package/src/components/manage/Blocks/Block/Settings.jsx +1 -1
- package/src/components/manage/Blocks/Block/Settings.test.jsx +2 -0
- package/src/components/manage/Blocks/Container/Data.jsx +1 -1
- package/src/components/manage/Blocks/Container/Edit.jsx +2 -1
- package/src/components/manage/Blocks/Image/ImageSidebar.jsx +2 -1
- package/src/components/manage/Blocks/Image/ImageSidebar.test.jsx +2 -0
- package/src/components/manage/Blocks/LeadImage/LeadImageSidebar.jsx +2 -3
- package/src/components/manage/Blocks/LeadImage/LeadImageSidebar.test.jsx +2 -0
- package/src/components/manage/Blocks/Listing/ListingData.jsx +1 -1
- package/src/components/manage/Blocks/Maps/MapsSidebar.jsx +1 -1
- package/src/components/manage/Blocks/Maps/MapsSidebar.test.jsx +2 -0
- package/src/components/manage/Blocks/Search/SearchBlockEdit.jsx +2 -1
- package/src/components/manage/Blocks/Search/widgets/SelectMetadataField.jsx +1 -1
- package/src/components/manage/Blocks/Teaser/Data.jsx +2 -1
- package/src/components/manage/Blocks/ToC/Edit.jsx +1 -1
- package/src/components/manage/Blocks/Video/VideoSidebar.jsx +1 -1
- package/src/components/manage/Blocks/Video/VideoSidebar.test.jsx +2 -0
- package/src/components/manage/ConditionalLink/ConditionalLink.jsx +1 -1
- package/src/components/manage/Contents/Contents.jsx +8 -8
- package/src/components/manage/Contents/ContentsIndexHeader.test.jsx +1 -1
- package/src/components/manage/Contents/ContentsPropertiesModal.jsx +1 -1
- package/src/components/manage/Contents/ContentsPropertiesModal.test.jsx +1 -1
- package/src/components/manage/Contents/ContentsRenameModal.jsx +1 -1
- package/src/components/manage/Contents/ContentsRenameModal.test.jsx +1 -1
- package/src/components/manage/Contents/ContentsTagsModal.jsx +1 -1
- package/src/components/manage/Contents/ContentsTagsModal.test.jsx +1 -1
- package/src/components/manage/Contents/ContentsWorkflowModal.jsx +1 -1
- package/src/components/manage/Contents/ContentsWorkflowModal.test.jsx +1 -1
- package/src/components/manage/Contents/__mocks__/index.tsx +5 -0
- package/src/components/manage/Contents/index.tsx +64 -0
- package/src/components/manage/Controlpanels/Aliases.jsx +1 -1
- package/src/components/manage/Controlpanels/Aliases.test.jsx +1 -0
- package/src/components/manage/Controlpanels/ContentType.jsx +2 -1
- package/src/components/manage/Controlpanels/ContentType.test.jsx +1 -1
- package/src/components/manage/Controlpanels/ContentTypeLayout.jsx +2 -8
- package/src/components/manage/Controlpanels/ContentTypeSchema.jsx +2 -1
- package/src/components/manage/Controlpanels/ContentTypes.jsx +3 -8
- package/src/components/manage/Controlpanels/Controlpanel.jsx +2 -1
- package/src/components/manage/Controlpanels/Controlpanel.test.jsx +1 -2
- package/src/components/manage/Controlpanels/Controlpanels.jsx +12 -49
- package/src/components/manage/Controlpanels/Controlpanels.test.jsx +36 -32
- package/src/components/manage/Controlpanels/Groups/GroupsControlpanel.jsx +2 -2
- package/src/components/manage/Controlpanels/ModerateComments.jsx +2 -6
- package/src/components/manage/Controlpanels/ModerateComments.test.jsx +1 -4
- package/src/components/manage/Controlpanels/Relations/RelationsListing.jsx +2 -2
- package/src/components/manage/Controlpanels/Relations/RelationsMatrix.jsx +2 -2
- package/src/components/manage/Controlpanels/Rules/AddRule.jsx +2 -2
- package/src/components/manage/Controlpanels/Rules/AddRule.test.jsx +1 -0
- package/src/components/manage/Controlpanels/Rules/EditRule.jsx +2 -2
- package/src/components/manage/Controlpanels/Rules/EditRule.test.jsx +2 -0
- package/src/components/manage/Controlpanels/Rules/components/VariableModal.jsx +1 -1
- package/src/components/manage/Controlpanels/UndoControlpanel.jsx +2 -1
- package/src/components/manage/Controlpanels/UndoControlpanel.test.jsx +1 -2
- package/src/components/manage/Controlpanels/UpgradeControlPanel.jsx +2 -1
- package/src/components/manage/Controlpanels/Users/RenderUsers.jsx +2 -1
- package/src/components/manage/Controlpanels/Users/UserGroupMembershipMatrix.jsx +1 -1
- package/src/components/manage/Controlpanels/Users/UsersControlpanel.jsx +2 -2
- package/src/components/manage/Controlpanels/index.tsx +181 -0
- package/src/components/manage/Diff/Diff.jsx +1 -1
- package/src/components/manage/Display/Display.jsx +2 -1
- package/src/components/manage/Display/Display.test.jsx +1 -0
- package/src/components/manage/Edit/Edit.jsx +1 -1
- package/src/components/manage/Edit/Edit.test.jsx +1 -2
- package/src/components/manage/Form/BlockDataForm.jsx +1 -1
- package/src/components/manage/Form/BlockDataForm.test.jsx +2 -0
- package/src/components/manage/Form/Form.jsx +4 -2
- package/src/components/manage/Form/Form.test.jsx +1 -1
- package/src/components/manage/Form/InlineForm.jsx +2 -1
- package/src/components/manage/Form/InlineForm.test.jsx +2 -0
- package/src/components/manage/Form/ModalForm.jsx +2 -1
- package/src/components/manage/Form/ModalForm.test.jsx +1 -1
- package/src/components/manage/Form/__mocks__/index.tsx +74 -0
- package/src/components/manage/Form/index.tsx +50 -0
- package/src/components/manage/Multilingual/TranslationObject.jsx +2 -1
- package/src/components/manage/Preferences/ChangePassword.jsx +2 -1
- package/src/components/manage/Preferences/ChangePassword.test.jsx +1 -0
- package/src/components/manage/Preferences/PersonalInformation.jsx +2 -1
- package/src/components/manage/Preferences/PersonalPreferences.jsx +2 -1
- package/src/components/manage/Preferences/PersonalPreferences.test.jsx +3 -5
- package/src/components/manage/Rules/index.tsx +5 -0
- package/src/components/manage/Toolbar/PersonalTools.jsx +2 -2
- package/src/components/manage/Widgets/ArrayWidget.jsx +1 -1
- package/src/components/manage/Widgets/ButtonsWidget.jsx +1 -1
- package/src/components/manage/Widgets/CheckboxWidget.jsx +1 -1
- package/src/components/manage/Widgets/DatetimeWidget.jsx +2 -1
- package/src/components/manage/Widgets/EmailWidget.jsx +1 -1
- package/src/components/manage/Widgets/FileWidget.jsx +2 -1
- package/src/components/manage/Widgets/IdWidget.jsx +2 -1
- package/src/components/manage/Widgets/ImageSizeWidget.jsx +1 -1
- package/src/components/manage/Widgets/InternalUrlWidget.jsx +3 -3
- package/src/components/manage/Widgets/NumberWidget.jsx +1 -1
- package/src/components/manage/Widgets/ObjectListWidget.jsx +2 -1
- package/src/components/manage/Widgets/ObjectListWidget.test.js +2 -0
- package/src/components/manage/Widgets/ObjectWidget.jsx +1 -2
- package/src/components/manage/Widgets/ObjectWidget.test.jsx +2 -0
- package/src/components/manage/Widgets/PasswordWidget.jsx +1 -1
- package/src/components/manage/Widgets/QuerySortOnWidget.jsx +1 -1
- package/src/components/manage/Widgets/RecurrenceWidget/RecurrenceWidget.jsx +3 -2
- package/src/components/manage/Widgets/RecurrenceWidget/SelectInput.jsx +12 -3
- package/src/components/manage/Widgets/ReferenceWidget.jsx +1 -1
- package/src/components/manage/Widgets/RegistryImageWidget.jsx +2 -1
- package/src/components/manage/Widgets/SchemaWidget.jsx +2 -5
- package/src/components/manage/Widgets/SelectAutoComplete.jsx +1 -1
- package/src/components/manage/Widgets/SelectWidget.jsx +1 -1
- package/src/components/manage/Widgets/TextWidget.jsx +2 -1
- package/src/components/manage/Widgets/TextareaWidget.jsx +1 -1
- package/src/components/manage/Widgets/TokenWidget.jsx +1 -1
- package/src/components/manage/Widgets/UrlWidget.jsx +3 -3
- package/src/components/manage/Widgets/VocabularyTermsWidget.jsx +5 -8
- package/src/components/manage/Widgets/VocabularyTermsWidget.test.jsx +2 -0
- package/src/components/manage/Widgets/__mocks__/index.tsx +43 -0
- package/src/components/manage/Widgets/index.tsx +232 -0
- package/src/components/manage/Workflow/Workflow.jsx +2 -1
- package/src/components/manage/Workflow/Workflow.test.jsx +2 -3
- package/src/components/theme/Comments/CommentEditModal.jsx +1 -1
- package/src/components/theme/Comments/CommentEditModal.test.jsx +1 -3
- package/src/components/theme/Comments/Comments.jsx +3 -1
- package/src/components/theme/Comments/Comments.test.jsx +2 -0
- package/src/components/theme/Comments/__mocks__/index.tsx +1 -0
- package/src/components/theme/Comments/index.tsx +5 -0
- package/src/components/theme/ContactForm/ContactForm.jsx +2 -1
- package/src/components/theme/ContactForm/ContactForm.test.jsx +2 -0
- package/src/components/theme/Logo/Logo.jsx +3 -3
- package/src/components/theme/PasswordReset/PasswordReset.jsx +1 -1
- package/src/components/theme/PasswordReset/RequestPasswordReset.jsx +1 -1
- package/src/components/theme/PasswordReset/RequestPasswordReset.test.jsx +2 -0
- package/src/components/theme/Register/Register.jsx +2 -1
- package/src/components/theme/Register/Register.test.jsx +2 -0
- package/src/config/ControlPanels.js +1 -1
- package/src/config/Widgets.jsx +33 -46
- package/src/routes.js +22 -20
- package/src/storybook.jsx +12 -2
- package/theme/themes/pastanaga/elements/input.overrides +2 -0
- package/types/components/index.d.ts +11 -63
- package/types/components/manage/Blocks/Search/widgets/SelectMetadataField.d.ts +5 -0
- package/types/components/manage/ConditionalLink/ConditionalLink.d.ts +1 -1
- package/types/components/manage/Contents/__mocks__/index.d.ts +3 -0
- package/types/components/manage/Contents/index.d.ts +9 -0
- package/types/components/manage/Controlpanels/Controlpanels.d.ts +6 -2
- package/types/components/manage/Controlpanels/Relations/RelationsListing.d.ts +2 -2
- package/types/components/manage/Controlpanels/index.d.ts +32 -0
- package/types/components/manage/Form/__mocks__/index.d.ts +9 -0
- package/types/components/manage/Form/index.d.ts +14 -0
- package/types/components/manage/Rules/index.d.ts +1 -0
- package/types/components/manage/Widgets/RecurrenceWidget/SelectInput.d.ts +2 -34
- package/types/components/manage/Widgets/__mocks__/index.d.ts +34 -0
- package/types/components/manage/Widgets/index.d.ts +120 -0
- package/types/components/theme/Comments/__mocks__/index.d.ts +1 -0
- package/types/components/theme/Comments/index.d.ts +1 -0
- package/types/config/ControlPanels.d.ts +1 -1
- package/types/config/Loadables.d.ts +151 -9
- package/types/config/Views.d.ts +1 -1
- package/types/config/Widgets.d.ts +33 -39
|
@@ -13,7 +13,9 @@ import {
|
|
|
13
13
|
listComments,
|
|
14
14
|
listMoreComments,
|
|
15
15
|
} from '@plone/volto/actions';
|
|
16
|
-
import { Avatar
|
|
16
|
+
import { Avatar } from '@plone/volto/components';
|
|
17
|
+
import { Form } from '@plone/volto/components/manage/Form';
|
|
18
|
+
import { CommentEditModal } from '@plone/volto/components/theme/Comments';
|
|
17
19
|
import {
|
|
18
20
|
flattenToAppURL,
|
|
19
21
|
getBaseUrl,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const CommentEditModal = () => <div id="modal" />;
|
|
@@ -7,7 +7,8 @@ import { toast } from 'react-toastify';
|
|
|
7
7
|
|
|
8
8
|
import { emailNotification } from '@plone/volto/actions';
|
|
9
9
|
import { useDispatch, useSelector } from 'react-redux';
|
|
10
|
-
import {
|
|
10
|
+
import { Toolbar, Toast } from '@plone/volto/components';
|
|
11
|
+
import { Form } from '@plone/volto/components/manage/Form';
|
|
11
12
|
import { getBaseUrl, Helmet, usePrevious } from '@plone/volto/helpers';
|
|
12
13
|
import { useClient } from '@plone/volto/hooks';
|
|
13
14
|
|
|
@@ -9,6 +9,8 @@ jest.mock('../../manage/Toolbar/Toolbar', () =>
|
|
|
9
9
|
jest.fn(() => <div id="Portal" />),
|
|
10
10
|
);
|
|
11
11
|
|
|
12
|
+
jest.mock('@plone/volto/components/manage/Form');
|
|
13
|
+
|
|
12
14
|
const mockStore = configureStore();
|
|
13
15
|
describe('Contact form', () => {
|
|
14
16
|
it('renders a contact form', () => {
|
|
@@ -7,7 +7,7 @@ import { useEffect } from 'react';
|
|
|
7
7
|
import { Image } from 'semantic-ui-react';
|
|
8
8
|
import LogoImage from '@plone/volto/components/theme/Logo/Logo.svg';
|
|
9
9
|
import { useSelector, useDispatch } from 'react-redux';
|
|
10
|
-
import { useLocation } from 'react-router-dom';
|
|
10
|
+
import { Link, useLocation } from 'react-router-dom';
|
|
11
11
|
import { getNavroot } from '@plone/volto/actions';
|
|
12
12
|
import {
|
|
13
13
|
flattenToAppURL,
|
|
@@ -48,7 +48,7 @@ const Logo = () => {
|
|
|
48
48
|
const navRootPath = flattenToAppURL(navroot?.navroot?.['@id']) || '/';
|
|
49
49
|
|
|
50
50
|
return (
|
|
51
|
-
<
|
|
51
|
+
<Link to={navRootPath} aria-label={intl.formatMessage(messages.home)}>
|
|
52
52
|
<Image
|
|
53
53
|
src={
|
|
54
54
|
site['plone.site_logo']
|
|
@@ -59,7 +59,7 @@ const Logo = () => {
|
|
|
59
59
|
intl.formatMessage(messages.logoOf) + ' ' + site['plone.site_title']
|
|
60
60
|
}
|
|
61
61
|
/>
|
|
62
|
-
</
|
|
62
|
+
</Link>
|
|
63
63
|
);
|
|
64
64
|
};
|
|
65
65
|
|
|
@@ -12,7 +12,7 @@ import { Helmet } from '@plone/volto/helpers';
|
|
|
12
12
|
import { Container } from 'semantic-ui-react';
|
|
13
13
|
import { FormattedMessage, defineMessages, injectIntl } from 'react-intl';
|
|
14
14
|
|
|
15
|
-
import { Form } from '@plone/volto/components';
|
|
15
|
+
import { Form } from '@plone/volto/components/manage/Form';
|
|
16
16
|
import { setInitialPassword } from '@plone/volto/actions';
|
|
17
17
|
import config from '@plone/volto/registry';
|
|
18
18
|
|
|
@@ -5,7 +5,7 @@ import { Container } from 'semantic-ui-react';
|
|
|
5
5
|
import { FormattedMessage, defineMessages, useIntl } from 'react-intl';
|
|
6
6
|
|
|
7
7
|
import { Helmet, usePrevious } from '@plone/volto/helpers';
|
|
8
|
-
import { Form } from '@plone/volto/components';
|
|
8
|
+
import { Form } from '@plone/volto/components/manage/Form';
|
|
9
9
|
import { resetPassword } from '@plone/volto/actions';
|
|
10
10
|
import config from '@plone/volto/registry';
|
|
11
11
|
|
|
@@ -12,7 +12,8 @@ import PropTypes from 'prop-types';
|
|
|
12
12
|
import { withRouter } from 'react-router-dom';
|
|
13
13
|
import { toast } from 'react-toastify';
|
|
14
14
|
|
|
15
|
-
import {
|
|
15
|
+
import { Toast } from '@plone/volto/components';
|
|
16
|
+
import { Form } from '@plone/volto/components/manage/Form';
|
|
16
17
|
import { createUser } from '@plone/volto/actions';
|
|
17
18
|
|
|
18
19
|
const messages = defineMessages({
|
|
@@ -44,7 +44,7 @@ export const controlPanelsIcons = {
|
|
|
44
44
|
relations: relationsSVG,
|
|
45
45
|
};
|
|
46
46
|
|
|
47
|
-
export const filterControlPanels = (controlpanels) => {
|
|
47
|
+
export const filterControlPanels = (controlpanels = []) => {
|
|
48
48
|
const HIDDEN_CONTROL_PANELS = ['markup', 'content-rules'];
|
|
49
49
|
|
|
50
50
|
return controlpanels.filter(
|
package/src/config/Widgets.jsx
CHANGED
|
@@ -1,39 +1,36 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
import SelectMetadataWidget from '@plone/volto/components/manage/Blocks/Search/widgets/SelectMetadataField';
|
|
35
|
-
import SelectAutoComplete from '@plone/volto/components/manage/Widgets/SelectAutoComplete';
|
|
36
|
-
import ColorPickerWidget from '@plone/volto/components/manage/Widgets/ColorPickerWidget';
|
|
1
|
+
import {
|
|
2
|
+
AlignWidget,
|
|
3
|
+
ButtonsWidget,
|
|
4
|
+
ArrayWidget,
|
|
5
|
+
CheckboxWidget,
|
|
6
|
+
FileWidget,
|
|
7
|
+
IdWidget,
|
|
8
|
+
PasswordWidget,
|
|
9
|
+
QueryWidget,
|
|
10
|
+
QuerySortOnWidget,
|
|
11
|
+
QuerystringWidget,
|
|
12
|
+
SchemaWidget,
|
|
13
|
+
SelectWidget,
|
|
14
|
+
TextareaWidget,
|
|
15
|
+
TextWidget,
|
|
16
|
+
TokenWidget,
|
|
17
|
+
UrlWidget,
|
|
18
|
+
InternalUrlWidget,
|
|
19
|
+
EmailWidget,
|
|
20
|
+
NumberWidget,
|
|
21
|
+
ImageSizeWidget,
|
|
22
|
+
RegistryImageWidget,
|
|
23
|
+
ReferenceWidget,
|
|
24
|
+
ObjectBrowserWidget,
|
|
25
|
+
ObjectWidget,
|
|
26
|
+
ObjectListWidget,
|
|
27
|
+
VocabularyTermsWidget,
|
|
28
|
+
SelectMetadataWidget,
|
|
29
|
+
SelectAutoComplete,
|
|
30
|
+
ColorPickerWidget,
|
|
31
|
+
DatetimeWidget,
|
|
32
|
+
RecurrenceWidget,
|
|
33
|
+
} from '@plone/volto/components/manage/Widgets';
|
|
37
34
|
|
|
38
35
|
import ArrayViewWidget from '@plone/volto/components/theme/Widgets/ArrayWidget';
|
|
39
36
|
import BooleanViewWidget from '@plone/volto/components/theme/Widgets/BooleanWidget';
|
|
@@ -54,16 +51,6 @@ import TitleViewWidget from '@plone/volto/components/theme/Widgets/TitleWidget';
|
|
|
54
51
|
import TokenViewWidget from '@plone/volto/components/theme/Widgets/TokenWidget';
|
|
55
52
|
import UrlViewWidget from '@plone/volto/components/theme/Widgets/UrlWidget';
|
|
56
53
|
|
|
57
|
-
export const DatetimeWidget = loadable(
|
|
58
|
-
() => import('@plone/volto/components/manage/Widgets/DatetimeWidget'),
|
|
59
|
-
);
|
|
60
|
-
export const RecurrenceWidget = loadable(
|
|
61
|
-
() =>
|
|
62
|
-
import(
|
|
63
|
-
'@plone/volto/components/manage/Widgets/RecurrenceWidget/RecurrenceWidget'
|
|
64
|
-
),
|
|
65
|
-
);
|
|
66
|
-
|
|
67
54
|
// Widgets mapping
|
|
68
55
|
export const widgetMapping = {
|
|
69
56
|
id: {
|
package/src/routes.js
CHANGED
|
@@ -6,19 +6,10 @@ import debug from 'debug';
|
|
|
6
6
|
import { compact } from 'lodash';
|
|
7
7
|
import {
|
|
8
8
|
Add,
|
|
9
|
-
AddonsControlpanel,
|
|
10
9
|
Aliases,
|
|
11
10
|
ChangePassword,
|
|
12
11
|
ContactForm,
|
|
13
|
-
Contents,
|
|
14
|
-
ContentType,
|
|
15
|
-
ContentTypeLayout,
|
|
16
|
-
ContentTypeSchema,
|
|
17
|
-
ContentTypes,
|
|
18
|
-
Controlpanel,
|
|
19
|
-
Controlpanels,
|
|
20
12
|
CreateTranslation,
|
|
21
|
-
DatabaseInformation,
|
|
22
13
|
Delete,
|
|
23
14
|
Diff,
|
|
24
15
|
Edit,
|
|
@@ -27,28 +18,39 @@ import {
|
|
|
27
18
|
Login,
|
|
28
19
|
Logout,
|
|
29
20
|
ManageTranslations,
|
|
30
|
-
ModerateComments,
|
|
31
21
|
NotFound,
|
|
32
22
|
PasswordReset,
|
|
33
|
-
Relations,
|
|
34
23
|
Register,
|
|
35
|
-
Rules,
|
|
36
24
|
RequestPasswordReset,
|
|
37
25
|
Search,
|
|
38
26
|
Sharing,
|
|
39
27
|
Sitemap,
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
28
|
+
PersonalInformation,
|
|
29
|
+
} from '@plone/volto/components';
|
|
30
|
+
import { Contents } from '@plone/volto/components/manage/Contents';
|
|
31
|
+
import { Rules } from '@plone/volto/components/manage/Rules';
|
|
32
|
+
import {
|
|
45
33
|
RulesControlpanel,
|
|
46
34
|
AddRuleControlpanel,
|
|
47
35
|
EditRuleControlpanel,
|
|
48
36
|
ConfigureRuleControlpanel,
|
|
37
|
+
UsersControlpanel,
|
|
38
|
+
UserGroupMembershipControlPanel,
|
|
39
|
+
GroupsControlpanel,
|
|
40
|
+
AddonsControlpanel,
|
|
41
|
+
AliasesControlpanel,
|
|
42
|
+
ContentType,
|
|
43
|
+
ContentTypeLayout,
|
|
44
|
+
ContentTypeSchema,
|
|
45
|
+
ContentTypes,
|
|
46
|
+
Controlpanel,
|
|
47
|
+
Controlpanels,
|
|
48
|
+
DatabaseInformation,
|
|
49
|
+
ModerateComments,
|
|
50
|
+
RelationsControlpanel,
|
|
51
|
+
UndoControlpanel,
|
|
49
52
|
UpgradeControlPanel,
|
|
50
|
-
|
|
51
|
-
} from '@plone/volto/components';
|
|
53
|
+
} from '@plone/volto/components/manage/Controlpanels';
|
|
52
54
|
|
|
53
55
|
// Deliberatelly use of absolute path of these components, since we do not want them
|
|
54
56
|
// in the components/index.js file.
|
|
@@ -228,7 +230,7 @@ export const defaultRoutes = [
|
|
|
228
230
|
},
|
|
229
231
|
{
|
|
230
232
|
path: '/controlpanel/relations',
|
|
231
|
-
component:
|
|
233
|
+
component: RelationsControlpanel,
|
|
232
234
|
},
|
|
233
235
|
{
|
|
234
236
|
path: '/controlpanel/:id',
|
package/src/storybook.jsx
CHANGED
|
@@ -1387,11 +1387,16 @@ export default class Wrapper extends Component {
|
|
|
1387
1387
|
render() {
|
|
1388
1388
|
const mockStore = configureStore();
|
|
1389
1389
|
const store = mockStore(this.customState());
|
|
1390
|
+
const state = store.getState();
|
|
1390
1391
|
|
|
1391
1392
|
return (
|
|
1392
1393
|
<Provider store={store}>
|
|
1393
1394
|
<PluggablesProvider>
|
|
1394
|
-
<IntlProvider
|
|
1395
|
+
<IntlProvider
|
|
1396
|
+
locale={state.intl.locale}
|
|
1397
|
+
messages={state.intl.messages}
|
|
1398
|
+
defaultLocale={state.intl.defaultLocale ?? 'en'}
|
|
1399
|
+
>
|
|
1395
1400
|
<StaticRouter location={this.props.location}>
|
|
1396
1401
|
<div className="volto-storybook-container">
|
|
1397
1402
|
{this.props.children}
|
|
@@ -1434,11 +1439,16 @@ export class RealStoreWrapper extends Component {
|
|
|
1434
1439
|
// If thunk is not included there's a complaint about async actions
|
|
1435
1440
|
const history = createBrowserHistory();
|
|
1436
1441
|
const store = configureRealStore(this.customState(), history);
|
|
1442
|
+
const state = store.getState();
|
|
1437
1443
|
|
|
1438
1444
|
return (
|
|
1439
1445
|
<Provider store={store}>
|
|
1440
1446
|
<PluggablesProvider>
|
|
1441
|
-
<IntlProvider
|
|
1447
|
+
<IntlProvider
|
|
1448
|
+
locale={state.intl.locale}
|
|
1449
|
+
messages={state.intl.messages}
|
|
1450
|
+
defaultLocale={state.intl.defaultLocale ?? 'en'}
|
|
1451
|
+
>
|
|
1442
1452
|
<StaticRouter location={this.props.location}>
|
|
1443
1453
|
<div className="volto-storybook-container">
|
|
1444
1454
|
{this.props.children}
|
|
@@ -98,9 +98,11 @@ of an error is present, it overrides a default from SemanticUI grid definitions.
|
|
|
98
98
|
&.clear-search-button {
|
|
99
99
|
//needed for focus
|
|
100
100
|
margin-left: 0.1em;
|
|
101
|
+
|
|
101
102
|
svg.icon {
|
|
102
103
|
margin: auto;
|
|
103
104
|
}
|
|
105
|
+
|
|
104
106
|
&:focus,
|
|
105
107
|
&:hover {
|
|
106
108
|
-webkit-box-shadow: none;
|
|
@@ -46,45 +46,22 @@ export { default as CompareLanguages } from "@plone/volto/components/manage/Mult
|
|
|
46
46
|
export { default as FileView } from "@plone/volto/components/theme/View/FileView";
|
|
47
47
|
export { default as ImageView } from "@plone/volto/components/theme/View/ImageView";
|
|
48
48
|
export { default as NewsItemView } from "@plone/volto/components/theme/View/NewsItemView";
|
|
49
|
-
export const EventView: any
|
|
49
|
+
export const EventView: import("@loadable/component").LoadableComponent<any>;
|
|
50
50
|
export { default as ListingView } from "@plone/volto/components/theme/View/ListingView";
|
|
51
51
|
export { default as SummaryView } from "@plone/volto/components/theme/View/SummaryView";
|
|
52
52
|
export { default as TabularView } from "@plone/volto/components/theme/View/TabularView";
|
|
53
53
|
export { default as AlbumView } from "@plone/volto/components/theme/View/AlbumView";
|
|
54
54
|
export { default as Actions } from "@plone/volto/components/manage/Actions/Actions";
|
|
55
55
|
export { default as Add } from "@plone/volto/components/manage/Add/Add";
|
|
56
|
-
export { default as AddonsControlpanel } from "@plone/volto/components/manage/Controlpanels/AddonsControlpanel";
|
|
57
|
-
export { default as UndoControlpanel } from "@plone/volto/components/manage/Controlpanels/UndoControlpanel";
|
|
58
|
-
export { default as Contents } from "@plone/volto/components/manage/Contents/Contents";
|
|
59
56
|
export { default as Circle } from "@plone/volto/components/manage/Contents/circle";
|
|
60
|
-
export { default as DatabaseInformation } from "@plone/volto/components/manage/Controlpanels/DatabaseInformation";
|
|
61
|
-
export { default as Controlpanel } from "@plone/volto/components/manage/Controlpanels/Controlpanel";
|
|
62
|
-
export { default as Controlpanels } from "@plone/volto/components/manage/Controlpanels/Controlpanels";
|
|
63
|
-
export { default as AliasesControlpanel } from "@plone/volto/components/manage/Controlpanels/Aliases";
|
|
64
|
-
export { default as ContentTypes } from "@plone/volto/components/manage/Controlpanels/ContentTypes";
|
|
65
|
-
export { default as ContentType } from "@plone/volto/components/manage/Controlpanels/ContentType";
|
|
66
|
-
export { default as ContentTypeLayout } from "@plone/volto/components/manage/Controlpanels/ContentTypeLayout";
|
|
67
|
-
export { default as ContentTypeSchema } from "@plone/volto/components/manage/Controlpanels/ContentTypeSchema";
|
|
68
|
-
export { default as ContentTypesActions } from "@plone/volto/components/manage/Controlpanels/ContentTypesActions";
|
|
69
|
-
export { default as UsersControlpanel } from "@plone/volto/components/manage/Controlpanels/Users/UsersControlpanel";
|
|
70
|
-
export { default as UserGroupMembershipControlPanel } from "@plone/volto/components/manage/Controlpanels/Users/UserGroupMembershipControlPanel";
|
|
71
|
-
export { default as Relations } from "@plone/volto/components/manage/Controlpanels/Relations/Relations";
|
|
72
|
-
export { default as GroupsControlpanel } from "@plone/volto/components/manage/Controlpanels/Groups/GroupsControlpanel";
|
|
73
|
-
export { default as RulesControlpanel } from "@plone/volto/components/manage/Controlpanels/Rules/Rules";
|
|
74
|
-
export { default as AddRuleControlpanel } from "@plone/volto/components/manage/Controlpanels/Rules/AddRule";
|
|
75
|
-
export { default as EditRuleControlpanel } from "@plone/volto/components/manage/Controlpanels/Rules/EditRule";
|
|
76
|
-
export { default as ConfigureRuleControlpanel } from "@plone/volto/components/manage/Controlpanels/Rules/ConfigureRule";
|
|
77
|
-
export { default as UpgradeControlPanel } from "@plone/volto/components/manage/Controlpanels/UpgradeControlPanel";
|
|
78
|
-
export { default as ModerateComments } from "@plone/volto/components/manage/Controlpanels/ModerateComments";
|
|
79
|
-
export { default as VersionOverview } from "@plone/volto/components/manage/Controlpanels/VersionOverview";
|
|
80
57
|
export { default as Delete } from "@plone/volto/components/manage/Delete/Delete";
|
|
81
|
-
export
|
|
58
|
+
export const Diff: import("@loadable/component").LoadableClassComponent<any>;
|
|
59
|
+
export const DiffField: import("@loadable/component").LoadableClassComponent<any>;
|
|
82
60
|
export { default as Display } from "@plone/volto/components/manage/Display/Display";
|
|
83
61
|
export { default as Edit } from "@plone/volto/components/manage/Edit/Edit";
|
|
84
|
-
export { default as ModalForm } from "@plone/volto/components/manage/Form/ModalForm";
|
|
85
62
|
export { default as History } from "@plone/volto/components/manage/History/History";
|
|
86
63
|
export { default as Sharing } from "@plone/volto/components/manage/Sharing/Sharing";
|
|
87
|
-
export
|
|
64
|
+
export const Rules: import("@loadable/component").LoadableClassComponent<any>;
|
|
88
65
|
export { default as Aliases } from "@plone/volto/components/manage/Aliases/Aliases";
|
|
89
66
|
export { default as LinksToItem } from "@plone/volto/components/manage/LinksToItem/LinksToItem";
|
|
90
67
|
export { default as Workflow } from "@plone/volto/components/manage/Workflow/Workflow";
|
|
@@ -100,43 +77,11 @@ export { default as More } from "@plone/volto/components/manage/Toolbar/More";
|
|
|
100
77
|
export { default as Types } from "@plone/volto/components/manage/Toolbar/Types";
|
|
101
78
|
export { default as Toast } from "@plone/volto/components/manage/Toast/Toast";
|
|
102
79
|
export { default as ManageTranslations } from "@plone/volto/components/manage/Multilingual/ManageTranslations";
|
|
103
|
-
export { default as Form } from "@plone/volto/components/manage/Form/Form";
|
|
104
|
-
export { default as BlocksToolbar } from "@plone/volto/components/manage/Form/BlocksToolbar";
|
|
105
|
-
export { default as UndoToolbar } from "@plone/volto/components/manage/Form/UndoToolbar";
|
|
106
|
-
export { default as Field } from "@plone/volto/components/manage/Form/Field";
|
|
107
80
|
export { default as SearchTags } from "@plone/volto/components/theme/Search/SearchTags";
|
|
108
|
-
export {
|
|
109
|
-
export { default as ContentsBreadcrumbs } from "@plone/volto/components/manage/Contents/ContentsBreadcrumbs";
|
|
110
|
-
export { default as ContentsIndexHeader } from "@plone/volto/components/manage/Contents/ContentsIndexHeader";
|
|
111
|
-
export { default as ContentsItem } from "@plone/volto/components/manage/Contents/ContentsItem";
|
|
112
|
-
export { default as ContentsUploadModal } from "@plone/volto/components/manage/Contents/ContentsUploadModal";
|
|
113
|
-
export { default as ContentsPropertiesModal } from "@plone/volto/components/manage/Contents/ContentsPropertiesModal";
|
|
114
|
-
export { default as ContentsRenameModal } from "@plone/volto/components/manage/Contents/ContentsRenameModal";
|
|
115
|
-
export { default as ContentsWorkflowModal } from "@plone/volto/components/manage/Contents/ContentsWorkflowModal";
|
|
116
|
-
export { default as ContentsTagsModal } from "@plone/volto/components/manage/Contents/ContentsTagsModal";
|
|
117
|
-
export { default as RenderUsers } from "@plone/volto/components/manage/Controlpanels/Users/RenderUsers";
|
|
118
|
-
export { default as RenderGroups } from "@plone/volto/components/manage/Controlpanels/Groups/RenderGroups";
|
|
119
|
-
export { default as DiffField } from "@plone/volto/components/manage/Diff/DiffField";
|
|
81
|
+
export { CommentEditModal } from "@plone/volto/components/theme/Comments";
|
|
120
82
|
export { default as DragDropList } from "@plone/volto/components/manage/DragDropList/DragDropList";
|
|
121
|
-
export
|
|
122
|
-
export
|
|
123
|
-
export { default as BlockDataForm } from "@plone/volto/components/manage/Form/BlockDataForm";
|
|
124
|
-
export { default as FormFieldWrapper } from "@plone/volto/components/manage/Widgets/FormFieldWrapper";
|
|
125
|
-
export { default as ArrayWidget } from "@plone/volto/components/manage/Widgets/ArrayWidget";
|
|
126
|
-
export { default as CheckboxWidget } from "@plone/volto/components/manage/Widgets/CheckboxWidget";
|
|
127
|
-
export const DatetimeWidget: any;
|
|
128
|
-
export const RecurrenceWidget: any;
|
|
129
|
-
export { default as FileWidget } from "@plone/volto/components/manage/Widgets/FileWidget";
|
|
130
|
-
export { default as IdWidget } from "@plone/volto/components/manage/Widgets/IdWidget";
|
|
131
|
-
export { default as PasswordWidget } from "@plone/volto/components/manage/Widgets/PasswordWidget";
|
|
132
|
-
export { default as ReferenceWidget } from "@plone/volto/components/manage/Widgets/ReferenceWidget";
|
|
133
|
-
export { default as SchemaWidget } from "@plone/volto/components/manage/Widgets/SchemaWidget";
|
|
134
|
-
export { default as SchemaWidgetFieldset } from "@plone/volto/components/manage/Widgets/SchemaWidgetFieldset";
|
|
135
|
-
export { default as SelectWidget } from "@plone/volto/components/manage/Widgets/SelectWidget";
|
|
136
|
-
export { default as TextareaWidget } from "@plone/volto/components/manage/Widgets/TextareaWidget";
|
|
137
|
-
export { default as TextWidget } from "@plone/volto/components/manage/Widgets/TextWidget";
|
|
138
|
-
export { default as ObjectWidget } from "@plone/volto/components/manage/Widgets/ObjectWidget";
|
|
139
|
-
export { default as ObjectListWidget } from "@plone/volto/components/manage/Widgets/ObjectListWidget";
|
|
83
|
+
export const SchemaWidgetFieldset: import("@loadable/component").LoadableClassComponent<any>;
|
|
84
|
+
export const ObjectBrowserWidgetMode: import("@loadable/component").LoadableComponent<Omit<import("react-intl").WithIntlProps<import("react-intl").WrappedComponentProps<string>>, "ref"> & import("react").RefAttributes<import("react").ComponentType<import("react-intl").WrappedComponentProps<string>>>>;
|
|
140
85
|
export { default as EditDefaultBlock } from "@plone/volto/components/manage/Blocks/Block/DefaultEdit";
|
|
141
86
|
export { default as EditDescriptionBlock } from "@plone/volto/components/manage/Blocks/Description/Edit";
|
|
142
87
|
export { default as EditTitleBlock } from "@plone/volto/components/manage/Blocks/Title/Edit";
|
|
@@ -174,4 +119,7 @@ export { default as FormattedRelativeDate } from "@plone/volto/components/theme/
|
|
|
174
119
|
export { default as Popup } from "@plone/volto/components/theme/Popup/Popup";
|
|
175
120
|
export { default as Component } from "@plone/volto/components/theme/Component/Component";
|
|
176
121
|
export { default as App } from "@plone/volto/components/theme/App/App";
|
|
177
|
-
export {
|
|
122
|
+
export { Controlpanels, Controlpanel, RulesControlpanel, AddRuleControlpanel, EditRuleControlpanel, ConfigureRuleControlpanel, UsersControlpanel, RenderUsers, UserGroupMembershipControlPanel, GroupsControlpanel, RenderGroups, RelationsControlpanel, AliasesControlpanel, UndoControlpanel, AddonsControlpanel, ContentType, ContentTypeLayout, ContentTypeSchema, ContentTypes, VersionOverview, UpgradeControlPanel, ModerateComments, DatabaseInformation } from "@plone/volto/components/manage/Controlpanels";
|
|
123
|
+
export { Field, InlineForm, ModalForm, UndoToolbar, BlocksToolbar, BlockDataForm, BlocksForm, Form } from "@plone/volto/components/manage/Form";
|
|
124
|
+
export { Contents, ContentsBreadcrumbs, ContentsIndexHeader, ContentsItem, ContentsUploadModal, ContentsPropertiesModal, ContentsRenameModal, ContentsWorkflowModal, ContentsTagsModal } from "@plone/volto/components/manage/Contents";
|
|
125
|
+
export { AlignWidget, ButtonsWidget, ArrayWidget, CheckboxWidget, FileWidget, IdWidget, PasswordWidget, QueryWidget, QuerySortOnWidget, QuerystringWidget, SchemaWidget, SelectWidget, TextareaWidget, TextWidget, TokenWidget, WysiwygWidget, UrlWidget, InternalUrlWidget, EmailWidget, NumberWidget, ImageSizeWidget, RegistryImageWidget, ReferenceWidget, ObjectBrowserWidget, ObjectWidget, ObjectListWidget, VocabularyTermsWidget, SelectMetadataWidget, SelectAutoComplete, ColorPickerWidget, DatetimeWidget, RecurrenceWidget, FormFieldWrapper } from "@plone/volto/components/manage/Widgets";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const Contents: import("@loadable/component").LoadableClassComponent<any>;
|
|
2
|
+
export declare const ContentsRenameModal: import("@loadable/component").LoadableComponent<any>;
|
|
3
|
+
export declare const ContentsBreadcrumbs: import("@loadable/component").LoadableComponent<any>;
|
|
4
|
+
export declare const ContentsIndexHeader: import("@loadable/component").LoadableClassComponent<any>;
|
|
5
|
+
export declare const ContentsItem: import("@loadable/component").LoadableClassComponent<any>;
|
|
6
|
+
export declare const ContentsUploadModal: import("@loadable/component").LoadableClassComponent<any>;
|
|
7
|
+
export declare const ContentsPropertiesModal: import("@loadable/component").LoadableComponent<any>;
|
|
8
|
+
export declare const ContentsWorkflowModal: import("@loadable/component").LoadableComponent<any>;
|
|
9
|
+
export declare const ContentsTagsModal: import("@loadable/component").LoadableComponent<any>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export default
|
|
2
|
-
declare function
|
|
1
|
+
export default RelationsListing;
|
|
2
|
+
declare function RelationsListing({ relationtype, query_source, query_target, potential_sources_path, potential_targets_path, }: {
|
|
3
3
|
relationtype: any;
|
|
4
4
|
query_source: any;
|
|
5
5
|
query_target: any;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const Controlpanels: any;
|
|
3
|
+
export declare const Controlpanel: import("@loadable/component").LoadableComponent<Omit<import("react-intl").WithIntlProps<import("react-intl").WrappedComponentProps<string>>, "ref"> & import("react").RefAttributes<import("react").ComponentType<import("react-intl").WrappedComponentProps<string>>>>;
|
|
4
|
+
export declare const RulesControlpanel: import("@loadable/component").LoadableClassComponent<any>;
|
|
5
|
+
export declare const AddRuleControlpanel: import("@loadable/component").LoadableClassComponent<any>;
|
|
6
|
+
export declare const EditRuleControlpanel: import("@loadable/component").LoadableClassComponent<any>;
|
|
7
|
+
export declare const ConfigureRuleControlpanel: import("@loadable/component").LoadableClassComponent<any>;
|
|
8
|
+
export declare const UsersControlpanel: import("@loadable/component").LoadableClassComponent<any>;
|
|
9
|
+
export declare const RenderUsers: import("@loadable/component").LoadableClassComponent<any>;
|
|
10
|
+
export declare const UserGroupMembershipControlPanel: import("@loadable/component").LoadableComponent<unknown>;
|
|
11
|
+
export declare const GroupsControlpanel: import("@loadable/component").LoadableClassComponent<any>;
|
|
12
|
+
export declare const RenderGroups: import("@loadable/component").LoadableComponent<import("react-intl").WithIntlProps<any>>;
|
|
13
|
+
export declare const RelationsControlpanel: import("@loadable/component").LoadableComponent<unknown>;
|
|
14
|
+
export declare const AliasesControlpanel: import("@loadable/component").LoadableClassComponent<any>;
|
|
15
|
+
export declare const UndoControlpanel: import("@loadable/component").LoadableClassComponent<any>;
|
|
16
|
+
export declare const AddonsControlpanel: import("@loadable/component").LoadableClassComponent<any>;
|
|
17
|
+
export declare const ContentType: import("@loadable/component").LoadableClassComponent<any>;
|
|
18
|
+
export declare const ContentTypeLayout: import("@loadable/component").LoadableClassComponent<any>;
|
|
19
|
+
export declare const ContentTypeSchema: import("@loadable/component").LoadableClassComponent<any>;
|
|
20
|
+
export declare const ContentTypes: import("@loadable/component").LoadableClassComponent<any>;
|
|
21
|
+
export declare const VersionOverview: import("@loadable/component").LoadableComponent<{
|
|
22
|
+
cmf_version: any;
|
|
23
|
+
debug_mode: any;
|
|
24
|
+
pil_version: any;
|
|
25
|
+
plone_version: any;
|
|
26
|
+
plone_restapi_version: any;
|
|
27
|
+
python_version: any;
|
|
28
|
+
zope_version: any;
|
|
29
|
+
}>;
|
|
30
|
+
export declare const UpgradeControlPanel: import("@loadable/component").LoadableClassComponent<any>;
|
|
31
|
+
export declare const ModerateComments: import("@loadable/component").LoadableClassComponent<any>;
|
|
32
|
+
export declare const DatabaseInformation: import("@loadable/component").LoadableClassComponent<any>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="jest" />
|
|
2
|
+
export declare const Field: jest.Mock<import("react/jsx-runtime").JSX.Element, [props: any], any>;
|
|
3
|
+
export declare const InlineForm: jest.Mock<import("react/jsx-runtime").JSX.Element, [props: any], any>;
|
|
4
|
+
export declare const ModalForm: jest.Mock<import("react/jsx-runtime").JSX.Element, [props: any], any>;
|
|
5
|
+
export declare const UndoToolbar: jest.Mock<import("react/jsx-runtime").JSX.Element, [], any>;
|
|
6
|
+
export declare const BlocksToolbar: jest.Mock<import("react/jsx-runtime").JSX.Element, [], any>;
|
|
7
|
+
export declare const BlockDataForm: jest.Mock<import("react/jsx-runtime").JSX.Element, [props: any], any>;
|
|
8
|
+
export declare const BlocksForm: jest.Mock<import("react/jsx-runtime").JSX.Element, [props: any], any>;
|
|
9
|
+
export declare const Form: jest.Mock<import("react/jsx-runtime").JSX.Element, [props: any], any>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const Field: import("@loadable/component").LoadableComponent<import("react-intl").WithIntlProps<any>>;
|
|
3
|
+
export declare const InlineForm: import("@loadable/component").LoadableComponent<Omit<import("react-intl").WithIntlProps<any>, "ref"> & import("react").RefAttributes<any>>;
|
|
4
|
+
export declare const ModalForm: import("@loadable/component").LoadableComponent<import("react-intl").WithIntlProps<any>>;
|
|
5
|
+
export declare const UndoToolbar: import("@loadable/component").LoadableComponent<{
|
|
6
|
+
state: any;
|
|
7
|
+
onUndoRedo: any;
|
|
8
|
+
maxUndoLevels: any;
|
|
9
|
+
enableHotKeys: any;
|
|
10
|
+
}>;
|
|
11
|
+
export declare const BlocksToolbar: import("@loadable/component").LoadableClassComponent<any>;
|
|
12
|
+
export declare const BlockDataForm: import("@loadable/component").LoadableComponent<any>;
|
|
13
|
+
export declare const BlocksForm: import("@loadable/component").LoadableComponent<any>;
|
|
14
|
+
export declare const Form: import("@loadable/component").LoadableClassComponent<any>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Rules: import("@loadable/component").LoadableClassComponent<any>;
|