tfy-web-components 0.0.21 → 0.0.23
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/atoms/Accordion.d.ts +10 -18
- package/dist/components/atoms/IconProvider.es.js +2 -1
- package/dist/components/atoms/IconProvider.es.js.map +1 -1
- package/dist/components/atoms/Switch.d.ts +1 -5
- package/dist/components/atoms/Tooltip.d.ts +3 -5
- package/dist/components/molecules/Markdown/ChatFileDownload.d.ts +17 -0
- package/dist/components/molecules/Markdown/ExpandableMarkdown.d.ts +13 -0
- package/dist/components/molecules/Markdown/LimitedLinesMarkdown.d.ts +10 -0
- package/dist/components/molecules/Markdown/Markdown.d.ts +23 -0
- package/dist/components/molecules/Markdown/Markdown.utils.d.ts +8 -0
- package/dist/components/molecules/Markdown/MarkdownLazy.d.ts +16 -0
- package/dist/components/molecules/Markdown/MarkdownWithOpenUI.d.ts +31 -0
- package/dist/components/molecules/Markdown/OpenUiFenceBlock.d.ts +9 -0
- package/dist/components/molecules/Markdown/SandboxArtifactsFenceBlock.d.ts +9 -0
- package/dist/components/molecules/Markdown/codeFencing.d.ts +50 -0
- package/dist/components/molecules/Markdown/components.d.ts +59 -0
- package/dist/components/molecules/Markdown/index.d.ts +7 -0
- package/dist/components/molecules/Markdown/parseSandboxArtifacts.d.ts +15 -0
- package/dist/components/molecules/agent-chat/AgentStepRow.d.ts +28 -0
- package/dist/components/molecules/agent-chat/AskUserQuestionCard.d.ts +36 -0
- package/dist/components/molecules/agent-chat/AssistantMessage.d.ts +9 -0
- package/dist/components/molecules/agent-chat/McpAuthCard.d.ts +16 -0
- package/dist/components/molecules/agent-chat/ReasoningCard.d.ts +16 -0
- package/dist/components/molecules/agent-chat/SandboxToolCall.d.ts +15 -0
- package/dist/components/molecules/agent-chat/StatusDot.d.ts +7 -0
- package/dist/components/molecules/agent-chat/StepIconBox.d.ts +11 -0
- package/dist/components/molecules/agent-chat/SubAgentCard.d.ts +18 -0
- package/dist/components/molecules/agent-chat/ToolApprovalBlock.d.ts +36 -0
- package/dist/components/molecules/agent-chat/ToolCallCard.d.ts +25 -0
- package/dist/components/molecules/agent-chat/ToolCallContentBlock.d.ts +17 -0
- package/dist/components/molecules/agent-chat/UserMessage.es.js +1 -1
- package/dist/components/molecules/agent-chat/UserMessage.es.js.map +1 -1
- package/dist/components/molecules/agent-chat/index.d.ts +26 -0
- package/dist/components/molecules/agent-chat.es.js +317 -252
- package/dist/components/molecules/agent-chat.es.js.map +1 -1
- package/dist/components/molecules/monacoEditorCore/MonacoEditorCore.d.ts +15 -0
- package/dist/components/molecules/monacoEditorCore/useFontReady.d.ts +1 -0
- package/dist/contexts/RootFontSizeContext.d.ts +7 -0
- package/dist/hooks/useContainerDimensions.d.ts +3 -0
- package/dist/index.d.ts +6 -0
- package/dist/style.css +1 -1
- package/dist/tailwindPreset.d.ts +144 -140
- package/dist/types/enum.d.ts +7 -0
- package/dist/utils/classNames.d.ts +2 -0
- package/dist/utils/conversions.d.ts +1 -0
- package/dist/utils/getRootFontSize.d.ts +2 -0
- package/dist/utils/index.d.ts +5 -0
- package/package.json +1 -1
- package/dist/..d.ts +0 -77
- package/dist/Accordion.d.ts +0 -57
- package/dist/Alert.d.ts +0 -73
- package/dist/AudioPlayer.d.ts +0 -10
- package/dist/Avatar.d.ts +0 -19
- package/dist/Badge.d.ts +0 -47
- package/dist/Button.d.ts +0 -64
- package/dist/CopyField.d.ts +0 -82
- package/dist/CustomDrawer.d.ts +0 -37
- package/dist/Dialog.d.ts +0 -18
- package/dist/DropdownMenu.d.ts +0 -25
- package/dist/IconButton.d.ts +0 -17
- package/dist/IconProvider.d.ts +0 -41
- package/dist/ImagesPreview.d.ts +0 -12
- package/dist/Input.d.ts +0 -27
- package/dist/Markdown.d.ts +0 -103
- package/dist/Modal.d.ts +0 -12
- package/dist/Notification.d.ts +0 -12
- package/dist/Notify.d.ts +0 -4
- package/dist/OutlinedRadio.d.ts +0 -9
- package/dist/SimpleCodeEditor.d.ts +0 -63
- package/dist/Skeleton.d.ts +0 -7
- package/dist/Spinner.d.ts +0 -15
- package/dist/Switch.d.ts +0 -20
- package/dist/TabButton.d.ts +0 -20
- package/dist/TabPanel.d.ts +0 -14
- package/dist/ThumbsFeedback.d.ts +0 -18
- package/dist/ToggleButton.d.ts +0 -42
- package/dist/Tooltip.d.ts +0 -32
- package/dist/UserMessage.d.ts +0 -15
- package/dist/UserMessageEdit.d.ts +0 -16
- package/dist/agent-chat.d.ts +0 -222
- package/dist/animation.d.ts +0 -6
- package/dist/backgroundColor.d.ts +0 -5
- package/dist/backgroundImage.d.ts +0 -10
- package/dist/borderWidth.d.ts +0 -6
- package/dist/colors.d.ts +0 -195
- package/dist/components/molecules/Markdown.d.ts +0 -1
- package/dist/components/molecules/agent-chat.d.ts +0 -1
- package/dist/cursor.d.ts +0 -5
- package/dist/dropShadow.d.ts +0 -5
- package/dist/flexGrow.d.ts +0 -5
- package/dist/fontSize.d.ts +0 -8
- package/dist/height.d.ts +0 -8
- package/dist/keyframes.d.ts +0 -20
- package/dist/lightColorPlugin.d.ts +0 -3
- package/dist/maxHeight.d.ts +0 -6
- package/dist/screens.d.ts +0 -8
- package/dist/theme.d.ts +0 -58
- package/dist/transitionProperty.d.ts +0 -6
- package/dist/useTheme.d.ts +0 -32
- package/dist/utils.d.ts +0 -79
- package/dist/zIndex.d.ts +0 -5
package/dist/Button.d.ts
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import type { FontAwesomeIconProps } from '@fortawesome/react-fontawesome';
|
|
2
|
-
import { default as React_2 } from 'react';
|
|
3
|
-
import * as React_3 from 'react';
|
|
4
|
-
import { TooltipProps as TooltipProps_2 } from '@mui/material/Tooltip';
|
|
5
|
-
|
|
6
|
-
declare const Button: ButtonComponent;
|
|
7
|
-
export { Button }
|
|
8
|
-
export default Button;
|
|
9
|
-
|
|
10
|
-
declare type ButtonComponent = React_2.ForwardRefExoticComponent<ButtonProps> & {
|
|
11
|
-
Ghost: React_2.ForwardRefExoticComponent<ButtonProps>;
|
|
12
|
-
Primary: React_2.ForwardRefExoticComponent<ButtonProps>;
|
|
13
|
-
Secondary: React_2.ForwardRefExoticComponent<ButtonProps>;
|
|
14
|
-
Tertiary: React_2.ForwardRefExoticComponent<ButtonProps>;
|
|
15
|
-
Destructive: React_2.ForwardRefExoticComponent<ButtonProps>;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
export declare interface ButtonProps {
|
|
19
|
-
id?: string;
|
|
20
|
-
icon?: FontAwesomeIconProps['icon'] | string;
|
|
21
|
-
text?: React_2.ReactNode | JSX.Element | string;
|
|
22
|
-
block?: boolean;
|
|
23
|
-
disabled?: boolean;
|
|
24
|
-
loading?: boolean;
|
|
25
|
-
dataTestId?: string;
|
|
26
|
-
iconToRight?: boolean;
|
|
27
|
-
variant?: 'primary' | 'secondary' | 'ghost' | 'tertiary' | 'destructive';
|
|
28
|
-
size?: ButtonSize;
|
|
29
|
-
onClick?: (e: React_2.MouseEvent<HTMLButtonElement>) => void;
|
|
30
|
-
iconClasses?: string;
|
|
31
|
-
type?: 'submit' | 'reset' | 'button';
|
|
32
|
-
tooltipProps?: TooltipProps;
|
|
33
|
-
iconSize?: number;
|
|
34
|
-
removeIconContainer?: boolean;
|
|
35
|
-
isMenuItem?: boolean;
|
|
36
|
-
useLightTooltip?: boolean;
|
|
37
|
-
className?: string;
|
|
38
|
-
autoFocus?: boolean;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export declare type ButtonSize = 'large' | 'small';
|
|
42
|
-
|
|
43
|
-
declare type CustomTooltipProps = TooltipProps_2 & {
|
|
44
|
-
size?: Sizes;
|
|
45
|
-
border?: boolean;
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
export declare const DestructiveButton: React_2.ForwardRefExoticComponent<ButtonProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
49
|
-
|
|
50
|
-
export declare const GhostButton: React_2.ForwardRefExoticComponent<ButtonProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
51
|
-
|
|
52
|
-
export declare const PrimaryButton: React_2.ForwardRefExoticComponent<ButtonProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
53
|
-
|
|
54
|
-
export declare const SecondaryButton: React_2.ForwardRefExoticComponent<ButtonProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
55
|
-
|
|
56
|
-
declare type Sizes = 'large' | 'variable' | 'medium' | 'fit';
|
|
57
|
-
|
|
58
|
-
export declare const TertiaryButton: React_2.ForwardRefExoticComponent<ButtonProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
59
|
-
|
|
60
|
-
declare type TooltipProps = Partial<Pick<CustomTooltipProps, 'title' | 'placement' | 'size'>> & {
|
|
61
|
-
disabledTitle?: React_3.ReactNode;
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
export { }
|
package/dist/CopyField.d.ts
DELETED
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import type { FontAwesomeIconProps } from '@fortawesome/react-fontawesome';
|
|
2
|
-
import { IconProp } from '@fortawesome/fontawesome-svg-core';
|
|
3
|
-
import { default as React_2 } from 'react';
|
|
4
|
-
import * as React_3 from 'react';
|
|
5
|
-
import { TooltipProps as TooltipProps_2 } from '@mui/material/Tooltip';
|
|
6
|
-
|
|
7
|
-
declare interface ButtonProps {
|
|
8
|
-
id?: string;
|
|
9
|
-
icon?: FontAwesomeIconProps['icon'] | string;
|
|
10
|
-
text?: React_2.ReactNode | JSX.Element | string;
|
|
11
|
-
block?: boolean;
|
|
12
|
-
disabled?: boolean;
|
|
13
|
-
loading?: boolean;
|
|
14
|
-
dataTestId?: string;
|
|
15
|
-
iconToRight?: boolean;
|
|
16
|
-
variant?: 'primary' | 'secondary' | 'ghost' | 'tertiary' | 'destructive';
|
|
17
|
-
size?: ButtonSize;
|
|
18
|
-
onClick?: (e: React_2.MouseEvent<HTMLButtonElement>) => void;
|
|
19
|
-
iconClasses?: string;
|
|
20
|
-
type?: 'submit' | 'reset' | 'button';
|
|
21
|
-
tooltipProps?: TooltipProps;
|
|
22
|
-
iconSize?: number;
|
|
23
|
-
removeIconContainer?: boolean;
|
|
24
|
-
isMenuItem?: boolean;
|
|
25
|
-
useLightTooltip?: boolean;
|
|
26
|
-
className?: string;
|
|
27
|
-
autoFocus?: boolean;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
declare type ButtonSize = 'large' | 'small';
|
|
31
|
-
|
|
32
|
-
declare const CopyField: React_2.FC<CopyFieldProps>;
|
|
33
|
-
export default CopyField;
|
|
34
|
-
|
|
35
|
-
export declare const CopyFieldHighlighted: React_2.FC<{
|
|
36
|
-
text: string;
|
|
37
|
-
wrapLongLines?: boolean;
|
|
38
|
-
}>;
|
|
39
|
-
|
|
40
|
-
declare interface CopyFieldProps {
|
|
41
|
-
children?: string | JSX.Element;
|
|
42
|
-
errorMessage?: string;
|
|
43
|
-
rawValue?: string;
|
|
44
|
-
after?: boolean;
|
|
45
|
-
disabled?: boolean;
|
|
46
|
-
className?: string;
|
|
47
|
-
btnClass?: string;
|
|
48
|
-
btnTextClass?: string;
|
|
49
|
-
iconClass?: string;
|
|
50
|
-
initialText?: string | React_2.ReactNode | JSX.Element;
|
|
51
|
-
bgClass?: string;
|
|
52
|
-
tooltipTitle?: string | JSX.Element;
|
|
53
|
-
dataTestPrefix?: string;
|
|
54
|
-
wrapperDataTestId?: string;
|
|
55
|
-
btnProps?: ButtonProps;
|
|
56
|
-
beforeCopy?: () => Promise<string>;
|
|
57
|
-
onCopy?: () => void;
|
|
58
|
-
icon?: null | IconProp;
|
|
59
|
-
buttonSize?: ButtonSize;
|
|
60
|
-
isIconButton?: boolean;
|
|
61
|
-
iconSize?: number;
|
|
62
|
-
isGhostButton?: boolean;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
export declare const CopyInputField: React_2.FC<{
|
|
66
|
-
copyProps: CopyFieldProps;
|
|
67
|
-
className?: string;
|
|
68
|
-
inputClassName?: string;
|
|
69
|
-
}>;
|
|
70
|
-
|
|
71
|
-
declare type CustomTooltipProps = TooltipProps_2 & {
|
|
72
|
-
size?: Sizes;
|
|
73
|
-
border?: boolean;
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
declare type Sizes = 'large' | 'variable' | 'medium' | 'fit';
|
|
77
|
-
|
|
78
|
-
declare type TooltipProps = Partial<Pick<CustomTooltipProps, 'title' | 'placement' | 'size'>> & {
|
|
79
|
-
disabledTitle?: React_3.ReactNode;
|
|
80
|
-
};
|
|
81
|
-
|
|
82
|
-
export { }
|
package/dist/CustomDrawer.d.ts
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { PaperProps } from '@mui/material';
|
|
2
|
-
import { default as React_2 } from 'react';
|
|
3
|
-
|
|
4
|
-
declare type ContextType = {
|
|
5
|
-
isPreventEscape?: boolean;
|
|
6
|
-
confirmOnClose?: boolean;
|
|
7
|
-
onEscape?: () => void;
|
|
8
|
-
updateDrawerContext?: (_?: ContextType, clearState?: boolean) => void;
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
declare const CustomDrawer: React_2.FC<DrawerProps>;
|
|
12
|
-
export default CustomDrawer;
|
|
13
|
-
|
|
14
|
-
export declare const CustomDrawerContext: React_2.Context<ContextType>;
|
|
15
|
-
|
|
16
|
-
export declare interface DrawerProps {
|
|
17
|
-
children: React_2.ReactNode | JSX.Element | string;
|
|
18
|
-
anchor?: 'right' | 'left' | 'top' | 'bottom' | undefined;
|
|
19
|
-
open: boolean;
|
|
20
|
-
inner?: boolean;
|
|
21
|
-
size?: 'small' | 'medium' | 'large' | 'xlarge';
|
|
22
|
-
width?: string;
|
|
23
|
-
bodyClassName?: string;
|
|
24
|
-
className?: string;
|
|
25
|
-
overflowY?: boolean;
|
|
26
|
-
confirmOnClose?: boolean;
|
|
27
|
-
confirmOnCloseMessage?: string;
|
|
28
|
-
onClose: () => void;
|
|
29
|
-
hideBackdrop?: boolean;
|
|
30
|
-
paperProps?: PaperProps;
|
|
31
|
-
animateSizeChange?: boolean;
|
|
32
|
-
disableEnforceFocus?: boolean;
|
|
33
|
-
elevatedZIndex?: boolean;
|
|
34
|
-
dataTestPrefix?: string;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export { }
|
package/dist/Dialog.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { DialogProps } from '@mui/material';
|
|
2
|
-
import { default as React_2 } from 'react';
|
|
3
|
-
|
|
4
|
-
declare const Dialog: React_2.FC<ModalProps>;
|
|
5
|
-
export default Dialog;
|
|
6
|
-
|
|
7
|
-
declare interface ModalProps {
|
|
8
|
-
setOpen: React_2.Dispatch<React_2.SetStateAction<boolean>>;
|
|
9
|
-
open: boolean;
|
|
10
|
-
title?: React_2.ReactNode | JSX.Element | string;
|
|
11
|
-
content: React_2.ReactNode | JSX.Element | string;
|
|
12
|
-
actions?: React_2.ReactNode | JSX.Element | string;
|
|
13
|
-
maxWidth?: DialogProps['maxWidth'];
|
|
14
|
-
fullScreen?: DialogProps['fullScreen'];
|
|
15
|
-
PaperProps?: object;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export { }
|
package/dist/DropdownMenu.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { MenuItemProps } from '@mui/material/MenuItem';
|
|
2
|
-
import { default as React_2 } from 'react';
|
|
3
|
-
|
|
4
|
-
declare const DropdownMenu: React_2.FC<DropdownMenuProps> & {
|
|
5
|
-
Item: typeof DropdownMenuItem;
|
|
6
|
-
};
|
|
7
|
-
export { DropdownMenu }
|
|
8
|
-
export default DropdownMenu;
|
|
9
|
-
|
|
10
|
-
export declare const DropdownMenuItem: React_2.FC<DropdownMenuItemProps>;
|
|
11
|
-
|
|
12
|
-
export declare interface DropdownMenuItemProps extends MenuItemProps {
|
|
13
|
-
children: React_2.ReactNode;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export declare interface DropdownMenuProps {
|
|
17
|
-
trigger: React_2.ReactNode;
|
|
18
|
-
children: React_2.ReactNode;
|
|
19
|
-
align?: 'start' | 'center' | 'end';
|
|
20
|
-
side?: 'top' | 'bottom' | 'left' | 'right';
|
|
21
|
-
className?: string;
|
|
22
|
-
contentClassName?: string;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export { }
|
package/dist/IconButton.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { IconProp } from '@fortawesome/fontawesome-svg-core';
|
|
2
|
-
import { default as React_2 } from 'react';
|
|
3
|
-
|
|
4
|
-
declare const IconButton: React_2.FC<IconButtonProps>;
|
|
5
|
-
export default IconButton;
|
|
6
|
-
|
|
7
|
-
export declare interface IconButtonProps {
|
|
8
|
-
icon: string | IconProp;
|
|
9
|
-
onClick?: (e: React_2.MouseEvent) => void;
|
|
10
|
-
iconSize?: number;
|
|
11
|
-
disabled?: boolean;
|
|
12
|
-
tooltip?: React_2.ReactNode;
|
|
13
|
-
disabledTooltip?: React_2.ReactNode;
|
|
14
|
-
className?: string;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export { }
|
package/dist/IconProvider.d.ts
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { FontAwesomeIconProps } from '@fortawesome/react-fontawesome';
|
|
2
|
-
import { IconProp as IconProp_2 } from '@fortawesome/fontawesome-svg-core';
|
|
3
|
-
import { default as React_2 } from 'react';
|
|
4
|
-
|
|
5
|
-
declare type CustomIcon = React_2.ComponentType<CustomIconProps>;
|
|
6
|
-
|
|
7
|
-
declare type CustomIconMap = {
|
|
8
|
-
[key: string]: React_2.LazyExoticComponent<CustomIcon> | CustomIcon;
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
declare type CustomIconProps = {
|
|
12
|
-
onClick?: (e: React_2.MouseEvent) => void;
|
|
13
|
-
className?: string;
|
|
14
|
-
style?: React_2.CSSProperties;
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
declare const _default: React_2.MemoExoticComponent<React_2.ForwardRefExoticComponent<IconProps & React_2.RefAttributes<HTMLElement>>>;
|
|
18
|
-
export default _default;
|
|
19
|
-
|
|
20
|
-
export declare type IconProp = string | IconProp_2;
|
|
21
|
-
|
|
22
|
-
declare interface IconProps {
|
|
23
|
-
icon: IconProp;
|
|
24
|
-
color?: string;
|
|
25
|
-
className?: string;
|
|
26
|
-
onClick?: (e: React_2.MouseEvent) => void;
|
|
27
|
-
size?: number;
|
|
28
|
-
width?: number;
|
|
29
|
-
forwardedRef?: React_2.Ref<HTMLElement>;
|
|
30
|
-
nativeProps?: Partial<FontAwesomeIconProps>;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
declare type ImgIconMap = {
|
|
34
|
-
[key: string]: string;
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
export declare const registerIcons: (iconMap: CustomIconMap) => void;
|
|
38
|
-
|
|
39
|
-
export declare const registerImgIcons: (iconMap: ImgIconMap) => void;
|
|
40
|
-
|
|
41
|
-
export { }
|
package/dist/ImagesPreview.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { default as React_2 } from 'react';
|
|
2
|
-
|
|
3
|
-
declare const ImagesPreview: React_2.FC<ImagesPreviewProps>;
|
|
4
|
-
export default ImagesPreview;
|
|
5
|
-
|
|
6
|
-
export declare interface ImagesPreviewProps {
|
|
7
|
-
images: string[];
|
|
8
|
-
/** Override the default image download behavior. */
|
|
9
|
-
onDownloadImage?: (url: string, filename: string) => Promise<void>;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export { }
|
package/dist/Input.d.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { default as React_2 } from 'react';
|
|
2
|
-
|
|
3
|
-
declare const Input: React_2.ForwardRefExoticComponent<InputProps & React_2.RefAttributes<HTMLInputElement>>;
|
|
4
|
-
export default Input;
|
|
5
|
-
|
|
6
|
-
export declare interface InputProps extends React_2.InputHTMLAttributes<HTMLInputElement> {
|
|
7
|
-
text?: string | JSX.Element;
|
|
8
|
-
statusSlot?: JSX.Element | string;
|
|
9
|
-
statusAlt?: boolean;
|
|
10
|
-
customErrorMessage?: string;
|
|
11
|
-
status?: 'success' | 'error';
|
|
12
|
-
wrapperClasses?: string;
|
|
13
|
-
statusClasses?: string;
|
|
14
|
-
labelClasses?: string;
|
|
15
|
-
borderRadiusClasses?: string;
|
|
16
|
-
showErrorAsTooltip?: boolean;
|
|
17
|
-
hideErrorMessage?: boolean;
|
|
18
|
-
invalidError?: string;
|
|
19
|
-
prefixSlot?: React_2.ReactNode;
|
|
20
|
-
suffixSlot?: React_2.ReactNode;
|
|
21
|
-
dataTestId?: string;
|
|
22
|
-
onValidation?: (valid: boolean) => void;
|
|
23
|
-
labelContainerClasses?: string;
|
|
24
|
-
prefixSlotClassName?: string;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export { }
|
package/dist/Markdown.d.ts
DELETED
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import { default as React_2 } from 'react';
|
|
2
|
-
import ReactMarkdown from 'react-markdown';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Registers a fenced-code renderer for a language id. `content` and `darkTheme` are always
|
|
6
|
-
* supplied by the markdown layer; `componentProps` are merged first so the fence wins for those keys.
|
|
7
|
-
*/
|
|
8
|
-
export declare type CodeFenceBlockDefinition = {
|
|
9
|
-
Component: React_2.ComponentType<FencedCodeBlockProps>;
|
|
10
|
-
componentProps?: Partial<Omit<FencedCodeBlockProps, 'content' | 'darkTheme'>>;
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
/** Maps language ids (e.g. `openui` from `language-openui`) to a block definition. */
|
|
14
|
-
export declare type CodeFencingConfig = Partial<Record<string, CodeFenceBlockDefinition>>;
|
|
15
|
-
|
|
16
|
-
export declare type FencedCodeBlockProps = {
|
|
17
|
-
isStreaming?: boolean;
|
|
18
|
-
/** Optional base URL for fenced blocks that expose downloads (e.g. sandbox artifacts). */
|
|
19
|
-
fileDownloadBaseUrl?: string;
|
|
20
|
-
/** When true, download actions inside fenced blocks are hidden/disabled. */
|
|
21
|
-
readOnly?: boolean;
|
|
22
|
-
/** Custom download handler that receives the original sandbox artifact path. */
|
|
23
|
-
onDownloadArtifact?: (path: string, filename: string) => Promise<void>;
|
|
24
|
-
/** Custom download handler for fenced blocks that expose file downloads. */
|
|
25
|
-
onDownloadFile?: (url: string, filename: string) => Promise<void>;
|
|
26
|
-
content: string;
|
|
27
|
-
darkTheme?: boolean;
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
declare enum InfoType {
|
|
31
|
-
SUCCESS = "success",
|
|
32
|
-
ERROR = "error",
|
|
33
|
-
WARNING = "warning",
|
|
34
|
-
DEFAULT = "default",
|
|
35
|
-
DESCRIPTION = "description"
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export declare type MarkdownProps = Omit<React_2.ComponentProps<typeof ReactMarkdown>, 'components'> & {
|
|
39
|
-
className?: string;
|
|
40
|
-
type?: InfoType;
|
|
41
|
-
codeFileName?: string;
|
|
42
|
-
darkTheme?: boolean;
|
|
43
|
-
bodyClass?: string;
|
|
44
|
-
skipLanguageMatch?: boolean;
|
|
45
|
-
isReadme?: boolean;
|
|
46
|
-
isMathPluginEnabled?: boolean;
|
|
47
|
-
codeStyle?: React_2.CSSProperties;
|
|
48
|
-
showCopyLabel?: boolean;
|
|
49
|
-
showCopyOutside?: boolean;
|
|
50
|
-
customStyles?: Record<string, any>;
|
|
51
|
-
enableCopy?: boolean;
|
|
52
|
-
codeFencingConfig?: CodeFencingConfig;
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* Markdown with optional OpenUI fenced blocks (` ```openui `).
|
|
57
|
-
* OpenUI dependencies load only when the markdown string contains such a fence, or when
|
|
58
|
-
* {@link preloadMarkdownOpenUI} has been called earlier.
|
|
59
|
-
*/
|
|
60
|
-
export declare const MarkdownWithOpenUI: React_2.FC<MarkdownWithOpenUIProps>;
|
|
61
|
-
|
|
62
|
-
export declare type MarkdownWithOpenUIProps = Omit<MarkdownProps, 'codeFencingConfig'> & {
|
|
63
|
-
/** Forwarded into the OpenUI fence block (e.g. streaming assistant output). */
|
|
64
|
-
isStreaming?: boolean;
|
|
65
|
-
/** Base URL for resolving sandbox artifact download paths (e.g. gateway file endpoint). */
|
|
66
|
-
fileDownloadBaseUrl?: string;
|
|
67
|
-
/** When true, download actions in sandbox artifact blocks are hidden/disabled. */
|
|
68
|
-
readOnly?: boolean;
|
|
69
|
-
/** Custom download handler that receives the original sandbox artifact path. */
|
|
70
|
-
onDownloadArtifact?: (path: string, filename: string) => Promise<void>;
|
|
71
|
-
/**
|
|
72
|
-
* Custom download handler forwarded to sandbox artifact blocks.
|
|
73
|
-
* Receives the resolved URL and suggested filename.
|
|
74
|
-
*/
|
|
75
|
-
onDownloadFile?: (url: string, filename: string) => Promise<void>;
|
|
76
|
-
};
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* Parses a `sandbox_artifacts` fence body into an ordered list of `{ name, path }` files.
|
|
80
|
-
*
|
|
81
|
-
* Expected lines look like `[add.py](/tmp/add.py)`; multiple entries may be separated by newlines.
|
|
82
|
-
* The optional leading `sandbox_artifacts` literal is stripped before pair extraction for
|
|
83
|
-
* backwards compatibility with inline `sandbox_artifacts[...](...)...` bodies.
|
|
84
|
-
*
|
|
85
|
-
* Pairs with empty `name` or empty `path` are dropped, which also ignores incomplete trailing
|
|
86
|
-
* tokens like `[a]` without a following `(...)`.
|
|
87
|
-
*/
|
|
88
|
-
export declare function parseSandboxArtifacts(content: string): SandboxArtifactFile[];
|
|
89
|
-
|
|
90
|
-
/**
|
|
91
|
-
* Same module as the lazy OpenUI fence block; call to preload OpenUI (react-lang, react-ui, CSS)
|
|
92
|
-
* before markdown is known to contain ```openui fences — e.g. when opening the playground chat.
|
|
93
|
-
*/
|
|
94
|
-
export declare const preloadMarkdownOpenUI: () => Promise<{
|
|
95
|
-
default: React_2.ComponentType<any>;
|
|
96
|
-
}>;
|
|
97
|
-
|
|
98
|
-
export declare type SandboxArtifactFile = {
|
|
99
|
-
name: string;
|
|
100
|
-
path: string;
|
|
101
|
-
};
|
|
102
|
-
|
|
103
|
-
export { }
|
package/dist/Modal.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import MuiModal from '@mui/material/Modal';
|
|
2
|
-
import { default as React_2 } from 'react';
|
|
3
|
-
|
|
4
|
-
declare const Modal: React_2.FC<ModalProps>;
|
|
5
|
-
export default Modal;
|
|
6
|
-
|
|
7
|
-
export declare interface ModalProps extends React_2.ComponentProps<typeof MuiModal> {
|
|
8
|
-
children: JSX.Element;
|
|
9
|
-
disableEnforceFocus?: boolean;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export { }
|
package/dist/Notification.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { default as React_2 } from 'react';
|
|
2
|
-
|
|
3
|
-
export declare const Toast: React_2.FC<ToastProps>;
|
|
4
|
-
|
|
5
|
-
declare type ToastProps = {
|
|
6
|
-
title?: string;
|
|
7
|
-
msg?: string;
|
|
8
|
-
icon?: React_2.ReactNode | JSX.Element | string;
|
|
9
|
-
dataTestPrefix?: string;
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
export { }
|
package/dist/Notify.d.ts
DELETED
package/dist/OutlinedRadio.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { RadioProps } from '@mui/material/Radio';
|
|
2
|
-
import { default as React_2 } from 'react';
|
|
3
|
-
|
|
4
|
-
declare const OutlinedRadio: React_2.FC<OutlinedRadioProps>;
|
|
5
|
-
export default OutlinedRadio;
|
|
6
|
-
|
|
7
|
-
export declare type OutlinedRadioProps = Omit<RadioProps, 'icon' | 'checkedIcon'>;
|
|
8
|
-
|
|
9
|
-
export { }
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { default as React_2 } from 'react';
|
|
2
|
-
|
|
3
|
-
export declare const importEditor: () => Promise<{
|
|
4
|
-
default: React_2.ComponentType<any>;
|
|
5
|
-
}>;
|
|
6
|
-
|
|
7
|
-
declare function SimpleCodeEditor({ defaultValue, value, language, readOnly, className, expandDataTestId, height, maxHeight, enableCopy, enableDownload, downloadName, hideLineNumbers, isFoldingEnabled, enableExpand, fullHeight, autoLayout, fontSize, tabSize, showToolsOnHover, onChange, alwaysConsumeMouseWheel, enableWordWrap, initialLinesCount, placeholder, placeholderClassName, autoFocus, onlyCopyIcon, openAsFullscreen, dataTestPrefix, renderIndentGuides, enableLineCopy, onMinimise, disableEditorResize, codeToCopy, extraButtons, onValidate, showExpandOverlay, softMaxHeight, darkModeBgColor, showExpandOnlyInFullscreen, hideHorizontalScrollbar, onPaste, enableLineNumbersForText, enableLineHighlight, onEditorReady, isPrivate, }: SimpleCodeEditorProps): React_2.JSX.Element;
|
|
8
|
-
export default SimpleCodeEditor;
|
|
9
|
-
|
|
10
|
-
export declare interface SimpleCodeEditorProps {
|
|
11
|
-
defaultValue?: string;
|
|
12
|
-
value?: string;
|
|
13
|
-
language: string;
|
|
14
|
-
readOnly?: boolean;
|
|
15
|
-
className?: string;
|
|
16
|
-
height?: string | number;
|
|
17
|
-
maxHeight?: number;
|
|
18
|
-
enableCopy?: boolean;
|
|
19
|
-
enableDownload?: boolean;
|
|
20
|
-
expandDataTestId?: string;
|
|
21
|
-
downloadName?: string;
|
|
22
|
-
hideLineNumbers?: boolean;
|
|
23
|
-
isFoldingEnabled?: boolean;
|
|
24
|
-
enableExpand?: boolean;
|
|
25
|
-
fullHeight?: boolean;
|
|
26
|
-
autoLayout?: boolean;
|
|
27
|
-
fontSize?: number;
|
|
28
|
-
tabSize?: number;
|
|
29
|
-
showToolsOnHover?: boolean;
|
|
30
|
-
onChange?: (value?: string) => void;
|
|
31
|
-
alwaysConsumeMouseWheel?: boolean;
|
|
32
|
-
enableWordWrap?: boolean;
|
|
33
|
-
initialLinesCount?: number;
|
|
34
|
-
placeholder?: string;
|
|
35
|
-
placeholderClassName?: string;
|
|
36
|
-
autoFocus?: boolean;
|
|
37
|
-
onlyCopyIcon?: boolean;
|
|
38
|
-
openAsFullscreen?: boolean;
|
|
39
|
-
dataTestPrefix?: string;
|
|
40
|
-
renderIndentGuides?: boolean;
|
|
41
|
-
enableLineCopy?: boolean;
|
|
42
|
-
onMinimise?: () => void;
|
|
43
|
-
disableEditorResize?: boolean;
|
|
44
|
-
codeToCopy?: string;
|
|
45
|
-
extraButtons?: React_2.ReactNode | null;
|
|
46
|
-
onValidate?: (errors: any) => void;
|
|
47
|
-
showExpandOverlay?: boolean;
|
|
48
|
-
softMaxHeight?: number | null;
|
|
49
|
-
darkModeBgColor?: string;
|
|
50
|
-
showExpandOnlyInFullscreen?: boolean;
|
|
51
|
-
hideHorizontalScrollbar?: boolean;
|
|
52
|
-
enableLineNumbersForText?: boolean;
|
|
53
|
-
enableLineHighlight?: boolean;
|
|
54
|
-
onPaste?: (value: string) => void;
|
|
55
|
-
onEditorReady?: (editor: {
|
|
56
|
-
focus: () => void;
|
|
57
|
-
}) => void;
|
|
58
|
-
isPrivate?: boolean;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
export declare const usePreloadEditor: () => null;
|
|
62
|
-
|
|
63
|
-
export { }
|
package/dist/Skeleton.d.ts
DELETED
package/dist/Spinner.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { default as React_2 } from 'react';
|
|
2
|
-
|
|
3
|
-
declare const Spinner: React_2.FC<SpinnerProps>;
|
|
4
|
-
export default Spinner;
|
|
5
|
-
|
|
6
|
-
export declare interface SpinnerProps {
|
|
7
|
-
className?: string;
|
|
8
|
-
small?: boolean;
|
|
9
|
-
big?: boolean;
|
|
10
|
-
medium?: boolean;
|
|
11
|
-
center?: boolean;
|
|
12
|
-
type?: 'normal';
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export { }
|
package/dist/Switch.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { MUIStyledCommonProps } from '@mui/system';
|
|
2
|
-
import { StyledComponent } from '@emotion/styled';
|
|
3
|
-
import { SwitchProps } from '@mui/material/Switch';
|
|
4
|
-
import { Theme } from '@mui/material';
|
|
5
|
-
|
|
6
|
-
declare interface InputHTMLAttributesExtended extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
7
|
-
'data-test'?: string;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export declare interface StyledSwitchProps {
|
|
11
|
-
inputProps?: InputHTMLAttributesExtended;
|
|
12
|
-
widthMultiple?: number;
|
|
13
|
-
heightMultiple?: number;
|
|
14
|
-
thumbWidthMultiple?: number;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
declare const Switch: StyledComponent<SwitchProps & MUIStyledCommonProps<Theme> & StyledSwitchProps, {}, {}>;
|
|
18
|
-
export default Switch;
|
|
19
|
-
|
|
20
|
-
export { }
|
package/dist/TabButton.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { IconProp as IconProp_2 } from '@fortawesome/fontawesome-svg-core';
|
|
2
|
-
import { default as React_2 } from 'react';
|
|
3
|
-
import Tab from '@mui/material/Tab';
|
|
4
|
-
|
|
5
|
-
declare type IconProp = string | IconProp_2;
|
|
6
|
-
|
|
7
|
-
declare const TabButton: React_2.FC<TabButtonProps>;
|
|
8
|
-
export default TabButton;
|
|
9
|
-
|
|
10
|
-
export declare type TabButtonProps = React_2.ComponentProps<typeof Tab> & {
|
|
11
|
-
id: string;
|
|
12
|
-
icon?: IconProp;
|
|
13
|
-
text: string | React_2.ReactNode;
|
|
14
|
-
tooltip?: string;
|
|
15
|
-
textClassName?: string;
|
|
16
|
-
iconSize?: number;
|
|
17
|
-
isActive?: boolean;
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
export { }
|
package/dist/TabPanel.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { default as React_2 } from 'react';
|
|
2
|
-
|
|
3
|
-
declare const TabPanel: React_2.FC<TabPanelProps>;
|
|
4
|
-
export default TabPanel;
|
|
5
|
-
|
|
6
|
-
export declare interface TabPanelProps {
|
|
7
|
-
children: React_2.ReactNode;
|
|
8
|
-
id: string;
|
|
9
|
-
isActive?: boolean;
|
|
10
|
-
className?: string;
|
|
11
|
-
activeClassName?: string;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export { }
|
package/dist/ThumbsFeedback.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { default as React_2 } from 'react';
|
|
2
|
-
|
|
3
|
-
declare const ThumbsFeedback: React_2.FC<ThumbsFeedbackProps>;
|
|
4
|
-
export default ThumbsFeedback;
|
|
5
|
-
|
|
6
|
-
export declare interface ThumbsFeedbackProps {
|
|
7
|
-
value: ThumbsFeedbackValue;
|
|
8
|
-
onChange: (value: ThumbsFeedbackValue) => void;
|
|
9
|
-
className?: string;
|
|
10
|
-
disabled?: boolean;
|
|
11
|
-
/** If true, clicking the active thumb clears the selection. Defaults to true. */
|
|
12
|
-
allowClear?: boolean;
|
|
13
|
-
size?: 'sm' | 'md';
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export declare type ThumbsFeedbackValue = 'up' | 'down' | null;
|
|
17
|
-
|
|
18
|
-
export { }
|