UNPKG

@lucidcms/core

Version:

The core of the Lucid CMS. It's responsible for spinning up the API and serving the CMS.

2 lines 404 B
const e=e=>e.getData.workflow,t=t=>{let n=e(t.collection);if(n)return(t.stageKey?n.stages.find(e=>e.key===t.stageKey):void 0)??n.stages.find(e=>e.key===n.initial)},n=e=>{let n=t({collection:e.collection,stageKey:e.stageKey});return!n||n.publishTargets.includes(e.target)};export{e as getWorkflowConfig,t as resolveEffectiveWorkflowStage,n as workflowStageAllowsTarget}; //# sourceMappingURL=index.mjs.map