zs_library 0.9.1 → 0.9.3

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.
@@ -1,9 +1,10 @@
1
- import { SortItem } from '../types';
1
+ import { SortItem, MenuItemConfig } from '../types';
2
2
  export interface ContextMenuProps<D, C> {
3
3
  showShareButton?: boolean;
4
4
  showInfoButton?: boolean;
5
5
  showRemoveButton?: boolean;
6
6
  showSizeButton?: boolean;
7
+ menuItems?: MenuItemConfig[];
7
8
  onShareClick?: (item: SortItem<D, C>) => void;
8
9
  onInfoClick?: (item: SortItem<D, C>) => void;
9
10
  onRemoveClick?: (item: SortItem<D, C>, remove: (id: string) => void) => void;
@@ -1,86 +1,68 @@
1
1
  import { default as React } from 'react';
2
- import { ComponentRegistry, ContextMenuActionPayload, ContextMenuData, DesktopDndContextMenuProps, DndSortItem, DndPageItem, DragState, FolderModalState, SortItemUserConfig, TypeConfigMap, DataTypeMenuConfigMap, PageTransition } from './types';
2
+ import { ComponentRegistry, ContextMenuActionPayload, DesktopDndContextMenuProps, DndSortItem, DndPageItem, TypeConfigMap, DataTypeMenuConfigMap, PageTransition } from './types';
3
3
  import { Theme } from './themes';
4
- interface DesktopDndContextValue {
5
- pages: DndPageItem[];
6
- setPages: (pages: DndPageItem[]) => void;
7
- currentPage: number;
8
- setCurrentPage: (page: number) => void;
9
- dragState: DragState;
10
- setDragState: React.Dispatch<React.SetStateAction<DragState>>;
11
- pointerPositionRef: React.MutableRefObject<{
12
- x: number;
13
- y: number;
14
- } | null>;
15
- containerRef: React.RefObject<HTMLDivElement | null>;
16
- folderModal: FolderModalState;
17
- setFolderModal: React.Dispatch<React.SetStateAction<FolderModalState>>;
18
- contextMenu: ContextMenuData | null;
19
- setContextMenu: React.Dispatch<React.SetStateAction<ContextMenuData | null>>;
20
- hideContextMenu: () => void;
21
- iconSize: number;
22
- maxPages: number;
23
- mergeDwellTime: number;
24
- typeConfigMap?: TypeConfigMap;
25
- dataTypeMenuConfigMap?: DataTypeMenuConfigMap;
26
- onRemoveClick?: (item: DndSortItem) => void;
27
- onContextMenuItemClick?: (item: DndSortItem, payload: ContextMenuActionPayload) => void;
28
- contextMenuProps?: DesktopDndContextMenuProps;
29
- theme: Theme;
30
- noLetters?: boolean;
31
- itemBuilder?: (item: DndSortItem, index: number) => React.ReactNode | null;
32
- itemBuilderAllowNull?: boolean;
33
- itemIconBuilder?: (item: DndSortItem) => React.ReactNode;
34
- itemIconBuilderAllowNull?: boolean;
35
- pagingDotBuilder?: (index: number, isActive: boolean) => React.ReactNode;
36
- pagingDotsBuilder?: (dots: React.ReactNode[]) => React.ReactNode;
37
- pageTransition?: PageTransition;
38
- extraItems?: DndSortItem[];
39
- componentRegistry?: ComponentRegistry;
40
- removeItem: (itemId: string | number) => void;
41
- updateItemConfig: (itemId: string | number, config: SortItemUserConfig) => void;
42
- updateItemData: (itemId: string | number, data: Partial<DndSortItem["data"]>) => void;
43
- insertItemAt: (pageIndex: number, index: number, item: DndSortItem) => void;
44
- mergeItems: (targetId: string | number, draggedItem: DndSortItem) => void;
45
- removeItemFromFolder: (folderId: string | number, itemId: string | number, toPageIndex: number) => void;
46
- addItemToFolder: (folderId: string | number, item: DndSortItem) => void;
47
- reorderFolderChildren: (folderId: string | number, fromIndex: number, toIndex: number) => void;
48
- findItemById: (id: string | number) => {
49
- item: DndSortItem;
50
- pageIndex: number;
51
- itemIndex: number;
52
- } | null;
53
- findFolderContaining: (itemId: string | number) => {
54
- folder: DndSortItem;
55
- pageIndex: number;
56
- } | null;
57
- }
4
+ import { DesktopDndContextValue } from './contexts';
5
+ /**
6
+ * 兼容旧版调用方的聚合 hook。
7
+ *
8
+ * 新代码可以按需使用 useDesktopDndState、useDesktopDndConfig 或 useDesktopDndActions;
9
+ * 现有组件仍可通过该 hook 一次性获取全部状态、配置和操作方法。
10
+ */
58
11
  export declare const useDesktopDnd: () => DesktopDndContextValue;
59
- interface DesktopDndProviderProps {
12
+ /** DesktopDndProvider 的入参。 */
13
+ export interface DesktopDndProviderProps {
14
+ /** 外部传入的桌面分页数据。 */
60
15
  pages: DndPageItem[];
16
+ /** 桌面分页数据变化回调。 */
61
17
  onChange: (pages: DndPageItem[]) => void;
18
+ /** 图标基准尺寸。 */
62
19
  iconSize: number;
20
+ /** 最大页数;0 表示不限制。 */
63
21
  maxPages: number;
22
+ /** 拖拽悬停多久后触发合并,单位毫秒。 */
64
23
  mergeDwellTime: number;
24
+ /** 桌面根容器 DOM 引用。 */
65
25
  containerRef: React.RefObject<HTMLDivElement | null>;
26
+ /** 按 item type 配置默认尺寸、菜单能力等规则。 */
66
27
  typeConfigMap?: TypeConfigMap;
28
+ /** 按 item dataType 配置自定义右键菜单项。 */
67
29
  dataTypeMenuConfigMap?: DataTypeMenuConfigMap;
30
+ /** 点击默认移除菜单项时的自定义回调。 */
68
31
  onRemoveClick?: (item: DndSortItem) => void;
32
+ /** 右键菜单项被触发后的统一回调。 */
69
33
  onContextMenuItemClick?: (item: DndSortItem, payload: ContextMenuActionPayload) => void;
34
+ /** 控制内置右键菜单按钮显隐等行为的配置。 */
70
35
  contextMenuProps?: DesktopDndContextMenuProps;
36
+ /** 桌面主题,可传 light/dark 或完整主题对象。 */
71
37
  theme?: Theme | "light" | "dark";
38
+ /** 是否隐藏 item 名称。 */
72
39
  noLetters?: boolean;
40
+ /** 自定义整个 item 的渲染内容。 */
73
41
  itemBuilder?: (item: DndSortItem, index: number) => React.ReactNode | null;
42
+ /** @deprecated 请让 itemBuilder 返回 null 回退默认渲染。 */
74
43
  itemBuilderAllowNull?: boolean;
44
+ /** 自定义 item 图标区域渲染。 */
75
45
  itemIconBuilder?: (item: DndSortItem) => React.ReactNode;
46
+ /** @deprecated 请让 itemIconBuilder 返回 null 回退默认图标。 */
76
47
  itemIconBuilderAllowNull?: boolean;
48
+ /** 自定义单个分页点渲染。 */
77
49
  pagingDotBuilder?: (index: number, isActive: boolean) => React.ReactNode;
50
+ /** 自定义分页点容器渲染。 */
78
51
  pagingDotsBuilder?: (dots: React.ReactNode[]) => React.ReactNode;
52
+ /** 页面切换动画类型。 */
79
53
  pageTransition?: PageTransition;
54
+ /** 显示在最后一页末尾的额外 item。 */
80
55
  extraItems?: DndSortItem[];
56
+ /** 本地缓存 key;提供后会从 localStorage 恢复并保存 pages。 */
81
57
  storageKey?: string;
58
+ /** 组件注册表,用于按 type 提供组件、远程组件和默认配置。 */
82
59
  componentRegistry?: ComponentRegistry;
60
+ /** Provider 子节点。 */
83
61
  children: React.ReactNode;
84
62
  }
63
+ /**
64
+ * desktop-next 的根上下文 Provider。
65
+ *
66
+ * 负责组装状态、配置和数据操作三个细粒度 context,并保持 useDesktopDnd 的兼容返回值。
67
+ */
85
68
  export declare const DesktopDndProvider: ({ pages: externalPages, onChange, iconSize, maxPages, mergeDwellTime, containerRef, typeConfigMap, dataTypeMenuConfigMap, onRemoveClick, onContextMenuItemClick, contextMenuProps, theme: themeProp, noLetters, itemBuilder, itemBuilderAllowNull, itemIconBuilder, itemIconBuilderAllowNull, pagingDotBuilder, pagingDotsBuilder, pageTransition, extraItems, storageKey, componentRegistry, children, }: DesktopDndProviderProps) => import("react/jsx-runtime").JSX.Element;
86
- export {};
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+ import { DesktopDndActionsContextValue } from './types';
3
+ export declare const DesktopDndActionsProvider: ({ value, children, }: {
4
+ value: DesktopDndActionsContextValue;
5
+ children: React.ReactNode;
6
+ }) => import("react/jsx-runtime").JSX.Element;
7
+ export declare const useDesktopDndActions: () => DesktopDndActionsContextValue;
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+ import { DesktopDndConfigContextValue } from './types';
3
+ export declare const DesktopDndConfigProvider: ({ value, children, }: {
4
+ value: DesktopDndConfigContextValue;
5
+ children: React.ReactNode;
6
+ }) => import("react/jsx-runtime").JSX.Element;
7
+ export declare const useDesktopDndConfig: () => DesktopDndConfigContextValue;
@@ -0,0 +1,4 @@
1
+ export type { DesktopDndActionsContextValue, DesktopDndConfigContextValue, DesktopDndContextValue, DesktopDndStateContextValue, } from './types';
2
+ export { DesktopDndActionsProvider, useDesktopDndActions } from './actions-context';
3
+ export { DesktopDndConfigProvider, useDesktopDndConfig } from './config-context';
4
+ export { DesktopDndStateProvider, useDesktopDndState } from './state-context';
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+ import { DesktopDndStateContextValue } from './types';
3
+ export declare const DesktopDndStateProvider: ({ value, children, }: {
4
+ value: DesktopDndStateContextValue;
5
+ children: React.ReactNode;
6
+ }) => import("react/jsx-runtime").JSX.Element;
7
+ export declare const useDesktopDndState: () => DesktopDndStateContextValue;
@@ -0,0 +1,108 @@
1
+ import { default as React } from 'react';
2
+ import { ComponentRegistry, ContextMenuActionPayload, ContextMenuData, DesktopDndContextMenuProps, DndPageItem, DndSortItem, DragState, FolderModalState, PageTransition, SortItemUserConfig, TypeConfigMap, DataTypeMenuConfigMap } from '../types';
3
+ import { Theme } from '../themes';
4
+ /** 桌面运行时状态,描述当前页面、拖拽、弹窗和右键菜单的即时状态。 */
5
+ export interface DesktopDndStateContextValue {
6
+ /** 当前桌面分页数据。 */
7
+ pages: DndPageItem[];
8
+ /** 更新桌面分页数据,并同步触发外部 onChange。 */
9
+ setPages: (pages: DndPageItem[]) => void;
10
+ /** 当前激活页索引。 */
11
+ currentPage: number;
12
+ /** 设置当前激活页索引。 */
13
+ setCurrentPage: (page: number) => void;
14
+ /** 当前拖拽状态。 */
15
+ dragState: DragState;
16
+ /** 更新拖拽状态。 */
17
+ setDragState: React.Dispatch<React.SetStateAction<DragState>>;
18
+ /** 指针当前位置引用,用于跨组件共享拖拽过程中的实时坐标。 */
19
+ pointerPositionRef: React.RefObject<{
20
+ x: number;
21
+ y: number;
22
+ } | null>;
23
+ /** 桌面根容器 DOM 引用。 */
24
+ containerRef: React.RefObject<HTMLDivElement | null>;
25
+ /** 文件夹弹窗状态。 */
26
+ folderModal: FolderModalState;
27
+ /** 设置文件夹弹窗状态。 */
28
+ setFolderModal: React.Dispatch<React.SetStateAction<FolderModalState>>;
29
+ /** 当前右键菜单数据;为 null 时不显示菜单。 */
30
+ contextMenu: ContextMenuData | null;
31
+ /** 设置右键菜单数据。 */
32
+ setContextMenu: React.Dispatch<React.SetStateAction<ContextMenuData | null>>;
33
+ /** 隐藏当前右键菜单。 */
34
+ hideContextMenu: () => void;
35
+ }
36
+ /** 桌面配置上下文,保存渲染、交互和主题相关的稳定配置。 */
37
+ export interface DesktopDndConfigContextValue {
38
+ /** 图标基准尺寸,网格单元会基于该尺寸计算。 */
39
+ iconSize: number;
40
+ /** 最大页数;0 表示不限制。 */
41
+ maxPages: number;
42
+ /** 拖拽悬停多久后触发合并,单位毫秒。 */
43
+ mergeDwellTime: number;
44
+ /** 按 item type 配置默认尺寸、菜单能力等规则。 */
45
+ typeConfigMap?: TypeConfigMap;
46
+ /** 按 item dataType 配置自定义右键菜单项。 */
47
+ dataTypeMenuConfigMap?: DataTypeMenuConfigMap;
48
+ /** 点击默认移除菜单项时的自定义回调;未提供时直接移除 item。 */
49
+ onRemoveClick?: (item: DndSortItem) => void;
50
+ /** 右键菜单项被触发后的统一回调,包括移除、改尺寸和自定义菜单项。 */
51
+ onContextMenuItemClick?: (item: DndSortItem, payload: ContextMenuActionPayload) => void;
52
+ /** 控制内置右键菜单按钮显隐等行为的配置。 */
53
+ contextMenuProps?: DesktopDndContextMenuProps;
54
+ /** 合并后的桌面主题对象。 */
55
+ theme: Theme;
56
+ /** 是否隐藏 item 名称。 */
57
+ noLetters?: boolean;
58
+ /** 自定义整个 item 的渲染内容;返回 null 时默认回退内置渲染。 */
59
+ itemBuilder?: (item: DndSortItem, index: number) => React.ReactNode | null;
60
+ /** @deprecated 请让 itemBuilder 返回 null 回退默认渲染;false 保留旧版 null 也作为渲染结果的行为。 */
61
+ itemBuilderAllowNull?: boolean;
62
+ /** 自定义 item 图标区域渲染。 */
63
+ itemIconBuilder?: (item: DndSortItem) => React.ReactNode;
64
+ /** @deprecated 请让 itemIconBuilder 返回 null 回退默认图标;false 保留旧版 null 也作为渲染结果的行为。 */
65
+ itemIconBuilderAllowNull?: boolean;
66
+ /** 自定义单个分页点渲染。 */
67
+ pagingDotBuilder?: (index: number, isActive: boolean) => React.ReactNode;
68
+ /** 自定义分页点容器渲染。 */
69
+ pagingDotsBuilder?: (dots: React.ReactNode[]) => React.ReactNode;
70
+ /** 页面切换动画类型。 */
71
+ pageTransition?: PageTransition;
72
+ /** 显示在最后一页末尾的额外 item。 */
73
+ extraItems?: DndSortItem[];
74
+ /** 组件注册表,用于按 type 提供组件、远程组件和默认配置。 */
75
+ componentRegistry?: ComponentRegistry;
76
+ }
77
+ /** 桌面数据操作上下文,集中提供页面、item 和文件夹的变更方法。 */
78
+ export interface DesktopDndActionsContextValue {
79
+ /** 从所有桌面页中移除指定 item。 */
80
+ removeItem: (itemId: string | number) => void;
81
+ /** 更新指定 item 的用户配置,支持更新文件夹内子项。 */
82
+ updateItemConfig: (itemId: string | number, config: SortItemUserConfig) => void;
83
+ /** 更新指定 item 的业务数据,支持更新文件夹内子项。 */
84
+ updateItemData: (itemId: string | number, data: Partial<DndSortItem["data"]>) => void;
85
+ /** 将 item 插入到指定页面的指定位置。 */
86
+ insertItemAt: (pageIndex: number, index: number, item: DndSortItem) => void;
87
+ /** 将拖拽 item 合并到目标 item;目标不是文件夹时会创建新文件夹。 */
88
+ mergeItems: (targetId: string | number, draggedItem: DndSortItem) => void;
89
+ /** 从文件夹中移除子项,并放回指定桌面页。 */
90
+ removeItemFromFolder: (folderId: string | number, itemId: string | number, toPageIndex: number) => void;
91
+ /** 将 item 添加到指定文件夹末尾。 */
92
+ addItemToFolder: (folderId: string | number, item: DndSortItem) => void;
93
+ /** 调整文件夹内部子项顺序。 */
94
+ reorderFolderChildren: (folderId: string | number, fromIndex: number, toIndex: number) => void;
95
+ /** 按 id 查找桌面或文件夹内的 item,并返回所在页面和顶层索引。 */
96
+ findItemById: (id: string | number) => {
97
+ item: DndSortItem;
98
+ pageIndex: number;
99
+ itemIndex: number;
100
+ } | null;
101
+ /** 查找包含指定子项的文件夹。 */
102
+ findFolderContaining: (itemId: string | number) => {
103
+ folder: DndSortItem;
104
+ pageIndex: number;
105
+ } | null;
106
+ }
107
+ /** 兼容旧 useDesktopDnd 的聚合上下文类型。 */
108
+ export type DesktopDndContextValue = DesktopDndStateContextValue & DesktopDndConfigContextValue & DesktopDndActionsContextValue;
@@ -0,0 +1,16 @@
1
+ import { DesktopDndActionsContextValue } from './types';
2
+ import { DndPageItem } from '../types';
3
+ /** useDesktopActions 的入参。 */
4
+ interface UseDesktopActionsOptions {
5
+ /** 最新分页数据引用,供拖拽事件等闭包读取实时数据。 */
6
+ pagesRef: React.RefObject<DndPageItem[]>;
7
+ /** 写入新的分页数据并通知外部。 */
8
+ setPages: (pages: DndPageItem[]) => void;
9
+ }
10
+ /**
11
+ * 创建桌面数据操作方法。
12
+ *
13
+ * 该 hook 只处理 pages 数据结构变更,不直接处理 DOM、拖拽事件或展示状态。
14
+ */
15
+ export declare const useDesktopActions: ({ pagesRef, setPages, }: UseDesktopActionsOptions) => DesktopDndActionsContextValue;
16
+ export {};
@@ -0,0 +1,22 @@
1
+ import { DndPageItem } from '../types';
2
+ /** usePagesState 的入参。 */
3
+ interface UsePagesStateOptions {
4
+ /** 外部传入的受控分页数据。 */
5
+ externalPages: DndPageItem[];
6
+ /** 分页数据变化回调。 */
7
+ onChange: (pages: DndPageItem[]) => void;
8
+ /** 本地缓存 key;提供后优先使用 localStorage 中的分页数据。 */
9
+ storageKey?: string;
10
+ }
11
+ /**
12
+ * 管理桌面分页数据。
13
+ *
14
+ * 未提供 storageKey 时保持完全受控;提供 storageKey 时使用内部状态承载缓存数据,
15
+ * setPages 会同时写入 localStorage 并触发 onChange。
16
+ */
17
+ export declare const usePagesState: ({ externalPages, onChange, storageKey, }: UsePagesStateOptions) => {
18
+ pages: DndPageItem<any>[];
19
+ pagesRef: import('react').RefObject<DndPageItem<any>[]>;
20
+ setPages: (newPages: DndPageItem[]) => void;
21
+ };
22
+ export {};
@@ -4,6 +4,7 @@ import { Theme } from '../themes';
4
4
  export interface DockProps {
5
5
  items?: DndSortItem[];
6
6
  fixedItems?: DndSortItem[];
7
+ launchpadApps?: DndSortItem[];
7
8
  position?: "top" | "bottom" | "left" | "right";
8
9
  className?: string;
9
10
  onItemClick?: (item: DndSortItem) => void;
@@ -8,18 +8,40 @@ export interface DesktopHandle {
8
8
  setCurrentPage: (page: number) => void;
9
9
  }
10
10
  export interface DesktopDndExtendedProps<D = unknown> extends DesktopDndProps<D> {
11
+ /** Dock 配置。 */
11
12
  dockProps?: DockProps;
13
+ /** 是否显示 dock。优先使用 `dockProps` 提供具体配置。 */
14
+ showDock?: boolean;
12
15
  theme?: Theme | "light" | "dark";
16
+ /** @deprecated 请使用 `showLabels={false}` 代替。 */
13
17
  noLetters?: boolean;
18
+ /** 是否显示项目名称。 */
19
+ showLabels?: boolean;
14
20
  storageKey?: string;
15
21
  pageTransition?: import('./types').PageTransition;
16
22
  itemBuilder?: (item: DndSortItem, index: number) => React.ReactNode | null;
23
+ /** @deprecated 请让 `itemBuilder` 返回 `null` 回退默认渲染;设置为 `false` 会保留旧版“null 也作为渲染结果”的行为。 */
17
24
  itemBuilderAllowNull?: boolean;
25
+ /** @deprecated 请让 `itemIconBuilder` 返回 `null` 回退默认图标;设置为 `false` 会保留旧版“null 也作为渲染结果”的行为。 */
18
26
  itemIconBuilderAllowNull?: boolean;
19
27
  pagingDotBuilder?: (index: number, isActive: boolean) => React.ReactNode;
20
28
  pagingDotsBuilder?: (dots: React.ReactNode[]) => React.ReactNode;
21
29
  extraItems?: DndSortItem[];
22
30
  componentRegistry?: ComponentRegistry;
31
+ /** 分页配置。`false` 表示隐藏分页指示器;不再支持旧版 react-slick 的位置配置。 */
32
+ pagination?: false | {
33
+ visible?: boolean;
34
+ };
35
+ /** @deprecated 请使用 `maxPages` 代替。 */
36
+ maxSlides?: number;
37
+ /** @deprecated 请使用 `dockProps` 和 `showDock` 代替。 */
38
+ dock?: ({
39
+ enabled?: boolean;
40
+ } & DockProps) | false;
41
+ /** @deprecated desktop-next 不再基于 react-slick,使用 `pageTransition` 控制分页动画。 */
42
+ sliderProps?: unknown;
43
+ /** @deprecated desktop-next 不再暴露 react-slick ref,请使用组件 ref 读取 `currentPage` 和 `setCurrentPage`。 */
44
+ sliderRef?: React.RefObject<unknown>;
23
45
  }
24
46
  declare const DesktopDnd: <D = unknown>(props: DesktopDndExtendedProps<D> & {
25
47
  ref?: React.ForwardedRef<DesktopHandle>;
@@ -9,6 +9,7 @@ interface FolderItemProps {
9
9
  col: number;
10
10
  row: number;
11
11
  };
12
+ noLabel?: boolean;
12
13
  }
13
- declare const FolderItem: ({ item, onDragStart, iconBuilder, size, }: FolderItemProps) => import("react/jsx-runtime").JSX.Element;
14
+ declare const FolderItem: ({ item, onDragStart, iconBuilder, size, noLabel, }: FolderItemProps) => import("react/jsx-runtime").JSX.Element;
14
15
  export default FolderItem;
@@ -0,0 +1,12 @@
1
+ interface IconImageProps {
2
+ src: string;
3
+ alt?: string;
4
+ fallbackText?: string;
5
+ fallbackBackground?: string;
6
+ fallbackColor?: string;
7
+ fallbackClassName?: string;
8
+ fallbackRadiusClassName?: string;
9
+ imageClassName?: string;
10
+ }
11
+ declare const IconImage: ({ src, alt, fallbackText, fallbackBackground, fallbackColor, fallbackClassName, fallbackRadiusClassName, imageClassName, }: IconImageProps) => import("react/jsx-runtime").JSX.Element;
12
+ export default IconImage;
@@ -55,7 +55,10 @@ export interface DesktopDndProps<D = any> {
55
55
  onItemClick?: (item: DndSortItem<D>) => void;
56
56
  itemIconBuilder?: (item: DndSortItem<D>) => React.ReactNode;
57
57
  className?: string;
58
+ /** 最大页数。 */
58
59
  maxPages?: number;
60
+ /** @deprecated 请使用 `maxPages` 代替。 */
61
+ maxSlides?: number;
59
62
  mergeDwellTime?: number;
60
63
  typeConfigMap?: TypeConfigMap;
61
64
  dataTypeMenuConfigMap?: DataTypeMenuConfigMap;
@@ -37,7 +37,7 @@ export { default as DesktopNext } from './desktop-next';
37
37
  export { commonSizeConfigs as desktopNextCommonSizeConfigs, appDefaultConfig as desktopNextAppDefaultConfig, groupDefaultConfig as desktopNextGroupDefaultConfig, builtinConfigMap as desktopNextBuiltinConfigMap, getDefaultConfig as getDesktopNextDefaultConfig, getSizeConfig as getDesktopNextSizeConfig, getItemSize as getDesktopNextItemSize, } from './desktop-next/config';
38
38
  export { themeLight as desktopNextThemeLight, themeDark as desktopNextThemeDark, defaultTheme as desktopNextDefaultTheme, themes as desktopNextThemes, } from './desktop-next/themes';
39
39
  export type { Theme as DesktopNextTheme, ThemeType as DesktopNextThemeType, } from './desktop-next/themes';
40
- export type { DesktopDndProps as DesktopNextProps, DndSortItem, DndPageItem, DndItemBaseData, SizeConfig, SortItemUserConfig, MenuItemConfig, DataTypeMenuConfigMap, SortItemDefaultConfig, TypeConfigMap, ContextMenuData, DesktopDndContextMenuProps as DesktopNextContextMenuProps, ContextMenuActionPayload, ContextMenuActionType, } from './desktop-next/types';
40
+ export type { DesktopDndExtendedProps as DesktopNextProps, DesktopHandle as DesktopNextHandle, DndSortItem, DndPageItem, DndItemBaseData, SizeConfig, SortItemUserConfig, MenuItemConfig, DataTypeMenuConfigMap, SortItemDefaultConfig, TypeConfigMap, ContextMenuData, DesktopDndContextMenuProps as DesktopNextContextMenuProps, ContextMenuActionPayload, ContextMenuActionType, } from './desktop-next';
41
41
  export { default as DesktopDnd } from './desktop-next';
42
42
  /** @deprecated Use desktopNextCommonSizeConfigs instead */
43
43
  export { commonSizeConfigs as desktopDndCommonSizeConfigs, appDefaultConfig as desktopDndAppDefaultConfig, groupDefaultConfig as desktopDndGroupDefaultConfig, builtinConfigMap as desktopDndBuiltinConfigMap, getDefaultConfig as getDesktopDndDefaultConfig, getSizeConfig as getDesktopDndSizeConfig, getItemSize as getDesktopDndItemSize, } from './desktop-next/config';