@panneau/field-upload 4.0.55 → 4.0.56

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/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
1
+ import * as react from 'react';
2
2
  import { MediaType, Label } from '@panneau/core';
3
3
 
4
4
  type MediaSource = 'webcam' | 'facebook' | 'instagram' | 'dropbox' | 'google-drive';
@@ -48,7 +48,7 @@ interface UploadFieldProps {
48
48
  onClose?: ((value: Media$1 | Media$1[] | null) => void) | null;
49
49
  className?: string | null;
50
50
  }
51
- declare function UploadField({ resource, value, name, types, fileTypes, sources, withButton, withFind, withClearButton, withoutMedia, addButtonLabel: initialAddButtonLabel, findButtonLabel: initialFindButtonLabel, clearButtonLabel: initialCleanButtonLabel, allowMultipleUploads, closeAfterFinish, maxNumberOfFiles, namePath, thumbnailPath, sizePath, linkPath, uppyProps, width, height, disabled, uploadDisabled, outline, loading: parentLoading, onChange, onClear, onClickAdd, onClickFind, className, }: UploadFieldProps): react_jsx_runtime.JSX.Element;
51
+ declare function UploadField({ resource, value, name, types, fileTypes, sources, withButton, withFind, withClearButton, withoutMedia, addButtonLabel: initialAddButtonLabel, findButtonLabel: initialFindButtonLabel, clearButtonLabel: initialCleanButtonLabel, allowMultipleUploads, closeAfterFinish, maxNumberOfFiles, namePath, thumbnailPath, sizePath, linkPath, uppyProps, width, height, disabled, uploadDisabled, outline, loading: parentLoading, onChange, onClear, onClickAdd, onClickFind, className, }: UploadFieldProps): react.JSX.Element;
52
52
 
53
53
  declare const _default: {
54
54
  id: string;
@@ -58,32 +58,32 @@ declare const _default: {
58
58
  interface AudioFieldProps {
59
59
  [key: string]: unknown;
60
60
  }
61
- declare function AudioField(props: AudioFieldProps): react_jsx_runtime.JSX.Element;
61
+ declare function AudioField(props: AudioFieldProps): react.JSX.Element;
62
62
 
63
63
  interface ImageFieldProps {
64
64
  [key: string]: unknown;
65
65
  }
66
- declare function ImageField(props: ImageFieldProps): react_jsx_runtime.JSX.Element;
66
+ declare function ImageField(props: ImageFieldProps): react.JSX.Element;
67
67
 
68
68
  interface ImagesFieldProps {
69
69
  [key: string]: unknown;
70
70
  }
71
- declare function ImagesField(props: ImagesFieldProps): react_jsx_runtime.JSX.Element;
71
+ declare function ImagesField(props: ImagesFieldProps): react.JSX.Element;
72
72
 
73
73
  interface VideoFieldProps {
74
74
  [key: string]: unknown;
75
75
  }
76
- declare function VideoField(props: VideoFieldProps): react_jsx_runtime.JSX.Element;
76
+ declare function VideoField(props: VideoFieldProps): react.JSX.Element;
77
77
 
78
78
  interface DocumentFieldProps {
79
79
  [key: string]: unknown;
80
80
  }
81
- declare function DocumentField(props: DocumentFieldProps): react_jsx_runtime.JSX.Element;
81
+ declare function DocumentField(props: DocumentFieldProps): react.JSX.Element;
82
82
 
83
83
  interface FontFieldProps {
84
84
  [key: string]: unknown;
85
85
  }
86
- declare function FontField(props: FontFieldProps): react_jsx_runtime.JSX.Element;
86
+ declare function FontField(props: FontFieldProps): react.JSX.Element;
87
87
 
88
88
  interface Media {
89
89
  id?: string | number;
@@ -101,6 +101,6 @@ interface UpdateFileFieldProps {
101
101
  fileTypes?: string[] | null;
102
102
  [key: string]: unknown;
103
103
  }
104
- declare function UpdateFileField({ value, onChange, ...props }: UpdateFileFieldProps): react_jsx_runtime.JSX.Element;
104
+ declare function UpdateFileField({ value, onChange, ...props }: UpdateFileFieldProps): react.JSX.Element;
105
105
 
106
106
  export { AudioField, DocumentField, FontField, ImageField, ImagesField, UpdateFileField, VideoField, UploadField as default, _default as definition };
package/dist/index.js CHANGED
@@ -2,8 +2,8 @@ import { UppyContextProvider } from '@uppy/react';
2
2
  import Dashboard from '@uppy/react/dashboard';
3
3
  import DashboardModal from '@uppy/react/dashboard-modal';
4
4
  import classNames from 'classnames';
5
- import isArray from 'lodash/isArray';
6
- import isObject from 'lodash/isObject';
5
+ import isArray from 'lodash-es/isArray';
6
+ import isObject from 'lodash-es/isObject';
7
7
  import { useCallback, useMemo, useState, useRef, useEffect } from 'react';
8
8
  import { FormattedMessage } from 'react-intl';
9
9
  import { useQuery } from '@panneau/core/hooks';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panneau/field-upload",
3
- "version": "4.0.55",
3
+ "version": "4.0.56",
4
4
  "description": "An Upload field",
5
5
  "keywords": [
6
6
  "javascript"
@@ -36,6 +36,9 @@
36
36
  "type": "module",
37
37
  "module": "dist/index.js",
38
38
  "types": "dist/index.d.ts",
39
+ "sideEffects": [
40
+ "**/*.css"
41
+ ],
39
42
  "style": "assets/css/styles.css",
40
43
  "exports": {
41
44
  ".": {
@@ -67,13 +70,13 @@
67
70
  "@fortawesome/fontawesome-svg-core": "^6.5.1",
68
71
  "@fortawesome/free-solid-svg-icons": "^6.5.1",
69
72
  "@fortawesome/react-fontawesome": "^0.2.0",
70
- "@panneau/core": "^4.0.55",
71
- "@panneau/element-button": "^4.0.55",
72
- "@panneau/element-label": "^4.0.55",
73
- "@panneau/element-media-card": "^4.0.55",
74
- "@panneau/modal-resource-items": "^4.0.55",
75
- "@panneau/themes": "^4.0.55",
76
- "@panneau/uppy": "^4.0.55",
73
+ "@panneau/core": "^4.0.56",
74
+ "@panneau/element-button": "^4.0.56",
75
+ "@panneau/element-label": "^4.0.56",
76
+ "@panneau/element-media-card": "^4.0.56",
77
+ "@panneau/modal-resource-items": "^4.0.56",
78
+ "@panneau/themes": "^4.0.56",
79
+ "@panneau/uppy": "^4.0.56",
77
80
  "@uppy/core": "^5.1.1",
78
81
  "@uppy/dashboard": "^5.0.4",
79
82
  "@uppy/react": "^5.1.1",
@@ -86,5 +89,5 @@
86
89
  "publishConfig": {
87
90
  "access": "public"
88
91
  },
89
- "gitHead": "1c9183567fc5bf98ba10fa57c63cf2ed2ae4a054"
92
+ "gitHead": "9c3ba1bdd04699e0150f84a35f2bdbdec073bd59"
90
93
  }