gedcom-ts 2.1.0 → 2026.5.0
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 +83 -0
- package/README.md +99 -8
- package/dist/commons/Act.d.ts +9 -2
- package/dist/commons/Person.d.ts +6 -1
- package/dist/commons/clonePrimitives.d.ts +17 -0
- package/dist/commons/gedcomEventTags.d.ts +7 -0
- package/dist/dataset/ReadGedEdit.d.ts +27 -0
- package/dist/dataset/cloneModels.d.ts +8 -0
- package/dist/dataset/graphOps.d.ts +29 -0
- package/dist/dataset/index.d.ts +9 -0
- package/dist/dataset/readGedCommands.d.ts +46 -0
- package/dist/dataset/readGedMutations.d.ts +12 -0
- package/dist/dataset/validation.d.ts +36 -0
- package/dist/edit/ActEdit.d.ts +8 -0
- package/dist/edit/ActMediaEdit.d.ts +21 -0
- package/dist/edit/ActsEdit.d.ts +18 -1
- package/dist/edit/GedcomExportOptionsEdit.d.ts +20 -0
- package/dist/edit/IndiAttributesEdit.d.ts +38 -0
- package/dist/edit/MultimediaFileEdit.d.ts +17 -0
- package/dist/edit/NameVariantsEdit.d.ts +43 -0
- package/dist/edit/NoteEdit.d.ts +18 -0
- package/dist/edit/NotesEdit.d.ts +11 -0
- package/dist/edit/PersonEdit.d.ts +20 -0
- package/dist/edit/PersonMediaEdit.d.ts +27 -0
- package/dist/edit/factories.d.ts +35 -0
- package/dist/edit/index.d.ts +14 -0
- package/dist/import/PreservedRecordsBuffer.d.ts +21 -0
- package/dist/import/ReadGed.d.ts +6 -0
- package/dist/import/SplitedInformations.d.ts +7 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.mjs +1 -1
- package/dist/utils/gedcom/importGedcomNote.d.ts +17 -0
- package/dist/utils/gedcom/uriBasename.d.ts +2 -0
- package/dist/utils/multimedia/registerTrackedMedia.d.ts +10 -0
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Note } from "../../commons/Note";
|
|
2
|
+
import { Identifier } from "../../commons/Identifier.enum";
|
|
3
|
+
export type GedcomNoteImportContext = {
|
|
4
|
+
globalNotes?: Map<number, string[]>;
|
|
5
|
+
notePointerToId?: ReadonlyMap<string, number>;
|
|
6
|
+
};
|
|
7
|
+
/** `1 NOTE` sous INDI (pas `2 NOTE` sous un acte). */
|
|
8
|
+
export declare function isPersonLevelGedcomLine(level: string): boolean;
|
|
9
|
+
/** `2 NOTE` sous un événement (`BIRT`, `MARR`, …). */
|
|
10
|
+
export declare function isActLevelGedcomNoteLine(level: string): boolean;
|
|
11
|
+
export declare function isGedcomNoteContinuationTag(tag: string): tag is Identifier.CONC | Identifier.CONT;
|
|
12
|
+
/**
|
|
13
|
+
* Construit une {@link Note} à partir d’une valeur `NOTE` inline ou d’un pointeur `@N…@`.
|
|
14
|
+
*/
|
|
15
|
+
export declare function createNoteFromGedcomPayload(rawValue: string, ctx?: GedcomNoteImportContext | null): Note | null;
|
|
16
|
+
/** Ajoute une sous-ligne `CONC` / `CONT` à une note en cours d’import. */
|
|
17
|
+
export declare function appendGedcomNoteSubline(note: Note, tag: Identifier.CONC | Identifier.CONT, value: string): void;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { MultimediaFile, MultimediaFiles } from "../../commons/MultimediaFile";
|
|
2
|
+
export type TrackedMediaContext = {
|
|
3
|
+
multimediaFiles: MultimediaFiles;
|
|
4
|
+
newMultimediaFiles: Map<string, MultimediaFile>;
|
|
5
|
+
pathBase: string;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Enregistre un {@link MultimediaFile} avec chemin relatif unique (suffixe `_1`, …) et synchronise `files` + map interne.
|
|
9
|
+
*/
|
|
10
|
+
export declare function registerTrackedMedia(ctx: TrackedMediaContext, file: MultimediaFile, logicalFileName: string): string | null;
|
package/dist/version.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gedcom-ts",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2026.5.0",
|
|
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",
|