@odeva/booking-emdash
v0.1.6
Published
EmDash native plugin for Odeva Booking widgets
Maintainers
Readme
Odeva Booking for EmDash
Native EmDash plugin that adds an Odeva Booking Portable Text block and renders it as the bundled <odeva-booking-widget> web component.
Install
npm install @odeva/booking-emdashRegister the plugin in astro.config.mjs:
import { defineConfig } from "astro/config";
import emdash from "emdash/astro";
import { odevaBookingPlugin } from "@odeva/booking-emdash";
export default defineConfig({
integrations: [
emdash({
plugins: [
odevaBookingPlugin({
defaults: {
org: "my-org",
},
}),
],
}),
],
});Use
- An
odeva_bookingPortable Text block. - Public Astro rendering through the plugin
componentsEntry. - Client-side loading of
@odeva/booking-widgetsonly when the block renders.
The block supports:
org- organisation slug. Required.apiUrl- optional GraphQL API URL override.checkoutUrl- optional checkout URL override.colorPrimary,colorSecondary,colorAccent.colorBackground,colorSurface,colorText,colorTextMuted.borderRadius,fontFamily.
Notes
This is a native EmDash plugin because public rendering requires Astro components. A sandboxed marketplace variant can provide the editor fields, but the public renderer still needs a native companion package or a site-local component.
