@cloudhal/core-contracts 0.3.9 → 0.3.11

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudhal/core-contracts",
3
- "version": "0.3.9",
3
+ "version": "0.3.11",
4
4
  "description": "Cloudhal domain contracts: JSON Schema source of truth plus generated TypeScript types",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://cloudhal.dev",
@@ -45,6 +45,12 @@
45
45
  },
46
46
  "homePageId": { "$ref": "common.schema.json#/$defs/Id" },
47
47
  "localization": { "$ref": "#/$defs/Localization" },
48
+ "collections": {
49
+ "type": "object",
50
+ "description": "RFC-0038: per-collection settings, keyed by collection (ContentEntry.collection). A collection without an entry here uses the defaults.",
51
+ "propertyNames": { "$ref": "common.schema.json#/$defs/Slug" },
52
+ "additionalProperties": { "$ref": "#/$defs/CollectionSettings" }
53
+ },
48
54
  "theme": { "$ref": "#/$defs/ThemeRef" },
49
55
  "design": { "$ref": "#/$defs/Design" },
50
56
  "brand": { "$ref": "#/$defs/Brand" },
@@ -63,6 +69,17 @@
63
69
  "metadata": { "$ref": "common.schema.json#/$defs/Metadata" }
64
70
  },
65
71
  "$defs": {
72
+ "CollectionSettings": {
73
+ "type": "object",
74
+ "additionalProperties": false,
75
+ "properties": {
76
+ "permalink": {
77
+ "type": "string",
78
+ "description": "RFC-0038: where the collection's entries live, as a template with a closed token set. Version 1: one or more fixed lower-case path segments followed by /{slug}, e.g. /blog/{slug}. Absent means /<collection>/{slug}.",
79
+ "pattern": "^(/[a-z0-9]+(-[a-z0-9]+)*)+/\\{slug\\}$"
80
+ }
81
+ }
82
+ },
66
83
  "Brand": {
67
84
  "type": "object",
68
85
  "description": "The site's logo and social links (RFC-0025 \u00a71), shared by the header, the footer and SEO.",