@elliemae/ssf-host 2.29.0-alpha.0 → 2.29.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.
Files changed (49) hide show
  1. package/dist/cjs/guest.js +5 -5
  2. package/dist/cjs/host.js +242 -199
  3. package/dist/cjs/tests/utils.js +6 -8
  4. package/dist/cjs/utils.js +1 -1
  5. package/dist/esm/guest.js +5 -5
  6. package/dist/esm/host.js +242 -199
  7. package/dist/esm/tests/utils.js +6 -8
  8. package/dist/esm/utils.js +1 -1
  9. package/dist/public/callchain-host.html +1 -1
  10. package/dist/public/callchain-intermediate.html +1 -1
  11. package/dist/public/e2e-host.html +1 -1
  12. package/dist/public/e2e-index.html +1 -1
  13. package/dist/public/index.html +1 -1
  14. package/dist/public/js/emuiSsfHost.e05998eeb058c9f027f1.js +3 -0
  15. package/dist/public/js/emuiSsfHost.e05998eeb058c9f027f1.js.br +0 -0
  16. package/dist/public/js/emuiSsfHost.e05998eeb058c9f027f1.js.gz +0 -0
  17. package/dist/public/js/emuiSsfHost.e05998eeb058c9f027f1.js.map +1 -0
  18. package/dist/public/popup-focus-host.html +1 -1
  19. package/dist/public/utils.js +1 -1
  20. package/dist/public/utils.js.br +0 -0
  21. package/dist/public/utils.js.gz +0 -0
  22. package/dist/public/utils.js.map +1 -1
  23. package/dist/public/v1-guest-v2-host.html +1 -1
  24. package/dist/public/v2-host-v1-guest.html +1 -1
  25. package/dist/types/lib/guest.d.ts +2 -2
  26. package/dist/types/lib/host.d.ts +5 -5
  27. package/dist/types/lib/ihost.d.ts +4 -4
  28. package/dist/types/lib/tests/scriptingObjects/analytics.d.ts +1 -1
  29. package/dist/types/lib/tests/scriptingObjects/appEvents.d.ts +2 -2
  30. package/dist/types/lib/tests/scriptingObjects/appObjects.d.ts +3 -3
  31. package/dist/types/lib/tests/scriptingObjects/appraisalServiceModule.d.ts +1 -1
  32. package/dist/types/lib/tests/scriptingObjects/creditServiceModule.d.ts +1 -1
  33. package/dist/types/lib/tests/server.d.ts +1 -1
  34. package/dist/types/lib/tests/utils.d.ts +13 -21
  35. package/dist/types/lib/utils.d.ts +2 -2
  36. package/dist/types/tsconfig.tsbuildinfo +1 -1
  37. package/dist/umd/index.js +1 -1
  38. package/dist/umd/index.js.br +0 -0
  39. package/dist/umd/index.js.gz +0 -0
  40. package/dist/umd/index.js.map +1 -1
  41. package/dist/umd/utils.js +1 -1
  42. package/dist/umd/utils.js.br +0 -0
  43. package/dist/umd/utils.js.gz +0 -0
  44. package/dist/umd/utils.js.map +1 -1
  45. package/package.json +10 -10
  46. package/dist/public/js/emuiSsfHost.4b00d8e6203361c7da33.js +0 -3
  47. package/dist/public/js/emuiSsfHost.4b00d8e6203361c7da33.js.br +0 -0
  48. package/dist/public/js/emuiSsfHost.4b00d8e6203361c7da33.js.gz +0 -0
  49. package/dist/public/js/emuiSsfHost.4b00d8e6203361c7da33.js.map +0 -1
@@ -1 +1 @@
1
- export declare const initServer: () => import("msw/node").SetupServer;
1
+ export declare const initServer: () => import("msw/lib/glossary-2792c6da").K;
@@ -1,6 +1,6 @@
1
- import { SSFHost, type Guest } from '../index.js';
2
- import type { AppObjects } from './scriptingObjects/appObjects.js';
3
- import type { AppEvents } from './scriptingObjects/appEvents.js';
1
+ import { SSFHost, Guest } from '../index.js';
2
+ import { AppObjects } from './scriptingObjects/appObjects.js';
3
+ import { AppEvents } from './scriptingObjects/appEvents.js';
4
4
  export declare const createHost: (name?: string) => {
5
5
  host: SSFHost<AppObjects, AppEvents>;
6
6
  guestReady: Promise<Guest>;
@@ -13,6 +13,15 @@ export declare const postMessage: ({ srcWindow, targetWindow, message, }: {
13
13
  }) => void;
14
14
  export declare const initGuest: (guestId: string, capabilities?: Record<string, unknown>) => Window;
15
15
  export declare const releaseJSThread: () => Promise<unknown>;
16
+ type UnloadGuestHost = {
17
+ unloadGuest: (guestId: string | Window | HTMLIFrameElement) => Promise<void>;
18
+ };
19
+ /**
20
+ * Fire-and-forget guest unload for test cleanup (avoids floating-promise lint).
21
+ * @param host
22
+ * @param guestId
23
+ */
24
+ export declare const unloadGuestSilently: (host: UnloadGuestHost | null | undefined, guestId: string | Window | HTMLIFrameElement) => void;
16
25
  export type Data = {
17
26
  data: {
18
27
  type: string;
@@ -23,24 +32,7 @@ export type Data = {
23
32
  objectId: string;
24
33
  };
25
34
  eventName: string;
26
- functionName?: string;
27
- functionParams?: unknown[];
28
- callerChain?: Array<{
29
- id: string;
30
- metadata?: Record<string, unknown>;
31
- }>;
32
- };
33
- };
34
- };
35
- export type CallableWithCallContext = {
36
- callContext?: {
37
- guest?: {
38
- id: string;
39
35
  };
40
- callChain?: Array<{
41
- id: string;
42
- metadata?: Record<string, unknown>;
43
- }>;
44
36
  };
45
37
  };
46
- export declare const getCallContext: (fn: unknown) => NonNullable<CallableWithCallContext["callContext"]>;
38
+ export {};
@@ -1,5 +1,5 @@
1
- import type { GenericFunction } from './types.js';
1
+ import { GenericFunction } from './types.js';
2
2
  export declare const getOrigin: (url: string) => string;
3
3
  export declare const flatten: (source: unknown[]) => unknown[];
4
- export declare function isFunction(value: unknown): value is GenericFunction;
4
+ export declare function isFunction(value: any): value is GenericFunction;
5
5
  export declare const isTrustedDomain: (url: string) => boolean;