@easy-web/core 1.9.1 → 1.11.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.
Files changed (53) hide show
  1. package/README.md +25 -6
  2. package/dist/contracts/capabilities.d.ts +3 -0
  3. package/dist/contracts/capabilities.d.ts.map +1 -1
  4. package/dist/contracts/content-composition.d.ts +16 -0
  5. package/dist/contracts/content-composition.d.ts.map +1 -1
  6. package/dist/contracts/content-composition.js +8 -0
  7. package/dist/contracts/content-composition.js.map +1 -1
  8. package/dist/contracts/index.d.ts +1 -0
  9. package/dist/contracts/index.d.ts.map +1 -1
  10. package/dist/contracts/index.js +1 -0
  11. package/dist/contracts/index.js.map +1 -1
  12. package/dist/contracts/ordering.d.ts +6 -0
  13. package/dist/contracts/ordering.d.ts.map +1 -0
  14. package/dist/contracts/ordering.js +22 -0
  15. package/dist/contracts/ordering.js.map +1 -0
  16. package/dist/contracts/traits.d.ts +4 -0
  17. package/dist/contracts/traits.d.ts.map +1 -1
  18. package/dist/contracts/traits.js +3 -1
  19. package/dist/contracts/traits.js.map +1 -1
  20. package/dist/recipes/content-site.d.ts +8 -0
  21. package/dist/recipes/content-site.d.ts.map +1 -1
  22. package/dist/recipes/content-site.js +226 -42
  23. package/dist/recipes/content-site.js.map +1 -1
  24. package/dist/recipes/shell-recipe.d.ts +4 -0
  25. package/dist/recipes/shell-recipe.d.ts.map +1 -1
  26. package/dist/recipes/shell-recipe.js +127 -6
  27. package/dist/recipes/shell-recipe.js.map +1 -1
  28. package/dist/seo/index.d.ts +5 -0
  29. package/dist/seo/index.d.ts.map +1 -1
  30. package/dist/seo/index.js +7 -3
  31. package/dist/seo/index.js.map +1 -1
  32. package/dist/seo/rendered-sitemap-alternates.d.ts +7 -0
  33. package/dist/seo/rendered-sitemap-alternates.d.ts.map +1 -0
  34. package/dist/seo/rendered-sitemap-alternates.js +232 -0
  35. package/dist/seo/rendered-sitemap-alternates.js.map +1 -0
  36. package/package.json +1 -1
  37. package/src/contracts/__tests__/content-composition.test.ts +17 -0
  38. package/src/contracts/__tests__/ordering.test.ts +34 -0
  39. package/src/contracts/capabilities.ts +4 -0
  40. package/src/contracts/content-composition.ts +8 -0
  41. package/src/contracts/index.ts +1 -0
  42. package/src/contracts/ordering.ts +33 -0
  43. package/src/contracts/traits.ts +4 -1
  44. package/src/recipes/__tests__/content-site.test.ts +98 -2
  45. package/src/recipes/__tests__/shell-recipe.test.ts +23 -0
  46. package/src/recipes/content-site.ts +227 -48
  47. package/src/recipes/shell-recipe.ts +132 -6
  48. package/src/seo/__tests__/integration.test.ts +28 -0
  49. package/src/seo/__tests__/rendered-sitemap-alternates.test.ts +127 -0
  50. package/src/seo/__tests__/sitemap-options.test.ts +7 -7
  51. package/src/seo/index.ts +17 -3
  52. package/src/seo/rendered-sitemap-alternates.ts +231 -0
  53. package/src/type-tests/contracts.ts +6 -0
@@ -2,17 +2,27 @@ import { z } from 'astro/zod';
2
2
  import { posix } from 'node:path';
3
3
  import { contentCompositionSchema, defaultReservedContentRoutes } from '../contracts/content-composition.js';
4
4
  import { buildShellFiles, shellRecipe } from './shell-recipe.js';
5
- const supportedTraits = new Set(['title', 'slug', 'summary', 'image', 'body']);
5
+ const supportedTraits = new Set(['title', 'slug', 'summary', 'image', 'body', 'order']);
6
6
  const supportedBindings = new Set(['list', 'detail', 'navigation', 'cms-admin']);
7
7
  const contentRuntimeRange = '^1.6.0';
