@openmrs/esm-styleguide 8.0.1-pre.3602 → 8.0.1-pre.3605
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
CHANGED
|
@@ -13,6 +13,6 @@
|
|
|
13
13
|
[0] │ You can limit the size of your bundles by using import() to lazy load some parts of your application.
|
|
14
14
|
[0] │ For more info visit https://www.rspack.dev/guide/optimization/code-splitting
|
|
15
15
|
[0]
|
|
16
|
-
[0] Rspack compiled with 3 warnings in 9.
|
|
16
|
+
[0] Rspack compiled with 3 warnings in 9.66 s
|
|
17
17
|
[0] rspack --mode=production exited with code 0
|
|
18
18
|
[1] tsc --project tsconfig.build.json exited with code 0
|
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.3605",
|
|
4
4
|
"license": "MPL-2.0",
|
|
5
5
|
"description": "The styleguide for OpenMRS SPA",
|
|
6
6
|
"main": "dist/openmrs-esm-styleguide.js",
|
|
@@ -98,17 +98,17 @@
|
|
|
98
98
|
"swr": "2.x"
|
|
99
99
|
},
|
|
100
100
|
"devDependencies": {
|
|
101
|
-
"@openmrs/esm-api": "8.0.1-pre.
|
|
102
|
-
"@openmrs/esm-config": "8.0.1-pre.
|
|
103
|
-
"@openmrs/esm-emr-api": "8.0.1-pre.
|
|
104
|
-
"@openmrs/esm-error-handling": "8.0.1-pre.
|
|
105
|
-
"@openmrs/esm-extensions": "8.0.1-pre.
|
|
106
|
-
"@openmrs/esm-globals": "8.0.1-pre.
|
|
107
|
-
"@openmrs/esm-navigation": "8.0.1-pre.
|
|
108
|
-
"@openmrs/esm-react-utils": "8.0.1-pre.
|
|
109
|
-
"@openmrs/esm-state": "8.0.1-pre.
|
|
110
|
-
"@openmrs/esm-translations": "8.0.1-pre.
|
|
111
|
-
"@openmrs/esm-utils": "8.0.1-pre.
|
|
101
|
+
"@openmrs/esm-api": "8.0.1-pre.3605",
|
|
102
|
+
"@openmrs/esm-config": "8.0.1-pre.3605",
|
|
103
|
+
"@openmrs/esm-emr-api": "8.0.1-pre.3605",
|
|
104
|
+
"@openmrs/esm-error-handling": "8.0.1-pre.3605",
|
|
105
|
+
"@openmrs/esm-extensions": "8.0.1-pre.3605",
|
|
106
|
+
"@openmrs/esm-globals": "8.0.1-pre.3605",
|
|
107
|
+
"@openmrs/esm-navigation": "8.0.1-pre.3605",
|
|
108
|
+
"@openmrs/esm-react-utils": "8.0.1-pre.3605",
|
|
109
|
+
"@openmrs/esm-state": "8.0.1-pre.3605",
|
|
110
|
+
"@openmrs/esm-translations": "8.0.1-pre.3605",
|
|
111
|
+
"@openmrs/esm-utils": "8.0.1-pre.3605",
|
|
112
112
|
"@rspack/cli": "^1.3.11",
|
|
113
113
|
"@rspack/core": "^1.3.11",
|
|
114
114
|
"@types/geopattern": "^1.2.9",
|
|
@@ -37,7 +37,7 @@ const ActiveWorkspaceWindow: React.FC<WorkspaceWindowProps> = ({ openedWindow })
|
|
|
37
37
|
key={openedWorkspace.uuid}
|
|
38
38
|
openedWorkspace={openedWorkspace}
|
|
39
39
|
openedWindow={openedWindow}
|
|
40
|
-
lifeCycle={lifeCycles
|
|
40
|
+
lifeCycle={lifeCycles && lifeCycles[i] ? lifeCycles[i] : undefined}
|
|
41
41
|
isRootWorkspace={i === 0}
|
|
42
42
|
isLeafWorkspace={i === openedWorkspaces.length - 1}
|
|
43
43
|
/>
|
|
@@ -99,12 +99,12 @@ const ActiveWorkspace: React.FC<ActiveWorkspaceProps> = ({
|
|
|
99
99
|
},
|
|
100
100
|
launchChildWorkspace: (childWorkspaceName, childWorkspaceProps) => {
|
|
101
101
|
const parentWorkspaceName = openedWorkspace.workspaceName;
|
|
102
|
-
openChildWorkspace(parentWorkspaceName, childWorkspaceName, childWorkspaceProps
|
|
102
|
+
openChildWorkspace(parentWorkspaceName, childWorkspaceName, childWorkspaceProps || {});
|
|
103
103
|
},
|
|
104
104
|
workspaceName: openedWorkspace.workspaceName,
|
|
105
105
|
workspaceProps: openedWorkspace.props,
|
|
106
106
|
windowProps: openedWindow.props,
|
|
107
|
-
groupProps: openedGroup
|
|
107
|
+
groupProps: openedGroup && openedGroup.props ? openedGroup.props : null,
|
|
108
108
|
isRootWorkspace,
|
|
109
109
|
isLeafWorkspace,
|
|
110
110
|
windowName: openedWindow.windowName,
|
|
@@ -115,10 +115,10 @@ const ActiveWorkspace: React.FC<ActiveWorkspaceProps> = ({
|
|
|
115
115
|
if (!lifeCycle) {
|
|
116
116
|
const { registeredWorkspacesByName } = workspace2Store.getState();
|
|
117
117
|
const workspaceDef = registeredWorkspacesByName[openedWorkspace.workspaceName];
|
|
118
|
-
const windowName = workspaceDef
|
|
118
|
+
const windowName = workspaceDef && workspaceDef.window ? workspaceDef.window : undefined;
|
|
119
119
|
const { registeredWindowsByName } = workspace2Store.getState();
|
|
120
|
-
const windowDef = registeredWindowsByName[windowName];
|
|
121
|
-
const width = windowDef
|
|
120
|
+
const windowDef = windowName ? registeredWindowsByName[windowName] : undefined;
|
|
121
|
+
const width = windowDef && windowDef.width ? windowDef.width : 'narrow';
|
|
122
122
|
|
|
123
123
|
return (
|
|
124
124
|
<div
|