@htmlbricks/hb-bundle
Version:
Single IIFE loader for all HTML Bricks hb-* web components from the jsDelivr CDN, with optional Subresource Integrity; includes agent/LLM docs and theme CSS variables.
33 lines (31 loc) • 1.1 kB
TypeScript
export type Component = {
id?: string;
style?: string;
captcha?: string | {
type: "googlev_recaptchav2_invisible" | "googlev_recaptchav3";
siteKey: string;
};
privacy_policy?: string | {
input: string;
link?: string;
policyId?: string;
required?: boolean;
};
informations?: string | {
name?: { required?: boolean; label?: string; value?: string; placeholder?: string };
email?: { required?: boolean; label?: string; value?: string; placeholder?: string };
phone?: { required?: boolean; label?: string; value?: string; placeholder?: string };
message?: { required?: boolean; label?: string; value?: string; placeholder?: string };
subject?: { required?: boolean; label?: string; value?: string; placeholder?: string };
};
};
export type Events = {
formContactSubmit: { _valid: boolean; values: Record<string, string | number | boolean> };
formContactSubmitWithCaptcha: {
_valid: boolean;
values: Record<string, string | number | boolean>;
response: string;
/** Set to `"recaptcha-v2-invisible"` when using the v2 invisible child. */
type?: string;
};
};