create-cogenta 0.2.1 → 0.5.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/dist/blueprint-defaults.d.ts.map +1 -1
- package/dist/blueprint-defaults.js +6 -0
- package/dist/blueprint-defaults.js.map +1 -1
- package/dist/blueprints/assets/photos/association/community-cleanup.jpg +0 -0
- package/dist/blueprints/assets/photos/association/fundraising-dinner.jpg +0 -0
- package/dist/blueprints/assets/photos/association/garden-planting.jpg +0 -0
- package/dist/blueprints/assets/photos/association/harvest-food-drive.jpg +0 -0
- package/dist/blueprints/assets/photos/association/hero.jpg +0 -0
- package/dist/blueprints/assets/photos/association/volunteer-orientation.jpg +0 -0
- package/dist/blueprints/assets/photos/association/winter-coat-collection.jpg +0 -0
- package/dist/blueprints/assets/photos/blog/blog-runs-itself.jpg +0 -0
- package/dist/blueprints/assets/photos/blog/desk-setup.jpg +0 -0
- package/dist/blueprints/assets/photos/blog/editing.jpg +0 -0
- package/dist/blueprints/assets/photos/blog/hero.jpg +0 -0
- package/dist/blueprints/assets/photos/blog/notebooks.jpg +0 -0
- package/dist/blueprints/assets/photos/blog/plain-text-editor.jpg +0 -0
- package/dist/blueprints/assets/photos/blog/reading-nonfiction.jpg +0 -0
- package/dist/blueprints/assets/photos/blog/small-tool.jpg +0 -0
- package/dist/blueprints/assets/photos/blog/writing-schedule.jpg +0 -0
- package/dist/blueprints/assets/photos/magazine/business-2.jpg +0 -0
- package/dist/blueprints/assets/photos/magazine/business-3.jpg +0 -0
- package/dist/blueprints/assets/photos/magazine/business.jpg +0 -0
- package/dist/blueprints/assets/photos/magazine/culture-2.jpg +0 -0
- package/dist/blueprints/assets/photos/magazine/culture-3.jpg +0 -0
- package/dist/blueprints/assets/photos/magazine/culture.jpg +0 -0
- package/dist/blueprints/assets/photos/magazine/news-2.jpg +0 -0
- package/dist/blueprints/assets/photos/magazine/news-3.jpg +0 -0
- package/dist/blueprints/assets/photos/magazine/news.jpg +0 -0
- package/dist/blueprints/assets/photos/magazine/opinion-2.jpg +0 -0
- package/dist/blueprints/assets/photos/magazine/opinion-3.jpg +0 -0
- package/dist/blueprints/assets/photos/magazine/opinion.jpg +0 -0
- package/dist/blueprints/assets/photos/portfolio/adatum-publishing.jpg +0 -0
- package/dist/blueprints/assets/photos/portfolio/contoso-mobile-app.jpg +0 -0
- package/dist/blueprints/assets/photos/portfolio/fabrikam-annual-report.jpg +0 -0
- package/dist/blueprints/assets/photos/portfolio/hero.jpg +0 -0
- package/dist/blueprints/assets/photos/portfolio/litware-signage.jpg +0 -0
- package/dist/blueprints/assets/photos/portfolio/northwind-rebrand.jpg +0 -0
- package/dist/blueprints/assets/photos/portfolio/proseware-launch.jpg +0 -0
- package/dist/blueprints/assets/photos/portfolio/tailspin-streaming.jpg +0 -0
- package/dist/blueprints/assets/photos/portfolio/wingtip-wayfinding.jpg +0 -0
- package/dist/blueprints/assets/photos/restaurant/charred-octopus.jpg +0 -0
- package/dist/blueprints/assets/photos/restaurant/chocolate-tart.jpg +0 -0
- package/dist/blueprints/assets/photos/restaurant/creme-brulee.jpg +0 -0
- package/dist/blueprints/assets/photos/restaurant/hero.jpg +0 -0
- package/dist/blueprints/assets/photos/restaurant/house-red.jpg +0 -0
- package/dist/blueprints/assets/photos/restaurant/house-white.jpg +0 -0
- package/dist/blueprints/assets/photos/restaurant/pan-seared-trout.jpg +0 -0
- package/dist/blueprints/assets/photos/restaurant/poached-pear.jpg +0 -0
- package/dist/blueprints/assets/photos/restaurant/roasted-beet-salad.jpg +0 -0
- package/dist/blueprints/assets/photos/restaurant/slow-roast-duck-leg.jpg +0 -0
- package/dist/blueprints/assets/photos/restaurant/soup-of-the-day.jpg +0 -0
- package/dist/blueprints/assets/photos/restaurant/sparkling-water.jpg +0 -0
- package/dist/blueprints/assets/photos/restaurant/wild-mushroom-risotto.jpg +0 -0
- package/dist/blueprints/assets/photos/saas/avatar-1.jpg +0 -0
- package/dist/blueprints/assets/photos/saas/hero.jpg +0 -0
- package/dist/blueprints/assets/photos/store/camp-blanket.jpg +0 -0
- package/dist/blueprints/assets/photos/store/canvas-tote.jpg +0 -0
- package/dist/blueprints/assets/photos/store/cast-iron-skillet.jpg +0 -0
- package/dist/blueprints/assets/photos/store/ceramic-pour-over-set.jpg +0 -0
- package/dist/blueprints/assets/photos/store/enamel-mug.jpg +0 -0
- package/dist/blueprints/assets/photos/store/everyday-tee.jpg +0 -0
- package/dist/blueprints/assets/photos/store/field-jacket.jpg +0 -0
- package/dist/blueprints/assets/photos/store/hero.jpg +0 -0
- package/dist/blueprints/assets/photos/store/leather-card-holder.jpg +0 -0
- package/dist/blueprints/assets/photos/store/linen-table-runner.jpg +0 -0
- package/dist/blueprints/assets/photos/store/trail-tote.jpg +0 -0
- package/dist/blueprints/assets/photos/store/wool-beanie.jpg +0 -0
- package/dist/blueprints/assets/photos/store/wool-overshirt.jpg +0 -0
- package/dist/blueprints/assets/photos/vitrine/avatar-1.jpg +0 -0
- package/dist/blueprints/assets/photos/vitrine/avatar-2.jpg +0 -0
- package/dist/blueprints/assets/photos/vitrine/avatar-3.jpg +0 -0
- package/dist/blueprints/assets/photos/vitrine/dashboard.jpg +0 -0
- package/dist/blueprints/assets/photos/vitrine/hero.jpg +0 -0
- package/dist/blueprints/association.d.ts +93 -15
- package/dist/blueprints/association.d.ts.map +1 -1
- package/dist/blueprints/association.js +637 -130
- package/dist/blueprints/association.js.map +1 -1
- package/dist/blueprints/blog.d.ts +81 -94
- package/dist/blueprints/blog.d.ts.map +1 -1
- package/dist/blueprints/blog.js +513 -177
- package/dist/blueprints/blog.js.map +1 -1
- package/dist/blueprints/content-pack.d.ts +83 -2
- package/dist/blueprints/content-pack.d.ts.map +1 -1
- package/dist/blueprints/content-pack.js +54 -1
- package/dist/blueprints/content-pack.js.map +1 -1
- package/dist/blueprints/content-packs.d.ts +4 -3
- package/dist/blueprints/content-packs.d.ts.map +1 -1
- package/dist/blueprints/content-packs.js +6 -3
- package/dist/blueprints/content-packs.js.map +1 -1
- package/dist/blueprints/demo-media.d.ts +39 -0
- package/dist/blueprints/demo-media.d.ts.map +1 -0
- package/dist/blueprints/demo-media.js +30 -0
- package/dist/blueprints/demo-media.js.map +1 -0
- package/dist/blueprints/documentation.d.ts +78 -15
- package/dist/blueprints/documentation.d.ts.map +1 -1
- package/dist/blueprints/documentation.js +585 -104
- package/dist/blueprints/documentation.js.map +1 -1
- package/dist/blueprints/magazine.d.ts +81 -15
- package/dist/blueprints/magazine.d.ts.map +1 -1
- package/dist/blueprints/magazine.js +431 -85
- package/dist/blueprints/magazine.js.map +1 -1
- package/dist/blueprints/menus.d.ts +25 -0
- package/dist/blueprints/menus.d.ts.map +1 -0
- package/dist/blueprints/menus.js +33 -0
- package/dist/blueprints/menus.js.map +1 -0
- package/dist/blueprints/photo-assets.d.ts +3 -0
- package/dist/blueprints/photo-assets.d.ts.map +1 -0
- package/dist/blueprints/photo-assets.js +33 -0
- package/dist/blueprints/photo-assets.js.map +1 -0
- package/dist/blueprints/portfolio.d.ts +81 -13
- package/dist/blueprints/portfolio.d.ts.map +1 -1
- package/dist/blueprints/portfolio.js +605 -102
- package/dist/blueprints/portfolio.js.map +1 -1
- package/dist/blueprints/registry.d.ts +3 -1
- package/dist/blueprints/registry.d.ts.map +1 -1
- package/dist/blueprints/registry.js +4 -1
- package/dist/blueprints/registry.js.map +1 -1
- package/dist/blueprints/restaurant.d.ts +65 -20
- package/dist/blueprints/restaurant.d.ts.map +1 -1
- package/dist/blueprints/restaurant.js +350 -117
- package/dist/blueprints/restaurant.js.map +1 -1
- package/dist/blueprints/saas.d.ts +81 -14
- package/dist/blueprints/saas.d.ts.map +1 -1
- package/dist/blueprints/saas.js +469 -132
- package/dist/blueprints/saas.js.map +1 -1
- package/dist/blueprints/site-settings-seed.d.ts +17 -0
- package/dist/blueprints/site-settings-seed.d.ts.map +1 -0
- package/dist/blueprints/site-settings-seed.js +45 -0
- package/dist/blueprints/site-settings-seed.js.map +1 -0
- package/dist/blueprints/starting-skins.d.ts +19 -0
- package/dist/blueprints/starting-skins.d.ts.map +1 -0
- package/dist/blueprints/starting-skins.js +301 -0
- package/dist/blueprints/starting-skins.js.map +1 -0
- package/dist/blueprints/store.d.ts +173 -0
- package/dist/blueprints/store.d.ts.map +1 -0
- package/dist/blueprints/store.js +643 -0
- package/dist/blueprints/store.js.map +1 -0
- package/dist/blueprints/vitrine.d.ts +94 -16
- package/dist/blueprints/vitrine.d.ts.map +1 -1
- package/dist/blueprints/vitrine.js +421 -142
- package/dist/blueprints/vitrine.js.map +1 -1
- package/dist/demo-art/compositions.d.ts +48 -0
- package/dist/demo-art/compositions.d.ts.map +1 -0
- package/dist/demo-art/compositions.js +690 -0
- package/dist/demo-art/compositions.js.map +1 -0
- package/dist/demo-art/index.d.ts +8 -0
- package/dist/demo-art/index.d.ts.map +1 -0
- package/dist/demo-art/index.js +5 -0
- package/dist/demo-art/index.js.map +1 -0
- package/dist/demo-art/oklch.d.ts +39 -0
- package/dist/demo-art/oklch.d.ts.map +1 -0
- package/dist/demo-art/oklch.js +79 -0
- package/dist/demo-art/oklch.js.map +1 -0
- package/dist/demo-art/png.d.ts +24 -0
- package/dist/demo-art/png.d.ts.map +1 -0
- package/dist/demo-art/png.js +110 -0
- package/dist/demo-art/png.js.map +1 -0
- package/dist/demo-art/render.d.ts +228 -0
- package/dist/demo-art/render.d.ts.map +1 -0
- package/dist/demo-art/render.js +478 -0
- package/dist/demo-art/render.js.map +1 -0
- package/dist/llm-setup.d.ts +10 -1
- package/dist/llm-setup.d.ts.map +1 -1
- package/dist/llm-setup.js +12 -2
- package/dist/llm-setup.js.map +1 -1
- package/dist/playground-reset.d.ts.map +1 -1
- package/dist/playground-reset.js +22 -4
- package/dist/playground-reset.js.map +1 -1
- package/dist/prompts.d.ts +12 -0
- package/dist/prompts.d.ts.map +1 -1
- package/dist/prompts.js +32 -0
- package/dist/prompts.js.map +1 -1
- package/dist/recap.d.ts.map +1 -1
- package/dist/recap.js +6 -0
- package/dist/recap.js.map +1 -1
- package/dist/scaffold.d.ts +22 -2
- package/dist/scaffold.d.ts.map +1 -1
- package/dist/scaffold.js +185 -23
- package/dist/scaffold.js.map +1 -1
- package/dist/wizard.d.ts.map +1 -1
- package/dist/wizard.js +4 -1
- package/dist/wizard.js.map +1 -1
- package/package.json +14 -11
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blueprint-defaults.d.ts","sourceRoot":"","sources":["../src/blueprint-defaults.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,mEAAmE;IACnE,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,qFAAqF;IACrF,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAA;CAC9B;AAED,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;IAC5B,QAAQ,CAAC,QAAQ,EAAE,SAAS,gBAAgB,EAAE,CAAA;IAC9C,6FAA6F;IAC7F,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;CAC5B;AAED,sDAAsD;AACtD,MAAM,WAAW,0BAA0B;IACzC,QAAQ,CAAC,eAAe,EAAE,OAAO,CAAA;IACjC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;CAC5B;
|
|
1
|
+
{"version":3,"file":"blueprint-defaults.d.ts","sourceRoot":"","sources":["../src/blueprint-defaults.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,mEAAmE;IACnE,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,qFAAqF;IACrF,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAA;CAC9B;AAED,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;IAC5B,QAAQ,CAAC,QAAQ,EAAE,SAAS,gBAAgB,EAAE,CAAA;IAC9C,6FAA6F;IAC7F,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;CAC5B;AAED,sDAAsD;AACtD,MAAM,WAAW,0BAA0B;IACzC,QAAQ,CAAC,eAAe,EAAE,OAAO,CAAA;IACjC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;CAC5B;AAoCD,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,MAAM,GAAG,iBAAiB,CAgCxE;AAED,6FAA6F;AAC7F,wBAAgB,wBAAwB,CACtC,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GACzC,0BAA0B,CAY5B;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE;IACpC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,YAAY,EAAE,SAAS;QAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;CAC5D,GAAG,MAAM,GAAG,SAAS,CAwCrB"}
|
|
@@ -18,6 +18,7 @@ const PAGE_MAX_AGE = {
|
|
|
18
18
|
association: 600,
|
|
19
19
|
restaurant: 900,
|
|
20
20
|
saas: 600,
|
|
21
|
+
store: 120,
|
|
21
22
|
};
|
|
22
23
|
const CACHE_REASON = {
|
|
23
24
|
blank: 'nothing is known about how often this site will change yet',
|
|
@@ -29,6 +30,7 @@ const CACHE_REASON = {
|
|
|
29
30
|
association: 'events and announcements appear weekly',
|
|
30
31
|
restaurant: 'a menu changes on its own schedule, not by the minute',
|
|
31
32
|
saas: 'pricing and feature pages change with releases, not continuously',
|
|
33
|
+
store: 'stock and prices can change through the day, so two minutes keeps the catalogue honest',
|
|
32
34
|
};
|
|
33
35
|
export function blueprintSettings(blueprintId) {
|
|
34
36
|
const known = BLUEPRINTS.some((entry) => entry.id === blueprintId);
|
|
@@ -86,6 +88,10 @@ export function inferBlueprint(input) {
|
|
|
86
88
|
id: 'restaurant',
|
|
87
89
|
pattern: /\b(restaurant|bistro|brasserie|traiteur|menu|carte|plat|dish)\b/,
|
|
88
90
|
},
|
|
91
|
+
{
|
|
92
|
+
id: 'store',
|
|
93
|
+
pattern: /\b(boutique|e-commerce|ecommerce|commerce en ligne|online store|webshop|web shop|vendre en ligne|shopping cart|panier|checkout)\b/,
|
|
94
|
+
},
|
|
89
95
|
{
|
|
90
96
|
id: 'portfolio',
|
|
91
97
|
pattern: /\b(portfolio|photographe|photographer|designer|graphiste|illustrateur|projet|project)\b/,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blueprint-defaults.js","sourceRoot":"","sources":["../src/blueprint-defaults.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAA;AACvE,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AAgDrD;;;;;;;GAOG;AACH,MAAM,YAAY,GAAqC;IACrD,KAAK,EAAE,EAAE;IACT,OAAO,EAAE,GAAG;IACZ,IAAI,EAAE,GAAG;IACT,QAAQ,EAAE,GAAG;IACb,SAAS,EAAE,GAAG;IACd,aAAa,EAAE,IAAI;IACnB,WAAW,EAAE,GAAG;IAChB,UAAU,EAAE,GAAG;IACf,IAAI,EAAE,GAAG;
|
|
1
|
+
{"version":3,"file":"blueprint-defaults.js","sourceRoot":"","sources":["../src/blueprint-defaults.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAA;AACvE,OAAO,EAA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,CAAC,KAG9B;IACC,MAAM,QAAQ,GAAG,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,KAAK,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;SAC9E,IAAI,CAAC,GAAG,CAAC;SACT,SAAS,CAAC,KAAK,CAAC;SAChB,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC;SACrB,WAAW,EAAE,CAAA;IAEhB,MAAM,KAAK,GAAiE;QAC1E;YACE,EAAE,EAAE,YAAY;YAChB,OAAO,EAAE,iEAAiE;SAC3E;QACD;YACE,EAAE,EAAE,OAAO;YACX,OAAO,EACL,mIAAmI;SACtI;QACD;YACE,EAAE,EAAE,WAAW;YACf,OAAO,EACL,yFAAyF;SAC5F;QACD;YACE,EAAE,EAAE,eAAe;YACnB,OAAO,EAAE,8DAA8D;SACxE;QACD;YACE,EAAE,EAAE,aAAa;YACjB,OAAO,EAAE,kEAAkE;SAC5E;QACD,EAAE,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,qEAAqE,EAAE;QAC9F,EAAE,EAAE,EAAE,UAAU,EAAE,OAAO,EAAE,qDAAqD,EAAE;QAClF,EAAE,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,gCAAgC,EAAE;QACzD;YACE,EAAE,EAAE,SAAS;YACb,OAAO,EAAE,iFAAiF;SAC3F;KACF,CAAA;IAED,OAAO,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,EAAE,EAAE,CAAA;AAC9D,CAAC"}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,11 +1,31 @@
|
|
|
1
1
|
import type { VocabularyBlock } from '@cogenta/blocks';
|
|
2
2
|
import { type CollectionDefinition } from '@cogenta/schema';
|
|
3
3
|
import { type BlueprintContentPack, type RecommendedAgentHint } from './content-pack.js';
|
|
4
|
+
import type { DemoMediaSpec } from './demo-media.js';
|
|
5
|
+
import type { BlueprintMenus } from './menus.js';
|
|
4
6
|
/**
|
|
5
|
-
* The `association` blueprint's content model (
|
|
6
|
-
* nonprofit
|
|
7
|
-
* back to check
|
|
8
|
-
*
|
|
7
|
+
* The `association` blueprint's content model (L25 pass, batch — warm,
|
|
8
|
+
* human template for a nonprofit or community group): an `event` collection
|
|
9
|
+
* (what a returning visitor comes back to check, dated and located) and a
|
|
10
|
+
* small set of pages built around the mission, the programmes, and a call
|
|
11
|
+
* to act (donate, volunteer, attend).
|
|
12
|
+
*
|
|
13
|
+
* `blocks` on `event` (a page-builder zone, `f.blocks()`) carries the
|
|
14
|
+
* per-event "When / Where" panel — a real `stats` block the theme renders
|
|
15
|
+
* exactly like any other one. This is a deliberate workaround for a real
|
|
16
|
+
* gap, not an oversight: a theme's `renderPage` receives `PageContent`
|
|
17
|
+
* (title, blocks, `PageEntryMeta`), never the entry's raw schema fields, so
|
|
18
|
+
* there is no contract-D-legal way for `@cogenta/theme-association` to read
|
|
19
|
+
* `date`/`location` on a *single* event's own page (unlike the home page's
|
|
20
|
+
* `collectionList`, whose `ContentEntry[]` *does* carry every raw field —
|
|
21
|
+
* see that block's own `date`/`location` reading). Baking a `stats` block
|
|
22
|
+
* with the same date/location the blueprint already computed keeps the
|
|
23
|
+
* panel real, dated correctly, and rendered by ordinary block code — no
|
|
24
|
+
* theme-kit/`cogenta serve` change, which is out of this task's scope.
|
|
25
|
+
* The same `blocks` zone also carries a second, longer `prose` paragraph
|
|
26
|
+
* (`AssociationDemoEvent.whatToExpect`, L26) — without it an event's own
|
|
27
|
+
* page was only its one-line `description`, a photo and the When/Where
|
|
28
|
+
* panel, which read as bare next to the rest of the site.
|
|
9
29
|
*/
|
|
10
30
|
export declare const event: {
|
|
11
31
|
readonly name: "event";
|
|
@@ -17,26 +37,58 @@ export declare const event: {
|
|
|
17
37
|
readonly pattern: "/events/:slug";
|
|
18
38
|
};
|
|
19
39
|
readonly fields: {
|
|
20
|
-
|
|
40
|
+
readonly seoTitle: import("@cogenta/schema").FieldDefinition & {
|
|
21
41
|
readonly kind: "text";
|
|
22
42
|
readonly options: Readonly<Record<string, unknown>>;
|
|
23
43
|
};
|
|
24
|
-
|
|
44
|
+
readonly seoDescription: import("@cogenta/schema").FieldDefinition & {
|
|
45
|
+
readonly kind: "text";
|
|
46
|
+
readonly options: Readonly<Record<string, unknown>>;
|
|
47
|
+
};
|
|
48
|
+
readonly seoImage: import("@cogenta/schema").FieldDefinition & {
|
|
49
|
+
readonly kind: "media";
|
|
50
|
+
readonly options: {
|
|
51
|
+
accept: readonly ("audio" | "file" | "image" | "video")[];
|
|
52
|
+
many: boolean;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
readonly seoNoindex: import("@cogenta/schema").FieldDefinition & {
|
|
56
|
+
readonly kind: "boolean";
|
|
57
|
+
readonly options: {};
|
|
58
|
+
};
|
|
59
|
+
readonly title: import("@cogenta/schema").FieldDefinition & {
|
|
60
|
+
readonly kind: "text";
|
|
61
|
+
readonly options: Readonly<Record<string, unknown>>;
|
|
62
|
+
};
|
|
63
|
+
readonly slug: import("@cogenta/schema").FieldDefinition & {
|
|
25
64
|
readonly kind: "slug";
|
|
26
65
|
readonly options: Readonly<Record<string, unknown>>;
|
|
27
66
|
};
|
|
28
|
-
date: import("@cogenta/schema").FieldDefinition & {
|
|
67
|
+
readonly date: import("@cogenta/schema").FieldDefinition & {
|
|
29
68
|
readonly kind: "datetime";
|
|
30
69
|
readonly options: {};
|
|
31
70
|
};
|
|
32
|
-
location: import("@cogenta/schema").FieldDefinition & {
|
|
71
|
+
readonly location: import("@cogenta/schema").FieldDefinition & {
|
|
33
72
|
readonly kind: "text";
|
|
34
73
|
readonly options: Readonly<Record<string, unknown>>;
|
|
35
74
|
};
|
|
36
|
-
description: import("@cogenta/schema").FieldDefinition & {
|
|
75
|
+
readonly description: import("@cogenta/schema").FieldDefinition & {
|
|
37
76
|
readonly kind: "text";
|
|
38
77
|
readonly options: Readonly<Record<string, unknown>>;
|
|
39
78
|
};
|
|
79
|
+
readonly coverImage: import("@cogenta/schema").FieldDefinition & {
|
|
80
|
+
readonly kind: "media";
|
|
81
|
+
readonly options: {
|
|
82
|
+
accept: readonly ("audio" | "file" | "image" | "video")[];
|
|
83
|
+
many: boolean;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
readonly blocks: import("@cogenta/schema").FieldDefinition & {
|
|
87
|
+
readonly kind: "blocks";
|
|
88
|
+
readonly options: {
|
|
89
|
+
allow: "*" | readonly string[];
|
|
90
|
+
};
|
|
91
|
+
};
|
|
40
92
|
};
|
|
41
93
|
readonly indexes: readonly [readonly ["slug"], readonly ["date"]];
|
|
42
94
|
readonly permissions: {
|
|
@@ -51,10 +103,25 @@ export declare const ASSOCIATION_COLLECTIONS: readonly CollectionDefinition[];
|
|
|
51
103
|
export interface AssociationDemoEvent {
|
|
52
104
|
readonly title: string;
|
|
53
105
|
readonly slug: string;
|
|
54
|
-
|
|
106
|
+
/** Days from scaffold time — always in the future, computed at seed time. */
|
|
107
|
+
readonly daysFromNow: number;
|
|
108
|
+
readonly hour: number;
|
|
109
|
+
readonly minute: number;
|
|
55
110
|
readonly location: string;
|
|
56
111
|
readonly description: string;
|
|
112
|
+
/**
|
|
113
|
+
* A second, longer paragraph seeded as a `prose` block on the event's own
|
|
114
|
+
* page (see `seedAssociationDemoContent`) — `description` alone is a
|
|
115
|
+
* one-line subtitle shown under the title; without this an event's own
|
|
116
|
+
* page was only that subtitle, a photo and the "When / Where" panel.
|
|
117
|
+
*/
|
|
118
|
+
readonly whatToExpect: string;
|
|
57
119
|
}
|
|
120
|
+
/**
|
|
121
|
+
* Six real-sounding events, deliberately spread from one to six weeks out —
|
|
122
|
+
* `npm create cogenta` always produces a site whose "Upcoming events" list
|
|
123
|
+
* is never empty and never stale, whatever day it is scaffolded on.
|
|
124
|
+
*/
|
|
58
125
|
export declare const ASSOCIATION_DEMO_EVENTS: readonly AssociationDemoEvent[];
|
|
59
126
|
export interface AssociationDemoPage {
|
|
60
127
|
readonly title: string;
|
|
@@ -62,12 +129,23 @@ export interface AssociationDemoPage {
|
|
|
62
129
|
readonly blocks: readonly VocabularyBlock[];
|
|
63
130
|
}
|
|
64
131
|
/**
|
|
65
|
-
* `home` (hero +
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
*
|
|
132
|
+
* `home` (hero + impact numbers + programmes + upcoming events + gallery +
|
|
133
|
+
* a volunteer's own words + partner logos + a donate band + FAQ — the
|
|
134
|
+
* eight-to-twelve-block, real-photo home page a template needs), `about`
|
|
135
|
+
* (the mission, told at length), `programmes` (what "What we do" on the
|
|
136
|
+
* home page actually funds, in full), `events` (every upcoming date, not
|
|
137
|
+
* only the home page's own six), `get-involved` (donate/volunteer/become a
|
|
138
|
+
* member, with a real pricing table) and `privacy` (a short, honest note —
|
|
139
|
+
* every footer needs one).
|
|
140
|
+
*
|
|
141
|
+
* A function of `media` (`SeedContext.media`), not a static const: several
|
|
142
|
+
* blocks need ids `seedDemoMedia` only knows at scaffold time.
|
|
69
143
|
*/
|
|
70
|
-
export declare
|
|
144
|
+
export declare function buildAssociationDemoPages(media: Readonly<Record<string, string>>): readonly AssociationDemoPage[];
|
|
145
|
+
/** Header/footer navigation and the header call-to-action button. */
|
|
146
|
+
export declare const ASSOCIATION_MENUS: BlueprintMenus;
|
|
147
|
+
export declare const ASSOCIATION_SITE_SETTINGS: Readonly<Record<string, unknown>>;
|
|
148
|
+
export declare const ASSOCIATION_MEDIA_SPECS: readonly DemoMediaSpec[];
|
|
71
149
|
export declare const ASSOCIATION_RECOMMENDED_AGENTS: readonly RecommendedAgentHint[];
|
|
72
150
|
export declare const associationContentPack: BlueprintContentPack;
|
|
73
151
|
//# sourceMappingURL=association.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"association.d.ts","sourceRoot":"","sources":["../../src/blueprints/association.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAEtD,OAAO,EACL,KAAK,oBAAoB,EAK1B,MAAM,iBAAiB,CAAA;
|
|
1
|
+
{"version":3,"file":"association.d.ts","sourceRoot":"","sources":["../../src/blueprints/association.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAEtD,OAAO,EACL,KAAK,oBAAoB,EAK1B,MAAM,iBAAiB,CAAA;AAExB,OAAO,EACL,KAAK,oBAAoB,EAEzB,KAAK,oBAAoB,EAK1B,MAAM,mBAAmB,CAAA;AAC1B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AACpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAGhD;;;;;;;;;;;;;;;;;;;;;;;GAu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