@mastra/playground-ui 0.0.1-alpha.2

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 (85) hide show
  1. package/LICENSE +44 -0
  2. package/dist/chat-ui/chat-items.d.ts +52 -0
  3. package/dist/chat-ui/chat-message.d.ts +30 -0
  4. package/dist/chat-ui/chat.d.ts +3 -0
  5. package/dist/chat-ui/copy-button.d.ts +7 -0
  6. package/dist/chat-ui/file-preview.d.ts +8 -0
  7. package/dist/chat-ui/hooks/use-auto-scroll.d.ts +7 -0
  8. package/dist/chat-ui/hooks/use-autosize-textarea.d.ts +8 -0
  9. package/dist/chat-ui/hooks/use-copy-to-clipboard.d.ts +10 -0
  10. package/dist/chat-ui/markdown-renderer.d.ts +88 -0
  11. package/dist/chat-ui/markdown.d.ts +4 -0
  12. package/dist/chat-ui/message-input.d.ts +22 -0
  13. package/dist/chat-ui/message-list.d.ts +11 -0
  14. package/dist/chat-ui/prompt-suggestions.d.ts +11 -0
  15. package/dist/chat-ui/syntax-highlighter.d.ts +1 -0
  16. package/dist/chat-ui/types.d.ts +14 -0
  17. package/dist/chat-ui/typing-indicator.d.ts +1 -0
  18. package/dist/components/assistant-ui/assistant-message.d.ts +3 -0
  19. package/dist/components/assistant-ui/assistant-modal.d.ts +3 -0
  20. package/dist/components/assistant-ui/assistant-sidebar.d.ts +3 -0
  21. package/dist/components/assistant-ui/attachment.d.ts +5 -0
  22. package/dist/components/assistant-ui/markdown-text.d.ts +2 -0
  23. package/dist/components/assistant-ui/syntax-highlighter.d.ts +1 -0
  24. package/dist/components/assistant-ui/thread-list.d.ts +3 -0
  25. package/dist/components/assistant-ui/thread.d.ts +5 -0
  26. package/dist/components/assistant-ui/tooltip-icon-button.d.ts +10 -0
  27. package/dist/components/assistant-ui/user-message.d.ts +3 -0
  28. package/dist/components/icons/agent-icon.d.ts +3 -0
  29. package/dist/components/icons/automation-icon.d.ts +3 -0
  30. package/dist/components/syntax-highlighter.d.ts +4 -0
  31. package/dist/components/ui/avatar.d.ts +6 -0
  32. package/dist/components/ui/badge.d.ts +10 -0
  33. package/dist/components/ui/button.d.ts +12 -0
  34. package/dist/components/ui/copyable-content.d.ts +7 -0
  35. package/dist/components/ui/data-table.d.ts +72 -0
  36. package/dist/components/ui/dialog.d.ts +19 -0
  37. package/dist/components/ui/formatted-date.d.ts +3 -0
  38. package/dist/components/ui/input.d.ts +12 -0
  39. package/dist/components/ui/resizable.d.ts +23 -0
  40. package/dist/components/ui/score-indicator.d.ts +3 -0
  41. package/dist/components/ui/scroll-area.d.ts +5 -0
  42. package/dist/components/ui/skeleton.d.ts +2 -0
  43. package/dist/components/ui/syntax-highlighter.d.ts +4 -0
  44. package/dist/components/ui/table.d.ts +10 -0
  45. package/dist/components/ui/tabs.d.ts +7 -0
  46. package/dist/components/ui/text.d.ts +13 -0
  47. package/dist/components/ui/tooltip.d.ts +7 -0
  48. package/dist/domains/agents/agent/agent-chat.d.ts +3 -0
  49. package/dist/domains/agents/agent/agent-evals.d.ts +4 -0
  50. package/dist/domains/agents/agent/agent-traces.d.ts +7 -0
  51. package/dist/domains/agents/agents-table.d.ts +8 -0
  52. package/dist/domains/agents/index.d.ts +4 -0
  53. package/dist/domains/traces/context/trace-context.d.ts +24 -0
  54. package/dist/domains/traces/index.d.ts +5 -0
  55. package/dist/domains/traces/mock-data.d.ts +1356 -0
  56. package/dist/domains/traces/trace-details.d.ts +1 -0
  57. package/dist/domains/traces/trace-span-details.d.ts +1 -0
  58. package/dist/domains/traces/trace-span-view.d.ts +8 -0
  59. package/dist/domains/traces/trace-tree-view.d.ts +6 -0
  60. package/dist/domains/traces/types.d.ts +49 -0
  61. package/dist/domains/traces/utils.d.ts +15 -0
  62. package/dist/domains/workflows/index.d.ts +3 -0
  63. package/dist/domains/workflows/workflow/utils.d.ts +22 -0
  64. package/dist/domains/workflows/workflow/workflow-condition-node.d.ts +7 -0
  65. package/dist/domains/workflows/workflow/workflow-default-node.d.ts +9 -0
  66. package/dist/domains/workflows/workflow/workflow-graph-inner.d.ts +5 -0
  67. package/dist/domains/workflows/workflow/workflow-graph.d.ts +4 -0
  68. package/dist/domains/workflows/workflow/workflow-traces.d.ts +7 -0
  69. package/dist/domains/workflows/workflows-table.d.ts +8 -0
  70. package/dist/hooks/use-evals.d.ts +19 -0
  71. package/dist/hooks/use-resize-column.d.ts +12 -0
  72. package/dist/hooks/use-traces.d.ts +9 -0
  73. package/dist/hooks/use-workflows.d.ts +6 -0
  74. package/dist/index.css +7 -0
  75. package/dist/index.d.ts +4 -0
  76. package/dist/index.es.js +6480 -0
  77. package/dist/index.es.js.map +1 -0
  78. package/dist/lib/pagination/types.d.ts +11 -0
  79. package/dist/lib/polls.d.ts +32 -0
  80. package/dist/lib/string.d.ts +1 -0
  81. package/dist/lib/utils.d.ts +3 -0
  82. package/dist/main.d.ts +1 -0
  83. package/dist/services/mastra-runtime-provider.d.ts +6 -0
  84. package/dist/types.d.ts +58 -0
  85. package/package.json +94 -0
