@se-studio/skills 1.0.41 → 1.0.42
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 +16 -0
- package/package.json +1 -1
- package/skills/contentful-cms-core/SKILL.md +20 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @se-studio/skills
|
|
2
2
|
|
|
3
|
+
## 1.0.42
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Resolve person **`bio`** rich text on **`IPersonLink`** so team cards, related-people collections, and search/markdown pipelines can use CMS bios without fetching full person pages.
|
|
8
|
+
|
|
9
|
+
**@se-studio/core-data-types** — Add **`IResolvedRichText`** (`{ json, customStyles? }`) as the shared resolved RTF shape. **`IPersonLink.bio`** and **`ILinkProps.longText`** use it. **`contentfulAllPersonLinks`** consumers get typed **`IPersonLink[]`**.
|
|
10
|
+
|
|
11
|
+
**@se-studio/contentful-rest-api** — Include `fields.bio` in **`PERSON_LINK_FIELDS`**. **`basePersonLinkConverter`** returns **`IPersonLink`** with resolved bio. **`contentfulAllPersonLinks`** return type is **`CmsResponse<IPersonLink[]>`**.
|
|
12
|
+
|
|
13
|
+
**@se-studio/markdown-renderer** — **`MarkdownConverter`** exports person-link **`bio`** to Markdown (search/index pipelines). Uses **`isPersonLink`** type guard.
|
|
14
|
+
|
|
15
|
+
**@se-studio/core-ui** — **`FetchHelpers.getAllPersonLinks`** for collection use via **`rendererConfig.fetchHelpers`** (no cms-server import). **`getAllPersonLinks`** and sitemap deps typed as **`IPersonLink[]`**.
|
|
16
|
+
|
|
17
|
+
**@se-studio/contentful-cms** / **@se-studio/skills** — Document Person **`bio`** RTF authoring in cms-edit skills and functional spec.
|
|
18
|
+
|
|
3
19
|
## 1.0.41
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -437,6 +437,26 @@ cms-edit ensure tag --slug asco-2025 --name "ASCO 2025" --tag-type conference-ve
|
|
|
437
437
|
|
|
438
438
|
See `cms-edit help fields-taxonomy` and `cms-edit help taxonomy-from-json` for field reference and batch schema.
|
|
439
439
|
|
|
440
|
+
## Person entries
|
|
441
|
+
|
|
442
|
+
Key fields: `name`, `slug`, `jobTitle`, `description`, `media` (featured image), **`bio`** (rich text).
|
|
443
|
+
|
|
444
|
+
```bash
|
|
445
|
+
# Add a person to a collection or page content array
|
|
446
|
+
cms-edit add "Dr. Jane Smith" --content-type person
|
|
447
|
+
|
|
448
|
+
# Scalars
|
|
449
|
+
cms-edit set @c0 name "Dr. Jane Smith"
|
|
450
|
+
cms-edit set @c0 slug jane-smith
|
|
451
|
+
cms-edit set @c0 jobTitle "Chief Medical Officer"
|
|
452
|
+
|
|
453
|
+
# Bio (same RTF workflow as component body)
|
|
454
|
+
printf '## Background\n\nBoard-certified with 20 years of experience.\n' | cms-edit rtf @c0 bio --markdown -
|
|
455
|
+
cms-edit read @c0 bio
|
|
456
|
+
```
|
|
457
|
+
|
|
458
|
+
**Site/runtime:** Resolved **person links** (`IPersonLink` from the REST API — article authors, collection contents, `contentfulAllPersonLinks`, related-people helpers) include **`bio`** when set in CMS. Use for team cards, related-people collections, and markdown/search export — not only full person detail pages.
|
|
459
|
+
|
|
440
460
|
**Idempotent taxonomy:** `--if-not-exists` / `ensure` are check-then-create — safe for sequential imports, not for parallel creates on the same slug.
|
|
441
461
|
|
|
442
462
|
```bash
|