@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.
Files changed (81) hide show
  1. package/.yarn/install-state.gz +0 -0
  2. package/CHANGELOG.md +58 -1
  3. package/CONTRIBUTING.md +5 -1
  4. package/README.md +2 -1
  5. package/locales/ca/LC_MESSAGES/volto.po +37 -0
  6. package/locales/ca.json +1 -1
  7. package/locales/de/LC_MESSAGES/volto.po +37 -0
  8. package/locales/de.json +1 -1
  9. package/locales/en/LC_MESSAGES/volto.po +37 -0
  10. package/locales/en.json +1 -1
  11. package/locales/es/LC_MESSAGES/volto.po +37 -0
  12. package/locales/es.json +1 -1
  13. package/locales/eu/LC_MESSAGES/volto.po +37 -0
  14. package/locales/eu.json +1 -1
  15. package/locales/fi/LC_MESSAGES/volto.po +37 -0
  16. package/locales/fi.json +1 -1
  17. package/locales/fr/LC_MESSAGES/volto.po +37 -0
  18. package/locales/fr.json +1 -1
  19. package/locales/it/LC_MESSAGES/volto.po +37 -0
  20. package/locales/it.json +1 -1
  21. package/locales/ja/LC_MESSAGES/volto.po +37 -0
  22. package/locales/ja.json +1 -1
  23. package/locales/nl/LC_MESSAGES/volto.po +37 -0
  24. package/locales/nl.json +1 -1
  25. package/locales/pt/LC_MESSAGES/volto.po +37 -0
  26. package/locales/pt.json +1 -1
  27. package/locales/pt_BR/LC_MESSAGES/volto.po +37 -0
  28. package/locales/pt_BR.json +1 -1
  29. package/locales/ro/LC_MESSAGES/volto.po +37 -0
  30. package/locales/ro.json +1 -1
  31. package/locales/volto.pot +38 -1
  32. package/locales/zh_CN/LC_MESSAGES/volto.po +37 -0
  33. package/locales/zh_CN.json +1 -1
  34. package/package.json +2 -2
  35. package/packages/volto-slate/build/messages/src/blocks/Table/TableBlockEdit.json +90 -0
  36. package/packages/volto-slate/build/messages/src/blocks/Text/DefaultTextBlockEditor.json +6 -0
  37. package/packages/volto-slate/build/messages/src/blocks/Text/DetachedTextBlockEditor.json +6 -0
  38. package/packages/volto-slate/build/messages/src/blocks/Text/SlashMenu.json +6 -0
  39. package/packages/volto-slate/build/messages/src/editor/plugins/AdvancedLink/index.json +10 -0
  40. package/packages/volto-slate/build/messages/src/editor/plugins/Link/index.json +10 -0
  41. package/packages/volto-slate/build/messages/src/editor/plugins/Table/index.json +30 -0
  42. package/packages/volto-slate/build/messages/src/elementEditor/messages.json +10 -0
  43. package/packages/volto-slate/build/messages/src/widgets/HtmlSlateWidget.json +6 -0
  44. package/packages/volto-slate/build/messages/src/widgets/RichTextWidgetView.json +6 -0
  45. package/packages/volto-slate/package.json +1 -1
  46. package/src/actions/index.js +1 -0
  47. package/src/actions/relations/relations.js +17 -0
  48. package/src/components/manage/Blocks/Image/schema.js +5 -1
  49. package/src/components/manage/Blocks/Listing/withQuerystringResults.jsx +18 -11
  50. package/src/components/manage/Blocks/ToC/Schema.jsx +36 -7
  51. package/src/components/manage/Blocks/ToC/variations/DefaultTocRenderer.jsx +4 -3
  52. package/src/components/manage/Blocks/ToC/variations/DefaultTocRenderer.test.jsx +44 -0
  53. package/src/components/manage/Contents/Contents.jsx +27 -0
  54. package/src/components/manage/Controlpanels/Relations/BrokenRelations.jsx +11 -9
  55. package/src/components/manage/Controlpanels/Relations/Relations.jsx +3 -3
  56. package/src/components/manage/Controlpanels/Relations/RelationsListing.jsx +8 -7
  57. package/src/components/manage/Controlpanels/Relations/RelationsMatrix.jsx +15 -9
  58. package/src/components/manage/Controlpanels/Users/UsersControlpanel.jsx +25 -10
  59. package/src/components/manage/Diff/DiffField.jsx +25 -1
  60. package/src/components/manage/LinksToItem/LinksToItem.jsx +1 -1
  61. package/src/components/manage/LinksToItem/LinksToItem.test.jsx +1 -1
  62. package/src/components/manage/Sharing/Sharing.jsx +11 -5
  63. package/src/components/manage/Widgets/FormFieldWrapper.jsx +1 -1
  64. package/src/components/theme/Comments/Comment.stories.jsx +84 -0
  65. package/src/components/theme/Comments/Comments.jsx +273 -378
  66. package/src/components/theme/Error/ServerError.jsx +29 -0
  67. package/src/components/theme/Logout/Logout.jsx +36 -83
  68. package/src/components/theme/Search/SearchTags.jsx +30 -60
  69. package/src/components/theme/Sitemap/Sitemap.jsx +24 -13
  70. package/src/components/theme/Sitemap/Sitemap.test.jsx +23 -2
  71. package/src/config/Views.jsx +2 -0
  72. package/src/constants/ActionTypes.js +1 -0
  73. package/src/middleware/api.js +14 -2
  74. package/src/reducers/relations/relations.js +74 -46
  75. package/src/server.jsx +9 -0
  76. package/theme/themes/pastanaga/collections/form.overrides +46 -0
  77. package/theme/themes/pastanaga/elements/input.overrides +6 -0
  78. package/theme/themes/pastanaga/elements/label.overrides +10 -0
  79. package/.gitignore~ +0 -71
  80. package/news/4547.breaking~ +0 -1
  81. 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" pointing>
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
+ };