@ttsc/playground 0.19.0 → 0.19.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,8 +9,8 @@ interface ResultViewerProps {
9
9
  }
10
10
 
11
11
  /**
12
- * Read-only Monaco pane used to render the compiled / transformed output
13
- * with a copy button. Wraps `<Editor readOnly>` and adds the toast UI.
12
+ * Read-only Monaco pane used to render the compiled / transformed output with a
13
+ * copy button. Wraps `<Editor readOnly>` and adds the toast UI.
14
14
  */
15
15
  export function ResultViewer({ language, value }: ResultViewerProps) {
16
16
  const [copied, setCopied] = useState(false);
@@ -39,7 +39,7 @@ export function ResultViewer({ language, value }: ResultViewerProps) {
39
39
  {value && (
40
40
  <button
41
41
  onClick={onCopy}
42
- className="absolute top-2 right-3 z-10 px-2 py-1 text-[10px] font-mono text-neutral-300 bg-neutral-900/80 border border-neutral-700 rounded-md hover:bg-neutral-800 transition-colors"
42
+ className="absolute right-3 top-2 z-10 rounded-md border border-[#b9d5ee] bg-white/90 px-2 py-1 font-mono text-[10px] text-[#235a97] shadow-sm transition-colors hover:bg-[#eaf4ff]"
43
43
  >
44
44
  {copied ? "Copied ✓" : "Copy"}
45
45
  </button>
@@ -47,7 +47,7 @@ export function ResultViewer({ language, value }: ResultViewerProps) {
47
47
  <Editor
48
48
  height="100%"
49
49
  language={language}
50
- theme="vs-dark"
50
+ theme="vs"
51
51
  value={value}
52
52
  path={`output.${
53
53
  language === "typescript"
@@ -45,8 +45,7 @@ export function SourceEditor({
45
45
  tsd.setCompilerOptions({
46
46
  target: monaco.languages.typescript.ScriptTarget.ESNext,
47
47
  module: monaco.languages.typescript.ModuleKind.ESNext,
48
- moduleResolution:
49
- monaco.languages.typescript.ModuleResolutionKind.NodeJs,
48
+ moduleResolution: monaco.languages.typescript.ModuleResolutionKind.NodeJs,
50
49
  esModuleInterop: DEFAULT_PLAYGROUND_COMPILER_OPTIONS.esModuleInterop,
51
50
  strict: DEFAULT_PLAYGROUND_COMPILER_OPTIONS.strict,
52
51
  experimentalDecorators:
@@ -73,7 +72,7 @@ export function SourceEditor({
73
72
  <Editor
74
73
  height="100%"
75
74
  defaultLanguage="typescript"
76
- theme="vs-dark"
75
+ theme="vs"
77
76
  value={value}
78
77
  onChange={(v) => onChange(v ?? "")}
79
78
  onMount={handleMount}