@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.
- package/components/trigger.component.d.ts +1 -0
- package/index.js +21 -21
- package/index.mjs +403 -363
- package/models/application.d.ts +2 -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
@@ -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
@@ -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>;
|