@telia-ace/widget-site 1.1.78 → 1.1.79-rc.1
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.
- package/package.json +1 -1
- package/environment.d.ts +0 -13
- package/icon.component.d.ts +0 -11
- package/icons/question.d.ts +0 -5
- package/index.d.ts +0 -2
- package/site-api.d.ts +0 -9
- package/site.component.d.ts +0 -50
- package/trigger.component.d.ts +0 -27
- package/types/widget.d.ts +0 -7
- package/types.d.ts +0 -4
- package/utils/create-svg.d.ts +0 -11
- package/utils/map-branding.d.ts +0 -1
- package/widget-api.d.ts +0 -8
- package/widget.component.d.ts +0 -38
package/package.json
CHANGED
package/environment.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { SiteAPI } from './site-api';
|
|
2
|
-
import { SiteConfigurationHandler, WidgetAPIHandler } from './types';
|
|
3
|
-
export declare class Environment {
|
|
4
|
-
private _api;
|
|
5
|
-
private _bootstrapped;
|
|
6
|
-
private _widgetAPIHandlers;
|
|
7
|
-
constructor(_api: SiteAPI);
|
|
8
|
-
bootstrap(): void;
|
|
9
|
-
private _bootstrap;
|
|
10
|
-
executePreloadedHandlers(widgetName: string): void;
|
|
11
|
-
configure(delegate: SiteConfigurationHandler): void;
|
|
12
|
-
widget(name: string, delegate: WidgetAPIHandler): void;
|
|
13
|
-
}
|
package/icon.component.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare class IconComponent extends HTMLElement {
|
|
2
|
-
get svg(): string;
|
|
3
|
-
set svg(value: string);
|
|
4
|
-
get size(): string;
|
|
5
|
-
set size(value: string);
|
|
6
|
-
static get observedAttributes(): string[];
|
|
7
|
-
shadow: ShadowRoot;
|
|
8
|
-
constructor();
|
|
9
|
-
attributeChangedCallback(_name: string, _oldVal: string, _newVal: string): void;
|
|
10
|
-
render(): void;
|
|
11
|
-
}
|
package/icons/question.d.ts
DELETED
package/index.d.ts
DELETED
package/site-api.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { SiteComponent } from './site.component';
|
|
2
|
-
import { WidgetComponent } from './widget.component';
|
|
3
|
-
export declare class SiteAPI {
|
|
4
|
-
private _site;
|
|
5
|
-
constructor(_site: SiteComponent);
|
|
6
|
-
storagePolicy(policies: string[]): void;
|
|
7
|
-
disallowStorageKey(key: string): void;
|
|
8
|
-
getWidgets(): Record<string, WidgetComponent>;
|
|
9
|
-
}
|
package/site.component.d.ts
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { Environment } from './environment';
|
|
2
|
-
import { SiteAPI } from './site-api';
|
|
3
|
-
import { WidgetComponent } from './widget.component';
|
|
4
|
-
type Site = {
|
|
5
|
-
id: string;
|
|
6
|
-
name: string;
|
|
7
|
-
triggers: Trigger[];
|
|
8
|
-
hosts: string[];
|
|
9
|
-
widgets: WidgetDefition[];
|
|
10
|
-
};
|
|
11
|
-
type WidgetDefition = {
|
|
12
|
-
widgetId: string;
|
|
13
|
-
};
|
|
14
|
-
type Trigger = {
|
|
15
|
-
triggerType: string;
|
|
16
|
-
condition: {
|
|
17
|
-
type: 'url' | string;
|
|
18
|
-
outputs: {
|
|
19
|
-
value: string;
|
|
20
|
-
action: {
|
|
21
|
-
type: 'render_widget' | string;
|
|
22
|
-
data: string;
|
|
23
|
-
};
|
|
24
|
-
}[];
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
export declare class SiteComponent extends HTMLElement {
|
|
28
|
-
static get observedAttributes(): string[];
|
|
29
|
-
get siteId(): string;
|
|
30
|
-
set siteId(value: string);
|
|
31
|
-
get apiUrl(): string;
|
|
32
|
-
set apiUrl(value: string);
|
|
33
|
-
get embedUrl(): string;
|
|
34
|
-
set embedUrl(value: string);
|
|
35
|
-
_site: Site | null;
|
|
36
|
-
_widgets: Record<string, WidgetComponent>;
|
|
37
|
-
_path: string;
|
|
38
|
-
_api: SiteAPI;
|
|
39
|
-
_environment: Environment;
|
|
40
|
-
shadow: ShadowRoot;
|
|
41
|
-
constructor();
|
|
42
|
-
connectedCallback(): Promise<void>;
|
|
43
|
-
disconnectedCallback(): void;
|
|
44
|
-
attributeChangedCallback(_name: string, _oldVal: string, _newVal: string): void;
|
|
45
|
-
routeChangeListener: () => void;
|
|
46
|
-
_loadSite(): Promise<void>;
|
|
47
|
-
addWidgetEl(widgetId: string): void;
|
|
48
|
-
render(): void;
|
|
49
|
-
}
|
|
50
|
-
export {};
|
package/trigger.component.d.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { Widget } from './types/widget';
|
|
2
|
-
import { IconComponent } from './icon.component';
|
|
3
|
-
export declare class TriggerComponent extends HTMLElement {
|
|
4
|
-
static get observedAttributes(): string[];
|
|
5
|
-
get widgetId(): string;
|
|
6
|
-
set widgetId(value: string);
|
|
7
|
-
get apiUrl(): string;
|
|
8
|
-
set apiUrl(value: string);
|
|
9
|
-
widget: Widget | null;
|
|
10
|
-
loaded: boolean;
|
|
11
|
-
active: boolean;
|
|
12
|
-
icon: any;
|
|
13
|
-
shadow: ShadowRoot;
|
|
14
|
-
constructor();
|
|
15
|
-
connectedCallback(): Promise<void>;
|
|
16
|
-
attributeChangedCallback(_name: string, _oldVal: string, _newVal: string): void;
|
|
17
|
-
_onClicked: () => void;
|
|
18
|
-
setActive(active: boolean): void;
|
|
19
|
-
_applyBranding(): void;
|
|
20
|
-
private _loadWidget;
|
|
21
|
-
_renderSymbol(): Promise<IconComponent | HTMLImageElement | null>;
|
|
22
|
-
toggle(): void;
|
|
23
|
-
hide(): void;
|
|
24
|
-
show(): void;
|
|
25
|
-
private _renderButtonLabel;
|
|
26
|
-
render(): void;
|
|
27
|
-
}
|
package/types/widget.d.ts
DELETED
package/types.d.ts
DELETED
package/utils/create-svg.d.ts
DELETED
package/utils/map-branding.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const mapBranding: (context: Record<string, any>, el: HTMLElement) => void;
|
package/widget-api.d.ts
DELETED
package/widget.component.d.ts
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { TriggerComponent } from './trigger.component';
|
|
2
|
-
import { Widget } from './types/widget';
|
|
3
|
-
import { WidgetAPI } from './widget-api';
|
|
4
|
-
export declare class WidgetComponent extends HTMLElement {
|
|
5
|
-
static get observedAttributes(): string[];
|
|
6
|
-
shadow: ShadowRoot;
|
|
7
|
-
widget: Widget | null;
|
|
8
|
-
activated: boolean;
|
|
9
|
-
active: boolean;
|
|
10
|
-
iframeEl: HTMLIFrameElement | null;
|
|
11
|
-
trigger: TriggerComponent | null;
|
|
12
|
-
_messageQueue: {
|
|
13
|
-
type: string;
|
|
14
|
-
data: Record<string, any>;
|
|
15
|
-
}[];
|
|
16
|
-
api: WidgetAPI;
|
|
17
|
-
zIndex: number;
|
|
18
|
-
get expanded(): string;
|
|
19
|
-
set expanded(value: string);
|
|
20
|
-
get widgetId(): string;
|
|
21
|
-
set widgetId(value: string);
|
|
22
|
-
get apiUrl(): string;
|
|
23
|
-
set apiUrl(value: string);
|
|
24
|
-
constructor();
|
|
25
|
-
attributeChangedCallback(_name: string, _oldVal: string, _newVal: string): void;
|
|
26
|
-
connectedCallback(): Promise<void>;
|
|
27
|
-
isActivated(): boolean;
|
|
28
|
-
activate(): Promise<void>;
|
|
29
|
-
private _loadWidget;
|
|
30
|
-
dispatch(type: string, data?: Record<string, any>): void;
|
|
31
|
-
deactivate(): Promise<void>;
|
|
32
|
-
private _createIFrame;
|
|
33
|
-
executeMessageQueue(): void;
|
|
34
|
-
isExpanded(): boolean;
|
|
35
|
-
toggleExpand(value?: boolean): void;
|
|
36
|
-
setZIndex(value: number): void;
|
|
37
|
-
render(): void;
|
|
38
|
-
}
|