@m5kdev/email 0.21.9 → 0.23.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.
@@ -6,34 +6,37 @@ require("react");
6
6
  let react_jsx_runtime = require("react/jsx-runtime");
7
7
  let _react_email_components = require("@react-email/components");
8
8
  //#region src/components/EmailLayout.tsx
9
- function EmailLayout({ previewText, brand, children }) {
10
- return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_react_email_components.Html, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_react_email_components.Head, {}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_react_email_components.Tailwind, {
11
- config: {
12
- presets: [_react_email_components.pixelBasedPreset],
13
- theme: { extend: {
14
- colors: {
15
- brand: "#2250f4",
16
- offwhite: "#fafbfb"
17
- },
18
- spacing: {
19
- 0: "0px",
20
- 20: "20px",
21
- 45: "45px"
22
- }
23
- } }
24
- },
25
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_react_email_components.Preview, { children: previewText }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_react_email_components.Body, {
26
- className: "bg-offwhite font-sans text-base",
27
- children: [
28
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_src_components_BrandHeader.BrandHeader, { brand }),
29
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_react_email_components.Container, {
30
- className: "rounded-lg border border-gray-200 bg-white p-8",
31
- children
32
- }),
33
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_src_components_BrandFooter.BrandFooter, { brand })
34
- ]
9
+ function EmailLayout({ previewText, brand, children, htmlLang }) {
10
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_react_email_components.Html, {
11
+ lang: htmlLang,
12
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_react_email_components.Head, {}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_react_email_components.Tailwind, {
13
+ config: {
14
+ presets: [_react_email_components.pixelBasedPreset],
15
+ theme: { extend: {
16
+ colors: {
17
+ brand: "#2250f4",
18
+ offwhite: "#fafbfb"
19
+ },
20
+ spacing: {
21
+ 0: "0px",
22
+ 20: "20px",
23
+ 45: "45px"
24
+ }
25
+ } }
26
+ },
27
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_react_email_components.Preview, { children: previewText }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_react_email_components.Body, {
28
+ className: "bg-offwhite font-sans text-base",
29
+ children: [
30
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_src_components_BrandHeader.BrandHeader, { brand }),
31
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_react_email_components.Container, {
32
+ className: "rounded-lg border border-gray-200 bg-white p-8",
33
+ children
34
+ }),
35
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_src_components_BrandFooter.BrandFooter, { brand })
36
+ ]
37
+ })]
35
38
  })]
36
- })] });
39
+ });
37
40
  }
38
41
  //#endregion
39
42
  exports.EmailLayout = EmailLayout;
