@awesome-flow/ecs 0.14.0 → 0.15.0

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.
Files changed (93) hide show
  1. package/dist/canvas/index.cjs +1 -1
  2. package/dist/canvas/index.d.cts +1 -1
  3. package/dist/canvas/index.d.mts +1 -1
  4. package/dist/canvas/index.mjs +1 -1
  5. package/dist/{canvas-C4nDXlkK.mjs → canvas-B21OqInM.mjs} +71 -71
  6. package/dist/canvas-B21OqInM.mjs.map +1 -0
  7. package/dist/{canvas-DlWcWu05.cjs → canvas-CC3xvbbA.cjs} +70 -70
  8. package/dist/canvas-CC3xvbbA.cjs.map +1 -0
  9. package/dist/context/index.cjs +18 -14
  10. package/dist/context/index.cjs.map +1 -1
  11. package/dist/context/index.d.cts +1 -1
  12. package/dist/context/index.d.mts +1 -1
  13. package/dist/context/index.mjs +18 -14
  14. package/dist/context/index.mjs.map +1 -1
  15. package/dist/{entity-component-inspector-VlwcaUqy.cjs → entity-component-inspector-7f3SijXE.cjs} +2 -2
  16. package/dist/{entity-component-inspector-VlwcaUqy.cjs.map → entity-component-inspector-7f3SijXE.cjs.map} +1 -1
  17. package/dist/{entity-component-inspector-CNaN8Scf.mjs → entity-component-inspector-BKpliIkt.mjs} +2 -2
  18. package/dist/{entity-component-inspector-CNaN8Scf.mjs.map → entity-component-inspector-BKpliIkt.mjs.map} +1 -1
  19. package/dist/hooks/index.cjs +1 -1
  20. package/dist/hooks/index.d.cts +1 -1
  21. package/dist/hooks/index.d.mts +1 -1
  22. package/dist/hooks/index.mjs +1 -1
  23. package/dist/id-generator-C2_8g29M.cjs.map +1 -1
  24. package/dist/id-generator-DDsv3NdX.mjs.map +1 -1
  25. package/dist/{index-_BgjSgkQ.d.mts → index-BGxRtxzm.d.mts} +6 -9
  26. package/dist/index-BGxRtxzm.d.mts.map +1 -0
  27. package/dist/{index-CNCqWBLh.d.cts → index-BabUtsGu.d.mts} +10 -9
  28. package/dist/index-BabUtsGu.d.mts.map +1 -0
  29. package/dist/{index-B9WbxxFC.d.mts → index-BfZT1xsF.d.mts} +3 -3
  30. package/dist/index-BfZT1xsF.d.mts.map +1 -0
  31. package/dist/{index-t3_yRTa6.d.cts → index-CbjlHvOZ.d.cts} +3 -3
  32. package/dist/index-CbjlHvOZ.d.cts.map +1 -0
  33. package/dist/{index-BTs_8SY-.d.cts → index-Cet6AhTm.d.cts} +3 -4
  34. package/dist/index-Cet6AhTm.d.cts.map +1 -0
  35. package/dist/{index-DGjpWDlm.d.cts → index-D5HuA6I5.d.mts} +22 -15
  36. package/dist/index-D5HuA6I5.d.mts.map +1 -0
  37. package/dist/{index-DCOd7jg-.d.mts → index-DRUvPELK.d.cts} +22 -15
  38. package/dist/index-DRUvPELK.d.cts.map +1 -0
  39. package/dist/{index-CyeezgDI.d.mts → index-DoQL-Kim.d.mts} +3 -4
  40. package/dist/index-DoQL-Kim.d.mts.map +1 -0
  41. package/dist/{index-YNgbjS9S.d.cts → index-DwEO6FDo.d.cts} +6 -9
  42. package/dist/index-DwEO6FDo.d.cts.map +1 -0
  43. package/dist/{index-C-TDFHpq.d.mts → index-N2r0CM_0.d.cts} +10 -9
  44. package/dist/index-N2r0CM_0.d.cts.map +1 -0
  45. package/dist/index.cjs +3 -3
  46. package/dist/index.d.cts +8 -8
  47. package/dist/index.d.mts +8 -8
  48. package/dist/index.mjs +3 -3
  49. package/dist/inspectors/index.cjs +1 -1
  50. package/dist/inspectors/index.d.cts +1 -1
  51. package/dist/inspectors/index.d.mts +1 -1
  52. package/dist/inspectors/index.mjs +1 -1
  53. package/dist/{node-props-BtAkmdqr.d.mts → node-props-Bryks8-5.d.cts} +3 -3
  54. package/dist/{node-props-BtAkmdqr.d.mts.map → node-props-Bryks8-5.d.cts.map} +1 -1
  55. package/dist/{node-props-DkuSwMA0.d.cts → node-props-Cusf_qtn.d.mts} +3 -3
  56. package/dist/{node-props-DkuSwMA0.d.cts.map → node-props-Cusf_qtn.d.mts.map} +1 -1
  57. package/dist/{node-systems-module-CPDV8u8O.d.mts → node-systems-module-BiefT_Cv.d.cts} +5 -5
  58. package/dist/node-systems-module-BiefT_Cv.d.cts.map +1 -0
  59. package/dist/{node-systems-module-CzkoMbdF.d.cts → node-systems-module-EYtTf6Re.d.mts} +5 -5
  60. package/dist/node-systems-module-EYtTf6Re.d.mts.map +1 -0
  61. package/dist/{node-types-BRcpbaeR.mjs → node-types-DV97CoAJ.mjs} +176 -99
  62. package/dist/node-types-DV97CoAJ.mjs.map +1 -0
  63. package/dist/{node-types-D_NfbsUT.cjs → node-types-Z4QaJir-.cjs} +175 -98
  64. package/dist/node-types-Z4QaJir-.cjs.map +1 -0
  65. package/dist/nodes/index.cjs +1 -1
  66. package/dist/nodes/index.d.cts +2 -2
  67. package/dist/nodes/index.d.mts +2 -2
  68. package/dist/nodes/index.mjs +1 -1
  69. package/dist/{template-tool-nodes-B7sT2iRc.d.cts → template-tool-nodes-CiwTFU-N.d.cts} +2 -2
  70. package/dist/{template-tool-nodes-B7sT2iRc.d.cts.map → template-tool-nodes-CiwTFU-N.d.cts.map} +1 -1
  71. package/dist/{template-tool-nodes-BwavFwMh.d.mts → template-tool-nodes-DWhekyQg.d.mts} +2 -2
  72. package/dist/{template-tool-nodes-BwavFwMh.d.mts.map → template-tool-nodes-DWhekyQg.d.mts.map} +1 -1
  73. package/dist/templates/index.cjs +1 -1
  74. package/dist/templates/index.d.cts +1 -1
  75. package/dist/templates/index.d.mts +1 -1
  76. package/dist/templates/index.mjs +1 -1
  77. package/package.json +13 -14
  78. package/dist/canvas-C4nDXlkK.mjs.map +0 -1
  79. package/dist/canvas-DlWcWu05.cjs.map +0 -1
  80. package/dist/index-B9WbxxFC.d.mts.map +0 -1
  81. package/dist/index-BTs_8SY-.d.cts.map +0 -1
  82. package/dist/index-C-TDFHpq.d.mts.map +0 -1
  83. package/dist/index-CNCqWBLh.d.cts.map +0 -1
  84. package/dist/index-CyeezgDI.d.mts.map +0 -1
  85. package/dist/index-DCOd7jg-.d.mts.map +0 -1
  86. package/dist/index-DGjpWDlm.d.cts.map +0 -1
  87. package/dist/index-YNgbjS9S.d.cts.map +0 -1
  88. package/dist/index-_BgjSgkQ.d.mts.map +0 -1
  89. package/dist/index-t3_yRTa6.d.cts.map +0 -1
  90. package/dist/node-systems-module-CPDV8u8O.d.mts.map +0 -1
  91. package/dist/node-systems-module-CzkoMbdF.d.cts.map +0 -1
  92. package/dist/node-types-BRcpbaeR.mjs.map +0 -1
  93. package/dist/node-types-D_NfbsUT.cjs.map +0 -1
