@ttsc/playground 0.14.0-dev.20260529.1 → 0.14.0-dev.20260529.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.
- package/README.md +4 -4
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
Reusable Web Worker + React scaffolding for in-browser [`ttsc`](https://ttsc.dev) playgrounds. Built on top of [`@ttsc/wasm`](https://github.com/samchon/ttsc/tree/master/packages/wasm).
|
|
6
6
|
|
|
7
|
-
The package handles the parts every browser playground needs
|
|
7
|
+
The package handles the parts every browser playground needs, worker boot, MemFS layout, race-guarded compile / lint / bundle calls, on-the-fly npm dependency installer, typia source-pack mounting, console-capturing execute sandbox, and ships a Tailwind-styled React shell that wires them all up. Sites supply the wasm URL, a default script, and (optionally) examples, brand slot, and an execute callback.
|
|
8
8
|
|
|
9
9
|
The ttsc website (`ttsc.dev`) and the typia website (`typia.io`) are the two reference consumers.
|
|
10
10
|
|
|
@@ -17,7 +17,7 @@ npm install @ttsc/playground @ttsc/wasm \
|
|
|
17
17
|
|
|
18
18
|
`@monaco-editor/react`, `monaco-editor`, `react`, `react-dom`, `tgrid`, and `@ttsc/wasm` are **peer dependencies**. `lz-string` is bundled.
|
|
19
19
|
|
|
20
|
-
The React components use Tailwind 4 utility classes
|
|
20
|
+
The React components use Tailwind 4 utility classes. See [Tailwind setup](#tailwind-setup) below.
|
|
21
21
|
|
|
22
22
|
## What you get
|
|
23
23
|
|
|
@@ -125,7 +125,7 @@ The typia pack itself is built by the site (typically with a `pack-typia-sources
|
|
|
125
125
|
|
|
126
126
|
## Runtime npm dependency installer
|
|
127
127
|
|
|
128
|
-
When the user types `import {v4} from "uuid"`, the shell auto-fetches `uuid` (and its transitive deps) from the npm registry, unpacks the tgz in the browser, and mounts the files into the wasm MemFS
|
|
128
|
+
When the user types `import {v4} from "uuid"`, the shell auto-fetches `uuid` (and its transitive deps) from the npm registry, unpacks the tgz in the browser, and mounts the files into the wasm MemFS, no proxy server needed.
|
|
129
129
|
|
|
130
130
|
```ts
|
|
131
131
|
import {
|
|
@@ -168,7 +168,7 @@ export default config;
|
|
|
168
168
|
|
|
169
169
|
Then `import "./global.css"` from the root layout.
|
|
170
170
|
|
|
171
|
-
**`@ttsc/playground` must be a direct dependency** of the consuming package. Tailwind only scans paths the consumer points at
|
|
171
|
+
**`@ttsc/playground` must be a direct dependency** of the consuming package. Tailwind only scans paths the consumer points at. A transitively-installed copy (where @ttsc/playground is a dep of another package) lives under a different node_modules layout and the glob above won't find it without explicit re-targeting.
|
|
172
172
|
|
|
173
173
|
## Booting a custom wasm
|
|
174
174
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ttsc/playground",
|
|
3
|
-
"version": "0.14.0-dev.20260529.
|
|
3
|
+
"version": "0.14.0-dev.20260529.2",
|
|
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,7 +38,7 @@
|
|
|
38
38
|
"react": "^18.0.0",
|
|
39
39
|
"react-dom": "^18.0.0",
|
|
40
40
|
"tgrid": "^1.0.3",
|
|
41
|
-
"@ttsc/wasm": "^0.14.0-dev.20260529.
|
|
41
|
+
"@ttsc/wasm": "^0.14.0-dev.20260529.2"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@monaco-editor/react": "^4.6.0",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"react-dom": "^18.3.1",
|
|
51
51
|
"rimraf": "^6.1.2",
|
|
52
52
|
"tgrid": "^1.0.3",
|
|
53
|
-
"@ttsc/wasm": "^0.14.0-dev.20260529.
|
|
53
|
+
"@ttsc/wasm": "^0.14.0-dev.20260529.2"
|
|
54
54
|
},
|
|
55
55
|
"keywords": [
|
|
56
56
|
"ttsc",
|