@elliemae/pui-app-sdk 5.31.0-beta.2 → 5.31.0-beta.4
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.
- package/README.md +1 -1
- package/dist/cjs/utils/micro-frontend/guest.js +22 -21
- package/dist/cjs/utils/micro-frontend/host.js +11 -7
- package/dist/cjs/utils/micro-frontend/tests/__snapshots__/guest.test.ts.snap +242 -0
- package/dist/cjs/view/guest-microapp.js +2 -1
- package/dist/esm/utils/micro-frontend/guest.js +22 -21
- package/dist/esm/utils/micro-frontend/host.js +11 -7
- package/dist/esm/utils/micro-frontend/tests/__snapshots__/guest.test.ts.snap +242 -0
- package/dist/esm/view/guest-microapp.js +2 -1
- package/dist/types/lib/utils/micro-frontend/host.d.ts +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +7 -7
|
@@ -48,6 +48,7 @@ const useAppRenderer = (props) => {
|
|
|
48
48
|
const {
|
|
49
49
|
microappManager = MicroAppManager.APPSDK,
|
|
50
50
|
hostUrl,
|
|
51
|
+
title,
|
|
51
52
|
name
|
|
52
53
|
} = getConfig();
|
|
53
54
|
if (microappManager === MicroAppManager.SSF) {
|
|
@@ -59,7 +60,7 @@ const useAppRenderer = (props) => {
|
|
|
59
60
|
const guest = ssfHost.loadGuest({
|
|
60
61
|
id,
|
|
61
62
|
url: hostUrl,
|
|
62
|
-
title: name,
|
|
63
|
+
title: title ?? name,
|
|
63
64
|
targetElement: document.getElementById(containerId),
|
|
64
65
|
searchParams,
|
|
65
66
|
onLoad: onLoadComplete,
|
|
@@ -75,6 +75,7 @@ export declare class CMicroAppHost<AppObjects extends ScriptingObjects = Partial
|
|
|
75
75
|
/**
|
|
76
76
|
* dispatch event to child microapp
|
|
77
77
|
* @param {DispatchEventParams<EventId, Params>} params - event parameters
|
|
78
|
+
* @returns {Promise<any>} A promise that resolves with the combined results of dispatched events.
|
|
78
79
|
*/
|
|
79
80
|
dispatchEvent<EventId extends Extract<keyof AppEvents, string>, Params extends Parameters<AppEvents[EventId]>[0]['eventParams'], Options extends EventOptions>(params: DispatchEventParam<EventId, Params, Options>): Promise<void | any[]>;
|
|
80
81
|
/**
|