@elliemae/ds-uploader 2.0.1 → 2.1.0-rc.3
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/cjs/DSUploader.js +2 -2
- package/esm/DSUploader.js +2 -2
- package/package.json +6 -6
- package/types/DSUploader.d.ts +30 -30
- package/types/propTypes.d.ts +30 -30
package/cjs/DSUploader.js
CHANGED
|
@@ -36,9 +36,9 @@ const _excluded = ["labelText"],
|
|
|
36
36
|
_excluded2 = ["containerProps", "label", "icon", "defaultActionLabel", "dragActiveInstructionalText", "dragActiveIcon", "altActionLabel", "acceptedTypesText", "disabledDefault", "disabledAlt", "onDefaultHandlerClick", "onAltHandlerClick", "actions", "showAltAction", "defaultActionTooltipText", "altActionTooltipText"],
|
|
37
37
|
_excluded3 = ["onClick"];
|
|
38
38
|
|
|
39
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
39
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
40
40
|
|
|
41
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
41
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
42
42
|
const blockName = 'uploader';
|
|
43
43
|
const blockNameInfo = "".concat(blockName, "-info");
|
|
44
44
|
const blockNameDragActive = "".concat(blockName, "-drag-active");
|
package/esm/DSUploader.js
CHANGED
|
@@ -24,9 +24,9 @@ const _excluded = ["labelText"],
|
|
|
24
24
|
_excluded2 = ["containerProps", "label", "icon", "defaultActionLabel", "dragActiveInstructionalText", "dragActiveIcon", "altActionLabel", "acceptedTypesText", "disabledDefault", "disabledAlt", "onDefaultHandlerClick", "onAltHandlerClick", "actions", "showAltAction", "defaultActionTooltipText", "altActionTooltipText"],
|
|
25
25
|
_excluded3 = ["onClick"];
|
|
26
26
|
|
|
27
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
27
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
28
28
|
|
|
29
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
29
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
30
30
|
const blockName = 'uploader';
|
|
31
31
|
const blockNameInfo = "".concat(blockName, "-info");
|
|
32
32
|
const blockNameDragActive = "".concat(blockName, "-drag-active");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-uploader",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.1.0-rc.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Uploader",
|
|
6
6
|
"module": "./esm/index.js",
|
|
@@ -40,11 +40,11 @@
|
|
|
40
40
|
"build": "node ../../scripts/build/build.js"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@elliemae/ds-button": "2.0.
|
|
44
|
-
"@elliemae/ds-classnames": "2.0.
|
|
45
|
-
"@elliemae/ds-icons": "2.0.
|
|
46
|
-
"@elliemae/ds-tooltip": "2.0.
|
|
47
|
-
"@elliemae/ds-utilities": "2.0.
|
|
43
|
+
"@elliemae/ds-button": "2.1.0-rc.3",
|
|
44
|
+
"@elliemae/ds-classnames": "2.1.0-rc.3",
|
|
45
|
+
"@elliemae/ds-icons": "2.1.0-rc.3",
|
|
46
|
+
"@elliemae/ds-tooltip": "2.1.0-rc.3",
|
|
47
|
+
"@elliemae/ds-utilities": "2.1.0-rc.3",
|
|
48
48
|
"react-desc": "~4.1.3",
|
|
49
49
|
"react-dropzone": "~10.2.2"
|
|
50
50
|
},
|
package/types/DSUploader.d.ts
CHANGED
|
@@ -9,58 +9,58 @@ declare const DSUploader: {
|
|
|
9
9
|
};
|
|
10
10
|
propTypes: {
|
|
11
11
|
containerProps: {
|
|
12
|
-
defaultValue
|
|
12
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
13
13
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
14
14
|
};
|
|
15
|
-
isRequired: import("react-desc").
|
|
15
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
16
16
|
};
|
|
17
17
|
validator: {
|
|
18
|
-
defaultValue
|
|
18
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
19
19
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
20
20
|
};
|
|
21
|
-
isRequired: import("react-desc").
|
|
21
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
22
22
|
};
|
|
23
23
|
maxFiles: {
|
|
24
|
-
defaultValue
|
|
24
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
25
25
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
26
26
|
};
|
|
27
|
-
isRequired: import("react-desc").
|
|
27
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
28
28
|
};
|
|
29
29
|
minSize: {
|
|
30
|
-
defaultValue
|
|
30
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
31
31
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
32
32
|
};
|
|
33
|
-
isRequired: import("react-desc").
|
|
33
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
34
34
|
};
|
|
35
35
|
maxSize: {
|
|
36
|
-
defaultValue
|
|
36
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
37
37
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
38
38
|
};
|
|
39
|
-
isRequired: import("react-desc").
|
|
39
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
40
40
|
};
|
|
41
41
|
onDropRejected: {
|
|
42
|
-
defaultValue
|
|
42
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
43
43
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
44
44
|
};
|
|
45
|
-
isRequired: import("react-desc").
|
|
45
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
46
46
|
};
|
|
47
47
|
disabled: {
|
|
48
|
-
defaultValue
|
|
48
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
49
49
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
50
50
|
};
|
|
51
|
-
isRequired: import("react-desc").
|
|
51
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
52
52
|
};
|
|
53
53
|
multiple: {
|
|
54
|
-
defaultValue
|
|
54
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
55
55
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
56
56
|
};
|
|
57
|
-
isRequired: import("react-desc").
|
|
57
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
58
58
|
};
|
|
59
59
|
accept: {
|
|
60
|
-
defaultValue
|
|
60
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
61
61
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
62
62
|
};
|
|
63
|
-
isRequired: import("react-desc").
|
|
63
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
64
64
|
};
|
|
65
65
|
label: {
|
|
66
66
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
@@ -72,10 +72,10 @@ declare const DSUploader: {
|
|
|
72
72
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
73
73
|
};
|
|
74
74
|
defaultActionLabel: {
|
|
75
|
-
defaultValue
|
|
75
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
76
76
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
77
77
|
};
|
|
78
|
-
isRequired: import("react-desc").
|
|
78
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
79
79
|
};
|
|
80
80
|
showAltAction: {
|
|
81
81
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
@@ -87,10 +87,10 @@ declare const DSUploader: {
|
|
|
87
87
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
88
88
|
};
|
|
89
89
|
dragActiveIcon: {
|
|
90
|
-
defaultValue
|
|
90
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
91
91
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
92
92
|
};
|
|
93
|
-
isRequired: import("react-desc").
|
|
93
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
94
94
|
};
|
|
95
95
|
acceptedTypesText: {
|
|
96
96
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
@@ -102,28 +102,28 @@ declare const DSUploader: {
|
|
|
102
102
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
103
103
|
};
|
|
104
104
|
onDefaultHandlerClick: {
|
|
105
|
-
defaultValue
|
|
105
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
106
106
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
107
107
|
};
|
|
108
|
-
isRequired: import("react-desc").
|
|
108
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
109
109
|
};
|
|
110
110
|
onAltHandlerClick: {
|
|
111
|
-
defaultValue
|
|
111
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
112
112
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
113
113
|
};
|
|
114
|
-
isRequired: import("react-desc").
|
|
114
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
115
115
|
};
|
|
116
116
|
defaultActionTooltipText: {
|
|
117
|
-
defaultValue
|
|
117
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
118
118
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
119
119
|
};
|
|
120
|
-
isRequired: import("react-desc").
|
|
120
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
121
121
|
};
|
|
122
122
|
altActionTooltipText: {
|
|
123
|
-
defaultValue
|
|
123
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
124
124
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
125
125
|
};
|
|
126
|
-
isRequired: import("react-desc").
|
|
126
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
127
127
|
};
|
|
128
128
|
};
|
|
129
129
|
};
|
package/types/propTypes.d.ts
CHANGED
|
@@ -2,58 +2,58 @@
|
|
|
2
2
|
/** Inherits the props of react-dropzone https://react-dropzone.netlify.com/ */
|
|
3
3
|
export declare const propTypes: {
|
|
4
4
|
containerProps: {
|
|
5
|
-
defaultValue
|
|
5
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
6
6
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
7
7
|
};
|
|
8
|
-
isRequired: import("react-desc").
|
|
8
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
9
9
|
};
|
|
10
10
|
validator: {
|
|
11
|
-
defaultValue
|
|
11
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
12
12
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
13
13
|
};
|
|
14
|
-
isRequired: import("react-desc").
|
|
14
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
15
15
|
};
|
|
16
16
|
maxFiles: {
|
|
17
|
-
defaultValue
|
|
17
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
18
18
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
19
19
|
};
|
|
20
|
-
isRequired: import("react-desc").
|
|
20
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
21
21
|
};
|
|
22
22
|
minSize: {
|
|
23
|
-
defaultValue
|
|
23
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
24
24
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
25
25
|
};
|
|
26
|
-
isRequired: import("react-desc").
|
|
26
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
27
27
|
};
|
|
28
28
|
maxSize: {
|
|
29
|
-
defaultValue
|
|
29
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
30
30
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
31
31
|
};
|
|
32
|
-
isRequired: import("react-desc").
|
|
32
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
33
33
|
};
|
|
34
34
|
onDropRejected: {
|
|
35
|
-
defaultValue
|
|
35
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
36
36
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
37
37
|
};
|
|
38
|
-
isRequired: import("react-desc").
|
|
38
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
39
39
|
};
|
|
40
40
|
disabled: {
|
|
41
|
-
defaultValue
|
|
41
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
42
42
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
43
43
|
};
|
|
44
|
-
isRequired: import("react-desc").
|
|
44
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
45
45
|
};
|
|
46
46
|
multiple: {
|
|
47
|
-
defaultValue
|
|
47
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
48
48
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
49
49
|
};
|
|
50
|
-
isRequired: import("react-desc").
|
|
50
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
51
51
|
};
|
|
52
52
|
accept: {
|
|
53
|
-
defaultValue
|
|
53
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
54
54
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
55
55
|
};
|
|
56
|
-
isRequired: import("react-desc").
|
|
56
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
57
57
|
};
|
|
58
58
|
label: {
|
|
59
59
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
@@ -65,10 +65,10 @@ export declare const propTypes: {
|
|
|
65
65
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
66
66
|
};
|
|
67
67
|
defaultActionLabel: {
|
|
68
|
-
defaultValue
|
|
68
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
69
69
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
70
70
|
};
|
|
71
|
-
isRequired: import("react-desc").
|
|
71
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
72
72
|
};
|
|
73
73
|
showAltAction: {
|
|
74
74
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
@@ -80,10 +80,10 @@ export declare const propTypes: {
|
|
|
80
80
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
81
81
|
};
|
|
82
82
|
dragActiveIcon: {
|
|
83
|
-
defaultValue
|
|
83
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
84
84
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
85
85
|
};
|
|
86
|
-
isRequired: import("react-desc").
|
|
86
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
87
87
|
};
|
|
88
88
|
acceptedTypesText: {
|
|
89
89
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
@@ -95,27 +95,27 @@ export declare const propTypes: {
|
|
|
95
95
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
96
96
|
};
|
|
97
97
|
onDefaultHandlerClick: {
|
|
98
|
-
defaultValue
|
|
98
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
99
99
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
100
100
|
};
|
|
101
|
-
isRequired: import("react-desc").
|
|
101
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
102
102
|
};
|
|
103
103
|
onAltHandlerClick: {
|
|
104
|
-
defaultValue
|
|
104
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
105
105
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
106
106
|
};
|
|
107
|
-
isRequired: import("react-desc").
|
|
107
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
108
108
|
};
|
|
109
109
|
defaultActionTooltipText: {
|
|
110
|
-
defaultValue
|
|
110
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
111
111
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
112
112
|
};
|
|
113
|
-
isRequired: import("react-desc").
|
|
113
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
114
114
|
};
|
|
115
115
|
altActionTooltipText: {
|
|
116
|
-
defaultValue
|
|
116
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
117
117
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
118
118
|
};
|
|
119
|
-
isRequired: import("react-desc").
|
|
119
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
120
120
|
};
|
|
121
121
|
};
|