@elliemae/pui-app-sdk 3.8.0 → 4.0.0-alpha.3

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 (79) hide show
  1. package/dist/cjs/app.config.json +42 -25
  2. package/dist/cjs/utils/app-config/config.js +2 -1
  3. package/dist/cjs/utils/app-config/index.js +3 -2
  4. package/dist/cjs/utils/micro-frontend/guest.js +1 -5
  5. package/dist/cjs/utils/micro-frontend/host.js +1 -1
  6. package/dist/cjs/utils/storybook/cjs/webpack.js +1 -4
  7. package/dist/cjs/utils/storybook/preview.js +1 -1
  8. package/dist/cjs/utils/testing/index.js +1 -1
  9. package/dist/cjs/utils/testing/render-with-redux.js +1 -1
  10. package/dist/cjs/utils/testing/render-with-router-redux.js +1 -1
  11. package/dist/cjs/utils/testing/render-with-router.js +1 -1
  12. package/dist/cjs/utils/testing/render-with-state-addons.js +1 -1
  13. package/dist/cjs/utils/window.js +2 -0
  14. package/dist/cjs/view/app-root/hosted-app.js +1 -1
  15. package/dist/cjs/view/app-root/index.js +4 -3
  16. package/dist/cjs/view/app-root/stand-alone-app.js +1 -1
  17. package/dist/cjs/view/app-router.js +1 -1
  18. package/dist/cjs/view/error-boundary/default-error-template.js +5 -2
  19. package/dist/cjs/view/error-toast/index.js +1 -1
  20. package/dist/cjs/view/fields/check-box/index.js +1 -1
  21. package/dist/cjs/view/fields/combo-box/index.js +1 -1
  22. package/dist/cjs/view/fields/date-input/index.js +1 -1
  23. package/dist/cjs/view/fields/date-picker/index.js +1 -1
  24. package/dist/cjs/view/fields/date-range-picker/index.js +1 -1
  25. package/dist/cjs/view/fields/date-time-picker/index.js +1 -1
  26. package/dist/cjs/view/fields/form-item-layout/index.js +1 -1
  27. package/dist/cjs/view/fields/form-layout-block-item/index.js +1 -1
  28. package/dist/cjs/view/fields/input-mask/index.js +1 -1
  29. package/dist/cjs/view/fields/input-text/index.js +1 -1
  30. package/dist/cjs/view/fields/large-text-box/index.js +1 -1
  31. package/dist/cjs/view/fields/radio/index.js +1 -1
  32. package/dist/cjs/view/fields/radio-group/index.js +1 -1
  33. package/dist/cjs/view/fields/text-box/index.js +1 -1
  34. package/dist/cjs/view/fields/toggle/index.js +1 -1
  35. package/dist/cjs/view/fields/watch-value.js +1 -1
  36. package/dist/cjs/view/form/index.js +1 -1
  37. package/dist/cjs/view/form/personal-info-section.js +1 -1
  38. package/dist/cjs/view/form/submit-button/index.js +1 -1
  39. package/dist/cjs/view/live-message/index.js +1 -1
  40. package/dist/cjs/view/loadable/index.js +1 -1
  41. package/dist/cjs/view/micro-app/index.js +1 -1
  42. package/dist/cjs/view/micro-app/resources/script.js +19 -15
  43. package/dist/cjs/view/micro-app/resources/style.js +15 -11
  44. package/dist/cjs/view/micro-iframe-app/app.js +2 -2
  45. package/dist/cjs/view/micro-iframe-app/iframe/index.js +1 -1
  46. package/dist/cjs/view/micro-iframe-app/index.js +1 -1
  47. package/dist/cjs/view/modals/error/index.js +1 -1
  48. package/dist/cjs/view/modals/navigation-prompt/index.js +1 -1
  49. package/dist/cjs/view/modals/session-expiry/index.js +1 -1
  50. package/dist/cjs/view/modals/wait-message/index.js +1 -1
  51. package/dist/cjs/view/page.js +1 -1
  52. package/dist/cjs/view/render-with-delay/index.js +1 -1
  53. package/dist/cjs/view/render-with-host-data/index.js +1 -1
  54. package/dist/cjs/view/require-auth.js +1 -1
  55. package/dist/cjs/view/session-timeout/index.js +1 -1
  56. package/dist/cjs/view/storybook/decorator.js +1 -1
  57. package/dist/cjs/view/visually-hidden/index.js +1 -1
  58. package/dist/esm/app.config.json +42 -25
  59. package/dist/esm/utils/app-config/config.js +2 -1
  60. package/dist/esm/utils/app-config/index.js +3 -2
  61. package/dist/esm/utils/micro-frontend/guest.js +1 -5
  62. package/dist/esm/utils/micro-frontend/host.js +1 -1
  63. package/dist/esm/utils/storybook/preview.js +1 -1
  64. package/dist/esm/utils/window.js +2 -0
  65. package/dist/esm/view/app-root/index.js +3 -2
  66. package/dist/esm/view/error-boundary/default-error-template.js +4 -1
  67. package/dist/esm/view/micro-app/resources/script.js +19 -15
  68. package/dist/esm/view/micro-app/resources/style.js +15 -11
  69. package/dist/esm/view/micro-iframe-app/app.js +1 -1
  70. package/dist/types/index.d.ts +1 -1
  71. package/dist/types/utils/app-config/config.d.ts +5 -7
  72. package/dist/types/utils/app-config/index.d.ts +1 -1
  73. package/dist/types/utils/window.d.ts +3 -0
  74. package/dist/types/view/error-boundary/default-error-template.d.ts +1 -1
  75. package/dist/types/view/error-boundary/index.d.ts +2 -1
  76. package/dist/types/view/fields/form-item-layout/index.d.ts +1 -1
  77. package/dist/types/view/micro-app/resources/script.d.ts +1 -1
  78. package/dist/types/view/micro-app/resources/style.d.ts +2 -2
  79. package/package.json +11 -10
