@fullstackdatasolutions/articles 1.0.0 → 1.1.0
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/CHANGELOG.md +10 -0
- package/README.md +9 -8
- package/dist/index.cjs +28 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -1
- package/dist/index.d.ts +11 -1
- package/dist/index.js +28 -9
- package/dist/index.js.map +1 -1
- package/dist/nextjs.d.cts +8 -0
- package/dist/nextjs.d.ts +8 -0
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.cts +8 -0
- package/dist/server.d.ts +8 -0
- package/dist/server.js.map +1 -1
- package/package.json +1 -1
- package/src/ArticleCard.tsx +5 -5
- package/src/ArticleDetailHero.tsx +10 -1
- package/src/ArticlesPage.tsx +1 -0
- package/src/RelatedArticlesSection.tsx +4 -1
- package/src/articlesConfig.ts +8 -0
package/dist/server.d.cts
CHANGED
|
@@ -240,6 +240,14 @@ type ArticlesSection = 'hero' | 'search' | 'featured' | 'latest' | 'categories'
|
|
|
240
240
|
interface ArticlesTheme {
|
|
241
241
|
/** Font family for the articles section. Example: `"'Inter', sans-serif"` */
|
|
242
242
|
fontFamily?: string;
|
|
243
|
+
/**
|
|
244
|
+
* Font family for headings only (article title, card titles, section
|
|
245
|
+
* headings) - falls back to `fontFamily` when omitted. Lets a site use a
|
|
246
|
+
* distinct display face for headings (e.g. a serif) while keeping a
|
|
247
|
+
* separate body font, without hardcoding either into the package.
|
|
248
|
+
* Example: `"'Cinzel', serif"`
|
|
249
|
+
*/
|
|
250
|
+
headerFontFamily?: string;
|
|
243
251
|
/** Color for article card titles and section headings. Example: `'#111827'` */
|
|
244
252
|
headerColor?: string;
|
|
245
253
|
/** Color for body and excerpt text. Example: `'#6b7280'` */
|
package/dist/server.d.ts
CHANGED
|
@@ -240,6 +240,14 @@ type ArticlesSection = 'hero' | 'search' | 'featured' | 'latest' | 'categories'
|
|
|
240
240
|
interface ArticlesTheme {
|
|
241
241
|
/** Font family for the articles section. Example: `"'Inter', sans-serif"` */
|
|
242
242
|
fontFamily?: string;
|
|
243
|
+
/**
|
|
244
|
+
* Font family for headings only (article title, card titles, section
|
|
245
|
+
* headings) - falls back to `fontFamily` when omitted. Lets a site use a
|
|
246
|
+
* distinct display face for headings (e.g. a serif) while keeping a
|
|
247
|
+
* separate body font, without hardcoding either into the package.
|
|
248
|
+
* Example: `"'Cinzel', serif"`
|
|
249
|
+
*/
|
|
250
|
+
headerFontFamily?: string;
|
|
243
251
|
/** Color for article card titles and section headings. Example: `'#111827'` */
|
|
244
252
|
headerColor?: string;
|
|
245
253
|
/** Color for body and excerpt text. Example: `'#6b7280'` */
|