@treeviz/gedcom-parser 1.0.14 → 1.0.16
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/dist/classes/index.d.ts +2 -28
- package/dist/classes/index.js +6711 -21
- package/dist/cli/index.d.ts +0 -2
- package/dist/cli/index.js +7824 -24
- package/dist/constants/index.d.ts +49 -4
- package/dist/constants/index.js +5795 -4
- package/dist/factories/index.d.ts +202 -13
- package/dist/factories/index.js +5780 -8
- package/dist/index-BvW-KWJP.d.ts +1654 -0
- package/dist/index.d.ts +9 -28
- package/dist/index.js +7378 -35
- package/dist/interfaces/index.d.ts +2 -12
- package/dist/interfaces/index.js +1 -1
- package/dist/kinship-translator/index.d.ts +146 -11
- package/dist/kinship-translator/index.js +5725 -9
- package/dist/place-parser-RlXCXZ8F.d.ts +37 -0
- package/dist/structures/index.d.ts +25 -27
- package/dist/structures/index.js +1 -1
- package/dist/types/index.d.ts +69 -8
- package/dist/types/index.js +29 -6
- package/dist/utils/index.d.ts +91 -18
- package/dist/utils/index.js +6951 -17
- package/package.json +4 -3
- package/dist/classes/common.d.ts +0 -91
- package/dist/classes/common.d.ts.map +0 -1
- package/dist/classes/common.js +0 -488
- package/dist/classes/date.d.ts +0 -27
- package/dist/classes/date.d.ts.map +0 -1
- package/dist/classes/date.js +0 -178
- package/dist/classes/fam.d.ts +0 -19
- package/dist/classes/fam.d.ts.map +0 -1
- package/dist/classes/fam.js +0 -38
- package/dist/classes/fams.d.ts +0 -16
- package/dist/classes/fams.d.ts.map +0 -1
- package/dist/classes/fams.js +0 -41
- package/dist/classes/gedcom.d.ts +0 -139
- package/dist/classes/gedcom.d.ts.map +0 -1
- package/dist/classes/gedcom.js +0 -910
- package/dist/classes/index.d.ts.map +0 -1
- package/dist/classes/indi.d.ts +0 -332
- package/dist/classes/indi.d.ts.map +0 -1
- package/dist/classes/indi.js +0 -2131
- package/dist/classes/indis.d.ts +0 -55
- package/dist/classes/indis.d.ts.map +0 -1
- package/dist/classes/indis.js +0 -457
- package/dist/classes/list.d.ts +0 -55
- package/dist/classes/list.d.ts.map +0 -1
- package/dist/classes/list.js +0 -440
- package/dist/classes/name.d.ts +0 -20
- package/dist/classes/name.d.ts.map +0 -1
- package/dist/classes/name.js +0 -48
- package/dist/classes/note.d.ts +0 -12
- package/dist/classes/note.d.ts.map +0 -1
- package/dist/classes/note.js +0 -46
- package/dist/classes/obje.d.ts +0 -12
- package/dist/classes/obje.d.ts.map +0 -1
- package/dist/classes/obje.js +0 -81
- package/dist/classes/objes.d.ts +0 -8
- package/dist/classes/objes.d.ts.map +0 -1
- package/dist/classes/objes.js +0 -13
- package/dist/classes/repo.d.ts +0 -11
- package/dist/classes/repo.d.ts.map +0 -1
- package/dist/classes/repo.js +0 -6
- package/dist/classes/repos.d.ts +0 -8
- package/dist/classes/repos.d.ts.map +0 -1
- package/dist/classes/repos.js +0 -13
- package/dist/classes/sour.d.ts +0 -11
- package/dist/classes/sour.d.ts.map +0 -1
- package/dist/classes/sour.js +0 -6
- package/dist/classes/sours.d.ts +0 -8
- package/dist/classes/sours.d.ts.map +0 -1
- package/dist/classes/sours.js +0 -13
- package/dist/classes/subm.d.ts +0 -10
- package/dist/classes/subm.d.ts.map +0 -1
- package/dist/classes/subm.js +0 -6
- package/dist/classes/subms.d.ts +0 -8
- package/dist/classes/subms.d.ts.map +0 -1
- package/dist/classes/subms.js +0 -13
- package/dist/cli/commands/convert.d.ts +0 -3
- package/dist/cli/commands/convert.d.ts.map +0 -1
- package/dist/cli/commands/convert.js +0 -83
- package/dist/cli/commands/extract.d.ts +0 -3
- package/dist/cli/commands/extract.d.ts.map +0 -1
- package/dist/cli/commands/extract.js +0 -85
- package/dist/cli/commands/find.d.ts +0 -3
- package/dist/cli/commands/find.d.ts.map +0 -1
- package/dist/cli/commands/find.js +0 -97
- package/dist/cli/commands/info.d.ts +0 -3
- package/dist/cli/commands/info.d.ts.map +0 -1
- package/dist/cli/commands/info.js +0 -80
- package/dist/cli/commands/merge.d.ts +0 -3
- package/dist/cli/commands/merge.d.ts.map +0 -1
- package/dist/cli/commands/merge.js +0 -61
- package/dist/cli/commands/relatives.d.ts +0 -3
- package/dist/cli/commands/relatives.d.ts.map +0 -1
- package/dist/cli/commands/relatives.js +0 -107
- package/dist/cli/commands/show.d.ts +0 -3
- package/dist/cli/commands/show.d.ts.map +0 -1
- package/dist/cli/commands/show.js +0 -176
- package/dist/cli/commands/stats.d.ts +0 -3
- package/dist/cli/commands/stats.d.ts.map +0 -1
- package/dist/cli/commands/stats.js +0 -59
- package/dist/cli/commands/validate.d.ts +0 -3
- package/dist/cli/commands/validate.d.ts.map +0 -1
- package/dist/cli/commands/validate.js +0 -148
- package/dist/cli/index.d.ts.map +0 -1
- package/dist/cli/utils/formatters.d.ts +0 -69
- package/dist/cli/utils/formatters.d.ts.map +0 -1
- package/dist/cli/utils/formatters.js +0 -125
- package/dist/cli/utils/helpers.d.ts +0 -21
- package/dist/cli/utils/helpers.d.ts.map +0 -1
- package/dist/cli/utils/helpers.js +0 -58
- package/dist/constants/constants.d.ts +0 -14
- package/dist/constants/constants.d.ts.map +0 -1
- package/dist/constants/constants.js +0 -13
- package/dist/constants/filters.d.ts +0 -18
- package/dist/constants/filters.d.ts.map +0 -1
- package/dist/constants/filters.js +0 -44
- package/dist/constants/index.d.ts.map +0 -1
- package/dist/constants/orders.d.ts +0 -17
- package/dist/constants/orders.d.ts.map +0 -1
- package/dist/constants/orders.js +0 -240
- package/dist/factories/cache-factory.d.ts +0 -30
- package/dist/factories/cache-factory.d.ts.map +0 -1
- package/dist/factories/cache-factory.js +0 -43
- package/dist/factories/date-locale-factory.d.ts +0 -30
- package/dist/factories/date-locale-factory.d.ts.map +0 -1
- package/dist/factories/date-locale-factory.js +0 -34
- package/dist/factories/i18n-factory.d.ts +0 -40
- package/dist/factories/i18n-factory.d.ts.map +0 -1
- package/dist/factories/i18n-factory.js +0 -44
- package/dist/factories/index.d.ts.map +0 -1
- package/dist/factories/kinship-factory.d.ts +0 -38
- package/dist/factories/kinship-factory.d.ts.map +0 -1
- package/dist/factories/kinship-factory.js +0 -35
- package/dist/factories/place-parser-provider.d.ts +0 -32
- package/dist/factories/place-parser-provider.d.ts.map +0 -1
- package/dist/factories/place-parser-provider.js +0 -35
- package/dist/factories/place-translator-provider.d.ts +0 -32
- package/dist/factories/place-translator-provider.d.ts.map +0 -1
- package/dist/factories/place-translator-provider.js +0 -35
- package/dist/index.d.ts.map +0 -1
- package/dist/interfaces/common.d.ts +0 -43
- package/dist/interfaces/common.d.ts.map +0 -1
- package/dist/interfaces/common.js +0 -1
- package/dist/interfaces/fam.d.ts +0 -11
- package/dist/interfaces/fam.d.ts.map +0 -1
- package/dist/interfaces/fam.js +0 -1
- package/dist/interfaces/fams.d.ts +0 -9
- package/dist/interfaces/fams.d.ts.map +0 -1
- package/dist/interfaces/fams.js +0 -1
- package/dist/interfaces/gedcom.d.ts +0 -30
- package/dist/interfaces/gedcom.d.ts.map +0 -1
- package/dist/interfaces/gedcom.js +0 -1
- package/dist/interfaces/index.d.ts.map +0 -1
- package/dist/interfaces/indi.d.ts +0 -113
- package/dist/interfaces/indi.d.ts.map +0 -1
- package/dist/interfaces/indi.js +0 -1
- package/dist/interfaces/indis.d.ts +0 -31
- package/dist/interfaces/indis.d.ts.map +0 -1
- package/dist/interfaces/indis.js +0 -1
- package/dist/interfaces/list.d.ts +0 -52
- package/dist/interfaces/list.d.ts.map +0 -1
- package/dist/interfaces/list.js +0 -1
- package/dist/interfaces/obje.d.ts +0 -7
- package/dist/interfaces/obje.d.ts.map +0 -1
- package/dist/interfaces/obje.js +0 -1
- package/dist/interfaces/repo.d.ts +0 -7
- package/dist/interfaces/repo.d.ts.map +0 -1
- package/dist/interfaces/repo.js +0 -1
- package/dist/interfaces/sour.d.ts +0 -7
- package/dist/interfaces/sour.d.ts.map +0 -1
- package/dist/interfaces/sour.js +0 -1
- package/dist/interfaces/subm.d.ts +0 -6
- package/dist/interfaces/subm.d.ts.map +0 -1
- package/dist/interfaces/subm.js +0 -1
- package/dist/kinship-translator/index.d.ts.map +0 -1
- package/dist/kinship-translator/kinship-translator.basic.d.ts +0 -30
- package/dist/kinship-translator/kinship-translator.basic.d.ts.map +0 -1
- package/dist/kinship-translator/kinship-translator.basic.js +0 -74
- package/dist/kinship-translator/kinship-translator.d.ts +0 -26
- package/dist/kinship-translator/kinship-translator.d.ts.map +0 -1
- package/dist/kinship-translator/kinship-translator.de.d.ts +0 -18
- package/dist/kinship-translator/kinship-translator.de.d.ts.map +0 -1
- package/dist/kinship-translator/kinship-translator.de.js +0 -180
- package/dist/kinship-translator/kinship-translator.en.d.ts +0 -18
- package/dist/kinship-translator/kinship-translator.en.d.ts.map +0 -1
- package/dist/kinship-translator/kinship-translator.en.js +0 -182
- package/dist/kinship-translator/kinship-translator.es.d.ts +0 -18
- package/dist/kinship-translator/kinship-translator.es.d.ts.map +0 -1
- package/dist/kinship-translator/kinship-translator.es.js +0 -181
- package/dist/kinship-translator/kinship-translator.fr.d.ts +0 -18
- package/dist/kinship-translator/kinship-translator.fr.d.ts.map +0 -1
- package/dist/kinship-translator/kinship-translator.fr.js +0 -181
- package/dist/kinship-translator/kinship-translator.hu.d.ts +0 -19
- package/dist/kinship-translator/kinship-translator.hu.d.ts.map +0 -1
- package/dist/kinship-translator/kinship-translator.hu.js +0 -226
- package/dist/kinship-translator/kinship-translator.interface.d.ts +0 -19
- package/dist/kinship-translator/kinship-translator.interface.d.ts.map +0 -1
- package/dist/kinship-translator/kinship-translator.interface.js +0 -1
- package/dist/kinship-translator/kinship-translator.js +0 -103
- package/dist/kinship-translator/patterns.de.d.ts +0 -2
- package/dist/kinship-translator/patterns.de.d.ts.map +0 -1
- package/dist/kinship-translator/patterns.de.js +0 -14
- package/dist/kinship-translator/patterns.en.d.ts +0 -2
- package/dist/kinship-translator/patterns.en.d.ts.map +0 -1
- package/dist/kinship-translator/patterns.en.js +0 -14
- package/dist/kinship-translator/patterns.es.d.ts +0 -2
- package/dist/kinship-translator/patterns.es.d.ts.map +0 -1
- package/dist/kinship-translator/patterns.es.js +0 -14
- package/dist/kinship-translator/patterns.fr.d.ts +0 -2
- package/dist/kinship-translator/patterns.fr.d.ts.map +0 -1
- package/dist/kinship-translator/patterns.fr.js +0 -14
- package/dist/kinship-translator/patterns.hu.d.ts +0 -6
- package/dist/kinship-translator/patterns.hu.d.ts.map +0 -1
- package/dist/kinship-translator/patterns.hu.js +0 -97
- package/dist/kinship-translator/translators.d.ts +0 -6
- package/dist/kinship-translator/translators.d.ts.map +0 -1
- package/dist/kinship-translator/translators.js +0 -5
- package/dist/kinship-translator/types.d.ts +0 -9
- package/dist/kinship-translator/types.d.ts.map +0 -1
- package/dist/kinship-translator/types.js +0 -1
- package/dist/structures/address.d.ts +0 -14
- package/dist/structures/address.d.ts.map +0 -1
- package/dist/structures/address.js +0 -1
- package/dist/structures/association.d.ts +0 -13
- package/dist/structures/association.d.ts.map +0 -1
- package/dist/structures/association.js +0 -1
- package/dist/structures/change-date.d.ts +0 -8
- package/dist/structures/change-date.d.ts.map +0 -1
- package/dist/structures/change-date.js +0 -1
- package/dist/structures/creation-date.d.ts +0 -7
- package/dist/structures/creation-date.d.ts.map +0 -1
- package/dist/structures/creation-date.js +0 -1
- package/dist/structures/date.d.ts +0 -9
- package/dist/structures/date.d.ts.map +0 -1
- package/dist/structures/date.js +0 -1
- package/dist/structures/event-detail-structure.d.ts +0 -25
- package/dist/structures/event-detail-structure.d.ts.map +0 -1
- package/dist/structures/event-detail-structure.js +0 -1
- package/dist/structures/family.d.ts +0 -34
- package/dist/structures/family.d.ts.map +0 -1
- package/dist/structures/family.js +0 -1
- package/dist/structures/gedcom.d.ts +0 -59
- package/dist/structures/gedcom.d.ts.map +0 -1
- package/dist/structures/gedcom.js +0 -1
- package/dist/structures/index.d.ts.map +0 -1
- package/dist/structures/individual-event-detail-structure.d.ts +0 -9
- package/dist/structures/individual-event-detail-structure.d.ts.map +0 -1
- package/dist/structures/individual-event-detail-structure.js +0 -1
- package/dist/structures/individual-event-structure.d.ts +0 -83
- package/dist/structures/individual-event-structure.d.ts.map +0 -1
- package/dist/structures/individual-event-structure.js +0 -1
- package/dist/structures/individual.d.ts +0 -40
- package/dist/structures/individual.d.ts.map +0 -1
- package/dist/structures/individual.js +0 -1
- package/dist/structures/lds-ordinance-detail.d.ts +0 -17
- package/dist/structures/lds-ordinance-detail.d.ts.map +0 -1
- package/dist/structures/lds-ordinance-detail.js +0 -1
- package/dist/structures/lds-spouse-sealing.d.ts +0 -7
- package/dist/structures/lds-spouse-sealing.d.ts.map +0 -1
- package/dist/structures/lds-spouse-sealing.js +0 -1
- package/dist/structures/marriage-date.d.ts +0 -11
- package/dist/structures/marriage-date.d.ts.map +0 -1
- package/dist/structures/marriage-date.js +0 -1
- package/dist/structures/multimedia-link.d.ts +0 -16
- package/dist/structures/multimedia-link.d.ts.map +0 -1
- package/dist/structures/multimedia-link.js +0 -1
- package/dist/structures/non-event.d.ts +0 -12
- package/dist/structures/non-event.d.ts.map +0 -1
- package/dist/structures/non-event.js +0 -1
- package/dist/structures/note.d.ts +0 -16
- package/dist/structures/note.d.ts.map +0 -1
- package/dist/structures/note.js +0 -1
- package/dist/structures/personal-name-pieces.d.ts +0 -11
- package/dist/structures/personal-name-pieces.d.ts.map +0 -1
- package/dist/structures/personal-name-pieces.js +0 -1
- package/dist/structures/personal-name.d.ts +0 -16
- package/dist/structures/personal-name.d.ts.map +0 -1
- package/dist/structures/personal-name.js +0 -1
- package/dist/structures/place.d.ts +0 -20
- package/dist/structures/place.d.ts.map +0 -1
- package/dist/structures/place.js +0 -1
- package/dist/structures/repository.d.ts +0 -6
- package/dist/structures/repository.d.ts.map +0 -1
- package/dist/structures/repository.js +0 -1
- package/dist/structures/source-citation.d.ts +0 -27
- package/dist/structures/source-citation.d.ts.map +0 -1
- package/dist/structures/source-citation.js +0 -1
- package/dist/structures/source-repository-citation.d.ts +0 -13
- package/dist/structures/source-repository-citation.d.ts.map +0 -1
- package/dist/structures/source-repository-citation.js +0 -1
- package/dist/structures/source.d.ts +0 -28
- package/dist/structures/source.d.ts.map +0 -1
- package/dist/structures/source.js +0 -1
- package/dist/types/ancestry-media.d.ts +0 -65
- package/dist/types/ancestry-media.d.ts.map +0 -1
- package/dist/types/ancestry-media.js +0 -1
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/settings.d.ts +0 -12
- package/dist/types/settings.d.ts.map +0 -1
- package/dist/types/settings.js +0 -1
- package/dist/types/types.d.ts +0 -225
- package/dist/types/types.d.ts.map +0 -1
- package/dist/types/types.js +0 -26
- package/dist/utils/cache.d.ts +0 -22
- package/dist/utils/cache.d.ts.map +0 -1
- package/dist/utils/cache.js +0 -57
- package/dist/utils/common-creator.d.ts +0 -13
- package/dist/utils/common-creator.d.ts.map +0 -1
- package/dist/utils/common-creator.js +0 -72
- package/dist/utils/date-formatter.d.ts +0 -35
- package/dist/utils/date-formatter.d.ts.map +0 -1
- package/dist/utils/date-formatter.js +0 -207
- package/dist/utils/get-all-prop.d.ts +0 -4
- package/dist/utils/get-all-prop.d.ts.map +0 -1
- package/dist/utils/get-all-prop.js +0 -5
- package/dist/utils/get-family-with.d.ts +0 -5
- package/dist/utils/get-family-with.d.ts.map +0 -1
- package/dist/utils/get-family-with.js +0 -11
- package/dist/utils/get-places.d.ts +0 -21
- package/dist/utils/get-places.d.ts.map +0 -1
- package/dist/utils/get-places.js +0 -77
- package/dist/utils/get-product-details.d.ts +0 -4
- package/dist/utils/get-product-details.d.ts.map +0 -1
- package/dist/utils/get-product-details.js +0 -6
- package/dist/utils/get-raw-size.d.ts +0 -2
- package/dist/utils/get-raw-size.d.ts.map +0 -1
- package/dist/utils/get-raw-size.js +0 -3
- package/dist/utils/index.d.ts.map +0 -1
- package/dist/utils/logger.d.ts +0 -3
- package/dist/utils/logger.d.ts.map +0 -1
- package/dist/utils/logger.js +0 -11
- package/dist/utils/name-formatter.d.ts +0 -10
- package/dist/utils/name-formatter.d.ts.map +0 -1
- package/dist/utils/name-formatter.js +0 -45
- package/dist/utils/nested-group.d.ts +0 -4
- package/dist/utils/nested-group.d.ts.map +0 -1
- package/dist/utils/nested-group.js +0 -34
- package/dist/utils/ordinalize.d.ts +0 -3
- package/dist/utils/ordinalize.d.ts.map +0 -1
- package/dist/utils/ordinalize.js +0 -104
- package/dist/utils/parser.d.ts +0 -17
- package/dist/utils/parser.d.ts.map +0 -1
- package/dist/utils/parser.js +0 -321
- package/dist/utils/place-parser.d.ts +0 -16
- package/dist/utils/place-parser.d.ts.map +0 -1
- package/dist/utils/place-parser.js +0 -46
- package/dist/utils/place-translator.d.ts +0 -6
- package/dist/utils/place-translator.d.ts.map +0 -1
- package/dist/utils/place-translator.js +0 -8
- package/dist/utils/place-types.d.ts +0 -27
- package/dist/utils/place-types.d.ts.map +0 -1
- package/dist/utils/place-types.js +0 -14
- package/dist/utils/range.d.ts +0 -19
- package/dist/utils/range.d.ts.map +0 -1
- package/dist/utils/range.js +0 -265
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { n as IndiKey, af as Path, aO as Individuals } from './index-BvW-KWJP.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Cache manager interface for pluggable cache implementations.
|
|
5
|
+
* The main project can inject custom implementations (e.g., IndexedDB) via setCacheManagerFactory.
|
|
6
|
+
*/
|
|
7
|
+
interface ICacheManager<T> {
|
|
8
|
+
getItem: () => Promise<T | null>;
|
|
9
|
+
setItem: (value: T) => Promise<void>;
|
|
10
|
+
}
|
|
11
|
+
interface Caches {
|
|
12
|
+
pathCache: Record<`${IndiKey}|${IndiKey}`, Path> | undefined;
|
|
13
|
+
relativesOnLevelCache: Record<IndiKey, Record<number, Individuals>> | undefined;
|
|
14
|
+
relativesOnDegreeCache: Record<IndiKey, Record<number, Individuals>> | undefined;
|
|
15
|
+
}
|
|
16
|
+
type CacheRelatives<O extends keyof Caches = "pathCache"> = <T extends keyof Omit<Caches, O>, K extends keyof NonNullable<Omit<Caches, O>[T]>>(cacheKey: T) => (key: K, subKey: number, ...values: [keyof NonNullable<Omit<Caches, O>[T]>[K]]) => NonNullable<Omit<Caches, O>[T]>[K];
|
|
17
|
+
declare const resetRelativesCache: () => void;
|
|
18
|
+
declare const relativesCache: (cacheKey: keyof Omit<Caches, "pathCache">) => <T extends Individuals | undefined>(key: IndiKey, subKey: number, value?: T) => T;
|
|
19
|
+
declare const pathCache: <T extends Path | undefined>(key: `${IndiKey}|${IndiKey}`, value?: T) => T;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Minimal place parsing stub for gedcom-parser
|
|
23
|
+
* This is a simplified version - consumer apps can implement full place parsing if needed
|
|
24
|
+
*/
|
|
25
|
+
interface PlaceParts {
|
|
26
|
+
leftParts?: string[];
|
|
27
|
+
town?: string;
|
|
28
|
+
county?: string;
|
|
29
|
+
country?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Simple place parser - splits by commas
|
|
33
|
+
* Consumer apps can implement more sophisticated parsing if needed
|
|
34
|
+
*/
|
|
35
|
+
declare const getPlaceParts: (place?: string | (string | undefined)[]) => PlaceParts[];
|
|
36
|
+
|
|
37
|
+
export { type CacheRelatives as C, type ICacheManager as I, type PlaceParts as P, relativesCache as a, getPlaceParts as g, pathCache as p, resetRelativesCache as r };
|
|
@@ -1,27 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
export type
|
|
26
|
-
export type { default as ISource } from "./source";
|
|
27
|
-
//# sourceMappingURL=index.d.ts.map
|
|
1
|
+
import { ao as Common, bw as INoteStructure, bz as ISourceCitationStructure } from '../index-BvW-KWJP.js';
|
|
2
|
+
export { bg as IAddress, bh as IAssociation, bi as IChangeDate, bj as ICreationDate, bk as IDate, bl as IEventDetail, bl as IEventDetailStructure, bm as IFamily, bn as IGedcomStructure, bq as IIndividual, bp as IIndividualEvent, bo as IIndividualEventDetail, bq as IIndividualStructure, br as ILdsOrdinanceDetail, bs as ILdsSpouseSealing, bt as IMarriageDate, bu as IMultimediaLink, bv as INonEvent, bx as IPlace, by as IRepository, bB as ISource, bA as ISourceRepositoryCitation } from '../index-BvW-KWJP.js';
|
|
3
|
+
import 'date-fns';
|
|
4
|
+
|
|
5
|
+
interface IPersonalNamePiecesStructure extends Common {
|
|
6
|
+
NPFX?: Common;
|
|
7
|
+
GIVN?: Common;
|
|
8
|
+
NICK?: Common;
|
|
9
|
+
SPFX?: Common;
|
|
10
|
+
SURN?: Common;
|
|
11
|
+
NSFX?: Common;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
interface IPersonalNameStructure extends Common {
|
|
15
|
+
NAME?: Common & {
|
|
16
|
+
TYPE?: Common & {
|
|
17
|
+
PHRASE?: Common;
|
|
18
|
+
};
|
|
19
|
+
TRAN?: Common & {
|
|
20
|
+
LANG?: Common;
|
|
21
|
+
} & IPersonalNamePiecesStructure;
|
|
22
|
+
} & IPersonalNamePiecesStructure & INoteStructure & ISourceCitationStructure;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export { INoteStructure as INote, type IPersonalNameStructure as IPersonalName, type IPersonalNamePiecesStructure as IPersonalNamePieces, ISourceCitationStructure as ISourceCitation };
|
package/dist/structures/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,8 +1,69 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
export { m as ConvertType, F as FamKey, x as Filter, w as FilterIterator, D as Group, G as GroupDefinition, H as GroupIterator, E as GroupMarker, t as IdType, n as IndiKey, V as LinkedPersons, v as ListTag, M as MultiTag, K as NameOrder, J as NestedGroup, N as NonStandard, O as ObjeKey, A as Order, z as OrderDefinition, B as OrderIterator, X as PartnerType, Q as PlaceOrder, Y as Range, W as RelationType, o as RepoKey, y as RequiredFilter, l as Settings, q as SourKey, r as SubmKey, u as Tag, T as TagKey, U as UnknownKey } from '../index-BvW-KWJP.js';
|
|
2
|
+
import 'date-fns';
|
|
3
|
+
|
|
4
|
+
interface AncestryMedia {
|
|
5
|
+
title: string;
|
|
6
|
+
type: string;
|
|
7
|
+
ext: string;
|
|
8
|
+
width: number;
|
|
9
|
+
height: number;
|
|
10
|
+
category: string;
|
|
11
|
+
subcategory: string;
|
|
12
|
+
date: string;
|
|
13
|
+
description: string;
|
|
14
|
+
location: string;
|
|
15
|
+
id: string;
|
|
16
|
+
collectionId: number;
|
|
17
|
+
url: string;
|
|
18
|
+
isOwner: boolean;
|
|
19
|
+
primaryPhoto: boolean;
|
|
20
|
+
createdDate: string;
|
|
21
|
+
owner: {
|
|
22
|
+
id: string;
|
|
23
|
+
date: string;
|
|
24
|
+
displayName: string;
|
|
25
|
+
photoURL: string;
|
|
26
|
+
photoId: string;
|
|
27
|
+
photoUrl: string;
|
|
28
|
+
};
|
|
29
|
+
orientation: "landscape" | "portrait";
|
|
30
|
+
rights: {
|
|
31
|
+
canLinkToTree: boolean;
|
|
32
|
+
canEdit: boolean;
|
|
33
|
+
canLinkToPerson: boolean;
|
|
34
|
+
canLinkToFact: boolean;
|
|
35
|
+
canShare: boolean;
|
|
36
|
+
};
|
|
37
|
+
originWebAddress: string;
|
|
38
|
+
originSite: string;
|
|
39
|
+
ms_params: string;
|
|
40
|
+
ms_lookup_id: string;
|
|
41
|
+
originalMid: string;
|
|
42
|
+
tags: [
|
|
43
|
+
{
|
|
44
|
+
id: string;
|
|
45
|
+
t: string;
|
|
46
|
+
rect: {
|
|
47
|
+
x: number;
|
|
48
|
+
y: number;
|
|
49
|
+
w: number;
|
|
50
|
+
h: number;
|
|
51
|
+
};
|
|
52
|
+
tgid: {
|
|
53
|
+
v: string;
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
];
|
|
57
|
+
metadataxml: string;
|
|
58
|
+
previewUrl: string;
|
|
59
|
+
meta: {
|
|
60
|
+
comments: number;
|
|
61
|
+
likes: number;
|
|
62
|
+
private: boolean;
|
|
63
|
+
liked: boolean;
|
|
64
|
+
pinned: boolean;
|
|
65
|
+
};
|
|
66
|
+
faces: [];
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export type { AncestryMedia };
|
package/dist/types/index.js
CHANGED
|
@@ -1,6 +1,29 @@
|
|
|
1
|
-
//
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
// src/types/types.ts
|
|
2
|
+
var RelationType = /* @__PURE__ */ ((RelationType2) => {
|
|
3
|
+
RelationType2["BIOLOGICAL"] = "biological";
|
|
4
|
+
RelationType2["ADOPTED"] = "adopted";
|
|
5
|
+
RelationType2["FOSTER"] = "foster";
|
|
6
|
+
RelationType2["SEALING"] = "sealing";
|
|
7
|
+
RelationType2["BIRTH"] = "birth";
|
|
8
|
+
RelationType2["STEP"] = "step";
|
|
9
|
+
return RelationType2;
|
|
10
|
+
})(RelationType || {});
|
|
11
|
+
var PartnerType = /* @__PURE__ */ ((PartnerType2) => {
|
|
12
|
+
PartnerType2["SPOUSE"] = "spouse";
|
|
13
|
+
PartnerType2["PARTNER"] = "partner";
|
|
14
|
+
PartnerType2["FRIEND"] = "friend";
|
|
15
|
+
PartnerType2["SINGLE"] = "single";
|
|
16
|
+
PartnerType2["OTHER"] = "other";
|
|
17
|
+
PartnerType2["UNKOWN"] = "unknown";
|
|
18
|
+
return PartnerType2;
|
|
19
|
+
})(PartnerType || {});
|
|
20
|
+
var Range = /* @__PURE__ */ ((Range2) => {
|
|
21
|
+
Range2[Range2["Year"] = 1] = "Year";
|
|
22
|
+
Range2[Range2["FiveYear"] = 5] = "FiveYear";
|
|
23
|
+
Range2[Range2["Decade"] = 10] = "Decade";
|
|
24
|
+
Range2[Range2["FiftyYear"] = 50] = "FiftyYear";
|
|
25
|
+
Range2[Range2["Century"] = 100] = "Century";
|
|
26
|
+
return Range2;
|
|
27
|
+
})(Range || {});
|
|
28
|
+
|
|
29
|
+
export { PartnerType, Range, RelationType };
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,18 +1,91 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
export { C as CacheRelatives, I as ICacheManager, P as PlaceParts, g as getPlaceParts, p as pathCache, a as relativesCache, r as resetRelativesCache } from '../place-parser-RlXCXZ8F.js';
|
|
2
|
+
import { l as Settings, ak as GedComType, M as MultiTag, ao as Common, t as IdType, bk as IDateStructure, aj as FamType, az as CommonDate, a1 as IndiType, n as IndiKey, J as NestedGroup, aO as Individuals } from '../index-BvW-KWJP.js';
|
|
3
|
+
export { bC as Place, bD as PlaceType, P as PrimitiveRange, R as Range, S as SplitResult, h as extractSeparationYears, e as extractSplitPoints, d as findMatchingRangeForSplitRange, f as fromTuple, g as generateSplitRanges, bE as getPlaces, i as inRange, a as isIntersectedRange, b as isRangeContained, p as parseRangeBounds, c as splitOverlappingRanges, s as splitRange } from '../index-BvW-KWJP.js';
|
|
4
|
+
import 'date-fns';
|
|
5
|
+
|
|
6
|
+
declare const GedcomTree: {
|
|
7
|
+
parse: (content: string, options?: {
|
|
8
|
+
settings?: Settings;
|
|
9
|
+
}) => any;
|
|
10
|
+
parseHierarchy: (content: string, options?: {
|
|
11
|
+
settings?: Settings;
|
|
12
|
+
}) => {
|
|
13
|
+
gedcom: GedComType;
|
|
14
|
+
raw: string;
|
|
15
|
+
};
|
|
16
|
+
addToList: (id: string, type: MultiTag, common: Common, prev: Common) => void;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
declare const create: (gedcom: GedComType, type: MultiTag, id?: string, nodes?: {
|
|
20
|
+
mainNode?: Common;
|
|
21
|
+
curNode?: Common;
|
|
22
|
+
prevNode?: Common;
|
|
23
|
+
}) => {
|
|
24
|
+
prevNode: Common<string, IdType>;
|
|
25
|
+
curNode: Common<string, IdType>;
|
|
26
|
+
mainNode: Common<string, IdType>;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
declare const ACCEPTED_DATE_FORMATS: string[];
|
|
30
|
+
declare const ACCEPTED_DATE_FORMATS_REGEX: RegExp;
|
|
31
|
+
declare const commonDateFormatter: (date?: IDateStructure["DATE"], format?: string, prefix?: string) => string;
|
|
32
|
+
declare const noteDateFormatter: (date?: IDateStructure["DATE"], format?: string, prefix?: string, shortNote?: boolean, showNote?: boolean) => string;
|
|
33
|
+
declare const marriageDateFormatter: (fam?: FamType, showDays?: boolean, showPlaces?: boolean, shortNote?: boolean, showNote?: boolean, showDisplayTextIfNoDate?: boolean, showAllEvents?: boolean, dateFormatPattern?: string) => {
|
|
34
|
+
marriages?: string[];
|
|
35
|
+
marriagePlaces?: string[];
|
|
36
|
+
rawArray: CommonDate[];
|
|
37
|
+
inArray: string[];
|
|
38
|
+
inOrder: string;
|
|
39
|
+
places: string[];
|
|
40
|
+
marriage: string[];
|
|
41
|
+
};
|
|
42
|
+
declare const dateFormatter: (indi?: IndiType, showMarriages?: boolean, showDays?: boolean, showPlaces?: boolean, shortNote?: boolean, showNote?: boolean, isOnStage?: (key: IndiKey) => boolean, showAllEvents?: boolean, dateFormatPattern?: string) => {
|
|
43
|
+
births?: string[];
|
|
44
|
+
birthPlaces?: string[];
|
|
45
|
+
deaths?: string[];
|
|
46
|
+
deathPlaces?: string[];
|
|
47
|
+
marriages?: string[];
|
|
48
|
+
marriagePlaces?: string[];
|
|
49
|
+
birthPlace?: string;
|
|
50
|
+
deathPlace?: string;
|
|
51
|
+
inArray: string[];
|
|
52
|
+
inOrder: string;
|
|
53
|
+
places: string[];
|
|
54
|
+
birth: string;
|
|
55
|
+
marriage: string[];
|
|
56
|
+
death: string;
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
declare const getAllProp: <T>(indi?: IndiType, prop?: MultiTag) => T[];
|
|
60
|
+
|
|
61
|
+
declare const getFamilyWith: (person1: IndiType, person2?: IndiKey, famType?: "FAMS" | "FAMC") => FamType | undefined;
|
|
62
|
+
|
|
63
|
+
declare const isDevelopment: () => boolean;
|
|
64
|
+
declare const getVersion: () => string;
|
|
65
|
+
declare const getName: () => string;
|
|
66
|
+
|
|
67
|
+
declare const getRawSize: (raw?: string) => number;
|
|
68
|
+
|
|
69
|
+
declare const implemented: (type: string, ...args: any[]) => void;
|
|
70
|
+
declare const notImplemented: (type: string, ...args: any[]) => void;
|
|
71
|
+
|
|
72
|
+
declare const nameFormatter: (indiName?: IndiType | string, settings?: Partial<Settings>, letterOnAll?: boolean, indi?: IndiType, debug?: 3) => {
|
|
73
|
+
suffix: string;
|
|
74
|
+
givenname: string;
|
|
75
|
+
surname: string;
|
|
76
|
+
inOrder: [string, string, string];
|
|
77
|
+
letter: string;
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
declare const setNestedGroup: (obj: NestedGroup, key: string | string[], value: Individuals, uniqueCounting?: boolean) => void;
|
|
81
|
+
|
|
82
|
+
declare const ordinalize: (n: number) => string;
|
|
83
|
+
declare const hungarianOrdinalize: (n: number) => string;
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Place translator stub for gedcom-parser
|
|
87
|
+
* This is a minimal no-op implementation - consumer apps can implement translation if needed
|
|
88
|
+
*/
|
|
89
|
+
declare const placeTranslator: (place: string | string[]) => string;
|
|
90
|
+
|
|
91
|
+
export { ACCEPTED_DATE_FORMATS, ACCEPTED_DATE_FORMATS_REGEX, GedcomTree, commonDateFormatter, create, dateFormatter, getAllProp, getFamilyWith, getName, getRawSize, getVersion, hungarianOrdinalize, implemented, isDevelopment, marriageDateFormatter, nameFormatter, notImplemented, noteDateFormatter, ordinalize, placeTranslator, setNestedGroup };
|