@se-studio/core-data-types 1.0.167 → 1.0.168
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 +7 -0
- package/README.md +1 -1
- package/docs/llms.md +6 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
# @se-studio/core-data-types
|
|
2
2
|
|
|
3
|
+
## 1.0.168
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Bulk version bump: patch for all packages
|
|
8
|
+
|
|
3
9
|
## 1.0.167
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
6
12
|
|
|
13
|
+
- Version bump: patch for changed packages
|
|
7
14
|
- ccad4d9: Document external component type discriminator (#34): projects must use `externalComponentType` (Contentful field name), not `externalType`. Restore deferred discriminator pattern on `IBaseExternalComponent`. Consumer upgrade guide: `docs/UPGRADE_EXTERNAL_COMPONENT_TYPE.md`.
|
|
8
15
|
|
|
9
16
|
## 1.0.166
|
package/README.md
CHANGED
|
@@ -92,7 +92,7 @@ type PartialPage = DeepPartial<IPage>;
|
|
|
92
92
|
- Tag / tag type `show?: boolean` - Visual display on cards and detail pages only (`false` hides; unset = visible). Distinct from `hidden` and `indexed` on `IInternalLink`
|
|
93
93
|
- `date?: string` - Publication date
|
|
94
94
|
- `author?: IPersonLink` - Optional author
|
|
95
|
-
- `externalLink?: string | null` -
|
|
95
|
+
- `externalLink?: string | null` - Supplementary external URL (e.g. DOI or publisher link). On `IArticleLink`, `href` is the internal detail URL when the article has article-level body content (`topContent`, `content`, or `bottomContent` on the article entry; article-type `articlePageTopContent` does not count); external-only articles use `externalLink` as `href`.
|
|
96
96
|
- `download?: IDownloadAsset` - Optional downloadable asset
|
|
97
97
|
- `subtitle?: string` - Article subtitle (e.g. customer name for case studies)
|
|
98
98
|
- `visuals?: ReadonlyArray<IVisual>` - Additional visuals beyond the featured image; used for article browser / gallery views
|
package/docs/llms.md
CHANGED
|
@@ -109,6 +109,12 @@ import {
|
|
|
109
109
|
} from '@se-studio/core-data-types';
|
|
110
110
|
```
|
|
111
111
|
|
|
112
|
+
**`IArticleLink` `href` vs `externalLink`:**
|
|
113
|
+
|
|
114
|
+
- `href` is internal when the article has article-level body content (`topContent`, `content`, or `bottomContent` on the article entry). Article-type `articlePageTopContent` does not count.
|
|
115
|
+
- External-only articles (no article-level body content, with `externalLink`) use `externalLink` as `href`.
|
|
116
|
+
- `externalLink` is always preserved on the link object when set (e.g. DOI or publisher URL alongside an on-site detail page).
|
|
117
|
+
|
|
112
118
|
## Visual / Media Types
|
|
113
119
|
|
|
114
120
|
```ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@se-studio/core-data-types",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.168",
|
|
4
4
|
"description": "Core TypeScript type definitions for SE Studio content models",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"url": "https://github.com/Something-Else-Studio/se-core-product/issues"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@biomejs/biome": "^2.4.
|
|
42
|
+
"@biomejs/biome": "^2.4.16",
|
|
43
43
|
"typescript": "^6.0.3"
|
|
44
44
|
},
|
|
45
45
|
"scripts": {
|