@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/nextjs.d.cts
CHANGED
|
@@ -143,6 +143,14 @@ type ArticlesSection = 'hero' | 'search' | 'featured' | 'latest' | 'categories'
|
|
|
143
143
|
interface ArticlesTheme {
|
|
144
144
|
/** Font family for the articles section. Example: `"'Inter', sans-serif"` */
|
|
145
145
|
fontFamily?: string;
|
|
146
|
+
/**
|
|
147
|
+
* Font family for headings only (article title, card titles, section
|
|
148
|
+
* headings) - falls back to `fontFamily` when omitted. Lets a site use a
|
|
149
|
+
* distinct display face for headings (e.g. a serif) while keeping a
|
|
150
|
+
* separate body font, without hardcoding either into the package.
|
|
151
|
+
* Example: `"'Cinzel', serif"`
|
|
152
|
+
*/
|
|
153
|
+
headerFontFamily?: string;
|
|
146
154
|
/** Color for article card titles and section headings. Example: `'#111827'` */
|
|
147
155
|
headerColor?: string;
|
|
148
156
|
/** Color for body and excerpt text. Example: `'#6b7280'` */
|
package/dist/nextjs.d.ts
CHANGED
|
@@ -143,6 +143,14 @@ type ArticlesSection = 'hero' | 'search' | 'featured' | 'latest' | 'categories'
|
|
|
143
143
|
interface ArticlesTheme {
|
|
144
144
|
/** Font family for the articles section. Example: `"'Inter', sans-serif"` */
|
|
145
145
|
fontFamily?: string;
|
|
146
|
+
/**
|
|
147
|
+
* Font family for headings only (article title, card titles, section
|
|
148
|
+
* headings) - falls back to `fontFamily` when omitted. Lets a site use a
|
|
149
|
+
* distinct display face for headings (e.g. a serif) while keeping a
|
|
150
|
+
* separate body font, without hardcoding either into the package.
|
|
151
|
+
* Example: `"'Cinzel', serif"`
|
|
152
|
+
*/
|
|
153
|
+
headerFontFamily?: string;
|
|
146
154
|
/** Color for article card titles and section headings. Example: `'#111827'` */
|
|
147
155
|
headerColor?: string;
|
|
148
156
|
/** Color for body and excerpt text. Example: `'#6b7280'` */
|