@luigi-project/client 2.32.1-dev.202610220048 → 2.32.1-dev.202610230546
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-element.d.ts +2 -1
- package/package.json +1 -1
package/luigi-element.d.ts
CHANGED
|
@@ -300,10 +300,11 @@ export declare interface LinkManager {
|
|
|
300
300
|
* @param {boolean} modalSettings.keepPrevious Lets you open multiple modals. Keeps the previously opened modal and allows to open another modal on top of the previous one. By default the previous modals are discarded.
|
|
301
301
|
* @param {string} modalSettings.closebtn_data_testid lets you specify a `data_testid` for the close button. Default value is `lui-modal-index-0`. If multiple modals are opened the index will be increased per modal.
|
|
302
302
|
* @param {Function} onCloseCallback callback function called upon closing the opened modal
|
|
303
|
+
* @returns {promise} which is resolved when closing the modal. By using LuigiClient.linkManager().goBack({ foo: 'bar' }) to close the modal you have access to the `goBackContext` when the promise will be resolved.
|
|
303
304
|
* @example
|
|
304
305
|
* LuigiClient.linkManager().openAsModal('projects/pr1/users', {title:'Users', size:'m'});
|
|
305
306
|
*/
|
|
306
|
-
openAsModal: (nodepath: string, modalSettings?: ModalSettings, onCloseCallback?: Function) =>
|
|
307
|
+
openAsModal: <T = unknown>(nodepath: string, modalSettings?: ModalSettings, onCloseCallback?: Function) => Promise<T>;
|
|
307
308
|
|
|
308
309
|
/**
|
|
309
310
|
* Opens a view in a split view. You can specify the split view's title and size. If you don't specify the title, it is the node label. If there is no node label, the title remains empty. The default size of the split view is 40, which means 40% height of the split view.
|
package/package.json
CHANGED