@cueloop/client 0.1.0-alpha.7 → 0.1.0-alpha.71
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/native/build-pty.sh +51 -0
- package/native/build.sh +82 -0
- package/native/darwin-arm64/libcuelooppty.dylib +0 -0
- package/native/darwin-arm64/libcueloopvt.dylib +0 -0
- package/native/src/pty.zig +193 -0
- package/native/src/shim.zig +114 -0
- package/package.json +39 -32
- package/src/App.appearance.test.tsx +53 -0
- package/src/App.autoclose.test.tsx +76 -50
- package/src/App.diff.test.tsx +156 -42
- package/src/App.export.test.tsx +58 -40
- package/src/App.plan-review.test.tsx +363 -0
- package/src/App.prototype-markdown.test.tsx +92 -0
- package/src/App.prototype.test.tsx +176 -0
- package/src/App.readonly.test.tsx +128 -67
- package/src/App.rendering.test.tsx +61 -35
- package/src/App.submit-confirm.test.tsx +191 -0
- package/src/App.test.tsx +310 -114
- package/src/App.toast.test.tsx +89 -0
- package/src/App.tsx +1043 -798
- package/src/App.walk.test.tsx +298 -0
- package/src/App.workbench.test.tsx +495 -0
- package/src/__snapshots__/view-plan.regression.test.ts.snap +100 -0
- package/src/annotation-palette.ts +61 -0
- package/src/app-key-state.ts +61 -0
- package/src/app-screens.tsx +432 -0
- package/src/app-view-model.ts +159 -0
- package/src/attribution.test.ts +31 -0
- package/src/attribution.ts +42 -0
- package/src/clipboard.test.ts +23 -0
- package/src/clipboard.ts +33 -0
- package/src/components/AnnotatableFileView.stories.tsx +42 -0
- package/src/components/AnnotatableFileView.test.tsx +102 -0
- package/src/components/AnnotatableFileView.tsx +126 -0
- package/src/components/AnnotationCards.stories.tsx +87 -0
- package/src/components/AnnotationCards.tsx +303 -0
- package/src/components/AppHeader.stories.tsx +50 -0
- package/src/components/AppHeader.tsx +83 -0
- package/src/components/AppShell.stories.tsx +89 -0
- package/src/components/AppShell.tsx +290 -0
- package/src/components/AppShell.zoom.test.tsx +135 -0
- package/src/components/BareWorkbenchFileView.stories.tsx +27 -0
- package/src/components/BareWorkbenchFileView.tsx +64 -0
- package/src/components/Breadcrumb.stories.tsx +19 -0
- package/src/components/Breadcrumb.tsx +45 -0
- package/src/components/ChangesColumn.stories.tsx +39 -0
- package/src/components/ChangesColumn.tsx +171 -0
- package/src/components/CodeBlock.stories.tsx +42 -0
- package/src/components/CodeBlock.tsx +84 -0
- package/src/components/CompletionOverlay.stories.tsx +23 -0
- package/src/components/CompletionOverlay.tsx +60 -0
- package/src/components/ConfirmCard.stories.tsx +35 -0
- package/src/components/ConfirmCard.tsx +128 -0
- package/src/components/ConfirmDialog.stories.tsx +21 -0
- package/src/components/ConfirmDialog.tsx +66 -0
- package/src/components/DiffContentView.scroll.test.tsx +121 -0
- package/src/components/DiffContentView.split.test.tsx +140 -0
- package/src/components/DiffContentView.stories.tsx +80 -0
- package/src/components/DiffContentView.syntax.test.tsx +82 -0
- package/src/components/DiffContentView.tsx +859 -0
- package/src/components/DiscussionMarkerRail.stories.tsx +54 -0
- package/src/components/DiscussionMarkerRail.tsx +181 -0
- package/src/components/EditorGrid.stories.tsx +59 -0
- package/src/components/EditorGrid.tabs.test.tsx +118 -0
- package/src/components/EditorGrid.tsx +368 -0
- package/src/components/EditorGrid.zoom.test.tsx +68 -0
- package/src/components/FileContentsView.stories.tsx +16 -0
- package/src/components/FileContentsView.test.tsx +29 -0
- package/src/components/FileContentsView.tsx +98 -0
- package/src/components/KeybindsDialog.stories.tsx +31 -0
- package/src/components/KeybindsDialog.tsx +103 -0
- package/src/components/MenuBar.stories.tsx +28 -0
- package/src/components/MenuBar.tsx +44 -0
- package/src/components/OverlayScrollbar.stories.tsx +33 -0
- package/src/components/OverlayScrollbar.test.tsx +139 -0
- package/src/components/OverlayScrollbar.tsx +129 -0
- package/src/components/PaneGrid.stories.tsx +84 -0
- package/src/components/PaneGrid.tsx +128 -0
- package/src/components/PanelColumn.stories.tsx +25 -0
- package/src/components/PanelColumn.tsx +95 -0
- package/src/components/ProjectTreeView.stories.tsx +25 -0
- package/src/components/ProjectTreeView.test.tsx +32 -0
- package/src/components/ProjectTreeView.tsx +83 -0
- package/src/components/PromptDialog.stories.tsx +36 -0
- package/src/components/PromptDialog.tsx +87 -0
- package/src/components/PrototypeContentView.stories.tsx +19 -0
- package/src/components/PrototypeContentView.tsx +446 -0
- package/src/components/RootOverlay.stories.tsx +44 -0
- package/src/components/RootOverlay.tsx +35 -0
- package/src/components/ScrollArea.stories.tsx +20 -0
- package/src/components/ScrollArea.tsx +44 -0
- package/src/components/SettingsDialog.stories.tsx +117 -0
- package/src/components/SettingsDialog.tsx +195 -0
- package/src/components/SettingsRows.stories.tsx +18 -0
- package/src/components/SettingsRows.tsx +112 -0
- package/src/components/ShellHeader.stories.tsx +50 -0
- package/src/components/ShellHeader.tsx +137 -0
- package/src/components/ThreadFooter.stories.tsx +30 -0
- package/src/components/ThreadFooter.test.tsx +31 -0
- package/src/components/ThreadFooter.tsx +54 -0
- package/src/components/ThreadTree.stories.tsx +46 -0
- package/src/components/ThreadTree.tsx +219 -0
- package/src/components/ThreadView.selection.test.tsx +812 -0
- package/src/components/ThreadView.slash.test.tsx +158 -0
- package/src/components/ThreadView.stories.tsx +26 -0
- package/src/components/ThreadView.tsx +330 -0
- package/src/components/ThreadsSidebar.stories.tsx +36 -0
- package/src/components/ThreadsSidebar.tsx +71 -0
- package/src/components/Toast.stories.tsx +12 -0
- package/src/components/Toast.tsx +45 -0
- package/src/components/Tooltip.stories.tsx +26 -0
- package/src/components/Tooltip.tsx +72 -0
- package/src/components/TreePane.stories.tsx +106 -0
- package/src/components/TreePane.tsx +157 -0
- package/src/components/WalkWizard.stories.tsx +100 -0
- package/src/components/WalkWizard.tsx +152 -0
- package/src/components/WelcomePlayground.stories.tsx +12 -0
- package/src/components/WelcomePlayground.test.tsx +47 -0
- package/src/components/WelcomePlayground.tsx +140 -0
- package/src/components/__snapshots__/stories.test.tsx.snap +1845 -0
- package/src/components/agent-launcher.stories.tsx +26 -0
- package/src/components/agent-launcher.test.tsx +50 -0
- package/src/components/agent-launcher.tsx +149 -0
- package/src/components/diff-content-view-layout.test.ts +198 -0
- package/src/components/diff-content-view-layout.ts +84 -0
- package/src/components/editor-grid.test.ts +86 -0
- package/src/components/editor-grid.ts +138 -0
- package/src/components/fade-title.test.ts +49 -0
- package/src/components/fade-title.ts +61 -0
- package/src/components/file-tree.test.ts +60 -0
- package/src/components/file-tree.ts +112 -0
- package/src/components/pages/Workspace.stories.tsx +181 -0
- package/src/components/primitives/Button.stories.tsx +32 -0
- package/src/components/primitives/Button.tsx +52 -0
- package/src/components/primitives/Card.stories.tsx +25 -0
- package/src/components/primitives/Card.tsx +60 -0
- package/src/components/primitives/Dialog.stories.tsx +24 -0
- package/src/components/primitives/Dialog.tsx +66 -0
- package/src/components/primitives/IconButton.stories.tsx +36 -0
- package/src/components/primitives/IconButton.tsx +62 -0
- package/src/components/primitives/StatusBar.stories.tsx +11 -0
- package/src/components/primitives/StatusBar.tsx +23 -0
- package/src/components/primitives/Tabs.stories.tsx +29 -0
- package/src/components/primitives/Tabs.tsx +102 -0
- package/src/components/primitives/Toolbar.stories.tsx +17 -0
- package/src/components/primitives/Toolbar.tsx +14 -0
- package/src/components/primitives/Tree.stories.tsx +124 -0
- package/src/components/primitives/Tree.tsx +96 -0
- package/src/components/primitives/frame.test.ts +12 -0
- package/src/components/primitives/frame.ts +14 -0
- package/src/components/primitives/icons.ts +61 -0
- package/src/components/primitives/tree-model.test.ts +99 -0
- package/src/components/primitives/tree-model.ts +137 -0
- package/src/components/quick-actions-editor.stories.tsx +54 -0
- package/src/components/quick-actions-editor.test.tsx +49 -0
- package/src/components/quick-actions-editor.tsx +150 -0
- package/src/components/session-tree.test.ts +134 -0
- package/src/components/session-tree.ts +108 -0
- package/src/components/stories-app.tsx +184 -0
- package/src/components/stories.test.tsx +66 -0
- package/src/components/story-fixtures.ts +102 -0
- package/src/components/story-tree.test.ts +100 -0
- package/src/components/story.ts +142 -0
- package/src/components/syntax-highlight.ts +110 -0
- package/src/components/terminal-pane.test.tsx +40 -0
- package/src/components/terminal-pane.ts +199 -0
- package/src/components/theme-context.stories.tsx +46 -0
- package/src/components/theme-context.tsx +37 -0
- package/src/components/truncate-text.ts +7 -0
- package/src/config.test.ts +461 -31
- package/src/config.ts +389 -57
- package/src/diff-fold.test.ts +78 -0
- package/src/diff-fold.ts +126 -0
- package/src/diff-hunk-curate.test.ts +315 -0
- package/src/diff-hunk-curate.ts +153 -0
- package/src/diff-intraline.test.ts +165 -0
- package/src/diff-intraline.ts +146 -0
- package/src/diff-syntax.test.ts +112 -0
- package/src/diff-syntax.ts +179 -0
- package/src/discussions.ts +79 -0
- package/src/editor.test.ts +149 -0
- package/src/editor.ts +139 -9
- package/src/ghostty-terminal.test.ts +85 -0
- package/src/ghostty-terminal.ts +199 -0
- package/src/herdr.test.ts +9 -34
- package/src/herdr.ts +25 -21
- package/src/index.ts +11 -0
- package/src/integrations.test.ts +41 -0
- package/src/integrations.ts +32 -0
- package/src/intent-dispatch.test.ts +698 -0
- package/src/intent-dispatch.ts +700 -0
- package/src/key-bindings.test.ts +156 -0
- package/src/key-bindings.ts +465 -0
- package/src/keymap.test.ts +611 -0
- package/src/keymap.ts +410 -0
- package/src/kitty-image.test.ts +66 -0
- package/src/kitty-image.ts +138 -0
- package/src/mark-runs.ts +120 -0
- package/src/prototype-browser.test.ts +56 -0
- package/src/prototype-browser.ts +307 -0
- package/src/prototype-pixels.tsx +35 -0
- package/src/pty.test.ts +81 -0
- package/src/pty.ts +245 -0
- package/src/ready-signal.test.ts +85 -0
- package/src/ready-signal.ts +52 -0
- package/src/run.ts +30 -9
- package/src/serve.test.ts +24 -12
- package/src/serve.ts +20 -9
- package/src/share.ts +215 -0
- package/src/skills.test.ts +74 -0
- package/src/skills.ts +68 -0
- package/src/slash-palette.test.ts +54 -0
- package/src/slash-palette.ts +104 -0
- package/src/split-diff.test.ts +110 -0
- package/src/split-diff.ts +149 -0
- package/src/test-support.test.ts +264 -0
- package/src/test-support.ts +355 -0
- package/src/theme-presets.test.ts +51 -0
- package/src/theme-presets.ts +214 -0
- package/src/theme.ts +84 -19
- package/src/thread-chords.test.ts +170 -0
- package/src/thread-chords.ts +169 -0
- package/src/thread-controller.curate.test.ts +438 -0
- package/src/thread-controller.live-diff.test.ts +199 -0
- package/src/thread-controller.share.test.ts +472 -0
- package/src/thread-controller.tree.test.ts +255 -0
- package/src/thread-controller.ts +1509 -0
- package/src/thread-selection.test.ts +210 -0
- package/src/thread-selection.ts +243 -0
- package/src/tree-view.test.ts +128 -0
- package/src/tree-view.ts +148 -0
- package/src/use-annotation-surface.tsx +851 -0
- package/src/use-changes-workbench.ts +153 -0
- package/src/use-frame-measure.ts +38 -0
- package/src/use-settings-dialog.tsx +274 -0
- package/src/use-terminal-virtualizer.ts +233 -0
- package/src/version.ts +5 -0
- package/src/view-diff.test.ts +66 -9
- package/src/view-diff.ts +231 -23
- package/src/view-plan.regression.test.ts +60 -0
- package/src/view-plan.test.ts +406 -0
- package/src/view-plan.ts +570 -0
- package/src/walk.test.ts +121 -0
- package/src/walk.ts +74 -0
- package/src/syntax.test.ts +0 -41
- package/src/syntax.ts +0 -88
- package/src/view.test.ts +0 -157
- package/src/view.ts +0 -312
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The sidebar thread tree: a Pinned / Projects / Threads listing. Selection stays
|
|
3
|
+
* with the keyboard grammar - the cursor indexes the flat thread order and this
|
|
4
|
+
* component renders the snapshot. A hovered or selected thread reveals a kebab
|
|
5
|
+
* that opens an inline pin / rename / delete menu; long titles fade on the right
|
|
6
|
+
* instead of wrapping. App supplies the surrounding chrome.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import React, { useState } from "react";
|
|
10
|
+
import type { Theme } from "../theme";
|
|
11
|
+
import { useComponentTheme } from "./theme-context";
|
|
12
|
+
import { IconButton } from "./primitives/IconButton";
|
|
13
|
+
import { NERD } from "./primitives/icons";
|
|
14
|
+
import { fadeTitle } from "./fade-title";
|
|
15
|
+
import { threadTitle, type InboxRow } from "./session-tree";
|
|
16
|
+
|
|
17
|
+
export interface ThreadTreeProps {
|
|
18
|
+
rows: InboxRow[];
|
|
19
|
+
cursor: number;
|
|
20
|
+
/** The open thread's id; highlights it instead of the cursor (the left sidebar case). */
|
|
21
|
+
activeId?: string;
|
|
22
|
+
/** Ids of pinned threads; a pinned row carries the pin glyph and the menu offers Unpin. */
|
|
23
|
+
pinnedIds?: ReadonlySet<string>;
|
|
24
|
+
/** The column width, so titles fade to fit one line. */
|
|
25
|
+
width?: number;
|
|
26
|
+
/** Open a thread by clicking its row (the left sidebar case). */
|
|
27
|
+
onSelect?: (sessionId: string) => void;
|
|
28
|
+
/** Ask to delete a thread (the menu's Delete, wired to the confirm dialog). */
|
|
29
|
+
onRequestDelete?: (id: string, title: string) => void;
|
|
30
|
+
/** Toggle a thread's pinned state (the menu's Pin/Unpin). */
|
|
31
|
+
onPin?: (id: string) => void;
|
|
32
|
+
/** Rename a thread's title (the menu's Rename). */
|
|
33
|
+
onRename?: (id: string, title: string) => void;
|
|
34
|
+
theme?: Theme;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
function ActionsMenu({
|
|
38
|
+
pinned,
|
|
39
|
+
onPin,
|
|
40
|
+
onRename,
|
|
41
|
+
onDelete,
|
|
42
|
+
tokens,
|
|
43
|
+
}: {
|
|
44
|
+
pinned: boolean;
|
|
45
|
+
onPin?: () => void;
|
|
46
|
+
onRename?: () => void;
|
|
47
|
+
onDelete?: () => void;
|
|
48
|
+
tokens: Theme;
|
|
49
|
+
}): React.ReactNode {
|
|
50
|
+
const item = (
|
|
51
|
+
glyph: string,
|
|
52
|
+
label: string,
|
|
53
|
+
color: string,
|
|
54
|
+
onPick?: () => void,
|
|
55
|
+
): React.ReactNode =>
|
|
56
|
+
onPick !== undefined ? (
|
|
57
|
+
<box onMouseUp={onPick} style={{ flexDirection: "row", paddingLeft: 4, paddingRight: 1 }}>
|
|
58
|
+
<text fg={color}>{`${glyph} ${label}`}</text>
|
|
59
|
+
</box>
|
|
60
|
+
) : null;
|
|
61
|
+
|
|
62
|
+
return (
|
|
63
|
+
<box
|
|
64
|
+
style={{
|
|
65
|
+
flexDirection: "column",
|
|
66
|
+
marginLeft: 3,
|
|
67
|
+
borderStyle: "single",
|
|
68
|
+
border: ["left"],
|
|
69
|
+
borderColor: tokens.border,
|
|
70
|
+
}}
|
|
71
|
+
>
|
|
72
|
+
{item(NERD.pin, pinned ? "Unpin" : "Pin", tokens.text, onPin)}
|
|
73
|
+
{item(NERD.file, "Rename", tokens.text, onRename)}
|
|
74
|
+
{item(NERD.close, "Delete", tokens.red, onDelete)}
|
|
75
|
+
</box>
|
|
76
|
+
);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
interface ThreadRowProps {
|
|
80
|
+
title: string;
|
|
81
|
+
selected: boolean;
|
|
82
|
+
pinned: boolean;
|
|
83
|
+
titleWidth: number;
|
|
84
|
+
menuOpen: boolean;
|
|
85
|
+
onToggleMenu: () => void;
|
|
86
|
+
onSelect?: () => void;
|
|
87
|
+
onPin?: () => void;
|
|
88
|
+
onRename?: () => void;
|
|
89
|
+
onDelete?: () => void;
|
|
90
|
+
tokens: Theme;
|
|
91
|
+
theme?: Theme;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
function ThreadRow(props: ThreadRowProps): React.ReactNode {
|
|
95
|
+
const { title, selected, pinned, titleWidth, menuOpen, onToggleMenu, tokens, theme } = props;
|
|
96
|
+
const [hovered, setHovered] = useState(false);
|
|
97
|
+
// the tail fades toward the row's own background, so it masks out instead of
|
|
98
|
+
// leaving a colored band over the selected (elevated) or hovered (panel) row
|
|
99
|
+
const rowBackground = selected ? tokens.elevated : hovered ? tokens.panel : tokens.background;
|
|
100
|
+
const segments = fadeTitle(
|
|
101
|
+
title,
|
|
102
|
+
titleWidth,
|
|
103
|
+
selected ? tokens.accent : tokens.textMuted,
|
|
104
|
+
rowBackground,
|
|
105
|
+
);
|
|
106
|
+
const hasActions =
|
|
107
|
+
props.onPin !== undefined || props.onRename !== undefined || props.onDelete !== undefined;
|
|
108
|
+
|
|
109
|
+
return (
|
|
110
|
+
<box style={{ flexDirection: "column" }} onMouseOut={() => setHovered(false)}>
|
|
111
|
+
<box
|
|
112
|
+
onMouseUp={props.onSelect}
|
|
113
|
+
onMouseOver={() => setHovered(true)}
|
|
114
|
+
style={{
|
|
115
|
+
flexDirection: "row",
|
|
116
|
+
backgroundColor: selected ? tokens.elevated : hovered ? tokens.panel : undefined,
|
|
117
|
+
}}
|
|
118
|
+
>
|
|
119
|
+
<text>
|
|
120
|
+
<span fg={tokens.textDim}>{pinned ? ` ${NERD.pin} ` : " "}</span>
|
|
121
|
+
{segments.map((segment, index) => (
|
|
122
|
+
<span key={index} fg={segment.fg}>
|
|
123
|
+
{segment.text}
|
|
124
|
+
</span>
|
|
125
|
+
))}
|
|
126
|
+
</text>
|
|
127
|
+
<box style={{ flexGrow: 1 }} />
|
|
128
|
+
{(hovered || menuOpen) && hasActions ? (
|
|
129
|
+
<IconButton
|
|
130
|
+
glyph={NERD.kebab}
|
|
131
|
+
active={menuOpen}
|
|
132
|
+
onPress={onToggleMenu}
|
|
133
|
+
marginRight={1}
|
|
134
|
+
theme={theme}
|
|
135
|
+
/>
|
|
136
|
+
) : null}
|
|
137
|
+
</box>
|
|
138
|
+
{menuOpen ? (
|
|
139
|
+
<ActionsMenu
|
|
140
|
+
pinned={pinned}
|
|
141
|
+
onPin={props.onPin}
|
|
142
|
+
onRename={props.onRename}
|
|
143
|
+
onDelete={props.onDelete}
|
|
144
|
+
tokens={tokens}
|
|
145
|
+
/>
|
|
146
|
+
) : null}
|
|
147
|
+
</box>
|
|
148
|
+
);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
export function ThreadTree({
|
|
152
|
+
rows,
|
|
153
|
+
cursor,
|
|
154
|
+
activeId,
|
|
155
|
+
pinnedIds,
|
|
156
|
+
width = 30,
|
|
157
|
+
onSelect,
|
|
158
|
+
onRequestDelete,
|
|
159
|
+
onPin,
|
|
160
|
+
onRename,
|
|
161
|
+
theme,
|
|
162
|
+
}: ThreadTreeProps): React.ReactNode {
|
|
163
|
+
const tokens = useComponentTheme(theme);
|
|
164
|
+
const [actionsForId, setActionsForId] = useState<string | null>(null);
|
|
165
|
+
// leave room for the 3-char prefix, the border, and the hover kebab so a row
|
|
166
|
+
// never wraps: the title fades to fit whatever is left
|
|
167
|
+
const titleWidth = Math.max(8, width - 9);
|
|
168
|
+
const closeMenu = (): void => setActionsForId(null);
|
|
169
|
+
|
|
170
|
+
return (
|
|
171
|
+
<box style={{ flexGrow: 1, flexDirection: "column", paddingLeft: 1 }}>
|
|
172
|
+
{rows.length === 0 ? (
|
|
173
|
+
<text fg={tokens.textDim}>no threads</text>
|
|
174
|
+
) : (
|
|
175
|
+
rows.map((row) => {
|
|
176
|
+
if (row.kind === "section") {
|
|
177
|
+
return (
|
|
178
|
+
<text key={row.id} fg={tokens.textDim}>
|
|
179
|
+
{row.label}
|
|
180
|
+
</text>
|
|
181
|
+
);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
if (row.kind === "project") {
|
|
185
|
+
return (
|
|
186
|
+
<text key={row.id}>
|
|
187
|
+
<span fg={tokens.blue}>{` ${NERD.folderOpen} `}</span>
|
|
188
|
+
<span fg={tokens.textMuted}>{row.label}</span>
|
|
189
|
+
</text>
|
|
190
|
+
);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
const id = row.session.id;
|
|
194
|
+
const title = threadTitle(row.session);
|
|
195
|
+
|
|
196
|
+
return (
|
|
197
|
+
<ThreadRow
|
|
198
|
+
key={row.id}
|
|
199
|
+
title={title}
|
|
200
|
+
selected={activeId !== undefined ? activeId === id : row.selectionIndex === cursor}
|
|
201
|
+
pinned={pinnedIds?.has(id) ?? false}
|
|
202
|
+
titleWidth={titleWidth}
|
|
203
|
+
menuOpen={actionsForId === id}
|
|
204
|
+
onToggleMenu={() => setActionsForId(actionsForId === id ? null : id)}
|
|
205
|
+
onSelect={onSelect ? () => onSelect(id) : undefined}
|
|
206
|
+
onPin={onPin ? () => (onPin(id), closeMenu()) : undefined}
|
|
207
|
+
onRename={onRename ? () => (onRename(id, title), closeMenu()) : undefined}
|
|
208
|
+
onDelete={
|
|
209
|
+
onRequestDelete ? () => (onRequestDelete(id, title), closeMenu()) : undefined
|
|
210
|
+
}
|
|
211
|
+
tokens={tokens}
|
|
212
|
+
theme={theme}
|
|
213
|
+
/>
|
|
214
|
+
);
|
|
215
|
+
})
|
|
216
|
+
)}
|
|
217
|
+
</box>
|
|
218
|
+
);
|
|
219
|
+
}
|