@squide/firefly 9.3.4 → 10.0.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 (40) hide show
  1. package/CHANGELOG.md +78 -55
  2. package/README.md +2 -2
  3. package/dist/AppRouter.d.ts +1 -1
  4. package/dist/AppRouter.js +6 -6
  5. package/dist/AppRouter.js.map +1 -1
  6. package/dist/AppRouterContext.js +4 -4
  7. package/dist/AppRouterContext.js.map +1 -1
  8. package/dist/AppRouterReducer.js +30 -30
  9. package/dist/AppRouterReducer.js.map +1 -1
  10. package/dist/FireflyRuntime.js +8 -8
  11. package/dist/FireflyRuntime.js.map +1 -1
  12. package/dist/RootRoute.js +3 -3
  13. package/dist/RootRoute.js.map +1 -1
  14. package/dist/boostrap.d.ts +1 -1
  15. package/dist/boostrap.js +16 -16
  16. package/dist/boostrap.js.map +1 -1
  17. package/dist/index.js +4 -4
  18. package/dist/useDeferredRegistrations.js +3 -3
  19. package/dist/useDeferredRegistrations.js.map +1 -1
  20. package/dist/useIsActiveRouteProtected.js +7 -7
  21. package/dist/useIsActiveRouteProtected.js.map +1 -1
  22. package/dist/useNavigationItems.js +3 -3
  23. package/dist/useNavigationItems.js.map +1 -1
  24. package/dist/useProtectedDataQueries.js +3 -3
  25. package/dist/useProtectedDataQueries.js.map +1 -1
  26. package/dist/usePublicDataQueries.js +3 -3
  27. package/dist/usePublicDataQueries.js.map +1 -1
  28. package/dist/useRegisterDeferredRegistrations.js +3 -3
  29. package/dist/useRegisterDeferredRegistrations.js.map +1 -1
  30. package/dist/useStrictRegistrationMode.js +12 -12
  31. package/dist/useStrictRegistrationMode.js.map +1 -1
  32. package/dist/useUpdateDeferredRegistrations.js +3 -3
  33. package/dist/useUpdateDeferredRegistrations.js.map +1 -1
  34. package/package.json +20 -25
  35. package/src/AppRouter.tsx +1 -1
  36. package/src/RootRoute.tsx +1 -1
  37. package/src/boostrap.ts +7 -7
  38. package/src/useIsActiveRouteProtected.ts +1 -1
  39. package/src/useProtectedDataQueries.ts +1 -1
  40. package/src/usePublicDataQueries.ts +1 -1
package/CHANGELOG.md CHANGED
@@ -1,19 +1,42 @@
1
1
  # @squide/firefly
2
2
 
