@lab206/dom 0.1.2 → 0.1.4
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 +24 -2
- package/package.json +5 -8
package/README.md
CHANGED
|
@@ -1,6 +1,28 @@
|
|
|
1
1
|
# @lab206/dom
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
DOM + JSX runtime for [Powers](https://lab206.com) — `mount`, control flow, reactive props.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
```bash
|
|
6
|
+
pnpm create powers my-app
|
|
7
|
+
# or
|
|
8
|
+
pnpm add @lab206/core @lab206/dom @lab206/ui
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Required (both):
|
|
12
|
+
|
|
13
|
+
```json
|
|
14
|
+
// tsconfig
|
|
15
|
+
{ "compilerOptions": { "jsx": "react-jsx", "jsxImportSource": "@lab206/dom" } }
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
```ts
|
|
19
|
+
// vite.config.ts — Vite does not read tsconfig for this
|
|
20
|
+
export default defineConfig({
|
|
21
|
+
esbuild: { jsx: "automatic", jsxImportSource: "@lab206/dom" },
|
|
22
|
+
});
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Use `@lab206/*@0.1.4+`. Do not install React.
|
|
26
|
+
|
|
27
|
+
- Docs: https://lab206.com/docs
|
|
6
28
|
- License: BUSL-1.1 (source-available)
|
package/package.json
CHANGED
|
@@ -1,26 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lab206/dom",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "Thin DOM bindings + JSX + reactive props for Powers.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "BUSL-1.1",
|
|
7
7
|
"sideEffects": false,
|
|
8
8
|
"exports": {
|
|
9
9
|
".": {
|
|
10
|
-
"types": "./
|
|
11
|
-
"development": "./src/index.ts",
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
12
11
|
"import": "./dist/index.js",
|
|
13
12
|
"default": "./dist/index.js"
|
|
14
13
|
},
|
|
15
14
|
"./jsx-runtime": {
|
|
16
|
-
"types": "./
|
|
17
|
-
"development": "./src/jsx-runtime.ts",
|
|
15
|
+
"types": "./dist/jsx-runtime.d.ts",
|
|
18
16
|
"import": "./dist/jsx-runtime.js",
|
|
19
17
|
"default": "./dist/jsx-runtime.js"
|
|
20
18
|
},
|
|
21
19
|
"./jsx-dev-runtime": {
|
|
22
|
-
"types": "./
|
|
23
|
-
"development": "./src/jsx-runtime.ts",
|
|
20
|
+
"types": "./dist/jsx-runtime.d.ts",
|
|
24
21
|
"import": "./dist/jsx-runtime.js",
|
|
25
22
|
"default": "./dist/jsx-runtime.js"
|
|
26
23
|
}
|
|
@@ -37,7 +34,7 @@
|
|
|
37
34
|
"!src/**/*.test.tsx"
|
|
38
35
|
],
|
|
39
36
|
"dependencies": {
|
|
40
|
-
"@lab206/core": "0.1.
|
|
37
|
+
"@lab206/core": "0.1.4"
|
|
41
38
|
},
|
|
42
39
|
"devDependencies": {
|
|
43
40
|
"esbuild": "^0.25.1",
|