@@ -1 +1 @@
1
- {"version":3,"file":"EmailLayout.cjs","names":["Html","Head","Tailwind","pixelBasedPreset","Preview","Body","BrandHeader","Container","BrandFooter"],"sources":["../../../src/components/EmailLayout.tsx"],"sourcesContent":["import React from \"react\";\r\n\r\n// Ensure React is loaded for the classic JSX runtime used during email rendering.\r\nvoid React;\r\n\r\nimport {\r\n Body,\r\n Container,\r\n Head,\r\n Html,\r\n Preview,\r\n pixelBasedPreset,\r\n Tailwind,\r\n} from \"@react-email/components\";\r\nimport type { Brand } from \"../types\";\r\nimport { BrandFooter } from \"./BrandFooter\";\r\nimport { BrandHeader } from \"./BrandHeader\";\r\n\r\ninterface EmailLayoutProps {\r\n readonly previewText: string;\r\n readonly brand: Brand;\r\n readonly children: React.ReactNode;\r\n}\r\n\r\nexport function EmailLayout({ previewText, brand, children }: EmailLayoutProps) {\r\n return (\r\n <Html>\r\n <Head />\r\n <Tailwind\r\n config={{\r\n presets: [pixelBasedPreset],\r\n theme: {\r\n extend: {\r\n colors: {\r\n brand: \"#2250f4\",\r\n offwhite: \"#fafbfb\",\r\n },\r\n spacing: {\r\n 0: \"0px\",\r\n 20: \"20px\",\r\n 45: \"45px\",\r\n },\r\n },\r\n },\r\n }}\r\n >\r\n <Preview>{previewText}</Preview>\r\n <Body className=\"bg-offwhite font-sans text-base\">\r\n <BrandHeader brand={brand} />\r\n <Container className=\"rounded-lg border border-gray-200 bg-white p-8\">\r\n {children}\r\n </Container>\r\n <BrandFooter brand={brand} />\r\n </Body>\r\n </Tailwind>\r\n </Html>\r\n );\r\n}\r\n"],"mappings":";;;;;;;;AAwBA,SAAgB,YAAY,EAAE,aAAa,OAAO,YAA8B;AAC9E,QACE,iBAAA,GAAA,kBAAA,MAACA,wBAAAA,MAAD,EAAA,UAAA,CACE,iBAAA,GAAA,kBAAA,KAACC,wBAAAA,MAAD,EAAQ,CAAA,EACR,iBAAA,GAAA,kBAAA,MAACC,wBAAAA,UAAD;EACE,QAAQ;GACN,SAAS,CAACC,wBAAAA,iBAAiB;GAC3B,OAAO,EACL,QAAQ;IACN,QAAQ;KACN,OAAO;KACP,UAAU;KACX;IACD,SAAS;KACP,GAAG;KACH,IAAI;KACJ,IAAI;KACL;IACF,EACF;GACF;YAhBH,CAkBE,iBAAA,GAAA,kBAAA,KAACC,wBAAAA,SAAD,EAAA,UAAU,aAAsB,CAAA,EAChC,iBAAA,GAAA,kBAAA,MAACC,wBAAAA,MAAD;GAAM,WAAU;aAAhB;IACE,iBAAA,GAAA,kBAAA,KAACC,mCAAAA,aAAD,EAAoB,OAAS,CAAA;IAC7B,iBAAA,GAAA,kBAAA,KAACC,wBAAAA,WAAD;KAAW,WAAU;KAClB;KACS,CAAA;IACZ,iBAAA,GAAA,kBAAA,KAACC,mCAAAA,aAAD,EAAoB,OAAS,CAAA;IACxB;KACE;IACN,EAAA,CAAA"}
1
+ {"version":3,"file":"EmailLayout.cjs","names":["Html","Head","Tailwind","pixelBasedPreset","Preview","Body","BrandHeader","Container","BrandFooter"],"sources":["../../../src/components/EmailLayout.tsx"],"sourcesContent":["import React from \"react\";\r\n\r\n// Ensure React is loaded for the classic JSX runtime used during email rendering.\r\nvoid React;\r\n\r\nimport {\r\n Body,\r\n Container,\r\n Head,\r\n Html,\r\n Preview,\r\n pixelBasedPreset,\r\n Tailwind,\r\n} from \"@react-email/components\";\r\nimport type { BrandEmailTemplateProps } from \"../types\";\r\nimport { BrandFooter } from \"./BrandFooter\";\r\nimport { BrandHeader } from \"./BrandHeader\";\r\n\r\nexport function EmailLayout({\r\n previewText,\r\n brand,\r\n children,\r\n htmlLang,\r\n}: BrandEmailTemplateProps & { children: React.ReactNode }) {\r\n return (\r\n <Html lang={htmlLang}>\r\n <Head />\r\n <Tailwind\r\n config={{\r\n presets: [pixelBasedPreset],\r\n theme: {\r\n extend: {\r\n colors: {\r\n brand: \"#2250f4\",\r\n offwhite: \"#fafbfb\",\r\n },\r\n spacing: {\r\n 0: \"0px\",\r\n 20: \"20px\",\r\n 45: \"45px\",\r\n },\r\n },\r\n },\r\n }}\r\n >\r\n <Preview>{previewText}</Preview>\r\n <Body className=\"bg-offwhite font-sans text-base\">\r\n <BrandHeader brand={brand} />\r\n <Container className=\"rounded-lg border border-gray-200 bg-white p-8\">\r\n {children}\r\n </Container>\r\n <BrandFooter brand={brand} />\r\n </Body>\r\n </Tailwind>\r\n </Html>\r\n );\r\n}\r\n"],"mappings":";;;;;;;;AAkBA,SAAgB,YAAY,EAC1B,aACA,OACA,UACA,YAC0D;AAC1D,QACE,iBAAA,GAAA,kBAAA,MAACA,wBAAAA,MAAD;EAAM,MAAM;YAAZ,CACE,iBAAA,GAAA,kBAAA,KAACC,wBAAAA,MAAD,EAAQ,CAAA,EACR,iBAAA,GAAA,kBAAA,MAACC,wBAAAA,UAAD;GACE,QAAQ;IACN,SAAS,CAACC,wBAAAA,iBAAiB;IAC3B,OAAO,EACL,QAAQ;KACN,QAAQ;MACN,OAAO;MACP,UAAU;MACX;KACD,SAAS;MACP,GAAG;MACH,IAAI;MACJ,IAAI;MACL;KACF,EACF;IACF;aAhBH,CAkBE,iBAAA,GAAA,kBAAA,KAACC,wBAAAA,SAAD,EAAA,UAAU,aAAsB,CAAA,EAChC,iBAAA,GAAA,kBAAA,MAACC,wBAAAA,MAAD;IAAM,WAAU;cAAhB;KACE,iBAAA,GAAA,kBAAA,KAACC,mCAAAA,aAAD,EAAoB,OAAS,CAAA;KAC7B,iBAAA,GAAA,kBAAA,KAACC,wBAAAA,WAAD;MAAW,WAAU;MAClB;MACS,CAAA;KACZ,iBAAA,GAAA,kBAAA,KAACC,mCAAAA,aAAD,EAAoB,OAAS,CAAA;KACxB;MACE;KACN"}
@@ -1,18 +1,16 @@
1
- import { Brand } from "../types.cjs";
1
+ import { BrandEmailTemplateProps } from "../types.cjs";
2
2
  import * as _$react_jsx_runtime0 from "react/jsx-runtime";
