@dosgato/templating
Advanced tools
Comparing version 0.0.146 to 0.0.147
@@ -114,3 +114,5 @@ import { get, isNotBlank, titleCase } from 'txstate-utils'; | ||
const wrap = opts?.wrap ?? defaultWrap; | ||
if (opts?.skipBars || opts?.skipEditBars) | ||
if (opts?.skipContent && !this.editMode) | ||
return ''; | ||
if (opts?.skipBars || opts?.skipEditBars || !this.editMode) | ||
return components.map((c, indexInArea) => wrap({ ...c, content: c.output, bar: '', indexInArea })).join(''); | ||
@@ -150,3 +152,3 @@ return components | ||
let output = this.renderComponents(components, { ...opts, editBarOpts: { ...opts?.editBarOpts, disableDelete: ownedComponentCount <= (opts?.min ?? 0), disableDrop: full } }); | ||
if (!opts?.skipBars && !opts?.skipNewBar) { | ||
if (!opts?.skipBars && !opts?.skipNewBar && this.editMode) { | ||
let bar; | ||
@@ -153,0 +155,0 @@ if (full) { |
{ | ||
"name": "@dosgato/templating", | ||
"version": "0.0.146", | ||
"version": "0.0.147", | ||
"description": "A library to support building templates for dosgato CMS.", | ||
@@ -5,0 +5,0 @@ "type": "module", |
116828
2542