@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.)
86 lines (79 loc) • 1.76 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _helpers = require("../../../helpers");
var _datatype = require("../../properties/datatype");
var _object = require("../../properties/object");
var _default = {
name: 'Presence',
type: 'object',
title: 'Tilstedeværelse',
titleEN: 'Presence',
description: 'Used to define temporal snapshots at a particular time-span, such as the extent of the Roman Empire at 33 B.C.',
fieldsets: [{
name: 'core',
title: 'coresregistrering',
options: {
collapsible: true,
collapsed: false
}
}],
fields: [_datatype.label, {
name: 'description',
title: 'Beskrivelse',
titleEN: 'Description',
description: 'A shortish description',
type: 'LocaleBlockSimple',
options: {
semanticSanity: {
'@type': '@json'
}
}
}, {
name: 'temporalProjection',
title: 'Tidsspenn',
titleEN: 'Timespan',
type: 'array',
of: [{
type: 'Timespan'
}],
options: {
semanticSanity: {
'@container': '@set',
'@type': '@id'
}
}
}, {
name: 'spatialProjection',
title: 'Fant sted ved',
titleEN: 'Took place at',
type: 'array',
of: [{
type: 'reference',
to: [{
type: 'Place'
}]
}],
options: {
semanticSanity: {
'@container': '@set',
'@type': '@id'
}
}
}, _object.definedByGeoJSON],
preview: {
select: {
title: 'label'
},
prepare(selection) {
var title = selection.title;
return {
title: (0, _helpers.coalesceLabel)(title)
};
}
}
};
exports.default = _default;
//# sourceMappingURL=Presence.js.map