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

drag-drop-stage-component

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

drag-drop-stage-component - npm Package Compare versions

Comparing version 1.0.10 to 1.0.11

2

package.json
{
"name": "drag-drop-stage-component",
"version": "1.0.10",
"version": "1.0.11",
"description": "A component to \"drag'n drop\"-enable your projects, maintained and simple, light on dependencies",

@@ -5,0 +5,0 @@ "main": "src/ts/index.ts",

@@ -41,10 +41,10 @@ define(["require", "exports", "./utils/Events", "./flux/UiState", "./flux/SelectionState", "./Types", "./flux/SelectableState"], function (require, exports, Events_1, UiState_1, SelectionState_1, Types_1, SelectableState_1) {

break;
case 'Tab':
if (this.store.getState().ui.mode === Types_1.UiMode.HIDE) {
this.store.dispatch(UiState_1.setMode(Types_1.UiMode.NONE));
}
else {
this.store.dispatch(UiState_1.setMode(Types_1.UiMode.HIDE));
}
break;
// case 'Tab':
// if(this.store.getState().ui.mode === UiMode.HIDE) {
// this.store.dispatch(setMode(UiMode.NONE));
// }
// else {
// this.store.dispatch(setMode(UiMode.HIDE));
// }
// break;
case 'ArrowLeft':

@@ -82,2 +82,2 @@ this.move(-this.getDistance(e), 0);

});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiS2V5Ym9hcmQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvdHMvS2V5Ym9hcmQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0lBT0EsTUFBTSxhQUFhLEdBQUcsQ0FBQyxDQUFDO0lBQ3hCLE1BQU0sbUJBQW1CLEdBQUcsQ0FBQyxDQUFDO0lBQzlCLE1BQU0saUJBQWlCLEdBQUcsRUFBRSxDQUFDO0lBRTdCLE1BQWEsUUFBUTtRQUNuQixZQUFvQixHQUFXLEVBQVUs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RSxVQUFVLENBQUMsT0FBTyxDQUFDLGlCQUFpQixDQUFDLE1BQU0sR0FBRyxTQUFTLEVBQy9ELEtBQUssRUFBRSxVQUFVLENBQUMsT0FBTyxDQUFDLGlCQUFpQixDQUFDLEtBQUssR0FBRyxTQUFTLFVBR2pFLENBQUMsQ0FDSixDQUFDLENBQUM7UUFDTCxDQUFDO0tBQ0Y7SUE5RkQsNEJBOEZDIn0=

@@ -48,10 +48,10 @@ import { StageStore } from './flux/StageStore';

break;
case 'Tab':
if(this.store.getState().ui.mode === UiMode.HIDE) {
this.store.dispatch(setMode(UiMode.NONE));
}
else {
this.store.dispatch(setMode(UiMode.HIDE));
}
break;
// case 'Tab':
// if(this.store.getState().ui.mode === UiMode.HIDE) {
// this.store.dispatch(setMode(UiMode.NONE));
// }
// else {
// this.store.dispatch(setMode(UiMode.HIDE));
// }
// break;
case 'ArrowLeft':

@@ -58,0 +58,0 @@ this.move(-this.getDistance(e), 0);

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