@reactunity/renderer 0.10.0 → 0.12.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 (48) hide show
  1. package/dist/index.d.ts +1 -0
  2. package/dist/index.js +1 -0
  3. package/dist/src/helpers/icons.d.ts +7 -0
  4. package/dist/src/helpers/icons.js +29 -0
  5. package/dist/src/models/base.d.ts +10 -7
  6. package/dist/src/models/editor/jsx.d.ts +10 -1
  7. package/dist/src/models/environment/index.d.ts +3 -0
  8. package/dist/src/models/generated/editor.d.ts +456 -26
  9. package/dist/src/models/generated/editor.js +1 -1
  10. package/dist/src/models/generated/react.d.ts +1897 -731
  11. package/dist/src/models/generated/react.js +1 -1
  12. package/dist/src/models/generated/system.d.ts +148 -148
  13. package/dist/src/models/generated/system.js +1 -1
  14. package/dist/src/models/generated/tests.js +1 -1
  15. package/dist/src/models/generated/unity.d.ts +5392 -1283
  16. package/dist/src/models/generated/unity.js +2 -2
  17. package/dist/src/models/generated/yoga.js +1 -1
  18. package/dist/src/models/properties/styles.d.ts +8 -7
  19. package/dist/src/models/properties/values.d.ts +7 -0
  20. package/dist/src/models/richtext.d.ts +65 -0
  21. package/dist/src/models/richtext.js +2 -0
  22. package/dist/src/models/svg.d.ts +68 -0
  23. package/dist/src/models/svg.js +1 -0
  24. package/dist/src/models/ugui/components.d.ts +12 -7
  25. package/dist/src/models/ugui/events.d.ts +1 -0
  26. package/dist/src/models/ugui/jsx.d.ts +10 -1
  27. package/dist/src/models/uitoolkit/components.d.ts +3 -1
  28. package/dist/src/models/uitoolkit/jsx.d.ts +9 -0
  29. package/dist/src/renderer/async/callbacks.js +22 -8
  30. package/dist/src/renderer/async/reconciler.d.ts +1 -8
  31. package/dist/src/renderer/async/reconciler.js +208 -60
  32. package/dist/src/renderer/async/serializer.d.ts +9 -0
  33. package/dist/src/renderer/async/serializer.js +31 -0
  34. package/dist/src/renderer/async/types.d.ts +31 -5
  35. package/dist/src/renderer/constants.d.ts +5 -0
  36. package/dist/src/renderer/constants.js +12 -0
  37. package/dist/src/renderer/diffing.js +1 -1
  38. package/dist/src/renderer/renderer.d.ts +11 -10
  39. package/dist/src/renderer/renderer.js +7 -9
  40. package/dist/src/renderer/subcontexts/index.d.ts +6 -0
  41. package/dist/src/renderer/subcontexts/index.js +6 -0
  42. package/dist/src/renderer/subcontexts/richtext.d.ts +3 -0
  43. package/dist/src/renderer/subcontexts/richtext.js +52 -0
  44. package/dist/src/renderer/subcontexts/svg.d.ts +3 -0
  45. package/dist/src/renderer/subcontexts/svg.js +70 -0
  46. package/dist/src/version.d.ts +1 -1
  47. package/dist/src/version.js +1 -1
  48. package/package.json +6 -6
@@ -1,6 +1,6 @@
1
1
  //
2
2
  // Types in assemblies: ReactUnity, ReactUnity.Editor, ReactUnity.UGUI, ReactUnity.UIToolkit
3
- // Generated 29/04/2022 17:32:51
3
+ // Generated 15/06/2022 18:30:47
4
4
  //
5
5
  /* eslint-disable */
6
6
  export {};
