@elliemae/pui-app-sdk 4.8.0 → 4.10.0-beta.1

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 (76) hide show
  1. package/dist/cjs/analytics/appdynamics.js +4 -0
  2. package/dist/cjs/communication/http-client/index.js +5 -0
  3. package/dist/cjs/communication/http-client/response-interceptor.js +4 -0
  4. package/dist/cjs/communication/http-client/retry-axios.js +11 -0
  5. package/dist/cjs/communication/http-client/retry.js +12 -0
  6. package/dist/cjs/data/auth/reducer.js +4 -0
  7. package/dist/cjs/data/breakpoint/index.js +4 -0
  8. package/dist/cjs/data/middleware.js +69 -0
  9. package/dist/cjs/data/redux-injectors.js +37 -0
  10. package/dist/cjs/data/store.js +11 -1
  11. package/dist/cjs/data/wait-message/reducer.js +4 -0
  12. package/dist/cjs/index.js +5 -1
  13. package/dist/cjs/utils/app-config/config.js +4 -0
  14. package/dist/cjs/utils/app-config/index.js +4 -0
  15. package/dist/cjs/utils/auth/helper.js +4 -0
  16. package/dist/cjs/utils/auth/index.js +1 -0
  17. package/dist/cjs/utils/constants.js +2 -0
  18. package/dist/cjs/utils/micro-frontend/guest.js +4 -0
  19. package/dist/cjs/utils/micro-frontend/host.js +2 -0
  20. package/dist/cjs/utils/micro-frontend/index.js +4 -0
  21. package/dist/cjs/utils/micro-frontend/ssfguest-adapter.js +4 -0
  22. package/dist/cjs/utils/redact-pii.js +3 -0
  23. package/dist/cjs/utils/storybook/cjs/main.js +1 -0
  24. package/dist/cjs/utils/storybook/preview.js +1 -0
  25. package/dist/cjs/utils/storybook/theme.js +8 -5
  26. package/dist/cjs/utils/testing/render-with-redux.js +3 -0
  27. package/dist/cjs/utils/testing/render-with-router-redux.js +3 -0
  28. package/dist/cjs/utils/testing/render-with-router.js +3 -0
  29. package/dist/cjs/utils/web-storage.js +4 -0
  30. package/dist/cjs/view/app-root/hosted-app.js +4 -0
  31. package/dist/cjs/view/app-root/stand-alone-app.js +4 -0
  32. package/dist/cjs/view/error-boundary/index.js +4 -0
  33. package/dist/cjs/view/fetch-host-app-data/index.js +4 -0
  34. package/dist/cjs/view/fields/check-box/index.js +8 -9
  35. package/dist/cjs/view/fields/date-picker/index.js +4 -0
  36. package/dist/cjs/view/fields/watch-value.js +4 -0
  37. package/dist/cjs/view/form/index.js +6 -0
  38. package/dist/cjs/view/form/personal-info-section.js +4 -0
  39. package/dist/cjs/view/micro-app/app-factory/index.js +8 -5
  40. package/dist/cjs/view/micro-app/index.js +4 -0
  41. package/dist/cjs/view/micro-app/use-app-will-render.js +1 -0
  42. package/dist/cjs/view/micro-iframe-app/app.js +4 -0
  43. package/dist/cjs/view/micro-iframe-app/iframe/index.js +4 -0
  44. package/dist/cjs/view/page.js +4 -0
  45. package/dist/cjs/view/require-auth.js +4 -0
  46. package/dist/cjs/view/visually-hidden/index.js +6 -0
  47. package/dist/esm/communication/http-client/index.js +1 -0
  48. package/dist/esm/communication/http-client/retry-axios.js +7 -0
  49. package/dist/esm/communication/http-client/retry.js +12 -0
  50. package/dist/esm/data/middleware.js +49 -0
  51. package/dist/esm/data/redux-injectors.js +17 -0
  52. package/dist/esm/data/store.js +8 -4
  53. package/dist/esm/index.js +1 -1
  54. package/dist/esm/utils/auth/index.js +1 -0
  55. package/dist/esm/utils/constants.js +2 -0
  56. package/dist/esm/utils/micro-frontend/host.js +2 -0
  57. package/dist/esm/utils/redact-pii.js +3 -0
  58. package/dist/esm/utils/storybook/preview.js +1 -0
  59. package/dist/esm/utils/storybook/theme.js +8 -5
  60. package/dist/esm/utils/testing/render-with-redux.js +3 -0
  61. package/dist/esm/utils/testing/render-with-router-redux.js +3 -0
  62. package/dist/esm/utils/testing/render-with-router.js +3 -0
  63. package/dist/esm/view/fields/check-box/index.js +8 -9
  64. package/dist/esm/view/form/index.js +2 -0
  65. package/dist/esm/view/micro-app/app-factory/index.js +8 -5
  66. package/dist/esm/view/micro-app/use-app-will-render.js +1 -0
  67. package/dist/esm/view/visually-hidden/index.js +2 -0
  68. package/dist/types/lib/data/middleware.d.ts +16 -0
  69. package/dist/types/lib/data/redux-injectors.d.ts +7 -0
  70. package/dist/types/lib/data/saga.d.ts +1 -1
  71. package/dist/types/lib/data/store.d.ts +1 -1
  72. package/dist/types/lib/index.d.ts +1 -1
  73. package/dist/types/lib/utils/testing/render-with-redux.d.ts +1 -1
  74. package/dist/types/lib/utils/testing/render-with-router-redux.d.ts +1 -1
  75. package/dist/types/lib/view/fields/check-box/index.d.ts +2 -1
  76. package/package.json +30 -30
