UNPKG

@seidhr/sanity-plugin-muna-schemas

Version:

Muna or ᛗᚢᚾᚨ means remember in norse. Muna is a schema for the Sanity Studio that enables detailed descriptions of cultural heritage objects and knowledge about their contexts as well as pages about them (or anything else really.)

46 lines (44 loc) 958 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; /* Subclass of D1 Digital Object */ var _default = { name: 'DigitalObjectImage', type: 'image', title: 'Image', options: { hotspot: true, metadata: ['exif', 'location', 'lqip', 'palette'], semanticSanity: { exclude: true } }, fields: [{ name: 'caption', title: 'Bildetekst', titleEN: 'Caption', type: 'LocalizedString' }, { name: 'alt', title: 'Alternative tekst', titleEN: 'Alternative text', description: 'Important for SEO and accessiblity.', type: 'LocalizedString', validation: Rule => Rule.warning('You should to fill out the alternative text.'), options: { isHighlighted: true } }], preview: { select: { imageUrl: 'asset.url', title: 'caption' } } }; exports.default = _default; //# sourceMappingURL=DigitalObjectImage.js.map