@devfellowship/components 1.5.0 → 2.0.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/hooks.d.cts +4 -3
- package/dist/hooks.d.ts +4 -3
- package/dist/index.cjs +3690 -868
- package/dist/index.d.cts +1291 -194
- package/dist/index.d.ts +1291 -194
- package/dist/index.js +3788 -976
- package/dist/providers.d.cts +8 -4
- package/dist/providers.d.ts +8 -4
- package/dist/styles/fonts.css +35 -22
- package/dist/styles/theme-mappings.css +20 -12
- package/dist/styles/tokens.css +1218 -1
- package/dist/{use-auth-DdapDv2H.d.cts → use-auth-t8aJ9mx7.d.cts} +7 -2
- package/dist/{use-auth-DdapDv2H.d.ts → use-auth-t8aJ9mx7.d.ts} +7 -2
- package/package.json +8 -9
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
1
|
import React__default, { ReactNode } from 'react';
|
|
3
2
|
import { User, Session, SupabaseClient } from '@supabase/supabase-js';
|
|
4
3
|
|
|
4
|
+
/**
|
|
5
|
+
* useAuth — authentication hook
|
|
6
|
+
* Adapted from dfl-learn's AuthContext (most complete implementation).
|
|
7
|
+
* Supabase client is injected via AuthProvider — not hardcoded.
|
|
8
|
+
*/
|
|
9
|
+
|
|
5
10
|
interface UserProfile {
|
|
6
11
|
id: string;
|
|
7
12
|
name: string;
|
|
@@ -32,7 +37,7 @@ interface AuthProviderProps {
|
|
|
32
37
|
/** Optional: table name for profiles. Defaults to 'profiles'. */
|
|
33
38
|
profilesTable?: string;
|
|
34
39
|
}
|
|
35
|
-
declare const AuthProvider: ({ children, supabase, profilesTable, }: AuthProviderProps) =>
|
|
40
|
+
declare const AuthProvider: ({ children, supabase, profilesTable, }: AuthProviderProps) => React__default.JSX.Element;
|
|
36
41
|
declare const useAuth: () => AuthContextType;
|
|
37
42
|
declare const useSession: () => Session | null;
|
|
38
43
|
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
1
|
import React__default, { ReactNode } from 'react';
|
|
3
2
|
import { User, Session, SupabaseClient } from '@supabase/supabase-js';
|
|
4
3
|
|
|
4
|
+
/**
|
|
5
|
+
* useAuth — authentication hook
|
|
6
|
+
* Adapted from dfl-learn's AuthContext (most complete implementation).
|
|
7
|
+
* Supabase client is injected via AuthProvider — not hardcoded.
|
|
8
|
+
*/
|
|
9
|
+
|
|
5
10
|
interface UserProfile {
|
|
6
11
|
id: string;
|
|
7
12
|
name: string;
|
|
@@ -32,7 +37,7 @@ interface AuthProviderProps {
|
|
|
32
37
|
/** Optional: table name for profiles. Defaults to 'profiles'. */
|
|
33
38
|
profilesTable?: string;
|
|
34
39
|
}
|
|
35
|
-
declare const AuthProvider: ({ children, supabase, profilesTable, }: AuthProviderProps) =>
|
|
40
|
+
declare const AuthProvider: ({ children, supabase, profilesTable, }: AuthProviderProps) => React__default.JSX.Element;
|
|
36
41
|
declare const useAuth: () => AuthContextType;
|
|
37
42
|
declare const useSession: () => Session | null;
|
|
38
43
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devfellowship/components",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "DFL Design System — UI components, hooks, utils and providers",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -50,7 +50,8 @@
|
|
|
50
50
|
"test": "vitest run",
|
|
51
51
|
"prepublishOnly": "npm run build",
|
|
52
52
|
"storybook": "storybook dev -p 6006",
|
|
53
|
-
"build-storybook": "storybook build"
|
|
53
|
+
"build-storybook": "storybook build",
|
|
54
|
+
"lint:no-docs": "node scripts/check-no-storybook-docs.mjs"
|
|
54
55
|
},
|
|
55
56
|
"peerDependencies": {
|
|
56
57
|
"@supabase/supabase-js": ">=2.0.0",
|
|
@@ -67,12 +68,10 @@
|
|
|
67
68
|
}
|
|
68
69
|
},
|
|
69
70
|
"devDependencies": {
|
|
70
|
-
"@storybook/addon-a11y": "^
|
|
71
|
-
"@storybook/addon-
|
|
72
|
-
"@storybook/
|
|
73
|
-
"@storybook/
|
|
74
|
-
"@storybook/react": "^8.6.18",
|
|
75
|
-
"@storybook/react-vite": "^8.6.18",
|
|
71
|
+
"@storybook/addon-a11y": "^9.1.20",
|
|
72
|
+
"@storybook/addon-themes": "^9.1.20",
|
|
73
|
+
"@storybook/react": "^9.1.20",
|
|
74
|
+
"@storybook/react-vite": "^9.1.20",
|
|
76
75
|
"@supabase/supabase-js": "^2.49.4",
|
|
77
76
|
"@tailwindcss/vite": "^4.2.2",
|
|
78
77
|
"@testing-library/jest-dom": "^6.9.1",
|
|
@@ -86,7 +85,7 @@
|
|
|
86
85
|
"jsdom": "^26.1.0",
|
|
87
86
|
"react": "^18.3.0",
|
|
88
87
|
"react-dom": "^18.3.0",
|
|
89
|
-
"storybook": "^
|
|
88
|
+
"storybook": "^9.1.20",
|
|
90
89
|
"tailwindcss": "^4.2.2",
|
|
91
90
|
"tsup": "^8.5.1",
|
|
92
91
|
"typescript": "^5.9.3",
|