@heroiclands/package-build 22.16.0 → 22.17.1
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 +24 -0
- package/bin/content-commands.mjs +93 -14
- package/bin/package-build.mjs +14 -2
- package/config.mjs +54 -3
- package/docs/api.md +22 -22
- package/docs/authoring/dates-and-calendars.md +63 -11
- package/docs/authoring/links-and-markup.md +1 -1
- package/docs/commands.md +78 -40
- package/docs/configuration.md +49 -22
- package/docs/reference/format-details.md +107 -165
- package/docs/reference/note-types.md +11 -10
- package/engine/calendar-format.mjs +441 -0
- package/engine/calendar-human.mjs +65 -3
- package/engine/calendar-notes.mjs +277 -96
- package/engine/content-format.yaml +2 -1
- package/engine/date-conversion.mjs +4 -4
- package/engine/markdown-expressions.mjs +2 -1
- package/engine/note-dates.mjs +50 -22
- package/engine/readability-lint.mjs +196 -18
- package/engine/reckoning-markers.mjs +154 -256
- package/package.json +5 -1
- package/types/config.d.mts +14 -2
- package/types/engine/calendar-format.d.mts +33 -0
- package/types/engine/calendar-notes.d.mts +3 -3
- package/types/engine/date-conversion.d.mts +1 -1
- package/types/engine/note-dates.d.mts +2 -2
- package/types/engine/readability-lint.d.mts +11 -5
- package/types/engine/reckoning-markers.d.mts +13 -28
|
@@ -1,29 +1,14 @@
|
|
|
1
|
-
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
eras: Map<string, object>;
|
|
13
|
-
markers: Map<string, object>;
|
|
14
|
-
findings: object[];
|
|
15
|
-
};
|
|
16
|
-
/**
|
|
17
|
-
* Read the world's year length and its era markers from one corpus index.
|
|
18
|
-
*
|
|
19
|
-
* @param {{notes?: readonly object[]}|undefined} index - The corpus index.
|
|
20
|
-
* @returns {{eras: Map<string, object>, markers: Map<string, object>, daysPerYear: number|undefined, findings: object[]}}
|
|
21
|
-
*/
|
|
22
|
-
export function reckoningContext(index: {
|
|
23
|
-
notes?: readonly object[];
|
|
24
|
-
} | undefined): {
|
|
25
|
-
eras: Map<string, object>;
|
|
26
|
-
markers: Map<string, object>;
|
|
27
|
-
daysPerYear: number | undefined;
|
|
28
|
-
findings: object[];
|
|
1
|
+
/** Resolve calendar eras on the canonical day axis. */
|
|
2
|
+
export function resolveReckoningMarkers(index: any, daysPerYear: any): {
|
|
3
|
+
eras: Map<any, any>;
|
|
4
|
+
markers: Map<any, any>;
|
|
5
|
+
findings: {
|
|
6
|
+
severity: string;
|
|
7
|
+
message: string;
|
|
8
|
+
line?: number;
|
|
9
|
+
column?: number;
|
|
10
|
+
file?: any;
|
|
11
|
+
}[];
|
|
29
12
|
};
|
|
13
|
+
/** Read the world's year length and resolve every calendar era in one corpus. */
|
|
14
|
+
export function reckoningContext(index: any): any;
|