@valu/block-components 0.3.1 → 0.5.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.
@@ -1752,10 +1752,7 @@ var useResolvedItems = (value) => {
1752
1752
  nameKey,
1753
1753
  item.id
1754
1754
  ]);
1755
- out[`${item.kind}:${item.type}:${item.id}`] = {
1756
- record: record ?? null,
1757
- resolved
1758
- };
1755
+ out[`${item.kind}:${item.type}:${item.id}`] = resolved ? record ?? null : void 0;
1759
1756
  }
1760
1757
  return out;
1761
1758
  },
@@ -1763,10 +1760,8 @@ var useResolvedItems = (value) => {
1763
1760
  );
1764
1761
  return useMemo(
1765
1762
  () => value.map((item) => {
1766
- const resolvedEntry = records[`${item.kind}:${item.type}:${item.id}`];
1767
- if (!resolvedEntry) return item;
1768
- const { record, resolved } = resolvedEntry;
1769
- if (!resolved) {
1763
+ const record = records[`${item.kind}:${item.type}:${item.id}`];
1764
+ if (record === void 0) {
1770
1765
  return item;
1771
1766
  }
1772
1767
  if (!record) {