@dcl/react-ecs 7.0.3-3583938384.commit-827bc9a → 7.0.3-3584900424.commit-d08747d

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/react-ecs.js CHANGED
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  export var ReactEcs;
3
3
  (function (ReactEcs) {
4
+ // TODO: check if this as any is still needed
4
5
  ReactEcs.createElement = React.createElement;
5
6
  })(ReactEcs || (ReactEcs = {}));
@@ -3,8 +3,6 @@ import Reconciler from 'react-reconciler';
3
3
  import { isListener } from '../components';
4
4
  import { CANVAS_ROOT_ENTITY } from '../components/uiTransform';
5
5
  import { componentKeys, isEqual, isNotUndefined, noopConfig } from './utils';
6
- // TODO: export InputAction types.
7
- const IA_POINTER = 0;
8
6
  function propsChanged(component, prevProps, nextProps) {
9
7
  if (prevProps && !nextProps) {
10
8
  return { type: 'delete', component };
@@ -21,7 +19,6 @@ function propsChanged(component, prevProps, nextProps) {
21
19
  }
22
20
  }
23
21
  const changes = {};
24
- // TODO: array and object types. For now only primitives
25
22
  for (const k in prevProps) {
26
23
  const propKey = k;
27
24
  if (!isEqual(prevProps[propKey], nextProps[propKey])) {
@@ -54,7 +51,7 @@ export function createReconciler(engine, pointerEvents) {
54
51
  }
55
52
  if (update.props) {
56
53
  pointerEvents.onPointerDown(instance.entity, update.props, {
57
- button: IA_POINTER,
54
+ button: 0 /* InputAction.IA_POINTER */,
58
55
  hoverText: ''
59
56
  });
60
57
  }
@@ -1,3 +1,4 @@
1
+ // as any HACK so every time we add a new component, we must add also the component here.
1
2
  const entityComponent = {
2
3
  uiText: undefined,
3
4
  uiBackground: undefined,
package/dist/system.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { IEngine, PointerEventsSystem } from '@dcl/ecs';
1
+ import type { IEngine, PointerEventsSystem } from '@dcl/ecs';
2
2
  import type { JSX } from './react-ecs';
3
3
  export declare type UiComponent = () => JSX.Element;
4
4
  export declare type ReactBasedUiSystem = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcl/react-ecs",
3
- "version": "7.0.3-3583938384.commit-827bc9a",
3
+ "version": "7.0.3-3584900424.commit-d08747d",
4
4
  "description": "Decentraland ECS",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -36,5 +36,5 @@
36
36
  "dist",
37
37
  "tsconfig.json"
38
38
  ],
39
- "commit": "827bc9acb5825d817445521eb790ee256788a01c"
39
+ "commit": "d08747dea26ba46738fda26e28689bbc03603b71"
40
40
  }