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

50 lines (47 loc) 904 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _default = { name: 'IframeBlock', type: 'object', title: 'iFrame', options: { semanticSanity: { exclude: true } }, fields: [{ name: 'disabled', title: 'Avslått?', titleEN: 'Disabled', type: 'boolean' }, { name: 'label', title: 'Tittel', titleEN: 'Heading', type: 'string' }, { name: 'url', title: 'url', description: 'Bruk selve nettadressen fra en iFrame. NB! Bruk med måte.', type: 'url' }], preview: { select: { title: 'label', url: 'url' }, prepare(_ref) { var title = _ref.title, url = _ref.url; return { title: title ? title : url, subtitle: 'iFrame' }; } } }; exports.default = _default; //# sourceMappingURL=IframeBlock.js.map