Socket
Socket
Sign inDemoInstall

@interactjs/actions

Package Overview
Dependencies
Maintainers
2
Versions
137
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@interactjs/actions - npm Package Compare versions

Comparing version 1.10.11 to 1.10.12

3

drag/index.js
/* eslint-disable import/order, no-console, eol-last */
import interact from "../../interact/index.js";
import interact from "../../interact/index.js"; // eslint-disable-next-line import/no-extraneous-dependencies
import plugin from "./plugin.js";
interact.use(plugin);
//# sourceMappingURL=index.js.map
import { BaseEvent } from "../../core/BaseEvent.js";
import * as arr from "../../utils/arr.js";
export class DropEvent extends BaseEvent {
dropzone;
dragEvent;
relatedTarget;
draggable;
propagationStopped = false;
immediatePropagationStopped = false;
/**
* Class of events fired on dropzones during drags with acceptable targets.
*/
constructor(dropState, dragEvent, type) {
super(dragEvent._interaction);
this.target = void 0;
this.dropzone = void 0;
this.dragEvent = void 0;
this.relatedTarget = void 0;
this.draggable = void 0;
this.timeStamp = void 0;
this.propagationStopped = false;
this.immediatePropagationStopped = false;
const {

@@ -18,0 +17,0 @@ element,

@@ -1,2 +0,2 @@

import{BaseEvent as t}from"../../core/BaseEvent.prod.js";import*as e from"../../utils/arr.prod.js";export class DropEvent extends t{constructor(t,e,o){super(e._interaction),this.target=void 0,this.dropzone=void 0,this.dragEvent=void 0,this.relatedTarget=void 0,this.draggable=void 0,this.timeStamp=void 0,this.propagationStopped=!1,this.immediatePropagationStopped=!1;const{element:r,dropzone:i}="dragleave"===o?t.prev:t.cur;this.type=o,this.target=r,this.currentTarget=r,this.dropzone=i,this.dragEvent=e,this.relatedTarget=e.target,this.draggable=e.interactable,this.timeStamp=e.timeStamp}reject(){const{dropState:t}=this._interaction;if("dropactivate"===this.type||this.dropzone&&t.cur.dropzone===this.dropzone&&t.cur.element===this.target)if(t.prev.dropzone=this.dropzone,t.prev.element=this.target,t.rejected=!0,t.events.enter=null,this.stopImmediatePropagation(),"dropactivate"===this.type){const o=t.activeDrops,r=e.findIndex(o,(({dropzone:t,element:e})=>t===this.dropzone&&e===this.target));t.activeDrops.splice(r,1);const i=new DropEvent(t,this.dragEvent,"dropdeactivate");i.dropzone=this.dropzone,i.target=this.target,this.dropzone.fire(i)}else this.dropzone.fire(new DropEvent(t,this.dragEvent,"dragleave"))}preventDefault(){}stopPropagation(){this.propagationStopped=!0}stopImmediatePropagation(){this.immediatePropagationStopped=this.propagationStopped=!0}}
import{BaseEvent as t}from"../../core/BaseEvent.prod.js";import*as e from"../../utils/arr.prod.js";export class DropEvent extends t{dropzone;dragEvent;relatedTarget;draggable;propagationStopped=!1;immediatePropagationStopped=!1;constructor(t,e,r){super(e._interaction);const{element:o,dropzone:a}="dragleave"===r?t.prev:t.cur;this.type=r,this.target=o,this.currentTarget=o,this.dropzone=a,this.dragEvent=e,this.relatedTarget=e.target,this.draggable=e.interactable,this.timeStamp=e.timeStamp}reject(){const{dropState:t}=this._interaction;if("dropactivate"===this.type||this.dropzone&&t.cur.dropzone===this.dropzone&&t.cur.element===this.target)if(t.prev.dropzone=this.dropzone,t.prev.element=this.target,t.rejected=!0,t.events.enter=null,this.stopImmediatePropagation(),"dropactivate"===this.type){const r=t.activeDrops,o=e.findIndex(r,(({dropzone:t,element:e})=>t===this.dropzone&&e===this.target));t.activeDrops.splice(o,1);const a=new DropEvent(t,this.dragEvent,"dropdeactivate");a.dropzone=this.dropzone,a.target=this.target,this.dropzone.fire(a)}else this.dropzone.fire(new DropEvent(t,this.dragEvent,"dragleave"))}preventDefault(){}stopPropagation(){this.propagationStopped=!0}stopImmediatePropagation(){this.immediatePropagationStopped=this.propagationStopped=!0}}
//# sourceMappingURL=DropEvent.prod.js.map
/* eslint-disable import/order, no-console, eol-last */
import interact from "../../interact/index.js";
import interact from "../../interact/index.js"; // eslint-disable-next-line import/no-extraneous-dependencies
import plugin from "./plugin.js";
interact.use(plugin);
//# sourceMappingURL=index.js.map
/* eslint-disable import/order, no-console, eol-last */
import interact from "../../interact/index.js";
import interact from "../../interact/index.js"; // eslint-disable-next-line import/no-extraneous-dependencies
import plugin from "./plugin.js";
interact.use(plugin);
//# sourceMappingURL=index.js.map
/* eslint-disable import/order, no-console, eol-last */
import interact from "../interact/index.js";
import interact from "../interact/index.js"; // eslint-disable-next-line import/no-extraneous-dependencies
import plugin from "./plugin.js";
interact.use(plugin);
//# sourceMappingURL=index.js.map
{
"name": "@interactjs/actions",
"version": "1.10.11",
"version": "1.10.12",
"main": "index",
"module": "index",
"repository": {
"type": "git",
"url": "https://github.com/taye/interact.js.git",
"directory": "packages/@interactjs/actions"
},
"peerDependencies": {
"@interactjs/core": "1.10.11",
"@interactjs/utils": "1.10.11"
"@interactjs/core": "1.10.12",
"@interactjs/utils": "1.10.12"
},
"optionalDependencies": {
"@interactjs/interact": "1.10.11"
"@interactjs/interact": "1.10.12"
},

@@ -13,0 +18,0 @@ "publishConfig": {

/* eslint-disable import/order, no-console, eol-last */
import interact from "../../interact/index.js";
import interact from "../../interact/index.js"; // eslint-disable-next-line import/no-extraneous-dependencies
import plugin from "./plugin.js";
interact.use(plugin);
//# sourceMappingURL=index.js.map

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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