@almadar/ui 5.149.0 → 5.151.0

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.
@@ -958,7 +958,7 @@ function useEventBus() {
958
958
  return {
959
959
  ...baseBus,
960
960
  emit: (type, payload, source) => {
961
- if (typeof type === "string" && type.startsWith("UI:") && !type.slice(3).includes(".")) {
961
+ if (typeof type === "string" && type.startsWith("UI:") && !type.slice(3).includes(".") && !source?.trait) {
962
962
  scopeLog.warn("emit:bare-key-no-scope", { type });
963
963
  }
964
964
  baseBus.emit(type, payload, source);
@@ -956,7 +956,7 @@ function useEventBus() {
956
956
  return {
957
957
  ...baseBus,
958
958
  emit: (type, payload, source) => {
959
- if (typeof type === "string" && type.startsWith("UI:") && !type.slice(3).includes(".")) {
959
+ if (typeof type === "string" && type.startsWith("UI:") && !type.slice(3).includes(".") && !source?.trait) {
960
960
  scopeLog.warn("emit:bare-key-no-scope", { type });
961
961
  }
962
962
  baseBus.emit(type, payload, source);
@@ -126,7 +126,7 @@ function useEventBus() {
126
126
  return {
127
127
  ...baseBus,
128
128
  emit: (type, payload, source) => {
129
- if (typeof type === "string" && type.startsWith("UI:") && !type.slice(3).includes(".")) {
129
+ if (typeof type === "string" && type.startsWith("UI:") && !type.slice(3).includes(".") && !source?.trait) {
130
130
  scopeLog.warn("emit:bare-key-no-scope", { type });
131
131
  }
132
132
  baseBus.emit(type, payload, source);
@@ -102,7 +102,7 @@ function useEventBus() {
102
102
  return {
103
103
  ...baseBus,
104
104
  emit: (type, payload, source) => {
105
- if (typeof type === "string" && type.startsWith("UI:") && !type.slice(3).includes(".")) {
105
+ if (typeof type === "string" && type.startsWith("UI:") && !type.slice(3).includes(".") && !source?.trait) {
106
106
  scopeLog.warn("emit:bare-key-no-scope", { type });
107
107
  }
108
108
  baseBus.emit(type, payload, source);
@@ -2596,7 +2596,7 @@ function useEventBus() {
2596
2596
  return {
2597
2597
  ...baseBus,
2598
2598
  emit: (type, payload, source) => {
2599
- if (typeof type === "string" && type.startsWith("UI:") && !type.slice(3).includes(".")) {
2599
+ if (typeof type === "string" && type.startsWith("UI:") && !type.slice(3).includes(".") && !source?.trait) {
2600
2600
  scopeLog.warn("emit:bare-key-no-scope", { type });
2601
2601
  }
2602
2602
  baseBus.emit(type, payload, source);
@@ -2575,7 +2575,7 @@ function useEventBus() {
2575
2575
  return {
2576
2576
  ...baseBus,
2577
2577
  emit: (type, payload, source) => {
2578
- if (typeof type === "string" && type.startsWith("UI:") && !type.slice(3).includes(".")) {
2578
+ if (typeof type === "string" && type.startsWith("UI:") && !type.slice(3).includes(".") && !source?.trait) {
2579
2579
  scopeLog.warn("emit:bare-key-no-scope", { type });
2580
2580
  }
2581
2581
  baseBus.emit(type, payload, source);