@luigi-project/container 1.6.0-dev.20250420034 → 1.6.0-dev.20250421213

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.
@@ -20,8 +20,7 @@ export namespace Events {
20
20
  export const ALERT_REQUEST = 'show-alert-request';
21
21
 
22
22
  /**
23
- * Event left due to historical reasons - do not use.
24
- * @deprecated
23
+ * Event fired when the micro frontend requests to close an alert.
25
24
  */
26
25
  export const ALERT_CLOSED = 'close-alert-request';
27
26
 
@@ -82,7 +81,6 @@ export namespace Events {
82
81
 
83
82
  /**
84
83
  * Event fired when the micro frontend requests to navigate back.
85
- * @deprecated use GO_BACK_REQUEST
86
84
  */
87
85
  export const BACK_NAVIGATION_REQUEST = 'navigate-back-request';
88
86
 
@@ -101,11 +99,6 @@ export namespace Events {
101
99
  */
102
100
  export const UPDATE_MODAL_PATH_DATA_REQUEST = 'update-modal-path-data-request';
103
101
 
104
- /**
105
- * Event fired when the micro frontend requests to update the modal settings.
106
- */
107
- export const UPDATE_MODAL_SETTINGS_REQUEST = 'update-modal-settings-request';
108
-
109
102
  /**
110
103
  * Event fired when the micro frontend requests to check the validity of a path.
111
104
  */
@@ -123,7 +116,6 @@ export namespace Events {
123
116
 
124
117
  /**
125
118
  * Event fired when the micro frontend requests to set the document title.
126
- * @deprecated
127
119
  */
128
120
  export const SET_DOCUMENT_TITLE_REQUEST = 'set-document-title-request';
129
121
 
@@ -149,7 +141,6 @@ export namespace Events {
149
141
 
150
142
  /**
151
143
  * Event fired when the micro frontend requests to check if the path exists.
152
- * @deprecated use CHECK_PATH_EXISTS_REQUEST
153
144
  */
154
145
  export const PATH_EXISTS_REQUEST = 'path-exists-request';
155
146
 
@@ -163,26 +154,8 @@ export namespace Events {
163
154
  */
164
155
  export const HAS_BACK_REQUEST = 'has-back-request';
165
156
 
166
- /**
167
- * Event fired when the micro frontend requests to display the backdrop.
168
- */
169
- export const ADD_BACKDROP_REQUEST = 'add-backdrop-request';
170
-
171
157
  /**
172
158
  * Event fired when the micro frontend requests to remove the backdrop.
173
159
  */
174
160
  export const REMOVE_BACKDROP_REQUEST = 'remove-backdrop-request';
175
161
  }
176
-
177
- export class LuigiEvent extends Event {
178
- payload?: unknown;
179
- detail: unknown;
180
-
181
- constructor(type: string, data: unknown, payload?: unknown) {
182
- super(type);
183
- this.detail = data;
184
- this.payload = payload || data || {};
185
- }
186
- }
187
-
188
- export { Events as LuigiEvents };
@@ -17,12 +17,7 @@
17
17
  "kind": "field",
18
18
  "name": "activeFeatureToggleList",
19
19
  "type": {
20
- "text": "Array<string>",
21
- "references": [
22
- {
23
- "name": "string"
24
- }
25
- ]
20
+ "text": "Array<string>"
26
21
  },
27
22
  "default": "undefined"
28
23
  },
@@ -30,12 +25,7 @@
30
25
  "kind": "field",
31
26
  "name": "allowRules",
32
27
  "type": {
33
- "text": "Array<string>",
34
- "references": [
35
- {
36
- "name": "string"
37
- }
38
- ]
28
+ "text": "Array<string>"
39
29
  },
40
30
  "default": "undefined"
41
31
  },
@@ -147,12 +137,7 @@
147
137
  "kind": "field",
148
138
  "name": "sandboxRules",
149
139
  "type": {
150
- "text": "Array<string>",
151
- "references": [
152
- {
153
- "name": "string"
154
- }
155
- ]
140
+ "text": "Array<string>"
156
141
  },
157
142
  "default": "undefined"
158
143
  },
@@ -228,14 +213,6 @@
228
213
  "kind": "method",
229
214
  "name": "notifyAlertClosed"
230
215
  },
231
- {
232
- "kind": "method",
233
- "name": "notifyConfirmationModalClosed"
234
- },
235
- {
236
- "kind": "method",
237
- "name": "updateViewUrl"
238
- },
239
216
  {
240
217
  "kind": "method",
241
218
  "name": "init"
@@ -270,6 +247,13 @@
270
247
  "text": "Event"
271
248
  }
272
249
  },
