@panneau/action-upload 3.0.223 → 3.0.225

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.
Files changed (2) hide show
  1. package/package.json +10 -7
  2. package/lib/index.js +0 -88
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panneau/action-upload",
3
- "version": "3.0.223",
3
+ "version": "3.0.225",
4
4
  "description": "Upload action",
5
5
  "keywords": [
6
6
  "javascript"
@@ -25,8 +25,11 @@
25
25
  }
26
26
  ],
27
27
  "license": "ISC",
28
- "main": "lib/index.js",
28
+ "type": "module",
29
29
  "module": "es/index.js",
30
+ "exports": {
31
+ ".": "./es/index.js"
32
+ },
30
33
  "files": [
31
34
  "lib",
32
35
  "es",
@@ -46,10 +49,10 @@
46
49
  },
47
50
  "dependencies": {
48
51
  "@babel/runtime": "^7.12.5",
49
- "@panneau/core": "^3.0.223",
50
- "@panneau/element-button": "^3.0.223",
51
- "@panneau/field-upload": "^3.0.223",
52
- "@panneau/themes": "^3.0.223",
52
+ "@panneau/core": "^3.0.224",
53
+ "@panneau/element-button": "^3.0.224",
54
+ "@panneau/field-upload": "^3.0.225",
55
+ "@panneau/themes": "^3.0.224",
53
56
  "classnames": "^2.5.1",
54
57
  "prop-types": "^15.7.2",
55
58
  "react-intl": "^5.15.8||^6.0.0"
@@ -57,5 +60,5 @@
57
60
  "publishConfig": {
58
61
  "access": "public"
59
62
  },
60
- "gitHead": "14196bd955b0e44cbc214e00f3189b3216f3fa53"
63
+ "gitHead": "5603d68b2a7c406ea856abccc332318814d53fc3"
61
64
  }
package/lib/index.js DELETED
@@ -1,88 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
6
- var PropTypes = require('prop-types');
7
- var React = require('react');
8
- var reactIntl = require('react-intl');
9
-
10
- var _excluded = ["id", "title", "description", "fields", "endpoint", "label", "icon", "value", "theme", "disabled", "onChange", "onConfirmed", "withConfirmation", "className"];
11
-
12
- // TODO: fix this
13
-
14
- var propTypes = {
15
- id: PropTypes.string.isRequired,
16
- title: PropTypes.node,
17
- description: PropTypes.node,
18
- fields: PropTypes.arrayOf(PropTypes.shape({})),
19
- endpoint: PropTypes.string,
20
- label: PropTypes.string,
21
- value: PropTypes.bool,
22
- icon: PropTypes.string,
23
- theme: PropTypes.string,
24
- disabled: PropTypes.bool,
25
- onChange: PropTypes.func,
26
- onConfirmed: PropTypes.func,
27
- withConfirmation: PropTypes.bool,
28
- className: PropTypes.string
29
- };
30
- var defaultProps = {
31
- title: null,
32
- description: null,
33
- fields: null,
34
- endpoint: null,
35
- label: /*#__PURE__*/React.createElement(reactIntl.FormattedMessage, {
36
- id: "rklw2v",
37
- defaultMessage: [{
38
- "type": 0,
39
- "value": "Add a file"
40
- }]
41
- }),
42
- icon: 'upload',
43
- value: null,
44
- theme: 'primary',
45
- disabled: false,
46
- onChange: null,
47
- onConfirmed: null,
48
- withConfirmation: false,
49
- className: null
50
- };
51
- var UploadAction = function UploadAction(_ref) {
52
- _ref.id;
53
- _ref.title;
54
- _ref.description;
55
- _ref.fields;
56
- _ref.endpoint;
57
- _ref.label;
58
- _ref.icon;
59
- _ref.value;
60
- _ref.theme;
61
- _ref.disabled;
62
- _ref.onChange;
63
- _ref.onConfirmed;
64
- _ref.withConfirmation;
65
- _ref.className;
66
- _objectWithoutProperties(_ref, _excluded);
67
- // const { ids, idLabels, modalKey } = useActionProps(value);
68
- console.log('upload action...');
69
- return 'Upload';
70
- // <UploadField
71
- // className={classNames([
72
- // styles.container,
73
- // {
74
- // [className]: className !== null,
75
- // },
76
- // ])}
77
- // label={label}
78
- // icon={icon}
79
- // disabled={disabled}
80
- // theme={disabled ? 'secondary' : theme}
81
- // {...props}
82
- // />
83
- };
84
- UploadAction.propTypes = propTypes;
85
- UploadAction.defaultProps = defaultProps;
86
- var UploadAction$1 = UploadAction;
87
-
88
- exports.default = UploadAction$1;