@synerise/ds-sortable 1.3.13 → 1.3.15
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/CHANGELOG.md +8 -0
- package/dist/Sortable.d.ts +2 -2
- package/dist/Sortable.js +32 -53
- package/dist/Sortable.styles.d.ts +5 -5
- package/dist/Sortable.styles.js +11 -10
- package/dist/Sortable.types.d.ts +5 -5
- package/dist/Sortable.types.js +1 -1
- package/dist/SortableContainer.d.ts +2 -2
- package/dist/SortableContainer.js +38 -50
- package/dist/SortableItem.d.ts +2 -2
- package/dist/SortableItem.js +36 -44
- package/dist/index.js +14 -5
- package/dist/modules.d.js +1 -1
- package/dist/modules.d.ts +0 -0
- package/package.json +9 -11
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [1.3.15](https://github.com/Synerise/synerise-design/compare/@synerise/ds-sortable@1.3.14...@synerise/ds-sortable@1.3.15) (2026-04-10)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @synerise/ds-sortable
|
|
9
|
+
|
|
10
|
+
## [1.3.14](https://github.com/Synerise/synerise-design/compare/@synerise/ds-sortable@1.3.13...@synerise/ds-sortable@1.3.14) (2026-03-24)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @synerise/ds-sortable
|
|
13
|
+
|
|
6
14
|
## [1.3.13](https://github.com/Synerise/synerise-design/compare/@synerise/ds-sortable@1.3.12...@synerise/ds-sortable@1.3.13) (2026-03-20)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @synerise/ds-sortable
|
package/dist/Sortable.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import {
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { BaseItem, SortableProps } from './Sortable.types';
|
|
3
3
|
export declare const Sortable: <ItemType extends BaseItem>({ items, onOrderChange, ItemComponent, axis, placeholderCss, }: SortableProps<ItemType>) => React.JSX.Element;
|
|
4
4
|
export default Sortable;
|
package/dist/Sortable.js
CHANGED
|
@@ -1,60 +1,39 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import { v4
|
|
4
|
-
import { DragOverlay } from
|
|
5
|
-
import { restrictToParentElement } from
|
|
6
|
-
import { SortableContainer } from
|
|
7
|
-
import { SortableItem } from
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
setActiveItem
|
|
20
|
-
var sortableId = useMemo(function () {
|
|
21
|
-
return uuid();
|
|
22
|
-
}, []);
|
|
23
|
-
var handleDragEnd = function handleDragEnd() {
|
|
24
|
-
setActiveItem(undefined);
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useState, useMemo, useEffect } from "react";
|
|
3
|
+
import { v4 } from "uuid";
|
|
4
|
+
import { DragOverlay } from "@dnd-kit/core";
|
|
5
|
+
import { restrictToParentElement } from "@dnd-kit/modifiers";
|
|
6
|
+
import { SortableContainer } from "./SortableContainer.js";
|
|
7
|
+
import { SortableItem } from "./SortableItem.js";
|
|
8
|
+
const Sortable = ({
|
|
9
|
+
items,
|
|
10
|
+
onOrderChange,
|
|
11
|
+
ItemComponent,
|
|
12
|
+
axis,
|
|
13
|
+
placeholderCss
|
|
14
|
+
}) => {
|
|
15
|
+
const [order, setOrder] = useState(items);
|
|
16
|
+
const [activeItem, setActiveItem] = useState();
|
|
17
|
+
const sortableId = useMemo(() => v4(), []);
|
|
18
|
+
const handleDragEnd = () => {
|
|
19
|
+
setActiveItem(void 0);
|
|
25
20
|
};
|
|
26
|
-
|
|
27
|
-
setActiveItem(items.find(
|
|
28
|
-
return item.id === event.active.id;
|
|
29
|
-
}));
|
|
21
|
+
const handleDragStart = (event) => {
|
|
22
|
+
setActiveItem(items.find((item) => item.id === event.active.id));
|
|
30
23
|
};
|
|
31
|
-
|
|
32
|
-
onOrderChange
|
|
24
|
+
const handleOrderChange = (newOrder) => {
|
|
25
|
+
onOrderChange?.(newOrder);
|
|
33
26
|
setOrder(newOrder);
|
|
34
27
|
};
|
|
35
|
-
useEffect(
|
|
28
|
+
useEffect(() => {
|
|
36
29
|
setOrder(items);
|
|
37
30
|
}, [items]);
|
|
38
|
-
return
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
id: item.id,
|
|
47
|
-
index: index,
|
|
48
|
-
placeholderCss: placeholderCss,
|
|
49
|
-
isDragged: activeItem && (activeItem == null ? void 0 : activeItem.id) === item.id,
|
|
50
|
-
key: "sortable-item-" + sortableId + "-" + item.id,
|
|
51
|
-
data: item,
|
|
52
|
-
component: ItemComponent
|
|
53
|
-
});
|
|
54
|
-
}), /*#__PURE__*/React.createElement(DragOverlay, {
|
|
55
|
-
modifiers: [restrictToParentElement]
|
|
56
|
-
}, activeItem && /*#__PURE__*/React.createElement(ItemComponent, _extends({}, activeItem, {
|
|
57
|
-
index: -1
|
|
58
|
-
}))));
|
|
31
|
+
return /* @__PURE__ */ jsxs(SortableContainer, { axis, items, onDragEnd: handleDragEnd, onDragStart: handleDragStart, onOrderChange: handleOrderChange, children: [
|
|
32
|
+
order.map((item, index) => /* @__PURE__ */ jsx(SortableItem, { id: item.id, index, placeholderCss, isDragged: activeItem && activeItem?.id === item.id, data: item, component: ItemComponent }, `sortable-item-${sortableId}-${item.id}`)),
|
|
33
|
+
/* @__PURE__ */ jsx(DragOverlay, { modifiers: [restrictToParentElement], children: activeItem && /* @__PURE__ */ jsx(ItemComponent, { ...activeItem, index: -1 }) })
|
|
34
|
+
] });
|
|
35
|
+
};
|
|
36
|
+
export {
|
|
37
|
+
Sortable,
|
|
38
|
+
Sortable as default
|
|
59
39
|
};
|
|
60
|
-
export default Sortable;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
export declare const SortableItemContent: import(
|
|
4
|
-
export declare const SortableItemWrapper: import(
|
|
1
|
+
import { Interpolation } from 'styled-components';
|
|
2
|
+
import { ThemeProps } from '@synerise/ds-core';
|
|
3
|
+
export declare const SortableItemContent: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
4
|
+
export declare const SortableItemWrapper: import('styled-components').StyledComponent<"div", any, {
|
|
5
5
|
isGrabbed: boolean;
|
|
6
6
|
isDragged: boolean;
|
|
7
7
|
placeholderCss?: Interpolation<ThemeProps>;
|
|
8
8
|
}, never>;
|
|
9
|
-
export declare const SortableItemHandle: import(
|
|
9
|
+
export declare const SortableItemHandle: import('styled-components').StyledComponent<"div", any, {}, never>;
|
package/dist/Sortable.styles.js
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import styled, { css } from
|
|
2
|
-
|
|
1
|
+
import styled, { css } from "styled-components";
|
|
2
|
+
const SortableItemContent = /* @__PURE__ */ styled.div.withConfig({
|
|
3
3
|
displayName: "Sortablestyles__SortableItemContent",
|
|
4
4
|
componentId: "sc-1ggkbms-0"
|
|
5
5
|
})([""]);
|
|
6
|
-
|
|
6
|
+
const SortableItemWrapper = /* @__PURE__ */ styled.div.withConfig({
|
|
7
7
|
displayName: "Sortablestyles__SortableItemWrapper",
|
|
8
8
|
componentId: "sc-1ggkbms-1"
|
|
9
|
-
})(["", " ", ""],
|
|
10
|
-
|
|
11
|
-
}, function (props) {
|
|
12
|
-
return props.isGrabbed && css(["", "{background:", ";box-shadow:0px 16px 32px 0px rgba(35,41,54,0.1);}"], SortableItemContent, props.theme.palette.white);
|
|
13
|
-
});
|
|
14
|
-
export var SortableItemHandle = styled.div.withConfig({
|
|
9
|
+
})(["", " ", ""], (props) => props.isDragged && css(["", "{visibility:hidden;opacity:0;poiner-events:none;}position:relative;&:before{content:'';position:absolute;width:100%;height:100%;border:1px dashed ", ";background-color:", ";border-radius:3px;", "}"], SortableItemContent, props.theme.palette["blue-300"], props.theme.palette["blue-050"], props.placeholderCss), (props) => props.isGrabbed && css(["", "{background:", ";box-shadow:0px 16px 32px 0px rgba(35,41,54,0.1);}"], SortableItemContent, props.theme.palette.white));
|
|
10
|
+
const SortableItemHandle = /* @__PURE__ */ styled.div.withConfig({
|
|
15
11
|
displayName: "Sortablestyles__SortableItemHandle",
|
|
16
12
|
componentId: "sc-1ggkbms-2"
|
|
17
|
-
})(["cursor:grab;"]);
|
|
13
|
+
})(["cursor:grab;"]);
|
|
14
|
+
export {
|
|
15
|
+
SortableItemContent,
|
|
16
|
+
SortableItemHandle,
|
|
17
|
+
SortableItemWrapper
|
|
18
|
+
};
|
package/dist/Sortable.types.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
1
|
+
import { ComponentType, ReactElement, ReactNode } from 'react';
|
|
2
|
+
import { Interpolation } from 'styled-components';
|
|
3
|
+
import { DndContextProps, DraggableAttributes, DraggableSyntheticListeners } from '@dnd-kit/core';
|
|
4
|
+
import { ThemeProps } from '@synerise/ds-core';
|
|
5
|
+
import { WithHTMLAttributes } from '@synerise/ds-utils';
|
|
6
6
|
export type DragHandlePropType = DraggableAttributes & DraggableSyntheticListeners;
|
|
7
7
|
export type RawBaseItem = {
|
|
8
8
|
id: string | number;
|
package/dist/Sortable.types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import {
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { RawBaseItem, SortableContainerProps } from './Sortable.types';
|
|
3
3
|
export declare const SortableContainer: <ItemType extends RawBaseItem>({ items, onOrderChange, onDragStart, onDragEnd, axis, children, ...props }: SortableContainerProps<ItemType>) => React.JSX.Element;
|
|
4
4
|
export default SortableContainer;
|
|
@@ -1,74 +1,62 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
order = _useState[0],
|
|
18
|
-
setOrder = _useState[1];
|
|
19
|
-
var sensors = useSensors(useSensor(MouseSensor), useSensor(PointerSensor), useSensor(KeyboardSensor, {
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useState, useEffect, useMemo } from "react";
|
|
3
|
+
import { useSensors, useSensor, MouseSensor, PointerSensor, KeyboardSensor, DndContext, closestCenter } from "@dnd-kit/core";
|
|
4
|
+
import { restrictToHorizontalAxis, restrictToVerticalAxis } from "@dnd-kit/modifiers";
|
|
5
|
+
import { sortableKeyboardCoordinates, horizontalListSortingStrategy, verticalListSortingStrategy, rectSortingStrategy, SortableContext, arrayMove } from "@dnd-kit/sortable";
|
|
6
|
+
const SortableContainer = ({
|
|
7
|
+
items,
|
|
8
|
+
onOrderChange,
|
|
9
|
+
onDragStart,
|
|
10
|
+
onDragEnd,
|
|
11
|
+
axis,
|
|
12
|
+
children,
|
|
13
|
+
...props
|
|
14
|
+
}) => {
|
|
15
|
+
const [order, setOrder] = useState(items);
|
|
16
|
+
const sensors = useSensors(useSensor(MouseSensor), useSensor(PointerSensor), useSensor(KeyboardSensor, {
|
|
20
17
|
coordinateGetter: sortableKeyboardCoordinates
|
|
21
18
|
}));
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
19
|
+
const handleDragEnd = (event) => {
|
|
20
|
+
const {
|
|
21
|
+
active,
|
|
22
|
+
over
|
|
23
|
+
} = event;
|
|
25
24
|
if (over && active.id !== over.id) {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
var newIndex = order.findIndex(function (item) {
|
|
30
|
-
return item.id === (over == null ? void 0 : over.id);
|
|
31
|
-
});
|
|
32
|
-
var updatedOrder = arrayMove(order, oldIndex, newIndex);
|
|
25
|
+
const oldIndex = order.findIndex((item) => item.id === active.id);
|
|
26
|
+
const newIndex = order.findIndex((item) => item.id === over?.id);
|
|
27
|
+
const updatedOrder = arrayMove(order, oldIndex, newIndex);
|
|
33
28
|
setOrder(updatedOrder);
|
|
34
|
-
onOrderChange
|
|
29
|
+
onOrderChange?.(updatedOrder);
|
|
35
30
|
}
|
|
36
31
|
onDragEnd && onDragEnd(event);
|
|
37
32
|
};
|
|
38
|
-
|
|
33
|
+
const handleDragStart = (event) => {
|
|
39
34
|
onDragStart && onDragStart(event);
|
|
40
35
|
};
|
|
41
|
-
useEffect(
|
|
36
|
+
useEffect(() => {
|
|
42
37
|
setOrder(items);
|
|
43
38
|
}, [items]);
|
|
44
|
-
|
|
45
|
-
if (axis ===
|
|
39
|
+
const contextModifiers = useMemo(() => {
|
|
40
|
+
if (axis === "x") {
|
|
46
41
|
return [restrictToHorizontalAxis];
|
|
47
42
|
}
|
|
48
|
-
if (axis ===
|
|
43
|
+
if (axis === "y") {
|
|
49
44
|
return [restrictToVerticalAxis];
|
|
50
45
|
}
|
|
51
46
|
return [];
|
|
52
47
|
}, [axis]);
|
|
53
|
-
|
|
54
|
-
if (axis ===
|
|
48
|
+
const sortingStrategy = useMemo(() => {
|
|
49
|
+
if (axis === "x") {
|
|
55
50
|
return horizontalListSortingStrategy;
|
|
56
51
|
}
|
|
57
|
-
if (axis ===
|
|
52
|
+
if (axis === "y") {
|
|
58
53
|
return verticalListSortingStrategy;
|
|
59
54
|
}
|
|
60
55
|
return rectSortingStrategy;
|
|
61
56
|
}, [axis]);
|
|
62
|
-
return
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
onDragEnd: handleDragEnd,
|
|
68
|
-
onDragStart: handleDragStart
|
|
69
|
-
}), /*#__PURE__*/React.createElement(SortableContext, {
|
|
70
|
-
items: order,
|
|
71
|
-
strategy: sortingStrategy
|
|
72
|
-
}, children));
|
|
57
|
+
return /* @__PURE__ */ jsx(DndContext, { sensors, collisionDetection: closestCenter, modifiers: contextModifiers, ...props, onDragEnd: handleDragEnd, onDragStart: handleDragStart, children: /* @__PURE__ */ jsx(SortableContext, { items: order, strategy: sortingStrategy, children }) });
|
|
58
|
+
};
|
|
59
|
+
export {
|
|
60
|
+
SortableContainer,
|
|
61
|
+
SortableContainer as default
|
|
73
62
|
};
|
|
74
|
-
export default SortableContainer;
|
package/dist/SortableItem.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import {
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { BaseItem, SortableItemProps } from './Sortable.types';
|
|
3
3
|
export declare const SortableItem: <ItemType extends BaseItem>({ id, data, index, isDragged, component: Component, style, placeholderCss, ...htmlAttributes }: SortableItemProps<ItemType>) => React.JSX.Element;
|
package/dist/SortableItem.js
CHANGED
|
@@ -1,46 +1,38 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
var itemStyle = _extends({}, style, {
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useSortable } from "@dnd-kit/sortable";
|
|
3
|
+
import { CSS } from "@dnd-kit/utilities";
|
|
4
|
+
import { SortableItemWrapper, SortableItemContent } from "./Sortable.styles.js";
|
|
5
|
+
const SortableItem = ({
|
|
6
|
+
id,
|
|
7
|
+
data,
|
|
8
|
+
index,
|
|
9
|
+
isDragged = false,
|
|
10
|
+
component: Component,
|
|
11
|
+
style,
|
|
12
|
+
placeholderCss,
|
|
13
|
+
...htmlAttributes
|
|
14
|
+
}) => {
|
|
15
|
+
const {
|
|
16
|
+
attributes,
|
|
17
|
+
listeners,
|
|
18
|
+
setNodeRef,
|
|
19
|
+
transform,
|
|
20
|
+
transition
|
|
21
|
+
} = useSortable({
|
|
22
|
+
id
|
|
23
|
+
});
|
|
24
|
+
const itemStyle = {
|
|
25
|
+
...style,
|
|
27
26
|
transform: CSS.Translate.toString(transform),
|
|
28
|
-
transition
|
|
27
|
+
transition,
|
|
29
28
|
opacity: 1
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}), /*#__PURE__*/React.createElement(S.SortableItemContent, null, /*#__PURE__*/React.createElement(Component, _extends({}, data, {
|
|
41
|
-
index: index,
|
|
42
|
-
dragHandleProps: handleProps,
|
|
43
|
-
isGrabbed: index === -1,
|
|
44
|
-
isDragged: isDragged
|
|
45
|
-
}))));
|
|
46
|
-
};
|
|
29
|
+
};
|
|
30
|
+
const handleProps = {
|
|
31
|
+
...attributes,
|
|
32
|
+
...listeners
|
|
33
|
+
};
|
|
34
|
+
return /* @__PURE__ */ jsx(SortableItemWrapper, { style: itemStyle, "data-testid": "ds-sortable-item", ...htmlAttributes, isGrabbed: index === -1, placeholderCss, isDragged, ref: setNodeRef, children: /* @__PURE__ */ jsx(SortableItemContent, { children: /* @__PURE__ */ jsx(Component, { ...data, index, dragHandleProps: handleProps, isGrabbed: index === -1, isDragged }) }) });
|
|
35
|
+
};
|
|
36
|
+
export {
|
|
37
|
+
SortableItem
|
|
38
|
+
};
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { DragOverlay, useDndMonitor } from "@dnd-kit/core";
|
|
2
|
+
import { arrayMove, useSortable } from "@dnd-kit/sortable";
|
|
3
|
+
import { CSS } from "@dnd-kit/utilities";
|
|
4
|
+
import { Sortable } from "./Sortable.js";
|
|
5
|
+
import { SortableContainer } from "./SortableContainer.js";
|
|
6
|
+
export {
|
|
7
|
+
CSS,
|
|
8
|
+
DragOverlay,
|
|
9
|
+
SortableContainer,
|
|
10
|
+
arrayMove,
|
|
11
|
+
Sortable as default,
|
|
12
|
+
useDndMonitor,
|
|
13
|
+
useSortable
|
|
14
|
+
};
|
package/dist/modules.d.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "@testing-library/jest-dom/extend-expect";
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-sortable",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.15",
|
|
4
4
|
"description": "Sortable UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "Synerise/synerise-design",
|
|
@@ -16,15 +16,12 @@
|
|
|
16
16
|
"access": "public"
|
|
17
17
|
},
|
|
18
18
|
"scripts": {
|
|
19
|
-
"build": "
|
|
20
|
-
"build:
|
|
21
|
-
"build:js": "babel --delete-dir-on-start --root-mode upward src --out-dir dist --extensions '.js,.ts,.tsx'",
|
|
22
|
-
"build:watch": "pnpm run build:js -- --watch",
|
|
23
|
-
"defs": "tsc --declaration --outDir dist/ --emitDeclarationOnly",
|
|
19
|
+
"build": "vite build",
|
|
20
|
+
"build:watch": "vite build --watch",
|
|
24
21
|
"pack:ci": "pnpm pack --pack-destination ../../storybook/storybook-static/static",
|
|
25
22
|
"prepublish": "pnpm run build",
|
|
26
|
-
"test": "
|
|
27
|
-
"test:watch": "
|
|
23
|
+
"test": "vitest run",
|
|
24
|
+
"test:watch": "vitest",
|
|
28
25
|
"types": "tsc --noEmit",
|
|
29
26
|
"check:circular-dependencies": "madge --circular --extensions ts,tsx,js,jsx --ts-config tsconfig.json src/ --exclude '/dist/'",
|
|
30
27
|
"upgrade:ds": "ncu -f \"@synerise/ds-*\" -u"
|
|
@@ -39,13 +36,14 @@
|
|
|
39
36
|
"@dnd-kit/modifiers": "^7.0.0",
|
|
40
37
|
"@dnd-kit/sortable": "^8.0.0",
|
|
41
38
|
"@dnd-kit/utilities": "^3.2.2",
|
|
42
|
-
"@synerise/ds-utils": "^1.
|
|
39
|
+
"@synerise/ds-utils": "^1.8.0",
|
|
43
40
|
"uuid": "^8.3.2"
|
|
44
41
|
},
|
|
45
42
|
"peerDependencies": {
|
|
46
43
|
"@synerise/ds-core": "*",
|
|
47
44
|
"react": ">=16.9.0 <= 18.3.1",
|
|
48
|
-
"styled-components": "^5.3.3"
|
|
45
|
+
"styled-components": "^5.3.3",
|
|
46
|
+
"vitest": "4"
|
|
49
47
|
},
|
|
50
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "ce3c6d75efe8573a2b274853636f959b75a6cd32"
|
|
51
49
|
}
|