@auto-engineer/frontend-generator-react-graphql 0.13.3 → 0.14.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.
Files changed (95) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/mui-starter/package.json +0 -10
  3. package/dist/mui-starter/src/App.tsx +2 -2
  4. package/dist/mui-starter/src/apolloClient.ts +1 -1
  5. package/dist/mui-starter/src/hooks/use-toast.ts +1 -1
  6. package/dist/mui-starter/src/pages/NotFound.tsx +1 -1
  7. package/dist/mui-starter/vite.config.ts +2 -2
  8. package/dist/shadcn-starter/package.json +0 -10
  9. package/dist/shadcn-starter/postcss.config.ts +1 -1
  10. package/dist/shadcn-starter/src/App.tsx +2 -2
  11. package/dist/shadcn-starter/src/apolloClient.ts +1 -1
  12. package/dist/shadcn-starter/src/components/atoms/accordion.tsx +1 -1
  13. package/dist/shadcn-starter/src/components/atoms/alert-dialog.tsx +2 -3
  14. package/dist/shadcn-starter/src/components/atoms/alert.tsx +1 -1
  15. package/dist/shadcn-starter/src/components/atoms/avatar.tsx +1 -1
  16. package/dist/shadcn-starter/src/components/atoms/badge.tsx +1 -1
  17. package/dist/shadcn-starter/src/components/atoms/breadcrumb.tsx +1 -1
  18. package/dist/shadcn-starter/src/components/atoms/button.tsx +1 -1
  19. package/dist/shadcn-starter/src/components/atoms/calendar.tsx +3 -4
  20. package/dist/shadcn-starter/src/components/atoms/carousel.tsx +2 -3
  21. package/dist/shadcn-starter/src/components/atoms/checkbox.tsx +1 -1
  22. package/dist/shadcn-starter/src/components/atoms/command.tsx +3 -4
  23. package/dist/shadcn-starter/src/components/atoms/context-menu.tsx +1 -1
  24. package/dist/shadcn-starter/src/components/atoms/dialog.tsx +1 -1
  25. package/dist/shadcn-starter/src/components/atoms/dropdown-menu.tsx +1 -1
  26. package/dist/shadcn-starter/src/components/atoms/form.tsx +5 -6
  27. package/dist/shadcn-starter/src/components/atoms/hover-card.tsx +1 -1
  28. package/dist/shadcn-starter/src/components/atoms/input-otp.tsx +1 -1
  29. package/dist/shadcn-starter/src/components/atoms/label.tsx +1 -1
  30. package/dist/shadcn-starter/src/components/atoms/menubar.tsx +1 -1
  31. package/dist/shadcn-starter/src/components/atoms/navigation-menu.tsx +1 -1
  32. package/dist/shadcn-starter/src/components/atoms/pagination.tsx +3 -9
  33. package/dist/shadcn-starter/src/components/atoms/popover.tsx +1 -1
  34. package/dist/shadcn-starter/src/components/atoms/progress.tsx +1 -1
  35. package/dist/shadcn-starter/src/components/atoms/radio-group.tsx +1 -1
  36. package/dist/shadcn-starter/src/components/atoms/scroll-area.tsx +1 -1
  37. package/dist/shadcn-starter/src/components/atoms/select.tsx +1 -1
  38. package/dist/shadcn-starter/src/components/atoms/separator.tsx +1 -1
  39. package/dist/shadcn-starter/src/components/atoms/sheet.tsx +1 -1
  40. package/dist/shadcn-starter/src/components/atoms/sidebar.tsx +6 -7
  41. package/dist/shadcn-starter/src/components/atoms/slider.tsx +1 -1
  42. package/dist/shadcn-starter/src/components/atoms/switch.tsx +1 -1
  43. package/dist/shadcn-starter/src/components/atoms/tabs.tsx +1 -1
  44. package/dist/shadcn-starter/src/components/atoms/toggle-group.tsx +3 -4
  45. package/dist/shadcn-starter/src/components/atoms/toggle.tsx +1 -1
  46. package/dist/shadcn-starter/src/components/atoms/tooltip.tsx +1 -1
  47. package/dist/shadcn-starter/src/hooks/use-toast.ts +1 -1
  48. package/dist/shadcn-starter/src/lib/utils.ts +1 -1
  49. package/dist/shadcn-starter/src/pages/NotFound.tsx +1 -1
  50. package/dist/shadcn-starter/vite.config.ts +2 -2
  51. package/dist/src/builder.js +2 -2
  52. package/dist/src/builder.js.map +1 -1
  53. package/dist/src/commands/copy-example.d.ts.map +1 -1
  54. package/dist/src/commands/copy-example.js +3 -3
  55. package/dist/src/commands/copy-example.js.map +1 -1
  56. package/dist/src/commands/generate-client.d.ts +1 -1
  57. package/dist/src/commands/generate-client.d.ts.map +1 -1
  58. package/dist/src/commands/generate-client.js +6 -6
  59. package/dist/src/commands/generate-client.js.map +1 -1
  60. package/dist/src/configure-starter.js +3 -3
  61. package/dist/src/configure-starter.js.map +1 -1
  62. package/dist/src/delete-directory.js +2 -2
  63. package/dist/src/delete-directory.js.map +1 -1
  64. package/dist/src/generator/generateComponents.d.ts +1 -1
  65. package/dist/src/generator/generateComponents.d.ts.map +1 -1
  66. package/dist/src/generator/generateComponents.js +5 -5
  67. package/dist/src/generator/generateComponents.js.map +1 -1
  68. package/dist/src/generator/templates/component.ejs.specs.js +4 -4
  69. package/dist/src/generator/templates/component.ejs.specs.js.map +1 -1
  70. package/dist/src/generator/templates/component.ejs.specs.ts +4 -4
  71. package/dist/src/generator/templates/page.ejs.specs.js +4 -4
  72. package/dist/src/generator/templates/page.ejs.specs.js.map +1 -1
  73. package/dist/src/generator/templates/page.ejs.specs.ts +4 -4
  74. package/dist/src/generator/type-guidance-builder.d.ts +2 -2
  75. package/dist/src/generator/type-guidance-builder.d.ts.map +1 -1
  76. package/dist/src/generator/type-guidance-builder.js +2 -2
  77. package/dist/src/generator/type-guidance-builder.js.map +1 -1
  78. package/dist/src/graphql-type-extractor.js +1 -1
  79. package/dist/src/graphql-type-extractor.js.map +1 -1
  80. package/dist/src/run-codegen.js +3 -3
  81. package/dist/src/run-codegen.js.map +1 -1
  82. package/dist/src/scaffold-gql-operations.d.ts +1 -1
  83. package/dist/src/scaffold-gql-operations.d.ts.map +1 -1
  84. package/dist/src/scaffold-gql-operations.js +5 -5
  85. package/dist/src/scaffold-gql-operations.js.map +1 -1
  86. package/dist/src/scaffold-gql-operations.specs.js +1 -1
  87. package/dist/src/scaffold-gql-operations.specs.js.map +1 -1
  88. package/dist/src/templates/createFile.js +3 -3
  89. package/dist/src/templates/createFile.js.map +1 -1
  90. package/dist/src/write-graphql-schema.js +2 -2
  91. package/dist/src/write-graphql-schema.js.map +1 -1
  92. package/dist/tsconfig.tsbuildinfo +1 -1
  93. package/package.json +4 -8
  94. package/dist/mui-starter/eslint.config.ts +0 -57
  95. package/dist/shadcn-starter/eslint.config.ts +0 -57
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @auto-engineer/frontend-react-graphql-generator
2
2
 
