@dcl/playground-assets 7.8.0 → 7.8.1-14131012904.commit-6157fcb

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.8.0",
4
+ "version": "7.8.1-14131012904.commit-6157fcb",
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": "8d32240be828682a0e97b38c9e8a298d51eb5dcd"
38
+ "commit": "6157fcbf87f7bd79d04dc12aeaeb3b2adf5e8a9f"
39
39
  }
@@ -6571,6 +6571,15 @@ export declare namespace ReactEcs {
6571
6571
  }
6572
6572
  }
6573
6573
  const createElement: any;
6574
+ export type SetStateAction<T> = T | ((prevState: T) => T);
6575
+ export type Dispatch<T> = (action: SetStateAction<T>) => void;
6576
+ export type StateHook = <T>(initialState: T | (() => T)) => [T, Dispatch<T>];
6577
+ export type DependencyList = ReadonlyArray<any>;
6578
+ export type EffectCallback = () => void | (() => void | undefined);
6579
+ export type EffectHook = (effect: EffectCallback, deps?: DependencyList) => void;
6580
+ const useEffect: EffectHook;
6581
+ const useState: StateHook;
6582
+ {};
6574
6583
  }
6575
6584
 
6576
6585
  /**
@@ -63011,6 +63011,151 @@
63011
63011
  "endIndex": 2
63012
63012
  }
63013
63013
  },
63014
+ {
63015
+ "kind": "TypeAlias",
63016
+ "canonicalReference": "@dcl/playground-assets!ReactEcs.DependencyList:type",
63017
+ "docComment": "",
63018
+ "excerptTokens": [
63019
+ {
63020
+ "kind": "Content",
63021
+ "text": "type DependencyList = "
63022
+ },
63023
+ {
63024
+ "kind": "Reference",
63025
+ "text": "ReadonlyArray",
63026
+ "canonicalReference": "!ReadonlyArray:interface"
63027
+ },
63028
+ {
63029
+ "kind": "Content",
63030
+ "text": "<any>"
63031
+ },
63032
+ {
63033
+ "kind": "Content",
63034
+ "text": ";"
63035
+ }
63036
+ ],
63037
+ "releaseTag": "Public",
63038
+ "name": "DependencyList",
63039
+ "typeTokenRange": {
63040
+ "startIndex": 1,
63041
+ "endIndex": 3
63042
+ }
63043
+ },
63044
+ {
63045
+ "kind": "TypeAlias",
63046
+ "canonicalReference": "@dcl/playground-assets!ReactEcs.Dispatch:type",
63047
+ "docComment": "",
63048
+ "excerptTokens": [
63049
+ {
63050
+ "kind": "Content",
63051
+ "text": "type Dispatch<T> = "
63052
+ },
63053
+ {
63054
+ "kind": "Content",
63055
+ "text": "(action: "
63056
+ },
63057
+ {
63058
+ "kind": "Reference",
63059
+ "text": "SetStateAction",
63060
+ "canonicalReference": "@dcl/playground-assets!ReactEcs.SetStateAction:type"
63061
+ },
63062
+ {
63063
+ "kind": "Content",
63064
+ "text": "<T>) => void"
63065
+ },
63066
+ {
63067
+ "kind": "Content",
63068
+ "text": ";"
63069
+ }
63070
+ ],
63071
+ "releaseTag": "Public",
63072
+ "name": "Dispatch",
63073
+ "typeParameters": [
63074
+ {
63075
+ "typeParameterName": "T",
63076
+ "constraintTokenRange": {
63077
+ "startIndex": 0,
63078
+ "endIndex": 0
63079
+ },
63080
+ "defaultTypeTokenRange": {
63081
+ "startIndex": 0,
63082
+ "endIndex": 0
63083
+ }
63084
+ }
63085
+ ],
63086
+ "typeTokenRange": {
63087
+ "startIndex": 1,
63088
+ "endIndex": 4
63089
+ }
63090
+ },
63091
+ {
63092
+ "kind": "TypeAlias",
63093
+ "canonicalReference": "@dcl/playground-assets!ReactEcs.EffectCallback:type",
63094
+ "docComment": "",
63095
+ "excerptTokens": [
63096
+ {
63097
+ "kind": "Content",
63098
+ "text": "type EffectCallback = "
63099
+ },
63100
+ {
63101
+ "kind": "Content",
63102
+ "text": "() => void | (() => void | undefined)"
63103
+ },
63104
+ {
63105
+ "kind": "Content",
63106
+ "text": ";"
63107
+ }
63108
+ ],
63109
+ "releaseTag": "Public",
63110
+ "name": "EffectCallback",
63111
+ "typeTokenRange": {
63112
+ "startIndex": 1,
63113
+ "endIndex": 2
63114
+ }
63115
+ },
63116
+ {
63117
+ "kind": "TypeAlias",
63118
+ "canonicalReference": "@dcl/playground-assets!ReactEcs.EffectHook:type",
63119
+ "docComment": "",
63120
+ "excerptTokens": [
63121
+ {
63122
+ "kind": "Content",
63123
+ "text": "type EffectHook = "
63124
+ },
63125
+ {
63126
+ "kind": "Content",
63127
+ "text": "(effect: "
63128
+ },
63129
+ {
63130
+ "kind": "Reference",
63131
+ "text": "EffectCallback",
63132
+ "canonicalReference": "@dcl/playground-assets!ReactEcs.EffectCallback:type"
63133
+ },
63134
+ {
63135
+ "kind": "Content",
63136
+ "text": ", deps?: "
63137
+ },
63138
+ {
63139
+ "kind": "Reference",
63140
+ "text": "DependencyList",
63141
+ "canonicalReference": "@dcl/playground-assets!ReactEcs.DependencyList:type"
63142
+ },
63143
+ {
63144
+ "kind": "Content",
63145
+ "text": ") => void"
63146
+ },
63147
+ {
63148
+ "kind": "Content",
63149
+ "text": ";"
63150
+ }
63151
+ ],
63152
+ "releaseTag": "Public",
63153
+ "name": "EffectHook",
63154
+ "typeTokenRange": {
63155
+ "startIndex": 1,
63156
+ "endIndex": 6
63157
+ }
63158
+ },
63014
63159
  {
63015
63160
  "kind": "Namespace",
63016
63161
  "canonicalReference": "@dcl/playground-assets!ReactEcs.JSX:namespace",
@@ -63018,7 +63163,7 @@
63018
63163
  "excerptTokens": [
63019
63164
  {
63020
63165
  "kind": "Content",
63021
- "text": "namespace JSX "
63166
+ "text": "export namespace JSX "
63022
63167
  }
63023
63168
  ],
63024
63169
  "releaseTag": "Public",
@@ -63154,6 +63299,124 @@
63154
63299
  }
63155
63300
  }
63156
63301
  ]
63302
+ },
63303
+ {
63304
+ "kind": "TypeAlias",
63305
+ "canonicalReference": "@dcl/playground-assets!ReactEcs.SetStateAction:type",
63306
+ "docComment": "",
63307
+ "excerptTokens": [
63308
+ {
63309
+ "kind": "Content",
63310
+ "text": "type SetStateAction<T> = "
63311
+ },
63312
+ {
63313
+ "kind": "Content",
63314
+ "text": "T | ((prevState: T) => T)"
63315
+ },
63316
+ {
63317
+ "kind": "Content",
63318
+ "text": ";"
63319
+ }
63320
+ ],
63321
+ "releaseTag": "Public",
63322
+ "name": "SetStateAction",
63323
+ "typeParameters": [
63324
+ {
63325
+ "typeParameterName": "T",
63326
+ "constraintTokenRange": {
63327
+ "startIndex": 0,
63328
+ "endIndex": 0
63329
+ },
63330
+ "defaultTypeTokenRange": {
63331
+ "startIndex": 0,
63332
+ "endIndex": 0
63333
+ }
63334
+ }
63335
+ ],
63336
+ "typeTokenRange": {
63337
+ "startIndex": 1,
63338
+ "endIndex": 2
63339
+ }
63340
+ },
63341
+ {
63342
+ "kind": "TypeAlias",
63343
+ "canonicalReference": "@dcl/playground-assets!ReactEcs.StateHook:type",
63344
+ "docComment": "",
63345
+ "excerptTokens": [
63346
+ {
63347
+ "kind": "Content",
63348
+ "text": "type StateHook = "
63349
+ },
63350
+ {
63351
+ "kind": "Content",
63352
+ "text": "<T>(initialState: T | (() => T)) => [T, "
63353
+ },
63354
+ {
63355
+ "kind": "Reference",
63356
+ "text": "Dispatch",
63357
+ "canonicalReference": "@dcl/playground-assets!ReactEcs.Dispatch:type"
63358
+ },
63359
+ {
63360
+ "kind": "Content",
63361
+ "text": "<T>]"
63362
+ },
63363
+ {
63364
+ "kind": "Content",
63365
+ "text": ";"
63366
+ }
63367
+ ],
63368
+ "releaseTag": "Public",
63369
+ "name": "StateHook",
63370
+ "typeTokenRange": {
63371
+ "startIndex": 1,
63372
+ "endIndex": 4
63373
+ }
63374
+ },
63375
+ {
63376
+ "kind": "Variable",
63377
+ "canonicalReference": "@dcl/playground-assets!ReactEcs.useEffect:var",
63378
+ "docComment": "",
63379
+ "excerptTokens": [
63380
+ {
63381
+ "kind": "Content",
63382
+ "text": "useEffect: "
63383
+ },
63384
+ {
63385
+ "kind": "Reference",
63386
+ "text": "EffectHook",
63387
+ "canonicalReference": "@dcl/playground-assets!ReactEcs.EffectHook:type"
63388
+ }
63389
+ ],
63390
+ "isReadonly": true,
63391
+ "releaseTag": "Public",
63392
+ "name": "useEffect",
63393
+ "variableTypeTokenRange": {
63394
+ "startIndex": 1,
63395
+ "endIndex": 2
63396
+ }
63397
+ },
63398
+ {
63399
+ "kind": "Variable",
63400
+ "canonicalReference": "@dcl/playground-assets!ReactEcs.useState:var",
63401
+ "docComment": "",
63402
+ "excerptTokens": [
63403
+ {
63404
+ "kind": "Content",
63405
+ "text": "useState: "
63406
+ },
63407
+ {
63408
+ "kind": "Reference",
63409
+ "text": "StateHook",
63410
+ "canonicalReference": "@dcl/playground-assets!ReactEcs.StateHook:type"
63411
+ }
63412
+ ],
63413
+ "isReadonly": true,
63414
+ "releaseTag": "Public",
63415
+ "name": "useState",
63416
+ "variableTypeTokenRange": {
63417
+ "startIndex": 1,
63418
+ "endIndex": 2
63419
+ }
63157
63420
  }
63158
63421
  ]
63159
63422
  },
@@ -3659,6 +3659,16 @@ export interface ReactBasedUiSystem {
3659
3659
 
3660
3660
  // @public (undocumented)
3661
3661
  export namespace ReactEcs {
3662
+ // (undocumented)
3663
+ export type DependencyList = ReadonlyArray<any>;
3664
+ const // (undocumented)
3665
+ createElement: any;
3666
+ // (undocumented)
3667
+ export type Dispatch<T> = (action: SetStateAction<T>) => void;
3668
+ // (undocumented)
3669
+ export type EffectCallback = () => void | (() => void | undefined);
3670
+ // (undocumented)
3671
+ export type EffectHook = (effect: EffectCallback, deps?: DependencyList) => void;
3662
3672
  // (undocumented)
3663
3673
  export namespace JSX {
3664
3674
  export interface Component {
@@ -3671,8 +3681,15 @@ export namespace ReactEcs {
3671
3681
  // (undocumented)
3672
3682
  export type ReactNode = Element | ReactElement | string | number | boolean | null | undefined | ReactNode[];
3673
3683
  }
3684
+ // (undocumented)
3685
+ export type SetStateAction<T> = T | ((prevState: T) => T);
3686
+ // (undocumented)
3687
+ export type StateHook = <T>(initialState: T | (() => T)) => [T, Dispatch<T>];
3674
3688
  const // (undocumented)
3675
- createElement: any;
3689
+ useEffect: EffectHook;
3690
+ const // (undocumented)
3691
+ useState: StateHook;
3692
+ {};
3676
3693
  }
3677
3694
 
3678
3695
  // Warning: (tsdoc-at-sign-in-word) The "@" character looks like part of a TSDoc tag; use a backslash to escape it
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@dcl/playground-assets",
3
3
  "description": "",
4
- "version": "7.8.0",
4
+ "version": "7.8.1-14131012904.commit-6157fcb",
5
5
  "author": "Decentraland",
6
6
  "dependencies": {
7
- "@dcl/js-runtime": "7.8.0",
8
- "@dcl/sdk": "7.8.0"
7
+ "@dcl/js-runtime": "7.8.1-14131012904.commit-6157fcb",
8
+ "@dcl/sdk": "7.8.1-14131012904.commit-6157fcb"
9
9
  },
10
10
  "devDependencies": {
11
11
  "@microsoft/api-extractor": "^7.33.8"
@@ -32,5 +32,5 @@
32
32
  },
33
33
  "types": "./dist/index.d.ts",
34
34
  "typings": "./dist/index.d.ts",
35
- "commit": "8d32240be828682a0e97b38c9e8a298d51eb5dcd"
35
+ "commit": "6157fcbf87f7bd79d04dc12aeaeb3b2adf5e8a9f"
36
36
  }