Closed ju-ki closed 1 month ago
[!IMPORTANT]
Review skipped
Auto reviews are disabled on base/target branches other than the default branch.
Please check the settings in the CodeRabbit UI or the
.coderabbit.yaml
file in this repository. To trigger a single review, invoke the@coderabbitai review
command.You can disable this status message by setting the
reviews.review_status
tofalse
in the CodeRabbit configuration file.
変更は、画像のプレビュー、背景色、見出し、リンクツールバー、引用、および画像ノードに関連するコンポーネントの機能を強化します。これにより、画像の削除、色の表現の変更、見出しと段落の切り替え、リンクの管理、引用のトグル、画像ノードの複製と更新が可能になります。全体として、エディタの操作性が向上します。
ファイルパス | 変更の概要 |
---|---|
frontend/src/components/Common/Image/index.tsx |
ImagePreview コンポーネントにhandleDelete 関数を追加し、画像ノードの削除を可能に。ボタンを追加し、レスポンシブデザインのスタイルを適用。 |
frontend/src/plugins/BackgroundColorPlugin/index.tsx |
ColorType オブジェクトのwhite のマッピングを'disabled' に変更し、RadioGroupItem のクラスをbg-white に更新。 |
frontend/src/plugins/HeadingPlugin/index.tsx |
formatHeading 関数のロジックを修正し、見出しと段落の切り替えを直感的に実現。 |
frontend/src/plugins/LinkToolbarPlugin/index.tsx |
リンクの管理機能を追加し、選択されたノードのリンク状態をトグルするボタンを実装。 |
frontend/src/plugins/QuotePlugin/index.tsx |
選択範囲に基づいて引用と段落のブロックタイプをトグルするロジックを追加。 |
frontend/src/plugins/nodes/ImageNode/index.tsx |
ImageNode クラスにclone とupdateDOM の2つの新しい静的メソッドを追加。 |
sequenceDiagram
participant User
participant Editor
participant ImagePreview
participant ImageNode
User->>ImagePreview: 画像を削除
ImagePreview->>Editor: handleDelete()を呼び出す
Editor->>ImageNode: $getNodeByKey()でノードを取得
ImageNode-->>Editor: ノードが存在する場合、削除
🐰 うさぎの詩 🐰
画像を削除、色を変え、
見出しと段落、自由に行こう。
リンクをトグル、引用も楽しみ、
新しい機能、みんなでワクワク。
編集の旅は続くよ、
うさぎと共に、さあ行こう! 🌼✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
@coderabbitai review
This PR is automatically created by GitHub Actions
Summary by CodeRabbit
新機能
スタイル