fix shortcodes for scmsv4
All checks were successful
website-main / prod-build (push) Successful in 7s
website-main / test-build (push) Successful in 4s

This commit is contained in:
2024-01-02 21:58:00 +01:00
parent 02c5040281
commit cbbf5abf04
12 changed files with 141 additions and 150 deletions

View File

@ -1,4 +1,4 @@
import { Card, Image } from "./components/index.js";
import { Card, Image, Label } from "./components.js";
import { md5 } from "../previews/page-previews/components/index.js";
const ImageShortcode = {
@ -36,13 +36,13 @@ const ImageShortcode = {
);
const assetSource = useMediaAsset(src, collection, field, entry);
return Card(
return Card([
Label("Bild"),
Image({
label: "Bild",
assetSource,
handleOpenMediaLibrary,
})
);
}),
]);
},
preview: ({ src }) => {
return h(