Ports the vanilla spawn form/modal to src/components/spawn/: SpawnModal, SpawnForm, DirAutocomplete, BranchPicker, and a useFastForward hook for the one-keystroke spawn. Pure logic modules (spawnForm.ts's buildSpawnRequest, fastForward.ts, spawnSimilar.ts, projectList.ts, toolIcon.ts) are reused as-is rather than re-derived. Exports supportsStructuredView from spawnForm.ts so the React form can share the structured-view-eligibility check with the vanilla one.
9 lines
590 B
TypeScript
9 lines
590 B
TypeScript
export { SpawnModal, type SpawnModalProps } from "./SpawnModal.js";
|
|
export { SpawnForm, type SpawnFormProps } from "./SpawnForm.js";
|
|
export { DirAutocomplete, type DirAutocompleteProps } from "./DirAutocomplete.js";
|
|
export { BranchPicker, type BranchPickerProps } from "./BranchPicker.js";
|
|
export { useFastForward, type UseFastForwardOptions } from "./useFastForward.js";
|
|
// spawnSimilar.ts is pure seed-building logic with no DOM dependency — reused
|
|
// as-is rather than re-implemented for React (#248).
|
|
export { spawnSimilarSeed, spawnSimilarProjectSeed } from "../../spawnSimilar.js";
|