@dcl/playground-assets 7.4.22-9118542123.commit-6049b3a → 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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dcl/sdk",
3
3
  "description": "",
4
- "version": "7.4.22-9118542123.commit-6049b3a",
4
+ "version": "7.4.22-9131010642.commit-9fa5dc0",
5
5
  "author": "Decentraland",
6
6
  "dependencies": {
7
7
  "@dcl/ecs": "file:../ecs",
@@ -35,5 +35,5 @@
35
35
  },
36
36
  "types": "./index.d.ts",
37
37
  "typings": "./index.d.ts",
38
- "commit": "6049b3a811d4b976f46bce0d5ec70c2f7d5c965c"
38
+ "commit": "9fa5dc09277c543b9c91e92d8baad31bfa4c4a13"
39
39
  }
@@ -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>;
@@ -3416,7 +3416,7 @@
3416
3416
  {
3417
3417
  "kind": "Reference",
3418
3418
  "text": "ReactEcs.JSX.Element",
3419
- "canonicalReference": "@dcl/playground-assets!ReactEcs.JSX.Element:type"
3419
+ "canonicalReference": "@dcl/playground-assets!ReactEcs.JSX.Element:interface"
3420
3420
  },
3421
3421
  {
3422
3422
  "kind": "Content",
@@ -5937,8 +5937,9 @@
5937
5937
  "text": "export type Children = "
5938
5938
  },
5939
5939
  {
5940
- "kind": "Content",
5941
- "text": "unknown"
5940
+ "kind": "Reference",
5941
+ "text": "ReactNode",
5942
+ "canonicalReference": "@dcl/playground-assets!ReactNode:type"
5942
5943
  },
5943
5944
  {
5944
5945
  "kind": "Content",
@@ -17097,7 +17098,7 @@
17097
17098
  {
17098
17099
  "kind": "Reference",
17099
17100
  "text": "ReactEcs.JSX.Element",
17100
- "canonicalReference": "@dcl/playground-assets!ReactEcs.JSX.Element:type"
17101
+ "canonicalReference": "@dcl/playground-assets!ReactEcs.JSX.Element:interface"
17101
17102
  },
17102
17103
  {
17103
17104
  "kind": "Content",
@@ -17835,8 +17836,8 @@
17835
17836
  },
17836
17837
  {
17837
17838
  "kind": "Reference",
17838
- "text": "Children",
17839
- "canonicalReference": "@dcl/playground-assets!Children:type"
17839
+ "text": "ReactNode",
17840
+ "canonicalReference": "@dcl/playground-assets!ReactNode:type"
17840
17841
  },
17841
17842
  {
17842
17843
  "kind": "Content",
@@ -21800,7 +21801,7 @@
21800
21801
  {
21801
21802
  "kind": "Reference",
21802
21803
  "text": "ReactEcs.JSX.Element",
21803
- "canonicalReference": "@dcl/playground-assets!ReactEcs.JSX.Element:type"
21804
+ "canonicalReference": "@dcl/playground-assets!ReactEcs.JSX.Element:interface"
21804
21805
  },
21805
21806
  {
21806
21807
  "kind": "Content",
@@ -22851,38 +22852,47 @@
22851
22852
  "extendsTokenRanges": []
22852
22853
  },
22853
22854
  {
22854
- "kind": "TypeAlias",
22855
- "canonicalReference": "@dcl/playground-assets!JSX.Element:type",
22855
+ "kind": "Interface",
22856
+ "canonicalReference": "@dcl/playground-assets!JSX.Element:interface",
22856
22857
  "docComment": "",
22857
22858
  "excerptTokens": [
22858
22859
  {
22859
22860
  "kind": "Content",
22860
- "text": "type Element = "
22861
+ "text": "interface Element extends "
22862
+ },
22863
+ {
22864
+ "kind": "Reference",
22865
+ "text": "ReactElement",
22866
+ "canonicalReference": "@dcl/playground-assets!ReactElement:interface"
22861
22867
  },
22862
22868
  {
22863
22869
  "kind": "Content",
22864
- "text": "{} | null"
22870
+ "text": "<any, any>"
22865
22871
  },
22866
22872
  {
22867
22873
  "kind": "Content",
22868
- "text": ";"
22874
+ "text": " "
22869
22875
  }
22870
22876
  ],
22871
22877
  "releaseTag": "Public",
22872
22878
  "name": "Element",
22873
- "typeTokenRange": {
22874
- "startIndex": 1,
22875
- "endIndex": 2
22876
- }
22879
+ "preserveMemberOrder": false,
22880
+ "members": [],
22881
+ "extendsTokenRanges": [
22882
+ {
22883
+ "startIndex": 1,
22884
+ "endIndex": 3
22885
+ }
22886
+ ]
22877
22887
  },
22878
22888
  {
22879
- "kind": "TypeAlias",
22880
- "canonicalReference": "@dcl/playground-assets!JSX.IntrinsicElements:type",
22889
+ "kind": "Interface",
22890
+ "canonicalReference": "@dcl/playground-assets!JSX.IntrinsicElements:interface",
22881
22891
  "docComment": "",
22882
22892
  "excerptTokens": [
22883
22893
  {
22884
22894
  "kind": "Content",
22885
- "text": "type IntrinsicElements = "
22895
+ "text": "interface IntrinsicElements extends "
22886
22896
  },
22887
22897
  {
22888
22898
  "kind": "Reference",
@@ -22891,18 +22901,70 @@
22891
22901
  },
22892
22902
  {
22893
22903
  "kind": "Content",
22894
- "text": ";"
22904
+ "text": " "
22895
22905
  }
22896
22906
  ],
22897
22907
  "releaseTag": "Public",
22898
22908
  "name": "IntrinsicElements",
22899
- "typeTokenRange": {
22900
- "startIndex": 1,
22901
- "endIndex": 2
22902
- }
22909
+ "preserveMemberOrder": false,
22910
+ "members": [],
22911
+ "extendsTokenRanges": [
22912
+ {
22913
+ "startIndex": 1,
22914
+ "endIndex": 2
22915
+ }
22916
+ ]
22903
22917
  }
22904
22918
  ]
22905
22919
  },
