@dcl/playground-assets 7.4.22-9129040248.commit-e3dda7a → 7.4.22-9131010642.commit-9fa5dc0

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/alpha.d.ts CHANGED
@@ -477,7 +477,7 @@ export declare const enum CameraType {
477
477
  CT_CINEMATIC = 2
478
478
  }
479
479
 
480
- export declare type Children = unknown;
480
+ export declare type Children = ReactNode;
481
481
 
482
482
  /** ColliderLayer determines the kind of collision to detect, in OR-able bit flag form. */
483
483
  /**
@@ -1784,7 +1784,7 @@ export declare const enum EasingFunction {
1784
1784
  */
1785
1785
  export declare interface EcsElements {
1786
1786
  entity: Partial<EntityComponents> & {
1787
- children?: Children;
1787
+ children?: ReactNode;
1788
1788
  key?: Key;
1789
1789
  };
1790
1790
  }
@@ -2483,12 +2483,19 @@ export declare type JsonSchemaExtended = {
2483
2483
  * @hidden
2484
2484
  */
2485
2485
  export declare namespace JSX {
2486
- export type Element = {} | null;
2487
- export type IntrinsicElements = EcsElements;
2486
+ export interface Element extends ReactElement<any, any> {
2487
+ }
2488
+ export interface IntrinsicElements extends EcsElements {
2489
+ }
2488
2490
  export interface Component {
2489
2491
  }
2490
2492
  }
2491
2493
 
2494
+ /**
2495
+ * @public
2496
+ */
2497
+ export declare type JSXElementConstructor<P> = (props: P) => ReactElement<any, any> | null;
2498
+
2492
2499
  /**
2493
2500
  * @public
2494
2501
  */
@@ -6298,12 +6305,18 @@ export declare namespace ReactEcs {
6298
6305
  /**
6299
6306
  * @public
6300
6307
  */
6301
- export type Element = {} | null;
6308
+ export type ReactNode = ReactElement | string | number | boolean | null | undefined;
6309
+ /**
6310
+ * @public
6311
+ */
6312
+ export interface Element extends ReactElement<any, any> {
6313
+ }
6302
6314
  /**
6303
6315
  * @public
6304
6316
  * HTML tag elements
6305
6317
  */
6306
- export type IntrinsicElements = EcsElements;
6318
+ export interface IntrinsicElements extends EcsElements {
6319
+ }
6307
6320
  /**
6308
6321
  * @public
6309
6322
  * Component empty interface
@@ -6323,6 +6336,20 @@ export declare namespace ReactEcs {
6323
6336
  */
6324
6337
  export declare const ReactEcsRenderer: ReactBasedUiSystem;
6325
6338
 
6339
+ /**
6340
+ * @public
6341
+ */
6342
+ export declare interface ReactElement<P = any, T extends string | JSXElementConstructor<any> = string | JSXElementConstructor<any>> {
6343
+ type: T;
6344
+ props: P;
6345
+ key: Key | null;
6346
+ }
6347
+
6348
+ /**
6349
+ * @public
6350
+ */
6351
+ export declare type ReactNode = ReactElement | string | number | boolean | null | undefined;
6352
+
6326
6353
  /**
6327
6354
  * @public
6328
6355
  */
@@ -7080,7 +7107,7 @@ export declare const UiCanvasInformation: LastWriteWinElementSetComponentDefinit
7080
7107
  /**
7081
7108
  * @public
7082
7109
  */
7083
- export declare type UiComponent = () => ReactEcs.JSX.Element;
7110
+ export declare type UiComponent = () => ReactEcs.JSX.ReactNode;
7084
7111
 
7085
7112
  /** @public */
7086
7113
  export declare const UiDropdown: LastWriteWinElementSetComponentDefinition<PBUiDropdown>;
package/dist/beta.d.ts CHANGED
@@ -477,7 +477,7 @@ export declare const enum CameraType {
477
477
  CT_CINEMATIC = 2
478
478
  }
479
479
 
480
- export declare type Children = unknown;
480
+ export declare type Children = ReactNode;
481
481
 
482
482
  /** ColliderLayer determines the kind of collision to detect, in OR-able bit flag form. */
483
483
  /**
@@ -1784,7 +1784,7 @@ export declare const enum EasingFunction {
1784
1784
  */
1785
1785
  export declare interface EcsElements {
1786
1786
  entity: Partial<EntityComponents> & {
1787
- children?: Children;
1787
+ children?: ReactNode;
1788
1788
  key?: Key;
1789
1789
  };
1790
1790
  }
@@ -2474,12 +2474,19 @@ export declare type JsonSchemaExtended = {
2474
2474
  * @hidden
2475
2475
  */
2476
2476
  export declare namespace JSX {
2477
- export type Element = {} | null;
2478
- export type IntrinsicElements = EcsElements;
2477
+ export interface Element extends ReactElement<any, any> {
2478
+ }
2479
+ export interface IntrinsicElements extends EcsElements {
2480
+ }
2479
2481
  export interface Component {
2480
2482
  }
2481
2483
  }
2482
2484
 
2485
+ /**
2486
+ * @public
2487
+ */
2488
+ export declare type JSXElementConstructor<P> = (props: P) => ReactElement<any, any> | null;
2489
+
2483
2490
  /**
2484
2491
  * @public
2485
2492
  */
@@ -6270,12 +6277,18 @@ export declare namespace ReactEcs {
6270
6277
  /**
6271
6278
  * @public
6272
6279
  */
6273
- export type Element = {} | null;
6280
+ export type ReactNode = ReactElement | string | number | boolean | null | undefined;
6281
+ /**
6282
+ * @public
6283
+ */
6284
+ export interface Element extends ReactElement<any, any> {
6285
+ }
6274
6286
  /**
6275
6287
  * @public
6276
6288
  * HTML tag elements
6277
6289
  */
6278
- export type IntrinsicElements = EcsElements;
6290
+ export interface IntrinsicElements extends EcsElements {
6291
+ }
6279
6292
  /**
6280
6293
  * @public
6281
6294
  * Component empty interface
@@ -6295,6 +6308,20 @@ export declare namespace ReactEcs {
6295
6308
  */
6296
6309
  export declare const ReactEcsRenderer: ReactBasedUiSystem;
6297
6310
 
6311
+ /**
6312
+ * @public
6313
+ */
6314
+ export declare interface ReactElement<P = any, T extends string | JSXElementConstructor<any> = string | JSXElementConstructor<any>> {
6315
+ type: T;
6316
+ props: P;
6317
+ key: Key | null;
6318
+ }
6319
+
6320
+ /**
6321
+ * @public
6322
+ */
6323
+ export declare type ReactNode = ReactElement | string | number | boolean | null | undefined;
6324
+
6298
6325
  /**
6299
6326
  * @public
6300
6327
  */
@@ -7047,7 +7074,7 @@ export declare const UiCanvasInformation: LastWriteWinElementSetComponentDefinit
7047
7074
  /**
7048
7075
  * @public
7049
7076
  */
7050
- export declare type UiComponent = () => ReactEcs.JSX.Element;
7077
+ export declare type UiComponent = () => ReactEcs.JSX.ReactNode;
7051
7078
 
7052
7079
  /** @public */
7053
7080
  export declare const UiDropdown: LastWriteWinElementSetComponentDefinition<PBUiDropdown>;
@@ -477,7 +477,7 @@ export declare const enum CameraType {
477
477
  CT_CINEMATIC = 2
478
478
  }
479
479
 
480
- export declare type Children = unknown;
480
+ export declare type Children = ReactNode;
481
481
 
482
482
  /** ColliderLayer determines the kind of collision to detect, in OR-able bit flag form. */
483
483
  /**
@@ -1784,7 +1784,7 @@ export declare const enum EasingFunction {
1784
1784
  */
1785
1785
  export declare interface EcsElements {
1786
1786
  entity: Partial<EntityComponents> & {
1787
- children?: Children;
1787
+ children?: ReactNode;
1788
1788
  key?: Key;
1789
1789
  };
1790
1790
  }
@@ -2474,12 +2474,19 @@ export declare type JsonSchemaExtended = {
2474
2474
  * @hidden
2475
2475
  */
2476
2476
  export declare namespace JSX {
2477
- export type Element = {} | null;
2478
- export type IntrinsicElements = EcsElements;
2477
+ export interface Element extends ReactElement<any, any> {
2478
+ }
2479
+ export interface IntrinsicElements extends EcsElements {
2480
+ }
2479
2481
  export interface Component {
2480
2482
  }
2481
2483
  }
2482
2484
 
2485
+ /**
2486
+ * @public
2487
+ */
2488
+ export declare type JSXElementConstructor<P> = (props: P) => ReactElement<any, any> | null;
2489
+
2483
2490
  /**
2484
2491
  * @public
2485
2492
  */
@@ -6270,12 +6277,18 @@ export declare namespace ReactEcs {
6270
6277
  /**
6271
6278
  * @public
6272
6279
  */
6273
- export type Element = {} | null;
6280
+ export type ReactNode = ReactElement | string | number | boolean | null | undefined;
6281
+ /**
6282
+ * @public
6283
+ */
6284
+ export interface Element extends ReactElement<any, any> {
6285
+ }
6274
6286
  /**
6275
6287
  * @public
6276
6288
  * HTML tag elements
6277
6289
  */
6278
- export type IntrinsicElements = EcsElements;
6290
+ export interface IntrinsicElements extends EcsElements {
6291
+ }
6279
6292
  /**
6280
6293
  * @public
6281
6294
  * Component empty interface
@@ -6295,6 +6308,20 @@ export declare namespace ReactEcs {
6295
6308
  */
6296
6309
  export declare const ReactEcsRenderer: ReactBasedUiSystem;
6297
6310
 
6311
+ /**
6312
+ * @public
6313
+ */
6314
+ export declare interface ReactElement<P = any, T extends string | JSXElementConstructor<any> = string | JSXElementConstructor<any>> {
6315
+ type: T;
6316
+ props: P;
6317
+ key: Key | null;
6318
+ }
6319
+
6320
+ /**
6321
+ * @public
6322
+ */
6323
+ export declare type ReactNode = ReactElement | string | number | boolean | null | undefined;
6324
+
6298
6325
  /**
6299
6326
  * @public
6300
6327
  */
@@ -7047,7 +7074,7 @@ export declare const UiCanvasInformation: LastWriteWinElementSetComponentDefinit
7047
7074
  /**
7048
7075
  * @public
7049
7076
  */
7050
- export declare type UiComponent = () => ReactEcs.JSX.Element;
7077
+ export declare type UiComponent = () => ReactEcs.JSX.ReactNode;
7051
7078
 
7052
7079
  /** @public */
7053
7080
  export declare const UiDropdown: LastWriteWinElementSetComponentDefinition<PBUiDropdown>;