@plone/volto 18.6.0 → 18.8.0
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 +53 -0
- package/cypress/support/commands.js +22 -0
- package/locales/nl/LC_MESSAGES/volto.po +9 -9
- package/locales/nl.json +1 -1
- package/package.json +4 -4
- package/src/components/manage/Blocks/Block/BlocksForm.jsx +6 -4
- package/src/components/manage/Blocks/Block/EditBlockWrapper.jsx +1 -0
- package/src/components/manage/Controlpanels/Relations/BrokenRelations.jsx +18 -14
- package/src/components/manage/Controlpanels/Relations/Relations.jsx +48 -46
- package/src/components/manage/Toolbar/More.jsx +113 -117
- package/src/components/manage/Toolbar/More.test.jsx +0 -24
- package/src/components/manage/Widgets/ObjectBrowserWidget.jsx +15 -2
- package/src/components/manage/Widgets/RegistryImageWidget.jsx +15 -16
- package/src/components/manage/WorkingCopyToastsFactory/WorkingCopyToastsFactory.jsx +53 -56
- package/src/components/theme/AlternateHrefLangs/AlternateHrefLangs.jsx +23 -0
- package/src/components/theme/AlternateHrefLangs/AlternateHrefLangs.test.jsx +135 -0
- package/src/components/theme/Image/Image.jsx +8 -1
- package/src/components/theme/View/View.jsx +2 -0
- package/src/config/ControlPanels.js +0 -1
- package/src/config/index.js +0 -1
- package/src/express-middleware/robotstxt.js +4 -5
- package/src/helpers/Api/Api.js +1 -1
- package/src/helpers/Blocks/Blocks.js +26 -4
- package/src/helpers/Blocks/Blocks.test.js +46 -0
- package/src/helpers/FormValidation/validators.ts +3 -1
- package/src/helpers/Robots/Robots.js +12 -31
- package/src/hooks/clipboard/useClipboard.js +7 -3
- package/types/components/manage/Widgets/ObjectBrowserWidget.d.ts +1 -0
- package/types/components/theme/AlternateHrefLangs/AlternateHrefLangs.d.ts +1 -0
- package/types/components/theme/AlternateHrefLangs/AlternateHrefLangs.test.d.ts +1 -0
- package/types/helpers/Api/Api.d.ts +7 -0
- package/types/helpers/Blocks/Blocks.d.ts +15 -5
- package/public/robots.txt +0 -2
|
@@ -40,36 +40,45 @@ export function moveBlock(formData: any, source: number, destination: number): a
|
|
|
40
40
|
* @function deleteBlock
|
|
41
41
|
* @param {Object} formData Form data
|
|
42
42
|
* @param {string} blockId Block uid
|
|
43
|
+
* @param {Object} intl intl object.
|
|
43
44
|
* @return {Object} New form data
|
|
44
45
|
*/
|
|
45
|
-
export function deleteBlock(formData: any, blockId: string): any;
|
|
46
|
+
export function deleteBlock(formData: any, blockId: string, intl: any): any;
|
|
46
47
|
/**
|
|
47
48
|
* Adds a block to the blocks form
|
|
48
49
|
* @function addBlock
|
|
49
50
|
* @param {Object} formData Form data
|
|
50
51
|
* @param {string} type Block type
|
|
51
52
|
* @param {number} index Destination index
|
|
53
|
+
* @param {Object} blocksConfig Blocks configuration.
|
|
54
|
+
* @param {Object} intl intl object.
|
|
52
55
|
* @return {Array} New block id, New form data
|
|
53
56
|
*/
|
|
54
|
-
export function addBlock(formData: any, type: string, index: number, blocksConfig: any): any[];
|
|
57
|
+
export function addBlock(formData: any, type: string, index: number, blocksConfig: any, intl: any): any[];
|
|
55
58
|
/**
|
|
56
59
|
* Mutate block, changes the block @type
|
|
57
60
|
* @function mutateBlock
|
|
58
61
|
* @param {Object} formData Form data
|
|
59
62
|
* @param {string} id Block uid to mutate
|
|
60
63
|
* @param {number} value Block's new value
|
|
64
|
+
* @param {Object} blocksConfig Blocks configuration.
|
|
65
|
+
* @param {Object} intl intl object.
|
|
61
66
|
* @return {Object} New form data
|
|
62
67
|
*/
|
|
63
|
-
export function mutateBlock(formData: any, id: string, value: number, blocksConfig: any): any;
|
|
68
|
+
export function mutateBlock(formData: any, id: string, value: number, blocksConfig: any, intl: any): any;
|
|
64
69
|
/**
|
|
65
70
|
* Insert new block before another block
|
|
66
71
|
* @function insertBlock
|
|
67
72
|
* @param {Object} formData Form data
|
|
68
73
|
* @param {string} id Insert new block before the block with this id
|
|
69
74
|
* @param {number} value New block's value
|
|
75
|
+
* @param {Object} current Current block
|
|
76
|
+
* @param {number} offset offset position
|
|
77
|
+
* @param {Object} blocksConfig Blocks configuration.
|
|
78
|
+
* @param {Object} intl intl object.
|
|
70
79
|
* @return {Array} New block id, New form data
|
|
71
80
|
*/
|
|
72
|
-
export function insertBlock(formData: any, id: string, value: number, current:
|
|
81
|
+
export function insertBlock(formData: any, id: string, value: number, current: any, offset: number, blocksConfig: any, intl: any): any[];
|
|
73
82
|
/**
|
|
74
83
|
* Change block
|
|
75
84
|
* @function changeBlock
|
|
@@ -167,11 +176,12 @@ export function findBlocks(blocks: {}, types: any, result?: any[]): any[];
|
|
|
167
176
|
*/
|
|
168
177
|
export function moveBlockEnhanced(formData: any, { source, destination }: number): any;
|
|
169
178
|
export function getBlocks(properties: any): any[];
|
|
170
|
-
export function applyBlockInitialValue({ id, value, blocksConfig, formData, }: {
|
|
179
|
+
export function applyBlockInitialValue({ id, value, blocksConfig, formData, intl, }: {
|
|
171
180
|
id: any;
|
|
172
181
|
value: any;
|
|
173
182
|
blocksConfig: any;
|
|
174
183
|
formData: any;
|
|
184
|
+
intl: any;
|
|
175
185
|
}): any;
|
|
176
186
|
export function styleToClassName(key: any, value: any, prefix?: string): any;
|
|
177
187
|
export function buildStyleClassNamesFromData(obj?: {}, prefix?: string): any;
|
package/public/robots.txt
DELETED