From e073e8a1b6997db51fba32fabed898aa65c73c94 Mon Sep 17 00:00:00 2001 From: JohannesDoberer Date: Tue, 5 Nov 2024 17:11:06 +0100 Subject: [PATCH 1/2] container release-v1.4.0 --- container/CHANGELOG.md | 20 ++++++++++++++++++- container/public/package.json | 2 +- .../LuigiCompoundContainer.svelte.d.ts | 8 ++++---- container/typings/LuigiContainer.svelte.d.ts | 2 +- docs/luigi-compound-container-api.md | 8 ++++---- docs/luigi-container-api.md | 2 +- 6 files changed, 30 insertions(+), 12 deletions(-) diff --git a/container/CHANGELOG.md b/container/CHANGELOG.md index 6b20e1468b..18f706afdc 100644 --- a/container/CHANGELOG.md +++ b/container/CHANGELOG.md @@ -4,6 +4,23 @@ +## [v1.4.0] (2024-11-05) + +#### :rocket: Added + +* [#3985](https://github.com/SAP/luigi/pull/3985) Add custom elements manifest for Luigi(Compound)Container ([@JohannesDoberer](https://github.com/JohannesDoberer)) +* [#3936](https://github.com/SAP/luigi/pull/3936) Adds theme property for compound container ([@walmazacn](https://github.com/walmazacn)) +* [#3934](https://github.com/SAP/luigi/pull/3934) Adds node params to compound container typings ([@walmazacn](https://github.com/walmazacn)) +* [#3937](https://github.com/SAP/luigi/pull/3937) Adds activeFeatureToggleList property to LuigiCompoundContainer ([@walmazacn](https://github.com/walmazacn)) +* [#3935](https://github.com/SAP/luigi/pull/3935) Adds locale property to Luigi Compound Container ([@ndricimrr](https://github.com/ndricimrr)) + +#### :bug: Fixed + +* [#3988](https://github.com/SAP/luigi/pull/3988) fix wrong msg target resolution ([@hardl](https://github.com/hardl)) + + + + ## [v1.3.0] (2024-08-27) #### :rocket: Added @@ -36,4 +53,5 @@ [v1.1.0]: https://github.com/SAP/luigi/compare/container/v1.0.0...container/v1.1.0 [v1.2.0]: https://github.com/SAP/luigi/compare/container/v1.1.0...container/v1.2.0 -[v1.3.0]: https://github.com/SAP/luigi/compare/container/v1.2.0...container/v1.3.0 \ No newline at end of file +[v1.3.0]: https://github.com/SAP/luigi/compare/container/v1.2.0...container/v1.3.0 +[v1.4.0]: https://github.com/SAP/luigi/compare/container/v1.3.0...container/v1.4.0 \ No newline at end of file diff --git a/container/public/package.json b/container/public/package.json index 2d080fb92a..58a0e2e444 100644 --- a/container/public/package.json +++ b/container/public/package.json @@ -20,5 +20,5 @@ "micro-frontends", "microfrontends" ], - "version": "1.3.0" + "version": "1.4.0" } \ No newline at end of file diff --git a/container/typings/LuigiCompoundContainer.svelte.d.ts b/container/typings/LuigiCompoundContainer.svelte.d.ts index 975bca9965..b912a596f2 100644 --- a/container/typings/LuigiCompoundContainer.svelte.d.ts +++ b/container/typings/LuigiCompoundContainer.svelte.d.ts @@ -36,7 +36,7 @@ export default class LuigiCompoundContainer extends HTMLElement { /** * * The locale to be passed to the compound micro frontend. - * @since NEXT_RELEASE_CONTAINER + * @since 1.4.0 * * @example * @example myContainer.locale = "en_us" @@ -160,7 +160,7 @@ export default class LuigiCompoundContainer extends HTMLElement { /** * If set to true, skips handshake and ready event is fired immediately. - * @since NEXT_RELEASE_CONTAINER + * @since 1.4.0 * * @example * @example myContainer.skipInitCheck = true @@ -169,7 +169,7 @@ export default class LuigiCompoundContainer extends HTMLElement { /** * The list of active feature toggles to be passed to the compound microfrontend. - * @since NEXT_RELEASE_CONTAINER + * @since 1.4.0 * * * @example @@ -179,7 +179,7 @@ export default class LuigiCompoundContainer extends HTMLElement { /** * The theme to be passed to the compound microfrontend. - * @since NEXT_RELEASE_CONTAINER + * @since 1.4.0 * * * @example diff --git a/container/typings/LuigiContainer.svelte.d.ts b/container/typings/LuigiContainer.svelte.d.ts index 8a01c92292..ede5a26191 100644 --- a/container/typings/LuigiContainer.svelte.d.ts +++ b/container/typings/LuigiContainer.svelte.d.ts @@ -97,7 +97,7 @@ export default class LuigiContainer extends HTMLElement { /** * If set to true, skips third party cookie check - * @since NEXT_RELEASE_CONTAINER + * @since 1.4.0 * * @example * @example myContainer.skipCookieCheck = true diff --git a/docs/luigi-compound-container-api.md b/docs/luigi-compound-container-api.md index 309a21c17c..d36b6df15d 100644 --- a/docs/luigi-compound-container-api.md +++ b/docs/luigi-compound-container-api.md @@ -96,7 +96,7 @@ myContainer.locale = "en_us" **Meta** -* **since**: NEXT_RELEASE_CONTAINER +* **since**: 1.4.0 ### nodeParams @@ -367,7 +367,7 @@ myContainer.skipInitCheck = true **Meta** -* **since**: NEXT_RELEASE_CONTAINER +* **since**: 1.4.0 ### activeFeatureToggleList @@ -387,7 +387,7 @@ myContainer.activeFeatureToggleList = ["enable-foo", "allow-bar"] **Meta** -* **since**: NEXT_RELEASE_CONTAINER +* **since**: 1.4.0 ### theme @@ -407,7 +407,7 @@ myContainer.theme = 'sap_horizon' **Meta** -* **since**: NEXT_RELEASE_CONTAINER +* **since**: 1.4.0 ### updateContext diff --git a/docs/luigi-container-api.md b/docs/luigi-container-api.md index 63a8d402d7..8374b42b81 100644 --- a/docs/luigi-container-api.md +++ b/docs/luigi-container-api.md @@ -220,7 +220,7 @@ myContainer.skipCookieCheck = true **Meta** -* **since**: NEXT_RELEASE_CONTAINER +* **since**: 1.4.0 ### skipInitCheck From e6ffb59513fbe4e38d2df69373383c8479c97f6f Mon Sep 17 00:00:00 2001 From: JohannesDoberer Date: Tue, 5 Nov 2024 17:11:50 +0100 Subject: [PATCH 2/2] prettier --- .../LuigiCompoundContainer.svelte.d.ts | 42 +++++++++---------- container/typings/LuigiContainer.svelte.d.ts | 38 ++++++++--------- 2 files changed, 40 insertions(+), 40 deletions(-) diff --git a/container/typings/LuigiCompoundContainer.svelte.d.ts b/container/typings/LuigiCompoundContainer.svelte.d.ts index b912a596f2..8711d388a5 100644 --- a/container/typings/LuigiCompoundContainer.svelte.d.ts +++ b/container/typings/LuigiCompoundContainer.svelte.d.ts @@ -7,7 +7,7 @@ export declare interface WebComponentSettings { export default class LuigiCompoundContainer extends HTMLElement { /** * The URL used for the renderer. - * + * * @example * @example myContainer.viewurl = "/index.html" */ @@ -17,7 +17,7 @@ export default class LuigiCompoundContainer extends HTMLElement { * The configuration for the compound microfrontend. * Take a look at the [compound parameter](https://docs.luigi-project.io/docs/navigation-parameters-reference/?section=compound) for details. * @since 1.0.0 - * + * * @example renderer = { use: 'grid', config: { columns: '1fr 1fr 1fr 2fr', layouts: [{maxWidth: 600, columns: '1fr', gap: 0, ...}]}}; * children = [{ viewUrl: '/main.js', context: { label: 'WC', ...}, layoutConfig: {column: '1 / -1', ...}, eventListeners: [{ source: 'input1', ...}}]}]; * myContainer.compoundConfig = { renderer, children }; @@ -27,7 +27,7 @@ export default class LuigiCompoundContainer extends HTMLElement { /** * If set to true defers from initializing the microfronted automatically. In that case init() can be used. * @since 1.0.0 - * + * * @example * @example myContainer.deferInit = true */ @@ -37,7 +37,7 @@ export default class LuigiCompoundContainer extends HTMLElement { * * The locale to be passed to the compound micro frontend. * @since 1.4.0 - * + * * @example * @example myContainer.locale = "en_us" */ @@ -46,7 +46,7 @@ export default class LuigiCompoundContainer extends HTMLElement { /** * The parameters to be passed to the compound micro frontend. Will not be passed to the compound children. * @since 1.0.0 - * + * * @example * @example myContainer.nodeParams = {foo: bar} */ @@ -55,7 +55,7 @@ export default class LuigiCompoundContainer extends HTMLElement { /** * If set to true, the Luigi compound container webcomponent will not use the shadow DOM for rendering. * @since 1.2.0 - * + * * @example * @example myContainer.noShadow = true */ @@ -64,7 +64,7 @@ export default class LuigiCompoundContainer extends HTMLElement { /** * The search parameters to be passed to the compound micro frontend. * @since 1.0.0 - * + * * @example * @example myContainer.searchParams = {foo: bar} */ @@ -73,7 +73,7 @@ export default class LuigiCompoundContainer extends HTMLElement { /** * The path parameters to be passed to the compound micro frontend. * @since 1.0.0 - * + * * @example * @example myContainer.pathParams = {foo: "bar"} */ @@ -82,7 +82,7 @@ export default class LuigiCompoundContainer extends HTMLElement { /** * The stringified context to be passed to the compound microfrontend. * @since 1.0.0 - * + * * @example * @example myContainer.context = {label: "Dashboard"} */ @@ -91,7 +91,7 @@ export default class LuigiCompoundContainer extends HTMLElement { /** * The clientPermissions to be passed to the compound micro frontend. * @since 1.0.0 - * + * * @example * @example myContainer.clientPermissions = {permission: "adminGroup"} */ @@ -100,7 +100,7 @@ export default class LuigiCompoundContainer extends HTMLElement { /** * The user settings to be passed to the compound micro frontend. * @since 1.0.0 - * + * * @example * @example myContainer.userSettings = {language: 'de', theme: 'sap_horizon'} */ @@ -109,7 +109,7 @@ export default class LuigiCompoundContainer extends HTMLElement { /** * The anchor value to be passed to the compound micro frontend. * @since 1.0.0 - * + * * @example * @example myContainer.anchor = '#foo' */ @@ -118,7 +118,7 @@ export default class LuigiCompoundContainer extends HTMLElement { /** * The document title value to be passed to the compound micro frontend. * @since 1.2.0 - * + * * @example * @example myContainer.documentTitle = 'Luigi App' */ @@ -128,7 +128,7 @@ export default class LuigiCompoundContainer extends HTMLElement { * The hasBack value to be passed to the compound micro frontend. * It indicates that there is one or more preserved views. Useful when you need to show a back button. * @since 1.2.0 - * + * * @example * @example myContainer.hasBack = true */ @@ -138,7 +138,7 @@ export default class LuigiCompoundContainer extends HTMLElement { * The dirty status value to be passed to the compound micro frontend. * It's used to indicate that there are unsaved changes when navigating away. * @since 1.2.0 - * + * * @example * @example myContainer.dirtyStatus = true */ @@ -152,7 +152,7 @@ export default class LuigiCompoundContainer extends HTMLElement { * @param {string} WebComponentSettings.tagName: tag name where web component is added to DOM. * @param {string} string must be a stringified JSON object from type `WebComponentSettings`. * @since 1.0.0 - * + * * @example * @example myContainer.webcomponent = { type: 'module', selfRegistered: true, tagName: 'my-webcomponent'} */ @@ -161,7 +161,7 @@ export default class LuigiCompoundContainer extends HTMLElement { /** * If set to true, skips handshake and ready event is fired immediately. * @since 1.4.0 - * + * * @example * @example myContainer.skipInitCheck = true */ @@ -170,8 +170,8 @@ export default class LuigiCompoundContainer extends HTMLElement { /** * The list of active feature toggles to be passed to the compound microfrontend. * @since 1.4.0 - * - * + * + * * @example * @example myContainer.activeFeatureToggleList = ["enable-foo", "allow-bar"] */ @@ -180,8 +180,8 @@ export default class LuigiCompoundContainer extends HTMLElement { /** * The theme to be passed to the compound microfrontend. * @since 1.4.0 - * - * + * + * * @example * @example myContainer.theme = 'sap_horizon' */ diff --git a/container/typings/LuigiContainer.svelte.d.ts b/container/typings/LuigiContainer.svelte.d.ts index ede5a26191..1264961d11 100644 --- a/container/typings/LuigiContainer.svelte.d.ts +++ b/container/typings/LuigiContainer.svelte.d.ts @@ -8,7 +8,7 @@ export default class LuigiContainer extends HTMLElement { /** * The URL of the microfrontend to be rendered * @since 1.0.0 - * + * * @example * @example myContainer.viewurl = "/index.html" */ @@ -17,7 +17,7 @@ export default class LuigiContainer extends HTMLElement { /** * If set to true defers from initializing the microfronted automatically. In that case init() can be used * @since 1.0.0 - * + * * @example * @example myContainer.deferInit = true */ @@ -26,8 +26,8 @@ export default class LuigiContainer extends HTMLElement { /** * The stringified context object to be passed to the microfrontend * @since 1.0.0 - * - * + * + * * @example * @example myContainer.context = {label: "Dashboard"} */ @@ -36,7 +36,7 @@ export default class LuigiContainer extends HTMLElement { /** * Label information for the microfrontend * @since 1.0.0 - * + * * @example * @example myContainer.label = "Dashboard" */ @@ -71,7 +71,7 @@ export default class LuigiContainer extends HTMLElement { /** * The locale to be passed to the web-component-based micro frontend * @since 1.0.0 - * + * * @example * @example myContainer.locale = "en_us" */ @@ -80,7 +80,7 @@ export default class LuigiContainer extends HTMLElement { /** * The theme to be passed to the web-component-based micro frontend * @since 1.0.0 - * + * * @example * @example myContainer.theme = 'sap_horizon' */ @@ -89,7 +89,7 @@ export default class LuigiContainer extends HTMLElement { /** * The list of active feature toggles to be passed to the web-component-based micro frontend * @since 1.0.0 - * + * * @example myContainer.activeFeatureToggleList = ["enable-foo", "allow-bar"] * @example */ @@ -98,7 +98,7 @@ export default class LuigiContainer extends HTMLElement { /** * If set to true, skips third party cookie check * @since 1.4.0 - * + * * @example * @example myContainer.skipCookieCheck = true */ @@ -116,7 +116,7 @@ export default class LuigiContainer extends HTMLElement { /** * The parameters to be passed to the web-component-based micro frontend. * @since 1.0.0 - * + * * @example * @example myContainer.nodeParams = {foo: bar} */ @@ -125,7 +125,7 @@ export default class LuigiContainer extends HTMLElement { /** * If set to true, the Luigi container webcomponent will not use the shadow DOM for rendering. * @since 1.2.0 - * + * * @example * @example myContainer.noShadow = true */ @@ -134,7 +134,7 @@ export default class LuigiContainer extends HTMLElement { /** * The search parameters to be passed to the web-component-based micro frontend. * @since 1.0.0 - * + * * @example * @example myContainer.searchParams = {foo: bar} */ @@ -143,7 +143,7 @@ export default class LuigiContainer extends HTMLElement { /** * The path parameters to be passed to the web-component-based micro frontend. * @since 1.0.0 - * + * * @example * @example myContainer.pathParams = {foo: "bar"} */ @@ -152,7 +152,7 @@ export default class LuigiContainer extends HTMLElement { /** * The clientPermissions to be passed to the web-component-based micro frontend. * @since 1.0.0 - * + * * @example * @example myContainer.clientPermissions = {permission: "adminGroup"} */ @@ -161,7 +161,7 @@ export default class LuigiContainer extends HTMLElement { /** * The user settings to be passed to the web-component-based micro frontend * @since 1.0.0 - * + * * @example * @example myContainer.userSettings = {language: 'de', theme: 'sap_horizon'} */ @@ -170,7 +170,7 @@ export default class LuigiContainer extends HTMLElement { /** * The anchor value to be passed to the web-component-based micro frontend. * @since 1.0.0 - * + * * @example * @example myContainer.anchor = '#foo' */ @@ -197,7 +197,7 @@ export default class LuigiContainer extends HTMLElement { /** * The document title value to be passed to the web-component-based micro frontend. * @since 1.2.0 - * + * * @example * @example myContainer.documentTitle = 'Luigi App' */ @@ -207,7 +207,7 @@ export default class LuigiContainer extends HTMLElement { * The hasBack value to be passed to the web-component-based micro frontend. * It indicates that there is one or more preserved views. Useful when you need to show a back button. * @since 1.2.0 - * + * * @example * @example myContainer.hasBack = true */ @@ -217,7 +217,7 @@ export default class LuigiContainer extends HTMLElement { * The dirty status value to be passed to the web-component-based micro frontend. * It's used to indicate that there are unsaved changes when navigating away. * @since 1.2.0 - * + * * @example * @example myContainer.dirtyStatus = true */