@plone/volto 17.0.0-alpha.23 → 17.0.0-alpha.25
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/.yarn/install-state.gz +0 -0
- package/CHANGELOG.md +58 -1
- package/CONTRIBUTING.md +5 -1
- package/README.md +2 -1
- package/locales/ca/LC_MESSAGES/volto.po +37 -0
- package/locales/ca.json +1 -1
- package/locales/de/LC_MESSAGES/volto.po +37 -0
- package/locales/de.json +1 -1
- package/locales/en/LC_MESSAGES/volto.po +37 -0
- package/locales/en.json +1 -1
- package/locales/es/LC_MESSAGES/volto.po +37 -0
- package/locales/es.json +1 -1
- package/locales/eu/LC_MESSAGES/volto.po +37 -0
- package/locales/eu.json +1 -1
- package/locales/fi/LC_MESSAGES/volto.po +37 -0
- package/locales/fi.json +1 -1
- package/locales/fr/LC_MESSAGES/volto.po +37 -0
- package/locales/fr.json +1 -1
- package/locales/it/LC_MESSAGES/volto.po +37 -0
- package/locales/it.json +1 -1
- package/locales/ja/LC_MESSAGES/volto.po +37 -0
- package/locales/ja.json +1 -1
- package/locales/nl/LC_MESSAGES/volto.po +37 -0
- package/locales/nl.json +1 -1
- package/locales/pt/LC_MESSAGES/volto.po +37 -0
- package/locales/pt.json +1 -1
- package/locales/pt_BR/LC_MESSAGES/volto.po +37 -0
- package/locales/pt_BR.json +1 -1
- package/locales/ro/LC_MESSAGES/volto.po +37 -0
- package/locales/ro.json +1 -1
- package/locales/volto.pot +38 -1
- package/locales/zh_CN/LC_MESSAGES/volto.po +37 -0
- package/locales/zh_CN.json +1 -1
- package/package.json +2 -2
- package/packages/volto-slate/build/messages/src/blocks/Table/TableBlockEdit.json +90 -0
- package/packages/volto-slate/build/messages/src/blocks/Text/DefaultTextBlockEditor.json +6 -0
- package/packages/volto-slate/build/messages/src/blocks/Text/DetachedTextBlockEditor.json +6 -0
- package/packages/volto-slate/build/messages/src/blocks/Text/SlashMenu.json +6 -0
- package/packages/volto-slate/build/messages/src/editor/plugins/AdvancedLink/index.json +10 -0
- package/packages/volto-slate/build/messages/src/editor/plugins/Link/index.json +10 -0
- package/packages/volto-slate/build/messages/src/editor/plugins/Table/index.json +30 -0
- package/packages/volto-slate/build/messages/src/elementEditor/messages.json +10 -0
- package/packages/volto-slate/build/messages/src/widgets/HtmlSlateWidget.json +6 -0
- package/packages/volto-slate/build/messages/src/widgets/RichTextWidgetView.json +6 -0
- package/packages/volto-slate/package.json +1 -1
- package/src/actions/index.js +1 -0
- package/src/actions/relations/relations.js +17 -0
- package/src/components/manage/Blocks/Image/schema.js +5 -1
- package/src/components/manage/Blocks/Listing/withQuerystringResults.jsx +18 -11
- package/src/components/manage/Blocks/ToC/Schema.jsx +36 -7
- package/src/components/manage/Blocks/ToC/variations/DefaultTocRenderer.jsx +4 -3
- package/src/components/manage/Blocks/ToC/variations/DefaultTocRenderer.test.jsx +44 -0
- package/src/components/manage/Contents/Contents.jsx +27 -0
- package/src/components/manage/Controlpanels/Relations/BrokenRelations.jsx +11 -9
- package/src/components/manage/Controlpanels/Relations/Relations.jsx +3 -3
- package/src/components/manage/Controlpanels/Relations/RelationsListing.jsx +8 -7
- package/src/components/manage/Controlpanels/Relations/RelationsMatrix.jsx +15 -9
- package/src/components/manage/Controlpanels/Users/UsersControlpanel.jsx +25 -10
- package/src/components/manage/Diff/DiffField.jsx +25 -1
- package/src/components/manage/LinksToItem/LinksToItem.jsx +1 -1
- package/src/components/manage/LinksToItem/LinksToItem.test.jsx +1 -1
- package/src/components/manage/Sharing/Sharing.jsx +11 -5
- package/src/components/manage/Widgets/FormFieldWrapper.jsx +1 -1
- package/src/components/theme/Comments/Comment.stories.jsx +84 -0
- package/src/components/theme/Comments/Comments.jsx +273 -378
- package/src/components/theme/Error/ServerError.jsx +29 -0
- package/src/components/theme/Logout/Logout.jsx +36 -83
- package/src/components/theme/Search/SearchTags.jsx +30 -60
- package/src/components/theme/Sitemap/Sitemap.jsx +24 -13
- package/src/components/theme/Sitemap/Sitemap.test.jsx +23 -2
- package/src/config/Views.jsx +2 -0
- package/src/constants/ActionTypes.js +1 -0
- package/src/middleware/api.js +14 -2
- package/src/reducers/relations/relations.js +74 -46
- package/src/server.jsx +9 -0
- package/theme/themes/pastanaga/collections/form.overrides +46 -0
- package/theme/themes/pastanaga/elements/input.overrides +6 -0
- package/theme/themes/pastanaga/elements/label.overrides +10 -0
- package/.gitignore~ +0 -71
- package/news/4547.breaking~ +0 -1
- package/src/config/index.js~ +0 -223
|
@@ -96,7 +96,7 @@ class FormFieldWrapper extends Component {
|
|
|
96
96
|
{this.props.children}
|
|
97
97
|
|
|
98
98
|
{map(error, (message) => (
|
|
99
|
-
<Label key={message} basic color="red"
|
|
99
|
+
<Label key={message} basic color="red" className="form-error-label">
|
|
100
100
|
{message}
|
|
101
101
|
</Label>
|
|
102
102
|
))}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { injectIntl } from 'react-intl';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import CommentsComponent from './Comments';
|
|
4
|
+
import { RealStoreWrapper as Wrapper } from '@plone/volto/storybook';
|
|
5
|
+
|
|
6
|
+
const IntlCommentsComponent = injectIntl(CommentsComponent);
|
|
7
|
+
|
|
8
|
+
function StoryComponent(args) {
|
|
9
|
+
return (
|
|
10
|
+
<Wrapper
|
|
11
|
+
customStore={{
|
|
12
|
+
comments: {
|
|
13
|
+
items: [
|
|
14
|
+
{
|
|
15
|
+
'@id': 'someurl',
|
|
16
|
+
comment_id: '1614094601171408',
|
|
17
|
+
...args,
|
|
18
|
+
is_deletable: true,
|
|
19
|
+
is_editable: true,
|
|
20
|
+
can_reply: true,
|
|
21
|
+
},
|
|
22
|
+
],
|
|
23
|
+
permissions: {
|
|
24
|
+
view_comments: true,
|
|
25
|
+
can_reply: true,
|
|
26
|
+
},
|
|
27
|
+
add: {
|
|
28
|
+
loading: false,
|
|
29
|
+
loaded: true,
|
|
30
|
+
},
|
|
31
|
+
delete: {
|
|
32
|
+
loading: false,
|
|
33
|
+
loaded: true,
|
|
34
|
+
},
|
|
35
|
+
update: {
|
|
36
|
+
loading: false,
|
|
37
|
+
loaded: true,
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
intl: {
|
|
41
|
+
locale: 'en',
|
|
42
|
+
messages: {},
|
|
43
|
+
},
|
|
44
|
+
}}
|
|
45
|
+
>
|
|
46
|
+
<div id="toolbar" style={{ display: 'none' }} />
|
|
47
|
+
<IntlCommentsComponent {...args} />
|
|
48
|
+
</Wrapper>
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export const CommentsModal = StoryComponent.bind({});
|
|
53
|
+
CommentsModal.args = {
|
|
54
|
+
author_name: 'admin',
|
|
55
|
+
creation_date: '2017-11-06T19:36:01',
|
|
56
|
+
text: { data: 'Plone 6' },
|
|
57
|
+
};
|
|
58
|
+
export default {
|
|
59
|
+
title: 'Public components/Comments/Comments Modal',
|
|
60
|
+
component: CommentsComponent,
|
|
61
|
+
decorators: [
|
|
62
|
+
(Story) => (
|
|
63
|
+
<div className="ui segment form attached" style={{ width: '400px' }}>
|
|
64
|
+
<Story />
|
|
65
|
+
</div>
|
|
66
|
+
),
|
|
67
|
+
],
|
|
68
|
+
argTypes: {
|
|
69
|
+
creation_date: {
|
|
70
|
+
control: 'date',
|
|
71
|
+
description: 'Date comment was created',
|
|
72
|
+
},
|
|
73
|
+
author_name: {
|
|
74
|
+
control: 'text',
|
|
75
|
+
description: 'Comment author name',
|
|
76
|
+
},
|
|
77
|
+
text: {
|
|
78
|
+
data: {
|
|
79
|
+
control: 'date',
|
|
80
|
+
},
|
|
81
|
+
description: 'Comment text',
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
};
|