@insforge/react 0.6.0 → 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/atoms.cjs +14 -17
- package/dist/atoms.cjs.map +1 -1
- package/dist/atoms.d.cts +1 -0
- package/dist/atoms.d.ts +1 -0
- package/dist/atoms.js +13 -16
- package/dist/atoms.js.map +1 -1
- package/dist/components.cjs +23 -26
- package/dist/components.cjs.map +1 -1
- package/dist/components.d.cts +2 -1
- package/dist/components.d.ts +2 -1
- package/dist/components.js +22 -25
- package/dist/components.js.map +1 -1
- package/dist/forms.cjs +14 -17
- package/dist/forms.cjs.map +1 -1
- package/dist/forms.d.cts +1 -0
- package/dist/forms.d.ts +1 -0
- package/dist/forms.js +13 -16
- package/dist/forms.js.map +1 -1
- package/dist/hooks.cjs +15 -18
- package/dist/hooks.cjs.map +1 -1
- package/dist/hooks.d.cts +4 -5
- package/dist/hooks.d.ts +4 -5
- package/dist/hooks.js +14 -17
- package/dist/hooks.js.map +1 -1
- package/dist/index.cjs +40 -46
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -59
- package/dist/index.d.ts +7 -59
- package/dist/index.js +38 -44
- package/dist/index.js.map +1 -1
- package/dist/types.d.cts +3 -19
- package/dist/types.d.ts +3 -19
- package/package.json +98 -110
package/dist/types.d.cts
CHANGED
|
@@ -1,25 +1,9 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { GetPublicAuthConfigResponse, VerificationMethodSchema
|
|
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,
|
|
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
|
|
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,
|
|
16
|
+
export type { AuthConfig, EmailVerificationMethod, OAuthProviderConfig };
|
package/package.json
CHANGED
|
@@ -1,110 +1,98 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@insforge/react",
|
|
3
|
-
"version": "0.6.
|
|
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
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
"@types/
|
|
96
|
-
"@types/react": "^19.2.2"
|
|
97
|
-
|
|
98
|
-
|
|
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
|
+
}
|