@elliemae/pui-app-bridge 2.28.4 → 2.28.5

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.
@@ -34,6 +34,11 @@ export type FrameOptions = {
34
34
  * @example "microphone 'self' https://example.com; geolocation 'none'"
35
35
  */
36
36
  permissionPolicy?: string;
37
+ /**
38
+ * Optional signal to abort iframe creation (e.g. when the host unmounts
39
+ * before the iframe finishes loading).
40
+ */
41
+ signal?: AbortSignal;
37
42
  };
38
43
  export declare const FRAME_APP_CONTAINER_ID_PREFIX = "pui-app-container-";
39
44
  export declare const Frame: {
@@ -57,8 +57,8 @@ export type OpenAppParams = {
57
57
  };
58
58
  /**
59
59
  * Interface to connect and communicate with parent host
60
- * @typeParam AppObjects - type of the scripting objects that the application supports
61
- * @typeParam AppEvents - type of the events that the application supports
60
+ * @template AppObjects type of the scripting objects that the application supports
61
+ * @template AppEvents type of the events that the application supports
62
62
  */
63
63
  export interface IMicroFEHost<AppObjects extends ScriptingObjects = Partial<ScriptingObjectTypes>, AppEvents extends EventListeners = Events> {
64
64
  /**
@@ -78,13 +78,13 @@ export interface IMicroFEHost<AppObjects extends ScriptingObjects = Partial<Scri
78
78
  setAppWindowSize(appSize: AppWindowSize): void;
79
79
  /**
80
80
  * add listener to the scripting object event
81
- * @param {SubscribeParam<EventId, EventType>} params - parameters to add event listener
81
+ * @param params parameters to add event listener
82
82
  * @returns subscription id
83
83
  */
84
84
  subscribe: <EventId extends Extract<keyof AppEvents, string>>(params: SubscribeParam<EventId, AppEvents[EventId]>) => string;
85
85
  /**
86
86
  * removes listener from the scripting object event
87
- * @param {UnsubscribeParam<EventId>} params - parameters to remove event listener
87
+ * @param params parameters to remove event listener
88
88
  */
89
89
  unsubscribe: <EventId extends Extract<keyof AppEvents, string>>(params: UnsubscribeParam<EventId>) => void;
90
90
  }
@@ -2,5 +2,7 @@ export declare const removeDoubleSlash: (url: string) => string;
2
2
  export declare const getAbsoluteUrl: (url: string) => string;
3
3
  export declare const appendTrailingSlash: (url: string) => string;
4
4
  export declare const appendPath: (base: string, path: string) => string;
5
+ export declare const resolveManifestBaseUrl: (hostUrl: string, manifestPath: string) => string;
6
+ export declare const resolveManifestUrl: (hostUrl: string, manifestPath: string) => string;
5
7
  export declare const isJSDOM: () => boolean;
6
8
  export declare const escapeRegExp: (str: string) => string;