3
+ ## 0.14.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Rewrite CLI and Pipeline
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies []:
12
+ - @auto-engineer/ai-gateway@0.14.0
13
+ - @auto-engineer/message-bus@0.14.0
14
+
3
15
  ## 0.13.3
4
16
 
5
17
  ### Patch Changes
@@ -8,13 +8,9 @@
8
8
  "start": "vite",
9
9
  "build": "vite build",
10
10
  "build:dev": "vite build --mode development",
11
- "lint": "eslint .",
12
11
  "preview": "vite preview",
13
12
  "codegen": "graphql-codegen --config codegen.ts",
14
- "format": "prettier --write \"**/*.{js,ts,json,md,yml,yaml}\" --ignore-path ../../../.prettierignore --log-level warn",
15
13
  "type:check": "tsc --noEmit",
16
- "lint:fix": "eslint .",
17
- "format:fix": "prettier --write \"**/*.{js,ts,json,md,yml,yaml}\" --ignore-path ../../../.prettierignore --log-level warn",
18
14
  "auto-configure": "tsx auto-configure.ts"
19
15
  },
20
16
  "dependencies": {
@@ -49,7 +45,6 @@
49
45
  "commander": "^14.0.0"
50
46
  },
51
47
  "devDependencies": {
52
- "@eslint/js": "^9.9.0",
53
48
  "@graphql-codegen/cli": "3.2.0",
54
49
  "@graphql-codegen/client-preset": "2.1.0",
55
50
  "@graphql-typed-document-node/core": "^3.2.0",
@@ -58,13 +53,8 @@
58
53
  "@types/react-dom": "^18.3.0",
59
54
  "@vitejs/plugin-react": "^4.7.0",
60
55
  "autoprefixer": "^10.4.20",
61
- "eslint": "^9.9.0",
62
- "eslint-plugin-react-hooks": "^5.1.0-rc.0",
63
- "eslint-plugin-react-refresh": "^0.4.9",
64
- "globals": "^15.9.0",
65
56
  "postcss": "^8.4.47",
66
57
  "typescript": "^5.5.3",
67
- "typescript-eslint": "^8.0.1",
68
58
  "vite": "^5.4.1"
69
59
  }
