@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
|
@@ -6,6 +6,12 @@
|
|
|
6
6
|
font-weight: @inputFontWeight;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
+
/* This aligns the height of the field name label to the other side in case
|
|
10
|
+
of an error is present, it overrides a default from SemanticUI grid definitions. */
|
|
11
|
+
.ui.grid > .stretched.row > .column > .wrapper {
|
|
12
|
+
flex-grow: 0;
|
|
13
|
+
}
|
|
14
|
+
|
|
9
15
|
.inline.field {
|
|
10
16
|
.wrapper {
|
|
11
17
|
display: flex;
|
package/.gitignore~
DELETED
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
# Node
|
|
2
|
-
node_modules
|
|
3
|
-
coverage
|
|
4
|
-
jsdoc
|
|
5
|
-
webpack-assets.json
|
|
6
|
-
webpack-stats.json
|
|
7
|
-
npm-debug.log
|
|
8
|
-
junit.xml
|
|
9
|
-
eslint.xml
|
|
10
|
-
yarn-error.log
|
|
11
|
-
build
|
|
12
|
-
|
|
13
|
-
# Other
|
|
14
|
-
.DS_Store
|
|
15
|
-
.idea
|
|
16
|
-
lighthouse-report.html
|
|
17
|
-
.vscode/
|
|
18
|
-
.#*
|
|
19
|
-
*~
|
|
20
|
-
|
|
21
|
-
# Python
|
|
22
|
-
/api/.installed.cfg
|
|
23
|
-
/api/.mr.developer.cfg
|
|
24
|
-
/api/bin/
|
|
25
|
-
/api/develop-eggs/
|
|
26
|
-
/api/eggs/
|
|
27
|
-
/api/include/
|
|
28
|
-
/api/lib/
|
|
29
|
-
/api/lib64/
|
|
30
|
-
/api/notebook/env/
|
|
31
|
-
/api/parts/
|
|
32
|
-
/api/share/python-wheels/
|
|
33
|
-
/api/src/
|
|
34
|
-
/api/test/
|
|
35
|
-
/api/var/
|
|
36
|
-
/api/venv/
|
|
37
|
-
/bin/
|
|
38
|
-
/lib/
|
|
39
|
-
.Python
|
|
40
|
-
include
|
|
41
|
-
pip-selfcheck.json
|
|
42
|
-
pyvenv.cfg
|
|
43
|
-
share
|
|
44
|
-
/api/lib64
|
|
45
|
-
lib64
|
|
46
|
-
|
|
47
|
-
# locales
|
|
48
|
-
locales/*.json
|
|
49
|
-
|
|
50
|
-
# Tests
|
|
51
|
-
/tests/bin
|
|
52
|
-
/tests/develop-eggs
|
|
53
|
-
/tests/parts
|
|
54
|
-
/tests/.installed.cfg
|
|
55
|
-
*.pyc
|
|
56
|
-
geckodriver.log
|
|
57
|
-
log.html
|
|
58
|
-
output.xml
|
|
59
|
-
report.html
|
|
60
|
-
selenium-screenshot-*.png
|
|
61
|
-
/selenium/
|
|
62
|
-
cypress/videos/
|
|
63
|
-
cypress/screenshots
|
|
64
|
-
|
|
65
|
-
# Local environment setup
|
|
66
|
-
.env
|
|
67
|
-
public/critical.css
|
|
68
|
-
|
|
69
|
-
# Sphinx and MyST
|
|
70
|
-
docs/_build/
|
|
71
|
-
/.python-version
|
package/news/4547.breaking~
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
Update parse-url and release-it libraries. @davisagli
|
package/src/config/index.js~
DELETED
|
@@ -1,223 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Config.
|
|
3
|
-
* @module config
|
|
4
|
-
*/
|
|
5
|
-
import { parse as parseUrl } from 'url';
|
|
6
|
-
import { defaultWidget, widgetMapping } from './Widgets';
|
|
7
|
-
import {
|
|
8
|
-
layoutViews,
|
|
9
|
-
contentTypesViews,
|
|
10
|
-
defaultView,
|
|
11
|
-
errorViews,
|
|
12
|
-
layoutViewsNamesMapping,
|
|
13
|
-
} from './Views';
|
|
14
|
-
import { nonContentRoutes } from './NonContentRoutes';
|
|
15
|
-
import {
|
|
16
|
-
groupBlocksOrder,
|
|
17
|
-
requiredBlocks,
|
|
18
|
-
blocksConfig,
|
|
19
|
-
initialBlocks,
|
|
20
|
-
initialBlocksFocus,
|
|
21
|
-
} from './Blocks';
|
|
22
|
-
import { components } from './Components';
|
|
23
|
-
import { loadables } from './Loadables';
|
|
24
|
-
import { workflowMapping } from './Workflows';
|
|
25
|
-
|
|
26
|
-
import { contentIcons } from './ContentIcons';
|
|
27
|
-
import { styleClassNameConverters, styleClassNameExtenders } from './Style';
|
|
28
|
-
import {
|
|
29
|
-
controlPanelsIcons,
|
|
30
|
-
filterControlPanels,
|
|
31
|
-
filterControlPanelsSchema,
|
|
32
|
-
} from './ControlPanels';
|
|
33
|
-
|
|
34
|
-
import { richtextEditorSettings, richtextViewSettings } from './RichTextEditor';
|
|
35
|
-
|
|
36
|
-
import applyAddonConfiguration, { addonsInfo } from 'load-volto-addons';
|
|
37
|
-
|
|
38
|
-
import ConfigRegistry from '@plone/volto/registry';
|
|
39
|
-
|
|
40
|
-
const host = process.env.HOST || 'localhost';
|
|
41
|
-
const port = process.env.PORT || '3000';
|
|
42
|
-
|
|
43
|
-
const apiPath =
|
|
44
|
-
process.env.RAZZLE_API_PATH ||
|
|
45
|
-
(__DEVELOPMENT__ ? `http://${host}:${port}` : '');
|
|
46
|
-
|
|
47
|
-
const getServerURL = (url) => {
|
|
48
|
-
if (!url) return;
|
|
49
|
-
const apiPathURL = parseUrl(url);
|
|
50
|
-
return `${apiPathURL.protocol}//${apiPathURL.hostname}${
|
|
51
|
-
apiPathURL.port ? `:${apiPathURL.port}` : ''
|
|
52
|
-
}`;
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
// Sensible defaults for publicURL
|
|
56
|
-
// if RAZZLE_PUBLIC_URL is present, use it
|
|
57
|
-
// if in DEV, use the host/port combination by default
|
|
58
|
-
// if in PROD, assume it's RAZZLE_API_PATH server name (no /api or alikes) or fallback
|
|
59
|
-
// to DEV settings if RAZZLE_API_PATH is not present
|
|
60
|
-
const publicURL =
|
|
61
|
-
process.env.RAZZLE_PUBLIC_URL ||
|
|
62
|
-
(__DEVELOPMENT__
|
|
63
|
-
? `http://${host}:${port}`
|
|
64
|
-
: getServerURL(process.env.RAZZLE_API_PATH) || `http://${host}:${port}`);
|
|
65
|
-
|
|
66
|
-
const serverConfig =
|
|
67
|
-
typeof __SERVER__ !== 'undefined' && __SERVER__
|
|
68
|
-
? require('./server').default
|
|
69
|
-
: {};
|
|
70
|
-
|
|
71
|
-
let config = {
|
|
72
|
-
settings: {
|
|
73
|
-
host,
|
|
74
|
-
port,
|
|
75
|
-
// The URL Volto is going to be served (see sensible defaults above)
|
|
76
|
-
publicURL,
|
|
77
|
-
apiPath,
|
|
78
|
-
apiExpanders: [
|
|
79
|
-
// Add the following expanders for only issuing a single request.
|
|
80
|
-
// https://6.docs.plone.org/volto/configuration/settings-reference.html#term-apiExpanders
|
|
81
|
-
// {
|
|
82
|
-
// match: '',
|
|
83
|
-
// GET_CONTENT: ['breadcrumbs', 'navigation', 'actions', 'types'],
|
|
84
|
-
// },
|
|
85
|
-
],
|
|
86
|
-
// Internal proxy to bypass CORS *while developing*. NOT intended for production use.
|
|
87
|
-
// In production is recommended you use a Seamless mode deployment using a web server in
|
|
88
|
-
// front of both the frontend and the backend so you can bypass CORS safely.
|
|
89
|
-
// https://6.docs.plone.org/volto/deploying/seamless-mode.html
|
|
90
|
-
devProxyToApiPath:
|
|
91
|
-
process.env.RAZZLE_DEV_PROXY_API_PATH ||
|
|
92
|
-
process.env.RAZZLE_INTERNAL_API_PATH ||
|
|
93
|
-
process.env.RAZZLE_API_PATH ||
|
|
94
|
-
'http://localhost:8080/Plone', // Set it to '' for disabling the proxy
|
|
95
|
-
// proxyRewriteTarget Set it for set a custom target for the proxy or overide the internal VHM rewrite
|
|
96
|
-
// proxyRewriteTarget: '/VirtualHostBase/http/localhost:8080/Plone/VirtualHostRoot/_vh_api'
|
|
97
|
-
// proxyRewriteTarget: 'https://myvoltositeinproduction.com'
|
|
98
|
-
proxyRewriteTarget: process.env.RAZZLE_PROXY_REWRITE_TARGET || undefined,
|
|
99
|
-
// apiPath: process.env.RAZZLE_API_PATH || 'http://localhost:8000', // for Volto reference
|
|
100
|
-
// apiPath: process.env.RAZZLE_API_PATH || 'http://localhost:8081/db/web', // for guillotina
|
|
101
|
-
actions_raising_api_errors: ['GET_CONTENT', 'UPDATE_CONTENT'],
|
|
102
|
-
internalApiPath: process.env.RAZZLE_INTERNAL_API_PATH || undefined,
|
|
103
|
-
websockets: process.env.RAZZLE_WEBSOCKETS || false,
|
|
104
|
-
// TODO: legacyTraverse to be removed when the use of the legacy traverse is deprecated.
|
|
105
|
-
legacyTraverse: process.env.RAZZLE_LEGACY_TRAVERSE || false,
|
|
106
|
-
cookieExpires: 15552000, //in seconds. Default is 6 month (15552000)
|
|
107
|
-
nonContentRoutes,
|
|
108
|
-
richtextEditorSettings, // Part of draftjs support, to be removed
|
|
109
|
-
richtextViewSettings, // Part of draftjs support, to be removed
|
|
110
|
-
imageObjects: ['Image'],
|
|
111
|
-
reservedIds: ['login', 'layout', 'plone', 'zip', 'properties'],
|
|
112
|
-
downloadableObjects: ['File'], //list of content-types for which the direct download of the file will be carried out if the user is not authenticated
|
|
113
|
-
viewableInBrowserObjects: [], //ex: ['File']. List of content-types for which the file will be displayed in browser if the user is not authenticated
|
|
114
|
-
listingPreviewImageField: 'image', // deprecated from Volto 14 onwards
|
|
115
|
-
openExternalLinkInNewTab: false,
|
|
116
|
-
notSupportedBrowsers: ['ie'],
|
|
117
|
-
defaultPageSize: 25,
|
|
118
|
-
isMultilingual: false,
|
|
119
|
-
supportedLanguages: ['en'],
|
|
120
|
-
defaultLanguage: 'en',
|
|
121
|
-
navDepth: 1,
|
|
122
|
-
expressMiddleware: serverConfig.expressMiddleware, // BBB
|
|
123
|
-
defaultBlockType: 'slate',
|
|
124
|
-
verticalFormTabs: false,
|
|
125
|
-
useEmailAsLogin: false,
|
|
126
|
-
persistentReducers: ['blocksClipboard'],
|
|
127
|
-
initialReducersBlacklist: [], // reducers in this list won't be hydrated in windows.__data
|
|
128
|
-
asyncPropsExtenders: [], // per route asyncConnect customizers
|
|
129
|
-
contentIcons: contentIcons,
|
|
130
|
-
loadables,
|
|
131
|
-
lazyBundles: {
|
|
132
|
-
cms: [
|
|
133
|
-
'prettierStandalone',
|
|
134
|
-
'prettierParserHtml',
|
|
135
|
-
'prismCore',
|
|
136
|
-
'toastify',
|
|
137
|
-
'reactSelect',
|
|
138
|
-
'reactBeautifulDnd',
|
|
139
|
-
// 'diffLib',
|
|
140
|
-
],
|
|
141
|
-
draftEditor: [
|
|
142
|
-
'immutableLib',
|
|
143
|
-
'draftJs',
|
|
144
|
-
'draftJsLibIsSoftNewlineEvent',
|
|
145
|
-
'draftJsFilters',
|
|
146
|
-
'draftJsInlineToolbarPlugin',
|
|
147
|
-
'draftJsImportHtml',
|
|
148
|
-
'draftJsBlockBreakoutPlugin',
|
|
149
|
-
],
|
|
150
|
-
},
|
|
151
|
-
appExtras: [],
|
|
152
|
-
maxResponseSize: 2000000000, // This is superagent default (200 mb)
|
|
153
|
-
serverConfig,
|
|
154
|
-
storeExtenders: [],
|
|
155
|
-
showTags: true,
|
|
156
|
-
controlpanels: [],
|
|
157
|
-
controlPanelsIcons,
|
|
158
|
-
filterControlPanels,
|
|
159
|
-
filterControlPanelsSchema,
|
|
160
|
-
externalRoutes: [
|
|
161
|
-
// URL to be considered as external
|
|
162
|
-
// {
|
|
163
|
-
// match: {
|
|
164
|
-
// path: '/news',
|
|
165
|
-
// exact: false,
|
|
166
|
-
// strict: false,
|
|
167
|
-
// },
|
|
168
|
-
// url(payload) {
|
|
169
|
-
// return payload.location.pathname;
|
|
170
|
-
// },
|
|
171
|
-
// },
|
|
172
|
-
],
|
|
173
|
-
showSelfRegistration: false,
|
|
174
|
-
contentMetadataTagsImageField: 'image',
|
|
175
|
-
hasWorkingCopySupport: false,
|
|
176
|
-
maxUndoLevels: 200, // undo history size for the main form
|
|
177
|
-
addonsInfo: addonsInfo,
|
|
178
|
-
workflowMapping,
|
|
179
|
-
errorHandlers: [], // callables for unhandled errors
|
|
180
|
-
styleClassNameConverters,
|
|
181
|
-
hashLinkSmoothScroll: false,
|
|
182
|
-
styleClassNameExtenders,
|
|
183
|
-
querystringSearchGet: false,
|
|
184
|
-
},
|
|
185
|
-
experimental: {
|
|
186
|
-
addBlockButton: {
|
|
187
|
-
enabled: false,
|
|
188
|
-
},
|
|
189
|
-
},
|
|
190
|
-
widgets: {
|
|
191
|
-
...widgetMapping,
|
|
192
|
-
default: defaultWidget,
|
|
193
|
-
},
|
|
194
|
-
views: {
|
|
195
|
-
layoutViews,
|
|
196
|
-
contentTypesViews,
|
|
197
|
-
defaultView,
|
|
198
|
-
errorViews,
|
|
199
|
-
layoutViewsNamesMapping,
|
|
200
|
-
},
|
|
201
|
-
blocks: {
|
|
202
|
-
requiredBlocks,
|
|
203
|
-
blocksConfig,
|
|
204
|
-
groupBlocksOrder,
|
|
205
|
-
initialBlocks,
|
|
206
|
-
initialBlocksFocus,
|
|
207
|
-
showEditBlocksInBabelView: false,
|
|
208
|
-
},
|
|
209
|
-
addonRoutes: [],
|
|
210
|
-
addonReducers: {},
|
|
211
|
-
components,
|
|
212
|
-
};
|
|
213
|
-
|
|
214
|
-
ConfigRegistry.settings = config.settings;
|
|
215
|
-
ConfigRegistry.experimental = config.experimental;
|
|
216
|
-
ConfigRegistry.blocks = config.blocks;
|
|
217
|
-
ConfigRegistry.views = config.views;
|
|
218
|
-
ConfigRegistry.widgets = config.widgets;
|
|
219
|
-
ConfigRegistry.addonRoutes = config.addonRoutes;
|
|
220
|
-
ConfigRegistry.addonReducers = config.addonReducers;
|
|
221
|
-
ConfigRegistry.components = config.components;
|
|
222
|
-
|
|
223
|
-
applyAddonConfiguration(ConfigRegistry);
|