@insforge/react 0.5.11 → 0.6.1

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/types.d.cts CHANGED
@@ -1,25 +1,9 @@
1
1
  import { ReactNode } from 'react';
2
- import { GetPublicAuthConfigResponse, VerificationMethodSchema, OAuthProvidersSchema } from '@insforge/shared-schemas';
2
+ import { GetPublicAuthConfigResponse, VerificationMethodSchema } from '@insforge/shared-schemas';
3
+ export { InsforgeUser, OAuthProvider } from '@insforge/shared';
3
4
 
4
- /**
5
- * Meta Types - Core types used across the package
6
- * Component-specific props are exported from their respective modules:
7
- * - Atom props: @insforge/react/atoms
8
- * - Form props: @insforge/react/forms
9
- * - Component props: @insforge/react/components
10
- */
11
- type OAuthProvider = OAuthProvidersSchema;
12
5
  type AuthConfig = GetPublicAuthConfigResponse;
13
6
  type EmailVerificationMethod = VerificationMethodSchema;
14
- /**
15
- * Insforge User type
16
- */
17
- interface InsforgeUser {
18
- id: string;
19
- email: string;
20
- name?: string;
21
- avatarUrl?: string;
22
- }
23
7
  /**
24
8
  * Configuration for an OAuth provider
25
9
  */
@@ -29,4 +13,4 @@ interface OAuthProviderConfig {
29
13
  className: string;
30
14
  }
31
15
 
32
- export type { AuthConfig, EmailVerificationMethod, InsforgeUser, OAuthProvider, OAuthProviderConfig };
16
+ export type { AuthConfig, EmailVerificationMethod, OAuthProviderConfig };
package/dist/types.d.ts CHANGED
@@ -1,25 +1,9 @@
1
1
  import { ReactNode } from 'react';
2
- import { GetPublicAuthConfigResponse, VerificationMethodSchema, OAuthProvidersSchema } from '@insforge/shared-schemas';
2
+ import { GetPublicAuthConfigResponse, VerificationMethodSchema } from '@insforge/shared-schemas';
3
+ export { InsforgeUser, OAuthProvider } from '@insforge/shared';
3
4
 
4
- /**
5
- * Meta Types - Core types used across the package
6
- * Component-specific props are exported from their respective modules:
7
- * - Atom props: @insforge/react/atoms
8
- * - Form props: @insforge/react/forms
9
- * - Component props: @insforge/react/components
10
- */
11
- type OAuthProvider = OAuthProvidersSchema;
12
5
  type AuthConfig = GetPublicAuthConfigResponse;
13
6
  type EmailVerificationMethod = VerificationMethodSchema;
14
- /**
15
- * Insforge User type
16
- */
17
- interface InsforgeUser {
18
- id: string;
19
- email: string;
20
- name?: string;
21
- avatarUrl?: string;
22
- }
23
7
  /**
24
8
  * Configuration for an OAuth provider
25
9
  */
@@ -29,4 +13,4 @@ interface OAuthProviderConfig {
29
13
  className: string;
30
14
  }
31
15
 
