@sarimarcus/content-sites-core 0.42.1 → 0.42.3
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 +8 -0
- package/dist/eras/index.d.ts +5 -0
- package/package.json +1 -1
- package/src/eras/index.ts +5 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
All packages in the platform release in lockstep; entries are per release version.
|
|
4
4
|
|
|
5
|
+
## 0.42.3 (2026-10-22)
|
|
6
|
+
|
|
7
|
+
- No changes; lockstep release with ui (SLA-3307, SLA-3308).
|
|
8
|
+
|
|
9
|
+
## 0.42.2 (2026-10-21)
|
|
10
|
+
|
|
11
|
+
- `eras`: `EraDefinition` gains an optional `hook` (one line under the era title on the chronology scenes) and an optional `image` (the era's hero, an `ImageMetadata`). Both are optional; no site edit is needed (SLA-3299).
|
|
12
|
+
|
|
5
13
|
## 0.42.1 (2026-10-21)
|
|
6
14
|
|
|
7
15
|
- No changes; lockstep release with ui (SLA-3303).
|
package/dist/eras/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ImageMetadata } from 'astro';
|
|
1
2
|
import type { z as Zod } from 'astro/zod';
|
|
2
3
|
import type { FieldIssue } from '../internal/issues.ts';
|
|
3
4
|
/** One era of a site's chronology. Years are proleptic Gregorian integers, negative = BCE; `endYear` null = to present. */
|
|
@@ -14,6 +15,10 @@ export interface EraDefinition {
|
|
|
14
15
|
label: string;
|
|
15
16
|
href: string;
|
|
16
17
|
}[];
|
|
18
|
+
/** One line under the era title on the chronology scenes. */
|
|
19
|
+
hook?: string;
|
|
20
|
+
/** Hero image of the era's scene; without one the scene renders a plain header. */
|
|
21
|
+
image?: ImageMetadata;
|
|
17
22
|
}
|
|
18
23
|
export type EraIssue = FieldIssue;
|
|
19
24
|
export declare function eraHref(era: EraDefinition, basePath?: string): string;
|
package/package.json
CHANGED
package/src/eras/index.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// Public surface of @sarimarcus/content-sites-core/eras: historical-era classification. The era list is per site
|
|
2
2
|
// data; this module holds the contract, the content-collection fields and the temporalCoverage format.
|
|
3
|
+
import type { ImageMetadata } from 'astro';
|
|
3
4
|
import type { z as Zod } from 'astro/zod';
|
|
4
5
|
import { isObject, yearPairIssues } from '../internal/guards.ts';
|
|
5
6
|
import type { FieldIssue } from '../internal/issues.ts';
|
|
@@ -15,6 +16,10 @@ export interface EraDefinition {
|
|
|
15
16
|
/** Fragment id on the chronology page, without '#'. */
|
|
16
17
|
anchor: string;
|
|
17
18
|
dossiers?: { label: string; href: string }[];
|
|
19
|
+
/** One line under the era title on the chronology scenes. */
|
|
20
|
+
hook?: string;
|
|
21
|
+
/** Hero image of the era's scene; without one the scene renders a plain header. */
|
|
22
|
+
image?: ImageMetadata;
|
|
18
23
|
}
|
|
19
24
|
|
|
20
25
|
export type EraIssue = FieldIssue;
|