A free and open-source block-based email template builder.
TypeScript amazonsesdeveloper-toolsemailemail-editoremail-marketingemail-templateemail-template-builderemailapiemailjshtml-email-editorno-codenocode-email-editoropen-source-email-buildersendgridtransactional-emailswysiwyg-email-editorwysiwyg-html-editor
Adding examples menu (#12)
cohitrec15aa90a8f23
diff --git a/packages/editor-sample/src/App/ExamplesButton.tsx b/packages/editor-sample/src/App/ExamplesButton.tsxnew file mode 100644index 0000000..ade32b8--- /dev/null+++ b/packages/editor-sample/src/App/ExamplesButton.tsx@@ -0,0 +1,42 @@+import React from 'react';++import { Button, Menu, MenuItem } from '@mui/material';++export default function ExamplesButton() {+ const [anchorEl, setAnchorEl] = React.useState<null | HTMLElement>(null);+ const open = Boolean(anchorEl);+ const handleOpen = (event: React.MouseEvent<HTMLButtonElement>) => {+ setAnchorEl(event.currentTarget);+ };+ const handleClose = () => {+ setAnchorEl(null);+ };++ const select = (val: string) => {+ window.location.hash = `#sample/${val}`;+ handleClose();+ };++ return (+ <>+ <Button onClick={handleOpen}>Samples</Button>+ <Menu+ id="basic-menu"+ anchorEl={anchorEl}+ open={open}+ onClose={handleClose}+ MenuListProps={{+ 'aria-labelledby': 'basic-button',+ }}+ >+ <MenuItem onClick={() => select('one-time-password')}>one-time-password</MenuItem>+ <MenuItem onClick={() => select('order-ecomerce')}>order-ecomerce</MenuItem>+ <MenuItem onClick={() => select('post-metrics-report')}>post-metrics-report</MenuItem>+ <MenuItem onClick={() => select('reservation-reminder')}>reservation-reminder</MenuItem>+ <MenuItem onClick={() => select('reset-password')}>reset-password</MenuItem>+ <MenuItem onClick={() => select('respond-to-message')}>respond-to-message</MenuItem>+ <MenuItem onClick={() => select('subscription-receipt')}>subscription-receipt</MenuItem>+ </Menu>+ </>+ );+}diff --git a/packages/editor-sample/src/App/index.tsx b/packages/editor-sample/src/App/index.tsxindex 8092f17..311b3e7 100644--- a/packages/editor-sample/src/App/index.tsx+++ b/packages/editor-sample/src/App/index.tsx@@ -7,6 +7,7 @@ import { useEditorState } from '../documents/editor/EditorContext';import ReaderBlock from '../documents/reader/ReaderBlock';import { ReaderProvider } from '../documents/reader/ReaderContext';+import ExamplesButton from './ExamplesButton';import HtmlPanel from './panels/HtmlPanel';import ShareButton from './ShareButton';import ConfigurationPanel from './sidebar/ConfigurationPanel';@@ -62,6 +63,7 @@ export default function App() {sx={{ height: 49, borderBottom: 1, borderColor: 'divider', backgroundColor: 'white' }}direction="row"justifyContent="space-between"+ alignItems="center"><Tabs value={selectedMainTab} onChange={(_, v) => setEditorState({ selectedMainTab: v })}><Tab value="editor" label="Edit" />@@ -69,7 +71,10 @@ export default function App() {<Tab value="html" label="HTML" /><Tab value="data" label="JSON" /></Tabs>- <ShareButton />+ <Box pr={3}>+ <ExamplesButton />+ <ShareButton />+ </Box></Stack><Box sx={{ height: 'calc(100% - 49px)', overflow: 'auto' }}>{renderMainPanel()}</Box></Grid>diff --git a/packages/editor-sample/src/App/sidebar/ConfigurationPanel/input-panels/DividerSidebarPanel.tsx b/packages/editor-sample/src/App/sidebar/ConfigurationPanel/input-panels/DividerSidebarPanel.tsxindex 9dd19e5..ec84b1e 100644--- a/packages/editor-sample/src/App/sidebar/ConfigurationPanel/input-panels/DividerSidebarPanel.tsx+++ b/packages/editor-sample/src/App/sidebar/ConfigurationPanel/input-panels/DividerSidebarPanel.tsx@@ -40,7 +40,7 @@ export default function DividerSidebarPanel({ data, setData }: DividerSidebarPanstep={1}min={1}max={24}- defaultValue={data.props.lineHeight}+ defaultValue={data.props.lineHeight ?? 1}onChange={(lineHeight) => updateData({ ...data, props: { ...data.props, lineHeight } })}/><MultiStylePropertyPaneldiff --git a/packages/editor-sample/src/documents/blocks/Button.tsx b/packages/editor-sample/src/documents/blocks/Button.tsxindex f879c4d..2c00cbc 100644--- a/packages/editor-sample/src/documents/blocks/Button.tsx+++ b/packages/editor-sample/src/documents/blocks/Button.tsx@@ -9,7 +9,7 @@ export const ButtonPropsSchema = z.object({backgroundColor: zColor().nullable().default(null),fontSize: z.number().min(0).default(16),fontFamily: zFontFamily().nullable().default(null),- fontWeight: zFontWeight().default('bold'),+ fontWeight: zFontWeight().nullable().default('bold'),textAlign: zTextAlign().optional().nullable().default('center'),padding: zPadding().optional().default({top: 16,diff --git a/packages/editor-sample/src/documents/blocks/ColumnsContainer/index.tsx b/packages/editor-sample/src/documents/blocks/ColumnsContainer/index.tsxindex 720ba46..b265a07 100644--- a/packages/editor-sample/src/documents/blocks/ColumnsContainer/index.tsx+++ b/packages/editor-sample/src/documents/blocks/ColumnsContainer/index.tsx@@ -1,11 +1,12 @@import React from 'react';import { TEditorBlock } from '../../editor/core';+import { useCurrentBlockId } from '../../editor/EditorBlock';import { useEditorState } from '../../editor/EditorContext';import ReaderBlock from '../../reader/ReaderBlock';import EditorChildrenIds from '../helpers/EditorChildrenIds';-import { ColumnsContainerProps } from './ColumnsContainerPropsSchema';+import ColumnsContainerPropsSchema, { ColumnsContainerProps } from './ColumnsContainerPropsSchema';export function ColumnsContainer({ props: { columnsCount, columns } }: ColumnsContainerProps) {let lastColumn = null;@@ -47,19 +48,20 @@ export function ColumnsContainer({ props: { columnsCount, columns } }: ColumnsCoexport function EditorColumnsContainer(data: ColumnsContainerProps) {const { columnsCount, columns } = data.props;- const [{ document, selectedBlockId }, setEditorState] = useEditorState();+ const [{ document }, setEditorState] = useEditorState();+ const blockId = useCurrentBlockId();const insertBlock = (columnIndex: 0 | 1 | 2, blockConfiguration: TEditorBlock, i: number | null) => {- if (!selectedBlockId) {- return;- }const id = `block-${Date.now()}`;- const columnsCopy: ColumnsContainerProps['props']['columns'] = [...columns];- if (i === null) {- columnsCopy[columnIndex] = {- childrenIds: [...columns[columnIndex].childrenIds, id],- };- } else {++ const getColumns = () => {+ const columnsCopy: ColumnsContainerProps['props']['columns'] = [...columns];+ if (i === null) {+ columnsCopy[columnIndex] = {+ childrenIds: [...columns[columnIndex].childrenIds, id],+ };+ return columnsCopy;+ }columnsCopy[columnIndex] = {childrenIds: [...columns[columnIndex].childrenIds.slice(0, i),@@ -67,27 +69,21 @@ export function EditorColumnsContainer(data: ColumnsContainerProps) {...columns[columnIndex].childrenIds.slice(i),],};- }+ return columnsCopy;+ };+ const data = ColumnsContainerPropsSchema.parse(document[blockId].data);setEditorState({selectedBlockId: id,document: {...document,[id]: blockConfiguration,- [selectedBlockId]: {- type: 'ColumnsContainer' as const,+ [blockId]: {+ type: 'ColumnsContainer',data: {- style: {- backgroundColor: null,- padding: {- top: 0,- bottom: 0,- left: 0,- right: 0,- },- },+ ...data,props: {- columnsCount,- columns: columnsCopy,+ ...data.props,+ columns: getColumns(),},},},diff --git a/packages/editor-sample/src/documents/blocks/Container.tsx b/packages/editor-sample/src/documents/blocks/Container.tsxindex ed7b50c..ab93065 100644--- a/packages/editor-sample/src/documents/blocks/Container.tsx+++ b/packages/editor-sample/src/documents/blocks/Container.tsx@@ -2,6 +2,7 @@ import React from 'react';import { z } from 'zod';import { TEditorBlock } from '../editor/core';+import { useCurrentBlockId } from '../editor/EditorBlock';import { useEditorState } from '../editor/EditorContext';import ReaderBlock from '../reader/ReaderBlock';@@ -12,8 +13,8 @@ export const ContainerPropsSchema = z.object({style: z.object({backgroundColor: zColor().nullable().default(null),- borderColor: zColor().nullable().default(null),- borderRadius: z.number().default(0),+ borderColor: zColor().optional().nullable().default(null),+ borderRadius: z.number().optional().nullable().default(0),padding: zPadding().optional().default({top: 16,bottom: 16,@@ -40,12 +41,10 @@ export function Container({ props: { childrenIds } }: ContainerProps) {}export function EditorContainer({ props: { childrenIds } }: ContainerProps) {- const [{ document, selectedBlockId }, setEditorState] = useEditorState();+ const [{ document }, setEditorState] = useEditorState();+ const blockId = useCurrentBlockId();const insertBlock = (blockConfiguration: TEditorBlock, i: number | null) => {- if (!selectedBlockId) {- return;- }const id = `block-${Date.now()}`;let nChildrenIds: string[];if (i === null) {@@ -53,16 +52,15 @@ export function EditorContainer({ props: { childrenIds } }: ContainerProps) {} else {nChildrenIds = [...childrenIds.slice(0, i), id, ...childrenIds.slice(i)];}- const containerBlock = document[selectedBlockId];setEditorState({selectedBlockId: id,document: {...document,[id]: blockConfiguration,- [selectedBlockId]: {+ [blockId]: {type: 'Container',data: {- ...containerBlock.data,+ ...document[blockId].data,props: { childrenIds: nChildrenIds },},} as TEditorBlock,diff --git a/packages/editor-sample/src/documents/blocks/Divider.tsx b/packages/editor-sample/src/documents/blocks/Divider.tsxindex ee85137..855dd11 100644--- a/packages/editor-sample/src/documents/blocks/Divider.tsx+++ b/packages/editor-sample/src/documents/blocks/Divider.tsx@@ -18,7 +18,7 @@ export const DividerPropsSchema = z.object({props: z.object({lineColor: zColor().default('#333333'),- lineHeight: z.number().default(1),+ lineHeight: z.number().nullable().default(1),}).default({}),});@@ -33,7 +33,7 @@ export function Divider({ props: { lineColor, lineHeight } }: DividerProps) {border: 'none',borderTop: '1px solid #eaeaea',borderColor: lineColor,- borderTopWidth: lineHeight,+ borderTopWidth: lineHeight ?? 1,}}/>);diff --git a/packages/editor-sample/src/documents/blocks/EmailLayout.tsx b/packages/editor-sample/src/documents/blocks/EmailLayout.tsxindex 9304c3e..0c53183 100644--- a/packages/editor-sample/src/documents/blocks/EmailLayout.tsx+++ b/packages/editor-sample/src/documents/blocks/EmailLayout.tsx@@ -2,6 +2,7 @@ import React, { CSSProperties } from 'react';import { z } from 'zod';import { TEditorBlock } from '../editor/core';+import { useCurrentBlockId } from '../editor/EditorBlock';import { useEditorState } from '../editor/EditorContext';import ReaderBlock from '../reader/ReaderBlock';@@ -44,31 +45,29 @@ export function EmailLayout(props: EmailLayoutProps) {}export function EditorEmailLayout(props: EmailLayoutProps) {- const [{ document, selectedBlockId }, setEditorState] = useEditorState();+ const [{ document }, setEditorState] = useEditorState();+ const blockId = useCurrentBlockId();const childrenIds = props.childrenIds;const insertBlock = (blockConfiguration: TEditorBlock, i: number | null) => {- if (!selectedBlockId) {- return;- }const id = `block-${Date.now()}`;- let nChildrenIds: string[];- if (i === null) {- nChildrenIds = [...childrenIds, id];- } else {- nChildrenIds = [...childrenIds.slice(0, i), id, ...childrenIds.slice(i)];- }+ const getChildrenIds = () => {+ if (i === null) {+ return [...childrenIds, id];+ }+ return [...childrenIds.slice(0, i), id, ...childrenIds.slice(i)];+ };setEditorState({selectedBlockId: id,document: {...document,[id]: blockConfiguration,- [selectedBlockId]: {- ...document[selectedBlockId],+ [blockId]: {+ type: 'EmailLayout',data: {- ...document[selectedBlockId].data,- childrenIds: nChildrenIds,+ ...document[blockId].data,+ childrenIds: getChildrenIds(),},} as TEditorBlock,},diff --git a/packages/editor-sample/src/documents/blocks/Heading.tsx b/packages/editor-sample/src/documents/blocks/Heading.tsxindex bbb47c0..ccc6ade 100644--- a/packages/editor-sample/src/documents/blocks/Heading.tsx+++ b/packages/editor-sample/src/documents/blocks/Heading.tsx@@ -9,7 +9,7 @@ export const HeadingPropsSchema = z.object({color: zColor().optional().nullable().default(null),backgroundColor: zColor().optional().nullable().default(null),fontFamily: zFontFamily().optional().nullable().default(null),- fontWeight: zFontWeight().optional().default('bold'),+ fontWeight: zFontWeight().optional().nullable().default('bold'),textAlign: zTextAlign().optional().nullable().default(null),padding: zPadding().optional().default({top: 16,diff --git a/packages/editor-sample/src/documents/blocks/Image.tsx b/packages/editor-sample/src/documents/blocks/Image.tsxindex 213ad24..ae57bc3 100644--- a/packages/editor-sample/src/documents/blocks/Image.tsx+++ b/packages/editor-sample/src/documents/blocks/Image.tsx@@ -18,7 +18,7 @@ export const ImagePropsSchema = z.object({.default({}),props: z.object({height: z.number().nullable().default(null),- width: z.number().nullable().default(null),+ width: z.number().nullable(),url: z.string(),alt: z.string(),linkHref: z.union([z.string(), z.null()]).default(null),diff --git a/packages/editor-sample/src/getConfiguration/index.tsx b/packages/editor-sample/src/getConfiguration/index.tsxnew file mode 100644index 0000000..9c17038--- /dev/null+++ b/packages/editor-sample/src/getConfiguration/index.tsx@@ -0,0 +1,62 @@+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';++export default function getConfiguration(template: string) {+ if (template.startsWith('#sample/')) {+ const sampleName = template.replace('#sample/', '');+ switch (sampleName) {+ 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('#sample/', '');+ const configurationString = atob(encodedString);+ try {+ return JSON.parse(configurationString);+ } catch {+ console.error(`Couldn't load configuration from hash.`);+ }+ }++ const configurationString = localStorage.getItem('configuration');+ if (typeof configurationString === 'string') {+ try {+ return JSON.parse(configurationString);+ } catch {+ console.error(`Couldn't load configuration from localStorage.`);+ }+ }++ return {+ root: {+ type: 'EmailLayout',+ data: {+ backdropColor: '#e5e7e5',+ canvasColor: '#FFFFFF',+ textColor: '#242424',+ accentColor: '#0b5499',+ fontFamily: 'MODERN_SANS',+ childrenIds: [],+ },+ },+ };+}diff --git a/packages/editor-sample/src/getConfiguration/sample/one-time-passcode.ts b/packages/editor-sample/src/getConfiguration/sample/one-time-passcode.tsnew file mode 100644index 0000000..9020a65--- /dev/null+++ b/packages/editor-sample/src/getConfiguration/sample/one-time-passcode.ts@@ -0,0 +1,133 @@+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: 48,+ bottom: 24,+ left: 24,+ right: 24,+ },+ textAlign: 'center',+ },+ props: {+ height: 24,+ width: null,+ url: 'https://d1iiu589g39o6c.cloudfront.net/live/platforms/platform_A9wwKSL6EV6orh6f/images/wptemplateimage_jc7ZfPvdHJ6rtH1W/&.png',+ alt: '',+ linkHref: null,+ 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: null,+ fontWeight: 'bold',+ textAlign: 'center',+ padding: {+ top: 16,+ bottom: 16,+ left: 24,+ right: 24,+ },+ },+ props: {+ level: 'h1',+ text: '{{passcode}}',+ },+ },+ },+ 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 {{expiresIn}}.',+ },+ },+ },+ 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/packages/editor-sample/src/getConfiguration/sample/order-ecommerce.ts b/packages/editor-sample/src/getConfiguration/sample/order-ecommerce.tsnew file mode 100644index 0000000..0a3c50d--- /dev/null+++ b/packages/editor-sample/src/getConfiguration/sample/order-ecommerce.ts@@ -0,0 +1,1687 @@+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: '{{store.name}}',+ },+ },+ },+ 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: '#{{order.id}}',+ },+ },+ },+ 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_RaSBTPwdN9QB7g2WRDUfDn: {+ type: 'Container',+ data: {+ style: {+ backgroundColor: null,+ borderColor: null,+ borderRadius: null,+ padding: {+ top: 0,+ bottom: 0,+ left: 0,+ right: 0,+ },+ },+ props: {+ childrenIds: [],+ },+ },+ },+ 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_RaSBTPwdN9QB7g2WRDUfDn'],+ },+ ],+ },+ },+ },+ 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 {{order.customer.displayName}},\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://www.example.com/orders/{{order.id}}',+ },+ },+ },+ 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: {+ height: null,+ width: null,+ 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: '{{lineItem.productName}} x {{lineItem.qty}}',+ },+ },+ },+ block_KqpmZUcZajsnFMbTMhizZs: {+ type: 'Text',+ data: {+ style: {+ color: '#808080',+ backgroundColor: null,+ fontSize: 14,+ fontFamily: null,+ fontWeight: 'normal',+ textAlign: 'left',+ padding: {+ top: 0,+ bottom: 8,+ left: 0,+ right: 0,+ },+ },+ props: {+ text: '{{lineItem.variant}}',+ },+ },+ },+ block_JbZJ8FqT6GxQ4i6wEiWztp: {+ type: 'Image',+ data: {+ style: {+ backgroundColor: null,+ padding: {+ top: 0,+ bottom: 0,+ left: 0,+ right: 0,+ },+ textAlign: 'left',+ },+ props: {+ height: null,+ width: null,+ url: 'https://d1iiu589g39o6c.cloudfront.net/live/platforms/platform_A9wwKSL6EV6orh6f/images/wptemplateimage_vjmjV2NrQ52h1iLj/coupon.png',+ alt: '',+ linkHref: null,+ contentAlignment: 'middle',+ },+ },+ },+ block_92JgagxxVxzyfnbvj5iUUJ: {+ type: 'Container',+ data: {+ style: {+ backgroundColor: null,+ borderColor: null,+ borderRadius: null,+ padding: {+ top: 0,+ bottom: 0,+ left: 0,+ right: 0,+ },+ },+ props: {+ childrenIds: ['block_JbZJ8FqT6GxQ4i6wEiWztp'],+ },+ },+ },+ 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: '({{lineItem.discount}})',+ },+ },+ },+ block_TdFvCzpv5j9SZgktRbSTwu: {+ type: 'Container',+ data: {+ style: {+ backgroundColor: null,+ borderColor: null,+ borderRadius: null,+ padding: {+ top: 0,+ bottom: 0,+ left: 0,+ right: 0,+ },+ },+ props: {+ childrenIds: ['block_9bNBgfiJJyh65pfsy1fu7e'],+ },+ },+ },+ block_7JwR5SHM2Bfjihamh45tRL: {+ type: 'Container',+ data: {+ style: {+ backgroundColor: null,+ borderColor: null,+ borderRadius: null,+ padding: {+ top: 0,+ bottom: 0,+ left: 0,+ right: 0,+ },+ },+ props: {+ childrenIds: [],+ },+ },+ },+ block_S8F4TkiuTVLF2GTQn67eGY: {+ type: 'ColumnsContainer',+ data: {+ style: {+ backgroundColor: null,+ padding: {+ top: 0,+ bottom: 0,+ left: 0,+ right: 0,+ },+ },+ props: {+ columnsCount: 2,+ columns: [+ {+ childrenIds: ['block_92JgagxxVxzyfnbvj5iUUJ'],+ },+ {+ childrenIds: ['block_TdFvCzpv5j9SZgktRbSTwu'],+ },+ {+ childrenIds: ['block_7JwR5SHM2Bfjihamh45tRL'],+ },+ ],+ },+ },+ },+ 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_S8F4TkiuTVLF2GTQn67eGY'],+ },+ },+ },+ block_RJU6wqWp4io29SK1kEESC7: {+ 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: '<s>{{lineItem.originalPrice}}</s>',+ },+ },+ },+ 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: '{{lineItem.price}}',+ },+ },+ },+ block_V34TMZ9yg6t4xKMYfyD2Rk: {+ type: 'Container',+ data: {+ style: {+ backgroundColor: null,+ borderColor: null,+ borderRadius: null,+ padding: {+ top: 0,+ bottom: 0,+ left: 0,+ right: 0,+ },+ },+ props: {+ childrenIds: ['block_RJU6wqWp4io29SK1kEESC7', 'block_6VvTYskm3BULZZEfYCkjwN'],+ },+ },+ },+ block_YBtUndjQaRuLFpEkgvjagk: {+ type: 'ColumnsContainer',+ data: {+ style: {+ backgroundColor: null,+ padding: {+ top: 16,+ bottom: 16,+ left: 0,+ right: 0,+ },+ },+ props: {+ columnsCount: 3,+ 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: '#5696e5',+ },+ },+ },+ 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 {% if order.discountCode %} ({{order.discountCode}}){% endif %}',+ },+ },+ },+ 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: '{{order.discount}}',+ },+ },+ },+ 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_XDBPpdogWWkKUea5aEVxBW: {+ type: 'Container',+ data: {+ style: {+ backgroundColor: null,+ borderColor: null,+ borderRadius: null,+ padding: {+ top: 0,+ bottom: 0,+ left: 0,+ right: 0,+ },+ },+ props: {+ childrenIds: [],+ },+ },+ },+ block_2QEX1chf5uWU5ZZebf4gmu: {+ type: 'ColumnsContainer',+ data: {+ style: {+ backgroundColor: null,+ padding: {+ top: 8,+ bottom: 8,+ left: 0,+ right: 0,+ },+ },+ props: {+ columnsCount: 2,+ columns: [+ {+ childrenIds: ['block_NyMsczQB7L3BKUa1RpUauu'],+ },+ {+ childrenIds: ['block_BgHgpkAxq2qJUttN8pimnE'],+ },+ {+ childrenIds: ['block_XDBPpdogWWkKUea5aEVxBW'],+ },+ ],+ },+ },+ },+ 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: '{{order.subtotal}}',+ },+ },+ },+ 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_4g5P818eH6oLmfUcE9BaJT: {+ type: 'Container',+ data: {+ style: {+ backgroundColor: null,+ borderColor: null,+ borderRadius: null,+ padding: {+ top: 0,+ bottom: 0,+ left: 0,+ right: 0,+ },+ },+ props: {+ childrenIds: [],+ },+ },+ },+ 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_4g5P818eH6oLmfUcE9BaJT'],+ },+ ],+ },+ },+ },+ 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: '{{order.shipping}}',+ },+ },+ },+ 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_WN1hfLUiC4HwsGD3bFhF4a: {+ type: 'Container',+ data: {+ style: {+ backgroundColor: null,+ borderColor: null,+ borderRadius: null,+ padding: {+ top: 0,+ bottom: 0,+ left: 0,+ right: 0,+ },+ },+ props: {+ childrenIds: [],+ },+ },+ },+ 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_WN1hfLUiC4HwsGD3bFhF4a'],+ },+ ],+ },+ },+ },+ 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: '{{order.taxes}}',+ },+ },+ },+ 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_LhgMdiSRYUsSBtJTggegRe: {+ type: 'Container',+ data: {+ style: {+ backgroundColor: null,+ borderColor: null,+ borderRadius: null,+ padding: {+ top: 0,+ bottom: 0,+ left: 0,+ right: 0,+ },+ },+ props: {+ childrenIds: [],+ },+ },+ },+ 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_LhgMdiSRYUsSBtJTggegRe'],+ },+ ],+ },+ },+ },+ block_QgSNshqbsUkk4FrRywjoRd: {+ type: 'Divider',+ data: {+ style: {+ backgroundColor: null,+ padding: {+ top: 16,+ bottom: 16,+ left: 0,+ right: 0,+ },+ },+ props: {+ lineHeight: 1,+ lineColor: '#5696e5',+ },+ },+ },+ 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: '{{order.total}}',+ },+ },+ },+ 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_95CFVehcWAjR5DpfJRawF6: {+ type: 'Container',+ data: {+ style: {+ backgroundColor: null,+ borderColor: null,+ borderRadius: null,+ padding: {+ top: 0,+ bottom: 0,+ left: 0,+ right: 0,+ },+ },+ props: {+ childrenIds: [],+ },+ },+ },+ 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_95CFVehcWAjR5DpfJRawF6'],+ },+ ],+ },+ },+ },+ 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_9MPJm4YxQrW5nt7APTB5Vx: {+ type: 'Container',+ data: {+ style: {+ backgroundColor: null,+ borderColor: null,+ borderRadius: null,+ padding: {+ top: 0,+ bottom: 0,+ left: 0,+ right: 0,+ },+ },+ props: {+ childrenIds: [],+ },+ },+ },+ block_WK3b19BzGE8VNKDwiSZ8s8: {+ type: 'ColumnsContainer',+ data: {+ style: {+ backgroundColor: null,+ padding: {+ top: 16,+ bottom: 16,+ left: 24,+ right: 24,+ },+ },+ props: {+ columnsCount: 2,+ columns: [+ {+ childrenIds: ['block_Wnt477QxYNynetWGwkLg89'],+ },+ {+ childrenIds: ['block_VhteQbJa7bCSmykN4AcHkp'],+ },+ {+ childrenIds: ['block_9MPJm4YxQrW5nt7APTB5Vx'],+ },+ ],+ },+ },+ },+ 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: '{{order.shippingAddress.name}}\n{{order.shippingAddress.line1}}\n{{order.shippingAddress.city}}, {{order.shippingAddress.state}} {{order.shippingAddress.zip}}\n{{order.shippingAddress.country}}',+ },+ },+ },+ 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: '{{order.shippingAddress.name}}\n{{order.shippingAddress.line1}}\n{{order.shippingAddress.city}}, {{order.shippingAddress.state}} {{order.shippingAddress.zip}}\n{{order.shippingAddress.country}}',+ },+ },+ },+ 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_PbayPF5XauTPe54KMAbdri: {+ type: 'Container',+ data: {+ style: {+ backgroundColor: null,+ borderColor: null,+ borderRadius: null,+ padding: {+ top: 0,+ bottom: 0,+ left: 0,+ right: 0,+ },+ },+ props: {+ childrenIds: [],+ },+ },+ },+ 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_PbayPF5XauTPe54KMAbdri'],+ },+ ],+ },+ },+ },+ 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: '{{order.shippingMethod}}',+ },+ },+ },+ block_P6XtJj721vPfrhXKzS8uR5: {+ type: 'Divider',+ data: {+ style: {+ backgroundColor: null,+ padding: {+ top: 16,+ bottom: 16,+ left: 0,+ right: 0,+ },+ },+ props: {+ lineHeight: 1,+ lineColor: '#5696e5',+ },+ },+ },+ 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.\n\n[Edit or Cancel Order](https://www.example.com/orders/{{order.id}}/edit)\n\n[Reorder](https://www.example.com/orders/{{order.id}}/reorder)',+ },+ },+ },+};++export default ORDER_ECOMMERCE;diff --git a/packages/editor-sample/src/getConfiguration/sample/post-metrics-report.ts b/packages/editor-sample/src/getConfiguration/sample/post-metrics-report.tsnew file mode 100644index 0000000..e0450fe--- /dev/null+++ b/packages/editor-sample/src/getConfiguration/sample/post-metrics-report.ts@@ -0,0 +1,398 @@+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,+ width: null,+ url: 'https://d1iiu589g39o6c.cloudfront.net/live/platforms/platform_A9wwKSL6EV6orh6f/images/wptemplateimage_n3eLjsf37dcjFaj5/Narrative.png',+ alt: '',+ linkHref: null,+ 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: '{{user.avatarUrl}}',+ fallbackText: '{{user.displayName}}',+ fallbackColor: null,+ },+ },+ },+ 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: '{{report.duration}}, 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: '{{report.metric.value}}',+ },+ },+ },+ 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: '{{report.metric.title}}',+ },+ },+ },+ block_AC6eRbFVSbXHVCg2zutkLu: {+ type: 'Button',+ data: {+ style: {+ backgroundColor: null,+ fontSize: 16,+ fontFamily: null,+ fontWeight: 'bold',+ textAlign: 'center',+ padding: {+ top: 16,+ bottom: 40,+ left: 24,+ right: 24,+ },+ },+ props: {+ buttonBackgroundColor: '#24AF7F',+ buttonStyle: 'rounded',+ buttonTextColor: '#FFFFFF',+ fullWidth: false,+ size: 'medium',+ text: 'View your analytics →',+ url: 'https://narrative.example.com/{{user.username}}/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 {{report.duration | downcase}}',+ },+ },+ },+ 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: '{{report.topPerformingPost}}',+ },+ },+ },+ block_LjuDF6uu4qWL3Ju3ng63ky: {+ type: 'Container',+ data: {+ style: {+ backgroundColor: null,+ 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: '#FFFFFF',+ fullWidth: false,+ size: 'medium',+ text: 'Show more',+ url: 'https://narrative.example.com/{{user.username}}/posts',+ },+ },+ },+ block_FsiiokCgr9bZitHn7sx7TB: {+ type: 'Divider',+ data: {+ style: {+ backgroundColor: null,+ padding: {+ top: 40,+ bottom: 0,+ left: 0,+ right: 0,+ },+ },+ props: {+ lineHeight: 1,+ lineColor: '#24AF7F',+ },+ },+ },+ 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/packages/editor-sample/src/getConfiguration/sample/reservation-reminder.ts b/packages/editor-sample/src/getConfiguration/sample/reservation-reminder.tsnew file mode 100644index 0000000..977a5d7--- /dev/null+++ b/packages/editor-sample/src/getConfiguration/sample/reservation-reminder.ts@@ -0,0 +1,2201 @@+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,+ width: null,+ url: 'https://d1iiu589g39o6c.cloudfront.net/live/platforms/platform_A9wwKSL6EV6orh6f/images/wptemplateimage_RAFATLGe3CN1wDsb/birdhouse.png',+ alt: '',+ linkHref: null,+ 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: `{{reservation.user.displayName}} arrives {{reservation.checkIn | date: '%A, %B %e' }}.`,+ },+ },+ },+ 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 {{reservation.user.displayName}} 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: '{{reservation.user.avatarUrl}}',+ fallbackText: '{{reservation.user.displayName}}',+ fallbackColor: null,+ },+ },+ },+ 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: '{{reservation.user.displayName}}',+ },+ },+ },+ 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: '{{reservation.user.location}}\nMember since {{reservation.user.memberSince}}',+ },+ },+ },+ 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: {+ columnsCount: 2,+ 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: 24,+ bottom: 16,+ left: 24,+ right: 24,+ },+ },+ props: {+ buttonBackgroundColor: '#03124A',+ buttonStyle: 'rounded',+ buttonTextColor: '#FFFFFF',+ fullWidth: false,+ size: 'large',+ text: 'Send {{reservation.user.displayName}} 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: {+ height: null,+ width: null,+ url: 'https://d1iiu589g39o6c.cloudfront.net/live/platforms/platform_A9wwKSL6EV6orh6f/images/wptemplateimage_QWeWcucRbjPqoewY/L1030293.jpg',+ alt: 'Photo',+ linkHref: 'https://reservations.example.com/listings/{{reservation.listing.id}}',+ 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: '{{reservation.listing.title}}',+ },+ },+ },+ 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: '{{reservation.listing.type}}',+ },+ },+ },+ 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: `{{reservation.checkIn | date: '%A, %B %e %Y' }}.\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: `{{reservation.checkOut | date: '%A, %B %e %Y' }}.\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: '{{reservation.guests}}\n\nLet them know upfront if your listing is suitable for children by updating your [House Rules](https://reservations.example.com/account/listings/{{reservation.listing.id}}/settings).',+ },+ },+ },+ 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: '{{reservation.confirmationCode}}',+ },+ },+ },+ 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](https://reservations.example.com/account/reservations/{{reservation.id}})',+ },+ },+ },+ 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: '{{reservation.nightlyPrice}} x {{reservation.nights}} 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: '{{reservation.basePriceSubtotal}}',+ },+ },+ },+ 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: '{{reservation.cleaningFee}}',+ },+ },+ },+ 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: '{{reservation.guestServiceFee}}',+ },+ },+ },+ 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: '{{reservation.occupancyTaxesFee}}',+ },+ },+ },+ 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: '{{reservation.totalGuestPaid}}',+ },+ },+ },+ 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: '{{reservation.nightlyPrice}} x {{reservation.nights}} 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: '{{reservation.basePriceSubtotal}}',+ },+ },+ },+ 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: '{{reservation.cleaningFee}}',+ },+ },+ },+ 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: '{{reservation.hostServiceFee}}',+ },+ },+ },+ 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: '{{reservation.totalHostPayout}}',+ },+ },+ },+ 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](https://reservations.example.com/account/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 **[{{reservation.cancellationPolicy}}](https://reservations.example.com/account/listings/{{reservation.listing.id}}/settings)**.\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.\n\n**[Read cancellation penalties](https://reservations.example.com/cancellation-policies)**',+ },+ },+ },+ 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? **[Contact our support team](mailto:[email protected])** 24/7 from anywhere in the world.',+ },+ },+ },+};++export default RESERVATION_REMINDER;diff --git a/packages/editor-sample/src/getConfiguration/sample/reset-password.ts b/packages/editor-sample/src/getConfiguration/sample/reset-password.tsnew file mode 100644index 0000000..70814da--- /dev/null+++ b/packages/editor-sample/src/getConfiguration/sample/reset-password.ts@@ -0,0 +1,157 @@+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: {+ backgroundColor: null,+ padding: {+ top: 24,+ bottom: 8,+ left: 24,+ right: 24,+ },+ textAlign: 'left',+ },+ props: {+ height: 40,+ width: null,+ url: 'https://d1iiu589g39o6c.cloudfront.net/live/platforms/platform_A9wwKSL6EV6orh6f/images/wptemplateimage_w9brVHZobEBhsJSK/marketbase.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,+ left: 24,+ right: 24,+ },+ },+ props: {+ buttonBackgroundColor: '#2458AF',+ buttonStyle: 'pill',+ buttonTextColor: '#FFFFFF',+ fullWidth: false,+ size: 'medium',+ text: 'Change my password',+ url: 'https://marketbase.example.com/reset_password?token={{token}}',+ },+ },+ },+ block_Gtk3kDYwsJqEmQf2XGWPRc: {+ type: 'Divider',+ data: {+ style: {+ backgroundColor: null,+ padding: {+ top: 16,+ bottom: 16,+ left: 24,+ right: 24,+ },+ },+ props: {+ lineHeight: 1,+ lineColor: '#2458AF',+ },+ },+ },+ 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/packages/editor-sample/src/getConfiguration/sample/respond-to-message.ts b/packages/editor-sample/src/getConfiguration/sample/respond-to-message.tsnew file mode 100644index 0000000..a1adca2--- /dev/null+++ b/packages/editor-sample/src/getConfiguration/sample/respond-to-message.ts@@ -0,0 +1,180 @@+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: {+ backgroundColor: null,+ padding: {+ top: 8,+ bottom: 24,+ left: 24,+ right: 24,+ },+ textAlign: null,+ },+ props: {+ height: 32,+ width: null,+ url: 'https://d1iiu589g39o6c.cloudfront.net/live/platforms/platform_A9wwKSL6EV6orh6f/images/wptemplateimage_hW6RusynHUNTKoLm/boop.png',+ alt: '',+ linkHref: null,+ 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 {{reservationRequest.displayName}}'s Inquiry`,+ },+ },+ },+ block_WmPDNHDpyHkygqjHuqF7St: {+ type: 'Text',+ data: {+ style: {+ color: null,+ backgroundColor: null,+ fontSize: 16,+ fontFamily: null,+ fontWeight: null,+ textAlign: null,+ padding: {+ top: 16,+ bottom: 16,+ left: 24,+ right: 24,+ },+ },+ props: {+ text: 'Dog boarding for {{reservationRequest.startDate}} - {{reservationRequest.endDate}}.',+ },+ },+ },+ 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: '*{{reservationRequest.message}}*',+ },+ },+ },+ 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://boop-marketplace.com/request/{{reservationRequest.id}}',+ 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 {{reservationRequest.walksUntilSuperWalker}} {{reservationRequest.walksUntilSuperWalker | pluralize: 'more walk', 'more walks'}} to become a Super Walker on Boop!*`,+ },+ },+ },+};++export default RESPOND_TO_MESSAGE;diff --git a/packages/editor-sample/src/getConfiguration/sample/subscription-receipt.ts b/packages/editor-sample/src/getConfiguration/sample/subscription-receipt.tsnew file mode 100644index 0000000..7371d94--- /dev/null+++ b/packages/editor-sample/src/getConfiguration/sample/subscription-receipt.ts@@ -0,0 +1,1371 @@+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,+ width: null,+ 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 {{company.name}}',+ },+ },+ },+ 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: '{{summary.amountPaid}}',+ },+ },+ },+ 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 {{summary.paidDate | date: '%B %e, %Y' }}`,+ },+ },+ },+ 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](http://remix.example.com/receipt/{{summary.receiptNumber}})',+ },+ },+ },+ 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: 'left',+ },+ props: {+ height: null,+ width: null,+ 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/{{summary.receiptNumber}}',+ 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: '{{summary.receiptNumber}}',+ },+ },+ },+ 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: '{{summary.invoiceNumber}}',+ },+ },+ },+ 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: '{{summary.paymentMethod}}',+ },+ },+ },+ 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: {+ style: {+ backgroundColor: null,+ border: null,+ borderRadius: null,+ color: null,+ fontFamily: null,+ fontSize: null,+ fontWeight: null,+ height: null,+ margin: null,+ maxHeight: null,+ maxWidth: null,+ minHeight: null,+ minWidth: null,+ padding: null,+ textAlign: null,+ textTransform: null,+ width: null,+ },+ 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 #{{summary.receiptNumber}}',+ },+ },+ },+ 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: `{{summary.startDate | date: '%B %e, %Y' | upcase }} – {{summary.endDate | date: '%B %e, %Y' | upcase}}`,+ },+ },+ },+ 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: '{{lineItem.title}}',+ },+ },+ },+ 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: '{{lineItem.description}}',+ },+ },+ },+ 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: '{{lineItem.price}}',+ },+ },+ },+ 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: '{{summary.total}}',+ },+ },+ },+ 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: '{{summary.amountPaid}}',+ },+ },+ },+ 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? [Email](mailto:[email protected]) - [Docs & support](https://www.usewaypoint.com/docs)',+ },+ },+ },+};++export default SUBSCRIPTION_RECEIPT;diff --git a/packages/editor-sample/src/main.tsx b/packages/editor-sample/src/main.tsxindex 8cbb9b1..14d2ab8 100644--- a/packages/editor-sample/src/main.tsx+++ b/packages/editor-sample/src/main.tsx@@ -1,58 +1,38 @@-import React from 'react';+import React, { useEffect, useState } from 'react';import ReactDOM from 'react-dom/client';import CssBaseline from '@mui/material/CssBaseline';import { ThemeProvider } from '@mui/material/styles';import App from './App';-import { EditorConfigurationSchema } from './documents/editor/core';import { EditorProvider } from './documents/editor/EditorContext';+import getConfiguration from './getConfiguration';import theme from './theme';-function getConfiguration() {- if (window.location.hash) {- const encodedString = window.location.hash.slice(1);- const configurationString = atob(encodedString);- try {- return JSON.parse(configurationString);- } catch {- console.error(`Couldn't load configuration from hash.`);- }- }-- const configurationString = localStorage.getItem('configuration');- if (typeof configurationString === 'string') {- try {- return JSON.parse(configurationString);- } catch {- console.error(`Couldn't load configuration from localStorage.`);- }- }-- return {- root: {- type: 'EmailLayout',- data: {- backdropColor: '#e5e7e5',- canvasColor: '#FFFFFF',- textColor: '#242424',- accentColor: '#0b5499',- fontFamily: 'MODERN_SANS',- childrenIds: [],- },- },- };-}--const DEFAULT_VALUE = EditorConfigurationSchema.parse(getConfiguration());-ReactDOM.createRoot(document.getElementById('root')!).render(<React.StrictMode><ThemeProvider theme={theme}><CssBaseline />- <EditorProvider defaultValue={DEFAULT_VALUE}>- <App />- </EditorProvider>+ <ConfigurationLoader /></ThemeProvider></React.StrictMode>);++function ConfigurationLoader() {+ const [id, setId] = useState(1);+ const [configuration, setConfiguration] = useState(() => getConfiguration(window.location.hash));++ useEffect(() => {+ function refresh() {+ setId(id + 1);+ setConfiguration(getConfiguration(window.location.hash));+ }+ window.addEventListener('hashchange', refresh);+ return () => window.removeEventListener('hashchange', refresh);+ });+ return (+ <EditorProvider key={`root-${id}`} defaultValue={configuration}>+ <App />+ </EditorProvider>+ );+}