@tricoteuses/tisseuse 0.15.2 → 0.16.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/dist/{html-o62gBKkC.js → html-BDmDxEJF.js} +1130 -1122
- package/dist/index.js +1 -1
- package/dist/server.js +774 -742
- package/dist/src/lib/extractors/qualified_versions.d.ts +3 -0
- package/dist/src/lib/extractors/qualified_versions.test.d.ts +1 -0
- package/dist/src/lib/server/index.d.ts +1 -1
- package/dist/src/lib/server/parsed_bills.d.ts +8 -0
- package/dist/src/lib/text_parsers/qualified_versions.d.ts +6 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -6,7 +6,7 @@ export { hashSenatSearchItem, parseSenatDocumentSearchContent, type SenatSearchI
|
|
|
6
6
|
export { isAkomaNtosoXml, resolveSenatAkomaNtosoSource, type SenatAkomaNtosoSource, } from './senat_document_sources.js';
|
|
7
7
|
export { simplifyWordHtml, simplifyWordHtmlToDocument, type SimplifyHtmlOptions, } from './html_simplifier.js';
|
|
8
8
|
export { addLinksOrReferencesToHtmlFile } from './linkers/html.js';
|
|
9
|
-
export { linkAkomaNtosoBillRaw, linkAssembleeBillRaw, parseAkomaNtosoBillRaw, parseAssembleeBillRaw, renderAkomaNtosoBillRaw, type LinkedBillDocument, type ParsedBillAnnotation, type ParsedBillAnnotationRange, type ParsedBillAnnotationSeverity, type ParsedBillArticle, type ParsedBillBlock, type ParsedBillBlockKind, type ParsedBillDiagnostic, type ParsedBillDirective, type ParsedBillDocument, type ParsedBillLink, type ParsedBillSourceFormat, type ParsedBillToc, type ParseBillRawOptions, } from './parsed_bills.js';
|
|
9
|
+
export { linkAkomaNtosoBillRaw, linkAssembleeBillRaw, parseAkomaNtosoBillRaw, parseAssembleeBillRaw, renderAkomaNtosoBillRaw, type LinkedBillDocument, type ParsedBillAnnotation, type ParsedBillAnnotationRange, type ParsedBillAnnotationSeverity, type ParsedBillArticle, type ParsedBillBlock, type ParsedBillBlockKind, type ParsedBillDiagnostic, type ParsedBillDirective, type ParsedBillDocument, type ParsedBillLink, type ParsedBillQualifiedVersion, type ParsedBillSourceFormat, type ParsedBillToc, type ParseBillRawOptions, } from './parsed_bills.js';
|
|
10
10
|
export { type LegiArticleInfo, LegiResolver, type LegiSectionInfo, type PreloadActiveArticlesByTextIdsOptions, type PreloadTextTitlesInfosOptions, type PreloadTextTitlesInfosProgress, } from '../legi/resolver.js';
|
|
11
11
|
export { buildAndInstallTextTitlesInfos, buildTextTitlesInfos, type BuildTextTitlesInfosProgress, type TextTitlesInfoRow, type TextTitlesInfos, } from '../legi/text_titles_infos.js';
|
|
12
12
|
export { addPositionsToTableOfContentsFile, simplifiedHtmlBillFileToTableOfContentsFile, } from './tables_of_contents.js';
|
|
@@ -33,9 +33,16 @@ export type ParsedBillBlock = {
|
|
|
33
33
|
articleId: string;
|
|
34
34
|
kind: ParsedBillBlockKind;
|
|
35
35
|
links: ParsedBillLink[];
|
|
36
|
+
qualifiedVersion?: ParsedBillQualifiedVersion;
|
|
36
37
|
text: string;
|
|
37
38
|
html: string;
|
|
38
39
|
};
|
|
40
|
+
/** A version qualified by an enacted law article, distinct from the article being amended. */
|
|
41
|
+
export type ParsedBillQualifiedVersion = {
|
|
42
|
+
targetArticleId?: string;
|
|
43
|
+
modifyingArticleId: string;
|
|
44
|
+
modifyingArticleLabel: string;
|
|
45
|
+
};
|
|
39
46
|
export type ParsedBillLink = {
|
|
40
47
|
id: string;
|
|
41
48
|
insideFrenchQuotes?: boolean;
|
|
@@ -79,6 +86,7 @@ export type ParsedBillDirective = {
|
|
|
79
86
|
};
|
|
80
87
|
internalTargetAmbiguity?: ParsedBillInternalArticleTarget;
|
|
81
88
|
targetIds?: string[];
|
|
89
|
+
qualifiedVersion?: ParsedBillQualifiedVersion;
|
|
82
90
|
};
|
|
83
91
|
export type ParsedBillInternalArticleTarget = {
|
|
84
92
|
definitionId: string;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { TextAstReference } from './ast.js';
|
|
2
|
+
import { TextParser } from './parsers.js';
|
|
3
|
+
/** Reusable grammatical introducer for the enacted source of a version. */
|
|
4
|
+
export declare const qualifiedVersionRedaction: TextParser<import('./ast.js').TextAst>;
|
|
5
|
+
/** Parse a version's provenance using the same legal-reference grammar as actions. */
|
|
6
|
+
export declare const qualifiedVersionReference: TextParser<TextAstReference>;
|