@uxland/primary-shell 7.36.0 → 7.36.2

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.36.0",
3
+ "version": "7.36.2",
4
4
  "description": "Primaria Shell",
5
5
  "author": "UXLand <dev@uxland.es>",
6
6
  "homepage": "https://github.com/uxland/harmonix/tree/app#readme",
@@ -30,7 +30,7 @@
30
30
  },
31
31
  "devDependencies": {
32
32
  "@primaria/plugins-core": "^1.0.14",
33
- "@salut/design-system-salut": "../../design-system-salut-2.13.2.tgz",
33
+ "@salut/design-system-salut": "../../design-system-salut-2.14.0.tgz",
34
34
  "@types/react": "^19.0.12",
35
35
  "@uxland/lit-utilities": "^1.0.0",
36
36
  "@uxland/localization": "^1.0.3",
@@ -24,6 +24,7 @@ describe("RegionManagerProxy", () => {
24
24
  regionMock = createMockRegion();
25
25
  regionManager = {
26
26
  registerViewWithRegion: vi.fn(),
27
+ unregisterViewFromRegion: vi.fn(),
27
28
  getRegion: vi.fn().mockReturnValue(regionMock),
28
29
  destroy: vi.fn(),
29
30
  };
@@ -40,9 +41,9 @@ describe("RegionManagerProxy", () => {
40
41
  expect(regionManager.registerViewWithRegion).toHaveBeenCalledWith("test-region", `${pluginId}::${mockView.id}`, mockView);
41
42
  });
42
43
 
43
- it("removeView should remove view from region", async () => {
44
+ it("removeView should unregister view from region manager", async () => {
44
45
  await proxy.removeView("main", "view1");
45
- expect(regionMock.removeView).toHaveBeenCalledWith(`${pluginId}::view1`);
46
+ expect(regionManager.unregisterViewFromRegion).toHaveBeenCalledWith("main", `${pluginId}::view1`);
46
47
  });
47
48
 
48
49
  it("activateView should activate the view and notify if region is main", async () => {
@@ -50,8 +50,7 @@ class RegionManagerProxy implements PrimariaRegionManager {
50
50
  * @return {Promise<void>} A promise that resolves when the view is successfully removed.
51
51
  */
52
52
  removeView(regionName: string, viewId: string): Promise<void> {
53
- const region = this.regionManager.getRegion(regionName);
54
- if (region) region.removeView(`${this.pluginInfo.pluginId}::${viewId}`);
53
+ this.regionManager.unregisterViewFromRegion(regionName, `${this.pluginInfo.pluginId}::${viewId}`);
55
54
  return Promise.resolve();
56
55
  }
57
56
  /**