mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-15 02:42:45 +08:00
feat: add terminal panel components and Zustand store for state management
- Created a barrel export file for terminal panel components. - Implemented Zustand store for managing terminal panel UI state, including visibility, active terminal, view mode, and terminal ordering. - Added actions for opening/closing the terminal panel, setting the active terminal, changing view modes, and managing terminal order. - Introduced selectors for accessing terminal panel state properties.
This commit is contained in:
@@ -6,20 +6,12 @@
|
||||
import React from 'react';
|
||||
import type { ComponentRenderer } from '../../core/A2UIComponentRegistry';
|
||||
import { resolveTextContent } from '../A2UIRenderer';
|
||||
import type { TextComponent } from '../../core/A2UITypes';
|
||||
|
||||
interface A2UITextProps {
|
||||
component: TextComponent;
|
||||
state: Record<string, unknown>;
|
||||
onAction: (actionId: string, params: Record<string, unknown>) => void | Promise<void>;
|
||||
resolveBinding: (binding: { path: string }) => unknown;
|
||||
}
|
||||
|
||||
/**
|
||||
* A2UI Text Component Renderer
|
||||
* Maps A2UI Text usageHint to HTML elements (h1, h2, h3, p, span, code)
|
||||
*/
|
||||
export const A2UIText: ComponentRenderer = ({ component, state, onAction, resolveBinding }) => {
|
||||
export const A2UIText: ComponentRenderer = ({ component, resolveBinding }) => {
|
||||
const { Text } = component as { Text: { text: unknown; usageHint?: string } };
|
||||
|
||||
// Resolve text content
|
||||
|
||||
Reference in New Issue
Block a user