@telia-ace/widget-core-flamingo 1.1.33-rc.0 → 1.1.33-rc.1
Sign up to get free protection for your applications and to get access to all the features.
- package/components/trigger-slot.component.d.ts +8 -0
- package/components/trigger.component.d.ts +1 -3
- package/index.js +53 -35
- package/index.mjs +752 -699
- package/models/application.d.ts +5 -1
- package/package.json +1 -1
- package/types.d.ts +4 -0
package/models/application.d.ts
CHANGED
@@ -3,7 +3,7 @@ import { WidgetComponentType } from '../components/widget.component';
|
|
3
3
|
import { Wrapper } from '../components/wrapper.component';
|
4
4
|
import { ComponentPlatform } from '../services/component-platform';
|
5
5
|
import { TextsService } from '../services/texts.service';
|
6
|
-
import { ApplicationOptions, PluginType, RenderStrategy, TriggerIcon, WidgetConfig } from '../types';
|
6
|
+
import { ApplicationOptions, PluginType, RenderStrategy, TriggerIcon, WidgetAnchor, WidgetConfig } from '../types';
|
7
7
|
import { Container } from './container';
|
8
8
|
export declare class Application {
|
9
9
|
name: string;
|
@@ -15,6 +15,7 @@ export declare class Application {
|
|
15
15
|
root?: Wrapper;
|
16
16
|
renderStrategy: RenderStrategy;
|
17
17
|
triggerIcon?: TriggerIcon;
|
18
|
+
anchor: WidgetAnchor;
|
18
19
|
autoActivate: boolean;
|
19
20
|
private plugins;
|
20
21
|
private componentResolver;
|
@@ -27,9 +28,12 @@ export declare class Application {
|
|
27
28
|
plugin(plugin: PluginType): this;
|
28
29
|
appendToDOM(): void;
|
29
30
|
hide(): void;
|
31
|
+
mute(): void;
|
32
|
+
unmute(): void;
|
30
33
|
registerComponent(type: string, component: any): void;
|
31
34
|
resolveComponent(type: string): any;
|
32
35
|
mountComponent(component: WidgetComponentType): void;
|
33
36
|
getComponent<T extends WidgetComponentType>(type: string): T | null;
|
37
|
+
private _getTargetElement;
|
34
38
|
render(): Trigger | Wrapper | undefined;
|
35
39
|
}
|
package/package.json
CHANGED
package/types.d.ts
CHANGED
@@ -23,6 +23,7 @@ export type ApplicationOptions = {
|
|
23
23
|
renderStrategy: RenderStrategy;
|
24
24
|
triggerIcon?: TriggerIcon;
|
25
25
|
autoActivate?: boolean;
|
26
|
+
anchor?: WidgetAnchor;
|
26
27
|
};
|
27
28
|
export type TriggerIcon = {
|
28
29
|
type: string;
|
@@ -34,6 +35,7 @@ export type AppConfig = {
|
|
34
35
|
renderStrategy: RenderStrategy;
|
35
36
|
triggerIcon?: TriggerIcon;
|
36
37
|
autoActivate?: boolean;
|
38
|
+
anchor?: WidgetAnchor;
|
37
39
|
};
|
38
40
|
export type SiteConfig = {
|
39
41
|
id: string;
|
@@ -45,7 +47,9 @@ export type InitConfig = {
|
|
45
47
|
renderStrategy?: 'inline' | 'trigger';
|
46
48
|
triggerIcon?: string;
|
47
49
|
autoActivate?: boolean;
|
50
|
+
anchor?: WidgetAnchor;
|
48
51
|
}[];
|
49
52
|
httpClient?: IHttpClient;
|
50
53
|
};
|
51
54
|
export type PluginType = (app: Application) => Promise<void>;
|
55
|
+
export type WidgetAnchor = 'bottom-right' | 'bottom-left';
|