@vrplatform/email 1.0.2-stage.43453981523 → 1.0.2-stage.43472494785
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/build/main/templates/SecondFactorAnnouncementEmailTemplate.js +4 -2
- package/build/main/templates/SecondFactorAnnouncementEmailTemplate.js.map +1 -1
- package/build/main/templates/TeamInviteOutsideDomainEmailTemplate.d.ts +11 -0
- package/build/main/templates/TeamInviteOutsideDomainEmailTemplate.js +12 -0
- package/build/main/templates/TeamInviteOutsideDomainEmailTemplate.js.map +1 -0
- package/build/main/templates/index.d.ts +1 -1
- package/build/main/templates/index.js +1 -1
- package/build/main/templates/index.js.map +1 -1
- package/build/module/templates/SecondFactorAnnouncementEmailTemplate.js +4 -2
- package/build/module/templates/SecondFactorAnnouncementEmailTemplate.js.map +1 -1
- package/build/module/templates/TeamInviteOutsideDomainEmailTemplate.d.ts +11 -0
- package/build/module/templates/TeamInviteOutsideDomainEmailTemplate.js +8 -0
- package/build/module/templates/TeamInviteOutsideDomainEmailTemplate.js.map +1 -0
- package/build/module/templates/index.d.ts +1 -1
- package/build/module/templates/index.js +1 -1
- package/build/module/templates/index.js.map +1 -1
- package/package.json +1 -1
- package/src/templates/SecondFactorAnnouncementEmailTemplate.tsx +8 -5
- package/src/templates/{TeamInviteApprovalEmailTemplate.tsx → TeamInviteOutsideDomainEmailTemplate.tsx} +12 -11
- package/src/templates/index.ts +1 -1
- package/build/main/templates/TeamInviteApprovalEmailTemplate.d.ts +0 -10
- package/build/main/templates/TeamInviteApprovalEmailTemplate.js +0 -12
- package/build/main/templates/TeamInviteApprovalEmailTemplate.js.map +0 -1
- package/build/module/templates/TeamInviteApprovalEmailTemplate.d.ts +0 -10
- package/build/module/templates/TeamInviteApprovalEmailTemplate.js +0 -8
- package/build/module/templates/TeamInviteApprovalEmailTemplate.js.map +0 -1
|
@@ -13,10 +13,12 @@ const SecondFactorAnnouncementEmailTemplate = (props) => {
|
|
|
13
13
|
const { mode, user, deadline, href } = props;
|
|
14
14
|
const owner = props.audience === 'owner';
|
|
15
15
|
const product = owner ? props.tenant.name : 'VRTrust';
|
|
16
|
-
return ((0, jsx_runtime_1.jsxs)(EmailContainer_1.EmailContainer, { title: "Turn on two-step verification", shortDescription: `Turn on two-step verification by ${deadline}.`, tenant: owner ? props.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: [product, " now requires a second step at sign-in:
|
|
16
|
+
return ((0, jsx_runtime_1.jsxs)(EmailContainer_1.EmailContainer, { title: "Turn on two-step verification", shortDescription: `Turn on two-step verification by ${deadline}.`, tenant: owner ? props.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: [product, " now requires a second step at sign-in:", ' ', owner
|
|
17
|
+
? 'a code from an authenticator app, a backup code, or a code sent by text message.'
|
|
18
|
+
: '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, ", product, " shows only the setup screen until two-step verification is on."] }), (0, jsx_runtime_1.jsxs)(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.", ' ', owner
|
|
17
19
|
? 'Your account gives access to your statements and payout details, so every account is protected the same way.'
|
|
18
20
|
: '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: owner
|
|
19
|
-
? 'Setup takes about 2 minutes. Open your settings and add an authenticator app.'
|
|
21
|
+
? 'Setup takes about 2 minutes. Open your settings and add an authenticator app, or choose text messages if you do not use one.'
|
|
20
22
|
: '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: owner ? props.themeColors : theme_1.THEME_COLORS.vrplatform }), (0, jsx_runtime_1.jsx)(text_1.Text, { children: owner
|
|
21
23
|
? 'If you lose your phone and your backup codes, contact your property manager to reset two-step verification.'
|
|
22
24
|
: '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 support@vrplatform.app.' })] }));
|
|
@@ -1 +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;AAmBxC,0EAA0E;AAC1E,0EAA0E;AACnE,MAAM,qCAAqC,GAAG,CACnD,KAAiD,EACjD,EAAE;IACF,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,KAAK,CAAC;IAC7C,MAAM,KAAK,GAAG,KAAK,CAAC,QAAQ,KAAK,OAAO,CAAC;IACzC,MAAM,OAAO,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;IACtD,OAAO,CACL,wBAAC,+BAAc,IACb,KAAK,EAAC,+BAA+B,EACrC,gBAAgB,EAAE,oCAAoC,QAAQ,GAAG,EACjE,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,SAAS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BAAC,WAAI,cAAE,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,SAAS,GAAG,CAAC,CAAC,CAAC,WAAW,GAAQ,EACrE,wBAAC,WAAI,eACF,OAAO,6CAAyC,GAAG,EACnD,KAAK;wBACJ,CAAC,CAAC,kFAAkF;wBACpF,CAAC,CAAC,qDAAqD,EAAE,GAAG,mEACA,GAAG,EACjE,wCAAI,QAAQ,GAAK,oBAAe,OAAO,uEAElC,EACP,wBAAC,WAAI,+IAEkD,GAAG,EACvD,KAAK;wBACJ,CAAC,CAAC,8GAA8G;wBAChH,CAAC,CAAC,qGAAqG,IACpG,EACP,uBAAC,WAAI,cACF,KAAK;oBACJ,CAAC,CAAC,8HAA8H;oBAChI,CAAC,CAAC,uEAAuE,GACtE,EACP,uBAAC,eAAM,IACL,IAAI,EAAE,IAAI,EACV,IAAI,EAAE,IAAI,EACV,KAAK,EAAC,8BAA8B,EACpC,WAAW,EAAE,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,oBAAY,CAAC,UAAW,GACjE,EACF,uBAAC,WAAI,cACF,KAAK;oBACJ,CAAC,CAAC,6GAA6G;oBAC/G,CAAC,CAAC,8JAA8J,GAC7J,IACQ,CAClB,CAAC;AACJ,CAAC,CAAC;AAnDW,QAAA,qCAAqC,GAArC,qCAAqC,CAmDhD","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 // Formatted for reading, such as \"December 1, 2026\".\n deadline: string;\n href: string;\n} & (\n | { audience: 'member' }\n | {\n // Owners see the branding of their team's owner portal.\n audience: 'owner';\n tenant: EmailBaseProps['tenant'];\n themeColors: EmailBaseProps['themeColors'];\n }\n);\n\n// Announces required two-step verification to a user with the deadline of\n// their group (PRO-20654). Team members get VRTrust, owners their portal.\nexport const SecondFactorAnnouncementEmailTemplate = (\n props: SecondFactorAnnouncementEmailTemplateProps\n) => {\n const { mode, user, deadline, href } = props;\n const owner = props.audience === 'owner';\n const product = owner ? props.tenant.name : 'VRTrust';\n return (\n <EmailContainer\n title=\"Turn on two-step verification\"\n shortDescription={`Turn on two-step verification by ${deadline}.`}\n tenant={owner ? props.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 {product} now requires a second step at sign-in:{' '}\n {owner\n ? 'a code from an authenticator app, a backup code, or a code sent by text message.'\n : 'a code from an authenticator app, or a backup code.'}{' '}\n You can keep signing in without it until 4 pm Pacific time on{' '}\n <b>{deadline}</b>. After that, {product} shows only the setup screen\n until two-step verification is on.\n </Text>\n <Text>\n Phishing messages written with AI tools are getting harder to spot, and\n a stolen password is enough to take over an account.{' '}\n {owner\n ? 'Your account gives access to your statements and payout details, so every account is protected the same way.'\n : 'VRTrust holds payout bank details for owners and vendors, so we protect every account the same way.'}\n </Text>\n <Text>\n {owner\n ? 'Setup takes about 2 minutes. Open your settings and add an authenticator app, or choose text messages if you do not use one.'\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={owner ? props.themeColors : THEME_COLORS.vrplatform!}\n />\n <Text>\n {owner\n ? 'If you lose your phone and your backup codes, contact your property manager to reset two-step verification.'\n : '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 support@vrplatform.app.'}\n </Text>\n </EmailContainer>\n );\n};\n"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { EmailBaseProps } from '../types';
|
|
2
|
+
export type TeamInviteOutsideDomainEmailTemplateProps = {
|
|
3
|
+
mode: EmailBaseProps['mode'];
|
|
4
|
+
tenant: EmailBaseProps['tenant'];
|
|
5
|
+
invitedEmail: string;
|
|
6
|
+
invitedBy: string | null;
|
|
7
|
+
invitedAt: string;
|
|
8
|
+
roles: string;
|
|
9
|
+
href: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const TeamInviteOutsideDomainEmailTemplate: ({ mode, tenant, invitedEmail, invitedBy, invitedAt, roles, href, }: TeamInviteOutsideDomainEmailTemplateProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TeamInviteOutsideDomainEmailTemplate = 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 TeamInviteOutsideDomainEmailTemplate = ({ mode, tenant, invitedEmail, invitedBy, invitedAt, roles, href, }) => ((0, jsx_runtime_1.jsxs)(EmailContainer_1.EmailContainer, { title: `${invitedEmail} was invited to ${tenant.name}`, shortDescription: `${invitedEmail} was invited to ${tenant.name} with an outside email address.`, tenant: tenant, mode: mode, children: [(0, jsx_runtime_1.jsx)(heading_1.Heading, { style: { fontSize: 28, fontWeight: 600, marginBottom: '50px' }, children: "A new member was invited" }), (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 }), " on ", invitedAt, ". The address is outside the email domains of your team and your accounting partner, or it is a free-mail address."] }), (0, jsx_runtime_1.jsx)(text_1.Text, { children: "If you do not know this person, remove the member and check who invited them." }), (0, jsx_runtime_1.jsx)(Button_1.Button, { href: href, mode: mode, label: "Review team members", themeColors: theme_1.THEME_COLORS.vrplatform })] }));
|
|
11
|
+
exports.TeamInviteOutsideDomainEmailTemplate = TeamInviteOutsideDomainEmailTemplate;
|
|
12
|
+
//# sourceMappingURL=TeamInviteOutsideDomainEmailTemplate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TeamInviteOutsideDomainEmailTemplate.js","sourceRoot":"src/","sources":["templates/TeamInviteOutsideDomainEmailTemplate.tsx"],"names":[],"mappings":";;;;AAAA,kDAA+C;AAC/C,4CAAyC;AACzC,iDAA8C;AAC9C,iEAA8D;AAC9D,oCAAwC;AAajC,MAAM,oCAAoC,GAAG,CAAC,EACnD,IAAI,EACJ,MAAM,EACN,YAAY,EACZ,SAAS,EACT,SAAS,EACT,KAAK,EACL,IAAI,GACsC,EAAE,EAAE,CAAC,CAC/C,wBAAC,+BAAc,IACb,KAAK,EAAE,GAAG,YAAY,mBAAmB,MAAM,CAAC,IAAI,EAAE,EACtD,gBAAgB,EAAE,GAAG,YAAY,mBAAmB,MAAM,CAAC,IAAI,iCAAiC,EAChG,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,yCAE7D,EACV,wBAAC,WAAI,eACF,SAAS,IAAI,YAAY,eAAU,wCAAI,YAAY,GAAK,UAAK,MAAM,CAAC,IAAI,EAAE,GAAG,SAC3E,wCAAI,KAAK,GAAK,UAAK,SAAS,0HAE1B,EACP,uBAAC,WAAI,gGAGE,EACP,uBAAC,eAAM,IACL,IAAI,EAAE,IAAI,EACV,IAAI,EAAE,IAAI,EACV,KAAK,EAAC,qBAAqB,EAC3B,WAAW,EAAE,oBAAY,CAAC,UAAW,GACrC,IACa,CAClB,CAAC;AAlCW,QAAA,oCAAoC,GAApC,oCAAoC,CAkC/C","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 TeamInviteOutsideDomainEmailTemplateProps = {\n mode: EmailBaseProps['mode'];\n tenant: EmailBaseProps['tenant'];\n invitedEmail: string;\n invitedBy: string | null;\n invitedAt: string;\n roles: string;\n href: string;\n};\n\nexport const TeamInviteOutsideDomainEmailTemplate = ({\n mode,\n tenant,\n invitedEmail,\n invitedBy,\n invitedAt,\n roles,\n href,\n}: TeamInviteOutsideDomainEmailTemplateProps) => (\n <EmailContainer\n title={`${invitedEmail} was invited to ${tenant.name}`}\n shortDescription={`${invitedEmail} was invited to ${tenant.name} with an outside email address.`}\n tenant={tenant}\n mode={mode}\n >\n <Heading style={{ fontSize: 28, fontWeight: 600, marginBottom: '50px' }}>\n A new member was invited\n </Heading>\n <Text>\n {invitedBy ?? 'An API key'} invited <b>{invitedEmail}</b> to {tenant.name}{' '}\n as <b>{roles}</b> on {invitedAt}. The address is outside the email domains\n of your team and your accounting partner, or it is a free-mail address.\n </Text>\n <Text>\n If you do not know this person, remove the member and check who invited\n them.\n </Text>\n <Button\n href={href}\n mode={mode}\n label=\"Review team members\"\n themeColors={THEME_COLORS.vrplatform!}\n />\n </EmailContainer>\n);\n"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * from './SecondFactorAnnouncementEmailTemplate';
|
|
2
2
|
export * from './SecondFactorResetEmailTemplate';
|
|
3
3
|
export * from './TeamApiTokenCreatedEmailTemplate';
|
|
4
|
-
export * from './
|
|
4
|
+
export * from './TeamInviteOutsideDomainEmailTemplate';
|
|
5
5
|
export * from './TeamRoleGrantedEmailTemplate';
|
|
6
6
|
export * from './TenantSuspensionEmailTemplate';
|
|
7
7
|
export * from './TenantDeletionEmailTemplate';
|
|
@@ -18,7 +18,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
18
18
|
__exportStar(require("./SecondFactorAnnouncementEmailTemplate"), exports);
|
|
19
19
|
__exportStar(require("./SecondFactorResetEmailTemplate"), exports);
|
|
20
20
|
__exportStar(require("./TeamApiTokenCreatedEmailTemplate"), exports);
|
|
21
|
-
__exportStar(require("./
|
|
21
|
+
__exportStar(require("./TeamInviteOutsideDomainEmailTemplate"), exports);
|
|
22
22
|
__exportStar(require("./TeamRoleGrantedEmailTemplate"), exports);
|
|
23
23
|
__exportStar(require("./TenantSuspensionEmailTemplate"), exports);
|
|
24
24
|
__exportStar(require("./TenantDeletionEmailTemplate"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"src/","sources":["templates/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,QAAQ;AACR,0EAAwD;AACxD,mEAAiD;AACjD,qEAAmD;AACnD,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"src/","sources":["templates/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,QAAQ;AACR,0EAAwD;AACxD,mEAAiD;AACjD,qEAAmD;AACnD,yEAAuD;AACvD,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 './TeamInviteOutsideDomainEmailTemplate';\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"]}
|
|
@@ -10,10 +10,12 @@ export const SecondFactorAnnouncementEmailTemplate = (props) => {
|
|
|
10
10
|
const { mode, user, deadline, href } = props;
|
|
11
11
|
const owner = props.audience === 'owner';
|
|
12
12
|
const product = owner ? props.tenant.name : 'VRTrust';
|
|
13
|
-
return (_jsxs(EmailContainer, { title: "Turn on two-step verification", shortDescription: `Turn on two-step verification by ${deadline}.`, tenant: owner ? props.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: [product, " now requires a second step at sign-in:
|
|
13
|
+
return (_jsxs(EmailContainer, { title: "Turn on two-step verification", shortDescription: `Turn on two-step verification by ${deadline}.`, tenant: owner ? props.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: [product, " now requires a second step at sign-in:", ' ', owner
|
|
14
|
+
? 'a code from an authenticator app, a backup code, or a code sent by text message.'
|
|
15
|
+
: '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, ", product, " shows only the setup screen until two-step verification is on."] }), _jsxs(Text, { children: ["Phishing messages written with AI tools are getting harder to spot, and a stolen password is enough to take over an account.", ' ', owner
|
|
14
16
|
? 'Your account gives access to your statements and payout details, so every account is protected the same way.'
|
|
15
17
|
: 'VRTrust holds payout bank details for owners and vendors, so we protect every account the same way.'] }), _jsx(Text, { children: owner
|
|
16
|
-
? 'Setup takes about 2 minutes. Open your settings and add an authenticator app.'
|
|
18
|
+
? 'Setup takes about 2 minutes. Open your settings and add an authenticator app, or choose text messages if you do not use one.'
|
|
17
19
|
: '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: owner ? props.themeColors : THEME_COLORS.vrplatform }), _jsx(Text, { children: owner
|
|
18
20
|
? 'If you lose your phone and your backup codes, contact your property manager to reset two-step verification.'
|
|
19
21
|
: '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 support@vrplatform.app.' })] }));
|
|
@@ -1 +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;AAmBxC,0EAA0E;AAC1E,0EAA0E;AAC1E,MAAM,CAAC,MAAM,qCAAqC,GAAG,CACnD,KAAiD,EACjD,EAAE;IACF,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,KAAK,CAAC;IAC7C,MAAM,KAAK,GAAG,KAAK,CAAC,QAAQ,KAAK,OAAO,CAAC;IACzC,MAAM,OAAO,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,C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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 // Formatted for reading, such as \"December 1, 2026\".\n deadline: string;\n href: string;\n} & (\n | { audience: 'member' }\n | {\n // Owners see the branding of their team's owner portal.\n audience: 'owner';\n tenant: EmailBaseProps['tenant'];\n themeColors: EmailBaseProps['themeColors'];\n }\n);\n\n// Announces required two-step verification to a user with the deadline of\n// their group (PRO-20654). Team members get VRTrust, owners their portal.\nexport const SecondFactorAnnouncementEmailTemplate = (\n props: SecondFactorAnnouncementEmailTemplateProps\n) => {\n const { mode, user, deadline, href } = props;\n const owner = props.audience === 'owner';\n const product = owner ? props.tenant.name : 'VRTrust';\n return (\n <EmailContainer\n title=\"Turn on two-step verification\"\n shortDescription={`Turn on two-step verification by ${deadline}.`}\n tenant={owner ? props.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 {product} now requires a second step at sign-in:{' '}\n {owner\n ? 'a code from an authenticator app, a backup code, or a code sent by text message.'\n : 'a code from an authenticator app, or a backup code.'}{' '}\n You can keep signing in without it until 4 pm Pacific time on{' '}\n <b>{deadline}</b>. After that, {product} shows only the setup screen\n until two-step verification is on.\n </Text>\n <Text>\n Phishing messages written with AI tools are getting harder to spot, and\n a stolen password is enough to take over an account.{' '}\n {owner\n ? 'Your account gives access to your statements and payout details, so every account is protected the same way.'\n : 'VRTrust holds payout bank details for owners and vendors, so we protect every account the same way.'}\n </Text>\n <Text>\n {owner\n ? 'Setup takes about 2 minutes. Open your settings and add an authenticator app, or choose text messages if you do not use one.'\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={owner ? props.themeColors : THEME_COLORS.vrplatform!}\n />\n <Text>\n {owner\n ? 'If you lose your phone and your backup codes, contact your property manager to reset two-step verification.'\n : '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 support@vrplatform.app.'}\n </Text>\n </EmailContainer>\n );\n};\n"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { EmailBaseProps } from '../types';
|
|
2
|
+
export type TeamInviteOutsideDomainEmailTemplateProps = {
|
|
3
|
+
mode: EmailBaseProps['mode'];
|
|
4
|
+
tenant: EmailBaseProps['tenant'];
|
|
5
|
+
invitedEmail: string;
|
|
6
|
+
invitedBy: string | null;
|
|
7
|
+
invitedAt: string;
|
|
8
|
+
roles: string;
|
|
9
|
+
href: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const TeamInviteOutsideDomainEmailTemplate: ({ mode, tenant, invitedEmail, invitedBy, invitedAt, roles, href, }: TeamInviteOutsideDomainEmailTemplateProps) => 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 TeamInviteOutsideDomainEmailTemplate = ({ mode, tenant, invitedEmail, invitedBy, invitedAt, roles, href, }) => (_jsxs(EmailContainer, { title: `${invitedEmail} was invited to ${tenant.name}`, shortDescription: `${invitedEmail} was invited to ${tenant.name} with an outside email address.`, tenant: tenant, mode: mode, children: [_jsx(Heading, { style: { fontSize: 28, fontWeight: 600, marginBottom: '50px' }, children: "A new member was invited" }), _jsxs(Text, { children: [invitedBy ?? 'An API key', " invited ", _jsx("b", { children: invitedEmail }), " to ", tenant.name, ' ', "as ", _jsx("b", { children: roles }), " on ", invitedAt, ". The address is outside the email domains of your team and your accounting partner, or it is a free-mail address."] }), _jsx(Text, { children: "If you do not know this person, remove the member and check who invited them." }), _jsx(Button, { href: href, mode: mode, label: "Review team members", themeColors: THEME_COLORS.vrplatform })] }));
|
|
8
|
+
//# sourceMappingURL=TeamInviteOutsideDomainEmailTemplate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TeamInviteOutsideDomainEmailTemplate.js","sourceRoot":"src/","sources":["templates/TeamInviteOutsideDomainEmailTemplate.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;AAaxC,MAAM,CAAC,MAAM,oCAAoC,GAAG,CAAC,EACnD,IAAI,EACJ,MAAM,EACN,YAAY,EACZ,SAAS,EACT,SAAS,EACT,KAAK,EACL,IAAI,GACsC,EAAE,EAAE,CAAC,CAC/C,MAAC,cAAc,IACb,KAAK,EAAE,GAAG,YAAY,mBAAmB,MAAM,CAAC,IAAI,EAAE,EACtD,gBAAgB,EAAE,GAAG,YAAY,mBAAmB,MAAM,CAAC,IAAI,iCAAiC,EAChG,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,yCAE7D,EACV,MAAC,IAAI,eACF,SAAS,IAAI,YAAY,eAAU,sBAAI,YAAY,GAAK,UAAK,MAAM,CAAC,IAAI,EAAE,GAAG,SAC3E,sBAAI,KAAK,GAAK,UAAK,SAAS,0HAE1B,EACP,KAAC,IAAI,gGAGE,EACP,KAAC,MAAM,IACL,IAAI,EAAE,IAAI,EACV,IAAI,EAAE,IAAI,EACV,KAAK,EAAC,qBAAqB,EAC3B,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 TeamInviteOutsideDomainEmailTemplateProps = {\n mode: EmailBaseProps['mode'];\n tenant: EmailBaseProps['tenant'];\n invitedEmail: string;\n invitedBy: string | null;\n invitedAt: string;\n roles: string;\n href: string;\n};\n\nexport const TeamInviteOutsideDomainEmailTemplate = ({\n mode,\n tenant,\n invitedEmail,\n invitedBy,\n invitedAt,\n roles,\n href,\n}: TeamInviteOutsideDomainEmailTemplateProps) => (\n <EmailContainer\n title={`${invitedEmail} was invited to ${tenant.name}`}\n shortDescription={`${invitedEmail} was invited to ${tenant.name} with an outside email address.`}\n tenant={tenant}\n mode={mode}\n >\n <Heading style={{ fontSize: 28, fontWeight: 600, marginBottom: '50px' }}>\n A new member was invited\n </Heading>\n <Text>\n {invitedBy ?? 'An API key'} invited <b>{invitedEmail}</b> to {tenant.name}{' '}\n as <b>{roles}</b> on {invitedAt}. The address is outside the email domains\n of your team and your accounting partner, or it is a free-mail address.\n </Text>\n <Text>\n If you do not know this person, remove the member and check who invited\n them.\n </Text>\n <Button\n href={href}\n mode={mode}\n label=\"Review team members\"\n themeColors={THEME_COLORS.vrplatform!}\n />\n </EmailContainer>\n);\n"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * from './SecondFactorAnnouncementEmailTemplate';
|
|
2
2
|
export * from './SecondFactorResetEmailTemplate';
|
|
3
3
|
export * from './TeamApiTokenCreatedEmailTemplate';
|
|
4
|
-
export * from './
|
|
4
|
+
export * from './TeamInviteOutsideDomainEmailTemplate';
|
|
5
5
|
export * from './TeamRoleGrantedEmailTemplate';
|
|
6
6
|
export * from './TenantSuspensionEmailTemplate';
|
|
7
7
|
export * from './TenantDeletionEmailTemplate';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
export * from './SecondFactorAnnouncementEmailTemplate';
|
|
3
3
|
export * from './SecondFactorResetEmailTemplate';
|
|
4
4
|
export * from './TeamApiTokenCreatedEmailTemplate';
|
|
5
|
-
export * from './
|
|
5
|
+
export * from './TeamInviteOutsideDomainEmailTemplate';
|
|
6
6
|
export * from './TeamRoleGrantedEmailTemplate';
|
|
7
7
|
export * from './TenantSuspensionEmailTemplate';
|
|
8
8
|
export * from './TenantDeletionEmailTemplate';
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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,wCAAwC,CAAC;AACvD,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 './TeamInviteOutsideDomainEmailTemplate';\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
|
@@ -41,10 +41,13 @@ export const SecondFactorAnnouncementEmailTemplate = (
|
|
|
41
41
|
</Heading>
|
|
42
42
|
<Text>{user.firstName ? `Hi ${user.firstName},` : 'Hi there,'}</Text>
|
|
43
43
|
<Text>
|
|
44
|
-
{product} now requires a second step at sign-in:
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
44
|
+
{product} now requires a second step at sign-in:{' '}
|
|
45
|
+
{owner
|
|
46
|
+
? 'a code from an authenticator app, a backup code, or a code sent by text message.'
|
|
47
|
+
: 'a code from an authenticator app, or a backup code.'}{' '}
|
|
48
|
+
You can keep signing in without it until 4 pm Pacific time on{' '}
|
|
49
|
+
<b>{deadline}</b>. After that, {product} shows only the setup screen
|
|
50
|
+
until two-step verification is on.
|
|
48
51
|
</Text>
|
|
49
52
|
<Text>
|
|
50
53
|
Phishing messages written with AI tools are getting harder to spot, and
|
|
@@ -55,7 +58,7 @@ export const SecondFactorAnnouncementEmailTemplate = (
|
|
|
55
58
|
</Text>
|
|
56
59
|
<Text>
|
|
57
60
|
{owner
|
|
58
|
-
? 'Setup takes about 2 minutes. Open your settings and add an authenticator app.'
|
|
61
|
+
? 'Setup takes about 2 minutes. Open your settings and add an authenticator app, or choose text messages if you do not use one.'
|
|
59
62
|
: 'Setup takes about 2 minutes. The guide has a screenshot of each step.'}
|
|
60
63
|
</Text>
|
|
61
64
|
<Button
|
|
@@ -5,46 +5,47 @@ import { EmailContainer } from '../components/EmailContainer';
|
|
|
5
5
|
import { THEME_COLORS } from '../theme';
|
|
6
6
|
import type { EmailBaseProps } from '../types';
|
|
7
7
|
|
|
8
|
-
export type
|
|
8
|
+
export type TeamInviteOutsideDomainEmailTemplateProps = {
|
|
9
9
|
mode: EmailBaseProps['mode'];
|
|
10
10
|
tenant: EmailBaseProps['tenant'];
|
|
11
11
|
invitedEmail: string;
|
|
12
12
|
invitedBy: string | null;
|
|
13
|
+
invitedAt: string;
|
|
13
14
|
roles: string;
|
|
14
15
|
href: string;
|
|
15
16
|
};
|
|
16
17
|
|
|
17
|
-
export const
|
|
18
|
+
export const TeamInviteOutsideDomainEmailTemplate = ({
|
|
18
19
|
mode,
|
|
19
20
|
tenant,
|
|
20
21
|
invitedEmail,
|
|
21
22
|
invitedBy,
|
|
23
|
+
invitedAt,
|
|
22
24
|
roles,
|
|
23
25
|
href,
|
|
24
|
-
}:
|
|
26
|
+
}: TeamInviteOutsideDomainEmailTemplateProps) => (
|
|
25
27
|
<EmailContainer
|
|
26
|
-
title={`${invitedEmail}
|
|
27
|
-
shortDescription={
|
|
28
|
+
title={`${invitedEmail} was invited to ${tenant.name}`}
|
|
29
|
+
shortDescription={`${invitedEmail} was invited to ${tenant.name} with an outside email address.`}
|
|
28
30
|
tenant={tenant}
|
|
29
31
|
mode={mode}
|
|
30
32
|
>
|
|
31
33
|
<Heading style={{ fontSize: 28, fontWeight: 600, marginBottom: '50px' }}>
|
|
32
|
-
|
|
34
|
+
A new member was invited
|
|
33
35
|
</Heading>
|
|
34
36
|
<Text>
|
|
35
37
|
{invitedBy ?? 'An API key'} invited <b>{invitedEmail}</b> to {tenant.name}{' '}
|
|
36
|
-
as <b>{roles}</b
|
|
37
|
-
and your accounting partner,
|
|
38
|
-
invite before it is sent.
|
|
38
|
+
as <b>{roles}</b> on {invitedAt}. The address is outside the email domains
|
|
39
|
+
of your team and your accounting partner, or it is a free-mail address.
|
|
39
40
|
</Text>
|
|
40
41
|
<Text>
|
|
41
|
-
If you do not know this person,
|
|
42
|
+
If you do not know this person, remove the member and check who invited
|
|
42
43
|
them.
|
|
43
44
|
</Text>
|
|
44
45
|
<Button
|
|
45
46
|
href={href}
|
|
46
47
|
mode={mode}
|
|
47
|
-
label="Review
|
|
48
|
+
label="Review team members"
|
|
48
49
|
themeColors={THEME_COLORS.vrplatform!}
|
|
49
50
|
/>
|
|
50
51
|
</EmailContainer>
|
package/src/templates/index.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
export * from './SecondFactorAnnouncementEmailTemplate';
|
|
3
3
|
export * from './SecondFactorResetEmailTemplate';
|
|
4
4
|
export * from './TeamApiTokenCreatedEmailTemplate';
|
|
5
|
-
export * from './
|
|
5
|
+
export * from './TeamInviteOutsideDomainEmailTemplate';
|
|
6
6
|
export * from './TeamRoleGrantedEmailTemplate';
|
|
7
7
|
export * from './TenantSuspensionEmailTemplate';
|
|
8
8
|
export * from './TenantDeletionEmailTemplate';
|
|
@@ -1,10 +0,0 @@
|
|
|
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;
|
|
@@ -1,12 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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,10 +0,0 @@
|
|
|
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;
|
|
@@ -1,8 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"]}
|