ov25-ui
Version:
A UI configurator for OV25 product visualization
28 lines (27 loc) • 868 B
TypeScript
import '../styles.css';
export type StringOrFunction = string | (() => string);
export type ElementConfig = {
id: string;
replace?: boolean;
};
export type ElementSelector = string | ElementConfig;
export interface InjectConfiguratorOptions {
apiKey: StringOrFunction;
productLink: StringOrFunction;
galleryId?: ElementSelector;
images?: string[];
deferThreeD?: boolean;
showOptional?: boolean;
priceId?: ElementSelector;
nameId?: ElementSelector;
variantsId?: ElementSelector;
swatchesId?: ElementSelector;
carouselId?: ElementSelector | true;
addToBasketFunction: () => void;
buyNowFunction: () => void;
addSwatchesToCartFunction: () => void;
logoURL?: string;
mobileLogoURL?: string;
cssString?: string;
}
export declare function injectConfigurator(opts: InjectConfiguratorOptions): void;