diff --git a/client/src/lifecycleManager.js b/client/src/lifecycleManager.js index ed62c0e1cd..3f6f0c2329 100644 --- a/client/src/lifecycleManager.js +++ b/client/src/lifecycleManager.js @@ -391,7 +391,6 @@ class LifecycleManager extends LuigiClientBase { } /** - * * Returns a list of active feature toggles * @returns {Array} a list of feature toggle names * @memberof Lifecycle @@ -404,7 +403,6 @@ class LifecycleManager extends LuigiClientBase { } /** - * * Sets node parameters in Luigi Core. The parameters will be added to the URL. * @param {Object} params * @param {boolean} keepBrowserHistory @@ -423,7 +421,6 @@ class LifecycleManager extends LuigiClientBase { } /** - * * Returns the node parameters of the active URL. * Node parameters are defined like URL query parameters but with a specific prefix allowing Luigi to pass them to the micro frontend view. The default prefix is **~** and you can use it in the following way: `https://my.luigi.app/home/products?~sort=asc&~page=3`. * @@ -442,7 +439,6 @@ class LifecycleManager extends LuigiClientBase { } /** - * * Returns the dynamic path parameters of the active URL. * Path parameters are defined by navigation nodes with a dynamic **pathSegment** value starting with **:**, such as **productId**. * All path parameters in the current navigation path (as defined by the active URL) are returned. @@ -469,7 +465,7 @@ class LifecycleManager extends LuigiClientBase { } /** - * + * * Sends search query parameters to Luigi Core. The search parameters will be added to the URL if they are first allowed on a node level using {@link navigation-parameters-reference.md#clientpermissionsurlparameters clientPermissions.urlParameters}. * @param {Object} searchParams @@ -489,7 +485,6 @@ class LifecycleManager extends LuigiClientBase { } /** - * * Returns the current client permissions as specified in the navigation node or an empty object. For details, see [Node parameters](navigation-parameters-reference.md). * @returns {Object} client permissions as specified in the navigation node * @memberof Lifecycle @@ -501,6 +496,7 @@ class LifecycleManager extends LuigiClientBase { } /** + * * When the micro frontend is not embedded in the Luigi Core application and there is no init handshake you can set the target origin that is used in postMessage function calls by Luigi Client. Typically used only in custom micro-frontend frameworks that are compatible with LuigiClient API. * @param {string} origin target origin * @memberof Lifecycle @@ -513,6 +509,7 @@ class LifecycleManager extends LuigiClientBase { } /** + * * Sends a custom message to the Luigi Core application. * @param {Object} message an object containing data to be sent to the Luigi Core to process it further. This object is set as an input parameter of the custom message listener on the Luigi Core side * @param {string} message.id a string containing the message id @@ -529,7 +526,6 @@ class LifecycleManager extends LuigiClientBase { } /** - * * Returns the current user settings based on the selected node. * @returns {Object} current user settings * @since 1.7.1 @@ -542,7 +538,6 @@ class LifecycleManager extends LuigiClientBase { } /** - * * Returns the current anchor based on active URL. * @memberof Lifecycle * @since 1.21.0 @@ -555,7 +550,6 @@ class LifecycleManager extends LuigiClientBase { } /** - * * Sends anchor to Luigi Core. The anchor will be added to the URL. * @param {string} anchor * @since 1.21.0 @@ -571,7 +565,6 @@ class LifecycleManager extends LuigiClientBase { } /** - * * This function allows you to change node labels within the same {@link navigation-advanced.md#view-groups view group}, e.g. in your node config: `label: 'my Node {viewGroupData.vg1}'`. * @since 2.2.0 * @param {Object} data a data object containing the view group name and desired label diff --git a/client/src/linkManager.js b/client/src/linkManager.js index 89f84b2f57..7c6ddcbc4d 100644 --- a/client/src/linkManager.js +++ b/client/src/linkManager.js @@ -36,7 +36,6 @@ export class linkManager extends LuigiClientBase { } /** - * * Navigates to the given path in the application hosted by Luigi. It contains either a full absolute path or a relative path without a leading slash that uses the active route as a base. This is the standard navigation. * @memberof linkManager * @param {string} path path to be navigated to @@ -97,7 +96,6 @@ export class linkManager extends LuigiClientBase { } /** - * * Updates path of the modalPathParam when internal navigation occurs. * @memberof linkManager * @param {string} path @@ -125,7 +123,6 @@ export class linkManager extends LuigiClientBase { } /** - * * Offers an alternative way of navigating with intents. This involves specifying a semanticSlug and an object containing * parameters. * This method internally generates a URL of the form `#?intent=-?=` through the given @@ -158,7 +155,6 @@ export class linkManager extends LuigiClientBase { } /** - * * Opens a view in a modal. You can specify the modal'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 modal is `l`, which means 80%. You can also use `m` (60%) and `s` (40%) to set the modal size. Optionally, use it in combination with any of the navigation functions. * @memberof linkManager * @param {string} path navigation path @@ -195,8 +191,8 @@ export class linkManager extends LuigiClientBase { return modalPromise.promise; } - /** - * + /** + * * Updates the current title and size of a modal. If `routing.showModalPathInUrl` is set to `true`, the URL will be updated with the modal settings data. * In addition, you can specify if a new history entry will be created with the updated URL. * @memberof linkManager @@ -219,7 +215,6 @@ export class linkManager extends LuigiClientBase { } /** - * * 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. * @memberof linkManager * @param {string} path navigation path @@ -239,7 +234,6 @@ export class linkManager extends LuigiClientBase { } /** - * * Opens a view in a drawer. You can specify the size of the drawer, whether the drawer has a header, and whether a backdrop is active in the background. By default, the header is shown. The backdrop is not visible and has to be activated. The size of the drawer is set to `s` by default, which means 25% of the micro frontend size. You can also use `l`(75%), `m`(50%) or `xs`(15.5%). Optionally, use it in combination with any of the navigation functions. * @memberof linkManager * @param {string} path navigation path @@ -258,7 +252,6 @@ export class linkManager extends LuigiClientBase { } /** - * * Sets the current navigation context to that of a specific parent node which has the {@link navigation-configuration.md navigationContext} field declared in the navigation configuration. This navigation context is then used by the `navigate` function. * @memberof linkManager * @param {string} navigationContext @@ -298,7 +291,6 @@ export class linkManager extends LuigiClientBase { } /** - * * Sets the current navigation base to the parent node that is defined as virtualTree. This method works only when the currently active micro frontend is inside a virtualTree. * @memberof linkManager * @returns {linkManager} link manager instance @@ -314,7 +306,6 @@ export class linkManager extends LuigiClientBase { } /** - * * Enables navigating to sibling nodes without knowing the absolute path. * @memberof linkManager * @returns {linkManager} link manager instance @@ -328,7 +319,6 @@ export class linkManager extends LuigiClientBase { } /** - * * Sends node parameters to the route. The parameters are used by the `navigate` function. Use it optionally in combination with any of the navigation functions and receive it as part of the context object in Luigi Client. * @memberof linkManager * @param {Object} nodeParams @@ -347,7 +337,7 @@ export class linkManager extends LuigiClientBase { } /** - * + * * Sets options to customise route changing behaviour. The parameters are used by the `navigate` function. Use it optionally in combination with any of the navigation functions and receive it as part of the context object in Luigi Client. * @memberof linkManager * @param {Object} options navigation options @@ -376,7 +366,6 @@ export class linkManager extends LuigiClientBase { /** @lends linkManager */ /** - * * Checks if the path you can navigate to exists in the main application. For example, you can use this helper method conditionally to display a DOM element like a button. * @memberof linkManager * @param {string} path path which existence you want to check @@ -432,7 +421,6 @@ export class linkManager extends LuigiClientBase { } /** - * * Checks if there is one or more preserved views. You can use it to show a **back** button. * @memberof linkManager * @returns {boolean} indicating if there is a preserved view you can return to @@ -442,7 +430,6 @@ export class linkManager extends LuigiClientBase { } /** - * * Discards the active view and navigates back to the last visited view. Works with preserved views, and also acts as the substitute of the browser **back** button. **goBackContext** is only available when using preserved views. * @memberof linkManager * @param {any} goBackValue data that is passed in the **goBackContext** field to the last visited view when using preserved views @@ -458,7 +445,7 @@ export class linkManager extends LuigiClientBase { } /** - * + * * Disables the navigation handling for a single navigation request. * It prevents Luigi Core from handling the URL change after `navigate()`. * Used for auto-navigation. @@ -473,6 +460,7 @@ export class linkManager extends LuigiClientBase { } /** + * * Enables navigating to a new tab. * @since 1.16.0 * @example @@ -484,7 +472,7 @@ export class linkManager extends LuigiClientBase { } /** - * + * * Keeps the URL's query parameters for a navigation request. * @param {boolean} preserve By default, it is set to `false`. If it is set to `true`, the URL's query parameters will be kept after navigation. * @since 1.19.0 @@ -498,7 +486,6 @@ export class linkManager extends LuigiClientBase { } /** - * * Gets the luigi route associated with the current micro frontend. * @returns {promise} a promise which resolves to a String value specifying the current luigi route * @since 1.23.0 diff --git a/client/src/storageManager.js b/client/src/storageManager.js index 2a7a8a1385..03323f22fe 100644 --- a/client/src/storageManager.js +++ b/client/src/storageManager.js @@ -4,6 +4,7 @@ import { helpers } from './helpers'; const pendingOperation = new Map(); /** + * * StorageManager allows you to use browser local storage of key/values. Every storage operation is sent to be managed by Luigi Core. * The idea is that different micro frontends can share or persist items using local storage, as long as they come from the same domain and follow the [same-origin policy](https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy). * Since all storage operations are asynchronous (sending an event to Luigi Core that will reply once operation is finished), all the methods return Promises. diff --git a/client/src/uxManager.js b/client/src/uxManager.js index e4bb677745..47d12f85c5 100644 --- a/client/src/uxManager.js +++ b/client/src/uxManager.js @@ -19,7 +19,6 @@ class UxManager extends LuigiClientBase { } /** - * * Adds a backdrop with a loading indicator for the micro frontend frame. This overrides the {@link navigation-parameters-reference.md#node-parameters loadingIndicator.enabled} setting. * @memberof uxManager */ @@ -28,7 +27,6 @@ class UxManager extends LuigiClientBase { } /** - * * Removes the loading indicator. Use it after calling {@link #showLoadingIndicator showLoadingIndicator()} or to hide the indicator when you use the {@link navigation-parameters-reference.md#node-parameters loadingIndicator.hideAutomatically: false} node configuration. * @memberof uxManager */ @@ -37,7 +35,6 @@ class UxManager extends LuigiClientBase { } /** - * * Closes the currently opened micro frontend modal. * @memberof uxManager */ @@ -46,7 +43,6 @@ class UxManager extends LuigiClientBase { } /** - * * Adds a backdrop to block the top and side navigation. It is based on the Fundamental UI Modal, which you can use in your micro frontend to achieve the same behavior. * @memberof uxManager */ @@ -55,7 +51,6 @@ class UxManager extends LuigiClientBase { } /** - * * Removes the backdrop. * @memberof uxManager */ @@ -64,7 +59,6 @@ class UxManager extends LuigiClientBase { } /** - * * This method informs the main application that there are unsaved changes in the current view in the iframe. It can be used to prevent navigation away from the current view, for example with form fields which were edited but not submitted. However, this functionality is not restricted to forms. If you use `withoutSync()` together with `setDirtyStatus()`, this is a special case in which the dirty state logic needs to be handled by the micro frontend. For example, if the user navigates with an Angular router, which would trigger `withoutSync()`, Angular needs to take care about dirty state, prevent the navigation and ask for permission to navigate away, through `uxManager().showConfirmationModal(settings)`. * @param {boolean} isDirty indicates if there are any unsaved changes on the current page or in the component * @memberof uxManager @@ -77,7 +71,6 @@ class UxManager extends LuigiClientBase { } /** - * * Shows a confirmation modal. * @memberof uxManager * @param {Object} settings the settings of the confirmation modal. If you don't provide any value for any of the fields, a default value is used @@ -136,7 +129,6 @@ class UxManager extends LuigiClientBase { } /** - * * Shows an alert. * @memberof uxManager * @param {Object} settings the settings for the alert @@ -215,7 +207,6 @@ class UxManager extends LuigiClientBase { } /** - * * Gets the current locale. * @returns {string} current locale * @memberof uxManager @@ -225,7 +216,7 @@ class UxManager extends LuigiClientBase { } /** - * + * * Sets current locale to the specified one. * * **NOTE:** this must be explicitly allowed on the navigation node level by setting `clientPermissions.changeCurrentLocale` to `true`. (See {@link navigation-parameters-reference.md Node parameters}.) @@ -245,7 +236,7 @@ class UxManager extends LuigiClientBase { } /** - * + * * Checks if the current micro frontend is displayed inside a split view * @returns {boolean} indicating if it is loaded inside a split view * @memberof uxManager @@ -256,6 +247,7 @@ class UxManager extends LuigiClientBase { } /** + * * Checks if the current micro frontend is displayed inside a modal * @returns {boolean} indicating if it is loaded inside a modal * @memberof uxManager @@ -266,7 +258,7 @@ class UxManager extends LuigiClientBase { } /** - * + * * Checks if the current micro frontend is displayed inside a drawer * @returns {boolean} indicating if it is loaded inside a drawer * @memberof uxManager @@ -277,7 +269,6 @@ class UxManager extends LuigiClientBase { } /** - * * Gets the current theme. * @returns {*} current themeObj * @memberof uxManager @@ -287,7 +278,7 @@ class UxManager extends LuigiClientBase { } /** - * + * * Gets the CSS variables from Luigi Core with their key and value. * @returns {Object} CSS variables with their key and value. * @memberof uxManager @@ -299,7 +290,7 @@ class UxManager extends LuigiClientBase { } /** - * + * * Adds the CSS variables from Luigi Core in a