package/LICENSE ADDED
@@ -0,0 +1,44 @@
1
+ Elastic License 2.0 (ELv2)
2
+
3
+ **Acceptance**
4
+ By using the software, you agree to all of the terms and conditions below.
5
+
6
+ **Copyright License**
7
+ The licensor grants you a non-exclusive, royalty-free, worldwide, non-sublicensable, non-transferable license to use, copy, distribute, make available, and prepare derivative works of the software, in each case subject to the limitations and conditions below
8
+
9
+ **Limitations**
10
+ You may not provide the software to third parties as a hosted or managed service, where the service provides users with access to any substantial set of the features or functionality of the software.
11
+
12
+ You may not move, change, disable, or circumvent the license key functionality in the software, and you may not remove or obscure any functionality in the software that is protected by the license key.
13
+
14
+ You may not alter, remove, or obscure any licensing, copyright, or other notices of the licensor in the software. Any use of the licensor’s trademarks is subject to applicable law.
15
+
16
+ **Patents**
17
+ The licensor grants you a license, under any patent claims the licensor can license, or becomes able to license, to make, have made, use, sell, offer for sale, import and have imported the software, in each case subject to the limitations and conditions in this license. This license does not cover any patent claims that you cause to be infringed by modifications or additions to the software. If you or your company make any written claim that the software infringes or contributes to infringement of any patent, your patent license for the software granted under these terms ends immediately. If your company makes such a claim, your patent license ends immediately for work on behalf of your company.
18
+
19
+ **Notices**
20
+ You must ensure that anyone who gets a copy of any part of the software from you also gets a copy of these terms.
21
+
22
+ If you modify the software, you must include in any modified copies of the software prominent notices stating that you have modified the software.
23
+
24
+ **No Other Rights**
25
+ These terms do not imply any licenses other than those expressly granted in these terms.
26
+
27
+ **Termination**
28
+ If you use the software in violation of these terms, such use is not licensed, and your licenses will automatically terminate. If the licensor provides you with a notice of your violation, and you cease all violation of this license no later than 30 days after you receive that notice, your licenses will be reinstated retroactively. However, if you violate these terms after such reinstatement, any additional violation of these terms will cause your licenses to terminate automatically and permanently.
29
+
30
+ **No Liability**
31
+ As far as the law allows, the software comes as is, without any warranty or condition, and the licensor will not be liable to you for any damages arising out of these terms or the use or nature of the software, under any kind of legal claim.
32
+
33
+ **Definitions**
34
+ The _licensor_ is the entity offering these terms, and the _software_ is the software the licensor makes available under these terms, including any portion of it.
35
+
36
+ _you_ refers to the individual or entity agreeing to these terms.
37
+
38
+ _your company_ is any legal entity, sole proprietorship, or other kind of organization that you work for, plus all organizations that have control over, are under the control of, or are under common control with that organization. _control_ means ownership of substantially all the assets of an entity, or the power to direct its management and policies by vote, contract, or otherwise. Control can be direct or indirect.
39
+
40
+ _your licenses_ are all the licenses granted to you for the software under these terms.
41
+
42
+ _use_ means anything you do with the software requiring one of your licenses.
43
+
44
+ _trademark_ means trademarks, service marks, and similar rights.
@@ -0,0 +1,52 @@
1
+ import { default as React, ReactElement } from '../../node_modules/@types/react';
2
+ import { Message } from './chat-message';
3
+
4
+ interface ChatPropsBase {
5
+ handleSubmit: (event?: {
6
+ preventDefault?: () => void;
7
+ }, options?: {
8
+ experimental_attachments?: FileList;
9
+ }) => void;
10
+ messages: Array<Message>;
11
+ input: string;
12
+ className?: string;
13
+ handleInputChange: React.ChangeEventHandler<HTMLTextAreaElement>;
14
+ isGenerating: boolean;
15
+ stop?: () => void;
16
+ onRateResponse?: (messageId: string, rating: 'thumbs-up' | 'thumbs-down') => void;
17
+ }
18
+ interface ChatPropsWithoutSuggestions extends ChatPropsBase {
19
+ append?: never;
20
+ suggestions?: never;
21
+ }
22
+ interface ChatPropsWithSuggestions extends ChatPropsBase {
23
+ append: (message: {
24
+ role: 'user';
25
+ content: string;
26
+ }) => void;
27
+ suggestions: string[];
28
+ }
29
+ type ChatProps = ChatPropsWithoutSuggestions | ChatPropsWithSuggestions;
30
+ export declare function Chat({ messages, handleSubmit, input, handleInputChange, stop, isGenerating, append, suggestions, className, onRateResponse, }: ChatProps): import("react/jsx-runtime").JSX.Element;
31
+ export declare namespace Chat {
32
+ var displayName: string;
33
+ }
34
+ export declare function ChatMessages({ messages, children, }: React.PropsWithChildren<{
35
+ messages: Message[];
36
+ }>): import("react/jsx-runtime").JSX.Element;
37
+ export declare const ChatContainer: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
38
+ interface ChatFormProps {
39
+ className?: string;
40
+ isPending: boolean;
41
+ handleSubmit: (event?: {
42
+ preventDefault?: () => void;
43
+ }, options?: {
44
+ experimental_attachments?: FileList;
45
+ }) => void;
46
+ children: (props: {
47
+ files: File[] | null;
48
+ setFiles: React.Dispatch<React.SetStateAction<File[] | null>>;
49
+ }) => ReactElement;
50
+ }
51
+ export declare const ChatForm: React.ForwardRefExoticComponent<ChatFormProps & React.RefAttributes<HTMLFormElement>>;
52
+ export {};
@@ -0,0 +1,30 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import { default as React } from '../../node_modules/@types/react';
3
+
4
+ declare const chatBubbleVariants: (props?: ({
5
+ isUser?: boolean | null | undefined;
6
+ isError?: boolean | null | undefined;
7
+ animation?: "none" | "scale" | "slide" | "fade" | null | undefined;
8
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
9
+ type Animation = VariantProps<typeof chatBubbleVariants>['animation'];
10
+ interface Attachment {
11
+ name?: string;
12
+ contentType?: string;
13
+ url: string;
14
+ }
15
+ export interface Message {
16
+ id?: string;
17
+ role?: 'user' | 'assistant';
18
+ content: string;
19
+ isError?: boolean;
20
+ createdAt?: Date;
21
+ }
22
+ export interface ChatMessageProps extends Message {
23
+ showTimeStamp?: boolean;
24
+ animation?: Animation;
25
+ actions?: React.ReactNode;
26
+ className?: string;
27
+ experimental_attachments?: Attachment[];
28
+ }
29
+ export declare const ChatMessage: React.FC<ChatMessageProps>;
30
+ export {};
@@ -0,0 +1,3 @@
1
+ import { ChatProps } from './types';
2
+
3
+ export declare function Chat({ agentId, initialMessages, agentName, threadId, memory, buildUrl }: ChatProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ type CopyButtonProps = {
2
+ content: string;
3
+ copyMessage?: string;
4
+ classname?: string;
5
+ };
6
+ export declare function CopyButton({ content, copyMessage, classname }: CopyButtonProps): import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,8 @@
1
+ import { default as React } from '../../node_modules/@types/react';
2
+
3
+ interface FilePreviewProps {
4
+ file: File;
5
+ onRemove?: () => void;
6
+ }
7
+ export declare const FilePreview: React.ForwardRefExoticComponent<FilePreviewProps & React.RefAttributes<HTMLDivElement>>;
8
+ export {};
@@ -0,0 +1,7 @@
1
+ export declare function useAutoScroll(dependencies: React.DependencyList): {
2
+ containerRef: import('../../../node_modules/@types/react').RefObject<HTMLDivElement | null>;
3
+ scrollToBottom: () => void;
4
+ handleScroll: () => void;
5
+ shouldAutoScroll: boolean;
6
+ handleTouchStart: () => void;
7
+ };
@@ -0,0 +1,8 @@
1
+ interface UseAutosizeTextAreaProps {
2
+ ref: React.RefObject<HTMLTextAreaElement>;
3
+ maxHeight?: number;
4
+ borderWidth?: number;
5
+ dependencies: React.DependencyList;
6
+ }
7
+ export declare function useAutosizeTextArea({ ref, maxHeight, borderWidth, dependencies, }: UseAutosizeTextAreaProps): void;
8
+ export {};
@@ -0,0 +1,10 @@
1
+ type UseCopyToClipboardProps = {
2
+ text: string;
3
+ copyMessage?: string;
4
+ };
5
+ export declare function useCopyToClipboard({ text, copyMessage }: UseCopyToClipboardProps): {
6
+ isCopied: boolean;
7
+ handleCopy: () => void;
8
+ error: string;
9
+ };
10
+ export {};
@@ -0,0 +1,88 @@
1
+ import { default as React } from '../../node_modules/@types/react';
2
+
3
+ interface MarkdownRendererProps {
4
+ children?: string;
5
+ }
6
+ export declare function MarkdownRenderer({ children }: MarkdownRendererProps): import("react/jsx-runtime").JSX.Element;
7
+ interface CodeBlockProps extends React.HTMLAttributes<HTMLPreElement> {
8
+ children: React.ReactNode;
9
+ className?: string;
10
+ language: string;
11
+ }
12
+ export declare const CodeBlock: ({ children, className, language, ...restProps }: CodeBlockProps) => import("react/jsx-runtime").JSX.Element;
13
+ export declare const COMPONENTS: {
14
+ h1: {
15
+ ({ node, ...props }: any): import("react/jsx-runtime").JSX.Element;
16
+ displayName: any;
17
+ };
18
+ h2: {
19
+ ({ node, ...props }: any): import("react/jsx-runtime").JSX.Element;
20
+ displayName: any;
21
+ };
22
+ h3: {
23
+ ({ node, ...props }: any): import("react/jsx-runtime").JSX.Element;
24
+ displayName: any;
25
+ };
26
+ h4: {
27
+ ({ node, ...props }: any): import("react/jsx-runtime").JSX.Element;
28
+ displayName: any;
29
+ };
30
+ h5: {
31
+ ({ node, ...props }: any): import("react/jsx-runtime").JSX.Element;
32
+ displayName: any;
33
+ };
34
+ strong: {
35
+ ({ node, ...props }: any): import("react/jsx-runtime").JSX.Element;
36
+ displayName: any;
37
+ };
38
+ a: {
39
+ ({ node, ...props }: any): import("react/jsx-runtime").JSX.Element;
40
+ displayName: any;
41
+ };
42
+ blockquote: {
43
+ ({ node, ...props }: any): import("react/jsx-runtime").JSX.Element;
44
+ displayName: any;
45
+ };
46
+ code: ({ children, className, ...rest }: {
47
+ children?: React.ReactNode;
48
+ className?: string;
49
+ }) => import("react/jsx-runtime").JSX.Element;
50
+ pre: ({ children }: any) => any;
51
+ ol: {
52
+ ({ node, ...props }: any): import("react/jsx-runtime").JSX.Element;
53
+ displayName: any;
54
+ };
55
+ ul: {
56
+ ({ node, ...props }: any): import("react/jsx-runtime").JSX.Element;
57
+ displayName: any;
58
+ };
59
+ li: {
60
+ ({ node, ...props }: any): import("react/jsx-runtime").JSX.Element;
61
+ displayName: any;
62
+ };
63
+ table: {
64
+ ({ node, ...props }: any): import("react/jsx-runtime").JSX.Element;
65
+ displayName: any;
66
+ };
67
+ th: {
68
+ ({ node, ...props }: any): import("react/jsx-runtime").JSX.Element;
69
+ displayName: any;
70
+ };
71
+ td: {
72
+ ({ node, ...props }: any): import("react/jsx-runtime").JSX.Element;
73
+ displayName: any;
74
+ };
75
+ tr: {
76
+ ({ node, ...props }: any): import("react/jsx-runtime").JSX.Element;
77
+ displayName: any;
78
+ };
79
+ p: {
80
+ ({ node, ...props }: any): import("react/jsx-runtime").JSX.Element;
81
+ displayName: any;
82
+ };
83
+ hr: {
84
+ ({ node, ...props }: any): import("react/jsx-runtime").JSX.Element;
85
+ displayName: any;
86
+ };
87
+ };
88
+ export default MarkdownRenderer;
@@ -0,0 +1,4 @@
1
+ export declare const MarkdownCodeBlock: ({ node, inline, className, children, ...props }: any) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const Markdown: import('../../node_modules/@types/react').MemoExoticComponent<({ children }: {
3
+ children?: string;
4
+ }) => import("react/jsx-runtime").JSX.Element>;
@@ -0,0 +1,22 @@
1
+ import { default as React } from '../../node_modules/@types/react';
2
+
3
+ interface MessageInputBaseProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
4
+ value: string;
5
+ submitOnEnter?: boolean;
6
+ stop?: () => void;
7
+ isGenerating: boolean;
8
+ }
9
+ interface MessageInputWithoutAttachmentProps extends MessageInputBaseProps {
10
+ allowAttachments?: false;
11
+ }
12
+ interface MessageInputWithAttachmentsProps extends MessageInputBaseProps {
13
+ allowAttachments: true;
14
+ files: File[] | null;
15
+ setFiles: React.Dispatch<React.SetStateAction<File[] | null>>;
16
+ }
17
+ type MessageInputProps = MessageInputWithoutAttachmentProps | MessageInputWithAttachmentsProps;
18
+ export declare function MessageInput({ placeholder, className, onKeyDown: onKeyDownProp, submitOnEnter, stop, isGenerating, ...props }: MessageInputProps): import("react/jsx-runtime").JSX.Element;
19
+ export declare namespace MessageInput {
20
+ var displayName: string;
21
+ }
22
+ export {};
@@ -0,0 +1,11 @@
1
+ import { ChatMessageProps, Message } from './chat-message';
2
+
3
+ type AdditionalMessageOptions = Omit<ChatMessageProps, keyof Message>;
4
+ interface MessageListProps {
5
+ messages: Message[];
6
+ showTimeStamps?: boolean;
7
+ isTyping?: boolean;
8
+ messageOptions?: AdditionalMessageOptions | ((message: Message) => AdditionalMessageOptions);
9
+ }
10
+ export declare function MessageList({ messages, showTimeStamps, isTyping, messageOptions }: MessageListProps): import("react/jsx-runtime").JSX.Element;
11
+ export {};
@@ -0,0 +1,11 @@
1
+ interface PromptSuggestionsProps {
2
+ label: string;
3
+ append: (message: {
4
+ role: 'user';
5
+ content: string;
6
+ }) => void;
7
+ suggestions: string[];
8
+ memoryIsPresent?: boolean;
9
+ }
10
+ export declare function PromptSuggestions({ append, suggestions, memoryIsPresent }: PromptSuggestionsProps): import("react/jsx-runtime").JSX.Element;
11
+ export {};
@@ -0,0 +1 @@
1
+ export declare function highlight(code: string, language: string): Promise<import('shiki').ThemedToken[][] | null>;
@@ -0,0 +1,14 @@
1
+ export interface Message {
2
+ id: string;
3
+ role: 'user' | 'assistant';
4
+ content: string;
5
+ isError?: boolean;
6
+ }
7
+ export interface ChatProps {
8
+ agentId: string;
9
+ agentName?: string;
10
+ threadId?: string;
11
+ initialMessages?: Message[];
12
+ memory?: boolean;
13
+ buildUrl?: string;
14
+ }
@@ -0,0 +1 @@
1
+ export declare function TypingIndicator(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { FC } from '../../../node_modules/@types/react';
2
+
3
+ export declare const AssistantMessage: FC;
@@ -0,0 +1,3 @@
1
+ import { FC } from '../../../node_modules/@types/react';
2
+
3
+ export declare const AssistantModal: FC;
@@ -0,0 +1,3 @@
1
+ import { FC, PropsWithChildren } from '../../../node_modules/@types/react';
2
+
3
+ export declare const AssistantSidebar: FC<PropsWithChildren>;
@@ -0,0 +1,5 @@
1
+ import { FC } from '../../../node_modules/@types/react';
2
+
3
+ export declare const UserMessageAttachments: FC;
4
+ export declare const ComposerAttachments: FC;
5
+ export declare const ComposerAddAttachment: FC;
@@ -0,0 +1,2 @@
1
+
2
+ export declare const MarkdownText: import('../../../node_modules/@types/react').MemoExoticComponent<() => import("react/jsx-runtime").JSX.Element>;
@@ -0,0 +1 @@
1
+ export declare const SyntaxHighlighter: import('../../../node_modules/@types/react').FC<import('@assistant-ui/react-markdown').SyntaxHighlighterProps>;
@@ -0,0 +1,3 @@
1
+ import { FC } from '../../../node_modules/@types/react';
2
+
3
+ export declare const ThreadList: FC;
@@ -0,0 +1,5 @@
1
+ import { FC } from '../../../node_modules/@types/react';
2
+
3
+ export declare const Thread: FC<{
4
+ memory?: boolean;
5
+ }>;
@@ -0,0 +1,10 @@
1
+ import { ButtonProps } from '../ui/button';
2
+
3
+ export type TooltipIconButtonProps = ButtonProps & {
4
+ tooltip: string;
5
+ side?: 'top' | 'bottom' | 'left' | 'right';
6
+ };
7
+ export declare const TooltipIconButton: import('../../../node_modules/@types/react').ForwardRefExoticComponent<ButtonProps & {
8
+ tooltip: string;
9
+ side?: "top" | "bottom" | "left" | "right";
10
+ } & import('../../../node_modules/@types/react').RefAttributes<HTMLButtonElement>>;
@@ -0,0 +1,3 @@
1
+ import { FC } from '../../../node_modules/@types/react';
2
+
3
+ export declare const UserMessage: FC;
@@ -0,0 +1,3 @@
1
+ export declare const AgentIcon: ({ className }: {
2
+ className?: string;
3
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ export declare const AutomationIcon: ({ className }: {
2
+ className?: string;
3
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ export declare const useCodemirrorTheme: () => import('@uiw/react-codemirror').Extension;
2
+ export declare const SyntaxHighlighter: ({ data }: {
3
+ data: Record<string, unknown>;
4
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import * as AvatarPrimitive from '@radix-ui/react-avatar';
2
+ import * as React from 'react';
3
+ declare const Avatar: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
4
+ declare const AvatarImage: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarImageProps & React.RefAttributes<HTMLImageElement>, "ref"> & React.RefAttributes<HTMLImageElement>>;
5
+ declare const AvatarFallback: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarFallbackProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
6
+ export { Avatar, AvatarImage, AvatarFallback };
@@ -0,0 +1,10 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+
3
+ import * as React from 'react';
4
+ declare const badgeVariants: (props?: ({
5
+ variant?: "default" | "destructive" | "outline" | "secondary" | null | undefined;
6
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
+ export interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
8
+ }
9
+ declare function Badge({ className, variant, ...props }: BadgeProps): import("react/jsx-runtime").JSX.Element;
10
+ export { Badge, badgeVariants };
@@ -0,0 +1,12 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+
3
+ import * as React from 'react';
4
+ declare const buttonVariants: (props?: ({
5
+ variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null | undefined;
6
+ size?: "default" | "sm" | "lg" | "icon" | null | undefined;
7
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
8
+ export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
9
+ asChild?: boolean;
10
+ }
11
+ declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
12
+ export { Button, buttonVariants };
@@ -0,0 +1,7 @@
1
+ interface CopyableCell {
2
+ content: string;
3
+ label: string;
4
+ multiline?: boolean;
5
+ }
6
+ export declare function CopyableContent({ content, label, multiline }: CopyableCell): import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,72 @@
1
+ import { ColumnDef } from '@tanstack/react-table';
2
+ import { PaginationResult } from '../../lib/pagination/types';
3
+
4
+ interface DataTableProps<TData, TValue> {
5
+ /**
6
+ * table title
7
+ */
8
+ title?: string | React.ReactNode;
9
+ /**
10
+ * table icon
11
+ */
12
+ icon?: React.ReactNode;
13
+ /**
14
+ * disable table border
15
+ * @default false
16
+ */
17
+ withoutBorder?: boolean;
18
+ /**
19
+ * table columns
20
+ */
21
+ columns: ColumnDef<TData, TValue>[];
22
+ /**
23
+ * table data
24
+ */
25
+ data: TData[];
26
+ /**
27
+ * custom className for the table parent container
28
+ */
29
+ className?: string;
30
+ pagination?: PaginationResult;
31
+ /**
32
+ * goto next page
33
+ */
34
+ gotoNextPage?: () => void;
35
+ /**
36
+ * goto previous page
37
+ */
38
+ gotoPreviousPage?: () => void;
39
+ /**
40
+ * table max height
41
+ */
42
+ maxHeight?: string;
43
+ /**
44
+ * disable table container radius
45
+ * @default false
46
+ */
47
+ withoutRadius?: boolean;
48
+ /**
49
+ * disable flex container
50
+ * @default false
51
+ */
52
+ disabledFlex?: boolean;
53
+ /**
54
+ * height of the table row when there are no results
55
+ * @default '96px'
56
+ */
57
+ emptyStateHeight?: string;
58
+ /**
59
+ * get the row id
60
+ */
61
+ getRowId?: (row: TData) => string;
62
+ /**
63
+ * selected row id to use for row selection
64
+ */
65
+ selectedRowId?: string;
66
+ /**
67
+ * loading state
68
+ */
69
+ isLoading?: boolean;
70
+ }
71
+ export declare const DataTable: <TData, TValue>({ title, icon, withoutBorder, columns, data, className, pagination, gotoNextPage, gotoPreviousPage, maxHeight, withoutRadius, disabledFlex, emptyStateHeight, getRowId, selectedRowId, isLoading, }: DataTableProps<TData, TValue>) => import("react/jsx-runtime").JSX.Element;
72
+ export {};
@@ -0,0 +1,19 @@
1
+ import * as DialogPrimitive from '@radix-ui/react-dialog';
2
+ import * as React from 'react';
3
+ declare const Dialog: React.FC<DialogPrimitive.DialogProps>;
4
+ declare const DialogTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
5
+ declare const DialogPortal: React.FC<DialogPrimitive.DialogPortalProps>;
6
+ declare const DialogClose: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
7
+ declare const DialogOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
8
+ declare const DialogContent: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
9
+ declare const DialogHeader: {
10
+ ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
11
+ displayName: string;
12
+ };
13
+ declare const DialogFooter: {
14
+ ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
15
+ displayName: string;
16
+ };
17
+ declare const DialogTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
18
+ declare const DialogDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
19
+ export { Dialog, DialogPortal, DialogOverlay, DialogTrigger, DialogClose, DialogContent, DialogHeader, DialogFooter, DialogTitle, DialogDescription, };
@@ -0,0 +1,3 @@
1
+ export declare function FormattedDate({ date }: {
2
+ date: string;
3
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,12 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+
3
+ import * as React from 'react';
4
+ declare const inputVariants: (props?: ({
5
+ variant?: "default" | "filled" | "unstyled" | null | undefined;
6
+ customSize?: "default" | "sm" | "lg" | null | undefined;
7
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
8
+ export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement>, VariantProps<typeof inputVariants> {
9
+ testId?: string;
10
+ }
11
+ declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
12
+ export { Input, inputVariants };
@@ -0,0 +1,23 @@
1
+ import * as ResizablePrimitive from 'react-resizable-panels';
2
+ declare const ResizablePanelGroup: ({ className, ...props }: React.ComponentProps<typeof ResizablePrimitive.PanelGroup>) => import("react/jsx-runtime").JSX.Element;
3
+ declare const ResizablePanel: import('../../../node_modules/@types/react').ForwardRefExoticComponent<Omit<import('../../../node_modules/@types/react').HTMLAttributes<HTMLButtonElement | HTMLElement | HTMLDivElement | HTMLImageElement | HTMLSpanElement | HTMLPreElement | HTMLObjectElement | HTMLLinkElement | HTMLFormElement | HTMLSlotElement | HTMLStyleElement | HTMLTitleElement | HTMLDialogElement | HTMLOptionElement | HTMLTableElement | HTMLMapElement | HTMLAnchorElement | HTMLAreaElement | HTMLAudioElement | HTMLBaseElement | HTMLQuoteElement | HTMLBodyElement | HTMLBRElement | HTMLCanvasElement | HTMLTableColElement | HTMLDataElement | HTMLDataListElement | HTMLModElement | HTMLDetailsElement | HTMLDListElement | HTMLEmbedElement | HTMLFieldSetElement | HTMLHeadingElement | HTMLHeadElement | HTMLHRElement | HTMLHtmlElement | HTMLIFrameElement | HTMLInputElement | HTMLLabelElement | HTMLLegendElement | HTMLLIElement | HTMLMetaElement | HTMLMeterElement | HTMLOListElement | HTMLOptGroupElement | HTMLOutputElement | HTMLParagraphElement | HTMLProgressElement | HTMLScriptElement | HTMLSelectElement | HTMLSourceElement | HTMLTemplateElement | HTMLTableSectionElement | HTMLTableCellElement | HTMLTextAreaElement | HTMLTimeElement | HTMLTableRowElement | HTMLTrackElement | HTMLUListElement | HTMLVideoElement | HTMLTableCaptionElement | HTMLMenuElement | HTMLPictureElement>, "id" | "onResize"> & {
4
+ className?: string | undefined;
5
+ collapsedSize?: number | undefined;
6
+ collapsible?: boolean | undefined;
7
+ defaultSize?: number | undefined;
8
+ id?: string | undefined;
9
+ maxSize?: number | undefined;
10
+ minSize?: number | undefined;
11
+ onCollapse?: ResizablePrimitive.PanelOnCollapse | undefined;
12
+ onExpand?: ResizablePrimitive.PanelOnExpand | undefined;
13
+ onResize?: ResizablePrimitive.PanelOnResize | undefined;
14
+ order?: number | undefined;
15
+ style?: object | undefined;
16
+ tagName?: keyof HTMLElementTagNameMap | undefined;
17
+ } & {
18
+ children?: import('../../../node_modules/@types/react').ReactNode;
19
+ } & import('../../../node_modules/@types/react').RefAttributes<ResizablePrimitive.ImperativePanelHandle>>;
20
+ declare const ResizableHandle: ({ withHandle, className, ...props }: React.ComponentProps<typeof ResizablePrimitive.PanelResizeHandle> & {
21
+ withHandle?: boolean;
22
+ }) => import("react/jsx-runtime").JSX.Element;
23
+ export { ResizablePanelGroup, ResizablePanel, ResizableHandle };
@@ -0,0 +1,3 @@
1
+ export declare function ScoreIndicator({ score }: {
2
+ score: number;
3
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
2
+ import * as React from 'react';
3
+ declare const ScrollArea: React.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
4
+ declare const ScrollBar: React.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaScrollbarProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
5
+ export { ScrollArea, ScrollBar };
@@ -0,0 +1,2 @@
1
+ declare function Skeleton({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
2
+ export { Skeleton };
@@ -0,0 +1,4 @@
1
+ export declare const useCodemirrorTheme: () => import('@uiw/react-codemirror').Extension;
2
+ export declare const SyntaxHighlighter: ({ data }: {
3
+ data: Record<string, unknown>;
4
+ }) => import("react/jsx-runtime").JSX.Element;