3
3
  import React from "react";
4
4
 
5
5
  //#region src/components/EmailLayout.d.ts
6
- interface EmailLayoutProps {
7
- readonly previewText: string;
8
- readonly brand: Brand;
9
- readonly children: React.ReactNode;
10
- }
11
6
  declare function EmailLayout({
12
7
  previewText,
13
8
  brand,
14
- children
15
- }: EmailLayoutProps): _$react_jsx_runtime0.JSX.Element;
9
+ children,
10
+ htmlLang
11
+ }: BrandEmailTemplateProps & {
12
+ children: React.ReactNode;
13
+ }): _$react_jsx_runtime0.JSX.Element;
16
14
  //#endregion
17
15
  export { EmailLayout };
18
16
  //# sourceMappingURL=EmailLayout.d.cts.map
@@ -1,18 +1,16 @@
1
- import { Brand } from "../types.mjs";
1
+ import { BrandEmailTemplateProps } from "../types.mjs";
2
2
  import React from "react";
3
3
  import * as _$react_jsx_runtime0 from "react/jsx-runtime";
4
4
 
5
5
  //#region src/components/EmailLayout.d.ts
6
- interface EmailLayoutProps {
7
- readonly previewText: string;
8
- readonly brand: Brand;
9
- readonly children: React.ReactNode;
10
- }
11
6
  declare function EmailLayout({
12
7
  previewText,
13
8
  brand,
14
- children
15
- }: EmailLayoutProps): _$react_jsx_runtime0.JSX.Element;
9
+ children,
10
+ htmlLang
11
+ }: BrandEmailTemplateProps & {
12
+ children: React.ReactNode;
13
+ }): _$react_jsx_runtime0.JSX.Element;
16
14
  //#endregion
