@brftech/filex-core 0.1.72 → 0.1.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.
- package/dist/{ArchiveViewer-hScjuOi4.js → ArchiveViewer-o8CcI64y.js} +2 -2
- package/dist/{ArchiveViewer-hScjuOi4.js.map → ArchiveViewer-o8CcI64y.js.map} +1 -1
- package/dist/{CsvViewer-DmS-8FNN.js → CsvViewer-u8oNfRP1.js} +2 -2
- package/dist/{CsvViewer-DmS-8FNN.js.map → CsvViewer-u8oNfRP1.js.map} +1 -1
- package/dist/{DrawioViewer-BnHcIgCU.js → DrawioViewer-BXgp480V.js} +2 -2
- package/dist/{DrawioViewer-BnHcIgCU.js.map → DrawioViewer-BXgp480V.js.map} +1 -1
- package/dist/{EpubViewer-DBBPxLo9.js → EpubViewer-CSs-I3ZL.js} +2 -2
- package/dist/{EpubViewer-DBBPxLo9.js.map → EpubViewer-CSs-I3ZL.js.map} +1 -1
- package/dist/{IpynbViewer-DEB2Y8i9.js → IpynbViewer-DHY9HH_F.js} +2 -2
- package/dist/{IpynbViewer-DEB2Y8i9.js.map → IpynbViewer-DHY9HH_F.js.map} +1 -1
- package/dist/{MermaidViewer-DgtWbxOS.js → MermaidViewer-Bly86gd2.js} +2 -2
- package/dist/{MermaidViewer-DgtWbxOS.js.map → MermaidViewer-Bly86gd2.js.map} +1 -1
- package/dist/{PsdViewer-CjHolhZ_.js → PsdViewer-CDQGyl0o.js} +2 -2
- package/dist/{PsdViewer-CjHolhZ_.js.map → PsdViewer-CDQGyl0o.js.map} +1 -1
- package/dist/{TiffViewer-CctPl2di.js → TiffViewer-Cs9Ze9-W.js} +2 -2
- package/dist/{TiffViewer-CctPl2di.js.map → TiffViewer-Cs9Ze9-W.js.map} +1 -1
- package/dist/{Viewer3D-DcbQeHFc.js → Viewer3D-B54FtoDP.js} +2 -2
- package/dist/{Viewer3D-DcbQeHFc.js.map → Viewer3D-B54FtoDP.js.map} +1 -1
- package/dist/filex-core.js +1 -1
- package/dist/filex-core.umd.cjs +31 -31
- package/dist/filex-core.umd.cjs.map +1 -1
- package/dist/index-BSfDPPtn.js +5523 -0
- package/dist/{index-BIyont3Y.js.map → index-BSfDPPtn.js.map} +1 -1
- package/dist/index.d.ts +9 -1
- package/package.json +1 -1
- package/src/FileExplorer.vue +13 -1
- package/dist/index-BIyont3Y.js +0 -5521
package/dist/index.d.ts
CHANGED
|
@@ -406,11 +406,16 @@ export declare interface ExternalServiceStatus {
|
|
|
406
406
|
|
|
407
407
|
export declare type FileApi = ReturnType<typeof useFileApi>;
|
|
408
408
|
|
|
409
|
-
export declare const FileExplorer: DefineComponent<__VLS_Props, {
|
|
409
|
+
export declare const FileExplorer: DefineComponent<__VLS_Props, {
|
|
410
|
+
reload: () => Promise<void>;
|
|
411
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
410
412
|
error: (err: {
|
|
411
413
|
message: string;
|
|
412
414
|
context?: unknown;
|
|
413
415
|
}) => any;
|
|
416
|
+
navigate: (p: {
|
|
417
|
+
path: string;
|
|
418
|
+
}) => any;
|
|
414
419
|
"share-created": (payload: {
|
|
415
420
|
path: string;
|
|
416
421
|
url: string;
|
|
@@ -435,6 +440,9 @@ onError?: ((err: {
|
|
|
435
440
|
message: string;
|
|
436
441
|
context?: unknown;
|
|
437
442
|
}) => any) | undefined;
|
|
443
|
+
onNavigate?: ((p: {
|
|
444
|
+
path: string;
|
|
445
|
+
}) => any) | undefined;
|
|
438
446
|
"onShare-created"?: ((payload: {
|
|
439
447
|
path: string;
|
|
440
448
|
url: string;
|
package/package.json
CHANGED
package/src/FileExplorer.vue
CHANGED
|
@@ -64,6 +64,10 @@ const emit = defineEmits<{
|
|
|
64
64
|
e: 'selection-change',
|
|
65
65
|
items: Array<{ path: string; basename: string; type: 'file' | 'dir' }>,
|
|
66
66
|
): void;
|
|
67
|
+
// Fires whenever the viewed folder changes (virtual `<storage>/<rel>` form).
|
|
68
|
+
// Lets a host (e.g. the Explore page's realtime layer) track the current
|
|
69
|
+
// folder without reaching into internal state.
|
|
70
|
+
(e: 'navigate', p: { path: string }): void;
|
|
67
71
|
}>();
|
|
68
72
|
|
|
69
73
|
// --------------------------------------------------------------------
|
|
@@ -703,7 +707,15 @@ function onHashChange() {
|
|
|
703
707
|
}
|
|
704
708
|
}
|
|
705
709
|
|
|
706
|
-
watch(currentPath, (p) =>
|
|
710
|
+
watch(currentPath, (p) => {
|
|
711
|
+
writePersistedPath(p);
|
|
712
|
+
emit('navigate', { path: p });
|
|
713
|
+
});
|
|
714
|
+
|
|
715
|
+
// Let a host force a soft re-fetch of the current folder (reusing the existing
|
|
716
|
+
// list-fetch) — used by the realtime layer to refresh on live change events
|
|
717
|
+
// without a full component remount.
|
|
718
|
+
defineExpose({ reload: () => load() });
|
|
707
719
|
|
|
708
720
|
onMounted(async () => {
|
|
709
721
|
// Eagerly start fetching Monaco — the user doesn't pay for it
|