@almadar/ui 4.5.0 → 4.5.1

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.
@@ -51002,6 +51002,8 @@ function VerificationProvider({
51002
51002
  dataEntities[entityName] = Array.isArray(records) ? records.length : 0;
51003
51003
  }
51004
51004
  }
51005
+ const emittedEventsRaw = Array.isArray(payload["emittedEvents"]) ? payload["emittedEvents"] : [];
51006
+ const emittedEvents = emittedEventsRaw.map((e) => typeof e.event === "string" ? e.event : null).filter((e) => e !== null);
51005
51007
  recordTransition({
51006
51008
  traitName: parsed.traitName,
51007
51009
  from: pending?.from ?? payload["currentState"] ?? newState,
@@ -51013,7 +51015,7 @@ function VerificationProvider({
51013
51015
  success: true,
51014
51016
  clientEffects: clientEffectsArr.length,
51015
51017
  dataEntities,
51016
- emittedEvents: [],
51018
+ emittedEvents,
51017
51019
  timestamp: Date.now()
51018
51020
  },
51019
51021
  timestamp: Date.now()
package/dist/avl/index.js CHANGED
@@ -50956,6 +50956,8 @@ function VerificationProvider({
50956
50956
  dataEntities[entityName] = Array.isArray(records) ? records.length : 0;
50957
50957
  }
50958
50958
  }
50959
+ const emittedEventsRaw = Array.isArray(payload["emittedEvents"]) ? payload["emittedEvents"] : [];
50960
+ const emittedEvents = emittedEventsRaw.map((e) => typeof e.event === "string" ? e.event : null).filter((e) => e !== null);
50959
50961
  recordTransition({
50960
50962
  traitName: parsed.traitName,
50961
50963
  from: pending?.from ?? payload["currentState"] ?? newState,
@@ -50967,7 +50969,7 @@ function VerificationProvider({
50967
50969
  success: true,
50968
50970
  clientEffects: clientEffectsArr.length,
50969
50971
  dataEntities,
50970
- emittedEvents: [],
50972
+ emittedEvents,
50971
50973
  timestamp: Date.now()
50972
50974
  },
50973
50975
  timestamp: Date.now()
@@ -38607,6 +38607,8 @@ function VerificationProvider({
38607
38607
  dataEntities[entityName] = Array.isArray(records) ? records.length : 0;
38608
38608
  }
38609
38609
  }
38610
+ const emittedEventsRaw = Array.isArray(payload["emittedEvents"]) ? payload["emittedEvents"] : [];
38611
+ const emittedEvents = emittedEventsRaw.map((e) => typeof e.event === "string" ? e.event : null).filter((e) => e !== null);
38610
38612
  recordTransition({
38611
38613
  traitName: parsed.traitName,
38612
38614
  from: pending?.from ?? payload["currentState"] ?? newState,
@@ -38618,7 +38620,7 @@ function VerificationProvider({
38618
38620
  success: true,
38619
38621
  clientEffects: clientEffectsArr.length,
38620
38622
  dataEntities,
38621
- emittedEvents: [],
38623
+ emittedEvents,
38622
38624
  timestamp: Date.now()
38623
38625
  },
38624
38626
  timestamp: Date.now()
@@ -38562,6 +38562,8 @@ function VerificationProvider({
38562
38562
  dataEntities[entityName] = Array.isArray(records) ? records.length : 0;
38563
38563
  }
38564
38564
  }
38565
+ const emittedEventsRaw = Array.isArray(payload["emittedEvents"]) ? payload["emittedEvents"] : [];
38566
+ const emittedEvents = emittedEventsRaw.map((e) => typeof e.event === "string" ? e.event : null).filter((e) => e !== null);
38565
38567
  recordTransition({
38566
38568
  traitName: parsed.traitName,
38567
38569
  from: pending?.from ?? payload["currentState"] ?? newState,
@@ -38573,7 +38575,7 @@ function VerificationProvider({
38573
38575
  success: true,
38574
38576
  clientEffects: clientEffectsArr.length,
38575
38577
  dataEntities,
38576
- emittedEvents: [],
38578
+ emittedEvents,
38577
38579
  timestamp: Date.now()
38578
38580
  },
38579
38581
  timestamp: Date.now()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@almadar/ui",
3
- "version": "4.5.0",
3
+ "version": "4.5.1",
4
4
  "description": "React UI components, hooks, and providers for Almadar",
5
5
  "type": "module",
6
6
  "main": "./dist/components/index.js",