@easy-web/cms-adapters 1.15.0 → 1.16.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/README.md CHANGED
@@ -22,6 +22,28 @@ Core retains the only collection schema, content routes and Astro config. The CM
22
22
  recipe emits settings and a standalone `/admin/` route using `AdminPage`, with
23
23
  `buildContentCompositionDecapConfig` deriving its forms from the recorded
24
24
  composition at build time. Non-bound collections stay out of the editor.
25
+ Pass admitted shell options as the optional third argument to
26
+ `createCmsContentSiteRecipes(composition, options, shellOptions)` when generating
27
+ an editable shell. With `shellOptions.editablePages: true`, the generated admin
28
+ calls `buildEditableSiteDecapConfig(siteSchemas, locales, options, siteEditorFields)`
29
+ to compile editor metadata against the authoritative core/site schemas.
30
+ The generated core layout consumes the validated values.
31
+ `createCmsShellRecipes(shellOptions, options)` supplies the same editor without
32
+ requiring an unrelated content collection. These page-editing APIs require the
33
+ forthcoming core/CMS `^1.16.0` release. Theme and header configuration do not
34
+ become CMS fields; existing two-argument calls preserve their previous behavior.
35
+ Optional fourth-argument presentation settings are keyed by content-type ID.
36
+ They select lightbox and cover fallback in generated UI without adding those
37
+ choices to the entity composition or the CMS's storage contract.
38
+
39
+ `buildSchemaDecapConfig` exposes the same supported editor subset for explicit
40
+ definitions. It is not an arbitrary Zod converter: custom refinements run at
41
+ build time and may reject content the editor saved. Unsupported exported
42
+ constraints and missing/mismatched field mappings fail explicitly. Existing
43
+ `buildDecapConfig` plus `AdminPage config={...}` remains the advanced explicit
44
+ configuration path; it bypasses editor mapping checks, never core validation.
45
+ See [extensions, warnings, removal and manual adoption](../../apps/docs/src/content/docs/guides/upgrading-editable-sites.mdx).
46
+
25
47
  This generator supports the same single-locale or DE/EN title/slug/body, optional
26
48
  summary/image/order slice as core; it does not narrow the existing standalone
27
49
  `cmsMediaRecipe` API or its supported traits.
@@ -29,9 +51,8 @@ summary/image/order slice as core; it does not narrow the existing standalone
29
51
  Generated content-plus-CMS sites require core and CMS adapters `^1.9.0`, the first
30
52
  release exporting `buildContentCompositionDecapConfig` and its coupled core recipe
31
53
  APIs. Selecting `order` or DE/EN content raises both floors to `^1.10.0` for
32
- the new ordering or localization APIs. These unpublished minima assume both
33
- features first ship together in 1.10.0; otherwise the later feature's minimum
34
- must be raised to its first release. These are runtime minima, independent
54
+ the ordering or localization APIs. Lightbox generation uses core/CMS `^1.15.0`.
55
+ These are runtime minima, independent
35
56
  of the version of the creation tool. The standalone media recipe needs core
36
57
  `^1.6.0` for its emitted `fieldsForTraits` API; selecting `order` raises its CMS
37
58
  adapter floor to `^1.10.0` for the optional numeric field behavior.
@@ -8,4 +8,5 @@ export type { FieldDef, ContentTypeDef, SingletonDef } from './types.js';
8
8
  export type { InferData } from './infer.js';
9
9
  export { toDecapCollections, toDecapFiles, buildDecapConfig } from './decap-config.js';
10
10
  export type { DecapCollection, DecapFilesCollection, DecapConfig, DecapConfigOptions } from './decap-config.js';
11
+ export { buildSchemaDecapConfig, type SchemaDecapConfigOptions } from './schema-config.js';
11
12
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/content/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,KAAK,gBAAgB,EAAE,KAAK,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAC1H,OAAO,EAAE,eAAe,EAAE,KAAK,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAChF,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACjE,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,YAAY,EAAE,QAAQ,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AACzE,YAAY,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACvF,YAAY,EAAE,eAAe,EAAE,oBAAoB,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/content/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,KAAK,gBAAgB,EAAE,KAAK,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAC1H,OAAO,EAAE,eAAe,EAAE,KAAK,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAChF,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACjE,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,YAAY,EAAE,QAAQ,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AACzE,YAAY,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACvF,YAAY,EAAE,eAAe,EAAE,oBAAoB,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAChH,OAAO,EAAE,sBAAsB,EAAE,KAAK,wBAAwB,EAAE,MAAM,oBAAoB,CAAC"}
@@ -5,4 +5,5 @@ export { fieldsForTraits } from './trait-field-sets.js';
5
5
  export { defineContentType, defineSingleton } from './define.js';
6
6
  export { toAstroSchema } from './astro-schema.js';
7
7
  export { toDecapCollections, toDecapFiles, buildDecapConfig } from './decap-config.js';
