feat(frontend): export useUrlPreview hook and URL preview components#82
Merged
Conversation
Buppy 통합을 위해 URL 미리보기 관련 기능을 NPM 패키지에서 public으로 export합니다. 추가된 export: - Hook: useUrlPreview - Components: UrlPreviewCard, UrlPreviewCardSkeleton - Utilities: detectUrl, mapPostPreviewToLinkPreview 이를 통해 Buppy에서 URL 미리보기 기능을 직접 활용할 수 있습니다.
|
🎉 This PR is included in version 1.14.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
요약
Buppy 통합을 위해 URL 미리보기 관련 기능을 NPM 패키지에서 공개합니다.
목적
현재
HomeHeroSection은 URL 미리보기 데이터(previewData,isLoadingPreview,previewError)를 Props로 받지만, 이를 생성하는useUrlPreviewhook이 export되지 않아 Buppy에서 사용할 수 없습니다. 이 PR은 URL 미리보기 관련 모든 기능을 공개하여 외부 라이브러리에서 활용할 수 있도록 합니다.주요 변경 사항
NPM 패키지 공개 항목
Hooks
useUrlPreview- URL 미리보기 데이터를 가져오고 관리하는 hookComponents
UrlPreviewCard- URL 미리보기를 표시하는 컴포넌트UrlPreviewCardSkeleton- 로딩 상태의 스켈레톤 컴포넌트Utilities
detectUrl- 텍스트에서 지원하는 도메인(X, Twitter, Reddit)의 URL을 감지mapPostPreviewToLinkPreview- Post 미리보기 데이터를 LinkPreview 형식으로 변환파일 수정
테스트 체크리스트
useUrlPreviewhook을 import하여 정상 작동 확인UrlPreviewCard컴포넌트를 import하여 정상 렌더링 확인detectUrl,mapPostPreviewToLinkPreviewutilities가 정상적으로 작동 확인연결 이슈