@inkeep/agents-email 0.58.2 → 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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime2 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/email-button.d.ts
|
|
5
5
|
interface EmailButtonProps {
|
|
@@ -9,6 +9,6 @@ interface EmailButtonProps {
|
|
|
9
9
|
declare function EmailButton({
|
|
10
10
|
href,
|
|
11
11
|
children
|
|
12
|
-
}: EmailButtonProps):
|
|
12
|
+
}: EmailButtonProps): react_jsx_runtime2.JSX.Element;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { EmailButton };
|
|
@@ -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
|
]
|