@dcl/react-ecs 7.5.1-9259591758.commit-96b8158 → 7.5.1-9299912306.commit-7629bda
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,4 +1,3 @@
|
|
|
1
|
-
import { ReactNode } from '../react-ecs';
|
|
2
1
|
import { Listeners } from './listeners/types';
|
|
3
2
|
import { UiBackgroundProps } from './uiBackground/types';
|
|
4
3
|
import { UiTransformProps } from './uiTransform/types';
|
|
@@ -20,7 +19,7 @@ export interface EntityPropTypes extends Listeners {
|
|
|
20
19
|
* @public
|
|
21
20
|
*/
|
|
22
21
|
export type Key = number | string;
|
|
23
|
-
export type Children =
|
|
22
|
+
export type Children = unknown;
|
|
24
23
|
/**
|
|
25
24
|
* unit value type. i.e. 'vw' || 'vh'
|
|
26
25
|
* @public
|
|
@@ -49,7 +49,7 @@ const defaultUiTransform = {
|
|
|
49
49
|
positionTop: 0,
|
|
50
50
|
positionTopUnit: 0 /* YGUnit.YGU_UNDEFINED */,
|
|
51
51
|
flexBasisUnit: 0 /* YGUnit.YGU_UNDEFINED */,
|
|
52
|
-
widthUnit:
|
|
52
|
+
widthUnit: 0 /* YGUnit.YGU_UNDEFINED */,
|
|
53
53
|
heightUnit: 0 /* YGUnit.YGU_UNDEFINED */,
|
|
54
54
|
pointerFilter: 0 /* PointerFilterMode.PFM_NONE */,
|
|
55
55
|
opacity: 1
|
package/dist/react-ecs.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { PBUiBackground, PBUiText, PBUiTransform, PBUiInput, PBUiDropdown } from '@dcl/ecs';
|
|
2
|
-
import { Callback, Key } from './components';
|
|
2
|
+
import { Callback, Children, Key } from './components';
|
|
3
3
|
/**
|
|
4
4
|
* @public
|
|
5
5
|
*/
|
|
6
6
|
export interface EcsElements {
|
|
7
7
|
entity: Partial<EntityComponents> & {
|
|
8
|
-
children?:
|
|
8
|
+
children?: Children;
|
|
9
9
|
key?: Key;
|
|
10
10
|
};
|
|
11
11
|
}
|
|
@@ -25,29 +25,11 @@ export type EntityComponents = {
|
|
|
25
25
|
* @hidden
|
|
26
26
|
*/
|
|
27
27
|
export declare namespace JSX {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
interface IntrinsicElements extends EcsElements {
|
|
31
|
-
}
|
|
28
|
+
type Element = {} | null;
|
|
29
|
+
type IntrinsicElements = EcsElements;
|
|
32
30
|
interface Component {
|
|
33
31
|
}
|
|
34
32
|
}
|
|
35
|
-
/**
|
|
36
|
-
* @public
|
|
37
|
-
*/
|
|
38
|
-
export type JSXElementConstructor<P> = (props: P) => ReactElement<any, any> | null;
|
|
39
|
-
/**
|
|
40
|
-
* @public
|
|
41
|
-
*/
|
|
42
|
-
export interface ReactElement<P = any, T extends string | JSXElementConstructor<any> = string | JSXElementConstructor<any>> {
|
|
43
|
-
type: T;
|
|
44
|
-
props: P;
|
|
45
|
-
key: Key | null;
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* @public
|
|
49
|
-
*/
|
|
50
|
-
export type ReactNode = ReactElement | string | number | boolean | null | undefined;
|
|
51
33
|
/**
|
|
52
34
|
* @public
|
|
53
35
|
*/
|
|
@@ -56,18 +38,12 @@ export declare namespace ReactEcs {
|
|
|
56
38
|
/**
|
|
57
39
|
* @public
|
|
58
40
|
*/
|
|
59
|
-
type
|
|
60
|
-
/**
|
|
61
|
-
* @public
|
|
62
|
-
*/
|
|
63
|
-
interface Element extends ReactElement<any, any> {
|
|
64
|
-
}
|
|
41
|
+
type Element = {} | null;
|
|
65
42
|
/**
|
|
66
43
|
* @public
|
|
67
44
|
* HTML tag elements
|
|
68
45
|
*/
|
|
69
|
-
|
|
70
|
-
}
|
|
46
|
+
type IntrinsicElements = EcsElements;
|
|
71
47
|
/**
|
|
72
48
|
* @public
|
|
73
49
|
* Component empty interface
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Entity, IEngine, PointerEventsSystem } from '@dcl/ecs';
|
|
2
2
|
import { ReactEcs } from '../react-ecs';
|
|
3
3
|
export declare function createReconciler(engine: Pick<IEngine, 'getComponent' | 'addEntity' | 'removeEntity' | 'defineComponentFromSchema' | 'getEntitiesWith'>, pointerEvents: PointerEventsSystem): {
|
|
4
|
-
update: (component: ReactEcs.JSX.
|
|
4
|
+
update: (component: ReactEcs.JSX.Element) => number;
|
|
5
5
|
getEntities: () => Entity[];
|
|
6
6
|
};
|
package/dist/system.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcl/react-ecs",
|
|
3
3
|
"description": "Decentraland ECS",
|
|
4
|
-
"version": "7.5.1-
|
|
4
|
+
"version": "7.5.1-9299912306.commit-7629bda",
|
|
5
5
|
"author": "DCL",
|
|
6
6
|
"bugs": "https://github.com/decentraland/js-sdk-toolchain/issues",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@dcl/ecs": "7.5.1-
|
|
8
|
+
"@dcl/ecs": "7.5.1-9299912306.commit-7629bda",
|
|
9
9
|
"react": "^18.2.0",
|
|
10
10
|
"react-reconciler": "^0.29.0"
|
|
11
11
|
},
|
|
@@ -30,8 +30,7 @@
|
|
|
30
30
|
"directory": "packages/@dcl/react-ecs"
|
|
31
31
|
},
|
|
32
32
|
"scripts": {
|
|
33
|
-
"build": "tsc -p tsconfig.json"
|
|
34
|
-
"start": "tsc -p tsconfig.json --watch"
|
|
33
|
+
"build": "tsc -p tsconfig.json"
|
|
35
34
|
},
|
|
36
35
|
"typedoc": {
|
|
37
36
|
"entryPoint": "./src/index.ts",
|
|
@@ -40,5 +39,5 @@
|
|
|
40
39
|
"tsconfig": "./tsconfig.json"
|
|
41
40
|
},
|
|
42
41
|
"types": "./dist/index.d.ts",
|
|
43
|
-
"commit": "
|
|
42
|
+
"commit": "7629bdad6435e23260580ee2b8758caddcd9386d"
|
|
44
43
|
}
|