@plone/volto 18.14.1 → 18.15.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
CHANGED
|
@@ -17,6 +17,12 @@ myst:
|
|
|
17
17
|
|
|
18
18
|
<!-- towncrier release notes start -->
|
|
19
19
|
|
|
20
|
+
## 18.15.0 (2025-04-30)
|
|
21
|
+
|
|
22
|
+
### Feature
|
|
23
|
+
|
|
24
|
+
- Move `MaybeWrap` to TypeScript. @sneridagh [#7029](https://github.com/plone/volto/issues/7029)
|
|
25
|
+
|
|
20
26
|
## 18.14.1 (2025-04-25)
|
|
21
27
|
|
|
22
28
|
### Bugfix
|
|
@@ -105,6 +111,9 @@ myst:
|
|
|
105
111
|
Fix a bug where the video block schema was not used for validation. @robgietema [#6370](https://github.com/plone/volto/issues/6370)
|
|
106
112
|
- Add Russian translation in Volto. @toropok [#6874](https://github.com/plone/volto/issues/6874)
|
|
107
113
|
- Use Plone 6.1.1 final. @sneridagh
|
|
114
|
+
- Enhance the `ImageInput` component to only accept image files. [@jnptk] [#6926](https://github.com/plone/volto/issues/6926)
|
|
115
|
+
- Fix translations default of ContentsDeleteModal: 'linkintegrity: delete' -> 'delete' if no link to break. @ksuess [#6964](https://github.com/plone/volto/issues/6964)
|
|
116
|
+
- Use Plone 6.1.1 final. @sneridagh
|
|
108
117
|
|
|
109
118
|
### Bugfix
|
|
110
119
|
|
|
@@ -1969,7 +1978,7 @@ myst:
|
|
|
1969
1978
|
- (FIX): put padding so the text is not clipped #5305 @dobri1408 [#5305](https://github.com/plone/volto/issues/5305)
|
|
1970
1979
|
- Fix compare translations view @sneridagh [#5327](https://github.com/plone/volto/issues/5327)
|
|
1971
1980
|
- Fix DatetimeWidget on FF, the button default if no type is set is sending the form. @sneridagh
|
|
1972
|
-
See https://developer.mozilla.org/en-US/docs/Web/HTML/
|
|
1981
|
+
See https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/button#formmethod [#5343](https://github.com/plone/volto/issues/5343)
|
|
1973
1982
|
|
|
1974
1983
|
### Internal
|
|
1975
1984
|
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
}
|
|
10
10
|
],
|
|
11
11
|
"license": "MIT",
|
|
12
|
-
"version": "18.
|
|
12
|
+
"version": "18.15.0",
|
|
13
13
|
"repository": {
|
|
14
14
|
"type": "git",
|
|
15
15
|
"url": "git@github.com:plone/volto.git"
|
|
@@ -236,9 +236,9 @@
|
|
|
236
236
|
"url": "^0.11.3",
|
|
237
237
|
"use-deep-compare-effect": "1.8.1",
|
|
238
238
|
"uuid": "^8.3.2",
|
|
239
|
+
"@plone/registry": "2.5.3",
|
|
239
240
|
"@plone/scripts": "3.9.0",
|
|
240
|
-
"@plone/volto-slate": "18.3.0"
|
|
241
|
-
"@plone/registry": "2.5.2"
|
|
241
|
+
"@plone/volto-slate": "18.3.0"
|
|
242
242
|
},
|
|
243
243
|
"devDependencies": {
|
|
244
244
|
"@babel/core": "^7.0.0",
|
|
@@ -363,7 +363,7 @@
|
|
|
363
363
|
"webpack-dev-server": "4.11.1",
|
|
364
364
|
"webpack-node-externals": "3.0.0",
|
|
365
365
|
"why": "0.6.2",
|
|
366
|
-
"@plone/types": "1.4.
|
|
366
|
+
"@plone/types": "1.4.2",
|
|
367
367
|
"@plone/volto-coresandbox": "1.0.0"
|
|
368
368
|
},
|
|
369
369
|
"volta": {
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React, { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
|
|
3
|
+
type MaybeWrapProps<T extends React.ElementType> = {
|
|
4
|
+
condition: boolean;
|
|
5
|
+
as: T;
|
|
6
|
+
} & ComponentPropsWithoutRef<React.ElementType extends T ? 'div' : T>;
|
|
7
|
+
|
|
8
|
+
function MaybeWrap<T extends React.ElementType = 'div'>(
|
|
9
|
+
props: MaybeWrapProps<T>,
|
|
10
|
+
) {
|
|
11
|
+
const { as: Component = 'div', condition, ...rest } = props;
|
|
12
|
+
return condition ? <Component {...rest} /> : props.children;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export default MaybeWrap;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
condition:
|
|
4
|
-
as
|
|
5
|
-
}
|
|
1
|
+
import React, { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
type MaybeWrapProps<T extends React.ElementType> = {
|
|
3
|
+
condition: boolean;
|
|
4
|
+
as: T;
|
|
5
|
+
} & ComponentPropsWithoutRef<React.ElementType extends T ? 'div' : T>;
|
|
6
|
+
declare function MaybeWrap<T extends React.ElementType = 'div'>(props: MaybeWrapProps<T>): any;
|
|
7
|
+
export default MaybeWrap;
|