Skip to content

High performance, self-hosted, newsletter and mailing list manager with a modern dashboard. Single binary app.

feat: Integrate media selector to visual editor and add minor fixes.

Vivek R4a524c9332e4
diff --git a/email-builder/src/App/InspectorDrawer/ConfigurationPanel/input-panels/AvatarSidebarPanel.tsx b/email-builder/src/App/InspectorDrawer/ConfigurationPanel/input-panels/AvatarSidebarPanel.tsx
index ae5e32f9..532d20c0 100644
--- a/email-builder/src/App/InspectorDrawer/ConfigurationPanel/input-panels/AvatarSidebarPanel.tsx
+++ b/email-builder/src/App/InspectorDrawer/ConfigurationPanel/input-panels/AvatarSidebarPanel.tsx
@@ -58,6 +58,7 @@ export default function AvatarSidebarPanel({ data, setData }: AvatarSidebarPanel
</RadioGroupInput>
<TextInput
label="Image URL"
+ className="image-url"
defaultValue={imageUrl}
onChange={(imageUrl) => {
updateData({ ...data, props: { ...data.props, imageUrl } });
diff --git a/email-builder/src/App/InspectorDrawer/ConfigurationPanel/input-panels/ImageSidebarPanel.tsx b/email-builder/src/App/InspectorDrawer/ConfigurationPanel/input-panels/ImageSidebarPanel.tsx
index 97f08225..2b168260 100644
--- a/email-builder/src/App/InspectorDrawer/ConfigurationPanel/input-panels/ImageSidebarPanel.tsx
+++ b/email-builder/src/App/InspectorDrawer/ConfigurationPanel/input-panels/ImageSidebarPanel.tsx
@@ -35,6 +35,7 @@ export default function ImageSidebarPanel({ data, setData }: ImageSidebarPanelPr
<BaseSidebarPanel title="Image block">
<TextInput
label="Source URL"
+ className="image-url"
defaultValue={data.props?.url ?? ''}
onChange={(v) => {
const url = v.trim().length === 0 ? null : v.trim();
diff --git a/email-builder/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/TextInput.tsx b/email-builder/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/TextInput.tsx
index 4f23cbee..f3bf7e70 100644
--- a/email-builder/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/TextInput.tsx
+++ b/email-builder/src/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/TextInput.tsx
@@ -9,9 +9,10 @@ type Props = {
helperText?: string | JSX.Element;
InputProps?: InputProps;
defaultValue: string;
+ className?: string;
onChange: (v: string) => void;
};
-export default function TextInput({ helperText, label, placeholder, rows, InputProps, defaultValue, onChange }: Props) {
+export default function TextInput({ helperText, label, placeholder, rows, InputProps, defaultValue, className, onChange }: Props) {
const [value, setValue] = useState(defaultValue);
const isMultiline = typeof rows === 'number' && rows > 1;
return (
@@ -24,6 +25,7 @@ export default function TextInput({ helperText, label, placeholder, rows, InputP
placeholder={placeholder}
helperText={helperText}
InputProps={InputProps}
+ className={className}
value={value}
onChange={(ev) => {
const v = ev.target.value;
diff --git a/email-builder/src/App/TemplatePanel/index.tsx b/email-builder/src/App/TemplatePanel/index.tsx
index a4e92616..4b73e275 100644
--- a/email-builder/src/App/TemplatePanel/index.tsx
+++ b/email-builder/src/App/TemplatePanel/index.tsx
@@ -78,7 +78,6 @@ export default function TemplatePanel() {
borderBottom: 1,
borderColor: 'divider',
backgroundColor: 'white',
- position: 'sticky',
top: 0,
px: 1,
}}
diff --git a/email-builder/src/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/buttons.tsx b/email-builder/src/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/buttons.tsx
index 12427614..42bc09ec 100644
--- a/email-builder/src/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/buttons.tsx
+++ b/email-builder/src/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/buttons.tsx
@@ -57,7 +57,7 @@ export const BUTTONS: TButtonProps[] = [
data: {
props: {
text: 'Button',
- url: 'https://www.usewaypoint.com',
+ url: 'https://listmonk.app',
},
style: { padding: { top: 16, bottom: 16, left: 24, right: 24 } },
},
@@ -70,7 +70,7 @@ export const BUTTONS: TButtonProps[] = [
type: 'Image',
data: {
props: {
- url: 'https://assets.usewaypoint.com/sample-image.jpg',
+ url: 'https://upload.wikimedia.org/wikipedia/commons/3/3f/Placeholder_view_vector.svg',
alt: 'Sample product',
contentAlignment: 'middle',
linkHref: null,
@@ -86,7 +86,7 @@ export const BUTTONS: TButtonProps[] = [
type: 'Avatar',
data: {
props: {
- imageUrl: 'https://ui-avatars.com/api/?size=128',
+ imageUrl: 'https://upload.wikimedia.org/wikipedia/commons/8/89/Portrait_Placeholder.png',
shape: 'circle',
},
style: { padding: { top: 16, bottom: 16, left: 24, right: 24 } },
diff --git a/email-builder/src/getConfiguration/index.tsx b/email-builder/src/getConfiguration/index.tsx
index 6de82355..c4c28c6a 100644
--- a/email-builder/src/getConfiguration/index.tsx
+++ b/email-builder/src/getConfiguration/index.tsx
@@ -1,36 +1,6 @@
import EMPTY_EMAIL_MESSAGE from './sample/empty-email-message';
-import ONE_TIME_PASSCODE from './sample/one-time-passcode';
-import ORDER_ECOMMERCE from './sample/order-ecommerce';
-import POST_METRICS_REPORT from './sample/post-metrics-report';
-import RESERVATION_REMINDER from './sample/reservation-reminder';
-import RESET_PASSWORD from './sample/reset-password';
-import RESPOND_TO_MESSAGE from './sample/respond-to-message';
-import SUBSCRIPTION_RECEIPT from './sample/subscription-receipt';
-import WELCOME from './sample/welcome';
export default function getConfiguration(template: string) {
- if (template.startsWith('#sample/')) {
- const sampleName = template.replace('#sample/', '');
- switch (sampleName) {
- case 'welcome':
- return WELCOME;
- case 'one-time-password':
- return ONE_TIME_PASSCODE;
- case 'order-ecomerce':
- return ORDER_ECOMMERCE;
- case 'post-metrics-report':
- return POST_METRICS_REPORT;
- case 'reservation-reminder':
- return RESERVATION_REMINDER;
- case 'reset-password':
- return RESET_PASSWORD;
- case 'respond-to-message':
- return RESPOND_TO_MESSAGE;
- case 'subscription-receipt':
- return SUBSCRIPTION_RECEIPT;
- }
- }
-
if (template.startsWith('#code/')) {
const encodedString = template.replace('#code/', '');
const configurationString = decodeURIComponent(atob(encodedString));
diff --git a/email-builder/src/getConfiguration/sample/one-time-passcode.ts b/email-builder/src/getConfiguration/sample/one-time-passcode.ts
deleted file mode 100644
index 190e5c00..00000000
--- a/email-builder/src/getConfiguration/sample/one-time-passcode.ts
+++ /dev/null
@@ -1,130 +0,0 @@
-import { TEditorConfiguration } from '../../documents/editor/core';
-
-const ONE_TIME_PASSCODE: TEditorConfiguration = {
- root: {
- type: 'EmailLayout',
- data: {
- backdropColor: '#000000',
- canvasColor: '#000000',
- textColor: '#FFFFFF',
- fontFamily: 'BOOK_SERIF',
- childrenIds: [
- 'block_ChPX66qUhF46uynDE8AY11',
- 'block_CkNrtQgkqPt2YWLv1hr5eJ',
- 'block_BFLBa3q5y8kax9KngyXP65',
- 'block_4T7sDFb4rqbSyWjLGJKmov',
- 'block_Rvc8ZfTjfhXjpphHquJKvP',
- ],
- },
- },
- block_ChPX66qUhF46uynDE8AY11: {
- type: 'Image',
- data: {
- style: {
- backgroundColor: null,
- padding: {
- top: 24,
- bottom: 24,
- left: 24,
- right: 24,
- },
- textAlign: 'center',
- },
- props: {
- height: 24,
- url: 'https://d1iiu589g39o6c.cloudfront.net/live/platforms/platform_A9wwKSL6EV6orh6f/images/wptemplateimage_jc7ZfPvdHJ6rtH1W/&.png',
- contentAlignment: 'middle',
- },
- },
- },
- block_CkNrtQgkqPt2YWLv1hr5eJ: {
- type: 'Text',
- data: {
- style: {
- color: '#ffffff',
- backgroundColor: null,
- fontSize: 16,
- fontFamily: null,
- fontWeight: 'normal',
- textAlign: 'center',
- padding: {
- top: 16,
- bottom: 16,
- left: 24,
- right: 24,
- },
- },
- props: {
- text: 'Here is your one-time passcode:',
- },
- },
- },
- block_BFLBa3q5y8kax9KngyXP65: {
- type: 'Heading',
- data: {
- style: {
- color: null,
- backgroundColor: null,
- fontFamily: 'MONOSPACE',
- fontWeight: 'bold',
- textAlign: 'center',
- padding: {
- top: 16,
- bottom: 16,
- left: 24,
- right: 24,
- },
- },
- props: {
- level: 'h1',
- text: '0123456',
- },
- },
- },
- block_4T7sDFb4rqbSyWjLGJKmov: {
- type: 'Text',
- data: {
- style: {
- color: '#868686',
- backgroundColor: null,
- fontSize: 16,
- fontFamily: null,
- fontWeight: 'normal',
- textAlign: 'center',
- padding: {
- top: 16,
- bottom: 16,
- left: 24,
- right: 24,
- },
- },
- props: {
- text: 'This code will expire in 30 minutes.',
- },
- },
- },
- block_Rvc8ZfTjfhXjpphHquJKvP: {
- type: 'Text',
- data: {
- style: {
- color: '#868686',
- backgroundColor: null,
- fontSize: 14,
- fontFamily: null,
- fontWeight: 'normal',
- textAlign: 'center',
- padding: {
- top: 16,
- bottom: 16,
- left: 24,
- right: 24,
- },
- },
- props: {
- text: 'Problems? Just reply to this email.',
- },
- },
- },
-};
-
-export default ONE_TIME_PASSCODE;
diff --git a/email-builder/src/getConfiguration/sample/order-ecommerce.ts b/email-builder/src/getConfiguration/sample/order-ecommerce.ts
deleted file mode 100644
index 7f2ce0f5..00000000
--- a/email-builder/src/getConfiguration/sample/order-ecommerce.ts
+++ /dev/null
@@ -1,1445 +0,0 @@
-import { TEditorConfiguration } from '../../documents/editor/core';
-
-const ORDER_ECOMMERCE: TEditorConfiguration = {
- root: {
- type: 'EmailLayout',
- data: {
- backdropColor: '#FFFFFF',
- canvasColor: '#FFFFFF',
- textColor: '#333333',
- fontFamily: 'MODERN_SANS',
- childrenIds: [
- 'block_Ei34o65X5XnD5dexNQgXh8',
- 'block_SLut2hpFsy7U6SmhtLtWNU',
- 'block_RrwLc5YMpHJGE5Xe9fAZVW',
- 'block_FHCeHrN3XNaH7bu6HhjVNT',
- 'block_3vynUg15EevMA6DiLsWJk2',
- 'block_5eQPGdKJ6JQYXCD1MEaHbv',
- 'block_WK3b19BzGE8VNKDwiSZ8s8',
- 'block_Pe2Dm5Cbqq5CcjL5wEdMg4',
- 'block_SizNWJDCcqw9tGH2ComdDX',
- 'block_4Qxv32WQo8pDzPu1d3vixz',
- 'block_LKiZYDTPeJGkRWHForFSDQ',
- 'block_P6XtJj721vPfrhXKzS8uR5',
- 'block_AKTwpjBmtevcfj82z52i8p',
- ],
- },
- },
- block_PHe2XSbV4RvD76p21F3VdN: {
- type: 'Heading',
- data: {
- style: {
- color: null,
- backgroundColor: null,
- fontFamily: null,
- fontWeight: 'normal',
- textAlign: 'left',
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- level: 'h2',
- text: 'Unbranded Supply',
- },
- },
- },
- block_DeTzPQDerYjBEMkt6TuD41: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- childrenIds: ['block_PHe2XSbV4RvD76p21F3VdN'],
- },
- },
- },
- block_TPxZn2Fjxc7MwgXAEybxkV: {
- type: 'Text',
- data: {
- style: {
- color: '#808080',
- backgroundColor: null,
- fontSize: 14,
- fontFamily: null,
- fontWeight: 'normal',
- textAlign: 'right',
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- text: '#103571871',
- },
- },
- },
- block_5fuNN9F4uZRTGa4Hy5F4Nd: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- childrenIds: ['block_TPxZn2Fjxc7MwgXAEybxkV'],
- },
- },
- },
- block_Ei34o65X5XnD5dexNQgXh8: {
- type: 'ColumnsContainer',
- data: {
- style: {
- backgroundColor: null,
- padding: {
- top: 16,
- bottom: 24,
- left: 24,
- right: 24,
- },
- },
- props: {
- columnsCount: 2,
- columns: [
- {
- childrenIds: ['block_DeTzPQDerYjBEMkt6TuD41'],
- },
- {
- childrenIds: ['block_5fuNN9F4uZRTGa4Hy5F4Nd'],
- },
- {
- childrenIds: [],
- },
- ],
- },
- },
- },
- block_SLut2hpFsy7U6SmhtLtWNU: {
- type: 'Heading',
- data: {
- style: {
- color: null,
- backgroundColor: null,
- fontFamily: null,
- fontWeight: 'normal',
- textAlign: 'left',
- padding: {
- top: 16,
- bottom: 0,
- left: 24,
- right: 24,
- },
- },
- props: {
- level: 'h3',
- text: 'Thank you for your purchase!',
- },
- },
- },
- block_RrwLc5YMpHJGE5Xe9fAZVW: {
- type: 'Text',
- data: {
- style: {
- color: '#404040',
- backgroundColor: null,
- fontSize: 16,
- fontFamily: null,
- fontWeight: 'normal',
- textAlign: 'left',
- padding: {
- top: 16,
- bottom: 16,
- left: 24,
- right: 24,
- },
- },
- props: {
- text: 'Hi Jordan,\n\nWe are preparing your package. Your tracking number will be generated once the package is ready to ship.',
- },
- },
- },
- block_FHCeHrN3XNaH7bu6HhjVNT: {
- type: 'Button',
- data: {
- style: {
- backgroundColor: null,
- fontSize: 16,
- fontFamily: null,
- fontWeight: 'normal',
- textAlign: 'left',
- padding: {
- top: 16,
- bottom: 40,
- left: 24,
- right: 24,
- },
- },
- props: {
- buttonBackgroundColor: '#5696E5',
- buttonStyle: 'rounded',
- buttonTextColor: '#FFFFFF',
- fullWidth: false,
- size: 'large',
- text: 'View your order',
- url: 'https://example.usewaypoint.com/orders/103571871',
- },
- },
- },
- block_3vynUg15EevMA6DiLsWJk2: {
- type: 'Heading',
- data: {
- style: {
- color: null,
- backgroundColor: null,
- fontFamily: null,
- fontWeight: 'normal',
- textAlign: 'left',
- padding: {
- top: 16,
- bottom: 0,
- left: 24,
- right: 24,
- },
- },
- props: {
- level: 'h3',
- text: 'Order summary',
- },
- },
- },
- block_Dvs2GYcF6SzfCYYNwfv1oM: {
- type: 'Image',
- data: {
- style: {
- backgroundColor: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- textAlign: 'left',
- },
- props: {
- url: 'https://d1iiu589g39o6c.cloudfront.net/live/platforms/platform_A9wwKSL6EV6orh6f/images/wptemplateimage_FBfTeYhbdXtqYpCA/kiran-ck-6rXpQzfCYlw-unsplash.jpg',
- alt: '',
- linkHref: null,
- contentAlignment: 'middle',
- },
- },
- },
- block_KnMb2mQSf7nz8HXx6jyDUV: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- childrenIds: ['block_Dvs2GYcF6SzfCYYNwfv1oM'],
- },
- },
- },
- block_4sAeV4cLVKV8y4QFGV3Gf7: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 4,
- bottom: 4,
- left: 4,
- right: 4,
- },
- },
- props: {
- childrenIds: ['block_KnMb2mQSf7nz8HXx6jyDUV'],
- },
- },
- },
- block_TBZZDHvoKHcW3j2nwQgmhC: {
- type: 'Text',
- data: {
- style: {
- color: null,
- backgroundColor: null,
- fontSize: 16,
- fontFamily: null,
- fontWeight: 'bold',
- textAlign: 'left',
- padding: {
- top: 0,
- bottom: 4,
- left: 0,
- right: 0,
- },
- },
- props: {
- text: 'Unbranded Pen x 5',
- },
- },
- },
- block_KqpmZUcZajsnFMbTMhizZs: {
- type: 'Text',
- data: {
- style: {
- color: '#808080',
- backgroundColor: null,
- fontSize: 14,
- fontFamily: null,
- fontWeight: 'normal',
- textAlign: 'left',
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- text: 'Black / Black ink',
- },
- },
- },
- block_92JgagxxVxzyfnbvj5iUUJ: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- childrenIds: [],
- },
- },
- },
- block_9bNBgfiJJyh65pfsy1fu7e: {
- type: 'Text',
- data: {
- style: {
- color: '#808080',
- backgroundColor: null,
- fontSize: 12,
- fontFamily: null,
- fontWeight: 'normal',
- textAlign: 'left',
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- text: '($5.00)',
- },
- },
- },
- block_7JwR5SHM2Bfjihamh45tRL: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- childrenIds: [],
- },
- },
- },
- block_GQ77o7MDMwj48B5nocEJNq: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- childrenIds: ['block_TBZZDHvoKHcW3j2nwQgmhC', 'block_KqpmZUcZajsnFMbTMhizZs'],
- },
- },
- },
- block_6VvTYskm3BULZZEfYCkjwN: {
- type: 'Text',
- data: {
- style: {
- color: null,
- backgroundColor: null,
- fontSize: 16,
- fontFamily: null,
- fontWeight: 'bold',
- textAlign: 'right',
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- text: '$25.00',
- },
- },
- },
- block_V34TMZ9yg6t4xKMYfyD2Rk: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- childrenIds: ['block_6VvTYskm3BULZZEfYCkjwN'],
- },
- },
- },
- block_YBtUndjQaRuLFpEkgvjagk: {
- type: 'ColumnsContainer',
- data: {
- style: {
- backgroundColor: null,
- padding: {
- top: 0,
- bottom: 0,
- right: 0,
- left: 0,
- },
- },
- props: {
- fixedWidths: [64, null, 80],
- columnsCount: 3,
- columnsGap: 16,
- columns: [
- {
- childrenIds: ['block_4sAeV4cLVKV8y4QFGV3Gf7'],
- },
- {
- childrenIds: ['block_GQ77o7MDMwj48B5nocEJNq'],
- },
- {
- childrenIds: ['block_V34TMZ9yg6t4xKMYfyD2Rk'],
- },
- ],
- },
- },
- },
- block_XykBAUxf8awiR2CxBfNLZN: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- childrenIds: ['block_YBtUndjQaRuLFpEkgvjagk'],
- },
- },
- },
- block_9AvGGkcg4Rq93DmxXjXwEP: {
- type: 'Divider',
- data: {
- style: {
- backgroundColor: null,
- padding: {
- top: 8,
- bottom: 8,
- left: 0,
- right: 0,
- },
- },
- props: {
- lineHeight: 1,
- lineColor: '#EEEEEE',
- },
- },
- },
- block_5eQPGdKJ6JQYXCD1MEaHbv: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 16,
- bottom: 16,
- left: 24,
- right: 24,
- },
- },
- props: {
- childrenIds: ['block_XykBAUxf8awiR2CxBfNLZN', 'block_9AvGGkcg4Rq93DmxXjXwEP'],
- },
- },
- },
- block_Wnt477QxYNynetWGwkLg89: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- childrenIds: [],
- },
- },
- },
- block_FnzMxssTraByh9FbbnJvRw: {
- type: 'Text',
- data: {
- style: {
- color: '#808080',
- backgroundColor: null,
- fontSize: 16,
- fontFamily: null,
- fontWeight: 'normal',
- textAlign: 'left',
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- text: 'Discount (BLKFRI)',
- },
- },
- },
- block_NyMsczQB7L3BKUa1RpUauu: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- childrenIds: ['block_FnzMxssTraByh9FbbnJvRw'],
- },
- },
- },
- block_AcbYK2jnr4sqG1GAbUHqNL: {
- type: 'Text',
- data: {
- style: {
- color: null,
- backgroundColor: null,
- fontSize: 16,
- fontFamily: null,
- fontWeight: 'bold',
- textAlign: 'right',
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- text: '$5.00',
- },
- },
- },
- block_BgHgpkAxq2qJUttN8pimnE: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- childrenIds: ['block_AcbYK2jnr4sqG1GAbUHqNL'],
- },
- },
- },
- block_2QEX1chf5uWU5ZZebf4gmu: {
- type: 'ColumnsContainer',
- data: {
- style: {
- backgroundColor: null,
- padding: {
- top: 4,
- bottom: 4,
- left: 0,
- right: 0,
- },
- },
- props: {
- columnsCount: 2,
- columns: [
- {
- childrenIds: ['block_NyMsczQB7L3BKUa1RpUauu'],
- },
- {
- childrenIds: ['block_BgHgpkAxq2qJUttN8pimnE'],
- },
- {
- childrenIds: [],
- },
- ],
- },
- },
- },
- block_Q87SYRrWCwfRa56q3qLBDG: {
- type: 'Text',
- data: {
- style: {
- color: '#808080',
- backgroundColor: null,
- fontSize: 16,
- fontFamily: null,
- fontWeight: 'normal',
- textAlign: 'left',
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- text: 'Subtotal',
- },
- },
- },
- block_QUNbV1p7f9qaSEvyLmnxmD: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- childrenIds: ['block_Q87SYRrWCwfRa56q3qLBDG'],
- },
- },
- },
- block_cF6MdfmbKisXytmfPU4QY: {
- type: 'Text',
- data: {
- style: {
- color: null,
- backgroundColor: null,
- fontSize: 16,
- fontFamily: null,
- fontWeight: 'bold',
- textAlign: 'right',
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- text: '$25.00',
- },
- },
- },
- block_4WkcuRqzqvTFvHGSBLGAAG: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- childrenIds: ['block_cF6MdfmbKisXytmfPU4QY'],
- },
- },
- },
- block_Lu666sTP6hqLkHiBThmm4G: {
- type: 'ColumnsContainer',
- data: {
- style: {
- backgroundColor: null,
- padding: {
- top: 4,
- bottom: 4,
- left: 0,
- right: 0,
- },
- },
- props: {
- columnsCount: 2,
- columns: [
- {
- childrenIds: ['block_QUNbV1p7f9qaSEvyLmnxmD'],
- },
- {
- childrenIds: ['block_4WkcuRqzqvTFvHGSBLGAAG'],
- },
- {
- childrenIds: [],
- },
- ],
- },
- },
- },
- block_GgUZQtnTQbiBFhMdJE5YYB: {
- type: 'Text',
- data: {
- style: {
- color: '#808080',
- backgroundColor: null,
- fontSize: 16,
- fontFamily: null,
- fontWeight: 'normal',
- textAlign: 'left',
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- text: 'Shipping',
- },
- },
- },
- block_XzjZ3cnqJrKrwubFwD4VSr: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- childrenIds: ['block_GgUZQtnTQbiBFhMdJE5YYB'],
- },
- },
- },
- block_ViKMzYtjFGRksFuzRn5rny: {
- type: 'Text',
- data: {
- style: {
- color: null,
- backgroundColor: null,
- fontSize: 16,
- fontFamily: null,
- fontWeight: 'bold',
- textAlign: 'right',
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- text: '$5.00',
- },
- },
- },
- block_AcDrP2ZMVByFU269wvMgtw: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- childrenIds: ['block_ViKMzYtjFGRksFuzRn5rny'],
- },
- },
- },
- block_Gn2h8bajFuW8zDBsiVVitV: {
- type: 'ColumnsContainer',
- data: {
- style: {
- backgroundColor: null,
- padding: {
- top: 4,
- bottom: 4,
- left: 0,
- right: 0,
- },
- },
- props: {
- columnsCount: 2,
- columns: [
- {
- childrenIds: ['block_XzjZ3cnqJrKrwubFwD4VSr'],
- },
- {
- childrenIds: ['block_AcDrP2ZMVByFU269wvMgtw'],
- },
- {
- childrenIds: [],
- },
- ],
- },
- },
- },
- block_64aQbVaGVuFmvjPfr9hend: {
- type: 'Text',
- data: {
- style: {
- color: '#808080',
- backgroundColor: null,
- fontSize: 16,
- fontFamily: null,
- fontWeight: 'normal',
- textAlign: 'left',
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- text: 'Taxes',
- },
- },
- },
- block_QTKa4AdGxtSbJmRY7ytjD8: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- childrenIds: ['block_64aQbVaGVuFmvjPfr9hend'],
- },
- },
- },
- block_H1MgkbcNH4sz8pMC2h4dVh: {
- type: 'Text',
- data: {
- style: {
- color: null,
- backgroundColor: null,
- fontSize: 16,
- fontFamily: null,
- fontWeight: 'bold',
- textAlign: 'right',
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- text: '$0.00',
- },
- },
- },
- block_Mi7A4sXfSXaEcjFV17WgSg: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- childrenIds: ['block_H1MgkbcNH4sz8pMC2h4dVh'],
- },
- },
- },
- block_2xkeWLDtTXj5jFg57KhfYR: {
- type: 'ColumnsContainer',
- data: {
- style: {
- backgroundColor: null,
- padding: {
- top: 4,
- bottom: 4,
- left: 0,
- right: 0,
- },
- },
- props: {
- columnsCount: 2,
- columns: [
- {
- childrenIds: ['block_QTKa4AdGxtSbJmRY7ytjD8'],
- },
- {
- childrenIds: ['block_Mi7A4sXfSXaEcjFV17WgSg'],
- },
- {
- childrenIds: [],
- },
- ],
- },
- },
- },
- block_QgSNshqbsUkk4FrRywjoRd: {
- type: 'Divider',
- data: {
- style: {
- backgroundColor: null,
- padding: {
- top: 16,
- bottom: 16,
- left: 0,
- right: 0,
- },
- },
- props: {
- lineHeight: 1,
- lineColor: '#EEEEEE',
- },
- },
- },
- block_B5teSFiXFfpLmiB29c1WYF: {
- type: 'Text',
- data: {
- style: {
- color: '#808080',
- backgroundColor: null,
- fontSize: 16,
- fontFamily: null,
- fontWeight: 'normal',
- textAlign: 'left',
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- text: 'Total',
- },
- },
- },
- block_DPodDUHaaLcYuAG3CQi1F7: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- childrenIds: ['block_B5teSFiXFfpLmiB29c1WYF'],
- },
- },
- },
- block_Wo7gkfj5QDqEiXywi6e2dq: {
- type: 'Text',
- data: {
- style: {
- color: null,
- backgroundColor: null,
- fontSize: 21,
- fontFamily: null,
- fontWeight: 'bold',
- textAlign: 'right',
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- text: '$30.00',
- },
- },
- },
- block_YABuGb9jY34Rywk4H2wmhu: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- childrenIds: ['block_Wo7gkfj5QDqEiXywi6e2dq'],
- },
- },
- },
- block_VvK99ZhLLgmycHQXKVFV7E: {
- type: 'ColumnsContainer',
- data: {
- style: {
- backgroundColor: null,
- padding: {
- top: 4,
- bottom: 4,
- left: 0,
- right: 0,
- },
- },
- props: {
- columnsCount: 2,
- columns: [
- {
- childrenIds: ['block_DPodDUHaaLcYuAG3CQi1F7'],
- },
- {
- childrenIds: ['block_YABuGb9jY34Rywk4H2wmhu'],
- },
- {
- childrenIds: [],
- },
- ],
- },
- },
- },
- block_VhteQbJa7bCSmykN4AcHkp: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- childrenIds: [
- 'block_2QEX1chf5uWU5ZZebf4gmu',
- 'block_Lu666sTP6hqLkHiBThmm4G',
- 'block_Gn2h8bajFuW8zDBsiVVitV',
- 'block_2xkeWLDtTXj5jFg57KhfYR',
- 'block_QgSNshqbsUkk4FrRywjoRd',
- 'block_VvK99ZhLLgmycHQXKVFV7E',
- ],
- },
- },
- },
-
- block_WK3b19BzGE8VNKDwiSZ8s8: {
- type: 'ColumnsContainer',
- data: {
- style: {
- backgroundColor: null,
- padding: {
- top: 16,
- bottom: 16,
- left: 24,
- right: 24,
- },
- },
- props: {
- columnsCount: 2,
- columnsGap: 16,
- columns: [
- {
- childrenIds: ['block_Wnt477QxYNynetWGwkLg89'],
- },
- {
- childrenIds: ['block_VhteQbJa7bCSmykN4AcHkp'],
- },
- {
- childrenIds: [],
- },
- ],
- },
- },
- },
- block_Pe2Dm5Cbqq5CcjL5wEdMg4: {
- type: 'Heading',
- data: {
- style: {
- color: null,
- backgroundColor: null,
- fontFamily: null,
- fontWeight: 'normal',
- textAlign: 'left',
- padding: {
- top: 40,
- bottom: 24,
- left: 24,
- right: 24,
- },
- },
- props: {
- level: 'h3',
- text: 'Customer information',
- },
- },
- },
- block_2c68kHKvfEzD1DRVKqh4Pg: {
- type: 'Text',
- data: {
- style: {
- color: null,
- backgroundColor: null,
- fontSize: 16,
- fontFamily: null,
- fontWeight: 'bold',
- textAlign: 'left',
- padding: {
- top: 0,
- bottom: 8,
- left: 0,
- right: 0,
- },
- },
- props: {
- text: 'Shipping address',
- },
- },
- },
- block_SY5nL8mzSPgeEyeDgkDUEa: {
- type: 'Text',
- data: {
- style: {
- color: null,
- backgroundColor: null,
- fontSize: 14,
- fontFamily: null,
- fontWeight: 'normal',
- textAlign: 'left',
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- text: '123 Main St New York, NY 10002',
- },
- },
- },
- block_ThQEcRPtSMqKiThzU9EGwV: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- childrenIds: ['block_2c68kHKvfEzD1DRVKqh4Pg', 'block_SY5nL8mzSPgeEyeDgkDUEa'],
- },
- },
- },
- block_NkMSrWFvqewuenMYqLNcRa: {
- type: 'Text',
- data: {
- style: {
- color: null,
- backgroundColor: null,
- fontSize: 16,
- fontFamily: null,
- fontWeight: 'bold',
- textAlign: 'left',
- padding: {
- top: 0,
- bottom: 8,
- left: 0,
- right: 0,
- },
- },
- props: {
- text: 'Billing address',
- },
- },
- },
- block_7RTvDRNCQpM5xV6oXsCx6s: {
- type: 'Text',
- data: {
- style: {
- color: null,
- backgroundColor: null,
- fontSize: 14,
- fontFamily: null,
- fontWeight: 'normal',
- textAlign: 'left',
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- text: '123 Main St New York, NY 10002',
- },
- },
- },
- block_KaHi1FBV64emMA3kb7x4vE: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- childrenIds: ['block_NkMSrWFvqewuenMYqLNcRa', 'block_7RTvDRNCQpM5xV6oXsCx6s'],
- },
- },
- },
- block_SizNWJDCcqw9tGH2ComdDX: {
- type: 'ColumnsContainer',
- data: {
- style: {
- backgroundColor: null,
- padding: {
- top: 16,
- bottom: 16,
- left: 24,
- right: 24,
- },
- },
- props: {
- columnsCount: 2,
- columns: [
- {
- childrenIds: ['block_ThQEcRPtSMqKiThzU9EGwV'],
- },
- {
- childrenIds: ['block_KaHi1FBV64emMA3kb7x4vE'],
- },
- {
- childrenIds: [],
- },
- ],
- },
- },
- },
- block_4Qxv32WQo8pDzPu1d3vixz: {
- type: 'Text',
- data: {
- style: {
- color: null,
- backgroundColor: null,
- fontSize: 16,
- fontFamily: null,
- fontWeight: 'bold',
- textAlign: 'left',
- padding: {
- top: 24,
- bottom: 8,
- left: 24,
- right: 24,
- },
- },
- props: {
- text: 'Shipping method',
- },
- },
- },
- block_LKiZYDTPeJGkRWHForFSDQ: {
- type: 'Text',
- data: {
- style: {
- color: null,
- backgroundColor: null,
- fontSize: 14,
- fontFamily: null,
- fontWeight: 'normal',
- textAlign: 'left',
- padding: {
- top: 0,
- bottom: 48,
- left: 24,
- right: 24,
- },
- },
- props: {
- text: 'Ground – Standard',
- },
- },
- },
- block_P6XtJj721vPfrhXKzS8uR5: {
- type: 'Divider',
- data: {
- style: {
- backgroundColor: null,
- padding: {
- top: 16,
- bottom: 16,
- left: 0,
- right: 0,
- },
- },
- props: {
- lineHeight: 1,
- lineColor: '#EEEEEE',
- },
- },
- },
- block_AKTwpjBmtevcfj82z52i8p: {
- type: 'Text',
- data: {
- style: {
- color: null,
- backgroundColor: null,
- fontSize: 14,
- fontFamily: null,
- fontWeight: 'normal',
- textAlign: 'left',
- padding: {
- top: 16,
- bottom: 16,
- left: 24,
- right: 24,
- },
- },
- props: {
- text: 'If you have any questions, just reply to this email.',
- },
- },
- },
-};
-
-export default ORDER_ECOMMERCE;
diff --git a/email-builder/src/getConfiguration/sample/post-metrics-report.ts b/email-builder/src/getConfiguration/sample/post-metrics-report.ts
deleted file mode 100644
index 7094db90..00000000
--- a/email-builder/src/getConfiguration/sample/post-metrics-report.ts
+++ /dev/null
@@ -1,394 +0,0 @@
-import { TEditorConfiguration } from '../../documents/editor/core';
-
-const POST_METRICS_REPORT: TEditorConfiguration = {
- root: {
- type: 'EmailLayout',
- data: {
- backdropColor: '#EEEEEE',
- canvasColor: '#FFFFFF',
- textColor: '#242424',
- fontFamily: 'MODERN_SANS',
- childrenIds: [
- 'block_6B5Ke1N2KdM4STQjw7eEHT',
- 'block_VE1bKDbSqiYD9VtmmaYX7w',
- 'block_QQqjnauXAixe2LnJXVmHwQ',
- 'block_9yEYNZmmmFauyuSKi9iJA9',
- 'block_AC6eRbFVSbXHVCg2zutkLu',
- 'block_CYXkzjxrj6e4Sb74Kt8quM',
- 'block_AUAxG2BgwA6XC8rF5xAaaP',
- 'block_C1YvcFvMvzB1Fhxn3uV8zV',
- 'block_FsiiokCgr9bZitHn7sx7TB',
- 'block_DomD4MLJ58VcMo49vmeTH8',
- ],
- },
- },
- block_6sP1Pi9AimAoti2ZPdNXUf: {
- type: 'Image',
- data: {
- style: {
- backgroundColor: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- textAlign: 'left',
- },
- props: {
- height: 16,
- url: 'https://d1iiu589g39o6c.cloudfront.net/live/platforms/platform_A9wwKSL6EV6orh6f/images/wptemplateimage_n3eLjsf37dcjFaj5/Narrative.png',
- contentAlignment: 'middle',
- },
- },
- },
- block_9G37m6eNPw2MpUj6SYGoq1: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- childrenIds: ['block_6sP1Pi9AimAoti2ZPdNXUf'],
- },
- },
- },
- block_A8GU16mV1RdP85jaszN7oj: {
- type: 'Avatar',
- data: {
- style: {
- textAlign: 'right',
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- size: 32,
- shape: 'circle',
- imageUrl: 'https://ui-avatars.com/api/?name=John+Doe',
- alt: 'Jordan',
- },
- },
- },
- block_4WmdbYU15yfdpYcYjsVDBA: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- childrenIds: ['block_A8GU16mV1RdP85jaszN7oj'],
- },
- },
- },
- block_JQAdLSAtvmfsRih13srJ8m: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- childrenIds: [],
- },
- },
- },
- block_6B5Ke1N2KdM4STQjw7eEHT: {
- type: 'ColumnsContainer',
- data: {
- style: {
- backgroundColor: null,
- padding: {
- top: 24,
- bottom: 24,
- left: 24,
- right: 24,
- },
- },
- props: {
- columnsCount: 2,
- columns: [
- {
- childrenIds: ['block_9G37m6eNPw2MpUj6SYGoq1'],
- },
- {
- childrenIds: ['block_4WmdbYU15yfdpYcYjsVDBA'],
- },
- {
- childrenIds: ['block_JQAdLSAtvmfsRih13srJ8m'],
- },
- ],
- },
- },
- },
- block_VE1bKDbSqiYD9VtmmaYX7w: {
- type: 'Heading',
- data: {
- style: {
- color: null,
- backgroundColor: null,
- fontFamily: null,
- fontWeight: 'bold',
- textAlign: 'center',
- padding: {
- top: 24,
- bottom: 0,
- left: 24,
- right: 24,
- },
- },
- props: {
- level: 'h3',
- text: 'Last week, your posts received',
- },
- },
- },
- block_QQqjnauXAixe2LnJXVmHwQ: {
- type: 'Text',
- data: {
- style: {
- color: null,
- backgroundColor: null,
- fontSize: 48,
- fontFamily: null,
- fontWeight: 'bold',
- textAlign: 'center',
- padding: {
- top: 16,
- bottom: 0,
- left: 24,
- right: 24,
- },
- },
- props: {
- text: '1,511',
- },
- },
- },
- block_9yEYNZmmmFauyuSKi9iJA9: {
- type: 'Text',
- data: {
- style: {
- color: null,
- backgroundColor: null,
- fontSize: 14,
- fontFamily: null,
- fontWeight: 'bold',
- textAlign: 'center',
- padding: {
- top: 0,
- bottom: 16,
- left: 24,
- right: 24,
- },
- },
- props: {
- text: 'Post impressions',
- },
- },
- },
- block_AC6eRbFVSbXHVCg2zutkLu: {
- type: 'Button',
- data: {
- style: {
- backgroundColor: null,
- fontSize: 16,
- fontFamily: null,
- fontWeight: 'bold',
- textAlign: 'center',
- padding: {
- top: 16,
- bottom: 24,
- left: 24,
- right: 24,
- },
- },
- props: {
- buttonBackgroundColor: '#24AF7F',
- buttonStyle: 'rounded',
- buttonTextColor: '#FFFFFF',
- fullWidth: false,
- size: 'medium',
- text: 'View your analytics →',
- url: 'https://example.usewaypoint.com/post/1234/analytics',
- },
- },
- },
- block_CYXkzjxrj6e4Sb74Kt8quM: {
- type: 'Heading',
- data: {
- style: {
- color: null,
- backgroundColor: null,
- fontFamily: null,
- fontWeight: 'bold',
- textAlign: 'center',
- padding: {
- top: 24,
- bottom: 8,
- left: 24,
- right: 24,
- },
- },
- props: {
- level: 'h3',
- text: 'Top performing post last week',
- },
- },
- },
- block_FpDmSnPwiVzBXUvTc4yWFh: {
- type: 'Text',
- data: {
- style: {
- color: null,
- backgroundColor: null,
- fontSize: 16,
- fontFamily: null,
- fontWeight: 'normal',
- textAlign: 'left',
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- text: 'So excited to now have drag and drop on Waypoint. This builds on top of our new Navigator feature that we shipped earlier this week 🚢.',
- },
- },
- },
- block_LjuDF6uu4qWL3Ju3ng63ky: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: '#FAFAFA',
- borderColor: null,
- borderRadius: 8,
- padding: {
- top: 24,
- bottom: 24,
- left: 24,
- right: 24,
- },
- },
- props: {
- childrenIds: ['block_FpDmSnPwiVzBXUvTc4yWFh'],
- },
- },
- },
- block_AUAxG2BgwA6XC8rF5xAaaP: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 16,
- bottom: 16,
- left: 24,
- right: 24,
- },
- },
- props: {
- childrenIds: ['block_LjuDF6uu4qWL3Ju3ng63ky'],
- },
- },
- },
- block_C1YvcFvMvzB1Fhxn3uV8zV: {
- type: 'Button',
- data: {
- style: {
- backgroundColor: null,
- fontSize: 16,
- fontFamily: null,
- fontWeight: 'bold',
- textAlign: 'center',
- padding: {
- top: 16,
- bottom: 16,
- left: 24,
- right: 24,
- },
- },
- props: {
- buttonBackgroundColor: '#EEEEEE',
- buttonStyle: 'rounded',
- buttonTextColor: '#474849',
- fullWidth: false,
- size: 'medium',
- text: 'Show more',
- url: 'https://example.usewaypoint.com/jordanisip/posts',
- },
- },
- },
- block_FsiiokCgr9bZitHn7sx7TB: {
- type: 'Divider',
- data: {
- style: {
- backgroundColor: null,
- padding: {
- top: 40,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- lineHeight: 1,
- lineColor: '#EEEEEE',
- },
- },
- },
- block_DomD4MLJ58VcMo49vmeTH8: {
- type: 'Text',
- data: {
- style: {
- color: '#474849',
- backgroundColor: null,
- fontSize: 12,
- fontFamily: null,
- fontWeight: 'normal',
- textAlign: 'center',
- padding: {
- top: 24,
- bottom: 24,
- left: 24,
- right: 24,
- },
- },
- props: {
- text: 'Questions? Just reply to this email.',
- },
- },
- },
-};
-
-export default POST_METRICS_REPORT;
diff --git a/email-builder/src/getConfiguration/sample/reservation-reminder.ts b/email-builder/src/getConfiguration/sample/reservation-reminder.ts
deleted file mode 100644
index 28a3d992..00000000
--- a/email-builder/src/getConfiguration/sample/reservation-reminder.ts
+++ /dev/null
@@ -1,2197 +0,0 @@
-import { TEditorConfiguration } from '../../documents/editor/core';
-
-const RESERVATION_REMINDER: TEditorConfiguration = {
- root: {
- type: 'EmailLayout',
- data: {
- backdropColor: '#FFFFFF',
- canvasColor: '#FFFFFF',
- textColor: '#03124A',
- fontFamily: 'GEOMETRIC_SANS',
- childrenIds: [
- 'block_DDiR1Jz1iXY5aR1PMCzRAC',
- 'block_J98nQiyYeX1vJTu44ZSuua',
- 'block_M7imqmjHsmhd61LcdHJz5m',
- 'block_Fec2JmwhjNYJS7xWDyUqWu',
- 'block_E8jr6ieqZ4fwaHxj9C1uBF',
- 'block_H1hMtvKJ9b1eQ2aiEDjbTL',
- 'block_JJtd5TsPSjEMNhtKeMPh82',
- 'block_HRswcB2Ww7m3H4SijapqPq',
- 'block_kq85AQYHuSL8fXqqcZP7D',
- 'block_Sa3vmMr4AUT4W55Mx5EFxr',
- 'block_YF6R8BeMFE3XuiSP4cUex2',
- 'block_Qh1QiwAbDq1yxuzqBMAxbJ',
- 'block_FUvBg3iUzvmUcTjmjvo5Wd',
- 'block_UncM7Be9AkE197F3KYjpa5',
- 'block_8hNnkxhS84scJ18FCwRr4q',
- 'block_JihqAfW5u5wR8oQUJFP5kE',
- ],
- },
- },
- block_DDiR1Jz1iXY5aR1PMCzRAC: {
- type: 'Image',
- data: {
- style: {
- backgroundColor: null,
- padding: {
- top: 24,
- bottom: 24,
- left: 24,
- right: 24,
- },
- textAlign: 'left',
- },
- props: {
- height: 32,
- url: 'https://d1iiu589g39o6c.cloudfront.net/live/platforms/platform_A9wwKSL6EV6orh6f/images/wptemplateimage_RAFATLGe3CN1wDsb/birdhouse.png',
- contentAlignment: 'middle',
- },
- },
- },
- block_J98nQiyYeX1vJTu44ZSuua: {
- type: 'Heading',
- data: {
- style: {
- color: null,
- backgroundColor: null,
- fontFamily: null,
- fontWeight: 'bold',
- textAlign: 'left',
- padding: {
- top: 16,
- bottom: 0,
- left: 24,
- right: 24,
- },
- },
- props: {
- level: 'h2',
- text: 'Elaina arrives Sunday, May 21.',
- },
- },
- },
- block_M7imqmjHsmhd61LcdHJz5m: {
- type: 'Text',
- data: {
- style: {
- color: null,
- backgroundColor: null,
- fontSize: 16,
- fontFamily: null,
- fontWeight: 'normal',
- textAlign: 'left',
- padding: {
- top: 16,
- bottom: 16,
- left: 24,
- right: 24,
- },
- },
- props: {
- text: 'If you haven’t already, reach out to Elaina to send directions and coordinate check-in time.',
- },
- },
- },
- block_MEPSuGAUvE8WAg1AJWJvNU: {
- type: 'Avatar',
- data: {
- style: {
- textAlign: 'left',
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- size: 64,
- shape: 'circle',
- imageUrl: 'https://ui-avatars.com/api/?size=128&name=Elaina',
- alt: 'Elaina',
- },
- },
- },
- block_7MDe4niz9sWkSR7Un5BvRo: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- childrenIds: ['block_MEPSuGAUvE8WAg1AJWJvNU'],
- },
- },
- },
- block_5jMPEu49PGBxyGcuBYxXK2: {
- type: 'Heading',
- data: {
- style: {
- color: null,
- backgroundColor: null,
- fontFamily: null,
- fontWeight: 'bold',
- textAlign: 'left',
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- level: 'h3',
- text: 'Elaina',
- },
- },
- },
- block_NUv5obp6NnExg8DgonEyzm: {
- type: 'Text',
- data: {
- style: {
- color: '#2e3c68',
- backgroundColor: null,
- fontSize: 14,
- fontFamily: null,
- fontWeight: 'normal',
- textAlign: 'left',
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- text: 'United States\nMember since 2013',
- },
- },
- },
- block_NetzRCyQeJbPp2VWQwmxBP: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- childrenIds: ['block_5jMPEu49PGBxyGcuBYxXK2', 'block_NUv5obp6NnExg8DgonEyzm'],
- },
- },
- },
- block_GH41bF6mW4wxDywjsxKrAv: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- childrenIds: [],
- },
- },
- },
- block_UWushKnW34XryX4BSzpotP: {
- type: 'ColumnsContainer',
- data: {
- style: {
- backgroundColor: '#f8f8f8',
- padding: {
- top: 24,
- bottom: 24,
- left: 16,
- right: 16,
- },
- },
- props: {
- fixedWidths: [64, null, null],
- columnsCount: 2,
- columnsGap: 16,
- columns: [
- {
- childrenIds: ['block_7MDe4niz9sWkSR7Un5BvRo'],
- },
- {
- childrenIds: ['block_NetzRCyQeJbPp2VWQwmxBP'],
- },
- {
- childrenIds: ['block_GH41bF6mW4wxDywjsxKrAv'],
- },
- ],
- },
- },
- },
- block_Fec2JmwhjNYJS7xWDyUqWu: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 8,
- bottom: 8,
- left: 24,
- right: 24,
- },
- },
- props: {
- childrenIds: ['block_UWushKnW34XryX4BSzpotP'],
- },
- },
- },
- block_E8jr6ieqZ4fwaHxj9C1uBF: {
- type: 'Button',
- data: {
- style: {
- backgroundColor: null,
- fontSize: 16,
- fontFamily: null,
- fontWeight: 'bold',
- textAlign: 'left',
- padding: {
- top: 16,
- bottom: 16,
- left: 24,
- right: 24,
- },
- },
- props: {
- buttonBackgroundColor: '#03124A',
- buttonStyle: 'rounded',
- buttonTextColor: '#FFFFFF',
- fullWidth: false,
- size: 'large',
- text: 'Send Elaina a message',
- url: 'https://www.usewaypoint.com',
- },
- },
- },
- block_H1hMtvKJ9b1eQ2aiEDjbTL: {
- type: 'Image',
- data: {
- style: {
- backgroundColor: null,
- padding: {
- top: 24,
- bottom: 24,
- left: 24,
- right: 24,
- },
- textAlign: 'left',
- },
- props: {
- url: 'https://d1iiu589g39o6c.cloudfront.net/live/platforms/platform_A9wwKSL6EV6orh6f/images/wptemplateimage_QWeWcucRbjPqoewY/L1030293.jpg',
- alt: 'Photo',
- linkHref: 'https://example.usewaypoint.com/listings/r029348209842',
- contentAlignment: 'middle',
- },
- },
- },
- block_JJtd5TsPSjEMNhtKeMPh82: {
- type: 'Heading',
- data: {
- style: {
- color: null,
- backgroundColor: null,
- fontFamily: null,
- fontWeight: 'bold',
- textAlign: 'left',
- padding: {
- top: 0,
- bottom: 0,
- left: 24,
- right: 24,
- },
- },
- props: {
- level: 'h2',
- text: 'Private Hideaway in the North Shore',
- },
- },
- },
- block_HRswcB2Ww7m3H4SijapqPq: {
- type: 'Text',
- data: {
- style: {
- color: null,
- backgroundColor: null,
- fontSize: 16,
- fontFamily: null,
- fontWeight: 'normal',
- textAlign: 'left',
- padding: {
- top: 0,
- bottom: 16,
- left: 24,
- right: 24,
- },
- },
- props: {
- text: 'Entire home/apartment',
- },
- },
- },
- block_kq85AQYHuSL8fXqqcZP7D: {
- type: 'Divider',
- data: {
- style: {
- backgroundColor: null,
- padding: {
- top: 16,
- bottom: 16,
- left: 24,
- right: 24,
- },
- },
- props: {
- lineHeight: 1,
- lineColor: '#EEEEEE',
- },
- },
- },
- block_AvnqsSCo9CTXYXHfMCQvUN: {
- type: 'Heading',
- data: {
- style: {
- color: null,
- backgroundColor: null,
- fontFamily: null,
- fontWeight: 'bold',
- textAlign: 'left',
- padding: {
- top: 0,
- bottom: 8,
- left: 0,
- right: 0,
- },
- },
- props: {
- level: 'h3',
- text: 'Check in',
- },
- },
- },
- block_BsbDbmYTuyisEMXQY8dwW6: {
- type: 'Text',
- data: {
- style: {
- color: null,
- backgroundColor: null,
- fontSize: 16,
- fontFamily: null,
- fontWeight: 'normal',
- textAlign: 'left',
- padding: {
- top: 0,
- bottom: 16,
- left: 0,
- right: 0,
- },
- },
- props: {
- text: 'Sunday, May 21 2023.\nCheck-in anytime after 3:00 PM',
- },
- },
- },
- block_6G89B9zYn7ELqnioW62cLA: {
- type: 'Heading',
- data: {
- style: {
- color: null,
- backgroundColor: null,
- fontFamily: null,
- fontWeight: 'bold',
- textAlign: 'left',
- padding: {
- top: 16,
- bottom: 8,
- left: 0,
- right: 0,
- },
- },
- props: {
- level: 'h3',
- text: 'Check out',
- },
- },
- },
- block_DhZSQJBrQCXG17HSSMAfiq: {
- type: 'Text',
- data: {
- style: {
- color: null,
- backgroundColor: null,
- fontSize: 16,
- fontFamily: null,
- fontWeight: 'normal',
- textAlign: 'left',
- padding: {
- top: 0,
- bottom: 16,
- left: 0,
- right: 0,
- },
- },
- props: {
- text: 'Tuesday, May 23 2023.\nCheckout by 11:00 AM',
- },
- },
- },
- block_NAzWgDcqGdpeHWrspZ8fz7: {
- type: 'Divider',
- data: {
- style: {
- backgroundColor: null,
- padding: {
- top: 16,
- bottom: 16,
- left: 0,
- right: 0,
- },
- },
- props: {
- lineHeight: 1,
- lineColor: '#EEEEEE',
- },
- },
- },
- block_Sa3vmMr4AUT4W55Mx5EFxr: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 8,
- bottom: 8,
- left: 24,
- right: 24,
- },
- },
- props: {
- childrenIds: [
- 'block_AvnqsSCo9CTXYXHfMCQvUN',
- 'block_BsbDbmYTuyisEMXQY8dwW6',
- 'block_6G89B9zYn7ELqnioW62cLA',
- 'block_DhZSQJBrQCXG17HSSMAfiq',
- 'block_NAzWgDcqGdpeHWrspZ8fz7',
- ],
- },
- },
- },
- block_MxedV7vMjjU4ZsikW1Fadv: {
- type: 'Heading',
- data: {
- style: {
- color: null,
- backgroundColor: null,
- fontFamily: null,
- fontWeight: 'bold',
- textAlign: 'left',
- padding: {
- top: 0,
- bottom: 8,
- left: 0,
- right: 0,
- },
- },
- props: {
- level: 'h3',
- text: 'Guests',
- },
- },
- },
- block_8htLTdnN2CcAX67kwJFo2V: {
- type: 'Text',
- data: {
- style: {
- color: null,
- backgroundColor: null,
- fontSize: 16,
- fontFamily: null,
- fontWeight: 'normal',
- textAlign: 'left',
- padding: {
- top: 0,
- bottom: 16,
- left: 0,
- right: 0,
- },
- },
- props: {
- text: 'Let them know upfront if your listing is suitable for children by updating your House Rules.',
- },
- },
- },
- block_UR2m2tSekeEBy6s76D9Vju: {
- type: 'Divider',
- data: {
- style: {
- backgroundColor: null,
- padding: {
- top: 16,
- bottom: 16,
- left: 0,
- right: 0,
- },
- },
- props: {
- lineHeight: 1,
- lineColor: '#EEEEEE',
- },
- },
- },
- block_YF6R8BeMFE3XuiSP4cUex2: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 8,
- bottom: 8,
- left: 24,
- right: 24,
- },
- },
- props: {
- childrenIds: ['block_MxedV7vMjjU4ZsikW1Fadv', 'block_8htLTdnN2CcAX67kwJFo2V', 'block_UR2m2tSekeEBy6s76D9Vju'],
- },
- },
- },
- block_BouZQPSLfEfWvVp9qrHaW1: {
- type: 'Heading',
- data: {
- style: {
- color: null,
- backgroundColor: null,
- fontFamily: null,
- fontWeight: 'bold',
- textAlign: 'left',
- padding: {
- top: 0,
- bottom: 8,
- left: 0,
- right: 0,
- },
- },
- props: {
- level: 'h3',
- text: 'Confirmation code',
- },
- },
- },
- block_Si5vw3ga7PZppiYv6g7GV7: {
- type: 'Text',
- data: {
- style: {
- color: null,
- backgroundColor: null,
- fontSize: 16,
- fontFamily: null,
- fontWeight: 'normal',
- textAlign: 'left',
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- text: 'HMFN35C4MH',
- },
- },
- },
- block_S6ARLFYsniJdJdkkie4UNa: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- childrenIds: ['block_Si5vw3ga7PZppiYv6g7GV7'],
- },
- },
- },
- block_MawqUvY8CdWpQ84dy4eRsa: {
- type: 'Text',
- data: {
- style: {
- color: null,
- backgroundColor: null,
- fontSize: 16,
- fontFamily: null,
- fontWeight: 'bold',
- textAlign: 'right',
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- text: 'View itinerary',
- },
- },
- },
- block_KjrdgHLJcyAcsjKStPktPU: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- childrenIds: ['block_MawqUvY8CdWpQ84dy4eRsa'],
- },
- },
- },
- block_DK7wXQDdPd8rzFxMeyxDzs: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- childrenIds: [],
- },
- },
- },
- block_LHBuzMB27wJAjyi6bwLKeN: {
- type: 'ColumnsContainer',
- data: {
- style: {
- backgroundColor: null,
- padding: {
- top: 8,
- bottom: 16,
- left: 0,
- right: 0,
- },
- },
- props: {
- columnsCount: 2,
- columns: [
- {
- childrenIds: ['block_S6ARLFYsniJdJdkkie4UNa'],
- },
- {
- childrenIds: ['block_KjrdgHLJcyAcsjKStPktPU'],
- },
- {
- childrenIds: ['block_DK7wXQDdPd8rzFxMeyxDzs'],
- },
- ],
- },
- },
- },
- block_CWgMBgMBgpLMjqd1biz1mz: {
- type: 'Divider',
- data: {
- style: {
- backgroundColor: null,
- padding: {
- top: 16,
- bottom: 16,
- left: 0,
- right: 0,
- },
- },
- props: {
- lineHeight: 1,
- lineColor: '#EEEEEE',
- },
- },
- },
- block_Qh1QiwAbDq1yxuzqBMAxbJ: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 8,
- bottom: 8,
- left: 24,
- right: 24,
- },
- },
- props: {
- childrenIds: ['block_BouZQPSLfEfWvVp9qrHaW1', 'block_LHBuzMB27wJAjyi6bwLKeN', 'block_CWgMBgMBgpLMjqd1biz1mz'],
- },
- },
- },
- block_SnYxmj5ia2K4dqVEaZDLst: {
- type: 'Heading',
- data: {
- style: {
- color: null,
- backgroundColor: null,
- fontFamily: null,
- fontWeight: 'bold',
- textAlign: 'left',
- padding: {
- top: 0,
- bottom: 16,
- left: 0,
- right: 0,
- },
- },
- props: {
- level: 'h3',
- text: 'Guest paid',
- },
- },
- },
- block_DBsnXnwmLBhETFknwe3qJt: {
- type: 'Text',
- data: {
- style: {
- color: null,
- backgroundColor: null,
- fontSize: 16,
- fontFamily: null,
- fontWeight: 'normal',
- textAlign: 'left',
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- text: '$99.00 x 2 nights',
- },
- },
- },
- block_4DvvyfwDXkgXXsjswWE9DE: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- childrenIds: ['block_DBsnXnwmLBhETFknwe3qJt'],
- },
- },
- },
- block_L6NUphHkWkpcXZgzBbW9dM: {
- type: 'Text',
- data: {
- style: {
- color: null,
- backgroundColor: null,
- fontSize: 16,
- fontFamily: null,
- fontWeight: 'normal',
- textAlign: 'right',
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- text: '$198.00',
- },
- },
- },
- block_DE363EYUo29c6qTiQLFzHv: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- childrenIds: ['block_L6NUphHkWkpcXZgzBbW9dM'],
- },
- },
- },
- block_Hs2DNRHwYGFvzMGVrZWUat: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- childrenIds: [],
- },
- },
- },
- block_8rxqcogAeoRMFJJwHDLBvY: {
- type: 'ColumnsContainer',
- data: {
- style: {
- backgroundColor: null,
- padding: {
- top: 8,
- bottom: 8,
- left: 0,
- right: 0,
- },
- },
- props: {
- columnsCount: 2,
- columns: [
- {
- childrenIds: ['block_4DvvyfwDXkgXXsjswWE9DE'],
- },
- {
- childrenIds: ['block_DE363EYUo29c6qTiQLFzHv'],
- },
- {
- childrenIds: ['block_Hs2DNRHwYGFvzMGVrZWUat'],
- },
- ],
- },
- },
- },
- block_KbFcTU27iLRQK6eVKkJ5As: {
- type: 'Text',
- data: {
- style: {
- color: null,
- backgroundColor: null,
- fontSize: 16,
- fontFamily: null,
- fontWeight: 'normal',
- textAlign: 'left',
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- text: 'Cleaning fee',
- },
- },
- },
- block_McUGzTsrZTZGi8rXAs85KR: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- childrenIds: ['block_KbFcTU27iLRQK6eVKkJ5As'],
- },
- },
- },
- block_VhFNCUhgsbekxdnzvddmSH: {
- type: 'Text',
- data: {
- style: {
- color: null,
- backgroundColor: null,
- fontSize: 16,
- fontFamily: null,
- fontWeight: 'normal',
- textAlign: 'right',
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- text: '$50.00',
- },
- },
- },
- block_N5gv3mrQEm485SpKfBFHzi: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- childrenIds: ['block_VhFNCUhgsbekxdnzvddmSH'],
- },
- },
- },
- block_T3dLYTNNPBosywgZPEvuyn: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- childrenIds: [],
- },
- },
- },
- block_RUef6VdysRRfcaDSdPPPRL: {
- type: 'ColumnsContainer',
- data: {
- style: {
- backgroundColor: null,
- padding: {
- top: 8,
- bottom: 8,
- left: 0,
- right: 0,
- },
- },
- props: {
- columnsCount: 2,
- columns: [
- {
- childrenIds: ['block_McUGzTsrZTZGi8rXAs85KR'],
- },
- {
- childrenIds: ['block_N5gv3mrQEm485SpKfBFHzi'],
- },
- {
- childrenIds: ['block_T3dLYTNNPBosywgZPEvuyn'],
- },
- ],
- },
- },
- },
- block_4HKuXRyhnMPYfpEre1Y4EP: {
- type: 'Text',
- data: {
- style: {
- color: null,
- backgroundColor: null,
- fontSize: 16,
- fontFamily: null,
- fontWeight: 'normal',
- textAlign: 'left',
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- text: 'Guest service fee',
- },
- },
- },
- block_C9rqNoPW6sR7FJ94dCW48c: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- childrenIds: ['block_4HKuXRyhnMPYfpEre1Y4EP'],
- },
- },
- },
- block_BGnqpBpBPAJZMqiSB2tFhs: {
- type: 'Text',
- data: {
- style: {
- color: null,
- backgroundColor: null,
- fontSize: 16,
- fontFamily: null,
- fontWeight: 'normal',
- textAlign: 'right',
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- text: '$35.01',
- },
- },
- },
- block_8EUayHcU4ze8PPYG4uVyqQ: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- childrenIds: ['block_BGnqpBpBPAJZMqiSB2tFhs'],
- },
- },
- },
- block_NAdj8o21Qtuz5U1Ptsp8QS: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- childrenIds: [],
- },
- },
- },
- block_FDZhF8wpD8Am5TBAxqXYRn: {
- type: 'ColumnsContainer',
- data: {
- style: {
- backgroundColor: null,
- padding: {
- top: 8,
- bottom: 8,
- left: 0,
- right: 0,
- },
- },
- props: {
- columnsCount: 2,
- columns: [
- {
- childrenIds: ['block_C9rqNoPW6sR7FJ94dCW48c'],
- },
- {
- childrenIds: ['block_8EUayHcU4ze8PPYG4uVyqQ'],
- },
- {
- childrenIds: ['block_NAdj8o21Qtuz5U1Ptsp8QS'],
- },
- ],
- },
- },
- },
- block_Fnft7v54tmFaNiTJ3Qn5sg: {
- type: 'Text',
- data: {
- style: {
- color: null,
- backgroundColor: null,
- fontSize: 16,
- fontFamily: null,
- fontWeight: 'normal',
- textAlign: 'left',
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- text: 'Occupancy taxes',
- },
- },
- },
- block_Qvmy5aUBDfQXJyGjUyTZa3: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- childrenIds: ['block_Fnft7v54tmFaNiTJ3Qn5sg'],
- },
- },
- },
- block_Jnd8bMVCEZPckFeotT1H6F: {
- type: 'Text',
- data: {
- style: {
- color: null,
- backgroundColor: null,
- fontSize: 16,
- fontFamily: null,
- fontWeight: 'normal',
- textAlign: 'right',
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- text: '$46.02',
- },
- },
- },
- block_9LZ7J716qiGogPFAufpYdi: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- childrenIds: ['block_Jnd8bMVCEZPckFeotT1H6F'],
- },
- },
- },
- block_RU3D4pVFkQDvAyNS7P5rRR: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- childrenIds: [],
- },
- },
- },
- block_9Fj1tXV6otFnGdgJevbFPG: {
- type: 'ColumnsContainer',
- data: {
- style: {
- backgroundColor: null,
- padding: {
- top: 8,
- bottom: 8,
- left: 0,
- right: 0,
- },
- },
- props: {
- columnsCount: 2,
- columns: [
- {
- childrenIds: ['block_Qvmy5aUBDfQXJyGjUyTZa3'],
- },
- {
- childrenIds: ['block_9LZ7J716qiGogPFAufpYdi'],
- },
- {
- childrenIds: ['block_RU3D4pVFkQDvAyNS7P5rRR'],
- },
- ],
- },
- },
- },
- block_JgZwrNfGi5BfW8KWeZT4Gq: {
- type: 'Text',
- data: {
- style: {
- color: null,
- backgroundColor: null,
- fontSize: 16,
- fontFamily: null,
- fontWeight: 'bold',
- textAlign: 'left',
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- text: 'Total (USD)',
- },
- },
- },
- block_7eXpDRpkNETHdMN8Bkg9m1: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- childrenIds: ['block_JgZwrNfGi5BfW8KWeZT4Gq'],
- },
- },
- },
- block_8Xioqh7pENRgRhzFpVqh8w: {
- type: 'Text',
- data: {
- style: {
- color: null,
- backgroundColor: null,
- fontSize: 16,
- fontFamily: null,
- fontWeight: 'bold',
- textAlign: 'right',
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- text: '$329.03',
- },
- },
- },
- block_DCRQd2eFKSbUGvmQkxDdHs: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- childrenIds: ['block_8Xioqh7pENRgRhzFpVqh8w'],
- },
- },
- },
- block_65qW362ex9LdhQXx1dLSuq: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- childrenIds: [],
- },
- },
- },
- block_7FUnUJ6umTXZz3Mn54KLCY: {
- type: 'ColumnsContainer',
- data: {
- style: {
- backgroundColor: null,
- padding: {
- top: 24,
- bottom: 16,
- left: 0,
- right: 0,
- },
- },
- props: {
- columnsCount: 2,
- columns: [
- {
- childrenIds: ['block_7eXpDRpkNETHdMN8Bkg9m1'],
- },
- {
- childrenIds: ['block_DCRQd2eFKSbUGvmQkxDdHs'],
- },
- {
- childrenIds: ['block_65qW362ex9LdhQXx1dLSuq'],
- },
- ],
- },
- },
- },
- block_7RKLxAoSQFEyUSMx9fdkw3: {
- type: 'Divider',
- data: {
- style: {
- backgroundColor: null,
- padding: {
- top: 16,
- bottom: 16,
- left: 0,
- right: 0,
- },
- },
- props: {
- lineHeight: 1,
- lineColor: '#EEEEEE',
- },
- },
- },
- block_FUvBg3iUzvmUcTjmjvo5Wd: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 8,
- bottom: 8,
- left: 24,
- right: 24,
- },
- },
- props: {
- childrenIds: [
- 'block_SnYxmj5ia2K4dqVEaZDLst',
- 'block_8rxqcogAeoRMFJJwHDLBvY',
- 'block_RUef6VdysRRfcaDSdPPPRL',
- 'block_FDZhF8wpD8Am5TBAxqXYRn',
- 'block_9Fj1tXV6otFnGdgJevbFPG',
- 'block_7FUnUJ6umTXZz3Mn54KLCY',
- 'block_7RKLxAoSQFEyUSMx9fdkw3',
- ],
- },
- },
- },
- block_WQ5J7hXLdDXn8Vq4bVkAie: {
- type: 'Heading',
- data: {
- style: {
- color: null,
- backgroundColor: null,
- fontFamily: null,
- fontWeight: 'bold',
- textAlign: 'left',
- padding: {
- top: 0,
- bottom: 16,
- left: 0,
- right: 0,
- },
- },
- props: {
- level: 'h3',
- text: 'Host payout',
- },
- },
- },
- block_9ztgHz93w9GvUBGTrDUCHE: {
- type: 'Text',
- data: {
- style: {
- color: null,
- backgroundColor: null,
- fontSize: 16,
- fontFamily: null,
- fontWeight: 'normal',
- textAlign: 'left',
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- text: '$99.00 x 2 nights',
- },
- },
- },
- block_CbV491KJbEv4crKswx5HHD: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- childrenIds: ['block_9ztgHz93w9GvUBGTrDUCHE'],
- },
- },
- },
- block_GJqkQ13ELZmPRexPJirGiF: {
- type: 'Text',
- data: {
- style: {
- color: null,
- backgroundColor: null,
- fontSize: 16,
- fontFamily: null,
- fontWeight: 'normal',
- textAlign: 'right',
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- text: '$198.00',
- },
- },
- },
- block_BPtTenyy93Su76mzF1cpqd: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- childrenIds: ['block_GJqkQ13ELZmPRexPJirGiF'],
- },
- },
- },
- block_94kXBLAgQPLF79YgFvAefs: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- childrenIds: [],
- },
- },
- },
- block_StE5sGCYCoZTGAgs5KDKVX: {
- type: 'ColumnsContainer',
- data: {
- style: {
- backgroundColor: null,
- padding: {
- top: 8,
- bottom: 8,
- left: 0,
- right: 0,
- },
- },
- props: {
- columnsCount: 2,
- columns: [
- {
- childrenIds: ['block_CbV491KJbEv4crKswx5HHD'],
- },
- {
- childrenIds: ['block_BPtTenyy93Su76mzF1cpqd'],
- },
- {
- childrenIds: ['block_94kXBLAgQPLF79YgFvAefs'],
- },
- ],
- },
- },
- },
- block_NAtKDFR77MRHULTzQJy3M4: {
- type: 'Text',
- data: {
- style: {
- color: null,
- backgroundColor: null,
- fontSize: 16,
- fontFamily: null,
- fontWeight: 'normal',
- textAlign: 'left',
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- text: 'Cleaning fee',
- },
- },
- },
- block_GG9WkMFMLq5ySDKBScvVnF: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- childrenIds: ['block_NAtKDFR77MRHULTzQJy3M4'],
- },
- },
- },
- block_ScETZ7SFzGKLaxS5NqDh96: {
- type: 'Text',
- data: {
- style: {
- color: null,
- backgroundColor: null,
- fontSize: 16,
- fontFamily: null,
- fontWeight: 'normal',
- textAlign: 'right',
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- text: '$50.00',
- },
- },
- },
- block_NAzfAuBqmG9wA2j2qykgF7: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- childrenIds: ['block_ScETZ7SFzGKLaxS5NqDh96'],
- },
- },
- },
- block_QAXFjyCSg9Mwog7ukkRzcX: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- childrenIds: [],
- },
- },
- },
- block_RYUv7gd391axaL7itsyKqD: {
- type: 'ColumnsContainer',
- data: {
- style: {
- backgroundColor: null,
- padding: {
- top: 8,
- bottom: 8,
- left: 0,
- right: 0,
- },
- },
- props: {
- columnsCount: 2,
- columns: [
- {
- childrenIds: ['block_GG9WkMFMLq5ySDKBScvVnF'],
- },
- {
- childrenIds: ['block_NAzfAuBqmG9wA2j2qykgF7'],
- },
- {
- childrenIds: ['block_QAXFjyCSg9Mwog7ukkRzcX'],
- },
- ],
- },
- },
- },
- block_LLCNdKMpQ7YzhfmVU5GhCR: {
- type: 'Text',
- data: {
- style: {
- color: null,
- backgroundColor: null,
- fontSize: 16,
- fontFamily: null,
- fontWeight: 'normal',
- textAlign: 'left',
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- text: 'Host service fee (3%)',
- },
- },
- },
- block_Y5UCxoKxDgggVgnrgPakvt: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- childrenIds: ['block_LLCNdKMpQ7YzhfmVU5GhCR'],
- },
- },
- },
- block_G9S6kAvgE1VkeoytcpG7dg: {
- type: 'Text',
- data: {
- style: {
- color: null,
- backgroundColor: null,
- fontSize: 16,
- fontFamily: null,
- fontWeight: 'normal',
- textAlign: 'right',
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- text: '$7.44',
- },
- },
- },
- block_QrX6x2NPgGGScZPn4mSe1a: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- childrenIds: ['block_G9S6kAvgE1VkeoytcpG7dg'],
- },
- },
- },
- block_QYx54o6C4Tvkw58N3nMt9t: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- childrenIds: [],
- },
- },
- },
- block_LSBTeahYDd47Fxt3ymwBZj: {
- type: 'ColumnsContainer',
- data: {
- style: {
- backgroundColor: null,
- padding: {
- top: 8,
- bottom: 8,
- left: 0,
- right: 0,
- },
- },
- props: {
- columnsCount: 2,
- columns: [
- {
- childrenIds: ['block_Y5UCxoKxDgggVgnrgPakvt'],
- },
- {
- childrenIds: ['block_QrX6x2NPgGGScZPn4mSe1a'],
- },
- {
- childrenIds: ['block_QYx54o6C4Tvkw58N3nMt9t'],
- },
- ],
- },
- },
- },
- block_JRj1iySUsD8LjG1r9R1qCP: {
- type: 'Text',
- data: {
- style: {
- color: null,
- backgroundColor: null,
- fontSize: 16,
- fontFamily: null,
- fontWeight: 'bold',
- textAlign: 'left',
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- text: 'Total (USD)',
- },
- },
- },
- block_FANLGemZZEXcrKPfe1CNw: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- childrenIds: ['block_JRj1iySUsD8LjG1r9R1qCP'],
- },
- },
- },
- block_LFBMTsnpzjENRjTbjecCr9: {
- type: 'Text',
- data: {
- style: {
- color: null,
- backgroundColor: null,
- fontSize: 16,
- fontFamily: null,
- fontWeight: 'bold',
- textAlign: 'right',
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- text: '$240.56',
- },
- },
- },
- block_Eb9iDCjkJQBET2qNsaL74L: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- childrenIds: ['block_LFBMTsnpzjENRjTbjecCr9'],
- },
- },
- },
- block_UPrvRbjeyXXT57HiVpHxuH: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- childrenIds: [],
- },
- },
- },
- block_V7XtD9k81GjEmSt2HHCrQH: {
- type: 'ColumnsContainer',
- data: {
- style: {
- backgroundColor: null,
- padding: {
- top: 24,
- bottom: 16,
- left: 0,
- right: 0,
- },
- },
- props: {
- columnsCount: 2,
- columns: [
- {
- childrenIds: ['block_FANLGemZZEXcrKPfe1CNw'],
- },
- {
- childrenIds: ['block_Eb9iDCjkJQBET2qNsaL74L'],
- },
- {
- childrenIds: ['block_UPrvRbjeyXXT57HiVpHxuH'],
- },
- ],
- },
- },
- },
- block_9tD2RA16EdVQfPXKNSXeru: {
- type: 'Text',
- data: {
- style: {
- color: null,
- backgroundColor: null,
- fontSize: 16,
- fontFamily: null,
- fontWeight: 'normal',
- textAlign: 'left',
- padding: {
- top: 16,
- bottom: 16,
- left: 0,
- right: 0,
- },
- },
- props: {
- text: 'The money you earn hosting will be sent to you 24 hours after your guest arrives. You can check your upcoming payments in your transaction history.',
- },
- },
- },
- block_A9ub75sjdu8XvuCnwSA9AC: {
- type: 'Divider',
- data: {
- style: {
- backgroundColor: null,
- padding: {
- top: 16,
- bottom: 16,
- left: 0,
- right: 0,
- },
- },
- props: {
- lineHeight: 1,
- lineColor: '#EEEEEE',
- },
- },
- },
- block_UncM7Be9AkE197F3KYjpa5: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 8,
- bottom: 8,
- left: 24,
- right: 24,
- },
- },
- props: {
- childrenIds: [
- 'block_WQ5J7hXLdDXn8Vq4bVkAie',
- 'block_StE5sGCYCoZTGAgs5KDKVX',
- 'block_RYUv7gd391axaL7itsyKqD',
- 'block_LSBTeahYDd47Fxt3ymwBZj',
- 'block_V7XtD9k81GjEmSt2HHCrQH',
- 'block_9tD2RA16EdVQfPXKNSXeru',
- 'block_A9ub75sjdu8XvuCnwSA9AC',
- ],
- },
- },
- },
- block_3vaa8gDUB8D7gyYzTpKGzN: {
- type: 'Heading',
- data: {
- style: {
- color: null,
- backgroundColor: null,
- fontFamily: null,
- fontWeight: 'bold',
- textAlign: 'left',
- padding: {
- top: 0,
- bottom: 8,
- left: 0,
- right: 0,
- },
- },
- props: {
- level: 'h3',
- text: 'Cancellations',
- },
- },
- },
- block_AqF4QDsGrVadYYB9yJywmL: {
- type: 'Text',
- data: {
- style: {
- color: null,
- backgroundColor: null,
- fontSize: 16,
- fontFamily: null,
- fontWeight: 'normal',
- textAlign: 'left',
- padding: {
- top: 0,
- bottom: 24,
- left: 0,
- right: 0,
- },
- },
- props: {
- text: 'Your cancellation policy for guests is Moderate.\n\nThe penalties for canceling this reservation include getting a public review that shows you canceled, paying a cancellation fee, and having the canceled nights blocked on your calendar.',
- },
- },
- },
- block_F9xbhy5omsUCjE9MuDfxJ5: {
- type: 'Divider',
- data: {
- style: {
- backgroundColor: null,
- padding: {
- top: 16,
- bottom: 16,
- left: 0,
- right: 0,
- },
- },
- props: {
- lineHeight: 1,
- lineColor: '#EEEEEE',
- },
- },
- },
- block_8hNnkxhS84scJ18FCwRr4q: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 8,
- bottom: 0,
- left: 24,
- right: 24,
- },
- },
- props: {
- childrenIds: ['block_3vaa8gDUB8D7gyYzTpKGzN', 'block_AqF4QDsGrVadYYB9yJywmL', 'block_F9xbhy5omsUCjE9MuDfxJ5'],
- },
- },
- },
- block_JihqAfW5u5wR8oQUJFP5kE: {
- type: 'Text',
- data: {
- style: {
- color: null,
- backgroundColor: null,
- fontSize: 14,
- fontFamily: null,
- fontWeight: 'normal',
- textAlign: 'left',
- padding: {
- top: 16,
- bottom: 16,
- left: 24,
- right: 24,
- },
- },
- props: {
- text: 'Need help? Just reply to this email.',
- },
- },
- },
-};
-
-export default RESERVATION_REMINDER;
diff --git a/email-builder/src/getConfiguration/sample/reset-password.ts b/email-builder/src/getConfiguration/sample/reset-password.ts
deleted file mode 100644
index 353df359..00000000
--- a/email-builder/src/getConfiguration/sample/reset-password.ts
+++ /dev/null
@@ -1,156 +0,0 @@
-import { TEditorConfiguration } from '../../documents/editor/core';
-
-const RESET_PASSWORD: TEditorConfiguration = {
- root: {
- type: 'EmailLayout',
- data: {
- backdropColor: '#F2F5F7',
- canvasColor: '#FFFFFF',
- textColor: '#242424',
- fontFamily: 'MODERN_SANS',
- childrenIds: [
- 'block_3gpSGmkgL4nWSBQjWCjK2z',
- 'block_BjpQ7DGTtvaEuYRMd7VE7w',
- 'block_xyg4GWmgGbJJEDRQc76bC',
- 'block_76VptLCZ47t3EkAarUufEJ',
- 'block_Gtk3kDYwsJqEmQf2XGWPRc',
- 'block_LACDCzUS2bsvEbmnq1KHuW',
- ],
- },
- },
- block_3gpSGmkgL4nWSBQjWCjK2z: {
- type: 'Image',
- data: {
- style: {
- padding: {
- top: 24,
- bottom: 8,
- right: 24,
- left: 24,
- },
- backgroundColor: null,
- textAlign: 'left',
- },
- props: {
- height: 24,
- url: 'https://d1iiu589g39o6c.cloudfront.net/live/platforms/platform_A9wwKSL6EV6orh6f/images/wptemplateimage_Xh1R23U9ziyct9nd/codoc.png',
- alt: '',
- linkHref: null,
- contentAlignment: 'middle',
- },
- },
- },
- block_BjpQ7DGTtvaEuYRMd7VE7w: {
- type: 'Heading',
- data: {
- style: {
- color: null,
- backgroundColor: null,
- fontFamily: null,
- fontWeight: 'bold',
- textAlign: 'left',
- padding: {
- top: 32,
- bottom: 0,
- left: 24,
- right: 24,
- },
- },
- props: {
- level: 'h3',
- text: 'Reset your password?',
- },
- },
- },
- block_xyg4GWmgGbJJEDRQc76bC: {
- type: 'Text',
- data: {
- style: {
- color: '#474849',
- backgroundColor: null,
- fontSize: 14,
- fontFamily: null,
- fontWeight: 'normal',
- textAlign: 'left',
- padding: {
- top: 8,
- bottom: 16,
- left: 24,
- right: 24,
- },
- },
- props: {
- text: `If you didn't request a reset, don't worry. You can safely ignore this email.`,
- },
- },
- },
- block_76VptLCZ47t3EkAarUufEJ: {
- type: 'Button',
- data: {
- style: {
- backgroundColor: null,
- fontSize: 14,
- fontFamily: null,
- fontWeight: 'bold',
- textAlign: 'left',
- padding: {
- top: 12,
- bottom: 32,
- right: 24,
- left: 24,
- },
- },
- props: {
- buttonBackgroundColor: '#0068FF',
- buttonStyle: 'rectangle',
- buttonTextColor: '#FFFFFF',
- fullWidth: false,
- size: 'medium',
- text: 'Change my password',
- url: 'https://example.usewaypoint.com/reset_password?token=02938409809w8r09a83wr098aw0',
- },
- },
- },
- block_Gtk3kDYwsJqEmQf2XGWPRc: {
- type: 'Divider',
- data: {
- style: {
- backgroundColor: null,
- padding: {
- top: 16,
- bottom: 16,
- left: 24,
- right: 24,
- },
- },
- props: {
- lineHeight: 1,
- lineColor: '#EEEEEE',
- },
- },
- },
- block_LACDCzUS2bsvEbmnq1KHuW: {
- type: 'Text',
- data: {
- style: {
- color: '#474849',
- backgroundColor: null,
- fontSize: 12,
- fontFamily: null,
- fontWeight: 'normal',
- textAlign: 'left',
- padding: {
- top: 4,
- bottom: 24,
- left: 24,
- right: 24,
- },
- },
- props: {
- text: 'Need help? Just reply to this email to contact support.',
- },
- },
- },
-};
-
-export default RESET_PASSWORD;
diff --git a/email-builder/src/getConfiguration/sample/respond-to-message.ts b/email-builder/src/getConfiguration/sample/respond-to-message.ts
deleted file mode 100644
index 7b554afc..00000000
--- a/email-builder/src/getConfiguration/sample/respond-to-message.ts
+++ /dev/null
@@ -1,175 +0,0 @@
-import { TEditorConfiguration } from '../../documents/editor/core';
-
-const RESPOND_TO_MESSAGE: TEditorConfiguration = {
- root: {
- type: 'EmailLayout',
- data: {
- backdropColor: '#F0ECE5',
- canvasColor: '#F0ECE5',
- textColor: '#030303',
- fontFamily: 'MODERN_SERIF',
- childrenIds: [
- 'block_HjX7RN8eDEz7BLBHSQCNgU',
- 'block_Jf65r5cUAnEzBfxnHKGa5S',
- 'block_WmPDNHDpyHkygqjHuqF7St',
- 'block_4VCKUvRMo7EbuMdN1VsdRw',
- 'block_4siwziT4BkewmN55PpXvEu',
- 'block_S9Rg9F3bGcviRyfMpoU5e4',
- ],
- },
- },
- block_HjX7RN8eDEz7BLBHSQCNgU: {
- type: 'Image',
- data: {
- style: {
- padding: {
- top: 8,
- bottom: 24,
- left: 24,
- right: 24,
- },
- },
- props: {
- height: 32,
- url: 'https://d1iiu589g39o6c.cloudfront.net/live/platforms/platform_A9wwKSL6EV6orh6f/images/wptemplateimage_hW6RusynHUNTKoLm/boop.png',
- contentAlignment: 'middle',
- },
- },
- },
- block_Jf65r5cUAnEzBfxnHKGa5S: {
- type: 'Heading',
- data: {
- style: {
- color: null,
- backgroundColor: null,
- fontFamily: null,
- fontWeight: null,
- textAlign: null,
- padding: {
- top: 16,
- bottom: 0,
- left: 24,
- right: 24,
- },
- },
- props: {
- level: 'h2',
- text: `Respond to Anna's Inquiry`,
- },
- },
- },
- block_WmPDNHDpyHkygqjHuqF7St: {
- type: 'Text',
- data: {
- style: {
- color: null,
- backgroundColor: null,
- fontSize: 16,
- fontFamily: null,
- fontWeight: null,
- textAlign: null,
- padding: {
- top: 8,
- bottom: 16,
- left: 24,
- right: 24,
- },
- },
- props: {
- text: 'Dog boarding for Aug 1 - Aug 29.',
- },
- },
- },
- block_95nkowWyi4p2VBiA46Eizs: {
- type: 'Text',
- data: {
- style: {
- color: null,
- backgroundColor: '#faf9f9',
- fontSize: 21,
- fontFamily: null,
- fontWeight: null,
- textAlign: null,
- padding: {
- top: 24,
- bottom: 24,
- left: 24,
- right: 24,
- },
- },
- props: {
- text: 'Any chance you can watch Emma again next month?',
- },
- },
- },
- block_4VCKUvRMo7EbuMdN1VsdRw: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 16,
- bottom: 16,
- left: 24,
- right: 24,
- },
- },
- props: {
- childrenIds: ['block_95nkowWyi4p2VBiA46Eizs'],
- },
- },
- },
- block_4siwziT4BkewmN55PpXvEu: {
- type: 'Button',
- data: {
- style: {
- backgroundColor: null,
- fontSize: 16,
- fontFamily: null,
- fontWeight: null,
- textAlign: 'left',
- padding: {
- top: 24,
- bottom: 24,
- left: 24,
- right: 24,
- },
- },
- props: {
- buttonBackgroundColor: '#BE4F46',
- buttonTextColor: '#FFFFFF',
- size: 'large',
- buttonStyle: 'pill',
- text: 'Respond',
- url: 'http://example.usewaypoint.com/request/2334234',
- fullWidth: false,
- },
- },
- },
- block_S9Rg9F3bGcviRyfMpoU5e4: {
- type: 'Text',
- data: {
- style: {
- color: null,
- backgroundColor: null,
- fontSize: 16,
- fontFamily: null,
- fontWeight: 'normal',
- textAlign: 'left',
- padding: {
- top: 0,
- bottom: 16,
- left: 24,
- right: 24,
- },
- },
- props: {
- text: 'You need 2 more walks to become a Super Walker on Boop!',
- },
- },
- },
-};
-
-export default RESPOND_TO_MESSAGE;
diff --git a/email-builder/src/getConfiguration/sample/subscription-receipt.ts b/email-builder/src/getConfiguration/sample/subscription-receipt.ts
deleted file mode 100644
index 9755c771..00000000
--- a/email-builder/src/getConfiguration/sample/subscription-receipt.ts
+++ /dev/null
@@ -1,1349 +0,0 @@
-import { TEditorConfiguration } from '../../documents/editor/core';
-
-const SUBSCRIPTION_RECEIPT: TEditorConfiguration = {
- root: {
- type: 'EmailLayout',
- data: {
- backdropColor: '#F5F5F5',
- canvasColor: '#F5F5F5',
- textColor: '#242424',
- fontFamily: 'MODERN_SANS',
- childrenIds: [
- 'block_URcE7RiYB227zNraU1Nujd',
- 'block_TisRUSez8uPYr6bgHLKQeg',
- 'block_UQHMPb5NFLrY9PkWUckmHb',
- 'block_FLTQdJVBNsmRxurTZTSC2V',
- 'block_Qq64GeHw7K24Fgz5oX81kt',
- ],
- },
- },
- block_DNGbxXXMnwkRrecLDTP6VR: {
- type: 'Image',
- data: {
- style: {
- backgroundColor: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- textAlign: 'left',
- },
- props: {
- height: 18,
- url: 'https://d1iiu589g39o6c.cloudfront.net/live/platforms/platform_A9wwKSL6EV6orh6f/images/wptemplateimage_9TcdHLq5SpEkRADB/REMIX.png',
- alt: 'Remix',
- linkHref: 'https://remix.example.com',
- contentAlignment: 'middle',
- },
- },
- },
- block_ULKdXApwJ1dsJCa5fntAXV: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- childrenIds: ['block_DNGbxXXMnwkRrecLDTP6VR'],
- },
- },
- },
- block_FBxe99baQhH1dptybLYVrF: {
- type: 'Button',
- data: {
- style: {
- backgroundColor: null,
- fontSize: 14,
- fontFamily: null,
- fontWeight: 'normal',
- textAlign: 'right',
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- buttonBackgroundColor: '#FFFFFF',
- buttonStyle: 'pill',
- buttonTextColor: '#242424',
- fullWidth: false,
- size: 'medium',
- text: 'Sign in',
- url: 'https://remix.example.com/dashboard',
- },
- },
- },
- block_WDjxjPcraFGwiBHj5vjhdV: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- childrenIds: ['block_FBxe99baQhH1dptybLYVrF'],
- },
- },
- },
- block_JUxxjtK5TSUk9MV6Rtra4Q: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- childrenIds: [],
- },
- },
- },
- block_URcE7RiYB227zNraU1Nujd: {
- type: 'ColumnsContainer',
- data: {
- style: {
- backgroundColor: '#f5f5f5',
- padding: {
- top: 16,
- bottom: 16,
- left: 24,
- right: 24,
- },
- },
- props: {
- columnsCount: 2,
- columns: [
- {
- childrenIds: ['block_ULKdXApwJ1dsJCa5fntAXV'],
- },
- {
- childrenIds: ['block_WDjxjPcraFGwiBHj5vjhdV'],
- },
- {
- childrenIds: ['block_JUxxjtK5TSUk9MV6Rtra4Q'],
- },
- ],
- },
- },
- },
- block_9mYZ55v7d29WRjNgPf5cuw: {
- type: 'Text',
- data: {
- style: {
- color: null,
- backgroundColor: null,
- fontSize: 14,
- fontFamily: null,
- fontWeight: 'normal',
- textAlign: 'left',
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- text: 'Receipt from Remix Studios, Inc.',
- },
- },
- },
- block_R5vyrdxj7v4FqyFbQ7iDBM: {
- type: 'Heading',
- data: {
- style: {
- color: null,
- backgroundColor: null,
- fontFamily: null,
- fontWeight: 'bold',
- textAlign: 'left',
- padding: {
- top: 16,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- level: 'h1',
- text: '$99.75',
- },
- },
- },
- block_7vHVGWiRQYr8sigcW9nJvD: {
- type: 'Text',
- data: {
- style: {
- color: '#474849',
- backgroundColor: null,
- fontSize: 14,
- fontFamily: null,
- fontWeight: 'normal',
- textAlign: 'left',
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- text: 'Paid August 1, 2023',
- },
- },
- },
- block_AL2uK2hkvCnaT6JtDuvE5n: {
- type: 'Divider',
- data: {
- style: {
- backgroundColor: null,
- padding: {
- top: 16,
- bottom: 16,
- left: 0,
- right: 0,
- },
- },
- props: {
- lineHeight: 1,
- lineColor: '#EEEEEE',
- },
- },
- },
- block_ADvJa3qqbBH1TB84VxbFwC: {
- type: 'Text',
- data: {
- style: {
- color: null,
- backgroundColor: null,
- fontSize: 14,
- fontFamily: null,
- fontWeight: 'normal',
- textAlign: 'left',
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- text: 'Download receipt',
- },
- },
- },
- block_9NpGWp5DnLHA2gbTUzsWHX: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- childrenIds: [
- 'block_9mYZ55v7d29WRjNgPf5cuw',
- 'block_R5vyrdxj7v4FqyFbQ7iDBM',
- 'block_7vHVGWiRQYr8sigcW9nJvD',
- 'block_AL2uK2hkvCnaT6JtDuvE5n',
- 'block_ADvJa3qqbBH1TB84VxbFwC',
- ],
- },
- },
- },
- block_FMRV8DJAAWqpoJta6ivKEe: {
- type: 'Image',
- data: {
- style: {
- backgroundColor: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- textAlign: 'right',
- },
- props: {
- url: 'https://d1iiu589g39o6c.cloudfront.net/live/platforms/platform_A9wwKSL6EV6orh6f/images/wptemplateimage_8yUGBZcXaAtTEofB/invoice-skeleton.png',
- alt: 'Your invoice has been paid.',
- linkHref: 'http://remix.example.com/receipt/1923-2093',
- contentAlignment: 'middle',
- },
- },
- },
- block_SGQxVVB8bXVmVg9NyDY3Fu: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- childrenIds: ['block_FMRV8DJAAWqpoJta6ivKEe'],
- },
- },
- },
- block_KY8rgT1mqUBiCm2uranpvx: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- childrenIds: [],
- },
- },
- },
- block_4TVeBRBPut2oZoQpG9FV4J: {
- type: 'ColumnsContainer',
- data: {
- style: {
- backgroundColor: null,
- padding: {
- top: 16,
- bottom: 16,
- left: 0,
- right: 0,
- },
- },
- props: {
- columnsCount: 2,
- columns: [
- {
- childrenIds: ['block_9NpGWp5DnLHA2gbTUzsWHX'],
- },
- {
- childrenIds: ['block_SGQxVVB8bXVmVg9NyDY3Fu'],
- },
- {
- childrenIds: ['block_KY8rgT1mqUBiCm2uranpvx'],
- },
- ],
- },
- },
- },
- block_67EyoqnbtLAHWXiobN39NX: {
- type: 'Text',
- data: {
- style: {
- color: '#474849',
- backgroundColor: null,
- fontSize: 14,
- fontFamily: null,
- fontWeight: 'normal',
- textAlign: 'left',
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- text: 'Receipt number',
- },
- },
- },
- block_UCrU3np77mWqQgTfYHG1NL: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- childrenIds: ['block_67EyoqnbtLAHWXiobN39NX'],
- },
- },
- },
- block_LQ93SUN8XxG6uaLbGpsAx1: {
- type: 'Text',
- data: {
- style: {
- color: null,
- backgroundColor: null,
- fontSize: 14,
- fontFamily: null,
- fontWeight: 'normal',
- textAlign: 'right',
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- text: '1923-2093',
- },
- },
- },
- block_6KX5ggTcFs5ckbt9wZppac: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- childrenIds: ['block_LQ93SUN8XxG6uaLbGpsAx1'],
- },
- },
- },
- block_AsFj6GNHWFUhG6GgM7Ww9r: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- childrenIds: [],
- },
- },
- },
- block_SfGDZ1NhRmtjFJS6qs4Zpc: {
- type: 'ColumnsContainer',
- data: {
- style: {
- backgroundColor: null,
- padding: {
- top: 8,
- bottom: 8,
- left: 0,
- right: 0,
- },
- },
- props: {
- columnsCount: 2,
- columns: [
- {
- childrenIds: ['block_UCrU3np77mWqQgTfYHG1NL'],
- },
- {
- childrenIds: ['block_6KX5ggTcFs5ckbt9wZppac'],
- },
- {
- childrenIds: ['block_AsFj6GNHWFUhG6GgM7Ww9r'],
- },
- ],
- },
- },
- },
- block_6UhQGq7NwSAhRog8yRYjJo: {
- type: 'Text',
- data: {
- style: {
- color: '#474849',
- backgroundColor: null,
- fontSize: 14,
- fontFamily: null,
- fontWeight: 'normal',
- textAlign: 'left',
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- text: 'Invoice number',
- },
- },
- },
- block_F3FdxCgPYxnH8SYgFgBsuY: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- childrenIds: ['block_6UhQGq7NwSAhRog8yRYjJo'],
- },
- },
- },
- block_L5on9HCEU6BRvx25RBRgS2: {
- type: 'Text',
- data: {
- style: {
- color: null,
- backgroundColor: null,
- fontSize: 14,
- fontFamily: null,
- fontWeight: 'normal',
- textAlign: 'right',
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- text: '2ABC1234-20923',
- },
- },
- },
- block_WrzeLHiJs9VnXSkLXXD5ED: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- childrenIds: ['block_L5on9HCEU6BRvx25RBRgS2'],
- },
- },
- },
- block_Wb8pxrh2frxYZWM6hmfc5L: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- childrenIds: [],
- },
- },
- },
- block_XiNoAViyVVEWafdMW4x4TL: {
- type: 'ColumnsContainer',
- data: {
- style: {
- backgroundColor: null,
- padding: {
- top: 8,
- bottom: 8,
- left: 0,
- right: 0,
- },
- },
- props: {
- columnsCount: 2,
- columns: [
- {
- childrenIds: ['block_F3FdxCgPYxnH8SYgFgBsuY'],
- },
- {
- childrenIds: ['block_WrzeLHiJs9VnXSkLXXD5ED'],
- },
- {
- childrenIds: ['block_Wb8pxrh2frxYZWM6hmfc5L'],
- },
- ],
- },
- },
- },
- block_LbwZcoeGigXpK4PTVTyZ8E: {
- type: 'Text',
- data: {
- style: {
- color: '#474849',
- backgroundColor: null,
- fontSize: 14,
- fontFamily: null,
- fontWeight: 'normal',
- textAlign: 'left',
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- text: 'Payment method',
- },
- },
- },
- block_ETbxLryzrgoKbVBnw1ieyi: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- childrenIds: ['block_LbwZcoeGigXpK4PTVTyZ8E'],
- },
- },
- },
- block_P8fn3PavFZVTrEwufKHKEF: {
- type: 'Text',
- data: {
- style: {
- color: null,
- backgroundColor: null,
- fontSize: 14,
- fontFamily: null,
- fontWeight: 'normal',
- textAlign: 'right',
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- text: 'VISA – 4252',
- },
- },
- },
- block_2Bx6KDcv1nT4hPiQ8Eabfv: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- childrenIds: ['block_P8fn3PavFZVTrEwufKHKEF'],
- },
- },
- },
- block_WSzbB3PKqRUxCuUqp9wuK6: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- childrenIds: [],
- },
- },
- },
- block_NYNuDnrs6ZnZ6kj927yv7W: {
- type: 'ColumnsContainer',
- data: {
- style: {
- backgroundColor: null,
- padding: {
- top: 8,
- bottom: 8,
- left: 0,
- right: 0,
- },
- },
- props: {
- columnsCount: 2,
- columns: [
- {
- childrenIds: ['block_ETbxLryzrgoKbVBnw1ieyi'],
- },
- {
- childrenIds: ['block_2Bx6KDcv1nT4hPiQ8Eabfv'],
- },
- {
- childrenIds: ['block_WSzbB3PKqRUxCuUqp9wuK6'],
- },
- ],
- },
- },
- },
- block_TisRUSez8uPYr6bgHLKQeg: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: '#ffffff',
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 16,
- bottom: 24,
- left: 24,
- right: 24,
- },
- },
- props: {
- childrenIds: [
- 'block_4TVeBRBPut2oZoQpG9FV4J',
- 'block_SfGDZ1NhRmtjFJS6qs4Zpc',
- 'block_XiNoAViyVVEWafdMW4x4TL',
- 'block_NYNuDnrs6ZnZ6kj927yv7W',
- ],
- },
- },
- },
- block_UQHMPb5NFLrY9PkWUckmHb: {
- type: 'Spacer',
- data: {
- props: {
- height: 24,
- },
- },
- },
- block_RNsVmDsY33ipzGLtRUsYys: {
- type: 'Heading',
- data: {
- style: {
- color: null,
- backgroundColor: null,
- fontFamily: null,
- fontWeight: 'normal',
- textAlign: 'left',
- padding: {
- top: 16,
- bottom: 16,
- left: 0,
- right: 0,
- },
- },
- props: {
- level: 'h3',
- text: 'Receipt #1923-2093',
- },
- },
- },
- block_Y7W2h9xDuNreQdgMrv82KZ: {
- type: 'Text',
- data: {
- style: {
- color: '#474849',
- backgroundColor: null,
- fontSize: 14,
- fontFamily: null,
- fontWeight: 'normal',
- textAlign: 'left',
- padding: {
- top: 16,
- bottom: 16,
- left: 0,
- right: 0,
- },
- },
- props: {
- text: `JULY 10, 2023 – AUGUST 1, 2023`,
- },
- },
- },
- block_4m1h6Xzhvi9oDrFMgWajjH: {
- type: 'Text',
- data: {
- style: {
- color: null,
- backgroundColor: null,
- fontSize: 14,
- fontFamily: null,
- fontWeight: 'bold',
- textAlign: 'left',
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- text: 'Remix Pro',
- },
- },
- },
- block_7egXzHguX1zPm5CwYiKuPh: {
- type: 'Text',
- data: {
- style: {
- color: '#474849',
- backgroundColor: null,
- fontSize: 12,
- fontFamily: null,
- fontWeight: 'normal',
- textAlign: 'left',
- padding: {
- top: 8,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- text: '5 seats',
- },
- },
- },
- block_WbxCFjDKk1Ev11prfgLhvX: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- childrenIds: ['block_4m1h6Xzhvi9oDrFMgWajjH', 'block_7egXzHguX1zPm5CwYiKuPh'],
- },
- },
- },
- block_FUaNAn8h7DzU7kVzeFqsug: {
- type: 'Text',
- data: {
- style: {
- color: null,
- backgroundColor: null,
- fontSize: 14,
- fontFamily: null,
- fontWeight: 'bold',
- textAlign: 'right',
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- text: '$99.75',
- },
- },
- },
- block_9gDnB1o17vBrS4usmyAVUr: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- childrenIds: ['block_FUaNAn8h7DzU7kVzeFqsug'],
- },
- },
- },
- block_5wDvatGEixESNpVrjWbAGi: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- childrenIds: [],
- },
- },
- },
- block_KFadGhRvS4kHVRr41XMiRs: {
- type: 'ColumnsContainer',
- data: {
- style: {
- backgroundColor: null,
- padding: {
- top: 8,
- bottom: 8,
- left: 0,
- right: 0,
- },
- },
- props: {
- columnsCount: 2,
- columns: [
- {
- childrenIds: ['block_WbxCFjDKk1Ev11prfgLhvX'],
- },
- {
- childrenIds: ['block_9gDnB1o17vBrS4usmyAVUr'],
- },
- {
- childrenIds: ['block_5wDvatGEixESNpVrjWbAGi'],
- },
- ],
- },
- },
- },
- block_3rTWcrZLSt1nnCYW5BdiU9: {
- type: 'Divider',
- data: {
- style: {
- backgroundColor: null,
- padding: {
- top: 8,
- bottom: 8,
- left: 0,
- right: 0,
- },
- },
- props: {
- lineHeight: 1,
- lineColor: '#EEEEEE',
- },
- },
- },
- block_CSV8NQS6gBMQcFXvFAFo3Q: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- childrenIds: ['block_KFadGhRvS4kHVRr41XMiRs', 'block_3rTWcrZLSt1nnCYW5BdiU9'],
- },
- },
- },
- block_XZZUC61s2jBfaMfjcFYSo2: {
- type: 'Text',
- data: {
- style: {
- color: null,
- backgroundColor: null,
- fontSize: 14,
- fontFamily: null,
- fontWeight: 'bold',
- textAlign: 'left',
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- text: 'Total',
- },
- },
- },
- block_LfhgxAyqkNPTGubxqYJNZ5: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- childrenIds: ['block_XZZUC61s2jBfaMfjcFYSo2'],
- },
- },
- },
- block_MsXkdwkAWAbvJ5EcwvqSqv: {
- type: 'Text',
- data: {
- style: {
- color: null,
- backgroundColor: null,
- fontSize: 14,
- fontFamily: null,
- fontWeight: 'bold',
- textAlign: 'right',
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- text: '$99.75',
- },
- },
- },
- block_PiKRrj91HQKM1qUW4gDJt1: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- childrenIds: ['block_MsXkdwkAWAbvJ5EcwvqSqv'],
- },
- },
- },
- block_WhzFAeoTPhhgNcG9rdcd4K: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- childrenIds: [],
- },
- },
- },
- block_LJcwZCh6z1EyFeeKH8Egts: {
- type: 'ColumnsContainer',
- data: {
- style: {
- backgroundColor: null,
- padding: {
- top: 8,
- bottom: 8,
- left: 0,
- right: 0,
- },
- },
- props: {
- columnsCount: 2,
- columns: [
- {
- childrenIds: ['block_LfhgxAyqkNPTGubxqYJNZ5'],
- },
- {
- childrenIds: ['block_PiKRrj91HQKM1qUW4gDJt1'],
- },
- {
- childrenIds: ['block_WhzFAeoTPhhgNcG9rdcd4K'],
- },
- ],
- },
- },
- },
- block_HSbX9aqHvSXw9GAB361vpM: {
- type: 'Divider',
- data: {
- style: {
- backgroundColor: null,
- padding: {
- top: 8,
- bottom: 8,
- left: 0,
- right: 0,
- },
- },
- props: {
- lineHeight: 1,
- lineColor: '#EEEEEE',
- },
- },
- },
- block_3of5ne4hc1PFiSKHz59FP8: {
- type: 'Text',
- data: {
- style: {
- color: null,
- backgroundColor: null,
- fontSize: 14,
- fontFamily: null,
- fontWeight: 'bold',
- textAlign: 'left',
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- text: 'Amount paid',
- },
- },
- },
- block_GTPnMRuHqf1bCLk8VLAr4z: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- childrenIds: ['block_3of5ne4hc1PFiSKHz59FP8'],
- },
- },
- },
- block_XvojX8xDiQRr4VNHDwtyXZ: {
- type: 'Text',
- data: {
- style: {
- color: null,
- backgroundColor: null,
- fontSize: 14,
- fontFamily: null,
- fontWeight: 'bold',
- textAlign: 'right',
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- text: '$99.75',
- },
- },
- },
- block_LbEheyx16SX5S8GK2zY3sJ: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- childrenIds: ['block_XvojX8xDiQRr4VNHDwtyXZ'],
- },
- },
- },
- block_M6BwLBjomRNsdee4rdoA4y: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: null,
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 0,
- bottom: 0,
- left: 0,
- right: 0,
- },
- },
- props: {
- childrenIds: [],
- },
- },
- },
- block_DUQnBfK11aHN7ZypDPfeug: {
- type: 'ColumnsContainer',
- data: {
- style: {
- backgroundColor: null,
- padding: {
- top: 8,
- bottom: 8,
- left: 0,
- right: 0,
- },
- },
- props: {
- columnsCount: 2,
- columns: [
- {
- childrenIds: ['block_GTPnMRuHqf1bCLk8VLAr4z'],
- },
- {
- childrenIds: ['block_LbEheyx16SX5S8GK2zY3sJ'],
- },
- {
- childrenIds: ['block_M6BwLBjomRNsdee4rdoA4y'],
- },
- ],
- },
- },
- },
- block_FLTQdJVBNsmRxurTZTSC2V: {
- type: 'Container',
- data: {
- style: {
- backgroundColor: '#ffffff',
- borderColor: null,
- borderRadius: null,
- padding: {
- top: 16,
- bottom: 24,
- left: 24,
- right: 24,
- },
- },
- props: {
- childrenIds: [
- 'block_RNsVmDsY33ipzGLtRUsYys',
- 'block_Y7W2h9xDuNreQdgMrv82KZ',
- 'block_CSV8NQS6gBMQcFXvFAFo3Q',
- 'block_LJcwZCh6z1EyFeeKH8Egts',
- 'block_HSbX9aqHvSXw9GAB361vpM',
- 'block_DUQnBfK11aHN7ZypDPfeug',
- ],
- },
- },
- },
- block_Qq64GeHw7K24Fgz5oX81kt: {
- type: 'Text',
- data: {
- style: {
- color: '#474849',
- backgroundColor: null,
- fontSize: 12,
- fontFamily: null,
- fontWeight: 'normal',
- textAlign: 'left',
- padding: {
- top: 24,
- bottom: 16,
- left: 24,
- right: 24,
- },
- },
- props: {
- text: 'Can we help? Just reply to this email.',
- },
- },
- },
-};
-
-export default SUBSCRIPTION_RECEIPT;
diff --git a/email-builder/src/getConfiguration/sample/welcome.ts b/email-builder/src/getConfiguration/sample/welcome.ts
deleted file mode 100644
index 54cf5e6f..00000000
--- a/email-builder/src/getConfiguration/sample/welcome.ts
+++ /dev/null
@@ -1,170 +0,0 @@
-import { TEditorConfiguration } from '../../documents/editor/core';
-
-const WELCOME: TEditorConfiguration = {
- root: {
- type: 'EmailLayout',
- data: {
- backdropColor: '#F2F5F7',
- canvasColor: '#FFFFFF',
- textColor: '#242424',
- fontFamily: 'MODERN_SANS',
- childrenIds: [
- 'block-1709571212684',
- 'block-1709571228545',
- 'block-1709571234315',
- 'block-1709571247550',
- 'block-1709571258507',
- 'block-1709571281151',
- 'block-1709571302968',
- 'block-1709571282795',
- ],
- },
- },
- 'block-1709571212684': {
- type: 'Image',
- data: {
- style: {
- padding: {
- top: 24,
- bottom: 24,
- right: 24,
- left: 24,
- },
- },
- props: {
- url: 'https://d1iiu589g39o6c.cloudfront.net/live/platforms/platform_A9wwKSL6EV6orh6f/images/wptemplateimage_JTNBBPGrNs2Ph4JL/marketbase.png',
- alt: 'Marketbase',
- linkHref: 'https://marketbase.app',
- contentAlignment: 'middle',
- },
- },
- },
- 'block-1709571228545': {
- type: 'Text',
- data: {
- style: {
- fontWeight: 'normal',
- padding: {
- top: 0,
- bottom: 16,
- right: 24,
- left: 24,
- },
- },
- props: {
- text: 'Hi Anna 👋,',
- },
- },
- },
- 'block-1709571234315': {
- type: 'Text',
- data: {
- style: {
- fontWeight: 'normal',
- padding: {
- top: 0,
- bottom: 16,
- right: 24,
- left: 24,
- },
- },
- props: {
- text: 'Welcome to Marketbase! Marketbase is how teams within fast growing marketplaces effortlessly monitor conversations to prevent disintermediation, identify problematic users, and increase trust & safety within their community.',
- },
- },
- },
- 'block-1709571247550': {
- type: 'Text',
- data: {
- style: {
- fontWeight: 'normal',
- padding: {
- top: 0,
- bottom: 16,
- right: 24,
- left: 24,
- },
- },
- props: {
- text: 'Best of all, you can connect your existing messaging services in minutes:',
- },
- },
- },
- 'block-1709571258507': {
- type: 'Image',
- data: {
- style: {
- padding: {
- top: 16,
- bottom: 16,
- right: 24,
- left: 24,
- },
- },
- props: {
- url: 'https://d1iiu589g39o6c.cloudfront.net/live/platforms/platform_A9wwKSL6EV6orh6f/images/wptemplateimage_oWB821TUkDXvr2f4/Screenshot%202023-11-22%20at%2011.51.30%20AM.png',
- alt: 'Video thumbnail',
- linkHref: 'https://capture.dropbox.com/NBQEmoCKKP9RGBWr',
- contentAlignment: 'middle',
- },
- },
- },
- 'block-1709571281151': {
- type: 'Text',
- data: {
- style: {
- fontWeight: 'normal',
- padding: {
- top: 16,
- bottom: 16,
- right: 24,
- left: 24,
- },
- },
- props: {
- text: 'If you ever need help, just reply to this email and one of us will get back to you shortly. We’re here to help.',
- },
- },
- },
- 'block-1709571282795': {
- type: 'Image',
- data: {
- style: {
- padding: {
- top: 16,
- bottom: 40,
- right: 24,
- left: 24,
- },
- },
- props: {
- url: 'https://d1iiu589g39o6c.cloudfront.net/live/platforms/platform_A9wwKSL6EV6orh6f/images/wptemplateimage_cAK8FpmBEGoSRNi3/Screenshot%202023-11-22%20at%2011.48.53%20AM.png',
- alt: 'Illustration',
- linkHref: null,
- contentAlignment: 'middle',
- },
- },
- },
- 'block-1709571302968': {
- type: 'Button',
- data: {
- style: {
- fontSize: 14,
- padding: {
- top: 16,
- bottom: 24,
- right: 24,
- left: 24,
- },
- },
- props: {
- buttonBackgroundColor: '#0079cc',
- buttonStyle: 'rectangle',
- text: 'Open dashboard',
- url: 'https://www.usewaypoint.com',
- },
- },
- },
-};
-
-export default WELCOME;
diff --git a/frontend/src/assets/style.scss b/frontend/src/assets/style.scss
index a835d273..00feab9d 100644
--- a/frontend/src/assets/style.scss
+++ b/frontend/src/assets/style.scss
@@ -311,6 +311,12 @@ body.is-noscroll {
.editor {
margin-bottom: 30px;
+
+ .copy-visual-template-list {
+ select {
+ min-width: 200px;
+ }
+ }
}
.richtext-editor {
diff --git a/frontend/src/components/Editor.vue b/frontend/src/components/Editor.vue
index de7c2f58..d5b0cb13 100644
--- a/frontend/src/components/Editor.vue
+++ b/frontend/src/components/Editor.vue
@@ -27,18 +27,35 @@
</b-select>
</b-field>
- <b-field :label="$t('globals.terms.baseTemplate')" label-position="on-border">
+ <b-field v-if="computedValue.contentType !== 'visual'" :label="$t('globals.terms.baseTemplate')" label-position="on-border">
<b-select :placeholder="$t('globals.terms.none')" v-model="templateId" name="template" :disabled="disabled">
- <option :value="null" key="none" v-if="templateId !== null">
- {{ $t('globals.terms.none') }}
- </option>
<template v-for="t in applicableTemplates">
- <option v-if="t.type === 'campaign' || t.type === 'campaign_visual'" :value="t.id" :key="t.id">
+ <option :value="t.id" :key="t.id">
{{ t.name }}
</option>
</template>
</b-select>
</b-field>
+
+ <div v-else>
+ <b-button v-if="!isVisualTplSelector" @click="onShowVisualTplSelector" type="is-ghost" icon-left="file-find-outline" data-cy="btn-select-visual-tpl">
+ {{ $t('globals.terms.copyVisualTemplate') }}
+ </b-button>
+
+ <b-field v-else :label="$t('globals.terms.copyVisualTemplate')" label-position="on-border">
+ <b-select :placeholder="$t('globals.terms.none')" v-model="visualTemplateId" name="template" :disabled="disabled" class="copy-visual-template-list">
+ <template v-for="t in applicableTemplates">
+ <option :value="t.id" :key="t.id">
+ {{ t.name }}
+ </option>
+ </template>
+ </b-select>
+
+ <b-button :disabled="isVisualTplApplied" class="ml-3" @click="onApplyVisualTpl" type="is-primary" icon-left="content-save-outline" data-cy="btn-save-visual-tpl">
+ {{ $t('globals.terms.apply') }}
+ </b-button>
+ </b-field>
+ </div>
</div>
<div class="column is- has-text-right">
<b-button @click="onTogglePreview" type="is-primary" icon-left="file-find-outline" data-cy="btn-preview">
@@ -51,7 +68,7 @@
<richtext-editor v-if="computedValue.contentType === 'richtext'" v-model="computedValue.body" />
<!-- visual editor //-->
- <visual-editor v-if="computedValue.contentType === 'visual'" :source="computedValue.bodySource" @change="onChangeVisualEditor" />
+ <visual-editor v-if="computedValue.contentType === 'visual'" :source="computedValue.bodySource" @change="onChangeVisualEditor" height="65vh" />
<!-- raw html editor //-->
<html-editor v-if="computedValue.contentType === 'html'" v-model="computedValue.body" />
@@ -110,14 +127,18 @@ export default {
data() {
return {
isPreviewing: false,
+ isVisualTplSelector: false,
+ isVisualTplApplied: false,
contentType: this.$props.value.contentType,
templateId: '',
+ visualTemplateId: ''
};
},
methods: {
onContentTypeChange(to, from) {
- if (this.computedValue.body.trim() === '') {
+ if (this.computedValue.body?.trim() === '') {
+ this.computedValue.contentType = this.contentType;
return;
}
@@ -140,6 +161,8 @@ export default {
convertContentType(to, from) {
let body;
+ let skip = false;
+
if ((from === 'richtext' || from === 'html') && to === 'plain') {
// richtext, html => plain
@@ -157,24 +180,36 @@ export default {
// richtext => html
body = this.beautifyHTML(this.computedValue.body);
} else if (from === 'markdown' && (to === 'richtext' || to === 'html')) {
+ // Skip default update.
+ skip = true;
// markdown => richtext, html.
this.$api.convertCampaignContent({
id: 1, body: this.computedValue.body, from, to,
}).then((data) => {
this.$nextTick(() => {
this.computedValue.body = this.beautifyHTML(data.trim());
+ this.computedValue.bodySource = null;
});
});
}
- // Update the current body.
- this.$nextTick(() => {
- this.computedValue.body = body;
- });
+ if (!skip) {
+ // Update the current body.
+ this.$nextTick(() => {
+ this.computedValue.body = body;
+
+ // If not visual editor then set bodySource to null
+ // this makes sure previous bodySource is not used when switching to visual editor.
+ if (to !== 'visual') {
+ this.computedValue.bodySource = null;
+ }
+ });
+ }
// Reset template ID only if its converted to or from visual template.
if (to === 'visual' || from === 'visual') {
- this.computedValue.templateId = '';
+ this.templateId = null;
+ this.computedValue.templateId = null;
}
},
@@ -221,6 +256,53 @@ export default {
return out.join('\n').replace(/\n\s*\n\s*\n/g, '\n\n');
},
+
+ onShowVisualTplSelector() {
+ this.isVisualTplSelector = true;
+ this.setDefaultTemplate();
+ },
+
+ onApplyVisualTpl() {
+ this.$utils.confirm(
+ this.$t('campaigns.confirmApplyVisualTemplate'),
+ () => {
+ let found = false;
+ this.templates.forEach((t) => {
+ if (t.id === this.visualTemplateId) {
+ found = true;
+ this.computedValue.body = t.body;
+ this.computedValue.bodySource = t.bodySource;
+
+ // Deplay update so that applied template is propogated to visual editor
+ // and it doesn't enable the apply button again. Delay here is arbitrary.
+ setTimeout(() => {
+ this.isVisualTplApplied = true;
+ }, 250);
+ }
+ });
+
+ if (!found) {
+ this.computedValue.body = '';
+ this.computedValue.bodySource = null;
+
+ // Deplay update so that applied template is propogated to visual editor
+ // and it doesn't enable the apply button again. Delay here is arbitrary.
+ setTimeout(() => {
+ this.isVisualTplApplied = true;
+ }, 250);
+ }
+ }
+ );
+ },
+
+ setDefaultTemplate() {
+ if (this.computedValue.contentType === 'visual') {
+ this.visualTemplateId = this.applicableTemplates[0]?.id || null;
+ } else {
+ const defaultTemplate = this.applicableTemplates.find((t) => t.isDefault === true);
+ this.templateId = defaultTemplate?.id || this.applicableTemplates[0]?.id || null;
+ }
+ }
},
mounted() {
@@ -251,7 +333,7 @@ export default {
if (this.computedValue.contentType === 'visual') {
return this.templates.filter((t) => t.type === 'campaign_visual');
}
- return this.templates.filter((t) => t.type !== 'campaign_visual');
+ return this.templates.filter((t) => t.type === 'campaign');
},
},
@@ -265,33 +347,25 @@ export default {
this.convertContentType(to, from);
},
- templateId(to, from) {
+ applicableTemplates() {
+ this.setDefaultTemplate();
+ },
+
+ templateId(to) {
if (this.computedValue.templateId === to) {
return;
}
+ this.computedValue.templateId = to;
+ },
- if (this.computedValue.contentType === 'visual') {
- this.$utils.confirm(
- this.$t('campaigns.confirmApplyVisualTemplate'),
- () => {
- this.computedValue.templateId = to;
-
- if (!to) {
- this.computedValue.body = '';
- this.computedValue.bodySource = null;
- } else {
- this.templates.forEach((t) => {
- if (t.id === to) {
- this.computedValue.body = t.body;
- this.computedValue.bodySource = t.bodySource;
- }
- });
- }
- },
- () => {
- this.templateId = from;
- },
- );
+ // eslint-disable-next-line func-names
+ 'computedValue.bodySource': function (to, from) {
+ this.isVisualTplApplied = !(JSON.stringify(to) !== JSON.stringify(from));
+ },
+
+ visualTemplateId(to, from) {
+ if (from && from !== to) {
+ this.isVisualTplApplied = false;
}
},
},
diff --git a/frontend/src/components/VisualEditor.vue b/frontend/src/components/VisualEditor.vue
index d8c90a4a..2056d7e0 100644
--- a/frontend/src/components/VisualEditor.vue
+++ b/frontend/src/components/VisualEditor.vue
@@ -1,16 +1,37 @@
<template>
<div class="visual-editor-wrapper">
<div ref="visualEditor" id="visual-editor" class="visual-editor email-builder-container" />
+
+ <!-- image picker -->
+ <b-modal scroll="keep" :aria-modal="true" :active.sync="isMediaVisible" :width="900">
+ <div class="modal-card content" style="width: auto">
+ <section expanded class="modal-card-body">
+ <media is-modal @selected="onMediaSelect" />
+ </section>
+ </div>
+ </b-modal>
</div>
</template>
<script>
+import Media from '../views/Media.vue';
+
export default {
+ components: {
+ Media,
+ },
+
props: {
source: { type: String, default: '' },
height: { type: String, default: 'auto' },
},
+ data() {
+ return {
+ isMediaVisible: false,
+ };
+ },
+
methods: {
initEditor() {
let source = null;
@@ -44,6 +65,20 @@ export default {
document.head.appendChild(script);
});
},
+
+ onMediaSelect(media) {
+ const input = document.querySelector('.image-url input');
+ if (input) {
+ const nativeInputValueSetter = Object.getOwnPropertyDescriptor(
+ window.HTMLInputElement.prototype,
+ 'value',
+ ).set;
+ nativeInputValueSetter.call(input, media.url);
+
+ const inputEvent = new Event('input', { bubbles: true });
+ input.dispatchEvent(inputEvent);
+ }
+ },
},
mounted() {
@@ -53,6 +88,38 @@ export default {
// eslint-disable-next-line no-console
console.error('Failed to load email-builder script:', error);
});
+
+ // Select a stable parent element
+ const stableParent = document.querySelector('.visual-editor');
+
+ // Observe mutations to handle dynamically added elements
+ const observer = new MutationObserver((mutations) => {
+ mutations.forEach((mutation) => {
+ mutation.addedNodes.forEach((node) => {
+ node.querySelectorAll('.image-url').forEach((img) => {
+ // Create anchor tag
+ const anchor = document.createElement('a');
+ anchor.href = '#';
+ anchor.className = 'open-media-selector';
+ anchor.textContent = 'Select Image';
+ anchor.style.marginTop = '5px';
+ anchor.addEventListener('click', (e) => {
+ e.preventDefault();
+ this.isMediaVisible = true;
+ });
+ if (img.parentNode) {
+ img.parentNode.insertBefore(anchor, img.nextSibling);
+ }
+ });
+ });
+ });
+ });
+
+ // Start observing
+ observer.observe(stableParent, {
+ childList: true,
+ subtree: true,
+ });
},
watch: {
diff --git a/frontend/src/views/TemplateForm.vue b/frontend/src/views/TemplateForm.vue
index 6da332f0..6701bbee 100644
--- a/frontend/src/views/TemplateForm.vue
+++ b/frontend/src/views/TemplateForm.vue
@@ -52,7 +52,7 @@
<template v-if="form.body !== null">
<b-field v-if="form.type === 'campaign_visual'" label-position="on-border" class="mb-1">
- <visual-editor v-if="form.type === 'campaign_visual'" name="body" :source="form.bodySource" @change="onChangeVisualEditor" height="610px" />
+ <visual-editor v-if="form.type === 'campaign_visual'" name="body" :source="form.bodySource" @change="onChangeVisualEditor" height="70vh" />
</b-field>
<b-field v-else :label="$t('templates.rawHTML')" label-position="on-border">
@@ -194,10 +194,14 @@ export default Vue.extend({
});
window.addEventListener('keydown', this.onPreviewShortcut);
+ // Add overflow hidden to HTML root when mounted
+ document.documentElement.style.overflow = 'hidden';
},
beforeDestroy() {
window.removeEventListener('keydown', this.onPreviewShortcut);
+ // Add overflow hidden to HTML root when mounted
+ document.documentElement.style.overflow = 'auto';
},
});
</script>
diff --git a/frontend/src/views/Templates.vue b/frontend/src/views/Templates.vue
index 0b7c4eb2..c19a0fd1 100644
--- a/frontend/src/views/Templates.vue
+++ b/frontend/src/views/Templates.vue
@@ -75,7 +75,7 @@
<b-icon icon="file-multiple-outline" size="is-small" />
</b-tooltip>
</a>
- <a v-if="!props.row.isDefault && props.row.type !== 'tx'" href="#"
+ <a v-if="!props.row.isDefault && props.row.type === 'campaign'" href="#"
@click.prevent="$utils.confirm(null, () => makeTemplateDefault(props.row))" data-cy="btn-set-default"
:aria-label="$t('templates.makeDefault')">
<b-tooltip :label="$t('templates.makeDefault')" type="is-dark">
diff --git a/i18n/en.json b/i18n/en.json
index e413f9f3..1bc2aa9a 100644
--- a/i18n/en.json
+++ b/i18n/en.json
@@ -229,6 +229,7 @@
"globals.terms.minute": "Minute | Minutes",
"globals.terms.month": "Month | Months",
"globals.terms.none": "None",
+ "globals.terms.new": "New",
"globals.terms.second": "Second | Seconds",
"globals.terms.settings": "Settings",
"globals.terms.subscriber": "Subscriber | Subscribers",
@@ -239,10 +240,12 @@
"globals.terms.template": "Template | Templates",
"globals.terms.templates": "Templates",
"globals.terms.baseTemplate": "Base template",
+ "globals.terms.copyVisualTemplate": "Copy a visual template",
"globals.terms.tx": "Transactional | Transactional",
"globals.terms.user": "User | Users",
"globals.terms.users": "Users",
"globals.terms.year": "Year | Years",
+ "globals.terms.apply": "Apply",
"import.alreadyRunning": "An import is already running. Wait for it to finish or stop it before trying again.",
"import.blocklist": "Blocklist",
"import.csvDelim": "CSV delimiter",
diff --git a/queries.sql b/queries.sql
index b5827e66..c63c7226 100644
--- a/queries.sql
+++ b/queries.sql
@@ -989,7 +989,7 @@ WHERE id = $1;
-- name: set-default-template
WITH u AS (
- UPDATE templates SET is_default=true WHERE id=$1 AND (type='campaign' OR type='campaign_visual') RETURNING id
+ UPDATE templates SET is_default=true WHERE id=$1 AND type='campaign' RETURNING id
)
UPDATE templates SET is_default=false WHERE id != $1;