@awesome-flow/ecs 0.9.1 → 0.9.3
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/index.cjs +32 -61
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +32 -61
- package/package.json +13 -13
package/dist/index.cjs
CHANGED
|
@@ -166,74 +166,45 @@ var entity_component_inspector_default = _react.memo.call(void 0, EntityComponen
|
|
|
166
166
|
// src/components/entity-component-list.tsx
|
|
167
167
|
|
|
168
168
|
function EntityComponentList(props) {
|
|
169
|
-
const $ = _compilerruntime.c.call(void 0,
|
|
170
|
-
let T0;
|
|
171
|
-
let T1;
|
|
172
|
-
let T2;
|
|
169
|
+
const $ = _compilerruntime.c.call(void 0, 9);
|
|
173
170
|
let t0;
|
|
174
|
-
let t1;
|
|
175
|
-
let t2;
|
|
176
|
-
let t3;
|
|
177
171
|
if ($[0] !== props.entity.components) {
|
|
178
|
-
|
|
179
|
-
T2 = _core.Accordion.Item;
|
|
180
|
-
t1 = "components";
|
|
181
|
-
t2 = "components";
|
|
182
|
-
t3 = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _core.Accordion.Control, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _core.Badge, { fullWidth: true, variant: "light", rightSection: components.length, children: "Components" }) });
|
|
183
|
-
T1 = _core.Accordion.Panel;
|
|
184
|
-
T0 = _core.Stack;
|
|
185
|
-
t0 = components.map(_temp);
|
|
172
|
+
t0 = Array.from(props.entity.components.values());
|
|
186
173
|
$[0] = props.entity.components;
|
|
187
|
-
$[1] =
|
|
188
|
-
$[2] = T1;
|
|
189
|
-
$[3] = T2;
|
|
190
|
-
$[4] = t0;
|
|
191
|
-
$[5] = t1;
|
|
192
|
-
$[6] = t2;
|
|
193
|
-
$[7] = t3;
|
|
174
|
+
$[1] = t0;
|
|
194
175
|
} else {
|
|
195
|
-
|
|
196
|
-
T1 = $[2];
|
|
197
|
-
T2 = $[3];
|
|
198
|
-
t0 = $[4];
|
|
199
|
-
t1 = $[5];
|
|
200
|
-
t2 = $[6];
|
|
201
|
-
t3 = $[7];
|
|
176
|
+
t0 = $[1];
|
|
202
177
|
}
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
$[
|
|
208
|
-
$[
|
|
178
|
+
const components = t0;
|
|
179
|
+
let t1;
|
|
180
|
+
if ($[2] !== components.length) {
|
|
181
|
+
t1 = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _core.Accordion.Control, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _core.Badge, { fullWidth: true, variant: "light", rightSection: components.length, children: "Components" }) });
|
|
182
|
+
$[2] = components.length;
|
|
183
|
+
$[3] = t1;
|
|
209
184
|
} else {
|
|
210
|
-
|
|
185
|
+
t1 = $[3];
|
|
211
186
|
}
|
|
212
|
-
let
|
|
213
|
-
if ($[
|
|
214
|
-
|
|
215
|
-
$[
|
|
216
|
-
$[
|
|
217
|
-
$[13] = t5;
|
|
187
|
+
let t2;
|
|
188
|
+
if ($[4] !== components) {
|
|
189
|
+
t2 = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _core.Accordion.Panel, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _core.Stack, { children: components.map(_temp) }) });
|
|
190
|
+
$[4] = components;
|
|
191
|
+
$[5] = t2;
|
|
218
192
|
} else {
|
|
219
|
-
|
|
193
|
+
t2 = $[5];
|
|
220
194
|
}
|
|
221
|
-
let
|
|
222
|
-
if ($[
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
] },
|
|
227
|
-
$[
|
|
228
|
-
$[
|
|
229
|
-
$[
|
|
230
|
-
$[17] = t3;
|
|
231
|
-
$[18] = t5;
|
|
232
|
-
$[19] = t6;
|
|
195
|
+
let t3;
|
|
196
|
+
if ($[6] !== t1 || $[7] !== t2) {
|
|
197
|
+
t3 = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _core.Accordion.Item, { value: "components", children: [
|
|
198
|
+
t1,
|
|
199
|
+
t2
|
|
200
|
+
] }, "components");
|
|
201
|
+
$[6] = t1;
|
|
202
|
+
$[7] = t2;
|
|
203
|
+
$[8] = t3;
|
|
233
204
|
} else {
|
|
234
|
-
|
|
205
|
+
t3 = $[8];
|
|
235
206
|
}
|
|
236
|
-
return
|
|
207
|
+
return t3;
|
|
237
208
|
}
|
|
238
209
|
function _temp(c, i) {
|
|
239
210
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, entity_component_inspector_default, { component: c }, i);
|
|
@@ -960,8 +931,8 @@ function FlowEcsEdgeModules(props) {
|
|
|
960
931
|
onConnect({
|
|
961
932
|
source: node.id,
|
|
962
933
|
target: systemModule.id,
|
|
963
|
-
sourceHandle: sourceHandle.
|
|
964
|
-
targetHandle: targetHandle.
|
|
934
|
+
sourceHandle: sourceHandle.handleId,
|
|
935
|
+
targetHandle: targetHandle.handleId
|
|
965
936
|
});
|
|
966
937
|
}
|
|
967
938
|
}
|
|
@@ -1028,8 +999,8 @@ function FlowEcsEdgeProxies(props) {
|
|
|
1028
999
|
onConnect({
|
|
1029
1000
|
source: node.id,
|
|
1030
1001
|
target: proxyNode.id,
|
|
1031
|
-
sourceHandle: sourceHandle.
|
|
1032
|
-
targetHandle: targetHandle.
|
|
1002
|
+
sourceHandle: sourceHandle.handleId,
|
|
1003
|
+
targetHandle: targetHandle.handleId
|
|
1033
1004
|
});
|
|
1034
1005
|
}
|
|
1035
1006
|
}
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import { EntityUid,
|
|
2
|
+
import { EntityUid, IEntityProxy, EntityTypeUid, IEntityRepository } from '@awesome-ecs/abstract/entities';
|
|
3
3
|
import { ISystemsModuleRepository } from '@awesome-ecs/abstract/systems';
|
|
4
4
|
import { EntityEventsManager } from '@awesome-ecs/core/entities';
|
|
5
5
|
import { Node, NodeProps } from '@xyflow/react';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import { EntityUid,
|
|
2
|
+
import { EntityUid, IEntityProxy, EntityTypeUid, IEntityRepository } from '@awesome-ecs/abstract/entities';
|
|
3
3
|
import { ISystemsModuleRepository } from '@awesome-ecs/abstract/systems';
|
|
4
4
|
import { EntityEventsManager } from '@awesome-ecs/core/entities';
|
|
5
5
|
import { Node, NodeProps } from '@xyflow/react';
|
package/dist/index.js
CHANGED
|
@@ -166,74 +166,45 @@ var entity_component_inspector_default = memo3(EntityComponentInspector);
|
|
|
166
166
|
// src/components/entity-component-list.tsx
|
|
167
167
|
import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
168
168
|
function EntityComponentList(props) {
|
|
169
|
-
const $ = _c4(
|
|
170
|
-
let T0;
|
|
171
|
-
let T1;
|
|
172
|
-
let T2;
|
|
169
|
+
const $ = _c4(9);
|
|
173
170
|
let t0;
|
|
174
|
-
let t1;
|
|
175
|
-
let t2;
|
|
176
|
-
let t3;
|
|
177
171
|
if ($[0] !== props.entity.components) {
|
|
178
|
-
|
|
179
|
-
T2 = Accordion.Item;
|
|
180
|
-
t1 = "components";
|
|
181
|
-
t2 = "components";
|
|
182
|
-
t3 = /* @__PURE__ */ jsx3(Accordion.Control, { children: /* @__PURE__ */ jsx3(Badge, { fullWidth: true, variant: "light", rightSection: components.length, children: "Components" }) });
|
|
183
|
-
T1 = Accordion.Panel;
|
|
184
|
-
T0 = Stack;
|
|
185
|
-
t0 = components.map(_temp);
|
|
172
|
+
t0 = Array.from(props.entity.components.values());
|
|
186
173
|
$[0] = props.entity.components;
|
|
187
|
-
$[1] =
|
|
188
|
-
$[2] = T1;
|
|
189
|
-
$[3] = T2;
|
|
190
|
-
$[4] = t0;
|
|
191
|
-
$[5] = t1;
|
|
192
|
-
$[6] = t2;
|
|
193
|
-
$[7] = t3;
|
|
174
|
+
$[1] = t0;
|
|
194
175
|
} else {
|
|
195
|
-
|
|
196
|
-
T1 = $[2];
|
|
197
|
-
T2 = $[3];
|
|
198
|
-
t0 = $[4];
|
|
199
|
-
t1 = $[5];
|
|
200
|
-
t2 = $[6];
|
|
201
|
-
t3 = $[7];
|
|
176
|
+
t0 = $[1];
|
|
202
177
|
}
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
$[
|
|
208
|
-
$[
|
|
178
|
+
const components = t0;
|
|
179
|
+
let t1;
|
|
180
|
+
if ($[2] !== components.length) {
|
|
181
|
+
t1 = /* @__PURE__ */ jsx3(Accordion.Control, { children: /* @__PURE__ */ jsx3(Badge, { fullWidth: true, variant: "light", rightSection: components.length, children: "Components" }) });
|
|
182
|
+
$[2] = components.length;
|
|
183
|
+
$[3] = t1;
|
|
209
184
|
} else {
|
|
210
|
-
|
|
185
|
+
t1 = $[3];
|
|
211
186
|
}
|
|
212
|
-
let
|
|
213
|
-
if ($[
|
|
214
|
-
|
|
215
|
-
$[
|
|
216
|
-
$[
|
|
217
|
-
$[13] = t5;
|
|
187
|
+
let t2;
|
|
188
|
+
if ($[4] !== components) {
|
|
189
|
+
t2 = /* @__PURE__ */ jsx3(Accordion.Panel, { children: /* @__PURE__ */ jsx3(Stack, { children: components.map(_temp) }) });
|
|
190
|
+
$[4] = components;
|
|
191
|
+
$[5] = t2;
|
|
218
192
|
} else {
|
|
219
|
-
|
|
193
|
+
t2 = $[5];
|
|
220
194
|
}
|
|
221
|
-
let
|
|
222
|
-
if ($[
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
] },
|
|
227
|
-
$[
|
|
228
|
-
$[
|
|
229
|
-
$[
|
|
230
|
-
$[17] = t3;
|
|
231
|
-
$[18] = t5;
|
|
232
|
-
$[19] = t6;
|
|
195
|
+
let t3;
|
|
196
|
+
if ($[6] !== t1 || $[7] !== t2) {
|
|
197
|
+
t3 = /* @__PURE__ */ jsxs2(Accordion.Item, { value: "components", children: [
|
|
198
|
+
t1,
|
|
199
|
+
t2
|
|
200
|
+
] }, "components");
|
|
201
|
+
$[6] = t1;
|
|
202
|
+
$[7] = t2;
|
|
203
|
+
$[8] = t3;
|
|
233
204
|
} else {
|
|
234
|
-
|
|
205
|
+
t3 = $[8];
|
|
235
206
|
}
|
|
236
|
-
return
|
|
207
|
+
return t3;
|
|
237
208
|
}
|
|
238
209
|
function _temp(c, i) {
|
|
239
210
|
return /* @__PURE__ */ jsx3(entity_component_inspector_default, { component: c }, i);
|
|
@@ -960,8 +931,8 @@ function FlowEcsEdgeModules(props) {
|
|
|
960
931
|
onConnect({
|
|
961
932
|
source: node.id,
|
|
962
933
|
target: systemModule.id,
|
|
963
|
-
sourceHandle: sourceHandle.
|
|
964
|
-
targetHandle: targetHandle.
|
|
934
|
+
sourceHandle: sourceHandle.handleId,
|
|
935
|
+
targetHandle: targetHandle.handleId
|
|
965
936
|
});
|
|
966
937
|
}
|
|
967
938
|
}
|
|
@@ -1028,8 +999,8 @@ function FlowEcsEdgeProxies(props) {
|
|
|
1028
999
|
onConnect({
|
|
1029
1000
|
source: node.id,
|
|
1030
1001
|
target: proxyNode.id,
|
|
1031
|
-
sourceHandle: sourceHandle.
|
|
1032
|
-
targetHandle: targetHandle.
|
|
1002
|
+
sourceHandle: sourceHandle.handleId,
|
|
1003
|
+
targetHandle: targetHandle.handleId
|
|
1033
1004
|
});
|
|
1034
1005
|
}
|
|
1035
1006
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@awesome-flow/ecs",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.3",
|
|
4
4
|
"description": "The ECS package for Awesome Flow. Provides basic components to map Awesome ECS objects.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
"ts:watch": "npx tsc --noEmit --incremental --watch"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@awesome-ecs/abstract": "^0.
|
|
17
|
-
"@awesome-ecs/core": "^0.
|
|
18
|
-
"@awesome-flow/core": "^0.9.
|
|
16
|
+
"@awesome-ecs/abstract": "^0.21.0",
|
|
17
|
+
"@awesome-ecs/core": "^0.21.0",
|
|
18
|
+
"@awesome-flow/core": "^0.9.3",
|
|
19
19
|
"react-inspector": "^6.0.2"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
@@ -29,14 +29,14 @@
|
|
|
29
29
|
"zustand": ">=4.5.5"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@mantine/core": "^
|
|
33
|
-
"@mantine/hooks": "^
|
|
34
|
-
"@tabler/icons-react": "^3.
|
|
35
|
-
"@xyflow/react": "^12.
|
|
36
|
-
"@xyflow/system": "^0.0.
|
|
37
|
-
"react": "^19.
|
|
38
|
-
"react-dom": "^19.
|
|
39
|
-
"zustand": "^5.0.
|
|
32
|
+
"@mantine/core": "^8.0.1",
|
|
33
|
+
"@mantine/hooks": "^8.0.1",
|
|
34
|
+
"@tabler/icons-react": "^3.33.0",
|
|
35
|
+
"@xyflow/react": "^12.6.4",
|
|
36
|
+
"@xyflow/system": "^0.0.61",
|
|
37
|
+
"react": "^19.1.0",
|
|
38
|
+
"react-dom": "^19.1.0",
|
|
39
|
+
"zustand": "^5.0.5"
|
|
40
40
|
},
|
|
41
41
|
"exports": {
|
|
42
42
|
".": {
|
|
@@ -77,5 +77,5 @@
|
|
|
77
77
|
"url": "https://github.com/privatebytes/awesome-flow/issues"
|
|
78
78
|
},
|
|
79
79
|
"homepage": "https://github.com/privatebytes/awesome-flow#readme",
|
|
80
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "5a14e04f67bd5a0298f50b770eb48e2101428548"
|
|
81
81
|
}
|