-
Notifications
You must be signed in to change notification settings - Fork 0
feat: AI Editor #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…er namespace isolation
…o ImageKit editor
…-retry functionality
…rict type checking
…ved navigation controls
…ckage version to 0.0.46
## New Features - Add useVisibility hook for intersection observer-based lazy loading - Supports configurable root margin (default: 300px) - Includes fallback for environments without IntersectionObserver - Provides ref and visible state for component integration ## UI Improvements - Optimize toolbar image thumbnail dimensions - Reduce thumbnail height from 32 to 24 units - Reduce thumbnail width from 40 to 32 units - Adjust minimum width from 40 to 32 units - Improve toolbar scrolling behavior - Add overflowY: hidden to prevent vertical scrolling - Add vertical padding (pt: 2.5, pb: 2) for better spacing - Remove hover scale transform effect for smoother interactions - Commented out transform: "scale(1.02)" on hover - Maintains box shadow hover effect for visual feedback ## Performance Enhancements - Smaller thumbnail sizes reduce memory usage and improve rendering - useVisibility hook enables lazy loading capabilities for better performance - Optimized scrolling container prevents unnecessary overflow ## Technical Details - useVisibility hook uses TypeScript generics for type safety - Includes proper cleanup and cancellation handling - Fallback detection for elements already in viewport - Compatible with custom root elements and configurable margins
…ons and improve error state styling
hrhv
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor comments. Rest lgtm
| @@ -0,0 +1,111 @@ | |||
| import { Box, Button, Flex, Text, Tooltip } from "@chakra-ui/react" | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Text is unused.
| } | ||
| }} | ||
| _hover={{ | ||
| // transform: "scale(1.02)", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this intentional?
| @@ -0,0 +1,185 @@ | |||
| import { Box, Button, Flex, HStack, Icon, Text, VStack } from "@chakra-ui/react" | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Flex is unused
| import { | ||
| Alert, | ||
| AlertDescription, | ||
| AlertIcon, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AlertIcon is unused
… and cleaner retry logic
…ableImage component
No description provided.