@uppy/dashboard
Advanced tools
Comparing version 3.5.2 to 3.5.3
# @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 @@ |
@@ -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", |
@@ -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
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
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
678901
9698