create-z3 0.0.52 → 0.0.55

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": "create-z3",
3
- "version": "0.0.52",
3
+ "version": "0.0.55",
4
4
  "type": "module",
5
5
  "description": "CLI for scaffolding Z3 Stack applications (TanStack/Next.js + Convex + Better Auth)",
6
6
  "bin": {
@@ -12,7 +12,7 @@ export default function AuthCard({ pathname }: { pathname: string }) {
12
12
  </Activity>
13
13
  <DialogContent
14
14
  aria-describedby={undefined}
15
- className="grid place-items-center border-none bg-transparent shadow-none"
15
+ className="grid place-items-center bg-transparent ring-transparent shadow-none"
16
16
  showCloseButton={false}
17
17
  >
18
18
  <AuthView path={pathname} />
@@ -23,6 +23,7 @@ export function Providers({ children }: { children: ReactNode }) {
23
23
  <AuthQueryProvider>
24
24
  <AuthUIProviderTanstack
25
25
  authClient={authClient}
26
+ classNames={{ card: "border border-border" }}
26
27
  /* {{EMAIL_PASSWORD_CREDENTIALS}} */
27
28
  navigate={(href) => router.navigate({ href })}
28
29
  replace={(href) => router.navigate({ href, replace: true })}
@@ -1,12 +1,14 @@
1
+ import { AuthView } from '@daveyplate/better-auth-ui'
1
2
  import { createFileRoute } from '@tanstack/react-router'
2
- import { AuthView } from "@daveyplate/better-auth-ui"
3
3
 
4
4
  export const Route = createFileRoute('/auth/$authView')({
5
+ ssr: false,
5
6
  component: RouteComponent,
6
7
  })
7
8
 
8
9
  function RouteComponent() {
9
10
  const { authView } = Route.useParams()
11
+
10
12
  return (
11
13
  <main className="mx-auto flex h-[100svh] grow flex-col items-center justify-center gap-3 self-center p-4 md:p-6">
12
14
  <AuthView pathname={authView} />
@@ -16,7 +16,6 @@ const config = defineConfig({
16
16
  plugins: [
17
17
  devtools(),
18
18
  nitro(),
19
- // this is the plugin that enables path aliases
20
19
  viteTsConfigPaths({
21
20
  projects: ['./tsconfig.json'],
22
21
  }),
@@ -26,7 +25,21 @@ const config = defineConfig({
26
25
  ],
27
26
  ssr: {
28
27
  noExternal: ["@convex-dev/better-auth"]
29
- }
28
+ },
29
+ optimizeDeps: {
30
+ // @daveyplate/better-auth-ui is only imported by the lazy-loaded auth route.
31
+ // Without explicit inclusion, Vite discovers it on first visit and triggers
32
+ // a second esbuild optimization run — creating a separate copy of the chunk
33
+ // that contains AuthUIContext, separate from the copy already bundled with
34
+ // @daveyplate/better-auth-ui/tanstack (from providers.tsx).
35
+ // Two context instances = empty auth forms.
36
+ // Explicitly including both packages guarantees they land in the same initial
37
+ // esbuild run so they share a single AuthUIContext chunk.
38
+ include: [
39
+ '@daveyplate/better-auth-ui',
40
+ '@daveyplate/better-auth-ui/tanstack',
41
+ ],
42
+ },
30
43
  })
31
44
 
32
45
  export default config