8
+ export { buildSchemaDecapConfig } from './schema-config.js';
8
9
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/content/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAiD,MAAM,oBAAoB,CAAC;AAC1H,OAAO,EAAE,eAAe,EAA0B,MAAM,uBAAuB,CAAC;AAChF,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACjE,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAGlD,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/content/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAiD,MAAM,oBAAoB,CAAC;AAC1H,OAAO,EAAE,eAAe,EAA0B,MAAM,uBAAuB,CAAC;AAChF,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACjE,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAGlD,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAEvF,OAAO,EAAE,sBAAsB,EAAiC,MAAM,oBAAoB,CAAC"}
@@ -0,0 +1,57 @@
1
+ import { z } from 'astro/zod';
2
+ import { type DecapConfigOptions } from './decap-config.js';
3
+ import type { ContentTypeDef, SingletonDef, DecapField } from './types.js';
4
+ type Mapping<D> = {
5
+ readonly schema: z.ZodType;
6
+ readonly definition: D;
7
+ };
8
+ export type SchemaDecapConfigOptions = Omit<DecapConfigOptions, 'contentTypes' | 'singletons'> & {
9
+ readonly contentTypes: readonly Mapping<ContentTypeDef>[];
10
+ readonly singletons?: readonly Mapping<SingletonDef>[];
11
+ };
12
+ /** Exported editor constraints are a subset: custom refinements still run only in the authoritative core/site schema. */
13
+ export declare function buildSchemaDecapConfig(options: SchemaDecapConfigOptions): {
14
+ collections: ({
15
+ fields: readonly DecapField[];
16
+ name: string;
17
+ label: string;
18
+ label_singular?: string;
19
+ folder: string;
20
+ create: boolean;
21
+ delete?: boolean;
22
+ slug?: string;
23
+ extension: "md" | "yml" | "json";
24
+ format: "frontmatter" | "yml" | "json";
25
+ identifier_field: string;
26
+ sortable_fields?: readonly string[];
27
+ filter?: {
28
+ readonly field: string;
29
+ readonly value: string;
30
+ };
31
+ media_folder?: string;
32
+ public_folder?: string;
33
+ } | {
34
+ files: {
35
+ fields: readonly DecapField[];
36
+ name: string;
37
+ label: string;
38
+ file: string;
39
+ }[];
40
+ name: string;
41
+ label: string;
42
+ })[];
43
+ backend: {
44
+ readonly name: "azure";
45
+ readonly repo: string;
46
+ readonly tenant_id: string;
47
+ readonly app_id: string;
48
+ readonly branch: string;
49
+ };
50
+ media_folder: string;
51
+ public_folder: string;
52
+ locale: string;
53
+ load_config_file: false;
54
+ publish_mode?: string;
55
+ };
56
+ export {};
57
+ //# sourceMappingURL=schema-config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema-config.d.ts","sourceRoot":"","sources":["../../src/content/schema-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,WAAW,CAAC;AAC9B,OAAO,EAAoB,KAAK,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAC9E,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAI3E,KAAK,OAAO,CAAC,CAAC,IAAI;IAAE,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC;IAAC,QAAQ,CAAC,UAAU,EAAE,CAAC,CAAA;CAAE,CAAC;AACzE,MAAM,MAAM,wBAAwB,GAAG,IAAI,CAAC,kBAAkB,EAAE,cAAc,GAAG,YAAY,CAAC,GAAG;IAC7F,QAAQ,CAAC,YAAY,EAAE,SAAS,OAAO,CAAC,cAAc,CAAC,EAAE,CAAC;IAC1D,QAAQ,CAAC,UAAU,CAAC,EAAE,SAAS,OAAO,CAAC,YAAY,CAAC,EAAE,CAAC;CAC1D,CAAC;AAmGF,yHAAyH;AACzH,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsCvE"}
@@ -0,0 +1,168 @@
1
+ import { z } from 'astro/zod';
2
+ import { buildDecapConfig } from './decap-config.js';
3
+ const schemaDocument = (schema) => z.toJSONSchema(schema, { io: 'input' });
4
+ function fail(path, issue) {
5
+ throw new Error(`CMS schema mapping "${path}": ${issue}`);
6
+ }
7
+ function assertSupported(node, path) {
8
+ const allowed = new Set(['$schema', 'type', 'properties', 'required', 'additionalProperties', 'items',
9
+ 'enum', 'const', 'minimum', 'maximum', 'minLength', 'maxLength', 'pattern', 'default', 'format']);
10
+ for (const key of Object.keys(node))
11
+ if (!allowed.has(key))
12
+ fail(path, `unsupported exported constraint ${key}`);
13
+ }
14
+ function compile(node, editor, required, path) {
15
+ assertSupported(node, path);
16
+ const { fields, field, pattern, ...metadata } = editor;
17
+ if (node.const !== undefined) {
18
+ if (editor.widget !== 'hidden' || editor.default !== node.const)
19
+ fail(path, 'literal requires a matching hidden field');
20
+ return metadata;
21
+ }
22
+ if (editor.widget === 'hidden') {
23
+ if (editor.default === undefined || !node.enum?.includes(editor.default))
24
+ fail(path, 'hidden default must belong to the schema enum');
25
+ return metadata;
26
+ }
27
+ if (node.type === 'boolean') {
28
+ if (editor.widget !== 'boolean')
29
+ fail(path, 'expected a boolean widget');
30
+ if (node.default !== undefined)
31
+ fail(path, 'schema defaults require explicit custom editor configuration');
32
+ // The legacy builder initializes unchecked controls and marks them optional.
33
+ return { ...metadata, required };
34
+ }
35
+ if (node.default !== undefined || editor.default !== undefined)
36
+ fail(path, 'defaults require explicit custom editor configuration');
37
+ if ((editor.required !== false) !== required)
38
+ fail(path, 'required/optional mapping differs from the schema');
39
+ switch (node.type) {
40
+ case 'object':
41
+ if (editor.widget !== 'object')
42
+ fail(path, 'expected an object widget');
43
+ return { ...metadata, fields: compileFields(node, fields ?? [], path) };
44
+ case 'array': {
45
+ if (editor.widget !== 'list' || !node.items || typeof node.items === 'boolean' || Array.isArray(node.items)) {
46
+ fail(path, 'expected a mapped homogeneous list');
47
+ }
48
+ if (node.items.type === 'object')
49
+ return { ...metadata, fields: compileFields(node.items, fields ?? [], path + '[]') };
50
+ if (!field)
51
+ fail(path, 'list item editor mapping is missing');
52
+ return { ...metadata, field: compile(node.items, field, true, path + '[]') };
53
+ }
54
+ case 'string': {
55
+ if (node.format === 'date') {
56
+ if (editor.widget !== 'datetime' || editor.format !== 'YYYY-MM-DD' || editor.time_format !== false) {
57
+ fail(path, 'date-only string requires a YYYY-MM-DD picker without time');
58
+ }
59
+ }
60
+ else if (node.format) {
61
+ fail(path, `unsupported string format ${node.format}`);
62
+ }
63
+ else if (node.enum) {
64
+ if (editor.widget !== 'select')
65
+ fail(path, 'expected a select widget');
66
+ const options = editor.options?.map(option => typeof option === 'string' ? option : option.value);
67
+ if (!options || options.length !== node.enum.length || options.some((value, index) => value !== node.enum[index])) {
68
+ fail(path, 'select options differ from the schema');
69
+ }
70
+ }
71
+ else if (!['string', 'text'].includes(editor.widget))
72
+ fail(path, 'expected a string/text widget');
73
+ // Existing builders add a whitespace guard; replace that known guard with the authoritative pattern.
74
+ const composed = node.pattern === undefined ? undefined : `^(?=[\\s\\S]*\\S)[\\s\\S]*?(?:${node.pattern})`;
75
+ if (pattern && pattern[0] !== '\\S' && pattern[0] !== node.pattern && pattern[0] !== composed) {
76
+ fail(path, 'editor pattern differs from the schema');
77
+ }
78
+ if (node.maxLength !== undefined || (node.minLength !== undefined && node.minLength > 1)) {
79
+ fail(path, 'string length constraints beyond nonempty require custom editor configuration');
80
+ }
81
+ return { ...metadata, ...(node.pattern ? { pattern: [node.pattern, pattern?.[1] ?? 'Value does not match the content schema.'] } : {}) };
82
+ }
83
+ case 'integer':
84
+ case 'number':
85
+ if (editor.widget !== 'number' || (editor.value_type === 'int') !== (node.type === 'integer')) {
86
+ fail(path, 'number widget integer/float semantics differ from the schema');
87
+ }
88
+ if (editor.min !== undefined && editor.min !== node.minimum)
89
+ fail(path, 'editor minimum differs from the schema');
90
+ if (editor.max !== undefined && editor.max !== node.maximum)
91
+ fail(path, 'editor maximum differs from the schema');
92
+ return { ...metadata, ...(node.minimum !== undefined ? { min: node.minimum } : {}),
93
+ ...(node.maximum !== undefined ? { max: node.maximum } : {}) };
94
+ default: return fail(path, `unsupported property type ${String(node.type)}`);
95
+ }
96
+ }
97
+ function compileFields(node, fields, path) {
98
+ assertSupported(node, path);
99
+ if (node.type !== 'object' || node.additionalProperties !== false)
100
+ fail(path, 'expected a strict object schema');
101
+ if (node.default !== undefined)
102
+ fail(path, 'schema defaults require explicit custom editor configuration');
103
+ const properties = node.properties ?? {};
104
+ const seen = new Set();
105
+ const result = fields.map(editor => {
106
+ if (seen.has(editor.name))
107
+ fail(path + '.' + editor.name, 'duplicate editor mapping');
108
+ seen.add(editor.name);
109
+ // Markdown body belongs to Astro's render pipeline, not frontmatter.
110
+ if (editor.name === 'body' && editor.widget === 'markdown' && !properties.body)
111
+ return editor;
112
+ const property = Object.hasOwn(properties, editor.name) ? properties[editor.name] : undefined;
113
+ if (!property || typeof property === 'boolean')
114
+ fail(path + '.' + editor.name, 'editor field is not declared in the schema');
115
+ return compile(property, editor, node.required?.includes(editor.name) ?? false, path + '.' + editor.name);
116
+ });
117
+ for (const name of Object.keys(properties))
118
+ if (!seen.has(name))
119
+ fail(path + '.' + name, 'editor mapping is missing');
120
+ return result;
121
+ }
122
+ /** Exported editor constraints are a subset: custom refinements still run only in the authoritative core/site schema. */
123
+ export function buildSchemaDecapConfig(options) {
124
+ const { contentTypes, singletons = [], ...settings } = options;
125
+ const names = new Set();
126
+ for (const { definition } of contentTypes) {
127
+ if (definition.variants)
128
+ fail(definition.name, 'variant mappings require custom editor configuration');
129
+ const locales = definition.locales && definition.locales.length > 1 ? definition.locales : [undefined];
130
+ for (const locale of locales) {
131
+ const name = locale === undefined ? definition.name : `${definition.name}_${locale}`;
132
+ if (names.has(name))
133
+ fail(name, 'duplicate collection mapping');
134
+ names.add(name);
135
+ }
136
+ }
137
+ const singletonNames = new Set();
138
+ for (const { definition } of singletons) {
139
+ if (singletonNames.has(definition.name))
140
+ fail(definition.name, 'duplicate singleton mapping');
141
+ singletonNames.add(definition.name);
142
+ }
143
+ if (singletons.length && names.has('site_config'))
144
+ fail('site_config', 'collection conflicts with singleton collection');
145
+ const config = buildDecapConfig({
146
+ ...settings, contentTypes: contentTypes.map(mapping => mapping.definition),
147
+ singletons: singletons.map(mapping => mapping.definition),
148
+ });
149
+ return {
150
+ ...config,
151
+ collections: config.collections.map(collection => {
152
+ if ('folder' in collection) {
153
+ const mapping = contentTypes.find(({ definition }) => collection.name === definition.name
154
+ || definition.locales?.some(locale => collection.name === `${definition.name}_${locale}`));
155
+ if (!mapping || mapping.definition.variants)
156
+ fail(collection.name, 'variant mappings require custom editor configuration');
157
+ return { ...collection, fields: compileFields(schemaDocument(mapping.schema), collection.fields, collection.name) };
158
+ }
159
+ return { ...collection, files: collection.files.map(file => {
160
+ const mapping = singletons.find(({ definition }) => definition.name === file.name);
161
+ if (!mapping)
162
+ fail(file.name, 'singleton schema is missing');
163
+ return { ...file, fields: compileFields(schemaDocument(mapping.schema), file.fields, file.name) };
164
+ }) };
165
+ }),
166
+ };
167
+ }
168
+ //# sourceMappingURL=schema-config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema-config.js","sour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AAC,QAAQ;oBAAE,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,sDAAsD,CAAC,CAAC;gBAC3H,OAAO,EAAE,GAAG,UAAU,EAAE,MAAM,EAAE,aAAa,CAAC,cAAc,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC;YACxH,CAAC;YACD,OAAO,EAAE,GAAG,UAAU,EAAE,KAAK,EAAE,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;oBACvD,MAAM,OAAO,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC,UAAU,CAAC,IAAI,KAAK,IAAI,CAAC,IAAI,CAAC,CAAC;oBACnF,IAAI,CAAC,OAAO;wBAAE,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,6BAA6B,CAAC,CAAC;oBAC7D,OAAO,EAAE,GAAG,IAAI,EAAE,MAAM,EAAE,aAAa,CAAC,cAAc,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;gBACtG,CAAC,CAAC,EAAE,CAAC;QACT,CAAC,CAAC;KACL,CAAC;AACN,CAAC"}
@@ -1,8 +1,52 @@
1
1
  import type { RecipeMetadata } from '@easy-web/core/recipes';
