@elliemae/pui-app-sdk 5.17.0 → 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/index.js CHANGED
@@ -27,8 +27,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
27
27
  mod
28
28
  ));
29
29
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
30
- var lib_exports = {};
31
- __export(lib_exports, {
30
+ var index_exports = {};
31
+ __export(index_exports, {
32
32
  Analytics: () => import_analytics2.Analytics,
33
33
  AppRoot: () => import_app_root.AppRoot,
34
34
  Autocomplete: () => import_autocomplete.Autocomplete,
@@ -150,7 +150,7 @@ __export(lib_exports, {
150
150
  waitMessageAction: () => import_actions3.waitMessage,
151
151
  withAppDecorator: () => import_decorator.withAppDecorator
152
152
  });
153
- module.exports = __toCommonJS(lib_exports);
153
+ module.exports = __toCommonJS(index_exports);
154
154
  var import_auth = require("./utils/auth/index.js");
155
155
  var import_loginParams = require("./utils/auth/loginParams.js");
156
156
  var import_http_client = require("./communication/http-client/index.js");
@@ -196,7 +196,7 @@ var import_message_to_host_app = require("./view/message-to-host-app/index.js");
196
196
  var import_guest_unload_handlers = require("./view/guest-unload-handlers/index.js");
197
197
  var import_render_with_host_data = require("./view/render-with-host-data/index.js");
198
198
  var import_fetch_host_app_data = require("./view/fetch-host-app-data/index.js");
199
- __reExport(lib_exports, require("./utils/testing/index.js"), module.exports);
199
+ __reExport(index_exports, require("./utils/testing/index.js"), module.exports);
200
200
  var import_render_with_router_redux = require("./utils/testing/render-with-router-redux.js");
201
201
  var import_render_with_redux = require("./utils/testing/render-with-redux.js");
202
202
  var import_render_with_router = require("./utils/testing/render-with-router.js");
@@ -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 = { redirectUri: new URL(window.location.href).href, ...params };
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 = { redirectUri: new URL(window.location.href).href, ...params };
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
- type LoginParams = {
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 {};
@@ -6,3 +6,9 @@ export type EndSessionFn = (params: {
6
6
  code?: string;
7
7
  skipRevoke?: boolean;
8
8
  }) => Promise<void>;
9
+ export type LoginParams = {
10
+ clientId: string;
11
+ scope: string;
12
+ responseType: string;
13
+ redirectUri: string;
14
+ };
@@ -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 {
@@ -1,40 +1,15 @@
1
1
  import { Story, Meta } from '@storybook/react';
2
- import { DateTimePickerProps } from './index.js';
3
2
  declare const _default: Meta;
4
3
  export default _default;
5
- export declare const DateTimeInputs: Story<DateTimePickerProps & {
6
- labelText: string;
7
- }>;
8
- export declare const FullDateTime: Story<DateTimePickerProps & {
9
- labelText: string;
10
- }>;
11
- export declare const DateTimePickerExample: Story<DateTimePickerProps & {
12
- labelText: string;
13
- }>;
14
- export declare const DateTimePickerControllerOnly: Story<DateTimePickerProps & {
15
- labelText: string;
16
- }>;
17
- export declare const DateInputs: Story<DateTimePickerProps & {
18
- labelText: string;
19
- }>;
20
- export declare const DatePicker: Story<DateTimePickerProps & {
21
- labelText: string;
22
- }>;
23
- export declare const DatePickerControllerOnly: Story<DateTimePickerProps & {
24
- labelText: string;
25
- }>;
26
- export declare const FullDate: Story<DateTimePickerProps & {
27
- labelText: string;
28
- }>;
29
- export declare const FullTime: Story<DateTimePickerProps & {
30
- labelText: string;
31
- }>;
32
- export declare const TimeInputs: Story<DateTimePickerProps & {
33
- labelText: string;
34
- }>;
35
- export declare const TimePickerControllerOnly: Story<DateTimePickerProps & {
36
- labelText: string;
37
- }>;
38
- export declare const TimePicker: Story<DateTimePickerProps & {
39
- labelText: string;
40
- }>;
4
+ export declare const DateTimeInputs: Story<any>;
5
+ export declare const FullDateTime: Story<any>;
6
+ export declare const DateTimePickerExample: Story<any>;
7
+ export declare const DateTimePickerControllerOnly: Story<any>;
8
+ export declare const DateInputs: Story<any>;
9
+ export declare const DatePicker: Story<any>;
10
+ export declare const DatePickerControllerOnly: Story<any>;
11
+ export declare const FullDate: Story<any>;
12
+ export declare const FullTime: Story<any>;
13
+ export declare const TimeInputs: Story<any>;
14
+ export declare const TimePickerControllerOnly: Story<any>;
15
+ export declare const TimePicker: Story<any>;