hububb-emails 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_components/callout.d.ts +9 -0
- package/dist/_components/callout.d.ts.map +1 -0
- package/dist/_components/callout.js +29 -0
- package/dist/_components/callout.js.map +1 -0
- package/dist/_components/detail-card.d.ts +16 -0
- package/dist/_components/detail-card.d.ts.map +1 -0
- package/dist/_components/detail-card.js +34 -0
- package/dist/_components/detail-card.js.map +1 -0
- package/dist/_components/divider.d.ts +11 -0
- package/dist/_components/divider.d.ts.map +1 -0
- package/dist/_components/divider.js +16 -0
- package/dist/_components/divider.js.map +1 -0
- package/dist/_components/email-layout.d.ts +29 -0
- package/dist/_components/email-layout.d.ts.map +1 -0
- package/dist/_components/email-layout.js +17 -0
- package/dist/_components/email-layout.js.map +1 -0
- package/dist/_components/heading.d.ts +9 -0
- package/dist/_components/heading.d.ts.map +1 -0
- package/dist/_components/heading.js +25 -0
- package/dist/_components/heading.js.map +1 -0
- package/dist/_components/icon-circle.d.ts +18 -0
- package/dist/_components/icon-circle.d.ts.map +1 -0
- package/dist/_components/icon-circle.js +23 -0
- package/dist/_components/icon-circle.js.map +1 -0
- package/dist/_components/icons.d.ts +31 -0
- package/dist/_components/icons.d.ts.map +1 -0
- package/dist/_components/icons.js +20 -0
- package/dist/_components/icons.js.map +1 -0
- package/dist/_components/index.d.ts +16 -0
- package/dist/_components/index.d.ts.map +1 -0
- package/dist/_components/index.js +31 -0
- package/dist/_components/index.js.map +1 -0
- package/dist/_components/message-quote.d.ts +10 -0
- package/dist/_components/message-quote.d.ts.map +1 -0
- package/dist/_components/message-quote.js +33 -0
- package/dist/_components/message-quote.js.map +1 -0
- package/dist/_components/primary-button.d.ts +10 -0
- package/dist/_components/primary-button.d.ts.map +1 -0
- package/dist/_components/primary-button.js +23 -0
- package/dist/_components/primary-button.js.map +1 -0
- package/dist/_components/secondary-button.d.ts +4 -0
- package/dist/_components/secondary-button.d.ts.map +1 -0
- package/dist/_components/secondary-button.js +24 -0
- package/dist/_components/secondary-button.js.map +1 -0
- package/dist/_components/steps-list.d.ts +10 -0
- package/dist/_components/steps-list.d.ts.map +1 -0
- package/dist/_components/steps-list.js +23 -0
- package/dist/_components/steps-list.js.map +1 -0
- package/dist/_components/text.d.ts +19 -0
- package/dist/_components/text.d.ts.map +1 -0
- package/dist/_components/text.js +28 -0
- package/dist/_components/text.js.map +1 -0
- package/dist/_components/units-list.d.ts +14 -0
- package/dist/_components/units-list.d.ts.map +1 -0
- package/dist/_components/units-list.js +11 -0
- package/dist/_components/units-list.js.map +1 -0
- package/dist/catalog.d.ts +170 -0
- package/dist/catalog.d.ts.map +1 -0
- package/dist/catalog.js +1082 -0
- package/dist/catalog.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +13 -0
- package/dist/index.js.map +1 -0
- package/dist/render.d.ts +21 -0
- package/dist/render.d.ts.map +1 -0
- package/dist/render.js +36 -0
- package/dist/render.js.map +1 -0
- package/dist/templates/account-deletion-request.d.ts +14 -0
- package/dist/templates/account-deletion-request.d.ts.map +1 -0
- package/dist/templates/account-deletion-request.js +10 -0
- package/dist/templates/account-deletion-request.js.map +1 -0
- package/dist/templates/airbnb-account-connected.d.ts +13 -0
- package/dist/templates/airbnb-account-connected.d.ts.map +1 -0
- package/dist/templates/airbnb-account-connected.js +10 -0
- package/dist/templates/airbnb-account-connected.js.map +1 -0
- package/dist/templates/airbnb-connection-success.d.ts +8 -0
- package/dist/templates/airbnb-connection-success.d.ts.map +1 -0
- package/dist/templates/airbnb-connection-success.js +11 -0
- package/dist/templates/airbnb-connection-success.js.map +1 -0
- package/dist/templates/airbnb-property-unlisted.d.ts +8 -0
- package/dist/templates/airbnb-property-unlisted.d.ts.map +1 -0
- package/dist/templates/airbnb-property-unlisted.js +10 -0
- package/dist/templates/airbnb-property-unlisted.js.map +1 -0
- package/dist/templates/bdc-listing-live.d.ts +8 -0
- package/dist/templates/bdc-listing-live.d.ts.map +1 -0
- package/dist/templates/bdc-listing-live.js +10 -0
- package/dist/templates/bdc-listing-live.js.map +1 -0
- package/dist/templates/booking-received.d.ts +12 -0
- package/dist/templates/booking-received.d.ts.map +1 -0
- package/dist/templates/booking-received.js +9 -0
- package/dist/templates/booking-received.js.map +1 -0
- package/dist/templates/check-in-notification.d.ts +10 -0
- package/dist/templates/check-in-notification.d.ts.map +1 -0
- package/dist/templates/check-in-notification.js +10 -0
- package/dist/templates/check-in-notification.js.map +1 -0
- package/dist/templates/check-out-notification.d.ts +10 -0
- package/dist/templates/check-out-notification.d.ts.map +1 -0
- package/dist/templates/check-out-notification.js +10 -0
- package/dist/templates/check-out-notification.js.map +1 -0
- package/dist/templates/direct-catalog-share.d.ts +9 -0
- package/dist/templates/direct-catalog-share.d.ts.map +1 -0
- package/dist/templates/direct-catalog-share.js +10 -0
- package/dist/templates/direct-catalog-share.js.map +1 -0
- package/dist/templates/direct-property-share.d.ts +9 -0
- package/dist/templates/direct-property-share.d.ts.map +1 -0
- package/dist/templates/direct-property-share.js +10 -0
- package/dist/templates/direct-property-share.js.map +1 -0
- package/dist/templates/guest-automated-message.d.ts +11 -0
- package/dist/templates/guest-automated-message.d.ts.map +1 -0
- package/dist/templates/guest-automated-message.js +10 -0
- package/dist/templates/guest-automated-message.js.map +1 -0
- package/dist/templates/guest-coordination-employee-notification.d.ts +10 -0
- package/dist/templates/guest-coordination-employee-notification.d.ts.map +1 -0
- package/dist/templates/guest-coordination-employee-notification.js +10 -0
- package/dist/templates/guest-coordination-employee-notification.js.map +1 -0
- package/dist/templates/guest-coordination-subscription.d.ts +9 -0
- package/dist/templates/guest-coordination-subscription.d.ts.map +1 -0
- package/dist/templates/guest-coordination-subscription.js +10 -0
- package/dist/templates/guest-coordination-subscription.js.map +1 -0
- package/dist/templates/guest-direct-booking-confirmation.d.ts +14 -0
- package/dist/templates/guest-direct-booking-confirmation.d.ts.map +1 -0
- package/dist/templates/guest-direct-booking-confirmation.js +10 -0
- package/dist/templates/guest-direct-booking-confirmation.js.map +1 -0
- package/dist/templates/guest-portal-email-code.d.ts +7 -0
- package/dist/templates/guest-portal-email-code.d.ts.map +1 -0
- package/dist/templates/guest-portal-email-code.js +24 -0
- package/dist/templates/guest-portal-email-code.js.map +1 -0
- package/dist/templates/guest-portal-stay-invite.d.ts +14 -0
- package/dist/templates/guest-portal-stay-invite.d.ts.map +1 -0
- package/dist/templates/guest-portal-stay-invite.js +11 -0
- package/dist/templates/guest-portal-stay-invite.js.map +1 -0
- package/dist/templates/guest-verification-submitted-notification.d.ts +13 -0
- package/dist/templates/guest-verification-submitted-notification.d.ts.map +1 -0
- package/dist/templates/guest-verification-submitted-notification.js +10 -0
- package/dist/templates/guest-verification-submitted-notification.js.map +1 -0
- package/dist/templates/home-hold-declaration-approved.d.ts +13 -0
- package/dist/templates/home-hold-declaration-approved.d.ts.map +1 -0
- package/dist/templates/home-hold-declaration-approved.js +10 -0
- package/dist/templates/home-hold-declaration-approved.js.map +1 -0
- package/dist/templates/home-hold-declaration-now-required.d.ts +14 -0
- package/dist/templates/home-hold-declaration-now-required.d.ts.map +1 -0
- package/dist/templates/home-hold-declaration-now-required.js +10 -0
- package/dist/templates/home-hold-declaration-now-required.js.map +1 -0
- package/dist/templates/home-hold-declaration-rejected.d.ts +14 -0
- package/dist/templates/home-hold-declaration-rejected.d.ts.map +1 -0
- package/dist/templates/home-hold-declaration-rejected.js +10 -0
- package/dist/templates/home-hold-declaration-rejected.js.map +1 -0
- package/dist/templates/home-hold-lapsed-host.d.ts +12 -0
- package/dist/templates/home-hold-lapsed-host.d.ts.map +1 -0
- package/dist/templates/home-hold-lapsed-host.js +12 -0
- package/dist/templates/home-hold-lapsed-host.js.map +1 -0
- package/dist/templates/home-hold-lapsed.d.ts +15 -0
- package/dist/templates/home-hold-lapsed.d.ts.map +1 -0
- package/dist/templates/home-hold-lapsed.js +12 -0
- package/dist/templates/home-hold-lapsed.js.map +1 -0
- package/dist/templates/home-hold-reminder.d.ts +22 -0
- package/dist/templates/home-hold-reminder.d.ts.map +1 -0
- package/dist/templates/home-hold-reminder.js +12 -0
- package/dist/templates/home-hold-reminder.js.map +1 -0
- package/dist/templates/host-to-operations-message-notification.d.ts +15 -0
- package/dist/templates/host-to-operations-message-notification.d.ts.map +1 -0
- package/dist/templates/host-to-operations-message-notification.js +10 -0
- package/dist/templates/host-to-operations-message-notification.js.map +1 -0
- package/dist/templates/how-it-works.d.ts +8 -0
- package/dist/templates/how-it-works.d.ts.map +1 -0
- package/dist/templates/how-it-works.js +14 -0
- package/dist/templates/how-it-works.js.map +1 -0
- package/dist/templates/internal-bdc-listing-request.d.ts +8 -0
- package/dist/templates/internal-bdc-listing-request.d.ts.map +1 -0
- package/dist/templates/internal-bdc-listing-request.js +10 -0
- package/dist/templates/internal-bdc-listing-request.js.map +1 -0
- package/dist/templates/new-landlord-message-notification.d.ts +9 -0
- package/dist/templates/new-landlord-message-notification.d.ts.map +1 -0
- package/dist/templates/new-landlord-message-notification.js +10 -0
- package/dist/templates/new-landlord-message-notification.js.map +1 -0
- package/dist/templates/new-landlord-notification.d.ts +11 -0
- package/dist/templates/new-landlord-notification.d.ts.map +1 -0
- package/dist/templates/new-landlord-notification.js +10 -0
- package/dist/templates/new-landlord-notification.js.map +1 -0
- package/dist/templates/new-message-coordinator-notification.d.ts +12 -0
- package/dist/templates/new-message-coordinator-notification.d.ts.map +1 -0
- package/dist/templates/new-message-coordinator-notification.js +10 -0
- package/dist/templates/new-message-coordinator-notification.js.map +1 -0
- package/dist/templates/new-message.d.ts +12 -0
- package/dist/templates/new-message.d.ts.map +1 -0
- package/dist/templates/new-message.js +9 -0
- package/dist/templates/new-message.js.map +1 -0
- package/dist/templates/new-property-submitted.d.ts +10 -0
- package/dist/templates/new-property-submitted.d.ts.map +1 -0
- package/dist/templates/new-property-submitted.js +10 -0
- package/dist/templates/new-property-submitted.js.map +1 -0
- package/dist/templates/new-support-message-notification.d.ts +11 -0
- package/dist/templates/new-support-message-notification.d.ts.map +1 -0
- package/dist/templates/new-support-message-notification.js +10 -0
- package/dist/templates/new-support-message-notification.js.map +1 -0
- package/dist/templates/payment-action-required.d.ts +10 -0
- package/dist/templates/payment-action-required.d.ts.map +1 -0
- package/dist/templates/payment-action-required.js +10 -0
- package/dist/templates/payment-action-required.js.map +1 -0
- package/dist/templates/payment-confirmation.d.ts +14 -0
- package/dist/templates/payment-confirmation.d.ts.map +1 -0
- package/dist/templates/payment-confirmation.js +10 -0
- package/dist/templates/payment-confirmation.js.map +1 -0
- package/dist/templates/payment-failed.d.ts +12 -0
- package/dist/templates/payment-failed.d.ts.map +1 -0
- package/dist/templates/payment-failed.js +9 -0
- package/dist/templates/payment-failed.js.map +1 -0
- package/dist/templates/payout-completed-notification.d.ts +10 -0
- package/dist/templates/payout-completed-notification.d.ts.map +1 -0
- package/dist/templates/payout-completed-notification.js +10 -0
- package/dist/templates/payout-completed-notification.js.map +1 -0
- package/dist/templates/payout-rejected-notification.d.ts +11 -0
- package/dist/templates/payout-rejected-notification.d.ts.map +1 -0
- package/dist/templates/payout-rejected-notification.js +11 -0
- package/dist/templates/payout-rejected-notification.js.map +1 -0
- package/dist/templates/payout-requested.d.ts +14 -0
- package/dist/templates/payout-requested.d.ts.map +1 -0
- package/dist/templates/payout-requested.js +10 -0
- package/dist/templates/payout-requested.js.map +1 -0
- package/dist/templates/property-submission-confirmation.d.ts +9 -0
- package/dist/templates/property-submission-confirmation.d.ts.map +1 -0
- package/dist/templates/property-submission-confirmation.js +10 -0
- package/dist/templates/property-submission-confirmation.js.map +1 -0
- package/dist/templates/quote-submitted-host.d.ts +14 -0
- package/dist/templates/quote-submitted-host.d.ts.map +1 -0
- package/dist/templates/quote-submitted-host.js +16 -0
- package/dist/templates/quote-submitted-host.js.map +1 -0
- package/dist/templates/quote-submitted-ops.d.ts +12 -0
- package/dist/templates/quote-submitted-ops.d.ts.map +1 -0
- package/dist/templates/quote-submitted-ops.js +10 -0
- package/dist/templates/quote-submitted-ops.js.map +1 -0
- package/dist/templates/reservation-cancellation.d.ts +10 -0
- package/dist/templates/reservation-cancellation.d.ts.map +1 -0
- package/dist/templates/reservation-cancellation.js +9 -0
- package/dist/templates/reservation-cancellation.js.map +1 -0
- package/dist/templates/reset-password.d.ts +9 -0
- package/dist/templates/reset-password.d.ts.map +1 -0
- package/dist/templates/reset-password.js +9 -0
- package/dist/templates/reset-password.js.map +1 -0
- package/dist/templates/service-booking-confirmation.d.ts +11 -0
- package/dist/templates/service-booking-confirmation.d.ts.map +1 -0
- package/dist/templates/service-booking-confirmation.js +12 -0
- package/dist/templates/service-booking-confirmation.js.map +1 -0
- package/dist/templates/service-booking-employee-notification.d.ts +14 -0
- package/dist/templates/service-booking-employee-notification.d.ts.map +1 -0
- package/dist/templates/service-booking-employee-notification.js +10 -0
- package/dist/templates/service-booking-employee-notification.js.map +1 -0
- package/dist/templates/service-request-notification.d.ts +21 -0
- package/dist/templates/service-request-notification.d.ts.map +1 -0
- package/dist/templates/service-request-notification.js +10 -0
- package/dist/templates/service-request-notification.js.map +1 -0
- package/dist/templates/service-request.d.ts +10 -0
- package/dist/templates/service-request.d.ts.map +1 -0
- package/dist/templates/service-request.js +10 -0
- package/dist/templates/service-request.js.map +1 -0
- package/dist/templates/subscription-confirmation-bdc.d.ts +8 -0
- package/dist/templates/subscription-confirmation-bdc.d.ts.map +1 -0
- package/dist/templates/subscription-confirmation-bdc.js +10 -0
- package/dist/templates/subscription-confirmation-bdc.js.map +1 -0
- package/dist/templates/support-direct-message-notification.d.ts +13 -0
- package/dist/templates/support-direct-message-notification.d.ts.map +1 -0
- package/dist/templates/support-direct-message-notification.js +10 -0
- package/dist/templates/support-direct-message-notification.js.map +1 -0
- package/dist/templates/task-accepted-host.d.ts +14 -0
- package/dist/templates/task-accepted-host.d.ts.map +1 -0
- package/dist/templates/task-accepted-host.js +10 -0
- package/dist/templates/task-accepted-host.js.map +1 -0
- package/dist/templates/task-accepted-ops.d.ts +12 -0
- package/dist/templates/task-accepted-ops.d.ts.map +1 -0
- package/dist/templates/task-accepted-ops.js +10 -0
- package/dist/templates/task-accepted-ops.js.map +1 -0
- package/dist/templates/task-answers-submitted-ops.d.ts +9 -0
- package/dist/templates/task-answers-submitted-ops.d.ts.map +1 -0
- package/dist/templates/task-answers-submitted-ops.js +10 -0
- package/dist/templates/task-answers-submitted-ops.js.map +1 -0
- package/dist/templates/task-assigned-worker.d.ts +13 -0
- package/dist/templates/task-assigned-worker.d.ts.map +1 -0
- package/dist/templates/task-assigned-worker.js +10 -0
- package/dist/templates/task-assigned-worker.js.map +1 -0
- package/dist/templates/task-completed-host.d.ts +16 -0
- package/dist/templates/task-completed-host.d.ts.map +1 -0
- package/dist/templates/task-completed-host.js +17 -0
- package/dist/templates/task-completed-host.js.map +1 -0
- package/dist/templates/task-completed-ops.d.ts +9 -0
- package/dist/templates/task-completed-ops.d.ts.map +1 -0
- package/dist/templates/task-completed-ops.js +10 -0
- package/dist/templates/task-completed-ops.js.map +1 -0
- package/dist/templates/task-payment-failed.d.ts +18 -0
- package/dist/templates/task-payment-failed.d.ts.map +1 -0
- package/dist/templates/task-payment-failed.js +10 -0
- package/dist/templates/task-payment-failed.js.map +1 -0
- package/dist/templates/task-payment-successful.d.ts +16 -0
- package/dist/templates/task-payment-successful.d.ts.map +1 -0
- package/dist/templates/task-payment-successful.js +10 -0
- package/dist/templates/task-payment-successful.js.map +1 -0
- package/dist/templates/task-purchased-ops.d.ts +12 -0
- package/dist/templates/task-purchased-ops.d.ts.map +1 -0
- package/dist/templates/task-purchased-ops.js +10 -0
- package/dist/templates/task-purchased-ops.js.map +1 -0
- package/dist/templates/task-rejected-ops.d.ts +11 -0
- package/dist/templates/task-rejected-ops.d.ts.map +1 -0
- package/dist/templates/task-rejected-ops.js +10 -0
- package/dist/templates/task-rejected-ops.js.map +1 -0
- package/dist/templates/task-service-assigned-host.d.ts +11 -0
- package/dist/templates/task-service-assigned-host.d.ts.map +1 -0
- package/dist/templates/task-service-assigned-host.js +10 -0
- package/dist/templates/task-service-assigned-host.js.map +1 -0
- package/dist/templates/welcome-guest.d.ts +13 -0
- package/dist/templates/welcome-guest.d.ts.map +1 -0
- package/dist/templates/welcome-guest.js +17 -0
- package/dist/templates/welcome-guest.js.map +1 -0
- package/dist/templates/welcome-host.d.ts +9 -0
- package/dist/templates/welcome-host.d.ts.map +1 -0
- package/dist/templates/welcome-host.js +10 -0
- package/dist/templates/welcome-host.js.map +1 -0
- package/dist/templates/welcome-no-listing.d.ts +8 -0
- package/dist/templates/welcome-no-listing.d.ts.map +1 -0
- package/dist/templates/welcome-no-listing.js +14 -0
- package/dist/templates/welcome-no-listing.js.map +1 -0
- package/dist/templates/welcome-provider.d.ts +8 -0
- package/dist/templates/welcome-provider.d.ts.map +1 -0
- package/dist/templates/welcome-provider.js +22 -0
- package/dist/templates/welcome-provider.js.map +1 -0
- package/dist/theme.d.ts +113 -0
- package/dist/theme.d.ts.map +1 -0
- package/dist/theme.js +79 -0
- package/dist/theme.js.map +1 -0
- package/package.json +35 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"steps-list.d.ts","sourceRoot":"","sources":["../../src/_components/steps-list.tsx"],"names":[],"mappings":"AAKA,MAAM,WAAW,cAAc;IAC3B,KAAK,EAAE,KAAK,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,WAAW,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;IACrD,iDAAiD;IACjD,OAAO,CAAC,EAAE,OAAO,CAAA;CACpB;AAED,wBAAgB,SAAS,CAAC,EAAE,KAAK,EAAE,OAAc,EAAE,EAAE,cAAc,+BAiDlE"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StepsList = StepsList;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const components_1 = require("@react-email/components");
|
|
6
|
+
const icons_1 = require("./icons");
|
|
7
|
+
const theme_1 = require("../theme");
|
|
8
|
+
const icon_circle_1 = require("./icon-circle");
|
|
9
|
+
function StepsList({ steps, ordered = true }) {
|
|
10
|
+
return ((0, jsx_runtime_1.jsx)(components_1.Section, { style: { margin: '0 0 24px' }, children: steps.map((step, i) => ((0, jsx_runtime_1.jsxs)(components_1.Row, { style: { marginBottom: '12px' }, children: [(0, jsx_runtime_1.jsx)(components_1.Column, { style: { width: '36px', verticalAlign: 'top' }, children: ordered ? ((0, jsx_runtime_1.jsx)("table", { cellPadding: 0, cellSpacing: 0, role: "presentation", style: { width: '24px', height: '24px', backgroundColor: theme_1.colors.bg.subtle, borderRadius: '9999px' }, children: (0, jsx_runtime_1.jsx)("tbody", { children: (0, jsx_runtime_1.jsx)("tr", { children: (0, jsx_runtime_1.jsx)("td", { align: "center", valign: "middle", style: { width: '24px', height: '24px', textAlign: 'center', verticalAlign: 'middle', lineHeight: '24px', color: theme_1.colors.text.t1, fontSize: theme_1.fontSize.caption, fontWeight: theme_1.fontWeight.semibold }, children: i + 1 }) }) }) })) : ((0, jsx_runtime_1.jsx)(icon_circle_1.IconCircle, { icon: icons_1.Check, size: 24, glyphSize: 14, bg: theme_1.colors.success.bg, fg: theme_1.colors.success.fg, weight: "bold" })) }), (0, jsx_runtime_1.jsxs)(components_1.Column, { style: { verticalAlign: 'top', paddingBottom: '8px' }, children: [(0, jsx_runtime_1.jsx)("p", { style: {
|
|
11
|
+
color: theme_1.colors.text.t1,
|
|
12
|
+
fontSize: theme_1.fontSize.body,
|
|
13
|
+
fontWeight: theme_1.fontWeight.medium,
|
|
14
|
+
lineHeight: theme_1.lineHeight.body,
|
|
15
|
+
margin: 0,
|
|
16
|
+
}, children: step.title }), step.description && ((0, jsx_runtime_1.jsx)("p", { style: {
|
|
17
|
+
color: theme_1.colors.text.t3,
|
|
18
|
+
fontSize: theme_1.fontSize.body,
|
|
19
|
+
lineHeight: theme_1.lineHeight.body,
|
|
20
|
+
margin: '2px 0 0',
|
|
21
|
+
}, children: step.description }))] })] }, i))) }));
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=steps-list.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"steps-list.js","sourceRoot":"","sources":["../../src/_components/steps-list.tsx"],"names":[],"mappings":";;AAWA,8BAiDC;;AA5DD,wDAA8D;AAC9D,mCAA+B;AAC/B,oCAAmE;AACnE,+CAA0C;AAQ1C,SAAgB,SAAS,CAAC,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI,EAAkB;IAC/D,OAAO,CACH,uBAAC,oBAAO,IAAC,KAAK,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,YACjC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CACpB,wBAAC,gBAAG,IAAS,KAAK,EAAE,EAAE,YAAY,EAAE,MAAM,EAAE,aACxC,uBAAC,mBAAM,IAAC,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,KAAK,EAAE,YACjD,OAAO,CAAC,CAAC,CAAC,CACP,kCAAO,WAAW,EAAE,CAAC,EAAE,WAAW,EAAE,CAAC,EAAE,IAAI,EAAC,cAAc,EAAC,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,eAAe,EAAE,cAAM,CAAC,EAAE,CAAC,MAAM,EAAE,YAAY,EAAE,QAAQ,EAAE,YAC1J,4CACI,yCACI,+BAAI,KAAK,EAAC,QAAQ,EAAC,MAAM,EAAC,QAAQ,EAAC,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,aAAa,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,cAAM,CAAC,IAAI,CAAC,EAAE,EAAE,QAAQ,EAAE,gBAAQ,CAAC,OAAO,EAAE,UAAU,EAAE,kBAAU,CAAC,QAAQ,EAAE,YAC5N,CAAC,GAAG,CAAC,GACL,GACJ,GACD,GACJ,CACX,CAAC,CAAC,CAAC,CACA,uBAAC,wBAAU,IAAC,IAAI,EAAE,aAAK,EAAE,IAAI,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,cAAM,CAAC,OAAO,CAAC,EAAE,EAAE,EAAE,EAAE,cAAM,CAAC,OAAO,CAAC,EAAE,EAAE,MAAM,EAAC,MAAM,GAAG,CACnH,GACI,EACT,wBAAC,mBAAM,IAAC,KAAK,EAAE,EAAE,aAAa,EAAE,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,aACzD,8BACI,KAAK,EAAE;gCACH,KAAK,EAAE,cAAM,CAAC,IAAI,CAAC,EAAE;gCACrB,QAAQ,EAAE,gBAAQ,CAAC,IAAI;gCACvB,UAAU,EAAE,kBAAU,CAAC,MAAM;gCAC7B,UAAU,EAAE,kBAAU,CAAC,IAAI;gCAC3B,MAAM,EAAE,CAAC;6BACZ,YAEA,IAAI,CAAC,KAAK,GACX,EACH,IAAI,CAAC,WAAW,IAAI,CACjB,8BACI,KAAK,EAAE;gCACH,KAAK,EAAE,cAAM,CAAC,IAAI,CAAC,EAAE;gCACrB,QAAQ,EAAE,gBAAQ,CAAC,IAAI;gCACvB,UAAU,EAAE,kBAAU,CAAC,IAAI;gCAC3B,MAAM,EAAE,SAAS;6BACpB,YAEA,IAAI,CAAC,WAAW,GACjB,CACP,IACI,KAxCH,CAAC,CAyCL,CACT,CAAC,GACI,CACb,CAAA;AACL,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
import { fontWeight } from '../theme';
|
|
3
|
+
type Tone = 't1' | 't2' | 't3' | 'muted' | 'dim';
|
|
4
|
+
type Size = 'body' | 'bodyLg' | 'caption';
|
|
5
|
+
export interface TextProps {
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
size?: Size;
|
|
8
|
+
tone?: Tone;
|
|
9
|
+
weight?: keyof typeof fontWeight;
|
|
10
|
+
align?: 'left' | 'center';
|
|
11
|
+
style?: CSSProperties;
|
|
12
|
+
}
|
|
13
|
+
export declare function Text({ children, size, tone, weight, align, style }: TextProps): import("react").JSX.Element;
|
|
14
|
+
/** Quiet supporting line. */
|
|
15
|
+
export declare function Muted({ children, ...rest }: Omit<TextProps, 'tone'>): import("react").JSX.Element;
|
|
16
|
+
/** Smallest readable text — footnotes, captions. */
|
|
17
|
+
export declare function Caption({ children, ...rest }: Omit<TextProps, 'tone' | 'size'>): import("react").JSX.Element;
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=text.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../src/_components/text.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACrD,OAAO,EAAoB,UAAU,EAAc,MAAM,UAAU,CAAA;AAEnE,KAAK,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,OAAO,GAAG,KAAK,CAAA;AAChD,KAAK,IAAI,GAAG,MAAM,GAAG,QAAQ,GAAG,SAAS,CAAA;AAEzC,MAAM,WAAW,SAAS;IACtB,QAAQ,EAAE,SAAS,CAAA;IACnB,IAAI,CAAC,EAAE,IAAI,CAAA;IACX,IAAI,CAAC,EAAE,IAAI,CAAA;IACX,MAAM,CAAC,EAAE,MAAM,OAAO,UAAU,CAAA;IAChC,KAAK,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAA;IACzB,KAAK,CAAC,EAAE,aAAa,CAAA;CACxB;AAED,wBAAgB,IAAI,CAAC,EAAE,QAAQ,EAAE,IAAa,EAAE,IAAW,EAAE,MAAkB,EAAE,KAAc,EAAE,KAAK,EAAE,EAAE,SAAS,+BAgBlH;AAED,6BAA6B;AAC7B,wBAAgB,KAAK,CAAC,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,IAAI,CAAC,SAAS,EAAE,MAAM,CAAC,+BAMnE;AAED,oDAAoD;AACpD,wBAAgB,OAAO,CAAC,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,IAAI,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAAC,+BAM9E"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Text = Text;
|
|
4
|
+
exports.Muted = Muted;
|
|
5
|
+
exports.Caption = Caption;
|
|
6
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
+
const components_1 = require("@react-email/components");
|
|
8
|
+
const theme_1 = require("../theme");
|
|
9
|
+
function Text({ children, size = 'body', tone = 't2', weight = 'regular', align = 'left', style }) {
|
|
10
|
+
return ((0, jsx_runtime_1.jsx)(components_1.Text, { style: {
|
|
11
|
+
color: theme_1.colors.text[tone],
|
|
12
|
+
fontSize: theme_1.fontSize[size],
|
|
13
|
+
fontWeight: theme_1.fontWeight[weight],
|
|
14
|
+
lineHeight: theme_1.lineHeight.body,
|
|
15
|
+
textAlign: align,
|
|
16
|
+
margin: '0 0 16px',
|
|
17
|
+
...style,
|
|
18
|
+
}, children: children }));
|
|
19
|
+
}
|
|
20
|
+
/** Quiet supporting line. */
|
|
21
|
+
function Muted({ children, ...rest }) {
|
|
22
|
+
return ((0, jsx_runtime_1.jsx)(Text, { tone: "muted", ...rest, children: children }));
|
|
23
|
+
}
|
|
24
|
+
/** Smallest readable text — footnotes, captions. */
|
|
25
|
+
function Caption({ children, ...rest }) {
|
|
26
|
+
return ((0, jsx_runtime_1.jsx)(Text, { size: "caption", tone: "muted", ...rest, children: children }));
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=text.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text.js","sourceRoot":"","sources":["../../src/_components/text.tsx"],"names":[],"mappings":";;AAgBA,oBAgBC;AAGD,sBAMC;AAGD,0BAMC;;AAlDD,wDAAwD;AAExD,oCAAmE;AAcnE,SAAgB,IAAI,CAAC,EAAE,QAAQ,EAAE,IAAI,GAAG,MAAM,EAAE,IAAI,GAAG,IAAI,EAAE,MAAM,GAAG,SAAS,EAAE,KAAK,GAAG,MAAM,EAAE,KAAK,EAAa;IAC/G,OAAO,CACH,uBAAC,iBAAM,IACH,KAAK,EAAE;YACH,KAAK,EAAE,cAAM,CAAC,IAAI,CAAC,IAAI,CAAC;YACxB,QAAQ,EAAE,gBAAQ,CAAC,IAAI,CAAC;YACxB,UAAU,EAAE,kBAAU,CAAC,MAAM,CAAC;YAC9B,UAAU,EAAE,kBAAU,CAAC,IAAI;YAC3B,SAAS,EAAE,KAAK;YAChB,MAAM,EAAE,UAAU;YAClB,GAAG,KAAK;SACX,YAEA,QAAQ,GACJ,CACZ,CAAA;AACL,CAAC;AAED,6BAA6B;AAC7B,SAAgB,KAAK,CAAC,EAAE,QAAQ,EAAE,GAAG,IAAI,EAA2B;IAChE,OAAO,CACH,uBAAC,IAAI,IAAC,IAAI,EAAC,OAAO,KAAK,IAAI,YACtB,QAAQ,GACN,CACV,CAAA;AACL,CAAC;AAED,oDAAoD;AACpD,SAAgB,OAAO,CAAC,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAoC;IAC3E,OAAO,CACH,uBAAC,IAAI,IAAC,IAAI,EAAC,SAAS,EAAC,IAAI,EAAC,OAAO,KAAK,IAAI,YACrC,QAAQ,GACN,CACV,CAAA;AACL,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface EmailUnit {
|
|
2
|
+
name: string;
|
|
3
|
+
location: string;
|
|
4
|
+
/** Optional — a property may have no photo yet, in which case no thumbnail is shown. */
|
|
5
|
+
imageUrl?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface UnitsListProps {
|
|
8
|
+
units: EmailUnit[];
|
|
9
|
+
/** Appended after the location, e.g. "Imported from Airbnb". */
|
|
10
|
+
note?: string;
|
|
11
|
+
}
|
|
12
|
+
/** Bordered list of property units with thumbnails — shared by welcome + integration emails. */
|
|
13
|
+
export declare function UnitsList({ units, note }: UnitsListProps): import("react").JSX.Element;
|
|
14
|
+
//# sourceMappingURL=units-list.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"units-list.d.ts","sourceRoot":"","sources":["../../src/_components/units-list.tsx"],"names":[],"mappings":"AAGA,MAAM,WAAW,SAAS;IACtB,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,CAAA;IAChB,wFAAwF;IACxF,QAAQ,CAAC,EAAE,MAAM,CAAA;CACpB;AAED,MAAM,WAAW,cAAc;IAC3B,KAAK,EAAE,SAAS,EAAE,CAAA;IAClB,gEAAgE;IAChE,IAAI,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,gGAAgG;AAChG,wBAAgB,SAAS,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,cAAc,+BA6BxD"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UnitsList = UnitsList;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const components_1 = require("@react-email/components");
|
|
6
|
+
const theme_1 = require("../theme");
|
|
7
|
+
/** Bordered list of property units with thumbnails — shared by welcome + integration emails. */
|
|
8
|
+
function UnitsList({ units, note }) {
|
|
9
|
+
return ((0, jsx_runtime_1.jsx)(components_1.Section, { style: { border: `1px solid ${theme_1.colors.border.base}`, borderRadius: theme_1.radius.lg, overflow: 'hidden', margin: '0 0 24px' }, children: units.map((unit, i) => ((0, jsx_runtime_1.jsxs)(components_1.Row, { style: i > 0 ? { borderTop: `1px solid ${theme_1.colors.border.subtle}` } : undefined, children: [unit.imageUrl && ((0, jsx_runtime_1.jsx)(components_1.Column, { style: { width: '84px', verticalAlign: 'middle', padding: '12px 0 12px 12px' }, children: (0, jsx_runtime_1.jsx)(components_1.Img, { src: unit.imageUrl, width: 64, height: 64, alt: unit.name, style: { width: '64px', height: '64px', objectFit: 'cover', borderRadius: theme_1.radius.md, display: 'block' } }) })), (0, jsx_runtime_1.jsxs)(components_1.Column, { style: { verticalAlign: 'middle', padding: '12px 16px' }, children: [(0, jsx_runtime_1.jsx)("p", { style: { color: theme_1.colors.text.t1, fontSize: theme_1.fontSize.body, fontWeight: theme_1.fontWeight.medium, margin: 0 }, children: unit.name }), (0, jsx_runtime_1.jsxs)("p", { style: { color: theme_1.colors.text.muted, fontSize: theme_1.fontSize.caption, margin: '2px 0 0' }, children: [unit.location, note ? ` · ${note}` : ''] })] })] }, i))) }));
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=units-list.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"units-list.js","sourceRoot":"","sources":["../../src/_components/units-list.tsx"],"names":[],"mappings":";;AAiBA,8BA6BC;;AA9CD,wDAAmE;AACnE,oCAA+D;AAe/D,gGAAgG;AAChG,SAAgB,SAAS,CAAC,EAAE,KAAK,EAAE,IAAI,EAAkB;IACrD,OAAO,CACH,uBAAC,oBAAO,IAAC,KAAK,EAAE,EAAE,MAAM,EAAE,aAAa,cAAM,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,YAAY,EAAE,cAAM,CAAC,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,YACzH,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CACpB,wBAAC,gBAAG,IAAS,KAAK,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,aAAa,cAAM,CAAC,MAAM,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,aACrF,IAAI,CAAC,QAAQ,IAAI,CACd,uBAAC,mBAAM,IAAC,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,QAAQ,EAAE,OAAO,EAAE,kBAAkB,EAAE,YAClF,uBAAC,gBAAG,IACA,GAAG,EAAE,IAAI,CAAC,QAAQ,EAClB,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE,EACV,GAAG,EAAE,IAAI,CAAC,IAAI,EACd,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,YAAY,EAAE,cAAM,CAAC,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,GACzG,GACG,CACZ,EACD,wBAAC,mBAAM,IAAC,KAAK,EAAE,EAAE,aAAa,EAAE,QAAQ,EAAE,OAAO,EAAE,WAAW,EAAE,aAC5D,8BAAG,KAAK,EAAE,EAAE,KAAK,EAAE,cAAM,CAAC,IAAI,CAAC,EAAE,EAAE,QAAQ,EAAE,gBAAQ,CAAC,IAAI,EAAE,UAAU,EAAE,kBAAU,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,EAAE,YACjG,IAAI,CAAC,IAAI,GACV,EACJ,+BAAG,KAAK,EAAE,EAAE,KAAK,EAAE,cAAM,CAAC,IAAI,CAAC,KAAK,EAAE,QAAQ,EAAE,gBAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,aAChF,IAAI,CAAC,QAAQ,EACb,IAAI,CAAC,CAAC,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,IACzB,IACC,KApBH,CAAC,CAqBL,CACT,CAAC,GACI,CACb,CAAA;AACL,CAAC"}
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import type { ComponentType } from 'react';
|
|
2
|
+
import type { BaseEmailProps } from './_components';
|
|
3
|
+
import { type AccountDeletionRequestProps } from './templates/account-deletion-request';
|
|
4
|
+
import { type AirbnbAccountConnectedProps } from './templates/airbnb-account-connected';
|
|
5
|
+
import { type AirbnbConnectionSuccessProps } from './templates/airbnb-connection-success';
|
|
6
|
+
import { type AirbnbPropertyUnlistedProps } from './templates/airbnb-property-unlisted';
|
|
7
|
+
import { type BdcListingLiveProps } from './templates/bdc-listing-live';
|
|
8
|
+
import { type BookingReceivedProps } from './templates/booking-received';
|
|
9
|
+
import { type CheckInNotificationProps } from './templates/check-in-notification';
|
|
10
|
+
import { type CheckOutNotificationProps } from './templates/check-out-notification';
|
|
11
|
+
import { type DirectCatalogShareProps } from './templates/direct-catalog-share';
|
|
12
|
+
import { type DirectPropertyShareProps } from './templates/direct-property-share';
|
|
13
|
+
import { type GuestAutomatedMessageProps } from './templates/guest-automated-message';
|
|
14
|
+
import { type GuestCoordinationEmployeeNotificationProps } from './templates/guest-coordination-employee-notification';
|
|
15
|
+
import { type GuestCoordinationSubscriptionProps } from './templates/guest-coordination-subscription';
|
|
16
|
+
import { type GuestDirectBookingConfirmationProps } from './templates/guest-direct-booking-confirmation';
|
|
17
|
+
import { type GuestPortalEmailCodeProps } from './templates/guest-portal-email-code';
|
|
18
|
+
import { type GuestPortalStayInviteProps } from './templates/guest-portal-stay-invite';
|
|
19
|
+
import { type GuestVerificationSubmittedNotificationProps } from './templates/guest-verification-submitted-notification';
|
|
20
|
+
import { type HomeHoldDeclarationApprovedProps } from './templates/home-hold-declaration-approved';
|
|
21
|
+
import { type HomeHoldDeclarationNowRequiredProps } from './templates/home-hold-declaration-now-required';
|
|
22
|
+
import { type HomeHoldDeclarationRejectedProps } from './templates/home-hold-declaration-rejected';
|
|
23
|
+
import { type HomeHoldLapsedProps } from './templates/home-hold-lapsed';
|
|
24
|
+
import { type HomeHoldLapsedHostProps } from './templates/home-hold-lapsed-host';
|
|
25
|
+
import { type HomeHoldReminderProps } from './templates/home-hold-reminder';
|
|
26
|
+
import { type HostToOperationsMessageNotificationProps } from './templates/host-to-operations-message-notification';
|
|
27
|
+
import { type HowItWorksProps } from './templates/how-it-works';
|
|
28
|
+
import { type InternalBdcListingRequestProps } from './templates/internal-bdc-listing-request';
|
|
29
|
+
import { type NewLandlordMessageNotificationProps } from './templates/new-landlord-message-notification';
|
|
30
|
+
import { type NewLandlordNotificationProps } from './templates/new-landlord-notification';
|
|
31
|
+
import { type NewMessageProps } from './templates/new-message';
|
|
32
|
+
import { type NewMessageCoordinatorNotificationProps } from './templates/new-message-coordinator-notification';
|
|
33
|
+
import { type NewPropertySubmittedProps } from './templates/new-property-submitted';
|
|
34
|
+
import { type NewSupportMessageNotificationProps } from './templates/new-support-message-notification';
|
|
35
|
+
import { type PaymentActionRequiredProps } from './templates/payment-action-required';
|
|
36
|
+
import { type PaymentConfirmationProps } from './templates/payment-confirmation';
|
|
37
|
+
import { type PaymentFailedProps } from './templates/payment-failed';
|
|
38
|
+
import { type PayoutCompletedNotificationProps } from './templates/payout-completed-notification';
|
|
39
|
+
import { type PayoutRejectedNotificationProps } from './templates/payout-rejected-notification';
|
|
40
|
+
import { type PayoutRequestedProps } from './templates/payout-requested';
|
|
41
|
+
import { type PropertySubmissionConfirmationProps } from './templates/property-submission-confirmation';
|
|
42
|
+
import { type QuoteSubmittedHostProps } from './templates/quote-submitted-host';
|
|
43
|
+
import { type QuoteSubmittedOpsProps } from './templates/quote-submitted-ops';
|
|
44
|
+
import { type ReservationCancellationProps } from './templates/reservation-cancellation';
|
|
45
|
+
import { type ResetPasswordProps } from './templates/reset-password';
|
|
46
|
+
import { type ServiceBookingConfirmationProps } from './templates/service-booking-confirmation';
|
|
47
|
+
import { type ServiceBookingEmployeeNotificationProps } from './templates/service-booking-employee-notification';
|
|
48
|
+
import { type ServiceRequestProps } from './templates/service-request';
|
|
49
|
+
import { type ServiceRequestNotificationProps } from './templates/service-request-notification';
|
|
50
|
+
import { type SubscriptionConfirmationBdcProps } from './templates/subscription-confirmation-bdc';
|
|
51
|
+
import { type SupportDirectMessageNotificationProps } from './templates/support-direct-message-notification';
|
|
52
|
+
import { type TaskAcceptedHostProps } from './templates/task-accepted-host';
|
|
53
|
+
import { type TaskAcceptedOpsProps } from './templates/task-accepted-ops';
|
|
54
|
+
import { type TaskAnswersSubmittedOpsProps } from './templates/task-answers-submitted-ops';
|
|
55
|
+
import { type TaskAssignedWorkerProps } from './templates/task-assigned-worker';
|
|
56
|
+
import { type TaskCompletedHostProps } from './templates/task-completed-host';
|
|
57
|
+
import { type TaskCompletedOpsProps } from './templates/task-completed-ops';
|
|
58
|
+
import { type TaskPaymentFailedProps } from './templates/task-payment-failed';
|
|
59
|
+
import { type TaskPaymentSuccessfulProps } from './templates/task-payment-successful';
|
|
60
|
+
import { type TaskPurchasedOpsProps } from './templates/task-purchased-ops';
|
|
61
|
+
import { type TaskRejectedOpsProps } from './templates/task-rejected-ops';
|
|
62
|
+
import { type TaskServiceAssignedHostProps } from './templates/task-service-assigned-host';
|
|
63
|
+
import { type WelcomeGuestProps } from './templates/welcome-guest';
|
|
64
|
+
import { type WelcomeHostProps } from './templates/welcome-host';
|
|
65
|
+
import { type WelcomeNoListingProps } from './templates/welcome-no-listing';
|
|
66
|
+
import { type WelcomeProviderProps } from './templates/welcome-provider';
|
|
67
|
+
export type EmailCategory = 'Reservations' | 'Tasks & quotes' | 'Payments' | 'Messaging' | 'Lifecycle' | 'Auth' | 'Guest portal' | 'Internal ops' | 'Integrations' | 'Sharing' | 'Property' | 'Home hold';
|
|
68
|
+
export interface EmailDefinition<P extends BaseEmailProps> {
|
|
69
|
+
/** Human label, used by the preview gallery sidebar. */
|
|
70
|
+
name: string;
|
|
71
|
+
category: EmailCategory;
|
|
72
|
+
Component: ComponentType<P>;
|
|
73
|
+
/**
|
|
74
|
+
* The subject line, derived from the same props the body renders from. Keeping
|
|
75
|
+
* it here — rather than at each call site — is what makes the preview gallery an
|
|
76
|
+
* accurate picture of what actually lands in the inbox.
|
|
77
|
+
*/
|
|
78
|
+
subject: (props: P) => string;
|
|
79
|
+
/** Realistic props, used by the gallery and by the render smoke test. */
|
|
80
|
+
sampleProps: P;
|
|
81
|
+
}
|
|
82
|
+
/** Preview-only. Real sends pass their own `baseUrl`; nothing here reads env. */
|
|
83
|
+
export declare const SAMPLE_BASE_URL = "http://localhost:3000";
|
|
84
|
+
export declare const emailCatalog: {
|
|
85
|
+
'booking-received': EmailDefinition<BookingReceivedProps>;
|
|
86
|
+
'reservation-cancellation': EmailDefinition<ReservationCancellationProps>;
|
|
87
|
+
'task-completed-host': EmailDefinition<TaskCompletedHostProps>;
|
|
88
|
+
'quote-submitted-host': EmailDefinition<QuoteSubmittedHostProps>;
|
|
89
|
+
'payment-failed': EmailDefinition<PaymentFailedProps>;
|
|
90
|
+
'payout-requested': EmailDefinition<PayoutRequestedProps>;
|
|
91
|
+
'new-message': EmailDefinition<NewMessageProps>;
|
|
92
|
+
'welcome-host': EmailDefinition<WelcomeHostProps>;
|
|
93
|
+
'welcome-provider': EmailDefinition<WelcomeProviderProps>;
|
|
94
|
+
'welcome-guest': EmailDefinition<WelcomeGuestProps>;
|
|
95
|
+
'reset-password': EmailDefinition<ResetPasswordProps>;
|
|
96
|
+
'guest-portal-stay-invite': EmailDefinition<GuestPortalStayInviteProps>;
|
|
97
|
+
'account-deletion-request': EmailDefinition<AccountDeletionRequestProps>;
|
|
98
|
+
'airbnb-connection-success': EmailDefinition<AirbnbConnectionSuccessProps>;
|
|
99
|
+
'task-accepted-host': EmailDefinition<TaskAcceptedHostProps>;
|
|
100
|
+
'task-assigned-worker': EmailDefinition<TaskAssignedWorkerProps>;
|
|
101
|
+
'task-service-assigned-host': EmailDefinition<TaskServiceAssignedHostProps>;
|
|
102
|
+
'task-accepted-ops': EmailDefinition<TaskAcceptedOpsProps>;
|
|
103
|
+
'task-answers-submitted-ops': EmailDefinition<TaskAnswersSubmittedOpsProps>;
|
|
104
|
+
'task-completed-ops': EmailDefinition<TaskCompletedOpsProps>;
|
|
105
|
+
'task-purchased-ops': EmailDefinition<TaskPurchasedOpsProps>;
|
|
106
|
+
'task-rejected-ops': EmailDefinition<TaskRejectedOpsProps>;
|
|
107
|
+
'quote-submitted-ops': EmailDefinition<QuoteSubmittedOpsProps>;
|
|
108
|
+
'service-booking-employee-notification': EmailDefinition<ServiceBookingEmployeeNotificationProps>;
|
|
109
|
+
'guest-verification-submitted-notification': EmailDefinition<GuestVerificationSubmittedNotificationProps>;
|
|
110
|
+
'new-property-submitted': EmailDefinition<NewPropertySubmittedProps>;
|
|
111
|
+
'airbnb-account-connected': EmailDefinition<AirbnbAccountConnectedProps>;
|
|
112
|
+
'internal-bdc-listing-request': EmailDefinition<InternalBdcListingRequestProps>;
|
|
113
|
+
'guest-coordination-employee-notification': EmailDefinition<GuestCoordinationEmployeeNotificationProps>;
|
|
114
|
+
'service-request': EmailDefinition<ServiceRequestProps>;
|
|
115
|
+
'service-request-notification': EmailDefinition<ServiceRequestNotificationProps>;
|
|
116
|
+
'new-landlord-message-notification': EmailDefinition<NewLandlordMessageNotificationProps>;
|
|
117
|
+
'support-direct-message-notification': EmailDefinition<SupportDirectMessageNotificationProps>;
|
|
118
|
+
'new-message-coordinator-notification': EmailDefinition<NewMessageCoordinatorNotificationProps>;
|
|
119
|
+
'new-support-message-notification': EmailDefinition<NewSupportMessageNotificationProps>;
|
|
120
|
+
'host-to-operations-message-notification': EmailDefinition<HostToOperationsMessageNotificationProps>;
|
|
121
|
+
'task-payment-failed': EmailDefinition<TaskPaymentFailedProps>;
|
|
122
|
+
'task-payment-successful': EmailDefinition<TaskPaymentSuccessfulProps>;
|
|
123
|
+
'payment-action-required': EmailDefinition<PaymentActionRequiredProps>;
|
|
124
|
+
'payment-confirmation': EmailDefinition<PaymentConfirmationProps>;
|
|
125
|
+
'payout-completed-notification': EmailDefinition<PayoutCompletedNotificationProps>;
|
|
126
|
+
'payout-rejected-notification': EmailDefinition<PayoutRejectedNotificationProps>;
|
|
127
|
+
'service-booking-confirmation': EmailDefinition<ServiceBookingConfirmationProps>;
|
|
128
|
+
'guest-coordination-subscription': EmailDefinition<GuestCoordinationSubscriptionProps>;
|
|
129
|
+
'airbnb-property-unlisted': EmailDefinition<AirbnbPropertyUnlistedProps>;
|
|
130
|
+
'bdc-listing-live': EmailDefinition<BdcListingLiveProps>;
|
|
131
|
+
'subscription-confirmation-bdc': EmailDefinition<SubscriptionConfirmationBdcProps>;
|
|
132
|
+
'guest-automated-message': EmailDefinition<GuestAutomatedMessageProps>;
|
|
133
|
+
'guest-direct-booking-confirmation': EmailDefinition<GuestDirectBookingConfirmationProps>;
|
|
134
|
+
'check-in-notification': EmailDefinition<CheckInNotificationProps>;
|
|
135
|
+
'check-out-notification': EmailDefinition<CheckOutNotificationProps>;
|
|
136
|
+
'guest-portal-email-code': EmailDefinition<GuestPortalEmailCodeProps>;
|
|
137
|
+
'welcome-no-listing': EmailDefinition<WelcomeNoListingProps>;
|
|
138
|
+
'how-it-works': EmailDefinition<HowItWorksProps>;
|
|
139
|
+
'new-landlord-notification': EmailDefinition<NewLandlordNotificationProps>;
|
|
140
|
+
'direct-catalog-share': EmailDefinition<DirectCatalogShareProps>;
|
|
141
|
+
'direct-property-share': EmailDefinition<DirectPropertyShareProps>;
|
|
142
|
+
'property-submission-confirmation': EmailDefinition<PropertySubmissionConfirmationProps>;
|
|
143
|
+
'home-hold-declaration-approved': EmailDefinition<HomeHoldDeclarationApprovedProps>;
|
|
144
|
+
'home-hold-declaration-now-required': EmailDefinition<HomeHoldDeclarationNowRequiredProps>;
|
|
145
|
+
'home-hold-declaration-rejected': EmailDefinition<HomeHoldDeclarationRejectedProps>;
|
|
146
|
+
'home-hold-lapsed': EmailDefinition<HomeHoldLapsedProps>;
|
|
147
|
+
'home-hold-lapsed-host': EmailDefinition<HomeHoldLapsedHostProps>;
|
|
148
|
+
'home-hold-reminder': EmailDefinition<HomeHoldReminderProps>;
|
|
149
|
+
};
|
|
150
|
+
/** Every template id the catalog knows about. Send sites are checked against this. */
|
|
151
|
+
export type EmailTemplateId = keyof typeof emailCatalog;
|
|
152
|
+
/** The exact props a given template needs — the source of compile-time safety at send sites. */
|
|
153
|
+
export type EmailPropsOf<K extends EmailTemplateId> = (typeof emailCatalog)[K] extends EmailDefinition<infer P> ? P : never;
|
|
154
|
+
export declare const emailTemplateIds: EmailTemplateId[];
|
|
155
|
+
/**
|
|
156
|
+
* A template's sample props, with every `SAMPLE_BASE_URL` occurrence rebased onto
|
|
157
|
+
* `baseUrl`. The preview gallery needs this so the logo and placeholder images
|
|
158
|
+
* resolve against whatever origin the gallery is being served from, not localhost.
|
|
159
|
+
*
|
|
160
|
+
* Safe as a string swap because catalog props are JSON-serializable by contract —
|
|
161
|
+
* the queued send path persists them as JSON too.
|
|
162
|
+
*/
|
|
163
|
+
export declare function sampleProps<K extends EmailTemplateId>(id: K, baseUrl?: string): EmailPropsOf<K>;
|
|
164
|
+
export declare function isEmailTemplateId(value: string): value is EmailTemplateId;
|
|
165
|
+
/** Gallery grouping, in a deliberate reading order rather than declaration order. */
|
|
166
|
+
export declare function emailsByCategory(): Array<{
|
|
167
|
+
category: EmailCategory;
|
|
168
|
+
ids: EmailTemplateId[];
|
|
169
|
+
}>;
|
|
170
|
+
//# sourceMappingURL=catalog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.d.ts","sourceRoot":"","sources":["../src/catalog.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAC1C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAEnD,OAAoC,EAAE,KAAK,2BAA2B,EAAE,MAAM,sCAAsC,CAAA;AACpH,OAAoC,EAAE,KAAK,2BAA2B,EAAE,MAAM,sCAAsC,CAAA;AACpH,OAAqC,EAAE,KAAK,4BAA4B,EAAE,MAAM,uCAAuC,CAAA;AACvH,OAAoC,EAAE,KAAK,2BAA2B,EAAE,MAAM,sCAAsC,CAAA;AACpH,OAA4B,EAAE,KAAK,mBAAmB,EAAE,MAAM,8BAA8B,CAAA;AAC5F,OAA6B,EAA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