@almadar/ui 4.6.11 → 4.6.12
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/avl/index.cjs +17 -0
- package/dist/avl/index.js +17 -0
- package/dist/runtime/index.cjs +17 -0
- package/dist/runtime/index.js +17 -0
- package/package.json +1 -1
package/dist/avl/index.cjs
CHANGED
|
@@ -51712,6 +51712,14 @@ function useTraitStateMachine(traitBindings, slotsActions, options) {
|
|
|
51712
51712
|
const actions = slotsActionsRef.current;
|
|
51713
51713
|
console.log("[TraitStateMachine] Processing event:", normalizedEvent, "payload:", payload);
|
|
51714
51714
|
const bindingMap = new Map(bindings.map((b) => [b.trait.name, b]));
|
|
51715
|
+
for (const traitName of bindingMap.keys()) {
|
|
51716
|
+
const traitState = currentManager.getState(traitName);
|
|
51717
|
+
eventBus.emit(`${traitName}:DISPATCH`, {
|
|
51718
|
+
event: normalizedEvent,
|
|
51719
|
+
payload,
|
|
51720
|
+
currentState: traitState?.currentState
|
|
51721
|
+
});
|
|
51722
|
+
}
|
|
51715
51723
|
const results = currentManager.sendEvent(normalizedEvent, payload);
|
|
51716
51724
|
const emittedByTrait = /* @__PURE__ */ new Map();
|
|
51717
51725
|
for (const { traitName, result } of results) {
|
|
@@ -51894,6 +51902,15 @@ function useTraitStateMachine(traitBindings, slotsActions, options) {
|
|
|
51894
51902
|
}
|
|
51895
51903
|
}
|
|
51896
51904
|
}
|
|
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
|
+
}
|
|
51897
51914
|
for (const { traitName, result } of results) {
|
|
51898
51915
|
if (result.executed) {
|
|
51899
51916
|
updateTraitState(traitName, result.newState);
|
package/dist/avl/index.js
CHANGED
|
@@ -51666,6 +51666,14 @@ function useTraitStateMachine(traitBindings, slotsActions, options) {
|
|
|
51666
51666
|
const actions = slotsActionsRef.current;
|
|
51667
51667
|
console.log("[TraitStateMachine] Processing event:", normalizedEvent, "payload:", payload);
|
|
51668
51668
|
const bindingMap = new Map(bindings.map((b) => [b.trait.name, b]));
|
|
51669
|
+
for (const traitName of bindingMap.keys()) {
|
|
51670
|
+
const traitState = currentManager.getState(traitName);
|
|
51671
|
+
eventBus.emit(`${traitName}:DISPATCH`, {
|
|
51672
|
+
event: normalizedEvent,
|
|
51673
|
+
payload,
|
|
51674
|
+
currentState: traitState?.currentState
|
|
51675
|
+
});
|
|
51676
|
+
}
|
|
51669
51677
|
const results = currentManager.sendEvent(normalizedEvent, payload);
|
|
51670
51678
|
const emittedByTrait = /* @__PURE__ */ new Map();
|
|
51671
51679
|
for (const { traitName, result } of results) {
|
|
@@ -51848,6 +51856,15 @@ function useTraitStateMachine(traitBindings, slotsActions, options) {
|
|
|
51848
51856
|
}
|
|
51849
51857
|
}
|
|
51850
51858
|
}
|
|
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
|
+
}
|
|
51851
51868
|
for (const { traitName, result } of results) {
|
|
51852
51869
|
if (result.executed) {
|
|
51853
51870
|
updateTraitState(traitName, result.newState);
|
package/dist/runtime/index.cjs
CHANGED
|
@@ -38391,6 +38391,14 @@ function useTraitStateMachine(traitBindings, slotsActions, options) {
|
|
|
38391
38391
|
const actions = slotsActionsRef.current;
|
|
38392
38392
|
console.log("[TraitStateMachine] Processing event:", normalizedEvent, "payload:", payload);
|
|
38393
38393
|
const bindingMap = new Map(bindings.map((b) => [b.trait.name, b]));
|
|
38394
|
+
for (const traitName of bindingMap.keys()) {
|
|
38395
|
+
const traitState = currentManager.getState(traitName);
|
|
38396
|
+
eventBus.emit(`${traitName}:DISPATCH`, {
|
|
38397
|
+
event: normalizedEvent,
|
|
38398
|
+
payload,
|
|
38399
|
+
currentState: traitState?.currentState
|
|
38400
|
+
});
|
|
38401
|
+
}
|
|
38394
38402
|
const results = currentManager.sendEvent(normalizedEvent, payload);
|
|
38395
38403
|
const emittedByTrait = /* @__PURE__ */ new Map();
|
|
38396
38404
|
for (const { traitName, result } of results) {
|
|
@@ -38573,6 +38581,15 @@ function useTraitStateMachine(traitBindings, slotsActions, options) {
|
|
|
38573
38581
|
}
|
|
38574
38582
|
}
|
|
38575
38583
|
}
|
|
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
|
+
}
|
|
38576
38593
|
for (const { traitName, result } of results) {
|
|
38577
38594
|
if (result.executed) {
|
|
38578
38595
|
updateTraitState(traitName, result.newState);
|
package/dist/runtime/index.js
CHANGED
|
@@ -38346,6 +38346,14 @@ function useTraitStateMachine(traitBindings, slotsActions, options) {
|
|
|
38346
38346
|
const actions = slotsActionsRef.current;
|
|
38347
38347
|
console.log("[TraitStateMachine] Processing event:", normalizedEvent, "payload:", payload);
|
|
38348
38348
|
const bindingMap = new Map(bindings.map((b) => [b.trait.name, b]));
|
|
38349
|
+
for (const traitName of bindingMap.keys()) {
|
|
38350
|
+
const traitState = currentManager.getState(traitName);
|
|
38351
|
+
eventBus.emit(`${traitName}:DISPATCH`, {
|
|
38352
|
+
event: normalizedEvent,
|
|
38353
|
+
payload,
|
|
38354
|
+
currentState: traitState?.currentState
|
|
38355
|
+
});
|
|
38356
|
+
}
|
|
38349
38357
|
const results = currentManager.sendEvent(normalizedEvent, payload);
|
|
38350
38358
|
const emittedByTrait = /* @__PURE__ */ new Map();
|
|
38351
38359
|
for (const { traitName, result } of results) {
|
|
@@ -38528,6 +38536,15 @@ function useTraitStateMachine(traitBindings, slotsActions, options) {
|
|
|
38528
38536
|
}
|
|
38529
38537
|
}
|
|
38530
38538
|
}
|
|
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
|
+
}
|
|
38531
38548
|
for (const { traitName, result } of results) {
|
|
38532
38549
|
if (result.executed) {
|
|
38533
38550
|
updateTraitState(traitName, result.newState);
|