@heroiclands/package-build 23.12.5 → 23.12.6
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 +10 -0
- package/content-config.mjs +26 -0
- package/docs/api.md +8 -5
- package/docs/authoring/dates-and-calendars.md +29 -1
- package/docs/authoring/links-and-markup.md +3 -3
- package/docs/configuration.md +27 -3
- package/docs/guides/module-project.md +1 -1
- package/docs/reference/format-details.md +62 -17
- package/docs/reference/note-types.md +9 -10
- package/engine/content-format.yaml +0 -2
- package/engine/content-index.mjs +21 -2
- package/engine/content-links.mjs +3 -0
- package/engine/event-rows.mjs +63 -18
- package/engine/event-views.mjs +28 -15
- package/engine/index-records.mjs +1 -0
- package/engine/infobox.mjs +4 -8
- package/engine/markdown-expressions.mjs +72 -17
- package/engine/note-calendars.mjs +314 -0
- package/engine/note-vocabulary.mjs +11 -16
- package/engine/reckoning-markers.mjs +63 -3
- package/engine/sql-tables.mjs +9 -3
- package/package.json +1 -1
- package/types/content-config.d.mts +12 -0
- package/types/engine/content-index.d.mts +7 -1
- package/types/engine/event-rows.d.mts +16 -1
- package/types/engine/event-views.d.mts +2 -1
- package/types/engine/note-calendars.d.mts +60 -0
- package/types/engine/reckoning-markers.d.mts +32 -1
|
@@ -10,5 +10,36 @@ export function resolveReckoningMarkers(index: any, daysPerYear: any): {
|
|
|
10
10
|
file?: any;
|
|
11
11
|
}[];
|
|
12
12
|
};
|
|
13
|
-
/**
|
|
13
|
+
/**
|
|
14
|
+
* The key a note's resolved calendar is filed under: its type and shortcode.
|
|
15
|
+
*
|
|
16
|
+
* @param {object|undefined} fm - A note's frontmatter or record.
|
|
17
|
+
* @returns {string|undefined} The key.
|
|
18
|
+
*/
|
|
19
|
+
export function noteCalendarKey(fm: object | undefined): string | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* A record's `resolvedCalendar` as its canonical Address string: an Address
|
|
22
|
+
* tuple, as a record in memory carries it, or the string an encoded record
|
|
23
|
+
* carries.
|
|
24
|
+
*
|
|
25
|
+
* @param {unknown} value - The value.
|
|
26
|
+
* @returns {string|undefined} The Address, or `undefined` for none.
|
|
27
|
+
*/
|
|
28
|
+
export function calendarAddress(value: unknown): string | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* Each note's resolved calendar, by {@link noteCalendarKey}, from the
|
|
31
|
+
* `resolvedCalendar` the content index writes on a record.
|
|
32
|
+
*
|
|
33
|
+
* @param {Iterable<object>|undefined} notes - Index records, or
|
|
34
|
+
* `{ fm, resolvedCalendar }` entries.
|
|
35
|
+
* @returns {Map<string, string>} Note key to the calendar's canonical Address.
|
|
36
|
+
*/
|
|
37
|
+
export function noteCalendarMap(notes: Iterable<object> | undefined): Map<string, string>;
|
|
38
|
+
/**
|
|
39
|
+
* Read the world's year length and resolve every calendar era in one corpus.
|
|
40
|
+
*
|
|
41
|
+
* The context also carries `noteCalendars`, each note's resolved calendar by
|
|
42
|
+
* note, read from the `resolvedCalendar` the content index writes on a record;
|
|
43
|
+
* {@link module:engine/note-calendars.noteCalendar} reads it.
|
|
44
|
+
*/
|
|
14
45
|
export function reckoningContext(index: any): any;
|