@almadar/ui 4.10.1 → 4.10.2

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.
@@ -51445,8 +51445,12 @@ function useResolvedSchema(schema, pageName) {
51445
51445
  for (const traitRef of orb.traits ?? []) {
51446
51446
  if (typeof traitRef === "string") continue;
51447
51447
  const t = traitRef;
51448
- if (typeof t.name !== "string" || !t.listens?.length) continue;
51449
- callSiteListensByTrait.set(t.name, t.listens);
51448
+ const inlineListens = t.listens?.length ? t.listens : void 0;
51449
+ const resolvedListens = t._resolved?.listens?.length ? t._resolved.listens : void 0;
51450
+ const listens = inlineListens ?? resolvedListens;
51451
+ const traitName = t.name ?? t._resolved?.name;
51452
+ if (typeof traitName !== "string" || !listens) continue;
51453
+ callSiteListensByTrait.set(traitName, listens);
51450
51454
  }
51451
51455
  }
51452
51456
  for (const [traitName, trait] of resolved.traits) {
package/dist/avl/index.js CHANGED
@@ -51399,8 +51399,12 @@ function useResolvedSchema(schema, pageName) {
51399
51399
  for (const traitRef of orb.traits ?? []) {
51400
51400
  if (typeof traitRef === "string") continue;
51401
51401
  const t = traitRef;
51402
- if (typeof t.name !== "string" || !t.listens?.length) continue;
51403
- callSiteListensByTrait.set(t.name, t.listens);
51402
+ const inlineListens = t.listens?.length ? t.listens : void 0;
51403
+ const resolvedListens = t._resolved?.listens?.length ? t._resolved.listens : void 0;
51404
+ const listens = inlineListens ?? resolvedListens;
51405
+ const traitName = t.name ?? t._resolved?.name;
51406
+ if (typeof traitName !== "string" || !listens) continue;
51407
+ callSiteListensByTrait.set(traitName, listens);
51404
51408
  }
51405
51409
  }
51406
51410
  for (const [traitName, trait] of resolved.traits) {
@@ -38843,8 +38843,12 @@ function useResolvedSchema(schema, pageName) {
38843
38843
  for (const traitRef of orb.traits ?? []) {
38844
38844
  if (typeof traitRef === "string") continue;
38845
38845
  const t = traitRef;
38846
- if (typeof t.name !== "string" || !t.listens?.length) continue;
38847
- callSiteListensByTrait.set(t.name, t.listens);
38846
+ const inlineListens = t.listens?.length ? t.listens : void 0;
38847
+ const resolvedListens = t._resolved?.listens?.length ? t._resolved.listens : void 0;
38848
+ const listens = inlineListens ?? resolvedListens;
38849
+ const traitName = t.name ?? t._resolved?.name;
38850
+ if (typeof traitName !== "string" || !listens) continue;
38851
+ callSiteListensByTrait.set(traitName, listens);
38848
38852
  }
38849
38853
  }
38850
38854
  for (const [traitName, trait] of resolved.traits) {
@@ -38798,8 +38798,12 @@ function useResolvedSchema(schema, pageName) {
38798
38798
  for (const traitRef of orb.traits ?? []) {
38799
38799
  if (typeof traitRef === "string") continue;
38800
38800
  const t = traitRef;
38801
- if (typeof t.name !== "string" || !t.listens?.length) continue;
38802
- callSiteListensByTrait.set(t.name, t.listens);
38801
+ const inlineListens = t.listens?.length ? t.listens : void 0;
38802
+ const resolvedListens = t._resolved?.listens?.length ? t._resolved.listens : void 0;
38803
+ const listens = inlineListens ?? resolvedListens;
38804
+ const traitName = t.name ?? t._resolved?.name;
38805
+ if (typeof traitName !== "string" || !listens) continue;
38806
+ callSiteListensByTrait.set(traitName, listens);
38803
38807
  }
38804
38808
  }
38805
38809
  for (const [traitName, trait] of resolved.traits) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@almadar/ui",
3
- "version": "4.10.1",
3
+ "version": "4.10.2",
4
4
  "description": "React UI components, hooks, and providers for Almadar",
5
5
  "type": "module",
6
6
  "main": "./dist/components/index.js",