@trackunit/utilization-indicator 2.6.19 → 2.6.21-alpha-3e7014314a8.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/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@trackunit/utilization-indicator",
3
- "version": "2.6.19",
3
+ "version": "2.6.21-alpha-3e7014314a8.0",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
7
7
  "node": ">=24.x"
8
8
  },
9
9
  "dependencies": {
10
- "@trackunit/react-components": "2.10.14",
11
- "@trackunit/utilization-tokens": "2.5.15",
12
- "@trackunit/i18n-library-translation": "2.4.20",
13
- "@trackunit/ui-design-tokens": "1.15.9"
10
+ "@trackunit/react-components": "2.10.16-alpha-3e7014314a8.0",
11
+ "@trackunit/utilization-tokens": "2.5.17-alpha-3e7014314a8.0",
12
+ "@trackunit/i18n-library-translation": "2.4.22-alpha-3e7014314a8.0",
13
+ "@trackunit/ui-design-tokens": "1.15.10-alpha-3e7014314a8.0"
14
14
  },
15
15
  "peerDependencies": {
16
16
  "@tanstack/react-router": "^1.114.29",
@@ -1,5 +1,4 @@
1
- import { NamespaceTransProps, TransForLibs, TranslationResource, useNamespaceTranslation } from "@trackunit/i18n-library-translation";
2
- import type { ReactElement } from "react";
1
+ import { NamespaceTransProps, TransForLibs, TranslationResource } from "@trackunit/i18n-library-translation";
3
2
  import defaultTranslations from "./locales/en/translation.json";
4
3
  /** A type for all available translation keys in this library */
5
4
  export type TranslationKeys = keyof typeof defaultTranslations;
@@ -15,7 +14,11 @@ export declare const translations: TranslationResource<TranslationKeys>;
15
14
  /**
16
15
  * Local useTranslation for this specific library
17
16
  */
18
- export declare const useTranslation: () => ReturnType<typeof useNamespaceTranslation<TranslationKeys>>;
17
+ export declare const useTranslation: () => [TransForLibs<"indicator.activity.idle" | "indicator.activity.stopped" | "indicator.activity.unknown" | "indicator.activity.working" | "indicator.utilization.heavilyUtilized" | "indicator.utilization.unused" | "indicator.utilization.utilized">, import("i18next").i18n, boolean] & {
18
+ t: TransForLibs<"indicator.activity.idle" | "indicator.activity.stopped" | "indicator.activity.unknown" | "indicator.activity.working" | "indicator.utilization.heavilyUtilized" | "indicator.utilization.unused" | "indicator.utilization.utilized">;
19
+ i18n: import("i18next").i18n;
20
+ ready: boolean;
21
+ };
19
22
  /**
20
23
  * Type of the t function for the local useTranslation for this specific library
21
24
  */
@@ -23,7 +26,7 @@ export type TranslationFunction = TransForLibs<TranslationKeys>;
23
26
  /**
24
27
  * Trans for this specific library.
25
28
  */
26
- export declare const Trans: (props: NamespaceTransProps<TranslationKeys>) => ReactElement;
29
+ export declare const Trans: (props: NamespaceTransProps<TranslationKeys>) => import("react/jsx-runtime").JSX.Element;
27
30
  /**
28
31
  * Registers the translations for this library
29
32
  */
@@ -1 +0,0 @@
1
- {"version":3,"file":"entry.js","sourceRoot":"","sources":["../../../../../libs/utilization/indicator/migrations/entry.ts"],"names":[],"mappings":"","sourcesContent":["export {};\n"]}