70
60
  }
@@ -1,9 +1,9 @@
1
1
  import { ApolloProvider } from '@apollo/client';
2
+ import { ThemeProvider } from '@mui/material';
2
3
  import { BrowserRouter, Route, Routes } from 'react-router-dom';
4
+ import { apolloClient } from '@/apolloClient';
3
5
  import { Index } from '@/pages/Index';
4
6
  import { NotFound } from '@/pages/NotFound';
5
- import { apolloClient } from '@/apolloClient';
6
- import { ThemeProvider } from '@mui/material';
7
7
  import { theme } from '@/theme.ts';
8
8
 
9
9
  export const App = () => (
@@ -1,4 +1,4 @@
1
- import { ApolloClient, InMemoryCache, HttpLink } from '@apollo/client';
1
+ import { ApolloClient, HttpLink, InMemoryCache } from '@apollo/client';
2
2
 
3
3
  export const apolloClient = new ApolloClient({
4
4
  link: new HttpLink({
@@ -172,7 +172,7 @@ function useToast() {
172
172
  listeners.splice(index, 1);
173
173
  }
174
174
  };
175
- }, [state]);
175
+ }, []);
176
176
 
177
177
  return {
178
178
  ...state,
@@ -1,5 +1,5 @@
1
- import { useLocation } from 'react-router-dom';
2
1
  import { useEffect } from 'react';
2
+ import { useLocation } from 'react-router-dom';
3
3
 
4
4
  export const NotFound = () => {
5
5
  const location = useLocation();
@@ -1,6 +1,6 @@
1
- import { defineConfig } from 'vite';
1
+ import path from 'node:path';
2
2
  import react from '@vitejs/plugin-react';
3
- import path from 'path';
3
+ import { defineConfig } from 'vite';
4
4
  import postcss from './postcss.config';
5
5
 
6
6
  // https://vitejs.dev/config/
@@ -8,14 +8,10 @@
8
8
  "start": "vite",
9
9
  "build": "vite build",
10
10
  "build:dev": "vite build --mode development",
11
- "lint": "eslint .",
12
11
  "preview": "vite preview",
13
12
  "codegen": "graphql-codegen --config codegen.ts",
14
- "format": "prettier --write \"**/*.{js,ts,json,md,yml,yaml}\" --ignore-path ../../../.prettierignore --log-level warn",
15
13
  "type:check": "tsc --noEmit",
16
14
  "type-check": "tsc --noEmit",
17
- "lint:fix": "eslint .",
18
- "format:fix": "prettier --write \"**/*.{js,ts,json,md,yml,yaml}\" --ignore-path ../../../.prettierignore --log-level warn",
19
15
  "auto-configure": "tsx auto-configure.ts"
20
16
  },
21
17
  "dependencies": {
@@ -76,7 +72,6 @@
76
72
  "zod": "^3.25.63"
77
73
  },
78
74
  "devDependencies": {
79
- "@eslint/js": "^9.9.0",
80
75
  "@graphql-codegen/cli": "3.2.0",
81
76
  "@graphql-codegen/client-preset": "2.1.0",
82
77
  "@graphql-typed-document-node/core": "^3.2.0",
@@ -87,14 +82,9 @@
87
82
  "@types/recharts": "^2.0.1",
88
83
  "@vitejs/plugin-react": "^4.7.0",
89
84
  "autoprefixer": "^10.4.20",
90
- "eslint": "^9.9.0",
91
- "eslint-plugin-react-hooks": "^5.1.0-rc.0",
92
- "eslint-plugin-react-refresh": "^0.4.9",
93
- "globals": "^15.9.0",
94
85
  "postcss": "^8.4.47",
95
86
  "tailwindcss": "^3.4.11",
96
87
  "typescript": "^5.4.5",
97
- "typescript-eslint": "^8.0.1",
98
88
  "vite": "^5.4.1"
99
89
  }
100
90
  }
