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

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,7 +20,8 @@ export namespace Events {
20
20
  export const ALERT_REQUEST = 'show-alert-request';
21
21
 
22
22
  /**
23
- * Event fired when the micro frontend requests to close an alert.
23
+ * Event left due to historical reasons - do not use.
24
+ * @deprecated
24
25
  */
25
26
  export const ALERT_CLOSED = 'close-alert-request';
26
27
 
@@ -81,6 +82,7 @@ export namespace Events {
81
82
 
82
83
  /**
83
84
  * Event fired when the micro frontend requests to navigate back.
85
+ * @deprecated use GO_BACK_REQUEST
84
86
  */
85
87
  export const BACK_NAVIGATION_REQUEST = 'navigate-back-request';
86
88
 
@@ -99,6 +101,11 @@ export namespace Events {
99
101
  */
100
102
  export const UPDATE_MODAL_PATH_DATA_REQUEST = 'update-modal-path-data-request';
101
103
 
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
+
102
109
  /**
103
110
  * Event fired when the micro frontend requests to check the validity of a path.
104
111
  */
@@ -116,6 +123,7 @@ export namespace Events {
116
123
 
117
124
  /**
118
125
  * Event fired when the micro frontend requests to set the document title.
126
+ * @deprecated
119
127
  */
120
128
  export const SET_DOCUMENT_TITLE_REQUEST = 'set-document-title-request';
121
129
 
@@ -141,6 +149,7 @@ export namespace Events {
141
149
 
142
150
  /**
143
151
  * Event fired when the micro frontend requests to check if the path exists.
152
+ * @deprecated use CHECK_PATH_EXISTS_REQUEST
144
153
  */
145
154
  export const PATH_EXISTS_REQUEST = 'path-exists-request';
146
155
 
@@ -154,8 +163,26 @@ export namespace Events {
154
163
  */
155
164
  export const HAS_BACK_REQUEST = 'has-back-request';
156
165
 
166
+ /**
167
+ * Event fired when the micro frontend requests to display the backdrop.
168
+ */
169
+ export const ADD_BACKDROP_REQUEST = 'add-backdrop-request';
170
+
157
171
  /**
158
172
  * Event fired when the micro frontend requests to remove the backdrop.
159
173
  */
160
174
  export const REMOVE_BACKDROP_REQUEST = 'remove-backdrop-request';
161
175
  }
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 };
@@ -0,0 +1,152 @@
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 };
@@ -228,6 +228,14 @@
228
228
  "kind": "method",
229
229
  "name": "notifyAlertClosed"
230
230
  },
231
+ {
232
+ "kind": "method",
233
+ "name": "notifyConfirmationModalClosed"
234
+ },
235
+ {
236
+ "kind": "method",
237
+ "name": "updateViewUrl"
238
+ },
231
239
  {
232
240
  "kind": "method",
233
241
  "name": "init"
@@ -262,13 +270,6 @@
262
270
  "text": "Event"
263
271
  }
264
272
  },
265
- {
266
- "name": "close-alert-request",
267
- "description": "Event fired when the micro frontend requests to close an alert.",
268
- "type": {
269
- "text": "Event"
270
- }
271
- },
272
273
  {
273
274
  "name": "initialized",
274
275
  "description": "Event fired when the micro frontend has been initialized.",
@@ -346,13 +347,6 @@
346
347
  "text": "Event"
347
348
  }
348
349
  },
349
- {
350
- "name": "navigate-back-request",
351
- "description": "Event fired when the micro frontend requests to navigate back.",
352
- "type": {
353
- "text": "Event"
354
- }
355
- },
356
350
  {
357
351
  "name": "get-current-route-request",
358
352
  "description": "Event fired when the micro frontend requests the current app route.",
@@ -374,6 +368,13 @@
374
368
  "text": "Event"
375
369
  }
376
370
  },
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
+ },
377
378
  {
378
379
  "name": "check-path-exists-request",
379
380
  "description": "Event fired when the micro frontend requests to check the validity of a path.",
@@ -395,13 +396,6 @@
395
396
  "text": "Event"
396
397
  }
397
398
  },
398
- {
399
- "name": "set-document-title-request",
400
- "description": "Event fired when the micro frontend requests to set the document title.",
401
- "type": {
402
- "text": "Event"
403
- }
404
- },
405
399
  {
406
400
  "name": "open-user-settings-request",
407
401
  "description": "Event fired when the micro frontend requests to open the user settings.",
@@ -431,22 +425,22 @@
431
425
  }