250
+ {
251
+ "name": "close-alert-request",
252
+ "description": "Event fired when the micro frontend requests to close an alert.",
253
+ "type": {
254
+ "text": "Event"
255
+ }
256
+ },
273
257
  {
274
258
  "name": "initialized",
275
259
  "description": "Event fired when the micro frontend has been initialized.",
@@ -347,6 +331,13 @@
347
331
  "text": "Event"
348
332
  }
349
333
  },
334
+ {
335
+ "name": "navigate-back-request",
336
+ "description": "Event fired when the micro frontend requests to navigate back.",
337
+ "type": {
338
+ "text": "Event"
339
+ }
340
+ },
350
341
  {
351
342
  "name": "get-current-route-request",
352
343
  "description": "Event fired when the micro frontend requests the current app route.",
@@ -368,13 +359,6 @@
368
359
  "text": "Event"
369
360
  }
370
361
  },
371
- {
372
- "name": "update-modal-settings-request",
373
- "description": "Event fired when the micro frontend requests to update the modal settings.",
374
- "type": {
375
- "text": "Event"
376
- }
377
- },
378
362
  {
379
363
  "name": "check-path-exists-request",
380
364
  "description": "Event fired when the micro frontend requests to check the validity of a path.",
@@ -396,6 +380,13 @@
396
380
  "text": "Event"
397
381
  }
398
382
  },
383
+ {
384
+ "name": "set-document-title-request",
385
+ "description": "Event fired when the micro frontend requests to set the document title.",
386
+ "type": {
387
+ "text": "Event"
388
+ }
389
+ },
399
390
  {
400
391
  "name": "open-user-settings-request",
401
392
  "description": "Event fired when the micro frontend requests to open the user settings.",
@@ -425,22 +416,22 @@
425
416
  }
426
417
  },
427
418
  {
428
- "name": "go-back-request",
429
- "description": "Event fired when the micro frontend requests to navigate back.",
419
+ "name": "path-exists-request",
420
+ "description": "Event fired when the micro frontend requests to check if the path exists.",
430
421
  "type": {
431
422
  "text": "Event"
432
423
  }
433
424
  },
434
425
  {
435
- "name": "has-back-request",
436
- "description": "Event fired when the micro frontend requests to check if there are any preserved views.",
426
+ "name": "go-back-request",
427
+ "description": "Event fired when the micro frontend requests to navigate back.",
437
428
  "type": {
438
429
  "text": "Event"
439
430
  }
440
431
  },
441
432
  {
442
- "name": "add-backdrop-request",
443
- "description": "Event fired when the micro frontend requests to display the backdrop.",
433
+ "name": "has-back-request",
434
+ "description": "Event fired when the micro frontend requests to check if there are any preserved views.",
444
435
  "type": {
445
436
  "text": "Event"
446
437
  }
@@ -489,12 +480,7 @@
489
480
  "kind": "field",
490
481
  "name": "activeFeatureToggleList",
491
482
  "type": {
492
- "text": "Array<string>",
493
- "references": [
494
- {
495
- "name": "string"
496
- }
497
- ]
483
+ "text": "Array<string>"
498
484
  },
499
485
  "default": "undefined"
500
486
  },
@@ -646,14 +632,6 @@
646
632
  "kind": "method",
647
633
  "name": "updateContext"
648
634
  },
649
- {
650
- "kind": "method",
651
- "name": "notifyAlertClosed"
652
- },
653
- {
654
- "kind": "method",
655
- "name": "notifyConfirmationModalClosed"
656
- },
657
635
  {
658
636
  "kind": "method",
659
637
  "name": "init"
@@ -688,6 +666,13 @@
688
666
  "text": "Event"
689
667
  }
690
668
  },
669
+ {
670
+ "name": "close-alert-request",
671
+ "description": "Event fired when the micro frontend requests to close an alert.",
672
+ "type": {
673
+ "text": "Event"
674
+ }
675
+ },
691
676
  {
692
677
  "name": "initialized",
693
678
  "description": "Event fired when the micro frontend has been initialized.",
@@ -765,6 +750,13 @@
765
750
  "text": "Event"
766
751
  }
767
752
  },
753
+ {
754
+ "name": "navigate-back-request",
755
+ "description": "Event fired when the micro frontend requests to navigate back.",
756
+ "type": {
757
+ "text": "Event"
758
+ }
759
+ },
768
760
  {
769
761
  "name": "get-current-route-request",
770
762
  "description": "Event fired when the micro frontend requests the current app route.",
@@ -786,13 +778,6 @@
786
778
  "text": "Event"
787
779
  }
