@reactunity/renderer 0.14.5 → 0.15.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.
Files changed (47) hide show
  1. package/dist/index.d.ts +2 -2
  2. package/dist/index.js +2 -2
  3. package/dist/src/helpers/dictionary-watcher.d.ts +1 -1
  4. package/dist/src/helpers/hooks/{use-watchable.d.ts → use-reactive-value.d.ts} +1 -1
  5. package/dist/src/helpers/hooks/{use-watchable.js → use-reactive-value.js} +8 -8
  6. package/dist/src/models/editor/jsx.d.ts +17 -14
  7. package/dist/src/models/environment/dom/global.d.ts +2 -0
  8. package/dist/src/models/environment/index.d.ts +2 -1
  9. package/dist/src/models/environment/index.js +1 -0
  10. package/dist/src/models/environment/interop.d.ts +3 -0
  11. package/dist/src/models/environment/jsx.d.ts +45 -0
  12. package/dist/src/models/environment/jsx.js +1 -0
  13. package/dist/src/models/generated/editor.js +1 -1
  14. package/dist/src/models/generated/react.d.ts +603 -354
  15. package/dist/src/models/generated/react.js +1 -1
  16. package/dist/src/models/generated/system.js +1 -1
  17. package/dist/src/models/generated/tests.js +1 -1
  18. package/dist/src/models/generated/unity.js +1 -1
  19. package/dist/src/models/generated/yoga.js +1 -1
  20. package/dist/src/models/properties/common.d.ts +2 -0
  21. package/dist/src/models/properties/common.js +1 -0
  22. package/dist/src/models/properties/index.d.ts +1 -0
  23. package/dist/src/models/properties/index.js +1 -0
  24. package/dist/src/models/properties/styles-enums.d.ts +0 -1
  25. package/dist/src/models/properties/styles.d.ts +2 -1
  26. package/dist/src/models/ugui/components.d.ts +3 -1
  27. package/dist/src/models/ugui/jsx.d.ts +18 -15
  28. package/dist/src/models/uitoolkit/components.d.ts +4 -1
  29. package/dist/src/models/uitoolkit/jsx.d.ts +17 -14
  30. package/dist/src/renderer/renderer.d.ts +4 -0
  31. package/dist/src/renderer/renderer.js +76 -69
  32. package/dist/src/version.d.ts +1 -1
  33. package/dist/src/version.js +1 -1
  34. package/dist/src/views/default-view.d.ts +1 -1
  35. package/dist/src/views/error-boundary.js +1 -1
  36. package/dist/src/webgl-compat/error-messages.d.ts +9 -0
  37. package/dist/src/webgl-compat/error-messages.js +10 -0
  38. package/dist/src/webgl-compat/index.d.ts +13 -0
  39. package/dist/src/webgl-compat/index.js +8 -0
  40. package/dist/src/webgl-compat/use-event-system.d.ts +8 -0
  41. package/dist/src/webgl-compat/use-event-system.js +64 -0
  42. package/dist/src/webgl-compat/use-unity-context.d.ts +4 -0
  43. package/dist/src/webgl-compat/use-unity-context.js +74 -0
  44. package/dist/webgl-compat.d.ts +1 -0
  45. package/dist/webgl-compat.js +1 -0
  46. package/package.json +8 -3
  47. package/webgl-compat.ts +1 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reactunity/renderer",
3
- "version": "0.14.5",
3
+ "version": "0.15.0",
4
4
  "description": "React renderer for Unity3D",
5
5
  "types": "dist/index.d.ts",
6
6
  "typings": "dist/index.d.ts",
@@ -11,7 +11,8 @@
11
11
  "./editor": "./dist/editor.js",
12
12
  "./test": "./dist/test.js",
13
13
  "./ugui": "./dist/ugui.js",
14
- "./uitoolkit": "./dist/uitoolkit.js"
14
+ "./uitoolkit": "./dist/uitoolkit.js",
15
+ "./webgl-compat": "./dist/webgl-compat.js"
15
16
  },
16
17
  "typesVersions": {
17
18
  "*": {
@@ -26,6 +27,9 @@
26
27
  ],
27
28
  "uitoolkit": [
28
29
  "./dist/uitoolkit.d.ts"
30
+ ],
31
+ "webgl-compat": [
32
+ "./dist/webgl-compat.d.ts"
29
33
  ]
30
34
  }
31
35
  },
@@ -61,8 +65,9 @@
61
65
  "react": "^18.0.0"
62
66
  },
63
67
  "devDependencies": {
64
- "@reactunity/scripts": "^0.14.0",
68
+ "@reactunity/scripts": "^0.15.0",
65
69
  "@types/react-reconciler": "^0.28.2",
70
+ "react-unity-webgl": "^9.4.0",
66
71
  "rimraf": "^4.1.2",
67
72
  "typescript": "^4.9.5"
68
73
  }
@@ -0,0 +1 @@
1
+ export * from './src/webgl-compat';