Automattic / Automattic/wp-codebox

Expose browser preview starter through Codebox browser SDK

オープン
#1,502 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
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

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。