feat: enhance ResearchBlock tab functionality

This commit is contained in:
Jiang Feng
2025-04-27 14:51:00 +08:00
parent 0e10362639
commit f35131da19
18 changed files with 77 additions and 395 deletions

View File

@@ -1,3 +1,6 @@
// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
// SPDX-License-Identifier: MIT
import { CommandGroup, CommandItem, CommandSeparator } from "../../ui/command";
import { useEditor } from "novel";
import { Check, TextQuote, TrashIcon } from "lucide-react";

View File

@@ -1,3 +1,6 @@
// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
// SPDX-License-Identifier: MIT
import {
ArrowDownWideNarrow,
CheckCheck,
@@ -14,6 +17,7 @@ const options = [
label: "Improve writing",
icon: RefreshCcwDot,
},
// TODO: add this back in
// {
// value: "fix",
// label: "Fix grammar",

View File

@@ -1,3 +1,6 @@
// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
// SPDX-License-Identifier: MIT
"use client";
import { Command, CommandInput } from "../../ui/command";

View File

@@ -1,3 +1,6 @@
// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
// SPDX-License-Identifier: MIT
import { EditorBubble, removeAIHighlight, useEditor } from "novel";
import { Fragment, type ReactNode, useEffect } from "react";
import { Button } from "../../ui/button";