@se-studio/skills 1.9.10 → 1.9.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @se-studio/skills
2
2
 
3
+ ## 1.9.11
4
+
5
+ ### Patch Changes
6
+
7
+ - 3ecda13: Document that different UI/behaviour needs distinct `componentType` / `collectionType`; `cmsLabel` is for authors (+ trackingLocation), never a runtime layout/renderer switch. Update create-component, create-collection, and contentful-cms-core (synced into contentful-cms bundled `core` skill).
8
+
3
9
  ## 1.9.10
4
10
 
5
11
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@se-studio/skills",
3
- "version": "1.9.10",
3
+ "version": "1.9.11",
4
4
  "description": "SE Studio agent skills for marketing site development with Contentful CMS",
5
5
  "repository": {
6
6
  "type": "git",
@@ -218,8 +218,8 @@ Based on the SE Studio content model:
218
218
  ### Component fields
219
219
  | Field | Type | Notes |
220
220
  |-------|------|-------|
221
- | `cmsLabel` | string | Internal name (required) |
222
- | `componentType` | string | Type discriminator (e.g. `HeroSimple`) |
221
+ | `cmsLabel` | string | Internal name for authors in Contentful (required). Not a runtime layout/renderer switch — never branch code on it. |
222
+ | `componentType` | string | Type discriminator for renderer lookup (e.g. `HeroSimple`). Different UI/behaviour needs a distinct value. |
223
223
  | `heading` | string | Main heading (only shown when `showHeading` is true) |
224
224
  | `showHeading` | boolean | Whether to display the heading |
225
225
  | `preHeading` | string | Text above the heading |
@@ -234,7 +234,7 @@ Based on the SE Studio content model:
234
234
  Same as Component plus:
235
235
  | Field | Type | Notes |
236
236
  |-------|------|-------|
237
- | `collectionType` | string | Type discriminator (e.g. `CardGrid`) |
237
+ | `collectionType` | string | Type discriminator for renderer lookup (e.g. `CardGrid`). Different UI/behaviour needs a distinct value; do not switch on `cmsLabel`. |
238
238
 
239
239
  ### Page fields
240
240
  | Field | Type | Notes |
@@ -289,3 +289,7 @@ export const MyCollectionRegistration = defineCollection({
289
289
  * Pass server-rendered cards as `children` to the client wrapper.
290
290
  7. **Register**:
291
291
  * Add to `collectionRegistrationsList` in `src/lib/registrations.ts`. The `name` is defined only in your `defineCollection(...)` call.
292
+ 8. **Type vs label (hard rule)**:
293
+ * New UI or behaviour → new Contentful `collectionType` enum value + registration. Never `if (cmsLabel)` / parse labels for layout or renderer choice.
294
+ * `cmsLabel` is for authors (and may pass to `trackingLocation`); it is not a runtime discriminator.
295
+ * Position/variant-only differences may share one Core under multiple `defineCollection` registrations; drive layout from `collectionType`.
@@ -244,3 +244,7 @@ export const MyNewRegistration = defineComponent({
244
244
  * Provide mock data for showcase.
245
245
  8. **Register Component**:
246
246
  * Add to `componentRegistrationsList` in `src/lib/registrations.ts`. The `name` is defined only in your `defineComponent(...)` call; do not duplicate it as a Record key.
247
+ 9. **Type vs label (hard rule)**:
248
+ * New UI or behaviour → new Contentful `componentType` enum value + registration. Never `if (cmsLabel)` / parse labels for layout or renderer choice.
249
+ * `cmsLabel` is for authors (and may pass to `trackingLocation`); it is not a runtime discriminator.
250
+ * Position/variant-only differences may share one Core under multiple `defineComponent` registrations; drive layout from `componentType`.