@widgetic/file-browser 0.5.27 → 0.5.29
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/README.md +4 -0
- package/dist/components/FolderTree.svelte.d.ts +6 -2
- package/dist/components/modals/SearchModal.svelte.d.ts +1 -1
- package/dist/stores/fileStore.d.ts +2 -2
- package/dist/stores/navigationStore.d.ts +1 -1
- package/dist/stores/persistentSelectStore.d.ts +1 -1
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# @widgetic/file-browser Module
|
|
2
2
|
|
|
3
|
+
> **Internal building block.** This package is part of Widgetic's own apps and is not a supported integration surface. Partners: use [`@widgetic/ui-sdk`](https://www.npmjs.com/package/@widgetic/ui-sdk) instead.
|
|
4
|
+
|
|
3
5
|
A modern reusable web-based file browser module built with SvelteKit and Tailwind CSS.
|
|
4
6
|
The module provides an intuitive interface for managing files and folders with features like search, file preview, recent files (at the bottom), and batch operations (upload, move).
|
|
5
7
|
|
|
@@ -375,6 +377,8 @@ The why and the silent-degrade failure mode live in
|
|
|
375
377
|
|
|
376
378
|
## Publishing
|
|
377
379
|
|
|
380
|
+
GitLab CI on `main` publishes this package. Bump `version` in `package.json` and push `main`. The job is an npm Trusted Publisher (`NPM_ID_TOKEN`) and skips a version that is already on npm. A laptop publish is the fallback when CI minutes are gone. The token stays in `~/.npmrc` and is never committed.
|
|
381
|
+
|
|
378
382
|
Publishing starts here: `npm run package` builds the `dist/` directory that
|
|
379
383
|
is the only content the published tarball ships. Linked consumers keep
|
|
380
384
|
resolving this checkout’s files until the release lands, so a change is not
|
|
@@ -13,10 +13,14 @@ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> =
|
|
|
13
13
|
z_$$bindings?: Bindings;
|
|
14
14
|
}
|
|
15
15
|
declare const FolderTree: $$__sveltets_2_IsomorphicComponent<{
|
|
16
|
-
folder:
|
|
16
|
+
folder: FileSystemItem & {
|
|
17
|
+
displayChildren?: FileSystemItem[];
|
|
18
|
+
};
|
|
17
19
|
selectedFolder: FileSystemItem | undefined;
|
|
18
20
|
immediateParentId: string | null;
|
|
19
|
-
onSelect: (folder:
|
|
21
|
+
onSelect: (folder: FileSystemItem & {
|
|
22
|
+
displayChildren?: FileSystemItem[];
|
|
23
|
+
}) => void;
|
|
20
24
|
getFolderIconForItem: (folder: FileSystemItem) => string;
|
|
21
25
|
customClasses?: string;
|
|
22
26
|
iconSize?: string;
|
|
@@ -5,7 +5,7 @@ export declare const fileStore: {
|
|
|
5
5
|
update: (this: void, updater: import("svelte/store").Updater<FileSystemRoot>) => void;
|
|
6
6
|
};
|
|
7
7
|
export declare const currentFolder: import("svelte/store").Writable<string[]>;
|
|
8
|
-
export declare const sortCriteria: import("svelte/store").Writable<"name" | "
|
|
8
|
+
export declare const sortCriteria: import("svelte/store").Writable<"name" | "size" | "date">;
|
|
9
9
|
export declare const sortDirection: import("svelte/store").Writable<"desc" | "asc">;
|
|
10
10
|
export declare const selectedFiles: import("svelte/store").Writable<FileSystemItem[]>;
|
|
11
11
|
export declare const fileFilter: import("svelte/store").Writable<string[]>;
|
|
@@ -13,7 +13,7 @@ export declare const fileFilter: import("svelte/store").Writable<string[]>;
|
|
|
13
13
|
* Derived store that automatically sorts files based on criteria
|
|
14
14
|
* Maintains folder priority (folders always appear before files)
|
|
15
15
|
*/
|
|
16
|
-
export declare const sortedFiles: import("svelte/store").Readable<
|
|
16
|
+
export declare const sortedFiles: import("svelte/store").Readable<FileSystemRoot>;
|
|
17
17
|
/**
|
|
18
18
|
* Initializes or updates the file store with new data
|
|
19
19
|
* Includes validation and error handling
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { currentFolder } from './fileStore';
|
|
2
|
-
export declare const currentPathNames: import("svelte/store").Readable<
|
|
2
|
+
export declare const currentPathNames: import("svelte/store").Readable<string[]>;
|
|
3
3
|
export { currentFolder };
|
|
4
4
|
export declare const navigationActions: import("svelte/store").Writable<{
|
|
5
5
|
navigateToPath: (path: string[]) => void;
|
|
@@ -24,5 +24,5 @@ export declare const persistentSelectStore: {
|
|
|
24
24
|
update(this: void, updater: import("svelte/store").Updater<StoredSelections>): void;
|
|
25
25
|
subscribe(this: void, run: import("svelte/store").Subscriber<StoredSelections>, invalidate?: () => void): import("svelte/store").Unsubscriber;
|
|
26
26
|
};
|
|
27
|
-
export declare const validSelections: import("svelte/store").Readable<(filterType: FileFilterType, files: FileSystemItem[]) =>
|
|
27
|
+
export declare const validSelections: import("svelte/store").Readable<(filterType: FileFilterType, files: FileSystemItem[]) => FileSystemItem[]>;
|
|
28
28
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@widgetic/file-browser",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.29",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -78,6 +78,7 @@
|
|
|
78
78
|
"preview": "vite preview",
|
|
79
79
|
"build-package": "vite build && npm run package && npm link",
|
|
80
80
|
"publish-package": "npm run package && npm publish",
|
|
81
|
+
"publish-to-npm": "node ../dev-tools/bin/publish-package.mjs",
|
|
81
82
|
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
|
|
82
83
|
"check:deps": "check-runtime-deps",
|
|
83
84
|
"check:peers": "check-design-system-peers ..",
|