@blade-hq/agent-react 2612.0.0-beta.41 → 2612.0.0-beta.44
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/dist/{chunk-F7BR2KMK.js → chunk-TB2MEMX6.js} +6 -6
- package/dist/{chunk-F7BR2KMK.js.map → chunk-TB2MEMX6.js.map} +1 -1
- package/dist/index.js +1 -1
- package/dist/internal.js +1 -1
- package/dist/rich-input/ConnectButton.d.ts +3 -1
- package/dist/rich-input/InputActionSubmenu.d.ts +10 -0
- package/dist/rich-input/SkillActionMenu.d.ts +10 -0
- package/dist/rich-input/index.d.ts +2 -0
- package/dist/rich-input.js +383 -248
- package/dist/rich-input.js.map +1 -1
- package/dist/style.full.css +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
package/dist/internal.js
CHANGED
|
@@ -9,8 +9,10 @@ import { type PluginConnectorSelection } from "../components/connector-panel-typ
|
|
|
9
9
|
*
|
|
10
10
|
* 手机端不再隐藏:窄屏下面板宽度受视口约束,入口本身照常可用。
|
|
11
11
|
*/
|
|
12
|
-
export declare function ConnectButton({ sessionId, open, onOpenChange, pendingPlugins, onPendingPluginsChange, pendingPluginsDisabledReason, pendingComputers, onPendingComputersChange, onPluginsChanged, }: {
|
|
12
|
+
export declare function ConnectButton({ sessionId, open, onOpenChange, pendingPlugins, onPendingPluginsChange, pendingPluginsDisabledReason, pendingComputers, onPendingComputersChange, onPluginsChanged, variant, }: {
|
|
13
13
|
sessionId: string | null;
|
|
14
|
+
/** Menu row for a parent composer action menu; default toolbar icon is unchanged. */
|
|
15
|
+
variant?: "icon" | "submenu";
|
|
14
16
|
open?: boolean;
|
|
15
17
|
onOpenChange?: (open: boolean) => void;
|
|
16
18
|
pendingPlugins?: PluginConnectorSelection[];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
/** Composer submenus keep forms/search usable and flip into the viewport on narrow screens. */
|
|
3
|
+
export declare function InputActionSubmenu({ label, icon, open, onOpenChange, children, disabled }: {
|
|
4
|
+
label: string;
|
|
5
|
+
icon: ReactNode;
|
|
6
|
+
open: boolean;
|
|
7
|
+
onOpenChange: (open: boolean) => void;
|
|
8
|
+
children: ReactNode;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ChatRenderMode } from "../chat/runtime/environment";
|
|
2
|
+
import type { SkillSuggestionItem } from "./extensions/skill-mention";
|
|
3
|
+
export declare function SkillActionMenu({ open, onOpenChange, renderMode, onSelect, onManage, disabled }: {
|
|
4
|
+
open: boolean;
|
|
5
|
+
onOpenChange: (open: boolean) => void;
|
|
6
|
+
renderMode: ChatRenderMode;
|
|
7
|
+
onSelect: (skill: SkillSuggestionItem) => void;
|
|
8
|
+
onManage: () => void;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -49,3 +49,5 @@ export * from "./use-reference-candidates";
|
|
|
49
49
|
export { PluginMention, isPluginSuggestionItem } from "./extensions/plugin-mention";
|
|
50
50
|
export { getPluginSuggestionItems } from "./lib/plugin-suggestions";
|
|
51
51
|
export { collectPluginMentions, collectMessageMentions } from "./lib/composer-content";
|
|
52
|
+
export * from "./InputActionSubmenu";
|
|
53
|
+
export * from "./SkillActionMenu";
|