@@ -1,9 +1,9 @@
1
1
  const require_id_generator = require('./id-generator-C2_8g29M.cjs');
2
- const require_entity_component_inspector = require('./entity-component-inspector-VlwcaUqy.cjs');
2
+ const require_entity_component_inspector = require('./entity-component-inspector-7f3SijXE.cjs');
3
3
  let react_compiler_runtime = require("react/compiler-runtime");
4
- let _mantine_core = require("@mantine/core");
5
4
  let react = require("react");
6
5
  let _awesome_flow_core_layout = require("@awesome-flow/core/layout");
6
+ let _mantine_core = require("@mantine/core");
7
7
  let _xyflow_react = require("@xyflow/react");
8
8
  let react_jsx_runtime = require("react/jsx-runtime");
9
9
  let _awesome_flow_core_hooks = require("@awesome-flow/core/hooks");
@@ -65,7 +65,7 @@ function useEntity(proxy) {
65
65
  }
66
66
  let t1;
67
67
  if ($[0] !== bridge.entityRepository || $[1] !== proxy) {
68
- t1 = bridge.entityRepository.get(proxy);
68
+ t1 = bridge.entityRepository.getEntity(proxy);
69
69
  $[0] = bridge.entityRepository;
70
70
  $[1] = proxy;
71
71
  $[2] = t1;
@@ -86,7 +86,7 @@ function useEntityList(type) {
86
86
  if (type !== void 0) {
87
87
  let t1;
88
88
  if ($[0] !== bridge.entityRepository || $[1] !== type) {
89
- t1 = bridge.entityRepository.getAll(type);
89
+ t1 = bridge.entityRepository.getEntities(type);
90
90
  $[0] = bridge.entityRepository;
91
91
  $[1] = type;
92
92
  $[2] = t1;
@@ -477,46 +477,88 @@ var formatter_camel_case_default = (0, react.memo)(CamelCaseFormatter);
477
477
  //#endregion
478
478
  //#region src/components/entity-component-list.tsx
479
479
  function EntityComponentList(props) {
480
- const $ = (0, react_compiler_runtime.c)(9);
480
+ const $ = (0, react_compiler_runtime.c)(20);
481
+ let T0;
482
+ let T1;
483
+ let T2;
481
484
  let t0;
482
- if ($[0] !== props.entity.components) {
483
- t0 = Array.from(props.entity.components.values());
484
- $[0] = props.entity.components;
485
- $[1] = t0;
486
- } else t0 = $[1];
487
- const components = t0;
488
485
  let t1;
489
- if ($[2] !== components.length) {
490
- t1 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_mantine_core.Accordion.Control, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_mantine_core.Badge, {
486
+ let t2;
487
+ let t3;
488
+ if ($[0] !== props.entity) {
489
+ const components = listComponents(props.entity);
490
+ T2 = _mantine_core.Accordion.Item;
491
+ t1 = "components";
492
+ t2 = "components";
493
+ t3 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_mantine_core.Accordion.Control, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_mantine_core.Badge, {
491
494
  fullWidth: true,
492
495
  variant: "light",
493
496
  rightSection: components.length,
494
497
  children: "Components"
495
498
  }) });
496
- $[2] = components.length;
497
- $[3] = t1;
498
- } else t1 = $[3];
499
- let t2;
500
- if ($[4] !== components) {
501
- t2 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_mantine_core.Accordion.Panel, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_mantine_core.Stack, { children: components.map(_temp$4) }) });
502
- $[4] = components;
503
- $[5] = t2;
504
- } else t2 = $[5];
505
- let t3;
506
- if ($[6] !== t1 || $[7] !== t2) {
507
- t3 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_mantine_core.Accordion.Item, {
508
- value: "components",
509
- children: [t1, t2]
510
- }, "components");
511
- $[6] = t1;
512
- $[7] = t2;
513
- $[8] = t3;
514
- } else t3 = $[8];
515
- return t3;
499
+ T1 = _mantine_core.Accordion.Panel;
500
+ T0 = _mantine_core.Stack;
501
+ t0 = components.map(_temp$4);
502
+ $[0] = props.entity;
503
+ $[1] = T0;
504
+ $[2] = T1;
505
+ $[3] = T2;
506
+ $[4] = t0;
507
+ $[5] = t1;
508
+ $[6] = t2;
509
+ $[7] = t3;
510
+ } else {
511
+ T0 = $[1];
512
+ T1 = $[2];
513
+ T2 = $[3];
514
+ t0 = $[4];
515
+ t1 = $[5];
516
+ t2 = $[6];
517
+ t3 = $[7];
518
+ }
519
+ let t4;
520
+ if ($[8] !== T0 || $[9] !== t0) {
521
+ t4 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(T0, { children: t0 });
522
+ $[8] = T0;
523
+ $[9] = t0;
524
+ $[10] = t4;
525
+ } else t4 = $[10];
526
+ let t5;
527
+ if ($[11] !== T1 || $[12] !== t4) {
528
+ t5 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(T1, { children: t4 });
529
+ $[11] = T1;
530
+ $[12] = t4;
531
+ $[13] = t5;
532
+ } else t5 = $[13];
533
+ let t6;
534
+ if ($[14] !== T2 || $[15] !== t1 || $[16] !== t2 || $[17] !== t3 || $[18] !== t5) {
535
+ t6 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(T2, {
536
+ value: t2,
537
+ children: [t3, t5]
538
+ }, t1);
539
+ $[14] = T2;
540
+ $[15] = t1;
541
+ $[16] = t2;
542
+ $[17] = t3;
543
+ $[18] = t5;
544
+ $[19] = t6;
545
+ } else t6 = $[19];
546
+ return t6;
516
547
  }
