@elliemae/pui-app-sdk 4.11.0 → 4.11.2

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
@@ -52,6 +52,7 @@ __export(lib_exports, {
52
52
  LargeTextBox: () => import_large_text_box.LargeTextBox,
53
53
  MASK_PIPES: () => import_input_mask.MASK_PIPES,
54
54
  MASK_TYPES: () => import_input_mask.MASK_TYPES,
55
+ MaskedInputText: () => import_masked_input_text.MaskedInputText,
55
56
  MicroApp: () => import_micro_app.MicroApp,
56
57
  MicroIFrameApp: () => import_micro_iframe_app.MicroIFrameApp,
57
58
  NavigationPrompt: () => import_navigation_prompt.NavigationPrompt,
@@ -70,6 +71,8 @@ __export(lib_exports, {
70
71
  WaitMessage: () => import_wait_message.WaitMessage,
71
72
  ariaLive: () => import_live_message.actions,
72
73
  auth: () => import_actions.auth,
74
+ authReducer: () => import_reducer.authReducer,
75
+ authSaga: () => import_auth2.authentication,
73
76
  authorize: () => import_auth.authorize,
74
77
  configureStore: () => import_store.createAppStore,
75
78
  createManager: () => import_redux_injectors.createManager,
@@ -137,6 +140,8 @@ var import_http_client = require("./communication/http-client/index.js");
137
140
  var import_response_interceptor = require("./communication/http-client/response-interceptor.js");
138
141
  var import_actions = require("./data/auth/actions.js");
139
142
  var import_require_auth = require("./view/require-auth.js");
143
+ var import_auth2 = require("./sideeffect/auth/index.js");
144
+ var import_reducer = require("./data/auth/reducer.js");
140
145
  var import_page = require("./view/page.js");
141
146
  var import_constants = __toESM(require("./utils/constants.js"));
142
147
  var import_react_redux = require("./data/react-redux.js");
@@ -186,6 +191,7 @@ var import_text_box = require("./view/fields/text-box/index.js");
186
191
  var import_input_text = require("./view/fields/input-text/index.js");
187
192
  var import_large_text_box = require("./view/fields/large-text-box/index.js");
188
193
  var import_input_mask = require("./view/fields/input-mask/index.js");
194
+ var import_masked_input_text = require("./view/fields/masked-input-text/index.js");
189
195
  var import_combo_box = require("./view/fields/combo-box/index.js");
190
196
  var import_combo_box_v3 = require("./view/fields/combo-box-v3/index.js");
191
197
  var import_check_box = require("./view/fields/check-box/index.js");
@@ -1,9 +1,7 @@
1
1
  "use strict";
2
- var __create = Object.create;
3
2
  var __defProp = Object.defineProperty;
4
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
6
  var __export = (target, all) => {
9
7
  for (var name in all)
@@ -17,14 +15,6 @@ var __copyProps = (to, from, except, desc) => {
17
15
  }
18
16
  return to;
19
17
  };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
19
  var wait_message_exports = {};
30
20
  __export(wait_message_exports, {
@@ -33,25 +23,14 @@ __export(wait_message_exports, {
33
23
  module.exports = __toCommonJS(wait_message_exports);
34
24
  var import_jsx_runtime = require("react/jsx-runtime");
35
25
  var import_react = require("react");
36
- var import_styled_components = __toESM(require("styled-components"));
37
- var import_ds_backdrop = require("@elliemae/ds-backdrop");
38
- var import_ds_circular_progress_indicator = require("@elliemae/ds-circular-progress-indicator");
26
+ var import_ds_loading_indicator = require("@elliemae/ds-loading-indicator");
39
27
  var import_react_redux = require("../../data/react-redux.js");
40
28
  var import_use_html_wait_message = require("./use-html-wait-message.js");
41
29
  var import_user_wait_event = require("../../analytics/user-wait-event.js");
42
- const StyledCircularIndicator = (0, import_styled_components.default)(import_ds_circular_progress_indicator.DSCircularIndeterminateIndicator)`
43
- position: absolute;
44
- left: 50%;
45
- top: 50%;
46
- transform: translate(-50%, -50%);
47
- `;
48
30
  const WaitMessage = (0, import_react.memo)(
49
31
  ({
50
- size = "xl",
51
- color = "light",
52
- showText = true,
53
- withTooltip = false,
54
- tooltipStartPlacementPreference = "center",
32
+ size = "m",
33
+ style = { color: "white", fontSize: "1.25rem" },
55
34
  ...rest
56
35
  }) => {
57
36
  const isOpen = (0, import_react_redux.useAppSelector)((state) => state.waitMessage?.isOpen);
@@ -63,21 +42,16 @@ const WaitMessage = (0, import_react.memo)(
63
42
  (0, import_user_wait_event.waitEndEvent)();
64
43
  }, [isOpen]);
65
44
  (0, import_use_html_wait_message.useHTMLWaitMessage)(isOpen !== null);
66
- return isOpen ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
67
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_backdrop.DSBackdrop, {}),
68
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
69
- StyledCircularIndicator,
70
- {
71
- id: "em-loading",
72
- size,
73
- color,
74
- showText,
75
- withTooltip,
76
- tooltipStartPlacementPreference,
77
- ...rest,
78
- text: message
79
- }
80
- )
81
- ] }) : null;
45
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
46
+ import_ds_loading_indicator.DSLoadingIndicator,
47
+ {
48
+ id: "em-loading",
49
+ size,
50
+ style,
51
+ ...rest,
52
+ loading: isOpen,
53
+ message
54
+ }
55
+ );
82
56
  }
83
57
  );
package/dist/esm/index.js CHANGED
@@ -6,6 +6,8 @@ import {
6
6
  import { onAuthorizationFailure } from "./communication/http-client/response-interceptor.js";
7
7
  import { auth } from "./data/auth/actions.js";
8
8
  import { RequireAuth } from "./view/require-auth.js";
9
+ import { authentication } from "./sideeffect/auth/index.js";
10
+ import { authReducer } from "./data/auth/reducer.js";
9
11
  import { Page } from "./view/page.js";
10
12
  import { default as default2 } from "./utils/constants.js";
11
13
  import { useAppDispatch, useAppSelector } from "./data/react-redux.js";
@@ -85,6 +87,7 @@ import {
85
87
  MASK_TYPES,
86
88
  MASK_PIPES
87
89
  } from "./view/fields/input-mask/index.js";
90
+ import { MaskedInputText } from "./view/fields/masked-input-text/index.js";
88
91
  import { ComboBox } from "./view/fields/combo-box/index.js";
89
92
  import { ComboBoxV3 } from "./view/fields/combo-box-v3/index.js";
90
93
  import { CheckBox } from "./view/fields/check-box/index.js";
@@ -135,6 +138,7 @@ export {
135
138
  LargeTextBox,
136
139
  MASK_PIPES,
137
140
  MASK_TYPES,
141
+ MaskedInputText,
138
142
  MicroApp,
139
143
  MicroIFrameApp,
140
144
  NavigationPrompt,
@@ -153,6 +157,8 @@ export {
153
157
  WaitMessage,
154
158
  actions as ariaLive,
155
159
  auth,
160
+ authReducer,
161
+ authentication as authSaga,
156
162
  authorize,
157
163
  createAppStore as configureStore,
158
164
  createManager,
@@ -1,27 +1,16 @@
1
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
1
+ import { jsx } from "react/jsx-runtime";
2
2
  import { memo, useEffect } from "react";
3
- import styled from "styled-components";
4
- import { DSBackdrop } from "@elliemae/ds-backdrop";
5
- import { DSCircularIndeterminateIndicator } from "@elliemae/ds-circular-progress-indicator";
3
+ import { DSLoadingIndicator } from "@elliemae/ds-loading-indicator";
6
4
  import { useAppSelector } from "../../data/react-redux.js";
7
5
  import { useHTMLWaitMessage } from "./use-html-wait-message.js";
8
6
  import {
9
7
  waitStartEvent,
10
8
  waitEndEvent
11
9
  } from "../../analytics/user-wait-event.js";
12
- const StyledCircularIndicator = styled(DSCircularIndeterminateIndicator)`
13
- position: absolute;
14
- left: 50%;
15
- top: 50%;
16
- transform: translate(-50%, -50%);
17
- `;
18
10
  const WaitMessage = memo(
19
11
  ({
20
- size = "xl",
21
- color = "light",
22
- showText = true,
23
- withTooltip = false,
24
- tooltipStartPlacementPreference = "center",
12
+ size = "m",
13
+ style = { color: "white", fontSize: "1.25rem" },
25
14
  ...rest
26
15
  }) => {
27
16
  const isOpen = useAppSelector((state) => state.waitMessage?.isOpen);
@@ -33,22 +22,17 @@ const WaitMessage = memo(
33
22
  waitEndEvent();
34
23
  }, [isOpen]);
35
24
  useHTMLWaitMessage(isOpen !== null);
36
- return isOpen ? /* @__PURE__ */ jsxs(Fragment, { children: [
37
- /* @__PURE__ */ jsx(DSBackdrop, {}),
38
- /* @__PURE__ */ jsx(
39
- StyledCircularIndicator,
40
- {
41
- id: "em-loading",
42
- size,
43
- color,
44
- showText,
45
- withTooltip,
46
- tooltipStartPlacementPreference,
47
- ...rest,
48
- text: message
49
- }
50
- )
51
- ] }) : null;
25
+ return /* @__PURE__ */ jsx(
26
+ DSLoadingIndicator,
27
+ {
28
+ id: "em-loading",
29
+ size,
30
+ style,
31
+ ...rest,
32
+ loading: isOpen,
33
+ message
34
+ }
35
+ );
52
36
  }
53
37
  );
54
38
  export {
@@ -3,6 +3,8 @@ export { getHTTPClient, getAuthHTTPClient, } from './communication/http-client/i
3
3
  export { onAuthorizationFailure } from './communication/http-client/response-interceptor.js';
4
4
  export { auth } from './data/auth/actions.js';
5
5
  export { RequireAuth } from './view/require-auth.js';
6
+ export { authentication as authSaga } from './sideeffect/auth/index.js';
7
+ export { authReducer } from './data/auth/reducer.js';
6
8
  export { Page } from './view/page.js';
7
9
  export { default as globalConstants } from './utils/constants.js';
8
10
  export { useAppDispatch, useAppSelector } from './data/react-redux.js';
@@ -52,6 +54,7 @@ export { TextBox } from './view/fields/text-box/index.js';
52
54
  export { InputText } from './view/fields/input-text/index.js';
53
55
  export { LargeTextBox } from './view/fields/large-text-box/index.js';
54
56
  export { InputMask, MASK_TYPES, MASK_PIPES, } from './view/fields/input-mask/index.js';
57
+ export { MaskedInputText } from './view/fields/masked-input-text/index.js';
55
58
  export { ComboBox } from './view/fields/combo-box/index.js';
56
59
  export { ComboBoxV3 } from './view/fields/combo-box-v3/index.js';
57
60
  export { CheckBox } from './view/fields/check-box/index.js';
@@ -1,13 +1,7 @@
1
1
  /// <reference types="react" />
2
- import { DSCircularIndeterminateIndicator } from '@elliemae/ds-circular-progress-indicator';
3
- type CircularIndicatorProps = React.ComponentProps<typeof DSCircularIndeterminateIndicator>;
4
2
  export interface WaitMessageProps {
5
- size?: CircularIndicatorProps['size'];
6
- color?: CircularIndicatorProps['color'];
7
- showText?: CircularIndicatorProps['showText'];
8
- withTooltip?: CircularIndicatorProps['withTooltip'];
9
- tooltipStartPlacementPreference?: CircularIndicatorProps['tooltipStartPlacementPreference'];
3
+ size?: string;
4
+ style?: React.CSSProperties;
10
5
  [x: string]: any;
11
6
  }
12
7
  export declare const WaitMessage: import("react").NamedExoticComponent<WaitMessageProps>;
13
- export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/pui-app-sdk",
3
- "version": "4.11.0",
3
+ "version": "4.11.2",
4
4
  "description": "ICE MT UI Platform Application SDK ",
5
5
  "sideEffects": [
6
6
  "*.css",
@@ -123,6 +123,7 @@
123
123
  "@elliemae/ds-form": "^3.13.1",
124
124
  "@elliemae/ds-form-layout-blocks": "^3.13.1",
125
125
  "@elliemae/ds-grid": "^3.13.1",
126
+ "@elliemae/ds-loading-indicator": "^3.13.1",
126
127
  "@elliemae/ds-modal": "^3.13.1",
127
128
  "@elliemae/ds-popperjs": "^3.13.1",
128
129
  "@elliemae/ds-toast": "^3.13.1",
@@ -147,6 +148,7 @@
147
148
  "@elliemae/ds-form": "~3.13.1",
148
149
  "@elliemae/ds-form-layout-blocks": "~3.13.1",
149
150
  "@elliemae/ds-grid": "~3.13.1",
151
+ "@elliemae/ds-loading-indicator": "~3.13.1",
150
152
  "@elliemae/ds-modal": "~3.13.1",
151
153
  "@elliemae/ds-popperjs": "~3.13.1",
152
154
  "@elliemae/ds-toast": "~3.13.1",