32
- export type { AuthConfig, EmailVerificationMethod, InsforgeUser, OAuthProvider, OAuthProviderConfig };
16
+ export type { AuthConfig, EmailVerificationMethod, OAuthProviderConfig };
package/package.json CHANGED
@@ -1,110 +1,98 @@
1
- {
2
- "name": "@insforge/react",
3
- "version": "0.5.11",
4
- "type": "module",
5
- "description": "Framework-agnostic React authentication UI components for Insforge - reusable across all frameworks",
6
- "main": "./dist/index.cjs",
7
- "module": "./dist/index.js",
8
- "types": "./dist/index.d.ts",
9
- "exports": {
10
- ".": {
11
- "types": "./dist/index.d.ts",
12
- "import": "./dist/index.js",
13
- "require": "./dist/index.cjs"
14
- },
15
- "./atoms": {
16
- "types": "./dist/atoms.d.ts",
17
- "import": "./dist/atoms.js",
18
- "require": "./dist/atoms.cjs"
19
- },
20
- "./forms": {
21
- "types": "./dist/forms.d.ts",
22
- "import": "./dist/forms.js",
23
- "require": "./dist/forms.cjs"
24
- },
25
- "./components": {
26
- "types": "./dist/components.d.ts",
27
- "import": "./dist/components.js",
28
- "require": "./dist/components.cjs"
29
- },
30
- "./hooks": {
31
- "types": "./dist/hooks.d.ts",
32
- "import": "./dist/hooks.js",
33
- "require": "./dist/hooks.cjs"
34
- },
35
- "./lib": {
36
- "types": "./dist/lib.d.ts",
37
- "import": "./dist/lib.js",
38
- "require": "./dist/lib.cjs"
39
- },
40
- "./types": {
41
- "types": "./dist/types.d.ts",
42
- "import": "./dist/types.js",
43
- "require": "./dist/types.cjs"
44
- },
45
- "./navigation": {
46
- "types": "./dist/navigation.d.ts",
47
- "import": "./dist/navigation.js",
48
- "require": "./dist/navigation.cjs"
49
- },
50
- "./provider": {
51
- "types": "./dist/provider.d.ts",
52
- "import": "./dist/provider.js",
53
- "require": "./dist/provider.cjs"
54
- },
55
- "./styles.css": "./dist/styles.css"
56
- },
57
- "files": [
58
- "dist",
59
- "README.md"
60
- ],
61
- "scripts": {
62
- "build": "tsup",
63
- "dev": "tsup --watch",
64
- "type-check": "tsc --noEmit",
65
- "lint": "eslint src --ext .ts,.tsx --max-warnings 0",
66
- "lint:fix": "eslint src --ext .ts,.tsx --fix",
67
- "format": "prettier --write \"src/**/*.{ts,tsx,css}\"",
68
- "format:check": "prettier --check \"src/**/*.{ts,tsx,css}\"",
69
- "clean": "rimraf dist"
70
- },
71
- "keywords": [
72
- "insforge",
73
- "react",
74
- "authentication",
75
- "auth",
76
- "ui",
77
- "components",
78
- "headless",
79
- "framework-agnostic"
80
- ],
81
- "author": "Insforge",
82
- "license": "MIT",
83
- "peerDependencies": {
84
- "react": "^19.0.0",
85
- "react-dom": "^19.0.0"
86
- },
87
- "dependencies": {
88
- "@insforge/sdk": "^0.0.58",
89
- "@insforge/shared-schemas": "^1.1.19",
90
- "lucide-react": "^0.552.0",
91
- "zod": "^4.1.12"
92
- },
93
- "devDependencies": {
94
- "@eslint/js": "^9.21.0",
95
- "@types/node": "^24.9.2",
96
- "@types/react": "^19.2.2",
97
- "@types/react-dom": "^19.2.2",
98
- "eslint": "^9.21.0",
99
- "eslint-config-prettier": "^10.0.2",
100
- "eslint-plugin-prettier": "^5.2.1",
101
- "eslint-plugin-react": "^7.37.5",
102
- "eslint-plugin-react-hooks": "^5.1.2",
103
- "globals": "^15.12.0",
104
- "prettier": "^3.4.2",
105
- "rimraf": "^6.1.0",
106
- "tsup": "^8.5.0",
107
- "typescript": "^5.9.3",
108
- "typescript-eslint": "^8.23.0"
109
- }
110
- }
1
+ {
2
+ "name": "@insforge/react",
3
+ "version": "0.6.1",
4
+ "type": "module",
5
+ "description": "Framework-agnostic React authentication UI components for Insforge - reusable across all frameworks",
6
+ "main": "./dist/index.cjs",
7
+ "module": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "import": "./dist/index.js",
13
+ "require": "./dist/index.cjs"
14
+ },
15
+ "./atoms": {
16
+ "types": "./dist/atoms.d.ts",
17
+ "import": "./dist/atoms.js",
18
+ "require": "./dist/atoms.cjs"
19
+ },
20
+ "./forms": {
21
+ "types": "./dist/forms.d.ts",
22
+ "import": "./dist/forms.js",
23
+ "require": "./dist/forms.cjs"
24
+ },
25
+ "./components": {
26
+ "types": "./dist/components.d.ts",
27
+ "import": "./dist/components.js",
28
+ "require": "./dist/components.cjs"
29
+ },
30
+ "./hooks": {
31
+ "types": "./dist/hooks.d.ts",
32
+ "import": "./dist/hooks.js",
33
+ "require": "./dist/hooks.cjs"
34
+ },
35
+ "./lib": {
36
+ "types": "./dist/lib.d.ts",
37
+ "import": "./dist/lib.js",
38
+ "require": "./dist/lib.cjs"
39
+ },
40
+ "./types": {
41
+ "types": "./dist/types.d.ts",
42
+ "import": "./dist/types.js",
43
+ "require": "./dist/types.cjs"
44
+ },
45
+ "./navigation": {
46
+ "types": "./dist/navigation.d.ts",
47
+ "import": "./dist/navigation.js",
48
+ "require": "./dist/navigation.cjs"
49
+ },
50
+ "./provider": {
51
+ "types": "./dist/provider.d.ts",
52
+ "import": "./dist/provider.js",
53
+ "require": "./dist/provider.cjs"
54
+ },
55
+ "./styles.css": "./dist/styles.css"
56
+ },
57
+ "files": [
58
+ "dist",
59
+ "README.md"
60
+ ],
61
+ "scripts": {
62
+ "build": "tsup",
63
+ "dev": "tsup --watch",
64
+ "type-check": "tsc --noEmit",
65
+ "lint": "eslint src --ext .ts,.tsx --max-warnings 0",
66
+ "lint:fix": "eslint src --ext .ts,.tsx --fix",
67
+ "format": "prettier --write \"src/**/*.{ts,tsx,css}\"",
68
+ "format:check": "prettier --check \"src/**/*.{ts,tsx,css}\"",
69
+ "clean": "rimraf dist"
70
+ },
71
+ "keywords": [
72
+ "insforge",
73
+ "react",
74
+ "authentication",
75
+ "auth",
76
+ "ui",
77
+ "components",
78
+ "headless",
79
+ "framework-agnostic"
80
+ ],
81
+ "author": "Insforge",
82
+ "license": "MIT",
83
+ "peerDependencies": {
84
+ "react": "^19.0.0",
85
+ "react-dom": "^19.0.0"
86
+ },
87
+ "dependencies": {
88
+ "@insforge/sdk": "^0.0.58",
89
+ "@insforge/shared": "^0.1.0",
90
+ "@insforge/shared-schemas": "^1.1.19",
91
+ "lucide-react": "^0.552.0",
92
+ "zod": "^4.1.12"
93
+ },
94
+ "devDependencies": {
95
+ "@types/react": "^19.2.2",
96
+ "@types/react-dom": "^19.2.2"
97
+ }
98
+ }