@panneau/field-upload 4.0.1 → 4.0.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.
Files changed (2) hide show
  1. package/es/index.js +1 -7
  2. package/package.json +9 -9
package/es/index.js CHANGED
@@ -8,7 +8,7 @@ import DashboardModal from '@uppy/react/dashboard-modal';
8
8
  import classNames from 'classnames';
9
9
  import isArray from 'lodash-es/isArray';
10
10
  import isObject from 'lodash-es/isObject';
11
- import React, { useCallback, useMemo, useState, useRef, useEffect } from 'react';
11
+ import { useCallback, useMemo, useState, useRef, useEffect } from 'react';
12
12
  import { FormattedMessage } from 'react-intl';
13
13
  import { useQuery } from '@panneau/core/hooks';
14
14
  import Button from '@panneau/element-button';
@@ -476,7 +476,6 @@ var definition = [{
476
476
  component: 'Font'
477
477
  }];
478
478
 
479
- /* eslint-disable react/jsx-props-no-spreading */
480
479
  function AudioField(props) {
481
480
  var types = useMemo(function () {
482
481
  return ['audio'];
@@ -486,7 +485,6 @@ function AudioField(props) {
486
485
  }));
487
486
  }
488
487
 
489
- /* eslint-disable react/jsx-props-no-spreading */
490
488
  function ImageField(props) {
491
489
  var types = useMemo(function () {
492
490
  return ['image'];
@@ -496,7 +494,6 @@ function ImageField(props) {
496
494
  }));
497
495
  }
498
496
 
499
- /* eslint-disable react/jsx-props-no-spreading */
500
497
  function ImagesField(props) {
501
498
  var types = useMemo(function () {
502
499
  return ['image'];
@@ -507,7 +504,6 @@ function ImagesField(props) {
507
504
  }));
508
505
  }
509
506
 
510
- /* eslint-disable react/jsx-props-no-spreading */
511
507
  function VideoField(props) {
512
508
  var types = useMemo(function () {
513
509
  return ['video'];
@@ -517,7 +513,6 @@ function VideoField(props) {
517
513
  }));
518
514
  }
519
515
 
520
- /* eslint-disable react/jsx-props-no-spreading */
521
516
  function DocumentField(props) {
522
517
  var fileTypes = useMemo(function () {
523
518
  return ['.pdf'];
@@ -531,7 +526,6 @@ function DocumentField(props) {
531
526
  }));
532
527
  }
533
528
 
534
- /* eslint-disable react/jsx-props-no-spreading */
535
529
  function FontField(props) {
536
530
  var fileTypes = useMemo(function () {
537
531
  return ['.ttf', '.otf'];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panneau/field-upload",
3
- "version": "4.0.1",
3
+ "version": "4.0.2",
4
4
  "description": "An Upload field",
5
5
  "keywords": [
6
6
  "javascript"
@@ -62,13 +62,13 @@
62
62
  "@fortawesome/fontawesome-svg-core": "^6.5.1",
63
63
  "@fortawesome/free-solid-svg-icons": "^6.5.1",
64
64
  "@fortawesome/react-fontawesome": "^0.2.0",
65
- "@panneau/core": "^4.0.1",
66
- "@panneau/element-button": "^4.0.1",
67
- "@panneau/element-label": "^4.0.1",
68
- "@panneau/element-media-card": "^4.0.1",
69
- "@panneau/modal-resource-items": "^4.0.1",
70
- "@panneau/themes": "^4.0.1",
71
- "@panneau/uppy": "^4.0.1",
65
+ "@panneau/core": "^4.0.2",
66
+ "@panneau/element-button": "^4.0.2",
67
+ "@panneau/element-label": "^4.0.2",
68
+ "@panneau/element-media-card": "^4.0.2",
69
+ "@panneau/modal-resource-items": "^4.0.2",
70
+ "@panneau/themes": "^4.0.2",
71
+ "@panneau/uppy": "^4.0.2",
72
72
  "@uppy/core": "^5.1.1",
73
73
  "@uppy/dashboard": "^5.0.4",
74
74
  "@uppy/react": "^5.1.1",
@@ -82,5 +82,5 @@
82
82
  "publishConfig": {
83
83
  "access": "public"
84
84
  },
85
- "gitHead": "dbdf65640625c027ecd56cf2b816b80a5c38cb8d"
85
+ "gitHead": "53ad0f27e467992c23158732e0f7d39d8615780b"
86
86
  }