@auto-engineer/generate-react-client 1.33.0 → 1.35.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 +49 -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 +8 -4
- package/dist/starter/pnpm-lock.yaml +2643 -69
- package/dist/starter/scripts/build-component-db.ts +157 -0
- package/dist/starter/src/components/ui/Accordion.stories.tsx +2 -0
- package/dist/starter/src/components/ui/Accordion.tsx +4 -0
- package/dist/starter/src/components/ui/Alert.stories.tsx +2 -0
- package/dist/starter/src/components/ui/Alert.tsx +7 -0
- package/dist/starter/src/components/ui/AlertDialog.stories.tsx +2 -0
- package/dist/starter/src/components/ui/AlertDialog.tsx +15 -0
- package/dist/starter/src/components/ui/AspectRatio.stories.tsx +2 -0
- package/dist/starter/src/components/ui/AspectRatio.tsx +4 -0
- package/dist/starter/src/components/ui/Avatar.stories.tsx +3 -0
- package/dist/starter/src/components/ui/Avatar.tsx +11 -0
- package/dist/starter/src/components/ui/Badge.stories.tsx +5 -0
- package/dist/starter/src/components/ui/Badge.tsx +5 -0
- package/dist/starter/src/components/ui/Breadcrumb.stories.tsx +2 -0
- package/dist/starter/src/components/ui/Breadcrumb.tsx +12 -0
- package/dist/starter/src/components/ui/Button.stories.tsx +10 -0
- package/dist/starter/src/components/ui/Button.tsx +5 -0
- package/dist/starter/src/components/ui/ButtonGroup.stories.tsx +2 -0
- package/dist/starter/src/components/ui/ButtonGroup.tsx +6 -0
- package/dist/starter/src/components/ui/Calendar.stories.tsx +2 -0
- package/dist/starter/src/components/ui/Calendar.tsx +6 -0
- package/dist/starter/src/components/ui/Card.stories.tsx +2 -0
- package/dist/starter/src/components/ui/Card.tsx +10 -0
- package/dist/starter/src/components/ui/Carousel.stories.tsx +2 -0
- package/dist/starter/src/components/ui/Carousel.tsx +9 -0
- package/dist/starter/src/components/ui/Chart.stories.tsx +1 -0
- package/dist/starter/src/components/ui/Chart.tsx +9 -0
- package/dist/starter/src/components/ui/Checkbox.stories.tsx +4 -0
- package/dist/starter/src/components/ui/Checkbox.tsx +1 -0
- package/dist/starter/src/components/ui/Collapsible.stories.tsx +2 -0
- package/dist/starter/src/components/ui/Collapsible.tsx +3 -0
- package/dist/starter/src/components/ui/Combobox.stories.tsx +2 -0
- package/dist/starter/src/components/ui/Combobox.tsx +29 -0
- package/dist/starter/src/components/ui/Command.stories.tsx +2 -0
- package/dist/starter/src/components/ui/Command.tsx +20 -0
- package/dist/starter/src/components/ui/ContextMenu.stories.tsx +2 -0
- package/dist/starter/src/components/ui/ContextMenu.tsx +20 -0
- 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/components/ui/Dialog.stories.tsx +2 -0
- package/dist/starter/src/components/ui/Dialog.tsx +18 -0
- package/dist/starter/src/components/ui/Direction.stories.tsx +2 -0
- package/dist/starter/src/components/ui/Direction.tsx +6 -0
- package/dist/starter/src/components/ui/Drawer.stories.tsx +2 -0
- package/dist/starter/src/components/ui/Drawer.tsx +18 -0
- package/dist/starter/src/components/ui/DropdownMenu.stories.tsx +2 -0
- package/dist/starter/src/components/ui/DropdownMenu.tsx +20 -0
- package/dist/starter/src/components/ui/Empty.stories.tsx +2 -0
- package/dist/starter/src/components/ui/Empty.tsx +13 -0
- package/dist/starter/src/components/ui/Field.stories.tsx +3 -0
- package/dist/starter/src/components/ui/Field.tsx +25 -0
- package/dist/starter/src/components/ui/Form.stories.tsx +1 -0
- package/dist/starter/src/components/ui/Form.tsx +15 -3
- package/dist/starter/src/components/ui/HoverCard.stories.tsx +2 -0
- package/dist/starter/src/components/ui/HoverCard.tsx +3 -0
- package/dist/starter/src/components/ui/Input.stories.tsx +4 -0
- package/dist/starter/src/components/ui/Input.tsx +1 -0
- package/dist/starter/src/components/ui/InputGroup.stories.tsx +3 -0
- package/dist/starter/src/components/ui/InputGroup.tsx +6 -0
- package/dist/starter/src/components/ui/InputOTP.stories.tsx +2 -0
- package/dist/starter/src/components/ui/InputOTP.tsx +4 -0
- package/dist/starter/src/components/ui/Item.stories.tsx +3 -0
- package/dist/starter/src/components/ui/Item.tsx +10 -0
- package/dist/starter/src/components/ui/Kbd.stories.tsx +5 -0
- package/dist/starter/src/components/ui/Kbd.tsx +4 -0
- package/dist/starter/src/components/ui/Label.stories.tsx +5 -0
- package/dist/starter/src/components/ui/Label.tsx +4 -0
- package/dist/starter/src/components/ui/Menubar.stories.tsx +2 -0
- package/dist/starter/src/components/ui/Menubar.tsx +15 -0
- package/dist/starter/src/components/ui/NativeSelect.stories.tsx +3 -0
- package/dist/starter/src/components/ui/NativeSelect.tsx +6 -0
- package/dist/starter/src/components/ui/NavigationMenu.stories.tsx +2 -0
- package/dist/starter/src/components/ui/NavigationMenu.tsx +10 -0
- package/dist/starter/src/components/ui/Pagination.stories.tsx +2 -0
- package/dist/starter/src/components/ui/Pagination.tsx +8 -0
- package/dist/starter/src/components/ui/Popover.stories.tsx +2 -0
- package/dist/starter/src/components/ui/Popover.tsx +5 -0
- package/dist/starter/src/components/ui/Progress.stories.tsx +4 -0
- package/dist/starter/src/components/ui/Progress.tsx +1 -0
- package/dist/starter/src/components/ui/RadioGroup.stories.tsx +2 -0
- package/dist/starter/src/components/ui/RadioGroup.tsx +5 -0
- package/dist/starter/src/components/ui/Resizable.stories.tsx +3 -0
- package/dist/starter/src/components/ui/Resizable.tsx +7 -0
- package/dist/starter/src/components/ui/ScrollArea.stories.tsx +2 -0
- package/dist/starter/src/components/ui/ScrollArea.tsx +5 -0
- package/dist/starter/src/components/ui/Select.stories.tsx +2 -0
- package/dist/starter/src/components/ui/Select.tsx +9 -0
- package/dist/starter/src/components/ui/Separator.stories.tsx +2 -0
- package/dist/starter/src/components/ui/Separator.tsx +1 -0
- package/dist/starter/src/components/ui/Sheet.stories.tsx +2 -0
- package/dist/starter/src/components/ui/Sheet.tsx +8 -0
- package/dist/starter/src/components/ui/Sidebar.stories.tsx +2 -0
- package/dist/starter/src/components/ui/Sidebar.tsx +20 -0
- package/dist/starter/src/components/ui/Skeleton.stories.tsx +2 -0
- package/dist/starter/src/components/ui/Skeleton.tsx +4 -0
- package/dist/starter/src/components/ui/Slider.stories.tsx +3 -0
- package/dist/starter/src/components/ui/Slider.tsx +1 -0
- package/dist/starter/src/components/ui/Sonner.stories.tsx +1 -0
- package/dist/starter/src/components/ui/Sonner.tsx +4 -0
- package/dist/starter/src/components/ui/Spinner.stories.tsx +3 -0
- package/dist/starter/src/components/ui/Spinner.tsx +4 -0
- package/dist/starter/src/components/ui/Switch.stories.tsx +4 -0
- package/dist/starter/src/components/ui/Switch.tsx +2 -0
- package/dist/starter/src/components/ui/Table.stories.tsx +2 -0
- package/dist/starter/src/components/ui/Table.tsx +11 -0
- package/dist/starter/src/components/ui/Tabs.stories.tsx +2 -0
- package/dist/starter/src/components/ui/Tabs.tsx +6 -0
- package/dist/starter/src/components/ui/Textarea.stories.tsx +3 -0
- package/dist/starter/src/components/ui/Textarea.tsx +4 -0
- package/dist/starter/src/components/ui/Toast.stories.tsx +4 -0
- package/dist/starter/src/components/ui/Toast.tsx +9 -0
- package/dist/starter/src/components/ui/Toaster.tsx +4 -0
- package/dist/starter/src/components/ui/Toggle.stories.tsx +4 -0
- package/dist/starter/src/components/ui/Toggle.tsx +1 -0
- package/dist/starter/src/components/ui/ToggleGroup.stories.tsx +3 -0
- package/dist/starter/src/components/ui/ToggleGroup.tsx +3 -0
- package/dist/starter/src/components/ui/Tooltip.stories.tsx +2 -0
- package/dist/starter/src/components/ui/Tooltip.tsx +6 -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,54 @@
|
|
|
1
1
|
# @auto-engineer/generate-react-client
|
|
2
2
|
|
|
3
|
+
## 1.35.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`ee955cf`](https://github.com/BeOnAuto/auto-engineer/commit/ee955cf5245cce3ecf1b4c08e625a6c0e8586d1f) Thanks [@SamHatoum](https://github.com/SamHatoum)! - - Added detailed component documentation with descriptions and usage examples for generated React client components
|
|
8
|
+
|
|
9
|
+
- [`4568aea`](https://github.com/BeOnAuto/auto-engineer/commit/4568aeace396e4d8ed9fce4639588ac7b5bc9f48) Thanks [@SamHatoum](https://github.com/SamHatoum)! - - **typical**: add build-component-db script merging Storybook manifests
|
|
10
|
+
|
|
11
|
+
- [`f8615fc`](https://github.com/BeOnAuto/auto-engineer/commit/f8615fcc5ed2df1eaa29a454b8dcd50bc38ef18c) Thanks [@github-actions[bot]](https://github.com/github-actions%5Bbot%5D)! - - **typical**: component documentation with detailed descriptions and examples
|
|
12
|
+
- **generate-react-client**: udpate starter
|
|
13
|
+
- **global**: version packages
|
|
14
|
+
- **root**: remove unused .claude.hooks.json and tsconfig.staging.json files
|
|
15
|
+
|
|
16
|
+
- [`7dfc266`](https://github.com/BeOnAuto/auto-engineer/commit/7dfc2663f415f4c30c1355fa839017f689e19dfc) Thanks [@SamHatoum](https://github.com/SamHatoum)! - - **typical**: generate components-db.json with 57 merged components
|
|
17
|
+
|
|
18
|
+
- [`2b17ba5`](https://github.com/BeOnAuto/auto-engineer/commit/2b17ba5b0120f949ef81555ea36ab45fd93de3e0) Thanks [@SamHatoum](https://github.com/SamHatoum)! - - **typical**: add build:component-db npm script
|
|
19
|
+
|
|
20
|
+
- [`fe3ec48`](https://github.com/BeOnAuto/auto-engineer/commit/fe3ec48a7b9ed71c0e3c7edc7cbe9ee4f9bffd06) Thanks [@SamHatoum](https://github.com/SamHatoum)! - - Added commands for building and installing client and server dependencies in the typical example project
|
|
21
|
+
|
|
22
|
+
### Patch Changes
|
|
23
|
+
|
|
24
|
+
- [`2672e53`](https://github.com/BeOnAuto/auto-engineer/commit/2672e536679d7f56f2f6f7bf96e4655059697847) Thanks [@SamHatoum](https://github.com/SamHatoum)! - - **root**: build components database script plan
|
|
25
|
+
|
|
26
|
+
- [`c4669b8`](https://github.com/BeOnAuto/auto-engineer/commit/c4669b8a71153ea7fd2f4a60e0c88d23829119d6) Thanks [@SamHatoum](https://github.com/SamHatoum)! - - **typical**: use tsx for build:component-db script
|
|
27
|
+
|
|
28
|
+
- [`c558551`](https://github.com/BeOnAuto/auto-engineer/commit/c558551c1ae3be91aa0139a675fcc972662af9de) Thanks [@SamHatoum](https://github.com/SamHatoum)! - - Improved Storybook startup detection with retry logic and configurable delay for more reliable component preview launching
|
|
29
|
+
|
|
30
|
+
- [`ae00d8a`](https://github.com/BeOnAuto/auto-engineer/commit/ae00d8a71c12bc707739cb1dcf6c724d7bb3af73) Thanks [@SamHatoum](https://github.com/SamHatoum)! - - Centralized the starter configuration in the typical example for simpler project setup
|
|
31
|
+
|
|
32
|
+
- Updated dependencies [[`2672e53`](https://github.com/BeOnAuto/auto-engineer/commit/2672e536679d7f56f2f6f7bf96e4655059697847), [`ee955cf`](https://github.com/BeOnAuto/auto-engineer/commit/ee955cf5245cce3ecf1b4c08e625a6c0e8586d1f), [`4568aea`](https://github.com/BeOnAuto/auto-engineer/commit/4568aeace396e4d8ed9fce4639588ac7b5bc9f48), [`c4669b8`](https://github.com/BeOnAuto/auto-engineer/commit/c4669b8a71153ea7fd2f4a60e0c88d23829119d6), [`c558551`](https://github.com/BeOnAuto/auto-engineer/commit/c558551c1ae3be91aa0139a675fcc972662af9de), [`f8615fc`](https://github.com/BeOnAuto/auto-engineer/commit/f8615fcc5ed2df1eaa29a454b8dcd50bc38ef18c), [`ae00d8a`](https://github.com/BeOnAuto/auto-engineer/commit/ae00d8a71c12bc707739cb1dcf6c724d7bb3af73), [`7dfc266`](https://github.com/BeOnAuto/auto-engineer/commit/7dfc2663f415f4c30c1355fa839017f689e19dfc), [`2b17ba5`](https://github.com/BeOnAuto/auto-engineer/commit/2b17ba5b0120f949ef81555ea36ab45fd93de3e0), [`fe3ec48`](https://github.com/BeOnAuto/auto-engineer/commit/fe3ec48a7b9ed71c0e3c7edc7cbe9ee4f9bffd06)]:
|
|
33
|
+
- @auto-engineer/message-bus@1.35.0
|
|
34
|
+
|
|
35
|
+
## 1.34.0
|
|
36
|
+
|
|
37
|
+
### Minor Changes
|
|
38
|
+
|
|
39
|
+
- [`e058a06`](https://github.com/BeOnAuto/auto-engineer/commit/e058a0650c2e32dfb8854e04ee410e058d0178fc) Thanks [@SamHatoum](https://github.com/SamHatoum)! - - Added detailed component documentation with descriptions and usage examples
|
|
40
|
+
|
|
41
|
+
- [`3a661a2`](https://github.com/BeOnAuto/auto-engineer/commit/3a661a2d5de691618125d74fb0426e13eb7bdac8) Thanks [@SamHatoum](https://github.com/SamHatoum)! - - Updated starter template for React client generation
|
|
42
|
+
|
|
43
|
+
### Patch Changes
|
|
44
|
+
|
|
45
|
+
- [`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
|
|
46
|
+
|
|
47
|
+
- [`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
|
|
48
|
+
- **global**: version packages
|
|
49
|
+
- 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)]:
|
|
50
|
+
- @auto-engineer/message-bus@1.34.0
|
|
51
|
+
|
|
3
52
|
## 1.33.0
|
|
4
53
|
|
|
5
54
|
### 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,10 @@
|
|
|
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",
|
|
16
|
+
"build:component-db": "tsx scripts/build-component-db.ts"
|
|
15
17
|
},
|
|
16
18
|
"dependencies": {
|
|
17
19
|
"@base-ui/react": "^1.1.0",
|
|
@@ -40,8 +42,9 @@
|
|
|
40
42
|
"zod": "^4.3.6"
|
|
41
43
|
},
|
|
42
44
|
"devDependencies": {
|
|
43
|
-
"@graphql-codegen/cli": "
|
|
44
|
-
"@graphql-codegen/client-preset": "2.
|
|
45
|
+
"@graphql-codegen/cli": "^6.1.1",
|
|
46
|
+
"@graphql-codegen/client-preset": "^5.2.2",
|
|
47
|
+
"@parcel/watcher": "^2.5.6",
|
|
45
48
|
"@storybook/addon-docs": "^10.2.8",
|
|
46
49
|
"@storybook/addon-mcp": "^0.2.2",
|
|
47
50
|
"@storybook/react-vite": "^10.2.8",
|
|
@@ -50,6 +53,7 @@
|
|
|
50
53
|
"@types/react-dom": "^19.2.3",
|
|
51
54
|
"@vitejs/plugin-react-swc": "^4.2.2",
|
|
52
55
|
"@vueless/storybook-dark-mode": "^10.0.7",
|
|
56
|
+
"graphql": "^16.12.0",
|
|
53
57
|
"msw": "^2.12.10",
|
|
54
58
|
"msw-storybook-addon": "^2.0.6",
|
|
55
59
|
"storybook": "^10.2.8",
|