@vrplatform/email 1.0.2-stage.43289315799 → 1.0.2-stage.43320808884

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.
@@ -0,0 +1,8 @@
1
+ import type { EmailBaseProps } from '../types';
2
+ export type SecondFactorAnnouncementEmailTemplateProps = {
3
+ mode: EmailBaseProps['mode'];
4
+ user: EmailBaseProps['user'];
5
+ deadline: string;
6
+ href: string;
7
+ };
8
+ export declare const SecondFactorAnnouncementEmailTemplate: ({ mode, user, deadline, href, }: SecondFactorAnnouncementEmailTemplateProps) => import("react").JSX.Element;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SecondFactorAnnouncementEmailTemplate = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const heading_1 = require("@react-email/heading");
6
+ const text_1 = require("@react-email/text");
7
+ const Button_1 = require("../components/Button");
8
+ const EmailContainer_1 = require("../components/EmailContainer");
9
+ const theme_1 = require("../theme");
10
+ // Announces required two-step verification to every user with the deadline of
11
+ // their group (PRO-20654).
12
+ const SecondFactorAnnouncementEmailTemplate = ({ mode, user, deadline, href, }) => ((0, jsx_runtime_1.jsxs)(EmailContainer_1.EmailContainer, { title: "Turn on two-step verification", shortDescription: `Turn on two-step verification by ${deadline}.`, tenant: { logo: undefined }, mode: mode, children: [(0, jsx_runtime_1.jsxs)(heading_1.Heading, { style: { fontSize: 28, fontWeight: 600, marginBottom: '50px' }, children: ["Turn on two-step verification by ", deadline] }), (0, jsx_runtime_1.jsx)(text_1.Text, { children: user.firstName ? `Hi ${user.firstName},` : 'Hi there,' }), (0, jsx_runtime_1.jsxs)(text_1.Text, { children: ["VRTrust now requires a second step at sign-in: a code from an authenticator app, or a backup code. You can keep signing in without it until 4 pm Pacific time on ", (0, jsx_runtime_1.jsx)("b", { children: deadline }), ". After that, VRTrust shows only the setup screen until two-step verification is on."] }), (0, jsx_runtime_1.jsx)(text_1.Text, { children: "Phishing messages written with AI tools are getting harder to spot, and a stolen password is enough to take over an account. VRTrust holds payout bank details for owners and vendors, so we protect every account the same way." }), (0, jsx_runtime_1.jsx)(text_1.Text, { children: "Setup takes about 2 minutes. The guide has a screenshot of each step." }), (0, jsx_runtime_1.jsx)(Button_1.Button, { href: href, mode: mode, label: "Set up two-step verification", themeColors: theme_1.THEME_COLORS.vrplatform }), (0, jsx_runtime_1.jsx)(text_1.Text, { children: "If you lose your phone and your backup codes, a Team Admin of your team can reset two-step verification for you, or you can write to help@vrplatform.app." })] }));
13
+ exports.SecondFactorAnnouncementEmailTemplate = SecondFactorAnnouncementEmailTemplate;
14
+ //# sourceMappingURL=SecondFactorAnnouncementEmailTemplate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SecondFactorAnnouncementEmailTemplate.js","sourceRoot":"src/","sources":["templates/SecondFactorAnnouncementEmailTemplate.tsx"],"names":[],"mappings":";;;;AAAA,kDAA+C;AAC/C,4CAAyC;AACzC,iDAA8C;AAC9C,iEAA8D;AAC9D,oCAAwC;AAYxC,8EAA8E;AAC9E,2BAA2B;AACpB,MAAM,qCAAqC,GAAG,CAAC,EACpD,IAAI,EACJ,IAAI,EACJ,QAAQ,EACR,IAAI,GACuC,EAAE,EAAE,CAAC,CAChD,wBAAC,+BAAc,IACb,KAAK,EAAC,+BAA+B,EACrC,gBAAgB,EAAE,oCAAoC,QAAQ,GAAG,EACjE,MAAM,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAC3B,IAAI,EAAE,IAAI,aAEV,wBAAC,iBAAO,IAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,UAAU,EAAE,GAAG,EAAE,YAAY,EAAE,MAAM,EAAE,kDACnC,QAAQ,IAClC,EACV,uBAAC,WAAI,cAAE,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,SAAS,GAAG,CAAC,CAAC,CAAC,WAAW,GAAQ,EACrE,wBAAC,WAAI,oLAGwB,wCAAI,QAAQ,GAAK,4FAEvC,EACP,uBAAC,WAAI,mPAKE,EACP,uBAAC,WAAI,wFAEE,EACP,uBAAC,eAAM,IACL,IAAI,EAAE,IAAI,EACV,IAAI,EAAE,IAAI,EACV,KAAK,EAAC,8BAA8B,EACpC,WAAW,EAAE,oBAAY,CAAC,UAAW,GACrC,EACF,uBAAC,WAAI,4KAIE,IACQ,CAClB,CAAC;AA3CW,QAAA,qCAAqC,GAArC,qCAAqC,CA2ChD","sourcesContent":["import { Heading } from '@react-email/heading';\nimport { Text } from '@react-email/text';\nimport { Button } from '../components/Button';\nimport { EmailContainer } from '../components/EmailContainer';\nimport { THEME_COLORS } from '../theme';\nimport type { EmailBaseProps } from '../types';\n\nexport type SecondFactorAnnouncementEmailTemplateProps = {\n mode: EmailBaseProps['mode'];\n user: EmailBaseProps['user'];\n // The last day the reader can use VRTrust without two-step verification,\n // formatted for reading, such as \"November 24, 2026\".\n deadline: string;\n href: string;\n};\n\n// Announces required two-step verification to every user with the deadline of\n// their group (PRO-20654).\nexport const SecondFactorAnnouncementEmailTemplate = ({\n mode,\n user,\n deadline,\n href,\n}: SecondFactorAnnouncementEmailTemplateProps) => (\n <EmailContainer\n title=\"Turn on two-step verification\"\n shortDescription={`Turn on two-step verification by ${deadline}.`}\n tenant={{ logo: undefined }}\n mode={mode}\n >\n <Heading style={{ fontSize: 28, fontWeight: 600, marginBottom: '50px' }}>\n Turn on two-step verification by {deadline}\n </Heading>\n <Text>{user.firstName ? `Hi ${user.firstName},` : 'Hi there,'}</Text>\n <Text>\n VRTrust now requires a second step at sign-in: a code from an\n authenticator app, or a backup code. You can keep signing in without it\n until 4 pm Pacific time on <b>{deadline}</b>. After that, VRTrust shows\n only the setup screen until two-step verification is on.\n </Text>\n <Text>\n Phishing messages written with AI tools are getting harder to spot, and a\n stolen password is enough to take over an account. VRTrust holds payout\n bank details for owners and vendors, so we protect every account the same\n way.\n </Text>\n <Text>\n Setup takes about 2 minutes. The guide has a screenshot of each step.\n </Text>\n <Button\n href={href}\n mode={mode}\n label=\"Set up two-step verification\"\n themeColors={THEME_COLORS.vrplatform!}\n />\n <Text>\n If you lose your phone and your backup codes, a Team Admin of your team\n can reset two-step verification for you, or you can write to\n help@vrplatform.app.\n </Text>\n </EmailContainer>\n);\n"]}
@@ -0,0 +1,10 @@
1
+ import type { EmailBaseProps } from '../types';
2
+ export type TeamInviteApprovalEmailTemplateProps = {
3
+ mode: EmailBaseProps['mode'];
4
+ tenant: EmailBaseProps['tenant'];
5
+ invitedEmail: string;
6
+ invitedBy: string | null;
7
+ roles: string;
8
+ href: string;
9
+ };
10
+ export declare const TeamInviteApprovalEmailTemplate: ({ mode, tenant, invitedEmail, invitedBy, roles, href, }: TeamInviteApprovalEmailTemplateProps) => import("react").JSX.Element;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TeamInviteApprovalEmailTemplate = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const heading_1 = require("@react-email/heading");
6
+ const text_1 = require("@react-email/text");
7
+ const Button_1 = require("../components/Button");
8
+ const EmailContainer_1 = require("../components/EmailContainer");
9
+ const theme_1 = require("../theme");
10
+ const TeamInviteApprovalEmailTemplate = ({ mode, tenant, invitedEmail, invitedBy, roles, href, }) => ((0, jsx_runtime_1.jsxs)(EmailContainer_1.EmailContainer, { title: `${invitedEmail} waits for your approval`, shortDescription: `An invite to ${invitedEmail} on ${tenant.name} needs a second Team Admin.`, tenant: tenant, mode: mode, children: [(0, jsx_runtime_1.jsx)(heading_1.Heading, { style: { fontSize: 28, fontWeight: 600, marginBottom: '50px' }, children: "An invite waits for your approval" }), (0, jsx_runtime_1.jsxs)(text_1.Text, { children: [invitedBy ?? 'An API key', " invited ", (0, jsx_runtime_1.jsx)("b", { children: invitedEmail }), " to ", tenant.name, ' ', "as ", (0, jsx_runtime_1.jsx)("b", { children: roles }), ". The address is outside the email domains of your team and your accounting partner, so another Team Admin has to approve the invite before it is sent."] }), (0, jsx_runtime_1.jsx)(text_1.Text, { children: "If you do not know this person, reject the invite and check who invited them." }), (0, jsx_runtime_1.jsx)(Button_1.Button, { href: href, mode: mode, label: "Review the invite", themeColors: theme_1.THEME_COLORS.vrplatform })] }));
11
+ exports.TeamInviteApprovalEmailTemplate = TeamInviteApprovalEmailTemplate;
12
+ //# sourceMappingURL=TeamInviteApprovalEmailTemplate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TeamInviteApprovalEmailTemplate.js","sourceRoot":"src/","sources":["templates/TeamInviteApprovalEmailTemplate.tsx"],"names":[],"mappings":";;;;AAAA,kDAA+C;AAC/C,4CAAyC;AACzC,iDAA8C;AAC9C,iEAA8D;AAC9D,oCAAwC;AAYjC,MAAM,+BAA+B,GAAG,CAAC,EAC9C,IAAI,EACJ,MAAM,EACN,YAAY,EACZ,SAAS,EACT,KAAK,EACL,IAAI,GACiC,EAAE,EAAE,CAAC,CAC1C,wBAAC,+BAAc,IACb,KAAK,EAAE,GAAG,YAAY,0BAA0B,EAChD,gBAAgB,EAAE,gBAAgB,YAAY,OAAO,MAAM,CAAC,IAAI,6BAA6B,EAC7F,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,IAAI,aAEV,uBAAC,iBAAO,IAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,UAAU,EAAE,GAAG,EAAE,YAAY,EAAE,MAAM,EAAE,kDAE7D,EACV,wBAAC,WAAI,eACF,SAAS,IAAI,YAAY,eAAU,wCAAI,YAAY,GAAK,UAAK,MAAM,CAAC,IAAI,EAAE,GAAG,SAC3E,wCAAI,KAAK,GAAK,+JAGZ,EACP,uBAAC,WAAI,gGAGE,EACP,uBAAC,eAAM,IACL,IAAI,EAAE,IAAI,EACV,IAAI,EAAE,IAAI,EACV,KAAK,EAAC,mBAAmB,EACzB,WAAW,EAAE,oBAAY,CAAC,UAAW,GACrC,IACa,CAClB,CAAC;AAlCW,QAAA,+BAA+B,GAA/B,+BAA+B,CAkC1C","sourcesContent":["import { Heading } from '@react-email/heading';\nimport { Text } from '@react-email/text';\nimport { Button } from '../components/Button';\nimport { EmailContainer } from '../components/EmailContainer';\nimport { THEME_COLORS } from '../theme';\nimport type { EmailBaseProps } from '../types';\n\nexport type TeamInviteApprovalEmailTemplateProps = {\n mode: EmailBaseProps['mode'];\n tenant: EmailBaseProps['tenant'];\n invitedEmail: string;\n invitedBy: string | null;\n roles: string;\n href: string;\n};\n\nexport const TeamInviteApprovalEmailTemplate = ({\n mode,\n tenant,\n invitedEmail,\n invitedBy,\n roles,\n href,\n}: TeamInviteApprovalEmailTemplateProps) => (\n <EmailContainer\n title={`${invitedEmail} waits for your approval`}\n shortDescription={`An invite to ${invitedEmail} on ${tenant.name} needs a second Team Admin.`}\n tenant={tenant}\n mode={mode}\n >\n <Heading style={{ fontSize: 28, fontWeight: 600, marginBottom: '50px' }}>\n An invite waits for your approval\n </Heading>\n <Text>\n {invitedBy ?? 'An API key'} invited <b>{invitedEmail}</b> to {tenant.name}{' '}\n as <b>{roles}</b>. The address is outside the email domains of your team\n and your accounting partner, so another Team Admin has to approve the\n invite before it is sent.\n </Text>\n <Text>\n If you do not know this person, reject the invite and check who invited\n them.\n </Text>\n <Button\n href={href}\n mode={mode}\n label=\"Review the invite\"\n themeColors={THEME_COLORS.vrplatform!}\n />\n </EmailContainer>\n);\n"]}
@@ -1,5 +1,7 @@
1
+ export * from './SecondFactorAnnouncementEmailTemplate';
1
2
  export * from './SecondFactorResetEmailTemplate';