517
548
  function _temp$4(c, i) {
518
549
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_entity_component_inspector.entity_component_inspector_default, { component: c }, i);
519
550
  }
551
+ function listComponents(entity) {
552
+ const components = [];
553
+ for (const [field, value] of Object.entries(entity)) {
554
+ if (field === "identity") continue;
555
+ if (isComponent(value)) components.push(value);
556
+ }
557
+ return components;
558
+ }
559
+ function isComponent(value) {
560
+ return typeof value === "object" && value !== null && "componentType" in value && "isSerializable" in value;
561
+ }
520
562
  var entity_component_list_default = (0, react.memo)(EntityComponentList);
521
563
 
522
564
  //#endregion
@@ -538,10 +580,10 @@ function EntityProxyList(props) {
538
580
  const bridge = useEcsBridge();
539
581
  useBridgeStoreVersion("proxies");
540
582
  let t0;
541
- if ($[0] !== bridge.entityProxyRepository || $[1] !== props.entity.myProxy) {
542
- t0 = Array.from(bridge.entityProxyRepository.getAll(props.entity.myProxy).values()).flat().map(_temp$3);
583
+ if ($[0] !== bridge.entityProxyRepository || $[1] !== props.entity.identity.proxy) {
584
+ t0 = Array.from(bridge.entityProxyRepository.getAllProxies(props.entity.identity.proxy).values()).flat().map(_temp$3);
543
585
  $[0] = bridge.entityProxyRepository;
544
- $[1] = props.entity.myProxy;
586
+ $[1] = props.entity.identity.proxy;
545
587
  $[2] = t0;
546
588
  } else t0 = $[2];
547
589
  const items = t0;
@@ -594,10 +636,10 @@ function EntitySubscriptionList(props) {
594
636
  const bridge = useEcsBridge();
595
637
  useBridgeStoreVersion("subscriptions");
596
638
  let t0;
597
- if ($[0] !== bridge.entityEventsManager || $[1] !== props.entity.myProxy) {
598
- t0 = bridge.entityEventsManager.getSubscriptionsForEntity(props.entity.myProxy);
639
+ if ($[0] !== bridge.entityEventsManager || $[1] !== props.entity.identity.proxy) {
640
+ t0 = bridge.entityEventsManager.getSubscriptionsForEntity(props.entity.identity.proxy);
599
641
  $[0] = bridge.entityEventsManager;
600
- $[1] = props.entity.myProxy;
642
+ $[1] = props.entity.identity.proxy;
601
643
  $[2] = t0;
602
644
  } else t0 = $[2];
603
645
  const subscriptions = t0;
@@ -681,13 +723,13 @@ function EntityLayout(t0) {
681
723
  const $ = (0, react_compiler_runtime.c)(8);
682
724
  const { entity } = t0;
683
725
  let t1;
684
- if ($[0] !== entity.myProxy.entityUid) {
726
+ if ($[0] !== entity.identity.proxy.entityUid) {
685
727
  t1 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_mantine_core.Group, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_mantine_core.Badge, {
686
728
  variant: "outline",
687
729
  color: "orange",
688
- children: entity.myProxy.entityUid
689
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(entity_update_counter_default, { entityUid: entity.myProxy.entityUid })] });
690
- $[0] = entity.myProxy.entityUid;
730
+ children: entity.identity.proxy.entityUid
731
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(entity_update_counter_default, { entityUid: entity.identity.proxy.entityUid })] });
732
+ $[0] = entity.identity.proxy.entityUid;
691
733
  $[1] = t1;
692
734
  } else t1 = $[1];
693
735
  let t2;
@@ -722,11 +764,12 @@ function EntityLayout(t0) {
722
764
  //#endregion
723
765
  //#region src/nodes/node-entity.tsx
724
766
  function EntityNode(t0) {
725
- const $ = (0, react_compiler_runtime.c)(16);
767
+ const $ = (0, react_compiler_runtime.c)(17);
726
768
  const { id, data, selected, type } = t0;
727
769
  const entity = useEntity(data.entity);
728
- const entityType = entity?.myProxy.entityType ?? data.entity?.entityType ?? data.entityType;
770
+ const entityType = entity?.identity.proxy.entityType ?? data.entity?.entityType ?? data.entityType;
729
771
  const pending = data.spawnStatus === "queued" && !entity;
772
+ const missingScheduler = data.spawnStatus === "missing-scheduler";
730
773
  const t1 = entityType ?? data.title;
731
774
  let t2;
732
775
  if ($[0] !== t1) {
@@ -745,13 +788,13 @@ function EntityNode(t0) {
745
788
  $[3] = t3;
746
789
  } else t3 = $[3];
747
790
  let t4;
748
- if ($[4] !== data.entity || $[5] !== entity || $[6] !== pending) {
791
+ if ($[4] !== data.entity || $[5] !== entity || $[6] !== missingScheduler || $[7] !== pending) {
749
792
  t4 = !entity && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_mantine_core.Stack, {
750
793
  gap: "xs",
751
794
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_mantine_core.Badge, {
752
795
  variant: "light",
753
796
  color: pending ? "yellow" : "gray",
754
- children: pending ? "upsert queued" : "no entity bound"
797
+ children: pending ? "upsert queued" : missingScheduler ? "scheduler missing" : "no entity bound"
755
798
  }), data.entity && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_mantine_core.Text, {
756
799
  size: "xs",
757
800
  c: "dimmed",
@@ -765,11 +808,12 @@ function EntityNode(t0) {
765
808
  });
766
809
  $[4] = data.entity;
767
810
  $[5] = entity;
768
- $[6] = pending;
769
- $[7] = t4;
770
- } else t4 = $[7];
811
+ $[6] = missingScheduler;
812
+ $[7] = pending;
813
+ $[8] = t4;
814
+ } else t4 = $[8];
771
815
  let t5;
772
- if ($[8] !== data || $[9] !== id || $[10] !== selected || $[11] !== t2 || $[12] !== t3 || $[13] !== t4 || $[14] !== type) {
816
+ if ($[9] !== data || $[10] !== id || $[11] !== selected || $[12] !== t2 || $[13] !== t3 || $[14] !== t4 || $[15] !== type) {
773
817
  t5 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_awesome_flow_core_layout.NodeContainer, {
774
818
  id,
775
819
  selected,
@@ -778,15 +822,15 @@ function EntityNode(t0) {
778
822
  type,
779
823
  children: [t3, t4]
780
824
  });
781
- $[8] = data;
782
- $[9] = id;
783
- $[10] = selected;
784
- $[11] = t2;
785
- $[12] = t3;
786
- $[13] = t4;
787
- $[14] = type;
788
- $[15] = t5;
789
- } else t5 = $[15];
825
+ $[9] = data;
826
+ $[10] = id;
827
+ $[11] = selected;
828
+ $[12] = t2;
829
+ $[13] = t3;
830
+ $[14] = t4;
831
+ $[15] = type;
832
+ $[16] = t5;
833
+ } else t5 = $[16];
790
834
  return t5;
791
835
  }
792
836
 
@@ -920,8 +964,8 @@ var node_scheduler_default = (0, react.memo)(SchedulerNode);
920
964
  //#endregion
921
965
  //#region src/nodes/node-scope-group.tsx
922
966
  function ScopeGroupNode(t0) {
923
- const $ = (0, react_compiler_runtime.c)(36);
924
- const { id, selected, data, type, width, height } = t0;
967
+ const $ = (0, react_compiler_runtime.c)(45);
968
+ const { id, selected, data, type, width, height, positionAbsoluteX, positionAbsoluteY } = t0;
925
969
  let t1;
926
970
  if ($[0] !== data || $[1] !== height || $[2] !== id || $[3] !== width) {
927
971
  t1 = {
@@ -936,7 +980,7 @@ function ScopeGroupNode(t0) {
936
980
  $[3] = width;
937
981
  $[4] = t1;
938
982
  } else t1 = $[4];
939
- const { groupNodes, groupData, onCollapsed } = (0, _awesome_flow_core_hooks.useGroupNode)(t1);
983
+ const { groupNodes, groupData, onCollapsed, isDropTarget } = (0, _awesome_flow_core_hooks.useGroupNode)(t1);
940
984
  const t2 = data.initialSize?.width || 320;
941
985
  const t3 = data.initialSize?.height || 220;
942
986
  let t4;
@@ -1010,44 +1054,74 @@ function ScopeGroupNode(t0) {
1010
1054
  } else t10 = $[21];
1011
1055
  const title = t10;
1012
1056
  let t11;
1013
- if ($[22] !== groupData || $[23] !== id || $[24] !== selected || $[25] !== title || $[26] !== type) {
1014
- t11 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_awesome_flow_core_layout.NodeContainer, {
1057
+ if ($[22] !== height || $[23] !== positionAbsoluteX || $[24] !== positionAbsoluteY || $[25] !== width) {
1058
+ t11 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_awesome_flow_core_layout.GroupBackdrop, {
1059
+ x: positionAbsoluteX,
1060
+ y: positionAbsoluteY,
1061
+ width,
1062
+ height
1063
+ });
1064
+ $[22] = height;
1065
+ $[23] = positionAbsoluteX;
1066
+ $[24] = positionAbsoluteY;
1067
+ $[25] = width;
1068
+ $[26] = t11;
1069
+ } else t11 = $[26];
1070
+ let t12;
1071
+ if ($[27] !== isDropTarget) {
1072
+ t12 = isDropTarget && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
1073
+ className: "flowGroupDropTarget",
1074
+ "aria-hidden": "true"
1075
+ });
1076
+ $[27] = isDropTarget;
1077
+ $[28] = t12;
1078
+ } else t12 = $[28];
1079
+ let t13;
1080
+ if ($[29] !== groupData || $[30] !== id || $[31] !== selected || $[32] !== title || $[33] !== type) {
1081
+ t13 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_awesome_flow_core_layout.NodeContainer, {
1015
1082
  id,
1016
1083
  selected,
1017
1084
  data: groupData,
1018
1085
  title,
1019
1086
  type
1020
1087
  });
1021
- $[22] = groupData;
1022
- $[23] = id;
1023
- $[24] = selected;
1024
- $[25] = title;
1025
- $[26] = type;
1026
- $[27] = t11;
1027
- } else t11 = $[27];
1028
- const t12 = selected && !data.isCollapsed;
1029
- let t13;
1030
- if ($[28] !== id || $[29] !== size.height || $[30] !== size.width || $[31] !== t12) {
1031
- t13 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_xyflow_react.NodeResizer, {
1088
+ $[29] = groupData;
1089
+ $[30] = id;
1090
+ $[31] = selected;
1091
+ $[32] = title;
1092
+ $[33] = type;
1093
+ $[34] = t13;
1094
+ } else t13 = $[34];
1095
+ const t14 = selected && !data.isCollapsed;
1096
+ let t15;
1097
+ if ($[35] !== id || $[36] !== size.height || $[37] !== size.width || $[38] !== t14) {
1098
+ t15 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_xyflow_react.NodeResizer, {
1032
1099
  nodeId: id,
1033
1100
  minWidth: size.width,
1034
1101
  minHeight: size.height,
1035
- isVisible: t12
1102
+ isVisible: t14
1036
1103
  });
1037
- $[28] = id;
1038
- $[29] = size.height;
1039
- $[30] = size.width;
1040
- $[31] = t12;
1041
- $[32] = t13;
1042
- } else t13 = $[32];
1043
- let t14;
1044
- if ($[33] !== t11 || $[34] !== t13) {
1045
- t14 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [t11, t13] });
1046
- $[33] = t11;
1047
- $[34] = t13;
1048
- $[35] = t14;
1049
- } else t14 = $[35];
1050
- return t14;
1104
+ $[35] = id;
1105
+ $[36] = size.height;
1106
+ $[37] = size.width;
1107
+ $[38] = t14;
1108
+ $[39] = t15;
1109
+ } else t15 = $[39];
1110
+ let t16;
1111
+ if ($[40] !== t11 || $[41] !== t12 || $[42] !== t13 || $[43] !== t15) {
1112
+ t16 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
1113
+ t11,
1114
+ t12,
1115
+ t13,
1116
+ t15
1117
+ ] });
1118
+ $[40] = t11;
1119
+ $[41] = t12;
1120
+ $[42] = t13;
1121
+ $[43] = t15;
1122
+ $[44] = t16;
1123
+ } else t16 = $[44];
1124
+ return t16;
1051
1125
  }
