Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@uppy/dashboard

Package Overview
Dependencies
Maintainers
6
Versions
140
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uppy/dashboard - npm Package Compare versions

Comparing version 3.5.2 to 3.5.3

7

CHANGELOG.md
# @uppy/dashboard
## 3.5.3
Released: 2023-09-18
Included in: Uppy v3.16.0
- @uppy/dashboard: Make file-editor:cancel event fire when the Image Editor “cancel” button is pressed (Artur Paikin / #4684)
## 3.5.2

@@ -4,0 +11,0 @@

6

lib/components/EditorPanel.js

@@ -5,2 +5,6 @@ import { h } from 'preact';

const file = props.files[props.fileCardFor];
const handleCancel = () => {
props.uppy.emit('file-editor:cancel', file);
props.hideAllPanels();
};
return h("div", {

@@ -24,3 +28,3 @@ className: classNames('uppy-DashboardContent-panel', props.className),

type: "button",
onClick: props.hideAllPanels
onClick: handleCancel
}, props.i18n('cancel')), h("button", {

@@ -27,0 +31,0 @@ className: "uppy-DashboardContent-save",

2

lib/components/FileCard/index.js

@@ -12,3 +12,2 @@ import { h } from 'preact';

const {
uppy,
files,

@@ -49,3 +48,2 @@ fileCardFor,

const handleCancel = () => {
uppy.emit('file-editor:cancel', file);
toggleFileCard(false);

@@ -52,0 +50,0 @@ };

@@ -18,3 +18,3 @@ function _classPrivateFieldLooseBase(receiver, privateKey) { if (!Object.prototype.hasOwnProperty.call(receiver, privateKey)) { throw new TypeError("attempted to use private field on non-instance"); } return receiver; }

const packageJson = {
"version": "3.5.2"
"version": "3.5.3"
};

@@ -21,0 +21,0 @@ import locale from './locale.js';

{
"name": "@uppy/dashboard",
"description": "Universal UI plugin for Uppy.",
"version": "3.5.2",
"version": "3.5.3",
"license": "MIT",

@@ -6,0 +6,0 @@ "main": "lib/index.js",

@@ -7,2 +7,7 @@ import { h } from 'preact'

const handleCancel = () => {
props.uppy.emit('file-editor:cancel', file)
props.hideAllPanels()
}
return (

@@ -24,3 +29,3 @@ <div

type="button"
onClick={props.hideAllPanels}
onClick={handleCancel}
>

@@ -27,0 +32,0 @@ {props.i18n('cancel')}

@@ -12,3 +12,2 @@ import { h } from 'preact'

const {
uppy,
files,

@@ -57,3 +56,2 @@ fileCardFor,

const handleCancel = () => {
uppy.emit('file-editor:cancel', file)
toggleFileCard(false)

@@ -60,0 +58,0 @@ }

Sorry, the diff of this file is not supported yet

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