@brftech/filex-core 0.39.1 → 0.40.0

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/index.d.ts CHANGED
@@ -682,6 +682,12 @@ declare interface ContextAction {
682
682
  disabled?: boolean;
683
683
  hidden?: boolean;
684
684
  divider?: boolean;
685
+ /**
686
+ * tus:t1 — registry action id whose key this row should print. Optional:
687
+ * rows whose `key` already matches the registry (rename, delete, copy…)
688
+ * are resolved from the shared map and need nothing here.
689
+ */
690
+ shortcutId?: string;
685
691
  }
686
692
 
687
693
  export declare interface CreatedFolder {
@@ -1635,10 +1641,10 @@ scopeLabel?: string;
1635
1641
  onAction?: ((key: string) => any) | undefined;
1636
1642
  onUpload?: (() => any) | undefined;
1637
1643
  "onGo-up"?: (() => any) | undefined;
1638
- "onUpdate:viewMode"?: ((v: ViewMode) => any) | undefined;
1639
- "onUpdate:searchQuery"?: ((v: string) => any) | undefined;
1640
1644
  "onNew-folder"?: (() => any) | undefined;
1641
1645
  onRefresh?: (() => any) | undefined;
1646
+ "onUpdate:viewMode"?: ((v: ViewMode) => any) | undefined;
1647
+ "onUpdate:searchQuery"?: ((v: string) => any) | undefined;
1642
1648
  "onOpen-recents"?: (() => any) | undefined;
1643
1649
  "onUpdate:density"?: ((v: Density) => any) | undefined;
1644
1650
  "onToggle-inspector"?: (() => any) | undefined;
@@ -1652,10 +1658,10 @@ focusSearch: () => Promise<void>;
1652
1658
  action: (key: string) => any;
1653
1659
  upload: () => any;
1654
1660
  "go-up": () => any;
1655
- "update:viewMode": (v: ViewMode) => any;
1656
- "update:searchQuery": (v: string) => any;
1657
1661
  "new-folder": () => any;
1658
1662
  refresh: () => any;
1663
+ "update:viewMode": (v: ViewMode) => any;
1664
+ "update:searchQuery": (v: string) => any;
1659
1665
  "open-recents": () => any;
1660
1666
  "update:density": (v: Density) => any;
1661
1667
  "toggle-inspector": () => any;
@@ -1778,10 +1784,10 @@ scopeLabel?: string;
1778
1784
  onAction?: ((key: string) => any) | undefined;
1779
1785
  onUpload?: (() => any) | undefined;
1780
1786
  "onGo-up"?: (() => any) | undefined;
1781
- "onUpdate:viewMode"?: ((v: ViewMode) => any) | undefined;
1782
- "onUpdate:searchQuery"?: ((v: string) => any) | undefined;
1783
1787
  "onNew-folder"?: (() => any) | undefined;
1784
1788
  onRefresh?: (() => any) | undefined;
1789
+ "onUpdate:viewMode"?: ((v: ViewMode) => any) | undefined;
1790
+ "onUpdate:searchQuery"?: ((v: string) => any) | undefined;
1785
1791
  "onOpen-recents"?: (() => any) | undefined;
1786
1792
  "onUpdate:density"?: ((v: Density) => any) | undefined;
1787
1793
  "onToggle-inspector"?: (() => any) | undefined;
@@ -1816,10 +1822,10 @@ targetWire: string;
1816
1822
  originWire?: string;
1817
1823
  }) => any) | undefined;
1818
1824
  onClose?: (() => any) | undefined;
1825
+ "onOpen-tab"?: ((path: string) => any) | undefined;
1819
1826
  onNavigate?: ((path: string) => any) | undefined;
1820
1827
  "onOpen-trash"?: (() => any) | undefined;
1821
1828
  onActivate?: (() => any) | undefined;
1822
- "onOpen-tab"?: ((path: string) => any) | undefined;
1823
1829
  onContext?: ((node: FileNode | null, ev: MouseEvent) => any) | undefined;
1824
1830
  }>, {
1825
1831
  reload: () => Promise<void>;
@@ -1835,10 +1841,10 @@ targetWire: string;
1835
1841
  originWire?: string;
1836
1842
  }) => any;
1837
1843
  close: () => any;
1844
+ "open-tab": (path: string) => any;
1838
1845
  navigate: (path: string) => any;
1839
1846
  "open-trash": () => any;
1840
1847
  activate: () => any;
1841
- "open-tab": (path: string) => any;
1842
1848
  context: (node: FileNode | null, ev: MouseEvent) => any;
1843
1849
  }, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLElement, ComponentProvideOptions, {
1844
1850
  P: {};
@@ -1871,10 +1877,10 @@ targetWire: string;
1871
1877
  originWire?: string;
1872
1878
  }) => any) | undefined;
