gedcom-ts 2026.6.3 → 2026.6.4

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.
@@ -1,13 +1,24 @@
1
+ import type { Person } from "../../commons/Person";
1
2
  import type { PersonNameVariant } from "../../commons/PersonNameVariant";
2
3
  export type ParsedPersonName = {
3
4
  firstnames: string[];
4
5
  lastname: string;
5
6
  };
7
+ /** Retire les guillemets GEDCOM 7 (`"Jean Pierre"`) autour d’un segment de nom. */
8
+ export declare function sanitizeGedcomNameToken(value: string): string;
6
9
  export declare function parsePersonName(rawName: string): ParsedPersonName;
7
10
  /**
8
11
  * Choisit la valeur `1 NAME` la plus pertinente : priorité au bloc avec `2 TYPE BIRTH`
9
12
  * (GEDCOM 7 / noms multiples), sinon premier nom avec patronyme `/…/`, sinon le premier `NAME`.
10
13
  */
11
14
  export declare function extractRawNameFromGedcomLines(lines: string[]): string | null;
15
+ /** Affichage lisible d’un bloc `1 NAME` (GIVN/SURN ou payload), sans guillemets GEDCOM. */
16
+ export declare function formatPersonNameFromVariant(variant: PersonNameVariant): string | null;
17
+ export declare function personNamePartsFromPerson(person: Person): {
18
+ given: string;
19
+ surname: string;
20
+ };
21
+ export declare function personDisplayName(person: Person): string;
22
+ export declare function personInitialsFromPerson(person: Person): string;
12
23
  /** Même logique que {@link extractRawNameFromGedcomLines} appliquée aux blocs `NAME` déjà découpés. */
13
24
  export declare function selectPrimaryNameVariant(variants: PersonNameVariant[]): PersonNameVariant | null;
package/dist/version.d.ts CHANGED
@@ -3,4 +3,4 @@
3
3
  * **À aligner sur** la propriété `version` du `package.json` à chaque release
4
4
  * (un test vérifie l’égalité).
5
5
  */
6
- export declare const GEDCOM_LIBRARY_VERSION = "2026.6.3";
6
+ export declare const GEDCOM_LIBRARY_VERSION = "2026.6.4";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gedcom-ts",
3
- "version": "2026.6.3",
3
+ "version": "2026.6.4",
4
4
  "description": "TypeScript GEDCOM toolkit for browser apps: import .ged/.zip, edit typed genealogy data, and export GEDCOM or GEDZIP.",
5
5
  "author": "Bertrand Jaunet <bertrand.jaunet@gmail.com>",
6
6
  "license": "SEE LICENSE IN LICENSE",