@dcl/react-ecs 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.
@@ -50,7 +50,7 @@ export interface ReactElement<P = any, T extends string | JSXElementConstructor<
50
50
  * @public
51
51
  */
52
52
  export declare namespace ReactEcs {
53
- namespace JSX {
53
+ export namespace JSX {
54
54
  /**
55
55
  * @public
56
56
  */
@@ -73,5 +73,14 @@ export declare namespace ReactEcs {
73
73
  interface Component {
74
74
  }
75
75
  }
76
- const createElement: any;
76
+ export const createElement: any;
77
+ type SetStateAction<T> = T | ((prevState: T) => T);
78
+ type Dispatch<T> = (action: SetStateAction<T>) => void;
79
+ type StateHook = <T>(initialState: T | (() => T)) => [T, Dispatch<T>];
80
+ type DependencyList = ReadonlyArray<any>;
81
+ type EffectCallback = () => void | (() => void | undefined);
82
+ type EffectHook = (effect: EffectCallback, deps?: DependencyList) => void;
83
+ export const useEffect: EffectHook;
84
+ export const useState: StateHook;
85
+ export {};
77
86
  }
package/dist/react-ecs.js CHANGED
@@ -5,4 +5,6 @@ import React from 'react';
5
5
  export var ReactEcs;
6
6
  (function (ReactEcs) {
7
7
  ReactEcs.createElement = React.createElement;
8
+ ReactEcs.useEffect = React.useEffect;
9
+ ReactEcs.useState = React.useState;
8
10
  })(ReactEcs || (ReactEcs = {}));
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@dcl/react-ecs",
3
3
  "description": "Decentraland ECS",
4
- "version": "7.8.0",
4
+ "version": "7.8.1-14131012904.commit-6157fcb",
5
5
  "author": "DCL",
6
6
  "bugs": "https://github.com/decentraland/js-sdk-toolchain/issues",
7
7
  "dependencies": {
8
- "@dcl/ecs": "7.8.0",
8
+ "@dcl/ecs": "7.8.1-14131012904.commit-6157fcb",
9
9
  "react": "^18.2.0",
10
10
  "react-reconciler": "^0.29.0"
11
11
  },
@@ -40,5 +40,5 @@
40
40
  "tsconfig": "./tsconfig.json"
41
41
  },
42
42
  "types": "./dist/index.d.ts",
43
- "commit": "8d32240be828682a0e97b38c9e8a298d51eb5dcd"
43
+ "commit": "6157fcbf87f7bd79d04dc12aeaeb3b2adf5e8a9f"
44
44
  }