You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Typescript declarations for LuigiElement do not seem to include all the implemented LuigiClient API that we have added for WC based Luigi Client (for example in Container ClientAPI or also for Core WC clientAPI)
In particular, the following does not include all of the functionality that we added into clientAPI
* @returns {Object} node parameters, where the object property name is the node parameter name without the prefix, and its value is the value of the node parameter. For example `{sort: 'asc', page: 3}`
* @memberof LuigiClient
*/
getActiveFeatureToggles: ()=>Array<String>;
/**
* Gets the current locale.
* @returns {string} current locale
* @memberof LuigiClient
*/
getCurrentLocale: ()=>string;
linkManager: ()=>LinkManager;
uxManager: ()=>UxManager;
publishEvent: (event: Event)=>void;
/**
* Sets node parameters in Luigi Core. The parameters will be added to the 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`.
* <!-- add-attribute:class:warning -->
* > **NOTE:** some special characters (`<`, `>`, `"`, `'`, `/`) in node parameters are HTML-encoded.
* @param {boolean} shouldDesanitise defines whether the specially encoded characters should be desanitised
* @returns {Object} node parameters, where the object property name is the node parameter name without the prefix, and its value is the value of the node parameter. For example `{sort: 'asc', page: 3}`
* Sends anchor to Luigi Core. The anchor will be added to the URL.
* @param {string} anchor
* @memberof LuigiClient
*/
setAnchor: (anchor: string)=>void;
/**
* Retrieves the search params from the active URL
* @returns {Object} containing the search params
* @memberof LuigiClient
*/
getCoreSearchParams: ()=>Object;
/**
* 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.
* <!-- add-attribute:class:warning -->
* > **NOTE:** some special characters (`<`, `>`, `"`, `'`, `/`) in path parameters are HTML-encoded.
* @returns {Object} path parameters, where the object property name is the path parameter name without the prefix, and its value is the actual value of the path parameter. For example ` {productId: 1234, ...}`
* @memberof LuigiClient
*/
getPathParams: ()=>Object;
/**
* 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 LuigiClient
*/
getClientPermissions(): ()=>Object;
}
Compare it against Container implementation at least.
LuigiElement Implementation
LuigiElement d.ts declaration
Typescript declarations for LuigiElement do not seem to include all the implemented LuigiClient API that we have added for WC based Luigi Client (for example in Container ClientAPI or also for Core WC clientAPI)
In particular, the following does not include all of the functionality that we added into clientAPI
luigi/client/luigi-element.d.ts
Lines 408 to 468 in ee2e4ef
Compare it against Container implementation at least.
luigi/container/src/services/webcomponents.service.ts
Lines 272 to 337 in ee2e4ef
Discuss first if this is actually needed, as they may have been reasons not to do it in the first place.
The text was updated successfully, but these errors were encountered: