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

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.
@@ -4,5 +4,11 @@ export type SecondFactorAnnouncementEmailTemplateProps = {
4
4
  user: EmailBaseProps['user'];
5
5
  deadline: string;
6
6
  href: string;
7
- };
8
- export declare const SecondFactorAnnouncementEmailTemplate: ({ mode, user, deadline, href, }: SecondFactorAnnouncementEmailTemplateProps) => import("react").JSX.Element;
7
+ } & ({
8
+ audience: 'member';
9
+ } | {
10
+ audience: 'owner';
11
+ tenant: EmailBaseProps['tenant'];
12
+ themeColors: EmailBaseProps['themeColors'];
13
+ });
14
+ export declare const SecondFactorAnnouncementEmailTemplate: (props: SecondFactorAnnouncementEmailTemplateProps) => import("react").JSX.Element;
@@ -7,8 +7,19 @@ const text_1 = require("@react-email/text");
7
7
  const Button_1 = require("../components/Button");
8
8
  const EmailContainer_1 = require("../components/EmailContainer");
9
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." })] }));
10
+ // Announces required two-step verification to a user with the deadline of
11
+ // their group (PRO-20654). Team members get VRTrust, owners their portal.
12
+ const SecondFactorAnnouncementEmailTemplate = (props) => {
13
+ const { mode, user, deadline, href } = props;
14
+ const owner = props.audience === 'owner';
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: 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
+ ? 'Your account gives access to your statements and payout details, so every account is protected the same way.'
18
+ : '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.'
20
+ : '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
+ ? 'If you lose your phone and your backup codes, contact your property manager to reset two-step verification.'
22
+ : '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.' })] }));
23
+ };
13
24
  exports.SecondFactorAnnouncementEmailTemplate = SecondFactorAnnouncementEmailTemplate;
14
25
  //# sourceMappingURL=SecondFactorAnnouncementEmailTemplate.js.map
@@ -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;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"]}
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,EAAE,EAClD,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,eACF,OAAO,gKAEmB,wCAAI,QAAQ,GAAK,oBAAe,OAAO,EAAE,GAAG,sEAElE,EACP,wBAAC,WAAI,+IAEkD,GAAG,EACvD,KAAK;wBACJ,CAAC,CAAC,8GAA8G;wBAChH,CAAC,CAAC,qGAAqG,IACpG,EACP,uBAAC,WAAI,cACF,KAAK;oBACJ,CAAC,CAAC,+EAA+E;oBACjF,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,2JAA2J,GAC1J,IACQ,CAClB,CAAC;AACJ,CAAC,CAAC;AAhDW,QAAA,qCAAqC,GAArC,qCAAqC,CAgDhD","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 \"November 24, 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: 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, {product}{' '}\n shows 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\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.'\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 help@vrplatform.app.'}\n </Text>\n </EmailContainer>\n );\n};\n"]}
@@ -4,5 +4,11 @@ export type SecondFactorAnnouncementEmailTemplateProps = {
4
4
  user: EmailBaseProps['user'];
5
5
  deadline: string;
6
6
  href: string;
7
- };
8
- export declare const SecondFactorAnnouncementEmailTemplate: ({ mode, user, deadline, href, }: SecondFactorAnnouncementEmailTemplateProps) => import("react").JSX.Element;
7
+ } & ({
8
+ audience: 'member';
9
+ } | {
10
+ audience: 'owner';
11
+ tenant: EmailBaseProps['tenant'];
12
+ themeColors: EmailBaseProps['themeColors'];
13
+ });
14
+ export declare const SecondFactorAnnouncementEmailTemplate: (props: SecondFactorAnnouncementEmailTemplateProps) => import("react").JSX.Element;
@@ -4,7 +4,18 @@ import { Text } from '@react-email/text';
4
4
  import { Button } from '../components/Button';
5
5
  import { EmailContainer } from '../components/EmailContainer';
6
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." })] }));
7
+ // Announces required two-step verification to a user with the deadline of
8
+ // their group (PRO-20654). Team members get VRTrust, owners their portal.
9
+ export const SecondFactorAnnouncementEmailTemplate = (props) => {
10
+ const { mode, user, deadline, href } = props;
11
+ const owner = props.audience === 'owner';
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: 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
+ ? 'Your account gives access to your statements and payout details, so every account is protected the same way.'
15
+ : '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.'
17
+ : '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
+ ? 'If you lose your phone and your backup codes, contact your property manager to reset two-step verification.'
19
+ : '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.' })] }));
20
+ };
10
21
  //# sourceMappingURL=SecondFactorAnnouncementEmailTemplate.js.map
@@ -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;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"]}
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,CAAC;IACtD,OAAO,CACL,MAAC,cAAc,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,EAAE,EAClD,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,eACF,OAAO,gKAEmB,sBAAI,QAAQ,GAAK,oBAAe,OAAO,EAAE,GAAG,sEAElE,EACP,MAAC,IAAI,+IAEkD,GAAG,EACvD,KAAK;wBACJ,CAAC,CAAC,8GAA8G;wBAChH,CAAC,CAAC,qGAAqG,IACpG,EACP,KAAC,IAAI,cACF,KAAK;oBACJ,CAAC,CAAC,+EAA+E;oBACjF,CAAC,CAAC,uEAAuE,GACtE,EACP,KAAC,MAAM,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,YAAY,CAAC,UAAW,GACjE,EACF,KAAC,IAAI,cACF,KAAK;oBACJ,CAAC,CAAC,6GAA6G;oBAC/G,CAAC,CAAC,2JAA2J,GAC1J,IACQ,CAClB,CAAC;AACJ,CAAC,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 // Formatted for reading, such as \"November 24, 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: 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, {product}{' '}\n shows 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\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.'\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 help@vrplatform.app.'}\n </Text>\n </EmailContainer>\n );\n};\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vrplatform/email",
3
- "version": "1.0.2-stage.43320808884",
3
+ "version": "1.0.2-stage.43326028492",
4
4
  "description": "VRTrust transactional email templates and Postmark transport",
5
5
  "license": "ISC",
6
6
  "main": "build/main/index.js",
@@ -8,55 +8,67 @@ import type { EmailBaseProps } from '../types';
8
8
  export type SecondFactorAnnouncementEmailTemplateProps = {
9
9
  mode: EmailBaseProps['mode'];
10
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".
11
+ // Formatted for reading, such as "November 24, 2026".
13
12
  deadline: string;
14
13
  href: string;
15
- };
14
+ } & (
15
+ | { audience: 'member' }
16
+ | {
17
+ // Owners see the branding of their team's owner portal.
18
+ audience: 'owner';
19
+ tenant: EmailBaseProps['tenant'];
20
+ themeColors: EmailBaseProps['themeColors'];
21
+ }
22
+ );
16
23
 
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}
24
+ // Announces required two-step verification to a user with the deadline of
25
+ // their group (PRO-20654). Team members get VRTrust, owners their portal.
26
+ export const SecondFactorAnnouncementEmailTemplate = (
27
+ props: SecondFactorAnnouncementEmailTemplateProps
28
+ ) => {
29
+ const { mode, user, deadline, href } = props;
30
+ const owner = props.audience === 'owner';
31
+ const product = owner ? props.tenant.name : 'VRTrust';
32
+ return (
33
+ <EmailContainer
34
+ title="Turn on two-step verification"
35
+ shortDescription={`Turn on two-step verification by ${deadline}.`}
36
+ tenant={owner ? props.tenant : { logo: undefined }}
52
37
  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
- );
38
+ >
39
+ <Heading style={{ fontSize: 28, fontWeight: 600, marginBottom: '50px' }}>
40
+ Turn on two-step verification by {deadline}
41
+ </Heading>
42
+ <Text>{user.firstName ? `Hi ${user.firstName},` : 'Hi there,'}</Text>
43
+ <Text>
44
+ {product} now requires a second step at sign-in: a code from an
45
+ authenticator app, or a backup code. You can keep signing in without it
46
+ until 4 pm Pacific time on <b>{deadline}</b>. After that, {product}{' '}
47
+ shows only the setup screen until two-step verification is on.
48
+ </Text>
49
+ <Text>
50
+ Phishing messages written with AI tools are getting harder to spot, and
51
+ a stolen password is enough to take over an account.{' '}
52
+ {owner
53
+ ? 'Your account gives access to your statements and payout details, so every account is protected the same way.'
54
+ : 'VRTrust holds payout bank details for owners and vendors, so we protect every account the same way.'}
55
+ </Text>
56
+ <Text>
57
+ {owner
58
+ ? 'Setup takes about 2 minutes. Open your settings and add an authenticator app.'
59
+ : 'Setup takes about 2 minutes. The guide has a screenshot of each step.'}
60
+ </Text>
61
+ <Button
62
+ href={href}
63
+ mode={mode}
64
+ label="Set up two-step verification"
65
+ themeColors={owner ? props.themeColors : THEME_COLORS.vrplatform!}
66
+ />
67
+ <Text>
68
+ {owner
69
+ ? 'If you lose your phone and your backup codes, contact your property manager to reset two-step verification.'
70
+ : '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.'}
71
+ </Text>
72
+ </EmailContainer>
73
+ );
74
+ };