@brftech/filex-core 0.39.0 → 0.39.1

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
@@ -624,6 +624,9 @@ export declare interface ClipboardState {
624
624
  */
625
625
  export declare function comboFromEvent(e: KeyboardEvent): string | null;
626
626
 
627
+ /** Canonical combo → what a human should see. '' stays ''. */
628
+ export declare function comboLabel(combo: string): string;
629
+
627
630
  export declare const ConnectionGuideView: DefineComponent<__VLS_Props_17, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_17> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
628
631
 
629
632
  export declare type ConnectionsApi = ReturnType<typeof useConnections>;
@@ -1081,6 +1084,14 @@ export declare type EscrowOfferState = 'n/a' | 'offer' | 'declined';
1081
1084
 
1082
1085
  export declare function escrowOfferState(m: E2eMarker | null, installationKid: string | null | undefined): EscrowOfferState;
1083
1086
 
1087
+ /**
1088
+ * Does this event fire the given registry action? For overlays that
1089
+ * handle their own keys (the quick-look peek) rather than going through
1090
+ * the global binder — without this they keep answering to the DEFAULT
1091
+ * key after the user has remapped the action.
1092
+ */
1093
+ export declare function eventMatchesShortcut(e: KeyboardEvent, id: string): boolean;
1094
+
1084
1095
  export declare interface ExplorerConfig {
1085
1096
  /**
1086
1097
  * Modern shorthand: URL prefix for the standard /api/files/* layout.
@@ -2179,6 +2190,13 @@ declare interface InviteResponse {
2179
2190
  */
2180
2191
  export declare function isExternalUsable(s: ExternalServiceStatus | undefined): boolean;
2181
2192
 
2193
+ /**
2194
+ * Is this a Mac-style keyboard? Only affects how a combo is PRINTED —
2195
+ * the canonical form folds Meta into Ctrl, so one saved combo works on
2196
+ * every platform and only the label differs.
2197
+ */
2198
+ export declare function isMacLike(): boolean;
2199
+
2182
2200
  /** True when the deployment is not on TLS — several clients refuse that,
2183
2201
  * and Windows refuses it silently, which is worse. */
2184
2202
  export declare function isPlainHttp(origin: string): boolean;
@@ -2826,6 +2844,21 @@ export declare interface ShortcutHandlers {
2826
2844
  hasSelection?: () => boolean;
2827
2845
  }
2828
2846
 
2847
+ /**
2848
+ * The one way a hint may name a key.
2849
+ *
2850
+ * ⚠ Never write a key into a hint by hand — not in a template, not in a
2851
+ * locale string. Every combo in this registry is remappable, so a
2852
+ * hardcoded "Ctrl+K" is true only until someone opens the shortcut
2853
+ * settings, and then it is a label that tells the user to press a key
2854
+ * that does nothing. Call this instead and interpolate the result;
2855
+ * `web/tests/ui/shortcutHints.test.ts` fails the build on a literal.
2856
+ *
2857
+ * Returns '' when the action is unbound, so a caller can drop the whole
2858
+ * segment rather than print an empty key cap.
2859
+ */
2860
+ export declare function shortcutHint(id: string): string;
2861
+
2829
2862
  export declare const ShortcutSettings: DefineComponent<__VLS_Props_7, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
2830
2863
  close: () => any;
2831
2864
  }, string, PublicProps, Readonly<__VLS_Props_7> & Readonly<{