@app-studio/web 0.8.95 → 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.
Files changed (117) hide show
  1. package/dist/components/ChatInput/AttachmentGroup.d.ts +19 -0
  2. package/dist/components/ChatInput/ChatInput/ChatInput.props.d.ts +204 -0
  3. package/dist/components/ChatInput/ChatInput/ChatInput.state.d.ts +33 -0
  4. package/dist/components/ChatInput/ChatInput/ChatInput.style.d.ts +112 -0
  5. package/dist/components/ChatInput/ChatInput/ChatInput.type.d.ts +67 -0
  6. package/dist/components/ChatInput/ChatInput/ChatInput.view.d.ts +4 -0
  7. package/dist/components/ChatInput/ChatInput.d.ts +21 -0
  8. package/dist/components/ChatInput/EditableInput.d.ts +15 -0
  9. package/dist/components/ChatInput/FileUploadHandler.d.ts +20 -0
  10. package/dist/components/ChatInput/GuideTip.d.ts +12 -0
  11. package/dist/components/ChatInput/MessageInput.d.ts +36 -0
  12. package/dist/components/ChatInput/PromptExamples.d.ts +13 -0
  13. package/dist/components/ChatInput/ReferenceImageButton.d.ts +11 -0
  14. package/dist/components/ChatInput/ReferenceImageModal.d.ts +12 -0
  15. package/dist/components/ChatInput/index.d.ts +9 -0
  16. package/dist/components/Flow/Flow/Flow.props.d.ts +144 -0
  17. package/dist/components/Flow/Flow/Flow.state.d.ts +95 -0
  18. package/dist/components/Flow/Flow/Flow.style.d.ts +40 -0
  19. package/dist/components/Flow/Flow/Flow.type.d.ts +181 -0
  20. package/dist/components/Flow/Flow/Flow.view.d.ts +28 -0
  21. package/dist/components/Flow/Flow.d.ts +2 -0
  22. package/dist/components/Flow/examples/DragAndDrop.d.ts +2 -0
  23. package/dist/components/Flow/examples/default.d.ts +2 -0
  24. package/dist/components/Flow/examples/flowchart.d.ts +2 -0
  25. package/dist/components/Flow/examples/index.d.ts +2 -0
  26. package/dist/components/Flow/examples/list.d.ts +2 -0
  27. package/dist/components/Flow/index.d.ts +2 -0
  28. package/dist/components/Icon/Icon.d.ts +7 -0
  29. package/dist/components/TextArea/TextArea.d.ts +22 -0
  30. package/dist/components/Toast/Toast.d.ts +2 -1
  31. package/dist/components/Tree/Tree/Tree.props.d.ts +106 -0
  32. package/dist/components/Tree/Tree/Tree.state.d.ts +38 -0
  33. package/dist/components/Tree/Tree/Tree.style.d.ts +41 -0
  34. package/dist/components/Tree/Tree/Tree.type.d.ts +133 -0
  35. package/dist/components/Tree/Tree/Tree.view.d.ts +36 -0
  36. package/dist/components/Tree/Tree.d.ts +2 -0
  37. package/dist/components/Tree/examples/DragAndDrop.d.ts +2 -0
  38. package/dist/components/Tree/examples/controlled.d.ts +2 -0
  39. package/dist/components/Tree/examples/custom-styling.d.ts +2 -0
  40. package/dist/components/Tree/examples/data-driven.d.ts +2 -0
  41. package/dist/components/Tree/examples/default.d.ts +2 -0
  42. package/dist/components/Tree/examples/index.d.ts +6 -0
  43. package/dist/components/Tree/examples/variants.d.ts +2 -0
  44. package/dist/components/index.d.ts +6 -0
  45. package/dist/pages/chat.page.d.ts +2 -2
  46. package/dist/pages/flow.page.d.ts +3 -0
  47. package/dist/pages/tree.page.d.ts +3 -0
  48. package/dist/web.cjs.development.js +3831 -281
  49. package/dist/web.cjs.development.js.map +1 -1
  50. package/dist/web.cjs.production.min.js +1 -1
  51. package/dist/web.cjs.production.min.js.map +1 -1
  52. package/dist/web.esm.js +3823 -284
  53. package/dist/web.esm.js.map +1 -1
  54. package/dist/web.umd.development.js +3833 -285
  55. package/dist/web.umd.development.js.map +1 -1
  56. package/dist/web.umd.production.min.js +1 -1
  57. package/dist/web.umd.production.min.js.map +1 -1
  58. package/package.json +3 -3
  59. package/dist/components/Chat/AIResponseDisplay/AIResponseDisplay/AIResponseDisplay.props.d.ts +0 -40
  60. package/dist/components/Chat/AIResponseDisplay/AIResponseDisplay/AIResponseDisplay.style.d.ts +0 -10
  61. package/dist/components/Chat/AIResponseDisplay/AIResponseDisplay/AIResponseDisplay.type.d.ts +0 -23
  62. package/dist/components/Chat/AIResponseDisplay/AIResponseDisplay/AIResponseDisplay.view.d.ts +0 -9
  63. package/dist/components/Chat/AIResponseDisplay/AIResponseDisplay.d.ts +0 -10
  64. package/dist/components/Chat/AIResponseDisplay/examples/basic.d.ts +0 -5
  65. package/dist/components/Chat/AIResponseDisplay/examples/index.d.ts +0 -4
  66. package/dist/components/Chat/ChatInterface/ChatInterface/ChatInterface.props.d.ts +0 -56
  67. package/dist/components/Chat/ChatInterface/ChatInterface/ChatInterface.state.d.ts +0 -12
  68. package/dist/components/Chat/ChatInterface/ChatInterface/ChatInterface.style.d.ts +0 -10
  69. package/dist/components/Chat/ChatInterface/ChatInterface/ChatInterface.type.d.ts +0 -19
  70. package/dist/components/Chat/ChatInterface/ChatInterface/ChatInterface.view.d.ts +0 -14
  71. package/dist/components/Chat/ChatInterface/ChatInterface.d.ts +0 -11
  72. package/dist/components/Chat/CodeBlock/CodeBlock/CodeBlock.props.d.ts +0 -35
  73. package/dist/components/Chat/CodeBlock/CodeBlock/CodeBlock.state.d.ts +0 -7
  74. package/dist/components/Chat/CodeBlock/CodeBlock/CodeBlock.style.d.ts +0 -12
  75. package/dist/components/Chat/CodeBlock/CodeBlock/CodeBlock.type.d.ts +0 -11
  76. package/dist/components/Chat/CodeBlock/CodeBlock/CodeBlock.view.d.ts +0 -11
  77. package/dist/components/Chat/CodeBlock/CodeBlock.d.ts +0 -10
  78. package/dist/components/Chat/FileUploader/FileUploader/FileUploader.props.d.ts +0 -47
  79. package/dist/components/Chat/FileUploader/FileUploader/FileUploader.state.d.ts +0 -15
  80. package/dist/components/Chat/FileUploader/FileUploader/FileUploader.style.d.ts +0 -15
  81. package/dist/components/Chat/FileUploader/FileUploader/FileUploader.type.d.ts +0 -24
  82. package/dist/components/Chat/FileUploader/FileUploader/FileUploader.view.d.ts +0 -18
  83. package/dist/components/Chat/FileUploader/FileUploader.d.ts +0 -11
  84. package/dist/components/Chat/LoadingIndicator/LoadingIndicator/LoadingIndicator.props.d.ts +0 -27
  85. package/dist/components/Chat/LoadingIndicator/LoadingIndicator/LoadingIndicator.style.d.ts +0 -13
  86. package/dist/components/Chat/LoadingIndicator/LoadingIndicator/LoadingIndicator.type.d.ts +0 -11
  87. package/dist/components/Chat/LoadingIndicator/LoadingIndicator/LoadingIndicator.view.d.ts +0 -6
  88. package/dist/components/Chat/LoadingIndicator/LoadingIndicator.d.ts +0 -10
  89. package/dist/components/Chat/MessageBubble/MessageBubble/MessageBubble.props.d.ts +0 -36
  90. package/dist/components/Chat/MessageBubble/MessageBubble/MessageBubble.state.d.ts +0 -14
  91. package/dist/components/Chat/MessageBubble/MessageBubble/MessageBubble.style.d.ts +0 -10
  92. package/dist/components/Chat/MessageBubble/MessageBubble/MessageBubble.type.d.ts +0 -11
  93. package/dist/components/Chat/MessageBubble/MessageBubble/MessageBubble.view.d.ts +0 -17
  94. package/dist/components/Chat/MessageBubble/MessageBubble.d.ts +0 -10
  95. package/dist/components/Chat/ModelSelector/ModelSelector/ModelSelector.props.d.ts +0 -39
  96. package/dist/components/Chat/ModelSelector/ModelSelector/ModelSelector.state.d.ts +0 -12
  97. package/dist/components/Chat/ModelSelector/ModelSelector/ModelSelector.style.d.ts +0 -11
  98. package/dist/components/Chat/ModelSelector/ModelSelector/ModelSelector.type.d.ts +0 -21
  99. package/dist/components/Chat/ModelSelector/ModelSelector/ModelSelector.view.d.ts +0 -16
  100. package/dist/components/Chat/ModelSelector/ModelSelector.d.ts +0 -10
  101. package/dist/components/Chat/PromptInput/PromptInput/PromptInput.props.d.ts +0 -59
  102. package/dist/components/Chat/PromptInput/PromptInput/PromptInput.state.d.ts +0 -13
  103. package/dist/components/Chat/PromptInput/PromptInput/PromptInput.style.d.ts +0 -10
  104. package/dist/components/Chat/PromptInput/PromptInput/PromptInput.type.d.ts +0 -11
  105. package/dist/components/Chat/PromptInput/PromptInput/PromptInput.view.d.ts +0 -16
  106. package/dist/components/Chat/PromptInput/PromptInput.d.ts +0 -10
  107. package/dist/components/Chat/SettingsPanel/SettingsPanel/SettingsPanel.props.d.ts +0 -31
  108. package/dist/components/Chat/SettingsPanel/SettingsPanel/SettingsPanel.style.d.ts +0 -11
  109. package/dist/components/Chat/SettingsPanel/SettingsPanel/SettingsPanel.type.d.ts +0 -30
  110. package/dist/components/Chat/SettingsPanel/SettingsPanel/SettingsPanel.view.d.ts +0 -6
  111. package/dist/components/Chat/SettingsPanel/SettingsPanel.d.ts +0 -10
  112. package/dist/components/Chat/ToolSelector/ToolSelector/ToolSelector.props.d.ts +0 -39
  113. package/dist/components/Chat/ToolSelector/ToolSelector/ToolSelector.style.d.ts +0 -10
  114. package/dist/components/Chat/ToolSelector/ToolSelector/ToolSelector.type.d.ts +0 -20
  115. package/dist/components/Chat/ToolSelector/ToolSelector/ToolSelector.view.d.ts +0 -6
  116. package/dist/components/Chat/ToolSelector/ToolSelector.d.ts +0 -10
  117. package/dist/components/Chat/index.d.ts +0 -16
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@app-studio/web",
3
- "version": "0.8.95",
3
+ "version": "0.8.97",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/components/index.d.ts",
6
6
  "files": [
@@ -106,7 +106,7 @@
106
106
  "@types/react-test-renderer": "^18.0.0",
107
107
  "@typescript-eslint/eslint-plugin": "^5.59.7",
108
108
  "@typescript-eslint/parser": "^5.59.7",
109
- "app-studio": "^0.6.13",
109
+ "app-studio": "^0.6.16",
110
110
  "async-mutex": "^0.5.0",
111
111
  "babel-jest": "^29.5.0",
112
112
  "babel-loader": "^9.1.2",
@@ -153,7 +153,7 @@
153
153
  "ts-loader": "^9.4.2",
154
154
  "tsc-alias": "^1.8.8",
155
155
  "tsdx": "^0.14.1",
156
- "tslib": "^2.6.2",
156
+ "tslib": "^2.8.1",
157
157
  "web-vitals": "^2.1.4",
158
158
  "webpack": "^5.89.0",
159
159
  "webpack-bundle-analyzer": "^4.8.0",
@@ -1,40 +0,0 @@
1
- /**
2
- * AIResponseDisplay Props
3
- *
4
- * Defines the properties for the AIResponseDisplay component, which renders
5
- * AI-generated content with support for formatting, code blocks, and more.
6
- */
7
- import { ViewProps } from 'app-studio';
8
- import { AIResponseDisplayStyles } from './AIResponseDisplay.type';
9
- export interface AIResponseDisplayProps extends ViewProps {
10
- /**
11
- * Content to display - can include markdown-like formatting
12
- * such as code blocks, inline code, and links
13
- */
14
- content: string;
15
- /**
16
- * Whether to enable syntax highlighting for code blocks
17
- * @default true
18
- */
19
- enableSyntaxHighlighting?: boolean;
20
- /**
21
- * Whether to enable citations (e.g., [1], [2])
22
- * @default true
23
- */
24
- enableCitations?: boolean;
25
- /**
26
- * Whether to enable math rendering (LaTeX-like syntax)
27
- * @default false
28
- */
29
- enableMath?: boolean;
30
- /**
31
- * Whether to enable automatic link detection and formatting
32
- * @default true
33
- */
34
- enableLinkDetection?: boolean;
35
- /**
36
- * Custom styles for different parts of the component
37
- * Follows the design system with consistent spacing, typography, and colors
38
- */
39
- styles?: AIResponseDisplayStyles;
40
- }
@@ -1,10 +0,0 @@
1
- /**
2
- * AIResponseDisplay Styles
3
- */
4
- import { ViewProps } from 'app-studio';
5
- export declare const containerStyles: ViewProps;
6
- export declare const textStyles: ViewProps;
7
- export declare const codeBlockStyles: ViewProps;
8
- export declare const inlineCodeStyles: ViewProps;
9
- export declare const citationStyles: ViewProps;
10
- export declare const linkStyles: ViewProps;
@@ -1,23 +0,0 @@
1
- /**
2
- * AIResponseDisplay Types
3
- *
4
- * Defines the types used by the AIResponseDisplay component
5
- */
6
- import { ViewProps } from 'app-studio';
7
- /**
8
- * Styles for different parts of the AIResponseDisplay component
9
- */
10
- export interface AIResponseDisplayStyles {
11
- /** Styles for the main container */
12
- container?: ViewProps;
13
- /** Styles for the text content */
14
- text?: ViewProps;
15
- /** Styles for code blocks */
16
- codeBlock?: ViewProps;
17
- /** Styles for citations */
18
- citation?: ViewProps;
19
- /** Styles for inline code */
20
- inlineCode?: ViewProps;
21
- /** Styles for links */
22
- link?: ViewProps;
23
- }
@@ -1,9 +0,0 @@
1
- /**
2
- * AIResponseDisplay View
3
- *
4
- * A component for displaying AI-generated responses with support for
5
- * code blocks, inline code, links, and other formatting.
6
- */
7
- import React from 'react';
8
- import { AIResponseDisplayProps } from './AIResponseDisplay.props';
9
- export declare const AIResponseDisplayView: React.FC<AIResponseDisplayProps>;
@@ -1,10 +0,0 @@
1
- /**
2
- * AIResponseDisplay Component
3
- *
4
- * A component for displaying AI-generated responses with support for
5
- * code blocks, inline code, and other formatting.
6
- */
7
- import React from 'react';
8
- import { AIResponseDisplayProps } from './AIResponseDisplay/AIResponseDisplay.props';
9
- export declare const AIResponseDisplay: React.FC<AIResponseDisplayProps>;
10
- export type { AIResponseDisplayProps } from './AIResponseDisplay/AIResponseDisplay.props';
@@ -1,5 +0,0 @@
1
- /**
2
- * Basic AIResponseDisplay Example
3
- */
4
- import React from 'react';
5
- export declare const BasicAIResponseDisplay: () => React.JSX.Element;
@@ -1,4 +0,0 @@
1
- /**
2
- * AIResponseDisplay Examples
3
- */
4
- export * from './basic';
@@ -1,56 +0,0 @@
1
- /**
2
- * ChatInterface Props
3
- */
4
- /// <reference types="react" />
5
- import { ViewProps } from 'app-studio';
6
- import { Message, ChatInterfaceStyles } from './ChatInterface.type';
7
- export interface ChatInterfaceProps extends ViewProps {
8
- /**
9
- * Array of messages to display in the chat
10
- */
11
- messages: Message[];
12
- /**
13
- * Callback function when a new message is submitted
14
- */
15
- onSubmit?: (message: string) => void;
16
- /**
17
- * Callback function when a message is edited
18
- */
19
- onEdit?: (id: string, newContent: string) => void;
20
- /**
21
- * Callback function when a message is deleted
22
- */
23
- onDelete?: (id: string) => void;
24
- /**
25
- * Whether to show the loading indicator
26
- */
27
- isLoading?: boolean;
28
- /**
29
- * Placeholder text for the input field
30
- */
31
- placeholder?: string;
32
- /**
33
- * Whether to enable file uploads
34
- */
35
- enableFileUpload?: boolean;
36
- /**
37
- * Whether to enable voice input
38
- */
39
- enableVoiceInput?: boolean;
40
- /**
41
- * Whether to enable AI suggestions
42
- */
43
- enableSuggestions?: boolean;
44
- /**
45
- * URL of the background image
46
- */
47
- backgroundImageUrl?: string;
48
- /**
49
- * Custom styles for the component
50
- */
51
- styles?: ChatInterfaceStyles;
52
- /**
53
- * Children components
54
- */
55
- children?: React.ReactNode;
56
- }
@@ -1,12 +0,0 @@
1
- /**
2
- * ChatInterface State
3
- */
4
- /// <reference types="react" />
5
- export declare const useChatInterfaceState: (initialMessages?: never[]) => {
6
- inputValue: string;
7
- isSubmitting: boolean;
8
- messagesEndRef: import("react").RefObject<HTMLDivElement>;
9
- handleInputChange: (value: string) => void;
10
- handleSubmit: (callback?: ((message: string) => void) | undefined) => void;
11
- setInputValue: import("react").Dispatch<import("react").SetStateAction<string>>;
12
- };
@@ -1,10 +0,0 @@
1
- /**
2
- * ChatInterface Styles
3
- */
4
- import { ViewProps } from 'app-studio';
5
- export declare const defaultContainerStyles: ViewProps;
6
- export declare const defaultMessagesContainerStyles: ViewProps;
7
- export declare const defaultInputContainerStyles: ViewProps;
8
- export declare const defaultControlsContainerStyles: ViewProps;
9
- export declare const backgroundImageStyles: ViewProps;
10
- export declare const backgroundOverlayStyles: ViewProps;
@@ -1,19 +0,0 @@
1
- /**
2
- * ChatInterface Types
3
- */
4
- import { ViewProps } from 'app-studio';
5
- export declare type MessageType = 'user' | 'assistant' | 'system' | 'error';
6
- export interface Message {
7
- id: string;
8
- type: MessageType;
9
- content: string;
10
- timestamp: Date;
11
- isLoading?: boolean;
12
- metadata?: Record<string, any>;
13
- }
14
- export interface ChatInterfaceStyles {
15
- container?: ViewProps;
16
- messagesContainer?: ViewProps;
17
- inputContainer?: ViewProps;
18
- controlsContainer?: ViewProps;
19
- }
@@ -1,14 +0,0 @@
1
- /**
2
- * ChatInterface View
3
- */
4
- import React from 'react';
5
- import { ChatInterfaceProps } from './ChatInterface.props';
6
- interface Props extends ChatInterfaceProps {
7
- inputValue: string;
8
- isSubmitting: boolean;
9
- messagesEndRef: React.RefObject<HTMLDivElement>;
10
- handleInputChange: (value: string) => void;
11
- handleSubmit: () => void;
12
- }
13
- export declare const ChatInterfaceView: React.FC<Props>;
14
- export {};
@@ -1,11 +0,0 @@
1
- /**
2
- * ChatInterface Component
3
- *
4
- * A comprehensive chat interface for AI applications that includes
5
- * message display, user input, and various controls.
6
- */
7
- import React from 'react';
8
- import { ChatInterfaceProps } from './ChatInterface/ChatInterface.props';
9
- export declare const ChatInterface: React.FC<ChatInterfaceProps>;
10
- export type { ChatInterfaceProps } from './ChatInterface/ChatInterface.props';
11
- export type { Message, MessageType } from './ChatInterface/ChatInterface.type';
@@ -1,35 +0,0 @@
1
- /**
2
- * CodeBlock Props
3
- */
4
- import { ViewProps } from 'app-studio';
5
- import { CodeBlockStyles } from './CodeBlock.type';
6
- export interface CodeBlockProps extends ViewProps {
7
- /**
8
- * Code content to display
9
- */
10
- code: string;
11
- /**
12
- * Programming language for syntax highlighting
13
- */
14
- language?: string;
15
- /**
16
- * Whether to show line numbers
17
- */
18
- showLineNumbers?: boolean;
19
- /**
20
- * Whether to enable syntax highlighting
21
- */
22
- enableSyntaxHighlighting?: boolean;
23
- /**
24
- * Whether to show a copy button
25
- */
26
- showCopyButton?: boolean;
27
- /**
28
- * Whether to show the language label
29
- */
30
- showLanguageLabel?: boolean;
31
- /**
32
- * Custom styles for the component
33
- */
34
- styles?: CodeBlockStyles;
35
- }
@@ -1,7 +0,0 @@
1
- /**
2
- * CodeBlock State
3
- */
4
- export declare const useCodeBlockState: () => {
5
- isCopied: boolean;
6
- copyToClipboard: (text: string) => void;
7
- };
@@ -1,12 +0,0 @@
1
- /**
2
- * CodeBlock Styles
3
- *
4
- * Styles for the CodeBlock component following the design guidelines
5
- */
6
- import { ViewProps } from 'app-studio';
7
- export declare const containerStyles: ViewProps;
8
- export declare const headerStyles: ViewProps;
9
- export declare const contentStyles: ViewProps;
10
- export declare const footerStyles: ViewProps;
11
- export declare const copyButtonStyles: ViewProps;
12
- export declare const languageLabelStyles: ViewProps;
@@ -1,11 +0,0 @@
1
- /**
2
- * CodeBlock Types
3
- */
4
- import { ViewProps } from 'app-studio';
5
- export interface CodeBlockStyles {
6
- container?: ViewProps;
7
- header?: ViewProps;
8
- content?: ViewProps;
9
- footer?: ViewProps;
10
- copyButton?: ViewProps;
11
- }
@@ -1,11 +0,0 @@
1
- /**
2
- * CodeBlock View
3
- */
4
- import React from 'react';
5
- import { CodeBlockProps } from './CodeBlock.props';
6
- interface Props extends CodeBlockProps {
7
- isCopied: boolean;
8
- copyToClipboard: (text: string) => void;
9
- }
10
- export declare const CodeBlockView: React.FC<Props>;
11
- export {};
@@ -1,10 +0,0 @@
1
- /**
2
- * CodeBlock Component
3
- *
4
- * A component for displaying code with syntax highlighting, line numbers,
5
- * and a copy button.
6
- */
7
- import React from 'react';
8
- import { CodeBlockProps } from './CodeBlock/CodeBlock.props';
9
- export declare const CodeBlock: React.FC<CodeBlockProps>;
10
- export type { CodeBlockProps } from './CodeBlock/CodeBlock.props';
@@ -1,47 +0,0 @@
1
- /**
2
- * FileUploader Props
3
- */
4
- import { ViewProps } from 'app-studio';
5
- import { UploadedFile, FileUploaderStyles } from './FileUploader.type';
6
- export interface FileUploaderProps extends ViewProps {
7
- /**
8
- * List of uploaded files
9
- */
10
- files: UploadedFile[];
11
- /**
12
- * Callback function when files are added
13
- */
14
- onFilesAdded: (files: File[]) => void;
15
- /**
16
- * Callback function when a file is removed
17
- */
18
- onFileRemove: (fileId: string) => void;
19
- /**
20
- * Callback function when a file is retried after an error
21
- */
22
- onFileRetry?: (fileId: string) => void;
23
- /**
24
- * Maximum number of files allowed
25
- */
26
- maxFiles?: number;
27
- /**
28
- * Maximum file size in bytes
29
- */
30
- maxSize?: number;
31
- /**
32
- * Accepted file types
33
- */
34
- accept?: string;
35
- /**
36
- * Whether to allow multiple files
37
- */
38
- multiple?: boolean;
39
- /**
40
- * Whether the uploader is disabled
41
- */
42
- isDisabled?: boolean;
43
- /**
44
- * Custom styles for the component
45
- */
46
- styles?: FileUploaderStyles;
47
- }
@@ -1,15 +0,0 @@
1
- /**
2
- * FileUploader State
3
- */
4
- /// <reference types="react" />
5
- export declare const useFileUploaderState: (onFilesAdded: (files: File[]) => void, maxFiles: number, maxSize: number, accept: string) => {
6
- isDragging: boolean;
7
- fileInputRef: import("react").RefObject<HTMLInputElement>;
8
- handleDragEnter: (e: React.DragEvent) => void;
9
- handleDragLeave: (e: React.DragEvent) => void;
10
- handleDragOver: (e: React.DragEvent) => void;
11
- handleDrop: (e: React.DragEvent) => void;
12
- handleFileInputChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
13
- openFileDialog: () => void;
14
- formatBytes: (bytes: number, decimals?: number) => string;
15
- };
@@ -1,15 +0,0 @@
1
- /**
2
- * FileUploader Styles
3
- */
4
- import { ViewProps } from 'app-studio';
5
- export declare const containerStyles: ViewProps;
6
- export declare const dropzoneStyles: (isDragging: boolean) => ViewProps;
7
- export declare const fileListStyles: ViewProps;
8
- export declare const fileItemStyles: ViewProps;
9
- export declare const fileIconStyles: (fileType: string) => ViewProps;
10
- export declare const fileInfoStyles: ViewProps;
11
- export declare const fileNameStyles: ViewProps;
12
- export declare const fileSizeStyles: ViewProps;
13
- export declare const fileActionsStyles: ViewProps;
14
- export declare const progressBarContainerStyles: ViewProps;
15
- export declare const progressBarStyles: (progress: number) => ViewProps;
@@ -1,24 +0,0 @@
1
- /**
2
- * FileUploader Types
3
- */
4
- import { ViewProps } from 'app-studio';
5
- export interface UploadedFile {
6
- id: string;
7
- name: string;
8
- size: number;
9
- type: string;
10
- url?: string;
11
- file: File;
12
- progress?: number;
13
- error?: string;
14
- isUploading?: boolean;
15
- }
16
- export interface FileUploaderStyles {
17
- container?: ViewProps;
18
- dropzone?: ViewProps;
19
- fileList?: ViewProps;
20
- fileItem?: ViewProps;
21
- fileInfo?: ViewProps;
22
- fileActions?: ViewProps;
23
- progressBar?: ViewProps;
24
- }
@@ -1,18 +0,0 @@
1
- /**
2
- * FileUploader View
3
- */
4
- import React from 'react';
5
- import { FileUploaderProps } from './FileUploader.props';
6
- interface Props extends FileUploaderProps {
7
- isDragging: boolean;
8
- fileInputRef: React.RefObject<HTMLInputElement>;
9
- handleDragEnter: (e: React.DragEvent) => void;
10
- handleDragLeave: (e: React.DragEvent) => void;
11
- handleDragOver: (e: React.DragEvent) => void;
12
- handleDrop: (e: React.DragEvent) => void;
13
- handleFileInputChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
14
- openFileDialog: () => void;
15
- formatBytes: (bytes: number, decimals?: number) => string;
16
- }
17
- export declare const FileUploaderView: React.FC<Props>;
18
- export {};
@@ -1,11 +0,0 @@
1
- /**
2
- * FileUploader Component
3
- *
4
- * A component for uploading files with drag and drop support, progress tracking,
5
- * and file validation.
6
- */
7
- import React from 'react';
8
- import { FileUploaderProps } from './FileUploader/FileUploader.props';
9
- export declare const FileUploader: React.FC<FileUploaderProps>;
10
- export type { FileUploaderProps } from './FileUploader/FileUploader.props';
11
- export type { UploadedFile } from './FileUploader/FileUploader.type';
@@ -1,27 +0,0 @@
1
- /**
2
- * LoadingIndicator Props
3
- */
4
- import { ViewProps } from 'app-studio';
5
- import { LoadingIndicatorSize, LoadingIndicatorVariant, LoadingIndicatorStyles } from './LoadingIndicator.type';
6
- export interface LoadingIndicatorProps extends ViewProps {
7
- /**
8
- * Size of the loading indicator
9
- */
10
- size?: LoadingIndicatorSize;
11
- /**
12
- * Variant of the loading indicator
13
- */
14
- variant?: LoadingIndicatorVariant;
15
- /**
16
- * Color of the loading indicator
17
- */
18
- color?: string;
19
- /**
20
- * Text to display alongside the loading indicator
21
- */
22
- text?: string;
23
- /**
24
- * Custom styles for the component
25
- */
26
- styles?: LoadingIndicatorStyles;
27
- }
@@ -1,13 +0,0 @@
1
- /**
2
- * LoadingIndicator Styles
3
- */
4
- import { ViewProps } from 'app-studio';
5
- import { LoadingIndicatorSize } from './LoadingIndicator.type';
6
- export declare const containerStyles: ViewProps;
7
- export declare const sizeMap: Record<LoadingIndicatorSize, number>;
8
- export declare const dotSizeMap: Record<LoadingIndicatorSize, number>;
9
- export declare const spinnerStyles: (size: LoadingIndicatorSize, color: string) => ViewProps;
10
- export declare const dotContainerStyles: ViewProps;
11
- export declare const dotStyles: (size: LoadingIndicatorSize, color: string, index: number) => ViewProps;
12
- export declare const typingContainerStyles: ViewProps;
13
- export declare const typingDotStyles: (size: LoadingIndicatorSize, color: string, index: number) => ViewProps;
@@ -1,11 +0,0 @@
1
- /**
2
- * LoadingIndicator Types
3
- */
4
- import { ViewProps } from 'app-studio';
5
- export declare type LoadingIndicatorSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
6
- export declare type LoadingIndicatorVariant = 'spinner' | 'dots' | 'pulse' | 'typing';
7
- export interface LoadingIndicatorStyles {
8
- container?: ViewProps;
9
- spinner?: ViewProps;
10
- dot?: ViewProps;
11
- }
@@ -1,6 +0,0 @@
1
- /**
2
- * LoadingIndicator View
3
- */
4
- import React from 'react';
5
- import { LoadingIndicatorProps } from './LoadingIndicator.props';
6
- export declare const LoadingIndicatorView: React.FC<LoadingIndicatorProps>;
@@ -1,10 +0,0 @@
1
- /**
2
- * LoadingIndicator Component
3
- *
4
- * A versatile loading indicator with multiple variants and sizes.
5
- */
6
- import React from 'react';
7
- import { LoadingIndicatorProps } from './LoadingIndicator/LoadingIndicator.props';
8
- export declare const LoadingIndicator: React.FC<LoadingIndicatorProps>;
9
- export type { LoadingIndicatorProps } from './LoadingIndicator/LoadingIndicator.props';
10
- export type { LoadingIndicatorSize, LoadingIndicatorVariant, } from './LoadingIndicator/LoadingIndicator.type';
@@ -1,36 +0,0 @@
1
- /**
2
- * MessageBubble Props
3
- */
4
- import { ViewProps } from 'app-studio';
5
- import { Message } from '../../ChatInterface/ChatInterface/ChatInterface.type';
6
- import { MessageBubbleStyles } from './MessageBubble.type';
7
- export interface MessageBubbleProps extends ViewProps {
8
- /**
9
- * Message object to display
10
- */
11
- message: Message;
12
- /**
13
- * Callback function when the message is edited
14
- */
15
- onEdit?: (newContent: string) => void;
16
- /**
17
- * Callback function when the message is deleted
18
- */
19
- onDelete?: () => void;
20
- /**
21
- * Whether to show the timestamp
22
- */
23
- showTimestamp?: boolean;
24
- /**
25
- * Whether to show the avatar
26
- */
27
- showAvatar?: boolean;
28
- /**
29
- * Whether to show action buttons (edit, delete, etc.)
30
- */
31
- showActions?: boolean;
32
- /**
33
- * Custom styles for the component
34
- */
35
- styles?: MessageBubbleStyles;
36
- }
@@ -1,14 +0,0 @@
1
- /**
2
- * MessageBubble State
3
- */
4
- /// <reference types="react" />
5
- export declare const useMessageBubbleState: () => {
6
- isEditing: boolean;
7
- editValue: string;
8
- isHovered: boolean;
9
- setEditValue: import("react").Dispatch<import("react").SetStateAction<string>>;
10
- setIsHovered: import("react").Dispatch<import("react").SetStateAction<boolean>>;
11
- startEditing: (initialContent: string) => void;
12
- cancelEditing: () => void;
13
- saveEditing: (onEdit?: ((newContent: string) => void) | undefined) => void;
14
- };
@@ -1,10 +0,0 @@
1
- /**
2
- * MessageBubble Styles
3
- */
4
- import { ViewProps } from 'app-studio';
5
- import { MessageType } from '../../ChatInterface/ChatInterface/ChatInterface.type';
6
- export declare const getContainerStyles: (type: MessageType, isHovered: boolean) => ViewProps;
7
- export declare const getMessageContentStyles: (type: MessageType) => ViewProps;
8
- export declare const contentStyles: ViewProps;
9
- export declare const timestampStyles: ViewProps;
10
- export declare const actionsStyles: ViewProps;
@@ -1,11 +0,0 @@
1
- /**
2
- * MessageBubble Types
3
- */
4
- import { ViewProps } from 'app-studio';
5
- export interface MessageBubbleStyles {
6
- container?: ViewProps;
7
- content?: ViewProps;
8
- avatar?: ViewProps;
9
- timestamp?: ViewProps;
10
- actions?: ViewProps;
11
- }