UNPKG

@beamimpact/web-sdk

Version:

The Beam SDK enables brands to connect with their customers over shared values, not transactional discounts, to build stronger loyalty. Our integration achieves this by allowing customers to (a) choose a nonprofit where the brand will donate part of their

49 lines (46 loc) 1.39 kB
import * as lit from 'lit'; import { LitElement } from 'lit'; import * as lit_html from 'lit-html'; import '../chunks/progress-bar-CveZ8E6Q.esm.js'; import './beam-partner-logos.js'; import { T as TNumericId } from '../chunks/types-CPxMwnoR.esm.js'; import { L as LANGUAGES } from '../chunks/types-DfRc36jU.esm.js'; type RequiredConfig = { apiKey: string; storeId: TNumericId; nonprofitId: TNumericId; }; declare class BeamSocialShare extends LitElement { static tagName: string; apiKey?: RequiredConfig["apiKey"]; storeId?: RequiredConfig["storeId"]; nonprofitId?: RequiredConfig["nonprofitId"]; baseUrl: string; lang: LANGUAGES; debug: boolean; transactionId?: string; private brandName; private shareImageUrl; private dataUrl?; private file?; private isMobile; private windowResized; get configLang(): LANGUAGES; connectedCallback(): void; disconnectedCallback(): void; checkViewport: () => void; private fetchImpactData; private updateImpactData; firstUpdated(): Promise<void>; private openSystemShareSheet; private handleClickCopy; private handleClickDownload; render(): lit_html.TemplateResult<1>; static styles: lit.CSSResult[]; } declare global { interface HTMLElementTagNameMap { "beam-social-share": BeamSocialShare; } } export { BeamSocialShare };