@app-studio/web 0.8.96 → 0.8.97
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/components/ChatInput/AttachmentGroup.d.ts +19 -0
- package/dist/components/ChatInput/ChatInput/ChatInput.props.d.ts +204 -0
- package/dist/components/ChatInput/ChatInput/ChatInput.state.d.ts +33 -0
- package/dist/components/ChatInput/ChatInput/ChatInput.style.d.ts +112 -0
- package/dist/components/ChatInput/ChatInput/ChatInput.type.d.ts +67 -0
- package/dist/components/ChatInput/ChatInput/ChatInput.view.d.ts +4 -0
- package/dist/components/ChatInput/ChatInput.d.ts +21 -0
- package/dist/components/ChatInput/EditableInput.d.ts +15 -0
- package/dist/components/ChatInput/FileUploadHandler.d.ts +20 -0
- package/dist/components/ChatInput/GuideTip.d.ts +12 -0
- package/dist/components/ChatInput/MessageInput.d.ts +36 -0
- package/dist/components/ChatInput/PromptExamples.d.ts +13 -0
- package/dist/components/ChatInput/ReferenceImageButton.d.ts +11 -0
- package/dist/components/ChatInput/ReferenceImageModal.d.ts +12 -0
- package/dist/components/ChatInput/index.d.ts +9 -0
- package/dist/components/Flow/Flow/Flow.props.d.ts +144 -0
- package/dist/components/Flow/Flow/Flow.state.d.ts +95 -0
- package/dist/components/Flow/Flow/Flow.style.d.ts +40 -0
- package/dist/components/Flow/Flow/Flow.type.d.ts +181 -0
- package/dist/components/Flow/Flow/Flow.view.d.ts +28 -0
- package/dist/components/Flow/Flow.d.ts +2 -0
- package/dist/components/Flow/examples/DragAndDrop.d.ts +2 -0
- package/dist/components/Flow/examples/default.d.ts +2 -0
- package/dist/components/Flow/examples/flowchart.d.ts +2 -0
- package/dist/components/Flow/examples/index.d.ts +2 -0
- package/dist/components/Flow/examples/list.d.ts +2 -0
- package/dist/components/Flow/index.d.ts +2 -0
- package/dist/components/Icon/Icon.d.ts +7 -0
- package/dist/components/TextArea/TextArea.d.ts +22 -0
- package/dist/components/Tree/Tree/Tree.props.d.ts +106 -0
- package/dist/components/Tree/Tree/Tree.state.d.ts +38 -0
- package/dist/components/Tree/Tree/Tree.style.d.ts +41 -0
- package/dist/components/Tree/Tree/Tree.type.d.ts +133 -0
- package/dist/components/Tree/Tree/Tree.view.d.ts +36 -0
- package/dist/components/Tree/Tree.d.ts +2 -0
- package/dist/components/Tree/examples/DragAndDrop.d.ts +2 -0
- package/dist/components/Tree/examples/controlled.d.ts +2 -0
- package/dist/components/Tree/examples/custom-styling.d.ts +2 -0
- package/dist/components/Tree/examples/data-driven.d.ts +2 -0
- package/dist/components/Tree/examples/default.d.ts +2 -0
- package/dist/components/Tree/examples/index.d.ts +6 -0
- package/dist/components/Tree/examples/variants.d.ts +2 -0
- package/dist/components/index.d.ts +6 -0
- package/dist/pages/chat.page.d.ts +2 -2
- package/dist/pages/flow.page.d.ts +3 -0
- package/dist/pages/tree.page.d.ts +3 -0
- package/dist/web.cjs.development.js +3830 -281
- package/dist/web.cjs.development.js.map +1 -1
- package/dist/web.cjs.production.min.js +1 -1
- package/dist/web.cjs.production.min.js.map +1 -1
- package/dist/web.esm.js +3823 -284
- package/dist/web.esm.js.map +1 -1
- package/dist/web.umd.development.js +3832 -285
- package/dist/web.umd.development.js.map +1 -1
- package/dist/web.umd.production.min.js +1 -1
- package/dist/web.umd.production.min.js.map +1 -1
- package/package.json +3 -3
- package/dist/components/Chat/AIResponseDisplay/AIResponseDisplay/AIResponseDisplay.props.d.ts +0 -40
- package/dist/components/Chat/AIResponseDisplay/AIResponseDisplay/AIResponseDisplay.style.d.ts +0 -10
- package/dist/components/Chat/AIResponseDisplay/AIResponseDisplay/AIResponseDisplay.type.d.ts +0 -23
- package/dist/components/Chat/AIResponseDisplay/AIResponseDisplay/AIResponseDisplay.view.d.ts +0 -9
- package/dist/components/Chat/AIResponseDisplay/AIResponseDisplay.d.ts +0 -10
- package/dist/components/Chat/AIResponseDisplay/examples/basic.d.ts +0 -5
- package/dist/components/Chat/AIResponseDisplay/examples/index.d.ts +0 -4
- package/dist/components/Chat/ChatInterface/ChatInterface/ChatInterface.props.d.ts +0 -56
- package/dist/components/Chat/ChatInterface/ChatInterface/ChatInterface.state.d.ts +0 -12
- package/dist/components/Chat/ChatInterface/ChatInterface/ChatInterface.style.d.ts +0 -10
- package/dist/components/Chat/ChatInterface/ChatInterface/ChatInterface.type.d.ts +0 -19
- package/dist/components/Chat/ChatInterface/ChatInterface/ChatInterface.view.d.ts +0 -14
- package/dist/components/Chat/ChatInterface/ChatInterface.d.ts +0 -11
- package/dist/components/Chat/CodeBlock/CodeBlock/CodeBlock.props.d.ts +0 -35
- package/dist/components/Chat/CodeBlock/CodeBlock/CodeBlock.state.d.ts +0 -7
- package/dist/components/Chat/CodeBlock/CodeBlock/CodeBlock.style.d.ts +0 -12
- package/dist/components/Chat/CodeBlock/CodeBlock/CodeBlock.type.d.ts +0 -11
- package/dist/components/Chat/CodeBlock/CodeBlock/CodeBlock.view.d.ts +0 -11
- package/dist/components/Chat/CodeBlock/CodeBlock.d.ts +0 -10
- package/dist/components/Chat/FileUploader/FileUploader/FileUploader.props.d.ts +0 -47
- package/dist/components/Chat/FileUploader/FileUploader/FileUploader.state.d.ts +0 -15
- package/dist/components/Chat/FileUploader/FileUploader/FileUploader.style.d.ts +0 -15
- package/dist/components/Chat/FileUploader/FileUploader/FileUploader.type.d.ts +0 -24
- package/dist/components/Chat/FileUploader/FileUploader/FileUploader.view.d.ts +0 -18
- package/dist/components/Chat/FileUploader/FileUploader.d.ts +0 -11
- package/dist/components/Chat/LoadingIndicator/LoadingIndicator/LoadingIndicator.props.d.ts +0 -27
- package/dist/components/Chat/LoadingIndicator/LoadingIndicator/LoadingIndicator.style.d.ts +0 -13
- package/dist/components/Chat/LoadingIndicator/LoadingIndicator/LoadingIndicator.type.d.ts +0 -11
- package/dist/components/Chat/LoadingIndicator/LoadingIndicator/LoadingIndicator.view.d.ts +0 -6
- package/dist/components/Chat/LoadingIndicator/LoadingIndicator.d.ts +0 -10
- package/dist/components/Chat/MessageBubble/MessageBubble/MessageBubble.props.d.ts +0 -36
- package/dist/components/Chat/MessageBubble/MessageBubble/MessageBubble.state.d.ts +0 -14
- package/dist/components/Chat/MessageBubble/MessageBubble/MessageBubble.style.d.ts +0 -10
- package/dist/components/Chat/MessageBubble/MessageBubble/MessageBubble.type.d.ts +0 -11
- package/dist/components/Chat/MessageBubble/MessageBubble/MessageBubble.view.d.ts +0 -17
- package/dist/components/Chat/MessageBubble/MessageBubble.d.ts +0 -10
- package/dist/components/Chat/ModelSelector/ModelSelector/ModelSelector.props.d.ts +0 -39
- package/dist/components/Chat/ModelSelector/ModelSelector/ModelSelector.state.d.ts +0 -12
- package/dist/components/Chat/ModelSelector/ModelSelector/ModelSelector.style.d.ts +0 -11
- package/dist/components/Chat/ModelSelector/ModelSelector/ModelSelector.type.d.ts +0 -21
- package/dist/components/Chat/ModelSelector/ModelSelector/ModelSelector.view.d.ts +0 -16
- package/dist/components/Chat/ModelSelector/ModelSelector.d.ts +0 -10
- package/dist/components/Chat/PromptInput/PromptInput/PromptInput.props.d.ts +0 -59
- package/dist/components/Chat/PromptInput/PromptInput/PromptInput.state.d.ts +0 -13
- package/dist/components/Chat/PromptInput/PromptInput/PromptInput.style.d.ts +0 -10
- package/dist/components/Chat/PromptInput/PromptInput/PromptInput.type.d.ts +0 -11
- package/dist/components/Chat/PromptInput/PromptInput/PromptInput.view.d.ts +0 -16
- package/dist/components/Chat/PromptInput/PromptInput.d.ts +0 -10
- package/dist/components/Chat/SettingsPanel/SettingsPanel/SettingsPanel.props.d.ts +0 -31
- package/dist/components/Chat/SettingsPanel/SettingsPanel/SettingsPanel.style.d.ts +0 -11
- package/dist/components/Chat/SettingsPanel/SettingsPanel/SettingsPanel.type.d.ts +0 -30
- package/dist/components/Chat/SettingsPanel/SettingsPanel/SettingsPanel.view.d.ts +0 -6
- package/dist/components/Chat/SettingsPanel/SettingsPanel.d.ts +0 -10
- package/dist/components/Chat/ToolSelector/ToolSelector/ToolSelector.props.d.ts +0 -39
- package/dist/components/Chat/ToolSelector/ToolSelector/ToolSelector.style.d.ts +0 -10
- package/dist/components/Chat/ToolSelector/ToolSelector/ToolSelector.type.d.ts +0 -20
- package/dist/components/Chat/ToolSelector/ToolSelector/ToolSelector.view.d.ts +0 -6
- package/dist/components/Chat/ToolSelector/ToolSelector.d.ts +0 -10
- package/dist/components/Chat/index.d.ts +0 -16
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* MessageBubble View
|
|
3
|
-
*/
|
|
4
|
-
import React from 'react';
|
|
5
|
-
import { MessageBubbleProps } from './MessageBubble.props';
|
|
6
|
-
interface Props extends MessageBubbleProps {
|
|
7
|
-
isEditing: boolean;
|
|
8
|
-
editValue: string;
|
|
9
|
-
isHovered: boolean;
|
|
10
|
-
setEditValue: (value: string) => void;
|
|
11
|
-
setIsHovered: (value: boolean) => void;
|
|
12
|
-
startEditing: (initialContent: string) => void;
|
|
13
|
-
cancelEditing: () => void;
|
|
14
|
-
saveEditing: () => void;
|
|
15
|
-
}
|
|
16
|
-
export declare const MessageBubbleView: React.FC<Props>;
|
|
17
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* MessageBubble Component
|
|
3
|
-
*
|
|
4
|
-
* A component for displaying chat messages with different styles based on the message type.
|
|
5
|
-
* Supports user, assistant, system, and error message types.
|
|
6
|
-
*/
|
|
7
|
-
import React from 'react';
|
|
8
|
-
import { MessageBubbleProps } from './MessageBubble/MessageBubble.props';
|
|
9
|
-
export declare const MessageBubble: React.FC<MessageBubbleProps>;
|
|
10
|
-
export type { MessageBubbleProps } from './MessageBubble/MessageBubble.props';
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ModelSelector Props
|
|
3
|
-
*/
|
|
4
|
-
import { ViewProps } from 'app-studio';
|
|
5
|
-
import { AIModel, ModelSelectorStyles } from './ModelSelector.type';
|
|
6
|
-
export interface ModelSelectorProps extends ViewProps {
|
|
7
|
-
/**
|
|
8
|
-
* List of available models
|
|
9
|
-
*/
|
|
10
|
-
models: AIModel[];
|
|
11
|
-
/**
|
|
12
|
-
* Currently selected model ID
|
|
13
|
-
*/
|
|
14
|
-
selectedModelId: string;
|
|
15
|
-
/**
|
|
16
|
-
* Callback function when a model is selected
|
|
17
|
-
*/
|
|
18
|
-
onModelSelect: (modelId: string) => void;
|
|
19
|
-
/**
|
|
20
|
-
* Whether to show model details
|
|
21
|
-
*/
|
|
22
|
-
showModelDetails?: boolean;
|
|
23
|
-
/**
|
|
24
|
-
* Whether to group models by provider
|
|
25
|
-
*/
|
|
26
|
-
groupByProvider?: boolean;
|
|
27
|
-
/**
|
|
28
|
-
* Whether to show a search input
|
|
29
|
-
*/
|
|
30
|
-
enableSearch?: boolean;
|
|
31
|
-
/**
|
|
32
|
-
* Whether the selector is disabled
|
|
33
|
-
*/
|
|
34
|
-
isDisabled?: boolean;
|
|
35
|
-
/**
|
|
36
|
-
* Custom styles for the component
|
|
37
|
-
*/
|
|
38
|
-
styles?: ModelSelectorStyles;
|
|
39
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ModelSelector State
|
|
3
|
-
*/
|
|
4
|
-
import { AIModel } from './ModelSelector.type';
|
|
5
|
-
export declare const useModelSelectorState: (models: AIModel[], _selectedModelId: string, enableSearch: boolean) => {
|
|
6
|
-
isOpen: boolean;
|
|
7
|
-
searchQuery: string;
|
|
8
|
-
filteredModels: AIModel[];
|
|
9
|
-
toggleDropdown: () => void;
|
|
10
|
-
closeDropdown: () => void;
|
|
11
|
-
handleSearchChange: (query: string) => void;
|
|
12
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ModelSelector Styles
|
|
3
|
-
*/
|
|
4
|
-
import { ViewProps } from 'app-studio';
|
|
5
|
-
export declare const containerStyles: ViewProps;
|
|
6
|
-
export declare const selectedModelStyles: ViewProps;
|
|
7
|
-
export declare const dropdownStyles: ViewProps;
|
|
8
|
-
export declare const searchInputStyles: ViewProps;
|
|
9
|
-
export declare const optionStyles: (isSelected: boolean) => ViewProps;
|
|
10
|
-
export declare const providerGroupStyles: ViewProps;
|
|
11
|
-
export declare const modelInfoStyles: ViewProps;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ModelSelector Types
|
|
3
|
-
*/
|
|
4
|
-
import { ViewProps } from 'app-studio';
|
|
5
|
-
export interface AIModel {
|
|
6
|
-
id: string;
|
|
7
|
-
name: string;
|
|
8
|
-
provider: string;
|
|
9
|
-
description?: string;
|
|
10
|
-
maxTokens?: number;
|
|
11
|
-
capabilities?: string[];
|
|
12
|
-
tags?: string[];
|
|
13
|
-
isAvailable?: boolean;
|
|
14
|
-
}
|
|
15
|
-
export interface ModelSelectorStyles {
|
|
16
|
-
container?: ViewProps;
|
|
17
|
-
dropdown?: ViewProps;
|
|
18
|
-
option?: ViewProps;
|
|
19
|
-
selectedModel?: ViewProps;
|
|
20
|
-
modelInfo?: ViewProps;
|
|
21
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ModelSelector View
|
|
3
|
-
*/
|
|
4
|
-
import React from 'react';
|
|
5
|
-
import { ModelSelectorProps } from './ModelSelector.props';
|
|
6
|
-
import { AIModel } from './ModelSelector.type';
|
|
7
|
-
interface Props extends ModelSelectorProps {
|
|
8
|
-
isOpen: boolean;
|
|
9
|
-
searchQuery: string;
|
|
10
|
-
filteredModels: AIModel[];
|
|
11
|
-
toggleDropdown: () => void;
|
|
12
|
-
closeDropdown: () => void;
|
|
13
|
-
handleSearchChange: (query: string) => void;
|
|
14
|
-
}
|
|
15
|
-
export declare const ModelSelectorView: React.FC<Props>;
|
|
16
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ModelSelector Component
|
|
3
|
-
*
|
|
4
|
-
* A dropdown component for selecting AI models with filtering and grouping options.
|
|
5
|
-
*/
|
|
6
|
-
import React from 'react';
|
|
7
|
-
import { ModelSelectorProps } from './ModelSelector/ModelSelector.props';
|
|
8
|
-
export declare const ModelSelector: React.FC<ModelSelectorProps>;
|
|
9
|
-
export type { ModelSelectorProps } from './ModelSelector/ModelSelector.props';
|
|
10
|
-
export type { AIModel } from './ModelSelector/ModelSelector.type';
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* PromptInput Props
|
|
3
|
-
*/
|
|
4
|
-
import { ViewProps } from 'app-studio';
|
|
5
|
-
import { PromptInputStyles } from './PromptInput.type';
|
|
6
|
-
export interface PromptInputProps extends ViewProps {
|
|
7
|
-
/**
|
|
8
|
-
* Current value of the input
|
|
9
|
-
*/
|
|
10
|
-
value: string;
|
|
11
|
-
/**
|
|
12
|
-
* Callback function when the input value changes
|
|
13
|
-
*/
|
|
14
|
-
onChange: (value: string) => void;
|
|
15
|
-
/**
|
|
16
|
-
* Callback function when the input is submitted
|
|
17
|
-
*/
|
|
18
|
-
onSubmit: () => void;
|
|
19
|
-
/**
|
|
20
|
-
* Placeholder text for the input
|
|
21
|
-
*/
|
|
22
|
-
placeholder?: string;
|
|
23
|
-
/**
|
|
24
|
-
* Whether the input is disabled
|
|
25
|
-
*/
|
|
26
|
-
isDisabled?: boolean;
|
|
27
|
-
/**
|
|
28
|
-
* Whether to show a loading indicator
|
|
29
|
-
*/
|
|
30
|
-
isLoading?: boolean;
|
|
31
|
-
/**
|
|
32
|
-
* Whether to enable file uploads
|
|
33
|
-
*/
|
|
34
|
-
enableFileUpload?: boolean;
|
|
35
|
-
/**
|
|
36
|
-
* Whether to enable voice input
|
|
37
|
-
*/
|
|
38
|
-
enableVoiceInput?: boolean;
|
|
39
|
-
/**
|
|
40
|
-
* Whether to enable AI suggestions
|
|
41
|
-
*/
|
|
42
|
-
enableSuggestions?: boolean;
|
|
43
|
-
/**
|
|
44
|
-
* Maximum number of rows for the textarea
|
|
45
|
-
*/
|
|
46
|
-
maxRows?: number;
|
|
47
|
-
/**
|
|
48
|
-
* Minimum number of rows for the textarea
|
|
49
|
-
*/
|
|
50
|
-
minRows?: number;
|
|
51
|
-
/**
|
|
52
|
-
* Whether to use a transparent background
|
|
53
|
-
*/
|
|
54
|
-
transparentBackground?: boolean;
|
|
55
|
-
/**
|
|
56
|
-
* Custom styles for the component
|
|
57
|
-
*/
|
|
58
|
-
styles?: PromptInputStyles;
|
|
59
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* PromptInput State
|
|
3
|
-
*/
|
|
4
|
-
/// <reference types="react" />
|
|
5
|
-
export declare const usePromptInputState: (value: string, onChange: (value: string) => void, onSubmit: () => void, enableSuggestions: boolean) => {
|
|
6
|
-
suggestions: string[];
|
|
7
|
-
selectedSuggestionIndex: number;
|
|
8
|
-
textareaRef: import("react").RefObject<HTMLTextAreaElement>;
|
|
9
|
-
handleKeyDown: (e: React.KeyboardEvent) => void;
|
|
10
|
-
handleSuggestionClick: (suggestion: string) => void;
|
|
11
|
-
handleFocus: () => void;
|
|
12
|
-
handleBlur: () => void;
|
|
13
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* PromptInput Styles
|
|
3
|
-
*/
|
|
4
|
-
import { ViewProps } from 'app-studio';
|
|
5
|
-
export declare const containerStyles: ViewProps;
|
|
6
|
-
export declare const getInputContainerStyles: (transparentBackground: boolean) => ViewProps;
|
|
7
|
-
export declare const textareaStyles: ViewProps;
|
|
8
|
-
export declare const buttonsContainerStyles: ViewProps;
|
|
9
|
-
export declare const suggestionsContainerStyles: ViewProps;
|
|
10
|
-
export declare const suggestionStyles: (isSelected: boolean) => ViewProps;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* PromptInput Types
|
|
3
|
-
*/
|
|
4
|
-
import { ViewProps } from 'app-studio';
|
|
5
|
-
export interface PromptInputStyles {
|
|
6
|
-
container?: ViewProps;
|
|
7
|
-
textarea?: ViewProps;
|
|
8
|
-
buttonsContainer?: ViewProps;
|
|
9
|
-
suggestionsContainer?: ViewProps;
|
|
10
|
-
suggestion?: ViewProps;
|
|
11
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* PromptInput View
|
|
3
|
-
*/
|
|
4
|
-
import React from 'react';
|
|
5
|
-
import { PromptInputProps } from './PromptInput.props';
|
|
6
|
-
interface Props extends PromptInputProps {
|
|
7
|
-
suggestions: string[];
|
|
8
|
-
selectedSuggestionIndex: number;
|
|
9
|
-
textareaRef: React.RefObject<HTMLTextAreaElement>;
|
|
10
|
-
handleKeyDown: (e: React.KeyboardEvent) => void;
|
|
11
|
-
handleSuggestionClick: (suggestion: string) => void;
|
|
12
|
-
handleFocus: () => void;
|
|
13
|
-
handleBlur: () => void;
|
|
14
|
-
}
|
|
15
|
-
export declare const PromptInputView: React.FC<Props>;
|
|
16
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* PromptInput Component
|
|
3
|
-
*
|
|
4
|
-
* A textarea input component specifically designed for AI chat interfaces.
|
|
5
|
-
* Includes features like suggestions, file upload, and voice input.
|
|
6
|
-
*/
|
|
7
|
-
import React from 'react';
|
|
8
|
-
import { PromptInputProps } from './PromptInput/PromptInput.props';
|
|
9
|
-
export declare const PromptInput: React.FC<PromptInputProps>;
|
|
10
|
-
export type { PromptInputProps } from './PromptInput/PromptInput.props';
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* SettingsPanel Props
|
|
3
|
-
*/
|
|
4
|
-
import { ViewProps } from 'app-studio';
|
|
5
|
-
import { SettingItem, SettingsPanelStyles } from './SettingsPanel.type';
|
|
6
|
-
export interface SettingsPanelProps extends ViewProps {
|
|
7
|
-
/**
|
|
8
|
-
* Title of the settings panel
|
|
9
|
-
*/
|
|
10
|
-
title?: string;
|
|
11
|
-
/**
|
|
12
|
-
* List of setting items
|
|
13
|
-
*/
|
|
14
|
-
settings: SettingItem[];
|
|
15
|
-
/**
|
|
16
|
-
* Callback function when a setting value changes
|
|
17
|
-
*/
|
|
18
|
-
onSettingChange: (id: string, value: any) => void;
|
|
19
|
-
/**
|
|
20
|
-
* Whether to group settings by category
|
|
21
|
-
*/
|
|
22
|
-
groupByCategory?: boolean;
|
|
23
|
-
/**
|
|
24
|
-
* Whether the panel is disabled
|
|
25
|
-
*/
|
|
26
|
-
isDisabled?: boolean;
|
|
27
|
-
/**
|
|
28
|
-
* Custom styles for the component
|
|
29
|
-
*/
|
|
30
|
-
styles?: SettingsPanelStyles;
|
|
31
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* SettingsPanel Styles
|
|
3
|
-
*/
|
|
4
|
-
import { ViewProps } from 'app-studio';
|
|
5
|
-
export declare const containerStyles: ViewProps;
|
|
6
|
-
export declare const headerStyles: ViewProps;
|
|
7
|
-
export declare const contentStyles: ViewProps;
|
|
8
|
-
export declare const settingItemStyles: ViewProps;
|
|
9
|
-
export declare const settingInfoStyles: ViewProps;
|
|
10
|
-
export declare const settingControlStyles: ViewProps;
|
|
11
|
-
export declare const categoryHeaderStyles: ViewProps;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* SettingsPanel Types
|
|
3
|
-
*/
|
|
4
|
-
import { ViewProps } from 'app-studio';
|
|
5
|
-
export interface SettingItem {
|
|
6
|
-
id: string;
|
|
7
|
-
label: string;
|
|
8
|
-
description?: string;
|
|
9
|
-
type: 'toggle' | 'select' | 'slider' | 'input' | 'button';
|
|
10
|
-
value?: any;
|
|
11
|
-
options?: {
|
|
12
|
-
label: string;
|
|
13
|
-
value: any;
|
|
14
|
-
}[];
|
|
15
|
-
min?: number;
|
|
16
|
-
max?: number;
|
|
17
|
-
step?: number;
|
|
18
|
-
placeholder?: string;
|
|
19
|
-
onClick?: () => void;
|
|
20
|
-
category?: string;
|
|
21
|
-
}
|
|
22
|
-
export interface SettingsPanelStyles {
|
|
23
|
-
container?: ViewProps;
|
|
24
|
-
header?: ViewProps;
|
|
25
|
-
content?: ViewProps;
|
|
26
|
-
settingItem?: ViewProps;
|
|
27
|
-
settingInfo?: ViewProps;
|
|
28
|
-
settingControl?: ViewProps;
|
|
29
|
-
categoryHeader?: ViewProps;
|
|
30
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* SettingsPanel Component
|
|
3
|
-
*
|
|
4
|
-
* A panel for displaying and managing AI application settings.
|
|
5
|
-
*/
|
|
6
|
-
import React from 'react';
|
|
7
|
-
import { SettingsPanelProps } from './SettingsPanel/SettingsPanel.props';
|
|
8
|
-
export declare const SettingsPanel: React.FC<SettingsPanelProps>;
|
|
9
|
-
export type { SettingsPanelProps } from './SettingsPanel/SettingsPanel.props';
|
|
10
|
-
export type { SettingItem } from './SettingsPanel/SettingsPanel.type';
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ToolSelector Props
|
|
3
|
-
*/
|
|
4
|
-
import { ViewProps } from 'app-studio';
|
|
5
|
-
import { AITool, ToolSelectorStyles } from './ToolSelector.type';
|
|
6
|
-
export interface ToolSelectorProps extends ViewProps {
|
|
7
|
-
/**
|
|
8
|
-
* List of available tools
|
|
9
|
-
*/
|
|
10
|
-
tools: AITool[];
|
|
11
|
-
/**
|
|
12
|
-
* Currently selected tool IDs
|
|
13
|
-
*/
|
|
14
|
-
selectedToolIds: string[];
|
|
15
|
-
/**
|
|
16
|
-
* Callback function when a tool is selected or deselected
|
|
17
|
-
*/
|
|
18
|
-
onToolToggle: (toolId: string) => void;
|
|
19
|
-
/**
|
|
20
|
-
* Whether to group tools by category
|
|
21
|
-
*/
|
|
22
|
-
groupByCategory?: boolean;
|
|
23
|
-
/**
|
|
24
|
-
* Whether to show tool descriptions
|
|
25
|
-
*/
|
|
26
|
-
showDescriptions?: boolean;
|
|
27
|
-
/**
|
|
28
|
-
* Whether to show tool icons
|
|
29
|
-
*/
|
|
30
|
-
showIcons?: boolean;
|
|
31
|
-
/**
|
|
32
|
-
* Whether the selector is disabled
|
|
33
|
-
*/
|
|
34
|
-
isDisabled?: boolean;
|
|
35
|
-
/**
|
|
36
|
-
* Custom styles for the component
|
|
37
|
-
*/
|
|
38
|
-
styles?: ToolSelectorStyles;
|
|
39
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ToolSelector Styles
|
|
3
|
-
*/
|
|
4
|
-
import { ViewProps } from 'app-studio';
|
|
5
|
-
export declare const containerStyles: ViewProps;
|
|
6
|
-
export declare const toolsContainerStyles: ViewProps;
|
|
7
|
-
export declare const toolItemStyles: (isSelected: boolean, isEnabled: boolean) => ViewProps;
|
|
8
|
-
export declare const toolIconStyles: ViewProps;
|
|
9
|
-
export declare const toolInfoStyles: ViewProps;
|
|
10
|
-
export declare const categoryHeaderStyles: ViewProps;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ToolSelector Types
|
|
3
|
-
*/
|
|
4
|
-
import { ViewProps } from 'app-studio';
|
|
5
|
-
export interface AITool {
|
|
6
|
-
id: string;
|
|
7
|
-
name: string;
|
|
8
|
-
description?: string;
|
|
9
|
-
icon?: string;
|
|
10
|
-
category?: string;
|
|
11
|
-
isEnabled?: boolean;
|
|
12
|
-
}
|
|
13
|
-
export interface ToolSelectorStyles {
|
|
14
|
-
container?: ViewProps;
|
|
15
|
-
toolsContainer?: ViewProps;
|
|
16
|
-
toolItem?: ViewProps;
|
|
17
|
-
toolIcon?: ViewProps;
|
|
18
|
-
toolInfo?: ViewProps;
|
|
19
|
-
categoryHeader?: ViewProps;
|
|
20
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ToolSelector Component
|
|
3
|
-
*
|
|
4
|
-
* A component for selecting AI tools and capabilities to use in a conversation.
|
|
5
|
-
*/
|
|
6
|
-
import React from 'react';
|
|
7
|
-
import { ToolSelectorProps } from './ToolSelector/ToolSelector.props';
|
|
8
|
-
export declare const ToolSelector: React.FC<ToolSelectorProps>;
|
|
9
|
-
export type { ToolSelectorProps } from './ToolSelector/ToolSelector.props';
|
|
10
|
-
export type { AITool } from './ToolSelector/ToolSelector.type';
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* App Studio Components for AI Applications
|
|
3
|
-
*
|
|
4
|
-
* This module exports a collection of components specifically designed
|
|
5
|
-
* for building AI-powered applications.
|
|
6
|
-
*/
|
|
7
|
-
export * from './ChatInterface/ChatInterface';
|
|
8
|
-
export * from './MessageBubble/MessageBubble';
|
|
9
|
-
export * from './PromptInput/PromptInput';
|
|
10
|
-
export * from './ModelSelector/ModelSelector';
|
|
11
|
-
export * from './AIResponseDisplay/AIResponseDisplay';
|
|
12
|
-
export * from './LoadingIndicator/LoadingIndicator';
|
|
13
|
-
export * from './ToolSelector/ToolSelector';
|
|
14
|
-
export * from './SettingsPanel/SettingsPanel';
|
|
15
|
-
export * from './FileUploader/FileUploader';
|
|
16
|
-
export * from './CodeBlock/CodeBlock';
|