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

Sign up to get free protection for your applications and to get access to all the features.
@@ -43,5 +43,6 @@ export declare class Application {
43
43
  mountComponent(component: WidgetComponentType): void;
44
44
  getComponent<T extends WidgetComponentType>(type: string): T | null;
45
45
  private _getTargetElement;
46
+ private _isEmbeddedInIFrame;
46
47
  render(): Trigger | Wrapper | undefined;
47
48
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telia-ace/widget-core-flamingo",
3
- "version": "1.1.76-rc.9",
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
+ }