UNPKG

@securecall/client-component

Version:

SecureCall Core Web Component

57 lines (52 loc) 4.35 kB
/* ClientComponent custom elements */ export { SecurecallClient as SecurecallClient } from '../types/components/securecall-client/securecall-client'; export { defineCustomElement as defineCustomElementSecurecallClient } from './securecall-client'; export { SecurecallRequestCurrency as SecurecallRequestCurrency } from '../types/components/securecall-request-currency/securecall-request-currency'; export { defineCustomElement as defineCustomElementSecurecallRequestCurrency } from './securecall-request-currency'; export { SecurecallRequestRadio as SecurecallRequestRadio } from '../types/components/securecall-request-radio/securecall-request-radio'; export { defineCustomElement as defineCustomElementSecurecallRequestRadio } from './securecall-request-radio'; export { SecurecallRequestSecure as SecurecallRequestSecure } from '../types/components/securecall-request-secure/securecall-request-secure'; export { defineCustomElement as defineCustomElementSecurecallRequestSecure } from './securecall-request-secure'; export { SecurecallRequestSecurePan as SecurecallRequestSecurePan } from '../types/components/securecall-request-secure-pan/securecall-request-secure-pan'; export { defineCustomElement as defineCustomElementSecurecallRequestSecurePan } from './securecall-request-secure-pan'; export { SecurecallRequestSelect as SecurecallRequestSelect } from '../types/components/securecall-request-select/securecall-request-select'; export { defineCustomElement as defineCustomElementSecurecallRequestSelect } from './securecall-request-select'; export { SecurecallRequestString as SecurecallRequestString } from '../types/components/securecall-request-string/securecall-request-string'; export { defineCustomElement as defineCustomElementSecurecallRequestString } from './securecall-request-string'; export { SecurecallResponseButton as SecurecallResponseButton } from '../types/components/securecall-response-button/securecall-response-button'; export { defineCustomElement as defineCustomElementSecurecallResponseButton } from './securecall-response-button'; export { SecurecallResponseField as SecurecallResponseField } from '../types/components/securecall-response-field/securecall-response-field'; export { defineCustomElement as defineCustomElementSecurecallResponseField } from './securecall-response-field'; export { SecurecallTransaction as SecurecallTransaction } from '../types/components/securecall-transaction/securecall-transaction'; export { defineCustomElement as defineCustomElementSecurecallTransaction } from './securecall-transaction'; /** * Get the base path to where the assets can be found. Use "setAssetPath(path)" * if the path needs to be customized. */ export declare const getAssetPath: (path: string) => string; /** * Used to manually set the base path where assets can be found. * If the script is used as "module", it's recommended to use "import.meta.url", * such as "setAssetPath(import.meta.url)". Other options include * "setAssetPath(document.currentScript.src)", or using a bundler's replace plugin to * dynamically set the path at build time, such as "setAssetPath(process.env.ASSET_PATH)". * But do note that this configuration depends on how your script is bundled, or lack of * bundling, and where your assets can be loaded from. Additionally custom bundling * will have to ensure the static assets are copied to its build directory. */ export declare const setAssetPath: (path: string) => void; /** * Used to specify a nonce value that corresponds with an application's CSP. * When set, the nonce will be added to all dynamically created script and style tags at runtime. * Alternatively, the nonce value can be set on a meta tag in the DOM head * (<meta name="csp-nonce" content="{ nonce value here }" />) which * will result in the same behavior. */ export declare const setNonce: (nonce: string) => void export interface SetPlatformOptions { raf?: (c: FrameRequestCallback) => number; ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void; rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void; } export declare const setPlatformOptions: (opts: SetPlatformOptions) => void; export * from '../types';