fluid-dnd 1.3.0-beta.0 → 1.3.1-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -68,3 +68,4 @@ If you're interested in contributing to [fluid-dnd](https://github.com/carlosjor
68
68
  ## 🔑 License
69
69
 
70
70
  - [MIT](https://github.com/carlosjorger/fluid-dnd/blob/main/LICENSE).
71
+ <!-- TODO: all tes project inside test folder-->
@@ -1,7 +1,7 @@
1
1
  var d = Object.defineProperty;
2
2
  var e = (a, s, l) => s in a ? d(a, s, { enumerable: !0, configurable: !0, writable: !0, value: l }) : a[s] = l;
3
3
  var r = (a, s, l) => e(a, typeof s != "symbol" ? s + "" : s, l);
4
- import { a as h, t as n, G as t } from "./index-DFUAc_q_.js";
4
+ import { a as h, t as n, G as t } from "./index-Cm06gxy7.js";
5
5
  class c {
6
6
  constructor() {
7
7
  r(this, "handlers");
@@ -1 +1 @@
1
- "use strict";var d=Object.defineProperty;var n=(e,s,l)=>s in e?d(e,s,{enumerable:!0,configurable:!0,writable:!0,value:l}):e[s]=l;var a=(e,s,l)=>n(e,typeof s!="symbol"?s+"":s,l);const r=require("./index-D7zMRS0J.cjs");class h{constructor(){a(this,"handlers");this.handlers=[]}addSubscriber(s){this.handlers.includes(s)||(this.handlers.push(s),r.addClass(s,r.GRAB_CLASS))}toggleGrabClass(s){for(const l of this.handlers)r.toggleClass(l,r.GRAB_CLASS,s)}}exports.HandlerPublisher=h;
1
+ "use strict";var d=Object.defineProperty;var n=(e,s,l)=>s in e?d(e,s,{enumerable:!0,configurable:!0,writable:!0,value:l}):e[s]=l;var a=(e,s,l)=>n(e,typeof s!="symbol"?s+"":s,l);const r=require("./index-D1uENWRM.cjs");class h{constructor(){a(this,"handlers");this.handlers=[]}addSubscriber(s){this.handlers.includes(s)||(this.handlers.push(s),r.addClass(s,r.GRAB_CLASS))}toggleGrabClass(s){for(const l of this.handlers)r.toggleClass(l,r.GRAB_CLASS,s)}}exports.HandlerPublisher=h;
@@ -7,10 +7,11 @@ type TouchEventType = "touchstart" | "touchmove" | "touchend";
7
7
  declare const mouseEvents: readonly ["mouseup", "mousedown", "mousemove"];
8
8
  type MouseEventType = (typeof mouseEvents)[number];
9
9
  type DragEventCallback = (event: DragMouseTouchEvent) => void;
10
+ type TouchEventCallback = (event: TouchEvent) => void;
10
11
  export declare const setSizeStyles: (element: HTMLElement | undefined | null, height: number, width: number) => void;
11
12
  export declare const fixSizeStyle: (element: HTMLElement | undefined | null) => void;
12
13
  export declare const moveTranslate: (element: Element | undefined | null, height: number, width: number) => void;
13
- export declare const assignDraggingEvent: (element: HTMLElement, onEvent: onMouseEvent | onTouchEvent, callback: DragEventCallback | null) => void;
14
+ export declare const assignDraggingEvent: (element: HTMLElement, onEvent: onMouseEvent | onTouchEvent, callback: DragEventCallback | null, touchCallback?: TouchEventCallback) => void;
14
15
  export declare const addDragMouseToucEventListener: (event: TouchEventType | MouseEventType, callback: DragEventCallback | null) => void;
15
16
  export declare const convetEventToDragMouseTouchEvent: (event: MouseEvent | TouchEvent) => DragMouseTouchEvent;
16
17
  export declare const setTranistion: (element: Element | undefined, duration: number, timingFunction?: string, types?: string) => void;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-D7zMRS0J.cjs");exports.dragAndDrop=e.dragAndDrop;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-D1uENWRM.cjs");exports.dragAndDrop=e.dragAndDrop;
@@ -1,4 +1,4 @@
1
- import { d as o } from "../index-DFUAc_q_.js";
1
+ import { d as o } from "../index-Cm06gxy7.js";
2
2
  export {
3
3
  o as dragAndDrop
4
4
  };