1052
1126
  var node_scope_group_default = (0, react.memo)(ScopeGroupNode);
1053
1127
 
@@ -1119,7 +1193,7 @@ function SystemsModuleLayout(props) {
1119
1193
  const { module } = props;
1120
1194
  const runtimeContext = module.runtimeContext;
1121
1195
  const systemsModule = runtimeContext?.systemsModule ?? module;
1122
- const error = runtimeContext?.systemContext?.runtime?.error;
1196
+ const error = runtimeContext?.dispatch?.error;
1123
1197
  let t0;
1124
1198
  if ($[0] !== systemsModule.builder.pipelines) {
1125
1199
  t0 = systemsModule.builder.pipelines.get(_awesome_ecs_abstract_systems.SystemType.initialize);
@@ -1150,7 +1224,7 @@ function SystemsModuleLayout(props) {
1150
1224
  const sync = t3;
1151
1225
  let t4;
1152
1226
  if ($[8] !== error) {
1153
- t4 = error && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_mantine_core.Text, { children: ["Error: ", error] });
1227
+ t4 = error && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_mantine_core.Text, { children: ["Error: ", formatError(error)] });
1154
1228
  $[8] = error;
1155
1229
  $[9] = t4;
1156
1230
  } else t4 = $[9];
@@ -1213,6 +1287,9 @@ function SystemsModuleLayout(props) {
1213
1287
  } else t10 = $[25];
1214
1288
  return t10;
1215
1289
  }
