@almadar/ui 4.10.5 → 4.10.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.
@@ -46569,7 +46569,7 @@ function enrichFormFields(fields, entityDef) {
46569
46569
  });
46570
46570
  }
46571
46571
  function renderContainedPortal(slot, content, onDismiss) {
46572
- const slotContent = /* @__PURE__ */ jsxRuntime.jsx(SlotContentRenderer, { content, onDismiss });
46572
+ const slotContent = /* @__PURE__ */ jsxRuntime.jsx(MaybeTraitScope, { sourceTrait: content.sourceTrait, children: /* @__PURE__ */ jsxRuntime.jsx(SlotContentRenderer, { content, onDismiss }) });
46573
46573
  const slotId = `slot-${slot}`;
46574
46574
  switch (slot) {
46575
46575
  case "modal":
@@ -52082,19 +52082,6 @@ function useTraitStateMachine(traitBindings, slotsActions, options) {
52082
52082
  });
52083
52083
  }
52084
52084
  }
52085
- const LIFECYCLE_EVENTS = /* @__PURE__ */ new Set(["INIT", "LOAD", "$MOUNT", "$UNMOUNT", "$FRAME"]);
52086
- if (!LIFECYCLE_EVENTS.has(normalizedEvent)) {
52087
- for (const { traitName, result } of results) {
52088
- if (!result.executed) continue;
52089
- const orbitalName = orbitalsByTrait?.[traitName];
52090
- if (!orbitalName) continue;
52091
- eventBus.emit(`UI:${orbitalName}.${traitName}.${normalizedEvent}`, payload, {
52092
- orbital: orbitalName,
52093
- trait: traitName,
52094
- fromBridge: true
52095
- });
52096
- }
52097
- }
52098
52085
  if (results.length > 0) {
52099
52086
  setTraitStates(currentManager.getAllStates());
52100
52087
  }
package/dist/avl/index.js CHANGED
@@ -46523,7 +46523,7 @@ function enrichFormFields(fields, entityDef) {
46523
46523
  });
46524
46524
  }
46525
46525
  function renderContainedPortal(slot, content, onDismiss) {
46526
- const slotContent = /* @__PURE__ */ jsx(SlotContentRenderer, { content, onDismiss });
46526
+ const slotContent = /* @__PURE__ */ jsx(MaybeTraitScope, { sourceTrait: content.sourceTrait, children: /* @__PURE__ */ jsx(SlotContentRenderer, { content, onDismiss }) });
46527
46527
  const slotId = `slot-${slot}`;
46528
46528
  switch (slot) {
46529
46529
  case "modal":
@@ -52036,19 +52036,6 @@ function useTraitStateMachine(traitBindings, slotsActions, options) {
52036
52036
  });
52037
52037
  }
52038
52038
  }
52039
- const LIFECYCLE_EVENTS = /* @__PURE__ */ new Set(["INIT", "LOAD", "$MOUNT", "$UNMOUNT", "$FRAME"]);
52040
- if (!LIFECYCLE_EVENTS.has(normalizedEvent)) {
52041
- for (const { traitName, result } of results) {
52042
- if (!result.executed) continue;
52043
- const orbitalName = orbitalsByTrait?.[traitName];
52044
- if (!orbitalName) continue;
52045
- eventBus.emit(`UI:${orbitalName}.${traitName}.${normalizedEvent}`, payload, {
52046
- orbital: orbitalName,
52047
- trait: traitName,
52048
- fromBridge: true
52049
- });
52050
- }
52051
- }
52052
52039
  if (results.length > 0) {
52053
52040
  setTraitStates(currentManager.getAllStates());
52054
52041
  }
@@ -37256,7 +37256,7 @@ function enrichFormFields(fields, entityDef) {
37256
37256
  });
37257
37257
  }
37258
37258
  function renderContainedPortal(slot, content, onDismiss) {
37259
- const slotContent = /* @__PURE__ */ jsxRuntime.jsx(SlotContentRenderer, { content, onDismiss });
37259
+ const slotContent = /* @__PURE__ */ jsxRuntime.jsx(MaybeTraitScope, { sourceTrait: content.sourceTrait, children: /* @__PURE__ */ jsxRuntime.jsx(SlotContentRenderer, { content, onDismiss }) });
37260
37260
  const slotId = `slot-${slot}`;
37261
37261
  switch (slot) {
37262
37262
  case "modal":
@@ -37211,7 +37211,7 @@ function enrichFormFields(fields, entityDef) {
37211
37211
  });
37212
37212
  }
37213
37213
  function renderContainedPortal(slot, content, onDismiss) {
37214
- const slotContent = /* @__PURE__ */ jsx(SlotContentRenderer, { content, onDismiss });
37214
+ const slotContent = /* @__PURE__ */ jsx(MaybeTraitScope, { sourceTrait: content.sourceTrait, children: /* @__PURE__ */ jsx(SlotContentRenderer, { content, onDismiss }) });
37215
37215
  const slotId = `slot-${slot}`;
37216
37216
  switch (slot) {
37217
37217
  case "modal":
@@ -37769,7 +37769,7 @@ function enrichFormFields(fields, entityDef) {
37769
37769
  });
37770
37770
  }
