@plone/volto 18.0.0-alpha.30 → 18.0.0-alpha.31
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/.eslintrc +2 -1
- package/CHANGELOG.md +21 -0
- package/cypress/support/commands.js +16 -6
- package/locales/ca/LC_MESSAGES/volto.po +10 -5
- package/locales/ca.json +1 -1
- package/locales/de/LC_MESSAGES/volto.po +10 -5
- package/locales/de.json +1 -1
- package/locales/en/LC_MESSAGES/volto.po +10 -5
- package/locales/en.json +1 -1
- package/locales/es/LC_MESSAGES/volto.po +10 -5
- package/locales/es.json +1 -1
- package/locales/eu/LC_MESSAGES/volto.po +10 -5
- package/locales/eu.json +1 -1
- package/locales/fi/LC_MESSAGES/volto.po +10 -5
- package/locales/fi.json +1 -1
- package/locales/fr/LC_MESSAGES/volto.po +10 -5
- package/locales/fr.json +1 -1
- package/locales/it/LC_MESSAGES/volto.po +10 -5
- package/locales/it.json +1 -1
- package/locales/ja/LC_MESSAGES/volto.po +10 -5
- package/locales/ja.json +1 -1
- package/locales/nl/LC_MESSAGES/volto.po +10 -5
- package/locales/nl.json +1 -1
- package/locales/pt/LC_MESSAGES/volto.po +10 -5
- package/locales/pt.json +1 -1
- package/locales/pt_BR/LC_MESSAGES/volto.po +10 -5
- package/locales/pt_BR.json +1 -1
- package/locales/ro/LC_MESSAGES/volto.po +10 -5
- package/locales/ro.json +1 -1
- package/locales/volto.pot +11 -6
- package/locales/zh_CN/LC_MESSAGES/volto.po +10 -5
- package/locales/zh_CN.json +1 -1
- package/package.json +4 -4
- package/src/actions/content/content.js +14 -0
- package/src/actions/content/content.test.js +14 -0
- package/src/actions/index.js +1 -0
- package/src/components/manage/Contents/ContentsUploadModal.jsx +32 -9
- package/src/constants/ActionTypes.js +1 -0
- package/src/helpers/Blocks/Blocks.js +1 -1
- package/src/middleware/api.js +9 -2
- package/src/reducers/content/content.js +7 -0
- package/src/reducers/content/content.test.js +13 -0
- package/theme/themes/pastanaga/extras/contents.less +42 -0
- package/types/actions/content/content.d.ts +7 -0
- package/types/actions/index.d.ts +1 -1
- package/types/constants/ActionTypes.d.ts +1 -0
- package/types/helpers/Blocks/Blocks.d.ts +2 -2
|
@@ -212,4 +212,46 @@
|
|
|
212
212
|
padding: 0.67857143em 1em;
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
|
+
|
|
216
|
+
.ui.progress:first-child {
|
|
217
|
+
margin: 0 0 2.5em;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.progress-container {
|
|
221
|
+
padding: 35px;
|
|
222
|
+
background: white;
|
|
223
|
+
box-shadow: 0px 0px 12px 4px rgba(0, 0, 0, 0.43);
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.progress-bar {
|
|
227
|
+
width: 300px;
|
|
228
|
+
height: 15px;
|
|
229
|
+
border-radius: 0;
|
|
230
|
+
|
|
231
|
+
.bar {
|
|
232
|
+
height: 15px;
|
|
233
|
+
border-radius: 0;
|
|
234
|
+
background: #0074a3;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.label {
|
|
238
|
+
position: relative;
|
|
239
|
+
margin: 0;
|
|
240
|
+
background: white;
|
|
241
|
+
color: grey;
|
|
242
|
+
font-size: small;
|
|
243
|
+
font-weight: normal;
|
|
244
|
+
line-height: 18px;
|
|
245
|
+
text-align: left;
|
|
246
|
+
|
|
247
|
+
.uploaded-files {
|
|
248
|
+
color: #0074a3;
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.contents-upload-modal > .content {
|
|
255
|
+
overflow: auto;
|
|
256
|
+
max-height: 75vh;
|
|
215
257
|
}
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* update uploaded files count function
|
|
3
|
+
* @function updateUploadedFiles
|
|
4
|
+
* @param {number} number of files uploaded
|
|
5
|
+
* @returns {Object} update uploaded files action
|
|
6
|
+
*/
|
|
7
|
+
export function updateUploadedFiles(uploadedFiles: any): any;
|
|
1
8
|
/**
|
|
2
9
|
* Create content function.
|
|
3
10
|
* @function createContent
|
package/types/actions/index.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ export { getNavroot } from "./navroot/navroot";
|
|
|
21
21
|
export { copy, cut, copyContent, moveContent } from "@plone/volto/actions/clipboard/clipboard";
|
|
22
22
|
export { installAddon, listAddons, uninstallAddon, upgradeAddon } from "./addons/addons";
|
|
23
23
|
export { addComment, deleteComment, listComments, listMoreComments, updateComment } from "@plone/volto/actions/comments/comments";
|
|
24
|
-
export { createContent, deleteContent, updateContent, getContent, orderContent, sortContent, resetContent, updateColumnsContent, lockContent, unlockContent, linkIntegrityCheck } from "@plone/volto/actions/content/content";
|
|
24
|
+
export { createContent, deleteContent, updateContent, getContent, orderContent, sortContent, resetContent, updateColumnsContent, lockContent, unlockContent, linkIntegrityCheck, updateUploadedFiles } from "@plone/volto/actions/content/content";
|
|
25
25
|
export { getControlpanel, postControlpanel, deleteControlpanel, listControlpanels, updateControlpanel, getSystemInformation, getDatabaseInformation } from "@plone/volto/actions/controlpanels/controlpanels";
|
|
26
26
|
export { createGroup, deleteGroup, getGroup, listGroups, updateGroup } from "@plone/volto/actions/groups/groups";
|
|
27
27
|
export { getHistory, revertHistory } from "@plone/volto/actions/history/history";
|
|
@@ -107,10 +107,10 @@ export function emptyBlocksForm(): any;
|
|
|
107
107
|
* (could be empty, if not type given) and the number of blocks
|
|
108
108
|
* @function blocksFormGenerator
|
|
109
109
|
* @param {number} number How many blocks to generate of the type (could be "empty", if no type provided)
|
|
110
|
-
* @param {
|
|
110
|
+
* @param {string} type The type of the blocks
|
|
111
111
|
* @return {Object} blocks/blocks_layout pair filled with the generated blocks
|
|
112
112
|
*/
|
|
113
|
-
export function blocksFormGenerator(number: number, type:
|
|
113
|
+
export function blocksFormGenerator(number: number, type: string): any;
|
|
114
114
|
/**
|
|
115
115
|
* Recursively discover blocks in data and call the provided callback
|
|
116
116
|
* @function visitBlocks
|