@pplancq/react-template 2.6.3 → 2.6.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/CHANGELOG.md CHANGED
@@ -1,3 +1,16 @@
1
+ ## @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)
2
+
3
+ ### Bug Fixes
4
+
5
+ * **react-template:** update conditional rendering syntax in components ([8988b2d](https://github.com/pplancq/dev-tools/commit/8988b2df5b9c828157aa151380d562491610945b))
6
+ * **deps:** update dependency react-hook-form to ^7.60.0 ([047ba97](https://github.com/pplancq/dev-tools/commit/047ba97234e79e90eb0de5a1d1f7ecdf2a555fa0))
7
+ * **deps:** update react-query mono repo to ^5.82.0 ([e383b4e](https://github.com/pplancq/dev-tools/commit/e383b4e3737e2b4db9f1b600497b7410f0863aab))
8
+
9
+
10
+ ### Dependencies
11
+
12
+ * **@pplancq/eslint-config:** upgraded to 5.0.0
13
+
1
14
  ## @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
15
 
3
16
  ### 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.4",
4
4
  "license": "MIT",
5
5
  "description": "react template",
6
6
  "author": "pplancq <paul.plancq@outlook.fr>",
@@ -46,27 +46,27 @@
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.82.0",
50
+ "@tanstack/react-query-devtools": "^5.82.0",
51
51
  "react": "^19.1.0",
52
52
  "react-dom": "^19.1.0",
53
- "react-hook-form": "^7.59.0",
53
+ "react-hook-form": "^7.60.0",
54
54
  "react-router": "^7.6.3",
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.0",
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.6",
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",
@@ -81,7 +81,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.3",
85
85
  "nodemon": "^3.1.10",
86
86
  "prettier": "^3.6.2",
87
87
  "stylelint": "^16.21.1",
@@ -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
  });