@vis3/kit 1.1.11-alpha.4 → 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.
@@ -1,2 +1,16 @@
1
+ import 'react-grid-layout/css/styles.css';
2
+ import 'react-resizable/css/styles.css';
3
+ import './index.css';
1
4
  import type { RendererProps } from '../Card';
5
+ import type { RenderType } from '../stateHooks/useRenderType';
6
+ export interface FieldBlock {
7
+ id: string;
8
+ field: string;
9
+ renderAs: RenderType;
10
+ }
11
+ export declare function inferDefaultRenderAs(field: string, value: any): "markdown" | "html" | "raw" | "content_list" | "img_list";
12
+ export declare function useContainerSize(wrapper: HTMLDivElement | null): {
13
+ width: number;
14
+ height: number;
15
+ };
2
16
  export default function JsonCard({ className, name, value, extraTail, titleExtra }: RendererProps): import("react/jsx-runtime").JSX.Element;
@@ -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 {};
@@ -0,0 +1,5 @@
1
+ import type { FormInstance } from 'antd';
2
+ export default function useS3Prefix(prefix?: string): [React.ReactNode, {
3
+ prefix: string;
4
+ open: boolean;
5
+ }, (value: string) => void, FormInstance<any>];
@@ -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 declare function registerTextRenderer(name: string, label: string, renderer: React.ComponentType<RendererProps>): void;
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: any) => any[];
1
+ export declare const useLocalStorage: <T>(key: string, value: T | (() => T)) => readonly [T, import("react").Dispatch<import("react").SetStateAction<T>>];