@polintpro/proposit-core 0.8.5 → 0.8.7

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/README.md CHANGED
@@ -4,6 +4,8 @@ Core engine for building, evaluating, and checking the logical validity of propo
4
4
 
5
5
  Also ships a **CLI** (`proposit-core`) for managing arguments, premises, variables, expressions, and analyses stored on disk.
6
6
 
7
+ Full documentation is available at <https://www.polintpro.com/proposit-core/>.
8
+
7
9
  ## Visual Overview
8
10
 
9
11
  ```mermaid
@@ -0,0 +1,30 @@
1
+ import type { TAuthor, TIEEEReference, TReferenceType } from "./references.js";
2
+ export interface TCitationSegment {
3
+ text: string;
4
+ role: "authors" | "title" | "bookTitle" | "publisher" | "location" | "year" | "date" | "edition" | "pages" | "volume" | "issue" | "doi" | "url" | "isbn" | "accessedDate" | "institution" | "degree" | "organization" | "standardNumber" | "reportNumber" | "patentNumber" | "country" | "platform" | "separator" | "prefix" | "suffix" | "misc";
5
+ style?: "italic" | "quoted" | "link" | "plain";
6
+ }
7
+ export interface TCitationFormatResult {
8
+ type: TReferenceType;
9
+ segments: TCitationSegment[];
10
+ }
11
+ /**
12
+ * Format a single structured author into IEEE citation style.
13
+ * Given names are abbreviated to initials with periods: "Jane Marie" → "J. M."
14
+ * Suffix is appended without comma: "W. P. Pratt Jr."
15
+ */
16
+ export declare function formatSingleAuthor(author: TAuthor): string;
17
+ /**
18
+ * Format an array of structured author names into IEEE citation style.
19
+ * 7+ authors → first author + " et al."
20
+ * 2 authors → "A and B"
21
+ * 3–6 authors → "A, B, C, and D"
22
+ */
23
+ export declare function formatNamesInCitation(authors: TAuthor[]): string;
24
+ /**
25
+ * Build a structured citation for any IEEE reference type.
26
+ * Returns an array of typed segments that consumers can render into
27
+ * plain text, HTML, or any other format.
28
+ */
29
+ export declare function formatCitationParts(ref: TIEEEReference): TCitationFormatResult;
30
+ //# sourceMappingURL=formatting.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"formatting.d.ts","sourceRoot":"","sources":["../../../src/extensions/ieee/formatting.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAM9E,MAAM,WAAW,gBAAgB;IAC7B,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EACE,SAAS,GACT,OAAO,GACP,WAAW,GACX,WAAW,GACX,UAAU,GACV,MAAM,GACN,MAAM,GACN,SAAS,GACT,OAAO,GACP,QAAQ,GACR,OAAO,GACP,KAAK,GACL,KAAK,GACL,MAAM,GACN,cAAc,GACd,aAAa,GACb,QAAQ,GACR,cAAc,GACd,gBAAgB,GAChB,cAAc,GACd,cAAc,GACd,SAAS,GACT,UAAU,GACV,WAAW,GACX,QAAQ,GACR,QAAQ,GACR,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAA;CACjD;AAED,MAAM,WAAW,qBAAqB;IAClC,IAAI,EAAE,cAAc,CAAA;IACpB,QAAQ,EAAE,gBAAgB,EAAE,CAAA;CAC/B;AAMD;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,CAO1D;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,MAAM,CAShE;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAC/B,GAAG,EAAE,cAAc,GACpB,qBAAqB,CAMvB"}