Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
8036ea8
Merge branch '@invertase/align-core' of https://github.com/firebase/f…
Ehesp Sep 16, 2025
46f0710
test(react): Cleanup react testing setup
Ehesp Sep 16, 2025
1fed407
test(react): Add FirebaseUIProvider tests
Ehesp Sep 16, 2025
3ac4788
test(react): Update button tests
Ehesp Sep 16, 2025
b0fa7af
test(react): Use jest-dom matchers & improve test names
Ehesp Sep 16, 2025
0e3465f
test(react): Divider tests
Ehesp Sep 16, 2025
e929e0a
test(react): Improve country data tests
Ehesp Sep 16, 2025
db9d3ee
test(react): EmailLinkAuthScreen tests
Ehesp Sep 16, 2025
7a27cc9
test(react): ForgotPasswordAuthScreen tests
Ehesp Sep 16, 2025
3497ac0
test(react): OAuthScreen tests
Ehesp Sep 16, 2025
c471033
test(react): PhoneAuthScreen tests
Ehesp Sep 16, 2025
db7be28
test(react): SignInAuthScreen tests
Ehesp Sep 16, 2025
9a2a289
test(react): SignUpAuthScreen tests
Ehesp Sep 16, 2025
e7e91d5
test(react): OAuthButton tests
Ehesp Sep 16, 2025
00a495b
test(react): GoogleSignInButton tests
Ehesp Sep 17, 2025
f783b5f
fix(react): Remove tsconfig reference
Ehesp Sep 17, 2025
7a0cd76
chore(react): Bump tanstack form
Ehesp Sep 17, 2025
22b4b75
feat(react): Rework SignInAuthForm to new tanstack version
Ehesp Sep 17, 2025
1147348
test(react): Add form tests
Ehesp Sep 17, 2025
59f40d2
feat(react): Add additional schema hooks
Ehesp Sep 17, 2025
0d37db4
test(react): SignUpAuthForm tests
Ehesp Sep 17, 2025
8e49414
test(react): ForgotPasswordAuthForm tests
Ehesp Sep 17, 2025
b3e875e
test(react): EmailLinkAuthForm tests
Ehesp Sep 17, 2025
2fe94b5
test(react): PhoneAuthForm tests
Ehesp Sep 17, 2025
1179ab9
chore(react): Delete field info component
Ehesp Sep 17, 2025
5a80a9f
refactor(react): TanStack Form updates
dackers86 Sep 17, 2025
04fcfdc
Merge pull request #1188 from firebase/@invertase/align-react-tests
Ehesp Sep 17, 2025
2c70cca
fix(react): Align exports
Ehesp Sep 17, 2025
2604580
chore(example,react): Update example, typescript, api changes
Ehesp Sep 17, 2025
0ff79ea
Merge branch '@invertase/v7-development' of https://github.com/fireba…
Ehesp Sep 17, 2025
cfbbd10
Merge branch '@invertase/align-core' of https://github.com/firebase/f…
Ehesp Sep 18, 2025
4351302
Merge branch '@invertase/align-core' of https://github.com/firebase/f…
Ehesp Sep 29, 2025
f0385a3
chore(react): Rework tsconfig setup
Ehesp Sep 29, 2025
d1d1405
Merge branch '@invertase/align-core' of https://github.com/firebase/f…
Ehesp Sep 30, 2025
d2df304
Merge branch '@invertase/v7-development' of https://github.com/fireba…
Ehesp Oct 1, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 0 additions & 34 deletions examples/react/lib/firebase/ui.tsx

This file was deleted.

15 changes: 0 additions & 15 deletions examples/react/src/App.css

This file was deleted.

2 changes: 1 addition & 1 deletion examples/react/src/App.jsx → examples/react/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

import { NavLink } from "react-router";
import { useUser } from "../lib/firebase/hooks";
import { useUser } from "./firebase/hooks";

