From d9c9c9829cf1d209ac3f102450376e7c768a2cd4 Mon Sep 17 00:00:00 2001 From: Guilherme Leme Date: Thu, 20 Nov 2025 17:19:40 -0300 Subject: [PATCH 1/2] [zindex-floating-window] added z-index property into floating window constructor --- src/extensible-areas/floating-window/component.ts | 5 +++++ src/extensible-areas/floating-window/types.ts | 1 + 2 files changed, 6 insertions(+) diff --git a/src/extensible-areas/floating-window/component.ts b/src/extensible-areas/floating-window/component.ts index 6b86e76b..4810c782 100644 --- a/src/extensible-areas/floating-window/component.ts +++ b/src/extensible-areas/floating-window/component.ts @@ -19,6 +19,8 @@ export class FloatingWindow implements FloatingWindowInterface { boxShadow: string; + zIndex?: number; + contentFunction: (element: HTMLElement) => ReactDOM.Root; /** @@ -32,6 +34,7 @@ export class FloatingWindow implements FloatingWindowInterface { * @param movable - tells whether the floating window is movable or static. * @param backgroundColor - background color of the floating window. * @param boxShadow - box shadow to apply to the floating window + * @param zIndex - z-index of the floating window (Optional). * @param contentFunction - function that gives the html element to render the content of * the floating window. It must return the root element where the floating window was rendered. * @@ -44,6 +47,7 @@ export class FloatingWindow implements FloatingWindowInterface { movable, backgroundColor, boxShadow, + zIndex, contentFunction, }: FloatingWindowProps) { if (id) { @@ -54,6 +58,7 @@ export class FloatingWindow implements FloatingWindowInterface { this.movable = movable; this.backgroundColor = backgroundColor; this.boxShadow = boxShadow; + this.zIndex = zIndex; this.contentFunction = contentFunction; this.type = FloatingWindowType.CONTAINER; diff --git a/src/extensible-areas/floating-window/types.ts b/src/extensible-areas/floating-window/types.ts index ecb56732..746514e1 100644 --- a/src/extensible-areas/floating-window/types.ts +++ b/src/extensible-areas/floating-window/types.ts @@ -11,6 +11,7 @@ export interface FloatingWindowProps { movable: boolean; backgroundColor: string; boxShadow: string; + zIndex?: number; contentFunction: (element: HTMLElement) => ReactDOM.Root; } From 928cce0ac07fdebf4bf133aa184d8cd883bf8bc0 Mon Sep 17 00:00:00 2001 From: Guilherme Leme Date: Thu, 8 Jan 2026 16:29:01 -0300 Subject: [PATCH 2/2] [zindex-floating-window] fixed some lint-errors --- .eslintignore | 2 ++ src/extensible-areas/floating-window/component.ts | 2 +- src/utils/logger/logger.ts | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.eslintignore b/.eslintignore index f06235c4..a8c16873 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,2 +1,4 @@ node_modules dist +samples/*/dist +samples/*/dist-tsc diff --git a/src/extensible-areas/floating-window/component.ts b/src/extensible-areas/floating-window/component.ts index 5ae58ef3..4c7e07d2 100644 --- a/src/extensible-areas/floating-window/component.ts +++ b/src/extensible-areas/floating-window/component.ts @@ -20,7 +20,7 @@ export class FloatingWindow implements FloatingWindowInterface { boxShadow: string; zIndex?: number; - + dataTest?: string; contentFunction: (element: HTMLElement) => ReactDOM.Root; diff --git a/src/utils/logger/logger.ts b/src/utils/logger/logger.ts index 4cd498b4..6cd28f95 100644 --- a/src/utils/logger/logger.ts +++ b/src/utils/logger/logger.ts @@ -50,6 +50,7 @@ function logWith(level: T, ...args: LoggerArgument[]): v try { method.call(logger, ...args); } catch (err) { + // eslint-disable-next-line no-console console.error(`[pluginLogger.${String(level)}] fallback`, err, ...args); } }