@vis3/kit 1.1.8 → 1.1.9
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/Block/index.d.ts +1 -1
- package/dist/components/CodeViewer/CodeViewer.d.ts +7 -0
- package/dist/components/CodeViewer/context.d.ts +2 -2
- package/dist/components/CodeViewer/index.d.ts +2 -7
- package/dist/components/Renderer/Card.d.ts +1 -1
- package/dist/components/Renderer/contexts/types.d.ts +1 -1
- package/dist/components/index.d.ts +3 -0
- package/dist/index.d.ts +1 -2
- package/dist/index.mjs +1054 -1040
- package/dist/index.umd.js +75 -72
- package/package.json +1 -1
|
@@ -22,7 +22,7 @@ export interface BucketBlockProps<BucketType extends BaseBucketType> {
|
|
|
22
22
|
renderBucketItem?: (item: BucketType) => React.ReactNode;
|
|
23
23
|
previewUrl?: string;
|
|
24
24
|
onOpenInNewTab?: (path: string) => void;
|
|
25
|
-
onLinkClick?: (path: string) => void;
|
|
25
|
+
onLinkClick?: (path: string, id: string) => void;
|
|
26
26
|
onKeyClick?: (path: string, value: string) => void;
|
|
27
27
|
renderMarkdown?: (value: string) => React.ReactNode;
|
|
28
28
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export interface JsonViewerProps {
|
|
2
|
+
className?: string;
|
|
3
|
+
}
|
|
4
|
+
export declare function JsonViewer({ className }: JsonViewerProps): import("react/jsx-runtime").JSX.Element | null;
|
|
5
|
+
export declare function TextViewer({ className }: {
|
|
6
|
+
className?: string;
|
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export declare const CodeViewerContext: import("react").Context<{
|
|
2
2
|
wrap: boolean;
|
|
3
|
-
value
|
|
3
|
+
value?: string | null;
|
|
4
4
|
onChange: (value: string) => void;
|
|
5
5
|
}>;
|
|
6
6
|
export declare function useCodeViewerContext(): {
|
|
7
7
|
wrap: boolean;
|
|
8
|
-
value
|
|
8
|
+
value?: string | null;
|
|
9
9
|
onChange: (value: string) => void;
|
|
10
10
|
};
|
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
}
|
|
4
|
-
export declare function JsonViewer({ className }: JsonViewerProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
export declare function TextViewer({ className }: {
|
|
6
|
-
className?: string;
|
|
7
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export * from './CodeViewer';
|
|
2
|
+
export * from './context';
|
package/dist/index.d.ts
CHANGED