eyecite-ts 0.19.0 → 0.20.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.
@@ -1,4 +1,4 @@
1
- import { S as ShortFormCitation, t as Citation } from "./citation-ChBABKNb.cjs";
1
+ import { S as ShortFormCitation, t as Citation } from "./citation-BxhgKVy4.mjs";
2
2
 
3
3
  //#region src/footnotes/types.d.ts
4
4
  /**
@@ -79,6 +79,21 @@ interface ResolutionResult {
79
79
  */
80
80
  resolvedTo?: number;
81
81
  /**
82
+ * Index of the immediately preceding cited authority in document order,
83
+ * regardless of whether *that* citation itself resolved to a full cite.
84
+ * Bluebook Rule 4.1 / Indigo Book R6.2.2: `Id.` anchors here.
85
+ *
86
+ * - When the predecessor is a full citation or successfully-resolved
87
+ * short-form, this points one step back (may equal `resolvedTo`).
88
+ * - When the predecessor is an unresolved short-form (e.g. because the
89
+ * case name appears only in prose), this still points at it; the
90
+ * `resolvedTo` field stays undefined.
91
+ * - Records the immediate predecessor only; follow transitively via
92
+ * `resolutions[antecedentIndex].antecedentIndex` for the originator.
93
+ * Same idiom as `ShortFormCaseCitation.pinciteInheritedFrom`.
94
+ */
95
+ antecedentIndex?: number;
96
+ /**
82
97
  * Reason for resolution failure (if any)
83
98
  */
84
99
  failureReason?: string;
@@ -106,4 +121,4 @@ type ResolvedCitation<C extends Citation = Citation> = C extends ShortFormCitati
106
121
  };
107
122
  //#endregion
108
123
  export { FootnoteMap as a, ScopeStrategy as i, ResolutionResult as n, FootnoteZone as o, ResolvedCitation as r, ResolutionOptions as t };
109
- //# sourceMappingURL=types-COJWzCfa.d.cts.map
124
+ //# sourceMappingURL=types-35a1MLhS.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types-35a1MLhS.d.mts","names":[],"sources":["../src/footnotes/types.ts","../src/resolve/types.ts"],"mappings":";;;;;;AAIA;UAAiB,YAAA;;EAEf,KAAA;;EAEA,GAAA;;EAEA,cAAA;AAAA;AAMF;;;AAAA,KAAY,WAAA,GAAc,YAAA;;;;;;;KCFd,aAAA;;;;UAKK,iBAAA;;;;AALjB;;;;EAaE,aAAA,GAAgB,aAAA;EARlB;;;;EAcE,oBAAA;;;;;EAMA,wBAAA,GAA2B,MAAA;;;;;EAM3B,kBAAA;;;;;;EAOA,mBAAA;EAmBe;;;;EAbf,gBAAA;;;;;;EAOA,WAAA,GAAc,WAAA;AAAA;;;;UAMC,gBAAA;;;;;EAKf,UAAA;EA4CE;;;;;;;;;;;;;;EA5BF,eAAA;;;;EAKA,aAAA;;;;EAKA,QAAA;;;;;EAMA,UAAA;AAAA;;;;;;;;KAUU,gBAAA,WAA2B,QAAA,GAAW,QAAA,IAAY,CAAA,SAAU,iBAAA,GACpE,CAAA;EAAM,UAAA,EAAY,gBAAA;AAAA,IAClB,CAAA;EAAM,UAAA;AAAA"}
@@ -1,4 +1,4 @@
1
- import { S as ShortFormCitation, t as Citation } from "./citation-gpnnRN23.mjs";
1
+ import { S as ShortFormCitation, t as Citation } from "./citation-Ba2mRoW-.cjs";
2
2
 
3
3
  //#region src/footnotes/types.d.ts
4
4
  /**
@@ -79,6 +79,21 @@ interface ResolutionResult {
79
79
  */
80
80
  resolvedTo?: number;
81
81
  /**
82
+ * Index of the immediately preceding cited authority in document order,
83
+ * regardless of whether *that* citation itself resolved to a full cite.
84
+ * Bluebook Rule 4.1 / Indigo Book R6.2.2: `Id.` anchors here.
85
+ *
86
+ * - When the predecessor is a full citation or successfully-resolved
87
+ * short-form, this points one step back (may equal `resolvedTo`).
88
+ * - When the predecessor is an unresolved short-form (e.g. because the
89
+ * case name appears only in prose), this still points at it; the
90
+ * `resolvedTo` field stays undefined.
91
+ * - Records the immediate predecessor only; follow transitively via
92
+ * `resolutions[antecedentIndex].antecedentIndex` for the originator.
93
+ * Same idiom as `ShortFormCaseCitation.pinciteInheritedFrom`.
94
+ */
95
+ antecedentIndex?: number;
96
+ /**
82
97
  * Reason for resolution failure (if any)
83
98
  */
84
99
  failureReason?: string;
@@ -106,4 +121,4 @@ type ResolvedCitation<C extends Citation = Citation> = C extends ShortFormCitati
106
121
  };
107
122
  //#endregion
108
123
  export { FootnoteMap as a, ScopeStrategy as i, ResolutionResult as n, FootnoteZone as o, ResolvedCitation as r, ResolutionOptions as t };
