@openmrs/esm-styleguide 8.0.1-pre.3518 → 8.0.1-pre.3529
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/.turbo/turbo-build.log +2 -2
- package/dist/openmrs-esm-styleguide.js +2 -2
- package/dist/openmrs-esm-styleguide.js.map +1 -1
- package/package.json +15 -13
- package/src/dashboard-extension/index.tsx +1 -1
- package/src/location-picker/location-picker.resource.ts +0 -1
- package/src/workspaces/notification/workspace-notification.component.tsx +4 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openmrs/esm-styleguide",
|
|
3
|
-
"version": "8.0.1-pre.
|
|
3
|
+
"version": "8.0.1-pre.3529",
|
|
4
4
|
"license": "MPL-2.0",
|
|
5
5
|
"description": "The styleguide for OpenMRS SPA",
|
|
6
6
|
"main": "dist/openmrs-esm-styleguide.js",
|
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
"scripts": {
|
|
38
38
|
"test": "cross-env TZ=UTC vitest run --passWithNoTests",
|
|
39
39
|
"test:watch": "cross-env TZ=UTC vitest watch",
|
|
40
|
+
"coverage": "cross-env TZ=UTC vitest run --coverage --passWithNoTests",
|
|
40
41
|
"build": "concurrently \"rspack --mode=production\" \"tsc --project tsconfig.build.json\"",
|
|
41
42
|
"build:development": "concurrently \"rspack --mode=development\" \"tsc --project tsconfig.build.json\"",
|
|
42
43
|
"analyze": "rspack --mode=production --env analyze=true",
|
|
@@ -97,20 +98,21 @@
|
|
|
97
98
|
"swr": "2.x"
|
|
98
99
|
},
|
|
99
100
|
"devDependencies": {
|
|
100
|
-
"@openmrs/esm-api": "8.0.1-pre.
|
|
101
|
-
"@openmrs/esm-config": "8.0.1-pre.
|
|
102
|
-
"@openmrs/esm-emr-api": "8.0.1-pre.
|
|
103
|
-
"@openmrs/esm-error-handling": "8.0.1-pre.
|
|
104
|
-
"@openmrs/esm-extensions": "8.0.1-pre.
|
|
105
|
-
"@openmrs/esm-globals": "8.0.1-pre.
|
|
106
|
-
"@openmrs/esm-navigation": "8.0.1-pre.
|
|
107
|
-
"@openmrs/esm-react-utils": "8.0.1-pre.
|
|
108
|
-
"@openmrs/esm-state": "8.0.1-pre.
|
|
109
|
-
"@openmrs/esm-translations": "8.0.1-pre.
|
|
110
|
-
"@openmrs/esm-utils": "8.0.1-pre.
|
|
101
|
+
"@openmrs/esm-api": "8.0.1-pre.3529",
|
|
102
|
+
"@openmrs/esm-config": "8.0.1-pre.3529",
|
|
103
|
+
"@openmrs/esm-emr-api": "8.0.1-pre.3529",
|
|
104
|
+
"@openmrs/esm-error-handling": "8.0.1-pre.3529",
|
|
105
|
+
"@openmrs/esm-extensions": "8.0.1-pre.3529",
|
|
106
|
+
"@openmrs/esm-globals": "8.0.1-pre.3529",
|
|
107
|
+
"@openmrs/esm-navigation": "8.0.1-pre.3529",
|
|
108
|
+
"@openmrs/esm-react-utils": "8.0.1-pre.3529",
|
|
109
|
+
"@openmrs/esm-state": "8.0.1-pre.3529",
|
|
110
|
+
"@openmrs/esm-translations": "8.0.1-pre.3529",
|
|
111
|
+
"@openmrs/esm-utils": "8.0.1-pre.3529",
|
|
111
112
|
"@rspack/cli": "^1.3.11",
|
|
112
113
|
"@rspack/core": "^1.3.11",
|
|
113
114
|
"@types/geopattern": "^1.2.9",
|
|
115
|
+
"@vitest/coverage-v8": "^4.0.7",
|
|
114
116
|
"concurrently": "^9.1.2",
|
|
115
117
|
"cross-env": "^7.0.3",
|
|
116
118
|
"happy-dom": "^17.4.7",
|
|
@@ -124,7 +126,7 @@
|
|
|
124
126
|
"svgo-loader": "^4.0.0",
|
|
125
127
|
"swr": "2.2.5",
|
|
126
128
|
"typescript": "^5.8.3",
|
|
127
|
-
"vitest": "^
|
|
129
|
+
"vitest": "^4.0.7"
|
|
128
130
|
},
|
|
129
131
|
"stableVersion": "8.0.0"
|
|
130
132
|
}
|
|
@@ -4,8 +4,8 @@ import { useTranslation } from 'react-i18next';
|
|
|
4
4
|
import { useLocation } from 'react-router-dom';
|
|
5
5
|
import { shallowEqual } from '@openmrs/esm-utils';
|
|
6
6
|
import { ConfigurableLink, MaybeIcon } from '@openmrs/esm-framework';
|
|
7
|
-
import styles from './dashboard.module.scss';
|
|
8
7
|
import { type IconId } from '../icons';
|
|
8
|
+
import styles from './dashboard.module.scss';
|
|
9
9
|
|
|
10
10
|
export interface DashboardExtensionProps {
|
|
11
11
|
path: string;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/** @module @category Workspace */
|
|
2
2
|
import React, { useEffect } from 'react';
|
|
3
|
-
import { useTranslation } from 'react-i18next';
|
|
4
3
|
import { Button, ComposedModal, ModalBody, ModalFooter, ModalHeader } from '@carbon/react';
|
|
4
|
+
import { escapeRegExp } from 'lodash-es';
|
|
5
5
|
import { navigate } from '@openmrs/esm-navigation';
|
|
6
6
|
import { reportError } from '@openmrs/esm-error-handling';
|
|
7
|
-
import {
|
|
7
|
+
import { getCoreTranslation } from '@openmrs/esm-translations';
|
|
8
8
|
import { type SingleSpaCustomEventDetail } from 'single-spa';
|
|
9
9
|
import {
|
|
10
10
|
cancelPrompt,
|
|
@@ -22,7 +22,6 @@ export interface WorkspaceNotificationProps {
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
export function WorkspaceNotification({ contextKey }: WorkspaceNotificationProps) {
|
|
25
|
-
const { t } = useTranslation();
|
|
26
25
|
const { prompt } = useWorkspaces();
|
|
27
26
|
|
|
28
27
|
useEffect(() => {
|
|
@@ -91,10 +90,10 @@ export function WorkspaceNotification({ contextKey }: WorkspaceNotificationProps
|
|
|
91
90
|
</ModalBody>
|
|
92
91
|
<ModalFooter>
|
|
93
92
|
<Button kind="secondary" onClick={cancelPrompt}>
|
|
94
|
-
{prompt.cancelText ??
|
|
93
|
+
{prompt.cancelText ?? getCoreTranslation('cancel')}
|
|
95
94
|
</Button>
|
|
96
95
|
<Button kind="danger" onClick={prompt.onConfirm}>
|
|
97
|
-
{prompt.confirmText ??
|
|
96
|
+
{prompt.confirmText ?? getCoreTranslation('confirm')}
|
|
98
97
|
</Button>
|
|
99
98
|
</ModalFooter>
|
|
100
99
|
</ComposedModal>
|