@vis3/kit 1.1.11-alpha.5 → 1.1.11-alpha.6
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/Renderer/LLMChat/index.d.ts +11 -0
- package/dist/components/Renderer/stateHooks/useS3Prefix.d.ts +5 -0
- package/dist/components/Renderer/textRender.d.ts +10 -1
- package/dist/i18n/useLocalStorage.d.ts +1 -1
- package/dist/index.mjs +22478 -21908
- package/dist/index.umd.js +143 -133
- package/package.json +1 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { RendererProps } from '../Card';
|
|
2
|
+
interface ChatValue extends Record<string, unknown> {
|
|
3
|
+
messages: any[];
|
|
4
|
+
}
|
|
5
|
+
export interface LLMChatProps {
|
|
6
|
+
value?: ChatValue;
|
|
7
|
+
layout?: 'split' | 'left';
|
|
8
|
+
}
|
|
9
|
+
export default function LLMChat({ value, layout }: LLMChatProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare function ChatRenderer({ className, name, value, extraTail, titleExtra }: RendererProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -3,11 +3,20 @@ export type TextRender = {
|
|
|
3
3
|
name: string;
|
|
4
4
|
label: string;
|
|
5
5
|
structured?: boolean;
|
|
6
|
+
plain?: React.ComponentType<any>;
|
|
6
7
|
renderer: React.ComponentType<any>;
|
|
7
8
|
};
|
|
8
9
|
declare const textRenderers: Record<string, TextRender>;
|
|
9
10
|
export declare function getTextRenderer(name: string): TextRender;
|
|
10
|
-
export
|
|
11
|
+
export interface RendererRegisterOptions {
|
|
12
|
+
label: string;
|
|
13
|
+
renderer: React.ComponentType<RendererProps>;
|
|
14
|
+
plain: React.ComponentType<{
|
|
15
|
+
value: string | unknown;
|
|
16
|
+
}>;
|
|
17
|
+
structured?: boolean;
|
|
18
|
+
}
|
|
19
|
+
export declare function registerTextRenderer(name: string, ...args: RendererRegisterOptions[] | [string, React.ComponentType<RendererProps>]): void;
|
|
11
20
|
export declare function getRenderers(): TextRender[];
|
|
12
21
|
export declare function unregisterTextRenderer(name: string): void;
|
|
13
22
|
export default textRenderers;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useLocalStorage: (key: string, value:
|
|
1
|
+
export declare const useLocalStorage: <T>(key: string, value: T | (() => T)) => readonly [T, import("react").Dispatch<import("react").SetStateAction<T>>];
|