@uxland/primary-shell 3.5.0 → 3.5.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.
@@ -1,2 +1,2 @@
1
1
 
2
- export declare const bootstrapShell: (hostAppElement: HTMLElement) => void;
2
+ export declare const initializeShell: (hostAppElement: HTMLElement) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uxland/primary-shell",
3
- "version": "3.5.0",
3
+ "version": "3.5.1",
4
4
  "description": "Primaria Shell",
5
5
  "author": "UXLand <dev@uxland.es>",
6
6
  "homepage": "https://github.com/uxland/harmonix/tree/app#readme",
@@ -6,7 +6,7 @@ import { bootstrapFeatures } from "./features/bootstrapper";
6
6
  import { registerInternalViews } from "./handle-views";
7
7
  import { initializeLocalization } from "./locales";
8
8
 
9
- export const bootstrapShell = (hostAppElement: HTMLElement) => {
9
+ export const initializeShell = (hostAppElement: HTMLElement) => {
10
10
  initializeLocalization(shellApi);
11
11
  regionAdapterRegistry.registerAdapterFactory("primaria-content-switcher", factory);
12
12
  const shell = new PrimariaShell();
@@ -225,12 +225,7 @@ const registerUpperNavMenuViews = () => {
225
225
  const menuItem = new PrimariaNavItem({
226
226
  icon: "add_box",
227
227
  label: "Pàgina inici",
228
- callbackFn: () => {
229
- shellApi.broker.publish("window_close");
230
- shellApi.broker.publish(shellEvents.appCrashed, {
231
- message: "S'ha tancat la finestra",
232
- });
233
- },
228
+ callbackFn: () => {},
234
229
  });
235
230
  return Promise.resolve(menuItem);
236
231
  },