Skip to content

Commit a4e888d

Browse files
authored
feat(2.0): terracotta@next (#2118)
1 parent b6c3480 commit a4e888d

3 files changed

Lines changed: 37 additions & 16 deletions

File tree

packages/start/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@
6363
"solid-js": "2.0.0-beta.3",
6464
"source-map-js": "^1.2.1",
6565
"srvx": "^0.11.9",
66+
"terracotta": "2.0.0-next.2",
6667
"vite-plugin-solid": "3.0.0-next.2"
6768
},
6869
"engines": {

packages/start/src/shared/dev-overlay/DevOverlayDialog.tsx

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,8 @@ import * as htmlToImage from "html-to-image";
44
import type { JSX } from "solid-js";
55
import { Errored, For, Show, Loading, createMemo, createSignal } from "solid-js";
66
import { Portal } from "@solidjs/web";
7-
// @ts-ignore - terracotta removed during Solid 2.0 migration; stubbed below
8-
// import { Dialog, DialogOverlay, DialogPanel, Select, SelectOption } from "terracotta";
9-
10-
// Minimal stubs for terracotta components (removed during Solid 2.0 migration).
11-
// These are only used in the dev error overlay so exact behaviour is not critical.
12-
function Dialog(props: any) { return <div class={props.class}>{props.children}</div>; }
13-
function DialogOverlay(props: any) { return <div class={props.class} />; }
14-
function DialogPanel(props: any) { return <div ref={props.ref} class={props.class}>{props.children}</div>; }
15-
function Select<T>(props: any) { return <div class={props.class}>{props.children}</div>; }
16-
function SelectOption(props: any) { return <div class={props.class}>{props.children}</div>; }
7+
import { Dialog, DialogOverlay, DialogPanel } from 'terracotta/dialog';
8+
import { Select, SelectOption } from 'terracotta/select';
179
import info from "../../../package.json" with { type: "json" };
1810
import { CodeView } from "./CodeView.tsx";
1911
import { createStackFrame, type StackFrameSource } from "./createStackFrame.ts";

pnpm-lock.yaml

Lines changed: 34 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)