@arch-cadre/panel 1.0.21 → 1.0.27

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.cjs CHANGED
@@ -5,6 +5,8 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
 
7
7
  var _server = require("@arch-cadre/core/server");
8
+ var _global = _interopRequireDefault(require("../locales/en/global.json"));
9
+ var _global2 = _interopRequireDefault(require("../locales/pl/global.json"));
8
10
  var _manifest = _interopRequireDefault(require("../manifest.json"));
9
11
  var _navigation = require("./navigation.cjs");
10
12
  var _routes = require("./routes.cjs");
@@ -16,6 +18,10 @@ var _WelcomeBackUserWidget = _interopRequireDefault(require("./ui/dashboard/widg
16
18
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
17
19
  const kryoPanelModule = {
18
20
  manifest: _manifest.default,
21
+ translations: {
22
+ en: _global.default,
23
+ pl: _global2.default
24
+ },
19
25
  init: async () => {
20
26
  console.log("[ActivityLog] Registering core system listeners...");
21
27
  const logEvent = async (event, descriptionOverride) => {
package/dist/index.mjs CHANGED
@@ -1,4 +1,6 @@
1
1
  import { db, eventBus } from "@arch-cadre/core/server";
2
+ import localesEn from "../locales/en/global.json" with { type: "json" };
3
+ import localesPl from "../locales/pl/global.json" with { type: "json" };
2
4
  import manifest from "../manifest.json";
3
5
  import { navigation } from "./navigation.mjs";
4
6
  import { apiRoutes, privateRoutes, publicRoutes } from "./routes.mjs";
@@ -9,6 +11,10 @@ import { UserDropdownLink } from "./ui/components/profile/link.mjs";
9
11
  import WelcomeBackUserWidget from "./ui/dashboard/widgets/WelcomeBackUserWidget.mjs";
10
12
  const kryoPanelModule = {
11
13
  manifest,
14
+ translations: {
15
+ en: localesEn,
16
+ pl: localesPl
17
+ },
12
18
  init: async () => {
13
19
  console.log("[ActivityLog] Registering core system listeners...");
14
20
  const logEvent = async (event, descriptionOverride) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arch-cadre/panel",
3
- "version": "1.0.21",
3
+ "version": "1.0.27",
4
4
  "type": "module",
5
5
  "description": "Panel module for Kryo framework",
6
6
  "exports": {
@@ -37,7 +37,7 @@
37
37
  "lint": "biome check --write"
38
38
  },
39
39
  "dependencies": {
40
- "@arch-cadre/modules": "^0.0.91",
40
+ "@arch-cadre/modules": "^0.0.97",
41
41
  "@hookform/resolvers": "^3.10.0",
42
42
  "react-hook-form": "^7.54.2",
43
43
  "@iconify-json/solar": "^1.2.2",
@@ -49,7 +49,7 @@
49
49
  "zod": "^3.24.1"
50
50
  },
51
51
  "devDependencies": {
52
- "@arch-cadre/core": "^0.0.65",
52
+ "@arch-cadre/core": "^0.0.71",
53
53
  "@types/adm-zip": "^0.5.7",
54
54
  "@types/node": "^20.19.9",
55
55
  "@types/react": "^19",
@@ -58,9 +58,9 @@
58
58
  "unbuild": "^3.6.1"
59
59
  },
60
60
  "peerDependencies": {
61
- "@arch-cadre/core": "^0.0.65",
62
- "@arch-cadre/intl": "^0.0.65",
63
- "@arch-cadre/ui": "^0.0.63",
61
+ "@arch-cadre/core": "^0.0.71",
62
+ "@arch-cadre/intl": "^0.0.71",
63
+ "@arch-cadre/ui": "^0.0.69",
64
64
  "next": ">=13.0.0",
65
65
  "react": "^19.0.0",
66
66
  "react-dom": "^19.0.0"
package/src/index.ts CHANGED
@@ -1,6 +1,8 @@
1
1
  import type { SystemEvent } from "@arch-cadre/core/server";
2
2
  import { db, eventBus } from "@arch-cadre/core/server";
3
3
  import type { IModule } from "@arch-cadre/modules";
4
+ import localesEn from "../locales/en/global.json" with { type: "json" };
5
+ import localesPl from "../locales/pl/global.json" with { type: "json" };
4
6
  import manifest from "../manifest.json";
5
7
  import { navigation } from "./navigation";
6
8
  import { apiRoutes, privateRoutes, publicRoutes } from "./routes";
@@ -9,7 +11,6 @@ import ActivityStatsWidget from "./ui/activity-log/components/ActivityStatsWidge
9
11
  import RecentLogsWidget from "./ui/activity-log/components/RecentLogsWidget";
10
12
  import { UserDropdownLink } from "./ui/components/profile/link";
11
13
  import WelcomeBackUserWidget from "./ui/dashboard/widgets/WelcomeBackUserWidget";
12
-
13
14
  export interface ActivityCreatePayload {
14
15
  action: string;
15
16
  description: string;
@@ -20,6 +21,11 @@ export interface ActivityCreatePayload {
20
21
  const kryoPanelModule: IModule = {
21
22
  manifest,
22
23
 
24
+ translations: {
25
+ en: localesEn,
26
+ pl: localesPl,
27
+ },
28
+
23
29
  init: async () => {
24
30
  console.log("[ActivityLog] Registering core system listeners...");
25
31