* Add `hideCalendarEventDetails` to DB Co-authored-by: Alex van Andel <emrysal@users.noreply.github.com> * Add option to hide calendar event details * Pass `hideCalendarEventDetails` to event object * Add to API * Add to CalendarEvent class * Pass `hideCalendarEventDetails` to calendar services * Adjust test * fix: move `hideCalendarEventDetails` to `api/v2/event-types_2024_06_14` and remove from older versions - Added `hideCalendarEventDetails` to `api/v2/event-types_2024_06_14` - Removed `hideCalendarEventDetails` from `api/v1` and `api/v2/event-types_2024_04_15` * fix: calEventRaw is undefined (use event instead) * chore: Remove debug artifact * fix: description id + update to copy * fix: Attempt at fixing type error * Add hideCalendarEventDetails to test builder --------- Co-authored-by: Alex van Andel <emrysal@users.noreply.github.com> Co-authored-by: Somay Chauhan <somaychauhan98@gmail.com> Co-authored-by: Alex van Andel <me@alexvanandel.com>
JSX email templates
componentsHolds reusable patternstemplatesA template equals a type of email sent
Usage
import { renderEmail } from "@calcom/emails";
await renderEmail("TeamInviteEmail", {
language: t,
from: "teampro@example.com",
to: "pro@example.com",
teamName: "Team Pro",
joinLink: "https://cal.com",
});
The first argument is the template name as defined inside templates/index.ts. The second argument are the template props.
Development
You can use an API endpoint to preview the email HTML, there's already one on /apps/web/pages/api/email.ts feel free to change the template to the one you're currently working on.