@telia-ace/widget-core-flamingo 1.1.76 → 1.1.77-rc.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -29,6 +29,7 @@ export declare class Application {
29
29
  constructor(id: string, name: string, container: Container, settings: WidgetConfig, options: ApplicationOptions);
30
30
  activate(): Promise<void>;
31
31
  private loadPlugins;
32
+ onMessageReceived: (event: any) => Promise<void>;
32
33
  styles(): Record<string, any>;
33
34
  branding(): Record<string, any>;
34
35
  plugin(plugin: PluginType): this;
@@ -42,5 +43,6 @@ export declare class Application {
42
43
  mountComponent(component: WidgetComponentType): void;
43
44
  getComponent<T extends WidgetComponentType>(type: string): T | null;
44
45
  private _getTargetElement;
46
+ private _isEmbeddedInIFrame;
45
47
  render(): Trigger | Wrapper | undefined;
46
48
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telia-ace/widget-core-flamingo",
3
- "version": "1.1.76",
3
+ "version": "1.1.77-rc.0",
4
4
  "dependencies": {
5
5
  "lit": "^3.0.2",
6
6
  "@teliads/icons": "^8.4.0",
@@ -7,9 +7,10 @@ export declare class StorageService {
7
7
  private storage;
8
8
  private policy;
9
9
  private widgetId;
10
+ private storageEntries;
10
11
  private disallowedKeys;
11
- constructor(widgetId: string, storageType: 'localStorage' | 'sessionStorage', policy: Record<StorageCategory, boolean>);
12
- set<T>(key: string, value: T, category: StorageCategory): void;
12
+ constructor(widgetId: string, storageType: 'localStorage' | 'sessionStorage', policy: Record<StorageCategory, boolean>, storageEntries: Record<string, any>);
13
+ set<T>(key: string, value: T): void;
13
14
  get<T>(key: string): T | null;
14
15
  removeItem(key: string): void;
15
16
  enforcePolicy(): void;
package/types.d.ts CHANGED
@@ -12,6 +12,7 @@ export type WidgetConfig = {
12
12
  entry: string;
13
13
  texts?: Record<string, string>;
14
14
  components: Record<string, ComponentDefinition>;
15
+ storage: Record<string, any>;
15
16
  branding: Record<string, any>;
16
17
  styles?: Record<string, any>;
17
18
  survey?: Record<string, any>;
@@ -0,0 +1,3 @@
1
+ {
2
+ "components": []
3
+ }