@port60/template-kit 0.9.0 → 0.10.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 +10 -3
- package/bin/cli.mjs +26 -4
- package/package.json +1 -1
- package/src/commands/content.mjs +42 -0
- package/src/commands/create.mjs +6 -6
- package/src/commands/dev.mjs +97 -9
- package/src/commands/model.mjs +34 -0
- package/src/commands/packageCmd.mjs +3 -3
- package/src/commands/refresh.mjs +48 -0
- package/src/commands/upgrade.mjs +44 -0
- package/src/commands/validate.mjs +2 -3
- package/src/lib/agentsMd.mjs +47 -19
- package/src/vendor/contract/v1/behaviours.json +4 -4
- package/src/vendor/contract/v1/content-bounds.json +3 -3
- package/src/vendor/contract/v1/content-model.json +193 -0
- package/src/vendor/contract/v1/context.json +1667 -275
- package/src/vendor/contract/v1/dialect.json +3 -3
- package/src/vendor/contract/v1/fonts.json +1 -1
- package/src/vendor/contract/v1/imagery.json +4 -4
- package/src/vendor/contract/v1/islands.json +256 -235
- package/src/vendor/contract/v1/layout.json +4 -4
- package/src/vendor/contract/v1/manifest.schema.json +9 -9
- package/src/vendor/contract/v1/sections.json +248 -92
- package/src/vendor/contract/v1/tokens.json +1 -1
- package/src/vendor/contract/v1.lock.json +1 -1
- package/src/vendor/engine/content-footprint.mjs +79 -0
- package/src/vendor/validator/fixture-art.mjs +109 -0
- package/src/vendor/validator/model-reference.mjs +92 -0
- package/src/vendor/validator/platform-base.css +21 -0
- package/src/vendor/validator/preview.mjs +149 -56
- package/src/vendor/validator/site-context.mjs +97 -0
- package/src/vendor/validator/validate.mjs +71 -14
- package/starter/assets/theme.css +10 -10
- package/starter/layout.liquid +15 -16
- package/starter/manifest.json +2 -2
- package/starter/sections/campaigns.liquid +5 -5
- package/starter/sections/homeHero.liquid +11 -11
- package/starter/sections/people.liquid +1 -1
- package/starter/sections/values.liquid +1 -1
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"name": {
|
|
10
10
|
"type": "string",
|
|
11
11
|
"pattern": "^[a-z][a-z0-9-]{1,48}[a-z0-9]$",
|
|
12
|
-
"description": "The template's identity
|
|
12
|
+
"description": "The template's identity, lowercase, hyphenated, stable across versions."
|
|
13
13
|
},
|
|
14
14
|
"version": {
|
|
15
15
|
"type": "string",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"changelog": {
|
|
64
64
|
"type": "string",
|
|
65
65
|
"maxLength": 300,
|
|
66
|
-
"description": "One human line describing what THIS version changed
|
|
66
|
+
"description": "One human line describing what THIS version changed, shown on the Appearance update nudge."
|
|
67
67
|
},
|
|
68
68
|
"supports": {
|
|
69
69
|
"type": "object",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"items": { "type": "string" },
|
|
83
83
|
"minItems": 1,
|
|
84
84
|
"uniqueItems": true,
|
|
85
|
-
"description": "Section types this template ships renderers for (sections/{type}.liquid). Unsupported types are omitted at render
|
|
85
|
+
"description": "Section types this template ships renderers for (sections/{type}.liquid). Unsupported types are omitted at render, never an error."
|
|
86
86
|
},
|
|
87
87
|
"islands": {
|
|
88
88
|
"type": "array",
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
"layout": {
|
|
95
95
|
"type": "boolean",
|
|
96
96
|
"default": false,
|
|
97
|
-
"description": "True when the template ships layout.liquid and owns the page chrome (header/nav/footer). The platform still owns <head>, consent, and identity
|
|
97
|
+
"description": "True when the template ships layout.liquid and owns the page chrome (header/nav/footer). The platform still owns <head>, consent, and identity, see the layouts guide."
|
|
98
98
|
},
|
|
99
99
|
"pageTemplates": {
|
|
100
100
|
"type": "array",
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
"heroImagery": {
|
|
112
112
|
"type": "boolean",
|
|
113
113
|
"default": false,
|
|
114
|
-
"description": "True when the homeHero renderer displays the tenant's hero photographs (homeHero.images, legacy imageUrl)
|
|
114
|
+
"description": "True when the homeHero renderer displays the tenant's hero photographs (homeHero.images, legacy imageUrl), always under a TREATMENT built from the template's own palette variables (scrim/tint/blend), never raw. Declared honesty, proven behaviourally at validation: the choosers badge photo-led tenants toward templates that show their images and warn on ones that won't. Requires the homeHero section among supports.sections."
|
|
115
115
|
},
|
|
116
116
|
"behaviors": {
|
|
117
117
|
"type": "array",
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
"imagery": {
|
|
128
128
|
"type": "object",
|
|
129
129
|
"additionalProperties": false,
|
|
130
|
-
"description": "The template's OWN image advice, surfaced beside uploads in the charity's editor
|
|
130
|
+
"description": "The template's OWN image advice, surfaced beside uploads in the charity's editor, a design statement (what shape suits THIS composition), advisory only, never enforced. Entity images (events, courses, articles) are platform-scoped instead: see the contract's imagery.json envelopes.",
|
|
131
131
|
"properties": {
|
|
132
132
|
"hero": {
|
|
133
133
|
"type": "object",
|
|
@@ -173,7 +173,7 @@
|
|
|
173
173
|
"name": {
|
|
174
174
|
"type": "string",
|
|
175
175
|
"maxLength": 40,
|
|
176
|
-
"description": "The look's evocative, author-chosen name
|
|
176
|
+
"description": "The look's evocative, author-chosen name, shown as a one-click chip in Appearance."
|
|
177
177
|
},
|
|
178
178
|
"values": {
|
|
179
179
|
"type": "object",
|
|
@@ -206,7 +206,7 @@
|
|
|
206
206
|
"group": {
|
|
207
207
|
"type": "string",
|
|
208
208
|
"enum": ["typography", "looks"],
|
|
209
|
-
"description": "Where the admin surfaces this knob: 'typography' → the Typography section beside the font slots; 'looks' → the Looks section with the one-click bundles (colour schemes and accent dials belong there
|
|
209
|
+
"description": "Where the admin surfaces this knob: 'typography' → the Typography section beside the font slots; 'looks' → the Looks section with the one-click bundles (colour schemes and accent dials belong there, and ungrouped color knobs plus a knob keyed 'scheme' default there anyway); other ungrouped knobs render under Template options."
|
|
210
210
|
},
|
|
211
211
|
"weights": {
|
|
212
212
|
"type": "array",
|
|
@@ -216,7 +216,7 @@
|
|
|
216
216
|
}
|
|
217
217
|
}
|
|
218
218
|
},
|
|
219
|
-
"description": "The template's own theming knobs (colour schemes etc.)
|
|
219
|
+
"description": "The template's own theming knobs (colour schemes etc.), rendered as an editor in Appearance/get-started; values land in site-config config.theme."
|
|
220
220
|
}
|
|
221
221
|
}
|
|
222
222
|
}
|