@bigbinary/neeto-commons-frontend 2.0.48 → 2.0.50

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/react-utils.d.ts CHANGED
@@ -18,6 +18,7 @@ import { DateTimeType, timeFormat } from "./utils";
18
18
  import { History } from "history";
19
19
  import { StoreApi, UseBoundStore } from "zustand";
20
20
  import { Dayjs } from "dayjs";
21
+ import { TFunction } from "i18next";
21
22
 
22
23
  export const HoneybadgerErrorBoundary: React.FC<{
23
24
  ErrorComponent?: React.ReactNode | React.ComponentType<any>;
@@ -264,13 +265,14 @@ export function isMetaKeyPressed(
264
265
 
265
266
  interface Shortcut {
266
267
  sequence: string;
267
- description: string;
268
+ description: TFunction;
268
269
  }
269
270
  interface Category {
270
- [index: string]: Shortcut;
271
+ [index: string]: Shortcut | string;
272
+ fullShortcutsLink?: string;
271
273
  }
272
274
  interface ProductShortcuts {
273
- [index: any]: Category;
275
+ [index: string | TFunction]: Category;
274
276
  }
275
277
  export const KeyboardShortcutsPane: React.FC<{
276
278
  productShortcuts?: ProductShortcuts;