@panneau/medias 3.0.265 → 3.0.266
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/es/index.js +4 -0
- package/package.json +2 -2
package/es/index.js
CHANGED
@@ -1143,6 +1143,9 @@ function MediasBrowser(_ref) {
|
|
1143
1143
|
setCurrentMedia(null);
|
1144
1144
|
updateItem(item);
|
1145
1145
|
}, [setCurrentMedia, updateItem]);
|
1146
|
+
var onReplaceMedia = useCallback(function (item) {
|
1147
|
+
setCurrentMedia(item);
|
1148
|
+
}, [setCurrentMedia]);
|
1146
1149
|
var onDeleteMedia = useCallback(function () {
|
1147
1150
|
if (reload !== null) {
|
1148
1151
|
reload();
|
@@ -1367,6 +1370,7 @@ function MediasBrowser(_ref) {
|
|
1367
1370
|
fields: fields,
|
1368
1371
|
onChange: setCurrentMedia,
|
1369
1372
|
onSave: onSaveMedia,
|
1373
|
+
onReplace: onReplaceMedia,
|
1370
1374
|
onClose: onCloseMedia,
|
1371
1375
|
onDelete: onDeleteMedia,
|
1372
1376
|
withDelete: withDelete,
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@panneau/medias",
|
3
|
-
"version": "3.0.
|
3
|
+
"version": "3.0.266",
|
4
4
|
"description": "",
|
5
5
|
"keywords": [
|
6
6
|
"javascript"
|
@@ -74,5 +74,5 @@
|
|
74
74
|
"publishConfig": {
|
75
75
|
"access": "public"
|
76
76
|
},
|
77
|
-
"gitHead": "
|
77
|
+
"gitHead": "81d03aa4380ed57dd5945951a7351fc7709da294"
|
78
78
|
}
|