@valu/block-components 0.4.0 → 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.
@@ -1950,7 +1950,7 @@ var useResolvedDocuments = (value) => {
1950
1950
  "attachment",
1951
1951
  item.id
1952
1952
  ]);
1953
- out[item.id] = { record: record ?? null, resolved };
1953
+ out[item.id] = resolved ? record ?? null : void 0;
1954
1954
  }
1955
1955
  return out;
1956
1956
  },
@@ -1958,10 +1958,8 @@ var useResolvedDocuments = (value) => {
1958
1958
  );
1959
1959
  return react$1.useMemo(
1960
1960
  () => value.map((item) => {
1961
- const entry = records[item.id];
1962
- if (!entry) return item;
1963
- const { record, resolved } = entry;
1964
- if (!resolved) return item;
1961
+ const record = records[item.id];
1962
+ if (record === void 0) return item;
1965
1963
  if (!record) return { ...item, missing: "deleted" };
1966
1964
  const fresh = mapMediaToDocumentItem(
1967
1965
  record