@classic-homes/slides 0.5.4 → 0.5.5
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/{chunk-7GFFKI3D.js → chunk-5742AF55.js} +2 -2
- package/dist/{chunk-RIKOLCES.js → chunk-GNTIZN4Y.js} +2 -2
- package/dist/{chunk-WTC2VV5C.js → chunk-ULP6ACVZ.js} +7 -5
- package/dist/{chunk-WTC2VV5C.js.map → chunk-ULP6ACVZ.js.map} +1 -1
- package/dist/cli.js +4 -4
- package/dist/index.js +2 -2
- package/dist/{mcp-DCNNWEFX.js → mcp-YESIP2QG.js} +4 -4
- package/dist/node.js +2 -2
- package/package.json +1 -1
- /package/dist/{chunk-7GFFKI3D.js.map → chunk-5742AF55.js.map} +0 -0
- /package/dist/{chunk-RIKOLCES.js.map → chunk-GNTIZN4Y.js.map} +0 -0
- /package/dist/{mcp-DCNNWEFX.js.map → mcp-YESIP2QG.js.map} +0 -0
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
parseDeckSource,
|
|
4
4
|
renderDeck,
|
|
5
5
|
stringifyDeck
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ULP6ACVZ.js";
|
|
7
7
|
|
|
8
8
|
// src/node/index.ts
|
|
9
9
|
import { readFile, stat, writeFile } from "fs/promises";
|
|
@@ -117,4 +117,4 @@ export {
|
|
|
117
117
|
buildDeckFile,
|
|
118
118
|
exportDeckFile
|
|
119
119
|
};
|
|
120
|
-
//# sourceMappingURL=chunk-
|
|
120
|
+
//# sourceMappingURL=chunk-5742AF55.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
LAYOUT_CATEGORIES,
|
|
5
5
|
baseSlide,
|
|
6
6
|
getLayout
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ULP6ACVZ.js";
|
|
8
8
|
|
|
9
9
|
// src/catalog.ts
|
|
10
10
|
import { z } from "zod";
|
|
@@ -104,4 +104,4 @@ export {
|
|
|
104
104
|
deckJsonSchema,
|
|
105
105
|
AUTHORING_GUIDE
|
|
106
106
|
};
|
|
107
|
-
//# sourceMappingURL=chunk-
|
|
107
|
+
//# sourceMappingURL=chunk-GNTIZN4Y.js.map
|
|
@@ -923,11 +923,13 @@ var cards = defineLayout({
|
|
|
923
923
|
])
|
|
924
924
|
],
|
|
925
925
|
render: (s, ctx) => ({
|
|
926
|
-
html: `${eyebrow(s.eyebrow, s.eyebrowSub)}${heading(s.title)}${lead(s.lead)}<div class="cardgrid cards--${s.style}"${s.build ? " data-build" : ""} style="--cols:${s.columns}">${s.cards.map(
|
|
927
|
-
|
|
926
|
+
html: `${eyebrow(s.eyebrow, s.eyebrowSub)}${heading(s.title)}${lead(s.lead)}<div class="cardgrid cards--${s.style}"${s.build ? " data-build" : ""} style="--cols:${s.columns}">${s.cards.map((c) => {
|
|
927
|
+
const hasCopy = Boolean(c.tag?.trim() || c.title.trim() || c.body?.trim());
|
|
928
|
+
const copy = c.image && !hasCopy ? "" : s.style === "banner" ? `<div class="card-band">${inline(c.tag ?? c.title)}</div><div class="card-b">${c.tag ? `<h3>${inline(c.title)}</h3>` : ""}${c.body ? `<p>${inline(c.body)}</p>` : ""}</div>` : `<div class="card-b">${c.tag ? `<span class="tag">${inline(c.tag)}</span>` : ""}<h3>${inline(
|
|
928
929
|
c.title
|
|
929
|
-
)}</h3>${c.body ? `<p>${inline(c.body)}</p>` : ""}</div
|
|
930
|
-
|
|
930
|
+
)}</h3>${c.body ? `<p>${inline(c.body)}</p>` : ""}</div>`;
|
|
931
|
+
return `<div class="card b-item">${c.image ? img(c.image, ctx, "card-img") : ""}${copy}</div>`;
|
|
932
|
+
}).join("")}</div>${footnote(s.footnote)}`
|
|
931
933
|
})
|
|
932
934
|
});
|
|
933
935
|
var stats = defineLayout({
|
|
@@ -3960,4 +3962,4 @@ export {
|
|
|
3960
3962
|
inlineDeckImages,
|
|
3961
3963
|
externalizeDeckImages
|
|
3962
3964
|
};
|
|
3963
|
-
//# sourceMappingURL=chunk-
|
|
3965
|
+
//# sourceMappingURL=chunk-ULP6ACVZ.js.map
|