17
15
  export { EmailLayout };
18
16
  //# sourceMappingURL=EmailLayout.d.mts.map
@@ -4,34 +4,37 @@ import "react";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
5
  import { Body, Container, Head, Html, Preview, Tailwind, pixelBasedPreset } from "@react-email/components";
6
6
  //#region src/components/EmailLayout.tsx
7
- function EmailLayout({ previewText, brand, children }) {
8
- return /* @__PURE__ */ jsxs(Html, { children: [/* @__PURE__ */ jsx(Head, {}), /* @__PURE__ */ jsxs(Tailwind, {
9
- config: {
10
- presets: [pixelBasedPreset],
11
- theme: { extend: {
12
- colors: {
13
- brand: "#2250f4",
14
- offwhite: "#fafbfb"
15
- },
16
- spacing: {
17
- 0: "0px",
18
- 20: "20px",
19
- 45: "45px"
20
- }
21
- } }
22
- },
23
- children: [/* @__PURE__ */ jsx(Preview, { children: previewText }), /* @__PURE__ */ jsxs(Body, {
24
- className: "bg-offwhite font-sans text-base",
25
- children: [
26
- /* @__PURE__ */ jsx(BrandHeader, { brand }),
27
- /* @__PURE__ */ jsx(Container, {
28
- className: "rounded-lg border border-gray-200 bg-white p-8",
29
- children
30
- }),
31
- /* @__PURE__ */ jsx(BrandFooter, { brand })
32
- ]
7
+ function EmailLayout({ previewText, brand, children, htmlLang }) {
8
+ return /* @__PURE__ */ jsxs(Html, {
9
+ lang: htmlLang,
10
+ children: [/* @__PURE__ */ jsx(Head, {}), /* @__PURE__ */ jsxs(Tailwind, {
11
+ config: {
12
+ presets: [pixelBasedPreset],
13
+ theme: { extend: {
14
+ colors: {
15
+ brand: "#2250f4",
16
+ offwhite: "#fafbfb"
17
+ },
18
+ spacing: {
19
+ 0: "0px",
20
+ 20: "20px",
21
+ 45: "45px"
22
+ }
23
+ } }
24
+ },
25
+ children: [/* @__PURE__ */ jsx(Preview, { children: previewText }), /* @__PURE__ */ jsxs(Body, {
26
+ className: "bg-offwhite font-sans text-base",
27
+ children: [
28
+ /* @__PURE__ */ jsx(BrandHeader, { brand }),
29
+ /* @__PURE__ */ jsx(Container, {
30
+ className: "rounded-lg border border-gray-200 bg-white p-8",
31
+ children
32
+ }),
33
+ /* @__PURE__ */ jsx(BrandFooter, { brand })
34
+ ]
35
+ })]
33
36
  })]
34
- })] });
37
+ });
35
38
  }
36
39
  //#endregion
37
40
  export { EmailLayout };
@@ -1 +1 @@
1
- {"version":3,"file":"EmailLayout.mjs","names":[],"sources":["../../../src/components/EmailLayout.tsx"],"sourcesContent":["import React from \"react\";\r\n\r\n// Ensure React is loaded for the classic JSX runtime used during email rendering.\r\nvoid React;\r\n\r\nimport {\r\n Body,\r\n Container,\r\n Head,\r\n Html,\r\n Preview,\r\n pixelBasedPreset,\r\n Tailwind,\r\n} from \"@react-email/components\";\r\nimport type { Brand } from \"../types\";\r\nimport { BrandFooter } from \"./BrandFooter\";\r\nimport { BrandHeader } from \"./BrandHeader\";\r\n\r\ninterface EmailLayoutProps {\r\n readonly previewText: string;\r\n readonly brand: Brand;\r\n readonly children: React.ReactNode;\r\n}\r\n\r\nexport function EmailLayout({ previewText, brand, children }: EmailLayoutProps) {\r\n return (\r\n <Html>\r\n <Head />\r\n <Tailwind\r\n config={{\r\n presets: [pixelBasedPreset],\r\n theme: {\r\n extend: {\r\n colors: {\r\n brand: \"#2250f4\",\r\n offwhite: \"#fafbfb\",\r\n },\r\n spacing: {\r\n 0: \"0px\",\r\n 20: \"20px\",\r\n 45: \"45px\",\r\n },\r\n },\r\n },\r\n }}\r\n >\r\n <Preview>{previewText}</Preview>\r\n <Body className=\"bg-offwhite font-sans text-base\">\r\n <BrandHeader brand={brand} />\r\n <Container className=\"rounded-lg border border-gray-200 bg-white p-8\">\r\n {children}\r\n </Container>\r\n <BrandFooter brand={brand} />\r\n </Body>\r\n </Tailwind>\r\n </Html>\r\n );\r\n}\r\n"],"mappings":";;;;;;AAwBA,SAAgB,YAAY,EAAE,aAAa,OAAO,YAA8B;AAC9E,QACE,qBAAC,MAAD,EAAA,UAAA,CACE,oBAAC,MAAD,EAAQ,CAAA,EACR,qBAAC,UAAD;EACE,QAAQ;GACN,SAAS,CAAC,iBAAiB;GAC3B,OAAO,EACL,QAAQ;IACN,QAAQ;KACN,OAAO;KACP,UAAU;KACX;IACD,SAAS;KACP,GAAG;KACH,IAAI;KACJ,IAAI;KACL;IACF,EACF;GACF;YAhBH,CAkBE,oBAAC,SAAD,EAAA,UAAU,aAAsB,CAAA,EAChC,qBAAC,MAAD;GAAM,WAAU;aAAhB;IACE,oBAAC,aAAD,EAAoB,OAAS,CAAA;IAC7B,oBAAC,WAAD;KAAW,WAAU;KAClB;KACS,CAAA;IACZ,oBAAC,aAAD,EAAoB,OAAS,CAAA;IACxB;KACE;IACN,EAAA,CAAA"}
1
+ {"version":3,"file":"EmailLayout.mjs","names":[],"sources":["../../../src/components/EmailLayout.tsx"],"sourcesContent":["import React from \"react\";\r\n\r\n// Ensure React is loaded for the classic JSX runtime used during email rendering.\r\nvoid React;\r\n\r\nimport {\r\n Body,\r\n Container,\r\n Head,\r\n Html,\r\n Preview,\r\n pixelBasedPreset,\r\n Tailwind,\r\n} from \"@react-email/components\";\r\nimport type { BrandEmailTemplateProps } from \"../types\";\r\nimport { BrandFooter } from \"./BrandFooter\";\r\nimport { BrandHeader } from \"./BrandHeader\";\r\n\r\nexport function EmailLayout({\r\n previewText,\r\n brand,\r\n children,\r\n htmlLang,\r\n}: BrandEmailTemplateProps & { children: React.ReactNode }) {\r\n return (\r\n <Html lang={htmlLang}>\r\n <Head />\r\n <Tailwind\r\n config={{\r\n presets: [pixelBasedPreset],\r\n theme: {\r\n extend: {\r\n colors: {\r\n brand: \"#2250f4\",\r\n offwhite: \"#fafbfb\",\r\n },\r\n spacing: {\r\n 0: \"0px\",\r\n 20: \"20px\",\r\n 45: \"45px\",\r\n },\r\n },\r\n },\r\n }}\r\n >\r\n <Preview>{previewText}</Preview>\r\n <Body className=\"bg-offwhite font-sans text-base\">\r\n <BrandHeader brand={brand} />\r\n <Container className=\"rounded-lg border border-gray-200 bg-white p-8\">\r\n {children}\r\n </Container>\r\n <BrandFooter brand={brand} />\r\n </Body>\r\n </Tailwind>\r\n </Html>\r\n );\r\n}\r\n"],"mappings":";;;;;;AAkBA,SAAgB,YAAY,EAC1B,aACA,OACA,UACA,YAC0D;AAC1D,QACE,qBAAC,MAAD;EAAM,MAAM;YAAZ,CACE,oBAAC,MAAD,EAAQ,CAAA,EACR,qBAAC,UAAD;GACE,QAAQ;IACN,SAAS,CAAC,iBAAiB;IAC3B,OAAO,EACL,QAAQ;KACN,QAAQ;MACN,OAAO;MACP,UAAU;MACX;KACD,SAAS;MACP,GAAG;MACH,IAAI;MACJ,IAAI;MACL;KACF,EACF;IACF;aAhBH,CAkBE,oBAAC,SAAD,EAAA,UAAU,aAAsB,CAAA,EAChC,qBAAC,MAAD;IAAM,WAAU;cAAhB;KACE,oBAAC,aAAD,EAAoB,OAAS,CAAA;KAC7B,oBAAC,WAAD;MAAW,WAAU;MAClB;MACS,CAAA;KACZ,oBAAC,aAAD,EAAoB,OAAS,CAAA;KACxB;MACE;KACN"}
@@ -4,8 +4,13 @@ type Brand = {
4
4
  logo: string;
5
5
  tagline: string;
6
6
  };
7
- interface BrandEmailTemplateProps {
7
+ type EmailTranslateFn = (key: string, options?: Record<string, unknown>) => string;
8
+ interface BaseEmailTemplateProps {
8
9
  previewText: string;
10
+ t?: EmailTranslateFn;
11
+ htmlLang?: string;
12
+ }
13
+ interface BrandEmailTemplateProps extends BaseEmailTemplateProps {
9
14
  brand: Brand;
10
15
  }
11
16
  interface UrlEmailTemplateProps extends BrandEmailTemplateProps {
@@ -14,23 +19,22 @@ interface UrlEmailTemplateProps extends BrandEmailTemplateProps {
14
19
  interface VerificationTemplateProps extends UrlEmailTemplateProps {}
15
20
  interface PasswordResetTemplateProps extends UrlEmailTemplateProps {}
16
21
  interface AccountDeletionTemplateProps extends UrlEmailTemplateProps {}
22
+ interface WaitlistInviteTemplateProps extends UrlEmailTemplateProps {}
17
23
  interface OrganizationInviteTemplateProps extends UrlEmailTemplateProps {
18
24
  organizationName: string;
19
25
  inviterName: string;
20
26
  role: string;
21
27
  }
22
- interface WaitlistInviteTemplateProps extends UrlEmailTemplateProps {}
28
+ interface WaitlistConfirmationTemplateProps extends BrandEmailTemplateProps {
29
+ email: string;
30
+ }
23
31
  interface WaitlistUserInviteTemplateProps extends UrlEmailTemplateProps {
24
32
  inviter: string;
25
33
  name?: string;
26
34
  }
27
- interface OrganizationInviteTemplateProps extends UrlEmailTemplateProps {}
28
- interface WaitlistConfirmationTemplateProps extends BrandEmailTemplateProps {
29
- email: string;
30
- }
31
35
  interface SystemWaitlistNotificationTemplateProps extends UrlEmailTemplateProps {
32
36
  email: string;
33
37
  }
34
38
  //#endregion
35
- export { AccountDeletionTemplateProps, Brand, BrandEmailTemplateProps, OrganizationInviteTemplateProps, PasswordResetTemplateProps, SystemWaitlistNotificationTemplateProps, UrlEmailTemplateProps, VerificationTemplateProps, WaitlistConfirmationTemplateProps, WaitlistInviteTemplateProps, WaitlistUserInviteTemplateProps };
39
+ export { AccountDeletionTemplateProps, BaseEmailTemplateProps, Brand, BrandEmailTemplateProps, EmailTranslateFn, OrganizationInviteTemplateProps, PasswordResetTemplateProps, SystemWaitlistNotificationTemplateProps, UrlEmailTemplateProps, VerificationTemplateProps, WaitlistConfirmationTemplateProps, WaitlistInviteTemplateProps, WaitlistUserInviteTemplateProps };
36
40
  //# sourceMappingURL=types.d.cts.map
@@ -4,8 +4,13 @@ type Brand = {
4
4
  logo: string;
5
5
  tagline: string;
6
6
  };
7
- interface BrandEmailTemplateProps {
7
+ type EmailTranslateFn = (key: string, options?: Record<string, unknown>) => string;
8
+ interface BaseEmailTemplateProps {
8
9
  previewText: string;
10
+ t?: EmailTranslateFn;
11
+ htmlLang?: string;
12
+ }
13
+ interface BrandEmailTemplateProps extends BaseEmailTemplateProps {
9
14
  brand: Brand;
10
15
  }
11
16
  interface UrlEmailTemplateProps extends BrandEmailTemplateProps {
@@ -14,23 +19,22 @@ interface UrlEmailTemplateProps extends BrandEmailTemplateProps {
14
19
  interface VerificationTemplateProps extends UrlEmailTemplateProps {}
15
20
  interface PasswordResetTemplateProps extends UrlEmailTemplateProps {}
16
21
  interface AccountDeletionTemplateProps extends UrlEmailTemplateProps {}
22
+ interface WaitlistInviteTemplateProps extends UrlEmailTemplateProps {}
17
23
  interface OrganizationInviteTemplateProps extends UrlEmailTemplateProps {
18
24
  organizationName: string;
19
25
  inviterName: string;
20
26
  role: string;
21
27
  }
22
- interface WaitlistInviteTemplateProps extends UrlEmailTemplateProps {}
28
+ interface WaitlistConfirmationTemplateProps extends BrandEmailTemplateProps {
29
+ email: string;
30
+ }
23
31
  interface WaitlistUserInviteTemplateProps extends UrlEmailTemplateProps {
24
32
  inviter: string;
25
33
  name?: string;
26
34
  }
27
- interface OrganizationInviteTemplateProps extends UrlEmailTemplateProps {}
28
- interface WaitlistConfirmationTemplateProps extends BrandEmailTemplateProps {
29
- email: string;
30
- }
31
35
  interface SystemWaitlistNotificationTemplateProps extends UrlEmailTemplateProps {
32
36
  email: string;
33
37
  }
34
38
  //#endregion
35
- export { AccountDeletionTemplateProps, Brand, BrandEmailTemplateProps, OrganizationInviteTemplateProps, PasswordResetTemplateProps, SystemWaitlistNotificationTemplateProps, UrlEmailTemplateProps, VerificationTemplateProps, WaitlistConfirmationTemplateProps, WaitlistInviteTemplateProps, WaitlistUserInviteTemplateProps };
39
+ export { AccountDeletionTemplateProps, BaseEmailTemplateProps, Brand, BrandEmailTemplateProps, EmailTranslateFn, OrganizationInviteTemplateProps, PasswordResetTemplateProps, SystemWaitlistNotificationTemplateProps, UrlEmailTemplateProps, VerificationTemplateProps, WaitlistConfirmationTemplateProps, WaitlistInviteTemplateProps, WaitlistUserInviteTemplateProps };
36
40
  //# sourceMappingURL=types.d.mts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m5kdev/email",
3
- "version": "0.21.9",
3
+ "version": "0.23.0",
4
4
  "license": "GPL-3.0-only",
5
5
  "repository": {
6
6
  "type": "git",
@@ -19,7 +19,7 @@
19
19
  "tsx": "4.19.2",
20
20
  "tsdown": "0.21.7",
21
21
  "typescript": "6.0.3",
22
- "@m5kdev/config": "0.21.9"
22
+ "@m5kdev/config": "0.23.0"
23
23
  },
24
24
  "dependencies": {
25
25
  "@react-email/components": "1.0.1",