@proconnect-gouv/proconnect.email 1.0.1

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.
Files changed (74) hide show
  1. package/README.md +59 -0
  2. package/dist/Add2fa.d.ts +8 -0
  3. package/dist/Add2fa.d.ts.map +1 -0
  4. package/dist/Add2fa.js +9 -0
  5. package/dist/AddAccessKey.d.ts +8 -0
  6. package/dist/AddAccessKey.d.ts.map +1 -0
  7. package/dist/AddAccessKey.js +13 -0
  8. package/dist/Delete2faProtection.d.ts +7 -0
  9. package/dist/Delete2faProtection.d.ts.map +1 -0
  10. package/dist/Delete2faProtection.js +9 -0
  11. package/dist/DeleteAccessKey.d.ts +8 -0
  12. package/dist/DeleteAccessKey.d.ts.map +1 -0
  13. package/dist/DeleteAccessKey.js +13 -0
  14. package/dist/DeleteAccount.d.ts +8 -0
  15. package/dist/DeleteAccount.d.ts.map +1 -0
  16. package/dist/DeleteAccount.js +13 -0
  17. package/dist/DeleteFreeTotpMail.d.ts +8 -0
  18. package/dist/DeleteFreeTotpMail.d.ts.map +1 -0
  19. package/dist/DeleteFreeTotpMail.js +13 -0
  20. package/dist/MagicLink.d.ts +7 -0
  21. package/dist/MagicLink.d.ts.map +1 -0
  22. package/dist/MagicLink.js +10 -0
  23. package/dist/OfficialContactEmailVerification.d.ts +10 -0
  24. package/dist/OfficialContactEmailVerification.d.ts.map +1 -0
  25. package/dist/OfficialContactEmailVerification.js +9 -0
  26. package/dist/ResetPassword.d.ts +6 -0
  27. package/dist/ResetPassword.d.ts.map +1 -0
  28. package/dist/ResetPassword.js +9 -0
  29. package/dist/UpdatePersonalDataMail.d.ts +25 -0
  30. package/dist/UpdatePersonalDataMail.d.ts.map +1 -0
  31. package/dist/UpdatePersonalDataMail.js +8 -0
  32. package/dist/VerifyEmail.d.ts +6 -0
  33. package/dist/VerifyEmail.d.ts.map +1 -0
  34. package/dist/VerifyEmail.js +9 -0
  35. package/dist/Welcome.d.ts +7 -0
  36. package/dist/Welcome.d.ts.map +1 -0
  37. package/dist/Welcome.js +9 -0
  38. package/dist/_layout.d.ts +9 -0
  39. package/dist/_layout.d.ts.map +1 -0
  40. package/dist/_layout.js +17 -0
  41. package/dist/components/Badge.d.ts +3 -0
  42. package/dist/components/Badge.d.ts.map +1 -0
  43. package/dist/components/Badge.js +16 -0
  44. package/dist/components/Button.d.ts +3 -0
  45. package/dist/components/Button.d.ts.map +1 -0
  46. package/dist/components/Button.js +24 -0
  47. package/dist/components/Em.d.ts +3 -0
  48. package/dist/components/Em.d.ts.map +1 -0
  49. package/dist/components/Em.js +16 -0
  50. package/dist/components/Html.d.ts +3 -0
  51. package/dist/components/Html.d.ts.map +1 -0
  52. package/dist/components/Html.js +6 -0
  53. package/dist/components/Link.d.ts +3 -0
  54. package/dist/components/Link.d.ts.map +1 -0
  55. package/dist/components/Link.js +14 -0
  56. package/dist/components/ProConnectLogo.d.ts +2 -0
  57. package/dist/components/ProConnectLogo.d.ts.map +1 -0
  58. package/dist/components/ProConnectLogo.js +5 -0
  59. package/dist/components/Section.d.ts +3 -0
  60. package/dist/components/Section.d.ts.map +1 -0
  61. package/dist/components/Section.js +6 -0
  62. package/dist/components/Text.d.ts +3 -0
  63. package/dist/components/Text.d.ts.map +1 -0
  64. package/dist/components/Text.js +15 -0
  65. package/dist/components/index.d.ts +9 -0
  66. package/dist/components/index.d.ts.map +1 -0
  67. package/dist/components/index.js +9 -0
  68. package/dist/components/style.d.ts +8 -0
  69. package/dist/components/style.d.ts.map +1 -0
  70. package/dist/components/style.js +8 -0
  71. package/dist/index.d.ts +13 -0
  72. package/dist/index.d.ts.map +1 -0
  73. package/dist/index.js +13 -0
  74. package/package.json +54 -0
