@yuuvis/client-core 2.3.1 → 2.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11,3 +11,16 @@ export interface YuvEvent {
11
11
  */
12
12
  data?: any;
13
13
  }
14
+ /**
15
+ * Mandatory Custom event prefix for all custom YUV events
16
+ */
17
+ export declare const CUSTOM_EVENT_PREFIX = "yuv.";
18
+ /**
19
+ * Message event interface for postMessage events
20
+ */
21
+ export interface YuvMessage {
22
+ type: string;
23
+ data: any;
24
+ timestamp: number;
25
+ source: string;
26
+ }
@@ -7,6 +7,13 @@ import * as i0 from "@angular/core";
7
7
  export declare class EventService {
8
8
  #private;
9
9
  event$: Observable<YuvEvent>;
10
+ constructor();
11
+ /**
12
+ * Triggers a postMessage event that will be sent to the yuuvis global event Trigger
13
+ * @param type Type/key of the event
14
+ * @param data Data to be sent along with the event
15
+ */
16
+ triggerPostMessageEvent(type: string, data?: any): void;
10
17
  /**
11
18
  * Trigger an global event
12
19
  * @param type Type/key of the event
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yuuvis/client-core",
3
- "version": "2.3.1",
3
+ "version": "2.3.3",
4
4
  "author": "OPTIMAL SYSTEMS GmbH <npm@optimal-systems.de>",
5
5
  "license": "MIT",
6
6
  "peerDependencies": {