1873
1879
  onClose?: (() => any) | undefined;
1880
+ "onOpen-tab"?: ((path: string) => any) | undefined;
1874
1881
  onNavigate?: ((path: string) => any) | undefined;
1875
1882
  "onOpen-trash"?: (() => any) | undefined;
1876
1883
  onActivate?: (() => any) | undefined;
1877
- "onOpen-tab"?: ((path: string) => any) | undefined;
1878
1884
  onContext?: ((node: FileNode | null, ev: MouseEvent) => any) | undefined;
1879
1885
  }>, {
1880
1886
  reload: () => Promise<void>;
@@ -2201,6 +2207,9 @@ export declare function isMacLike(): boolean;
2201
2207
  * and Windows refuses it silently, which is worse. */
2202
2208
  export declare function isPlainHttp(origin: string): boolean;
2203
2209
 
2210
+ /** Does the browser eat this combo before the page can see it? */
2211
+ export declare function isReservedCombo(combo: string): boolean;
2212
+
2204
2213
  /** True when the staged protocol is simply not there. */
2205
2214
  export declare function isStagedUnsupported(err: unknown): boolean;
2206
2215
 
@@ -2244,6 +2253,25 @@ export declare function markerHasRecovery(m: E2eMarker | null): boolean;
2244
2253
  /** True when the hit matched (at least partly) inside file CONTENT. */
2245
2254
  export declare function matchedInContent(matched: unknown): boolean;
2246
2255
 
2256
+ /**
2257
+ * Menu action key → registry action id.
2258
+ *
2259
+ * The right-click menu, the toolbar and the keyboard all name the same verbs,
2260
+ * but the menu's `key` and the registry's `id` are separate vocabularies and
2261
+ * two of them genuinely differ (`access` is the share dialog, `details` is the
2262
+ * inspector). One map, in one place: a second copy is a second chance to
2263
+ * forget, and the symptom would be a menu row that silently stops naming its
2264
+ * key while every other row keeps working.
2265
+ */
2266
+ export declare const MENU_ACTION_SHORTCUTS: Record<string, string>;
2267
+
2268
+ /**
2269
+ * What a menu row or a toolbar button should print beside its label: the
2270
+ * current combo for the verb it triggers, or '' when it has none (unbound, or
2271
+ * not a registry action at all — `keep-local`, the E2E entries and so on).
2272
+ */
2273
+ export declare function menuShortcutHint(menuKey: string): string;
2274
+
2247
2275
  export declare const messages: Record<LocaleCode, Record<string, string>>;
2248
2276
 
2249
2277
  /** Where an NFS client should point, reported by the server. */
@@ -2744,10 +2772,10 @@ targetWire: string;
2744
2772
  originWire?: string;
2745
2773
  }) => any;
2746
2774
  close: () => any;
2775
+ "open-tab": (path: string) => any;
2747
2776
  navigate: (path: string) => any;
2748
2777
  "open-trash": () => any;
2749
2778
  activate: () => any;
2750
- "open-tab": (path: string) => any;
2751
2779
  context: (node: FileNode | null, ev: MouseEvent) => any;
2752
2780
  }, string, PublicProps, Readonly<__VLS_Props_11> & Readonly<{
2753
2781
  onTransfer?: ((p: {
@@ -2756,10 +2784,10 @@ targetWire: string;
2756
2784
  originWire?: string;
2757
2785
  }) => any) | undefined;
2758
2786
  onClose?: (() => any) | undefined;
2787
+ "onOpen-tab"?: ((path: string) => any) | undefined;
2759
2788
  onNavigate?: ((path: string) => any) | undefined;
2760
2789
  "onOpen-trash"?: (() => any) | undefined;
2761
2790
  onActivate?: (() => any) | undefined;
2762
- "onOpen-tab"?: ((path: string) => any) | undefined;
2763
2791
  onContext?: ((node: FileNode | null, ev: MouseEvent) => any) | undefined;
2764
2792
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLElement>;
2765
2793
 
@@ -2841,6 +2869,18 @@ export declare interface ShortcutHandlers {
2841
2869
  onTabClose?: () => void;
2842
2870
  onTabNext?: () => void;
2843
2871
  onTabPrev?: () => void;
2872
+ onNewFolder?: () => void;
2873
+ onUpload?: () => void;
2874
+ onRefresh?: () => void;
2875
+ onDownload?: () => void;
2876
+ onPreview?: () => void;
2877
+ onShare?: () => void;
2878
+ onTags?: () => void;
2879
+ onConvert?: () => void;
2880
+ onOpenTab?: () => void;
2881
+ onCopyPath?: () => void;
2882
+ onCopyId?: () => void;
2883
+ onRestore?: () => void;
2844
2884
  hasSelection?: () => boolean;
2845
2885
  }
2846
2886