package/README.md ADDED
@@ -0,0 +1,59 @@
1
+ # 📧 ProConnect Email Templates
2
+
3
+ > Email templates for the ProConnect identity platform.
4
+
5
+ ## 📦 Installation
6
+
7
+ ```bash
8
+ npm install @proconnect-gouv/proconnect.email
9
+ ```
10
+
11
+ ## 📧 Usage
12
+
13
+ ```typescript
14
+ import { DeleteFreeTotpMail } from "@proconnect-gouv/proconnect.email";
15
+
16
+ const transporter = nodemailer.createTransporter({
17
+ host: "smtp.example.com",
18
+ port: 587,
19
+ secure: false,
20
+ auth: {
21
+ user: "user@example.com",
22
+ pass: "password",
23
+ },
24
+ });
25
+
26
+ // Send email with template
27
+ const info = await transporter.sendMail({
28
+ from: "user@example.com",
29
+ to: "user@example.com",
30
+ subject: "[ProConnect] Delete free TOTP",
31
+ html: DeleteFreeTotpMail({
32
+ baseurl: "https://identite.proconnect.gouv.fr",
33
+ given_name: "Marie",
34
+ family_name: "Dupont",
35
+ support_email: "support@example.com",
36
+ }),
37
+ });
38
+ ```
39
+
40
+ ## 📦 Available Templates
41
+
42
+ | Template | Purpose |
43
+ | ---------------------------------- | ----------------------------- |
44
+ | `Add2fa` | 2FA activation confirmation |
45
+ | `AddAccessKey` | API key creation notification |
46
+ | `Delete2faProtection` | 2FA removal warning |
47
+ | `DeleteAccessKey` | API key deletion notice |
48
+ | `DeleteAccount` | Account deletion confirmation |
49
+ | `DeleteFreeTotpMail` | TOTP removal notification |
50
+ | `MagicLink` | Passwordless login link |
51
+ | `OfficialContactEmailVerification` | Official contact verification |
52
+ | `ResetPassword` | Password reset instructions |
53
+ | `UpdatePersonalDataMail` | Profile update summary |
54
+ | `VerifyEmail` | Email address verification |
55
+ | `Welcome` | New user onboarding |
56
+
57
+ ## 🤝 Contributing
58
+
59
+ See [CONTRIBUTING.md](./CONTRIBUTING.md) for development guidelines.
@@ -0,0 +1,8 @@
1
+ import { type LayoutProps } from "./_layout.js";
2
+ export default function Add2fa(props: Props): JSX.Element;
3
+ export type Props = LayoutProps & {
4
+ email: string;
5
+ family_name: string;
6
+ given_name: string;
7
+ };
8
+ //# sourceMappingURL=Add2fa.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Add2fa.d.ts","sourceRoot":"","sources":["../src/Add2fa.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AAKxD,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,KAAK,EAAE,KAAK,eAgB1C;AAID,MAAM,MAAM,KAAK,GAAG,WAAW,GAAG;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC"}
package/dist/Add2fa.js ADDED
@@ -0,0 +1,9 @@
1
+ import { jsxs as _jsxs, jsx as _jsx } from "@kitajs/html/jsx-runtime";
2
+ //
3
+ import { Layout } from "./_layout.js";
4
+ import { Text } from "./components/index.js";
5
+ //
6
+ export default function Add2fa(props) {
7
+ const { baseurl, email, family_name, given_name } = props;
8
+ return (_jsxs(Layout, { baseurl: baseurl, children: [_jsxs(Text, { safe: true, children: ["Bonjour ", given_name, " ", family_name, ","] }), _jsx("br", {}), _jsxs(Text, { safe: true, children: ["Votre compte ProConnect ", email, " est \u00E0 pr\u00E9sent prot\u00E9g\u00E9 par la double authentification. Lorsque vous vous connectez sur un nouvel appareil ou sur un appareil qui n'est pas fiable, vous devez utiliser votre deuxi\u00E8me facteur pour confirmer votre identit\u00E9."] })] }));
9
+ }
@@ -0,0 +1,8 @@
1
+ import { type LayoutProps } from "./_layout.js";
2
+ export default function AddAccessKey(props: Props): JSX.Element;
3
+ export type Props = LayoutProps & {
4
+ family_name: string;
5
+ given_name: string;
6
+ support_email: string;
7
+ };
8
+ //# sourceMappingURL=AddAccessKey.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AddAccessKey.d.ts","sourceRoot":"","sources":["../src/AddAccessKey.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AAKxD,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,KAAK,EAAE,KAAK,eAwBhD;AAID,MAAM,MAAM,KAAK,GAAG,WAAW,GAAG;IAChC,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { jsxs as _jsxs, jsx as _jsx } from "@kitajs/html/jsx-runtime";
2
+ //
3
+ import { Layout } from "./_layout.js";
4
+ import { Link, Text } from "./components/index.js";
5
+ //
6
+ export default function AddAccessKey(props) {
7
+ const { baseurl, family_name, given_name, support_email } = props;
8
+ const mailtoParams = new URLSearchParams({
9
+ subject: "Erreur - Add Access Key",
10
+ });
11
+ const mailtoHref = `mailto:${support_email}?${mailtoParams.toString()}`;
12
+ return (_jsxs(Layout, { baseurl: baseurl, children: [_jsxs(Text, { safe: true, children: ["Bonjour ", given_name, " ", family_name, ","] }), _jsx("br", {}), _jsxs(Text, { children: ["Une nouvelle cl\u00E9 d'acc\u00E8s a \u00E9t\u00E9 ajout\u00E9e \u00E0 votre compte.", _jsx("br", {}), _jsx("br", {}), _jsx(Link, { href: mailtoHref, children: "Si vous n'avez pas ajout\u00E9 de cl\u00E9 d'acc\u00E8s, quelqu'un utilise peut-\u00EAtre votre compte. Faites-le nous savoir en r\u00E9pondant \u00E0 cet email." })] })] }));
13
+ }
@@ -0,0 +1,7 @@
1
+ import { type LayoutProps } from "./_layout.js";
2
+ export default function Delete2faProtection(props: Props): JSX.Element;
3
+ export type Props = LayoutProps & {
4
+ given_name: string;
5
+ family_name: string;
6
+ };
7
+ //# sourceMappingURL=Delete2faProtection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Delete2faProtection.d.ts","sourceRoot":"","sources":["../src/Delete2faProtection.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AAKxD,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,KAAK,EAAE,KAAK,eAgBvD;AAID,MAAM,MAAM,KAAK,GAAG,WAAW,GAAG;IAChC,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { jsxs as _jsxs, jsx as _jsx } from "@kitajs/html/jsx-runtime";
2
+ //
3
+ import { Layout } from "./_layout.js";
4
+ import { Text } from "./components/index.js";
5
+ //
6
+ export default function Delete2faProtection(props) {
7
+ const { baseurl, given_name, family_name } = props;
8
+ return (_jsxs(Layout, { baseurl: baseurl, children: [_jsxs(Text, { safe: true, children: ["Bonjour ", given_name, " ", family_name, ","] }), _jsx("br", {}), _jsxs(Text, { children: ["Votre compte ProConnect n'est plus prot\u00E9g\u00E9 par la validation en deux \u00E9tapes.", _jsx("br", {}), "Vous n'avez pas besoin de votre deuxi\u00E8me facteur pour vous connecter."] })] }));
9
+ }
@@ -0,0 +1,8 @@
1
+ import { type LayoutProps } from "./_layout.js";
2
+ export default function DeleteAccessKey(props: Props): JSX.Element;
3
+ export type Props = LayoutProps & {
4
+ family_name: string;
5
+ given_name: string;
6
+ support_email: string;
7
+ };
8
+ //# sourceMappingURL=DeleteAccessKey.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DeleteAccessKey.d.ts","sourceRoot":"","sources":["../src/DeleteAccessKey.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AAKxD,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,KAAK,EAAE,KAAK,eAwBnD;AAID,MAAM,MAAM,KAAK,GAAG,WAAW,GAAG;IAChC,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { jsxs as _jsxs, jsx as _jsx } from "@kitajs/html/jsx-runtime";
2
+ //
3
+ import { Layout } from "./_layout.js";
4
+ import { Link, Text } from "./components/index.js";
5
+ //
6
+ export default function DeleteAccessKey(props) {
7
+ const { baseurl, family_name, given_name, support_email } = props;
8
+ const mailtoParams = new URLSearchParams({
9
+ subject: "Erreur - Delete Access Key",
10
+ });
11
+ const mailtoHref = `mailto:${support_email}?${mailtoParams.toString()}`;
12
+ return (_jsxs(Layout, { baseurl: baseurl, children: [_jsxs(Text, { safe: true, children: ["Bonjour ", given_name, " ", family_name, ","] }), _jsx("br", {}), _jsxs(Text, { children: ["Une cl\u00E9 d'acc\u00E8s a \u00E9t\u00E9 supprim\u00E9e de votre compte.", _jsx("br", {}), _jsx("br", {}), _jsx(Link, { href: mailtoHref, children: "Si vous n'avez pas supprim\u00E9 de cl\u00E9 d'acc\u00E8s, quelqu'un utilise peut-\u00EAtre votre compte. Faites-le nous savoir en r\u00E9pondant \u00E0 cet email." })] })] }));
13
+ }
@@ -0,0 +1,8 @@
1
+ import { type LayoutProps } from "./_layout.js";
2
+ export default function DeleteAccount(props: Props): JSX.Element;
3
+ export type Props = LayoutProps & {
4
+ given_name: string;
5
+ family_name: string;
6
+ support_email: string;
7
+ };
8
+ //# sourceMappingURL=DeleteAccount.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DeleteAccount.d.ts","sourceRoot":"","sources":["../src/DeleteAccount.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AAKxD,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,KAAK,EAAE,KAAK,eA4BjD;AAID,MAAM,MAAM,KAAK,GAAG,WAAW,GAAG;IAChC,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { jsxs as _jsxs, jsx as _jsx } from "@kitajs/html/jsx-runtime";
2
+ //
3
+ import { Layout } from "./_layout.js";
4
+ import { Link, Text } from "./components/index.js";
5
+ //
6
+ export default function DeleteAccount(props) {
7
+ const { baseurl, given_name, family_name, support_email } = props;
8
+ const mailtoParams = new URLSearchParams({
9
+ subject: "Erreur - Delete account",
10
+ });
11
+ const mailtoHref = `mailto:${support_email}?${mailtoParams.toString()}`;
12
+ return (_jsxs(Layout, { baseurl: baseurl, children: [_jsxs(Text, { safe: true, children: ["Bonjour ", given_name, " ", family_name, ","] }), _jsx("br", {}), _jsxs(Text, { children: ["Nous vous confirmons que votre demande de suppression de compte a bien \u00E9t\u00E9 prise en compte. Toutes vos donn\u00E9es personnelles associ\u00E9es \u00E0 ce compte ont \u00E9t\u00E9 supprim\u00E9es de notre syst\u00E8me.", _jsx("br", {}), _jsx("br", {}), _jsx(Link, { href: mailtoHref, children: "Si vous avez des questions ou des pr\u00E9occupations, n'h\u00E9sitez pas \u00E0 nous contacter." }), _jsx("br", {}), _jsx("br", {}), "Merci d'avoir utilis\u00E9 ProConnect."] })] }));
13
+ }
@@ -0,0 +1,8 @@
1
+ import { type LayoutProps } from "./_layout.js";
2
+ export default function DeleteFreeTotpMail(props: Props): JSX.Element;
3
+ export type Props = LayoutProps & {
4
+ given_name: string;
5
+ family_name: string;
6
+ support_email: string;
7
+ };
8
+ //# sourceMappingURL=DeleteFreeTotpMail.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DeleteFreeTotpMail.d.ts","sourceRoot":"","sources":["../src/DeleteFreeTotpMail.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AAKxD,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,KAAK,EAAE,KAAK,eAwBtD;AAID,MAAM,MAAM,KAAK,GAAG,WAAW,GAAG;IAChC,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { jsxs as _jsxs, jsx as _jsx } from "@kitajs/html/jsx-runtime";
2
+ //
3
+ import { Layout } from "./_layout.js";
4
+ import { Link, Text } from "./components/index.js";
5
+ //
6
+ export default function DeleteFreeTotpMail(props) {
7
+ const { baseurl, given_name, family_name, support_email } = props;
8
+ const mailtoParams = new URLSearchParams({
9
+ subject: "Erreur - Mon organisation",
10
+ });
11
+ const mailtoHref = `mailto:${support_email}?${mailtoParams.toString()}`;
12
+ return (_jsxs(Layout, { baseurl: baseurl, children: [_jsxs(Text, { safe: true, children: ["Bonjour ", given_name, " ", family_name, ","] }), _jsx("br", {}), _jsxs(Text, { children: ["L'application a \u00E9t\u00E9 supprim\u00E9e comme \u00E9tape de connexion \u00E0 deux facteurs.", _jsx("br", {}), _jsx("br", {}), _jsx(Link, { href: mailtoHref, children: "Si vous n'avez pas supprim\u00E9 cette application, quelqu'un utilise peut-\u00EAtre votre compte. Faites-le nous savoir en r\u00E9pondant \u00E0 cet email." })] })] }));
13
+ }
@@ -0,0 +1,7 @@
1
+ import { type LayoutProps } from "./_layout.js";
2
+ export default function MagicLink(props: Props): JSX.Element;
3
+ export type Props = LayoutProps & {
4
+ magic_link: string;
5
+ app_name?: string;
6
+ };
7
+ //# sourceMappingURL=MagicLink.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MagicLink.d.ts","sourceRoot":"","sources":["../src/MagicLink.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AAKxD,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,KAAK,EAAE,KAAK,eAkB7C;AAID,MAAM,MAAM,KAAK,GAAG,WAAW,GAAG;IAChC,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "@kitajs/html/jsx-runtime";
2
+ //
3
+ import { escapeHtml } from "@kitajs/html";
4
+ import { Layout } from "./_layout.js";
5
+ import { Button, Em, Text } from "./components/index.js";
6
+ //
7
+ export default function MagicLink(props) {
8
+ const { baseurl, magic_link, app_name = "ProConnect" } = props;
9
+ return (_jsxs(Layout, { baseurl: baseurl, children: [_jsx(Text, { children: "Bonjour," }), _jsx("br", {}), _jsxs(Text, { children: ["Vous avez demand\u00E9 un ", _jsx("b", { children: "lien d'identification" }), " \u00E0 ", escapeHtml(app_name), ". Utilisez le bouton ci-dessous pour vous connecter instantan\u00E9ment.", _jsx("br", {}), _jsx(Em, { children: "Il est valable 1 heure" }), "."] }), _jsx("br", {}), _jsx(Button, { href: magic_link, children: "Se connecter" }), _jsx("br", {}), _jsx(Text, { children: "Ce lien a \u00E9t\u00E9 g\u00E9n\u00E9r\u00E9 pour vous. Merci de ne pas le partager." })] }));
10
+ }
@@ -0,0 +1,10 @@
1
+ import { type LayoutProps } from "./_layout.js";
2
+ export default function OfficialContactEmailVerification(props: Props): JSX.Element;
3
+ export type Props = LayoutProps & {
4
+ email: string;
5
+ family_name: string;
6
+ given_name: string;
7
+ libelle: string;
8
+ token: string;
9
+ };
10
+ //# sourceMappingURL=OfficialContactEmailVerification.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OfficialContactEmailVerification.d.ts","sourceRoot":"","sources":["../src/OfficialContactEmailVerification.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AAKxD,MAAM,CAAC,OAAO,UAAU,gCAAgC,CAAC,KAAK,EAAE,KAAK,eA0BpE;AAID,MAAM,MAAM,KAAK,GAAG,WAAW,GAAG;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "@kitajs/html/jsx-runtime";
2
+ //
3
+ import { Layout } from "./_layout.js";
4
+ import { Badge, Em, Text } from "./components/index.js";
5
+ //
6
+ export default function OfficialContactEmailVerification(props) {
7
+ const { baseurl, given_name, email, family_name, libelle, token } = props;
8
+ return (_jsxs(Layout, { baseurl: baseurl, children: [_jsx(Text, { children: "Bonjour," }), _jsx("br", {}), _jsxs(Text, { children: [_jsxs("b", { children: [given_name, " ", family_name, " (", email, ")"] }), " ", "souhaite rejoindre votre organisation \u00AB ", _jsx("b", { children: libelle }), " \u00BB sur ProConnect. Pour authentifier cette adresse email, copiez-collez ce code dans l\u2019interface de connexion ProConnect", _jsx("br", {}), _jsx(Em, { children: "Ce code est valable 1h." })] }), _jsx("br", {}), _jsx("br", {}), _jsx(Badge, { "aria-label": "Code de v\u00E9rification", children: _jsx(Em, { style: { letterSpacing: "0.2em" }, children: token }) }), _jsx("br", {}), _jsx("br", {})] }));
9
+ }
@@ -0,0 +1,6 @@
1
+ import { type LayoutProps } from "./_layout.js";
2
+ export default function ResetPassword(props: Props): JSX.Element;
3
+ export type Props = LayoutProps & {
4
+ reset_password_link: string;
5
+ };
6
+ //# sourceMappingURL=ResetPassword.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ResetPassword.d.ts","sourceRoot":"","sources":["../src/ResetPassword.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AAKxD,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,KAAK,EAAE,KAAK,eA2BjD;AAID,MAAM,MAAM,KAAK,GAAG,WAAW,GAAG;IAChC,mBAAmB,EAAE,MAAM,CAAC;CAC7B,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "@kitajs/html/jsx-runtime";
2
+ //
3
+ import { Layout } from "./_layout.js";
4
+ import { Button, Em, Text } from "./components/index.js";
5
+ //
6
+ export default function ResetPassword(props) {
7
+ const { baseurl, reset_password_link } = props;
8
+ return (_jsxs(Layout, { baseurl: baseurl, children: [_jsx(Text, { safe: true, children: "Bonjour," }), _jsx("br", {}), _jsxs(Text, { children: ["Nous avons re\u00E7u une demande de r\u00E9initialisation de votre mot de passe.", _jsx("br", {}), _jsx("br", {}), _jsx(Em, { children: "Si vous n\u2019avez pas fait cette demande, vous pouvez ignorer cet email." }), _jsx("br", {}), _jsx("br", {}), "Pour changer le mot de passe de votre compte ProConnect, cliquez sur le bouton ci-dessous :"] }), _jsx("br", {}), _jsx(Button, { href: reset_password_link, children: "R\u00E9initialiser le mot de passe" }), _jsx("br", {}), _jsx(Text, { children: "Votre mot de passe changera seulement si vous cliquez sur le lien et que vous en choisissez un nouveau." })] }));
9
+ }
@@ -0,0 +1,25 @@
1
+ import { type LayoutProps } from "./_layout.js";
2
+ export default function UpdatePersonalDataMail(props: Props): JSX.Element;
3
+ export type Props = LayoutProps & {
4
+ family_name: string | null;
5
+ given_name: string | null;
6
+ updatedFields: Partial<{
7
+ family_name: {
8
+ new: string | null;
9
+ old: string | null;
10
+ };
11
+ given_name: {
12
+ new: string | null;
13
+ old: string | null;
14
+ };
15
+ job: {
16
+ new: string | null;
17
+ old: string | null;
18
+ };
19
+ phone_number: {
20
+ new: string | null;
21
+ old: string | null;
22
+ };
23
+ }>;
24
+ };
25
+ //# sourceMappingURL=UpdatePersonalDataMail.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UpdatePersonalDataMail.d.ts","sourceRoot":"","sources":["../src/UpdatePersonalDataMail.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AAGxD,MAAM,CAAC,OAAO,UAAU,sBAAsB,CAAC,KAAK,EAAE,KAAK,eA4C1D;AAID,MAAM,MAAM,KAAK,GAAG,WAAW,GAAG;IAChC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,aAAa,EAAE,OAAO,CAAC;QACrB,WAAW,EAAE;YAAE,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;YAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;SAAE,CAAC;QACxD,UAAU,EAAE;YAAE,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;YAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;SAAE,CAAC;QACvD,GAAG,EAAE;YAAE,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;YAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;SAAE,CAAC;QAChD,YAAY,EAAE;YAAE,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;YAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;SAAE,CAAC;KAC1D,CAAC,CAAC;CACJ,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { jsxs as _jsxs, jsx as _jsx } from "@kitajs/html/jsx-runtime";
2
+ //
3
+ import { Layout } from "./_layout.js";
4
+ import { Text } from "./components/index.js";
5
+ export default function UpdatePersonalDataMail(props) {
6
+ const { baseurl, family_name, given_name, updatedFields } = props;
7
+ return (_jsxs(Layout, { baseurl: baseurl, children: [_jsxs(Text, { safe: true, children: ["Bonjour ", given_name, " ", family_name, ","] }), _jsx("br", {}), _jsxs(Text, { children: ["Nous vous informons que vos donn\u00E9es personnelles ont \u00E9t\u00E9 mises \u00E0 jour avec succ\u00E8s.", _jsx("br", {}), _jsx("br", {}), "Les donn\u00E9es modifi\u00E9es sont les suivantes :"] }), _jsxs("ul", { children: [updatedFields.given_name && (_jsx("li", { children: _jsxs(Text, { safe: true, children: ["Pr\u00E9nom : ", updatedFields.given_name.new] }) })), updatedFields.family_name && (_jsx("li", { children: _jsxs(Text, { safe: true, children: ["Nom de famille : ", updatedFields.family_name.new] }) })), updatedFields.phone_number && (_jsx("li", { children: _jsxs(Text, { safe: true, children: ["Num\u00E9ro de t\u00E9l\u00E9phone : ", updatedFields.phone_number.new] }) })), updatedFields.job && (_jsx("li", { children: _jsxs(Text, { safe: true, children: ["Profession ou r\u00F4le au sein de votre organisation :", " ", updatedFields.job.new] }) }))] })] }));
8
+ }
@@ -0,0 +1,6 @@
1
+ import { type LayoutProps } from "./_layout.js";
2
+ export default function VerifyEmail(props: Props): JSX.Element;
3
+ export type Props = LayoutProps & {
4
+ token: string;
5
+ };
6
+ //# sourceMappingURL=VerifyEmail.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VerifyEmail.d.ts","sourceRoot":"","sources":["../src/VerifyEmail.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AAKxD,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,KAAK,EAAE,KAAK,eAqB/C;AAID,MAAM,MAAM,KAAK,GAAG,WAAW,GAAG;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "@kitajs/html/jsx-runtime";
2
+ //
3
+ import { Layout } from "./_layout.js";
4
+ import { Badge, Em, Text } from "./components/index.js";
5
+ //
6
+ export default function VerifyEmail(props) {
7
+ const { baseurl, token } = props;
8
+ return (_jsxs(Layout, { baseurl: baseurl, children: [_jsx(Text, { children: "Bonjour," }), _jsx("br", {}), _jsxs(Text, { children: ["Pour v\u00E9rifier votre adresse e-mail, merci de de copier-coller ou de renseigner ce code dans l\u2019interface de connexion ProConnect.", _jsx("br", {}), _jsx(Em, { children: "Ce code est valable 1h." })] }), _jsx("br", {}), _jsx("br", {}), _jsx(Badge, { "aria-label": "Code de v\u00E9rification", children: _jsx(Em, { style: { letterSpacing: "0.2em" }, children: token }) }), _jsx("br", {}), _jsx("br", {})] }));
9
+ }
@@ -0,0 +1,7 @@
1
+ import { type LayoutProps } from "./_layout.js";
2
+ export default function Welcome(props: Props): JSX.Element;
3
+ export type Props = LayoutProps & {
4
+ family_name: string;
5
+ given_name: string;
6
+ };
7
+ //# sourceMappingURL=Welcome.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Welcome.d.ts","sourceRoot":"","sources":["../src/Welcome.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AAKxD,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,KAAK,EAAE,KAAK,eAuB3C;AAID,MAAM,MAAM,KAAK,GAAG,WAAW,GAAG;IAChC,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { jsxs as _jsxs, jsx as _jsx } from "@kitajs/html/jsx-runtime";
2
+ //
3
+ import { Layout } from "./_layout.js";
4
+ import { Em, Link, Text } from "./components/index.js";
5
+ //
6
+ export default function Welcome(props) {
7
+ const { baseurl, family_name, given_name } = props;
8
+ return (_jsxs(Layout, { baseurl: baseurl, children: [_jsxs(Text, { safe: true, children: ["Bonjour ", given_name, " ", family_name, ","] }), _jsx("br", {}), _jsxs(Text, { children: [_jsx(Em, { children: "Votre compte ProConnect est cr\u00E9\u00E9 !" }), _jsx("br", {}), _jsx("br", {}), "Vous pouvez \u00E0 pr\u00E9sent retourner sur votre d\u00E9marche ou demande.", _jsx("br", {}), _jsx("br", {}), "\u00C0 tout moment, retrouvez les informations de votre compte ProConnect sur", " ", _jsx(Link, { href: baseurl, target: "_blank", children: baseurl }), "."] })] }));
9
+ }
@@ -0,0 +1,9 @@
1
+ import type { PropsWithChildren } from "@kitajs/html";
2
+ export interface LayoutProps {
3
+ baseurl: string;
4
+ }
5
+ export declare function VSpacing({ height }: {
6
+ height: number;
7
+ }): JSX.Element;
8
+ export declare function Layout({ children }: PropsWithChildren<LayoutProps>): JSX.Element;
9
+ //# sourceMappingURL=_layout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_layout.d.ts","sourceRoot":"","sources":["../src/_layout.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAKtD,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,wBAAgB,QAAQ,CAAC,EAAE,MAAM,EAAE,EAAE;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,eAMtD;AACD,wBAAgB,MAAM,CAAC,EAAE,QAAQ,EAAE,EAAE,iBAAiB,CAAC,WAAW,CAAC,eAmDlE"}
@@ -0,0 +1,17 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "@kitajs/html/jsx-runtime";
2
+ import { Html, ProConnectLogo, Section, Text } from "./components/index.js";
3
+ export function VSpacing({ height }) {
4
+ return (_jsx(Section, { style: `font-size:${height}px; line-height:${height}px;`, children: "\u00A0" }));
5
+ }
6
+ export function Layout({ children }) {
7
+ return (_jsxs(Html, { children: [_jsxs(Section, { width: "800", style: {
8
+ maxWidth: "800px",
9
+ width: "100%",
10
+ }, children: [_jsx(VSpacing, { height: 64 }), _jsx(Section, { align: "center", children: _jsx(ProConnectLogo, {}) }), _jsx(VSpacing, { height: 64 }), _jsxs(Section, { bgcolor: "#FFFFFF", style: {
11
+ boxShadow: "0px 2px 6px 0px rgba(0, 0, 18, 0.16)",
12
+ }, children: [_jsx(VSpacing, { height: 64 }), _jsxs(Section, { width: "600", style: {
13
+ maxWidth: "600px",
14
+ width: "100%",
15
+ padding: "24px",
16
+ }, children: [children, _jsxs(Text, { style: { marginTop: "16px" }, children: ["Cordialement,", _jsx("br", {}), "L'\u00E9quipe ProConnect"] })] }), _jsx(VSpacing, { height: 64 })] }), _jsx(VSpacing, { height: 64 })] }), _jsx(VSpacing, { height: 64 })] }));
17
+ }
@@ -0,0 +1,3 @@
1
+ import type { PropsWithChildren } from "@kitajs/html";
2
+ export declare function Badge(attributes: PropsWithChildren<JSX.HtmlTag>): JSX.Element;
3
+ //# sourceMappingURL=Badge.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../src/components/Badge.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAKtD,wBAAgB,KAAK,CAAC,UAAU,EAAE,iBAAiB,CAAC,GAAG,CAAC,OAAO,CAAC,eAoB/D"}
@@ -0,0 +1,16 @@
1
+ import { jsx as _jsx } from "@kitajs/html/jsx-runtime";
2
+ import { fontFamily, info_950 } from "./style.js";
3
+ //
4
+ export function Badge(attributes) {
5
+ const { children, style, ...props } = attributes;
6
+ return (_jsx("span", { style: {
7
+ backgroundColor: info_950,
8
+ fontFamily,
9
+ fontSize: "16px",
10
+ fontStyle: "normal",
11
+ lineHeight: "24px",
12
+ margin: 0,
13
+ padding: "8px 16px",
14
+ ...style,
15
+ }, ...props, children: children }));
16
+ }
@@ -0,0 +1,3 @@
1
+ import type { PropsWithChildren } from "@kitajs/html";
2
+ export declare function Button(attributes: PropsWithChildren<JSX.HtmlLinkTag>): JSX.Element;
3
+ //# sourceMappingURL=Button.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../src/components/Button.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAKtD,wBAAgB,MAAM,CAAC,UAAU,EAAE,iBAAiB,CAAC,GAAG,CAAC,WAAW,CAAC,eA6BpE"}
@@ -0,0 +1,24 @@
1
+ import { jsx as _jsx } from "@kitajs/html/jsx-runtime";
2
+ import { blueFranceSun_113, fontFamily } from "./style.js";
3
+ //
4
+ export function Button(attributes) {
5
+ const { children, style, ...props } = attributes;
6
+ return (_jsx("a", { style: {
7
+ backgroundColor: blueFranceSun_113,
8
+ borderRadius: "4px",
9
+ color: "white",
10
+ display: "block",
11
+ fontFamily,
12
+ fontSize: "16px",
13
+ fontStyle: "normal",
14
+ fontWeight: "bold",
15
+ lineHeight: "24px",
16
+ padding: "5px",
17
+ textAlign: "center",
18
+ textDecoration: "none",
19
+ wordBreak: "break-word",
20
+ wordWrap: "break-word",
21
+ margin: 0,
22
+ ...style,
23
+ }, target: "_blank", ...props, children: children }));
24
+ }
@@ -0,0 +1,3 @@
1
+ import type { PropsWithChildren } from "@kitajs/html";
2
+ export declare function Em(attributes: PropsWithChildren<JSX.HtmlTag>): JSX.Element;
3
+ //# sourceMappingURL=Em.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Em.d.ts","sourceRoot":"","sources":["../../src/components/Em.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAKtD,wBAAgB,EAAE,CAAC,UAAU,EAAE,iBAAiB,CAAC,GAAG,CAAC,OAAO,CAAC,eAoB5D"}
@@ -0,0 +1,16 @@
1
+ import { jsx as _jsx } from "@kitajs/html/jsx-runtime";
2
+ import { blueFranceSun_113, fontFamily } from "./style.js";
3
+ //
4
+ export function Em(attributes) {
5
+ const { children, style, ...props } = attributes;
6
+ return (_jsx("em", { style: {
7
+ color: blueFranceSun_113,
8
+ fontFamily,
9
+ fontSize: "16px",
10
+ fontStyle: "normal",
11
+ fontWeight: "bold",
12
+ lineHeight: "24px",
13
+ margin: 0,
14
+ ...style,
15
+ }, ...props, children: children }));
16
+ }
@@ -0,0 +1,3 @@
1
+ import type { PropsWithChildren } from "@kitajs/html";
2
+ export declare function Html(attributes: PropsWithChildren<JSX.HtmlHtmlTag>): JSX.Element;
3
+ //# sourceMappingURL=Html.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Html.d.ts","sourceRoot":"","sources":["../../src/components/Html.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAItD,wBAAgB,IAAI,CAAC,UAAU,EAAE,iBAAiB,CAAC,GAAG,CAAC,WAAW,CAAC,eA2BlE"}
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "@kitajs/html/jsx-runtime";
2
+ //
3
+ export function Html(attributes) {
4
+ const { children, ...props } = attributes;
5
+ return (_jsxs("html", { ...props, children: [_jsxs("head", { children: [_jsx("meta", { "http-equiv": "Content-Type", content: "text/html; charset=utf-8" }), _jsx("meta", { "http-equiv": "X-UA-Compatible", content: "IE=edge" }), _jsx("meta", { name: "format-detection", content: "telephone=no" }), _jsx("meta", { name: "viewport", content: "width=device-width, initial-scale=1" })] }), _jsx("body", { style: { backgroundColor: "#FAFAFA", paddingTop: "32px" }, children: _jsx("table", { width: "100%", border: 0, cellpadding: "0", cellspacing: "0", bgcolor: "#FAFAFA", children: _jsx("tr", { children: _jsx("td", { align: "center", valign: "top", children: children }) }) }) })] }));
6
+ }
@@ -0,0 +1,3 @@
1
+ import type { PropsWithChildren } from "@kitajs/html";
2
+ export declare function Link(attributes: PropsWithChildren<JSX.HtmlAnchorTag>): JSX.Element;
3
+ //# sourceMappingURL=Link.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Link.d.ts","sourceRoot":"","sources":["../../src/components/Link.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAKtD,wBAAgB,IAAI,CAAC,UAAU,EAAE,iBAAiB,CAAC,GAAG,CAAC,aAAa,CAAC,eAkBpE"}
@@ -0,0 +1,14 @@
1
+ import { jsx as _jsx } from "@kitajs/html/jsx-runtime";
2
+ import { fontFamily } from "./style.js";
3
+ //
4
+ export function Link(attributes) {
5
+ const { children, href, ...props } = attributes;
6
+ return (_jsx("a", { href: href, ...props, style: {
7
+ color: "rgb(0, 0, 145)",
8
+ fontFamily,
9
+ fontSize: "16px",
10
+ lineHeight: "24px",
11
+ margin: "16px 0",
12
+ textDecoration: "underline",
13
+ }, children: children }));
14
+ }
@@ -0,0 +1,2 @@
1
+ export declare function ProConnectLogo(): JSX.Element;
2
+ //# sourceMappingURL=ProConnectLogo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProConnectLogo.d.ts","sourceRoot":"","sources":["../../src/components/ProConnectLogo.tsx"],"names":[],"mappings":"AAEA,wBAAgB,cAAc,gBAS7B"}
@@ -0,0 +1,5 @@
1
+ import { jsx as _jsx } from "@kitajs/html/jsx-runtime";
2
+ //
3
+ export function ProConnectLogo() {
4
+ return (_jsx("img", { src: "https://identite.proconnect.gouv.fr/dist/mail-proconnect.png", alt: "ProConnect", height: 73, width: 193 }));
5
+ }
@@ -0,0 +1,3 @@
1
+ import type { PropsWithChildren } from "@kitajs/html";
2
+ export declare function Section(attributes: PropsWithChildren<JSX.HtmlTableTag>): JSX.Element;
3
+ //# sourceMappingURL=Section.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Section.d.ts","sourceRoot":"","sources":["../../src/components/Section.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAItD,wBAAgB,OAAO,CAAC,UAAU,EAAE,iBAAiB,CAAC,GAAG,CAAC,YAAY,CAAC,eAqBtE"}
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx } from "@kitajs/html/jsx-runtime";
2
+ //
3
+ export function Section(attributes) {
4
+ const { align, children, style, ...props } = attributes;
5
+ return (_jsx("table", { align: "center", width: "100%", ...props, border: 0, cellpadding: "0", cellspacing: "0", role: "presentation", style: style ?? "", children: _jsx("tbody", { children: _jsx("tr", { children: _jsx("td", { align: align, children: children }) }) }) }));
6
+ }
@@ -0,0 +1,3 @@
1
+ import type { PropsWithChildren } from "@kitajs/html";
2
+ export declare function Text(attributes: PropsWithChildren<JSX.HtmlTag>): JSX.Element;
3
+ //# sourceMappingURL=Text.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../src/components/Text.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAKtD,wBAAgB,IAAI,CAAC,UAAU,EAAE,iBAAiB,CAAC,GAAG,CAAC,OAAO,CAAC,eAmB9D"}
@@ -0,0 +1,15 @@
1
+ import { jsx as _jsx } from "@kitajs/html/jsx-runtime";
2
+ import { fontFamily } from "./style.js";
3
+ //
4
+ export function Text(attributes) {
5
+ const { children, style, ...props } = attributes;
6
+ return (_jsx("p", { style: {
7
+ color: "#000",
8
+ fontFamily,
9
+ fontSize: "16px",
10
+ fontWeight: 400,
11
+ lineHeight: "24px",
12
+ margin: 0,
13
+ ...style,
14
+ }, ...props, children: children }));
15
+ }
@@ -0,0 +1,9 @@
1
+ export * from "./Badge.js";
2
+ export * from "./Button.js";
3
+ export * from "./Em.js";
4
+ export * from "./Html.js";
5
+ export * from "./Link.js";
6
+ export * from "./ProConnectLogo.js";
7
+ export * from "./Section.js";
8
+ export * from "./Text.js";
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAEA,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC"}
@@ -0,0 +1,9 @@
1
+ //
2
+ export * from "./Badge.js";
3
+ export * from "./Button.js";
4
+ export * from "./Em.js";
5
+ export * from "./Html.js";
6
+ export * from "./Link.js";
7
+ export * from "./ProConnectLogo.js";
8
+ export * from "./Section.js";
9
+ export * from "./Text.js";
@@ -0,0 +1,8 @@
1
+ export declare const fontFamily = "'Source Sans Pro', Verdana, Geneva, Arial, sans-serif";
2
+ /**
3
+ * Colors from DSFR
4
+ * @see https://www.systeme-de-design.gouv.fr/fondamentaux/fondamentaux/couleurs-palette (2024)
5
+ */
6
+ export declare const blueFranceSun_113 = "#000091";
7
+ export declare const info_950 = "#E8EDFF";
8
+ //# sourceMappingURL=style.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../src/components/style.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,0DACkC,CAAC;AAE1D;;;GAGG;AAEH,eAAO,MAAM,iBAAiB,YAAY,CAAC;AAC3C,eAAO,MAAM,QAAQ,YAAY,CAAC"}
@@ -0,0 +1,8 @@
1
+ //
2
+ export const fontFamily = "'Source Sans Pro', Verdana, Geneva, Arial, sans-serif";
3
+ /**
4
+ * Colors from DSFR
5
+ * @see https://www.systeme-de-design.gouv.fr/fondamentaux/fondamentaux/couleurs-palette (2024)
6
+ */
7
+ export const blueFranceSun_113 = "#000091";
8
+ export const info_950 = "#E8EDFF";
@@ -0,0 +1,13 @@
1
+ export { default as Add2fa } from "./Add2fa.js";
2
+ export { default as AddAccessKey } from "./AddAccessKey.js";
3
+ export { default as Delete2faProtection } from "./Delete2faProtection.js";
4
+ export { default as DeleteAccessKey } from "./DeleteAccessKey.js";
5
+ export { default as DeleteAccount } from "./DeleteAccount.js";
6
+ export { default as DeleteFreeTotpMail } from "./DeleteFreeTotpMail.js";
7
+ export { default as MagicLink } from "./MagicLink.js";
8
+ export { default as OfficialContactEmailVerification } from "./OfficialContactEmailVerification.js";
9
+ export { default as ResetPassword } from "./ResetPassword.js";
10
+ export { default as UpdatePersonalDataMail } from "./UpdatePersonalDataMail.js";
11
+ export { default as VerifyEmail } from "./VerifyEmail.js";
12
+ export { default as Welcome } from "./Welcome.js";
13
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC1E,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AACxE,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,gCAAgC,EAAE,MAAM,uCAAuC,CAAC;AACpG,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAChF,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,cAAc,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,13 @@
1
+ //
2
+ export { default as Add2fa } from "./Add2fa.js";
3
+ export { default as AddAccessKey } from "./AddAccessKey.js";
4
+ export { default as Delete2faProtection } from "./Delete2faProtection.js";
5
+ export { default as DeleteAccessKey } from "./DeleteAccessKey.js";
6
+ export { default as DeleteAccount } from "./DeleteAccount.js";
7
+ export { default as DeleteFreeTotpMail } from "./DeleteFreeTotpMail.js";
8
+ export { default as MagicLink } from "./MagicLink.js";
9
+ export { default as OfficialContactEmailVerification } from "./OfficialContactEmailVerification.js";
10
+ export { default as ResetPassword } from "./ResetPassword.js";
11
+ export { default as UpdatePersonalDataMail } from "./UpdatePersonalDataMail.js";
12
+ export { default as VerifyEmail } from "./VerifyEmail.js";
13
+ export { default as Welcome } from "./Welcome.js";
package/package.json ADDED
@@ -0,0 +1,54 @@
1
+ {
2
+ "name": "@proconnect-gouv/proconnect.email",
3
+ "version": "1.0.1",
4
+ "private": false,
5
+ "homepage": "https://github.com/proconnect-gouv/proconnect-identite/tree/main/packages/email#readme",
6
+ "bugs": "https://github.com/proconnect-gouv/proconnect-identite/issues",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/proconnect-gouv/proconnect-identite.git",
10
+ "directory": "packages/email"
11
+ },
12
+ "license": "MIT",
13
+ "sideEffects": false,
14
+ "type": "module",
15
+ "files": [
16
+ "dist"
17
+ ],
18
+ "exports": {
19
+ ".": {
20
+ "require": {
21
+ "types": "./dist/index.d.ts",
22
+ "default": "./dist/index.js"
23
+ },
24
+ "import": {
25
+ "types": "./dist/index.d.ts",
26
+ "default": "./dist/index.js"
27
+ },
28
+ "types": "./dist/index.d.ts",
29
+ "default": "./dist/index.js"
30
+ }
31
+ },
32
+ "scripts": {
33
+ "build": "tsc --build ./tsconfig.lib.json",
34
+ "dev": "npm run build -- --watch --preserveWatchOutput",
35
+ "storybook": "vite",
36
+ "test": "npm run test:unit src/**/*.test.tsx",
37
+ "test:unit": "tsx --test --test-reporter=spec",
38
+ "type-check": "tsc --noEmit"
39
+ },
40
+ "dependencies": {
41
+ "@kitajs/html": "^4.2.9"
42
+ },
43
+ "devDependencies": {
44
+ "@kitajs/ts-html-plugin": "^4.1.1",
45
+ "@proconnect-gouv/proconnect.devtools.typescript": "1.0.0",
46
+ "@storybook/csf": "^0.1.13",
47
+ "prettier": "^3.8.3",
48
+ "vite": "^8.1.0"
49
+ },
50
+ "publishConfig": {
51
+ "access": "public",
52
+ "provenance": true
53
+ }
54
+ }