37771
37771
  function renderContainedPortal(slot, content, onDismiss) {
37772
- const slotContent = /* @__PURE__ */ jsxRuntime.jsx(SlotContentRenderer, { content, onDismiss });
37772
+ const slotContent = /* @__PURE__ */ jsxRuntime.jsx(MaybeTraitScope, { sourceTrait: content.sourceTrait, children: /* @__PURE__ */ jsxRuntime.jsx(SlotContentRenderer, { content, onDismiss }) });
37773
37773
  const slotId = `slot-${slot}`;
37774
37774
  switch (slot) {
37775
37775
  case "modal":
@@ -37724,7 +37724,7 @@ function enrichFormFields(fields, entityDef) {
37724
37724
  });
37725
37725
  }
37726
37726
  function renderContainedPortal(slot, content, onDismiss) {
37727
- const slotContent = /* @__PURE__ */ jsx(SlotContentRenderer, { content, onDismiss });
37727
+ const slotContent = /* @__PURE__ */ jsx(MaybeTraitScope, { sourceTrait: content.sourceTrait, children: /* @__PURE__ */ jsx(SlotContentRenderer, { content, onDismiss }) });
37728
37728
  const slotId = `slot-${slot}`;
37729
37729
  switch (slot) {
37730
37730
  case "modal":
@@ -37456,7 +37456,7 @@ function enrichFormFields(fields, entityDef) {
37456
37456
  });
37457
37457
  }
37458
37458
  function renderContainedPortal(slot, content, onDismiss) {
37459
- const slotContent = /* @__PURE__ */ jsxRuntime.jsx(SlotContentRenderer, { content, onDismiss });
37459
+ const slotContent = /* @__PURE__ */ jsxRuntime.jsx(MaybeTraitScope, { sourceTrait: content.sourceTrait, children: /* @__PURE__ */ jsxRuntime.jsx(SlotContentRenderer, { content, onDismiss }) });
37460
37460
  const slotId = `slot-${slot}`;
37461
37461
  switch (slot) {
37462
37462
  case "modal":
@@ -38703,19 +38703,6 @@ function useTraitStateMachine(traitBindings, slotsActions, options) {
38703
38703
  });
38704
38704
  }
38705
38705
  }
38706
- const LIFECYCLE_EVENTS = /* @__PURE__ */ new Set(["INIT", "LOAD", "$MOUNT", "$UNMOUNT", "$FRAME"]);
38707
- if (!LIFECYCLE_EVENTS.has(normalizedEvent)) {
38708
- for (const { traitName, result } of results) {
38709
- if (!result.executed) continue;
38710
- const orbitalName = orbitalsByTrait?.[traitName];
38711
- if (!orbitalName) continue;
38712
- eventBus.emit(`UI:${orbitalName}.${traitName}.${normalizedEvent}`, payload, {
38713
- orbital: orbitalName,
38714
- trait: traitName,
38715
- fromBridge: true
38716
- });
38717
- }
38718
- }
38719
38706
  if (results.length > 0) {
38720
38707
  setTraitStates(currentManager.getAllStates());
38721
38708
  }
@@ -37411,7 +37411,7 @@ function enrichFormFields(fields, entityDef) {
37411
37411
  });
37412
37412
  }
37413
37413
  function renderContainedPortal(slot, content, onDismiss) {
37414
- const slotContent = /* @__PURE__ */ jsx(SlotContentRenderer, { content, onDismiss });
37414
+ const slotContent = /* @__PURE__ */ jsx(MaybeTraitScope, { sourceTrait: content.sourceTrait, children: /* @__PURE__ */ jsx(SlotContentRenderer, { content, onDismiss }) });
37415
37415
  const slotId = `slot-${slot}`;
37416
37416
  switch (slot) {
37417
37417
  case "modal":
@@ -38658,19 +38658,6 @@ function useTraitStateMachine(traitBindings, slotsActions, options) {
38658
38658
  });
38659
38659
  }
38660
38660
  }
38661
- const LIFECYCLE_EVENTS = /* @__PURE__ */ new Set(["INIT", "LOAD", "$MOUNT", "$UNMOUNT", "$FRAME"]);
38662
- if (!LIFECYCLE_EVENTS.has(normalizedEvent)) {
38663
- for (const { traitName, result } of results) {
38664
- if (!result.executed) continue;
38665
- const orbitalName = orbitalsByTrait?.[traitName];
38666
- if (!orbitalName) continue;
38667
- eventBus.emit(`UI:${orbitalName}.${traitName}.${normalizedEvent}`, payload, {
38668
- orbital: orbitalName,
38669
- trait: traitName,
38670
- fromBridge: true
38671
- });
38672
- }
38673
- }
38674
38661
  if (results.length > 0) {
38675
38662
  setTraitStates(currentManager.getAllStates());
38676
38663
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@almadar/ui",
3
- "version": "4.10.5",
3
+ "version": "4.10.7",
4
4
  "description": "React UI components, hooks, and providers for Almadar",
5
5
  "type": "module",
6
6
  "main": "./dist/components/index.js",