@awesome-flow/ecs 0.9.2 → 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 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, 20);
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
- const components = Array.from(props.entity.components.values());
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] = T0;
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
- T0 = $[1];
196
- T1 = $[2];
197
- T2 = $[3];
198
- t0 = $[4];
199
- t1 = $[5];
200
- t2 = $[6];
201
- t3 = $[7];
176
+ t0 = $[1];
202
177
  }
203
- let t4;
204
- if ($[8] !== T0 || $[9] !== t0) {
205
- t4 = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, T0, { children: t0 });
206
- $[8] = T0;
207
- $[9] = t0;
208
- $[10] = t4;
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
- t4 = $[10];
185
+ t1 = $[3];
211
186
  }
212
- let t5;
213
- if ($[11] !== T1 || $[12] !== t4) {
214
- t5 = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, T1, { children: t4 });
215
- $[11] = T1;
216
- $[12] = t4;
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
- t5 = $[13];
193
+ t2 = $[5];
220
194
  }
221
- let t6;
222
- if ($[14] !== T2 || $[15] !== t1 || $[16] !== t2 || $[17] !== t3 || $[18] !== t5) {
223
- t6 = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, T2, { value: t2, children: [
224
- t3,
225
- t5
226
- ] }, t1);
227
- $[14] = T2;
228
- $[15] = t1;
229
- $[16] = t2;
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
- t6 = $[19];
205
+ t3 = $[8];
235
206
  }
236
- return t6;
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);
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as react from 'react';
2
- import { EntityUid, EntityTypeUid, IEntityProxy, IEntityRepository } from '@awesome-ecs/abstract/entities';
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, EntityTypeUid, IEntityProxy, IEntityRepository } from '@awesome-ecs/abstract/entities';
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(20);
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
- const components = Array.from(props.entity.components.values());
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] = T0;
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
- T0 = $[1];
196
- T1 = $[2];
197
- T2 = $[3];
198
- t0 = $[4];
199
- t1 = $[5];
200
- t2 = $[6];
201
- t3 = $[7];
176
+ t0 = $[1];
202
177
  }
203
- let t4;
204
- if ($[8] !== T0 || $[9] !== t0) {
205
- t4 = /* @__PURE__ */ jsx3(T0, { children: t0 });
206
- $[8] = T0;
207
- $[9] = t0;
208
- $[10] = t4;
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
- t4 = $[10];
185
+ t1 = $[3];
211
186
  }
212
- let t5;
213
- if ($[11] !== T1 || $[12] !== t4) {
214
- t5 = /* @__PURE__ */ jsx3(T1, { children: t4 });
215
- $[11] = T1;
216
- $[12] = t4;
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
- t5 = $[13];
193
+ t2 = $[5];
220
194
  }
221
- let t6;
222
- if ($[14] !== T2 || $[15] !== t1 || $[16] !== t2 || $[17] !== t3 || $[18] !== t5) {
223
- t6 = /* @__PURE__ */ jsxs2(T2, { value: t2, children: [
224
- t3,
225
- t5
226
- ] }, t1);
227
- $[14] = T2;
228
- $[15] = t1;
229
- $[16] = t2;
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
- t6 = $[19];
205
+ t3 = $[8];
235
206
  }
236
- return t6;
207
+ return t3;
237
208
  }
238
209
  function _temp(c, i) {
239
210
  return /* @__PURE__ */ jsx3(entity_component_inspector_default, { component: c }, i);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awesome-flow/ecs",
3
- "version": "0.9.2",
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.20.2",
17
- "@awesome-ecs/core": "^0.20.2",
18
- "@awesome-flow/core": "^0.9.2",
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": "^7.16.2",
33
- "@mantine/hooks": "^7.16.2",
34
- "@tabler/icons-react": "^3.29.0",
35
- "@xyflow/react": "^12.4.2",
36
- "@xyflow/system": "^0.0.50",
37
- "react": "^19.0.0",
38
- "react-dom": "^19.0.0",
39
- "zustand": "^5.0.3"
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": "54aea4c1ae9ec6802b02eb8014dec1c82c6c137a"
80
+ "gitHead": "5a14e04f67bd5a0298f50b770eb48e2101428548"
81
81
  }