Automattic / Automattic/wp-codebox
Expose browser preview starter through Codebox browser SDK
- 主要言語
- TypeScript
- スター
- 16
- フォーク
- 4
- 平均マージ
- 59分
- マージ済み PR(30日)
- 131
説明
Studio Native still has to dynamically import the raw Playground client module and call startPlaygroundWeb during browser preview boot. That keeps a product consumer coupled to Playground internals instead of the Codebox public browser SDK.\n\nNeeded contract:\n- A versioned browser SDK method, e.g. window.wpCodeboxBrowser.v1.startBrowserPreview(...) or equivalent, that accepts the Codebox preview boot DTO/session boot contract and returns the browser client/session handle currently returned by startPlaygroundWeb.\n- The product should not need to read client_module_url or import @wp-playground/client directly.\n\nConsumer blocker:\n- studio-native assets/preview/codebox-client.ts cannot remove the dynamic startPlaygroundWeb import until this contract exists.
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
studio-native assets/preview/codebox-client.ts から始め、動的な startPlaygroundWeb の import と client_module_url の使用を追跡します。既存のブラウザー SDK のエントリーポイントと、Codebox プレビューの boot DTO/セッション boot のコントラクトを読みます。ブラウザー SDK のバージョン管理されたメソッドが現在のブラウザークライアント/セッションハンドルを公開し、consumer が @wp-playground/client を直接 import する必要がなくなれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- typescript
- 領域
- api
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 静か
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 52/100