8
+ const orderedContentRuntimeRange = '^1.10.0';
9
+ function contentRuntimeFor(composition) {
10
+ if (composition.contentTypes.some((type) => type.publish))
11
+ return '^1.11.0';
12
+ return composition.contentLocales.length > 1 || composition.contentTypes.some((type) => type.traits.includes('order'))
13
+ ? orderedContentRuntimeRange : contentRuntimeRange;
14
+ }
8
15
  export const generatedContentCompositionSchema = contentCompositionSchema.superRefine((composition, context) => {
9
- if (composition.contentLocales.length !== 1) {
10
- context.addIssue({ code: 'custom', path: ['contentLocales'], message: 'Content generation currently requires exactly one locale' });
16
+ const locales = composition.contentLocales;
17
+ const localeIds = locales;
18
+ if (locales.length > 1 && (locales.length !== 2 || !localeIds.includes('de') || !localeIds.includes('en'))) {
19
+ context.addIssue({ code: 'custom', path: ['contentLocales'], message: 'Content generation supports one locale or the bilingual DE/EN pair' });
11
20
  }
12
21
  if (!composition.contentTypes.length) {
13
22
  context.addIssue({ code: 'custom', path: ['contentTypes'], message: 'Content generation requires at least one content type' });
14
23
  }
15
24
  const routes = [];
25
+ const localeRoots = new Set(locales.slice(1).map((locale) => `/${locale}`));
16
26
  composition.contentTypes.forEach((type, index) => {
17
27
  const path = ['contentTypes', index];
18
28
  for (const trait of type.traits) {
@@ -32,7 +42,10 @@ export const generatedContentCompositionSchema = contentCompositionSchema.superR
32
42
  || defaultReservedContentRoutes.some((reserved) => reserved !== '/' && `${base}/`.startsWith(reserved))) {
33
43
  context.addIssue({ code: 'custom', path: [...path, 'routes'], message: `Unsupported generated content route "${route}"; use non-reserved lowercase path segments` });
34
44
  }
35
- if (routes.some((other) => base.startsWith(`${other}/`) || other.startsWith(`${base}/`))) {
45
+ if (localeRoots.has(base)) {
46
+ context.addIssue({ code: 'custom', path: [...path, 'routes'], message: `Generated content route "${route}" conflicts with the localized home page` });
47
+ }
48
+ if (routes.some((other) => base === other || base.startsWith(`${other}/`) || other.startsWith(`${base}/`))) {
36
49
  context.addIssue({ code: 'custom', path: [...path, 'routes'], message: `Generated list/detail routes overlap at "${route}"` });
37
50
  }
38
51
  routes.push(base);
@@ -42,52 +55,114 @@ export const generatedContentCompositionSchema = contentCompositionSchema.superR
42
55
  function routeBase(type, locale) {
43
56
  return type.routes[locale].replace(/\/$/, '');
44
57
  }
45
- function collectionSchema(type) {
58
+ function collectionSchema(type, locales) {
46
59
  const shapes = ['...titleTraitSchema.unwrap().shape', '...slugTraitSchema.unwrap().shape'];
47
60
  if (type.traits.includes('summary'))
48
61
  shapes.push('...summaryTraitSchema.unwrap().shape');
49
62
  if (type.traits.includes('image')) {
50
63
  shapes.push('image: imageTraitSchema.unwrap().shape.image.unwrap().extend({ src: image() })');
51
64
  }
65
+ if (locales.length > 1) {
66
+ shapes.push(`locale: z.enum(${JSON.stringify(locales)})`);
67
+ shapes.push("translationKey: z.string().min(1).regex(/\\S/, 'Darf nicht nur aus Leerzeichen bestehen.')");
68
+ }
69
+ if (type.traits.includes('order'))
70
+ shapes.push('...optionalOrderTraitSchema.unwrap().shape');
71
+ if (type.publish)
72
+ shapes.push("publishDate: z.preprocess((value) => value === '' || value === null ? undefined : value, z.union([z.date(), z.string()]).pipe(z.coerce.date()).optional())");
52
73
  // File-based IDs keep duplicate public slugs visible to route validation.
53
74
  return `${JSON.stringify(type.id)}: defineCollection({
54
75
  loader: glob({ pattern: '**/*.md', base: ${JSON.stringify(`./src/content/${type.id}`)}, generateId: ({ entry }) => entry.replace(/\\.md$/, '') }),
55
76
  schema: ${type.traits.includes('image') ? '({ image }) => ' : ''}z.object({ ${shapes.join(', ')} }).strict(),
56
77
  })`;
57
78
  }
58
- function adapterSource(type, locale, index) {
59
- const contracts = ['HasTitle', 'HasSlug', ...(type.traits.includes('summary') ? ['HasSummary'] : []), ...(type.traits.includes('image') ? ['HasImage'] : [])];
79
+ function adapterSource(type, index, locales) {
80
+ const contracts = [
81
+ 'HasTitle',
82
+ 'HasSlug',
83
+ ...(type.traits.includes('summary') ? ['HasSummary'] : []),
84
+ ...(type.traits.includes('image') ? ['HasImage'] : []),
85
+ ...(type.traits.includes('order') ? ['HasOptionalOrder'] : []),
86
+ ];
87
+ const localeType = locales.map((locale) => JSON.stringify(locale)).join(' | ');
88
+ const defaultLocale = locales[0];
89
+ const localized = locales.length > 1;
60
90
  return `import type { CollectionEntry } from 'astro:content';
61
91
  import { assertImplements, type Item, type Linkable, ${contracts.map((name) => `type ${name}`).join(', ')} } from '@easy-web/core/contracts';
62
92
  import { composition } from '../../content/definitions';
63
93
 
64
94
  type Entry = CollectionEntry<${JSON.stringify(type.id)}>;
65
95
  assertImplements<Entry['data'], ${contracts.join(' & ')}>();
66
-
67
- export function toItem(entry: Entry): Item & Linkable {
96
+ ${localized ? `type ContentLocale = ${localeType};\n` : ''}
97
+ export function toItem(entry: Entry${localized ? `, locale: ContentLocale = ${JSON.stringify(defaultLocale)}, basePath = import.meta.env.BASE_URL.replace(/\\/$/, '')` : ''}): Item & Linkable {
68
98
  const data = entry.data;
69
99
  return {
70
100
  title: data.title,
71
101
  ${type.traits.includes('summary') ? 'description: data.summary,' : ''}
72
102
  ${type.traits.includes('image') ? 'image: data.image,' : ''}
73
- href: composition.contentTypes[${index}].routes[${JSON.stringify(locale)}].replace(/\\/$/, '') + '/' + data.slug + '/',
103
+ href: ${localized ? `basePath + ` : `import.meta.env.BASE_URL.replace(/\\/$/, '') + `}composition.contentTypes[${index}].routes[${localized ? 'locale' : JSON.stringify(defaultLocale)}].replace(/\\/$/, '') + '/' + data.slug + '/',
74
104
  };
75
105
  }
76
106
  `;
77
107
  }
78
- function listSource(type, locale) {
108
+ function listSource(type, locale, composition) {
79
109
  const prefix = '../'.repeat(routeBase(type, locale).split('/').length);
110
+ const localized = composition.contentLocales.length > 1;
111
+ const filters = [
112
+ ...(localized ? [`data.locale === ${JSON.stringify(locale)}`] : []),
113
+ ...(type.publish ? [`isPublished(data, ${JSON.stringify(type.publish)}, now)`] : []),
114
+ ];
115
+ const localeFilter = filters.length ? `, ({ data }) => ${filters.join(' && ')}` : '';
116
+ const localizedPaths = JSON.stringify([Object.fromEntries(composition.contentLocales.map((itemLocale) => [itemLocale, `${routeBase(type, itemLocale)}/`]))]);
117
+ const localizedBaseSetup = localized ? `
118
+ const routePath = ${JSON.stringify(`${routeBase(type, locale)}/`)};
119
+ const pagePath = Astro.url.pathname.replace(/\\/+$/, '') || '/';
120
+ const routeWithoutSlash = routePath.replace(/\\/+$/, '') || '/';
121
+ const sitePrefix = routeWithoutSlash === '/' ? (pagePath === '/' ? '' : pagePath)
122
+ : pagePath.endsWith(routeWithoutSlash) ? pagePath.slice(0, -routeWithoutSlash.length) : '';
123
+ ` : '';
124
+ const alternateSetup = localized ? `
125
+ const localizedPathGroups = ${localizedPaths};
126
+ const alternates = getAlternateLinks({
127
+ path: routePath, locales: ${JSON.stringify(composition.contentLocales)},
128
+ defaultLocale: ${JSON.stringify(composition.contentLocales[0])},
129
+ baseUrl: new URL(sitePrefix ? sitePrefix + '/' : '/', Astro.site?.toString() ?? 'https://replace-with-your-domain.example').toString(),
130
+ localizedPaths: localizedPathGroups,
131
+ trailingSlash: ambientTrailingSlash(),
132
+ });
133
+ const alternateHref = alternates.find(({ hreflang }) => hreflang !== ${JSON.stringify(locale)} && hreflang !== 'x-default')?.href;
134
+ ` : '';
135
+ const localeArgument = localized ? `, ${JSON.stringify(locale)}, sitePrefix` : '';
136
+ const itemMapping = type.traits.includes('order')
137
+ ? `.sort((left, right) => compareContentOrder(
138
+ { order: left.data.order, slug: left.data.slug, id: left.id },
139
+ { order: right.data.order, slug: right.data.slug, id: right.id },
140
+ ${JSON.stringify(locale)},
141
+ ))
142
+ ${localized ? `.map((entry) => toItem(entry${localeArgument}))` : '.map(toItem)'}`
143
+ : localized
144
+ ? `.sort((left, right) => left.data.slug < right.data.slug ? -1 : left.data.slug > right.data.slug ? 1 : left.id < right.id ? -1 : left.id > right.id ? 1 : 0)
145
+ .map((entry) => toItem(entry${localeArgument}))`
146
+ : `.map(toItem).sort((left, right) => left.href < right.href ? -1 : left.href > right.href ? 1 : 0)`;
80
147
  return `---
81
148
  import { getCollection } from 'astro:content';
82
149
  import Base from '${prefix}layouts/Base.astro';
83
150
  import { toItem } from '${prefix}lib/content/${type.id}';
151
+ ${type.traits.includes('order') ? "import { compareContentOrder } from '@easy-web/core/contracts';" : ''}
152
+ ${type.publish ? "import { isPublished } from '@easy-web/core/contracts';" : ''}
84
153
  import Card from '@easy-web/core/components/Card.astro';
85
154
  import CardGrid from '@easy-web/core/components/CardGrid.astro';
155
+ ${localized ? "import { getAlternateLinks, ambientTrailingSlash } from '@easy-web/core/i18n';" : ''}
86
156
 
87
- const items = (await getCollection(${JSON.stringify(type.id)}))
88
- .map(toItem).sort((left, right) => left.href < right.href ? -1 : left.href > right.href ? 1 : 0);
157
+ ${localizedBaseSetup}
158
+ ${type.publish ? `const buildInstant = import.meta.env.EASY_WEB_PUBLICATION_INSTANT;
159
+ if (buildInstant === undefined) throw new Error('Publication instant is not configured');
160
+ const now = buildInstant === null ? new Date() : new Date(Number(buildInstant));` : ''}
161
+ const items = (await getCollection(${JSON.stringify(type.id)}${localeFilter}))
162
+ ${itemMapping};
163
+ ${alternateSetup}
89
164
  ---
90
- <Base title={${JSON.stringify(type.labels[locale])}}>
165
+ <Base title={${JSON.stringify(type.labels[locale])}}${localized ? ` locale={${JSON.stringify(locale)}} basePath={sitePrefix} alternates={alternates} alternateHref={alternateHref}` : ''}>
91
166
  <h1>{${JSON.stringify(type.labels[locale])}}</h1>
92
167
  <CardGrid>
93
168
  {items.map((item) => <Card item={item} />)}
@@ -95,32 +170,88 @@ const items = (await getCollection(${JSON.stringify(type.id)}))
95
170
  </Base>
96
171
  `;
97
172
  }
98
- function detailSource(type, locale) {
173
+ function detailSource(type, locale, composition) {
99
174
  const prefix = '../'.repeat(routeBase(type, locale).split('/').length);
175
+ const localized = composition.contentLocales.length > 1;
176
+ const currentRoute = JSON.stringify(`${routeBase(type, locale)}/`);
177
+ const alternateListRoute = localized
178
+ ? JSON.stringify(`${routeBase(type, composition.contentLocales.find((itemLocale) => itemLocale !== locale))}/`)
179
+ : "''";
180
+ const localizedSetup = localized ? `
181
+ const routeBases = ${JSON.stringify(Object.fromEntries(composition.contentLocales.map((itemLocale) => [
182
+ itemLocale, routeBase(type, itemLocale),
183
+ ])))};
184
+ ` : '';
185
+ const localizedMap = localized ? `
186
+ const translations = allEntries.filter((candidate) => candidate.data.translationKey === entry.data.translationKey);
187
+ const translatedLocales = new Set<string>();
188
+ for (const candidate of translations) {
189
+ if (translatedLocales.has(candidate.data.locale)) {
190
+ throw new Error('Duplicate translationKey in locale: ' + candidate.data.translationKey + ' (' + candidate.data.locale + ')');
191
+ }
192
+ translatedLocales.add(candidate.data.locale);
193
+ }
194
+ const localizedPaths = translations.length > 1
195
+ ? Object.fromEntries(translations.map((candidate) => [
196
+ candidate.data.locale, routeBases[candidate.data.locale] + '/' + candidate.data.slug + '/',
197
+ ]))
198
+ : undefined;
199
+ return { params: { slug: entry.data.slug }, props: { entry, localizedPaths } };
200
+ ` : `
201
+ return { params: { slug: entry.data.slug }, props: { entry } };
202
+ `;
203
+ const localeArgument = localized ? `, ${JSON.stringify(locale)}` : '';
100
204
  return `---
101
205
  import { getCollection, render, type CollectionEntry } from 'astro:content';
102
206
  import type { Rendered, Item, Linkable } from '@easy-web/core/contracts';
207
+ ${type.publish ? "import { isPublished } from '@easy-web/core/contracts';" : ''}
103
208
  import Base from '${prefix}layouts/Base.astro';
104
209
  import { toItem } from '${prefix}lib/content/${type.id}';
105
210
  import Prose from '@easy-web/core/components/Prose.astro';
211
+ ${localized ? "import { getAlternateLinks, ambientTrailingSlash } from '@easy-web/core/i18n';" : ''}
106
212
  ${type.traits.includes('image') ? "import Media from '@easy-web/core/components/Media.astro';" : ''}
213
+ interface Props { entry: CollectionEntry<${JSON.stringify(type.id)}>${localized ? '; localizedPaths?: Record<string, string>' : ''} }
214
+ type StaticPath = { params: { slug: string }; props: Props };
107
215
 
108
- export async function getStaticPaths() {
109
- const entries = await getCollection(${JSON.stringify(type.id)});
216
+ export async function getStaticPaths(): Promise<StaticPath[]> {
217
+ ${type.publish ? `const buildInstant = import.meta.env.EASY_WEB_PUBLICATION_INSTANT;
218
+ if (buildInstant === undefined) throw new Error('Publication instant is not configured');
219
+ const now = buildInstant === null ? new Date() : new Date(Number(buildInstant));
220
+ ` : ''}const allEntries = await getCollection(${JSON.stringify(type.id)}${type.publish ? `, ({ data }) => isPublished(data, ${JSON.stringify(type.publish)}, now)` : ''});
221
+ const entries = ${localized ? `allEntries.filter((entry) => entry.data.locale === ${JSON.stringify(locale)})` : 'allEntries'};
110
222
  const seen = new Set<string>();
223
+ ${localizedSetup}
111
224
  return entries.map((entry) => {
112
225
  if (seen.has(entry.data.slug)) throw new Error('Duplicate content slug: ' + entry.data.slug);
113
226
  seen.add(entry.data.slug);
114
- return { params: { slug: entry.data.slug }, props: { entry } };
115
- });
227
+ ${localizedMap} });
116
228
  }
117
229
 
118
- interface Props { entry: CollectionEntry<${JSON.stringify(type.id)}> }
119
- const { entry } = Astro.props;
120
- const rendered: Rendered<Item & Linkable> = { ...toItem(entry), ...(await render(entry)) };
230
+ const { entry${localized ? ', localizedPaths' : ''} } = Astro.props;
231
+ ${localized ? `
232
+ const localizedPathGroups = localizedPaths
233
+ ? [localizedPaths]
234
+ : undefined;
235
+ const routePath = ${currentRoute} + entry.data.slug + '/';
236
+ const pagePath = Astro.url.pathname.replace(/\\/+$/, '') || '/';
237
+ const routeWithoutSlash = routePath.replace(/\\/+$/, '') || '/';
238
+ const sitePrefix = routeWithoutSlash === '/' ? (pagePath === '/' ? '' : pagePath)
239
+ : pagePath.endsWith(routeWithoutSlash) ? pagePath.slice(0, -routeWithoutSlash.length) : '';
240
+ const alternates = localizedPathGroups ? getAlternateLinks({
241
+ path: routePath,
242
+ locales: ${JSON.stringify(composition.contentLocales)},
243
+ defaultLocale: ${JSON.stringify(composition.contentLocales[0])},
244
+ baseUrl: new URL(sitePrefix ? sitePrefix + '/' : '/', Astro.site?.toString() ?? 'https://replace-with-your-domain.example').toString(),
245
+ localizedPaths: localizedPathGroups,
246
+ trailingSlash: ambientTrailingSlash(),
247
+ }) : [];
248
+ const alternateHref = alternates.find(({ hreflang }) => hreflang !== ${JSON.stringify(locale)} && hreflang !== 'x-default')?.href
249
+ ?? sitePrefix + ${alternateListRoute};
250
+ ` : ''}
251
+ const rendered: Rendered<Item & Linkable> = { ...toItem(entry${localeArgument}), ...(await render(entry)) };
121
252
  const { Content } = rendered;
122
253
  ---
123
- <Base title={rendered.title} description={rendered.description}${type.traits.includes('image') ? ' image={rendered.image?.src && (typeof rendered.image.src === \'string\' ? rendered.image.src : rendered.image.src.src)}' : ''}>
254
+ <Base title={rendered.title} description={rendered.description}${localized ? ` locale={${JSON.stringify(locale)}} basePath={sitePrefix} alternates={alternates} alternateHref={alternateHref}` : ''}${type.traits.includes('image') ? ' image={rendered.image?.src && (typeof rendered.image.src === \'string\' ? rendered.image.src : rendered.image.src.src)}' : ''}>
124
255
  <Prose>
125
256
  <h1>{rendered.title}</h1>
126
257
  {rendered.description && <p>{rendered.description}</p>}
@@ -131,24 +262,26 @@ const { Content } = rendered;
131
262
  `;
132
263
  }
133
264
  function contentFiles(composition, options) {
134
- const locale = composition.contentLocales[0];
265
+ const locales = composition.contentLocales;
266
+ const localized = locales.length > 1;
267
+ const runtimeRange = contentRuntimeFor(composition);
135
268
  const mediaFolder = z.string().regex(/^src\/assets(?:\/[a-z0-9]+(?:-[a-z0-9]+)*)*$/)
136
269
  .parse(options.mediaFolder ?? 'src/assets');
137
270
  const exampleImage = `${mediaFolder}/content-example.svg`;
138
271
  const files = [
139
272
  { path: 'src/content/definitions.ts', content: `import { defineCollection, z } from 'astro:content';
140
273
  import { glob } from 'astro/loaders';
141
- import { titleTraitSchema, slugTraitSchema${composition.contentTypes.some((type) => type.traits.includes('summary')) ? ', summaryTraitSchema' : ''}${composition.contentTypes.some((type) => type.traits.includes('image')) ? ', imageTraitSchema' : ''} } from '@easy-web/core/contracts';
274
+ import { titleTraitSchema, slugTraitSchema${composition.contentTypes.some((type) => type.traits.includes('summary')) ? ', summaryTraitSchema' : ''}${composition.contentTypes.some((type) => type.traits.includes('image')) ? ', imageTraitSchema' : ''}${composition.contentTypes.some((type) => type.traits.includes('order')) ? ', optionalOrderTraitSchema' : ''} } from '@easy-web/core/contracts';
142
275
 
143
276
  export const composition = ${JSON.stringify(composition, null, 2)} as const;
144
277
 
145
278
  export const collections = {
146
- ${composition.contentTypes.map(collectionSchema).join(',\n ')},
279
+ ${composition.contentTypes.map((type) => collectionSchema(type, locales)).join(',\n ')},
147
280
  };
148
281
  ` },
149
282
  { path: 'src/content.config.ts', content: "export { collections } from './content/definitions';\n" },
150
283
  { path: 'package.json', content: `${JSON.stringify({ dependencies: {
151
- '@easy-web/core': contentRuntimeRange,
284
+ '@easy-web/core': runtimeRange,
152
285
  ...(composition.contentTypes.some((type) => type.traits.includes('image')) ? { sharp: '^0.35.0' } : {}),
153
286
  } }, null, 2)}\n` },
154
287
  ];
@@ -156,42 +289,93 @@ export const collections = {
156
289
  files.push({ path: exampleImage, content: '<svg xmlns="http://www.w3.org/2000/svg" width="640" height="360" viewBox="0 0 640 360"><rect width="640" height="360" fill="#334155"/><circle cx="320" cy="180" r="90" fill="#94a3b8"/></svg>\n' });
157
290
  }
158
291
  for (const [index, type] of composition.contentTypes.entries()) {
159
- const data = {
160
- title: `${type.labels[locale]} - ${locale === 'de' ? 'Beispiel' : 'Example'}`,
161
- slug: 'example',
162
- ...(type.traits.includes('summary') ? { summary: locale === 'de' ? 'Generierter Beispielinhalt.' : 'Generated example content.' } : {}),
163
- ...(type.traits.includes('image') ? { image: { src: posix.relative(`src/content/${type.id}`, exampleImage), alt: locale === 'de' ? 'Kreis auf dunklem Hintergrund' : 'Circle on a dark background' } } : {}),
164
- };
165
- const base = routeBase(type, locale).slice(1);
166
- files.push({ path: `src/content/${type.id}/example.md`, content: `---\n${JSON.stringify(data, null, 2)}\n---\n\n${locale === 'de' ? 'Ersetze diesen Beispielinhalt vor der Veroeffentlichung.' : 'Replace this example content before production.'}\n` }, { path: `src/lib/content/${type.id}.ts`, content: adapterSource(type, locale, index) }, { path: `src/pages/${base}/index.astro`, content: listSource(type, locale) }, { path: `src/pages/${base}/[slug].astro`, content: detailSource(type, locale) });
292
+ files.push({ path: `src/lib/content/${type.id}.ts`, content: adapterSource(type, index, locales) });
293
+ for (const locale of locales) {
294
+ const isGerman = locale === 'de';
295
+ const data = {
296
+ title: `${type.labels[locale]} - ${isGerman ? 'Beispiel' : 'Example'}`,
297
+ slug: 'example',
298
+ ...(localized ? { locale, translationKey: 'example' } : {}),
299
+ ...(type.traits.includes('summary') ? { summary: isGerman ? 'Generierter Beispielinhalt.' : 'Generated example content.' } : {}),
300
+ ...(type.traits.includes('image') ? {
301
+ image: {
302
+ src: posix.relative(`src/content/${type.id}${localized ? `/${locale}` : ''}`, exampleImage),
303
+ alt: isGerman ? 'Kreis auf dunklem Hintergrund' : 'Circle on a dark background',
304
+ },
305
+ } : {}),
306
+ };
307
+ const contentFolder = `src/content/${type.id}${localized ? `/${locale}` : ''}`;
308
+ const body = isGerman ? 'Ersetze diesen Beispielinhalt vor der Veroeffentlichung.' : 'Replace this example content before production.';
309
+ files.push({
310
+ path: `${contentFolder}/example.md`,
311
+ content: `---\n${JSON.stringify(data, null, 2)}\n---\n\n${body}\n`,
312
+ });
313
+ }
314
+ for (const locale of locales) {
315
+ const route = routeBase(type, locale).slice(1);
316
+ files.push({ path: `src/pages/${route}/index.astro`, content: listSource(type, locale, composition) }, { path: `src/pages/${route}/[slug].astro`, content: detailSource(type, locale, composition) });
317
+ }
167
318
  }
168
319
  return files;
169
320
  }
170
321
  /** Bind package-owned content generation to a validated composition, independently of a CMS. */
171
322
  export function createContentSiteRecipes(rawComposition, options = {}) {
172
323
  const composition = generatedContentCompositionSchema.parse(rawComposition);
173
- const locale = composition.contentLocales[0];
324
+ const locales = composition.contentLocales;
325
+ const locale = locales[0];
326
+ const runtimeRange = contentRuntimeFor(composition);
327
+ const navigationByLocale = Object.fromEntries(locales.map((contentLocale) => [
328
+ contentLocale,
329
+ composition.contentTypes.filter((type) => type.bindings.includes('navigation'))
330
+ .map((type) => ({ label: type.labels[contentLocale], href: `${routeBase(type, contentLocale)}/` })),
331
+ ]));
332
+ const localizedPaths = locales.length > 1
333
+ ? [
334
+ Object.fromEntries(locales.map((contentLocale) => [
335
+ contentLocale, contentLocale === locale ? '/' : `/${contentLocale}/`,
336
+ ])),
337
+ ...composition.contentTypes.map((type) => Object.fromEntries(locales.map((contentLocale) => [
338
+ contentLocale, `${routeBase(type, contentLocale)}/`,
339
+ ]))),
340
+ ]
341
+ : [];
174
342
  const files = contentFiles(composition, options);
175
343
  const contributions = files
176
344
  .filter(({ path }) => !path.startsWith('src/pages/'))
177
345
  .map(({ path }, index) => ({ kind: path === 'package.json' ? 'dependency' : 'file', id: `content.file.${index}`, target: path }));
178
346
  for (const type of composition.contentTypes) {
179
- contributions.push({ kind: 'content', id: `content.type.${type.id}`, target: type.primary ? 'primary' : 'additional' }, { kind: 'route', id: `content.list.${type.id}`, target: `${routeBase(type, locale)}/` }, { kind: 'route', id: `content.detail.${type.id}`, target: `${routeBase(type, locale)}/[slug]` }, ...type.bindings.map((binding) => ({ kind: 'binding', id: `content.binding.${type.id}.${binding}`, target: `content.type.${type.id}` })));
347
+ contributions.push({ kind: 'content', id: `content.type.${type.id}`, target: type.primary ? 'primary' : 'additional' }, ...locales.flatMap((contentLocale) => [
348
+ { kind: 'route', id: `content.list.${type.id}.${contentLocale}`, target: `${routeBase(type, contentLocale)}/` },
349
+ { kind: 'route', id: `content.detail.${type.id}.${contentLocale}`, target: `${routeBase(type, contentLocale)}/[slug]` },
350
+ ]), ...type.bindings.map((binding) => ({ kind: 'binding', id: `content.binding.${type.id}.${binding}`, target: `content.type.${type.id}` })));
180
351
  }
181
- const navigation = composition.contentTypes.filter((type) => type.bindings.includes('navigation'))
182
- .map((type) => ({ label: type.labels[locale], href: `${routeBase(type, locale)}/` }));
352
+ const shellOutputContributions = locales.length > 1
353
+ ? [
354
+ ...shellRecipe.outputContributions,
355
+ ...locales.slice(1).map((contentLocale) => ({
356
+ kind: 'route', id: `shell.home.${contentLocale}`, target: `/${contentLocale}/`,
357
+ })),
358
+ ]
359
+ : shellRecipe.outputContributions;
183
360
  return {
184
361
  shell: {
185
362
  ...shellRecipe,
363
+ outputContributions: shellOutputContributions,
186
364
  validators: [{
187
365
  id: 'shell.content-locale', phase: 'options',
188
- validate: ({ options }) => options.defaultLocale === locale ? [] : [{ code: 'CONTENT_LOCALE_MISMATCH', message: 'shell.defaultLocale must match the content composition locale' }],
366
+ validate: ({ options: shellOptions }) => shellOptions.defaultLocale === locale ? [] : [{ code: 'CONTENT_LOCALE_MISMATCH', message: 'shell.defaultLocale must match the content composition locale' }],
189
367
  }],
190
- generate: ({ options: shellOptions }) => ({ files: buildShellFiles(shellOptions, navigation, options.shellConfiguration) }),
368
+ generate: ({ options: shellOptions }) => ({
369
+ files: buildShellFiles(shellOptions, navigationByLocale[locale], {
370
+ ...options.shellConfiguration,
371
+ ...(composition.contentTypes.some((type) => type.publish) ? { publicationGating: true } : {}),
372
+ ...(locales.length > 1 ? { contentLocales: locales, navigationByLocale, localizedPaths } : {}),
373
+ }),
374
+ }),
191
375
  },
192
376
  content: {
193
377
  id: 'content.pages', version: '1.7.1', protocolVersion: 1,
194
- compatibleCliRange: '^0.1.0 || ^0.2.0', compatibleRuntimeRange: contentRuntimeRange,
378
+ compatibleCliRange: '^0.1.0 || ^0.2.0 || ^0.3.0', compatibleRuntimeRange: runtimeRange,
195
379
  provides: ['content.pages', 'content.typed-definitions'], requires: ['site.shell'], conflicts: [],
196
380
  order: { priority: 10, key: 'content' }, optionsSchema: z.strictObject({}),
197
381
  outputContributions: contributions, validators: [],
@@ -1 +1 @@
1
- {"version":3,"file":"content-site.js","sourceRoot":"","sources":["../../src/recipes/content-site.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,WAAW,CAAC;AAC9B,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,wBAAwB,EAAE,4BAA4B,EAAE,MAAM,qCAAqC,CAAC;AAE7G,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAKjE,MAAM,eAAe,GAAG,IAAI,GAAG,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC;AAC/E,MAAM,iBAAiB,GAAG,IAAI,GAAG,CAAC,CAAC,MA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AAe,CAAC,YAAY,EAAE,kBAAkB,CAAC,MAAM,CAAE,EAAE;oBAC9D,GAAG,OAAO,CAAC,kBAAkB;oBAC7B,GAAG,CAAC,WAAW,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,iBAAiB,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;oBAC7F,GAAG,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;iBACjG,CAAC;aACL,CAAC;SACL;QACD,OAAO,EAAE;YACL,EAAE,EAAE,eAAe,EAAE,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,CAAC;YACzD,kBAAkB,EAAE,4BAA4B,EAAE,sBAAsB,EAAE,YAAY;YACtF,QAAQ,EAAE,CAAC,eAAe,EAAE,2BAA2B,CAAC,EAAE,QAAQ,EAAE,CAAC,YAAY,CAAC,EAAE,SAAS,EAAE,EAAE;YACjG,KAAK,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,GAAG,EAAE,SAAS,EAAE,EAAE,aAAa,EAAE,CAAC,CAAC,YAAY,CAAC,EAAE,CAAC;YAC1E,mBAAmB,EAAE,aAAa,EAAE,UAAU,EAAE,EAAE;YAClD,QAAQ,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC;SAC9B;KACJ,CAAC;AACN,CAAC"}
@@ -12,6 +12,10 @@ export interface ShellConfiguration {
12
12
  readonly imports?: readonly string[];
13
13
  readonly integrations?: readonly string[];
14
14
  readonly markdownProcessor?: string;
15
+ readonly contentLocales?: readonly string[];
16
+ readonly navigationByLocale?: Readonly<Record<string, readonly NavItem[]>>;
17
+ readonly localizedPaths?: readonly Readonly<Record<string, string>>[];
18
+ readonly publicationGating?: boolean;
15
19
  }
16
20
  export declare function buildShellFiles(rawOptions: unknown, navigation?: readonly NavItem[], configuration?: ShellConfiguration): readonly {
17
21
  path: string;
@@ -1 +1 @@
1
- {"version":3,"file":"shell-recipe.d.ts","sourceRoot":"","sources":["../../src/recipes/shell-recipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,WAAW,CAAC;AAE9B,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAErD,eAAO,MAAM,eAAe,eAAe,CAAC;AAE5C,QAAA,MAAM,kBAAkB;;;;kBAItB,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAIpE,sFAAsF;AACtF,MAAM,WAAW,kBAAkB;IAC/B,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACrC,QAAQ,CAAC,YAAY,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC1C,QAAQ,CAAC,iBAAiB,CAAC,EAAE,MAAM,CAAC;CACvC;AA+GD,wBAAgB,eAAe,CAAC,UAAU,EAAE,OAAO,EAAE,UAAU,GAAE,SAAS,OAAO,EAAO,EAAE,aAAa,GAAE,kBAAuB,GAAG,SAAS;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,EAAE,CAa9K;AAED,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAuBA;QAAE,OAAO,CAAC,EAAE,OAAO,CAAA;KAAE;;kBAtCuG,MAAM;qBAAW,MAAM;;;CAuC7H,CAAC;AAE/C,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"shell-recipe.d.ts","sourceRoot":"","sources":["../../src/recipes/shell-recipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,WAAW,CAAC;AAE9B,OAAO,KAA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