前端 SDK 导出:LogsIcon – MentionEditorProps
本页由当前 SDK 声明自动生成。 导入入口:@woohaa3/frontend/extension-api。
LogsIcon · LucideIcon · MCP_CLIENT_MARKS · ManagedNodeLifecycleAdapter · ManagedNodeLifecycleContext · ManagedNodeLifecyclePlan · ManagedNodeRelation · MapIcon · MarqueeIcon · MaskIcon · McpClientLogo · MediaContentContext · MediaContentKind · MediaContentProvider · MediaContentService · MediaContentSource · MediaContentState · MediaDialog · MediaDialogProps · MediaIcon · MediaRemoteService · MentionCandidate · MentionEditor · MentionEditorProps
LogsIcon
日志出口。
export const LogsIcon: { ({ size, strokeWidth, absoluteStrokeWidth, ...rest }: UiIconProps): React.JSX.Element; displayName: string; };关联类型:UiIconProps
LucideIcon
外部依赖类型;由对应包定义。
export type LucideIcon = import("lucide-react").LucideIcon;MCP_CLIENT_MARKS
export const MCP_CLIENT_MARKS: Record<string, ClientMark>;关联类型:ClientMark
ManagedNodeLifecycleAdapter
export type ManagedNodeLifecycleAdapter = { readonly extensionId: string; readonly schemaVersion: 1; plan(context: ManagedNodeLifecycleContext): ManagedNodeLifecyclePlan; remapCopy?(context: ManagedNodeCopyContext): readonly ManagedNodeCopyEntry[];};关联类型:ManagedNodeLifecycleContext · ManagedNodeLifecyclePlan · ManagedNodeCopyContext · ManagedNodeCopyEntry
成员说明:
remapCopy:Pure extension-owned remapping, reused by the existing clipboard planner.
ManagedNodeLifecycleContext
Pure, JSON-only input. Hosts pass snapshots, never their mutable transaction.
export type ManagedNodeLifecycleContext = { readonly before: ServerCanvas; readonly canvas: ServerCanvas; readonly positionedNodeIds: readonly string[];};关联类型:ServerCanvas
ManagedNodeLifecyclePlan
export type ManagedNodeLifecyclePlan = { readonly nodes: readonly { node: ServerCanvas["document"]["nodes"][number]; data: CanvasNodeData; }[];};关联类型:ServerCanvas · CanvasNodeData
成员说明:
nodes:Complete desired entity set, including unchanged nodes.
ManagedNodeRelation
export type ManagedNodeRelation = { schemaVersion: 1; extensionId: string; ownerNodeId: string; entityId: string; lifecycle: ManagedNodeLifecycle;};关联类型:ManagedNodeLifecycle
MapIcon
小地图开关(概览区显隐,2026-10-26)。
export const MapIcon: { ({ size, strokeWidth, absoluteStrokeWidth, ...rest }: UiIconProps): React.JSX.Element; displayName: string; };关联类型:UiIconProps
MarqueeIcon
export const MarqueeIcon: { ({ size, strokeWidth, absoluteStrokeWidth, ...rest }: UiIconProps): React.JSX.Element; displayName: string; };关联类型:UiIconProps
MaskIcon
export const MaskIcon: { ({ size, strokeWidth, absoluteStrokeWidth, ...rest }: UiIconProps): React.JSX.Element; displayName: string; };关联类型:UiIconProps
McpClientLogo
外部 MCP 客户端的品牌图形:原样渲染(保留原始配色、渐变与底色,不做单色化)。
图形含渐变/clip/filter 的 id,同一客户端在一页里出现多次时用 useId 派生的唯一后缀
隔离,避免 id 冲突导致元素引用到错误的渐变。未登记图形的客户端回退通用插件图标,
保证宫格里不出现空格子。
export function McpClientLogo({ client, size }: { client: string; size?: number; }): React.JSX.Element;MediaContentContext
export type MediaContentContext = { canvas: ServerCanvas; nodeId: string; ref: MediaContentRef; source: MediaContentSource; signal: AbortSignal; requestId: string;};关联类型:ServerCanvas · MediaContentRef · MediaContentSource
MediaContentKind
export type MediaContentKind = "image" | "video";MediaContentProvider
export type MediaContentProvider = { providerId: string; owner: string; schemaVersions: readonly number[]; mediaKinds: readonly MediaContentKind[]; describe(canvas: ServerCanvas, ref: MediaContentRef): MediaContentSource; resolvePreview(context: MediaContentContext): Promise<StoredAsset | null>; materialize(context: MediaContentContext): Promise<StoredAsset>; snapshot(context: MediaContentContext): Promise<StoredAsset>; subscribe?(listener: () => void): () => void; dispose?(): void;};关联类型:MediaContentKind · ServerCanvas · MediaContentRef · MediaContentSource · MediaContentContext · StoredAsset
成员说明:
subscribe:Notify when browser-local producer readiness changes without a source edit.
MediaContentService
export type MediaContentService = { register(provider: MediaContentProvider): () => void; describe(canvas: ServerCanvas, ref: MediaContentRef, kind: MediaContentKind): MediaContentSource; subscribe(listener: () => void): () => void; state(nodeId: string): MediaContentState | undefined; resolve(nodeId: string, operation: "resolvePreview" | "materialize" | "snapshot", requestId: string): Promise<StoredAsset | null>; freeze(canvas: ServerCanvas, nodeIds: readonly string[], requestId: string): Promise<ServerCanvas>; retry(nodeId: string): void;};关联类型:MediaContentProvider · ServerCanvas · MediaContentRef · MediaContentKind · MediaContentSource · MediaContentState · StoredAsset
成员说明:
freeze:Snapshot a complete copy closure before creating any copied nodes.
MediaContentSource
export type MediaContentSource = { mediaKind: MediaContentKind; sourceIdentity: string; dependencyNodeIds: readonly string[];};关联类型:MediaContentKind
MediaContentState
export type MediaContentState = { status: "pending" | "ready" | "unavailable" | "failed"; diagnostic?: string; asset?: StoredAsset; sourceIdentity?: string;};关联类型:StoredAsset
MediaDialog
export function MediaDialog(props: MediaDialogProps): React.JSX.Element;关联类型:MediaDialogProps
MediaDialogProps
export type MediaDialogProps = { instanceId: string; title: string; url: string | null; kind?: "image" | "video" | "audio"; unavailableReason?: string; onClose: () => void;};成员说明:
url:稳定的合规媒体 URL;失效时为 null,显示不可用状态。unavailableReason:资产失效时的诊断信息。
MediaIcon
媒体与素材。
export const MediaIcon: { ({ size, strokeWidth, absoluteStrokeWidth, ...rest }: UiIconProps): React.JSX.Element; displayName: string; };关联类型:UiIconProps
MediaRemoteService
Media Remote:上传、稳定同源 URL 构造与受控媒体读取资格;不持有 COS 凭据。
export interface MediaRemoteService { upload(input: { file: File; canvasId?: string; onProgress?: (percent: number) => void; signal?: AbortSignal; }): Promise<UploadMediaResult>; urlFor(storageKey: string, canvasId?: string): string; isAllowedUrl(url: string): boolean; resolveCanonicalUrl(asset: unknown, canvasId?: string): string | null;}关联类型:UploadMediaResult
成员说明:
upload:上传一个文件;onProgress上报 0..100(可用时)。canvasId只在已知画布上下文传入,作为上传目标的?canvas=提示 (POST /api/media?canvas=<id>),让宿主把字节写入该画布对应的存储后端。urlFor:由稳定 storageKey 构造同源读取地址;canvasId可选(只在画布上下文附加提示)。isAllowedUrl:校验一个 canonical 资产 URL 是否为受控稳定同源引用。resolveCanonicalUrl:从 canonical asset 解析受控 URL;不合法返回 null。canvasId同上,仅作渲染提示。
MentionCandidate
export type MentionCandidate = { slotId: string; type: Woohaa3CanvasMention["type"]; label: string; disabled?: boolean;};关联类型:Woohaa3CanvasMention
成员说明:
disabled:失效候选(仍可显示,但插入前提示)。
MentionEditor
Load Lexical’s UI only when a prompt or snippet editor is opened.
export function MentionEditor(props: MentionEditorProps): React.JSX.Element;关联类型:MentionEditorProps
MentionEditorProps
export type MentionEditorProps = { value: string; onChange: (next: string) => void; candidates: readonly MentionCandidate[]; placeholder?: string; disabled?: boolean; onSubmit?: () => void; ariaLabel?: string; onSelectionApi?: (api: MentionSelectionApi | null) => void; snippetTrigger?: SnippetTrigger; isMac?: boolean; readOnly?: boolean; blocked?: boolean;};关联类型:MentionCandidate · MentionSelectionApi · SnippetTrigger
成员说明:
onSelectionApi:选区 API 变更通知;卸载时以 null 调用。snippetTrigger:#片段引用触发器。 提供时在编辑器中键入#打开片段候选;缺省(如片段插件未装配)不出现该入口。isMac:平台与提交门禁。 缺省时按非 macOS、可提交处理,保持既有调用可用。