diff --git a/plugin.mod b/plugin.mod index b2ff67b..d8a2da0 100644 --- a/plugin.mod +++ b/plugin.mod @@ -2,7 +2,7 @@ name = "calcomblock" display_name = "Cal.com Booking" scope = "@ninja" -version = "2.0.4" +version = "2.0.5" description = "Embeddable Cal.com booking calendar block with custom styling, timezone-aware slot windowing, honeypot + captcha + rate-limited public booking endpoints, and webhook receiver." kind = "plugin" categories = ["forms"] diff --git a/web/editor.tsx b/web/editor.tsx index 83b7ac0..dd15e4e 100644 --- a/web/editor.tsx +++ b/web/editor.tsx @@ -318,6 +318,20 @@ function CalcomBlockEditor({ content, onChange }: BlockEditorProps) { aria-label={t("calcom.editor.showTimezone.label", "Show Timezone Selector")} /> + +
+
+ +

+ {t("calcom.editor.captchaEnabled.help", "Require visitors to solve a privacy-friendly proof-of-work captcha before booking (spam protection).")} +

+
+ handleFieldChange("captchaEnabled", v)} + aria-label={t("calcom.editor.captchaEnabled.label", "Enable captcha")} + /> +
diff --git a/web/package.json b/web/package.json index d207913..02d0282 100644 --- a/web/package.json +++ b/web/package.json @@ -18,5 +18,10 @@ "react-dom": "^18.3.1", "typescript": "^5.9.3", "vite": "^6.4.1" + }, + "pnpm": { + "onlyBuiltDependencies": [ + "esbuild" + ] } }