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