@devfellowship/components 1.5.0 → 3.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.
@@ -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) => react_jsx_runtime.JSX.Element;
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) => react_jsx_runtime.JSX.Element;
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": "1.5.0",
3
+ "version": "3.0.0",
4
4
  "description": "DFL Design System — UI components, hooks, utils and providers",
5
5
  "type": "module",
6
6
  "sideEffects": [
@@ -43,6 +43,7 @@
43
43
  ],
44
44
  "scripts": {
45
45
  "build": "tsup && tsup --config tsup.cli.config.ts",
46
+ "release": "npm run build && changeset publish",
46
47
  "build:lib": "tsup",
47
48
  "build:cli": "tsup --config tsup.cli.config.ts",
48
49
  "build:watch": "tsup --watch",
@@ -50,7 +51,8 @@
50
51
  "test": "vitest run",
51
52
  "prepublishOnly": "npm run build",
52
53
  "storybook": "storybook dev -p 6006",
53
- "build-storybook": "storybook build"
54
+ "build-storybook": "storybook build",
55
+ "lint:no-docs": "node scripts/check-no-storybook-docs.mjs"
54
56
  },
55
57
  "peerDependencies": {
56
58
  "@supabase/supabase-js": ">=2.0.0",
@@ -67,26 +69,24 @@
67
69
  }
68
70
  },
69
71
  "devDependencies": {
70
- "@storybook/addon-a11y": "^8.6.18",
71
- "@storybook/addon-essentials": "^8.6.14",
72
- "@storybook/addon-themes": "^8.6.18",
73
- "@storybook/blocks": "^8.6.14",
74
- "@storybook/react": "^8.6.18",
75
- "@storybook/react-vite": "^8.6.18",
72
+ "@changesets/changelog-github": "^0.7.0",
73
+ "@changesets/cli": "^2.31.0",
74
+ "@storybook/addon-a11y": "^9.1.20",
75
+ "@storybook/addon-themes": "^9.1.20",
76
+ "@storybook/react": "^9.1.20",
77
+ "@storybook/react-vite": "^9.1.20",
76
78
  "@supabase/supabase-js": "^2.49.4",
77
79
  "@tailwindcss/vite": "^4.2.2",
78
80
  "@testing-library/jest-dom": "^6.9.1",
79
81
  "@testing-library/react": "^16.3.2",
80
- "@types/fs-extra": "^11.0.4",
81
82
  "@types/node": "^20.0.0",
82
- "@types/prompts": "^2.4.9",
83
83
  "@types/react": "^18.3.28",
84
84
  "@types/react-dom": "^18.3.7",
85
85
  "@vitejs/plugin-react": "^4.7.0",
86
86
  "jsdom": "^26.1.0",
87
87
  "react": "^18.3.0",
88
88
  "react-dom": "^18.3.0",
89
- "storybook": "^8.6.18",
89
+ "storybook": "^9.1.20",
90
90
  "tailwindcss": "^4.2.2",
91
91
  "tsup": "^8.5.1",
92
92
  "typescript": "^5.9.3",
@@ -129,16 +129,11 @@
129
129
  "clsx": "^2.1.1",
130
130
  "cmdk": "^1.1.1",
131
131
  "commander": "^12.0.0",
132
- "cosmiconfig": "^9.0.0",
133
132
  "date-fns": "^3.6.0",
134
133
  "embla-carousel-react": "^8.6.0",
135
- "fs-extra": "^11.2.0",
136
134
  "input-otp": "^1.4.2",
137
135
  "lucide-react": "^0.462.0",
138
136
  "next-themes": "^0.4.6",
139
- "node-fetch": "^3.3.2",
140
- "ora": "^8.0.1",
141
- "prompts": "^2.4.2",
142
137
  "react-day-picker": "^8.10.1",
143
138
  "react-hook-form": "^7.72.1",
144
139
  "react-resizable-panels": "^2.1.9",