decap-cms-widget-file 3.5.0 → 3.5.2

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,9 +1,12 @@
1
1
  {
2
2
  "name": "decap-cms-widget-file",
3
3
  "description": "Widget for uploading files in Decap CMS.",
4
- "version": "3.5.0",
4
+ "version": "3.5.2",
5
5
  "homepage": "https://www.decapcms.org/docs/widgets/#file",
6
- "repository": "https://github.com/decaporg/decap-cms/tree/main/packages/decap-cms-widget-file",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/decaporg/decap-cms/tree/main/packages/decap-cms-widget-file"
9
+ },
7
10
  "bugs": "https://github.com/decaporg/decap-cms/issues",
8
11
  "module": "dist/esm/index.js",
9
12
  "main": "dist/decap-cms-widget-file.js",
@@ -16,27 +19,29 @@
16
19
  "file-upload"
17
20
  ],
18
21
  "sideEffects": false,
19
- "scripts": {
20
- "develop": "npm run build:esm -- --watch",
21
- "build": "cross-env NODE_ENV=production webpack",
22
- "build:esm": "cross-env NODE_ENV=esm babel src --out-dir dist/esm --ignore \"**/__tests__\" --root-mode upward"
23
- },
24
22
  "dependencies": {
25
23
  "@dnd-kit/core": "^6.0.8",
26
24
  "@dnd-kit/modifiers": "^6.0.1",
27
25
  "@dnd-kit/sortable": "^7.0.2",
28
26
  "@dnd-kit/utilities": "^3.2.2",
29
27
  "array-move": "4.0.0",
30
- "common-tags": "^1.8.0"
28
+ "common-tags": "1.8.2"
31
29
  },
32
30
  "peerDependencies": {
33
31
  "@emotion/react": "^11.11.1",
34
32
  "@emotion/styled": "^11.11.0",
35
- "decap-cms-ui-default": "^3.0.0",
36
- "immutable": "^3.7.6",
33
+ "immutable": "^4.3.9",
34
+ "lodash": "^4.17.11",
37
35
  "prop-types": "^15.7.2",
38
36
  "react": "^19.1.0",
39
- "react-immutable-proptypes": "^2.1.0"
37
+ "react-immutable-proptypes": "^2.1.0",
38
+ "uuid": "^8.3.2",
39
+ "decap-cms-ui-default": "3.9.2",
40
+ "decap-cms-lib-util": "3.8.2"
40
41
  },
41
- "gitHead": "ffe5ab7e61f4e7cb374a413bf9fe55f088d20ba2"
42
- }
42
+ "scripts": {
43
+ "develop": "pnpm run build:esm --watch",
44
+ "build": "cross-env NODE_ENV=production webpack",
45
+ "build:esm": "cross-env NODE_ENV=esm babel src --out-dir dist/esm --ignore \"**/__tests__\" --root-mode upward"
46
+ }
47
+ }
@@ -1,4 +1,4 @@
1
- import React, { useEffect, useState } from 'react';
1
+ import { Component, useEffect, useState } from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import ImmutablePropTypes from 'react-immutable-proptypes';
4
4
  import styled from '@emotion/styled';
@@ -238,7 +238,7 @@ const warnDeprecatedOptions = once(field =>
238
238
  );
239
239
 
240
240
  export default function withFileControl({ forImage } = {}) {
241
- return class FileControl extends React.Component {
241
+ return class FileControl extends Component {
242
242
  static propTypes = {
243
243
  field: PropTypes.object.isRequired,
244
244
  getAsset: PropTypes.func.isRequired,
package/LICENSE DELETED
@@ -1,22 +0,0 @@
1
- Copyright (c) 2016 Netlify <decap@p-m.si>
2
-
3
- MIT License
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining
6
- a copy of this software and associated documentation files (the
7
- "Software"), to deal in the Software without restriction, including
8
- without limitation the rights to use, copy, modify, merge, publish,
9
- distribute, sublicense, and/or sell copies of the Software, and to
10
- permit persons to whom the Software is furnished to do so, subject to
11
- the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be
14
- included in all copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.