@vrplatform/email 1.0.2-stage.38383894940 → 1.0.2-stage.38406427342
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/BankAccountChangedTeamAdminEmailTemplate.d.ts +16 -0
- package/build/main/templates/BankAccountChangedTeamAdminEmailTemplate.js +12 -0
- package/build/main/templates/BankAccountChangedTeamAdminEmailTemplate.js.map +1 -0
- package/build/main/templates/index.d.ts +1 -0
- package/build/main/templates/index.js +1 -0
- package/build/main/templates/index.js.map +1 -1
- package/build/module/templates/BankAccountChangedTeamAdminEmailTemplate.d.ts +16 -0
- package/build/module/templates/BankAccountChangedTeamAdminEmailTemplate.js +8 -0
- package/build/module/templates/BankAccountChangedTeamAdminEmailTemplate.js.map +1 -0
- package/build/module/templates/index.d.ts +1 -0
- package/build/module/templates/index.js +1 -0
- package/build/module/templates/index.js.map +1 -1
- package/package.json +1 -1
- package/src/templates/BankAccountChangedTeamAdminEmailTemplate.tsx +49 -0
- package/src/templates/index.ts +1 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { EmailBaseProps } from '../types';
|
|
2
|
+
export type BankAccountChangedTeamAdminEmailTemplateProps = {
|
|
3
|
+
mode: EmailBaseProps['mode'];
|
|
4
|
+
tenant: EmailBaseProps['tenant'];
|
|
5
|
+
contact: {
|
|
6
|
+
name: string;
|
|
7
|
+
type: 'owner' | 'vendor';
|
|
8
|
+
};
|
|
9
|
+
bankAccount: {
|
|
10
|
+
last4: string;
|
|
11
|
+
changedOn: string;
|
|
12
|
+
changedBy: string | null;
|
|
13
|
+
};
|
|
14
|
+
href: string;
|
|
15
|
+
};
|
|
16
|
+
export declare const BankAccountChangedTeamAdminEmailTemplate: ({ mode, tenant, contact, bankAccount, href, }: BankAccountChangedTeamAdminEmailTemplateProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BankAccountChangedTeamAdminEmailTemplate = 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 BankAccountChangedTeamAdminEmailTemplate = ({ mode, tenant, contact, bankAccount, href, }) => ((0, jsx_runtime_1.jsxs)(EmailContainer_1.EmailContainer, { title: `Bank details changed for ${contact.name}`, shortDescription: `Future payments to ${contact.name} go to the account ending in ${bankAccount.last4}.`, tenant: tenant, mode: mode, children: [(0, jsx_runtime_1.jsx)(heading_1.Heading, { style: { fontSize: 28, fontWeight: 600, marginBottom: '50px' }, children: "Bank details changed" }), (0, jsx_runtime_1.jsxs)(text_1.Text, { children: ["The bank account of ", contact.type, " ", (0, jsx_runtime_1.jsx)("b", { children: contact.name }), " was changed on", ' ', bankAccount.changedOn, bankAccount.changedBy ? ` by ${bankAccount.changedBy}` : '', ". Future payments go to the account ending in ", (0, jsx_runtime_1.jsx)("b", { children: bankAccount.last4 }), "."] }), (0, jsx_runtime_1.jsxs)(text_1.Text, { children: ["If you did not expect this change, confirm it with ", contact.name, " by phone before the next payment."] }), (0, jsx_runtime_1.jsx)(Button_1.Button, { href: href, mode: mode, label: "Review payment setup", themeColors: theme_1.THEME_COLORS.vrplatform })] }));
|
|
11
|
+
exports.BankAccountChangedTeamAdminEmailTemplate = BankAccountChangedTeamAdminEmailTemplate;
|
|
12
|
+
//# sourceMappingURL=BankAccountChangedTeamAdminEmailTemplate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BankAccountChangedTeamAdminEmailTemplate.js","sourceRoot":"src/","sources":["templates/BankAccountChangedTeamAdminEmailTemplate.tsx"],"names":[],"mappings":";;;;AAAA,kDAA+C;AAC/C,4CAAyC;AACzC,iDAA8C;AAC9C,iEAA8D;AAC9D,oCAAwC;AAWjC,MAAM,wCAAwC,GAAG,CAAC,EACvD,IAAI,EACJ,MAAM,EACN,OAAO,EACP,WAAW,EACX,IAAI,GAC0C,EAAE,EAAE,CAAC,CACnD,wBAAC,+BAAc,IACb,KAAK,EAAE,4BAA4B,OAAO,CAAC,IAAI,EAAE,EACjD,gBAAgB,EAAE,sBAAsB,OAAO,CAAC,IAAI,gCAAgC,WAAW,CAAC,KAAK,GAAG,EACxG,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,qCAE7D,EACV,wBAAC,WAAI,uCACkB,OAAO,CAAC,IAAI,OAAE,wCAAI,OAAO,CAAC,IAAI,GAAK,qBAAgB,GAAG,EAC1E,WAAW,CAAC,SAAS,EACrB,WAAW,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,WAAW,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE,oDACvB,wCAAI,WAAW,CAAC,KAAK,GAAK,SAC1D,EACP,wBAAC,WAAI,sEACiD,OAAO,CAAC,IAAI,0CAE3D,EACP,uBAAC,eAAM,IACL,IAAI,EAAE,IAAI,EACV,IAAI,EAAE,IAAI,EACV,KAAK,EAAC,sBAAsB,EAC5B,WAAW,EAAE,oBAAY,CAAC,UAAW,GACrC,IACa,CAClB,CAAC;AAjCW,QAAA,wCAAwC,4CAiCnD","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 BankAccountChangedTeamAdminEmailTemplateProps = {\n mode: EmailBaseProps['mode'];\n tenant: EmailBaseProps['tenant'];\n contact: { name: string; type: 'owner' | 'vendor' };\n bankAccount: { last4: string; changedOn: string; changedBy: string | null };\n href: string;\n};\n\nexport const BankAccountChangedTeamAdminEmailTemplate = ({\n mode,\n tenant,\n contact,\n bankAccount,\n href,\n}: BankAccountChangedTeamAdminEmailTemplateProps) => (\n <EmailContainer\n title={`Bank details changed for ${contact.name}`}\n shortDescription={`Future payments to ${contact.name} go to the account ending in ${bankAccount.last4}.`}\n tenant={tenant}\n mode={mode}\n >\n <Heading style={{ fontSize: 28, fontWeight: 600, marginBottom: '50px' }}>\n Bank details changed\n </Heading>\n <Text>\n The bank account of {contact.type} <b>{contact.name}</b> was changed on{' '}\n {bankAccount.changedOn}\n {bankAccount.changedBy ? ` by ${bankAccount.changedBy}` : ''}. Future\n payments go to the account ending in <b>{bankAccount.last4}</b>.\n </Text>\n <Text>\n If you did not expect this change, confirm it with {contact.name} by phone\n before the next payment.\n </Text>\n <Button\n href={href}\n mode={mode}\n label=\"Review payment setup\"\n themeColors={THEME_COLORS.vrplatform!}\n />\n </EmailContainer>\n);\n"]}
|
|
@@ -2,5 +2,6 @@ export * from './TenantSuspensionEmailTemplate';
|
|
|
2
2
|
export * from './TenantDeletionEmailTemplate';
|
|
3
3
|
export * from './OwnerStatementEmailTemplate';
|
|
4
4
|
export * from './BankAccountChangedEmailTemplate';
|
|
5
|
+
export * from './BankAccountChangedTeamAdminEmailTemplate';
|
|
5
6
|
export * from './InviteOwnerEmailTemplate';
|
|
6
7
|
export * from './InvitePmEmailTemplate';
|
|
@@ -21,6 +21,7 @@ __exportStar(require("./TenantDeletionEmailTemplate"), exports);
|
|
|
21
21
|
__exportStar(require("./OwnerStatementEmailTemplate"), exports);
|
|
22
22
|
// Payment setup
|
|
23
23
|
__exportStar(require("./BankAccountChangedEmailTemplate"), exports);
|
|
24
|
+
__exportStar(require("./BankAccountChangedTeamAdminEmailTemplate"), exports);
|
|
24
25
|
// Invitations
|
|
25
26
|
__exportStar(require("./InviteOwnerEmailTemplate"), exports);
|
|
26
27
|
__exportStar(require("./InvitePmEmailTemplate"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"src/","sources":["templates/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,QAAQ;AACR,kEAAgD;AAChD,gEAA8C;AAE9C,mBAAmB;AACnB,gEAA8C;AAE9C,gBAAgB;AAChB,oEAAkD;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"src/","sources":["templates/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,QAAQ;AACR,kEAAgD;AAChD,gEAA8C;AAE9C,mBAAmB;AACnB,gEAA8C;AAE9C,gBAAgB;AAChB,oEAAkD;AAClD,6EAA2D;AAE3D,cAAc;AACd,6DAA2C;AAC3C,0DAAwC","sourcesContent":["// Teams\nexport * from './TenantSuspensionEmailTemplate';\nexport * from './TenantDeletionEmailTemplate';\n\n// Owner Statements\nexport * from './OwnerStatementEmailTemplate';\n\n// Payment setup\nexport * from './BankAccountChangedEmailTemplate';\nexport * from './BankAccountChangedTeamAdminEmailTemplate';\n\n// Invitations\nexport * from './InviteOwnerEmailTemplate';\nexport * from './InvitePmEmailTemplate';\n"]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { EmailBaseProps } from '../types';
|
|
2
|
+
export type BankAccountChangedTeamAdminEmailTemplateProps = {
|
|
3
|
+
mode: EmailBaseProps['mode'];
|
|
4
|
+
tenant: EmailBaseProps['tenant'];
|
|
5
|
+
contact: {
|
|
6
|
+
name: string;
|
|
7
|
+
type: 'owner' | 'vendor';
|
|
8
|
+
};
|
|
9
|
+
bankAccount: {
|
|
10
|
+
last4: string;
|
|
11
|
+
changedOn: string;
|
|
12
|
+
changedBy: string | null;
|
|
13
|
+
};
|
|
14
|
+
href: string;
|
|
15
|
+
};
|
|
16
|
+
export declare const BankAccountChangedTeamAdminEmailTemplate: ({ mode, tenant, contact, bankAccount, href, }: BankAccountChangedTeamAdminEmailTemplateProps) => 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 BankAccountChangedTeamAdminEmailTemplate = ({ mode, tenant, contact, bankAccount, href, }) => (_jsxs(EmailContainer, { title: `Bank details changed for ${contact.name}`, shortDescription: `Future payments to ${contact.name} go to the account ending in ${bankAccount.last4}.`, tenant: tenant, mode: mode, children: [_jsx(Heading, { style: { fontSize: 28, fontWeight: 600, marginBottom: '50px' }, children: "Bank details changed" }), _jsxs(Text, { children: ["The bank account of ", contact.type, " ", _jsx("b", { children: contact.name }), " was changed on", ' ', bankAccount.changedOn, bankAccount.changedBy ? ` by ${bankAccount.changedBy}` : '', ". Future payments go to the account ending in ", _jsx("b", { children: bankAccount.last4 }), "."] }), _jsxs(Text, { children: ["If you did not expect this change, confirm it with ", contact.name, " by phone before the next payment."] }), _jsx(Button, { href: href, mode: mode, label: "Review payment setup", themeColors: THEME_COLORS.vrplatform })] }));
|
|
8
|
+
//# sourceMappingURL=BankAccountChangedTeamAdminEmailTemplate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BankAccountChangedTeamAdminEmailTemplate.js","sourceRoot":"src/","sources":["templates/BankAccountChangedTeamAdminEmailTemplate.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;AAWxC,MAAM,CAAC,MAAM,wCAAwC,GAAG,CAAC,EACvD,IAAI,EACJ,MAAM,EACN,OAAO,EACP,WAAW,EACX,IAAI,GAC0C,EAAE,EAAE,CAAC,CACnD,MAAC,cAAc,IACb,KAAK,EAAE,4BAA4B,OAAO,CAAC,IAAI,EAAE,EACjD,gBAAgB,EAAE,sBAAsB,OAAO,CAAC,IAAI,gCAAgC,WAAW,CAAC,KAAK,GAAG,EACxG,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,qCAE7D,EACV,MAAC,IAAI,uCACkB,OAAO,CAAC,IAAI,OAAE,sBAAI,OAAO,CAAC,IAAI,GAAK,qBAAgB,GAAG,EAC1E,WAAW,CAAC,SAAS,EACrB,WAAW,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,WAAW,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE,oDACvB,sBAAI,WAAW,CAAC,KAAK,GAAK,SAC1D,EACP,MAAC,IAAI,sEACiD,OAAO,CAAC,IAAI,0CAE3D,EACP,KAAC,MAAM,IACL,IAAI,EAAE,IAAI,EACV,IAAI,EAAE,IAAI,EACV,KAAK,EAAC,sBAAsB,EAC5B,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 BankAccountChangedTeamAdminEmailTemplateProps = {\n mode: EmailBaseProps['mode'];\n tenant: EmailBaseProps['tenant'];\n contact: { name: string; type: 'owner' | 'vendor' };\n bankAccount: { last4: string; changedOn: string; changedBy: string | null };\n href: string;\n};\n\nexport const BankAccountChangedTeamAdminEmailTemplate = ({\n mode,\n tenant,\n contact,\n bankAccount,\n href,\n}: BankAccountChangedTeamAdminEmailTemplateProps) => (\n <EmailContainer\n title={`Bank details changed for ${contact.name}`}\n shortDescription={`Future payments to ${contact.name} go to the account ending in ${bankAccount.last4}.`}\n tenant={tenant}\n mode={mode}\n >\n <Heading style={{ fontSize: 28, fontWeight: 600, marginBottom: '50px' }}>\n Bank details changed\n </Heading>\n <Text>\n The bank account of {contact.type} <b>{contact.name}</b> was changed on{' '}\n {bankAccount.changedOn}\n {bankAccount.changedBy ? ` by ${bankAccount.changedBy}` : ''}. Future\n payments go to the account ending in <b>{bankAccount.last4}</b>.\n </Text>\n <Text>\n If you did not expect this change, confirm it with {contact.name} by phone\n before the next payment.\n </Text>\n <Button\n href={href}\n mode={mode}\n label=\"Review payment setup\"\n themeColors={THEME_COLORS.vrplatform!}\n />\n </EmailContainer>\n);\n"]}
|
|
@@ -2,5 +2,6 @@ export * from './TenantSuspensionEmailTemplate';
|
|
|
2
2
|
export * from './TenantDeletionEmailTemplate';
|
|
3
3
|
export * from './OwnerStatementEmailTemplate';
|
|
4
4
|
export * from './BankAccountChangedEmailTemplate';
|
|
5
|
+
export * from './BankAccountChangedTeamAdminEmailTemplate';
|
|
5
6
|
export * from './InviteOwnerEmailTemplate';
|
|
6
7
|
export * from './InvitePmEmailTemplate';
|
|
@@ -5,6 +5,7 @@ export * from './TenantDeletionEmailTemplate';
|
|
|
5
5
|
export * from './OwnerStatementEmailTemplate';
|
|
6
6
|
// Payment setup
|
|
7
7
|
export * from './BankAccountChangedEmailTemplate';
|
|
8
|
+
export * from './BankAccountChangedTeamAdminEmailTemplate';
|
|
8
9
|
// Invitations
|
|
9
10
|
export * from './InviteOwnerEmailTemplate';
|
|
10
11
|
export * from './InvitePmEmailTemplate';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"src/","sources":["templates/index.ts"],"names":[],"mappings":"AAAA,QAAQ;AACR,cAAc,iCAAiC,CAAC;AAChD,cAAc,+BAA+B,CAAC;AAE9C,mBAAmB;AACnB,cAAc,+BAA+B,CAAC;AAE9C,gBAAgB;AAChB,cAAc,mCAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"src/","sources":["templates/index.ts"],"names":[],"mappings":"AAAA,QAAQ;AACR,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;AAE3D,cAAc;AACd,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC","sourcesContent":["// Teams\nexport * from './TenantSuspensionEmailTemplate';\nexport * from './TenantDeletionEmailTemplate';\n\n// Owner Statements\nexport * from './OwnerStatementEmailTemplate';\n\n// Payment setup\nexport * from './BankAccountChangedEmailTemplate';\nexport * from './BankAccountChangedTeamAdminEmailTemplate';\n\n// Invitations\nexport * from './InviteOwnerEmailTemplate';\nexport * from './InvitePmEmailTemplate';\n"]}
|
package/package.json
CHANGED
|
@@ -0,0 +1,49 @@
|
|
|
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 BankAccountChangedTeamAdminEmailTemplateProps = {
|
|
9
|
+
mode: EmailBaseProps['mode'];
|
|
10
|
+
tenant: EmailBaseProps['tenant'];
|
|
11
|
+
contact: { name: string; type: 'owner' | 'vendor' };
|
|
12
|
+
bankAccount: { last4: string; changedOn: string; changedBy: string | null };
|
|
13
|
+
href: string;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export const BankAccountChangedTeamAdminEmailTemplate = ({
|
|
17
|
+
mode,
|
|
18
|
+
tenant,
|
|
19
|
+
contact,
|
|
20
|
+
bankAccount,
|
|
21
|
+
href,
|
|
22
|
+
}: BankAccountChangedTeamAdminEmailTemplateProps) => (
|
|
23
|
+
<EmailContainer
|
|
24
|
+
title={`Bank details changed for ${contact.name}`}
|
|
25
|
+
shortDescription={`Future payments to ${contact.name} go to the account ending in ${bankAccount.last4}.`}
|
|
26
|
+
tenant={tenant}
|
|
27
|
+
mode={mode}
|
|
28
|
+
>
|
|
29
|
+
<Heading style={{ fontSize: 28, fontWeight: 600, marginBottom: '50px' }}>
|
|
30
|
+
Bank details changed
|
|
31
|
+
</Heading>
|
|
32
|
+
<Text>
|
|
33
|
+
The bank account of {contact.type} <b>{contact.name}</b> was changed on{' '}
|
|
34
|
+
{bankAccount.changedOn}
|
|
35
|
+
{bankAccount.changedBy ? ` by ${bankAccount.changedBy}` : ''}. Future
|
|
36
|
+
payments go to the account ending in <b>{bankAccount.last4}</b>.
|
|
37
|
+
</Text>
|
|
38
|
+
<Text>
|
|
39
|
+
If you did not expect this change, confirm it with {contact.name} by phone
|
|
40
|
+
before the next payment.
|
|
41
|
+
</Text>
|
|
42
|
+
<Button
|
|
43
|
+
href={href}
|
|
44
|
+
mode={mode}
|
|
45
|
+
label="Review payment setup"
|
|
46
|
+
themeColors={THEME_COLORS.vrplatform!}
|
|
47
|
+
/>
|
|
48
|
+
</EmailContainer>
|
|
49
|
+
);
|
package/src/templates/index.ts
CHANGED