@majeanson/lac 3.5.0 → 3.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +7 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -10473,7 +10473,7 @@ const doctorCommand = new Command("doctor").description("Check workspace health
|
|
|
10473
10473
|
function esc$12(s) {
|
|
10474
10474
|
return s.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """);
|
|
10475
10475
|
}
|
|
10476
|
-
function generateHtmlWiki(features, projectName, viewLabel, viewName) {
|
|
10476
|
+
function generateHtmlWiki(features, projectName, viewLabel, viewName, renderMode) {
|
|
10477
10477
|
const dataJson = JSON.stringify(features).replace(/<\/script>/gi, "<\\/script>");
|
|
10478
10478
|
features.filter((f) => f.status === "active").length, features.filter((f) => f.status === "frozen").length, features.filter((f) => f.status === "draft").length, features.filter((f) => f.status === "deprecated").length;
|
|
10479
10479
|
const domains = [...new Set(features.map((f) => f.domain).filter(Boolean))].sort();
|
|
@@ -11082,7 +11082,7 @@ function statusColor(s) {
|
|
|
11082
11082
|
|
|
11083
11083
|
// ── Tree building ────────────────────────────────────────────────────────────
|
|
11084
11084
|
|
|
11085
|
-
const VIEW = '${viewName || ""}';
|
|
11085
|
+
const VIEW = '${renderMode || viewName || ""}';
|
|
11086
11086
|
const byKey = new Map(FEATURES.map(f => [f.featureKey, f]));
|
|
11087
11087
|
|
|
11088
11088
|
function getChildren(key) {
|
|
@@ -23717,6 +23717,7 @@ Views (--view):
|
|
|
23717
23717
|
tech Complete technical record — all fields including history and revisions`).action(async (options) => {
|
|
23718
23718
|
const config = loadConfig(process$1.cwd());
|
|
23719
23719
|
let activeView = options.view ? resolveView(options.view, config.views) : void 0;
|
|
23720
|
+
const activeViewRenderMode = options.view && config.views[options.view] ? config.views[options.view].extends : void 0;
|
|
23720
23721
|
if (options.view && !activeView) {
|
|
23721
23722
|
const customNames = Object.keys(config.views);
|
|
23722
23723
|
const allNames = [...VIEW_NAMES, ...customNames];
|
|
@@ -23782,7 +23783,7 @@ Views (--view):
|
|
|
23782
23783
|
}
|
|
23783
23784
|
const projectName = basename(htmlDir);
|
|
23784
23785
|
const densityFeatures = withDensity(features);
|
|
23785
|
-
const html = generateHtmlWiki(activeView ? densityFeatures.map((f) => applyViewForHtml(f.feature, activeView)) : densityFeatures.map((f) => f.feature), projectName, activeView?.label, activeView?.name);
|
|
23786
|
+
const html = generateHtmlWiki(activeView ? densityFeatures.map((f) => applyViewForHtml(f.feature, activeView)) : densityFeatures.map((f) => f.feature), projectName, activeView?.label, activeView?.name, activeViewRenderMode);
|
|
23786
23787
|
const outFile = options.out ? resolve(options.out) : resolve(process$1.cwd(), "lac-wiki.html");
|
|
23787
23788
|
try {
|
|
23788
23789
|
await writeFile(outFile, html, "utf-8");
|
|
@@ -24312,7 +24313,9 @@ Views (--view):
|
|
|
24312
24313
|
filterStatus: resolved.filterStatus,
|
|
24313
24314
|
sortBy: resolved.sortBy
|
|
24314
24315
|
});
|
|
24315
|
-
|
|
24316
|
+
const viewHtmlFeatures = viewFeatures.map((f) => applyViewForHtml(f, resolved));
|
|
24317
|
+
const renderMode = viewDef.extends;
|
|
24318
|
+
await write(filename, generateHtmlWiki(viewHtmlFeatures, projectName, label, viewName, renderMode));
|
|
24316
24319
|
customEntries.push({
|
|
24317
24320
|
file: filename,
|
|
24318
24321
|
label,
|