@easy-web/cms-adapters 1.8.0 → 1.9.1
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 +33 -0
- package/dist/content-site-recipe.d.ts +8 -0
- package/dist/content-site-recipe.d.ts.map +1 -0
- package/dist/content-site-recipe.js +55 -0
- package/dist/content-site-recipe.js.map +1 -0
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/recipe.d.ts +18 -2
- package/dist/recipe.d.ts.map +1 -1
- package/dist/recipe.js +22 -3
- package/dist/recipe.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -11,6 +11,39 @@ Decap CMS integration package for the [easy-web](https://github.com/achimismaili
|
|
|
11
11
|
|
|
12
12
|
## Usage
|
|
13
13
|
|
|
14
|
+
## Content-aware CLI generation
|
|
15
|
+
|
|
16
|
+
`createCmsContentSiteRecipes(composition, options)` composes core's shell/content
|
|
17
|
+
recipes with a `cms.decap-editor` recipe. Use the CLI's top-level `composition`
|
|
18
|
+
and `recipes.cms` backend/media settings; do not nest another composition inside
|
|
19
|
+
the CMS options. Add `cms-admin` to each editable content type.
|
|
20
|
+
|
|
21
|
+
Core retains the only collection schema, content routes and Astro config. The CMS
|
|
22
|
+
recipe emits settings and a standalone `/admin/` route using `AdminPage`, with
|
|
23
|
+
`buildContentCompositionDecapConfig` deriving its forms from the recorded
|
|
24
|
+
composition at build time. Non-bound collections stay out of the editor.
|
|
25
|
+
This generator supports the same single-locale title/slug/body, optional
|
|
26
|
+
summary/image slice as core; it does not narrow the existing standalone
|
|
27
|
+
`cmsMediaRecipe` API or its supported traits.
|
|
28
|
+
|
|
29
|
+
Generated content-plus-CMS sites require core and CMS adapters `^1.9.0`, the first
|
|
30
|
+
release exporting `buildContentCompositionDecapConfig` and its coupled core recipe
|
|
31
|
+
APIs. These are runtime minima, independent of the version of the creation tool.
|
|
32
|
+
The standalone media recipe needs core and CMS adapters `^1.6.0` for its emitted
|
|
33
|
+
`fieldsForTraits` API; its generated schema/config behavior is unchanged.
|
|
34
|
+
It also declares `@astrojs/markdown-remark`, required by its emitted remark-plugin
|
|
35
|
+
configuration on Astro 7 rather than relying on the host to install it.
|
|
36
|
+
|
|
37
|
+
The first media root owns uploads and sample images; every explicit root gets a
|
|
38
|
+
preview mapping. Duplicate/overlapping roots fail validation. The shell composes
|
|
39
|
+
the shared markdown processor, preview integration and SEO without merging
|
|
40
|
+
generated JavaScript. `shell.noIndex` remains effective, and `/admin/` is always
|
|
41
|
+
excluded from search. None of this supplies preview-host authentication.
|
|
42
|
+
|
|
43
|
+
Backend settings contain public identifiers only. Cloud provisioning, repository
|
|
44
|
+
permissions and Entra setup remain external. Saves target the selected backend
|
|
45
|
+
branch (default `main`); no editorial workflow is enabled.
|
|
46
|
+
|
|
14
47
|
## Source-asset previews
|
|
15
48
|
|
|
16
49
|
Definitions with `mediaFolder: 'src/assets/...'` and `publicFolder: '/src/assets/...'` intentionally produce Astro `ImageMetadata`. Frontend pages therefore keep optimized `/_astro/...` URLs. Decap, however, requests `public_folder` literally. Enable explicit source-to-public mappings when editors need those previews:
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { RecipeMetadata } from '@easy-web/core/recipes';
|
|
2
|
+
/** Compose package-owned contributions before generation; never merge or rewrite generated JavaScript. */
|
|
3
|
+
export declare function createCmsContentSiteRecipes(rawComposition: unknown, rawOptions: unknown): {
|
|
4
|
+
cms: RecipeMetadata;
|
|
5
|
+
shell: RecipeMetadata<import("@easy-web/core/recipes").ShellRecipeOptions>;
|
|
6
|
+
content: RecipeMetadata;
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=content-site-recipe.d.ts.map
|
|
@@ -0,0 +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;AAK7D,0GAA0G;AAC1G,wBAAgB,2BAA2B,CAAC,cAAc,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO;;;;EAgDvF"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { z } from 'astro/zod';
|
|
2
|
+
import { createContentSiteRecipes, generatedContentCompositionSchema } from '@easy-web/core/recipes';
|
|
3
|
+
import { buildContentCompositionDecapConfig, cmsSiteOptionsSchema } from './recipe.js';
|
|
4
|
+
const cmsContentRuntimeRange = '^1.9.0';
|
|
5
|
+
/** Compose package-owned contributions before generation; never merge or rewrite generated JavaScript. */
|
|
6
|
+
export function createCmsContentSiteRecipes(rawComposition, rawOptions) {
|
|
7
|
+
const composition = generatedContentCompositionSchema.parse(rawComposition);
|
|
8
|
+
const options = cmsSiteOptionsSchema.parse(rawOptions);
|
|
9
|
+
buildContentCompositionDecapConfig(composition, options);
|
|
10
|
+
const folders = options.mediaRoots.map((source) => ({ source, publicPath: `/${source}` }));
|
|
11
|
+
const contentSite = createContentSiteRecipes(composition, {
|
|
12
|
+
mediaFolder: options.mediaRoots[0],
|
|
13
|
+
shellConfiguration: {
|
|
14
|
+
imports: [
|
|
15
|
+
"import { unified } from '@astrojs/markdown-remark';",
|
|
16
|
+
"import easyWebMarkdown from '@easy-web/core/markdown';",
|
|
17
|
+
"import { easyWebCmsPreviewAssets } from '@easy-web/cms-adapters';",
|
|
18
|
+
],
|
|
19
|
+
markdownProcessor: 'unified({ remarkPlugins: [easyWebMarkdown] })',
|
|
20
|
+
integrations: [`easyWebCmsPreviewAssets({ folders: ${JSON.stringify(folders)} })`],
|
|
21
|
+
},
|
|
22
|
+
});
|
|
23
|
+
const cms = {
|
|
24
|
+
id: 'cms.decap-editor', version: '1.7.1', protocolVersion: 1,
|
|
25
|
+
compatibleCliRange: '^0.1.0 || ^0.2.0', compatibleRuntimeRange: cmsContentRuntimeRange,
|
|
26
|
+
provides: ['cms.decap-editor', 'media.preview-copy'],
|
|
27
|
+
requires: ['site.shell', 'content.typed-definitions'], conflicts: [],
|
|
28
|
+
order: { priority: 30, key: 'cms' }, optionsSchema: z.strictObject({}),
|
|
29
|
+
outputContributions: [
|
|
30
|
+
{ kind: 'dependency', id: 'cms.editor.dependencies', target: 'package.json' },
|
|
31
|
+
{ kind: 'configuration', id: 'cms.editor.options', target: 'src/config/cms.ts' },
|
|
32
|
+
{ kind: 'route', id: 'cms.editor.admin', target: '/admin' },
|
|
33
|
+
],
|
|
34
|
+
validators: [],
|
|
35
|
+
generate: () => ({ files: [
|
|
36
|
+
{ path: 'package.json', content: `${JSON.stringify({ dependencies: {
|
|
37
|
+
'@easy-web/core': cmsContentRuntimeRange, '@easy-web/cms-adapters': cmsContentRuntimeRange,
|
|
38
|
+
'@astrojs/markdown-remark': '^7.3.1', sharp: '^0.35.0',
|
|
39
|
+
} }, null, 2)}\n` },
|
|
40
|
+
{ path: 'src/config/cms.ts', content: `export const cmsOptions = ${JSON.stringify(options, null, 2)} as const;\n` },
|
|
41
|
+
{ path: 'src/pages/admin.astro', content: `---
|
|
42
|
+
import AdminPage from '@easy-web/cms-adapters/components/AdminPage.astro';
|
|
43
|
+
import { buildContentCompositionDecapConfig } from '@easy-web/cms-adapters';
|
|
44
|
+
import { composition } from '../content/definitions';
|
|
45
|
+
import { cmsOptions } from '../config/cms';
|
|
46
|
+
|
|
47
|
+
const config = buildContentCompositionDecapConfig(composition, cmsOptions);
|
|
48
|
+
---
|
|
49
|
+
<AdminPage config={config} lang={cmsOptions.uiLocale} />
|
|
50
|
+
` },
|
|
51
|
+
] }),
|
|
52
|
+
};
|
|
53
|
+
return { ...contentSite, cms };
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=content-site-recipe.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content-site-recipe.js","sourceRoot":"","sources":["../src/content-site-recipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EA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EAAE;QACpE,KAAK,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,GAAG,EAAE,KAAK,EAAE,EAAE,aAAa,EAAE,CAAC,CAAC,YAAY,CAAC,EAAE,CAAC;QACtE,mBAAmB,EAAE;YACnB,EAAE,IAAI,EAAE,YAAY,EAAE,EAAE,EAAE,yBAAyB,EAAE,MAAM,EAAE,cAAc,EAAE;YAC7E,EAAE,IAAI,EAAE,eAAe,EAAE,EAAE,EAAE,oBAAoB,EAAE,MAAM,EAAE,mBAAmB,EAAE;YAChF,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,kBAAkB,EAAE,MAAM,EAAE,QAAQ,EAAE;SAC5D;QACD,UAAU,EAAE,EAAE;QACd,QAAQ,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE;gBACtB,EAAE,IAAI,EAAE,cAAc,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,SAAS,CAAC,EAAE,YAAY,EAAE;4BACjE,gBAAgB,EAAE,sBAAsB,EAAE,wBAAwB,EAAE,sBAAsB;4BAC1F,0BAA0B,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS;yBACvD,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE;gBACnB,EAAE,IAAI,EAAE,mBAAmB,EAAE,OAAO,EAAE,6BAA6B,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC,cAAc,EAAE;gBACnH,EAAE,IAAI,EAAE,uBAAuB,EAAE,OAAO,EAAE;;;;;;;;;CASjD,EAAE;aACI,EAAE,CAAC;KACP,CAAC;IACF,OAAO,EAAE,GAAG,WAAW,EAAE,GAAG,EAAE,CAAC;AACjC,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export { field, fieldSets, fieldsForTraits, defaultAdminContent, isSafePublicHre
|
|
|
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 } from './recipe.js';
|
|
8
|
-
export type { CmsMediaRecipeOptions } from './recipe.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';
|
|
9
10
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -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,MAAM,aAAa,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,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"}
|
package/dist/index.js
CHANGED
|
@@ -2,5 +2,6 @@ export * from './types/index.js';
|
|
|
2
2
|
export * from './scaffold/index.js';
|
|
3
3
|
export { field, fieldSets, fieldsForTraits, defaultAdminContent, isSafePublicHref, defineContentType, defineSingleton, toAstroSchema, toDecapCollections, toDecapFiles, buildDecapConfig } from './content/index.js';
|
|
4
4
|
export { easyWebCmsPreviewAssets } from './preview-assets/index.js';
|
|
5
|
-
export { CMS_MEDIA_RECIPE_ID, cmsMediaRecipe } from './recipe.js';
|
|
5
|
+
export { CMS_MEDIA_RECIPE_ID, cmsMediaRecipe, cmsSiteOptionsSchema, buildContentCompositionDecapConfig } from './recipe.js';
|
|
6
|
+
export { createCmsContentSiteRecipes } from './content-site-recipe.js';
|
|
6
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,MAAM,aAAa,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,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"}
|
package/dist/recipe.d.ts
CHANGED
|
@@ -76,6 +76,22 @@ declare const cmsMediaRecipeOptionsSchema: z.ZodObject<{
|
|
|
76
76
|
}>>;
|
|
77
77
|
}, z.core.$strict>;
|
|
78
78
|
export type CmsMediaRecipeOptions = z.infer<typeof cmsMediaRecipeOptionsSchema>;
|
|
79
|
+
export declare const cmsSiteOptionsSchema: z.ZodObject<{
|
|
80
|
+
backend: z.ZodObject<{
|
|
81
|
+
repo: z.ZodString;
|
|
82
|
+
tenantId: z.ZodString;
|
|
83
|
+
appId: z.ZodString;
|
|
84
|
+
branch: z.ZodDefault<z.ZodString>;
|
|
85
|
+
}, z.core.$strict>;
|
|
86
|
+
uiLocale: z.ZodDefault<z.ZodEnum<{
|
|
87
|
+
de: "de";
|
|
88
|
+
en: "en";
|
|
89
|
+
}>>;
|
|
90
|
+
mediaRoots: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
91
|
+
}, z.core.$strict>;
|
|
92
|
+
export type CmsSiteOptions = z.infer<typeof cmsSiteOptionsSchema>;
|
|
93
|
+
/** Build the editor from the same trait selections as the page collections, without another schema owner. */
|
|
94
|
+
export declare function buildContentCompositionDecapConfig(rawComposition: unknown, rawOptions: unknown): import("./content/decap-config.js").DecapConfig;
|
|
79
95
|
export declare const cmsMediaRecipe: {
|
|
80
96
|
id: string;
|
|
81
97
|
version: string;
|
|
@@ -186,7 +202,7 @@ export declare const cmsMediaRecipe: {
|
|
|
186
202
|
composition: Readonly<{
|
|
187
203
|
contentLocales: readonly (string & z.core.$brand<"ContentLocale">)[];
|
|
188
204
|
contentTypes: readonly (Readonly<{
|
|
189
|
-
traits: readonly ("body" | "image" | "summary" | "order" | "title" | "cta" | "location" | "
|
|
205
|
+
traits: readonly ("body" | "image" | "slug" | "summary" | "order" | "title" | "cta" | "location" | "photos" | "taxonomy" | "publication" | "schedule" | "money" | "featured")[];
|
|
190
206
|
id: string & z.core.$brand<"ContentTypeId">;
|
|
191
207
|
primary: boolean;
|
|
192
208
|
labels: Readonly<Record<string, string>>;
|
|
@@ -194,7 +210,7 @@ export declare const cmsMediaRecipe: {
|
|
|
194
210
|
bindings: readonly ("list" | "navigation" | "homepage" | "detail" | "cms-admin")[];
|
|
195
211
|
currency?: (string & z.core.$brand<"CurrencyCode">) | undefined;
|
|
196
212
|
}> | Readonly<{
|
|
197
|
-
traits: readonly ("body" | "image" | "summary" | "order" | "title" | "cta" | "location" | "
|
|
213
|
+
traits: readonly ("body" | "image" | "slug" | "summary" | "order" | "title" | "cta" | "location" | "photos" | "taxonomy" | "publication" | "schedule" | "money" | "featured")[];
|
|
198
214
|
id: string & z.core.$brand<"ContentTypeId">;
|
|
199
215
|
primary: boolean;
|
|
200
216
|
labels: Readonly<Record<string, string>>;
|
package/dist/recipe.d.ts.map
CHANGED
|
@@ -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;
|
|
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;AAIrD,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;AA6BlE,6GAA6G;AAC7G,wBAAgB,kCAAkC,CAAC,cAAc,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,mDAW9F;AA8BD,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsCsB,CAAC;AAElD,eAAe,cAAc,CAAC"}
|
package/dist/recipe.js
CHANGED
|
@@ -4,6 +4,7 @@ import { buildDecapConfig } from './content/decap-config.js';
|
|
|
4
4
|
import { defineContentType } from './content/define.js';
|
|
5
5
|
import { fieldsForTraits } from './content/trait-field-sets.js';
|
|
6
6
|
export const CMS_MEDIA_RECIPE_ID = 'cms.decap-media';
|
|
7
|
+
const cmsMediaRuntimeRange = '^1.6.0';
|
|
7
8
|
const rootSchema = z.string().regex(/^src\/assets\/[a-z0-9]+(?:[/-][a-z0-9]+)*$/);
|
|
8
9
|
const cmsMediaRecipeOptionsSchema = z.strictObject({
|
|
9
10
|
composition: contentCompositionSchema,
|
|
@@ -19,11 +20,15 @@ const cmsMediaRecipeOptionsSchema = z.strictObject({
|
|
|
19
20
|
const key = root.toLocaleLowerCase('en-US');
|
|
20
21
|
if (folded.has(key))
|
|
21
22
|
context.addIssue({ code: z.ZodIssueCode.custom, path: [index], message: 'Media roots must not case-collide' });
|
|
23
|
+
if ([...folded].some((previous) => key.startsWith(`${previous}/`) || previous.startsWith(`${key}/`))) {
|
|
24
|
+
context.addIssue({ code: z.ZodIssueCode.custom, path: [index], message: 'Media roots must not overlap' });
|
|
25
|
+
}
|
|
22
26
|
folded.add(key);
|
|
23
27
|
});
|
|
24
28
|
}).readonly(),
|
|
25
29
|
uiLocale: z.enum(['de', 'en']).default('de'),
|
|
26
30
|
});
|
|
31
|
+
export const cmsSiteOptionsSchema = cmsMediaRecipeOptionsSchema.omit({ composition: true });
|
|
27
32
|
function identifierTraits(traits) {
|
|
28
33
|
if (traits.includes('title'))
|
|
29
34
|
return ['title'];
|
|
@@ -51,6 +56,20 @@ function runtimeDefinitions(options) {
|
|
|
51
56
|
});
|
|
52
57
|
});
|
|
53
58
|
}
|
|
59
|
+
/** Build the editor from the same trait selections as the page collections, without another schema owner. */
|
|
60
|
+
export function buildContentCompositionDecapConfig(rawComposition, rawOptions) {
|
|
61
|
+
const composition = contentCompositionSchema.parse(rawComposition);
|
|
62
|
+
const options = cmsSiteOptionsSchema.parse(rawOptions);
|
|
63
|
+
const selected = composition.contentTypes.filter((type) => type.bindings.includes('cms-admin'));
|
|
64
|
+
if (!selected.length)
|
|
65
|
+
throw new Error('CMS generation requires at least one cms-admin content binding');
|
|
66
|
+
const definitions = runtimeDefinitions({ ...options, composition: { ...composition, contentTypes: selected } });
|
|
67
|
+
return buildDecapConfig({
|
|
68
|
+
backend: { name: 'azure', repo: options.backend.repo, tenant_id: options.backend.tenantId, app_id: options.backend.appId, branch: options.backend.branch },
|
|
69
|
+
mediaFolder: options.mediaRoots[0], publicFolder: `/${options.mediaRoots[0]}`,
|
|
70
|
+
locale: options.uiLocale, contentTypes: definitions,
|
|
71
|
+
});
|
|
72
|
+
}
|
|
54
73
|
function definitionsSource(composition, mediaFolder, uiLocale) {
|
|
55
74
|
const definitions = composition.contentTypes.map((contentType) => {
|
|
56
75
|
const traits = contentType.traits.includes('title') || contentType.traits.includes('slug')
|
|
@@ -80,8 +99,8 @@ export const cmsMediaRecipe = {
|
|
|
80
99
|
id: CMS_MEDIA_RECIPE_ID,
|
|
81
100
|
version: '1.5.0',
|
|
82
101
|
protocolVersion: 1,
|
|
83
|
-
compatibleCliRange: '^0.1.0',
|
|
84
|
-
compatibleRuntimeRange:
|
|
102
|
+
compatibleCliRange: '^0.1.0 || ^0.2.0',
|
|
103
|
+
compatibleRuntimeRange: cmsMediaRuntimeRange,
|
|
85
104
|
provides: ['cms.decap-media', 'content.typed-definitions', 'media.preview-copy'],
|
|
86
105
|
requires: ['site.shell'],
|
|
87
106
|
conflicts: [],
|
|
@@ -106,7 +125,7 @@ export const cmsMediaRecipe = {
|
|
|
106
125
|
});
|
|
107
126
|
const folders = parsed.mediaRoots.map((source) => ({ source, publicPath: `/${source}` }));
|
|
108
127
|
return { files: [
|
|
109
|
-
{ path: 'package.json', content: `${JSON.stringify({ dependencies: { '@easy-web/core':
|
|
128
|
+
{ path: 'package.json', content: `${JSON.stringify({ dependencies: { '@easy-web/core': cmsMediaRuntimeRange, '@easy-web/cms-adapters': cmsMediaRuntimeRange, '@astrojs/markdown-remark': '^7.3.1', astro: '^7.3.5', sharp: '^0.35.0' } }, null, 2)}\n` },
|
|
110
129
|
{ path: 'src/content/definitions.ts', content: definitionsSource(parsed.composition, parsed.mediaRoots[0], parsed.uiLocale) },
|
|
111
130
|
{ path: 'src/content.config.ts', content: contentConfigSource(parsed.composition) },
|
|
112
131
|
{ path: 'public/admin/config.yml', content: `${JSON.stringify(config, null, 2)}\n` },
|
package/dist/recipe.js.map
CHANGED
|
@@ -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;
|
|
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;AAEtC,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,4CAA4C,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,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.
|
|
3
|
+
"version": "1.9.1",
|
|
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.
|
|
25
|
+
"@easy-web/core": "1.9.1"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"astro": ">=6.0.0 <8.0.0",
|