432
426
  },
433
427
  {
434
- "name": "path-exists-request",
435
- "description": "Event fired when the micro frontend requests to check if the path exists.",
428
+ "name": "go-back-request",
429
+ "description": "Event fired when the micro frontend requests to navigate back.",
436
430
  "type": {
437
431
  "text": "Event"
438
432
  }
439
433
  },
440
434
  {
441
- "name": "go-back-request",
442
- "description": "Event fired when the micro frontend requests to navigate back.",
435
+ "name": "has-back-request",
436
+ "description": "Event fired when the micro frontend requests to check if there are any preserved views.",
443
437
  "type": {
444
438
  "text": "Event"
445
439
  }
446
440
  },
447
441
  {
448
- "name": "has-back-request",
449
- "description": "Event fired when the micro frontend requests to check if there are any preserved views.",
442
+ "name": "add-backdrop-request",
443
+ "description": "Event fired when the micro frontend requests to display the backdrop.",
450
444
  "type": {
451
445
  "text": "Event"
452
446
  }
@@ -652,6 +646,14 @@
652
646
  "kind": "method",
653
647
  "name": "updateContext"
654
648
  },
649
+ {
650
+ "kind": "method",
651
+ "name": "notifyAlertClosed"
652
+ },
653
+ {
654
+ "kind": "method",
655
+ "name": "notifyConfirmationModalClosed"
656
+ },
655
657
  {
656
658
  "kind": "method",
657
659
  "name": "init"
@@ -686,13 +688,6 @@
686
688
  "text": "Event"
687
689
  }
688
690
  },
689
- {
690
- "name": "close-alert-request",
691
- "description": "Event fired when the micro frontend requests to close an alert.",
692
- "type": {
693
- "text": "Event"
694
- }
695
- },
696
691
  {
697
692
  "name": "initialized",
698
693
  "description": "Event fired when the micro frontend has been initialized.",
@@ -770,13 +765,6 @@
770
765
  "text": "Event"
771
766
  }
772
767
  },
773
- {
774
- "name": "navigate-back-request",
775
- "description": "Event fired when the micro frontend requests to navigate back.",
776
- "type": {
777
- "text": "Event"
778
- }
779
- },
780
768
  {
781
769
  "name": "get-current-route-request",
782
770
  "description": "Event fired when the micro frontend requests the current app route.",
@@ -798,6 +786,13 @@
798
786
  "text": "Event"
799
787
  }
800
788
  },
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
+ },
801
796
  {
802
797
  "name": "check-path-exists-request",
803
798
  "description": "Event fired when the micro frontend requests to check the validity of a path.",
@@ -819,13 +814,6 @@
819
814
  "text": "Event"
820
815
  }
821
816
  },
822
- {
823
- "name": "set-document-title-request",
824
- "description": "Event fired when the micro frontend requests to set the document title.",
825
- "type": {
826
- "text": "Event"
827
- }
828
- },
829
817
  {
830
818
  "name": "open-user-settings-request",
831
819
  "description": "Event fired when the micro frontend requests to open the user settings.",
@@ -855,22 +843,22 @@
855
843
  }
856
844
  },
857
845
  {
858
- "name": "path-exists-request",
859
- "description": "Event fired when the micro frontend requests to check if the path exists.",
846
+ "name": "go-back-request",
847
+ "description": "Event fired when the micro frontend requests to navigate back.",
860
848
  "type": {
861
849
  "text": "Event"
862
850
  }
863
851
  },
864
852
  {
865
- "name": "go-back-request",
866
- "description": "Event fired when the micro frontend requests to navigate back.",
853
+ "name": "has-back-request",
854
+ "description": "Event fired when the micro frontend requests to check if there are any preserved views.",
867
855
  "type": {
868
856
  "text": "Event"
869
857
  }
870
858
  },
871
859
  {
872
- "name": "has-back-request",
873
- "description": "Event fired when the micro frontend requests to check if there are any preserved views.",
860
+ "name": "add-backdrop-request",
861
+ "description": "Event fired when the micro frontend requests to display the backdrop.",
874
862
  "type": {
875
863
  "text": "Event"
876
864
  }
package/package.json CHANGED
@@ -20,5 +20,5 @@
20
20
  "micro-frontends",
21
21
  "microfrontends"
22
22
  ],
23
- "version": "1.6.0-dev.20250390029"
23
+ "version": "1.6.0-dev.20250420034"
24
24
  }