@trackunit/criticality-indicator 1.7.150 → 1.7.155

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/criticality-indicator",
3
- "version": "1.7.150",
3
+ "version": "1.7.155",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -8,9 +8,9 @@
8
8
  },
9
9
  "dependencies": {
10
10
  "react": "19.0.0",
11
- "@trackunit/react-components": "1.10.86",
12
- "@trackunit/i18n-library-translation": "1.7.131",
13
- "@trackunit/ui-design-tokens": "1.7.110"
11
+ "@trackunit/react-components": "1.10.91",
12
+ "@trackunit/i18n-library-translation": "1.7.136",
13
+ "@trackunit/ui-design-tokens": "1.7.115"
14
14
  },
15
15
  "module": "./index.esm.js",
16
16
  "main": "./index.cjs.js",
@@ -1,4 +1,5 @@
1
- import { NamespaceTransProps, TransForLibs, TranslationResource } from "@trackunit/i18n-library-translation";
1
+ import { NamespaceTransProps, TransForLibs, TranslationResource, useNamespaceTranslation } from "@trackunit/i18n-library-translation";
2
+ import { ReactElement } from "react";
2
3
  import defaultTranslations from "./locales/en/translation.json";
3
4
  /** A type for all available translation keys in this library */
4
5
  export type TranslationKeys = keyof typeof defaultTranslations;
@@ -14,11 +15,7 @@ export declare const translations: TranslationResource<TranslationKeys>;
14
15
  /**
15
16
  * Local useTranslation for this specific library
16
17
  */
17
- export declare const useTranslation: () => [TransForLibs<"indicator.critical" | "indicator.low" | "indicator.none">, import("i18next").i18n, boolean] & {
18
- t: TransForLibs<"indicator.critical" | "indicator.low" | "indicator.none">;
19
- i18n: import("i18next").i18n;
20
- ready: boolean;
21
- };
18
+ export declare const useTranslation: () => ReturnType<typeof useNamespaceTranslation<TranslationKeys>>;
22
19
  /**
23
20
  * Type of the t function for the local useTranslation for this specific library
24
21
  */
@@ -26,7 +23,7 @@ export type TranslationFunction = TransForLibs<TranslationKeys>;
26
23
  /**
27
24
  * Trans for this specific library.
28
25
  */
29
- export declare const Trans: (props: NamespaceTransProps<TranslationKeys>) => import("react/jsx-runtime").JSX.Element;
26
+ export declare const Trans: (props: NamespaceTransProps<TranslationKeys>) => ReactElement;
30
27
  /**
31
28
  * Registers the translations for this library
32
29
  */