@lucidcms/core
Version:
The core of the Lucid CMS. It's responsible for spinning up the API and serving the CMS.
2 lines • 545 B
JavaScript
import e,{registeredFieldTypes as t}from"../../../libs/collection/custom-fields/registered-fields.mjs";const n=n=>{if(!t.includes(n))return!1;let r=e[n];return r.fetchRefs!==null&&r.formatRef!==null},r=e=>e.startsWith(`refs.`)&&e.length>5,i=e=>{let t=e??[],i=t.includes(`refs`),a=new Set,o=!1;for(let e of t){if(!r(e))continue;o=!0;let t=e.slice(5);n(t)&&a.add(t)}return{bricks:t.includes(`bricks`),refs:i||o,meta:t.includes(`meta`),refTypes:i?void 0:o?[...a]:void 0}};export{i as default};
//# sourceMappingURL=resolve-document-includes.mjs.map