@reactunity/renderer 0.13.2 → 0.14.1
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/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/src/helpers/dictionary-watcher.d.ts +17 -8
- package/dist/src/helpers/dictionary-watcher.js +50 -25
- package/dist/src/helpers/hooks/use-globals.d.ts +6 -0
- package/dist/src/helpers/hooks/use-globals.js +6 -0
- package/dist/src/helpers/hooks/use-watchable.d.ts +4 -0
- package/dist/src/helpers/hooks/use-watchable.js +26 -0
- package/dist/src/helpers/icons.d.ts +2 -2
- package/dist/src/models/base.d.ts +8 -8
- package/dist/src/models/editor/components.d.ts +2 -2
- package/dist/src/models/editor/events.d.ts +4 -4
- package/dist/src/models/editor/jsx.d.ts +5 -5
- package/dist/src/models/environment/dom/common.d.ts +5 -5
- package/dist/src/models/environment/dom/fetch.d.ts +10 -10
- package/dist/src/models/environment/dom/xhr.d.ts +2 -2
- package/dist/src/models/environment/interop.d.ts +2 -2
- package/dist/src/models/generated/editor.d.ts +15016 -11979
- package/dist/src/models/generated/editor.js +1 -1
- package/dist/src/models/generated/react.d.ts +1336 -417
- package/dist/src/models/generated/react.js +1 -1
- package/dist/src/models/generated/system.d.ts +2602 -2704
- package/dist/src/models/generated/system.js +2 -2
- package/dist/src/models/generated/tests.d.ts +228 -231
- package/dist/src/models/generated/tests.js +1 -1
- package/dist/src/models/generated/unity.d.ts +7998 -14519
- package/dist/src/models/generated/unity.js +2 -2
- package/dist/src/models/generated/yoga.d.ts +1 -1
- package/dist/src/models/generated/yoga.js +1 -1
- package/dist/src/models/properties/colors.d.ts +1 -1
- package/dist/src/models/properties/style.d.ts +7 -2
- package/dist/src/models/properties/styles-enums.d.ts +24 -19
- package/dist/src/models/properties/styles.d.ts +76 -60
- package/dist/src/models/properties/values.d.ts +16 -16
- package/dist/src/models/properties/yoga-enums.d.ts +8 -8
- package/dist/src/models/properties/yoga.d.ts +16 -16
- package/dist/src/models/renderer.d.ts +14 -14
- package/dist/src/models/richtext.d.ts +6 -2
- package/dist/src/models/svg.d.ts +2 -2
- package/dist/src/models/ugui/components.d.ts +1 -1
- package/dist/src/models/ugui/events.d.ts +7 -7
- package/dist/src/models/ugui/input.d.ts +6 -6
- package/dist/src/models/ugui/jsx.d.ts +2 -2
- package/dist/src/models/uitoolkit/components.d.ts +2 -2
- package/dist/src/models/uitoolkit/events.d.ts +4 -4
- package/dist/src/models/uitoolkit/jsx.d.ts +2 -2
- package/dist/src/renderer/async/commands.d.ts +14 -14
- package/dist/src/renderer/async/types.d.ts +10 -10
- package/dist/src/renderer/diffing.d.ts +1 -1
- package/dist/src/version.d.ts +1 -1
- package/dist/src/version.js +1 -1
- package/dist/src/views/default-view.js +1 -2
- package/package.json +5 -5
- package/dist/src/helpers/watcher.d.ts +0 -2
- package/dist/src/helpers/watcher.js +0 -14
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AddEventListenerOptions, Blob, BufferSource, EventInit, EventListenerOptions, EventListenerOrEventListenerObject, FormData, URL, URLSearchParams } from "./common";
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string;
|
|
3
|
+
type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";
|
|
4
4
|
/** Use XMLHttpRequest (XHR) objects to interact with servers. You can retrieve data from a URL without having to do a full page refresh. This enables a Web page to update just part of a page without disrupting what the user is doing. */
|
|
5
5
|
export interface XMLHttpRequest extends XMLHttpRequestEventTarget {
|
|
6
6
|
onreadystatechange: ((this: XMLHttpRequest, ev: Event) => any) | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Facebook, ReactUnity, System, UnityEditor, UnityEngine } from '../generated';
|
|
2
|
-
export
|
|
2
|
+
export type NamespaceMap = {
|
|
3
3
|
[key: string]: any;
|
|
4
4
|
System: typeof System;
|
|
5
5
|
UnityEngine: typeof UnityEngine;
|
|
@@ -7,7 +7,7 @@ export declare type NamespaceMap = {
|
|
|
7
7
|
ReactUnity: typeof ReactUnity;
|
|
8
8
|
Facebook: typeof Facebook;
|
|
9
9
|
};
|
|
10
|
-
export
|
|
10
|
+
export type Namespace = keyof NamespaceMap;
|
|
11
11
|
declare global {
|
|
12
12
|
interface DefaultInterop {
|
|
13
13
|
System: typeof System;
|