@ttsc/playground 0.15.1 → 0.15.3
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.
- package/lib/src/compiler/DEFAULT_PLAYGROUND_COMPILER_OPTIONS.d.ts +7 -6
- package/lib/src/compiler/DEFAULT_PLAYGROUND_COMPILER_OPTIONS.js +7 -6
- package/lib/src/compiler/DEFAULT_PLAYGROUND_COMPILER_OPTIONS.js.map +1 -1
- package/lib/src/react/ConsoleViewer.d.ts +1 -1
- package/lib/src/react/DependencyProgressModal.d.ts +1 -1
- package/lib/src/react/DiagnosticsPanel.d.ts +1 -1
- package/lib/src/react/ExamplePicker.d.ts +1 -1
- package/lib/src/react/LintPane.d.ts +1 -1
- package/lib/src/react/OptionsPanel.d.ts +1 -1
- package/lib/src/react/PlaygroundShell.d.ts +1 -1
- package/lib/src/react/SourceEditor.d.ts +1 -1
- package/package.json +4 -4
- package/src/compiler/DEFAULT_PLAYGROUND_COMPILER_OPTIONS.ts +7 -6
|
@@ -3,16 +3,17 @@
|
|
|
3
3
|
* pass these straight to `buildTsconfigJSON`; consumer code that needs a tweak
|
|
4
4
|
* spreads the constant and overrides individual fields.
|
|
5
5
|
*
|
|
6
|
-
* `target`
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
6
|
+
* Enum-typed options (`target`, `moduleResolution`, `module`) are spelled with
|
|
7
|
+
* their string names. The wasm runs the real tsgo configuration parser, which
|
|
8
|
+
* validates enum options against their name map and rejects raw numbers with
|
|
9
|
+
* `TS5024: Compiler option '…' requires a value of type enum.` — so a numeric
|
|
10
|
+
* `target: 99` aborts the whole compile and leaves the JS pane blank.
|
|
10
11
|
*/
|
|
11
12
|
export declare const DEFAULT_PLAYGROUND_COMPILER_OPTIONS: {
|
|
12
|
-
readonly target:
|
|
13
|
+
readonly target: "ESNext";
|
|
13
14
|
readonly esModuleInterop: true;
|
|
14
15
|
readonly forceConsistentCasingInFileNames: true;
|
|
15
|
-
readonly moduleResolution:
|
|
16
|
+
readonly moduleResolution: "Bundler";
|
|
16
17
|
readonly strict: true;
|
|
17
18
|
readonly skipLibCheck: true;
|
|
18
19
|
readonly experimentalDecorators: true;
|
|
@@ -6,16 +6,17 @@ exports.DEFAULT_PLAYGROUND_COMPILER_OPTIONS = void 0;
|
|
|
6
6
|
* pass these straight to `buildTsconfigJSON`; consumer code that needs a tweak
|
|
7
7
|
* spreads the constant and overrides individual fields.
|
|
8
8
|
*
|
|
9
|
-
* `target`
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
9
|
+
* Enum-typed options (`target`, `moduleResolution`, `module`) are spelled with
|
|
10
|
+
* their string names. The wasm runs the real tsgo configuration parser, which
|
|
11
|
+
* validates enum options against their name map and rejects raw numbers with
|
|
12
|
+
* `TS5024: Compiler option '…' requires a value of type enum.` — so a numeric
|
|
13
|
+
* `target: 99` aborts the whole compile and leaves the JS pane blank.
|
|
13
14
|
*/
|
|
14
15
|
exports.DEFAULT_PLAYGROUND_COMPILER_OPTIONS = {
|
|
15
|
-
target:
|
|
16
|
+
target: "ESNext",
|
|
16
17
|
esModuleInterop: true,
|
|
17
18
|
forceConsistentCasingInFileNames: true,
|
|
18
|
-
moduleResolution:
|
|
19
|
+
moduleResolution: "Bundler",
|
|
19
20
|
strict: true,
|
|
20
21
|
skipLibCheck: true,
|
|
21
22
|
experimentalDecorators: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DEFAULT_PLAYGROUND_COMPILER_OPTIONS.js","sourceRoot":"","sources":["../../../src/compiler/DEFAULT_PLAYGROUND_COMPILER_OPTIONS.ts"],"names":[],"mappings":";;;AAAA
|
|
1
|
+
{"version":3,"file":"DEFAULT_PLAYGROUND_COMPILER_OPTIONS.js","sourceRoot":"","sources":["../../../src/compiler/DEFAULT_PLAYGROUND_COMPILER_OPTIONS.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;GAUG;AACU,QAAA,mCAAmC,GAAG;IACjD,MAAM,EAAE,QAAQ;IAChB,eAAe,EAAE,IAAI;IACrB,gCAAgC,EAAE,IAAI;IACtC,gBAAgB,EAAE,SAAS;IAC3B,MAAM,EAAE,IAAI;IACZ,YAAY,EAAE,IAAI;IAClB,sBAAsB,EAAE,IAAI;CACpB,CAAC"}
|
|
@@ -3,5 +3,5 @@ interface ConsoleViewerProps {
|
|
|
3
3
|
messages: IConsoleMessage[];
|
|
4
4
|
empty?: string;
|
|
5
5
|
}
|
|
6
|
-
export declare function ConsoleViewer({ messages, empty }: ConsoleViewerProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare function ConsoleViewer({ messages, empty, }: ConsoleViewerProps): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export {};
|
|
@@ -3,5 +3,5 @@ interface DependencyProgressModalProps {
|
|
|
3
3
|
progress: IPlaygroundDependencyProgress | null;
|
|
4
4
|
packages: readonly string[];
|
|
5
5
|
}
|
|
6
|
-
export declare function DependencyProgressModal({ progress, packages }: DependencyProgressModalProps): import("react/jsx-runtime").JSX.Element | null;
|
|
6
|
+
export declare function DependencyProgressModal({ progress, packages, }: DependencyProgressModalProps): import("react/jsx-runtime").JSX.Element | null;
|
|
7
7
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ICompilerService } from "../structures/ICompilerService";
|
|
2
|
-
export declare function DiagnosticsPanel({ diagnostics }: {
|
|
2
|
+
export declare function DiagnosticsPanel({ diagnostics, }: {
|
|
3
3
|
diagnostics: ICompilerService.IDiagnostic[];
|
|
4
4
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -5,5 +5,5 @@ interface ExamplePickerProps {
|
|
|
5
5
|
/** Display labels for groups. Maps `group` key → rendered heading. */
|
|
6
6
|
groupLabels?: Record<string, string>;
|
|
7
7
|
}
|
|
8
|
-
export declare function ExamplePicker({ examples, onPick, groupLabels }: ExamplePickerProps): import("react/jsx-runtime").JSX.Element | null;
|
|
8
|
+
export declare function ExamplePicker({ examples, onPick, groupLabels, }: ExamplePickerProps): import("react/jsx-runtime").JSX.Element | null;
|
|
9
9
|
export {};
|
|
@@ -3,7 +3,7 @@ import type { ICompilerService } from "../structures/ICompilerService";
|
|
|
3
3
|
* Renders the lint plugin's findings in a list view. Shown by `PlaygroundShell`
|
|
4
4
|
* when the active tab is "lint". Empty state is the green checkmark.
|
|
5
5
|
*/
|
|
6
|
-
export declare function LintPane({ diagnostics, emptyHint }: {
|
|
6
|
+
export declare function LintPane({ diagnostics, emptyHint, }: {
|
|
7
7
|
diagnostics: ICompilerService.IDiagnostic[];
|
|
8
8
|
emptyHint?: string;
|
|
9
9
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -9,5 +9,5 @@ interface OptionsPanelProps {
|
|
|
9
9
|
/** Dialog heading. Defaults to "Transform Options". */
|
|
10
10
|
title?: string;
|
|
11
11
|
}
|
|
12
|
-
export declare function OptionsPanel({ options, onChange, onClose, toggles, title }: OptionsPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare function OptionsPanel({ options, onChange, onClose, toggles, title, }: OptionsPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { IPlaygroundShellProps } from "../structures/IPlaygroundShellProps";
|
|
2
|
-
export declare function PlaygroundShell({ workerUrl, defaultScript, examples, exampleGroupLabels, optionToggles, defaultOptions, staticEditorLibs, preinstalledPackages, executeBundle, brand, resultCaption }: IPlaygroundShellProps): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare function PlaygroundShell({ workerUrl, defaultScript, examples, exampleGroupLabels, optionToggles, defaultOptions, staticEditorLibs, preinstalledPackages, executeBundle, brand, resultCaption, }: IPlaygroundShellProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { ISourceEditorProps } from "../structures/ISourceEditorProps";
|
|
2
|
-
export declare function SourceEditor({ value, onChange, extraLibs, path }: ISourceEditorProps): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare function SourceEditor({ value, onChange, extraLibs, path, }: ISourceEditorProps): import("react/jsx-runtime").JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ttsc/playground",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.3",
|
|
4
4
|
"description": "Reusable React + Web Worker scaffolding for in-browser ttsc playgrounds built on @ttsc/wasm.",
|
|
5
5
|
"main": "lib/src/index.js",
|
|
6
6
|
"types": "lib/src/index.d.ts",
|
|
@@ -38,19 +38,19 @@
|
|
|
38
38
|
"react": "^18.0.0",
|
|
39
39
|
"react-dom": "^18.0.0",
|
|
40
40
|
"tgrid": "^1.0.3",
|
|
41
|
-
"@ttsc/wasm": "^0.15.
|
|
41
|
+
"@ttsc/wasm": "^0.15.3"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@monaco-editor/react": "^4.6.0",
|
|
45
45
|
"@types/node": "^25.3.0",
|
|
46
46
|
"@types/react": "^18.3.1",
|
|
47
|
-
"@typescript/native-preview": "7.0.0-dev.
|
|
47
|
+
"@typescript/native-preview": "7.0.0-dev.20260612.1",
|
|
48
48
|
"monaco-editor": "^0.52.0",
|
|
49
49
|
"react": "^18.3.1",
|
|
50
50
|
"react-dom": "^18.3.1",
|
|
51
51
|
"rimraf": "^6.1.2",
|
|
52
52
|
"tgrid": "^1.0.3",
|
|
53
|
-
"@ttsc/wasm": "^0.15.
|
|
53
|
+
"@ttsc/wasm": "^0.15.3"
|
|
54
54
|
},
|
|
55
55
|
"keywords": [
|
|
56
56
|
"ttsc",
|
|
@@ -3,16 +3,17 @@
|
|
|
3
3
|
* pass these straight to `buildTsconfigJSON`; consumer code that needs a tweak
|
|
4
4
|
* spreads the constant and overrides individual fields.
|
|
5
5
|
*
|
|
6
|
-
* `target`
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
6
|
+
* Enum-typed options (`target`, `moduleResolution`, `module`) are spelled with
|
|
7
|
+
* their string names. The wasm runs the real tsgo configuration parser, which
|
|
8
|
+
* validates enum options against their name map and rejects raw numbers with
|
|
9
|
+
* `TS5024: Compiler option '…' requires a value of type enum.` — so a numeric
|
|
10
|
+
* `target: 99` aborts the whole compile and leaves the JS pane blank.
|
|
10
11
|
*/
|
|
11
12
|
export const DEFAULT_PLAYGROUND_COMPILER_OPTIONS = {
|
|
12
|
-
target:
|
|
13
|
+
target: "ESNext",
|
|
13
14
|
esModuleInterop: true,
|
|
14
15
|
forceConsistentCasingInFileNames: true,
|
|
15
|
-
moduleResolution:
|
|
16
|
+
moduleResolution: "Bundler",
|
|
16
17
|
strict: true,
|
|
17
18
|
skipLibCheck: true,
|
|
18
19
|
experimentalDecorators: true,
|