@feedmepos/mf-common 1.17.0-beta.6 → 1.18.0-beta.1

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.
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Utils for calling methods via postMessage
3
+ */
4
+ export declare const FM_POST_MESSAGE_REQUEST = "fm-post-message-request";
5
+ export declare const FM_POST_MESSAGE_RESPONSE = "fm-post-message-response";
6
+ export type PostMessageMethodCallParams = {
7
+ window: Window;
8
+ methodName: string;
9
+ params?: Object[];
10
+ timeout?: number;
11
+ };
12
+ export declare function callMethodOnWindow({ window, methodName, params, timeout }: PostMessageMethodCallParams): Promise<any>;
13
+ export declare function registerPostMessageMethod(methodName: string, method: (...args: any[]) => Promise<any>): void;
14
+ export declare function installPostMessageMethodCall(): void;
15
+ export declare function uninstallPostMessageMethodCall(): void;
16
+ //# sourceMappingURL=postMessageMethodCall.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"postMessageMethodCall.d.ts","sourceRoot":"","sources":["../../../src/utils/postMessageMethodCall.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,eAAO,MAAM,uBAAuB,4BAA4B,CAAA;AAChE,eAAO,MAAM,wBAAwB,6BAA6B,CAAA;AAElE,MAAM,MAAM,2BAA2B,GAAG;IACxC,MAAM,EAAE,MAAM,CAAA;IACd,UAAU,EAAE,MAAM,CAAA;IAClB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;IACjB,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB,CAAA;AAED,wBAAgB,kBAAkB,CAAC,EACjC,MAAM,EACN,UAAU,EACV,MAAW,EACX,OAAO,EACR,EAAE,2BAA2B,GAAG,OAAO,CAAC,GAAG,CAAC,CAmC5C;AA4BD,wBAAgB,yBAAyB,CACvC,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,OAAO,CAAC,GAAG,CAAC,QAGzC;AAGD,wBAAgB,4BAA4B,SAM3C;AAED,wBAAgB,8BAA8B,SAG7C"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-common",
3
- "version": "1.17.0-beta.6",
3
+ "version": "1.18.0-beta.1",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"