@@ -18,6 +18,10 @@ var __copyProps = (to, from, except, desc) => {
18
18
  return to;
19
19
  };
20
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.
21
25
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
26
  mod
23
27
  ));
@@ -18,6 +18,10 @@ var __copyProps = (to, from, except, desc) => {
18
18
  return to;
19
19
  };
20
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.
21
25
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
26
  mod
23
27
  ));
@@ -56,6 +60,7 @@ const getAuthHTTPClient = ({
56
60
  ...rest
57
61
  } = {}) => getHTTPClient({
58
62
  baseURL,
63
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
59
64
  headers: { ...headers, Authorization: (0, import_helper.getAuthorizationHeader)() },
60
65
  ...rest
61
66
  });
@@ -18,6 +18,10 @@ var __copyProps = (to, from, except, desc) => {
18
18
  return to;
19
19
  };
20
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.
21
25
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
26
  mod
23
27
  ));
@@ -18,6 +18,10 @@ var __copyProps = (to, from, except, desc) => {
18
18
  return to;
19
19
  };
20
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.
21
25
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
26
  mod
23
27
  ));
@@ -84,6 +88,13 @@ const onError = (err) => {
84
88
  ];
85
89
  config.noResponseRetries = config.noResponseRetries === void 0 || config.noResponseRetries === null ? 2 : config.noResponseRetries;
