@reactunity/renderer 0.6.0 → 0.9.0
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/dist/editor.d.ts +1 -1
- package/dist/editor.js +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.js +5 -5
- package/dist/src/helpers/dictionary-watcher.d.ts +1 -1
- package/dist/src/helpers/dictionary-watcher.js +2 -2
- package/dist/src/helpers/watcher.d.ts +2 -0
- package/dist/src/helpers/watcher.js +15 -0
- package/dist/{models → src/models}/base.d.ts +24 -5
- package/dist/{models/ugui/events.js → src/models/base.js} +0 -0
- package/dist/{models → src/models}/editor/components.d.ts +0 -0
- package/dist/{models → src/models}/editor/components.js +0 -0
- package/dist/{models → src/models}/editor/environment.d.ts +0 -0
- package/dist/{models → src/models}/editor/environment.js +0 -0
- package/dist/{models → src/models}/editor/events.d.ts +0 -0
- package/dist/{models → src/models}/editor/events.js +0 -0
- package/dist/{models → src/models}/editor/index.d.ts +0 -0
- package/dist/{models → src/models}/editor/index.js +0 -0
- package/dist/{models → src/models}/editor/jsx.d.ts +2 -4
- package/dist/{models → src/models}/editor/jsx.js +0 -0
- package/dist/src/models/environment/index.d.ts +41 -0
- package/dist/src/models/environment/index.js +1 -0
- package/dist/{models → src/models/environment}/interop.d.ts +2 -2
- package/dist/{models → src/models/environment}/interop.js +0 -0
- package/dist/{models → src/models}/generated/editor.d.ts +0 -0
- package/dist/src/models/generated/editor.js +6 -0
- package/dist/{models → src/models}/generated/index.d.ts +0 -0
- package/dist/{models → src/models}/generated/index.js +0 -0
- package/dist/{models → src/models}/generated/react.d.ts +3386 -2470
- package/dist/src/models/generated/react.js +6 -0
- package/dist/{models → src/models}/generated/system.d.ts +0 -0
- package/dist/{models → src/models}/generated/system.js +1 -0
- package/dist/{models → src/models}/generated/tests.d.ts +0 -0
- package/dist/src/models/generated/tests.js +6 -0
- package/dist/{models → src/models}/generated/unity.d.ts +0 -0
- package/dist/src/models/generated/unity.js +6 -0
- package/dist/{models → src/models}/generated/yoga.d.ts +0 -0
- package/dist/src/models/generated/yoga.js +6 -0
- package/dist/{models → src/models}/properties/colors.d.ts +0 -0
- package/dist/{models → src/models}/properties/colors.js +0 -0
- package/dist/{models → src/models}/properties/index.d.ts +0 -0
- package/dist/{models → src/models}/properties/index.js +0 -0
- package/dist/{models → src/models}/properties/style.d.ts +0 -0
- package/dist/{models → src/models}/properties/style.js +0 -0
- package/dist/{models → src/models}/properties/styles-enums.d.ts +2 -0
- package/dist/{models → src/models}/properties/styles-enums.js +0 -0
- package/dist/{models → src/models}/properties/styles.d.ts +28 -7
- package/dist/{models → src/models}/properties/styles.js +0 -0
- package/dist/{models → src/models}/properties/values.d.ts +0 -0
- package/dist/{models → src/models}/properties/values.js +0 -0
- package/dist/{models → src/models}/properties/yoga-enums.d.ts +0 -0
- package/dist/{models → src/models}/properties/yoga-enums.js +0 -0
- package/dist/{models → src/models}/properties/yoga.d.ts +0 -0
- package/dist/{models/generated → src/models/properties}/yoga.js +0 -0
- package/dist/{models → src/models}/renderer.d.ts +0 -0
- package/dist/{models → src/models}/renderer.js +0 -0
- package/dist/src/models/tests/index.d.ts +12 -0
- package/dist/{models → src/models}/tests/index.js +0 -0
- package/dist/{models → src/models}/ugui/components.d.ts +3 -5
- package/dist/{models → src/models}/ugui/components.js +0 -0
- package/dist/{models → src/models}/ugui/events.d.ts +0 -0
- package/dist/src/models/ugui/events.js +2 -0
- package/dist/{models → src/models}/ugui/index.d.ts +0 -0
- package/dist/{models → src/models}/ugui/index.js +0 -0
- package/dist/{models → src/models}/ugui/input.d.ts +0 -0
- package/dist/{models → src/models}/ugui/input.js +0 -0
- package/dist/{models → src/models}/ugui/jsx.d.ts +2 -4
- package/dist/{models → src/models}/ugui/jsx.js +0 -0
- package/dist/{models → src/models}/uitoolkit/components.d.ts +3 -5
- package/dist/{models → src/models}/uitoolkit/components.js +0 -0
- package/dist/{models → src/models}/uitoolkit/events.d.ts +0 -0
- package/dist/{models → src/models}/uitoolkit/events.js +0 -0
- package/dist/{models → src/models}/uitoolkit/index.d.ts +0 -0
- package/dist/{models → src/models}/uitoolkit/index.js +0 -0
- package/dist/{models → src/models}/uitoolkit/jsx.d.ts +2 -4
- package/dist/{models → src/models}/uitoolkit/jsx.js +0 -0
- package/dist/src/renderer/diffing.d.ts +3 -2
- package/dist/src/renderer/diffing.js +11 -6
- package/dist/src/renderer/renderer.d.ts +1 -1
- package/dist/src/renderer/renderer.js +42 -102
- package/dist/tests.d.ts +1 -1
- package/dist/tests.js +1 -1
- package/dist/ugui.d.ts +1 -1
- package/dist/ugui.js +1 -1
- package/dist/uitoolkit.d.ts +1 -1
- package/dist/uitoolkit.js +1 -1
- package/editor.ts +1 -1
- package/package.json +5 -8
- package/tests.ts +1 -1
- package/ugui.ts +1 -1
- package/uitoolkit.ts +1 -1
- package/dist/models/base.js +0 -1
- package/dist/models/environment.d.ts +0 -30
- package/dist/models/environment.js +0 -1
- package/dist/models/generated/editor.js +0 -1
- package/dist/models/generated/react.js +0 -1
- package/dist/models/generated/tests.js +0 -1
- package/dist/models/generated/unity.js +0 -1
- package/dist/models/properties/yoga.js +0 -1
- package/dist/models/tests/index.d.ts +0 -12
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reactunity/renderer",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "React renderer for Unity3D",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
@@ -30,7 +30,6 @@
|
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
32
|
"scripts": {
|
|
33
|
-
"preinstall": "npx only-allow@1.0.0 yarn",
|
|
34
33
|
"build:clean": "rimraf dist",
|
|
35
34
|
"build:base": "tsc",
|
|
36
35
|
"build:editor": "tsc -p tsconfig.editor.json",
|
|
@@ -39,7 +38,7 @@
|
|
|
39
38
|
"build": "yarn build:clean && yarn build:base && yarn build:editor && yarn build:ugui && yarn build:uitoolkit",
|
|
40
39
|
"prepare": "yarn build",
|
|
41
40
|
"watch": "tsc --watch",
|
|
42
|
-
"lint": "
|
|
41
|
+
"lint": "react-unity-scripts lint",
|
|
43
42
|
"local": "yalc publish --push",
|
|
44
43
|
"pack": "npm pack"
|
|
45
44
|
},
|
|
@@ -62,11 +61,9 @@
|
|
|
62
61
|
"react": "^17.0.2"
|
|
63
62
|
},
|
|
64
63
|
"devDependencies": {
|
|
65
|
-
"@
|
|
66
|
-
"@types/react-reconciler": "^0.26.
|
|
67
|
-
"@types/webpack-env": "^1.16.2",
|
|
68
|
-
"eslint": "^7.32.0",
|
|
64
|
+
"@reactunity/scripts": "^0.8.0",
|
|
65
|
+
"@types/react-reconciler": "^0.26.4",
|
|
69
66
|
"rimraf": "^3.0.2",
|
|
70
|
-
"typescript": "^4.4.
|
|
67
|
+
"typescript": "^4.4.4"
|
|
71
68
|
}
|
|
72
69
|
}
|
package/tests.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './models/tests';
|
|
1
|
+
export * from './src/models/tests';
|
package/ugui.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './models/ugui';
|
|
1
|
+
export * from './src/models/ugui';
|
package/uitoolkit.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './models/uitoolkit';
|
|
1
|
+
export * from './src/models/uitoolkit';
|
package/dist/models/base.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { ReactUnity } from './generated';
|
|
2
|
-
import { NativeContainerInstance } from './renderer';
|
|
3
|
-
interface Console {
|
|
4
|
-
assert(condition?: boolean, ...data: any[]): void;
|
|
5
|
-
clear(): void;
|
|
6
|
-
debug(...data: any[]): void;
|
|
7
|
-
dir(item?: any, options?: any): void;
|
|
8
|
-
error(...data: any[]): void;
|
|
9
|
-
exception(message?: string, ...optionalParams: any[]): void;
|
|
10
|
-
info(...data: any[]): void;
|
|
11
|
-
log(...data: any[]): void;
|
|
12
|
-
trace(...data: any[]): void;
|
|
13
|
-
warn(...data: any[]): void;
|
|
14
|
-
}
|
|
15
|
-
declare global {
|
|
16
|
-
const UnityBridge: ReactUnity.ReactUnityBridge;
|
|
17
|
-
const Context: ReactUnity.ReactContext;
|
|
18
|
-
const HostContainer: NativeContainerInstance;
|
|
19
|
-
const UnityScheduler: ReactUnity.Scheduling.IScheduler;
|
|
20
|
-
const Callback: <T, R>(callback: (...args: T[]) => R) => ReactUnity.Helpers.Callback;
|
|
21
|
-
const location: ReactUnity.DomProxies.Location;
|
|
22
|
-
const localStorage: ReactUnity.DomProxies.LocalStorage;
|
|
23
|
-
const console: Console;
|
|
24
|
-
function matchMedia(query: string): ReactUnity.StyleEngine.MediaQueryList;
|
|
25
|
-
interface DefaultGlobals {
|
|
26
|
-
[key: string]: any;
|
|
27
|
-
}
|
|
28
|
-
const Globals: ReactUnity.Helpers.WatchableRecord<any> & DefaultGlobals;
|
|
29
|
-
}
|
|
30
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { NUnit, UnityEngine } from '../generated';
|
|
2
|
-
declare global {
|
|
3
|
-
const Assert: NUnit.Framework.Assert;
|
|
4
|
-
const Has: NUnit.Framework.Has;
|
|
5
|
-
const Is: NUnit.Framework.Is;
|
|
6
|
-
const Iz: NUnit.Framework.Iz;
|
|
7
|
-
const Contains: NUnit.Framework.Contains;
|
|
8
|
-
const Does: NUnit.Framework.Does;
|
|
9
|
-
const Assume: NUnit.Framework.Assume;
|
|
10
|
-
const Throws: NUnit.Framework.Throws;
|
|
11
|
-
const LogAssert: UnityEngine.TestTools.LogAssert;
|
|
12
|
-
}
|