@auto-engineer/generate-react-client 1.33.0 → 1.34.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 +17 -0
- package/dist/starter/.storybook/main.ts +4 -1
- package/dist/starter/.storybook/manager.ts +4 -5
- package/dist/starter/codegen.ts +17 -0
- package/dist/starter/package.json +7 -4
- package/dist/starter/pnpm-lock.yaml +2643 -69
- package/dist/starter/src/components/ui/DesignSystem-Colors.stories.tsx +1 -0
- package/dist/starter/src/components/ui/DesignSystem-Layout.stories.tsx +1 -0
- package/dist/starter/src/components/ui/DesignSystem-Overview.stories.tsx +1 -0
- package/dist/starter/src/components/ui/DesignSystem-Typography.stories.tsx +1 -0
- package/dist/starter/src/gql/execute.ts +11 -0
- package/dist/starter/src/gql/fragment-masking.ts +83 -0
- package/dist/starter/src/gql/gql.ts +9 -0
- package/dist/starter/src/gql/graphql.ts +182 -0
- package/dist/starter/src/gql/index.ts +2 -0
- package/dist/starter/src/graphql/mutations.ts +0 -0
- package/dist/starter/src/graphql/queries.ts +0 -0
- package/dist/starter/tsconfig.json +6 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @auto-engineer/generate-react-client
|
|
2
2
|
|
|
3
|
+
## 1.34.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`e058a06`](https://github.com/BeOnAuto/auto-engineer/commit/e058a0650c2e32dfb8854e04ee410e058d0178fc) Thanks [@SamHatoum](https://github.com/SamHatoum)! - - Added detailed component documentation with descriptions and usage examples
|
|
8
|
+
|
|
9
|
+
- [`3a661a2`](https://github.com/BeOnAuto/auto-engineer/commit/3a661a2d5de691618125d74fb0426e13eb7bdac8) Thanks [@SamHatoum](https://github.com/SamHatoum)! - - Updated starter template for React client generation
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`cf89a5b`](https://github.com/BeOnAuto/auto-engineer/commit/cf89a5bbb7e9301c8381bdff9d86a00e84f7072c) Thanks [@SamHatoum](https://github.com/SamHatoum)! - - Removed unused configuration files to clean up the project root
|
|
14
|
+
|
|
15
|
+
- [`9cec043`](https://github.com/BeOnAuto/auto-engineer/commit/9cec04374526611a1e8857dc3e379a091cfc5177) Thanks [@github-actions[bot]](https://github.com/github-actions%5Bbot%5D)! - - **typical**: update .gitignore and improve Storybook configuration for better theme handling
|
|
16
|
+
- **global**: version packages
|
|
17
|
+
- Updated dependencies [[`e058a06`](https://github.com/BeOnAuto/auto-engineer/commit/e058a0650c2e32dfb8854e04ee410e058d0178fc), [`3a661a2`](https://github.com/BeOnAuto/auto-engineer/commit/3a661a2d5de691618125d74fb0426e13eb7bdac8), [`cf89a5b`](https://github.com/BeOnAuto/auto-engineer/commit/cf89a5bbb7e9301c8381bdff9d86a00e84f7072c), [`9cec043`](https://github.com/BeOnAuto/auto-engineer/commit/9cec04374526611a1e8857dc3e379a091cfc5177)]:
|
|
18
|
+
- @auto-engineer/message-bus@1.34.0
|
|
19
|
+
|
|
3
20
|
## 1.33.0
|
|
4
21
|
|
|
5
22
|
### Minor Changes
|
|
@@ -40,7 +40,10 @@ const config: StorybookConfig = {
|
|
|
40
40
|
options: {},
|
|
41
41
|
},
|
|
42
42
|
typescript: {
|
|
43
|
-
reactDocgen: isFastMode ? false : "react-docgen",
|
|
43
|
+
reactDocgen: isFastMode ? false : "react-docgen-typescript",
|
|
44
|
+
reactDocgenTypescriptOptions: {
|
|
45
|
+
tsconfigPath: join(__dirname, "../tsconfig.app.json"),
|
|
46
|
+
},
|
|
44
47
|
},
|
|
45
48
|
viteFinal: (config) => {
|
|
46
49
|
config.server = {
|
|
@@ -113,13 +113,12 @@ const darkTheme = create({
|
|
|
113
113
|
|
|
114
114
|
const customTheme = initialIsDark ? darkTheme : lightTheme;
|
|
115
115
|
|
|
116
|
-
// Hide the addon panel globally (Storybook 8+/10 API)
|
|
117
116
|
addons.setConfig({
|
|
118
|
-
bottomPanelHeight: 0,
|
|
119
|
-
layoutCustomisations: {
|
|
120
|
-
showPanel: () => false,
|
|
121
|
-
},
|
|
122
117
|
theme: customTheme,
|
|
118
|
+
sidebar: {
|
|
119
|
+
collapsedRoots: ['ui-components'],
|
|
120
|
+
},
|
|
121
|
+
showPanel: false,
|
|
123
122
|
});
|
|
124
123
|
|
|
125
124
|
// Set default story to Design System Overview if no path specified
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { CodegenConfig } from '@graphql-codegen/cli';
|
|
2
|
+
|
|
3
|
+
const config: CodegenConfig = {
|
|
4
|
+
schema: '../.context/schema.graphql',
|
|
5
|
+
documents: ['src/graphql/**/*.ts'],
|
|
6
|
+
ignoreNoDocuments: true,
|
|
7
|
+
generates: {
|
|
8
|
+
'./src/gql/': {
|
|
9
|
+
preset: 'client',
|
|
10
|
+
config: {
|
|
11
|
+
documentMode: 'string',
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export default config;
|
|
@@ -10,8 +10,9 @@
|
|
|
10
10
|
"type-check": "tsc --noEmit -p tsconfig.app.json",
|
|
11
11
|
"storybook": "storybook dev -p 6006",
|
|
12
12
|
"storybook:fast": "STORYBOOK_FAST=1 storybook dev -p 6006",
|
|
13
|
-
"
|
|
14
|
-
"
|
|
13
|
+
"build-storybook": "storybook build",
|
|
14
|
+
"codegen": "graphql-codegen",
|
|
15
|
+
"codegen:watch": "graphql-codegen --watch"
|
|
15
16
|
},
|
|
16
17
|
"dependencies": {
|
|
17
18
|
"@base-ui/react": "^1.1.0",
|
|
@@ -40,8 +41,9 @@
|
|
|
40
41
|
"zod": "^4.3.6"
|
|
41
42
|
},
|
|
42
43
|
"devDependencies": {
|
|
43
|
-
"@graphql-codegen/cli": "
|
|
44
|
-
"@graphql-codegen/client-preset": "2.
|
|
44
|
+
"@graphql-codegen/cli": "^6.1.1",
|
|
45
|
+
"@graphql-codegen/client-preset": "^5.2.2",
|
|
46
|
+
"@parcel/watcher": "^2.5.6",
|
|
45
47
|
"@storybook/addon-docs": "^10.2.8",
|
|
46
48
|
"@storybook/addon-mcp": "^0.2.2",
|
|
47
49
|
"@storybook/react-vite": "^10.2.8",
|
|
@@ -50,6 +52,7 @@
|
|
|
50
52
|
"@types/react-dom": "^19.2.3",
|
|
51
53
|
"@vitejs/plugin-react-swc": "^4.2.2",
|
|
52
54
|
"@vueless/storybook-dark-mode": "^10.0.7",
|
|
55
|
+
"graphql": "^16.12.0",
|
|
53
56
|
"msw": "^2.12.10",
|
|
54
57
|
"msw-storybook-addon": "^2.0.6",
|
|
55
58
|
"storybook": "^10.2.8",
|