@elliemae/pui-app-sdk 3.12.0 → 3.13.0

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 (186) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/utils/auth/index.js +3 -3
  3. package/dist/cjs/utils/micro-frontend/guest.js +2 -1
  4. package/dist/cjs/view/login/index.js +15 -3
  5. package/dist/cjs/view/require-auth.js +1 -1
  6. package/dist/esm/utils/auth/index.js +3 -3
  7. package/dist/esm/utils/micro-frontend/guest.js +2 -1
  8. package/dist/esm/view/login/index.js +13 -4
  9. package/dist/esm/view/require-auth.js +1 -1
  10. package/dist/types/__mocks__/@elliemae/em-ssf-guest.d.ts +6 -0
  11. package/dist/types/{analytics → lib/analytics}/appdynamics.d.ts +0 -0
  12. package/dist/types/{analytics → lib/analytics}/index.d.ts +0 -0
  13. package/dist/types/{analytics → lib/analytics}/page-view-event.d.ts +0 -0
  14. package/dist/types/{analytics → lib/analytics}/user-session-event.d.ts +0 -0
  15. package/dist/types/{analytics → lib/analytics}/user-wait-event.d.ts +0 -0
  16. package/dist/types/{analytics → lib/analytics}/web-analytics.d.ts +0 -0
  17. package/dist/types/{api → lib/api}/auth/index.d.ts +0 -0
  18. package/dist/types/{api → lib/api}/helpers.d.ts +0 -0
  19. package/dist/types/{api → lib/api}/users/index.d.ts +0 -0
  20. package/dist/types/{api → lib/api}/users/index.endpoint.d.ts +0 -0
  21. package/dist/types/{communication → lib/communication}/http-client/index.d.ts +0 -0
  22. package/dist/types/{communication → lib/communication}/http-client/request-interceptor.d.ts +0 -0
  23. package/dist/types/{communication → lib/communication}/http-client/response-interceptor.d.ts +0 -0
  24. package/dist/types/{communication → lib/communication}/http-client/retry-axios.d.ts +0 -0
  25. package/dist/types/{communication → lib/communication}/http-client/retry.d.ts +0 -0
  26. package/dist/types/{communication → lib/communication}/http-client/tests/hello.endpoint.d.ts +0 -0
  27. package/dist/types/{communication → lib/communication}/http-client/tests/index.test.d.ts +0 -0
  28. package/dist/types/{communication → lib/communication}/http-client/tests/private.endpoint.d.ts +0 -0
  29. package/dist/types/{data → lib/data}/auth/actions.d.ts +0 -0
  30. package/dist/types/{data → lib/data}/auth/reducer.d.ts +0 -0
  31. package/dist/types/{data → lib/data}/breakpoint/index.d.ts +0 -0
  32. package/dist/types/{data → lib/data}/error/index.d.ts +0 -0
  33. package/dist/types/{data → lib/data}/index.d.ts +0 -0
  34. package/dist/types/{data → lib/data}/live-message/index.d.ts +0 -0
  35. package/dist/types/{data → lib/data}/logout/actions.d.ts +0 -0
  36. package/dist/types/{data → lib/data}/navigation-prompt/actions.d.ts +0 -0
  37. package/dist/types/{data → lib/data}/react-redux.d.ts +0 -0
  38. package/dist/types/{data → lib/data}/reducers.d.ts +0 -0
  39. package/dist/types/{data → lib/data}/saga.d.ts +0 -0
  40. package/dist/types/{data → lib/data}/store.d.ts +0 -0
  41. package/dist/types/{data → lib/data}/tests/store.test.d.ts +0 -0
  42. package/dist/types/{data → lib/data}/wait-message/actions.d.ts +0 -0
  43. package/dist/types/{data → lib/data}/wait-message/reducer.d.ts +0 -0
  44. package/dist/types/{data → lib/data}/webpack-hmr.d.ts +0 -0
  45. package/dist/types/{index.d.ts → lib/index.d.ts} +0 -0
  46. package/dist/types/{micro-frontend.d.ts → lib/micro-frontend.d.ts} +0 -0
  47. package/dist/types/{sideeffect → lib/sideeffect}/auth/index.d.ts +0 -0
  48. package/dist/types/{sideeffect → lib/sideeffect}/error-toast/index.d.ts +0 -0
  49. package/dist/types/{sideeffect → lib/sideeffect}/wait-message/index.d.ts +0 -0
  50. package/dist/types/{utils → lib/utils}/app-config/config.d.ts +0 -0
  51. package/dist/types/{utils → lib/utils}/app-config/index.d.ts +0 -0
  52. package/dist/types/{utils → lib/utils}/app-host-integration/react.d.ts +0 -0
  53. package/dist/types/{utils → lib/utils}/auth/helper.d.ts +0 -0
  54. package/dist/types/{utils → lib/utils}/auth/index.d.ts +3 -1
  55. package/dist/types/{utils → lib/utils}/await.d.ts +0 -0
  56. package/dist/types/{utils → lib/utils}/constants.d.ts +0 -0
  57. package/dist/types/{utils → lib/utils}/font-size.d.ts +0 -0
  58. package/dist/types/{utils → lib/utils}/guest-with-service.d.ts +0 -0
  59. package/dist/types/{utils → lib/utils}/helpers.d.ts +0 -0
  60. package/dist/types/{utils → lib/utils}/history.d.ts +0 -0
  61. package/dist/types/{utils → lib/utils}/log-records.d.ts +0 -0
  62. package/dist/types/{utils → lib/utils}/micro-frontend/console-logger.d.ts +0 -0
  63. package/dist/types/{utils → lib/utils}/micro-frontend/guest.d.ts +0 -0
  64. package/dist/types/{utils → lib/utils}/micro-frontend/host.d.ts +0 -0
  65. package/dist/types/{utils → lib/utils}/micro-frontend/index.d.ts +0 -0
  66. package/dist/types/{utils → lib/utils}/micro-frontend/ssfguest-adapter.d.ts +0 -0
  67. package/dist/types/lib/utils/micro-frontend/tests/guest-ssf-host.test.d.ts +1 -0
  68. package/dist/types/lib/utils/micro-frontend/tests/guest.test.d.ts +1 -0
  69. package/dist/types/{utils → lib/utils}/micro-frontend/types.d.ts +0 -0
  70. package/dist/types/{utils → lib/utils}/redact-pii.d.ts +0 -0
  71. package/dist/types/{utils → lib/utils}/service-worker.d.ts +0 -0
  72. package/dist/types/{utils → lib/utils}/session.d.ts +0 -0
  73. package/dist/types/{utils → lib/utils}/storybook/cjs/main.d.ts +0 -0
  74. package/dist/types/{utils → lib/utils}/storybook/cjs/middleware.d.ts +0 -0
  75. package/dist/types/{utils → lib/utils}/storybook/cjs/vite.d.ts +0 -0
  76. package/dist/types/{utils → lib/utils}/storybook/cjs/webpack.d.ts +0 -0
  77. package/dist/types/{utils → lib/utils}/storybook/manager.d.ts +0 -0
  78. package/dist/types/{utils → lib/utils}/storybook/preview.d.ts +0 -0
  79. package/dist/types/{utils → lib/utils}/storybook/theme.d.ts +0 -0
  80. package/dist/types/{utils → lib/utils}/testing/index.d.ts +0 -0
  81. package/dist/types/{utils → lib/utils}/testing/render-with-redux.d.ts +0 -0
  82. package/dist/types/{utils → lib/utils}/testing/render-with-router-redux.d.ts +0 -0
  83. package/dist/types/{utils → lib/utils}/testing/render-with-router.d.ts +0 -0
  84. package/dist/types/{utils → lib/utils}/testing/render-with-state-addons.d.ts +0 -0
  85. package/dist/types/{utils → lib/utils}/types.d.ts +0 -0
  86. package/dist/types/{utils → lib/utils}/url.d.ts +0 -0
  87. package/dist/types/{utils → lib/utils}/web-storage.d.ts +0 -0
  88. package/dist/types/{utils → lib/utils}/window.d.ts +0 -0
  89. package/dist/types/{view → lib/view}/app-root/hosted-app.d.ts +0 -0
  90. package/dist/types/{view → lib/view}/app-root/index.d.ts +0 -0
  91. package/dist/types/{view → lib/view}/app-root/stand-alone-app.d.ts +0 -0
  92. package/dist/types/{view → lib/view}/app-root/style.d.ts +0 -0
  93. package/dist/types/{view → lib/view}/app-router.d.ts +0 -0
  94. package/dist/types/{view → lib/view}/breakpoint/index.stories.d.ts +0 -0
  95. package/dist/types/{view → lib/view}/breakpoint/use-breakpoint.d.ts +0 -0
  96. package/dist/types/{view → lib/view}/breakpoint/use-media-query-list.d.ts +0 -0
  97. package/dist/types/{view → lib/view}/error-boundary/default-error-template.d.ts +0 -0
  98. package/dist/types/{view → lib/view}/error-boundary/index.d.ts +0 -0
  99. package/dist/types/{view → lib/view}/error-toast/index.d.ts +0 -0
  100. package/dist/types/{view → lib/view}/error-toast/index.stories.d.ts +0 -0
  101. package/dist/types/{view → lib/view}/fetch-host-app-data/index.d.ts +0 -0
  102. package/dist/types/{view → lib/view}/fetch-host-app-data/store.d.ts +0 -0
  103. package/dist/types/{view → lib/view}/fields/check-box/index.d.ts +0 -0
  104. package/dist/types/{view → lib/view}/fields/check-box/index.stories.d.ts +0 -0
  105. package/dist/types/{view → lib/view}/fields/check-box/set-value.stories.d.ts +0 -0
  106. package/dist/types/{view → lib/view}/fields/combo-box/index.d.ts +0 -0
  107. package/dist/types/{view → lib/view}/fields/combo-box/index.stories.d.ts +0 -0
  108. package/dist/types/{view → lib/view}/fields/connect-form.d.ts +0 -0
  109. package/dist/types/{view → lib/view}/fields/date-input/index.d.ts +0 -0
  110. package/dist/types/{view → lib/view}/fields/date-input/index.stories.d.ts +0 -0
  111. package/dist/types/{view → lib/view}/fields/date-picker/index.d.ts +0 -0
  112. package/dist/types/{view → lib/view}/fields/date-picker/index.stories.d.ts +0 -0
  113. package/dist/types/{view → lib/view}/fields/date-range-picker/index.d.ts +0 -0
  114. package/dist/types/{view → lib/view}/fields/date-range-picker/index.stories.d.ts +0 -0
  115. package/dist/types/{view → lib/view}/fields/date-time-picker/index.d.ts +0 -0
  116. package/dist/types/{view → lib/view}/fields/date-time-picker/index.stories.d.ts +0 -0
  117. package/dist/types/{view → lib/view}/fields/form-item-layout/index.d.ts +0 -0
  118. package/dist/types/{view → lib/view}/fields/form-item-layout/index.stories.d.ts +0 -0
  119. package/dist/types/{view → lib/view}/fields/form-layout-block-item/index.d.ts +0 -0
  120. package/dist/types/{view → lib/view}/fields/form-layout-block-item/index.stories.d.ts +0 -0
  121. package/dist/types/{view → lib/view}/fields/input-mask/index.d.ts +0 -0
  122. package/dist/types/{view → lib/view}/fields/input-mask/index.stories.d.ts +0 -0
  123. package/dist/types/{view → lib/view}/fields/input-text/index.d.ts +0 -0
  124. package/dist/types/{view → lib/view}/fields/input-text/index.stories.d.ts +0 -0
  125. package/dist/types/{view → lib/view}/fields/large-text-box/index.d.ts +0 -0
  126. package/dist/types/{view → lib/view}/fields/large-text-box/index.stories.d.ts +0 -0
  127. package/dist/types/{view → lib/view}/fields/radio/index.d.ts +0 -0
  128. package/dist/types/{view → lib/view}/fields/radio/index.stories.d.ts +0 -0
  129. package/dist/types/{view → lib/view}/fields/radio/set-value.stories.d.ts +0 -0
  130. package/dist/types/{view → lib/view}/fields/radio-group/index.d.ts +0 -0
  131. package/dist/types/{view → lib/view}/fields/radio-group/index.stories.d.ts +0 -0
  132. package/dist/types/{view → lib/view}/fields/text-box/index.d.ts +0 -0
  133. package/dist/types/{view → lib/view}/fields/text-box/index.stories.d.ts +0 -0
  134. package/dist/types/{view → lib/view}/fields/toggle/index.d.ts +0 -0
  135. package/dist/types/{view → lib/view}/fields/toggle/index.stories.d.ts +0 -0
  136. package/dist/types/{view → lib/view}/fields/watch-value.d.ts +0 -0
  137. package/dist/types/{view → lib/view}/form/index.d.ts +0 -0
  138. package/dist/types/{view → lib/view}/form/index.stories.d.ts +0 -0
  139. package/dist/types/{view → lib/view}/form/personal-info-section.d.ts +0 -0
  140. package/dist/types/{view → lib/view}/form/submit-button/index.d.ts +0 -0
  141. package/dist/types/{view → lib/view}/form/usecases.stories.d.ts +0 -0
  142. package/dist/types/{view → lib/view}/guest-unload-handlers/index.d.ts +0 -0
  143. package/dist/types/{view → lib/view}/host-binding-events/index.d.ts +0 -0
  144. package/dist/types/{view → lib/view}/live-message/index.d.ts +0 -0
  145. package/dist/types/{view → lib/view}/live-message/index.stories.d.ts +0 -0
  146. package/dist/types/{view → lib/view}/loadable/index.d.ts +0 -0
  147. package/dist/types/lib/view/login/index.d.ts +9 -0
  148. package/dist/types/{view → lib/view}/message-to-host-app/index.d.ts +0 -0
  149. package/dist/types/{view → lib/view}/micro-app/app-factory/index.d.ts +0 -0
  150. package/dist/types/{view → lib/view}/micro-app/const.d.ts +0 -0
  151. package/dist/types/{view → lib/view}/micro-app/index.d.ts +0 -0
  152. package/dist/types/{view → lib/view}/micro-app/resources/manifest.d.ts +0 -0
  153. package/dist/types/{view → lib/view}/micro-app/resources/script.d.ts +0 -0
  154. package/dist/types/{view → lib/view}/micro-app/resources/style.d.ts +0 -0
  155. package/dist/types/{view → lib/view}/micro-app/types.d.ts +0 -0
  156. package/dist/types/{view → lib/view}/micro-app/use-app-will-render.d.ts +0 -0
  157. package/dist/types/{view → lib/view}/micro-app/utils.d.ts +0 -0
  158. package/dist/types/{view → lib/view}/micro-iframe-app/app.d.ts +0 -0
  159. package/dist/types/{view → lib/view}/micro-iframe-app/iframe/const.d.ts +0 -0
  160. package/dist/types/{view → lib/view}/micro-iframe-app/iframe/index.d.ts +0 -0
  161. package/dist/types/{view → lib/view}/micro-iframe-app/index.d.ts +0 -0
  162. package/dist/types/{view → lib/view}/micro-iframe-app/types.d.ts +0 -0
  163. package/dist/types/{view → lib/view}/micro-iframe-app/use-frame-loaded.d.ts +0 -0
  164. package/dist/types/{view → lib/view}/modals/error/index.d.ts +0 -0
  165. package/dist/types/{view → lib/view}/modals/error/index.stories.d.ts +0 -0
  166. package/dist/types/{view → lib/view}/modals/navigation-prompt/index.d.ts +0 -0
  167. package/dist/types/{view → lib/view}/modals/navigation-prompt/index.stories.d.ts +0 -0
  168. package/dist/types/{view → lib/view}/modals/session-expiry/customHooks.d.ts +0 -0
  169. package/dist/types/{view → lib/view}/modals/session-expiry/index.d.ts +0 -0
  170. package/dist/types/{view → lib/view}/modals/session-expiry/index.stories.d.ts +0 -0
  171. package/dist/types/{view → lib/view}/modals/wait-message/index.d.ts +0 -0
  172. package/dist/types/{view → lib/view}/modals/wait-message/index.stories.d.ts +0 -0
  173. package/dist/types/{view → lib/view}/modals/wait-message/use-html-wait-message.d.ts +0 -0
  174. package/dist/types/{view → lib/view}/modals/wait-message/wait-message-launcher.d.ts +0 -0
  175. package/dist/types/{view → lib/view}/page.d.ts +0 -0
  176. package/dist/types/{view → lib/view}/render-with-delay/index.d.ts +0 -0
  177. package/dist/types/{view → lib/view}/render-with-host-data/index.d.ts +0 -0
  178. package/dist/types/{view → lib/view}/require-auth.d.ts +0 -0
  179. package/dist/types/{view → lib/view}/session-timeout/index.d.ts +0 -0
  180. package/dist/types/{view → lib/view}/session-timeout/index.stories.d.ts +0 -0
  181. package/dist/types/{view → lib/view}/storybook/decorator.d.ts +0 -0
  182. package/dist/types/{view → lib/view}/use-previous.d.ts +0 -0
  183. package/dist/types/{view → lib/view}/use-window-size-change.d.ts +0 -0
  184. package/dist/types/{view → lib/view}/visually-hidden/index.d.ts +0 -0
  185. package/package.json +32 -30
  186. package/dist/types/view/login/index.d.ts +0 -7
