decap-cms-widget-file 3.3.0 → 3.4.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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "decap-cms-widget-file",
|
|
3
3
|
"description": "Widget for uploading files in Decap CMS.",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.4.0",
|
|
5
5
|
"homepage": "https://www.decapcms.org/docs/widgets/#file",
|
|
6
6
|
"repository": "https://github.com/decaporg/decap-cms/tree/main/packages/decap-cms-widget-file",
|
|
7
7
|
"bugs": "https://github.com/decaporg/decap-cms/issues",
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
"@dnd-kit/core": "^6.0.8",
|
|
26
26
|
"@dnd-kit/modifiers": "^6.0.1",
|
|
27
27
|
"@dnd-kit/sortable": "^7.0.2",
|
|
28
|
+
"@dnd-kit/utilities": "^3.2.2",
|
|
28
29
|
"array-move": "4.0.0",
|
|
29
30
|
"common-tags": "^1.8.0"
|
|
30
31
|
},
|
|
@@ -35,8 +36,7 @@
|
|
|
35
36
|
"immutable": "^3.7.6",
|
|
36
37
|
"prop-types": "^15.7.2",
|
|
37
38
|
"react": "^19.1.0",
|
|
38
|
-
"react-immutable-proptypes": "^2.1.0"
|
|
39
|
-
"uuid": "^8.3.2"
|
|
39
|
+
"react-immutable-proptypes": "^2.1.0"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "567a80101f4846853701ad7d8abdc29b5e4fab56"
|
|
42
42
|
}
|
package/src/withFileControl.js
CHANGED
|
@@ -5,7 +5,6 @@ import styled from '@emotion/styled';
|
|
|
5
5
|
import { css } from '@emotion/react';
|
|
6
6
|
import { Map, List } from 'immutable';
|
|
7
7
|
import once from 'lodash/once';
|
|
8
|
-
import { v4 as uuid } from 'uuid';
|
|
9
8
|
import { oneLine } from 'common-tags';
|
|
10
9
|
import {
|
|
11
10
|
lengths,
|
|
@@ -222,7 +221,7 @@ function valueListToSortableArray(value) {
|
|
|
222
221
|
}
|
|
223
222
|
|
|
224
223
|
const valueArray = valueListToArray(value).map(value => ({
|
|
225
|
-
id:
|
|
224
|
+
id: crypto.randomUUID(),
|
|
226
225
|
value,
|
|
227
226
|
}));
|
|
228
227
|
|
|
@@ -265,7 +264,7 @@ export default function withFileControl({ forImage } = {}) {
|
|
|
265
264
|
|
|
266
265
|
constructor(props) {
|
|
267
266
|
super(props);
|
|
268
|
-
this.controlID =
|
|
267
|
+
this.controlID = crypto.randomUUID();
|
|
269
268
|
}
|
|
270
269
|
|
|
271
270
|
componentDidMount() {
|