@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.
@@ -1942,7 +1942,7 @@ var useResolvedDocuments = (value) => {
1942
1942
  "attachment",
1943
1943
  item.id
1944
1944
  ]);
1945
- out[item.id] = { record: record ?? null, resolved };
1945
+ out[item.id] = resolved ? record ?? null : void 0;
1946
1946
  }
1947
1947
  return out;
1948
1948
  },
@@ -1950,10 +1950,8 @@ var useResolvedDocuments = (value) => {
1950
1950
  );
1951
1951
  return useMemo(
1952
1952
  () => value.map((item) => {
1953
- const entry = records[item.id];
1954
- if (!entry) return item;
1955
- const { record, resolved } = entry;
1956
- if (!resolved) return item;
1953
+ const record = records[item.id];
1954
+ if (record === void 0) return item;
1957
1955
  if (!record) return { ...item, missing: "deleted" };
1958
1956
  const fresh = mapMediaToDocumentItem(
1959
1957
  record