[{"data":1,"prerenderedAt":3216},["ShallowReactive",2],{"navigation_docs":3,"-docs-core-content-modeling-fields-blocks":478,"-docs-core-content-modeling-fields-blocks-surround":2983,"mdc--x3lu8g-key":2988,"mdc--5ugjsa-key":2999,"mdc--evu2iu-key":3008,"mdc-rlfo-key":3017,"mdc--dmjfhf-key":3034,"mdc--sz1000-key":3050,"mdc--z504j2-key":3066,"mdc-of2q3a-key":3082,"mdc--vl48ac-key":3091,"mdc--j75b70-key":3106,"mdc--rb8zmg-key":3128,"mdc-od5rku-key":3142,"mdc--bg6odx-key":3151,"mdc-qrsd8t-key":3160,"mdc--z84m0w-key":3176,"mdc-7oq4f5-key":3185,"mdc--ptzd4t-key":3201},[4,352,446],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":6},"Docs",false,"\u002Fdocs\u002Fcore","docs\u002F1.core",[10,35,141,174,195,212,242,318],{"title":11,"icon":6,"path":12,"stem":13,"children":14,"page":6},"Getting Started","\u002Fdocs\u002Fcore\u002Fgetting-started","docs\u002F1.core\u002F1.getting-started",[15,19,23,27,31],{"title":16,"path":17,"stem":18},"Introduction","\u002Fdocs\u002Fcore\u002Fgetting-started\u002Fintroduction","docs\u002F1.core\u002F1.getting-started\u002F1.introduction",{"title":20,"path":21,"stem":22},"Quick Start","\u002Fdocs\u002Fcore\u002Fgetting-started\u002Fquick-start","docs\u002F1.core\u002F1.getting-started\u002F2.quick-start",{"title":24,"path":25,"stem":26},"Add to an Existing Site","\u002Fdocs\u002Fcore\u002Fgetting-started\u002Fexisting-site","docs\u002F1.core\u002F1.getting-started\u002F3.existing-site",{"title":28,"path":29,"stem":30},"Configuration","\u002Fdocs\u002Fcore\u002Fgetting-started\u002Fconfiguration","docs\u002F1.core\u002F1.getting-started\u002F4.configuration",{"title":32,"path":33,"stem":34},"How Tenon works","\u002Fdocs\u002Fcore\u002Fgetting-started\u002Fhow-tenon-works","docs\u002F1.core\u002F1.getting-started\u002F5.how-tenon-works",{"title":36,"icon":6,"path":37,"stem":38,"children":39,"page":6},"Content Modeling","\u002Fdocs\u002Fcore\u002Fcontent-modeling","docs\u002F1.core\u002F2.content-modeling",[40,44,111,115,119],{"title":41,"path":42,"stem":43},"Collections and Globals","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Fcollections-and-globals","docs\u002F1.core\u002F2.content-modeling\u002F1.collections-and-globals",{"title":45,"icon":6,"path":46,"stem":47,"children":48},"Fields","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002Findex",[49,51,55,59,63,67,71,75,79,83,87,91,95,99,103,107],{"title":50,"path":46,"stem":47},"Overview",{"title":52,"path":53,"stem":54},"Array","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Farray","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F01.array",{"title":56,"path":57,"stem":58},"Blocks","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fblocks","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F02.blocks",{"title":60,"path":61,"stem":62},"Boolean","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fboolean","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F03.boolean",{"title":64,"path":65,"stem":66},"Date","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fdate","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F04.date",{"title":68,"path":69,"stem":70},"File","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Ffile","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F05.file",{"title":72,"path":73,"stem":74},"Group","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fgroup","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F06.group",{"title":76,"path":77,"stem":78},"Image","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fimage","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F07.image",{"title":80,"path":81,"stem":82},"Link","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Flink","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F08.link",{"title":84,"path":85,"stem":86},"Number","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fnumber","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F09.number",{"title":88,"path":89,"stem":90},"Relation","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Frelation","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F10.relation",{"title":92,"path":93,"stem":94},"Rich text","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Frich-text","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F11.rich-text",{"title":96,"path":97,"stem":98},"Select","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fselect","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F12.select",{"title":100,"path":101,"stem":102},"Size","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fsize","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F13.size",{"title":104,"path":105,"stem":106},"Slug","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fslug","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F14.slug",{"title":108,"path":109,"stem":110},"Text","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Ftext","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F15.text",{"title":112,"path":113,"stem":114},"Relations","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Frelations","docs\u002F1.core\u002F2.content-modeling\u002F3.relations",{"title":116,"path":117,"stem":118},"Media","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Fmedia","docs\u002F1.core\u002F2.content-modeling\u002F4.media",{"title":120,"icon":6,"path":121,"stem":122,"children":123},"Presets","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Fpresets","docs\u002F1.core\u002F2.content-modeling\u002F5.presets\u002Findex",[124,125,129,133,137],{"title":50,"path":121,"stem":122},{"title":126,"path":127,"stem":128},"Menu","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Fpresets\u002Fmenu","docs\u002F1.core\u002F2.content-modeling\u002F5.presets\u002F1.menu",{"title":130,"path":131,"stem":132},"Pages","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Fpresets\u002Fpages","docs\u002F1.core\u002F2.content-modeling\u002F5.presets\u002F2.pages",{"title":134,"path":135,"stem":136},"Settings","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Fpresets\u002Fsettings","docs\u002F1.core\u002F2.content-modeling\u002F5.presets\u002F3.settings",{"title":138,"path":139,"stem":140},"Strings","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Fpresets\u002Fstrings","docs\u002F1.core\u002F2.content-modeling\u002F5.presets\u002F4.strings",{"title":142,"icon":6,"path":143,"stem":144,"children":145,"page":6},"Working with Content","\u002Fdocs\u002Fcore\u002Fworking-with-content","docs\u002F1.core\u002F3.working-with-content",[146,150,154,158,162,166,170],{"title":147,"path":148,"stem":149},"Reading","\u002Fdocs\u002Fcore\u002Fworking-with-content\u002Freading","docs\u002F1.core\u002F3.working-with-content\u002F1.reading",{"title":151,"path":152,"stem":153},"Writing and Drafts","\u002Fdocs\u002Fcore\u002Fworking-with-content\u002Fwriting","docs\u002F1.core\u002F3.working-with-content\u002F2.writing",{"title":155,"path":156,"stem":157},"Scheduled publishing","\u002Fdocs\u002Fcore\u002Fworking-with-content\u002Fscheduled-publishing","docs\u002F1.core\u002F3.working-with-content\u002F3.scheduled-publishing",{"title":159,"path":160,"stem":161},"HTTP API and Client","\u002Fdocs\u002Fcore\u002Fworking-with-content\u002Fhttp-api-and-client","docs\u002F1.core\u002F3.working-with-content\u002F4.http-api-and-client",{"title":163,"path":164,"stem":165},"Headless","\u002Fdocs\u002Fcore\u002Fworking-with-content\u002Fheadless","docs\u002F1.core\u002F3.working-with-content\u002F5.headless",{"title":167,"path":168,"stem":169},"Localization","\u002Fdocs\u002Fcore\u002Fworking-with-content\u002Flocalization","docs\u002F1.core\u002F3.working-with-content\u002F6.localization",{"title":171,"path":172,"stem":173},"Hooks","\u002Fdocs\u002Fcore\u002Fworking-with-content\u002Fhooks","docs\u002F1.core\u002F3.working-with-content\u002F7.hooks",{"title":175,"icon":6,"path":176,"stem":177,"children":178,"page":6},"Building Your Site","\u002Fdocs\u002Fcore\u002Fbuilding-your-site","docs\u002F1.core\u002F4.building-your-site",[179,183,187,191],{"title":180,"path":181,"stem":182},"Pages and SEO","\u002Fdocs\u002Fcore\u002Fbuilding-your-site\u002Fpages-and-seo","docs\u002F1.core\u002F4.building-your-site\u002F1.pages-and-seo",{"title":184,"path":185,"stem":186},"Components","\u002Fdocs\u002Fcore\u002Fbuilding-your-site\u002Fcomponents","docs\u002F1.core\u002F4.building-your-site\u002F2.components",{"title":188,"path":189,"stem":190},"Menus","\u002Fdocs\u002Fcore\u002Fbuilding-your-site\u002Fmenus","docs\u002F1.core\u002F4.building-your-site\u002F3.menus",{"title":192,"path":193,"stem":194},"Live Preview","\u002Fdocs\u002Fcore\u002Fbuilding-your-site\u002Flive-preview","docs\u002F1.core\u002F4.building-your-site\u002F4.live-preview",{"title":196,"icon":6,"path":197,"stem":198,"children":199,"page":6},"Users and Access","\u002Fdocs\u002Fcore\u002Fusers-and-access","docs\u002F1.core\u002F5.users-and-access",[200,204,208],{"title":201,"path":202,"stem":203},"Authentication","\u002Fdocs\u002Fcore\u002Fusers-and-access\u002Fauthentication","docs\u002F1.core\u002F5.users-and-access\u002F1.authentication",{"title":205,"path":206,"stem":207},"Access Control","\u002Fdocs\u002Fcore\u002Fusers-and-access\u002Faccess-control","docs\u002F1.core\u002F5.users-and-access\u002F2.access-control",{"title":209,"path":210,"stem":211},"API Keys","\u002Fdocs\u002Fcore\u002Fusers-and-access\u002Fapi-keys","docs\u002F1.core\u002F5.users-and-access\u002F3.api-keys",{"title":213,"icon":6,"path":214,"stem":215,"children":216},"Customization","\u002Fdocs\u002Fcore\u002Fcustomization","docs\u002F1.core\u002F6.customization\u002Findex",[217,218,222,226,230,234,238],{"title":50,"path":214,"stem":215},{"title":219,"path":220,"stem":221},"Admin","\u002Fdocs\u002Fcore\u002Fcustomization\u002Fadmin","docs\u002F1.core\u002F6.customization\u002F1.admin",{"title":223,"path":224,"stem":225},"Custom Fields","\u002Fdocs\u002Fcore\u002Fcustomization\u002Fcustom-fields","docs\u002F1.core\u002F6.customization\u002F2.custom-fields",{"title":227,"path":228,"stem":229},"Custom Pages and Actions","\u002Fdocs\u002Fcore\u002Fcustomization\u002Fcustom-pages-and-actions","docs\u002F1.core\u002F6.customization\u002F3.custom-pages-and-actions",{"title":231,"path":232,"stem":233},"Styles and UI Libraries","\u002Fdocs\u002Fcore\u002Fcustomization\u002Fstyles-and-ui-libraries","docs\u002F1.core\u002F6.customization\u002F4.styles-and-ui-libraries",{"title":235,"path":236,"stem":237},"Rich Text Extensions","\u002Fdocs\u002Fcore\u002Fcustomization\u002Frich-text-extensions","docs\u002F1.core\u002F6.customization\u002F5.rich-text-extensions",{"title":239,"path":240,"stem":241},"Plugins","\u002Fdocs\u002Fcore\u002Fcustomization\u002Fplugins","docs\u002F1.core\u002F6.customization\u002F6.plugins",{"title":243,"icon":6,"path":244,"stem":245,"children":246},"Operations","\u002Fdocs\u002Fcore\u002Foperations","docs\u002F1.core\u002F7.operations\u002Findex",[247,248,266,288,306,310,314],{"title":50,"path":244,"stem":245},{"title":249,"icon":6,"path":250,"stem":251,"children":252},"Email","\u002Fdocs\u002Fcore\u002Foperations\u002Femail","docs\u002F1.core\u002F7.operations\u002F1.email\u002Findex",[253,254,258,262],{"title":50,"path":250,"stem":251},{"title":255,"path":256,"stem":257},"SMTP","\u002Fdocs\u002Fcore\u002Foperations\u002Femail\u002Fsmtp","docs\u002F1.core\u002F7.operations\u002F1.email\u002F1.smtp",{"title":259,"path":260,"stem":261},"Cloudflare","\u002Fdocs\u002Fcore\u002Foperations\u002Femail\u002Fcloudflare","docs\u002F1.core\u002F7.operations\u002F1.email\u002F2.cloudflare",{"title":263,"path":264,"stem":265},"Custom adapter","\u002Fdocs\u002Fcore\u002Foperations\u002Femail\u002Fcustom-adapter","docs\u002F1.core\u002F7.operations\u002F1.email\u002F3.custom-adapter",{"title":267,"icon":6,"path":268,"stem":269,"children":270},"Jobs","\u002Fdocs\u002Fcore\u002Foperations\u002Fjobs","docs\u002F1.core\u002F7.operations\u002F2.jobs\u002Findex",[271,272,276,280,284],{"title":50,"path":268,"stem":269},{"title":273,"path":274,"stem":275},"Queue jobs","\u002Fdocs\u002Fcore\u002Foperations\u002Fjobs\u002Fqueue-jobs","docs\u002F1.core\u002F7.operations\u002F2.jobs\u002F1.queue-jobs",{"title":277,"path":278,"stem":279},"Recurring jobs","\u002Fdocs\u002Fcore\u002Foperations\u002Fjobs\u002Frecurring-jobs","docs\u002F1.core\u002F7.operations\u002F2.jobs\u002F2.recurring-jobs",{"title":281,"path":282,"stem":283},"The clock","\u002Fdocs\u002Fcore\u002Foperations\u002Fjobs\u002Fclock","docs\u002F1.core\u002F7.operations\u002F2.jobs\u002F3.clock",{"title":285,"path":286,"stem":287},"Manage jobs","\u002Fdocs\u002Fcore\u002Foperations\u002Fjobs\u002Fmanage-jobs","docs\u002F1.core\u002F7.operations\u002F2.jobs\u002F4.manage-jobs",{"title":289,"icon":6,"path":290,"stem":291,"children":292},"Webhooks","\u002Fdocs\u002Fcore\u002Foperations\u002Fwebhooks","docs\u002F1.core\u002F7.operations\u002F3.webhooks\u002Findex",[293,294,298,302],{"title":50,"path":290,"stem":291},{"title":295,"path":296,"stem":297},"Send webhooks","\u002Fdocs\u002Fcore\u002Foperations\u002Fwebhooks\u002Fsend-webhooks","docs\u002F1.core\u002F7.operations\u002F3.webhooks\u002F1.send-webhooks",{"title":299,"path":300,"stem":301},"Receive webhooks","\u002Fdocs\u002Fcore\u002Foperations\u002Fwebhooks\u002Freceive-webhooks","docs\u002F1.core\u002F7.operations\u002F3.webhooks\u002F2.receive-webhooks",{"title":303,"path":304,"stem":305},"Rebuild on publish","\u002Fdocs\u002Fcore\u002Foperations\u002Fwebhooks\u002Frebuild-on-publish","docs\u002F1.core\u002F7.operations\u002F3.webhooks\u002F3.rebuild-on-publish",{"title":307,"path":308,"stem":309},"Backup and Restore","\u002Fdocs\u002Fcore\u002Foperations\u002Fbackup-and-restore","docs\u002F1.core\u002F7.operations\u002F4.backup-and-restore",{"title":311,"path":312,"stem":313},"Lifecycle Hooks","\u002Fdocs\u002Fcore\u002Foperations\u002Flifecycle-hooks","docs\u002F1.core\u002F7.operations\u002F5.lifecycle-hooks",{"title":315,"path":316,"stem":317},"Upgrades and Schema Changes","\u002Fdocs\u002Fcore\u002Foperations\u002Fupgrades-and-schema-changes","docs\u002F1.core\u002F7.operations\u002F6.upgrades-and-schema-changes",{"title":319,"icon":6,"path":320,"stem":321,"children":322,"page":6},"Reference","\u002Fdocs\u002Fcore\u002Freference","docs\u002F1.core\u002F8.reference",[323,326,344,348],{"title":28,"path":324,"stem":325},"\u002Fdocs\u002Fcore\u002Freference\u002Fconfiguration","docs\u002F1.core\u002F8.reference\u002F1.configuration",{"title":327,"icon":6,"path":328,"stem":329,"children":330},"API","\u002Fdocs\u002Fcore\u002Freference\u002Fapi","docs\u002F1.core\u002F8.reference\u002F2.api\u002Findex",[331,332,336,340],{"title":50,"path":328,"stem":329},{"title":333,"path":334,"stem":335},"Local API","\u002Fdocs\u002Fcore\u002Freference\u002Fapi\u002Flocal-api","docs\u002F1.core\u002F8.reference\u002F2.api\u002F1.local-api",{"title":337,"path":338,"stem":339},"Client","\u002Fdocs\u002Fcore\u002Freference\u002Fapi\u002Fclient","docs\u002F1.core\u002F8.reference\u002F2.api\u002F2.client",{"title":341,"path":342,"stem":343},"HTTP routes","\u002Fdocs\u002Fcore\u002Freference\u002Fapi\u002Fhttp-routes","docs\u002F1.core\u002F8.reference\u002F2.api\u002F3.http-routes",{"title":345,"path":346,"stem":347},"Errors and types","\u002Fdocs\u002Fcore\u002Freference\u002Ferrors-and-types","docs\u002F1.core\u002F8.reference\u002F3.errors-and-types",{"title":349,"path":350,"stem":351},"Package exports","\u002Fdocs\u002Fcore\u002Freference\u002Fpackage-exports","docs\u002F1.core\u002F8.reference\u002F4.package-exports",{"title":353,"icon":6,"path":354,"stem":355,"children":356,"page":6},"Guide","\u002Fdocs\u002Fguide","docs\u002F2.guide",[357,383,400,417],{"title":358,"icon":6,"path":359,"stem":360,"children":361},"Frameworks","\u002Fdocs\u002Fguide\u002Fframeworks","docs\u002F2.guide\u002F1.frameworks\u002Findex",[362,363,367,371,375,379],{"title":50,"path":359,"stem":360},{"title":364,"path":365,"stem":366},"Astro","\u002Fdocs\u002Fguide\u002Fframeworks\u002Fastro","docs\u002F2.guide\u002F1.frameworks\u002F1.astro",{"title":368,"path":369,"stem":370},"Nuxt","\u002Fdocs\u002Fguide\u002Fframeworks\u002Fnuxt","docs\u002F2.guide\u002F1.frameworks\u002F2.nuxt",{"title":372,"path":373,"stem":374},"TanStack Start","\u002Fdocs\u002Fguide\u002Fframeworks\u002Ftanstack-start","docs\u002F2.guide\u002F1.frameworks\u002F3.tanstack-start",{"title":376,"path":377,"stem":378},"Standalone","\u002Fdocs\u002Fguide\u002Fframeworks\u002Fstandalone","docs\u002F2.guide\u002F1.frameworks\u002F4.standalone",{"title":380,"path":381,"stem":382},"Other Frameworks","\u002Fdocs\u002Fguide\u002Fframeworks\u002Fother-frameworks","docs\u002F2.guide\u002F1.frameworks\u002F5.other-frameworks",{"title":384,"icon":6,"path":385,"stem":386,"children":387},"Deployment","\u002Fdocs\u002Fguide\u002Fdeployment","docs\u002F2.guide\u002F2.deployment\u002Findex",[388,389,393,397],{"title":50,"path":385,"stem":386},{"title":390,"path":391,"stem":392},"Node","\u002Fdocs\u002Fguide\u002Fdeployment\u002Fnode","docs\u002F2.guide\u002F2.deployment\u002F1.node",{"title":394,"path":395,"stem":396},"Vercel","\u002Fdocs\u002Fguide\u002Fdeployment\u002Fvercel","docs\u002F2.guide\u002F2.deployment\u002F2.vercel",{"title":259,"path":398,"stem":399},"\u002Fdocs\u002Fguide\u002Fdeployment\u002Fcloudflare","docs\u002F2.guide\u002F2.deployment\u002F3.cloudflare",{"title":401,"icon":6,"path":402,"stem":403,"children":404,"page":6},"Databases and Storage","\u002Fdocs\u002Fguide\u002Fdatabases-and-storage","docs\u002F2.guide\u002F3.databases-and-storage",[405,409,413],{"title":406,"path":407,"stem":408},"Databases","\u002Fdocs\u002Fguide\u002Fdatabases-and-storage\u002Fdatabases","docs\u002F2.guide\u002F3.databases-and-storage\u002F1.databases",{"title":410,"path":411,"stem":412},"Media Storage","\u002Fdocs\u002Fguide\u002Fdatabases-and-storage\u002Fmedia-storage","docs\u002F2.guide\u002F3.databases-and-storage\u002F2.media-storage",{"title":414,"path":415,"stem":416},"Image Providers","\u002Fdocs\u002Fguide\u002Fdatabases-and-storage\u002Fimage-providers","docs\u002F2.guide\u002F3.databases-and-storage\u002F3.image-providers",{"title":418,"icon":6,"path":419,"stem":420,"children":421,"page":6},"Recipes","\u002Fdocs\u002Fguide\u002Frecipes","docs\u002F2.guide\u002F4.recipes",[422,426,430,434,438,442],{"title":423,"path":424,"stem":425},"Seed Content","\u002Fdocs\u002Fguide\u002Frecipes\u002Fseed-content","docs\u002F2.guide\u002F4.recipes\u002F1.seed-content",{"title":427,"path":428,"stem":429},"Tracking and Consent","\u002Fdocs\u002Fguide\u002Frecipes\u002Ftracking-and-consent","docs\u002F2.guide\u002F4.recipes\u002F2.tracking-and-consent",{"title":431,"path":432,"stem":433},"Build a Custom Field","\u002Fdocs\u002Fguide\u002Frecipes\u002Fbuild-a-custom-field","docs\u002F2.guide\u002F4.recipes\u002F3.build-a-custom-field",{"title":435,"path":436,"stem":437},"Write a Plugin","\u002Fdocs\u002Fguide\u002Frecipes\u002Fwrite-a-plugin","docs\u002F2.guide\u002F4.recipes\u002F4.write-a-plugin",{"title":439,"path":440,"stem":441},"Build a Headless Site with Next.js","\u002Fdocs\u002Fguide\u002Frecipes\u002Fbuild-a-headless-site-with-nextjs","docs\u002F2.guide\u002F4.recipes\u002F5.build-a-headless-site-with-nextjs",{"title":443,"path":444,"stem":445},"Troubleshooting","\u002Fdocs\u002Fguide\u002Frecipes\u002Ftroubleshooting","docs\u002F2.guide\u002F4.recipes\u002F6.troubleshooting",{"title":447,"icon":6,"path":448,"stem":449,"children":450,"page":6},"CLI","\u002Fdocs\u002Fcli","docs\u002F3.cli",[451,454,458,462,466,470,474],{"title":50,"path":452,"stem":453},"\u002Fdocs\u002Fcli\u002Foverview","docs\u002F3.cli\u002F1.overview",{"title":455,"path":456,"stem":457},"create-tenoncms","\u002Fdocs\u002Fcli\u002Fcreate-tenoncms","docs\u002F3.cli\u002F2.create-tenoncms",{"title":459,"path":460,"stem":461},"tenon backup","\u002Fdocs\u002Fcli\u002Fbackup","docs\u002F3.cli\u002F3.backup",{"title":463,"path":464,"stem":465},"tenon users","\u002Fdocs\u002Fcli\u002Fusers","docs\u002F3.cli\u002F4.users",{"title":467,"path":468,"stem":469},"tenon media","\u002Fdocs\u002Fcli\u002Fmedia","docs\u002F3.cli\u002F5.media",{"title":471,"path":472,"stem":473},"tenon upgrade","\u002Fdocs\u002Fcli\u002Fupgrade","docs\u002F3.cli\u002F6.upgrade",{"title":475,"path":476,"stem":477},"tenon login","\u002Fdocs\u002Fcli\u002Flogin","docs\u002F3.cli\u002F7.login",{"id":479,"title":56,"body":480,"description":2977,"extension":2978,"links":2979,"meta":2980,"navigation":1259,"path":57,"seo":2981,"stem":58,"__hash__":2982},"docs\u002Fdocs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F02.blocks.md",{"type":481,"value":482,"toc":2967},"minimark",[483,492,495,500,506,880,890,1074,1080,1163,1168,1174,1577,1583,2131,2139,2143,2150,2288,2329,2333,2351,2364,2655,2677,2687,2691,2700,2829,2833,2864,2868,2914,2917,2960,2963],[484,485,486,487,491],"p",{},"A ",[488,489,490],"code",{},"blocks"," field is a list where each item has its own type, like a hero, a text or a gallery. Editors usually pick a block for page building or component stacking.",[493,494],"field-preview",{"name":490},[496,497,499],"h2",{"id":498},"example","Example",[484,501,502,503,505],{},"Each key in ",[488,504,490],{}," is one block type:",[507,508,514],"pre",{"className":509,"code":510,"filename":511,"language":512,"meta":513,"style":513},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","export const pages = defineCollection({\n  fields: {\n    title: { type: \"text\", required: true },\n    content: {\n      type: \"blocks\",\n      blocks: {\n        hero: {\n          label: \"Hero\",\n          description: \"Big title with an image\",\n          icon: \"image\",\n          fields: {\n            title: { type: \"text\", required: true },\n            image: { type: \"image\" },\n          },\n        },\n        text: {\n          label: \"Text\",\n          icon: \"text\",\n          fields: { body: { type: \"richtext\" } },\n        },\n      },\n    },\n  },\n});\n","cms\u002Fcollections\u002Fpages.ts","ts","",[488,515,516,547,560,601,611,628,638,648,665,682,699,709,739,761,767,773,783,798,813,845,850,856,862,868],{"__ignoreMap":513},[517,518,521,525,529,533,537,541,544],"span",{"class":519,"line":520},"line",1,[517,522,524],{"class":523},"s7zQu","export",[517,526,528],{"class":527},"spNyl"," const",[517,530,532],{"class":531},"sTEyZ"," pages ",[517,534,536],{"class":535},"sMK4o","=",[517,538,540],{"class":539},"s2Zo4"," defineCollection",[517,542,543],{"class":531},"(",[517,545,546],{"class":535},"{\n",[517,548,550,554,557],{"class":519,"line":549},2,[517,551,553],{"class":552},"swJcz","  fields",[517,555,556],{"class":535},":",[517,558,559],{"class":535}," {\n",[517,561,563,566,568,571,574,576,579,583,586,589,592,594,598],{"class":519,"line":562},3,[517,564,565],{"class":552},"    title",[517,567,556],{"class":535},[517,569,570],{"class":535}," {",[517,572,573],{"class":552}," type",[517,575,556],{"class":535},[517,577,578],{"class":535}," \"",[517,580,582],{"class":581},"sfazB","text",[517,584,585],{"class":535},"\"",[517,587,588],{"class":535},",",[517,590,591],{"class":552}," required",[517,593,556],{"class":535},[517,595,597],{"class":596},"sfNiH"," true",[517,599,600],{"class":535}," },\n",[517,602,604,607,609],{"class":519,"line":603},4,[517,605,606],{"class":552},"    content",[517,608,556],{"class":535},[517,610,559],{"class":535},[517,612,614,617,619,621,623,625],{"class":519,"line":613},5,[517,615,616],{"class":552},"      type",[517,618,556],{"class":535},[517,620,578],{"class":535},[517,622,490],{"class":581},[517,624,585],{"class":535},[517,626,627],{"class":535},",\n",[517,629,631,634,636],{"class":519,"line":630},6,[517,632,633],{"class":552},"      blocks",[517,635,556],{"class":535},[517,637,559],{"class":535},[517,639,641,644,646],{"class":519,"line":640},7,[517,642,643],{"class":552},"        hero",[517,645,556],{"class":535},[517,647,559],{"class":535},[517,649,651,654,656,658,661,663],{"class":519,"line":650},8,[517,652,653],{"class":552},"          label",[517,655,556],{"class":535},[517,657,578],{"class":535},[517,659,660],{"class":581},"Hero",[517,662,585],{"class":535},[517,664,627],{"class":535},[517,666,668,671,673,675,678,680],{"class":519,"line":667},9,[517,669,670],{"class":552},"          description",[517,672,556],{"class":535},[517,674,578],{"class":535},[517,676,677],{"class":581},"Big title with an image",[517,679,585],{"class":535},[517,681,627],{"class":535},[517,683,685,688,690,692,695,697],{"class":519,"line":684},10,[517,686,687],{"class":552},"          icon",[517,689,556],{"class":535},[517,691,578],{"class":535},[517,693,694],{"class":581},"image",[517,696,585],{"class":535},[517,698,627],{"class":535},[517,700,702,705,707],{"class":519,"line":701},11,[517,703,704],{"class":552},"          fields",[517,706,556],{"class":535},[517,708,559],{"class":535},[517,710,712,715,717,719,721,723,725,727,729,731,733,735,737],{"class":519,"line":711},12,[517,713,714],{"class":552},"            title",[517,716,556],{"class":535},[517,718,570],{"class":535},[517,720,573],{"class":552},[517,722,556],{"class":535},[517,724,578],{"class":535},[517,726,582],{"class":581},[517,728,585],{"class":535},[517,730,588],{"class":535},[517,732,591],{"class":552},[517,734,556],{"class":535},[517,736,597],{"class":596},[517,738,600],{"class":535},[517,740,742,745,747,749,751,753,755,757,759],{"class":519,"line":741},13,[517,743,744],{"class":552},"            image",[517,746,556],{"class":535},[517,748,570],{"class":535},[517,750,573],{"class":552},[517,752,556],{"class":535},[517,754,578],{"class":535},[517,756,694],{"class":581},[517,758,585],{"class":535},[517,760,600],{"class":535},[517,762,764],{"class":519,"line":763},14,[517,765,766],{"class":535},"          },\n",[517,768,770],{"class":519,"line":769},15,[517,771,772],{"class":535},"        },\n",[517,774,776,779,781],{"class":519,"line":775},16,[517,777,778],{"class":552},"        text",[517,780,556],{"class":535},[517,782,559],{"class":535},[517,784,786,788,790,792,794,796],{"class":519,"line":785},17,[517,787,653],{"class":552},[517,789,556],{"class":535},[517,791,578],{"class":535},[517,793,108],{"class":581},[517,795,585],{"class":535},[517,797,627],{"class":535},[517,799,801,803,805,807,809,811],{"class":519,"line":800},18,[517,802,687],{"class":552},[517,804,556],{"class":535},[517,806,578],{"class":535},[517,808,582],{"class":581},[517,810,585],{"class":535},[517,812,627],{"class":535},[517,814,816,818,820,822,825,827,829,831,833,835,838,840,843],{"class":519,"line":815},19,[517,817,704],{"class":552},[517,819,556],{"class":535},[517,821,570],{"class":535},[517,823,824],{"class":552}," body",[517,826,556],{"class":535},[517,828,570],{"class":535},[517,830,573],{"class":552},[517,832,556],{"class":535},[517,834,578],{"class":535},[517,836,837],{"class":581},"richtext",[517,839,585],{"class":535},[517,841,842],{"class":535}," }",[517,844,600],{"class":535},[517,846,848],{"class":519,"line":847},20,[517,849,772],{"class":535},[517,851,853],{"class":519,"line":852},21,[517,854,855],{"class":535},"      },\n",[517,857,859],{"class":519,"line":858},22,[517,860,861],{"class":535},"    },\n",[517,863,865],{"class":519,"line":864},23,[517,866,867],{"class":535},"  },\n",[517,869,871,874,877],{"class":519,"line":870},24,[517,872,873],{"class":535},"}",[517,875,876],{"class":531},")",[517,878,879],{"class":535},";\n",[484,881,882,883,886,887,556],{},"An item stores its type in ",[488,884,885],{},"blockType",", next to its stable ",[488,888,889],{},"id",[507,891,895],{"className":892,"code":893,"language":894,"meta":513,"style":513},"language-json shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\"content\": [\n  { \"id\": \"a1\", \"blockType\": \"hero\", \"title\": \"Welcome\", \"image\": \"m1\" },\n  { \"id\": \"b2\", \"blockType\": \"text\", \"body\": { \"type\": \"doc\", \"content\": [] } }\n]\n","json",[488,896,897,912,986,1069],{"__ignoreMap":513},[517,898,899,901,904,906,909],{"class":519,"line":520},[517,900,585],{"class":535},[517,902,903],{"class":581},"content",[517,905,585],{"class":535},[517,907,908],{"class":531},": ",[517,910,911],{"class":535},"[\n",[517,913,914,917,919,921,923,925,927,930,932,934,936,938,940,942,944,947,949,951,953,956,958,960,962,965,967,969,971,973,975,977,979,982,984],{"class":519,"line":549},[517,915,916],{"class":535},"  {",[517,918,578],{"class":535},[517,920,889],{"class":527},[517,922,585],{"class":535},[517,924,556],{"class":535},[517,926,578],{"class":535},[517,928,929],{"class":581},"a1",[517,931,585],{"class":535},[517,933,588],{"class":535},[517,935,578],{"class":535},[517,937,885],{"class":527},[517,939,585],{"class":535},[517,941,556],{"class":535},[517,943,578],{"class":535},[517,945,946],{"class":581},"hero",[517,948,585],{"class":535},[517,950,588],{"class":535},[517,952,578],{"class":535},[517,954,955],{"class":527},"title",[517,957,585],{"class":535},[517,959,556],{"class":535},[517,961,578],{"class":535},[517,963,964],{"class":581},"Welcome",[517,966,585],{"class":535},[517,968,588],{"class":535},[517,970,578],{"class":535},[517,972,694],{"class":527},[517,974,585],{"class":535},[517,976,556],{"class":535},[517,978,578],{"class":535},[517,980,981],{"class":581},"m1",[517,983,585],{"class":535},[517,985,600],{"class":535},[517,987,988,990,992,994,996,998,1000,1003,1005,1007,1009,1011,1013,1015,1017,1019,1021,1023,1025,1028,1030,1032,1034,1036,1040,1042,1044,1046,1049,1051,1053,1055,1057,1059,1061,1064,1066],{"class":519,"line":562},[517,989,916],{"class":535},[517,991,578],{"class":535},[517,993,889],{"class":527},[517,995,585],{"class":535},[517,997,556],{"class":535},[517,999,578],{"class":535},[517,1001,1002],{"class":581},"b2",[517,1004,585],{"class":535},[517,1006,588],{"class":535},[517,1008,578],{"class":535},[517,1010,885],{"class":527},[517,1012,585],{"class":535},[517,1014,556],{"class":535},[517,1016,578],{"class":535},[517,1018,582],{"class":581},[517,1020,585],{"class":535},[517,1022,588],{"class":535},[517,1024,578],{"class":535},[517,1026,1027],{"class":527},"body",[517,1029,585],{"class":535},[517,1031,556],{"class":535},[517,1033,570],{"class":535},[517,1035,578],{"class":535},[517,1037,1039],{"class":1038},"sBMFI","type",[517,1041,585],{"class":535},[517,1043,556],{"class":535},[517,1045,578],{"class":535},[517,1047,1048],{"class":581},"doc",[517,1050,585],{"class":535},[517,1052,588],{"class":535},[517,1054,578],{"class":535},[517,1056,903],{"class":1038},[517,1058,585],{"class":535},[517,1060,556],{"class":535},[517,1062,1063],{"class":535}," []",[517,1065,842],{"class":535},[517,1067,1068],{"class":535}," }\n",[517,1070,1071],{"class":519,"line":603},[517,1072,1073],{"class":535},"]\n",[484,1075,1076,1077,1079],{},"The type of a read is a union of the blocks. Check ",[488,1078,885],{},", and TypeScript knows the fields:",[507,1081,1083],{"className":509,"code":1082,"language":512,"meta":513,"style":513},"for (const block of page.content ?? []) {\n  if (block.blockType === \"hero\") block.title; \u002F\u002F string\n}\n",[488,1084,1085,1119,1158],{"__ignoreMap":513},[517,1086,1087,1090,1093,1096,1099,1102,1105,1108,1111,1114,1117],{"class":519,"line":520},[517,1088,1089],{"class":523},"for",[517,1091,1092],{"class":531}," (",[517,1094,1095],{"class":527},"const",[517,1097,1098],{"class":531}," block ",[517,1100,1101],{"class":535},"of",[517,1103,1104],{"class":531}," page",[517,1106,1107],{"class":535},".",[517,1109,1110],{"class":531},"content ",[517,1112,1113],{"class":535},"??",[517,1115,1116],{"class":531}," []) ",[517,1118,546],{"class":535},[517,1120,1121,1124,1126,1129,1131,1133,1136,1138,1140,1142,1145,1147,1149,1151,1154],{"class":519,"line":549},[517,1122,1123],{"class":523},"  if",[517,1125,1092],{"class":552},[517,1127,1128],{"class":531},"block",[517,1130,1107],{"class":535},[517,1132,885],{"class":531},[517,1134,1135],{"class":535}," ===",[517,1137,578],{"class":535},[517,1139,946],{"class":581},[517,1141,585],{"class":535},[517,1143,1144],{"class":552},") ",[517,1146,1128],{"class":531},[517,1148,1107],{"class":535},[517,1150,955],{"class":531},[517,1152,1153],{"class":535},";",[517,1155,1157],{"class":1156},"sHwdD"," \u002F\u002F string\n",[517,1159,1160],{"class":519,"line":562},[517,1161,1162],{"class":535},"}\n",[1164,1165,1167],"h3",{"id":1166},"render-it","Render it",[484,1169,1170,1171,1173],{},"The ",[488,1172,56],{}," component renders each item with the component of its type:",[1175,1176,1178,1310,1463],"code-group",{"sync":1177},"framework",[507,1179,1183],{"className":1180,"code":1181,"filename":364,"language":1182,"meta":513,"style":513},"language-astro shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","---\nimport { Blocks } from \"tenoncms\u002Fastro\u002Fcomponents\";\nimport Hero from \"..\u002Fblocks\u002FHero.astro\";\nimport Text from \"..\u002Fblocks\u002FText.astro\";\n---\n\n\u003CBlocks blocks={page.content} components={{ hero: Hero, text: Text }} \u002F>\n","astro",[488,1184,1185,1190,1214,1233,1251,1255,1261],{"__ignoreMap":513},[517,1186,1187],{"class":519,"line":520},[517,1188,1189],{"class":1156},"---\n",[517,1191,1192,1195,1197,1200,1202,1205,1207,1210,1212],{"class":519,"line":549},[517,1193,1194],{"class":523},"import",[517,1196,570],{"class":535},[517,1198,1199],{"class":531}," Blocks",[517,1201,842],{"class":535},[517,1203,1204],{"class":523}," from",[517,1206,578],{"class":535},[517,1208,1209],{"class":581},"tenoncms\u002Fastro\u002Fcomponents",[517,1211,585],{"class":535},[517,1213,879],{"class":535},[517,1215,1216,1218,1221,1224,1226,1229,1231],{"class":519,"line":562},[517,1217,1194],{"class":523},[517,1219,1220],{"class":531}," Hero ",[517,1222,1223],{"class":523},"from",[517,1225,578],{"class":535},[517,1227,1228],{"class":581},"..\u002Fblocks\u002FHero.astro",[517,1230,585],{"class":535},[517,1232,879],{"class":535},[517,1234,1235,1237,1240,1242,1244,1247,1249],{"class":519,"line":603},[517,1236,1194],{"class":523},[517,1238,1239],{"class":531}," Text ",[517,1241,1223],{"class":523},[517,1243,578],{"class":535},[517,1245,1246],{"class":581},"..\u002Fblocks\u002FText.astro",[517,1248,585],{"class":535},[517,1250,879],{"class":535},[517,1252,1253],{"class":519,"line":613},[517,1254,1189],{"class":1156},[517,1256,1257],{"class":519,"line":630},[517,1258,1260],{"emptyLinePlaceholder":1259},true,"\n",[517,1262,1263,1266,1268,1271,1274,1277,1279,1281,1284,1287,1290,1293,1295,1298,1300,1303,1305,1307],{"class":519,"line":640},[517,1264,1265],{"class":535},"\u003C",[517,1267,56],{"class":1038},[517,1269,1270],{"class":527}," blocks",[517,1272,1273],{"class":535},"={",[517,1275,1276],{"class":531},"page",[517,1278,1107],{"class":535},[517,1280,903],{"class":531},[517,1282,1283],{"class":535},"} ",[517,1285,1286],{"class":527},"components",[517,1288,1289],{"class":535},"={{",[517,1291,1292],{"class":552}," hero",[517,1294,556],{"class":535},[517,1296,1297],{"class":531}," Hero",[517,1299,588],{"class":535},[517,1301,1302],{"class":552}," text",[517,1304,556],{"class":535},[517,1306,1239],{"class":531},[517,1308,1309],{"class":535},"}} \u002F>\n",[507,1311,1315],{"className":1312,"code":1313,"filename":368,"language":1314,"meta":513,"style":513},"language-vue shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u003Cscript setup lang=\"ts\">\nimport Hero from \"~\u002Fcomponents\u002Fblocks\u002FHero.vue\";\nimport Text from \"~\u002Fcomponents\u002Fblocks\u002FText.vue\";\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CTenonBlocks :blocks=\"page.content\" :components=\"{ hero: Hero, text: Text }\" \u002F>\n\u003C\u002Ftemplate>\n","vue",[488,1316,1317,1341,1358,1375,1384,1388,1397,1455],{"__ignoreMap":513},[517,1318,1319,1321,1324,1327,1330,1332,1334,1336,1338],{"class":519,"line":520},[517,1320,1265],{"class":535},[517,1322,1323],{"class":552},"script",[517,1325,1326],{"class":527}," setup",[517,1328,1329],{"class":527}," lang",[517,1331,536],{"class":535},[517,1333,585],{"class":535},[517,1335,512],{"class":581},[517,1337,585],{"class":535},[517,1339,1340],{"class":535},">\n",[517,1342,1343,1345,1347,1349,1351,1354,1356],{"class":519,"line":549},[517,1344,1194],{"class":523},[517,1346,1220],{"class":531},[517,1348,1223],{"class":523},[517,1350,578],{"class":535},[517,1352,1353],{"class":581},"~\u002Fcomponents\u002Fblocks\u002FHero.vue",[517,1355,585],{"class":535},[517,1357,879],{"class":535},[517,1359,1360,1362,1364,1366,1368,1371,1373],{"class":519,"line":562},[517,1361,1194],{"class":523},[517,1363,1239],{"class":531},[517,1365,1223],{"class":523},[517,1367,578],{"class":535},[517,1369,1370],{"class":581},"~\u002Fcomponents\u002Fblocks\u002FText.vue",[517,1372,585],{"class":535},[517,1374,879],{"class":535},[517,1376,1377,1380,1382],{"class":519,"line":603},[517,1378,1379],{"class":535},"\u003C\u002F",[517,1381,1323],{"class":552},[517,1383,1340],{"class":535},[517,1385,1386],{"class":519,"line":613},[517,1387,1260],{"emptyLinePlaceholder":1259},[517,1389,1390,1392,1395],{"class":519,"line":630},[517,1391,1265],{"class":535},[517,1393,1394],{"class":552},"template",[517,1396,1340],{"class":535},[517,1398,1399,1402,1405,1408,1410,1412,1414,1416,1418,1420,1422,1424,1426,1428,1430,1433,1435,1437,1439,1442,1444,1446,1448,1450,1452],{"class":519,"line":640},[517,1400,1401],{"class":535},"  \u003C",[517,1403,1404],{"class":552},"TenonBlocks",[517,1406,1407],{"class":535}," :",[517,1409,490],{"class":527},[517,1411,536],{"class":535},[517,1413,585],{"class":535},[517,1415,1276],{"class":531},[517,1417,1107],{"class":535},[517,1419,903],{"class":531},[517,1421,585],{"class":535},[517,1423,1407],{"class":535},[517,1425,1286],{"class":527},[517,1427,536],{"class":535},[517,1429,585],{"class":535},[517,1431,1432],{"class":535},"{ ",[517,1434,946],{"class":552},[517,1436,908],{"class":535},[517,1438,660],{"class":531},[517,1440,1441],{"class":535},", ",[517,1443,582],{"class":552},[517,1445,908],{"class":535},[517,1447,108],{"class":531},[517,1449,842],{"class":535},[517,1451,585],{"class":535},[517,1453,1454],{"class":535}," \u002F>\n",[517,1456,1457,1459,1461],{"class":519,"line":650},[517,1458,1379],{"class":535},[517,1460,1394],{"class":552},[517,1462,1340],{"class":535},[507,1464,1468],{"className":1465,"code":1466,"filename":372,"language":1467,"meta":513,"style":513},"language-tsx shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { Blocks } from \"tenoncms\u002Freact\";\nimport { Hero } from \"..\u002Fblocks\u002FHero\";\nimport { Text } from \"..\u002Fblocks\u002FText\";\n\n\u003CBlocks blocks={page.content} components={{ hero: Hero, text: Text }} \u002F>;\n","tsx",[488,1469,1470,1491,1512,1534,1538],{"__ignoreMap":513},[517,1471,1472,1474,1476,1478,1480,1482,1484,1487,1489],{"class":519,"line":520},[517,1473,1194],{"class":523},[517,1475,570],{"class":535},[517,1477,1199],{"class":531},[517,1479,842],{"class":535},[517,1481,1204],{"class":523},[517,1483,578],{"class":535},[517,1485,1486],{"class":581},"tenoncms\u002Freact",[517,1488,585],{"class":535},[517,1490,879],{"class":535},[517,1492,1493,1495,1497,1499,1501,1503,1505,1508,1510],{"class":519,"line":549},[517,1494,1194],{"class":523},[517,1496,570],{"class":535},[517,1498,1297],{"class":531},[517,1500,842],{"class":535},[517,1502,1204],{"class":523},[517,1504,578],{"class":535},[517,1506,1507],{"class":581},"..\u002Fblocks\u002FHero",[517,1509,585],{"class":535},[517,1511,879],{"class":535},[517,1513,1514,1516,1518,1521,1523,1525,1527,1530,1532],{"class":519,"line":562},[517,1515,1194],{"class":523},[517,1517,570],{"class":535},[517,1519,1520],{"class":531}," Text",[517,1522,842],{"class":535},[517,1524,1204],{"class":523},[517,1526,578],{"class":535},[517,1528,1529],{"class":581},"..\u002Fblocks\u002FText",[517,1531,585],{"class":535},[517,1533,879],{"class":535},[517,1535,1536],{"class":519,"line":603},[517,1537,1260],{"emptyLinePlaceholder":1259},[517,1539,1540,1542,1544,1546,1548,1550,1552,1554,1556,1558,1560,1562,1564,1566,1568,1570,1572,1574],{"class":519,"line":613},[517,1541,1265],{"class":535},[517,1543,56],{"class":1038},[517,1545,1270],{"class":527},[517,1547,1273],{"class":535},[517,1549,1276],{"class":531},[517,1551,1107],{"class":535},[517,1553,903],{"class":531},[517,1555,1283],{"class":535},[517,1557,1286],{"class":527},[517,1559,1289],{"class":535},[517,1561,1292],{"class":552},[517,1563,556],{"class":535},[517,1565,1297],{"class":531},[517,1567,588],{"class":535},[517,1569,1302],{"class":552},[517,1571,556],{"class":535},[517,1573,1239],{"class":531},[517,1575,1576],{"class":535},"}} \u002F>;\n",[484,1578,1579,1580,1582],{},"Each component gets the item as its ",[488,1581,1128],{}," prop:",[1175,1584,1585,1748,1973],{"sync":1177},[507,1586,1588],{"className":1180,"code":1587,"filename":364,"language":1182,"meta":513,"style":513},"---\nimport { Image } from \"tenoncms\u002Fastro\u002Fcomponents\";\n\nconst { block } = Astro.props;\n---\n\n\u003Csection class=\"hero\">\n  \u003Ch1>{block.title}\u003C\u002Fh1>\n  {block.image && \u003CImage image={block.image} sizes=\"100vw\" \u002F>}\n\u003C\u002Fsection>\n",[488,1589,1590,1594,1615,1619,1642,1646,1650,1670,1693,1740],{"__ignoreMap":513},[517,1591,1592],{"class":519,"line":520},[517,1593,1189],{"class":1156},[517,1595,1596,1598,1600,1603,1605,1607,1609,1611,1613],{"class":519,"line":549},[517,1597,1194],{"class":523},[517,1599,570],{"class":535},[517,1601,1602],{"class":531}," Image",[517,1604,842],{"class":535},[517,1606,1204],{"class":523},[517,1608,578],{"class":535},[517,1610,1209],{"class":581},[517,1612,585],{"class":535},[517,1614,879],{"class":535},[517,1616,1617],{"class":519,"line":562},[517,1618,1260],{"emptyLinePlaceholder":1259},[517,1620,1621,1623,1625,1627,1629,1632,1635,1637,1640],{"class":519,"line":603},[517,1622,1095],{"class":527},[517,1624,570],{"class":535},[517,1626,1098],{"class":531},[517,1628,873],{"class":535},[517,1630,1631],{"class":535}," =",[517,1633,1634],{"class":531}," Astro",[517,1636,1107],{"class":535},[517,1638,1639],{"class":531},"props",[517,1641,879],{"class":535},[517,1643,1644],{"class":519,"line":613},[517,1645,1189],{"class":1156},[517,1647,1648],{"class":519,"line":630},[517,1649,1260],{"emptyLinePlaceholder":1259},[517,1651,1652,1654,1657,1660,1662,1664,1666,1668],{"class":519,"line":640},[517,1653,1265],{"class":535},[517,1655,1656],{"class":552},"section",[517,1658,1659],{"class":527}," class",[517,1661,536],{"class":535},[517,1663,585],{"class":535},[517,1665,946],{"class":581},[517,1667,585],{"class":535},[517,1669,1340],{"class":535},[517,1671,1672,1674,1677,1680,1682,1684,1686,1689,1691],{"class":519,"line":650},[517,1673,1401],{"class":535},[517,1675,1676],{"class":552},"h1",[517,1678,1679],{"class":535},">{",[517,1681,1128],{"class":531},[517,1683,1107],{"class":535},[517,1685,955],{"class":531},[517,1687,1688],{"class":535},"}\u003C\u002F",[517,1690,1676],{"class":552},[517,1692,1340],{"class":535},[517,1694,1695,1697,1699,1701,1704,1707,1710,1712,1715,1717,1719,1721,1723,1725,1728,1730,1732,1735,1737],{"class":519,"line":667},[517,1696,916],{"class":535},[517,1698,1128],{"class":531},[517,1700,1107],{"class":535},[517,1702,1703],{"class":531},"image ",[517,1705,1706],{"class":535},"&&",[517,1708,1709],{"class":535}," \u003C",[517,1711,76],{"class":1038},[517,1713,1714],{"class":527}," image",[517,1716,1273],{"class":535},[517,1718,1128],{"class":531},[517,1720,1107],{"class":535},[517,1722,694],{"class":531},[517,1724,1283],{"class":535},[517,1726,1727],{"class":527},"sizes",[517,1729,536],{"class":535},[517,1731,585],{"class":535},[517,1733,1734],{"class":581},"100vw",[517,1736,585],{"class":535},[517,1738,1739],{"class":535}," \u002F>}\n",[517,1741,1742,1744,1746],{"class":519,"line":684},[517,1743,1379],{"class":535},[517,1745,1656],{"class":552},[517,1747,1340],{"class":535},[507,1749,1751],{"className":1312,"code":1750,"filename":368,"language":1314,"meta":513,"style":513},"\u003Cscript setup lang=\"ts\">\nimport type { Image } from \"tenoncms\";\n\ndefineProps\u003C{ block: { title: string; image?: Image | null } }>();\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003Csection class=\"hero\">\n    \u003Ch1>{{ block.title }}\u003C\u002Fh1>\n    \u003CTenonImage v-if=\"block.image\" :image=\"block.image\" sizes=\"100vw\" \u002F>\n  \u003C\u002Fsection>\n\u003C\u002Ftemplate>\n",[488,1752,1753,1773,1796,1800,1848,1856,1860,1868,1886,1905,1956,1965],{"__ignoreMap":513},[517,1754,1755,1757,1759,1761,1763,1765,1767,1769,1771],{"class":519,"line":520},[517,1756,1265],{"class":535},[517,1758,1323],{"class":552},[517,1760,1326],{"class":527},[517,1762,1329],{"class":527},[517,1764,536],{"class":535},[517,1766,585],{"class":535},[517,1768,512],{"class":581},[517,1770,585],{"class":535},[517,1772,1340],{"class":535},[517,1774,1775,1777,1779,1781,1783,1785,1787,1789,1792,1794],{"class":519,"line":549},[517,1776,1194],{"class":523},[517,1778,573],{"class":523},[517,1780,570],{"class":535},[517,1782,1602],{"class":531},[517,1784,842],{"class":535},[517,1786,1204],{"class":523},[517,1788,578],{"class":535},[517,1790,1791],{"class":581},"tenoncms",[517,1793,585],{"class":535},[517,1795,879],{"class":535},[517,1797,1798],{"class":519,"line":562},[517,1799,1260],{"emptyLinePlaceholder":1259},[517,1801,1802,1805,1808,1811,1813,1815,1818,1820,1823,1825,1827,1830,1832,1835,1838,1840,1843,1846],{"class":519,"line":603},[517,1803,1804],{"class":539},"defineProps",[517,1806,1807],{"class":535},"\u003C{",[517,1809,1810],{"class":552}," block",[517,1812,556],{"class":535},[517,1814,570],{"class":535},[517,1816,1817],{"class":552}," title",[517,1819,556],{"class":535},[517,1821,1822],{"class":1038}," string",[517,1824,1153],{"class":535},[517,1826,1714],{"class":552},[517,1828,1829],{"class":535},"?:",[517,1831,1602],{"class":1038},[517,1833,1834],{"class":535}," |",[517,1836,1837],{"class":1038}," null",[517,1839,842],{"class":535},[517,1841,1842],{"class":535}," }>",[517,1844,1845],{"class":531},"()",[517,1847,879],{"class":535},[517,1849,1850,1852,1854],{"class":519,"line":613},[517,1851,1379],{"class":535},[517,1853,1323],{"class":552},[517,1855,1340],{"class":535},[517,1857,1858],{"class":519,"line":630},[517,1859,1260],{"emptyLinePlaceholder":1259},[517,1861,1862,1864,1866],{"class":519,"line":640},[517,1863,1265],{"class":535},[517,1865,1394],{"class":552},[517,1867,1340],{"class":535},[517,1869,1870,1872,1874,1876,1878,1880,1882,1884],{"class":519,"line":650},[517,1871,1401],{"class":535},[517,1873,1656],{"class":552},[517,1875,1659],{"class":527},[517,1877,536],{"class":535},[517,1879,585],{"class":535},[517,1881,946],{"class":581},[517,1883,585],{"class":535},[517,1885,1340],{"class":535},[517,1887,1888,1891,1893,1896,1899,1901,1903],{"class":519,"line":667},[517,1889,1890],{"class":535},"    \u003C",[517,1892,1676],{"class":552},[517,1894,1895],{"class":535},">",[517,1897,1898],{"class":531},"{{ block.title }}",[517,1900,1379],{"class":535},[517,1902,1676],{"class":552},[517,1904,1340],{"class":535},[517,1906,1907,1909,1912,1915,1917,1919,1921,1923,1925,1927,1929,1931,1933,1935,1937,1939,1941,1943,1946,1948,1950,1952,1954],{"class":519,"line":684},[517,1908,1890],{"class":535},[517,1910,1911],{"class":552},"TenonImage",[517,1913,1914],{"class":523}," v-if",[517,1916,536],{"class":535},[517,1918,585],{"class":535},[517,1920,1128],{"class":531},[517,1922,1107],{"class":535},[517,1924,694],{"class":531},[517,1926,585],{"class":535},[517,1928,1407],{"class":535},[517,1930,694],{"class":527},[517,1932,536],{"class":535},[517,1934,585],{"class":535},[517,1936,1128],{"class":531},[517,1938,1107],{"class":535},[517,1940,694],{"class":531},[517,1942,585],{"class":535},[517,1944,1945],{"class":527}," sizes",[517,1947,536],{"class":535},[517,1949,585],{"class":535},[517,1951,1734],{"class":581},[517,1953,585],{"class":535},[517,1955,1454],{"class":535},[517,1957,1958,1961,1963],{"class":519,"line":701},[517,1959,1960],{"class":535},"  \u003C\u002F",[517,1962,1656],{"class":552},[517,1964,1340],{"class":535},[517,1966,1967,1969,1971],{"class":519,"line":711},[517,1968,1379],{"class":535},[517,1970,1394],{"class":552},[517,1972,1340],{"class":535},[507,1974,1976],{"className":1465,"code":1975,"filename":372,"language":1467,"meta":513,"style":513},"import { Image } from \"tenoncms\u002Freact\";\n\nexport function Hero({ block }) {\n  return (\n    \u003Csection className=\"hero\">\n      \u003Ch1>{block.title}\u003C\u002Fh1>\n      {block.image && \u003CImage image={block.image} sizes=\"100vw\" \u002F>}\n    \u003C\u002Fsection>\n  );\n}\n",[488,1977,1978,1998,2002,2022,2030,2049,2070,2111,2120,2127],{"__ignoreMap":513},[517,1979,1980,1982,1984,1986,1988,1990,1992,1994,1996],{"class":519,"line":520},[517,1981,1194],{"class":523},[517,1983,570],{"class":535},[517,1985,1602],{"class":531},[517,1987,842],{"class":535},[517,1989,1204],{"class":523},[517,1991,578],{"class":535},[517,1993,1486],{"class":581},[517,1995,585],{"class":535},[517,1997,879],{"class":535},[517,1999,2000],{"class":519,"line":549},[517,2001,1260],{"emptyLinePlaceholder":1259},[517,2003,2004,2006,2009,2011,2014,2017,2020],{"class":519,"line":562},[517,2005,524],{"class":523},[517,2007,2008],{"class":527}," function",[517,2010,1297],{"class":539},[517,2012,2013],{"class":535},"({",[517,2015,1810],{"class":2016},"sHdIc",[517,2018,2019],{"class":535}," })",[517,2021,559],{"class":535},[517,2023,2024,2027],{"class":519,"line":603},[517,2025,2026],{"class":523},"  return",[517,2028,2029],{"class":552}," (\n",[517,2031,2032,2034,2036,2039,2041,2043,2045,2047],{"class":519,"line":613},[517,2033,1890],{"class":535},[517,2035,1656],{"class":552},[517,2037,2038],{"class":527}," className",[517,2040,536],{"class":535},[517,2042,585],{"class":535},[517,2044,946],{"class":581},[517,2046,585],{"class":535},[517,2048,1340],{"class":535},[517,2050,2051,2054,2056,2058,2060,2062,2064,2066,2068],{"class":519,"line":630},[517,2052,2053],{"class":535},"      \u003C",[517,2055,1676],{"class":552},[517,2057,1679],{"class":535},[517,2059,1128],{"class":531},[517,2061,1107],{"class":535},[517,2063,955],{"class":531},[517,2065,1688],{"class":535},[517,2067,1676],{"class":552},[517,2069,1340],{"class":535},[517,2071,2072,2075,2077,2079,2081,2083,2085,2087,2089,2091,2093,2095,2097,2099,2101,2103,2105,2107,2109],{"class":519,"line":640},[517,2073,2074],{"class":535},"      {",[517,2076,1128],{"class":531},[517,2078,1107],{"class":535},[517,2080,1703],{"class":531},[517,2082,1706],{"class":535},[517,2084,1709],{"class":535},[517,2086,76],{"class":1038},[517,2088,1714],{"class":527},[517,2090,1273],{"class":535},[517,2092,1128],{"class":531},[517,2094,1107],{"class":535},[517,2096,694],{"class":531},[517,2098,1283],{"class":535},[517,2100,1727],{"class":527},[517,2102,536],{"class":535},[517,2104,585],{"class":535},[517,2106,1734],{"class":581},[517,2108,585],{"class":535},[517,2110,1739],{"class":535},[517,2112,2113,2116,2118],{"class":519,"line":650},[517,2114,2115],{"class":535},"    \u003C\u002F",[517,2117,1656],{"class":552},[517,2119,1340],{"class":535},[517,2121,2122,2125],{"class":519,"line":667},[517,2123,2124],{"class":552},"  )",[517,2126,879],{"class":535},[517,2128,2129],{"class":519,"line":684},[517,2130,1162],{"class":535},[484,2132,2133,2134,2138],{},"See ",[2135,2136,184],"a",{"href":2137},"\u002Fdocs\u002Fcore\u002Fbuilding-your-site\u002Fcomponents#blocks"," for all props.",[496,2140,2142],{"id":2141},"shared-blocks","Shared blocks",[484,2144,2145,2146,2149],{},"A block is a plain object. To use it in several places, put it in its own file and import it. ",[488,2147,2148],{},"satisfies Block"," checks it and keeps its exact types:",[507,2151,2154],{"className":509,"code":2152,"filename":2153,"language":512,"meta":513,"style":513},"import type { Block } from \"tenoncms\";\n\nexport const hero = {\n  label: \"Hero\",\n  fields: {\n    title: { type: \"text\", required: true },\n    image: { type: \"image\" },\n  },\n} as const satisfies Block;\n","cms\u002Fblocks\u002Fhero.ts",[488,2155,2156,2179,2183,2196,2211,2219,2247,2268,2272],{"__ignoreMap":513},[517,2157,2158,2160,2162,2164,2167,2169,2171,2173,2175,2177],{"class":519,"line":520},[517,2159,1194],{"class":523},[517,2161,573],{"class":523},[517,2163,570],{"class":535},[517,2165,2166],{"class":531}," Block",[517,2168,842],{"class":535},[517,2170,1204],{"class":523},[517,2172,578],{"class":535},[517,2174,1791],{"class":581},[517,2176,585],{"class":535},[517,2178,879],{"class":535},[517,2180,2181],{"class":519,"line":549},[517,2182,1260],{"emptyLinePlaceholder":1259},[517,2184,2185,2187,2189,2192,2194],{"class":519,"line":562},[517,2186,524],{"class":523},[517,2188,528],{"class":527},[517,2190,2191],{"class":531}," hero ",[517,2193,536],{"class":535},[517,2195,559],{"class":535},[517,2197,2198,2201,2203,2205,2207,2209],{"class":519,"line":603},[517,2199,2200],{"class":552},"  label",[517,2202,556],{"class":535},[517,2204,578],{"class":535},[517,2206,660],{"class":581},[517,2208,585],{"class":535},[517,2210,627],{"class":535},[517,2212,2213,2215,2217],{"class":519,"line":613},[517,2214,553],{"class":552},[517,2216,556],{"class":535},[517,2218,559],{"class":535},[517,2220,2221,2223,2225,2227,2229,2231,2233,2235,2237,2239,2241,2243,2245],{"class":519,"line":630},[517,2222,565],{"class":552},[517,2224,556],{"class":535},[517,2226,570],{"class":535},[517,2228,573],{"class":552},[517,2230,556],{"class":535},[517,2232,578],{"class":535},[517,2234,582],{"class":581},[517,2236,585],{"class":535},[517,2238,588],{"class":535},[517,2240,591],{"class":552},[517,2242,556],{"class":535},[517,2244,597],{"class":596},[517,2246,600],{"class":535},[517,2248,2249,2252,2254,2256,2258,2260,2262,2264,2266],{"class":519,"line":640},[517,2250,2251],{"class":552},"    image",[517,2253,556],{"class":535},[517,2255,570],{"class":535},[517,2257,573],{"class":552},[517,2259,556],{"class":535},[517,2261,578],{"class":535},[517,2263,694],{"class":581},[517,2265,585],{"class":535},[517,2267,600],{"class":535},[517,2269,2270],{"class":519,"line":650},[517,2271,867],{"class":535},[517,2273,2274,2276,2279,2281,2284,2286],{"class":519,"line":667},[517,2275,873],{"class":535},[517,2277,2278],{"class":523}," as",[517,2280,528],{"class":1038},[517,2282,2283],{"class":523}," satisfies",[517,2285,2166],{"class":1038},[517,2287,879],{"class":535},[507,2289,2291],{"className":509,"code":2290,"language":512,"meta":513,"style":513},"content: { type: \"blocks\", blocks: { hero, text } },\n",[488,2292,2293],{"__ignoreMap":513},[517,2294,2295,2297,2299,2301,2303,2305,2307,2309,2311,2313,2315,2317,2319,2321,2323,2325,2327],{"class":519,"line":520},[517,2296,903],{"class":1038},[517,2298,556],{"class":535},[517,2300,570],{"class":535},[517,2302,573],{"class":1038},[517,2304,556],{"class":535},[517,2306,578],{"class":535},[517,2308,490],{"class":581},[517,2310,585],{"class":535},[517,2312,588],{"class":535},[517,2314,1270],{"class":1038},[517,2316,556],{"class":535},[517,2318,570],{"class":535},[517,2320,1292],{"class":531},[517,2322,588],{"class":535},[517,2324,1302],{"class":531},[517,2326,842],{"class":535},[517,2328,600],{"class":535},[496,2330,2332],{"id":2331},"nested-blocks","Nested blocks",[484,2334,2335,2336,2338,2339,2342,2343,2346,2347,2350],{},"A block can have its own ",[488,2337,490],{}," field, so items nest. A ",[488,2340,2341],{},"columns"," block with a ",[488,2344,2345],{},"left"," and a ",[488,2348,2349],{},"right"," list works this way.",[484,2352,2353,2354,2356,2357,2359,2360,2363],{},"A block that contains itself, like a ",[488,2355,1656],{}," inside a ",[488,2358,1656],{},", needs a name. Define it in ",[488,2361,2362],{},"defineCms({ blocks })"," and use the name where the block object would go:",[507,2365,2368],{"className":509,"code":2366,"filename":2367,"language":512,"meta":513,"style":513},"export default defineCms({\n  \u002F\u002F ...\n  blocks: {\n    text: { fields: { body: { type: \"richtext\" } } },\n    section: {\n      label: \"Section\",\n      fields: {\n        title: { type: \"text\" },\n        children: { type: \"blocks\", blocks: [\"section\", \"text\"] },\n      },\n    },\n  },\n  collections: {\n    pages: {\n      fields: {\n        content: { type: \"blocks\", blocks: { hero, section: \"section\", text: \"text\" } },\n      },\n    },\n  },\n});\n","tenon.config.ts",[488,2369,2370,2384,2389,2398,2436,2445,2461,2470,2491,2539,2543,2547,2551,2560,2569,2577,2635,2639,2643,2647],{"__ignoreMap":513},[517,2371,2372,2374,2377,2380,2382],{"class":519,"line":520},[517,2373,524],{"class":523},[517,2375,2376],{"class":523}," default",[517,2378,2379],{"class":539}," defineCms",[517,2381,543],{"class":531},[517,2383,546],{"class":535},[517,2385,2386],{"class":519,"line":549},[517,2387,2388],{"class":1156},"  \u002F\u002F ...\n",[517,2390,2391,2394,2396],{"class":519,"line":562},[517,2392,2393],{"class":552},"  blocks",[517,2395,556],{"class":535},[517,2397,559],{"class":535},[517,2399,2400,2403,2405,2407,2410,2412,2414,2416,2418,2420,2422,2424,2426,2428,2430,2432,2434],{"class":519,"line":603},[517,2401,2402],{"class":552},"    text",[517,2404,556],{"class":535},[517,2406,570],{"class":535},[517,2408,2409],{"class":552}," fields",[517,2411,556],{"class":535},[517,2413,570],{"class":535},[517,2415,824],{"class":552},[517,2417,556],{"class":535},[517,2419,570],{"class":535},[517,2421,573],{"class":552},[517,2423,556],{"class":535},[517,2425,578],{"class":535},[517,2427,837],{"class":581},[517,2429,585],{"class":535},[517,2431,842],{"class":535},[517,2433,842],{"class":535},[517,2435,600],{"class":535},[517,2437,2438,2441,2443],{"class":519,"line":613},[517,2439,2440],{"class":552},"    section",[517,2442,556],{"class":535},[517,2444,559],{"class":535},[517,2446,2447,2450,2452,2454,2457,2459],{"class":519,"line":630},[517,2448,2449],{"class":552},"      label",[517,2451,556],{"class":535},[517,2453,578],{"class":535},[517,2455,2456],{"class":581},"Section",[517,2458,585],{"class":535},[517,2460,627],{"class":535},[517,2462,2463,2466,2468],{"class":519,"line":640},[517,2464,2465],{"class":552},"      fields",[517,2467,556],{"class":535},[517,2469,559],{"class":535},[517,2471,2472,2475,2477,2479,2481,2483,2485,2487,2489],{"class":519,"line":650},[517,2473,2474],{"class":552},"        title",[517,2476,556],{"class":535},[517,2478,570],{"class":535},[517,2480,573],{"class":552},[517,2482,556],{"class":535},[517,2484,578],{"class":535},[517,2486,582],{"class":581},[517,2488,585],{"class":535},[517,2490,600],{"class":535},[517,2492,2493,2496,2498,2500,2502,2504,2506,2508,2510,2512,2514,2516,2519,2521,2523,2525,2527,2529,2531,2533,2536],{"class":519,"line":667},[517,2494,2495],{"class":552},"        children",[517,2497,556],{"class":535},[517,2499,570],{"class":535},[517,2501,573],{"class":552},[517,2503,556],{"class":535},[517,2505,578],{"class":535},[517,2507,490],{"class":581},[517,2509,585],{"class":535},[517,2511,588],{"class":535},[517,2513,1270],{"class":552},[517,2515,556],{"class":535},[517,2517,2518],{"class":531}," [",[517,2520,585],{"class":535},[517,2522,1656],{"class":581},[517,2524,585],{"class":535},[517,2526,588],{"class":535},[517,2528,578],{"class":535},[517,2530,582],{"class":581},[517,2532,585],{"class":535},[517,2534,2535],{"class":531},"] ",[517,2537,2538],{"class":535},"},\n",[517,2540,2541],{"class":519,"line":684},[517,2542,855],{"class":535},[517,2544,2545],{"class":519,"line":701},[517,2546,861],{"class":535},[517,2548,2549],{"class":519,"line":711},[517,2550,867],{"class":535},[517,2552,2553,2556,2558],{"class":519,"line":741},[517,2554,2555],{"class":552},"  collections",[517,2557,556],{"class":535},[517,2559,559],{"class":535},[517,2561,2562,2565,2567],{"class":519,"line":763},[517,2563,2564],{"class":552},"    pages",[517,2566,556],{"class":535},[517,2568,559],{"class":535},[517,2570,2571,2573,2575],{"class":519,"line":769},[517,2572,2465],{"class":552},[517,2574,556],{"class":535},[517,2576,559],{"class":535},[517,2578,2579,2582,2584,2586,2588,2590,2592,2594,2596,2598,2600,2602,2604,2606,2608,2611,2613,2615,2617,2619,2621,2623,2625,2627,2629,2631,2633],{"class":519,"line":775},[517,2580,2581],{"class":552},"        content",[517,2583,556],{"class":535},[517,2585,570],{"class":535},[517,2587,573],{"class":552},[517,2589,556],{"class":535},[517,2591,578],{"class":535},[517,2593,490],{"class":581},[517,2595,585],{"class":535},[517,2597,588],{"class":535},[517,2599,1270],{"class":552},[517,2601,556],{"class":535},[517,2603,570],{"class":535},[517,2605,1292],{"class":531},[517,2607,588],{"class":535},[517,2609,2610],{"class":552}," section",[517,2612,556],{"class":535},[517,2614,578],{"class":535},[517,2616,1656],{"class":581},[517,2618,585],{"class":535},[517,2620,588],{"class":535},[517,2622,1302],{"class":552},[517,2624,556],{"class":535},[517,2626,578],{"class":535},[517,2628,582],{"class":581},[517,2630,585],{"class":535},[517,2632,842],{"class":535},[517,2634,600],{"class":535},[517,2636,2637],{"class":519,"line":785},[517,2638,855],{"class":535},[517,2640,2641],{"class":519,"line":800},[517,2642,861],{"class":535},[517,2644,2645],{"class":519,"line":815},[517,2646,867],{"class":535},[517,2648,2649,2651,2653],{"class":519,"line":847},[517,2650,873],{"class":535},[517,2652,876],{"class":531},[517,2654,879],{"class":535},[2656,2657,2658,2665,2671],"ul",{},[2659,2660,2661,2662,2664],"li",{},"The key is what ",[488,2663,885],{}," stores. The value is the shared block's name.",[2659,2666,2667,2668,1107],{},"A list of names is short for keys that equal the names: ",[488,2669,2670],{},"[\"section\", \"text\"]",[2659,2672,2673,2674,1107],{},"An unknown name is a type error in ",[488,2675,2676],{},"defineCms()",[484,2678,2679,2680,2683,2684,1107],{},"Validation, defaults, hooks and ",[488,2681,2682],{},"populate"," work at every depth. Errors name the position, like ",[488,2685,2686],{},"content.2.children.0.title",[496,2688,2690],{"id":2689},"read-only-some-blocks","Read only some blocks",[484,2692,2693,2695,2696,2699],{},[488,2694,2682],{}," and ",[488,2697,2698],{},"select"," go through the list. Name the block type to pick its fields:",[507,2701,2703],{"className":509,"code":2702,"language":512,"meta":513,"style":513},"await cms.find(\"pages\", {\n  populate: { content: { hero: { image: true } } },\n  select: { title: true, content: { hero: { title: true, image: true }, text: true } },\n});\n",[488,2704,2705,2731,2765,2821],{"__ignoreMap":513},[517,2706,2707,2710,2713,2715,2718,2720,2722,2725,2727,2729],{"class":519,"line":520},[517,2708,2709],{"class":523},"await",[517,2711,2712],{"class":531}," cms",[517,2714,1107],{"class":535},[517,2716,2717],{"class":539},"find",[517,2719,543],{"class":531},[517,2721,585],{"class":535},[517,2723,2724],{"class":581},"pages",[517,2726,585],{"class":535},[517,2728,588],{"class":535},[517,2730,559],{"class":535},[517,2732,2733,2736,2738,2740,2743,2745,2747,2749,2751,2753,2755,2757,2759,2761,2763],{"class":519,"line":549},[517,2734,2735],{"class":552},"  populate",[517,2737,556],{"class":535},[517,2739,570],{"class":535},[517,2741,2742],{"class":552}," content",[517,2744,556],{"class":535},[517,2746,570],{"class":535},[517,2748,1292],{"class":552},[517,2750,556],{"class":535},[517,2752,570],{"class":535},[517,2754,1714],{"class":552},[517,2756,556],{"class":535},[517,2758,597],{"class":596},[517,2760,842],{"class":535},[517,2762,842],{"class":535},[517,2764,600],{"class":535},[517,2766,2767,2770,2772,2774,2776,2778,2780,2782,2784,2786,2788,2790,2792,2794,2796,2798,2800,2802,2804,2806,2808,2811,2813,2815,2817,2819],{"class":519,"line":562},[517,2768,2769],{"class":552},"  select",[517,2771,556],{"class":535},[517,2773,570],{"class":535},[517,2775,1817],{"class":552},[517,2777,556],{"class":535},[517,2779,597],{"class":596},[517,2781,588],{"class":535},[517,2783,2742],{"class":552},[517,2785,556],{"class":535},[517,2787,570],{"class":535},[517,2789,1292],{"class":552},[517,2791,556],{"class":535},[517,2793,570],{"class":535},[517,2795,1817],{"class":552},[517,2797,556],{"class":535},[517,2799,597],{"class":596},[517,2801,588],{"class":535},[517,2803,1714],{"class":552},[517,2805,556],{"class":535},[517,2807,597],{"class":596},[517,2809,2810],{"class":535}," },",[517,2812,1302],{"class":552},[517,2814,556],{"class":535},[517,2816,597],{"class":596},[517,2818,842],{"class":535},[517,2820,600],{"class":535},[517,2822,2823,2825,2827],{"class":519,"line":603},[517,2824,873],{"class":535},[517,2826,876],{"class":531},[517,2828,879],{"class":535},[496,2830,2832],{"id":2831},"limits","Limits",[2656,2834,2835,2838,2846,2849,2858],{},[2659,2836,2837],{},"You cannot filter by fields inside blocks.",[2659,2839,2840,2841,2843,2844,1107],{},"A field inside a block MUST NOT be named ",[488,2842,889],{}," or ",[488,2845,885],{},[2659,2847,2848],{},"An item of a block type that is no longer in the schema fails the next save.",[2659,2850,2851,2695,2854,2857],{},[488,2852,2853],{},"join",[488,2855,2856],{},"unique"," do not work inside blocks.",[2659,2859,2860,2861,1107],{},"In a localized collection, a top-level blocks field is localized as a whole. Fields inside MUST NOT set ",[488,2862,2863],{},"localized",[496,2865,2867],{"id":2866},"options","Options",[2869,2870,2871,2876,2883,2892,2896,2909],"field-group",{},[2872,2873],"field",{"name":1039,"type":2874,":required":2875},"\"blocks\"","true",[2872,2877,2879,2880,2882],{"name":490,"type":2878,":required":2875},"Record\u003Cstring, Block | string> | string[]","The block types, keyed by the name ",[488,2881,885],{}," stores. A value is a block, or the name of a shared block.",[2872,2884,2887,2888,2891],{"name":2885,"type":2886},"minRows","number","The fewest items. ",[488,2889,2890],{},"required"," means at least one.",[2872,2893,2895],{"name":2894,"type":2886},"maxRows","The most items.",[2872,2897,2901,2902,2905,2906,1107],{"name":2898,"type":2899,":badges":2900},"itemLabels","{ singular, plural, title }","[{\"label\":\"Admin only\",\"color\":\"note\"}]","The names of the items and the list in the admin. ",[488,2903,2904],{},"singular"," defaults to \"Block\". See ",[2135,2907,52],{"href":2908},"\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Farray#item-labels",[2872,2910,2913],{"name":2911,"type":2912,":badges":2900},"appearance","\"tree\"","Show the items as compact rows with an edit sheet. By default, each item is edited inline.",[484,2915,2916],{},"The options of a block:",[2869,2918,2919,2923,2928,2932,2943,2950,2955],{},[2872,2920,2922],{"name":2921,"type":45,":required":2875},"fields","The fields of an item of this type.",[2872,2924,2927],{"name":2925,"type":2926},"label","string | { en, de, … }","The name in the block picker. Defaults to the key.",[2872,2929,2931],{"name":2930,"type":2926},"description","Help text in the block picker.",[2872,2933,486,2936,2942],{"name":2934,"type":2935},"icon","string",[2135,2937,2941],{"href":2938,"rel":2939},"https:\u002F\u002Flucide.dev\u002Ficons",[2940],"nofollow","Lucide"," icon name for the picker and the row header.",[2872,2944,2945,2946,2949],{"name":694,"type":2935},"A preview picture for the picker instead of the icon, like ",[488,2947,2948],{},"\u002Fblocks\u002Fhero.jpg",". Cropped to 16:9.",[2872,2951,2954],{"name":2952,"type":2953,":badges":2900},"tabs","Record\u003Cstring, { label, icon }>","A tab bar for the fields of the block.",[2872,2956,2959],{"name":2957,"type":2958,":badges":2900},"fieldsets","Record\u003Cstring, { label, description, collapsible, collapsed }>","Boxes around fields of the block.",[2961,2962],"field-common-options",{},[2964,2965,2966],"style",{},"html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .sfNiH, html code.shiki .sfNiH{--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .sHdIc, html code.shiki .sHdIc{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic}",{"title":513,"searchDepth":549,"depth":549,"links":2968},[2969,2972,2973,2974,2975,2976],{"id":498,"depth":549,"text":499,"children":2970},[2971],{"id":1166,"depth":562,"text":1167},{"id":2141,"depth":549,"text":2142},{"id":2331,"depth":549,"text":2332},{"id":2689,"depth":549,"text":2690},{"id":2831,"depth":549,"text":2832},{"id":2866,"depth":549,"text":2867},"A list of page sections, where each item has its own type.","md",null,{},{"title":56,"description":2977},"K7_PCIeJxnN6cZQcKW62um57HzaLs2F9Tw_qzQKvB5Q",[2984,2986],{"title":52,"path":53,"stem":54,"description":2985,"children":-1},"A list of items that all have the same fields.",{"title":60,"path":61,"stem":62,"description":2987,"children":-1},"A yes or no value, shown as a checkbox or a switch.",{"data":2989,"body":2990},{},{"type":2991,"children":2992},"root",[2993],{"type":2994,"tag":484,"props":2995,"children":2996},"element",{},[2997],{"type":582,"value":2998},"The label in the admin. Defaults to the key. Pass an object to translate it.",{"data":3000,"body":3001},{},{"type":2991,"children":3002},[3003],{"type":2994,"tag":484,"props":3004,"children":3005},{},[3006],{"type":582,"value":3007},"Help text below the input.",{"data":3009,"body":3010},{},{"type":2991,"children":3011},[3012],{"type":2994,"tag":484,"props":3013,"children":3014},{},[3015],{"type":582,"value":3016},"The value MUST be present. A list needs at least one item.",{"data":3018,"body":3019},{},{"type":2991,"children":3020},[3021],{"type":2994,"tag":484,"props":3022,"children":3023},{},[3024,3026,3032],{"type":582,"value":3025},"The value of a new document, when the field is missing. A plain value also fills the new form in the admin. A function, like ",{"type":2994,"tag":488,"props":3027,"children":3029},{"className":3028},[],[3030],{"type":582,"value":3031},"({ user }) => user?.id",{"type":582,"value":3033},", runs on the server only.",{"data":3035,"body":3036},{},{"type":2991,"children":3037},[3038],{"type":2994,"tag":484,"props":3039,"children":3040},{},[3041,3043,3049],{"type":582,"value":3042},"No other document of the collection has the same value. See ",{"type":2994,"tag":2135,"props":3044,"children":3046},{"href":3045},"\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields#validation",[3047],{"type":582,"value":3048},"Validation",{"type":582,"value":1107},{"data":3051,"body":3052},{},{"type":2991,"children":3053},[3054],{"type":2994,"tag":484,"props":3055,"children":3056},{},[3057,3059,3065],{"type":582,"value":3058},"Your own check. See ",{"type":2994,"tag":2135,"props":3060,"children":3062},{"href":3061},"\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields#your-own-checks",[3063],{"type":582,"value":3064},"Your own checks",{"type":582,"value":1107},{"data":3067,"body":3068},{},{"type":2991,"children":3069},[3070],{"type":2994,"tag":484,"props":3071,"children":3072},{},[3073,3075,3081],{"type":582,"value":3074},"Show the field only when other values match. See ",{"type":2994,"tag":2135,"props":3076,"children":3078},{"href":3077},"\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields#conditions",[3079],{"type":582,"value":3080},"Conditions",{"type":582,"value":1107},{"data":3083,"body":3084},{},{"type":2991,"children":3085},[3086],{"type":2994,"tag":484,"props":3087,"children":3088},{},[3089],{"type":582,"value":3090},"Public reads leave the value out. Signed-in users and server code see it.",{"data":3092,"body":3093},{},{"type":2991,"children":3094},[3095],{"type":2994,"tag":484,"props":3096,"children":3097},{},[3098,3100,3105],{"type":582,"value":3099},"Who can read and write this field. See ",{"type":2994,"tag":2135,"props":3101,"children":3102},{"href":206},[3103],{"type":582,"value":3104},"Access control",{"type":582,"value":1107},{"data":3107,"body":3108},{},{"type":2991,"children":3109},[3110],{"type":2994,"tag":484,"props":3111,"children":3112},{},[3113,3115,3121,3123,3127],{"type":582,"value":3114},"In a localized collection, every field is stored per language. ",{"type":2994,"tag":488,"props":3116,"children":3118},{"className":3117},[],[3119],{"type":582,"value":3120},"false",{"type":582,"value":3122}," shares this field between languages. Only on top-level fields. See ",{"type":2994,"tag":2135,"props":3124,"children":3125},{"href":168},[3126],{"type":582,"value":167},{"type":582,"value":1107},{"data":3129,"body":3130},{},{"type":2991,"children":3131},[3132],{"type":2994,"tag":484,"props":3133,"children":3134},{},[3135,3137,3141],{"type":582,"value":3136},"Functions that run for this field on every write and read, before the collection's hooks. See ",{"type":2994,"tag":2135,"props":3138,"children":3139},{"href":172},[3140],{"type":582,"value":171},{"type":582,"value":1107},{"data":3143,"body":3144},{},{"type":2991,"children":3145},[3146],{"type":2994,"tag":484,"props":3147,"children":3148},{},[3149],{"type":582,"value":3150},"The admin does not show the input. The value still saves. Use it for values a hook sets.",{"data":3152,"body":3153},{},{"type":2991,"children":3154},[3155],{"type":2994,"tag":484,"props":3156,"children":3157},{},[3158],{"type":582,"value":3159},"The admin shows the input disabled. Code and hooks can still write it.",{"data":3161,"body":3162},{},{"type":2991,"children":3163},[3164],{"type":2994,"tag":484,"props":3165,"children":3166},{},[3167,3169,3175],{"type":582,"value":3168},"The share of the row the field takes. Fields next to each other fill a row. In a narrow form, every field takes the full width. Default ",{"type":2994,"tag":488,"props":3170,"children":3172},{"className":3171},[],[3173],{"type":582,"value":3174},"\"full\"",{"type":582,"value":1107},{"data":3177,"body":3178},{},{"type":2991,"children":3179},[3180],{"type":2994,"tag":484,"props":3181,"children":3182},{},[3183],{"type":582,"value":3184},"A line above the field, to break up a long form. A string adds a heading above the line.",{"data":3186,"body":3187},{},{"type":2991,"children":3188},[3189],{"type":2994,"tag":484,"props":3190,"children":3191},{},[3192,3194,3199],{"type":582,"value":3193},"The tab that shows this field. Define the tabs with ",{"type":2994,"tag":488,"props":3195,"children":3197},{"className":3196},[],[3198],{"type":582,"value":2952},{"type":582,"value":3200}," on the collection, global, group or list item.",{"data":3202,"body":3203},{},{"type":2991,"children":3204},[3205],{"type":2994,"tag":484,"props":3206,"children":3207},{},[3208,3210,3215],{"type":582,"value":3209},"The box that holds this field. Define the boxes with ",{"type":2994,"tag":488,"props":3211,"children":3213},{"className":3212},[],[3214],{"type":582,"value":2957},{"type":582,"value":1107},1795884674273]