2
3
  export * from './TeamApiTokenCreatedEmailTemplate';
4
+ export * from './TeamInviteApprovalEmailTemplate';
3
5
  export * from './TeamRoleGrantedEmailTemplate';
4
6
  export * from './TenantSuspensionEmailTemplate';
5
7
  export * from './TenantDeletionEmailTemplate';
@@ -15,8 +15,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  // Teams
18
+ __exportStar(require("./SecondFactorAnnouncementEmailTemplate"), exports);
18
19
  __exportStar(require("./SecondFactorResetEmailTemplate"), exports);
19
20
  __exportStar(require("./TeamApiTokenCreatedEmailTemplate"), exports);
21
+ __exportStar(require("./TeamInviteApprovalEmailTemplate"), exports);
20
22
  __exportStar(require("./TeamRoleGrantedEmailTemplate"), exports);
21
23
  __exportStar(require("./TenantSuspensionEmailTemplate"), exports);
22
24
  __exportStar(require("./TenantDeletionEmailTemplate"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"src/","sources":["templates/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,QAAQ;AACR,mEAAiD;AACjD,qEAAmD;AACnD,iEAA+C;AAC/C,kEAAgD;AAChD,gEAA8C;AAE9C,mBAAmB;AACnB,gEAA8C;AAE9C,gBAAgB;AAChB,oEAAkD;AAClD,6EAA2D;AAC3D,oEAAkD;AAElD,QAAQ;AACR,yDAAuC;AAEvC,cAAc;AACd,6DAA2C;AAC3C,0DAAwC","sourcesContent":["// Teams\nexport * from './SecondFactorResetEmailTemplate';\nexport * from './TeamApiTokenCreatedEmailTemplate';\nexport * from './TeamRoleGrantedEmailTemplate';\nexport * from './TenantSuspensionEmailTemplate';\nexport * from './TenantDeletionEmailTemplate';\n\n// Owner Statements\nexport * from './OwnerStatementEmailTemplate';\n\n// Payment setup\nexport * from './BankAccountChangedEmailTemplate';\nexport * from './BankAccountChangedTeamAdminEmailTemplate';\nexport * from './BankDetailsRequestEmailTemplate';\n\n// 1099s\nexport * from './Tax1099EmailTemplate';\n\n// Invitations\nexport * from './InviteOwnerEmailTemplate';\nexport * from './InvitePmEmailTemplate';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"src/","sources":["templates/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,QAAQ;AACR,0EAAwD;AACxD,mEAAiD;AACjD,qEAAmD;AACnD,oEAAkD;AAClD,iEAA+C;AAC/C,kEAAgD;AAChD,gEAA8C;AAE9C,mBAAmB;AACnB,gEAA8C;AAE9C,gBAAgB;AAChB,oEAAkD;AAClD,6EAA2D;AAC3D,oEAAkD;AAElD,QAAQ;AACR,yDAAuC;AAEvC,cAAc;AACd,6DAA2C;AAC3C,0DAAwC","sourcesContent":["// Teams\nexport * from './SecondFactorAnnouncementEmailTemplate';\nexport * from './SecondFactorResetEmailTemplate';\nexport * from './TeamApiTokenCreatedEmailTemplate';\nexport * from './TeamInviteApprovalEmailTemplate';\nexport * from './TeamRoleGrantedEmailTemplate';\nexport * from './TenantSuspensionEmailTemplate';\nexport * from './TenantDeletionEmailTemplate';\n\n// Owner Statements\nexport * from './OwnerStatementEmailTemplate';\n\n// Payment setup\nexport * from './BankAccountChangedEmailTemplate';\nexport * from './BankAccountChangedTeamAdminEmailTemplate';\nexport * from './BankDetailsRequestEmailTemplate';\n\n// 1099s\nexport * from './Tax1099EmailTemplate';\n\n// Invitations\nexport * from './InviteOwnerEmailTemplate';\nexport * from './InvitePmEmailTemplate';\n"]}
@@ -0,0 +1,8 @@
1
+ import type { EmailBaseProps } from '../types';
2
+ export type SecondFactorAnnouncementEmailTemplateProps = {
3
+ mode: EmailBaseProps['mode'];
4
+ user: EmailBaseProps['user'];
5
+ deadline: string;
6
+ href: string;
7
+ };
8
+ export declare const SecondFactorAnnouncementEmailTemplate: ({ mode, user, deadline, href, }: SecondFactorAnnouncementEmailTemplateProps) => import("react").JSX.Element;
@@ -0,0 +1,10 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Heading } from '@react-email/heading';
3
+ import { Text } from '@react-email/text';
4
+ import { Button } from '../components/Button';
5
+ import { EmailContainer } from '../components/EmailContainer';
6
+ import { THEME_COLORS } from '../theme';
7
+ // Announces required two-step verification to every user with the deadline of
8
+ // their group (PRO-20654).
9
+ export const SecondFactorAnnouncementEmailTemplate = ({ mode, user, deadline, href, }) => (_jsxs(EmailContainer, { title: "Turn on two-step verification", shortDescription: `Turn on two-step verification by ${deadline}.`, tenant: { logo: undefined }, mode: mode, children: [_jsxs(Heading, { style: { fontSize: 28, fontWeight: 600, marginBottom: '50px' }, children: ["Turn on two-step verification by ", deadline] }), _jsx(Text, { children: user.firstName ? `Hi ${user.firstName},` : 'Hi there,' }), _jsxs(Text, { children: ["VRTrust now requires a second step at sign-in: a code from an authenticator app, or a backup code. You can keep signing in without it until 4 pm Pacific time on ", _jsx("b", { children: deadline }), ". After that, VRTrust shows only the setup screen until two-step verification is on."] }), _jsx(Text, { children: "Phishing messages written with AI tools are getting harder to spot, and a stolen password is enough to take over an account. VRTrust holds payout bank details for owners and vendors, so we protect every account the same way." }), _jsx(Text, { children: "Setup takes about 2 minutes. The guide has a screenshot of each step." }), _jsx(Button, { href: href, mode: mode, label: "Set up two-step verification", themeColors: THEME_COLORS.vrplatform }), _jsx(Text, { children: "If you lose your phone and your backup codes, a Team Admin of your team can reset two-step verification for you, or you can write to help@vrplatform.app." })] }));
10
+ //# sourceMappingURL=SecondFactorAnnouncementEmailTemplate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SecondFactorAnnouncementEmailTemplate.js","sourceRoot":"src/","sources":["templates/SecondFactorAnnouncementEmailTemplate.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAYxC,8EAA8E;AAC9E,2BAA2B;AAC3B,MAAM,CAAC,MAAM,qCAAqC,GAAG,CAAC,EACpD,IAAI,EACJ,IAAI,EACJ,QAAQ,EACR,IAAI,GACuC,EAAE,EAAE,CAAC,CAChD,MAAC,cAAc,IACb,KAAK,EAAC,+BAA+B,EACrC,gBAAgB,EAAE,oCAAoC,QAAQ,GAAG,EACjE,MAAM,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAC3B,IAAI,EAAE,IAAI,aAEV,MAAC,OAAO,IAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,UAAU,EAAE,GAAG,EAAE,YAAY,EAAE,MAAM,EAAE,kDACnC,QAAQ,IAClC,EACV,KAAC,IAAI,cAAE,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,SAAS,GAAG,CAAC,CAAC,CAAC,WAAW,GAAQ,EACrE,MAAC,IAAI,oLAGwB,sBAAI,QAAQ,GAAK,4FAEvC,EACP,KAAC,IAAI,mPAKE,EACP,KAAC,IAAI,wFAEE,EACP,KAAC,MAAM,IACL,IAAI,EAAE,IAAI,EACV,IAAI,EAAE,IAAI,EACV,KAAK,EAAC,8BAA8B,EACpC,WAAW,EAAE,YAAY,CAAC,UAAW,GACrC,EACF,KAAC,IAAI,4KAIE,IACQ,CAClB,CAAC","sourcesContent":["import { Heading } from '@react-email/heading';\nimport { Text } from '@react-email/text';\nimport { Button } from '../components/Button';\nimport { EmailContainer } from '../components/EmailContainer';\nimport { THEME_COLORS } from '../theme';\nimport type { EmailBaseProps } from '../types';\n\nexport type SecondFactorAnnouncementEmailTemplateProps = {\n mode: EmailBaseProps['mode'];\n user: EmailBaseProps['user'];\n // The last day the reader can use VRTrust without two-step verification,\n // formatted for reading, such as \"November 24, 2026\".\n deadline: string;\n href: string;\n};\n\n// Announces required two-step verification to every user with the deadline of\n// their group (PRO-20654).\nexport const SecondFactorAnnouncementEmailTemplate = ({\n mode,\n user,\n deadline,\n href,\n}: SecondFactorAnnouncementEmailTemplateProps) => (\n <EmailContainer\n title=\"Turn on two-step verification\"\n shortDescription={`Turn on two-step verification by ${deadline}.`}\n tenant={{ logo: undefined }}\n mode={mode}\n >\n <Heading style={{ fontSize: 28, fontWeight: 600, marginBottom: '50px' }}>\n Turn on two-step verification by {deadline}\n </Heading>\n <Text>{user.firstName ? `Hi ${user.firstName},` : 'Hi there,'}</Text>\n <Text>\n VRTrust now requires a second step at sign-in: a code from an\n authenticator app, or a backup code. You can keep signing in without it\n until 4 pm Pacific time on <b>{deadline}</b>. After that, VRTrust shows\n only the setup screen until two-step verification is on.\n </Text>\n <Text>\n Phishing messages written with AI tools are getting harder to spot, and a\n stolen password is enough to take over an account. VRTrust holds payout\n bank details for owners and vendors, so we protect every account the same\n way.\n </Text>\n <Text>\n Setup takes about 2 minutes. The guide has a screenshot of each step.\n </Text>\n <Button\n href={href}\n mode={mode}\n label=\"Set up two-step verification\"\n themeColors={THEME_COLORS.vrplatform!}\n />\n <Text>\n If you lose your phone and your backup codes, a Team Admin of your team\n can reset two-step verification for you, or you can write to\n help@vrplatform.app.\n </Text>\n </EmailContainer>\n);\n"]}
@@ -0,0 +1,10 @@
1
+ import type { EmailBaseProps } from '../types';
2
+ export type TeamInviteApprovalEmailTemplateProps = {
3
+ mode: EmailBaseProps['mode'];
4
+ tenant: EmailBaseProps['tenant'];
5
+ invitedEmail: string;
6
+ invitedBy: string | null;
7
+ roles: string;
8
+ href: string;
9
+ };
10
+ export declare const TeamInviteApprovalEmailTemplate: ({ mode, tenant, invitedEmail, invitedBy, roles, href, }: TeamInviteApprovalEmailTemplateProps) => import("react").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Heading } from '@react-email/heading';
3
+ import { Text } from '@react-email/text';
4
+ import { Button } from '../components/Button';
5
+ import { EmailContainer } from '../components/EmailContainer';
6
+ import { THEME_COLORS } from '../theme';
7
+ export const TeamInviteApprovalEmailTemplate = ({ mode, tenant, invitedEmail, invitedBy, roles, href, }) => (_jsxs(EmailContainer, { title: `${invitedEmail} waits for your approval`, shortDescription: `An invite to ${invitedEmail} on ${tenant.name} needs a second Team Admin.`, tenant: tenant, mode: mode, children: [_jsx(Heading, { style: { fontSize: 28, fontWeight: 600, marginBottom: '50px' }, children: "An invite waits for your approval" }), _jsxs(Text, { children: [invitedBy ?? 'An API key', " invited ", _jsx("b", { children: invitedEmail }), " to ", tenant.name, ' ', "as ", _jsx("b", { children: roles }), ". The address is outside the email domains of your team and your accounting partner, so another Team Admin has to approve the invite before it is sent."] }), _jsx(Text, { children: "If you do not know this person, reject the invite and check who invited them." }), _jsx(Button, { href: href, mode: mode, label: "Review the invite", themeColors: THEME_COLORS.vrplatform })] }));
8
+ //# sourceMappingURL=TeamInviteApprovalEmailTemplate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TeamInviteApprovalEmailTemplate.js","sourceRoot":"src/","sources":["templates/TeamInviteApprovalEmailTemplate.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAYxC,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,EAC9C,IAAI,EACJ,MAAM,EACN,YAAY,EACZ,SAAS,EACT,KAAK,EACL,IAAI,GACiC,EAAE,EAAE,CAAC,CAC1C,MAAC,cAAc,IACb,KAAK,EAAE,GAAG,YAAY,0BAA0B,EAChD,gBAAgB,EAAE,gBAAgB,YAAY,OAAO,MAAM,CAAC,IAAI,6BAA6B,EAC7F,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,IAAI,aAEV,KAAC,OAAO,IAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,UAAU,EAAE,GAAG,EAAE,YAAY,EAAE,MAAM,EAAE,kDAE7D,EACV,MAAC,IAAI,eACF,SAAS,IAAI,YAAY,eAAU,sBAAI,YAAY,GAAK,UAAK,MAAM,CAAC,IAAI,EAAE,GAAG,SAC3E,sBAAI,KAAK,GAAK,+JAGZ,EACP,KAAC,IAAI,gGAGE,EACP,KAAC,MAAM,IACL,IAAI,EAAE,IAAI,EACV,IAAI,EAAE,IAAI,EACV,KAAK,EAAC,mBAAmB,EACzB,WAAW,EAAE,YAAY,CAAC,UAAW,GACrC,IACa,CAClB,CAAC","sourcesContent":["import { Heading } from '@react-email/heading';\nimport { Text } from '@react-email/text';\nimport { Button } from '../components/Button';\nimport { EmailContainer } from '../components/EmailContainer';\nimport { THEME_COLORS } from '../theme';\nimport type { EmailBaseProps } from '../types';\n\nexport type TeamInviteApprovalEmailTemplateProps = {\n mode: EmailBaseProps['mode'];\n tenant: EmailBaseProps['tenant'];\n invitedEmail: string;\n invitedBy: string | null;\n roles: string;\n href: string;\n};\n\nexport const TeamInviteApprovalEmailTemplate = ({\n mode,\n tenant,\n invitedEmail,\n invitedBy,\n roles,\n href,\n}: TeamInviteApprovalEmailTemplateProps) => (\n <EmailContainer\n title={`${invitedEmail} waits for your approval`}\n shortDescription={`An invite to ${invitedEmail} on ${tenant.name} needs a second Team Admin.`}\n tenant={tenant}\n mode={mode}\n >\n <Heading style={{ fontSize: 28, fontWeight: 600, marginBottom: '50px' }}>\n An invite waits for your approval\n </Heading>\n <Text>\n {invitedBy ?? 'An API key'} invited <b>{invitedEmail}</b> to {tenant.name}{' '}\n as <b>{roles}</b>. The address is outside the email domains of your team\n and your accounting partner, so another Team Admin has to approve the\n invite before it is sent.\n </Text>\n <Text>\n If you do not know this person, reject the invite and check who invited\n them.\n </Text>\n <Button\n href={href}\n mode={mode}\n label=\"Review the invite\"\n themeColors={THEME_COLORS.vrplatform!}\n />\n </EmailContainer>\n);\n"]}
@@ -1,5 +1,7 @@
1
+ export * from './SecondFactorAnnouncementEmailTemplate';
1
2
  export * from './SecondFactorResetEmailTemplate';
2
3
  export * from './TeamApiTokenCreatedEmailTemplate';
4
+ export * from './TeamInviteApprovalEmailTemplate';
3
5
  export * from './TeamRoleGrantedEmailTemplate';
4
6
  export * from './TenantSuspensionEmailTemplate';
5
7
  export * from './TenantDeletionEmailTemplate';
@@ -1,6 +1,8 @@
1
1
  // Teams
2
+ export * from './SecondFactorAnnouncementEmailTemplate';
2
3
  export * from './SecondFactorResetEmailTemplate';
3
4
  export * from './TeamApiTokenCreatedEmailTemplate';
5
+ export * from './TeamInviteApprovalEmailTemplate';
4
6
  export * from './TeamRoleGrantedEmailTemplate';
5
7
  export * from './TenantSuspensionEmailTemplate';
6
8
  export * from './TenantDeletionEmailTemplate';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"src/","sources":["templates/index.ts"],"names":[],"mappings":"AAAA,QAAQ;AACR,cAAc,kCAAkC,CAAC;AACjD,cAAc,oCAAoC,CAAC;AACnD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iCAAiC,CAAC;AAChD,cAAc,+BAA+B,CAAC;AAE9C,mBAAmB;AACnB,cAAc,+BAA+B,CAAC;AAE9C,gBAAgB;AAChB,cAAc,mCAAmC,CAAC;AAClD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,mCAAmC,CAAC;AAElD,QAAQ;AACR,cAAc,wBAAwB,CAAC;AAEvC,cAAc;AACd,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC","sourcesContent":["// Teams\nexport * from './SecondFactorResetEmailTemplate';\nexport * from './TeamApiTokenCreatedEmailTemplate';\nexport * from './TeamRoleGrantedEmailTemplate';\nexport * from './TenantSuspensionEmailTemplate';\nexport * from './TenantDeletionEmailTemplate';\n\n// Owner Statements\nexport * from './OwnerStatementEmailTemplate';\n\n// Payment setup\nexport * from './BankAccountChangedEmailTemplate';\nexport * from './BankAccountChangedTeamAdminEmailTemplate';\nexport * from './BankDetailsRequestEmailTemplate';\n\n// 1099s\nexport * from './Tax1099EmailTemplate';\n\n// Invitations\nexport * from './InviteOwnerEmailTemplate';\nexport * from './InvitePmEmailTemplate';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"src/","sources":["templates/index.ts"],"names":[],"mappings":"AAAA,QAAQ;AACR,cAAc,yCAAyC,CAAC;AACxD,cAAc,kCAAkC,CAAC;AACjD,cAAc,oCAAoC,CAAC;AACnD,cAAc,mCAAmC,CAAC;AAClD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iCAAiC,CAAC;AAChD,cAAc,+BAA+B,CAAC;AAE9C,mBAAmB;AACnB,cAAc,+BAA+B,CAAC;AAE9C,gBAAgB;AAChB,cAAc,mCAAmC,CAAC;AAClD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,mCAAmC,CAAC;AAElD,QAAQ;AACR,cAAc,wBAAwB,CAAC;AAEvC,cAAc;AACd,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC","sourcesContent":["// Teams\nexport * from './SecondFactorAnnouncementEmailTemplate';\nexport * from './SecondFactorResetEmailTemplate';\nexport * from './TeamApiTokenCreatedEmailTemplate';\nexport * from './TeamInviteApprovalEmailTemplate';\nexport * from './TeamRoleGrantedEmailTemplate';\nexport * from './TenantSuspensionEmailTemplate';\nexport * from './TenantDeletionEmailTemplate';\n\n// Owner Statements\nexport * from './OwnerStatementEmailTemplate';\n\n// Payment setup\nexport * from './BankAccountChangedEmailTemplate';\nexport * from './BankAccountChangedTeamAdminEmailTemplate';\nexport * from './BankDetailsRequestEmailTemplate';\n\n// 1099s\nexport * from './Tax1099EmailTemplate';\n\n// Invitations\nexport * from './InviteOwnerEmailTemplate';\nexport * from './InvitePmEmailTemplate';\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vrplatform/email",
3
- "version": "1.0.2-stage.43289315799",
3
+ "version": "1.0.2-stage.43320808884",
4
4
  "description": "VRTrust transactional email templates and Postmark transport",
5
5
  "license": "ISC",
6
6
  "main": "build/main/index.js",
@@ -0,0 +1,62 @@
1
+ import { Heading } from '@react-email/heading';
2
+ import { Text } from '@react-email/text';
3
+ import { Button } from '../components/Button';
4
+ import { EmailContainer } from '../components/EmailContainer';
5
+ import { THEME_COLORS } from '../theme';
6
+ import type { EmailBaseProps } from '../types';
7
+
8
+ export type SecondFactorAnnouncementEmailTemplateProps = {
9
+ mode: EmailBaseProps['mode'];
10
+ user: EmailBaseProps['user'];
11
+ // The last day the reader can use VRTrust without two-step verification,
12
+ // formatted for reading, such as "November 24, 2026".
13
+ deadline: string;
14
+ href: string;
15
+ };
16
+
17
+ // Announces required two-step verification to every user with the deadline of
18
+ // their group (PRO-20654).
19
+ export const SecondFactorAnnouncementEmailTemplate = ({
20
+ mode,
21
+ user,
22
+ deadline,
23
+ href,
24
+ }: SecondFactorAnnouncementEmailTemplateProps) => (
25
+ <EmailContainer
26
+ title="Turn on two-step verification"
27
+ shortDescription={`Turn on two-step verification by ${deadline}.`}
28
+ tenant={{ logo: undefined }}
29
+ mode={mode}
30
+ >
31
+ <Heading style={{ fontSize: 28, fontWeight: 600, marginBottom: '50px' }}>
32
+ Turn on two-step verification by {deadline}
33
+ </Heading>
34
+ <Text>{user.firstName ? `Hi ${user.firstName},` : 'Hi there,'}</Text>
35
+ <Text>
36
+ VRTrust now requires a second step at sign-in: a code from an
37
+ authenticator app, or a backup code. You can keep signing in without it
38
+ until 4 pm Pacific time on <b>{deadline}</b>. After that, VRTrust shows
39
+ only the setup screen until two-step verification is on.
40
+ </Text>
41
+ <Text>
42
+ Phishing messages written with AI tools are getting harder to spot, and a
43
+ stolen password is enough to take over an account. VRTrust holds payout
44
+ bank details for owners and vendors, so we protect every account the same
45
+ way.
46
+ </Text>
47
+ <Text>
48
+ Setup takes about 2 minutes. The guide has a screenshot of each step.
49
+ </Text>
50
+ <Button
51
+ href={href}
52
+ mode={mode}
53
+ label="Set up two-step verification"
54
+ themeColors={THEME_COLORS.vrplatform!}
55
+ />
56
+ <Text>
57
+ If you lose your phone and your backup codes, a Team Admin of your team
58
+ can reset two-step verification for you, or you can write to
59
+ help@vrplatform.app.
60
+ </Text>
61
+ </EmailContainer>
62
+ );
@@ -0,0 +1,51 @@
1
+ import { Heading } from '@react-email/heading';
2
+ import { Text } from '@react-email/text';
3
+ import { Button } from '../components/Button';
4
+ import { EmailContainer } from '../components/EmailContainer';
5
+ import { THEME_COLORS } from '../theme';
6
+ import type { EmailBaseProps } from '../types';
7
+
8
+ export type TeamInviteApprovalEmailTemplateProps = {
9
+ mode: EmailBaseProps['mode'];
10
+ tenant: EmailBaseProps['tenant'];
11
+ invitedEmail: string;
12
+ invitedBy: string | null;
13
+ roles: string;
14
+ href: string;
15
+ };
16
+
17
+ export const TeamInviteApprovalEmailTemplate = ({
18
+ mode,
19
+ tenant,
20
+ invitedEmail,
21
+ invitedBy,
22
+ roles,
23
+ href,
24
+ }: TeamInviteApprovalEmailTemplateProps) => (
25
+ <EmailContainer
26
+ title={`${invitedEmail} waits for your approval`}
27
+ shortDescription={`An invite to ${invitedEmail} on ${tenant.name} needs a second Team Admin.`}
28
+ tenant={tenant}
29
+ mode={mode}
30
+ >
31
+ <Heading style={{ fontSize: 28, fontWeight: 600, marginBottom: '50px' }}>
32
+ An invite waits for your approval
33
+ </Heading>
34
+ <Text>
35
+ {invitedBy ?? 'An API key'} invited <b>{invitedEmail}</b> to {tenant.name}{' '}
36
+ as <b>{roles}</b>. The address is outside the email domains of your team
37
+ and your accounting partner, so another Team Admin has to approve the
38
+ invite before it is sent.
39
+ </Text>
40
+ <Text>
41
+ If you do not know this person, reject the invite and check who invited
42
+ them.
43
+ </Text>
44
+ <Button
45
+ href={href}
46
+ mode={mode}
47
+ label="Review the invite"
48
+ themeColors={THEME_COLORS.vrplatform!}
49
+ />
50
+ </EmailContainer>
51
+ );
@@ -1,6 +1,8 @@
1
1
  // Teams
2
+ export * from './SecondFactorAnnouncementEmailTemplate';
2
3
  export * from './SecondFactorResetEmailTemplate';
3
4
  export * from './TeamApiTokenCreatedEmailTemplate';
5
+ export * from './TeamInviteApprovalEmailTemplate';
4
6
  export * from './TeamRoleGrantedEmailTemplate';
5
7
  export * from './TenantSuspensionEmailTemplate';
6
8
  export * from './TenantDeletionEmailTemplate';