create-varity-app 2.0.0-beta.4 → 2.0.0-beta.5

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/dist/index.js CHANGED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-varity-app",
3
- "version": "2.0.0-beta.4",
3
+ "version": "2.0.0-beta.5",
4
4
  "description": "Create production-ready apps with auth, database, and payments built in",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -17,8 +17,8 @@ let useAuthHook: any = null;
17
17
  try {
18
18
  const uiKit = require('@varity-labs/ui-kit');
19
19
  DashboardLayout = uiKit.DashboardLayout;
20
- ProtectedRoute = uiKit.PrivyProtectedRoute;
21
- AuthStackComponent = uiKit.PrivyStack;
20
+ ProtectedRoute = uiKit.ProtectedRoute;
21
+ AuthStackComponent = uiKit.AuthStack;
22
22
  ZeroDevProviderComponent = uiKit.ZeroDevProvider;
23
23
  useAuthHook = uiKit.useAuth;
24
24
  } catch {}
@@ -279,7 +279,7 @@ export default function DashboardRootLayout({
279
279
  }: {
280
280
  children: React.ReactNode;
281
281
  }) {
282
- // Auth provider (managed by Varity) with gas sponsorship
282
+ // Auth provider (managed by Varity)
283
283
  if (!ProtectedRoute || !AuthStackComponent || !ZeroDevProviderComponent) {
284
284
  // Fallback if ui-kit package isn't installed
285
285
  return <DashboardShell>{children}</DashboardShell>;
@@ -44,7 +44,7 @@ let useAuthHook: any = null;
44
44
 
45
45
  try {
46
46
  const uiKit = require('@varity-labs/ui-kit');
47
- UserProfileComponent = uiKit.PrivyUserProfile;
47
+ UserProfileComponent = uiKit.UserProfile;
48
48
  useAuthHook = uiKit.useAuth;
49
49
  } catch {}
50
50
 
@@ -112,7 +112,7 @@ export default function SettingsPage() {
112
112
  },
113
113
  ]);
114
114
 
115
- // Sync profile form when Privy data arrives asynchronously
115
+ // Sync profile form when auth data arrives asynchronously
116
116
  useEffect(() => {
117
117
  if (name || email) {
118
118
  setProfileForm({ name: name || '', email: email || '' });
@@ -12,7 +12,7 @@ let useAuthHook: (() => { authenticated: boolean; ready: boolean; login: () => v
12
12
 
13
13
  try {
14
14
  const uiKit = require('@varity-labs/ui-kit');
15
- AuthStackComponent = uiKit.PrivyStack;
15
+ AuthStackComponent = uiKit.AuthStack;
16
16
  ZeroDevProviderComponent = uiKit.ZeroDevProvider;
17
17
  useAuthHook = uiKit.useAuth;
18
18
  } catch {}
@@ -81,7 +81,7 @@ function LoginContent() {
81
81
  }
82
82
 
83
83
  export default function LoginPage() {
84
- // Auth provider (managed by Varity) with gas sponsorship
84
+ // Auth provider (managed by Varity)
85
85
  if (AuthStackComponent && ZeroDevProviderComponent) {
86
86
  return (
87
87
  <AuthStackComponent