@elliemae/pui-app-sdk 2.17.1 → 2.20.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.
- package/dist/cjs/analytics/page-view-event.js +4 -0
- package/dist/cjs/utils/micro-frontend/guest.js +1 -2
- package/dist/cjs/view/error-toast/index.js +5 -5
- package/dist/cjs/view/error-toast/index.stories.js +8 -8
- package/dist/cjs/view/fields/check-box/index.js +1 -1
- package/dist/cjs/view/fields/check-box/set-value.stories.js +2 -2
- package/dist/cjs/view/fields/combo-box/index.js +1 -1
- package/dist/cjs/view/fields/date-input/index.js +1 -1
- package/dist/cjs/view/fields/form-item-layout/index.js +1 -1
- package/dist/cjs/view/fields/input-mask/index.js +1 -1
- package/dist/cjs/view/fields/large-text-box/index.js +1 -1
- package/dist/cjs/view/fields/radio/index.js +1 -1
- package/dist/cjs/view/fields/radio/set-value.stories.js +2 -2
- package/dist/cjs/view/fields/radio-group/index.js +1 -1
- package/dist/cjs/view/fields/radio-group/index.stories.js +1 -1
- package/dist/cjs/view/fields/text-box/index.js +1 -1
- package/dist/cjs/view/form/submit-button/index.js +2 -2
- package/dist/cjs/view/header/logo-region/index.js +2 -2
- package/dist/cjs/view/header/nav-region/notification/index.js +2 -2
- package/dist/cjs/view/header/nav-region/user/index.js +2 -2
- package/dist/cjs/view/micro-app/app-factory/index.js +1 -0
- package/dist/cjs/view/micro-app/resources/manifest.js +1 -0
- package/dist/cjs/view/micro-iframe-app/use-frame-loaded.js +1 -0
- package/dist/cjs/view/modals/wait-message/index.js +2 -2
- package/dist/es/analytics/page-view-event.js +4 -0
- package/dist/es/utils/micro-frontend/guest.js +1 -1
- package/dist/es/view/error-toast/index.js +1 -1
- package/dist/es/view/error-toast/index.stories.js +2 -2
- package/dist/es/view/fields/check-box/index.js +1 -1
- package/dist/es/view/fields/check-box/set-value.stories.js +1 -1
- package/dist/es/view/fields/combo-box/index.js +1 -1
- package/dist/es/view/fields/date-input/index.js +1 -1
- package/dist/es/view/fields/form-item-layout/index.js +1 -1
- package/dist/es/view/fields/input-mask/index.js +1 -1
- package/dist/es/view/fields/large-text-box/index.js +1 -1
- package/dist/es/view/fields/radio/index.js +1 -1
- package/dist/es/view/fields/radio/set-value.stories.js +1 -1
- package/dist/es/view/fields/radio-group/index.js +1 -1
- package/dist/es/view/fields/radio-group/index.stories.js +1 -1
- package/dist/es/view/fields/text-box/index.js +1 -1
- package/dist/es/view/form/submit-button/index.js +1 -1
- package/dist/es/view/header/logo-region/index.js +1 -1
- package/dist/es/view/header/nav-region/notification/index.js +1 -1
- package/dist/es/view/header/nav-region/user/index.js +1 -1
- package/dist/es/view/micro-app/app-factory/index.js +1 -0
- package/dist/es/view/micro-app/resources/manifest.js +1 -0
- package/dist/es/view/micro-iframe-app/use-frame-loaded.js +1 -0
- package/dist/es/view/modals/wait-message/index.js +1 -1
- package/dist/types/utils/micro-frontend/guest.d.ts +1 -1
- package/dist/types/view/fields/check-box/index.d.ts +1 -1
- package/dist/types/view/fields/input-mask/index.d.ts +1 -1
- package/dist/types/view/micro-app/app-factory/index.d.ts +1 -1
- package/dist/types/view/micro-app/resources/manifest.d.ts +2 -2
- package/package.json +18 -10
- package/dist/cjs/typings/custom.d.js +0 -1
- package/dist/cjs/typings/elliemae.d.js +0 -1
- package/dist/cjs/typings/styled.d.js +0 -3
- package/dist/cjs/typings/thirdparty.d.js +0 -0
- package/dist/es/typings/custom.d.js +0 -0
- package/dist/es/typings/elliemae.d.js +0 -0
- package/dist/es/typings/styled.d.js +0 -1
- package/dist/es/typings/thirdparty.d.js +0 -0
|
@@ -9,6 +9,10 @@ var _index = require("./index.js");
|
|
|
9
9
|
|
|
10
10
|
const getWindow = () => {
|
|
11
11
|
try {
|
|
12
|
+
var _window$top;
|
|
13
|
+
|
|
14
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
|
|
15
|
+
(_window$top = window.top) === null || _window$top === void 0 ? void 0 : _window$top.document;
|
|
12
16
|
return window.top || window.self;
|
|
13
17
|
} catch (e) {
|
|
14
18
|
return window.self;
|
|
@@ -139,8 +139,7 @@ class CMicroAppGuest {
|
|
|
139
139
|
|
|
140
140
|
host = ((_window$parent = window.parent) === null || _window$parent === void 0 ? void 0 : (_window$parent$emui = _window$parent.emui) === null || _window$parent$emui === void 0 ? void 0 : _window$parent$emui.MicroAppHost) || null;
|
|
141
141
|
} else if (_emSsfGuest.default && this.props.hostName) {
|
|
142
|
-
_emSsfGuest.default.connect();
|
|
143
|
-
|
|
142
|
+
await _emSsfGuest.default.connect();
|
|
144
143
|
const timeout = new Promise(resolve => {
|
|
145
144
|
setTimeout(resolve, 100, null);
|
|
146
145
|
});
|
|
@@ -7,7 +7,7 @@ exports.ErrorToast = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _react = require("react");
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _dsToast = require("@elliemae/ds-toast");
|
|
11
11
|
|
|
12
12
|
var _reactRedux = require("../../data/react-redux.js");
|
|
13
13
|
|
|
@@ -22,21 +22,21 @@ const ErrorToast = /*#__PURE__*/(0, _react.memo)(props => {
|
|
|
22
22
|
// Only show toast when there is error set in redux state
|
|
23
23
|
if (storeError && (storeError !== null && storeError !== void 0 && storeError.description || storeError !== null && storeError !== void 0 && storeError.messageText)) {
|
|
24
24
|
const toastProps = {
|
|
25
|
-
position:
|
|
25
|
+
position: _dsToast.ToastPosition.TOP_RIGHT,
|
|
26
26
|
messageTitle: 'Error',
|
|
27
|
-
type:
|
|
27
|
+
type: _dsToast.ToastType.ERROR,
|
|
28
28
|
...props,
|
|
29
29
|
...storeError
|
|
30
30
|
};
|
|
31
31
|
const messageText = toastProps.description || toastProps.messageText;
|
|
32
|
-
if (messageText) (0,
|
|
32
|
+
if (messageText) (0, _dsToast.toast)({
|
|
33
33
|
messageText,
|
|
34
34
|
...toastProps
|
|
35
35
|
});
|
|
36
36
|
dispatch(_index.actions.clear());
|
|
37
37
|
}
|
|
38
38
|
}, [storeError, props, dispatch]);
|
|
39
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
39
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_dsToast.DSToast, { ...props
|
|
40
40
|
});
|
|
41
41
|
});
|
|
42
42
|
exports.ErrorToast = ErrorToast;
|
|
@@ -11,9 +11,9 @@ var _jsx3 = _interopRequireDefault(require("@babel/runtime/helpers/jsx"));
|
|
|
11
11
|
|
|
12
12
|
var _react = require("react");
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _dsToast = require("@elliemae/ds-toast");
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _dsButton = _interopRequireDefault(require("@elliemae/ds-button"));
|
|
17
17
|
|
|
18
18
|
var _reactRedux = require("../../data/react-redux.js");
|
|
19
19
|
|
|
@@ -62,7 +62,7 @@ exports.BasicError = BasicError;
|
|
|
62
62
|
|
|
63
63
|
const showToast = ({
|
|
64
64
|
messageText = 'Toast Message',
|
|
65
|
-
type =
|
|
65
|
+
type = _dsToast.ToastType.DEFAULT,
|
|
66
66
|
...props
|
|
67
67
|
}) => _index.error.set({
|
|
68
68
|
type,
|
|
@@ -73,25 +73,25 @@ const showToast = ({
|
|
|
73
73
|
});
|
|
74
74
|
|
|
75
75
|
const successToast = props => showToast({ ...props,
|
|
76
|
-
type:
|
|
76
|
+
type: _dsToast.ToastType.SUCCESS
|
|
77
77
|
});
|
|
78
78
|
|
|
79
79
|
const infoToast = props => showToast({ ...props,
|
|
80
|
-
type:
|
|
80
|
+
type: _dsToast.ToastType.INFO
|
|
81
81
|
});
|
|
82
82
|
|
|
83
83
|
const warningToast = props => showToast({ ...props,
|
|
84
|
-
type:
|
|
84
|
+
type: _dsToast.ToastType.WARNING
|
|
85
85
|
});
|
|
86
86
|
|
|
87
87
|
const errorToast = props => showToast({ ...props,
|
|
88
|
-
type:
|
|
88
|
+
type: _dsToast.ToastType.ERROR
|
|
89
89
|
});
|
|
90
90
|
|
|
91
91
|
const ToastButton = ({
|
|
92
92
|
labelText,
|
|
93
93
|
onClick
|
|
94
|
-
}) => /*#__PURE__*/(0, _jsx3.default)(
|
|
94
|
+
}) => /*#__PURE__*/(0, _jsx3.default)(_dsButton.default, {
|
|
95
95
|
buttonType: "text",
|
|
96
96
|
labelText: labelText,
|
|
97
97
|
onClick: onClick
|
|
@@ -15,7 +15,7 @@ exports.CheckBox = void 0;
|
|
|
15
15
|
|
|
16
16
|
var _jsx3 = _interopRequireDefault(require("@babel/runtime/helpers/jsx"));
|
|
17
17
|
|
|
18
|
-
var _Checkbox = _interopRequireWildcard(require("@elliemae/ds-
|
|
18
|
+
var _Checkbox = _interopRequireWildcard(require("@elliemae/ds-form/Checkbox"));
|
|
19
19
|
|
|
20
20
|
var _reactHookForm = require("react-hook-form");
|
|
21
21
|
|
|
@@ -13,7 +13,7 @@ var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
|
13
13
|
|
|
14
14
|
var _reactHookForm = require("react-hook-form");
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _dsButton = _interopRequireDefault(require("@elliemae/ds-button"));
|
|
17
17
|
|
|
18
18
|
var _index = require("../../form/index.js");
|
|
19
19
|
|
|
@@ -78,6 +78,6 @@ SetValue.args = {
|
|
|
78
78
|
defaultChecked: false
|
|
79
79
|
};
|
|
80
80
|
|
|
81
|
-
var _StyledDSButton = /*#__PURE__*/(0, _styledComponents.default)(
|
|
81
|
+
var _StyledDSButton = /*#__PURE__*/(0, _styledComponents.default)(_dsButton.default).withConfig({
|
|
82
82
|
componentId: "sc-1lqqv9c-0"
|
|
83
83
|
})(["margin-top:10px;"]);
|
|
@@ -9,7 +9,7 @@ exports.ComboBox = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _jsx3 = _interopRequireDefault(require("@babel/runtime/helpers/jsx"));
|
|
11
11
|
|
|
12
|
-
var _ComboBox = _interopRequireDefault(require("@elliemae/ds-
|
|
12
|
+
var _ComboBox = _interopRequireDefault(require("@elliemae/ds-form/ComboBox"));
|
|
13
13
|
|
|
14
14
|
var _reactHookForm = require("react-hook-form");
|
|
15
15
|
|
|
@@ -9,7 +9,7 @@ exports.DateInput = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _jsx3 = _interopRequireDefault(require("@babel/runtime/helpers/jsx"));
|
|
11
11
|
|
|
12
|
-
var _DateInput = _interopRequireDefault(require("@elliemae/ds-
|
|
12
|
+
var _DateInput = _interopRequireDefault(require("@elliemae/ds-form/DateInput"));
|
|
13
13
|
|
|
14
14
|
var _reactHookForm = require("react-hook-form");
|
|
15
15
|
|
|
@@ -9,7 +9,7 @@ exports.FormItemLayout = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _jsx3 = _interopRequireDefault(require("@babel/runtime/helpers/jsx"));
|
|
11
11
|
|
|
12
|
-
var _FormItem = _interopRequireDefault(require("@elliemae/ds-
|
|
12
|
+
var _FormItem = _interopRequireDefault(require("@elliemae/ds-form/FormItem"));
|
|
13
13
|
|
|
14
14
|
var _reactHookForm = require("react-hook-form");
|
|
15
15
|
|
|
@@ -21,7 +21,7 @@ Object.defineProperty(exports, "MASK_TYPES", {
|
|
|
21
21
|
|
|
22
22
|
var _jsx3 = _interopRequireDefault(require("@babel/runtime/helpers/jsx"));
|
|
23
23
|
|
|
24
|
-
var _InputMask = _interopRequireWildcard(require("@elliemae/ds-
|
|
24
|
+
var _InputMask = _interopRequireWildcard(require("@elliemae/ds-form/InputMask"));
|
|
25
25
|
|
|
26
26
|
var _reactHookForm = require("react-hook-form");
|
|
27
27
|
|
|
@@ -9,7 +9,7 @@ exports.LargeTextBox = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _jsx3 = _interopRequireDefault(require("@babel/runtime/helpers/jsx"));
|
|
11
11
|
|
|
12
|
-
var _LargeInputText = _interopRequireDefault(require("@elliemae/ds-
|
|
12
|
+
var _LargeInputText = _interopRequireDefault(require("@elliemae/ds-form/LargeInputText"));
|
|
13
13
|
|
|
14
14
|
var _reactHookForm = require("react-hook-form");
|
|
15
15
|
|
|
@@ -9,7 +9,7 @@ exports.Radio = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _jsx3 = _interopRequireDefault(require("@babel/runtime/helpers/jsx"));
|
|
11
11
|
|
|
12
|
-
var _Radio = _interopRequireDefault(require("@elliemae/ds-
|
|
12
|
+
var _Radio = _interopRequireDefault(require("@elliemae/ds-form/Radio"));
|
|
13
13
|
|
|
14
14
|
var _reactHookForm = require("react-hook-form");
|
|
15
15
|
|
|
@@ -13,7 +13,7 @@ var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
|
13
13
|
|
|
14
14
|
var _reactHookForm = require("react-hook-form");
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _dsButton = _interopRequireDefault(require("@elliemae/ds-button"));
|
|
17
17
|
|
|
18
18
|
var _index = require("../../form/index.js");
|
|
19
19
|
|
|
@@ -76,6 +76,6 @@ SetValue.args = {
|
|
|
76
76
|
defaultChecked: true
|
|
77
77
|
};
|
|
78
78
|
|
|
79
|
-
var _StyledDSButton = /*#__PURE__*/(0, _styledComponents.default)(
|
|
79
|
+
var _StyledDSButton = /*#__PURE__*/(0, _styledComponents.default)(_dsButton.default).withConfig({
|
|
80
80
|
componentId: "sc-fd8n0e-0"
|
|
81
81
|
})(["margin-top:10px;"]);
|
|
@@ -9,7 +9,7 @@ exports.RadioGroup = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _jsx3 = _interopRequireDefault(require("@babel/runtime/helpers/jsx"));
|
|
11
11
|
|
|
12
|
-
var _RadioGroup = _interopRequireDefault(require("@elliemae/ds-
|
|
12
|
+
var _RadioGroup = _interopRequireDefault(require("@elliemae/ds-form/RadioGroup"));
|
|
13
13
|
|
|
14
14
|
var _reactHookForm = require("react-hook-form");
|
|
15
15
|
|
|
@@ -9,7 +9,7 @@ exports.default = exports.Basic = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _jsx3 = _interopRequireDefault(require("@babel/runtime/helpers/jsx"));
|
|
11
11
|
|
|
12
|
-
var _Radio = _interopRequireDefault(require("@elliemae/ds-
|
|
12
|
+
var _Radio = _interopRequireDefault(require("@elliemae/ds-form/Radio"));
|
|
13
13
|
|
|
14
14
|
var _reactHookForm = require("react-hook-form");
|
|
15
15
|
|
|
@@ -9,7 +9,7 @@ exports.TextBox = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _jsx3 = _interopRequireDefault(require("@babel/runtime/helpers/jsx"));
|
|
11
11
|
|
|
12
|
-
var _TextBox = _interopRequireDefault(require("@elliemae/ds-
|
|
12
|
+
var _TextBox = _interopRequireDefault(require("@elliemae/ds-form/TextBox"));
|
|
13
13
|
|
|
14
14
|
var _reactHookForm = require("react-hook-form");
|
|
15
15
|
|
|
@@ -9,7 +9,7 @@ exports.FormSubmitButton = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _reactHookForm = require("react-hook-form");
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _dsButton = _interopRequireDefault(require("@elliemae/ds-button"));
|
|
13
13
|
|
|
14
14
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
15
|
|
|
@@ -21,7 +21,7 @@ const FormSubmitButton = ({ ...rest
|
|
|
21
21
|
mode
|
|
22
22
|
}
|
|
23
23
|
} = (0, _reactHookForm.useFormContext)();
|
|
24
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
24
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_dsButton.default, { ...rest,
|
|
25
25
|
type: "submit",
|
|
26
26
|
disabled: mode !== 'onSubmit' && (!formState.isDirty || formState.isDirty && !formState.isValid)
|
|
27
27
|
});
|
|
@@ -11,7 +11,7 @@ var _jsx2 = _interopRequireDefault(require("@babel/runtime/helpers/jsx"));
|
|
|
11
11
|
|
|
12
12
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
13
13
|
|
|
14
|
-
var _logo = require("./logo.svg");
|
|
14
|
+
var _logo = _interopRequireDefault(require("./logo.svg"));
|
|
15
15
|
|
|
16
16
|
var _LogoContainer;
|
|
17
17
|
|
|
@@ -19,6 +19,6 @@ const LogoContainer = /*#__PURE__*/_styledComponents.default.div.withConfig({
|
|
|
19
19
|
componentId: "sc-a4sia6-0"
|
|
20
20
|
})(["align-self:center;"]);
|
|
21
21
|
|
|
22
|
-
const LogoRegion = () => _LogoContainer || (_LogoContainer = /*#__PURE__*/(0, _jsx2.default)(LogoContainer, {}, void 0, /*#__PURE__*/(0, _jsx2.default)(_logo.
|
|
22
|
+
const LogoRegion = () => _LogoContainer || (_LogoContainer = /*#__PURE__*/(0, _jsx2.default)(LogoContainer, {}, void 0, /*#__PURE__*/(0, _jsx2.default)(_logo.default, {})));
|
|
23
23
|
|
|
24
24
|
exports.LogoRegion = LogoRegion;
|
|
@@ -9,13 +9,13 @@ exports.Notification = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _jsx2 = _interopRequireDefault(require("@babel/runtime/helpers/jsx"));
|
|
11
11
|
|
|
12
|
-
var _index = require("./index.svg");
|
|
12
|
+
var _index = _interopRequireDefault(require("./index.svg"));
|
|
13
13
|
|
|
14
14
|
var _a;
|
|
15
15
|
|
|
16
16
|
const Notification = () => /*#__PURE__*/(0, _jsx2.default)("li", {}, void 0, _a || (_a = /*#__PURE__*/(0, _jsx2.default)("a", {
|
|
17
17
|
href: "#",
|
|
18
18
|
"aria-label": "Notifications"
|
|
19
|
-
}, void 0, /*#__PURE__*/(0, _jsx2.default)(_index.
|
|
19
|
+
}, void 0, /*#__PURE__*/(0, _jsx2.default)(_index.default, {}))));
|
|
20
20
|
|
|
21
21
|
exports.Notification = Notification;
|
|
@@ -9,13 +9,13 @@ exports.User = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _jsx2 = _interopRequireDefault(require("@babel/runtime/helpers/jsx"));
|
|
11
11
|
|
|
12
|
-
var _index = require("./index.svg");
|
|
12
|
+
var _index = _interopRequireDefault(require("./index.svg"));
|
|
13
13
|
|
|
14
14
|
var _a;
|
|
15
15
|
|
|
16
16
|
const User = () => /*#__PURE__*/(0, _jsx2.default)("li", {}, void 0, _a || (_a = /*#__PURE__*/(0, _jsx2.default)("a", {
|
|
17
17
|
href: "#",
|
|
18
18
|
"aria-label": "profile"
|
|
19
|
-
}, void 0, /*#__PURE__*/(0, _jsx2.default)(_index.
|
|
19
|
+
}, void 0, /*#__PURE__*/(0, _jsx2.default)(_index.default, {}))));
|
|
20
20
|
|
|
21
21
|
exports.User = User;
|
|
@@ -175,6 +175,7 @@ const unloadApp = ({
|
|
|
175
175
|
hostUrl,
|
|
176
176
|
documentEle
|
|
177
177
|
}) => {
|
|
178
|
+
if (!hostUrl) throw new Error('hostUrl is required');
|
|
178
179
|
(0, _index.getLogger)().info(_logRecords.logRecords.APP_UNLOADING(id));
|
|
179
180
|
const app = (window.emui || {})[id];
|
|
180
181
|
if (!app) return;
|
|
@@ -19,6 +19,7 @@ const getAppManifest = async ({
|
|
|
19
19
|
hostUrl,
|
|
20
20
|
manifestPath
|
|
21
21
|
}) => {
|
|
22
|
+
if (!hostUrl || !manifestPath) throw new Error('Missing required parameters');
|
|
22
23
|
const url = new URL(`${manifestPath.replace(/\/?$/, '/')}manifest.json`, hostUrl);
|
|
23
24
|
const response = await (0, _index.getHTTPClient)().get((0, _url.removeDoubleSlash)(url.href));
|
|
24
25
|
const {
|
|
@@ -20,6 +20,7 @@ const addBaseTag = (id, documentEle) => {
|
|
|
20
20
|
} = (0, _index.getMicroFrontEndAppConfig)({
|
|
21
21
|
id
|
|
22
22
|
});
|
|
23
|
+
if (!hostUrl || !manifestPath) throw new Error('hostUrl or manifestPath is not defined');
|
|
23
24
|
const base = documentEle.createElement('base');
|
|
24
25
|
base.href = new URL(manifestPath, hostUrl).href;
|
|
25
26
|
documentEle.getElementsByTagName('head')[0].appendChild(base);
|
|
@@ -11,7 +11,7 @@ var _jsx3 = _interopRequireDefault(require("@babel/runtime/helpers/jsx"));
|
|
|
11
11
|
|
|
12
12
|
var _react = require("react");
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _dsLoadingIndicator = _interopRequireDefault(require("@elliemae/ds-loading-indicator"));
|
|
15
15
|
|
|
16
16
|
var _reactRedux = require("../../../data/react-redux.js");
|
|
17
17
|
|
|
@@ -45,7 +45,7 @@ const WaitMessage = /*#__PURE__*/(0, _react.memo)(({
|
|
|
45
45
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
46
46
|
children: [/*#__PURE__*/(0, _jsx3.default)(_htmlWaitMessage.HTMLWaitMessage, {
|
|
47
47
|
close: isOpen !== null
|
|
48
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
48
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_dsLoadingIndicator.default, {
|
|
49
49
|
id: "em-loading",
|
|
50
50
|
size: size,
|
|
51
51
|
style: style,
|
|
@@ -2,6 +2,10 @@ import { sendBAEvent } from "./index.js";
|
|
|
2
2
|
|
|
3
3
|
const getWindow = () => {
|
|
4
4
|
try {
|
|
5
|
+
var _window$top;
|
|
6
|
+
|
|
7
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
|
|
8
|
+
(_window$top = window.top) === null || _window$top === void 0 ? void 0 : _window$top.document;
|
|
5
9
|
return window.top || window.self;
|
|
6
10
|
} catch (e) {
|
|
7
11
|
return window.self;
|
|
@@ -126,7 +126,7 @@ export class CMicroAppGuest {
|
|
|
126
126
|
|
|
127
127
|
host = ((_window$parent = window.parent) === null || _window$parent === void 0 ? void 0 : (_window$parent$emui = _window$parent.emui) === null || _window$parent$emui === void 0 ? void 0 : _window$parent$emui.MicroAppHost) || null;
|
|
128
128
|
} else if (ssfGuest && this.props.hostName) {
|
|
129
|
-
ssfGuest.connect();
|
|
129
|
+
await ssfGuest.connect();
|
|
130
130
|
const timeout = new Promise(resolve => {
|
|
131
131
|
setTimeout(resolve, 100, null);
|
|
132
132
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useEffect, memo } from 'react';
|
|
2
|
-
import { ToastPosition, ToastType, DSToast, toast } from '@elliemae/ds-
|
|
2
|
+
import { ToastPosition, ToastType, DSToast, toast } from '@elliemae/ds-toast';
|
|
3
3
|
import { useAppSelector, useAppDispatch } from "../../data/react-redux.js";
|
|
4
4
|
import { actions as error } from "../../data/error/index.js";
|
|
5
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -3,8 +3,8 @@ import _jsx from "@babel/runtime/helpers/jsx";
|
|
|
3
3
|
var _ErrorToast, _Renderer, _Renderer2;
|
|
4
4
|
|
|
5
5
|
import { useEffect, useState } from 'react';
|
|
6
|
-
import { ToastType } from '@elliemae/ds-
|
|
7
|
-
import DSButton from '@elliemae/ds-
|
|
6
|
+
import { ToastType } from '@elliemae/ds-toast';
|
|
7
|
+
import DSButton from '@elliemae/ds-button';
|
|
8
8
|
import { useAppDispatch } from "../../data/react-redux.js";
|
|
9
9
|
import { error } from "../../index.js";
|
|
10
10
|
import { ErrorToast } from "./index.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _jsx2 from "@babel/runtime/helpers/jsx";
|
|
2
|
-
import DSCheckbox, { CHECKBOX_VARIANT } from '@elliemae/ds-
|
|
2
|
+
import DSCheckbox, { CHECKBOX_VARIANT } from '@elliemae/ds-form/Checkbox';
|
|
3
3
|
import { Controller } from 'react-hook-form';
|
|
4
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
5
|
export const CheckBox = ({
|
|
@@ -4,7 +4,7 @@ import _styled from "styled-components";
|
|
|
4
4
|
var _ToggleValue;
|
|
5
5
|
|
|
6
6
|
import { useFormContext, get } from 'react-hook-form';
|
|
7
|
-
import DSButton from '@elliemae/ds-
|
|
7
|
+
import DSButton from '@elliemae/ds-button';
|
|
8
8
|
import { Form } from "../../form/index.js";
|
|
9
9
|
import { CheckBox, CHECKBOX_VARIANT } from "./index.js";
|
|
10
10
|
import { ConnectForm } from "../connect-form.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _jsx2 from "@babel/runtime/helpers/jsx";
|
|
2
|
-
import DSComboBox from '@elliemae/ds-
|
|
2
|
+
import DSComboBox from '@elliemae/ds-form/ComboBox';
|
|
3
3
|
import { Controller } from 'react-hook-form';
|
|
4
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
5
|
export const ComboBox = ({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _jsx2 from "@babel/runtime/helpers/jsx";
|
|
2
|
-
import DSDateInput from '@elliemae/ds-
|
|
2
|
+
import DSDateInput from '@elliemae/ds-form/DateInput';
|
|
3
3
|
import { Controller } from 'react-hook-form';
|
|
4
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
5
|
export const DateInput = ({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _jsx2 from "@babel/runtime/helpers/jsx";
|
|
2
|
-
import DSFormItemLayout from '@elliemae/ds-
|
|
2
|
+
import DSFormItemLayout from '@elliemae/ds-form/FormItem';
|
|
3
3
|
import { get } from 'react-hook-form';
|
|
4
4
|
import { ConnectForm } from "../connect-form.js";
|
|
5
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _jsx2 from "@babel/runtime/helpers/jsx";
|
|
2
|
-
import DSInputMask, { MASK_TYPES, MASK_PIPES } from '@elliemae/ds-
|
|
2
|
+
import DSInputMask, { MASK_TYPES, MASK_PIPES } from '@elliemae/ds-form/InputMask';
|
|
3
3
|
import { Controller } from 'react-hook-form';
|
|
4
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
5
|
export const InputMask = ({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _jsx2 from "@babel/runtime/helpers/jsx";
|
|
2
|
-
import DSLargeInputText from '@elliemae/ds-
|
|
2
|
+
import DSLargeInputText from '@elliemae/ds-form/LargeInputText';
|
|
3
3
|
import { Controller } from 'react-hook-form';
|
|
4
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
5
|
export const LargeTextBox = ({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _jsx2 from "@babel/runtime/helpers/jsx";
|
|
2
|
-
import DSRadio from '@elliemae/ds-
|
|
2
|
+
import DSRadio from '@elliemae/ds-form/Radio';
|
|
3
3
|
import { Controller } from 'react-hook-form';
|
|
4
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
5
|
export const Radio = ({
|
|
@@ -4,7 +4,7 @@ import _styled from "styled-components";
|
|
|
4
4
|
var _ToggleValue;
|
|
5
5
|
|
|
6
6
|
import { useFormContext, get } from 'react-hook-form';
|
|
7
|
-
import DSButton from '@elliemae/ds-
|
|
7
|
+
import DSButton from '@elliemae/ds-button';
|
|
8
8
|
import { Form } from "../../form/index.js";
|
|
9
9
|
import { Radio } from "./index.js";
|
|
10
10
|
import { ConnectForm } from "../connect-form.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _jsx2 from "@babel/runtime/helpers/jsx";
|
|
2
|
-
import DSRadioGroup from '@elliemae/ds-
|
|
2
|
+
import DSRadioGroup from '@elliemae/ds-form/RadioGroup';
|
|
3
3
|
import { Controller } from 'react-hook-form';
|
|
4
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
5
|
export const RadioGroup = ({
|
|
@@ -2,7 +2,7 @@ import _jsx from "@babel/runtime/helpers/jsx";
|
|
|
2
2
|
|
|
3
3
|
var _DSRadio, _DSRadio2;
|
|
4
4
|
|
|
5
|
-
import DSRadio from '@elliemae/ds-
|
|
5
|
+
import DSRadio from '@elliemae/ds-form/Radio';
|
|
6
6
|
import { get } from 'react-hook-form';
|
|
7
7
|
import { RadioGroup } from "./index.js";
|
|
8
8
|
import { Form } from "../../form/index.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _jsx2 from "@babel/runtime/helpers/jsx";
|
|
2
|
-
import DSTextBox from '@elliemae/ds-
|
|
2
|
+
import DSTextBox from '@elliemae/ds-form/TextBox';
|
|
3
3
|
import { Controller } from 'react-hook-form';
|
|
4
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
5
|
export const TextBox = ({
|
|
@@ -3,7 +3,7 @@ import _jsx from "@babel/runtime/helpers/jsx";
|
|
|
3
3
|
var _LogoContainer;
|
|
4
4
|
|
|
5
5
|
import styled from 'styled-components';
|
|
6
|
-
import
|
|
6
|
+
import LogoImg from "./logo.svg";
|
|
7
7
|
const LogoContainer = /*#__PURE__*/styled.div.withConfig({
|
|
8
8
|
componentId: "sc-a4sia6-0"
|
|
9
9
|
})(["align-self:center;"]);
|
|
@@ -2,7 +2,7 @@ import _jsx from "@babel/runtime/helpers/jsx";
|
|
|
2
2
|
|
|
3
3
|
var _a;
|
|
4
4
|
|
|
5
|
-
import
|
|
5
|
+
import NotificationIcon from "./index.svg";
|
|
6
6
|
export const Notification = () => /*#__PURE__*/_jsx("li", {}, void 0, _a || (_a = /*#__PURE__*/_jsx("a", {
|
|
7
7
|
href: "#",
|
|
8
8
|
"aria-label": "Notifications"
|
|
@@ -2,7 +2,7 @@ import _jsx from "@babel/runtime/helpers/jsx";
|
|
|
2
2
|
|
|
3
3
|
var _a;
|
|
4
4
|
|
|
5
|
-
import
|
|
5
|
+
import UserIcon from "./index.svg";
|
|
6
6
|
export const User = () => /*#__PURE__*/_jsx("li", {}, void 0, _a || (_a = /*#__PURE__*/_jsx("a", {
|
|
7
7
|
href: "#",
|
|
8
8
|
"aria-label": "profile"
|
|
@@ -9,6 +9,7 @@ export const getAppManifest = async ({
|
|
|
9
9
|
hostUrl,
|
|
10
10
|
manifestPath
|
|
11
11
|
}) => {
|
|
12
|
+
if (!hostUrl || !manifestPath) throw new Error('Missing required parameters');
|
|
12
13
|
const url = new URL(`${manifestPath.replace(/\/?$/, '/')}manifest.json`, hostUrl);
|
|
13
14
|
const response = await getHTTPClient().get(removeDoubleSlash(url.href));
|
|
14
15
|
const {
|
|
@@ -10,6 +10,7 @@ const addBaseTag = (id, documentEle) => {
|
|
|
10
10
|
} = getMicroFrontEndAppConfig({
|
|
11
11
|
id
|
|
12
12
|
});
|
|
13
|
+
if (!hostUrl || !manifestPath) throw new Error('hostUrl or manifestPath is not defined');
|
|
13
14
|
const base = documentEle.createElement('base');
|
|
14
15
|
base.href = new URL(manifestPath, hostUrl).href;
|
|
15
16
|
documentEle.getElementsByTagName('head')[0].appendChild(base);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _jsx from "@babel/runtime/helpers/jsx";
|
|
2
2
|
import { memo, useEffect } from 'react';
|
|
3
|
-
import DSLoadingIndicator from '@elliemae/ds-
|
|
3
|
+
import DSLoadingIndicator from '@elliemae/ds-loading-indicator';
|
|
4
4
|
import { useAppSelector } from "../../../data/react-redux.js";
|
|
5
5
|
import { HTMLWaitMessage } from "./html-wait-message.js";
|
|
6
6
|
import { waitStartEvent, waitEndEvent } from "../../../analytics/user-wait-event.js";
|
|
@@ -33,7 +33,7 @@ export declare class CMicroAppGuest implements IMicroAppGuest {
|
|
|
33
33
|
static getInstance(params?: ConstructorParams): CMicroAppGuest;
|
|
34
34
|
static isInitialized(): boolean;
|
|
35
35
|
static isHosted(): boolean;
|
|
36
|
-
getHost(): IMicroAppHost;
|
|
36
|
+
getHost(): IMicroAppHost | undefined;
|
|
37
37
|
getLogger(): MicroFrontEndLogger;
|
|
38
38
|
getProps(): GuestProps;
|
|
39
39
|
private getSessionStorageItem;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { CHECKBOX_VARIANT } from '@elliemae/ds-
|
|
2
|
+
import { CHECKBOX_VARIANT } from '@elliemae/ds-form/Checkbox';
|
|
3
3
|
import { RegisterOptions, FieldValues, FieldPath } from 'react-hook-form';
|
|
4
4
|
export declare type CheckBoxProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> = {
|
|
5
5
|
name: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { MASK_TYPES, MASK_PIPES } from '@elliemae/ds-
|
|
2
|
+
import { MASK_TYPES, MASK_PIPES } from '@elliemae/ds-form/InputMask';
|
|
3
3
|
import { RegisterOptions, FieldValues, FieldPath } from 'react-hook-form';
|
|
4
4
|
export declare type InputMaskProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> = {
|
|
5
5
|
name: string;
|
|
@@ -4,6 +4,6 @@ export declare const unmountApp: ({ id, name }: MicroAppConfig) => Promise<void
|
|
|
4
4
|
export declare const loadApp: (appConfig: MicroAppConfig) => Promise<void>;
|
|
5
5
|
export declare const unloadApp: ({ id, hostUrl, documentEle, }: {
|
|
6
6
|
id: string;
|
|
7
|
-
hostUrl
|
|
7
|
+
hostUrl?: string | undefined;
|
|
8
8
|
documentEle: HTMLDocument;
|
|
9
9
|
}) => void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
declare type Manifest = Record<string, string>;
|
|
2
2
|
export declare const getAppManifest: ({ hostUrl, manifestPath, }: {
|
|
3
|
-
hostUrl
|
|
4
|
-
manifestPath
|
|
3
|
+
hostUrl?: string | undefined;
|
|
4
|
+
manifestPath?: string | undefined;
|
|
5
5
|
}) => Promise<Manifest>;
|
|
6
6
|
export declare const getFullFileNameofAssetsFromManifest: (manifest: Record<string, string>, assetNames?: Array<string>) => Array<string>;
|
|
7
7
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/pui-app-sdk",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.20.0",
|
|
4
4
|
"description": "ICE MT UI Platform Application SDK ",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"*.css",
|
|
@@ -90,28 +90,36 @@
|
|
|
90
90
|
"peerDependencies": {
|
|
91
91
|
"@elliemae/app-react-dependencies": "^2.10.0",
|
|
92
92
|
"@elliemae/ds-basic": "^1.60.0",
|
|
93
|
+
"@elliemae/ds-button": "^1.60.0",
|
|
94
|
+
"@elliemae/ds-form": "^1.60.0",
|
|
95
|
+
"@elliemae/ds-loading-indicator": "^1.60.0",
|
|
93
96
|
"@elliemae/ds-date-picker": "^1.60.0",
|
|
94
97
|
"@elliemae/ds-modal": "^1.60.0",
|
|
95
98
|
"@elliemae/ds-popperjs": "^1.60.0",
|
|
99
|
+
"@elliemae/ds-toast": "^1.60.0",
|
|
96
100
|
"@elliemae/em-ssf-guest": "^1.11.1",
|
|
97
|
-
"@elliemae/pui-diagnostics": "^2.7.
|
|
98
|
-
"@elliemae/pui-micro-frontend-base": "^1.
|
|
99
|
-
"@elliemae/pui-theme": "^2.
|
|
100
|
-
"@elliemae/pui-user-monitoring": "^1.
|
|
101
|
+
"@elliemae/pui-diagnostics": "^2.7.2",
|
|
102
|
+
"@elliemae/pui-micro-frontend-base": "^1.10.0",
|
|
103
|
+
"@elliemae/pui-theme": "^2.3.0",
|
|
104
|
+
"@elliemae/pui-user-monitoring": "^1.12.1"
|
|
101
105
|
},
|
|
102
106
|
"devDependencies": {
|
|
103
107
|
"@elliemae/app-react-dependencies": "~2.10.0",
|
|
104
108
|
"@elliemae/browserslist-config-elliemae-latest-browsers": "~1.2.1",
|
|
105
109
|
"@elliemae/ds-basic": "~1.60.0",
|
|
110
|
+
"@elliemae/ds-button": "~1.60.0",
|
|
111
|
+
"@elliemae/ds-form": "~1.60.0",
|
|
112
|
+
"@elliemae/ds-loading-indicator": "~1.60.0",
|
|
106
113
|
"@elliemae/ds-date-picker": "~1.60.0",
|
|
107
114
|
"@elliemae/ds-modal": "~1.60.0",
|
|
108
115
|
"@elliemae/ds-popperjs": "~1.60.0",
|
|
116
|
+
"@elliemae/ds-toast": "~1.60.0",
|
|
109
117
|
"@elliemae/em-ssf-guest": "~1.11.1",
|
|
110
|
-
"@elliemae/pui-cli": "~5.
|
|
111
|
-
"@elliemae/pui-diagnostics": "~2.7.
|
|
118
|
+
"@elliemae/pui-cli": "~5.21.3",
|
|
119
|
+
"@elliemae/pui-diagnostics": "~2.7.2",
|
|
112
120
|
"@elliemae/pui-e2e-test-sdk": "~6.8.0",
|
|
113
|
-
"@elliemae/pui-micro-frontend-base": "~1.
|
|
114
|
-
"@elliemae/pui-theme": "~2.
|
|
115
|
-
"@elliemae/pui-user-monitoring": "~1.
|
|
121
|
+
"@elliemae/pui-micro-frontend-base": "~1.10.0",
|
|
122
|
+
"@elliemae/pui-theme": "~2.3.0",
|
|
123
|
+
"@elliemae/pui-user-monitoring": "~1.12.1"
|
|
116
124
|
}
|
|
117
125
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import 'styled-components';
|
|
File without changes
|