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

@interactjs/types

Package Overview
Dependencies
Maintainers
2
Versions
129
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@interactjs/types - npm Package Compare versions

Comparing version 1.9.2 to 1.9.3

2

interactjs-test.min.js

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

import e from"../interactjs/index.min.js";e(document.body),e(document),e(window),e(".drag-and-resize").draggable({inertia:!0,modifiers:[e.modifiers.snap({targets:[{x:100,y:200},(e,r)=>({x:e%20,y:r}),e.snappers.grid({x:20,y:0})],offset:"startCoords",relativePoints:[{x:0,y:1}],endOnly:!0}),e.modifiers.snapSize({targets:[{x:100,y:200},(e,r)=>({x:e%20,y:r}),e.snappers.grid({width:100,height:500})],endOnly:!0}),e.modifiers.restrictRect({restriction:"parent",endOnly:!0}),e.modifiers.restrict({restriction:e=>({top:0,left:0,bottom:1,right:1})}),e.modifiers.restrict({restriction:e=>document.body}),e.modifiers.restrictSize({min:document.body,max:"parent"}),e.modifiers.restrictEdges({inner:document.body,outer:"parent"})]}).resizable({inertia:!0}),e("li",{context:document.querySelector("#my-list")}).draggable({});e("li").draggable({max:1,maxPerElement:2,manualStart:!0,modifiers:[],inertia:{},autoScroll:{},lockAxis:"x",startAxis:"x"}).resizable({max:1,maxPerElement:2,manualStart:!0,modifiers:[],inertia:{},autoScroll:{},margin:50,square:!0,axis:"x"}).gesturable({max:1,maxPerElement:2,manualStart:!0,modifiers:[]});e("li").draggable({autoScroll:!0}).resizable({autoScroll:{container:document.body,margin:50,distance:5,interval:10}}),e("li").draggable({startAxis:"x",lockAxis:"y"}).draggable({startAxis:"xy",lockAxis:"x"}),e("li").resizable({axis:"x"});function r(e){const{type:r,pageX:t,pageY:i}=e;alert({type:r,pageX:t,pageY:i})}e("li").resizable({edges:{top:!0,left:!1,bottom:".resize-s",right:"li"}}),e("li").resizable({edges:{bottom:!0,right:!0},invert:"reposition"}),e("li").resizable({squareResize:!0}),e("li").dropzone({accept:".drag0, .drag1"}),e("li").dropzone({overlap:.25}),e("li").dropzone({checker:(e,r,t,i,a,o,s)=>t&&!a.hasChildNodes()}),e.dynamicDrop(),e.dynamicDrop(!1),e("li").on("dragstart",r).on("dragmove dragend",r).on(["resizemove","resizeend"],r).on({gesturestart:r,gestureend:r}),e.on("resize",e=>{const{rect:r,deltaRect:t}=e;alert(JSON.stringify({rect:r,deltaRect:t}))}),e("li").resizable({listeners:[{start:r,move:r}]}),e("li").draggable({listeners:{start:r,end:r}}),e("li").draggable({onstart:r,onmove:r,onend:r}),e.on(["dragmove","resizestart"],r),e("li").devTools({ignore:{boxSizing:!0,touchAction:!0}});e("div").dropzone({ondrop(e){alert(e.relatedTarget.id+" was dropped into "+e.target.id)}}).on("dropactivate",e=>{e.target.classList.add("drop-activated")}),e("li").on("up",e=>{}),e("a[href]").on("tap",e=>{window.location.href=e.currentTarget.href,e.preventDefault()});
import e from"../interactjs/index.min.js";e(document.body),e(document),e(window),e(".drag-and-resize").draggable({inertia:!0,modifiers:[e.modifiers.snap({targets:[{x:100,y:200},(e,r)=>({x:e%20,y:r}),e.snappers.grid({x:20,y:0})],offset:"startCoords",relativePoints:[{x:0,y:1}],endOnly:!0}),e.modifiers.snapSize({targets:[{x:100,y:200},(e,r)=>({x:e%20,y:r}),e.snappers.grid({width:100,height:500})],endOnly:!0}),e.modifiers.restrictRect({restriction:"parent",endOnly:!0}),e.modifiers.restrict({restriction(e){return{top:0,left:0,bottom:1,right:1}}}),e.modifiers.restrict({restriction(e){return document.body}}),e.modifiers.restrictSize({min:document.body,max:"parent"}),e.modifiers.restrictEdges({inner:document.body,outer:"parent"})]}).resizable({inertia:!0}),e("li",{context:document.querySelector("#my-list")}).draggable({});e("li").draggable({max:1,maxPerElement:2,manualStart:!0,modifiers:[],inertia:{},autoScroll:{},lockAxis:"x",startAxis:"x"}).resizable({max:1,maxPerElement:2,manualStart:!0,modifiers:[],inertia:{},autoScroll:{},margin:50,square:!0,axis:"x"}).gesturable({max:1,maxPerElement:2,manualStart:!0,modifiers:[]});e("li").draggable({autoScroll:!0}).resizable({autoScroll:{container:document.body,margin:50,distance:5,interval:10}}),e("li").draggable({startAxis:"x",lockAxis:"y"}).draggable({startAxis:"xy",lockAxis:"x"}),e("li").resizable({axis:"x"});function r(e){const{type:r,pageX:t,pageY:i}=e;alert({type:r,pageX:t,pageY:i})}e("li").resizable({edges:{top:!0,left:!1,bottom:".resize-s",right:"li"}}),e("li").resizable({edges:{bottom:!0,right:!0},invert:"reposition"}),e("li").resizable({squareResize:!0}),e("li").dropzone({accept:".drag0, .drag1"}),e("li").dropzone({overlap:.25}),e("li").dropzone({checker:(e,r,t,i,a,o,n)=>t&&!a.hasChildNodes()}),e.dynamicDrop(),e.dynamicDrop(!1),e("li").on("dragstart",r).on("dragmove dragend",r).on(["resizemove","resizeend"],r).on({gesturestart:r,gestureend:r}),e.on("resize",e=>{const{rect:r,deltaRect:t}=e;alert(JSON.stringify({rect:r,deltaRect:t}))}),e("li").resizable({listeners:[{start:r,move:r}]}),e("li").draggable({listeners:{start:r,end:r}}),e("li").draggable({onstart:r,onmove:r,onend:r}),e.on(["dragmove","resizestart"],r),e("li").devTools({ignore:{boxSizing:!0,touchAction:!0}});e("div").dropzone({ondrop(e){alert(e.relatedTarget.id+" was dropped into "+e.target.id)}}).on("dropactivate",e=>{e.target.classList.add("drop-activated")}),e("li").on("up",e=>{}),e("a[href]").on("tap",e=>{window.location.href=e.currentTarget.href,e.preventDefault()});
//# sourceMappingURL=interactjs-test.min.js.map
{
"name": "@interactjs/types",
"version": "1.9.2",
"version": "1.9.3",
"license": "MIT",
"dependencies": {
"@interactjs/actions": "1.9.2",
"@interactjs/auto-scroll": "1.9.2",
"@interactjs/auto-start": "1.9.2",
"@interactjs/core": "1.9.2",
"@interactjs/dev-tools": "1.9.2",
"@interactjs/inertia": "1.9.2",
"@interactjs/interact": "1.9.2",
"@interactjs/modifiers": "1.9.2",
"@interactjs/pointer-events": "1.9.2",
"@interactjs/reflow": "1.9.2",
"@interactjs/utils": "1.9.2"
"@interactjs/actions": "1.9.3",
"@interactjs/auto-scroll": "1.9.3",
"@interactjs/auto-start": "1.9.3",
"@interactjs/core": "1.9.3",
"@interactjs/dev-tools": "1.9.3",
"@interactjs/inertia": "1.9.3",
"@interactjs/interact": "1.9.3",
"@interactjs/modifiers": "1.9.3",
"@interactjs/pointer-events": "1.9.3",
"@interactjs/reflow": "1.9.3",
"@interactjs/utils": "1.9.3"
},
"devDependencies": {
"@interactjs/_dev": "1.9.2"
"@interactjs/_dev": "1.9.3"
},

@@ -24,3 +24,3 @@ "publishConfig": {

},
"gitHead": "77b581be"
"gitHead": "2032dde4"
}

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