@openmrs/esm-home-app 4.0.3-pre.204 → 4.1.0

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.
@@ -36,4 +36,4 @@ This can impact web performance.
36
36
  Assets:
37
37
  858.js (397 KiB)
38
38
 
39
- webpack 5.75.0 compiled with 1 warning in 16150 ms
39
+ webpack 5.75.0 compiled with 1 warning in 15836 ms
package/dist/91.js CHANGED
@@ -1 +1 @@
1
- (self.webpackChunk_openmrs_esm_home_app=self.webpackChunk_openmrs_esm_home_app||[]).push([[91,268],{91:(e,t,n)=>{"use strict";n.r(t),n.d(t,{backendDependencies:()=>p,importTranslation:()=>m,setupOpenMRS:()=>u,version:()=>d});var o=n(906),a=n(268),i=n.n(a),r=n(744),s=function(e){var t=e.dashboardLinkConfig.name,n=(0,r.useLocation)(),s="".concat(window.spaBase,"/home"),l=(0,a.useMemo)((function(){var e=n.pathname.split("/"),t=e[e.length-1];return decodeURIComponent(t)}),[n.pathname]);return i().createElement(o.ConfigurableLink,{to:s,className:"cds--side-nav__link ".concat("home"===l&&"active-left-nav-link")},t)},l={name:"Home",slot:"home-dashboard-slot",title:""},c={buttons:{enabled:{_type:o.Type.Boolean,_default:!0,_description:"Whether to show big buttons on the home page (including extensions)"},list:{_type:o.Type.Array,_elements:{label:{_type:o.Type.String},link:{_type:o.Type.String,_validators:[o.validators.isUrl]},requiredPrivilege:{_type:o.Type.String},spa:{_type:o.Type.Boolean,_default:!1}},_default:[],_description:"Custom buttons to add, which will come after the button extensions"}},search:{patientResultUrl:{_type:o.Type.String,_default:"${openmrsSpaBase}/patient/${patientUuid}/chart",_description:"Where clicking a patient result takes the user. Accepts template parameter ${patientUuid}",_validators:[o.validators.isUrlWithTemplateParameters(["patientUuid"])]}}},d="4.0.2",p={"webservices.rest":"^2.24.0"},m=n(979);function u(){var e,t="@openmrs/esm-home-app",a="home",d={featureName:a,moduleName:t};return(0,o.defineConfigSchema)(t,c),(0,o.registerBreadcrumbs)([{path:"".concat(window.spaBase,"/").concat(a),title:"Home"}]),{pages:[{load:(0,o.getAsyncLifecycle)((function(){return n.e(361).then(n.bind(n,361))}),d),route:a,online:{canSearch:!0},offline:{canSearch:!1}}],extensions:[{id:"home-nav-menu",slot:"home-sidebar-slot",load:(0,o.getAsyncLifecycle)((function(){return n.e(679).then(n.bind(n,679))}),d),online:!0,offline:!0},{id:"home-widget-db-link",slot:"homepage-dashboard-slot",load:(0,o.getSyncLifecycle)((e=l,function(){return i().createElement(r.BrowserRouter,null,i().createElement(s,{dashboardLinkConfig:e}))}),d),meta:l,online:!0,offline:!0,order:0},{id:"home-widget-dashboard",slot:"home-dashboard-slot",load:(0,o.getAsyncLifecycle)((function(){return n.e(904).then(n.bind(n,904))}),d),online:!0,offline:!0}]}}},979:(e,t,n)=>{var o={"./en.json":[574,574],"./es.json":[319,319],"./fr.json":[757,757]};function a(e){if(!n.o(o,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=o[e],a=t[0];return n.e(t[1]).then((()=>n(a)))}a.keys=()=>Object.keys(o),a.id=979,e.exports=a}}]);
1
+ (self.webpackChunk_openmrs_esm_home_app=self.webpackChunk_openmrs_esm_home_app||[]).push([[91,268],{91:(e,t,n)=>{"use strict";n.r(t),n.d(t,{backendDependencies:()=>p,importTranslation:()=>m,setupOpenMRS:()=>u,version:()=>d});var o=n(906),a=n(268),i=n.n(a),r=n(744),s=function(e){var t=e.dashboardLinkConfig.name,n=(0,r.useLocation)(),s="".concat(window.spaBase,"/home"),l=(0,a.useMemo)((function(){var e=n.pathname.split("/"),t=e[e.length-1];return decodeURIComponent(t)}),[n.pathname]);return i().createElement(o.ConfigurableLink,{to:s,className:"cds--side-nav__link ".concat("home"===l&&"active-left-nav-link")},t)},l={name:"Home",slot:"home-dashboard-slot",title:""},c={buttons:{enabled:{_type:o.Type.Boolean,_default:!0,_description:"Whether to show big buttons on the home page (including extensions)"},list:{_type:o.Type.Array,_elements:{label:{_type:o.Type.String},link:{_type:o.Type.String,_validators:[o.validators.isUrl]},requiredPrivilege:{_type:o.Type.String},spa:{_type:o.Type.Boolean,_default:!1}},_default:[],_description:"Custom buttons to add, which will come after the button extensions"}},search:{patientResultUrl:{_type:o.Type.String,_default:"${openmrsSpaBase}/patient/${patientUuid}/chart",_description:"Where clicking a patient result takes the user. Accepts template parameter ${patientUuid}",_validators:[o.validators.isUrlWithTemplateParameters(["patientUuid"])]}}},d="4.1.0",p={"webservices.rest":"^2.24.0"},m=n(979);function u(){var e,t="@openmrs/esm-home-app",a="home",d={featureName:a,moduleName:t};return(0,o.defineConfigSchema)(t,c),(0,o.registerBreadcrumbs)([{path:"".concat(window.spaBase,"/").concat(a),title:"Home"}]),{pages:[{load:(0,o.getAsyncLifecycle)((function(){return n.e(361).then(n.bind(n,361))}),d),route:a,online:{canSearch:!0},offline:{canSearch:!1}}],extensions:[{id:"home-nav-menu",slot:"home-sidebar-slot",load:(0,o.getAsyncLifecycle)((function(){return n.e(679).then(n.bind(n,679))}),d),online:!0,offline:!0},{id:"home-widget-db-link",slot:"homepage-dashboard-slot",load:(0,o.getSyncLifecycle)((e=l,function(){return i().createElement(r.BrowserRouter,null,i().createElement(s,{dashboardLinkConfig:e}))}),d),meta:l,online:!0,offline:!0,order:0},{id:"home-widget-dashboard",slot:"home-dashboard-slot",load:(0,o.getAsyncLifecycle)((function(){return n.e(904).then(n.bind(n,904))}),d),online:!0,offline:!0}]}}},979:(e,t,n)=>{var o={"./en.json":[574,574],"./es.json":[319,319],"./fr.json":[757,757]};function a(e){if(!n.o(o,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=o[e],a=t[0];return n.e(t[1]).then((()=>n(a)))}a.keys=()=>Object.keys(o),a.id=979,e.exports=a}}]);
@@ -19,7 +19,7 @@
19
19
  "91.js"
20
20
  ],
21
21
  "auxiliaryFiles": [],
22
- "hash": "fd8fb0e157db900bcbe7",
22
+ "hash": "d4f86e10da3466ceda61",
23
23
  "childrenByOrder": {}
24
24
  },
25
25
  {
@@ -70,7 +70,7 @@
70
70
  "main.js"
71
71
  ],
72
72
  "auxiliaryFiles": [],
73
- "hash": "3577f946ef9d93db5a89",
73
+ "hash": "d07d03e44713d8fb42d4",
74
74
  "childrenByOrder": {}
75
75
  },
76
76
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmrs/esm-home-app",
3
- "version": "4.0.3-pre.204",
3
+ "version": "4.1.0",
4
4
  "description": "Homepage microfrontend for the OpenMRS SPA",
5
5
  "browser": "dist/openmrs-esm-home-app.js",
6
6
  "main": "src/index.ts",
@@ -45,5 +45,5 @@
45
45
  "react-i18next": "11.x",
46
46
  "react-router-dom": "6.x"
47
47
  },
48
- "gitHead": "deb8d67d9672af758ee5c5f6c2a148640a2d218c"
48
+ "gitHead": "77ece12fbf2369403b01b9397ada7001ccda95ee"
49
49
  }