@gooddata/js-utils
Advanced tools
Comparing version 3.10.5 to 3.10.6
@@ -7,5 +7,5 @@ import { GdcMessageEventListener } from '@gooddata/typings'; | ||
export declare const setHost: (h: IHost) => void; | ||
export declare const postEvent: (product: string, name: string, data: any) => void; | ||
export declare const postEvent: (product: string, name: string, data: any, contextId?: string | undefined) => void; | ||
export declare function setConfig(product: string, validReceivedPostEvents: string[]): void; | ||
export declare function addListener(listener: GdcMessageEventListener, target?: Window): void; | ||
export declare function removeListener(listener: GdcMessageEventListener, target?: Window): void; |
@@ -20,3 +20,3 @@ "use strict"; | ||
}; | ||
exports.postEvent = function (product, name, data) { | ||
exports.postEvent = function (product, name, data, contextId) { | ||
if (!host.postMessage) { | ||
@@ -28,3 +28,3 @@ return; | ||
product: product, | ||
event: { name: name, data: data } | ||
event: { name: name, data: data, contextId: contextId } | ||
} | ||
@@ -31,0 +31,0 @@ }, '*'); |
{ | ||
"name": "@gooddata/js-utils", | ||
"version": "3.10.5", | ||
"version": "3.10.6", | ||
"description": "Various utils shared on GoodData frontend", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -23,3 +23,3 @@ // (C) 2007-2020 GoodData Corporation | ||
export const postEvent = (product: string, name: string, data: any): void => { | ||
export const postEvent = (product: string, name: string, data: any, contextId?: string): void => { | ||
if (!host.postMessage) { | ||
@@ -31,3 +31,3 @@ return; | ||
product, | ||
event: { name, data } | ||
event: { name, data, contextId } | ||
} | ||
@@ -34,0 +34,0 @@ }, '*'); |
Sorry, the diff of this file is not supported yet
73062