Files
metabuilder/package.json
johndoe6345789 f2ebe17f02 feat(hooks): Add high-priority utility hooks
Created comprehensive hook packages addressing identified code duplication:

1. **@metabuilder/hooks-utils** (NEW)
   - useDebounced: Value debouncing with leading/trailing options
   - useThrottled: Value throttling for continuous updates
   - useTableState: Unified data grid with pagination, sorting, filtering, search
   - useAsyncOperation: Non-Redux async management with retry and caching

2. **@metabuilder/hooks-forms** (NEW)
   - useFormBuilder: Complete form state with validation and field arrays
   - Field-level and form-level validation
   - Touched/dirty tracking, submit state management
   - Strongly typed with TypeScript generics

Features:
- All hooks fully typed with TypeScript
- Comprehensive JSDoc with examples
- No external dependencies (React only)
- Memory-efficient implementations
- Chainable operations for data manipulation

Impact: Eliminates ~1,500 lines of duplicate code across workflowui,
codegen, and pastebin projects

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-01-23 19:24:18 +00:00

36 lines
725 B
JSON

{
"name": "metabuilder-root",
"version": "0.0.0",
"private": true,
"description": "MetaBuilder - Universal Platform",
"workspaces": [
"hooks",
"redux/core",
"redux/slices",
"redux/hooks",
"redux/adapters",
"redux/hooks-data",
"redux/hooks-auth",
"redux/hooks-canvas",
"redux/hooks-async",
"redux/hooks-utils",
"redux/hooks-forms",
"redux/core-hooks",
"redux/api-clients",
"redux/timing-utils",
"dbal/development",
"fakemui",
"frontends/nextjs",
"frontends/dbal",
"config",
"storybook"
],
"devDependencies": {
"@playwright/test": "^1.49.1",
"jsdom": "^27.4.0"
},
"dependencies": {
"@reduxjs/toolkit": "^2.0.0"
}
}