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

42 lines (34 loc) 1.12 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _defaultFieldsets = require("../../../../fieldsets/defaultFieldsets"); var _coalesceLabel = require("../../../../helpers/coalesceLabel"); var _datatype = require("../../../properties/datatype"); var _object = require("../../../properties/object"); var _default = { name: 'VisualObject', description: 'Image content worthy of description as distinct entities, such as the image shown by a painting or drawing.', type: 'object', title: 'Visuelt objekt', titleEN: 'Visual object', fieldsets: _defaultFieldsets.defaultFieldsets, fields: [_object.represents, _datatype.label, _object.digitallyShownBy, _object.referredToBy], preview: { select: { title: 'label', media: 'digitallyShownBy.0' }, prepare(selection) { var title = selection.title, media = selection.media; return { title: (0, _coalesceLabel.coalesceLabel)(title), media: media }; } } }; exports.default = _default; //# sourceMappingURL=VisualItemObject.js.map