1290
+ function formatError(error) {
1291
+ return error instanceof Error ? error.message : String(error);
1292
+ }
1216
1293
 
1217
1294
  //#endregion
1218
1295
  //#region src/nodes/node-systems-module.tsx
@@ -1415,7 +1492,7 @@ function UpdateQueueNode(t0) {
1415
1492
  fullWidth: true,
1416
1493
  color: "orange",
1417
1494
  variant: "transparent",
1418
- children: "Update Queue"
1495
+ children: "Dirty Updates"
1419
1496
  });
1420
1497
  $[2] = t2;
1421
1498
  } else t2 = $[2];
@@ -1424,7 +1501,7 @@ function UpdateQueueNode(t0) {
1424
1501
  if ($[3] !== t3) {
1425
1502
  t4 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_mantine_core.Badge, {
1426
1503
  variant: "light",
1427
- children: ["queued ", t3]
1504
+ children: ["dirty ", t3]
1428
1505
  });
1429
1506
  $[3] = t3;
1430
1507
  $[4] = t4;
@@ -1434,7 +1511,7 @@ function UpdateQueueNode(t0) {
1434
1511
  t5 = !queue && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_mantine_core.Text, {
1435
1512
  size: "xs",
1436
1513
  c: "dimmed",
1437
- children: "No update queue connected."
1514
+ children: "No runtime scheduler connected."
1438
1515
  });
1439
1516
  $[5] = queue;
1440
1517
  $[6] = t5;
@@ -1565,7 +1642,7 @@ var TelemetryNodeTemplate = class {
1565
1642
  template = createToolTemplate("telemetry-node", "Telemetry");
1566
1643
  };
1567
1644
  var UpdateQueueNodeTemplate = class {
1568
- template = createToolTemplate("update-queue-node", "Update Queue");
1645
+ template = createToolTemplate("update-queue-node", "Dirty Updates");
1569
1646
  };
1570
1647
 
1571
1648
  //#endregion
@@ -1816,4 +1893,4 @@ Object.defineProperty(exports, 'useUpdateQueue', {
1816
1893
  return useUpdateQueue;
1817
1894
  }
1818
1895
  });
1819
- //# sourceMappingURL=node-types-D_NfbsUT.cjs.map
1896
+ //# sourceMappingURL=node-types-Z4QaJir-.cjs.map