@inkeep/agents-email 0.58.3 → 0.58.4
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/components/email-footer.d.ts +2 -2
- package/dist/components/email-header.d.ts +2 -2
- package/dist/components/email-layout.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/templates/invitation.d.ts +2 -2
- package/dist/templates/invitation.js +3 -4
- package/dist/templates/password-reset.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/email-footer.d.ts
|
|
4
4
|
interface EmailFooterProps {
|
|
@@ -6,6 +6,6 @@ interface EmailFooterProps {
|
|
|
6
6
|
}
|
|
7
7
|
declare function EmailFooter({
|
|
8
8
|
securityText
|
|
9
|
-
}: EmailFooterProps):
|
|
9
|
+
}: EmailFooterProps): react_jsx_runtime0.JSX.Element;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { EmailFooter };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime1 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/email-header.d.ts
|
|
4
|
-
declare function EmailHeader():
|
|
4
|
+
declare function EmailHeader(): react_jsx_runtime1.JSX.Element;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { EmailHeader };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime3 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/email-layout.d.ts
|
|
5
5
|
interface EmailLayoutProps {
|
|
@@ -11,6 +11,6 @@ declare function EmailLayout({
|
|
|
11
11
|
previewText,
|
|
12
12
|
securityText,
|
|
13
13
|
children
|
|
14
|
-
}: EmailLayoutProps):
|
|
14
|
+
}: EmailLayoutProps): react_jsx_runtime3.JSX.Element;
|
|
15
15
|
//#endregion
|
|
16
16
|
export { EmailLayout };
|
package/dist/index.js
CHANGED
|
@@ -20,7 +20,7 @@ function createEmailService(options) {
|
|
|
20
20
|
from,
|
|
21
21
|
replyTo,
|
|
22
22
|
to: data.to,
|
|
23
|
-
subject: `${data.inviterName} invited you to
|
|
23
|
+
subject: `${data.inviterName} invited you to Inkeep`,
|
|
24
24
|
react: createElement(InvitationEmail, { data })
|
|
25
25
|
});
|
|
26
26
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { InvitationEmailData } from "../types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/templates/invitation.d.ts
|
|
5
5
|
interface InvitationEmailProps {
|
|
@@ -7,6 +7,6 @@ interface InvitationEmailProps {
|
|
|
7
7
|
}
|
|
8
8
|
declare function InvitationEmail({
|
|
9
9
|
data
|
|
10
|
-
}: InvitationEmailProps):
|
|
10
|
+
}: InvitationEmailProps): react_jsx_runtime0.JSX.Element;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { InvitationEmail };
|
|
@@ -21,17 +21,16 @@ function getInstructions(authMethod) {
|
|
|
21
21
|
function InvitationEmail({ data }) {
|
|
22
22
|
const { inviterName, organizationName, role, invitationUrl, authMethod, expiresInDays = 7 } = data;
|
|
23
23
|
return /* @__PURE__ */ jsxs(EmailLayout, {
|
|
24
|
-
previewText: `Accept your invitation to
|
|
24
|
+
previewText: `Accept your invitation to the ${organizationName} organization on Inkeep as ${role}.`,
|
|
25
25
|
securityText: "If you didn't expect this invitation, you can safely ignore this email.",
|
|
26
26
|
children: [
|
|
27
27
|
/* @__PURE__ */ jsxs(Section, { children: [/* @__PURE__ */ jsxs(Text, {
|
|
28
28
|
className: "text-email-text text-[16px] leading-[24px] mt-0",
|
|
29
29
|
children: [
|
|
30
30
|
inviterName,
|
|
31
|
-
" invited you to
|
|
31
|
+
" invited you to the ",
|
|
32
32
|
/* @__PURE__ */ jsx("strong", { children: organizationName }),
|
|
33
|
-
" as",
|
|
34
|
-
" ",
|
|
33
|
+
" organization on Inkeep as ",
|
|
35
34
|
/* @__PURE__ */ jsx("strong", { children: role }),
|
|
36
35
|
"."
|
|
37
36
|
]
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PasswordResetEmailData } from "../types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime4 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/templates/password-reset.d.ts
|
|
5
5
|
interface PasswordResetEmailProps {
|
|
@@ -7,6 +7,6 @@ interface PasswordResetEmailProps {
|
|
|
7
7
|
}
|
|
8
8
|
declare function PasswordResetEmail({
|
|
9
9
|
data
|
|
10
|
-
}: PasswordResetEmailProps):
|
|
10
|
+
}: PasswordResetEmailProps): react_jsx_runtime4.JSX.Element;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { PasswordResetEmail };
|