@telia-ace/widget-core-flamingo 1.1.33-rc.0 → 1.1.33-rc.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telia-ace/widget-core-flamingo",
3
- "version": "1.1.33-rc.0",
3
+ "version": "1.1.33-rc.2",
4
4
  "dependencies": {
5
5
  "lit": "^3.0.2",
6
6
  "@teliads/icons": "^8.4.0",
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 = 'BottomRight' | 'BottomLeft';