788
780
  },
789
- {
790
- "name": "update-modal-settings-request",
791
- "description": "Event fired when the micro frontend requests to update the modal settings.",
792
- "type": {
793
- "text": "Event"
794
- }
795
- },
796
781
  {
797
782
  "name": "check-path-exists-request",
798
783
  "description": "Event fired when the micro frontend requests to check the validity of a path.",
@@ -814,6 +799,13 @@
814
799
  "text": "Event"
815
800
  }
816
801
  },
802
+ {
803
+ "name": "set-document-title-request",
804
+ "description": "Event fired when the micro frontend requests to set the document title.",
805
+ "type": {
806
+ "text": "Event"
807
+ }
808
+ },
817
809
  {
818
810
  "name": "open-user-settings-request",
819
811
  "description": "Event fired when the micro frontend requests to open the user settings.",
@@ -843,22 +835,22 @@
843
835
  }
844
836
  },
845
837
  {
846
- "name": "go-back-request",
847
- "description": "Event fired when the micro frontend requests to navigate back.",
838
+ "name": "path-exists-request",
839
+ "description": "Event fired when the micro frontend requests to check if the path exists.",
848
840
  "type": {
849
841
  "text": "Event"
850
842
  }
851
843
  },
852
844
  {
853
- "name": "has-back-request",
854
- "description": "Event fired when the micro frontend requests to check if there are any preserved views.",
845
+ "name": "go-back-request",
846
+ "description": "Event fired when the micro frontend requests to navigate back.",
855
847
  "type": {
856
848
  "text": "Event"
857
849
  }
858
850
  },
859
851
  {
860
- "name": "add-backdrop-request",
861
- "description": "Event fired when the micro frontend requests to display the backdrop.",
852
+ "name": "has-back-request",
853
+ "description": "Event fired when the micro frontend requests to check if there are any preserved views.",
862
854
  "type": {
863
855
  "text": "Event"
864
856
  }
package/package.json CHANGED
@@ -20,5 +20,5 @@
20
20
  "micro-frontends",
21
21
  "microfrontends"
22
22
  ],
23
- "version": "1.6.0-dev.20250420034"
23
+ "version": "1.6.0-dev.20250421213"
24
24
  }
