@arch-cadre/panel 1.0.6 → 1.0.7

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.
Files changed (31) hide show
  1. package/dist/ui/components/app-sidebar.cjs +2 -2
  2. package/dist/ui/components/app-sidebar.mjs +1 -1
  3. package/dist/ui/components/app-user.cjs +4 -4
  4. package/dist/ui/components/app-user.mjs +3 -3
  5. package/dist/ui/components/breadcrumb-slot.cjs +2 -2
  6. package/dist/ui/components/breadcrumb-slot.mjs +1 -1
  7. package/dist/ui/components/manager/module-card.cjs +2 -2
  8. package/dist/ui/components/manager/module-card.mjs +1 -1
  9. package/dist/ui/components/manager/module-list.cjs +2 -2
  10. package/dist/ui/components/manager/module-list.mjs +1 -1
  11. package/dist/ui/components/manager/module-upload.cjs +2 -2
  12. package/dist/ui/components/manager/module-upload.mjs +1 -1
  13. package/dist/ui/components/profile/components.cjs +4 -4
  14. package/dist/ui/components/profile/components.mjs +1 -1
  15. package/dist/ui/components/profile/link.cjs +2 -2
  16. package/dist/ui/components/profile/link.mjs +1 -1
  17. package/dist/ui/components/profile/page.cjs +2 -6
  18. package/dist/ui/components/profile/page.mjs +2 -9
  19. package/dist/ui/dashboard/page.cjs +3 -3
  20. package/dist/ui/dashboard/page.mjs +1 -1
  21. package/dist/ui/dashboard/widgets/WelcomeBackUserWidget.cjs +1 -0
  22. package/dist/ui/dashboard/widgets/WelcomeBackUserWidget.mjs +5 -4
  23. package/dist/ui/error.cjs +2 -2
  24. package/dist/ui/error.mjs +1 -1
  25. package/dist/ui/rbac/pages/rbac-admin.cjs +2 -2
  26. package/dist/ui/rbac/pages/rbac-admin.mjs +1 -1
  27. package/dist/ui/session-manager/components/sessions-list.cjs +2 -2
  28. package/dist/ui/session-manager/components/sessions-list.mjs +1 -1
  29. package/dist/ui/settings-page.cjs +2 -2
  30. package/dist/ui/settings-page.mjs +1 -1
  31. package/package.json +6 -6
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.AppSidebar = AppSidebar;
8
- var _client = require("@arch-cadre/intl/client");
8
+ var _intl = require("@arch-cadre/intl");
9
9
  var _logo = require("@arch-cadre/ui/brand/logo");
10
10
  var _collapsible = require("@arch-cadre/ui/components/collapsible");
11
11
  var _scrollArea = require("@arch-cadre/ui/components/scroll-area");
@@ -33,7 +33,7 @@ function AppSidebar({
33
33
  } = (0, _sidebar.useSidebar)();
34
34
  const {
35
35
  t
36
- } = (0, _client.useTranslation)();
36
+ } = (0, _intl.useTranslation)();
37
37
  const pathname = (0, _navigation.usePathname)();
38
38
  const [scrolled, setScrolledState] = (0, _react2.useState)(false);
