@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.
- package/README.md +21 -3
- package/dist/components/content-picker/index.cjs +3 -8
- package/dist/components/content-picker/index.cjs.map +1 -1
- package/dist/components/content-picker/index.js +3 -8
- package/dist/components/content-picker/index.js.map +1 -1
- package/dist/components/document-picker/index.cjs +154 -15
- package/dist/components/document-picker/index.cjs.map +1 -1
- package/dist/components/document-picker/index.d.cts +16 -1
- package/dist/components/document-picker/index.d.ts +16 -1
- package/dist/components/document-picker/index.js +155 -16
- package/dist/components/document-picker/index.js.map +1 -1
- package/dist/index.cjs +157 -23
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +158 -24
- package/dist/index.js.map +1 -1
- package/package.json +2 -14
|
@@ -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
|
|
1767
|
-
if (
|
|
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) {
|