feat: customize toolbar (#2468)
* feat: add customizable toolbar modal * refactor: extract SortableActionButton component * refactor: enhance CustomizeToolbar with drag-and-drop reordering and state management * refactor: update CustomizeToolbar for improved state management * refactor: enhance drag-and-drop functionality * feat: add CustomizeToolbarCommand * chore: update i18n * feat: extract customizable toolbar actions state * feat: integrate customizable toolbar order for entry header and more actions * chore: add @dnd-kit/sortable dependency * feat: add reset action order functionality * feat: sync action order * chore: filter out read action * chore: add changeset
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@dnd-kit/core": "^6.3.1",
|
||||
"@dnd-kit/sortable": "^10.0.0",
|
||||
"@egoist/tipc": "0.3.2",
|
||||
"@electron-toolkit/preload": "^3.0.1",
|
||||
"@follow/electron-main": "workspace:*",
|
||||
|
||||
@@ -4,6 +4,8 @@ import { jotaiStore } from "@follow/utils/jotai"
|
||||
import { atom, useAtomValue, useSetAtom } from "jotai"
|
||||
import { useEventCallback } from "usehooks-ts"
|
||||
|
||||
import { DEFAULT_ACTION_ORDER } from "~/modules/customize-toolbar/constant"
|
||||
|
||||
export const createDefaultSettings = (): UISettings => ({
|
||||
// Sidebar
|
||||
entryColWidth: 356,
|
||||
@@ -40,6 +42,9 @@ export const createDefaultSettings = (): UISettings => ({
|
||||
pictureViewMasonry: true,
|
||||
pictureViewFilterNoImage: false,
|
||||
wideMode: false,
|
||||
|
||||
// Action Order
|
||||
toolbarOrder: DEFAULT_ACTION_ORDER,
|
||||
})
|
||||
|
||||
const zenModeAtom = atom(false)
|
||||
|
||||
@@ -200,6 +200,10 @@ export const useEntryActions = ({ entryId, view }: { entryId: string; view?: Fee
|
||||
hide: !hasEntry || !entry.read || !!entry.collections || !!inList,
|
||||
shortcut: shortcuts.entry.toggleRead.key,
|
||||
},
|
||||
{
|
||||
id: COMMAND_ID.settings.customizeToolbar,
|
||||
onClick: runCmdFn(COMMAND_ID.settings.customizeToolbar, []),
|
||||
},
|
||||
].filter((config) => !config.hide)
|
||||
}, [
|
||||
entry?.collections,
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { useRegisterEntryCommands } from "./commands/entry"
|
||||
import { useRegisterIntegrationCommands } from "./commands/integration"
|
||||
import { useRegisterListCommands } from "./commands/list"
|
||||
import { useRegisterThemeCommands } from "./commands/theme"
|
||||
import { useRegisterSettingsCommands } from "./commands/settings"
|
||||
|
||||
export function useRegisterFollowCommands() {
|
||||
useRegisterThemeCommands()
|
||||
useRegisterSettingsCommands()
|
||||
useRegisterListCommands()
|
||||
useRegisterEntryCommands()
|
||||
useRegisterIntegrationCommands()
|
||||
|
||||
@@ -31,9 +31,10 @@ export const COMMAND_ID = {
|
||||
copyUrl: "list:copy-url",
|
||||
copyId: "list:copy-id",
|
||||
},
|
||||
theme: {
|
||||
toAuto: "follow:change-color-mode-to-auto",
|
||||
toDark: "follow:change-color-mode-to-dark",
|
||||
toLight: "follow:change-color-mode-to-light",
|
||||
settings: {
|
||||
changeThemeToAuto: "follow:change-color-mode-to-auto",
|
||||
changeThemeToDark: "follow:change-color-mode-to-dark",
|
||||
changeThemeToLight: "follow:change-color-mode-to-light",
|
||||
customizeToolbar: "follow:customize-toolbar",
|
||||
},
|
||||
} as const
|
||||
|
||||
+27
-4
@@ -2,17 +2,40 @@ import { useThemeAtomValue } from "@follow/hooks"
|
||||
import { useTranslation } from "react-i18next"
|
||||
|
||||
import { useSetTheme } from "~/hooks/common"
|
||||
import { useShowCustomizeToolbarModal } from "~/modules/customize-toolbar/modal"
|
||||
|
||||
import { useRegisterCommandEffect } from "../hooks/use-register-command"
|
||||
import { COMMAND_ID } from "./id"
|
||||
|
||||
export const useRegisterThemeCommands = () => {
|
||||
export const useRegisterSettingsCommands = () => {
|
||||
useCustomizeToolbarCommand()
|
||||
useRegisterThemeCommands()
|
||||
}
|
||||
|
||||
const useCustomizeToolbarCommand = () => {
|
||||
const [t] = useTranslation("settings")
|
||||
const showModal = useShowCustomizeToolbarModal()
|
||||
useRegisterCommandEffect([
|
||||
{
|
||||
id: COMMAND_ID.settings.customizeToolbar,
|
||||
label: t("customizeToolbar.title"),
|
||||
category: "follow:settings",
|
||||
icon: <i className="i-mgc-settings-7-cute-re" />,
|
||||
run() {
|
||||
showModal()
|
||||
},
|
||||
},
|
||||
])
|
||||
}
|
||||
|
||||
const useRegisterThemeCommands = () => {
|
||||
const [t] = useTranslation("settings")
|
||||
const theme = useThemeAtomValue()
|
||||
const setTheme = useSetTheme()
|
||||
|
||||
useRegisterCommandEffect([
|
||||
{
|
||||
id: "follow:change-color-mode-to-auto",
|
||||
id: COMMAND_ID.settings.changeThemeToAuto,
|
||||
label: `To ${t("appearance.theme.system")}`,
|
||||
category: "follow:settings",
|
||||
icon: <i className="i-mgc-settings-7-cute-re" />,
|
||||
@@ -22,7 +45,7 @@ export const useRegisterThemeCommands = () => {
|
||||
},
|
||||
},
|
||||
{
|
||||
id: "follow:change-color-mode-to-dark",
|
||||
id: COMMAND_ID.settings.changeThemeToDark,
|
||||
label: `To ${t("appearance.theme.dark")}`,
|
||||
category: "follow:settings",
|
||||
icon: <i className="i-mingcute-moon-line" />,
|
||||
@@ -32,7 +55,7 @@ export const useRegisterThemeCommands = () => {
|
||||
},
|
||||
},
|
||||
{
|
||||
id: "follow:change-color-mode-to-light",
|
||||
id: COMMAND_ID.settings.changeThemeToLight,
|
||||
label: `To ${t("appearance.theme.light")}`,
|
||||
category: "follow:settings",
|
||||
icon: <i className="i-mingcute-sun-line" />,
|
||||
@@ -89,6 +89,15 @@ export type EntryCommand =
|
||||
| ToggleAISummaryCommand
|
||||
| ToggleAITranslationCommand
|
||||
|
||||
// Settings commands
|
||||
|
||||
export type CustomizeToolbarCommand = Command<{
|
||||
id: typeof COMMAND_ID.settings.customizeToolbar
|
||||
fn: () => void
|
||||
}>
|
||||
|
||||
export type SettingsCommand = CustomizeToolbarCommand
|
||||
|
||||
// Integration commands
|
||||
|
||||
export type SaveToEagleCommand = Command<{
|
||||
@@ -129,4 +138,4 @@ export type IntegrationCommand =
|
||||
| SaveToOutlineCommand
|
||||
| SaveToReadeckCommand
|
||||
|
||||
export type BasicCommand = EntryCommand | IntegrationCommand
|
||||
export type BasicCommand = EntryCommand | SettingsCommand | IntegrationCommand
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
import type { UniqueIdentifier } from "@dnd-kit/core"
|
||||
|
||||
import { COMMAND_ID } from "../command/commands/id"
|
||||
|
||||
export interface ToolbarActionOrder {
|
||||
main: UniqueIdentifier[]
|
||||
more: UniqueIdentifier[]
|
||||
}
|
||||
|
||||
export const DEFAULT_ACTION_ORDER: ToolbarActionOrder = {
|
||||
main: Object.values(COMMAND_ID.entry)
|
||||
.filter((id) => !([COMMAND_ID.entry.read, COMMAND_ID.entry.unread] as string[]).includes(id))
|
||||
.filter(
|
||||
(id) =>
|
||||
!([COMMAND_ID.entry.copyLink, COMMAND_ID.entry.openInBrowser] as string[]).includes(id),
|
||||
),
|
||||
more: [
|
||||
...Object.values(COMMAND_ID.integration),
|
||||
...Object.values(COMMAND_ID.entry)
|
||||
.filter((id) => !([COMMAND_ID.entry.read, COMMAND_ID.entry.unread] as string[]).includes(id))
|
||||
.filter((id) =>
|
||||
([COMMAND_ID.entry.copyLink, COMMAND_ID.entry.openInBrowser] as string[]).includes(id),
|
||||
),
|
||||
COMMAND_ID.settings.customizeToolbar,
|
||||
],
|
||||
}
|
||||
@@ -0,0 +1,83 @@
|
||||
import type { UniqueIdentifier } from "@dnd-kit/core"
|
||||
import { useSortable } from "@dnd-kit/sortable"
|
||||
import { CSS } from "@dnd-kit/utilities"
|
||||
import type { ReactNode } from "react"
|
||||
import { useMemo } from "react"
|
||||
|
||||
import { getCommand } from "../command/hooks/use-command"
|
||||
import type { FollowCommandId } from "../command/types"
|
||||
|
||||
const SortableItem = ({ id, children }: { id: UniqueIdentifier; children: ReactNode }) => {
|
||||
const { attributes, listeners, setNodeRef, transform, transition, isDragging } = useSortable({
|
||||
id,
|
||||
animateLayoutChanges: () => true, // Enable layout animations
|
||||
transition: {
|
||||
duration: 400,
|
||||
easing: "cubic-bezier(0.25, 1, 0.5, 1)",
|
||||
},
|
||||
})
|
||||
|
||||
const style = useMemo(() => {
|
||||
return {
|
||||
transform: CSS.Transform.toString(transform),
|
||||
transition,
|
||||
width: "100px", // Fixed width
|
||||
height: "80px", // Fixed height
|
||||
zIndex: isDragging ? 999 : undefined,
|
||||
}
|
||||
}, [transform, transition, isDragging])
|
||||
|
||||
return (
|
||||
<div
|
||||
ref={setNodeRef}
|
||||
style={style}
|
||||
className={` ${isDragging ? "cursor-grabbing opacity-90" : "cursor-grab"} transition-colors duration-200`}
|
||||
{...attributes}
|
||||
{...listeners}
|
||||
>
|
||||
{children}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export const SortableActionButton = ({ id }: { id: UniqueIdentifier }) => {
|
||||
const cmd = getCommand(id as FollowCommandId)
|
||||
if (!cmd) return null
|
||||
return (
|
||||
<SortableItem id={id}>
|
||||
<div className="flex flex-col items-center rounded-lg p-2 hover:bg-theme-button-hover">
|
||||
<div className="flex size-8 items-center justify-center text-xl">{cmd.icon}</div>
|
||||
<div className="mt-1 text-center text-xs text-neutral-500 dark:text-neutral-400">
|
||||
{cmd.label.title}
|
||||
</div>
|
||||
</div>
|
||||
</SortableItem>
|
||||
)
|
||||
}
|
||||
|
||||
export function DroppableContainer({
|
||||
id,
|
||||
children,
|
||||
}: {
|
||||
children: ReactNode
|
||||
id: UniqueIdentifier
|
||||
}) {
|
||||
const { attributes, isDragging, listeners, setNodeRef, transition, transform } = useSortable({
|
||||
id,
|
||||
})
|
||||
return (
|
||||
<div
|
||||
className="flex min-h-[120px] w-full flex-wrap items-center justify-center rounded-lg border border-neutral-200 bg-neutral-50 p-2 pb-6 shadow-sm dark:border-neutral-800 dark:bg-neutral-900"
|
||||
ref={setNodeRef}
|
||||
style={{
|
||||
transition,
|
||||
transform: CSS.Translate.toString(transform),
|
||||
opacity: isDragging ? 0.5 : undefined,
|
||||
}}
|
||||
{...attributes}
|
||||
{...listeners}
|
||||
>
|
||||
{children}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
import type { UniqueIdentifier } from "@dnd-kit/core"
|
||||
import { useMemo } from "react"
|
||||
|
||||
import { useUISettingSelector } from "~/atoms/settings/ui"
|
||||
|
||||
export const useToolbarOrderMap = () => {
|
||||
const actionOrder = useUISettingSelector((s) => s.toolbarOrder)
|
||||
|
||||
const actionOrderMap = useMemo(() => {
|
||||
const actionOrderMap = new Map<
|
||||
UniqueIdentifier,
|
||||
{
|
||||
type: "main" | "more"
|
||||
order: number
|
||||
}
|
||||
>()
|
||||
actionOrder.main.forEach((id, index) =>
|
||||
actionOrderMap.set(id, {
|
||||
type: "main",
|
||||
order: index,
|
||||
}),
|
||||
)
|
||||
actionOrder.more.forEach((id, index) =>
|
||||
actionOrderMap.set(id, {
|
||||
type: "more",
|
||||
order: index,
|
||||
}),
|
||||
)
|
||||
return actionOrderMap
|
||||
}, [actionOrder])
|
||||
return actionOrderMap
|
||||
}
|
||||
@@ -0,0 +1,144 @@
|
||||
import type { DragOverEvent } from "@dnd-kit/core"
|
||||
import {
|
||||
closestCenter,
|
||||
DndContext,
|
||||
KeyboardSensor,
|
||||
PointerSensor,
|
||||
useSensor,
|
||||
useSensors,
|
||||
} from "@dnd-kit/core"
|
||||
import {
|
||||
arrayMove,
|
||||
SortableContext,
|
||||
sortableKeyboardCoordinates,
|
||||
verticalListSortingStrategy,
|
||||
} from "@dnd-kit/sortable"
|
||||
import { Button } from "@follow/components/ui/button/index.js"
|
||||
import { useCallback } from "react"
|
||||
import { useTranslation } from "react-i18next"
|
||||
|
||||
import { setUISetting, useUISettingSelector } from "~/atoms/settings/ui"
|
||||
import { useModalStack } from "~/components/ui/modal/stacked/hooks"
|
||||
|
||||
import { DEFAULT_ACTION_ORDER } from "./constant"
|
||||
import { DroppableContainer, SortableActionButton } from "./dnd"
|
||||
|
||||
const CustomizeToolbar = () => {
|
||||
const actionOrder = useUISettingSelector((s) => s.toolbarOrder)
|
||||
|
||||
const sensors = useSensors(
|
||||
useSensor(PointerSensor),
|
||||
useSensor(KeyboardSensor, {
|
||||
coordinateGetter: sortableKeyboardCoordinates,
|
||||
}),
|
||||
)
|
||||
|
||||
const handleDragOver = useCallback(
|
||||
({ active, over }: DragOverEvent) => {
|
||||
if (!over) return
|
||||
const activeId = active.id
|
||||
const overId = over.id
|
||||
const isActiveInMain = actionOrder.main.includes(activeId)
|
||||
const isOverInMain = overId === "container-main" || actionOrder.main.includes(overId)
|
||||
const isCrossContainer = isActiveInMain !== isOverInMain
|
||||
|
||||
if (isCrossContainer) {
|
||||
// Moving between containers
|
||||
const sourceList = isActiveInMain ? "main" : "more"
|
||||
const targetList = isActiveInMain ? "more" : "main"
|
||||
const item = actionOrder[sourceList].find((item) => item === activeId)
|
||||
if (!item) return
|
||||
const newIndexOfOver = actionOrder[targetList].indexOf(overId)
|
||||
setUISetting("toolbarOrder", {
|
||||
...actionOrder,
|
||||
[sourceList]: actionOrder[sourceList].filter((item) => item !== activeId),
|
||||
[targetList]: [
|
||||
...actionOrder[targetList].slice(0, newIndexOfOver),
|
||||
item,
|
||||
...actionOrder[targetList].slice(newIndexOfOver),
|
||||
],
|
||||
})
|
||||
return
|
||||
}
|
||||
// Reordering within container
|
||||
const list = isActiveInMain ? "main" : "more"
|
||||
const items = actionOrder[list]
|
||||
const oldIndex = items.indexOf(activeId)
|
||||
const newIndex = items.indexOf(overId)
|
||||
|
||||
setUISetting("toolbarOrder", {
|
||||
...actionOrder,
|
||||
[list]: arrayMove(items, oldIndex, newIndex),
|
||||
})
|
||||
},
|
||||
[actionOrder],
|
||||
)
|
||||
|
||||
const resetActionOrder = useCallback(() => {
|
||||
setUISetting("toolbarOrder", DEFAULT_ACTION_ORDER)
|
||||
}, [])
|
||||
|
||||
return (
|
||||
<div className="mx-auto w-full max-w-[800px] space-y-4">
|
||||
<div className="mb-4">
|
||||
<h2 className="text-lg font-semibold">Quick Actions</h2>
|
||||
<p className="text-sm text-gray-500">Customize and reorder your frequently used actions</p>
|
||||
</div>
|
||||
{/* Refer to https://github.com/clauderic/dnd-kit/blob/master/stories/2%20-%20Presets/Sortable/MultipleContainers.tsx */}
|
||||
<DndContext sensors={sensors} collisionDetection={closestCenter} onDragOver={handleDragOver}>
|
||||
<div className="space-y-4">
|
||||
{/* Main toolbar */}
|
||||
|
||||
<DroppableContainer id="container-main">
|
||||
<SortableContext
|
||||
items={actionOrder.main.map((item) => item)}
|
||||
strategy={verticalListSortingStrategy}
|
||||
>
|
||||
{actionOrder.main.map((id) => (
|
||||
<SortableActionButton key={id} id={id} />
|
||||
))}
|
||||
</SortableContext>
|
||||
</DroppableContainer>
|
||||
|
||||
{/* More panel */}
|
||||
<div className="mb-4">
|
||||
<h2 className="text-lg font-semibold">More Actions</h2>
|
||||
<p className="text-sm text-gray-500">Will be shown in the dropdown menu</p>
|
||||
</div>
|
||||
|
||||
<DroppableContainer id="container-more">
|
||||
<SortableContext
|
||||
items={actionOrder.more.map((item) => item)}
|
||||
strategy={verticalListSortingStrategy}
|
||||
>
|
||||
{actionOrder.more.map((id) => (
|
||||
<SortableActionButton key={id} id={id} />
|
||||
))}
|
||||
</SortableContext>
|
||||
</DroppableContainer>
|
||||
</div>
|
||||
</DndContext>
|
||||
|
||||
<div className="flex justify-end">
|
||||
<Button variant="outline" onClick={resetActionOrder}>
|
||||
Reset to Default Layout
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export const useShowCustomizeToolbarModal = () => {
|
||||
const [t] = useTranslation("settings")
|
||||
const { present } = useModalStack()
|
||||
|
||||
return useCallback(() => {
|
||||
present({
|
||||
id: "customize-toolbar",
|
||||
title: t("customizeToolbar.title"),
|
||||
content: () => <CustomizeToolbar />,
|
||||
overlay: true,
|
||||
clickOutsideToDismiss: true,
|
||||
})
|
||||
}, [present, t])
|
||||
}
|
||||
@@ -6,10 +6,12 @@ import { shortcuts } from "~/constants/shortcuts"
|
||||
import { useEntryActions } from "~/hooks/biz/useEntryActions"
|
||||
import { COMMAND_ID } from "~/modules/command/commands/id"
|
||||
import { useCommandHotkey } from "~/modules/command/hooks/use-register-hotkey"
|
||||
import { useToolbarOrderMap } from "~/modules/customize-toolbar/hooks"
|
||||
import { useEntry } from "~/store/entry/hooks"
|
||||
|
||||
export const EntryHeaderActions = ({ entryId, view }: { entryId: string; view?: FeedViewType }) => {
|
||||
const actionConfigs = useEntryActions({ entryId, view })
|
||||
const orderMap = useToolbarOrderMap()
|
||||
const entry = useEntry(entryId)
|
||||
|
||||
const hasModal = useHasModal()
|
||||
@@ -22,18 +24,16 @@ export const EntryHeaderActions = ({ entryId, view }: { entryId: string; view?:
|
||||
})
|
||||
|
||||
return actionConfigs
|
||||
.filter(
|
||||
(item) =>
|
||||
!item.id.startsWith("integration") &&
|
||||
!(
|
||||
[
|
||||
COMMAND_ID.entry.read,
|
||||
COMMAND_ID.entry.unread,
|
||||
COMMAND_ID.entry.copyLink,
|
||||
COMMAND_ID.entry.openInBrowser,
|
||||
] as string[]
|
||||
).includes(item.id),
|
||||
)
|
||||
.filter((item) => {
|
||||
const order = orderMap.get(item.id)
|
||||
if (!order) return false
|
||||
return order.type === "main"
|
||||
})
|
||||
.sort((a, b) => {
|
||||
const orderA = orderMap.get(a.id)?.order || 0
|
||||
const orderB = orderMap.get(b.id)?.order || 0
|
||||
return orderA - orderB
|
||||
})
|
||||
.map((config) => {
|
||||
return (
|
||||
<CommandActionButton
|
||||
|
||||
@@ -9,22 +9,27 @@ import {
|
||||
DropdownMenuTrigger,
|
||||
} from "~/components/ui/dropdown-menu/dropdown-menu"
|
||||
import { useEntryActions } from "~/hooks/biz/useEntryActions"
|
||||
import { COMMAND_ID } from "~/modules/command/commands/id"
|
||||
import { useCommand } from "~/modules/command/hooks/use-command"
|
||||
import type { FollowCommandId } from "~/modules/command/types"
|
||||
import { useToolbarOrderMap } from "~/modules/customize-toolbar/hooks"
|
||||
|
||||
export const MoreActions = ({ entryId, view }: { entryId: string; view?: FeedViewType }) => {
|
||||
const actionConfigs = useEntryActions({ entryId, view })
|
||||
const orderMap = useToolbarOrderMap()
|
||||
const availableActions = useMemo(
|
||||
() =>
|
||||
actionConfigs.filter(
|
||||
(item) =>
|
||||
item.id.startsWith("integration") ||
|
||||
([COMMAND_ID.entry.copyLink, COMMAND_ID.entry.openInBrowser] as string[]).includes(
|
||||
item.id,
|
||||
),
|
||||
),
|
||||
[actionConfigs],
|
||||
actionConfigs
|
||||
.filter((item) => {
|
||||
const order = orderMap.get(item.id)
|
||||
if (!order) return false
|
||||
return order.type !== "main"
|
||||
})
|
||||
.sort((a, b) => {
|
||||
const orderA = orderMap.get(a.id)?.order || 0
|
||||
const orderB = orderMap.get(b.id)?.order || 0
|
||||
return orderA - orderB
|
||||
}),
|
||||
[actionConfigs, orderMap],
|
||||
)
|
||||
|
||||
if (availableActions.length === 0) {
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
|
||||
## New Features
|
||||
|
||||
- **Customize toolbar**: Customize the toolbar to display the items you most frequently use.
|
||||

|
||||
|
||||
## Improvements
|
||||
|
||||
## Bug Fixes
|
||||
|
||||
@@ -97,6 +97,7 @@
|
||||
"appearance.zen_mode.description": "Zen mode is an undisturbed reading mode that allows you to focus on the content without any interference. Enabling Zen mode will hide the sidebar.",
|
||||
"appearance.zen_mode.label": "Zen mode",
|
||||
"common.give_star": "<HeartIcon />Love our product? <Link>Give us a star on GitHub!</Link>",
|
||||
"customizeToolbar.title": "Customize Toolbar",
|
||||
"data_control.app_cache_limit.description": "The maximum size of the app cache. Once the cache reaches this size, the oldest items will be deleted to free up space.",
|
||||
"data_control.app_cache_limit.label": "App Cache Limit",
|
||||
"data_control.clean_cache.button": "Clean Cache",
|
||||
|
||||
@@ -52,6 +52,12 @@ export interface UISettings {
|
||||
pictureViewMasonry: boolean
|
||||
pictureViewFilterNoImage: boolean
|
||||
wideMode: boolean
|
||||
|
||||
// Action Order
|
||||
toolbarOrder: {
|
||||
main: (string | number)[]
|
||||
more: (string | number)[]
|
||||
}
|
||||
}
|
||||
|
||||
export interface IntegrationSettings {
|
||||
|
||||
Generated
+16
@@ -632,6 +632,9 @@ importers:
|
||||
'@dnd-kit/core':
|
||||
specifier: ^6.3.1
|
||||
version: 6.3.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
|
||||
'@dnd-kit/sortable':
|
||||
specifier: ^10.0.0
|
||||
version: 10.0.0(@dnd-kit/core@6.3.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react@18.3.1)
|
||||
'@egoist/tipc':
|
||||
specifier: 0.3.2
|
||||
version: 0.3.2(electron@33.3.0)(react@18.3.1)
|
||||
@@ -2253,6 +2256,12 @@ packages:
|
||||
react: '>=16.8.0'
|
||||
react-dom: '>=16.8.0'
|
||||
|
||||
'@dnd-kit/sortable@10.0.0':
|
||||
resolution: {integrity: sha512-+xqhmIIzvAYMGfBYYnbKuNicfSsk4RksY2XdmJhT+HAC01nix6fHCztU68jooFiMUB01Ky3F0FyOvhG/BZrWkg==}
|
||||
peerDependencies:
|
||||
'@dnd-kit/core': ^6.3.0
|
||||
react: '>=16.8.0'
|
||||
|
||||
'@dnd-kit/utilities@3.2.2':
|
||||
resolution: {integrity: sha512-+MKAJEOfaBe5SmV6t34p80MMKhjvUz0vRrvVJbPT0WElzaOJ/1xs+D+KDv+tD/NE5ujfrChEcshd4fLn0wpiqg==}
|
||||
peerDependencies:
|
||||
@@ -15739,6 +15748,13 @@ snapshots:
|
||||
react-dom: 18.3.1(react@18.3.1)
|
||||
tslib: 2.8.1
|
||||
|
||||
'@dnd-kit/sortable@10.0.0(@dnd-kit/core@6.3.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react@18.3.1)':
|
||||
dependencies:
|
||||
'@dnd-kit/core': 6.3.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
|
||||
'@dnd-kit/utilities': 3.2.2(react@18.3.1)
|
||||
react: 18.3.1
|
||||
tslib: 2.8.1
|
||||
|
||||
'@dnd-kit/utilities@3.2.2(react@18.3.1)':
|
||||
dependencies:
|
||||
react: 18.3.1
|
||||
|
||||
Reference in New Issue
Block a user