@bigbinary/neeto-image-uploader-frontend 1.0.9 → 1.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigbinary/neeto-image-uploader-frontend",
3
- "version": "1.0.9",
3
+ "version": "1.1.0",
4
4
  "license": "UNLICENSED",
5
5
  "bugs": {
6
6
  "url": "https://github.com/bigbinary/neeto-message-templates-engine/issues"
@@ -72,6 +72,7 @@
72
72
  "@rollup/plugin-replace": "5.0.2",
73
73
  "@svgr/rollup": "7.0.0",
74
74
  "antd": "4.18.7",
75
+ "assert": "^2.0.0",
75
76
  "autoprefixer": "10.4.14",
76
77
  "axios": "0.27.2",
77
78
  "babel-loader": "9.1.2",
@@ -163,7 +164,6 @@
163
164
  "@bigbinary/neetoui": "^4.4.10",
164
165
  "@honeybadger-io/react": "^2.0.1",
165
166
  "@rails/activestorage": "^7.0.4",
166
- "assert": "^2.0.0",
167
167
  "axios": "^0.27.2",
168
168
  "classnames": "^2.3.2",
169
169
  "formik": "^2.2.9",
package/types.d.ts CHANGED
@@ -3,7 +3,7 @@ interface Image {
3
3
  url: string;
4
4
  }
5
5
 
6
- interface ImageUploaderProps {
6
+ interface AssetLibraryProps {
7
7
  assets?: Image[];
8
8
  isOpen?: boolean;
9
9
  }
@@ -29,7 +29,13 @@ interface VideoProps {
29
29
  className?: string;
30
30
  }
31
31
 
32
- export function NeetoImageUploader(props: ImageUploaderProps): JSX.Element;
32
+ interface ImageUploaderProps {
33
+ onComplete?: (url: string) => void;
34
+ }
35
+
36
+ export function ImageUploader(props: ImageUploaderProps): JSX.Element;
37
+
38
+ export function AssetLibrary(props: AssetLibraryProps): JSX.Element;
33
39
 
34
40
  export function Image(props: ImageProps): JSX.Element;
35
41