@elliemae/ssf-guest 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 (33) hide show
  1. package/dist/cjs/guest.js +108 -78
  2. package/dist/cjs/tests/utils.js +1 -0
  3. package/dist/cjs/utils.js +4 -4
  4. package/dist/cjs/v1-adapter.js +8 -9
  5. package/dist/esm/guest.js +108 -78
  6. package/dist/esm/tests/utils.js +1 -0
  7. package/dist/esm/utils.js +4 -4
  8. package/dist/esm/v1-adapter.js +8 -9
  9. package/dist/public/callchain-grandchild.html +1 -1
  10. package/dist/public/creditService.html +1 -1
  11. package/dist/public/e2e-guest.html +1 -1
  12. package/dist/public/index.html +1 -1
  13. package/dist/public/js/emuiSsfGuest.5a028ebcac3f79900cb2.js +3 -0
  14. package/dist/public/js/emuiSsfGuest.5a028ebcac3f79900cb2.js.br +0 -0
  15. package/dist/public/js/emuiSsfGuest.5a028ebcac3f79900cb2.js.gz +0 -0
  16. package/dist/public/js/emuiSsfGuest.5a028ebcac3f79900cb2.js.map +1 -0
  17. package/dist/public/loanValidation.html +1 -1
  18. package/dist/public/pricingService.html +1 -1
  19. package/dist/public/titleService.html +1 -1
  20. package/dist/public/v2-guest.html +1 -1
  21. package/dist/types/lib/guest.d.ts +8 -4
  22. package/dist/types/lib/tests/utils.d.ts +2 -2
  23. package/dist/types/lib/typings/window.d.ts +7 -9
  24. package/dist/types/tsconfig.tsbuildinfo +1 -1
  25. package/dist/umd/index.js +1 -1
  26. package/dist/umd/index.js.br +0 -0
  27. package/dist/umd/index.js.gz +0 -0
  28. package/dist/umd/index.js.map +1 -1
  29. package/package.json +8 -9
  30. package/dist/public/js/emuiSsfGuest.e7547c98c8ccfd0654bd.js +0 -3
  31. package/dist/public/js/emuiSsfGuest.e7547c98c8ccfd0654bd.js.br +0 -0
  32. package/dist/public/js/emuiSsfGuest.e7547c98c8ccfd0654bd.js.gz +0 -0
  33. package/dist/public/js/emuiSsfGuest.e7547c98c8ccfd0654bd.js.map +0 -1
@@ -1,9 +1,9 @@
1
- import type { Events, ScriptingObjectTypes } from '@elliemae/pui-scripting-object';
1
+ import type { Listener, Events, ScriptingObjectTypes } from '@elliemae/pui-scripting-object';
2
2
  import type { ConnectParam, SubscribeParam, UnsubscribeParam, EventListeners, ISSFGuest, ScriptingObjects, FilterCriteria } from '@elliemae/microfe-common';
3
- import { type LogLevels, type Logger } from '@elliemae/pui-diagnostics';
3
+ import { LogLevels, Logger } from '@elliemae/pui-diagnostics';
4
4
  export type ListenerInfo = {
5
5
  criteria?: FilterCriteria;
6
- callback: EventListeners[string];
6
+ callback: Listener<any, any, any, any>;
7
7
  token: string;
8
8
  };
9
9
  /**
@@ -83,8 +83,12 @@ export declare class SSFGuest<AppObjects extends ScriptingObjects = Partial<Scri
83
83
  * Initialize guest using script
84
84
  * @param {string} scriptUri uri of the script
85
85
  * @param {HTMLElement} containerElement dom element to inject the script at
86
+ * @param {object} [options] additional options
87
+ * @param {boolean} [options.asModule=true] inject the script as an ES module
86
88
  */
87
- addScript: (scriptUri: string, containerElement: HTMLElement) => Promise<void>;
89
+ addScript: (scriptUri: string, containerElement: HTMLElement, options?: {
90
+ asModule?: boolean;
91
+ }) => Promise<void>;
88
92
  /**
89
93
  * Close the connection to the host
90
94
  */
@@ -4,7 +4,7 @@ import { SSFGuest } from '../index.js';
4
4
  type PostMessageOptions = {
5
5
  srcWindow: Window;
6
6
  targetWindow: Window;
7
- message: Record<string, unknown>;
7
+ message: any;
8
8
  };
9
9
  export declare const createGuest: ({ keepAlive, usesDevConnectAPI, keepAliveInterval, console, auditOperations, auditThrottleMs, }: {
10
10
  keepAlive?: boolean;
@@ -41,7 +41,7 @@ export type AppEvents = {
41
41
  'appraisalservice.onprecommit': Listener<AppraisalService, LoanInfo, Record<string, unknown>, boolean>;
42
42
  };
43
43
  export interface AppraisalService extends IScriptingObjectProxy, IModule {
44
- getLoanDetails: () => Promise<Record<string, unknown>>;
44
+ getLoanDetails: () => Promise<Record<string, any>>;
45
45
  setCreditScore: (creditScore: number) => Promise<void>;
46
46
  saveLoan: () => Promise<void>;
47
47
  commit: () => Promise<void>;
@@ -1,5 +1,3 @@
1
- import type { ConnectParam, FilterCriteria, ISSFGuest } from '@elliemae/microfe-common';
2
- import type { LogLevels } from '@elliemae/pui-diagnostics';
3
1
  declare global {
4
2
  interface Window {
5
3
  elli: {
@@ -7,22 +5,22 @@ declare global {
7
5
  guest: {
8
6
  create: (scriptUri: string, element: HTMLElement) => Promise<void>;
9
7
  };
10
- connect: (params?: ConnectParam) => Promise<void>;
11
- getObject: (objectName: string) => Promise<unknown>;
12
- setLogLevel: (level: LogLevels) => void;
13
- subscribe: (objectId: string, eventName: string, callback: (...args: unknown[]) => void, options?: {
14
- criteria?: FilterCriteria;
8
+ connect: (params?: any) => Promise<void>;
9
+ getObject: (objectName: any) => Promise<any>;
10
+ setLogLevel: (level: any) => void;
11
+ subscribe: (objectId: string, eventName: string, callback: any, options?: {
12
+ criteria?: any;
15
13
  }) => string;
16
14
  unsubscribe: (objectId: string, eventName: string, token: string) => void;
17
15
  };
18
16
  };
19
17
  __ICE__?: {
20
18
  diagnosticsUrl: string;
21
- ssfGuest?: ISSFGuest;
19
+ ssfGuest?: any;
22
20
  };
23
21
  ice?: {
24
22
  guest: {
25
- SSFGuest: new () => ISSFGuest;
23
+ SSFGuest: any;
26
24
  };
27
25
  };
28
26
  }