@plone/volto 18.20.0 → 18.21.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 +6 -0
- package/package.json +4 -4
- package/src/components/manage/Add/Add.jsx +22 -20
package/CHANGELOG.md
CHANGED
|
@@ -17,6 +17,12 @@ myst:
|
|
|
17
17
|
|
|
18
18
|
<!-- towncrier release notes start -->
|
|
19
19
|
|
|
20
|
+
## 18.21.0 (2025-05-16)
|
|
21
|
+
|
|
22
|
+
### Feature
|
|
23
|
+
|
|
24
|
+
- The `Add` component can now optionally receive `initialFormData` from the `CreateTranslation` component. This makes it possible for a custom `CreateTranslation` implementation to fully control the initial translation. @Tishasoumya-02 [#7073](https://github.com/plone/volto/issues/7073)
|
|
25
|
+
|
|
20
26
|
## 18.20.0 (2025-05-12)
|
|
21
27
|
|
|
22
28
|
### Feature
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
}
|
|
10
10
|
],
|
|
11
11
|
"license": "MIT",
|
|
12
|
-
"version": "18.
|
|
12
|
+
"version": "18.21.0",
|
|
13
13
|
"repository": {
|
|
14
14
|
"type": "git",
|
|
15
15
|
"url": "git@github.com:plone/volto.git"
|
|
@@ -237,8 +237,8 @@
|
|
|
237
237
|
"use-deep-compare-effect": "1.8.1",
|
|
238
238
|
"uuid": "^8.3.2",
|
|
239
239
|
"@plone/registry": "2.5.3",
|
|
240
|
-
"@plone/
|
|
241
|
-
"@plone/
|
|
240
|
+
"@plone/volto-slate": "18.3.1",
|
|
241
|
+
"@plone/scripts": "3.10.1"
|
|
242
242
|
},
|
|
243
243
|
"devDependencies": {
|
|
244
244
|
"@babel/core": "^7.0.0",
|
|
@@ -364,7 +364,7 @@
|
|
|
364
364
|
"webpack-dev-server": "4.11.1",
|
|
365
365
|
"webpack-node-externals": "3.0.0",
|
|
366
366
|
"why": "0.6.2",
|
|
367
|
-
"@plone/types": "1.4.
|
|
367
|
+
"@plone/types": "1.4.5",
|
|
368
368
|
"@plone/volto-coresandbox": "1.0.0"
|
|
369
369
|
},
|
|
370
370
|
"volta": {
|
|
@@ -359,27 +359,29 @@ class Add extends Component {
|
|
|
359
359
|
}
|
|
360
360
|
schema={this.props.schema}
|
|
361
361
|
type={this.props.type}
|
|
362
|
-
formData={
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
362
|
+
formData={
|
|
363
|
+
this.props.location?.state?.initialFormData || {
|
|
364
|
+
...(blocksFieldname && {
|
|
365
|
+
[blocksFieldname]:
|
|
366
|
+
initialBlocks ||
|
|
367
|
+
this.props.schema.properties[blocksFieldname]?.default,
|
|
368
|
+
}),
|
|
369
|
+
...(blocksLayoutFieldname && {
|
|
370
|
+
[blocksLayoutFieldname]: {
|
|
371
|
+
items:
|
|
372
|
+
initialBlocksLayout ||
|
|
373
|
+
this.props.schema.properties[blocksLayoutFieldname]
|
|
374
|
+
?.default?.items,
|
|
375
|
+
},
|
|
376
|
+
}),
|
|
377
|
+
// Copy the Language Independent Fields values from the to-be translated content
|
|
378
|
+
// into the default values of the translated content Add form.
|
|
379
|
+
...lifData(),
|
|
380
|
+
parent: {
|
|
381
|
+
'@id': this.props.content?.['@id'] || '',
|
|
374
382
|
},
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
// into the default values of the translated content Add form.
|
|
378
|
-
...lifData(),
|
|
379
|
-
parent: {
|
|
380
|
-
'@id': this.props.content?.['@id'] || '',
|
|
381
|
-
},
|
|
382
|
-
}}
|
|
383
|
+
}
|
|
384
|
+
}
|
|
383
385
|
requestError={this.state.error}
|
|
384
386
|
onSubmit={this.onSubmit}
|
|
385
387
|
hideActions
|