@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.
- package/dist/{component-CpGMxTfT.js → component-DGPt9i3-.js} +2 -2
- package/dist/{component-CpGMxTfT.js.map → component-DGPt9i3-.js.map} +1 -1
- package/dist/{index-pgOwovhb.js → index-C8RN2NKs.js} +9 -13
- package/dist/index-C8RN2NKs.js.map +1 -0
- package/dist/index.js +23 -27
- package/dist/{plugin-DEXZvNv6.js → plugin-MLG7cNJN.js} +2 -2
- package/dist/{plugin-DEXZvNv6.js.map → plugin-MLG7cNJN.js.map} +1 -1
- package/dist/primary/shell/src/index.d.ts +0 -1
- package/package.json +1 -1
- package/src/features/utils.ts +4 -2
- package/src/index.ts +3 -3
- package/dist/index-pgOwovhb.js.map +0 -1
|
@@ -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
package/src/features/utils.ts
CHANGED
|
@@ -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`
|
|
10
|
-
//
|
|
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
|
|
21
|
-
//
|
|
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";
|