22920
+ {
22921
+ "kind": "TypeAlias",
22922
+ "canonicalReference": "@dcl/playground-assets!JSXElementConstructor:type",
22923
+ "docComment": "/**\n * @public\n */\n",
22924
+ "excerptTokens": [
22925
+ {
22926
+ "kind": "Content",
22927
+ "text": "export type JSXElementConstructor<P> = "
22928
+ },
22929
+ {
22930
+ "kind": "Content",
22931
+ "text": "(props: P) => "
22932
+ },
22933
+ {
22934
+ "kind": "Reference",
22935
+ "text": "ReactElement",
22936
+ "canonicalReference": "@dcl/playground-assets!ReactElement:interface"
22937
+ },
22938
+ {
22939
+ "kind": "Content",
22940
+ "text": "<any, any> | null"
22941
+ },
22942
+ {
22943
+ "kind": "Content",
22944
+ "text": ";"
22945
+ }
22946
+ ],
22947
+ "fileUrlPath": "../react-ecs/dist/react-ecs.d.ts",
22948
+ "releaseTag": "Public",
22949
+ "name": "JSXElementConstructor",
22950
+ "typeParameters": [
22951
+ {
22952
+ "typeParameterName": "P",
22953
+ "constraintTokenRange": {
22954
+ "startIndex": 0,
22955
+ "endIndex": 0
22956
+ },
22957
+ "defaultTypeTokenRange": {
22958
+ "startIndex": 0,
22959
+ "endIndex": 0
22960
+ }
22961
+ }
22962
+ ],
22963
+ "typeTokenRange": {
22964
+ "startIndex": 1,
22965
+ "endIndex": 4
22966
+ }
22967
+ },
22906
22968
  {
22907
22969
  "kind": "TypeAlias",
22908
22970
  "canonicalReference": "@dcl/playground-assets!JustifyType:type",
@@ -22985,7 +23047,7 @@
22985
23047
  {
22986
23048
  "kind": "Reference",
22987
23049
  "text": "ReactEcs.JSX.Element",
22988
- "canonicalReference": "@dcl/playground-assets!ReactEcs.JSX.Element:type"
23050
+ "canonicalReference": "@dcl/playground-assets!ReactEcs.JSX.Element:interface"
22989
23051
  },
22990
23052
  {
22991
23053
  "kind": "Content",
@@ -60173,38 +60235,47 @@
60173
60235
  "extendsTokenRanges": []
60174
60236
  },
60175
60237
  {
60176
- "kind": "TypeAlias",
60177
- "canonicalReference": "@dcl/playground-assets!ReactEcs.JSX.Element:type",
60238
+ "kind": "Interface",
60239
+ "canonicalReference": "@dcl/playground-assets!ReactEcs.JSX.Element:interface",
60178
60240
  "docComment": "/**\n * @public\n */\n",
60179
60241
  "excerptTokens": [
60180
60242
  {
60181
60243
  "kind": "Content",
60182
- "text": "type Element = "
60244
+ "text": "interface Element extends "
60245
+ },
60246
+ {
60247
+ "kind": "Reference",
60248
+ "text": "ReactElement",
60249
+ "canonicalReference": "@dcl/playground-assets!ReactElement:interface"
60183
60250
  },
60184
60251
  {
60185
60252
  "kind": "Content",
60186
- "text": "{} | null"
60253
+ "text": "<any, any>"
60187
60254
  },
60188
60255
  {
60189
60256
  "kind": "Content",
60190
- "text": ";"
60257
+ "text": " "
60191
60258
  }
60192
60259
  ],
60193
60260
  "releaseTag": "Public",
60194
60261
  "name": "Element",
60195
- "typeTokenRange": {
60196
- "startIndex": 1,
60197
- "endIndex": 2
60198
- }
60262
+ "preserveMemberOrder": false,
60263
+ "members": [],
60264
+ "extendsTokenRanges": [
60265
+ {
60266
+ "startIndex": 1,
60267
+ "endIndex": 3
60268
+ }
60269
+ ]
60199
60270
  },
60200
60271
  {
60201
- "kind": "TypeAlias",
60202
- "canonicalReference": "@dcl/playground-assets!ReactEcs.JSX.IntrinsicElements:type",
60272
+ "kind": "Interface",
60273
+ "canonicalReference": "@dcl/playground-assets!ReactEcs.JSX.IntrinsicElements:interface",
60203
60274
  "docComment": "/**\n * HTML tag elements\n *\n * @public\n */\n",
60204
60275
  "excerptTokens": [
60205
60276
  {
60206
60277
  "kind": "Content",
60207
- "text": "type IntrinsicElements = "
60278
+ "text": "interface IntrinsicElements extends "
60208
60279
  },
60209
60280
  {
60210
60281
  "kind": "Reference",
@@ -60213,14 +60284,48 @@
60213
60284
  },
60214
60285
  {
60215
60286
  "kind": "Content",
60216
- "text": ";"
60287
+ "text": " "
60217
60288
  }
60218
60289
  ],
60219
60290
  "releaseTag": "Public",
60220
60291
  "name": "IntrinsicElements",
60292
+ "preserveMemberOrder": false,
60293
+ "members": [],
60294
+ "extendsTokenRanges": [
60295
+ {
60296
+ "startIndex": 1,
60297
+ "endIndex": 2
60298
+ }
60299
+ ]
60300
+ },
60301
+ {
60302
+ "kind": "TypeAlias",
60303
+ "canonicalReference": "@dcl/playground-assets!ReactEcs.JSX.ReactNode:type",
60304
+ "docComment": "/**\n * @public\n */\n",
60305
+ "excerptTokens": [
60306
+ {
60307
+ "kind": "Content",
60308
+ "text": "type ReactNode = "
60309
+ },
60310
+ {
60311
+ "kind": "Reference",
60312
+ "text": "ReactElement",
60313
+ "canonicalReference": "@dcl/playground-assets!ReactElement:interface"
60314
+ },
60315
+ {
60316
+ "kind": "Content",
60317
+ "text": " | string | number | boolean | null | undefined"
60318
+ },
60319
+ {
60320
+ "kind": "Content",
60321
+ "text": ";"
60322
+ }
60323
+ ],
60324
+ "releaseTag": "Public",
60325
+ "name": "ReactNode",
60221
60326
  "typeTokenRange": {
60222
60327
  "startIndex": 1,
60223
- "endIndex": 2
60328
+ "endIndex": 3
60224
60329
  }
60225
60330
  }
60226
60331
  ]
