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

dragselect

Package Overview
Dependencies
Maintainers
1
Versions
97
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dragselect - npm Package Compare versions

Comparing version 3.0.4 to 3.0.5

4

CHANGELOG.md

@@ -0,1 +1,5 @@

# 3.0.5
- Fix type issue during build bug [#212](https://github.com/ThibaultJanBeyer/DragSelect/issues/212)
# 3.0.4

@@ -2,0 +6,0 @@

10

dist/DragSelect.d.ts

@@ -106,3 +106,2 @@ type DSDropZone<E extends DSInputElement> = {

type DSPublicPublishEventNames<E extends DSInputElement> = keyof DSPublicPublish<E>;
type DSPublicPublishAdditionalEventData<E extends DSInputElement> = {

@@ -444,3 +443,2 @@ /** The dropZone element that the element was dropped into (or the mouse is currently hovering over) */

type DSInternalEventName = DSSettingsPublishEventNames | DSAreaPublishEventNames | DSKeyStorePublishEventNames | DSPointerStorePublishEventNames | DSInteractionPublishEventNames | DSSelectablePublishEventNames | DSSelectedPublishEventNames;
type DSCallbackName<E extends DSInputElement> = DSPublicPublishEventNames<E> | DSInternalEventName;
type DSBoundingRectBase = {

@@ -512,3 +510,3 @@ top: number;

*/
unsubscribe: <K extends DSSettingsPublishEventNames | DSKeyStorePublishEventNames | DSPointerStorePublishEventNames | DSSelectedPublishEventNames | keyof DSAreaPublish<E> | keyof DSInteractionPublish | keyof DSSelectablePublish<E> | keyof DSPublicPublish<E>>(eventName: K, callback?: DSCallback<DSPublishMappings<E>[K]> | undefined, id?: number) => void;
unsubscribe: <K extends DSSettingsPublishEventNames | DSKeyStorePublishEventNames | DSPointerStorePublishEventNames | DSSelectedPublishEventNames | keyof DSAreaPublish<E> | keyof DSInteractionPublish | keyof DSSelectablePublish<E> | keyof DSPublicPublish<E>>(eventName: K, callback?: DSCallback<DSPublishMappings<E>[K]> | null | undefined, id?: number) => void;
/**

@@ -743,3 +741,3 @@ * Publishes an event to all subscribers

declare class DragSelect<E extends DSInputElement> {
declare class DragSelect<E extends DSInputElement = DSInputElement> {
/** used to skip all current Selection and dragNdrop functionality */

@@ -771,3 +769,3 @@ continue: boolean;

/** Publish events */
publish: <T extends DSCallbackName<E_1>>(eventName: T | T[], data: DSPublishMappings<E>[T]) => void;
publish: <T extends keyof DSPublicPublish<E> | DSInternalEventName>(eventName: T | T[], data: DSPublishMappings<E>[T]) => void;
/** Initializes the functionality. Automatically triggered when created. Also, reset the functionality after a teardown */

@@ -882,2 +880,2 @@ start: () => void;

export { type DSArea, type DSBoundingRect, type DSBoundingRectBase, type DSCallbackName, type DSCallbackObject, type DSDragKeys, type DSEdges, type DSEdgesObj, type DSElementPos, type DSEvent, type DSInputDropZone, type DSInputElement, type DSInternalEventName, type DSMultiSelectKeys, type DSPubCallback, type DSSelectorArea, type Settings, type Vect2, DragSelect as default };
export { type DSArea, type DSBoundingRect, type DSBoundingRectBase, type DSCallbackObject, type DSDragKeys, type DSEdges, type DSEdgesObj, type DSElementPos, type DSEvent, type DSInputDropZone, type DSInputElement, type DSInternalEventName, type DSMultiSelectKeys, type DSPubCallback, type DSSelectorArea, type Settings, type Vect2, DragSelect as default };
{
"name": "dragselect",
"version": "3.0.4",
"version": "3.0.5",
"description": "Easy JavaScript library for selecting and moving elements. With no dependencies. Drag-Select & Drag-And-Drop.",

@@ -5,0 +5,0 @@ "main": "./dist/DragSelect.js",

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