@elliemae/pui-app-sdk 5.31.0-beta.2 → 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 +1 -1
- package/dist/cjs/utils/micro-frontend/guest.js +22 -21
- package/dist/cjs/utils/micro-frontend/host.js +11 -7
- package/dist/cjs/utils/micro-frontend/tests/__snapshots__/guest.test.ts.snap +242 -0
- package/dist/cjs/view/guest-microapp.js +2 -1
- package/dist/esm/utils/micro-frontend/guest.js +22 -21
- package/dist/esm/utils/micro-frontend/host.js +11 -7
- package/dist/esm/utils/micro-frontend/tests/__snapshots__/guest.test.ts.snap +242 -0
- package/dist/esm/view/guest-microapp.js +2 -1
- package/dist/types/lib/utils/micro-frontend/host.d.ts +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@ Build: [
|
|
10
10
|
|
|
11
|
-
[QA Environment](https://
|
|
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 (
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
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
|
}
|
|
@@ -332,14 +330,17 @@ class CMicroAppGuest {
|
|
|
332
330
|
* @returns {Promise<any[]>} A promise that resolves with the combined results of dispatched events.
|
|
333
331
|
*/
|
|
334
332
|
async dispatchEvent(params) {
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
333
|
+
if (this.#appBridge) {
|
|
334
|
+
const [appBridgeResult, ssfResult] = await Promise.all([
|
|
335
|
+
this.#appBridge.dispatchEvent(params),
|
|
336
|
+
this.#ssfHostRef.dispatchEvent(params)
|
|
337
|
+
]);
|
|
338
|
+
if (Array.isArray(appBridgeResult) && Array.isArray(ssfResult)) {
|
|
339
|
+
return appBridgeResult.concat(ssfResult);
|
|
340
|
+
}
|
|
341
|
+
return Promise.resolve();
|
|
341
342
|
}
|
|
342
|
-
return
|
|
343
|
+
return this.#ssfHostRef.dispatchEvent(params);
|
|
343
344
|
}
|
|
344
345
|
/**
|
|
345
346
|
* removes scripting object from child microapp use
|
|
@@ -221,16 +221,20 @@ class CMicroAppHost {
|
|
|
221
221
|
/**
|
|
222
222
|
* dispatch event to child microapp
|
|
223
223
|
* @param {DispatchEventParams<EventId, Params>} params - event parameters
|
|
224
|
+
* @returns {Promise<any>} A promise that resolves with the combined results of dispatched events.
|
|
224
225
|
*/
|
|
225
226
|
async dispatchEvent(params) {
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
227
|
+
if (this.#appBridge) {
|
|
228
|
+
const [appBridgeResult, ssfResult] = await Promise.all([
|
|
229
|
+
this.#appBridge.dispatchEvent(params),
|
|
230
|
+
this.#ssfHostRef.dispatchEvent(params)
|
|
231
|
+
]);
|
|
232
|
+
if (Array.isArray(appBridgeResult) && Array.isArray(ssfResult)) {
|
|
233
|
+
return appBridgeResult.concat(ssfResult);
|
|
234
|
+
}
|
|
235
|
+
return Promise.resolve();
|
|
232
236
|
}
|
|
233
|
-
return
|
|
237
|
+
return this.#ssfHostRef.dispatchEvent(params);
|
|
234
238
|
}
|
|
235
239
|
/**
|
|
236
240
|
* removes scripting object from child microapp use
|
|
@@ -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
|
+
`;
|
|
@@ -78,6 +78,7 @@ const useAppRenderer = (props) => {
|
|
|
78
78
|
const {
|
|
79
79
|
microappManager = import_types.MicroAppManager.APPSDK,
|
|
80
80
|
hostUrl,
|
|
81
|
+
title,
|
|
81
82
|
name
|
|
82
83
|
} = getConfig();
|
|
83
84
|
if (microappManager === import_types.MicroAppManager.SSF) {
|
|
@@ -89,7 +90,7 @@ const useAppRenderer = (props) => {
|
|
|
89
90
|
const guest = ssfHost.loadGuest({
|
|
90
91
|
id,
|
|
91
92
|
url: hostUrl,
|
|
92
|
-
title: name,
|
|
93
|
+
title: title ?? name,
|
|
93
94
|
targetElement: document.getElementById(containerId),
|
|
94
95
|
searchParams,
|
|
95
96
|
onLoad: onLoadComplete,
|
|
@@ -217,20 +217,18 @@ class CMicroAppGuest {
|
|
|
217
217
|
}
|
|
218
218
|
async findHost() {
|
|
219
219
|
let host = null;
|
|
220
|
-
if (
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
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
|
}
|
|
@@ -299,14 +297,17 @@ class CMicroAppGuest {
|
|
|
299
297
|
* @returns {Promise<any[]>} A promise that resolves with the combined results of dispatched events.
|
|
300
298
|
*/
|
|
301
299
|
async dispatchEvent(params) {
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
300
|
+
if (this.#appBridge) {
|
|
301
|
+
const [appBridgeResult, ssfResult] = await Promise.all([
|
|
302
|
+
this.#appBridge.dispatchEvent(params),
|
|
303
|
+
this.#ssfHostRef.dispatchEvent(params)
|
|
304
|
+
]);
|
|
305
|
+
if (Array.isArray(appBridgeResult) && Array.isArray(ssfResult)) {
|
|
306
|
+
return appBridgeResult.concat(ssfResult);
|
|
307
|
+
}
|
|
308
|
+
return Promise.resolve();
|
|
308
309
|
}
|
|
309
|
-
return
|
|
310
|
+
return this.#ssfHostRef.dispatchEvent(params);
|
|
310
311
|
}
|
|
311
312
|
/**
|
|
312
313
|
* removes scripting object from child microapp use
|
|
@@ -206,16 +206,20 @@ class CMicroAppHost {
|
|
|
206
206
|
/**
|
|
207
207
|
* dispatch event to child microapp
|
|
208
208
|
* @param {DispatchEventParams<EventId, Params>} params - event parameters
|
|
209
|
+
* @returns {Promise<any>} A promise that resolves with the combined results of dispatched events.
|
|
209
210
|
*/
|
|
210
211
|
async dispatchEvent(params) {
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
212
|
+
if (this.#appBridge) {
|
|
213
|
+
const [appBridgeResult, ssfResult] = await Promise.all([
|
|
214
|
+
this.#appBridge.dispatchEvent(params),
|
|
215
|
+
this.#ssfHostRef.dispatchEvent(params)
|
|
216
|
+
]);
|
|
217
|
+
if (Array.isArray(appBridgeResult) && Array.isArray(ssfResult)) {
|
|
218
|
+
return appBridgeResult.concat(ssfResult);
|
|
219
|
+
}
|
|
220
|
+
return Promise.resolve();
|
|
217
221
|
}
|
|
218
|
-
return
|
|
222
|
+
return this.#ssfHostRef.dispatchEvent(params);
|
|
219
223
|
}
|
|
220
224
|
/**
|
|
221
225
|
* removes scripting object from child microapp use
|
|
@@ -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
|
+
`;
|