@uxland/primary-shell 8.2.2 → 8.2.4

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,6 +1,5 @@
1
1
  export * from './bootstrapper';
2
2
  export * from './disposer';
3
- export * from './api/region-manager/regions';
4
3
  export type { RegisteredMainView } from './api/region-manager/region-manager';
5
4
  export * from './handle-plugins';
6
5
  export type { PrimariaApi } from './api/api';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uxland/primary-shell",
3
- "version": "8.2.2",
3
+ "version": "8.2.4",
4
4
  "description": "Primaria Shell",
5
5
  "author": "UXLand <dev@uxland.es>",
6
6
  "homepage": "https://github.com/uxland/harmonix/tree/app#readme",
@@ -6,8 +6,10 @@ import { PrimariaApi } from "../api/api";
6
6
  // Helper intern del shell: registra una request al broker i binda el seu handler
7
7
  // al container d'Inversify. És el bessó del `registerRequest` de
8
8
  // `@primaria/plugins-core` (brokerExtensions), però es manté aquí a propòsit:
9
- // `plugins-core` depèn del shell (no al revés), i exposar aquest helper a l'API
10
- // pública del shell la bloataria innecessàriament.
9
+ // el shell només importa contractes de `plugins-core` (constants i tipus del
10
+ // broker), i `plugins-core` depèn del shell per l'API. Fer servir el seu helper aquí
11
+ // apuntalaria aquest cicle, i exposar aquest a l'API pública del shell la
12
+ // bloataria innecessàriament.
11
13
  export const registerRequest =
12
14
  (api: PrimariaApi, container: Container) => (command: IRequestClass<any>, handler: interfaces.Newable<any>) => {
13
15
  container.bind(handler).to(handler).inTransientScope();
package/src/index.ts CHANGED
@@ -10,15 +10,15 @@ if (typeof document !== "undefined") {
10
10
  }
11
11
  export * from "./bootstrapper";
12
12
  export * from "./disposer";
13
- export * from "./api/region-manager/regions";
14
13
  // Tipus de retorn de `regionManager.getRegisteredMainViews()`. El regionManager
15
14
  // arriba als plugins tipat via `PrimariaApi`; això només és per poder-lo anomenar.
16
15
  export type { RegisteredMainView } from "./api/region-manager/region-manager";
17
16
  export * from "./handle-plugins";
18
17
  // Superfície pública explícita: `primariaApiFactory`, `activityMonitor` i
19
18
  // `sessionRefreshTimer` són singletons interns del shell i no s'exposen.
20
- // Les constants de regió (`shellRegions`, `clinicalMonitoringRegions`...) tampoc:
21
- // des de la v8 els plugins han d'usar `api.regionManager.regions.*`.
19
+ // Les constants de regió (`shellRegions`, `clinicalMonitoringRegions`, `activityHistoryRegions` i
20
+ // `administrativeManagementRegions`) tampoc: es van retirar a la v8 i els plugins fan servir
21
+ // `api.regionManager.regions.*`.
22
22
  // `shellApi` es manté només perquè els hosts (app/sandbox) l'usen per arrencar;
23
23
  // els plugins han d'usar l'`api` que reben a `initialize(api)`.
24
24
  export type { PrimariaApi } from "./api/api";