@servicetitan/web-components 21.8.0 → 21.9.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/CHANGELOG.md ADDED
@@ -0,0 +1,639 @@
1
+ # v21.9.0 (Thu Jul 14 2022)
2
+
3
+ #### 🚀 Enhancement
4
+
5
+ - Startup, web-components: [FAR-965] ability to configure exposed dependencies for application [#1493](https://github.com/servicetitan/uikit/pull/1493) ([@karpoff-titan](https://github.com/karpoff-titan))
6
+
7
+ #### Authors: 1
8
+
9
+ - Anton Karpov ([@karpoff-titan](https://github.com/karpoff-titan))
10
+
11
+ ---
12
+
13
+ # v21.7.3 (Mon Jun 27 2022)
14
+
15
+ #### 🐛 Bug Fix
16
+
17
+ - fix 302 redirects for mfe-loader [#1487](https://github.com/servicetitan/uikit/pull/1487) ([@karpoff-titan](https://github.com/karpoff-titan) [@rgdelato](https://github.com/rgdelato))
18
+
19
+ #### Authors: 2
20
+
21
+ - Anton Karpov ([@karpoff-titan](https://github.com/karpoff-titan))
22
+ - Ryan De La Torre ([@rgdelato](https://github.com/rgdelato))
23
+
24
+ ---
25
+
26
+ # v21.7.2 (Mon Jun 27 2022)
27
+
28
+ #### 🔩 Dependency Updates
29
+
30
+ - Bump @servicetitan packages from 11.8.0 to 11.9.0 [#1484](https://github.com/servicetitan/uikit/pull/1484) ([@rgdelato](https://github.com/rgdelato) [@ServiceTitanTeamCity](https://github.com/ServiceTitanTeamCity))
31
+
32
+ #### Authors: 2
33
+
34
+ - Ryan De La Torre ([@rgdelato](https://github.com/rgdelato))
35
+ - ServiceTitan TeamCity ([@ServiceTitanTeamCity](https://github.com/ServiceTitanTeamCity))
36
+
37
+ ---
38
+
39
+ # v21.7.1 (Tue Jun 21 2022)
40
+
41
+ #### 🐛 Bug Fix
42
+
43
+ - Web-components: do not retry requests when fallback url is passed [#1478](https://github.com/servicetitan/uikit/pull/1478) ([@karpoff-titan](https://github.com/karpoff-titan))
44
+
45
+ #### Authors: 1
46
+
47
+ - Anton Karpov ([@karpoff-titan](https://github.com/karpoff-titan))
48
+
49
+ ---
50
+
51
+ # v21.7.0 (Thu Jun 16 2022)
52
+
53
+ #### 🚀 Enhancement
54
+
55
+ - Web-components: add fallback url to mfe-loader [#1470](https://github.com/servicetitan/uikit/pull/1470) ([@karpoff-titan](https://github.com/karpoff-titan))
56
+
57
+ #### 🔩 Dependency Updates
58
+
59
+ - Bump @servicetitan packages from 11.7.0 to 11.8.0 [#1466](https://github.com/servicetitan/uikit/pull/1466) ([@rgdelato](https://github.com/rgdelato) [@ServiceTitanTeamCity](https://github.com/ServiceTitanTeamCity))
60
+ - Bump @servicetitan packages from 11.6.0 to 11.7.0 [#1449](https://github.com/servicetitan/uikit/pull/1449) ([@rgdelato](https://github.com/rgdelato) [@ServiceTitanTeamCity](https://github.com/ServiceTitanTeamCity))
61
+
62
+ #### Authors: 3
63
+
64
+ - Anton Karpov ([@karpoff-titan](https://github.com/karpoff-titan))
65
+ - Ryan De La Torre ([@rgdelato](https://github.com/rgdelato))
66
+ - ServiceTitan TeamCity ([@ServiceTitanTeamCity](https://github.com/ServiceTitanTeamCity))
67
+
68
+ ---
69
+
70
+ # v21.6.0 (Mon May 09 2022)
71
+
72
+ ### Release Notes
73
+
74
+ #### Bump @servicetitan packages from 11.5.1 to 11.6.0 ([#1439](https://github.com/servicetitan/uikit/pull/1439))
75
+
76
+ #### Font Update: Bold Sofia to use the real bold instead of medium ([#2430](https://github.com/servicetitan/anvil/pull/2430))
77
+
78
+ To solve inconsistency/mismatch of weight definition on web implementation, using `font-weight: bold;` use to default to `600` which is not the norm and has bug report about it from devs, we are changing `bold` to be true bold which is `700`. From UX standpoint this is also solving visual hierarchy issue when Sofia Pro Medium and Nunito Sans Regular were not distinctive enough when they are similar in size.
79
+
80
+ More info here: https://www.figma.com/file/LZ56wcBF6xF2HpWx1MiNuq/Font-style-update?node-id=217%3A126
81
+
82
+ ---
83
+
84
+ #### 🚀 Enhancement
85
+
86
+ - Time Picker to support 24-hour format [#2434](https://github.com/servicetitan/anvil/pull/2434) ([@yakunins](https://github.com/yakunins))
87
+ - Adds Drag and Drop Icon [#2443](https://github.com/servicetitan/anvil/pull/2443) ([@jpex](https://github.com/jpex))
88
+ - InlineEdit: Show truncated items as the title for the `+X` tag [#2439](https://github.com/servicetitan/anvil/pull/2439) ([@tounsoo](https://github.com/tounsoo))
89
+ - AnvilSelect Drillin Footer needs custom className [#2433](https://github.com/servicetitan/anvil/pull/2433) ([@blalond](https://github.com/blalond))
90
+
91
+ #### 💅 Visual Update
92
+
93
+ - Font Update: Bold Sofia to use the real bold instead of medium [#2430](https://github.com/servicetitan/anvil/pull/2430) ([@tounsoo](https://github.com/tounsoo))
94
+ - Filter Button: fix filter button wrapping weird in small space [#2436](https://github.com/servicetitan/anvil/pull/2436) ([@tounsoo](https://github.com/tounsoo))
95
+ - ActionMenu: icon color to work with theme variables [#2435](https://github.com/servicetitan/anvil/pull/2435) ([@tounsoo](https://github.com/tounsoo))
96
+ - Tag: Update subtle default text and icon color to work with dark mode [#2425](https://github.com/servicetitan/anvil/pull/2425) ([@tounsoo](https://github.com/tounsoo))
97
+
98
+ #### 📝 Documentation
99
+
100
+ - Table: showcase right-aligned column [#2441](https://github.com/servicetitan/anvil/pull/2441) ([@yakunins](https://github.com/yakunins))
101
+ - Gatsby: infinite resizing loop at Filter Button All Filter example [#2438](https://github.com/servicetitan/anvil/pull/2438) ([@yakunins](https://github.com/yakunins))
102
+ - Some examples in docs to be properly rendered in Codesandbox [#2429](https://github.com/servicetitan/anvil/pull/2429) ([@yakunins](https://github.com/yakunins))
103
+ - Gatsby: update theming information [#2428](https://github.com/servicetitan/anvil/pull/2428) ([@tounsoo](https://github.com/tounsoo))
104
+
105
+ #### 🐛 Bug Fix
106
+
107
+ - DS-877: Updating onChange return values for "Select All/None" [#2332](https://github.com/servicetitan/anvil/pull/2332) ([@rgdelato](https://github.com/rgdelato))
108
+
109
+ #### 🏠 Internal
110
+
111
+ - Updating .nvmrc file to Node 16 [#2437](https://github.com/servicetitan/anvil/pull/2437) ([@rgdelato](https://github.com/rgdelato))
112
+ - DS-619: Adding kendo license file to root directory [#2440](https://github.com/servicetitan/anvil/pull/2440) ([@rgdelato](https://github.com/rgdelato))
113
+ - DS-995: Removing react-window dep from design-system package [#2432](https://github.com/servicetitan/anvil/pull/2432) ([@rgdelato](https://github.com/rgdelato))
114
+ - ButtonGroup: ThemeProvider compatibility [#2366](https://github.com/servicetitan/anvil/pull/2366) ([@tounsoo](https://github.com/tounsoo))
115
+ - Cleaner theme var method [#2431](https://github.com/servicetitan/anvil/pull/2431) ([@tounsoo](https://github.com/tounsoo) [@rgdelato](https://github.com/rgdelato))
116
+
117
+ #### ⚠️ Pushed to `master`
118
+
119
+ - Merge branch 'master' of github.com:servicetitan/anvil ([@tounsoo](https://github.com/tounsoo))
120
+
121
+ #### 📝 Dependencies
122
+
123
+ - Bump moment from 2.29.1 to 2.29.2 in /packages/design-system [#2426](https://github.com/servicetitan/anvil/pull/2426) ([@dependabot[bot]](https://github.com/dependabot[bot]))
124
+
125
+ #### Authors: 6
126
+
127
+ - [@dependabot[bot]](https://github.com/dependabot[bot])
128
+ - Ben Ho ([@tounsoo](https://github.com/tounsoo))
129
+ - Brian LaLonde ([@blalond](https://github.com/blalond))
130
+ - James C ([@jpex](https://github.com/jpex))
131
+ - Ryan De La Torre ([@rgdelato](https://github.com/rgdelato))
132
+ - Sergey Yakunin ([@yakunins](https://github.com/yakunins))
133
+
134
+ </blockquote>
135
+ </details>
136
+
137
+ <em><code>servicetitan/anvil</code>'s top-level, root <a href="https://github.com/servicetitan/anvil/blob/v11.6.0/CHANGELOG.md">CHANGELOG.md</a></em>
138
+
139
+ ---
140
+
141
+ #### 🔩 Dependency Updates
142
+
143
+ - Bump @servicetitan packages from 11.5.1 to 11.6.0 [#1439](https://github.com/servicetitan/uikit/pull/1439) ([@rgdelato](https://github.com/rgdelato) [@ServiceTitanTeamCity](https://github.com/ServiceTitanTeamCity))
144
+
145
+ #### Authors: 2
146
+
147
+ - Ryan De La Torre ([@rgdelato](https://github.com/rgdelato))
148
+ - ServiceTitan TeamCity ([@ServiceTitanTeamCity](https://github.com/ServiceTitanTeamCity))
149
+
150
+ ---
151
+
152
+ # v21.5.0 (Thu Apr 28 2022)
153
+
154
+ #### 🔩 Dependency Updates
155
+
156
+ - Bump @servicetitan packages from 11.5.0 to 11.5.1 [#1410](https://github.com/servicetitan/uikit/pull/1410) ([@rgdelato](https://github.com/rgdelato) [@ServiceTitanTeamCity](https://github.com/ServiceTitanTeamCity))
157
+ - Bump semver from 7.3.6 to 7.3.7 [#1405](https://github.com/servicetitan/uikit/pull/1405) ([@rgdelato](https://github.com/rgdelato) [@ServiceTitanTeamCity](https://github.com/ServiceTitanTeamCity))
158
+
159
+ #### Authors: 2
160
+
161
+ - Ryan De La Torre ([@rgdelato](https://github.com/rgdelato))
162
+ - ServiceTitan TeamCity ([@ServiceTitanTeamCity](https://github.com/ServiceTitanTeamCity))
163
+
164
+ ---
165
+
166
+ # v21.4.1 (Wed Apr 06 2022)
167
+
168
+ #### 🔩 Dependency Updates
169
+
170
+ - Bump semver from 7.3.5 to 7.3.6 [#1398](https://github.com/servicetitan/uikit/pull/1398) ([@rgdelato](https://github.com/rgdelato) [@ServiceTitanTeamCity](https://github.com/ServiceTitanTeamCity))
171
+ - Bump @servicetitan packages from 11.4.2 to 11.5.0 [#1396](https://github.com/servicetitan/uikit/pull/1396) ([@rgdelato](https://github.com/rgdelato) [@ServiceTitanTeamCity](https://github.com/ServiceTitanTeamCity))
172
+
173
+ #### Authors: 2
174
+
175
+ - Ryan De La Torre ([@rgdelato](https://github.com/rgdelato))
176
+ - ServiceTitan TeamCity ([@ServiceTitanTeamCity](https://github.com/ServiceTitanTeamCity))
177
+
178
+ ---
179
+
180
+ # v21.3.0 (Mon Mar 21 2022)
181
+
182
+ #### 🔩 Dependency Updates
183
+
184
+ - Bump @servicetitan packages from 11.4.1 to 11.4.2 [#1371](https://github.com/servicetitan/uikit/pull/1371) ([@rgdelato](https://github.com/rgdelato))
185
+
186
+ #### Authors: 1
187
+
188
+ - Ryan De La Torre ([@rgdelato](https://github.com/rgdelato))
189
+
190
+ ---
191
+
192
+ # v21.0.0 (Tue Mar 15 2022)
193
+
194
+ #### 🐛 Bug Fix
195
+
196
+ - Notifications: fix compatibility with anvil 11.4.0 [#1361](https://github.com/servicetitan/uikit/pull/1361) ([@kanoshin](https://github.com/kanoshin))
197
+
198
+ #### Authors: 1
199
+
200
+ - Kirill Anoshin ([@kanoshin](https://github.com/kanoshin))
201
+
202
+ ---
203
+
204
+ # v20.2.0 (Tue Mar 01 2022)
205
+
206
+ #### 🔩 Dependency Updates
207
+
208
+ - Bump @servicetitan packages from 11.3.0 to 11.3.1 [#1317](https://github.com/servicetitan/uikit/pull/1317) ([@rgdelato](https://github.com/rgdelato) [@ServiceTitanTeamCity](https://github.com/ServiceTitanTeamCity))
209
+ - Bump @servicetitan packages from 11.2.0 to 11.3.0 [#1315](https://github.com/servicetitan/uikit/pull/1315) ([@rgdelato](https://github.com/rgdelato) [@ServiceTitanTeamCity](https://github.com/ServiceTitanTeamCity))
210
+
211
+ #### Authors: 2
212
+
213
+ - Ryan De La Torre ([@rgdelato](https://github.com/rgdelato))
214
+ - ServiceTitan TeamCity ([@ServiceTitanTeamCity](https://github.com/ServiceTitanTeamCity))
215
+
216
+ ---
217
+
218
+ # v20.1.0 (Thu Jan 27 2022)
219
+
220
+ :tada: This release contains work from a new contributor! :tada:
221
+
222
+ Thank you, ServiceTitan TeamCity ([@ServiceTitanTeamCity](https://github.com/ServiceTitanTeamCity)), for all your work!
223
+
224
+ #### 🚀 Enhancement
225
+
226
+ - Bump @servicetitan packages from 11.1.1 to 11.2.0 [#1285](https://github.com/servicetitan/uikit/pull/1285) ([@rgdelato](https://github.com/rgdelato) [@ServiceTitanTeamCity](https://github.com/ServiceTitanTeamCity))
227
+
228
+ #### 🐛 Bug Fix
229
+
230
+ - Bump @servicetitan packages from 11.1.0 to 11.1.1 [#1264](https://github.com/servicetitan/uikit/pull/1264) ([@rgdelato](https://github.com/rgdelato) [@ServiceTitanTeamCity](https://github.com/ServiceTitanTeamCity))
231
+
232
+ #### ⚠️ Pushed to `master`
233
+
234
+ - Merge branch 'fp/FAR-893' into master ([@rgdelato](https://github.com/rgdelato))
235
+
236
+ #### Authors: 2
237
+
238
+ - Ryan De La Torre ([@rgdelato](https://github.com/rgdelato))
239
+ - ServiceTitan TeamCity ([@ServiceTitanTeamCity](https://github.com/ServiceTitanTeamCity))
240
+
241
+ ---
242
+
243
+ # v20.0.0 (Thu Jan 13 2022)
244
+
245
+ #### 💥 Breaking Change
246
+
247
+ - Startup: chunking support for the web components [#1184](https://github.com/servicetitan/uikit/pull/1184) ([@xarety](https://github.com/xarety))
248
+
249
+ #### 🔩 Dependency Updates
250
+
251
+ - Bump @types/history from 4.7.9 to 4.7.10 [#1245](https://github.com/servicetitan/uikit/pull/1245) ([@dependabot[bot]](https://github.com/dependabot[bot]))
252
+
253
+ #### Authors: 2
254
+
255
+ - [@dependabot[bot]](https://github.com/dependabot[bot])
256
+ - Denis Gordeev ([@xarety](https://github.com/xarety))
257
+
258
+ ---
259
+
260
+ # v19.4.0 (Mon Jan 10 2022)
261
+
262
+ #### 🔩 Dependency Updates
263
+
264
+ - Bump @types/react from 17.0.37 to 17.0.38 [#1209](https://github.com/servicetitan/uikit/pull/1209) ([@dependabot[bot]](https://github.com/dependabot[bot]))
265
+
266
+ #### Authors: 1
267
+
268
+ - [@dependabot[bot]](https://github.com/dependabot[bot])
269
+
270
+ ---
271
+
272
+ # v19.2.0 (Wed Dec 15 2021)
273
+
274
+ #### 🔩 Dependency Updates
275
+
276
+ - Bump @types/react from 17.0.36 to 17.0.37 [#1129](https://github.com/servicetitan/uikit/pull/1129) ([@dependabot[bot]](https://github.com/dependabot[bot]))
277
+
278
+ #### Authors: 1
279
+
280
+ - [@dependabot[bot]](https://github.com/dependabot[bot])
281
+
282
+ ---
283
+
284
+ # v19.1.0 (Wed Dec 08 2021)
285
+
286
+ #### 🔩 Dependency Updates
287
+
288
+ - Bump typescript [#1128](https://github.com/servicetitan/uikit/pull/1128) ([@xarety](https://github.com/xarety))
289
+ - Bump @types/react from 17.0.35 to 17.0.36 [#1113](https://github.com/servicetitan/uikit/pull/1113) ([@dependabot[bot]](https://github.com/dependabot[bot]))
290
+
291
+ #### Authors: 2
292
+
293
+ - [@dependabot[bot]](https://github.com/dependabot[bot])
294
+ - Denis Gordeev ([@xarety](https://github.com/xarety))
295
+
296
+ ---
297
+
298
+ # v19.0.0 (Wed Nov 24 2021)
299
+
300
+ #### 🐛 Bug Fix
301
+
302
+ - Web components: provide a fallback for globals in regular packages [#1115](https://github.com/servicetitan/uikit/pull/1115) ([@xarety](https://github.com/xarety))
303
+ - Web components: add crossorigin attribute [#1112](https://github.com/servicetitan/uikit/pull/1112) ([@xarety](https://github.com/xarety))
304
+
305
+ #### 🔩 Dependency Updates
306
+
307
+ - Bump @types/react from 17.0.34 to 17.0.35 [#1089](https://github.com/servicetitan/uikit/pull/1089) ([@dependabot[bot]](https://github.com/dependabot[bot]))
308
+
309
+ #### Authors: 2
310
+
311
+ - [@dependabot[bot]](https://github.com/dependabot[bot])
312
+ - Denis Gordeev ([@xarety](https://github.com/xarety))
313
+
314
+ ---
315
+
316
+ # v18.1.0 (Wed Nov 17 2021)
317
+
318
+ #### 🚀 Enhancement
319
+
320
+ - Web components: support for the nesting mfe's [#1082](https://github.com/servicetitan/uikit/pull/1082) ([@xarety](https://github.com/xarety))
321
+ - Web components: add job entity to the EventBus [#1077](https://github.com/servicetitan/uikit/pull/1077) ([@xarety](https://github.com/xarety))
322
+
323
+ #### 🔩 Dependency Updates
324
+
325
+ - Bump @types/react from 17.0.33 to 17.0.34 [#1063](https://github.com/servicetitan/uikit/pull/1063) ([@dependabot[bot]](https://github.com/dependabot[bot]))
326
+
327
+ #### Authors: 2
328
+
329
+ - [@dependabot[bot]](https://github.com/dependabot[bot])
330
+ - Denis Gordeev ([@xarety](https://github.com/xarety))
331
+
332
+ ---
333
+
334
+ # v18.0.0 (Mon Nov 15 2021)
335
+
336
+ #### 💥 Breaking Change
337
+
338
+ - Table: fix filters ui regression [#1068](https://github.com/servicetitan/uikit/pull/1068) ([@xarety](https://github.com/xarety))
339
+
340
+ #### Authors: 1
341
+
342
+ - Denis Gordeev ([@xarety](https://github.com/xarety))
343
+
344
+ ---
345
+
346
+ # v17.5.0 (Fri Nov 12 2021)
347
+
348
+ #### 🚀 Enhancement
349
+
350
+ - Log service: improve error logging for unexpected usages [#1083](https://github.com/servicetitan/uikit/pull/1083) ([@kanoshin](https://github.com/kanoshin))
351
+
352
+ #### 🔩 Dependency Updates
353
+
354
+ - Bump @types/react-dom from 17.0.10 to 17.0.11 [#1065](https://github.com/servicetitan/uikit/pull/1065) ([@dependabot[bot]](https://github.com/dependabot[bot]))
355
+
356
+ #### Authors: 2
357
+
358
+ - [@dependabot[bot]](https://github.com/dependabot[bot])
359
+ - Kirill Anoshin ([@kanoshin](https://github.com/kanoshin))
360
+
361
+ ---
362
+
363
+ # v17.3.1 (Wed Nov 03 2021)
364
+
365
+ #### 🔩 Dependency Updates
366
+
367
+ - Bump dependencies [#1062](https://github.com/servicetitan/uikit/pull/1062) ([@xarety](https://github.com/xarety))
368
+
369
+ #### Authors: 1
370
+
371
+ - Denis Gordeev ([@xarety](https://github.com/xarety))
372
+
373
+ ---
374
+
375
+ # v17.3.0 (Thu Oct 28 2021)
376
+
377
+ #### 🚀 Enhancement
378
+
379
+ - Web components: enable lightweight bundles [#1042](https://github.com/servicetitan/uikit/pull/1042) ([@xarety](https://github.com/xarety))
380
+
381
+ #### Authors: 1
382
+
383
+ - Denis Gordeev ([@xarety](https://github.com/xarety))
384
+
385
+ ---
386
+
387
+ # v17.2.1 (Tue Oct 26 2021)
388
+
389
+ #### 🔩 Dependency Updates
390
+
391
+ - Bump @types/react from 17.0.32 to 17.0.33 [#1041](https://github.com/servicetitan/uikit/pull/1041) ([@dependabot[bot]](https://github.com/dependabot[bot]))
392
+ - Bump @types/react from 17.0.30 to 17.0.32 [#1033](https://github.com/servicetitan/uikit/pull/1033) ([@dependabot[bot]](https://github.com/dependabot[bot]))
393
+ - Bump @types/react-dom from 17.0.9 to 17.0.10 [#1022](https://github.com/servicetitan/uikit/pull/1022) ([@dependabot[bot]](https://github.com/dependabot[bot]))
394
+ - Bump @types/semver from 7.3.8 to 7.3.9 [#1016](https://github.com/servicetitan/uikit/pull/1016) ([@dependabot[bot]](https://github.com/dependabot[bot]))
395
+ - Bump @types/react from 17.0.27 to 17.0.30 [#996](https://github.com/servicetitan/uikit/pull/996) ([@dependabot[bot]](https://github.com/dependabot[bot]))
396
+
397
+ #### Authors: 1
398
+
399
+ - [@dependabot[bot]](https://github.com/dependabot[bot])
400
+
401
+ ---
402
+
403
+ # v17.2.0 (Thu Oct 14 2021)
404
+
405
+ #### 🚀 Enhancement
406
+
407
+ - Web components: add the ability to send events in both directions [#977](https://github.com/servicetitan/uikit/pull/977) ([@xarety](https://github.com/xarety))
408
+
409
+ #### Authors: 1
410
+
411
+ - Denis Gordeev ([@xarety](https://github.com/xarety))
412
+
413
+ ---
414
+
415
+ # v17.1.1 (Tue Oct 05 2021)
416
+
417
+ #### 🔩 Dependency Updates
418
+
419
+ - Bump @types/react from 17.0.26 to 17.0.27 [#949](https://github.com/servicetitan/uikit/pull/949) ([@dependabot[bot]](https://github.com/dependabot[bot]))
420
+
421
+ #### Authors: 1
422
+
423
+ - [@dependabot[bot]](https://github.com/dependabot[bot])
424
+
425
+ ---
426
+
427
+ # v17.1.0 (Sat Oct 02 2021)
428
+
429
+ #### 🔩 Dependency Updates
430
+
431
+ - Bump @types/react from 17.0.25 to 17.0.26 [#940](https://github.com/servicetitan/uikit/pull/940) ([@dependabot[bot]](https://github.com/dependabot[bot]))
432
+
433
+ #### Authors: 1
434
+
435
+ - [@dependabot[bot]](https://github.com/dependabot[bot])
436
+
437
+ ---
438
+
439
+ # v17.0.0 (Thu Sep 30 2021)
440
+
441
+ #### 💥 Breaking Change
442
+
443
+ - Startup: multi-instances expose-loader [#723](https://github.com/servicetitan/uikit/pull/723) ([@xarety](https://github.com/xarety))
444
+
445
+ #### 🔩 Dependency Updates
446
+
447
+ - Bump @servicetitan/design-system from 10.2.1 to 10.3.3 [#935](https://github.com/servicetitan/uikit/pull/935) ([@xarety](https://github.com/xarety))
448
+
449
+ #### Authors: 1
450
+
451
+ - Denis Gordeev ([@xarety](https://github.com/xarety))
452
+
453
+ ---
454
+
455
+ # v16.1.0 (Wed Sep 29 2021)
456
+
457
+ #### 🚀 Enhancement
458
+
459
+ - Web components: configurable error fallback [#925](https://github.com/servicetitan/uikit/pull/925) ([@xarety](https://github.com/xarety))
460
+
461
+ #### Authors: 1
462
+
463
+ - Denis Gordeev ([@xarety](https://github.com/xarety))
464
+
465
+ ---
466
+
467
+ # v16.0.0 (Fri Sep 24 2021)
468
+
469
+ #### 💥 Breaking Change
470
+
471
+ - Adding ESLint rules for React 17 and combining custom rules into one package [#863](https://github.com/servicetitan/uikit/pull/863) ([@rgdelato](https://github.com/rgdelato))
472
+
473
+ #### 🚀 Enhancement
474
+
475
+ - Web components: ability to pass events to web component [#899](https://github.com/servicetitan/uikit/pull/899) ([@xarety](https://github.com/xarety))
476
+
477
+ #### 🔩 Dependency Updates
478
+
479
+ - Bump @types/react from 17.0.21 to 17.0.24 [#897](https://github.com/servicetitan/uikit/pull/897) ([@dependabot[bot]](https://github.com/dependabot[bot]))
480
+ - Bump @types/react from 17.0.20 to 17.0.21 [#860](https://github.com/servicetitan/uikit/pull/860) ([@dependabot[bot]](https://github.com/dependabot[bot]))
481
+ - Bump @servicetitan/design-system from 10.1.0 to 10.2.1 [#858](https://github.com/servicetitan/uikit/pull/858) ([@xarety](https://github.com/xarety))
482
+ - Bump @types/react from 17.0.19 to 17.0.20 [#817](https://github.com/servicetitan/uikit/pull/817) ([@dependabot[bot]](https://github.com/dependabot[bot]))
483
+
484
+ #### Authors: 3
485
+
486
+ - [@dependabot[bot]](https://github.com/dependabot[bot])
487
+ - Denis Gordeev ([@xarety](https://github.com/xarety))
488
+ - Ryan De La Torre ([@rgdelato](https://github.com/rgdelato))
489
+
490
+ ---
491
+
492
+ # v15.0.0 (Tue Sep 14 2021)
493
+
494
+ #### 🚀 Enhancement
495
+
496
+ - Web components: retry fetch on fail [#850](https://github.com/servicetitan/uikit/pull/850) ([@xarety](https://github.com/xarety))
497
+
498
+ #### 🐛 Bug Fix
499
+
500
+ - Web components: use exact versioning to avoid cache issues [#787](https://github.com/servicetitan/uikit/pull/787) ([@xarety](https://github.com/xarety))
501
+
502
+ #### Authors: 1
503
+
504
+ - Denis Gordeev ([@xarety](https://github.com/xarety))
505
+
506
+ ---
507
+
508
+ # v14.3.0 (Mon Aug 23 2021)
509
+
510
+ #### 🚀 Enhancement
511
+
512
+ - Confirm navigation: block navigation for the host routes [#700](https://github.com/servicetitan/uikit/pull/700) ([@xarety](https://github.com/xarety))
513
+ - Web Components: provide IS_WEB_COMPONENT_TOKEN and RENDER_ROOT_TOKEN [#738](https://github.com/servicetitan/uikit/pull/738) ([@aschumahua](https://github.com/aschumahua) [@xarety](https://github.com/xarety))
514
+
515
+ #### 🔩 Dependency Updates
516
+
517
+ - Bump @types/react from 17.0.18 to 17.0.19 [#768](https://github.com/servicetitan/uikit/pull/768) ([@dependabot[bot]](https://github.com/dependabot[bot]))
518
+ - Bump @types/react from 17.0.17 to 17.0.18 [#760](https://github.com/servicetitan/uikit/pull/760) ([@dependabot[bot]](https://github.com/dependabot[bot]))
519
+ - Bump @types/react from 17.0.16 to 17.0.17 [#747](https://github.com/servicetitan/uikit/pull/747) ([@dependabot[bot]](https://github.com/dependabot[bot]))
520
+
521
+ #### Authors: 3
522
+
523
+ - [@dependabot[bot]](https://github.com/dependabot[bot])
524
+ - Anzar Schumahua ([@aschumahua](https://github.com/aschumahua))
525
+ - Denis Gordeev ([@xarety](https://github.com/xarety))
526
+
527
+ ---
528
+
529
+ # v14.2.0 (Fri Aug 06 2021)
530
+
531
+ #### 🐛 Bug Fix
532
+
533
+ - Stylelint config: disable no-invalid-position-at-import-rule [#732](https://github.com/servicetitan/uikit/pull/732) ([@kanoshin](https://github.com/kanoshin))
534
+
535
+ #### 🔩 Dependency Updates
536
+
537
+ - Bump @types/react from 17.0.15 to 17.0.16 [#728](https://github.com/servicetitan/uikit/pull/728) ([@dependabot[bot]](https://github.com/dependabot[bot]))
538
+
539
+ #### Authors: 2
540
+
541
+ - [@dependabot[bot]](https://github.com/dependabot[bot])
542
+ - Kirill Anoshin ([@kanoshin](https://github.com/kanoshin))
543
+
544
+ ---
545
+
546
+ # v14.1.1 (Thu Aug 05 2021)
547
+
548
+ #### 🔩 Dependency Updates
549
+
550
+ - Update dependencies [#705](https://github.com/servicetitan/uikit/pull/705) ([@xarety](https://github.com/xarety) [@kanoshin](https://github.com/kanoshin))
551
+
552
+ #### Authors: 2
553
+
554
+ - Denis Gordeev ([@xarety](https://github.com/xarety))
555
+ - Kirill Anoshin ([@kanoshin](https://github.com/kanoshin))
556
+
557
+ ---
558
+
559
+ # v14.1.0 (Fri Jul 30 2021)
560
+
561
+ #### 🐛 Bug Fix
562
+
563
+ - Web components: temporarily disable lightweight bundles [#685](https://github.com/servicetitan/uikit/pull/685) ([@xarety](https://github.com/xarety))
564
+
565
+ #### 🔩 Dependency Updates
566
+
567
+ - Bump @types/semver from 7.3.6 to 7.3.8 [#687](https://github.com/servicetitan/uikit/pull/687) ([@dependabot[bot]](https://github.com/dependabot[bot]))
568
+ - Bump @types/react from 17.0.9 to 17.0.14 [#652](https://github.com/servicetitan/uikit/pull/652) ([@dependabot[bot]](https://github.com/dependabot[bot]))
569
+ - Bump @types/react-dom from 17.0.6 to 17.0.9 [#680](https://github.com/servicetitan/uikit/pull/680) ([@dependabot[bot]](https://github.com/dependabot[bot]))
570
+
571
+ #### Authors: 2
572
+
573
+ - [@dependabot[bot]](https://github.com/dependabot[bot])
574
+ - Denis Gordeev ([@xarety](https://github.com/xarety))
575
+
576
+ ---
577
+
578
+ # v14.0.0 (Fri Jul 23 2021)
579
+
580
+ #### 💥 Breaking Change
581
+
582
+ - Updating React 17 and react-jsx transform [#620](https://github.com/servicetitan/uikit/pull/620) ([@rgdelato](https://github.com/rgdelato) [@StreetStrider](https://github.com/StreetStrider) [@kanoshin](https://github.com/kanoshin))
583
+
584
+ #### Authors: 3
585
+
586
+ - Ivan Pukhtin ([@StreetStrider](https://github.com/StreetStrider))
587
+ - Kirill Anoshin ([@kanoshin](https://github.com/kanoshin))
588
+ - Ryan De La Torre ([@rgdelato](https://github.com/rgdelato))
589
+
590
+ ---
591
+
592
+ # v12.5.0 (Wed Jun 16 2021)
593
+
594
+ :tada: This release contains work from a new contributor! :tada:
595
+
596
+ Thank you, Mike Kozhevnikov ([@mkozhevnikov](https://github.com/mkozhevnikov)), for all your work!
597
+
598
+ #### 🐛 Bug Fix
599
+
600
+ - Startup: WatchIgnorePlugin requires at least one value [#622](https://github.com/servicetitan/uikit/pull/622) ([@xarety](https://github.com/xarety))
601
+ - Hash browser router: correct basename handling [#616](https://github.com/servicetitan/uikit/pull/616) ([@xarety](https://github.com/xarety))
602
+ - FAR-792: Fixing existing subpackage CHANGELOG.md files [#621](https://github.com/servicetitan/uikit/pull/621) ([@rgdelato](https://github.com/rgdelato))
603
+
604
+ #### Authors: 2
605
+
606
+ - Denis Gordeev ([@xarety](https://github.com/xarety))
607
+ - Ryan De La Torre ([@rgdelato](https://github.com/rgdelato))
608
+
609
+ ---
610
+
611
+ # v12.4.0 (Tue Jun 08 2021)
612
+
613
+ #### 🐛 Bug Fix
614
+
615
+ - Web components: fixes for the loading UX [#612](https://github.com/servicetitan/uikit/pull/612) ([@xarety](https://github.com/xarety))
616
+
617
+ #### ⚠️ Pushed to `master`
618
+
619
+ - Undo fail publish consequences ([@xarety](https://github.com/xarety))
620
+ - Publish ([@xarety](https://github.com/xarety))
621
+ - Bump packages ([@xarety](https://github.com/xarety))
622
+
623
+ #### 🔩 Dependency Updates
624
+
625
+ - Bump @types/react-dom from 17.0.5 to 17.0.6 [#603](https://github.com/servicetitan/uikit/pull/603) ([@dependabot[bot]](https://github.com/dependabot[bot]))
626
+ - Bump @types/react from 17.0.8 to 17.0.9 [#607](https://github.com/servicetitan/uikit/pull/607) ([@dependabot[bot]](https://github.com/dependabot[bot]))
627
+ - Bump @types/react from 17.0.6 to 17.0.8 [#575](https://github.com/servicetitan/uikit/pull/575) ([@dependabot[bot]](https://github.com/dependabot[bot]))
628
+ - Bump @servicetitan/design-system from 9.2.0 to 9.2.1 [#596](https://github.com/servicetitan/uikit/pull/596) ([@dependabot[bot]](https://github.com/dependabot[bot]))
629
+ - Bump @servicetitan/design-system from 9.1.0 to 9.2.0 [#557](https://github.com/servicetitan/uikit/pull/557) ([@dependabot[bot]](https://github.com/dependabot[bot]))
630
+ - Bump @types/react-dom from 17.0.4 to 17.0.5 [#543](https://github.com/servicetitan/uikit/pull/543) ([@dependabot[bot]](https://github.com/dependabot[bot]))
631
+ - Bump @types/react from 17.0.5 to 17.0.6 [#551](https://github.com/servicetitan/uikit/pull/551) ([@dependabot[bot]](https://github.com/dependabot[bot]))
632
+ - Bump @types/semver from 7.3.5 to 7.3.6 [#542](https://github.com/servicetitan/uikit/pull/542) ([@dependabot[bot]](https://github.com/dependabot[bot]))
633
+ - Bump prettier from 2.2.1 to 2.3.0 [#534](https://github.com/servicetitan/uikit/pull/534) ([@dependabot[bot]](https://github.com/dependabot[bot]) [@xarety](https://github.com/xarety))
634
+
635
+ #### Authors: 3
636
+
637
+ - [@dependabot[bot]](https://github.com/dependabot[bot])
638
+ - Denis Gordeev ([@xarety](https://github.com/xarety))
639
+ - Ryan De La Torre ([@rgdelato](https://github.com/rgdelato))
@@ -1 +1 @@
1
- {"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../src/loader.tsx"],"names":[],"mappings":"AAAA,OAAO,EASH,SAAS,EACZ,MAAM,OAAO,CAAC;AAkBf,OAAO,EAAE,QAAQ,EAAe,MAAM,aAAa,CAAC;AAgHpD,oBAAY,SAAS,GAAG,QAAQ,CAAC;AAEjC,MAAM,WAAW,WAAW;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,WAAW,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC;IAChD,aAAa,CAAC,EAAE,WAAW,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC;IAC9C,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,MAAM,kGA2LlB,CAAC"}
1
+ {"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../src/loader.tsx"],"names":[],"mappings":"AAAA,OAAO,EASH,SAAS,EACZ,MAAM,OAAO,CAAC;AAiBf,OAAO,EAAE,QAAQ,EAAe,MAAM,aAAa,CAAC;AAgGpD,oBAAY,SAAS,GAAG,QAAQ,CAAC;AAEjC,MAAM,WAAW,WAAW;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,WAAW,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC;IAChD,aAAa,CAAC,EAAE,WAAW,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC;IAC9C,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,MAAM,kGA2LlB,CAAC"}
package/dist/loader.js CHANGED
@@ -14,10 +14,11 @@ import get from 'lodash.get';
14
14
  import { ErrorBoundary } from '@servicetitan/error-boundary';
15
15
  import { Log } from '@servicetitan/log-service';
16
16
  import { useOptionalDependencies } from '@servicetitan/react-ioc';
17
- import { EXPOSED_DEPENDENCIES_TOKEN, useCancelation, getJson, isCompatible, } from './common';
17
+ import { EXPOSED_DEPENDENCIES_TOKEN, useCancelation, getJson, } from './common';
18
18
  import { useEventBus } from './event-bus';
19
19
  import { HistoryManager } from './history-manager';
20
20
  import { EXPOSED_DEPENDENCIES } from './globals';
21
+ import { getVersionMismatches } from './utils';
21
22
  function omitPackageVersion(packageUrl) {
22
23
  const chunks = packageUrl.split('@');
23
24
  if (chunks.length > 2) {
@@ -58,22 +59,7 @@ function getBundleInfo(mainPackageUrl, fallbackPackageUrl, exposedDependencies =
58
59
  cache: 'no-store',
59
60
  signal,
60
61
  });
61
- const mismatch = Object.entries(exposedDependencies).reduce((result, [dependency, { version: hostVersion }]) => {
62
- const packageVersion = dependencies[dependency];
63
- if (packageVersion && !isCompatible(hostVersion, packageVersion)) {
64
- result[dependency] = { host: hostVersion, package: packageVersion };
65
- }
66
- return result;
67
- }, {});
68
- for (const [dependency, variable] of Object.entries(metadata.sharedDependencies)) {
69
- const packageVersion = dependencies[dependency];
70
- if (!exposedDependencies[dependency]) {
71
- mismatch[dependency] = { host: 'missing', package: packageVersion };
72
- }
73
- else if (exposedDependencies[dependency].variable !== variable) {
74
- mismatch[dependency] = { host: 'wrong global variable', package: packageVersion };
75
- }
76
- }
62
+ const mismatch = getVersionMismatches(exposedDependencies, dependencies, metadata.sharedDependencies);
77
63
  const hasMismatch = !!Object.keys(mismatch).length;
78
64
  const startupVersion = (_a = metadata.bundledWith) === null || _a === void 0 ? void 0 : _a['@servicetitan/startup'];
79
65
  const supportLightBundles = startupVersion && semver.gte(startupVersion, '17.0.0');
@@ -1 +1 @@
1
- {"version":3,"file":"loader.js","sourceRoot":"","sources":["../src/loader.tsx"],"names":[],"mappings":";;;;;;;;;;AAAA,OAAO,EACH,IAAI,EACJ,QAAQ,EACR,SAAS,EACT,OAAO,EACP,QAAQ,EACR,UAAU,EACV,mBAA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YAC/B,OAAO,eAA+B,CAAC;SAC1C;QAED,OAAO,sCAAmB,CAAC;IAC/B,CAAC,EACD,CAAC,eAAe,CAAC,CACpB,CAAC;IAEF,MAAM,aAAa,GAAG,OAAO,CACzB,GAAG,EAAE,CAAC,GAAG,EAAE;QACP,IAAI,aAAa,KAAK,SAAS,EAAE;YAC7B,OAAO,aAA6B,CAAC;SACxC;QAED,OAAO,gDAA6B,CAAC;IACzC,CAAC,EACD,CAAC,aAAa,CAAC,CAClB,CAAC;IAEF,OAAO,CACH,MAAC,aAAa,kBAAC,UAAU,EAAE,GAAG,EAAE,QAAQ,EAAE,aAAa,iBAClD,SAAS,IAAI,KAAC,eAAe,KAAG,EACjC,KAAC,QAAQ,kBAAC,QAAQ,EAAE,IAAI,gBACpB,KAAC,MAAM,IAAC,GAAG,EAAE,GAAG,GAAI,IACb,KACC,CACnB,CAAC;AACN,CAAC,CACJ,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { ExposedDependencies } from './common';
2
+ export declare const getVersionMismatches: (exposedDependencies: ExposedDependencies, dependencies: Record<string, string>, sharedDependencies: Record<string, string>) => Record<string, {
3
+ host: string;
4
+ package: string;
5
+ }>;
6
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAgB,MAAM,UAAU,CAAC;AAE7D,eAAO,MAAM,oBAAoB,wBACR,mBAAmB,gBAC1B,OAAO,MAAM,EAAE,MAAM,CAAC,sBAChB,OAAO,MAAM,EAAE,MAAM,CAAC;UAYT,MAAM;aAAW,MAAM;EAc3D,CAAC"}
package/dist/utils.js ADDED
@@ -0,0 +1,21 @@
1
+ import { isCompatible } from './common';
2
+ export const getVersionMismatches = (exposedDependencies, dependencies, sharedDependencies) => {
3
+ const mismatch = Object.entries(exposedDependencies).reduce((result, [dependency, { version: hostVersion }]) => {
4
+ const packageVersion = dependencies[dependency];
5
+ if (packageVersion && !isCompatible(hostVersion, packageVersion)) {
6
+ result[dependency] = { host: hostVersion, package: packageVersion };
7
+ }
8
+ return result;
9
+ }, {});
10
+ for (const [dependency, variable] of Object.entries(sharedDependencies)) {
11
+ const packageVersion = dependencies[dependency];
12
+ if (!exposedDependencies[dependency]) {
13
+ mismatch[dependency] = { host: 'missing', package: packageVersion };
14
+ }
15
+ else if (exposedDependencies[dependency].variable !== variable) {
16
+ mismatch[dependency] = { host: 'wrong global variable', package: packageVersion };
17
+ }
18
+ }
19
+ return mismatch;
20
+ };
21
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,YAAY,EAAE,MAAM,UAAU,CAAC;AAE7D,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAChC,mBAAwC,EACxC,YAAoC,EACpC,kBAA0C,EAC5C,EAAE;IACA,MAAM,QAAQ,GAAG,MAAM,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAAC,MAAM,CACvD,CAAC,MAAM,EAAE,CAAC,UAAU,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE,CAAC,EAAE,EAAE;QAC/C,MAAM,cAAc,GAAG,YAAY,CAAC,UAAU,CAAC,CAAC;QAEhD,IAAI,cAAc,IAAI,CAAC,YAAY,CAAC,WAAW,EAAE,cAAc,CAAC,EAAE;YAC9D,MAAM,CAAC,UAAU,CAAC,GAAG,EAAE,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,cAAc,EAAE,CAAC;SACvE;QAED,OAAO,MAAM,CAAC;IAClB,CAAC,EACD,EAAuD,CAC1D,CAAC;IAEF,KAAK,MAAM,CAAC,UAAU,EAAE,QAAQ,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,kBAAkB,CAAC,EAAE;QACrE,MAAM,cAAc,GAAG,YAAY,CAAC,UAAU,CAAC,CAAC;QAEhD,IAAI,CAAC,mBAAmB,CAAC,UAAU,CAAC,EAAE;YAClC,QAAQ,CAAC,UAAU,CAAC,GAAG,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,cAAc,EAAE,CAAC;SACvE;aAAM,IAAI,mBAAmB,CAAC,UAAU,CAAC,CAAC,QAAQ,KAAK,QAAQ,EAAE;YAC9D,QAAQ,CAAC,UAAU,CAAC,GAAG,EAAE,IAAI,EAAE,uBAAuB,EAAE,OAAO,EAAE,cAAc,EAAE,CAAC;SACrF;KACJ;IAED,OAAO,QAAQ,CAAC;AACpB,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@servicetitan/web-components",
3
- "version": "21.8.0",
3
+ "version": "21.9.0",
4
4
  "description": "",
5
5
  "repository": {
6
6
  "type": "git",
@@ -15,15 +15,15 @@
15
15
  "src"
16
16
  ],
17
17
  "dependencies": {
18
- "@servicetitan/error-boundary": "^21.8.0",
18
+ "@servicetitan/error-boundary": "^21.9.0",
19
19
  "lodash.get": "~4.4.2",
20
20
  "mitt": "~3.0.0",
21
21
  "semver": "~7.3.7"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@servicetitan/design-system": "~11.9.0",
25
- "@servicetitan/log-service": "^21.8.0",
26
- "@servicetitan/react-ioc": "^21.8.0",
25
+ "@servicetitan/log-service": "^21.9.0",
26
+ "@servicetitan/react-ioc": "^21.9.0",
27
27
  "@types/history": "~4.7.10",
28
28
  "@types/lodash.get": "~4.4.6",
29
29
  "@types/react": "~17.0.38",
@@ -47,5 +47,5 @@
47
47
  "cli": {
48
48
  "webpack": false
49
49
  },
50
- "gitHead": "e9026448c165e2159c74ea23ed0ac09d5d0fac36"
50
+ "gitHead": "e30223af73b7d021ec6c70c4b665f25b2021114b"
51
51
  }
@@ -0,0 +1,82 @@
1
+ import { getVersionMismatches } from '../utils';
2
+
3
+ describe('getVersionMismatches', () => {
4
+ const getSharedDependencies = () => ({
5
+ '@servicetitan/design-system': 'SharedDependencies.ServiceTitan.DesignSystem',
6
+ 'classnames': 'SharedDependencies.ClassNames',
7
+ 'formstate': 'SharedDependencies.FormState',
8
+ 'mobx': 'SharedDependencies.MobX',
9
+ 'mobx-react': 'SharedDependencies.MobXReact',
10
+ 'mobx-utils': 'SharedDependencies.MobXUtils',
11
+ 'react': 'SharedDependencies.React',
12
+ 'react-dom': 'SharedDependencies.ReactDOM',
13
+ });
14
+
15
+ const getDependencies = () => ({
16
+ '@servicetitan/confirm': '^21.7.1',
17
+ '@servicetitan/culture': '^21.7.1',
18
+ '@servicetitan/datetime-utils': '^21.7.1',
19
+ '@servicetitan/design-system': '~11.8.0',
20
+ '@servicetitan/form': '^21.7.1',
21
+ '@servicetitan/log-service': '^21.7.1',
22
+ '@servicetitan/react-ioc': '^21.7.1',
23
+ '@servicetitan/tokens': '~11.8.0',
24
+ '@servicetitan/web-components': '^21.7.1',
25
+ 'accounting': '~0.4.1',
26
+ 'axios': '~0.25.0',
27
+ 'classnames': '~2.3.1',
28
+ 'formstate': '^2.0.0',
29
+ 'mobx': '~6.6.0',
30
+ 'mobx-react': '~7.5.0',
31
+ 'react': '~17.0.2',
32
+ 'react-dom': '~17.0.2',
33
+ 'react-router-dom': '~6.3.0',
34
+ 'resumablejs': '1.0.2',
35
+ 'utils': '^0.15.9',
36
+ });
37
+
38
+ const getExposedDependencies = () => ({
39
+ '@servicetitan/design-system': {
40
+ version: '~11.8.0',
41
+ variable: 'SharedDependencies.ServiceTitan.DesignSystem',
42
+ },
43
+ 'classnames': {
44
+ version: '~2.3.1',
45
+ variable: 'SharedDependencies.ClassNames',
46
+ },
47
+ 'formstate': {
48
+ version: '~2.0.0',
49
+ variable: 'SharedDependencies.FormState',
50
+ },
51
+ 'mobx': {
52
+ version: '~6.6.0',
53
+ variable: 'SharedDependencies.MobX',
54
+ },
55
+ 'mobx-react': {
56
+ version: '~7.5.0',
57
+ variable: 'SharedDependencies.MobXReact',
58
+ },
59
+ 'mobx-utils': {
60
+ version: '~6.0.4',
61
+ variable: 'SharedDependencies.MobXUtils',
62
+ },
63
+ 'react': {
64
+ version: '~17.0.2',
65
+ variable: 'SharedDependencies.React',
66
+ },
67
+ 'react-dom': {
68
+ version: '~17.0.2',
69
+ variable: 'SharedDependencies.ReactDOM',
70
+ },
71
+ });
72
+
73
+ test('doesnt find mismatches when everything ok', () => {
74
+ expect(
75
+ getVersionMismatches(
76
+ getExposedDependencies(),
77
+ getDependencies(),
78
+ getSharedDependencies()
79
+ )
80
+ ).toEqual({});
81
+ });
82
+ });
package/src/loader.tsx CHANGED
@@ -23,12 +23,12 @@ import {
23
23
  EXPOSED_DEPENDENCIES_TOKEN,
24
24
  useCancelation,
25
25
  getJson,
26
- isCompatible,
27
26
  IWebComponent,
28
27
  } from './common';
29
28
  import { EventBus, useEventBus } from './event-bus';
30
29
  import { HistoryManager } from './history-manager';
31
30
  import { EXPOSED_DEPENDENCIES } from './globals';
31
+ import { getVersionMismatches } from './utils';
32
32
 
33
33
  function omitPackageVersion(packageUrl: string) {
34
34
  const chunks = packageUrl.split('@');
@@ -89,29 +89,12 @@ async function getBundleInfo(
89
89
  signal,
90
90
  });
91
91
 
92
- const mismatch = Object.entries(exposedDependencies).reduce(
93
- (result, [dependency, { version: hostVersion }]) => {
94
- const packageVersion = dependencies[dependency];
95
-
96
- if (packageVersion && !isCompatible(hostVersion, packageVersion)) {
97
- result[dependency] = { host: hostVersion, package: packageVersion };
98
- }
99
-
100
- return result;
101
- },
102
- {} as Record<string, { host: string; package: string }>
92
+ const mismatch = getVersionMismatches(
93
+ exposedDependencies,
94
+ dependencies,
95
+ metadata.sharedDependencies
103
96
  );
104
97
 
105
- for (const [dependency, variable] of Object.entries(metadata.sharedDependencies)) {
106
- const packageVersion = dependencies[dependency];
107
-
108
- if (!exposedDependencies[dependency]) {
109
- mismatch[dependency] = { host: 'missing', package: packageVersion };
110
- } else if (exposedDependencies[dependency].variable !== variable) {
111
- mismatch[dependency] = { host: 'wrong global variable', package: packageVersion };
112
- }
113
- }
114
-
115
98
  const hasMismatch = !!Object.keys(mismatch).length;
116
99
  const startupVersion = metadata.bundledWith?.['@servicetitan/startup'];
117
100
  const supportLightBundles = startupVersion && semver.gte(startupVersion, '17.0.0');
package/src/utils.ts ADDED
@@ -0,0 +1,32 @@
1
+ import { ExposedDependencies, isCompatible } from './common';
2
+
3
+ export const getVersionMismatches = (
4
+ exposedDependencies: ExposedDependencies,
5
+ dependencies: Record<string, string>,
6
+ sharedDependencies: Record<string, string>
7
+ ) => {
8
+ const mismatch = Object.entries(exposedDependencies).reduce(
9
+ (result, [dependency, { version: hostVersion }]) => {
10
+ const packageVersion = dependencies[dependency];
11
+
12
+ if (packageVersion && !isCompatible(hostVersion, packageVersion)) {
13
+ result[dependency] = { host: hostVersion, package: packageVersion };
14
+ }
15
+
16
+ return result;
17
+ },
18
+ {} as Record<string, { host: string; package: string }>
19
+ );
20
+
21
+ for (const [dependency, variable] of Object.entries(sharedDependencies)) {
22
+ const packageVersion = dependencies[dependency];
23
+
24
+ if (!exposedDependencies[dependency]) {
25
+ mismatch[dependency] = { host: 'missing', package: packageVersion };
26
+ } else if (exposedDependencies[dependency].variable !== variable) {
27
+ mismatch[dependency] = { host: 'wrong global variable', package: packageVersion };
28
+ }
29
+ }
30
+
31
+ return mismatch;
32
+ };