@bluecateng/pelagos-forms 4.0.0 → 4.1.0

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.
@@ -10,4 +10,6 @@ export const mapState = ({
10
10
  error,
11
11
  onDrop: (...args) => args.length === 1 ? (setExtra(args[0].name), setValue(args[0])) : (setExtra(args[0]), setValue(args[1]))
12
12
  });
13
+
14
+ /** @deprecated use FormFileUploader instead. */
13
15
  export default connect(DropZone, mapState);
@@ -0,0 +1,11 @@
1
+ import { FileUploader } from '@bluecateng/pelagos';
2
+ import { connect } from '@bluecateng/auto-forms';
3
+ export default connect(FileUploader, ({
4
+ value,
5
+ error,
6
+ setValue
7
+ }) => ({
8
+ files: value,
9
+ error,
10
+ onChange: setValue
11
+ }));
package/dist/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  export { default as FormCheckBox } from './components/FormCheckBox';
2
2
  export { default as FormDropDown } from './components/FormDropDown';
3
3
  export { default as FormDropZone } from './components/FormDropZone';
4
+ export { default as FormFileUploader } from './components/FormFileUploader';
4
5
  export { default as FormTagInput } from './components/FormTagInput';
5
6
  export { default as FormTextArea } from './components/FormTextArea';
6
7
  export { default as FormTextInput } from './components/FormTextInput';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bluecateng/pelagos-forms",
3
- "version": "4.0.0",
3
+ "version": "4.1.0",
4
4
  "description": "Form components",
5
5
  "license": "ISC",
6
6
  "sideEffects": false,
@@ -22,7 +22,7 @@
22
22
  "exports": "./dist/index.js",
23
23
  "peerDependencies": {
24
24
  "@bluecateng/auto-forms": ">= 0",
25
- "@bluecateng/pelagos": ">= 9"
25
+ "@bluecateng/pelagos": ">= 10"
26
26
  },
27
- "gitHead": "6e7333efa2db55e63e0248197fe07edfb69373d7"
27
+ "gitHead": "97624e2da13e7fdc7184b7c70437dc47a1b9aa33"
28
28
  }