109
- //# sourceMappingURL=types-DJxf7ixo.d.mts.map
124
+ //# sourceMappingURL=types-BmlG4hQA.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types-BmlG4hQA.d.cts","names":[],"sources":["../src/footnotes/types.ts","../src/resolve/types.ts"],"mappings":";;;;;;AAIA;UAAiB,YAAA;;EAEf,KAAA;;EAEA,GAAA;;EAEA,cAAA;AAAA;AAMF;;;AAAA,KAAY,WAAA,GAAc,YAAA;;;;;;;KCFd,aAAA;;;;UAKK,iBAAA;;;;AALjB;;;;EAaE,aAAA,GAAgB,aAAA;EARlB;;;;EAcE,oBAAA;;;;;EAMA,wBAAA,GAA2B,MAAA;;;;;EAM3B,kBAAA;;;;;;EAOA,mBAAA;EAmBe;;;;EAbf,gBAAA;;;;;;EAOA,WAAA,GAAc,WAAA;AAAA;;;;UAMC,gBAAA;;;;;EAKf,UAAA;EA4CE;;;;;;;;;;;;;;EA5BF,eAAA;;;;EAKA,aAAA;;;;EAKA,QAAA;;;;;EAMA,UAAA;AAAA;;;;;;;;KAUU,gBAAA,WAA2B,QAAA,GAAW,QAAA,IAAY,CAAA,SAAU,iBAAA,GACpE,CAAA;EAAM,UAAA,EAAY,gBAAA;AAAA,IAClB,CAAA;EAAM,UAAA;AAAA"}
@@ -1,5 +1,5 @@
1
- import { d as FullCaseCitation, t as Citation } from "../citation-ChBABKNb.cjs";
2
- import { r as ResolvedCitation } from "../types-COJWzCfa.cjs";
1
+ import { d as FullCaseCitation, t as Citation } from "../citation-Ba2mRoW-.cjs";
2
+ import { r as ResolvedCitation } from "../types-BmlG4hQA.cjs";
3
3
 
4
4
  //#region src/utils/types.d.ts
5
5
  /**
@@ -1,5 +1,5 @@
1
- import { d as FullCaseCitation, t as Citation } from "../citation-gpnnRN23.mjs";
2
- import { r as ResolvedCitation } from "../types-DJxf7ixo.mjs";
1
+ import { d as FullCaseCitation, t as Citation } from "../citation-BxhgKVy4.mjs";
2
+ import { r as ResolvedCitation } from "../types-35a1MLhS.mjs";
3
3
 
4
4
  //#region src/utils/types.d.ts
5
5
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eyecite-ts",
3
- "version": "0.19.0",
3
+ "version": "0.20.0",
4
4
  "description": "TypeScript port of eyecite - extract, resolve, and annotate legal citations",
5
5
  "type": "module",
6
6
  "exports": {
@@ -1 +0,0 @@
1
- {"version":3,"file":"types-COJWzCfa.d.cts","names":[],"sources":["../src/footnotes/types.ts","../src/resolve/types.ts"],"mappings":";;;;;;AAIA;UAAiB,YAAA;;EAEf,KAAA;;EAEA,GAAA;;EAEA,cAAA;AAAA;AAMF;;;AAAA,KAAY,WAAA,GAAc,YAAA;;;;;;;KCFd,aAAA;;;;UAKK,iBAAA;;;;AALjB;;;;EAaE,aAAA,GAAgB,aAAA;EARlB;;;;EAcE,oBAAA;;;;;EAMA,wBAAA,GAA2B,MAAA;;;;;EAM3B,kBAAA;;;;;;EAOA,mBAAA;EAmBe;;;;EAbf,gBAAA;;;;;AA4CF;EArCE,WAAA,GAAc,WAAA;AAAA;;;;UAMC,gBAAA;;;;;EAKf,UAAA;;;;EAKA,aAAA;;;;EAKA,QAAA;;;;;EAMA,UAAA;AAAA;;;;;;;;KAUU,gBAAA,WAA2B,QAAA,GAAW,QAAA,IAAY,CAAA,SAAU,iBAAA,GACpE,CAAA;EAAM,UAAA,EAAY,gBAAA;AAAA,IAClB,CAAA;EAAM,UAAA;AAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"types-DJxf7ixo.d.mts","names":[],"sources":["../src/footnotes/types.ts","../src/resolve/types.ts"],"mappings":";;;;;;AAIA;UAAiB,YAAA;;EAEf,KAAA;;EAEA,GAAA;;EAEA,cAAA;AAAA;AAMF;;;AAAA,KAAY,WAAA,GAAc,YAAA;;;;;;;KCFd,aAAA;;;;UAKK,iBAAA;;;;AALjB;;;;EAaE,aAAA,GAAgB,aAAA;EARlB;;;;EAcE,oBAAA;;;;;EAMA,wBAAA,GAA2B,MAAA;;;;;EAM3B,kBAAA;;;;;;EAOA,mBAAA;EAmBe;;;;EAbf,gBAAA;;;;;AA4CF;EArCE,WAAA,GAAc,WAAA;AAAA;;;;UAMC,gBAAA;;;;;EAKf,UAAA;;;;EAKA,aAAA;;;;EAKA,QAAA;;;;;EAMA,UAAA;AAAA;;;;;;;;KAUU,gBAAA,WAA2B,QAAA,GAAW,QAAA,IAAY,CAAA,SAAU,iBAAA,GACpE,CAAA;EAAM,UAAA,EAAY,gBAAA;AAAA,IAClB,CAAA;EAAM,UAAA;AAAA"}