86
90
  const retryRanges = [
91
+ // https://en.wikipedia.org/wiki/List_of_HTTP_status_codes
92
+ // 1xx - Retry (Informational, request still processing)
93
+ // 2xx - Do not retry (Success)
94
+ // 3xx - Do not retry (Redirect)
95
+ // 4xx - Do not retry (Client errors)
96
+ // 429 - Retry ("Too Many Requests")
97
+ // 5xx - Retry (Server errors)
87
98
  [100, 199],
88
99
  [429, 429],
89
100
  [500, 599]
@@ -24,16 +24,28 @@ __export(retry_exports, {
24
24
  module.exports = __toCommonJS(retry_exports);
25
25
  var import_retry_axios = require("./retry-axios.js");
26
26
  const getRaxConfig = (httpClient) => ({
27
+ // Retry 3 times on requests that return a response (500, etc) before giving up. Defaults to 3.
27
28
  retry: 3,
29
+ // Retry twice on errors that don't return a response (ENOTFOUND, ETIMEDOUT, etc).
28
30
  noResponseRetries: 2,
31
+ // Milliseconds to delay at first. Defaults to 100.
29
32
  retryDelay: 100,
33
+ // HTTP methods to automatically retry. Defaults to:
34
+ // ['GET', 'HEAD', 'OPTIONS', 'DELETE', 'PUT']
30
35
  httpMethodsToRetry: ["GET", "HEAD", "OPTIONS", "DELETE", "PUT"],
36
+ // The response status codes to retry. Supports a double
37
+ // array with a list of ranges. Defaults to:
38
+ // [[100, 199], [429, 429], [500, 599]]
31
39
  statusCodesToRetry: [
32
40
  [100, 199],
33
41
  [429, 429],
34
42
  [500, 599]
35
43
  ],
44
+ // If you are using a non static instance of Axios you need
45
+ // to pass that instance here (const ax = axios.create())
36
46
  instance: httpClient,
47
+ // You can detect when a retry is happening, and figure out how many
48
+ // retry attempts have been made
37
49
  onRetryAttempt: (err) => {
38
50
  const cfg = (0, import_retry_axios.getConfig)(err);
39
51
  if (cfg && cfg.currentRetryAttempt)
@@ -18,6 +18,10 @@ var __copyProps = (to, from, except, desc) => {
18
18
  return to;
19
19
  };
20
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.
21
25
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
26
  mod
23
27
  ));
@@ -18,6 +18,10 @@ var __copyProps = (to, from, except, desc) => {
18
18
  return to;
19
19
  };
20
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.
21
25
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
26
  mod
23
27
  ));
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var middleware_exports = {};
20
+ __export(middleware_exports, {
21
+ addMiddleware: () => addMiddleware,
22
+ createDynamicMiddlewares: () => createDynamicMiddlewares,
23
+ default: () => middleware_default,
24
+ removeMiddleware: () => removeMiddleware,
25
+ resetMiddlewares: () => resetMiddlewares
26
+ });
27
+ module.exports = __toCommonJS(middleware_exports);
28
+ var import_redux = require("redux");
29
+ const createDynamicMiddlewares = () => {
30
+ let allDynamicMiddlewares = [];
31
+ let allApplyedDynamicMiddlewares = [];
32
+ let store;
33
+ const enhancer = (_store) => {
34
+ store = _store;
35
+ return (next) => (action) => (0, import_redux.compose)(...allApplyedDynamicMiddlewares)(next)(action);
36
+ };
37
+ const addMiddleware2 = (...middlewares) => {
38
+ allApplyedDynamicMiddlewares.push(
39
+ ...middlewares.map((middleware) => middleware(store))
40
+ );
41
+ allDynamicMiddlewares.push(...middlewares);
42
+ };
43
+ const removeMiddleware2 = (middleware) => {
44
+ const index = allDynamicMiddlewares.findIndex((d) => d === middleware);
45
+ if (index === -1) {
46
+ console.error("Middleware does not exist!", middleware);
47
+ return;
48
+ }
49
+ allDynamicMiddlewares = allDynamicMiddlewares.filter(
50
+ (_, mdwIndex) => mdwIndex !== index
51
+ );
52
+ allApplyedDynamicMiddlewares = allApplyedDynamicMiddlewares.filter(
53
+ (_, mdwIndex) => mdwIndex !== index
54
+ );
55
+ };
56
+ const resetMiddlewares2 = () => {
57
+ allApplyedDynamicMiddlewares = [];
58
+ allDynamicMiddlewares = [];
59
+ };
60
+ return {
61
+ enhancer,
62
+ addMiddleware: addMiddleware2,
63
+ removeMiddleware: removeMiddleware2,
64
+ resetMiddlewares: resetMiddlewares2
65
+ };
66
+ };
67
+ const dynamicMiddlewaresInstance = createDynamicMiddlewares();
68
+ var middleware_default = dynamicMiddlewaresInstance.enhancer;
69
+ const { addMiddleware, removeMiddleware, resetMiddlewares } = dynamicMiddlewaresInstance;
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var redux_injectors_exports = {};
20
+ __export(redux_injectors_exports, {
21
+ createManager: () => import_redux_injectors2.createManager,
22
+ useInjectReducer: () => useInjectReducer,
23
+ useInjectSaga: () => import_redux_injectors2.useInjectSaga
24
+ });
25
+ module.exports = __toCommonJS(redux_injectors_exports);
26
+ var import_redux_injectors = require("redux-injectors");
27
+ var import_middleware = require("./middleware.js");
28
+ var import_redux_injectors2 = require("redux-injectors");
29
+ const useInjectReducer = ({
30
+ key,
31
+ reducer,
32
+ middleware
33
+ }) => {
34
+ (0, import_redux_injectors.useInjectReducer)({ key, reducer });
35
+ if (middleware)
36
+ (0, import_middleware.addMiddleware)(middleware);
37
+ };
@@ -18,6 +18,10 @@ var __copyProps = (to, from, except, desc) => {
18
18
  return to;
19
19
  };
20
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.
21
25
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
26
  mod
23
27
  ));