2
2
  /** Compose package-owned contributions before generation; never merge or rewrite generated JavaScript. */
3
- export declare function createCmsContentSiteRecipes(rawComposition: unknown, rawOptions: unknown): {
3
+ export declare function createCmsContentSiteRecipes(rawComposition: unknown, rawOptions: unknown, rawShellOptions?: unknown, rawPresentation?: unknown): {
4
4
  cms: RecipeMetadata;
5
5
  shell: RecipeMetadata<import("@easy-web/core/recipes").ShellRecipeOptions>;
6
6
  content: RecipeMetadata;
7
7
  };
8
+ /** A page-editable shell needs no unrelated collection solely to enable its editor. */
9
+ export declare function createCmsShellRecipes(rawShellOptions: unknown, rawOptions: unknown): {
10
+ shell: RecipeMetadata<{
11
+ siteName: string;
12
+ defaultLocale: string;
13
+ noIndex: boolean;
14
+ siteUrl?: string | undefined;
15
+ editablePages?: boolean | undefined;
16
+ theme?: {
17
+ light?: {
18
+ surface?: string | undefined;
19
+ onSurface?: string | undefined;
20
+ surfaceMuted?: string | undefined;
21
+ primary?: string | undefined;
22
+ onPrimary?: string | undefined;
23
+ border?: string | undefined;
24
+ muted?: string | undefined;
25
+ danger?: string | undefined;
26
+ onDanger?: string | undefined;
27
+ accent?: string | undefined;
28
+ link?: string | undefined;
29
+ } | undefined;
30
+ dark?: {
31
+ surface?: string | undefined;
32
+ onSurface?: string | undefined;
33
+ surfaceMuted?: string | undefined;
34
+ primary?: string | undefined;
35
+ onPrimary?: string | undefined;
36
+ border?: string | undefined;
37
+ muted?: string | undefined;
38
+ danger?: string | undefined;
39
+ onDanger?: string | undefined;
40
+ accent?: string | undefined;
41
+ link?: string | undefined;
42
+ } | undefined;
43
+ fonts?: {
44
+ sans?: string[] | undefined;
45
+ mono?: string[] | undefined;
46
+ } | undefined;
47
+ } | undefined;
48
+ headerVariant?: "centered" | "standard" | "hide-on-scroll" | "flyout" | undefined;
49
+ }>;
50
+ cms: RecipeMetadata;
51
+ };
8
52
  //# sourceMappingURL=content-site-recipe.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"content-site-recipe.d.ts","sourceRoot":"","sources":["../src/content-site-recipe.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAM7D,0GAA0G;AAC1G,wBAAgB,2BAA2B,CAAC,cAAc,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO;;;;EAuDvF"}
1
+ {"version":3,"file":"content-site-recipe.d.ts","sourceRoot":"","sources":["../src/content-site-recipe.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAQ7D,0GAA0G;AAC1G,wBAAgB,2BAA2B,CAAC,cAAc,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,eAAe,GAAE,OAAY,EAAE,eAAe,GAAE,OAAY;;;;EAsBrJ;AA0DD,uFAAuF;AACvF,wBAAgB,qBAAqB,CAAC,eAAe,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUlF"}
@@ -1,42 +1,56 @@
1
1
  import { z } from 'astro/zod';
2
- import { createContentSiteRecipes, generatedContentCompositionSchema } from '@easy-web/core/recipes';
2
+ import { createContentSiteRecipes, createShellRecipe, shellRecipe, generatedContentCompositionSchema, validateContentPresentation } from '@easy-web/core/recipes';
3
3
  import { buildContentCompositionDecapConfig, cmsSiteOptionsSchema } from './recipe.js';
4
+ import { contentCompositionSchema } from '@easy-web/core/contracts';
4
5
  const cmsContentRuntimeRange = '^1.9.0';
5
6
  const cmsOrderedContentRuntimeRange = '^1.10.0';
6
7
  /** Compose package-owned contributions before generation; never merge or rewrite generated JavaScript. */
7
- export function createCmsContentSiteRecipes(rawComposition, rawOptions) {
8
+ export function createCmsContentSiteRecipes(rawComposition, rawOptions, rawShellOptions = {}, rawPresentation = {}) {
8
9
  const composition = generatedContentCompositionSchema.parse(rawComposition);
9
10
  const options = cmsSiteOptionsSchema.parse(rawOptions);
10
- const runtimeRange = composition.contentTypes.some((type) => type.imageOptional)
11
- ? '^1.14.0'
12
- : composition.contentTypes.some((type) => type.publish)
13
- ? '^1.11.0'
14
- : composition.contentLocales.length > 1 || composition.contentTypes.some((type) => type.traits.includes('order'))
15
- ? cmsOrderedContentRuntimeRange
16
- : cmsContentRuntimeRange;
17
- buildContentCompositionDecapConfig(composition, options);
18
- const folders = options.mediaRoots.map((source) => ({ source, publicPath: `/${source}` }));
11
+ const shellOptions = shellRecipe.optionsSchema.parse(rawShellOptions);
12
+ const presentation = validateContentPresentation(composition, rawPresentation);
13
+ const runtimeRange = shellOptions.editablePages || (shellOptions.headerVariant && shellOptions.headerVariant !== 'standard') ? '^1.16.0'
14
+ : Object.values(presentation).some((type) => type.photosLayout) ? '^1.15.0'
15
+ : composition.contentTypes.some((type) => type.imageOptional)
16
+ ? '^1.14.0'
17
+ : composition.contentTypes.some((type) => type.publish)
18
+ ? '^1.11.0'
19
+ : composition.contentLocales.length > 1 || composition.contentTypes.some((type) => type.traits.includes('order'))
20
+ ? cmsOrderedContentRuntimeRange
21
+ : cmsContentRuntimeRange;
22
+ buildContentCompositionDecapConfig(composition, options, shellOptions);
19
23
  const contentSite = createContentSiteRecipes(composition, {
20
24
  mediaFolder: options.mediaRoots[0],
21
- shellConfiguration: {
22
- imports: [
23
- "import { unified } from '@astrojs/markdown-remark';",
24
- "import easyWebMarkdown from '@easy-web/core/markdown';",
25
- "import { easyWebCmsPreviewAssets } from '@easy-web/cms-adapters';",
26
- ],
27
- markdownProcessor: 'unified({ remarkPlugins: [easyWebMarkdown] })',
28
- integrations: [`easyWebCmsPreviewAssets({ folders: ${JSON.stringify(folders)} })`],
29
- },
25
+ shellOptions,
26
+ presentation,
27
+ shellConfiguration: cmsShellConfiguration(options),
30
28
  });
31
- const cms = {
29
+ return { ...contentSite, cms: cmsEditorRecipe(composition, options, runtimeRange, !!shellOptions.editablePages, true) };
30
+ }
31
+ function cmsShellConfiguration(options) {
32
+ const folders = options.mediaRoots.map((source) => ({ source, publicPath: `/${source}` }));
33
+ return {
34
+ imports: [
35
+ "import { unified } from '@astrojs/markdown-remark';",
36
+ "import easyWebMarkdown from '@easy-web/core/markdown';",
37
+ "import { easyWebCmsPreviewAssets } from '@easy-web/cms-adapters';",
38
+ ],
39
+ markdownProcessor: 'unified({ remarkPlugins: [easyWebMarkdown] })',
40
+ integrations: [`easyWebCmsPreviewAssets({ folders: ${JSON.stringify(folders)} })`],
41
+ };
42
+ }
43
+ function cmsEditorRecipe(composition, options, runtimeRange, editablePages, content) {
44
+ return {
32
45
  id: 'cms.decap-editor', version: '1.7.1', protocolVersion: 1,
33
46
  compatibleCliRange: '^0.1.0 || ^0.2.0 || ^0.3.0', compatibleRuntimeRange: runtimeRange,
34
47
  provides: ['cms.decap-editor', 'media.preview-copy'],
35
- requires: ['site.shell', 'content.typed-definitions'], conflicts: [],
48
+ requires: ['site.shell', ...(content ? ['content.typed-definitions'] : [])], conflicts: [],
36
49
  order: { priority: 30, key: 'cms' }, optionsSchema: z.strictObject({}),
37
50
  outputContributions: [
38
51
  { kind: 'dependency', id: 'cms.editor.dependencies', target: 'package.json' },
39
52
  { kind: 'configuration', id: 'cms.editor.options', target: 'src/config/cms.ts' },
53
+ ...(editablePages ? [{ kind: 'configuration', id: 'cms.editor.site-fields', target: 'src/config/site-editor.ts' }] : []),
40
54
  { kind: 'route', id: 'cms.editor.admin', target: '/admin' },
41
55
  ],
42
56
  validators: [],
@@ -46,18 +60,39 @@ export function createCmsContentSiteRecipes(rawComposition, rawOptions) {
46
60
  '@astrojs/markdown-remark': '^7.3.1', sharp: '^0.35.0',
47
61
  } }, null, 2)}\n` },
48
62
  { path: 'src/config/cms.ts', content: `export const cmsOptions = ${JSON.stringify(options, null, 2)} as const;\n` },
63
+ ...(editablePages ? [{ path: 'src/config/site-editor.ts', content: `import type { EditableSiteEditorFields } from '@easy-web/cms-adapters';
64
+
65
+ export const siteEditorFields = {} satisfies EditableSiteEditorFields;
66
+ ` }] : []),
49
67
  { path: 'src/pages/admin.astro', content: `---
50
68
  import AdminPage from '@easy-web/cms-adapters/components/AdminPage.astro';
51
- import { buildContentCompositionDecapConfig } from '@easy-web/cms-adapters';
52
- import { composition } from '../content/definitions';
69
+ import { buildContentCompositionDecapConfig${editablePages ? ', buildEditableSiteDecapConfig' : ''} } from '@easy-web/cms-adapters';
70
+ ${content ? "import { composition } from '../content/definitions';" : `const composition = ${JSON.stringify(composition)} as const;`}
53
71
  import { cmsOptions } from '../config/cms';
72
+ ${editablePages ? `import { siteSchemas } from '../content/site';
73
+ import { siteEditorFields } from '../config/site-editor';` : ''}
54
74
 
55
- const config = buildContentCompositionDecapConfig(composition, cmsOptions);
75
+ ${content ? 'const contentConfig = buildContentCompositionDecapConfig(composition, cmsOptions);' : ''}
76
+ ${editablePages ? `const siteConfig = buildEditableSiteDecapConfig(siteSchemas, ${JSON.stringify(composition.contentLocales)} as const, cmsOptions, siteEditorFields);
77
+ const config = { ...siteConfig, collections: [${content ? '...contentConfig.collections, ' : ''}...siteConfig.collections] };`
78
+ : 'const config = contentConfig;'}
56
79
  ---
57
80
  <AdminPage config={config} lang={cmsOptions.uiLocale} />
58
81
  ` },
59
82
  ] }),
60
83
  };
61
- return { ...contentSite, cms };
84
+ }
85
+ /** A page-editable shell needs no unrelated collection solely to enable its editor. */
86
+ export function createCmsShellRecipes(rawShellOptions, rawOptions) {
87
+ const shellOptions = shellRecipe.optionsSchema.parse(rawShellOptions);
88
+ if (!shellOptions.editablePages)
89
+ throw new Error('A standalone CMS shell requires editablePages');
90
+ const options = cmsSiteOptionsSchema.parse(rawOptions);
91
+ const composition = contentCompositionSchema.parse({ contentLocales: [shellOptions.defaultLocale], contentTypes: [] });
92
+ buildContentCompositionDecapConfig(composition, options, shellOptions);
93
+ return {
94
+ shell: createShellRecipe(shellOptions, [], cmsShellConfiguration(options)),
95
+ cms: cmsEditorRecipe(composition, options, '^1.16.0', true, false),
96
+ };
62
97
  }
63
98
  //# sourceMappingURL=content-site-recipe.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"content-site-recipe.js","sourceRoot":"","sources":["../src/content-site-recipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,WAAW,CAAC;AAC9B,OAAO,EAAE,wBAAwB,EAAE,iCAAiC,EAAE,MAAM,wBAAwB,CAAC;AAErG,OAAO,EAAE,kCAAkC,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAEvF,MAAM,sBAAsB,GAAG,QAAQ,CAAC;AACxC,MAAM,6BAA6B,GAAG,SAAS,CAAC;AAEhD,0GAA0G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B;IACjF,MAAM,YAAY,GAAG,WAAW,CAAC,aAAa,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;IACtE,IAAI,CAAC,YAAY,CAAC,aAAa;QAAE,MAAM,IAAI,KAAK,CAAC,+CAA+C,CAAC,CAAC;IAClG,MAAM,OAAO,GAAG,oBAAoB,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;IACvD,MAAM,WAAW,GAAG,wBAAwB,CAAC,KAAK,CAAC,EAAE,cAAc,EAAE,CAAC,YAAY,CAAC,aAAa,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE,CAAC,CAAC;IACvH,kCAAkC,CAAC,WAAW,EAAE,OAAO,EAAE,YAAY,CAAC,CAAC;IACvE,OAAO;QACL,KAAK,EAAE,iBAAiB,CAAC,YAAY,EAAE,EAAE,EAAE,qBAAqB,CAAC,OAAO,CAAC,CAAC;QAC1E,GAAG,EAAE,eAAe,CAAC,WAAW,EAAE,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,CAAC;KACnE,CAAC;AACJ,CAAC"}
package/dist/index.d.ts CHANGED
@@ -1,10 +1,11 @@
1
1
  export * from './types/index.js';
2
2
  export * from './scaffold/index.js';
3
- export { field, fieldSets, fieldsForTraits, defaultAdminContent, isSafePublicHref, defineContentType, defineSingleton, toAstroSchema, toDecapCollections, toDecapFiles, buildDecapConfig } from './content/index.js';
3
+ export { field, fieldSets, fieldsForTraits, defaultAdminContent, isSafePublicHref, defineContentType, defineSingleton, toAstroSchema, toDecapCollections, toDecapFiles, buildDecapConfig, buildSchemaDecapConfig } from './content/index.js';
4
4
  export type { AdminNoticeLevel, AdminShellContent, FieldDef, ContentTypeDef, SingletonDef, InferData, TraitFieldOptions } from './content/index.js';
5
5
  export { easyWebCmsPreviewAssets } from './preview-assets/index.js';
6
6
  export type { CmsPreviewAssetFolder, CmsPreviewAssetOptions } from './preview-assets/index.js';
7
- export { CMS_MEDIA_RECIPE_ID, cmsMediaRecipe, cmsSiteOptionsSchema, buildContentCompositionDecapConfig } from './recipe.js';
8
- export type { CmsMediaRecipeOptions, CmsSiteOptions } from './recipe.js';
9
- export { createCmsContentSiteRecipes } from './content-site-recipe.js';
7
+ export { CMS_MEDIA_RECIPE_ID, cmsMediaRecipe, cmsSiteOptionsSchema, buildContentCompositionDecapConfig, buildEditableSiteDecapConfig } from './recipe.js';
8
+ export type { CmsMediaRecipeOptions, CmsSiteOptions, EditableSiteEditorSchemas, EditableSiteEditorFields } from './recipe.js';
9
+ export type { SchemaDecapConfigOptions } from './content/index.js';
10
+ export { createCmsContentSiteRecipes, createCmsShellRecipes } from './content-site-recipe.js';
10
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,eAAe,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,eAAe,EAAE,aAAa,EAAE,kBAAkB,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACrN,YAAY,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,QAAQ,EAAE,cAAc,EAAE,YAAY,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACpJ,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,YAAY,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AAC/F,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,oBAAoB,EAAE,kCAAkC,EAAE,MAAM,aAAa,CAAC;AAC5H,YAAY,EAAE,qBAAqB,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AACzE,OAAO,EAAE,2BAA2B,EAAE,MAAM,0BAA0B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,eAAe,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,eAAe,EAAE,aAAa,EAAE,kBAAkB,EAAE,YAAY,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAC7O,YAAY,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,QAAQ,EAAE,cAAc,EAAE,YAAY,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACpJ,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,YAAY,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AAC/F,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,oBAAoB,EAAE,kCAAkC,EAAE,4BAA4B,EAAE,MAAM,aAAa,CAAC;AAC1J,YAAY,EAAE,qBAAqB,EAAE,cAAc,EAAE,yBAAyB,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AAC9H,YAAY,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AACnE,OAAO,EAAE,2BAA2B,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC"}
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  export * from './types/index.js';
2
2
  export * from './scaffold/index.js';
3
- export { field, fieldSets, fieldsForTraits, defaultAdminContent, isSafePublicHref, defineContentType, defineSingleton, toAstroSchema, toDecapCollections, toDecapFiles, buildDecapConfig } from './content/index.js';
3
+ export { field, fieldSets, fieldsForTraits, defaultAdminContent, isSafePublicHref, defineContentType, defineSingleton, toAstroSchema, toDecapCollections, toDecapFiles, buildDecapConfig, buildSchemaDecapConfig } from './content/index.js';
4
4
  export { easyWebCmsPreviewAssets } from './preview-assets/index.js';
5
- export { CMS_MEDIA_RECIPE_ID, cmsMediaRecipe, cmsSiteOptionsSchema, buildContentCompositionDecapConfig } from './recipe.js';
6
- export { createCmsContentSiteRecipes } from './content-site-recipe.js';
5
+ export { CMS_MEDIA_RECIPE_ID, cmsMediaRecipe, cmsSiteOptionsSchema, buildContentCompositionDecapConfig, buildEditableSiteDecapConfig } from './recipe.js';
6
+ export { createCmsContentSiteRecipes, createCmsShellRecipes } from './content-site-recipe.js';
7
7
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,eAAe,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,eAAe,EAAE,aAAa,EAAE,kBAAkB,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAErN,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAEpE,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,oBAAoB,EAAE,kCAAkC,EAAE,MAAM,aAAa,CAAC;AAE5H,OAAO,EAAE,2BAA2B,EAAE,MAAM,0BAA0B,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,eAAe,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,eAAe,EAAE,aAAa,EAAE,kBAAkB,EAAE,YAAY,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAE7O,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAEpE,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,oBAAoB,EAAE,kCAAkC,EAAE,4BAA4B,EAAE,MAAM,aAAa,CAAC;AAG1J,OAAO,EAAE,2BAA2B,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC"}
package/dist/recipe.d.ts CHANGED
@@ -1,4 +1,56 @@
1
1
  import { z } from 'astro/zod';
2
+ import type { FieldDef } from './content/types.js';
3
+ export interface EditableSiteEditorSchemas {
4
+ readonly page: z.ZodType;
5
+ readonly home: z.ZodType;
6
+ readonly site: z.ZodType;
7
+ readonly navigation: z.ZodType;
8
+ }
9
+ export type EditableSiteEditorFields = Partial<Record<keyof EditableSiteEditorSchemas, readonly FieldDef[]>>;
10
+ /** Editor metadata is separate from the core/site schemas that validate stored content. */
11
+ export declare function buildEditableSiteDecapConfig(schemas: EditableSiteEditorSchemas, locales: readonly [string, ...string[]], rawOptions: unknown, extensions?: EditableSiteEditorFields): {
12
+ collections: ({
13
+ fields: readonly import("./content/types.js").DecapField[];
14
+ name: string;
15
+ label: string;
16
+ label_singular?: string;
17
+ folder: string;
18
+ create: boolean;
19
+ delete?: boolean;
20
+ slug?: string;
21
+ extension: "md" | "yml" | "json";
22
+ format: "frontmatter" | "yml" | "json";
23
+ identifier_field: string;
24
+ sortable_fields?: readonly string[];
25
+ filter?: {
26
+ readonly field: string;
27
+ readonly value: string;
28
+ };
29
+ media_folder?: string;
30
+ public_folder?: string;
31
+ } | {
32
+ files: {
33
+ fields: readonly import("./content/types.js").DecapField[];
34
+ name: string;
35
+ label: string;
36
+ file: string;
37
+ }[];
38
+ name: string;
39
+ label: string;
40
+ })[];
41
+ backend: {
42
+ readonly name: "azure";
43
+ readonly repo: string;
44
+ readonly tenant_id: string;
45
+ readonly app_id: string;
46
+ readonly branch: string;
47
+ };
48
+ media_folder: string;
49
+ public_folder: string;
50
+ locale: string;
51
+ load_config_file: false;
52
+ publish_mode?: string;
53
+ };
2
54
  export declare const CMS_MEDIA_RECIPE_ID = "cms.decap-media";
3
55
  declare const cmsMediaRecipeOptionsSchema: z.ZodObject<{
4
56
  composition: z.ZodReadonly<z.ZodObject<{
@@ -103,7 +155,9 @@ export declare const cmsSiteOptionsSchema: z.ZodObject<{
103
155
  }, z.core.$strict>;
104
156
  export type CmsSiteOptions = z.infer<typeof cmsSiteOptionsSchema>;
105
157
  /** Build the editor from the same trait selections as the page collections, without another schema owner. */
106
- export declare function buildContentCompositionDecapConfig(rawComposition: unknown, rawOptions: unknown): import("./content/decap-config.js").DecapConfig;
158
+ export declare function buildContentCompositionDecapConfig(rawComposition: unknown, rawOptions: unknown, siteEditing?: {
159
+ readonly editablePages?: boolean;
160
+ }): import("./content/decap-config.js").DecapConfig;
107
161
  export declare const cmsMediaRecipe: {
108
162
  id: string;
109
163
  version: string;
@@ -1 +1 @@
1
- {"version":3,"file":"recipe.d.ts","sourceRoot":"","sources":["../src/recipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,WAAW,CAAC;AAU9B,eAAO,MAAM,mBAAmB,oBAAoB,CAAC;AAKrD,QAAA,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAoB/B,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;kBAA0D,CAAC;AAC5F,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AA8BlE,6GAA6G;AAC7G,wBAAgB,kCAAkC,CAAC,cAAc,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,mDAuB9F;AA+BD,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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0D,CAAC;AAC5F,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AA8BlE,6GAA6G;AAC7G,wBAAgB,kCAAkC,CAAC,cAAc,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,WAAW,GAAE;IAAE,QAAQ,CAAC,aAAa,CAAC,EAAE,OAAO,CAAA;CAAO,mDA8CtJ;AA+BD,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6CsB,CAAC;AAElD,eAAe,cAAc,CAAC"}
package/dist/recipe.js CHANGED
@@ -1,8 +1,48 @@
1
1
  import { z } from 'astro/zod';
2
2
  import { contentCompositionSchema, } from '@easy-web/core/contracts';
3
3
  import { buildDecapConfig } from './content/decap-config.js';
4
- import { defineContentType } from './content/define.js';
4
+ import { defineContentType, defineSingleton } from './content/define.js';
5
5
  import { fieldsForTraits } from './content/trait-field-sets.js';
6
+ import { field } from './content/fields.js';
7
+ import { fieldSets } from './content/field-sets.js';
8
+ import { buildSchemaDecapConfig } from './content/schema-config.js';
9
+ /** Editor metadata is separate from the core/site schemas that validate stored content. */
10
+ export function buildEditableSiteDecapConfig(schemas, locales, rawOptions, extensions = {}) {
11
+ const options = cmsSiteOptionsSchema.parse(rawOptions);
12
+ const en = options.uiLocale === 'en';
13
+ const page = defineContentType({
14
+ name: 'site_pages', label: en ? 'Pages' : 'Seiten', folder: 'src/site-content/pages',
15
+ locales, slug: '{{slug}}', fields: [
16
+ ...fieldsForTraits(['title', 'slug', 'summary', 'body'], { uiLocale: options.uiLocale }),
17
+ ...(locales.length === 1 ? [field.hidden('locale', { default: locales[0] })] : []),
18
+ ...(extensions.page ?? []),
19
+ ],
20
+ });
21
+ return buildSchemaDecapConfig({
22
+ backend: { name: 'azure', repo: options.backend.repo, tenant_id: options.backend.tenantId, app_id: options.backend.appId, branch: options.backend.branch },
23
+ mediaFolder: options.mediaRoots[0], publicFolder: `/${options.mediaRoots[0]}`, locale: options.uiLocale,
24
+ contentTypes: [{ schema: schemas.page, definition: page }],
25
+ singletons: [
26
+ ...locales.map(locale => ({
27
+ schema: schemas.home,
28
+ definition: defineSingleton({
29
+ name: `home_${locale}`, label: `${en ? 'Homepage' : 'Startseite'} (${locale.toUpperCase()})`,
30
+ file: `src/site-content/home/${locale}.md`,
31
+ fields: [...fieldsForTraits(['title', 'summary', 'body'], { uiLocale: options.uiLocale }), ...(extensions.home ?? [])],
32
+ }),
33
+ })),
34
+ { schema: schemas.site, definition: defineSingleton({
35
+ name: 'site', label: en ? 'Site settings' : 'Seiteneinstellungen', file: 'src/site-content/settings/site.json',
36
+ fields: [field.hidden('kind', { default: 'site' }), ...fieldSets.siteSettings({ uiLocale: options.uiLocale }), ...(extensions.site ?? [])],
37
+ }) },
38
+ { schema: schemas.navigation, definition: defineSingleton({
39
+ name: 'navigation', label: 'Navigation', file: 'src/site-content/settings/navigation.json',
40
+ fields: [field.hidden('kind', { default: 'navigation' }), ...fieldSets.navigation(locales, { uiLocale: options.uiLocale }), ...(extensions.navigation ?? [])],
41
+ }) },
42
+ ],
43
+ singletonsLabel: en ? 'Site settings' : 'Seiteneinstellungen',
44
+ });
45
+ }
6
46
  export const CMS_MEDIA_RECIPE_ID = 'cms.decap-media';
7
47
  const cmsMediaRuntimeRange = '^1.6.0';
8
48
  const cmsMediaOrderRuntimeRange = '^1.10.0';
@@ -59,17 +99,41 @@ function runtimeDefinitions(options) {
59
99
  });
60
100
  }
61
101
  /** Build the editor from the same trait selections as the page collections, without another schema owner. */
62
- export function buildContentCompositionDecapConfig(rawComposition, rawOptions) {
102
+ export function buildContentCompositionDecapConfig(rawComposition, rawOptions, siteEditing = {}) {
63
103
  const composition = contentCompositionSchema.parse(rawComposition);
64
104
  const options = cmsSiteOptionsSchema.parse(rawOptions);
65
105
  const selected = composition.contentTypes.filter((type) => type.bindings.includes('cms-admin'));
66
- if (!selected.length)
106
+ if (!selected.length && !siteEditing.editablePages)
67
107
  throw new Error('CMS generation requires at least one cms-admin content binding');
68
108
  const definitions = runtimeDefinitions({ ...options, composition: { ...composition, contentTypes: selected } });
109
+ const locales = composition.contentLocales;
110
+ const en = options.uiLocale === 'en';
111
+ const pageFields = fieldsForTraits(['title', 'slug', 'summary', 'body'], { uiLocale: options.uiLocale });
112
+ const singletons = siteEditing.editablePages ? [
113
+ ...locales.map((locale) => defineSingleton({
114
+ name: `home_${locale}`, label: `${en ? 'Homepage' : 'Startseite'} (${locale.toUpperCase()})`,
115
+ file: `src/site-content/home/${locale}.md`,
116
+ fields: fieldsForTraits(['title', 'summary', 'body'], { uiLocale: options.uiLocale }),
117
+ })),
118
+ defineSingleton({
119
+ name: 'site', label: en ? 'Site settings' : 'Seiteneinstellungen', file: 'src/site-content/settings/site.json',
120
+ fields: [field.hidden('kind', { default: 'site' }), ...fieldSets.siteSettings({ uiLocale: options.uiLocale })],
121
+ }),
122
+ defineSingleton({
123
+ name: 'navigation', label: 'Navigation', file: 'src/site-content/settings/navigation.json',
124
+ fields: [field.hidden('kind', { default: 'navigation' }), ...fieldSets.navigation(locales, { uiLocale: options.uiLocale })],
125
+ }),
126
+ ] : [];
127
+ if (siteEditing.editablePages)
128
+ definitions.push(defineContentType({
129
+ name: 'site_pages', label: en ? 'Pages' : 'Seiten', folder: 'src/site-content/pages',
130
+ locales, slug: '{{slug}}', fields: pageFields,
131
+ }));
69
132
  const config = buildDecapConfig({
70
133
  backend: { name: 'azure', repo: options.backend.repo, tenant_id: options.backend.tenantId, app_id: options.backend.appId, branch: options.backend.branch },
71
134
  mediaFolder: options.mediaRoots[0], publicFolder: `/${options.mediaRoots[0]}`,
72
- locale: options.uiLocale, contentTypes: definitions,
135
+ locale: options.uiLocale, contentTypes: definitions, singletons,
136
+ ...(siteEditing.editablePages ? { singletonsLabel: en ? 'Site settings' : 'Seiteneinstellungen' } : {}),
73
137
  });
74
138
  if (composition.contentLocales.length < 2)
75
139
  return config;
@@ -1 +1 @@
1
- {"version":3,"file":"recipe.js","sourceRoot":"","sources":["../src/recipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,WAAW,CAAC;AAC9B,OAAO,EACL,wBAAwB,GAEzB,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAEhE,MAAM,CAAC,MAAM,mBAAmB,GAAG,iBAAiB,CAAC;AACrD,MAAM,oBAAoB,GAAG,QAAQ,CAAC;AACtC,MAAM,yBAAyB,GAAG,SAAS,CAAC;AAE5C,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,4CAA4C,CAAC,CAAC;AAClF,MAAM,2BAA2B,GAAG,CAAC,CAAC,YAAY,CAAC;IACjD,WAAW,EAAE,wBAAwB;IACrC,OAAO,EAAE,CAAC,CAAC,YAAY,CAAC;QACtB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;QACvB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;QAC3B,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;QACxB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC;KAC1C,CAAC;IACF,UAAU,EAAE,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CA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gBACnP,EAAE,IAAI,EAAE,4BAA4B,EAAE,OAAO,EAAE,iBAAiB,CAAC,MAAM,CAAC,WAAW,EAAE,MAAM,CAAC,UAAU,CAAC,CAAC,CAAE,EAAE,MAAM,CAAC,QAAQ,CAAC,EAAE;gBAC9H,EAAE,IAAI,EAAE,uBAAuB,EAAE,OAAO,EAAE,mBAAmB,CAAC,MAAM,CAAC,WAAW,CAAC,EAAE;gBACnF,EAAE,IAAI,EAAE,yBAAyB,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE;gBACpF,EAAE,IAAI,EAAE,yBAAyB,EAAE,OAAO,EAAE,SAAS,EAAE;gBACvD,EAAE,IAAI,EAAE,kBAAkB,EAAE,OAAO,EAAE,8SAA8S,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,YAAY,EAAE;aACzX,EAAE,CAAC;IACN,CAAC;CAC8C,CAAC;AAElD,eAAe,cAAc,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easy-web/cms-adapters",
3
- "version": "1.15.0",
3
+ "version": "1.16.0",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "description": "Decap CMS integration for the easy-web ecosystem — AdminPage component, frontmatter types, and config scaffold.",
@@ -22,7 +22,7 @@
22
22
  "types": "./dist/index.d.ts",
23
23
  "license": "MIT",
24
24
  "dependencies": {
25
- "@easy-web/core": "1.15.0"
25
+ "@easy-web/core": "1.16.0"
26
26
  },
27
27
  "peerDependencies": {
28
28
  "astro": ">=6.0.0 <8.0.0",