@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/cypress-commands.d.ts +19 -6
- package/cypress-utils.cjs.js +105 -4
- package/cypress-utils.d.ts +25 -0
- package/cypress-utils.js +105 -4
- package/initializers.cjs.js +1 -0
- package/initializers.js +1 -0
- package/package.json +12 -6
- package/react-utils.cjs.js +69 -32348
- package/react-utils.d.ts +5 -3
- package/react-utils.js +77 -32355
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:
|
|
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:
|
|
275
|
+
[index: string | TFunction]: Category;
|
|
274
276
|
}
|
|
275
277
|
export const KeyboardShortcutsPane: React.FC<{
|
|
276
278
|
productShortcuts?: ProductShortcuts;
|