@umituz/web-dashboard 4.1.1 → 4.1.3

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": "@umituz/web-dashboard",
3
- "version": "4.1.1",
3
+ "version": "4.1.3",
4
4
  "description": "Installable app skeleton for the fleet — layouts, auth, onboarding, analytics (dependency-free SVG charts), calendar, i18n injection, permissions/session/module registry; ships its own udb-* stylesheet and --u-* tokens",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
@@ -81,7 +81,7 @@ export const RegisterForm = ({
81
81
  setError(null);
82
82
 
83
83
  const validation = validateRegister(
84
- { email, password, name },
84
+ { email, password, name, confirmPassword },
85
85
  false,
86
86
  requirePasswordConfirm,
87
87
  );
@@ -100,6 +100,12 @@ describe("validateRegister", () => {
100
100
  error: AUTH_VALIDATION_KEYS.passwordsDoNotMatch,
101
101
  });
102
102
  });
103
+
104
+ it("accepts matching confirmation when required (the RegisterForm call shape)", () => {
105
+ expect(
106
+ validateRegister({ ...base, name: "A", confirmPassword: base.password }, false, true),
107
+ ).toEqual({ valid: true });
108
+ });
103
109
  });
104
110
 
105
111
  describe("validateResetPassword", () => {
@@ -1,4 +1,3 @@
1
- import React from "react";
2
1
  import { cn } from "../../../primitives";
3
2
 
4
3
  interface BrandLogoProps {