@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/dist/{component-DpOVlzni.js → component-C26_oeb6.js} +2 -2
- package/dist/{component-DpOVlzni.js.map → component-C26_oeb6.js.map} +1 -1
- package/dist/{index-DKMqJFrU.js → index-BzY8_3e-.js} +5 -5
- package/dist/index-BzY8_3e-.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/index.umd.cjs +2 -2
- package/dist/index.umd.cjs.map +1 -1
- package/package.json +1 -1
- package/src/UI/components/primaria-shell/shell-header/styles.css +1 -1
- package/src/api/region-manager/region-manager.test.ts +1 -2
- package/src/api/region-manager/region-manager.ts +2 -1
- package/dist/index-DKMqJFrU.js.map +0 -1
package/package.json
CHANGED
|
@@ -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(
|
|
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
|
-
|
|
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);
|