@@ -30,10 +34,12 @@ __export(store_exports, {
30
34
  });
31
35
  module.exports = __toCommonJS(store_exports);
32
36
  var import_toolkit = require("@reduxjs/toolkit");
37
+ var import_react = require("@reduxjs/toolkit/query/react");
33
38
  var import_redux_injectors = require("redux-injectors");
34
39
  var import_redux_saga = __toESM(require("redux-saga"));
35
40
  var import_reducers = require("./reducers.js");
36
41
  var import_webpack_hmr = require("./webpack-hmr.js");
42
+ var import_middleware = __toESM(require("./middleware.js"));
37
43
  const rootReducer = (0, import_reducers.createReducer)();
38
44
  let appStore = null;
39
45
  const setStore = (store) => {
@@ -50,11 +56,15 @@ const createStore = (initialState, sagaMiddleware, history, middlewareConfig = {
50
56
  ];
51
57
  const baseStore = (0, import_toolkit.configureStore)({
52
58
  reducer: rootReducer,
53
- middleware: (getDefaultMiddleware) => getDefaultMiddleware(middlewareConfig).concat(sagaMiddleware),
59
+ middleware: (getDefaultMiddleware) => getDefaultMiddleware(middlewareConfig).concat([
60
+ sagaMiddleware,
61
+ import_middleware.default
62
+ ]),
54
63
  devTools: true,
55
64
  preloadedState: initialState,
56
65
  enhancers
57
66
  });
67
+ (0, import_react.setupListeners)(baseStore.dispatch);
58
68
  (0, import_webpack_hmr.enableHotReloading)(baseStore);
59
69
  return baseStore;
60
70
  };
@@ -18,6 +18,10 @@ var __copyProps = (to, from, except, desc) => {
18
18
  return to;
19
19
  };
20
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.
21
25
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
26
  mod
23
27
  ));
package/dist/cjs/index.js CHANGED
@@ -19,6 +19,10 @@ var __copyProps = (to, from, except, desc) => {
19
19
  };
20
20
  var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
21
21
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
22
+ // If the importer is in node compatibility mode or this is not an ESM
23
+ // file that has been converted to a CommonJS file using a Babel-
24
+ // compatible transform (i.e. "__esModule" has not been set), then set
25
+ // "default" to the CommonJS "module.exports" for node compatibility.
22
26
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
23
27
  mod
24
28
  ));
@@ -132,7 +136,7 @@ var import_require_auth = require("./view/require-auth.js");
132
136
  var import_page = require("./view/page.js");
133
137
  var import_constants = __toESM(require("./utils/constants.js"));
134
138
  var import_react_redux = require("./data/react-redux.js");
135
- var import_redux_injectors = require("redux-injectors");
139
+ var import_redux_injectors = require("./data/redux-injectors.js");
136
140
  var import_helper = require("./utils/auth/helper.js");
137
141
  var import_url = require("./utils/url.js");
138
142
  var import_store = require("./data/store.js");
@@ -18,6 +18,10 @@ var __copyProps = (to, from, except, desc) => {
18
18
  return to;
19
19
  };
20
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.
21
25
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
26
  mod
23
27
  ));
@@ -18,6 +18,10 @@ var __copyProps = (to, from, except, desc) => {
18
18
  return to;
19
19
  };
20
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.
21
25
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
26
  mod
23
27
  ));
@@ -18,6 +18,10 @@ var __copyProps = (to, from, except, desc) => {
18
18
  return to;
19
19
  };
20
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.
21
25
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
26
  mod
23
27
  ));
@@ -49,6 +49,7 @@ const navigateToLoginPage = ({
49
49
  redirectUri,
50
50
  idpErrorCode,
51
51
  scope,
52
+ // eslint-disable-next-line camelcase
52
53
  responseType
53
54
  }) => {
54
55
  const idpHost = (0, import_config.getAppConfigValue)(IDP_ENDPOINT_CONFIG_KEY, "");
@@ -31,7 +31,9 @@ var constants_default = {
31
31
  };
32
32
  const SESSION_TIMEOUT_INTERVAL = {
33
33
  WARN: 12 * 60 * 1e3,
34
+ // 12 mins
34
35
  EXPIRY: 15 * 60 * 1e3
36
+ // 15 mins
35
37
  };
36
38
  const Themes = {
37
39
  EM: "em",
@@ -18,6 +18,10 @@ var __copyProps = (to, from, except, desc) => {
18
18
  return to;
19
19
  };
20
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.
21
25
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
26
  mod
23
27
  ));
