@viamedici-spc/configurator-framer-host
Version:
Provides a Web Component for host applications to embed a Framer based Viamedici SPC configurator.
36 lines (33 loc) • 1.43 kB
TypeScript
export declare class EmbeddedConfiguratorNative extends HTMLElement {
static readonly proxyBaseUrl = "https://spc.viamedici.io/framer/host-proxy";
static readonly attributeNames: string[];
static get observedAttributes(): string[];
private src;
private proxyBaseUrl;
private hasConnected;
constructor();
connectedCallback(): void;
attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
private bootstrapApp;
}
export declare class EmbeddedConfiguratorStrategy extends HTMLElement {
static childAttributes: string[];
static get observedAttributes(): string[];
private child;
private isIsolated;
private parameterObserver;
constructor();
connectedCallback(): void;
disconnectedCallback(): void;
attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
private initialize;
/**
* Custom parameter attributes (`data-*`) can have arbitrary names, so they cannot be
* enumerated in the static `observedAttributes`. A MutationObserver forwards their
* changes to the active child. It is intentionally scoped to parameter attributes only,
* so it never overlaps with `attributeChangedCallback`, which owns the known attributes.
*/
private startParameterObserver;
private stopParameterObserver;
}
export { }