fluid-dnd 1.3.1-beta.0 → 1.3.3-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
@@ -1,5 +1,6 @@
1
1
  <h1 align="center">
2
- <img src="https://github.com/carlosjorger/fluid-dnd/assets/50055316/dab15832-5290-42ca-b425-db177a2e589e" alt="Icon" width="150" height="140" />
2
+ <img src="public/fluid-dnd.svg"
3
+ alt="Icon" width="150" height="140" />
3
4
  <br>Fluid DnD<br>
4
5
  </h1>
5
6
 
@@ -57,9 +58,9 @@ library for lists with support for Vue, react and Svelte](https://fluid-dnd.netl
57
58
  - 📘 See others examples [here](https://fluid-dnd.netlify.app/example/vertical-list/single-vertical-list/).
58
59
 
59
60
  ## 📚 Libraries Support
60
- - Vue >=3.0.0
61
- - React >= 18.0.0
62
- - Svelte >= 5.0.0
61
+ - **Vue** >=3.0.0
62
+ - **React** >= 18.0.0
63
+ - **Svelte** >= 5.0.0
63
64
 
64
65
  ## 🤝 Contributing
65
66
 
@@ -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-Cm06gxy7.js";
4
+ import { a as h, t as n, G as t } from "./index-8zYdjZIf.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-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;
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-C37ab-rG.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,4 +1,4 @@
1
1
  import { ListCondig, Config } from '.';
2
2
  import { default as HandlerPublisher } from './HandlerPublisher';
3
3
 
4
- export default function dragAndDrop<T>(listCondig: ListCondig<T>, handlerPublisher: HandlerPublisher, config?: Config<T>, indexAttr?: string, reactChildrenChanges?: Boolean): readonly [(index: number) => void, (index: number, value: T) => void, (parent: HTMLElement | null | undefined) => void];
4
+ export default function dragAndDrop<T>(listCondig: ListCondig<T>, handlerPublisher: HandlerPublisher, config?: Config<T>, indexAttr?: string): readonly [(index: number) => void, (index: number, value: T) => void, (parent: HTMLElement | null | undefined) => MutationObserver | undefined];
@@ -0,0 +1,27 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!-- Generator: Adobe Illustrator 26.5.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
+ <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
4
+ viewBox="0 0 29.11 30.13" style="enable-background:new 0 0 29.11 30.13;" xml:space="preserve">
5
+ <style type="text/css">
6
+ .st0{fill:#00B4D8;}
7
+ .st1{fill:none;stroke:#00B4D8;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;}
8
+ </style>
9
+ <g>
10
+ <path class="st0" d="M28.15,15.78c0,0.5-0.07,0.96-0.15,1.34c-0.14,0.57-0.31,0.95-0.33,0.95c0.04-0.2,0.07-0.49,0.1-0.8
11
+ c0.15-1.87-0.19-3.76-1.03-5.47c-0.33-0.66-0.71-1.29-1.13-1.8c-1.67-2.05-4.1-3.22-6.67-3.22c-2.68,0-5.19,1.29-6.89,3.51
12
+ c-0.96,1.28-1.39,2.37-1.56,3.56c-0.11,0.61-0.94-1.29-2.46-1.61c-0.64-0.15-2.06,2.23-2.68,2.42C4.99,14.77,3.92,16.38,4,18.5
13
+ c0.1,2.35,2.2,5.65,1.93,6.6c-0.04,0.15-0.22,0.14-0.45,0c2.32,2.25,5.46,3.65,8.91,3.72c-4.56,0.15-8.52-2.1-10.85-5.59
14
+ c-0.08-0.12-0.18-0.24-0.26-0.37c-0.01-0.01-0.03-0.04-0.04-0.05c-0.18-0.26-0.33-0.53-0.48-0.81c-0.53-1.12-0.73-1.63-0.96-2.31
15
+ c-0.2-0.6-0.28-1-0.29-1.02c-0.01-0.03-0.03-0.12-0.05-0.24c-0.01-0.05-0.01-0.12-0.03-0.19c-0.01-0.05-0.01-0.1-0.03-0.15
16
+ c-0.04-0.33-0.1-0.71-0.14-0.94c0-0.04-0.01-0.08-0.01-0.11c0-0.05-0.01-0.1-0.01-0.11c0-0.01-0.01-0.04-0.01-0.08
17
+ c0-0.04-0.01-0.1-0.01-0.14c0-0.03-0.01-0.07-0.01-0.11c0-0.05-0.01-0.12-0.01-0.19s-0.01-0.14-0.01-0.22c0-0.01,0-0.01,0-0.03
18
+ c0-0.14-0.03-0.24-0.03-0.38v-0.34c0-7.5,6.04-13.61,13.49-13.61c6.37,0,11.72,4.48,13.12,10.48c0.05,0.2,0.11,0.42,0.14,0.62
19
+ C28.12,13.88,28.15,14.85,28.15,15.78z"/>
20
+ </g>
21
+ <path class="st1" d="M8.99,15.67l1.55-3.52c0.25-0.65,1.4-1.94,2.75-1.58c1.14,0.12,1.82,1.24,1.25,2.46l-0.48,1.56"/>
22
+ <path class="st1" d="M14.06,14.58l0.47-0.97c0.36-0.93,1.6-2.94,3.1-2.3c2.43,1.33,1.45,2.52,1.03,3.59l-0.74,1.39"/>
23
+ <path class="st1" d="M18.26,15.64c0.66-1.3,1.34-2.36,2.8-1.58c2.03,1.11,1.27,2.61,1.02,3.49l-0.4,0.78"/>
24
+ <path class="st1" d="M8.99,15.67c0,0,0.05-0.7,0.13-1.83c0.13-0.47,0.02-1.6-1.2-1.75C6.79,12.03,6.1,13.7,6,13.79
25
+ c-1.65,0.58-2.24,1.49-2.13,2.63c0.02,1.04-0.01,2.32-0.01,2.32c-0.19,1.11-0.31,2.8,1.71,5.47c0.02,0.02,2.33,3.19,7.12,3.79
26
+ c7.5,0.95,11.67-3.83,12.29-7.7c0.11-0.71,0.09-2.57-0.59-3.15c-0.66-0.64-1.51-0.47-2.03-0.06c-0.29,0.46-0.4,0.66-0.69,1.24"/>
27
+ </svg>
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-D1uENWRM.cjs");exports.dragAndDrop=e.dragAndDrop;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-C37ab-rG.cjs");exports.dragAndDrop=e.dragAndDrop;
@@ -1,4 +1,4 @@
1
- import { d as o } from "../index-Cm06gxy7.js";
1
+ import { d as o } from "../index-8zYdjZIf.js";
2
2
  export {
3
3
  o as dragAndDrop
4
4
  };