@elliemae/pui-app-sdk 3.10.0 → 3.12.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/appdynamics.js +2 -15
- package/dist/cjs/analytics/index.js +2 -15
- package/dist/cjs/analytics/page-view-event.js +1 -0
- package/dist/cjs/analytics/user-session-event.js +1 -0
- package/dist/cjs/analytics/user-wait-event.js +1 -0
- package/dist/cjs/analytics/web-analytics.js +2 -15
- package/dist/cjs/api/auth/index.js +1 -0
- package/dist/cjs/api/helpers.js +1 -0
- package/dist/cjs/api/users/index.js +1 -0
- package/dist/cjs/communication/http-client/index.js +10 -42
- package/dist/cjs/communication/http-client/request-interceptor.js +1 -0
- package/dist/cjs/communication/http-client/response-interceptor.js +1 -0
- package/dist/cjs/communication/http-client/retry-axios.js +1 -0
- package/dist/cjs/communication/http-client/retry.js +1 -0
- package/dist/cjs/data/auth/actions.js +1 -0
- package/dist/cjs/data/auth/reducer.js +1 -0
- package/dist/cjs/data/breakpoint/index.js +1 -0
- package/dist/cjs/data/error/index.js +1 -0
- package/dist/cjs/data/index.js +1 -0
- package/dist/cjs/data/live-message/index.js +1 -0
- package/dist/cjs/data/logout/actions.js +1 -0
- package/dist/cjs/data/navigation-prompt/actions.js +1 -0
- package/dist/cjs/data/react-redux.js +1 -0
- package/dist/cjs/data/reducers.js +5 -17
- package/dist/cjs/data/saga.js +1 -0
- package/dist/cjs/data/store.js +1 -0
- package/dist/cjs/data/wait-message/actions.js +1 -0
- package/dist/cjs/data/wait-message/reducer.js +1 -0
- package/dist/cjs/data/webpack-hmr.js +1 -0
- package/dist/cjs/index.js +1 -0
- package/dist/cjs/micro-frontend.js +1 -0
- package/dist/cjs/sideeffect/auth/index.js +7 -21
- package/dist/cjs/sideeffect/error-toast/index.js +4 -19
- package/dist/cjs/sideeffect/wait-message/index.js +7 -21
- package/dist/cjs/utils/app-config/config.js +1 -0
- package/dist/cjs/utils/app-config/index.js +1 -0
- package/dist/cjs/utils/app-host-integration/react.js +1 -0
- package/dist/cjs/utils/auth/helper.js +1 -0
- package/dist/cjs/utils/auth/index.js +7 -21
- package/dist/cjs/utils/await.js +1 -0
- package/dist/cjs/utils/constants.js +1 -0
- package/dist/cjs/utils/font-size.js +1 -0
- package/dist/cjs/utils/guest-with-service.js +1 -0
- package/dist/cjs/utils/helpers.js +2 -1
- package/dist/cjs/utils/history.js +1 -0
- package/dist/cjs/utils/log-records.js +1 -0
- package/dist/cjs/utils/micro-frontend/console-logger.js +1 -0
- package/dist/cjs/utils/micro-frontend/guest.js +1 -0
- package/dist/cjs/utils/micro-frontend/host.js +1 -0
- package/dist/cjs/utils/micro-frontend/index.js +1 -0
- package/dist/cjs/utils/micro-frontend/ssfguest-adapter.js +1 -0
- package/dist/cjs/utils/micro-frontend/types.js +1 -0
- package/dist/cjs/utils/redact-pii.js +1 -0
- package/dist/cjs/utils/service-worker.js +4 -2
- package/dist/cjs/utils/session.js +1 -0
- package/dist/cjs/utils/storybook/cjs/main.js +1 -0
- package/dist/cjs/utils/storybook/cjs/middleware.js +1 -0
- package/dist/cjs/utils/storybook/cjs/vite.js +1 -0
- package/dist/cjs/utils/storybook/cjs/webpack.js +1 -0
- package/dist/cjs/utils/storybook/manager.js +1 -0
- package/dist/cjs/utils/storybook/preview.js +1 -0
- package/dist/cjs/utils/storybook/theme.js +10 -39
- package/dist/cjs/utils/testing/index.js +2 -15
- package/dist/cjs/utils/testing/render-with-redux.js +5 -20
- package/dist/cjs/utils/testing/render-with-router-redux.js +7 -22
- package/dist/cjs/utils/testing/render-with-router.js +4 -19
- package/dist/cjs/utils/testing/render-with-state-addons.js +11 -39
- package/dist/cjs/utils/types.js +1 -0
- package/dist/cjs/utils/url.js +1 -0
- package/dist/cjs/utils/web-storage.js +1 -0
- package/dist/cjs/utils/window.js +1 -0
- package/dist/cjs/view/app-root/hosted-app.js +1 -0
- package/dist/cjs/view/app-root/index.js +9 -16
- package/dist/cjs/view/app-root/stand-alone-app.js +1 -0
- package/dist/cjs/view/app-root/style.js +1 -0
- package/dist/cjs/view/app-router.js +6 -33
- package/dist/cjs/view/breakpoint/use-breakpoint.js +1 -0
- package/dist/cjs/view/breakpoint/use-media-query-list.js +1 -0
- package/dist/cjs/view/error-boundary/default-error-template.js +1 -0
- package/dist/cjs/view/error-boundary/index.js +4 -19
- package/dist/cjs/view/error-toast/index.js +10 -19
- package/dist/cjs/view/fetch-host-app-data/index.js +1 -0
- package/dist/cjs/view/fetch-host-app-data/store.js +2 -15
- package/dist/cjs/view/fields/check-box/index.js +10 -42
- package/dist/cjs/view/fields/combo-box/index.js +18 -53
- package/dist/cjs/view/fields/connect-form.js +4 -15
- package/dist/cjs/view/fields/date-input/index.js +15 -43
- package/dist/cjs/view/fields/date-picker/index.js +15 -43
- package/dist/cjs/view/fields/date-range-picker/index.js +22 -55
- package/dist/cjs/view/fields/date-time-picker/index.js +17 -52
- package/dist/cjs/view/fields/form-item-layout/index.js +13 -40
- package/dist/cjs/view/fields/form-layout-block-item/index.js +17 -46
- package/dist/cjs/view/fields/input-mask/index.js +26 -56
- package/dist/cjs/view/fields/input-text/index.js +15 -43
- package/dist/cjs/view/fields/large-text-box/index.js +15 -43
- package/dist/cjs/view/fields/radio/index.js +17 -52
- package/dist/cjs/view/fields/radio-group/index.js +10 -42
- package/dist/cjs/view/fields/text-box/index.js +15 -43
- package/dist/cjs/view/fields/toggle/index.js +18 -53
- package/dist/cjs/view/fields/watch-value.js +1 -0
- package/dist/cjs/view/form/index.js +7 -17
- package/dist/cjs/view/form/personal-info-section.js +1 -0
- package/dist/cjs/view/form/submit-button/index.js +5 -33
- package/dist/cjs/view/guest-unload-handlers/index.js +1 -0
- package/dist/cjs/view/host-binding-events/index.js +1 -0
- package/dist/cjs/view/live-message/index.js +1 -0
- package/dist/cjs/view/loadable/index.js +4 -15
- package/dist/cjs/view/login/index.js +1 -0
- package/dist/cjs/view/message-to-host-app/index.js +1 -0
- package/dist/cjs/view/micro-app/app-factory/index.js +2 -18
- package/dist/cjs/view/micro-app/const.js +1 -0
- package/dist/cjs/view/micro-app/index.js +1 -0
- package/dist/cjs/view/micro-app/resources/manifest.js +1 -0
- package/dist/cjs/view/micro-app/resources/script.js +1 -0
- package/dist/cjs/view/micro-app/resources/style.js +1 -0
- package/dist/cjs/view/micro-app/types.js +1 -0
- package/dist/cjs/view/micro-app/use-app-will-render.js +4 -19
- package/dist/cjs/view/micro-app/utils.js +1 -0
- package/dist/cjs/view/micro-iframe-app/app.js +11 -39
- package/dist/cjs/view/micro-iframe-app/iframe/const.js +1 -0
- package/dist/cjs/view/micro-iframe-app/iframe/index.js +5 -21
- package/dist/cjs/view/micro-iframe-app/index.js +5 -33
- package/dist/cjs/view/micro-iframe-app/types.js +1 -0
- package/dist/cjs/view/micro-iframe-app/use-frame-loaded.js +1 -0
- package/dist/cjs/view/modals/error/index.js +1 -0
- package/dist/cjs/view/modals/navigation-prompt/index.js +1 -0
- package/dist/cjs/view/modals/session-expiry/customHooks.js +1 -0
- package/dist/cjs/view/modals/session-expiry/index.js +1 -0
- package/dist/cjs/view/modals/wait-message/index.js +10 -41
- package/dist/cjs/view/modals/wait-message/use-html-wait-message.js +1 -0
- package/dist/cjs/view/modals/wait-message/wait-message-launcher.js +1 -0
- package/dist/cjs/view/page.js +1 -0
- package/dist/cjs/view/render-with-delay/index.js +1 -0
- package/dist/cjs/view/render-with-host-data/index.js +1 -0
- package/dist/cjs/view/require-auth.js +1 -0
- package/dist/cjs/view/session-timeout/index.js +1 -0
- package/dist/cjs/view/storybook/decorator.js +1 -0
- package/dist/cjs/view/use-previous.js +1 -0
- package/dist/cjs/view/use-window-size-change.js +1 -0
- package/dist/cjs/view/visually-hidden/index.js +5 -17
- package/dist/esm/analytics/appdynamics.js +2 -17
- package/dist/esm/analytics/index.js +2 -17
- package/dist/esm/analytics/page-view-event.js +1 -0
- package/dist/esm/analytics/user-session-event.js +1 -0
- package/dist/esm/analytics/user-wait-event.js +1 -0
- package/dist/esm/analytics/web-analytics.js +2 -17
- package/dist/esm/api/auth/index.js +1 -0
- package/dist/esm/api/helpers.js +1 -0
- package/dist/esm/api/users/index.js +1 -0
- package/dist/esm/communication/http-client/index.js +10 -44
- package/dist/esm/communication/http-client/request-interceptor.js +1 -0
- package/dist/esm/communication/http-client/response-interceptor.js +1 -0
- package/dist/esm/communication/http-client/retry-axios.js +1 -0
- package/dist/esm/communication/http-client/retry.js +1 -0
- package/dist/esm/data/auth/actions.js +1 -0
- package/dist/esm/data/auth/reducer.js +1 -0
- package/dist/esm/data/breakpoint/index.js +1 -0
- package/dist/esm/data/error/index.js +1 -0
- package/dist/esm/data/index.js +1 -0
- package/dist/esm/data/live-message/index.js +1 -0
- package/dist/esm/data/logout/actions.js +1 -0
- package/dist/esm/data/navigation-prompt/actions.js +1 -0
- package/dist/esm/data/react-redux.js +1 -0
- package/dist/esm/data/reducers.js +5 -19
- package/dist/esm/data/saga.js +1 -0
- package/dist/esm/data/store.js +1 -0
- package/dist/esm/data/wait-message/actions.js +1 -0
- package/dist/esm/data/wait-message/reducer.js +1 -0
- package/dist/esm/data/webpack-hmr.js +1 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/micro-frontend.js +1 -0
- package/dist/esm/sideeffect/auth/index.js +7 -23
- package/dist/esm/sideeffect/error-toast/index.js +4 -21
- package/dist/esm/sideeffect/wait-message/index.js +7 -23
- package/dist/esm/utils/app-config/config.js +1 -0
- package/dist/esm/utils/app-config/index.js +1 -0
- package/dist/esm/utils/app-host-integration/react.js +1 -0
- package/dist/esm/utils/auth/helper.js +1 -0
- package/dist/esm/utils/auth/index.js +7 -23
- package/dist/esm/utils/await.js +1 -0
- package/dist/esm/utils/constants.js +1 -0
- package/dist/esm/utils/font-size.js +1 -0
- package/dist/esm/utils/guest-with-service.js +1 -0
- package/dist/esm/utils/helpers.js +2 -1
- package/dist/esm/utils/history.js +1 -0
- package/dist/esm/utils/log-records.js +1 -0
- package/dist/esm/utils/micro-frontend/console-logger.js +1 -0
- package/dist/esm/utils/micro-frontend/guest.js +1 -0
- package/dist/esm/utils/micro-frontend/host.js +1 -0
- package/dist/esm/utils/micro-frontend/index.js +1 -0
- package/dist/esm/utils/micro-frontend/ssfguest-adapter.js +1 -0
- package/dist/esm/utils/micro-frontend/types.js +1 -0
- package/dist/esm/utils/redact-pii.js +1 -0
- package/dist/esm/utils/service-worker.js +4 -2
- package/dist/esm/utils/session.js +1 -0
- package/dist/esm/utils/storybook/manager.js +1 -0
- package/dist/esm/utils/storybook/preview.js +1 -0
- package/dist/esm/utils/storybook/theme.js +10 -41
- package/dist/esm/utils/testing/index.js +2 -17
- package/dist/esm/utils/testing/render-with-redux.js +5 -22
- package/dist/esm/utils/testing/render-with-router-redux.js +7 -24
- package/dist/esm/utils/testing/render-with-router.js +4 -21
- package/dist/esm/utils/testing/render-with-state-addons.js +11 -41
- package/dist/esm/utils/types.js +1 -0
- package/dist/esm/utils/url.js +1 -0
- package/dist/esm/utils/web-storage.js +1 -0
- package/dist/esm/utils/window.js +1 -0
- package/dist/esm/view/app-root/hosted-app.js +1 -0
- package/dist/esm/view/app-root/index.js +9 -18
- package/dist/esm/view/app-root/stand-alone-app.js +1 -0
- package/dist/esm/view/app-root/style.js +1 -0
- package/dist/esm/view/app-router.js +6 -35
- package/dist/esm/view/breakpoint/use-breakpoint.js +1 -0
- package/dist/esm/view/breakpoint/use-media-query-list.js +1 -0
- package/dist/esm/view/error-boundary/default-error-template.js +1 -0
- package/dist/esm/view/error-boundary/index.js +4 -21
- package/dist/esm/view/error-toast/index.js +10 -21
- package/dist/esm/view/fetch-host-app-data/index.js +1 -0
- package/dist/esm/view/fetch-host-app-data/store.js +2 -17
- package/dist/esm/view/fields/check-box/index.js +10 -44
- package/dist/esm/view/fields/combo-box/index.js +18 -55
- package/dist/esm/view/fields/connect-form.js +4 -17
- package/dist/esm/view/fields/date-input/index.js +15 -45
- package/dist/esm/view/fields/date-picker/index.js +15 -45
- package/dist/esm/view/fields/date-range-picker/index.js +22 -57
- package/dist/esm/view/fields/date-time-picker/index.js +17 -54
- package/dist/esm/view/fields/form-item-layout/index.js +13 -42
- package/dist/esm/view/fields/form-layout-block-item/index.js +17 -48
- package/dist/esm/view/fields/input-mask/index.js +26 -58
- package/dist/esm/view/fields/input-text/index.js +15 -45
- package/dist/esm/view/fields/large-text-box/index.js +15 -45
- package/dist/esm/view/fields/radio/index.js +17 -54
- package/dist/esm/view/fields/radio-group/index.js +10 -44
- package/dist/esm/view/fields/text-box/index.js +15 -45
- package/dist/esm/view/fields/toggle/index.js +18 -55
- package/dist/esm/view/fields/watch-value.js +1 -0
- package/dist/esm/view/form/index.js +7 -19
- package/dist/esm/view/form/personal-info-section.js +1 -0
- package/dist/esm/view/form/submit-button/index.js +5 -35
- package/dist/esm/view/guest-unload-handlers/index.js +1 -0
- package/dist/esm/view/host-binding-events/index.js +1 -0
- package/dist/esm/view/live-message/index.js +1 -0
- package/dist/esm/view/loadable/index.js +4 -17
- package/dist/esm/view/login/index.js +1 -0
- package/dist/esm/view/message-to-host-app/index.js +1 -0
- package/dist/esm/view/micro-app/app-factory/index.js +2 -20
- package/dist/esm/view/micro-app/const.js +1 -0
- package/dist/esm/view/micro-app/index.js +1 -0
- package/dist/esm/view/micro-app/resources/manifest.js +1 -0
- package/dist/esm/view/micro-app/resources/script.js +1 -0
- package/dist/esm/view/micro-app/resources/style.js +1 -0
- package/dist/esm/view/micro-app/types.js +1 -0
- package/dist/esm/view/micro-app/use-app-will-render.js +4 -21
- package/dist/esm/view/micro-app/utils.js +1 -0
- package/dist/esm/view/micro-iframe-app/app.js +11 -41
- package/dist/esm/view/micro-iframe-app/iframe/const.js +1 -0
- package/dist/esm/view/micro-iframe-app/iframe/index.js +5 -23
- package/dist/esm/view/micro-iframe-app/index.js +5 -35
- package/dist/esm/view/micro-iframe-app/types.js +1 -0
- package/dist/esm/view/micro-iframe-app/use-frame-loaded.js +1 -0
- package/dist/esm/view/modals/error/index.js +1 -0
- package/dist/esm/view/modals/navigation-prompt/index.js +1 -0
- package/dist/esm/view/modals/session-expiry/customHooks.js +1 -0
- package/dist/esm/view/modals/session-expiry/index.js +1 -0
- package/dist/esm/view/modals/wait-message/index.js +10 -43
- package/dist/esm/view/modals/wait-message/use-html-wait-message.js +1 -0
- package/dist/esm/view/modals/wait-message/wait-message-launcher.js +1 -0
- package/dist/esm/view/page.js +1 -0
- package/dist/esm/view/render-with-delay/index.js +1 -0
- package/dist/esm/view/render-with-host-data/index.js +1 -0
- package/dist/esm/view/require-auth.js +1 -0
- package/dist/esm/view/session-timeout/index.js +1 -0
- package/dist/esm/view/storybook/decorator.js +1 -0
- package/dist/esm/view/use-previous.js +1 -0
- package/dist/esm/view/use-window-size-change.js +1 -0
- package/dist/esm/view/visually-hidden/index.js +5 -19
- package/dist/types/data/store.d.ts +1 -1
- package/dist/types/utils/testing/index.d.ts +1 -1
- package/dist/types/view/app-root/index.d.ts +2 -1
- package/dist/types/view/app-router.d.ts +1 -1
- package/dist/types/view/fields/input-mask/index.d.ts +2 -1
- package/package.json +30 -30
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
const aptRegex = /(apt|bldg|dept|fl|hngr|lot|pier|rm|ste|slip|trlr|unit|#)\.? *[a-z0-9-]+\b/gi;
|
|
2
3
|
const poBoxRegex = /P\.? ?O\.? *Box +\d+/gi;
|
|
3
4
|
const roadRegex = /(street|st|road|rd|avenue|ave|drive|dr|loop|court|ct|circle|cir|lane|ln|boulevard|blvd|way)\.?\b/gi;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
import "./log-records.js";
|
|
2
3
|
import { getLogger } from "./micro-frontend/index.js";
|
|
3
4
|
const initServiceWorker = (swDest = "") => {
|
|
@@ -7,9 +8,10 @@ const initServiceWorker = (swDest = "") => {
|
|
|
7
8
|
navigator.serviceWorker.register(`${swDest.replace(/\/?$/, "/")}sw.js`).then(() => {
|
|
8
9
|
logger.debug("Service Worker registered");
|
|
9
10
|
}).catch((registrationError) => {
|
|
10
|
-
logger.error(
|
|
11
|
+
logger.error({
|
|
12
|
+
...logRecords.SERVICE_WORKER_FAILED,
|
|
11
13
|
exception: registrationError
|
|
12
|
-
})
|
|
14
|
+
});
|
|
13
15
|
});
|
|
14
16
|
});
|
|
15
17
|
}
|
|
@@ -1,45 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
3
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
4
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
-
var __spreadValues = (a, b) => {
|
|
7
|
-
for (var prop in b || (b = {}))
|
|
8
|
-
if (__hasOwnProp.call(b, prop))
|
|
9
|
-
__defNormalProp(a, prop, b[prop]);
|
|
10
|
-
if (__getOwnPropSymbols)
|
|
11
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
12
|
-
if (__propIsEnum.call(b, prop))
|
|
13
|
-
__defNormalProp(a, prop, b[prop]);
|
|
14
|
-
}
|
|
15
|
-
return a;
|
|
16
|
-
};
|
|
17
|
-
var __objRest = (source, exclude) => {
|
|
18
|
-
var target = {};
|
|
19
|
-
for (var prop in source)
|
|
20
|
-
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
21
|
-
target[prop] = source[prop];
|
|
22
|
-
if (source != null && __getOwnPropSymbols)
|
|
23
|
-
for (var prop of __getOwnPropSymbols(source)) {
|
|
24
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
25
|
-
target[prop] = source[prop];
|
|
26
|
-
}
|
|
27
|
-
return target;
|
|
28
|
-
};
|
|
1
|
+
"use strict";
|
|
29
2
|
import { create } from "@storybook/theming/create";
|
|
30
|
-
const createTheme = (
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
base,
|
|
40
|
-
brandTitle: `${brandTitle} ${process.env.STORYBOOK_VERSION || ""}`
|
|
41
|
-
}, rest));
|
|
42
|
-
};
|
|
3
|
+
const createTheme = ({
|
|
4
|
+
base = "light",
|
|
5
|
+
brandTitle = "Platform UI Components",
|
|
6
|
+
...rest
|
|
7
|
+
}) => create({
|
|
8
|
+
base,
|
|
9
|
+
brandTitle: `${brandTitle} ${process.env.STORYBOOK_VERSION || ""}`,
|
|
10
|
+
...rest
|
|
11
|
+
});
|
|
43
12
|
export {
|
|
44
13
|
createTheme
|
|
45
14
|
};
|
|
@@ -1,19 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
3
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
4
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
-
var __spreadValues = (a, b) => {
|
|
7
|
-
for (var prop in b || (b = {}))
|
|
8
|
-
if (__hasOwnProp.call(b, prop))
|
|
9
|
-
__defNormalProp(a, prop, b[prop]);
|
|
10
|
-
if (__getOwnPropSymbols)
|
|
11
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
12
|
-
if (__propIsEnum.call(b, prop))
|
|
13
|
-
__defNormalProp(a, prop, b[prop]);
|
|
14
|
-
}
|
|
15
|
-
return a;
|
|
16
|
-
};
|
|
1
|
+
"use strict";
|
|
17
2
|
import * as React from "react";
|
|
18
3
|
import { render } from "@testing-library/react";
|
|
19
4
|
import { getDefaultTheme } from "@elliemae/pui-theme";
|
|
@@ -31,7 +16,7 @@ const AllTheProviders = ({
|
|
|
31
16
|
history: browserHistory,
|
|
32
17
|
theme
|
|
33
18
|
}, children);
|
|
34
|
-
const customRender = (ui, options) => render(ui,
|
|
19
|
+
const customRender = (ui, options) => render(ui, { wrapper: AllTheProviders, ...options });
|
|
35
20
|
export * from "@testing-library/react";
|
|
36
21
|
export {
|
|
37
22
|
customRender as render
|
|
@@ -1,22 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
var __defProps = Object.defineProperties;
|
|
3
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
-
var __spreadValues = (a, b) => {
|
|
9
|
-
for (var prop in b || (b = {}))
|
|
10
|
-
if (__hasOwnProp.call(b, prop))
|
|
11
|
-
__defNormalProp(a, prop, b[prop]);
|
|
12
|
-
if (__getOwnPropSymbols)
|
|
13
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
-
if (__propIsEnum.call(b, prop))
|
|
15
|
-
__defNormalProp(a, prop, b[prop]);
|
|
16
|
-
}
|
|
17
|
-
return a;
|
|
18
|
-
};
|
|
19
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
1
|
+
"use strict";
|
|
20
2
|
import * as React from "react";
|
|
21
3
|
import { render } from "@testing-library/react";
|
|
22
4
|
import { Provider } from "react-redux";
|
|
@@ -25,9 +7,10 @@ import { browserHistory } from "../history.js";
|
|
|
25
7
|
const renderWithRedux = (ui, {
|
|
26
8
|
initialState,
|
|
27
9
|
store = createAppStore(initialState, browserHistory)
|
|
28
|
-
} = {}) =>
|
|
29
|
-
|
|
30
|
-
|
|
10
|
+
} = {}) => ({
|
|
11
|
+
...render(/* @__PURE__ */ React.createElement(Provider, {
|
|
12
|
+
store
|
|
13
|
+
}, ui)),
|
|
31
14
|
store
|
|
32
15
|
});
|
|
33
16
|
export {
|
|
@@ -1,22 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
var __defProps = Object.defineProperties;
|
|
3
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
-
var __spreadValues = (a, b) => {
|
|
9
|
-
for (var prop in b || (b = {}))
|
|
10
|
-
if (__hasOwnProp.call(b, prop))
|
|
11
|
-
__defNormalProp(a, prop, b[prop]);
|
|
12
|
-
if (__getOwnPropSymbols)
|
|
13
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
-
if (__propIsEnum.call(b, prop))
|
|
15
|
-
__defNormalProp(a, prop, b[prop]);
|
|
16
|
-
}
|
|
17
|
-
return a;
|
|
18
|
-
};
|
|
19
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
1
|
+
"use strict";
|
|
20
2
|
import * as React from "react";
|
|
21
3
|
import { render } from "@testing-library/react";
|
|
22
4
|
import { Provider } from "react-redux";
|
|
@@ -29,11 +11,12 @@ const renderWithRouterRedux = (ui, {
|
|
|
29
11
|
history = createMemoryHistory({ initialEntries: [route] }),
|
|
30
12
|
initialState,
|
|
31
13
|
store = createAppStore(initialState, browserHistory)
|
|
32
|
-
} = {}) =>
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
14
|
+
} = {}) => ({
|
|
15
|
+
...render(/* @__PURE__ */ React.createElement(Provider, {
|
|
16
|
+
store
|
|
17
|
+
}, /* @__PURE__ */ React.createElement(AppRouter, {
|
|
18
|
+
history
|
|
19
|
+
}, ui))),
|
|
37
20
|
store
|
|
38
21
|
});
|
|
39
22
|
export {
|
|
@@ -1,22 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
var __defProps = Object.defineProperties;
|
|
3
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
-
var __spreadValues = (a, b) => {
|
|
9
|
-
for (var prop in b || (b = {}))
|
|
10
|
-
if (__hasOwnProp.call(b, prop))
|
|
11
|
-
__defNormalProp(a, prop, b[prop]);
|
|
12
|
-
if (__getOwnPropSymbols)
|
|
13
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
-
if (__propIsEnum.call(b, prop))
|
|
15
|
-
__defNormalProp(a, prop, b[prop]);
|
|
16
|
-
}
|
|
17
|
-
return a;
|
|
18
|
-
};
|
|
19
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
1
|
+
"use strict";
|
|
20
2
|
import * as React from "react";
|
|
21
3
|
import { render } from "@testing-library/react";
|
|
22
4
|
import { createMemoryHistory } from "history";
|
|
@@ -28,9 +10,10 @@ const renderWithRouter = (ui, {
|
|
|
28
10
|
const renderResult = render(/* @__PURE__ */ React.createElement(AppRouter, {
|
|
29
11
|
history
|
|
30
12
|
}, ui));
|
|
31
|
-
return
|
|
13
|
+
return {
|
|
14
|
+
...renderResult,
|
|
32
15
|
history
|
|
33
|
-
}
|
|
16
|
+
};
|
|
34
17
|
};
|
|
35
18
|
export {
|
|
36
19
|
renderWithRouter
|
|
@@ -1,31 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
3
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
4
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
-
var __spreadValues = (a, b) => {
|
|
7
|
-
for (var prop in b || (b = {}))
|
|
8
|
-
if (__hasOwnProp.call(b, prop))
|
|
9
|
-
__defNormalProp(a, prop, b[prop]);
|
|
10
|
-
if (__getOwnPropSymbols)
|
|
11
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
12
|
-
if (__propIsEnum.call(b, prop))
|
|
13
|
-
__defNormalProp(a, prop, b[prop]);
|
|
14
|
-
}
|
|
15
|
-
return a;
|
|
16
|
-
};
|
|
17
|
-
var __objRest = (source, exclude) => {
|
|
18
|
-
var target = {};
|
|
19
|
-
for (var prop in source)
|
|
20
|
-
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
21
|
-
target[prop] = source[prop];
|
|
22
|
-
if (source != null && __getOwnPropSymbols)
|
|
23
|
-
for (var prop of __getOwnPropSymbols(source)) {
|
|
24
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
25
|
-
target[prop] = source[prop];
|
|
26
|
-
}
|
|
27
|
-
return target;
|
|
28
|
-
};
|
|
1
|
+
"use strict";
|
|
29
2
|
import * as React from "react";
|
|
30
3
|
import { useEffect, useState } from "react";
|
|
31
4
|
import { ThemeProvider } from "styled-components";
|
|
@@ -34,18 +7,13 @@ import {
|
|
|
34
7
|
useInjectReducer,
|
|
35
8
|
useInjectSaga
|
|
36
9
|
} from "redux-injectors";
|
|
37
|
-
const RenderWithStateAddOns = (
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
"Component",
|
|
45
|
-
"reducer",
|
|
46
|
-
"saga",
|
|
47
|
-
"theme"
|
|
48
|
-
]);
|
|
10
|
+
const RenderWithStateAddOns = ({
|
|
11
|
+
Component,
|
|
12
|
+
reducer,
|
|
13
|
+
saga,
|
|
14
|
+
theme = getDefaultTheme(),
|
|
15
|
+
...rest
|
|
16
|
+
}) => {
|
|
49
17
|
const [ready, setReady] = useState(false);
|
|
50
18
|
if (Array.isArray(reducer)) {
|
|
51
19
|
reducer.forEach((r) => useInjectReducer(r));
|
|
@@ -62,7 +30,9 @@ const RenderWithStateAddOns = (_a) => {
|
|
|
62
30
|
}, []);
|
|
63
31
|
return ready ? /* @__PURE__ */ React.createElement(ThemeProvider, {
|
|
64
32
|
theme
|
|
65
|
-
}, /* @__PURE__ */ React.createElement(Component,
|
|
33
|
+
}, /* @__PURE__ */ React.createElement(Component, {
|
|
34
|
+
...rest
|
|
35
|
+
})) : null;
|
|
66
36
|
};
|
|
67
37
|
export {
|
|
68
38
|
RenderWithStateAddOns
|
package/dist/esm/utils/types.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
package/dist/esm/utils/url.js
CHANGED
package/dist/esm/utils/window.js
CHANGED
|
@@ -1,19 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
3
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
4
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
-
var __spreadValues = (a, b) => {
|
|
7
|
-
for (var prop in b || (b = {}))
|
|
8
|
-
if (__hasOwnProp.call(b, prop))
|
|
9
|
-
__defNormalProp(a, prop, b[prop]);
|
|
10
|
-
if (__getOwnPropSymbols)
|
|
11
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
12
|
-
if (__propIsEnum.call(b, prop))
|
|
13
|
-
__defNormalProp(a, prop, b[prop]);
|
|
14
|
-
}
|
|
15
|
-
return a;
|
|
16
|
-
};
|
|
1
|
+
"use strict";
|
|
17
2
|
import * as React from "react";
|
|
18
3
|
import { Provider } from "react-redux";
|
|
19
4
|
import { ThemeProvider } from "styled-components";
|
|
@@ -25,11 +10,16 @@ import { StandAloneApp } from "./stand-alone-app.js";
|
|
|
25
10
|
import { HostedApp } from "./hosted-app.js";
|
|
26
11
|
const AppToRender = (props) => {
|
|
27
12
|
const isParent = isStandAloneGuest() || isHost();
|
|
28
|
-
return isParent ? /* @__PURE__ */ React.createElement(StandAloneApp,
|
|
13
|
+
return isParent ? /* @__PURE__ */ React.createElement(StandAloneApp, {
|
|
14
|
+
...props
|
|
15
|
+
}) : /* @__PURE__ */ React.createElement(HostedApp, {
|
|
16
|
+
...props
|
|
17
|
+
});
|
|
29
18
|
};
|
|
30
19
|
const AppRoot = ({
|
|
31
20
|
store,
|
|
32
21
|
history,
|
|
22
|
+
basename,
|
|
33
23
|
theme = getDefaultTheme(),
|
|
34
24
|
manageSession = false,
|
|
35
25
|
WaitMessage,
|
|
@@ -40,7 +30,8 @@ const AppRoot = ({
|
|
|
40
30
|
}, /* @__PURE__ */ React.createElement(Provider, {
|
|
41
31
|
store
|
|
42
32
|
}, /* @__PURE__ */ React.createElement(AppRouter, {
|
|
43
|
-
history
|
|
33
|
+
history,
|
|
34
|
+
basename
|
|
44
35
|
}, /* @__PURE__ */ React.createElement(ThemeProvider, {
|
|
45
36
|
theme
|
|
46
37
|
}, /* @__PURE__ */ React.createElement(AppToRender, {
|
|
@@ -1,39 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
var __defProps = Object.defineProperties;
|
|
3
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
-
var __spreadValues = (a, b) => {
|
|
9
|
-
for (var prop in b || (b = {}))
|
|
10
|
-
if (__hasOwnProp.call(b, prop))
|
|
11
|
-
__defNormalProp(a, prop, b[prop]);
|
|
12
|
-
if (__getOwnPropSymbols)
|
|
13
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
-
if (__propIsEnum.call(b, prop))
|
|
15
|
-
__defNormalProp(a, prop, b[prop]);
|
|
16
|
-
}
|
|
17
|
-
return a;
|
|
18
|
-
};
|
|
19
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
var __objRest = (source, exclude) => {
|
|
21
|
-
var target = {};
|
|
22
|
-
for (var prop in source)
|
|
23
|
-
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
24
|
-
target[prop] = source[prop];
|
|
25
|
-
if (source != null && __getOwnPropSymbols)
|
|
26
|
-
for (var prop of __getOwnPropSymbols(source)) {
|
|
27
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
28
|
-
target[prop] = source[prop];
|
|
29
|
-
}
|
|
30
|
-
return target;
|
|
31
|
-
};
|
|
1
|
+
"use strict";
|
|
32
2
|
import * as React from "react";
|
|
33
3
|
import { useState, useLayoutEffect } from "react";
|
|
34
4
|
import { Router } from "react-router-dom";
|
|
35
|
-
const AppRouter = (
|
|
36
|
-
var _b = _a, { history } = _b, props = __objRest(_b, ["history"]);
|
|
5
|
+
const AppRouter = ({ history, basename, ...props }) => {
|
|
37
6
|
const [state, setState] = useState({
|
|
38
7
|
action: history.action,
|
|
39
8
|
location: history.location
|
|
@@ -53,11 +22,13 @@ const AppRouter = (_a) => {
|
|
|
53
22
|
unlisten();
|
|
54
23
|
};
|
|
55
24
|
}, [history]);
|
|
56
|
-
return /* @__PURE__ */ React.createElement(Router,
|
|
25
|
+
return /* @__PURE__ */ React.createElement(Router, {
|
|
26
|
+
...props,
|
|
27
|
+
basename,
|
|
57
28
|
location: state.location,
|
|
58
29
|
navigationType: state.action,
|
|
59
30
|
navigator: history
|
|
60
|
-
})
|
|
31
|
+
});
|
|
61
32
|
};
|
|
62
33
|
export {
|
|
63
34
|
AppRouter
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
import * as React from "react";
|
|
2
3
|
const DefaultErrorTemplate = (props) => /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement("h2", null, "We are unable to process your request"), /* @__PURE__ */ React.createElement("section", null, "Please close your browser and login again"));
|
|
3
4
|
export {
|
|
@@ -1,22 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
var __defProps = Object.defineProperties;
|
|
3
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
-
var __spreadValues = (a, b) => {
|
|
9
|
-
for (var prop in b || (b = {}))
|
|
10
|
-
if (__hasOwnProp.call(b, prop))
|
|
11
|
-
__defNormalProp(a, prop, b[prop]);
|
|
12
|
-
if (__getOwnPropSymbols)
|
|
13
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
-
if (__propIsEnum.call(b, prop))
|
|
15
|
-
__defNormalProp(a, prop, b[prop]);
|
|
16
|
-
}
|
|
17
|
-
return a;
|
|
18
|
-
};
|
|
19
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
1
|
+
"use strict";
|
|
20
2
|
import React from "react";
|
|
21
3
|
import {
|
|
22
4
|
DefaultErrorTemplate
|
|
@@ -35,9 +17,10 @@ class ErrorBoundary extends React.Component {
|
|
|
35
17
|
});
|
|
36
18
|
const logger = getLogger();
|
|
37
19
|
if (logger)
|
|
38
|
-
logger.error(
|
|
20
|
+
logger.error({
|
|
21
|
+
...logRecords.UNHANDLED_ERROR,
|
|
39
22
|
exception: error
|
|
40
|
-
})
|
|
23
|
+
});
|
|
41
24
|
}
|
|
42
25
|
render() {
|
|
43
26
|
const { children, errorTemplate } = this.props;
|
|
@@ -1,19 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
3
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
4
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
-
var __spreadValues = (a, b) => {
|
|
7
|
-
for (var prop in b || (b = {}))
|
|
8
|
-
if (__hasOwnProp.call(b, prop))
|
|
9
|
-
__defNormalProp(a, prop, b[prop]);
|
|
10
|
-
if (__getOwnPropSymbols)
|
|
11
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
12
|
-
if (__propIsEnum.call(b, prop))
|
|
13
|
-
__defNormalProp(a, prop, b[prop]);
|
|
14
|
-
}
|
|
15
|
-
return a;
|
|
16
|
-
};
|
|
1
|
+
"use strict";
|
|
17
2
|
import * as React from "react";
|
|
18
3
|
import { useEffect, memo } from "react";
|
|
19
4
|
import { ToastPosition, ToastType, DSToast, toast } from "@elliemae/ds-toast";
|
|
@@ -24,18 +9,22 @@ const ErrorToast = memo((props) => {
|
|
|
24
9
|
const dispatch = useAppDispatch();
|
|
25
10
|
useEffect(() => {
|
|
26
11
|
if (storeError && (storeError?.description || storeError?.messageText)) {
|
|
27
|
-
const toastProps =
|
|
12
|
+
const toastProps = {
|
|
28
13
|
position: ToastPosition.TOP_RIGHT,
|
|
29
14
|
messageTitle: "Error",
|
|
30
|
-
type: ToastType.ERROR
|
|
31
|
-
|
|
15
|
+
type: ToastType.ERROR,
|
|
16
|
+
...props,
|
|
17
|
+
...storeError
|
|
18
|
+
};
|
|
32
19
|
const messageText = toastProps.description || toastProps.messageText;
|
|
33
20
|
if (messageText)
|
|
34
|
-
toast(
|
|
21
|
+
toast({ messageText, ...toastProps });
|
|
35
22
|
dispatch(error.clear());
|
|
36
23
|
}
|
|
37
24
|
}, [storeError, props, dispatch]);
|
|
38
|
-
return /* @__PURE__ */ React.createElement(DSToast,
|
|
25
|
+
return /* @__PURE__ */ React.createElement(DSToast, {
|
|
26
|
+
...props
|
|
27
|
+
});
|
|
39
28
|
});
|
|
40
29
|
export {
|
|
41
30
|
ErrorToast
|
|
@@ -1,23 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
3
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
4
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
-
var __spreadValues = (a, b) => {
|
|
7
|
-
for (var prop in b || (b = {}))
|
|
8
|
-
if (__hasOwnProp.call(b, prop))
|
|
9
|
-
__defNormalProp(a, prop, b[prop]);
|
|
10
|
-
if (__getOwnPropSymbols)
|
|
11
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
12
|
-
if (__propIsEnum.call(b, prop))
|
|
13
|
-
__defNormalProp(a, prop, b[prop]);
|
|
14
|
-
}
|
|
15
|
-
return a;
|
|
16
|
-
};
|
|
1
|
+
"use strict";
|
|
17
2
|
import { get } from "lodash";
|
|
18
3
|
let hostAppData = {};
|
|
19
4
|
const setHostAppData = (appData) => {
|
|
20
|
-
hostAppData =
|
|
5
|
+
hostAppData = { ...hostAppData, ...appData };
|
|
21
6
|
};
|
|
22
7
|
const getHostAppDataByKey = (key = "", defaultValue = null) => get(hostAppData, key, defaultValue);
|
|
23
8
|
const isHostAppDataExist = () => hostAppData && Object.keys(hostAppData).length > 0;
|