@telia-ace/widget-core-flamingo 1.1.72-rc.2 → 1.1.72-rc.21

Sign up to get free protection for your applications and to get access to all the features.
@@ -34,6 +34,7 @@ export declare class Application {
34
34
  plugin(plugin: PluginType): this;
35
35
  appendToDOM(): void;
36
36
  hide(): void;
37
+ setZIndex(zIndex: number): void;
37
38
  mute(): void;
38
39
  unmute(): void;
39
40
  registerComponent(type: string, component: any): void;
package/models/site.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import { IHttpClient } from '../services/http-client.service';
1
2
  import { SiteAPI } from '../services/site-api';
2
3
  import { InitConfig } from '../types';
3
4
  import { Environment } from './environment';
@@ -10,6 +11,7 @@ export declare class Site {
10
11
  constructor(urlOrConfig: string | InitConfig);
11
12
  load(url: string): Promise<void>;
12
13
  loadFromConfig(config: InitConfig): void;
14
+ setHttpClient(client: IHttpClient): void;
13
15
  bootstrap(handler: (environment: Environment) => void): Promise<void>;
14
16
  private addGlobal;
15
17
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telia-ace/widget-core-flamingo",
3
- "version": "1.1.72-rc.2",
3
+ "version": "1.1.72-rc.21",
4
4
  "dependencies": {
5
5
  "lit": "^3.0.2",
6
6
  "@teliads/icons": "^8.4.0",
@@ -3,4 +3,5 @@ export declare class SiteAPI {
3
3
  private site;
4
4
  constructor(site: Site);
5
5
  storagePolicy(policies: string[]): void;
6
+ disallowStorageKey(key: string): void;
6
7
  }
@@ -1,16 +1,19 @@
1
1
  export declare enum StorageCategory {
2
- Mandatory = "mandatory",
3
- Preferences = "preferences",
2
+ Necessary = "necessary",
3
+ Functional = "functional",
4
4
  Analytics = "analytics"
5
5
  }
6
6
  export declare class StorageService {
7
7
  private storage;
8
8
  private policy;
9
9
  private widgetId;
10
+ private disallowedKeys;
10
11
  constructor(widgetId: string, storageType: 'localStorage' | 'sessionStorage', policy: Record<StorageCategory, boolean>);
11
12
  set<T>(key: string, value: T, category: StorageCategory): void;
12
13
  get<T>(key: string): T | null;
13
14
  removeItem(key: string): void;
15
+ enforcePolicy(): void;
14
16
  updatePolicy(newPolicy: Record<StorageCategory, boolean>): void;
17
+ disallowKey(key: string): void;
15
18
  private _prefixKey;
16
19
  }
@@ -5,6 +5,5 @@ export declare class WidgetAPI {
5
5
  constructor(widget: Application);
6
6
  open(): void;
7
7
  close(): void;
8
- hideTriggerButton(): void;
9
- showTriggerButton(): void;
8
+ setZIndex(zIndex: number): void;
10
9
  }