onejs-core 0.3.31 → 0.3.32

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.
Files changed (2) hide show
  1. package/README.md +4 -32
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,33 +1,5 @@
1
- This is the Core JS Lib for OneJS V2.
1
+ This is the Core JS Lib for OneJS V2. It generally contains 3 things:
2
2
 
3
- ---
4
-
5
- ## h()
6
-
7
- ```tsx
8
- import { h } from "@onejs/core"
9
-
10
- export default function (target) {
11
- return <div>
12
- <div>{target.make}</div>
13
- <div>{target.year}</div>
14
- <div>{target.color}</div>
15
- </div>
16
- }
17
- ```
18
-
19
- ## emo
20
-
21
- ```ts
22
- import { emo } from "onejs/styled"
23
- import { h, render } from "preact"
24
-
25
- const Foo = (props) => {
26
- return <div class={emo`
27
- font-size: ${props.size ?? 10}px;
28
- color: red;
29
- `}>Hello</div>
30
- }
31
-
32
- render(<Foo size={30} />, document.body)
33
- ```
3
+ 1) Document and Dom wrappers
4
+ 2) Type definitions for a good portion of built-in Unity assemblies
5
+ 3) Utility scripts used by esbuild and tailwind
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "onejs-core",
3
3
  "description": "The JS part of OneJS, a UI framework and Scripting Engine for Unity.",
4
- "version": "0.3.31",
4
+ "version": "0.3.32",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./typings.d.ts",
7
7
  "dependencies": {