@saasquatch/squatch-js 2.6.0 → 2.6.1-0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +0,0 @@
1
- export declare function decodeUserJwt(tokenStr: string): any;
@@ -1 +0,0 @@
1
- export declare const createFrame: (container: string | HTMLElement, instance: any) => void;
@@ -1,2 +0,0 @@
1
- import AnalyticsApi from "../api/AnalyticsApi";
2
- export declare function loadEvent(sqh: unknown, analyticsApi: AnalyticsApi): void;
@@ -1,24 +0,0 @@
1
- import PopupWidget from "./PopupWidget";
2
- import { Params } from "./Widget";
3
- /**
4
- * A CtaWidget is displayed on top of your page
5
- *
6
- * To create a CtaWidget use {@link Widgets}
7
- *
8
- */
9
- export default class CtaWidget extends PopupWidget {
10
- position: string;
11
- side: string;
12
- positionClass: string;
13
- ctaFrame: HTMLIFrameElement;
14
- constructor(params: Params, opts: any);
15
- load(): void;
16
- /**
17
- * @inheritdoc
18
- */
19
- open(): void;
20
- /**
21
- * @inheritdoc
22
- */
23
- close(): void;
24
- }
@@ -1,29 +0,0 @@
1
- import AnalyticsApi from "../api/AnalyticsApi";
2
- import { DeclarativeConfigOptions, EmbedWidget, WidgetApi } from "../squatch";
3
- export default class IREmbedWidget extends HTMLElement {
4
- widgetType: string | null;
5
- container: string | HTMLElement | null;
6
- element: HTMLElement;
7
- frame: HTMLIFrameElement;
8
- content: string;
9
- analyticsApi: AnalyticsApi;
10
- widgetApi: WidgetApi;
11
- config: DeclarativeConfigOptions;
12
- tenantAlias: string;
13
- token: string;
14
- widget: EmbedWidget;
15
- constructor();
16
- static get observedAttributes(): string[];
17
- attributeChangedCallback(attr: string, oldVal: string, newVal: string): void;
18
- _setupApi({ domain, tenantAlias }: {
19
- domain: string;
20
- tenantAlias: string;
21
- }): void;
22
- _loadPasswordlessWidget(): void;
23
- _loadUserWidget(jwt: string): void;
24
- _renderErrorWidget: () => void;
25
- _renderWidget: (res: any) => void;
26
- connectedCallback(): void;
27
- open(): void;
28
- close(): void;
29
- }
@@ -1,32 +0,0 @@
1
- import AnalyticsApi from "../api/AnalyticsApi";
2
- import { PopupWidget, WidgetApi, WidgetContext } from "../squatch";
3
- export default class IRPopupWidget extends HTMLElement {
4
- triggerElement: HTMLElement | null;
5
- popupdiv: HTMLElement;
6
- popupcontent: HTMLElement;
7
- widgetType: string | null;
8
- frame: HTMLIFrameElement;
9
- analyticsApi: AnalyticsApi;
10
- widgetApi: WidgetApi;
11
- content: string;
12
- widget: PopupWidget;
13
- constructor();
14
- static get observedAttributes(): string[];
15
- attributeChangedCallback(attr: string, oldVal: string, newVal: string): void;
16
- connectedCallback(): void;
17
- _setupApi({ domain, tenantAlias }: {
18
- domain: string;
19
- tenantAlias: string;
20
- }): void;
21
- _setFrameContents(res: any): void;
22
- _loadPasswordlessWidget(): void;
23
- _loadUserWidget(jwt: string): void;
24
- _renderErrorWidget(): void;
25
- _renderWidget(res: any, context: WidgetContext): void;
26
- protected _setupResizeHandler(): void;
27
- protected _clickedOutside({ target }: {
28
- target: any;
29
- }): void;
30
- open(): void;
31
- close(): void;
32
- }
@@ -1,12 +0,0 @@
1
- import DeclarativeWidget from "./DeclarativeWidget";
2
- export declare class DeclarativeEmbedWidget extends DeclarativeWidget {
3
- constructor();
4
- static get observedAttributes(): string[];
5
- attributeChangedCallback(attr: string, oldVal: string, newVal: string): void;
6
- renderWidget(): void;
7
- }
8
- export declare class DeclarativePopupWidget extends DeclarativeWidget {
9
- constructor();
10
- static get observedAttributes(): string[];
11
- attributeChangedCallback(attr: string, oldVal: string, newVal: string): void;
12
- }