@@ -1,5 +1,5 @@
1
- import tailwindcss from 'tailwindcss';
2
1
  import autoprefixer from 'autoprefixer';
2
+ import tailwindcss from 'tailwindcss';
3
3
 
4
4
  export default {
5
5
  plugins: [tailwindcss, autoprefixer],
@@ -1,11 +1,11 @@
1
1
  import { ApolloProvider } from '@apollo/client';
2
+ import type React from 'react';
2
3
  // import { Toaster } from '@/components/atoms/toaster';
3
4
  // import { Toaster as Sonner } from '@/components/atoms/sonner';
4
5
  // import { TooltipProvider } from '@/components/atoms/tooltip';
5
6
  import { BrowserRouter, Route, Routes } from 'react-router-dom';
6
- import { NotFound } from '@/pages/NotFound';
7
7
  import { apolloClient } from '@/apolloClient';
8
- import React from 'react';
8
+ import { NotFound } from '@/pages/NotFound';
9
9
 
10
10
  // Type assertion workaround for React component type issues
11
11
  const ApolloProviderTyped = ApolloProvider as any;
@@ -1,4 +1,4 @@
1
- import { ApolloClient, InMemoryCache, HttpLink } from '@apollo/client';
1
+ import { ApolloClient, HttpLink, InMemoryCache } from '@apollo/client';
2
2
 
3
3
  export const apolloClient = new ApolloClient({
4
4
  link: new HttpLink({
@@ -1,6 +1,6 @@
1
- import * as React from 'react';
2
1
  import * as AccordionPrimitive from '@radix-ui/react-accordion';
3
2
  import { ChevronDown } from 'lucide-react';
3
+ import * as React from 'react';
4
4
 
5
5
  import { cn } from '@/lib/utils';
6
6
 
@@ -1,8 +1,7 @@
1
- import * as React from 'react';
2
1
  import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
3
-
4
- import { cn } from '@/lib/utils';
2
+ import * as React from 'react';
5
3
  import { buttonVariants } from '@/components/atoms/button';
4
+ import { cn } from '@/lib/utils';
6
5
 
7
6
  const AlertDialog = AlertDialogPrimitive.Root;
8
7
 
@@ -1,5 +1,5 @@
1
- import * as React from 'react';
2
1
  import { cva, type VariantProps } from 'class-variance-authority';
2
+ import * as React from 'react';
3
3
 
4
4
  import { cn } from '@/lib/utils';
5
5
 
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
 
3
- import * as React from 'react';
4
3
  import * as AvatarPrimitive from '@radix-ui/react-avatar';
4
+ import * as React from 'react';
5
5
 
6
6
  import { cn } from '@/lib/utils';
7
7
 
@@ -1,5 +1,5 @@
1
- import * as React from 'react';
2
1
  import { cva, type VariantProps } from 'class-variance-authority';
2
+ import type * as React from 'react';
3
3
 
4
4
  import { cn } from '@/lib/utils';
5
5
 
@@ -1,6 +1,6 @@
1
- import * as React from 'react';
2
1
  import { Slot } from '@radix-ui/react-slot';
3
2
  import { ChevronRight, MoreHorizontal } from 'lucide-react';
3
+ import * as React from 'react';
4
4
 
5
5
  import { cn } from '@/lib/utils';
6
6
 
@@ -1,6 +1,6 @@
1
- import * as React from 'react';
2
1
  import { Slot } from '@radix-ui/react-slot';
3
2
  import { cva, type VariantProps } from 'class-variance-authority';
3
+ import * as React from 'react';
4
4
 
5
5
  import { cn } from '@/lib/utils';
6
6
 
@@ -1,11 +1,10 @@
1
1
  'use client';
2
2
 
3
- import * as React from 'react';
4
3
  import { ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon } from 'lucide-react';
5
- import { DayButton, DayPicker, getDefaultClassNames } from 'react-day-picker';
6
-
7
- import { cn } from '@/lib/utils';
4
+ import * as React from 'react';
5
+ import { type DayButton, DayPicker, getDefaultClassNames } from 'react-day-picker';
8
6
  import { Button, buttonVariants } from '@/components/atoms/button';
7
+ import { cn } from '@/lib/utils';
9
8
 
10
9
  function Calendar({
11
10
  className,
@@ -1,9 +1,8 @@
1
- import * as React from 'react';
2
1
  import useEmblaCarousel, { type UseEmblaCarouselType } from 'embla-carousel-react';
3
2
  import { ArrowLeft, ArrowRight } from 'lucide-react';
4
-
5
- import { cn } from '@/lib/utils';
3
+ import * as React from 'react';
6
4
  import { Button } from '@/components/atoms/button';
5
+ import { cn } from '@/lib/utils';
7
6
 
8
7
  type CarouselApi = UseEmblaCarouselType[1];
9
8
  type UseCarouselParameters = Parameters<typeof useEmblaCarousel>;
@@ -1,6 +1,6 @@
1
- import * as React from 'react';
2
1
  import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
3
2
  import { Check } from 'lucide-react';
3
+ import * as React from 'react';
4
4
 
5
5
  import { cn } from '@/lib/utils';
6
6
 
@@ -1,12 +1,11 @@
1
1
  'use client';
2
2
 
3
- import * as React from 'react';
4
- import { type DialogProps } from '@radix-ui/react-dialog';
3
+ import type { DialogProps } from '@radix-ui/react-dialog';
5
4
  import { Command as CommandPrimitive } from 'cmdk';
6
5
  import { Search } from 'lucide-react';
7
-
8
- import { cn } from '@/lib/utils';
6
+ import * as React from 'react';
9
7
  import { Dialog, DialogContent } from '@/components/atoms/dialog';
8
+ import { cn } from '@/lib/utils';
10
9
 
11
10
  const Command = React.forwardRef<
12
11
  React.ElementRef<typeof CommandPrimitive>,
@@ -1,6 +1,6 @@
1
- import * as React from 'react';
2
1
  import * as ContextMenuPrimitive from '@radix-ui/react-context-menu';
3
2
  import { Check, ChevronRight, Circle } from 'lucide-react';
3
+ import * as React from 'react';
4
4
 
5
5
  import { cn } from '@/lib/utils';
6
6
 
@@ -1,8 +1,8 @@
1
1
  'use client';
2
2
 
3
- import * as React from 'react';
4
3
  import * as DialogPrimitive from '@radix-ui/react-dialog';
5
4
  import { X } from 'lucide-react';
5
+ import * as React from 'react';
6
6
 
7
7
  import { cn } from '@/lib/utils';
8
8
 
@@ -1,8 +1,8 @@
1
1
  'use client';
2
2
 
3
- import * as React from 'react';
4
3
  import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
5
4
  import { Check, ChevronRight, Circle } from 'lucide-react';
5
+ import * as React from 'react';
6
6
 
7
7
  import { cn } from '@/lib/utils';
8
8
 
@@ -1,17 +1,16 @@
1
- import * as React from 'react';
2
- import * as LabelPrimitive from '@radix-ui/react-label';
1
+ import type * as LabelPrimitive from '@radix-ui/react-label';
3
2
  import { Slot } from '@radix-ui/react-slot';
3
+ import * as React from 'react';
4
4
  import {
5
5
  Controller,
6
- FormProvider,
7
- useFormContext,
8
6
  type ControllerProps,
9
7
  type FieldPath,
10
8
  type FieldValues,
9
+ FormProvider,
10
+ useFormContext,
11
11
  } from 'react-hook-form';
12
-
13
- import { cn } from '@/lib/utils';
14
12
  import { Label } from '@/components/atoms/label';
13
+ import { cn } from '@/lib/utils';
15
14
 
16
15
  const Form = FormProvider;
17
16
 
@@ -1,5 +1,5 @@
1
- import * as React from 'react';
2
1
  import * as HoverCardPrimitive from '@radix-ui/react-hover-card';
2
+ import * as React from 'react';
3
3
 
4
4
  import { cn } from '@/lib/utils';
5
5
 
@@ -1,6 +1,6 @@
1
- import * as React from 'react';
2
1
  import { OTPInput, OTPInputContext } from 'input-otp';
3
2
  import { Dot } from 'lucide-react';
3
+ import * as React from 'react';
4
4
 
5
5
  import { cn } from '@/lib/utils';
6
6
 
@@ -1,8 +1,8 @@
1
1
  'use client';
2
2
 
3
- import * as React from 'react';
4
3
  import * as LabelPrimitive from '@radix-ui/react-label';
5
4
  import { cva, type VariantProps } from 'class-variance-authority';
5
+ import * as React from 'react';
6
6
 
7
7
  import { cn } from '@/lib/utils';
8
8
 
@@ -1,6 +1,6 @@
1
- import * as React from 'react';
2
1
  import * as MenubarPrimitive from '@radix-ui/react-menubar';
3
2
  import { Check, ChevronRight, Circle } from 'lucide-react';
3
+ import * as React from 'react';
4
4
 
5
5
  import { cn } from '@/lib/utils';
6
6
 
@@ -1,7 +1,7 @@
1
- import * as React from 'react';
2
1
  import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
3
2
  import { cva } from 'class-variance-authority';
4
3
  import { ChevronDown } from 'lucide-react';
4
+ import * as React from 'react';
5
5
 
6
6
  import { cn } from '@/lib/utils';
7
7
 
@@ -1,16 +1,10 @@
1
- import * as React from 'react';
2
1
  import { ChevronLeft, ChevronRight, MoreHorizontal } from 'lucide-react';
3
-
2
+ import * as React from 'react';
3
+ import { type ButtonProps, buttonVariants } from '@/components/atoms/button';
4
4
  import { cn } from '@/lib/utils';
5
- import { ButtonProps, buttonVariants } from '@/components/atoms/button';
6
5
 
7
6
  const Pagination = ({ className, ...props }: React.ComponentProps<'nav'>) => (
8
- <nav
9
- role="navigation"
10
- aria-label="pagination"
11
- className={cn('mx-auto flex w-full justify-center', className)}
12
- {...props}
13
- />
7
+ <nav aria-label="pagination" className={cn('mx-auto flex w-full justify-center', className)} {...props} />
14
8
  );
15
9
  Pagination.displayName = 'Pagination';
16
10
 
@@ -1,5 +1,5 @@
1
- import * as React from 'react';
2
1
  import * as PopoverPrimitive from '@radix-ui/react-popover';
2
+ import * as React from 'react';
3
3
 
4
4
  import { cn } from '@/lib/utils';
5
5
 
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
 
3
- import * as React from 'react';
4
3
  import * as ProgressPrimitive from '@radix-ui/react-progress';
4
+ import * as React from 'react';
5
5
 
6
6
  import { cn } from '@/lib/utils';
7
7
 
@@ -1,6 +1,6 @@
1
- import * as React from 'react';
2
1
  import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
3
2
  import { Circle } from 'lucide-react';
3
+ import * as React from 'react';
4
4
 
5
5
  import { cn } from '@/lib/utils';
6
6
 
@@ -1,5 +1,5 @@
1
- import * as React from 'react';
2
1
  import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
2
+ import * as React from 'react';
3
3
 
4
4
  import { cn } from '@/lib/utils';
5
5
 
@@ -1,8 +1,8 @@
1
1
  'use client';
2
2
 
3
- import * as React from 'react';
4
3
  import * as SelectPrimitive from '@radix-ui/react-select';
5
4
  import { Check, ChevronDown, ChevronUp } from 'lucide-react';
5
+ import * as React from 'react';
6
6
 
7
7
  import { cn } from '@/lib/utils';
8
8
 
@@ -1,5 +1,5 @@
1
- import * as React from 'react';
2
1
  import * as SeparatorPrimitive from '@radix-ui/react-separator';
2
+ import * as React from 'react';
3
3
 
4
4
  import { cn } from '@/lib/utils';
5
5
 
@@ -1,9 +1,9 @@
1
1
  'use client';
2
2
 
3
- import * as React from 'react';
4
3
  import * as SheetPrimitive from '@radix-ui/react-dialog';
5
4
  import { cva, type VariantProps } from 'class-variance-authority';
6
5
  import { X } from 'lucide-react';
6
+ import * as React from 'react';
7
7
 
8
8
  import { cn } from '@/lib/utils';
9
9
 
@@ -1,16 +1,15 @@
1
- import * as React from 'react';
2
1
  import { Slot } from '@radix-ui/react-slot';
3
- import { VariantProps, cva } from 'class-variance-authority';
2
+ import { cva, type VariantProps } from 'class-variance-authority';
4
3
  import { PanelLeft } from 'lucide-react';
5
-
6
- import { useMobile } from '@/hooks/use-mobile';
7
- import { cn } from '@/lib/utils';
4
+ import * as React from 'react';
8
5
  import { Button } from '@/components/atoms/button';
9
6
  import { Input } from '@/components/atoms/input';
10
7
  import { Separator } from '@/components/atoms/separator';
11
8
  import { Sheet, SheetContent, SheetDescription, SheetHeader, SheetTitle } from '@/components/atoms/sheet';
12
9
  import { Skeleton } from '@/components/atoms/skeleton';
13
10
  import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '@/components/atoms/tooltip';
11
+ import { useMobile } from '@/hooks/use-mobile';
12
+ import { cn } from '@/lib/utils';
14
13
 
15
14
  const SIDEBAR_COOKIE_NAME = 'sidebar_state';
16
15
  const SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
@@ -73,7 +72,7 @@ const SidebarProvider = React.forwardRef<
73
72
  // Helper to toggle the sidebar.
74
73
  const toggleSidebar = React.useCallback(() => {
75
74
  return isMobile ? setOpenMobile((open) => !open) : setOpen((open) => !open);
76
- }, [isMobile, setOpen, setOpenMobile]);
75
+ }, [isMobile, setOpen]);
77
76
 
78
77
  // Adds a keyboard shortcut to toggle the sidebar.
79
78
  React.useEffect(() => {
@@ -102,7 +101,7 @@ const SidebarProvider = React.forwardRef<
102
101
  setOpenMobile,
103
102
  toggleSidebar,
104
103
  }),
105
- [state, open, setOpen, isMobile, openMobile, setOpenMobile, toggleSidebar],
104
+ [state, open, setOpen, isMobile, openMobile, toggleSidebar],
106
105
  );
107
106
 
108
107
  return (
@@ -1,5 +1,5 @@
1
- import * as React from 'react';
2
1
  import * as SliderPrimitive from '@radix-ui/react-slider';
2
+ import * as React from 'react';
3
3
 
4
4
  import { cn } from '@/lib/utils';
5
5
 
@@ -1,5 +1,5 @@
1
- import * as React from 'react';
2
1
  import * as SwitchPrimitives from '@radix-ui/react-switch';
2
+ import * as React from 'react';
3
3
 
4
4
  import { cn } from '@/lib/utils';
5
5
 
@@ -1,5 +1,5 @@
1
- import * as React from 'react';
2
1
  import * as TabsPrimitive from '@radix-ui/react-tabs';
2
+ import * as React from 'react';
3
3
 
4
4
  import { cn } from '@/lib/utils';
5
5
 
@@ -1,11 +1,10 @@
1
1
  'use client';
2
2
 
3
- import * as React from 'react';
4
3
  import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
5
- import { type VariantProps } from 'class-variance-authority';
6
-
7
- import { cn } from '@/lib/utils';
4
+ import type { VariantProps } from 'class-variance-authority';
5
+ import * as React from 'react';
8
6
  import { toggleVariants } from '@/components/atoms/toggle';
7
+ import { cn } from '@/lib/utils';
9
8
 
10
9
  const ToggleGroupContext = React.createContext<VariantProps<typeof toggleVariants>>({
11
10
  size: 'default',
@@ -1,6 +1,6 @@
1
- import * as React from 'react';
2
1
  import * as TogglePrimitive from '@radix-ui/react-toggle';
3
2
  import { cva, type VariantProps } from 'class-variance-authority';
3
+ import * as React from 'react';
4
4
 
5
5
  import { cn } from '@/lib/utils';
6
6
 
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
 
3
- import * as React from 'react';
4
3
  import * as TooltipPrimitive from '@radix-ui/react-tooltip';
4
+ import * as React from 'react';
5
5
 
6
6
  import { cn } from '@/lib/utils';
7
7
 
@@ -172,7 +172,7 @@ function useToast() {
172
172
  listeners.splice(index, 1);
173
173
  }
174
174
  };
175
- }, [state]);
175
+ }, []);
176
176
 
177
177
  return {
178
178
  ...state,
@@ -1,4 +1,4 @@
1
- import { clsx, type ClassValue } from 'clsx';
1
+ import { type ClassValue, clsx } from 'clsx';
2
2
  import { twMerge } from 'tailwind-merge';
3
3
 
4
4
  export function cn(...inputs: ClassValue[]) {
@@ -1,5 +1,5 @@
1
- import { useLocation } from 'react-router-dom';
2
1
  import { useEffect } from 'react';
2
+ import { useLocation } from 'react-router-dom';
3
3
 
4
4
  export const NotFound = () => {
5
5
  const location = useLocation();
@@ -1,6 +1,6 @@
1
- import { defineConfig } from 'vite';
1
+ import path from 'node:path';
2
2
  import react from '@vitejs/plugin-react';
3
- import path from 'path';
3
+ import { defineConfig } from 'vite';
4
4
  import postcss from './postcss.config';
5
5
 
6
6
  // https://vitejs.dev/config/
@@ -1,5 +1,5 @@
1
- import * as fs from 'fs/promises';
2
- import * as path from 'path';
1
+ import * as fs from 'node:fs/promises';
2
+ import * as path from 'node:path';
3
3
  import createDebug from 'debug';
4
4
  const debug = createDebug('auto:frontend-generator-react-graphql:builder');
5
5
  const debugFiles = createDebug('auto:frontend-generator-react-graphql:builder:files');