@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.
48 lines (42 loc) • 752 B
TypeScript
export interface IPhone {
number: string;
callOnClick?: boolean;
}
export interface IAddress {
mapUri?: string;
latLang?: number[];
address: string;
shortAddress?: string;
}
export interface IEmail {
mailLink?: boolean;
address: string;
}
export interface IConfig {
icon?: { fill?: boolean };
text?: boolean;
dispatcher?: boolean;
}
export interface ISite {
label?: string;
uri?: string;
open?: boolean;
}
export interface ISocial {
label?: string;
pageUri?: string;
name: string;
}
export type Component = {
id?: string;
style?: string;
phone?: IPhone;
address?: IAddress;
email?: IEmail;
site?: ISite;
social?: ISocial;
config?: IConfig;
};
export type Events = {
contactClick: { action: string; options: unknown };
};