@almadar/ui 4.6.12 → 4.6.13

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.
@@ -51721,6 +51721,15 @@ function useTraitStateMachine(traitBindings, slotsActions, options) {
51721
51721
  });
51722
51722
  }
51723
51723
  const results = currentManager.sendEvent(normalizedEvent, payload);
51724
+ for (const { traitName, result } of results) {
51725
+ const suffix = result.executed ? "SUCCESS" : "ERROR";
51726
+ eventBus.emit(`${traitName}:${normalizedEvent}:${suffix}`, {
51727
+ event: normalizedEvent,
51728
+ payload,
51729
+ newState: result.newState,
51730
+ currentState: result.previousState
51731
+ });
51732
+ }
51724
51733
  const emittedByTrait = /* @__PURE__ */ new Map();
51725
51734
  for (const { traitName, result } of results) {
51726
51735
  const binding = bindingMap.get(traitName);
@@ -51902,15 +51911,6 @@ function useTraitStateMachine(traitBindings, slotsActions, options) {
51902
51911
  }
51903
51912
  }
51904
51913
  }
51905
- for (const { traitName, result } of results) {
51906
- const suffix = result.executed ? "SUCCESS" : "ERROR";
51907
- eventBus.emit(`${traitName}:${normalizedEvent}:${suffix}`, {
51908
- event: normalizedEvent,
51909
- payload,
51910
- newState: result.newState,
51911
- currentState: result.previousState
51912
- });
51913
- }
51914
51914
  for (const { traitName, result } of results) {
51915
51915
  if (result.executed) {
51916
51916
  updateTraitState(traitName, result.newState);
package/dist/avl/index.js CHANGED
@@ -51675,6 +51675,15 @@ function useTraitStateMachine(traitBindings, slotsActions, options) {
51675
51675
  });
51676
51676
  }
51677
51677
  const results = currentManager.sendEvent(normalizedEvent, payload);
51678
+ for (const { traitName, result } of results) {
51679
+ const suffix = result.executed ? "SUCCESS" : "ERROR";
51680
+ eventBus.emit(`${traitName}:${normalizedEvent}:${suffix}`, {
51681
+ event: normalizedEvent,
51682
+ payload,
51683
+ newState: result.newState,
51684
+ currentState: result.previousState
51685
+ });
51686
+ }
51678
51687
  const emittedByTrait = /* @__PURE__ */ new Map();
51679
51688
  for (const { traitName, result } of results) {
51680
51689
  const binding = bindingMap.get(traitName);
@@ -51856,15 +51865,6 @@ function useTraitStateMachine(traitBindings, slotsActions, options) {
51856
51865
  }
51857
51866
  }
51858
51867
  }
51859
- for (const { traitName, result } of results) {
51860
- const suffix = result.executed ? "SUCCESS" : "ERROR";
51861
- eventBus.emit(`${traitName}:${normalizedEvent}:${suffix}`, {
51862
- event: normalizedEvent,
51863
- payload,
51864
- newState: result.newState,
51865
- currentState: result.previousState
51866
- });
51867
- }
51868
51868
  for (const { traitName, result } of results) {
51869
51869
  if (result.executed) {
51870
51870
  updateTraitState(traitName, result.newState);
@@ -38400,6 +38400,15 @@ function useTraitStateMachine(traitBindings, slotsActions, options) {
38400
38400
  });
38401
38401
  }
38402
38402
  const results = currentManager.sendEvent(normalizedEvent, payload);
38403
+ for (const { traitName, result } of results) {
38404
+ const suffix = result.executed ? "SUCCESS" : "ERROR";
38405
+ eventBus.emit(`${traitName}:${normalizedEvent}:${suffix}`, {
38406
+ event: normalizedEvent,
38407
+ payload,
38408
+ newState: result.newState,
38409
+ currentState: result.previousState
38410
+ });
38411
+ }
38403
38412
  const emittedByTrait = /* @__PURE__ */ new Map();
38404
38413
  for (const { traitName, result } of results) {
38405
38414
  const binding = bindingMap.get(traitName);
@@ -38581,15 +38590,6 @@ function useTraitStateMachine(traitBindings, slotsActions, options) {
38581
38590
  }
38582
38591
  }
38583
38592
  }
38584
- for (const { traitName, result } of results) {
38585
- const suffix = result.executed ? "SUCCESS" : "ERROR";
38586
- eventBus.emit(`${traitName}:${normalizedEvent}:${suffix}`, {
38587
- event: normalizedEvent,
38588
- payload,
38589
- newState: result.newState,
38590
- currentState: result.previousState
38591
- });
38592
- }
38593
38593
  for (const { traitName, result } of results) {
38594
38594
  if (result.executed) {
38595
38595
  updateTraitState(traitName, result.newState);
@@ -38355,6 +38355,15 @@ function useTraitStateMachine(traitBindings, slotsActions, options) {
38355
38355
  });
38356
38356
  }
38357
38357
  const results = currentManager.sendEvent(normalizedEvent, payload);
38358
+ for (const { traitName, result } of results) {
38359
+ const suffix = result.executed ? "SUCCESS" : "ERROR";
38360
+ eventBus.emit(`${traitName}:${normalizedEvent}:${suffix}`, {
38361
+ event: normalizedEvent,
38362
+ payload,
38363
+ newState: result.newState,
38364
+ currentState: result.previousState
38365
+ });
38366
+ }
38358
38367
  const emittedByTrait = /* @__PURE__ */ new Map();
38359
38368
  for (const { traitName, result } of results) {
38360
38369
  const binding = bindingMap.get(traitName);
@@ -38536,15 +38545,6 @@ function useTraitStateMachine(traitBindings, slotsActions, options) {
38536
38545
  }
38537
38546
  }
38538
38547
  }
38539
- for (const { traitName, result } of results) {
38540
- const suffix = result.executed ? "SUCCESS" : "ERROR";
38541
- eventBus.emit(`${traitName}:${normalizedEvent}:${suffix}`, {
38542
- event: normalizedEvent,
38543
- payload,
38544
- newState: result.newState,
38545
- currentState: result.previousState
38546
- });
38547
- }
38548
38548
  for (const { traitName, result } of results) {
38549
38549
  if (result.executed) {
38550
38550
  updateTraitState(traitName, result.newState);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@almadar/ui",
3
- "version": "4.6.12",
3
+ "version": "4.6.13",
4
4
  "description": "React UI components, hooks, and providers for Almadar",
5
5
  "type": "module",
6
6
  "main": "./dist/components/index.js",