@arch-cadre/two-factor-email 1.0.2 → 1.0.4

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.
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.TwoFactorSettings = TwoFactorSettings;
8
- var _intl = require("@arch-cadre/intl");
8
+ var _client = require("@arch-cadre/intl/client");
9
9
  var _card = require("@arch-cadre/ui/components/card");
10
10
  var _label = require("@arch-cadre/ui/components/label");
11
11
  var _switch = require("@arch-cadre/ui/components/switch");
@@ -22,7 +22,7 @@ function TwoFactorSettings() {
22
22
  } = (0, _useUser.useUser)();
23
23
  const {
24
24
  t
25
- } = (0, _intl.useTranslation)();
25
+ } = (0, _client.useTranslation)();
26
26
  const [enabled, setEnabled] = (0, _react.useState)(false);
27
27
  const [loading, setLoading] = (0, _react.useState)(true);
28
28
  (0, _react.useEffect)(() => {
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { useTranslation } from "@arch-cadre/intl";
2
+ import { useTranslation } from "@arch-cadre/intl/client";
3
3
  import {
4
4
  Card,
5
5
  CardContent,
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  module.exports = TwoFactorVerifyPage;
8
- var _intl = require("@arch-cadre/intl");
8
+ var _client = require("@arch-cadre/intl/client");
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");
@@ -20,7 +20,7 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
20
20
  function TwoFactorVerifyPage() {
21
21
  const {
22
22
  t
23
- } = (0, _intl.useTranslation)();
23
+ } = (0, _client.useTranslation)();
24
24
  const router = (0, _navigation.useRouter)();
25
25
  const searchParams = (0, _navigation.useSearchParams)();
26
26
  const userId = searchParams.get("userId");
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { useTranslation } from "@arch-cadre/intl";
2
+ import { useTranslation } from "@arch-cadre/intl/client";
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/two-factor-email",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "Email-based two-factor authentication module for Kryo framework",
5
5
  "type": "module",
6
6
  "exports": {
@@ -26,8 +26,8 @@
26
26
  },
27
27
  "dependencies": {
28
28
  "@hookform/resolvers": "^3.10.0",
29
- "@arch-cadre/ui": "^0.0.17",
30
- "@arch-cadre/modules": "^0.0.17",
29
+ "@arch-cadre/ui": "^0.0.18",
30
+ "@arch-cadre/modules": "^0.0.18",
31
31
  "lucide-react": "^0.475.0",
32
32
  "react-hook-form": "^7.54.2",
33
33
  "sonner": "^2.0.7",
@@ -35,7 +35,7 @@
35
35
  },
36
36
  "devDependencies": {
37
37
  "@types/pg": "^8.16.0",
38
- "@arch-cadre/core": "^0.0.17",
38
+ "@arch-cadre/core": "^0.0.18",
39
39
  "@types/react": "^19",
40
40
  "next": "16.1.1",
41
41
  "react": "^19.0.0",
@@ -43,9 +43,9 @@
43
43
  "unbuild": "^3.6.1"
44
44
  },
45
45
  "peerDependencies": {
46
- "@arch-cadre/core": "^0.0.17",
47
- "@arch-cadre/intl": "^0.0.17",
48
- "@arch-cadre/ui": "^0.0.17",
46
+ "@arch-cadre/core": "^0.0.18",
47
+ "@arch-cadre/intl": "^0.0.18",
48
+ "@arch-cadre/ui": "^0.0.18",
49
49
  "pg": "^8.16.3",
50
50
  "drizzle-orm": "1.0.0-beta.6-4414a19",
51
51
  "next": ">=13.0.0",