@gridsuite/commons-ui 0.61.1 → 0.61.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 +6 -6
- package/dist/components/TopBar/AboutDialog.js +16 -12
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -34,12 +34,12 @@ you need to follow the steps below:
|
|
|
34
34
|
- Build it: `npm install`
|
|
35
35
|
- Commit the package.json and package-lock.json files, push to a branch, make a PR, have it reviewed and merged to main.
|
|
36
36
|
- Pull and checkout main on your last commit.
|
|
37
|
-
- [
|
|
38
|
-
-
|
|
39
|
-
-
|
|
40
|
-
-
|
|
41
|
-
-
|
|
42
|
-
-
|
|
37
|
+
- [Make a release](https://github.com/gridsuite/commons-ui/releases/new) on GitHub by creating a new tag on the last commit. On the release creation page:
|
|
38
|
+
- In "Choose a tag": type the tag you want to create (ex.: v0.6.0) and select "create new tag"
|
|
39
|
+
- In "Target": click on "recent commit" tab and select your release commit
|
|
40
|
+
- Click on "Generate release note"
|
|
41
|
+
- Click on "Publish release"
|
|
42
|
+
- It will trigger a job that will publish the release on NPM
|
|
43
43
|
|
|
44
44
|
#### License Headers and dependencies checking
|
|
45
45
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { useState, useEffect,
|
|
2
|
+
import { useState, useEffect, useCallback } from "react";
|
|
3
3
|
import { useTheme, Dialog, useMediaQuery, DialogTitle, Collapse, Alert, Box, Fade, CircularProgress, Typography, DialogContent, Accordion, AccordionSummary, AccordionDetails, Grid, DialogActions, Button, Tooltip, Zoom, Stack, tooltipClasses } from "@mui/material";
|
|
4
4
|
import { LoadingButton } from "@mui/lab";
|
|
5
5
|
import { Refresh, ExpandMore, Gavel, Apps, WidgetsOutlined, DnsOutlined, QuestionMark } from "@mui/icons-material";
|
|
@@ -115,18 +115,15 @@ const AboutDialog = ({
|
|
|
115
115
|
}, [open, globalVersionPromise]);
|
|
116
116
|
const [loadingAdditionalModules, setLoadingAdditionalModules] = useState(false);
|
|
117
117
|
const [modules, setModules] = useState(null);
|
|
118
|
-
const currentApp = useMemo(
|
|
119
|
-
() => ({
|
|
120
|
-
name: !!logo && appName || `Grid${appName}`,
|
|
121
|
-
type: "app",
|
|
122
|
-
version: appVersion,
|
|
123
|
-
gitTag: appGitTag,
|
|
124
|
-
license: appLicense
|
|
125
|
-
}),
|
|
126
|
-
[logo, appName, appVersion, appGitTag, appLicense]
|
|
127
|
-
);
|
|
128
118
|
useEffect(() => {
|
|
129
119
|
if (open) {
|
|
120
|
+
const currentApp = {
|
|
121
|
+
name: `Grid${appName}`,
|
|
122
|
+
type: "app",
|
|
123
|
+
version: appVersion,
|
|
124
|
+
gitTag: appGitTag,
|
|
125
|
+
license: appLicense
|
|
126
|
+
};
|
|
130
127
|
(additionalModulesPromise ? Promise.resolve(setLoadingAdditionalModules(true)).then(
|
|
131
128
|
() => additionalModulesPromise()
|
|
132
129
|
) : Promise.reject(new Error("no getter"))).then(
|
|
@@ -136,7 +133,14 @@ const AboutDialog = ({
|
|
|
136
133
|
setModules([currentApp, ...values]);
|
|
137
134
|
}).finally(() => setLoadingAdditionalModules(false));
|
|
138
135
|
}
|
|
139
|
-
}, [
|
|
136
|
+
}, [
|
|
137
|
+
open,
|
|
138
|
+
additionalModulesPromise,
|
|
139
|
+
appName,
|
|
140
|
+
appVersion,
|
|
141
|
+
appGitTag,
|
|
142
|
+
appLicense
|
|
143
|
+
]);
|
|
140
144
|
const handleClose = useCallback(() => {
|
|
141
145
|
if (onClose) {
|
|
142
146
|
onClose();
|