@quickprice/emdash-leads
v1.0.2
Published
QuickPrice lead form block for EmdashCMS sites
Maintainers
Readme
QuickPrice Leads for EmdashCMS
A native EmdashCMS plugin that adds a QuickPrice Lead Form Portable Text block. The published site renders the hosted QuickPrice form; leads, photos and notifications are handled by QuickPrice.
Install
Add this package to the Emdash project, then register the descriptor in live.config.ts:
import { defineConfig } from 'emdash'
import { quickPriceLeadsPlugin } from '@quickprice/emdash-leads'
export default defineConfig({
plugins: [
quickPriceLeadsPlugin({
publicId: 'qpl_your_public_form_id',
widgetUrl: 'https://getquickprice.com',
defaultHeight: 760,
}),
],
})The plugin exposes its Astro renderer through @quickprice/emdash-leads/astro. Emdash loads that component entry automatically for native plugins. In the editor, add QuickPrice Lead Form to a Portable Text field. A block-level public ID overrides the configured default, which allows one site to render forms for different QuickPrice accounts.
Form configuration
Configure headings, prompts, success copy and the primary button colour in the QuickPrice app under Website leads → Form settings. Do not put a QuickPrice password, JWT or private API key in Emdash; the qpl_… form ID is intentionally public and can be replaced from the app if needed.
