@taruvi/navkit 0.0.2 → 0.0.4
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/package.json +10 -12
- package/src/App.tsx +1 -1
- package/src/NavkitContext.tsx +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taruvi/navkit",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"main": "src/App.tsx",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -10,18 +10,16 @@
|
|
|
10
10
|
"preview": "vite preview"
|
|
11
11
|
},
|
|
12
12
|
"peerDependencies": {
|
|
13
|
-
"@emotion/react": "
|
|
14
|
-
"@emotion/styled": "
|
|
15
|
-
"@fortawesome/fontawesome-svg-core": "
|
|
16
|
-
"@fortawesome/free-regular-svg-icons": "
|
|
17
|
-
"@fortawesome/free-solid-svg-icons": "
|
|
18
|
-
"@fortawesome/react-fontawesome": "
|
|
19
|
-
"@taruvi/sdk": "
|
|
13
|
+
"@emotion/react": ">=11 <12",
|
|
14
|
+
"@emotion/styled": ">=11 <12",
|
|
15
|
+
"@fortawesome/fontawesome-svg-core": ">=6 <7",
|
|
16
|
+
"@fortawesome/free-regular-svg-icons": ">=6 <7",
|
|
17
|
+
"@fortawesome/free-solid-svg-icons": ">=6 <7",
|
|
18
|
+
"@fortawesome/react-fontawesome": ">=0.2 <1",
|
|
19
|
+
"@taruvi/sdk": ">=1 <2",
|
|
20
|
+
"react": ">=18 <20",
|
|
20
21
|
"@mui/material": ">=5 <8"
|
|
21
22
|
},
|
|
22
|
-
"dependencies": {
|
|
23
|
-
"react": "^19.1.1"
|
|
24
|
-
},
|
|
25
23
|
"devDependencies": {
|
|
26
24
|
"@eslint/js": "^9.36.0",
|
|
27
25
|
"@types/node": "^24.6.0",
|
|
@@ -36,4 +34,4 @@
|
|
|
36
34
|
"typescript-eslint": "^8.45.0",
|
|
37
35
|
"vite": "^7.1.7"
|
|
38
36
|
}
|
|
39
|
-
}
|
|
37
|
+
}
|
package/src/App.tsx
CHANGED
|
@@ -88,7 +88,7 @@ const NavkitContent = () => {
|
|
|
88
88
|
</IconButton>
|
|
89
89
|
</Box>
|
|
90
90
|
<MattermostChat
|
|
91
|
-
jwtToken={
|
|
91
|
+
jwtToken={jwtToken}
|
|
92
92
|
mattermostUrl={siteSettings.mattermostUrl}
|
|
93
93
|
width="100%"
|
|
94
94
|
height="100%"
|
package/src/NavkitContext.tsx
CHANGED
|
@@ -53,7 +53,7 @@ export const NavkitProvider = ({ children, client }: NavkitProviderProps) => {
|
|
|
53
53
|
|
|
54
54
|
// Get JWT token if authenticated from sdk
|
|
55
55
|
if (authenticated) {
|
|
56
|
-
const token =
|
|
56
|
+
const token = client.tokenClient.getToken() || ''
|
|
57
57
|
setJwtToken(token)
|
|
58
58
|
}
|
|
59
59
|
}
|
|
@@ -93,7 +93,7 @@ export const NavkitProvider = ({ children, client }: NavkitProviderProps) => {
|
|
|
93
93
|
setUserData(userDataResponse || null)
|
|
94
94
|
|
|
95
95
|
// Fetch user apps using username from userData
|
|
96
|
-
if (userDataResponse?.username) {
|
|
96
|
+
if (userDataResponse?.data?.username) {
|
|
97
97
|
const appsResponse = await user.current.getUserApps(userDataResponse.username)
|
|
98
98
|
// Transform API response to match AppData interface
|
|
99
99
|
const transformedApps: AppData[] = (appsResponse || []).map((app: any) => ({
|