@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.
- package/components/trigger.component.d.ts +1 -0
- package/index.js +23 -23
- package/index.mjs +402 -376
- package/models/application.d.ts +1 -0
- package/package.json +1 -1
- package/services/storage.service.d.ts +3 -2
- package/types.d.ts +1 -0
- package/widget-manifest.json +3 -0
package/models/application.d.ts
CHANGED
@@ -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
@@ -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
|
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>;
|