@gradio/gallery 0.15.35-dev.0 → 0.15.35-dev.3

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,61 +1,5 @@
1
- import { SvelteComponent } from "svelte";
2
1
  export { default as BaseGallery } from "./shared/Gallery.svelte";
3
2
  export { default as BaseExample } from "./Example.svelte";
4
- import type { GalleryImage, GalleryVideo } from "./types";
5
- import type { FileData } from "@gradio/client";
6
- import type { Gradio, ShareData, SelectData } from "@gradio/utils";
7
- import type { LoadingStatus } from "@gradio/statustracker";
8
- declare const __propDef: {
9
- props: {
10
- loading_status: LoadingStatus;
11
- show_label: boolean;
12
- label: string;
13
- root: string;
14
- elem_id?: string;
15
- elem_classes?: string[];
16
- visible?: boolean | "hidden";
17
- value?: (GalleryImage | GalleryVideo)[] | null;
18
- file_types?: string[] | null;
19
- container?: boolean;
20
- scale?: number | null;
21
- min_width?: number | undefined;
22
- columns?: number | number[] | undefined;
23
- rows?: number | number[] | undefined;
24
- height?: number | "auto";
25
- preview: boolean;
26
- allow_preview?: boolean;
27
- selected_index?: number | null;
28
- object_fit?: "contain" | "cover" | "fill" | "none" | "scale-down";
29
- buttons?: string[] | null;
30
- interactive: boolean;
31
- gradio: Gradio<{
32
- change: (GalleryImage | GalleryVideo)[] | null;
33
- upload: (GalleryImage | GalleryVideo)[] | null;
34
- select: SelectData;
35
- share: ShareData;
36
- error: string;
37
- delete: {
38
- file: FileData;
39
- index: number;
40
- };
41
- prop_change: Record<string, any>;
42
- clear_status: LoadingStatus;
43
- preview_open: never;
44
- preview_close: never;
45
- }>;
46
- fullscreen?: boolean;
47
- };
48
- events: {
49
- prop_change: CustomEvent<any>;
50
- } & {
51
- [evt: string]: CustomEvent<any>;
52
- };
53
- slots: {};
54
- exports?: {} | undefined;
55
- bindings?: string | undefined;
56
- };
57
- export type IndexProps = typeof __propDef.props;
58
- export type IndexEvents = typeof __propDef.events;
59
- export type IndexSlots = typeof __propDef.slots;
60
- export default class Index extends SvelteComponent<IndexProps, IndexEvents, IndexSlots> {
61
- }
3
+ declare const Index: import("svelte").Component<$$ComponentProps, {}, "">;
4
+ type Index = ReturnType<typeof Index>;
5
+ export default Index;