@plone/volto 18.0.0-alpha.26 → 18.0.0-alpha.28
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 +25 -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 +21 -19
- 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/ColorPickerWidget.tsx +7 -7
- 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/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/reducers/navigation/navigation.js +1 -2
- package/src/reducers/navigation/navigation.test.js +6 -0
- package/src/routes.js +22 -20
- 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/ColorPickerWidget.d.ts +5 -5
- 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
package/src/components/index.js
CHANGED
|
@@ -75,39 +75,54 @@ export { default as AlbumView } from '@plone/volto/components/theme/View/AlbumVi
|
|
|
75
75
|
|
|
76
76
|
export { default as Actions } from '@plone/volto/components/manage/Actions/Actions';
|
|
77
77
|
export { default as Add } from '@plone/volto/components/manage/Add/Add';
|
|
78
|
-
export {
|
|
79
|
-
|
|
80
|
-
|
|
78
|
+
export {
|
|
79
|
+
Controlpanels,
|
|
80
|
+
Controlpanel,
|
|
81
|
+
RulesControlpanel,
|
|
82
|
+
AddRuleControlpanel,
|
|
83
|
+
EditRuleControlpanel,
|
|
84
|
+
ConfigureRuleControlpanel,
|
|
85
|
+
UsersControlpanel,
|
|
86
|
+
RenderUsers,
|
|
87
|
+
UserGroupMembershipControlPanel,
|
|
88
|
+
GroupsControlpanel,
|
|
89
|
+
RenderGroups,
|
|
90
|
+
RelationsControlpanel,
|
|
91
|
+
AliasesControlpanel,
|
|
92
|
+
UndoControlpanel,
|
|
93
|
+
AddonsControlpanel,
|
|
94
|
+
ContentType,
|
|
95
|
+
ContentTypeLayout,
|
|
96
|
+
ContentTypeSchema,
|
|
97
|
+
ContentTypes,
|
|
98
|
+
VersionOverview,
|
|
99
|
+
UpgradeControlPanel,
|
|
100
|
+
ModerateComments,
|
|
101
|
+
DatabaseInformation,
|
|
102
|
+
} from '@plone/volto/components/manage/Controlpanels';
|
|
103
|
+
|
|
81
104
|
export { default as Circle } from '@plone/volto/components/manage/Contents/circle';
|
|
82
|
-
|
|
83
|
-
export { default as Controlpanel } from '@plone/volto/components/manage/Controlpanels/Controlpanel';
|
|
84
|
-
export { default as Controlpanels } from '@plone/volto/components/manage/Controlpanels/Controlpanels';
|
|
85
|
-
export { default as AliasesControlpanel } from '@plone/volto/components/manage/Controlpanels/Aliases';
|
|
86
|
-
export { default as ContentTypes } from '@plone/volto/components/manage/Controlpanels/ContentTypes';
|
|
87
|
-
export { default as ContentType } from '@plone/volto/components/manage/Controlpanels/ContentType';
|
|
88
|
-
export { default as ContentTypeLayout } from '@plone/volto/components/manage/Controlpanels/ContentTypeLayout';
|
|
89
|
-
export { default as ContentTypeSchema } from '@plone/volto/components/manage/Controlpanels/ContentTypeSchema';
|
|
90
|
-
export { default as ContentTypesActions } from '@plone/volto/components/manage/Controlpanels/ContentTypesActions';
|
|
91
|
-
export { default as UsersControlpanel } from '@plone/volto/components/manage/Controlpanels/Users/UsersControlpanel';
|
|
92
|
-
export { default as UserGroupMembershipControlPanel } from '@plone/volto/components/manage/Controlpanels/Users/UserGroupMembershipControlPanel';
|
|
93
|
-
export { default as Relations } from '@plone/volto/components/manage/Controlpanels/Relations/Relations';
|
|
94
|
-
export { default as GroupsControlpanel } from '@plone/volto/components/manage/Controlpanels/Groups/GroupsControlpanel';
|
|
95
|
-
export { default as RulesControlpanel } from '@plone/volto/components/manage/Controlpanels/Rules/Rules';
|
|
96
|
-
export { default as AddRuleControlpanel } from '@plone/volto/components/manage/Controlpanels/Rules/AddRule';
|
|
97
|
-
export { default as EditRuleControlpanel } from '@plone/volto/components/manage/Controlpanels/Rules/EditRule';
|
|
98
|
-
export { default as ConfigureRuleControlpanel } from '@plone/volto/components/manage/Controlpanels/Rules/ConfigureRule';
|
|
99
|
-
export { default as UpgradeControlPanel } from '@plone/volto/components/manage/Controlpanels/UpgradeControlPanel';
|
|
100
|
-
|
|
101
|
-
export { default as ModerateComments } from '@plone/volto/components/manage/Controlpanels/ModerateComments';
|
|
102
|
-
export { default as VersionOverview } from '@plone/volto/components/manage/Controlpanels/VersionOverview';
|
|
105
|
+
|
|
103
106
|
export { default as Delete } from '@plone/volto/components/manage/Delete/Delete';
|
|
104
|
-
export
|
|
107
|
+
export const Diff = loadable(
|
|
108
|
+
() =>
|
|
109
|
+
import(
|
|
110
|
+
/* webpackChunkName: "HistoryView" */ '@plone/volto/components/manage/Diff/Diff'
|
|
111
|
+
),
|
|
112
|
+
);
|
|
113
|
+
export const DiffField = loadable(
|
|
114
|
+
() =>
|
|
115
|
+
import(
|
|
116
|
+
/* webpackChunkName: "HistoryView" */ '@plone/volto/components/manage/Diff/DiffField'
|
|
117
|
+
),
|
|
118
|
+
);
|
|
105
119
|
export { default as Display } from '@plone/volto/components/manage/Display/Display';
|
|
106
120
|
export { default as Edit } from '@plone/volto/components/manage/Edit/Edit';
|
|
107
|
-
export { default as ModalForm } from '@plone/volto/components/manage/Form/ModalForm';
|
|
108
121
|
export { default as History } from '@plone/volto/components/manage/History/History';
|
|
109
122
|
export { default as Sharing } from '@plone/volto/components/manage/Sharing/Sharing';
|
|
110
|
-
export
|
|
123
|
+
export const Rules = loadable(
|
|
124
|
+
() => import('@plone/volto/components/manage/Rules/Rules'),
|
|
125
|
+
);
|
|
111
126
|
export { default as Aliases } from '@plone/volto/components/manage/Aliases/Aliases';
|
|
112
127
|
export { default as LinksToItem } from '@plone/volto/components/manage/LinksToItem/LinksToItem';
|
|
113
128
|
export { default as Workflow } from '@plone/volto/components/manage/Workflow/Workflow';
|
|
@@ -124,58 +139,74 @@ export { default as Types } from '@plone/volto/components/manage/Toolbar/Types';
|
|
|
124
139
|
export { default as Toast } from '@plone/volto/components/manage/Toast/Toast';
|
|
125
140
|
export { default as ManageTranslations } from '@plone/volto/components/manage/Multilingual/ManageTranslations';
|
|
126
141
|
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
142
|
+
export {
|
|
143
|
+
Field,
|
|
144
|
+
InlineForm,
|
|
145
|
+
ModalForm,
|
|
146
|
+
UndoToolbar,
|
|
147
|
+
BlocksToolbar,
|
|
148
|
+
BlockDataForm,
|
|
149
|
+
BlocksForm,
|
|
150
|
+
Form,
|
|
151
|
+
} from '@plone/volto/components/manage/Form';
|
|
133
152
|
export { default as SearchTags } from '@plone/volto/components/theme/Search/SearchTags';
|
|
134
|
-
export {
|
|
135
|
-
export {
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
153
|
+
export { CommentEditModal } from '@plone/volto/components/theme/Comments';
|
|
154
|
+
export {
|
|
155
|
+
Contents,
|
|
156
|
+
ContentsBreadcrumbs,
|
|
157
|
+
ContentsIndexHeader,
|
|
158
|
+
ContentsItem,
|
|
159
|
+
ContentsUploadModal,
|
|
160
|
+
ContentsPropertiesModal,
|
|
161
|
+
ContentsRenameModal,
|
|
162
|
+
ContentsWorkflowModal,
|
|
163
|
+
ContentsTagsModal,
|
|
164
|
+
} from '@plone/volto/components/manage/Contents';
|
|
146
165
|
export { default as DragDropList } from '@plone/volto/components/manage/DragDropList/DragDropList';
|
|
147
|
-
export { default as InlineForm } from '@plone/volto/components/manage/Form/InlineForm';
|
|
148
|
-
export { default as BlocksForm } from '@plone/volto/components/manage/Blocks/Block/BlocksForm';
|
|
149
|
-
export { default as BlockDataForm } from '@plone/volto/components/manage/Form/BlockDataForm';
|
|
150
|
-
|
|
151
|
-
export { default as FormFieldWrapper } from '@plone/volto/components/manage/Widgets/FormFieldWrapper';
|
|
152
|
-
export { default as ArrayWidget } from '@plone/volto/components/manage/Widgets/ArrayWidget';
|
|
153
|
-
export { default as CheckboxWidget } from '@plone/volto/components/manage/Widgets/CheckboxWidget';
|
|
154
166
|
|
|
155
|
-
export
|
|
156
|
-
|
|
167
|
+
export {
|
|
168
|
+
AlignWidget,
|
|
169
|
+
ButtonsWidget,
|
|
170
|
+
ArrayWidget,
|
|
171
|
+
CheckboxWidget,
|
|
172
|
+
FileWidget,
|
|
173
|
+
IdWidget,
|
|
174
|
+
PasswordWidget,
|
|
175
|
+
QueryWidget,
|
|
176
|
+
QuerySortOnWidget,
|
|
177
|
+
QuerystringWidget,
|
|
178
|
+
SchemaWidget,
|
|
179
|
+
SelectWidget,
|
|
180
|
+
TextareaWidget,
|
|
181
|
+
TextWidget,
|
|
182
|
+
TokenWidget,
|
|
183
|
+
WysiwygWidget,
|
|
184
|
+
UrlWidget,
|
|
185
|
+
InternalUrlWidget,
|
|
186
|
+
EmailWidget,
|
|
187
|
+
NumberWidget,
|
|
188
|
+
ImageSizeWidget,
|
|
189
|
+
RegistryImageWidget,
|
|
190
|
+
ReferenceWidget,
|
|
191
|
+
ObjectBrowserWidget,
|
|
192
|
+
ObjectWidget,
|
|
193
|
+
ObjectListWidget,
|
|
194
|
+
VocabularyTermsWidget,
|
|
195
|
+
SelectMetadataWidget,
|
|
196
|
+
SelectAutoComplete,
|
|
197
|
+
ColorPickerWidget,
|
|
198
|
+
DatetimeWidget,
|
|
199
|
+
RecurrenceWidget,
|
|
200
|
+
FormFieldWrapper,
|
|
201
|
+
} from '@plone/volto/components/manage/Widgets';
|
|
202
|
+
|
|
203
|
+
export const SchemaWidgetFieldset = loadable(
|
|
204
|
+
() => import('@plone/volto/components/manage/Widgets/SchemaWidgetFieldset'),
|
|
157
205
|
);
|
|
158
|
-
export const
|
|
159
|
-
() =>
|
|
160
|
-
import(
|
|
161
|
-
'@plone/volto/components/manage/Widgets/RecurrenceWidget/RecurrenceWidget'
|
|
162
|
-
),
|
|
206
|
+
export const ObjectBrowserWidgetMode = loadable(
|
|
207
|
+
() => import('@plone/volto/components/manage/Widgets/ObjectBrowserWidget'),
|
|
163
208
|
);
|
|
164
209
|
|
|
165
|
-
export { default as FileWidget } from '@plone/volto/components/manage/Widgets/FileWidget';
|
|
166
|
-
export { default as IdWidget } from '@plone/volto/components/manage/Widgets/IdWidget';
|
|
167
|
-
export { default as PasswordWidget } from '@plone/volto/components/manage/Widgets/PasswordWidget';
|
|
168
|
-
export { default as ReferenceWidget } from '@plone/volto/components/manage/Widgets/ReferenceWidget';
|
|
169
|
-
export { default as SchemaWidget } from '@plone/volto/components/manage/Widgets/SchemaWidget';
|
|
170
|
-
export { default as SchemaWidgetFieldset } from '@plone/volto/components/manage/Widgets/SchemaWidgetFieldset';
|
|
171
|
-
export { default as SelectWidget } from '@plone/volto/components/manage/Widgets/SelectWidget';
|
|
172
|
-
export { default as TextareaWidget } from '@plone/volto/components/manage/Widgets/TextareaWidget';
|
|
173
|
-
export { default as TextWidget } from '@plone/volto/components/manage/Widgets/TextWidget';
|
|
174
|
-
export { default as ObjectBrowserWidget } from '@plone/volto/components/manage/Widgets/ObjectBrowserWidget';
|
|
175
|
-
export { default as ObjectBrowserWidgetMode } from '@plone/volto/components/manage/Widgets/ObjectBrowserWidget';
|
|
176
|
-
export { default as ObjectWidget } from '@plone/volto/components/manage/Widgets/ObjectWidget';
|
|
177
|
-
export { default as ObjectListWidget } from '@plone/volto/components/manage/Widgets/ObjectListWidget';
|
|
178
|
-
|
|
179
210
|
export { default as EditDefaultBlock } from '@plone/volto/components/manage/Blocks/Block/DefaultEdit';
|
|
180
211
|
export { default as EditDescriptionBlock } from '@plone/volto/components/manage/Blocks/Description/Edit';
|
|
181
212
|
export { default as EditTitleBlock } from '@plone/volto/components/manage/Blocks/Title/Edit';
|
|
@@ -8,7 +8,8 @@ import { FormattedMessage, defineMessages, useIntl } from 'react-intl';
|
|
|
8
8
|
|
|
9
9
|
import { cut, copy, copyContent, moveContent } from '@plone/volto/actions';
|
|
10
10
|
import { getBaseUrl } from '@plone/volto/helpers';
|
|
11
|
-
import {
|
|
11
|
+
import { Toast } from '@plone/volto/components';
|
|
12
|
+
import { ContentsRenameModal } from '@plone/volto/components/manage/Contents';
|
|
12
13
|
|
|
13
14
|
const messages = defineMessages({
|
|
14
15
|
cut: {
|
|
@@ -8,9 +8,7 @@ import Actions from './Actions';
|
|
|
8
8
|
|
|
9
9
|
const mockStore = configureStore();
|
|
10
10
|
|
|
11
|
-
jest.mock('
|
|
12
|
-
jest.fn(() => <div className="RenameModal" />),
|
|
13
|
-
);
|
|
11
|
+
jest.mock('@plone/volto/components/manage/Contents');
|
|
14
12
|
|
|
15
13
|
describe('Actions', () => {
|
|
16
14
|
it('renders an actions component', () => {
|
|
@@ -23,13 +23,13 @@ import {
|
|
|
23
23
|
setFormData,
|
|
24
24
|
} from '@plone/volto/actions';
|
|
25
25
|
import {
|
|
26
|
-
Form,
|
|
27
26
|
Icon,
|
|
28
27
|
Toolbar,
|
|
29
28
|
Sidebar,
|
|
30
29
|
Toast,
|
|
31
30
|
TranslationObject,
|
|
32
31
|
} from '@plone/volto/components';
|
|
32
|
+
import { Form } from '@plone/volto/components/manage/Form';
|
|
33
33
|
import {
|
|
34
34
|
getBaseUrl,
|
|
35
35
|
hasBlocksData,
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import config from '@plone/volto/registry';
|
|
3
3
|
import { useIntl } from 'react-intl';
|
|
4
4
|
import { SidebarPortal } from '@plone/volto/components';
|
|
5
|
-
import { BlockDataForm } from '@plone/volto/components';
|
|
5
|
+
import { BlockDataForm } from '@plone/volto/components/manage/Form';
|
|
6
6
|
import DefaultBlockView from './DefaultView';
|
|
7
7
|
|
|
8
8
|
const DefaultBlockEdit = (props) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { injectIntl } from 'react-intl';
|
|
4
|
-
import BlockDataForm from '@plone/volto/components/manage/Form
|
|
4
|
+
import { BlockDataForm } from '@plone/volto/components/manage/Form';
|
|
5
5
|
|
|
6
6
|
const Settings = ({
|
|
7
7
|
data,
|
|
@@ -5,6 +5,8 @@ import configureStore from 'redux-mock-store';
|
|
|
5
5
|
import config from '@plone/volto/registry';
|
|
6
6
|
import { Provider } from 'react-intl-redux';
|
|
7
7
|
|
|
8
|
+
jest.mock('@plone/volto/components/manage/Form');
|
|
9
|
+
|
|
8
10
|
const mockStore = configureStore();
|
|
9
11
|
|
|
10
12
|
const withStateManagement =
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useIntl } from 'react-intl';
|
|
2
|
-
import { BlockDataForm } from '@plone/volto/components';
|
|
2
|
+
import { BlockDataForm } from '@plone/volto/components/manage/Form';
|
|
3
3
|
|
|
4
4
|
const ContainerData = (props) => {
|
|
5
5
|
const { block, blocksConfig, data, onChangeBlock, navRoot, contentType } =
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { useState } from 'react';
|
|
2
2
|
import { useIntl } from 'react-intl';
|
|
3
3
|
import { pickBy } from 'lodash';
|
|
4
|
-
import {
|
|
4
|
+
import { SidebarPortal } from '@plone/volto/components';
|
|
5
|
+
import { BlocksForm } from '@plone/volto/components/manage/Form';
|
|
5
6
|
import PropTypes from 'prop-types';
|
|
6
7
|
import ContainerData from './Data';
|
|
7
8
|
import DefaultEditBlockWrapper from './EditBlockWrapper';
|
|
@@ -3,7 +3,8 @@ import PropTypes from 'prop-types';
|
|
|
3
3
|
import { Segment, Button } from 'semantic-ui-react';
|
|
4
4
|
import { useIntl, FormattedMessage, defineMessages } from 'react-intl';
|
|
5
5
|
import { flattenToAppURL, isInternalURL } from '@plone/volto/helpers';
|
|
6
|
-
import {
|
|
6
|
+
import { Icon, Image } from '@plone/volto/components';
|
|
7
|
+
import { BlockDataForm } from '@plone/volto/components/manage/Form';
|
|
7
8
|
import { ImageSchema } from './schema';
|
|
8
9
|
import imageSVG from '@plone/volto/icons/image.svg';
|
|
9
10
|
import trashSVG from '@plone/volto/icons/delete.svg';
|
|
@@ -3,12 +3,11 @@ import PropTypes from 'prop-types';
|
|
|
3
3
|
import { Form } from 'semantic-ui-react';
|
|
4
4
|
import { Accordion, Grid, Segment } from 'semantic-ui-react';
|
|
5
5
|
import { defineMessages, FormattedMessage, injectIntl } from 'react-intl';
|
|
6
|
+
import { Icon, Image } from '@plone/volto/components';
|
|
6
7
|
import {
|
|
7
8
|
CheckboxWidget,
|
|
8
|
-
Icon,
|
|
9
|
-
Image,
|
|
10
9
|
TextWidget,
|
|
11
|
-
} from '@plone/volto/components';
|
|
10
|
+
} from '@plone/volto/components/manage/Widgets';
|
|
12
11
|
import { flattenToAppURL } from '@plone/volto/helpers';
|
|
13
12
|
import AlignBlock from '@plone/volto/components/manage/Sidebar/AlignBlock';
|
|
14
13
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { useIntl } from 'react-intl';
|
|
4
|
-
import { BlockDataForm } from '@plone/volto/components';
|
|
4
|
+
import { BlockDataForm } from '@plone/volto/components/manage/Form';
|
|
5
5
|
|
|
6
6
|
const ListingData = (props) => {
|
|
7
7
|
const { data, block, blocksConfig, onChangeBlock, navRoot, contentType } =
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { MapsSchema } from './schema';
|
|
3
|
-
import { BlockDataForm } from '@plone/volto/components';
|
|
4
3
|
import { useIntl, defineMessages } from 'react-intl';
|
|
5
4
|
import globeSVG from '@plone/volto/icons/globe.svg';
|
|
6
5
|
import { Icon } from '@plone/volto/components';
|
|
6
|
+
import { BlockDataForm } from '@plone/volto/components/manage/Form';
|
|
7
7
|
import { Segment } from 'semantic-ui-react';
|
|
8
8
|
|
|
9
9
|
const messages = defineMessages({
|
|
@@ -2,7 +2,8 @@ import React, { useEffect } from 'react';
|
|
|
2
2
|
import { defineMessages } from 'react-intl';
|
|
3
3
|
import { compose } from 'redux';
|
|
4
4
|
|
|
5
|
-
import { SidebarPortal
|
|
5
|
+
import { SidebarPortal } from '@plone/volto/components';
|
|
6
|
+
import { BlockDataForm } from '@plone/volto/components/manage/Form';
|
|
6
7
|
import { addExtensionFieldToSchema } from '@plone/volto/helpers/Extensions/withBlockSchemaEnhancer';
|
|
7
8
|
import { getBaseUrl } from '@plone/volto/helpers';
|
|
8
9
|
import config from '@plone/volto/registry';
|
|
@@ -9,7 +9,7 @@ import PropTypes from 'prop-types';
|
|
|
9
9
|
import { injectLazyLibs } from '@plone/volto/helpers/Loadable/Loadable';
|
|
10
10
|
import { compose } from 'redux';
|
|
11
11
|
|
|
12
|
-
import { FormFieldWrapper } from '@plone/volto/components';
|
|
12
|
+
import { FormFieldWrapper } from '@plone/volto/components/manage/Widgets';
|
|
13
13
|
import withQueryString from './../hocs/withQueryString';
|
|
14
14
|
import { defineMessages } from 'react-intl';
|
|
15
15
|
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { defineMessages, useIntl } from 'react-intl';
|
|
3
3
|
import { Button } from 'semantic-ui-react';
|
|
4
|
-
import {
|
|
4
|
+
import { Icon } from '@plone/volto/components';
|
|
5
|
+
import { BlockDataForm } from '@plone/volto/components/manage/Form';
|
|
5
6
|
import { isEmpty } from 'lodash';
|
|
6
7
|
|
|
7
8
|
import trashSVG from '@plone/volto/icons/delete.svg';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { Component } from 'react';
|
|
2
2
|
|
|
3
3
|
import { SidebarPortal } from '@plone/volto/components';
|
|
4
|
-
import BlockDataForm from '@plone/volto/components/manage/Form
|
|
4
|
+
import { BlockDataForm } from '@plone/volto/components/manage/Form';
|
|
5
5
|
|
|
6
6
|
import TableOfContentsSchema from './Schema';
|
|
7
7
|
import View from './View';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { VideoBlockSchema } from './schema';
|
|
3
|
-
import { BlockDataForm } from '@plone/volto/components';
|
|
4
3
|
import { Segment } from 'semantic-ui-react';
|
|
5
4
|
import { defineMessages, useIntl } from 'react-intl';
|
|
6
5
|
import { Icon } from '@plone/volto/components';
|
|
6
|
+
import { BlockDataForm } from '@plone/volto/components/manage/Form';
|
|
7
7
|
import videoSVG from '@plone/volto/icons/videocamera.svg';
|
|
8
8
|
|
|
9
9
|
const messages = defineMessages({
|
|
@@ -53,14 +53,6 @@ import {
|
|
|
53
53
|
} from '@plone/volto/actions';
|
|
54
54
|
import Indexes, { defaultIndexes } from '@plone/volto/constants/Indexes';
|
|
55
55
|
import {
|
|
56
|
-
ContentsBreadcrumbs,
|
|
57
|
-
ContentsIndexHeader,
|
|
58
|
-
ContentsItem,
|
|
59
|
-
ContentsRenameModal,
|
|
60
|
-
ContentsUploadModal,
|
|
61
|
-
ContentsWorkflowModal,
|
|
62
|
-
ContentsTagsModal,
|
|
63
|
-
ContentsPropertiesModal,
|
|
64
56
|
Pagination,
|
|
65
57
|
Popup,
|
|
66
58
|
Toolbar,
|
|
@@ -68,6 +60,14 @@ import {
|
|
|
68
60
|
Icon,
|
|
69
61
|
Unauthorized,
|
|
70
62
|
} from '@plone/volto/components';
|
|
63
|
+
import ContentsBreadcrumbs from '@plone/volto/components/manage/Contents/ContentsBreadcrumbs';
|
|
64
|
+
import ContentsIndexHeader from '@plone/volto/components/manage/Contents/ContentsIndexHeader';
|
|
65
|
+
import ContentsItem from '@plone/volto/components/manage/Contents/ContentsItem';
|
|
66
|
+
import { ContentsRenameModal } from '@plone/volto/components/manage/Contents';
|
|
67
|
+
import ContentsUploadModal from '@plone/volto/components/manage/Contents/ContentsUploadModal';
|
|
68
|
+
import ContentsWorkflowModal from '@plone/volto/components/manage/Contents/ContentsWorkflowModal';
|
|
69
|
+
import ContentsTagsModal from '@plone/volto/components/manage/Contents/ContentsTagsModal';
|
|
70
|
+
import ContentsPropertiesModal from '@plone/volto/components/manage/Contents/ContentsPropertiesModal';
|
|
71
71
|
|
|
72
72
|
import { Helmet, getBaseUrl } from '@plone/volto/helpers';
|
|
73
73
|
import { injectLazyLibs } from '@plone/volto/helpers/Loadable/Loadable';
|
|
@@ -4,7 +4,7 @@ import configureStore from 'redux-mock-store';
|
|
|
4
4
|
import thunk from 'redux-thunk';
|
|
5
5
|
import { Provider } from 'react-intl-redux';
|
|
6
6
|
|
|
7
|
-
import
|
|
7
|
+
import ContentsIndexHeader from './ContentsIndexHeader';
|
|
8
8
|
|
|
9
9
|
const mockStore = configureStore([thunk]);
|
|
10
10
|
|
|
@@ -6,7 +6,7 @@ import { defineMessages, useIntl } from 'react-intl';
|
|
|
6
6
|
|
|
7
7
|
import { usePrevious } from '@plone/volto/helpers';
|
|
8
8
|
import { updateContent } from '@plone/volto/actions';
|
|
9
|
-
import { ModalForm } from '@plone/volto/components';
|
|
9
|
+
import { ModalForm } from '@plone/volto/components/manage/Form';
|
|
10
10
|
|
|
11
11
|
const messages = defineMessages({
|
|
12
12
|
properties: {
|
|
@@ -7,7 +7,7 @@ import ContentsPropertiesModal from './ContentsPropertiesModal';
|
|
|
7
7
|
|
|
8
8
|
const mockStore = configureStore();
|
|
9
9
|
|
|
10
|
-
jest.mock('
|
|
10
|
+
jest.mock('@plone/volto/components/manage/Form');
|
|
11
11
|
|
|
12
12
|
describe('ContentsPropertiesModal', () => {
|
|
13
13
|
it('renders a contents properties modal component', () => {
|
|
@@ -6,7 +6,7 @@ import { defineMessages, useIntl } from 'react-intl';
|
|
|
6
6
|
|
|
7
7
|
import { usePrevious } from '@plone/volto/helpers';
|
|
8
8
|
import { updateContent } from '@plone/volto/actions';
|
|
9
|
-
import { ModalForm } from '@plone/volto/components';
|
|
9
|
+
import { ModalForm } from '@plone/volto/components/manage/Form';
|
|
10
10
|
|
|
11
11
|
const messages = defineMessages({
|
|
12
12
|
renameItems: {
|
|
@@ -7,7 +7,7 @@ import ContentsRenameModal from './ContentsRenameModal';
|
|
|
7
7
|
|
|
8
8
|
const mockStore = configureStore();
|
|
9
9
|
|
|
10
|
-
jest.mock('
|
|
10
|
+
jest.mock('@plone/volto/components/manage/Form');
|
|
11
11
|
|
|
12
12
|
describe('ContentsRenameModal', () => {
|
|
13
13
|
it('renders a contents rename modal component', () => {
|
|
@@ -6,7 +6,7 @@ import { defineMessages, useIntl } from 'react-intl';
|
|
|
6
6
|
|
|
7
7
|
import { usePrevious } from '@plone/volto/helpers';
|
|
8
8
|
import { updateContent } from '@plone/volto/actions';
|
|
9
|
-
import { ModalForm } from '@plone/volto/components';
|
|
9
|
+
import { ModalForm } from '@plone/volto/components/manage/Form';
|
|
10
10
|
|
|
11
11
|
const messages = defineMessages({
|
|
12
12
|
default: {
|
|
@@ -7,7 +7,7 @@ import ContentsTagsModal from './ContentsTagsModal';
|
|
|
7
7
|
|
|
8
8
|
const mockStore = configureStore();
|
|
9
9
|
|
|
10
|
-
jest.mock('
|
|
10
|
+
jest.mock('@plone/volto/components/manage/Form');
|
|
11
11
|
|
|
12
12
|
describe('ContentsTagsModal', () => {
|
|
13
13
|
it('renders a contents tags modal component', () => {
|
|
@@ -6,7 +6,7 @@ import { defineMessages, useIntl } from 'react-intl';
|
|
|
6
6
|
|
|
7
7
|
import { usePrevious } from '@plone/volto/helpers';
|
|
8
8
|
import { getWorkflow, transitionWorkflow } from '@plone/volto/actions';
|
|
9
|
-
import { ModalForm } from '@plone/volto/components';
|
|
9
|
+
import { ModalForm } from '@plone/volto/components/manage/Form';
|
|
10
10
|
|
|
11
11
|
const messages = defineMessages({
|
|
12
12
|
default: {
|
|
@@ -7,7 +7,7 @@ import ContentsWorkflowModal from './ContentsWorkflowModal';
|
|
|
7
7
|
|
|
8
8
|
const mockStore = configureStore();
|
|
9
9
|
|
|
10
|
-
jest.mock('
|
|
10
|
+
jest.mock('@plone/volto/components/manage/Form');
|
|
11
11
|
|
|
12
12
|
describe('ContentsWorkflowModal', () => {
|
|
13
13
|
it('renders a contents workflow modal component', () => {
|