@@ -97,6 +97,7 @@ class CMicroAppHost {
97
97
  publish(message, data) {
98
98
  return (0, import_pubsub_js.publish)(message, data);
99
99
  }
100
+ // eslint-disable-next-line @typescript-eslint/ban-types
100
101
  subscribe(message, func) {
101
102
  return (0, import_pubsub_js.subscribe)(message, func);
102
103
  }
@@ -163,6 +164,7 @@ class CMicroAppHost {
163
164
  sendBAEvent(data) {
164
165
  (0, import_analytics.sendBAEvent)({ data, self: true });
165
166
  }
167
+ // eslint-disable-next-line @typescript-eslint/require-await
166
168
  async getObject(name) {
167
169
  return this.scriptingObjects[name];
168
170
  }
@@ -18,6 +18,10 @@ var __copyProps = (to, from, except, desc) => {
18
18
  return to;
19
19
  };
20
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.
21
25
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
26
  mod
23
27
  ));
@@ -18,6 +18,10 @@ var __copyProps = (to, from, except, desc) => {
18
18
  return to;
19
19
  };
20
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.
21
25
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
26
  mod
23
27
  ));
@@ -35,8 +35,11 @@ const piiPatterns = {
35
35
  ipAddress: /(\d{1,3}(\.\d{1,3}){3}|[0-9A-F]{4}(:[0-9A-F]{4}){5}(::|(:0000)+))/gi,
36
36
  usSocialSecurityNumber: /\b\d{3}[ -.]\d{2}[ -.]\d{4}\b/g,
37
37
  emailAddress: /([a-z0-9_\-.+]+)@\w+(\.\w+)*/gi,
38
+ // username: /(user( ?name)?|login): \S+/gi,
38
39
  password: /(pass(word|phrase)?|secret): \S+/gi,
39
40
  credentials: /(login( cred(ential)?s| info(rmation)?)?|cred(ential)?s) ?:\s*\S+\s+\/?\s*\S+/gi
41
+ // digits: /\b\d{4,}\b/g,
42
+ // url: /([^\s:/?#]+):\/\/([^/?#\s]*)([^?#\s]*)(\?([^#\s]*))?(#([^\s]*))?/g,
40
43
  };
41
44
  const replacer = (key, value) => {
42
45
  if (!key || typeof value !== "string" || key === "correlationId")
@@ -28,6 +28,7 @@ const baseConfig = {
28
28
  features: {
29
29
  fastRefresh: true,
30
30
  storyStoreV7: true
31
+ // babelModeV7: true,
31
32
  },
32
33
  reactOptions: {
33
34
  fastRefresh: true,
@@ -38,6 +38,7 @@ const getParameters = (storyBookTheme) => ({
38
38
  actions: { argTypesRegex: "^on.*" },
39
39
  controls: { hideNoControlsWarning: true },
40
40
  docs: {
41
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
41
42
  theme: (0, import_theme.createTheme)(storyBookTheme)
42
43
  },
43
44
  options: {
@@ -26,8 +26,11 @@ const createTheme = ({
26
26
  base = "light",
27
27
  brandTitle = "Platform UI Components",
28
28
  ...rest
29
- }) => (0, import_create.create)({
30
- base,
31
- brandTitle: `${brandTitle} ${process.env.STORYBOOK_VERSION || ""}`,
32
- ...rest
33
- });
29
+ }) => (
30
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-return, @typescript-eslint/no-unsafe-call
31
+ (0, import_create.create)({
32
+ base,
33
+ brandTitle: `${brandTitle} ${process.env.STORYBOOK_VERSION || ""}`,
34
+ ...rest
35
+ })
36
+ );
@@ -31,5 +31,8 @@ const renderWithRedux = (ui, {
31
31
  store = (0, import_store.createAppStore)(initialState, import_history.browserHistory)
32
32
  } = {}) => ({
33
33
  ...(0, import_react.render)(/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_redux.Provider, { store, children: ui })),
34
+ // adding `store` to the returned utilities to allow us
35
+ // to reference it in our tests (just try to avoid using
36
+ // this to test implementation details).
34
37
  store
35
38
  });
@@ -37,5 +37,8 @@ const renderWithRouterRedux = (ui, {
37
37
  ...(0, import_react.render)(
38
38
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_redux.Provider, { store, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_app_router.AppRouter, { history, children: ui }) })
39
39
  ),
40
+ // adding `store` to the returned utilities to allow us
41
+ // to reference it in our tests (just try to avoid using
42
+ // this to test implementation details).
40
43
  store
41
44
  });
@@ -32,6 +32,9 @@ const renderWithRouter = (ui, {
32
32
  const renderResult = (0, import_react.render)(/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_app_router.AppRouter, { history, children: ui }));
33
33
  return {
34
34
  ...renderResult,
35
+ // adding `history` to the returned utilities to allow us
36
+ // to reference it in our tests (just try to avoid using
37
+ // this to test implementation details).
35
38
  history
36
39
  };
37
40
  };
@@ -18,6 +18,10 @@ var __copyProps = (to, from, except, desc) => {
18
18
  return to;
19
19
  };
20
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.
21
25
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
26
  mod
23
27
  ));
