// @requirements REQ-PRODUCT-COLLECTION-WORKBENCH import {createCollectionWorkbenchFiles} from '@notabenda/core/authoring/collection'; import {collectionFlowExample} from '../collection-flow/example.mjs'; export async function collectionWorkbenchFiles(base){ const {build,settings}=collectionFlowExample(base),files=await createCollectionWorkbenchFiles(build.artifact,{purposeIds:settings.notice.purposeIds,settings},{mode:'preview',delivery:'directory'}); files['index.html']=files['index.html'].replace('class="nb-page"','class="nb-page nb-demo-page"').replace('
Skip to content
notabenda
','

This example starts with the combined form’s saved settings. For your site, prepare a workbench from your final public artifact. Prepare your own →

'); return Object.fromEntries(Object.entries(files).map(([path,body])=>['form-notice-workbench/'+path,body])); }