@uxland/primary-shell 7.0.0 → 7.0.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.
- package/dist/index.js +15398 -8984
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +813 -459
- package/dist/index.umd.cjs.map +1 -1
- package/package.json +1 -1
- package/src/handle-plugins.ts +18 -8
package/package.json
CHANGED
package/src/handle-plugins.ts
CHANGED
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import { bootstrapPlugins as pluginBootstrapper } from "@uxland/harmonix";
|
|
2
2
|
import type { PluginDefinition, Plugin as PluginType, BootstrappedPlugin } from "@uxland/harmonix";
|
|
3
3
|
export type { PluginDefinition, PluginInfo } from "@uxland/harmonix";
|
|
4
|
+
import {
|
|
5
|
+
initialize as activityHistoryInitialize,
|
|
6
|
+
dispose as activityHistoryDispose,
|
|
7
|
+
} from "../../../plugins/activity-history/src/plugin";
|
|
8
|
+
import {
|
|
9
|
+
initialize as clinicalMonitoringInitialize,
|
|
10
|
+
dispose as clinicalMonitoringDispose,
|
|
11
|
+
} from "../../../plugins/clinical-monitoring/src/plugin";
|
|
4
12
|
import { PrimariaApi, primariaApiFactory } from "./api/api";
|
|
5
13
|
|
|
6
14
|
let bootstrappedPlugins = [] as BootstrappedPlugin[];
|
|
@@ -8,20 +16,22 @@ let bootstrappedPlugins = [] as BootstrappedPlugin[];
|
|
|
8
16
|
const commonPlugins: PluginDefinition[] = [
|
|
9
17
|
{
|
|
10
18
|
pluginId: "activity-history",
|
|
11
|
-
importer:
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
19
|
+
importer: () =>
|
|
20
|
+
Promise.resolve({
|
|
21
|
+
initialize: activityHistoryInitialize,
|
|
22
|
+
dispose: activityHistoryDispose,
|
|
23
|
+
}),
|
|
15
24
|
},
|
|
16
25
|
];
|
|
17
26
|
|
|
18
27
|
const doctorInternalPlugins: PluginDefinition[] = [
|
|
19
28
|
{
|
|
20
29
|
pluginId: "clinical-monitoring",
|
|
21
|
-
importer:
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
30
|
+
importer: () =>
|
|
31
|
+
Promise.resolve({
|
|
32
|
+
initialize: clinicalMonitoringInitialize,
|
|
33
|
+
dispose: clinicalMonitoringDispose,
|
|
34
|
+
}),
|
|
25
35
|
},
|
|
26
36
|
];
|
|
27
37
|
|