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

54 lines (49 loc) 1.14 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _TextPreview = require("../../../previews/TextPreview"); var _default = { name: 'BigTextBlock', type: 'object', title: 'Stor tekst', titleEN: 'Big text', description: 'Stor tekst. Centered. Keep it short to max 2-3 paragraphs.', descriptionEN: 'A big text. Centered. Keep it short to max 2-3 paragraphs.', options: { semanticSanity: { exclude: true } }, fields: [{ name: 'disabled', title: 'Avslått?', titleEN: 'Disabled', type: 'boolean' }, { name: 'content', title: 'Tekst', titleEN: 'Text', type: 'blockContent' }], preview: { select: { title: 'title', content: 'content', disabled: 'disabled' }, prepare(_ref) { var title = _ref.title, content = _ref.content; return { title: title ? title : '', content: content ? content : '', type: 'Big text' }; }, component: _TextPreview.TextPreview } }; exports.default = _default; //# sourceMappingURL=BigTextBlock.js.map