@tricoteuses/tisseuse 0.17.3 → 0.18.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-DMnYXx0o.js → html-B0V8X0v6.js} +3667 -3606
- package/dist/index.js +135 -135
- package/dist/{resolver-CuP8arVX.js → resolver-cn-qJE70.js} +66 -66
- package/dist/server-f-legi.js +1 -1
- package/dist/server.js +530 -530
- package/dist/src/lib/extractors/article_portions.d.ts +11 -0
- package/dist/src/lib/index.d.ts +1 -1
- package/dist/src/lib/text_parsers/portions.d.ts +1 -0
- package/dist/src/lib/text_parsers/prepositions.d.ts +1 -0
- package/package.json +1 -1
|
@@ -32,6 +32,11 @@ export interface ArticlePortionItem {
|
|
|
32
32
|
index?: number;
|
|
33
33
|
num?: string;
|
|
34
34
|
label?: string;
|
|
35
|
+
abrogation?: {
|
|
36
|
+
htmlStart: number;
|
|
37
|
+
htmlStop: number;
|
|
38
|
+
text: string;
|
|
39
|
+
};
|
|
35
40
|
children: ArticlePortionNode[];
|
|
36
41
|
}
|
|
37
42
|
export interface ArticlePortionAlinea {
|
|
@@ -85,4 +90,10 @@ export declare function getTableUnitNoteRanges(html: string): Array<{
|
|
|
85
90
|
}>;
|
|
86
91
|
export declare function buildArticlePortionTreeFromHtml(html: string): ArticlePortionArticle;
|
|
87
92
|
export declare function extractPortionSelectors(reference: TextAstReference): PortionSelector[];
|
|
93
|
+
export type LegalPhraseTextBounds = {
|
|
94
|
+
start: number;
|
|
95
|
+
stop: number;
|
|
96
|
+
text: string;
|
|
97
|
+
};
|
|
98
|
+
export declare function getLegalPhraseTextBounds(text: string): LegalPhraseTextBounds[];
|
|
88
99
|
export declare function resolvePortionSelector(article: ArticlePortionArticle, selector: PortionSelector): ArticlePortionMatch | null;
|
package/dist/src/lib/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export { extractBillDefinitions } from './extractors/definitions.js';
|
|
|
7
7
|
export { extractActionDirectivesFromHtml, extractActionDirectiveAstsFromText, extractActionDirectivesFromText, resolveActionDirectivesFromHtml, resolveActionDirectivesFromText, type ActionCitation, type ActionDirective, type ActionOperation, type ActionReplacement, type ActionTableTarget, type ResolvedActionDirective, } from './extractors/action_directives.js';
|
|
8
8
|
export { extractTextLinks, iterReferenceLinks, type ArticleDefinition, type ArticleExternalLink, type ArticleInternalLink, type ArticleLink, type DefinitionOrLink, type DivisionExternalLink, type DivisionLink, type ExtractedLinkDb, type TextEuropeanLink, type TextExternalLink, type TextLink, type TextLinksParserState, } from './extractors/links.js';
|
|
9
9
|
export { extractCitationReferences, extractReferences, extractReferencesWithOriginalTransformations, getExtractedReferences, getExtractedReferencesWithOriginalTransformations, } from './extractors/references.js';
|
|
10
|
-
export { buildArticlePortionTreeFromHtml, extractPortionSelectors, getTableUnitNoteRanges, isArticlePortionStructuralStart, parseArticleSubdivisionMarker, resolvePortionSelector, type ArticlePortionArticle, type ArticlePortionDivision, type ArticlePortionItem, type ArticlePortionAlinea, type ArticlePortionPhrase, type ArticlePortionMatch, type ArticlePortionNode, type ArticleSubdivisionMarker, type PortionSelector, type PortionSelectorStep, } from './extractors/article_portions.js';
|
|
10
|
+
export { buildArticlePortionTreeFromHtml, extractPortionSelectors, getLegalPhraseTextBounds, getTableUnitNoteRanges, isArticlePortionStructuralStart, parseArticleSubdivisionMarker, resolvePortionSelector, type ArticlePortionArticle, type ArticlePortionDivision, type ArticlePortionItem, type ArticlePortionAlinea, type ArticlePortionPhrase, type ArticlePortionMatch, type ArticlePortionNode, type ArticleSubdivisionMarker, type PortionSelector, type PortionSelectorStep, } from './extractors/article_portions.js';
|
|
11
11
|
export { addPositionsToTableOfContentsItems, getExtractedTableOfContentsFromTextBill, getTableOfContentsItems, walkTableOfContents, type TableOfContents, type TableOfContentsArticle, type TableOfContentsArticlePositioned, type TableOfContentsDivision, type TableOfContentsDivisionPositioned, type TableOfContentsItem, type TableOfContentsItemPositioned, type TableOfContentsPositioned, } from './extractors/table_of_contents.js';
|
|
12
12
|
export { jsonReplacer } from './json.js';
|
|
13
13
|
export { LegiResolver, type LegiArticleInfo, type LegiSectionInfo, type PreloadActiveArticlesByTextIdsOptions, type PreloadTextTitlesInfosOptions, type PreloadTextTitlesInfosProgress, } from './legi/resolver.js';
|
|
@@ -21,6 +21,7 @@ export declare const unePortion: TextParser<import('./ast.js').TextAst>;
|
|
|
21
21
|
* ou "phrases 1, 2 et 3".
|
|
22
22
|
*/
|
|
23
23
|
export declare const quelquesPortionsNumerotees: TextParser<import('./ast.js').TextAst>;
|
|
24
|
+
export declare const quelquesPortionsOrdinales: TextParser<import('./ast.js').TextAst>;
|
|
24
25
|
export declare const numeroPortionOuUnePortion: TextParser<import('./ast.js').TextAst>;
|
|
25
26
|
export declare const plusieursPortions: TextParser<import('./ast.js').TextAst>;
|
|
26
27
|
/**
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export declare const introPluriel: import('./parsers.js').TextParser<import('./ast.js').TextAst>;
|
|
2
2
|
export declare const introSingulier: import('./parsers.js').TextParser<import('./ast.js').TextAst>;
|
|
3
3
|
export declare const liaisonPluriel: import('./parsers.js').TextParser<import('./ast.js').TextAst>;
|
|
4
|
+
export declare const liaisonSingulierApresEspace: import('./parsers.js').TextParser<import('./ast.js').TextAst>;
|
|
4
5
|
export declare const liaisonSingulier: import('./parsers.js').TextParser<import('./ast.js').TextAst>;
|
|
5
6
|
export declare const ditPluriel: import('./parsers.js').TextParser<import('./ast.js').TextAst>;
|
|
6
7
|
export declare const ditSingulier: import('./parsers.js').TextParser<import('./ast.js').TextAst>;
|