@@ -1,6 +1,6 @@
1
1
  interface ServiceEndpoints {
2
- api: string;
3
- idp: string;
2
+ api?: string;
3
+ idp?: string;
4
4
  logger: string;
5
5
  }
6
6
  interface Env {
@@ -8,13 +8,11 @@ interface Env {
8
8
  }
9
9
  export interface AppConfig {
10
10
  appId: string;
11
- brand: string;
11
+ brand?: string;
12
12
  activeEnv: string;
13
- hosted: boolean;
14
- sessionTimeoutWarnInterval: string;
15
- sessionTimeoutInterval: string;
13
+ sessionTimeoutWarnInterval?: string;
14
+ sessionTimeoutInterval?: string;
16
15
  serviceEndpoints: ServiceEndpoints;
17
- walkMeUrl: string;
18
16
  env: {
19
17
  [key: string]: Env;
20
18
  };
@@ -1 +1 @@
1
- export declare const loadAppConfig: (hostUrl?: string) => Promise<void>;
1
+ export declare const loadAppConfig: (assetPath?: string) => Promise<void>;
@@ -4,6 +4,8 @@ import { Logger } from '@elliemae/pui-diagnostics';
4
4
  export declare type EMUI = {
5
5
  [key: string]: IMicroAppGuest;
6
6
  } & {
7
+ _BASE_PATH: string;
8
+ _ASSET_PATH: string;
7
9
  version: string;
8
10
  MicroAppHost?: IMicroAppHost;
9
11
  logger?: Logger;
@@ -21,3 +23,4 @@ export declare const getViewportSize: () => {
21
23
  height: number;
22
24
  };
23
25
  export declare const getCurrentBreakpoint: () => BreakPoint;
26
+ export declare const getAssetPath: () => string;
@@ -5,4 +5,4 @@ export interface ErrorTemplateProps {
5
5
  componentStack: string;
6
6
  } | null;
7
7
  }
8
- export declare const DefaultErrorTemplate: (props: ErrorTemplateProps) => JSX.Element;
8
+ export declare const DefaultErrorTemplate: ({ error, errorInfo, }: ErrorTemplateProps) => JSX.Element;
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  interface ErrorBoundaryProps {
3
+ children?: React.ReactNode;
3
4
  errorTemplate?: React.ComponentType;
4
5
  }
5
6
  export declare class ErrorBoundary extends React.Component<ErrorBoundaryProps> {
@@ -7,6 +8,6 @@ export declare class ErrorBoundary extends React.Component<ErrorBoundaryProps> {
7
8
  componentDidCatch(error: Error, errorInfo: {
8
9
  componentStack: string;
9
10
  }): void;
10
- render(): React.ReactNode;
11
+ render(): string | number | boolean | React.ReactFragment | JSX.Element | null | undefined;
11
12
  }
12
13
  export {};
@@ -2,7 +2,7 @@
2
2
  export declare type FormItemLayoutProps = {
3
3
  name: string;
4
4
  floatingLabel?: boolean;
5
- inputComponent: React.ReactNode;
5
+ inputComponent: React.ComponentType<any>;
6
6
  labelText?: string;
7
7
  [x: string]: any;
8
8
  };
@@ -1,6 +1,6 @@
1
1
  import { MicroAppConfig } from '../../../utils/micro-frontend/types.js';
2
2
  export declare const APP_SCRIPT_ID_PREFIX = "emui-script-";
3
- export declare const addScriptToDOM: ({ name, hostUrl, documentEle }: MicroAppConfig, fileName: string, index: number) => Promise<string>;
3
+ export declare const addScriptToDOM: ({ name, hostUrl, documentEle, manifestPath }: MicroAppConfig, fileName: string, index: number) => Promise<string>;
4
4
  export declare const removeScriptFromDOM: (elementId?: string, documentEle?: Document) => Promise<void>;
5
5
  export declare const removeDynamicImportedScripts: (hostUrl: string, documentEle: HTMLDocument) => void;
6
6
  export declare const removePrefetchLinks: (hostUrl: string, documentEle: HTMLDocument) => void;
@@ -1,5 +1,5 @@
1
1
  import { MicroAppConfig } from '../../../utils/micro-frontend/types.js';
2
2
  export declare const APP_STYLE_ID_PREFIX = "emui-style-";
3
- export declare const addStylesToDOM: ({ name, hostUrl, documentEle }: MicroAppConfig, fileName: string, index: number) => Promise<string>;
3
+ export declare const addStylesToDOM: ({ name, hostUrl, documentEle, manifestPath }: MicroAppConfig, fileName: string, index: number) => Promise<string>;
4
4
  export declare const removeStyleFromDOM: (elementId?: string, documentEle?: Document) => Promise<void>;
5
- export declare const removeDynamicImportedStyles: (hostUrl: string, documentEle: HTMLDocument) => void;
5
+ export declare const removeDynamicImportedStyles: (hostUrl: string, documentEle: Document) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/pui-app-sdk",
3
- "version": "3.8.0",
3
+ "version": "4.0.0-alpha.3",
4
4
  "description": "ICE MT UI Platform Application SDK ",
5
5
  "sideEffects": [
6
6
  "*.css",
@@ -93,6 +93,7 @@
93
93
  "test:fix": "pui-cli test -f",
94
94
  "test:watch": "pui-cli test -w",
95
95
  "test:staged": "jest --coverage --passWithNoTests --bail --findRelatedTests",
96
+ "tscheck": "pui-cli tscheck --files",
96
97
  "upgrade": "ncu -u && npm run setup",
97
98
  "prepare": "[ -n \"$CI\" ] || husky install"
98
99
  },
@@ -103,7 +104,7 @@
103
104
  "indent": 4
104
105
  },
105
106
  "peerDependencies": {
106
- "@elliemae/app-react-dependencies": "^3.6.0",
107
+ "@elliemae/app-react-dependencies": "^4.0.0-beta.1",
107
108
  "@elliemae/ds-basic": "^3.0.3",
108
109
  "@elliemae/ds-button": "^3.0.3",
109
110
  "@elliemae/ds-controlled-form": "^3.0.3",
@@ -118,13 +119,13 @@
118
119
  "@elliemae/ds-popperjs": "^3.0.3",
119
120
  "@elliemae/ds-toast": "^3.0.3",
120
121
  "@elliemae/em-ssf-guest": "^1.11.1",
121
- "@elliemae/pui-diagnostics": "^2.7.3",
122
+ "@elliemae/pui-diagnostics": "^2.7.4",
122
123
  "@elliemae/pui-micro-frontend-base": "^1.11.2",
123
124
  "@elliemae/pui-theme": "^2.5.0",
124
- "@elliemae/pui-user-monitoring": "^1.15.0"
125
+ "@elliemae/pui-user-monitoring": "^1.15.1"
125
126
  },
126
127
  "devDependencies": {
127
- "@elliemae/app-react-dependencies": "~3.6.0",
128
+ "@elliemae/app-react-dependencies": "4.0.0-beta.1",
128
129
  "@elliemae/browserslist-config-elliemae-latest-browsers": "~1.4.2",
129
130
  "@elliemae/ds-basic": "~3.0.3",
130
131
  "@elliemae/ds-button": "~3.0.3",
@@ -140,11 +141,11 @@
140
141
  "@elliemae/ds-popperjs": "~3.0.3",
141
142
  "@elliemae/ds-toast": "~3.0.3",
142
143
  "@elliemae/em-ssf-guest": "~1.11.1",
143
- "@elliemae/pui-cli": "~6.15.2",
144
- "@elliemae/pui-diagnostics": "~2.7.3",
145
- "@elliemae/pui-e2e-test-sdk": "~7.3.3",
144
+ "@elliemae/pui-cli": "7.0.0-alpha.11",
145
+ "@elliemae/pui-diagnostics": "~2.7.4",
146
+ "@elliemae/pui-e2e-test-sdk": "~7.3.4",
146
147
  "@elliemae/pui-micro-frontend-base": "~1.11.2",
147
- "@elliemae/pui-theme": "2.5.0",
148
- "@elliemae/pui-user-monitoring": "~1.15.0"
148
+ "@elliemae/pui-theme": "~2.5.0",
149
+ "@elliemae/pui-user-monitoring": "~1.15.1"
149
150
  }
150
151
  }