@pplancq/react-template 2.9.0 → 2.10.0
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 +39 -0
- package/mise.toml +2 -2
- package/mocks/browser.ts +1 -1
- package/mocks/fixtures/user.ts +14 -14
- package/mocks/handlers/userHandlers.ts +3 -3
- package/mocks/server.ts +1 -1
- package/package.json +24 -25
- package/playwright-report/html/index.html +90 -0
- package/playwright-report/sonar-results.xml +20 -0
- package/playwright.config.ts +3 -3
- package/src/app/App.tsx +5 -5
- package/src/app/AppHTMLElement.tsx +4 -4
- package/src/app/README.md +2 -2
- package/src/app/assets/css/index.ts +2 -2
- package/src/app/assets/css/reset.css +3 -3
- package/src/app/config/queryClientConfig.ts +1 -1
- package/src/app/config/serviceContainer.ts +2 -2
- package/src/app/providers/Providers/Providers.tsx +5 -5
- package/src/app/providers/QueryClientProvider/QueryClientProvider.tsx +3 -3
- package/src/app/providers/ServiceProvider/ServiceContext.ts +2 -2
- package/src/app/providers/ServiceProvider/ServiceProvider.tsx +4 -4
- package/src/app/routing/Router.tsx +2 -2
- package/src/app/routing/appRoutes.ts +1 -1
- package/src/app/routing/routes.tsx +3 -3
- package/src/demo/README.md +5 -4
- package/src/demo/application/dtos/ArchitecturePrinciple.ts +1 -1
- package/src/demo/application/use-cases/GetArchitecturePrinciplesUseCase.ts +3 -3
- package/src/demo/application/use-cases/GetArchitecturePrinciplesUseCaseInterface.ts +1 -1
- package/src/demo/application/use-cases/GetDemoUsersUseCase.ts +3 -3
- package/src/demo/application/use-cases/GetDemoUsersUseCaseInterface.ts +1 -1
- package/src/demo/domain/repositories/ArchitecturePrincipleRepositoryInterface.d.ts +1 -1
- package/src/demo/domain/repositories/DemoUserRepositoryInterface.d.ts +1 -1
- package/src/demo/infrastructure/repositories/HttpDemoUserRepository.ts +5 -5
- package/src/demo/infrastructure/repositories/StaticArchitecturePrincipleRepository.ts +14 -14
- package/src/demo/serviceDemo.ts +14 -13
- package/src/demo/serviceIdentifiers.ts +4 -4
- package/src/demo/ui/components/DemoFooter/DemoFooter.tsx +5 -5
- package/src/demo/ui/components/DemoFooter/index.ts +1 -1
- package/src/demo/ui/components/DemoHeader/DemoHeader.tsx +10 -10
- package/src/demo/ui/components/DemoHeader/index.ts +1 -1
- package/src/demo/ui/components/DemoNavigation/DemoNavigation.tsx +4 -4
- package/src/demo/ui/components/DemoNavigation/index.ts +1 -1
- package/src/demo/ui/components/Input/Input.tsx +3 -3
- package/src/demo/ui/components/Input/index.ts +1 -1
- package/src/demo/ui/components/Logo/Logo.tsx +2 -2
- package/src/demo/ui/components/Logo/index.ts +1 -1
- package/src/demo/ui/components/NavLink/NavLink.tsx +3 -3
- package/src/demo/ui/components/NavLink/index.ts +1 -1
- package/src/demo/ui/components/TextInput/TextInput.tsx +3 -3
- package/src/demo/ui/components/TextInput/index.ts +1 -1
- package/src/demo/ui/forms/ProfileForm/ProfileForm.tsx +9 -9
- package/src/demo/ui/forms/ProfileForm/index.ts +1 -1
- package/src/demo/ui/hooks/useDemoUsersQuery/useDemoUsersQuery.ts +5 -5
- package/src/demo/ui/layouts/DemoLayout/DemoLayout.tsx +4 -4
- package/src/demo/ui/layouts/MainTemplate/MainTemplate.tsx +2 -2
- package/src/demo/ui/layouts/MainTemplate/index.ts +1 -1
- package/src/demo/ui/pages/DemoHome/DemoHome.module.scss +5 -5
- package/src/demo/ui/pages/DemoHome/DemoHome.tsx +6 -6
- package/src/demo/ui/pages/DependencyInjectionDemo/DependencyInjectionDemo.tsx +5 -5
- package/src/demo/ui/pages/ReactHookFormDemo/ReactHookFormDemo.tsx +4 -4
- package/src/demo/ui/pages/ReactQueryDemo/ReactQueryDemo.tsx +3 -3
- package/src/demo/ui/routing/demoAppRoutes.ts +4 -4
- package/src/demo/ui/routing/demoRoutes.tsx +8 -8
- package/src/main.ts +5 -5
- package/src/react-app-env.d.ts +1 -1
- package/src/shared/infrastructure/http/constant.ts +8 -8
- package/src/shared/infrastructure/http/fetchApi.ts +3 -3
- package/src/shared/ui/hooks/useService/useService.ts +4 -4
- package/test-results/.last-run.json +4 -0
- package/tests/e2e/demo.test.ts +17 -0
- package/tests/e2e/fixture/playwright.fixture.ts +15 -0
- package/tests/{utils → e2e/utils}/createNetworkFixture.ts +2 -2
- package/tests/{utils → e2e/utils}/createTestWithCoverageFixture.ts +8 -8
- package/tests/{utils → e2e/utils}/playwright.globalSetup.ts +4 -4
- package/tests/{utils → e2e/utils}/playwright.globalTeardown.ts +3 -3
- package/{src/app/__tests__ → tests/unit/app}/AppHTMLElement.test.tsx +14 -14
- package/tests/unit/demo/ui/components/DemoFooter/Footer.test.tsx +15 -0
- package/tests/unit/demo/ui/components/DemoHeader/Header.test.tsx +15 -0
- package/tests/unit/demo/ui/components/Logo/Logo.test.tsx +12 -0
- package/tsconfig.json +1 -1
- package/vitest.config.mts +1 -1
- package/postcss.config.mjs +0 -5
- package/src/demo/ui/components/DemoFooter/__tests__/Footer.test.tsx +0 -15
- package/src/demo/ui/components/DemoHeader/__tests__/Header.test.tsx +0 -15
- package/src/demo/ui/components/Logo/__tests__/Logo.test.tsx +0 -12
- package/tests/demo.test.ts +0 -17
- package/tests/fixture/playwright.fixture.ts +0 -15
- /package/{src/demo/ui/components/DemoFooter/__tests__ → tests/unit/demo/ui/components/DemoFooter}/__snapshots__/Footer.test.tsx.snap +0 -0
- /package/{src/demo/ui/components/DemoHeader/__tests__ → tests/unit/demo/ui/components/DemoHeader}/__snapshots__/Header.test.tsx.snap +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,42 @@
|
|
|
1
|
+
## 2.10.0 (2026-07-28)
|
|
2
|
+
|
|
3
|
+
### 🎉 Features
|
|
4
|
+
|
|
5
|
+
- **react-template:** remove postcss-config dependency ([3b57e0e](https://github.com/pplancq/dev-tools/commit/3b57e0e))
|
|
6
|
+
- **react-template:** restructure test directories ([4762120](https://github.com/pplancq/dev-tools/commit/4762120))
|
|
7
|
+
|
|
8
|
+
### 📦 Dependencies
|
|
9
|
+
|
|
10
|
+
- Updated @pplancq/commitlint-config to 4.0.3
|
|
11
|
+
- Updated @pplancq/stylelint-config to 5.0.4
|
|
12
|
+
- Updated @pplancq/prettier-config to 3.0.1
|
|
13
|
+
- Updated @pplancq/eslint-config to 6.0.18
|
|
14
|
+
- **deps:** update dependency @bdellegrazie/playwright-sonar-reporter to ^0.5.2 ([#1821](https://github.com/pplancq/dev-tools/pull/1821))
|
|
15
|
+
- **deps:** update dependency react-hook-form to ^7.83.0 ([#1828](https://github.com/pplancq/dev-tools/pull/1828))
|
|
16
|
+
- **deps:** update dependency inversify to ^8.2.3 ([#1817](https://github.com/pplancq/dev-tools/pull/1817))
|
|
17
|
+
- **deps:** update dependency @rsbuild/core to ^2.1.8 ([#1816](https://github.com/pplancq/dev-tools/pull/1816))
|
|
18
|
+
- **deps:** update dependency @testing-library/jest-dom to v7 ([#1831](https://github.com/pplancq/dev-tools/pull/1831))
|
|
19
|
+
- **deps:** update dependency react-router to ^8.3.0 ([#1829](https://github.com/pplancq/dev-tools/pull/1829))
|
|
20
|
+
- **deps:** update react-query mono repo to ^5.101.4 ([#1826](https://github.com/pplancq/dev-tools/pull/1826))
|
|
21
|
+
- **deps:** update react monorepo to ^19.2.8 ([#1825](https://github.com/pplancq/dev-tools/pull/1825))
|
|
22
|
+
- **deps:** update dependency @vitejs/plugin-react to ^6.0.4 ([#1822](https://github.com/pplancq/dev-tools/pull/1822))
|
|
23
|
+
- **deps:** update dependency inversify to ^8.1.3 ([#1782](https://github.com/pplancq/dev-tools/pull/1782))
|
|
24
|
+
- **deps:** update dependency react-hook-form to ^7.81.0 ([#1789](https://github.com/pplancq/dev-tools/pull/1789))
|
|
25
|
+
- **deps:** update commitlint monorepo ([#1799](https://github.com/pplancq/dev-tools/pull/1799))
|
|
26
|
+
- **deps:** update dependency @rsbuild/plugin-react to ^2.1.0 ([#1785](https://github.com/pplancq/dev-tools/pull/1785))
|
|
27
|
+
- **deps:** update dependency @vitejs/plugin-react to ^6.0.3 ([#1794](https://github.com/pplancq/dev-tools/pull/1794))
|
|
28
|
+
- **deps:** update react-query mono repo to ^5.101.2 ([#1796](https://github.com/pplancq/dev-tools/pull/1796))
|
|
29
|
+
- **deps:** update dependency @playwright/test to ^1.61.1 ([#1788](https://github.com/pplancq/dev-tools/pull/1788))
|
|
30
|
+
- **deps:** update dependency msw to ^2.15.0 ([#1809](https://github.com/pplancq/dev-tools/pull/1809))
|
|
31
|
+
- **deps:** update dependency @rsbuild/core to ^2.1.5 ([#1780](https://github.com/pplancq/dev-tools/pull/1780))
|
|
32
|
+
- **deps:** update dependency stylelint to ^17.14.0 ([#1798](https://github.com/pplancq/dev-tools/pull/1798))
|
|
33
|
+
- **deps:** update dependency react-router to v8 ([#1792](https://github.com/pplancq/dev-tools/pull/1792))
|
|
34
|
+
- **deps:** update dependency @rsbuild/plugin-sass to v2 ([#1801](https://github.com/pplancq/dev-tools/pull/1801))
|
|
35
|
+
|
|
36
|
+
### ❤️ Thank You
|
|
37
|
+
|
|
38
|
+
- Paul PLANCQ
|
|
39
|
+
|
|
1
40
|
## @pplancq/react-template [2.9.0](https://github.com/pplancq/dev-tools/compare/@pplancq/react-template@2.8.17...@pplancq/react-template@2.9.0) (2026-06-15)
|
|
2
41
|
|
|
3
42
|
### Features
|
package/mise.toml
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
[tools]
|
|
2
|
-
node = "24.
|
|
3
|
-
npm = "
|
|
2
|
+
node = "24.18.0"
|
|
3
|
+
npm = "12.0.1"
|
package/mocks/browser.ts
CHANGED
package/mocks/fixtures/user.ts
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
export const users = [
|
|
2
2
|
{
|
|
3
3
|
id: 1,
|
|
4
|
-
name:
|
|
5
|
-
username:
|
|
6
|
-
email:
|
|
4
|
+
name: "Demo user",
|
|
5
|
+
username: "@demoUser",
|
|
6
|
+
email: "demo@user.test",
|
|
7
7
|
address: {
|
|
8
|
-
street:
|
|
9
|
-
suite:
|
|
10
|
-
city:
|
|
11
|
-
zipcode:
|
|
8
|
+
street: "Kulas Light",
|
|
9
|
+
suite: "Apt. 556",
|
|
10
|
+
city: "Gwenborough",
|
|
11
|
+
zipcode: "92998-3874",
|
|
12
12
|
geo: {
|
|
13
|
-
lat:
|
|
14
|
-
lng:
|
|
13
|
+
lat: "-37.3159",
|
|
14
|
+
lng: "81.1496",
|
|
15
15
|
},
|
|
16
16
|
},
|
|
17
|
-
phone:
|
|
18
|
-
website:
|
|
17
|
+
phone: "1-770-736-8031 x56442",
|
|
18
|
+
website: "hildegard.org",
|
|
19
19
|
company: {
|
|
20
|
-
name:
|
|
21
|
-
catchPhrase:
|
|
22
|
-
bs:
|
|
20
|
+
name: "Romaguera-Crona",
|
|
21
|
+
catchPhrase: "Multi-layered client-server neural-net",
|
|
22
|
+
bs: "harness real-time e-markets",
|
|
23
23
|
},
|
|
24
24
|
},
|
|
25
25
|
];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { users } from
|
|
2
|
-
import { http, HttpResponse } from
|
|
1
|
+
import { users } from "@Mocks/fixtures/user";
|
|
2
|
+
import { http, HttpResponse } from "msw";
|
|
3
3
|
|
|
4
|
-
export const getUsers200 = http.get(
|
|
4
|
+
export const getUsers200 = http.get("*/users", () => {
|
|
5
5
|
return HttpResponse.json(users);
|
|
6
6
|
});
|
package/mocks/server.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pplancq/react-template",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.10.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "react template",
|
|
6
6
|
"author": "pplancq <paul.plancq@outlook.fr>",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"bin": {
|
|
14
14
|
"template-install": "bin/template-install.js"
|
|
15
15
|
},
|
|
16
|
-
"packageManager": "npm@
|
|
16
|
+
"packageManager": "npm@12.0.1",
|
|
17
17
|
"scripts": {
|
|
18
18
|
"start": "rsbuild dev",
|
|
19
19
|
"start:mock": "rsbuild dev --env-mode mock",
|
|
@@ -50,53 +50,52 @@
|
|
|
50
50
|
],
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"@hookform/resolvers": "^5.4.0",
|
|
53
|
-
"@tanstack/react-query": "^5.101.
|
|
54
|
-
"@tanstack/react-query-devtools": "^5.101.
|
|
55
|
-
"inversify": "^8.
|
|
56
|
-
"react": "^19.2.
|
|
57
|
-
"react-dom": "^19.2.
|
|
58
|
-
"react-hook-form": "^7.
|
|
59
|
-
"react-router": "^
|
|
53
|
+
"@tanstack/react-query": "^5.101.4",
|
|
54
|
+
"@tanstack/react-query-devtools": "^5.101.4",
|
|
55
|
+
"inversify": "^8.2.3",
|
|
56
|
+
"react": "^19.2.8",
|
|
57
|
+
"react-dom": "^19.2.8",
|
|
58
|
+
"react-hook-form": "^7.83.0",
|
|
59
|
+
"react-router": "^8.3.0",
|
|
60
60
|
"yup": "^1.7.1"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@bdellegrazie/playwright-sonar-reporter": "^0.5.
|
|
64
|
-
"@commitlint/cli": "^21.
|
|
63
|
+
"@bdellegrazie/playwright-sonar-reporter": "^0.5.2",
|
|
64
|
+
"@commitlint/cli": "^21.2.1",
|
|
65
65
|
"@msw/playwright": "^0.6.7",
|
|
66
|
-
"@playwright/test": "^1.
|
|
66
|
+
"@playwright/test": "^1.61.1",
|
|
67
67
|
"@pplancq/commitlint-config": "*",
|
|
68
68
|
"@pplancq/eslint-config": "*",
|
|
69
|
-
"@pplancq/postcss-config": "*",
|
|
70
69
|
"@pplancq/prettier-config": "*",
|
|
71
70
|
"@pplancq/stylelint-config": "*",
|
|
72
|
-
"@rsbuild/core": "^2.
|
|
71
|
+
"@rsbuild/core": "^2.1.8",
|
|
73
72
|
"@rsbuild/plugin-eslint": "^2.0.2",
|
|
74
|
-
"@rsbuild/plugin-react": "^2.0
|
|
75
|
-
"@rsbuild/plugin-sass": "^
|
|
76
|
-
"@testing-library/jest-dom": "^
|
|
73
|
+
"@rsbuild/plugin-react": "^2.1.0",
|
|
74
|
+
"@rsbuild/plugin-sass": "^2.0.1",
|
|
75
|
+
"@testing-library/jest-dom": "^7.0.0",
|
|
77
76
|
"@testing-library/react": "^16.3.2",
|
|
78
77
|
"@testing-library/user-event": "^14.6.1",
|
|
79
78
|
"@types/react": "^19.2.17",
|
|
80
79
|
"@types/react-dom": "^19.2.3",
|
|
81
|
-
"@vitejs/plugin-react": "^6.0.
|
|
82
|
-
"@vitest/coverage-v8": "^4.1.
|
|
80
|
+
"@vitejs/plugin-react": "^6.0.4",
|
|
81
|
+
"@vitest/coverage-v8": "^4.1.10",
|
|
83
82
|
"concurrently": "^10.0.3",
|
|
84
|
-
"eslint": "^9.39.
|
|
83
|
+
"eslint": "^9.39.5",
|
|
85
84
|
"eslint-plugin-prettier": "^5.5.6",
|
|
86
85
|
"husky": "^9.1.7",
|
|
87
86
|
"jsdom": "^29.1.1",
|
|
88
|
-
"lint-staged": "^17.0
|
|
87
|
+
"lint-staged": "^17.2.0",
|
|
89
88
|
"monocart-coverage-reports": "^2.12.12",
|
|
90
|
-
"msw": "^2.
|
|
89
|
+
"msw": "^2.15.0",
|
|
91
90
|
"nodemon": "^3.1.14",
|
|
92
|
-
"prettier": "^3.
|
|
91
|
+
"prettier": "^3.9.6",
|
|
93
92
|
"rsbuild-plugin-stylelint": "^1.2.0",
|
|
94
|
-
"stylelint": "^17.
|
|
93
|
+
"stylelint": "^17.14.1",
|
|
95
94
|
"stylelint-prettier": "^5.0.3",
|
|
96
95
|
"tsc-files": "^1.1.4",
|
|
97
96
|
"typescript": "^6.0.3",
|
|
98
97
|
"vite-plugin-svgr": "^5.2.0",
|
|
99
|
-
"vitest": "^4.1.
|
|
98
|
+
"vitest": "^4.1.10",
|
|
100
99
|
"vitest-axe": "^1.0.0-pre.5",
|
|
101
100
|
"vitest-sonar-reporter": "^3.0.0"
|
|
102
101
|
},
|