planning
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 35s

This commit is contained in:
2024-10-14 09:15:30 +02:00
parent bcba00a730
commit 6e64e138e2
21059 changed files with 2317811 additions and 1 deletions

View File

@@ -0,0 +1,4 @@
/**
* Move an array item to a different position. Returns a new array with the item moved to the new position.
*/
export declare function arrayMove<T>(array: T[], from: number, to: number): T[];

View File

@@ -0,0 +1,4 @@
/**
* Swap an array item to a different position. Returns a new array with the item swapped to the new position.
*/
export declare function arraySwap<T>(array: T[], from: number, to: number): T[];

View File

@@ -0,0 +1,2 @@
import type { ClientRect, UniqueIdentifier, UseDndContextReturnValue } from '@dnd-kit/core';
export declare function getSortedRects(items: UniqueIdentifier[], rects: UseDndContextReturnValue['droppableRects']): ClientRect[];

View File

@@ -0,0 +1,6 @@
export { arrayMove } from './arrayMove';
export { arraySwap } from './arraySwap';
export { getSortedRects } from './getSortedRects';
export { isValidIndex } from './isValidIndex';
export { itemsEqual } from './itemsEqual';
export { normalizeDisabled } from './normalizeDisabled';

View File

@@ -0,0 +1 @@
export declare function isValidIndex(index: number | null): index is number;

View File

@@ -0,0 +1,2 @@
import type { UniqueIdentifier } from '@dnd-kit/core';
export declare function itemsEqual(a: UniqueIdentifier[], b: UniqueIdentifier[]): boolean;

View File

@@ -0,0 +1,2 @@
import type { Disabled } from '../types';
export declare function normalizeDisabled(disabled: boolean | Disabled): Disabled;