{"_id":"@masonjames/emdash-contact-forms","_rev":"2-c4329371746de830226d34e5369d3ec9","name":"@masonjames/emdash-contact-forms","dist-tags":{"latest":"0.2.0"},"versions":{"0.1.0":{"name":"@masonjames/emdash-contact-forms","version":"0.1.0","keywords":["emdash","astro","cms","plugin","forms","contact-form","submissions"],"author":{"name":"Mason James"},"license":"MIT","_id":"@masonjames/emdash-contact-forms@0.1.0","maintainers":[{"name":"masonjames","email":"masonjames@gmail.com"}],"homepage":"https://github.com/masonjames/emdash-contact-forms","bugs":{"url":"https://github.com/masonjames/emdash-contact-forms/issues"},"dist":{"shasum":"053dd78f50a347a07ae618ec9632c0784056c7f4","tarball":"https://registry.npmjs.org/@masonjames/emdash-contact-forms/-/emdash-contact-forms-0.1.0.tgz","fileCount":22,"integrity":"sha512-vrOrwqYIdG60rnjxZG4r7qdajT3x51IGx8Woj7sUXWotehb9GP2uae2y7oN4B3+9J/e0F5o9cKTkO2+ga3YNYA==","signatures":[{"sig":"MEUCIQDdhGMzc6oMmwWcOJzwH4ZrK4HdhwRjlGr8P8G/BqokqAIgQnM6qTuikhNh5C7+u8CM0e6CJCWPqZBEQcfvhBWdAe4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":85359},"main":"src/index.ts","type":"module","exports":{".":"./src/index.ts","./admin":"./src/admin.tsx","./astro":"./src/astro/index.ts","./client":"./src/client/index.ts","./plugin":"./src/plugin.ts","./styles":"./src/styles/forms.css"},"gitHead":"ec4671d0cabe568e412ada2b058abaea436919c4","scripts":{"test":"vitest run","build":"tsc --noEmit","typecheck":"tsc --noEmit"},"_npmUser":{"name":"masonjames","email":"masonjames@gmail.com"},"repository":{"url":"git+https://github.com/masonjames/emdash-contact-forms.git","type":"git"},"_npmVersion":"11.11.1","description":"Production-ready contact forms plugin for EmDash CMS","directories":{},"_nodeVersion":"25.8.2","dependencies":{"ulidx":"^2.4.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"astro":"^6.0.0","react":"^19.2.0","vitest":"^4.0.3","react-dom":"^19.2.0","typescript":"^5.9.3","@types/react":"^19.2.2","@types/react-dom":"^19.2.2"},"peerDependencies":{"astro":">=6.0.0-beta.0","react":">=18.0.0","emdash":">=0.1.0"},"_npmOperationalInternal":{"tmp":"tmp/emdash-contact-forms_0.1.0_1775239475217_0.9609844759717268","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"_id":"@masonjames/emdash-contact-forms@0.2.0","dist":{"shasum":"03d993bc804ed34c3d2f8bb4638ae2cd48bad5a7","tarball":"https://registry.npmjs.org/@masonjames/emdash-contact-forms/-/emdash-contact-forms-0.2.0.tgz","fileCount":20,"integrity":"sha512-FUIaSYKkEeaCxv0ZdqPhpDGdSIqY6CnRk94DptPvNPxeZG1yrVaOop6zQPrhFScaGsMVr97ZHG7wEXHbyzw+AQ==","signatures":[{"sig":"MEYCIQCW/uLkgzmli8IHpMYaiPayljkgE0mXzZI6ADUICm9S6gIhAJfFPxXROivt0K06DDZW51tNiaw2m5re3FtV8x3YI+7A","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDYMHpT3dKXpKrz7hvIKakewveCpmXajE8LEskj+fTS6QIgY/A2E6bTJPlF+yUjPgthc+ignJJ3P9BgkJWzESxeTy8="}],"unpackedSize":86342},"main":"dist/index.mjs","name":"@masonjames/emdash-contact-forms","type":"module","_from":"file:/private/tmp/contact-forms-artifacts-20260930/masonjames-emdash-contact-forms-0.2.0.tgz","types":"dist/index.d.mts","author":{"name":"Mason James"},"exports":{".":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"./admin":"./dist/admin.mjs","./astro":"./src/astro/index.ts","./client":"./dist/client/index.mjs","./plugin":"./dist/plugin.mjs","./styles":"./src/styles/forms.css","./registry-astro":"./src/astro/registry.ts","./registry-embed":{"types":"./dist/registry-embed.d.mts","default":"./dist/registry-embed.mjs"}},"license":"MIT","scripts":{"test":"vitest run","build":"tsdown src/index.ts src/plugin.ts src/admin.tsx src/client/index.ts src/registry-embed.ts --format esm --dts --clean","core:test":"pnpm --dir packages/contact-forms-core test","typecheck":"tsc --noEmit","core:build":"pnpm --dir packages/contact-forms-core build","core:bundle":"pnpm --dir packages/contact-forms-core bundle","test:render":"vitest run --config vitest.render.config.ts","core:publish":"pnpm --dir packages/contact-forms-core publish","core:validate":"pnpm --dir packages/contact-forms-core validate","release:check":"pnpm build && pnpm core:build && pnpm typecheck && pnpm core:typecheck && pnpm test && pnpm core:test && pnpm test:render && pnpm --dir packages/contact-forms-core test:sandbox && pnpm core:validate && pnpm core:bundle","core:typecheck":"pnpm --dir packages/contact-forms-core typecheck"},"version":"0.2.0","_npmUser":{"name":"masonjames","email":"masonjames@gmail.com"},"homepage":"https://masonjames.com/plugins/contact-forms/","keywords":["emdash","astro","cms","plugin","forms","contact-form","submissions"],"_resolved":"/private/tmp/contact-forms-artifacts-20260930/masonjames-emdash-contact-forms-0.2.0.tgz","_integrity":"sha512-FUIaSYKkEeaCxv0ZdqPhpDGdSIqY6CnRk94DptPvNPxeZG1yrVaOop6zQPrhFScaGsMVr97ZHG7wEXHbyzw+AQ==","workspaces":["packages/*"],"_npmVersion":"11.19.0","description":"Production-ready contact forms plugin for EmDash CMS","directories":{},"maintainers":[{"name":"masonjames","email":"masonjames@gmail.com"}],"_nodeVersion":"24.21.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^8.0.0","astro":"^6.0.0","react":"^19.2.0","emdash":"1.0.1","tsdown":"^0.21.7","vitest":"^4.0.3","react-dom":"^19.2.0","typescript":"^5.9.3","@types/node":"^24.10.13","@types/react":"^19.2.2","@types/react-dom":"^19.2.2","@emdash-cms/plugin-cli":"0.13.1","@emdash-cms/plugin-test":"0.2.6"},"peerDependencies":{"astro":">=6.0.0-beta.0","react":">=18.0.0","emdash":">=1.0.1"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/emdash-contact-forms_0.2.0_1790775351291_0.0686420663315721"}}},"time":{"created":"2026-04-03T18:04:35.131Z","modified":"2026-09-30T13:35:51.643Z","0.1.0":"2026-04-03T18:04:35.372Z","0.2.0":"2026-09-30T13:35:51.395Z"},"author":{"name":"Mason James"},"license":"MIT","homepage":"https://masonjames.com/plugins/contact-forms/","keywords":["emdash","astro","cms","plugin","forms","contact-form","submissions"],"description":"Production-ready contact forms plugin for EmDash CMS","maintainers":[{"name":"masonjames","email":"masonjames@gmail.com"}],"readme":"# Contact Forms for EmDash\n\nAn independent plugin by Mason James. Create single-page forms with text, email, textarea, select and checkbox fields, review submissions, and send notifications through EmDash's configured email transport (including SMTP).\n\nVersion 0.2.0 supports EmDash 1.0.1 or newer. The source repository is private. Published registry bundles and npm packages are public and MIT licensed; they contain the code needed to run the plugin.\n\n## Registry installation and website embeds\n\nInstall **Contact Forms** by `@masonjames.com` from the EmDash plugin directory. Create a form in Plugins > Forms and copy its form ID.\n\nThe registry installation supplies sandboxed storage, the field builder, submissions inbox, CSV export and email notifications. Adding forms to website content also requires this native companion in your site's configuration:\n\n```bash\npnpm add @masonjames/emdash-contact-forms@0.2.0\n```\n\n```ts\nimport { defineConfig } from \"astro/config\";\nimport emdash from \"emdash/astro\";\nimport { contactFormsEmbedPlugin } from \"@masonjames/emdash-contact-forms/registry-embed\";\n\nexport default defineConfig({\n  integrations: [emdash({ plugins: [contactFormsEmbedPlugin()] })],\n});\n```\n\nBuild and deploy the site. Insert a **Contact Form (registry)** block in the content editor and paste the form ID. The companion renders accessible Astro markup and submits to that publisher's registry installation. It requests no capabilities and has no independent storage.\n\nOptional frontend styles:\n\n```ts\nimport \"@masonjames/emdash-contact-forms/styles\";\n```\n\n## Existing native installations\n\nThe root export `contactFormsPlugin()` still supplies the original native backend, React admin and **Contact Form** block. Native and registry installations have separate storage. No data is automatically imported or migrated; use the matching block for your installation. The companion does not require installing the original native backend.\n\n## Forms and notifications\n\nForms support up to 20 fields, required fields, placeholders, help text, and select choices. Save form metadata first, then add, edit or reorder fields. Pause a form to prevent new submissions. Deleting a form permanently deletes its submissions; the admin requires confirmation.\n\nEach form can set notification recipients, confirmation text, an optional redirect and a submit label. Settings provide a fallback notification address, retention days (`0` disables cleanup), and rate-limit controls. Notification failures are logged without discarding the stored submission or exposing provider errors to visitors. Configure your EmDash email transport separately.\n\nThe registry inbox supports reading, archiving, restoring and deleting submissions. Filter by form to export CSV. Small exports can be copied from the admin preview. Larger exports use the authenticated `submissions/export?formId=...` API; cookie-authenticated requests must include `X-EmDash-Request: 1`.\n\n## Submission protection and scope\n\nOnly `email:send` is requested by the registry backend. Public submissions are validated before storage, with a honeypot and best-effort per-IP KV rate limit. Raw IP addresses are not persisted in submissions; user agent, referer and country may be recorded. Weekly cleanup removes records older than the configured retention period. Use edge rate limits for sustained abuse.\n\nNo uploads, multi-page flows, CAPTCHA, webhooks, autoresponders or marketing email features are included. The registry submit endpoint accepts JSON; its website companion provides JavaScript submission handling. JavaScript is required to submit an embedded form.\n\n## Development and private-source publishing\n\nUse pnpm. `pnpm release:check` builds both packages and runs types, unit checks, Astro rendering, the official production sandbox harness, manifest validation and bundle checks.\n\nPublish the registry core from a reviewed copy outside Git, with no `repository` package metadata or `repo` manifest field. The CLI otherwise infers a Git remote and would expose the private repository URL. Inspect the resulting public record and bundle before marking the release complete. Publish the native companion's reviewed npm tarball separately.\n\n## Inspiration\n\n[Charl Kruger's EmDash Forms](https://github.com/charl-kruger/emdash-forms) provided a useful reference for registry packaging, sandbox tests and the split between backend services and website rendering. This plugin is a separate implementation.\n","readmeFilename":"README.md"}