@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 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
- - [Tag your last commit](https://semver.org/) : `git tag <tag>` (example: `v0.6.0`)
38
- - Push tag : `git push origin <tag>`
39
- - Checkout the tag in a fresh repo copy : `cd $(mktemp -d) && git clone https://github.com/gridsuite/commons-ui.git` then `cd commons-ui && git checkout <tag>`
40
- - [Test your package](https://docs.npmjs.com/creating-and-publishing-scoped-public-packages#testing-your-package): `npm install`
41
- - [Login on the command line to the npm registry](https://docs.npmjs.com/logging-in-to-an-npm-enterprise-registry-from-the-command-line): `npm login`
42
- - [Publish the package](https://docs.npmjs.com/creating-and-publishing-scoped-public-packages#publishing-scoped-public-packages): `npm publish`
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, useMemo, useCallback } from "react";
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
- }, [open, additionalModulesPromise, currentApp]);
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();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gridsuite/commons-ui",
3
- "version": "0.61.1",
3
+ "version": "0.61.3",
4
4
  "description": "common react components for gridsuite applications",
5
5
  "engines": {
6
6
  "npm": ">=9",