@tricoteuses/tisseuse 0.14.16 → 0.14.17

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.
@@ -19,7 +19,7 @@ export { addLinksToHtml, addLinksOrReferencesToHtmlPage, type OutputByType, type
19
19
  */
20
20
  export declare const addLinksToText: typeof addLinksToMarkdown;
21
21
  export { addLinksToMarkdown };
22
- export { linkTypes, urlFromArticleVersionsId, urlFromLegalId, type LinkType, } from './links.js';
22
+ export { linkTypes, citedArticleNumFromTextCitation, urlFromArticleVersionsId, urlFromLegalId, type LinkType, } from './links.js';
23
23
  export { getOrLoadDocument, getOrLoadDocumentsByDossierParlementaireUid, getOrLoadDossierParlementaire, } from './loaders/assemblee.js';
24
24
  export { extendLoadedArticle, getOrLoadArticle, getOrLoadJo, getOrLoadSectionTa, getOrLoadSectionsTa, getOrLoadTextelr, getOrLoadTextekali, getOrLoadTexteslr, getOrLoadTextesVersions, getOrLoadTexteVersion, loadArticles, type ArticleExtension, type JorfArticleExtended, type KaliArticleExtended, type LegiArticleExtended, } from './loaders/legifrance.js';
25
25
  export { action } from './text_parsers/actions.js';
@@ -0,0 +1 @@
1
+ export {};
@@ -6,5 +6,12 @@ export declare const linkTypes: readonly ["Exploratrice", "Forgejo"];
6
6
  * version of the article is active at the reference date. Returns
7
7
  * `undefined` when this link kind has no equivalent for the given type.
8
8
  */
9
+ /**
10
+ * Numéro d'article cité en tête d'une désignation de texte nommé :
11
+ * « article 44 du décret n° 85-199 du 11 février 1985 » → « 44 »,
12
+ * « article 1er de l'arrêté du 25 février 2025 » → « 1 ». Renvoie
13
+ * `undefined` quand la désignation ne commence pas par un article précis.
14
+ */
15
+ export declare function citedArticleNumFromTextCitation(textCitation: string): string | undefined;
9
16
  export declare function urlFromArticleVersionsId(linkType: LinkType, baseUrl: string, articleId: string): string | undefined;
10
17
  export declare function urlFromLegalId(linkType: LinkType, baseUrl: string, id: string): string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tricoteuses/tisseuse",
3
3
  "description": "Find links in/to French legislative documents",
4
- "version": "0.14.16",
4
+ "version": "0.14.17",
5
5
  "keywords": [
6
6
  "Assemblée nationale",
7
7
  "France",