@makolabs/ripple 0.0.1-dev.73 → 0.0.1-dev.74
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.
|
@@ -16,11 +16,13 @@
|
|
|
16
16
|
adapter,
|
|
17
17
|
startPath = '',
|
|
18
18
|
actions = [],
|
|
19
|
-
infoSection
|
|
19
|
+
infoSection,
|
|
20
|
+
selectedFiles = $bindable([])
|
|
20
21
|
} = $props<{
|
|
21
22
|
adapter: StorageAdapter;
|
|
22
23
|
startPath?: string;
|
|
23
24
|
actions?: FileAction[];
|
|
25
|
+
selectedFiles?: string[];
|
|
24
26
|
infoSection?: (props: {
|
|
25
27
|
selectedFiles: string[];
|
|
26
28
|
navToFileFolder: (fileKey: string) => void;
|
|
@@ -36,8 +38,6 @@
|
|
|
36
38
|
let breadcrumbs = $state<Breadcrumb[]>([]);
|
|
37
39
|
let searchQuery = $state('');
|
|
38
40
|
|
|
39
|
-
let selectedFiles = $state<string[]>([]);
|
|
40
|
-
|
|
41
41
|
let sortState = $state<{ column: string | null; direction: 'asc' | 'desc' | 'default' | null }>({
|
|
42
42
|
column: null,
|
|
43
43
|
direction: null
|
|
@@ -3,11 +3,12 @@ type $$ComponentProps = {
|
|
|
3
3
|
adapter: StorageAdapter;
|
|
4
4
|
startPath?: string;
|
|
5
5
|
actions?: FileAction[];
|
|
6
|
+
selectedFiles?: string[];
|
|
6
7
|
infoSection?: (props: {
|
|
7
8
|
selectedFiles: string[];
|
|
8
9
|
navToFileFolder: (fileKey: string) => void;
|
|
9
10
|
}) => any;
|
|
10
11
|
};
|
|
11
|
-
declare const FileBrowser: import("svelte").Component<$$ComponentProps, {}, "">;
|
|
12
|
+
declare const FileBrowser: import("svelte").Component<$$ComponentProps, {}, "selectedFiles">;
|
|
12
13
|
type FileBrowser = ReturnType<typeof FileBrowser>;
|
|
13
14
|
export default FileBrowser;
|
package/dist/index.d.ts
CHANGED
|
@@ -844,3 +844,13 @@ export type CompactFiltersProps = {
|
|
|
844
844
|
export { CompactFilters } from './filters/index.js';
|
|
845
845
|
export * from './file-browser/index.js';
|
|
846
846
|
export * from './adapters/storage/index.js';
|
|
847
|
+
export interface FileBrowserProps {
|
|
848
|
+
adapter: any;
|
|
849
|
+
startPath?: string;
|
|
850
|
+
actions?: any[];
|
|
851
|
+
selectedFiles?: string[];
|
|
852
|
+
infoSection?: (props: {
|
|
853
|
+
selectedFiles: string[];
|
|
854
|
+
navToFileFolder: (fileKey: string) => void;
|
|
855
|
+
}) => any;
|
|
856
|
+
}
|