From 1f702677e3725c7fa1345df9b130e4d300b44f05 Mon Sep 17 00:00:00 2001 From: Johan Girod Date: Wed, 30 Mar 2022 15:19:06 +0200 Subject: [PATCH] =?UTF-8?q?R=C3=A9pare=20la=20signature=20typescript=20du?= =?UTF-8?q?=20package=20exoneration-covid?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- exoneration-covid/index.d.ts | 6 +++--- exoneration-covid/package.json | 4 ++-- modele-social/package.json | 2 +- .../pages/Simulateurs/ExonerationCovid/ExonérationCovid.tsx | 2 +- .../Simulateurs/ExonerationCovid/FormulaireS1S1Bis.tsx | 2 +- .../pages/Simulateurs/ExonerationCovid/FormulaireS2.tsx | 2 +- site/source/pages/Simulateurs/ExonerationCovid/Table.tsx | 2 +- 7 files changed, 10 insertions(+), 10 deletions(-) diff --git a/exoneration-covid/index.d.ts b/exoneration-covid/index.d.ts index c284e03f0..5520252a5 100644 --- a/exoneration-covid/index.d.ts +++ b/exoneration-covid/index.d.ts @@ -2,9 +2,9 @@ // sub-section of them. We might support "code-splitting" the rules in the // future. import { Rule } from 'publicodes' -import { Names as ExoCovidDottedNames } from './dist/names' +import { Names } from './dist/names' -declare let rules: Record +export type DottedName = Names +declare let rules: Record -export type { ExoCovidDottedNames } export default rules diff --git a/exoneration-covid/package.json b/exoneration-covid/package.json index 1d2d6c2b3..aec13a250 100644 --- a/exoneration-covid/package.json +++ b/exoneration-covid/package.json @@ -1,6 +1,6 @@ { "name": "exoneration-covid", - "version": "0.4.0", + "version": "0.4.1", "description": "Les règles publicodes pour le calcul de l'exonération de cotisations covid (année 2021)", "main": "./dist/index.js", "types": "./index.d.ts", @@ -12,7 +12,7 @@ "bugs": "https://github.com/betagouv/mon-entreprise/issues?q=is%3Aopen+is%3Aissue+label%3A%22%F0%9F%93%95+l%C3%A9gislation%22", "license": "MIT", "files": [ - "dist/index.js" + "dist" ], "type": "module", "devDependencies": { diff --git a/modele-social/package.json b/modele-social/package.json index 3381c7b95..41e5cabee 100644 --- a/modele-social/package.json +++ b/modele-social/package.json @@ -13,7 +13,7 @@ "homepage": "https://mon-entreprise.urssaf.fr/int%C3%A9gration/biblioth%C3%A8que-de-calcul", "license": "MIT", "files": [ - "dist/index.js" + "dist" ], "type": "module", "devDependencies": { diff --git a/site/source/pages/Simulateurs/ExonerationCovid/ExonérationCovid.tsx b/site/source/pages/Simulateurs/ExonerationCovid/ExonérationCovid.tsx index 596fff9a9..2ad31d254 100644 --- a/site/source/pages/Simulateurs/ExonerationCovid/ExonérationCovid.tsx +++ b/site/source/pages/Simulateurs/ExonerationCovid/ExonérationCovid.tsx @@ -7,7 +7,7 @@ import { Button } from '@/design-system/buttons' import { Spacing } from '@/design-system/layout' import { H3 } from '@/design-system/typography/heading' import { Grid } from '@mui/material' -import { ExoCovidDottedNames } from 'exoneration-covid' +import { DottedName as ExoCovidDottedNames } from 'exoneration-covid' import { PublicodesExpression } from 'publicodes' import { useCallback, useEffect } from 'react' import { Trans } from 'react-i18next' diff --git a/site/source/pages/Simulateurs/ExonerationCovid/FormulaireS1S1Bis.tsx b/site/source/pages/Simulateurs/ExonerationCovid/FormulaireS1S1Bis.tsx index 89d1ad142..739499877 100644 --- a/site/source/pages/Simulateurs/ExonerationCovid/FormulaireS1S1Bis.tsx +++ b/site/source/pages/Simulateurs/ExonerationCovid/FormulaireS1S1Bis.tsx @@ -6,7 +6,7 @@ import { H3 } from '@/design-system/typography/heading' import { Li, Ul } from '@/design-system/typography/list' import { Body } from '@/design-system/typography/paragraphs' import { Grid } from '@mui/material' -import { ExoCovidDottedNames } from 'exoneration-covid' +import { DottedName as ExoCovidDottedNames } from 'exoneration-covid' import Engine, { EvaluatedNode, PublicodesExpression } from 'publicodes' import { Key, useRef } from 'react' import { Trans } from 'react-i18next' diff --git a/site/source/pages/Simulateurs/ExonerationCovid/FormulaireS2.tsx b/site/source/pages/Simulateurs/ExonerationCovid/FormulaireS2.tsx index 84f755bdf..d0f193ec8 100644 --- a/site/source/pages/Simulateurs/ExonerationCovid/FormulaireS2.tsx +++ b/site/source/pages/Simulateurs/ExonerationCovid/FormulaireS2.tsx @@ -5,7 +5,7 @@ import { H3 } from '@/design-system/typography/heading' import { Li, Ul } from '@/design-system/typography/list' import { Body } from '@/design-system/typography/paragraphs' import { Grid } from '@mui/material' -import { ExoCovidDottedNames } from 'exoneration-covid' +import { DottedName as ExoCovidDottedNames } from 'exoneration-covid' import { Evaluation, PublicodesExpression } from 'publicodes' import { Trans, useTranslation } from 'react-i18next' import styled from 'styled-components' diff --git a/site/source/pages/Simulateurs/ExonerationCovid/Table.tsx b/site/source/pages/Simulateurs/ExonerationCovid/Table.tsx index 78ed25352..c56440d93 100644 --- a/site/source/pages/Simulateurs/ExonerationCovid/Table.tsx +++ b/site/source/pages/Simulateurs/ExonerationCovid/Table.tsx @@ -1,7 +1,7 @@ import { Item, Select } from '@/design-system/field/Select' import { baseParagraphStyle } from '@/design-system/typography/paragraphs' import { getMeta } from '@/utils' -import { ExoCovidDottedNames } from 'exoneration-covid' +import { DottedName as ExoCovidDottedNames } from 'exoneration-covid' import { EvaluatedNode, formatValue } from 'publicodes' import { Key } from 'react' import { Trans, useTranslation } from 'react-i18next'