mirror of
https://github.com/johndoe6345789/low-code-react-app-b.git
synced 2026-04-24 05:34:58 +00:00
- Introduced `menu.json` for menu component structure with bindings for trigger and content. - Created `password-input.json` for password input handling visibility and value changes. - Added `popover.json` for popover component with trigger and content bindings. feat: Implement custom hooks for UI interactions - Added `useAccordion` for managing accordion state with single/multiple item support. - Created `useBindingEditor` for managing bindings in a dynamic editor. - Implemented `useCopyState` for clipboard copy functionality with feedback. - Developed `useFileUpload` for handling file uploads with drag-and-drop support. - Introduced `useFocusState` for managing focus state in components. - Created `useImageState` for handling image loading and error states. - Added `useMenuState` for managing menu interactions and item clicks. - Implemented `usePasswordVisibility` for toggling password visibility. - Developed `usePopoverState` for managing popover visibility and interactions. feat: Add constants and interfaces for JSON UI components - Introduced constants for sizes, placements, styles, and object-fit handling. - Created interfaces for various components including Accordion, Binding Editor, Copy Button, Data Source Editor, File Upload, and more. - Added type definitions for menu items, popover props, and other UI elements to enhance type safety and maintainability.
129 lines
5.0 KiB
JSON
129 lines
5.0 KiB
JSON
{
|
|
"name": "spark-template",
|
|
"private": true,
|
|
"version": "0.0.0",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"kill": "fuser -k 5000/tcp",
|
|
"predev": "npm run components:generate-types",
|
|
"prebuild": "npm run components:generate-types && mkdir -p /tmp/dist || true",
|
|
"build": "tsc -b --noCheck && vite build",
|
|
"lint": "eslint . --fix && npm run lint:schemas",
|
|
"lint:check": "eslint . && npm run lint:schemas",
|
|
"lint:schemas": "node scripts/lint-json-ui-schemas.cjs",
|
|
"optimize": "vite optimize",
|
|
"preview": "vite preview --host 0.0.0.0 --port ${PORT:-80}",
|
|
"test:e2e": "playwright test",
|
|
"test:e2e:ui": "playwright test --ui",
|
|
"test:e2e:headed": "playwright test --headed",
|
|
"test:e2e:smoke": "playwright test smoke.spec.ts",
|
|
"test:e2e:debug": "playwright test --debug",
|
|
"test:e2e:report": "playwright show-report",
|
|
"pages:list": "node scripts/list-pages.js",
|
|
"pages:validate": "tsx src/config/validate-config.ts",
|
|
"pages:generate": "node scripts/generate-page.js",
|
|
"schemas:validate": "tsx scripts/validate-json-schemas.ts",
|
|
"components:list": "node scripts/list-json-components.cjs",
|
|
"components:generate-types": "tsx scripts/generate-json-ui-component-types.ts",
|
|
"components:scan": "node scripts/scan-and-update-registry.cjs",
|
|
"components:validate": "node scripts/validate-supported-components.cjs && tsx scripts/validate-json-registry.ts",
|
|
"audit:json": "tsx scripts/audit-json-components.ts"
|
|
},
|
|
"dependencies": {
|
|
"@heroicons/react": "^2.2.0",
|
|
"@hookform/resolvers": "^4.1.3",
|
|
"@monaco-editor/react": "^4.7.0",
|
|
"@octokit/core": "^6.1.4",
|
|
"@phosphor-icons/react": "^2.1.7",
|
|
"@radix-ui/colors": "^3.0.0",
|
|
"@radix-ui/react-accordion": "^1.2.3",
|
|
"@radix-ui/react-alert-dialog": "^1.1.6",
|
|
"@radix-ui/react-aspect-ratio": "^1.1.2",
|
|
"@radix-ui/react-avatar": "^1.1.3",
|
|
"@radix-ui/react-checkbox": "^1.1.4",
|
|
"@radix-ui/react-collapsible": "^1.1.3",
|
|
"@radix-ui/react-context-menu": "^2.2.6",
|
|
"@radix-ui/react-dialog": "^1.1.6",
|
|
"@radix-ui/react-dropdown-menu": "^2.1.6",
|
|
"@radix-ui/react-hover-card": "^1.1.6",
|
|
"@radix-ui/react-label": "^2.1.2",
|
|
"@radix-ui/react-menubar": "^1.1.6",
|
|
"@radix-ui/react-navigation-menu": "^1.2.5",
|
|
"@radix-ui/react-popover": "^1.1.6",
|
|
"@radix-ui/react-progress": "^1.1.2",
|
|
"@radix-ui/react-radio-group": "^1.2.3",
|
|
"@radix-ui/react-scroll-area": "^1.2.9",
|
|
"@radix-ui/react-select": "^2.1.6",
|
|
"@radix-ui/react-separator": "^1.1.2",
|
|
"@radix-ui/react-slider": "^1.3.6",
|
|
"@radix-ui/react-slot": "^1.1.2",
|
|
"@radix-ui/react-switch": "^1.1.3",
|
|
"@radix-ui/react-tabs": "^1.1.3",
|
|
"@radix-ui/react-toggle": "^1.1.2",
|
|
"@radix-ui/react-toggle-group": "^1.1.2",
|
|
"@radix-ui/react-tooltip": "^1.1.8",
|
|
"@reduxjs/toolkit": "^2.11.2",
|
|
"@tailwindcss/container-queries": "^0.1.1",
|
|
"@tailwindcss/vite": "^4.1.11",
|
|
"@tanstack/react-query": "^5.83.1",
|
|
"class-variance-authority": "^0.7.1",
|
|
"clsx": "^2.1.1",
|
|
"cmdk": "^1.1.1",
|
|
"d3": "^7.9.0",
|
|
"date-fns": "^3.6.0",
|
|
"embla-carousel-react": "^8.5.2",
|
|
"framer-motion": "^12.6.2",
|
|
"input-otp": "^1.4.2",
|
|
"jszip": "^3.10.1",
|
|
"lucide-react": "^0.484.0",
|
|
"marked": "^15.0.7",
|
|
"next-themes": "^0.4.6",
|
|
"octokit": "^4.1.2",
|
|
"react": "^19.0.0",
|
|
"react-day-picker": "^9.6.7",
|
|
"react-dom": "^19.0.0",
|
|
"react-error-boundary": "^6.0.0",
|
|
"react-hook-form": "^7.54.2",
|
|
"react-redux": "^9.2.0",
|
|
"react-resizable-panels": "^2.1.7",
|
|
"react-router-dom": "^7.12.0",
|
|
"reactflow": "^11.11.4",
|
|
"recharts": "^2.15.1",
|
|
"redux-persist": "^6.0.0",
|
|
"sass": "^1.97.2",
|
|
"sonner": "^2.0.1",
|
|
"tailwind-merge": "^3.0.2",
|
|
"three": "^0.175.0",
|
|
"tw-animate-css": "^1.2.4",
|
|
"uuid": "^11.1.0",
|
|
"vaul": "^1.1.2",
|
|
"zod": "^4.3.5"
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/js": "^9.21.0",
|
|
"@playwright/test": "^1.57.0",
|
|
"@tailwindcss/postcss": "^4.1.18",
|
|
"@types/react": "^19.0.10",
|
|
"@types/react-dom": "^19.0.4",
|
|
"@vitejs/plugin-react-swc": "^4.2.2",
|
|
"eslint": "^9.39.2",
|
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
"eslint-plugin-react-refresh": "^0.4.19",
|
|
"globals": "^17.0.0",
|
|
"tailwindcss": "^4.1.11",
|
|
"terser": "^5.46.0",
|
|
"tsx": "^4.21.0",
|
|
"typescript": "~5.7.2",
|
|
"typescript-eslint": "^8.38.0",
|
|
"vite": "^7.3.1"
|
|
},
|
|
"overrides": {
|
|
"react": "^19.0.0",
|
|
"react-dom": "^19.0.0",
|
|
"@types/react": "^19.0.10",
|
|
"@types/react-dom": "^19.0.4",
|
|
"vite": "^7.3.1"
|
|
}
|
|
}
|