Commit Graph

6 Commits

Author SHA1 Message Date
Abhinav Kumar
a808b8376f feat: add close button to item control components 2025-07-04 18:32:23 +05:30
stan
ac41ed7768 fix: handle missing items gracefully in hooks and components
This resolves console errors when items are deleted or during undo/redo operations.

Changes:
- Added getItemById utility function that returns null instead of throwing
- Updated all item hooks to return null when items don't exist
- Added null checks in components that use these hooks
- Components now gracefully handle missing items by returning null
- Fixed TypeScript export syntax in standaloneExports.ts
- Added MUI dependencies as externals in webpack config

This fixes the "Item with id not found" errors that were occurring when:
- Using undo/redo functionality
- Items were deleted but components were still rendering
- React was unmounting components that referenced deleted items
2025-07-03 16:04:14 +01:00
Mark Mankarious
ad5a4e06f3 feat: refactors schema to accomodate model 2023-10-27 15:55:20 +01:00
Mark Mankarious
0580440b28 feat: imports isopacks as separate package 2023-10-03 15:44:27 +01:00
Mark Mankarious
cb36408173 feat: implements transform controls for rectangles 2023-09-01 14:06:46 +01:00
Mark Mankarious
c240def317 feat: implements text tool 2023-08-31 12:02:17 +01:00