function App() {
const user = useUser();
Expand Down
1 change: 0 additions & 1 deletion examples/react/src/assets/react.svg

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import { NavLink } from "react-router";
import { useUser } from "../firebase/hooks";
import { signOut, type User } from "firebase/auth";
import { auth } from "../firebase/clientApp";
import { auth } from "../firebase/firebase";

export function Header() {
const user = useUser();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { useState } from "react";
import { onAuthStateChanged } from "firebase/auth";
import { User } from "firebase/auth";
import { useEffect } from "react";
import { auth } from "./clientApp";
import { auth } from "./firebase";

export function useUser(initalUser?: User | null) {
const [user, setUser] = useState<User | null>(initalUser ?? null);
Expand Down
2 changes: 1 addition & 1 deletion examples/react/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

@import "tailwindcss";
@import "@firebase-ui/styles/src/base.css";
@import "@firebase-ui/styles/tailwind";

/* @import "@firebase-ui/styles/src/themes/dark.css"; */
/* @import "@firebase-ui/styles/src/themes/brutalist.css"; */
23 changes: 15 additions & 8 deletions examples/react/src/main.jsx → examples/react/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,15 @@
* limitations under the License.
*/

import { BrowserRouter, RouterProvider, Routes, Route } from "react-router";
import { BrowserRouter, Routes, Route } from "react-router";

import React from "react";
import ReactDOM from "react-dom/client";
import { FirebaseUIProvider } from "@firebase-ui/react";

import { ui } from "./firebase/firebase";

import App from "./App";
import { Header } from "../lib/components/header";
import { FirebaseUIProvider } from "../lib/firebase/ui";
import { Header } from "./components/header";

/** Sign In */
import SignInAuthScreenPage from "./screens/sign-in-auth-screen";
Expand All @@ -44,14 +45,20 @@ import SignUpAuthScreenWithOAuthPage from "./screens/sign-up-auth-screen";
import OAuthScreenPage from "./screens/oauth-screen";

/** Password Reset */
import PasswordResetScreenPage from "./screens/password-reset-screen";
import ForgotPasswordPage from "./screens/forgot-password-screen";

const root = document.getElementById("root");
const root = document.getElementById("root")!;

ReactDOM.createRoot(root).render(
<BrowserRouter>
<Header />
<FirebaseUIProvider>
<FirebaseUIProvider
ui={ui}
policies={{
termsOfServiceUrl: "https://www.google.com",
privacyPolicyUrl: "https://www.google.com",
}}
>
<Routes>
<Route path="/" element={<App />} />
<Route path="/screens/sign-in-auth-screen" element={<SignInAuthScreenPage />} />
Expand All @@ -64,7 +71,7 @@ ReactDOM.createRoot(root).render(
<Route path="/screens/sign-up-auth-screen" element={<SignUpAuthScreenPage />} />
<Route path="/screens/sign-up-auth-screen-w-oauth" element={<SignUpAuthScreenWithOAuthPage />} />
<Route path="/screens/oauth-screen" element={<OAuthScreenPage />} />
<Route path="/screens/password-reset-screen" element={<PasswordResetScreenPage />} />
<Route path="/screens/forgot-password-screen" element={<ForgotPasswordPage />} />
</Routes>
</FirebaseUIProvider>
</BrowserRouter>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@

"use client";

import { PasswordResetScreen } from "@firebase-ui/react";
import { ForgotPasswordAuthScreen } from "@firebase-ui/react";

export default function PasswordResetScreenPage() {
return <PasswordResetScreen onBackToSignInClick={() => {}} />;
export default function ForgotPasswordPage() {
return <ForgotPasswordAuthScreen onBackToSignInClick={() => {}} />;
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"compilerOptions": {
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
"target": "ES2020",
"useDefineForClassFields": true,
"lib": ["ES2020", "DOM", "DOM.Iterable"],
Expand All @@ -15,6 +14,8 @@
"noEmit": true,
"jsx": "react-jsx",

"types": ["vite/client"],

/* Linting */
"strict": true,
"noUnusedLocals": true,
Expand All @@ -24,9 +25,7 @@
"baseUrl": ".",
"paths": {
"~/*": ["./src/*"],
"@firebase-ui/core": ["../core/src/index.ts"],
"@firebase-ui/styles": ["../styles/src/index.ts"]
}
},
"include": ["src"]
"include": ["src", "vite.config.ts"]
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,14 @@
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import tailwindcss from "@tailwindcss/vite";
import path from "node:path";
import { fileURLToPath } from "node:url";

export default defineConfig({
plugins: [tailwindcss(), react()],
resolve: {
alias: {
"~": path.resolve(path.dirname(fileURLToPath(import.meta.url)), "./src"),
},
},
});
2 changes: 1 addition & 1 deletion packages/core/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import {
} from "./behaviors";
import { FirebaseUIState } from "./state";

type FirebaseUIConfigurationOptions = {
export type FirebaseUIConfigurationOptions = {
app: FirebaseApp;
auth?: Auth;
locale?: RegisteredLocale;
Expand Down
4 changes: 2 additions & 2 deletions packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,16 @@
"release": "pnpm run build && pnpm pack --pack-destination --pack-destination ../../releases/"
},
"peerDependencies": {
"@firebase-ui/core": "workspace:*",
"firebase": "catalog:peerDependencies",
"react": "catalog:peerDependencies",
"react-dom": "catalog:peerDependencies"
},
"dependencies": {
"@firebase-ui/core": "workspace:*",
"@firebase-ui/styles": "workspace:*",
"@nanostores/react": "^1.0.0",
"@radix-ui/react-slot": "^1.2.3",
"@tanstack/react-form": "^0.41.3",
"@tanstack/react-form": "^1.20.0",
"clsx": "^2.1.1",
"tailwind-merge": "^3.0.1",
"zod": "catalog:"
Expand Down
6 changes: 1 addition & 5 deletions packages/react/setup-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,4 @@
* limitations under the License.
*/

import { expect } from "vitest";
import * as matchers from "@testing-library/jest-dom/matchers";

// Extend Vitest's expect with jest-dom matchers
expect.extend(matchers);
import '@testing-library/jest-dom/vitest';
Loading
Loading