@elliemae/pui-app-sdk 5.17.2 → 5.17.3
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/dist/cjs/utils/auth/loginParams.js +5 -3
- package/dist/esm/utils/auth/loginParams.js +5 -3
- package/dist/types/lib/utils/auth/loginParams.d.ts +1 -7
- package/dist/types/lib/utils/auth/types.d.ts +6 -0
- package/dist/types/lib/utils/window.d.ts +2 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -22,8 +22,10 @@ __export(loginParams_exports, {
|
|
|
22
22
|
setLoginParams: () => setLoginParams
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(loginParams_exports);
|
|
25
|
-
let loginParams;
|
|
26
25
|
const setLoginParams = (params) => {
|
|
27
|
-
loginParams = {
|
|
26
|
+
window.emui.loginParams = {
|
|
27
|
+
redirectUri: new URL(window.location.href).href,
|
|
28
|
+
...params
|
|
29
|
+
};
|
|
28
30
|
};
|
|
29
|
-
const getLoginParams = () => loginParams;
|
|
31
|
+
const getLoginParams = () => window.emui.loginParams;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
let loginParams;
|
|
2
1
|
const setLoginParams = (params) => {
|
|
3
|
-
loginParams = {
|
|
2
|
+
window.emui.loginParams = {
|
|
3
|
+
redirectUri: new URL(window.location.href).href,
|
|
4
|
+
...params
|
|
5
|
+
};
|
|
4
6
|
};
|
|
5
|
-
const getLoginParams = () => loginParams;
|
|
7
|
+
const getLoginParams = () => window.emui.loginParams;
|
|
6
8
|
export {
|
|
7
9
|
getLoginParams,
|
|
8
10
|
setLoginParams
|
|
@@ -1,11 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
clientId: string;
|
|
3
|
-
scope: string;
|
|
4
|
-
responseType: string;
|
|
5
|
-
redirectUri: string;
|
|
6
|
-
};
|
|
1
|
+
import { LoginParams } from './types';
|
|
7
2
|
export declare const setLoginParams: (params: Omit<LoginParams, "redirectUri"> & {
|
|
8
3
|
redirectUri?: string;
|
|
9
4
|
}) => void;
|
|
10
5
|
export declare const getLoginParams: () => LoginParams;
|
|
11
|
-
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { IMicroAppGuest, IMicroAppHost, BAEvent } from '@elliemae/pui-micro-frontend-base';
|
|
2
2
|
import { BreakPoint } from '@elliemae/pui-theme';
|
|
3
3
|
import { Logger } from '@elliemae/pui-diagnostics';
|
|
4
|
+
import { LoginParams } from './auth/types';
|
|
4
5
|
export type EMUI = {
|
|
5
6
|
[key: string]: IMicroAppGuest | IMicroAppGuest[];
|
|
6
7
|
} & {
|
|
@@ -12,6 +13,7 @@ export type EMUI = {
|
|
|
12
13
|
appId: string;
|
|
13
14
|
uuid: string;
|
|
14
15
|
app?: IMicroAppGuest;
|
|
16
|
+
loginParams: LoginParams;
|
|
15
17
|
};
|
|
16
18
|
declare global {
|
|
17
19
|
interface Window {
|