diff --git a/bun.lock b/bun.lock
index 4a2cb68..076a401 100644
--- a/bun.lock
+++ b/bun.lock
@@ -8,7 +8,6 @@
"@monaco-editor/react": "^4.7.0",
"@shikijs/monaco": "^4.3.0",
"@shikijs/vscode-textmate": "^10.0.2",
- "@tscircuit/runframe": "^0.0.2128",
"@typescript/ata": "^0.9.8",
"monaco-editor": "^0.55.1",
"shiki": "^4.3.0",
diff --git a/examples/TscircuitWorkspaceWithRunframe.fixture.tsx b/examples/TscircuitWorkspaceWithRunframe.fixture.tsx
index b6ea7be..5401ace 100644
--- a/examples/TscircuitWorkspaceWithRunframe.fixture.tsx
+++ b/examples/TscircuitWorkspaceWithRunframe.fixture.tsx
@@ -1,8 +1,8 @@
+import { RunFrame } from "@tscircuit/runframe/runner"
import { useMemo, useState } from "react"
import "../src/styles.css"
import type { EditorFile } from "../src"
import { resolveTscircuitEntrypoint } from "../fixtures-support/resolveTscircuitEntrypoint"
-import { SuspenseRunFrame } from "../src/components/SuspenseRunFrame"
import { WorkspaceCodeEditor } from "../src/components/WorkspaceCodeEditor"
import { useWorkspaceFiles } from "../src/hooks/useWorkspaceFiles"
@@ -135,16 +135,18 @@ export default function TscircuitWorkspaceWithRunframeFixture() {
-
setLastRenderState("running")}
- onRenderFinished={() => setLastRenderState("finished")}
- />
+
+ setLastRenderState("running")}
+ onRenderFinished={() => setLastRenderState("finished")}
+ />
+
diff --git a/fixtures-support/resolveTscircuitEntrypoint.ts b/fixtures-support/resolveTscircuitEntrypoint.ts
index 2ea6e06..739b8a8 100644
--- a/fixtures-support/resolveTscircuitEntrypoint.ts
+++ b/fixtures-support/resolveTscircuitEntrypoint.ts
@@ -4,16 +4,6 @@ import type { EditorFile } from "../src"
// Cosmos runframe example runs the selected runnable file instead of always
// falling back to index.tsx. This stays outside src/ because it is not part of
// the public editor/workspace library API.
-export const hasDefaultEntrypointExport = (code: string) => {
- return (
- /export default\s+\w+/.test(code) ||
- /export default\s+function\s*(\w*)\s*\(/.test(code) ||
- /export default\s*\(\s*\)\s*=>/.test(code) ||
- /export default\s*\(.*?\)\s*=>/.test(code) ||
- /export\s*\{\s*\w+\s+as\s+default\s*\}/.test(code)
- )
-}
-
const findConfiguredEntrypoint = (
files: EditorFile[],
field: "mainEntrypoint" | "previewComponentPath",
@@ -44,11 +34,7 @@ export const resolveTscircuitEntrypoint = (
? files.find((file) => file.path === currentFile)
: null
- if (
- currentFileData &&
- /\.(ts|tsx)$/.test(currentFileData.path) &&
- hasDefaultEntrypointExport(currentFileData.content)
- ) {
+ if (currentFileData && /\.(ts|tsx)$/.test(currentFileData.path)) {
return currentFileData.path
}
diff --git a/package.json b/package.json
index 2afd1d3..ebfa29c 100644
--- a/package.json
+++ b/package.json
@@ -11,7 +11,7 @@
},
"scripts": {
"build": "bun run build:lib",
- "build:lib": "tsc --noEmit && tsup src/index.ts --format esm --dts --external react,react-dom,@monaco-editor/react,monaco-editor,@typescript/ata,typescript,@tscircuit/runframe",
+ "build:lib": "tsc --noEmit && tsup src/index.ts --format esm --dts --external react,react-dom,@monaco-editor/react,monaco-editor,@typescript/ata,typescript",
"dev": "cosmos",
"cosmos": "cosmos",
"cosmos:export": "cosmos-export",
diff --git a/src/components/SuspenseRunFrame.tsx b/src/components/SuspenseRunFrame.tsx
deleted file mode 100644
index ac29c35..0000000
--- a/src/components/SuspenseRunFrame.tsx
+++ /dev/null
@@ -1,16 +0,0 @@
-import { RunFrame } from "@tscircuit/runframe/runner"
-
-export type SuspenseRunFrameProps = React.ComponentProps & {
- className?: string
-}
-
-export function SuspenseRunFrame({
- className,
- ...props
-}: SuspenseRunFrameProps) {
- return (
-
-
-
- )
-}