@pplancq/react-template 2.6.3 → 2.6.5

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 CHANGED
@@ -1,3 +1,28 @@
1
+ ## @pplancq/react-template [2.6.5](https://github.com/pplancq/dev-tools/compare/@pplancq/react-template@2.6.4...@pplancq/react-template@2.6.5) (2025-07-21)
2
+
3
+ ### Bug Fixes
4
+
5
+ * **deps:** update dependency react-router to ^7.7.0 ([b7ef3f7](https://github.com/pplancq/dev-tools/commit/b7ef3f7a6f1aab82c192999c07f9162e3060e328))
6
+ * **deps:** update react-query mono repo to ^5.83.0 ([5c85241](https://github.com/pplancq/dev-tools/commit/5c85241e882b837ae89f578b39d4b8dc4e0cd524))
7
+
8
+
9
+ ### Dependencies
10
+
11
+ * **@pplancq/eslint-config:** upgraded to 5.0.1
12
+
13
+ ## @pplancq/react-template [2.6.4](https://github.com/pplancq/dev-tools/compare/@pplancq/react-template@2.6.3...@pplancq/react-template@2.6.4) (2025-07-14)
14
+
15
+ ### Bug Fixes
16
+
17
+ * **react-template:** update conditional rendering syntax in components ([8988b2d](https://github.com/pplancq/dev-tools/commit/8988b2df5b9c828157aa151380d562491610945b))
18
+ * **deps:** update dependency react-hook-form to ^7.60.0 ([047ba97](https://github.com/pplancq/dev-tools/commit/047ba97234e79e90eb0de5a1d1f7ecdf2a555fa0))
19
+ * **deps:** update react-query mono repo to ^5.82.0 ([e383b4e](https://github.com/pplancq/dev-tools/commit/e383b4e3737e2b4db9f1b600497b7410f0863aab))
20
+
21
+
22
+ ### Dependencies
23
+
24
+ * **@pplancq/eslint-config:** upgraded to 5.0.0
25
+
1
26
  ## @pplancq/react-template [2.6.3](https://github.com/pplancq/dev-tools/compare/@pplancq/react-template@2.6.2...@pplancq/react-template@2.6.3) (2025-07-07)
2
27
 
3
28
  ### Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pplancq/react-template",
3
- "version": "2.6.3",
3
+ "version": "2.6.5",
4
4
  "license": "MIT",
5
5
  "description": "react template",
6
6
  "author": "pplancq <paul.plancq@outlook.fr>",
@@ -46,42 +46,42 @@
46
46
  ],
47
47
  "dependencies": {
48
48
  "@hookform/resolvers": "^5.1.1",
49
- "@tanstack/react-query": "^5.81.5",
50
- "@tanstack/react-query-devtools": "^5.81.5",
49
+ "@tanstack/react-query": "^5.83.0",
50
+ "@tanstack/react-query-devtools": "^5.83.0",
51
51
  "react": "^19.1.0",
52
52
  "react-dom": "^19.1.0",
53
- "react-hook-form": "^7.59.0",
54
- "react-router": "^7.6.3",
53
+ "react-hook-form": "^7.60.0",
54
+ "react-router": "^7.7.0",
55
55
  "yup": "^1.6.1"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@bdellegrazie/playwright-sonar-reporter": "^0.4.0",
59
59
  "@commitlint/cli": "^19.8.1",
60
- "@playwright/test": "^1.53.2",
60
+ "@playwright/test": "^1.54.1",
61
61
  "@pplancq/commitlint-config": "*",
62
62
  "@pplancq/eslint-config": "*",
63
63
  "@pplancq/postcss-config": "*",
64
64
  "@pplancq/prettier-config": "*",
65
65
  "@pplancq/stylelint-config": "*",
66
- "@rsbuild/core": "^1.4.3",
66
+ "@rsbuild/core": "^1.4.7",
67
67
  "@rsbuild/plugin-eslint": "^1.1.1",
68
- "@rsbuild/plugin-react": "^1.3.3",
69
- "@rsbuild/plugin-sass": "^1.3.2",
68
+ "@rsbuild/plugin-react": "^1.3.4",
69
+ "@rsbuild/plugin-sass": "^1.3.3",
70
70
  "@testing-library/jest-dom": "^6.6.3",
71
71
  "@testing-library/react": "^16.3.0",
72
72
  "@testing-library/user-event": "^14.6.1",
73
73
  "@types/react": "^19.1.8",
74
74
  "@types/react-dom": "^19.1.6",
75
- "@vitejs/plugin-react-swc": "^3.10.2",
75
+ "@vitejs/plugin-react-swc": "^3.11.0",
76
76
  "@vitest/coverage-v8": "^3.2.4",
77
77
  "concurrently": "^9.2.0",
78
- "eslint": "^9.30.1",
78
+ "eslint": "^9.31.0",
79
79
  "eslint-plugin-prettier": "^5.5.1",
80
80
  "husky": "^9.1.7",
81
81
  "jsdom": "^26.1.0",
82
82
  "lint-staged": "^16.1.2",
83
83
  "monocart-coverage-reports": "^2.12.6",
84
- "msw": "^2.10.2",
84
+ "msw": "^2.10.4",
85
85
  "nodemon": "^3.1.10",
86
86
  "prettier": "^3.6.2",
87
87
  "stylelint": "^16.21.1",
@@ -99,7 +99,7 @@
99
99
  "node": ">=20.12.2"
100
100
  },
101
101
  "volta": {
102
- "node": "22.17.0",
102
+ "node": "22.17.1",
103
103
  "npm": "11.4.2"
104
104
  },
105
105
  "browserslist": {
@@ -33,7 +33,7 @@ export const ProfileForm = ({ onSubmit, resetForm }: ProfileFormProps) => {
33
33
 
34
34
  <div className={classes.buttonsStyle}>
35
35
  <input type="submit" className={classes.inputStyle} />
36
- {methods.formState.isSubmitted && (
36
+ {methods.formState.isSubmitted ? (
37
37
  <input
38
38
  type="button"
39
39
  className={classes.inputStyle}
@@ -43,7 +43,7 @@ export const ProfileForm = ({ onSubmit, resetForm }: ProfileFormProps) => {
43
43
  resetForm();
44
44
  }}
45
45
  />
46
- )}
46
+ ) : null}
47
47
  </div>
48
48
  </form>
49
49
  </FormProvider>
@@ -33,14 +33,14 @@ export const ReactHookFormDemo = () => {
33
33
  <ProfileForm onSubmit={onSubmit} resetForm={resetForm} />
34
34
  </fieldset>
35
35
 
36
- {profileData && (
36
+ {profileData ? (
37
37
  <fieldset>
38
38
  <legend>Résultat</legend>
39
39
  <p>E-mail: {profileData.mail} </p>
40
40
  <p>First-name: {profileData.firstName} </p>
41
41
  <p>Last-name: {profileData.lastName} </p>
42
42
  </fieldset>
43
- )}
43
+ ) : null}
44
44
  </div>
45
45
  </fieldset>
46
46
  </div>
@@ -15,11 +15,11 @@ export const Input = forwardRef<HTMLInputElement, InputProps>(({ label, hasError
15
15
  <label htmlFor={id}>{label} </label>
16
16
  <input id={id} ref={ref} {...rest} className={hasError ? classes.hasInputError : classes.inputStyle} />
17
17
  </div>
18
- {hasError && (
18
+ {hasError ? (
19
19
  <p role="alert" className={classes.errorsStyle}>
20
20
  {helperText}
21
21
  </p>
22
- )}
22
+ ) : null}
23
23
  </>
24
24
  );
25
25
  });