@openmrs/esm-cohort-builder-app 3.0.1-pre.87 → 3.0.1-pre.89

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.
@@ -51,7 +51,7 @@ jobs:
51
51
  with:
52
52
  node-version: "18"
53
53
  registry-url: "https://registry.npmjs.org"
54
- - run: yarn install --immuatable
54
+ - run: yarn install --immutable
55
55
  - run: yarn version --new-version "$(node -e "console.log(require('semver').inc(require('./package.json').version, 'patch'))")-pre.${{ github.run_number }}" --no-git-tag-version
56
56
  - run: yarn build
57
57
  - run: yarn publish --access public --tag next
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmrs/esm-cohort-builder-app",
3
- "version": "3.0.1-pre.87",
3
+ "version": "3.0.1-pre.89",
4
4
  "license": "MPL-2.0",
5
5
  "description": "A microfrontend for OpenMRS cohorts",
6
6
  "browser": "dist/openmrs-esm-cohort-builder-app.js",
@@ -0,0 +1,14 @@
1
+ import React from "react";
2
+
3
+ import { ConfigurableLink } from "@openmrs/esm-framework";
4
+ import { useTranslation } from "react-i18next";
5
+
6
+ export default function CohortBuilderAppMenuLink() {
7
+ const { t } = useTranslation();
8
+
9
+ return (
10
+ <ConfigurableLink to="${openmrsSpaBase}/cohort-builder">
11
+ {t("cohortBuilder", "Cohort Builder")}
12
+ </ConfigurableLink>
13
+ );
14
+ }
package/src/index.ts CHANGED
@@ -29,7 +29,18 @@ function setupOpenMRS() {
29
29
  route: "cohort-builder",
30
30
  },
31
31
  ],
32
- extensions: [],
32
+ extensions: [
33
+ {
34
+ id: "cohort-builder-app-link",
35
+ slot: "app-menu-slot",
36
+ load: getAsyncLifecycle(
37
+ () => import("./cohort-builder-app-menu-link"),
38
+ options
39
+ ),
40
+ online: true,
41
+ offline: false,
42
+ },
43
+ ],
33
44
  };
34
45
  }
35
46