@luigi-project/core-modular 0.0.11-dev.202607230051 → 0.0.11-dev.202607231330
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/luigi-engine.d.ts +2 -2
- package/luigi.js +1669 -1606
- package/luigi.js.map +1 -1
- package/modules/ui-module.d.ts +2 -2
- package/package.json +1 -1
- package/types/navigation.d.ts +4 -0
- package/utilities/helpers/navigation-helpers.d.ts +2 -0
- package/utilities/helpers/routing-helpers.d.ts +1 -0
package/modules/ui-module.d.ts
CHANGED
|
@@ -12,8 +12,8 @@ export declare const UIModule: {
|
|
|
12
12
|
init: (luigi: Luigi) => void;
|
|
13
13
|
update: (scopes?: string[]) => Promise<void>;
|
|
14
14
|
updateMainContent: (currentNode: Node, luigi: Luigi, luigiParams?: LuigiParams, withoutSync?: boolean, preventContextUpdate?: boolean) => Promise<void>;
|
|
15
|
-
openModal: (luigi: Luigi, node: Node, modalSettings: ModalSettings, onCloseCallback?: (goBackValue?: any) => void) => Promise<void>;
|
|
15
|
+
openModal: (luigi: Luigi, node: Node, modalSettings: ModalSettings, onCloseCallback?: (goBackValue?: any) => void, luigiParams?: LuigiParams) => Promise<void>;
|
|
16
16
|
updateModalSettings: (modalSettings: ModalSettings, addHistoryEntry: boolean, luigi: Luigi) => void;
|
|
17
|
-
openDrawer: (luigi: Luigi, node: Node, drawerSettings: DrawerSettings, onCloseCallback?: () => void) => Promise<void>;
|
|
17
|
+
openDrawer: (luigi: Luigi, node: Node, drawerSettings: DrawerSettings, onCloseCallback?: () => void, luigiParams?: LuigiParams) => Promise<void>;
|
|
18
18
|
openUserSettings: (userSettingsDialogSettings: UserSettingsDialogSettings, userSettingData: any, previousUserSettings: any, luigi: Luigi) => Promise<void>;
|
|
19
19
|
};
|
package/package.json
CHANGED
package/types/navigation.d.ts
CHANGED
|
@@ -234,6 +234,7 @@ export interface DrawerSettings {
|
|
|
234
234
|
header?: DrawerHeader;
|
|
235
235
|
overlap?: boolean;
|
|
236
236
|
size?: 'l' | 'm' | 's' | 'xs';
|
|
237
|
+
nodeParams?: Record<string, any>;
|
|
237
238
|
}
|
|
238
239
|
export interface ModalSettings {
|
|
239
240
|
size?: 'fullscreen' | 'l' | 'm' | 's';
|
|
@@ -242,6 +243,7 @@ export interface ModalSettings {
|
|
|
242
243
|
title?: string;
|
|
243
244
|
closebtn_data_testid?: string;
|
|
244
245
|
keepPrevious?: boolean;
|
|
246
|
+
nodeParams?: Record<string, any>;
|
|
245
247
|
}
|
|
246
248
|
export interface ProductSwitcher {
|
|
247
249
|
altText?: string;
|
|
@@ -336,5 +338,7 @@ export interface TitleResolver {
|
|
|
336
338
|
export interface ViewGroupSettings {
|
|
337
339
|
preloadUrl?: string;
|
|
338
340
|
loadOnStartup?: boolean;
|
|
341
|
+
customData?: Record<string, any>;
|
|
342
|
+
_liveCustomData?: Record<string, any>;
|
|
339
343
|
}
|
|
340
344
|
export type HistoryMethod = 'pushState' | 'replaceState';
|
|
@@ -44,5 +44,7 @@ export declare const NavigationHelpers: {
|
|
|
44
44
|
label: string;
|
|
45
45
|
icon?: string;
|
|
46
46
|
};
|
|
47
|
+
getUrlOrigin(url: string): string | undefined;
|
|
48
|
+
findViewGroup(node: Node, originalNode?: Node): string | undefined;
|
|
47
49
|
openExternalLink(externalLink: ExternalLink, pathParams?: Record<string, any>): void;
|
|
48
50
|
};
|
|
@@ -48,6 +48,7 @@ export declare const RoutingHelpers: {
|
|
|
48
48
|
* @returns a string with the route or undefined, if node is not an ancestor of path-node
|
|
49
49
|
*/
|
|
50
50
|
mapPathToNode(path: string, node: Node): string | undefined;
|
|
51
|
+
resolveNodeLabel(node: Node, luigi: Luigi): string;
|
|
51
52
|
getNodeLabel(node: Node, luigi: Luigi): Promise<string>;
|
|
52
53
|
/**
|
|
53
54
|
* Retrieves the content view parameter prefix from the Luigi configuration.
|