@@ -1,152 +0,0 @@
1
- var Events;
2
- (function (Events) {
3
- /**
4
- * Event fired when the micro frontend sends a custom message.
5
- */
6
- Events.CUSTOM_MESSAGE = 'custom-message';
7
- /**
8
- * Event fired when the micro frontend requests the context data.
9
- */
10
- Events.GET_CONTEXT_REQUEST = 'get-context-request';
11
- /**
12
- * Event fired when a navigation has been requested by the micro frontend.
13
- */
14
- Events.NAVIGATION_REQUEST = 'navigation-request';
15
- /**
16
- * Event fired when the micro frontend requests to show an alert.
17
- */
18
- Events.ALERT_REQUEST = 'show-alert-request';
19
- /**
20
- * Event left due to historical reasons - do not use.
21
- * @deprecated
22
- */
23
- Events.ALERT_CLOSED = 'close-alert-request';
24
- /**
25
- * Event fired when the micro frontend has been initialized.
26
- */
27
- Events.INITIALIZED = 'initialized';
28
- /**
29
- * Event fired when the micro frontend requests the addition of search parameters to the URL.
30
- */
31
- Events.ADD_SEARCH_PARAMS_REQUEST = 'add-search-params-request';
32
- /**
33
- * Event fired when the micro frontend requests the addition of node parameters to the URL.
34
- */
35
- Events.ADD_NODE_PARAMS_REQUEST = 'add-node-params-request';
36
- /**
37
- * Event fired when the micro frontend requests to show a confirmation modal.
38
- */
39
- Events.SHOW_CONFIRMATION_MODAL_REQUEST = 'show-confirmation-modal-request';
40
- /**
41
- * Event fired when the micro frontend requests to show a loading indicator.
42
- */
43
- Events.SHOW_LOADING_INDICATOR_REQUEST = 'show-loading-indicator-request';
44
- /**
45
- * Event fired when the micro frontend requests to hide the loading indicator.
46
- */
47
- Events.HIDE_LOADING_INDICATOR_REQUEST = 'hide-loading-indicator-request';
48
- /**
49
- * Event fired when the micro frontend requests to set the current locale.
50
- */
51
- Events.SET_CURRENT_LOCALE_REQUEST = 'set-current-locale-request';
52
- /**
53
- * Event fired when the micro frontend requests to modify the local storage.
54
- */
55
- Events.LOCAL_STORAGE_SET_REQUEST = 'set-storage-request';
56
- /**
57
- * Event fired when the micro frontend requests to handle errors that might happen during the runtime of the micro frontend.
58
- */
59
- Events.RUNTIME_ERROR_HANDLING_REQUEST = 'runtime-error-handling-request';
60
- /**
61
- * Event fired when the micro frontend requests to set the anchor of the URL.
62
- */
63
- Events.SET_ANCHOR_LINK_REQUEST = 'set-anchor-request';
64
- /**
65
- * Event fired when the micro frontend requests to set third-party cookies.
66
- */
67
- Events.SET_THIRD_PARTY_COOKIES_REQUEST = 'set-third-party-cookies-request';
68
- /**
69
- * Event fired when the micro frontend requests to navigate back.
70
- * @deprecated use GO_BACK_REQUEST
71
- */
72
- Events.BACK_NAVIGATION_REQUEST = 'navigate-back-request';
73
- /**
74
- * Event fired when the micro frontend requests the current app route.
75
- */
76
- Events.GET_CURRENT_ROUTE_REQUEST = 'get-current-route-request';
77
- /**
78
- * Event fired to report that the micro frontend's navigation has completed.
79
- */
80
- Events.NAVIGATION_COMPLETED_REPORT = 'report-navigation-completed-request';
81
- /**
82
- * Event fired when the micro frontend requests to update the modal path parameters.
83
- */
84
- Events.UPDATE_MODAL_PATH_DATA_REQUEST = 'update-modal-path-data-request';
85
- /**
86
- * Event fired when the micro frontend requests to update the modal settings.
87
- */
88
- Events.UPDATE_MODAL_SETTINGS_REQUEST = 'update-modal-settings-request';
89
- /**
90
- * Event fired when the micro frontend requests to check the validity of a path.
91
- */
92
- Events.CHECK_PATH_EXISTS_REQUEST = 'check-path-exists-request';
93
- /**
94
- * Event fired when the micro frontend requests to set the 'dirty status' which, for example, avoids closing when there are any unsaved changes.
95
- */
96
- Events.SET_DIRTY_STATUS_REQUEST = 'set-dirty-status-request';
97
- /**
98
- * Event fired when the micro frontend requests to set the view group data.
99
- */
100
- Events.SET_VIEW_GROUP_DATA_REQUEST = 'set-viewgroup-data-request';
101
- /**
102
- * Event fired when the micro frontend requests to set the document title.
103
- * @deprecated
104
- */
105
- Events.SET_DOCUMENT_TITLE_REQUEST = 'set-document-title-request';
106
- /**
107
- * Event fired when the micro frontend requests to open the user settings.
108
- */
109
- Events.OPEN_USER_SETTINGS_REQUEST = 'open-user-settings-request';
110
- /**
111
- * Event fired when the micro frontend requests to close the user settings.
112
- */
113
- Events.CLOSE_USER_SETTINGS_REQUEST = 'close-user-settings-request';
114
- /**
115
- * Event fired when the micro frontend requests to collapse left side navigation.
116
- */
117
- Events.COLLAPSE_LEFT_NAV_REQUEST = 'collapse-leftnav-request';
118
- /**
119
- * Event fired when the micro frontend requests to update the top navigation.
120
- */
121
- Events.UPDATE_TOP_NAVIGATION_REQUEST = 'update-top-navigation-request';
122
- /**
123
- * Event fired when the micro frontend requests to check if the path exists.
124
- * @deprecated use CHECK_PATH_EXISTS_REQUEST
125
- */
126
- Events.PATH_EXISTS_REQUEST = 'path-exists-request';
127
- /**
128
- * Event fired when the micro frontend requests to navigate back.
129
- */
130
- Events.GO_BACK_REQUEST = 'go-back-request';
131
- /**
132
- * Event fired when the micro frontend requests to check if there are any preserved views.
133
- */
134
- Events.HAS_BACK_REQUEST = 'has-back-request';
135
- /**
136
- * Event fired when the micro frontend requests to display the backdrop.
137
- */
138
- Events.ADD_BACKDROP_REQUEST = 'add-backdrop-request';
139
- /**
140
- * Event fired when the micro frontend requests to remove the backdrop.
141
- */
142
- Events.REMOVE_BACKDROP_REQUEST = 'remove-backdrop-request';
143
- })(Events || (Events = {}));
144
- class LuigiEvent extends Event {
145
- constructor(type, data, payload) {
146
- super(type);
147
- this.detail = data;
148
- this.payload = payload || data || {};
149
- }
150
- }
151
-
152
- export { LuigiEvent, Events as LuigiEvents };