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 static content and removing Markdown from sample templates (#16)
Jordan Isip15fa515d40b8
diff --git a/packages/editor-sample/src/getConfiguration/sample/one-time-passcode.ts b/packages/editor-sample/src/getConfiguration/sample/one-time-passcode.tsindex 9020a65..5df1ca7 100644--- a/packages/editor-sample/src/getConfiguration/sample/one-time-passcode.ts+++ b/packages/editor-sample/src/getConfiguration/sample/one-time-passcode.ts@@ -80,7 +80,7 @@ const ONE_TIME_PASSCODE: TEditorConfiguration = {},props: {level: 'h1',- text: '{{passcode}}',+ text: '0123456',},},},@@ -102,7 +102,7 @@ const ONE_TIME_PASSCODE: TEditorConfiguration = {},},props: {- text: 'This code will expire in {{expiresIn}}.',+ text: 'This code will expire in 30 minutes.',},},},@@ -124,7 +124,7 @@ const ONE_TIME_PASSCODE: TEditorConfiguration = {},},props: {- text: '*Problems? Just reply to this email.*',+ text: 'Problems? Just reply to this email.',},},},diff --git a/packages/editor-sample/src/getConfiguration/sample/order-ecommerce.ts b/packages/editor-sample/src/getConfiguration/sample/order-ecommerce.tsindex 0a3c50d..94f9ef7 100644--- a/packages/editor-sample/src/getConfiguration/sample/order-ecommerce.ts+++ b/packages/editor-sample/src/getConfiguration/sample/order-ecommerce.ts@@ -43,7 +43,7 @@ const ORDER_ECOMMERCE: TEditorConfiguration = {},props: {level: 'h2',- text: '{{store.name}}',+ text: 'Unbranded Supply',},},},@@ -84,7 +84,7 @@ const ORDER_ECOMMERCE: TEditorConfiguration = {},},props: {- text: '#{{order.id}}',+ text: '#103571871',},},},@@ -194,7 +194,7 @@ const ORDER_ECOMMERCE: TEditorConfiguration = {},},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.',+ text: 'Hi Jordan,\n\nWe are preparing your package. Your tracking number will be generated once the package is ready to ship.',},},},@@ -221,7 +221,7 @@ const ORDER_ECOMMERCE: TEditorConfiguration = {fullWidth: false,size: 'large',text: 'View your order',- url: 'https://www.example.com/orders/{{order.id}}',+ url: 'https://example.usewaypoint.com/orders/103571871',},},},@@ -326,7 +326,7 @@ const ORDER_ECOMMERCE: TEditorConfiguration = {},},props: {- text: '{{lineItem.productName}} x {{lineItem.qty}}',+ text: 'Unbranded Pen x 5',},},},@@ -348,7 +348,7 @@ const ORDER_ECOMMERCE: TEditorConfiguration = {},},props: {- text: '{{lineItem.variant}}',+ text: 'Black / Black ink',},},},@@ -412,7 +412,7 @@ const ORDER_ECOMMERCE: TEditorConfiguration = {},},props: {- text: '({{lineItem.discount}})',+ text: '($5.00)',},},},@@ -519,7 +519,7 @@ const ORDER_ECOMMERCE: TEditorConfiguration = {},},props: {- text: '<s>{{lineItem.originalPrice}}</s>',+ text: 'Original: $30.00',},},},@@ -541,7 +541,7 @@ const ORDER_ECOMMERCE: TEditorConfiguration = {},},props: {- text: '{{lineItem.price}}',+ text: '$25.00',},},},@@ -685,7 +685,7 @@ const ORDER_ECOMMERCE: TEditorConfiguration = {},},props: {- text: 'Discount {% if order.discountCode %} ({{order.discountCode}}){% endif %}',+ text: 'Discount (BLKFRI)',},},},@@ -726,7 +726,7 @@ const ORDER_ECOMMERCE: TEditorConfiguration = {},},props: {- text: '{{order.discount}}',+ text: '$5.00',},},},@@ -855,7 +855,7 @@ const ORDER_ECOMMERCE: TEditorConfiguration = {},},props: {- text: '{{order.subtotal}}',+ text: '$25.00',},},},@@ -984,7 +984,7 @@ const ORDER_ECOMMERCE: TEditorConfiguration = {},},props: {- text: '{{order.shipping}}',+ text: '$5.00',},},},@@ -1113,7 +1113,7 @@ const ORDER_ECOMMERCE: TEditorConfiguration = {},},props: {- text: '{{order.taxes}}',+ text: '$0.00',},},},@@ -1260,7 +1260,7 @@ const ORDER_ECOMMERCE: TEditorConfiguration = {},},props: {- text: '{{order.total}}',+ text: '$30.00',},},},@@ -1465,7 +1465,7 @@ const ORDER_ECOMMERCE: TEditorConfiguration = {},},props: {- text: '{{order.shippingAddress.name}}\n{{order.shippingAddress.line1}}\n{{order.shippingAddress.city}}, {{order.shippingAddress.state}} {{order.shippingAddress.zip}}\n{{order.shippingAddress.country}}',+ text: 'Jordan Isip\n123 Main St\nNew York, NY 10002\nUnited States',},},},@@ -1528,7 +1528,7 @@ const ORDER_ECOMMERCE: TEditorConfiguration = {},},props: {- text: '{{order.shippingAddress.name}}\n{{order.shippingAddress.line1}}\n{{order.shippingAddress.city}}, {{order.shippingAddress.state}} {{order.shippingAddress.zip}}\n{{order.shippingAddress.country}}',+ text: 'Jordan Isip\n123 Main St\nNew York, NY 10002\nUnited States',},},},@@ -1638,7 +1638,7 @@ const ORDER_ECOMMERCE: TEditorConfiguration = {},},props: {- text: '{{order.shippingMethod}}',+ text: 'Ground – Standard',},},},@@ -1678,7 +1678,7 @@ const ORDER_ECOMMERCE: TEditorConfiguration = {},},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)',+ text: 'If you have any questions, just reply to this email.',},},},diff --git a/packages/editor-sample/src/getConfiguration/sample/post-metrics-report.ts b/packages/editor-sample/src/getConfiguration/sample/post-metrics-report.tsindex e0450fe..29f0ad9 100644--- a/packages/editor-sample/src/getConfiguration/sample/post-metrics-report.ts+++ b/packages/editor-sample/src/getConfiguration/sample/post-metrics-report.ts@@ -79,8 +79,8 @@ const POST_METRICS_REPORT: TEditorConfiguration = {props: {size: 32,shape: 'circle',- imageUrl: '{{user.avatarUrl}}',- fallbackText: '{{user.displayName}}',+ imageUrl: '',+ fallbackText: 'Jordan',fallbackColor: null,},},@@ -169,7 +169,7 @@ const POST_METRICS_REPORT: TEditorConfiguration = {},props: {level: 'h3',- text: '{{report.duration}}, your posts received',+ text: 'Last week, your posts received',},},},@@ -191,7 +191,7 @@ const POST_METRICS_REPORT: TEditorConfiguration = {},},props: {- text: '{{report.metric.value}}',+ text: '1,511',},},},@@ -213,7 +213,7 @@ const POST_METRICS_REPORT: TEditorConfiguration = {},},props: {- text: '{{report.metric.title}}',+ text: 'Post impressions',},},},@@ -240,7 +240,7 @@ const POST_METRICS_REPORT: TEditorConfiguration = {fullWidth: false,size: 'medium',text: 'View your analytics →',- url: 'https://narrative.example.com/{{user.username}}/analytics',+ url: 'https://example.usewaypoint.com/jordanisip/analytics',},},},@@ -262,7 +262,7 @@ const POST_METRICS_REPORT: TEditorConfiguration = {},props: {level: 'h3',- text: 'Top performing post {{report.duration | downcase}}',+ text: 'Top performing post last week',},},},@@ -284,7 +284,7 @@ const POST_METRICS_REPORT: TEditorConfiguration = {},},props: {- text: '{{report.topPerformingPost}}',+ text: 'So excited to now have drag and drop on Waypoint. This builds on top of our new Navigator feature that we shipped earlier this week 🚢.',},},},@@ -349,7 +349,7 @@ const POST_METRICS_REPORT: TEditorConfiguration = {fullWidth: false,size: 'medium',text: 'Show more',- url: 'https://narrative.example.com/{{user.username}}/posts',+ url: 'https://example.usewaypoint.com/jordanisip/posts',},},},diff --git a/packages/editor-sample/src/getConfiguration/sample/reservation-reminder.ts b/packages/editor-sample/src/getConfiguration/sample/reservation-reminder.tsindex 977a5d7..4d33d54 100644--- a/packages/editor-sample/src/getConfiguration/sample/reservation-reminder.ts+++ b/packages/editor-sample/src/getConfiguration/sample/reservation-reminder.ts@@ -69,7 +69,7 @@ const RESERVATION_REMINDER: TEditorConfiguration = {},props: {level: 'h2',- text: `{{reservation.user.displayName}} arrives {{reservation.checkIn | date: '%A, %B %e' }}.`,+ text: 'Elaina arrives Sunday, May 21.',},},},@@ -91,7 +91,7 @@ const RESERVATION_REMINDER: TEditorConfiguration = {},},props: {- text: 'If you haven’t already, reach out to {{reservation.user.displayName}} to send directions and coordinate check-in time.',+ text: 'If you haven’t already, reach out to Elaina to send directions and coordinate check-in time.',},},},@@ -110,8 +110,8 @@ const RESERVATION_REMINDER: TEditorConfiguration = {props: {size: 64,shape: 'circle',- imageUrl: '{{reservation.user.avatarUrl}}',- fallbackText: '{{reservation.user.displayName}}',+ imageUrl: '',+ fallbackText: 'Elaina',fallbackColor: null,},},@@ -153,7 +153,7 @@ const RESERVATION_REMINDER: TEditorConfiguration = {},props: {level: 'h3',- text: '{{reservation.user.displayName}}',+ text: 'Elaina',},},},@@ -175,7 +175,7 @@ const RESERVATION_REMINDER: TEditorConfiguration = {},},props: {- text: '{{reservation.user.location}}\nMember since {{reservation.user.memberSince}}',+ text: 'United States\nMember since 2013',},},},@@ -286,7 +286,7 @@ const RESERVATION_REMINDER: TEditorConfiguration = {buttonTextColor: '#FFFFFF',fullWidth: false,size: 'large',- text: 'Send {{reservation.user.displayName}} a message',+ text: 'Send Elaina a message',url: 'https://www.usewaypoint.com',},},@@ -309,7 +309,7 @@ const RESERVATION_REMINDER: TEditorConfiguration = {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}}',+ linkHref: 'https://example.usewaypoint.com/listings/r029348209842',contentAlignment: 'middle',},},@@ -332,7 +332,7 @@ const RESERVATION_REMINDER: TEditorConfiguration = {},props: {level: 'h2',- text: '{{reservation.listing.title}}',+ text: 'Private Hideaway in the North Shore',},},},@@ -354,7 +354,7 @@ const RESERVATION_REMINDER: TEditorConfiguration = {},},props: {- text: '{{reservation.listing.type}}',+ text: 'Entire home/apartment',},},},@@ -416,7 +416,7 @@ const RESERVATION_REMINDER: TEditorConfiguration = {},},props: {- text: `{{reservation.checkIn | date: '%A, %B %e %Y' }}.\nCheck-in anytime after 3:00 PM`,+ text: 'Sunday, May 21 2023.\nCheck-in anytime after 3:00 PM',},},},@@ -460,7 +460,7 @@ const RESERVATION_REMINDER: TEditorConfiguration = {},},props: {- text: `{{reservation.checkOut | date: '%A, %B %e %Y' }}.\nCheckout by 11:00 AM`,+ text: 'Tuesday, May 23 2023.\nCheckout by 11:00 AM',},},},@@ -547,7 +547,7 @@ const RESERVATION_REMINDER: TEditorConfiguration = {},},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).',+ text: '2\n\nLet them know upfront if your listing is suitable for children by updating your [House Rules](https://example.usewaypoint.com/account/listings/r029348209842/settings).',},},},@@ -628,7 +628,7 @@ const RESERVATION_REMINDER: TEditorConfiguration = {},},props: {- text: '{{reservation.confirmationCode}}',+ text: 'HMFN35C4MH',},},},@@ -669,7 +669,7 @@ const RESERVATION_REMINDER: TEditorConfiguration = {},},props: {- text: '[View itinerary](https://reservations.example.com/account/reservations/{{reservation.id}})',+ text: 'View itinerary',},},},@@ -816,7 +816,7 @@ const RESERVATION_REMINDER: TEditorConfiguration = {},},props: {- text: '{{reservation.nightlyPrice}} x {{reservation.nights}} nights',+ text: '$99.00 x 2 nights',},},},@@ -857,7 +857,7 @@ const RESERVATION_REMINDER: TEditorConfiguration = {},},props: {- text: '{{reservation.basePriceSubtotal}}',+ text: '$198.00',},},},@@ -986,7 +986,7 @@ const RESERVATION_REMINDER: TEditorConfiguration = {},},props: {- text: '{{reservation.cleaningFee}}',+ text: '$50.00',},},},@@ -1115,7 +1115,7 @@ const RESERVATION_REMINDER: TEditorConfiguration = {},},props: {- text: '{{reservation.guestServiceFee}}',+ text: '$35.01',},},},@@ -1244,7 +1244,7 @@ const RESERVATION_REMINDER: TEditorConfiguration = {},},props: {- text: '{{reservation.occupancyTaxesFee}}',+ text: '$46.02',},},},@@ -1373,7 +1373,7 @@ const RESERVATION_REMINDER: TEditorConfiguration = {},},props: {- text: '{{reservation.totalGuestPaid}}',+ text: '$329.03',},},},@@ -1528,7 +1528,7 @@ const RESERVATION_REMINDER: TEditorConfiguration = {},},props: {- text: '{{reservation.nightlyPrice}} x {{reservation.nights}} nights',+ text: '$99.00 x 2 nights',},},},@@ -1569,7 +1569,7 @@ const RESERVATION_REMINDER: TEditorConfiguration = {},},props: {- text: '{{reservation.basePriceSubtotal}}',+ text: '$198.00',},},},@@ -1698,7 +1698,7 @@ const RESERVATION_REMINDER: TEditorConfiguration = {},},props: {- text: '{{reservation.cleaningFee}}',+ text: '$50.00',},},},@@ -1827,7 +1827,7 @@ const RESERVATION_REMINDER: TEditorConfiguration = {},},props: {- text: '{{reservation.hostServiceFee}}',+ text: '$7.44',},},},@@ -1956,7 +1956,7 @@ const RESERVATION_REMINDER: TEditorConfiguration = {},},props: {- text: '{{reservation.totalHostPayout}}',+ text: '$240.56',},},},@@ -2044,7 +2044,7 @@ const RESERVATION_REMINDER: TEditorConfiguration = {},},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)**.',+ 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.',},},},@@ -2133,7 +2133,7 @@ const RESERVATION_REMINDER: TEditorConfiguration = {},},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)**',+ text: 'Your cancellation policy for guests is Moderate.\n\nThe penalties for canceling this reservation include getting a public review that shows you canceled, paying a cancellation fee, and having the canceled nights blocked on your calendar.',},},},@@ -2192,7 +2192,7 @@ const RESERVATION_REMINDER: TEditorConfiguration = {},},props: {- text: 'Need help? **[Contact our support team](mailto:[email protected])** 24/7 from anywhere in the world.',+ text: 'Need help? Just reply to this email.',},},},diff --git a/packages/editor-sample/src/getConfiguration/sample/reset-password.ts b/packages/editor-sample/src/getConfiguration/sample/reset-password.tsindex 70814da..a0f70c8 100644--- a/packages/editor-sample/src/getConfiguration/sample/reset-password.ts+++ b/packages/editor-sample/src/getConfiguration/sample/reset-password.ts@@ -108,7 +108,7 @@ const RESET_PASSWORD: TEditorConfiguration = {fullWidth: false,size: 'medium',text: 'Change my password',- url: 'https://marketbase.example.com/reset_password?token={{token}}',+ url: 'https://example.usewaypoint.com/reset_password?token=02938409809w8r09a83wr098aw0',},},},diff --git a/packages/editor-sample/src/getConfiguration/sample/respond-to-message.ts b/packages/editor-sample/src/getConfiguration/sample/respond-to-message.tsindex a1adca2..4df5834 100644--- a/packages/editor-sample/src/getConfiguration/sample/respond-to-message.ts+++ b/packages/editor-sample/src/getConfiguration/sample/respond-to-message.ts@@ -59,7 +59,7 @@ const RESPOND_TO_MESSAGE: TEditorConfiguration = {},props: {level: 'h2',- text: `Respond to {{reservationRequest.displayName}}'s Inquiry`,+ text: 'Respond to Anna's Inquiry',},},},@@ -81,7 +81,7 @@ const RESPOND_TO_MESSAGE: TEditorConfiguration = {},},props: {- text: 'Dog boarding for {{reservationRequest.startDate}} - {{reservationRequest.endDate}}.',+ text: 'Dog boarding for Aug 1 - Aug 29.',},},},@@ -103,7 +103,7 @@ const RESPOND_TO_MESSAGE: TEditorConfiguration = {},},props: {- text: '*{{reservationRequest.message}}*',+ text: 'Any chance you can watch Emma again next month?',},},},@@ -148,7 +148,7 @@ const RESPOND_TO_MESSAGE: TEditorConfiguration = {size: 'large',buttonStyle: 'pill',text: 'Respond',- url: 'http://boop-marketplace.com/request/{{reservationRequest.id}}',+ url: 'http://example.usewaypoint.com/request/2334234',fullWidth: false,},},@@ -171,7 +171,7 @@ const RESPOND_TO_MESSAGE: TEditorConfiguration = {},},props: {- text: `*You need {{reservationRequest.walksUntilSuperWalker}} {{reservationRequest.walksUntilSuperWalker | pluralize: 'more walk', 'more walks'}} to become a Super Walker on Boop!*`,+ text: 'You need 2 more walks to become a Super Walker on Boop!',},},},diff --git a/packages/editor-sample/src/getConfiguration/sample/subscription-receipt.ts b/packages/editor-sample/src/getConfiguration/sample/subscription-receipt.tsindex 7371d94..fd9ea2c 100644--- a/packages/editor-sample/src/getConfiguration/sample/subscription-receipt.ts+++ b/packages/editor-sample/src/getConfiguration/sample/subscription-receipt.ts@@ -170,7 +170,7 @@ const SUBSCRIPTION_RECEIPT: TEditorConfiguration = {},},props: {- text: 'Receipt from {{company.name}}',+ text: 'Receipt from Remix Studios, Inc.',},},},@@ -192,7 +192,7 @@ const SUBSCRIPTION_RECEIPT: TEditorConfiguration = {},props: {level: 'h1',- text: '{{summary.amountPaid}}',+ text: '$99.75',},},},@@ -214,7 +214,7 @@ const SUBSCRIPTION_RECEIPT: TEditorConfiguration = {},},props: {- text: `Paid {{summary.paidDate | date: '%B %e, %Y' }}`,+ text: 'Paid August 1, 2023',},},},@@ -254,7 +254,7 @@ const SUBSCRIPTION_RECEIPT: TEditorConfiguration = {},},props: {- text: '[Download receipt](http://remix.example.com/receipt/{{summary.receiptNumber}})',+ text: 'Download receipt',},},},@@ -301,7 +301,7 @@ const SUBSCRIPTION_RECEIPT: TEditorConfiguration = {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}}',+ linkHref: 'http://remix.example.com/receipt/1923-2093',contentAlignment: 'middle',},},@@ -431,7 +431,7 @@ const SUBSCRIPTION_RECEIPT: TEditorConfiguration = {},},props: {- text: '{{summary.receiptNumber}}',+ text: '1923-2093',},},},@@ -560,7 +560,7 @@ const SUBSCRIPTION_RECEIPT: TEditorConfiguration = {},},props: {- text: '{{summary.invoiceNumber}}',+ text: '2ABC1234-20923',},},},@@ -689,7 +689,7 @@ const SUBSCRIPTION_RECEIPT: TEditorConfiguration = {},},props: {- text: '{{summary.paymentMethod}}',+ text: 'VISA – 4252',},},},@@ -828,7 +828,7 @@ const SUBSCRIPTION_RECEIPT: TEditorConfiguration = {},props: {level: 'h3',- text: 'Receipt #{{summary.receiptNumber}}',+ text: 'Receipt #1923-2093',},},},@@ -850,7 +850,7 @@ const SUBSCRIPTION_RECEIPT: TEditorConfiguration = {},},props: {- text: `{{summary.startDate | date: '%B %e, %Y' | upcase }} – {{summary.endDate | date: '%B %e, %Y' | upcase}}`,+ text: `JULY 10, 2023 – AUGUST 1, 2023`,},},},@@ -872,7 +872,7 @@ const SUBSCRIPTION_RECEIPT: TEditorConfiguration = {},},props: {- text: '{{lineItem.title}}',+ text: 'Remix Pro',},},},@@ -894,7 +894,7 @@ const SUBSCRIPTION_RECEIPT: TEditorConfiguration = {},},props: {- text: '{{lineItem.description}}',+ text: '5 seats',},},},@@ -935,7 +935,7 @@ const SUBSCRIPTION_RECEIPT: TEditorConfiguration = {},},props: {- text: '{{lineItem.price}}',+ text: '$99.75',},},},@@ -1101,7 +1101,7 @@ const SUBSCRIPTION_RECEIPT: TEditorConfiguration = {},},props: {- text: '{{summary.total}}',+ text: '$99.75',},},},@@ -1248,7 +1248,7 @@ const SUBSCRIPTION_RECEIPT: TEditorConfiguration = {},},props: {- text: '{{summary.amountPaid}}',+ text: '$99.75',},},},@@ -1362,7 +1362,7 @@ const SUBSCRIPTION_RECEIPT: TEditorConfiguration = {},},props: {- text: 'Can we help? [Email](mailto:[email protected]) - [Docs & support](https://www.usewaypoint.com/docs)',+ text: 'Can we help? Just reply to this email.',},},},