@uxland/primary-shell 8.2.4 → 8.2.5
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-DGPt9i3-.js → component-C2Ua1dAe.js} +2 -2
- package/dist/{component-DGPt9i3-.js.map → component-C2Ua1dAe.js.map} +1 -1
- package/dist/{index-C8RN2NKs.js → index-Br_kLUfN.js} +2012 -1990
- package/dist/index-Br_kLUfN.js.map +1 -0
- package/dist/index.js +27 -23
- package/dist/{plugin-MLG7cNJN.js → plugin-V7Mhxg9m.js} +2 -2
- package/dist/{plugin-MLG7cNJN.js.map → plugin-V7Mhxg9m.js.map} +1 -1
- package/dist/primary/shell/src/index.d.ts +1 -0
- package/dist/styles.css +1 -1
- package/package.json +2 -2
- package/src/features/utils.ts +2 -4
- package/src/index.ts +3 -3
- package/dist/index-C8RN2NKs.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uxland/primary-shell",
|
|
3
|
-
"version": "8.2.
|
|
3
|
+
"version": "8.2.5",
|
|
4
4
|
"description": "Primaria Shell",
|
|
5
5
|
"author": "UXLand <dev@uxland.es>",
|
|
6
6
|
"homepage": "https://github.com/uxland/harmonix/tree/app#readme",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"@uxland/harmonix-adapters": "^1.2.2"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@salut/design-system-salut": "../../design-system-salut-3.1.
|
|
32
|
+
"@salut/design-system-salut": "../../design-system-salut-3.1.4.tgz",
|
|
33
33
|
"@types/react": "^19.0.12",
|
|
34
34
|
"@uxland/lit-utilities": "^1.0.0",
|
|
35
35
|
"@uxland/localization": "^1.0.3",
|
package/src/features/utils.ts
CHANGED
|
@@ -6,10 +6,8 @@ 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
|
-
//
|
|
10
|
-
//
|
|
11
|
-
// apuntalaria aquest cicle, i exposar aquest a l'API pública del shell la
|
|
12
|
-
// bloataria innecessàriament.
|
|
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.
|
|
13
11
|
export const registerRequest =
|
|
14
12
|
(api: PrimariaApi, container: Container) => (command: IRequestClass<any>, handler: interfaces.Newable<any>) => {
|
|
15
13
|
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";
|
|
13
14
|
// Tipus de retorn de `regionManager.getRegisteredMainViews()`. El regionManager
|
|
14
15
|
// arriba als plugins tipat via `PrimariaApi`; això només és per poder-lo anomenar.
|
|
15
16
|
export type { RegisteredMainView } from "./api/region-manager/region-manager";
|
|
16
17
|
export * from "./handle-plugins";
|
|
17
18
|
// Superfície pública explícita: `primariaApiFactory`, `activityMonitor` i
|
|
18
19
|
// `sessionRefreshTimer` són singletons interns del shell i no s'exposen.
|
|
19
|
-
// Les constants de regió (`shellRegions`, `clinicalMonitoringRegions
|
|
20
|
-
//
|
|
21
|
-
// `api.regionManager.regions.*`.
|
|
20
|
+
// Les constants de regió (`shellRegions`, `clinicalMonitoringRegions`...) tampoc:
|
|
21
|
+
// des de la v8 els plugins han d'usar `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";
|