@arcote.tech/arc-react 0.5.5 → 0.5.7

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 (2) hide show
  1. package/dist/index.js +3 -2
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -635,7 +635,8 @@ Event payload:`, event.payload);
635
635
  }
636
636
  } else {
637
637
  if (adapters.eventPublisher) {
638
- const eventTypes = element?.getElements?.()?.map((e) => e.name) ?? [];
638
+ const aggregateName = element?.name;
639
+ const eventTypes = element?.getElements?.()?.map((e) => aggregateName ? `${aggregateName}.${e.name}` : e.name) ?? [];
639
640
  if (eventTypes.length > 0) {
640
641
  for (const eventType of eventTypes) {
641
642
  unsubs.push(adapters.eventPublisher.subscribe(eventType, () => reExecute()));
@@ -719,4 +720,4 @@ export {
719
720
  Form
720
721
  };
721
722
 
722
- //# debugId=E9B2B4CFA21F461364756E2164756E21
723
+ //# debugId=28A7A6080740A28464756E2164756E21
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@arcote.tech/arc-react",
3
3
  "type": "module",
4
- "version": "0.5.5",
4
+ "version": "0.5.7",
5
5
  "private": false,
6
6
  "author": "Przemysław Krasiński [arcote.tech]",
7
7
  "description": "React client for the Arc framework, providing utilities for querying data and executing commands, enhancing the development of reactive and efficient user interfaces.",
@@ -32,7 +32,7 @@
32
32
  "typescript": "^5.2.2"
33
33
  },
34
34
  "peerDependencies": {
35
- "@arcote.tech/arc": "^0.5.5",
35
+ "@arcote.tech/arc": "^0.5.7",
36
36
  "react": "^18.0.0 || ^19.0.0",
37
37
  "react-dom": "^18.0.0 || ^19.0.0",
38
38
  "typescript": "^5.0.0"