refactor: rename @crema/arcadia-client → @crema/arcadia-core-client
Disambiguates the Phoenix/auth client lib from lib-arcadia-agents-client. Dir lib-arcadia-client → lib-arcadia-core-client; alias updated in tsconfig paths, vite config, app.css @source, imports, CI and docs. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
# @crema/arcadia-auth-ui
|
# @crema/arcadia-auth-ui
|
||||||
|
|
||||||
Auth screens for arcadia-backed apps — login, signup, password reset, 2FA, OAuth, invitation acceptance — wired to [`@crema/arcadia-client`](../lib-arcadia-client) and themed via Skyrise tokens (`var(--card)`, `var(--foreground)`, `var(--primary)`, `--radius`).
|
Auth screens for arcadia-backed apps — login, signup, password reset, 2FA, OAuth, invitation acceptance — wired to [`@crema/arcadia-core-client`](../lib-arcadia-core-client) and themed via Skyrise tokens (`var(--card)`, `var(--foreground)`, `var(--primary)`, `--radius`).
|
||||||
|
|
||||||
Components are headless about routing — each takes callbacks (`onSuccess`, `onForgotPassword`, etc) so the consuming app routes the user wherever it wants.
|
Components are headless about routing — each takes callbacks (`onSuccess`, `onForgotPassword`, etc) so the consuming app routes the user wherever it wants.
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import {
|
|||||||
useArcadiaClient,
|
useArcadiaClient,
|
||||||
type ArcadiaAuthTokens,
|
type ArcadiaAuthTokens,
|
||||||
type ArcadiaUser,
|
type ArcadiaUser,
|
||||||
} from "@crema/arcadia-client";
|
} from "@crema/arcadia-core-client";
|
||||||
|
|
||||||
export interface LoginResult {
|
export interface LoginResult {
|
||||||
tokens: ArcadiaAuthTokens;
|
tokens: ArcadiaAuthTokens;
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
import { useState, type CSSProperties, type FC, type ReactNode } from "react";
|
import { useState, type CSSProperties, type FC, type ReactNode } from "react";
|
||||||
import { AuthCard, ResetPasswordForm, type ResetPasswordValues } from "@crema/auth-ui";
|
import { AuthCard, ResetPasswordForm, type ResetPasswordValues } from "@crema/auth-ui";
|
||||||
import { ArcadiaError, useArcadiaClient } from "@crema/arcadia-client";
|
import { ArcadiaError, useArcadiaClient } from "@crema/arcadia-core-client";
|
||||||
|
|
||||||
export interface PasswordResetConfirmFormProps {
|
export interface PasswordResetConfirmFormProps {
|
||||||
/** Token from the reset email URL. */
|
/** Token from the reset email URL. */
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
import { useState, type CSSProperties, type FC, type ReactNode } from "react";
|
import { useState, type CSSProperties, type FC, type ReactNode } from "react";
|
||||||
import { AuthCard, ForgotPasswordForm } from "@crema/auth-ui";
|
import { AuthCard, ForgotPasswordForm } from "@crema/auth-ui";
|
||||||
import { ArcadiaError, useArcadiaClient } from "@crema/arcadia-client";
|
import { ArcadiaError, useArcadiaClient } from "@crema/arcadia-core-client";
|
||||||
|
|
||||||
export interface PasswordResetRequestFormProps {
|
export interface PasswordResetRequestFormProps {
|
||||||
/** Where to POST. Defaults to "/api/v1/password-reset/request". */
|
/** Where to POST. Defaults to "/api/v1/password-reset/request". */
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import {
|
|||||||
useArcadiaClient,
|
useArcadiaClient,
|
||||||
type ArcadiaAuthTokens,
|
type ArcadiaAuthTokens,
|
||||||
type ArcadiaUser,
|
type ArcadiaUser,
|
||||||
} from "@crema/arcadia-client";
|
} from "@crema/arcadia-core-client";
|
||||||
|
|
||||||
export interface SignupResult {
|
export interface SignupResult {
|
||||||
tokens?: ArcadiaAuthTokens;
|
tokens?: ArcadiaAuthTokens;
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import {
|
|||||||
useArcadiaClient,
|
useArcadiaClient,
|
||||||
type ArcadiaAuthTokens,
|
type ArcadiaAuthTokens,
|
||||||
type ArcadiaUser,
|
type ArcadiaUser,
|
||||||
} from "@crema/arcadia-client";
|
} from "@crema/arcadia-core-client";
|
||||||
|
|
||||||
export interface TwoFactorResult {
|
export interface TwoFactorResult {
|
||||||
tokens: ArcadiaAuthTokens;
|
tokens: ArcadiaAuthTokens;
|
||||||
|
|||||||
Reference in New Issue
Block a user