New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@rpldy/upload-button

Package Overview
Dependencies
Maintainers
1
Versions
112
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rpldy/upload-button - npm Package Compare versions

Comparing version 0.18.2 to 0.18.3

14

package.json
{
"version": "0.18.2",
"version": "0.18.3",
"name": "@rpldy/upload-button",

@@ -11,3 +11,3 @@ "description": "upload button component and asUploadButton HOC",

"license": "MIT",
"homepage": "https://react-uploady.netlify.app",
"homepage": "https://react-uploady.org",
"repository": {

@@ -35,8 +35,8 @@ "type": "git",

"dependencies": {
"@rpldy/shared-ui": "^0.18.2"
"@rpldy/shared-ui": "^0.18.3"
},
"devDependencies": {
"@rpldy/retry": "^0.18.2",
"@rpldy/uploady": "^0.18.2",
"flow-bin": "^0.169.0",
"@rpldy/retry": "^0.18.3",
"@rpldy/uploady": "^0.18.3",
"flow-bin": "^0.176.3",
"styled-components": "^5.3.3"

@@ -51,3 +51,3 @@ },

},
"gitHead": "1b59f14592fd230af27d18624ab493ea3a3d3ba6"
"gitHead": "b2a161530aae8052c183aef1489ef03421e51c79"
}

@@ -22,3 +22,3 @@ <a href="https://badge.fury.io/js/%40rpldy%2Fupload-button">

**The best place to get started is at our: [React-Uploady Documentation Website](https://react-uploady.netlify.app)**
**The best place to get started is at our: [React-Uploady Documentation Website](https://react-uploady.org)**

@@ -45,3 +45,3 @@ ## Installation

| ref | React ref | undefined | will be passed to the button element to acquire a ref |
| onClick | EventHandler | undefined | function to handle button click (called after showing the system's file selection dialog) |
| onClick | MouseEventHandler | undefined | function to handle button click (called after showing the system's file selection dialog) |

@@ -48,0 +48,0 @@ In addition, most [UploadOptions](../../core/shared/src/types.js#L104) props can be passed to UploadButton.

import * as React from "react";
import { UploadOptions } from "@rpldy/shared";
export interface ButtonProps {
export interface ButtonProps<E = Element> {
className?: string;

@@ -11,11 +11,12 @@ id?: string;

ref?: React.RefObject<any>;
onClick?: React.MouseEventHandler<E>
}
export interface UploadButtonProps extends ButtonProps, UploadOptions {}
export interface UploadButtonProps<E = Element> extends ButtonProps<E>, UploadOptions {}
export const UploadButton: React.ComponentType<React.PropsWithRef<UploadButtonProps>>;
export const UploadButton: React.ComponentType<React.PropsWithRef<UploadButtonProps<HTMLButtonElement>>>;
export const asUploadButton:
<T>(component: React.ForwardRefExoticComponent<T> | React.ComponentType<T>) => React.FC<UploadButtonProps>;
<T, E = Element>(component: React.ForwardRefExoticComponent<T> | React.ComponentType<T>) => React.FC<UploadButtonProps<E>>;
export default UploadButton;

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc