@vue-dnd-kit/core 1.1.4 → 1.1.6

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
@@ -3,8 +3,8 @@
3
3
  [![Release](https://img.shields.io/badge/status-release-green.svg)](https://github.com/zizigy/vue-dnd-kit)
4
4
 
5
5
  <p align="center">
6
- <a href="https://zizigy.github.io/vue-dnd-hooks/">
7
- <img src="https://raw.githubusercontent.com/ZiZiGY/vue-dnd-hooks/master/public/logo.svg" width="400" alt="Vue Drag & Drop Logo">
6
+ <a href="https://zizigy.github.io/vue-dnd-kit/">
7
+ <img src="https://raw.githubusercontent.com/ZiZiGY/vue-dnd-kit/master/public/logo.svg" width="400" alt="Vue Drag & Drop Logo">
8
8
  </a>
9
9
  </p>
10
10
 
@@ -13,7 +13,7 @@
13
13
  </p>
14
14
 
15
15
  <p align="center">
16
- <a href="https://zizigy.github.io/vue-dnd-hooks/" target="_blank">
16
+ <a href="https://zizigy.github.io/vue-dnd-kit/" target="_blank">
17
17
  <img src="https://img.shields.io/badge/Documentation-Visit-blue?style=flat-square" alt="Documentation">
18
18
  </a>
19
19
  </p>
package/dist/index.d.ts CHANGED
@@ -9,8 +9,7 @@ import { DebuggerEvent } from 'vue';
9
9
  import { Directive } from 'vue';
10
10
  import { FunctionalComponent } from 'vue';
11
11
  import { IActiveContainer } from './types';
12
- import { IBoundingBox } from './types';
13
- import { IBoundingBox as IBoundingBox_2 } from '../types';
12
+ import { IBoundingBox } from '../types';
14
13
  import { IDnDStore } from './types';
15
14
  import { IDnDStore as IDnDStore_2 } from '../types';
16
15
  import { IDragElement } from './types';
@@ -19,8 +18,7 @@ import { IDraggingElement } from './types';
19
18
  import { IDraggingElement as IDraggingElement_2 } from '../types';
20
19
  import { IDropZone } from './types';
21
20
  import { IDropZone as IDropZone_2 } from '../types';
22
- import { IPoint } from './types';
23
- import { IPoint as IPoint_2 } from '../types';
21
+ import { IPoint } from '../types';
24
22
  import { IUseDragOptions } from '../types';
25
23
  import { IUseDropOptions } from '../types';
26
24
  import { LooseRequired } from '@vue/shared';
@@ -44,12 +42,10 @@ export declare class DnDOperations {
44
42
  static applyInsert: (store: IDnDStore_2, items: any[]) => void;
45
43
  }
46
44
 
47
- export declare const getBoundingBox: (element: HTMLElement | null) => IBoundingBox_2;
45
+ export declare const getBoundingBox: (element: HTMLElement | null) => IBoundingBox;
48
46
 
49
47
  export { IActiveContainer }
50
48
 
51
- export { IBoundingBox }
52
-
53
49
  export { IDnDStore }
54
50
 
55
51
  export { IDragElement }
@@ -58,8 +54,6 @@ export { IDraggingElement }
58
54
 
59
55
  export { IDropZone }
60
56
 
61
- export { IPoint }
62
-
63
57
  export declare const useDnDStore: () => {
64
58
  draggingElements: Ref<Map<HTMLElement | Element, {
65
59
  initialHTML: string;
@@ -1876,11 +1870,11 @@ export declare const useDnDStore: () => {
1876
1870
  visibleZones: Ref<Set<HTMLElement | Element> & Omit<Set<HTMLElement | Element>, keyof Set<any>>, Set<HTMLElement | Element> | (Set<HTMLElement | Element> & Omit<Set<HTMLElement | Element>, keyof Set<any>>)>;
1877
1871
  visibleElements: Ref<Set<HTMLElement | Element> & Omit<Set<HTMLElement | Element>, keyof Set<any>>, Set<HTMLElement | Element> | (Set<HTMLElement | Element> & Omit<Set<HTMLElement | Element>, keyof Set<any>>)>;
1878
1872
  pointerPosition: {
1879
- start: ShallowRef<IPoint_2 | null, IPoint_2 | null>;
1880
- current: ShallowRef<IPoint_2 | null, IPoint_2 | null>;
1873
+ start: ShallowRef<IPoint | null, IPoint | null>;
1874
+ current: ShallowRef<IPoint | null, IPoint | null>;
1881
1875
  offset: {
1882
- percent: ShallowRef<IPoint_2 | null, IPoint_2 | null>;
1883
- pixel: ShallowRef<IPoint_2 | null, IPoint_2 | null>;
1876
+ percent: ShallowRef<IPoint | null, IPoint | null>;
1877
+ pixel: ShallowRef<IPoint | null, IPoint | null>;
1884
1878
  };
1885
1879
  };
1886
1880
  keyboard: {
@@ -2449,11 +2443,11 @@ export declare const useDragContainer: () => {
2449
2443
 
2450
2444
  export declare const useDraggable: (options?: IUseDragOptions) => {
2451
2445
  pointerPosition: {
2452
- start: ShallowRef< IPoint_2 | null, IPoint_2 | null>;
2453
- current: ShallowRef< IPoint_2 | null, IPoint_2 | null>;
2446
+ start: ShallowRef< IPoint | null, IPoint | null>;
2447
+ current: ShallowRef< IPoint | null, IPoint | null>;
2454
2448
  offset: {
2455
- percent: ShallowRef< IPoint_2 | null, IPoint_2 | null>;
2456
- pixel: ShallowRef< IPoint_2 | null, IPoint_2 | null>;
2449
+ percent: ShallowRef< IPoint | null, IPoint | null>;
2450
+ pixel: ShallowRef< IPoint | null, IPoint | null>;
2457
2451
  };
2458
2452
  };
2459
2453
  elementRef: Ref<HTMLElement | null, HTMLElement | null>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vue-dnd-kit/core",
3
- "version": "1.1.4",
3
+ "version": "1.1.6",
4
4
  "description": "Core functionality for Vue DnD Kit - a lightweight Vue 3 library for building performant and accessible drag and drop interfaces",
5
5
  "author": "ZiZIGY",
6
6
  "license": "MIT",