@endora-commerce/mod-cms 0.107.0 → 0.109.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 +1 -0
- package/dist/admin/api/cms-client.d.ts +19 -3
- package/dist/admin/api/cms-client.d.ts.map +1 -1
- package/dist/admin/api/cms-client.js +23 -2
- package/dist/admin/api/cms-client.js.map +1 -1
- package/dist/admin/components/AdminCatalogPreviewProvider.d.ts.map +1 -1
- package/dist/admin/components/AdminCatalogPreviewProvider.js +51 -0
- package/dist/admin/components/AdminCatalogPreviewProvider.js.map +1 -1
- package/dist/admin/components/BackgroundFields.d.ts +16 -0
- package/dist/admin/components/BackgroundFields.d.ts.map +1 -1
- package/dist/admin/components/BackgroundFields.js +58 -11
- package/dist/admin/components/BackgroundFields.js.map +1 -1
- package/dist/admin/components/BrandFontFields.d.ts +17 -0
- package/dist/admin/components/BrandFontFields.d.ts.map +1 -0
- package/dist/admin/components/BrandFontFields.js +39 -0
- package/dist/admin/components/BrandFontFields.js.map +1 -0
- package/dist/admin/components/BrandPreview.d.ts +29 -0
- package/dist/admin/components/BrandPreview.d.ts.map +1 -0
- package/dist/admin/components/BrandPreview.js +130 -0
- package/dist/admin/components/BrandPreview.js.map +1 -0
- package/dist/admin/components/CarouselAddSlideMenu.d.ts +5 -0
- package/dist/admin/components/CarouselAddSlideMenu.d.ts.map +1 -0
- package/dist/admin/components/CarouselAddSlideMenu.js +84 -0
- package/dist/admin/components/CarouselAddSlideMenu.js.map +1 -0
- package/dist/admin/components/CarouselFields.d.ts +6 -0
- package/dist/admin/components/CarouselFields.d.ts.map +1 -0
- package/dist/admin/components/CarouselFields.js +55 -0
- package/dist/admin/components/CarouselFields.js.map +1 -0
- package/dist/admin/components/ContentSliderActionBarExtras.d.ts.map +1 -1
- package/dist/admin/components/ContentSliderActionBarExtras.js +13 -6
- package/dist/admin/components/ContentSliderActionBarExtras.js.map +1 -1
- package/dist/admin/components/HeroFields.d.ts +47 -0
- package/dist/admin/components/HeroFields.d.ts.map +1 -0
- package/dist/admin/components/HeroFields.js +92 -0
- package/dist/admin/components/HeroFields.js.map +1 -0
- package/dist/admin/components/ListingFields.d.ts +6 -0
- package/dist/admin/components/ListingFields.d.ts.map +1 -0
- package/dist/admin/components/ListingFields.js +54 -0
- package/dist/admin/components/ListingFields.js.map +1 -0
- package/dist/admin/components/NewsletterSignupFields.d.ts +18 -0
- package/dist/admin/components/NewsletterSignupFields.d.ts.map +1 -0
- package/dist/admin/components/NewsletterSignupFields.js +38 -0
- package/dist/admin/components/NewsletterSignupFields.js.map +1 -0
- package/dist/admin/components/PageBuilderActionBar.d.ts.map +1 -1
- package/dist/admin/components/PageBuilderActionBar.js +1 -6
- package/dist/admin/components/PageBuilderActionBar.js.map +1 -1
- package/dist/admin/components/PageBuilderEditor.d.ts +43 -2
- package/dist/admin/components/PageBuilderEditor.d.ts.map +1 -1
- package/dist/admin/components/PageBuilderEditor.js +207 -121
- package/dist/admin/components/PageBuilderEditor.js.map +1 -1
- package/dist/admin/components/PageNavigationFields.d.ts +6 -0
- package/dist/admin/components/PageNavigationFields.d.ts.map +1 -0
- package/dist/admin/components/PageNavigationFields.js +29 -0
- package/dist/admin/components/PageNavigationFields.js.map +1 -0
- package/dist/admin/components/PreviewBrandTokens.d.ts +25 -0
- package/dist/admin/components/PreviewBrandTokens.d.ts.map +1 -0
- package/dist/admin/components/PreviewBrandTokens.js +68 -0
- package/dist/admin/components/PreviewBrandTokens.js.map +1 -0
- package/dist/admin/components/SectionBlockFields.d.ts +44 -0
- package/dist/admin/components/SectionBlockFields.d.ts.map +1 -0
- package/dist/admin/components/SectionBlockFields.js +114 -0
- package/dist/admin/components/SectionBlockFields.js.map +1 -0
- package/dist/admin/components/SectionPresetsPanel.d.ts +11 -0
- package/dist/admin/components/SectionPresetsPanel.d.ts.map +1 -0
- package/dist/admin/components/SectionPresetsPanel.js +82 -0
- package/dist/admin/components/SectionPresetsPanel.js.map +1 -0
- package/dist/admin/components/SliderPreviewActionBarExtras.d.ts +1 -1
- package/dist/admin/components/SliderPreviewActionBarExtras.d.ts.map +1 -1
- package/dist/admin/components/SliderPreviewActionBarExtras.js +1 -5
- package/dist/admin/components/SliderPreviewActionBarExtras.js.map +1 -1
- package/dist/admin/components/admin-catalog-preview-map.d.ts +9 -0
- package/dist/admin/components/admin-catalog-preview-map.d.ts.map +1 -1
- package/dist/admin/components/admin-catalog-preview-map.js +10 -0
- package/dist/admin/components/admin-catalog-preview-map.js.map +1 -1
- package/dist/admin/components/page-builder-i18n.d.ts +24 -2
- package/dist/admin/components/page-builder-i18n.d.ts.map +1 -1
- package/dist/admin/components/page-builder-i18n.js +102 -9
- package/dist/admin/components/page-builder-i18n.js.map +1 -1
- package/dist/admin/editors/PageEditor.d.ts.map +1 -1
- package/dist/admin/editors/PageEditor.js +270 -38
- package/dist/admin/editors/PageEditor.js.map +1 -1
- package/dist/admin/index.d.ts +1 -1
- package/dist/admin/index.d.ts.map +1 -1
- package/dist/admin/index.js +21 -1
- package/dist/admin/index.js.map +1 -1
- package/dist/admin/pages/BrandPage.d.ts +19 -0
- package/dist/admin/pages/BrandPage.d.ts.map +1 -0
- package/dist/admin/pages/BrandPage.js +316 -0
- package/dist/admin/pages/BrandPage.js.map +1 -0
- package/dist/admin/pages/PagesListPage.d.ts.map +1 -1
- package/dist/admin/pages/PagesListPage.js +4 -1
- package/dist/admin/pages/PagesListPage.js.map +1 -1
- package/dist/backend/cli/block-names.d.ts +2 -1
- package/dist/backend/cli/block-names.d.ts.map +1 -1
- package/dist/backend/cli/block-names.js.map +1 -1
- package/dist/backend/entities/cms-brand-tokens.entity.d.ts +20 -0
- package/dist/backend/entities/cms-brand-tokens.entity.d.ts.map +1 -0
- package/dist/backend/entities/cms-brand-tokens.entity.js +57 -0
- package/dist/backend/entities/cms-brand-tokens.entity.js.map +1 -0
- package/dist/backend/entities/cms-page.entity.d.ts +32 -1
- package/dist/backend/entities/cms-page.entity.d.ts.map +1 -1
- package/dist/backend/entities/cms-page.entity.js +63 -0
- package/dist/backend/entities/cms-page.entity.js.map +1 -1
- package/dist/backend/index.d.ts +5 -1
- package/dist/backend/index.d.ts.map +1 -1
- package/dist/backend/index.js +78 -8
- package/dist/backend/index.js.map +1 -1
- package/dist/backend/plugin.d.ts +16 -2
- package/dist/backend/plugin.d.ts.map +1 -1
- package/dist/backend/plugin.js +20 -1
- package/dist/backend/plugin.js.map +1 -1
- package/dist/backend/routes.admin.d.ts +2 -0
- package/dist/backend/routes.admin.d.ts.map +1 -1
- package/dist/backend/routes.admin.js +39 -4
- package/dist/backend/routes.admin.js.map +1 -1
- package/dist/backend/routes.storefront.d.ts +24 -1
- package/dist/backend/routes.storefront.d.ts.map +1 -1
- package/dist/backend/routes.storefront.js +55 -2
- package/dist/backend/routes.storefront.js.map +1 -1
- package/dist/backend/services/anchor-guard.d.ts +10 -0
- package/dist/backend/services/anchor-guard.d.ts.map +1 -0
- package/dist/backend/services/anchor-guard.js +132 -0
- package/dist/backend/services/anchor-guard.js.map +1 -0
- package/dist/backend/services/asset-references.d.ts.map +1 -1
- package/dist/backend/services/asset-references.js +46 -30
- package/dist/backend/services/asset-references.js.map +1 -1
- package/dist/backend/services/brand-tokens-service.d.ts +84 -0
- package/dist/backend/services/brand-tokens-service.d.ts.map +1 -0
- package/dist/backend/services/brand-tokens-service.js +159 -0
- package/dist/backend/services/brand-tokens-service.js.map +1 -0
- package/dist/backend/services/channel-language-prefixes.d.ts +11 -0
- package/dist/backend/services/channel-language-prefixes.d.ts.map +1 -0
- package/dist/backend/services/channel-language-prefixes.js +24 -0
- package/dist/backend/services/channel-language-prefixes.js.map +1 -0
- package/dist/backend/services/cms-block-service.d.ts.map +1 -1
- package/dist/backend/services/cms-block-service.js +3 -0
- package/dist/backend/services/cms-block-service.js.map +1 -1
- package/dist/backend/services/cms-cache.d.ts +10 -0
- package/dist/backend/services/cms-cache.d.ts.map +1 -1
- package/dist/backend/services/cms-cache.js +9 -0
- package/dist/backend/services/cms-cache.js.map +1 -1
- package/dist/backend/services/cms-content-invalidator.d.ts +13 -4
- package/dist/backend/services/cms-content-invalidator.d.ts.map +1 -1
- package/dist/backend/services/cms-content-invalidator.js +13 -6
- package/dist/backend/services/cms-content-invalidator.js.map +1 -1
- package/dist/backend/services/cms-page-read-port.d.ts +6 -1
- package/dist/backend/services/cms-page-read-port.d.ts.map +1 -1
- package/dist/backend/services/cms-page-read-port.js +27 -0
- package/dist/backend/services/cms-page-read-port.js.map +1 -1
- package/dist/backend/services/cms-page-service.d.ts +72 -1
- package/dist/backend/services/cms-page-service.d.ts.map +1 -1
- package/dist/backend/services/cms-page-service.js +317 -17
- package/dist/backend/services/cms-page-service.js.map +1 -1
- package/dist/backend/services/cms-template-service.d.ts.map +1 -1
- package/dist/backend/services/cms-template-service.js +3 -0
- package/dist/backend/services/cms-template-service.js.map +1 -1
- package/dist/backend/services/contact-form/contact-form-mail.d.ts +22 -0
- package/dist/backend/services/contact-form/contact-form-mail.d.ts.map +1 -0
- package/dist/backend/services/contact-form/contact-form-mail.js +64 -0
- package/dist/backend/services/contact-form/contact-form-mail.js.map +1 -0
- package/dist/backend/services/contact-form/contact-form.service.d.ts +35 -0
- package/dist/backend/services/contact-form/contact-form.service.d.ts.map +1 -0
- package/dist/backend/services/contact-form/contact-form.service.js +75 -0
- package/dist/backend/services/contact-form/contact-form.service.js.map +1 -0
- package/dist/backend/services/contact-form/recipients-validator.d.ts +8 -0
- package/dist/backend/services/contact-form/recipients-validator.d.ts.map +1 -0
- package/dist/backend/services/contact-form/recipients-validator.js +23 -0
- package/dist/backend/services/contact-form/recipients-validator.js.map +1 -0
- package/dist/backend/services/content-tree-walker.d.ts +12 -0
- package/dist/backend/services/content-tree-walker.d.ts.map +1 -1
- package/dist/backend/services/content-tree-walker.js +40 -0
- package/dist/backend/services/content-tree-walker.js.map +1 -1
- package/dist/backend/services/page-builder-registry.d.ts +11 -2
- package/dist/backend/services/page-builder-registry.d.ts.map +1 -1
- package/dist/backend/services/page-builder-registry.js +10 -1
- package/dist/backend/services/page-builder-registry.js.map +1 -1
- package/dist/backend/services/page-paths.d.ts +87 -0
- package/dist/backend/services/page-paths.d.ts.map +1 -0
- package/dist/backend/services/page-paths.js +177 -0
- package/dist/backend/services/page-paths.js.map +1 -0
- package/dist/backend/services/storefront-resolver.d.ts +53 -2
- package/dist/backend/services/storefront-resolver.d.ts.map +1 -1
- package/dist/backend/services/storefront-resolver.js +313 -22
- package/dist/backend/services/storefront-resolver.js.map +1 -1
- package/dist/backend/services/translation/extract.d.ts.map +1 -1
- package/dist/backend/services/translation/extract.js +9 -1
- package/dist/backend/services/translation/extract.js.map +1 -1
- package/dist/manifest.d.ts +13 -1
- package/dist/manifest.d.ts.map +1 -1
- package/dist/manifest.js +592 -73
- package/dist/manifest.js.map +1 -1
- package/dist/migrations/20261022T163218_cms_brand_tokens.d.ts +24 -0
- package/dist/migrations/20261022T163218_cms_brand_tokens.d.ts.map +1 -0
- package/dist/migrations/20261022T163218_cms_brand_tokens.js +38 -0
- package/dist/migrations/20261022T163218_cms_brand_tokens.js.map +1 -0
- package/dist/migrations/20261023T052237_cms_page_tree_and_share.d.ts +24 -0
- package/dist/migrations/20261023T052237_cms_page_tree_and_share.d.ts.map +1 -0
- package/dist/migrations/20261023T052237_cms_page_tree_and_share.js +51 -0
- package/dist/migrations/20261023T052237_cms_page_tree_and_share.js.map +1 -0
- package/dist/migrations/20261027T165458_cms_page_parent_path_in_url.d.ts +16 -0
- package/dist/migrations/20261027T165458_cms_page_parent_path_in_url.d.ts.map +1 -0
- package/dist/migrations/20261027T165458_cms_page_parent_path_in_url.js +20 -0
- package/dist/migrations/20261027T165458_cms_page_parent_path_in_url.js.map +1 -0
- package/dist/migrations/20261028T090524_cms_page_breadcrumbs_overlay.d.ts +14 -0
- package/dist/migrations/20261028T090524_cms_page_breadcrumbs_overlay.d.ts.map +1 -0
- package/dist/migrations/20261028T090524_cms_page_breadcrumbs_overlay.js +18 -0
- package/dist/migrations/20261028T090524_cms_page_breadcrumbs_overlay.js.map +1 -0
- package/dist/migrations/20261029T131218_cms_page_translations.d.ts +15 -0
- package/dist/migrations/20261029T131218_cms_page_translations.d.ts.map +1 -0
- package/dist/migrations/20261029T131218_cms_page_translations.js +19 -0
- package/dist/migrations/20261029T131218_cms_page_translations.js.map +1 -0
- package/dist/migrations/index.d.ts +6 -1
- package/dist/migrations/index.d.ts.map +1 -1
- package/dist/migrations/index.js +11 -1
- package/dist/migrations/index.js.map +1 -1
- package/docs/cms/brand.md +310 -0
- package/docs/cms/contact-form.md +161 -0
- package/docs/cms/extending-page-builder.md +210 -15
- package/docs/cms/index.md +1232 -39
- package/docs/cms/page-navigation.md +83 -0
- package/i18n/en.json +2758 -22
- package/i18n/pl.json +2758 -22
- package/package.json +18 -16
- package/dist/admin/components/ButtonLinkFields.d.ts +0 -6
- package/dist/admin/components/ButtonLinkFields.d.ts.map +0 -1
- package/dist/admin/components/ButtonLinkFields.js +0 -127
- package/dist/admin/components/ButtonLinkFields.js.map +0 -1
package/dist/manifest.js
CHANGED
|
@@ -38,12 +38,24 @@ export const CMS_TRANSLATE_PERMISSION = 'cms.translate';
|
|
|
38
38
|
*/
|
|
39
39
|
export const CMS_SETTING_CODES = {
|
|
40
40
|
RESERVED_SLUG_SEGMENTS: 'cms.reserved_slug_segments',
|
|
41
|
+
/**
|
|
42
|
+
* Feature 163 (FR-033) — the sharing image a page without its own uses. The
|
|
43
|
+
* `*_asset_id` suffix gives the generic Settings screen its asset picker.
|
|
44
|
+
*/
|
|
45
|
+
DEFAULT_SHARE_IMAGE_ASSET_ID: 'cms.default_share_image_asset_id',
|
|
46
|
+
/**
|
|
47
|
+
* Feature 169 (data-model §3.1) — who receives the messages of the `cms.ContactForm`
|
|
48
|
+
* block, per sales channel. Read by the server per request; never in page data.
|
|
49
|
+
*/
|
|
50
|
+
CONTACT_FORM_RECIPIENTS: 'cms.contact_form_recipients',
|
|
41
51
|
};
|
|
42
52
|
const settings = defineModuleSettingsManifest({
|
|
43
53
|
moduleCode: 'cms',
|
|
44
54
|
groups: [
|
|
45
55
|
{ code: 'cms', name: 'CMS' },
|
|
46
56
|
{ code: 'cms_page_builder', name: 'Page Builder' },
|
|
57
|
+
// Feature 169 — the contact form's recipients.
|
|
58
|
+
{ code: 'cms_contact_form', name: 'Contact form' },
|
|
47
59
|
],
|
|
48
60
|
settings: [
|
|
49
61
|
{
|
|
@@ -117,6 +129,26 @@ const settings = defineModuleSettingsManifest({
|
|
|
117
129
|
valueType: 'number',
|
|
118
130
|
defaultValue: CMS_TRANSLATION_DEFAULT_MAX_SOURCE_CHARACTERS,
|
|
119
131
|
},
|
|
132
|
+
// Feature 163 (FR-033; data-model §1.4). Read per request for the
|
|
133
|
+
// request's channel, so a channel may carry an image of its own.
|
|
134
|
+
{
|
|
135
|
+
code: CMS_SETTING_CODES.DEFAULT_SHARE_IMAGE_ASSET_ID,
|
|
136
|
+
name: 'Default sharing image',
|
|
137
|
+
description: 'The image shown when a CMS page is shared on social networks and in messengers, for every page that has no sharing image of its own. Choose a public image from the Assets Library; about 1200 × 630 px suits most networks. Leave empty and such pages are shared without an image. Can be overridden per sales channel.',
|
|
138
|
+
groupCode: 'cms_page_builder',
|
|
139
|
+
valueType: 'string',
|
|
140
|
+
defaultValue: '',
|
|
141
|
+
},
|
|
142
|
+
// Feature 169 (research R-8). Read per request for the request's channel; not `secret`
|
|
143
|
+
// — an address is not a credential, and the operator has to read it back.
|
|
144
|
+
{
|
|
145
|
+
code: CMS_SETTING_CODES.CONTACT_FORM_RECIPIENTS,
|
|
146
|
+
name: 'Contact form recipients',
|
|
147
|
+
description: 'The e-mail addresses that receive the messages sent with the Contact form block on this sales channel — at most 10. Leave empty and the form answers that it is unavailable. Can be overridden per sales channel. Never shown on the storefront.',
|
|
148
|
+
groupCode: 'cms_contact_form',
|
|
149
|
+
valueType: 'string_list',
|
|
150
|
+
defaultValue: [],
|
|
151
|
+
},
|
|
120
152
|
],
|
|
121
153
|
});
|
|
122
154
|
export const cmsSettingsManifest = settings;
|
|
@@ -183,7 +215,10 @@ export const manifest = defineModuleManifest({
|
|
|
183
215
|
// contributes its "which languages do pages carry" descriptor to (feature 077,
|
|
184
216
|
// D-87). `languages` used to ask the question itself, with a jsonb
|
|
185
217
|
// containment test against `cms_pages` — this module's table.
|
|
186
|
-
|
|
218
|
+
// Feature 169 (research R-6): `email` owns `emailMailer`, the transport the contact form
|
|
219
|
+
// sends through, and `_i18n` owns `adminI18nService`, which writes that e-mail in the
|
|
220
|
+
// channel's language. Both are non-deactivatable, so neither edge costs the operator a switch.
|
|
221
|
+
dependencies: ['assets_library', 'languages', 'sales_channels', 'auth', 'settings', 'email', '_i18n'],
|
|
187
222
|
nonBindingDependencies: [
|
|
188
223
|
{
|
|
189
224
|
moduleId: 'credentials',
|
|
@@ -261,6 +296,11 @@ export const manifest = defineModuleManifest({
|
|
|
261
296
|
// path would win rather than being told a slug is "invalid".
|
|
262
297
|
{ code: 'CMS_SLUG_RESERVED' },
|
|
263
298
|
{ code: 'CMS_TEMPLATE_NOT_FOUND' },
|
|
299
|
+
// Feature 163 (`specs/163-page-builder-marketing-pages/` data-model §6). The
|
|
300
|
+
// anchor sentences name the anchor through `details` → `{anchor}`.
|
|
301
|
+
{ code: 'CMS_DUPLICATE_ANCHOR' },
|
|
302
|
+
{ code: 'CMS_RESERVED_ANCHOR' },
|
|
303
|
+
{ code: 'CMS_PAGE_PARENT_CYCLE' },
|
|
264
304
|
// Feature 151 — the Page Builder translation (`contracts/page-builder-translation-api.md` §3).
|
|
265
305
|
// `TOO_LARGE` names the configured limit through `details` → `{limit}`;
|
|
266
306
|
// `PROVIDER_FAILED` chooses its sentence by `details.code`.
|
|
@@ -273,6 +313,8 @@ export const manifest = defineModuleManifest({
|
|
|
273
313
|
code: 'CMS_TRANSLATION_PROVIDER_FAILED',
|
|
274
314
|
tokens: ['credentials_rejected', 'rate_limited', 'unavailable', 'timeout', 'malformed'],
|
|
275
315
|
},
|
|
316
|
+
// Feature 169 (data-model §3.2) — the contact form on a channel with no recipients.
|
|
317
|
+
{ code: 'CMS_CONTACT_FORM_UNAVAILABLE' },
|
|
276
318
|
],
|
|
277
319
|
i18n: { bundlesDir: 'i18n' },
|
|
278
320
|
docs: { dir: 'docs' },
|
|
@@ -281,6 +323,10 @@ export const manifest = defineModuleManifest({
|
|
|
281
323
|
{ code: 'cms.read', label: 'View CMS content' },
|
|
282
324
|
{ code: 'cms.write', label: 'Edit CMS content' },
|
|
283
325
|
{ code: CMS_TRANSLATE_PERMISSION, label: 'Translate Page Builder content with AI' },
|
|
326
|
+
// Feature 163 — the brand tokens are every page at once, so saving them is
|
|
327
|
+
// its own decision; reading them stays `cms.read` (the canvas is styled with
|
|
328
|
+
// them). `PUT /api/v1/admin/cms/brand-tokens`.
|
|
329
|
+
{ code: 'cms.brand', label: 'Edit brand settings', requires: ['cms.read'] },
|
|
284
330
|
],
|
|
285
331
|
actions: [
|
|
286
332
|
{
|
|
@@ -290,7 +336,8 @@ export const manifest = defineModuleManifest({
|
|
|
290
336
|
icon: 'FileText',
|
|
291
337
|
targetRoute: '/cms/pages/new',
|
|
292
338
|
requiredPermission: 'cms.write',
|
|
293
|
-
keywords: ['page', 'new', 'create'
|
|
339
|
+
keywords: ['page', 'new', 'create'],
|
|
340
|
+
keywordsKey: 'actions.newPage.keywords',
|
|
294
341
|
weight: 130,
|
|
295
342
|
},
|
|
296
343
|
// Navigation to the four list screens, under the read code that opens
|
|
@@ -302,7 +349,8 @@ export const manifest = defineModuleManifest({
|
|
|
302
349
|
icon: 'Newspaper',
|
|
303
350
|
targetRoute: '/cms/pages',
|
|
304
351
|
requiredPermission: 'cms.read',
|
|
305
|
-
keywords: ['cms', 'pages', 'page', 'content'
|
|
352
|
+
keywords: ['cms', 'pages', 'page', 'content'],
|
|
353
|
+
keywordsKey: 'actions.openPages.keywords',
|
|
306
354
|
weight: 131,
|
|
307
355
|
},
|
|
308
356
|
{
|
|
@@ -312,7 +360,8 @@ export const manifest = defineModuleManifest({
|
|
|
312
360
|
icon: 'Newspaper',
|
|
313
361
|
targetRoute: '/cms/blocks',
|
|
314
362
|
requiredPermission: 'cms.read',
|
|
315
|
-
keywords: ['cms', 'blocks', 'block'
|
|
363
|
+
keywords: ['cms', 'blocks', 'block'],
|
|
364
|
+
keywordsKey: 'actions.openBlocks.keywords',
|
|
316
365
|
weight: 132,
|
|
317
366
|
},
|
|
318
367
|
{
|
|
@@ -322,7 +371,8 @@ export const manifest = defineModuleManifest({
|
|
|
322
371
|
icon: 'Newspaper',
|
|
323
372
|
targetRoute: '/cms/templates',
|
|
324
373
|
requiredPermission: 'cms.read',
|
|
325
|
-
keywords: ['cms', 'templates', 'template'
|
|
374
|
+
keywords: ['cms', 'templates', 'template'],
|
|
375
|
+
keywordsKey: 'actions.openTemplates.keywords',
|
|
326
376
|
weight: 133,
|
|
327
377
|
},
|
|
328
378
|
{
|
|
@@ -332,7 +382,8 @@ export const manifest = defineModuleManifest({
|
|
|
332
382
|
icon: 'Webhook',
|
|
333
383
|
targetRoute: '/cms/hooks',
|
|
334
384
|
requiredPermission: 'cms.read',
|
|
335
|
-
keywords: ['cms', 'hooks', 'hook'
|
|
385
|
+
keywords: ['cms', 'hooks', 'hook'],
|
|
386
|
+
keywordsKey: 'actions.openHooks.keywords',
|
|
336
387
|
weight: 134,
|
|
337
388
|
},
|
|
338
389
|
// Feature 151 — the generic Settings screen has no per-group address, so
|
|
@@ -344,18 +395,43 @@ export const manifest = defineModuleManifest({
|
|
|
344
395
|
icon: 'Sparkles',
|
|
345
396
|
targetRoute: '/settings',
|
|
346
397
|
requiredPermission: 'settings:read',
|
|
398
|
+
keywords: ['translate', 'translation', 'ai', 'llm', 'page builder'],
|
|
399
|
+
keywordsKey: 'actions.openPageBuilderTranslationSettings.keywords',
|
|
400
|
+
weight: 135,
|
|
401
|
+
},
|
|
402
|
+
// Feature 163 — the brand screen (`contracts/storefront-and-admin-api.md`
|
|
403
|
+
// §6). Under the read code that opens it; saving there needs `cms.brand`.
|
|
404
|
+
// No palette glyph is on the allowlist, so it draws its sidebar row's.
|
|
405
|
+
{
|
|
406
|
+
id: 'open-cms-brand',
|
|
407
|
+
labelKey: 'actions.openCmsBrand.label',
|
|
408
|
+
descriptionKey: 'actions.openCmsBrand.description',
|
|
409
|
+
icon: 'Layers',
|
|
410
|
+
targetRoute: '/cms/brand',
|
|
411
|
+
requiredPermission: 'cms.read',
|
|
347
412
|
keywords: [
|
|
348
|
-
'
|
|
349
|
-
'
|
|
350
|
-
'
|
|
351
|
-
'
|
|
352
|
-
'
|
|
353
|
-
'
|
|
354
|
-
'tłumaczenie',
|
|
355
|
-
'przetłumacz',
|
|
356
|
-
'kreator stron',
|
|
413
|
+
'brand',
|
|
414
|
+
'fonts',
|
|
415
|
+
'colours',
|
|
416
|
+
'colors',
|
|
417
|
+
'typography',
|
|
418
|
+
'theme',
|
|
357
419
|
],
|
|
358
|
-
|
|
420
|
+
keywordsKey: 'actions.openCmsBrand.keywords',
|
|
421
|
+
weight: 136,
|
|
422
|
+
},
|
|
423
|
+
// Feature 169 (FR-023) — the recipients are edited on the generic Settings screen, which
|
|
424
|
+
// has no per-group address, so the entry opens it under the code it is gated by.
|
|
425
|
+
{
|
|
426
|
+
id: 'open-contact-form-settings',
|
|
427
|
+
labelKey: 'actions.openContactFormSettings.label',
|
|
428
|
+
descriptionKey: 'actions.openContactFormSettings.description',
|
|
429
|
+
icon: 'Inbox',
|
|
430
|
+
targetRoute: '/settings',
|
|
431
|
+
requiredPermission: 'settings:read',
|
|
432
|
+
keywords: ['contact', 'form', 'recipients', 'e-mail', 'enquiries'],
|
|
433
|
+
keywordsKey: 'actions.openContactFormSettings.keywords',
|
|
434
|
+
weight: 137,
|
|
359
435
|
},
|
|
360
436
|
],
|
|
361
437
|
// Feature 073 — the operator's activation control. A platform without a CMS
|
|
@@ -373,9 +449,9 @@ export const manifest = defineModuleManifest({
|
|
|
373
449
|
* `catalog`'s, and a section is declared by the module whose blocks occupy it
|
|
374
450
|
* (`contracts/block-definition.md` §1.1's authoring guidance).
|
|
375
451
|
*
|
|
376
|
-
* `internal` is the hidden drawer that keeps `cms.Column
|
|
377
|
-
* of Puck's *Other* group, where
|
|
378
|
-
* render wrong. It was keyed `_internal` until this feature; the key grammar
|
|
452
|
+
* `internal` is the hidden drawer that keeps `cms.Column`, `cms.Slide` and
|
|
453
|
+
* the Carousel's item blocks (feature 163) out of Puck's *Other* group, where
|
|
454
|
+
* they are insertable outside their parent and render wrong. It was keyed `_internal` until this feature; the key grammar
|
|
379
455
|
* `blockCategoryKeyRe` forbids a leading underscore, so it is `internal` —
|
|
380
456
|
* the same word, the same title and the same behaviour.
|
|
381
457
|
*
|
|
@@ -385,6 +461,37 @@ export const manifest = defineModuleManifest({
|
|
|
385
461
|
* until Phase 2's registry work (T209/T210).
|
|
386
462
|
*/
|
|
387
463
|
blocks: [
|
|
464
|
+
// Feature 163, plan § Owner ruling 2026-10-23 (FR-000): the one block that
|
|
465
|
+
// carries section settings, with a slot for any blocks; top level only.
|
|
466
|
+
// Its settings hold no text (the anchor is an identifier), so nothing is
|
|
467
|
+
// translated here — the slot's blocks are, through their own declarations.
|
|
468
|
+
{
|
|
469
|
+
name: 'cms.Section',
|
|
470
|
+
translatable: [],
|
|
471
|
+
labelKey: 'blocks.section.label',
|
|
472
|
+
descriptionKey: 'blocks.section.description',
|
|
473
|
+
category: 'layout',
|
|
474
|
+
contexts: ['cms'],
|
|
475
|
+
fields: {},
|
|
476
|
+
// T117: the settings are top-level props; these sit on the editor's Responsive tab
|
|
477
|
+
// (R19C, T260/T261: the width and the background outset too).
|
|
478
|
+
responsiveFields: ['width', 'spaceTop', 'spaceBottom', 'contentPosition', 'overlap'],
|
|
479
|
+
weight: 5,
|
|
480
|
+
},
|
|
481
|
+
// Feature 163, T158 (plan § Owner ruling 2026-10-26): the top-level container
|
|
482
|
+
// of Sections, painting one scheme, background and decorative layer behind
|
|
483
|
+
// them. No prose: its Sections are their own nodes.
|
|
484
|
+
{
|
|
485
|
+
name: 'cms.SectionGroup',
|
|
486
|
+
translatable: [],
|
|
487
|
+
labelKey: 'blocks.sectionGroup.label',
|
|
488
|
+
descriptionKey: 'blocks.sectionGroup.description',
|
|
489
|
+
category: 'layout',
|
|
490
|
+
contexts: ['cms'],
|
|
491
|
+
fields: {},
|
|
492
|
+
responsiveFields: ['spaceTop', 'spaceBottom'],
|
|
493
|
+
weight: 6,
|
|
494
|
+
},
|
|
388
495
|
{
|
|
389
496
|
name: 'cms.Row',
|
|
390
497
|
translatable: [],
|
|
@@ -432,7 +539,10 @@ export const manifest = defineModuleManifest({
|
|
|
432
539
|
},
|
|
433
540
|
{
|
|
434
541
|
name: 'cms.Heading',
|
|
435
|
-
|
|
542
|
+
// Feature 163 (T039): inline rich text. A heading stored before keeps a
|
|
543
|
+
// plain string here until the editor opens it; the translation reads
|
|
544
|
+
// that string as plain text.
|
|
545
|
+
translatable: [{ path: 'text', format: 'tiptap' }],
|
|
436
546
|
labelKey: 'blocks.heading.label',
|
|
437
547
|
descriptionKey: 'blocks.heading.description',
|
|
438
548
|
category: 'content',
|
|
@@ -442,40 +552,47 @@ export const manifest = defineModuleManifest({
|
|
|
442
552
|
type: 'select',
|
|
443
553
|
label: 'Level',
|
|
444
554
|
options: [
|
|
445
|
-
{ label: 'H1', value:
|
|
446
|
-
{ label: 'H2', value:
|
|
447
|
-
{ label: 'H3', value:
|
|
448
|
-
{ label: 'H4', value:
|
|
449
|
-
{ label: 'H5', value:
|
|
450
|
-
{ label: 'H6', value:
|
|
555
|
+
{ label: 'H1', value: 'h1' },
|
|
556
|
+
{ label: 'H2', value: 'h2' },
|
|
557
|
+
{ label: 'H3', value: 'h3' },
|
|
558
|
+
{ label: 'H4', value: 'h4' },
|
|
559
|
+
{ label: 'H5', value: 'h5' },
|
|
560
|
+
{ label: 'H6', value: 'h6' },
|
|
561
|
+
{ label: 'Paragraph', value: 'p' },
|
|
451
562
|
],
|
|
452
563
|
},
|
|
453
|
-
text: { type: '
|
|
564
|
+
text: { type: 'richtext', label: 'Text' },
|
|
454
565
|
},
|
|
455
566
|
responsiveFields: [
|
|
567
|
+
'size',
|
|
456
568
|
'fontSize',
|
|
457
569
|
'fontWeight',
|
|
458
|
-
'
|
|
570
|
+
'align',
|
|
459
571
|
'lineHeight',
|
|
460
572
|
'margin',
|
|
461
573
|
'padding',
|
|
462
574
|
'border',
|
|
575
|
+
// R19A (T226), R21G (T337).
|
|
576
|
+
'textMaxWidth', 'textMaxWidthPx',
|
|
463
577
|
],
|
|
464
578
|
weight: 10,
|
|
465
579
|
},
|
|
466
580
|
{
|
|
467
581
|
name: 'cms.Text',
|
|
468
|
-
|
|
582
|
+
// R19A (T232): `text` is inline rich text once edited; a plain string stored before is read as plain text.
|
|
583
|
+
translatable: [{ path: 'text', format: 'tiptap' }, { path: 'tiptapContent', format: 'tiptap' }],
|
|
469
584
|
labelKey: 'blocks.text.label',
|
|
470
585
|
descriptionKey: 'blocks.text.description',
|
|
471
586
|
category: 'content',
|
|
472
587
|
contexts: ['cms'],
|
|
473
|
-
fields: { text: { type: '
|
|
588
|
+
fields: { text: { type: 'richtext', label: 'Text' } },
|
|
474
589
|
responsiveFields: [
|
|
475
590
|
'fontSize',
|
|
476
591
|
'fontWeight',
|
|
477
592
|
'textAlign',
|
|
478
593
|
'lineHeight',
|
|
594
|
+
'textMaxWidth',
|
|
595
|
+
'textMaxWidthPx',
|
|
479
596
|
'margin',
|
|
480
597
|
'padding',
|
|
481
598
|
'border',
|
|
@@ -490,35 +607,38 @@ export const manifest = defineModuleManifest({
|
|
|
490
607
|
category: 'content',
|
|
491
608
|
contexts: ['cms'],
|
|
492
609
|
fields: { content: { type: 'richtext', label: 'Content' } },
|
|
493
|
-
responsiveFields: ['margin', 'padding', 'border'],
|
|
610
|
+
responsiveFields: ['textMaxWidth', 'textMaxWidthPx', 'margin', 'padding', 'border', 'textSize', 'textSizePx', 'listLineHeight'],
|
|
494
611
|
weight: 30,
|
|
495
612
|
},
|
|
496
613
|
{
|
|
497
614
|
name: 'cms.Button',
|
|
498
|
-
|
|
615
|
+
// Feature 163 (T039): one `ButtonSpec`. A button stored before keeps its
|
|
616
|
+
// top-level `label` until the editor opens it; both are translated.
|
|
617
|
+
translatable: [{ path: 'button.label' }, { path: 'label' }],
|
|
499
618
|
labelKey: 'blocks.button.label',
|
|
500
619
|
descriptionKey: 'blocks.button.description',
|
|
501
620
|
category: 'content',
|
|
502
621
|
contexts: ['cms'],
|
|
503
622
|
fields: {
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
variant: {
|
|
623
|
+
button: { type: 'object', label: 'Button', required: true },
|
|
624
|
+
align: {
|
|
507
625
|
type: 'select',
|
|
508
|
-
label: '
|
|
626
|
+
label: 'Align',
|
|
509
627
|
options: [
|
|
510
|
-
{ label: '
|
|
511
|
-
{ label: '
|
|
512
|
-
{ label: '
|
|
628
|
+
{ label: 'start', value: 'start' },
|
|
629
|
+
{ label: 'center', value: 'center' },
|
|
630
|
+
{ label: 'end', value: 'end' },
|
|
513
631
|
],
|
|
514
632
|
},
|
|
515
633
|
},
|
|
516
|
-
|
|
634
|
+
// R19B (T246): an icon-only button's size per breakpoint.
|
|
635
|
+
responsiveFields: ['button', 'align', 'fullWidth', 'margin', 'padding', 'border'],
|
|
517
636
|
weight: 40,
|
|
518
637
|
},
|
|
519
638
|
{
|
|
520
639
|
name: 'cms.Image',
|
|
521
|
-
|
|
640
|
+
// Feature 163, T127: the caption is prose too.
|
|
641
|
+
translatable: [{ path: 'alt' }, { path: 'caption' }],
|
|
522
642
|
labelKey: 'blocks.image.label',
|
|
523
643
|
descriptionKey: 'blocks.image.description',
|
|
524
644
|
category: 'content',
|
|
@@ -527,7 +647,8 @@ export const manifest = defineModuleManifest({
|
|
|
527
647
|
src: { type: 'text', label: 'Image URL', required: true },
|
|
528
648
|
alt: { type: 'text', label: 'Alt text' },
|
|
529
649
|
},
|
|
530
|
-
|
|
650
|
+
// R19B (T251): the caption's placement, size and alignment per breakpoint.
|
|
651
|
+
responsiveFields: ['widthMode', 'widthPx', 'ratio', 'align', 'captionPlacement', 'captionSize', 'captionSizePx', 'captionAlign', 'captionMaxWidthPx', 'margin', 'padding', 'border'],
|
|
531
652
|
weight: 50,
|
|
532
653
|
},
|
|
533
654
|
{
|
|
@@ -564,33 +685,256 @@ export const manifest = defineModuleManifest({
|
|
|
564
685
|
],
|
|
565
686
|
},
|
|
566
687
|
},
|
|
567
|
-
responsiveFields: ['align', 'margin', 'padding', 'border'],
|
|
688
|
+
responsiveFields: ['align', 'margin', 'padding', 'border', 'gap', 'gapPx'],
|
|
568
689
|
previewIcon: 'share',
|
|
569
690
|
weight: 70,
|
|
570
691
|
},
|
|
571
692
|
{
|
|
572
693
|
name: 'cms.FeatureList',
|
|
573
|
-
|
|
694
|
+
// Feature 163 (T049): a heading, inline rich titles, rich bodies and an
|
|
695
|
+
// image below the grid. A list stored before keeps plain titles and its
|
|
696
|
+
// `description`s until the editor opens it; those are translated too.
|
|
697
|
+
translatable: [
|
|
698
|
+
{ path: 'heading', format: 'tiptap' },
|
|
699
|
+
{ path: 'items[].title', format: 'tiptap' },
|
|
700
|
+
{ path: 'items[].body', format: 'tiptap' },
|
|
701
|
+
{ path: 'image.alt' },
|
|
702
|
+
{ path: 'items[].description' },
|
|
703
|
+
],
|
|
574
704
|
labelKey: 'blocks.featureList.label',
|
|
575
705
|
descriptionKey: 'blocks.featureList.description',
|
|
576
706
|
category: 'content',
|
|
577
707
|
contexts: ['cms'],
|
|
578
|
-
fields: {},
|
|
579
|
-
responsiveFields: [
|
|
708
|
+
fields: { items: { type: 'array', label: 'Features' } },
|
|
709
|
+
responsiveFields: [
|
|
710
|
+
'headingSize',
|
|
711
|
+
'headingSizePx',
|
|
712
|
+
'headingMaxWidth',
|
|
713
|
+
'headingMaxWidthPx',
|
|
714
|
+
'columns',
|
|
715
|
+
'gap',
|
|
716
|
+
'gapPx',
|
|
717
|
+
'titleSize',
|
|
718
|
+
'titleSizePx',
|
|
719
|
+
'margin',
|
|
720
|
+
'padding',
|
|
721
|
+
'border',
|
|
722
|
+
'headingWeight',
|
|
723
|
+
'align',
|
|
724
|
+
'titleWeight',
|
|
725
|
+
// R19A (T224, T225).
|
|
726
|
+
'titleLineHeight',
|
|
727
|
+
'bodySize',
|
|
728
|
+
'bodySizePx',
|
|
729
|
+
'bodyLineHeight',
|
|
730
|
+
// R20F (T317).
|
|
731
|
+
'rowGapPx',
|
|
732
|
+
'listLineHeight',
|
|
733
|
+
// R22I.
|
|
734
|
+
'iconPosition',
|
|
735
|
+
],
|
|
580
736
|
previewIcon: 'layout',
|
|
581
737
|
weight: 80,
|
|
582
738
|
},
|
|
583
739
|
{
|
|
584
740
|
name: 'cms.Hero',
|
|
585
|
-
|
|
741
|
+
// Feature 163 (T043): inline rich texts, a rich body, a button list and a
|
|
742
|
+
// social-proof line. A hero stored before keeps `heading`, `subtitle` and
|
|
743
|
+
// `buttonLabel` until the editor opens it; those are translated too.
|
|
744
|
+
translatable: [
|
|
745
|
+
{ path: 'eyebrow' },
|
|
746
|
+
{ path: 'title', format: 'tiptap' },
|
|
747
|
+
{ path: 'subheading', format: 'tiptap' },
|
|
748
|
+
{ path: 'statement', format: 'tiptap' },
|
|
749
|
+
{ path: 'body', format: 'tiptap' },
|
|
750
|
+
{ path: 'buttons[].label' },
|
|
751
|
+
{ path: 'socialProof.caption' },
|
|
752
|
+
{ path: 'media.image.alt' },
|
|
753
|
+
{ path: 'socialProof.image.alt' },
|
|
754
|
+
{ path: 'heading' },
|
|
755
|
+
{ path: 'subtitle' },
|
|
756
|
+
{ path: 'buttonLabel' },
|
|
757
|
+
],
|
|
586
758
|
labelKey: 'blocks.hero.label',
|
|
587
759
|
descriptionKey: 'blocks.hero.description',
|
|
588
760
|
category: 'content',
|
|
589
761
|
contexts: ['cms'],
|
|
590
|
-
fields: {
|
|
591
|
-
|
|
762
|
+
fields: {
|
|
763
|
+
title: { type: 'richtext', label: 'Title' },
|
|
764
|
+
buttons: { type: 'array', label: 'Buttons' },
|
|
765
|
+
},
|
|
766
|
+
responsiveFields: [
|
|
767
|
+
'titleSize',
|
|
768
|
+
'titleSizePx',
|
|
769
|
+
'titleMaxWidth',
|
|
770
|
+
'titleMaxWidthPx',
|
|
771
|
+
'subheadingSize',
|
|
772
|
+
'subheadingSizePx',
|
|
773
|
+
'statementSize',
|
|
774
|
+
'statementSizePx',
|
|
775
|
+
'buttons',
|
|
776
|
+
'buttonsFullWidth',
|
|
777
|
+
'minHeight',
|
|
778
|
+
'minHeightPx',
|
|
779
|
+
'gaps',
|
|
780
|
+
'margin',
|
|
781
|
+
'padding',
|
|
782
|
+
'border',
|
|
783
|
+
'titleWeight',
|
|
784
|
+
'align',
|
|
785
|
+
// R19A (T227–T229).
|
|
786
|
+
'subheadingLineHeight',
|
|
787
|
+
'subheadingMaxWidth',
|
|
788
|
+
'subheadingMaxWidthPx',
|
|
789
|
+
'statementLineHeight',
|
|
790
|
+
'statementMaxWidth',
|
|
791
|
+
'statementMaxWidthPx',
|
|
792
|
+
'bodySize',
|
|
793
|
+
'bodySizePx',
|
|
794
|
+
'bodyLineHeight',
|
|
795
|
+
'bodyMaxWidth',
|
|
796
|
+
'bodyMaxWidthPx',
|
|
797
|
+
'gapsPx',
|
|
798
|
+
'mediaSpace',
|
|
799
|
+
'mediaSpacePx',
|
|
800
|
+
// R20E.
|
|
801
|
+
'titleLineHeight',
|
|
802
|
+
'eyebrowSizePx',
|
|
803
|
+
'eyebrowLineHeight',
|
|
804
|
+
'proofCaptionPlacement',
|
|
805
|
+
'proofCaptionMaxWidthPx',
|
|
806
|
+
// R23 (T436).
|
|
807
|
+
'eyebrowSize',
|
|
808
|
+
],
|
|
592
809
|
weight: 90,
|
|
593
810
|
},
|
|
811
|
+
// Feature 163 (T047) — the composition blocks of US3 (contracts/blocks.md).
|
|
812
|
+
{
|
|
813
|
+
name: 'cms.MediaText',
|
|
814
|
+
// `rows[].media.image.alt` beside the contract's paths: a row's image is
|
|
815
|
+
// read by a screen reader as the first row's is.
|
|
816
|
+
translatable: [
|
|
817
|
+
{ path: 'heading', format: 'tiptap' },
|
|
818
|
+
{ path: 'body', format: 'tiptap' },
|
|
819
|
+
{ path: 'features[].title', format: 'tiptap' },
|
|
820
|
+
{ path: 'features[].body' },
|
|
821
|
+
{ path: 'buttons[].label' },
|
|
822
|
+
{ path: 'footnote', format: 'tiptap' },
|
|
823
|
+
{ path: 'media.image.alt' },
|
|
824
|
+
{ path: 'rows[].heading', format: 'tiptap' },
|
|
825
|
+
{ path: 'rows[].body', format: 'tiptap' },
|
|
826
|
+
{ path: 'rows[].features[].title', format: 'tiptap' },
|
|
827
|
+
{ path: 'rows[].features[].body' },
|
|
828
|
+
{ path: 'rows[].buttons[].label' },
|
|
829
|
+
{ path: 'rows[].media.image.alt' },
|
|
830
|
+
],
|
|
831
|
+
labelKey: 'blocks.mediaText.label',
|
|
832
|
+
descriptionKey: 'blocks.mediaText.description',
|
|
833
|
+
category: 'content',
|
|
834
|
+
contexts: ['cms'],
|
|
835
|
+
fields: {
|
|
836
|
+
heading: { type: 'richtext', label: 'Heading' },
|
|
837
|
+
media: { type: 'object', label: 'Media' },
|
|
838
|
+
body: { type: 'richtext', label: 'Text' },
|
|
839
|
+
},
|
|
840
|
+
// Feature 163, T160: the item titles' size per breakpoint.
|
|
841
|
+
responsiveFields: [
|
|
842
|
+
'headingSize', 'headingSizePx', 'headingMaxWidth', 'headingMaxWidthPx', 'featureTitleSize', 'featureTitleSizePx', 'buttons', 'buttonsFullWidth', 'headingWeight', 'featureTitleWeight',
|
|
843
|
+
// R20F (T315): the text size.
|
|
844
|
+
'bodySize', 'bodySizePx', 'bodyLineHeight', 'headingLineHeight',
|
|
845
|
+
// R22I.
|
|
846
|
+
'columnGapPx', 'featureBodySize', 'featureBodySizePx',
|
|
847
|
+
],
|
|
848
|
+
weight: 92,
|
|
849
|
+
},
|
|
850
|
+
{
|
|
851
|
+
name: 'cms.BackgroundPanel',
|
|
852
|
+
translatable: [
|
|
853
|
+
{ path: 'heading', format: 'tiptap' },
|
|
854
|
+
{ path: 'body', format: 'tiptap' },
|
|
855
|
+
{ path: 'buttons[].label' },
|
|
856
|
+
{ path: 'image.alt' },
|
|
857
|
+
],
|
|
858
|
+
labelKey: 'blocks.backgroundPanel.label',
|
|
859
|
+
descriptionKey: 'blocks.backgroundPanel.description',
|
|
860
|
+
category: 'content',
|
|
861
|
+
contexts: ['cms'],
|
|
862
|
+
fields: {
|
|
863
|
+
image: { type: 'object', label: 'Image', required: true },
|
|
864
|
+
heading: { type: 'richtext', label: 'Heading' },
|
|
865
|
+
},
|
|
866
|
+
// R20F (T316): the text box's margin and padding.
|
|
867
|
+
responsiveFields: ['headingSize', 'headingSizePx', 'headingMaxWidth', 'headingMaxWidthPx', 'buttons', 'buttonsFullWidth', 'minHeight', 'headingWeight'],
|
|
868
|
+
weight: 94,
|
|
869
|
+
},
|
|
870
|
+
{
|
|
871
|
+
name: 'cms.CtaCard',
|
|
872
|
+
translatable: [
|
|
873
|
+
{ path: 'heading', format: 'tiptap' },
|
|
874
|
+
{ path: 'body', format: 'tiptap' },
|
|
875
|
+
{ path: 'list[].text' },
|
|
876
|
+
{ path: 'buttons[].label' },
|
|
877
|
+
{ path: 'image.alt' },
|
|
878
|
+
],
|
|
879
|
+
labelKey: 'blocks.ctaCard.label',
|
|
880
|
+
descriptionKey: 'blocks.ctaCard.description',
|
|
881
|
+
category: 'content',
|
|
882
|
+
contexts: ['cms'],
|
|
883
|
+
fields: {
|
|
884
|
+
heading: { type: 'richtext', label: 'Heading' },
|
|
885
|
+
buttons: { type: 'array', label: 'Buttons' },
|
|
886
|
+
},
|
|
887
|
+
// R20F (T318): the card's padding and the image's columns.
|
|
888
|
+
responsiveFields: ['headingSize', 'headingSizePx', 'headingMaxWidth', 'headingMaxWidthPx', 'buttons', 'buttonsFullWidth', 'headingWeight', 'imageColumns', 'bodySize', 'bodySizePx', 'textMaxWidth', 'textMaxWidthPx'],
|
|
889
|
+
weight: 96,
|
|
890
|
+
},
|
|
891
|
+
{
|
|
892
|
+
name: 'cms.Statement',
|
|
893
|
+
translatable: [
|
|
894
|
+
{ path: 'heading', format: 'tiptap' },
|
|
895
|
+
{ path: 'body', format: 'tiptap' },
|
|
896
|
+
{ path: 'background.image.alt' },
|
|
897
|
+
],
|
|
898
|
+
labelKey: 'blocks.statement.label',
|
|
899
|
+
descriptionKey: 'blocks.statement.description',
|
|
900
|
+
category: 'content',
|
|
901
|
+
contexts: ['cms'],
|
|
902
|
+
fields: { heading: { type: 'richtext', label: 'Heading' } },
|
|
903
|
+
responsiveFields: [
|
|
904
|
+
'headingSize',
|
|
905
|
+
'headingSizePx',
|
|
906
|
+
'textMaxWidth',
|
|
907
|
+
'textMaxWidthPx',
|
|
908
|
+
'headingWeight',
|
|
909
|
+
'align',
|
|
910
|
+
// R19A (T231).
|
|
911
|
+
'minHeight',
|
|
912
|
+
'minHeightPx',
|
|
913
|
+
'headingLineHeight',
|
|
914
|
+
'bodySize',
|
|
915
|
+
'bodySizePx',
|
|
916
|
+
'bodyLineHeight',
|
|
917
|
+
],
|
|
918
|
+
weight: 98,
|
|
919
|
+
},
|
|
920
|
+
{
|
|
921
|
+
// Feature 163 (T072, FR-028): rows of a title, a description and a button.
|
|
922
|
+
name: 'cms.LinkList',
|
|
923
|
+
translatable: [
|
|
924
|
+
{ path: 'heading', format: 'tiptap' },
|
|
925
|
+
{ path: 'items[].title' },
|
|
926
|
+
{ path: 'items[].description' },
|
|
927
|
+
{ path: 'items[].button.label' },
|
|
928
|
+
],
|
|
929
|
+
labelKey: 'blocks.linkList.label',
|
|
930
|
+
descriptionKey: 'blocks.linkList.description',
|
|
931
|
+
category: 'content',
|
|
932
|
+
contexts: ['cms'],
|
|
933
|
+
fields: { heading: { type: 'richtext', label: 'Heading' } },
|
|
934
|
+
// R19A (T236): the row titles' size and weight.
|
|
935
|
+
responsiveFields: ['headingSize', 'headingSizePx', 'headingMaxWidth', 'headingMaxWidthPx', 'headingWeight', 'titleSize', 'titleSizePx', 'titleLineHeight'],
|
|
936
|
+
weight: 99,
|
|
937
|
+
},
|
|
594
938
|
{
|
|
595
939
|
name: 'cms.LogoStrip',
|
|
596
940
|
translatable: [{ path: 'items[].alt' }],
|
|
@@ -599,29 +943,65 @@ export const manifest = defineModuleManifest({
|
|
|
599
943
|
category: 'content',
|
|
600
944
|
contexts: ['cms'],
|
|
601
945
|
fields: {},
|
|
602
|
-
responsiveFields: ['margin', 'padding', 'border'],
|
|
946
|
+
responsiveFields: ['margin', 'padding', 'border', 'align', 'gap', 'gapPx'],
|
|
603
947
|
weight: 100,
|
|
604
948
|
},
|
|
605
949
|
{
|
|
606
950
|
name: 'cms.Testimonial',
|
|
607
|
-
|
|
951
|
+
// Feature 163 (T049): a rich quote (a plain quote stored before is read
|
|
952
|
+
// as plain text under the same path), the image and the avatar.
|
|
953
|
+
translatable: [
|
|
954
|
+
{ path: 'quote', format: 'tiptap' },
|
|
955
|
+
{ path: 'author' },
|
|
956
|
+
{ path: 'role' },
|
|
957
|
+
{ path: 'image.alt' },
|
|
958
|
+
{ path: 'avatar.alt' },
|
|
959
|
+
],
|
|
608
960
|
labelKey: 'blocks.testimonial.label',
|
|
609
961
|
descriptionKey: 'blocks.testimonial.description',
|
|
610
962
|
category: 'content',
|
|
611
963
|
contexts: ['cms'],
|
|
612
|
-
fields: { quote: { type: '
|
|
613
|
-
responsiveFields: ['margin', 'padding', 'border'],
|
|
964
|
+
fields: { quote: { type: 'richtext', label: 'Quote' } },
|
|
965
|
+
responsiveFields: ['margin', 'padding', 'border', 'quoteSize', 'quoteSizePx'],
|
|
614
966
|
weight: 110,
|
|
615
967
|
},
|
|
616
968
|
{
|
|
617
969
|
name: 'cms.Stats',
|
|
618
|
-
|
|
970
|
+
// Feature 163 (T049): a heading and an image beside the figures.
|
|
971
|
+
translatable: [
|
|
972
|
+
{ path: 'heading', format: 'tiptap' },
|
|
973
|
+
{ path: 'items[].value' },
|
|
974
|
+
{ path: 'items[].label' },
|
|
975
|
+
{ path: 'image.alt' },
|
|
976
|
+
],
|
|
619
977
|
labelKey: 'blocks.stats.label',
|
|
620
978
|
descriptionKey: 'blocks.stats.description',
|
|
621
979
|
category: 'content',
|
|
622
980
|
contexts: ['cms'],
|
|
623
|
-
fields: {},
|
|
624
|
-
responsiveFields: [
|
|
981
|
+
fields: { items: { type: 'array', label: 'Metrics' } },
|
|
982
|
+
responsiveFields: [
|
|
983
|
+
'headingSize',
|
|
984
|
+
'headingSizePx',
|
|
985
|
+
'headingMaxWidth',
|
|
986
|
+
'headingMaxWidthPx',
|
|
987
|
+
'columns',
|
|
988
|
+
'gap',
|
|
989
|
+
'gapPx',
|
|
990
|
+
'valueSize',
|
|
991
|
+
'valueSizePx',
|
|
992
|
+
'margin',
|
|
993
|
+
'padding',
|
|
994
|
+
'border',
|
|
995
|
+
'headingWeight',
|
|
996
|
+
'align',
|
|
997
|
+
// R19A (T235).
|
|
998
|
+
'labelSize',
|
|
999
|
+
'labelSizePx',
|
|
1000
|
+
// R20F (T319).
|
|
1001
|
+
'labelLineHeight',
|
|
1002
|
+
// R22I.
|
|
1003
|
+
'columnGapPx', 'valueLineHeight',
|
|
1004
|
+
],
|
|
625
1005
|
weight: 120,
|
|
626
1006
|
},
|
|
627
1007
|
{
|
|
@@ -658,7 +1038,8 @@ export const manifest = defineModuleManifest({
|
|
|
658
1038
|
category: 'media',
|
|
659
1039
|
contexts: ['cms'],
|
|
660
1040
|
fields: { url: { type: 'text', label: 'Video URL' } },
|
|
661
|
-
|
|
1041
|
+
// Feature 163, T126: the aspect ratio is per breakpoint.
|
|
1042
|
+
responsiveFields: ['aspectRatio', 'maxWidth', 'align', 'margin', 'padding', 'border'],
|
|
662
1043
|
weight: 10,
|
|
663
1044
|
},
|
|
664
1045
|
{
|
|
@@ -682,47 +1063,83 @@ export const manifest = defineModuleManifest({
|
|
|
682
1063
|
weight: 20,
|
|
683
1064
|
},
|
|
684
1065
|
{
|
|
1066
|
+
// Feature 163 (T054, T055): labelled "Carousel"; the image slider is
|
|
1067
|
+
// gone, its items are `cms.CarouselImage` slides (research R-12, FR-041a).
|
|
685
1068
|
name: 'cms.ContentSlider',
|
|
686
|
-
translatable: [
|
|
1069
|
+
translatable: [
|
|
1070
|
+
{ path: 'header.heading', format: 'tiptap' },
|
|
1071
|
+
{ path: 'header.lead' },
|
|
1072
|
+
{ path: 'header.button.label' },
|
|
1073
|
+
// T131: the filter bar's labels; the tags themselves are keys, not prose.
|
|
1074
|
+
{ path: 'filter.allLabel' },
|
|
1075
|
+
{ path: 'filter.tags[].label' },
|
|
1076
|
+
],
|
|
687
1077
|
labelKey: 'blocks.contentSlider.label',
|
|
688
1078
|
descriptionKey: 'blocks.contentSlider.description',
|
|
689
1079
|
category: 'interactive',
|
|
690
1080
|
contexts: ['cms'],
|
|
691
1081
|
fields: {},
|
|
692
|
-
responsiveFields: [
|
|
1082
|
+
responsiveFields: [
|
|
1083
|
+
'headingSize',
|
|
1084
|
+
'headingSizePx',
|
|
1085
|
+
'headingMaxWidth',
|
|
1086
|
+
'headingMaxWidthPx',
|
|
1087
|
+
'slidesPerView',
|
|
1088
|
+
'gap',
|
|
1089
|
+
'gapPx',
|
|
1090
|
+
'controlsPlacement',
|
|
1091
|
+
'controlsAlign',
|
|
1092
|
+
'columns',
|
|
1093
|
+
'margin',
|
|
1094
|
+
'padding',
|
|
1095
|
+
'border',
|
|
1096
|
+
'headingWeight',
|
|
1097
|
+
// R22I.
|
|
1098
|
+
'headingLineHeight',
|
|
1099
|
+
],
|
|
693
1100
|
weight: 10,
|
|
694
1101
|
},
|
|
695
|
-
{
|
|
696
|
-
name: 'cms.ImageSlider',
|
|
697
|
-
translatable: [{ path: 'items[].title' }],
|
|
698
|
-
labelKey: 'blocks.imageSlider.label',
|
|
699
|
-
descriptionKey: 'blocks.imageSlider.description',
|
|
700
|
-
category: 'interactive',
|
|
701
|
-
contexts: ['cms'],
|
|
702
|
-
fields: {},
|
|
703
|
-
responsiveFields: ['slidesPerView', 'gap', 'margin', 'padding', 'border'],
|
|
704
|
-
weight: 20,
|
|
705
|
-
},
|
|
706
1102
|
{
|
|
707
1103
|
name: 'cms.Tabs',
|
|
1104
|
+
// Feature 163 (R-13): a panel's blocks sit in the `items[].panel` slot and
|
|
1105
|
+
// are translated through their own declarations. `items[].content` is
|
|
1106
|
+
// only ever the HTML a page stored before, until the editor converts it.
|
|
708
1107
|
translatable: [{ path: 'items[].label' }, { path: 'items[].content', format: 'html' }],
|
|
709
1108
|
labelKey: 'blocks.tabs.label',
|
|
710
1109
|
descriptionKey: 'blocks.tabs.description',
|
|
711
1110
|
category: 'interactive',
|
|
712
1111
|
contexts: ['cms'],
|
|
713
1112
|
fields: {},
|
|
714
|
-
responsiveFields: ['margin', 'padding', 'border'],
|
|
1113
|
+
responsiveFields: ['tabSize', 'panelGap', 'panelGapPx', 'margin', 'padding', 'border', 'align'],
|
|
715
1114
|
weight: 30,
|
|
716
1115
|
},
|
|
1116
|
+
{
|
|
1117
|
+
// Feature 169 (US5): links to sections of the same page; the anchors are ids, not prose.
|
|
1118
|
+
name: 'cms.PageNavigation',
|
|
1119
|
+
translatable: [{ path: 'label' }, { path: 'items[].label' }],
|
|
1120
|
+
labelKey: 'blocks.pageNavigation.label',
|
|
1121
|
+
descriptionKey: 'blocks.pageNavigation.description',
|
|
1122
|
+
category: 'interactive',
|
|
1123
|
+
contexts: ['cms'],
|
|
1124
|
+
fields: {},
|
|
1125
|
+
responsiveFields: ['align', 'margin', 'padding', 'border'],
|
|
1126
|
+
weight: 35,
|
|
1127
|
+
},
|
|
717
1128
|
{
|
|
718
1129
|
name: 'cms.Accordion',
|
|
1130
|
+
// Feature 163 (R-13): as `cms.Tabs` — blocks in `items[].panel`, stored HTML in `items[].content`.
|
|
719
1131
|
translatable: [{ path: 'items[].title' }, { path: 'items[].content', format: 'html' }],
|
|
720
1132
|
labelKey: 'blocks.accordion.label',
|
|
721
1133
|
descriptionKey: 'blocks.accordion.description',
|
|
722
1134
|
category: 'interactive',
|
|
723
1135
|
contexts: ['cms'],
|
|
724
1136
|
fields: {},
|
|
725
|
-
|
|
1137
|
+
// Feature 163, T175: the title padding per breakpoint; T182: the space above an open panel and between items;
|
|
1138
|
+
// T185: the title weight; T186: the space below an open panel and after an open item.
|
|
1139
|
+
responsiveFields: [
|
|
1140
|
+
'titleSize', 'titleSizePx', 'titleWeight', 'titlePadding', 'titlePaddingPx', 'panelGap', 'panelGapPx', 'itemGap', 'itemGapPx',
|
|
1141
|
+
'panelPaddingBottom', 'panelPaddingBottomPx', 'openItemGap', 'openItemGapPx', 'margin', 'padding', 'border', 'titleLineHeight',
|
|
1142
|
+
],
|
|
726
1143
|
weight: 40,
|
|
727
1144
|
},
|
|
728
1145
|
{
|
|
@@ -733,7 +1150,9 @@ export const manifest = defineModuleManifest({
|
|
|
733
1150
|
category: 'internal',
|
|
734
1151
|
contexts: ['cms'],
|
|
735
1152
|
fields: { span: { type: 'number', label: 'Width (1–12)' } },
|
|
736
|
-
|
|
1153
|
+
// Feature 163, T159: the column's order in the row per breakpoint; T165: its placement in the row's grid;
|
|
1154
|
+
// R19C (T265): its box's outset past the track.
|
|
1155
|
+
responsiveFields: ['span', 'stackOrder', 'rowSpan', 'columnStart', 'rowStart', 'margin', 'padding', 'border', 'outsetPx'],
|
|
737
1156
|
weight: 10,
|
|
738
1157
|
},
|
|
739
1158
|
{
|
|
@@ -747,6 +1166,68 @@ export const manifest = defineModuleManifest({
|
|
|
747
1166
|
responsiveFields: ['margin', 'padding', 'border'],
|
|
748
1167
|
weight: 20,
|
|
749
1168
|
},
|
|
1169
|
+
// Feature 163 (T054): the Carousel's item blocks, insertable only into its
|
|
1170
|
+
// `slides` (contracts/blocks.md, research R-12).
|
|
1171
|
+
{
|
|
1172
|
+
name: 'cms.CarouselImage',
|
|
1173
|
+
// R19B (T249): the read-more label is prose too.
|
|
1174
|
+
translatable: [{ path: 'image.alt' }, { path: 'caption', format: 'tiptap' }, { path: 'moreLabel' }],
|
|
1175
|
+
labelKey: 'blocks.carouselImage.label',
|
|
1176
|
+
descriptionKey: 'blocks.carouselImage.description',
|
|
1177
|
+
category: 'internal',
|
|
1178
|
+
contexts: ['cms'],
|
|
1179
|
+
fields: {},
|
|
1180
|
+
// Feature 163, T188: the caption's weight per breakpoint too. R19B (T249, T250): the caption's
|
|
1181
|
+
// padding and the read-more label's size.
|
|
1182
|
+
responsiveFields: ['captionSize', 'captionSizePx', 'captionWeight'],
|
|
1183
|
+
weight: 30,
|
|
1184
|
+
},
|
|
1185
|
+
{
|
|
1186
|
+
name: 'cms.CarouselSplit',
|
|
1187
|
+
translatable: [
|
|
1188
|
+
{ path: 'title', format: 'tiptap' },
|
|
1189
|
+
{ path: 'body', format: 'tiptap' },
|
|
1190
|
+
{ path: 'buttons[].label' },
|
|
1191
|
+
{ path: 'media.image.alt' },
|
|
1192
|
+
],
|
|
1193
|
+
labelKey: 'blocks.carouselSplit.label',
|
|
1194
|
+
descriptionKey: 'blocks.carouselSplit.description',
|
|
1195
|
+
category: 'internal',
|
|
1196
|
+
contexts: ['cms'],
|
|
1197
|
+
fields: {},
|
|
1198
|
+
// R20F (T311, T312): the title's and the text's type, the space after a hanging icon.
|
|
1199
|
+
responsiveFields: [
|
|
1200
|
+
'buttons', 'buttonsFullWidth',
|
|
1201
|
+
'titleSize', 'titleSizePx', 'titleLineHeight', 'bodySize', 'bodySizePx', 'bodyLineHeight',
|
|
1202
|
+
// R22I.
|
|
1203
|
+
'columnGapPx',
|
|
1204
|
+
],
|
|
1205
|
+
weight: 40,
|
|
1206
|
+
},
|
|
1207
|
+
{
|
|
1208
|
+
name: 'cms.LinkTile',
|
|
1209
|
+
translatable: [{ path: 'title', format: 'tiptap' }, { path: 'linkLabel' }, { path: 'image.alt' }],
|
|
1210
|
+
labelKey: 'blocks.linkTile.label',
|
|
1211
|
+
descriptionKey: 'blocks.linkTile.description',
|
|
1212
|
+
category: 'internal',
|
|
1213
|
+
contexts: ['cms'],
|
|
1214
|
+
fields: {},
|
|
1215
|
+
// Feature 163, T181: the resting title and label colours per breakpoint too; T188: their weights.
|
|
1216
|
+
responsiveFields: ['ratio', 'titleSize', 'titleSizePx', 'titleWeight', 'titleColor', 'labelSize', 'labelSizePx', 'labelWeight', 'labelColor'],
|
|
1217
|
+
weight: 50,
|
|
1218
|
+
},
|
|
1219
|
+
{
|
|
1220
|
+
name: 'cms.DownloadTile',
|
|
1221
|
+
translatable: [{ path: 'title' }, { path: 'subtitle' }, { path: 'linkLabel' }, { path: 'hoverImage.alt' }],
|
|
1222
|
+
labelKey: 'blocks.downloadTile.label',
|
|
1223
|
+
descriptionKey: 'blocks.downloadTile.description',
|
|
1224
|
+
category: 'internal',
|
|
1225
|
+
contexts: ['cms'],
|
|
1226
|
+
fields: {},
|
|
1227
|
+
// R19B (T247, T248): the card's padding, the title's size and the icon button's size per breakpoint.
|
|
1228
|
+
responsiveFields: ['titleSize', 'titleSizePx'],
|
|
1229
|
+
weight: 60,
|
|
1230
|
+
},
|
|
750
1231
|
{
|
|
751
1232
|
name: 'cms.NewsletterSignup',
|
|
752
1233
|
translatable: [
|
|
@@ -754,6 +1235,8 @@ export const manifest = defineModuleManifest({
|
|
|
754
1235
|
{ path: 'description' },
|
|
755
1236
|
{ path: 'placeholder' },
|
|
756
1237
|
{ path: 'buttonLabel' },
|
|
1238
|
+
// Feature 163 (T076): the optional consent checkbox's label.
|
|
1239
|
+
{ path: 'consentLabel', format: 'tiptap' },
|
|
757
1240
|
],
|
|
758
1241
|
labelKey: 'blocks.newsletterSignup.label',
|
|
759
1242
|
descriptionKey: 'blocks.newsletterSignup.description',
|
|
@@ -774,6 +1257,42 @@ export const manifest = defineModuleManifest({
|
|
|
774
1257
|
responsiveFields: ['margin', 'padding', 'border'],
|
|
775
1258
|
weight: 20,
|
|
776
1259
|
},
|
|
1260
|
+
// Feature 169 (data-model §3) — a form with a fixed field set that e-mails the shop.
|
|
1261
|
+
// Its text is translated per field; the recipients are a setting, never a prop.
|
|
1262
|
+
{
|
|
1263
|
+
name: 'cms.ContactForm',
|
|
1264
|
+
translatable: [
|
|
1265
|
+
{ path: 'fields.name.label' },
|
|
1266
|
+
{ path: 'fields.name.placeholder' },
|
|
1267
|
+
{ path: 'fields.email.label' },
|
|
1268
|
+
{ path: 'fields.email.placeholder' },
|
|
1269
|
+
{ path: 'fields.phone.label' },
|
|
1270
|
+
{ path: 'fields.phone.placeholder' },
|
|
1271
|
+
{ path: 'fields.company.label' },
|
|
1272
|
+
{ path: 'fields.company.placeholder' },
|
|
1273
|
+
{ path: 'fields.subject.label' },
|
|
1274
|
+
{ path: 'fields.subject.placeholder' },
|
|
1275
|
+
{ path: 'fields.choice.label' },
|
|
1276
|
+
{ path: 'fields.choice.placeholder' },
|
|
1277
|
+
{ path: 'fields.message.label' },
|
|
1278
|
+
{ path: 'fields.message.placeholder' },
|
|
1279
|
+
{ path: 'fields.choice.options[].label' },
|
|
1280
|
+
{ path: 'privacyConsent.label', format: 'tiptap' },
|
|
1281
|
+
{ path: 'marketingConsent.label', format: 'tiptap' },
|
|
1282
|
+
{ path: 'button.label' },
|
|
1283
|
+
{ path: 'messages.success' },
|
|
1284
|
+
{ path: 'messages.error' },
|
|
1285
|
+
{ path: 'messages.unavailable' },
|
|
1286
|
+
{ path: 'formLabel' },
|
|
1287
|
+
],
|
|
1288
|
+
labelKey: 'blocks.contactForm.label',
|
|
1289
|
+
descriptionKey: 'blocks.contactForm.description',
|
|
1290
|
+
category: 'forms',
|
|
1291
|
+
contexts: ['cms'],
|
|
1292
|
+
fields: {},
|
|
1293
|
+
responsiveFields: ['margin', 'padding', 'border'],
|
|
1294
|
+
weight: 30,
|
|
1295
|
+
},
|
|
777
1296
|
{
|
|
778
1297
|
name: 'cms.RawHtml',
|
|
779
1298
|
translatable: [],
|