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.)

64 lines (60 loc) 1.49 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _default = { name: 'HeroBlock', type: 'object', title: 'Hero', options: { semanticSanity: { exclude: true } }, fields: [{ name: 'disabled', title: 'Avslått?', titleEN: 'Disabled', type: 'boolean' }, { name: 'label', title: 'Tittel', titleEN: 'Heading', type: 'string' }, { name: 'tagline', title: 'Tagline', titleEN: 'Tagline', description: 'Tagline under tittelen. Bør ikke være lengre en to korte avsnitt.', descriptionEN: 'Tagline under the title. Should not be longer than two short paragraphs.', type: 'blockContent' }, { name: 'items', title: 'Objekt', titleEN: 'Item', type: 'ObjectBlockItem' }], preview: { select: { title: 'label', media: 'illustration', object: 'item.image', disabled: 'disabled' }, prepare(_ref) { var _media$image; var title = _ref.title, media = _ref.media, object = _ref.object, disabled = _ref.disabled; return { title: "".concat(title), subtitle: "Hero. ".concat(disabled ? 'Avslått' : ''), media: (_media$image = media === null || media === void 0 ? void 0 : media.image) !== null && _media$image !== void 0 ? _media$image : object }; } } }; exports.default = _default; //# sourceMappingURL=HeroBlock.js.map