Separate UI and tools into different entrypoints to create a fully headless editor with minimal bundle size
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Tái cấu trúc
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- react, typescript
- Lĩnh vực
- frontend
Hướng nghiên cứu
Issue đề xuất các entrypoint hoặc package riêng biệt core và ui, với các command, utility, type, helper của TextArea, Context và export của Editor được liệt kê. Hãy bắt đầu bằng cách lập bản đồ các package export và dependency hiện tại liên quan đến những component này; không có file hoặc test nào được nêu tên. Công việc được xem là hoàn tất khi có một headless entrypoint được tài liệu hóa, loại trừ các UI component, và một UI entrypoint cung cấp Editor cùng styles.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
First of all, love the package and I think it fills a gap in the ecosystem.
I'm creating this issue to discuss and get alignment on a possible future refactor that would allow this package to be even more useful.
After https://github.com/uiwjs/react-md-editor/pull/697 the package already allows to replace all UI elements and use your own, which is great for uses when the look and feel is meant to come from an external component/design system. The only problem is that right now the bundle still includes some UI components, so they are added to the application's final bundle size even if they're not needed.
What do you think about separating the package like this:
@uiwjs/react-md-editor/core: exports all headless tools and utilities, allowing the user the build a fully custom UI with them
Exports:
- commands
- utils
- types
- components/TextArea/shortcuts
- components/TextArea/handleKeyDown
- Context
@uiwjs/react-md-editor/ui: ready-made React components, allowing the user to quickly integrate an existing editor into their application
Exports:
- Editor
Bundles LESS styles
Uses the core package internally
Alternatively, they could be separate packages, published separately.
I may be forgetting an import here or there, but I hope this describes the idea.
Do you have any questions, concerns, thoughts on this? Maybe we could agree on a final scope and take this into consideration for the next major version?
- Ngôn ngữ chính
- TypeScript
- Star
- 2.9k
- Fork
- 200
- Merge trung bình
- 6 giờ 38 phút
- Pull request đã merge (30 ngày)
- 16
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của uiwjs/react-md-editor
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
uiwjs/react-md-editor#730 · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Setting background color overwrites the textarea font colorCó thể đã có người làm @hiyouwhatsapp đã nhận 11 ngày trước. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
uiwjs/react-md-editor#701 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Edit preview with live updatesĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
uiwjs/react-md-editor#695 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Not hide full screen optionĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 45/100
uiwjs/react-md-editor#694 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
uiwjs/react-md-editor#693 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của uiwjs/react-md-editor
Issue tương tự
-
Bug: Cloudflare Pages static _redirects identity rule causes RSC Flight to reload as HTMLCó thể đã có người làm @Donvero đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Mantitup-Org/vista#210 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
simstudioai/sim#9831 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
status: waiting for maintainer
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
mui/material-ui#49751 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
diplodoc-platform/transform#1184 ·
Maintainer thường phản hồi trong vòng 1 ngày