@famgia/omnify-react-sso 2.2.1 → 2.2.3
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/README.md +404 -113
- package/dist/@omnify-base/schemas/Branch.ts +12 -12
- package/dist/@omnify-base/schemas/BranchCache.ts +131 -0
- package/dist/@omnify-base/schemas/OrganizationCache.ts +117 -0
- package/dist/@omnify-base/schemas/Permission.ts +10 -10
- package/dist/@omnify-base/schemas/Role.ts +19 -12
- package/dist/@omnify-base/schemas/RolePermission.ts +6 -6
- package/dist/@omnify-base/schemas/Team.ts +6 -6
- package/dist/@omnify-base/schemas/TeamCache.ts +110 -0
- package/dist/@omnify-base/schemas/TeamPermission.ts +6 -6
- package/dist/@omnify-base/schemas/User.ts +13 -13
- package/dist/@omnify-base/schemas/UserCache.ts +142 -0
- package/dist/index.cjs +1846 -427
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +623 -14
- package/dist/index.d.ts +623 -14
- package/dist/index.js +1790 -400
- package/dist/index.js.map +1 -1
- package/dist/schemas/index.cjs +245 -167
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.d.cts +67 -28
- package/dist/schemas/index.d.ts +67 -28
- package/dist/schemas/index.js +217 -146
- package/dist/schemas/index.js.map +1 -1
- package/dist/testing/index.d.cts +1 -1
- package/dist/testing/index.d.ts +1 -1
- package/dist/{types-BCBSfJJr.d.cts → types-bD5deLxs.d.cts} +102 -1
- package/dist/{types-BCBSfJJr.d.ts → types-bD5deLxs.d.ts} +102 -1
- package/package.json +121 -106
- package/scripts/build-schemas.ts +1 -1
package/package.json
CHANGED
|
@@ -1,113 +1,128 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
},
|
|
20
|
-
"./schemas": {
|
|
21
|
-
"import": {
|
|
22
|
-
"types": "./dist/schemas/index.d.ts",
|
|
23
|
-
"default": "./dist/schemas/index.js"
|
|
24
|
-
},
|
|
25
|
-
"require": {
|
|
26
|
-
"types": "./dist/schemas/index.d.cts",
|
|
27
|
-
"default": "./dist/schemas/index.cjs"
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
"./schemas/*": {
|
|
31
|
-
"import": {
|
|
32
|
-
"types": "./dist/schemas/*.d.ts",
|
|
33
|
-
"default": "./dist/schemas/*.js"
|
|
34
|
-
},
|
|
35
|
-
"require": {
|
|
36
|
-
"types": "./dist/schemas/*.d.cts",
|
|
37
|
-
"default": "./dist/schemas/*.cjs"
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
"./testing": {
|
|
41
|
-
"import": {
|
|
42
|
-
"types": "./dist/testing/index.d.ts",
|
|
43
|
-
"default": "./dist/testing/index.js"
|
|
44
|
-
},
|
|
45
|
-
"require": {
|
|
46
|
-
"types": "./dist/testing/index.d.cts",
|
|
47
|
-
"default": "./dist/testing/index.cjs"
|
|
48
|
-
}
|
|
49
|
-
},
|
|
50
|
-
"./@omnify-base/*": {
|
|
51
|
-
"types": "./dist/@omnify-base/*"
|
|
52
|
-
}
|
|
2
|
+
"name": "@famgia/omnify-react-sso",
|
|
3
|
+
"version": "2.2.3",
|
|
4
|
+
"description": "SSO (Single Sign-On) schemas, types, and utilities for Omnify",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.cjs",
|
|
7
|
+
"module": "./dist/index.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"import": {
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"default": "./dist/index.js"
|
|
14
|
+
},
|
|
15
|
+
"require": {
|
|
16
|
+
"types": "./dist/index.d.cts",
|
|
17
|
+
"default": "./dist/index.cjs"
|
|
18
|
+
}
|
|
53
19
|
},
|
|
54
|
-
"
|
|
55
|
-
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
|
|
63
|
-
"build": "pnpm build:schemas && pnpm build:lib && pnpm build:copy-base",
|
|
64
|
-
"clean": "rm -rf dist src/schemas schemas",
|
|
65
|
-
"typecheck": "tsc --noEmit",
|
|
66
|
-
"test": "vitest run",
|
|
67
|
-
"test:watch": "vitest",
|
|
68
|
-
"postinstall": "node scripts/postinstall.cjs"
|
|
20
|
+
"./schemas": {
|
|
21
|
+
"import": {
|
|
22
|
+
"types": "./dist/schemas/index.d.ts",
|
|
23
|
+
"default": "./dist/schemas/index.js"
|
|
24
|
+
},
|
|
25
|
+
"require": {
|
|
26
|
+
"types": "./dist/schemas/index.d.cts",
|
|
27
|
+
"default": "./dist/schemas/index.cjs"
|
|
28
|
+
}
|
|
69
29
|
},
|
|
70
|
-
"
|
|
71
|
-
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
|
|
79
|
-
],
|
|
80
|
-
"author": "Famgia",
|
|
81
|
-
"license": "MIT",
|
|
82
|
-
"repository": {
|
|
83
|
-
"type": "git",
|
|
84
|
-
"url": "https://github.com/ecsol/omnify-ts.git",
|
|
85
|
-
"directory": "packages/omnify-client-react-sso"
|
|
30
|
+
"./schemas/*": {
|
|
31
|
+
"import": {
|
|
32
|
+
"types": "./dist/schemas/*.d.ts",
|
|
33
|
+
"default": "./dist/schemas/*.js"
|
|
34
|
+
},
|
|
35
|
+
"require": {
|
|
36
|
+
"types": "./dist/schemas/*.d.cts",
|
|
37
|
+
"default": "./dist/schemas/*.cjs"
|
|
38
|
+
}
|
|
86
39
|
},
|
|
87
|
-
"
|
|
88
|
-
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
|
|
92
|
-
|
|
40
|
+
"./testing": {
|
|
41
|
+
"import": {
|
|
42
|
+
"types": "./dist/testing/index.d.ts",
|
|
43
|
+
"default": "./dist/testing/index.js"
|
|
44
|
+
},
|
|
45
|
+
"require": {
|
|
46
|
+
"types": "./dist/testing/index.d.cts",
|
|
47
|
+
"default": "./dist/testing/index.cjs"
|
|
48
|
+
}
|
|
93
49
|
},
|
|
94
|
-
"
|
|
95
|
-
|
|
96
|
-
|
|
50
|
+
"./@omnify-base/*": {
|
|
51
|
+
"types": "./dist/@omnify-base/*"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"files": [
|
|
55
|
+
"dist",
|
|
56
|
+
"scripts",
|
|
57
|
+
"README.md"
|
|
58
|
+
],
|
|
59
|
+
"keywords": [
|
|
60
|
+
"omnify",
|
|
61
|
+
"sso",
|
|
62
|
+
"typescript",
|
|
63
|
+
"zod",
|
|
64
|
+
"user",
|
|
65
|
+
"role",
|
|
66
|
+
"permission",
|
|
67
|
+
"team"
|
|
68
|
+
],
|
|
69
|
+
"author": "Famgia",
|
|
70
|
+
"license": "MIT",
|
|
71
|
+
"repository": {
|
|
72
|
+
"type": "git",
|
|
73
|
+
"url": "https://github.com/ecsol/omnify-ts.git",
|
|
74
|
+
"directory": "packages/omnify-client-react-sso"
|
|
75
|
+
},
|
|
76
|
+
"peerDependencies": {
|
|
77
|
+
"@ant-design/icons": "^5.0.0 || ^6.0.0",
|
|
78
|
+
"@tanstack/react-query": "^5.0.0",
|
|
79
|
+
"antd": "^5.0.0 || ^6.0.0",
|
|
80
|
+
"i18next": "^24.0.0 || ^25.0.0",
|
|
81
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
82
|
+
"react-dom": "^18.0.0 || ^19.0.0",
|
|
83
|
+
"react-i18next": "^15.0.0 || ^16.0.0",
|
|
84
|
+
"zod": "^3.25.0 || ^4.0.0"
|
|
85
|
+
},
|
|
86
|
+
"peerDependenciesMeta": {
|
|
87
|
+
"i18next": {
|
|
88
|
+
"optional": true
|
|
97
89
|
},
|
|
98
|
-
"
|
|
99
|
-
|
|
100
|
-
"@testing-library/react": "^16.0.0",
|
|
101
|
-
"@types/react": "^19.0.0",
|
|
102
|
-
"@types/react-dom": "^19.0.0",
|
|
103
|
-
"antd": "^6.0.0",
|
|
104
|
-
"happy-dom": "^17.0.0",
|
|
105
|
-
"react": "^19.0.0",
|
|
106
|
-
"react-dom": "^19.0.0",
|
|
107
|
-
"tsup": "^8.5.1",
|
|
108
|
-
"tsx": "^4.21.0",
|
|
109
|
-
"typescript": "^5.8.3",
|
|
110
|
-
"vitest": "^3.2.4",
|
|
111
|
-
"zod": "^4.3.5"
|
|
90
|
+
"react-i18next": {
|
|
91
|
+
"optional": true
|
|
112
92
|
}
|
|
113
|
-
}
|
|
93
|
+
},
|
|
94
|
+
"dependencies": {
|
|
95
|
+
"@famgia/omnify": "^2.0.17",
|
|
96
|
+
"@famgia/omnify-typescript": "^2.0.17",
|
|
97
|
+
"i18next-browser-languagedetector": "^8.2.0"
|
|
98
|
+
},
|
|
99
|
+
"devDependencies": {
|
|
100
|
+
"@ant-design/icons": "^6.0.0",
|
|
101
|
+
"@tanstack/react-query": "^5.72.0",
|
|
102
|
+
"@testing-library/react": "^16.0.0",
|
|
103
|
+
"@types/react": "^19.0.0",
|
|
104
|
+
"@types/react-dom": "^19.0.0",
|
|
105
|
+
"antd": "^6.0.0",
|
|
106
|
+
"happy-dom": "^17.0.0",
|
|
107
|
+
"i18next": "^24.0.0",
|
|
108
|
+
"react": "^19.0.0",
|
|
109
|
+
"react-dom": "^19.0.0",
|
|
110
|
+
"react-i18next": "^15.0.0",
|
|
111
|
+
"tsup": "^8.5.1",
|
|
112
|
+
"tsx": "^4.21.0",
|
|
113
|
+
"typescript": "^5.8.3",
|
|
114
|
+
"vitest": "^3.2.4",
|
|
115
|
+
"zod": "^4.3.5"
|
|
116
|
+
},
|
|
117
|
+
"scripts": {
|
|
118
|
+
"build:schemas": "tsx scripts/build-schemas.ts",
|
|
119
|
+
"build:lib": "tsup",
|
|
120
|
+
"build:copy-base": "cp -r node_modules/@omnify-base dist/",
|
|
121
|
+
"build": "pnpm build:schemas && pnpm build:lib && pnpm build:copy-base",
|
|
122
|
+
"clean": "rm -rf dist src/schemas schemas",
|
|
123
|
+
"typecheck": "tsc --noEmit",
|
|
124
|
+
"test": "vitest run",
|
|
125
|
+
"test:watch": "vitest",
|
|
126
|
+
"postinstall": "node scripts/postinstall.cjs"
|
|
127
|
+
}
|
|
128
|
+
}
|
package/scripts/build-schemas.ts
CHANGED
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
* Note: schemas/ folder is gitignored - it's refreshed on each build
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import { cpSync, existsSync, mkdirSync, rmSync, readdirSync } from 'fs';
|
|
16
15
|
import { execSync } from 'child_process';
|
|
16
|
+
import { cpSync, existsSync, mkdirSync, rmSync, readdirSync } from 'fs';
|
|
17
17
|
import { resolve, dirname } from 'path';
|
|
18
18
|
import { fileURLToPath } from 'url';
|
|
19
19
|
|