@@ -1,4 +1,152 @@
1
1
  export declare namespace System {
2
+ class String {
3
+ constructor(value: System.Char[]);
4
+ constructor(value: System.Char[], startIndex: number, length: number);
5
+ constructor(c: System.Char, count: number);
6
+ constructor(value: System.ReadOnlySpan<System.Char>);
7
+ [key: string]: any;
8
+ Length: number;
9
+ static Empty: string;
10
+ static Compare(strA: string, strB: string): number;
11
+ static Compare(strA: string, strB: string, ignoreCase: boolean): number;
12
+ static Compare(strA: string, strB: string, comparisonType: System.StringComparison): number;
13
+ static Compare(strA: string, strB: string, culture: System.Globalization.CultureInfo, options: System.Globalization.CompareOptions): number;
14
+ static Compare(strA: string, strB: string, ignoreCase: boolean, culture: System.Globalization.CultureInfo): number;
15
+ static Compare(strA: string, indexA: number, strB: string, indexB: number, length: number): number;
16
+ static Compare(strA: string, indexA: number, strB: string, indexB: number, length: number, ignoreCase: boolean): number;
17
+ static Compare(strA: string, indexA: number, strB: string, indexB: number, length: number, ignoreCase: boolean, culture: System.Globalization.CultureInfo): number;
18
+ static Compare(strA: string, indexA: number, strB: string, indexB: number, length: number, culture: System.Globalization.CultureInfo, options: System.Globalization.CompareOptions): number;
19
+ static Compare(strA: string, indexA: number, strB: string, indexB: number, length: number, comparisonType: System.StringComparison): number;
20
+ static CompareOrdinal(strA: string, strB: string): number;
21
+ static CompareOrdinal(strA: string, indexA: number, strB: string, indexB: number, length: number): number;
22
+ CompareTo(value: any): number;
23
+ CompareTo(strB: string): number;
24
+ EndsWith(value: string): boolean;
25
+ EndsWith(value: string, comparisonType: System.StringComparison): boolean;
26
+ EndsWith(value: string, ignoreCase: boolean, culture: System.Globalization.CultureInfo): boolean;
27
+ EndsWith(value: System.Char): boolean;
28
+ Equals(obj: any): boolean;
29
+ Equals(value: string): boolean;
30
+ Equals(value: string, comparisonType: System.StringComparison): boolean;
31
+ static Equals(a: string, b: string): boolean;
32
+ static Equals(a: string, b: string, comparisonType: System.StringComparison): boolean;
33
+ GetHashCode(): number;
34
+ GetHashCode(comparisonType: System.StringComparison): number;
35
+ StartsWith(value: string): boolean;
36
+ StartsWith(value: string, comparisonType: System.StringComparison): boolean;
37
+ StartsWith(value: string, ignoreCase: boolean, culture: System.Globalization.CultureInfo): boolean;
38
+ StartsWith(value: System.Char): boolean;
39
+ static Concat(arg0: any): string;
40
+ static Concat(arg0: any, arg1: any): string;
41
+ static Concat(arg0: any, arg1: any, arg2: any): string;
42
+ static Concat(...args: any[]): string;
43
+ static Concat(values: any): string;
44
+ static Concat(str0: string, str1: string): string;
45
+ static Concat(str0: string, str1: string, str2: string): string;
46
+ static Concat(str0: string, str1: string, str2: string, str3: string): string;
47
+ static Concat(...values: string[]): string;
48
+ static Format(format: string, arg0: any): string;
49
+ static Format(format: string, arg0: any, arg1: any): string;
50
+ static Format(format: string, arg0: any, arg1: any, arg2: any): string;
51
+ static Format(format: string, ...args: any[]): string;
52
+ static Format(provider: System.IFormatProvider, format: string, arg0: any): string;
53
+ static Format(provider: System.IFormatProvider, format: string, arg0: any, arg1: any): string;
54
+ static Format(provider: System.IFormatProvider, format: string, arg0: any, arg1: any, arg2: any): string;
55
+ static Format(provider: System.IFormatProvider, format: string, ...args: any[]): string;
56
+ Insert(startIndex: number, value: string): string;
57
+ static Join(separator: System.Char, ...value: string[]): string;
58
+ static Join(separator: System.Char, ...values: any[]): string;
59
+ static Join(separator: System.Char, value: string[], startIndex: number, count: number): string;
60
+ static Join(separator: string, ...value: string[]): string;
61
+ static Join(separator: string, ...values: any[]): string;
62
+ static Join(separator: string, values: any): string;
63
+ static Join(separator: string, value: string[], startIndex: number, count: number): string;
64
+ PadLeft(totalWidth: number): string;
65
+ PadLeft(totalWidth: number, paddingChar: System.Char): string;
66
+ PadRight(totalWidth: number): string;
67
+ PadRight(totalWidth: number, paddingChar: System.Char): string;
68
+ Remove(startIndex: number, count: number): string;
69
+ Remove(startIndex: number): string;
70
+ Replace(oldValue: string, newValue: string, ignoreCase: boolean, culture: System.Globalization.CultureInfo): string;
71
+ Replace(oldValue: string, newValue: string, comparisonType: System.StringComparison): string;
72
+ Replace(oldChar: System.Char, newChar: System.Char): string;
73
+ Replace(oldValue: string, newValue: string): string;
74
+ Split(separator: System.Char, options?: System.StringSplitOptions): string[];
75
+ Split(separator: System.Char, count: number, options?: System.StringSplitOptions): string[];
76
+ Split(...separator: System.Char[]): string[];
77
+ Split(separator: System.Char[], count: number): string[];
78
+ Split(separator: System.Char[], options: System.StringSplitOptions): string[];
79
+ Split(separator: System.Char[], count: number, options: System.StringSplitOptions): string[];
80
+ Split(separator: string, options?: System.StringSplitOptions): string[];
81
+ Split(separator: string, count: number, options?: System.StringSplitOptions): string[];
82
+ Split(separator: string[], options: System.StringSplitOptions): string[];
83
+ Split(separator: string[], count: number, options: System.StringSplitOptions): string[];
84
+ Substring(startIndex: number): string;
85
+ Substring(startIndex: number, length: number): string;
86
+ ToLower(): string;
87
+ ToLower(culture: System.Globalization.CultureInfo): string;
88
+ ToLowerInvariant(): string;
89
+ ToUpper(): string;
90
+ ToUpper(culture: System.Globalization.CultureInfo): string;
91
+ ToUpperInvariant(): string;
92
+ Trim(): string;
93
+ Trim(trimChar: System.Char): string;
94
+ Trim(...trimChars: System.Char[]): string;
95
+ TrimStart(): string;
96
+ TrimStart(trimChar: System.Char): string;
97
+ TrimStart(...trimChars: System.Char[]): string;
98
+ TrimEnd(): string;
99
+ TrimEnd(trimChar: System.Char): string;
100
+ TrimEnd(...trimChars: System.Char[]): string;
101
+ Contains(value: string): boolean;
102
+ Contains(value: string, comparisonType: System.StringComparison): boolean;
103
+ Contains(value: System.Char): boolean;
104
+ Contains(value: System.Char, comparisonType: System.StringComparison): boolean;
105
+ IndexOf(value: System.Char): number;
106
+ IndexOf(value: System.Char, startIndex: number): number;
107
+ IndexOf(value: System.Char, comparisonType: System.StringComparison): number;
108
+ IndexOf(value: System.Char, startIndex: number, count: number): number;
109
+ IndexOfAny(anyOf: System.Char[]): number;
110
+ IndexOfAny(anyOf: System.Char[], startIndex: number): number;
111
+ IndexOfAny(anyOf: System.Char[], startIndex: number, count: number): number;
112
+ IndexOf(value: string): number;
113
+ IndexOf(value: string, startIndex: number): number;
114
+ IndexOf(value: string, startIndex: number, count: number): number;
115
+ IndexOf(value: string, comparisonType: System.StringComparison): number;
116
+ IndexOf(value: string, startIndex: number, comparisonType: System.StringComparison): number;
117
+ IndexOf(value: string, startIndex: number, count: number, comparisonType: System.StringComparison): number;
118
+ LastIndexOf(value: System.Char): number;
119
+ LastIndexOf(value: System.Char, startIndex: number): number;
120
+ LastIndexOf(value: System.Char, startIndex: number, count: number): number;
121
+ LastIndexOfAny(anyOf: System.Char[]): number;
122
+ LastIndexOfAny(anyOf: System.Char[], startIndex: number): number;
123
+ LastIndexOfAny(anyOf: System.Char[], startIndex: number, count: number): number;
124
+ LastIndexOf(value: string): number;
125
+ LastIndexOf(value: string, startIndex: number): number;
126
+ LastIndexOf(value: string, startIndex: number, count: number): number;
127
+ LastIndexOf(value: string, comparisonType: System.StringComparison): number;
128
+ LastIndexOf(value: string, startIndex: number, comparisonType: System.StringComparison): number;
129
+ LastIndexOf(value: string, startIndex: number, count: number, comparisonType: System.StringComparison): number;
130
+ Clone(): any;
131
+ static Copy(str: string): string;
132
+ CopyTo(sourceIndex: number, destination: System.Char[], destinationIndex: number, count: number): void;
133
+ ToCharArray(): System.Char[];
134
+ ToCharArray(startIndex: number, length: number): System.Char[];
135
+ static IsNullOrEmpty(value: string): boolean;
136
+ static IsNullOrWhiteSpace(value: string): boolean;
137
+ ToString(): string;
138
+ ToString(provider: System.IFormatProvider): string;
139
+ GetEnumerator(): System.CharEnumerator;
140
+ GetTypeCode(): System.TypeCode;
141
+ IsNormalized(): boolean;
142
+ IsNormalized(normalizationForm: System.Text.NormalizationForm): boolean;
143
+ Normalize(): string;
144
+ Normalize(normalizationForm: System.Text.NormalizationForm): string;
145
+ static Concat(arg0: any, arg1: any, arg2: any, arg3: any): string;
146
+ static Intern(str: string): string;
147
+ static IsInterned(str: string): string;
148
+ GetType(): System.Type;
149
+ }
2
150
  class TimeZoneInfo {
3
151
  Id: string;
4
152
  DisplayName: string;
@@ -2286,154 +2434,6 @@ export declare namespace System {
2286
2434
  GetHashCode(): number;
2287
2435
  GetType(): System.Type;
2288
2436
  }
2289
- class String {
2290
- constructor(value: System.Char[]);
2291
- constructor(value: System.Char[], startIndex: number, length: number);
2292
- constructor(c: System.Char, count: number);
2293
- constructor(value: System.ReadOnlySpan<System.Char>);
2294
- [key: string]: any;
2295
- Length: number;
2296
- static Empty: string;
2297
- static Compare(strA: string, strB: string): number;
2298
- static Compare(strA: string, strB: string, ignoreCase: boolean): number;
2299
- static Compare(strA: string, strB: string, comparisonType: System.StringComparison): number;
2300
- static Compare(strA: string, strB: string, culture: System.Globalization.CultureInfo, options: System.Globalization.CompareOptions): number;
2301
- static Compare(strA: string, strB: string, ignoreCase: boolean, culture: System.Globalization.CultureInfo): number;
2302
- static Compare(strA: string, indexA: number, strB: string, indexB: number, length: number): number;
2303
- static Compare(strA: string, indexA: number, strB: string, indexB: number, length: number, ignoreCase: boolean): number;
2304
- static Compare(strA: string, indexA: number, strB: string, indexB: number, length: number, ignoreCase: boolean, culture: System.Globalization.CultureInfo): number;
2305
- static Compare(strA: string, indexA: number, strB: string, indexB: number, length: number, culture: System.Globalization.CultureInfo, options: System.Globalization.CompareOptions): number;
2306
- static Compare(strA: string, indexA: number, strB: string, indexB: number, length: number, comparisonType: System.StringComparison): number;
2307
- static CompareOrdinal(strA: string, strB: string): number;
2308
- static CompareOrdinal(strA: string, indexA: number, strB: string, indexB: number, length: number): number;
2309
- CompareTo(value: any): number;
2310
- CompareTo(strB: string): number;
2311
- EndsWith(value: string): boolean;
2312
- EndsWith(value: string, comparisonType: System.StringComparison): boolean;
2313
- EndsWith(value: string, ignoreCase: boolean, culture: System.Globalization.CultureInfo): boolean;
2314
- EndsWith(value: System.Char): boolean;
2315
- Equals(obj: any): boolean;
2316
- Equals(value: string): boolean;
2317
- Equals(value: string, comparisonType: System.StringComparison): boolean;
2318
- static Equals(a: string, b: string): boolean;
2319
- static Equals(a: string, b: string, comparisonType: System.StringComparison): boolean;
2320
- GetHashCode(): number;
2321
- GetHashCode(comparisonType: System.StringComparison): number;
2322
- StartsWith(value: string): boolean;
2323
- StartsWith(value: string, comparisonType: System.StringComparison): boolean;
2324
- StartsWith(value: string, ignoreCase: boolean, culture: System.Globalization.CultureInfo): boolean;
2325
- StartsWith(value: System.Char): boolean;
2326
- static Concat(arg0: any): string;
2327
- static Concat(arg0: any, arg1: any): string;
2328
- static Concat(arg0: any, arg1: any, arg2: any): string;
2329
- static Concat(...args: any[]): string;
2330
- static Concat(values: any): string;
2331
- static Concat(str0: string, str1: string): string;
2332
- static Concat(str0: string, str1: string, str2: string): string;
2333
- static Concat(str0: string, str1: string, str2: string, str3: string): string;
2334
- static Concat(...values: string[]): string;
2335
- static Format(format: string, arg0: any): string;
2336
- static Format(format: string, arg0: any, arg1: any): string;
2337
- static Format(format: string, arg0: any, arg1: any, arg2: any): string;
2338
- static Format(format: string, ...args: any[]): string;
2339
- static Format(provider: System.IFormatProvider, format: string, arg0: any): string;
2340
- static Format(provider: System.IFormatProvider, format: string, arg0: any, arg1: any): string;
2341
- static Format(provider: System.IFormatProvider, format: string, arg0: any, arg1: any, arg2: any): string;
2342
- static Format(provider: System.IFormatProvider, format: string, ...args: any[]): string;
2343
- Insert(startIndex: number, value: string): string;
2344
- static Join(separator: System.Char, ...value: string[]): string;
2345
- static Join(separator: System.Char, ...values: any[]): string;
2346
- static Join(separator: System.Char, value: string[], startIndex: number, count: number): string;
2347
- static Join(separator: string, ...value: string[]): string;
2348
- static Join(separator: string, ...values: any[]): string;
2349
- static Join(separator: string, values: any): string;
2350
- static Join(separator: string, value: string[], startIndex: number, count: number): string;
2351
- PadLeft(totalWidth: number): string;
2352
- PadLeft(totalWidth: number, paddingChar: System.Char): string;
2353
- PadRight(totalWidth: number): string;
2354
- PadRight(totalWidth: number, paddingChar: System.Char): string;
2355
- Remove(startIndex: number, count: number): string;
2356
- Remove(startIndex: number): string;
2357
- Replace(oldValue: string, newValue: string, ignoreCase: boolean, culture: System.Globalization.CultureInfo): string;
2358
- Replace(oldValue: string, newValue: string, comparisonType: System.StringComparison): string;
2359
- Replace(oldChar: System.Char, newChar: System.Char): string;
2360
- Replace(oldValue: string, newValue: string): string;
2361
- Split(separator: System.Char, options?: System.StringSplitOptions): string[];
2362
- Split(separator: System.Char, count: number, options?: System.StringSplitOptions): string[];
2363
- Split(...separator: System.Char[]): string[];
2364
- Split(separator: System.Char[], count: number): string[];
2365
- Split(separator: System.Char[], options: System.StringSplitOptions): string[];
2366
- Split(separator: System.Char[], count: number, options: System.StringSplitOptions): string[];
2367
- Split(separator: string, options?: System.StringSplitOptions): string[];
2368
- Split(separator: string, count: number, options?: System.StringSplitOptions): string[];
2369
- Split(separator: string[], options: System.StringSplitOptions): string[];
2370
- Split(separator: string[], count: number, options: System.StringSplitOptions): string[];
2371
- Substring(startIndex: number): string;
2372
- Substring(startIndex: number, length: number): string;
2373
- ToLower(): string;
2374
- ToLower(culture: System.Globalization.CultureInfo): string;
2375
- ToLowerInvariant(): string;
2376
- ToUpper(): string;
2377
- ToUpper(culture: System.Globalization.CultureInfo): string;
2378
- ToUpperInvariant(): string;
2379
- Trim(): string;
2380
- Trim(trimChar: System.Char): string;
2381
- Trim(...trimChars: System.Char[]): string;
2382
- TrimStart(): string;
2383
- TrimStart(trimChar: System.Char): string;
2384
- TrimStart(...trimChars: System.Char[]): string;
2385
- TrimEnd(): string;
2386
- TrimEnd(trimChar: System.Char): string;
2387
- TrimEnd(...trimChars: System.Char[]): string;
2388
- Contains(value: string): boolean;
2389
- Contains(value: string, comparisonType: System.StringComparison): boolean;
2390
- Contains(value: System.Char): boolean;
2391
- Contains(value: System.Char, comparisonType: System.StringComparison): boolean;
2392
- IndexOf(value: System.Char): number;
2393
- IndexOf(value: System.Char, startIndex: number): number;
2394
- IndexOf(value: System.Char, comparisonType: System.StringComparison): number;
2395
- IndexOf(value: System.Char, startIndex: number, count: number): number;
2396
- IndexOfAny(anyOf: System.Char[]): number;
2397
- IndexOfAny(anyOf: System.Char[], startIndex: number): number;
2398
- IndexOfAny(anyOf: System.Char[], startIndex: number, count: number): number;
2399
- IndexOf(value: string): number;
2400
- IndexOf(value: string, startIndex: number): number;
2401
- IndexOf(value: string, startIndex: number, count: number): number;
2402
- IndexOf(value: string, comparisonType: System.StringComparison): number;
2403
- IndexOf(value: string, startIndex: number, comparisonType: System.StringComparison): number;
2404
- IndexOf(value: string, startIndex: number, count: number, comparisonType: System.StringComparison): number;
2405
- LastIndexOf(value: System.Char): number;
2406
- LastIndexOf(value: System.Char, startIndex: number): number;
2407
- LastIndexOf(value: System.Char, startIndex: number, count: number): number;
2408
- LastIndexOfAny(anyOf: System.Char[]): number;
2409
- LastIndexOfAny(anyOf: System.Char[], startIndex: number): number;
2410
- LastIndexOfAny(anyOf: System.Char[], startIndex: number, count: number): number;
2411
- LastIndexOf(value: string): number;
2412
- LastIndexOf(value: string, startIndex: number): number;
2413
- LastIndexOf(value: string, startIndex: number, count: number): number;
2414
- LastIndexOf(value: string, comparisonType: System.StringComparison): number;
2415
- LastIndexOf(value: string, startIndex: number, comparisonType: System.StringComparison): number;
2416
- LastIndexOf(value: string, startIndex: number, count: number, comparisonType: System.StringComparison): number;
2417
- Clone(): any;
2418
- static Copy(str: string): string;
2419
- CopyTo(sourceIndex: number, destination: System.Char[], destinationIndex: number, count: number): void;
2420
- ToCharArray(): System.Char[];
2421
- ToCharArray(startIndex: number, length: number): System.Char[];
2422
- static IsNullOrEmpty(value: string): boolean;
2423
- static IsNullOrWhiteSpace(value: string): boolean;
2424
- ToString(): string;
2425
- ToString(provider: System.IFormatProvider): string;
2426
- GetEnumerator(): System.CharEnumerator;
2427
- GetTypeCode(): System.TypeCode;
2428
- IsNormalized(): boolean;
2429
- IsNormalized(normalizationForm: System.Text.NormalizationForm): boolean;
2430
- Normalize(): string;
2431
- Normalize(normalizationForm: System.Text.NormalizationForm): string;
2432
- static Concat(arg0: any, arg1: any, arg2: any, arg3: any): string;
2433
- static Intern(str: string): string;
2434
- static IsInterned(str: string): string;
2435
- GetType(): System.Type;
2436
- }
2437
2437
  class StringComparer {
2438
2438
  static InvariantCulture: System.StringComparer;
2439
2439
  static InvariantCultureIgnoreCase: System.StringComparer;
@@ -1,6 +1,6 @@
1
1
  //
2
2
  // Types in assemblies: mscorlib, mscorlib, System.Core, System, mscorlib, System, mscorlib
3
- // Generated 11/07/2021 17:47:28
3
+ // Generated 23/05/2022 15:31:45
4
4
  //
5
5
  /* eslint-disable */
6
6
  export {};
@@ -1,6 +1,6 @@
1
1
  //
2
2
  // Types in assemblies: nunit.framework
3
- // Generated 11/07/2021 17:47:35
3
+ // Generated 23/05/2022 15:31:53
4
4
  //
5
5
  /* eslint-disable */
6
6
  export {};