@panneau/field-upload 3.0.58 → 3.0.61

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 CHANGED
@@ -20,10 +20,10 @@ import Label from '@panneau/element-label';
20
20
  import ResourceItemsList from '@panneau/list-resource-items';
21
21
  import Dialog from '@panneau/modal-dialog';
22
22
  import { useUppy } from '@panneau/uppy';
23
- import '@uppy/core/dist/style.min.css';
24
- import '@uppy/dashboard/dist/style.min.css';
25
- import '@uppy/drag-drop/dist/style.min.css';
26
- import '@uppy/status-bar/dist/style.min.css';
23
+ import '@uppy/core/dist/style.css';
24
+ import '@uppy/dashboard/dist/style.css';
25
+ import '@uppy/drag-drop/dist/style.css';
26
+ import '@uppy/status-bar/dist/style.css';
27
27
 
28
28
  var styles = {"container":"panneau-field-upload-container","dashboard":"panneau-field-upload-dashboard","dashboardModal":"panneau-field-upload-dashboardModal"};
29
29
 
@@ -116,11 +116,6 @@ var UploadField = function UploadField(_ref) {
116
116
  disabled = _ref.disabled,
117
117
  onChange = _ref.onChange,
118
118
  className = _ref.className;
119
- // const [{ pathname = null }] = useLocation();
120
- // const { ref: containerRef, entry = null } = useResizeObserver();
121
- // const { contentRect } = entry || {};
122
- // const { width: containerWidth = null } = contentRect || {};
123
-
124
119
  var mergeData = useCallback(function (newValue) {
125
120
  // Merge the response from our back-end
126
121
  if (isObject(newValue) && isObject(newValue.response) && newValue.response.status === 200 && newValue.response.body !== null) {
@@ -428,9 +423,10 @@ var UploadField = function UploadField(_ref) {
428
423
  } : null, {
429
424
  plugins: sources,
430
425
  inline: true,
431
- showProgressDetails: true,
432
- areInsidesReadyToBeVisible: true,
433
- isDashboardVisible: true,
426
+ showProgressDetails: true
427
+ // areInsidesReadyToBeVisible
428
+ // isDashboardVisible
429
+ ,
434
430
  showAddFilesPanel: true,
435
431
  proudlyDisplayPoweredByUppy: false,
436
432
  doneButtonHandler: closeModalAndClear
package/lib/index.js CHANGED
@@ -24,10 +24,10 @@ var Label = require('@panneau/element-label');
24
24
  var ResourceItemsList = require('@panneau/list-resource-items');
25
25
  var Dialog = require('@panneau/modal-dialog');
26
26
  var uppy = require('@panneau/uppy');
27
- require('@uppy/core/dist/style.min.css');
28
- require('@uppy/dashboard/dist/style.min.css');
29
- require('@uppy/drag-drop/dist/style.min.css');
30
- require('@uppy/status-bar/dist/style.min.css');
27
+ require('@uppy/core/dist/style.css');
28
+ require('@uppy/dashboard/dist/style.css');
29
+ require('@uppy/drag-drop/dist/style.css');
30
+ require('@uppy/status-bar/dist/style.css');
31
31
 
32
32
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
33
33
 
@@ -138,11 +138,6 @@ var UploadField = function UploadField(_ref) {
138
138
  disabled = _ref.disabled,
139
139
  onChange = _ref.onChange,
140
140
  className = _ref.className;
141
- // const [{ pathname = null }] = useLocation();
142
- // const { ref: containerRef, entry = null } = useResizeObserver();
143
- // const { contentRect } = entry || {};
144
- // const { width: containerWidth = null } = contentRect || {};
145
-
146
141
  var mergeData = React.useCallback(function (newValue) {
147
142
  // Merge the response from our back-end
148
143
  if (isObject__default["default"](newValue) && isObject__default["default"](newValue.response) && newValue.response.status === 200 && newValue.response.body !== null) {
@@ -450,9 +445,10 @@ var UploadField = function UploadField(_ref) {
450
445
  } : null, {
451
446
  plugins: sources,
452
447
  inline: true,
453
- showProgressDetails: true,
454
- areInsidesReadyToBeVisible: true,
455
- isDashboardVisible: true,
448
+ showProgressDetails: true
449
+ // areInsidesReadyToBeVisible
450
+ // isDashboardVisible
451
+ ,
456
452
  showAddFilesPanel: true,
457
453
  proudlyDisplayPoweredByUppy: false,
458
454
  doneButtonHandler: closeModalAndClear
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panneau/field-upload",
3
- "version": "3.0.58",
3
+ "version": "3.0.61",
4
4
  "description": "An Upload field",
5
5
  "keywords": [
6
6
  "javascript"
@@ -61,10 +61,10 @@
61
61
  "@panneau/element-button": "^3.0.55",
62
62
  "@panneau/element-card": "^3.0.55",
63
63
  "@panneau/element-label": "^3.0.45",
64
- "@panneau/list-resource-items": "^3.0.55",
65
- "@panneau/modal-dialog": "^3.0.55",
64
+ "@panneau/list-resource-items": "^3.0.61",
65
+ "@panneau/modal-dialog": "^3.0.61",
66
66
  "@panneau/themes": "^3.0.55",
67
- "@panneau/uppy": "^3.0.56",
67
+ "@panneau/uppy": "^3.0.59",
68
68
  "@uppy/core": "^3.5.0",
69
69
  "@uppy/dashboard": "^3.5.2",
70
70
  "@uppy/drag-drop": "^3.0.3",
@@ -82,5 +82,5 @@
82
82
  "publishConfig": {
83
83
  "access": "public"
84
84
  },
85
- "gitHead": "dfe49b5c00a2425a7eb889d47ee5e78de6f49ccf"
85
+ "gitHead": "833cbcda8089671ff2b56d0e73faf5bdd6c903e9"
86
86
  }