@@ -60251,6 +60356,207 @@
60251
60356
  "endIndex": 2
60252
60357
  }
60253
60358
  },
60359
+ {
60360
+ "kind": "Interface",
60361
+ "canonicalReference": "@dcl/playground-assets!ReactElement:interface",
60362
+ "docComment": "/**\n * @public\n */\n",
60363
+ "excerptTokens": [
60364
+ {
60365
+ "kind": "Content",
60366
+ "text": "export interface ReactElement<P = "
60367
+ },
60368
+ {
60369
+ "kind": "Content",
60370
+ "text": "any"
60371
+ },
60372
+ {
60373
+ "kind": "Content",
60374
+ "text": ", T extends "
60375
+ },
60376
+ {
60377
+ "kind": "Content",
60378
+ "text": "string | "
60379
+ },
60380
+ {
60381
+ "kind": "Reference",
60382
+ "text": "JSXElementConstructor",
60383
+ "canonicalReference": "@dcl/playground-assets!JSXElementConstructor:type"
60384
+ },
60385
+ {
60386
+ "kind": "Content",
60387
+ "text": "<any>"
60388
+ },
60389
+ {
60390
+ "kind": "Content",
60391
+ "text": " = "
60392
+ },
60393
+ {
60394
+ "kind": "Content",
60395
+ "text": "string | "
60396
+ },
60397
+ {
60398
+ "kind": "Reference",
60399
+ "text": "JSXElementConstructor",
60400
+ "canonicalReference": "@dcl/playground-assets!JSXElementConstructor:type"
60401
+ },
60402
+ {
60403
+ "kind": "Content",
60404
+ "text": "<any>"
60405
+ },
60406
+ {
60407
+ "kind": "Content",
60408
+ "text": "> "
60409
+ }
60410
+ ],
60411
+ "fileUrlPath": "../react-ecs/dist/react-ecs.d.ts",
60412
+ "releaseTag": "Public",
60413
+ "typeParameters": [
60414
+ {
60415
+ "typeParameterName": "P",
60416
+ "constraintTokenRange": {
60417
+ "startIndex": 0,
60418
+ "endIndex": 0
60419
+ },
60420
+ "defaultTypeTokenRange": {
60421
+ "startIndex": 1,
60422
+ "endIndex": 2
60423
+ }
60424
+ },
60425
+ {
60426
+ "typeParameterName": "T",
60427
+ "constraintTokenRange": {
60428
+ "startIndex": 3,
60429
+ "endIndex": 6
60430
+ },
60431
+ "defaultTypeTokenRange": {
60432
+ "startIndex": 7,
60433
+ "endIndex": 10
60434
+ }
60435
+ }
60436
+ ],
60437
+ "name": "ReactElement",
60438
+ "preserveMemberOrder": false,
60439
+ "members": [
60440
+ {
60441
+ "kind": "PropertySignature",
60442
+ "canonicalReference": "@dcl/playground-assets!ReactElement#key:member",
60443
+ "docComment": "",
60444
+ "excerptTokens": [
60445
+ {
60446
+ "kind": "Content",
60447
+ "text": "key: "
60448
+ },
60449
+ {
60450
+ "kind": "Reference",
60451
+ "text": "Key",
60452
+ "canonicalReference": "@dcl/playground-assets!Key:type"
60453
+ },
60454
+ {
60455
+ "kind": "Content",
60456
+ "text": " | null"
60457
+ },
60458
+ {
60459
+ "kind": "Content",
60460
+ "text": ";"
60461
+ }
60462
+ ],
60463
+ "isReadonly": false,
60464
+ "isOptional": false,
60465
+ "releaseTag": "Public",
60466
+ "name": "key",
60467
+ "propertyTypeTokenRange": {
60468
+ "startIndex": 1,
60469
+ "endIndex": 3
60470
+ }
60471
+ },
60472
+ {
60473
+ "kind": "PropertySignature",
60474
+ "canonicalReference": "@dcl/playground-assets!ReactElement#props:member",
60475
+ "docComment": "",
60476
+ "excerptTokens": [
60477
+ {
60478
+ "kind": "Content",
60479
+ "text": "props: "
60480
+ },
60481
+ {
60482
+ "kind": "Content",
60483
+ "text": "P"
60484
+ },
60485
+ {
60486
+ "kind": "Content",
60487
+ "text": ";"
60488
+ }
60489
+ ],
60490
+ "isReadonly": false,
60491
+ "isOptional": false,
60492
+ "releaseTag": "Public",
60493
+ "name": "props",
60494
+ "propertyTypeTokenRange": {
60495
+ "startIndex": 1,
60496
+ "endIndex": 2
60497
+ }
60498
+ },
60499
+ {
60500
+ "kind": "PropertySignature",
60501
+ "canonicalReference": "@dcl/playground-assets!ReactElement#type:member",
60502
+ "docComment": "",
60503
+ "excerptTokens": [
60504
+ {
60505
+ "kind": "Content",
60506
+ "text": "type: "
60507
+ },
60508
+ {
60509
+ "kind": "Content",
60510
+ "text": "T"
60511
+ },
60512
+ {
60513
+ "kind": "Content",
60514
+ "text": ";"
60515
+ }
60516
+ ],
60517
+ "isReadonly": false,
60518
+ "isOptional": false,
60519
+ "releaseTag": "Public",
60520
+ "name": "type",
60521
+ "propertyTypeTokenRange": {
60522
+ "startIndex": 1,
60523
+ "endIndex": 2
60524
+ }
60525
+ }
60526
+ ],
60527
+ "extendsTokenRanges": []
60528
+ },
60529
+ {
60530
+ "kind": "TypeAlias",
60531
+ "canonicalReference": "@dcl/playground-assets!ReactNode:type",
60532
+ "docComment": "/**\n * @public\n */\n",
60533
+ "excerptTokens": [
60534
+ {
60535
+ "kind": "Content",
60536
+ "text": "export type ReactNode = "
60537
+ },
60538
+ {
60539
+ "kind": "Reference",
60540
+ "text": "ReactElement",
60541
+ "canonicalReference": "@dcl/playground-assets!ReactElement:interface"
60542
+ },
60543
+ {
60544
+ "kind": "Content",
60545
+ "text": " | string | number | boolean | null | undefined"
60546
+ },
60547
+ {
60548
+ "kind": "Content",
60549
+ "text": ";"
60550
+ }
60551
+ ],
60552
+ "fileUrlPath": "../react-ecs/dist/react-ecs.d.ts",
60553
+ "releaseTag": "Public",
60554
+ "name": "ReactNode",
60555
+ "typeTokenRange": {
60556
+ "startIndex": 1,
60557
+ "endIndex": 3
60558
+ }
60559
+ },
60254
60560
  {
60255
60561
  "kind": "TypeAlias",
60256
60562
  "canonicalReference": "@dcl/playground-assets!ReadonlyComponentSchema:type",
@@ -67069,8 +67375,8 @@
67069
67375
  },
67070
67376
  {
67071
67377
  "kind": "Reference",
67072
- "text": "ReactEcs.JSX.Element",
67073
- "canonicalReference": "@dcl/playground-assets!ReactEcs.JSX.Element:type"
67378
+ "text": "ReactEcs.JSX.ReactNode",
67379
+ "canonicalReference": "@dcl/playground-assets!ReactEcs.JSX.ReactNode:type"
67074
67380
  },
67075
67381
  {
67076
67382
  "kind": "Content",
@@ -67389,7 +67695,7 @@
67389
67695
  {
67390
67696
  "kind": "Reference",
67391
67697
  "text": "ReactEcs.JSX.Element",
67392
- "canonicalReference": "@dcl/playground-assets!ReactEcs.JSX.Element:type"
67698
+ "canonicalReference": "@dcl/playground-assets!ReactEcs.JSX.Element:interface"
67393
67699
  },
67394
67700
  {
67395
67701
  "kind": "Content",