feat(core,mdx): ReslideServerEmbed と埋め込み用サブパスエクスポート - #78
Merged
Conversation
…osable 化 Next.js App Router での埋め込みボイラープレートを削減するため: - ReslideServerEmbed: RSC対応の Server Component(data null 時のフォールバック内蔵) - @reslide-dev/core/embed: ReslideEmbed のみの軽量エントリポイント - @reslide-dev/core/server: ReslideServerEmbed のエントリポイント - toEmbedProps: CompileResult/ReslideEmbedData → ReslideEmbed props 変換 - CSS テーマを composable 化(カスタムプロパティベースに統一、dark/bare を簡素化) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Merged
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.
Summary
dataにCompileResultまたはReslideEmbedDataを渡すだけで、内部で Client Component への受け渡しを完結させる。data が null/undefined 時はフォールバックUI(カスタマイズ可能)を表示@reslide-dev/core/embed:ReslideEmbedのみを含む軽量エントリポイント。Deck, PresenterView 等がバンドルに含まれるのを防ぐ@reslide-dev/core/server:ReslideServerEmbedのエントリポイント("use client"なし)toEmbedProps:CompileResult/ReslideEmbedData→ReslideEmbedの props 変換ユーティリティ(@reslide-dev/mdx)default.cssのハードコード値をCSSカスタムプロパティに切り出し。dark.css/bare.cssはプロパティの上書きだけに簡素化。ユーザーはプロパティを上書きするだけでカスタムテーマを作成可能Before(ユーザー側で2ファイル必要)
After(1コンポーネントで完結)
Test plan
vp check— lint, format, 型チェック通過vp test— 既存テスト 94件 全パスReslideServerEmbedに移行して動作確認🤖 Generated with Claude Code