@cronus-ui/ui 0.6.6 → 0.6.8

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.
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * DEMO auth adapter. Gold-path apps replace `lib/auth-adapter.ts` with a
3
3
  * Better-Auth implementation that keeps the same named exports
4
- * (`signInEmail`, `signUpEmail`, `requestPasswordReset`).
4
+ * (`signInEmail`, `signUpEmail`, `requestPasswordReset`, `resetPassword`).
5
5
  *
6
6
  * PURE TS (zero React / hooks / DOM). Gallery and store demos fake success
7
7
  * after client-side validation — no network.
@@ -23,4 +23,9 @@ export declare function signUpEmail(input: SignUpInput): Promise<void>;
23
23
  export declare function requestPasswordReset(input: {
24
24
  email: string;
25
25
  }): Promise<void>;
26
+ /** Demo password reset: require a token and a valid password, wait, resolve. */
27
+ export declare function resetPassword(input: {
28
+ token: string;
29
+ newPassword: string;
30
+ }): Promise<void>;
26
31
  //# sourceMappingURL=auth-adapter.d.ts.map
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * DEMO auth adapter. Gold-path apps replace `lib/auth-adapter.ts` with a
3
3
  * Better-Auth implementation that keeps the same named exports
4
- * (`signInEmail`, `signUpEmail`, `requestPasswordReset`).
4
+ * (`signInEmail`, `signUpEmail`, `requestPasswordReset`, `resetPassword`).
5
5
  *
6
6
  * PURE TS (zero React / hooks / DOM). Gallery and store demos fake success
7
7
  * after client-side validation — no network.
@@ -43,4 +43,12 @@ export async function requestPasswordReset(input) {
43
43
  requireEmail(input.email);
44
44
  await wait(DEMO_LATENCY_MS);
45
45
  }
46
+ /** Demo password reset: require a token and a valid password, wait, resolve. */
47
+ export async function resetPassword(input) {
48
+ if (!input.token.trim()) {
49
+ throw new Error("Reset link is missing or expired.");
50
+ }
51
+ requirePassword(input.newPassword);
52
+ await wait(DEMO_LATENCY_MS);
53
+ }
46
54
  //# sourceMappingURL=auth-adapter.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cronus-ui/ui",
3
- "version": "0.6.6",
3
+ "version": "0.6.8",
4
4
  "description": "Cronus UI — themeable, accessible React components (Radix + CVA + Tailwind v4).",
5
5
  "type": "module",
6
6
  "exports": {
@@ -759,7 +759,7 @@
759
759
  "vaul": "^1.1.2"
760
760
  },
761
761
  "peerDependencies": {
762
- "@cronus-ui/theme": "0.6.6",
762
+ "@cronus-ui/theme": "0.6.8",
763
763
  "@dnd-kit/core": "^6.3.1",
764
764
  "@dnd-kit/sortable": "^10.0.0",
765
765
  "@dnd-kit/utilities": "^3.2.2",
@@ -903,7 +903,7 @@
903
903
  }
904
904
  },
905
905
  "devDependencies": {
906
- "@cronus-ui/theme": "0.6.6",
906
+ "@cronus-ui/theme": "0.6.8",
907
907
  "@dnd-kit/core": "^6.3.1",
908
908
  "@dnd-kit/sortable": "^10.0.0",
909
909
  "@dnd-kit/utilities": "^3.2.2",