package/README.md CHANGED
@@ -6,7 +6,7 @@ Build: [![Build Status](https://jenkins.dco.elmae/buildStatus/icon?job=UIPlatfor
6
6
 
7
7
  [SonarQube Report](https://sonar.ellielabs.com/overview?id=elliemae.pui.app.sdk-master)
8
8
 
9
- [API Documentation](http://git.elliemae.io/pages/platform-ui/pui-app-sdk/index.html)
9
+ [API Documentation](http://git.elliemae.io/pages/platform-ui/pui-app-sdk)
10
10
 
11
11
  [QA Environment](https://qa.appsdk.rd.elliemae.io)
12
12
 
@@ -138,7 +138,6 @@ const authorize = async ({
138
138
  const data = await (0, import_users.getUser)({ userName });
139
139
  sessionStorage.setItem("userSettings", JSON.stringify(data));
140
140
  const pathName = new URL(redirectUri).pathname;
141
- import_history.browserHistory.push(`${pathName.replace(/\/$/, "")}/_rerender`);
142
141
  import_history.browserHistory.replace(pathName);
143
142
  } catch (err) {
144
143
  const code = err?.response?.data?.code;
@@ -165,7 +164,8 @@ const login = async ({
165
164
  };
166
165
  if (idpCode) {
167
166
  await authorize(loginInfo);
168
- } else {
169
- navigateToLoginPage(loginInfo);
167
+ return { authorized: true };
170
168
  }
169
+ navigateToLoginPage(loginInfo);
170
+ return { authorized: false };
171
171
  };
@@ -107,7 +107,8 @@ class CMicroAppGuest {
107
107
  if (window.parent !== window) {
108
108
  if (!isCrossDomain()) {
109
109
  host = window.parent?.emui?.MicroAppHost || null;
110
- } else {
110
+ }
111
+ if (!host) {
111
112
  const ssfAdapter = new import_ssfguest_adapter.SSFGuestAdapter();
112
113
  if (!await ssfAdapter.init())
113
114
  return null;
@@ -1,7 +1,9 @@
1
1
  "use strict";
2
+ var __create = Object.create;
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
5
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
8
  var __export = (target, all) => {
7
9
  for (var name in all)
@@ -15,23 +17,33 @@ var __copyProps = (to, from, except, desc) => {
15
17
  }
16
18
  return to;
17
19
  };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
18
21
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
22
  var login_exports = {};
20
23
  __export(login_exports, {
21
24
  Login: () => Login
22
25
  });
23
26
  module.exports = __toCommonJS(login_exports);
27
+ var React = __toESM(require("react"));
24
28
  var import_react = require("react");
25
29
  var import_react_redux = require("../../data/react-redux.js");
26
30
  var import_auth = require("../../utils/auth/index.js");
27
31
  var import_actions = require("../../data/auth/actions.js");
28
- const Login = ({ clientId, scope, responseType }) => {
32
+ const Login = ({
33
+ clientId,
34
+ scope,
35
+ responseType,
36
+ children
37
+ }) => {
38
+ const [userAuthorized, setUserAuthorized] = (0, import_react.useState)(false);
29
39
  const dispatch = (0, import_react_redux.useAppDispatch)();
30
40
  (0, import_react.useEffect)(() => {
31
- (0, import_auth.login)({ clientId, scope, responseType }).then(() => {
41
+ (0, import_auth.login)({ clientId, scope, responseType }).then(({ authorized }) => {
42
+ if (authorized)
43
+ setUserAuthorized(true);
32
44
  dispatch({ type: import_actions.LOGIN_SUCCESS });
33
45
  }).catch(() => {
34
46
  });
35
47
  }, [dispatch, clientId, scope, responseType]);
36
- return null;
48
+ return userAuthorized ? /* @__PURE__ */ React.createElement(React.Fragment, null, children) : null;
37
49
  };
@@ -48,5 +48,5 @@ const RequireAuth = ({
48
48
  clientId,
49
49
  scope,
50
50
  responseType
51
- });
51
+ }, children);
52
52
  };
@@ -115,7 +115,6 @@ const authorize = async ({
115
115
  const data = await getUser({ userName });
116
116
  sessionStorage.setItem("userSettings", JSON.stringify(data));
117
117
  const pathName = new URL(redirectUri).pathname;
118
- history.push(`${pathName.replace(/\/$/, "")}/_rerender`);
119
118
  history.replace(pathName);
120
119
  } catch (err) {
121
120
  const code = err?.response?.data?.code;
@@ -142,9 +141,10 @@ const login = async ({
142
141
  };
143
142
  if (idpCode) {
144
143
  await authorize(loginInfo);
145
- } else {
146
- navigateToLoginPage(loginInfo);
144
+ return { authorized: true };
147
145
  }
146
+ navigateToLoginPage(loginInfo);
147
+ return { authorized: false };
148
148
  };
149
149
  export {
150
150
  authorize,
@@ -82,7 +82,8 @@ class CMicroAppGuest {
82
82
  if (window.parent !== window) {
83
83
  if (!isCrossDomain()) {
84
84
  host = window.parent?.emui?.MicroAppHost || null;
85
- } else {
85
+ }
86
+ if (!host) {
86
87
  const ssfAdapter = new SSFGuestAdapter();
87
88
  if (!await ssfAdapter.init())
88
89
  return null;
@@ -1,17 +1,26 @@
1
1
  "use strict";
2
- import { useEffect } from "react";
2
+ import * as React from "react";
3
+ import { useEffect, useState } from "react";
3
4
  import { useAppDispatch } from "../../data/react-redux.js";
4
5
  import { login } from "../../utils/auth/index.js";
5
6
  import { LOGIN_SUCCESS } from "../../data/auth/actions.js";
6
- const Login = ({ clientId, scope, responseType }) => {
7
+ const Login = ({
8
+ clientId,
9
+ scope,
10
+ responseType,
11
+ children
12
+ }) => {
13
+ const [userAuthorized, setUserAuthorized] = useState(false);
7
14
  const dispatch = useAppDispatch();
8
15
  useEffect(() => {
9
- login({ clientId, scope, responseType }).then(() => {
16
+ login({ clientId, scope, responseType }).then(({ authorized }) => {
17
+ if (authorized)
18
+ setUserAuthorized(true);
10
19
  dispatch({ type: LOGIN_SUCCESS });
11
20
  }).catch(() => {
12
21
  });
13
22
  }, [dispatch, clientId, scope, responseType]);
14
- return null;
23
+ return userAuthorized ? /* @__PURE__ */ React.createElement(React.Fragment, null, children) : null;
15
24
  };
16
25
  export {
17
26
  Login
@@ -23,7 +23,7 @@ const RequireAuth = ({
23
23
  clientId,
24
24
  scope,
25
25
  responseType
26
- });
26
+ }, children);
27
27
  };
28
28
  export {
29
29
  RequireAuth
@@ -0,0 +1,6 @@
1
+ import { IAuth } from '@elliemae/pui-scripting-object';
2
+ declare const _default: {
3
+ connect: () => Promise<void>;
4
+ getObject: (objectId: string) => Promise<IAuth>;
5
+ };
6
+ export default _default;
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -29,4 +29,6 @@ export declare const login: ({ clientId, scope, responseType, }: {
29
29
  clientId: string;
30
30
  scope: string;
31
31
  responseType: string;
32
- }) => Promise<void>;
32
+ }) => Promise<{
33
+ authorized: boolean;
34
+ }>;
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ interface LoginParams {
3
+ clientId: string;
4
+ scope: string;
5
+ responseType: string;
6
+ children: React.ReactNode;
7
+ }
8
+ export declare const Login: ({ clientId, scope, responseType, children, }: LoginParams) => JSX.Element | null;
9
+ export {};
File without changes
File without changes
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/pui-app-sdk",
3
- "version": "3.12.0",
3
+ "version": "3.13.0",
4
4
  "description": "ICE MT UI Platform Application SDK ",
5
5
  "sideEffects": [
6
6
  "*.css",
@@ -104,46 +104,48 @@
104
104
  },
105
105
  "peerDependencies": {
106
106
  "@elliemae/app-react-dependencies": "^3.8.0",
107
- "@elliemae/ds-basic": "^3.2.0",
108
- "@elliemae/ds-button": "^3.2.0",
109
- "@elliemae/ds-controlled-form": "^3.2.0",
110
- "@elliemae/ds-date-picker": "^3.2.0",
111
- "@elliemae/ds-date-range-picker": "^3.2.0",
112
- "@elliemae/ds-dialog": "^3.2.0",
113
- "@elliemae/ds-form": "^3.2.0",
114
- "@elliemae/ds-form-layout-blocks": "^3.2.0",
115
- "@elliemae/ds-grid": "^3.2.0",
116
- "@elliemae/ds-loading-indicator": "^3.2.0",
117
- "@elliemae/ds-modal": "^3.2.0",
118
- "@elliemae/ds-popperjs": "^3.2.0",
119
- "@elliemae/ds-toast": "^3.2.0",
107
+ "@elliemae/ds-basic": "^3.3.0",
108
+ "@elliemae/ds-button": "^3.3.0",
109
+ "@elliemae/ds-controlled-form": "^3.3.0",
110
+ "@elliemae/ds-date-picker": "^3.3.0",
111
+ "@elliemae/ds-date-range-picker": "^3.3.0",
112
+ "@elliemae/ds-dialog": "^3.3.0",
113
+ "@elliemae/ds-form": "^3.3.0",
114
+ "@elliemae/ds-form-layout-blocks": "^3.3.0",
115
+ "@elliemae/ds-grid": "^3.3.0",
116
+ "@elliemae/ds-loading-indicator": "^3.3.0",
117
+ "@elliemae/ds-modal": "^3.3.0",
118
+ "@elliemae/ds-popperjs": "^3.3.0",
119
+ "@elliemae/ds-toast": "^3.3.0",
120
120
  "@elliemae/em-ssf-guest": "^1.11.2",
121
121
  "@elliemae/pui-diagnostics": "^2.7.4",
122
- "@elliemae/pui-micro-frontend-base": "^1.12.2",
122
+ "@elliemae/pui-micro-frontend-base": "^1.13.0",
123
+ "@elliemae/pui-scripting-object": "^1.0.2",
123
124
  "@elliemae/pui-theme": "^2.6.0",
124
125
  "@elliemae/pui-user-monitoring": "^1.15.1"
125
126
  },
126
127
  "devDependencies": {
127
128
  "@elliemae/app-react-dependencies": "~3.8.0",
128
129
  "@elliemae/browserslist-config-elliemae-latest-browsers": "~1.4.2",
129
- "@elliemae/ds-basic": "~3.2.0",
130
- "@elliemae/ds-button": "~3.2.0",
131
- "@elliemae/ds-controlled-form": "~3.2.0",
132
- "@elliemae/ds-date-picker": "~3.2.0",
133
- "@elliemae/ds-date-range-picker": "~3.2.0",
134
- "@elliemae/ds-dialog": "~3.2.0",
135
- "@elliemae/ds-form": "~3.2.0",
136
- "@elliemae/ds-form-layout-blocks": "~3.2.0",
137
- "@elliemae/ds-grid": "~3.2.0",
138
- "@elliemae/ds-loading-indicator": "~3.2.0",
139
- "@elliemae/ds-modal": "~3.2.0",
140
- "@elliemae/ds-popperjs": "~3.2.0",
141
- "@elliemae/ds-toast": "~3.2.0",
130
+ "@elliemae/ds-basic": "~3.3.0",
131
+ "@elliemae/ds-button": "~3.3.0",
132
+ "@elliemae/ds-controlled-form": "~3.3.0",
133
+ "@elliemae/ds-date-picker": "~3.3.0",
134
+ "@elliemae/ds-date-range-picker": "~3.3.0",
135
+ "@elliemae/ds-dialog": "~3.3.0",
136
+ "@elliemae/ds-form": "~3.3.0",
137
+ "@elliemae/ds-form-layout-blocks": "~3.3.0",
138
+ "@elliemae/ds-grid": "~3.3.0",
139
+ "@elliemae/ds-loading-indicator": "~3.3.0",
140
+ "@elliemae/ds-modal": "~3.3.0",
141
+ "@elliemae/ds-popperjs": "~3.3.0",
142
+ "@elliemae/ds-toast": "~3.3.0",
142
143
  "@elliemae/em-ssf-guest": "~1.11.2",
143
- "@elliemae/pui-cli": "~6.20.0",
144
+ "@elliemae/pui-cli": "~6.22.0",
144
145
  "@elliemae/pui-diagnostics": "~2.7.4",
145
146
  "@elliemae/pui-e2e-test-sdk": "~7.3.4",
146
- "@elliemae/pui-micro-frontend-base": "~1.12.2",
147
+ "@elliemae/pui-micro-frontend-base": "~1.13.0",
148
+ "@elliemae/pui-scripting-object": "~1.0.2",
147
149
  "@elliemae/pui-theme": "2.6.0",
148
150
  "@elliemae/pui-user-monitoring": "~1.15.1"
149
151
  }
@@ -1,7 +0,0 @@
1
- interface LoginParams {
2
- clientId: string;
3
- scope: string;
4
- responseType: string;
5
- }
6
- export declare const Login: ({ clientId, scope, responseType }: LoginParams) => null;
7
- export {};