@donotdev/auth 0.2.3 → 0.3.0
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/AuthStore.js +1 -1
- package/dist/authHelpers.js +1 -1
- package/dist/components/AccountLinking.js +1 -1
- package/dist/components/AuthFallback.js +1 -1
- package/dist/components/AuthPartnerButton.js +1 -1
- package/dist/components/DeleteAccountDialogs.js +1 -1
- package/dist/components/EmailLinkForm.js +1 -1
- package/dist/components/EmailPasswordForm.js +1 -1
- package/dist/components/EmailVerification.js +1 -1
- package/dist/components/Feature.js +1 -1
- package/dist/components/FeatureGuard.js +1 -1
- package/dist/components/LoginModal.js +1 -1
- package/dist/components/MultipleAuthProviders.js +1 -1
- package/dist/emailAuth/fields.js +1 -1
- package/dist/emailAuth/flows.js +1 -1
- package/dist/emailAuth/rules.js +1 -1
- package/dist/hooks/useAuthMethodToggle.js +1 -1
- package/dist/hooks/useAuthPartner.js +1 -1
- package/dist/hooks/useDeleteAccount.js +1 -1
- package/dist/hooks/useEmailLinkForm.js +1 -1
- package/dist/hooks/useGoogleOneTap.js +1 -1
- package/dist/symbol-index.json +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/useAuth.d.ts +5 -0
- package/dist/useAuth.d.ts.map +1 -1
- package/dist/useAuth.js +1 -1
- package/guidelines/AUTH.md +69 -7
- package/package.json +5 -5
package/dist/useAuth.d.ts
CHANGED
|
@@ -5,6 +5,11 @@ import type { AuthAPI } from '@donotdev/core';
|
|
|
5
5
|
* Single entry point for all authentication operations.
|
|
6
6
|
* Lazy loads FirebaseAuth on first call and connects to store.
|
|
7
7
|
* Uses unified FeatureStatus enum for lifecycle management.
|
|
8
|
+
* During initialization, request snapshots supply display-only identity and access
|
|
9
|
+
* state without seeding the singleton store. Omitted subscriptions grant no paid
|
|
10
|
+
* access. Snapshot capabilities are request-local; ready capabilities read the
|
|
11
|
+
* live store at call time and remain stable until access state changes.
|
|
12
|
+
* Protected server operations must still authorize against fresh trusted auth.
|
|
8
13
|
*
|
|
9
14
|
* **Property-based access (clean and simple):**
|
|
10
15
|
* ```typescript
|
package/dist/useAuth.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAuth.d.ts","sourceRoot":"","sources":["../src/useAuth.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAKV,OAAO,EAER,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"useAuth.d.ts","sourceRoot":"","sources":["../src/useAuth.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAKV,OAAO,EAER,MAAM,gBAAgB,CAAC;AA+KxB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6DG;AACH,wBAAgB,OAAO,CAAC,CAAC,SAAS,MAAM,OAAO,EAAE,GAAG,EAAE,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAgbnE"}
|
package/dist/useAuth.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{useEffect as
|
|
1
|
+
"use client";import{useEffect as se,useCallback as s,useMemo as P}from"react";import{DoNotDevError as re,ERROR_CODES as ae,DEGRADED_AUTH_API as W,FEATURE_STATUS as d,handleError as ue,hasProvider as ce,getProvider as oe,isClient as r,USER_ROLES as b,SUBSCRIPTION_TIERS as A,hasRoleAccess as I,hasTierAccess as le,getGlobalSingleton as fe,useAuthSessionSnapshot as de}from"@donotdev/core";import{useAuthStore as c}from"./AuthStore";import{getAuthMethod as D}from"./constants";const e=fe("auth-provider",()=>({instance:null,initializing:!1,errorNotified:!1,unsubscribe:null}));function N(i){const l=t=>{const u=i();if(I(u.user?.role,b.ADMIN))return!0;const f=u.userProfile?.permissions;return f?f.includes(t):!1};return{navigate:t=>{const u=i();return t===!1?!0:t===!0?!!u.user:!(t.required&&!u.user||t.role&&!I(u.user?.role,t.role)||t.tier&&!le(u.userSubscription?.tier??A.FREE,t.tier)||t.validate&&(!u.userSubscription||!u.user?.role||!t.validate(u.user.role,u.userSubscription.tier)))},view:t=>l(`${t}:view`),edit:t=>l(`${t}:edit`),delete:t=>l(`${t}:delete`),create:t=>l(`${t}:create`),has:t=>l(t),perform:(t,u)=>{const f=i();if(I(f.user?.role,b.ADMIN))return!0;if(!l(t))return!1;if(u){const E=f.userProfile?.capabilities;if(E?.[t]){const g=E[t];for(const[S,R]of Object.entries(u))if(typeof g[S]=="number"&&typeof R=="number"&&R>g[S])return!1}}return!0}}}const M=new Set(["user","loading","error","status","userProfile","userSubscription","emailVerification","passwordResetPending","partnerError","getPartnerState","setPartnerState"]);function me(i){return M.has(i)}function he(i){se(()=>{if(!r())return;const{status:n}=c.getState();return n===d.READY||e.initializing?void 0:(e.initializing=!0,(async()=>{try{if(ce("auth"))e.instance=oe("auth");else{const{getFirebaseAuth:a}=await import("@donotdev/firebase");e.instance=a()}if(!e.instance)return;"setStore"in e.instance&&e.instance.setStore(c.getState()),c.getState().setAuthService(e.instance),await e.instance.initialize(),e.unsubscribe||(e.unsubscribe=e.instance.onAuthStateChanged(()=>{})),e.errorNotified=!1}catch(a){c.getState().setStatus(d.DEGRADED),e.errorNotified||(ue(a,{userMessage:"Authentication initialization failed",context:{operation:"useAuth.initialize"},severity:"warning",showNotification:!1}),e.errorNotified=!0)}finally{e.initializing=!1}})(),()=>{e.initializing=!1})},[]);const l=s(async(n,a)=>!r()||!e.instance?null:e.instance.signInWithEmail(n,a),[]),t=s(async(n,a,h)=>!r()||!e.instance?null:e.instance.createUserWithEmail(n,a,h),[]),u=s(async(n,a)=>{if(!r()||!e.instance)return null;const h=D(a);return e.instance.signInWithPartner(n,h)},[]),f=s(async(n,a)=>{if(!r()||!e.instance)return null;const h=D(a);return e.instance.linkWithPartner(n,h)},[]),E=s(async n=>!r()||!e.instance?null:e.instance.signInWithGoogleCredential(n),[]),g=s(async()=>{if(!(!r()||!e.instance))return e.instance.signOut()},[]),S=s(async n=>{if(!(!r()||!e.instance))return e.instance.sendPasswordResetEmail(n)},[]),R=s(async n=>{if(!(!r()||!e.instance))return e.instance.updatePassword(n)},[]),U=s(async n=>!r()||!e.instance?.verifyPasswordResetCode?null:e.instance.verifyPasswordResetCode(n),[]),G=s(async(n,a)=>{if(!(!r()||!e.instance?.confirmPasswordReset))return e.instance.confirmPasswordReset(n,a)},[]),L=s(async n=>{if(!(!r()||!e.instance))return e.instance.sendEmailVerification(n)},[]),k=s(async(n,a)=>{if(!(!r()||!e.instance))return e.instance.sendSignInLinkToEmail(n,a)},[]),z=s(async(n,a)=>!r()||!e.instance?null:e.instance.signInWithEmailLink(n,a),[]),O=s(n=>!r()||!e.instance?!1:e.instance.isSignInWithEmailLink(n),[]),F=s(async()=>!r()||!e.instance?null:e.instance.getCurrentUser(),[]),V=s(async()=>!r()||!e.instance?{status:"pending"}:e.instance.getEmailVerificationStatus(),[]),_=s(async()=>!r()||!e.instance?!1:e.instance.isEmailVerificationEnabled(),[]),$=s(async n=>!r()||!e.instance?!1:e.instance.hasRole(n),[]),x=s(async n=>!r()||!e.instance?!1:e.instance.hasTier(n),[]),Y=s(async n=>!r()||!e.instance?!1:e.instance.hasFeature(n),[]),Z=s(()=>r()?c.getState().getCustomClaims():{},[]),j=s(n=>r()?c.getState().getCustomClaim(n):null,[]),q=s(async n=>{if(!(!r()||!e.instance))return e.instance.reauthenticateWithPassword(n)},[]),B=s(async(n,a)=>{if(!(!r()||!e.instance))return e.instance.reauthenticateWithProvider(n,a)},[]),H=s(async n=>{if(!(!r()||!e.instance))return e.instance.deleteAccount(n)},[]),y=s(()=>{const n=e.instance;return!r()||!n?.setRememberMe?!1:n.supportsRememberMe?n.supportsRememberMe():!0},[]),J=s(async n=>{if(!y()||!e.instance?.setRememberMe)throw new re("Remember me is not supported by this auth provider",ae.UNIMPLEMENTED,{source:"auth"});return e.instance.setRememberMe(n)},[y]),w={signInWithEmail:l,createUserWithEmail:t,signInWithPartner:u,linkWithPartner:f,signInWithGoogleCredential:E,signOut:g,sendPasswordResetEmail:S,updatePassword:R,verifyPasswordResetCode:U,confirmPasswordReset:G,sendEmailVerification:L,getEmailVerificationStatus:V,isEmailVerificationEnabled:_,sendSignInLinkToEmail:k,signInWithEmailLink:z,isSignInWithEmailLink:O,getCurrentUser:F,reauthenticateWithPassword:q,reauthenticateWithProvider:B,deleteAccount:H,setRememberMe:J,canRememberMe:y,hasRole:$,hasTier:x,hasFeature:Y,getCustomClaims:Z,getCustomClaim:j},C=new Set(["isAuthenticated","userRole","userTier","can"]),K=c(n=>me(i)?n[i]:null),Q=c(n=>C.has(i)?i==="isAuthenticated"?!!n.user:i==="userRole"?n.user?.role||b.GUEST:i==="userTier"?n.userSubscription?.tier||A.FREE:null:null),v=c(n=>n.status),o=de(),T=v===d.INITIALIZING&&o!==null,p=T?d.READY:v,X=c(n=>i==="can"?n.user:null),ee=c(n=>i==="can"?n.userProfile:null),ne=c(n=>i==="can"?n.userSubscription:null),ie=P(()=>N(c.getState),[X,ee,ne]),m=P(()=>o===null?null:{user:o.user,userProfile:o.user?{userId:o.user.id,role:o.user.role}:null,userSubscription:o.user?o.userSubscription??null:null},[o]),te=P(()=>m===null?null:N(()=>m),[m]);if(i==="status")return p;if(T){if(i==="userSubscription")return m?.userSubscription;if(i==="userProfile")return m?.userProfile;if(i==="userTier")return m?.userSubscription?.tier??A.FREE;if(i==="can")return te;if(i==="user")return o.user;if(i==="isAuthenticated")return!!o.user;if(i==="userRole")return o.user?.role||b.GUEST}return p===d.INITIALIZING||p===d.DEGRADED||p===d.ERROR?W[i]:i==="isAvailable"?!0:M.has(i)?K:i in w?w[i]:i==="can"?ie:C.has(i)?Q:W[i]}export{he as useAuth};
|
package/guidelines/AUTH.md
CHANGED
|
@@ -101,15 +101,16 @@ export const meta: PageMeta = {
|
|
|
101
101
|
|
|
102
102
|
With `createBrowserClient` (session in cookies), `dndev` generates `src/proxy.next.ts`. On every page request (not `api`, `_next`, files):
|
|
103
103
|
|
|
104
|
-
- **No auth cookie** (`sb-<ref>-auth-token`, `hasSupabaseSessionCookie`): signed out, nothing verified or written; `auth` pages redirect to `authRoute
|
|
105
|
-
- **Auth cookie:**
|
|
106
|
-
- Signed in or unknown: the page renders per request
|
|
104
|
+
- **No auth cookie** (`sb-<ref>-auth-token`, `hasSupabaseSessionCookie`): signed out, nothing verified or written; `auth` pages redirect to `authRoute` (no `authRoute`: rendered per request, the page's `AuthGuard` decides), every other page is served from the cache (see "Cached pages" below).
|
|
105
|
+
- **Auth cookie:** `refreshSupabaseSession` (`@donotdev/supabase/server`) calls `getUser()` against Auth on each authenticated page request, adding network latency; it refreshes an expired token as needed. Redirects use the verified result only: `auth` pages send a signed-out visitor to `authRoute` (`?returnTo=`), `signedInRedirect` pages send a signed-in one to their target. Auth rejection / refresh failure = signed out. Supabase unreachable = unknown, no redirect.
|
|
106
|
+
- Signed in or unknown: the page renders per request (internal rewrite to `src/app/dndev-session/…`, `src/app/[lang]/dndev-session/…` with 2+ languages; a direct request to that path is a 404).
|
|
107
|
+
- **`auth` pages have no cached copy:** they are generated only in the per-request tree, and every visitor who is not redirected gets them per request. They read the request on the server, query string included (`useSearchParams`), with no `<Suspense>`. Forwarded render cookies bind identity and subscription to the verified user, not the incoming cookie's user object. On outage, unverified auth cookies are removed from the render request, not the browser. Refreshed browser cookies are applied to responses; personal auth must never be globally cached.
|
|
107
108
|
|
|
108
|
-
**Cached pages.** The generated `src/app/(site)` layout renders `ClientLayout` without request data: every page is static, served from the cache and re-rendered at most hourly (`revalidate = 3600`, ISR), one entry per URL (page and language). Guests, crawlers and LLMs get it; so does every visitor of an app whose session the server cannot read (Firebase, localStorage session: no per-request tree, no proxy needed for it). A page that reads the query string (`useSearchParams`, `useLocation().search`) renders that
|
|
109
|
+
**Cached pages.** The generated `src/app/(site)` layout renders `ClientLayout` without request data: every page is static, served from the cache and re-rendered at most hourly (`revalidate = 3600`, ISR; `appConfig.revalidate` sets another lifetime in seconds, or `false` to keep pages until the next deploy), one entry per URL (page and language). Guests, crawlers and LLMs get it; so does every visitor of an app whose session the server cannot read (Firebase, localStorage session: no per-request tree, no proxy needed for it). The layout puts no Suspense boundary around the page, and the framework never adds one at layout level: it would show every static page only after the first paint (Lighthouse). A cached page that reads the query string (`useSearchParams`, `useLocation().search`) wraps that read in its own `<Suspense>`, which renders that part in the browser, and `next build` fails without one; use `useRoutePath()` when only the path is needed. `auth` pages of a cookie-session app are per request (see above) and need none. The framework generates the root layout (`src/app/layout.next.tsx`, `src/app/[lang]/layout.next.tsx` with 2+ languages) and the 404 pages; it renders the app's HTML shell `src/app/AppDocument.tsx` (cli `app-next` template) with the page's `<html lang>`. Both trees sit under it, so sign-in and sign-out stay client-side navigations. An `AppDocument` that renders `ClientLayout`, imports `next/headers` or exports `dynamic`, or an app-owned root layout / root `not-found`, fails the build.
|
|
109
110
|
|
|
110
111
|
Needs `NEXT_PUBLIC_SUPABASE_URL` and `NEXT_PUBLIC_SUPABASE_PUBLIC_KEY` (the proxy throws without them). Without a proxy, a cookie whose access token expired reads as "unknown": the first paint waits for the provider instead of showing a user the browser may no longer have.
|
|
111
112
|
|
|
112
|
-
**Query cache follows the identity.** When the signed-in user changes (sign-in, sign-out, other user, or the provider settling on another user than the server snapshot), every cached query is reset before the new identity renders (`syncQueryCacheIdentity`, called by the auth store). The provider confirming the server's user keeps the hydrated cache.
|
|
113
|
+
**Query cache follows the identity.** When the signed-in user changes (sign-in, sign-out, other user, or the provider settling on another user than the server snapshot), every cached query is reset before the new identity renders (`syncQueryCacheIdentity`, called by the auth store). The provider confirming the server's user keeps the hydrated cache. Next.js: the client router cache follows too. `NextJsStoresInitializer` calls `router.refresh()` on every such change (`onQueryCacheIdentityChange`, synchronously, before the caller's next `navigate`), so payloads and proxy redirects cached under the previous session (e.g. `/` → its `signedInRedirect` target) are never replayed after sign-out. Platform caches outside React Query subscribe the same way; auth itself stays router-agnostic.
|
|
113
114
|
|
|
114
115
|
---
|
|
115
116
|
|
|
@@ -200,7 +201,7 @@ await auth.setCustomUserClaims(userId, {
|
|
|
200
201
|
});
|
|
201
202
|
```
|
|
202
203
|
|
|
203
|
-
**Supabase** - Set
|
|
204
|
+
**Supabase** - Set trusted app metadata (never editable `user_metadata`):
|
|
204
205
|
```sql
|
|
205
206
|
-- In Supabase Dashboard > SQL Editor
|
|
206
207
|
UPDATE auth.users SET raw_app_meta_data = raw_app_meta_data || '{"role": "admin"}' WHERE id = '<user-id>';
|
|
@@ -211,10 +212,71 @@ UPDATE auth.users SET raw_app_meta_data = raw_app_meta_data || '{"role": "admin"
|
|
|
211
212
|
dndev make-admin <userId>
|
|
212
213
|
```
|
|
213
214
|
|
|
214
|
-
**
|
|
215
|
+
**Session sync:** After a server-side role or subscription change, explicitly refresh the affected browser's configured auth provider (see below), or sign out and in. A setter cannot remotely force another user's browser to refresh.
|
|
215
216
|
|
|
216
217
|
**Used by:** CRUD access control, protected routes, field visibility filtering.
|
|
217
218
|
|
|
219
|
+
## Access Subscriptions (Auth-Owned)
|
|
220
|
+
|
|
221
|
+
Auth owns `SubscriptionClaimsSchema`, `SubscriptionClaims`, `UserSubscription`, statuses and defaults in core. Billing is a separate producer of access updates, not a prerequisite for access. Persist only the canonical nested `customClaims.subscription` (Supabase: `app_metadata.subscription`); do not mirror a flat `tier`.
|
|
222
|
+
|
|
223
|
+
Required fields: `tier: string`, `status: string`, `subscriptionEnd: ISO timestamp | null`, `updatedAt: ISO timestamp`. Optional: `features: string[]`, `isDefault: boolean`. `subscriptionId` / `customerId` (optional, nullable) and `cancelAtPeriodEnd` (optional boolean) are deprecated billing compatibility projections, not requirements for a generic grant. `createDefaultSubscriptionClaims(userId)` retains its deprecated argument for compatibility but leaves payment identifiers null; an auth UID is not a billing customer ID.
|
|
224
|
+
|
|
225
|
+
### Server grant / revoke (Supabase)
|
|
226
|
+
|
|
227
|
+
Server-only example; the caller must authenticate and authorize the acting server request for the target `uid` **before** calling this helper. Possessing a server secret is not caller authorization. Never expose the secret or this operation as an unguarded client endpoint.
|
|
228
|
+
|
|
229
|
+
```typescript
|
|
230
|
+
import * as v from 'valibot';
|
|
231
|
+
import { SubscriptionClaimsSchema } from '@donotdev/core/server';
|
|
232
|
+
import {
|
|
233
|
+
createServerClient,
|
|
234
|
+
SupabaseServerAuthAdapter,
|
|
235
|
+
} from '@donotdev/supabase/server';
|
|
236
|
+
|
|
237
|
+
async function writeAccess(
|
|
238
|
+
url: string,
|
|
239
|
+
serverSecret: string,
|
|
240
|
+
uid: string,
|
|
241
|
+
tier: 'pro' | 'free',
|
|
242
|
+
): Promise<void> {
|
|
243
|
+
const auth = new SupabaseServerAuthAdapter(createServerClient(url, serverSecret));
|
|
244
|
+
await auth.setCustomClaims(uid, {
|
|
245
|
+
subscription: v.parse(SubscriptionClaimsSchema, {
|
|
246
|
+
tier,
|
|
247
|
+
status: 'active',
|
|
248
|
+
subscriptionEnd: null,
|
|
249
|
+
updatedAt: new Date().toISOString(),
|
|
250
|
+
}),
|
|
251
|
+
});
|
|
252
|
+
}
|
|
253
|
+
```
|
|
254
|
+
|
|
255
|
+
Grant with `pro`; revoke with a complete `free` object using the same path, without fabricated billing IDs. Supabase merges top-level app metadata, preserving unrelated keys but replacing the supplied subscription object. Omitting `subscription` does not remove it; `{ subscription: null }` explicitly clears its value and resolves to baseline free. Prefer the complete free object for an explicit persisted revocation. Self-service claims setters do not permit subscription writes.
|
|
256
|
+
|
|
257
|
+
### Browser session sync
|
|
258
|
+
|
|
259
|
+
After the server write succeeds, in the **affected user's browser**:
|
|
260
|
+
|
|
261
|
+
```typescript
|
|
262
|
+
import { getProvider } from '@donotdev/core';
|
|
263
|
+
|
|
264
|
+
const token = await getProvider('auth').refreshToken();
|
|
265
|
+
if (token === null) throw new Error('Auth refresh failed');
|
|
266
|
+
```
|
|
267
|
+
|
|
268
|
+
`refreshToken()` is an existing provider method, not a `useAuth` selector. On success it applies canonical user/subscription state before resolving; `useAuth('userSubscription')`, `useAuth('userTier')`, guards and capabilities then observe it. Other users' browsers require their own refresh; the server setter does not push session updates.
|
|
269
|
+
|
|
270
|
+
### Access semantics and trust
|
|
271
|
+
|
|
272
|
+
- `resolveUserSubscription(userId, claims)` takes the nested subscription object, not the claims envelope. Absent/null means deterministic free baseline; malformed present claims fail rather than retain earlier access. No flat-tier migration fallback.
|
|
273
|
+
- Tier guards and provider `hasTier()` compare the raw declared tier hierarchically (`free < pro < ai` by default), **without checking status or expiry**. Unknown/unconfigured tiers deny access. `isActive` means only `status === 'active'`; `subscriptionEnd` is not automatically enforced. Changing status alone does not revoke tier access: lower/remove the tier.
|
|
274
|
+
- Existing status strings, including legacy/custom statuses, remain accepted. This introduces no trial, grace or expiry policy.
|
|
275
|
+
- Supabase authorization claims/roles come only from `app_metadata`; `user_metadata` is editable profile data (name/avatar), never authorization. A signed-in user with no explicit application role has baseline role `user`.
|
|
276
|
+
- SSR `AuthSessionSnapshot.userSubscription` is display-only request context (optional for older providers). During initialization, `useAuth` reads request-local identity, subscription and capabilities; never write a request identity into the singleton auth store. Protected server actions must reauthorize using fresh trusted auth.
|
|
277
|
+
- Proxy `getUser()` supplies current trusted metadata for page rendering; it does **not** promise JWT/session revocation everywhere. Direct RLS using `auth.jwt()` may still see old claims until token refresh/expiry. Immediate revocation requires authoritative server/database policy at the protected operation, not a guard or client refresh alone.
|
|
278
|
+
- Claim updates are not a transactional grant/revoke API. Firebase merges a read snapshot before replacing claims; Supabase accepts key patches but provides no compare-and-set contract. Coordinate concurrent authorization writers per user when ordering matters. A browser refresh cannot repair a server-side lost update.
|
|
279
|
+
|
|
218
280
|
### Redirect URLs (Supabase only)
|
|
219
281
|
|
|
220
282
|
After OAuth (Google, GitHub, etc.), Supabase redirects the user back to your app. You must tell Supabase which URLs are allowed.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@donotdev/auth",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -43,10 +43,10 @@
|
|
|
43
43
|
"type-check": "bunx tsc --noEmit"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
|
-
"@donotdev/components": "^0.
|
|
47
|
-
"@donotdev/core": "^0.
|
|
48
|
-
"@donotdev/firebase": "^0.
|
|
49
|
-
"@donotdev/supabase": "^0.
|
|
46
|
+
"@donotdev/components": "^0.3.0",
|
|
47
|
+
"@donotdev/core": "^0.3.0",
|
|
48
|
+
"@donotdev/firebase": "^0.3.0",
|
|
49
|
+
"@donotdev/supabase": "^0.3.0",
|
|
50
50
|
"lucide-react": "*",
|
|
51
51
|
"react": "^19.3.1",
|
|
52
52
|
"react-dom": "^19.3.1",
|