nis-media-uploader
Advanced tools
Comparing version 1.0.1 to 1.0.12
{ | ||
"name": "nis-media-uploader", | ||
"version": "1.0.1", | ||
"version": "1.0.12", | ||
"description": "No Input Signal Media Uploader", | ||
"license": "MIT", | ||
"main": "./dist/index.js", | ||
"types": "./src/index.d.ts", | ||
"module": "./dist/index.js", | ||
"files": [ | ||
"dist/", | ||
"src/index.d.ts" | ||
"src/index.d.ts", | ||
"src/index.ts" | ||
], | ||
@@ -61,3 +65,10 @@ "scripts": { | ||
"uuid": "^9.0.1" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git@gitlab.com:no-input-signal/nis-react-uploader.git" | ||
}, | ||
"peerDependencies": { | ||
"react": ">=18.0.0" | ||
} | ||
} | ||
} |
@@ -0,1 +1,4 @@ | ||
import { initial } from 'lodash'; | ||
import * as React from 'react'; | ||
declare module '*.css'; | ||
@@ -6,16 +9,33 @@ declare module '*.png'; | ||
export interface Media { | ||
originalName?: string; | ||
id?: string; | ||
mime: string; | ||
alt?: null; | ||
caption?: null; | ||
description?: null; | ||
filename: string; | ||
uri: string; | ||
url: string; | ||
filesize: string; | ||
created_at?: Date; | ||
updated_at?: Date; | ||
[key: string]: any; | ||
declare module 'nis-media-uploader' { | ||
// Declare the props that your wrapper component accepts | ||
interface Media { | ||
originalName?: string; | ||
id?: string; | ||
mime: string; | ||
alt?: null; | ||
caption?: null; | ||
description?: null; | ||
filename: string; | ||
uri: string; | ||
url: string; | ||
filesize: string; | ||
created_at?: Date; | ||
updated_at?: Date; | ||
[key: string]: any; | ||
} | ||
interface MyFunctionalComponentWrapperProps { | ||
initialMedia?: Media[]; | ||
callback: (media: Media[]) => void; | ||
} | ||
// Define the functional component and its prop types | ||
const Wrapper: React.FC<MyFunctionalComponentWrapperProps>; | ||
// Export other types or components as needed | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Unpublished package
Supply chain riskPackage version was not found on the registry. It may exist on a different registry and need to be configured to pull from that registry.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 2 instances in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Unpopular package
QualityThis package is not very popular.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
533270
11
925
0
0
11
2