@panneau/field-upload 3.0.22 → 3.0.24
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 +35 -8
- package/lib/index.js +34 -7
- package/package.json +18 -18
package/es/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
|
4
4
|
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
5
5
|
import { faTimes, faFileVideo, faFileImage, faFileAudio } from '@fortawesome/free-solid-svg-icons';
|
|
6
6
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
7
|
-
import { Dashboard
|
|
7
|
+
import { Dashboard } from '@uppy/react';
|
|
8
8
|
import classNames from 'classnames';
|
|
9
9
|
import get from 'lodash/get';
|
|
10
10
|
import isArray from 'lodash/isArray';
|
|
@@ -387,14 +387,41 @@ var UploadField = function UploadField(_ref) {
|
|
|
387
387
|
areInsidesReadyToBeVisible: true,
|
|
388
388
|
proudlyDisplayPoweredByUppy: false,
|
|
389
389
|
showProgressDetails: true
|
|
390
|
-
}))) : null, !showResourceModal && !disabled && withButton && uppy !== null
|
|
391
|
-
|
|
392
|
-
|
|
390
|
+
}))) : null, !showResourceModal && !disabled && withButton && uppy !== null && modalOpened ?
|
|
391
|
+
/*#__PURE__*/
|
|
392
|
+
// <DashboardModal
|
|
393
|
+
// uppy={uppy}
|
|
394
|
+
// className={styles.dashboardModal}
|
|
395
|
+
// plugins={sources}
|
|
396
|
+
// open={modalOpened}
|
|
397
|
+
// isHidden={!modalOpened}
|
|
398
|
+
// {...(width !== null ? { width } : null)}
|
|
399
|
+
// {...(height !== null ? { height } : null)}
|
|
400
|
+
// onRequestClose={closeModal}
|
|
401
|
+
// proudlyDisplayPoweredByUppy={false}
|
|
402
|
+
// closeModalOnClickOutside
|
|
403
|
+
// />
|
|
404
|
+
React.createElement(Dialog, {
|
|
405
|
+
size: "lg",
|
|
406
|
+
onClose: closeModal,
|
|
407
|
+
title: addButtonLabel
|
|
408
|
+
}, /*#__PURE__*/React.createElement(Dashboard, Object.assign({
|
|
409
|
+
uppy: uppy
|
|
410
|
+
// {...(containerWidth !== null && height !== null
|
|
411
|
+
// ? { width: containerWidth }
|
|
412
|
+
// : null)}
|
|
413
|
+
}, width !== null ? {
|
|
414
|
+
width: width
|
|
415
|
+
} : null, height !== null ? {
|
|
416
|
+
height: height
|
|
417
|
+
} : null, {
|
|
393
418
|
plugins: sources,
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
419
|
+
inline: true,
|
|
420
|
+
showProgressDetails: true,
|
|
421
|
+
areInsidesReadyToBeVisible: true,
|
|
422
|
+
proudlyDisplayPoweredByUppy: false,
|
|
423
|
+
doneButtonHandler: closeModal
|
|
424
|
+
}))) : null, showResourceModal ? /*#__PURE__*/React.createElement(Dialog, {
|
|
398
425
|
title: /*#__PURE__*/React.createElement(Label, null, searchButtonLabel),
|
|
399
426
|
size: "lg",
|
|
400
427
|
onClose: closeResourceModal
|
package/lib/index.js
CHANGED
|
@@ -409,14 +409,41 @@ var UploadField = function UploadField(_ref) {
|
|
|
409
409
|
areInsidesReadyToBeVisible: true,
|
|
410
410
|
proudlyDisplayPoweredByUppy: false,
|
|
411
411
|
showProgressDetails: true
|
|
412
|
-
}))) : null, !showResourceModal && !disabled && withButton && uppy$1 !== null
|
|
413
|
-
|
|
414
|
-
|
|
412
|
+
}))) : null, !showResourceModal && !disabled && withButton && uppy$1 !== null && modalOpened ?
|
|
413
|
+
/*#__PURE__*/
|
|
414
|
+
// <DashboardModal
|
|
415
|
+
// uppy={uppy}
|
|
416
|
+
// className={styles.dashboardModal}
|
|
417
|
+
// plugins={sources}
|
|
418
|
+
// open={modalOpened}
|
|
419
|
+
// isHidden={!modalOpened}
|
|
420
|
+
// {...(width !== null ? { width } : null)}
|
|
421
|
+
// {...(height !== null ? { height } : null)}
|
|
422
|
+
// onRequestClose={closeModal}
|
|
423
|
+
// proudlyDisplayPoweredByUppy={false}
|
|
424
|
+
// closeModalOnClickOutside
|
|
425
|
+
// />
|
|
426
|
+
React__default["default"].createElement(Dialog__default["default"], {
|
|
427
|
+
size: "lg",
|
|
428
|
+
onClose: closeModal,
|
|
429
|
+
title: addButtonLabel
|
|
430
|
+
}, /*#__PURE__*/React__default["default"].createElement(react.Dashboard, Object.assign({
|
|
431
|
+
uppy: uppy$1
|
|
432
|
+
// {...(containerWidth !== null && height !== null
|
|
433
|
+
// ? { width: containerWidth }
|
|
434
|
+
// : null)}
|
|
435
|
+
}, width !== null ? {
|
|
436
|
+
width: width
|
|
437
|
+
} : null, height !== null ? {
|
|
438
|
+
height: height
|
|
439
|
+
} : null, {
|
|
415
440
|
plugins: sources,
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
441
|
+
inline: true,
|
|
442
|
+
showProgressDetails: true,
|
|
443
|
+
areInsidesReadyToBeVisible: true,
|
|
444
|
+
proudlyDisplayPoweredByUppy: false,
|
|
445
|
+
doneButtonHandler: closeModal
|
|
446
|
+
}))) : null, showResourceModal ? /*#__PURE__*/React__default["default"].createElement(Dialog__default["default"], {
|
|
420
447
|
title: /*#__PURE__*/React__default["default"].createElement(Label__default["default"], null, searchButtonLabel),
|
|
421
448
|
size: "lg",
|
|
422
449
|
onClose: closeResourceModal
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@panneau/field-upload",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.24",
|
|
4
4
|
"description": "An Upload field",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -57,22 +57,22 @@
|
|
|
57
57
|
"@fortawesome/fontawesome-svg-core": "^1.2.35",
|
|
58
58
|
"@fortawesome/free-solid-svg-icons": "^5.15.3",
|
|
59
59
|
"@fortawesome/react-fontawesome": "^0.1.14",
|
|
60
|
-
"@panneau/core": "^3.0.
|
|
61
|
-
"@panneau/element-button": "^3.0.
|
|
62
|
-
"@panneau/element-card": "^3.0.
|
|
63
|
-
"@panneau/element-label": "^3.0.
|
|
64
|
-
"@panneau/list-resource-items": "^3.0.
|
|
65
|
-
"@panneau/modal-dialog": "^3.0.
|
|
66
|
-
"@panneau/themes": "^3.0.
|
|
67
|
-
"@panneau/uppy": "^3.0.
|
|
68
|
-
"@uppy/core": "^3.
|
|
69
|
-
"@uppy/dashboard": "^3.
|
|
70
|
-
"@uppy/drag-drop": "^3.0.
|
|
71
|
-
"@uppy/file-input": "^3.0.
|
|
72
|
-
"@uppy/progress-bar": "^3.0.
|
|
73
|
-
"@uppy/react": "^3.1.
|
|
74
|
-
"@uppy/status-bar": "^3.
|
|
75
|
-
"@uppy/utils": "^
|
|
60
|
+
"@panneau/core": "^3.0.23",
|
|
61
|
+
"@panneau/element-button": "^3.0.23",
|
|
62
|
+
"@panneau/element-card": "^3.0.23",
|
|
63
|
+
"@panneau/element-label": "^3.0.23",
|
|
64
|
+
"@panneau/list-resource-items": "^3.0.23",
|
|
65
|
+
"@panneau/modal-dialog": "^3.0.24",
|
|
66
|
+
"@panneau/themes": "^3.0.23",
|
|
67
|
+
"@panneau/uppy": "^3.0.23",
|
|
68
|
+
"@uppy/core": "^3.5.0",
|
|
69
|
+
"@uppy/dashboard": "^3.5.2",
|
|
70
|
+
"@uppy/drag-drop": "^3.0.3",
|
|
71
|
+
"@uppy/file-input": "^3.0.3",
|
|
72
|
+
"@uppy/progress-bar": "^3.0.3",
|
|
73
|
+
"@uppy/react": "^3.1.3",
|
|
74
|
+
"@uppy/status-bar": "^3.2.4",
|
|
75
|
+
"@uppy/utils": "^5.5.0",
|
|
76
76
|
"classnames": "^2.2.6",
|
|
77
77
|
"lodash": "^4.17.21",
|
|
78
78
|
"pretty-bytes": "^5.4.1",
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
"publishConfig": {
|
|
83
83
|
"access": "public"
|
|
84
84
|
},
|
|
85
|
-
"gitHead": "
|
|
85
|
+
"gitHead": "844eae65796ad7192cea4d5e50ac7234bcf0a6b9"
|
|
86
86
|
}
|