@uxland/primary-shell 7.12.0 → 7.13.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uxland/primary-shell",
3
- "version": "7.12.0",
3
+ "version": "7.13.1",
4
4
  "description": "Primaria Shell",
5
5
  "author": "UXLand <dev@uxland.es>",
6
6
  "homepage": "https://github.com/uxland/harmonix/tree/app#readme",
@@ -1,5 +1,5 @@
1
1
  :host {
2
- z-index: 205;
2
+ z-index: 301;
3
3
  }
4
4
  .header {
5
5
  display: flex;
@@ -69,8 +69,7 @@ describe("RegionManagerProxy", () => {
69
69
 
70
70
  it("isViewActive should check if view is active", async () => {
71
71
  const result = await proxy.isViewActive("main", "view1");
72
- expect(regionMock.isViewActive).toHaveBeenCalledWith(`${pluginId}::view1`);
73
- expect(result).toBe(false);
72
+ expect(result).toBe(true);
74
73
  });
75
74
 
76
75
  it("registerQuickAction should register in quickActions region", async () => {
@@ -104,7 +104,8 @@ class RegionManagerProxy implements PrimariaRegionManager {
104
104
  */
105
105
  isViewActive(regionName: string, viewId: string) {
106
106
  const region = this.regionManager.getRegion(regionName);
107
- return Promise.resolve(region?.isViewActive(`${this.pluginInfo.pluginId}::${viewId}`));
107
+ const isViewActive = region.currentActiveViews.some((view) => view.id === viewId);
108
+ return Promise.resolve(isViewActive);
108
109
  }
109
110
  registerQuickAction(view: HarmonixViewDefinition): Promise<void> {
110
111
  this.regionManager.registerViewWithRegion(this.regions.shell.quickActions, `${this.pluginInfo.pluginId}::${view.id}`, view);