@rmdes/indiekit-endpoint-homepage 1.0.20 → 1.0.22

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.
Files changed (2) hide show
  1. package/index.js +52 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -186,6 +186,50 @@ export default class HomepageEndpoint {
186
186
  content: { type: "textarea", label: "Content (HTML/Markdown)" },
187
187
  },
188
188
  },
189
+ {
190
+ id: "posting-activity",
191
+ label: "Posting Activity",
192
+ description: "GitHub-style contribution graph showing posting frequency",
193
+ icon: "activity",
194
+ dataEndpoint: null, // Uses Eleventy collections
195
+ defaultConfig: {
196
+ title: "Posting Activity",
197
+ limit: 1,
198
+ },
199
+ configSchema: {
200
+ title: { type: "text", label: "Section title" },
201
+ years: {
202
+ type: "text",
203
+ label: "Years to show (comma-separated, e.g. 2026,2025)",
204
+ },
205
+ limit: {
206
+ type: "number",
207
+ label: "Number of years (ignored if specific years set)",
208
+ min: 0,
209
+ max: 10,
210
+ },
211
+ },
212
+ },
213
+ {
214
+ id: "ai-usage",
215
+ label: "AI Transparency",
216
+ description: "AI usage stats, level breakdown, and contribution graph",
217
+ icon: "zap",
218
+ dataEndpoint: null, // Uses Eleventy collections
219
+ defaultConfig: {
220
+ title: "AI Transparency",
221
+ limit: 1,
222
+ },
223
+ configSchema: {
224
+ title: { type: "text", label: "Section title" },
225
+ limit: {
226
+ type: "number",
227
+ label: "Years to show in graph",
228
+ min: 1,
229
+ max: 10,
230
+ },
231
+ },
232
+ },
189
233
  ];
190
234
  }
191
235
 
@@ -292,6 +336,14 @@ export default class HomepageEndpoint {
292
336
  defaultConfig: {},
293
337
  configSchema: {},
294
338
  },
339
+ {
340
+ id: "ai-usage",
341
+ label: "AI Transparency",
342
+ description: "Compact AI usage stats and contribution graph",
343
+ icon: "zap",
344
+ defaultConfig: {},
345
+ configSchema: {},
346
+ },
295
347
  {
296
348
  id: "custom-html",
297
349
  label: "Custom Content",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rmdes/indiekit-endpoint-homepage",
3
- "version": "1.0.20",
3
+ "version": "1.0.22",
4
4
  "description": "Homepage builder endpoint for Indiekit. Configure layout, sections, and sidebar widgets from the admin UI.",
5
5
  "keywords": [
6
6
  "indiekit",