@luigi-project/core-modular 0.0.9 → 0.0.10
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/core-api/navigation.d.ts +2 -2
- package/luigi.js +11164 -94
- package/luigi.js.map +1 -1
- package/package.json +1 -1
- package/types/navigation.d.ts +18 -0
- package/utilities/helpers/generic-helpers.d.ts +15 -0
package/package.json
CHANGED
package/types/navigation.d.ts
CHANGED
|
@@ -152,6 +152,7 @@ export interface Node {
|
|
|
152
152
|
titleResolver?: TitleResolver;
|
|
153
153
|
tooltipText?: string;
|
|
154
154
|
userSettingsGroup?: string;
|
|
155
|
+
isolateView?: boolean;
|
|
155
156
|
viewUrl?: string;
|
|
156
157
|
visibleForFeatureToggles?: string[];
|
|
157
158
|
virtualTree?: boolean;
|
|
@@ -278,6 +279,23 @@ export interface NavigationRequestParams extends NavigationRequestBase {
|
|
|
278
279
|
export interface NavigationRequestEvent {
|
|
279
280
|
detail: NavigationRequestBase;
|
|
280
281
|
}
|
|
282
|
+
export interface NavigationRequestDetail {
|
|
283
|
+
drawer: unknown;
|
|
284
|
+
link: string;
|
|
285
|
+
intent: boolean;
|
|
286
|
+
preserveView: string;
|
|
287
|
+
modal: unknown;
|
|
288
|
+
newTab: boolean;
|
|
289
|
+
withoutSync: boolean;
|
|
290
|
+
preventContextUpdate: boolean;
|
|
291
|
+
preventHistoryEntry: boolean;
|
|
292
|
+
fromVirtualTreeRoot: boolean;
|
|
293
|
+
fromContext: boolean;
|
|
294
|
+
fromClosestContext: boolean;
|
|
295
|
+
fromParent: boolean;
|
|
296
|
+
relative: boolean;
|
|
297
|
+
nodeParams: Record<string, string>;
|
|
298
|
+
}
|
|
281
299
|
/**
|
|
282
300
|
* Configuration for compound web components in Luigi.
|
|
283
301
|
* Compound allows you to layout multiple web components in one micro frontend.
|
|
@@ -41,6 +41,21 @@ export declare const GenericHelpers: {
|
|
|
41
41
|
* @returns {boolean}
|
|
42
42
|
*/
|
|
43
43
|
hasHash: (path: string) => boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Returns the URL without the hash fragment, normalized to an absolute URL.
|
|
46
|
+
* Relative URLs are prepended with window.location.origin.
|
|
47
|
+
* @param {string} url
|
|
48
|
+
* @returns {string}
|
|
49
|
+
*/
|
|
50
|
+
getUrlWithoutHash: (url: string) => string;
|
|
51
|
+
/**
|
|
52
|
+
* Checks if two URLs are the same when ignoring the hash fragment.
|
|
53
|
+
* Used to determine if a container/iframe can be reused.
|
|
54
|
+
* @param {string} url1
|
|
55
|
+
* @param {string} url2
|
|
56
|
+
* @returns {boolean}
|
|
57
|
+
*/
|
|
58
|
+
isSameUrl: (url1: string, url2: string) => boolean;
|
|
44
59
|
/**
|
|
45
60
|
* Removes leading hash of a string
|
|
46
61
|
* @param {string} path
|