sevago-library 1.0.79 → 1.1.2
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/CHANGELOG.md +19 -0
- package/README.md +175 -221
- package/package.json +115 -109
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# sevago-library
|
|
2
|
+
|
|
3
|
+
## 1.1.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- update deploy.sh
|
|
8
|
+
|
|
9
|
+
## 1.1.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 9332de0: add readme and how to use packages
|
|
14
|
+
|
|
15
|
+
## 1.1.0
|
|
16
|
+
|
|
17
|
+
### Minor Changes
|
|
18
|
+
|
|
19
|
+
- e3c7ce0: add changeset in packages
|
package/README.md
CHANGED
|
@@ -1,221 +1,175 @@
|
|
|
1
|
-
# Sevago SSO Frontend Library
|
|
2
|
-
|
|
3
|
-
<div align="center">
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
[](https://www.npmjs.com/package/sevago-library)
|
|
8
|
-
[](https://www.npmjs.com/package/sevago-library)
|
|
8
|
+
[](https://opensource.org/licenses/MIT)
|
|
9
|
+
|
|
10
|
+
</div>
|
|
11
|
+
|
|
12
|
+
Sevago SSO Frontend Library provides reusable React components, shared constants, utilities, and TypeScript types used across Sevago frontend applications.
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
## Installation
|
|
17
|
+
|
|
18
|
+
Install the package in your project:
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
npm install sevago-library
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Install required peer dependencies:
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
npm install react react-dom @emotion/react @emotion/styled @mui/material @mui/system @reduxjs/toolkit react-redux react-router-dom redux-persist
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
## Usage
|
|
33
|
+
|
|
34
|
+
Import components, constants, utilities, and types directly from the package:
|
|
35
|
+
|
|
36
|
+
```tsx
|
|
37
|
+
import { AppGrid, MODE, timeUtils } from 'sevago-library';
|
|
38
|
+
import type { AppInfo } from 'sevago-library';
|
|
39
|
+
|
|
40
|
+
const theme = MODE.light;
|
|
41
|
+
const dateText = timeUtils.getDateTime(new Date());
|
|
42
|
+
|
|
43
|
+
function AppList({ apps }: { apps: AppInfo[] }) {
|
|
44
|
+
return (
|
|
45
|
+
<AppGrid
|
|
46
|
+
apps={apps}
|
|
47
|
+
columns={5}
|
|
48
|
+
rows={3}
|
|
49
|
+
onClickApp={(app) => window.open(app.path.production)}
|
|
50
|
+
/>
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
For applications that use the bundled provider/app shell:
|
|
56
|
+
|
|
57
|
+
```tsx
|
|
58
|
+
import React from 'react';
|
|
59
|
+
import { Provider } from 'react-redux';
|
|
60
|
+
import { PersistGate } from 'redux-persist/integration/react';
|
|
61
|
+
import { BrowserRouter } from 'react-router-dom';
|
|
62
|
+
import App from 'sevago-library';
|
|
63
|
+
|
|
64
|
+
function RootApp() {
|
|
65
|
+
return (
|
|
66
|
+
<Provider store={store}>
|
|
67
|
+
<PersistGate loading={null} persistor={persistor}>
|
|
68
|
+
<BrowserRouter>
|
|
69
|
+
<App />
|
|
70
|
+
</BrowserRouter>
|
|
71
|
+
</PersistGate>
|
|
72
|
+
</Provider>
|
|
73
|
+
);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export default RootApp;
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
---
|
|
80
|
+
|
|
81
|
+
## Documentation
|
|
82
|
+
|
|
83
|
+
Useful project references:
|
|
84
|
+
|
|
85
|
+
- [Repository](https://github.com/core-sevago/sevago-library)
|
|
86
|
+
- [npm package](https://www.npmjs.com/package/sevago-library)
|
|
87
|
+
- [Material Symbols](https://fonts.google.com/icons)
|
|
88
|
+
|
|
89
|
+
---
|
|
90
|
+
|
|
91
|
+
## Components
|
|
92
|
+
|
|
93
|
+
Common exports include:
|
|
94
|
+
|
|
95
|
+
- `AppGrid`
|
|
96
|
+
- `AppsSidebar`
|
|
97
|
+
- `SystemMonitorScreen`
|
|
98
|
+
- `SystemMonitorSidebarPart`
|
|
99
|
+
- `DefaultLayout`
|
|
100
|
+
- `LoadingComponent`
|
|
101
|
+
- `LogoComponent`
|
|
102
|
+
- `MotionBox`
|
|
103
|
+
- `NoteComponent`
|
|
104
|
+
- `PriceComponent`
|
|
105
|
+
- `ReviewComponent`
|
|
106
|
+
|
|
107
|
+
The library also exports shared elements, styles, constants, enums, interfaces, and utility functions.
|
|
108
|
+
|
|
109
|
+
---
|
|
110
|
+
|
|
111
|
+
## TypeScript
|
|
112
|
+
|
|
113
|
+
The package ships with generated TypeScript declarations from `dist`.
|
|
114
|
+
|
|
115
|
+
```tsx
|
|
116
|
+
import type { AppInfo, AppGridProps, Environment } from 'sevago-library';
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
---
|
|
120
|
+
|
|
121
|
+
## Questions
|
|
122
|
+
|
|
123
|
+
For issues and usage questions, use the project repository:
|
|
124
|
+
|
|
125
|
+
[https://github.com/core-sevago/sevago-library/issues](https://github.com/core-sevago/sevago-library/issues)
|
|
126
|
+
|
|
127
|
+
---
|
|
128
|
+
|
|
129
|
+
## Contributing
|
|
130
|
+
|
|
131
|
+
Create a changeset for every public change:
|
|
132
|
+
|
|
133
|
+
```bash
|
|
134
|
+
npm run changeset
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
Choose `patch`, `minor`, or `major`, then commit the generated file in `.changeset/`.
|
|
138
|
+
|
|
139
|
+
To publish a new version from a clean `master` branch:
|
|
140
|
+
|
|
141
|
+
```bash
|
|
142
|
+
bash deploy.sh
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
The deploy script applies Changesets, builds the library, commits release artifacts, publishes to npm, and pushes the release commit with tags.
|
|
146
|
+
|
|
147
|
+
---
|
|
148
|
+
|
|
149
|
+
## Changelog
|
|
150
|
+
|
|
151
|
+
The [changelog](https://github.com/core-sevago/sevago-library/blob/master/CHANGELOG.md) is generated by Changesets and updated for every release.
|
|
152
|
+
|
|
153
|
+
---
|
|
154
|
+
|
|
155
|
+
## Roadmap
|
|
156
|
+
|
|
157
|
+
Future changes should be tracked through GitHub issues and released with Changesets.
|
|
158
|
+
|
|
159
|
+
---
|
|
160
|
+
|
|
161
|
+
## License
|
|
162
|
+
|
|
163
|
+
This project is licensed under the [MIT license](https://opensource.org/licenses/MIT).
|
|
164
|
+
|
|
165
|
+
---
|
|
166
|
+
|
|
167
|
+
## Security
|
|
168
|
+
|
|
169
|
+
Do not publish credentials, tokens, private URLs, or environment files. Report security issues through the project maintainers.
|
|
170
|
+
|
|
171
|
+
---
|
|
172
|
+
|
|
173
|
+
## Keywords
|
|
174
|
+
|
|
175
|
+
`sso` `authentication` `react` `typescript` `sevago`
|
package/package.json
CHANGED
|
@@ -1,109 +1,115 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "sevago-library",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "Sevago SSO Frontend Library - A comprehensive SSO solution with React components",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"module": "dist/index.esm.js",
|
|
7
|
-
"types": "dist/index.d.ts",
|
|
8
|
-
"files": [
|
|
9
|
-
"dist",
|
|
10
|
-
"
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"build
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
"
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
"
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
"
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
"@
|
|
52
|
-
"@
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"react": "^
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
"
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
"@
|
|
81
|
-
"@
|
|
82
|
-
"@
|
|
83
|
-
"@
|
|
84
|
-
"@
|
|
85
|
-
"@
|
|
86
|
-
"@
|
|
87
|
-
"@
|
|
88
|
-
"@
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
"react-
|
|
101
|
-
"
|
|
102
|
-
"
|
|
103
|
-
"
|
|
104
|
-
"
|
|
105
|
-
"
|
|
106
|
-
"
|
|
107
|
-
"
|
|
108
|
-
|
|
109
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "sevago-library",
|
|
3
|
+
"version": "1.1.2",
|
|
4
|
+
"description": "Sevago SSO Frontend Library - A comprehensive SSO solution with React components",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"module": "dist/index.esm.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist",
|
|
10
|
+
"CHANGELOG.md",
|
|
11
|
+
"README.md"
|
|
12
|
+
],
|
|
13
|
+
"publishConfig": {
|
|
14
|
+
"access": "public"
|
|
15
|
+
},
|
|
16
|
+
"scripts": {
|
|
17
|
+
"build": "vite build --mode library",
|
|
18
|
+
"prepare": "npm run build",
|
|
19
|
+
"build:lib": "vite build --mode library",
|
|
20
|
+
"lint": "eslint .",
|
|
21
|
+
"preview": "vite preview",
|
|
22
|
+
"dev": "storybook dev -p 6006 --disable-telemetry",
|
|
23
|
+
"build-storybook": "storybook build -o docs && touch docs/.nojekyll",
|
|
24
|
+
"storybook:test": "test-storybook --url http://127.0.0.1:6006",
|
|
25
|
+
"storybook:test:ci": "start-server-and-test storybook http://127.0.0.1:6006 storybook:test",
|
|
26
|
+
"chromatic": "chromatic --project-token=$CHROMATIC_PROJECT_TOKEN --exit-zero-on-changes --only-changed",
|
|
27
|
+
"prepublishOnly": "npm run build:lib",
|
|
28
|
+
"format": "prettier --write src/**/*.{js,jsx,ts,tsx,json,css,md}",
|
|
29
|
+
"changeset": "changeset",
|
|
30
|
+
"version": "changeset version",
|
|
31
|
+
"release": "changeset publish"
|
|
32
|
+
},
|
|
33
|
+
"keywords": [
|
|
34
|
+
"sso",
|
|
35
|
+
"authentication",
|
|
36
|
+
"react",
|
|
37
|
+
"typescript",
|
|
38
|
+
"sevago"
|
|
39
|
+
],
|
|
40
|
+
"author": "Sevago Team",
|
|
41
|
+
"license": "MIT",
|
|
42
|
+
"repository": {
|
|
43
|
+
"type": "git",
|
|
44
|
+
"url": "git+https://github.com/core-sevago/sevago-library"
|
|
45
|
+
},
|
|
46
|
+
"bugs": {
|
|
47
|
+
"url": "https://github.com/core-sevago/sevago-library"
|
|
48
|
+
},
|
|
49
|
+
"homepage": "https://github.com/core-sevago/sevago-library",
|
|
50
|
+
"peerDependencies": {
|
|
51
|
+
"@emotion/react": ">=11",
|
|
52
|
+
"@emotion/styled": ">=11",
|
|
53
|
+
"@mui/material": ">=5",
|
|
54
|
+
"@mui/system": ">=5",
|
|
55
|
+
"@mui/x-date-pickers": "^8.2.0",
|
|
56
|
+
"@reduxjs/toolkit": "^2.9.2",
|
|
57
|
+
"@types/react-router-dom": "^5.3.3",
|
|
58
|
+
"axios": "^1.12.2",
|
|
59
|
+
"dayjs": "^1.11.18",
|
|
60
|
+
"formik": "^2.4.6",
|
|
61
|
+
"framer-motion": "^12.23.22",
|
|
62
|
+
"react": "^19.2.0",
|
|
63
|
+
"react-dom": "^19.2.0",
|
|
64
|
+
"react-number-format": "^5.4.3",
|
|
65
|
+
"react-redux": "^9.2.0",
|
|
66
|
+
"react-router-dom": "^7.9.5",
|
|
67
|
+
"redux-persist": "^6.0.0",
|
|
68
|
+
"socket.io-client": "^4.8.1",
|
|
69
|
+
"yup": "^1.7.1"
|
|
70
|
+
},
|
|
71
|
+
"dependencies": {
|
|
72
|
+
"@storybook/core-events": "^8.6.14",
|
|
73
|
+
"eslint-config-prettier": "^10.1.8",
|
|
74
|
+
"eslint-plugin-prettier": "^5.5.4",
|
|
75
|
+
"exceljs": "^4.4.0",
|
|
76
|
+
"file-saver": "^2.0.5",
|
|
77
|
+
"prettier": "^3.8.1"
|
|
78
|
+
},
|
|
79
|
+
"devDependencies": {
|
|
80
|
+
"@changesets/cli": "^2.31.0",
|
|
81
|
+
"@eslint/js": "^9.36.0",
|
|
82
|
+
"@mui/x-date-pickers": "^8.2.0",
|
|
83
|
+
"@storybook/addon-essentials": "^8.6.18",
|
|
84
|
+
"@storybook/addon-interactions": "^8.6.18",
|
|
85
|
+
"@storybook/addon-links": "^8.6.18",
|
|
86
|
+
"@storybook/react-vite": "^8.6.18",
|
|
87
|
+
"@storybook/test": "^8.6.18",
|
|
88
|
+
"@storybook/test-runner": "^0.22.0",
|
|
89
|
+
"@types/file-saver": "^2.0.7",
|
|
90
|
+
"@types/node": "^24.7.0",
|
|
91
|
+
"@types/react": "^19.2.2",
|
|
92
|
+
"@types/react-dom": "^19.2.2",
|
|
93
|
+
"@types/react-router-dom": "^5.3.3",
|
|
94
|
+
"@vitejs/plugin-react": "^5.0.4",
|
|
95
|
+
"axios": "^1.12.2",
|
|
96
|
+
"chromatic": "^11.29.0",
|
|
97
|
+
"dayjs": "^1.11.18",
|
|
98
|
+
"eslint": "^9.36.0",
|
|
99
|
+
"eslint-plugin-react-hooks": "^5.2.0",
|
|
100
|
+
"eslint-plugin-react-refresh": "^0.4.22",
|
|
101
|
+
"formik": "^2.4.6",
|
|
102
|
+
"framer-motion": "^12.23.22",
|
|
103
|
+
"globals": "^16.4.0",
|
|
104
|
+
"msw": "^2.11.1",
|
|
105
|
+
"msw-storybook-addon": "^2.0.4",
|
|
106
|
+
"react-number-format": "^5.4.3",
|
|
107
|
+
"socket.io-client": "^4.8.1",
|
|
108
|
+
"start-server-and-test": "^2.1.1",
|
|
109
|
+
"typescript": "~5.9.3",
|
|
110
|
+
"typescript-eslint": "^8.45.0",
|
|
111
|
+
"vite": "^6.4.1",
|
|
112
|
+
"vite-plugin-dts": "^4.5.4",
|
|
113
|
+
"yup": "^1.7.1"
|
|
114
|
+
}
|
|
115
|
+
}
|