39
39
  const matchPath = path => {
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { useTranslation } from "@arch-cadre/intl/client";
2
+ import { useTranslation } from "@arch-cadre/intl";
3
3
  import { Logo } from "@arch-cadre/ui/brand/logo";
4
4
  import {
5
5
  Collapsible,
@@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.AppUser = AppUser;
8
- var _client = require("@arch-cadre/intl/client");
9
- var _client2 = require("@arch-cadre/modules/client");
8
+ var _intl = require("@arch-cadre/intl");
9
+ var _modules = require("@arch-cadre/modules");
10
10
  var _avatar = require("@arch-cadre/ui/components/avatar");
11
11
  var _dropdownMenu = require("@arch-cadre/ui/components/dropdown-menu");
12
12
  var _sidebar = require("@arch-cadre/ui/components/sidebar");
@@ -27,7 +27,7 @@ function AppUser() {
27
27
  const isMobile = (0, _useMobile.useIsMobile)();
28
28
  const {
29
29
  t
30
- } = (0, _client.useTranslation)();
30
+ } = (0, _intl.useTranslation)();
31
31
  if (!user) {
32
32
  return;
33
33
  }
@@ -84,7 +84,7 @@ function AppUser() {
84
84
  className: "truncate font-medium"
85
85
  }, user.name), /* @__PURE__ */React.createElement("span", {
86
86
  className: "truncate text-xs"
87
- }, user.email)))), /* @__PURE__ */React.createElement(_client2.ExtensionPoint, {
87
+ }, user.email)))), /* @__PURE__ */React.createElement(_modules.ExtensionPointClient, {
88
88
  module: "panel",
89
89
  point: "app-user:extra-link"
90
90
  }), /* @__PURE__ */React.createElement(_dropdownMenu.DropdownMenuSeparator, null), /* @__PURE__ */React.createElement("button", {
@@ -1,6 +1,6 @@
1
1
  "use client";
2
- import { useTranslation } from "@arch-cadre/intl/client";
3
- import { ExtensionPoint } from "@arch-cadre/modules/client";
2
+ import { useTranslation } from "@arch-cadre/intl";
3
+ import { ExtensionPointClient } from "@arch-cadre/modules";
4
4
  import {
5
5
  Avatar,
6
6
  AvatarFallback,
@@ -73,7 +73,7 @@ export function AppUser() {
73
73
  sideOffset: 4
74
74
  },
75
75
  /* @__PURE__ */ React.createElement(DropdownMenuLabel, { className: "p-0 font-normal" }, /* @__PURE__ */ React.createElement("div", { className: "flex items-center gap-2 px-1 py-1.5 text-left text-sm" }, /* @__PURE__ */ React.createElement(Avatar, { className: "h-8 w-8 rounded-full" }, /* @__PURE__ */ React.createElement(AvatarImage, { src: user.image ?? void 0, alt: user.name }), /* @__PURE__ */ React.createElement(AvatarFallback, { className: "rounded-full" }, user.name.charAt(0).toUpperCase())), /* @__PURE__ */ React.createElement("div", { className: "grid flex-1 text-left text-sm leading-tight" }, /* @__PURE__ */ React.createElement("span", { className: "truncate font-medium" }, user.name), /* @__PURE__ */ React.createElement("span", { className: "truncate text-xs" }, user.email)))),
76
- /* @__PURE__ */ React.createElement(ExtensionPoint, { module: "panel", point: "app-user:extra-link" }),
76
+ /* @__PURE__ */ React.createElement(ExtensionPointClient, { module: "panel", point: "app-user:extra-link" }),
77
77
  /* @__PURE__ */ React.createElement(DropdownMenuSeparator, null),
78
78
  /* @__PURE__ */ React.createElement(
79
79
  "button",
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  module.exports = BreadcrumbSlot;
8
- var _client = require("@arch-cadre/intl/client");
8
+ var _intl = require("@arch-cadre/intl");
9
9
  var _breadcrumb = require("@arch-cadre/ui/components/breadcrumb");
10
10
  var _tooltip = require("@arch-cadre/ui/components/tooltip");
11
11
  var _image = _interopRequireDefault(require("next/image"));
@@ -17,7 +17,7 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
17
17
  function BreadcrumbSlot() {
18
18
  const {
19
19
  t
20
- } = (0, _client.useTranslation)();
20
+ } = (0, _intl.useTranslation)();
21
21
  return /* @__PURE__ */React.createElement(_breadcrumb.Breadcrumb, {
22
22
  className: "hidden sm:block"
23
23
  }, /* @__PURE__ */React.createElement(_breadcrumb.BreadcrumbList, null, /* @__PURE__ */React.createElement(_breadcrumb.BreadcrumbItem, null, /* @__PURE__ */React.createElement(_tooltip.Tooltip, null, /* @__PURE__ */React.createElement(_tooltip.TooltipTrigger, {
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { useTranslation } from "@arch-cadre/intl/client";
2
+ import { useTranslation } from "@arch-cadre/intl";
3
3
  import {
4
4
  Breadcrumb,
5
5
  BreadcrumbItem,
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.ModuleCard = ModuleCard;
8
8
  var _core = require("@arch-cadre/core");
9
- var _client = require("@arch-cadre/intl/client");
9
+ var _intl = require("@arch-cadre/intl");
10
10
  var _badge = require("@arch-cadre/ui/components/badge");
11
11
  var _button = require("@arch-cadre/ui/components/button");
12
12
  var _card = require("@arch-cadre/ui/components/card");
@@ -28,7 +28,7 @@ function ModuleCard({
28
28
  const router = (0, _navigation.useRouter)();
29
29
  const {
30
30
  t
31
- } = (0, _client.useTranslation)();
31
+ } = (0, _intl.useTranslation)();
32
32
  const [isEnabled, setIsEnabled] = (0, _react.useState)(module.enabled);
33
33
  const [isProcessing, setIsProcessing] = (0, _react.useState)(!!module.lastStep);
34
34
  const [localStep, setLocalStep] = (0, _react.useState)(module.lastStep || null);
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import { eventBus } from "@arch-cadre/core";
3
- import { useTranslation } from "@arch-cadre/intl/client";
3
+ import { useTranslation } from "@arch-cadre/intl";
4
4
  import { Badge } from "@arch-cadre/ui/components/badge";
5
5
  import { Button } from "@arch-cadre/ui/components/button";
6
6
  import {
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.ModuleMarketplaceList = ModuleMarketplaceList;
8
- var _client = require("@arch-cadre/intl/client");
8
+ var _intl = require("@arch-cadre/intl");
9
9
  var _separator = require("@arch-cadre/ui/components/separator");
10
10
  var React = _interopRequireWildcard(require("react"));
11
11
  var _moduleCard = require("./module-card.cjs");
@@ -16,7 +16,7 @@ function ModuleMarketplaceList({
16
16
  }) {
17
17
  const {
18
18
  t
19
- } = (0, _client.useTranslation)();
19
+ } = (0, _intl.useTranslation)();
20
20
  const sortedModules = [...initialModules].sort((a, b) => a.name.localeCompare(b.name));
21
21
  const coreModules = sortedModules.filter(m => m.system);
22
22
  const publicModules = sortedModules.filter(m => !m.system);
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { useTranslation } from "@arch-cadre/intl/client";
2
+ import { useTranslation } from "@arch-cadre/intl";
3
3
  import { Separator } from "@arch-cadre/ui/components/separator";
4
4
  import * as React from "react";
5
5
  import { ModuleCard } from "./module-card.mjs";
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.ModuleUpload = ModuleUpload;
8
- var _client = require("@arch-cadre/intl/client");
8
+ var _intl = require("@arch-cadre/intl");
9
9
  var _button = require("@arch-cadre/ui/components/button");
10
10
  var _lucideReact = require("lucide-react");
11
11
  var _react = _interopRequireWildcard(require("react"));
@@ -20,7 +20,7 @@ function ModuleUpload() {
20
20
  const fileInputRef = (0, _react.useRef)(null);
21
21
  const {
22
22
  t
23
- } = (0, _client.useTranslation)();
23
+ } = (0, _intl.useTranslation)();
24
24
  (0, _react.useEffect)(() => {
25
25
  (0, _manager.checkDiskWriteAccess)().then(res => setCanWrite(res.canWrite));
26
26
  }, []);
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { useTranslation } from "@arch-cadre/intl/client";
2
+ import { useTranslation } from "@arch-cadre/intl";
3
3
  import { Button } from "@arch-cadre/ui/components/button";
4
4
  import { Loader2, Lock, Upload } from "lucide-react";
5
5
  import * as React from "react";
@@ -9,7 +9,7 @@ exports.UpdatePasswordForm = UpdatePasswordForm;
9
9
  exports.UpdateProfileForm = UpdateProfileForm;
10
10
  var _react = _interopRequireWildcard(require("react"));
11
11
  var React = _react;
12
- var _client = require("@arch-cadre/intl/client");
12
+ var _intl = require("@arch-cadre/intl");
13
13
  var _ui = require("@arch-cadre/ui");
14
14
  var _avatar = require("@arch-cadre/ui/components/avatar");
15
15
  var _button = require("@arch-cadre/ui/components/button");
@@ -23,7 +23,7 @@ function UpdateProfileForm({
23
23
  }) {
24
24
  const {
25
25
  t
26
- } = (0, _client.useTranslation)();
26
+ } = (0, _intl.useTranslation)();
27
27
  const [name, setName] = (0, _react.useState)(user.name);
28
28
  const [isPending, startTransition] = (0, _react.useTransition)();
29
29
  const [image, setImage] = (0, _react.useState)(user.image);
@@ -138,7 +138,7 @@ function UpdatePasswordForm() {
138
138
  const [state, action, isPending] = (0, _react.useActionState)(_profile.updatePasswordAction, initialUpdatePasswordState);
139
139
  const {
140
140
  t
141
- } = (0, _client.useTranslation)();
141
+ } = (0, _intl.useTranslation)();
142
142
  const [currentPassword, setCurrentPassword] = (0, _react.useState)("");
143
143
  const [newPassword, setNewPassword] = (0, _react.useState)("");
144
144
  const [confirmPassword, setConfirmPassword] = (0, _react.useState)("");
@@ -209,7 +209,7 @@ function UpdateEmailForm({
209
209
  const [state, action, isPending] = (0, _react.useActionState)(_profile.updateEmailAction, initialUpdateEmailState);
210
210
  const {
211
211
  t
212
- } = (0, _client.useTranslation)();
212
+ } = (0, _intl.useTranslation)();
213
213
  const [email, setEmail] = (0, _react.useState)(user.email);
214
214
  return /* @__PURE__ */React.createElement("form", {
215
215
  action,
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import * as React from "react";
3
- import { useTranslation } from "@arch-cadre/intl/client";
3
+ import { useTranslation } from "@arch-cadre/intl";
4
4
  import { cn, Icon, toast } from "@arch-cadre/ui";
5
5
  import {
6
6
  Avatar,
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.UserDropdownLink = UserDropdownLink;
8
8
  var React = _interopRequireWildcard(require("react"));
9
- var _client = require("@arch-cadre/intl/client");
9
+ var _intl = require("@arch-cadre/intl");
10
10
  var _ui = require("@arch-cadre/ui");
11
11
  var _dropdownMenu = require("@arch-cadre/ui/components/dropdown-menu");
12
12
  var _link = _interopRequireDefault(require("next/link"));
@@ -17,7 +17,7 @@ function UserDropdownLink() {
17
17
  const root = "/kryo";
18
18
  const {
19
19
  t
20
- } = (0, _client.useTranslation)();
20
+ } = (0, _intl.useTranslation)();
21
21
  return /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement(_dropdownMenu.DropdownMenuGroup, null, /* @__PURE__ */React.createElement(_link.default, {
22
22
  href: `${root}/profile`
23
23
  }, /* @__PURE__ */React.createElement(_dropdownMenu.DropdownMenuItem, {
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import * as React from "react";
3
- import { useTranslation } from "@arch-cadre/intl/client";
3
+ import { useTranslation } from "@arch-cadre/intl";
4
4
  import { Icon } from "@arch-cadre/ui";
5
5
  import {
6
6
  DropdownMenuGroup,
@@ -6,10 +6,9 @@ Object.defineProperty(exports, "__esModule", {
6
6
  module.exports = ProfileSettingsPage;
7
7
  var _server = require("@arch-cadre/core/server");
8
8
  var _server2 = require("@arch-cadre/intl/server");
9
- var _client = require("@arch-cadre/modules/client");
10
9
  var _navigation = require("next/navigation");
11
- var _components = require("./components.cjs");
12
10
  var React = _interopRequireWildcard(require("react"));
11
+ var _components = require("./components.cjs");
13
12
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
14
13
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
15
14
  async function ProfileSettingsPage() {
@@ -37,8 +36,5 @@ async function ProfileSettingsPage() {
37
36
  user
38
37
  }), /* @__PURE__ */React.createElement(_components.UpdateEmailForm, {
39
38
  user
40
- }), /* @__PURE__ */React.createElement(_components.UpdatePasswordForm, null), /* @__PURE__ */React.createElement(_client.ExtensionPoint, {
41
- module: "user-profile",
42
- point: "settings:extra-sections"
43
- }));
39
+ }), /* @__PURE__ */React.createElement(_components.UpdatePasswordForm, null));
44
40
  }
@@ -1,13 +1,12 @@
1
1
  import { checkSecurity, getCurrentSession } from "@arch-cadre/core/server";
2
2
  import { getTranslation } from "@arch-cadre/intl/server";
3
- import { ExtensionPoint } from "@arch-cadre/modules/client";
4
3
  import { redirect } from "next/navigation";
4
+ import * as React from "react";
5
5
  import {
6
6
  UpdateEmailForm,
7
7
  UpdatePasswordForm,
8
8
  UpdateProfileForm
9
9
  } from "./components.mjs";
10
- import * as React from "react";
11
10
  export default async function ProfileSettingsPage() {
12
11
  const { session, user } = await getCurrentSession();
13
12
  const { t } = await getTranslation();
@@ -18,11 +17,5 @@ export default async function ProfileSettingsPage() {
18
17
  if (!security.satisfied && security.redirect) {
19
18
  return redirect(security.redirect);
20
19
  }
21
- return /* @__PURE__ */ React.createElement("div", { className: "space-y-6 max-w-2xl" }, /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement("h2", { className: "text-2xl font-bold" }, t("Profile Settings")), /* @__PURE__ */ React.createElement("p", { className: "text-muted-foreground" }, t("Manage your account settings and profile information."))), /* @__PURE__ */ React.createElement(UpdateProfileForm, { user }), /* @__PURE__ */ React.createElement(UpdateEmailForm, { user }), /* @__PURE__ */ React.createElement(UpdatePasswordForm, null), /* @__PURE__ */ React.createElement(
22
- ExtensionPoint,
23
- {
24
- module: "user-profile",
25
- point: "settings:extra-sections"
26
- }
27
- ));
20
+ return /* @__PURE__ */ React.createElement("div", { className: "space-y-6 max-w-2xl" }, /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement("h2", { className: "text-2xl font-bold" }, t("Profile Settings")), /* @__PURE__ */ React.createElement("p", { className: "text-muted-foreground" }, t("Manage your account settings and profile information."))), /* @__PURE__ */ React.createElement(UpdateProfileForm, { user }), /* @__PURE__ */ React.createElement(UpdateEmailForm, { user }), /* @__PURE__ */ React.createElement(UpdatePasswordForm, null));
28
21
  }
@@ -4,17 +4,17 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  module.exports = Page;
7
- var _client = require("@arch-cadre/modules/client");
7
+ var _modules = require("@arch-cadre/modules");
8
8
  var React = _interopRequireWildcard(require("react"));
9
9
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
10
10
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
11
11
  async function Page() {
12
12
  return /* @__PURE__ */React.createElement("div", {
13
13
  className: "flex flex-col gap-6"
14
- }, /* @__PURE__ */React.createElement(_client.WidgetArea, {
14
+ }, /* @__PURE__ */React.createElement(_modules.WidgetArea, {
15
15
  area: "dashboard-stats",
16
16
  className: "grid grid-cols-1 md:grid-cols-3 gap-6"
17
- }), /* @__PURE__ */React.createElement(_client.WidgetArea, {
17
+ }), /* @__PURE__ */React.createElement(_modules.WidgetArea, {
18
18
  area: "dashboard-main",
19
19
  className: "grid grid-cols-1 md:grid-cols-2 gap-6"
20
20
  }));
@@ -1,4 +1,4 @@
1
- import { WidgetArea } from "@arch-cadre/modules/client";
1
+ import { WidgetArea } from "@arch-cadre/modules";
2
2
  import * as React from "react";
3
3
  export default async function Page() {
4
4
  return /* @__PURE__ */ React.createElement("div", { className: "flex flex-col gap-6" }, /* @__PURE__ */ React.createElement(
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
+ "use server";
2
3
 
3
4
  Object.defineProperty(exports, "__esModule", {
4
5
  value: true
@@ -1,13 +1,14 @@
1
+ "use server";
1
2
  import { getCurrentSession } from "@arch-cadre/core/server";
2
3
  import { getTranslation } from "@arch-cadre/intl/server";
3
4
  import {
5
+ Avatar,
6
+ AvatarFallback,
7
+ AvatarImage,
4
8
  Card,
5
9
  CardContent,
6
10
  CardHeader,
7
- CardTitle,
8
- Avatar,
9
- AvatarImage,
10
- AvatarFallback
11
+ CardTitle
11
12
  } from "@arch-cadre/ui";
12
13
  import * as React from "react";
13
14
  export default async function WelcomeBackUserWidget() {
package/dist/ui/error.cjs CHANGED
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  module.exports = ErrorPage;
8
- var _client = require("@arch-cadre/intl/client");
8
+ var _intl = require("@arch-cadre/intl");
9
9
  var _button = require("@arch-cadre/ui/components/button");
10
10
  var _empty = require("@arch-cadre/ui/components/empty");
11
11
  var _react = require("@iconify/react");
@@ -19,7 +19,7 @@ function ErrorPage({
19
19
  }) {
20
20
  const {
21
21
  t
22
- } = (0, _client.useTranslation)();
22
+ } = (0, _intl.useTranslation)();
23
23
  (0, _react2.useEffect)(() => {
24
24
  console.error(error);
25
25
  }, [error]);
package/dist/ui/error.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { useTranslation } from "@arch-cadre/intl/client";
2
+ import { useTranslation } from "@arch-cadre/intl";
3
3
  import { Button } from "@arch-cadre/ui/components/button";
4
4
  import {
5
5
  Empty,
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  module.exports = RbacAdminPage;
8
- var _client = require("@arch-cadre/intl/client");
8
+ var _intl = require("@arch-cadre/intl");
9
9
  var _ui = require("@arch-cadre/ui");
10
10
  var _button = require("@arch-cadre/ui/components/button");
11
11
  var _card = require("@arch-cadre/ui/components/card");
@@ -24,7 +24,7 @@ function RbacAdminPage() {
24
24
  const [loading, setLoading] = (0, _react.useState)(true);
25
25
  const {
26
26
  t
27
- } = (0, _client.useTranslation)();
27
+ } = (0, _intl.useTranslation)();
28
28
  const [newRoleName, setNewRoleName] = (0, _react.useState)("");
29
29
  const [newPermissionName, setNewPermissionName] = (0, _react.useState)("");
30
30
  const [selectedRole, setSelectedRole] = (0, _react.useState)(null);
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { useTranslation } from "@arch-cadre/intl/client";
2
+ import { useTranslation } from "@arch-cadre/intl";
3
3
  import { Icon, toast } from "@arch-cadre/ui";
4
4
  import { Button } from "@arch-cadre/ui/components/button";
5
5
  import {
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.SessionsList = SessionsList;
8
8
  var _react = _interopRequireWildcard(require("react"));
9
9
  var React = _react;
10
- var _client = require("@arch-cadre/intl/client");
10
+ var _intl = require("@arch-cadre/intl");
11
11
  var _ui = require("@arch-cadre/ui");
12
12
  var _alertDialog = require("@arch-cadre/ui/components/alert-dialog");
13
13
  var _badge = require("@arch-cadre/ui/components/badge");
@@ -25,7 +25,7 @@ function SessionsList({
25
25
  const [revokingSessionId, setRevokingSessionId] = (0, _react.useState)(null);
26
26
  const {
27
27
  t
28
- } = (0, _client.useTranslation)();
28
+ } = (0, _intl.useTranslation)();
29
29
  const renderAugmentations = session => {
30
30
  return Object.entries(session).filter(([key]) => !CORE_SESSION_KEYS.includes(key)).map(([key, value]) => {
31
31
  if (key === "twoFactorVerified" || key === "two_factor_verified") {
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import * as React from "react";
3
- import { useTranslation } from "@arch-cadre/intl/client";
3
+ import { useTranslation } from "@arch-cadre/intl";
4
4
  import { cn, Icon, toast } from "@arch-cadre/ui";
5
5
  import {
6
6
  AlertDialog,
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  module.exports = KryoPanelSettingsPage;
8
- var _client = require("@arch-cadre/intl/client");
8
+ var _intl = require("@arch-cadre/intl");
9
9
  var _button = require("@arch-cadre/ui/components/button");
10
10
  var _card = require("@arch-cadre/ui/components/card");
11
11
  var _input = require("@arch-cadre/ui/components/input");
@@ -22,7 +22,7 @@ function KryoPanelSettingsPage() {
22
22
  });
23
23
  const {
24
24
  t
25
- } = (0, _client.useTranslation)();
25
+ } = (0, _intl.useTranslation)();
26
26
  const [loading, setLoading] = (0, _react.useState)(true);
27
27
  (0, _react.useEffect)(() => {
28
28
  (0, _settings.getKryoConfig)().then(data => {
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { useTranslation } from "@arch-cadre/intl/client";
2
+ import { useTranslation } from "@arch-cadre/intl";
3
3
  import { Button } from "@arch-cadre/ui/components/button";
4
4
  import {
5
5
  Card,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arch-cadre/panel",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "type": "module",
5
5
  "description": "Panel module for Kryo framework",
6
6
  "exports": {
@@ -36,7 +36,7 @@
36
36
  "lint": "biome check --write"
37
37
  },
38
38
  "dependencies": {
39
- "@arch-cadre/modules": "^0.0.20",
39
+ "@arch-cadre/modules": "^0.0.73",
40
40
  "@hookform/resolvers": "^3.10.0",
41
41
  "react-hook-form": "^7.54.2",
42
42
  "@iconify-json/solar": "^1.2.2",
@@ -48,7 +48,7 @@
48
48
  "zod": "^3.24.1"
49
49
  },
50
50
  "devDependencies": {
51
- "@arch-cadre/core": "^0.0.20",
51
+ "@arch-cadre/core": "^0.0.47",
52
52
  "@types/adm-zip": "^0.5.7",
53
53
  "@types/node": "^20.19.9",
54
54
  "@types/react": "^19",
@@ -57,9 +57,9 @@
57
57
  "unbuild": "^3.6.1"
58
58
  },
59
59
  "peerDependencies": {
60
- "@arch-cadre/core": "^0.0.20",
61
- "@arch-cadre/intl": "^0.0.20",
62
- "@arch-cadre/ui": "^0.0.20",
60
+ "@arch-cadre/core": "^0.0.47",
61
+ "@arch-cadre/intl": "^0.0.47",
62
+ "@arch-cadre/ui": "^0.0.47",
63
63
  "next": ">=13.0.0",
64
64
  "react": "^19.0.0",
65
65
  "react-dom": "^19.0.0"