Skip to content

Commit e3edc8a

Browse files
committed
Merge branch '@invertase/v7-development' of https://github.com/firebase/firebaseui-web into @invertase/bb-44
2 parents f097600 + 2de6ed1 commit e3edc8a

File tree

202 files changed

+2794
-5631
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

202 files changed

+2794
-5631
lines changed

eslint.config.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,13 @@ const config: any[] = [
7171
},
7272
{
7373
// Test files - more lenient rules
74-
files: ["**/*.test.{ts,tsx}", "**/*.spec.{ts,tsx}", "**/tests/**/*.{ts,tsx}"],
74+
files: [
75+
"**/*.test.{ts,tsx}",
76+
"**/*.spec.{ts,tsx}",
77+
"**/tests/**/*.{ts,tsx}",
78+
// These are generated from shadcn, so we don't need to lint them
79+
"examples/shadcn/src/components/**/*.tsx",
80+
],
7581
rules: {
7682
"@typescript-eslint/no-explicit-any": "off",
7783
"@typescript-eslint/no-unused-vars": "off",

examples/shadcn/add-all.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { execSync } from "node:child_process";
55

66
const components = registryJson.items.map((item) => item.name);
77
const args = parser(process.argv.slice(2));
8-
const prefix = String(args.prefix) || "@dev";
8+
const prefix = args.prefix ? String(args.prefix) : "@dev";
99

1010
const rl = readline.createInterface({
1111
input: process.stdin,
@@ -18,6 +18,8 @@ const items = components
1818
})
1919
.join(" ");
2020

21+
console.log(items);
22+
2123
rl.question(
2224
`Add ${components.length} components. This will overrwrite all existing files. Continue? (y/N) `,
2325
(answer: unknown) => {

examples/shadcn/components.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"hooks": "@/hooks"
2020
},
2121
"registries": {
22-
"@dev": "http://localhost:5178/{name}.json",
23-
"@firebase-ui": "https://ui.firebase.com/{name}.json"
22+
"@dev": "http://localhost:5177/r/{name}.json",
23+
"@firebase-ui": "https://ui.firebase.com/r/{name}.json"
2424
}
2525
}

examples/shadcn/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"react": "catalog:",
5151
"react-day-picker": "^9.11.1",
5252
"react-dom": "catalog:",
53-
"react-hook-form": "^7.64.0",
53+
"react-hook-form": "^7.65.0",
5454
"react-resizable-panels": "^3.0.6",
5555
"react-router": "^7.9.3",
5656
"react-router-dom": "^6.28.0",

packages/shadcn/src/registry/apple-sign-in-button.tsx renamed to examples/shadcn/src/components/apple-sign-in-button.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { OAuthProvider } from "firebase/auth";
44
import { getTranslation } from "@firebase-ui/core";
55
import { useUI, type AppleSignInButtonProps, AppleLogo } from "@firebase-ui/react";
66

7-
import { OAuthButton } from "@/registry/oauth-button";
7+
import { OAuthButton } from "@/components/oauth-button";
88

99
export type { AppleSignInButtonProps };
1010

examples/shadcn/src/components/email-link-auth-form.tsx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,20 @@
22

33
import type { EmailLinkAuthFormSchema } from "@firebase-ui/core";
44
import {
5+
useUI,
56
useEmailLinkAuthFormAction,
6-
useEmailLinkAuthFormCompleteSignIn,
77
useEmailLinkAuthFormSchema,
8-
useUI,
8+
useEmailLinkAuthFormCompleteSignIn,
99
type EmailLinkAuthFormProps,
1010
} from "@firebase-ui/react";
11-
12-
import { FirebaseUIError, getTranslation } from "@firebase-ui/core";
11+
import { useForm } from "react-hook-form";
1312
import { standardSchemaResolver } from "@hookform/resolvers/standard-schema";
13+
import { FirebaseUIError, getTranslation } from "@firebase-ui/core";
1414
import { useState } from "react";
15-
import { useForm } from "react-hook-form";
1615

17-
import { Button } from "@/components/ui/button";
1816
import { Form, FormControl, FormField, FormItem, FormLabel, FormMessage } from "@/components/ui/form";
1917
import { Input } from "@/components/ui/input";
18+
import { Button } from "@/components/ui/button";
2019
import { Policies } from "./policies";
2120

2221
export type { EmailLinkAuthFormProps };

examples/shadcn/src/components/email-link-auth-screen.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
import { getTranslation } from "@firebase-ui/core";
44
import { useUI, type EmailLinkAuthScreenProps } from "@firebase-ui/react";
55

6-
import { EmailLinkAuthForm } from "@/components/email-link-auth-form";
76
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card";
87
import { Separator } from "@/components/ui/separator";
8+
import { EmailLinkAuthForm } from "@/components/email-link-auth-form";
99

1010
export type { EmailLinkAuthScreenProps };
1111

packages/shadcn/src/registry/facebook-sign-in-button.tsx renamed to examples/shadcn/src/components/facebook-sign-in-button.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { FacebookAuthProvider } from "firebase/auth";
44
import { getTranslation } from "@firebase-ui/core";
55
import { useUI, type FacebookSignInButtonProps, FacebookLogo } from "@firebase-ui/react";
66

7-
import { OAuthButton } from "@/registry/oauth-button";
7+
import { OAuthButton } from "@/components/oauth-button";
88

99
export type { FacebookSignInButtonProps };
1010

examples/shadcn/src/components/forgot-password-auth-screen.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
import { getTranslation } from "@firebase-ui/core";
44
import { useUI, type ForgotPasswordAuthScreenProps } from "@firebase-ui/react";
55

6-
import { ForgotPasswordAuthForm } from "@/components/forgot-password-auth-form";
76
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card";
7+
import { ForgotPasswordAuthForm } from "@/components/forgot-password-auth-form";
88

99
export type { ForgotPasswordAuthScreenProps };
1010

0 commit comments

Comments
 (0)