@elliemae/pui-app-sdk 5.31.0-beta.3 → 5.31.0-beta.4

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/README.md CHANGED
@@ -8,7 +8,7 @@ Build: [![Build Status](https://jenkinsbuild.elliemae.cloud/job/UIPlatform/job/a
8
8
 
9
9
  [API Documentation](http://git.elliemae.io/pages/platform-ui/pui-app-sdk)
10
10
 
11
- [QA Environment](https://qa.appsdk.rd.elliemae.io)
11
+ [QA Environment](https://appsdk.pui.mortgagetech.d1.ice.com/)
12
12
 
13
13
  ## Major Version Changelog
14
14
 
@@ -250,20 +250,18 @@ class CMicroAppGuest {
250
250
  }
251
251
  async findHost() {
252
252
  let host = null;
253
- if (window.parent !== window) {
254
- if (!isCrossDomain()) {
255
- host = window.parent?.emui?.MicroAppHost ?? null;
256
- }
257
- if (!host) {
258
- host = new import_ssf_guest.SSFGuest({ appLogger: this.logger });
259
- if (await (0, import_helpers.abortPromise)({
260
- promise: host.connect(),
261
- delay: 1e3,
262
- retValue: false
263
- })) {
264
- host = null;
265
- } else this.#communicationMethod = "ssf" /* SSF */;
266
- }
253
+ if (!isCrossDomain()) {
254
+ host = window.parent?.emui?.MicroAppHost ?? null;
255
+ }
256
+ if (!host) {
257
+ host = new import_ssf_guest.SSFGuest({ appLogger: this.logger });
258
+ if (await (0, import_helpers.abortPromise)({
259
+ promise: host.connect(),
260
+ delay: 1e3,
261
+ retValue: false
262
+ })) {
263
+ host = null;
264
+ } else this.#communicationMethod = "ssf" /* SSF */;
267
265
  }
268
266
  return host;
269
267
  }
@@ -0,0 +1,242 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`CMicroAppGuest - Standalone calls onInit 1`] = `
4
+ {
5
+ "history": {
6
+ "action": "POP",
7
+ "back": [Function],
8
+ "block": [Function],
9
+ "createHref": [Function],
10
+ "forward": [Function],
11
+ "go": [Function],
12
+ "listen": [Function],
13
+ "location": {
14
+ "hash": "",
15
+ "key": "default",
16
+ "pathname": "/",
17
+ "search": "",
18
+ "state": null,
19
+ },
20
+ "push": [Function],
21
+ "replace": [Function],
22
+ },
23
+ "host": SSFGuest {
24
+ "addScript": [Function],
25
+ "close": [Function],
26
+ "connect": [Function],
27
+ "getAuthToken": [Function],
28
+ "getObject": [Function],
29
+ "listObjects": [Function],
30
+ "removeScript": [Function],
31
+ "setLogLevel": [Function],
32
+ "subscribe": [Function],
33
+ "unsubscribe": [Function],
34
+ },
35
+ "hostUrl": null,
36
+ "manifestPath": "./latest",
37
+ "prevState": null,
38
+ "theme": {
39
+ "breakpoints": {
40
+ "0": "512px",
41
+ "1": "768px",
42
+ "2": "1024px",
43
+ "3": "350px",
44
+ "large": "1024px",
45
+ "medium": "768px",
46
+ "small": "512px",
47
+ "xsmall": "350px",
48
+ },
49
+ "colors": {
50
+ "brand": {
51
+ "100": "#F6FBFF",
52
+ "200": "#EBF6FF",
53
+ "250": "#C9E7FF",
54
+ "300": "#A3D6FF",
55
+ "400": "#52A6EC",
56
+ "500": "#1394E5",
57
+ "600": "#1E79C2",
58
+ "700": "#006AA9",
59
+ "800": "#005181",
60
+ },
61
+ "danger": {
62
+ "200": "#FBEBED",
63
+ "400": "#FBEBED",
64
+ "600": "#ED5A64",
65
+ "900": "#C64252",
66
+ "950": "#A11B2B",
67
+ },
68
+ "neutral": {
69
+ "000": "#FFFFFF",
70
+ "050": "#F6F7F9",
71
+ "080": "#EBEDF0",
72
+ "100": "#E0E3E8",
73
+ "200": "#CBCFD7",
74
+ "300": "#B0B9C8",
75
+ "400": "#8C93A6",
76
+ "500": "#697489",
77
+ "600": "#464F5C",
78
+ "700": "#353C46",
79
+ "800": "#25292F",
80
+ },
81
+ "success": {
82
+ "300": "#E1F4ED",
83
+ "400": "#E1F4ED",
84
+ "600": "#289F6B",
85
+ "900": "#207E56",
86
+ "950": "#185D44",
87
+ },
88
+ "warning": {
89
+ "400": "#FFEFD8",
90
+ "500": "#E06C29",
91
+ "600": "#E06C29",
92
+ "900": "#B25119",
93
+ "950": "#853C12",
94
+ },
95
+ },
96
+ "fontSizes": {
97
+ "0": "0.8461rem",
98
+ "1": "0.9230rem",
99
+ "2": "1rem",
100
+ "3": "1.0769rem",
101
+ "4": "1.2307rem",
102
+ "5": "1.3846rem",
103
+ "6": "1.8461rem",
104
+ "7": "2.7692rem",
105
+ "hyperlink": {
106
+ "200": "0.8461rem",
107
+ "300": "0.9230rem",
108
+ "400": "1rem",
109
+ },
110
+ "label": {
111
+ "200": "0.8461rem",
112
+ "300": "0.9230rem",
113
+ "400": "1rem",
114
+ },
115
+ "microText": {
116
+ "200": "0.8461rem",
117
+ },
118
+ "subTitle": {
119
+ "300": "0.9230rem",
120
+ "400": "1rem",
121
+ },
122
+ "title": {
123
+ "500": "1.0769rem",
124
+ "600": "1.2307rem",
125
+ "700": "1.3846rem",
126
+ "800": "1.8461rem",
127
+ "900": "2.7692rem",
128
+ },
129
+ "value": {
130
+ "300": "0.9230rem",
131
+ "400": "1rem",
132
+ "500": "1.0769rem",
133
+ "600": "1.2307rem",
134
+ },
135
+ },
136
+ "fontWeights": {
137
+ "0": 100,
138
+ "1": 200,
139
+ "2": 300,
140
+ "3": 400,
141
+ "4": 500,
142
+ "5": 600,
143
+ "6": 700,
144
+ "7": 800,
145
+ "8": 900,
146
+ "bold": 900,
147
+ "light": 200,
148
+ "regular": 400,
149
+ "semibold": 600,
150
+ "thin": 100,
151
+ },
152
+ "fonts": {
153
+ "0": "proxima-nova, Arial, sans-serif",
154
+ "default": "proxima-nova, Arial, sans-serif",
155
+ },
156
+ "letterSpacings": {
157
+ "mega": "0.25rem",
158
+ "normal": "normal",
159
+ "tight": "-0.05rem",
160
+ "tracked": "0.1rem",
161
+ },
162
+ "lineHeights": {
163
+ "0": "1rem",
164
+ "1": "1.15rem",
165
+ "2": "1.25rem",
166
+ "3": "1.5rem",
167
+ "l": "1.25rem",
168
+ "m": "1.15rem",
169
+ "r": "1rem",
170
+ "xl": "1.5rem",
171
+ },
172
+ "media": {
173
+ "large": [Function],
174
+ "medium": [Function],
175
+ "small": [Function],
176
+ "xsmall": [Function],
177
+ },
178
+ "shadows": {
179
+ "l": "0 16px 28px 0 rgba(0, 0, 0, 0.24), 0 25px 55px 0 rgba(0, 0, 0, 0.19)",
180
+ "m": "0 12px 15px 0 rgba(0, 0, 0, 0.24), 0 17px 50px 0 rgba(0, 0, 0, 0.19)",
181
+ "s": "0 6px 20px 0 rgba(0, 0, 0, 0.24), 0 8px 17px 0 rgba(0, 0, 0, 0.19)",
182
+ "xl": "0 27px 24px 0 rgba(0, 0, 0, 0.24), 0 40px 77px 0 rgba(0, 0, 0, 0.19)",
183
+ "xs": "0 1px 5px 0 rgba(0, 0, 0, 0.13), 0 2px 4px 0 rgba(0, 0, 0, 0.2)",
184
+ },
185
+ "space": {
186
+ "0": "0",
187
+ "1": "4px",
188
+ "2": "8px",
189
+ "3": "12px",
190
+ "4": "16px",
191
+ "5": "32px",
192
+ "6": "48px",
193
+ "7": "56px",
194
+ "8": "64px",
195
+ "9": "72px",
196
+ "l": "56px",
197
+ "m": "48px",
198
+ "s": "32px",
199
+ "xl": "64px",
200
+ "xs": "16px",
201
+ "xxl": "72px",
202
+ "xxs": "8px",
203
+ "xxs2": "12px",
204
+ "xxxs": "4px",
205
+ },
206
+ "states": {
207
+ "_": null,
208
+ "active": "&:active",
209
+ "checked": "&:checked",
210
+ "disabled": "&:disabled, &[aria-disabled=true]",
211
+ "even": "&:even",
212
+ "first": "&:first-child",
213
+ "focus": "&:focus",
214
+ "focusVisible": "&:focus-visible",
215
+ "focusWithin": "&:focus-within",
216
+ "hover": "&:hover",
217
+ "last": "&:last-child",
218
+ "motionReduce": "@media (prefers-reduced-motion: reduce)",
219
+ "motionSafe": "@media (prefers-reduced-motion: no-preference)",
220
+ "odd": "&:odd",
221
+ "placeholder": "&::placeholder",
222
+ "visited": "&:visited",
223
+ },
224
+ "zIndex": {
225
+ "backdrop": 500,
226
+ "dialog": 1000,
227
+ "loader": 4000,
228
+ "popper": 2000,
229
+ "tooltip": 3000,
230
+ },
231
+ },
232
+ }
233
+ `;
234
+
235
+ exports[`CMicroAppGuest - Standalone calls onInit 2`] = `
236
+ {
237
+ "appId": "app-sdk",
238
+ "envName": "localhost",
239
+ "instanceId": "",
240
+ "userId": "",
241
+ }
242
+ `;
@@ -217,20 +217,18 @@ class CMicroAppGuest {
217
217
  }
218
218
  async findHost() {
219
219
  let host = null;
220
- if (window.parent !== window) {
221
- if (!isCrossDomain()) {
222
- host = window.parent?.emui?.MicroAppHost ?? null;
223
- }
224
- if (!host) {
225
- host = new SSFGuest({ appLogger: this.logger });
226
- if (await abortPromise({
227
- promise: host.connect(),
228
- delay: 1e3,
229
- retValue: false
230
- })) {
231
- host = null;
232
- } else this.#communicationMethod = "ssf" /* SSF */;
233
- }
220
+ if (!isCrossDomain()) {
221
+ host = window.parent?.emui?.MicroAppHost ?? null;
222
+ }
223
+ if (!host) {
224
+ host = new SSFGuest({ appLogger: this.logger });
225
+ if (await abortPromise({
226
+ promise: host.connect(),
227
+ delay: 1e3,
228
+ retValue: false
229
+ })) {
230
+ host = null;
231
+ } else this.#communicationMethod = "ssf" /* SSF */;
234
232
  }
235
233
  return host;
236
234
  }
@@ -0,0 +1,242 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`CMicroAppGuest - Standalone calls onInit 1`] = `
4
+ {
5
+ "history": {
6
+ "action": "POP",
7
+ "back": [Function],
8
+ "block": [Function],
9
+ "createHref": [Function],
10
+ "forward": [Function],
11
+ "go": [Function],
12
+ "listen": [Function],
13
+ "location": {
14
+ "hash": "",
15
+ "key": "default",
16
+ "pathname": "/",
17
+ "search": "",
18
+ "state": null,
19
+ },
20
+ "push": [Function],
21
+ "replace": [Function],
22
+ },
23
+ "host": SSFGuest {
24
+ "addScript": [Function],
25
+ "close": [Function],
26
+ "connect": [Function],
27
+ "getAuthToken": [Function],
28
+ "getObject": [Function],
29
+ "listObjects": [Function],
30
+ "removeScript": [Function],
31
+ "setLogLevel": [Function],
32
+ "subscribe": [Function],
33
+ "unsubscribe": [Function],
34
+ },
35
+ "hostUrl": null,
36
+ "manifestPath": "./latest",
37
+ "prevState": null,
38
+ "theme": {
39
+ "breakpoints": {
40
+ "0": "512px",
41
+ "1": "768px",
42
+ "2": "1024px",
43
+ "3": "350px",
44
+ "large": "1024px",
45
+ "medium": "768px",
46
+ "small": "512px",
47
+ "xsmall": "350px",
48
+ },
49
+ "colors": {
50
+ "brand": {
51
+ "100": "#F6FBFF",
52
+ "200": "#EBF6FF",
53
+ "250": "#C9E7FF",
54
+ "300": "#A3D6FF",
55
+ "400": "#52A6EC",
56
+ "500": "#1394E5",
57
+ "600": "#1E79C2",
58
+ "700": "#006AA9",
59
+ "800": "#005181",
60
+ },
61
+ "danger": {
62
+ "200": "#FBEBED",
63
+ "400": "#FBEBED",
64
+ "600": "#ED5A64",
65
+ "900": "#C64252",
66
+ "950": "#A11B2B",
67
+ },
68
+ "neutral": {
69
+ "000": "#FFFFFF",
70
+ "050": "#F6F7F9",
71
+ "080": "#EBEDF0",
72
+ "100": "#E0E3E8",
73
+ "200": "#CBCFD7",
74
+ "300": "#B0B9C8",
75
+ "400": "#8C93A6",
76
+ "500": "#697489",
77
+ "600": "#464F5C",
78
+ "700": "#353C46",
79
+ "800": "#25292F",
80
+ },
81
+ "success": {
82
+ "300": "#E1F4ED",
83
+ "400": "#E1F4ED",
84
+ "600": "#289F6B",
85
+ "900": "#207E56",
86
+ "950": "#185D44",
87
+ },
88
+ "warning": {
89
+ "400": "#FFEFD8",
90
+ "500": "#E06C29",
91
+ "600": "#E06C29",
92
+ "900": "#B25119",
93
+ "950": "#853C12",
94
+ },
95
+ },
96
+ "fontSizes": {
97
+ "0": "0.8461rem",
98
+ "1": "0.9230rem",
99
+ "2": "1rem",
100
+ "3": "1.0769rem",
101
+ "4": "1.2307rem",
102
+ "5": "1.3846rem",
103
+ "6": "1.8461rem",
104
+ "7": "2.7692rem",
105
+ "hyperlink": {
106
+ "200": "0.8461rem",
107
+ "300": "0.9230rem",
108
+ "400": "1rem",
109
+ },
110
+ "label": {
111
+ "200": "0.8461rem",
112
+ "300": "0.9230rem",
113
+ "400": "1rem",
114
+ },
115
+ "microText": {
116
+ "200": "0.8461rem",
117
+ },
118
+ "subTitle": {
119
+ "300": "0.9230rem",
120
+ "400": "1rem",
121
+ },
122
+ "title": {
123
+ "500": "1.0769rem",
124
+ "600": "1.2307rem",
125
+ "700": "1.3846rem",
126
+ "800": "1.8461rem",
127
+ "900": "2.7692rem",
128
+ },
129
+ "value": {
130
+ "300": "0.9230rem",
131
+ "400": "1rem",
132
+ "500": "1.0769rem",
133
+ "600": "1.2307rem",
134
+ },
135
+ },
136
+ "fontWeights": {
137
+ "0": 100,
138
+ "1": 200,
139
+ "2": 300,
140
+ "3": 400,
141
+ "4": 500,
142
+ "5": 600,
143
+ "6": 700,
144
+ "7": 800,
145
+ "8": 900,
146
+ "bold": 900,
147
+ "light": 200,
148
+ "regular": 400,
149
+ "semibold": 600,
150
+ "thin": 100,
151
+ },
152
+ "fonts": {
153
+ "0": "proxima-nova, Arial, sans-serif",
154
+ "default": "proxima-nova, Arial, sans-serif",
155
+ },
156
+ "letterSpacings": {
157
+ "mega": "0.25rem",
158
+ "normal": "normal",
159
+ "tight": "-0.05rem",
160
+ "tracked": "0.1rem",
161
+ },
162
+ "lineHeights": {
163
+ "0": "1rem",
164
+ "1": "1.15rem",
165
+ "2": "1.25rem",
166
+ "3": "1.5rem",
167
+ "l": "1.25rem",
168
+ "m": "1.15rem",
169
+ "r": "1rem",
170
+ "xl": "1.5rem",
171
+ },
172
+ "media": {
173
+ "large": [Function],
174
+ "medium": [Function],
175
+ "small": [Function],
176
+ "xsmall": [Function],
177
+ },
178
+ "shadows": {
179
+ "l": "0 16px 28px 0 rgba(0, 0, 0, 0.24), 0 25px 55px 0 rgba(0, 0, 0, 0.19)",
180
+ "m": "0 12px 15px 0 rgba(0, 0, 0, 0.24), 0 17px 50px 0 rgba(0, 0, 0, 0.19)",
181
+ "s": "0 6px 20px 0 rgba(0, 0, 0, 0.24), 0 8px 17px 0 rgba(0, 0, 0, 0.19)",
182
+ "xl": "0 27px 24px 0 rgba(0, 0, 0, 0.24), 0 40px 77px 0 rgba(0, 0, 0, 0.19)",
183
+ "xs": "0 1px 5px 0 rgba(0, 0, 0, 0.13), 0 2px 4px 0 rgba(0, 0, 0, 0.2)",
184
+ },
185
+ "space": {
186
+ "0": "0",
187
+ "1": "4px",
188
+ "2": "8px",
189
+ "3": "12px",
190
+ "4": "16px",
191
+ "5": "32px",
192
+ "6": "48px",
193
+ "7": "56px",
194
+ "8": "64px",
195
+ "9": "72px",
196
+ "l": "56px",
197
+ "m": "48px",
198
+ "s": "32px",
199
+ "xl": "64px",
200
+ "xs": "16px",
201
+ "xxl": "72px",
202
+ "xxs": "8px",
203
+ "xxs2": "12px",
204
+ "xxxs": "4px",
205
+ },
206
+ "states": {
207
+ "_": null,
208
+ "active": "&:active",
209
+ "checked": "&:checked",
210
+ "disabled": "&:disabled, &[aria-disabled=true]",
211
+ "even": "&:even",
212
+ "first": "&:first-child",
213
+ "focus": "&:focus",
214
+ "focusVisible": "&:focus-visible",
215
+ "focusWithin": "&:focus-within",
216
+ "hover": "&:hover",
217
+ "last": "&:last-child",
218
+ "motionReduce": "@media (prefers-reduced-motion: reduce)",
219
+ "motionSafe": "@media (prefers-reduced-motion: no-preference)",
220
+ "odd": "&:odd",
221
+ "placeholder": "&::placeholder",
222
+ "visited": "&:visited",
223
+ },
224
+ "zIndex": {
225
+ "backdrop": 500,
226
+ "dialog": 1000,
227
+ "loader": 4000,
228
+ "popper": 2000,
229
+ "tooltip": 3000,
230
+ },
231
+ },
232
+ }
233
+ `;
234
+
235
+ exports[`CMicroAppGuest - Standalone calls onInit 2`] = `
236
+ {
237
+ "appId": "app-sdk",
238
+ "envName": "localhost",
239
+ "instanceId": "",
240
+ "userId": "",
241
+ }
242
+ `;