@@ -18,6 +18,10 @@ var __copyProps = (to, from, except, desc) => {
18
18
  return to;
19
19
  };
20
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.
21
25
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
26
  mod
23
27
  ));
@@ -18,6 +18,10 @@ var __copyProps = (to, from, except, desc) => {
18
18
  return to;
19
19
  };
20
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.
21
25
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
26
  mod
23
27
  ));
@@ -18,6 +18,10 @@ var __copyProps = (to, from, except, desc) => {
18
18
  return to;
19
19
  };
20
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.
21
25
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
26
  mod
23
27
  ));
@@ -18,6 +18,10 @@ var __copyProps = (to, from, except, desc) => {
18
18
  return to;
19
19
  };
20
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.
21
25
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
26
  mod
23
27
  ));
@@ -24,18 +24,17 @@ module.exports = __toCommonJS(check_box_exports);
24
24
  var import_jsx_runtime = require("react/jsx-runtime");
25
25
  var import_ds_controlled_form = require("@elliemae/ds-controlled-form");
26
26
  var import_react_hook_form = require("react-hook-form");
27
- const CheckBox = ({ name, rules = {}, ...rest }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
27
+ const CheckBox = ({
28
+ name,
29
+ defaultValue,
30
+ rules = {},
31
+ ...rest
32
+ }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
28
33
  import_react_hook_form.Controller,
29
34
  {
30
35
  name,
31
36
  rules,
32
- render: ({ field: { value = false, ...restProps } }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
33
- import_ds_controlled_form.DSControlledCheckbox,
34
- {
35
- ...rest,
36
- ...restProps,
37
- checked: value
38
- }
39
- )
37
+ defaultValue,
38
+ render: ({ field: { value, ...restProps } }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_controlled_form.DSControlledCheckbox, { ...rest, ...restProps, checked: Boolean(value) })
40
39
  }
41
40
  );
@@ -18,6 +18,10 @@ var __copyProps = (to, from, except, desc) => {
18
18
  return to;
19
19
  };
20
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.
21
25
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
26
  mod
23
27
  ));
@@ -18,6 +18,10 @@ var __copyProps = (to, from, except, desc) => {
18
18
  return to;
19
19
  };
20
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.
21
25
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
26
  mod
23
27
  ));
@@ -18,6 +18,10 @@ var __copyProps = (to, from, except, desc) => {
18
18
  return to;
19
19
  };
20
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.
21
25
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
26
  mod
23
27
  ));
@@ -35,6 +39,7 @@ const StyledForm = import_styled_components.default.form`
35
39
  height: 100%;
36
40
  `;
37
41
  const Form = ({
42
+ /* eslint-disable indent */
38
43
  classname,
39
44
  reactHookFormProps = { mode: "onBlur" },
40
45
  children,
@@ -45,6 +50,7 @@ const Form = ({
45
50
  if (onSubmit)
46
51
  formProps.onSubmit = methods.handleSubmit(onSubmit);
47
52
  const providerProps = Object.assign(methods, {
53
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
48
54
  formProps: reactHookFormProps
49
55
  });
50
56
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_hook_form.FormProvider, { ...providerProps, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StyledForm, { className: classname, ...formProps, children }) });