3
+ ## 10.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#244](https://github.com/workleap/wl-squide/pull/244) [`5d13eb0`](https://github.com/workleap/wl-squide/commit/5d13eb038a724b499b820d7e1dc864c87954510b) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Updated dependencies.
8
+
9
+ - Updated dependencies [[`5d13eb0`](https://github.com/workleap/wl-squide/commit/5d13eb038a724b499b820d7e1dc864c87954510b)]:
10
+ - @squide/module-federation@6.2.3
11
+ - @squide/react-router@7.0.1
12
+ - @squide/core@5.4.3
13
+ - @squide/msw@3.2.3
14
+
15
+ ## 10.0.0
16
+
17
+ ### Major Changes
18
+
19
+ - [#240](https://github.com/workleap/wl-squide/pull/240) [`9a85d23`](https://github.com/workleap/wl-squide/commit/9a85d23b03584e9d98c28d504f5cef3e62b298db) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Updated dependencies to React Router v7.
20
+
21
+ ### Patch Changes
22
+
23
+ - Updated dependencies [[`9a85d23`](https://github.com/workleap/wl-squide/commit/9a85d23b03584e9d98c28d504f5cef3e62b298db)]:
24
+ - @squide/react-router@7.0.0
25
+
3
26
  ## 9.3.4
4
27
 
5
28
  ### Patch Changes
6
29
 
7
- - Updated dependencies [[`84cf5d0`](https://github.com/gsoft-inc/wl-squide/commit/84cf5d071164465cfc8e8e1d15369d781eea8f3f)]:
30
+ - Updated dependencies [[`84cf5d0`](https://github.com/workleap/wl-squide/commit/84cf5d071164465cfc8e8e1d15369d781eea8f3f)]:
8
31
  - @squide/react-router@6.4.4
9
32
 
10
33
  ## 9.3.3
11
34
 
12
35
  ### Patch Changes
13
36
 
14
- - [#231](https://github.com/gsoft-inc/wl-squide/pull/231) [`3c6bce0`](https://github.com/gsoft-inc/wl-squide/commit/3c6bce0cd559d0b8517d644661b6fb2b818ab2f6) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Packages now includes source code and sourcemap.
37
+ - [#231](https://github.com/workleap/wl-squide/pull/231) [`3c6bce0`](https://github.com/workleap/wl-squide/commit/3c6bce0cd559d0b8517d644661b6fb2b818ab2f6) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Packages now includes source code and sourcemap.
15
38
 
16
- - Updated dependencies [[`3c6bce0`](https://github.com/gsoft-inc/wl-squide/commit/3c6bce0cd559d0b8517d644661b6fb2b818ab2f6)]:
39
+ - Updated dependencies [[`3c6bce0`](https://github.com/workleap/wl-squide/commit/3c6bce0cd559d0b8517d644661b6fb2b818ab2f6)]:
17
40
  - @squide/module-federation@6.2.2
18
41
  - @squide/react-router@6.4.3
19
42
  - @squide/core@5.4.2
@@ -23,16 +46,16 @@
23
46
 
24
47
  ### Patch Changes
25
48
 
26
- - Updated dependencies [[`4eb46d6`](https://github.com/gsoft-inc/wl-squide/commit/4eb46d69283804a5809494f7275f9d447022a97d)]:
49
+ - Updated dependencies [[`4eb46d6`](https://github.com/workleap/wl-squide/commit/4eb46d69283804a5809494f7275f9d447022a97d)]:
27
50
  - @squide/react-router@6.4.2
28
51
 
29
52
  ## 9.3.1
30
53
 
31
54
  ### Patch Changes
32
55
 
33
- - [#221](https://github.com/gsoft-inc/wl-squide/pull/221) [`8411080`](https://github.com/gsoft-inc/wl-squide/commit/8411080dfd0df6d0eafb01888298154fa5e5d925) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Fix deferred registrations.
56
+ - [#221](https://github.com/workleap/wl-squide/pull/221) [`8411080`](https://github.com/workleap/wl-squide/commit/8411080dfd0df6d0eafb01888298154fa5e5d925) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Fix deferred registrations.
34
57
 
35
- - Updated dependencies [[`8411080`](https://github.com/gsoft-inc/wl-squide/commit/8411080dfd0df6d0eafb01888298154fa5e5d925)]:
58
+ - Updated dependencies [[`8411080`](https://github.com/workleap/wl-squide/commit/8411080dfd0df6d0eafb01888298154fa5e5d925)]:
36
59
  - @squide/module-federation@6.2.1
37
60
  - @squide/react-router@6.4.1
38
61
  - @squide/core@5.4.1
@@ -42,11 +65,11 @@
42
65
 
43
66
  ### Minor Changes
44
67
 
45
- - [#219](https://github.com/gsoft-inc/wl-squide/pull/219) [`25cb482`](https://github.com/gsoft-inc/wl-squide/commit/25cb482779ee280f3f7109de4607b92dcfeef7f3) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Now dispatching events to enable instrumentation packages for observability platforms.
68
+ - [#219](https://github.com/workleap/wl-squide/pull/219) [`25cb482`](https://github.com/workleap/wl-squide/commit/25cb482779ee280f3f7109de4607b92dcfeef7f3) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Now dispatching events to enable instrumentation packages for observability platforms.
46
69
 
47
70
  ### Patch Changes
48
71
 
49
- - Updated dependencies [[`25cb482`](https://github.com/gsoft-inc/wl-squide/commit/25cb482779ee280f3f7109de4607b92dcfeef7f3)]:
72
+ - Updated dependencies [[`25cb482`](https://github.com/workleap/wl-squide/commit/25cb482779ee280f3f7109de4607b92dcfeef7f3)]:
50
73
  - @squide/module-federation@6.2.0
51
74
  - @squide/react-router@6.4.0
52
75
  - @squide/core@5.4.0
@@ -56,7 +79,7 @@
56
79
 
57
80
  ### Patch Changes
58
81
 
59
- - Updated dependencies [[`8ee26fd`](https://github.com/gsoft-inc/wl-squide/commit/8ee26fd6ab7126bacf3dec900629fbd045dfd180)]:
82
+ - Updated dependencies [[`8ee26fd`](https://github.com/workleap/wl-squide/commit/8ee26fd6ab7126bacf3dec900629fbd045dfd180)]:
60
83
  - @squide/react-router@6.3.0
61
84
  - @squide/core@5.3.0
62
85
  - @squide/module-federation@6.1.1
@@ -66,7 +89,7 @@
66
89
 
67
90
  ### Minor Changes
68
91
 
69
- - [#204](https://github.com/gsoft-inc/wl-squide/pull/204) [`d3f7b9c`](https://github.com/gsoft-inc/wl-squide/commit/d3f7b9c6aa80249cd898916f6315ea27c4526812) Thanks [@patricklafrance](https://github.com/patricklafrance)! - The `registerNavigationItem` function now accepts a `sectionId` option to nest the item under a specific navigation section:
92
+ - [#204](https://github.com/workleap/wl-squide/pull/204) [`d3f7b9c`](https://github.com/workleap/wl-squide/commit/d3f7b9c6aa80249cd898916f6315ea27c4526812) Thanks [@patricklafrance](https://github.com/patricklafrance)! - The `registerNavigationItem` function now accepts a `sectionId` option to nest the item under a specific navigation section:
70
93
 
71
94
  ```ts
72
95
  runtime.registerNavigationItem(
@@ -83,7 +106,7 @@
83
106
 
84
107
  ### Patch Changes
85
108
 
86
- - Updated dependencies [[`d3f7b9c`](https://github.com/gsoft-inc/wl-squide/commit/d3f7b9c6aa80249cd898916f6315ea27c4526812)]:
109
+ - Updated dependencies [[`d3f7b9c`](https://github.com/workleap/wl-squide/commit/d3f7b9c6aa80249cd898916f6315ea27c4526812)]:
87
110
  - @squide/module-federation@6.1.0
88
111
  - @squide/react-router@6.2.0
89
112
  - @squide/core@5.2.0
@@ -93,13 +116,13 @@
93
116
 
94
117
  ### Patch Changes
95
118
 
96
- - [#197](https://github.com/gsoft-inc/wl-squide/pull/197) [`0c43a84`](https://github.com/gsoft-inc/wl-squide/commit/0c43a8441d3079e0206c9c0ebbc11c6401de82ae) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Fix useProtectedDataQueries isReady result value.
119
+ - [#197](https://github.com/workleap/wl-squide/pull/197) [`0c43a84`](https://github.com/workleap/wl-squide/commit/0c43a8441d3079e0206c9c0ebbc11c6401de82ae) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Fix useProtectedDataQueries isReady result value.
97
120
 
98
121
  ## 9.1.0
99
122
 
100
123
  ### Minor Changes
101
124
 
102
- - [#195](https://github.com/gsoft-inc/wl-squide/pull/195) [`98e4839`](https://github.com/gsoft-inc/wl-squide/commit/98e48393fda27ebb2974ecc1e2f71b09f4e84953) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Replaced the `ManagedRoutes` placeholder by the `PublicRoutes` and `ProtectedRoutes` placeholder.
125
+ - [#195](https://github.com/workleap/wl-squide/pull/195) [`98e4839`](https://github.com/workleap/wl-squide/commit/98e48393fda27ebb2974ecc1e2f71b09f4e84953) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Replaced the `ManagedRoutes` placeholder by the `PublicRoutes` and `ProtectedRoutes` placeholder.
103
126
 
104
127
  Before:
105
128
 
@@ -193,7 +216,7 @@
193
216
 
194
217
  ### Patch Changes
195
218
 
196
- - Updated dependencies [[`98e4839`](https://github.com/gsoft-inc/wl-squide/commit/98e48393fda27ebb2974ecc1e2f71b09f4e84953)]:
219
+ - Updated dependencies [[`98e4839`](https://github.com/workleap/wl-squide/commit/98e48393fda27ebb2974ecc1e2f71b09f4e84953)]:
197
220
  - @squide/react-router@6.1.0
198
221
  - @squide/core@5.1.0
199
222
  - @squide/module-federation@6.0.2
@@ -203,9 +226,9 @@
203
226
 
204
227
  ### Patch Changes
205
228
 
206
- - [#191](https://github.com/gsoft-inc/wl-squide/pull/191) [`2b62c53`](https://github.com/gsoft-inc/wl-squide/commit/2b62c539b0f3123cb47475566181e0b446ea6b40) Thanks [@patricklafrance](https://github.com/patricklafrance)! - `useNavigationItems` now accepts `useRuntimeNavigationItems` options.
229
+ - [#191](https://github.com/workleap/wl-squide/pull/191) [`2b62c53`](https://github.com/workleap/wl-squide/commit/2b62c539b0f3123cb47475566181e0b446ea6b40) Thanks [@patricklafrance](https://github.com/patricklafrance)! - `useNavigationItems` now accepts `useRuntimeNavigationItems` options.
207
230
 
208
- - Updated dependencies [[`2b62c53`](https://github.com/gsoft-inc/wl-squide/commit/2b62c539b0f3123cb47475566181e0b446ea6b40)]:
231
+ - Updated dependencies [[`2b62c53`](https://github.com/workleap/wl-squide/commit/2b62c539b0f3123cb47475566181e0b446ea6b40)]:
209
232
  - @squide/react-router@6.0.1
210
233
  - @squide/core@5.0.1
211
234
  - @squide/module-federation@6.0.1
@@ -215,7 +238,7 @@
215
238
 
216
239
  ### Major Changes
217
240
 
218
- - [#182](https://github.com/gsoft-inc/wl-squide/pull/182) [`58cf066`](https://github.com/gsoft-inc/wl-squide/commit/58cf066e87e23611510c254cca96016bd2bad08a) Thanks [@patricklafrance](https://github.com/patricklafrance)! - ## Firefly v9
241
+ - [#182](https://github.com/workleap/wl-squide/pull/182) [`58cf066`](https://github.com/workleap/wl-squide/commit/58cf066e87e23611510c254cca96016bd2bad08a) Thanks [@patricklafrance](https://github.com/patricklafrance)! - ## Firefly v9
219
242
 
220
243
  This major version of @squide/firefly introduces TanStack Query as the official library for fetching the global data of a Squide's application and features a complete rewrite of the AppRouter component, which now uses a state machine to manage the application's bootstrapping flow.
221
244
 
@@ -223,7 +246,7 @@
223
246
 
224
247
  Finally, with v9, Squide's philosophy has evolved. We used to describe Squide as a shell for federated applications. Now, we refer to Squide as a shell for modular applications. After playing with Squide's local module feature for a while, we discovered that Squide offers significant value even for non-federated applications, which triggered this shift in philosophy.
225
248
 
226
- > For a full breakdown of the changres and a migration procedure, read the following [documentation](https://gsoft-inc.github.io/wl-squide/guides/migrate-to-firefly-v9/).
249
+ > For a full breakdown of the changres and a migration procedure, read the following [documentation](https://workleap.github.io/wl-squide/guides/migrate-to-firefly-v9/).
227
250
 
228
251
  ## Breaking changes
229
252
 
@@ -265,11 +288,11 @@
265
288
  - Navigation items now include a `$canRender` option, enabling modules to control whether a navigation item should be rendered.
266
289
  - New `$key` option for navigation items.
267
290
 
268
- For more details about the changes and a migration procedure, read the following [documentation](https://gsoft-inc.github.io/wl-squide/guides/migrate-to-firefly-v9/).
291
+ For more details about the changes and a migration procedure, read the following [documentation](https://workleap.github.io/wl-squide/guides/migrate-to-firefly-v9/).
269
292
 
270
293
  ### Patch Changes
271
294
 
272
- - Updated dependencies [[`58cf066`](https://github.com/gsoft-inc/wl-squide/commit/58cf066e87e23611510c254cca96016bd2bad08a)]:
295
+ - Updated dependencies [[`58cf066`](https://github.com/workleap/wl-squide/commit/58cf066e87e23611510c254cca96016bd2bad08a)]:
273
296
  - @squide/core@5.0.0
274
297
  - @squide/module-federation@6.0.0
275
298
  - @squide/msw@3.0.0
@@ -279,7 +302,7 @@
279
302
 
280
303
  ### Major Changes
281
304
 
282
- - [#168](https://github.com/gsoft-inc/wl-squide/pull/168) [`89ace29`](https://github.com/gsoft-inc/wl-squide/commit/89ace29b9aeadbbe83cfa71dd137b9f1a115c283) Thanks [@patricklafrance](https://github.com/patricklafrance)! - This release Migrates Squide from Webpack Module Federation to [Module Federation 2.0](https://module-federation.io/guide/start/quick-start.html).
305
+ - [#168](https://github.com/workleap/wl-squide/pull/168) [`89ace29`](https://github.com/workleap/wl-squide/commit/89ace29b9aeadbbe83cfa71dd137b9f1a115c283) Thanks [@patricklafrance](https://github.com/patricklafrance)! - This release Migrates Squide from Webpack Module Federation to [Module Federation 2.0](https://module-federation.io/guide/start/quick-start.html).
283
306
 
284
307
  This release deprecates the following packages:
285
308
 
@@ -390,7 +413,7 @@
390
413
 
391
414
  ### Patch Changes
392
415
 
393
- - Updated dependencies [[`89ace29`](https://github.com/gsoft-inc/wl-squide/commit/89ace29b9aeadbbe83cfa71dd137b9f1a115c283)]:
416
+ - Updated dependencies [[`89ace29`](https://github.com/workleap/wl-squide/commit/89ace29b9aeadbbe83cfa71dd137b9f1a115c283)]:
394
417
  - @squide/module-federation@5.0.0
395
418
  - @squide/react-router@5.0.0
396
419
  - @squide/core@4.0.0
@@ -400,20 +423,20 @@
400
423
 
401
424
  ### Major Changes
402
425
 
403
- - [#158](https://github.com/gsoft-inc/wl-squide/pull/158) [`b8d5ea4`](https://github.com/gsoft-inc/wl-squide/commit/b8d5ea42c23c3291e428c9ff907a7cff2f3211eb) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Cleaned up dependencies.
426
+ - [#158](https://github.com/workleap/wl-squide/pull/158) [`b8d5ea4`](https://github.com/workleap/wl-squide/commit/b8d5ea42c23c3291e428c9ff907a7cff2f3211eb) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Cleaned up dependencies.
404
427
 
405
428
  ### Patch Changes
406
429
 
407
- - Updated dependencies [[`b8d5ea4`](https://github.com/gsoft-inc/wl-squide/commit/b8d5ea42c23c3291e428c9ff907a7cff2f3211eb)]:
430
+ - Updated dependencies [[`b8d5ea4`](https://github.com/workleap/wl-squide/commit/b8d5ea42c23c3291e428c9ff907a7cff2f3211eb)]:
408
431
  - @squide/webpack-module-federation@4.0.0
409
432
 
410
433
  ## 6.0.4
411
434
 
412
435
  ### Patch Changes
413
436
 
414
- - [#154](https://github.com/gsoft-inc/wl-squide/pull/154) [`e440515`](https://github.com/gsoft-inc/wl-squide/commit/e4405150a3c364fd4029c345399891614a434176) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Updated packages.
437
+ - [#154](https://github.com/workleap/wl-squide/pull/154) [`e440515`](https://github.com/workleap/wl-squide/commit/e4405150a3c364fd4029c345399891614a434176) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Updated packages.
415
438
 
416
- - Updated dependencies [[`e440515`](https://github.com/gsoft-inc/wl-squide/commit/e4405150a3c364fd4029c345399891614a434176), [`e440515`](https://github.com/gsoft-inc/wl-squide/commit/e4405150a3c364fd4029c345399891614a434176)]:
439
+ - Updated dependencies [[`e440515`](https://github.com/workleap/wl-squide/commit/e4405150a3c364fd4029c345399891614a434176), [`e440515`](https://github.com/workleap/wl-squide/commit/e4405150a3c364fd4029c345399891614a434176)]:
417
440
  - @squide/webpack-module-federation@3.0.8
418
441
  - @squide/react-router@4.1.3
419
442
  - @squide/msw@2.0.13
@@ -423,9 +446,9 @@
423
446
 
424
447
  ### Patch Changes
425
448
 
426
- - [#152](https://github.com/gsoft-inc/wl-squide/pull/152) [`d27fe71`](https://github.com/gsoft-inc/wl-squide/commit/d27fe717f899e395c3f01af86aac3e015159d719) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Updated dependency versions.
449
+ - [#152](https://github.com/workleap/wl-squide/pull/152) [`d27fe71`](https://github.com/workleap/wl-squide/commit/d27fe717f899e395c3f01af86aac3e015159d719) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Updated dependency versions.
427
450
 
428
- - Updated dependencies [[`d27fe71`](https://github.com/gsoft-inc/wl-squide/commit/d27fe717f899e395c3f01af86aac3e015159d719)]:
451
+ - Updated dependencies [[`d27fe71`](https://github.com/workleap/wl-squide/commit/d27fe717f899e395c3f01af86aac3e015159d719)]:
429
452
  - @squide/webpack-module-federation@3.0.7
430
453
  - @squide/react-router@4.1.2
431
454
  - @squide/core@3.3.2
@@ -435,7 +458,7 @@
435
458
 
436
459
  ### Patch Changes
437
460
 
438
- - Updated dependencies [[`d091846`](https://github.com/gsoft-inc/wl-squide/commit/d091846502bed6b783b69ab8eff7ae36d8e25449)]:
461
+ - Updated dependencies [[`d091846`](https://github.com/workleap/wl-squide/commit/d091846502bed6b783b69ab8eff7ae36d8e25449)]:
439
462
  - @squide/core@3.3.1
440
463
  - @squide/msw@2.0.11
441
464
  - @squide/react-router@4.1.1
@@ -445,20 +468,20 @@
445
468
 
446
469
  ### Patch Changes
447
470
 
448
- - [#148](https://github.com/gsoft-inc/wl-squide/pull/148) [`a448347`](https://github.com/gsoft-inc/wl-squide/commit/a4483478bb8b7ef1f24513244e8c2410bdb86bc1) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Internal changes.
471
+ - [#148](https://github.com/workleap/wl-squide/pull/148) [`a448347`](https://github.com/workleap/wl-squide/commit/a4483478bb8b7ef1f24513244e8c2410bdb86bc1) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Internal changes.
449
472
 
450
- - Updated dependencies [[`a448347`](https://github.com/gsoft-inc/wl-squide/commit/a4483478bb8b7ef1f24513244e8c2410bdb86bc1)]:
473
+ - Updated dependencies [[`a448347`](https://github.com/workleap/wl-squide/commit/a4483478bb8b7ef1f24513244e8c2410bdb86bc1)]:
451
474
  - @squide/react-router@4.1.0
452
475
 
453
476
  ## 6.0.0
454
477
 
455
478
  ### Major Changes
456
479
 
457
- - [#144](https://github.com/gsoft-inc/wl-squide/pull/144) [`39d0bbe4`](https://github.com/gsoft-inc/wl-squide/commit/39d0bbe45902d54832e9aa8deb2c1949a2cf3c5f) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Moved the webpack define functions to the new `@squide/firefly-configs` package.
480
+ - [#144](https://github.com/workleap/wl-squide/pull/144) [`39d0bbe4`](https://github.com/workleap/wl-squide/commit/39d0bbe45902d54832e9aa8deb2c1949a2cf3c5f) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Moved the webpack define functions to the new `@squide/firefly-configs` package.
458
481
 
459
482
  ### Patch Changes
460
483
 
461
- - Updated dependencies [[`39d0bbe4`](https://github.com/gsoft-inc/wl-squide/commit/39d0bbe45902d54832e9aa8deb2c1949a2cf3c5f), [`39d0bbe4`](https://github.com/gsoft-inc/wl-squide/commit/39d0bbe45902d54832e9aa8deb2c1949a2cf3c5f)]:
484
+ - Updated dependencies [[`39d0bbe4`](https://github.com/workleap/wl-squide/commit/39d0bbe45902d54832e9aa8deb2c1949a2cf3c5f), [`39d0bbe4`](https://github.com/workleap/wl-squide/commit/39d0bbe45902d54832e9aa8deb2c1949a2cf3c5f)]:
462
485
  - @squide/core@3.3.0
463
486
  - @squide/react-router@4.0.4
464
487
  - @squide/msw@2.0.10
@@ -468,38 +491,38 @@
468
491
 
469
492
  ### Patch Changes
470
493
 
471
- - [#140](https://github.com/gsoft-inc/wl-squide/pull/140) [`6eaf4ac3`](https://github.com/gsoft-inc/wl-squide/commit/6eaf4ac3f6ac88b62045ce280562a5887589026b) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Internal changes
494
+ - [#140](https://github.com/workleap/wl-squide/pull/140) [`6eaf4ac3`](https://github.com/workleap/wl-squide/commit/6eaf4ac3f6ac88b62045ce280562a5887589026b) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Internal changes
472
495
 
473
- - Updated dependencies [[`6eaf4ac3`](https://github.com/gsoft-inc/wl-squide/commit/6eaf4ac3f6ac88b62045ce280562a5887589026b)]:
496
+ - Updated dependencies [[`6eaf4ac3`](https://github.com/workleap/wl-squide/commit/6eaf4ac3f6ac88b62045ce280562a5887589026b)]:
474
497
  - @squide/webpack-configs@1.2.0
475
498
 
476
499
  ## 4.0.3
477
500
 
478
501
  ### Patch Changes
479
502
 
480
- - [#137](https://github.com/gsoft-inc/wl-squide/pull/137) [`2f5946f9`](https://github.com/gsoft-inc/wl-squide/commit/2f5946f9c51740dc0d207d53085b143d9f1e407c) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Improved the no custom 404 route handling.
503
+ - [#137](https://github.com/workleap/wl-squide/pull/137) [`2f5946f9`](https://github.com/workleap/wl-squide/commit/2f5946f9c51740dc0d207d53085b143d9f1e407c) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Improved the no custom 404 route handling.
481
504
 
482
- - Updated dependencies [[`2f5946f9`](https://github.com/gsoft-inc/wl-squide/commit/2f5946f9c51740dc0d207d53085b143d9f1e407c)]:
505
+ - Updated dependencies [[`2f5946f9`](https://github.com/workleap/wl-squide/commit/2f5946f9c51740dc0d207d53085b143d9f1e407c)]:
483
506
  - @squide/react-router@4.0.3
484
507
 
485
508
  ## 4.0.2
486
509
 
487
510
  ### Patch Changes
488
511
 
489
- - [#135](https://github.com/gsoft-inc/wl-squide/pull/135) [`8e73083`](https://github.com/gsoft-inc/wl-squide/commit/8e73083bb90a6f23495ac6a8dca0245862ee2c9a) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Fixing a remaining issue with deferred registrations that depends on protected data.
512
+ - [#135](https://github.com/workleap/wl-squide/pull/135) [`8e73083`](https://github.com/workleap/wl-squide/commit/8e73083bb90a6f23495ac6a8dca0245862ee2c9a) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Fixing a remaining issue with deferred registrations that depends on protected data.
490
513
 
491
- - Updated dependencies [[`8e73083`](https://github.com/gsoft-inc/wl-squide/commit/8e73083bb90a6f23495ac6a8dca0245862ee2c9a)]:
514
+ - Updated dependencies [[`8e73083`](https://github.com/workleap/wl-squide/commit/8e73083bb90a6f23495ac6a8dca0245862ee2c9a)]:
492
515
  - @squide/react-router@4.0.2
493
516
 
494
517
  ## 4.0.1
495
518
 
496
519
  ### Patch Changes
497
520
 
498
- - [#133](https://github.com/gsoft-inc/wl-squide/pull/133) [`1cda1be`](https://github.com/gsoft-inc/wl-squide/commit/1cda1be30779d1a1d5d2e21eac043baff20c0f7e) Thanks [@patricklafrance](https://github.com/patricklafrance)! - - To prevent the consumer from always handling the AbortSignal error, a default catch has been added to the `AppRouter` component. The consumer can still handler the AbortSignal error if he needs to.
521
+ - [#133](https://github.com/workleap/wl-squide/pull/133) [`1cda1be`](https://github.com/workleap/wl-squide/commit/1cda1be30779d1a1d5d2e21eac043baff20c0f7e) Thanks [@patricklafrance](https://github.com/patricklafrance)! - - To prevent the consumer from always handling the AbortSignal error, a default catch has been added to the `AppRouter` component. The consumer can still handler the AbortSignal error if he needs to.
499
522
 
500
523
  - When a user makes a direct hit to a deferred route that depends on protected data, the protected data was undefined. The reason was that by default, an unregistered route was considered as a public route. The code has been updated to consider an uregistered route as a protected route. The upside is that deferred routes can now depends on protected data. The downside is that a public deferred route will trigger the loading of the protected data. As we don't expect to have public deferred route at the moment it doesn't seems like an issue.
501
524
 
502
- - Updated dependencies [[`1cda1be`](https://github.com/gsoft-inc/wl-squide/commit/1cda1be30779d1a1d5d2e21eac043baff20c0f7e), [`1cda1be`](https://github.com/gsoft-inc/wl-squide/commit/1cda1be30779d1a1d5d2e21eac043baff20c0f7e), [`1cda1be`](https://github.com/gsoft-inc/wl-squide/commit/1cda1be30779d1a1d5d2e21eac043baff20c0f7e)]:
525
+ - Updated dependencies [[`1cda1be`](https://github.com/workleap/wl-squide/commit/1cda1be30779d1a1d5d2e21eac043baff20c0f7e), [`1cda1be`](https://github.com/workleap/wl-squide/commit/1cda1be30779d1a1d5d2e21eac043baff20c0f7e), [`1cda1be`](https://github.com/workleap/wl-squide/commit/1cda1be30779d1a1d5d2e21eac043baff20c0f7e)]:
503
526
  - @squide/webpack-module-federation@3.0.4
504
527
  - @squide/react-router@4.0.1
505
528
  - @squide/core@3.2.1
@@ -510,7 +533,7 @@
510
533
 
511
534
  ### Major Changes
512
535
 
513
- - [#131](https://github.com/gsoft-inc/wl-squide/pull/131) [`7caa44b`](https://github.com/gsoft-inc/wl-squide/commit/7caa44ba81a97d0705caf2f56e6536ae285c920d) Thanks [@patricklafrance](https://github.com/patricklafrance)! - - The `AppRouter` component now requires to define a `RouterProvider` as a child. This change has been made to provide more flexibility on the consumer side about the definition of the React Router router.
536
+ - [#131](https://github.com/workleap/wl-squide/pull/131) [`7caa44b`](https://github.com/workleap/wl-squide/commit/7caa44ba81a97d0705caf2f56e6536ae285c920d) Thanks [@patricklafrance](https://github.com/patricklafrance)! - - The `AppRouter` component now requires to define a `RouterProvider` as a child. This change has been made to provide more flexibility on the consumer side about the definition of the React Router router.
514
537
 
515
538
  Before:
516
539
 
@@ -581,7 +604,7 @@
581
604
 
582
605
  ### Patch Changes
583
606
 
584
- - Updated dependencies [[`7caa44b`](https://github.com/gsoft-inc/wl-squide/commit/7caa44ba81a97d0705caf2f56e6536ae285c920d), [`7caa44b`](https://github.com/gsoft-inc/wl-squide/commit/7caa44ba81a97d0705caf2f56e6536ae285c920d)]:
607
+ - Updated dependencies [[`7caa44b`](https://github.com/workleap/wl-squide/commit/7caa44ba81a97d0705caf2f56e6536ae285c920d), [`7caa44b`](https://github.com/workleap/wl-squide/commit/7caa44ba81a97d0705caf2f56e6536ae285c920d)]:
585
608
  - @squide/core@3.2.0
586
609
  - @squide/react-router@4.0.0
587
610
  - @squide/msw@2.0.8
@@ -592,9 +615,9 @@
592
615
 
593
616
  ### Patch Changes
594
617
 
595
- - [#128](https://github.com/gsoft-inc/wl-squide/pull/128) [`4c3b6f1`](https://github.com/gsoft-inc/wl-squide/commit/4c3b6f1929364844dda6c1190fc45c3b037e8df9) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Internally changed the usage of `setInterval` for `useSyncExternalStore`.
618
+ - [#128](https://github.com/workleap/wl-squide/pull/128) [`4c3b6f1`](https://github.com/workleap/wl-squide/commit/4c3b6f1929364844dda6c1190fc45c3b037e8df9) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Internally changed the usage of `setInterval` for `useSyncExternalStore`.
596
619
 
597
- - Updated dependencies [[`4c3b6f1`](https://github.com/gsoft-inc/wl-squide/commit/4c3b6f1929364844dda6c1190fc45c3b037e8df9)]:
620
+ - Updated dependencies [[`4c3b6f1`](https://github.com/workleap/wl-squide/commit/4c3b6f1929364844dda6c1190fc45c3b037e8df9)]:
598
621
  - @squide/core@3.1.1
599
622
  - @squide/msw@2.0.7
600
623
  - @squide/webpack-module-federation@3.0.2
@@ -605,26 +628,26 @@
605
628
 
606
629
  ### Patch Changes
607
630
 
608
- - [#122](https://github.com/gsoft-inc/wl-squide/pull/122) [`cda7873`](https://github.com/gsoft-inc/wl-squide/commit/cda7873dcffbf424a625cf40c56a12eacbb2632e) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Internal minor changes
631
+ - [#122](https://github.com/workleap/wl-squide/pull/122) [`cda7873`](https://github.com/workleap/wl-squide/commit/cda7873dcffbf424a625cf40c56a12eacbb2632e) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Internal minor changes
609
632
 
610
- - Updated dependencies [[`cda7873`](https://github.com/gsoft-inc/wl-squide/commit/cda7873dcffbf424a625cf40c56a12eacbb2632e)]:
633
+ - Updated dependencies [[`cda7873`](https://github.com/workleap/wl-squide/commit/cda7873dcffbf424a625cf40c56a12eacbb2632e)]:
611
634
  - @squide/msw@2.0.6
612
635
 
613
636
  ## 3.0.1
614
637
 
615
638
  ### Patch Changes
616
639
 
617
- - [#118](https://github.com/gsoft-inc/wl-squide/pull/118) [`4864d30`](https://github.com/gsoft-inc/wl-squide/commit/4864d30764021a91d5827abb5b3ae7a4b4302c31) Thanks [@tjosepo](https://github.com/tjosepo)! - Omit "router" from routerProviderProps
640
+ - [#118](https://github.com/workleap/wl-squide/pull/118) [`4864d30`](https://github.com/workleap/wl-squide/commit/4864d30764021a91d5827abb5b3ae7a4b4302c31) Thanks [@tjosepo](https://github.com/tjosepo)! - Omit "router" from routerProviderProps
618
641
 
619
642
  ## 3.0.0
620
643
 
621
644
  ### Minor Changes
622
645
 
623
- - [#115](https://github.com/gsoft-inc/wl-squide/pull/115) [`568255a`](https://github.com/gsoft-inc/wl-squide/commit/568255a50a519e7d19c8c2b03909559686cd24c4) Thanks [@patricklafrance](https://github.com/patricklafrance)! - - A new `features` option is now available with the `defineConfig` functions to add the `@squide/i18next` package to the shared dependencies.
646
+ - [#115](https://github.com/workleap/wl-squide/pull/115) [`568255a`](https://github.com/workleap/wl-squide/commit/568255a50a519e7d19c8c2b03909559686cd24c4) Thanks [@patricklafrance](https://github.com/patricklafrance)! - - A new `features` option is now available with the `defineConfig` functions to add the `@squide/i18next` package to the shared dependencies.
624
647
 
625
648
  ### Patch Changes
626
649
 
627
- - Updated dependencies [[`568255a`](https://github.com/gsoft-inc/wl-squide/commit/568255a50a519e7d19c8c2b03909559686cd24c4), [`568255a`](https://github.com/gsoft-inc/wl-squide/commit/568255a50a519e7d19c8c2b03909559686cd24c4), [`568255a`](https://github.com/gsoft-inc/wl-squide/commit/568255a50a519e7d19c8c2b03909559686cd24c4)]:
650
+ - Updated dependencies [[`568255a`](https://github.com/workleap/wl-squide/commit/568255a50a519e7d19c8c2b03909559686cd24c4), [`568255a`](https://github.com/workleap/wl-squide/commit/568255a50a519e7d19c8c2b03909559686cd24c4), [`568255a`](https://github.com/workleap/wl-squide/commit/568255a50a519e7d19c8c2b03909559686cd24c4)]:
628
651
  - @squide/msw@2.0.5
629
652
  - @squide/core@3.1.0
630
653
  - @squide/webpack-configs@1.1.0
@@ -635,14 +658,14 @@
635
658
 
636
659
  ### Minor Changes
637
660
 
638
- - [#112](https://github.com/gsoft-inc/wl-squide/pull/112) [`a9dda1c`](https://github.com/gsoft-inc/wl-squide/commit/a9dda1c3b010f616556fc3313c1934e20a26bc11) Thanks [@patricklafrance](https://github.com/patricklafrance)! - - Added a new `FireflyRuntime` class. This class should be used by all consumer applications rather than the previous `Runtime` class from `@squide/react-router`.
661
+ - [#112](https://github.com/workleap/wl-squide/pull/112) [`a9dda1c`](https://github.com/workleap/wl-squide/commit/a9dda1c3b010f616556fc3313c1934e20a26bc11) Thanks [@patricklafrance](https://github.com/patricklafrance)! - - Added a new `FireflyRuntime` class. This class should be used by all consumer applications rather than the previous `Runtime` class from `@squide/react-router`.
639
662
  - The `FireflyRuntime` class has a `registerRequestHandlers` function and a `requestHandlers` getter. Consumer applications should use these instead of the `MSwPlugin`.
640
663
  - Added a new layer of define functions (`defineDevHostConfig`, `defineBuildHostConfig`, `defineDevRemoteModuleConfig`, `defineBuildRemoteModuleConfig`). These functions should be used by all consumer applications rather than the previous define functions from `@squide/wbepack-module-federation`.
641
664
  - Forward every exports from `@squide/core`, `@squide/react-router`, `@squide/webpack-module-federation`, `@squide/webpack-configs` and `@squide/msw`. Consumer applications should now import everything from `@squide/firefly` except the fakes implementations that should still be imported from `@squide/fakes`.
642
665
 
643
666
  ### Patch Changes
644
667
 
645
- - Updated dependencies [[`a9dda1c`](https://github.com/gsoft-inc/wl-squide/commit/a9dda1c3b010f616556fc3313c1934e20a26bc11), [`a9dda1c`](https://github.com/gsoft-inc/wl-squide/commit/a9dda1c3b010f616556fc3313c1934e20a26bc11), [`a9dda1c`](https://github.com/gsoft-inc/wl-squide/commit/a9dda1c3b010f616556fc3313c1934e20a26bc11), [`a9dda1c`](https://github.com/gsoft-inc/wl-squide/commit/a9dda1c3b010f616556fc3313c1934e20a26bc11)]:
668
+ - Updated dependencies [[`a9dda1c`](https://github.com/workleap/wl-squide/commit/a9dda1c3b010f616556fc3313c1934e20a26bc11), [`a9dda1c`](https://github.com/workleap/wl-squide/commit/a9dda1c3b010f616556fc3313c1934e20a26bc11), [`a9dda1c`](https://github.com/workleap/wl-squide/commit/a9dda1c3b010f616556fc3313c1934e20a26bc11), [`a9dda1c`](https://github.com/workleap/wl-squide/commit/a9dda1c3b010f616556fc3313c1934e20a26bc11)]:
646
669
  - @squide/webpack-configs@1.0.0
647
670
  - @squide/webpack-module-federation@3.0.0
648
671
  - @squide/core@3.0.0
@@ -653,14 +676,14 @@
653
676
 
654
677
  ### Patch Changes
655
678
 
656
- - Updated dependencies [[`58097a2`](https://github.com/gsoft-inc/wl-squide/commit/58097a2fbaa7e5942cbe6f9b765fe471d52758d8)]:
679
+ - Updated dependencies [[`58097a2`](https://github.com/workleap/wl-squide/commit/58097a2fbaa7e5942cbe6f9b765fe471d52758d8)]:
657
680
  - @squide/msw@2.0.3
658
681
 
659
682
  ## 1.0.0
660
683
 
661
684
  ### Major Changes
662
685
 
663
- - [#103](https://github.com/gsoft-inc/wl-squide/pull/103) [`b72fca3`](https://github.com/gsoft-inc/wl-squide/commit/b72fca38385ddacbcd80376c9afd0c9485658d90) Thanks [@patricklafrance](https://github.com/patricklafrance)! - This is a new package that offer a base `AppRouter` component for the "firefly" stack: React Router + MSW + Webpack
686
+ - [#103](https://github.com/workleap/wl-squide/pull/103) [`b72fca3`](https://github.com/workleap/wl-squide/commit/b72fca38385ddacbcd80376c9afd0c9485658d90) Thanks [@patricklafrance](https://github.com/patricklafrance)! - This is a new package that offer a base `AppRouter` component for the "firefly" stack: React Router + MSW + Webpack
664
687
 
665
688
  Basic usage of the new base `AppRouter` component:
666
689
 
@@ -747,7 +770,7 @@
747
770
 
748
771
  ### Patch Changes
749
772
 
750
- - Updated dependencies [[`b72fca3`](https://github.com/gsoft-inc/wl-squide/commit/b72fca38385ddacbcd80376c9afd0c9485658d90), [`b72fca3`](https://github.com/gsoft-inc/wl-squide/commit/b72fca38385ddacbcd80376c9afd0c9485658d90), [`b72fca3`](https://github.com/gsoft-inc/wl-squide/commit/b72fca38385ddacbcd80376c9afd0c9485658d90)]:
773
+ - Updated dependencies [[`b72fca3`](https://github.com/workleap/wl-squide/commit/b72fca38385ddacbcd80376c9afd0c9485658d90), [`b72fca3`](https://github.com/workleap/wl-squide/commit/b72fca38385ddacbcd80376c9afd0c9485658d90), [`b72fca3`](https://github.com/workleap/wl-squide/commit/b72fca38385ddacbcd80376c9afd0c9485658d90)]:
751
774
  - @squide/react-router@2.0.2
752
775
  - @squide/webpack-module-federation@2.2.0
753
776
  - @squide/msw@2.0.2
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  ## Usage
4
4
 
5
- View the [user's documentation](https://gsoft-inc.github.io/wl-squide/).
5
+ View the [user's documentation](https://workleap.github.io/wl-squide/).
6
6
 
7
7
  ## 🤝 Contributing
8
8
 
@@ -10,4 +10,4 @@ View the [contributor's documentation](../../CONTRIBUTING.md).
10
10
 
11
11
  ## License
12
12
 
13
- Copyright © 2024, Workleap. This code is licensed under the Apache License, Version 2.0. You may obtain a copy of this license at https://github.com/gsoft-inc/workleap-license/blob/master/LICENSE.
13
+ Copyright © 2024, Workleap. This code is licensed under the Apache License, Version 2.0. You may obtain a copy of this license at https://github.com/workleap/workleap-license/blob/master/LICENSE.
@@ -1,6 +1,6 @@
1
1
  import { type Route } from "@squide/react-router";
2
2
  import { type ReactElement } from "react";
3
- import type { RouterProviderProps } from "react-router-dom";
3
+ import type { RouterProviderProps } from "react-router/dom";
4
4
  export interface AppRouterRenderFunctionArgs {
5
5
  routes: Route[];
6
6
  }
package/dist/AppRouter.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__ from "react/jsx-runtime";
2
- import * as __WEBPACK_EXTERNAL_MODULE__core_src_index_js_d19dd8a6__ from "../../core/src/index.js";
3
- import * as __WEBPACK_EXTERNAL_MODULE__react_router_src_index_js_ff6a88b1__ from "../../react-router/src/index.js";
2
+ import * as __WEBPACK_EXTERNAL_MODULE__squide_core_7a405b8f__ from "@squide/core";
3
+ import * as __WEBPACK_EXTERNAL_MODULE__squide_react_router_299a4bef__ from "@squide/react-router";
4
4
  import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
5
5
  import * as __WEBPACK_EXTERNAL_MODULE__AppRouterContext_js_3c4a3c33__ from "./AppRouterContext.js";
6
6
  import * as __WEBPACK_EXTERNAL_MODULE__AppRouterReducer_js_6fa81ecc__ from "./AppRouterReducer.js";
@@ -9,9 +9,9 @@ import * as __WEBPACK_EXTERNAL_MODULE__useStrictRegistrationMode_js_f67d8785__ f
9
9
 
10
10
  ;// CONCATENATED MODULE: external "react/jsx-runtime"
11
11
 
12
- ;// CONCATENATED MODULE: external "../../core/src/index.js"
12
+ ;// CONCATENATED MODULE: external "@squide/core"
13
13
 
14
- ;// CONCATENATED MODULE: external "../../react-router/src/index.js"
14
+ ;// CONCATENATED MODULE: external "@squide/react-router"
15
15
 
16
16
  ;// CONCATENATED MODULE: external "react"
17
17
 
@@ -35,8 +35,8 @@ import * as __WEBPACK_EXTERNAL_MODULE__useStrictRegistrationMode_js_f67d8785__ f
35
35
  function AppRouter(props) {
36
36
  const { waitForMsw, waitForPublicData = false, waitForProtectedData = false, children: renderRouterProvider } = props;
37
37
  const [state, dispatch] = (0,__WEBPACK_EXTERNAL_MODULE__AppRouterReducer_js_6fa81ecc__.useAppRouterReducer)(waitForMsw, waitForPublicData, waitForProtectedData);
38
- const logger = (0,__WEBPACK_EXTERNAL_MODULE__core_src_index_js_d19dd8a6__.useLogger)();
39
- const routes = (0,__WEBPACK_EXTERNAL_MODULE__react_router_src_index_js_ff6a88b1__.useRoutes)();
38
+ const logger = (0,__WEBPACK_EXTERNAL_MODULE__squide_core_7a405b8f__.useLogger)();
39
+ const routes = (0,__WEBPACK_EXTERNAL_MODULE__squide_react_router_299a4bef__.useRoutes)();
40
40
  (0,__WEBPACK_EXTERNAL_MODULE__useStrictRegistrationMode_js_f67d8785__.useStrictRegistrationMode)();
41
41
  (0,__WEBPACK_EXTERNAL_MODULE_react__.useEffect)(()=>{
42
42
  logger.debug("[squide] AppRouter state updated:", state);
@@ -1 +1 @@
1
- {"version":3,"file":"AppRouter.js","sources":["webpack://@squide/firefly/./src/AppRouter.tsx"],"sourcesContent":["import { useLogger } from \"@squide/core\";\nimport { useRoutes, type Route } from \"@squide/react-router\";\nimport { useEffect, useMemo, type ReactElement } from \"react\";\nimport type { RouterProviderProps } from \"react-router-dom\";\nimport { AppRouterDispatcherContext, AppRouterStateContext } from \"./AppRouterContext.ts\";\nimport { useAppRouterReducer } from \"./AppRouterReducer.ts\";\nimport { RootRoute } from \"./RootRoute.tsx\";\nimport { useStrictRegistrationMode } from \"./useStrictRegistrationMode.ts\";\n\nexport interface AppRouterRenderFunctionArgs {\n routes: Route[];\n}\n\nexport interface RenderRouterProviderFunctionArgs {\n rootRoute: ReactElement;\n registeredRoutes: Route[];\n routerProviderProps: Omit<RouterProviderProps, \"router\">;\n}\n\nexport type RenderRouterProviderFunction = (args: RenderRouterProviderFunctionArgs) => ReactElement;\n\nexport interface AppRouterProps {\n waitForMsw: boolean;\n waitForPublicData?: boolean;\n waitForProtectedData?: boolean;\n children: RenderRouterProviderFunction;\n}\n\nexport function AppRouter(props: AppRouterProps) {\n const {\n waitForMsw,\n waitForPublicData = false,\n waitForProtectedData = false,\n children: renderRouterProvider\n } = props;\n\n const [state, dispatch] = useAppRouterReducer(waitForMsw, waitForPublicData, waitForProtectedData);\n\n const logger = useLogger();\n const routes = useRoutes();\n\n useStrictRegistrationMode();\n\n useEffect(() => {\n logger.debug(\"[squide] AppRouter state updated:\", state);\n }, [state, logger]);\n\n const routerProvider = useMemo(() => {\n return renderRouterProvider({\n rootRoute: <RootRoute />,\n registeredRoutes: routes,\n routerProviderProps: {}\n });\n }, [routes, renderRouterProvider]);\n\n return (\n <AppRouterDispatcherContext.Provider value={dispatch}>\n <AppRouterStateContext.Provider value={state}>\n {routerProvider}\n </AppRouterStateContext.Provider>\n </AppRouterDispatcherContext.Provider>\n );\n}\n"],"names":["useLogger","useRoutes","useEffect","useMemo","AppRouterDispatcherContext","AppRouterStateContext","useAppRouterReducer","RootRoute","useStrictRegistrationMode","AppRouter","props","waitForMsw","waitForPublicData","waitForProtectedData","renderRouterProvider","state","dispatch","logger","routes","routerProvider"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAyC;AACoB;AACC;AAE4B;AAC9B;AAChB;AAC+B;AAqBpE,SAASS,UAAUC,KAAqB;IAC3C,MAAM,EACFC,UAAU,EACVC,oBAAoB,KAAK,EACzBC,uBAAuB,KAAK,EAC5B,UAAUC,oBAAoB,EACjC,GAAGJ;IAEJ,MAAM,CAACK,OAAOC,SAAS,GAAGV,iFAAmBA,CAACK,YAAYC,mBAAmBC;IAE7E,MAAMI,SAASjB,qEAASA;IACxB,MAAMkB,SAASjB,6EAASA;IAExBO,gGAAyBA;IAEzBN,+CAASA,CAAC;QACNe,OAAO,KAAK,CAAC,qCAAqCF;IACtD,GAAG;QAACA;QAAOE;KAAO;IAElB,MAAME,iBAAiBhB,6CAAOA,CAAC;QAC3B,OAAOW,qBAAqB;YACxB,yBAAW,+DAACP,4DAASA;YACrB,kBAAkBW;YAClB,qBAAqB,CAAC;QAC1B;IACJ,GAAG;QAACA;QAAQJ;KAAqB;IAEjC,qBACI,+DAACV,6FAAmC;QAAC,OAAOY;kBACxC,6EAACX,wFAA8B;YAAC,OAAOU;sBAClCI;;;AAIjB"}
1
+ {"version":3,"file":"AppRouter.js","sources":["webpack://@squide/firefly/./src/AppRouter.tsx"],"sourcesContent":["import { useLogger } from \"@squide/core\";\nimport { useRoutes, type Route } from \"@squide/react-router\";\nimport { useEffect, useMemo, type ReactElement } from \"react\";\nimport type { RouterProviderProps } from \"react-router/dom\";\nimport { AppRouterDispatcherContext, AppRouterStateContext } from \"./AppRouterContext.ts\";\nimport { useAppRouterReducer } from \"./AppRouterReducer.ts\";\nimport { RootRoute } from \"./RootRoute.tsx\";\nimport { useStrictRegistrationMode } from \"./useStrictRegistrationMode.ts\";\n\nexport interface AppRouterRenderFunctionArgs {\n routes: Route[];\n}\n\nexport interface RenderRouterProviderFunctionArgs {\n rootRoute: ReactElement;\n registeredRoutes: Route[];\n routerProviderProps: Omit<RouterProviderProps, \"router\">;\n}\n\nexport type RenderRouterProviderFunction = (args: RenderRouterProviderFunctionArgs) => ReactElement;\n\nexport interface AppRouterProps {\n waitForMsw: boolean;\n waitForPublicData?: boolean;\n waitForProtectedData?: boolean;\n children: RenderRouterProviderFunction;\n}\n\nexport function AppRouter(props: AppRouterProps) {\n const {\n waitForMsw,\n waitForPublicData = false,\n waitForProtectedData = false,\n children: renderRouterProvider\n } = props;\n\n const [state, dispatch] = useAppRouterReducer(waitForMsw, waitForPublicData, waitForProtectedData);\n\n const logger = useLogger();\n const routes = useRoutes();\n\n useStrictRegistrationMode();\n\n useEffect(() => {\n logger.debug(\"[squide] AppRouter state updated:\", state);\n }, [state, logger]);\n\n const routerProvider = useMemo(() => {\n return renderRouterProvider({\n rootRoute: <RootRoute />,\n registeredRoutes: routes,\n routerProviderProps: {}\n });\n }, [routes, renderRouterProvider]);\n\n return (\n <AppRouterDispatcherContext.Provider value={dispatch}>\n <AppRouterStateContext.Provider value={state}>\n {routerProvider}\n </AppRouterStateContext.Provider>\n </AppRouterDispatcherContext.Provider>\n );\n}\n"],"names":["useLogger","useRoutes","useEffect","useMemo","AppRouterDispatcherContext","AppRouterStateContext","useAppRouterReducer","RootRoute","useStrictRegistrationMode","AppRouter","props","waitForMsw","waitForPublicData","waitForProtectedData","renderRouterProvider","state","dispatch","logger","routes","routerProvider"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAyC;AACoB;AACC;AAE4B;AAC9B;AAChB;AAC+B;AAqBpE,SAASS,UAAUC,KAAqB;IAC3C,MAAM,EACFC,UAAU,EACVC,oBAAoB,KAAK,EACzBC,uBAAuB,KAAK,EAC5B,UAAUC,oBAAoB,EACjC,GAAGJ;IAEJ,MAAM,CAACK,OAAOC,SAAS,GAAGV,iFAAmBA,CAACK,YAAYC,mBAAmBC;IAE7E,MAAMI,SAASjB,+DAASA;IACxB,MAAMkB,SAASjB,uEAASA;IAExBO,gGAAyBA;IAEzBN,+CAASA,CAAC;QACNe,OAAO,KAAK,CAAC,qCAAqCF;IACtD,GAAG;QAACA;QAAOE;KAAO;IAElB,MAAME,iBAAiBhB,6CAAOA,CAAC;QAC3B,OAAOW,qBAAqB;YACxB,yBAAW,+DAACP,4DAASA;YACrB,kBAAkBW;YAClB,qBAAqB,CAAC;QAC1B;IACJ,GAAG;QAACA;QAAQJ;KAAqB;IAEjC,qBACI,+DAACV,6FAAmC;QAAC,OAAOY;kBACxC,6EAACX,wFAA8B;YAAC,OAAOU;sBAClCI;;;AAIjB"}
@@ -1,7 +1,7 @@
1
- import * as __WEBPACK_EXTERNAL_MODULE__core_src_index_js_d19dd8a6__ from "../../core/src/index.js";
1
+ import * as __WEBPACK_EXTERNAL_MODULE__squide_core_7a405b8f__ from "@squide/core";
2
2
  import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
3
3
 
4
- ;// CONCATENATED MODULE: external "../../core/src/index.js"
4
+ ;// CONCATENATED MODULE: external "@squide/core"
5
5
 
6
6
  ;// CONCATENATED MODULE: external "react"
7
7
 
@@ -11,7 +11,7 @@ import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
11
11
  const AppRouterStateContext = (0,__WEBPACK_EXTERNAL_MODULE_react__.createContext)(undefined);
12
12
  function useAppRouterState() {
13
13
  const state = (0,__WEBPACK_EXTERNAL_MODULE_react__.useContext)(AppRouterStateContext);
14
- if ((0,__WEBPACK_EXTERNAL_MODULE__core_src_index_js_d19dd8a6__.isNil)(state)) {
14
+ if ((0,__WEBPACK_EXTERNAL_MODULE__squide_core_7a405b8f__.isNil)(state)) {
15
15
  throw new Error("[squide] The useAppRouterState hook must be called by a children of the AppRouter component.");
16
16
  }
17
17
  return state;
@@ -19,7 +19,7 @@ function useAppRouterState() {
19
19
  const AppRouterDispatcherContext = (0,__WEBPACK_EXTERNAL_MODULE_react__.createContext)(undefined);
20
20
  function useAppRouterDispatcher() {
21
21
  const dispatch = (0,__WEBPACK_EXTERNAL_MODULE_react__.useContext)(AppRouterDispatcherContext);
22
- if ((0,__WEBPACK_EXTERNAL_MODULE__core_src_index_js_d19dd8a6__.isNil)(dispatch)) {
22
+ if ((0,__WEBPACK_EXTERNAL_MODULE__squide_core_7a405b8f__.isNil)(dispatch)) {
23
23
  throw new Error("[squide] The useAppRouterDispatcher hook must be called by a children of the AppRouter component.");
24
24
  }
25
25
  return dispatch;
@@ -1 +1 @@
1
- {"version":3,"file":"AppRouterContext.js","sources":["webpack://@squide/firefly/./src/AppRouterContext.ts"],"sourcesContent":["import { isNil } from \"@squide/core\";\nimport { createContext, useContext } from \"react\";\nimport type { AppRouterDispatch, AppRouterState } from \"./AppRouterReducer.ts\";\n\nexport const AppRouterStateContext = createContext<AppRouterState | undefined>(undefined);\n\nexport function useAppRouterState() {\n const state = useContext(AppRouterStateContext);\n\n if (isNil(state)) {\n throw new Error(\"[squide] The useAppRouterState hook must be called by a children of the AppRouter component.\");\n }\n\n return state;\n}\n\nexport const AppRouterDispatcherContext = createContext<AppRouterDispatch | undefined>(undefined);\n\nexport function useAppRouterDispatcher() {\n const dispatch = useContext(AppRouterDispatcherContext);\n\n if (isNil(dispatch)) {\n throw new Error(\"[squide] The useAppRouterDispatcher hook must be called by a children of the AppRouter component.\");\n }\n\n return dispatch;\n}\n"],"names":["isNil","createContext","useContext","AppRouterStateContext","undefined","useAppRouterState","state","Error","AppRouterDispatcherContext","useAppRouterDispatcher","dispatch"],"mappings":";;;;;;;;AAAqC;AACa;AAG3C,MAAMG,wBAAwBF,mDAAaA,CAA6BG,WAAW;AAEnF,SAASC;IACZ,MAAMC,QAAQJ,gDAAUA,CAACC;IAEzB,IAAIH,iEAAKA,CAACM,QAAQ;QACd,MAAM,IAAIC,MAAM;IACpB;IAEA,OAAOD;AACX;AAEO,MAAME,6BAA6BP,mDAAaA,CAAgCG,WAAW;AAE3F,SAASK;IACZ,MAAMC,WAAWR,gDAAUA,CAACM;IAE5B,IAAIR,iEAAKA,CAACU,WAAW;QACjB,MAAM,IAAIH,MAAM;IACpB;IAEA,OAAOG;AACX"}
1
+ {"version":3,"file":"AppRouterContext.js","sources":["webpack://@squide/firefly/./src/AppRouterContext.ts"],"sourcesContent":["import { isNil } from \"@squide/core\";\nimport { createContext, useContext } from \"react\";\nimport type { AppRouterDispatch, AppRouterState } from \"./AppRouterReducer.ts\";\n\nexport const AppRouterStateContext = createContext<AppRouterState | undefined>(undefined);\n\nexport function useAppRouterState() {\n const state = useContext(AppRouterStateContext);\n\n if (isNil(state)) {\n throw new Error(\"[squide] The useAppRouterState hook must be called by a children of the AppRouter component.\");\n }\n\n return state;\n}\n\nexport const AppRouterDispatcherContext = createContext<AppRouterDispatch | undefined>(undefined);\n\nexport function useAppRouterDispatcher() {\n const dispatch = useContext(AppRouterDispatcherContext);\n\n if (isNil(dispatch)) {\n throw new Error(\"[squide] The useAppRouterDispatcher hook must be called by a children of the AppRouter component.\");\n }\n\n return dispatch;\n}\n"],"names":["isNil","createContext","useContext","AppRouterStateContext","undefined","useAppRouterState","state","Error","AppRouterDispatcherContext","useAppRouterDispatcher","dispatch"],"mappings":";;;;;;;;AAAqC;AACa;AAG3C,MAAMG,wBAAwBF,mDAAaA,CAA6BG,WAAW;AAEnF,SAASC;IACZ,MAAMC,QAAQJ,gDAAUA,CAACC;IAEzB,IAAIH,2DAAKA,CAACM,QAAQ;QACd,MAAM,IAAIC,MAAM;IACpB;IAEA,OAAOD;AACX;AAEO,MAAME,6BAA6BP,mDAAaA,CAAgCG,WAAW;AAE3F,SAASK;IACZ,MAAMC,WAAWR,gDAAUA,CAACM;IAE5B,IAAIR,2DAAKA,CAACU,WAAW;QACjB,MAAM,IAAIH,MAAM;IACpB;IAEA,OAAOG;AACX"}